raphtory-graphql 0.17.0

Raphtory GraphQL server
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
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
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
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
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
1607
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
<!doctype html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Pometry UI</title>
      <script type="module" crossorigin>function iVe(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in e)){const o=Object.getOwnPropertyDescriptor(i,r);o&&Object.defineProperty(e,r,o.get?o:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function rVe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var D_e={exports:{}},bz={};var nit;function cMn(){if(nit)return bz;nit=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,r,o){var s=null;if(o!==void 0&&(s=""+o),r.key!==void 0&&(s=""+r.key),"key"in r){o={};for(var a in r)a!=="key"&&(o[a]=r[a])}else o=r;return r=o.ref,{$$typeof:e,type:i,key:s,ref:r!==void 0?r:null,props:o}}return bz.Fragment=t,bz.jsx=n,bz.jsxs=n,bz}var iit;function uMn(){return iit||(iit=1,D_e.exports=cMn()),D_e.exports}var S=uMn();const dMn=rVe(S),hMn=iVe({__proto__:null,default:dMn},[S]),fMn="modulepreload",pMn=function(e,t){return new URL(e,t).href},rit={},gMn=function(t,n,i){let r=Promise.resolve();if(n&&n.length>0){let c=function(u){return Promise.all(u.map(d=>Promise.resolve(d).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");r=c(n.map(u=>{if(u=pMn(u,i),u in rit)return;rit[u]=!0;const d=u.endsWith(".css"),h=d?'[rel="stylesheet"]':"";if(i)for(let p=s.length-1;p>=0;p--){const g=s[p];if(g.href===u&&(!d||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${h}`))return;const f=document.createElement("link");if(f.rel=d?"stylesheet":fMn,d||(f.as="script"),f.crossOrigin="",f.href=u,l&&f.setAttribute("nonce",l),document.head.appendChild(f),d)return new Promise((p,g)=>{f.addEventListener("load",p),f.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return r.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};var T_e={exports:{}},ks={};var oit;function mMn(){if(oit)return ks;oit=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),h=Symbol.iterator;function f(Y){return Y===null||typeof Y!="object"?null:(Y=h&&Y[h]||Y["@@iterator"],typeof Y=="function"?Y:null)}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function v(Y,G,pe){this.props=Y,this.context=G,this.refs=m,this.updater=pe||p}v.prototype.isReactComponent={},v.prototype.setState=function(Y,G){if(typeof Y!="object"&&typeof Y!="function"&&Y!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Y,G,"setState")},v.prototype.forceUpdate=function(Y){this.updater.enqueueForceUpdate(this,Y,"forceUpdate")};function y(){}y.prototype=v.prototype;function b(Y,G,pe){this.props=Y,this.context=G,this.refs=m,this.updater=pe||p}var w=b.prototype=new y;w.constructor=b,g(w,v.prototype),w.isPureReactComponent=!0;var E=Array.isArray;function A(){}var D={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function M(Y,G,pe){var U=pe.ref;return{$$typeof:e,type:Y,key:G,ref:U!==void 0?U:null,props:pe}}function P(Y,G){return M(Y.type,G,Y.props)}function F(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===e}function N(Y){var G={"=":"=0",":":"=2"};return"$"+Y.replace(/[=:]/g,function(pe){return G[pe]})}var j=/\/+/g;function W(Y,G){return typeof Y=="object"&&Y!==null&&Y.key!=null?N(""+Y.key):G.toString(36)}function J(Y){switch(Y.status){case"fulfilled":return Y.value;case"rejected":throw Y.reason;default:switch(typeof Y.status=="string"?Y.then(A,A):(Y.status="pending",Y.then(function(G){Y.status==="pending"&&(Y.status="fulfilled",Y.value=G)},function(G){Y.status==="pending"&&(Y.status="rejected",Y.reason=G)})),Y.status){case"fulfilled":return Y.value;case"rejected":throw Y.reason}}throw Y}function ee(Y,G,pe,U,K){var ie=typeof Y;(ie==="undefined"||ie==="boolean")&&(Y=null);var ce=!1;if(Y===null)ce=!0;else switch(ie){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(Y.$$typeof){case e:case t:ce=!0;break;case u:return ce=Y._init,ee(ce(Y._payload),G,pe,U,K)}}if(ce)return K=K(Y),ce=U===""?"."+W(Y,0):U,E(K)?(pe="",ce!=null&&(pe=ce.replace(j,"$&/")+"/"),ee(K,G,pe,"",function(me){return me})):K!=null&&(F(K)&&(K=P(K,pe+(K.key==null||Y&&Y.key===K.key?"":(""+K.key).replace(j,"$&/")+"/")+ce)),G.push(K)),1;ce=0;var de=U===""?".":U+":";if(E(Y))for(var oe=0;oe<Y.length;oe++)U=Y[oe],ie=de+W(U,oe),ce+=ee(U,G,pe,ie,K);else if(oe=f(Y),typeof oe=="function")for(Y=oe.call(Y),oe=0;!(U=Y.next()).done;)U=U.value,ie=de+W(U,oe++),ce+=ee(U,G,pe,ie,K);else if(ie==="object"){if(typeof Y.then=="function")return ee(J(Y),G,pe,U,K);throw G=String(Y),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(Y).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return ce}function Q(Y,G,pe){if(Y==null)return Y;var U=[],K=0;return ee(Y,U,"","",function(ie){return G.call(pe,ie,K++)}),U}function H(Y){if(Y._status===-1){var G=Y._result;G=G(),G.then(function(pe){(Y._status===0||Y._status===-1)&&(Y._status=1,Y._result=pe)},function(pe){(Y._status===0||Y._status===-1)&&(Y._status=2,Y._result=pe)}),Y._status===-1&&(Y._status=0,Y._result=G)}if(Y._status===1)return Y._result.default;throw Y._result}var q=typeof reportError=="function"?reportError:function(Y){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Y=="object"&&Y!==null&&typeof Y.message=="string"?String(Y.message):String(Y),error:Y});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",Y);return}console.error(Y)},le={map:Q,forEach:function(Y,G,pe){Q(Y,function(){G.apply(this,arguments)},pe)},count:function(Y){var G=0;return Q(Y,function(){G++}),G},toArray:function(Y){return Q(Y,function(G){return G})||[]},only:function(Y){if(!F(Y))throw Error("React.Children.only expected to receive a single React element child.");return Y}};return ks.Activity=d,ks.Children=le,ks.Component=v,ks.Fragment=n,ks.Profiler=r,ks.PureComponent=b,ks.StrictMode=i,ks.Suspense=l,ks.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,ks.__COMPILER_RUNTIME={__proto__:null,c:function(Y){return D.H.useMemoCache(Y)}},ks.cache=function(Y){return function(){return Y.apply(null,arguments)}},ks.cacheSignal=function(){return null},ks.cloneElement=function(Y,G,pe){if(Y==null)throw Error("The argument must be a React element, but you passed "+Y+".");var U=g({},Y.props),K=Y.key;if(G!=null)for(ie in G.key!==void 0&&(K=""+G.key),G)!T.call(G,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&G.ref===void 0||(U[ie]=G[ie]);var ie=arguments.length-2;if(ie===1)U.children=pe;else if(1<ie){for(var ce=Array(ie),de=0;de<ie;de++)ce[de]=arguments[de+2];U.children=ce}return M(Y.type,K,U)},ks.createContext=function(Y){return Y={$$typeof:s,_currentValue:Y,_currentValue2:Y,_threadCount:0,Provider:null,Consumer:null},Y.Provider=Y,Y.Consumer={$$typeof:o,_context:Y},Y},ks.createElement=function(Y,G,pe){var U,K={},ie=null;if(G!=null)for(U in G.key!==void 0&&(ie=""+G.key),G)T.call(G,U)&&U!=="key"&&U!=="__self"&&U!=="__source"&&(K[U]=G[U]);var ce=arguments.length-2;if(ce===1)K.children=pe;else if(1<ce){for(var de=Array(ce),oe=0;oe<ce;oe++)de[oe]=arguments[oe+2];K.children=de}if(Y&&Y.defaultProps)for(U in ce=Y.defaultProps,ce)K[U]===void 0&&(K[U]=ce[U]);return M(Y,ie,K)},ks.createRef=function(){return{current:null}},ks.forwardRef=function(Y){return{$$typeof:a,render:Y}},ks.isValidElement=F,ks.lazy=function(Y){return{$$typeof:u,_payload:{_status:-1,_result:Y},_init:H}},ks.memo=function(Y,G){return{$$typeof:c,type:Y,compare:G===void 0?null:G}},ks.startTransition=function(Y){var G=D.T,pe={};D.T=pe;try{var U=Y(),K=D.S;K!==null&&K(pe,U),typeof U=="object"&&U!==null&&typeof U.then=="function"&&U.then(A,q)}catch(ie){q(ie)}finally{G!==null&&pe.types!==null&&(G.types=pe.types),D.T=G}},ks.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},ks.use=function(Y){return D.H.use(Y)},ks.useActionState=function(Y,G,pe){return D.H.useActionState(Y,G,pe)},ks.useCallback=function(Y,G){return D.H.useCallback(Y,G)},ks.useContext=function(Y){return D.H.useContext(Y)},ks.useDebugValue=function(){},ks.useDeferredValue=function(Y,G){return D.H.useDeferredValue(Y,G)},ks.useEffect=function(Y,G){return D.H.useEffect(Y,G)},ks.useEffectEvent=function(Y){return D.H.useEffectEvent(Y)},ks.useId=function(){return D.H.useId()},ks.useImperativeHandle=function(Y,G,pe){return D.H.useImperativeHandle(Y,G,pe)},ks.useInsertionEffect=function(Y,G){return D.H.useInsertionEffect(Y,G)},ks.useLayoutEffect=function(Y,G){return D.H.useLayoutEffect(Y,G)},ks.useMemo=function(Y,G){return D.H.useMemo(Y,G)},ks.useOptimistic=function(Y,G){return D.H.useOptimistic(Y,G)},ks.useReducer=function(Y,G,pe){return D.H.useReducer(Y,G,pe)},ks.useRef=function(Y){return D.H.useRef(Y)},ks.useState=function(Y){return D.H.useState(Y)},ks.useSyncExternalStore=function(Y,G,pe){return D.H.useSyncExternalStore(Y,G,pe)},ks.useTransition=function(){return D.H.useTransition()},ks.version="19.2.4",ks}var sit;function oVe(){return sit||(sit=1,T_e.exports=mMn()),T_e.exports}var I=oVe();const Ri=rVe(I),cT=iVe({__proto__:null,default:Ri},[I]);var k_e={exports:{}},Rg={};var ait;function vMn(){if(ait)return Rg;ait=1;var e=oVe();function t(l){var c="https://react.dev/errors/"+l;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)c+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+l+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},r=Symbol.for("react.portal");function o(l,c,u){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:d==null?null:""+d,children:l,containerInfo:c,implementation:u}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(l,c){if(l==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return Rg.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Rg.createPortal=function(l,c){var u=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(t(299));return o(l,c,null,u)},Rg.flushSync=function(l){var c=s.T,u=i.p;try{if(s.T=null,i.p=2,l)return l()}finally{s.T=c,i.p=u,i.d.f()}},Rg.preconnect=function(l,c){typeof l=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,i.d.C(l,c))},Rg.prefetchDNS=function(l){typeof l=="string"&&i.d.D(l)},Rg.preinit=function(l,c){if(typeof l=="string"&&c&&typeof c.as=="string"){var u=c.as,d=a(u,c.crossOrigin),h=typeof c.integrity=="string"?c.integrity:void 0,f=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;u==="style"?i.d.S(l,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:d,integrity:h,fetchPriority:f}):u==="script"&&i.d.X(l,{crossOrigin:d,integrity:h,fetchPriority:f,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},Rg.preinitModule=function(l,c){if(typeof l=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var u=a(c.as,c.crossOrigin);i.d.M(l,{crossOrigin:u,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&i.d.M(l)},Rg.preload=function(l,c){if(typeof l=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var u=c.as,d=a(u,c.crossOrigin);i.d.L(l,u,{crossOrigin:d,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},Rg.preloadModule=function(l,c){if(typeof l=="string")if(c){var u=a(c.as,c.crossOrigin);i.d.m(l,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:u,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else i.d.m(l)},Rg.requestFormReset=function(l){i.d.r(l)},Rg.unstable_batchedUpdates=function(l,c){return l(c)},Rg.useFormState=function(l,c,u){return s.H.useFormState(l,c,u)},Rg.useFormStatus=function(){return s.H.useHostTransitionStatus()},Rg.version="19.2.4",Rg}var lit;function B8t(){if(lit)return k_e.exports;lit=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),k_e.exports=vMn(),k_e.exports}var lf=B8t();const XB=rVe(lf),yMn=iVe({__proto__:null,default:XB},[lf]);var I_e={exports:{}},_z={},L_e={exports:{}},N_e={};var cit;function bMn(){return cit||(cit=1,(function(e){function t(ee,Q){var H=ee.length;ee.push(Q);e:for(;0<H;){var q=H-1>>>1,le=ee[q];if(0<r(le,Q))ee[q]=Q,ee[H]=le,H=q;else break e}}function n(ee){return ee.length===0?null:ee[0]}function i(ee){if(ee.length===0)return null;var Q=ee[0],H=ee.pop();if(H!==Q){ee[0]=H;e:for(var q=0,le=ee.length,Y=le>>>1;q<Y;){var G=2*(q+1)-1,pe=ee[G],U=G+1,K=ee[U];if(0>r(pe,H))U<le&&0>r(K,pe)?(ee[q]=K,ee[U]=H,q=U):(ee[q]=pe,ee[G]=H,q=G);else if(U<le&&0>r(K,H))ee[q]=K,ee[U]=H,q=U;else break e}}return Q}function r(ee,Q){var H=ee.sortIndex-Q.sortIndex;return H!==0?H:ee.id-Q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,h=3,f=!1,p=!1,g=!1,m=!1,v=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;function w(ee){for(var Q=n(c);Q!==null;){if(Q.callback===null)i(c);else if(Q.startTime<=ee)i(c),Q.sortIndex=Q.expirationTime,t(l,Q);else break;Q=n(c)}}function E(ee){if(g=!1,w(ee),!p)if(n(l)!==null)p=!0,A||(A=!0,N());else{var Q=n(c);Q!==null&&J(E,Q.startTime-ee)}}var A=!1,D=-1,T=5,M=-1;function P(){return m?!0:!(e.unstable_now()-M<T)}function F(){if(m=!1,A){var ee=e.unstable_now();M=ee;var Q=!0;try{e:{p=!1,g&&(g=!1,y(D),D=-1),f=!0;var H=h;try{t:{for(w(ee),d=n(l);d!==null&&!(d.expirationTime>ee&&P());){var q=d.callback;if(typeof q=="function"){d.callback=null,h=d.priorityLevel;var le=q(d.expirationTime<=ee);if(ee=e.unstable_now(),typeof le=="function"){d.callback=le,w(ee),Q=!0;break t}d===n(l)&&i(l),w(ee)}else i(l);d=n(l)}if(d!==null)Q=!0;else{var Y=n(c);Y!==null&&J(E,Y.startTime-ee),Q=!1}}break e}finally{d=null,h=H,f=!1}Q=void 0}}finally{Q?N():A=!1}}}var N;if(typeof b=="function")N=function(){b(F)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,W=j.port2;j.port1.onmessage=F,N=function(){W.postMessage(null)}}else N=function(){v(F,0)};function J(ee,Q){D=v(function(){ee(e.unstable_now())},Q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(ee){ee.callback=null},e.unstable_forceFrameRate=function(ee){0>ee||125<ee?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<ee?Math.floor(1e3/ee):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(ee){switch(h){case 1:case 2:case 3:var Q=3;break;default:Q=h}var H=h;h=Q;try{return ee()}finally{h=H}},e.unstable_requestPaint=function(){m=!0},e.unstable_runWithPriority=function(ee,Q){switch(ee){case 1:case 2:case 3:case 4:case 5:break;default:ee=3}var H=h;h=ee;try{return Q()}finally{h=H}},e.unstable_scheduleCallback=function(ee,Q,H){var q=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?q+H:q):H=q,ee){case 1:var le=-1;break;case 2:le=250;break;case 5:le=1073741823;break;case 4:le=1e4;break;default:le=5e3}return le=H+le,ee={id:u++,callback:Q,priorityLevel:ee,startTime:H,expirationTime:le,sortIndex:-1},H>q?(ee.sortIndex=H,t(c,ee),n(l)===null&&ee===n(c)&&(g?(y(D),D=-1):g=!0,J(E,H-q))):(ee.sortIndex=le,t(l,ee),p||f||(p=!0,A||(A=!0,N()))),ee},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(ee){var Q=h;return function(){var H=h;h=Q;try{return ee.apply(this,arguments)}finally{h=H}}}})(N_e)),N_e}var uit;function _Mn(){return uit||(uit=1,L_e.exports=bMn()),L_e.exports}var dit;function wMn(){if(dit)return _z;dit=1;var e=_Mn(),t=oVe(),n=B8t();function i(_){var x="https://react.dev/errors/"+_;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var L=2;L<arguments.length;L++)x+="&args[]="+encodeURIComponent(arguments[L])}return"Minified React error #"+_+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(_){return!(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)}function o(_){var x=_,L=_;if(_.alternate)for(;x.return;)x=x.return;else{_=x;do x=_,(x.flags&4098)!==0&&(L=x.return),_=x.return;while(_)}return x.tag===3?L:null}function s(_){if(_.tag===13){var x=_.memoizedState;if(x===null&&(_=_.alternate,_!==null&&(x=_.memoizedState)),x!==null)return x.dehydrated}return null}function a(_){if(_.tag===31){var x=_.memoizedState;if(x===null&&(_=_.alternate,_!==null&&(x=_.memoizedState)),x!==null)return x.dehydrated}return null}function l(_){if(o(_)!==_)throw Error(i(188))}function c(_){var x=_.alternate;if(!x){if(x=o(_),x===null)throw Error(i(188));return x!==_?null:_}for(var L=_,B=x;;){var ae=L.return;if(ae===null)break;var fe=ae.alternate;if(fe===null){if(B=ae.return,B!==null){L=B;continue}break}if(ae.child===fe.child){for(fe=ae.child;fe;){if(fe===L)return l(ae),_;if(fe===B)return l(ae),x;fe=fe.sibling}throw Error(i(188))}if(L.return!==B.return)L=ae,B=fe;else{for(var je=!1,tt=ae.child;tt;){if(tt===L){je=!0,L=ae,B=fe;break}if(tt===B){je=!0,B=ae,L=fe;break}tt=tt.sibling}if(!je){for(tt=fe.child;tt;){if(tt===L){je=!0,L=fe,B=ae;break}if(tt===B){je=!0,B=fe,L=ae;break}tt=tt.sibling}if(!je)throw Error(i(189))}}if(L.alternate!==B)throw Error(i(190))}if(L.tag!==3)throw Error(i(188));return L.stateNode.current===L?_:x}function u(_){var x=_.tag;if(x===5||x===26||x===27||x===6)return _;for(_=_.child;_!==null;){if(x=u(_),x!==null)return x;_=_.sibling}return null}var d=Object.assign,h=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),b=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function N(_){return _===null||typeof _!="object"?null:(_=F&&_[F]||_["@@iterator"],typeof _=="function"?_:null)}var j=Symbol.for("react.client.reference");function W(_){if(_==null)return null;if(typeof _=="function")return _.$$typeof===j?null:_.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case g:return"Fragment";case v:return"Profiler";case m:return"StrictMode";case E:return"Suspense";case A:return"SuspenseList";case M:return"Activity"}if(typeof _=="object")switch(_.$$typeof){case p:return"Portal";case b:return _.displayName||"Context";case y:return(_._context.displayName||"Context")+".Consumer";case w:var x=_.render;return _=_.displayName,_||(_=x.displayName||x.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case D:return x=_.displayName||null,x!==null?x:W(_.type)||"Memo";case T:x=_._payload,_=_._init;try{return W(_(x))}catch{}}return null}var J=Array.isArray,ee=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},q=[],le=-1;function Y(_){return{current:_}}function G(_){0>le||(_.current=q[le],q[le]=null,le--)}function pe(_,x){le++,q[le]=_.current,_.current=x}var U=Y(null),K=Y(null),ie=Y(null),ce=Y(null);function de(_,x){switch(pe(ie,x),pe(K,_),pe(U,null),x.nodeType){case 9:case 11:_=(_=x.documentElement)&&(_=_.namespaceURI)?Ent(_):0;break;default:if(_=x.tagName,x=x.namespaceURI)x=Ent(x),_=Ant(x,_);else switch(_){case"svg":_=1;break;case"math":_=2;break;default:_=0}}G(U),pe(U,_)}function oe(){G(U),G(K),G(ie)}function me(_){_.memoizedState!==null&&pe(ce,_);var x=U.current,L=Ant(x,_.type);x!==L&&(pe(K,_),pe(U,L))}function Ce(_){K.current===_&&(G(U),G(K)),ce.current===_&&(G(ce),gz._currentValue=H)}var Se,De;function Me(_){if(Se===void 0)try{throw Error()}catch(L){var x=L.stack.trim().match(/\n( *(at )?)/);Se=x&&x[1]||"",De=-1<L.stack.indexOf(`
    at`)?" (<anonymous>)":-1<L.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Se+_+De}var qe=!1;function $(_,x){if(!_||qe)return"";qe=!0;var L=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var B={DetermineComponentFrameRoot:function(){try{if(x){var vi=function(){throw Error()};if(Object.defineProperty(vi.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(vi,[])}catch(Vn){var Ln=Vn}Reflect.construct(_,[],vi)}else{try{vi.call()}catch(Vn){Ln=Vn}_.call(vi.prototype)}}else{try{throw Error()}catch(Vn){Ln=Vn}(vi=_())&&typeof vi.catch=="function"&&vi.catch(function(){})}}catch(Vn){if(Vn&&Ln&&typeof Vn.stack=="string")return[Vn.stack,Ln.stack]}return[null,null]}};B.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var ae=Object.getOwnPropertyDescriptor(B.DetermineComponentFrameRoot,"name");ae&&ae.configurable&&Object.defineProperty(B.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var fe=B.DetermineComponentFrameRoot(),je=fe[0],tt=fe[1];if(je&&tt){var Wt=je.split(`
`),Cn=tt.split(`
`);for(ae=B=0;B<Wt.length&&!Wt[B].includes("DetermineComponentFrameRoot");)B++;for(;ae<Cn.length&&!Cn[ae].includes("DetermineComponentFrameRoot");)ae++;if(B===Wt.length||ae===Cn.length)for(B=Wt.length-1,ae=Cn.length-1;1<=B&&0<=ae&&Wt[B]!==Cn[ae];)ae--;for(;1<=B&&0<=ae;B--,ae--)if(Wt[B]!==Cn[ae]){if(B!==1||ae!==1)do if(B--,ae--,0>ae||Wt[B]!==Cn[ae]){var ei=`
`+Wt[B].replace(" at new "," at ");return _.displayName&&ei.includes("<anonymous>")&&(ei=ei.replace("<anonymous>",_.displayName)),ei}while(1<=B&&0<=ae);break}}}finally{qe=!1,Error.prepareStackTrace=L}return(L=_?_.displayName||_.name:"")?Me(L):""}function he(_,x){switch(_.tag){case 26:case 27:case 5:return Me(_.type);case 16:return Me("Lazy");case 13:return _.child!==x&&x!==null?Me("Suspense Fallback"):Me("Suspense");case 19:return Me("SuspenseList");case 0:case 15:return $(_.type,!1);case 11:return $(_.type.render,!1);case 1:return $(_.type,!0);case 31:return Me("Activity");default:return""}}function Ie(_){try{var x="",L=null;do x+=he(_,L),L=_,_=_.return;while(_);return x}catch(B){return`
Error generating stack: `+B.message+`
`+B.stack}}var Be=Object.prototype.hasOwnProperty,ze=e.unstable_scheduleCallback,Ye=e.unstable_cancelCallback,it=e.unstable_shouldYield,ft=e.unstable_requestPaint,ct=e.unstable_now,et=e.unstable_getCurrentPriorityLevel,ut=e.unstable_ImmediatePriority,wt=e.unstable_UserBlockingPriority,pt=e.unstable_NormalPriority,_t=e.unstable_LowPriority,Rt=e.unstable_IdlePriority,Yt=e.log,Ut=e.unstable_setDisableYieldValue,Gt=null,Kt=null;function ln(_){if(typeof Yt=="function"&&Ut(_),Kt&&typeof Kt.setStrictMode=="function")try{Kt.setStrictMode(Gt,_)}catch{}}var pn=Math.clz32?Math.clz32:Yn,wn=Math.log,Mn=Math.LN2;function Yn(_){return _>>>=0,_===0?32:31-(wn(_)/Mn|0)|0}var di=256,Li=262144,ke=4194304;function Z(_){var x=_&42;if(x!==0)return x;switch(_&-_){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return _&261888;case 262144:case 524288:case 1048576:case 2097152:return _&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return _&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return _}}function ne(_,x,L){var B=_.pendingLanes;if(B===0)return 0;var ae=0,fe=_.suspendedLanes,je=_.pingedLanes;_=_.warmLanes;var tt=B&134217727;return tt!==0?(B=tt&~fe,B!==0?ae=Z(B):(je&=tt,je!==0?ae=Z(je):L||(L=tt&~_,L!==0&&(ae=Z(L))))):(tt=B&~fe,tt!==0?ae=Z(tt):je!==0?ae=Z(je):L||(L=B&~_,L!==0&&(ae=Z(L)))),ae===0?0:x!==0&&x!==ae&&(x&fe)===0&&(fe=ae&-ae,L=x&-x,fe>=L||fe===32&&(L&4194048)!==0)?x:ae}function V(_,x){return(_.pendingLanes&~(_.suspendedLanes&~_.pingedLanes)&x)===0}function re(_,x){switch(_){case 1:case 2:case 4:case 8:case 64:return x+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return x+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ge(){var _=ke;return ke<<=1,(ke&62914560)===0&&(ke=4194304),_}function we(_){for(var x=[],L=0;31>L;L++)x.push(_);return x}function ve(_,x){_.pendingLanes|=x,x!==268435456&&(_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0)}function _e(_,x,L,B,ae,fe){var je=_.pendingLanes;_.pendingLanes=L,_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0,_.expiredLanes&=L,_.entangledLanes&=L,_.errorRecoveryDisabledLanes&=L,_.shellSuspendCounter=0;var tt=_.entanglements,Wt=_.expirationTimes,Cn=_.hiddenUpdates;for(L=je&~L;0<L;){var ei=31-pn(L),vi=1<<ei;tt[ei]=0,Wt[ei]=-1;var Ln=Cn[ei];if(Ln!==null)for(Cn[ei]=null,ei=0;ei<Ln.length;ei++){var Vn=Ln[ei];Vn!==null&&(Vn.lane&=-536870913)}L&=~vi}B!==0&&Ee(_,B,0),fe!==0&&ae===0&&_.tag!==0&&(_.suspendedLanes|=fe&~(je&~x))}function Ee(_,x,L){_.pendingLanes|=x,_.suspendedLanes&=~x;var B=31-pn(x);_.entangledLanes|=x,_.entanglements[B]=_.entanglements[B]|1073741824|L&261930}function Le(_,x){var L=_.entangledLanes|=x;for(_=_.entanglements;L;){var B=31-pn(L),ae=1<<B;ae&x|_[B]&x&&(_[B]|=x),L&=~ae}}function be(_,x){var L=x&-x;return L=(L&42)!==0?1:Fe(L),(L&(_.suspendedLanes|x))!==0?0:L}function Fe(_){switch(_){case 2:_=1;break;case 8:_=4;break;case 32:_=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:_=128;break;case 268435456:_=134217728;break;default:_=0}return _}function Ze(_){return _&=-_,2<_?8<_?(_&134217727)!==0?32:268435456:8:2}function Ve(){var _=Q.p;return _!==0?_:(_=window.event,_===void 0?32:Ynt(_.type))}function dt(_,x){var L=Q.p;try{return Q.p=_,x()}finally{Q.p=L}}var Vt=Math.random().toString(36).slice(2),Xe="__reactFiber$"+Vt,Ht="__reactProps$"+Vt,Qt="__reactContainer$"+Vt,Dt="__reactEvents$"+Vt,Tt="__reactListeners$"+Vt,en="__reactHandles$"+Vt,Bt="__reactResources$"+Vt,Ue="__reactMarker$"+Vt;function Lt(_){delete _[Xe],delete _[Ht],delete _[Dt],delete _[Tt],delete _[en]}function at(_){var x=_[Xe];if(x)return x;for(var L=_.parentNode;L;){if(x=L[Qt]||L[Xe]){if(L=x.alternate,x.child!==null||L!==null&&L.child!==null)for(_=Pnt(_);_!==null;){if(L=_[Xe])return L;_=Pnt(_)}return x}_=L,L=_.parentNode}return null}function cn(_){if(_=_[Xe]||_[Qt]){var x=_.tag;if(x===5||x===6||x===13||x===31||x===26||x===27||x===3)return _}return null}function Bn(_){var x=_.tag;if(x===5||x===26||x===27||x===6)return _.stateNode;throw Error(i(33))}function Tn(_){var x=_[Bt];return x||(x=_[Bt]={hoistableStyles:new Map,hoistableScripts:new Map}),x}function xi(_){_[Ue]=!0}var Zi=new Set,dn={};function fi(_,x){Fr(_,x),Fr(_+"Capture",x)}function Fr(_,x){for(dn[_]=x,_=0;_<x.length;_++)Zi.add(x[_])}var Wo=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Mo={},Us={};function nl(_){return Be.call(Us,_)?!0:Be.call(Mo,_)?!1:Wo.test(_)?Us[_]=!0:(Mo[_]=!0,!1)}function Ai(_,x,L){if(nl(x))if(L===null)_.removeAttribute(x);else{switch(typeof L){case"undefined":case"function":case"symbol":_.removeAttribute(x);return;case"boolean":var B=x.toLowerCase().slice(0,5);if(B!=="data-"&&B!=="aria-"){_.removeAttribute(x);return}}_.setAttribute(x,""+L)}}function dr(_,x,L){if(L===null)_.removeAttribute(x);else{switch(typeof L){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute(x);return}_.setAttribute(x,""+L)}}function es(_,x,L,B){if(B===null)_.removeAttribute(L);else{switch(typeof B){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute(L);return}_.setAttributeNS(x,L,""+B)}}function ds(_){switch(typeof _){case"bigint":case"boolean":case"number":case"string":case"undefined":return _;case"object":return _;default:return""}}function Jr(_){var x=_.type;return(_=_.nodeName)&&_.toLowerCase()==="input"&&(x==="checkbox"||x==="radio")}function Xu(_,x,L){var B=Object.getOwnPropertyDescriptor(_.constructor.prototype,x);if(!_.hasOwnProperty(x)&&typeof B<"u"&&typeof B.get=="function"&&typeof B.set=="function"){var ae=B.get,fe=B.set;return Object.defineProperty(_,x,{configurable:!0,get:function(){return ae.call(this)},set:function(je){L=""+je,fe.call(this,je)}}),Object.defineProperty(_,x,{enumerable:B.enumerable}),{getValue:function(){return L},setValue:function(je){L=""+je},stopTracking:function(){_._valueTracker=null,delete _[x]}}}}function Dc(_){if(!_._valueTracker){var x=Jr(_)?"checked":"value";_._valueTracker=Xu(_,x,""+_[x])}}function Ju(_){if(!_)return!1;var x=_._valueTracker;if(!x)return!0;var L=x.getValue(),B="";return _&&(B=Jr(_)?_.checked?"true":"false":_.value),_=B,_!==L?(x.setValue(_),!0):!1}function ed(_){if(_=_||(typeof document<"u"?document:void 0),typeof _>"u")return null;try{return _.activeElement||_.body}catch{return _.body}}var pa=/[\n"\\]/g;function il(_){return _.replace(pa,function(x){return"\\"+x.charCodeAt(0).toString(16)+" "})}function td(_,x,L,B,ae,fe,je,tt){_.name="",je!=null&&typeof je!="function"&&typeof je!="symbol"&&typeof je!="boolean"?_.type=je:_.removeAttribute("type"),x!=null?je==="number"?(x===0&&_.value===""||_.value!=x)&&(_.value=""+ds(x)):_.value!==""+ds(x)&&(_.value=""+ds(x)):je!=="submit"&&je!=="reset"||_.removeAttribute("value"),x!=null?Cf(_,je,ds(x)):L!=null?Cf(_,je,ds(L)):B!=null&&_.removeAttribute("value"),ae==null&&fe!=null&&(_.defaultChecked=!!fe),ae!=null&&(_.checked=ae&&typeof ae!="function"&&typeof ae!="symbol"),tt!=null&&typeof tt!="function"&&typeof tt!="symbol"&&typeof tt!="boolean"?_.name=""+ds(tt):_.removeAttribute("name")}function lc(_,x,L,B,ae,fe,je,tt){if(fe!=null&&typeof fe!="function"&&typeof fe!="symbol"&&typeof fe!="boolean"&&(_.type=fe),x!=null||L!=null){if(!(fe!=="submit"&&fe!=="reset"||x!=null)){Dc(_);return}L=L!=null?""+ds(L):"",x=x!=null?""+ds(x):L,tt||x===_.value||(_.value=x),_.defaultValue=x}B=B??ae,B=typeof B!="function"&&typeof B!="symbol"&&!!B,_.checked=tt?_.checked:!!B,_.defaultChecked=!!B,je!=null&&typeof je!="function"&&typeof je!="symbol"&&typeof je!="boolean"&&(_.name=je),Dc(_)}function Cf(_,x,L){x==="number"&&ed(_.ownerDocument)===_||_.defaultValue===""+L||(_.defaultValue=""+L)}function Tc(_,x,L,B){if(_=_.options,x){x={};for(var ae=0;ae<L.length;ae++)x["$"+L[ae]]=!0;for(L=0;L<_.length;L++)ae=x.hasOwnProperty("$"+_[L].value),_[L].selected!==ae&&(_[L].selected=ae),ae&&B&&(_[L].defaultSelected=!0)}else{for(L=""+ds(L),x=null,ae=0;ae<_.length;ae++){if(_[ae].value===L){_[ae].selected=!0,B&&(_[ae].defaultSelected=!0);return}x!==null||_[ae].disabled||(x=_[ae])}x!==null&&(x.selected=!0)}}function Ig(_,x,L){if(x!=null&&(x=""+ds(x),x!==_.value&&(_.value=x),L==null)){_.defaultValue!==x&&(_.defaultValue=x);return}_.defaultValue=L!=null?""+ds(L):""}function Bu(_,x,L,B){if(x==null){if(B!=null){if(L!=null)throw Error(i(92));if(J(B)){if(1<B.length)throw Error(i(93));B=B[0]}L=B}L==null&&(L=""),x=L}L=ds(x),_.defaultValue=L,B=_.textContent,B===L&&B!==""&&B!==null&&(_.value=B),Dc(_)}function ju(_,x){if(x){var L=_.firstChild;if(L&&L===_.lastChild&&L.nodeType===3){L.nodeValue=x;return}}_.textContent=x}var Mp=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Op(_,x,L){var B=x.indexOf("--")===0;L==null||typeof L=="boolean"||L===""?B?_.setProperty(x,""):x==="float"?_.cssFloat="":_[x]="":B?_.setProperty(x,L):typeof L!="number"||L===0||Mp.has(x)?x==="float"?_.cssFloat=L:_[x]=(""+L).trim():_[x]=L+"px"}function xd(_,x,L){if(x!=null&&typeof x!="object")throw Error(i(62));if(_=_.style,L!=null){for(var B in L)!L.hasOwnProperty(B)||x!=null&&x.hasOwnProperty(B)||(B.indexOf("--")===0?_.setProperty(B,""):B==="float"?_.cssFloat="":_[B]="");for(var ae in x)B=x[ae],x.hasOwnProperty(ae)&&L[ae]!==B&&Op(_,ae,B)}else for(var fe in x)x.hasOwnProperty(fe)&&Op(_,fe,x[fe])}function Sf(_){if(_.indexOf("-")===-1)return!1;switch(_){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Mh=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Sm=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function io(_){return Sm.test(""+_)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":_}function Ml(){}var Rp=null;function xf(_){return _=_.target||_.srcElement||window,_.correspondingUseElement&&(_=_.correspondingUseElement),_.nodeType===3?_.parentNode:_}var kc=null,nd=null;function Ic(_){var x=cn(_);if(x&&(_=x.stateNode)){var L=_[Ht]||null;e:switch(_=x.stateNode,x.type){case"input":if(td(_,L.value,L.defaultValue,L.defaultValue,L.checked,L.defaultChecked,L.type,L.name),x=L.name,L.type==="radio"&&x!=null){for(L=_;L.parentNode;)L=L.parentNode;for(L=L.querySelectorAll('input[name="'+il(""+x)+'"][type="radio"]'),x=0;x<L.length;x++){var B=L[x];if(B!==_&&B.form===_.form){var ae=B[Ht]||null;if(!ae)throw Error(i(90));td(B,ae.value,ae.defaultValue,ae.defaultValue,ae.checked,ae.defaultChecked,ae.type,ae.name)}}for(x=0;x<L.length;x++)B=L[x],B.form===_.form&&Ju(B)}break e;case"textarea":Ig(_,L.value,L.defaultValue);break e;case"select":x=L.value,x!=null&&Tc(_,!!L.multiple,x,!1)}}}var Eu=!1;function Ed(_,x,L){if(Eu)return _(x,L);Eu=!0;try{var B=_(x);return B}finally{if(Eu=!1,(kc!==null||nd!==null)&&(sX(),kc&&(x=kc,_=nd,nd=kc=null,Ic(x),_)))for(x=0;x<_.length;x++)Ic(_[x])}}function $c(_,x){var L=_.stateNode;if(L===null)return null;var B=L[Ht]||null;if(B===null)return null;L=B[x];e:switch(x){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(B=!B.disabled)||(_=_.type,B=!(_==="button"||_==="input"||_==="select"||_==="textarea")),_=!B;break e;default:_=!1}if(_)return null;if(L&&typeof L!="function")throw Error(i(231,x,typeof L));return L}var Lc=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ef=!1;if(Lc)try{var cc={};Object.defineProperty(cc,"passive",{get:function(){Ef=!0}}),window.addEventListener("test",cc,cc),window.removeEventListener("test",cc,cc)}catch{Ef=!1}var Au=null,xe=null,Ke=null;function nt(){if(Ke)return Ke;var _,x=xe,L=x.length,B,ae="value"in Au?Au.value:Au.textContent,fe=ae.length;for(_=0;_<L&&x[_]===ae[_];_++);var je=L-_;for(B=1;B<=je&&x[L-B]===ae[fe-B];B++);return Ke=ae.slice(_,1<B?1-B:void 0)}function kt(_){var x=_.keyCode;return"charCode"in _?(_=_.charCode,_===0&&x===13&&(_=13)):_=x,_===10&&(_=13),32<=_||_===13?_:0}function Oe(){return!0}function st(){return!1}function $t(_){function x(L,B,ae,fe,je){this._reactName=L,this._targetInst=ae,this.type=B,this.nativeEvent=fe,this.target=je,this.currentTarget=null;for(var tt in _)_.hasOwnProperty(tt)&&(L=_[tt],this[tt]=L?L(fe):fe[tt]);return this.isDefaultPrevented=(fe.defaultPrevented!=null?fe.defaultPrevented:fe.returnValue===!1)?Oe:st,this.isPropagationStopped=st,this}return d(x.prototype,{preventDefault:function(){this.defaultPrevented=!0;var L=this.nativeEvent;L&&(L.preventDefault?L.preventDefault():typeof L.returnValue!="unknown"&&(L.returnValue=!1),this.isDefaultPrevented=Oe)},stopPropagation:function(){var L=this.nativeEvent;L&&(L.stopPropagation?L.stopPropagation():typeof L.cancelBubble!="unknown"&&(L.cancelBubble=!0),this.isPropagationStopped=Oe)},persist:function(){},isPersistent:Oe}),x}var yi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(_){return _.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xr=$t(yi),Gn=d({},yi,{view:0,detail:0}),Go=$t(Gn),ro,ts,dl,hs=d({},Gn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Br,button:0,buttons:0,relatedTarget:function(_){return _.relatedTarget===void 0?_.fromElement===_.srcElement?_.toElement:_.fromElement:_.relatedTarget},movementX:function(_){return"movementX"in _?_.movementX:(_!==dl&&(dl&&_.type==="mousemove"?(ro=_.screenX-dl.screenX,ts=_.screenY-dl.screenY):ts=ro=0,dl=_),ro)},movementY:function(_){return"movementY"in _?_.movementY:ts}}),du=$t(hs),Zf=d({},hs,{dataTransfer:0}),Qd=$t(Zf),Je=d({},Gn,{relatedTarget:0}),zt=$t(Je),Kn=d({},yi,{animationName:0,elapsedTime:0,pseudoElement:0}),Mi=$t(Kn),Fo=d({},yi,{clipboardData:function(_){return"clipboardData"in _?_.clipboardData:window.clipboardData}}),Vr=$t(Fo),We=d({},yi,{data:0}),At=$t(We),mn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bi={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Dr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xi(_){var x=this.nativeEvent;return x.getModifierState?x.getModifierState(_):(_=Dr[_])?!!x[_]:!1}function Br(){return Xi}var _a=d({},Gn,{key:function(_){if(_.key){var x=mn[_.key]||_.key;if(x!=="Unidentified")return x}return _.type==="keypress"?(_=kt(_),_===13?"Enter":String.fromCharCode(_)):_.type==="keydown"||_.type==="keyup"?bi[_.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Br,charCode:function(_){return _.type==="keypress"?kt(_):0},keyCode:function(_){return _.type==="keydown"||_.type==="keyup"?_.keyCode:0},which:function(_){return _.type==="keypress"?kt(_):_.type==="keydown"||_.type==="keyup"?_.keyCode:0}}),fs=$t(_a),hl=d({},hs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ol=$t(hl),Yl=d({},Gn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Br}),Du=$t(Yl),Nc=d({},yi,{propertyName:0,elapsedTime:0,pseudoElement:0}),id=$t(Nc),Xf=d({},hs,{deltaX:function(_){return"deltaX"in _?_.deltaX:"wheelDeltaX"in _?-_.wheelDeltaX:0},deltaY:function(_){return"deltaY"in _?_.deltaY:"wheelDeltaY"in _?-_.wheelDeltaY:"wheelDelta"in _?-_.wheelDelta:0},deltaZ:0,deltaMode:0}),Lg=$t(Xf),Ng=d({},yi,{newState:0,oldState:0}),Ob=$t(Ng),Rb=[9,13,27,32],Fb=Lc&&"CompositionEvent"in window,ME=null;Lc&&"documentMode"in document&&(ME=document.documentMode);var Vj=Lc&&"TextEvent"in window&&!ME,cP=Lc&&(!Fb||ME&&8<ME&&11>=ME),GF=" ",FT=!1;function BT(_,x){switch(_){case"keyup":return Rb.indexOf(x.keyCode)!==-1;case"keydown":return x.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uP(_){return _=_.detail,typeof _=="object"&&"data"in _?_.data:null}var lS=!1;function jT(_,x){switch(_){case"compositionend":return uP(x);case"keypress":return x.which!==32?null:(FT=!0,GF);case"textInput":return _=x.data,_===GF&&FT?null:_;default:return null}}function zT(_,x){if(lS)return _==="compositionend"||!Fb&&BT(_,x)?(_=nt(),Ke=xe=Au=null,lS=!1,_):null;switch(_){case"paste":return null;case"keypress":if(!(x.ctrlKey||x.altKey||x.metaKey)||x.ctrlKey&&x.altKey){if(x.char&&1<x.char.length)return x.char;if(x.which)return String.fromCharCode(x.which)}return null;case"compositionend":return cP&&x.locale!=="ko"?null:x.data;default:return null}}var Hj={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function dP(_){var x=_&&_.nodeName&&_.nodeName.toLowerCase();return x==="input"?!!Hj[_.type]:x==="textarea"}function Ow(_,x,L,B){kc?nd?nd.push(B):nd=[B]:kc=B,x=fX(x,"onChange"),0<x.length&&(L=new xr("onChange","change",null,L,B),_.push({event:L,listeners:x}))}var cS=null,OE=null;function Wj(_){bnt(_,0)}function uS(_){var x=Bn(_);if(Ju(x))return _}function VT(_,x){if(_==="change")return x}var KF=!1;if(Lc){var xm;if(Lc){var Pg="oninput"in document;if(!Pg){var HT=document.createElement("div");HT.setAttribute("oninput","return;"),Pg=typeof HT.oninput=="function"}xm=Pg}else xm=!1;KF=xm&&(!document.documentMode||9<document.documentMode)}function WT(){cS&&(cS.detachEvent("onpropertychange",UT),OE=cS=null)}function UT(_){if(_.propertyName==="value"&&uS(OE)){var x=[];Ow(x,OE,_,xf(_)),Ed(Wj,x)}}function RE(_,x,L){_==="focusin"?(WT(),cS=x,OE=L,cS.attachEvent("onpropertychange",UT)):_==="focusout"&&WT()}function Oh(_){if(_==="selectionchange"||_==="keyup"||_==="keydown")return uS(OE)}function FE(_,x){if(_==="click")return uS(x)}function Rw(_,x){if(_==="input"||_==="change")return uS(x)}function YF(_,x){return _===x&&(_!==0||1/_===1/x)||_!==_&&x!==x}var Rh=typeof Object.is=="function"?Object.is:YF;function dS(_,x){if(Rh(_,x))return!0;if(typeof _!="object"||_===null||typeof x!="object"||x===null)return!1;var L=Object.keys(_),B=Object.keys(x);if(L.length!==B.length)return!1;for(B=0;B<L.length;B++){var ae=L[B];if(!Be.call(x,ae)||!Rh(_[ae],x[ae]))return!1}return!0}function BE(_){for(;_&&_.firstChild;)_=_.firstChild;return _}function jE(_,x){var L=BE(_);_=0;for(var B;L;){if(L.nodeType===3){if(B=_+L.textContent.length,_<=x&&B>=x)return{node:L,offset:x-_};_=B}e:{for(;L;){if(L.nextSibling){L=L.nextSibling;break e}L=L.parentNode}L=void 0}L=BE(L)}}function zE(_,x){return _&&x?_===x?!0:_&&_.nodeType===3?!1:x&&x.nodeType===3?zE(_,x.parentNode):"contains"in _?_.contains(x):_.compareDocumentPosition?!!(_.compareDocumentPosition(x)&16):!1:!1}function Bb(_){_=_!=null&&_.ownerDocument!=null&&_.ownerDocument.defaultView!=null?_.ownerDocument.defaultView:window;for(var x=ed(_.document);x instanceof _.HTMLIFrameElement;){try{var L=typeof x.contentWindow.location.href=="string"}catch{L=!1}if(L)_=x.contentWindow;else break;x=ed(_.document)}return x}function VE(_){var x=_&&_.nodeName&&_.nodeName.toLowerCase();return x&&(x==="input"&&(_.type==="text"||_.type==="search"||_.type==="tel"||_.type==="url"||_.type==="password")||x==="textarea"||_.contentEditable==="true")}var hP=Lc&&"documentMode"in document&&11>=document.documentMode,ry=null,oy=null,$v=null,fP=!1;function $T(_,x,L){var B=L.window===L?L.document:L.nodeType===9?L:L.ownerDocument;fP||ry==null||ry!==ed(B)||(B=ry,"selectionStart"in B&&VE(B)?B={start:B.selectionStart,end:B.selectionEnd}:(B=(B.ownerDocument&&B.ownerDocument.defaultView||window).getSelection(),B={anchorNode:B.anchorNode,anchorOffset:B.anchorOffset,focusNode:B.focusNode,focusOffset:B.focusOffset}),$v&&dS($v,B)||($v=B,B=fX(oy,"onSelect"),0<B.length&&(x=new xr("onSelect","select",null,x,L),_.push({event:x,listeners:B}),x.target=ry)))}function Fw(_,x){var L={};return L[_.toLowerCase()]=x.toLowerCase(),L["Webkit"+_]="webkit"+x,L["Moz"+_]="moz"+x,L}var Bw={animationend:Fw("Animation","AnimationEnd"),animationiteration:Fw("Animation","AnimationIteration"),animationstart:Fw("Animation","AnimationStart"),transitionrun:Fw("Transition","TransitionRun"),transitionstart:Fw("Transition","TransitionStart"),transitioncancel:Fw("Transition","TransitionCancel"),transitionend:Fw("Transition","TransitionEnd")},It={},QF={};Lc&&(QF=document.createElement("div").style,"AnimationEvent"in window||(delete Bw.animationend.animation,delete Bw.animationiteration.animation,delete Bw.animationstart.animation),"TransitionEvent"in window||delete Bw.transitionend.transition);function jw(_){if(It[_])return It[_];if(!Bw[_])return _;var x=Bw[_],L;for(L in x)if(x.hasOwnProperty(L)&&L in QF)return It[_]=x[L];return _}var qT=jw("animationend"),zw=jw("animationiteration"),ZF=jw("animationstart"),Uj=jw("transitionrun"),pP=jw("transitionstart"),gP=jw("transitioncancel"),mP=jw("transitionend"),vP=new Map,GT="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");GT.push("scrollEnd");function Mg(_,x){vP.set(_,x),fi(x,[_])}var HE=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var x=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(x))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},Fp=[],hS=0,WE=0;function jb(){for(var _=hS,x=WE=hS=0;x<_;){var L=Fp[x];Fp[x++]=null;var B=Fp[x];Fp[x++]=null;var ae=Fp[x];Fp[x++]=null;var fe=Fp[x];if(Fp[x++]=null,B!==null&&ae!==null){var je=B.pending;je===null?ae.next=ae:(ae.next=je.next,je.next=ae),B.pending=ae}fe!==0&&XF(L,ae,fe)}}function UE(_,x,L,B){Fp[hS++]=_,Fp[hS++]=x,Fp[hS++]=L,Fp[hS++]=B,WE|=B,_.lanes|=B,_=_.alternate,_!==null&&(_.lanes|=B)}function yP(_,x,L,B){return UE(_,x,L,B),$E(_)}function Vw(_,x){return UE(_,null,null,x),$E(_)}function XF(_,x,L){_.lanes|=L;var B=_.alternate;B!==null&&(B.lanes|=L);for(var ae=!1,fe=_.return;fe!==null;)fe.childLanes|=L,B=fe.alternate,B!==null&&(B.childLanes|=L),fe.tag===22&&(_=fe.stateNode,_===null||_._visibility&1||(ae=!0)),_=fe,fe=fe.return;return _.tag===3?(fe=_.stateNode,ae&&x!==null&&(ae=31-pn(L),_=fe.hiddenUpdates,B=_[ae],B===null?_[ae]=[x]:B.push(x),x.lane=L|536870912),fe):null}function $E(_){if(50<lz)throw lz=0,Zbe=null,Error(i(185));for(var x=_.return;x!==null;)_=x,x=_.return;return _.tag===3?_.stateNode:null}var fS={};function JF(_,x,L,B){this.tag=_,this.key=L,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=x,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=B,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bp(_,x,L,B){return new JF(_,x,L,B)}function pS(_){return _=_.prototype,!(!_||!_.isReactComponent)}function Zd(_,x){var L=_.alternate;return L===null?(L=Bp(_.tag,x,_.key,_.mode),L.elementType=_.elementType,L.type=_.type,L.stateNode=_.stateNode,L.alternate=_,_.alternate=L):(L.pendingProps=x,L.type=_.type,L.flags=0,L.subtreeFlags=0,L.deletions=null),L.flags=_.flags&65011712,L.childLanes=_.childLanes,L.lanes=_.lanes,L.child=_.child,L.memoizedProps=_.memoizedProps,L.memoizedState=_.memoizedState,L.updateQueue=_.updateQueue,x=_.dependencies,L.dependencies=x===null?null:{lanes:x.lanes,firstContext:x.firstContext},L.sibling=_.sibling,L.index=_.index,L.ref=_.ref,L.refCleanup=_.refCleanup,L}function e5(_,x){_.flags&=65011714;var L=_.alternate;return L===null?(_.childLanes=0,_.lanes=x,_.child=null,_.subtreeFlags=0,_.memoizedProps=null,_.memoizedState=null,_.updateQueue=null,_.dependencies=null,_.stateNode=null):(_.childLanes=L.childLanes,_.lanes=L.lanes,_.child=L.child,_.subtreeFlags=0,_.deletions=null,_.memoizedProps=L.memoizedProps,_.memoizedState=L.memoizedState,_.updateQueue=L.updateQueue,_.type=L.type,x=L.dependencies,_.dependencies=x===null?null:{lanes:x.lanes,firstContext:x.firstContext}),_}function KT(_,x,L,B,ae,fe){var je=0;if(B=_,typeof _=="function")pS(_)&&(je=1);else if(typeof _=="string")je=ZPn(_,L,U.current)?26:_==="html"||_==="head"||_==="body"?27:5;else e:switch(_){case M:return _=Bp(31,L,x,ae),_.elementType=M,_.lanes=fe,_;case g:return qv(L.children,ae,fe,x);case m:je=8,ae|=24;break;case v:return _=Bp(12,L,x,ae|2),_.elementType=v,_.lanes=fe,_;case E:return _=Bp(13,L,x,ae),_.elementType=E,_.lanes=fe,_;case A:return _=Bp(19,L,x,ae),_.elementType=A,_.lanes=fe,_;default:if(typeof _=="object"&&_!==null)switch(_.$$typeof){case b:je=10;break e;case y:je=9;break e;case w:je=11;break e;case D:je=14;break e;case T:je=16,B=null;break e}je=29,L=Error(i(130,_===null?"null":typeof _,"")),B=null}return x=Bp(je,L,x,ae),x.elementType=_,x.type=B,x.lanes=fe,x}function qv(_,x,L,B){return _=Bp(7,_,B,x),_.lanes=L,_}function qE(_,x,L){return _=Bp(6,_,null,x),_.lanes=L,_}function zb(_){var x=Bp(18,null,null,0);return x.stateNode=_,x}function GE(_,x,L){return x=Bp(4,_.children!==null?_.children:[],_.key,x),x.lanes=L,x.stateNode={containerInfo:_.containerInfo,pendingChildren:null,implementation:_.implementation},x}var sy=new WeakMap;function qc(_,x){if(typeof _=="object"&&_!==null){var L=sy.get(_);return L!==void 0?L:(x={value:_,source:x,stack:Ie(x)},sy.set(_,x),x)}return{value:_,source:x,stack:Ie(x)}}var Gv=[],Hw=0,YT=null,KE=0,jp=[],X=0,te=null,ye=1,Ae="";function Pe(_,x){Gv[Hw++]=KE,Gv[Hw++]=YT,YT=_,KE=x}function He(_,x,L){jp[X++]=ye,jp[X++]=Ae,jp[X++]=te,te=_;var B=ye;_=Ae;var ae=32-pn(B)-1;B&=~(1<<ae),L+=1;var fe=32-pn(x)+ae;if(30<fe){var je=ae-ae%5;fe=(B&(1<<je)-1).toString(32),B>>=je,ae-=je,ye=1<<32-pn(x)+ae|L<<ae|B,Ae=fe+_}else ye=1<<fe|L<<ae|B,Ae=_}function rt(_){_.return!==null&&(Pe(_,1),He(_,1,0))}function ht(_){for(;_===YT;)YT=Gv[--Hw],Gv[Hw]=null,KE=Gv[--Hw],Gv[Hw]=null;for(;_===te;)te=jp[--X],jp[X]=null,Ae=jp[--X],jp[X]=null,ye=jp[--X],jp[X]=null}function yt(_,x){jp[X++]=ye,jp[X++]=Ae,jp[X++]=te,ye=x.id,Ae=x.overflow,te=_}var Ft=null,Zt=null,jt=!1,jn=null,Ei=!1,sn=Error(i(519));function vn(_){var x=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw oi(qc(x,_)),sn}function zn(_){var x=_.stateNode,L=_.type,B=_.memoizedProps;switch(x[Xe]=_,x[Ht]=B,L){case"dialog":Ta("cancel",x),Ta("close",x);break;case"iframe":case"object":case"embed":Ta("load",x);break;case"video":case"audio":for(L=0;L<uz.length;L++)Ta(uz[L],x);break;case"source":Ta("error",x);break;case"img":case"image":case"link":Ta("error",x),Ta("load",x);break;case"details":Ta("toggle",x);break;case"input":Ta("invalid",x),lc(x,B.value,B.defaultValue,B.checked,B.defaultChecked,B.type,B.name,!0);break;case"select":Ta("invalid",x);break;case"textarea":Ta("invalid",x),Bu(x,B.value,B.defaultValue,B.children)}L=B.children,typeof L!="string"&&typeof L!="number"&&typeof L!="bigint"||x.textContent===""+L||B.suppressHydrationWarning===!0||Snt(x.textContent,L)?(B.popover!=null&&(Ta("beforetoggle",x),Ta("toggle",x)),B.onScroll!=null&&Ta("scroll",x),B.onScrollEnd!=null&&Ta("scrollend",x),B.onClick!=null&&(x.onclick=Ml),x=!0):x=!1,x||vn(_,!0)}function Jn(_){for(Ft=_.return;Ft;)switch(Ft.tag){case 5:case 31:case 13:Ei=!1;return;case 27:case 3:Ei=!0;return;default:Ft=Ft.return}}function si(_){if(_!==Ft)return!1;if(!jt)return Jn(_),jt=!0,!1;var x=_.tag,L;if((L=x!==3&&x!==27)&&((L=x===5)&&(L=_.type,L=!(L!=="form"&&L!=="button")||h_e(_.type,_.memoizedProps)),L=!L),L&&Zt&&vn(_),Jn(_),x===13){if(_=_.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(i(317));Zt=Nnt(_)}else if(x===31){if(_=_.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(i(317));Zt=Nnt(_)}else x===27?(x=Zt,lk(_.type)?(_=v_e,v_e=null,Zt=_):Zt=x):Zt=Ft?Hb(_.stateNode.nextSibling):null;return!0}function ii(){Zt=Ft=null,jt=!1}function mi(){var _=jn;return _!==null&&(Zv===null?Zv=_:Zv.push.apply(Zv,_),jn=null),_}function oi(_){jn===null?jn=[_]:jn.push(_)}var or=Y(null),sr=null,Gi=null;function eo(_,x,L){pe(or,x._currentValue),x._currentValue=L}function Uo(_){_._currentValue=or.current,G(or)}function Er(_,x,L){for(;_!==null;){var B=_.alternate;if((_.childLanes&x)!==x?(_.childLanes|=x,B!==null&&(B.childLanes|=x)):B!==null&&(B.childLanes&x)!==x&&(B.childLanes|=x),_===L)break;_=_.return}}function ps(_,x,L,B){var ae=_.child;for(ae!==null&&(ae.return=_);ae!==null;){var fe=ae.dependencies;if(fe!==null){var je=ae.child;fe=fe.firstContext;e:for(;fe!==null;){var tt=fe;fe=ae;for(var Wt=0;Wt<x.length;Wt++)if(tt.context===x[Wt]){fe.lanes|=L,tt=fe.alternate,tt!==null&&(tt.lanes|=L),Er(fe.return,L,_),B||(je=null);break e}fe=tt.next}}else if(ae.tag===18){if(je=ae.return,je===null)throw Error(i(341));je.lanes|=L,fe=je.alternate,fe!==null&&(fe.lanes|=L),Er(je,L,_),je=null}else je=ae.child;if(je!==null)je.return=ae;else for(je=ae;je!==null;){if(je===_){je=null;break}if(ae=je.sibling,ae!==null){ae.return=je.return,je=ae;break}je=je.return}ae=je}}function vo(_,x,L,B){_=null;for(var ae=x,fe=!1;ae!==null;){if(!fe){if((ae.flags&524288)!==0)fe=!0;else if((ae.flags&262144)!==0)break}if(ae.tag===10){var je=ae.alternate;if(je===null)throw Error(i(387));if(je=je.memoizedProps,je!==null){var tt=ae.type;Rh(ae.pendingProps.value,je.value)||(_!==null?_.push(tt):_=[tt])}}else if(ae===ce.current){if(je=ae.alternate,je===null)throw Error(i(387));je.memoizedState.memoizedState!==ae.memoizedState.memoizedState&&(_!==null?_.push(gz):_=[gz])}ae=ae.return}_!==null&&ps(x,_,L,B),x.flags|=262144}function k(_){for(_=_.firstContext;_!==null;){if(!Rh(_.context._currentValue,_.memoizedValue))return!0;_=_.next}return!1}function C(_){sr=_,Gi=null,_=_.dependencies,_!==null&&(_.firstContext=null)}function O(_){return ue(sr,_)}function z(_,x){return sr===null&&C(_),ue(_,x)}function ue(_,x){var L=x._currentValue;if(x={context:x,memoizedValue:L,next:null},Gi===null){if(_===null)throw Error(i(308));Gi=x,_.dependencies={lanes:0,firstContext:x},_.flags|=524288}else Gi=Gi.next=x;return L}var Ne=typeof AbortController<"u"?AbortController:function(){var _=[],x=this.signal={aborted:!1,addEventListener:function(L,B){_.push(B)}};this.abort=function(){x.aborted=!0,_.forEach(function(L){return L()})}},$e=e.unstable_scheduleCallback,ot=e.unstable_NormalPriority,vt={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xt(){return{controller:new Ne,data:new Map,refCount:0}}function Hn(_){_.refCount--,_.refCount===0&&$e(ot,function(){_.controller.abort()})}var Oi=null,fo=0,Ko=0,Gc=null;function Af(_,x){if(Oi===null){var L=Oi=[];fo=0,Ko=i_e(),Gc={status:"pending",value:void 0,then:function(B){L.push(B)}}}return fo++,x.then(zu,zu),x}function zu(){if(--fo===0&&Oi!==null){Gc!==null&&(Gc.status="fulfilled");var _=Oi;Oi=null,Ko=0,Gc=null;for(var x=0;x<_.length;x++)(0,_[x])()}}function rd(_,x){var L=[],B={status:"pending",value:null,reason:null,then:function(ae){L.push(ae)}};return _.then(function(){B.status="fulfilled",B.value=x;for(var ae=0;ae<L.length;ae++)(0,L[ae])(x)},function(ae){for(B.status="rejected",B.reason=ae,ae=0;ae<L.length;ae++)(0,L[ae])(void 0)}),B}var Og=ee.S;ee.S=function(_,x){Gtt=ct(),typeof x=="object"&&x!==null&&typeof x.then=="function"&&Af(_,x),Og!==null&&Og(_,x)};var Ww=Y(null);function bP(){var _=Ww.current;return _!==null?_:Kc.pooledCache}function MZ(_,x){x===null?pe(Ww,Ww.current):pe(Ww,x.pool)}function uet(){var _=bP();return _===null?null:{parent:vt._currentValue,pool:_}}var t5=Error(i(460)),nbe=Error(i(474)),OZ=Error(i(542)),RZ={then:function(){}};function det(_){return _=_.status,_==="fulfilled"||_==="rejected"}function het(_,x,L){switch(L=_[L],L===void 0?_.push(x):L!==x&&(x.then(Ml,Ml),x=L),x.status){case"fulfilled":return x.value;case"rejected":throw _=x.reason,pet(_),_;default:if(typeof x.status=="string")x.then(Ml,Ml);else{if(_=Kc,_!==null&&100<_.shellSuspendCounter)throw Error(i(482));_=x,_.status="pending",_.then(function(B){if(x.status==="pending"){var ae=x;ae.status="fulfilled",ae.value=B}},function(B){if(x.status==="pending"){var ae=x;ae.status="rejected",ae.reason=B}})}switch(x.status){case"fulfilled":return x.value;case"rejected":throw _=x.reason,pet(_),_}throw wP=x,t5}}function _P(_){try{var x=_._init;return x(_._payload)}catch(L){throw L!==null&&typeof L=="object"&&typeof L.then=="function"?(wP=L,t5):L}}var wP=null;function fet(){if(wP===null)throw Error(i(459));var _=wP;return wP=null,_}function pet(_){if(_===t5||_===OZ)throw Error(i(483))}var n5=null,$j=0;function FZ(_){var x=$j;return $j+=1,n5===null&&(n5=[]),het(n5,_,x)}function qj(_,x){x=x.props.ref,_.ref=x!==void 0?x:null}function BZ(_,x){throw x.$$typeof===h?Error(i(525)):(_=Object.prototype.toString.call(x),Error(i(31,_==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":_)))}function get(_){function x(un,Xt){if(_){var _n=un.deletions;_n===null?(un.deletions=[Xt],un.flags|=16):_n.push(Xt)}}function L(un,Xt){if(!_)return null;for(;Xt!==null;)x(un,Xt),Xt=Xt.sibling;return null}function B(un){for(var Xt=new Map;un!==null;)un.key!==null?Xt.set(un.key,un):Xt.set(un.index,un),un=un.sibling;return Xt}function ae(un,Xt){return un=Zd(un,Xt),un.index=0,un.sibling=null,un}function fe(un,Xt,_n){return un.index=_n,_?(_n=un.alternate,_n!==null?(_n=_n.index,_n<Xt?(un.flags|=67108866,Xt):_n):(un.flags|=67108866,Xt)):(un.flags|=1048576,Xt)}function je(un){return _&&un.alternate===null&&(un.flags|=67108866),un}function tt(un,Xt,_n,ci){return Xt===null||Xt.tag!==6?(Xt=qE(_n,un.mode,ci),Xt.return=un,Xt):(Xt=ae(Xt,_n),Xt.return=un,Xt)}function Wt(un,Xt,_n,ci){var Io=_n.type;return Io===g?ei(un,Xt,_n.props.children,ci,_n.key):Xt!==null&&(Xt.elementType===Io||typeof Io=="object"&&Io!==null&&Io.$$typeof===T&&_P(Io)===Xt.type)?(Xt=ae(Xt,_n.props),qj(Xt,_n),Xt.return=un,Xt):(Xt=KT(_n.type,_n.key,_n.props,null,un.mode,ci),qj(Xt,_n),Xt.return=un,Xt)}function Cn(un,Xt,_n,ci){return Xt===null||Xt.tag!==4||Xt.stateNode.containerInfo!==_n.containerInfo||Xt.stateNode.implementation!==_n.implementation?(Xt=GE(_n,un.mode,ci),Xt.return=un,Xt):(Xt=ae(Xt,_n.children||[]),Xt.return=un,Xt)}function ei(un,Xt,_n,ci,Io){return Xt===null||Xt.tag!==7?(Xt=qv(_n,un.mode,ci,Io),Xt.return=un,Xt):(Xt=ae(Xt,_n),Xt.return=un,Xt)}function vi(un,Xt,_n){if(typeof Xt=="string"&&Xt!==""||typeof Xt=="number"||typeof Xt=="bigint")return Xt=qE(""+Xt,un.mode,_n),Xt.return=un,Xt;if(typeof Xt=="object"&&Xt!==null){switch(Xt.$$typeof){case f:return _n=KT(Xt.type,Xt.key,Xt.props,null,un.mode,_n),qj(_n,Xt),_n.return=un,_n;case p:return Xt=GE(Xt,un.mode,_n),Xt.return=un,Xt;case T:return Xt=_P(Xt),vi(un,Xt,_n)}if(J(Xt)||N(Xt))return Xt=qv(Xt,un.mode,_n,null),Xt.return=un,Xt;if(typeof Xt.then=="function")return vi(un,FZ(Xt),_n);if(Xt.$$typeof===b)return vi(un,z(un,Xt),_n);BZ(un,Xt)}return null}function Ln(un,Xt,_n,ci){var Io=Xt!==null?Xt.key:null;if(typeof _n=="string"&&_n!==""||typeof _n=="number"||typeof _n=="bigint")return Io!==null?null:tt(un,Xt,""+_n,ci);if(typeof _n=="object"&&_n!==null){switch(_n.$$typeof){case f:return _n.key===Io?Wt(un,Xt,_n,ci):null;case p:return _n.key===Io?Cn(un,Xt,_n,ci):null;case T:return _n=_P(_n),Ln(un,Xt,_n,ci)}if(J(_n)||N(_n))return Io!==null?null:ei(un,Xt,_n,ci,null);if(typeof _n.then=="function")return Ln(un,Xt,FZ(_n),ci);if(_n.$$typeof===b)return Ln(un,Xt,z(un,_n),ci);BZ(un,_n)}return null}function Vn(un,Xt,_n,ci,Io){if(typeof ci=="string"&&ci!==""||typeof ci=="number"||typeof ci=="bigint")return un=un.get(_n)||null,tt(Xt,un,""+ci,Io);if(typeof ci=="object"&&ci!==null){switch(ci.$$typeof){case f:return un=un.get(ci.key===null?_n:ci.key)||null,Wt(Xt,un,ci,Io);case p:return un=un.get(ci.key===null?_n:ci.key)||null,Cn(Xt,un,ci,Io);case T:return ci=_P(ci),Vn(un,Xt,_n,ci,Io)}if(J(ci)||N(ci))return un=un.get(_n)||null,ei(Xt,un,ci,Io,null);if(typeof ci.then=="function")return Vn(un,Xt,_n,FZ(ci),Io);if(ci.$$typeof===b)return Vn(un,Xt,_n,z(Xt,ci),Io);BZ(Xt,ci)}return null}function Zr(un,Xt,_n,ci){for(var Io=null,Cl=null,po=Xt,Qs=Xt=0,Ba=null;po!==null&&Qs<_n.length;Qs++){po.index>Qs?(Ba=po,po=null):Ba=po.sibling;var Sl=Ln(un,po,_n[Qs],ci);if(Sl===null){po===null&&(po=Ba);break}_&&po&&Sl.alternate===null&&x(un,po),Xt=fe(Sl,Xt,Qs),Cl===null?Io=Sl:Cl.sibling=Sl,Cl=Sl,po=Ba}if(Qs===_n.length)return L(un,po),jt&&Pe(un,Qs),Io;if(po===null){for(;Qs<_n.length;Qs++)po=vi(un,_n[Qs],ci),po!==null&&(Xt=fe(po,Xt,Qs),Cl===null?Io=po:Cl.sibling=po,Cl=po);return jt&&Pe(un,Qs),Io}for(po=B(po);Qs<_n.length;Qs++)Ba=Vn(po,un,Qs,_n[Qs],ci),Ba!==null&&(_&&Ba.alternate!==null&&po.delete(Ba.key===null?Qs:Ba.key),Xt=fe(Ba,Xt,Qs),Cl===null?Io=Ba:Cl.sibling=Ba,Cl=Ba);return _&&po.forEach(function(fk){return x(un,fk)}),jt&&Pe(un,Qs),Io}function Yo(un,Xt,_n,ci){if(_n==null)throw Error(i(151));for(var Io=null,Cl=null,po=Xt,Qs=Xt=0,Ba=null,Sl=_n.next();po!==null&&!Sl.done;Qs++,Sl=_n.next()){po.index>Qs?(Ba=po,po=null):Ba=po.sibling;var fk=Ln(un,po,Sl.value,ci);if(fk===null){po===null&&(po=Ba);break}_&&po&&fk.alternate===null&&x(un,po),Xt=fe(fk,Xt,Qs),Cl===null?Io=fk:Cl.sibling=fk,Cl=fk,po=Ba}if(Sl.done)return L(un,po),jt&&Pe(un,Qs),Io;if(po===null){for(;!Sl.done;Qs++,Sl=_n.next())Sl=vi(un,Sl.value,ci),Sl!==null&&(Xt=fe(Sl,Xt,Qs),Cl===null?Io=Sl:Cl.sibling=Sl,Cl=Sl);return jt&&Pe(un,Qs),Io}for(po=B(po);!Sl.done;Qs++,Sl=_n.next())Sl=Vn(po,un,Qs,Sl.value,ci),Sl!==null&&(_&&Sl.alternate!==null&&po.delete(Sl.key===null?Qs:Sl.key),Xt=fe(Sl,Xt,Qs),Cl===null?Io=Sl:Cl.sibling=Sl,Cl=Sl);return _&&po.forEach(function(lMn){return x(un,lMn)}),jt&&Pe(un,Qs),Io}function Oc(un,Xt,_n,ci){if(typeof _n=="object"&&_n!==null&&_n.type===g&&_n.key===null&&(_n=_n.props.children),typeof _n=="object"&&_n!==null){switch(_n.$$typeof){case f:e:{for(var Io=_n.key;Xt!==null;){if(Xt.key===Io){if(Io=_n.type,Io===g){if(Xt.tag===7){L(un,Xt.sibling),ci=ae(Xt,_n.props.children),ci.return=un,un=ci;break e}}else if(Xt.elementType===Io||typeof Io=="object"&&Io!==null&&Io.$$typeof===T&&_P(Io)===Xt.type){L(un,Xt.sibling),ci=ae(Xt,_n.props),qj(ci,_n),ci.return=un,un=ci;break e}L(un,Xt);break}else x(un,Xt);Xt=Xt.sibling}_n.type===g?(ci=qv(_n.props.children,un.mode,ci,_n.key),ci.return=un,un=ci):(ci=KT(_n.type,_n.key,_n.props,null,un.mode,ci),qj(ci,_n),ci.return=un,un=ci)}return je(un);case p:e:{for(Io=_n.key;Xt!==null;){if(Xt.key===Io)if(Xt.tag===4&&Xt.stateNode.containerInfo===_n.containerInfo&&Xt.stateNode.implementation===_n.implementation){L(un,Xt.sibling),ci=ae(Xt,_n.children||[]),ci.return=un,un=ci;break e}else{L(un,Xt);break}else x(un,Xt);Xt=Xt.sibling}ci=GE(_n,un.mode,ci),ci.return=un,un=ci}return je(un);case T:return _n=_P(_n),Oc(un,Xt,_n,ci)}if(J(_n))return Zr(un,Xt,_n,ci);if(N(_n)){if(Io=N(_n),typeof Io!="function")throw Error(i(150));return _n=Io.call(_n),Yo(un,Xt,_n,ci)}if(typeof _n.then=="function")return Oc(un,Xt,FZ(_n),ci);if(_n.$$typeof===b)return Oc(un,Xt,z(un,_n),ci);BZ(un,_n)}return typeof _n=="string"&&_n!==""||typeof _n=="number"||typeof _n=="bigint"?(_n=""+_n,Xt!==null&&Xt.tag===6?(L(un,Xt.sibling),ci=ae(Xt,_n),ci.return=un,un=ci):(L(un,Xt),ci=qE(_n,un.mode,ci),ci.return=un,un=ci),je(un)):L(un,Xt)}return function(un,Xt,_n,ci){try{$j=0;var Io=Oc(un,Xt,_n,ci);return n5=null,Io}catch(po){if(po===t5||po===OZ)throw po;var Cl=Bp(29,po,null,un.mode);return Cl.lanes=ci,Cl.return=un,Cl}}}var CP=get(!0),met=get(!1),QT=!1;function ibe(_){_.updateQueue={baseState:_.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function rbe(_,x){_=_.updateQueue,x.updateQueue===_&&(x.updateQueue={baseState:_.baseState,firstBaseUpdate:_.firstBaseUpdate,lastBaseUpdate:_.lastBaseUpdate,shared:_.shared,callbacks:null})}function ZT(_){return{lane:_,tag:0,payload:null,callback:null,next:null}}function XT(_,x,L){var B=_.updateQueue;if(B===null)return null;if(B=B.shared,(Rl&2)!==0){var ae=B.pending;return ae===null?x.next=x:(x.next=ae.next,ae.next=x),B.pending=x,x=$E(_),XF(_,null,L),x}return UE(_,B,x,L),$E(_)}function Gj(_,x,L){if(x=x.updateQueue,x!==null&&(x=x.shared,(L&4194048)!==0)){var B=x.lanes;B&=_.pendingLanes,L|=B,x.lanes=L,Le(_,L)}}function obe(_,x){var L=_.updateQueue,B=_.alternate;if(B!==null&&(B=B.updateQueue,L===B)){var ae=null,fe=null;if(L=L.firstBaseUpdate,L!==null){do{var je={lane:L.lane,tag:L.tag,payload:L.payload,callback:null,next:null};fe===null?ae=fe=je:fe=fe.next=je,L=L.next}while(L!==null);fe===null?ae=fe=x:fe=fe.next=x}else ae=fe=x;L={baseState:B.baseState,firstBaseUpdate:ae,lastBaseUpdate:fe,shared:B.shared,callbacks:B.callbacks},_.updateQueue=L;return}_=L.lastBaseUpdate,_===null?L.firstBaseUpdate=x:_.next=x,L.lastBaseUpdate=x}var sbe=!1;function Kj(){if(sbe){var _=Gc;if(_!==null)throw _}}function Yj(_,x,L,B){sbe=!1;var ae=_.updateQueue;QT=!1;var fe=ae.firstBaseUpdate,je=ae.lastBaseUpdate,tt=ae.shared.pending;if(tt!==null){ae.shared.pending=null;var Wt=tt,Cn=Wt.next;Wt.next=null,je===null?fe=Cn:je.next=Cn,je=Wt;var ei=_.alternate;ei!==null&&(ei=ei.updateQueue,tt=ei.lastBaseUpdate,tt!==je&&(tt===null?ei.firstBaseUpdate=Cn:tt.next=Cn,ei.lastBaseUpdate=Wt))}if(fe!==null){var vi=ae.baseState;je=0,ei=Cn=Wt=null,tt=fe;do{var Ln=tt.lane&-536870913,Vn=Ln!==tt.lane;if(Vn?(Fa&Ln)===Ln:(B&Ln)===Ln){Ln!==0&&Ln===Ko&&(sbe=!0),ei!==null&&(ei=ei.next={lane:0,tag:tt.tag,payload:tt.payload,callback:null,next:null});e:{var Zr=_,Yo=tt;Ln=x;var Oc=L;switch(Yo.tag){case 1:if(Zr=Yo.payload,typeof Zr=="function"){vi=Zr.call(Oc,vi,Ln);break e}vi=Zr;break e;case 3:Zr.flags=Zr.flags&-65537|128;case 0:if(Zr=Yo.payload,Ln=typeof Zr=="function"?Zr.call(Oc,vi,Ln):Zr,Ln==null)break e;vi=d({},vi,Ln);break e;case 2:QT=!0}}Ln=tt.callback,Ln!==null&&(_.flags|=64,Vn&&(_.flags|=8192),Vn=ae.callbacks,Vn===null?ae.callbacks=[Ln]:Vn.push(Ln))}else Vn={lane:Ln,tag:tt.tag,payload:tt.payload,callback:tt.callback,next:null},ei===null?(Cn=ei=Vn,Wt=vi):ei=ei.next=Vn,je|=Ln;if(tt=tt.next,tt===null){if(tt=ae.shared.pending,tt===null)break;Vn=tt,tt=Vn.next,Vn.next=null,ae.lastBaseUpdate=Vn,ae.shared.pending=null}}while(!0);ei===null&&(Wt=vi),ae.baseState=Wt,ae.firstBaseUpdate=Cn,ae.lastBaseUpdate=ei,fe===null&&(ae.shared.lanes=0),ik|=je,_.lanes=je,_.memoizedState=vi}}function vet(_,x){if(typeof _!="function")throw Error(i(191,_));_.call(x)}function yet(_,x){var L=_.callbacks;if(L!==null)for(_.callbacks=null,_=0;_<L.length;_++)vet(L[_],x)}var i5=Y(null),jZ=Y(0);function bet(_,x){_=iA,pe(jZ,_),pe(i5,x),iA=_|x.baseLanes}function abe(){pe(jZ,iA),pe(i5,i5.current)}function lbe(){iA=jZ.current,G(i5),G(jZ)}var ay=Y(null),Vb=null;function JT(_){var x=_.alternate;pe(Xd,Xd.current&1),pe(ay,_),Vb===null&&(x===null||i5.current!==null||x.memoizedState!==null)&&(Vb=_)}function cbe(_){pe(Xd,Xd.current),pe(ay,_),Vb===null&&(Vb=_)}function _et(_){_.tag===22?(pe(Xd,Xd.current),pe(ay,_),Vb===null&&(Vb=_)):ek()}function ek(){pe(Xd,Xd.current),pe(ay,ay.current)}function ly(_){G(ay),Vb===_&&(Vb=null),G(Xd)}var Xd=Y(0);function zZ(_){for(var x=_;x!==null;){if(x.tag===13){var L=x.memoizedState;if(L!==null&&(L=L.dehydrated,L===null||g_e(L)||m_e(L)))return x}else if(x.tag===19&&(x.memoizedProps.revealOrder==="forwards"||x.memoizedProps.revealOrder==="backwards"||x.memoizedProps.revealOrder==="unstable_legacy-backwards"||x.memoizedProps.revealOrder==="together")){if((x.flags&128)!==0)return x}else if(x.child!==null){x.child.return=x,x=x.child;continue}if(x===_)break;for(;x.sibling===null;){if(x.return===null||x.return===_)return null;x=x.return}x.sibling.return=x.return,x=x.sibling}return null}var YE=0,$s=null,Pc=null,Fh=null,VZ=!1,r5=!1,SP=!1,HZ=0,Qj=0,o5=null,XNn=0;function Ad(){throw Error(i(321))}function ube(_,x){if(x===null)return!1;for(var L=0;L<x.length&&L<_.length;L++)if(!Rh(_[L],x[L]))return!1;return!0}function dbe(_,x,L,B,ae,fe){return YE=fe,$s=x,x.memoizedState=null,x.updateQueue=null,x.lanes=0,ee.H=_===null||_.memoizedState===null?rtt:Abe,SP=!1,fe=L(B,ae),SP=!1,r5&&(fe=Cet(x,L,B,ae)),wet(_),fe}function wet(_){ee.H=Jj;var x=Pc!==null&&Pc.next!==null;if(YE=0,Fh=Pc=$s=null,VZ=!1,Qj=0,o5=null,x)throw Error(i(300));_===null||Bh||(_=_.dependencies,_!==null&&k(_)&&(Bh=!0))}function Cet(_,x,L,B){$s=_;var ae=0;do{if(r5&&(o5=null),Qj=0,r5=!1,25<=ae)throw Error(i(301));if(ae+=1,Fh=Pc=null,_.updateQueue!=null){var fe=_.updateQueue;fe.lastEffect=null,fe.events=null,fe.stores=null,fe.memoCache!=null&&(fe.memoCache.index=0)}ee.H=ott,fe=x(L,B)}while(r5);return fe}function JNn(){var _=ee.H,x=_.useState()[0];return x=typeof x.then=="function"?Zj(x):x,_=_.useState()[0],(Pc!==null?Pc.memoizedState:null)!==_&&($s.flags|=1024),x}function hbe(){var _=HZ!==0;return HZ=0,_}function fbe(_,x,L){x.updateQueue=_.updateQueue,x.flags&=-2053,_.lanes&=~L}function pbe(_){if(VZ){for(_=_.memoizedState;_!==null;){var x=_.queue;x!==null&&(x.pending=null),_=_.next}VZ=!1}YE=0,Fh=Pc=$s=null,r5=!1,Qj=HZ=0,o5=null}function Em(){var _={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fh===null?$s.memoizedState=Fh=_:Fh=Fh.next=_,Fh}function Jd(){if(Pc===null){var _=$s.alternate;_=_!==null?_.memoizedState:null}else _=Pc.next;var x=Fh===null?$s.memoizedState:Fh.next;if(x!==null)Fh=x,Pc=_;else{if(_===null)throw $s.alternate===null?Error(i(467)):Error(i(310));Pc=_,_={memoizedState:Pc.memoizedState,baseState:Pc.baseState,baseQueue:Pc.baseQueue,queue:Pc.queue,next:null},Fh===null?$s.memoizedState=Fh=_:Fh=Fh.next=_}return Fh}function WZ(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Zj(_){var x=Qj;return Qj+=1,o5===null&&(o5=[]),_=het(o5,_,x),x=$s,(Fh===null?x.memoizedState:Fh.next)===null&&(x=x.alternate,ee.H=x===null||x.memoizedState===null?rtt:Abe),_}function UZ(_){if(_!==null&&typeof _=="object"){if(typeof _.then=="function")return Zj(_);if(_.$$typeof===b)return O(_)}throw Error(i(438,String(_)))}function gbe(_){var x=null,L=$s.updateQueue;if(L!==null&&(x=L.memoCache),x==null){var B=$s.alternate;B!==null&&(B=B.updateQueue,B!==null&&(B=B.memoCache,B!=null&&(x={data:B.data.map(function(ae){return ae.slice()}),index:0})))}if(x==null&&(x={data:[],index:0}),L===null&&(L=WZ(),$s.updateQueue=L),L.memoCache=x,L=x.data[x.index],L===void 0)for(L=x.data[x.index]=Array(_),B=0;B<_;B++)L[B]=P;return x.index++,L}function QE(_,x){return typeof x=="function"?x(_):x}function $Z(_){var x=Jd();return mbe(x,Pc,_)}function mbe(_,x,L){var B=_.queue;if(B===null)throw Error(i(311));B.lastRenderedReducer=L;var ae=_.baseQueue,fe=B.pending;if(fe!==null){if(ae!==null){var je=ae.next;ae.next=fe.next,fe.next=je}x.baseQueue=ae=fe,B.pending=null}if(fe=_.baseState,ae===null)_.memoizedState=fe;else{x=ae.next;var tt=je=null,Wt=null,Cn=x,ei=!1;do{var vi=Cn.lane&-536870913;if(vi!==Cn.lane?(Fa&vi)===vi:(YE&vi)===vi){var Ln=Cn.revertLane;if(Ln===0)Wt!==null&&(Wt=Wt.next={lane:0,revertLane:0,gesture:null,action:Cn.action,hasEagerState:Cn.hasEagerState,eagerState:Cn.eagerState,next:null}),vi===Ko&&(ei=!0);else if((YE&Ln)===Ln){Cn=Cn.next,Ln===Ko&&(ei=!0);continue}else vi={lane:0,revertLane:Cn.revertLane,gesture:null,action:Cn.action,hasEagerState:Cn.hasEagerState,eagerState:Cn.eagerState,next:null},Wt===null?(tt=Wt=vi,je=fe):Wt=Wt.next=vi,$s.lanes|=Ln,ik|=Ln;vi=Cn.action,SP&&L(fe,vi),fe=Cn.hasEagerState?Cn.eagerState:L(fe,vi)}else Ln={lane:vi,revertLane:Cn.revertLane,gesture:Cn.gesture,action:Cn.action,hasEagerState:Cn.hasEagerState,eagerState:Cn.eagerState,next:null},Wt===null?(tt=Wt=Ln,je=fe):Wt=Wt.next=Ln,$s.lanes|=vi,ik|=vi;Cn=Cn.next}while(Cn!==null&&Cn!==x);if(Wt===null?je=fe:Wt.next=tt,!Rh(fe,_.memoizedState)&&(Bh=!0,ei&&(L=Gc,L!==null)))throw L;_.memoizedState=fe,_.baseState=je,_.baseQueue=Wt,B.lastRenderedState=fe}return ae===null&&(B.lanes=0),[_.memoizedState,B.dispatch]}function vbe(_){var x=Jd(),L=x.queue;if(L===null)throw Error(i(311));L.lastRenderedReducer=_;var B=L.dispatch,ae=L.pending,fe=x.memoizedState;if(ae!==null){L.pending=null;var je=ae=ae.next;do fe=_(fe,je.action),je=je.next;while(je!==ae);Rh(fe,x.memoizedState)||(Bh=!0),x.memoizedState=fe,x.baseQueue===null&&(x.baseState=fe),L.lastRenderedState=fe}return[fe,B]}function xet(_,x,L){var B=$s,ae=Jd(),fe=jt;if(fe){if(L===void 0)throw Error(i(407));L=L()}else L=x();var je=!Rh((Pc||ae).memoizedState,L);if(je&&(ae.memoizedState=L,Bh=!0),ae=ae.queue,_be(Det.bind(null,B,ae,_),[_]),ae.getSnapshot!==x||je||Fh!==null&&Fh.memoizedState.tag&1){if(B.flags|=2048,s5(9,{destroy:void 0},Aet.bind(null,B,ae,L,x),null),Kc===null)throw Error(i(349));fe||(YE&127)!==0||Eet(B,x,L)}return L}function Eet(_,x,L){_.flags|=16384,_={getSnapshot:x,value:L},x=$s.updateQueue,x===null?(x=WZ(),$s.updateQueue=x,x.stores=[_]):(L=x.stores,L===null?x.stores=[_]:L.push(_))}function Aet(_,x,L,B){x.value=L,x.getSnapshot=B,Tet(x)&&ket(_)}function Det(_,x,L){return L(function(){Tet(x)&&ket(_)})}function Tet(_){var x=_.getSnapshot;_=_.value;try{var L=x();return!Rh(_,L)}catch{return!0}}function ket(_){var x=Vw(_,2);x!==null&&Xv(x,_,2)}function ybe(_){var x=Em();if(typeof _=="function"){var L=_;if(_=L(),SP){ln(!0);try{L()}finally{ln(!1)}}}return x.memoizedState=x.baseState=_,x.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:QE,lastRenderedState:_},x}function Iet(_,x,L,B){return _.baseState=L,mbe(_,Pc,typeof B=="function"?B:QE)}function ePn(_,x,L,B,ae){if(KZ(_))throw Error(i(485));if(_=x.action,_!==null){var fe={payload:ae,action:_,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(je){fe.listeners.push(je)}};ee.T!==null?L(!0):fe.isTransition=!1,B(fe),L=x.pending,L===null?(fe.next=x.pending=fe,Let(x,fe)):(fe.next=L.next,x.pending=L.next=fe)}}function Let(_,x){var L=x.action,B=x.payload,ae=_.state;if(x.isTransition){var fe=ee.T,je={};ee.T=je;try{var tt=L(ae,B),Wt=ee.S;Wt!==null&&Wt(je,tt),Net(_,x,tt)}catch(Cn){bbe(_,x,Cn)}finally{fe!==null&&je.types!==null&&(fe.types=je.types),ee.T=fe}}else try{fe=L(ae,B),Net(_,x,fe)}catch(Cn){bbe(_,x,Cn)}}function Net(_,x,L){L!==null&&typeof L=="object"&&typeof L.then=="function"?L.then(function(B){Pet(_,x,B)},function(B){return bbe(_,x,B)}):Pet(_,x,L)}function Pet(_,x,L){x.status="fulfilled",x.value=L,Met(x),_.state=L,x=_.pending,x!==null&&(L=x.next,L===x?_.pending=null:(L=L.next,x.next=L,Let(_,L)))}function bbe(_,x,L){var B=_.pending;if(_.pending=null,B!==null){B=B.next;do x.status="rejected",x.reason=L,Met(x),x=x.next;while(x!==B)}_.action=null}function Met(_){_=_.listeners;for(var x=0;x<_.length;x++)(0,_[x])()}function Oet(_,x){return x}function Ret(_,x){if(jt){var L=Kc.formState;if(L!==null){e:{var B=$s;if(jt){if(Zt){t:{for(var ae=Zt,fe=Ei;ae.nodeType!==8;){if(!fe){ae=null;break t}if(ae=Hb(ae.nextSibling),ae===null){ae=null;break t}}fe=ae.data,ae=fe==="F!"||fe==="F"?ae:null}if(ae){Zt=Hb(ae.nextSibling),B=ae.data==="F!";break e}}vn(B)}B=!1}B&&(x=L[0])}}return L=Em(),L.memoizedState=L.baseState=x,B={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oet,lastRenderedState:x},L.queue=B,L=ttt.bind(null,$s,B),B.dispatch=L,B=ybe(!1),fe=Ebe.bind(null,$s,!1,B.queue),B=Em(),ae={state:x,dispatch:null,action:_,pending:null},B.queue=ae,L=ePn.bind(null,$s,ae,fe,L),ae.dispatch=L,B.memoizedState=_,[x,L,!1]}function Fet(_){var x=Jd();return Bet(x,Pc,_)}function Bet(_,x,L){if(x=mbe(_,x,Oet)[0],_=$Z(QE)[0],typeof x=="object"&&x!==null&&typeof x.then=="function")try{var B=Zj(x)}catch(je){throw je===t5?OZ:je}else B=x;x=Jd();var ae=x.queue,fe=ae.dispatch;return L!==x.memoizedState&&($s.flags|=2048,s5(9,{destroy:void 0},tPn.bind(null,ae,L),null)),[B,fe,_]}function tPn(_,x){_.action=x}function jet(_){var x=Jd(),L=Pc;if(L!==null)return Bet(x,L,_);Jd(),x=x.memoizedState,L=Jd();var B=L.queue.dispatch;return L.memoizedState=_,[x,B,!1]}function s5(_,x,L,B){return _={tag:_,create:L,deps:B,inst:x,next:null},x=$s.updateQueue,x===null&&(x=WZ(),$s.updateQueue=x),L=x.lastEffect,L===null?x.lastEffect=_.next=_:(B=L.next,L.next=_,_.next=B,x.lastEffect=_),_}function zet(){return Jd().memoizedState}function qZ(_,x,L,B){var ae=Em();$s.flags|=_,ae.memoizedState=s5(1|x,{destroy:void 0},L,B===void 0?null:B)}function GZ(_,x,L,B){var ae=Jd();B=B===void 0?null:B;var fe=ae.memoizedState.inst;Pc!==null&&B!==null&&ube(B,Pc.memoizedState.deps)?ae.memoizedState=s5(x,fe,L,B):($s.flags|=_,ae.memoizedState=s5(1|x,fe,L,B))}function Vet(_,x){qZ(8390656,8,_,x)}function _be(_,x){GZ(2048,8,_,x)}function nPn(_){$s.flags|=4;var x=$s.updateQueue;if(x===null)x=WZ(),$s.updateQueue=x,x.events=[_];else{var L=x.events;L===null?x.events=[_]:L.push(_)}}function Het(_){var x=Jd().memoizedState;return nPn({ref:x,nextImpl:_}),function(){if((Rl&2)!==0)throw Error(i(440));return x.impl.apply(void 0,arguments)}}function Wet(_,x){return GZ(4,2,_,x)}function Uet(_,x){return GZ(4,4,_,x)}function $et(_,x){if(typeof x=="function"){_=_();var L=x(_);return function(){typeof L=="function"?L():x(null)}}if(x!=null)return _=_(),x.current=_,function(){x.current=null}}function qet(_,x,L){L=L!=null?L.concat([_]):null,GZ(4,4,$et.bind(null,x,_),L)}function wbe(){}function Get(_,x){var L=Jd();x=x===void 0?null:x;var B=L.memoizedState;return x!==null&&ube(x,B[1])?B[0]:(L.memoizedState=[_,x],_)}function Ket(_,x){var L=Jd();x=x===void 0?null:x;var B=L.memoizedState;if(x!==null&&ube(x,B[1]))return B[0];if(B=_(),SP){ln(!0);try{_()}finally{ln(!1)}}return L.memoizedState=[B,x],B}function Cbe(_,x,L){return L===void 0||(YE&1073741824)!==0&&(Fa&261930)===0?_.memoizedState=x:(_.memoizedState=L,_=Ytt(),$s.lanes|=_,ik|=_,L)}function Yet(_,x,L,B){return Rh(L,x)?L:i5.current!==null?(_=Cbe(_,L,B),Rh(_,x)||(Bh=!0),_):(YE&42)===0||(YE&1073741824)!==0&&(Fa&261930)===0?(Bh=!0,_.memoizedState=L):(_=Ytt(),$s.lanes|=_,ik|=_,x)}function Qet(_,x,L,B,ae){var fe=Q.p;Q.p=fe!==0&&8>fe?fe:8;var je=ee.T,tt={};ee.T=tt,Ebe(_,!1,x,L);try{var Wt=ae(),Cn=ee.S;if(Cn!==null&&Cn(tt,Wt),Wt!==null&&typeof Wt=="object"&&typeof Wt.then=="function"){var ei=rd(Wt,B);Xj(_,x,ei,dy(_))}else Xj(_,x,B,dy(_))}catch(vi){Xj(_,x,{then:function(){},status:"rejected",reason:vi},dy())}finally{Q.p=fe,je!==null&&tt.types!==null&&(je.types=tt.types),ee.T=je}}function iPn(){}function Sbe(_,x,L,B){if(_.tag!==5)throw Error(i(476));var ae=Zet(_).queue;Qet(_,ae,x,H,L===null?iPn:function(){return Xet(_),L(B)})}function Zet(_){var x=_.memoizedState;if(x!==null)return x;x={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:QE,lastRenderedState:H},next:null};var L={};return x.next={memoizedState:L,baseState:L,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:QE,lastRenderedState:L},next:null},_.memoizedState=x,_=_.alternate,_!==null&&(_.memoizedState=x),x}function Xet(_){var x=Zet(_);x.next===null&&(x=_.alternate.memoizedState),Xj(_,x.next.queue,{},dy())}function xbe(){return O(gz)}function Jet(){return Jd().memoizedState}function ett(){return Jd().memoizedState}function rPn(_){for(var x=_.return;x!==null;){switch(x.tag){case 24:case 3:var L=dy();_=ZT(L);var B=XT(x,_,L);B!==null&&(Xv(B,x,L),Gj(B,x,L)),x={cache:xt()},_.payload=x;return}x=x.return}}function oPn(_,x,L){var B=dy();L={lane:B,revertLane:0,gesture:null,action:L,hasEagerState:!1,eagerState:null,next:null},KZ(_)?ntt(x,L):(L=yP(_,x,L,B),L!==null&&(Xv(L,_,B),itt(L,x,B)))}function ttt(_,x,L){var B=dy();Xj(_,x,L,B)}function Xj(_,x,L,B){var ae={lane:B,revertLane:0,gesture:null,action:L,hasEagerState:!1,eagerState:null,next:null};if(KZ(_))ntt(x,ae);else{var fe=_.alternate;if(_.lanes===0&&(fe===null||fe.lanes===0)&&(fe=x.lastRenderedReducer,fe!==null))try{var je=x.lastRenderedState,tt=fe(je,L);if(ae.hasEagerState=!0,ae.eagerState=tt,Rh(tt,je))return UE(_,x,ae,0),Kc===null&&jb(),!1}catch{}if(L=yP(_,x,ae,B),L!==null)return Xv(L,_,B),itt(L,x,B),!0}return!1}function Ebe(_,x,L,B){if(B={lane:2,revertLane:i_e(),gesture:null,action:B,hasEagerState:!1,eagerState:null,next:null},KZ(_)){if(x)throw Error(i(479))}else x=yP(_,L,B,2),x!==null&&Xv(x,_,2)}function KZ(_){var x=_.alternate;return _===$s||x!==null&&x===$s}function ntt(_,x){r5=VZ=!0;var L=_.pending;L===null?x.next=x:(x.next=L.next,L.next=x),_.pending=x}function itt(_,x,L){if((L&4194048)!==0){var B=x.lanes;B&=_.pendingLanes,L|=B,x.lanes=L,Le(_,L)}}var Jj={readContext:O,use:UZ,useCallback:Ad,useContext:Ad,useEffect:Ad,useImperativeHandle:Ad,useLayoutEffect:Ad,useInsertionEffect:Ad,useMemo:Ad,useReducer:Ad,useRef:Ad,useState:Ad,useDebugValue:Ad,useDeferredValue:Ad,useTransition:Ad,useSyncExternalStore:Ad,useId:Ad,useHostTransitionStatus:Ad,useFormState:Ad,useActionState:Ad,useOptimistic:Ad,useMemoCache:Ad,useCacheRefresh:Ad};Jj.useEffectEvent=Ad;var rtt={readContext:O,use:UZ,useCallback:function(_,x){return Em().memoizedState=[_,x===void 0?null:x],_},useContext:O,useEffect:Vet,useImperativeHandle:function(_,x,L){L=L!=null?L.concat([_]):null,qZ(4194308,4,$et.bind(null,x,_),L)},useLayoutEffect:function(_,x){return qZ(4194308,4,_,x)},useInsertionEffect:function(_,x){qZ(4,2,_,x)},useMemo:function(_,x){var L=Em();x=x===void 0?null:x;var B=_();if(SP){ln(!0);try{_()}finally{ln(!1)}}return L.memoizedState=[B,x],B},useReducer:function(_,x,L){var B=Em();if(L!==void 0){var ae=L(x);if(SP){ln(!0);try{L(x)}finally{ln(!1)}}}else ae=x;return B.memoizedState=B.baseState=ae,_={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_,lastRenderedState:ae},B.queue=_,_=_.dispatch=oPn.bind(null,$s,_),[B.memoizedState,_]},useRef:function(_){var x=Em();return _={current:_},x.memoizedState=_},useState:function(_){_=ybe(_);var x=_.queue,L=ttt.bind(null,$s,x);return x.dispatch=L,[_.memoizedState,L]},useDebugValue:wbe,useDeferredValue:function(_,x){var L=Em();return Cbe(L,_,x)},useTransition:function(){var _=ybe(!1);return _=Qet.bind(null,$s,_.queue,!0,!1),Em().memoizedState=_,[!1,_]},useSyncExternalStore:function(_,x,L){var B=$s,ae=Em();if(jt){if(L===void 0)throw Error(i(407));L=L()}else{if(L=x(),Kc===null)throw Error(i(349));(Fa&127)!==0||Eet(B,x,L)}ae.memoizedState=L;var fe={value:L,getSnapshot:x};return ae.queue=fe,Vet(Det.bind(null,B,fe,_),[_]),B.flags|=2048,s5(9,{destroy:void 0},Aet.bind(null,B,fe,L,x),null),L},useId:function(){var _=Em(),x=Kc.identifierPrefix;if(jt){var L=Ae,B=ye;L=(B&~(1<<32-pn(B)-1)).toString(32)+L,x="_"+x+"R_"+L,L=HZ++,0<L&&(x+="H"+L.toString(32)),x+="_"}else L=XNn++,x="_"+x+"r_"+L.toString(32)+"_";return _.memoizedState=x},useHostTransitionStatus:xbe,useFormState:Ret,useActionState:Ret,useOptimistic:function(_){var x=Em();x.memoizedState=x.baseState=_;var L={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return x.queue=L,x=Ebe.bind(null,$s,!0,L),L.dispatch=x,[_,x]},useMemoCache:gbe,useCacheRefresh:function(){return Em().memoizedState=rPn.bind(null,$s)},useEffectEvent:function(_){var x=Em(),L={impl:_};return x.memoizedState=L,function(){if((Rl&2)!==0)throw Error(i(440));return L.impl.apply(void 0,arguments)}}},Abe={readContext:O,use:UZ,useCallback:Get,useContext:O,useEffect:_be,useImperativeHandle:qet,useInsertionEffect:Wet,useLayoutEffect:Uet,useMemo:Ket,useReducer:$Z,useRef:zet,useState:function(){return $Z(QE)},useDebugValue:wbe,useDeferredValue:function(_,x){var L=Jd();return Yet(L,Pc.memoizedState,_,x)},useTransition:function(){var _=$Z(QE)[0],x=Jd().memoizedState;return[typeof _=="boolean"?_:Zj(_),x]},useSyncExternalStore:xet,useId:Jet,useHostTransitionStatus:xbe,useFormState:Fet,useActionState:Fet,useOptimistic:function(_,x){var L=Jd();return Iet(L,Pc,_,x)},useMemoCache:gbe,useCacheRefresh:ett};Abe.useEffectEvent=Het;var ott={readContext:O,use:UZ,useCallback:Get,useContext:O,useEffect:_be,useImperativeHandle:qet,useInsertionEffect:Wet,useLayoutEffect:Uet,useMemo:Ket,useReducer:vbe,useRef:zet,useState:function(){return vbe(QE)},useDebugValue:wbe,useDeferredValue:function(_,x){var L=Jd();return Pc===null?Cbe(L,_,x):Yet(L,Pc.memoizedState,_,x)},useTransition:function(){var _=vbe(QE)[0],x=Jd().memoizedState;return[typeof _=="boolean"?_:Zj(_),x]},useSyncExternalStore:xet,useId:Jet,useHostTransitionStatus:xbe,useFormState:jet,useActionState:jet,useOptimistic:function(_,x){var L=Jd();return Pc!==null?Iet(L,Pc,_,x):(L.baseState=_,[_,L.queue.dispatch])},useMemoCache:gbe,useCacheRefresh:ett};ott.useEffectEvent=Het;function Dbe(_,x,L,B){x=_.memoizedState,L=L(B,x),L=L==null?x:d({},x,L),_.memoizedState=L,_.lanes===0&&(_.updateQueue.baseState=L)}var Tbe={enqueueSetState:function(_,x,L){_=_._reactInternals;var B=dy(),ae=ZT(B);ae.payload=x,L!=null&&(ae.callback=L),x=XT(_,ae,B),x!==null&&(Xv(x,_,B),Gj(x,_,B))},enqueueReplaceState:function(_,x,L){_=_._reactInternals;var B=dy(),ae=ZT(B);ae.tag=1,ae.payload=x,L!=null&&(ae.callback=L),x=XT(_,ae,B),x!==null&&(Xv(x,_,B),Gj(x,_,B))},enqueueForceUpdate:function(_,x){_=_._reactInternals;var L=dy(),B=ZT(L);B.tag=2,x!=null&&(B.callback=x),x=XT(_,B,L),x!==null&&(Xv(x,_,L),Gj(x,_,L))}};function stt(_,x,L,B,ae,fe,je){return _=_.stateNode,typeof _.shouldComponentUpdate=="function"?_.shouldComponentUpdate(B,fe,je):x.prototype&&x.prototype.isPureReactComponent?!dS(L,B)||!dS(ae,fe):!0}function att(_,x,L,B){_=x.state,typeof x.componentWillReceiveProps=="function"&&x.componentWillReceiveProps(L,B),typeof x.UNSAFE_componentWillReceiveProps=="function"&&x.UNSAFE_componentWillReceiveProps(L,B),x.state!==_&&Tbe.enqueueReplaceState(x,x.state,null)}function xP(_,x){var L=x;if("ref"in x){L={};for(var B in x)B!=="ref"&&(L[B]=x[B])}if(_=_.defaultProps){L===x&&(L=d({},L));for(var ae in _)L[ae]===void 0&&(L[ae]=_[ae])}return L}function ltt(_){HE(_)}function ctt(_){console.error(_)}function utt(_){HE(_)}function YZ(_,x){try{var L=_.onUncaughtError;L(x.value,{componentStack:x.stack})}catch(B){setTimeout(function(){throw B})}}function dtt(_,x,L){try{var B=_.onCaughtError;B(L.value,{componentStack:L.stack,errorBoundary:x.tag===1?x.stateNode:null})}catch(ae){setTimeout(function(){throw ae})}}function kbe(_,x,L){return L=ZT(L),L.tag=3,L.payload={element:null},L.callback=function(){YZ(_,x)},L}function htt(_){return _=ZT(_),_.tag=3,_}function ftt(_,x,L,B){var ae=L.type.getDerivedStateFromError;if(typeof ae=="function"){var fe=B.value;_.payload=function(){return ae(fe)},_.callback=function(){dtt(x,L,B)}}var je=L.stateNode;je!==null&&typeof je.componentDidCatch=="function"&&(_.callback=function(){dtt(x,L,B),typeof ae!="function"&&(rk===null?rk=new Set([this]):rk.add(this));var tt=B.stack;this.componentDidCatch(B.value,{componentStack:tt!==null?tt:""})})}function sPn(_,x,L,B,ae){if(L.flags|=32768,B!==null&&typeof B=="object"&&typeof B.then=="function"){if(x=L.alternate,x!==null&&vo(x,L,ae,!0),L=ay.current,L!==null){switch(L.tag){case 31:case 13:return Vb===null?aX():L.alternate===null&&Dd===0&&(Dd=3),L.flags&=-257,L.flags|=65536,L.lanes=ae,B===RZ?L.flags|=16384:(x=L.updateQueue,x===null?L.updateQueue=new Set([B]):x.add(B),e_e(_,B,ae)),!1;case 22:return L.flags|=65536,B===RZ?L.flags|=16384:(x=L.updateQueue,x===null?(x={transitions:null,markerInstances:null,retryQueue:new Set([B])},L.updateQueue=x):(L=x.retryQueue,L===null?x.retryQueue=new Set([B]):L.add(B)),e_e(_,B,ae)),!1}throw Error(i(435,L.tag))}return e_e(_,B,ae),aX(),!1}if(jt)return x=ay.current,x!==null?((x.flags&65536)===0&&(x.flags|=256),x.flags|=65536,x.lanes=ae,B!==sn&&(_=Error(i(422),{cause:B}),oi(qc(_,L)))):(B!==sn&&(x=Error(i(423),{cause:B}),oi(qc(x,L))),_=_.current.alternate,_.flags|=65536,ae&=-ae,_.lanes|=ae,B=qc(B,L),ae=kbe(_.stateNode,B,ae),obe(_,ae),Dd!==4&&(Dd=2)),!1;var fe=Error(i(520),{cause:B});if(fe=qc(fe,L),az===null?az=[fe]:az.push(fe),Dd!==4&&(Dd=2),x===null)return!0;B=qc(B,L),L=x;do{switch(L.tag){case 3:return L.flags|=65536,_=ae&-ae,L.lanes|=_,_=kbe(L.stateNode,B,_),obe(L,_),!1;case 1:if(x=L.type,fe=L.stateNode,(L.flags&128)===0&&(typeof x.getDerivedStateFromError=="function"||fe!==null&&typeof fe.componentDidCatch=="function"&&(rk===null||!rk.has(fe))))return L.flags|=65536,ae&=-ae,L.lanes|=ae,ae=htt(ae),ftt(ae,_,L,B),obe(L,ae),!1}L=L.return}while(L!==null);return!1}var Ibe=Error(i(461)),Bh=!1;function zp(_,x,L,B){x.child=_===null?met(x,null,L,B):CP(x,_.child,L,B)}function ptt(_,x,L,B,ae){L=L.render;var fe=x.ref;if("ref"in B){var je={};for(var tt in B)tt!=="ref"&&(je[tt]=B[tt])}else je=B;return C(x),B=dbe(_,x,L,je,fe,ae),tt=hbe(),_!==null&&!Bh?(fbe(_,x,ae),ZE(_,x,ae)):(jt&&tt&&rt(x),x.flags|=1,zp(_,x,B,ae),x.child)}function gtt(_,x,L,B,ae){if(_===null){var fe=L.type;return typeof fe=="function"&&!pS(fe)&&fe.defaultProps===void 0&&L.compare===null?(x.tag=15,x.type=fe,mtt(_,x,fe,B,ae)):(_=KT(L.type,null,B,x,x.mode,ae),_.ref=x.ref,_.return=x,x.child=_)}if(fe=_.child,!Bbe(_,ae)){var je=fe.memoizedProps;if(L=L.compare,L=L!==null?L:dS,L(je,B)&&_.ref===x.ref)return ZE(_,x,ae)}return x.flags|=1,_=Zd(fe,B),_.ref=x.ref,_.return=x,x.child=_}function mtt(_,x,L,B,ae){if(_!==null){var fe=_.memoizedProps;if(dS(fe,B)&&_.ref===x.ref)if(Bh=!1,x.pendingProps=B=fe,Bbe(_,ae))(_.flags&131072)!==0&&(Bh=!0);else return x.lanes=_.lanes,ZE(_,x,ae)}return Lbe(_,x,L,B,ae)}function vtt(_,x,L,B){var ae=B.children,fe=_!==null?_.memoizedState:null;if(_===null&&x.stateNode===null&&(x.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),B.mode==="hidden"){if((x.flags&128)!==0){if(fe=fe!==null?fe.baseLanes|L:L,_!==null){for(B=x.child=_.child,ae=0;B!==null;)ae=ae|B.lanes|B.childLanes,B=B.sibling;B=ae&~fe}else B=0,x.child=null;return ytt(_,x,fe,L,B)}if((L&536870912)!==0)x.memoizedState={baseLanes:0,cachePool:null},_!==null&&MZ(x,fe!==null?fe.cachePool:null),fe!==null?bet(x,fe):abe(),_et(x);else return B=x.lanes=536870912,ytt(_,x,fe!==null?fe.baseLanes|L:L,L,B)}else fe!==null?(MZ(x,fe.cachePool),bet(x,fe),ek(),x.memoizedState=null):(_!==null&&MZ(x,null),abe(),ek());return zp(_,x,ae,L),x.child}function ez(_,x){return _!==null&&_.tag===22||x.stateNode!==null||(x.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),x.sibling}function ytt(_,x,L,B,ae){var fe=bP();return fe=fe===null?null:{parent:vt._currentValue,pool:fe},x.memoizedState={baseLanes:L,cachePool:fe},_!==null&&MZ(x,null),abe(),_et(x),_!==null&&vo(_,x,B,!0),x.childLanes=ae,null}function QZ(_,x){return x=XZ({mode:x.mode,children:x.children},_.mode),x.ref=_.ref,_.child=x,x.return=_,x}function btt(_,x,L){return CP(x,_.child,null,L),_=QZ(x,x.pendingProps),_.flags|=2,ly(x),x.memoizedState=null,_}function aPn(_,x,L){var B=x.pendingProps,ae=(x.flags&128)!==0;if(x.flags&=-129,_===null){if(jt){if(B.mode==="hidden")return _=QZ(x,B),x.lanes=536870912,ez(null,_);if(cbe(x),(_=Zt)?(_=Lnt(_,Ei),_=_!==null&&_.data==="&"?_:null,_!==null&&(x.memoizedState={dehydrated:_,treeContext:te!==null?{id:ye,overflow:Ae}:null,retryLane:536870912,hydrationErrors:null},L=zb(_),L.return=x,x.child=L,Ft=x,Zt=null)):_=null,_===null)throw vn(x);return x.lanes=536870912,null}return QZ(x,B)}var fe=_.memoizedState;if(fe!==null){var je=fe.dehydrated;if(cbe(x),ae)if(x.flags&256)x.flags&=-257,x=btt(_,x,L);else if(x.memoizedState!==null)x.child=_.child,x.flags|=128,x=null;else throw Error(i(558));else if(Bh||vo(_,x,L,!1),ae=(L&_.childLanes)!==0,Bh||ae){if(B=Kc,B!==null&&(je=be(B,L),je!==0&&je!==fe.retryLane))throw fe.retryLane=je,Vw(_,je),Xv(B,_,je),Ibe;aX(),x=btt(_,x,L)}else _=fe.treeContext,Zt=Hb(je.nextSibling),Ft=x,jt=!0,jn=null,Ei=!1,_!==null&&yt(x,_),x=QZ(x,B),x.flags|=4096;return x}return _=Zd(_.child,{mode:B.mode,children:B.children}),_.ref=x.ref,x.child=_,_.return=x,_}function ZZ(_,x){var L=x.ref;if(L===null)_!==null&&_.ref!==null&&(x.flags|=4194816);else{if(typeof L!="function"&&typeof L!="object")throw Error(i(284));(_===null||_.ref!==L)&&(x.flags|=4194816)}}function Lbe(_,x,L,B,ae){return C(x),L=dbe(_,x,L,B,void 0,ae),B=hbe(),_!==null&&!Bh?(fbe(_,x,ae),ZE(_,x,ae)):(jt&&B&&rt(x),x.flags|=1,zp(_,x,L,ae),x.child)}function _tt(_,x,L,B,ae,fe){return C(x),x.updateQueue=null,L=Cet(x,B,L,ae),wet(_),B=hbe(),_!==null&&!Bh?(fbe(_,x,fe),ZE(_,x,fe)):(jt&&B&&rt(x),x.flags|=1,zp(_,x,L,fe),x.child)}function wtt(_,x,L,B,ae){if(C(x),x.stateNode===null){var fe=fS,je=L.contextType;typeof je=="object"&&je!==null&&(fe=O(je)),fe=new L(B,fe),x.memoizedState=fe.state!==null&&fe.state!==void 0?fe.state:null,fe.updater=Tbe,x.stateNode=fe,fe._reactInternals=x,fe=x.stateNode,fe.props=B,fe.state=x.memoizedState,fe.refs={},ibe(x),je=L.contextType,fe.context=typeof je=="object"&&je!==null?O(je):fS,fe.state=x.memoizedState,je=L.getDerivedStateFromProps,typeof je=="function"&&(Dbe(x,L,je,B),fe.state=x.memoizedState),typeof L.getDerivedStateFromProps=="function"||typeof fe.getSnapshotBeforeUpdate=="function"||typeof fe.UNSAFE_componentWillMount!="function"&&typeof fe.componentWillMount!="function"||(je=fe.state,typeof fe.componentWillMount=="function"&&fe.componentWillMount(),typeof fe.UNSAFE_componentWillMount=="function"&&fe.UNSAFE_componentWillMount(),je!==fe.state&&Tbe.enqueueReplaceState(fe,fe.state,null),Yj(x,B,fe,ae),Kj(),fe.state=x.memoizedState),typeof fe.componentDidMount=="function"&&(x.flags|=4194308),B=!0}else if(_===null){fe=x.stateNode;var tt=x.memoizedProps,Wt=xP(L,tt);fe.props=Wt;var Cn=fe.context,ei=L.contextType;je=fS,typeof ei=="object"&&ei!==null&&(je=O(ei));var vi=L.getDerivedStateFromProps;ei=typeof vi=="function"||typeof fe.getSnapshotBeforeUpdate=="function",tt=x.pendingProps!==tt,ei||typeof fe.UNSAFE_componentWillReceiveProps!="function"&&typeof fe.componentWillReceiveProps!="function"||(tt||Cn!==je)&&att(x,fe,B,je),QT=!1;var Ln=x.memoizedState;fe.state=Ln,Yj(x,B,fe,ae),Kj(),Cn=x.memoizedState,tt||Ln!==Cn||QT?(typeof vi=="function"&&(Dbe(x,L,vi,B),Cn=x.memoizedState),(Wt=QT||stt(x,L,Wt,B,Ln,Cn,je))?(ei||typeof fe.UNSAFE_componentWillMount!="function"&&typeof fe.componentWillMount!="function"||(typeof fe.componentWillMount=="function"&&fe.componentWillMount(),typeof fe.UNSAFE_componentWillMount=="function"&&fe.UNSAFE_componentWillMount()),typeof fe.componentDidMount=="function"&&(x.flags|=4194308)):(typeof fe.componentDidMount=="function"&&(x.flags|=4194308),x.memoizedProps=B,x.memoizedState=Cn),fe.props=B,fe.state=Cn,fe.context=je,B=Wt):(typeof fe.componentDidMount=="function"&&(x.flags|=4194308),B=!1)}else{fe=x.stateNode,rbe(_,x),je=x.memoizedProps,ei=xP(L,je),fe.props=ei,vi=x.pendingProps,Ln=fe.context,Cn=L.contextType,Wt=fS,typeof Cn=="object"&&Cn!==null&&(Wt=O(Cn)),tt=L.getDerivedStateFromProps,(Cn=typeof tt=="function"||typeof fe.getSnapshotBeforeUpdate=="function")||typeof fe.UNSAFE_componentWillReceiveProps!="function"&&typeof fe.componentWillReceiveProps!="function"||(je!==vi||Ln!==Wt)&&att(x,fe,B,Wt),QT=!1,Ln=x.memoizedState,fe.state=Ln,Yj(x,B,fe,ae),Kj();var Vn=x.memoizedState;je!==vi||Ln!==Vn||QT||_!==null&&_.dependencies!==null&&k(_.dependencies)?(typeof tt=="function"&&(Dbe(x,L,tt,B),Vn=x.memoizedState),(ei=QT||stt(x,L,ei,B,Ln,Vn,Wt)||_!==null&&_.dependencies!==null&&k(_.dependencies))?(Cn||typeof fe.UNSAFE_componentWillUpdate!="function"&&typeof fe.componentWillUpdate!="function"||(typeof fe.componentWillUpdate=="function"&&fe.componentWillUpdate(B,Vn,Wt),typeof fe.UNSAFE_componentWillUpdate=="function"&&fe.UNSAFE_componentWillUpdate(B,Vn,Wt)),typeof fe.componentDidUpdate=="function"&&(x.flags|=4),typeof fe.getSnapshotBeforeUpdate=="function"&&(x.flags|=1024)):(typeof fe.componentDidUpdate!="function"||je===_.memoizedProps&&Ln===_.memoizedState||(x.flags|=4),typeof fe.getSnapshotBeforeUpdate!="function"||je===_.memoizedProps&&Ln===_.memoizedState||(x.flags|=1024),x.memoizedProps=B,x.memoizedState=Vn),fe.props=B,fe.state=Vn,fe.context=Wt,B=ei):(typeof fe.componentDidUpdate!="function"||je===_.memoizedProps&&Ln===_.memoizedState||(x.flags|=4),typeof fe.getSnapshotBeforeUpdate!="function"||je===_.memoizedProps&&Ln===_.memoizedState||(x.flags|=1024),B=!1)}return fe=B,ZZ(_,x),B=(x.flags&128)!==0,fe||B?(fe=x.stateNode,L=B&&typeof L.getDerivedStateFromError!="function"?null:fe.render(),x.flags|=1,_!==null&&B?(x.child=CP(x,_.child,null,ae),x.child=CP(x,null,L,ae)):zp(_,x,L,ae),x.memoizedState=fe.state,_=x.child):_=ZE(_,x,ae),_}function Ctt(_,x,L,B){return ii(),x.flags|=256,zp(_,x,L,B),x.child}var Nbe={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Pbe(_){return{baseLanes:_,cachePool:uet()}}function Mbe(_,x,L){return _=_!==null?_.childLanes&~L:0,x&&(_|=uy),_}function Stt(_,x,L){var B=x.pendingProps,ae=!1,fe=(x.flags&128)!==0,je;if((je=fe)||(je=_!==null&&_.memoizedState===null?!1:(Xd.current&2)!==0),je&&(ae=!0,x.flags&=-129),je=(x.flags&32)!==0,x.flags&=-33,_===null){if(jt){if(ae?JT(x):ek(),(_=Zt)?(_=Lnt(_,Ei),_=_!==null&&_.data!=="&"?_:null,_!==null&&(x.memoizedState={dehydrated:_,treeContext:te!==null?{id:ye,overflow:Ae}:null,retryLane:536870912,hydrationErrors:null},L=zb(_),L.return=x,x.child=L,Ft=x,Zt=null)):_=null,_===null)throw vn(x);return m_e(_)?x.lanes=32:x.lanes=536870912,null}var tt=B.children;return B=B.fallback,ae?(ek(),ae=x.mode,tt=XZ({mode:"hidden",children:tt},ae),B=qv(B,ae,L,null),tt.return=x,B.return=x,tt.sibling=B,x.child=tt,B=x.child,B.memoizedState=Pbe(L),B.childLanes=Mbe(_,je,L),x.memoizedState=Nbe,ez(null,B)):(JT(x),Obe(x,tt))}var Wt=_.memoizedState;if(Wt!==null&&(tt=Wt.dehydrated,tt!==null)){if(fe)x.flags&256?(JT(x),x.flags&=-257,x=Rbe(_,x,L)):x.memoizedState!==null?(ek(),x.child=_.child,x.flags|=128,x=null):(ek(),tt=B.fallback,ae=x.mode,B=XZ({mode:"visible",children:B.children},ae),tt=qv(tt,ae,L,null),tt.flags|=2,B.return=x,tt.return=x,B.sibling=tt,x.child=B,CP(x,_.child,null,L),B=x.child,B.memoizedState=Pbe(L),B.childLanes=Mbe(_,je,L),x.memoizedState=Nbe,x=ez(null,B));else if(JT(x),m_e(tt)){if(je=tt.nextSibling&&tt.nextSibling.dataset,je)var Cn=je.dgst;je=Cn,B=Error(i(419)),B.stack="",B.digest=je,oi({value:B,source:null,stack:null}),x=Rbe(_,x,L)}else if(Bh||vo(_,x,L,!1),je=(L&_.childLanes)!==0,Bh||je){if(je=Kc,je!==null&&(B=be(je,L),B!==0&&B!==Wt.retryLane))throw Wt.retryLane=B,Vw(_,B),Xv(je,_,B),Ibe;g_e(tt)||aX(),x=Rbe(_,x,L)}else g_e(tt)?(x.flags|=192,x.child=_.child,x=null):(_=Wt.treeContext,Zt=Hb(tt.nextSibling),Ft=x,jt=!0,jn=null,Ei=!1,_!==null&&yt(x,_),x=Obe(x,B.children),x.flags|=4096);return x}return ae?(ek(),tt=B.fallback,ae=x.mode,Wt=_.child,Cn=Wt.sibling,B=Zd(Wt,{mode:"hidden",children:B.children}),B.subtreeFlags=Wt.subtreeFlags&65011712,Cn!==null?tt=Zd(Cn,tt):(tt=qv(tt,ae,L,null),tt.flags|=2),tt.return=x,B.return=x,B.sibling=tt,x.child=B,ez(null,B),B=x.child,tt=_.child.memoizedState,tt===null?tt=Pbe(L):(ae=tt.cachePool,ae!==null?(Wt=vt._currentValue,ae=ae.parent!==Wt?{parent:Wt,pool:Wt}:ae):ae=uet(),tt={baseLanes:tt.baseLanes|L,cachePool:ae}),B.memoizedState=tt,B.childLanes=Mbe(_,je,L),x.memoizedState=Nbe,ez(_.child,B)):(JT(x),L=_.child,_=L.sibling,L=Zd(L,{mode:"visible",children:B.children}),L.return=x,L.sibling=null,_!==null&&(je=x.deletions,je===null?(x.deletions=[_],x.flags|=16):je.push(_)),x.child=L,x.memoizedState=null,L)}function Obe(_,x){return x=XZ({mode:"visible",children:x},_.mode),x.return=_,_.child=x}function XZ(_,x){return _=Bp(22,_,null,x),_.lanes=0,_}function Rbe(_,x,L){return CP(x,_.child,null,L),_=Obe(x,x.pendingProps.children),_.flags|=2,x.memoizedState=null,_}function xtt(_,x,L){_.lanes|=x;var B=_.alternate;B!==null&&(B.lanes|=x),Er(_.return,x,L)}function Fbe(_,x,L,B,ae,fe){var je=_.memoizedState;je===null?_.memoizedState={isBackwards:x,rendering:null,renderingStartTime:0,last:B,tail:L,tailMode:ae,treeForkCount:fe}:(je.isBackwards=x,je.rendering=null,je.renderingStartTime=0,je.last=B,je.tail=L,je.tailMode=ae,je.treeForkCount=fe)}function Ett(_,x,L){var B=x.pendingProps,ae=B.revealOrder,fe=B.tail;B=B.children;var je=Xd.current,tt=(je&2)!==0;if(tt?(je=je&1|2,x.flags|=128):je&=1,pe(Xd,je),zp(_,x,B,L),B=jt?KE:0,!tt&&_!==null&&(_.flags&128)!==0)e:for(_=x.child;_!==null;){if(_.tag===13)_.memoizedState!==null&&xtt(_,L,x);else if(_.tag===19)xtt(_,L,x);else if(_.child!==null){_.child.return=_,_=_.child;continue}if(_===x)break e;for(;_.sibling===null;){if(_.return===null||_.return===x)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}switch(ae){case"forwards":for(L=x.child,ae=null;L!==null;)_=L.alternate,_!==null&&zZ(_)===null&&(ae=L),L=L.sibling;L=ae,L===null?(ae=x.child,x.child=null):(ae=L.sibling,L.sibling=null),Fbe(x,!1,ae,L,fe,B);break;case"backwards":case"unstable_legacy-backwards":for(L=null,ae=x.child,x.child=null;ae!==null;){if(_=ae.alternate,_!==null&&zZ(_)===null){x.child=ae;break}_=ae.sibling,ae.sibling=L,L=ae,ae=_}Fbe(x,!0,L,null,fe,B);break;case"together":Fbe(x,!1,null,null,void 0,B);break;default:x.memoizedState=null}return x.child}function ZE(_,x,L){if(_!==null&&(x.dependencies=_.dependencies),ik|=x.lanes,(L&x.childLanes)===0)if(_!==null){if(vo(_,x,L,!1),(L&x.childLanes)===0)return null}else return null;if(_!==null&&x.child!==_.child)throw Error(i(153));if(x.child!==null){for(_=x.child,L=Zd(_,_.pendingProps),x.child=L,L.return=x;_.sibling!==null;)_=_.sibling,L=L.sibling=Zd(_,_.pendingProps),L.return=x;L.sibling=null}return x.child}function Bbe(_,x){return(_.lanes&x)!==0?!0:(_=_.dependencies,!!(_!==null&&k(_)))}function lPn(_,x,L){switch(x.tag){case 3:de(x,x.stateNode.containerInfo),eo(x,vt,_.memoizedState.cache),ii();break;case 27:case 5:me(x);break;case 4:de(x,x.stateNode.containerInfo);break;case 10:eo(x,x.type,x.memoizedProps.value);break;case 31:if(x.memoizedState!==null)return x.flags|=128,cbe(x),null;break;case 13:var B=x.memoizedState;if(B!==null)return B.dehydrated!==null?(JT(x),x.flags|=128,null):(L&x.child.childLanes)!==0?Stt(_,x,L):(JT(x),_=ZE(_,x,L),_!==null?_.sibling:null);JT(x);break;case 19:var ae=(_.flags&128)!==0;if(B=(L&x.childLanes)!==0,B||(vo(_,x,L,!1),B=(L&x.childLanes)!==0),ae){if(B)return Ett(_,x,L);x.flags|=128}if(ae=x.memoizedState,ae!==null&&(ae.rendering=null,ae.tail=null,ae.lastEffect=null),pe(Xd,Xd.current),B)break;return null;case 22:return x.lanes=0,vtt(_,x,L,x.pendingProps);case 24:eo(x,vt,_.memoizedState.cache)}return ZE(_,x,L)}function Att(_,x,L){if(_!==null)if(_.memoizedProps!==x.pendingProps)Bh=!0;else{if(!Bbe(_,L)&&(x.flags&128)===0)return Bh=!1,lPn(_,x,L);Bh=(_.flags&131072)!==0}else Bh=!1,jt&&(x.flags&1048576)!==0&&He(x,KE,x.index);switch(x.lanes=0,x.tag){case 16:e:{var B=x.pendingProps;if(_=_P(x.elementType),x.type=_,typeof _=="function")pS(_)?(B=xP(_,B),x.tag=1,x=wtt(null,x,_,B,L)):(x.tag=0,x=Lbe(null,x,_,B,L));else{if(_!=null){var ae=_.$$typeof;if(ae===w){x.tag=11,x=ptt(null,x,_,B,L);break e}else if(ae===D){x.tag=14,x=gtt(null,x,_,B,L);break e}}throw x=W(_)||_,Error(i(306,x,""))}}return x;case 0:return Lbe(_,x,x.type,x.pendingProps,L);case 1:return B=x.type,ae=xP(B,x.pendingProps),wtt(_,x,B,ae,L);case 3:e:{if(de(x,x.stateNode.containerInfo),_===null)throw Error(i(387));B=x.pendingProps;var fe=x.memoizedState;ae=fe.element,rbe(_,x),Yj(x,B,null,L);var je=x.memoizedState;if(B=je.cache,eo(x,vt,B),B!==fe.cache&&ps(x,[vt],L,!0),Kj(),B=je.element,fe.isDehydrated)if(fe={element:B,isDehydrated:!1,cache:je.cache},x.updateQueue.baseState=fe,x.memoizedState=fe,x.flags&256){x=Ctt(_,x,B,L);break e}else if(B!==ae){ae=qc(Error(i(424)),x),oi(ae),x=Ctt(_,x,B,L);break e}else for(_=x.stateNode.containerInfo,_.nodeType===9?_=_.body:_=_.nodeName==="HTML"?_.ownerDocument.body:_,Zt=Hb(_.firstChild),Ft=x,jt=!0,jn=null,Ei=!0,L=met(x,null,B,L),x.child=L;L;)L.flags=L.flags&-3|4096,L=L.sibling;else{if(ii(),B===ae){x=ZE(_,x,L);break e}zp(_,x,B,L)}x=x.child}return x;case 26:return ZZ(_,x),_===null?(L=Fnt(x.type,null,x.pendingProps,null))?x.memoizedState=L:jt||(L=x.type,_=x.pendingProps,B=pX(ie.current).createElement(L),B[Xe]=x,B[Ht]=_,Vp(B,L,_),xi(B),x.stateNode=B):x.memoizedState=Fnt(x.type,_.memoizedProps,x.pendingProps,_.memoizedState),null;case 27:return me(x),_===null&&jt&&(B=x.stateNode=Mnt(x.type,x.pendingProps,ie.current),Ft=x,Ei=!0,ae=Zt,lk(x.type)?(v_e=ae,Zt=Hb(B.firstChild)):Zt=ae),zp(_,x,x.pendingProps.children,L),ZZ(_,x),_===null&&(x.flags|=4194304),x.child;case 5:return _===null&&jt&&((ae=B=Zt)&&(B=BPn(B,x.type,x.pendingProps,Ei),B!==null?(x.stateNode=B,Ft=x,Zt=Hb(B.firstChild),Ei=!1,ae=!0):ae=!1),ae||vn(x)),me(x),ae=x.type,fe=x.pendingProps,je=_!==null?_.memoizedProps:null,B=fe.children,h_e(ae,fe)?B=null:je!==null&&h_e(ae,je)&&(x.flags|=32),x.memoizedState!==null&&(ae=dbe(_,x,JNn,null,null,L),gz._currentValue=ae),ZZ(_,x),zp(_,x,B,L),x.child;case 6:return _===null&&jt&&((_=L=Zt)&&(L=jPn(L,x.pendingProps,Ei),L!==null?(x.stateNode=L,Ft=x,Zt=null,_=!0):_=!1),_||vn(x)),null;case 13:return Stt(_,x,L);case 4:return de(x,x.stateNode.containerInfo),B=x.pendingProps,_===null?x.child=CP(x,null,B,L):zp(_,x,B,L),x.child;case 11:return ptt(_,x,x.type,x.pendingProps,L);case 7:return zp(_,x,x.pendingProps,L),x.child;case 8:return zp(_,x,x.pendingProps.children,L),x.child;case 12:return zp(_,x,x.pendingProps.children,L),x.child;case 10:return B=x.pendingProps,eo(x,x.type,B.value),zp(_,x,B.children,L),x.child;case 9:return ae=x.type._context,B=x.pendingProps.children,C(x),ae=O(ae),B=B(ae),x.flags|=1,zp(_,x,B,L),x.child;case 14:return gtt(_,x,x.type,x.pendingProps,L);case 15:return mtt(_,x,x.type,x.pendingProps,L);case 19:return Ett(_,x,L);case 31:return aPn(_,x,L);case 22:return vtt(_,x,L,x.pendingProps);case 24:return C(x),B=O(vt),_===null?(ae=bP(),ae===null&&(ae=Kc,fe=xt(),ae.pooledCache=fe,fe.refCount++,fe!==null&&(ae.pooledCacheLanes|=L),ae=fe),x.memoizedState={parent:B,cache:ae},ibe(x),eo(x,vt,ae)):((_.lanes&L)!==0&&(rbe(_,x),Yj(x,null,null,L),Kj()),ae=_.memoizedState,fe=x.memoizedState,ae.parent!==B?(ae={parent:B,cache:B},x.memoizedState=ae,x.lanes===0&&(x.memoizedState=x.updateQueue.baseState=ae),eo(x,vt,B)):(B=fe.cache,eo(x,vt,B),B!==ae.cache&&ps(x,[vt],L,!0))),zp(_,x,x.pendingProps.children,L),x.child;case 29:throw x.pendingProps}throw Error(i(156,x.tag))}function XE(_){_.flags|=4}function jbe(_,x,L,B,ae){if((x=(_.mode&32)!==0)&&(x=!1),x){if(_.flags|=16777216,(ae&335544128)===ae)if(_.stateNode.complete)_.flags|=8192;else if(Jtt())_.flags|=8192;else throw wP=RZ,nbe}else _.flags&=-16777217}function Dtt(_,x){if(x.type!=="stylesheet"||(x.state.loading&4)!==0)_.flags&=-16777217;else if(_.flags|=16777216,!Hnt(x))if(Jtt())_.flags|=8192;else throw wP=RZ,nbe}function JZ(_,x){x!==null&&(_.flags|=4),_.flags&16384&&(x=_.tag!==22?ge():536870912,_.lanes|=x,u5|=x)}function tz(_,x){if(!jt)switch(_.tailMode){case"hidden":x=_.tail;for(var L=null;x!==null;)x.alternate!==null&&(L=x),x=x.sibling;L===null?_.tail=null:L.sibling=null;break;case"collapsed":L=_.tail;for(var B=null;L!==null;)L.alternate!==null&&(B=L),L=L.sibling;B===null?x||_.tail===null?_.tail=null:_.tail.sibling=null:B.sibling=null}}function Tu(_){var x=_.alternate!==null&&_.alternate.child===_.child,L=0,B=0;if(x)for(var ae=_.child;ae!==null;)L|=ae.lanes|ae.childLanes,B|=ae.subtreeFlags&65011712,B|=ae.flags&65011712,ae.return=_,ae=ae.sibling;else for(ae=_.child;ae!==null;)L|=ae.lanes|ae.childLanes,B|=ae.subtreeFlags,B|=ae.flags,ae.return=_,ae=ae.sibling;return _.subtreeFlags|=B,_.childLanes=L,x}function cPn(_,x,L){var B=x.pendingProps;switch(ht(x),x.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Tu(x),null;case 1:return Tu(x),null;case 3:return L=x.stateNode,B=null,_!==null&&(B=_.memoizedState.cache),x.memoizedState.cache!==B&&(x.flags|=2048),Uo(vt),oe(),L.pendingContext&&(L.context=L.pendingContext,L.pendingContext=null),(_===null||_.child===null)&&(si(x)?XE(x):_===null||_.memoizedState.isDehydrated&&(x.flags&256)===0||(x.flags|=1024,mi())),Tu(x),null;case 26:var ae=x.type,fe=x.memoizedState;return _===null?(XE(x),fe!==null?(Tu(x),Dtt(x,fe)):(Tu(x),jbe(x,ae,null,B,L))):fe?fe!==_.memoizedState?(XE(x),Tu(x),Dtt(x,fe)):(Tu(x),x.flags&=-16777217):(_=_.memoizedProps,_!==B&&XE(x),Tu(x),jbe(x,ae,_,B,L)),null;case 27:if(Ce(x),L=ie.current,ae=x.type,_!==null&&x.stateNode!=null)_.memoizedProps!==B&&XE(x);else{if(!B){if(x.stateNode===null)throw Error(i(166));return Tu(x),null}_=U.current,si(x)?zn(x):(_=Mnt(ae,B,L),x.stateNode=_,XE(x))}return Tu(x),null;case 5:if(Ce(x),ae=x.type,_!==null&&x.stateNode!=null)_.memoizedProps!==B&&XE(x);else{if(!B){if(x.stateNode===null)throw Error(i(166));return Tu(x),null}if(fe=U.current,si(x))zn(x);else{var je=pX(ie.current);switch(fe){case 1:fe=je.createElementNS("http://www.w3.org/2000/svg",ae);break;case 2:fe=je.createElementNS("http://www.w3.org/1998/Math/MathML",ae);break;default:switch(ae){case"svg":fe=je.createElementNS("http://www.w3.org/2000/svg",ae);break;case"math":fe=je.createElementNS("http://www.w3.org/1998/Math/MathML",ae);break;case"script":fe=je.createElement("div"),fe.innerHTML="<script><\/script>",fe=fe.removeChild(fe.firstChild);break;case"select":fe=typeof B.is=="string"?je.createElement("select",{is:B.is}):je.createElement("select"),B.multiple?fe.multiple=!0:B.size&&(fe.size=B.size);break;default:fe=typeof B.is=="string"?je.createElement(ae,{is:B.is}):je.createElement(ae)}}fe[Xe]=x,fe[Ht]=B;e:for(je=x.child;je!==null;){if(je.tag===5||je.tag===6)fe.appendChild(je.stateNode);else if(je.tag!==4&&je.tag!==27&&je.child!==null){je.child.return=je,je=je.child;continue}if(je===x)break e;for(;je.sibling===null;){if(je.return===null||je.return===x)break e;je=je.return}je.sibling.return=je.return,je=je.sibling}x.stateNode=fe;e:switch(Vp(fe,ae,B),ae){case"button":case"input":case"select":case"textarea":B=!!B.autoFocus;break e;case"img":B=!0;break e;default:B=!1}B&&XE(x)}}return Tu(x),jbe(x,x.type,_===null?null:_.memoizedProps,x.pendingProps,L),null;case 6:if(_&&x.stateNode!=null)_.memoizedProps!==B&&XE(x);else{if(typeof B!="string"&&x.stateNode===null)throw Error(i(166));if(_=ie.current,si(x)){if(_=x.stateNode,L=x.memoizedProps,B=null,ae=Ft,ae!==null)switch(ae.tag){case 27:case 5:B=ae.memoizedProps}_[Xe]=x,_=!!(_.nodeValue===L||B!==null&&B.suppressHydrationWarning===!0||Snt(_.nodeValue,L)),_||vn(x,!0)}else _=pX(_).createTextNode(B),_[Xe]=x,x.stateNode=_}return Tu(x),null;case 31:if(L=x.memoizedState,_===null||_.memoizedState!==null){if(B=si(x),L!==null){if(_===null){if(!B)throw Error(i(318));if(_=x.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(i(557));_[Xe]=x}else ii(),(x.flags&128)===0&&(x.memoizedState=null),x.flags|=4;Tu(x),_=!1}else L=mi(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=L),_=!0;if(!_)return x.flags&256?(ly(x),x):(ly(x),null);if((x.flags&128)!==0)throw Error(i(558))}return Tu(x),null;case 13:if(B=x.memoizedState,_===null||_.memoizedState!==null&&_.memoizedState.dehydrated!==null){if(ae=si(x),B!==null&&B.dehydrated!==null){if(_===null){if(!ae)throw Error(i(318));if(ae=x.memoizedState,ae=ae!==null?ae.dehydrated:null,!ae)throw Error(i(317));ae[Xe]=x}else ii(),(x.flags&128)===0&&(x.memoizedState=null),x.flags|=4;Tu(x),ae=!1}else ae=mi(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=ae),ae=!0;if(!ae)return x.flags&256?(ly(x),x):(ly(x),null)}return ly(x),(x.flags&128)!==0?(x.lanes=L,x):(L=B!==null,_=_!==null&&_.memoizedState!==null,L&&(B=x.child,ae=null,B.alternate!==null&&B.alternate.memoizedState!==null&&B.alternate.memoizedState.cachePool!==null&&(ae=B.alternate.memoizedState.cachePool.pool),fe=null,B.memoizedState!==null&&B.memoizedState.cachePool!==null&&(fe=B.memoizedState.cachePool.pool),fe!==ae&&(B.flags|=2048)),L!==_&&L&&(x.child.flags|=8192),JZ(x,x.updateQueue),Tu(x),null);case 4:return oe(),_===null&&a_e(x.stateNode.containerInfo),Tu(x),null;case 10:return Uo(x.type),Tu(x),null;case 19:if(G(Xd),B=x.memoizedState,B===null)return Tu(x),null;if(ae=(x.flags&128)!==0,fe=B.rendering,fe===null)if(ae)tz(B,!1);else{if(Dd!==0||_!==null&&(_.flags&128)!==0)for(_=x.child;_!==null;){if(fe=zZ(_),fe!==null){for(x.flags|=128,tz(B,!1),_=fe.updateQueue,x.updateQueue=_,JZ(x,_),x.subtreeFlags=0,_=L,L=x.child;L!==null;)e5(L,_),L=L.sibling;return pe(Xd,Xd.current&1|2),jt&&Pe(x,B.treeForkCount),x.child}_=_.sibling}B.tail!==null&&ct()>rX&&(x.flags|=128,ae=!0,tz(B,!1),x.lanes=4194304)}else{if(!ae)if(_=zZ(fe),_!==null){if(x.flags|=128,ae=!0,_=_.updateQueue,x.updateQueue=_,JZ(x,_),tz(B,!0),B.tail===null&&B.tailMode==="hidden"&&!fe.alternate&&!jt)return Tu(x),null}else 2*ct()-B.renderingStartTime>rX&&L!==536870912&&(x.flags|=128,ae=!0,tz(B,!1),x.lanes=4194304);B.isBackwards?(fe.sibling=x.child,x.child=fe):(_=B.last,_!==null?_.sibling=fe:x.child=fe,B.last=fe)}return B.tail!==null?(_=B.tail,B.rendering=_,B.tail=_.sibling,B.renderingStartTime=ct(),_.sibling=null,L=Xd.current,pe(Xd,ae?L&1|2:L&1),jt&&Pe(x,B.treeForkCount),_):(Tu(x),null);case 22:case 23:return ly(x),lbe(),B=x.memoizedState!==null,_!==null?_.memoizedState!==null!==B&&(x.flags|=8192):B&&(x.flags|=8192),B?(L&536870912)!==0&&(x.flags&128)===0&&(Tu(x),x.subtreeFlags&6&&(x.flags|=8192)):Tu(x),L=x.updateQueue,L!==null&&JZ(x,L.retryQueue),L=null,_!==null&&_.memoizedState!==null&&_.memoizedState.cachePool!==null&&(L=_.memoizedState.cachePool.pool),B=null,x.memoizedState!==null&&x.memoizedState.cachePool!==null&&(B=x.memoizedState.cachePool.pool),B!==L&&(x.flags|=2048),_!==null&&G(Ww),null;case 24:return L=null,_!==null&&(L=_.memoizedState.cache),x.memoizedState.cache!==L&&(x.flags|=2048),Uo(vt),Tu(x),null;case 25:return null;case 30:return null}throw Error(i(156,x.tag))}function uPn(_,x){switch(ht(x),x.tag){case 1:return _=x.flags,_&65536?(x.flags=_&-65537|128,x):null;case 3:return Uo(vt),oe(),_=x.flags,(_&65536)!==0&&(_&128)===0?(x.flags=_&-65537|128,x):null;case 26:case 27:case 5:return Ce(x),null;case 31:if(x.memoizedState!==null){if(ly(x),x.alternate===null)throw Error(i(340));ii()}return _=x.flags,_&65536?(x.flags=_&-65537|128,x):null;case 13:if(ly(x),_=x.memoizedState,_!==null&&_.dehydrated!==null){if(x.alternate===null)throw Error(i(340));ii()}return _=x.flags,_&65536?(x.flags=_&-65537|128,x):null;case 19:return G(Xd),null;case 4:return oe(),null;case 10:return Uo(x.type),null;case 22:case 23:return ly(x),lbe(),_!==null&&G(Ww),_=x.flags,_&65536?(x.flags=_&-65537|128,x):null;case 24:return Uo(vt),null;case 25:return null;default:return null}}function Ttt(_,x){switch(ht(x),x.tag){case 3:Uo(vt),oe();break;case 26:case 27:case 5:Ce(x);break;case 4:oe();break;case 31:x.memoizedState!==null&&ly(x);break;case 13:ly(x);break;case 19:G(Xd);break;case 10:Uo(x.type);break;case 22:case 23:ly(x),lbe(),_!==null&&G(Ww);break;case 24:Uo(vt)}}function nz(_,x){try{var L=x.updateQueue,B=L!==null?L.lastEffect:null;if(B!==null){var ae=B.next;L=ae;do{if((L.tag&_)===_){B=void 0;var fe=L.create,je=L.inst;B=fe(),je.destroy=B}L=L.next}while(L!==ae)}}catch(tt){dc(x,x.return,tt)}}function tk(_,x,L){try{var B=x.updateQueue,ae=B!==null?B.lastEffect:null;if(ae!==null){var fe=ae.next;B=fe;do{if((B.tag&_)===_){var je=B.inst,tt=je.destroy;if(tt!==void 0){je.destroy=void 0,ae=x;var Wt=L,Cn=tt;try{Cn()}catch(ei){dc(ae,Wt,ei)}}}B=B.next}while(B!==fe)}}catch(ei){dc(x,x.return,ei)}}function ktt(_){var x=_.updateQueue;if(x!==null){var L=_.stateNode;try{yet(x,L)}catch(B){dc(_,_.return,B)}}}function Itt(_,x,L){L.props=xP(_.type,_.memoizedProps),L.state=_.memoizedState;try{L.componentWillUnmount()}catch(B){dc(_,x,B)}}function iz(_,x){try{var L=_.ref;if(L!==null){switch(_.tag){case 26:case 27:case 5:var B=_.stateNode;break;case 30:B=_.stateNode;break;default:B=_.stateNode}typeof L=="function"?_.refCleanup=L(B):L.current=B}}catch(ae){dc(_,x,ae)}}function gS(_,x){var L=_.ref,B=_.refCleanup;if(L!==null)if(typeof B=="function")try{B()}catch(ae){dc(_,x,ae)}finally{_.refCleanup=null,_=_.alternate,_!=null&&(_.refCleanup=null)}else if(typeof L=="function")try{L(null)}catch(ae){dc(_,x,ae)}else L.current=null}function Ltt(_){var x=_.type,L=_.memoizedProps,B=_.stateNode;try{e:switch(x){case"button":case"input":case"select":case"textarea":L.autoFocus&&B.focus();break e;case"img":L.src?B.src=L.src:L.srcSet&&(B.srcset=L.srcSet)}}catch(ae){dc(_,_.return,ae)}}function zbe(_,x,L){try{var B=_.stateNode;NPn(B,_.type,L,x),B[Ht]=x}catch(ae){dc(_,_.return,ae)}}function Ntt(_){return _.tag===5||_.tag===3||_.tag===26||_.tag===27&&lk(_.type)||_.tag===4}function Vbe(_){e:for(;;){for(;_.sibling===null;){if(_.return===null||Ntt(_.return))return null;_=_.return}for(_.sibling.return=_.return,_=_.sibling;_.tag!==5&&_.tag!==6&&_.tag!==18;){if(_.tag===27&&lk(_.type)||_.flags&2||_.child===null||_.tag===4)continue e;_.child.return=_,_=_.child}if(!(_.flags&2))return _.stateNode}}function Hbe(_,x,L){var B=_.tag;if(B===5||B===6)_=_.stateNode,x?(L.nodeType===9?L.body:L.nodeName==="HTML"?L.ownerDocument.body:L).insertBefore(_,x):(x=L.nodeType===9?L.body:L.nodeName==="HTML"?L.ownerDocument.body:L,x.appendChild(_),L=L._reactRootContainer,L!=null||x.onclick!==null||(x.onclick=Ml));else if(B!==4&&(B===27&&lk(_.type)&&(L=_.stateNode,x=null),_=_.child,_!==null))for(Hbe(_,x,L),_=_.sibling;_!==null;)Hbe(_,x,L),_=_.sibling}function eX(_,x,L){var B=_.tag;if(B===5||B===6)_=_.stateNode,x?L.insertBefore(_,x):L.appendChild(_);else if(B!==4&&(B===27&&lk(_.type)&&(L=_.stateNode),_=_.child,_!==null))for(eX(_,x,L),_=_.sibling;_!==null;)eX(_,x,L),_=_.sibling}function Ptt(_){var x=_.stateNode,L=_.memoizedProps;try{for(var B=_.type,ae=x.attributes;ae.length;)x.removeAttributeNode(ae[0]);Vp(x,B,L),x[Xe]=_,x[Ht]=L}catch(fe){dc(_,_.return,fe)}}var JE=!1,jh=!1,Wbe=!1,Mtt=typeof WeakSet=="function"?WeakSet:Set,Jf=null;function dPn(_,x){if(_=_.containerInfo,u_e=wX,_=Bb(_),VE(_)){if("selectionStart"in _)var L={start:_.selectionStart,end:_.selectionEnd};else e:{L=(L=_.ownerDocument)&&L.defaultView||window;var B=L.getSelection&&L.getSelection();if(B&&B.rangeCount!==0){L=B.anchorNode;var ae=B.anchorOffset,fe=B.focusNode;B=B.focusOffset;try{L.nodeType,fe.nodeType}catch{L=null;break e}var je=0,tt=-1,Wt=-1,Cn=0,ei=0,vi=_,Ln=null;t:for(;;){for(var Vn;vi!==L||ae!==0&&vi.nodeType!==3||(tt=je+ae),vi!==fe||B!==0&&vi.nodeType!==3||(Wt=je+B),vi.nodeType===3&&(je+=vi.nodeValue.length),(Vn=vi.firstChild)!==null;)Ln=vi,vi=Vn;for(;;){if(vi===_)break t;if(Ln===L&&++Cn===ae&&(tt=je),Ln===fe&&++ei===B&&(Wt=je),(Vn=vi.nextSibling)!==null)break;vi=Ln,Ln=vi.parentNode}vi=Vn}L=tt===-1||Wt===-1?null:{start:tt,end:Wt}}else L=null}L=L||{start:0,end:0}}else L=null;for(d_e={focusedElem:_,selectionRange:L},wX=!1,Jf=x;Jf!==null;)if(x=Jf,_=x.child,(x.subtreeFlags&1028)!==0&&_!==null)_.return=x,Jf=_;else for(;Jf!==null;){switch(x=Jf,fe=x.alternate,_=x.flags,x.tag){case 0:if((_&4)!==0&&(_=x.updateQueue,_=_!==null?_.events:null,_!==null))for(L=0;L<_.length;L++)ae=_[L],ae.ref.impl=ae.nextImpl;break;case 11:case 15:break;case 1:if((_&1024)!==0&&fe!==null){_=void 0,L=x,ae=fe.memoizedProps,fe=fe.memoizedState,B=L.stateNode;try{var Zr=xP(L.type,ae);_=B.getSnapshotBeforeUpdate(Zr,fe),B.__reactInternalSnapshotBeforeUpdate=_}catch(Yo){dc(L,L.return,Yo)}}break;case 3:if((_&1024)!==0){if(_=x.stateNode.containerInfo,L=_.nodeType,L===9)p_e(_);else if(L===1)switch(_.nodeName){case"HEAD":case"HTML":case"BODY":p_e(_);break;default:_.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((_&1024)!==0)throw Error(i(163))}if(_=x.sibling,_!==null){_.return=x.return,Jf=_;break}Jf=x.return}}function Ott(_,x,L){var B=L.flags;switch(L.tag){case 0:case 11:case 15:tA(_,L),B&4&&nz(5,L);break;case 1:if(tA(_,L),B&4)if(_=L.stateNode,x===null)try{_.componentDidMount()}catch(je){dc(L,L.return,je)}else{var ae=xP(L.type,x.memoizedProps);x=x.memoizedState;try{_.componentDidUpdate(ae,x,_.__reactInternalSnapshotBeforeUpdate)}catch(je){dc(L,L.return,je)}}B&64&&ktt(L),B&512&&iz(L,L.return);break;case 3:if(tA(_,L),B&64&&(_=L.updateQueue,_!==null)){if(x=null,L.child!==null)switch(L.child.tag){case 27:case 5:x=L.child.stateNode;break;case 1:x=L.child.stateNode}try{yet(_,x)}catch(je){dc(L,L.return,je)}}break;case 27:x===null&&B&4&&Ptt(L);case 26:case 5:tA(_,L),x===null&&B&4&&Ltt(L),B&512&&iz(L,L.return);break;case 12:tA(_,L);break;case 31:tA(_,L),B&4&&Btt(_,L);break;case 13:tA(_,L),B&4&&jtt(_,L),B&64&&(_=L.memoizedState,_!==null&&(_=_.dehydrated,_!==null&&(L=_Pn.bind(null,L),zPn(_,L))));break;case 22:if(B=L.memoizedState!==null||JE,!B){x=x!==null&&x.memoizedState!==null||jh,ae=JE;var fe=jh;JE=B,(jh=x)&&!fe?nA(_,L,(L.subtreeFlags&8772)!==0):tA(_,L),JE=ae,jh=fe}break;case 30:break;default:tA(_,L)}}function Rtt(_){var x=_.alternate;x!==null&&(_.alternate=null,Rtt(x)),_.child=null,_.deletions=null,_.sibling=null,_.tag===5&&(x=_.stateNode,x!==null&&Lt(x)),_.stateNode=null,_.return=null,_.dependencies=null,_.memoizedProps=null,_.memoizedState=null,_.pendingProps=null,_.stateNode=null,_.updateQueue=null}var Vu=null,Kv=!1;function eA(_,x,L){for(L=L.child;L!==null;)Ftt(_,x,L),L=L.sibling}function Ftt(_,x,L){if(Kt&&typeof Kt.onCommitFiberUnmount=="function")try{Kt.onCommitFiberUnmount(Gt,L)}catch{}switch(L.tag){case 26:jh||gS(L,x),eA(_,x,L),L.memoizedState?L.memoizedState.count--:L.stateNode&&(L=L.stateNode,L.parentNode.removeChild(L));break;case 27:jh||gS(L,x);var B=Vu,ae=Kv;lk(L.type)&&(Vu=L.stateNode,Kv=!1),eA(_,x,L),hz(L.stateNode),Vu=B,Kv=ae;break;case 5:jh||gS(L,x);case 6:if(B=Vu,ae=Kv,Vu=null,eA(_,x,L),Vu=B,Kv=ae,Vu!==null)if(Kv)try{(Vu.nodeType===9?Vu.body:Vu.nodeName==="HTML"?Vu.ownerDocument.body:Vu).removeChild(L.stateNode)}catch(fe){dc(L,x,fe)}else try{Vu.removeChild(L.stateNode)}catch(fe){dc(L,x,fe)}break;case 18:Vu!==null&&(Kv?(_=Vu,knt(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_,L.stateNode),y5(_)):knt(Vu,L.stateNode));break;case 4:B=Vu,ae=Kv,Vu=L.stateNode.containerInfo,Kv=!0,eA(_,x,L),Vu=B,Kv=ae;break;case 0:case 11:case 14:case 15:tk(2,L,x),jh||tk(4,L,x),eA(_,x,L);break;case 1:jh||(gS(L,x),B=L.stateNode,typeof B.componentWillUnmount=="function"&&Itt(L,x,B)),eA(_,x,L);break;case 21:eA(_,x,L);break;case 22:jh=(B=jh)||L.memoizedState!==null,eA(_,x,L),jh=B;break;default:eA(_,x,L)}}function Btt(_,x){if(x.memoizedState===null&&(_=x.alternate,_!==null&&(_=_.memoizedState,_!==null))){_=_.dehydrated;try{y5(_)}catch(L){dc(x,x.return,L)}}}function jtt(_,x){if(x.memoizedState===null&&(_=x.alternate,_!==null&&(_=_.memoizedState,_!==null&&(_=_.dehydrated,_!==null))))try{y5(_)}catch(L){dc(x,x.return,L)}}function hPn(_){switch(_.tag){case 31:case 13:case 19:var x=_.stateNode;return x===null&&(x=_.stateNode=new Mtt),x;case 22:return _=_.stateNode,x=_._retryCache,x===null&&(x=_._retryCache=new Mtt),x;default:throw Error(i(435,_.tag))}}function tX(_,x){var L=hPn(_);x.forEach(function(B){if(!L.has(B)){L.add(B);var ae=wPn.bind(null,_,B);B.then(ae,ae)}})}function Yv(_,x){var L=x.deletions;if(L!==null)for(var B=0;B<L.length;B++){var ae=L[B],fe=_,je=x,tt=je;e:for(;tt!==null;){switch(tt.tag){case 27:if(lk(tt.type)){Vu=tt.stateNode,Kv=!1;break e}break;case 5:Vu=tt.stateNode,Kv=!1;break e;case 3:case 4:Vu=tt.stateNode.containerInfo,Kv=!0;break e}tt=tt.return}if(Vu===null)throw Error(i(160));Ftt(fe,je,ae),Vu=null,Kv=!1,fe=ae.alternate,fe!==null&&(fe.return=null),ae.return=null}if(x.subtreeFlags&13886)for(x=x.child;x!==null;)ztt(x,_),x=x.sibling}var Uw=null;function ztt(_,x){var L=_.alternate,B=_.flags;switch(_.tag){case 0:case 11:case 14:case 15:Yv(x,_),Qv(_),B&4&&(tk(3,_,_.return),nz(3,_),tk(5,_,_.return));break;case 1:Yv(x,_),Qv(_),B&512&&(jh||L===null||gS(L,L.return)),B&64&&JE&&(_=_.updateQueue,_!==null&&(B=_.callbacks,B!==null&&(L=_.shared.hiddenCallbacks,_.shared.hiddenCallbacks=L===null?B:L.concat(B))));break;case 26:var ae=Uw;if(Yv(x,_),Qv(_),B&512&&(jh||L===null||gS(L,L.return)),B&4){var fe=L!==null?L.memoizedState:null;if(B=_.memoizedState,L===null)if(B===null)if(_.stateNode===null){e:{B=_.type,L=_.memoizedProps,ae=ae.ownerDocument||ae;t:switch(B){case"title":fe=ae.getElementsByTagName("title")[0],(!fe||fe[Ue]||fe[Xe]||fe.namespaceURI==="http://www.w3.org/2000/svg"||fe.hasAttribute("itemprop"))&&(fe=ae.createElement(B),ae.head.insertBefore(fe,ae.querySelector("head > title"))),Vp(fe,B,L),fe[Xe]=_,xi(fe),B=fe;break e;case"link":var je=znt("link","href",ae).get(B+(L.href||""));if(je){for(var tt=0;tt<je.length;tt++)if(fe=je[tt],fe.getAttribute("href")===(L.href==null||L.href===""?null:L.href)&&fe.getAttribute("rel")===(L.rel==null?null:L.rel)&&fe.getAttribute("title")===(L.title==null?null:L.title)&&fe.getAttribute("crossorigin")===(L.crossOrigin==null?null:L.crossOrigin)){je.splice(tt,1);break t}}fe=ae.createElement(B),Vp(fe,B,L),ae.head.appendChild(fe);break;case"meta":if(je=znt("meta","content",ae).get(B+(L.content||""))){for(tt=0;tt<je.length;tt++)if(fe=je[tt],fe.getAttribute("content")===(L.content==null?null:""+L.content)&&fe.getAttribute("name")===(L.name==null?null:L.name)&&fe.getAttribute("property")===(L.property==null?null:L.property)&&fe.getAttribute("http-equiv")===(L.httpEquiv==null?null:L.httpEquiv)&&fe.getAttribute("charset")===(L.charSet==null?null:L.charSet)){je.splice(tt,1);break t}}fe=ae.createElement(B),Vp(fe,B,L),ae.head.appendChild(fe);break;default:throw Error(i(468,B))}fe[Xe]=_,xi(fe),B=fe}_.stateNode=B}else Vnt(ae,_.type,_.stateNode);else _.stateNode=jnt(ae,B,_.memoizedProps);else fe!==B?(fe===null?L.stateNode!==null&&(L=L.stateNode,L.parentNode.removeChild(L)):fe.count--,B===null?Vnt(ae,_.type,_.stateNode):jnt(ae,B,_.memoizedProps)):B===null&&_.stateNode!==null&&zbe(_,_.memoizedProps,L.memoizedProps)}break;case 27:Yv(x,_),Qv(_),B&512&&(jh||L===null||gS(L,L.return)),L!==null&&B&4&&zbe(_,_.memoizedProps,L.memoizedProps);break;case 5:if(Yv(x,_),Qv(_),B&512&&(jh||L===null||gS(L,L.return)),_.flags&32){ae=_.stateNode;try{ju(ae,"")}catch(Zr){dc(_,_.return,Zr)}}B&4&&_.stateNode!=null&&(ae=_.memoizedProps,zbe(_,ae,L!==null?L.memoizedProps:ae)),B&1024&&(Wbe=!0);break;case 6:if(Yv(x,_),Qv(_),B&4){if(_.stateNode===null)throw Error(i(162));B=_.memoizedProps,L=_.stateNode;try{L.nodeValue=B}catch(Zr){dc(_,_.return,Zr)}}break;case 3:if(vX=null,ae=Uw,Uw=gX(x.containerInfo),Yv(x,_),Uw=ae,Qv(_),B&4&&L!==null&&L.memoizedState.isDehydrated)try{y5(x.containerInfo)}catch(Zr){dc(_,_.return,Zr)}Wbe&&(Wbe=!1,Vtt(_));break;case 4:B=Uw,Uw=gX(_.stateNode.containerInfo),Yv(x,_),Qv(_),Uw=B;break;case 12:Yv(x,_),Qv(_);break;case 31:Yv(x,_),Qv(_),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,tX(_,B)));break;case 13:Yv(x,_),Qv(_),_.child.flags&8192&&_.memoizedState!==null!=(L!==null&&L.memoizedState!==null)&&(iX=ct()),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,tX(_,B)));break;case 22:ae=_.memoizedState!==null;var Wt=L!==null&&L.memoizedState!==null,Cn=JE,ei=jh;if(JE=Cn||ae,jh=ei||Wt,Yv(x,_),jh=ei,JE=Cn,Qv(_),B&8192)e:for(x=_.stateNode,x._visibility=ae?x._visibility&-2:x._visibility|1,ae&&(L===null||Wt||JE||jh||EP(_)),L=null,x=_;;){if(x.tag===5||x.tag===26){if(L===null){Wt=L=x;try{if(fe=Wt.stateNode,ae)je=fe.style,typeof je.setProperty=="function"?je.setProperty("display","none","important"):je.display="none";else{tt=Wt.stateNode;var vi=Wt.memoizedProps.style,Ln=vi!=null&&vi.hasOwnProperty("display")?vi.display:null;tt.style.display=Ln==null||typeof Ln=="boolean"?"":(""+Ln).trim()}}catch(Zr){dc(Wt,Wt.return,Zr)}}}else if(x.tag===6){if(L===null){Wt=x;try{Wt.stateNode.nodeValue=ae?"":Wt.memoizedProps}catch(Zr){dc(Wt,Wt.return,Zr)}}}else if(x.tag===18){if(L===null){Wt=x;try{var Vn=Wt.stateNode;ae?Int(Vn,!0):Int(Wt.stateNode,!1)}catch(Zr){dc(Wt,Wt.return,Zr)}}}else if((x.tag!==22&&x.tag!==23||x.memoizedState===null||x===_)&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===_)break e;for(;x.sibling===null;){if(x.return===null||x.return===_)break e;L===x&&(L=null),x=x.return}L===x&&(L=null),x.sibling.return=x.return,x=x.sibling}B&4&&(B=_.updateQueue,B!==null&&(L=B.retryQueue,L!==null&&(B.retryQueue=null,tX(_,L))));break;case 19:Yv(x,_),Qv(_),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,tX(_,B)));break;case 30:break;case 21:break;default:Yv(x,_),Qv(_)}}function Qv(_){var x=_.flags;if(x&2){try{for(var L,B=_.return;B!==null;){if(Ntt(B)){L=B;break}B=B.return}if(L==null)throw Error(i(160));switch(L.tag){case 27:var ae=L.stateNode,fe=Vbe(_);eX(_,fe,ae);break;case 5:var je=L.stateNode;L.flags&32&&(ju(je,""),L.flags&=-33);var tt=Vbe(_);eX(_,tt,je);break;case 3:case 4:var Wt=L.stateNode.containerInfo,Cn=Vbe(_);Hbe(_,Cn,Wt);break;default:throw Error(i(161))}}catch(ei){dc(_,_.return,ei)}_.flags&=-3}x&4096&&(_.flags&=-4097)}function Vtt(_){if(_.subtreeFlags&1024)for(_=_.child;_!==null;){var x=_;Vtt(x),x.tag===5&&x.flags&1024&&x.stateNode.reset(),_=_.sibling}}function tA(_,x){if(x.subtreeFlags&8772)for(x=x.child;x!==null;)Ott(_,x.alternate,x),x=x.sibling}function EP(_){for(_=_.child;_!==null;){var x=_;switch(x.tag){case 0:case 11:case 14:case 15:tk(4,x,x.return),EP(x);break;case 1:gS(x,x.return);var L=x.stateNode;typeof L.componentWillUnmount=="function"&&Itt(x,x.return,L),EP(x);break;case 27:hz(x.stateNode);case 26:case 5:gS(x,x.return),EP(x);break;case 22:x.memoizedState===null&&EP(x);break;case 30:EP(x);break;default:EP(x)}_=_.sibling}}function nA(_,x,L){for(L=L&&(x.subtreeFlags&8772)!==0,x=x.child;x!==null;){var B=x.alternate,ae=_,fe=x,je=fe.flags;switch(fe.tag){case 0:case 11:case 15:nA(ae,fe,L),nz(4,fe);break;case 1:if(nA(ae,fe,L),B=fe,ae=B.stateNode,typeof ae.componentDidMount=="function")try{ae.componentDidMount()}catch(Cn){dc(B,B.return,Cn)}if(B=fe,ae=B.updateQueue,ae!==null){var tt=B.stateNode;try{var Wt=ae.shared.hiddenCallbacks;if(Wt!==null)for(ae.shared.hiddenCallbacks=null,ae=0;ae<Wt.length;ae++)vet(Wt[ae],tt)}catch(Cn){dc(B,B.return,Cn)}}L&&je&64&&ktt(fe),iz(fe,fe.return);break;case 27:Ptt(fe);case 26:case 5:nA(ae,fe,L),L&&B===null&&je&4&&Ltt(fe),iz(fe,fe.return);break;case 12:nA(ae,fe,L);break;case 31:nA(ae,fe,L),L&&je&4&&Btt(ae,fe);break;case 13:nA(ae,fe,L),L&&je&4&&jtt(ae,fe);break;case 22:fe.memoizedState===null&&nA(ae,fe,L),iz(fe,fe.return);break;case 30:break;default:nA(ae,fe,L)}x=x.sibling}}function Ube(_,x){var L=null;_!==null&&_.memoizedState!==null&&_.memoizedState.cachePool!==null&&(L=_.memoizedState.cachePool.pool),_=null,x.memoizedState!==null&&x.memoizedState.cachePool!==null&&(_=x.memoizedState.cachePool.pool),_!==L&&(_!=null&&_.refCount++,L!=null&&Hn(L))}function $be(_,x){_=null,x.alternate!==null&&(_=x.alternate.memoizedState.cache),x=x.memoizedState.cache,x!==_&&(x.refCount++,_!=null&&Hn(_))}function $w(_,x,L,B){if(x.subtreeFlags&10256)for(x=x.child;x!==null;)Htt(_,x,L,B),x=x.sibling}function Htt(_,x,L,B){var ae=x.flags;switch(x.tag){case 0:case 11:case 15:$w(_,x,L,B),ae&2048&&nz(9,x);break;case 1:$w(_,x,L,B);break;case 3:$w(_,x,L,B),ae&2048&&(_=null,x.alternate!==null&&(_=x.alternate.memoizedState.cache),x=x.memoizedState.cache,x!==_&&(x.refCount++,_!=null&&Hn(_)));break;case 12:if(ae&2048){$w(_,x,L,B),_=x.stateNode;try{var fe=x.memoizedProps,je=fe.id,tt=fe.onPostCommit;typeof tt=="function"&&tt(je,x.alternate===null?"mount":"update",_.passiveEffectDuration,-0)}catch(Wt){dc(x,x.return,Wt)}}else $w(_,x,L,B);break;case 31:$w(_,x,L,B);break;case 13:$w(_,x,L,B);break;case 23:break;case 22:fe=x.stateNode,je=x.alternate,x.memoizedState!==null?fe._visibility&2?$w(_,x,L,B):rz(_,x):fe._visibility&2?$w(_,x,L,B):(fe._visibility|=2,a5(_,x,L,B,(x.subtreeFlags&10256)!==0||!1)),ae&2048&&Ube(je,x);break;case 24:$w(_,x,L,B),ae&2048&&$be(x.alternate,x);break;default:$w(_,x,L,B)}}function a5(_,x,L,B,ae){for(ae=ae&&((x.subtreeFlags&10256)!==0||!1),x=x.child;x!==null;){var fe=_,je=x,tt=L,Wt=B,Cn=je.flags;switch(je.tag){case 0:case 11:case 15:a5(fe,je,tt,Wt,ae),nz(8,je);break;case 23:break;case 22:var ei=je.stateNode;je.memoizedState!==null?ei._visibility&2?a5(fe,je,tt,Wt,ae):rz(fe,je):(ei._visibility|=2,a5(fe,je,tt,Wt,ae)),ae&&Cn&2048&&Ube(je.alternate,je);break;case 24:a5(fe,je,tt,Wt,ae),ae&&Cn&2048&&$be(je.alternate,je);break;default:a5(fe,je,tt,Wt,ae)}x=x.sibling}}function rz(_,x){if(x.subtreeFlags&10256)for(x=x.child;x!==null;){var L=_,B=x,ae=B.flags;switch(B.tag){case 22:rz(L,B),ae&2048&&Ube(B.alternate,B);break;case 24:rz(L,B),ae&2048&&$be(B.alternate,B);break;default:rz(L,B)}x=x.sibling}}var oz=8192;function l5(_,x,L){if(_.subtreeFlags&oz)for(_=_.child;_!==null;)Wtt(_,x,L),_=_.sibling}function Wtt(_,x,L){switch(_.tag){case 26:l5(_,x,L),_.flags&oz&&_.memoizedState!==null&&XPn(L,Uw,_.memoizedState,_.memoizedProps);break;case 5:l5(_,x,L);break;case 3:case 4:var B=Uw;Uw=gX(_.stateNode.containerInfo),l5(_,x,L),Uw=B;break;case 22:_.memoizedState===null&&(B=_.alternate,B!==null&&B.memoizedState!==null?(B=oz,oz=16777216,l5(_,x,L),oz=B):l5(_,x,L));break;default:l5(_,x,L)}}function Utt(_){var x=_.alternate;if(x!==null&&(_=x.child,_!==null)){x.child=null;do x=_.sibling,_.sibling=null,_=x;while(_!==null)}}function sz(_){var x=_.deletions;if((_.flags&16)!==0){if(x!==null)for(var L=0;L<x.length;L++){var B=x[L];Jf=B,qtt(B,_)}Utt(_)}if(_.subtreeFlags&10256)for(_=_.child;_!==null;)$tt(_),_=_.sibling}function $tt(_){switch(_.tag){case 0:case 11:case 15:sz(_),_.flags&2048&&tk(9,_,_.return);break;case 3:sz(_);break;case 12:sz(_);break;case 22:var x=_.stateNode;_.memoizedState!==null&&x._visibility&2&&(_.return===null||_.return.tag!==13)?(x._visibility&=-3,nX(_)):sz(_);break;default:sz(_)}}function nX(_){var x=_.deletions;if((_.flags&16)!==0){if(x!==null)for(var L=0;L<x.length;L++){var B=x[L];Jf=B,qtt(B,_)}Utt(_)}for(_=_.child;_!==null;){switch(x=_,x.tag){case 0:case 11:case 15:tk(8,x,x.return),nX(x);break;case 22:L=x.stateNode,L._visibility&2&&(L._visibility&=-3,nX(x));break;default:nX(x)}_=_.sibling}}function qtt(_,x){for(;Jf!==null;){var L=Jf;switch(L.tag){case 0:case 11:case 15:tk(8,L,x);break;case 23:case 22:if(L.memoizedState!==null&&L.memoizedState.cachePool!==null){var B=L.memoizedState.cachePool.pool;B!=null&&B.refCount++}break;case 24:Hn(L.memoizedState.cache)}if(B=L.child,B!==null)B.return=L,Jf=B;else e:for(L=_;Jf!==null;){B=Jf;var ae=B.sibling,fe=B.return;if(Rtt(B),B===L){Jf=null;break e}if(ae!==null){ae.return=fe,Jf=ae;break e}Jf=fe}}}var fPn={getCacheForType:function(_){var x=O(vt),L=x.data.get(_);return L===void 0&&(L=_(),x.data.set(_,L)),L},cacheSignal:function(){return O(vt).controller.signal}},pPn=typeof WeakMap=="function"?WeakMap:Map,Rl=0,Kc=null,Da=null,Fa=0,uc=0,cy=null,nk=!1,c5=!1,qbe=!1,iA=0,Dd=0,ik=0,AP=0,Gbe=0,uy=0,u5=0,az=null,Zv=null,Kbe=!1,iX=0,Gtt=0,rX=1/0,oX=null,rk=null,Df=0,ok=null,d5=null,rA=0,Ybe=0,Qbe=null,Ktt=null,lz=0,Zbe=null;function dy(){return(Rl&2)!==0&&Fa!==0?Fa&-Fa:ee.T!==null?i_e():Ve()}function Ytt(){if(uy===0)if((Fa&536870912)===0||jt){var _=Li;Li<<=1,(Li&3932160)===0&&(Li=262144),uy=_}else uy=536870912;return _=ay.current,_!==null&&(_.flags|=32),uy}function Xv(_,x,L){(_===Kc&&(uc===2||uc===9)||_.cancelPendingCommit!==null)&&(h5(_,0),sk(_,Fa,uy,!1)),ve(_,L),((Rl&2)===0||_!==Kc)&&(_===Kc&&((Rl&2)===0&&(AP|=L),Dd===4&&sk(_,Fa,uy,!1)),mS(_))}function Qtt(_,x,L){if((Rl&6)!==0)throw Error(i(327));var B=!L&&(x&127)===0&&(x&_.expiredLanes)===0||V(_,x),ae=B?vPn(_,x):Jbe(_,x,!0),fe=B;do{if(ae===0){c5&&!B&&sk(_,x,0,!1);break}else{if(L=_.current.alternate,fe&&!gPn(L)){ae=Jbe(_,x,!1),fe=!1;continue}if(ae===2){if(fe=x,_.errorRecoveryDisabledLanes&fe)var je=0;else je=_.pendingLanes&-536870913,je=je!==0?je:je&536870912?536870912:0;if(je!==0){x=je;e:{var tt=_;ae=az;var Wt=tt.current.memoizedState.isDehydrated;if(Wt&&(h5(tt,je).flags|=256),je=Jbe(tt,je,!1),je!==2){if(qbe&&!Wt){tt.errorRecoveryDisabledLanes|=fe,AP|=fe,ae=4;break e}fe=Zv,Zv=ae,fe!==null&&(Zv===null?Zv=fe:Zv.push.apply(Zv,fe))}ae=je}if(fe=!1,ae!==2)continue}}if(ae===1){h5(_,0),sk(_,x,0,!0);break}e:{switch(B=_,fe=ae,fe){case 0:case 1:throw Error(i(345));case 4:if((x&4194048)!==x)break;case 6:sk(B,x,uy,!nk);break e;case 2:Zv=null;break;case 3:case 5:break;default:throw Error(i(329))}if((x&62914560)===x&&(ae=iX+300-ct(),10<ae)){if(sk(B,x,uy,!nk),ne(B,0,!0)!==0)break e;rA=x,B.timeoutHandle=Dnt(Ztt.bind(null,B,L,Zv,oX,Kbe,x,uy,AP,u5,nk,fe,"Throttled",-0,0),ae);break e}Ztt(B,L,Zv,oX,Kbe,x,uy,AP,u5,nk,fe,null,-0,0)}}break}while(!0);mS(_)}function Ztt(_,x,L,B,ae,fe,je,tt,Wt,Cn,ei,vi,Ln,Vn){if(_.timeoutHandle=-1,vi=x.subtreeFlags,vi&8192||(vi&16785408)===16785408){vi={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ml},Wtt(x,fe,vi);var Zr=(fe&62914560)===fe?iX-ct():(fe&4194048)===fe?Gtt-ct():0;if(Zr=JPn(vi,Zr),Zr!==null){rA=fe,_.cancelPendingCommit=Zr(ont.bind(null,_,x,fe,L,B,ae,je,tt,Wt,ei,vi,null,Ln,Vn)),sk(_,fe,je,!Cn);return}}ont(_,x,fe,L,B,ae,je,tt,Wt)}function gPn(_){for(var x=_;;){var L=x.tag;if((L===0||L===11||L===15)&&x.flags&16384&&(L=x.updateQueue,L!==null&&(L=L.stores,L!==null)))for(var B=0;B<L.length;B++){var ae=L[B],fe=ae.getSnapshot;ae=ae.value;try{if(!Rh(fe(),ae))return!1}catch{return!1}}if(L=x.child,x.subtreeFlags&16384&&L!==null)L.return=x,x=L;else{if(x===_)break;for(;x.sibling===null;){if(x.return===null||x.return===_)return!0;x=x.return}x.sibling.return=x.return,x=x.sibling}}return!0}function sk(_,x,L,B){x&=~Gbe,x&=~AP,_.suspendedLanes|=x,_.pingedLanes&=~x,B&&(_.warmLanes|=x),B=_.expirationTimes;for(var ae=x;0<ae;){var fe=31-pn(ae),je=1<<fe;B[fe]=-1,ae&=~je}L!==0&&Ee(_,L,x)}function sX(){return(Rl&6)===0?(cz(0),!1):!0}function Xbe(){if(Da!==null){if(uc===0)var _=Da.return;else _=Da,Gi=sr=null,pbe(_),n5=null,$j=0,_=Da;for(;_!==null;)Ttt(_.alternate,_),_=_.return;Da=null}}function h5(_,x){var L=_.timeoutHandle;L!==-1&&(_.timeoutHandle=-1,OPn(L)),L=_.cancelPendingCommit,L!==null&&(_.cancelPendingCommit=null,L()),rA=0,Xbe(),Kc=_,Da=L=Zd(_.current,null),Fa=x,uc=0,cy=null,nk=!1,c5=V(_,x),qbe=!1,u5=uy=Gbe=AP=ik=Dd=0,Zv=az=null,Kbe=!1,(x&8)!==0&&(x|=x&32);var B=_.entangledLanes;if(B!==0)for(_=_.entanglements,B&=x;0<B;){var ae=31-pn(B),fe=1<<ae;x|=_[ae],B&=~fe}return iA=x,jb(),L}function Xtt(_,x){$s=null,ee.H=Jj,x===t5||x===OZ?(x=fet(),uc=3):x===nbe?(x=fet(),uc=4):uc=x===Ibe?8:x!==null&&typeof x=="object"&&typeof x.then=="function"?6:1,cy=x,Da===null&&(Dd=1,YZ(_,qc(x,_.current)))}function Jtt(){var _=ay.current;return _===null?!0:(Fa&4194048)===Fa?Vb===null:(Fa&62914560)===Fa||(Fa&536870912)!==0?_===Vb:!1}function ent(){var _=ee.H;return ee.H=Jj,_===null?Jj:_}function tnt(){var _=ee.A;return ee.A=fPn,_}function aX(){Dd=4,nk||(Fa&4194048)!==Fa&&ay.current!==null||(c5=!0),(ik&134217727)===0&&(AP&134217727)===0||Kc===null||sk(Kc,Fa,uy,!1)}function Jbe(_,x,L){var B=Rl;Rl|=2;var ae=ent(),fe=tnt();(Kc!==_||Fa!==x)&&(oX=null,h5(_,x)),x=!1;var je=Dd;e:do try{if(uc!==0&&Da!==null){var tt=Da,Wt=cy;switch(uc){case 8:Xbe(),je=6;break e;case 3:case 2:case 9:case 6:ay.current===null&&(x=!0);var Cn=uc;if(uc=0,cy=null,f5(_,tt,Wt,Cn),L&&c5){je=0;break e}break;default:Cn=uc,uc=0,cy=null,f5(_,tt,Wt,Cn)}}mPn(),je=Dd;break}catch(ei){Xtt(_,ei)}while(!0);return x&&_.shellSuspendCounter++,Gi=sr=null,Rl=B,ee.H=ae,ee.A=fe,Da===null&&(Kc=null,Fa=0,jb()),je}function mPn(){for(;Da!==null;)nnt(Da)}function vPn(_,x){var L=Rl;Rl|=2;var B=ent(),ae=tnt();Kc!==_||Fa!==x?(oX=null,rX=ct()+500,h5(_,x)):c5=V(_,x);e:do try{if(uc!==0&&Da!==null){x=Da;var fe=cy;t:switch(uc){case 1:uc=0,cy=null,f5(_,x,fe,1);break;case 2:case 9:if(det(fe)){uc=0,cy=null,int(x);break}x=function(){uc!==2&&uc!==9||Kc!==_||(uc=7),mS(_)},fe.then(x,x);break e;case 3:uc=7;break e;case 4:uc=5;break e;case 7:det(fe)?(uc=0,cy=null,int(x)):(uc=0,cy=null,f5(_,x,fe,7));break;case 5:var je=null;switch(Da.tag){case 26:je=Da.memoizedState;case 5:case 27:var tt=Da;if(je?Hnt(je):tt.stateNode.complete){uc=0,cy=null;var Wt=tt.sibling;if(Wt!==null)Da=Wt;else{var Cn=tt.return;Cn!==null?(Da=Cn,lX(Cn)):Da=null}break t}}uc=0,cy=null,f5(_,x,fe,5);break;case 6:uc=0,cy=null,f5(_,x,fe,6);break;case 8:Xbe(),Dd=6;break e;default:throw Error(i(462))}}yPn();break}catch(ei){Xtt(_,ei)}while(!0);return Gi=sr=null,ee.H=B,ee.A=ae,Rl=L,Da!==null?0:(Kc=null,Fa=0,jb(),Dd)}function yPn(){for(;Da!==null&&!it();)nnt(Da)}function nnt(_){var x=Att(_.alternate,_,iA);_.memoizedProps=_.pendingProps,x===null?lX(_):Da=x}function int(_){var x=_,L=x.alternate;switch(x.tag){case 15:case 0:x=_tt(L,x,x.pendingProps,x.type,void 0,Fa);break;case 11:x=_tt(L,x,x.pendingProps,x.type.render,x.ref,Fa);break;case 5:pbe(x);default:Ttt(L,x),x=Da=e5(x,iA),x=Att(L,x,iA)}_.memoizedProps=_.pendingProps,x===null?lX(_):Da=x}function f5(_,x,L,B){Gi=sr=null,pbe(x),n5=null,$j=0;var ae=x.return;try{if(sPn(_,ae,x,L,Fa)){Dd=1,YZ(_,qc(L,_.current)),Da=null;return}}catch(fe){if(ae!==null)throw Da=ae,fe;Dd=1,YZ(_,qc(L,_.current)),Da=null;return}x.flags&32768?(jt||B===1?_=!0:c5||(Fa&536870912)!==0?_=!1:(nk=_=!0,(B===2||B===9||B===3||B===6)&&(B=ay.current,B!==null&&B.tag===13&&(B.flags|=16384))),rnt(x,_)):lX(x)}function lX(_){var x=_;do{if((x.flags&32768)!==0){rnt(x,nk);return}_=x.return;var L=cPn(x.alternate,x,iA);if(L!==null){Da=L;return}if(x=x.sibling,x!==null){Da=x;return}Da=x=_}while(x!==null);Dd===0&&(Dd=5)}function rnt(_,x){do{var L=uPn(_.alternate,_);if(L!==null){L.flags&=32767,Da=L;return}if(L=_.return,L!==null&&(L.flags|=32768,L.subtreeFlags=0,L.deletions=null),!x&&(_=_.sibling,_!==null)){Da=_;return}Da=_=L}while(_!==null);Dd=6,Da=null}function ont(_,x,L,B,ae,fe,je,tt,Wt){_.cancelPendingCommit=null;do cX();while(Df!==0);if((Rl&6)!==0)throw Error(i(327));if(x!==null){if(x===_.current)throw Error(i(177));if(fe=x.lanes|x.childLanes,fe|=WE,_e(_,L,fe,je,tt,Wt),_===Kc&&(Da=Kc=null,Fa=0),d5=x,ok=_,rA=L,Ybe=fe,Qbe=ae,Ktt=B,(x.subtreeFlags&10256)!==0||(x.flags&10256)!==0?(_.callbackNode=null,_.callbackPriority=0,CPn(pt,function(){return unt(),null})):(_.callbackNode=null,_.callbackPriority=0),B=(x.flags&13878)!==0,(x.subtreeFlags&13878)!==0||B){B=ee.T,ee.T=null,ae=Q.p,Q.p=2,je=Rl,Rl|=4;try{dPn(_,x,L)}finally{Rl=je,Q.p=ae,ee.T=B}}Df=1,snt(),ant(),lnt()}}function snt(){if(Df===1){Df=0;var _=ok,x=d5,L=(x.flags&13878)!==0;if((x.subtreeFlags&13878)!==0||L){L=ee.T,ee.T=null;var B=Q.p;Q.p=2;var ae=Rl;Rl|=4;try{ztt(x,_);var fe=d_e,je=Bb(_.containerInfo),tt=fe.focusedElem,Wt=fe.selectionRange;if(je!==tt&&tt&&tt.ownerDocument&&zE(tt.ownerDocument.documentElement,tt)){if(Wt!==null&&VE(tt)){var Cn=Wt.start,ei=Wt.end;if(ei===void 0&&(ei=Cn),"selectionStart"in tt)tt.selectionStart=Cn,tt.selectionEnd=Math.min(ei,tt.value.length);else{var vi=tt.ownerDocument||document,Ln=vi&&vi.defaultView||window;if(Ln.getSelection){var Vn=Ln.getSelection(),Zr=tt.textContent.length,Yo=Math.min(Wt.start,Zr),Oc=Wt.end===void 0?Yo:Math.min(Wt.end,Zr);!Vn.extend&&Yo>Oc&&(je=Oc,Oc=Yo,Yo=je);var un=jE(tt,Yo),Xt=jE(tt,Oc);if(un&&Xt&&(Vn.rangeCount!==1||Vn.anchorNode!==un.node||Vn.anchorOffset!==un.offset||Vn.focusNode!==Xt.node||Vn.focusOffset!==Xt.offset)){var _n=vi.createRange();_n.setStart(un.node,un.offset),Vn.removeAllRanges(),Yo>Oc?(Vn.addRange(_n),Vn.extend(Xt.node,Xt.offset)):(_n.setEnd(Xt.node,Xt.offset),Vn.addRange(_n))}}}}for(vi=[],Vn=tt;Vn=Vn.parentNode;)Vn.nodeType===1&&vi.push({element:Vn,left:Vn.scrollLeft,top:Vn.scrollTop});for(typeof tt.focus=="function"&&tt.focus(),tt=0;tt<vi.length;tt++){var ci=vi[tt];ci.element.scrollLeft=ci.left,ci.element.scrollTop=ci.top}}wX=!!u_e,d_e=u_e=null}finally{Rl=ae,Q.p=B,ee.T=L}}_.current=x,Df=2}}function ant(){if(Df===2){Df=0;var _=ok,x=d5,L=(x.flags&8772)!==0;if((x.subtreeFlags&8772)!==0||L){L=ee.T,ee.T=null;var B=Q.p;Q.p=2;var ae=Rl;Rl|=4;try{Ott(_,x.alternate,x)}finally{Rl=ae,Q.p=B,ee.T=L}}Df=3}}function lnt(){if(Df===4||Df===3){Df=0,ft();var _=ok,x=d5,L=rA,B=Ktt;(x.subtreeFlags&10256)!==0||(x.flags&10256)!==0?Df=5:(Df=0,d5=ok=null,cnt(_,_.pendingLanes));var ae=_.pendingLanes;if(ae===0&&(rk=null),Ze(L),x=x.stateNode,Kt&&typeof Kt.onCommitFiberRoot=="function")try{Kt.onCommitFiberRoot(Gt,x,void 0,(x.current.flags&128)===128)}catch{}if(B!==null){x=ee.T,ae=Q.p,Q.p=2,ee.T=null;try{for(var fe=_.onRecoverableError,je=0;je<B.length;je++){var tt=B[je];fe(tt.value,{componentStack:tt.stack})}}finally{ee.T=x,Q.p=ae}}(rA&3)!==0&&cX(),mS(_),ae=_.pendingLanes,(L&261930)!==0&&(ae&42)!==0?_===Zbe?lz++:(lz=0,Zbe=_):lz=0,cz(0)}}function cnt(_,x){(_.pooledCacheLanes&=x)===0&&(x=_.pooledCache,x!=null&&(_.pooledCache=null,Hn(x)))}function cX(){return snt(),ant(),lnt(),unt()}function unt(){if(Df!==5)return!1;var _=ok,x=Ybe;Ybe=0;var L=Ze(rA),B=ee.T,ae=Q.p;try{Q.p=32>L?32:L,ee.T=null,L=Qbe,Qbe=null;var fe=ok,je=rA;if(Df=0,d5=ok=null,rA=0,(Rl&6)!==0)throw Error(i(331));var tt=Rl;if(Rl|=4,$tt(fe.current),Htt(fe,fe.current,je,L),Rl=tt,cz(0,!1),Kt&&typeof Kt.onPostCommitFiberRoot=="function")try{Kt.onPostCommitFiberRoot(Gt,fe)}catch{}return!0}finally{Q.p=ae,ee.T=B,cnt(_,x)}}function dnt(_,x,L){x=qc(L,x),x=kbe(_.stateNode,x,2),_=XT(_,x,2),_!==null&&(ve(_,2),mS(_))}function dc(_,x,L){if(_.tag===3)dnt(_,_,L);else for(;x!==null;){if(x.tag===3){dnt(x,_,L);break}else if(x.tag===1){var B=x.stateNode;if(typeof x.type.getDerivedStateFromError=="function"||typeof B.componentDidCatch=="function"&&(rk===null||!rk.has(B))){_=qc(L,_),L=htt(2),B=XT(x,L,2),B!==null&&(ftt(L,B,x,_),ve(B,2),mS(B));break}}x=x.return}}function e_e(_,x,L){var B=_.pingCache;if(B===null){B=_.pingCache=new pPn;var ae=new Set;B.set(x,ae)}else ae=B.get(x),ae===void 0&&(ae=new Set,B.set(x,ae));ae.has(L)||(qbe=!0,ae.add(L),_=bPn.bind(null,_,x,L),x.then(_,_))}function bPn(_,x,L){var B=_.pingCache;B!==null&&B.delete(x),_.pingedLanes|=_.suspendedLanes&L,_.warmLanes&=~L,Kc===_&&(Fa&L)===L&&(Dd===4||Dd===3&&(Fa&62914560)===Fa&&300>ct()-iX?(Rl&2)===0&&h5(_,0):Gbe|=L,u5===Fa&&(u5=0)),mS(_)}function hnt(_,x){x===0&&(x=ge()),_=Vw(_,x),_!==null&&(ve(_,x),mS(_))}function _Pn(_){var x=_.memoizedState,L=0;x!==null&&(L=x.retryLane),hnt(_,L)}function wPn(_,x){var L=0;switch(_.tag){case 31:case 13:var B=_.stateNode,ae=_.memoizedState;ae!==null&&(L=ae.retryLane);break;case 19:B=_.stateNode;break;case 22:B=_.stateNode._retryCache;break;default:throw Error(i(314))}B!==null&&B.delete(x),hnt(_,L)}function CPn(_,x){return ze(_,x)}var uX=null,p5=null,t_e=!1,dX=!1,n_e=!1,ak=0;function mS(_){_!==p5&&_.next===null&&(p5===null?uX=p5=_:p5=p5.next=_),dX=!0,t_e||(t_e=!0,xPn())}function cz(_,x){if(!n_e&&dX){n_e=!0;do for(var L=!1,B=uX;B!==null;){if(_!==0){var ae=B.pendingLanes;if(ae===0)var fe=0;else{var je=B.suspendedLanes,tt=B.pingedLanes;fe=(1<<31-pn(42|_)+1)-1,fe&=ae&~(je&~tt),fe=fe&201326741?fe&201326741|1:fe?fe|2:0}fe!==0&&(L=!0,mnt(B,fe))}else fe=Fa,fe=ne(B,B===Kc?fe:0,B.cancelPendingCommit!==null||B.timeoutHandle!==-1),(fe&3)===0||V(B,fe)||(L=!0,mnt(B,fe));B=B.next}while(L);n_e=!1}}function SPn(){fnt()}function fnt(){dX=t_e=!1;var _=0;ak!==0&&MPn()&&(_=ak);for(var x=ct(),L=null,B=uX;B!==null;){var ae=B.next,fe=pnt(B,x);fe===0?(B.next=null,L===null?uX=ae:L.next=ae,ae===null&&(p5=L)):(L=B,(_!==0||(fe&3)!==0)&&(dX=!0)),B=ae}Df!==0&&Df!==5||cz(_),ak!==0&&(ak=0)}function pnt(_,x){for(var L=_.suspendedLanes,B=_.pingedLanes,ae=_.expirationTimes,fe=_.pendingLanes&-62914561;0<fe;){var je=31-pn(fe),tt=1<<je,Wt=ae[je];Wt===-1?((tt&L)===0||(tt&B)!==0)&&(ae[je]=re(tt,x)):Wt<=x&&(_.expiredLanes|=tt),fe&=~tt}if(x=Kc,L=Fa,L=ne(_,_===x?L:0,_.cancelPendingCommit!==null||_.timeoutHandle!==-1),B=_.callbackNode,L===0||_===x&&(uc===2||uc===9)||_.cancelPendingCommit!==null)return B!==null&&B!==null&&Ye(B),_.callbackNode=null,_.callbackPriority=0;if((L&3)===0||V(_,L)){if(x=L&-L,x===_.callbackPriority)return x;switch(B!==null&&Ye(B),Ze(L)){case 2:case 8:L=wt;break;case 32:L=pt;break;case 268435456:L=Rt;break;default:L=pt}return B=gnt.bind(null,_),L=ze(L,B),_.callbackPriority=x,_.callbackNode=L,x}return B!==null&&B!==null&&Ye(B),_.callbackPriority=2,_.callbackNode=null,2}function gnt(_,x){if(Df!==0&&Df!==5)return _.callbackNode=null,_.callbackPriority=0,null;var L=_.callbackNode;if(cX()&&_.callbackNode!==L)return null;var B=Fa;return B=ne(_,_===Kc?B:0,_.cancelPendingCommit!==null||_.timeoutHandle!==-1),B===0?null:(Qtt(_,B,x),pnt(_,ct()),_.callbackNode!=null&&_.callbackNode===L?gnt.bind(null,_):null)}function mnt(_,x){if(cX())return null;Qtt(_,x,!0)}function xPn(){RPn(function(){(Rl&6)!==0?ze(ut,SPn):fnt()})}function i_e(){if(ak===0){var _=Ko;_===0&&(_=di,di<<=1,(di&261888)===0&&(di=256)),ak=_}return ak}function vnt(_){return _==null||typeof _=="symbol"||typeof _=="boolean"?null:typeof _=="function"?_:io(""+_)}function ynt(_,x){var L=x.ownerDocument.createElement("input");return L.name=x.name,L.value=x.value,_.id&&L.setAttribute("form",_.id),x.parentNode.insertBefore(L,x),_=new FormData(_),L.parentNode.removeChild(L),_}function EPn(_,x,L,B,ae){if(x==="submit"&&L&&L.stateNode===ae){var fe=vnt((ae[Ht]||null).action),je=B.submitter;je&&(x=(x=je[Ht]||null)?vnt(x.formAction):je.getAttribute("formAction"),x!==null&&(fe=x,je=null));var tt=new xr("action","action",null,B,ae);_.push({event:tt,listeners:[{instance:null,listener:function(){if(B.defaultPrevented){if(ak!==0){var Wt=je?ynt(ae,je):new FormData(ae);Sbe(L,{pending:!0,data:Wt,method:ae.method,action:fe},null,Wt)}}else typeof fe=="function"&&(tt.preventDefault(),Wt=je?ynt(ae,je):new FormData(ae),Sbe(L,{pending:!0,data:Wt,method:ae.method,action:fe},fe,Wt))},currentTarget:ae}]})}}for(var r_e=0;r_e<GT.length;r_e++){var o_e=GT[r_e],APn=o_e.toLowerCase(),DPn=o_e[0].toUpperCase()+o_e.slice(1);Mg(APn,"on"+DPn)}Mg(qT,"onAnimationEnd"),Mg(zw,"onAnimationIteration"),Mg(ZF,"onAnimationStart"),Mg("dblclick","onDoubleClick"),Mg("focusin","onFocus"),Mg("focusout","onBlur"),Mg(Uj,"onTransitionRun"),Mg(pP,"onTransitionStart"),Mg(gP,"onTransitionCancel"),Mg(mP,"onTransitionEnd"),Fr("onMouseEnter",["mouseout","mouseover"]),Fr("onMouseLeave",["mouseout","mouseover"]),Fr("onPointerEnter",["pointerout","pointerover"]),Fr("onPointerLeave",["pointerout","pointerover"]),fi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),fi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),fi("onBeforeInput",["compositionend","keypress","textInput","paste"]),fi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),fi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),fi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var uz="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),TPn=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(uz));function bnt(_,x){x=(x&4)!==0;for(var L=0;L<_.length;L++){var B=_[L],ae=B.event;B=B.listeners;e:{var fe=void 0;if(x)for(var je=B.length-1;0<=je;je--){var tt=B[je],Wt=tt.instance,Cn=tt.currentTarget;if(tt=tt.listener,Wt!==fe&&ae.isPropagationStopped())break e;fe=tt,ae.currentTarget=Cn;try{fe(ae)}catch(ei){HE(ei)}ae.currentTarget=null,fe=Wt}else for(je=0;je<B.length;je++){if(tt=B[je],Wt=tt.instance,Cn=tt.currentTarget,tt=tt.listener,Wt!==fe&&ae.isPropagationStopped())break e;fe=tt,ae.currentTarget=Cn;try{fe(ae)}catch(ei){HE(ei)}ae.currentTarget=null,fe=Wt}}}}function Ta(_,x){var L=x[Dt];L===void 0&&(L=x[Dt]=new Set);var B=_+"__bubble";L.has(B)||(_nt(x,_,2,!1),L.add(B))}function s_e(_,x,L){var B=0;x&&(B|=4),_nt(L,_,B,x)}var hX="_reactListening"+Math.random().toString(36).slice(2);function a_e(_){if(!_[hX]){_[hX]=!0,Zi.forEach(function(L){L!=="selectionchange"&&(TPn.has(L)||s_e(L,!1,_),s_e(L,!0,_))});var x=_.nodeType===9?_:_.ownerDocument;x===null||x[hX]||(x[hX]=!0,s_e("selectionchange",!1,x))}}function _nt(_,x,L,B){switch(Ynt(x)){case 2:var ae=nMn;break;case 8:ae=iMn;break;default:ae=C_e}L=ae.bind(null,x,L,_),ae=void 0,!Ef||x!=="touchstart"&&x!=="touchmove"&&x!=="wheel"||(ae=!0),B?ae!==void 0?_.addEventListener(x,L,{capture:!0,passive:ae}):_.addEventListener(x,L,!0):ae!==void 0?_.addEventListener(x,L,{passive:ae}):_.addEventListener(x,L,!1)}function l_e(_,x,L,B,ae){var fe=B;if((x&1)===0&&(x&2)===0&&B!==null)e:for(;;){if(B===null)return;var je=B.tag;if(je===3||je===4){var tt=B.stateNode.containerInfo;if(tt===ae)break;if(je===4)for(je=B.return;je!==null;){var Wt=je.tag;if((Wt===3||Wt===4)&&je.stateNode.containerInfo===ae)return;je=je.return}for(;tt!==null;){if(je=at(tt),je===null)return;if(Wt=je.tag,Wt===5||Wt===6||Wt===26||Wt===27){B=fe=je;continue e}tt=tt.parentNode}}B=B.return}Ed(function(){var Cn=fe,ei=xf(L),vi=[];e:{var Ln=vP.get(_);if(Ln!==void 0){var Vn=xr,Zr=_;switch(_){case"keypress":if(kt(L)===0)break e;case"keydown":case"keyup":Vn=fs;break;case"focusin":Zr="focus",Vn=zt;break;case"focusout":Zr="blur",Vn=zt;break;case"beforeblur":case"afterblur":Vn=zt;break;case"click":if(L.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Vn=du;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Vn=Qd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Vn=Du;break;case qT:case zw:case ZF:Vn=Mi;break;case mP:Vn=id;break;case"scroll":case"scrollend":Vn=Go;break;case"wheel":Vn=Lg;break;case"copy":case"cut":case"paste":Vn=Vr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Vn=Ol;break;case"toggle":case"beforetoggle":Vn=Ob}var Yo=(x&4)!==0,Oc=!Yo&&(_==="scroll"||_==="scrollend"),un=Yo?Ln!==null?Ln+"Capture":null:Ln;Yo=[];for(var Xt=Cn,_n;Xt!==null;){var ci=Xt;if(_n=ci.stateNode,ci=ci.tag,ci!==5&&ci!==26&&ci!==27||_n===null||un===null||(ci=$c(Xt,un),ci!=null&&Yo.push(dz(Xt,ci,_n))),Oc)break;Xt=Xt.return}0<Yo.length&&(Ln=new Vn(Ln,Zr,null,L,ei),vi.push({event:Ln,listeners:Yo}))}}if((x&7)===0){e:{if(Ln=_==="mouseover"||_==="pointerover",Vn=_==="mouseout"||_==="pointerout",Ln&&L!==Rp&&(Zr=L.relatedTarget||L.fromElement)&&(at(Zr)||Zr[Qt]))break e;if((Vn||Ln)&&(Ln=ei.window===ei?ei:(Ln=ei.ownerDocument)?Ln.defaultView||Ln.parentWindow:window,Vn?(Zr=L.relatedTarget||L.toElement,Vn=Cn,Zr=Zr?at(Zr):null,Zr!==null&&(Oc=o(Zr),Yo=Zr.tag,Zr!==Oc||Yo!==5&&Yo!==27&&Yo!==6)&&(Zr=null)):(Vn=null,Zr=Cn),Vn!==Zr)){if(Yo=du,ci="onMouseLeave",un="onMouseEnter",Xt="mouse",(_==="pointerout"||_==="pointerover")&&(Yo=Ol,ci="onPointerLeave",un="onPointerEnter",Xt="pointer"),Oc=Vn==null?Ln:Bn(Vn),_n=Zr==null?Ln:Bn(Zr),Ln=new Yo(ci,Xt+"leave",Vn,L,ei),Ln.target=Oc,Ln.relatedTarget=_n,ci=null,at(ei)===Cn&&(Yo=new Yo(un,Xt+"enter",Zr,L,ei),Yo.target=_n,Yo.relatedTarget=Oc,ci=Yo),Oc=ci,Vn&&Zr)t:{for(Yo=kPn,un=Vn,Xt=Zr,_n=0,ci=un;ci;ci=Yo(ci))_n++;ci=0;for(var Io=Xt;Io;Io=Yo(Io))ci++;for(;0<_n-ci;)un=Yo(un),_n--;for(;0<ci-_n;)Xt=Yo(Xt),ci--;for(;_n--;){if(un===Xt||Xt!==null&&un===Xt.alternate){Yo=un;break t}un=Yo(un),Xt=Yo(Xt)}Yo=null}else Yo=null;Vn!==null&&wnt(vi,Ln,Vn,Yo,!1),Zr!==null&&Oc!==null&&wnt(vi,Oc,Zr,Yo,!0)}}e:{if(Ln=Cn?Bn(Cn):window,Vn=Ln.nodeName&&Ln.nodeName.toLowerCase(),Vn==="select"||Vn==="input"&&Ln.type==="file")var Cl=VT;else if(dP(Ln))if(KF)Cl=Rw;else{Cl=Oh;var po=RE}else Vn=Ln.nodeName,!Vn||Vn.toLowerCase()!=="input"||Ln.type!=="checkbox"&&Ln.type!=="radio"?Cn&&Sf(Cn.elementType)&&(Cl=VT):Cl=FE;if(Cl&&(Cl=Cl(_,Cn))){Ow(vi,Cl,L,ei);break e}po&&po(_,Ln,Cn),_==="focusout"&&Cn&&Ln.type==="number"&&Cn.memoizedProps.value!=null&&Cf(Ln,"number",Ln.value)}switch(po=Cn?Bn(Cn):window,_){case"focusin":(dP(po)||po.contentEditable==="true")&&(ry=po,oy=Cn,$v=null);break;case"focusout":$v=oy=ry=null;break;case"mousedown":fP=!0;break;case"contextmenu":case"mouseup":case"dragend":fP=!1,$T(vi,L,ei);break;case"selectionchange":if(hP)break;case"keydown":case"keyup":$T(vi,L,ei)}var Qs;if(Fb)e:{switch(_){case"compositionstart":var Ba="onCompositionStart";break e;case"compositionend":Ba="onCompositionEnd";break e;case"compositionupdate":Ba="onCompositionUpdate";break e}Ba=void 0}else lS?BT(_,L)&&(Ba="onCompositionEnd"):_==="keydown"&&L.keyCode===229&&(Ba="onCompositionStart");Ba&&(cP&&L.locale!=="ko"&&(lS||Ba!=="onCompositionStart"?Ba==="onCompositionEnd"&&lS&&(Qs=nt()):(Au=ei,xe="value"in Au?Au.value:Au.textContent,lS=!0)),po=fX(Cn,Ba),0<po.length&&(Ba=new At(Ba,_,null,L,ei),vi.push({event:Ba,listeners:po}),Qs?Ba.data=Qs:(Qs=uP(L),Qs!==null&&(Ba.data=Qs)))),(Qs=Vj?jT(_,L):zT(_,L))&&(Ba=fX(Cn,"onBeforeInput"),0<Ba.length&&(po=new At("onBeforeInput","beforeinput",null,L,ei),vi.push({event:po,listeners:Ba}),po.data=Qs)),EPn(vi,_,Cn,L,ei)}bnt(vi,x)})}function dz(_,x,L){return{instance:_,listener:x,currentTarget:L}}function fX(_,x){for(var L=x+"Capture",B=[];_!==null;){var ae=_,fe=ae.stateNode;if(ae=ae.tag,ae!==5&&ae!==26&&ae!==27||fe===null||(ae=$c(_,L),ae!=null&&B.unshift(dz(_,ae,fe)),ae=$c(_,x),ae!=null&&B.push(dz(_,ae,fe))),_.tag===3)return B;_=_.return}return[]}function kPn(_){if(_===null)return null;do _=_.return;while(_&&_.tag!==5&&_.tag!==27);return _||null}function wnt(_,x,L,B,ae){for(var fe=x._reactName,je=[];L!==null&&L!==B;){var tt=L,Wt=tt.alternate,Cn=tt.stateNode;if(tt=tt.tag,Wt!==null&&Wt===B)break;tt!==5&&tt!==26&&tt!==27||Cn===null||(Wt=Cn,ae?(Cn=$c(L,fe),Cn!=null&&je.unshift(dz(L,Cn,Wt))):ae||(Cn=$c(L,fe),Cn!=null&&je.push(dz(L,Cn,Wt)))),L=L.return}je.length!==0&&_.push({event:x,listeners:je})}var IPn=/\r\n?/g,LPn=/\u0000|\uFFFD/g;function Cnt(_){return(typeof _=="string"?_:""+_).replace(IPn,`
`).replace(LPn,"")}function Snt(_,x){return x=Cnt(x),Cnt(_)===x}function Mc(_,x,L,B,ae,fe){switch(L){case"children":typeof B=="string"?x==="body"||x==="textarea"&&B===""||ju(_,B):(typeof B=="number"||typeof B=="bigint")&&x!=="body"&&ju(_,""+B);break;case"className":dr(_,"class",B);break;case"tabIndex":dr(_,"tabindex",B);break;case"dir":case"role":case"viewBox":case"width":case"height":dr(_,L,B);break;case"style":xd(_,B,fe);break;case"data":if(x!=="object"){dr(_,"data",B);break}case"src":case"href":if(B===""&&(x!=="a"||L!=="href")){_.removeAttribute(L);break}if(B==null||typeof B=="function"||typeof B=="symbol"||typeof B=="boolean"){_.removeAttribute(L);break}B=io(""+B),_.setAttribute(L,B);break;case"action":case"formAction":if(typeof B=="function"){_.setAttribute(L,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof fe=="function"&&(L==="formAction"?(x!=="input"&&Mc(_,x,"name",ae.name,ae,null),Mc(_,x,"formEncType",ae.formEncType,ae,null),Mc(_,x,"formMethod",ae.formMethod,ae,null),Mc(_,x,"formTarget",ae.formTarget,ae,null)):(Mc(_,x,"encType",ae.encType,ae,null),Mc(_,x,"method",ae.method,ae,null),Mc(_,x,"target",ae.target,ae,null)));if(B==null||typeof B=="symbol"||typeof B=="boolean"){_.removeAttribute(L);break}B=io(""+B),_.setAttribute(L,B);break;case"onClick":B!=null&&(_.onclick=Ml);break;case"onScroll":B!=null&&Ta("scroll",_);break;case"onScrollEnd":B!=null&&Ta("scrollend",_);break;case"dangerouslySetInnerHTML":if(B!=null){if(typeof B!="object"||!("__html"in B))throw Error(i(61));if(L=B.__html,L!=null){if(ae.children!=null)throw Error(i(60));_.innerHTML=L}}break;case"multiple":_.multiple=B&&typeof B!="function"&&typeof B!="symbol";break;case"muted":_.muted=B&&typeof B!="function"&&typeof B!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(B==null||typeof B=="function"||typeof B=="boolean"||typeof B=="symbol"){_.removeAttribute("xlink:href");break}L=io(""+B),_.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",L);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":B!=null&&typeof B!="function"&&typeof B!="symbol"?_.setAttribute(L,""+B):_.removeAttribute(L);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":B&&typeof B!="function"&&typeof B!="symbol"?_.setAttribute(L,""):_.removeAttribute(L);break;case"capture":case"download":B===!0?_.setAttribute(L,""):B!==!1&&B!=null&&typeof B!="function"&&typeof B!="symbol"?_.setAttribute(L,B):_.removeAttribute(L);break;case"cols":case"rows":case"size":case"span":B!=null&&typeof B!="function"&&typeof B!="symbol"&&!isNaN(B)&&1<=B?_.setAttribute(L,B):_.removeAttribute(L);break;case"rowSpan":case"start":B==null||typeof B=="function"||typeof B=="symbol"||isNaN(B)?_.removeAttribute(L):_.setAttribute(L,B);break;case"popover":Ta("beforetoggle",_),Ta("toggle",_),Ai(_,"popover",B);break;case"xlinkActuate":es(_,"http://www.w3.org/1999/xlink","xlink:actuate",B);break;case"xlinkArcrole":es(_,"http://www.w3.org/1999/xlink","xlink:arcrole",B);break;case"xlinkRole":es(_,"http://www.w3.org/1999/xlink","xlink:role",B);break;case"xlinkShow":es(_,"http://www.w3.org/1999/xlink","xlink:show",B);break;case"xlinkTitle":es(_,"http://www.w3.org/1999/xlink","xlink:title",B);break;case"xlinkType":es(_,"http://www.w3.org/1999/xlink","xlink:type",B);break;case"xmlBase":es(_,"http://www.w3.org/XML/1998/namespace","xml:base",B);break;case"xmlLang":es(_,"http://www.w3.org/XML/1998/namespace","xml:lang",B);break;case"xmlSpace":es(_,"http://www.w3.org/XML/1998/namespace","xml:space",B);break;case"is":Ai(_,"is",B);break;case"innerText":case"textContent":break;default:(!(2<L.length)||L[0]!=="o"&&L[0]!=="O"||L[1]!=="n"&&L[1]!=="N")&&(L=Mh.get(L)||L,Ai(_,L,B))}}function c_e(_,x,L,B,ae,fe){switch(L){case"style":xd(_,B,fe);break;case"dangerouslySetInnerHTML":if(B!=null){if(typeof B!="object"||!("__html"in B))throw Error(i(61));if(L=B.__html,L!=null){if(ae.children!=null)throw Error(i(60));_.innerHTML=L}}break;case"children":typeof B=="string"?ju(_,B):(typeof B=="number"||typeof B=="bigint")&&ju(_,""+B);break;case"onScroll":B!=null&&Ta("scroll",_);break;case"onScrollEnd":B!=null&&Ta("scrollend",_);break;case"onClick":B!=null&&(_.onclick=Ml);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!dn.hasOwnProperty(L))e:{if(L[0]==="o"&&L[1]==="n"&&(ae=L.endsWith("Capture"),x=L.slice(2,ae?L.length-7:void 0),fe=_[Ht]||null,fe=fe!=null?fe[L]:null,typeof fe=="function"&&_.removeEventListener(x,fe,ae),typeof B=="function")){typeof fe!="function"&&fe!==null&&(L in _?_[L]=null:_.hasAttribute(L)&&_.removeAttribute(L)),_.addEventListener(x,B,ae);break e}L in _?_[L]=B:B===!0?_.setAttribute(L,""):Ai(_,L,B)}}}function Vp(_,x,L){switch(x){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ta("error",_),Ta("load",_);var B=!1,ae=!1,fe;for(fe in L)if(L.hasOwnProperty(fe)){var je=L[fe];if(je!=null)switch(fe){case"src":B=!0;break;case"srcSet":ae=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,x));default:Mc(_,x,fe,je,L,null)}}ae&&Mc(_,x,"srcSet",L.srcSet,L,null),B&&Mc(_,x,"src",L.src,L,null);return;case"input":Ta("invalid",_);var tt=fe=je=ae=null,Wt=null,Cn=null;for(B in L)if(L.hasOwnProperty(B)){var ei=L[B];if(ei!=null)switch(B){case"name":ae=ei;break;case"type":je=ei;break;case"checked":Wt=ei;break;case"defaultChecked":Cn=ei;break;case"value":fe=ei;break;case"defaultValue":tt=ei;break;case"children":case"dangerouslySetInnerHTML":if(ei!=null)throw Error(i(137,x));break;default:Mc(_,x,B,ei,L,null)}}lc(_,fe,tt,Wt,Cn,je,ae,!1);return;case"select":Ta("invalid",_),B=je=fe=null;for(ae in L)if(L.hasOwnProperty(ae)&&(tt=L[ae],tt!=null))switch(ae){case"value":fe=tt;break;case"defaultValue":je=tt;break;case"multiple":B=tt;default:Mc(_,x,ae,tt,L,null)}x=fe,L=je,_.multiple=!!B,x!=null?Tc(_,!!B,x,!1):L!=null&&Tc(_,!!B,L,!0);return;case"textarea":Ta("invalid",_),fe=ae=B=null;for(je in L)if(L.hasOwnProperty(je)&&(tt=L[je],tt!=null))switch(je){case"value":B=tt;break;case"defaultValue":ae=tt;break;case"children":fe=tt;break;case"dangerouslySetInnerHTML":if(tt!=null)throw Error(i(91));break;default:Mc(_,x,je,tt,L,null)}Bu(_,B,ae,fe);return;case"option":for(Wt in L)L.hasOwnProperty(Wt)&&(B=L[Wt],B!=null)&&(Wt==="selected"?_.selected=B&&typeof B!="function"&&typeof B!="symbol":Mc(_,x,Wt,B,L,null));return;case"dialog":Ta("beforetoggle",_),Ta("toggle",_),Ta("cancel",_),Ta("close",_);break;case"iframe":case"object":Ta("load",_);break;case"video":case"audio":for(B=0;B<uz.length;B++)Ta(uz[B],_);break;case"image":Ta("error",_),Ta("load",_);break;case"details":Ta("toggle",_);break;case"embed":case"source":case"link":Ta("error",_),Ta("load",_);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Cn in L)if(L.hasOwnProperty(Cn)&&(B=L[Cn],B!=null))switch(Cn){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,x));default:Mc(_,x,Cn,B,L,null)}return;default:if(Sf(x)){for(ei in L)L.hasOwnProperty(ei)&&(B=L[ei],B!==void 0&&c_e(_,x,ei,B,L,void 0));return}}for(tt in L)L.hasOwnProperty(tt)&&(B=L[tt],B!=null&&Mc(_,x,tt,B,L,null))}function NPn(_,x,L,B){switch(x){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var ae=null,fe=null,je=null,tt=null,Wt=null,Cn=null,ei=null;for(Vn in L){var vi=L[Vn];if(L.hasOwnProperty(Vn)&&vi!=null)switch(Vn){case"checked":break;case"value":break;case"defaultValue":Wt=vi;default:B.hasOwnProperty(Vn)||Mc(_,x,Vn,null,B,vi)}}for(var Ln in B){var Vn=B[Ln];if(vi=L[Ln],B.hasOwnProperty(Ln)&&(Vn!=null||vi!=null))switch(Ln){case"type":fe=Vn;break;case"name":ae=Vn;break;case"checked":Cn=Vn;break;case"defaultChecked":ei=Vn;break;case"value":je=Vn;break;case"defaultValue":tt=Vn;break;case"children":case"dangerouslySetInnerHTML":if(Vn!=null)throw Error(i(137,x));break;default:Vn!==vi&&Mc(_,x,Ln,Vn,B,vi)}}td(_,je,tt,Wt,Cn,ei,fe,ae);return;case"select":Vn=je=tt=Ln=null;for(fe in L)if(Wt=L[fe],L.hasOwnProperty(fe)&&Wt!=null)switch(fe){case"value":break;case"multiple":Vn=Wt;default:B.hasOwnProperty(fe)||Mc(_,x,fe,null,B,Wt)}for(ae in B)if(fe=B[ae],Wt=L[ae],B.hasOwnProperty(ae)&&(fe!=null||Wt!=null))switch(ae){case"value":Ln=fe;break;case"defaultValue":tt=fe;break;case"multiple":je=fe;default:fe!==Wt&&Mc(_,x,ae,fe,B,Wt)}x=tt,L=je,B=Vn,Ln!=null?Tc(_,!!L,Ln,!1):!!B!=!!L&&(x!=null?Tc(_,!!L,x,!0):Tc(_,!!L,L?[]:"",!1));return;case"textarea":Vn=Ln=null;for(tt in L)if(ae=L[tt],L.hasOwnProperty(tt)&&ae!=null&&!B.hasOwnProperty(tt))switch(tt){case"value":break;case"children":break;default:Mc(_,x,tt,null,B,ae)}for(je in B)if(ae=B[je],fe=L[je],B.hasOwnProperty(je)&&(ae!=null||fe!=null))switch(je){case"value":Ln=ae;break;case"defaultValue":Vn=ae;break;case"children":break;case"dangerouslySetInnerHTML":if(ae!=null)throw Error(i(91));break;default:ae!==fe&&Mc(_,x,je,ae,B,fe)}Ig(_,Ln,Vn);return;case"option":for(var Zr in L)Ln=L[Zr],L.hasOwnProperty(Zr)&&Ln!=null&&!B.hasOwnProperty(Zr)&&(Zr==="selected"?_.selected=!1:Mc(_,x,Zr,null,B,Ln));for(Wt in B)Ln=B[Wt],Vn=L[Wt],B.hasOwnProperty(Wt)&&Ln!==Vn&&(Ln!=null||Vn!=null)&&(Wt==="selected"?_.selected=Ln&&typeof Ln!="function"&&typeof Ln!="symbol":Mc(_,x,Wt,Ln,B,Vn));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Yo in L)Ln=L[Yo],L.hasOwnProperty(Yo)&&Ln!=null&&!B.hasOwnProperty(Yo)&&Mc(_,x,Yo,null,B,Ln);for(Cn in B)if(Ln=B[Cn],Vn=L[Cn],B.hasOwnProperty(Cn)&&Ln!==Vn&&(Ln!=null||Vn!=null))switch(Cn){case"children":case"dangerouslySetInnerHTML":if(Ln!=null)throw Error(i(137,x));break;default:Mc(_,x,Cn,Ln,B,Vn)}return;default:if(Sf(x)){for(var Oc in L)Ln=L[Oc],L.hasOwnProperty(Oc)&&Ln!==void 0&&!B.hasOwnProperty(Oc)&&c_e(_,x,Oc,void 0,B,Ln);for(ei in B)Ln=B[ei],Vn=L[ei],!B.hasOwnProperty(ei)||Ln===Vn||Ln===void 0&&Vn===void 0||c_e(_,x,ei,Ln,B,Vn);return}}for(var un in L)Ln=L[un],L.hasOwnProperty(un)&&Ln!=null&&!B.hasOwnProperty(un)&&Mc(_,x,un,null,B,Ln);for(vi in B)Ln=B[vi],Vn=L[vi],!B.hasOwnProperty(vi)||Ln===Vn||Ln==null&&Vn==null||Mc(_,x,vi,Ln,B,Vn)}function xnt(_){switch(_){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function PPn(){if(typeof performance.getEntriesByType=="function"){for(var _=0,x=0,L=performance.getEntriesByType("resource"),B=0;B<L.length;B++){var ae=L[B],fe=ae.transferSize,je=ae.initiatorType,tt=ae.duration;if(fe&&tt&&xnt(je)){for(je=0,tt=ae.responseEnd,B+=1;B<L.length;B++){var Wt=L[B],Cn=Wt.startTime;if(Cn>tt)break;var ei=Wt.transferSize,vi=Wt.initiatorType;ei&&xnt(vi)&&(Wt=Wt.responseEnd,je+=ei*(Wt<tt?1:(tt-Cn)/(Wt-Cn)))}if(--B,x+=8*(fe+je)/(ae.duration/1e3),_++,10<_)break}}if(0<_)return x/_/1e6}return navigator.connection&&(_=navigator.connection.downlink,typeof _=="number")?_:5}var u_e=null,d_e=null;function pX(_){return _.nodeType===9?_:_.ownerDocument}function Ent(_){switch(_){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ant(_,x){if(_===0)switch(x){case"svg":return 1;case"math":return 2;default:return 0}return _===1&&x==="foreignObject"?0:_}function h_e(_,x){return _==="textarea"||_==="noscript"||typeof x.children=="string"||typeof x.children=="number"||typeof x.children=="bigint"||typeof x.dangerouslySetInnerHTML=="object"&&x.dangerouslySetInnerHTML!==null&&x.dangerouslySetInnerHTML.__html!=null}var f_e=null;function MPn(){var _=window.event;return _&&_.type==="popstate"?_===f_e?!1:(f_e=_,!0):(f_e=null,!1)}var Dnt=typeof setTimeout=="function"?setTimeout:void 0,OPn=typeof clearTimeout=="function"?clearTimeout:void 0,Tnt=typeof Promise=="function"?Promise:void 0,RPn=typeof queueMicrotask=="function"?queueMicrotask:typeof Tnt<"u"?function(_){return Tnt.resolve(null).then(_).catch(FPn)}:Dnt;function FPn(_){setTimeout(function(){throw _})}function lk(_){return _==="head"}function knt(_,x){var L=x,B=0;do{var ae=L.nextSibling;if(_.removeChild(L),ae&&ae.nodeType===8)if(L=ae.data,L==="/$"||L==="/&"){if(B===0){_.removeChild(ae),y5(x);return}B--}else if(L==="$"||L==="$?"||L==="$~"||L==="$!"||L==="&")B++;else if(L==="html")hz(_.ownerDocument.documentElement);else if(L==="head"){L=_.ownerDocument.head,hz(L);for(var fe=L.firstChild;fe;){var je=fe.nextSibling,tt=fe.nodeName;fe[Ue]||tt==="SCRIPT"||tt==="STYLE"||tt==="LINK"&&fe.rel.toLowerCase()==="stylesheet"||L.removeChild(fe),fe=je}}else L==="body"&&hz(_.ownerDocument.body);L=ae}while(L);y5(x)}function Int(_,x){var L=_;_=0;do{var B=L.nextSibling;if(L.nodeType===1?x?(L._stashedDisplay=L.style.display,L.style.display="none"):(L.style.display=L._stashedDisplay||"",L.getAttribute("style")===""&&L.removeAttribute("style")):L.nodeType===3&&(x?(L._stashedText=L.nodeValue,L.nodeValue=""):L.nodeValue=L._stashedText||""),B&&B.nodeType===8)if(L=B.data,L==="/$"){if(_===0)break;_--}else L!=="$"&&L!=="$?"&&L!=="$~"&&L!=="$!"||_++;L=B}while(L)}function p_e(_){var x=_.firstChild;for(x&&x.nodeType===10&&(x=x.nextSibling);x;){var L=x;switch(x=x.nextSibling,L.nodeName){case"HTML":case"HEAD":case"BODY":p_e(L),Lt(L);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(L.rel.toLowerCase()==="stylesheet")continue}_.removeChild(L)}}function BPn(_,x,L,B){for(;_.nodeType===1;){var ae=L;if(_.nodeName.toLowerCase()!==x.toLowerCase()){if(!B&&(_.nodeName!=="INPUT"||_.type!=="hidden"))break}else if(B){if(!_[Ue])switch(x){case"meta":if(!_.hasAttribute("itemprop"))break;return _;case"link":if(fe=_.getAttribute("rel"),fe==="stylesheet"&&_.hasAttribute("data-precedence"))break;if(fe!==ae.rel||_.getAttribute("href")!==(ae.href==null||ae.href===""?null:ae.href)||_.getAttribute("crossorigin")!==(ae.crossOrigin==null?null:ae.crossOrigin)||_.getAttribute("title")!==(ae.title==null?null:ae.title))break;return _;case"style":if(_.hasAttribute("data-precedence"))break;return _;case"script":if(fe=_.getAttribute("src"),(fe!==(ae.src==null?null:ae.src)||_.getAttribute("type")!==(ae.type==null?null:ae.type)||_.getAttribute("crossorigin")!==(ae.crossOrigin==null?null:ae.crossOrigin))&&fe&&_.hasAttribute("async")&&!_.hasAttribute("itemprop"))break;return _;default:return _}}else if(x==="input"&&_.type==="hidden"){var fe=ae.name==null?null:""+ae.name;if(ae.type==="hidden"&&_.getAttribute("name")===fe)return _}else return _;if(_=Hb(_.nextSibling),_===null)break}return null}function jPn(_,x,L){if(x==="")return null;for(;_.nodeType!==3;)if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!L||(_=Hb(_.nextSibling),_===null))return null;return _}function Lnt(_,x){for(;_.nodeType!==8;)if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!x||(_=Hb(_.nextSibling),_===null))return null;return _}function g_e(_){return _.data==="$?"||_.data==="$~"}function m_e(_){return _.data==="$!"||_.data==="$?"&&_.ownerDocument.readyState!=="loading"}function zPn(_,x){var L=_.ownerDocument;if(_.data==="$~")_._reactRetry=x;else if(_.data!=="$?"||L.readyState!=="loading")x();else{var B=function(){x(),L.removeEventListener("DOMContentLoaded",B)};L.addEventListener("DOMContentLoaded",B),_._reactRetry=B}}function Hb(_){for(;_!=null;_=_.nextSibling){var x=_.nodeType;if(x===1||x===3)break;if(x===8){if(x=_.data,x==="$"||x==="$!"||x==="$?"||x==="$~"||x==="&"||x==="F!"||x==="F")break;if(x==="/$"||x==="/&")return null}}return _}var v_e=null;function Nnt(_){_=_.nextSibling;for(var x=0;_;){if(_.nodeType===8){var L=_.data;if(L==="/$"||L==="/&"){if(x===0)return Hb(_.nextSibling);x--}else L!=="$"&&L!=="$!"&&L!=="$?"&&L!=="$~"&&L!=="&"||x++}_=_.nextSibling}return null}function Pnt(_){_=_.previousSibling;for(var x=0;_;){if(_.nodeType===8){var L=_.data;if(L==="$"||L==="$!"||L==="$?"||L==="$~"||L==="&"){if(x===0)return _;x--}else L!=="/$"&&L!=="/&"||x++}_=_.previousSibling}return null}function Mnt(_,x,L){switch(x=pX(L),_){case"html":if(_=x.documentElement,!_)throw Error(i(452));return _;case"head":if(_=x.head,!_)throw Error(i(453));return _;case"body":if(_=x.body,!_)throw Error(i(454));return _;default:throw Error(i(451))}}function hz(_){for(var x=_.attributes;x.length;)_.removeAttributeNode(x[0]);Lt(_)}var Wb=new Map,Ont=new Set;function gX(_){return typeof _.getRootNode=="function"?_.getRootNode():_.nodeType===9?_:_.ownerDocument}var oA=Q.d;Q.d={f:VPn,r:HPn,D:WPn,C:UPn,L:$Pn,m:qPn,X:KPn,S:GPn,M:YPn};function VPn(){var _=oA.f(),x=sX();return _||x}function HPn(_){var x=cn(_);x!==null&&x.tag===5&&x.type==="form"?Xet(x):oA.r(_)}var g5=typeof document>"u"?null:document;function Rnt(_,x,L){var B=g5;if(B&&typeof x=="string"&&x){var ae=il(x);ae='link[rel="'+_+'"][href="'+ae+'"]',typeof L=="string"&&(ae+='[crossorigin="'+L+'"]'),Ont.has(ae)||(Ont.add(ae),_={rel:_,crossOrigin:L,href:x},B.querySelector(ae)===null&&(x=B.createElement("link"),Vp(x,"link",_),xi(x),B.head.appendChild(x)))}}function WPn(_){oA.D(_),Rnt("dns-prefetch",_,null)}function UPn(_,x){oA.C(_,x),Rnt("preconnect",_,x)}function $Pn(_,x,L){oA.L(_,x,L);var B=g5;if(B&&_&&x){var ae='link[rel="preload"][as="'+il(x)+'"]';x==="image"&&L&&L.imageSrcSet?(ae+='[imagesrcset="'+il(L.imageSrcSet)+'"]',typeof L.imageSizes=="string"&&(ae+='[imagesizes="'+il(L.imageSizes)+'"]')):ae+='[href="'+il(_)+'"]';var fe=ae;switch(x){case"style":fe=m5(_);break;case"script":fe=v5(_)}Wb.has(fe)||(_=d({rel:"preload",href:x==="image"&&L&&L.imageSrcSet?void 0:_,as:x},L),Wb.set(fe,_),B.querySelector(ae)!==null||x==="style"&&B.querySelector(fz(fe))||x==="script"&&B.querySelector(pz(fe))||(x=B.createElement("link"),Vp(x,"link",_),xi(x),B.head.appendChild(x)))}}function qPn(_,x){oA.m(_,x);var L=g5;if(L&&_){var B=x&&typeof x.as=="string"?x.as:"script",ae='link[rel="modulepreload"][as="'+il(B)+'"][href="'+il(_)+'"]',fe=ae;switch(B){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":fe=v5(_)}if(!Wb.has(fe)&&(_=d({rel:"modulepreload",href:_},x),Wb.set(fe,_),L.querySelector(ae)===null)){switch(B){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(L.querySelector(pz(fe)))return}B=L.createElement("link"),Vp(B,"link",_),xi(B),L.head.appendChild(B)}}}function GPn(_,x,L){oA.S(_,x,L);var B=g5;if(B&&_){var ae=Tn(B).hoistableStyles,fe=m5(_);x=x||"default";var je=ae.get(fe);if(!je){var tt={loading:0,preload:null};if(je=B.querySelector(fz(fe)))tt.loading=5;else{_=d({rel:"stylesheet",href:_,"data-precedence":x},L),(L=Wb.get(fe))&&y_e(_,L);var Wt=je=B.createElement("link");xi(Wt),Vp(Wt,"link",_),Wt._p=new Promise(function(Cn,ei){Wt.onload=Cn,Wt.onerror=ei}),Wt.addEventListener("load",function(){tt.loading|=1}),Wt.addEventListener("error",function(){tt.loading|=2}),tt.loading|=4,mX(je,x,B)}je={type:"stylesheet",instance:je,count:1,state:tt},ae.set(fe,je)}}}function KPn(_,x){oA.X(_,x);var L=g5;if(L&&_){var B=Tn(L).hoistableScripts,ae=v5(_),fe=B.get(ae);fe||(fe=L.querySelector(pz(ae)),fe||(_=d({src:_,async:!0},x),(x=Wb.get(ae))&&b_e(_,x),fe=L.createElement("script"),xi(fe),Vp(fe,"link",_),L.head.appendChild(fe)),fe={type:"script",instance:fe,count:1,state:null},B.set(ae,fe))}}function YPn(_,x){oA.M(_,x);var L=g5;if(L&&_){var B=Tn(L).hoistableScripts,ae=v5(_),fe=B.get(ae);fe||(fe=L.querySelector(pz(ae)),fe||(_=d({src:_,async:!0,type:"module"},x),(x=Wb.get(ae))&&b_e(_,x),fe=L.createElement("script"),xi(fe),Vp(fe,"link",_),L.head.appendChild(fe)),fe={type:"script",instance:fe,count:1,state:null},B.set(ae,fe))}}function Fnt(_,x,L,B){var ae=(ae=ie.current)?gX(ae):null;if(!ae)throw Error(i(446));switch(_){case"meta":case"title":return null;case"style":return typeof L.precedence=="string"&&typeof L.href=="string"?(x=m5(L.href),L=Tn(ae).hoistableStyles,B=L.get(x),B||(B={type:"style",instance:null,count:0,state:null},L.set(x,B)),B):{type:"void",instance:null,count:0,state:null};case"link":if(L.rel==="stylesheet"&&typeof L.href=="string"&&typeof L.precedence=="string"){_=m5(L.href);var fe=Tn(ae).hoistableStyles,je=fe.get(_);if(je||(ae=ae.ownerDocument||ae,je={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},fe.set(_,je),(fe=ae.querySelector(fz(_)))&&!fe._p&&(je.instance=fe,je.state.loading=5),Wb.has(_)||(L={rel:"preload",as:"style",href:L.href,crossOrigin:L.crossOrigin,integrity:L.integrity,media:L.media,hrefLang:L.hrefLang,referrerPolicy:L.referrerPolicy},Wb.set(_,L),fe||QPn(ae,_,L,je.state))),x&&B===null)throw Error(i(528,""));return je}if(x&&B!==null)throw Error(i(529,""));return null;case"script":return x=L.async,L=L.src,typeof L=="string"&&x&&typeof x!="function"&&typeof x!="symbol"?(x=v5(L),L=Tn(ae).hoistableScripts,B=L.get(x),B||(B={type:"script",instance:null,count:0,state:null},L.set(x,B)),B):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,_))}}function m5(_){return'href="'+il(_)+'"'}function fz(_){return'link[rel="stylesheet"]['+_+"]"}function Bnt(_){return d({},_,{"data-precedence":_.precedence,precedence:null})}function QPn(_,x,L,B){_.querySelector('link[rel="preload"][as="style"]['+x+"]")?B.loading=1:(x=_.createElement("link"),B.preload=x,x.addEventListener("load",function(){return B.loading|=1}),x.addEventListener("error",function(){return B.loading|=2}),Vp(x,"link",L),xi(x),_.head.appendChild(x))}function v5(_){return'[src="'+il(_)+'"]'}function pz(_){return"script[async]"+_}function jnt(_,x,L){if(x.count++,x.instance===null)switch(x.type){case"style":var B=_.querySelector('style[data-href~="'+il(L.href)+'"]');if(B)return x.instance=B,xi(B),B;var ae=d({},L,{"data-href":L.href,"data-precedence":L.precedence,href:null,precedence:null});return B=(_.ownerDocument||_).createElement("style"),xi(B),Vp(B,"style",ae),mX(B,L.precedence,_),x.instance=B;case"stylesheet":ae=m5(L.href);var fe=_.querySelector(fz(ae));if(fe)return x.state.loading|=4,x.instance=fe,xi(fe),fe;B=Bnt(L),(ae=Wb.get(ae))&&y_e(B,ae),fe=(_.ownerDocument||_).createElement("link"),xi(fe);var je=fe;return je._p=new Promise(function(tt,Wt){je.onload=tt,je.onerror=Wt}),Vp(fe,"link",B),x.state.loading|=4,mX(fe,L.precedence,_),x.instance=fe;case"script":return fe=v5(L.src),(ae=_.querySelector(pz(fe)))?(x.instance=ae,xi(ae),ae):(B=L,(ae=Wb.get(fe))&&(B=d({},L),b_e(B,ae)),_=_.ownerDocument||_,ae=_.createElement("script"),xi(ae),Vp(ae,"link",B),_.head.appendChild(ae),x.instance=ae);case"void":return null;default:throw Error(i(443,x.type))}else x.type==="stylesheet"&&(x.state.loading&4)===0&&(B=x.instance,x.state.loading|=4,mX(B,L.precedence,_));return x.instance}function mX(_,x,L){for(var B=L.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),ae=B.length?B[B.length-1]:null,fe=ae,je=0;je<B.length;je++){var tt=B[je];if(tt.dataset.precedence===x)fe=tt;else if(fe!==ae)break}fe?fe.parentNode.insertBefore(_,fe.nextSibling):(x=L.nodeType===9?L.head:L,x.insertBefore(_,x.firstChild))}function y_e(_,x){_.crossOrigin==null&&(_.crossOrigin=x.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=x.referrerPolicy),_.title==null&&(_.title=x.title)}function b_e(_,x){_.crossOrigin==null&&(_.crossOrigin=x.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=x.referrerPolicy),_.integrity==null&&(_.integrity=x.integrity)}var vX=null;function znt(_,x,L){if(vX===null){var B=new Map,ae=vX=new Map;ae.set(L,B)}else ae=vX,B=ae.get(L),B||(B=new Map,ae.set(L,B));if(B.has(_))return B;for(B.set(_,null),L=L.getElementsByTagName(_),ae=0;ae<L.length;ae++){var fe=L[ae];if(!(fe[Ue]||fe[Xe]||_==="link"&&fe.getAttribute("rel")==="stylesheet")&&fe.namespaceURI!=="http://www.w3.org/2000/svg"){var je=fe.getAttribute(x)||"";je=_+je;var tt=B.get(je);tt?tt.push(fe):B.set(je,[fe])}}return B}function Vnt(_,x,L){_=_.ownerDocument||_,_.head.insertBefore(L,x==="title"?_.querySelector("head > title"):null)}function ZPn(_,x,L){if(L===1||x.itemProp!=null)return!1;switch(_){case"meta":case"title":return!0;case"style":if(typeof x.precedence!="string"||typeof x.href!="string"||x.href==="")break;return!0;case"link":if(typeof x.rel!="string"||typeof x.href!="string"||x.href===""||x.onLoad||x.onError)break;return x.rel==="stylesheet"?(_=x.disabled,typeof x.precedence=="string"&&_==null):!0;case"script":if(x.async&&typeof x.async!="function"&&typeof x.async!="symbol"&&!x.onLoad&&!x.onError&&x.src&&typeof x.src=="string")return!0}return!1}function Hnt(_){return!(_.type==="stylesheet"&&(_.state.loading&3)===0)}function XPn(_,x,L,B){if(L.type==="stylesheet"&&(typeof B.media!="string"||matchMedia(B.media).matches!==!1)&&(L.state.loading&4)===0){if(L.instance===null){var ae=m5(B.href),fe=x.querySelector(fz(ae));if(fe){x=fe._p,x!==null&&typeof x=="object"&&typeof x.then=="function"&&(_.count++,_=yX.bind(_),x.then(_,_)),L.state.loading|=4,L.instance=fe,xi(fe);return}fe=x.ownerDocument||x,B=Bnt(B),(ae=Wb.get(ae))&&y_e(B,ae),fe=fe.createElement("link"),xi(fe);var je=fe;je._p=new Promise(function(tt,Wt){je.onload=tt,je.onerror=Wt}),Vp(fe,"link",B),L.instance=fe}_.stylesheets===null&&(_.stylesheets=new Map),_.stylesheets.set(L,x),(x=L.state.preload)&&(L.state.loading&3)===0&&(_.count++,L=yX.bind(_),x.addEventListener("load",L),x.addEventListener("error",L))}}var __e=0;function JPn(_,x){return _.stylesheets&&_.count===0&&_X(_,_.stylesheets),0<_.count||0<_.imgCount?function(L){var B=setTimeout(function(){if(_.stylesheets&&_X(_,_.stylesheets),_.unsuspend){var fe=_.unsuspend;_.unsuspend=null,fe()}},6e4+x);0<_.imgBytes&&__e===0&&(__e=62500*PPn());var ae=setTimeout(function(){if(_.waitingForImages=!1,_.count===0&&(_.stylesheets&&_X(_,_.stylesheets),_.unsuspend)){var fe=_.unsuspend;_.unsuspend=null,fe()}},(_.imgBytes>__e?50:800)+x);return _.unsuspend=L,function(){_.unsuspend=null,clearTimeout(B),clearTimeout(ae)}}:null}function yX(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_X(this,this.stylesheets);else if(this.unsuspend){var _=this.unsuspend;this.unsuspend=null,_()}}}var bX=null;function _X(_,x){_.stylesheets=null,_.unsuspend!==null&&(_.count++,bX=new Map,x.forEach(eMn,_),bX=null,yX.call(_))}function eMn(_,x){if(!(x.state.loading&4)){var L=bX.get(_);if(L)var B=L.get(null);else{L=new Map,bX.set(_,L);for(var ae=_.querySelectorAll("link[data-precedence],style[data-precedence]"),fe=0;fe<ae.length;fe++){var je=ae[fe];(je.nodeName==="LINK"||je.getAttribute("media")!=="not all")&&(L.set(je.dataset.precedence,je),B=je)}B&&L.set(null,B)}ae=x.instance,je=ae.getAttribute("data-precedence"),fe=L.get(je)||B,fe===B&&L.set(null,ae),L.set(je,ae),this.count++,B=yX.bind(this),ae.addEventListener("load",B),ae.addEventListener("error",B),fe?fe.parentNode.insertBefore(ae,fe.nextSibling):(_=_.nodeType===9?_.head:_,_.insertBefore(ae,_.firstChild)),x.state.loading|=4}}var gz={$$typeof:b,Provider:null,Consumer:null,_currentValue:H,_currentValue2:H,_threadCount:0};function tMn(_,x,L,B,ae,fe,je,tt,Wt){this.tag=1,this.containerInfo=_,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=we(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=we(0),this.hiddenUpdates=we(null),this.identifierPrefix=B,this.onUncaughtError=ae,this.onCaughtError=fe,this.onRecoverableError=je,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Wt,this.incompleteTransitions=new Map}function Wnt(_,x,L,B,ae,fe,je,tt,Wt,Cn,ei,vi){return _=new tMn(_,x,L,je,Wt,Cn,ei,vi,tt),x=1,fe===!0&&(x|=24),fe=Bp(3,null,null,x),_.current=fe,fe.stateNode=_,x=xt(),x.refCount++,_.pooledCache=x,x.refCount++,fe.memoizedState={element:B,isDehydrated:L,cache:x},ibe(fe),_}function Unt(_){return _?(_=fS,_):fS}function $nt(_,x,L,B,ae,fe){ae=Unt(ae),B.context===null?B.context=ae:B.pendingContext=ae,B=ZT(x),B.payload={element:L},fe=fe===void 0?null:fe,fe!==null&&(B.callback=fe),L=XT(_,B,x),L!==null&&(Xv(L,_,x),Gj(L,_,x))}function qnt(_,x){if(_=_.memoizedState,_!==null&&_.dehydrated!==null){var L=_.retryLane;_.retryLane=L!==0&&L<x?L:x}}function w_e(_,x){qnt(_,x),(_=_.alternate)&&qnt(_,x)}function Gnt(_){if(_.tag===13||_.tag===31){var x=Vw(_,67108864);x!==null&&Xv(x,_,67108864),w_e(_,67108864)}}function Knt(_){if(_.tag===13||_.tag===31){var x=dy();x=Fe(x);var L=Vw(_,x);L!==null&&Xv(L,_,x),w_e(_,x)}}var wX=!0;function nMn(_,x,L,B){var ae=ee.T;ee.T=null;var fe=Q.p;try{Q.p=2,C_e(_,x,L,B)}finally{Q.p=fe,ee.T=ae}}function iMn(_,x,L,B){var ae=ee.T;ee.T=null;var fe=Q.p;try{Q.p=8,C_e(_,x,L,B)}finally{Q.p=fe,ee.T=ae}}function C_e(_,x,L,B){if(wX){var ae=S_e(B);if(ae===null)l_e(_,x,B,CX,L),Qnt(_,B);else if(oMn(ae,_,x,L,B))B.stopPropagation();else if(Qnt(_,B),x&4&&-1<rMn.indexOf(_)){for(;ae!==null;){var fe=cn(ae);if(fe!==null)switch(fe.tag){case 3:if(fe=fe.stateNode,fe.current.memoizedState.isDehydrated){var je=Z(fe.pendingLanes);if(je!==0){var tt=fe;for(tt.pendingLanes|=2,tt.entangledLanes|=2;je;){var Wt=1<<31-pn(je);tt.entanglements[1]|=Wt,je&=~Wt}mS(fe),(Rl&6)===0&&(rX=ct()+500,cz(0))}}break;case 31:case 13:tt=Vw(fe,2),tt!==null&&Xv(tt,fe,2),sX(),w_e(fe,2)}if(fe=S_e(B),fe===null&&l_e(_,x,B,CX,L),fe===ae)break;ae=fe}ae!==null&&B.stopPropagation()}else l_e(_,x,B,null,L)}}function S_e(_){return _=xf(_),x_e(_)}var CX=null;function x_e(_){if(CX=null,_=at(_),_!==null){var x=o(_);if(x===null)_=null;else{var L=x.tag;if(L===13){if(_=s(x),_!==null)return _;_=null}else if(L===31){if(_=a(x),_!==null)return _;_=null}else if(L===3){if(x.stateNode.current.memoizedState.isDehydrated)return x.tag===3?x.stateNode.containerInfo:null;_=null}else x!==_&&(_=null)}}return CX=_,null}function Ynt(_){switch(_){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(et()){case ut:return 2;case wt:return 8;case pt:case _t:return 32;case Rt:return 268435456;default:return 32}default:return 32}}var E_e=!1,ck=null,uk=null,dk=null,mz=new Map,vz=new Map,hk=[],rMn="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Qnt(_,x){switch(_){case"focusin":case"focusout":ck=null;break;case"dragenter":case"dragleave":uk=null;break;case"mouseover":case"mouseout":dk=null;break;case"pointerover":case"pointerout":mz.delete(x.pointerId);break;case"gotpointercapture":case"lostpointercapture":vz.delete(x.pointerId)}}function yz(_,x,L,B,ae,fe){return _===null||_.nativeEvent!==fe?(_={blockedOn:x,domEventName:L,eventSystemFlags:B,nativeEvent:fe,targetContainers:[ae]},x!==null&&(x=cn(x),x!==null&&Gnt(x)),_):(_.eventSystemFlags|=B,x=_.targetContainers,ae!==null&&x.indexOf(ae)===-1&&x.push(ae),_)}function oMn(_,x,L,B,ae){switch(x){case"focusin":return ck=yz(ck,_,x,L,B,ae),!0;case"dragenter":return uk=yz(uk,_,x,L,B,ae),!0;case"mouseover":return dk=yz(dk,_,x,L,B,ae),!0;case"pointerover":var fe=ae.pointerId;return mz.set(fe,yz(mz.get(fe)||null,_,x,L,B,ae)),!0;case"gotpointercapture":return fe=ae.pointerId,vz.set(fe,yz(vz.get(fe)||null,_,x,L,B,ae)),!0}return!1}function Znt(_){var x=at(_.target);if(x!==null){var L=o(x);if(L!==null){if(x=L.tag,x===13){if(x=s(L),x!==null){_.blockedOn=x,dt(_.priority,function(){Knt(L)});return}}else if(x===31){if(x=a(L),x!==null){_.blockedOn=x,dt(_.priority,function(){Knt(L)});return}}else if(x===3&&L.stateNode.current.memoizedState.isDehydrated){_.blockedOn=L.tag===3?L.stateNode.containerInfo:null;return}}}_.blockedOn=null}function SX(_){if(_.blockedOn!==null)return!1;for(var x=_.targetContainers;0<x.length;){var L=S_e(_.nativeEvent);if(L===null){L=_.nativeEvent;var B=new L.constructor(L.type,L);Rp=B,L.target.dispatchEvent(B),Rp=null}else return x=cn(L),x!==null&&Gnt(x),_.blockedOn=L,!1;x.shift()}return!0}function Xnt(_,x,L){SX(_)&&L.delete(x)}function sMn(){E_e=!1,ck!==null&&SX(ck)&&(ck=null),uk!==null&&SX(uk)&&(uk=null),dk!==null&&SX(dk)&&(dk=null),mz.forEach(Xnt),vz.forEach(Xnt)}function xX(_,x){_.blockedOn===x&&(_.blockedOn=null,E_e||(E_e=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,sMn)))}var EX=null;function Jnt(_){EX!==_&&(EX=_,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){EX===_&&(EX=null);for(var x=0;x<_.length;x+=3){var L=_[x],B=_[x+1],ae=_[x+2];if(typeof B!="function"){if(x_e(B||L)===null)continue;break}var fe=cn(L);fe!==null&&(_.splice(x,3),x-=3,Sbe(fe,{pending:!0,data:ae,method:L.method,action:B},B,ae))}}))}function y5(_){function x(Wt){return xX(Wt,_)}ck!==null&&xX(ck,_),uk!==null&&xX(uk,_),dk!==null&&xX(dk,_),mz.forEach(x),vz.forEach(x);for(var L=0;L<hk.length;L++){var B=hk[L];B.blockedOn===_&&(B.blockedOn=null)}for(;0<hk.length&&(L=hk[0],L.blockedOn===null);)Znt(L),L.blockedOn===null&&hk.shift();if(L=(_.ownerDocument||_).$$reactFormReplay,L!=null)for(B=0;B<L.length;B+=3){var ae=L[B],fe=L[B+1],je=ae[Ht]||null;if(typeof fe=="function")je||Jnt(L);else if(je){var tt=null;if(fe&&fe.hasAttribute("formAction")){if(ae=fe,je=fe[Ht]||null)tt=je.formAction;else if(x_e(ae)!==null)continue}else tt=je.action;typeof tt=="function"?L[B+1]=tt:(L.splice(B,3),B-=3),Jnt(L)}}}function eit(){function _(fe){fe.canIntercept&&fe.info==="react-transition"&&fe.intercept({handler:function(){return new Promise(function(je){return ae=je})},focusReset:"manual",scroll:"manual"})}function x(){ae!==null&&(ae(),ae=null),B||setTimeout(L,20)}function L(){if(!B&&!navigation.transition){var fe=navigation.currentEntry;fe&&fe.url!=null&&navigation.navigate(fe.url,{state:fe.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var B=!1,ae=null;return navigation.addEventListener("navigate",_),navigation.addEventListener("navigatesuccess",x),navigation.addEventListener("navigateerror",x),setTimeout(L,100),function(){B=!0,navigation.removeEventListener("navigate",_),navigation.removeEventListener("navigatesuccess",x),navigation.removeEventListener("navigateerror",x),ae!==null&&(ae(),ae=null)}}}function A_e(_){this._internalRoot=_}AX.prototype.render=A_e.prototype.render=function(_){var x=this._internalRoot;if(x===null)throw Error(i(409));var L=x.current,B=dy();$nt(L,B,_,x,null,null)},AX.prototype.unmount=A_e.prototype.unmount=function(){var _=this._internalRoot;if(_!==null){this._internalRoot=null;var x=_.containerInfo;$nt(_.current,2,null,_,null,null),sX(),x[Qt]=null}};function AX(_){this._internalRoot=_}AX.prototype.unstable_scheduleHydration=function(_){if(_){var x=Ve();_={blockedOn:null,target:_,priority:x};for(var L=0;L<hk.length&&x!==0&&x<hk[L].priority;L++);hk.splice(L,0,_),L===0&&Znt(_)}};var tit=t.version;if(tit!=="19.2.4")throw Error(i(527,tit,"19.2.4"));Q.findDOMNode=function(_){var x=_._reactInternals;if(x===void 0)throw typeof _.render=="function"?Error(i(188)):(_=Object.keys(_).join(","),Error(i(268,_)));return _=c(x),_=_!==null?u(_):null,_=_===null?null:_.stateNode,_};var aMn={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:ee,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var DX=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!DX.isDisabled&&DX.supportsFiber)try{Gt=DX.inject(aMn),Kt=DX}catch{}}return _z.createRoot=function(_,x){if(!r(_))throw Error(i(299));var L=!1,B="",ae=ltt,fe=ctt,je=utt;return x!=null&&(x.unstable_strictMode===!0&&(L=!0),x.identifierPrefix!==void 0&&(B=x.identifierPrefix),x.onUncaughtError!==void 0&&(ae=x.onUncaughtError),x.onCaughtError!==void 0&&(fe=x.onCaughtError),x.onRecoverableError!==void 0&&(je=x.onRecoverableError)),x=Wnt(_,1,!1,null,null,L,B,null,ae,fe,je,eit),_[Qt]=x.current,a_e(_),new A_e(x)},_z.hydrateRoot=function(_,x,L){if(!r(_))throw Error(i(299));var B=!1,ae="",fe=ltt,je=ctt,tt=utt,Wt=null;return L!=null&&(L.unstable_strictMode===!0&&(B=!0),L.identifierPrefix!==void 0&&(ae=L.identifierPrefix),L.onUncaughtError!==void 0&&(fe=L.onUncaughtError),L.onCaughtError!==void 0&&(je=L.onCaughtError),L.onRecoverableError!==void 0&&(tt=L.onRecoverableError),L.formState!==void 0&&(Wt=L.formState)),x=Wnt(_,1,!0,x,L??null,B,ae,Wt,fe,je,tt,eit),x.context=Unt(null),L=x.current,B=dy(),B=Fe(B),ae=ZT(B),ae.callback=null,XT(L,ae,B),L=B,x.current.lanes=L,ve(x,L),mS(x),_[Qt]=x.current,a_e(_),new AX(x)},_z.version="19.2.4",_z}var hit;function CMn(){if(hit)return I_e.exports;hit=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),I_e.exports=wMn(),I_e.exports}var j8t=CMn(),xRe={};function b5(e){if(e==="react")return cT;if(e==="react-dom")return yMn;if(e==="react/jsx-runtime")return hMn;throw new Error(`Unknown module ${e}`)}var SMn=Object.create,spe=Object.defineProperty,xMn=Object.getOwnPropertyDescriptor,sVe=Object.getOwnPropertyNames,EMn=Object.getPrototypeOf,AMn=Object.prototype.hasOwnProperty,aVe=(e=>typeof b5<"u"?b5:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof b5<"u"?b5:t)[n]}):e)(function(e){if(typeof b5<"u")return b5.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),se=(e,t)=>function(){return e&&(t=(0,e[sVe(e)[0]])(e=0)),t},Ot=(e,t)=>function(){return t||(0,e[sVe(e)[0]])((t={exports:{}}).exports,t),t.exports},oc=(e,t)=>{for(var n in t)spe(e,n,{get:t[n],enumerable:!0})},z8t=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of sVe(t))!AMn.call(e,r)&&r!==n&&spe(e,r,{get:()=>t[r],enumerable:!(i=xMn(t,r))||i.enumerable});return e},on=(e,t,n)=>(n=e!=null?SMn(EMn(e)):{},z8t(t||!e||!e.__esModule?spe(n,"default",{value:e,enumerable:!0}):n,e)),Cr=e=>z8t(spe({},"__esModule",{value:!0}),e),DMn=Ot({"../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js"(e,t){var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=n}}),TMn=Ot({"../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js"(e,t){var n=DMn();function i(){}function r(){}r.resetWarningCache=i,t.exports=function(){function o(l,c,u,d,h,f){if(f!==n){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}o.isRequired=o;function s(){return o}var a={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:i};return a.PropTypes=a,a}}}),H2=Ot({"../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js"(e,t){t.exports=TMn()()}});function V8t(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var lVe=se({"../node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"(){}}),kMn=Ot({"../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js"(e){var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function w(A){if(typeof A=="object"&&A!==null){var D=A.$$typeof;switch(D){case n:switch(A=A.type,A){case c:case u:case r:case s:case o:case h:return A;default:switch(A=A&&A.$$typeof,A){case l:case d:case g:case p:case a:return A;default:return D}}case i:return D}}}function E(A){return w(A)===u}e.AsyncMode=c,e.ConcurrentMode=u,e.ContextConsumer=l,e.ContextProvider=a,e.Element=n,e.ForwardRef=d,e.Fragment=r,e.Lazy=g,e.Memo=p,e.Portal=i,e.Profiler=s,e.StrictMode=o,e.Suspense=h,e.isAsyncMode=function(A){return E(A)||w(A)===c},e.isConcurrentMode=E,e.isContextConsumer=function(A){return w(A)===l},e.isContextProvider=function(A){return w(A)===a},e.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===n},e.isForwardRef=function(A){return w(A)===d},e.isFragment=function(A){return w(A)===r},e.isLazy=function(A){return w(A)===g},e.isMemo=function(A){return w(A)===p},e.isPortal=function(A){return w(A)===i},e.isProfiler=function(A){return w(A)===s},e.isStrictMode=function(A){return w(A)===o},e.isSuspense=function(A){return w(A)===h},e.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===r||A===u||A===s||A===o||A===h||A===f||typeof A=="object"&&A!==null&&(A.$$typeof===g||A.$$typeof===p||A.$$typeof===a||A.$$typeof===l||A.$$typeof===d||A.$$typeof===v||A.$$typeof===y||A.$$typeof===b||A.$$typeof===m)},e.typeOf=w}}),IMn=Ot({"../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js"(e,t){t.exports=kMn()}}),LMn=Ot({"../node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){var n=IMn(),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[n.ForwardRef]=o,a[n.Memo]=s;function l(m){return n.isMemo(m)?s:a[m.$$typeof]||i}var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;function g(m,v,y){if(typeof v!="string"){if(p){var b=f(v);b&&b!==p&&g(m,b,y)}var w=u(v);d&&(w=w.concat(d(v)));for(var E=l(m),A=l(v),D=0;D<w.length;++D){var T=w[D];if(!r[T]&&!(y&&y[T])&&!(A&&A[T])&&!(E&&E[T])){var M=h(v,T);try{c(m,T,M)}catch{}}}}return m}t.exports=g}}),H8t={};oc(H8t,{default:()=>cVe});var fit,cVe,uVe=se({"../node_modules/.pnpm/@emotion+is-prop-valid@1.4.0/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js"(){lVe(),fit=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,cVe=V8t(function(e){return fit.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})}}),NMn=Ot({"../node_modules/.pnpm/react-is@19.2.4/node_modules/react-is/cjs/react-is.production.js"(e){var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function g(m){if(typeof m=="object"&&m!==null){var v=m.$$typeof;switch(v){case t:switch(m=m.type,m){case i:case o:case r:case c:case u:case f:return m;default:switch(m=m&&m.$$typeof,m){case a:case l:case h:case d:return m;case s:return m;default:return v}}case n:return v}}}e.ContextConsumer=s,e.ContextProvider=a,e.Element=t,e.ForwardRef=l,e.Fragment=i,e.Lazy=h,e.Memo=d,e.Portal=n,e.Profiler=o,e.StrictMode=r,e.Suspense=c,e.SuspenseList=u,e.isContextConsumer=function(m){return g(m)===s},e.isContextProvider=function(m){return g(m)===a},e.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},e.isForwardRef=function(m){return g(m)===l},e.isFragment=function(m){return g(m)===i},e.isLazy=function(m){return g(m)===h},e.isMemo=function(m){return g(m)===d},e.isPortal=function(m){return g(m)===n},e.isProfiler=function(m){return g(m)===o},e.isStrictMode=function(m){return g(m)===r},e.isSuspense=function(m){return g(m)===c},e.isSuspenseList=function(m){return g(m)===u},e.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===i||m===o||m===r||m===c||m===u||typeof m=="object"&&m!==null&&(m.$$typeof===h||m.$$typeof===d||m.$$typeof===a||m.$$typeof===s||m.$$typeof===l||m.$$typeof===p||m.getModuleId!==void 0)},e.typeOf=g}}),PMn=Ot({"../node_modules/.pnpm/react-is@19.2.4/node_modules/react-is/index.js"(e,t){t.exports=NMn()}}),mN=Ot({"../node_modules/.pnpm/lodash.merge@4.6.2/node_modules/lodash.merge/index.js"(e,t){var n=200,i="__lodash_hash_undefined__",r=800,o=16,s=9007199254740991,a="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Function]",p="[object GeneratorFunction]",g="[object Map]",m="[object Number]",v="[object Null]",y="[object Object]",b="[object Proxy]",w="[object RegExp]",E="[object Set]",A="[object String]",D="[object Undefined]",T="[object WeakMap]",M="[object ArrayBuffer]",P="[object DataView]",F="[object Float32Array]",N="[object Float64Array]",j="[object Int8Array]",W="[object Int16Array]",J="[object Int32Array]",ee="[object Uint8Array]",Q="[object Uint8ClampedArray]",H="[object Uint16Array]",q="[object Uint32Array]",le=/[\\^$.*+?()[\]{}|]/g,Y=/^\[object .+?Constructor\]$/,G=/^(?:0|[1-9]\d*)$/,pe={};pe[F]=pe[N]=pe[j]=pe[W]=pe[J]=pe[ee]=pe[Q]=pe[H]=pe[q]=!0,pe[a]=pe[l]=pe[M]=pe[u]=pe[P]=pe[d]=pe[h]=pe[f]=pe[g]=pe[m]=pe[y]=pe[w]=pe[E]=pe[A]=pe[T]=!1;var U=typeof global=="object"&&global&&global.Object===Object&&global,K=typeof self=="object"&&self&&self.Object===Object&&self,ie=U||K||Function("return this")(),ce=typeof e=="object"&&e&&!e.nodeType&&e,de=ce&&typeof t=="object"&&t&&!t.nodeType&&t,oe=de&&de.exports===ce,me=oe&&U.process,Ce=(function(){try{var Oe=de&&de.require&&de.require("util").types;return Oe||me&&me.binding&&me.binding("util")}catch{}})(),Se=Ce&&Ce.isTypedArray;function De(Oe,st,$t){switch($t.length){case 0:return Oe.call(st);case 1:return Oe.call(st,$t[0]);case 2:return Oe.call(st,$t[0],$t[1]);case 3:return Oe.call(st,$t[0],$t[1],$t[2])}return Oe.apply(st,$t)}function Me(Oe,st){for(var $t=-1,yi=Array(Oe);++$t<Oe;)yi[$t]=st($t);return yi}function qe(Oe){return function(st){return Oe(st)}}function $(Oe,st){return Oe?.[st]}function he(Oe,st){return function($t){return Oe(st($t))}}var Ie=Array.prototype,Be=Function.prototype,ze=Object.prototype,Ye=ie["__core-js_shared__"],it=Be.toString,ft=ze.hasOwnProperty,ct=(function(){var Oe=/[^.]+$/.exec(Ye&&Ye.keys&&Ye.keys.IE_PROTO||"");return Oe?"Symbol(src)_1."+Oe:""})(),et=ze.toString,ut=it.call(Object),wt=RegExp("^"+it.call(ft).replace(le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pt=oe?ie.Buffer:void 0,_t=ie.Symbol,Rt=ie.Uint8Array;pt&&pt.allocUnsafe;var Yt=he(Object.getPrototypeOf,Object),Ut=Object.create,Gt=ze.propertyIsEnumerable,Kt=Ie.splice,ln=_t?_t.toStringTag:void 0,pn=(function(){try{var Oe=pa(Object,"defineProperty");return Oe({},"",{}),Oe}catch{}})(),wn=pt?pt.isBuffer:void 0,Mn=Math.max,Yn=Date.now,di=pa(ie,"Map"),Li=pa(Object,"create"),ke=(function(){function Oe(){}return function(st){if(!Ed(st))return{};if(Ut)return Ut(st);Oe.prototype=st;var $t=new Oe;return Oe.prototype=void 0,$t}})();function Z(Oe){var st=-1,$t=Oe==null?0:Oe.length;for(this.clear();++st<$t;){var yi=Oe[st];this.set(yi[0],yi[1])}}function ne(){this.__data__=Li?Li(null):{},this.size=0}function V(Oe){var st=this.has(Oe)&&delete this.__data__[Oe];return this.size-=st?1:0,st}function re(Oe){var st=this.__data__;if(Li){var $t=st[Oe];return $t===i?void 0:$t}return ft.call(st,Oe)?st[Oe]:void 0}function ge(Oe){var st=this.__data__;return Li?st[Oe]!==void 0:ft.call(st,Oe)}function we(Oe,st){var $t=this.__data__;return this.size+=this.has(Oe)?0:1,$t[Oe]=Li&&st===void 0?i:st,this}Z.prototype.clear=ne,Z.prototype.delete=V,Z.prototype.get=re,Z.prototype.has=ge,Z.prototype.set=we;function ve(Oe){var st=-1,$t=Oe==null?0:Oe.length;for(this.clear();++st<$t;){var yi=Oe[st];this.set(yi[0],yi[1])}}function _e(){this.__data__=[],this.size=0}function Ee(Oe){var st=this.__data__,$t=Bn(st,Oe);if($t<0)return!1;var yi=st.length-1;return $t==yi?st.pop():Kt.call(st,$t,1),--this.size,!0}function Le(Oe){var st=this.__data__,$t=Bn(st,Oe);return $t<0?void 0:st[$t][1]}function be(Oe){return Bn(this.__data__,Oe)>-1}function Fe(Oe,st){var $t=this.__data__,yi=Bn($t,Oe);return yi<0?(++this.size,$t.push([Oe,st])):$t[yi][1]=st,this}ve.prototype.clear=_e,ve.prototype.delete=Ee,ve.prototype.get=Le,ve.prototype.has=be,ve.prototype.set=Fe;function Ze(Oe){var st=-1,$t=Oe==null?0:Oe.length;for(this.clear();++st<$t;){var yi=Oe[st];this.set(yi[0],yi[1])}}function Ve(){this.size=0,this.__data__={hash:new Z,map:new(di||ve),string:new Z}}function dt(Oe){var st=ed(this,Oe).delete(Oe);return this.size-=st?1:0,st}function Vt(Oe){return ed(this,Oe).get(Oe)}function Xe(Oe){return ed(this,Oe).has(Oe)}function Ht(Oe,st){var $t=ed(this,Oe),yi=$t.size;return $t.set(Oe,st),this.size+=$t.size==yi?0:1,this}Ze.prototype.clear=Ve,Ze.prototype.delete=dt,Ze.prototype.get=Vt,Ze.prototype.has=Xe,Ze.prototype.set=Ht;function Qt(Oe){var st=this.__data__=new ve(Oe);this.size=st.size}function Dt(){this.__data__=new ve,this.size=0}function Tt(Oe){var st=this.__data__,$t=st.delete(Oe);return this.size=st.size,$t}function en(Oe){return this.__data__.get(Oe)}function Bt(Oe){return this.__data__.has(Oe)}function Ue(Oe,st){var $t=this.__data__;if($t instanceof ve){var yi=$t.__data__;if(!di||yi.length<n-1)return yi.push([Oe,st]),this.size=++$t.size,this;$t=this.__data__=new Ze(yi)}return $t.set(Oe,st),this.size=$t.size,this}Qt.prototype.clear=Dt,Qt.prototype.delete=Tt,Qt.prototype.get=en,Qt.prototype.has=Bt,Qt.prototype.set=Ue;function Lt(Oe,st){var $t=Rp(Oe),yi=!$t&&Ml(Oe),xr=!$t&&!yi&&nd(Oe),Gn=!$t&&!yi&&!xr&&Ef(Oe),Go=$t||yi||xr||Gn,ro=Go?Me(Oe.length,String):[],ts=ro.length;for(var dl in Oe)Go&&(dl=="length"||xr&&(dl=="offset"||dl=="parent")||Gn&&(dl=="buffer"||dl=="byteLength"||dl=="byteOffset")||lc(dl,ts))||ro.push(dl);return ro}function at(Oe,st,$t){($t!==void 0&&!io(Oe[st],$t)||$t===void 0&&!(st in Oe))&&Tn(Oe,st,$t)}function cn(Oe,st,$t){var yi=Oe[st];(!(ft.call(Oe,st)&&io(yi,$t))||$t===void 0&&!(st in Oe))&&Tn(Oe,st,$t)}function Bn(Oe,st){for(var $t=Oe.length;$t--;)if(io(Oe[$t][0],st))return $t;return-1}function Tn(Oe,st,$t){st=="__proto__"&&pn?pn(Oe,st,{configurable:!0,enumerable:!0,value:$t,writable:!0}):Oe[st]=$t}var xi=Ju();function Zi(Oe){return Oe==null?Oe===void 0?D:v:ln&&ln in Object(Oe)?il(Oe):Mp(Oe)}function dn(Oe){return $c(Oe)&&Zi(Oe)==a}function fi(Oe){if(!Ed(Oe)||Ig(Oe))return!1;var st=Ic(Oe)?wt:Y;return st.test(Sm(Oe))}function Fr(Oe){return $c(Oe)&&Eu(Oe.length)&&!!pe[Zi(Oe)]}function Wo(Oe){if(!Ed(Oe))return ju(Oe);var st=Bu(Oe),$t=[];for(var yi in Oe)yi=="constructor"&&(st||!ft.call(Oe,yi))||$t.push(yi);return $t}function Mo(Oe,st,$t,yi,xr){Oe!==st&&xi(st,function(Gn,Go){if(xr||(xr=new Qt),Ed(Gn))Us(Oe,st,Go,$t,Mo,yi,xr);else{var ro=yi?yi(xd(Oe,Go),Gn,Go+"",Oe,st,xr):void 0;ro===void 0&&(ro=Gn),at(Oe,Go,ro)}},Au)}function Us(Oe,st,$t,yi,xr,Gn,Go){var ro=xd(Oe,$t),ts=xd(st,$t),dl=Go.get(ts);if(dl){at(Oe,$t,dl);return}var hs=Gn?Gn(ro,ts,$t+"",Oe,st,Go):void 0,du=hs===void 0;if(du){var Zf=Rp(ts),Qd=!Zf&&nd(ts),Je=!Zf&&!Qd&&Ef(ts);hs=ts,Zf||Qd||Je?Rp(ro)?hs=ro:kc(ro)?hs=Jr(ro):Qd?(du=!1,hs=dr(ts)):Je?(du=!1,hs=ds(ts)):hs=[]:Lc(ts)||Ml(ts)?(hs=ro,Ml(ro)?hs=cc(ro):(!Ed(ro)||Ic(ro))&&(hs=td(ts))):du=!1}du&&(Go.set(ts,hs),xr(hs,ts,yi,Gn,Go),Go.delete(ts)),at(Oe,$t,hs)}function nl(Oe,st){return Sf(Op(Oe,st,nt),Oe+"")}var Ai=pn?function(Oe,st){return pn(Oe,"toString",{configurable:!0,enumerable:!1,value:Ke(st),writable:!0})}:nt;function dr(Oe,st){return Oe.slice()}function es(Oe){var st=new Oe.constructor(Oe.byteLength);return new Rt(st).set(new Rt(Oe)),st}function ds(Oe,st){var $t=es(Oe.buffer);return new Oe.constructor($t,Oe.byteOffset,Oe.length)}function Jr(Oe,st){var $t=-1,yi=Oe.length;for(st||(st=Array(yi));++$t<yi;)st[$t]=Oe[$t];return st}function Xu(Oe,st,$t,yi){var xr=!$t;$t||($t={});for(var Gn=-1,Go=st.length;++Gn<Go;){var ro=st[Gn],ts=void 0;ts===void 0&&(ts=Oe[ro]),xr?Tn($t,ro,ts):cn($t,ro,ts)}return $t}function Dc(Oe){return nl(function(st,$t){var yi=-1,xr=$t.length,Gn=xr>1?$t[xr-1]:void 0,Go=xr>2?$t[2]:void 0;for(Gn=Oe.length>3&&typeof Gn=="function"?(xr--,Gn):void 0,Go&&Cf($t[0],$t[1],Go)&&(Gn=xr<3?void 0:Gn,xr=1),st=Object(st);++yi<xr;){var ro=$t[yi];ro&&Oe(st,ro,yi,Gn)}return st})}function Ju(Oe){return function(st,$t,yi){for(var xr=-1,Gn=Object(st),Go=yi(st),ro=Go.length;ro--;){var ts=Go[++xr];if($t(Gn[ts],ts,Gn)===!1)break}return st}}function ed(Oe,st){var $t=Oe.__data__;return Tc(st)?$t[typeof st=="string"?"string":"hash"]:$t.map}function pa(Oe,st){var $t=$(Oe,st);return fi($t)?$t:void 0}function il(Oe){var st=ft.call(Oe,ln),$t=Oe[ln];try{Oe[ln]=void 0;var yi=!0}catch{}var xr=et.call(Oe);return yi&&(st?Oe[ln]=$t:delete Oe[ln]),xr}function td(Oe){return typeof Oe.constructor=="function"&&!Bu(Oe)?ke(Yt(Oe)):{}}function lc(Oe,st){var $t=typeof Oe;return st=st??s,!!st&&($t=="number"||$t!="symbol"&&G.test(Oe))&&Oe>-1&&Oe%1==0&&Oe<st}function Cf(Oe,st,$t){if(!Ed($t))return!1;var yi=typeof st;return(yi=="number"?xf($t)&&lc(st,$t.length):yi=="string"&&st in $t)?io($t[st],Oe):!1}function Tc(Oe){var st=typeof Oe;return st=="string"||st=="number"||st=="symbol"||st=="boolean"?Oe!=="__proto__":Oe===null}function Ig(Oe){return!!ct&&ct in Oe}function Bu(Oe){var st=Oe&&Oe.constructor,$t=typeof st=="function"&&st.prototype||ze;return Oe===$t}function ju(Oe){var st=[];if(Oe!=null)for(var $t in Object(Oe))st.push($t);return st}function Mp(Oe){return et.call(Oe)}function Op(Oe,st,$t){return st=Mn(st===void 0?Oe.length-1:st,0),function(){for(var yi=arguments,xr=-1,Gn=Mn(yi.length-st,0),Go=Array(Gn);++xr<Gn;)Go[xr]=yi[st+xr];xr=-1;for(var ro=Array(st+1);++xr<st;)ro[xr]=yi[xr];return ro[st]=$t(Go),De(Oe,this,ro)}}function xd(Oe,st){if(!(st==="constructor"&&typeof Oe[st]=="function")&&st!="__proto__")return Oe[st]}var Sf=Mh(Ai);function Mh(Oe){var st=0,$t=0;return function(){var yi=Yn(),xr=o-(yi-$t);if($t=yi,xr>0){if(++st>=r)return arguments[0]}else st=0;return Oe.apply(void 0,arguments)}}function Sm(Oe){if(Oe!=null){try{return it.call(Oe)}catch{}try{return Oe+""}catch{}}return""}function io(Oe,st){return Oe===st||Oe!==Oe&&st!==st}var Ml=dn((function(){return arguments})())?dn:function(Oe){return $c(Oe)&&ft.call(Oe,"callee")&&!Gt.call(Oe,"callee")},Rp=Array.isArray;function xf(Oe){return Oe!=null&&Eu(Oe.length)&&!Ic(Oe)}function kc(Oe){return $c(Oe)&&xf(Oe)}var nd=wn||kt;function Ic(Oe){if(!Ed(Oe))return!1;var st=Zi(Oe);return st==f||st==p||st==c||st==b}function Eu(Oe){return typeof Oe=="number"&&Oe>-1&&Oe%1==0&&Oe<=s}function Ed(Oe){var st=typeof Oe;return Oe!=null&&(st=="object"||st=="function")}function $c(Oe){return Oe!=null&&typeof Oe=="object"}function Lc(Oe){if(!$c(Oe)||Zi(Oe)!=y)return!1;var st=Yt(Oe);if(st===null)return!0;var $t=ft.call(st,"constructor")&&st.constructor;return typeof $t=="function"&&$t instanceof $t&&it.call($t)==ut}var Ef=Se?qe(Se):Fr;function cc(Oe){return Xu(Oe,Au(Oe))}function Au(Oe){return xf(Oe)?Lt(Oe):Wo(Oe)}var xe=Dc(function(Oe,st,$t){Mo(Oe,st,$t)});function Ke(Oe){return function(){return Oe}}function nt(Oe){return Oe}function kt(){return!1}t.exports=xe}}),MMn=Ot({"../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js"(e,t){var n=Object.prototype.hasOwnProperty,i="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(i=!1));function o(c,u,d){this.fn=c,this.context=u,this.once=d||!1}function s(c,u,d,h,f){if(typeof d!="function")throw new TypeError("The listener must be a function");var p=new o(d,h||c,f),g=i?i+u:u;return c._events[g]?c._events[g].fn?c._events[g]=[c._events[g],p]:c._events[g].push(p):(c._events[g]=p,c._eventsCount++),c}function a(c,u){--c._eventsCount===0?c._events=new r:delete c._events[u]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],d,h;if(this._eventsCount===0)return u;for(h in d=this._events)n.call(d,h)&&u.push(i?h.slice(1):h);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},l.prototype.listeners=function(u){var d=i?i+u:u,h=this._events[d];if(!h)return[];if(h.fn)return[h.fn];for(var f=0,p=h.length,g=new Array(p);f<p;f++)g[f]=h[f].fn;return g},l.prototype.listenerCount=function(u){var d=i?i+u:u,h=this._events[d];return h?h.fn?1:h.length:0},l.prototype.emit=function(u,d,h,f,p,g){var m=i?i+u:u;if(!this._events[m])return!1;var v=this._events[m],y=arguments.length,b,w;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,d),!0;case 3:return v.fn.call(v.context,d,h),!0;case 4:return v.fn.call(v.context,d,h,f),!0;case 5:return v.fn.call(v.context,d,h,f,p),!0;case 6:return v.fn.call(v.context,d,h,f,p,g),!0}for(w=1,b=new Array(y-1);w<y;w++)b[w-1]=arguments[w];v.fn.apply(v.context,b)}else{var E=v.length,A;for(w=0;w<E;w++)switch(v[w].once&&this.removeListener(u,v[w].fn,void 0,!0),y){case 1:v[w].fn.call(v[w].context);break;case 2:v[w].fn.call(v[w].context,d);break;case 3:v[w].fn.call(v[w].context,d,h);break;case 4:v[w].fn.call(v[w].context,d,h,f);break;default:if(!b)for(A=1,b=new Array(y-1);A<y;A++)b[A-1]=arguments[A];v[w].fn.apply(v[w].context,b)}}return!0},l.prototype.on=function(u,d,h){return s(this,u,d,h,!1)},l.prototype.once=function(u,d,h){return s(this,u,d,h,!0)},l.prototype.removeListener=function(u,d,h,f){var p=i?i+u:u;if(!this._events[p])return this;if(!d)return a(this,p),this;var g=this._events[p];if(g.fn)g.fn===d&&(!f||g.once)&&(!h||g.context===h)&&a(this,p);else{for(var m=0,v=[],y=g.length;m<y;m++)(g[m].fn!==d||f&&!g[m].once||h&&g[m].context!==h)&&v.push(g[m]);v.length?this._events[p]=v.length===1?v[0]:v:a(this,p)}return this},l.prototype.removeAllListeners=function(u){var d;return u?(d=i?i+u:u,this._events[d]&&a(this,d)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=i,l.EventEmitter=l,typeof t<"u"&&(t.exports=l)}}),yE=Ot({"../node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/cjs/common.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RANDOM=e.EPSILON=e.ARRAY_TYPE=e.ANGLE_ORDER=void 0,e.equals=l,e.round=n,e.setMatrixArrayType=i,e.toDegree=a,e.toRadian=s;var t=e.EPSILON=1e-6;e.ARRAY_TYPE=typeof Float32Array<"u"?Float32Array:Array,e.RANDOM=Math.random,e.ANGLE_ORDER="zyx";function n(c){return c>=0?Math.round(c):c%.5===0?Math.floor(c):Math.round(c)}function i(c){e.ARRAY_TYPE=c}var r=Math.PI/180,o=180/Math.PI;function s(c){return c*r}function a(c){return c*o}function l(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t;return Math.abs(c-u)<=d*Math.max(1,Math.abs(c),Math.abs(u))}}}),OMn=Ot({"../node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/cjs/mat2.js"(e){function t(N){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},t(N)}Object.defineProperty(e,"__esModule",{value:!0}),e.LDU=E,e.add=A,e.adjoint=h,e.clone=o,e.copy=s,e.create=r,e.determinant=f,e.equals=M,e.exactEquals=T,e.frob=w,e.fromRotation=v,e.fromScaling=y,e.fromValues=l,e.identity=a,e.invert=d,e.mul=void 0,e.multiply=p,e.multiplyScalar=P,e.multiplyScalarAndAdd=F,e.rotate=g,e.scale=m,e.set=c,e.str=b,e.sub=void 0,e.subtract=D,e.transpose=u;var n=i(yE());function i(N,j){if(typeof WeakMap=="function")var W=new WeakMap,J=new WeakMap;return(i=function(Q,H){if(!H&&Q&&Q.__esModule)return Q;var q,le,Y={__proto__:null,default:Q};if(Q===null||t(Q)!="object"&&typeof Q!="function")return Y;if(q=H?J:W){if(q.has(Q))return q.get(Q);q.set(Q,Y)}for(var G in Q)G!=="default"&&{}.hasOwnProperty.call(Q,G)&&((le=(q=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Q,G))&&(le.get||le.set)?q(Y,G,le):Y[G]=Q[G]);return Y})(N,j)}function r(){var N=new n.ARRAY_TYPE(4);return n.ARRAY_TYPE!=Float32Array&&(N[1]=0,N[2]=0),N[0]=1,N[3]=1,N}function o(N){var j=new n.ARRAY_TYPE(4);return j[0]=N[0],j[1]=N[1],j[2]=N[2],j[3]=N[3],j}function s(N,j){return N[0]=j[0],N[1]=j[1],N[2]=j[2],N[3]=j[3],N}function a(N){return N[0]=1,N[1]=0,N[2]=0,N[3]=1,N}function l(N,j,W,J){var ee=new n.ARRAY_TYPE(4);return ee[0]=N,ee[1]=j,ee[2]=W,ee[3]=J,ee}function c(N,j,W,J,ee){return N[0]=j,N[1]=W,N[2]=J,N[3]=ee,N}function u(N,j){if(N===j){var W=j[1];N[1]=j[2],N[2]=W}else N[0]=j[0],N[1]=j[2],N[2]=j[1],N[3]=j[3];return N}function d(N,j){var W=j[0],J=j[1],ee=j[2],Q=j[3],H=W*Q-ee*J;return H?(H=1/H,N[0]=Q*H,N[1]=-J*H,N[2]=-ee*H,N[3]=W*H,N):null}function h(N,j){var W=j[0];return N[0]=j[3],N[1]=-j[1],N[2]=-j[2],N[3]=W,N}function f(N){return N[0]*N[3]-N[2]*N[1]}function p(N,j,W){var J=j[0],ee=j[1],Q=j[2],H=j[3],q=W[0],le=W[1],Y=W[2],G=W[3];return N[0]=J*q+Q*le,N[1]=ee*q+H*le,N[2]=J*Y+Q*G,N[3]=ee*Y+H*G,N}function g(N,j,W){var J=j[0],ee=j[1],Q=j[2],H=j[3],q=Math.sin(W),le=Math.cos(W);return N[0]=J*le+Q*q,N[1]=ee*le+H*q,N[2]=J*-q+Q*le,N[3]=ee*-q+H*le,N}function m(N,j,W){var J=j[0],ee=j[1],Q=j[2],H=j[3],q=W[0],le=W[1];return N[0]=J*q,N[1]=ee*q,N[2]=Q*le,N[3]=H*le,N}function v(N,j){var W=Math.sin(j),J=Math.cos(j);return N[0]=J,N[1]=W,N[2]=-W,N[3]=J,N}function y(N,j){return N[0]=j[0],N[1]=0,N[2]=0,N[3]=j[1],N}function b(N){return"mat2("+N[0]+", "+N[1]+", "+N[2]+", "+N[3]+")"}function w(N){return Math.sqrt(N[0]*N[0]+N[1]*N[1]+N[2]*N[2]+N[3]*N[3])}function E(N,j,W,J){return N[2]=J[2]/J[0],W[0]=J[0],W[1]=J[1],W[3]=J[3]-N[2]*W[1],[N,j,W]}function A(N,j,W){return N[0]=j[0]+W[0],N[1]=j[1]+W[1],N[2]=j[2]+W[2],N[3]=j[3]+W[3],N}function D(N,j,W){return N[0]=j[0]-W[0],N[1]=j[1]-W[1],N[2]=j[2]-W[2],N[3]=j[3]-W[3],N}function T(N,j){return N[0]===j[0]&&N[1]===j[1]&&N[2]===j[2]&&N[3]===j[3]}function M(N,j){var W=N[0],J=N[1],ee=N[2],Q=N[3],H=j[0],q=j[1],le=j[2],Y=j[3];return Math.abs(W-H)<=n.EPSILON*Math.max(1,Math.abs(W),Math.abs(H))&&Math.abs(J-q)<=n.EPSILON*Math.max(1,Math.abs(J),Math.abs(q))&&Math.abs(ee-le)<=n.EPSILON*Math.max(1,Math.abs(ee),Math.abs(le))&&Math.abs(Q-Y)<=n.EPSILON*Math.max(1,Math.abs(Q),Math.abs(Y))}function P(N,j,W){return N[0]=j[0]*W,N[1]=j[1]*W,N[2]=j[2]*W,N[3]=j[3]*W,N}function F(N,j,W,J){return N[0]=j[0]+W[0]*J,N[1]=j[1]+W[1]*J,N[2]=j[2]+W[2]*J,N[3]=j[3]+W[3]*J,N}e.mul=p,e.sub=D}}),RMn=Ot({"../node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/cjs/mat2d.js"(e){function t(F){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},t(F)}Object.defineProperty(e,"__esModule",{value:!0}),e.add=E,e.clone=o,e.copy=s,e.create=r,e.determinant=d,e.equals=P,e.exactEquals=M,e.frob=w,e.fromRotation=m,e.fromScaling=v,e.fromTranslation=y,e.fromValues=l,e.identity=a,e.invert=u,e.mul=void 0,e.multiply=h,e.multiplyScalar=D,e.multiplyScalarAndAdd=T,e.rotate=f,e.scale=p,e.set=c,e.str=b,e.sub=void 0,e.subtract=A,e.translate=g;var n=i(yE());function i(F,N){if(typeof WeakMap=="function")var j=new WeakMap,W=new WeakMap;return(i=function(ee,Q){if(!Q&&ee&&ee.__esModule)return ee;var H,q,le={__proto__:null,default:ee};if(ee===null||t(ee)!="object"&&typeof ee!="function")return le;if(H=Q?W:j){if(H.has(ee))return H.get(ee);H.set(ee,le)}for(var Y in ee)Y!=="default"&&{}.hasOwnProperty.call(ee,Y)&&((q=(H=Object.defineProperty)&&Object.getOwnPropertyDescriptor(ee,Y))&&(q.get||q.set)?H(le,Y,q):le[Y]=ee[Y]);return le})(F,N)}function r(){var F=new n.ARRAY_TYPE(6);return n.ARRAY_TYPE!=Float32Array&&(F[1]=0,F[2]=0,F[4]=0,F[5]=0),F[0]=1,F[3]=1,F}function o(F){var N=new n.ARRAY_TYPE(6);return N[0]=F[0],N[1]=F[1],N[2]=F[2],N[3]=F[3],N[4]=F[4],N[5]=F[5],N}function s(F,N){return F[0]=N[0],F[1]=N[1],F[2]=N[2],F[3]=N[3],F[4]=N[4],F[5]=N[5],F}function a(F){return F[0]=1,F[1]=0,F[2]=0,F[3]=1,F[4]=0,F[5]=0,F}function l(F,N,j,W,J,ee){var Q=new n.ARRAY_TYPE(6);return Q[0]=F,Q[1]=N,Q[2]=j,Q[3]=W,Q[4]=J,Q[5]=ee,Q}function c(F,N,j,W,J,ee,Q){return F[0]=N,F[1]=j,F[2]=W,F[3]=J,F[4]=ee,F[5]=Q,F}function u(F,N){var j=N[0],W=N[1],J=N[2],ee=N[3],Q=N[4],H=N[5],q=j*ee-W*J;return q?(q=1/q,F[0]=ee*q,F[1]=-W*q,F[2]=-J*q,F[3]=j*q,F[4]=(J*H-ee*Q)*q,F[5]=(W*Q-j*H)*q,F):null}function d(F){return F[0]*F[3]-F[1]*F[2]}function h(F,N,j){var W=N[0],J=N[1],ee=N[2],Q=N[3],H=N[4],q=N[5],le=j[0],Y=j[1],G=j[2],pe=j[3],U=j[4],K=j[5];return F[0]=W*le+ee*Y,F[1]=J*le+Q*Y,F[2]=W*G+ee*pe,F[3]=J*G+Q*pe,F[4]=W*U+ee*K+H,F[5]=J*U+Q*K+q,F}function f(F,N,j){var W=N[0],J=N[1],ee=N[2],Q=N[3],H=N[4],q=N[5],le=Math.sin(j),Y=Math.cos(j);return F[0]=W*Y+ee*le,F[1]=J*Y+Q*le,F[2]=W*-le+ee*Y,F[3]=J*-le+Q*Y,F[4]=H,F[5]=q,F}function p(F,N,j){var W=N[0],J=N[1],ee=N[2],Q=N[3],H=N[4],q=N[5],le=j[0],Y=j[1];return F[0]=W*le,F[1]=J*le,F[2]=ee*Y,F[3]=Q*Y,F[4]=H,F[5]=q,F}function g(F,N,j){var W=N[0],J=N[1],ee=N[2],Q=N[3],H=N[4],q=N[5],le=j[0],Y=j[1];return F[0]=W,F[1]=J,F[2]=ee,F[3]=Q,F[4]=W*le+ee*Y+H,F[5]=J*le+Q*Y+q,F}function m(F,N){var j=Math.sin(N),W=Math.cos(N);return F[0]=W,F[1]=j,F[2]=-j,F[3]=W,F[4]=0,F[5]=0,F}function v(F,N){return F[0]=N[0],F[1]=0,F[2]=0,F[3]=N[1],F[4]=0,F[5]=0,F}function y(F,N){return F[0]=1,F[1]=0,F[2]=0,F[3]=1,F[4]=N[0],F[5]=N[1],F}function b(F){return"mat2d("+F[0]+", "+F[1]+", "+F[2]+", "+F[3]+", "+F[4]+", "+F[5]+")"}function w(F){return Math.sqrt(F[0]*F[0]+F[1]*F[1]+F[2]*F[2]+F[3]*F[3]+F[4]*F[4]+F[5]*F[5]+1)}function E(F,N,j){return F[0]=N[0]+j[0],F[1]=N[1]+j[1],F[2]=N[2]+j[2],F[3]=N[3]+j[3],F[4]=N[4]+j[4],F[5]=N[5]+j[5],F}function A(F,N,j){return F[0]=N[0]-j[0],F[1]=N[1]-j[1],F[2]=N[2]-j[2],F[3]=N[3]-j[3],F[4]=N[4]-j[4],F[5]=N[5]-j[5],F}function D(F,N,j){return F[0]=N[0]*j,F[1]=N[1]*j,F[2]=N[2]*j,F[3]=N[3]*j,F[4]=N[4]*j,F[5]=N[5]*j,F}function T(F,N,j,W){return F[0]=N[0]+j[0]*W,F[1]=N[1]+j[1]*W,F[2]=N[2]+j[2]*W,F[3]=N[3]+j[3]*W,F[4]=N[4]+j[4]*W,F[5]=N[5]+j[5]*W,F}function M(F,N){return F[0]===N[0]&&F[1]===N[1]&&F[2]===N[2]&&F[3]===N[3]&&F[4]===N[4]&&F[5]===N[5]}function P(F,N){var j=F[0],W=F[1],J=F[2],ee=F[3],Q=F[4],H=F[5],q=N[0],le=N[1],Y=N[2],G=N[3],pe=N[4],U=N[5];return Math.abs(j-q)<=n.EPSILON*Math.max(1,Math.abs(j),Math.abs(q))&&Math.abs(W-le)<=n.EPSILON*Math.max(1,Math.abs(W),Math.abs(le))&&Math.abs(J-Y)<=n.EPSILON*Math.max(1,Math.abs(J),Math.abs(Y))&&Math.abs(ee-G)<=n.EPSILON*Math.max(1,Math.abs(ee),Math.abs(G))&&Math.abs(Q-pe)<=n.EPSILON*Math.max(1,Math.abs(Q),Math.abs(pe))&&Math.abs(H-U)<=n.EPSILON*Math.max(1,Math.abs(H),Math.abs(U))}e.mul=h,e.sub=A}}),W8t=Ot({"../node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/cjs/mat3.js"(e){function t(H){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},t(H)}Object.defineProperty(e,"__esModule",{value:!0}),e.add=N,e.adjoint=f,e.clone=s,e.copy=a,e.create=r,e.determinant=p,e.equals=Q,e.exactEquals=ee,e.frob=F,e.fromMat2d=A,e.fromMat4=o,e.fromQuat=D,e.fromRotation=w,e.fromScaling=E,e.fromTranslation=b,e.fromValues=l,e.identity=u,e.invert=h,e.mul=void 0,e.multiply=g,e.multiplyScalar=W,e.multiplyScalarAndAdd=J,e.normalFromMat4=T,e.projection=M,e.rotate=v,e.scale=y,e.set=c,e.str=P,e.sub=void 0,e.subtract=j,e.translate=m,e.transpose=d;var n=i(yE());function i(H,q){if(typeof WeakMap=="function")var le=new WeakMap,Y=new WeakMap;return(i=function(pe,U){if(!U&&pe&&pe.__esModule)return pe;var K,ie,ce={__proto__:null,default:pe};if(pe===null||t(pe)!="object"&&typeof pe!="function")return ce;if(K=U?Y:le){if(K.has(pe))return K.get(pe);K.set(pe,ce)}for(var de in pe)de!=="default"&&{}.hasOwnProperty.call(pe,de)&&((ie=(K=Object.defineProperty)&&Object.getOwnPropertyDescriptor(pe,de))&&(ie.get||ie.set)?K(ce,de,ie):ce[de]=pe[de]);return ce})(H,q)}function r(){var H=new n.ARRAY_TYPE(9);return n.ARRAY_TYPE!=Float32Array&&(H[1]=0,H[2]=0,H[3]=0,H[5]=0,H[6]=0,H[7]=0),H[0]=1,H[4]=1,H[8]=1,H}function o(H,q){return H[0]=q[0],H[1]=q[1],H[2]=q[2],H[3]=q[4],H[4]=q[5],H[5]=q[6],H[6]=q[8],H[7]=q[9],H[8]=q[10],H}function s(H){var q=new n.ARRAY_TYPE(9);return q[0]=H[0],q[1]=H[1],q[2]=H[2],q[3]=H[3],q[4]=H[4],q[5]=H[5],q[6]=H[6],q[7]=H[7],q[8]=H[8],q}function a(H,q){return H[0]=q[0],H[1]=q[1],H[2]=q[2],H[3]=q[3],H[4]=q[4],H[5]=q[5],H[6]=q[6],H[7]=q[7],H[8]=q[8],H}function l(H,q,le,Y,G,pe,U,K,ie){var ce=new n.ARRAY_TYPE(9);return ce[0]=H,ce[1]=q,ce[2]=le,ce[3]=Y,ce[4]=G,ce[5]=pe,ce[6]=U,ce[7]=K,ce[8]=ie,ce}function c(H,q,le,Y,G,pe,U,K,ie,ce){return H[0]=q,H[1]=le,H[2]=Y,H[3]=G,H[4]=pe,H[5]=U,H[6]=K,H[7]=ie,H[8]=ce,H}function u(H){return H[0]=1,H[1]=0,H[2]=0,H[3]=0,H[4]=1,H[5]=0,H[6]=0,H[7]=0,H[8]=1,H}function d(H,q){if(H===q){var le=q[1],Y=q[2],G=q[5];H[1]=q[3],H[2]=q[6],H[3]=le,H[5]=q[7],H[6]=Y,H[7]=G}else H[0]=q[0],H[1]=q[3],H[2]=q[6],H[3]=q[1],H[4]=q[4],H[5]=q[7],H[6]=q[2],H[7]=q[5],H[8]=q[8];return H}function h(H,q){var le=q[0],Y=q[1],G=q[2],pe=q[3],U=q[4],K=q[5],ie=q[6],ce=q[7],de=q[8],oe=de*U-K*ce,me=-de*pe+K*ie,Ce=ce*pe-U*ie,Se=le*oe+Y*me+G*Ce;return Se?(Se=1/Se,H[0]=oe*Se,H[1]=(-de*Y+G*ce)*Se,H[2]=(K*Y-G*U)*Se,H[3]=me*Se,H[4]=(de*le-G*ie)*Se,H[5]=(-K*le+G*pe)*Se,H[6]=Ce*Se,H[7]=(-ce*le+Y*ie)*Se,H[8]=(U*le-Y*pe)*Se,H):null}function f(H,q){var le=q[0],Y=q[1],G=q[2],pe=q[3],U=q[4],K=q[5],ie=q[6],ce=q[7],de=q[8];return H[0]=U*de-K*ce,H[1]=G*ce-Y*de,H[2]=Y*K-G*U,H[3]=K*ie-pe*de,H[4]=le*de-G*ie,H[5]=G*pe-le*K,H[6]=pe*ce-U*ie,H[7]=Y*ie-le*ce,H[8]=le*U-Y*pe,H}function p(H){var q=H[0],le=H[1],Y=H[2],G=H[3],pe=H[4],U=H[5],K=H[6],ie=H[7],ce=H[8];return q*(ce*pe-U*ie)+le*(-ce*G+U*K)+Y*(ie*G-pe*K)}function g(H,q,le){var Y=q[0],G=q[1],pe=q[2],U=q[3],K=q[4],ie=q[5],ce=q[6],de=q[7],oe=q[8],me=le[0],Ce=le[1],Se=le[2],De=le[3],Me=le[4],qe=le[5],$=le[6],he=le[7],Ie=le[8];return H[0]=me*Y+Ce*U+Se*ce,H[1]=me*G+Ce*K+Se*de,H[2]=me*pe+Ce*ie+Se*oe,H[3]=De*Y+Me*U+qe*ce,H[4]=De*G+Me*K+qe*de,H[5]=De*pe+Me*ie+qe*oe,H[6]=$*Y+he*U+Ie*ce,H[7]=$*G+he*K+Ie*de,H[8]=$*pe+he*ie+Ie*oe,H}function m(H,q,le){var Y=q[0],G=q[1],pe=q[2],U=q[3],K=q[4],ie=q[5],ce=q[6],de=q[7],oe=q[8],me=le[0],Ce=le[1];return H[0]=Y,H[1]=G,H[2]=pe,H[3]=U,H[4]=K,H[5]=ie,H[6]=me*Y+Ce*U+ce,H[7]=me*G+Ce*K+de,H[8]=me*pe+Ce*ie+oe,H}function v(H,q,le){var Y=q[0],G=q[1],pe=q[2],U=q[3],K=q[4],ie=q[5],ce=q[6],de=q[7],oe=q[8],me=Math.sin(le),Ce=Math.cos(le);return H[0]=Ce*Y+me*U,H[1]=Ce*G+me*K,H[2]=Ce*pe+me*ie,H[3]=Ce*U-me*Y,H[4]=Ce*K-me*G,H[5]=Ce*ie-me*pe,H[6]=ce,H[7]=de,H[8]=oe,H}function y(H,q,le){var Y=le[0],G=le[1];return H[0]=Y*q[0],H[1]=Y*q[1],H[2]=Y*q[2],H[3]=G*q[3],H[4]=G*q[4],H[5]=G*q[5],H[6]=q[6],H[7]=q[7],H[8]=q[8],H}function b(H,q){return H[0]=1,H[1]=0,H[2]=0,H[3]=0,H[4]=1,H[5]=0,H[6]=q[0],H[7]=q[1],H[8]=1,H}function w(H,q){var le=Math.sin(q),Y=Math.cos(q);return H[0]=Y,H[1]=le,H[2]=0,H[3]=-le,H[4]=Y,H[5]=0,H[6]=0,H[7]=0,H[8]=1,H}function E(H,q){return H[0]=q[0],H[1]=0,H[2]=0,H[3]=0,H[4]=q[1],H[5]=0,H[6]=0,H[7]=0,H[8]=1,H}function A(H,q){return H[0]=q[0],H[1]=q[1],H[2]=0,H[3]=q[2],H[4]=q[3],H[5]=0,H[6]=q[4],H[7]=q[5],H[8]=1,H}function D(H,q){var le=q[0],Y=q[1],G=q[2],pe=q[3],U=le+le,K=Y+Y,ie=G+G,ce=le*U,de=Y*U,oe=Y*K,me=G*U,Ce=G*K,Se=G*ie,De=pe*U,Me=pe*K,qe=pe*ie;return H[0]=1-oe-Se,H[3]=de-qe,H[6]=me+Me,H[1]=de+qe,H[4]=1-ce-Se,H[7]=Ce-De,H[2]=me-Me,H[5]=Ce+De,H[8]=1-ce-oe,H}function T(H,q){var le=q[0],Y=q[1],G=q[2],pe=q[3],U=q[4],K=q[5],ie=q[6],ce=q[7],de=q[8],oe=q[9],me=q[10],Ce=q[11],Se=q[12],De=q[13],Me=q[14],qe=q[15],$=le*K-Y*U,he=le*ie-G*U,Ie=le*ce-pe*U,Be=Y*ie-G*K,ze=Y*ce-pe*K,Ye=G*ce-pe*ie,it=de*De-oe*Se,ft=de*Me-me*Se,ct=de*qe-Ce*Se,et=oe*Me-me*De,ut=oe*qe-Ce*De,wt=me*qe-Ce*Me,pt=$*wt-he*ut+Ie*et+Be*ct-ze*ft+Ye*it;return pt?(pt=1/pt,H[0]=(K*wt-ie*ut+ce*et)*pt,H[1]=(ie*ct-U*wt-ce*ft)*pt,H[2]=(U*ut-K*ct+ce*it)*pt,H[3]=(G*ut-Y*wt-pe*et)*pt,H[4]=(le*wt-G*ct+pe*ft)*pt,H[5]=(Y*ct-le*ut-pe*it)*pt,H[6]=(De*Ye-Me*ze+qe*Be)*pt,H[7]=(Me*Ie-Se*Ye-qe*he)*pt,H[8]=(Se*ze-De*Ie+qe*$)*pt,H):null}function M(H,q,le){return H[0]=2/q,H[1]=0,H[2]=0,H[3]=0,H[4]=-2/le,H[5]=0,H[6]=-1,H[7]=1,H[8]=1,H}function P(H){return"mat3("+H[0]+", "+H[1]+", "+H[2]+", "+H[3]+", "+H[4]+", "+H[5]+", "+H[6]+", "+H[7]+", "+H[8]+")"}function F(H){return Math.sqrt(H[0]*H[0]+H[1]*H[1]+H[2]*H[2]+H[3]*H[3]+H[4]*H[4]+H[5]*H[5]+H[6]*H[6]+H[7]*H[7]+H[8]*H[8])}function N(H,q,le){return H[0]=q[0]+le[0],H[1]=q[1]+le[1],H[2]=q[2]+le[2],H[3]=q[3]+le[3],H[4]=q[4]+le[4],H[5]=q[5]+le[5],H[6]=q[6]+le[6],H[7]=q[7]+le[7],H[8]=q[8]+le[8],H}function j(H,q,le){return H[0]=q[0]-le[0],H[1]=q[1]-le[1],H[2]=q[2]-le[2],H[3]=q[3]-le[3],H[4]=q[4]-le[4],H[5]=q[5]-le[5],H[6]=q[6]-le[6],H[7]=q[7]-le[7],H[8]=q[8]-le[8],H}function W(H,q,le){return H[0]=q[0]*le,H[1]=q[1]*le,H[2]=q[2]*le,H[3]=q[3]*le,H[4]=q[4]*le,H[5]=q[5]*le,H[6]=q[6]*le,H[7]=q[7]*le,H[8]=q[8]*le,H}function J(H,q,le,Y){return H[0]=q[0]+le[0]*Y,H[1]=q[1]+le[1]*Y,H[2]=q[2]+le[2]*Y,H[3]=q[3]+le[3]*Y,H[4]=q[4]+le[4]*Y,H[5]=q[5]+le[5]*Y,H[6]=q[6]+le[6]*Y,H[7]=q[7]+le[7]*Y,H[8]=q[8]+le[8]*Y,H}function ee(H,q){return H[0]===q[0]&&H[1]===q[1]&&H[2]===q[2]&&H[3]===q[3]&&H[4]===q[4]&&H[5]===q[5]&&H[6]===q[6]&&H[7]===q[7]&&H[8]===q[8]}function Q(H,q){var le=H[0],Y=H[1],G=H[2],pe=H[3],U=H[4],K=H[5],ie=H[6],ce=H[7],de=H[8],oe=q[0],me=q[1],Ce=q[2],Se=q[3],De=q[4],Me=q[5],qe=q[6],$=q[7],he=q[8];return Math.abs(le-oe)<=n.EPSILON*Math.max(1,Math.abs(le),Math.abs(oe))&&Math.abs(Y-me)<=n.EPSILON*Math.max(1,Math.abs(Y),Math.abs(me))&&Math.abs(G-Ce)<=n.EPSILON*Math.max(1,Math.abs(G),Math.abs(Ce))&&Math.abs(pe-Se)<=n.EPSILON*Math.max(1,Math.abs(pe),Math.abs(Se))&&Math.abs(U-De)<=n.EPSILON*Math.max(1,Math.abs(U),Math.abs(De))&&Math.abs(K-Me)<=n.EPSILON*Math.max(1,Math.abs(K),Math.abs(Me))&&Math.abs(ie-qe)<=n.EPSILON*Math.max(1,Math.abs(ie),Math.abs(qe))&&Math.abs(ce-$)<=n.EPSILON*Math.max(1,Math.abs(ce),Math.abs($))&&Math.abs(de-he)<=n.EPSILON*Math.max(1,Math.abs(de),Math.abs(he))}e.mul=g,e.sub=j}}),U8t=Ot({"../node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/cjs/mat4.js"(e){function t($){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(he){return typeof he}:function(he){return he&&typeof Symbol=="function"&&he.constructor===Symbol&&he!==Symbol.prototype?"symbol":typeof he},t($)}Object.defineProperty(e,"__esModule",{value:!0}),e.add=me,e.adjoint=h,e.clone=o,e.copy=s,e.create=r,e.decompose=ee,e.determinant=f,e.equals=qe,e.exactEquals=Me,e.frob=oe,e.fromQuat=q,e.fromQuat2=N,e.fromRotation=D,e.fromRotationTranslation=F,e.fromRotationTranslationScale=Q,e.fromRotationTranslationScaleOrigin=H,e.fromScaling=A,e.fromTranslation=E,e.fromValues=a,e.fromXRotation=T,e.fromYRotation=M,e.fromZRotation=P,e.frustum=le,e.getRotation=J,e.getScaling=W,e.getTranslation=j,e.identity=c,e.invert=d,e.lookAt=ie,e.mul=void 0,e.multiply=p,e.multiplyScalar=Se,e.multiplyScalarAndAdd=De,e.ortho=void 0,e.orthoNO=U,e.orthoZO=K,e.perspective=void 0,e.perspectiveFromFieldOfView=pe,e.perspectiveNO=Y,e.perspectiveZO=G,e.rotate=v,e.rotateX=y,e.rotateY=b,e.rotateZ=w,e.scale=m,e.set=l,e.str=de,e.sub=void 0,e.subtract=Ce,e.targetTo=ce,e.translate=g,e.transpose=u;var n=i(yE());function i($,he){if(typeof WeakMap=="function")var Ie=new WeakMap,Be=new WeakMap;return(i=function(Ye,it){if(!it&&Ye&&Ye.__esModule)return Ye;var ft,ct,et={__proto__:null,default:Ye};if(Ye===null||t(Ye)!="object"&&typeof Ye!="function")return et;if(ft=it?Be:Ie){if(ft.has(Ye))return ft.get(Ye);ft.set(Ye,et)}for(var ut in Ye)ut!=="default"&&{}.hasOwnProperty.call(Ye,ut)&&((ct=(ft=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Ye,ut))&&(ct.get||ct.set)?ft(et,ut,ct):et[ut]=Ye[ut]);return et})($,he)}function r(){var $=new n.ARRAY_TYPE(16);return n.ARRAY_TYPE!=Float32Array&&($[1]=0,$[2]=0,$[3]=0,$[4]=0,$[6]=0,$[7]=0,$[8]=0,$[9]=0,$[11]=0,$[12]=0,$[13]=0,$[14]=0),$[0]=1,$[5]=1,$[10]=1,$[15]=1,$}function o($){var he=new n.ARRAY_TYPE(16);return he[0]=$[0],he[1]=$[1],he[2]=$[2],he[3]=$[3],he[4]=$[4],he[5]=$[5],he[6]=$[6],he[7]=$[7],he[8]=$[8],he[9]=$[9],he[10]=$[10],he[11]=$[11],he[12]=$[12],he[13]=$[13],he[14]=$[14],he[15]=$[15],he}function s($,he){return $[0]=he[0],$[1]=he[1],$[2]=he[2],$[3]=he[3],$[4]=he[4],$[5]=he[5],$[6]=he[6],$[7]=he[7],$[8]=he[8],$[9]=he[9],$[10]=he[10],$[11]=he[11],$[12]=he[12],$[13]=he[13],$[14]=he[14],$[15]=he[15],$}function a($,he,Ie,Be,ze,Ye,it,ft,ct,et,ut,wt,pt,_t,Rt,Yt){var Ut=new n.ARRAY_TYPE(16);return Ut[0]=$,Ut[1]=he,Ut[2]=Ie,Ut[3]=Be,Ut[4]=ze,Ut[5]=Ye,Ut[6]=it,Ut[7]=ft,Ut[8]=ct,Ut[9]=et,Ut[10]=ut,Ut[11]=wt,Ut[12]=pt,Ut[13]=_t,Ut[14]=Rt,Ut[15]=Yt,Ut}function l($,he,Ie,Be,ze,Ye,it,ft,ct,et,ut,wt,pt,_t,Rt,Yt,Ut){return $[0]=he,$[1]=Ie,$[2]=Be,$[3]=ze,$[4]=Ye,$[5]=it,$[6]=ft,$[7]=ct,$[8]=et,$[9]=ut,$[10]=wt,$[11]=pt,$[12]=_t,$[13]=Rt,$[14]=Yt,$[15]=Ut,$}function c($){return $[0]=1,$[1]=0,$[2]=0,$[3]=0,$[4]=0,$[5]=1,$[6]=0,$[7]=0,$[8]=0,$[9]=0,$[10]=1,$[11]=0,$[12]=0,$[13]=0,$[14]=0,$[15]=1,$}function u($,he){if($===he){var Ie=he[1],Be=he[2],ze=he[3],Ye=he[6],it=he[7],ft=he[11];$[1]=he[4],$[2]=he[8],$[3]=he[12],$[4]=Ie,$[6]=he[9],$[7]=he[13],$[8]=Be,$[9]=Ye,$[11]=he[14],$[12]=ze,$[13]=it,$[14]=ft}else $[0]=he[0],$[1]=he[4],$[2]=he[8],$[3]=he[12],$[4]=he[1],$[5]=he[5],$[6]=he[9],$[7]=he[13],$[8]=he[2],$[9]=he[6],$[10]=he[10],$[11]=he[14],$[12]=he[3],$[13]=he[7],$[14]=he[11],$[15]=he[15];return $}function d($,he){var Ie=he[0],Be=he[1],ze=he[2],Ye=he[3],it=he[4],ft=he[5],ct=he[6],et=he[7],ut=he[8],wt=he[9],pt=he[10],_t=he[11],Rt=he[12],Yt=he[13],Ut=he[14],Gt=he[15],Kt=Ie*ft-Be*it,ln=Ie*ct-ze*it,pn=Ie*et-Ye*it,wn=Be*ct-ze*ft,Mn=Be*et-Ye*ft,Yn=ze*et-Ye*ct,di=ut*Yt-wt*Rt,Li=ut*Ut-pt*Rt,ke=ut*Gt-_t*Rt,Z=wt*Ut-pt*Yt,ne=wt*Gt-_t*Yt,V=pt*Gt-_t*Ut,re=Kt*V-ln*ne+pn*Z+wn*ke-Mn*Li+Yn*di;return re?(re=1/re,$[0]=(ft*V-ct*ne+et*Z)*re,$[1]=(ze*ne-Be*V-Ye*Z)*re,$[2]=(Yt*Yn-Ut*Mn+Gt*wn)*re,$[3]=(pt*Mn-wt*Yn-_t*wn)*re,$[4]=(ct*ke-it*V-et*Li)*re,$[5]=(Ie*V-ze*ke+Ye*Li)*re,$[6]=(Ut*pn-Rt*Yn-Gt*ln)*re,$[7]=(ut*Yn-pt*pn+_t*ln)*re,$[8]=(it*ne-ft*ke+et*di)*re,$[9]=(Be*ke-Ie*ne-Ye*di)*re,$[10]=(Rt*Mn-Yt*pn+Gt*Kt)*re,$[11]=(wt*pn-ut*Mn-_t*Kt)*re,$[12]=(ft*Li-it*Z-ct*di)*re,$[13]=(Ie*Z-Be*Li+ze*di)*re,$[14]=(Yt*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=he[3]*Be+he[7]*ze+he[11]*Ye+he[15]):(it=he[0],ft=he[1],ct=he[2],et=he[3],ut=he[4],wt=he[5],pt=he[6],_t=he[7],Rt=he[8],Yt=he[9],Ut=he[10],Gt=he[11],$[0]=it,$[1]=ft,$[2]=ct,$[3]=et,$[4]=ut,$[5]=wt,$[6]=pt,$[7]=_t,$[8]=Rt,$[9]=Yt,$[10]=Ut,$[11]=Gt,$[12]=it*Be+ut*ze+Rt*Ye+he[12],$[13]=ft*Be+wt*ze+Yt*Ye+he[13],$[14]=ct*Be+pt*ze+Ut*Ye+he[14],$[15]=et*Be+_t*ze+Gt*Ye+he[15]),$}function m($,he,Ie){var Be=Ie[0],ze=Ie[1],Ye=Ie[2];return $[0]=he[0]*Be,$[1]=he[1]*Be,$[2]=he[2]*Be,$[3]=he[3]*Be,$[4]=he[4]*ze,$[5]=he[5]*ze,$[6]=he[6]*ze,$[7]=he[7]*ze,$[8]=he[8]*Ye,$[9]=he[9]*Ye,$[10]=he[10]*Ye,$[11]=he[11]*Ye,$[12]=he[12],$[13]=he[13],$[14]=he[14],$[15]=he[15],$}function v($,he,Ie,Be){var ze=Be[0],Ye=Be[1],it=Be[2],ft=Math.sqrt(ze*ze+Ye*Ye+it*it),ct,et,ut,wt,pt,_t,Rt,Yt,Ut,Gt,Kt,ln,pn,wn,Mn,Yn,di,Li,ke,Z,ne,V,re,ge;return ft<n.EPSILON?null:(ft=1/ft,ze*=ft,Ye*=ft,it*=ft,ct=Math.sin(Ie),et=Math.cos(Ie),ut=1-et,wt=he[0],pt=he[1],_t=he[2],Rt=he[3],Yt=he[4],Ut=he[5],Gt=he[6],Kt=he[7],ln=he[8],pn=he[9],wn=he[10],Mn=he[11],Yn=ze*ze*ut+et,di=Ye*ze*ut+it*ct,Li=it*ze*ut-Ye*ct,ke=ze*Ye*ut-it*ct,Z=Ye*Ye*ut+et,ne=it*Ye*ut+ze*ct,V=ze*it*ut+Ye*ct,re=Ye*it*ut-ze*ct,ge=it*it*ut+et,$[0]=wt*Yn+Yt*di+ln*Li,$[1]=pt*Yn+Ut*di+pn*Li,$[2]=_t*Yn+Gt*di+wn*Li,$[3]=Rt*Yn+Kt*di+Mn*Li,$[4]=wt*ke+Yt*Z+ln*ne,$[5]=pt*ke+Ut*Z+pn*ne,$[6]=_t*ke+Gt*Z+wn*ne,$[7]=Rt*ke+Kt*Z+Mn*ne,$[8]=wt*V+Yt*re+ln*ge,$[9]=pt*V+Ut*re+pn*ge,$[10]=_t*V+Gt*re+wn*ge,$[11]=Rt*V+Kt*re+Mn*ge,he!==$&&($[12]=he[12],$[13]=he[13],$[14]=he[14],$[15]=he[15]),$)}function y($,he,Ie){var Be=Math.sin(Ie),ze=Math.cos(Ie),Ye=he[4],it=he[5],ft=he[6],ct=he[7],et=he[8],ut=he[9],wt=he[10],pt=he[11];return he!==$&&($[0]=he[0],$[1]=he[1],$[2]=he[2],$[3]=he[3],$[12]=he[12],$[13]=he[13],$[14]=he[14],$[15]=he[15]),$[4]=Ye*ze+et*Be,$[5]=it*ze+ut*Be,$[6]=ft*ze+wt*Be,$[7]=ct*ze+pt*Be,$[8]=et*ze-Ye*Be,$[9]=ut*ze-it*Be,$[10]=wt*ze-ft*Be,$[11]=pt*ze-ct*Be,$}function b($,he,Ie){var Be=Math.sin(Ie),ze=Math.cos(Ie),Ye=he[0],it=he[1],ft=he[2],ct=he[3],et=he[8],ut=he[9],wt=he[10],pt=he[11];return he!==$&&($[4]=he[4],$[5]=he[5],$[6]=he[6],$[7]=he[7],$[12]=he[12],$[13]=he[13],$[14]=he[14],$[15]=he[15]),$[0]=Ye*ze-et*Be,$[1]=it*ze-ut*Be,$[2]=ft*ze-wt*Be,$[3]=ct*ze-pt*Be,$[8]=Ye*Be+et*ze,$[9]=it*Be+ut*ze,$[10]=ft*Be+wt*ze,$[11]=ct*Be+pt*ze,$}function w($,he,Ie){var Be=Math.sin(Ie),ze=Math.cos(Ie),Ye=he[0],it=he[1],ft=he[2],ct=he[3],et=he[4],ut=he[5],wt=he[6],pt=he[7];return he!==$&&($[8]=he[8],$[9]=he[9],$[10]=he[10],$[11]=he[11],$[12]=he[12],$[13]=he[13],$[14]=he[14],$[15]=he[15]),$[0]=Ye*ze+et*Be,$[1]=it*ze+ut*Be,$[2]=ft*ze+wt*Be,$[3]=ct*ze+pt*Be,$[4]=et*ze-Ye*Be,$[5]=ut*ze-it*Be,$[6]=wt*ze-ft*Be,$[7]=pt*ze-ct*Be,$}function E($,he){return $[0]=1,$[1]=0,$[2]=0,$[3]=0,$[4]=0,$[5]=1,$[6]=0,$[7]=0,$[8]=0,$[9]=0,$[10]=1,$[11]=0,$[12]=he[0],$[13]=he[1],$[14]=he[2],$[15]=1,$}function A($,he){return $[0]=he[0],$[1]=0,$[2]=0,$[3]=0,$[4]=0,$[5]=he[1],$[6]=0,$[7]=0,$[8]=0,$[9]=0,$[10]=he[2],$[11]=0,$[12]=0,$[13]=0,$[14]=0,$[15]=1,$}function D($,he,Ie){var Be=Ie[0],ze=Ie[1],Ye=Ie[2],it=Math.sqrt(Be*Be+ze*ze+Ye*Ye),ft,ct,et;return it<n.EPSILON?null:(it=1/it,Be*=it,ze*=it,Ye*=it,ft=Math.sin(he),ct=Math.cos(he),et=1-ct,$[0]=Be*Be*et+ct,$[1]=ze*Be*et+Ye*ft,$[2]=Ye*Be*et-ze*ft,$[3]=0,$[4]=Be*ze*et-Ye*ft,$[5]=ze*ze*et+ct,$[6]=Ye*ze*et+Be*ft,$[7]=0,$[8]=Be*Ye*et+ze*ft,$[9]=ze*Ye*et-Be*ft,$[10]=Ye*Ye*et+ct,$[11]=0,$[12]=0,$[13]=0,$[14]=0,$[15]=1,$)}function T($,he){var Ie=Math.sin(he),Be=Math.cos(he);return $[0]=1,$[1]=0,$[2]=0,$[3]=0,$[4]=0,$[5]=Be,$[6]=Ie,$[7]=0,$[8]=0,$[9]=-Ie,$[10]=Be,$[11]=0,$[12]=0,$[13]=0,$[14]=0,$[15]=1,$}function M($,he){var Ie=Math.sin(he),Be=Math.cos(he);return $[0]=Be,$[1]=0,$[2]=-Ie,$[3]=0,$[4]=0,$[5]=1,$[6]=0,$[7]=0,$[8]=Ie,$[9]=0,$[10]=Be,$[11]=0,$[12]=0,$[13]=0,$[14]=0,$[15]=1,$}function P($,he){var Ie=Math.sin(he),Be=Math.cos(he);return $[0]=Be,$[1]=Ie,$[2]=0,$[3]=0,$[4]=-Ie,$[5]=Be,$[6]=0,$[7]=0,$[8]=0,$[9]=0,$[10]=1,$[11]=0,$[12]=0,$[13]=0,$[14]=0,$[15]=1,$}function F($,he,Ie){var Be=he[0],ze=he[1],Ye=he[2],it=he[3],ft=Be+Be,ct=ze+ze,et=Ye+Ye,ut=Be*ft,wt=Be*ct,pt=Be*et,_t=ze*ct,Rt=ze*et,Yt=Ye*et,Ut=it*ft,Gt=it*ct,Kt=it*et;return $[0]=1-(_t+Yt),$[1]=wt+Kt,$[2]=pt-Gt,$[3]=0,$[4]=wt-Kt,$[5]=1-(ut+Yt),$[6]=Rt+Ut,$[7]=0,$[8]=pt+Gt,$[9]=Rt-Ut,$[10]=1-(ut+_t),$[11]=0,$[12]=Ie[0],$[13]=Ie[1],$[14]=Ie[2],$[15]=1,$}function N($,he){var Ie=new n.ARRAY_TYPE(3),Be=-he[0],ze=-he[1],Ye=-he[2],it=he[3],ft=he[4],ct=he[5],et=he[6],ut=he[7],wt=Be*Be+ze*ze+Ye*Ye+it*it;return wt>0?(Ie[0]=(ft*it+ut*Be+ct*Ye-et*ze)*2/wt,Ie[1]=(ct*it+ut*ze+et*Be-ft*Ye)*2/wt,Ie[2]=(et*it+ut*Ye+ft*ze-ct*Be)*2/wt):(Ie[0]=(ft*it+ut*Be+ct*Ye-et*ze)*2,Ie[1]=(ct*it+ut*ze+et*Be-ft*Ye)*2,Ie[2]=(et*it+ut*Ye+ft*ze-ct*Be)*2),F($,he,Ie),$}function j($,he){return $[0]=he[12],$[1]=he[13],$[2]=he[14],$}function W($,he){var Ie=he[0],Be=he[1],ze=he[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]=0,ze!=null&&ze!==1/0){var it=1/(Be-ze);$[10]=(ze+Be)*it,$[14]=2*ze*Be*it}else $[10]=-1,$[14]=-2*Be;return $}e.perspective=Y;function G($,he,Ie,Be,ze){var Ye=1/Math.tan(he/2);if($[0]=Ye/Ie,$[1]=0,$[2]=0,$[3]=0,$[4]=0,$[5]=Ye,$[6]=0,$[7]=0,$[8]=0,$[9]=0,$[11]=-1,$[12]=0,$[13]=0,$[15]=0,ze!=null&&ze!==1/0){var it=1/(Be-ze);$[10]=ze*it,$[14]=ze*Be*it}else $[10]=-1,$[14]=-Be;return $}function pe($,he,Ie,Be){var ze=Math.tan(he.upDegrees*Math.PI/180),Ye=Math.tan(he.downDegrees*Math.PI/180),it=Math.tan(he.leftDegrees*Math.PI/180),ft=Math.tan(he.rightDegrees*Math.PI/180),ct=2/(it+ft),et=2/(ze+Ye);return $[0]=ct,$[1]=0,$[2]=0,$[3]=0,$[4]=0,$[5]=et,$[6]=0,$[7]=0,$[8]=-((it-ft)*ct*.5),$[9]=(ze-Ye)*et*.5,$[10]=Be/(Ie-Be),$[11]=-1,$[12]=0,$[13]=0,$[14]=Be*Ie/(Ie-Be),$[15]=0,$}function U($,he,Ie,Be,ze,Ye,it){var ft=1/(he-Ie),ct=1/(Be-ze),et=1/(Ye-it);return $[0]=-2*ft,$[1]=0,$[2]=0,$[3]=0,$[4]=0,$[5]=-2*ct,$[6]=0,$[7]=0,$[8]=0,$[9]=0,$[10]=2*et,$[11]=0,$[12]=(he+Ie)*ft,$[13]=(ze+Be)*ct,$[14]=(it+Ye)*et,$[15]=1,$}e.ortho=U;function K($,he,Ie,Be,ze,Ye,it){var ft=1/(he-Ie),ct=1/(Be-ze),et=1/(Ye-it);return $[0]=-2*ft,$[1]=0,$[2]=0,$[3]=0,$[4]=0,$[5]=-2*ct,$[6]=0,$[7]=0,$[8]=0,$[9]=0,$[10]=et,$[11]=0,$[12]=(he+Ie)*ft,$[13]=(ze+Be)*ct,$[14]=Ye*et,$[15]=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3]=0,$[4]=wt*Ut-pt*Yt,$[5]=pt*Rt-ut*Ut,$[6]=ut*Yt-wt*Rt,$[7]=0,$[8]=ut,$[9]=wt,$[10]=pt,$[11]=0,$[12]=ze,$[13]=Ye,$[14]=it,$[15]=1,$}function de($){return"mat4("+$[0]+", "+$[1]+", "+$[2]+", "+$[3]+", "+$[4]+", "+$[5]+", "+$[6]+", "+$[7]+", "+$[8]+", "+$[9]+", "+$[10]+", "+$[11]+", "+$[12]+", "+$[13]+", "+$[14]+", "+$[15]+")"}function oe($){return Math.sqrt($[0]*$[0]+$[1]*$[1]+$[2]*$[2]+$[3]*$[3]+$[4]*$[4]+$[5]*$[5]+$[6]*$[6]+$[7]*$[7]+$[8]*$[8]+$[9]*$[9]+$[10]*$[10]+$[11]*$[11]+$[12]*$[12]+$[13]*$[13]+$[14]*$[14]+$[15]*$[15])}function me($,he,Ie){return $[0]=he[0]+Ie[0],$[1]=he[1]+Ie[1],$[2]=he[2]+Ie[2],$[3]=he[3]+Ie[3],$[4]=he[4]+Ie[4],$[5]=he[5]+Ie[5],$[6]=he[6]+Ie[6],$[7]=he[7]+Ie[7],$[8]=he[8]+Ie[8],$[9]=he[9]+Ie[9],$[10]=he[10]+Ie[10],$[11]=he[11]+Ie[11],$[12]=he[12]+Ie[12],$[13]=he[13]+Ie[13],$[14]=he[14]+Ie[14],$[15]=he[15]+Ie[15],$}function Ce($,he,Ie){return $[0]=he[0]-Ie[0],$[1]=he[1]-Ie[1],$[2]=he[2]-Ie[2],$[3]=he[3]-Ie[3],$[4]=he[4]-Ie[4],$[5]=he[5]-Ie[5],$[6]=he[6]-Ie[6],$[7]=he[7]-Ie[7],$[8]=he[8]-Ie[8],$[9]=he[9]-Ie[9],$[10]=he[10]-Ie[10],$[11]=he[11]-Ie[11],$[12]=he[12]-Ie[12],$[13]=he[13]-Ie[13],$[14]=he[14]-Ie[14],$[15]=he[15]-Ie[15],$}function Se($,he,Ie){return $[0]=he[0]*Ie,$[1]=he[1]*Ie,$[2]=he[2]*Ie,$[3]=he[3]*Ie,$[4]=he[4]*Ie,$[5]=he[5]*Ie,$[6]=he[6]*Ie,$[7]=he[7]*Ie,$[8]=he[8]*Ie,$[9]=he[9]*Ie,$[10]=he[10]*Ie,$[11]=he[11]*Ie,$[12]=he[12]*Ie,$[13]=he[13]*Ie,$[14]=he[14]*Ie,$[15]=he[15]*Ie,$}function De($,he,Ie,Be){return $[0]=he[0]+Ie[0]*Be,$[1]=he[1]+Ie[1]*Be,$[2]=he[2]+Ie[2]*Be,$[3]=he[3]+Ie[3]*Be,$[4]=he[4]+Ie[4]*Be,$[5]=he[5]+Ie[5]*Be,$[6]=he[6]+Ie[6]*Be,$[7]=he[7]+Ie[7]*Be,$[8]=he[8]+Ie[8]*Be,$[9]=he[9]+Ie[9]*Be,$[10]=he[10]+Ie[10]*Be,$[11]=he[11]+Ie[11]*Be,$[12]=he[12]+Ie[12]*Be,$[13]=he[13]+Ie[13]*Be,$[14]=he[14]+Ie[14]*Be,$[15]=he[15]+Ie[15]*Be,$}function Me($,he){return $[0]===he[0]&&$[1]===he[1]&&$[2]===he[2]&&$[3]===he[3]&&$[4]===he[4]&&$[5]===he[5]&&$[6]===he[6]&&$[7]===he[7]&&$[8]===he[8]&&$[9]===he[9]&&$[10]===he[10]&&$[11]===he[11]&&$[12]===he[12]&&$[13]===he[13]&&$[14]===he[14]&&$[15]===he[15]}function qe($,he){var Ie=$[0],Be=$[1],ze=$[2],Ye=$[3],it=$[4],ft=$[5],ct=$[6],et=$[7],ut=$[8],wt=$[9],pt=$[10],_t=$[11],Rt=$[12],Yt=$[13],Ut=$[14],Gt=$[15],Kt=he[0],ln=he[1],pn=he[2],wn=he[3],Mn=he[4],Yn=he[5],di=he[6],Li=he[7],ke=he[8],Z=he[9],ne=he[10],V=he[11],re=he[12],ge=he[13],we=he[14],ve=he[15];return Math.abs(Ie-Kt)<=n.EPSILON*Math.max(1,Math.abs(Ie),Math.abs(Kt))&&Math.abs(Be-ln)<=n.EPSILON*Math.max(1,Math.abs(Be),Math.abs(ln))&&Math.abs(ze-pn)<=n.EPSILON*Math.max(1,Math.abs(ze),Math.abs(pn))&&Math.abs(Ye-wn)<=n.EPSILON*Math.max(1,Math.abs(Ye),Math.abs(wn))&&Math.abs(it-Mn)<=n.EPSILON*Math.max(1,Math.abs(it),Math.abs(Mn))&&Math.abs(ft-Yn)<=n.EPSILON*Math.max(1,Math.abs(ft),Math.abs(Yn))&&Math.abs(ct-di)<=n.EPSILON*Math.max(1,Math.abs(ct),Math.abs(di))&&Math.abs(et-Li)<=n.EPSILON*Math.max(1,Math.abs(et),Math.abs(Li))&&Math.abs(ut-ke)<=n.EPSILON*Math.max(1,Math.abs(ut),Math.abs(ke))&&Math.abs(wt-Z)<=n.EPSILON*Math.max(1,Math.abs(wt),Math.abs(Z))&&Math.abs(pt-ne)<=n.EPSILON*Math.max(1,Math.abs(pt),Math.abs(ne))&&Math.abs(_t-V)<=n.EPSILON*Math.max(1,Math.abs(_t),Math.abs(V))&&Math.abs(Rt-re)<=n.EPSILON*Math.max(1,Math.abs(Rt),Math.abs(re))&&Math.abs(Yt-ge)<=n.EPSILON*Math.max(1,Math.abs(Yt),Math.abs(ge))&&Math.abs(Ut-we)<=n.EPSILON*Math.max(1,Math.abs(Ut),Math.abs(we))&&Math.abs(Gt-ve)<=n.EPSILON*Math.max(1,Math.abs(Gt),Math.abs(ve))}e.mul=p,e.sub=Ce}}),$8t=Ot({"../node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/cjs/vec3.js"(e){function t(oe){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(me){return typeof me}:function(me){return me&&typeof Symbol=="function"&&me.constructor===Symbol&&me!==Symbol.prototype?"symbol":typeof me},t(oe)}Object.defineProperty(e,"__esModule",{value:!0}),e.add=u,e.angle=U,e.bezier=ee,e.ceil=p,e.clone=o,e.copy=l,e.create=r,e.cross=N,e.dist=void 0,e.distance=E,e.div=void 0,e.divide=f,e.dot=F,e.equals=de,e.exactEquals=ce,e.floor=g,e.forEach=void 0,e.fromValues=a,e.hermite=J,e.inverse=M,e.len=void 0,e.length=s,e.lerp=j,e.max=v,e.min=m,e.mul=void 0,e.multiply=h,e.negate=T,e.normalize=P,e.random=Q,e.rotateX=Y,e.rotateY=G,e.rotateZ=pe,e.round=y,e.scale=b,e.scaleAndAdd=w,e.set=c,e.slerp=W,e.sqrLen=e.sqrDist=void 0,e.squaredDistance=A,e.squaredLength=D,e.str=ie,e.sub=void 0,e.subtract=d,e.transformMat3=q,e.transformMat4=H,e.transformQuat=le,e.zero=K;var n=i(yE());function i(oe,me){if(typeof WeakMap=="function")var Ce=new WeakMap,Se=new WeakMap;return(i=function(Me,qe){if(!qe&&Me&&Me.__esModule)return Me;var $,he,Ie={__proto__:null,default:Me};if(Me===null||t(Me)!="object"&&typeof Me!="function")return Ie;if($=qe?Se:Ce){if($.has(Me))return $.get(Me);$.set(Me,Ie)}for(var Be in Me)Be!=="default"&&{}.hasOwnProperty.call(Me,Be)&&((he=($=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Me,Be))&&(he.get||he.set)?$(Ie,Be,he):Ie[Be]=Me[Be]);return Ie})(oe,me)}function r(){var oe=new n.ARRAY_TYPE(3);return n.ARRAY_TYPE!=Float32Array&&(oe[0]=0,oe[1]=0,oe[2]=0),oe}function o(oe){var me=new n.ARRAY_TYPE(3);return me[0]=oe[0],me[1]=oe[1],me[2]=oe[2],me}function s(oe){var me=oe[0],Ce=oe[1],Se=oe[2];return Math.sqrt(me*me+Ce*Ce+Se*Se)}function a(oe,me,Ce){var Se=new n.ARRAY_TYPE(3);return Se[0]=oe,Se[1]=me,Se[2]=Ce,Se}function l(oe,me){return oe[0]=me[0],oe[1]=me[1],oe[2]=me[2],oe}function c(oe,me,Ce,Se){return oe[0]=me,oe[1]=Ce,oe[2]=Se,oe}function u(oe,me,Ce){return oe[0]=me[0]+Ce[0],oe[1]=me[1]+Ce[1],oe[2]=me[2]+Ce[2],oe}function d(oe,me,Ce){return oe[0]=me[0]-Ce[0],oe[1]=me[1]-Ce[1],oe[2]=me[2]-Ce[2],oe}function h(oe,me,Ce){return oe[0]=me[0]*Ce[0],oe[1]=me[1]*Ce[1],oe[2]=me[2]*Ce[2],oe}function f(oe,me,Ce){return oe[0]=me[0]/Ce[0],oe[1]=me[1]/Ce[1],oe[2]=me[2]/Ce[2],oe}function p(oe,me){return oe[0]=Math.ceil(me[0]),oe[1]=Math.ceil(me[1]),oe[2]=Math.ceil(me[2]),oe}function g(oe,me){return oe[0]=Math.floor(me[0]),oe[1]=Math.floor(me[1]),oe[2]=Math.floor(me[2]),oe}function m(oe,me,Ce){return oe[0]=Math.min(me[0],Ce[0]),oe[1]=Math.min(me[1],Ce[1]),oe[2]=Math.min(me[2],Ce[2]),oe}function v(oe,me,Ce){return oe[0]=Math.max(me[0],Ce[0]),oe[1]=Math.max(me[1],Ce[1]),oe[2]=Math.max(me[2],Ce[2]),oe}function y(oe,me){return oe[0]=n.round(me[0]),oe[1]=n.round(me[1]),oe[2]=n.round(me[2]),oe}function b(oe,me,Ce){return oe[0]=me[0]*Ce,oe[1]=me[1]*Ce,oe[2]=me[2]*Ce,oe}function w(oe,me,Ce,Se){return oe[0]=me[0]+Ce[0]*Se,oe[1]=me[1]+Ce[1]*Se,oe[2]=me[2]+Ce[2]*Se,oe}function E(oe,me){var Ce=me[0]-oe[0],Se=me[1]-oe[1],De=me[2]-oe[2];return Math.sqrt(Ce*Ce+Se*Se+De*De)}function A(oe,me){var Ce=me[0]-oe[0],Se=me[1]-oe[1],De=me[2]-oe[2];return Ce*Ce+Se*Se+De*De}function D(oe){var me=oe[0],Ce=oe[1],Se=oe[2];return me*me+Ce*Ce+Se*Se}function T(oe,me){return oe[0]=-me[0],oe[1]=-me[1],oe[2]=-me[2],oe}function M(oe,me){return oe[0]=1/me[0],oe[1]=1/me[1],oe[2]=1/me[2],oe}function P(oe,me){var Ce=me[0],Se=me[1],De=me[2],Me=Ce*Ce+Se*Se+De*De;return Me>0&&(Me=1/Math.sqrt(Me)),oe[0]=me[0]*Me,oe[1]=me[1]*Me,oe[2]=me[2]*Me,oe}function F(oe,me){return oe[0]*me[0]+oe[1]*me[1]+oe[2]*me[2]}function N(oe,me,Ce){var Se=me[0],De=me[1],Me=me[2],qe=Ce[0],$=Ce[1],he=Ce[2];return oe[0]=De*he-Me*$,oe[1]=Me*qe-Se*he,oe[2]=Se*$-De*qe,oe}function j(oe,me,Ce,Se){var De=me[0],Me=me[1],qe=me[2];return oe[0]=De+Se*(Ce[0]-De),oe[1]=Me+Se*(Ce[1]-Me),oe[2]=qe+Se*(Ce[2]-qe),oe}function W(oe,me,Ce,Se){var De=Math.acos(Math.min(Math.max(F(me,Ce),-1),1)),Me=Math.sin(De),qe=Math.sin((1-Se)*De)/Me,$=Math.sin(Se*De)/Me;return oe[0]=qe*me[0]+$*Ce[0],oe[1]=qe*me[1]+$*Ce[1],oe[2]=qe*me[2]+$*Ce[2],oe}function J(oe,me,Ce,Se,De,Me){var qe=Me*Me,$=qe*(2*Me-3)+1,he=qe*(Me-2)+Me,Ie=qe*(Me-1),Be=qe*(3-2*Me);return oe[0]=me[0]*$+Ce[0]*he+Se[0]*Ie+De[0]*Be,oe[1]=me[1]*$+Ce[1]*he+Se[1]*Ie+De[1]*Be,oe[2]=me[2]*$+Ce[2]*he+Se[2]*Ie+De[2]*Be,oe}function ee(oe,me,Ce,Se,De,Me){var qe=1-Me,$=qe*qe,he=Me*Me,Ie=$*qe,Be=3*Me*$,ze=3*he*qe,Ye=he*Me;return oe[0]=me[0]*Ie+Ce[0]*Be+Se[0]*ze+De[0]*Ye,oe[1]=me[1]*Ie+Ce[1]*Be+Se[1]*ze+De[1]*Ye,oe[2]=me[2]*Ie+Ce[2]*Be+Se[2]*ze+De[2]*Ye,oe}function Q(oe,me){me=me===void 0?1:me;var Ce=n.RANDOM()*2*Math.PI,Se=n.RANDOM()*2-1,De=Math.sqrt(1-Se*Se)*me;return oe[0]=Math.cos(Ce)*De,oe[1]=Math.sin(Ce)*De,oe[2]=Se*me,oe}function H(oe,me,Ce){var Se=me[0],De=me[1],Me=me[2],qe=Ce[3]*Se+Ce[7]*De+Ce[11]*Me+Ce[15];return qe=qe||1,oe[0]=(Ce[0]*Se+Ce[4]*De+Ce[8]*Me+Ce[12])/qe,oe[1]=(Ce[1]*Se+Ce[5]*De+Ce[9]*Me+Ce[13])/qe,oe[2]=(Ce[2]*Se+Ce[6]*De+Ce[10]*Me+Ce[14])/qe,oe}function q(oe,me,Ce){var Se=me[0],De=me[1],Me=me[2];return oe[0]=Se*Ce[0]+De*Ce[3]+Me*Ce[6],oe[1]=Se*Ce[1]+De*Ce[4]+Me*Ce[7],oe[2]=Se*Ce[2]+De*Ce[5]+Me*Ce[8],oe}function le(oe,me,Ce){var Se=Ce[0],De=Ce[1],Me=Ce[2],qe=Ce[3],$=me[0],he=me[1],Ie=me[2],Be=De*Ie-Me*he,ze=Me*$-Se*Ie,Ye=Se*he-De*$;return Be=Be+Be,ze=ze+ze,Ye=Ye+Ye,oe[0]=$+qe*Be+De*Ye-Me*ze,oe[1]=he+qe*ze+Me*Be-Se*Ye,oe[2]=Ie+qe*Ye+Se*ze-De*Be,oe}function Y(oe,me,Ce,Se){var De=[],Me=[];return De[0]=me[0]-Ce[0],De[1]=me[1]-Ce[1],De[2]=me[2]-Ce[2],Me[0]=De[0],Me[1]=De[1]*Math.cos(Se)-De[2]*Math.sin(Se),Me[2]=De[1]*Math.sin(Se)+De[2]*Math.cos(Se),oe[0]=Me[0]+Ce[0],oe[1]=Me[1]+Ce[1],oe[2]=Me[2]+Ce[2],oe}function G(oe,me,Ce,Se){var De=[],Me=[];return De[0]=me[0]-Ce[0],De[1]=me[1]-Ce[1],De[2]=me[2]-Ce[2],Me[0]=De[2]*Math.sin(Se)+De[0]*Math.cos(Se),Me[1]=De[1],Me[2]=De[2]*Math.cos(Se)-De[0]*Math.sin(Se),oe[0]=Me[0]+Ce[0],oe[1]=Me[1]+Ce[1],oe[2]=Me[2]+Ce[2],oe}function pe(oe,me,Ce,Se){var De=[],Me=[];return De[0]=me[0]-Ce[0],De[1]=me[1]-Ce[1],De[2]=me[2]-Ce[2],Me[0]=De[0]*Math.cos(Se)-De[1]*Math.sin(Se),Me[1]=De[0]*Math.sin(Se)+De[1]*Math.cos(Se),Me[2]=De[2],oe[0]=Me[0]+Ce[0],oe[1]=Me[1]+Ce[1],oe[2]=Me[2]+Ce[2],oe}function U(oe,me){var Ce=oe[0],Se=oe[1],De=oe[2],Me=me[0],qe=me[1],$=me[2],he=Math.sqrt((Ce*Ce+Se*Se+De*De)*(Me*Me+qe*qe+$*$)),Ie=he&&F(oe,me)/he;return Math.acos(Math.min(Math.max(Ie,-1),1))}function K(oe){return oe[0]=0,oe[1]=0,oe[2]=0,oe}function ie(oe){return"vec3("+oe[0]+", "+oe[1]+", "+oe[2]+")"}function ce(oe,me){return oe[0]===me[0]&&oe[1]===me[1]&&oe[2]===me[2]}function de(oe,me){var Ce=oe[0],Se=oe[1],De=oe[2],Me=me[0],qe=me[1],$=me[2];return Math.abs(Ce-Me)<=n.EPSILON*Math.max(1,Math.abs(Ce),Math.abs(Me))&&Math.abs(Se-qe)<=n.EPSILON*Math.max(1,Math.abs(Se),Math.abs(qe))&&Math.abs(De-$)<=n.EPSILON*Math.max(1,Math.abs(De),Math.abs($))}e.sub=d,e.mul=h,e.div=f,e.dist=E,e.sqrDist=A,e.len=s,e.sqrLen=D,e.forEach=(function(){var oe=r();return function(me,Ce,Se,De,Me,qe){var $,he;for(Ce||(Ce=3),Se||(Se=0),De?he=Math.min(De*Ce+Se,me.length):he=me.length,$=Se;$<he;$+=Ce)oe[0]=me[$],oe[1]=me[$+1],oe[2]=me[$+2],Me(oe,oe,qe),me[$]=oe[0],me[$+1]=oe[1],me[$+2]=oe[2];return me}})()}}),q8t=Ot({"../node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/cjs/vec4.js"(e){function t(Y){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},t(Y)}Object.defineProperty(e,"__esModule",{value:!0}),e.add=c,e.ceil=f,e.clone=o,e.copy=a,e.create=r,e.cross=N,e.dist=void 0,e.distance=w,e.div=void 0,e.divide=h,e.dot=F,e.equals=le,e.exactEquals=q,e.floor=p,e.forEach=void 0,e.fromValues=s,e.inverse=M,e.len=void 0,e.length=A,e.lerp=j,e.max=m,e.min=g,e.mul=void 0,e.multiply=d,e.negate=T,e.normalize=P,e.random=W,e.round=v,e.scale=y,e.scaleAndAdd=b,e.set=l,e.sqrLen=e.sqrDist=void 0,e.squaredDistance=E,e.squaredLength=D,e.str=H,e.sub=void 0,e.subtract=u,e.transformMat4=J,e.transformQuat=ee,e.zero=Q;var n=i(yE());function i(Y,G){if(typeof WeakMap=="function")var pe=new WeakMap,U=new WeakMap;return(i=function(ie,ce){if(!ce&&ie&&ie.__esModule)return ie;var de,oe,me={__proto__:null,default:ie};if(ie===null||t(ie)!="object"&&typeof ie!="function")return me;if(de=ce?U:pe){if(de.has(ie))return de.get(ie);de.set(ie,me)}for(var Ce in ie)Ce!=="default"&&{}.hasOwnProperty.call(ie,Ce)&&((oe=(de=Object.defineProperty)&&Object.getOwnPropertyDescriptor(ie,Ce))&&(oe.get||oe.set)?de(me,Ce,oe):me[Ce]=ie[Ce]);return me})(Y,G)}function r(){var Y=new n.ARRAY_TYPE(4);return n.ARRAY_TYPE!=Float32Array&&(Y[0]=0,Y[1]=0,Y[2]=0,Y[3]=0),Y}function o(Y){var G=new n.ARRAY_TYPE(4);return G[0]=Y[0],G[1]=Y[1],G[2]=Y[2],G[3]=Y[3],G}function s(Y,G,pe,U){var K=new n.ARRAY_TYPE(4);return K[0]=Y,K[1]=G,K[2]=pe,K[3]=U,K}function a(Y,G){return Y[0]=G[0],Y[1]=G[1],Y[2]=G[2],Y[3]=G[3],Y}function l(Y,G,pe,U,K){return Y[0]=G,Y[1]=pe,Y[2]=U,Y[3]=K,Y}function c(Y,G,pe){return Y[0]=G[0]+pe[0],Y[1]=G[1]+pe[1],Y[2]=G[2]+pe[2],Y[3]=G[3]+pe[3],Y}function u(Y,G,pe){return Y[0]=G[0]-pe[0],Y[1]=G[1]-pe[1],Y[2]=G[2]-pe[2],Y[3]=G[3]-pe[3],Y}function d(Y,G,pe){return Y[0]=G[0]*pe[0],Y[1]=G[1]*pe[1],Y[2]=G[2]*pe[2],Y[3]=G[3]*pe[3],Y}function h(Y,G,pe){return Y[0]=G[0]/pe[0],Y[1]=G[1]/pe[1],Y[2]=G[2]/pe[2],Y[3]=G[3]/pe[3],Y}function f(Y,G){return Y[0]=Math.ceil(G[0]),Y[1]=Math.ceil(G[1]),Y[2]=Math.ceil(G[2]),Y[3]=Math.ceil(G[3]),Y}function p(Y,G){return Y[0]=Math.floor(G[0]),Y[1]=Math.floor(G[1]),Y[2]=Math.floor(G[2]),Y[3]=Math.floor(G[3]),Y}function g(Y,G,pe){return Y[0]=Math.min(G[0],pe[0]),Y[1]=Math.min(G[1],pe[1]),Y[2]=Math.min(G[2],pe[2]),Y[3]=Math.min(G[3],pe[3]),Y}function m(Y,G,pe){return Y[0]=Math.max(G[0],pe[0]),Y[1]=Math.max(G[1],pe[1]),Y[2]=Math.max(G[2],pe[2]),Y[3]=Math.max(G[3],pe[3]),Y}function v(Y,G){return Y[0]=n.round(G[0]),Y[1]=n.round(G[1]),Y[2]=n.round(G[2]),Y[3]=n.round(G[3]),Y}function y(Y,G,pe){return Y[0]=G[0]*pe,Y[1]=G[1]*pe,Y[2]=G[2]*pe,Y[3]=G[3]*pe,Y}function b(Y,G,pe,U){return Y[0]=G[0]+pe[0]*U,Y[1]=G[1]+pe[1]*U,Y[2]=G[2]+pe[2]*U,Y[3]=G[3]+pe[3]*U,Y}function w(Y,G){var pe=G[0]-Y[0],U=G[1]-Y[1],K=G[2]-Y[2],ie=G[3]-Y[3];return Math.sqrt(pe*pe+U*U+K*K+ie*ie)}function E(Y,G){var pe=G[0]-Y[0],U=G[1]-Y[1],K=G[2]-Y[2],ie=G[3]-Y[3];return pe*pe+U*U+K*K+ie*ie}function A(Y){var G=Y[0],pe=Y[1],U=Y[2],K=Y[3];return Math.sqrt(G*G+pe*pe+U*U+K*K)}function D(Y){var G=Y[0],pe=Y[1],U=Y[2],K=Y[3];return G*G+pe*pe+U*U+K*K}function T(Y,G){return Y[0]=-G[0],Y[1]=-G[1],Y[2]=-G[2],Y[3]=-G[3],Y}function M(Y,G){return Y[0]=1/G[0],Y[1]=1/G[1],Y[2]=1/G[2],Y[3]=1/G[3],Y}function P(Y,G){var pe=G[0],U=G[1],K=G[2],ie=G[3],ce=pe*pe+U*U+K*K+ie*ie;return ce>0&&(ce=1/Math.sqrt(ce)),Y[0]=pe*ce,Y[1]=U*ce,Y[2]=K*ce,Y[3]=ie*ce,Y}function F(Y,G){return Y[0]*G[0]+Y[1]*G[1]+Y[2]*G[2]+Y[3]*G[3]}function N(Y,G,pe,U){var K=pe[0]*U[1]-pe[1]*U[0],ie=pe[0]*U[2]-pe[2]*U[0],ce=pe[0]*U[3]-pe[3]*U[0],de=pe[1]*U[2]-pe[2]*U[1],oe=pe[1]*U[3]-pe[3]*U[1],me=pe[2]*U[3]-pe[3]*U[2],Ce=G[0],Se=G[1],De=G[2],Me=G[3];return Y[0]=Se*me-De*oe+Me*de,Y[1]=-(Ce*me)+De*ce-Me*ie,Y[2]=Ce*oe-Se*ce+Me*K,Y[3]=-(Ce*de)+Se*ie-De*K,Y}function j(Y,G,pe,U){var K=G[0],ie=G[1],ce=G[2],de=G[3];return Y[0]=K+U*(pe[0]-K),Y[1]=ie+U*(pe[1]-ie),Y[2]=ce+U*(pe[2]-ce),Y[3]=de+U*(pe[3]-de),Y}function W(Y,G){G=G===void 0?1:G;var pe,U,K,ie,ce,de,oe;oe=n.RANDOM(),pe=oe*2-1,U=(4*n.RANDOM()-2)*Math.sqrt(oe*-oe+oe),ce=pe*pe+U*U,oe=n.RANDOM(),K=oe*2-1,ie=(4*n.RANDOM()-2)*Math.sqrt(oe*-oe+oe),de=K*K+ie*ie;var me=Math.sqrt((1-ce)/de);return Y[0]=G*pe,Y[1]=G*U,Y[2]=G*K*me,Y[3]=G*ie*me,Y}function J(Y,G,pe){var U=G[0],K=G[1],ie=G[2],ce=G[3];return Y[0]=pe[0]*U+pe[4]*K+pe[8]*ie+pe[12]*ce,Y[1]=pe[1]*U+pe[5]*K+pe[9]*ie+pe[13]*ce,Y[2]=pe[2]*U+pe[6]*K+pe[10]*ie+pe[14]*ce,Y[3]=pe[3]*U+pe[7]*K+pe[11]*ie+pe[15]*ce,Y}function ee(Y,G,pe){var U=pe[0],K=pe[1],ie=pe[2],ce=pe[3],de=G[0],oe=G[1],me=G[2],Ce=K*me-ie*oe,Se=ie*de-U*me,De=U*oe-K*de;return Ce=Ce+Ce,Se=Se+Se,De=De+De,Y[0]=de+ce*Ce+K*De-ie*Se,Y[1]=oe+ce*Se+ie*Ce-U*De,Y[2]=me+ce*De+U*Se-K*Ce,Y[3]=G[3],Y}function Q(Y){return Y[0]=0,Y[1]=0,Y[2]=0,Y[3]=0,Y}function H(Y){return"vec4("+Y[0]+", "+Y[1]+", "+Y[2]+", "+Y[3]+")"}function q(Y,G){return Y[0]===G[0]&&Y[1]===G[1]&&Y[2]===G[2]&&Y[3]===G[3]}function le(Y,G){var pe=Y[0],U=Y[1],K=Y[2],ie=Y[3],ce=G[0],de=G[1],oe=G[2],me=G[3];return Math.abs(pe-ce)<=n.EPSILON*Math.max(1,Math.abs(pe),Math.abs(ce))&&Math.abs(U-de)<=n.EPSILON*Math.max(1,Math.abs(U),Math.abs(de))&&Math.abs(K-oe)<=n.EPSILON*Math.max(1,Math.abs(K),Math.abs(oe))&&Math.abs(ie-me)<=n.EPSILON*Math.max(1,Math.abs(ie),Math.abs(me))}e.sub=u,e.mul=d,e.div=h,e.dist=w,e.sqrDist=E,e.len=A,e.sqrLen=D,e.forEach=(function(){var Y=r();return function(G,pe,U,K,ie,ce){var de,oe;for(pe||(pe=4),U||(U=0),K?oe=Math.min(K*pe+U,G.length):oe=G.length,de=U;de<oe;de+=pe)Y[0]=G[de],Y[1]=G[de+1],Y[2]=G[de+2],Y[3]=G[de+3],ie(Y,Y,ce),G[de]=Y[0],G[de+1]=Y[1],G[de+2]=Y[2],G[de+3]=Y[3];return G}})()}}),G8t=Ot({"../node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/cjs/quat.js"(e){function t(Q){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},t(Q)}Object.defineProperty(e,"__esModule",{value:!0}),e.add=void 0,e.calculateW=m,e.clone=void 0,e.conjugate=D,e.copy=void 0,e.create=a,e.dot=void 0,e.equals=ee,e.exactEquals=void 0,e.exp=v,e.fromEuler=M,e.fromMat3=T,e.fromValues=void 0,e.getAngle=d,e.getAxisAngle=u,e.identity=l,e.invert=A,e.lerp=e.length=e.len=void 0,e.ln=y,e.mul=void 0,e.multiply=h,e.normalize=void 0,e.pow=b,e.random=E,e.rotateX=f,e.rotateY=p,e.rotateZ=g,e.setAxes=e.set=e.scale=e.rotationTo=void 0,e.setAxisAngle=c,e.slerp=w,e.squaredLength=e.sqrLen=e.sqlerp=void 0,e.str=P;var n=s(yE()),i=s(W8t()),r=s($8t()),o=s(q8t());function s(Q,H){if(typeof WeakMap=="function")var q=new WeakMap,le=new WeakMap;return(s=function(G,pe){if(!pe&&G&&G.__esModule)return G;var U,K,ie={__proto__:null,default:G};if(G===null||t(G)!="object"&&typeof G!="function")return ie;if(U=pe?le:q){if(U.has(G))return U.get(G);U.set(G,ie)}for(var ce in G)ce!=="default"&&{}.hasOwnProperty.call(G,ce)&&((K=(U=Object.defineProperty)&&Object.getOwnPropertyDescriptor(G,ce))&&(K.get||K.set)?U(ie,ce,K):ie[ce]=G[ce]);return ie})(Q,H)}function a(){var Q=new n.ARRAY_TYPE(4);return n.ARRAY_TYPE!=Float32Array&&(Q[0]=0,Q[1]=0,Q[2]=0),Q[3]=1,Q}function l(Q){return Q[0]=0,Q[1]=0,Q[2]=0,Q[3]=1,Q}function c(Q,H,q){q=q*.5;var le=Math.sin(q);return Q[0]=le*H[0],Q[1]=le*H[1],Q[2]=le*H[2],Q[3]=Math.cos(q),Q}function u(Q,H){var q=Math.acos(H[3])*2,le=Math.sin(q/2);return le>n.EPSILON?(Q[0]=H[0]/le,Q[1]=H[1]/le,Q[2]=H[2]/le):(Q[0]=1,Q[1]=0,Q[2]=0),q}function d(Q,H){var q=N(Q,H);return Math.acos(2*q*q-1)}function h(Q,H,q){var le=H[0],Y=H[1],G=H[2],pe=H[3],U=q[0],K=q[1],ie=q[2],ce=q[3];return Q[0]=le*ce+pe*U+Y*ie-G*K,Q[1]=Y*ce+pe*K+G*U-le*ie,Q[2]=G*ce+pe*ie+le*K-Y*U,Q[3]=pe*ce-le*U-Y*K-G*ie,Q}function f(Q,H,q){q*=.5;var le=H[0],Y=H[1],G=H[2],pe=H[3],U=Math.sin(q),K=Math.cos(q);return Q[0]=le*K+pe*U,Q[1]=Y*K+G*U,Q[2]=G*K-Y*U,Q[3]=pe*K-le*U,Q}function p(Q,H,q){q*=.5;var le=H[0],Y=H[1],G=H[2],pe=H[3],U=Math.sin(q),K=Math.cos(q);return Q[0]=le*K-G*U,Q[1]=Y*K+pe*U,Q[2]=G*K+le*U,Q[3]=pe*K-Y*U,Q}function g(Q,H,q){q*=.5;var le=H[0],Y=H[1],G=H[2],pe=H[3],U=Math.sin(q),K=Math.cos(q);return Q[0]=le*K+Y*U,Q[1]=Y*K-le*U,Q[2]=G*K+pe*U,Q[3]=pe*K-G*U,Q}function m(Q,H){var q=H[0],le=H[1],Y=H[2];return Q[0]=q,Q[1]=le,Q[2]=Y,Q[3]=Math.sqrt(Math.abs(1-q*q-le*le-Y*Y)),Q}function v(Q,H){var q=H[0],le=H[1],Y=H[2],G=H[3],pe=Math.sqrt(q*q+le*le+Y*Y),U=Math.exp(G),K=pe>0?U*Math.sin(pe)/pe:0;return Q[0]=q*K,Q[1]=le*K,Q[2]=Y*K,Q[3]=U*Math.cos(pe),Q}function y(Q,H){var q=H[0],le=H[1],Y=H[2],G=H[3],pe=Math.sqrt(q*q+le*le+Y*Y),U=pe>0?Math.atan2(pe,G)/pe:0;return Q[0]=q*U,Q[1]=le*U,Q[2]=Y*U,Q[3]=.5*Math.log(q*q+le*le+Y*Y+G*G),Q}function b(Q,H,q){return y(Q,H),F(Q,Q,q),v(Q,Q),Q}function w(Q,H,q,le){var Y=H[0],G=H[1],pe=H[2],U=H[3],K=q[0],ie=q[1],ce=q[2],de=q[3],oe,me,Ce,Se,De;return me=Y*K+G*ie+pe*ce+U*de,me<0&&(me=-me,K=-K,ie=-ie,ce=-ce,de=-de),1-me>n.EPSILON?(oe=Math.acos(me),Ce=Math.sin(oe),Se=Math.sin((1-le)*oe)/Ce,De=Math.sin(le*oe)/Ce):(Se=1-le,De=le),Q[0]=Se*Y+De*K,Q[1]=Se*G+De*ie,Q[2]=Se*pe+De*ce,Q[3]=Se*U+De*de,Q}function E(Q){var H=n.RANDOM(),q=n.RANDOM(),le=n.RANDOM(),Y=Math.sqrt(1-H),G=Math.sqrt(H);return Q[0]=Y*Math.sin(2*Math.PI*q),Q[1]=Y*Math.cos(2*Math.PI*q),Q[2]=G*Math.sin(2*Math.PI*le),Q[3]=G*Math.cos(2*Math.PI*le),Q}function A(Q,H){var q=H[0],le=H[1],Y=H[2],G=H[3],pe=q*q+le*le+Y*Y+G*G,U=pe?1/pe:0;return Q[0]=-q*U,Q[1]=-le*U,Q[2]=-Y*U,Q[3]=G*U,Q}function D(Q,H){return Q[0]=-H[0],Q[1]=-H[1],Q[2]=-H[2],Q[3]=H[3],Q}function T(Q,H){var q=H[0]+H[4]+H[8],le;if(q>0)le=Math.sqrt(q+1),Q[3]=.5*le,le=.5/le,Q[0]=(H[5]-H[7])*le,Q[1]=(H[6]-H[2])*le,Q[2]=(H[1]-H[3])*le;else{var Y=0;H[4]>H[0]&&(Y=1),H[8]>H[Y*3+Y]&&(Y=2);var G=(Y+1)%3,pe=(Y+2)%3;le=Math.sqrt(H[Y*3+Y]-H[G*3+G]-H[pe*3+pe]+1),Q[Y]=.5*le,le=.5/le,Q[3]=(H[G*3+pe]-H[pe*3+G])*le,Q[G]=(H[G*3+Y]+H[Y*3+G])*le,Q[pe]=(H[pe*3+Y]+H[Y*3+pe])*le}return Q}function M(Q,H,q,le){var Y=arguments.length>4&&arguments[4]!==void 0?arguments[4]:n.ANGLE_ORDER,G=Math.PI/360;H*=G,le*=G,q*=G;var pe=Math.sin(H),U=Math.cos(H),K=Math.sin(q),ie=Math.cos(q),ce=Math.sin(le),de=Math.cos(le);switch(Y){case"xyz":Q[0]=pe*ie*de+U*K*ce,Q[1]=U*K*de-pe*ie*ce,Q[2]=U*ie*ce+pe*K*de,Q[3]=U*ie*de-pe*K*ce;break;case"xzy":Q[0]=pe*ie*de-U*K*ce,Q[1]=U*K*de-pe*ie*ce,Q[2]=U*ie*ce+pe*K*de,Q[3]=U*ie*de+pe*K*ce;break;case"yxz":Q[0]=pe*ie*de+U*K*ce,Q[1]=U*K*de-pe*ie*ce,Q[2]=U*ie*ce-pe*K*de,Q[3]=U*ie*de+pe*K*ce;break;case"yzx":Q[0]=pe*ie*de+U*K*ce,Q[1]=U*K*de+pe*ie*ce,Q[2]=U*ie*ce-pe*K*de,Q[3]=U*ie*de-pe*K*ce;break;case"zxy":Q[0]=pe*ie*de-U*K*ce,Q[1]=U*K*de+pe*ie*ce,Q[2]=U*ie*ce+pe*K*de,Q[3]=U*ie*de-pe*K*ce;break;case"zyx":Q[0]=pe*ie*de-U*K*ce,Q[1]=U*K*de+pe*ie*ce,Q[2]=U*ie*ce-pe*K*de,Q[3]=U*ie*de+pe*K*ce;break;default:throw new Error("Unknown angle order "+Y)}return Q}function P(Q){return"quat("+Q[0]+", "+Q[1]+", "+Q[2]+", "+Q[3]+")"}e.clone=o.clone,e.fromValues=o.fromValues,e.copy=o.copy,e.set=o.set,e.add=o.add,e.mul=h;var F=e.scale=o.scale,N=e.dot=o.dot;e.lerp=o.lerp;var j=e.length=o.length;e.len=j;var W=e.squaredLength=o.squaredLength;e.sqrLen=W;var J=e.normalize=o.normalize;e.exactEquals=o.exactEquals;function ee(Q,H){return Math.abs(o.dot(Q,H))>=1-n.EPSILON}e.rotationTo=(function(){var Q=r.create(),H=r.fromValues(1,0,0),q=r.fromValues(0,1,0);return function(le,Y,G){var pe=r.dot(Y,G);return pe<-.999999?(r.cross(Q,H,Y),r.len(Q)<1e-6&&r.cross(Q,q,Y),r.normalize(Q,Q),c(le,Q,Math.PI),le):pe>.999999?(le[0]=0,le[1]=0,le[2]=0,le[3]=1,le):(r.cross(Q,Y,G),le[0]=Q[0],le[1]=Q[1],le[2]=Q[2],le[3]=1+pe,J(le,le))}})(),e.sqlerp=(function(){var Q=a(),H=a();return function(q,le,Y,G,pe,U){return w(Q,le,pe,U),w(H,Y,G,U),w(q,Q,H,2*U*(1-U)),q}})(),e.setAxes=(function(){var Q=i.create();return function(H,q,le,Y){return Q[0]=le[0],Q[3]=le[1],Q[6]=le[2],Q[1]=Y[0],Q[4]=Y[1],Q[7]=Y[2],Q[2]=-q[0],Q[5]=-q[1],Q[8]=-q[2],J(H,T(H,Q))}})()}}),FMn=Ot({"../node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/cjs/quat2.js"(e){function t(U){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},t(U)}Object.defineProperty(e,"__esModule",{value:!0}),e.add=F,e.clone=a,e.conjugate=Q,e.copy=p,e.create=s,e.dot=void 0,e.equals=pe,e.exactEquals=G,e.fromMat4=f,e.fromRotation=h,e.fromRotationTranslation=u,e.fromRotationTranslationValues=c,e.fromTranslation=d,e.fromValues=l,e.getDual=v,e.getReal=void 0,e.getTranslation=b,e.identity=g,e.invert=ee,e.length=e.len=void 0,e.lerp=J,e.mul=void 0,e.multiply=N,e.normalize=le,e.rotateAroundAxis=P,e.rotateByQuatAppend=T,e.rotateByQuatPrepend=M,e.rotateX=E,e.rotateY=A,e.rotateZ=D,e.scale=j,e.set=m,e.setDual=y,e.squaredLength=e.sqrLen=e.setReal=void 0,e.str=Y,e.translate=w;var n=o(yE()),i=o(G8t()),r=o(U8t());function o(U,K){if(typeof WeakMap=="function")var ie=new WeakMap,ce=new WeakMap;return(o=function(oe,me){if(!me&&oe&&oe.__esModule)return oe;var Ce,Se,De={__proto__:null,default:oe};if(oe===null||t(oe)!="object"&&typeof oe!="function")return De;if(Ce=me?ce:ie){if(Ce.has(oe))return Ce.get(oe);Ce.set(oe,De)}for(var Me in oe)Me!=="default"&&{}.hasOwnProperty.call(oe,Me)&&((Se=(Ce=Object.defineProperty)&&Object.getOwnPropertyDescriptor(oe,Me))&&(Se.get||Se.set)?Ce(De,Me,Se):De[Me]=oe[Me]);return De})(U,K)}function s(){var U=new n.ARRAY_TYPE(8);return n.ARRAY_TYPE!=Float32Array&&(U[0]=0,U[1]=0,U[2]=0,U[4]=0,U[5]=0,U[6]=0,U[7]=0),U[3]=1,U}function a(U){var K=new n.ARRAY_TYPE(8);return K[0]=U[0],K[1]=U[1],K[2]=U[2],K[3]=U[3],K[4]=U[4],K[5]=U[5],K[6]=U[6],K[7]=U[7],K}function l(U,K,ie,ce,de,oe,me,Ce){var Se=new n.ARRAY_TYPE(8);return Se[0]=U,Se[1]=K,Se[2]=ie,Se[3]=ce,Se[4]=de,Se[5]=oe,Se[6]=me,Se[7]=Ce,Se}function c(U,K,ie,ce,de,oe,me){var Ce=new n.ARRAY_TYPE(8);Ce[0]=U,Ce[1]=K,Ce[2]=ie,Ce[3]=ce;var Se=de*.5,De=oe*.5,Me=me*.5;return Ce[4]=Se*ce+De*ie-Me*K,Ce[5]=De*ce+Me*U-Se*ie,Ce[6]=Me*ce+Se*K-De*U,Ce[7]=-Se*U-De*K-Me*ie,Ce}function u(U,K,ie){var ce=ie[0]*.5,de=ie[1]*.5,oe=ie[2]*.5,me=K[0],Ce=K[1],Se=K[2],De=K[3];return U[0]=me,U[1]=Ce,U[2]=Se,U[3]=De,U[4]=ce*De+de*Se-oe*Ce,U[5]=de*De+oe*me-ce*Se,U[6]=oe*De+ce*Ce-de*me,U[7]=-ce*me-de*Ce-oe*Se,U}function d(U,K){return U[0]=0,U[1]=0,U[2]=0,U[3]=1,U[4]=K[0]*.5,U[5]=K[1]*.5,U[6]=K[2]*.5,U[7]=0,U}function h(U,K){return U[0]=K[0],U[1]=K[1],U[2]=K[2],U[3]=K[3],U[4]=0,U[5]=0,U[6]=0,U[7]=0,U}function f(U,K){var ie=i.create();r.getRotation(ie,K);var ce=new n.ARRAY_TYPE(3);return r.getTranslation(ce,K),u(U,ie,ce),U}function p(U,K){return U[0]=K[0],U[1]=K[1],U[2]=K[2],U[3]=K[3],U[4]=K[4],U[5]=K[5],U[6]=K[6],U[7]=K[7],U}function g(U){return U[0]=0,U[1]=0,U[2]=0,U[3]=1,U[4]=0,U[5]=0,U[6]=0,U[7]=0,U}function m(U,K,ie,ce,de,oe,me,Ce,Se){return U[0]=K,U[1]=ie,U[2]=ce,U[3]=de,U[4]=oe,U[5]=me,U[6]=Ce,U[7]=Se,U}e.getReal=i.copy;function v(U,K){return U[0]=K[4],U[1]=K[5],U[2]=K[6],U[3]=K[7],U}e.setReal=i.copy;function y(U,K){return U[4]=K[0],U[5]=K[1],U[6]=K[2],U[7]=K[3],U}function b(U,K){var ie=K[4],ce=K[5],de=K[6],oe=K[7],me=-K[0],Ce=-K[1],Se=-K[2],De=K[3];return U[0]=(ie*De+oe*me+ce*Se-de*Ce)*2,U[1]=(ce*De+oe*Ce+de*me-ie*Se)*2,U[2]=(de*De+oe*Se+ie*Ce-ce*me)*2,U}function w(U,K,ie){var ce=K[0],de=K[1],oe=K[2],me=K[3],Ce=ie[0]*.5,Se=ie[1]*.5,De=ie[2]*.5,Me=K[4],qe=K[5],$=K[6],he=K[7];return U[0]=ce,U[1]=de,U[2]=oe,U[3]=me,U[4]=me*Ce+de*De-oe*Se+Me,U[5]=me*Se+oe*Ce-ce*De+qe,U[6]=me*De+ce*Se-de*Ce+$,U[7]=-ce*Ce-de*Se-oe*De+he,U}function E(U,K,ie){var ce=-K[0],de=-K[1],oe=-K[2],me=K[3],Ce=K[4],Se=K[5],De=K[6],Me=K[7],qe=Ce*me+Me*ce+Se*oe-De*de,$=Se*me+Me*de+De*ce-Ce*oe,he=De*me+Me*oe+Ce*de-Se*ce,Ie=Me*me-Ce*ce-Se*de-De*oe;return i.rotateX(U,K,ie),ce=U[0],de=U[1],oe=U[2],me=U[3],U[4]=qe*me+Ie*ce+$*oe-he*de,U[5]=$*me+Ie*de+he*ce-qe*oe,U[6]=he*me+Ie*oe+qe*de-$*ce,U[7]=Ie*me-qe*ce-$*de-he*oe,U}function A(U,K,ie){var ce=-K[0],de=-K[1],oe=-K[2],me=K[3],Ce=K[4],Se=K[5],De=K[6],Me=K[7],qe=Ce*me+Me*ce+Se*oe-De*de,$=Se*me+Me*de+De*ce-Ce*oe,he=De*me+Me*oe+Ce*de-Se*ce,Ie=Me*me-Ce*ce-Se*de-De*oe;return i.rotateY(U,K,ie),ce=U[0],de=U[1],oe=U[2],me=U[3],U[4]=qe*me+Ie*ce+$*oe-he*de,U[5]=$*me+Ie*de+he*ce-qe*oe,U[6]=he*me+Ie*oe+qe*de-$*ce,U[7]=Ie*me-qe*ce-$*de-he*oe,U}function D(U,K,ie){var ce=-K[0],de=-K[1],oe=-K[2],me=K[3],Ce=K[4],Se=K[5],De=K[6],Me=K[7],qe=Ce*me+Me*ce+Se*oe-De*de,$=Se*me+Me*de+De*ce-Ce*oe,he=De*me+Me*oe+Ce*de-Se*ce,Ie=Me*me-Ce*ce-Se*de-De*oe;return i.rotateZ(U,K,ie),ce=U[0],de=U[1],oe=U[2],me=U[3],U[4]=qe*me+Ie*ce+$*oe-he*de,U[5]=$*me+Ie*de+he*ce-qe*oe,U[6]=he*me+Ie*oe+qe*de-$*ce,U[7]=Ie*me-qe*ce-$*de-he*oe,U}function T(U,K,ie){var ce=ie[0],de=ie[1],oe=ie[2],me=ie[3],Ce=K[0],Se=K[1],De=K[2],Me=K[3];return U[0]=Ce*me+Me*ce+Se*oe-De*de,U[1]=Se*me+Me*de+De*ce-Ce*oe,U[2]=De*me+Me*oe+Ce*de-Se*ce,U[3]=Me*me-Ce*ce-Se*de-De*oe,Ce=K[4],Se=K[5],De=K[6],Me=K[7],U[4]=Ce*me+Me*ce+Se*oe-De*de,U[5]=Se*me+Me*de+De*ce-Ce*oe,U[6]=De*me+Me*oe+Ce*de-Se*ce,U[7]=Me*me-Ce*ce-Se*de-De*oe,U}function M(U,K,ie){var ce=K[0],de=K[1],oe=K[2],me=K[3],Ce=ie[0],Se=ie[1],De=ie[2],Me=ie[3];return U[0]=ce*Me+me*Ce+de*De-oe*Se,U[1]=de*Me+me*Se+oe*Ce-ce*De,U[2]=oe*Me+me*De+ce*Se-de*Ce,U[3]=me*Me-ce*Ce-de*Se-oe*De,Ce=ie[4],Se=ie[5],De=ie[6],Me=ie[7],U[4]=ce*Me+me*Ce+de*De-oe*Se,U[5]=de*Me+me*Se+oe*Ce-ce*De,U[6]=oe*Me+me*De+ce*Se-de*Ce,U[7]=me*Me-ce*Ce-de*Se-oe*De,U}function P(U,K,ie,ce){if(Math.abs(ce)<n.EPSILON)return p(U,K);var de=Math.sqrt(ie[0]*ie[0]+ie[1]*ie[1]+ie[2]*ie[2]);ce=ce*.5;var oe=Math.sin(ce),me=oe*ie[0]/de,Ce=oe*ie[1]/de,Se=oe*ie[2]/de,De=Math.cos(ce),Me=K[0],qe=K[1],$=K[2],he=K[3];U[0]=Me*De+he*me+qe*Se-$*Ce,U[1]=qe*De+he*Ce+$*me-Me*Se,U[2]=$*De+he*Se+Me*Ce-qe*me,U[3]=he*De-Me*me-qe*Ce-$*Se;var Ie=K[4],Be=K[5],ze=K[6],Ye=K[7];return U[4]=Ie*De+Ye*me+Be*Se-ze*Ce,U[5]=Be*De+Ye*Ce+ze*me-Ie*Se,U[6]=ze*De+Ye*Se+Ie*Ce-Be*me,U[7]=Ye*De-Ie*me-Be*Ce-ze*Se,U}function F(U,K,ie){return U[0]=K[0]+ie[0],U[1]=K[1]+ie[1],U[2]=K[2]+ie[2],U[3]=K[3]+ie[3],U[4]=K[4]+ie[4],U[5]=K[5]+ie[5],U[6]=K[6]+ie[6],U[7]=K[7]+ie[7],U}function N(U,K,ie){var ce=K[0],de=K[1],oe=K[2],me=K[3],Ce=ie[4],Se=ie[5],De=ie[6],Me=ie[7],qe=K[4],$=K[5],he=K[6],Ie=K[7],Be=ie[0],ze=ie[1],Ye=ie[2],it=ie[3];return U[0]=ce*it+me*Be+de*Ye-oe*ze,U[1]=de*it+me*ze+oe*Be-ce*Ye,U[2]=oe*it+me*Ye+ce*ze-de*Be,U[3]=me*it-ce*Be-de*ze-oe*Ye,U[4]=ce*Me+me*Ce+de*De-oe*Se+qe*it+Ie*Be+$*Ye-he*ze,U[5]=de*Me+me*Se+oe*Ce-ce*De+$*it+Ie*ze+he*Be-qe*Ye,U[6]=oe*Me+me*De+ce*Se-de*Ce+he*it+Ie*Ye+qe*ze-$*Be,U[7]=me*Me-ce*Ce-de*Se-oe*De+Ie*it-qe*Be-$*ze-he*Ye,U}e.mul=N;function j(U,K,ie){return U[0]=K[0]*ie,U[1]=K[1]*ie,U[2]=K[2]*ie,U[3]=K[3]*ie,U[4]=K[4]*ie,U[5]=K[5]*ie,U[6]=K[6]*ie,U[7]=K[7]*ie,U}var W=e.dot=i.dot;function J(U,K,ie,ce){var de=1-ce;return W(K,ie)<0&&(ce=-ce),U[0]=K[0]*de+ie[0]*ce,U[1]=K[1]*de+ie[1]*ce,U[2]=K[2]*de+ie[2]*ce,U[3]=K[3]*de+ie[3]*ce,U[4]=K[4]*de+ie[4]*ce,U[5]=K[5]*de+ie[5]*ce,U[6]=K[6]*de+ie[6]*ce,U[7]=K[7]*de+ie[7]*ce,U}function ee(U,K){var ie=q(K);return U[0]=-K[0]/ie,U[1]=-K[1]/ie,U[2]=-K[2]/ie,U[3]=K[3]/ie,U[4]=-K[4]/ie,U[5]=-K[5]/ie,U[6]=-K[6]/ie,U[7]=K[7]/ie,U}function Q(U,K){return U[0]=-K[0],U[1]=-K[1],U[2]=-K[2],U[3]=K[3],U[4]=-K[4],U[5]=-K[5],U[6]=-K[6],U[7]=K[7],U}var H=e.length=i.length;e.len=H;var q=e.squaredLength=i.squaredLength;e.sqrLen=q;function le(U,K){var ie=q(K);if(ie>0){ie=Math.sqrt(ie);var ce=K[0]/ie,de=K[1]/ie,oe=K[2]/ie,me=K[3]/ie,Ce=K[4],Se=K[5],De=K[6],Me=K[7],qe=ce*Ce+de*Se+oe*De+me*Me;U[0]=ce,U[1]=de,U[2]=oe,U[3]=me,U[4]=(Ce-ce*qe)/ie,U[5]=(Se-de*qe)/ie,U[6]=(De-oe*qe)/ie,U[7]=(Me-me*qe)/ie}return U}function Y(U){return"quat2("+U[0]+", "+U[1]+", "+U[2]+", "+U[3]+", "+U[4]+", "+U[5]+", "+U[6]+", "+U[7]+")"}function G(U,K){return U[0]===K[0]&&U[1]===K[1]&&U[2]===K[2]&&U[3]===K[3]&&U[4]===K[4]&&U[5]===K[5]&&U[6]===K[6]&&U[7]===K[7]}function pe(U,K){var ie=U[0],ce=U[1],de=U[2],oe=U[3],me=U[4],Ce=U[5],Se=U[6],De=U[7],Me=K[0],qe=K[1],$=K[2],he=K[3],Ie=K[4],Be=K[5],ze=K[6],Ye=K[7];return Math.abs(ie-Me)<=n.EPSILON*Math.max(1,Math.abs(ie),Math.abs(Me))&&Math.abs(ce-qe)<=n.EPSILON*Math.max(1,Math.abs(ce),Math.abs(qe))&&Math.abs(de-$)<=n.EPSILON*Math.max(1,Math.abs(de),Math.abs($))&&Math.abs(oe-he)<=n.EPSILON*Math.max(1,Math.abs(oe),Math.abs(he))&&Math.abs(me-Ie)<=n.EPSILON*Math.max(1,Math.abs(me),Math.abs(Ie))&&Math.abs(Ce-Be)<=n.EPSILON*Math.max(1,Math.abs(Ce),Math.abs(Be))&&Math.abs(Se-ze)<=n.EPSILON*Math.max(1,Math.abs(Se),Math.abs(ze))&&Math.abs(De-Ye)<=n.EPSILON*Math.max(1,Math.abs(De),Math.abs(Ye))}}}),BMn=Ot({"../node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/cjs/vec2.js"(e){function t(ie){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},t(ie)}Object.defineProperty(e,"__esModule",{value:!0}),e.add=c,e.angle=le,e.ceil=f,e.clone=o,e.copy=a,e.create=r,e.cross=N,e.dist=void 0,e.distance=w,e.div=void 0,e.divide=h,e.dot=F,e.equals=K,e.exactEquals=U,e.floor=p,e.forEach=void 0,e.fromValues=s,e.inverse=M,e.len=void 0,e.length=A,e.lerp=j,e.max=m,e.min=g,e.mul=void 0,e.multiply=d,e.negate=T,e.normalize=P,e.random=W,e.rotate=q,e.round=v,e.scale=y,e.scaleAndAdd=b,e.set=l,e.signedAngle=Y,e.sqrLen=e.sqrDist=void 0,e.squaredDistance=E,e.squaredLength=D,e.str=pe,e.sub=void 0,e.subtract=u,e.transformMat2=J,e.transformMat2d=ee,e.transformMat3=Q,e.transformMat4=H,e.zero=G;var n=i(yE());function i(ie,ce){if(typeof WeakMap=="function")var de=new WeakMap,oe=new WeakMap;return(i=function(Ce,Se){if(!Se&&Ce&&Ce.__esModule)return Ce;var De,Me,qe={__proto__:null,default:Ce};if(Ce===null||t(Ce)!="object"&&typeof Ce!="function")return qe;if(De=Se?oe:de){if(De.has(Ce))return De.get(Ce);De.set(Ce,qe)}for(var $ in Ce)$!=="default"&&{}.hasOwnProperty.call(Ce,$)&&((Me=(De=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Ce,$))&&(Me.get||Me.set)?De(qe,$,Me):qe[$]=Ce[$]);return qe})(ie,ce)}function r(){var ie=new n.ARRAY_TYPE(2);return n.ARRAY_TYPE!=Float32Array&&(ie[0]=0,ie[1]=0),ie}function o(ie){var ce=new n.ARRAY_TYPE(2);return ce[0]=ie[0],ce[1]=ie[1],ce}function s(ie,ce){var de=new n.ARRAY_TYPE(2);return de[0]=ie,de[1]=ce,de}function a(ie,ce){return ie[0]=ce[0],ie[1]=ce[1],ie}function l(ie,ce,de){return ie[0]=ce,ie[1]=de,ie}function c(ie,ce,de){return ie[0]=ce[0]+de[0],ie[1]=ce[1]+de[1],ie}function u(ie,ce,de){return ie[0]=ce[0]-de[0],ie[1]=ce[1]-de[1],ie}function d(ie,ce,de){return ie[0]=ce[0]*de[0],ie[1]=ce[1]*de[1],ie}function h(ie,ce,de){return ie[0]=ce[0]/de[0],ie[1]=ce[1]/de[1],ie}function f(ie,ce){return ie[0]=Math.ceil(ce[0]),ie[1]=Math.ceil(ce[1]),ie}function p(ie,ce){return ie[0]=Math.floor(ce[0]),ie[1]=Math.floor(ce[1]),ie}function g(ie,ce,de){return ie[0]=Math.min(ce[0],de[0]),ie[1]=Math.min(ce[1],de[1]),ie}function m(ie,ce,de){return ie[0]=Math.max(ce[0],de[0]),ie[1]=Math.max(ce[1],de[1]),ie}function v(ie,ce){return ie[0]=n.round(ce[0]),ie[1]=n.round(ce[1]),ie}function y(ie,ce,de){return ie[0]=ce[0]*de,ie[1]=ce[1]*de,ie}function b(ie,ce,de,oe){return ie[0]=ce[0]+de[0]*oe,ie[1]=ce[1]+de[1]*oe,ie}function w(ie,ce){var de=ce[0]-ie[0],oe=ce[1]-ie[1];return Math.sqrt(de*de+oe*oe)}function E(ie,ce){var de=ce[0]-ie[0],oe=ce[1]-ie[1];return de*de+oe*oe}function A(ie){var ce=ie[0],de=ie[1];return Math.sqrt(ce*ce+de*de)}function D(ie){var ce=ie[0],de=ie[1];return ce*ce+de*de}function T(ie,ce){return ie[0]=-ce[0],ie[1]=-ce[1],ie}function M(ie,ce){return ie[0]=1/ce[0],ie[1]=1/ce[1],ie}function P(ie,ce){var de=ce[0],oe=ce[1],me=de*de+oe*oe;return me>0&&(me=1/Math.sqrt(me)),ie[0]=ce[0]*me,ie[1]=ce[1]*me,ie}function F(ie,ce){return ie[0]*ce[0]+ie[1]*ce[1]}function N(ie,ce,de){var oe=ce[0]*de[1]-ce[1]*de[0];return ie[0]=ie[1]=0,ie[2]=oe,ie}function j(ie,ce,de,oe){var me=ce[0],Ce=ce[1];return ie[0]=me+oe*(de[0]-me),ie[1]=Ce+oe*(de[1]-Ce),ie}function W(ie,ce){ce=ce===void 0?1:ce;var de=n.RANDOM()*2*Math.PI;return ie[0]=Math.cos(de)*ce,ie[1]=Math.sin(de)*ce,ie}function J(ie,ce,de){var oe=ce[0],me=ce[1];return ie[0]=de[0]*oe+de[2]*me,ie[1]=de[1]*oe+de[3]*me,ie}function ee(ie,ce,de){var oe=ce[0],me=ce[1];return ie[0]=de[0]*oe+de[2]*me+de[4],ie[1]=de[1]*oe+de[3]*me+de[5],ie}function Q(ie,ce,de){var oe=ce[0],me=ce[1];return ie[0]=de[0]*oe+de[3]*me+de[6],ie[1]=de[1]*oe+de[4]*me+de[7],ie}function H(ie,ce,de){var oe=ce[0],me=ce[1];return ie[0]=de[0]*oe+de[4]*me+de[12],ie[1]=de[1]*oe+de[5]*me+de[13],ie}function q(ie,ce,de,oe){var me=ce[0]-de[0],Ce=ce[1]-de[1],Se=Math.sin(oe),De=Math.cos(oe);return ie[0]=me*De-Ce*Se+de[0],ie[1]=me*Se+Ce*De+de[1],ie}function le(ie,ce){var de=ie[0],oe=ie[1],me=ce[0],Ce=ce[1];return Math.abs(Math.atan2(oe*me-de*Ce,de*me+oe*Ce))}function Y(ie,ce){var de=ie[0],oe=ie[1],me=ce[0],Ce=ce[1];return Math.atan2(de*Ce-oe*me,de*me+oe*Ce)}function G(ie){return ie[0]=0,ie[1]=0,ie}function pe(ie){return"vec2("+ie[0]+", "+ie[1]+")"}function U(ie,ce){return ie[0]===ce[0]&&ie[1]===ce[1]}function K(ie,ce){var de=ie[0],oe=ie[1],me=ce[0],Ce=ce[1];return Math.abs(de-me)<=n.EPSILON*Math.max(1,Math.abs(de),Math.abs(me))&&Math.abs(oe-Ce)<=n.EPSILON*Math.max(1,Math.abs(oe),Math.abs(Ce))}e.len=A,e.sub=u,e.mul=d,e.div=h,e.dist=w,e.sqrDist=E,e.sqrLen=D,e.forEach=(function(){var ie=r();return function(ce,de,oe,me,Ce,Se){var De,Me;for(de||(de=2),oe||(oe=0),me?Me=Math.min(me*de+oe,ce.length):Me=ce.length,De=oe;De<Me;De+=de)ie[0]=ce[De],ie[1]=ce[De+1],Ce(ie,ie,Se),ce[De]=ie[0],ce[De+1]=ie[1];return ce}})()}}),vN=Ot({"../node_modules/.pnpm/gl-matrix@3.4.4/node_modules/gl-matrix/cjs/index.js"(e){function t(f){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},t(f)}Object.defineProperty(e,"__esModule",{value:!0}),e.vec4=e.vec3=e.vec2=e.quat2=e.quat=e.mat4=e.mat3=e.mat2d=e.mat2=e.glMatrix=void 0;var n=h(yE());e.glMatrix=n;var i=h(OMn());e.mat2=i;var r=h(RMn());e.mat2d=r;var o=h(W8t());e.mat3=o;var s=h(U8t());e.mat4=s;var a=h(G8t());e.quat=a;var l=h(FMn());e.quat2=l;var c=h(BMn());e.vec2=c;var u=h($8t());e.vec3=u;var d=h(q8t());e.vec4=d;function h(f,p){if(typeof WeakMap=="function")var g=new WeakMap,m=new WeakMap;return(h=function(y,b){if(!b&&y&&y.__esModule)return y;var w,E,A={__proto__:null,default:y};if(y===null||t(y)!="object"&&typeof y!="function")return A;if(w=b?m:g){if(w.has(y))return w.get(y);w.set(y,A)}for(var D in y)D!=="default"&&{}.hasOwnProperty.call(y,D)&&((E=(w=Object.defineProperty)&&Object.getOwnPropertyDescriptor(y,D))&&(E.get||E.set)?w(A,D,E):A[D]=y[D]);return A})(f,p)}}}),Sr={};oc(Sr,{__addDisposableResource:()=>f9t,__assign:()=>Zn,__asyncDelegator:()=>s9t,__asyncGenerator:()=>o9t,__asyncValues:()=>a9t,__await:()=>z8,__awaiter:()=>t9t,__classPrivateFieldGet:()=>xU,__classPrivateFieldIn:()=>h9t,__classPrivateFieldSet:()=>d9t,__createBinding:()=>vq,__decorate:()=>K8t,__disposeResources:()=>p9t,__esDecorate:()=>Q8t,__exportStar:()=>i9t,__extends:()=>Ss,__generator:()=>n9t,__importDefault:()=>u9t,__importStar:()=>c9t,__makeTemplateObject:()=>l9t,__metadata:()=>e9t,__param:()=>Y8t,__propKey:()=>X8t,__read:()=>Et,__rest:()=>ou,__rewriteRelativeImportExtension:()=>g9t,__runInitializers:()=>Z8t,__setFunctionName:()=>J8t,__spread:()=>r9t,__spreadArray:()=>Hr,__spreadArrays:()=>dVe,__values:()=>PD,default:()=>y9t});function Ss(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");moe(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function ou(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function K8t(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o}function Y8t(e,t){return function(n,i){t(n,i,e)}}function Q8t(e,t,n,i,r,o){function s(v){if(v!==void 0&&typeof v!="function")throw new TypeError("Function expected");return v}for(var a=i.kind,l=a==="getter"?"get":a==="setter"?"set":"value",c=!t&&e?i.static?e:e.prototype:null,u=t||(c?Object.getOwnPropertyDescriptor(c,i.name):{}),d,h=!1,f=n.length-1;f>=0;f--){var p={};for(var g in i)p[g]=g==="access"?{}:i[g];for(var g in i.access)p.access[g]=i.access[g];p.addInitializer=function(v){if(h)throw new TypeError("Cannot add initializers after decoration has completed");o.push(s(v||null))};var m=(0,n[f])(a==="accessor"?{get:u.get,set:u.set}:u[l],p);if(a==="accessor"){if(m===void 0)continue;if(m===null||typeof m!="object")throw new TypeError("Object expected");(d=s(m.get))&&(u.get=d),(d=s(m.set))&&(u.set=d),(d=s(m.init))&&r.unshift(d)}else(d=s(m))&&(a==="field"?r.unshift(d):u[l]=d)}c&&Object.defineProperty(c,i.name,u),h=!0}function Z8t(e,t,n){for(var i=arguments.length>2,r=0;r<t.length;r++)n=i?t[r].call(e,n):t[r].call(e);return i?n:void 0}function X8t(e){return typeof e=="symbol"?e:"".concat(e)}function J8t(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function e9t(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function t9t(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,t||[])).next())})}function n9t(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return l([c,u])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(n=0)),n;)try{if(i=1,r&&(o=c[0]&2?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,r=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],r=0}finally{i=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function i9t(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&vq(t,e,n)}function PD(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Et(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),r,o=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(s)throw s.error}}return o}function r9t(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Et(arguments[t]));return e}function dVe(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var i=Array(e),r=0,t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i}function Hr(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,o;i<r;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}function z8(e){return this instanceof z8?(this.v=e,this):new z8(e)}function o9t(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n.apply(e,t||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),r[Symbol.asyncIterator]=function(){return this},r;function s(f){return function(p){return Promise.resolve(p).then(f,d)}}function a(f,p){i[f]&&(r[f]=function(g){return new Promise(function(m,v){o.push([f,g,m,v])>1||l(f,g)})},p&&(r[f]=p(r[f])))}function l(f,p){try{c(i[f](p))}catch(g){h(o[0][3],g)}}function c(f){f.value instanceof z8?Promise.resolve(f.value.v).then(u,d):h(o[0][2],f)}function u(f){l("next",f)}function d(f){l("throw",f)}function h(f,p){f(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}function s9t(e){var t,n;return t={},i("next"),i("throw",function(r){throw r}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(r,o){t[r]=e[r]?function(s){return(n=!n)?{value:z8(e[r](s)),done:!1}:o?o(s):s}:o}}function a9t(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof PD=="function"?PD(e):e[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(o){n[o]=e[o]&&function(s){return new Promise(function(a,l){s=e[o](s),r(a,l,s.done,s.value)})}}function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}}function l9t(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function c9t(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=voe(e),i=0;i<n.length;i++)n[i]!=="default"&&vq(t,e,n[i]);return m9t(t,e),t}function u9t(e){return e&&e.__esModule?e:{default:e}}function xU(e,t,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(e):i?i.value:t.get(e)}function d9t(e,t,n,i,r){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?r.call(e,n):r?r.value=n:t.set(e,n),n}function h9t(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function f9t(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var i,r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=t[Symbol.asyncDispose]}if(i===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=t[Symbol.dispose],n&&(r=i)}if(typeof i!="function")throw new TypeError("Object not disposable.");r&&(i=function(){try{r.call(this)}catch(o){return Promise.reject(o)}}),e.stack.push({value:t,dispose:i,async:n})}else n&&e.stack.push({async:!0});return t}function p9t(e){function t(o){e.error=e.hasError?new v9t(o,e.error,"An error was suppressed during disposal."):o,e.hasError=!0}var n,i=0;function r(){for(;n=e.stack.pop();)try{if(!n.async&&i===1)return i=0,e.stack.push(n),Promise.resolve().then(r);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return i|=2,Promise.resolve(o).then(r,function(s){return t(s),r()})}else i|=1}catch(s){t(s)}if(i===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return r()}function g9t(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,i,r,o,s){return i?t?".jsx":".js":r&&(!o||!s)?n:r+o+"."+s.toLowerCase()+"js"}):e}var moe,Zn,vq,m9t,voe,v9t,y9t,Wn=se({"../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs"(){moe=function(e,t){return moe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},moe(e,t)},Zn=function(){return Zn=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Zn.apply(this,arguments)},vq=Object.create?(function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}):(function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),m9t=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},voe=function(e){return voe=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},voe(e)},v9t=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var i=new Error(n);return i.name="SuppressedError",i.error=e,i.suppressed=t,i},y9t={__extends:Ss,__assign:Zn,__rest:ou,__decorate:K8t,__param:Y8t,__esDecorate:Q8t,__runInitializers:Z8t,__propKey:X8t,__setFunctionName:J8t,__metadata:e9t,__awaiter:t9t,__generator:n9t,__createBinding:vq,__exportStar:i9t,__values:PD,__read:Et,__spread:r9t,__spreadArrays:dVe,__spreadArray:Hr,__await:z8,__asyncGenerator:o9t,__asyncDelegator:s9t,__asyncValues:a9t,__makeTemplateObject:l9t,__importStar:c9t,__importDefault:u9t,__classPrivateFieldGet:xU,__classPrivateFieldSet:d9t,__classPrivateFieldIn:h9t,__addDisposableResource:f9t,__disposeResources:p9t,__rewriteRelativeImportExtension:g9t}}}),b9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/color/rgb2arr.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.rgb2arr=t;function t(n){return[parseInt(n.substr(1,2),16),parseInt(n.substr(3,2),16),parseInt(n.substr(5,2),16)]}}}),_9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/color/arr2rgb.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.toHex=t,e.arr2rgb=n;function t(i){var r=Math.round(i).toString(16);return r.length===1?"0".concat(r):r}function n(i){return"#".concat(t(i[0])).concat(t(i[1])).concat(t(i[2]))}}}),yb=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-array-like.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=function(n){return n!==null&&typeof n!="function"&&isFinite(n.length)};e.default=t}}),hVe=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/contains.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(yb()),i=function(r,o){return(0,n.default)(r)?r.indexOf(o)>-1:!1};e.default=i}}),w9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/filter.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(yb()),i=function(r,o){if(!(0,n.default)(r))return r;for(var s=[],a=0;a<r.length;a++){var l=r[a];o(l,a)&&s.push(l)}return s};e.default=i}}),jMn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/difference.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(w9t()),i=t.__importDefault(hVe()),r=function(o,s){return s===void 0&&(s=[]),(0,n.default)(o,function(a){return!(0,i.default)(s,a)})};e.default=r}}),fw=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-function.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){return typeof n=="function"}}}),yN=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-nil.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){return n==null}}}),gf=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-array.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){return Array.isArray(n)}}}),ape=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-object.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=(function(t){var n=typeof t;return t!==null&&n==="object"||n==="function"})}}),d7=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/each.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(gf()),i=t.__importDefault(ape());function r(o,s){if(o){var a;if((0,n.default)(o))for(var l=0,c=o.length;l<c&&(a=s(o[l],l),a!==!1);l++);else if((0,i.default)(o)){for(var u in o)if(o.hasOwnProperty(u)&&(a=s(o[u],u),a===!1))break}}}e.default=r}}),C9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/keys.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(d7()),i=t.__importDefault(fw()),r=Object.keys?function(o){return Object.keys(o)}:function(o){var s=[];return(0,n.default)(o,function(a,l){(0,i.default)(o)&&l==="prototype"||s.push(l)}),s};e.default=r}}),S9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-match.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(yN()),i=t.__importDefault(C9t());function r(o,s){var a=(0,i.default)(s),l=a.length;if((0,n.default)(o))return!l;for(var c=0;c<l;c+=1){var u=a[c];if(s[u]!==o[u]||!(u in o))return!1}return!0}e.default=r}}),fVe=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-object-like.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=function(n){return typeof n=="object"&&n!==null};e.default=t}}),h7=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-type.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t={}.toString,n=function(i,r){return t.call(i)==="[object "+r+"]"};e.default=n}}),OK=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-plain-object.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(fVe()),i=t.__importDefault(h7()),r=function(o){if(!(0,n.default)(o)||!(0,i.default)(o,"Object"))return!1;if(Object.getPrototypeOf(o)===null)return!0;for(var s=o;Object.getPrototypeOf(s)!==null;)s=Object.getPrototypeOf(s);return Object.getPrototypeOf(o)===s};e.default=r}}),zMn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/find.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(fw()),i=t.__importDefault(S9t()),r=t.__importDefault(gf()),o=t.__importDefault(OK());function s(a,l){if(!(0,r.default)(a))return null;var c;if((0,n.default)(l)&&(c=l),(0,o.default)(l)&&(c=function(d){return(0,i.default)(d,l)}),c){for(var u=0;u<a.length;u+=1)if(c(a[u]))return a[u]}return null}e.default=s}}),VMn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/find-index.js"(e){Object.defineProperty(e,"__esModule",{value:!0});function t(n,i,r){r===void 0&&(r=0);for(var o=r;o<n.length;o++)if(i(n[o],o))return o;return-1}e.default=t}}),HMn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/first-value.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(yN()),i=t.__importDefault(gf()),r=function(o,s){for(var a=null,l=0;l<o.length;l++){var c=o[l],u=c[s];if(!(0,n.default)(u)){(0,i.default)(u)?a=u[0]:a=u;break}}return a};e.default=r}}),WMn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/flatten.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(gf()),i=function(r){if(!(0,n.default)(r))return[];for(var o=[],s=0;s<r.length;s++)o=o.concat(r[s]);return o};e.default=i}}),UMn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/flatten-deep.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(gf()),i=function(r,o){if(o===void 0&&(o=[]),!(0,n.default)(r))o.push(r);else for(var s=0;s<r.length;s+=1)i(r[s],o);return o};e.default=i}}),x9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/max.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){if(!Array.isArray(n))return-1/0;var i=n.length;if(!i)return-1/0;for(var r=n[0],o=1;o<i;o++)r=Math.max(r,n[o]);return r}}}),E9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/min.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(gf());e.default=(function(i){if((0,n.default)(i))return i.reduce(function(r,o){return Math.min(r,o)},i[0])})}}),$Mn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/get-range.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(gf()),i=t.__importDefault(x9t()),r=t.__importDefault(E9t()),o=function(s){var a=s.filter(function(h){return!isNaN(h)});if(!a.length)return{min:0,max:0};if((0,n.default)(s[0])){for(var l=[],c=0;c<s.length;c++)l=l.concat(s[c]);a=l}var u=(0,i.default)(a),d=(0,r.default)(a);return{min:d,max:u}};e.default=o}}),qMn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/pull.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Array.prototype,n=t.splice,i=t.indexOf,r=function(o){for(var s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];for(var l=0;l<s.length;l++)for(var c=s[l],u=-1;(u=i.call(o,c))>-1;)n.call(o,u,1);return o};e.default=r}}),A9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/pull-at.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(yb()),i=Array.prototype.splice,r=function(s,a){if(!(0,n.default)(s))return[];for(var l=s?a.length:0,c=l-1;l--;){var u=void 0,d=a[l];(l===c||d!==u)&&(u=d,i.call(s,d,1))}return s};e.default=r}}),D9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/reduce.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(d7()),i=t.__importDefault(gf()),r=t.__importDefault(OK()),o=function(s,a,l){if(!(0,i.default)(s)&&!(0,r.default)(s))return s;var c=l;return(0,n.default)(s,function(u,d){c=a(c,u,d)}),c};e.default=o}}),GMn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/remove.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(yb()),i=t.__importDefault(A9t()),r=function(o,s){var a=[];if(!(0,n.default)(o))return a;for(var l=-1,c=[],u=o.length;++l<u;){var d=o[l];s(d,l,o)&&(a.push(d),c.push(l))}return(0,i.default)(o,c),a};e.default=r}}),W2=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-string.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){return typeof n=="string"}}}),KMn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/sort-by.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(gf()),i=t.__importDefault(W2()),r=t.__importDefault(fw());function o(s,a){var l;if((0,r.default)(a))l=function(u,d){return a(u)-a(d)};else{var c=[];(0,i.default)(a)?c.push(a):(0,n.default)(a)&&(c=a),l=function(u,d){for(var h=0;h<c.length;h+=1){var f=c[h];if(u[f]>d[f])return 1;if(u[f]<d[f])return-1}return 0}}return s.sort(l),s}e.default=o}}),T9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/uniq.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n,i){i===void 0&&(i=new Map);var r=[];if(Array.isArray(n))for(var o=0,s=n.length;o<s;o++){var a=n[o];i.has(a)||(r.push(a),i.set(a,!0))}return r}}}),YMn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/union.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(T9t()),i=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return(0,n.default)([].concat.apply([],r))};e.default=i}}),QMn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/values-of-key.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(gf()),i=t.__importDefault(yN());e.default=(function(r,o){for(var s=[],a={},l=0;l<r.length;l++){var c=r[l],u=c[o];if(!(0,i.default)(u)){(0,n.default)(u)||(u=[u]);for(var d=0;d<u.length;d++){var h=u[d];a[h]||(s.push(h),a[h]=!0)}}}return s})}}),ZMn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/head.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=(Wn(),Cr(Sr)),n=t.__importDefault(yb());function i(r){if((0,n.default)(r))return r[0]}}}),XMn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/last.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=(Wn(),Cr(Sr)),n=t.__importDefault(yb());function i(r){if((0,n.default)(r)){var o=r;return o[o.length-1]}}}}),JMn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/starts-with.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(gf()),i=t.__importDefault(W2());function r(o,s){return(0,n.default)(o)||(0,i.default)(o)?o[0]===s:!1}e.default=r}}),eOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/ends-with.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(gf()),i=t.__importDefault(W2());function r(o,s){return(0,n.default)(o)||(0,i.default)(o)?o[o.length-1]===s:!1}e.default=r}}),tOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/every.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=function(n,i){for(var r=0;r<n.length;r++)if(!i(n[r],r))return!1;return!0};e.default=t}}),nOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/some.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=function(n,i){for(var r=0;r<n.length;r++)if(i(n[r],r))return!0;return!1};e.default=t}}),k9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/group-by.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(gf()),i=t.__importDefault(fw()),r=Object.prototype.hasOwnProperty;function o(s,a){if(!a||!(0,n.default)(s))return{};for(var l={},c=(0,i.default)(a)?a:function(f){return f[a]},u,d=0;d<s.length;d++){var h=s[d];u=c(h),r.call(l,u)?l[u].push(h):l[u]=[h]}return l}e.default=o}}),I9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/group-to-map.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=(Wn(),Cr(Sr)),n=t.__importDefault(gf()),i=t.__importDefault(fw()),r=t.__importDefault(k9t());function o(s,a){if(!a)return{0:s};if(!(0,i.default)(a)){var l=(0,n.default)(a)?a:a.replace(/\s+/g,"").split("*");a=function(c){for(var u="_",d=0,h=l.length;d<h;d++)u+=c[l[d]]&&c[l[d]].toString();return u}}return(0,r.default)(s,a)}}}),iOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/group.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(I9t());e.default=(function(i,r){if(!r)return[i];var o=(0,n.default)(i,r),s=[];for(var a in o)s.push(o[a]);return s})}}),rOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/get-wrap-behavior.js"(e){Object.defineProperty(e,"__esModule",{value:!0});function t(n,i){return n["_wrap_"+i]}e.default=t}}),oOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/wrap-behavior.js"(e){Object.defineProperty(e,"__esModule",{value:!0});function t(n,i){if(n["_wrap_"+i])return n["_wrap_"+i];var r=function(o){n[i](o)};return n["_wrap_"+i]=r,r}e.default=t}}),sOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/number2color.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t={};function n(i){var r=t[i];if(!r){for(var o=i.toString(16),s=o.length;s<6;s++)o="0"+o;r="#"+o,t[i]=r}return r}e.default=n}}),aOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/parse-radius.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(gf());function i(r){var o=0,s=0,a=0,l=0;return(0,n.default)(r)?r.length===1?o=s=a=l=r[0]:r.length===2?(o=a=r[0],s=l=r[1]):r.length===3?(o=r[0],s=l=r[1],a=r[2]):(o=r[0],s=r[1],a=r[2],l=r[3]):o=s=a=l=r,{r1:o,r2:s,r3:a,r4:l}}e.default=i}}),lOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/clamp.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=function(n,i,r){return n<i?i:n>r?r:n};e.default=t}}),cOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/fixed-base.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=function(n,i){var r=i.toString(),o=r.indexOf(".");if(o===-1)return Math.round(n);var s=r.substr(o+1).length;return s>20&&(s=20),parseFloat(n.toFixed(s))};e.default=t}}),uT=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-number.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){return typeof n=="number"}}}),uOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-decimal.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=(Wn(),Cr(Sr)),n=t.__importDefault(uT());function i(r){return(0,n.default)(r)&&r%1!==0}}}),dOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-even.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=(Wn(),Cr(Sr)),n=t.__importDefault(uT());function i(r){return(0,n.default)(r)&&r%2===0}}}),hOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-integer.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=(Wn(),Cr(Sr)),n=t.__importDefault(uT());function i(r){return(0,n.default)(r)&&r%1===0}}}),fOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-negative.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=(Wn(),Cr(Sr)),n=t.__importDefault(uT());function i(r){return(0,n.default)(r)&&r<0}}}),pOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-number-equal.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=1e-5;function n(i,r,o){return o===void 0&&(o=t),i===r||Math.abs(i-r)<o}}}),gOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-odd.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=(Wn(),Cr(Sr)),n=t.__importDefault(uT());function i(r){return(0,n.default)(r)&&r%2!==0}}}),mOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-positive.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(uT()),i=function(r){return(0,n.default)(r)&&r>0};e.default=i}}),vOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/max-by.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(gf()),i=t.__importDefault(fw());e.default=(function(r,o){if((0,n.default)(r)){for(var s,a=-1/0,l=0;l<r.length;l++){var c=r[l],u=(0,i.default)(o)?o(c):c[o];u>a&&(s=c,a=u)}return s}})}}),yOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/min-by.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(gf()),i=t.__importDefault(fw());e.default=(function(r,o){if((0,n.default)(r)){for(var s,a=1/0,l=0;l<r.length;l++){var c=r[l],u=(0,i.default)(o)?o(c):c[o];u<a&&(s=c,a=u)}return s}})}}),bOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/mod.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=function(n,i){return(n%i+i)%i};e.default=t}}),_On=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/to-degree.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=180/Math.PI,n=function(i){return t*i};e.default=n}}),wOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/to-integer.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=parseInt}}),COn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/to-radian.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Math.PI/180,n=function(i){return t*i};e.default=n}}),SOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/for-in.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(d7());e.default=n.default}}),L9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/has.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=(function(t,n){return t.hasOwnProperty(n)})}}),xOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/has-key.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(L9t());e.default=n.default}}),N9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/values.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(d7()),i=t.__importDefault(fw()),r=Object.values?function(o){return Object.values(o)}:function(o){var s=[];return(0,n.default)(o,function(a,l){(0,i.default)(o)&&l==="prototype"||s.push(a)}),s};e.default=r}}),EOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/has-value.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(hVe()),i=t.__importDefault(N9t());e.default=(function(r,o){return(0,n.default)((0,i.default)(r),o)})}}),RK=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/to-string.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(yN());e.default=(function(i){return(0,n.default)(i)?"":i.toString()})}}),AOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/lower-case.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(RK()),i=function(r){return(0,n.default)(r).toLowerCase()};e.default=i}}),DOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/lower-first.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(RK()),i=function(r){var o=(0,n.default)(r);return o.charAt(0).toLowerCase()+o.substring(1)};e.default=i}}),TOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/substitute.js"(e){Object.defineProperty(e,"__esModule",{value:!0});function t(n,i){return!n||!i?n:n.replace(/\\?\{([^{}]+)\}/g,function(r,o){return r.charAt(0)==="\\"?r.slice(1):i[o]===void 0?"":i[o]})}e.default=t}}),kOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/upper-case.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(RK()),i=function(r){return(0,n.default)(r).toUpperCase()};e.default=i}}),IOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/upper-first.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(RK()),i=function(r){var o=(0,n.default)(r);return o.charAt(0).toUpperCase()+o.substring(1)};e.default=i}}),P9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/get-type.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t={}.toString,n=function(i){return t.call(i).replace(/^\[object /,"").replace(/]$/,"")};e.default=n}}),LOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-arguments.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(h7()),i=function(r){return(0,n.default)(r,"Arguments")};e.default=i}}),NOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-boolean.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(h7()),i=function(r){return(0,n.default)(r,"Boolean")};e.default=i}}),POn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-date.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){return n instanceof Date}}}),MOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-error.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(h7()),i=function(r){return(0,n.default)(r,"Error")};e.default=i}}),OOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-finite.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=(Wn(),Cr(Sr)),n=t.__importDefault(uT());function i(r){return(0,n.default)(r)&&isFinite(r)}}}),ROn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-null.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){return n===null}}}),M9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-prototype.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Object.prototype,n=function(i){var r=i&&i.constructor,o=typeof r=="function"&&r.prototype||t;return i===o};e.default=n}}),FOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-reg-exp.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(h7()),i=function(r){return(0,n.default)(r,"RegExp")};e.default=i}}),BOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-undefined.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=function(n){return n===void 0};e.default=t}}),jOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-element.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){return n instanceof Element||n instanceof Document}}}),zOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/request-animation-frame.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){var i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(r){return setTimeout(r,16)};return i(n)}}}),VOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/clear-animation-frame.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){var i=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;i(n)}}}),pVe=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/mix.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function t(i,r){for(var o in r)r.hasOwnProperty(o)&&o!=="constructor"&&r[o]!==void 0&&(i[o]=r[o])}function n(i,r,o,s){return r&&t(i,r),o&&t(i,o),s&&t(i,s),i}}}),HOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/augment.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(pVe()),i=t.__importDefault(fw()),r=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];for(var a=o[0],l=1;l<o.length;l++){var c=o[l];(0,i.default)(c)&&(c=c.prototype),(0,n.default)(a.prototype,c)}};e.default=r}}),WOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/clone.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(gf()),i=function(r){if(typeof r!="object"||r===null)return r;var o;if((0,n.default)(r)){o=[];for(var s=0,a=r.length;s<a;s++)typeof r[s]=="object"&&r[s]!=null?o[s]=i(r[s]):o[s]=r[s]}else{o={};for(var l in r)typeof r[l]=="object"&&r[l]!=null?o[l]=i(r[l]):o[l]=r[l]}return o};e.default=i}}),UOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/debounce.js"(e){Object.defineProperty(e,"__esModule",{value:!0});function t(n,i,r){var o;return function(){var s=this,a=arguments,l=function(){o=null,r||n.apply(s,a)},c=r&&!o;clearTimeout(o),o=setTimeout(l,i),c&&n.apply(s,a)}}e.default=t}}),$On=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/memoize.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;function t(r){var o,s,a,l=r||1;function c(d,h){++o>l&&(a=s,u(1),++o),s[d]=h}function u(d){o=0,s=Object.create(null),d||(a=Object.create(null))}return u(),{clear:u,has:function(d){return s[d]!==void 0||a[d]!==void 0},get:function(d){var h=s[d];if(h!==void 0)return h;if((h=a[d])!==void 0)return c(d,h),h},set:function(d,h){s[d]!==void 0?s[d]=h:c(d,h)}}}var n=new Map;function i(r,o,s){s===void 0&&(s=128);var a=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];var u=o?o.apply(this,l):l[0];n.has(r)||n.set(r,t(s));var d=n.get(r);if(d.has(u))return d.get(u);var h=r.apply(this,l);return d.set(u,h),h};return a}}}),qOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/deep-mix.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(gf()),i=t.__importDefault(OK()),r=5;function o(l,c){if(Object.hasOwn)return Object.hasOwn(l,c);if(l==null)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(l),c)}function s(l,c,u,d){u=u||0,d=d||r;for(var h in c)if(o(c,h)){var f=c[h];f!==null&&(0,i.default)(f)?((0,i.default)(l[h])||(l[h]={}),u<d?s(l[h],f,u+1,d):l[h]=c[h]):(0,n.default)(f)?(l[h]=[],l[h]=l[h].concat(f)):f!==void 0&&(l[h]=f)}}var a=function(l){for(var c=[],u=1;u<arguments.length;u++)c[u-1]=arguments[u];for(var d=0;d<c.length;d+=1)s(l,c[d]);return l};e.default=a}}),GOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/extend.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(pVe()),i=t.__importDefault(fw()),r=function(o,s,a,l){(0,i.default)(s)||(a=s,s=o,o=function(){});var c=Object.create?function(d,h){return Object.create(d,{constructor:{value:h}})}:function(d,h){function f(){}f.prototype=d;var p=new f;return p.constructor=h,p},u=c(s.prototype,o);return o.prototype=(0,n.default)(u,o.prototype),o.superclass=c(s.prototype,s),(0,n.default)(u,a),(0,n.default)(o,l),o};e.default=r}}),KOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/index-of.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(yb()),i=function(r,o){if(!(0,n.default)(r))return-1;var s=Array.prototype.indexOf;if(s)return s.call(r,o);for(var a=-1,l=0;l<r.length;l++)if(r[l]===o){a=l;break}return a};e.default=i}}),YOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-empty.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(yN()),i=t.__importDefault(yb()),r=t.__importDefault(P9t()),o=t.__importDefault(M9t()),s=Object.prototype.hasOwnProperty;function a(l){if((0,n.default)(l))return!0;if((0,i.default)(l))return!l.length;var c=(0,r.default)(l);if(c==="Map"||c==="Set")return!l.size;if((0,o.default)(l))return!Object.keys(l).length;for(var u in l)if(s.call(l,u))return!1;return!0}e.default=a}}),O9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-equal.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(fVe()),i=t.__importDefault(yb()),r=t.__importDefault(W2()),o=function(s,a){if(s===a)return!0;if(!s||!a||(0,r.default)(s)||(0,r.default)(a))return!1;if((0,i.default)(s)||(0,i.default)(a)){if(s.length!==a.length)return!1;for(var l=!0,c=0;c<s.length&&(l=o(s[c],a[c]),!!l);c++);return l}if((0,n.default)(s)||(0,n.default)(a)){var u=Object.keys(s),d=Object.keys(a);if(u.length!==d.length)return!1;for(var l=!0,c=0;c<u.length&&(l=o(s[u[c]],a[u[c]]),!!l);c++);return l}return!1};e.default=o}}),QOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/is-equal-with.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(fw()),i=t.__importDefault(O9t());e.default=(function(r,o,s){return(0,n.default)(s)?!!s(r,o):(0,i.default)(r,o)})}}),ZOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/map.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(yb()),i=function(r,o){if(!(0,n.default)(r))return r;for(var s=[],a=0;a<r.length;a++){var l=r[a];s.push(o(l,a))}return s};e.default=i}}),XOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/map-values.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(yN()),i=t.__importDefault(ape()),r=function(o){return o};e.default=(function(o,s){s===void 0&&(s=r);var a={};return(0,i.default)(o)&&!(0,n.default)(o)&&Object.keys(o).forEach(function(l){a[l]=s(o[l],l)}),a})}}),JOn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/get.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(W2());e.default=(function(i,r,o){for(var s=0,a=(0,n.default)(r)?r.split("."):r;i&&s<a.length;)i=i[a[s++]];return i===void 0||s<a.length?o:i})}}),eRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/set.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(ape()),i=t.__importDefault(W2()),r=t.__importDefault(uT());e.default=(function(o,s,a){var l=o,c=(0,i.default)(s)?s.split("."):s;return c.forEach(function(u,d){d<c.length-1?((0,n.default)(l[u])||(l[u]=(0,r.default)(c[d+1])?[]:{}),l=l[u]):l[u]=a}),o})}}),tRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/pick.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(d7()),i=t.__importDefault(OK()),r=Object.prototype.hasOwnProperty;e.default=(function(o,s){if(o===null||!(0,i.default)(o))return{};var a={};return(0,n.default)(s,function(l){r.call(o,l)&&(a[l]=o[l])}),a})}}),nRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/omit.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(D9t());e.default=(function(i,r){return(0,n.default)(i,function(o,s,a){return r.includes(a)||(o[a]=s),o},{})})}}),iRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/throttle.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=(function(t,n,i){var r,o,s,a,l=0;i||(i={});var c=function(){l=i.leading===!1?0:Date.now(),r=null,a=t.apply(o,s),r||(o=s=null)},u=function(){var d=Date.now();!l&&i.leading===!1&&(l=d);var h=n-(d-l);return o=this,s=arguments,h<=0||h>n?(r&&(clearTimeout(r),r=null),l=d,a=t.apply(o,s),r||(o=s=null)):!r&&i.trailing!==!1&&(r=setTimeout(c,h)),a};return u.cancel=function(){clearTimeout(r),l=0,r=o=s=null},u})}}),rRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/to-array.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr)),n=t.__importDefault(yb());e.default=(function(i){return(0,n.default)(i)?Array.prototype.slice.call(i):[]})}}),oRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/unique-id.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t={};e.default=(function(n){return n=n||"g",t[n]?t[n]+=1:t[n]=1,n+t[n]})}}),sRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/noop.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=(function(){})}}),aRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/identity.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=(function(t){return t})}}),lRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/size.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=(Wn(),Cr(Sr)),n=t.__importDefault(yN()),i=t.__importDefault(yb());function r(o){return(0,n.default)(o)?0:(0,i.default)(o)?o.length:Object.keys(o).length}}}),cRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/cache.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(function(){function n(){this.map={}}return n.prototype.has=function(i){return this.map[i]!==void 0},n.prototype.get=function(i,r){var o=this.map[i];return o===void 0?r:o},n.prototype.set=function(i,r){this.map[i]=r},n.prototype.clear=function(){this.map={}},n.prototype.delete=function(i){delete this.map[i]},n.prototype.size=function(){return Object.keys(this.map).length},n})();e.default=t}}),R9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/lodash/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.has=e.forIn=e.toRadian=e.toInteger=e.toDegree=e.mod=e.minBy=e.min=e.maxBy=e.max=e.isPositive=e.isOdd=e.isNumberEqual=e.isNegative=e.isInteger=e.isEven=e.isDecimal=e.fixedBase=e.clamp=e.parseRadius=e.number2color=e.wrapBehavior=e.getWrapBehavior=e.groupToMap=e.groupBy=e.group=e.some=e.every=e.filter=e.endsWith=e.startsWith=e.last=e.head=e.valuesOfKey=e.uniq=e.union=e.sortBy=e.remove=e.reduce=e.pullAt=e.pull=e.getRange=e.flattenDeep=e.flatten=e.firstValue=e.findIndex=e.find=e.difference=e.includes=e.contains=void 0,e.set=e.get=e.assign=e.mix=e.mapValues=e.map=e.isEqualWith=e.isEqual=e.isEmpty=e.indexOf=e.extend=e.each=e.deepMix=e.memoize=e.debounce=e.clone=e.augment=e.clearAnimationFrame=e.requestAnimationFrame=e.isElement=e.isUndefined=e.isType=e.isString=e.isRegExp=e.isPrototype=e.isPlainObject=e.isObjectLike=e.isObject=e.isNumber=e.isNull=e.isNil=e.isFinite=e.isFunction=e.isError=e.isDate=e.isBoolean=e.isArrayLike=e.isArray=e.isArguments=e.getType=e.upperFirst=e.upperCase=e.substitute=e.lowerFirst=e.lowerCase=e.values=e.isMatch=e.keys=e.hasValue=e.hasKey=void 0,e.Cache=e.size=e.identity=e.noop=e.uniqueId=e.toString=e.toArray=e.throttle=e.omit=e.pick=void 0;var t=(Wn(),Cr(Sr)),n=hVe();Object.defineProperty(e,"contains",{enumerable:!0,get:function(){return t.__importDefault(n).default}}),Object.defineProperty(e,"includes",{enumerable:!0,get:function(){return t.__importDefault(n).default}});var i=jMn();Object.defineProperty(e,"difference",{enumerable:!0,get:function(){return t.__importDefault(i).default}});var r=zMn();Object.defineProperty(e,"find",{enumerable:!0,get:function(){return t.__importDefault(r).default}});var o=VMn();Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return t.__importDefault(o).default}});var s=HMn();Object.defineProperty(e,"firstValue",{enumerable:!0,get:function(){return t.__importDefault(s).default}});var a=WMn();Object.defineProperty(e,"flatten",{enumerable:!0,get:function(){return t.__importDefault(a).default}});var l=UMn();Object.defineProperty(e,"flattenDeep",{enumerable:!0,get:function(){return t.__importDefault(l).default}});var c=$Mn();Object.defineProperty(e,"getRange",{enumerable:!0,get:function(){return t.__importDefault(c).default}});var u=qMn();Object.defineProperty(e,"pull",{enumerable:!0,get:function(){return t.__importDefault(u).default}});var d=A9t();Object.defineProperty(e,"pullAt",{enumerable:!0,get:function(){return t.__importDefault(d).default}});var h=D9t();Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return t.__importDefault(h).default}});var f=GMn();Object.defineProperty(e,"remove",{enumerable:!0,get:function(){return t.__importDefault(f).default}});var p=KMn();Object.defineProperty(e,"sortBy",{enumerable:!0,get:function(){return t.__importDefault(p).default}});var g=YMn();Object.defineProperty(e,"union",{enumerable:!0,get:function(){return t.__importDefault(g).default}});var m=T9t();Object.defineProperty(e,"uniq",{enumerable:!0,get:function(){return t.__importDefault(m).default}});var v=QMn();Object.defineProperty(e,"valuesOfKey",{enumerable:!0,get:function(){return t.__importDefault(v).default}});var y=ZMn();Object.defineProperty(e,"head",{enumerable:!0,get:function(){return t.__importDefault(y).default}});var b=XMn();Object.defineProperty(e,"last",{enumerable:!0,get:function(){return t.__importDefault(b).default}});var w=JMn();Object.defineProperty(e,"startsWith",{enumerable:!0,get:function(){return t.__importDefault(w).default}});var E=eOn();Object.defineProperty(e,"endsWith",{enumerable:!0,get:function(){return t.__importDefault(E).default}});var A=w9t();Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return t.__importDefault(A).default}});var D=tOn();Object.defineProperty(e,"every",{enumerable:!0,get:function(){return t.__importDefault(D).default}});var T=nOn();Object.defineProperty(e,"some",{enumerable:!0,get:function(){return t.__importDefault(T).default}});var M=iOn();Object.defineProperty(e,"group",{enumerable:!0,get:function(){return t.__importDefault(M).default}});var P=k9t();Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return t.__importDefault(P).default}});var F=I9t();Object.defineProperty(e,"groupToMap",{enumerable:!0,get:function(){return t.__importDefault(F).default}});var N=rOn();Object.defineProperty(e,"getWrapBehavior",{enumerable:!0,get:function(){return t.__importDefault(N).default}});var j=oOn();Object.defineProperty(e,"wrapBehavior",{enumerable:!0,get:function(){return t.__importDefault(j).default}});var W=sOn();Object.defineProperty(e,"number2color",{enumerable:!0,get:function(){return t.__importDefault(W).default}});var J=aOn();Object.defineProperty(e,"parseRadius",{enumerable:!0,get:function(){return t.__importDefault(J).default}});var ee=lOn();Object.defineProperty(e,"clamp",{enumerable:!0,get:function(){return t.__importDefault(ee).default}});var Q=cOn();Object.defineProperty(e,"fixedBase",{enumerable:!0,get:function(){return t.__importDefault(Q).default}});var H=uOn();Object.defineProperty(e,"isDecimal",{enumerable:!0,get:function(){return t.__importDefault(H).default}});var q=dOn();Object.defineProperty(e,"isEven",{enumerable:!0,get:function(){return t.__importDefault(q).default}});var le=hOn();Object.defineProperty(e,"isInteger",{enumerable:!0,get:function(){return t.__importDefault(le).default}});var Y=fOn();Object.defineProperty(e,"isNegative",{enumerable:!0,get:function(){return t.__importDefault(Y).default}});var G=pOn();Object.defineProperty(e,"isNumberEqual",{enumerable:!0,get:function(){return t.__importDefault(G).default}});var pe=gOn();Object.defineProperty(e,"isOdd",{enumerable:!0,get:function(){return t.__importDefault(pe).default}});var U=mOn();Object.defineProperty(e,"isPositive",{enumerable:!0,get:function(){return t.__importDefault(U).default}});var K=x9t();Object.defineProperty(e,"max",{enumerable:!0,get:function(){return t.__importDefault(K).default}});var ie=vOn();Object.defineProperty(e,"maxBy",{enumerable:!0,get:function(){return t.__importDefault(ie).default}});var ce=E9t();Object.defineProperty(e,"min",{enumerable:!0,get:function(){return t.__importDefault(ce).default}});var de=yOn();Object.defineProperty(e,"minBy",{enumerable:!0,get:function(){return t.__importDefault(de).default}});var oe=bOn();Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return t.__importDefault(oe).default}});var me=_On();Object.defineProperty(e,"toDegree",{enumerable:!0,get:function(){return t.__importDefault(me).default}});var Ce=wOn();Object.defineProperty(e,"toInteger",{enumerable:!0,get:function(){return t.__importDefault(Ce).default}});var Se=COn();Object.defineProperty(e,"toRadian",{enumerable:!0,get:function(){return t.__importDefault(Se).default}});var De=SOn();Object.defineProperty(e,"forIn",{enumerable:!0,get:function(){return t.__importDefault(De).default}});var Me=L9t();Object.defineProperty(e,"has",{enumerable:!0,get:function(){return t.__importDefault(Me).default}});var qe=xOn();Object.defineProperty(e,"hasKey",{enumerable:!0,get:function(){return t.__importDefault(qe).default}});var $=EOn();Object.defineProperty(e,"hasValue",{enumerable:!0,get:function(){return t.__importDefault($).default}});var he=C9t();Object.defineProperty(e,"keys",{enumerable:!0,get:function(){return t.__importDefault(he).default}});var Ie=S9t();Object.defineProperty(e,"isMatch",{enumerable:!0,get:function(){return t.__importDefault(Ie).default}});var Be=N9t();Object.defineProperty(e,"values",{enumerable:!0,get:function(){return t.__importDefault(Be).default}});var ze=AOn();Object.defineProperty(e,"lowerCase",{enumerable:!0,get:function(){return t.__importDefault(ze).default}});var Ye=DOn();Object.defineProperty(e,"lowerFirst",{enumerable:!0,get:function(){return t.__importDefault(Ye).default}});var it=TOn();Object.defineProperty(e,"substitute",{enumerable:!0,get:function(){return t.__importDefault(it).default}});var ft=kOn();Object.defineProperty(e,"upperCase",{enumerable:!0,get:function(){return t.__importDefault(ft).default}});var ct=IOn();Object.defineProperty(e,"upperFirst",{enumerable:!0,get:function(){return t.__importDefault(ct).default}});var et=P9t();Object.defineProperty(e,"getType",{enumerable:!0,get:function(){return t.__importDefault(et).default}});var ut=LOn();Object.defineProperty(e,"isArguments",{enumerable:!0,get:function(){return t.__importDefault(ut).default}});var wt=gf();Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return t.__importDefault(wt).default}});var pt=yb();Object.defineProperty(e,"isArrayLike",{enumerable:!0,get:function(){return t.__importDefault(pt).default}});var _t=NOn();Object.defineProperty(e,"isBoolean",{enumerable:!0,get:function(){return t.__importDefault(_t).default}});var Rt=POn();Object.defineProperty(e,"isDate",{enumerable:!0,get:function(){return t.__importDefault(Rt).default}});var Yt=MOn();Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return t.__importDefault(Yt).default}});var Ut=fw();Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return t.__importDefault(Ut).default}});var Gt=OOn();Object.defineProperty(e,"isFinite",{enumerable:!0,get:function(){return t.__importDefault(Gt).default}});var Kt=yN();Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return t.__importDefault(Kt).default}});var ln=ROn();Object.defineProperty(e,"isNull",{enumerable:!0,get:function(){return t.__importDefault(ln).default}});var pn=uT();Object.defineProperty(e,"isNumber",{enumerable:!0,get:function(){return t.__importDefault(pn).default}});var wn=ape();Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return t.__importDefault(wn).default}});var Mn=fVe();Object.defineProperty(e,"isObjectLike",{enumerable:!0,get:function(){return t.__importDefault(Mn).default}});var Yn=OK();Object.defineProperty(e,"isPlainObject",{enumerable:!0,get:function(){return t.__importDefault(Yn).default}});var di=M9t();Object.defineProperty(e,"isPrototype",{enumerable:!0,get:function(){return t.__importDefault(di).default}});var Li=FOn();Object.defineProperty(e,"isRegExp",{enumerable:!0,get:function(){return t.__importDefault(Li).default}});var ke=W2();Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return t.__importDefault(ke).default}});var Z=h7();Object.defineProperty(e,"isType",{enumerable:!0,get:function(){return t.__importDefault(Z).default}});var ne=BOn();Object.defineProperty(e,"isUndefined",{enumerable:!0,get:function(){return t.__importDefault(ne).default}});var V=jOn();Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return t.__importDefault(V).default}});var re=zOn();Object.defineProperty(e,"requestAnimationFrame",{enumerable:!0,get:function(){return t.__importDefault(re).default}});var ge=VOn();Object.defineProperty(e,"clearAnimationFrame",{enumerable:!0,get:function(){return t.__importDefault(ge).default}});var we=HOn();Object.defineProperty(e,"augment",{enumerable:!0,get:function(){return t.__importDefault(we).default}});var ve=WOn();Object.defineProperty(e,"clone",{enumerable:!0,get:function(){return t.__importDefault(ve).default}});var _e=UOn();Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return t.__importDefault(_e).default}});var Ee=$On();Object.defineProperty(e,"memoize",{enumerable:!0,get:function(){return t.__importDefault(Ee).default}});var Le=qOn();Object.defineProperty(e,"deepMix",{enumerable:!0,get:function(){return t.__importDefault(Le).default}});var be=d7();Object.defineProperty(e,"each",{enumerable:!0,get:function(){return t.__importDefault(be).default}});var Fe=GOn();Object.defineProperty(e,"extend",{enumerable:!0,get:function(){return t.__importDefault(Fe).default}});var Ze=KOn();Object.defineProperty(e,"indexOf",{enumerable:!0,get:function(){return t.__importDefault(Ze).default}});var Ve=YOn();Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return t.__importDefault(Ve).default}});var dt=O9t();Object.defineProperty(e,"isEqual",{enumerable:!0,get:function(){return t.__importDefault(dt).default}});var Vt=QOn();Object.defineProperty(e,"isEqualWith",{enumerable:!0,get:function(){return t.__importDefault(Vt).default}});var Xe=ZOn();Object.defineProperty(e,"map",{enumerable:!0,get:function(){return t.__importDefault(Xe).default}});var Ht=XOn();Object.defineProperty(e,"mapValues",{enumerable:!0,get:function(){return t.__importDefault(Ht).default}});var Qt=pVe();Object.defineProperty(e,"mix",{enumerable:!0,get:function(){return t.__importDefault(Qt).default}}),Object.defineProperty(e,"assign",{enumerable:!0,get:function(){return t.__importDefault(Qt).default}});var Dt=JOn();Object.defineProperty(e,"get",{enumerable:!0,get:function(){return t.__importDefault(Dt).default}});var Tt=eRn();Object.defineProperty(e,"set",{enumerable:!0,get:function(){return t.__importDefault(Tt).default}});var en=tRn();Object.defineProperty(e,"pick",{enumerable:!0,get:function(){return t.__importDefault(en).default}});var Bt=nRn();Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t.__importDefault(Bt).default}});var Ue=iRn();Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return t.__importDefault(Ue).default}});var Lt=rRn();Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return t.__importDefault(Lt).default}});var at=RK();Object.defineProperty(e,"toString",{enumerable:!0,get:function(){return t.__importDefault(at).default}});var cn=oRn();Object.defineProperty(e,"uniqueId",{enumerable:!0,get:function(){return t.__importDefault(cn).default}});var Bn=sRn();Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return t.__importDefault(Bn).default}});var Tn=aRn();Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return t.__importDefault(Tn).default}});var xi=lRn();Object.defineProperty(e,"size",{enumerable:!0,get:function(){return t.__importDefault(xi).default}});var Zi=cRn();Object.defineProperty(e,"Cache",{enumerable:!0,get:function(){return t.__importDefault(Zi).default}})}}),F9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/color/torgb.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.toRGB=void 0;var t=R9t(),n=_9t(),i=/rgba?\(([\s.,0-9]+)\)/;function r(){var s=document.getElementById("antv-web-colour-picker");return s||(s=document.createElement("i"),s.id="antv-web-colour-picker",s.title="Web Colour Picker",s.style.display="none",document.body.appendChild(s),s)}function o(s){if(s[0]==="#"&&s.length===7)return s;var a=r();a.style.color=s;var l=document.defaultView.getComputedStyle(a,"").getPropertyValue("color"),c=i.exec(l),u=c[1].split(/\s*,\s*/).map(function(d){return Number(d)});return l=(0,n.arr2rgb)(u),l}e.toRGB=(0,t.memoize)(o,function(s){return s},256)}}),uRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/color/gradient.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.gradient=s;var t=b9t(),n=_9t(),i=F9t();function r(a,l,c,u){return a[u]+(l[u]-a[u])*c}function o(a,l){var c=isNaN(Number(l))||l<0?0:l>1?1:Number(l),u=a.length-1,d=Math.floor(u*c),h=u*c-d,f=a[d],p=d===u?f:a[d+1];return(0,n.arr2rgb)([r(f,p,h,0),r(f,p,h,1),r(f,p,h,2)])}function s(a){var l=typeof a=="string"?a.split("-"):a,c=l.map(function(u){return(0,t.rgb2arr)(u.indexOf("#")===-1?(0,i.toRGB)(u):u)});return function(u){return o(c,u)}}}}),dRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/color/tocssgradient.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.toCSSGradient=o;var t=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,n=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,i=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function r(s){return/^[r,R,L,l]{1}[\s]*\(/.test(s)}function o(s){if(r(s)){var a,l=void 0;if(s[0]==="l"){var c=t.exec(s),u=+c[1]+90;l=c[2],a="linear-gradient(".concat(u,"deg, ")}else if(s[0]==="r"){a="radial-gradient(";var c=n.exec(s);l=c[4]}var d=l.match(i);return d.forEach(function(h,f){var p=h.split(":");a+="".concat(p[1]," ").concat(Number(p[0])*100,"%"),f!==d.length-1&&(a+=", ")}),a+=")",a}return s}}}),hRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/color/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.toCSSGradient=e.toRGB=e.gradient=e.rgb2arr=void 0;var t=b9t();Object.defineProperty(e,"rgb2arr",{enumerable:!0,get:function(){return t.rgb2arr}});var n=uRn();Object.defineProperty(e,"gradient",{enumerable:!0,get:function(){return n.gradient}});var i=F9t();Object.defineProperty(e,"toRGB",{enumerable:!0,get:function(){return i.toRGB}});var r=dRn();Object.defineProperty(e,"toCSSGradient",{enumerable:!0,get:function(){return r.toCSSGradient}})}}),fRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/matrix/transform.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.transform=s;var t=vN();function n(a,l,c){var u=[0,0,0,0,0,0,0,0,0];return t.mat3.fromTranslation(u,c),t.mat3.multiply(a,u,l)}function i(a,l,c){var u=[0,0,0,0,0,0,0,0,0];return t.mat3.fromRotation(u,c),t.mat3.multiply(a,u,l)}function r(a,l,c){var u=[0,0,0,0,0,0,0,0,0];return t.mat3.fromScaling(u,c),t.mat3.multiply(a,u,l)}function o(a,l,c){return t.mat3.multiply(a,c,l)}function s(a,l){for(var c=a?[].concat(a):[1,0,0,0,1,0,0,0,1],u=0,d=l.length;u<d;u++){var h=l[u];switch(h[0]){case"t":n(c,c,[h[1],h[2]]);break;case"s":r(c,c,[h[1],h[2]]);break;case"r":i(c,c,h[1]);break;case"m":o(c,c,h[1]);break}}return c}}}),B9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/matrix/direction.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.direction=t;function t(n,i){return n[0]*i[1]-i[0]*n[1]}}}),pRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/matrix/angle-to.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.angleTo=i;var t=vN(),n=B9t();function i(r,o,s){var a=t.vec2.angle(r,o),l=(0,n.direction)(r,o)>=0;return s?l?Math.PI*2-a:a:l?a:Math.PI*2-a}}}),gRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/matrix/vertical.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.vertical=t;function t(n,i,r){return r?(n[0]=i[1],n[1]=-1*i[0]):(n[0]=-1*i[1],n[1]=i[0]),n}}}),mRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/matrix/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.vertical=e.direction=e.angleTo=e.transform=void 0;var t=fRn();Object.defineProperty(e,"transform",{enumerable:!0,get:function(){return t.transform}});var n=pRn();Object.defineProperty(e,"angleTo",{enumerable:!0,get:function(){return n.angleTo}});var i=B9t();Object.defineProperty(e,"direction",{enumerable:!0,get:function(){return i.direction}});var r=gRn();Object.defineProperty(e,"vertical",{enumerable:!0,get:function(){return r.vertical}})}}),vRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/process/round-path.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.roundPath=t;function t(n,i){if(i==="off")return[].concat(n);var r=typeof i=="number"&&i>=1?Math.pow(10,i):1;return n.map(function(o){var s=o.slice(1).map(Number).map(function(a){return i?Math.round(a*r)/r:Math.round(a)});return[o[0]].concat(s)})}}}),yRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/convert/path-2-string.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.path2String=n;var t=vRn();function n(i,r){return r===void 0&&(r="off"),(0,t.roundPath)(i,r).map(function(o){return o[0]+o.slice(1).join(" ")}).join("")}}}),j9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/parser/params-parser.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.paramsParser=void 0,e.paramsParser={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null}}}),bRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/process/fix-arc.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.fixArc=t;function t(n,i,r){if(n[r].length>7){n[r].shift();for(var o=n[r],s=r;o.length;)i[r]="A",n.splice(s+=1,0,["C"].concat(o.splice(0,6)));n.splice(r,1)}}}}),gVe=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/parser/params-count.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.paramsCount=void 0,e.paramsCount={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0}}}),z9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/is-path-array.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isPathArray=n;var t=gVe();function n(i){return Array.isArray(i)&&i.every(function(r){var o=r[0].toLowerCase();return t.paramsCount[o]===r.length-1&&"achlmqstvz".includes(o)})}}}),V9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/is-absolute-array.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isAbsoluteArray=n;var t=z9t();function n(i){return(0,t.isPathArray)(i)&&i.every(function(r){var o=r[0];return o===o.toUpperCase()})}}}),H9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/is-normalized-array.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isNormalizedArray=n;var t=V9t();function n(i){return(0,t.isAbsoluteArray)(i)&&i.every(function(r){var o=r[0];return"ACLMQZ".includes(o)})}}}),_Rn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/parser/finalize-segment.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.finalizeSegment=n;var t=gVe();function n(i){for(var r=i.pathValue[i.segmentStart],o=r.toLowerCase(),s=i.data;s.length>=t.paramsCount[o]&&(o==="m"&&s.length>2?(i.segments.push([r].concat(s.splice(0,2))),o="l",r=r==="m"?"l":"L"):i.segments.push([r].concat(s.splice(0,t.paramsCount[o]))),!!t.paramsCount[o]););}}}),wRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/parser/scan-flag.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.scanFlag=t;function t(n){var i=n.index,r=n.pathValue,o=r.charCodeAt(i);if(o===48){n.param=0,n.index+=1;return}if(o===49){n.param=1,n.index+=1;return}n.err='[path-util]: invalid Arc flag "'.concat(r[i],'", expecting 0 or 1 at index ').concat(i)}}}),W9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/parser/is-digit-start.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isDigitStart=t,e.isDigit=n;function t(i){return i>=48&&i<=57||i===43||i===45||i===46}function n(i){return i>=48&&i<=57}}}),CRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/parser/scan-param.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.scanParam=n;var t=W9t();function n(i){var r=i.max,o=i.pathValue,s=i.index,a=s,l=!1,c=!1,u=!1,d=!1,h;if(a>=r){i.err="[path-util]: Invalid path value at index ".concat(a,', "pathValue" is missing param');return}if(h=o.charCodeAt(a),(h===43||h===45)&&(a+=1,h=o.charCodeAt(a)),!(0,t.isDigit)(h)&&h!==46){i.err="[path-util]: Invalid path value at index ".concat(a,', "').concat(o[a],'" is not a number');return}if(h!==46){if(l=h===48,a+=1,h=o.charCodeAt(a),l&&a<r&&h&&(0,t.isDigit)(h)){i.err="[path-util]: Invalid path value at index ".concat(s,', "').concat(o[s],'" illegal number');return}for(;a<r&&(0,t.isDigit)(o.charCodeAt(a));)a+=1,c=!0;h=o.charCodeAt(a)}if(h===46){for(d=!0,a+=1;(0,t.isDigit)(o.charCodeAt(a));)a+=1,u=!0;h=o.charCodeAt(a)}if(h===101||h===69){if(d&&!c&&!u){i.err="[path-util]: Invalid path value at index ".concat(a,', "').concat(o[a],'" invalid float exponent');return}if(a+=1,h=o.charCodeAt(a),(h===43||h===45)&&(a+=1),a<r&&(0,t.isDigit)(o.charCodeAt(a)))for(;a<r&&(0,t.isDigit)(o.charCodeAt(a));)a+=1;else{i.err="[path-util]: Invalid path value at index ".concat(a,', "').concat(o[a],'" invalid integer exponent');return}}i.index=a,i.param=+i.pathValue.slice(s,a)}}}),SRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/parser/is-space.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isSpace=t;function t(n){var i=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];return n===10||n===13||n===8232||n===8233||n===32||n===9||n===11||n===12||n===160||n>=5760&&i.includes(n)}}}),U9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/parser/skip-spaces.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.skipSpaces=n;var t=SRn();function n(i){for(var r=i.pathValue,o=i.max;i.index<o&&(0,t.isSpace)(r.charCodeAt(i.index));)i.index+=1}}}),xRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/parser/is-path-command.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isPathCommand=t;function t(n){switch(n|32){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:return!0;default:return!1}}}}),ERn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/parser/is-arc-command.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isArcCommand=t;function t(n){return(n|32)===97}}}),ARn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/parser/scan-segment.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.scanSegment=c;var t=_Rn(),n=gVe(),i=wRn(),r=CRn(),o=U9t(),s=xRn(),a=W9t(),l=ERn();function c(u){var d=u.max,h=u.pathValue,f=u.index,p=h.charCodeAt(f),g=n.paramsCount[h[f].toLowerCase()];if(u.segmentStart=f,!(0,s.isPathCommand)(p)){u.err='[path-util]: Invalid path value "'.concat(h[f],'" is not a path command');return}if(u.index+=1,(0,o.skipSpaces)(u),u.data=[],!g){(0,t.finalizeSegment)(u);return}for(;;){for(var m=g;m>0;m-=1){if((0,l.isArcCommand)(p)&&(m===3||m===4)?(0,i.scanFlag)(u):(0,r.scanParam)(u),u.err.length)return;u.data.push(u.param),(0,o.skipSpaces)(u),u.index<d&&h.charCodeAt(u.index)===44&&(u.index+=1,(0,o.skipSpaces)(u))}if(u.index>=u.max||!(0,a.isDigitStart)(h.charCodeAt(u.index)))break}(0,t.finalizeSegment)(u)}}}),DRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/parser/path-parser.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PathParser=void 0;var t=(function(){function n(i){this.pathValue=i,this.segments=[],this.max=i.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}return n})();e.PathParser=t}}),lpe=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/parser/parse-path-string.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.parsePathString=o;var t=z9t(),n=ARn(),i=U9t(),r=DRn();function o(s){if((0,t.isPathArray)(s))return[].concat(s);var a=new r.PathParser(s);for((0,i.skipSpaces)(a);a.index<a.max&&!a.err.length;)(0,n.scanSegment)(a);return a.err?a.err:a.segments}}}),$9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/convert/path-2-absolute.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.path2Absolute=i;var t=V9t(),n=lpe();function i(r){if((0,t.isAbsoluteArray)(r))return[].concat(r);var o=(0,n.parsePathString)(r),s=0,a=0,l=0,c=0;return o.map(function(u){var d=u.slice(1).map(Number),h=u[0],f=h.toUpperCase();if(h==="M")return s=d[0],a=d[1],l=s,c=a,["M",s,a];var p;if(h!==f)switch(f){case"A":p=[f,d[0],d[1],d[2],d[3],d[4],d[5]+s,d[6]+a];break;case"V":p=[f,d[0]+a];break;case"H":p=[f,d[0]+s];break;default:{var g=d.map(function(v,y){return v+(y%2?a:s)});p=[f].concat(g)}}else p=[f].concat(d);var m=p.length;switch(f){case"Z":s=l,a=c;break;case"H":s=p[1];break;case"V":a=p[1];break;default:s=p[m-2],a=p[m-1],f==="M"&&(l=s,c=a)}return p})}}}),TRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/process/normalize-segment.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeSegment=t;function t(n,i){var r=n[0],o=i.x1,s=i.y1,a=i.x2,l=i.y2,c=n.slice(1).map(Number),u=n;if("TQ".includes(r)||(i.qx=null,i.qy=null),r==="H")u=["L",n[1],s];else if(r==="V")u=["L",o,n[1]];else if(r==="S"){var d=o*2-a,h=s*2-l;i.x1=d,i.y1=h,u=["C",d,h].concat(c)}else if(r==="T"){var f=o*2-i.qx,p=s*2-i.qy;i.qx=f,i.qy=p,u=["Q",f,p].concat(c)}else if(r==="Q"){var g=c[0],m=c[1];i.qx=g,i.qy=m}return u}}}),cpe=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/process/normalize-path.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.normalizePath=s;var t=(Wn(),Cr(Sr)),n=H9t(),i=j9t(),r=$9t(),o=TRn();function s(a){if((0,n.isNormalizedArray)(a))return[].concat(a);for(var l=(0,r.path2Absolute)(a),c=t.__assign({},i.paramsParser),u=0;u<l.length;u+=1){l[u]=(0,o.normalizeSegment)(l[u],c);var d=l[u],h=d.length;c.x1=+d[h-2],c.y1=+d[h-1],c.x2=+d[h-4]||c.x1,c.y2=+d[h-3]||c.y1}return l}}}),kRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/is-curve-array.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isCurveArray=n;var t=H9t();function n(i){return(0,t.isNormalizedArray)(i)&&i.every(function(r){var o=r[0];return"MC".includes(o)})}}}),IRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/rotate-vector.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.rotateVector=t;function t(n,i,r){var o=n*Math.cos(r)-i*Math.sin(r),s=n*Math.sin(r)+i*Math.cos(r);return{x:o,y:s}}}}),q9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/process/arc-2-cubic.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.arcToCubic=n;var t=IRn();function n(i,r,o,s,a,l,c,u,d,h){var f=i,p=r,g=o,m=s,v=u,y=d,b=Math.PI*120/180,w=Math.PI/180*(+a||0),E=[],A,D,T,M,P;if(h)D=h[0],T=h[1],M=h[2],P=h[3];else{A=(0,t.rotateVector)(f,p,-w),f=A.x,p=A.y,A=(0,t.rotateVector)(v,y,-w),v=A.x,y=A.y;var F=(f-v)/2,N=(p-y)/2,j=F*F/(g*g)+N*N/(m*m);j>1&&(j=Math.sqrt(j),g*=j,m*=j);var W=g*g,J=m*m,ee=(l===c?-1:1)*Math.sqrt(Math.abs((W*J-W*N*N-J*F*F)/(W*N*N+J*F*F)));M=ee*g*N/m+(f+v)/2,P=ee*-m*F/g+(p+y)/2,D=Math.asin(((p-P)/m*Math.pow(10,9)>>0)/Math.pow(10,9)),T=Math.asin(((y-P)/m*Math.pow(10,9)>>0)/Math.pow(10,9)),D=f<M?Math.PI-D:D,T=v<M?Math.PI-T:T,D<0&&(D=Math.PI*2+D),T<0&&(T=Math.PI*2+T),c&&D>T&&(D-=Math.PI*2),!c&&T>D&&(T-=Math.PI*2)}var Q=T-D;if(Math.abs(Q)>b){var H=T,q=v,le=y;T=D+b*(c&&T>D?1:-1),v=M+g*Math.cos(T),y=P+m*Math.sin(T),E=n(v,y,g,m,a,0,c,q,le,[T,H,M,P])}Q=T-D;var Y=Math.cos(D),G=Math.sin(D),pe=Math.cos(T),U=Math.sin(T),K=Math.tan(Q/4),ie=4/3*g*K,ce=4/3*m*K,de=[f,p],oe=[f+ie*G,p-ce*Y],me=[v+ie*U,y-ce*pe],Ce=[v,y];if(oe[0]=2*de[0]-oe[0],oe[1]=2*de[1]-oe[1],h)return oe.concat(me,Ce,E);E=oe.concat(me,Ce,E);for(var Se=[],De=0,Me=E.length;De<Me;De+=1)Se[De]=De%2?(0,t.rotateVector)(E[De-1],E[De],w).y:(0,t.rotateVector)(E[De],E[De+1],w).x;return Se}}}),LRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/process/quad-2-cubic.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.quadToCubic=t;function t(n,i,r,o,s,a){var l=.3333333333333333,c=2/3;return[l*n+c*r,l*i+c*o,l*s+c*r,l*a+c*o,s,a]}}}),mVe=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/mid-point.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.midPoint=t;function t(n,i,r){var o=n[0],s=n[1],a=i[0],l=i[1];return[o+(a-o)*r,s+(l-s)*r]}}}),NRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/process/line-2-cubic.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.lineToCubic=void 0;var t=(Wn(),Cr(Sr)),n=mVe(),i=function(r,o,s,a){var l=.5,c=(0,n.midPoint)([r,o],[s,a],l);return t.__spreadArray(t.__spreadArray([],c,!0),[s,a,s,a],!1)};e.lineToCubic=i}}),PRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/process/segment-2-cubic.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.segmentToCubic=r;var t=q9t(),n=LRn(),i=NRn();function r(o,s){var a=o[0],l=o.slice(1).map(Number),c=l[0],u=l[1],d,h=s.x1,f=s.y1,p=s.x,g=s.y;switch("TQ".includes(a)||(s.qx=null,s.qy=null),a){case"M":return s.x=c,s.y=u,o;case"A":return d=[h,f].concat(l),["C"].concat((0,t.arcToCubic)(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9]));case"Q":return s.qx=c,s.qy=u,d=[h,f].concat(l),["C"].concat((0,n.quadToCubic)(d[0],d[1],d[2],d[3],d[4],d[5]));case"L":return["C"].concat((0,i.lineToCubic)(h,f,c,u));case"Z":return h===p&&f===g?["C",h,f,p,g,p,g]:["C"].concat((0,i.lineToCubic)(h,f,p,g))}return o}}}),G9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/convert/path-2-curve.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.path2Curve=a;var t=(Wn(),Cr(Sr)),n=j9t(),i=bRn(),r=cpe(),o=kRn(),s=PRn();function a(l,c){if(c===void 0&&(c=!1),(0,o.isCurveArray)(l)){var u=[].concat(l);return c?[u,[]]:u}for(var d=(0,r.normalizePath)(l),h=t.__assign({},n.paramsParser),f=[],p="",g=d.length,m,v,y=[],b=0;b<g;b+=1){d[b]&&(p=d[b][0]),f[b]=p;var w=(0,s.segmentToCubic)(d[b],h);d[b]=w,(0,i.fixArc)(d,f,b),g=d.length,p==="Z"&&y.push(b),m=d[b],v=m.length,h.x1=+m[v-2],h.y1=+m[v-1],h.x2=+m[v-4]||h.x1,h.y2=+m[v-3]||h.y1}return c?[d,y]:d}}}),MRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/convert/path-2-array.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.path2Array=n;var t=lpe();function n(i){return(0,t.parsePathString)(i)}}}),ORn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/process/clone-path.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.clonePath=t;function t(n){return n.map(function(i){return Array.isArray(i)?[].concat(i):i})}}}),RRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/process/reverse-curve.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reverseCurve=t;function t(n){var i=n.slice(1).map(function(r,o,s){return o?s[o-1].slice(-2).concat(r.slice(1)):n[0].slice(1).concat(r.slice(1))}).map(function(r){return r.map(function(o,s){return r[r.length-s-2*(1-s%2)]})}).reverse();return[["M"].concat(i[0].slice(0,2))].concat(i.map(function(r){return["C"].concat(r.slice(2))}))}}}),f7=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/distance-square-root.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.distanceSquareRoot=t;function t(n,i){return Math.sqrt((n[0]-i[0])*(n[0]-i[0])+(n[1]-i[1])*(n[1]-i[1]))}}}),K9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/segment-line-factory.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.segmentLineFactory=i;var t=mVe(),n=f7();function i(r,o,s,a,l){var c=(0,n.distanceSquareRoot)([r,o],[s,a]),u={x:0,y:0};if(typeof l=="number")if(l<=0)u={x:r,y:o};else if(l>=c)u={x:s,y:a};else{var d=(0,t.midPoint)([r,o],[s,a],l/c),h=d[0],f=d[1];u={x:h,y:f}}return{length:c,point:u,min:{x:Math.min(r,s),y:Math.min(o,a)},max:{x:Math.max(r,s),y:Math.max(o,a)}}}}}),FRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/segment-arc-factory.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.segmentArcFactory=o;var t=K9t(),n=f7();function i(s,a){var l=s.x,c=s.y,u=a.x,d=a.y,h=l*u+c*d,f=Math.sqrt((Math.pow(l,2)+Math.pow(c,2))*(Math.pow(u,2)+Math.pow(d,2))),p=l*d-c*u<0?-1:1,g=p*Math.acos(h/f);return g}function r(s,a,l,c,u,d,h,f,p,g){var m=Math.abs,v=Math.sin,y=Math.cos,b=Math.sqrt,w=Math.PI,E=m(l),A=m(c),D=(u%360+360)%360,T=D*(w/180);if(s===f&&a===p)return{x:s,y:a};if(E===0||A===0)return(0,t.segmentLineFactory)(s,a,f,p,g).point;var M=(s-f)/2,P=(a-p)/2,F={x:y(T)*M+v(T)*P,y:-v(T)*M+y(T)*P},N=Math.pow(F.x,2)/Math.pow(E,2)+Math.pow(F.y,2)/Math.pow(A,2);N>1&&(E*=b(N),A*=b(N));var j=Math.pow(E,2)*Math.pow(A,2)-Math.pow(E,2)*Math.pow(F.y,2)-Math.pow(A,2)*Math.pow(F.x,2),W=Math.pow(E,2)*Math.pow(F.y,2)+Math.pow(A,2)*Math.pow(F.x,2),J=j/W;J=J<0?0:J;var ee=(d!==h?1:-1)*b(J),Q={x:ee*(E*F.y/A),y:ee*(-(A*F.x)/E)},H={x:y(T)*Q.x-v(T)*Q.y+(s+f)/2,y:v(T)*Q.x+y(T)*Q.y+(a+p)/2},q={x:(F.x-Q.x)/E,y:(F.y-Q.y)/A},le=i({x:1,y:0},q),Y={x:(-F.x-Q.x)/E,y:(-F.y-Q.y)/A},G=i(q,Y);!h&&G>0?G-=2*w:h&&G<0&&(G+=2*w),G%=2*w;var pe=le+G*g,U=E*y(pe),K=A*v(pe),ie={x:y(T)*U-v(T)*K+H.x,y:v(T)*U+y(T)*K+H.y};return ie}function o(s,a,l,c,u,d,h,f,p,g,m){var v,y=m.bbox,b=y===void 0?!0:y,w=m.length,E=w===void 0?!0:w,A=m.sampleSize,D=A===void 0?30:A,T=typeof g=="number",M=s,P=a,F=0,N=[M,P,F],j=[M,P],W=0,J={x:0,y:0},ee=[{x:M,y:P}];T&&g<=0&&(J={x:M,y:P});for(var Q=0;Q<=D;Q+=1){if(W=Q/D,v=r(s,a,l,c,u,d,h,f,p,W),M=v.x,P=v.y,b&&ee.push({x:M,y:P}),E&&(F+=(0,n.distanceSquareRoot)(j,[M,P])),j=[M,P],T&&F>=g&&g>N[2]){var H=(F-g)/(F-N[2]);J={x:j[0]*(1-H)+N[0]*H,y:j[1]*(1-H)+N[1]*H}}N=[M,P,F]}return T&&g>=F&&(J={x:f,y:p}),{length:F,point:J,min:{x:Math.min.apply(null,ee.map(function(q){return q.x})),y:Math.min.apply(null,ee.map(function(q){return q.y}))},max:{x:Math.max.apply(null,ee.map(function(q){return q.x})),y:Math.max.apply(null,ee.map(function(q){return q.y}))}}}}}),Y9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/segment-cubic-factory.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.segmentCubicFactory=i;var t=f7();function n(r,o,s,a,l,c,u,d,h){var f=1-h;return{x:Math.pow(f,3)*r+3*Math.pow(f,2)*h*s+3*f*Math.pow(h,2)*l+Math.pow(h,3)*u,y:Math.pow(f,3)*o+3*Math.pow(f,2)*h*a+3*f*Math.pow(h,2)*c+Math.pow(h,3)*d}}function i(r,o,s,a,l,c,u,d,h,f){var p,g=f.bbox,m=g===void 0?!0:g,v=f.length,y=v===void 0?!0:v,b=f.sampleSize,w=b===void 0?10:b,E=typeof h=="number",A=r,D=o,T=0,M=[A,D,T],P=[A,D],F=0,N={x:0,y:0},j=[{x:A,y:D}];E&&h<=0&&(N={x:A,y:D});for(var W=0;W<=w;W+=1){if(F=W/w,p=n(r,o,s,a,l,c,u,d,F),A=p.x,D=p.y,m&&j.push({x:A,y:D}),y&&(T+=(0,t.distanceSquareRoot)(P,[A,D])),P=[A,D],E&&T>=h&&h>M[2]){var J=(T-h)/(T-M[2]);N={x:P[0]*(1-J)+M[0]*J,y:P[1]*(1-J)+M[1]*J}}M=[A,D,T]}return E&&h>=T&&(N={x:u,y:d}),{length:T,point:N,min:{x:Math.min.apply(null,j.map(function(ee){return ee.x})),y:Math.min.apply(null,j.map(function(ee){return ee.y}))},max:{x:Math.max.apply(null,j.map(function(ee){return ee.x})),y:Math.max.apply(null,j.map(function(ee){return ee.y}))}}}}}),BRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/segment-quad-factory.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.segmentQuadFactory=i;var t=f7();function n(r,o,s,a,l,c,u){var d=1-u;return{x:Math.pow(d,2)*r+2*d*u*s+Math.pow(u,2)*l,y:Math.pow(d,2)*o+2*d*u*a+Math.pow(u,2)*c}}function i(r,o,s,a,l,c,u,d){var h,f=d.bbox,p=f===void 0?!0:f,g=d.length,m=g===void 0?!0:g,v=d.sampleSize,y=v===void 0?10:v,b=typeof u=="number",w=r,E=o,A=0,D=[w,E,A],T=[w,E],M=0,P={x:0,y:0},F=[{x:w,y:E}];b&&u<=0&&(P={x:w,y:E});for(var N=0;N<=y;N+=1){if(M=N/y,h=n(r,o,s,a,l,c,M),w=h.x,E=h.y,p&&F.push({x:w,y:E}),m&&(A+=(0,t.distanceSquareRoot)(T,[w,E])),T=[w,E],b&&A>=u&&u>D[2]){var j=(A-u)/(A-D[2]);P={x:T[0]*(1-j)+D[0]*j,y:T[1]*(1-j)+D[1]*j}}D=[w,E,A]}return b&&u>=A&&(P={x:l,y:c}),{length:A,point:P,min:{x:Math.min.apply(null,F.map(function(W){return W.x})),y:Math.min.apply(null,F.map(function(W){return W.y}))},max:{x:Math.max.apply(null,F.map(function(W){return W.x})),y:Math.max.apply(null,F.map(function(W){return W.y}))}}}}}),upe=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/path-length-factory.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.pathLengthFactory=s;var t=cpe(),n=K9t(),i=FRn(),r=Y9t(),o=BRn();function s(a,l,c){for(var u,d,h,f,p,g,m=(0,t.normalizePath)(a),v=typeof l=="number",y,b=[],w,E=0,A=0,D=0,T=0,M,P=[],F=[],N=0,j={x:0,y:0},W=j,J=j,ee=j,Q=0,H=0,q=m.length;H<q;H+=1)M=m[H],w=M[0],y=w==="M",b=y?b:[E,A].concat(M.slice(1)),y?(D=M[1],T=M[2],j={x:D,y:T},W=j,N=0,v&&l<.001&&(ee=j)):w==="L"?(u=(0,n.segmentLineFactory)(b[0],b[1],b[2],b[3],(l||0)-Q),N=u.length,j=u.min,W=u.max,J=u.point):w==="A"?(d=(0,i.segmentArcFactory)(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],(l||0)-Q,c||{}),N=d.length,j=d.min,W=d.max,J=d.point):w==="C"?(h=(0,r.segmentCubicFactory)(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],(l||0)-Q,c||{}),N=h.length,j=h.min,W=h.max,J=h.point):w==="Q"?(f=(0,o.segmentQuadFactory)(b[0],b[1],b[2],b[3],b[4],b[5],(l||0)-Q,c||{}),N=f.length,j=f.min,W=f.max,J=f.point):w==="Z"&&(b=[E,A,D,T],p=(0,n.segmentLineFactory)(b[0],b[1],b[2],b[3],(l||0)-Q),N=p.length,j=p.min,W=p.max,J=p.point),v&&Q<l&&Q+N>=l&&(ee=J),F.push(W),P.push(j),Q+=N,g=w!=="Z"?M.slice(-2):[D,T],E=g[0],A=g[1];return v&&l>=Q&&(ee={x:E,y:A}),{length:Q,point:ee,min:{x:Math.min.apply(null,P.map(function(le){return le.x})),y:Math.min.apply(null,P.map(function(le){return le.y}))},max:{x:Math.max.apply(null,F.map(function(le){return le.x})),y:Math.max.apply(null,F.map(function(le){return le.y}))}}}}}),jRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/get-path-bbox.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getPathBBox=i;var t=(Wn(),Cr(Sr)),n=upe();function i(r,o){if(!r)return{x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var s=(0,n.pathLengthFactory)(r,void 0,t.__assign(t.__assign({},o),{length:!1})),a=s.min,l=a.x,c=a.y,u=s.max,d=u.x,h=u.y,f=d-l,p=h-c;return{width:f,height:p,x:l,y:c,x2:d,y2:h,cx:l+f/2,cy:c+p/2,cz:Math.max(f,p)+Math.min(f,p)/2}}}}),vVe=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/get-total-length.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getTotalLength=i;var t=(Wn(),Cr(Sr)),n=upe();function i(r,o){return(0,n.pathLengthFactory)(r,void 0,t.__assign(t.__assign({},o),{bbox:!1,length:!0})).length}}}),zRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/get-path-bbox-total-length.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getPathBBoxTotalLength=i;var t=(Wn(),Cr(Sr)),n=upe();function i(r,o){if(!r)return{length:0,x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var s=(0,n.pathLengthFactory)(r,void 0,t.__assign(t.__assign({},o),{bbox:!0,length:!0})),a=s.length,l=s.min,c=l.x,u=l.y,d=s.max,h=d.x,f=d.y,p=h-c,g=f-u;return{length:a,width:p,height:g,x:c,y:u,x2:h,y2:f,cx:c+p/2,cy:u+g/2,cz:Math.max(p,g)+Math.min(p,g)/2}}}}),VRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/get-rotated-curve.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getRotatedCurve=i;var t=f7();function n(r){var o=r.length,s=o-1;return r.map(function(a,l){return r.map(function(c,u){var d=l+u,h;return u===0||r[d]&&r[d][0]==="M"?(h=r[d],["M"].concat(h.slice(-2))):(d>=o&&(d-=s),r[d])})})}function i(r,o){var s=r.length-1,a=[],l=0,c=0,u=n(r);return u.forEach(function(d,h){r.slice(1).forEach(function(f,p){c+=(0,t.distanceSquareRoot)(r[(h+p)%s].slice(-2),o[p%s].slice(-2))}),a[h]=c,c=0}),l=a.indexOf(Math.min.apply(null,a)),u[l]}}}),Q9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/get-path-area.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getPathArea=i;var t=G9t();function n(r,o,s,a,l,c,u,d){return 3*((d-o)*(s+l)-(u-r)*(a+c)+a*(r-l)-s*(o-c)+d*(l+r/3)-u*(c+o/3))/20}function i(r){var o=0,s=0,a=0;return(0,t.path2Curve)(r).map(function(l){var c;if(l[0]==="M")return o=l[1],s=l[2],0;var u=l.slice(1),d=u[0],h=u[1],f=u[2],p=u[3],g=u[4],m=u[5];return a=n(o,s,d,h,f,p,g,m),c=l.slice(-2),o=c[0],s=c[1],a}).reduce(function(l,c){return l+c},0)}}}),HRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/get-draw-direction.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDrawDirection=n;var t=Q9t();function n(i){return(0,t.getPathArea)(i)>=0}}}),Z9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/get-point-at-length.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getPointAtLength=i;var t=(Wn(),Cr(Sr)),n=upe();function i(r,o,s){return(0,n.pathLengthFactory)(r,o,t.__assign(t.__assign({},s),{bbox:!1,length:!0})).point}}}),WRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/get-properties-at-length.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getPropertiesAtLength=i;var t=lpe(),n=vVe();function i(r,o){var s=(0,t.parsePathString)(r);if(typeof s=="string")throw TypeError(s);var a=s.slice(),l=(0,n.getTotalLength)(a),c=a.length-1,u=0,d=0,h=s[0],f=h.slice(-2),p=f[0],g=f[1],m={x:p,y:g};if(c<=0||!o||!Number.isFinite(o))return{segment:h,index:0,length:d,point:m,lengthAtSegment:u};if(o>=l)return a=s.slice(0,-1),u=(0,n.getTotalLength)(a),d=l-u,{segment:s[c],index:c,length:d,lengthAtSegment:u};for(var v=[];c>0;)h=a[c],a=a.slice(0,-1),u=(0,n.getTotalLength)(a),d=l-u,l=u,v.push({segment:h,index:c,length:d,lengthAtSegment:u}),c-=1;return v.find(function(y){var b=y.lengthAtSegment;return b<=o})}}}),URn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/get-properties-at-point.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getPropertiesAtPoint=s;var t=lpe(),n=cpe(),i=Z9t(),r=WRn(),o=vVe();function s(a,l){for(var c=(0,t.parsePathString)(a),u=(0,n.normalizePath)(c),d=(0,o.getTotalLength)(c),h=function(N){var j=N.x-l.x,W=N.y-l.y;return j*j+W*W},f=8,p,g=0,m,v=0,y=1/0,b=0;b<=d;b+=f)p=(0,i.getPointAtLength)(u,b),g=h(p),g<y&&(m=p,v=b,y=g);f/=2;for(var w,E,A=0,D=0,T=0,M=0;f>.5;)A=v-f,w=(0,i.getPointAtLength)(u,A),T=h(w),D=v+f,E=(0,i.getPointAtLength)(u,D),M=h(E),A>=0&&T<y?(m=w,v=A,y=T):D<=d&&M<y?(m=E,v=D,y=M):f/=2;var P=(0,r.getPropertiesAtLength)(c,v),F=Math.sqrt(y);return{closest:m,distance:F,segment:P}}}}),$Rn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/is-point-in-stroke.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isPointInStroke=n;var t=URn();function n(i,r){var o=(0,t.getPropertiesAtPoint)(i,r).distance;return Math.abs(o)<.001}}}),qRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/util/equalize-segments.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.equalizeSegments=s;var t=mVe(),n=Y9t(),i=50;function r(a,l){l===void 0&&(l=.5);var c=a.slice(0,2),u=a.slice(2,4),d=a.slice(4,6),h=a.slice(6,8),f=(0,t.midPoint)(c,u,l),p=(0,t.midPoint)(u,d,l),g=(0,t.midPoint)(d,h,l),m=(0,t.midPoint)(f,p,l),v=(0,t.midPoint)(p,g,l),y=(0,t.midPoint)(m,v,l);return[["C"].concat(f,m,y),["C"].concat(v,g,h)]}function o(a){return a.map(function(l,c,u){var d=c&&u[c-1].slice(-2).concat(l.slice(1)),h=c?(0,n.segmentCubicFactory)(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],{bbox:!1}).length:0,f;return c?f=h?r(d):[l,l]:f=[l],{s:l,ss:f,l:h}})}function s(a,l,c,u){if(u===void 0&&(u=0),u>i)return console.warn("Maximum recursion depth reached in equalizeSegments"),[a,l];var d=o(a),h=o(l),f=d.length,p=h.length,g=d.filter(function(T){return T.l}).length,m=h.filter(function(T){return T.l}).length,v=d.filter(function(T){return T.l}).reduce(function(T,M){var P=M.l;return T+P},0)/g||0,y=h.filter(function(T){return T.l}).reduce(function(T,M){var P=M.l;return T+P},0)/m||0,b=c||Math.max(f,p),w=[v,y],E=[b-f,b-p],A=0,D=[d,h].map(function(T,M){return T.l===b?T.map(function(P){return P.s}):T.map(function(P,F){return A=F&&E[M]&&P.l>=w[M],E[M]-=A?1:0,A?P.ss:[P.s]}).flat()});return D[0].length===D[1].length?D:s(D[0],D[1],b,u+1)}}}),GRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/types.js"(e){Object.defineProperty(e,"__esModule",{value:!0})}}),KRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/path/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.equalizeSegments=e.distanceSquareRoot=e.isPointInStroke=e.getPointAtLength=e.getDrawDirection=e.getPathArea=e.getRotatedCurve=e.getPathBBoxTotalLength=e.getTotalLength=e.getPathBBox=e.arcToCubic=e.reverseCurve=e.normalizePath=e.clonePath=e.path2Array=e.path2Absolute=e.path2Curve=e.path2String=void 0;var t=(Wn(),Cr(Sr)),n=yRn();Object.defineProperty(e,"path2String",{enumerable:!0,get:function(){return n.path2String}});var i=G9t();Object.defineProperty(e,"path2Curve",{enumerable:!0,get:function(){return i.path2Curve}});var r=$9t();Object.defineProperty(e,"path2Absolute",{enumerable:!0,get:function(){return r.path2Absolute}});var o=MRn();Object.defineProperty(e,"path2Array",{enumerable:!0,get:function(){return o.path2Array}});var s=ORn();Object.defineProperty(e,"clonePath",{enumerable:!0,get:function(){return s.clonePath}});var a=cpe();Object.defineProperty(e,"normalizePath",{enumerable:!0,get:function(){return a.normalizePath}});var l=RRn();Object.defineProperty(e,"reverseCurve",{enumerable:!0,get:function(){return l.reverseCurve}});var c=q9t();Object.defineProperty(e,"arcToCubic",{enumerable:!0,get:function(){return c.arcToCubic}});var u=jRn();Object.defineProperty(e,"getPathBBox",{enumerable:!0,get:function(){return u.getPathBBox}});var d=vVe();Object.defineProperty(e,"getTotalLength",{enumerable:!0,get:function(){return d.getTotalLength}});var h=zRn();Object.defineProperty(e,"getPathBBoxTotalLength",{enumerable:!0,get:function(){return h.getPathBBoxTotalLength}});var f=VRn();Object.defineProperty(e,"getRotatedCurve",{enumerable:!0,get:function(){return f.getRotatedCurve}});var p=Q9t();Object.defineProperty(e,"getPathArea",{enumerable:!0,get:function(){return p.getPathArea}});var g=HRn();Object.defineProperty(e,"getDrawDirection",{enumerable:!0,get:function(){return g.getDrawDirection}});var m=Z9t();Object.defineProperty(e,"getPointAtLength",{enumerable:!0,get:function(){return m.getPointAtLength}});var v=$Rn();Object.defineProperty(e,"isPointInStroke",{enumerable:!0,get:function(){return v.isPointInStroke}});var y=f7();Object.defineProperty(e,"distanceSquareRoot",{enumerable:!0,get:function(){return y.distanceSquareRoot}});var b=qRn();Object.defineProperty(e,"equalizeSegments",{enumerable:!0,get:function(){return b.equalizeSegments}}),t.__exportStar(GRn(),e)}}),X9t=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/math/is-point-in-polygon.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isPointInPolygon=r;var t=1e-6;function n(o){return Math.abs(o)<t?0:o<0?-1:1}function i(o,s,a){return(a[0]-o[0])*(s[1]-o[1])===(s[0]-o[0])*(a[1]-o[1])&&Math.min(o[0],s[0])<=a[0]&&a[0]<=Math.max(o[0],s[0])&&Math.min(o[1],s[1])<=a[1]&&a[1]<=Math.max(o[1],s[1])}function r(o,s,a){var l=!1,c=o.length;if(c<=2)return!1;for(var u=0;u<c;u++){var d=o[u],h=o[(u+1)%c];if(i(d,h,[s,a]))return!0;n(d[1]-a)>0!=n(h[1]-a)>0&&n(s-(a-d[1])*(d[0]-h[0])/(d[1]-h[1])-d[0])<0&&(l=!l)}return l}}}),YRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/math/is-polygons-intersect.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isPolygonsIntersect=l;var t=X9t(),n=function(c,u,d){return c>=u&&c<=d};function i(c,u,d,h){var f=.001,p={x:d.x-c.x,y:d.y-c.y},g={x:u.x-c.x,y:u.y-c.y},m={x:h.x-d.x,y:h.y-d.y},v=g.x*m.y-g.y*m.x,y=v*v,b=g.x*g.x+g.y*g.y,w=m.x*m.x+m.y*m.y,E=null;if(y>f*b*w){var A=(p.x*m.y-p.y*m.x)/v,D=(p.x*g.y-p.y*g.x)/v;n(A,0,1)&&n(D,0,1)&&(E={x:c.x+A*g.x,y:c.y+A*g.y})}return E}function r(c){for(var u=[],d=c.length,h=0;h<d-1;h++){var f=c[h],p=c[h+1];u.push({from:{x:f[0],y:f[1]},to:{x:p[0],y:p[1]}})}if(u.length>1){var g=c[0],m=c[d-1];u.push({from:{x:m[0],y:m[1]},to:{x:g[0],y:g[1]}})}return u}function o(c,u){var d=!1;return c.forEach(function(h){if(i(h.from,h.to,u.from,u.to))return d=!0,!1}),d}function s(c){var u=c.map(function(h){return h[0]}),d=c.map(function(h){return h[1]});return{minX:Math.min.apply(null,u),maxX:Math.max.apply(null,u),minY:Math.min.apply(null,d),maxY:Math.max.apply(null,d)}}function a(c,u){return!(u.minX>c.maxX||u.maxX<c.minX||u.minY>c.maxY||u.maxY<c.minY)}function l(c,u){if(c.length<2||u.length<2)return!1;var d=s(c),h=s(u);if(!a(d,h))return!1;var f=!1;if(u.forEach(function(v){if((0,t.isPointInPolygon)(c,v[0],v[1]))return f=!0,!1}),f||(c.forEach(function(v){if((0,t.isPointInPolygon)(u,v[0],v[1]))return f=!0,!1}),f))return!0;var p=r(c),g=r(u),m=!1;return g.forEach(function(v){if(o(p,v))return m=!0,!1}),m}}}),QRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/math/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isPolygonsIntersect=e.isPointInPolygon=void 0;var t=X9t();Object.defineProperty(e,"isPointInPolygon",{enumerable:!0,get:function(){return t.isPointInPolygon}});var n=YRn();Object.defineProperty(e,"isPolygonsIntersect",{enumerable:!0,get:function(){return n.isPolygonsIntersect}})}}),ZRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/dom/create-dom.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createDOM=t;function t(n){var i=document.createElement("div");i.innerHTML=n;var r=i.childNodes[0];return r&&i.contains(r)&&i.removeChild(r),r}}}),XRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/dom/modify-css.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.modifyCSS=t;function t(n,i){if(n)return Object.keys(i).forEach(function(r){n.style[r]=i[r]}),n}}}),JRn=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/dom/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.modifyCSS=e.createDOM=void 0;var t=ZRn();Object.defineProperty(e,"createDOM",{enumerable:!0,get:function(){return t.createDOM}});var n=XRn();Object.defineProperty(e,"modifyCSS",{enumerable:!0,get:function(){return n.modifyCSS}})}}),Pi=Ot({"../node_modules/.pnpm/@antv+util@3.3.11/node_modules/@antv/util/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Wn(),Cr(Sr));t.__exportStar(hRn(),e),t.__exportStar(mRn(),e),t.__exportStar(KRn(),e),t.__exportStar(R9t(),e),t.__exportStar(QRn(),e),t.__exportStar(JRn(),e)}}),e2n=Ot({"../node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js"(e,t){t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),t2n=Ot({"../node_modules/.pnpm/is-arrayish@0.3.4/node_modules/is-arrayish/index.js"(e,t){t.exports=function(i){return!i||typeof i=="string"?!1:i instanceof Array||Array.isArray(i)||i.length>=0&&(i.splice instanceof Function||Object.getOwnPropertyDescriptor(i,i.length-1)&&i.constructor.name!=="String")}}}),n2n=Ot({"../node_modules/.pnpm/simple-swizzle@0.2.4/node_modules/simple-swizzle/index.js"(e,t){var n=t2n(),i=Array.prototype.concat,r=Array.prototype.slice,o=t.exports=function(a){for(var l=[],c=0,u=a.length;c<u;c++){var d=a[c];n(d)?l=i.call(l,r.call(d)):l.push(d)}return l};o.wrap=function(s){return function(){return s(o(arguments))}}}}),i2n=Ot({"../node_modules/.pnpm/color-string@1.9.1/node_modules/color-string/index.js"(e,t){var n=e2n(),i=n2n(),r=Object.hasOwnProperty,o=Object.create(null);for(s in n)r.call(n,s)&&(o[n[s]]=s);var s,a=t.exports={to:{},get:{}};a.get=function(u){var d=u.substring(0,3).toLowerCase(),h,f;switch(d){case"hsl":h=a.get.hsl(u),f="hsl";break;case"hwb":h=a.get.hwb(u),f="hwb";break;default:h=a.get.rgb(u),f="rgb";break}return h?{model:f,value:h}:null},a.get.rgb=function(u){if(!u)return null;var d=/^#([a-f0-9]{3,4})$/i,h=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,f=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,p=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,g=/^(\w+)$/,m=[0,0,0,1],v,y,b;if(v=u.match(h)){for(b=v[2],v=v[1],y=0;y<3;y++){var w=y*2;m[y]=parseInt(v.slice(w,w+2),16)}b&&(m[3]=parseInt(b,16)/255)}else if(v=u.match(d)){for(v=v[1],b=v[3],y=0;y<3;y++)m[y]=parseInt(v[y]+v[y],16);b&&(m[3]=parseInt(b+b,16)/255)}else if(v=u.match(f)){for(y=0;y<3;y++)m[y]=parseInt(v[y+1],0);v[4]&&(v[5]?m[3]=parseFloat(v[4])*.01:m[3]=parseFloat(v[4]))}else if(v=u.match(p)){for(y=0;y<3;y++)m[y]=Math.round(parseFloat(v[y+1])*2.55);v[4]&&(v[5]?m[3]=parseFloat(v[4])*.01:m[3]=parseFloat(v[4]))}else return(v=u.match(g))?v[1]==="transparent"?[0,0,0,0]:r.call(n,v[1])?(m=n[v[1]],m[3]=1,m):null:null;for(y=0;y<3;y++)m[y]=l(m[y],0,255);return m[3]=l(m[3],0,1),m},a.get.hsl=function(u){if(!u)return null;var d=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,h=u.match(d);if(h){var f=parseFloat(h[4]),p=(parseFloat(h[1])%360+360)%360,g=l(parseFloat(h[2]),0,100),m=l(parseFloat(h[3]),0,100),v=l(isNaN(f)?1:f,0,1);return[p,g,m,v]}return null},a.get.hwb=function(u){if(!u)return null;var d=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,h=u.match(d);if(h){var f=parseFloat(h[4]),p=(parseFloat(h[1])%360+360)%360,g=l(parseFloat(h[2]),0,100),m=l(parseFloat(h[3]),0,100),v=l(isNaN(f)?1:f,0,1);return[p,g,m,v]}return null},a.to.hex=function(){var u=i(arguments);return"#"+c(u[0])+c(u[1])+c(u[2])+(u[3]<1?c(Math.round(u[3]*255)):"")},a.to.rgb=function(){var u=i(arguments);return u.length<4||u[3]===1?"rgb("+Math.round(u[0])+", "+Math.round(u[1])+", "+Math.round(u[2])+")":"rgba("+Math.round(u[0])+", "+Math.round(u[1])+", "+Math.round(u[2])+", "+u[3]+")"},a.to.rgb.percent=function(){var u=i(arguments),d=Math.round(u[0]/255*100),h=Math.round(u[1]/255*100),f=Math.round(u[2]/255*100);return u.length<4||u[3]===1?"rgb("+d+"%, "+h+"%, "+f+"%)":"rgba("+d+"%, "+h+"%, "+f+"%, "+u[3]+")"},a.to.hsl=function(){var u=i(arguments);return u.length<4||u[3]===1?"hsl("+u[0]+", "+u[1]+"%, "+u[2]+"%)":"hsla("+u[0]+", "+u[1]+"%, "+u[2]+"%, "+u[3]+")"},a.to.hwb=function(){var u=i(arguments),d="";return u.length>=4&&u[3]!==1&&(d=", "+u[3]),"hwb("+u[0]+", "+u[1]+"%, "+u[2]+"%"+d+")"},a.to.keyword=function(u){return o[u.slice(0,3)]};function l(u,d,h){return Math.min(Math.max(d,u),h)}function c(u){var d=Math.round(u).toString(16).toUpperCase();return d.length<2?"0"+d:d}}}),r2n=Ot({"../node_modules/.pnpm/@antv+g6@5.1.0-beta.1/node_modules/@antv/g6/lib/constants/animation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_ELEMENTS_ANIMATION_OPTIONS=e.DEFAULT_ANIMATION_OPTIONS=void 0,e.DEFAULT_ANIMATION_OPTIONS={duration:500},e.DEFAULT_ELEMENTS_ANIMATION_OPTIONS={duration:1e3,easing:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",iterations:1,fill:"both"}}}),o2n=Ot({"../node_modules/.pnpm/@antv+g6@5.1.0-beta.1/node_modules/@antv/g6/lib/constants/change.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ChangeType=e.ChangeEvent=void 0,e.ChangeEvent={CHANGE:"change"};var t;(function(n){n.NodeAdded="NodeAdded",n.NodeUpdated="NodeUpdated",n.NodeRemoved="NodeRemoved",n.EdgeAdded="EdgeAdded",n.EdgeUpdated="EdgeUpdated",n.EdgeRemoved="EdgeRemoved",n.ComboAdded="ComboAdded",n.ComboUpdated="ComboUpdated",n.ComboRemoved="ComboRemoved"})(t||(e.ChangeType=t={}))}}),s2n=Ot({"../node_modules/.pnpm/@antv+g6@5.1.0-beta.1/node_modules/@antv/g6/lib/constants/events/animation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationType=void 0;var t;(function(n){n.DRAW="draw",n.COLLAPSE="collapse",n.EXPAND="expand",n.TRANSFORM="transform"})(t||(e.AnimationType=t={}))}}),a2n=Ot({"../node_modules/.pnpm/@antv+g6@5.1.0-beta.1/node_modules/@antv/g6/lib/constants/events/canvas.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CanvasEvent=void 0;var t;(function(n){n.CLICK="canvas:click",n.DBLCLICK="canvas:dblclick",n.POINTER_OVER="canvas:pointerover",n.POINTER_LEAVE="canvas:pointerleave",n.POINTER_ENTER="canvas:pointerenter",n.POINTER_MOVE="canvas:pointermove",n.POINTER_OUT="canvas:pointerout",n.POINTER_DOWN="canvas:pointerdown",n.POINTER_UP="canvas:pointerup",n.CONTEXT_MENU="canvas:contextmenu",n.DRAG_START="canvas:dragstart",n.DRAG="canvas:drag",n.DRAG_END="canvas:dragend",n.DRAG_ENTER="canvas:dragenter",n.DRAG_OVER="canvas:dragover",n.DRAG_LEAVE="canvas:dragleave",n.DROP="canvas:drop",n.WHEEL="canvas:wheel"})(t||(e.CanvasEvent=t={}))}}),l2n=Ot({"../node_modules/.pnpm/@antv+g6@5.1.0-beta.1/node_modules/@antv/g6/lib/constants/events/combo.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ComboEvent=void 0;var t;(function(n){n.CLICK="combo:click",n.DBLCLICK="combo:dblclick",n.POINTER_OVER="combo:pointerover",n.POINTER_LEAVE="combo:pointerleave",n.POINTER_ENTER="combo:pointerenter",n.POINTER_MOVE="combo:pointermove",n.POINTER_OUT="combo:pointerout",n.POINTER_DOWN="combo:pointerdown",n.POINTER_UP="combo:pointerup",n.CONTEXT_MENU="combo:contextmenu",n.DRAG_START="combo:dragstart",n.DRAG="combo:drag",n.DRAG_END="combo:dragend",n.DRAG_ENTER="combo:dragenter",n.DRAG_OVER="combo:dragover",n.DRAG_LEAVE="combo:dragleave",n.DROP="combo:drop"})(t||(e.ComboEvent=t={}))}}),c2n=Ot({"../node_modules/.pnpm/@antv+g6@5.1.0-beta.1/node_modules/@antv/g6/lib/constants/events/common.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CommonEvent=void 0;var t;(function(n){n.CLICK="click",n.DBLCLICK="dblclick",n.POINTER_OVER="pointerover",n.POINTER_LEAVE="pointerleave",n.POINTER_ENTER="pointerenter",n.POINTER_MOVE="pointermove",n.POINTER_OUT="pointerout",n.POINTER_DOWN="pointerdown",n.POINTER_UP="pointerup",n.CONTEXT_MENU="contextmenu",n.DRAG_START="dragstart",n.DRAG="drag",n.DRAG_END="dragend",n.DRAG_ENTER="dragenter",n.DRAG_OVER="dragover",n.DRAG_LEAVE="dragleave",n.DROP="drop",n.KEY_DOWN="keydown",n.KEY_UP="keyup",n.WHEEL="wheel",n.PINCH="pinch"})(t||(e.CommonEvent=t={}))}}),u2n=Ot({"../node_modules/.pnpm/@antv+g6@5.1.0-beta.1/node_modules/@antv/g6/lib/constants/events/container.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ContainerEvent=void 0;var t;(function(n){n.KEY_DOWN="keydown",n.KEY_UP="keyup"})(t||(e.ContainerEvent=t={}))}}),d2n=Ot({"../node_modules/.pnpm/@antv+g6@5.1.0-beta.1/node_modules/@antv/g6/lib/constants/events/edge.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EdgeEvent=void 0;var t;(function(n){n.CLICK="edge:click",n.DBLCLICK="edge:dblclick",n.POINTER_OVER="edge:pointerover",n.POINTER_LEAVE="edge:pointerleave",n.POINTER_ENTER="edge:pointerenter",n.POINTER_MOVE="edge:pointermove",n.POINTER_OUT="edge:pointerout",n.POINTER_DOWN="edge:pointerdown",n.POINTER_UP="edge:pointerup",n.CONTEXT_MENU="edge:contextmenu",n.DRAG_ENTER="edge:dragenter",n.DRAG_OVER="edge:dragover",n.DRAG_LEAVE="edge:dragleave",n.DROP="edge:drop"})(t||(e.EdgeEvent=t={}))}}),h2n=Ot({"../node_modules/.pnpm/@antv+g6@5.1.0-beta.1/node_modules/@antv/g6/lib/constants/events/graph.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GraphEvent=void 0;var t;(function(n){n.BEFORE_CANVAS_INIT="beforecanvasinit",n.AFTER_CANVAS_INIT="aftercanvasinit",n.BEFORE_SIZE_CHANGE="beforesizechange",n.AFTER_SIZE_CHANGE="aftersizechange",n.BEFORE_ELEMENT_CREATE="beforeelementcreate",n.AFTER_ELEMENT_CREATE="afterelementcreate",n.BEFORE_ELEMENT_UPDATE="beforeelementupdate",n.AFTER_ELEMENT_UPDATE="afterelementupdate",n.BEFORE_ELEMENT_DESTROY="beforeelementdestroy",n.AFTER_ELEMENT_DESTROY="afterelementdestroy",n.BEFORE_ELEMENT_TRANSLATE="beforeelementtranslate",n.AFTER_ELEMENT_TRANSLATE="afterelementtranslate",n.BEFORE_DRAW="beforedraw",n.AFTER_DRAW="afterdraw",n.BEFORE_RENDER="beforerender",n.AFTER_RENDER="afterrender",n.BEFORE_ANIMATE="beforeanimate",n.AFTER_ANIMATE="afteranimate",n.BEFORE_LAYOUT="beforelayout",n.AFTER_LAYOUT="afterlayout",n.BEFORE_STAGE_LAYOUT="beforestagelayout",n.AFTER_STAGE_LAYOUT="afterstagelayout",n.BEFORE_TRANSFORM="beforetransform",n.AFTER_TRANSFORM="aftertransform",n.BATCH_START="batchstart",n.BATCH_END="batchend",n.BEFORE_DESTROY="beforedestroy",n.AFTER_DESTROY="afterdestroy",n.BEFORE_RENDERER_CHANGE="beforerendererchange",n.AFTER_RENDERER_CHANGE="afterrendererchange"})(t||(e.GraphEvent=t={}))}}),f2n=Ot({"../node_modules/.pnpm/@antv+g6@5.1.0-beta.1/node_modules/@antv/g6/lib/constants/events/history.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HistoryEvent=void 0;var t;(function(n){n.UNDO="undo",n.REDO="redo",n.CANCEL="cancel",n.ADD="add",n.CLEAR="clear",n.CHANGE="change"})(t||(e.HistoryEvent=t={}))}}),p2n=Ot({"../node_modules/.pnpm/@antv+g6@5.1.0-beta.1/node_modules/@antv/g6/lib/constants/events/node.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NodeEvent=void 0;var t;(function(n){n.CLICK="node:click",n.DBLCLICK="node:dblclick",n.POINTER_OVER="node:pointerover",n.POINTER_LEAVE="node:pointerleave",n.POINTER_ENTER="node:pointerenter",n.POINTER_MOVE="node:pointermove",n.POINTER_OUT="node:pointerout",n.POINTER_DOWN="node:pointerdown",n.POINTER_UP="node:pointerup",n.CONTEXT_MENU="node:contextmenu",n.DRAG_START="node:dragstart",n.DRAG="node:drag",n.DRAG_END="node:dragend",n.DRAG_ENTER="node:dragenter",n.DRAG_OVER="node:dragover",n.DRAG_LEAVE="node:dragleave",n.DROP="node:drop"})(t||(e.NodeEvent=t={}))}}),g2n=Ot({"../node_modules/.pnpm/@antv+g6@5.1.0-beta.1/node_modules/@antv/g6/lib/constants/events/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NodeEvent=e.HistoryEvent=e.GraphEvent=e.EdgeEvent=e.ContainerEvent=e.CommonEvent=e.ComboEvent=e.CanvasEvent=e.AnimationType=void 0;var t=s2n();Object.defineProperty(e,"AnimationType",{enumerable:!0,get:function(){return t.AnimationType}});var n=a2n();Object.defineProperty(e,"CanvasEvent",{enumerable:!0,get:function(){return n.CanvasEvent}});var i=l2n();Object.defineProperty(e,"ComboEvent",{enumerable:!0,get:function(){return i.ComboEvent}});var r=c2n();Object.defineProperty(e,"CommonEvent",{enumerable:!0,get:function(){return r.CommonEvent}});var o=u2n();Object.defineProperty(e,"ContainerEvent",{enumerable:!0,get:function(){return o.ContainerEvent}});var s=d2n();Object.defineProperty(e,"EdgeEvent",{enumerable:!0,get:function(){return s.EdgeEvent}});var a=h2n();Object.defineProperty(e,"GraphEvent",{enumerable:!0,get:function(){return a.GraphEvent}});var l=f2n();Object.defineProperty(e,"HistoryEvent",{enumerable:!0,get:function(){return l.HistoryEvent}});var c=p2n();Object.defineProperty(e,"NodeEvent",{enumerable:!0,get:function(){return c.NodeEvent}})}}),m2n=Ot({"../node_modules/.pnpm/@antv+g6@5.1.0-beta.1/node_modules/@antv/g6/lib/constants/graphlib.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TREE_KEY=e.COMBO_KEY=void 0,e.COMBO_KEY="combo",e.TREE_KEY="tree"}}),v2n=Ot({"../node_modules/.pnpm/@antv+g6@5.1.0-beta.1/node_modules/@antv/g6/lib/constants/registry.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionCategory=void 0;var t;(function(n){n.NODE="node",n.EDGE="edge",n.COMBO="combo",n.THEME="theme",n.PALETTE="palette",n.LAYOUT="layout",n.BEHAVIOR="behavior",n.PLUGIN="plugin",n.ANIMATION="animation",n.TRANSFORM="transform",n.SHAPE="shape"})(t||(e.ExtensionCategory=t={}))}}),y2n=Ot({"../node_modules/.pnpm/@antv+g6@5.1.0-beta.1/node_modules/@antv/g6/lib/constants/index.js"(e){var t=e&&e.__createBinding||(Object.create?(function(i,r,o,s){s===void 0&&(s=o);var a=Object.getOwnPropertyDescriptor(r,o);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[o]}}),Object.defineProperty(i,s,a)}):(function(i,r,o,s){s===void 0&&(s=o),i[s]=r[o]})),n=e&&e.__exportStar||function(i,r){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(r,o)&&t(r,i,o)};Object.defineProperty(e,"__esModule",{value:!0}),n(r2n(),e),n(o2n(),e),n(g2n(),e),n(m2n(),e),n(v2n(),e)}}),b2n=Ot({"../node_modules/.pnpm/@antv+g6@5.1.0-beta.1/node_modules/@antv/g6/lib/utils/prefix.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.startsWith=n,e.addPrefix=i,e.removePrefix=r,e.subStyleProps=o,e.subObject=s,e.omitStyleProps=a,e.replacePrefix=l;var t=Pi();function n(c,u){if(!c.startsWith(u))return!1;const d=c[u.length];return d>="A"&&d<="Z"}function i(c,u){return`${u}${(0,t.upperFirst)(c)}`}function r(c,u,d=!0){if(!u||!n(c,u))return c;const h=c.slice(u.length);return d?(0,t.lowerFirst)(h):h}function o(c,u){const d=Object.entries(c).reduce((h,[f,p])=>(f==="className"||f==="class"||n(f,u)&&Object.assign(h,{[r(f,u)]:p}),h),{});if("opacity"in c){const h=i("opacity",u),f=c.opacity;if(h in c){const p=c[h];Object.assign(d,{opacity:f*p})}else Object.assign(d,{opacity:f})}return d}function s(c,u){const d=u.length;return Object.keys(c).reduce((h,f)=>{if(f.startsWith(u)){const p=f.slice(d);h[p]=c[f]}return h},{})}function a(c,u){const d=typeof u=="string"?[u]:u,h={};return Object.keys(c).forEach(f=>{d.find(p=>f.startsWith(p))||(h[f]=c[f])}),h}function l(c,u,d){return Object.entries(c).reduce((h,[f,p])=>(n(f,u)?h[i(r(f,u,!1),d)]=p:h[f]=p,h),{})}}}),J9t=Ot({"../node_modules/.pnpm/mousetrap@1.6.5/node_modules/mousetrap/mousetrap.js"(e,t){(function(n,i,r){if(!n)return;for(var o={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},s={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},a={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},l={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},c,u=1;u<20;++u)o[111+u]="f"+u;for(u=0;u<=9;++u)o[u+96]=u.toString();function d(T,M,P){if(T.addEventListener){T.addEventListener(M,P,!1);return}T.attachEvent("on"+M,P)}function h(T){if(T.type=="keypress"){var M=String.fromCharCode(T.which);return T.shiftKey||(M=M.toLowerCase()),M}return o[T.which]?o[T.which]:s[T.which]?s[T.which]:String.fromCharCode(T.which).toLowerCase()}function f(T,M){return T.sort().join(",")===M.sort().join(",")}function p(T){var M=[];return T.shiftKey&&M.push("shift"),T.altKey&&M.push("alt"),T.ctrlKey&&M.push("ctrl"),T.metaKey&&M.push("meta"),M}function g(T){if(T.preventDefault){T.preventDefault();return}T.returnValue=!1}function m(T){if(T.stopPropagation){T.stopPropagation();return}T.cancelBubble=!0}function v(T){return T=="shift"||T=="ctrl"||T=="alt"||T=="meta"}function y(){if(!c){c={};for(var T in o)T>95&&T<112||o.hasOwnProperty(T)&&(c[o[T]]=T)}return c}function b(T,M,P){return P||(P=y()[T]?"keydown":"keypress"),P=="keypress"&&M.length&&(P="keydown"),P}function w(T){return T==="+"?["+"]:(T=T.replace(/\+{2}/g,"+plus"),T.split("+"))}function E(T,M){var P,F,N,j=[];for(P=w(T),N=0;N<P.length;++N)F=P[N],l[F]&&(F=l[F]),M&&M!="keypress"&&a[F]&&(F=a[F],j.push("shift")),v(F)&&j.push(F);return M=b(F,j,M),{key:F,modifiers:j,action:M}}function A(T,M){return T===null||T===i?!1:T===M?!0:A(T.parentNode,M)}function D(T){var M=this;if(T=T||i,!(M instanceof D))return new D(T);M.target=T,M._callbacks={},M._directMap={};var P={},F,N=!1,j=!1,W=!1;function J(G){G=G||{};var pe=!1,U;for(U in P){if(G[U]){pe=!0;continue}P[U]=0}pe||(W=!1)}function ee(G,pe,U,K,ie,ce){var de,oe,me=[],Ce=U.type;if(!M._callbacks[G])return[];for(Ce=="keyup"&&v(G)&&(pe=[G]),de=0;de<M._callbacks[G].length;++de)if(oe=M._callbacks[G][de],!(!K&&oe.seq&&P[oe.seq]!=oe.level)&&Ce==oe.action&&(Ce=="keypress"&&!U.metaKey&&!U.ctrlKey||f(pe,oe.modifiers))){var Se=!K&&oe.combo==ie,De=K&&oe.seq==K&&oe.level==ce;(Se||De)&&M._callbacks[G].splice(de,1),me.push(oe)}return me}function Q(G,pe,U,K){M.stopCallback(pe,pe.target||pe.srcElement,U,K)||G(pe,U)===!1&&(g(pe),m(pe))}M._handleKey=function(G,pe,U){var K=ee(G,pe,U),ie,ce={},de=0,oe=!1;for(ie=0;ie<K.length;++ie)K[ie].seq&&(de=Math.max(de,K[ie].level));for(ie=0;ie<K.length;++ie){if(K[ie].seq){if(K[ie].level!=de)continue;oe=!0,ce[K[ie].seq]=1,Q(K[ie].callback,U,K[ie].combo,K[ie].seq);continue}oe||Q(K[ie].callback,U,K[ie].combo)}var me=U.type=="keypress"&&j;U.type==W&&!v(G)&&!me&&J(ce),j=oe&&U.type=="keydown"};function H(G){typeof G.which!="number"&&(G.which=G.keyCode);var pe=h(G);if(pe){if(G.type=="keyup"&&N===pe){N=!1;return}M.handleKey(pe,p(G),G)}}function q(){clearTimeout(F),F=setTimeout(J,1e3)}function le(G,pe,U,K){P[G]=0;function ie(Ce){return function(){W=Ce,++P[G],q()}}function ce(Ce){Q(U,Ce,G),K!=="keyup"&&(N=h(Ce)),setTimeout(J,10)}for(var de=0;de<pe.length;++de){var oe=de+1===pe.length,me=oe?ce:ie(K||E(pe[de+1]).action);Y(pe[de],me,K,G,de)}}function Y(G,pe,U,K,ie){M._directMap[G+":"+U]=pe,G=G.replace(/\s+/g," ");var ce=G.split(" "),de;if(ce.length>1){le(G,ce,pe,U);return}de=E(G,U),M._callbacks[de.key]=M._callbacks[de.key]||[],ee(de.key,de.modifiers,{type:de.action},K,G,ie),M._callbacks[de.key][K?"unshift":"push"]({callback:pe,modifiers:de.modifiers,action:de.action,seq:K,level:ie,combo:G})}M._bindMultiple=function(G,pe,U){for(var K=0;K<G.length;++K)Y(G[K],pe,U)},d(T,"keypress",H),d(T,"keydown",H),d(T,"keyup",H)}D.prototype.bind=function(T,M,P){var F=this;return T=T instanceof Array?T:[T],F._bindMultiple.call(F,T,M,P),F},D.prototype.unbind=function(T,M){var P=this;return P.bind.call(P,T,function(){},M)},D.prototype.trigger=function(T,M){var P=this;return P._directMap[T+":"+M]&&P._directMap[T+":"+M]({},T),P},D.prototype.reset=function(){var T=this;return T._callbacks={},T._directMap={},T},D.prototype.stopCallback=function(T,M){var P=this;if((" "+M.className+" ").indexOf(" mousetrap ")>-1||A(M,P.target))return!1;if("composedPath"in T&&typeof T.composedPath=="function"){var F=T.composedPath()[0];F!==T.target&&(M=F)}return M.tagName=="INPUT"||M.tagName=="SELECT"||M.tagName=="TEXTAREA"||M.isContentEditable},D.prototype.handleKey=function(){var T=this;return T._handleKey.apply(T,arguments)},D.addKeycodes=function(T){for(var M in T)T.hasOwnProperty(M)&&(o[M]=T[M]);c=null},D.init=function(){var T=D(i);for(var M in T)M.charAt(0)!=="_"&&(D[M]=(function(P){return function(){return T[P].apply(T,arguments)}})(M))},D.init(),n.Mousetrap=D,typeof t<"u"&&t.exports&&(t.exports=D),typeof define=="function"&&define.amd&&define(function(){return D})})(typeof window<"u"?window:null,typeof window<"u"?document:null)}}),_2n=Ot({"../node_modules/.pnpm/dexie@4.3.0/node_modules/dexie/dist/dexie.js"(e,t){(function(n,i){typeof e=="object"&&typeof t<"u"?t.exports=i():typeof define=="function"&&define.amd?define(i):(n=typeof globalThis<"u"?globalThis:n||self,n.Dexie=i())})(e,(function(){var n=function(X,te){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ye,Ae){ye.__proto__=Ae}||function(ye,Ae){for(var Pe in Ae)Object.prototype.hasOwnProperty.call(Ae,Pe)&&(ye[Pe]=Ae[Pe])},n(X,te)};function i(X,te){if(typeof te!="function"&&te!==null)throw new TypeError("Class extends value "+String(te)+" is not a constructor or null");n(X,te);function ye(){this.constructor=X}X.prototype=te===null?Object.create(te):(ye.prototype=te.prototype,new ye)}var r=function(){return r=Object.assign||function(te){for(var ye,Ae=1,Pe=arguments.length;Ae<Pe;Ae++){ye=arguments[Ae];for(var He in ye)Object.prototype.hasOwnProperty.call(ye,He)&&(te[He]=ye[He])}return te},r.apply(this,arguments)};function o(X,te,ye){for(var Ae=0,Pe=te.length,He;Ae<Pe;Ae++)(He||!(Ae in te))&&(He||(He=Array.prototype.slice.call(te,0,Ae)),He[Ae]=te[Ae]);return X.concat(He||Array.prototype.slice.call(te))}typeof SuppressedError=="function"&&SuppressedError;var s=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,a=Object.keys,l=Array.isArray;typeof Promise<"u"&&!s.Promise&&(s.Promise=Promise);function c(X,te){return typeof te!="object"||a(te).forEach(function(ye){X[ye]=te[ye]}),X}var u=Object.getPrototypeOf,d={}.hasOwnProperty;function h(X,te){return d.call(X,te)}function f(X,te){typeof te=="function"&&(te=te(u(X))),(typeof Reflect>"u"?a:Reflect.ownKeys)(te).forEach(function(ye){g(X,ye,te[ye])})}var p=Object.defineProperty;function g(X,te,ye,Ae){p(X,te,c(ye&&h(ye,"get")&&typeof ye.get=="function"?{get:ye.get,set:ye.set,configurable:!0}:{value:ye,configurable:!0,writable:!0},Ae))}function m(X){return{from:function(te){return X.prototype=Object.create(te.prototype),g(X.prototype,"constructor",X),{extend:f.bind(null,X.prototype)}}}}var v=Object.getOwnPropertyDescriptor;function y(X,te){var ye=v(X,te),Ae;return ye||(Ae=u(X))&&y(Ae,te)}var b=[].slice;function w(X,te,ye){return b.call(X,te,ye)}function E(X,te){return te(X)}function A(X){if(!X)throw new Error("Assertion Failed")}function D(X){s.setImmediate?setImmediate(X):setTimeout(X,0)}function T(X,te){return X.reduce(function(ye,Ae,Pe){var He=te(Ae,Pe);return He&&(ye[He[0]]=He[1]),ye},{})}function M(X,te){if(typeof te=="string"&&h(X,te))return X[te];if(!te)return X;if(typeof te!="string"){for(var ye=[],Ae=0,Pe=te.length;Ae<Pe;++Ae){var He=M(X,te[Ae]);ye.push(He)}return ye}var rt=te.indexOf(".");if(rt!==-1){var ht=X[te.substr(0,rt)];return ht==null?void 0:M(ht,te.substr(rt+1))}}function P(X,te,ye){if(!(!X||te===void 0)&&!("isFrozen"in Object&&Object.isFrozen(X)))if(typeof te!="string"&&"length"in te){A(typeof ye!="string"&&"length"in ye);for(var Ae=0,Pe=te.length;Ae<Pe;++Ae)P(X,te[Ae],ye[Ae])}else{var He=te.indexOf(".");if(He!==-1){var rt=te.substr(0,He),ht=te.substr(He+1);if(ht==="")ye===void 0?l(X)&&!isNaN(parseInt(rt))?X.splice(rt,1):delete X[rt]:X[rt]=ye;else{var yt=X[rt];(!yt||!h(X,rt))&&(yt=X[rt]={}),P(yt,ht,ye)}}else ye===void 0?l(X)&&!isNaN(parseInt(te))?X.splice(te,1):delete X[te]:X[te]=ye}}function F(X,te){typeof te=="string"?P(X,te,void 0):"length"in te&&[].map.call(te,function(ye){P(X,ye,void 0)})}function N(X){var te={};for(var ye in X)h(X,ye)&&(te[ye]=X[ye]);return te}var j=[].concat;function W(X){return j.apply([],X)}var J="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(W([8,16,32,64].map(function(X){return["Int","Uint","Float"].map(function(te){return te+X+"Array"})}))).filter(function(X){return s[X]}),ee=new Set(J.map(function(X){return s[X]}));function Q(X){var te={};for(var ye in X)if(h(X,ye)){var Ae=X[ye];te[ye]=!Ae||typeof Ae!="object"||ee.has(Ae.constructor)?Ae:Q(Ae)}return te}function H(X){for(var te in X)if(h(X,te))return!1;return!0}var q=null;function le(X){q=new WeakMap;var te=Y(X);return q=null,te}function Y(X){if(!X||typeof X!="object")return X;var te=q.get(X);if(te)return te;if(l(X)){te=[],q.set(X,te);for(var ye=0,Ae=X.length;ye<Ae;++ye)te.push(Y(X[ye]))}else if(ee.has(X.constructor))te=X;else{var Pe=u(X);te=Pe===Object.prototype?{}:Object.create(Pe),q.set(X,te);for(var He in X)h(X,He)&&(te[He]=Y(X[He]))}return te}var G={}.toString;function pe(X){return G.call(X).slice(8,-1)}var U=typeof Symbol<"u"?Symbol.iterator:"@@iterator",K=typeof U=="symbol"?function(X){var te;return X!=null&&(te=X[U])&&te.apply(X)}:function(){return null};function ie(X,te){var ye=X.indexOf(te);return ye>=0&&X.splice(ye,1),ye>=0}var ce={};function de(X){var te,ye,Ae,Pe;if(arguments.length===1){if(l(X))return X.slice();if(this===ce&&typeof X=="string")return[X];if(Pe=K(X)){for(ye=[];Ae=Pe.next(),!Ae.done;)ye.push(Ae.value);return ye}if(X==null)return[X];if(te=X.length,typeof te=="number"){for(ye=new Array(te);te--;)ye[te]=X[te];return ye}return[X]}for(te=arguments.length,ye=new Array(te);te--;)ye[te]=arguments[te];return ye}var oe=typeof Symbol<"u"?function(X){return X[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},me=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"],Ce=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Se=me.concat(Ce),De={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function Me(X,te){this.name=X,this.message=te}m(Me).from(Error).extend({toString:function(){return this.name+": "+this.message}});function qe(X,te){return X+". Errors: "+Object.keys(te).map(function(ye){return te[ye].toString()}).filter(function(ye,Ae,Pe){return Pe.indexOf(ye)===Ae}).join(`
`)}function $(X,te,ye,Ae){this.failures=te,this.failedKeys=Ae,this.successCount=ye,this.message=qe(X,te)}m($).from(Me);function he(X,te){this.name="BulkError",this.failures=Object.keys(te).map(function(ye){return te[ye]}),this.failuresByPos=te,this.message=qe(X,this.failures)}m(he).from(Me);var Ie=Se.reduce(function(X,te){return X[te]=te+"Error",X},{}),Be=Me,ze=Se.reduce(function(X,te){var ye=te+"Error";function Ae(Pe,He){this.name=ye,Pe?typeof Pe=="string"?(this.message="".concat(Pe).concat(He?`
 `+He:""),this.inner=He||null):typeof Pe=="object"&&(this.message="".concat(Pe.name," ").concat(Pe.message),this.inner=Pe):(this.message=De[te]||ye,this.inner=null)}return m(Ae).from(Be),X[te]=Ae,X},{});ze.Syntax=SyntaxError,ze.Type=TypeError,ze.Range=RangeError;var Ye=Ce.reduce(function(X,te){return X[te+"Error"]=ze[te],X},{});function it(X,te){if(!X||X instanceof Me||X instanceof TypeError||X instanceof SyntaxError||!X.name||!Ye[X.name])return X;var ye=new Ye[X.name](te||X.message,X);return"stack"in X&&g(ye,"stack",{get:function(){return this.inner.stack}}),ye}var ft=Se.reduce(function(X,te){return["Syntax","Type","Range"].indexOf(te)===-1&&(X[te+"Error"]=ze[te]),X},{});ft.ModifyError=$,ft.DexieError=Me,ft.BulkError=he;function ct(){}function et(X){return X}function ut(X,te){return X==null||X===et?te:function(ye){return te(X(ye))}}function wt(X,te){return function(){X.apply(this,arguments),te.apply(this,arguments)}}function pt(X,te){return X===ct?te:function(){var ye=X.apply(this,arguments);ye!==void 0&&(arguments[0]=ye);var Ae=this.onsuccess,Pe=this.onerror;this.onsuccess=null,this.onerror=null;var He=te.apply(this,arguments);return Ae&&(this.onsuccess=this.onsuccess?wt(Ae,this.onsuccess):Ae),Pe&&(this.onerror=this.onerror?wt(Pe,this.onerror):Pe),He!==void 0?He:ye}}function _t(X,te){return X===ct?te:function(){X.apply(this,arguments);var ye=this.onsuccess,Ae=this.onerror;this.onsuccess=this.onerror=null,te.apply(this,arguments),ye&&(this.onsuccess=this.onsuccess?wt(ye,this.onsuccess):ye),Ae&&(this.onerror=this.onerror?wt(Ae,this.onerror):Ae)}}function Rt(X,te){return X===ct?te:function(ye){var Ae=X.apply(this,arguments);c(ye,Ae);var Pe=this.onsuccess,He=this.onerror;this.onsuccess=null,this.onerror=null;var rt=te.apply(this,arguments);return Pe&&(this.onsuccess=this.onsuccess?wt(Pe,this.onsuccess):Pe),He&&(this.onerror=this.onerror?wt(He,this.onerror):He),Ae===void 0?rt===void 0?void 0:rt:c(Ae,rt)}}function Yt(X,te){return X===ct?te:function(){return te.apply(this,arguments)===!1?!1:X.apply(this,arguments)}}function Ut(X,te){return X===ct?te:function(){var ye=X.apply(this,arguments);if(ye&&typeof ye.then=="function"){for(var Ae=this,Pe=arguments.length,He=new Array(Pe);Pe--;)He[Pe]=arguments[Pe];return ye.then(function(){return te.apply(Ae,He)})}return te.apply(this,arguments)}}var Gt=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function Kt(X,te){Gt=X}var ln={},pn=100,wn=typeof Promise>"u"?[]:(function(){var X=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[X,u(X),X];var te=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[te,u(te),X]})(),Mn=wn[0],Yn=wn[1],di=wn[2],Li=Yn&&Yn.then,ke=Mn&&Mn.constructor,Z=!!di;function ne(){queueMicrotask(en)}var V=function(X,te){be.push([X,te]),ge&&(ne(),ge=!1)},re=!0,ge=!0,we=[],ve=[],_e=et,Ee={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:ct,pgp:!1,env:{},finalize:ct},Le=Ee,be=[],Fe=0,Ze=[];function Ve(X){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var te=this._PSD=Le;if(typeof X!="function"){if(X!==ln)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&Ht(this,this._value);return}this._state=null,this._value=null,++te.ref,Xe(this,X)}var dt={get:function(){var X=Le,te=Wo;function ye(Ae,Pe){var He=this,rt=!X.global&&(X!==Le||te!==Wo),ht=rt&&!Ai(),yt=new Ve(function(Ft,Zt){Dt(He,new Vt(Ju(Ae,X,rt,ht),Ju(Pe,X,rt,ht),Ft,Zt,X))});return this._consoleTask&&(yt._consoleTask=this._consoleTask),yt}return ye.prototype=ln,ye},set:function(X){g(this,"then",X&&X.prototype===ln?dt:{get:function(){return X},set:dt.set})}};f(Ve.prototype,{then:dt,_then:function(X,te){Dt(this,new Vt(null,null,X,te,Le))},catch:function(X){if(arguments.length===1)return this.then(null,X);var te=arguments[0],ye=arguments[1];return typeof te=="function"?this.then(null,function(Ae){return Ae instanceof te?ye(Ae):Tn(Ae)}):this.then(null,function(Ae){return Ae&&Ae.name===te?ye(Ae):Tn(Ae)})},finally:function(X){return this.then(function(te){return Ve.resolve(X()).then(function(){return te})},function(te){return Ve.resolve(X()).then(function(){return Tn(te)})})},timeout:function(X,te){var ye=this;return X<1/0?new Ve(function(Ae,Pe){var He=setTimeout(function(){return Pe(new ze.Timeout(te))},X);ye.then(Ae,Pe).finally(clearTimeout.bind(null,He))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&g(Ve.prototype,Symbol.toStringTag,"Dexie.Promise"),Ee.env=Xu();function Vt(X,te,ye,Ae,Pe){this.onFulfilled=typeof X=="function"?X:null,this.onRejected=typeof te=="function"?te:null,this.resolve=ye,this.reject=Ae,this.psd=Pe}f(Ve,{all:function(){var X=de.apply(null,arguments).map(dr);return new Ve(function(te,ye){X.length===0&&te([]);var Ae=X.length;X.forEach(function(Pe,He){return Ve.resolve(Pe).then(function(rt){X[He]=rt,--Ae||te(X)},ye)})})},resolve:function(X){if(X instanceof Ve)return X;if(X&&typeof X.then=="function")return new Ve(function(ye,Ae){X.then(ye,Ae)});var te=new Ve(ln,!0,X);return te},reject:Tn,race:function(){var X=de.apply(null,arguments).map(dr);return new Ve(function(te,ye){X.map(function(Ae){return Ve.resolve(Ae).then(te,ye)})})},PSD:{get:function(){return Le},set:function(X){return Le=X}},totalEchoes:{get:function(){return Wo}},newPSD:Us,usePSD:Dc,scheduler:{get:function(){return V},set:function(X){V=X}},rejectionMapper:{get:function(){return _e},set:function(X){_e=X}},follow:function(X,te){return new Ve(function(ye,Ae){return Us(function(Pe,He){var rt=Le;rt.unhandleds=[],rt.onunhandled=He,rt.finalize=wt(function(){var ht=this;at(function(){ht.unhandleds.length===0?Pe():He(ht.unhandleds[0])})},rt.finalize),X()},te,ye,Ae)})}}),ke&&(ke.allSettled&&g(Ve,"allSettled",function(){var X=de.apply(null,arguments).map(dr);return new Ve(function(te){X.length===0&&te([]);var ye=X.length,Ae=new Array(ye);X.forEach(function(Pe,He){return Ve.resolve(Pe).then(function(rt){return Ae[He]={status:"fulfilled",value:rt}},function(rt){return Ae[He]={status:"rejected",reason:rt}}).then(function(){return--ye||te(Ae)})})})}),ke.any&&typeof AggregateError<"u"&&g(Ve,"any",function(){var X=de.apply(null,arguments).map(dr);return new Ve(function(te,ye){X.length===0&&ye(new AggregateError([]));var Ae=X.length,Pe=new Array(Ae);X.forEach(function(He,rt){return Ve.resolve(He).then(function(ht){return te(ht)},function(ht){Pe[rt]=ht,--Ae||ye(new AggregateError(Pe))})})})}),ke.withResolvers&&(Ve.withResolvers=ke.withResolvers));function Xe(X,te){try{te(function(ye){if(X._state===null){if(ye===X)throw new TypeError("A promise cannot be resolved with itself.");var Ae=X._lib&&Bt();ye&&typeof ye.then=="function"?Xe(X,function(Pe,He){ye instanceof Ve?ye._then(Pe,He):ye.then(Pe,He)}):(X._state=!0,X._value=ye,Qt(X)),Ae&&Ue()}},Ht.bind(null,X))}catch(ye){Ht(X,ye)}}function Ht(X,te){if(ve.push(te),X._state===null){var ye=X._lib&&Bt();te=_e(te),X._state=!1,X._value=te,cn(X),Qt(X),ye&&Ue()}}function Qt(X){var te=X._listeners;X._listeners=[];for(var ye=0,Ae=te.length;ye<Ae;++ye)Dt(X,te[ye]);var Pe=X._PSD;--Pe.ref||Pe.finalize(),Fe===0&&(++Fe,V(function(){--Fe===0&&Lt()},[]))}function Dt(X,te){if(X._state===null){X._listeners.push(te);return}var ye=X._state?te.onFulfilled:te.onRejected;if(ye===null)return(X._state?te.resolve:te.reject)(X._value);++te.psd.ref,++Fe,V(Tt,[ye,X,te])}function Tt(X,te,ye){try{var Ae,Pe=te._value;!te._state&&ve.length&&(ve=[]),Ae=Gt&&te._consoleTask?te._consoleTask.run(function(){return X(Pe)}):X(Pe),!te._state&&ve.indexOf(Pe)===-1&&Bn(te),ye.resolve(Ae)}catch(He){ye.reject(He)}finally{--Fe===0&&Lt(),--ye.psd.ref||ye.psd.finalize()}}function en(){Dc(Ee,function(){Bt()&&Ue()})}function Bt(){var X=re;return re=!1,ge=!1,X}function Ue(){var X,te,ye;do for(;be.length>0;)for(X=be,be=[],ye=X.length,te=0;te<ye;++te){var Ae=X[te];Ae[0].apply(null,Ae[1])}while(be.length>0);re=!0,ge=!0}function Lt(){var X=we;we=[],X.forEach(function(Ae){Ae._PSD.onunhandled.call(null,Ae._value,Ae)});for(var te=Ze.slice(0),ye=te.length;ye;)te[--ye]()}function at(X){function te(){X(),Ze.splice(Ze.indexOf(te),1)}Ze.push(te),++Fe,V(function(){--Fe===0&&Lt()},[])}function cn(X){we.some(function(te){return te._value===X._value})||we.push(X)}function Bn(X){for(var te=we.length;te;)if(we[--te]._value===X._value){we.splice(te,1);return}}function Tn(X){return new Ve(ln,!1,X)}function xi(X,te){var ye=Le;return function(){var Ae=Bt(),Pe=Le;try{return Jr(ye,!0),X.apply(this,arguments)}catch(He){te&&te(He)}finally{Jr(Pe,!1),Ae&&Ue()}}}var Zi={awaits:0,echoes:0,id:0},dn=0,fi=[],Fr=0,Wo=0,Mo=0;function Us(X,te,ye,Ae){var Pe=Le,He=Object.create(Pe);He.parent=Pe,He.ref=0,He.global=!1,He.id=++Mo,Ee.env,He.env=Z?{Promise:Ve,PromiseProp:{value:Ve,configurable:!0,writable:!0},all:Ve.all,race:Ve.race,allSettled:Ve.allSettled,any:Ve.any,resolve:Ve.resolve,reject:Ve.reject}:{},te&&c(He,te),++Pe.ref,He.finalize=function(){--this.parent.ref||this.parent.finalize()};var rt=Dc(He,X,ye,Ae);return He.ref===0&&He.finalize(),rt}function nl(){return Zi.id||(Zi.id=++dn),++Zi.awaits,Zi.echoes+=pn,Zi.id}function Ai(){return Zi.awaits?(--Zi.awaits===0&&(Zi.id=0),Zi.echoes=Zi.awaits*pn,!0):!1}(""+Li).indexOf("[native code]")===-1&&(nl=Ai=ct);function dr(X){return Zi.echoes&&X&&X.constructor===ke?(nl(),X.then(function(te){return Ai(),te},function(te){return Ai(),pa(te)})):X}function es(X){++Wo,(!Zi.echoes||--Zi.echoes===0)&&(Zi.echoes=Zi.awaits=Zi.id=0),fi.push(Le),Jr(X,!0)}function ds(){var X=fi[fi.length-1];fi.pop(),Jr(X,!1)}function Jr(X,te){var ye=Le;if((te?Zi.echoes&&(!Fr++||X!==Le):Fr&&(!--Fr||X!==Le))&&queueMicrotask(te?es.bind(null,X):ds),X!==Le&&(Le=X,ye===Ee&&(Ee.env=Xu()),Z)){var Ae=Ee.env.Promise,Pe=X.env;(ye.global||X.global)&&(Object.defineProperty(s,"Promise",Pe.PromiseProp),Ae.all=Pe.all,Ae.race=Pe.race,Ae.resolve=Pe.resolve,Ae.reject=Pe.reject,Pe.allSettled&&(Ae.allSettled=Pe.allSettled),Pe.any&&(Ae.any=Pe.any))}}function Xu(){var X=s.Promise;return Z?{Promise:X,PromiseProp:Object.getOwnPropertyDescriptor(s,"Promise"),all:X.all,race:X.race,allSettled:X.allSettled,any:X.any,resolve:X.resolve,reject:X.reject}:{}}function Dc(X,te,ye,Ae,Pe){var He=Le;try{return Jr(X,!0),te(ye,Ae,Pe)}finally{Jr(He,!1)}}function Ju(X,te,ye,Ae){return typeof X!="function"?X:function(){var Pe=Le;ye&&nl(),Jr(te,!0);try{return X.apply(this,arguments)}finally{Jr(Pe,!1),Ae&&queueMicrotask(Ai)}}}function ed(X){Promise===ke&&Zi.echoes===0?Fr===0?X():enqueueNativeMicroTask(X):setTimeout(X,0)}var pa=Ve.reject;function il(X,te,ye,Ae){if(!X.idbdb||!X._state.openComplete&&!Le.letThrough&&!X._vip){if(X._state.openComplete)return pa(new ze.DatabaseClosed(X._state.dbOpenError));if(!X._state.isBeingOpened){if(!X._state.autoOpen)return pa(new ze.DatabaseClosed);X.open().catch(ct)}return X._state.dbReadyPromise.then(function(){return il(X,te,ye,Ae)})}else{var Pe=X._createTransaction(te,ye,X._dbSchema);try{Pe.create(),X._state.PR1398_maxLoop=3}catch(He){return He.name===Ie.InvalidState&&X.isOpen()&&--X._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),X.close({disableAutoOpen:!1}),X.open().then(function(){return il(X,te,ye,Ae)})):pa(He)}return Pe._promise(te,function(He,rt){return Us(function(){return Le.trans=Pe,Ae(He,rt,Pe)})}).then(function(He){if(te==="readwrite")try{Pe.idbtrans.commit()}catch{}return te==="readonly"?He:Pe._completion.then(function(){return He})})}}var td="4.3.0",lc="￿",Cf=-1/0,Tc="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",Ig="String expected.",Bu=[],ju="__dbnames",Mp="readonly",Op="readwrite";function xd(X,te){return X?te?function(){return X.apply(this,arguments)&&te.apply(this,arguments)}:X:te}var Sf={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Mh(X){return typeof X=="string"&&!/\./.test(X)?function(te){return te[X]===void 0&&X in te&&(te=le(te),delete te[X]),te}:function(te){return te}}function Sm(){throw ze.Type("Entity instances must never be new:ed. Instances are generated by the framework bypassing the constructor.")}function io(X,te){try{var ye=xf(X),Ae=xf(te);if(ye!==Ae)return ye==="Array"?1:Ae==="Array"?-1:ye==="binary"?1:Ae==="binary"?-1:ye==="string"?1:Ae==="string"?-1:ye==="Date"?1:Ae!=="Date"?NaN:-1;switch(ye){case"number":case"Date":case"string":return X>te?1:X<te?-1:0;case"binary":return Rp(kc(X),kc(te));case"Array":return Ml(X,te)}}catch{}return NaN}function Ml(X,te){for(var ye=X.length,Ae=te.length,Pe=ye<Ae?ye:Ae,He=0;He<Pe;++He){var rt=io(X[He],te[He]);if(rt!==0)return rt}return ye===Ae?0:ye<Ae?-1:1}function Rp(X,te){for(var ye=X.length,Ae=te.length,Pe=ye<Ae?ye:Ae,He=0;He<Pe;++He)if(X[He]!==te[He])return X[He]<te[He]?-1:1;return ye===Ae?0:ye<Ae?-1:1}function xf(X){var te=typeof X;if(te!=="object")return te;if(ArrayBuffer.isView(X))return"binary";var ye=pe(X);return ye==="ArrayBuffer"?"binary":ye}function kc(X){return X instanceof Uint8Array?X:ArrayBuffer.isView(X)?new Uint8Array(X.buffer,X.byteOffset,X.byteLength):new Uint8Array(X)}function nd(X,te,ye){var Ae=X.schema.yProps;return Ae?(te&&ye.numFailures>0&&(te=te.filter(function(Pe,He){return!ye.failures[He]})),Promise.all(Ae.map(function(Pe){var He=Pe.updatesTable;return te?X.db.table(He).where("k").anyOf(te).delete():X.db.table(He).clear()})).then(function(){return ye})):ye}var Ic=(function(){function X(te){this["@@propmod"]=te}return X.prototype.execute=function(te){var ye,Ae=this["@@propmod"];if(Ae.add!==void 0){var Pe=Ae.add;if(l(Pe))return o(o([],l(te)?te:[],!0),Pe).sort();if(typeof Pe=="number")return(Number(te)||0)+Pe;if(typeof Pe=="bigint")try{return BigInt(te)+Pe}catch{return BigInt(0)+Pe}throw new TypeError("Invalid term ".concat(Pe))}if(Ae.remove!==void 0){var He=Ae.remove;if(l(He))return l(te)?te.filter(function(ht){return!He.includes(ht)}).sort():[];if(typeof He=="number")return Number(te)-He;if(typeof He=="bigint")try{return BigInt(te)-He}catch{return BigInt(0)-He}throw new TypeError("Invalid subtrahend ".concat(He))}var rt=(ye=Ae.replacePrefix)===null||ye===void 0?void 0:ye[0];return rt&&typeof te=="string"&&te.startsWith(rt)?Ae.replacePrefix[1]+te.substring(rt.length):te},X})();function Eu(X,te){for(var ye=a(te),Ae=ye.length,Pe=!1,He=0;He<Ae;++He){var rt=ye[He],ht=te[rt],yt=M(X,rt);ht instanceof Ic?(P(X,rt,ht.execute(yt)),Pe=!0):yt!==ht&&(P(X,rt,ht),Pe=!0)}return Pe}var Ed=(function(){function X(){}return X.prototype._trans=function(te,ye,Ae){var Pe=this._tx||Le.trans,He=this.name,rt=Gt&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(te==="readonly"?"read":"write"," ").concat(this.name));function ht(Zt,jt,jn){if(!jn.schema[He])throw new ze.NotFound("Table "+He+" not part of transaction");return ye(jn.idbtrans,jn)}var yt=Bt();try{var Ft=Pe&&Pe.db._novip===this.db._novip?Pe===Le.trans?Pe._promise(te,ht,Ae):Us(function(){return Pe._promise(te,ht,Ae)},{trans:Pe,transless:Le.transless||Le}):il(this.db,te,[this.name],ht);return rt&&(Ft._consoleTask=rt,Ft=Ft.catch(function(Zt){return console.trace(Zt),pa(Zt)})),Ft}finally{yt&&Ue()}},X.prototype.get=function(te,ye){var Ae=this;return te&&te.constructor===Object?this.where(te).first(ye):te==null?pa(new ze.Type("Invalid argument to Table.get()")):this._trans("readonly",function(Pe){return Ae.core.get({trans:Pe,key:te}).then(function(He){return Ae.hook.reading.fire(He)})}).then(ye)},X.prototype.where=function(te){if(typeof te=="string")return new this.db.WhereClause(this,te);if(l(te))return new this.db.WhereClause(this,"[".concat(te.join("+"),"]"));var ye=a(te);if(ye.length===1)return this.where(ye[0]).equals(te[ye[0]]);var Ae=this.schema.indexes.concat(this.schema.primKey).filter(function(Zt){if(Zt.compound&&ye.every(function(jn){return Zt.keyPath.indexOf(jn)>=0})){for(var jt=0;jt<ye.length;++jt)if(ye.indexOf(Zt.keyPath[jt])===-1)return!1;return!0}return!1}).sort(function(Zt,jt){return Zt.keyPath.length-jt.keyPath.length})[0];if(Ae&&this.db._maxKey!==lc){var Pe=Ae.keyPath.slice(0,ye.length);return this.where(Pe).equals(Pe.map(function(Zt){return te[Zt]}))}!Ae&&Gt&&console.warn("The query ".concat(JSON.stringify(te)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(ye.join("+"),"]"));var He=this.schema.idxByName;function rt(Zt,jt){return io(Zt,jt)===0}var ht=ye.reduce(function(Zt,jt){var jn=Zt[0],Ei=Zt[1],sn=He[jt],vn=te[jt];return[jn||sn,jn||!sn?xd(Ei,sn&&sn.multi?function(zn){var Jn=M(zn,jt);return l(Jn)&&Jn.some(function(si){return rt(vn,si)})}:function(zn){return rt(vn,M(zn,jt))}):Ei]},[null,null]),yt=ht[0],Ft=ht[1];return yt?this.where(yt.name).equals(te[yt.keyPath]).filter(Ft):Ae?this.filter(Ft):this.where(ye).equals("")},X.prototype.filter=function(te){return this.toCollection().and(te)},X.prototype.count=function(te){return this.toCollection().count(te)},X.prototype.offset=function(te){return this.toCollection().offset(te)},X.prototype.limit=function(te){return this.toCollection().limit(te)},X.prototype.each=function(te){return this.toCollection().each(te)},X.prototype.toArray=function(te){return this.toCollection().toArray(te)},X.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},X.prototype.orderBy=function(te){return new this.db.Collection(new this.db.WhereClause(this,l(te)?"[".concat(te.join("+"),"]"):te))},X.prototype.reverse=function(){return this.toCollection().reverse()},X.prototype.mapToClass=function(te){var ye=this,Ae=ye.db,Pe=ye.name;this.schema.mappedClass=te,te.prototype instanceof Sm&&(te=(function(yt){i(Ft,yt);function Ft(){return yt!==null&&yt.apply(this,arguments)||this}return Object.defineProperty(Ft.prototype,"db",{get:function(){return Ae},enumerable:!1,configurable:!0}),Ft.prototype.table=function(){return Pe},Ft})(te));for(var He=new Set,rt=te.prototype;rt;rt=u(rt))Object.getOwnPropertyNames(rt).forEach(function(yt){return He.add(yt)});var ht=function(yt){if(!yt)return yt;var Ft=Object.create(te.prototype);for(var Zt in yt)if(!He.has(Zt))try{Ft[Zt]=yt[Zt]}catch{}return Ft};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=ht,this.hook("reading",ht),te},X.prototype.defineClass=function(){function te(ye){c(this,ye)}return this.mapToClass(te)},X.prototype.add=function(te,ye){var Ae=this,Pe=this.schema.primKey,He=Pe.auto,rt=Pe.keyPath,ht=te;return rt&&He&&(ht=Mh(rt)(te)),this._trans("readwrite",function(yt){return Ae.core.mutate({trans:yt,type:"add",keys:ye!=null?[ye]:null,values:[ht]})}).then(function(yt){return yt.numFailures?Ve.reject(yt.failures[0]):yt.lastResult}).then(function(yt){if(rt)try{P(te,rt,yt)}catch{}return yt})},X.prototype.upsert=function(te,ye){var Ae=this,Pe=this.schema.primKey.keyPath;return this._trans("readwrite",function(He){return Ae.core.get({trans:He,key:te}).then(function(rt){var ht=rt??{};return Eu(ht,ye),Pe&&P(ht,Pe,te),Ae.core.mutate({trans:He,type:"put",values:[ht],keys:[te],upsert:!0,updates:{keys:[te],changeSpecs:[ye]}}).then(function(yt){return yt.numFailures?Ve.reject(yt.failures[0]):!!rt})})})},X.prototype.update=function(te,ye){if(typeof te=="object"&&!l(te)){var Ae=M(te,this.schema.primKey.keyPath);return Ae===void 0?pa(new ze.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(Ae).modify(ye)}else return this.where(":id").equals(te).modify(ye)},X.prototype.put=function(te,ye){var Ae=this,Pe=this.schema.primKey,He=Pe.auto,rt=Pe.keyPath,ht=te;return rt&&He&&(ht=Mh(rt)(te)),this._trans("readwrite",function(yt){return Ae.core.mutate({trans:yt,type:"put",values:[ht],keys:ye!=null?[ye]:null})}).then(function(yt){return yt.numFailures?Ve.reject(yt.failures[0]):yt.lastResult}).then(function(yt){if(rt)try{P(te,rt,yt)}catch{}return yt})},X.prototype.delete=function(te){var ye=this;return this._trans("readwrite",function(Ae){return ye.core.mutate({trans:Ae,type:"delete",keys:[te]}).then(function(Pe){return nd(ye,[te],Pe)}).then(function(Pe){return Pe.numFailures?Ve.reject(Pe.failures[0]):void 0})})},X.prototype.clear=function(){var te=this;return this._trans("readwrite",function(ye){return te.core.mutate({trans:ye,type:"deleteRange",range:Sf}).then(function(Ae){return nd(te,null,Ae)})}).then(function(ye){return ye.numFailures?Ve.reject(ye.failures[0]):void 0})},X.prototype.bulkGet=function(te){var ye=this;return this._trans("readonly",function(Ae){return ye.core.getMany({keys:te,trans:Ae}).then(function(Pe){return Pe.map(function(He){return ye.hook.reading.fire(He)})})})},X.prototype.bulkAdd=function(te,ye,Ae){var Pe=this,He=Array.isArray(ye)?ye:void 0;Ae=Ae||(He?void 0:ye);var rt=Ae?Ae.allKeys:void 0;return this._trans("readwrite",function(ht){var yt=Pe.schema.primKey,Ft=yt.auto,Zt=yt.keyPath;if(Zt&&He)throw new ze.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(He&&He.length!==te.length)throw new ze.InvalidArgument("Arguments objects and keys must have the same length");var jt=te.length,jn=Zt&&Ft?te.map(Mh(Zt)):te;return Pe.core.mutate({trans:ht,type:"add",keys:He,values:jn,wantResults:rt}).then(function(Ei){var sn=Ei.numFailures,vn=Ei.results,zn=Ei.lastResult,Jn=Ei.failures,si=rt?vn:zn;if(sn===0)return si;throw new he("".concat(Pe.name,".bulkAdd(): ").concat(sn," of ").concat(jt," operations failed"),Jn)})})},X.prototype.bulkPut=function(te,ye,Ae){var Pe=this,He=Array.isArray(ye)?ye:void 0;Ae=Ae||(He?void 0:ye);var rt=Ae?Ae.allKeys:void 0;return this._trans("readwrite",function(ht){var yt=Pe.schema.primKey,Ft=yt.auto,Zt=yt.keyPath;if(Zt&&He)throw new ze.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(He&&He.length!==te.length)throw new ze.InvalidArgument("Arguments objects and keys must have the same length");var jt=te.length,jn=Zt&&Ft?te.map(Mh(Zt)):te;return Pe.core.mutate({trans:ht,type:"put",keys:He,values:jn,wantResults:rt}).then(function(Ei){var sn=Ei.numFailures,vn=Ei.results,zn=Ei.lastResult,Jn=Ei.failures,si=rt?vn:zn;if(sn===0)return si;throw new he("".concat(Pe.name,".bulkPut(): ").concat(sn," of ").concat(jt," operations failed"),Jn)})})},X.prototype.bulkUpdate=function(te){var ye=this,Ae=this.core,Pe=te.map(function(ht){return ht.key}),He=te.map(function(ht){return ht.changes}),rt=[];return this._trans("readwrite",function(ht){return Ae.getMany({trans:ht,keys:Pe,cache:"clone"}).then(function(yt){var Ft=[],Zt=[];te.forEach(function(jn,Ei){var sn=jn.key,vn=jn.changes,zn=yt[Ei];if(zn){for(var Jn=0,si=Object.keys(vn);Jn<si.length;Jn++){var ii=si[Jn],mi=vn[ii];if(ii===ye.schema.primKey.keyPath){if(io(mi,sn)!==0)throw new ze.Constraint("Cannot update primary key in bulkUpdate()")}else P(zn,ii,mi)}rt.push(Ei),Ft.push(sn),Zt.push(zn)}});var jt=Ft.length;return Ae.mutate({trans:ht,type:"put",keys:Ft,values:Zt,updates:{keys:Pe,changeSpecs:He}}).then(function(jn){var Ei=jn.numFailures,sn=jn.failures;if(Ei===0)return jt;for(var vn=0,zn=Object.keys(sn);vn<zn.length;vn++){var Jn=zn[vn],si=rt[Number(Jn)];if(si!=null){var ii=sn[Jn];delete sn[Jn],sn[si]=ii}}throw new he("".concat(ye.name,".bulkUpdate(): ").concat(Ei," of ").concat(jt," operations failed"),sn)})})})},X.prototype.bulkDelete=function(te){var ye=this,Ae=te.length;return this._trans("readwrite",function(Pe){return ye.core.mutate({trans:Pe,type:"delete",keys:te}).then(function(He){return nd(ye,te,He)})}).then(function(Pe){var He=Pe.numFailures,rt=Pe.lastResult,ht=Pe.failures;if(He===0)return rt;throw new he("".concat(ye.name,".bulkDelete(): ").concat(He," of ").concat(Ae," operations failed"),ht)})},X})();function $c(X){var te={},ye=function(ht,yt){if(yt){for(var Ft=arguments.length,Zt=new Array(Ft-1);--Ft;)Zt[Ft-1]=arguments[Ft];return te[ht].subscribe.apply(null,Zt),X}else if(typeof ht=="string")return te[ht]};ye.addEventType=He;for(var Ae=1,Pe=arguments.length;Ae<Pe;++Ae)He(arguments[Ae]);return ye;function He(ht,yt,Ft){if(typeof ht=="object")return rt(ht);yt||(yt=Yt),Ft||(Ft=ct);var Zt={subscribers:[],fire:Ft,subscribe:function(jt){Zt.subscribers.indexOf(jt)===-1&&(Zt.subscribers.push(jt),Zt.fire=yt(Zt.fire,jt))},unsubscribe:function(jt){Zt.subscribers=Zt.subscribers.filter(function(jn){return jn!==jt}),Zt.fire=Zt.subscribers.reduce(yt,Ft)}};return te[ht]=ye[ht]=Zt,Zt}function rt(ht){a(ht).forEach(function(yt){var Ft=ht[yt];if(l(Ft))He(yt,ht[yt][0],ht[yt][1]);else if(Ft==="asap")var Zt=He(yt,et,function(){for(var jn=arguments.length,Ei=new Array(jn);jn--;)Ei[jn]=arguments[jn];Zt.subscribers.forEach(function(sn){D(function(){sn.apply(null,Ei)})})});else throw new ze.InvalidArgument("Invalid event config")})}}function Lc(X,te){return m(te).from({prototype:X}),te}function Ef(X){return Lc(Ed.prototype,function(ye,Ae,Pe){this.db=X,this._tx=Pe,this.name=ye,this.schema=Ae,this.hook=X._allTables[ye]?X._allTables[ye].hook:$c(null,{creating:[pt,ct],reading:[ut,et],updating:[Rt,ct],deleting:[_t,ct]})})}function cc(X,te){return!(X.filter||X.algorithm||X.or)&&(te?X.justLimit:!X.replayFilter)}function Au(X,te){X.filter=xd(X.filter,te)}function xe(X,te,ye){var Ae=X.replayFilter;X.replayFilter=Ae?function(){return xd(Ae(),te())}:te,X.justLimit=ye&&!Ae}function Ke(X,te){X.isMatch=xd(X.isMatch,te)}function nt(X,te){if(X.isPrimKey)return te.primaryKey;var ye=te.getIndexByKeyPath(X.index);if(!ye)throw new ze.Schema("KeyPath "+X.index+" on object store "+te.name+" is not indexed");return ye}function kt(X,te,ye){var Ae=nt(X,te.schema);return te.openCursor({trans:ye,values:!X.keysOnly,reverse:X.dir==="prev",unique:!!X.unique,query:{index:Ae,range:X.range}})}function Oe(X,te,ye,Ae){var Pe=X.replayFilter?xd(X.filter,X.replayFilter()):X.filter;if(X.or){var He={},rt=function(ht,yt,Ft){if(!Pe||Pe(yt,Ft,function(jn){return yt.stop(jn)},function(jn){return yt.fail(jn)})){var Zt=yt.primaryKey,jt=""+Zt;jt==="[object ArrayBuffer]"&&(jt=""+new Uint8Array(Zt)),h(He,jt)||(He[jt]=!0,te(ht,yt,Ft))}};return Promise.all([X.or._iterate(rt,ye),st(kt(X,Ae,ye),X.algorithm,rt,!X.keysOnly&&X.valueMapper)])}else return st(kt(X,Ae,ye),xd(X.algorithm,Pe),te,!X.keysOnly&&X.valueMapper)}function st(X,te,ye,Ae){var Pe=Ae?function(rt,ht,yt){return ye(Ae(rt),ht,yt)}:ye,He=xi(Pe);return X.then(function(rt){if(rt)return rt.start(function(){var ht=function(){return rt.continue()};(!te||te(rt,function(yt){return ht=yt},function(yt){rt.stop(yt),ht=ct},function(yt){rt.fail(yt),ht=ct}))&&He(rt.value,rt,function(yt){return ht=yt}),ht()})})}var $t=(function(){function X(){}return X.prototype._read=function(te,ye){var Ae=this._ctx;return Ae.error?Ae.table._trans(null,pa.bind(null,Ae.error)):Ae.table._trans("readonly",te).then(ye)},X.prototype._write=function(te){var ye=this._ctx;return ye.error?ye.table._trans(null,pa.bind(null,ye.error)):ye.table._trans("readwrite",te,"locked")},X.prototype._addAlgorithm=function(te){var ye=this._ctx;ye.algorithm=xd(ye.algorithm,te)},X.prototype._iterate=function(te,ye){return Oe(this._ctx,te,ye,this._ctx.table.core)},X.prototype.clone=function(te){var ye=Object.create(this.constructor.prototype),Ae=Object.create(this._ctx);return te&&c(Ae,te),ye._ctx=Ae,ye},X.prototype.raw=function(){return this._ctx.valueMapper=null,this},X.prototype.each=function(te){var ye=this._ctx;return this._read(function(Ae){return Oe(ye,te,Ae,ye.table.core)})},X.prototype.count=function(te){var ye=this;return this._read(function(Ae){var Pe=ye._ctx,He=Pe.table.core;if(cc(Pe,!0))return He.count({trans:Ae,query:{index:nt(Pe,He.schema),range:Pe.range}}).then(function(ht){return Math.min(ht,Pe.limit)});var rt=0;return Oe(Pe,function(){return++rt,!1},Ae,He).then(function(){return rt})}).then(te)},X.prototype.sortBy=function(te,ye){var Ae=te.split(".").reverse(),Pe=Ae[0],He=Ae.length-1;function rt(Ft,Zt){return Zt?rt(Ft[Ae[Zt]],Zt-1):Ft[Pe]}var ht=this._ctx.dir==="next"?1:-1;function yt(Ft,Zt){var jt=rt(Ft,He),jn=rt(Zt,He);return io(jt,jn)*ht}return this.toArray(function(Ft){return Ft.sort(yt)}).then(ye)},X.prototype.toArray=function(te){var ye=this;return this._read(function(Ae){var Pe=ye._ctx;if(Pe.dir==="next"&&cc(Pe,!0)&&Pe.limit>0){var He=Pe.valueMapper,rt=nt(Pe,Pe.table.core.schema);return Pe.table.core.query({trans:Ae,limit:Pe.limit,values:!0,query:{index:rt,range:Pe.range}}).then(function(yt){var Ft=yt.result;return He?Ft.map(He):Ft})}else{var ht=[];return Oe(Pe,function(yt){return ht.push(yt)},Ae,Pe.table.core).then(function(){return ht})}},te)},X.prototype.offset=function(te){var ye=this._ctx;return te<=0?this:(ye.offset+=te,cc(ye)?xe(ye,function(){var Ae=te;return function(Pe,He){return Ae===0?!0:Ae===1?(--Ae,!1):(He(function(){Pe.advance(Ae),Ae=0}),!1)}}):xe(ye,function(){var Ae=te;return function(){return--Ae<0}}),this)},X.prototype.limit=function(te){return this._ctx.limit=Math.min(this._ctx.limit,te),xe(this._ctx,function(){var ye=te;return function(Ae,Pe,He){return--ye<=0&&Pe(He),ye>=0}},!0),this},X.prototype.until=function(te,ye){return Au(this._ctx,function(Ae,Pe,He){return te(Ae.value)?(Pe(He),ye):!0}),this},X.prototype.first=function(te){return this.limit(1).toArray(function(ye){return ye[0]}).then(te)},X.prototype.last=function(te){return this.reverse().first(te)},X.prototype.filter=function(te){return Au(this._ctx,function(ye){return te(ye.value)}),Ke(this._ctx,te),this},X.prototype.and=function(te){return this.filter(te)},X.prototype.or=function(te){return new this.db.WhereClause(this._ctx.table,te,this)},X.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},X.prototype.desc=function(){return this.reverse()},X.prototype.eachKey=function(te){var ye=this._ctx;return ye.keysOnly=!ye.isMatch,this.each(function(Ae,Pe){te(Pe.key,Pe)})},X.prototype.eachUniqueKey=function(te){return this._ctx.unique="unique",this.eachKey(te)},X.prototype.eachPrimaryKey=function(te){var ye=this._ctx;return ye.keysOnly=!ye.isMatch,this.each(function(Ae,Pe){te(Pe.primaryKey,Pe)})},X.prototype.keys=function(te){var ye=this._ctx;ye.keysOnly=!ye.isMatch;var Ae=[];return this.each(function(Pe,He){Ae.push(He.key)}).then(function(){return Ae}).then(te)},X.prototype.primaryKeys=function(te){var ye=this._ctx;if(ye.dir==="next"&&cc(ye,!0)&&ye.limit>0)return this._read(function(Pe){var He=nt(ye,ye.table.core.schema);return ye.table.core.query({trans:Pe,values:!1,limit:ye.limit,query:{index:He,range:ye.range}})}).then(function(Pe){var He=Pe.result;return He}).then(te);ye.keysOnly=!ye.isMatch;var Ae=[];return this.each(function(Pe,He){Ae.push(He.primaryKey)}).then(function(){return Ae}).then(te)},X.prototype.uniqueKeys=function(te){return this._ctx.unique="unique",this.keys(te)},X.prototype.firstKey=function(te){return this.limit(1).keys(function(ye){return ye[0]}).then(te)},X.prototype.lastKey=function(te){return this.reverse().firstKey(te)},X.prototype.distinct=function(){var te=this._ctx,ye=te.index&&te.table.schema.idxByName[te.index];if(!ye||!ye.multi)return this;var Ae={};return Au(this._ctx,function(Pe){var He=Pe.primaryKey.toString(),rt=h(Ae,He);return Ae[He]=!0,!rt}),this},X.prototype.modify=function(te){var ye=this,Ae=this._ctx;return this._write(function(Pe){var He;typeof te=="function"?He=te:He=function(Jn){return Eu(Jn,te)};var rt=Ae.table.core,ht=rt.schema.primaryKey,yt=ht.outbound,Ft=ht.extractKey,Zt=200,jt=ye.db._options.modifyChunkSize;jt&&(typeof jt=="object"?Zt=jt[rt.name]||jt["*"]||200:Zt=jt);var jn=[],Ei=0,sn=[],vn=function(Jn,si){var ii=si.failures,mi=si.numFailures;Ei+=Jn-mi;for(var oi=0,or=a(ii);oi<or.length;oi++){var sr=or[oi];jn.push(ii[sr])}},zn=te===yi;return ye.clone().primaryKeys().then(function(Jn){var si=cc(Ae)&&Ae.limit===1/0&&(typeof te!="function"||zn)&&{index:Ae.index,range:Ae.range},ii=function(mi){var oi=Math.min(Zt,Jn.length-mi),or=Jn.slice(mi,mi+oi);return(zn?Promise.resolve([]):rt.getMany({trans:Pe,keys:or,cache:"immutable"})).then(function(sr){var Gi=[],eo=[],Uo=yt?[]:null,Er=zn?or:[];if(!zn)for(var ps=0;ps<oi;++ps){var vo=sr[ps],k={value:le(vo),primKey:Jn[mi+ps]};He.call(k,k.value,k)!==!1&&(k.value==null?Er.push(Jn[mi+ps]):!yt&&io(Ft(vo),Ft(k.value))!==0?(Er.push(Jn[mi+ps]),Gi.push(k.value)):(eo.push(k.value),yt&&Uo.push(Jn[mi+ps])))}return Promise.resolve(Gi.length>0&&rt.mutate({trans:Pe,type:"add",values:Gi}).then(function(C){for(var O in C.failures)Er.splice(parseInt(O),1);vn(Gi.length,C)})).then(function(){return(eo.length>0||si&&typeof te=="object")&&rt.mutate({trans:Pe,type:"put",keys:Uo,values:eo,criteria:si,changeSpec:typeof te!="function"&&te,isAdditionalChunk:mi>0}).then(function(C){return vn(eo.length,C)})}).then(function(){return(Er.length>0||si&&zn)&&rt.mutate({trans:Pe,type:"delete",keys:Er,criteria:si,isAdditionalChunk:mi>0}).then(function(C){return nd(Ae.table,Er,C)}).then(function(C){return vn(Er.length,C)})}).then(function(){return Jn.length>mi+oi&&ii(mi+Zt)})})};return ii(0).then(function(){if(jn.length>0)throw new $("Error modifying one or more objects",jn,Ei,sn);return Jn.length})})})},X.prototype.delete=function(){var te=this._ctx,ye=te.range;return cc(te)&&!te.table.schema.yProps&&(te.isPrimKey||ye.type===3)?this._write(function(Ae){var Pe=te.table.core.schema.primaryKey,He=ye;return te.table.core.count({trans:Ae,query:{index:Pe,range:He}}).then(function(rt){return te.table.core.mutate({trans:Ae,type:"deleteRange",range:He}).then(function(ht){var yt=ht.failures,Ft=ht.numFailures;if(Ft)throw new $("Could not delete some values",Object.keys(yt).map(function(Zt){return yt[Zt]}),rt-Ft);return rt-Ft})})}):this.modify(yi)},X})(),yi=function(X,te){return te.value=null};function xr(X){return Lc($t.prototype,function(ye,Ae){this.db=X;var Pe=Sf,He=null;if(Ae)try{Pe=Ae()}catch(Ft){He=Ft}var rt=ye._ctx,ht=rt.table,yt=ht.hook.reading.fire;this._ctx={table:ht,index:rt.index,isPrimKey:!rt.index||ht.schema.primKey.keyPath&&rt.index===ht.schema.primKey.name,range:Pe,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:He,or:rt.or,valueMapper:yt!==et?yt:null}})}function Gn(X,te){return X<te?-1:X===te?0:1}function Go(X,te){return X>te?-1:X===te?0:1}function ro(X,te,ye){var Ae=X instanceof zt?new X.Collection(X):X;return Ae._ctx.error=ye?new ye(te):new TypeError(te),Ae}function ts(X){return new X.Collection(X,function(){return Je("")}).limit(0)}function dl(X){return X==="next"?function(te){return te.toUpperCase()}:function(te){return te.toLowerCase()}}function hs(X){return X==="next"?function(te){return te.toLowerCase()}:function(te){return te.toUpperCase()}}function du(X,te,ye,Ae,Pe,He){for(var rt=Math.min(X.length,Ae.length),ht=-1,yt=0;yt<rt;++yt){var Ft=te[yt];if(Ft!==Ae[yt])return Pe(X[yt],ye[yt])<0?X.substr(0,yt)+ye[yt]+ye.substr(yt+1):Pe(X[yt],Ae[yt])<0?X.substr(0,yt)+Ae[yt]+ye.substr(yt+1):ht>=0?X.substr(0,ht)+te[ht]+ye.substr(ht+1):null;Pe(X[yt],Ft)<0&&(ht=yt)}return rt<Ae.length&&He==="next"?X+ye.substr(X.length):rt<X.length&&He==="prev"?X.substr(0,ye.length):ht<0?null:X.substr(0,ht)+Ae[ht]+ye.substr(ht+1)}function Zf(X,te,ye,Ae){var Pe,He,rt,ht,yt,Ft,Zt,jt=ye.length;if(!ye.every(function(vn){return typeof vn=="string"}))return ro(X,Ig);function jn(vn){Pe=dl(vn),He=hs(vn),rt=vn==="next"?Gn:Go;var zn=ye.map(function(Jn){return{lower:He(Jn),upper:Pe(Jn)}}).sort(function(Jn,si){return rt(Jn.lower,si.lower)});ht=zn.map(function(Jn){return Jn.upper}),yt=zn.map(function(Jn){return Jn.lower}),Ft=vn,Zt=vn==="next"?"":Ae}jn("next");var Ei=new X.Collection(X,function(){return Qd(ht[0],yt[jt-1]+Ae)});Ei._ondirectionchange=function(vn){jn(vn)};var sn=0;return Ei._addAlgorithm(function(vn,zn,Jn){var si=vn.key;if(typeof si!="string")return!1;var ii=He(si);if(te(ii,yt,sn))return!0;for(var mi=null,oi=sn;oi<jt;++oi){var or=du(si,ii,ht[oi],yt[oi],rt,Ft);or===null&&mi===null?sn=oi+1:(mi===null||rt(mi,or)>0)&&(mi=or)}return zn(mi!==null?function(){vn.continue(mi+Zt)}:Jn),!1}),Ei}function Qd(X,te,ye,Ae){return{type:2,lower:X,upper:te,lowerOpen:ye,upperOpen:Ae}}function Je(X){return{type:1,lower:X,upper:X}}var zt=(function(){function X(){}return Object.defineProperty(X.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),X.prototype.between=function(te,ye,Ae,Pe){Ae=Ae!==!1,Pe=Pe===!0;try{return this._cmp(te,ye)>0||this._cmp(te,ye)===0&&(Ae||Pe)&&!(Ae&&Pe)?ts(this):new this.Collection(this,function(){return Qd(te,ye,!Ae,!Pe)})}catch{return ro(this,Tc)}},X.prototype.equals=function(te){return te==null?ro(this,Tc):new this.Collection(this,function(){return Je(te)})},X.prototype.above=function(te){return te==null?ro(this,Tc):new this.Collection(this,function(){return Qd(te,void 0,!0)})},X.prototype.aboveOrEqual=function(te){return te==null?ro(this,Tc):new this.Collection(this,function(){return Qd(te,void 0,!1)})},X.prototype.below=function(te){return te==null?ro(this,Tc):new this.Collection(this,function(){return Qd(void 0,te,!1,!0)})},X.prototype.belowOrEqual=function(te){return te==null?ro(this,Tc):new this.Collection(this,function(){return Qd(void 0,te)})},X.prototype.startsWith=function(te){return typeof te!="string"?ro(this,Ig):this.between(te,te+lc,!0,!0)},X.prototype.startsWithIgnoreCase=function(te){return te===""?this.startsWith(te):Zf(this,function(ye,Ae){return ye.indexOf(Ae[0])===0},[te],lc)},X.prototype.equalsIgnoreCase=function(te){return Zf(this,function(ye,Ae){return ye===Ae[0]},[te],"")},X.prototype.anyOfIgnoreCase=function(){var te=de.apply(ce,arguments);return te.length===0?ts(this):Zf(this,function(ye,Ae){return Ae.indexOf(ye)!==-1},te,"")},X.prototype.startsWithAnyOfIgnoreCase=function(){var te=de.apply(ce,arguments);return te.length===0?ts(this):Zf(this,function(ye,Ae){return Ae.some(function(Pe){return ye.indexOf(Pe)===0})},te,lc)},X.prototype.anyOf=function(){var te=this,ye=de.apply(ce,arguments),Ae=this._cmp;try{ye.sort(Ae)}catch{return ro(this,Tc)}if(ye.length===0)return ts(this);var Pe=new this.Collection(this,function(){return Qd(ye[0],ye[ye.length-1])});Pe._ondirectionchange=function(rt){Ae=rt==="next"?te._ascending:te._descending,ye.sort(Ae)};var He=0;return Pe._addAlgorithm(function(rt,ht,yt){for(var Ft=rt.key;Ae(Ft,ye[He])>0;)if(++He,He===ye.length)return ht(yt),!1;return Ae(Ft,ye[He])===0?!0:(ht(function(){rt.continue(ye[He])}),!1)}),Pe},X.prototype.notEqual=function(te){return this.inAnyRange([[Cf,te],[te,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},X.prototype.noneOf=function(){var te=de.apply(ce,arguments);if(te.length===0)return new this.Collection(this);try{te.sort(this._ascending)}catch{return ro(this,Tc)}var ye=te.reduce(function(Ae,Pe){return Ae?Ae.concat([[Ae[Ae.length-1][1],Pe]]):[[Cf,Pe]]},null);return ye.push([te[te.length-1],this.db._maxKey]),this.inAnyRange(ye,{includeLowers:!1,includeUppers:!1})},X.prototype.inAnyRange=function(te,ye){var Ae=this,Pe=this._cmp,He=this._ascending,rt=this._descending,ht=this._min,yt=this._max;if(te.length===0)return ts(this);if(!te.every(function(oi){return oi[0]!==void 0&&oi[1]!==void 0&&He(oi[0],oi[1])<=0}))return ro(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",ze.InvalidArgument);var Ft=!ye||ye.includeLowers!==!1,Zt=ye&&ye.includeUppers===!0;function jt(oi,or){for(var sr=0,Gi=oi.length;sr<Gi;++sr){var eo=oi[sr];if(Pe(or[0],eo[1])<0&&Pe(or[1],eo[0])>0){eo[0]=ht(eo[0],or[0]),eo[1]=yt(eo[1],or[1]);break}}return sr===Gi&&oi.push(or),oi}var jn=He;function Ei(oi,or){return jn(oi[0],or[0])}var sn;try{sn=te.reduce(jt,[]),sn.sort(Ei)}catch{return ro(this,Tc)}var vn=0,zn=Zt?function(oi){return He(oi,sn[vn][1])>0}:function(oi){return He(oi,sn[vn][1])>=0},Jn=Ft?function(oi){return rt(oi,sn[vn][0])>0}:function(oi){return rt(oi,sn[vn][0])>=0};function si(oi){return!zn(oi)&&!Jn(oi)}var ii=zn,mi=new this.Collection(this,function(){return Qd(sn[0][0],sn[sn.length-1][1],!Ft,!Zt)});return mi._ondirectionchange=function(oi){oi==="next"?(ii=zn,jn=He):(ii=Jn,jn=rt),sn.sort(Ei)},mi._addAlgorithm(function(oi,or,sr){for(var Gi=oi.key;ii(Gi);)if(++vn,vn===sn.length)return or(sr),!1;return si(Gi)?!0:(Ae._cmp(Gi,sn[vn][1])===0||Ae._cmp(Gi,sn[vn][0])===0||or(function(){jn===He?oi.continue(sn[vn][0]):oi.continue(sn[vn][1])}),!1)}),mi},X.prototype.startsWithAnyOf=function(){var te=de.apply(ce,arguments);return te.every(function(ye){return typeof ye=="string"})?te.length===0?ts(this):this.inAnyRange(te.map(function(ye){return[ye,ye+lc]})):ro(this,"startsWithAnyOf() only works with strings")},X})();function Kn(X){return Lc(zt.prototype,function(ye,Ae,Pe){if(this.db=X,this._ctx={table:ye,index:Ae===":id"?null:Ae,or:Pe},this._cmp=this._ascending=io,this._descending=function(He,rt){return io(rt,He)},this._max=function(He,rt){return io(He,rt)>0?He:rt},this._min=function(He,rt){return io(He,rt)<0?He:rt},this._IDBKeyRange=X._deps.IDBKeyRange,!this._IDBKeyRange)throw new ze.MissingAPI})}function Mi(X){return xi(function(te){return Fo(te),X(te.target.error),!1})}function Fo(X){X.stopPropagation&&X.stopPropagation(),X.preventDefault&&X.preventDefault()}var Vr="storagemutated",We="x-storagemutated-1",At=$c(null,Vr),mn=(function(){function X(){}return X.prototype._lock=function(){return A(!Le.global),++this._reculock,this._reculock===1&&!Le.global&&(Le.lockOwnerFor=this),this},X.prototype._unlock=function(){if(A(!Le.global),--this._reculock===0)for(Le.global||(Le.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var te=this._blockedFuncs.shift();try{Dc(te[1],te[0])}catch{}}return this},X.prototype._locked=function(){return this._reculock&&Le.lockOwnerFor!==this},X.prototype.create=function(te){var ye=this;if(!this.mode)return this;var Ae=this.db.idbdb,Pe=this.db._state.dbOpenError;if(A(!this.idbtrans),!te&&!Ae)switch(Pe&&Pe.name){case"DatabaseClosedError":throw new ze.DatabaseClosed(Pe);case"MissingAPIError":throw new ze.MissingAPI(Pe.message,Pe);default:throw new ze.OpenFailed(Pe)}if(!this.active)throw new ze.TransactionInactive;return A(this._completion._state===null),te=this.idbtrans=te||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):Ae.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})),te.onerror=xi(function(He){Fo(He),ye._reject(te.error)}),te.onabort=xi(function(He){Fo(He),ye.active&&ye._reject(new ze.Abort(te.error)),ye.active=!1,ye.on("abort").fire(He)}),te.oncomplete=xi(function(){ye.active=!1,ye._resolve(),"mutatedParts"in te&&At.storagemutated.fire(te.mutatedParts)}),this},X.prototype._promise=function(te,ye,Ae){var Pe=this;if(te==="readwrite"&&this.mode!=="readwrite")return pa(new ze.ReadOnly("Transaction is readonly"));if(!this.active)return pa(new ze.TransactionInactive);if(this._locked())return new Ve(function(rt,ht){Pe._blockedFuncs.push([function(){Pe._promise(te,ye,Ae).then(rt,ht)},Le])});if(Ae)return Us(function(){var rt=new Ve(function(ht,yt){Pe._lock();var Ft=ye(ht,yt,Pe);Ft&&Ft.then&&Ft.then(ht,yt)});return rt.finally(function(){return Pe._unlock()}),rt._lib=!0,rt});var He=new Ve(function(rt,ht){var yt=ye(rt,ht,Pe);yt&&yt.then&&yt.then(rt,ht)});return He._lib=!0,He},X.prototype._root=function(){return this.parent?this.parent._root():this},X.prototype.waitFor=function(te){var ye=this._root(),Ae=Ve.resolve(te);if(ye._waitingFor)ye._waitingFor=ye._waitingFor.then(function(){return Ae});else{ye._waitingFor=Ae,ye._waitingQueue=[];var Pe=ye.idbtrans.objectStore(ye.storeNames[0]);(function rt(){for(++ye._spinCount;ye._waitingQueue.length;)ye._waitingQueue.shift()();ye._waitingFor&&(Pe.get(-1/0).onsuccess=rt)})()}var He=ye._waitingFor;return new Ve(function(rt,ht){Ae.then(function(yt){return ye._waitingQueue.push(xi(rt.bind(null,yt)))},function(yt){return ye._waitingQueue.push(xi(ht.bind(null,yt)))}).finally(function(){ye._waitingFor===He&&(ye._waitingFor=null)})})},X.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new ze.Abort))},X.prototype.table=function(te){var ye=this._memoizedTables||(this._memoizedTables={});if(h(ye,te))return ye[te];var Ae=this.schema[te];if(!Ae)throw new ze.NotFound("Table "+te+" not part of transaction");var Pe=new this.db.Table(te,Ae,this);return Pe.core=this.db.core.table(te),ye[te]=Pe,Pe},X})();function bi(X){return Lc(mn.prototype,function(ye,Ae,Pe,He,rt){var ht=this;ye!=="readonly"&&Ae.forEach(function(yt){var Ft,Zt=(Ft=Pe[yt])===null||Ft===void 0?void 0:Ft.yProps;Zt&&(Ae=Ae.concat(Zt.map(function(jt){return jt.updatesTable})))}),this.db=X,this.mode=ye,this.storeNames=Ae,this.schema=Pe,this.chromeTransactionDurability=He,this.idbtrans=null,this.on=$c(this,"complete","error","abort"),this.parent=rt||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Ve(function(yt,Ft){ht._resolve=yt,ht._reject=Ft}),this._completion.then(function(){ht.active=!1,ht.on.complete.fire()},function(yt){var Ft=ht.active;return ht.active=!1,ht.on.error.fire(yt),ht.parent?ht.parent._reject(yt):Ft&&ht.idbtrans&&ht.idbtrans.abort(),pa(yt)})})}function Dr(X,te,ye,Ae,Pe,He,rt,ht){return{name:X,keyPath:te,unique:ye,multi:Ae,auto:Pe,compound:He,src:(ye&&!rt?"&":"")+(Ae?"*":"")+(Pe?"++":"")+Xi(te),type:ht}}function Xi(X){return typeof X=="string"?X:X?"["+[].join.call(X,"+")+"]":""}function Br(X,te,ye){return{name:X,primKey:te,indexes:ye,mappedClass:null,idxByName:T(ye,function(Ae){return[Ae.name,Ae]})}}function _a(X){return X.length===1?X[0]:X}var fs=function(X){try{return X.only([[]]),fs=function(){return[[]]},[[]]}catch{return fs=function(){return lc},lc}};function hl(X){return X==null?function(){}:typeof X=="string"?Ol(X):function(te){return M(te,X)}}function Ol(X){var te=X.split(".");return te.length===1?function(ye){return ye[X]}:function(ye){return M(ye,X)}}function Yl(X){return[].slice.call(X)}var Du=0;function Nc(X){return X==null?":id":typeof X=="string"?X:"[".concat(X.join("+"),"]")}function id(X,te,ye){function Ae(jt,jn){var Ei=Yl(jt.objectStoreNames);return{schema:{name:jt.name,tables:Ei.map(function(sn){return jn.objectStore(sn)}).map(function(sn){var vn=sn.keyPath,zn=sn.autoIncrement,Jn=l(vn),si=vn==null,ii={},mi={name:sn.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:si,compound:Jn,keyPath:vn,autoIncrement:zn,unique:!0,extractKey:hl(vn)},indexes:Yl(sn.indexNames).map(function(oi){return sn.index(oi)}).map(function(oi){var or=oi.name,sr=oi.unique,Gi=oi.multiEntry,eo=oi.keyPath,Uo=l(eo),Er={name:or,compound:Uo,keyPath:eo,unique:sr,multiEntry:Gi,extractKey:hl(eo)};return ii[Nc(eo)]=Er,Er}),getIndexByKeyPath:function(oi){return ii[Nc(oi)]}};return ii[":id"]=mi.primaryKey,vn!=null&&(ii[Nc(vn)]=mi.primaryKey),mi})},hasGetAll:Ei.length>0&&"getAll"in jn.objectStore(Ei[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}function Pe(jt){if(jt.type===3)return null;if(jt.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var jn=jt.lower,Ei=jt.upper,sn=jt.lowerOpen,vn=jt.upperOpen,zn=jn===void 0?Ei===void 0?null:te.upperBound(Ei,!!vn):Ei===void 0?te.lowerBound(jn,!!sn):te.bound(jn,Ei,!!sn,!!vn);return zn}function He(jt){var jn=jt.name;function Ei(zn){var Jn=zn.trans,si=zn.type,ii=zn.keys,mi=zn.values,oi=zn.range;return new Promise(function(or,sr){or=xi(or);var Gi=Jn.objectStore(jn),eo=Gi.keyPath==null,Uo=si==="put"||si==="add";if(!Uo&&si!=="delete"&&si!=="deleteRange")throw new Error("Invalid operation type: "+si);var Er=(ii||mi||{length:1}).length;if(ii&&mi&&ii.length!==mi.length)throw new Error("Given keys array must have same length as given values array.");if(Er===0)return or({numFailures:0,failures:{},results:[],lastResult:void 0});var ps,vo=[],k=[],C=0,O=function(vt){++C,Fo(vt)};if(si==="deleteRange"){if(oi.type===4)return or({numFailures:C,failures:k,results:[],lastResult:void 0});oi.type===3?vo.push(ps=Gi.clear()):vo.push(ps=Gi.delete(Pe(oi)))}else{var z=Uo?eo?[mi,ii]:[mi,null]:[ii,null],ue=z[0],Ne=z[1];if(Uo)for(var $e=0;$e<Er;++$e)vo.push(ps=Ne&&Ne[$e]!==void 0?Gi[si](ue[$e],Ne[$e]):Gi[si](ue[$e])),ps.onerror=O;else for(var $e=0;$e<Er;++$e)vo.push(ps=Gi[si](ue[$e])),ps.onerror=O}var ot=function(vt){var xt=vt.target.result;vo.forEach(function(Hn,Oi){return Hn.error!=null&&(k[Oi]=Hn.error)}),or({numFailures:C,failures:k,results:si==="delete"?ii:vo.map(function(Hn){return Hn.result}),lastResult:xt})};ps.onerror=function(vt){O(vt),ot(vt)},ps.onsuccess=ot})}function sn(zn){var Jn=zn.trans,si=zn.values,ii=zn.query,mi=zn.reverse,oi=zn.unique;return new Promise(function(or,sr){or=xi(or);var Gi=ii.index,eo=ii.range,Uo=Jn.objectStore(jn),Er=Gi.isPrimaryKey?Uo:Uo.index(Gi.name),ps=mi?oi?"prevunique":"prev":oi?"nextunique":"next",vo=si||!("openKeyCursor"in Er)?Er.openCursor(Pe(eo),ps):Er.openKeyCursor(Pe(eo),ps);vo.onerror=Mi(sr),vo.onsuccess=xi(function(k){var C=vo.result;if(!C){or(null);return}C.___id=++Du,C.done=!1;var O=C.continue.bind(C),z=C.continuePrimaryKey;z&&(z=z.bind(C));var ue=C.advance.bind(C),Ne=function(){throw new Error("Cursor not started")},$e=function(){throw new Error("Cursor not stopped")};C.trans=Jn,C.stop=C.continue=C.continuePrimaryKey=C.advance=Ne,C.fail=xi(sr),C.next=function(){var ot=this,vt=1;return this.start(function(){return vt--?ot.continue():ot.stop()}).then(function(){return ot})},C.start=function(ot){var vt=new Promise(function(Hn,Oi){Hn=xi(Hn),vo.onerror=Mi(Oi),C.fail=Oi,C.stop=function(fo){C.stop=C.continue=C.continuePrimaryKey=C.advance=$e,Hn(fo)}}),xt=function(){if(vo.result)try{ot()}catch(Hn){C.fail(Hn)}else C.done=!0,C.start=function(){throw new Error("Cursor behind last entry")},C.stop()};return vo.onsuccess=xi(function(Hn){vo.onsuccess=xt,xt()}),C.continue=O,C.continuePrimaryKey=z,C.advance=ue,xt(),vt},or(C)},sr)})}function vn(zn){return function(Jn){return new Promise(function(si,ii){si=xi(si);var mi=Jn.trans,oi=Jn.values,or=Jn.limit,sr=Jn.query,Gi=or===1/0?void 0:or,eo=sr.index,Uo=sr.range,Er=mi.objectStore(jn),ps=eo.isPrimaryKey?Er:Er.index(eo.name),vo=Pe(Uo);if(or===0)return si({result:[]});if(zn){var k=oi?ps.getAll(vo,Gi):ps.getAllKeys(vo,Gi);k.onsuccess=function(ue){return si({result:ue.target.result})},k.onerror=Mi(ii)}else{var C=0,O=oi||!("openKeyCursor"in ps)?ps.openCursor(vo):ps.openKeyCursor(vo),z=[];O.onsuccess=function(ue){var Ne=O.result;if(!Ne)return si({result:z});if(z.push(oi?Ne.value:Ne.primaryKey),++C===or)return si({result:z});Ne.continue()},O.onerror=Mi(ii)}})}}return{name:jn,schema:jt,mutate:Ei,getMany:function(zn){var Jn=zn.trans,si=zn.keys;return new Promise(function(ii,mi){ii=xi(ii);for(var oi=Jn.objectStore(jn),or=si.length,sr=new Array(or),Gi=0,eo=0,Uo,Er=function(C){var O=C.target;(sr[O._pos]=O.result)!=null,++eo===Gi&&ii(sr)},ps=Mi(mi),vo=0;vo<or;++vo){var k=si[vo];k!=null&&(Uo=oi.get(si[vo]),Uo._pos=vo,Uo.onsuccess=Er,Uo.onerror=ps,++Gi)}Gi===0&&ii(sr)})},get:function(zn){var Jn=zn.trans,si=zn.key;return new Promise(function(ii,mi){ii=xi(ii);var oi=Jn.objectStore(jn),or=oi.get(si);or.onsuccess=function(sr){return ii(sr.target.result)},or.onerror=Mi(mi)})},query:vn(yt),openCursor:sn,count:function(zn){var Jn=zn.query,si=zn.trans,ii=Jn.index,mi=Jn.range;return new Promise(function(oi,or){var sr=si.objectStore(jn),Gi=ii.isPrimaryKey?sr:sr.index(ii.name),eo=Pe(mi),Uo=eo?Gi.count(eo):Gi.count();Uo.onsuccess=xi(function(Er){return oi(Er.target.result)}),Uo.onerror=Mi(or)})}}}var rt=Ae(X,ye),ht=rt.schema,yt=rt.hasGetAll,Ft=ht.tables.map(function(jt){return He(jt)}),Zt={};return Ft.forEach(function(jt){return Zt[jt.name]=jt}),{stack:"dbcore",transaction:X.transaction.bind(X),table:function(jt){var jn=Zt[jt];if(!jn)throw new Error("Table '".concat(jt,"' not found"));return Zt[jt]},MIN_KEY:-1/0,MAX_KEY:fs(te),schema:ht}}function Xf(X,te){return te.reduce(function(ye,Ae){var Pe=Ae.create;return r(r({},ye),Pe(ye))},X)}function Lg(X,te,ye,Ae){var Pe=ye.IDBKeyRange;ye.indexedDB;var He=Xf(id(te,Pe,Ae),X.dbcore);return{dbcore:He}}function Ng(X,te){var ye=te.db,Ae=Lg(X._middlewares,ye,X._deps,te);X.core=Ae.dbcore,X.tables.forEach(function(Pe){var He=Pe.name;X.core.schema.tables.some(function(rt){return rt.name===He})&&(Pe.core=X.core.table(He),X[He]instanceof X.Table&&(X[He].core=Pe.core))})}function Ob(X,te,ye,Ae){ye.forEach(function(Pe){var He=Ae[Pe];te.forEach(function(rt){var ht=y(rt,Pe);(!ht||"value"in ht&&ht.value===void 0)&&(rt===X.Transaction.prototype||rt instanceof X.Transaction?g(rt,Pe,{get:function(){return this.table(Pe)},set:function(yt){p(this,Pe,{value:yt,writable:!0,configurable:!0,enumerable:!0})}}):rt[Pe]=new X.Table(Pe,He))})})}function Rb(X,te){te.forEach(function(ye){for(var Ae in ye)ye[Ae]instanceof X.Table&&delete ye[Ae]})}function Fb(X,te){return X._cfg.version-te._cfg.version}function ME(X,te,ye,Ae){var Pe=X._dbSchema;ye.objectStoreNames.contains("$meta")&&!Pe.$meta&&(Pe.$meta=Br("$meta",cS("")[0],[]),X._storeNames.push("$meta"));var He=X._createTransaction("readwrite",X._storeNames,Pe);He.create(ye),He._completion.catch(Ae);var rt=He._reject.bind(He),ht=Le.transless||Le;Us(function(){if(Le.trans=He,Le.transless=ht,te===0)a(Pe).forEach(function(yt){BT(ye,yt,Pe[yt].primKey,Pe[yt].indexes)}),Ng(X,ye),Ve.follow(function(){return X.on.populate.fire(He)}).catch(rt);else return Ng(X,ye),cP(X,He,te).then(function(yt){return GF(X,yt,He,ye)}).catch(rt)})}function Vj(X,te){uP(X._dbSchema,te),te.db.version%10===0&&!te.objectStoreNames.contains("$meta")&&te.db.createObjectStore("$meta").add(Math.ceil(te.db.version/10-1),"version");var ye=zT(X,X.idbdb,te);Ow(X,X._dbSchema,te);for(var Ae=FT(ye,X._dbSchema),Pe=function(Ft){if(Ft.change.length||Ft.recreate)return console.warn("Unable to patch indexes of table ".concat(Ft.name," because it has changes on the type of index or primary key.")),{value:void 0};var Zt=te.objectStore(Ft.name);Ft.add.forEach(function(jt){Gt&&console.debug("Dexie upgrade patch: Creating missing index ".concat(Ft.name,".").concat(jt.src)),jT(Zt,jt)})},He=0,rt=Ae.change;He<rt.length;He++){var ht=rt[He],yt=Pe(ht);if(typeof yt=="object")return yt.value}}function cP(X,te,ye){return te.storeNames.includes("$meta")?te.table("$meta").get("version").then(function(Ae){return Ae??ye}):Ve.resolve(ye)}function GF(X,te,ye,Ae){var Pe=[],He=X._versions,rt=X._dbSchema=zT(X,X.idbdb,Ae),ht=He.filter(function(Ft){return Ft._cfg.version>=te});if(ht.length===0)return Ve.resolve();ht.forEach(function(Ft){Pe.push(function(){var Zt=rt,jt=Ft._cfg.dbschema;Ow(X,Zt,Ae),Ow(X,jt,Ae),rt=X._dbSchema=jt;var jn=FT(Zt,jt);jn.add.forEach(function(si){BT(Ae,si[0],si[1].primKey,si[1].indexes)}),jn.change.forEach(function(si){if(si.recreate)throw new ze.Upgrade("Not yet support for changing primary key");var ii=Ae.objectStore(si.name);si.add.forEach(function(mi){return jT(ii,mi)}),si.change.forEach(function(mi){ii.deleteIndex(mi.name),jT(ii,mi)}),si.del.forEach(function(mi){return ii.deleteIndex(mi)})});var Ei=Ft._cfg.contentUpgrade;if(Ei&&Ft._cfg.version>te){Ng(X,Ae),ye._memoizedTables={};var sn=N(jt);jn.del.forEach(function(si){sn[si]=Zt[si]}),Rb(X,[X.Transaction.prototype]),Ob(X,[X.Transaction.prototype],a(sn),sn),ye.schema=sn;var vn=oe(Ei);vn&&nl();var zn,Jn=Ve.follow(function(){if(zn=Ei(ye),zn&&vn){var si=Ai.bind(null,null);zn.then(si,si)}});return zn&&typeof zn.then=="function"?Ve.resolve(zn):Jn.then(function(){return zn})}}),Pe.push(function(Zt){var jt=Ft._cfg.dbschema;lS(jt,Zt),Rb(X,[X.Transaction.prototype]),Ob(X,[X.Transaction.prototype],X._storeNames,X._dbSchema),ye.schema=X._dbSchema}),Pe.push(function(Zt){X.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(X.idbdb.version/10)===Ft._cfg.version?(X.idbdb.deleteObjectStore("$meta"),delete X._dbSchema.$meta,X._storeNames=X._storeNames.filter(function(jt){return jt!=="$meta"})):Zt.objectStore("$meta").put(Ft._cfg.version,"version"))})});function yt(){return Pe.length?Ve.resolve(Pe.shift()(ye.idbtrans)).then(yt):Ve.resolve()}return yt().then(function(){uP(rt,Ae)})}function FT(X,te){var ye={del:[],add:[],change:[]},Ae;for(Ae in X)te[Ae]||ye.del.push(Ae);for(Ae in te){var Pe=X[Ae],He=te[Ae];if(!Pe)ye.add.push([Ae,He]);else{var rt={name:Ae,def:He,recreate:!1,del:[],add:[],change:[]};if(""+(Pe.primKey.keyPath||"")!=""+(He.primKey.keyPath||"")||Pe.primKey.auto!==He.primKey.auto)rt.recreate=!0,ye.change.push(rt);else{var ht=Pe.idxByName,yt=He.idxByName,Ft=void 0;for(Ft in ht)yt[Ft]||rt.del.push(Ft);for(Ft in yt){var Zt=ht[Ft],jt=yt[Ft];Zt?Zt.src!==jt.src&&rt.change.push(jt):rt.add.push(jt)}(rt.del.length>0||rt.add.length>0||rt.change.length>0)&&ye.change.push(rt)}}}return ye}function BT(X,te,ye,Ae){var Pe=X.db.createObjectStore(te,ye.keyPath?{keyPath:ye.keyPath,autoIncrement:ye.auto}:{autoIncrement:ye.auto});return Ae.forEach(function(He){return jT(Pe,He)}),Pe}function uP(X,te){a(X).forEach(function(ye){te.db.objectStoreNames.contains(ye)||(Gt&&console.debug("Dexie: Creating missing table",ye),BT(te,ye,X[ye].primKey,X[ye].indexes))})}function lS(X,te){[].slice.call(te.db.objectStoreNames).forEach(function(ye){return X[ye]==null&&te.db.deleteObjectStore(ye)})}function jT(X,te){X.createIndex(te.name,te.keyPath,{unique:te.unique,multiEntry:te.multi})}function zT(X,te,ye){var Ae={},Pe=w(te.objectStoreNames,0);return Pe.forEach(function(He){for(var rt=ye.objectStore(He),ht=rt.keyPath,yt=Dr(Xi(ht),ht||"",!0,!1,!!rt.autoIncrement,ht&&typeof ht!="string",!0),Ft=[],Zt=0;Zt<rt.indexNames.length;++Zt){var jt=rt.index(rt.indexNames[Zt]);ht=jt.keyPath;var jn=Dr(jt.name,ht,!!jt.unique,!!jt.multiEntry,!1,ht&&typeof ht!="string",!1);Ft.push(jn)}Ae[He]=Br(He,yt,Ft)}),Ae}function Hj(X,te,ye){X.verno=te.version/10;var Ae=X._dbSchema=zT(X,te,ye);X._storeNames=w(te.objectStoreNames,0),Ob(X,[X._allTables],a(Ae),Ae)}function dP(X,te){var ye=zT(X,X.idbdb,te),Ae=FT(ye,X._dbSchema);return!(Ae.add.length||Ae.change.some(function(Pe){return Pe.add.length||Pe.change.length}))}function Ow(X,te,ye){for(var Ae=ye.db.objectStoreNames,Pe=0;Pe<Ae.length;++Pe){var He=Ae[Pe],rt=ye.objectStore(He);X._hasGetAll="getAll"in rt;for(var ht=0;ht<rt.indexNames.length;++ht){var yt=rt.indexNames[ht],Ft=rt.index(yt).keyPath,Zt=typeof Ft=="string"?Ft:"["+w(Ft).join("+")+"]";if(te[He]){var jt=te[He].idxByName[Zt];jt&&(jt.name=yt,delete te[He].idxByName[Zt],te[He].idxByName[yt]=jt)}}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&s.WorkerGlobalScope&&s instanceof s.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(X._hasGetAll=!1)}function cS(X){return X.split(",").map(function(te,ye){var Ae,Pe=te.split(":"),He=(Ae=Pe[1])===null||Ae===void 0?void 0:Ae.trim();te=Pe[0].trim();var rt=te.replace(/([&*]|\+\+)/g,""),ht=/^\[/.test(rt)?rt.match(/^\[(.*)\]$/)[1].split("+"):rt;return Dr(rt,ht||null,/\&/.test(te),/\*/.test(te),/\+\+/.test(te),l(ht),ye===0,He)})}var OE=(function(){function X(){}return X.prototype._createTableSchema=function(te,ye,Ae){return Br(te,ye,Ae)},X.prototype._parseIndexSyntax=function(te){return cS(te)},X.prototype._parseStoresSpec=function(te,ye){var Ae=this;a(te).forEach(function(Pe){if(te[Pe]!==null){var He=Ae._parseIndexSyntax(te[Pe]),rt=He.shift();if(!rt)throw new ze.Schema("Invalid schema for table "+Pe+": "+te[Pe]);if(rt.unique=!0,rt.multi)throw new ze.Schema("Primary key cannot be multiEntry*");He.forEach(function(yt){if(yt.auto)throw new ze.Schema("Only primary key can be marked as autoIncrement (++)");if(!yt.keyPath)throw new ze.Schema("Index must have a name and cannot be an empty string")});var ht=Ae._createTableSchema(Pe,rt,He);ye[Pe]=ht}})},X.prototype.stores=function(te){var ye=this.db;this._cfg.storesSource=this._cfg.storesSource?c(this._cfg.storesSource,te):te;var Ae=ye._versions,Pe={},He={};return Ae.forEach(function(rt){c(Pe,rt._cfg.storesSource),He=rt._cfg.dbschema={},rt._parseStoresSpec(Pe,He)}),ye._dbSchema=He,Rb(ye,[ye._allTables,ye,ye.Transaction.prototype]),Ob(ye,[ye._allTables,ye,ye.Transaction.prototype,this._cfg.tables],a(He),He),ye._storeNames=a(He),this},X.prototype.upgrade=function(te){return this._cfg.contentUpgrade=Ut(this._cfg.contentUpgrade||ct,te),this},X})();function Wj(X){return Lc(OE.prototype,function(ye){this.db=X,this._cfg={version:ye,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}function uS(X,te){var ye=X._dbNamesDB;return ye||(ye=X._dbNamesDB=new Zd(ju,{addons:[],indexedDB:X,IDBKeyRange:te}),ye.version(1).stores({dbnames:"name"})),ye.table("dbnames")}function VT(X){return X&&typeof X.databases=="function"}function KF(X){var te=X.indexedDB,ye=X.IDBKeyRange;return VT(te)?Promise.resolve(te.databases()).then(function(Ae){return Ae.map(function(Pe){return Pe.name}).filter(function(Pe){return Pe!==ju})}):uS(te,ye).toCollection().primaryKeys()}function xm(X,te){var ye=X.indexedDB,Ae=X.IDBKeyRange;!VT(ye)&&te!==ju&&uS(ye,Ae).put({name:te}).catch(ct)}function Pg(X,te){var ye=X.indexedDB,Ae=X.IDBKeyRange;!VT(ye)&&te!==ju&&uS(ye,Ae).delete(te).catch(ct)}function HT(X){return Us(function(){return Le.letThrough=!0,X()})}function WT(){var X=!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent);if(!X||!indexedDB.databases)return Promise.resolve();var te;return new Promise(function(ye){var Ae=function(){return indexedDB.databases().finally(ye)};te=setInterval(Ae,100),Ae()}).finally(function(){return clearInterval(te)})}var UT;function RE(X){return!("from"in X)}var Oh=function(X,te){if(this)c(this,arguments.length?{d:1,from:X,to:arguments.length>1?te:X}:{d:0});else{var ye=new Oh;return X&&"d"in X&&c(ye,X),ye}};f(Oh.prototype,(UT={add:function(X){return Rw(this,X),this},addKey:function(X){return FE(this,X,X),this},addKeys:function(X){var te=this;return X.forEach(function(ye){return FE(te,ye,ye)}),this},hasKey:function(X){var te=Rh(this).next(X).value;return te&&io(te.from,X)<=0&&io(te.to,X)>=0}},UT[U]=function(){return Rh(this)},UT));function FE(X,te,ye){var Ae=io(te,ye);if(!isNaN(Ae)){if(Ae>0)throw RangeError();if(RE(X))return c(X,{from:te,to:ye,d:1});var Pe=X.l,He=X.r;if(io(ye,X.from)<0)return Pe?FE(Pe,te,ye):X.l={from:te,to:ye,d:1,l:null,r:null},dS(X);if(io(te,X.to)>0)return He?FE(He,te,ye):X.r={from:te,to:ye,d:1,l:null,r:null},dS(X);io(te,X.from)<0&&(X.from=te,X.l=null,X.d=He?He.d+1:1),io(ye,X.to)>0&&(X.to=ye,X.r=null,X.d=X.l?X.l.d+1:1);var rt=!X.r;Pe&&!X.l&&Rw(X,Pe),He&&rt&&Rw(X,He)}}function Rw(X,te){function ye(Ae,Pe){var He=Pe.from,rt=Pe.to,ht=Pe.l,yt=Pe.r;FE(Ae,He,rt),ht&&ye(Ae,ht),yt&&ye(Ae,yt)}RE(te)||ye(X,te)}function YF(X,te){var ye=Rh(te),Ae=ye.next();if(Ae.done)return!1;for(var Pe=Ae.value,He=Rh(X),rt=He.next(Pe.from),ht=rt.value;!Ae.done&&!rt.done;){if(io(ht.from,Pe.to)<=0&&io(ht.to,Pe.from)>=0)return!0;io(Pe.from,ht.from)<0?Pe=(Ae=ye.next(ht.from)).value:ht=(rt=He.next(Pe.from)).value}return!1}function Rh(X){var te=RE(X)?null:{s:0,n:X};return{next:function(ye){for(var Ae=arguments.length>0;te;)switch(te.s){case 0:if(te.s=1,Ae)for(;te.n.l&&io(ye,te.n.from)<0;)te={up:te,n:te.n.l,s:1};else for(;te.n.l;)te={up:te,n:te.n.l,s:1};case 1:if(te.s=2,!Ae||io(ye,te.n.to)<=0)return{value:te.n,done:!1};case 2:if(te.n.r){te.s=3,te={up:te,n:te.n.r,s:0};continue}case 3:te=te.up}return{done:!0}}}}function dS(X){var te,ye,Ae=(((te=X.r)===null||te===void 0?void 0:te.d)||0)-(((ye=X.l)===null||ye===void 0?void 0:ye.d)||0),Pe=Ae>1?"r":Ae<-1?"l":"";if(Pe){var He=Pe==="r"?"l":"r",rt=r({},X),ht=X[Pe];X.from=ht.from,X.to=ht.to,X[Pe]=ht[Pe],rt[Pe]=ht[He],X[He]=rt,rt.d=BE(rt)}X.d=BE(X)}function BE(X){var te=X.r,ye=X.l;return(te?ye?Math.max(te.d,ye.d):te.d:ye?ye.d:0)+1}function jE(X,te){return a(te).forEach(function(ye){X[ye]?Rw(X[ye],te[ye]):X[ye]=Q(te[ye])}),X}function zE(X,te){return X.all||te.all||Object.keys(X).some(function(ye){return te[ye]&&YF(te[ye],X[ye])})}var Bb={},VE={},hP=!1;function ry(X,te){jE(VE,X),hP||(hP=!0,setTimeout(function(){hP=!1;var ye=VE;VE={},oy(ye,!1)},0))}function oy(X,te){te===void 0&&(te=!1);var ye=new Set;if(X.all)for(var Ae=0,Pe=Object.values(Bb);Ae<Pe.length;Ae++){var He=Pe[Ae];$v(He,X,ye,te)}else for(var rt in X){var ht=/^idb\:\/\/(.*)\/(.*)\//.exec(rt);if(ht){var yt=ht[1],Ft=ht[2],He=Bb["idb://".concat(yt,"/").concat(Ft)];He&&$v(He,X,ye,te)}}ye.forEach(function(Zt){return Zt()})}function $v(X,te,ye,Ae){for(var Pe=[],He=0,rt=Object.entries(X.queries.query);He<rt.length;He++){for(var ht=rt[He],yt=ht[0],Ft=ht[1],Zt=[],jt=0,jn=Ft;jt<jn.length;jt++){var Ei=jn[jt];zE(te,Ei.obsSet)?Ei.subscribers.forEach(function(Jn){return ye.add(Jn)}):Ae&&Zt.push(Ei)}Ae&&Pe.push([yt,Zt])}if(Ae)for(var sn=0,vn=Pe;sn<vn.length;sn++){var zn=vn[sn],yt=zn[0],Zt=zn[1];X.queries.query[yt]=Zt}}function fP(X){var te=X._state,ye=X._deps.indexedDB;if(te.isBeingOpened||X.idbdb)return te.dbReadyPromise.then(function(){return te.dbOpenError?pa(te.dbOpenError):X});te.isBeingOpened=!0,te.dbOpenError=null,te.openComplete=!1;var Ae=te.openCanceller,Pe=Math.round(X.verno*10),He=!1;function rt(){if(te.openCanceller!==Ae)throw new ze.DatabaseClosed("db.open() was cancelled")}var ht=te.dbReadyResolve,yt=null,Ft=!1,Zt=function(){return new Ve(function(jt,jn){if(rt(),!ye)throw new ze.MissingAPI;var Ei=X.name,sn=te.autoSchema||!Pe?ye.open(Ei):ye.open(Ei,Pe);if(!sn)throw new ze.MissingAPI;sn.onerror=Mi(jn),sn.onblocked=xi(X._fireOnBlocked),sn.onupgradeneeded=xi(function(vn){if(yt=sn.transaction,te.autoSchema&&!X._options.allowEmptyDB){sn.onerror=Fo,yt.abort(),sn.result.close();var zn=ye.deleteDatabase(Ei);zn.onsuccess=zn.onerror=xi(function(){jn(new ze.NoSuchDatabase("Database ".concat(Ei," doesnt exist")))})}else{yt.onerror=Mi(jn);var Jn=vn.oldVersion>Math.pow(2,62)?0:vn.oldVersion;Ft=Jn<1,X.idbdb=sn.result,He&&Vj(X,yt),ME(X,Jn/10,yt,jn)}},jn),sn.onsuccess=xi(function(){yt=null;var vn=X.idbdb=sn.result,zn=w(vn.objectStoreNames);if(zn.length>0)try{var Jn=vn.transaction(_a(zn),"readonly");if(te.autoSchema)Hj(X,vn,Jn);else if(Ow(X,X._dbSchema,Jn),!dP(X,Jn)&&!He)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),vn.close(),Pe=vn.version+1,He=!0,jt(Zt());Ng(X,Jn)}catch{}Bu.push(X),vn.onversionchange=xi(function(si){te.vcFired=!0,X.on("versionchange").fire(si)}),vn.onclose=xi(function(){X.close({disableAutoOpen:!1})}),Ft&&xm(X._deps,Ei),jt()},jn)}).catch(function(jt){switch(jt?.name){case"UnknownError":if(te.PR1398_maxLoop>0)return te.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),Zt();break;case"VersionError":if(Pe>0)return Pe=0,Zt();break}return Ve.reject(jt)})};return Ve.race([Ae,(typeof navigator>"u"?Ve.resolve():WT()).then(Zt)]).then(function(){return rt(),te.onReadyBeingFired=[],Ve.resolve(HT(function(){return X.on.ready.fire(X.vip)})).then(function jt(){if(te.onReadyBeingFired.length>0){var jn=te.onReadyBeingFired.reduce(Ut,ct);return te.onReadyBeingFired=[],Ve.resolve(HT(function(){return jn(X.vip)})).then(jt)}})}).finally(function(){te.openCanceller===Ae&&(te.onReadyBeingFired=null,te.isBeingOpened=!1)}).catch(function(jt){te.dbOpenError=jt;try{yt&&yt.abort()}catch{}return Ae===te.openCanceller&&X._close(),pa(jt)}).finally(function(){te.openComplete=!0,ht()}).then(function(){if(Ft){var jt={};X.tables.forEach(function(jn){jn.schema.indexes.forEach(function(Ei){Ei.name&&(jt["idb://".concat(X.name,"/").concat(jn.name,"/").concat(Ei.name)]=new Oh(-1/0,[[[]]]))}),jt["idb://".concat(X.name,"/").concat(jn.name,"/")]=jt["idb://".concat(X.name,"/").concat(jn.name,"/:dels")]=new Oh(-1/0,[[[]]])}),At(Vr).fire(jt),oy(jt,!0)}return X})}function $T(X){var te=function(rt){return X.next(rt)},ye=function(rt){return X.throw(rt)},Ae=He(te),Pe=He(ye);function He(rt){return function(ht){var yt=rt(ht),Ft=yt.value;return yt.done?Ft:!Ft||typeof Ft.then!="function"?l(Ft)?Promise.all(Ft).then(Ae,Pe):Ae(Ft):Ft.then(Ae,Pe)}}return He(te)()}function Fw(X,te,ye){var Ae=arguments.length;if(Ae<2)throw new ze.InvalidArgument("Too few arguments");for(var Pe=new Array(Ae-1);--Ae;)Pe[Ae-1]=arguments[Ae];ye=Pe.pop();var He=W(Pe);return[X,He,ye]}function Bw(X,te,ye,Ae,Pe){return Ve.resolve().then(function(){var He=Le.transless||Le,rt=X._createTransaction(te,ye,X._dbSchema,Ae);rt.explicit=!0;var ht={trans:rt,transless:He};if(Ae)rt.idbtrans=Ae.idbtrans;else try{rt.create(),rt.idbtrans._explicit=!0,X._state.PR1398_maxLoop=3}catch(jt){return jt.name===Ie.InvalidState&&X.isOpen()&&--X._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),X.close({disableAutoOpen:!1}),X.open().then(function(){return Bw(X,te,ye,null,Pe)})):pa(jt)}var yt=oe(Pe);yt&&nl();var Ft,Zt=Ve.follow(function(){if(Ft=Pe.call(rt,rt),Ft)if(yt){var jt=Ai.bind(null,null);Ft.then(jt,jt)}else typeof Ft.next=="function"&&typeof Ft.throw=="function"&&(Ft=$T(Ft))},ht);return(Ft&&typeof Ft.then=="function"?Ve.resolve(Ft).then(function(jt){return rt.active?jt:pa(new ze.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):Zt.then(function(){return Ft})).then(function(jt){return Ae&&rt._resolve(),rt._completion.then(function(){return jt})}).catch(function(jt){return rt._reject(jt),pa(jt)})})}function It(X,te,ye){for(var Ae=l(X)?X.slice():[X],Pe=0;Pe<ye;++Pe)Ae.push(te);return Ae}function QF(X){return r(r({},X),{table:function(te){var ye=X.table(te),Ae=ye.schema,Pe={},He=[];function rt(vn,zn,Jn){var si=Nc(vn),ii=Pe[si]=Pe[si]||[],mi=vn==null?0:typeof vn=="string"?1:vn.length,oi=zn>0,or=r(r({},Jn),{name:oi?"".concat(si,"(virtual-from:").concat(Jn.name,")"):Jn.name,lowLevelIndex:Jn,isVirtual:oi,keyTail:zn,keyLength:mi,extractKey:hl(vn),unique:!oi&&Jn.unique});if(ii.push(or),or.isPrimaryKey||He.push(or),mi>1){var sr=mi===2?vn[0]:vn.slice(0,mi-1);rt(sr,zn+1,Jn)}return ii.sort(function(Gi,eo){return Gi.keyTail-eo.keyTail}),or}var ht=rt(Ae.primaryKey.keyPath,0,Ae.primaryKey);Pe[":id"]=[ht];for(var yt=0,Ft=Ae.indexes;yt<Ft.length;yt++){var Zt=Ft[yt];rt(Zt.keyPath,0,Zt)}function jt(vn){var zn=Pe[Nc(vn)];return zn&&zn[0]}function jn(vn,zn){return{type:vn.type===1?2:vn.type,lower:It(vn.lower,vn.lowerOpen?X.MAX_KEY:X.MIN_KEY,zn),lowerOpen:!0,upper:It(vn.upper,vn.upperOpen?X.MIN_KEY:X.MAX_KEY,zn),upperOpen:!0}}function Ei(vn){var zn=vn.query.index;return zn.isVirtual?r(r({},vn),{query:{index:zn.lowLevelIndex,range:jn(vn.query.range,zn.keyTail)}}):vn}var sn=r(r({},ye),{schema:r(r({},Ae),{primaryKey:ht,indexes:He,getIndexByKeyPath:jt}),count:function(vn){return ye.count(Ei(vn))},query:function(vn){return ye.query(Ei(vn))},openCursor:function(vn){var zn=vn.query.index,Jn=zn.keyTail,si=zn.isVirtual,ii=zn.keyLength;if(!si)return ye.openCursor(vn);function mi(oi){function or(Gi){Gi!=null?oi.continue(It(Gi,vn.reverse?X.MAX_KEY:X.MIN_KEY,Jn)):vn.unique?oi.continue(oi.key.slice(0,ii).concat(vn.reverse?X.MIN_KEY:X.MAX_KEY,Jn)):oi.continue()}var sr=Object.create(oi,{continue:{value:or},continuePrimaryKey:{value:function(Gi,eo){oi.continuePrimaryKey(It(Gi,X.MAX_KEY,Jn),eo)}},primaryKey:{get:function(){return oi.primaryKey}},key:{get:function(){var Gi=oi.key;return ii===1?Gi[0]:Gi.slice(0,ii)}},value:{get:function(){return oi.value}}});return sr}return ye.openCursor(Ei(vn)).then(function(oi){return oi&&mi(oi)})}});return sn}})}var jw={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:QF};function qT(X,te,ye,Ae){return ye=ye||{},Ae=Ae||"",a(X).forEach(function(Pe){if(!h(te,Pe))ye[Ae+Pe]=void 0;else{var He=X[Pe],rt=te[Pe];if(typeof He=="object"&&typeof rt=="object"&&He&&rt){var ht=pe(He),yt=pe(rt);ht!==yt?ye[Ae+Pe]=te[Pe]:ht==="Object"?qT(He,rt,ye,Ae+Pe+"."):He!==rt&&(ye[Ae+Pe]=te[Pe])}else He!==rt&&(ye[Ae+Pe]=te[Pe])}}),a(te).forEach(function(Pe){h(X,Pe)||(ye[Ae+Pe]=te[Pe])}),ye}function zw(X,te){return te.type==="delete"?te.keys:te.keys||te.values.map(X.extractKey)}var ZF={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(X){return r(r({},X),{table:function(te){var ye=X.table(te),Ae=ye.schema.primaryKey,Pe=r(r({},ye),{mutate:function(He){var rt=Le.trans,ht=rt.table(te).hook,yt=ht.deleting,Ft=ht.creating,Zt=ht.updating;switch(He.type){case"add":if(Ft.fire===ct)break;return rt._promise("readwrite",function(){return jt(He)},!0);case"put":if(Ft.fire===ct&&Zt.fire===ct)break;return rt._promise("readwrite",function(){return jt(He)},!0);case"delete":if(yt.fire===ct)break;return rt._promise("readwrite",function(){return jt(He)},!0);case"deleteRange":if(yt.fire===ct)break;return rt._promise("readwrite",function(){return jn(He)},!0)}return ye.mutate(He);function jt(sn){var vn=Le.trans,zn=sn.keys||zw(Ae,sn);if(!zn)throw new Error("Keys missing");return sn=sn.type==="add"||sn.type==="put"?r(r({},sn),{keys:zn}):r({},sn),sn.type!=="delete"&&(sn.values=o([],sn.values)),sn.keys&&(sn.keys=o([],sn.keys)),Uj(ye,sn,zn).then(function(Jn){var si=zn.map(function(ii,mi){var oi=Jn[mi],or={onerror:null,onsuccess:null};if(sn.type==="delete")yt.fire.call(or,ii,oi,vn);else if(sn.type==="add"||oi===void 0){var sr=Ft.fire.call(or,ii,sn.values[mi],vn);ii==null&&sr!=null&&(ii=sr,sn.keys[mi]=ii,Ae.outbound||P(sn.values[mi],Ae.keyPath,ii))}else{var Gi=qT(oi,sn.values[mi]),eo=Zt.fire.call(or,Gi,ii,oi,vn);if(eo){var Uo=sn.values[mi];Object.keys(eo).forEach(function(Er){h(Uo,Er)?Uo[Er]=eo[Er]:P(Uo,Er,eo[Er])})}}return or});return ye.mutate(sn).then(function(ii){for(var mi=ii.failures,oi=ii.results,or=ii.numFailures,sr=ii.lastResult,Gi=0;Gi<zn.length;++Gi){var eo=oi?oi[Gi]:zn[Gi],Uo=si[Gi];eo==null?Uo.onerror&&Uo.onerror(mi[Gi]):Uo.onsuccess&&Uo.onsuccess(sn.type==="put"&&Jn[Gi]?sn.values[Gi]:eo)}return{failures:mi,results:oi,numFailures:or,lastResult:sr}}).catch(function(ii){return si.forEach(function(mi){return mi.onerror&&mi.onerror(ii)}),Promise.reject(ii)})})}function jn(sn){return Ei(sn.trans,sn.range,1e4)}function Ei(sn,vn,zn){return ye.query({trans:sn,values:!1,query:{index:Ae,range:vn},limit:zn}).then(function(Jn){var si=Jn.result;return jt({type:"delete",keys:si,trans:sn}).then(function(ii){return ii.numFailures>0?Promise.reject(ii.failures[0]):si.length<zn?{failures:[],numFailures:0,lastResult:void 0}:Ei(sn,r(r({},vn),{lower:si[si.length-1],lowerOpen:!0}),zn)})})}}});return Pe}})}};function Uj(X,te,ye){return te.type==="add"?Promise.resolve([]):X.getMany({trans:te.trans,keys:ye,cache:"immutable"})}function pP(X,te,ye){try{if(!te||te.keys.length<X.length)return null;for(var Ae=[],Pe=0,He=0;Pe<te.keys.length&&He<X.length;++Pe)io(te.keys[Pe],X[He])===0&&(Ae.push(ye?le(te.values[Pe]):te.values[Pe]),++He);return Ae.length===X.length?Ae:null}catch{return null}}var gP={stack:"dbcore",level:-1,create:function(X){return{table:function(te){var ye=X.table(te);return r(r({},ye),{getMany:function(Ae){if(!Ae.cache)return ye.getMany(Ae);var Pe=pP(Ae.keys,Ae.trans._cache,Ae.cache==="clone");return Pe?Ve.resolve(Pe):ye.getMany(Ae).then(function(He){return Ae.trans._cache={keys:Ae.keys,values:Ae.cache==="clone"?le(He):He},He})},mutate:function(Ae){return Ae.type!=="add"&&(Ae.trans._cache=null),ye.mutate(Ae)}})}}}};function mP(X,te){return X.trans.mode==="readonly"&&!!X.subscr&&!X.trans.explicit&&X.trans.db._options.cache!=="disabled"&&!te.schema.primaryKey.outbound}function vP(X,te){switch(X){case"query":return te.values&&!te.unique;case"get":return!1;case"getMany":return!1;case"count":return!1;case"openCursor":return!1}}var GT={stack:"dbcore",level:0,name:"Observability",create:function(X){var te=X.schema.name,ye=new Oh(X.MIN_KEY,X.MAX_KEY);return r(r({},X),{transaction:function(Ae,Pe,He){if(Le.subscr&&Pe!=="readonly")throw new ze.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(Le.querier));return X.transaction(Ae,Pe,He)},table:function(Ae){var Pe=X.table(Ae),He=Pe.schema,rt=He.primaryKey,ht=He.indexes,yt=rt.extractKey,Ft=rt.outbound,Zt=rt.autoIncrement&&ht.filter(function(sn){return sn.compound&&sn.keyPath.includes(rt.keyPath)}),jt=r(r({},Pe),{mutate:function(sn){var vn,zn,Jn=sn.trans,si=sn.mutatedParts||(sn.mutatedParts={}),ii=function(vo){var k="idb://".concat(te,"/").concat(Ae,"/").concat(vo);return si[k]||(si[k]=new Oh)},mi=ii(""),oi=ii(":dels"),or=sn.type,sr=sn.type==="deleteRange"?[sn.range]:sn.type==="delete"?[sn.keys]:sn.values.length<50?[zw(rt,sn).filter(function(vo){return vo}),sn.values]:[],Gi=sr[0],eo=sr[1],Uo=sn.trans._cache;if(l(Gi)){mi.addKeys(Gi);var Er=or==="delete"||Gi.length===eo.length?pP(Gi,Uo):null;Er||oi.addKeys(Gi),(Er||eo)&&Mg(ii,He,Er,eo)}else if(Gi){var ps={from:(vn=Gi.lower)!==null&&vn!==void 0?vn:X.MIN_KEY,to:(zn=Gi.upper)!==null&&zn!==void 0?zn:X.MAX_KEY};oi.add(ps),mi.add(ps)}else mi.add(ye),oi.add(ye),He.indexes.forEach(function(vo){return ii(vo.name).add(ye)});return Pe.mutate(sn).then(function(vo){return Gi&&(sn.type==="add"||sn.type==="put")&&(mi.addKeys(vo.results),Zt&&Zt.forEach(function(k){for(var C=sn.values.map(function(Ne){return k.extractKey(Ne)}),O=k.keyPath.findIndex(function(Ne){return Ne===rt.keyPath}),z=0,ue=vo.results.length;z<ue;++z)C[z][O]=vo.results[z];ii(k.name).addKeys(C)})),Jn.mutatedParts=jE(Jn.mutatedParts||{},si),vo})}}),jn=function(sn){var vn,zn,Jn=sn.query,si=Jn.index,ii=Jn.range;return[si,new Oh((vn=ii.lower)!==null&&vn!==void 0?vn:X.MIN_KEY,(zn=ii.upper)!==null&&zn!==void 0?zn:X.MAX_KEY)]},Ei={get:function(sn){return[rt,new Oh(sn.key)]},getMany:function(sn){return[rt,new Oh().addKeys(sn.keys)]},count:jn,query:jn,openCursor:jn};return a(Ei).forEach(function(sn){jt[sn]=function(vn){var zn=Le.subscr,Jn=!!zn,si=mP(Le,Pe)&&vP(sn,vn),ii=si?vn.obsSet={}:zn;if(Jn){var mi=function(Er){var ps="idb://".concat(te,"/").concat(Ae,"/").concat(Er);return ii[ps]||(ii[ps]=new Oh)},oi=mi(""),or=mi(":dels"),sr=Ei[sn](vn),Gi=sr[0],eo=sr[1];if(sn==="query"&&Gi.isPrimaryKey&&!vn.values?or.add(eo):mi(Gi.name||"").add(eo),!Gi.isPrimaryKey)if(sn==="count")or.add(ye);else{var Uo=sn==="query"&&Ft&&vn.values&&Pe.query(r(r({},vn),{values:!1}));return Pe[sn].apply(this,arguments).then(function(Er){if(sn==="query"){if(Ft&&vn.values)return Uo.then(function(C){var O=C.result;return oi.addKeys(O),Er});var ps=vn.values?Er.result.map(yt):Er.result;vn.values?oi.addKeys(ps):or.addKeys(ps)}else if(sn==="openCursor"){var vo=Er,k=vn.values;return vo&&Object.create(vo,{key:{get:function(){return or.addKey(vo.primaryKey),vo.key}},primaryKey:{get:function(){var C=vo.primaryKey;return or.addKey(C),C}},value:{get:function(){return k&&oi.addKey(vo.primaryKey),vo.value}}})}return Er})}}return Pe[sn].apply(this,arguments)}}),jt}})}};function Mg(X,te,ye,Ae){function Pe(He){var rt=X(He.name||"");function ht(Ft){return Ft!=null?He.extractKey(Ft):null}var yt=function(Ft){return He.multiEntry&&l(Ft)?Ft.forEach(function(Zt){return rt.addKey(Zt)}):rt.addKey(Ft)};(ye||Ae).forEach(function(Ft,Zt){var jt=ye&&ht(ye[Zt]),jn=Ae&&ht(Ae[Zt]);io(jt,jn)!==0&&(jt!=null&&yt(jt),jn!=null&&yt(jn))})}te.indexes.forEach(Pe)}function HE(X,te,ye){if(ye.numFailures===0)return te;if(te.type==="deleteRange")return null;var Ae=te.keys?te.keys.length:"values"in te&&te.values?te.values.length:1;if(ye.numFailures===Ae)return null;var Pe=r({},te);return l(Pe.keys)&&(Pe.keys=Pe.keys.filter(function(He,rt){return!(rt in ye.failures)})),"values"in Pe&&l(Pe.values)&&(Pe.values=Pe.values.filter(function(He,rt){return!(rt in ye.failures)})),Pe}function Fp(X,te){return te.lower===void 0?!0:te.lowerOpen?io(X,te.lower)>0:io(X,te.lower)>=0}function hS(X,te){return te.upper===void 0?!0:te.upperOpen?io(X,te.upper)<0:io(X,te.upper)<=0}function WE(X,te){return Fp(X,te)&&hS(X,te)}function jb(X,te,ye,Ae,Pe,He){if(!ye||ye.length===0)return X;var rt=te.query.index,ht=rt.multiEntry,yt=te.query.range,Ft=Ae.schema.primaryKey,Zt=Ft.extractKey,jt=rt.extractKey,jn=(rt.lowLevelIndex||rt).extractKey,Ei=ye.reduce(function(sn,vn){var zn=sn,Jn=[];if(vn.type==="add"||vn.type==="put")for(var si=new Oh,ii=vn.values.length-1;ii>=0;--ii){var mi=vn.values[ii],oi=Zt(mi);if(!si.hasKey(oi)){var or=jt(mi);(ht&&l(or)?or.some(function(Er){return WE(Er,yt)}):WE(or,yt))&&(si.addKey(oi),Jn.push(mi))}}switch(vn.type){case"add":{var sr=new Oh().addKeys(te.values?sn.map(function(Er){return Zt(Er)}):sn);zn=sn.concat(te.values?Jn.filter(function(Er){var ps=Zt(Er);return sr.hasKey(ps)?!1:(sr.addKey(ps),!0)}):Jn.map(function(Er){return Zt(Er)}).filter(function(Er){return sr.hasKey(Er)?!1:(sr.addKey(Er),!0)}));break}case"put":{var Gi=new Oh().addKeys(vn.values.map(function(Er){return Zt(Er)}));zn=sn.filter(function(Er){return!Gi.hasKey(te.values?Zt(Er):Er)}).concat(te.values?Jn:Jn.map(function(Er){return Zt(Er)}));break}case"delete":var eo=new Oh().addKeys(vn.keys);zn=sn.filter(function(Er){return!eo.hasKey(te.values?Zt(Er):Er)});break;case"deleteRange":var Uo=vn.range;zn=sn.filter(function(Er){return!WE(Zt(Er),Uo)});break}return zn},X);return Ei===X?X:(Ei.sort(function(sn,vn){return io(jn(sn),jn(vn))||io(Zt(sn),Zt(vn))}),te.limit&&te.limit<1/0&&(Ei.length>te.limit?Ei.length=te.limit:X.length===te.limit&&Ei.length<te.limit&&(Pe.dirty=!0)),He?Object.freeze(Ei):Ei)}function UE(X,te){return io(X.lower,te.lower)===0&&io(X.upper,te.upper)===0&&!!X.lowerOpen==!!te.lowerOpen&&!!X.upperOpen==!!te.upperOpen}function yP(X,te,ye,Ae){if(X===void 0)return te!==void 0?-1:0;if(te===void 0)return 1;var Pe=io(X,te);if(Pe===0){if(ye&&Ae)return 0;if(ye)return 1;if(Ae)return-1}return Pe}function Vw(X,te,ye,Ae){if(X===void 0)return te!==void 0?1:0;if(te===void 0)return-1;var Pe=io(X,te);if(Pe===0){if(ye&&Ae)return 0;if(ye)return-1;if(Ae)return 1}return Pe}function XF(X,te){return yP(X.lower,te.lower,X.lowerOpen,te.lowerOpen)<=0&&Vw(X.upper,te.upper,X.upperOpen,te.upperOpen)>=0}function $E(X,te,ye,Ae){var Pe=Bb["idb://".concat(X,"/").concat(te)];if(!Pe)return[];var He=Pe.queries[ye];if(!He)return[null,!1,Pe,null];var rt=Ae.query?Ae.query.index.name:null,ht=He[rt||""];if(!ht)return[null,!1,Pe,null];switch(ye){case"query":var yt=ht.find(function(jt){return jt.req.limit===Ae.limit&&jt.req.values===Ae.values&&UE(jt.req.query.range,Ae.query.range)});if(yt)return[yt,!0,Pe,ht];var Ft=ht.find(function(jt){var jn="limit"in jt.req?jt.req.limit:1/0;return jn>=Ae.limit&&(Ae.values?jt.req.values:!0)&&XF(jt.req.query.range,Ae.query.range)});return[Ft,!1,Pe,ht];case"count":var Zt=ht.find(function(jt){return UE(jt.req.query.range,Ae.query.range)});return[Zt,!!Zt,Pe,ht]}}function fS(X,te,ye,Ae){X.subscribers.add(ye),Ae.addEventListener("abort",function(){X.subscribers.delete(ye),X.subscribers.size===0&&JF(X,te)})}function JF(X,te){setTimeout(function(){X.subscribers.size===0&&ie(te,X)},3e3)}var Bp={stack:"dbcore",level:0,name:"Cache",create:function(X){var te=X.schema.name,ye=r(r({},X),{transaction:function(Ae,Pe,He){var rt=X.transaction(Ae,Pe,He);if(Pe==="readwrite"){var ht=new AbortController,yt=ht.signal,Ft=function(Zt){return function(){if(ht.abort(),Pe==="readwrite"){for(var jt=new Set,jn=0,Ei=Ae;jn<Ei.length;jn++){var sn=Ei[jn],vn=Bb["idb://".concat(te,"/").concat(sn)];if(vn){var zn=X.table(sn),Jn=vn.optimisticOps.filter(function(k){return k.trans===rt});if(rt._explicit&&Zt&&rt.mutatedParts)for(var si=0,ii=Object.values(vn.queries.query);si<ii.length;si++)for(var mi=ii[si],oi=0,or=mi.slice();oi<or.length;oi++){var sr=or[oi];zE(sr.obsSet,rt.mutatedParts)&&(ie(mi,sr),sr.subscribers.forEach(function(k){return jt.add(k)}))}else if(Jn.length>0){vn.optimisticOps=vn.optimisticOps.filter(function(k){return k.trans!==rt});for(var Gi=0,eo=Object.values(vn.queries.query);Gi<eo.length;Gi++)for(var mi=eo[Gi],Uo=0,Er=mi.slice();Uo<Er.length;Uo++){var sr=Er[Uo];if(sr.res!=null&&rt.mutatedParts)if(Zt&&!sr.dirty){var ps=Object.isFrozen(sr.res),vo=jb(sr.res,sr.req,Jn,zn,sr,ps);sr.dirty?(ie(mi,sr),sr.subscribers.forEach(function(O){return jt.add(O)})):vo!==sr.res&&(sr.res=vo,sr.promise=Ve.resolve({result:vo}))}else sr.dirty&&ie(mi,sr),sr.subscribers.forEach(function(O){return jt.add(O)})}}}}jt.forEach(function(k){return k()})}}};rt.addEventListener("abort",Ft(!1),{signal:yt}),rt.addEventListener("error",Ft(!1),{signal:yt}),rt.addEventListener("complete",Ft(!0),{signal:yt})}return rt},table:function(Ae){var Pe=X.table(Ae),He=Pe.schema.primaryKey,rt=r(r({},Pe),{mutate:function(ht){var yt=Le.trans;if(He.outbound||yt.db._options.cache==="disabled"||yt.explicit||yt.idbtrans.mode!=="readwrite")return Pe.mutate(ht);var Ft=Bb["idb://".concat(te,"/").concat(Ae)];if(!Ft)return Pe.mutate(ht);var Zt=Pe.mutate(ht);return(ht.type==="add"||ht.type==="put")&&(ht.values.length>=50||zw(He,ht).some(function(jt){return jt==null}))?Zt.then(function(jt){var jn=r(r({},ht),{values:ht.values.map(function(sn,vn){var zn;if(jt.failures[vn])return sn;var Jn=!((zn=He.keyPath)===null||zn===void 0)&&zn.includes(".")?le(sn):r({},sn);return P(Jn,He.keyPath,jt.results[vn]),Jn})}),Ei=HE(Ft,jn,jt);Ft.optimisticOps.push(Ei),queueMicrotask(function(){return ht.mutatedParts&&ry(ht.mutatedParts)})}):(Ft.optimisticOps.push(ht),ht.mutatedParts&&ry(ht.mutatedParts),Zt.then(function(jt){if(jt.numFailures>0){ie(Ft.optimisticOps,ht);var jn=HE(Ft,ht,jt);jn&&Ft.optimisticOps.push(jn),ht.mutatedParts&&ry(ht.mutatedParts)}}),Zt.catch(function(){ie(Ft.optimisticOps,ht),ht.mutatedParts&&ry(ht.mutatedParts)})),Zt},query:function(ht){var yt;if(!mP(Le,Pe)||!vP("query",ht))return Pe.query(ht);var Ft=((yt=Le.trans)===null||yt===void 0?void 0:yt.db._options.cache)==="immutable",Zt=Le,jt=Zt.requery,jn=Zt.signal,Ei=$E(te,Ae,"query",ht),sn=Ei[0],vn=Ei[1],zn=Ei[2],Jn=Ei[3];if(sn&&vn)sn.obsSet=ht.obsSet;else{var si=Pe.query(ht).then(function(ii){var mi=ii.result;if(sn&&(sn.res=mi),Ft){for(var oi=0,or=mi.length;oi<or;++oi)Object.freeze(mi[oi]);Object.freeze(mi)}else ii.result=le(mi);return ii}).catch(function(ii){return Jn&&sn&&ie(Jn,sn),Promise.reject(ii)});sn={obsSet:ht.obsSet,promise:si,subscribers:new Set,type:"query",req:ht,dirty:!1},Jn?Jn.push(sn):(Jn=[sn],zn||(zn=Bb["idb://".concat(te,"/").concat(Ae)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}}),zn.queries.query[ht.query.index.name||""]=Jn)}return fS(sn,Jn,jt,jn),sn.promise.then(function(ii){return{result:jb(ii.result,ht,zn?.optimisticOps,Pe,sn,Ft)}})}});return rt}});return ye}};function pS(X,te){return new Proxy(X,{get:function(ye,Ae,Pe){return Ae==="db"?te:Reflect.get(ye,Ae,Pe)}})}var Zd=(function(){function X(te,ye){var Ae=this;this._middlewares={},this.verno=0;var Pe=X.dependencies;this._options=ye=r({addons:X.addons,autoOpen:!0,indexedDB:Pe.indexedDB,IDBKeyRange:Pe.IDBKeyRange,cache:"cloned"},ye),this._deps={indexedDB:ye.indexedDB,IDBKeyRange:ye.IDBKeyRange};var He=ye.addons;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var rt={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:ct,dbReadyPromise:null,cancelOpen:ct,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:ye.autoOpen};rt.dbReadyPromise=new Ve(function(yt){rt.dbReadyResolve=yt}),rt.openCanceller=new Ve(function(yt,Ft){rt.cancelOpen=Ft}),this._state=rt,this.name=te,this.on=$c(this,"populate","blocked","versionchange","close",{ready:[Ut,ct]}),this.once=function(yt,Ft){var Zt=function(){for(var jt=[],jn=0;jn<arguments.length;jn++)jt[jn]=arguments[jn];Ae.on(yt).unsubscribe(Zt),Ft.apply(Ae,jt)};return Ae.on(yt,Zt)},this.on.ready.subscribe=E(this.on.ready.subscribe,function(yt){return function(Ft,Zt){X.vip(function(){var jt=Ae._state;if(jt.openComplete)jt.dbOpenError||Ve.resolve().then(Ft),Zt&&yt(Ft);else if(jt.onReadyBeingFired)jt.onReadyBeingFired.push(Ft),Zt&&yt(Ft);else{yt(Ft);var jn=Ae;Zt||yt(function Ei(){jn.on.ready.unsubscribe(Ft),jn.on.ready.unsubscribe(Ei)})}})}}),this.Collection=xr(this),this.Table=Ef(this),this.Transaction=bi(this),this.Version=Wj(this),this.WhereClause=Kn(this),this.on("versionchange",function(yt){yt.newVersion>0?console.warn("Another connection wants to upgrade database '".concat(Ae.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(Ae.name,"'. Closing db now to resume the delete request.")),Ae.close({disableAutoOpen:!1})}),this.on("blocked",function(yt){!yt.newVersion||yt.newVersion<yt.oldVersion?console.warn("Dexie.delete('".concat(Ae.name,"') was blocked")):console.warn("Upgrade '".concat(Ae.name,"' blocked by other connection holding version ").concat(yt.oldVersion/10))}),this._maxKey=fs(ye.IDBKeyRange),this._createTransaction=function(yt,Ft,Zt,jt){return new Ae.Transaction(yt,Ft,Zt,Ae._options.chromeTransactionDurability,jt)},this._fireOnBlocked=function(yt){Ae.on("blocked").fire(yt),Bu.filter(function(Ft){return Ft.name===Ae.name&&Ft!==Ae&&!Ft._state.vcFired}).map(function(Ft){return Ft.on("versionchange").fire(yt)})},this.use(gP),this.use(Bp),this.use(GT),this.use(jw),this.use(ZF);var ht=new Proxy(this,{get:function(yt,Ft,Zt){if(Ft==="_vip")return!0;if(Ft==="table")return function(jn){return pS(Ae.table(jn),ht)};var jt=Reflect.get(yt,Ft,Zt);return jt instanceof Ed?pS(jt,ht):Ft==="tables"?jt.map(function(jn){return pS(jn,ht)}):Ft==="_createTransaction"?function(){var jn=jt.apply(this,arguments);return pS(jn,ht)}:jt}});this.vip=ht,He.forEach(function(yt){return yt(Ae)})}return X.prototype.version=function(te){if(isNaN(te)||te<.1)throw new ze.Type("Given version is not a positive number");if(te=Math.round(te*10)/10,this.idbdb||this._state.isBeingOpened)throw new ze.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,te);var ye=this._versions,Ae=ye.filter(function(Pe){return Pe._cfg.version===te})[0];return Ae||(Ae=new this.Version(te),ye.push(Ae),ye.sort(Fb),Ae.stores({}),this._state.autoSchema=!1,Ae)},X.prototype._whenReady=function(te){var ye=this;return this.idbdb&&(this._state.openComplete||Le.letThrough||this._vip)?te():new Ve(function(Ae,Pe){if(ye._state.openComplete)return Pe(new ze.DatabaseClosed(ye._state.dbOpenError));if(!ye._state.isBeingOpened){if(!ye._state.autoOpen){Pe(new ze.DatabaseClosed);return}ye.open().catch(ct)}ye._state.dbReadyPromise.then(Ae,Pe)}).then(te)},X.prototype.use=function(te){var ye=te.stack,Ae=te.create,Pe=te.level,He=te.name;He&&this.unuse({stack:ye,name:He});var rt=this._middlewares[ye]||(this._middlewares[ye]=[]);return rt.push({stack:ye,create:Ae,level:Pe??10,name:He}),rt.sort(function(ht,yt){return ht.level-yt.level}),this},X.prototype.unuse=function(te){var ye=te.stack,Ae=te.name,Pe=te.create;return ye&&this._middlewares[ye]&&(this._middlewares[ye]=this._middlewares[ye].filter(function(He){return Pe?He.create!==Pe:Ae?He.name!==Ae:!1})),this},X.prototype.open=function(){var te=this;return Dc(Ee,function(){return fP(te)})},X.prototype._close=function(){this.on.close.fire(new CustomEvent("close"));var te=this._state,ye=Bu.indexOf(this);if(ye>=0&&Bu.splice(ye,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}te.isBeingOpened||(te.dbReadyPromise=new Ve(function(Ae){te.dbReadyResolve=Ae}),te.openCanceller=new Ve(function(Ae,Pe){te.cancelOpen=Pe}))},X.prototype.close=function(te){var ye=te===void 0?{disableAutoOpen:!0}:te,Ae=ye.disableAutoOpen,Pe=this._state;Ae?(Pe.isBeingOpened&&Pe.cancelOpen(new ze.DatabaseClosed),this._close(),Pe.autoOpen=!1,Pe.dbOpenError=new ze.DatabaseClosed):(this._close(),Pe.autoOpen=this._options.autoOpen||Pe.isBeingOpened,Pe.openComplete=!1,Pe.dbOpenError=null)},X.prototype.delete=function(te){var ye=this;te===void 0&&(te={disableAutoOpen:!0});var Ae=arguments.length>0&&typeof arguments[0]!="object",Pe=this._state;return new Ve(function(He,rt){var ht=function(){ye.close(te);var yt=ye._deps.indexedDB.deleteDatabase(ye.name);yt.onsuccess=xi(function(){Pg(ye._deps,ye.name),He()}),yt.onerror=Mi(rt),yt.onblocked=ye._fireOnBlocked};if(Ae)throw new ze.InvalidArgument("Invalid closeOptions argument to db.delete()");Pe.isBeingOpened?Pe.dbReadyPromise.then(ht):ht()})},X.prototype.backendDB=function(){return this.idbdb},X.prototype.isOpen=function(){return this.idbdb!==null},X.prototype.hasBeenClosed=function(){var te=this._state.dbOpenError;return te&&te.name==="DatabaseClosed"},X.prototype.hasFailed=function(){return this._state.dbOpenError!==null},X.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(X.prototype,"tables",{get:function(){var te=this;return a(this._allTables).map(function(ye){return te._allTables[ye]})},enumerable:!1,configurable:!0}),X.prototype.transaction=function(){var te=Fw.apply(this,arguments);return this._transaction.apply(this,te)},X.prototype._transaction=function(te,ye,Ae){var Pe=this,He=Le.trans;(!He||He.db!==this||te.indexOf("!")!==-1)&&(He=null);var rt=te.indexOf("?")!==-1;te=te.replace("!","").replace("?","");var ht,yt;try{if(yt=ye.map(function(Zt){var jt=Zt instanceof Pe.Table?Zt.name:Zt;if(typeof jt!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return jt}),te=="r"||te===Mp)ht=Mp;else if(te=="rw"||te==Op)ht=Op;else throw new ze.InvalidArgument("Invalid transaction mode: "+te);if(He){if(He.mode===Mp&&ht===Op)if(rt)He=null;else throw new ze.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");He&&yt.forEach(function(Zt){if(He&&He.storeNames.indexOf(Zt)===-1)if(rt)He=null;else throw new ze.SubTransaction("Table "+Zt+" not included in parent transaction.")}),rt&&He&&!He.active&&(He=null)}}catch(Zt){return He?He._promise(null,function(jt,jn){jn(Zt)}):pa(Zt)}var Ft=Bw.bind(null,this,ht,yt,He,Ae);return He?He._promise(ht,Ft,"lock"):Le.trans?Dc(Le.transless,function(){return Pe._whenReady(Ft)}):this._whenReady(Ft)},X.prototype.table=function(te){if(!h(this._allTables,te))throw new ze.InvalidTable("Table ".concat(te," does not exist"));return this._allTables[te]},X})(),e5=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",KT=(function(){function X(te){this._subscribe=te}return X.prototype.subscribe=function(te,ye,Ae){return this._subscribe(!te||typeof te=="function"?{next:te,error:ye,complete:Ae}:te)},X.prototype[e5]=function(){return this},X})(),qv;try{qv={indexedDB:s.indexedDB||s.mozIndexedDB||s.webkitIndexedDB||s.msIndexedDB,IDBKeyRange:s.IDBKeyRange||s.webkitIDBKeyRange}}catch{qv={indexedDB:null,IDBKeyRange:null}}function qE(X){var te=!1,ye,Ae=new KT(function(Pe){var He=oe(X);function rt(Jn){var si=Bt();try{He&&nl();var ii=Us(X,Jn);return He&&(ii=ii.finally(Ai)),ii}finally{si&&Ue()}}var ht=!1,yt,Ft={},Zt={},jt={get closed(){return ht},unsubscribe:function(){ht||(ht=!0,yt&&yt.abort(),jn&&At.storagemutated.unsubscribe(vn))}};Pe.start&&Pe.start(jt);var jn=!1,Ei=function(){return ed(zn)};function sn(){return zE(Zt,Ft)}var vn=function(Jn){jE(Ft,Jn),sn()&&Ei()},zn=function(){if(!(ht||!qv.indexedDB)){Ft={};var Jn={};yt&&yt.abort(),yt=new AbortController;var si={subscr:Jn,signal:yt.signal,requery:Ei,querier:X,trans:null},ii=rt(si);Promise.resolve(ii).then(function(mi){te=!0,ye=mi,!(ht||si.signal.aborted)&&(Ft={},Zt=Jn,!H(Zt)&&!jn&&(At(Vr,vn),jn=!0),ed(function(){return!ht&&Pe.next&&Pe.next(mi)}))},function(mi){te=!1,["DatabaseClosedError","AbortError"].includes(mi?.name)||ht||ed(function(){ht||Pe.error&&Pe.error(mi)})})}};return setTimeout(Ei,0),jt});return Ae.hasValue=function(){return te},Ae.getValue=function(){return ye},Ae}var zb=Zd;f(zb,r(r({},ft),{delete:function(X){var te=new zb(X,{addons:[]});return te.delete()},exists:function(X){return new zb(X,{addons:[]}).open().then(function(te){return te.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(X){try{return KF(zb.dependencies).then(X)}catch{return pa(new ze.MissingAPI)}},defineClass:function(){function X(te){c(this,te)}return X},ignoreTransaction:function(X){return Le.trans?Dc(Le.transless,X):X()},vip:HT,async:function(X){return function(){try{var te=$T(X.apply(this,arguments));return!te||typeof te.then!="function"?Ve.resolve(te):te}catch(ye){return pa(ye)}}},spawn:function(X,te,ye){try{var Ae=$T(X.apply(ye,te||[]));return!Ae||typeof Ae.then!="function"?Ve.resolve(Ae):Ae}catch(Pe){return pa(Pe)}},currentTransaction:{get:function(){return Le.trans||null}},waitFor:function(X,te){var ye=Ve.resolve(typeof X=="function"?zb.ignoreTransaction(X):X).timeout(te||6e4);return Le.trans?Le.trans.waitFor(ye):ye},Promise:Ve,debug:{get:function(){return Gt},set:function(X){Kt(X)}},derive:m,extend:c,props:f,override:E,Events:$c,on:At,liveQuery:qE,extendObservabilitySet:jE,getByKeyPath:M,setByKeyPath:P,delByKeyPath:F,shallowClone:N,deepClone:le,getObjectDiff:qT,cmp:io,asap:D,minKey:Cf,addons:[],connections:Bu,errnames:Ie,dependencies:qv,cache:Bb,semVer:td,version:td.split(".").map(function(X){return parseInt(X)}).reduce(function(X,te,ye){return X+te/Math.pow(10,ye*2)})})),zb.maxKey=fs(zb.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(At(Vr,function(X){if(!sy){var te;te=new CustomEvent(We,{detail:X}),sy=!0,dispatchEvent(te),sy=!1}}),addEventListener(We,function(X){var te=X.detail;sy||GE(te)}));function GE(X){var te=sy;try{sy=!0,At.storagemutated.fire(X),oy(X,!0)}finally{sy=te}}var sy=!1,qc,Gv=function(){};typeof BroadcastChannel<"u"&&(Gv=function(){qc=new BroadcastChannel(We),qc.onmessage=function(X){return X.data&&GE(X.data)}},Gv(),typeof qc.unref=="function"&&qc.unref(),At(Vr,function(X){sy||qc.postMessage(X)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(X){if(!Zd.disableBfCache&&X.persisted){Gt&&console.debug("Dexie: handling persisted pagehide"),qc?.close();for(var te=0,ye=Bu;te<ye.length;te++){var Ae=ye[te];Ae.close({disableAutoOpen:!1})}}}),addEventListener("pageshow",function(X){!Zd.disableBfCache&&X.persisted&&(Gt&&console.debug("Dexie: handling persisted pageshow"),Gv(),GE({all:new Oh(-1/0,[[]])}))}));function Hw(X){return new Ic({add:X})}function YT(X){return new Ic({remove:X})}function KE(X,te){return new Ic({replacePrefix:[X,te]})}Ve.rejectionMapper=it,Kt(Gt);var jp=Object.freeze({__proto__:null,Dexie:Zd,Entity:Sm,PropModification:Ic,RangeSet:Oh,add:Hw,cmp:io,default:Zd,liveQuery:qE,mergeRanges:Rw,rangesOverlap:YF,remove:YT,replacePrefix:KE});return r(Zd,jp,{default:Zd}),Zd}))}}),e7t=Ot({"../node_modules/.pnpm/lodash.debounce@4.0.8/node_modules/lodash.debounce/index.js"(e,t){var n="Expected a function",i=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,u=typeof global=="object"&&global&&global.Object===Object&&global,d=typeof self=="object"&&self&&self.Object===Object&&self,h=u||d||Function("return this")(),f=Object.prototype,p=f.toString,g=Math.max,m=Math.min,v=function(){return h.Date.now()};function y(D,T,M){var P,F,N,j,W,J,ee=0,Q=!1,H=!1,q=!0;if(typeof D!="function")throw new TypeError(n);T=A(T)||0,b(M)&&(Q=!!M.leading,H="maxWait"in M,N=H?g(A(M.maxWait)||0,T):N,q="trailing"in M?!!M.trailing:q);function le(oe){var me=P,Ce=F;return P=F=void 0,ee=oe,j=D.apply(Ce,me),j}function Y(oe){return ee=oe,W=setTimeout(U,T),Q?le(oe):j}function G(oe){var me=oe-J,Ce=oe-ee,Se=T-me;return H?m(Se,N-Ce):Se}function pe(oe){var me=oe-J,Ce=oe-ee;return J===void 0||me>=T||me<0||H&&Ce>=N}function U(){var oe=v();if(pe(oe))return K(oe);W=setTimeout(U,G(oe))}function K(oe){return W=void 0,q&&P?le(oe):(P=F=void 0,j)}function ie(){W!==void 0&&clearTimeout(W),ee=0,P=J=F=W=void 0}function ce(){return W===void 0?j:K(v())}function de(){var oe=v(),me=pe(oe);if(P=arguments,F=this,J=oe,me){if(W===void 0)return Y(J);if(H)return W=setTimeout(U,T),le(J)}return W===void 0&&(W=setTimeout(U,T)),j}return de.cancel=ie,de.flush=ce,de}function b(D){var T=typeof D;return!!D&&(T=="object"||T=="function")}function w(D){return!!D&&typeof D=="object"}function E(D){return typeof D=="symbol"||w(D)&&p.call(D)==r}function A(D){if(typeof D=="number")return D;if(E(D))return i;if(b(D)){var T=typeof D.valueOf=="function"?D.valueOf():D;D=b(T)?T+"":T}if(typeof D!="string")return D===0?D:+D;D=D.replace(o,"");var M=a.test(D);return M||l.test(D)?c(D.slice(2),M?2:8):s.test(D)?i:+D}t.exports=y}}),w2n=Ot({"../node_modules/.pnpm/bezier-easing@2.1.0/node_modules/bezier-easing/src/index.js"(e,t){var n=4,i=.001,r=1e-7,o=10,s=11,a=1/(s-1),l=typeof Float32Array=="function";function c(v,y){return 1-3*y+3*v}function u(v,y){return 3*y-6*v}function d(v){return 3*v}function h(v,y,b){return((c(y,b)*v+u(y,b))*v+d(y))*v}function f(v,y,b){return 3*c(y,b)*v*v+2*u(y,b)*v+d(y)}function p(v,y,b,w,E){var A,D,T=0;do D=y+(b-y)/2,A=h(D,w,E)-v,A>0?b=D:y=D;while(Math.abs(A)>r&&++T<o);return D}function g(v,y,b,w){for(var E=0;E<n;++E){var A=f(y,b,w);if(A===0)return y;var D=h(y,b,w)-v;y-=D/A}return y}function m(v){return v}t.exports=function(y,b,w,E){if(!(0<=y&&y<=1&&0<=w&&w<=1))throw new Error("bezier x values must be in [0, 1] range");if(y===b&&w===E)return m;for(var A=l?new Float32Array(s):new Array(s),D=0;D<s;++D)A[D]=h(D*a,y,w);function T(M){for(var P=0,F=1,N=s-1;F!==N&&A[F]<=M;++F)P+=a;--F;var j=(M-A[F])/(A[F+1]-A[F]),W=P+j*a,J=f(W,y,w);return J>=i?g(M,W,y,w):J===0?W:p(M,P,P+a,y,w)}return function(P){return P===0?0:P===1?1:h(T(P),b,E)}}}}),C2n=Ot({"../node_modules/.pnpm/lodash.minby@4.6.0/node_modules/lodash.minby/index.js"(e,t){var n=200,i="Expected a function",r="__lodash_hash_undefined__",o=1,s=2,a=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Function]",p="[object GeneratorFunction]",g="[object Map]",m="[object Number]",v="[object Object]",y="[object Promise]",b="[object RegExp]",w="[object Set]",E="[object String]",A="[object Symbol]",D="[object WeakMap]",T="[object ArrayBuffer]",M="[object DataView]",P="[object Float32Array]",F="[object Float64Array]",N="[object Int8Array]",j="[object Int16Array]",W="[object Int32Array]",J="[object Uint8Array]",ee="[object Uint8ClampedArray]",Q="[object Uint16Array]",H="[object Uint32Array]",q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,le=/^\w*$/,Y=/^\./,G=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pe=/[\\^$.*+?()[\]{}|]/g,U=/\\(\\)?/g,K=/^\[object .+?Constructor\]$/,ie=/^(?:0|[1-9]\d*)$/,ce={};ce[P]=ce[F]=ce[N]=ce[j]=ce[W]=ce[J]=ce[ee]=ce[Q]=ce[H]=!0,ce[l]=ce[c]=ce[T]=ce[u]=ce[M]=ce[d]=ce[h]=ce[f]=ce[g]=ce[m]=ce[v]=ce[b]=ce[w]=ce[E]=ce[D]=!1;var de=typeof global=="object"&&global&&global.Object===Object&&global,oe=typeof self=="object"&&self&&self.Object===Object&&self,me=de||oe||Function("return this")(),Ce=typeof e=="object"&&e&&!e.nodeType&&e,Se=Ce&&typeof t=="object"&&t&&!t.nodeType&&t,De=Se&&Se.exports===Ce,Me=De&&de.process,qe=(function(){try{return Me&&Me.binding("util")}catch{}})(),$=qe&&qe.isTypedArray;function he(Je,zt){for(var Kn=-1,Mi=Je?Je.length:0;++Kn<Mi;)if(zt(Je[Kn],Kn,Je))return!0;return!1}function Ie(Je){return function(zt){return zt?.[Je]}}function Be(Je,zt){for(var Kn=-1,Mi=Array(Je);++Kn<Je;)Mi[Kn]=zt(Kn);return Mi}function ze(Je){return function(zt){return Je(zt)}}function Ye(Je,zt){return Je?.[zt]}function it(Je){var zt=!1;if(Je!=null&&typeof Je.toString!="function")try{zt=!!(Je+"")}catch{}return zt}function ft(Je){var zt=-1,Kn=Array(Je.size);return Je.forEach(function(Mi,Fo){Kn[++zt]=[Fo,Mi]}),Kn}function ct(Je,zt){return function(Kn){return Je(zt(Kn))}}function et(Je){var zt=-1,Kn=Array(Je.size);return Je.forEach(function(Mi){Kn[++zt]=Mi}),Kn}var ut=Array.prototype,wt=Function.prototype,pt=Object.prototype,_t=me["__core-js_shared__"],Rt=(function(){var Je=/[^.]+$/.exec(_t&&_t.keys&&_t.keys.IE_PROTO||"");return Je?"Symbol(src)_1."+Je:""})(),Yt=wt.toString,Ut=pt.hasOwnProperty,Gt=pt.toString,Kt=RegExp("^"+Yt.call(Ut).replace(pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ln=me.Symbol,pn=me.Uint8Array,wn=pt.propertyIsEnumerable,Mn=ut.splice,Yn=ct(Object.keys,Object),di=io(me,"DataView"),Li=io(me,"Map"),ke=io(me,"Promise"),Z=io(me,"Set"),ne=io(me,"WeakMap"),V=io(Object,"create"),re=cc(di),ge=cc(Li),we=cc(ke),ve=cc(Z),_e=cc(ne),Ee=ln?ln.prototype:void 0,Le=Ee?Ee.valueOf:void 0,be=Ee?Ee.toString:void 0;function Fe(Je){var zt=-1,Kn=Je?Je.length:0;for(this.clear();++zt<Kn;){var Mi=Je[zt];this.set(Mi[0],Mi[1])}}function Ze(){this.__data__=V?V(null):{}}function Ve(Je){return this.has(Je)&&delete this.__data__[Je]}function dt(Je){var zt=this.__data__;if(V){var Kn=zt[Je];return Kn===r?void 0:Kn}return Ut.call(zt,Je)?zt[Je]:void 0}function Vt(Je){var zt=this.__data__;return V?zt[Je]!==void 0:Ut.call(zt,Je)}function Xe(Je,zt){var Kn=this.__data__;return Kn[Je]=V&&zt===void 0?r:zt,this}Fe.prototype.clear=Ze,Fe.prototype.delete=Ve,Fe.prototype.get=dt,Fe.prototype.has=Vt,Fe.prototype.set=Xe;function Ht(Je){var zt=-1,Kn=Je?Je.length:0;for(this.clear();++zt<Kn;){var Mi=Je[zt];this.set(Mi[0],Mi[1])}}function Qt(){this.__data__=[]}function Dt(Je){var zt=this.__data__,Kn=dr(zt,Je);if(Kn<0)return!1;var Mi=zt.length-1;return Kn==Mi?zt.pop():Mn.call(zt,Kn,1),!0}function Tt(Je){var zt=this.__data__,Kn=dr(zt,Je);return Kn<0?void 0:zt[Kn][1]}function en(Je){return dr(this.__data__,Je)>-1}function Bt(Je,zt){var Kn=this.__data__,Mi=dr(Kn,Je);return Mi<0?Kn.push([Je,zt]):Kn[Mi][1]=zt,this}Ht.prototype.clear=Qt,Ht.prototype.delete=Dt,Ht.prototype.get=Tt,Ht.prototype.has=en,Ht.prototype.set=Bt;function Ue(Je){var zt=-1,Kn=Je?Je.length:0;for(this.clear();++zt<Kn;){var Mi=Je[zt];this.set(Mi[0],Mi[1])}}function Lt(){this.__data__={hash:new Fe,map:new(Li||Ht),string:new Fe}}function at(Je){return Mh(this,Je).delete(Je)}function cn(Je){return Mh(this,Je).get(Je)}function Bn(Je){return Mh(this,Je).has(Je)}function Tn(Je,zt){return Mh(this,Je).set(Je,zt),this}Ue.prototype.clear=Lt,Ue.prototype.delete=at,Ue.prototype.get=cn,Ue.prototype.has=Bn,Ue.prototype.set=Tn;function xi(Je){var zt=-1,Kn=Je?Je.length:0;for(this.__data__=new Ue;++zt<Kn;)this.add(Je[zt])}function Zi(Je){return this.__data__.set(Je,r),this}function dn(Je){return this.__data__.has(Je)}xi.prototype.add=xi.prototype.push=Zi,xi.prototype.has=dn;function fi(Je){this.__data__=new Ht(Je)}function Fr(){this.__data__=new Ht}function Wo(Je){return this.__data__.delete(Je)}function Mo(Je){return this.__data__.get(Je)}function Us(Je){return this.__data__.has(Je)}function nl(Je,zt){var Kn=this.__data__;if(Kn instanceof Ht){var Mi=Kn.__data__;if(!Li||Mi.length<n-1)return Mi.push([Je,zt]),this;Kn=this.__data__=new Ue(Mi)}return Kn.set(Je,zt),this}fi.prototype.clear=Fr,fi.prototype.delete=Wo,fi.prototype.get=Mo,fi.prototype.has=Us,fi.prototype.set=nl;function Ai(Je,zt){var Kn=nt(Je)||Ke(Je)?Be(Je.length,String):[],Mi=Kn.length,Fo=!!Mi;for(var Vr in Je)Ut.call(Je,Vr)&&!(Fo&&(Vr=="length"||xf(Vr,Mi)))&&Kn.push(Vr);return Kn}function dr(Je,zt){for(var Kn=Je.length;Kn--;)if(xe(Je[Kn][0],zt))return Kn;return-1}function es(Je,zt,Kn){for(var Mi=-1,Fo=Je.length;++Mi<Fo;){var Vr=Je[Mi],We=zt(Vr);if(We!=null&&(At===void 0?We===We&&!Gn(We):Kn(We,At)))var At=We,mn=Vr}return mn}function ds(Je,zt){zt=kc(zt,Je)?[zt]:Mp(zt);for(var Kn=0,Mi=zt.length;Je!=null&&Kn<Mi;)Je=Je[Ef(zt[Kn++])];return Kn&&Kn==Mi?Je:void 0}function Jr(Je){return Gt.call(Je)}function Xu(Je,zt){return Je!=null&&zt in Object(Je)}function Dc(Je,zt,Kn,Mi,Fo){return Je===zt?!0:Je==null||zt==null||!yi(Je)&&!xr(zt)?Je!==Je&&zt!==zt:Ju(Je,zt,Dc,Kn,Mi,Fo)}function Ju(Je,zt,Kn,Mi,Fo,Vr){var We=nt(Je),At=nt(zt),mn=c,bi=c;We||(mn=Ml(Je),mn=mn==l?v:mn),At||(bi=Ml(zt),bi=bi==l?v:bi);var Dr=mn==v&&!it(Je),Xi=bi==v&&!it(zt),Br=mn==bi;if(Br&&!Dr)return Vr||(Vr=new fi),We||Go(Je)?Op(Je,zt,Kn,Mi,Fo,Vr):xd(Je,zt,mn,Kn,Mi,Fo,Vr);if(!(Fo&s)){var _a=Dr&&Ut.call(Je,"__wrapped__"),fs=Xi&&Ut.call(zt,"__wrapped__");if(_a||fs){var hl=_a?Je.value():Je,Ol=fs?zt.value():zt;return Vr||(Vr=new fi),Kn(hl,Ol,Mi,Fo,Vr)}}return Br?(Vr||(Vr=new fi),Sf(Je,zt,Kn,Mi,Fo,Vr)):!1}function ed(Je,zt,Kn,Mi){var Fo=Kn.length,Vr=Fo;if(Je==null)return!Vr;for(Je=Object(Je);Fo--;){var We=Kn[Fo];if(We[2]?We[1]!==Je[We[0]]:!(We[0]in Je))return!1}for(;++Fo<Vr;){We=Kn[Fo];var At=We[0],mn=Je[At],bi=We[1];if(We[2]){if(mn===void 0&&!(At in Je))return!1}else{var Dr=new fi,Xi;if(!(Xi===void 0?Dc(bi,mn,Mi,o|s,Dr):Xi))return!1}}return!0}function pa(Je){if(!yi(Je)||Ic(Je))return!1;var zt=st(Je)||it(Je)?Kt:K;return zt.test(cc(Je))}function il(Je){return xr(Je)&&$t(Je.length)&&!!ce[Gt.call(Je)]}function td(Je){return typeof Je=="function"?Je:Je==null?du:typeof Je=="object"?nt(Je)?Ig(Je[0],Je[1]):Tc(Je):Zf(Je)}function lc(Je){if(!Eu(Je))return Yn(Je);var zt=[];for(var Kn in Object(Je))Ut.call(Je,Kn)&&Kn!="constructor"&&zt.push(Kn);return zt}function Cf(Je,zt){return Je<zt}function Tc(Je){var zt=Sm(Je);return zt.length==1&&zt[0][2]?$c(zt[0][0],zt[0][1]):function(Kn){return Kn===Je||ed(Kn,Je,zt)}}function Ig(Je,zt){return kc(Je)&&Ed(zt)?$c(Ef(Je),zt):function(Kn){var Mi=ts(Kn,Je);return Mi===void 0&&Mi===zt?dl(Kn,Je):Dc(zt,Mi,void 0,o|s)}}function Bu(Je){return function(zt){return ds(zt,Je)}}function ju(Je){if(typeof Je=="string")return Je;if(Gn(Je))return be?be.call(Je):"";var zt=Je+"";return zt=="0"&&1/Je==-1/0?"-0":zt}function Mp(Je){return nt(Je)?Je:Lc(Je)}function Op(Je,zt,Kn,Mi,Fo,Vr){var We=Fo&s,At=Je.length,mn=zt.length;if(At!=mn&&!(We&&mn>At))return!1;var bi=Vr.get(Je);if(bi&&Vr.get(zt))return bi==zt;var Dr=-1,Xi=!0,Br=Fo&o?new xi:void 0;for(Vr.set(Je,zt),Vr.set(zt,Je);++Dr<At;){var _a=Je[Dr],fs=zt[Dr];if(Mi)var hl=We?Mi(fs,_a,Dr,zt,Je,Vr):Mi(_a,fs,Dr,Je,zt,Vr);if(hl!==void 0){if(hl)continue;Xi=!1;break}if(Br){if(!he(zt,function(Ol,Yl){if(!Br.has(Yl)&&(_a===Ol||Kn(_a,Ol,Mi,Fo,Vr)))return Br.add(Yl)})){Xi=!1;break}}else if(!(_a===fs||Kn(_a,fs,Mi,Fo,Vr))){Xi=!1;break}}return Vr.delete(Je),Vr.delete(zt),Xi}function xd(Je,zt,Kn,Mi,Fo,Vr,We){switch(Kn){case M:if(Je.byteLength!=zt.byteLength||Je.byteOffset!=zt.byteOffset)return!1;Je=Je.buffer,zt=zt.buffer;case T:return!(Je.byteLength!=zt.byteLength||!Mi(new pn(Je),new pn(zt)));case u:case d:case m:return xe(+Je,+zt);case h:return Je.name==zt.name&&Je.message==zt.message;case b:case E:return Je==zt+"";case g:var At=ft;case w:var mn=Vr&s;if(At||(At=et),Je.size!=zt.size&&!mn)return!1;var bi=We.get(Je);if(bi)return bi==zt;Vr|=o,We.set(Je,zt);var Dr=Op(At(Je),At(zt),Mi,Fo,Vr,We);return We.delete(Je),Dr;case A:if(Le)return Le.call(Je)==Le.call(zt)}return!1}function Sf(Je,zt,Kn,Mi,Fo,Vr){var We=Fo&s,At=hs(Je),mn=At.length,bi=hs(zt),Dr=bi.length;if(mn!=Dr&&!We)return!1;for(var Xi=mn;Xi--;){var Br=At[Xi];if(!(We?Br in zt:Ut.call(zt,Br)))return!1}var _a=Vr.get(Je);if(_a&&Vr.get(zt))return _a==zt;var fs=!0;Vr.set(Je,zt),Vr.set(zt,Je);for(var hl=We;++Xi<mn;){Br=At[Xi];var Ol=Je[Br],Yl=zt[Br];if(Mi)var Du=We?Mi(Yl,Ol,Br,zt,Je,Vr):Mi(Ol,Yl,Br,Je,zt,Vr);if(!(Du===void 0?Ol===Yl||Kn(Ol,Yl,Mi,Fo,Vr):Du)){fs=!1;break}hl||(hl=Br=="constructor")}if(fs&&!hl){var Nc=Je.constructor,id=zt.constructor;Nc!=id&&"constructor"in Je&&"constructor"in zt&&!(typeof Nc=="function"&&Nc instanceof Nc&&typeof id=="function"&&id instanceof id)&&(fs=!1)}return Vr.delete(Je),Vr.delete(zt),fs}function Mh(Je,zt){var Kn=Je.__data__;return nd(zt)?Kn[typeof zt=="string"?"string":"hash"]:Kn.map}function Sm(Je){for(var zt=hs(Je),Kn=zt.length;Kn--;){var Mi=zt[Kn],Fo=Je[Mi];zt[Kn]=[Mi,Fo,Ed(Fo)]}return zt}function io(Je,zt){var Kn=Ye(Je,zt);return pa(Kn)?Kn:void 0}var Ml=Jr;(di&&Ml(new di(new ArrayBuffer(1)))!=M||Li&&Ml(new Li)!=g||ke&&Ml(ke.resolve())!=y||Z&&Ml(new Z)!=w||ne&&Ml(new ne)!=D)&&(Ml=function(Je){var zt=Gt.call(Je),Kn=zt==v?Je.constructor:void 0,Mi=Kn?cc(Kn):void 0;if(Mi)switch(Mi){case re:return M;case ge:return g;case we:return y;case ve:return w;case _e:return D}return zt});function Rp(Je,zt,Kn){zt=kc(zt,Je)?[zt]:Mp(zt);for(var Mi,Fo=-1,We=zt.length;++Fo<We;){var Vr=Ef(zt[Fo]);if(!(Mi=Je!=null&&Kn(Je,Vr)))break;Je=Je[Vr]}if(Mi)return Mi;var We=Je?Je.length:0;return!!We&&$t(We)&&xf(Vr,We)&&(nt(Je)||Ke(Je))}function xf(Je,zt){return zt=zt??a,!!zt&&(typeof Je=="number"||ie.test(Je))&&Je>-1&&Je%1==0&&Je<zt}function kc(Je,zt){if(nt(Je))return!1;var Kn=typeof Je;return Kn=="number"||Kn=="symbol"||Kn=="boolean"||Je==null||Gn(Je)?!0:le.test(Je)||!q.test(Je)||zt!=null&&Je in Object(zt)}function nd(Je){var zt=typeof Je;return zt=="string"||zt=="number"||zt=="symbol"||zt=="boolean"?Je!=="__proto__":Je===null}function Ic(Je){return!!Rt&&Rt in Je}function Eu(Je){var zt=Je&&Je.constructor,Kn=typeof zt=="function"&&zt.prototype||pt;return Je===Kn}function Ed(Je){return Je===Je&&!yi(Je)}function $c(Je,zt){return function(Kn){return Kn==null?!1:Kn[Je]===zt&&(zt!==void 0||Je in Object(Kn))}}var Lc=Au(function(Je){Je=ro(Je);var zt=[];return Y.test(Je)&&zt.push(""),Je.replace(G,function(Kn,Mi,Fo,Vr){zt.push(Fo?Vr.replace(U,"$1"):Mi||Kn)}),zt});function Ef(Je){if(typeof Je=="string"||Gn(Je))return Je;var zt=Je+"";return zt=="0"&&1/Je==-1/0?"-0":zt}function cc(Je){if(Je!=null){try{return Yt.call(Je)}catch{}try{return Je+""}catch{}}return""}function Au(Je,zt){if(typeof Je!="function"||zt&&typeof zt!="function")throw new TypeError(i);var Kn=function(){var Mi=arguments,Fo=zt?zt.apply(this,Mi):Mi[0],Vr=Kn.cache;if(Vr.has(Fo))return Vr.get(Fo);var We=Je.apply(this,Mi);return Kn.cache=Vr.set(Fo,We),We};return Kn.cache=new(Au.Cache||Ue),Kn}Au.Cache=Ue;function xe(Je,zt){return Je===zt||Je!==Je&&zt!==zt}function Ke(Je){return Oe(Je)&&Ut.call(Je,"callee")&&(!wn.call(Je,"callee")||Gt.call(Je)==l)}var nt=Array.isArray;function kt(Je){return Je!=null&&$t(Je.length)&&!st(Je)}function Oe(Je){return xr(Je)&&kt(Je)}function st(Je){var zt=yi(Je)?Gt.call(Je):"";return zt==f||zt==p}function $t(Je){return typeof Je=="number"&&Je>-1&&Je%1==0&&Je<=a}function yi(Je){var zt=typeof Je;return!!Je&&(zt=="object"||zt=="function")}function xr(Je){return!!Je&&typeof Je=="object"}function Gn(Je){return typeof Je=="symbol"||xr(Je)&&Gt.call(Je)==A}var Go=$?ze($):il;function ro(Je){return Je==null?"":ju(Je)}function ts(Je,zt,Kn){var Mi=Je==null?void 0:ds(Je,zt);return Mi===void 0?Kn:Mi}function dl(Je,zt){return Je!=null&&Rp(Je,zt,Xu)}function hs(Je){return kt(Je)?Ai(Je):lc(Je)}function du(Je){return Je}function Zf(Je){return kc(Je)?Ie(Ef(Je)):Bu(Je)}function Qd(Je,zt){return Je&&Je.length?es(Je,td(zt),Cf):void 0}t.exports=Qd}}),t7t=Ot({"../node_modules/.pnpm/lodash.zip@4.2.0/node_modules/lodash.zip/index.js"(e,t){var n=9007199254740991,i="[object Function]",r="[object GeneratorFunction]";function o(A,D,T){switch(T.length){case 0:return A.call(D);case 1:return A.call(D,T[0]);case 2:return A.call(D,T[0],T[1]);case 3:return A.call(D,T[0],T[1],T[2])}return A.apply(D,T)}function s(A,D){for(var T=-1,M=A?A.length:0,P=0,F=[];++T<M;){var N=A[T];D(N,T,A)&&(F[P++]=N)}return F}function a(A,D){for(var T=-1,M=A?A.length:0,P=Array(M);++T<M;)P[T]=D(A[T],T,A);return P}function l(A){return function(D){return D?.[A]}}function c(A,D){for(var T=-1,M=Array(A);++T<A;)M[T]=D(T);return M}var u=Object.prototype,d=u.toString,h=Math.max;function f(A,D){return D=h(D===void 0?A.length-1:D,0),function(){for(var T=arguments,M=-1,P=h(T.length-D,0),F=Array(P);++M<P;)F[M]=T[D+M];M=-1;for(var N=Array(D+1);++M<D;)N[M]=T[M];return N[D]=F,o(A,this,N)}}function p(A){if(!(A&&A.length))return[];var D=0;return A=s(A,function(T){if(v(T))return D=h(T.length,D),!0}),c(D,function(T){return a(A,l(T))})}var g=f(p);function m(A){return A!=null&&b(A.length)&&!y(A)}function v(A){return E(A)&&m(A)}function y(A){var D=w(A)?d.call(A):"";return D==i||D==r}function b(A){return typeof A=="number"&&A>-1&&A%1==0&&A<=n}function w(A){var D=typeof A;return!!A&&(D=="object"||D=="function")}function E(A){return!!A&&typeof A=="object"}t.exports=g}}),S2n=Ot({"../node_modules/.pnpm/lodash.countby@4.6.0/node_modules/lodash.countby/index.js"(e,t){var n=200,i="Expected a function",r="__lodash_hash_undefined__",o=1,s=2,a=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Function]",p="[object GeneratorFunction]",g="[object Map]",m="[object Number]",v="[object Object]",y="[object Promise]",b="[object RegExp]",w="[object Set]",E="[object String]",A="[object Symbol]",D="[object WeakMap]",T="[object ArrayBuffer]",M="[object DataView]",P="[object Float32Array]",F="[object Float64Array]",N="[object Int8Array]",j="[object Int16Array]",W="[object Int32Array]",J="[object Uint8Array]",ee="[object Uint8ClampedArray]",Q="[object Uint16Array]",H="[object Uint32Array]",q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,le=/^\w*$/,Y=/^\./,G=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pe=/[\\^$.*+?()[\]{}|]/g,U=/\\(\\)?/g,K=/^\[object .+?Constructor\]$/,ie=/^(?:0|[1-9]\d*)$/,ce={};ce[P]=ce[F]=ce[N]=ce[j]=ce[W]=ce[J]=ce[ee]=ce[Q]=ce[H]=!0,ce[l]=ce[c]=ce[T]=ce[u]=ce[M]=ce[d]=ce[h]=ce[f]=ce[g]=ce[m]=ce[v]=ce[b]=ce[w]=ce[E]=ce[D]=!1;var de=typeof global=="object"&&global&&global.Object===Object&&global,oe=typeof self=="object"&&self&&self.Object===Object&&self,me=de||oe||Function("return this")(),Ce=typeof e=="object"&&e&&!e.nodeType&&e,Se=Ce&&typeof t=="object"&&t&&!t.nodeType&&t,De=Se&&Se.exports===Ce,Me=De&&de.process,qe=(function(){try{return Me&&Me.binding("util")}catch{}})(),$=qe&&qe.isTypedArray;function he(We,At,mn,bi){for(var Dr=-1,Xi=We?We.length:0;++Dr<Xi;){var Br=We[Dr];At(bi,Br,mn(Br),We)}return bi}function Ie(We,At){for(var mn=-1,bi=We?We.length:0;++mn<bi;)if(At(We[mn],mn,We))return!0;return!1}function Be(We){return function(At){return At?.[We]}}function ze(We,At){for(var mn=-1,bi=Array(We);++mn<We;)bi[mn]=At(mn);return bi}function Ye(We){return function(At){return We(At)}}function it(We,At){return We?.[At]}function ft(We){var At=!1;if(We!=null&&typeof We.toString!="function")try{At=!!(We+"")}catch{}return At}function ct(We){var At=-1,mn=Array(We.size);return We.forEach(function(bi,Dr){mn[++At]=[Dr,bi]}),mn}function et(We,At){return function(mn){return We(At(mn))}}function ut(We){var At=-1,mn=Array(We.size);return We.forEach(function(bi){mn[++At]=bi}),mn}var wt=Array.prototype,pt=Function.prototype,_t=Object.prototype,Rt=me["__core-js_shared__"],Yt=(function(){var We=/[^.]+$/.exec(Rt&&Rt.keys&&Rt.keys.IE_PROTO||"");return We?"Symbol(src)_1."+We:""})(),Ut=pt.toString,Gt=_t.hasOwnProperty,Kt=_t.toString,ln=RegExp("^"+Ut.call(Gt).replace(pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pn=me.Symbol,wn=me.Uint8Array,Mn=_t.propertyIsEnumerable,Yn=wt.splice,di=et(Object.keys,Object),Li=Ic(me,"DataView"),ke=Ic(me,"Map"),Z=Ic(me,"Promise"),ne=Ic(me,"Set"),V=Ic(me,"WeakMap"),re=Ic(Object,"create"),ge=Oe(Li),we=Oe(ke),ve=Oe(Z),_e=Oe(ne),Ee=Oe(V),Le=pn?pn.prototype:void 0,be=Le?Le.valueOf:void 0,Fe=Le?Le.toString:void 0;function Ze(We){var At=-1,mn=We?We.length:0;for(this.clear();++At<mn;){var bi=We[At];this.set(bi[0],bi[1])}}function Ve(){this.__data__=re?re(null):{}}function dt(We){return this.has(We)&&delete this.__data__[We]}function Vt(We){var At=this.__data__;if(re){var mn=At[We];return mn===r?void 0:mn}return Gt.call(At,We)?At[We]:void 0}function Xe(We){var At=this.__data__;return re?At[We]!==void 0:Gt.call(At,We)}function Ht(We,At){var mn=this.__data__;return mn[We]=re&&At===void 0?r:At,this}Ze.prototype.clear=Ve,Ze.prototype.delete=dt,Ze.prototype.get=Vt,Ze.prototype.has=Xe,Ze.prototype.set=Ht;function Qt(We){var At=-1,mn=We?We.length:0;for(this.clear();++At<mn;){var bi=We[At];this.set(bi[0],bi[1])}}function Dt(){this.__data__=[]}function Tt(We){var At=this.__data__,mn=es(At,We);if(mn<0)return!1;var bi=At.length-1;return mn==bi?At.pop():Yn.call(At,mn,1),!0}function en(We){var At=this.__data__,mn=es(At,We);return mn<0?void 0:At[mn][1]}function Bt(We){return es(this.__data__,We)>-1}function Ue(We,At){var mn=this.__data__,bi=es(mn,We);return bi<0?mn.push([We,At]):mn[bi][1]=At,this}Qt.prototype.clear=Dt,Qt.prototype.delete=Tt,Qt.prototype.get=en,Qt.prototype.has=Bt,Qt.prototype.set=Ue;function Lt(We){var At=-1,mn=We?We.length:0;for(this.clear();++At<mn;){var bi=We[At];this.set(bi[0],bi[1])}}function at(){this.__data__={hash:new Ze,map:new(ke||Qt),string:new Ze}}function cn(We){return kc(this,We).delete(We)}function Bn(We){return kc(this,We).get(We)}function Tn(We){return kc(this,We).has(We)}function xi(We,At){return kc(this,We).set(We,At),this}Lt.prototype.clear=at,Lt.prototype.delete=cn,Lt.prototype.get=Bn,Lt.prototype.has=Tn,Lt.prototype.set=xi;function Zi(We){var At=-1,mn=We?We.length:0;for(this.__data__=new Lt;++At<mn;)this.add(We[At])}function dn(We){return this.__data__.set(We,r),this}function fi(We){return this.__data__.has(We)}Zi.prototype.add=Zi.prototype.push=dn,Zi.prototype.has=fi;function Fr(We){this.__data__=new Qt(We)}function Wo(){this.__data__=new Qt}function Mo(We){return this.__data__.delete(We)}function Us(We){return this.__data__.get(We)}function nl(We){return this.__data__.has(We)}function Ai(We,At){var mn=this.__data__;if(mn instanceof Qt){var bi=mn.__data__;if(!ke||bi.length<n-1)return bi.push([We,At]),this;mn=this.__data__=new Lt(bi)}return mn.set(We,At),this}Fr.prototype.clear=Wo,Fr.prototype.delete=Mo,Fr.prototype.get=Us,Fr.prototype.has=nl,Fr.prototype.set=Ai;function dr(We,At){var mn=Gn(We)||xr(We)?ze(We.length,String):[],bi=mn.length,Dr=!!bi;for(var Xi in We)Gt.call(We,Xi)&&!(Dr&&(Xi=="length"||$c(Xi,bi)))&&mn.push(Xi);return mn}function es(We,At){for(var mn=We.length;mn--;)if(yi(We[mn][0],At))return mn;return-1}function ds(We,At,mn,bi){return Jr(We,function(Dr,Xi,Br){At(bi,Dr,mn(Dr),Br)}),bi}var Jr=Sm(Dc),Xu=io();function Dc(We,At){return We&&Xu(We,At,Mi)}function Ju(We,At){At=Lc(At,We)?[At]:Sf(At);for(var mn=0,bi=At.length;We!=null&&mn<bi;)We=We[kt(At[mn++])];return mn&&mn==bi?We:void 0}function ed(We){return Kt.call(We)}function pa(We,At){return We!=null&&At in Object(We)}function il(We,At,mn,bi,Dr){return We===At?!0:We==null||At==null||!hs(We)&&!du(At)?We!==We&&At!==At:td(We,At,il,mn,bi,Dr)}function td(We,At,mn,bi,Dr,Xi){var Br=Gn(We),_a=Gn(At),fs=c,hl=c;Br||(fs=Eu(We),fs=fs==l?v:fs),_a||(hl=Eu(At),hl=hl==l?v:hl);var Ol=fs==v&&!ft(We),Yl=hl==v&&!ft(At),Du=fs==hl;if(Du&&!Ol)return Xi||(Xi=new Fr),Br||Qd(We)?Ml(We,At,mn,bi,Dr,Xi):Rp(We,At,fs,mn,bi,Dr,Xi);if(!(Dr&s)){var Nc=Ol&&Gt.call(We,"__wrapped__"),id=Yl&&Gt.call(At,"__wrapped__");if(Nc||id){var Xf=Nc?We.value():We,Lg=id?At.value():At;return Xi||(Xi=new Fr),mn(Xf,Lg,bi,Dr,Xi)}}return Du?(Xi||(Xi=new Fr),xf(We,At,mn,bi,Dr,Xi)):!1}function lc(We,At,mn,bi){var Dr=mn.length,Xi=Dr;if(We==null)return!Xi;for(We=Object(We);Dr--;){var Br=mn[Dr];if(Br[2]?Br[1]!==We[Br[0]]:!(Br[0]in We))return!1}for(;++Dr<Xi;){Br=mn[Dr];var _a=Br[0],fs=We[_a],hl=Br[1];if(Br[2]){if(fs===void 0&&!(_a in We))return!1}else{var Ol=new Fr,Yl;if(!(Yl===void 0?il(hl,fs,bi,o|s,Ol):Yl))return!1}}return!0}function Cf(We){if(!hs(We)||cc(We))return!1;var At=ts(We)||ft(We)?ln:K;return At.test(Oe(We))}function Tc(We){return du(We)&&dl(We.length)&&!!ce[Kt.call(We)]}function Ig(We){return typeof We=="function"?We:We==null?Fo:typeof We=="object"?Gn(We)?Mp(We[0],We[1]):ju(We):Vr(We)}function Bu(We){if(!Au(We))return di(We);var At=[];for(var mn in Object(We))Gt.call(We,mn)&&mn!="constructor"&&At.push(mn);return At}function ju(We){var At=nd(We);return At.length==1&&At[0][2]?Ke(At[0][0],At[0][1]):function(mn){return mn===We||lc(mn,We,At)}}function Mp(We,At){return Lc(We)&&xe(At)?Ke(kt(We),At):function(mn){var bi=zt(mn,We);return bi===void 0&&bi===At?Kn(mn,We):il(At,bi,void 0,o|s)}}function Op(We){return function(At){return Ju(At,We)}}function xd(We){if(typeof We=="string")return We;if(Zf(We))return Fe?Fe.call(We):"";var At=We+"";return At=="0"&&1/We==-1/0?"-0":At}function Sf(We){return Gn(We)?We:nt(We)}function Mh(We,At){return function(mn,bi){var Dr=Gn(mn)?he:ds,Xi={};return Dr(mn,We,Ig(bi),Xi)}}function Sm(We,At){return function(mn,bi){if(mn==null)return mn;if(!Go(mn))return We(mn,bi);for(var Dr=mn.length,Xi=-1,Br=Object(mn);++Xi<Dr&&bi(Br[Xi],Xi,Br)!==!1;);return mn}}function io(We){return function(At,mn,bi){for(var Dr=-1,Xi=Object(At),Br=bi(At),_a=Br.length;_a--;){var fs=Br[++Dr];if(mn(Xi[fs],fs,Xi)===!1)break}return At}}function Ml(We,At,mn,bi,Dr,Xi){var Br=Dr&s,_a=We.length,fs=At.length;if(_a!=fs&&!(Br&&fs>_a))return!1;var hl=Xi.get(We);if(hl&&Xi.get(At))return hl==At;var Ol=-1,Yl=!0,Du=Dr&o?new Zi:void 0;for(Xi.set(We,At),Xi.set(At,We);++Ol<_a;){var Nc=We[Ol],id=At[Ol];if(bi)var Xf=Br?bi(id,Nc,Ol,At,We,Xi):bi(Nc,id,Ol,We,At,Xi);if(Xf!==void 0){if(Xf)continue;Yl=!1;break}if(Du){if(!Ie(At,function(Lg,Ng){if(!Du.has(Ng)&&(Nc===Lg||mn(Nc,Lg,bi,Dr,Xi)))return Du.add(Ng)})){Yl=!1;break}}else if(!(Nc===id||mn(Nc,id,bi,Dr,Xi))){Yl=!1;break}}return Xi.delete(We),Xi.delete(At),Yl}function Rp(We,At,mn,bi,Dr,Xi,Br){switch(mn){case M:if(We.byteLength!=At.byteLength||We.byteOffset!=At.byteOffset)return!1;We=We.buffer,At=At.buffer;case T:return!(We.byteLength!=At.byteLength||!bi(new wn(We),new wn(At)));case u:case d:case m:return yi(+We,+At);case h:return We.name==At.name&&We.message==At.message;case b:case E:return We==At+"";case g:var _a=ct;case w:var fs=Xi&s;if(_a||(_a=ut),We.size!=At.size&&!fs)return!1;var hl=Br.get(We);if(hl)return hl==At;Xi|=o,Br.set(We,At);var Ol=Ml(_a(We),_a(At),bi,Dr,Xi,Br);return Br.delete(We),Ol;case A:if(be)return be.call(We)==be.call(At)}return!1}function xf(We,At,mn,bi,Dr,Xi){var Br=Dr&s,_a=Mi(We),fs=_a.length,hl=Mi(At),Ol=hl.length;if(fs!=Ol&&!Br)return!1;for(var Yl=fs;Yl--;){var Du=_a[Yl];if(!(Br?Du in At:Gt.call(At,Du)))return!1}var Nc=Xi.get(We);if(Nc&&Xi.get(At))return Nc==At;var id=!0;Xi.set(We,At),Xi.set(At,We);for(var Xf=Br;++Yl<fs;){Du=_a[Yl];var Lg=We[Du],Ng=At[Du];if(bi)var Ob=Br?bi(Ng,Lg,Du,At,We,Xi):bi(Lg,Ng,Du,We,At,Xi);if(!(Ob===void 0?Lg===Ng||mn(Lg,Ng,bi,Dr,Xi):Ob)){id=!1;break}Xf||(Xf=Du=="constructor")}if(id&&!Xf){var Rb=We.constructor,Fb=At.constructor;Rb!=Fb&&"constructor"in We&&"constructor"in At&&!(typeof Rb=="function"&&Rb instanceof Rb&&typeof Fb=="function"&&Fb instanceof Fb)&&(id=!1)}return Xi.delete(We),Xi.delete(At),id}function kc(We,At){var mn=We.__data__;return Ef(At)?mn[typeof At=="string"?"string":"hash"]:mn.map}function nd(We){for(var At=Mi(We),mn=At.length;mn--;){var bi=At[mn],Dr=We[bi];At[mn]=[bi,Dr,xe(Dr)]}return At}function Ic(We,At){var mn=it(We,At);return Cf(mn)?mn:void 0}var Eu=ed;(Li&&Eu(new Li(new ArrayBuffer(1)))!=M||ke&&Eu(new ke)!=g||Z&&Eu(Z.resolve())!=y||ne&&Eu(new ne)!=w||V&&Eu(new V)!=D)&&(Eu=function(We){var At=Kt.call(We),mn=At==v?We.constructor:void 0,bi=mn?Oe(mn):void 0;if(bi)switch(bi){case ge:return M;case we:return g;case ve:return y;case _e:return w;case Ee:return D}return At});function Ed(We,At,mn){At=Lc(At,We)?[At]:Sf(At);for(var bi,Dr=-1,Br=At.length;++Dr<Br;){var Xi=kt(At[Dr]);if(!(bi=We!=null&&mn(We,Xi)))break;We=We[Xi]}if(bi)return bi;var Br=We?We.length:0;return!!Br&&dl(Br)&&$c(Xi,Br)&&(Gn(We)||xr(We))}function $c(We,At){return At=At??a,!!At&&(typeof We=="number"||ie.test(We))&&We>-1&&We%1==0&&We<At}function Lc(We,At){if(Gn(We))return!1;var mn=typeof We;return mn=="number"||mn=="symbol"||mn=="boolean"||We==null||Zf(We)?!0:le.test(We)||!q.test(We)||At!=null&&We in Object(At)}function Ef(We){var At=typeof We;return At=="string"||At=="number"||At=="symbol"||At=="boolean"?We!=="__proto__":We===null}function cc(We){return!!Yt&&Yt in We}function Au(We){var At=We&&We.constructor,mn=typeof At=="function"&&At.prototype||_t;return We===mn}function xe(We){return We===We&&!hs(We)}function Ke(We,At){return function(mn){return mn==null?!1:mn[We]===At&&(At!==void 0||We in Object(mn))}}var nt=$t(function(We){We=Je(We);var At=[];return Y.test(We)&&At.push(""),We.replace(G,function(mn,bi,Dr,Xi){At.push(Dr?Xi.replace(U,"$1"):bi||mn)}),At});function kt(We){if(typeof We=="string"||Zf(We))return We;var At=We+"";return At=="0"&&1/We==-1/0?"-0":At}function Oe(We){if(We!=null){try{return Ut.call(We)}catch{}try{return We+""}catch{}}return""}var st=Mh(function(We,At,mn){Gt.call(We,mn)?++We[mn]:We[mn]=1});function $t(We,At){if(typeof We!="function"||At&&typeof At!="function")throw new TypeError(i);var mn=function(){var bi=arguments,Dr=At?At.apply(this,bi):bi[0],Xi=mn.cache;if(Xi.has(Dr))return Xi.get(Dr);var Br=We.apply(this,bi);return mn.cache=Xi.set(Dr,Br),Br};return mn.cache=new($t.Cache||Lt),mn}$t.Cache=Lt;function yi(We,At){return We===At||We!==We&&At!==At}function xr(We){return ro(We)&&Gt.call(We,"callee")&&(!Mn.call(We,"callee")||Kt.call(We)==l)}var Gn=Array.isArray;function Go(We){return We!=null&&dl(We.length)&&!ts(We)}function ro(We){return du(We)&&Go(We)}function ts(We){var At=hs(We)?Kt.call(We):"";return At==f||At==p}function dl(We){return typeof We=="number"&&We>-1&&We%1==0&&We<=a}function hs(We){var At=typeof We;return!!We&&(At=="object"||At=="function")}function du(We){return!!We&&typeof We=="object"}function Zf(We){return typeof We=="symbol"||du(We)&&Kt.call(We)==A}var Qd=$?Ye($):Tc;function Je(We){return We==null?"":xd(We)}function zt(We,At,mn){var bi=We==null?void 0:Ju(We,At);return bi===void 0?mn:bi}function Kn(We,At){return We!=null&&Ed(We,At,pa)}function Mi(We){return Go(We)?dr(We):Bu(We)}function Fo(We){return We}function Vr(We){return Lc(We)?Be(kt(We)):Op(We)}t.exports=st}}),da=Ot({"../node_modules/.pnpm/react-compiler-runtime@19.1.0-rc.1_react@19.2.4/node_modules/react-compiler-runtime/dist/index.js"(e,t){"use no memo";var n=Object.create,i=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,l=(le,Y)=>{for(var G in Y)i(le,G,{get:Y[G],enumerable:!0})},c=(le,Y,G,pe)=>{if(Y&&typeof Y=="object"||typeof Y=="function")for(let U of o(Y))!a.call(le,U)&&U!==G&&i(le,U,{get:()=>Y[U],enumerable:!(pe=r(Y,U))||pe.enumerable});return le},u=(le,Y,G)=>(G=le!=null?n(s(le)):{},c(!le||!le.__esModule?i(G,"default",{value:le,enumerable:!0}):G,le)),d=le=>c(i({},"__esModule",{value:!0}),le),h={};l(h,{$dispatcherGuard:()=>P,$makeReadOnly:()=>N,$reset:()=>F,$structuralCheck:()=>q,c:()=>E,clearRenderCounterRegistry:()=>W,renderCounterRegistry:()=>j,useRenderCounter:()=>Q}),t.exports=d(h);var f=u(aVe("react")),{useRef:p,useEffect:g,isValidElement:m}=f,v,y=(v=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)!=null?v:f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.memo_cache_sentinel"),w,E=typeof((w=f.__COMPILER_RUNTIME)==null?void 0:w.c)=="function"?f.__COMPILER_RUNTIME.c:function(Y){return f.useMemo(()=>{const G=new Array(Y);for(let pe=0;pe<Y;pe++)G[pe]=b;return G[b]=!0,G},[])},A={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(le=>{A[le]=()=>{throw new Error(`[React] Unexpected React hook call (${le}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var D=null;A.useMemoCache=le=>{if(D==null)throw new Error("React Compiler internal invariant violation: unexpected null dispatcher");return D.useMemoCache(le)};function T(le){return y.ReactCurrentDispatcher.current=le,y.ReactCurrentDispatcher.current}var M=[];function P(le){const Y=y.ReactCurrentDispatcher.current;if(le===0){if(M.push(Y),M.length===1&&(D=Y),Y===A)throw new Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");T(A)}else if(le===1){const G=M.pop();if(G==null)throw new Error("React Compiler internal error: unexpected null in guard stack");M.length===0&&(D=null),T(G)}else if(le===2)M.push(Y),T(D);else if(le===3){const G=M.pop();if(G==null)throw new Error("React Compiler internal error: unexpected null in guard stack");T(G)}else throw new Error("React Compiler internal error: unreachable block"+le)}function F(le){for(let Y=0;Y<le.length;Y++)le[Y]=b}function N(){throw new Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var j=new Map;function W(){for(const le of j.values())le.forEach(Y=>{Y.count=0})}function J(le,Y){let G=j.get(le);G==null&&(G=new Set,j.set(le,G)),G.add(Y)}function ee(le,Y){const G=j.get(le);G?.delete(Y)}function Q(le){const Y=p(null);Y.current!=null&&(Y.current.count+=1),g(()=>{if(Y.current==null){const G={count:0};J(le,G),Y.current=G}return()=>{Y.current!==null&&ee(le,Y.current)}})}var H=new Set;function q(le,Y,G,pe,U,K){function ie(oe,me,Ce,Se){const De=`${pe}:${K} [${U}] ${G}${Ce} changed from ${oe} to ${me} at depth ${Se}`;H.has(De)||(H.add(De),console.error(De))}const ce=2;function de(oe,me,Ce,Se){if(!(Se>ce)){if(oe===me)return;if(typeof oe!=typeof me)ie(`type ${typeof oe}`,`type ${typeof me}`,Ce,Se);else if(typeof oe=="object"){const De=Array.isArray(oe),Me=Array.isArray(me);if(oe===null&&me!==null)ie("null",`type ${typeof me}`,Ce,Se);else if(me===null)ie(`type ${typeof oe}`,"null",Ce,Se);else if(oe instanceof Map)if(!(me instanceof Map))ie("Map instance","other value",Ce,Se);else if(oe.size!==me.size)ie(`Map instance with size ${oe.size}`,`Map instance with size ${me.size}`,Ce,Se);else for(const[qe,$]of oe)me.has(qe)?de($,me.get(qe),`${Ce}.get(${qe})`,Se+1):ie(`Map instance with key ${qe}`,`Map instance without key ${qe}`,Ce,Se);else if(me instanceof Map)ie("other value","Map instance",Ce,Se);else if(oe instanceof Set)if(!(me instanceof Set))ie("Set instance","other value",Ce,Se);else if(oe.size!==me.size)ie(`Set instance with size ${oe.size}`,`Set instance with size ${me.size}`,Ce,Se);else for(const qe of me)oe.has(qe)||ie(`Set instance without element ${qe}`,`Set instance with element ${qe}`,Ce,Se);else if(me instanceof Set)ie("other value","Set instance",Ce,Se);else if(De||Me)if(De!==Me)ie(`type ${De?"array":"object"}`,`type ${Me?"array":"object"}`,Ce,Se);else if(oe.length!==me.length)ie(`array with length ${oe.length}`,`array with length ${me.length}`,Ce,Se);else for(let qe=0;qe<oe.length;qe++)de(oe[qe],me[qe],`${Ce}[${qe}]`,Se+1);else if(m(oe)||m(me))m(oe)!==m(me)?ie(`type ${m(oe)?"React element":"object"}`,`type ${m(me)?"React element":"object"}`,Ce,Se):oe.type!==me.type?ie(`React element of type ${oe.type}`,`React element of type ${me.type}`,Ce,Se):de(oe.props,me.props,`[props of ${Ce}]`,Se+1);else{for(const qe in me)qe in oe||ie(`object without key ${qe}`,`object with key ${qe}`,Ce,Se);for(const qe in oe)qe in me?de(oe[qe],me[qe],`${Ce}.${qe}`,Se+1):ie(`object with key ${qe}`,`object without key ${qe}`,Ce,Se)}}else{if(typeof oe=="function")return;isNaN(oe)||isNaN(me)?isNaN(oe)!==isNaN(me)&&ie(`${isNaN(oe)?"NaN":"non-NaN value"}`,`${isNaN(me)?"NaN":"non-NaN value"}`,Ce,Se):oe!==me&&ie(oe,me,Ce,Se)}}}de(le,Y,"",0)}}});function Mr(e){bb(e)||bVe.onUnexpectedError(e)}function Sc(e){bb(e)||bVe.onUnexpectedExternalError(e)}function pit(e){if(e instanceof Error){const{name:t,message:n}=e,i=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:i,noTelemetry:yoe.isErrorNoTelemetry(e)}}return e}function bb(e){return e instanceof rb?!0:e instanceof Error&&e.name===yq&&e.message===yq}function x2n(){const e=new Error(yq);return e.name=e.message,e}function Gy(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function yVe(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}var git,bVe,yq,rb,n7t,yoe,ys,Vi=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/errors.js"(){git=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?yoe.isErrorNoTelemetry(e)?new yoe(e.message+`

`+e.stack):new Error(e.message+`

`+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}},bVe=new git,yq="Canceled",rb=class extends Error{constructor(){super(yq),this.name=this.message}},n7t=class extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}},yoe=class ERe extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof ERe)return t;const n=new ERe;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},ys=class i7t extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,i7t.prototype)}}}});function vL(e,t){const n=this;let i=!1,r;return function(){return i||(i=!0,r=e.apply(n,arguments)),r}}var U2=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/functional.js"(){}}),Vo,bg=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/iterator.js"(){(function(e){function t(w){return w&&typeof w=="object"&&typeof w[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function i(){return n}e.empty=i;function*r(w){yield w}e.single=r;function o(w){return t(w)?w:r(w)}e.wrap=o;function s(w){return w||n}e.from=s;function*a(w){for(let E=w.length-1;E>=0;E--)yield w[E]}e.reverse=a;function l(w){return!w||w[Symbol.iterator]().next().done===!0}e.isEmpty=l;function c(w){return w[Symbol.iterator]().next().value}e.first=c;function u(w,E){let A=0;for(const D of w)if(E(D,A++))return!0;return!1}e.some=u;function d(w,E){for(const A of w)if(E(A))return A}e.find=d;function*h(w,E){for(const A of w)E(A)&&(yield A)}e.filter=h;function*f(w,E){let A=0;for(const D of w)yield E(D,A++)}e.map=f;function*p(w,E){let A=0;for(const D of w)yield*E(D,A++)}e.flatMap=p;function*g(...w){for(const E of w)yield*E}e.concat=g;function m(w,E,A){let D=A;for(const T of w)D=E(D,T);return D}e.reduce=m;function*v(w,E,A=w.length){for(E<0&&(E+=w.length),A<0?A+=w.length:A>w.length&&(A=w.length);E<A;E++)yield w[E]}e.slice=v;function y(w,E=Number.POSITIVE_INFINITY){const A=[];if(E===0)return[A,w];const D=w[Symbol.iterator]();for(let T=0;T<E;T++){const M=D.next();if(M.done)return[A,e.empty()];A.push(M.value)}return[A,{[Symbol.iterator](){return D}}]}e.consume=y;async function b(w){const E=[];for await(const A of w)E.push(A);return Promise.resolve(E)}e.asyncToArray=b})(Vo||(Vo={}))}});function E2n(e){yL=e}function JB(e){return yL?.trackDisposable(e),e}function e6(e){yL?.markAsDisposed(e)}function TX(e,t){yL?.setParent(e,t)}function A2n(e,t){if(yL)for(const n of e)yL.setParent(n,t)}function bq(e){return yL?.markAsSingleton(e),e}function dpe(e){return typeof e=="object"&&e!==null&&typeof e.dispose=="function"&&e.dispose.length===0}function xa(e){if(Vo.is(e)){const t=[];for(const n of e)if(n)try{n.dispose()}catch(i){t.push(i)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function z_(...e){const t=zi(()=>xa(e));return A2n(e,t),t}function zi(e){const t=JB({dispose:vL(()=>{e6(t),e()})});return t}var mit,yL,Jt,St,Yu,r7t,o7t,hpe,Nt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"(){var e,t;if(U2(),bg(),mit=!1,yL=null,mit){const n="__is_disposable_tracked__";E2n(new class{trackDisposable(i){const r=new Error("Potentially leaked disposable").stack;setTimeout(()=>{i[n]||console.log(r)},3e3)}setParent(i,r){if(i&&i!==St.None)try{i[n]=!0}catch{}}markAsDisposed(i){if(i&&i!==St.None)try{i[n]=!0}catch{}}markAsSingleton(i){}})}Jt=(e=class{constructor(){this._toDispose=new Set,this._isDisposed=!1,JB(this)}dispose(){this._isDisposed||(e6(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{xa(this._toDispose)}finally{this._toDispose.clear()}}add(i){if(!i)return i;if(i===this)throw new Error("Cannot register a disposable on itself!");return TX(i,this),this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(i),i}deleteAndLeak(i){i&&this._toDispose.has(i)&&(this._toDispose.delete(i),TX(i,null))}},e.DISABLE_DISPOSED_WARNING=!1,e),St=(t=class{constructor(){this._store=new Jt,JB(this),TX(this._store,this)}dispose(){e6(this),this._store.dispose()}_register(i){if(i===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(i)}},t.None=Object.freeze({dispose(){}}),t),Yu=class{constructor(){this._isDisposed=!1,JB(this)}get value(){return this._isDisposed?void 0:this._value}set value(n){this._isDisposed||n===this._value||(this._value?.dispose(),n&&TX(n,this),this._value=n)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,e6(this),this._value?.dispose(),this._value=void 0}},r7t=class{constructor(n){this._disposable=n,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}},o7t=class{constructor(n){this.object=n}dispose(){}},hpe=class{constructor(){this._store=new Map,this._isDisposed=!1,JB(this)}dispose(){e6(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{xa(this._store.values())}finally{this._store.clear()}}get(n){return this._store.get(n)}set(n,i,r=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),r||this._store.get(n)?.dispose(),this._store.set(n,i)}deleteAndDispose(n){this._store.get(n)?.dispose(),this._store.delete(n)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}}}),Hu,yp,_b=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/linkedList.js"(){var e;Hu=(e=class{constructor(n){this.element=n,this.next=e.Undefined,this.prev=e.Undefined}},e.Undefined=new e(void 0),e),yp=class{constructor(){this._first=Hu.Undefined,this._last=Hu.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Hu.Undefined}clear(){let t=this._first;for(;t!==Hu.Undefined;){const n=t.next;t.prev=Hu.Undefined,t.next=Hu.Undefined,t=n}this._first=Hu.Undefined,this._last=Hu.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){const i=new Hu(t);if(this._first===Hu.Undefined)this._first=i,this._last=i;else if(n){const o=this._last;this._last=i,i.prev=o,o.next=i}else{const o=this._first;this._first=i,i.next=o,o.prev=i}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(i))}}shift(){if(this._first!==Hu.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==Hu.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==Hu.Undefined&&t.next!==Hu.Undefined){const n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===Hu.Undefined&&t.next===Hu.Undefined?(this._first=Hu.Undefined,this._last=Hu.Undefined):t.next===Hu.Undefined?(this._last=this._last.prev,this._last.next=Hu.Undefined):t.prev===Hu.Undefined&&(this._first=this._first.next,this._first.prev=Hu.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==Hu.Undefined;)yield t.element,t=t.next}}}}),vit,Ah,_g=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/stopwatch.js"(){vit=globalThis.performance&&typeof globalThis.performance.now=="function",Ah=class s7t{static create(t){return new s7t(t)}constructor(t){this._now=vit&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}}}),yit,P_e,bit,On,_it,M_e,wit,kX,Cit,Sit,wz,xit,Eit,IX,bt,a7t,O_e,bL,_Ve,l7t,c7t,p7,ARe,Un=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/event.js"(){var e,t;if(Vi(),U2(),Nt(),_b(),_g(),yit=!1,P_e=!1,bit=!1,(function(n){n.None=()=>St.None;function i(ee){if(bit){const{onDidAddListener:Q}=ee,H=kX.create();let q=0;ee.onDidAddListener=()=>{++q===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),H.print()),Q?.()}}}function r(ee,Q){return g(ee,()=>{},0,void 0,!0,void 0,Q)}n.defer=r;function o(ee){return(Q,H=null,q)=>{let le=!1,Y;return Y=ee(G=>{if(!le)return Y?Y.dispose():le=!0,Q.call(H,G)},null,q),le&&Y.dispose(),Y}}n.once=o;function s(ee,Q){return n.once(n.filter(ee,Q))}n.onceIf=s;function a(ee,Q,H){return f((q,le=null,Y)=>ee(G=>q.call(le,Q(G)),null,Y),H)}n.map=a;function l(ee,Q,H){return f((q,le=null,Y)=>ee(G=>{Q(G),q.call(le,G)},null,Y),H)}n.forEach=l;function c(ee,Q,H){return f((q,le=null,Y)=>ee(G=>Q(G)&&q.call(le,G),null,Y),H)}n.filter=c;function u(ee){return ee}n.signal=u;function d(...ee){return(Q,H=null,q)=>{const le=z_(...ee.map(Y=>Y(G=>Q.call(H,G))));return p(le,q)}}n.any=d;function h(ee,Q,H,q){let le=H;return a(ee,Y=>(le=Q(le,Y),le),q)}n.reduce=h;function f(ee,Q){let H;const q={onWillAddFirstListener(){H=ee(le.fire,le)},onDidRemoveLastListener(){H?.dispose()}};Q||i(q);const le=new bt(q);return Q?.add(le),le.event}function p(ee,Q){return Q instanceof Array?Q.push(ee):Q&&Q.add(ee),ee}function g(ee,Q,H=100,q=!1,le=!1,Y,G){let pe,U,K,ie=0,ce;const de={leakWarningThreshold:Y,onWillAddFirstListener(){pe=ee(me=>{ie++,U=Q(U,me),q&&!K&&(oe.fire(U),U=void 0),ce=()=>{const Ce=U;U=void 0,K=void 0,(!q||ie>1)&&oe.fire(Ce),ie=0},typeof H=="number"?(clearTimeout(K),K=setTimeout(ce,H)):K===void 0&&(K=0,queueMicrotask(ce))})},onWillRemoveListener(){le&&ie>0&&ce?.()},onDidRemoveLastListener(){ce=void 0,pe.dispose()}};G||i(de);const oe=new bt(de);return G?.add(oe),oe.event}n.debounce=g;function m(ee,Q=0,H){return n.debounce(ee,(q,le)=>q?(q.push(le),q):[le],Q,void 0,!0,void 0,H)}n.accumulate=m;function v(ee,Q=(q,le)=>q===le,H){let q=!0,le;return c(ee,Y=>{const G=q||!Q(Y,le);return q=!1,le=Y,G},H)}n.latch=v;function y(ee,Q,H){return[n.filter(ee,Q,H),n.filter(ee,q=>!Q(q),H)]}n.split=y;function b(ee,Q=!1,H=[],q){let le=H.slice(),Y=ee(U=>{le?le.push(U):pe.fire(U)});q&&q.add(Y);const G=()=>{le?.forEach(U=>pe.fire(U)),le=null},pe=new bt({onWillAddFirstListener(){Y||(Y=ee(U=>pe.fire(U)),q&&q.add(Y))},onDidAddFirstListener(){le&&(Q?setTimeout(G):G())},onDidRemoveLastListener(){Y&&Y.dispose(),Y=null}});return q&&q.add(pe),pe.event}n.buffer=b;function w(ee,Q){return(q,le,Y)=>{const G=Q(new A);return ee(function(pe){const U=G.evaluate(pe);U!==E&&q.call(le,U)},void 0,Y)}}n.chain=w;const E=Symbol("HaltChainable");class A{constructor(){this.steps=[]}map(Q){return this.steps.push(Q),this}forEach(Q){return this.steps.push(H=>(Q(H),H)),this}filter(Q){return this.steps.push(H=>Q(H)?H:E),this}reduce(Q,H){let q=H;return this.steps.push(le=>(q=Q(q,le),q)),this}latch(Q=(H,q)=>H===q){let H=!0,q;return this.steps.push(le=>{const Y=H||!Q(le,q);return H=!1,q=le,Y?le:E}),this}evaluate(Q){for(const H of this.steps)if(Q=H(Q),Q===E)break;return Q}}function D(ee,Q,H=q=>q){const q=(...pe)=>G.fire(H(...pe)),le=()=>ee.on(Q,q),Y=()=>ee.removeListener(Q,q),G=new bt({onWillAddFirstListener:le,onDidRemoveLastListener:Y});return G.event}n.fromNodeEventEmitter=D;function T(ee,Q,H=q=>q){const q=(...pe)=>G.fire(H(...pe)),le=()=>ee.addEventListener(Q,q),Y=()=>ee.removeEventListener(Q,q),G=new bt({onWillAddFirstListener:le,onDidRemoveLastListener:Y});return G.event}n.fromDOMEventEmitter=T;function M(ee){return new Promise(Q=>o(ee)(Q))}n.toPromise=M;function P(ee){const Q=new bt;return ee.then(H=>{Q.fire(H)},()=>{Q.fire(void 0)}).finally(()=>{Q.dispose()}),Q.event}n.fromPromise=P;function F(ee,Q){return ee(H=>Q.fire(H))}n.forward=F;function N(ee,Q,H){return Q(H),ee(q=>Q(q))}n.runAndSubscribe=N;class j{constructor(Q,H){this._observable=Q,this._counter=0,this._hasChanged=!1;const q={onWillAddFirstListener:()=>{Q.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{Q.removeObserver(this)}};H||i(q),this.emitter=new bt(q),H&&H.add(this.emitter)}beginUpdate(Q){this._counter++}handlePossibleChange(Q){}handleChange(Q,H){this._hasChanged=!0}endUpdate(Q){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function W(ee,Q){return new j(ee,Q).emitter.event}n.fromObservable=W;function J(ee){return(Q,H,q)=>{let le=0,Y=!1;const G={beginUpdate(){le++},endUpdate(){le--,le===0&&(ee.reportChanges(),Y&&(Y=!1,Q.call(H)))},handlePossibleChange(){},handleChange(){Y=!0}};ee.addObserver(G),ee.reportChanges();const pe={dispose(){ee.removeObserver(G)}};return q instanceof Jt?q.add(pe):Array.isArray(q)&&q.push(pe),pe}}n.fromObservableLight=J})(On||(On={})),_it=(e=class{constructor(i){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${i}_${e._idPool++}`,e.all.add(this)}start(i){this._stopWatch=new Ah,this.listenerCount=i}stop(){if(this._stopWatch){const i=this._stopWatch.elapsed();this.durations.push(i),this.elapsedOverall+=i,this.invocationCount+=1,this._stopWatch=void 0}}},e.all=new Set,e._idPool=0,e),M_e=-1,wit=(t=class{constructor(i,r,o=(t._idPool++).toString(16).padStart(3,"0")){this._errorHandler=i,this.threshold=r,this.name=o,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(i,r){const o=this.threshold;if(o<=0||r<o)return;this._stacks||(this._stacks=new Map);const s=this._stacks.get(i.value)||0;if(this._stacks.set(i.value,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=o*.5;const[a,l]=this.getMostFrequentStack(),c=`[${this.name}] potential listener LEAK detected, having ${r} listeners already. MOST frequent listener (${l}):`;console.warn(c),console.warn(a);const u=new Cit(c,a);this._errorHandler(u)}return()=>{const a=this._stacks.get(i.value)||0;this._stacks.set(i.value,a-1)}}getMostFrequentStack(){if(!this._stacks)return;let i,r=0;for(const[o,s]of this._stacks)(!i||r<s)&&(i=[o,s],r=s);return i}},t._idPool=1,t),kX=class u7t{static create(){const i=new Error;return new u7t(i.stack??"")}constructor(i){this.value=i}print(){console.warn(this.value.split(`
`).slice(2).join(`
`))}},Cit=class extends Error{constructor(n,i){super(n),this.name="ListenerLeakError",this.stack=i}},Sit=class extends Error{constructor(n,i){super(n),this.name="ListenerRefusalError",this.stack=i}},wz=class{constructor(n){this.value=n}},xit=2,Eit=(n,i)=>{if(n instanceof wz)i(n);else for(let r=0;r<n.length;r++){const o=n[r];o&&i(o)}},yit){const n=[];setInterval(()=>{n.length!==0&&(console.warn("[LEAKING LISTENERS] GC'ed these listeners that were NOT yet disposed:"),console.warn(n.join(`
`)),n.length=0)},3e3),IX=new FinalizationRegistry(i=>{typeof i=="string"&&n.push(i)})}bt=class{constructor(n){this._size=0,this._options=n,this._leakageMon=M_e>0||this._options?.leakWarningThreshold?new wit(n?.onListenerError??Mr,this._options?.leakWarningThreshold??M_e):void 0,this._perfMon=this._options?._profName?new _it(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){if(!this._disposed){if(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners){if(P_e){const n=this._listeners;queueMicrotask(()=>{Eit(n,i=>i.stack?.print())})}this._listeners=void 0,this._size=0}this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose()}}get event(){return this._event??=(n,i,r)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const l=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(l);const c=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],u=new Sit(`${l}. HINT: Stack shows most frequent listener (${c[1]}-times)`,c[0]);return(this._options?.onListenerError||Mr)(u),St.None}if(this._disposed)return St.None;i&&(n=n.bind(i));const o=new wz(n);let s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(o.stack=kX.create(),s=this._leakageMon.check(o.stack,this._size+1)),P_e&&(o.stack=kX.create()),this._listeners?this._listeners instanceof wz?(this._deliveryQueue??=new O_e,this._listeners=[this._listeners,o]):this._listeners.push(o):(this._options?.onWillAddFirstListener?.(this),this._listeners=o,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=zi(()=>{IX?.unregister(a),s?.(),this._removeListener(o)});if(r instanceof Jt?r.add(a):Array.isArray(r)&&r.push(a),IX){const l=new Error().stack.split(`
`).slice(2,3).join(`
`).trim(),c=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(l);IX.register(a,c?.[2]??l,a)}return a},this._event}_removeListener(n){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}const i=this._listeners,r=i.indexOf(n);if(r===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,i[r]=void 0;const o=this._deliveryQueue.current===this;if(this._size*xit<=i.length){let s=0;for(let a=0;a<i.length;a++)i[a]?i[s++]=i[a]:o&&(this._deliveryQueue.end--,s<this._deliveryQueue.i&&this._deliveryQueue.i--);i.length=s}}_deliver(n,i){if(!n)return;const r=this._options?.onListenerError||Mr;if(!r){n.value(i);return}try{n.value(i)}catch(o){r(o)}}_deliverQueue(n){const i=n.current._listeners;for(;n.i<n.end;)this._deliver(i[n.i++],n.value);n.reset()}fire(n){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof wz)this._deliver(this._listeners,n);else{const i=this._deliveryQueue;i.enqueue(this,n,this._listeners.length),this._deliverQueue(i)}this._perfMon?.stop()}hasListeners(){return this._size>0}},a7t=()=>new O_e,O_e=class{constructor(){this.i=-1,this.end=0}enqueue(n,i,r){this.i=0,this.end=r,this.current=n,this.value=i}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},bL=class extends bt{constructor(n){super(n),this._isPaused=0,this._eventQueue=new yp,this._mergeFn=n?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const n=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(n))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(n){this._size&&(this._isPaused!==0?this._eventQueue.push(n):super.fire(n))}},_Ve=class extends bL{constructor(n){super(n),this._delay=n.delay??100}fire(n){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(n)}},l7t=class extends bt{constructor(n){super(n),this._queuedEvents=[],this._mergeFn=n?.merge}fire(n){this.hasListeners()&&(this._queuedEvents.push(n),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(i=>super.fire(i)),this._queuedEvents=[]}))}},c7t=class{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new bt({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(n){const i={event:n,listener:null};return this.events.push(i),this.hasListeners&&this.hook(i),zi(vL(()=>{this.hasListeners&&this.unhook(i);const o=this.events.indexOf(i);this.events.splice(o,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(n=>this.hook(n))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(n=>this.unhook(n))}hook(n){n.listener=n.event(i=>this.emitter.fire(i))}unhook(n){n.listener?.dispose(),n.listener=null}dispose(){this.emitter.dispose();for(const n of this.events)n.listener?.dispose();this.events=[]}},p7=class{constructor(){this.data=[]}wrapEvent(n,i,r){return(o,s,a)=>n(l=>{const c=this.data[this.data.length-1];if(!i){c?c.buffers.push(()=>o.call(s,l)):o.call(s,l);return}const u=c;if(!u){o.call(s,i(r,l));return}u.items??=[],u.items.push(l),u.buffers.length===0&&c.buffers.push(()=>{u.reducedResult??=r?u.items.reduce(i,r):u.items.reduce(i),o.call(s,u.reducedResult)})},void 0,a)}bufferEvents(n){const i={buffers:new Array};this.data.push(i);const r=n();return this.data.pop(),i.buffers.forEach(o=>o()),r}},ARe=class{constructor(){this.listening=!1,this.inputEvent=On.None,this.inputEventListener=St.None,this.emitter=new bt({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(n){this.inputEvent=n,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=n(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}}});function DRe(e){const t=new bl;return e.add({dispose(){t.cancel()}}),t.token}var R_e,no,Cz,bl,Ho=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/cancellation.js"(){Un(),R_e=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}),(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof Cz?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:On.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:R_e})})(no||(no={})),Cz=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?R_e:(this._emitter||(this._emitter=new bt),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},bl=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Cz),this._token}cancel(){this._token?this._token instanceof Cz&&this._token.cancel():this._token=no.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof Cz&&this._token.dispose():this._token=no.None}}}});function pu(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}var LX,Sz,NX,PX,TRe,Ait,Dit,Tit,kit,boe,MX,KA,wb=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/keyCodes.js"(){LX=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}},Sz=new LX,NX=new LX,PX=new LX,TRe=new Array(230),Ait={},Dit=[],Tit=Object.create(null),kit=Object.create(null),boe=[],MX=[];for(let e=0;e<=193;e++)boe[e]=-1;for(let e=0;e<=132;e++)MX[e]=-1;(function(){const t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[1,1,"Hyper",0,"",0,"","",""],[1,2,"Super",0,"",0,"","",""],[1,3,"Fn",0,"",0,"","",""],[1,4,"FnLock",0,"",0,"","",""],[1,5,"Suspend",0,"",0,"","",""],[1,6,"Resume",0,"",0,"","",""],[1,7,"Turbo",0,"",0,"","",""],[1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[1,9,"WakeUp",0,"",0,"","",""],[0,10,"KeyA",31,"A",65,"VK_A","",""],[0,11,"KeyB",32,"B",66,"VK_B","",""],[0,12,"KeyC",33,"C",67,"VK_C","",""],[0,13,"KeyD",34,"D",68,"VK_D","",""],[0,14,"KeyE",35,"E",69,"VK_E","",""],[0,15,"KeyF",36,"F",70,"VK_F","",""],[0,16,"KeyG",37,"G",71,"VK_G","",""],[0,17,"KeyH",38,"H",72,"VK_H","",""],[0,18,"KeyI",39,"I",73,"VK_I","",""],[0,19,"KeyJ",40,"J",74,"VK_J","",""],[0,20,"KeyK",41,"K",75,"VK_K","",""],[0,21,"KeyL",42,"L",76,"VK_L","",""],[0,22,"KeyM",43,"M",77,"VK_M","",""],[0,23,"KeyN",44,"N",78,"VK_N","",""],[0,24,"KeyO",45,"O",79,"VK_O","",""],[0,25,"KeyP",46,"P",80,"VK_P","",""],[0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[0,27,"KeyR",48,"R",82,"VK_R","",""],[0,28,"KeyS",49,"S",83,"VK_S","",""],[0,29,"KeyT",50,"T",84,"VK_T","",""],[0,30,"KeyU",51,"U",85,"VK_U","",""],[0,31,"KeyV",52,"V",86,"VK_V","",""],[0,32,"KeyW",53,"W",87,"VK_W","",""],[0,33,"KeyX",54,"X",88,"VK_X","",""],[0,34,"KeyY",55,"Y",89,"VK_Y","",""],[0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[0,36,"Digit1",22,"1",49,"VK_1","",""],[0,37,"Digit2",23,"2",50,"VK_2","",""],[0,38,"Digit3",24,"3",51,"VK_3","",""],[0,39,"Digit4",25,"4",52,"VK_4","",""],[0,40,"Digit5",26,"5",53,"VK_5","",""],[0,41,"Digit6",27,"6",54,"VK_6","",""],[0,42,"Digit7",28,"7",55,"VK_7","",""],[0,43,"Digit8",29,"8",56,"VK_8","",""],[0,44,"Digit9",30,"9",57,"VK_9","",""],[0,45,"Digit0",21,"0",48,"VK_0","",""],[1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[1,50,"Space",10,"Space",32,"VK_SPACE","",""],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,"",0,"","",""],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[1,64,"F1",59,"F1",112,"VK_F1","",""],[1,65,"F2",60,"F2",113,"VK_F2","",""],[1,66,"F3",61,"F3",114,"VK_F3","",""],[1,67,"F4",62,"F4",115,"VK_F4","",""],[1,68,"F5",63,"F5",116,"VK_F5","",""],[1,69,"F6",64,"F6",117,"VK_F6","",""],[1,70,"F7",65,"F7",118,"VK_F7","",""],[1,71,"F8",66,"F8",119,"VK_F8","",""],[1,72,"F9",67,"F9",120,"VK_F9","",""],[1,73,"F10",68,"F10",121,"VK_F10","",""],[1,74,"F11",69,"F11",122,"VK_F11","",""],[1,75,"F12",70,"F12",123,"VK_F12","",""],[1,76,"PrintScreen",0,"",0,"","",""],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL","",""],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[1,80,"Home",14,"Home",36,"VK_HOME","",""],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[1,82,"Delete",20,"Delete",46,"VK_DELETE","",""],[1,83,"End",13,"End",35,"VK_END","",""],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK","",""],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE","",""],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD","",""],[1,94,"NumpadEnter",3,"",0,"","",""],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1","",""],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2","",""],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3","",""],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4","",""],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5","",""],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6","",""],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7","",""],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8","",""],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9","",""],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0","",""],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL","",""],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102","",""],[1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[1,108,"Power",0,"",0,"","",""],[1,109,"NumpadEqual",0,"",0,"","",""],[1,110,"F13",71,"F13",124,"VK_F13","",""],[1,111,"F14",72,"F14",125,"VK_F14","",""],[1,112,"F15",73,"F15",126,"VK_F15","",""],[1,113,"F16",74,"F16",127,"VK_F16","",""],[1,114,"F17",75,"F17",128,"VK_F17","",""],[1,115,"F18",76,"F18",129,"VK_F18","",""],[1,116,"F19",77,"F19",130,"VK_F19","",""],[1,117,"F20",78,"F20",131,"VK_F20","",""],[1,118,"F21",79,"F21",132,"VK_F21","",""],[1,119,"F22",80,"F22",133,"VK_F22","",""],[1,120,"F23",81,"F23",134,"VK_F23","",""],[1,121,"F24",82,"F24",135,"VK_F24","",""],[1,122,"Open",0,"",0,"","",""],[1,123,"Help",0,"",0,"","",""],[1,124,"Select",0,"",0,"","",""],[1,125,"Again",0,"",0,"","",""],[1,126,"Undo",0,"",0,"","",""],[1,127,"Cut",0,"",0,"","",""],[1,128,"Copy",0,"",0,"","",""],[1,129,"Paste",0,"",0,"","",""],[1,130,"Find",0,"",0,"","",""],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR","",""],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1","",""],[1,136,"KanaMode",0,"",0,"","",""],[0,137,"IntlYen",0,"",0,"","",""],[1,138,"Convert",0,"",0,"","",""],[1,139,"NonConvert",0,"",0,"","",""],[1,140,"Lang1",0,"",0,"","",""],[1,141,"Lang2",0,"",0,"","",""],[1,142,"Lang3",0,"",0,"","",""],[1,143,"Lang4",0,"",0,"","",""],[1,144,"Lang5",0,"",0,"","",""],[1,145,"Abort",0,"",0,"","",""],[1,146,"Props",0,"",0,"","",""],[1,147,"NumpadParenLeft",0,"",0,"","",""],[1,148,"NumpadParenRight",0,"",0,"","",""],[1,149,"NumpadBackspace",0,"",0,"","",""],[1,150,"NumpadMemoryStore",0,"",0,"","",""],[1,151,"NumpadMemoryRecall",0,"",0,"","",""],[1,152,"NumpadMemoryClear",0,"",0,"","",""],[1,153,"NumpadMemoryAdd",0,"",0,"","",""],[1,154,"NumpadMemorySubtract",0,"",0,"","",""],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR","",""],[1,156,"NumpadClearEntry",0,"",0,"","",""],[1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[1,0,"",4,"Shift",16,"VK_SHIFT","",""],[1,0,"",6,"Alt",18,"VK_MENU","",""],[1,0,"",57,"Meta",91,"VK_COMMAND","",""],[1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[1,163,"AltRight",6,"",0,"VK_RMENU","",""],[1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[1,165,"BrightnessUp",0,"",0,"","",""],[1,166,"BrightnessDown",0,"",0,"","",""],[1,167,"MediaPlay",0,"",0,"","",""],[1,168,"MediaRecord",0,"",0,"","",""],[1,169,"MediaFastForward",0,"",0,"","",""],[1,170,"MediaRewind",0,"",0,"","",""],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP","",""],[1,174,"Eject",0,"",0,"","",""],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[1,180,"SelectTask",0,"",0,"","",""],[1,181,"LaunchScreenSaver",0,"",0,"","",""],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME","",""],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK","",""],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[1,189,"ZoomToggle",0,"",0,"","",""],[1,190,"MailReply",0,"",0,"","",""],[1,191,"MailForward",0,"",0,"","",""],[1,192,"MailSend",0,"",0,"","",""],[1,0,"",114,"KeyInComposition",229,"","",""],[1,0,"",116,"ABNT_C2",194,"VK_ABNT_C2","",""],[1,0,"",96,"OEM_8",223,"VK_OEM_8","",""],[1,0,"",0,"",0,"VK_KANA","",""],[1,0,"",0,"",0,"VK_HANGUL","",""],[1,0,"",0,"",0,"VK_JUNJA","",""],[1,0,"",0,"",0,"VK_FINAL","",""],[1,0,"",0,"",0,"VK_HANJA","",""],[1,0,"",0,"",0,"VK_KANJI","",""],[1,0,"",0,"",0,"VK_CONVERT","",""],[1,0,"",0,"",0,"VK_NONCONVERT","",""],[1,0,"",0,"",0,"VK_ACCEPT","",""],[1,0,"",0,"",0,"VK_MODECHANGE","",""],[1,0,"",0,"",0,"VK_SELECT","",""],[1,0,"",0,"",0,"VK_PRINT","",""],[1,0,"",0,"",0,"VK_EXECUTE","",""],[1,0,"",0,"",0,"VK_SNAPSHOT","",""],[1,0,"",0,"",0,"VK_HELP","",""],[1,0,"",0,"",0,"VK_APPS","",""],[1,0,"",0,"",0,"VK_PROCESSKEY","",""],[1,0,"",0,"",0,"VK_PACKET","",""],[1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[1,0,"",0,"",0,"VK_ATTN","",""],[1,0,"",0,"",0,"VK_CRSEL","",""],[1,0,"",0,"",0,"VK_EXSEL","",""],[1,0,"",0,"",0,"VK_EREOF","",""],[1,0,"",0,"",0,"VK_PLAY","",""],[1,0,"",0,"",0,"VK_ZOOM","",""],[1,0,"",0,"",0,"VK_NONAME","",""],[1,0,"",0,"",0,"VK_PA1","",""],[1,0,"",0,"",0,"VK_OEM_CLEAR","",""]],n=[],i=[];for(const r of t){const[o,s,a,l,c,u,d,h,f]=r;if(i[s]||(i[s]=!0,Dit[s]=a,Tit[a]=s,kit[a.toLowerCase()]=s,o&&(boe[s]=l,l!==0&&l!==3&&l!==5&&l!==4&&l!==6&&l!==57&&(MX[l]=s))),!n[l]){if(n[l]=!0,!c)throw new Error(`String representation missing for key code ${l} around scan code ${a}`);Sz.define(l,c),NX.define(l,h||c),PX.define(l,f||h||c)}u&&(TRe[u]=l),d&&(Ait[d]=l)}MX[3]=46})(),(function(e){function t(a){return Sz.keyCodeToStr(a)}e.toString=t;function n(a){return Sz.strToKeyCode(a)}e.fromString=n;function i(a){return NX.keyCodeToStr(a)}e.toUserSettingsUS=i;function r(a){return PX.keyCodeToStr(a)}e.toUserSettingsGeneral=r;function o(a){return NX.strToKeyCode(a)||PX.strToKeyCode(a)}e.fromUserSettings=o;function s(a){if(a>=98&&a<=113)return null;switch(a){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Sz.keyCodeToStr(a)}e.toElectronAccelerator=s})(KA||(KA={}))}});function d7t(){return globalThis._VSCODE_NLS_MESSAGES}function wVe(){return globalThis._VSCODE_NLS_LANGUAGE}var Iit=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/nls.messages.js"(){}});function Kce(e,t){let n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,(i,r)=>{const o=r[0],s=t[o];let a=i;return typeof s=="string"?a=s:(typeof s=="number"||typeof s=="boolean"||s===void 0||s===null)&&(a=String(s)),a}),f7t&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function R(e,t,...n){return Kce(typeof e=="number"?h7t(e,t):t,n)}function h7t(e,t){const n=d7t()?.[e];if(typeof n!="string"){if(typeof t=="string")return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}function yr(e,t,...n){let i;typeof e=="number"?i=h7t(e,t):i=t;const r=Kce(i,n);return{value:r,original:t===i?r:Kce(t,n)}}var f7t,bn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/nls.js"(){Iit(),Iit(),f7t=wVe()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0}});function p7t(){if(!IRe){IRe=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2,kRe=new Uint16Array(e.buffer)[0]===513}return kRe}var DP,xz,Ez,Az,F_e,OX,RX,B_e,Dz,Tz,j_e,Lit,vS,yS,Jv,Nit,Pit,Ch,xo,Wf,D_,_L,Mit,g7t,Z_,CVe,qw,m7t,Oit,SVe,om,kRe,IRe,LRe,v7t,y7t,b7t,_7t,Xr=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/platform.js"(){if(bn(),DP="en",xz=!1,Ez=!1,Az=!1,F_e=!1,OX=!1,RX=!1,B_e=!1,Dz=void 0,Tz=DP,j_e=DP,Lit=void 0,vS=void 0,yS=globalThis,Jv=void 0,typeof yS.vscode<"u"&&typeof yS.vscode.process<"u"?Jv=yS.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(Jv=process),Nit=typeof Jv?.versions?.electron=="string",Pit=Nit&&Jv?.type==="renderer",typeof Jv=="object"){xz=Jv.platform==="win32",Ez=Jv.platform==="darwin",Az=Jv.platform==="linux",Az&&Jv.env.SNAP&&Jv.env.SNAP_REVISION,Jv.env.CI||Jv.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Dz=DP,Tz=DP;const e=Jv.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);Dz=t.userLocale,j_e=t.osLocale,Tz=t.resolvedLanguage||DP,Lit=t.languagePack?.translationsConfigFile}catch{}F_e=!0}else typeof navigator=="object"&&!Pit?(vS=navigator.userAgent,xz=vS.indexOf("Windows")>=0,Ez=vS.indexOf("Macintosh")>=0,RX=(vS.indexOf("Macintosh")>=0||vS.indexOf("iPad")>=0||vS.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Az=vS.indexOf("Linux")>=0,B_e=vS?.indexOf("Mobi")>=0,OX=!0,Tz=wVe()||DP,Dz=navigator.language.toLowerCase(),j_e=Dz):console.error("Unable to resolve platform.");Ch=xz,xo=Ez,Wf=Az,D_=F_e,_L=OX,Mit=OX&&typeof yS.importScripts=="function",g7t=Mit?yS.origin:void 0,Z_=RX,CVe=B_e,qw=vS,m7t=Tz,Oit=typeof yS.postMessage=="function"&&!yS.importScripts,SVe=(()=>{if(Oit){const e=[];yS.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let i=0,r=e.length;i<r;i++){const o=e[i];if(o.id===n.data.vscodeScheduleAsyncWork){e.splice(i,1),o.callback();return}}});let t=0;return n=>{const i=++t;e.push({id:i,callback:n}),yS.postMessage({vscodeScheduleAsyncWork:i},"*")}}return e=>setTimeout(e)})(),om=Ez||RX?2:xz?1:3,kRe=!0,IRe=!1,LRe=!!(qw&&qw.indexOf("Chrome")>=0),v7t=!!(qw&&qw.indexOf("Firefox")>=0),y7t=!!(!LRe&&qw&&qw.indexOf("Safari")>=0),b7t=!!(qw&&qw.indexOf("Edg/")>=0),_7t=!!(qw&&qw.indexOf("Android")>=0)}}),_5,FX,xH,Yce,w7t,C7t=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/process.js"(){if(Xr(),FX=globalThis.vscode,typeof FX<"u"&&typeof FX.process<"u"){const e=FX.process;_5={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?_5={get platform(){return process.platform},get arch(){return process.arch},get env(){return xRe},cwd(){return xRe.VSCODE_CWD||process.cwd()}}:_5={get platform(){return Ch?"win32":xo?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};xH=_5.cwd,Yce=_5.env,w7t=_5.platform}});function D2n(e,t){if(e===null||typeof e!="object")throw new xVe(t,"Object",e)}function Td(e,t){if(typeof e!="string")throw new xVe(t,"string",e)}function Zs(e){return e===kf||e===Om}function z_e(e){return e===kf}function pk(e){return e>=S7t&&e<=E7t||e>=x7t&&e<=A7t}function BX(e,t,n,i){let r="",o=0,s=-1,a=0,l=0;for(let c=0;c<=e.length;++c){if(c<e.length)l=e.charCodeAt(c);else{if(i(l))break;l=kf}if(i(l)){if(!(s===c-1||a===1))if(a===2){if(r.length<2||o!==2||r.charCodeAt(r.length-1)!==VA||r.charCodeAt(r.length-2)!==VA){if(r.length>2){const u=r.lastIndexOf(n);u===-1?(r="",o=0):(r=r.slice(0,u),o=r.length-1-r.lastIndexOf(n)),s=c,a=0;continue}else if(r.length!==0){r="",o=0,s=c,a=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",o=2)}else r.length>0?r+=`${n}${e.slice(s+1,c)}`:r=e.slice(s+1,c),o=c-s-1;s=c,a=0}else l===VA&&a!==-1?++a:a=-1}return r}function T2n(e){return e?`${e[0]==="."?"":"."}${e}`:""}function Rit(e,t){D2n(t,"pathObject");const n=t.dir||t.root,i=t.base||`${t.name||""}${T2n(t.ext)}`;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}var S7t,x7t,E7t,A7t,VA,kf,Om,sA,Fit,xVe,bS,qp,Bit,Vc,EVe,D7t,T7t,k7t,AVe,YA,I7t,V_,bE=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/path.js"(){C7t(),S7t=65,x7t=97,E7t=90,A7t=122,VA=46,kf=47,Om=92,sA=58,Fit=63,xVe=class extends Error{constructor(e,t,n){let i;typeof t=="string"&&t.indexOf("not ")===0?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=e.indexOf(".")!==-1?"property":"argument";let o=`The "${e}" ${r} ${i} of type ${t}`;o+=`. Received type ${typeof n}`,super(o),this.code="ERR_INVALID_ARG_TYPE"}},bS=w7t==="win32",qp={resolve(...e){let t="",n="",i=!1;for(let r=e.length-1;r>=-1;r--){let o;if(r>=0){if(o=e[r],Td(o,`paths[${r}]`),o.length===0)continue}else t.length===0?o=xH():(o=Yce[`=${t}`]||xH(),(o===void 0||o.slice(0,2).toLowerCase()!==t.toLowerCase()&&o.charCodeAt(2)===Om)&&(o=`${t}\\`));const s=o.length;let a=0,l="",c=!1;const u=o.charCodeAt(0);if(s===1)Zs(u)&&(a=1,c=!0);else if(Zs(u))if(c=!0,Zs(o.charCodeAt(1))){let d=2,h=d;for(;d<s&&!Zs(o.charCodeAt(d));)d++;if(d<s&&d!==h){const f=o.slice(h,d);for(h=d;d<s&&Zs(o.charCodeAt(d));)d++;if(d<s&&d!==h){for(h=d;d<s&&!Zs(o.charCodeAt(d));)d++;(d===s||d!==h)&&(l=`\\\\${f}\\${o.slice(h,d)}`,a=d)}}}else a=1;else pk(u)&&o.charCodeAt(1)===sA&&(l=o.slice(0,2),a=2,s>2&&Zs(o.charCodeAt(2))&&(c=!0,a=3));if(l.length>0)if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l;if(i){if(t.length>0)break}else if(n=`${o.slice(a)}\\${n}`,i=c,c&&t.length>0)break}return n=BX(n,!i,"\\",Zs),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){Td(e,"path");const t=e.length;if(t===0)return".";let n=0,i,r=!1;const o=e.charCodeAt(0);if(t===1)return z_e(o)?"\\":e;if(Zs(o))if(r=!0,Zs(e.charCodeAt(1))){let a=2,l=a;for(;a<t&&!Zs(e.charCodeAt(a));)a++;if(a<t&&a!==l){const c=e.slice(l,a);for(l=a;a<t&&Zs(e.charCodeAt(a));)a++;if(a<t&&a!==l){for(l=a;a<t&&!Zs(e.charCodeAt(a));)a++;if(a===t)return`\\\\${c}\\${e.slice(l)}\\`;a!==l&&(i=`\\\\${c}\\${e.slice(l,a)}`,n=a)}}}else n=1;else pk(o)&&e.charCodeAt(1)===sA&&(i=e.slice(0,2),n=2,t>2&&Zs(e.charCodeAt(2))&&(r=!0,n=3));let s=n<t?BX(e.slice(n),!r,"\\",Zs):"";return s.length===0&&!r&&(s="."),s.length>0&&Zs(e.charCodeAt(t-1))&&(s+="\\"),i===void 0?r?`\\${s}`:s:r?`${i}\\${s}`:`${i}${s}`},isAbsolute(e){Td(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return Zs(n)||t>2&&pk(n)&&e.charCodeAt(1)===sA&&Zs(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let o=0;o<e.length;++o){const s=e[o];Td(s,"path"),s.length>0&&(t===void 0?t=n=s:t+=`\\${s}`)}if(t===void 0)return".";let i=!0,r=0;if(typeof n=="string"&&Zs(n.charCodeAt(0))){++r;const o=n.length;o>1&&Zs(n.charCodeAt(1))&&(++r,o>2&&(Zs(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<t.length&&Zs(t.charCodeAt(r));)r++;r>=2&&(t=`\\${t.slice(r)}`)}return qp.normalize(t)},relative(e,t){if(Td(e,"from"),Td(t,"to"),e===t)return"";const n=qp.resolve(e),i=qp.resolve(t);if(n===i||(e=n.toLowerCase(),t=i.toLowerCase(),e===t))return"";let r=0;for(;r<e.length&&e.charCodeAt(r)===Om;)r++;let o=e.length;for(;o-1>r&&e.charCodeAt(o-1)===Om;)o--;const s=o-r;let a=0;for(;a<t.length&&t.charCodeAt(a)===Om;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===Om;)l--;const c=l-a,u=s<c?s:c;let d=-1,h=0;for(;h<u;h++){const p=e.charCodeAt(r+h);if(p!==t.charCodeAt(a+h))break;p===Om&&(d=h)}if(h!==u){if(d===-1)return i}else{if(c>u){if(t.charCodeAt(a+h)===Om)return i.slice(a+h+1);if(h===2)return i.slice(a+h)}s>u&&(e.charCodeAt(r+h)===Om?d=h:h===2&&(d=3)),d===-1&&(d=0)}let f="";for(h=r+d+1;h<=o;++h)(h===o||e.charCodeAt(h)===Om)&&(f+=f.length===0?"..":"\\..");return a+=d,f.length>0?`${f}${i.slice(a,l)}`:(i.charCodeAt(a)===Om&&++a,i.slice(a,l))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=qp.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===Om){if(t.charCodeAt(1)===Om){const n=t.charCodeAt(2);if(n!==Fit&&n!==VA)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(pk(t.charCodeAt(0))&&t.charCodeAt(1)===sA&&t.charCodeAt(2)===Om)return`\\\\?\\${t}`;return e},dirname(e){Td(e,"path");const t=e.length;if(t===0)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(t===1)return Zs(r)?e:".";if(Zs(r)){if(n=i=1,Zs(e.charCodeAt(1))){let a=2,l=a;for(;a<t&&!Zs(e.charCodeAt(a));)a++;if(a<t&&a!==l){for(l=a;a<t&&Zs(e.charCodeAt(a));)a++;if(a<t&&a!==l){for(l=a;a<t&&!Zs(e.charCodeAt(a));)a++;if(a===t)return e;a!==l&&(n=i=a+1)}}}}else pk(r)&&e.charCodeAt(1)===sA&&(n=t>2&&Zs(e.charCodeAt(2))?3:2,i=n);let o=-1,s=!0;for(let a=t-1;a>=i;--a)if(Zs(e.charCodeAt(a))){if(!s){o=a;break}}else s=!1;if(o===-1){if(n===-1)return".";o=n}return e.slice(0,o)},basename(e,t){t!==void 0&&Td(t,"suffix"),Td(e,"path");let n=0,i=-1,r=!0,o;if(e.length>=2&&pk(e.charCodeAt(0))&&e.charCodeAt(1)===sA&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(o=e.length-1;o>=n;--o){const l=e.charCodeAt(o);if(Zs(l)){if(!r){n=o+1;break}}else a===-1&&(r=!1,a=o+1),s>=0&&(l===t.charCodeAt(s)?--s===-1&&(i=o):(s=-1,i=a))}return n===i?i=a:i===-1&&(i=e.length),e.slice(n,i)}for(o=e.length-1;o>=n;--o)if(Zs(e.charCodeAt(o))){if(!r){n=o+1;break}}else i===-1&&(r=!1,i=o+1);return i===-1?"":e.slice(n,i)},extname(e){Td(e,"path");let t=0,n=-1,i=0,r=-1,o=!0,s=0;e.length>=2&&e.charCodeAt(1)===sA&&pk(e.charCodeAt(0))&&(t=i=2);for(let a=e.length-1;a>=t;--a){const l=e.charCodeAt(a);if(Zs(l)){if(!o){i=a+1;break}continue}r===-1&&(o=!1,r=a+1),l===VA?n===-1?n=a:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||r===-1||s===0||s===1&&n===r-1&&n===i+1?"":e.slice(n,r)},format:Rit.bind(null,"\\"),parse(e){Td(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(n===1)return Zs(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(Zs(r)){if(i=1,Zs(e.charCodeAt(1))){let d=2,h=d;for(;d<n&&!Zs(e.charCodeAt(d));)d++;if(d<n&&d!==h){for(h=d;d<n&&Zs(e.charCodeAt(d));)d++;if(d<n&&d!==h){for(h=d;d<n&&!Zs(e.charCodeAt(d));)d++;d===n?i=d:d!==h&&(i=d+1)}}}}else if(pk(r)&&e.charCodeAt(1)===sA){if(n<=2)return t.root=t.dir=e,t;if(i=2,Zs(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;i=3}}i>0&&(t.root=e.slice(0,i));let o=-1,s=i,a=-1,l=!0,c=e.length-1,u=0;for(;c>=i;--c){if(r=e.charCodeAt(c),Zs(r)){if(!l){s=c+1;break}continue}a===-1&&(l=!1,a=c+1),r===VA?o===-1?o=c:u!==1&&(u=1):o!==-1&&(u=-1)}return a!==-1&&(o===-1||u===0||u===1&&o===a-1&&o===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,o),t.base=e.slice(s,a),t.ext=e.slice(o,a))),s>0&&s!==i?t.dir=e.slice(0,s-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},Bit=(()=>{if(bS){const e=/\\/g;return()=>{const t=xH().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>xH()})(),Vc={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const r=i>=0?e[i]:Bit();Td(r,`paths[${i}]`),r.length!==0&&(t=`${r}/${t}`,n=r.charCodeAt(0)===kf)}return t=BX(t,!n,"/",z_e),n?`/${t}`:t.length>0?t:"."},normalize(e){if(Td(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===kf,n=e.charCodeAt(e.length-1)===kf;return e=BX(e,!t,"/",z_e),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return Td(e,"path"),e.length>0&&e.charCodeAt(0)===kf},join(...e){if(e.length===0)return".";let t;for(let n=0;n<e.length;++n){const i=e[n];Td(i,"path"),i.length>0&&(t===void 0?t=i:t+=`/${i}`)}return t===void 0?".":Vc.normalize(t)},relative(e,t){if(Td(e,"from"),Td(t,"to"),e===t||(e=Vc.resolve(e),t=Vc.resolve(t),e===t))return"";const n=1,i=e.length,r=i-n,o=1,s=t.length-o,a=r<s?r:s;let l=-1,c=0;for(;c<a;c++){const d=e.charCodeAt(n+c);if(d!==t.charCodeAt(o+c))break;d===kf&&(l=c)}if(c===a)if(s>a){if(t.charCodeAt(o+c)===kf)return t.slice(o+c+1);if(c===0)return t.slice(o+c)}else r>a&&(e.charCodeAt(n+c)===kf?l=c:c===0&&(l=0));let u="";for(c=n+l+1;c<=i;++c)(c===i||e.charCodeAt(c)===kf)&&(u+=u.length===0?"..":"/..");return`${u}${t.slice(o+l)}`},toNamespacedPath(e){return e},dirname(e){if(Td(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===kf;let n=-1,i=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===kf){if(!i){n=r;break}}else i=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&Td(t,"ext"),Td(e,"path");let n=0,i=-1,r=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(o=e.length-1;o>=0;--o){const l=e.charCodeAt(o);if(l===kf){if(!r){n=o+1;break}}else a===-1&&(r=!1,a=o+1),s>=0&&(l===t.charCodeAt(s)?--s===-1&&(i=o):(s=-1,i=a))}return n===i?i=a:i===-1&&(i=e.length),e.slice(n,i)}for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===kf){if(!r){n=o+1;break}}else i===-1&&(r=!1,i=o+1);return i===-1?"":e.slice(n,i)},extname(e){Td(e,"path");let t=-1,n=0,i=-1,r=!0,o=0;for(let s=e.length-1;s>=0;--s){const a=e.charCodeAt(s);if(a===kf){if(!r){n=s+1;break}continue}i===-1&&(r=!1,i=s+1),a===VA?t===-1?t=s:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||i===-1||o===0||o===1&&t===i-1&&t===n+1?"":e.slice(t,i)},format:Rit.bind(null,"/"),parse(e){Td(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===kf;let i;n?(t.root="/",i=1):i=0;let r=-1,o=0,s=-1,a=!0,l=e.length-1,c=0;for(;l>=i;--l){const u=e.charCodeAt(l);if(u===kf){if(!a){o=l+1;break}continue}s===-1&&(a=!1,s=l+1),u===VA?r===-1?r=l:c!==1&&(c=1):r!==-1&&(c=-1)}if(s!==-1){const u=o===0&&n?1:o;r===-1||c===0||c===1&&r===s-1&&r===o+1?t.base=t.name=e.slice(u,s):(t.name=e.slice(u,r),t.base=e.slice(u,s),t.ext=e.slice(r,s))}return o>0?t.dir=e.slice(0,o-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null},Vc.win32=qp.win32=qp,Vc.posix=qp.posix=Vc,EVe=bS?qp.normalize:Vc.normalize,D7t=bS?qp.join:Vc.join,T7t=bS?qp.resolve:Vc.resolve,k7t=bS?qp.relative:Vc.relative,AVe=bS?qp.dirname:Vc.dirname,YA=bS?qp.basename:Vc.basename,I7t=bS?qp.extname:Vc.extname,V_=bS?qp.sep:Vc.sep}});function k2n(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!N7t.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!P7t.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(M7t.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function I2n(e,t){return!e&&!t?"file":e}function L2n(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==m_&&(t=m_+t):t=m_;break}return t}function jit(e,t,n){let i,r=-1;for(let o=0;o<e.length;o++){const s=e.charCodeAt(o);if(s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||s===45||s===46||s===95||s===126||t&&s===47||n&&s===91||n&&s===93||n&&s===58)r!==-1&&(i+=encodeURIComponent(e.substring(r,o)),r=-1),i!==void 0&&(i+=e.charAt(o));else{i===void 0&&(i=e.substr(0,o));const a=DVe[s];a!==void 0?(r!==-1&&(i+=encodeURIComponent(e.substring(r,o)),r=-1),i+=a):r===-1&&(r=o)}}return r!==-1&&(i+=encodeURIComponent(e.substring(r))),i!==void 0?i:e}function N2n(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);i===35||i===63?(t===void 0&&(t=e.substr(0,n)),t+=DVe[i]):t!==void 0&&(t+=e[n])}return t!==void 0?t:e}function _oe(e,t){let n;return e.authority&&e.path.length>1&&e.scheme==="file"?n=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,Ch&&(n=n.replace(/\//g,"\\")),n}function V_e(e,t){const n=t?N2n:jit;let i="",{scheme:r,authority:o,path:s,query:a,fragment:l}=e;if(r&&(i+=r,i+=":"),(o||r==="file")&&(i+=m_,i+=m_),o){let c=o.indexOf("@");if(c!==-1){const u=o.substr(0,c);o=o.substr(c+1),c=u.lastIndexOf(":"),c===-1?i+=n(u,!1,!1):(i+=n(u.substr(0,c),!1,!1),i+=":",i+=n(u.substr(c+1),!1,!0)),i+="@"}o=o.toLowerCase(),c=o.lastIndexOf(":"),c===-1?i+=n(o,!1,!0):(i+=n(o.substr(0,c),!1,!0),i+=o.substr(c))}if(s){if(s.length>=3&&s.charCodeAt(0)===47&&s.charCodeAt(2)===58){const c=s.charCodeAt(1);c>=65&&c<=90&&(s=`/${String.fromCharCode(c+32)}:${s.substr(3)}`)}else if(s.length>=2&&s.charCodeAt(1)===58){const c=s.charCodeAt(0);c>=65&&c<=90&&(s=`${String.fromCharCode(c+32)}:${s.substr(2)}`)}i+=n(s,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),l&&(i+="#",i+=t?l:jit(l,!1,!1)),i}function L7t(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+L7t(e.substr(3)):e}}function jX(e){return e.match(NRe)?e.replace(NRe,t=>L7t(t)):e}var N7t,P7t,M7t,Rc,m_,zit,Ui,H_e,TP,DVe,NRe,ss=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/uri.js"(){bE(),Xr(),N7t=/^\w[\w\d+.-]*$/,P7t=/^\//,M7t=/^\/\//,Rc="",m_="/",zit=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Ui=class woe{static isUri(t){return t instanceof woe?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}constructor(t,n,i,r,o,s=!1){typeof t=="object"?(this.scheme=t.scheme||Rc,this.authority=t.authority||Rc,this.path=t.path||Rc,this.query=t.query||Rc,this.fragment=t.fragment||Rc):(this.scheme=I2n(t,s),this.authority=n||Rc,this.path=L2n(this.scheme,i||Rc),this.query=r||Rc,this.fragment=o||Rc,k2n(this,s))}get fsPath(){return _oe(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:i,path:r,query:o,fragment:s}=t;return n===void 0?n=this.scheme:n===null&&(n=Rc),i===void 0?i=this.authority:i===null&&(i=Rc),r===void 0?r=this.path:r===null&&(r=Rc),o===void 0?o=this.query:o===null&&(o=Rc),s===void 0?s=this.fragment:s===null&&(s=Rc),n===this.scheme&&i===this.authority&&r===this.path&&o===this.query&&s===this.fragment?this:new TP(n,i,r,o,s)}static parse(t,n=!1){const i=zit.exec(t);return i?new TP(i[2]||Rc,jX(i[4]||Rc),jX(i[5]||Rc),jX(i[7]||Rc),jX(i[9]||Rc),n):new TP(Rc,Rc,Rc,Rc,Rc)}static file(t){let n=Rc;if(Ch&&(t=t.replace(/\\/g,m_)),t[0]===m_&&t[1]===m_){const i=t.indexOf(m_,2);i===-1?(n=t.substring(2),t=m_):(n=t.substring(2,i),t=t.substring(i)||m_)}return new TP("file",n,t,Rc,Rc)}static from(t,n){return new TP(t.scheme,t.authority,t.path,t.query,t.fragment,n)}static joinPath(t,...n){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return Ch&&t.scheme==="file"?i=woe.file(qp.join(_oe(t,!0),...n)).path:i=Vc.join(t.path,...n),t.with({path:i})}toString(t=!1){return V_e(this,t)}toJSON(){return this}static revive(t){if(t){if(t instanceof woe)return t;{const n=new TP(t);return n._formatted=t.external??null,n._fsPath=t._sep===H_e?t.fsPath??null:null,n}}else return t}},H_e=Ch?1:void 0,TP=class extends Ui{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=_oe(this,!1)),this._fsPath}toString(e=!1){return e?V_e(this,!0):(this._formatted||(this._formatted=V_e(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=H_e),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}},DVe={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"},NRe=/(%[0-9A-Za-z][0-9A-Za-z])+/g}}),mt,Hi=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/position.js"(){mt=class WM{constructor(t,n){this.lineNumber=t,this.column=n}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new WM(t,n)}delta(t=0,n=0){return this.with(this.lineNumber+t,this.column+n)}equals(t){return WM.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return WM.isBefore(this,t)}static isBefore(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<n.column}isBeforeOrEqual(t){return WM.isBeforeOrEqual(this,t)}static isBeforeOrEqual(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<=n.column}static compare(t,n){const i=t.lineNumber|0,r=n.lineNumber|0;if(i===r){const o=t.column|0,s=n.column|0;return o-s}return i-r}clone(){return new WM(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new WM(t.lineNumber,t.column)}static isIPosition(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}}}),Re,Dn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/range.js"(){Hi(),Re=class sh{constructor(t,n,i,r){t>i||t===i&&n>r?(this.startLineNumber=i,this.startColumn=r,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=i,this.endColumn=r)}isEmpty(){return sh.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return sh.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<t.startColumn||n.lineNumber===t.endLineNumber&&n.column>t.endColumn)}static strictContainsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<=t.startColumn||n.lineNumber===t.endLineNumber&&n.column>=t.endColumn)}containsRange(t){return sh.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>t.endColumn)}strictContainsRange(t){return sh.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return sh.plusRange(this,t)}static plusRange(t,n){let i,r,o,s;return n.startLineNumber<t.startLineNumber?(i=n.startLineNumber,r=n.startColumn):n.startLineNumber===t.startLineNumber?(i=n.startLineNumber,r=Math.min(n.startColumn,t.startColumn)):(i=t.startLineNumber,r=t.startColumn),n.endLineNumber>t.endLineNumber?(o=n.endLineNumber,s=n.endColumn):n.endLineNumber===t.endLineNumber?(o=n.endLineNumber,s=Math.max(n.endColumn,t.endColumn)):(o=t.endLineNumber,s=t.endColumn),new sh(i,r,o,s)}intersectRanges(t){return sh.intersectRanges(this,t)}static intersectRanges(t,n){let i=t.startLineNumber,r=t.startColumn,o=t.endLineNumber,s=t.endColumn;const a=n.startLineNumber,l=n.startColumn,c=n.endLineNumber,u=n.endColumn;return i<a?(i=a,r=l):i===a&&(r=Math.max(r,l)),o>c?(o=c,s=u):o===c&&(s=Math.min(s,u)),i>o||i===o&&r>s?null:new sh(i,r,o,s)}equalsRange(t){return sh.equalsRange(this,t)}static equalsRange(t,n){return!t&&!n?!0:!!t&&!!n&&t.startLineNumber===n.startLineNumber&&t.startColumn===n.startColumn&&t.endLineNumber===n.endLineNumber&&t.endColumn===n.endColumn}getEndPosition(){return sh.getEndPosition(this)}static getEndPosition(t){return new mt(t.endLineNumber,t.endColumn)}getStartPosition(){return sh.getStartPosition(this)}static getStartPosition(t){return new mt(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new sh(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new sh(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return sh.collapseToStart(this)}static collapseToStart(t){return new sh(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return sh.collapseToEnd(this)}static collapseToEnd(t){return new sh(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new sh(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,n=t){return new sh(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new sh(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<t.startColumn)}static areIntersecting(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<=n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<=t.startColumn)}static compareRangesUsingStarts(t,n){if(t&&n){const o=t.startLineNumber|0,s=n.startLineNumber|0;if(o===s){const a=t.startColumn|0,l=n.startColumn|0;if(a===l){const c=t.endLineNumber|0,u=n.endLineNumber|0;if(c===u){const d=t.endColumn|0,h=n.endColumn|0;return d-h}return c-u}return a-l}return o-s}return(t?1:0)-(n?1:0)}static compareRangesUsingEnds(t,n){return t.endLineNumber===n.endLineNumber?t.endColumn===n.endColumn?t.startLineNumber===n.startLineNumber?t.startColumn-n.startColumn:t.startLineNumber-n.startLineNumber:t.endColumn-n.endColumn:t.endLineNumber-n.endLineNumber}static spansMultipleLines(t){return t.endLineNumber>t.startLineNumber}toJSON(){return this}}}}),Ii,zs=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/selection.js"(){Hi(),Dn(),Ii=class t_ extends Re{constructor(t,n,i,r){super(t,n,i,r),this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=i,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return t_.selectionsEqual(this,t)}static selectionsEqual(t,n){return t.selectionStartLineNumber===n.selectionStartLineNumber&&t.selectionStartColumn===n.selectionStartColumn&&t.positionLineNumber===n.positionLineNumber&&t.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new t_(this.startLineNumber,this.startColumn,t,n):new t_(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new mt(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new mt(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new t_(t,n,this.endLineNumber,this.endColumn):new t_(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new t_(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new t_(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new t_(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new t_(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,n){if(t&&!n||!t&&n)return!1;if(!t&&!n)return!0;if(t.length!==n.length)return!1;for(let i=0,r=t.length;i<r;i++)if(!this.selectionsEqual(t[i],n[i]))return!1;return!0}static isISelection(t){return t&&typeof t.selectionStartLineNumber=="number"&&typeof t.selectionStartColumn=="number"&&typeof t.positionLineNumber=="number"&&typeof t.positionColumn=="number"}static createWithDirection(t,n,i,r,o){return o===0?new t_(t,n,i,r):new t_(i,r,t,n)}}}});function sm(e){return typeof e=="string"}function jd(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function P2n(e){const t=Object.getPrototypeOf(Uint8Array);return typeof e=="object"&&e instanceof t}function wL(e){return typeof e=="number"&&!isNaN(e)}function Vit(e){return!!e&&typeof e[Symbol.iterator]=="function"}function O7t(e){return e===!0||e===!1}function bp(e){return typeof e>"u"}function Ex(e){return!b0(e)}function b0(e){return bp(e)||e===null}function ns(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function RI(e){if(b0(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function _q(e){return typeof e=="function"}function M2n(e,t){const n=Math.min(e.length,t.length);for(let i=0;i<n;i++)O2n(e[i],t[i])}function O2n(e,t){if(sm(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(_q(t)){try{if(e instanceof t)return}catch{}if(!b0(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}var as=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/types.js"(){}});function Te(e,t){if(sm(t)){const n=Qce[t];if(n===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return Qce[e]=t,{id:e}}function R7t(){return Qce}var Qce,fpe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/codiconsUtil.js"(){as(),Qce=Object.create(null)}}),F7t,R2n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/codiconsLibrary.js"(){fpe(),F7t={add:Te("add",6e4),plus:Te("plus",6e4),gistNew:Te("gist-new",6e4),repoCreate:Te("repo-create",6e4),lightbulb:Te("lightbulb",60001),lightBulb:Te("light-bulb",60001),repo:Te("repo",60002),repoDelete:Te("repo-delete",60002),gistFork:Te("gist-fork",60003),repoForked:Te("repo-forked",60003),gitPullRequest:Te("git-pull-request",60004),gitPullRequestAbandoned:Te("git-pull-request-abandoned",60004),recordKeys:Te("record-keys",60005),keyboard:Te("keyboard",60005),tag:Te("tag",60006),gitPullRequestLabel:Te("git-pull-request-label",60006),tagAdd:Te("tag-add",60006),tagRemove:Te("tag-remove",60006),person:Te("person",60007),personFollow:Te("person-follow",60007),personOutline:Te("person-outline",60007),personFilled:Te("person-filled",60007),gitBranch:Te("git-branch",60008),gitBranchCreate:Te("git-branch-create",60008),gitBranchDelete:Te("git-branch-delete",60008),sourceControl:Te("source-control",60008),mirror:Te("mirror",60009),mirrorPublic:Te("mirror-public",60009),star:Te("star",60010),starAdd:Te("star-add",60010),starDelete:Te("star-delete",60010),starEmpty:Te("star-empty",60010),comment:Te("comment",60011),commentAdd:Te("comment-add",60011),alert:Te("alert",60012),warning:Te("warning",60012),search:Te("search",60013),searchSave:Te("search-save",60013),logOut:Te("log-out",60014),signOut:Te("sign-out",60014),logIn:Te("log-in",60015),signIn:Te("sign-in",60015),eye:Te("eye",60016),eyeUnwatch:Te("eye-unwatch",60016),eyeWatch:Te("eye-watch",60016),circleFilled:Te("circle-filled",60017),primitiveDot:Te("primitive-dot",60017),closeDirty:Te("close-dirty",60017),debugBreakpoint:Te("debug-breakpoint",60017),debugBreakpointDisabled:Te("debug-breakpoint-disabled",60017),debugHint:Te("debug-hint",60017),terminalDecorationSuccess:Te("terminal-decoration-success",60017),primitiveSquare:Te("primitive-square",60018),edit:Te("edit",60019),pencil:Te("pencil",60019),info:Te("info",60020),issueOpened:Te("issue-opened",60020),gistPrivate:Te("gist-private",60021),gitForkPrivate:Te("git-fork-private",60021),lock:Te("lock",60021),mirrorPrivate:Te("mirror-private",60021),close:Te("close",60022),removeClose:Te("remove-close",60022),x:Te("x",60022),repoSync:Te("repo-sync",60023),sync:Te("sync",60023),clone:Te("clone",60024),desktopDownload:Te("desktop-download",60024),beaker:Te("beaker",60025),microscope:Te("microscope",60025),vm:Te("vm",60026),deviceDesktop:Te("device-desktop",60026),file:Te("file",60027),fileText:Te("file-text",60027),more:Te("more",60028),ellipsis:Te("ellipsis",60028),kebabHorizontal:Te("kebab-horizontal",60028),mailReply:Te("mail-reply",60029),reply:Te("reply",60029),organization:Te("organization",60030),organizationFilled:Te("organization-filled",60030),organizationOutline:Te("organization-outline",60030),newFile:Te("new-file",60031),fileAdd:Te("file-add",60031),newFolder:Te("new-folder",60032),fileDirectoryCreate:Te("file-directory-create",60032),trash:Te("trash",60033),trashcan:Te("trashcan",60033),history:Te("history",60034),clock:Te("clock",60034),folder:Te("folder",60035),fileDirectory:Te("file-directory",60035),symbolFolder:Te("symbol-folder",60035),logoGithub:Te("logo-github",60036),markGithub:Te("mark-github",60036),github:Te("github",60036),terminal:Te("terminal",60037),console:Te("console",60037),repl:Te("repl",60037),zap:Te("zap",60038),symbolEvent:Te("symbol-event",60038),error:Te("error",60039),stop:Te("stop",60039),variable:Te("variable",60040),symbolVariable:Te("symbol-variable",60040),array:Te("array",60042),symbolArray:Te("symbol-array",60042),symbolModule:Te("symbol-module",60043),symbolPackage:Te("symbol-package",60043),symbolNamespace:Te("symbol-namespace",60043),symbolObject:Te("symbol-object",60043),symbolMethod:Te("symbol-method",60044),symbolFunction:Te("symbol-function",60044),symbolConstructor:Te("symbol-constructor",60044),symbolBoolean:Te("symbol-boolean",60047),symbolNull:Te("symbol-null",60047),symbolNumeric:Te("symbol-numeric",60048),symbolNumber:Te("symbol-number",60048),symbolStructure:Te("symbol-structure",60049),symbolStruct:Te("symbol-struct",60049),symbolParameter:Te("symbol-parameter",60050),symbolTypeParameter:Te("symbol-type-parameter",60050),symbolKey:Te("symbol-key",60051),symbolText:Te("symbol-text",60051),symbolReference:Te("symbol-reference",60052),goToFile:Te("go-to-file",60052),symbolEnum:Te("symbol-enum",60053),symbolValue:Te("symbol-value",60053),symbolRuler:Te("symbol-ruler",60054),symbolUnit:Te("symbol-unit",60054),activateBreakpoints:Te("activate-breakpoints",60055),archive:Te("archive",60056),arrowBoth:Te("arrow-both",60057),arrowDown:Te("arrow-down",60058),arrowLeft:Te("arrow-left",60059),arrowRight:Te("arrow-right",60060),arrowSmallDown:Te("arrow-small-down",60061),arrowSmallLeft:Te("arrow-small-left",60062),arrowSmallRight:Te("arrow-small-right",60063),arrowSmallUp:Te("arrow-small-up",60064),arrowUp:Te("arrow-up",60065),bell:Te("bell",60066),bold:Te("bold",60067),book:Te("book",60068),bookmark:Te("bookmark",60069),debugBreakpointConditionalUnverified:Te("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:Te("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:Te("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:Te("debug-breakpoint-data-unverified",60072),debugBreakpointData:Te("debug-breakpoint-data",60073),debugBreakpointDataDisabled:Te("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:Te("debug-breakpoint-log-unverified",60074),debugBreakpointLog:Te("debug-breakpoint-log",60075),debugBreakpointLogDisabled:Te("debug-breakpoint-log-disabled",60075),briefcase:Te("briefcase",60076),broadcast:Te("broadcast",60077),browser:Te("browser",60078),bug:Te("bug",60079),calendar:Te("calendar",60080),caseSensitive:Te("case-sensitive",60081),check:Te("check",60082),checklist:Te("checklist",60083),chevronDown:Te("chevron-down",60084),chevronLeft:Te("chevron-left",60085),chevronRight:Te("chevron-right",60086),chevronUp:Te("chevron-up",60087),chromeClose:Te("chrome-close",60088),chromeMaximize:Te("chrome-maximize",60089),chromeMinimize:Te("chrome-minimize",60090),chromeRestore:Te("chrome-restore",60091),circleOutline:Te("circle-outline",60092),circle:Te("circle",60092),debugBreakpointUnverified:Te("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:Te("terminal-decoration-incomplete",60092),circleSlash:Te("circle-slash",60093),circuitBoard:Te("circuit-board",60094),clearAll:Te("clear-all",60095),clippy:Te("clippy",60096),closeAll:Te("close-all",60097),cloudDownload:Te("cloud-download",60098),cloudUpload:Te("cloud-upload",60099),code:Te("code",60100),collapseAll:Te("collapse-all",60101),colorMode:Te("color-mode",60102),commentDiscussion:Te("comment-discussion",60103),creditCard:Te("credit-card",60105),dash:Te("dash",60108),dashboard:Te("dashboard",60109),database:Te("database",60110),debugContinue:Te("debug-continue",60111),debugDisconnect:Te("debug-disconnect",60112),debugPause:Te("debug-pause",60113),debugRestart:Te("debug-restart",60114),debugStart:Te("debug-start",60115),debugStepInto:Te("debug-step-into",60116),debugStepOut:Te("debug-step-out",60117),debugStepOver:Te("debug-step-over",60118),debugStop:Te("debug-stop",60119),debug:Te("debug",60120),deviceCameraVideo:Te("device-camera-video",60121),deviceCamera:Te("device-camera",60122),deviceMobile:Te("device-mobile",60123),diffAdded:Te("diff-added",60124),diffIgnored:Te("diff-ignored",60125),diffModified:Te("diff-modified",60126),diffRemoved:Te("diff-removed",60127),diffRenamed:Te("diff-renamed",60128),diff:Te("diff",60129),diffSidebyside:Te("diff-sidebyside",60129),discard:Te("discard",60130),editorLayout:Te("editor-layout",60131),emptyWindow:Te("empty-window",60132),exclude:Te("exclude",60133),extensions:Te("extensions",60134),eyeClosed:Te("eye-closed",60135),fileBinary:Te("file-binary",60136),fileCode:Te("file-code",60137),fileMedia:Te("file-media",60138),filePdf:Te("file-pdf",60139),fileSubmodule:Te("file-submodule",60140),fileSymlinkDirectory:Te("file-symlink-directory",60141),fileSymlinkFile:Te("file-symlink-file",60142),fileZip:Te("file-zip",60143),files:Te("files",60144),filter:Te("filter",60145),flame:Te("flame",60146),foldDown:Te("fold-down",60147),foldUp:Te("fold-up",60148),fold:Te("fold",60149),folderActive:Te("folder-active",60150),folderOpened:Te("folder-opened",60151),gear:Te("gear",60152),gift:Te("gift",60153),gistSecret:Te("gist-secret",60154),gist:Te("gist",60155),gitCommit:Te("git-commit",60156),gitCompare:Te("git-compare",60157),compareChanges:Te("compare-changes",60157),gitMerge:Te("git-merge",60158),githubAction:Te("github-action",60159),githubAlt:Te("github-alt",60160),globe:Te("globe",60161),grabber:Te("grabber",60162),graph:Te("graph",60163),gripper:Te("gripper",60164),heart:Te("heart",60165),home:Te("home",60166),horizontalRule:Te("horizontal-rule",60167),hubot:Te("hubot",60168),inbox:Te("inbox",60169),issueReopened:Te("issue-reopened",60171),issues:Te("issues",60172),italic:Te("italic",60173),jersey:Te("jersey",60174),json:Te("json",60175),kebabVertical:Te("kebab-vertical",60176),key:Te("key",60177),law:Te("law",60178),lightbulbAutofix:Te("lightbulb-autofix",60179),linkExternal:Te("link-external",60180),link:Te("link",60181),listOrdered:Te("list-ordered",60182),listUnordered:Te("list-unordered",60183),liveShare:Te("live-share",60184),loading:Te("loading",60185),location:Te("location",60186),mailRead:Te("mail-read",60187),mail:Te("mail",60188),markdown:Te("markdown",60189),megaphone:Te("megaphone",60190),mention:Te("mention",60191),milestone:Te("milestone",60192),gitPullRequestMilestone:Te("git-pull-request-milestone",60192),mortarBoard:Te("mortar-board",60193),move:Te("move",60194),multipleWindows:Te("multiple-windows",60195),mute:Te("mute",60196),noNewline:Te("no-newline",60197),note:Te("note",60198),octoface:Te("octoface",60199),openPreview:Te("open-preview",60200),package:Te("package",60201),paintcan:Te("paintcan",60202),pin:Te("pin",60203),play:Te("play",60204),run:Te("run",60204),plug:Te("plug",60205),preserveCase:Te("preserve-case",60206),preview:Te("preview",60207),project:Te("project",60208),pulse:Te("pulse",60209),question:Te("question",60210),quote:Te("quote",60211),radioTower:Te("radio-tower",60212),reactions:Te("reactions",60213),references:Te("references",60214),refresh:Te("refresh",60215),regex:Te("regex",60216),remoteExplorer:Te("remote-explorer",60217),remote:Te("remote",60218),remove:Te("remove",60219),replaceAll:Te("replace-all",60220),replace:Te("replace",60221),repoClone:Te("repo-clone",60222),repoForcePush:Te("repo-force-push",60223),repoPull:Te("repo-pull",60224),repoPush:Te("repo-push",60225),report:Te("report",60226),requestChanges:Te("request-changes",60227),rocket:Te("rocket",60228),rootFolderOpened:Te("root-folder-opened",60229),rootFolder:Te("root-folder",60230),rss:Te("rss",60231),ruby:Te("ruby",60232),saveAll:Te("save-all",60233),saveAs:Te("save-as",60234),save:Te("save",60235),screenFull:Te("screen-full",60236),screenNormal:Te("screen-normal",60237),searchStop:Te("search-stop",60238),server:Te("server",60240),settingsGear:Te("settings-gear",60241),settings:Te("settings",60242),shield:Te("shield",60243),smiley:Te("smiley",60244),sortPrecedence:Te("sort-precedence",60245),splitHorizontal:Te("split-horizontal",60246),splitVertical:Te("split-vertical",60247),squirrel:Te("squirrel",60248),starFull:Te("star-full",60249),starHalf:Te("star-half",60250),symbolClass:Te("symbol-class",60251),symbolColor:Te("symbol-color",60252),symbolConstant:Te("symbol-constant",60253),symbolEnumMember:Te("symbol-enum-member",60254),symbolField:Te("symbol-field",60255),symbolFile:Te("symbol-file",60256),symbolInterface:Te("symbol-interface",60257),symbolKeyword:Te("symbol-keyword",60258),symbolMisc:Te("symbol-misc",60259),symbolOperator:Te("symbol-operator",60260),symbolProperty:Te("symbol-property",60261),wrench:Te("wrench",60261),wrenchSubaction:Te("wrench-subaction",60261),symbolSnippet:Te("symbol-snippet",60262),tasklist:Te("tasklist",60263),telescope:Te("telescope",60264),textSize:Te("text-size",60265),threeBars:Te("three-bars",60266),thumbsdown:Te("thumbsdown",60267),thumbsup:Te("thumbsup",60268),tools:Te("tools",60269),triangleDown:Te("triangle-down",60270),triangleLeft:Te("triangle-left",60271),triangleRight:Te("triangle-right",60272),triangleUp:Te("triangle-up",60273),twitter:Te("twitter",60274),unfold:Te("unfold",60275),unlock:Te("unlock",60276),unmute:Te("unmute",60277),unverified:Te("unverified",60278),verified:Te("verified",60279),versions:Te("versions",60280),vmActive:Te("vm-active",60281),vmOutline:Te("vm-outline",60282),vmRunning:Te("vm-running",60283),watch:Te("watch",60284),whitespace:Te("whitespace",60285),wholeWord:Te("whole-word",60286),window:Te("window",60287),wordWrap:Te("word-wrap",60288),zoomIn:Te("zoom-in",60289),zoomOut:Te("zoom-out",60290),listFilter:Te("list-filter",60291),listFlat:Te("list-flat",60292),listSelection:Te("list-selection",60293),selection:Te("selection",60293),listTree:Te("list-tree",60294),debugBreakpointFunctionUnverified:Te("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:Te("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:Te("debug-breakpoint-function-disabled",60296),debugStackframeActive:Te("debug-stackframe-active",60297),circleSmallFilled:Te("circle-small-filled",60298),debugStackframeDot:Te("debug-stackframe-dot",60298),terminalDecorationMark:Te("terminal-decoration-mark",60298),debugStackframe:Te("debug-stackframe",60299),debugStackframeFocused:Te("debug-stackframe-focused",60299),debugBreakpointUnsupported:Te("debug-breakpoint-unsupported",60300),symbolString:Te("symbol-string",60301),debugReverseContinue:Te("debug-reverse-continue",60302),debugStepBack:Te("debug-step-back",60303),debugRestartFrame:Te("debug-restart-frame",60304),debugAlt:Te("debug-alt",60305),callIncoming:Te("call-incoming",60306),callOutgoing:Te("call-outgoing",60307),menu:Te("menu",60308),expandAll:Te("expand-all",60309),feedback:Te("feedback",60310),gitPullRequestReviewer:Te("git-pull-request-reviewer",60310),groupByRefType:Te("group-by-ref-type",60311),ungroupByRefType:Te("ungroup-by-ref-type",60312),account:Te("account",60313),gitPullRequestAssignee:Te("git-pull-request-assignee",60313),bellDot:Te("bell-dot",60314),debugConsole:Te("debug-console",60315),library:Te("library",60316),output:Te("output",60317),runAll:Te("run-all",60318),syncIgnored:Te("sync-ignored",60319),pinned:Te("pinned",60320),githubInverted:Te("github-inverted",60321),serverProcess:Te("server-process",60322),serverEnvironment:Te("server-environment",60323),pass:Te("pass",60324),issueClosed:Te("issue-closed",60324),stopCircle:Te("stop-circle",60325),playCircle:Te("play-circle",60326),record:Te("record",60327),debugAltSmall:Te("debug-alt-small",60328),vmConnect:Te("vm-connect",60329),cloud:Te("cloud",60330),merge:Te("merge",60331),export:Te("export",60332),graphLeft:Te("graph-left",60333),magnet:Te("magnet",60334),notebook:Te("notebook",60335),redo:Te("redo",60336),checkAll:Te("check-all",60337),pinnedDirty:Te("pinned-dirty",60338),passFilled:Te("pass-filled",60339),circleLargeFilled:Te("circle-large-filled",60340),circleLarge:Te("circle-large",60341),circleLargeOutline:Te("circle-large-outline",60341),combine:Te("combine",60342),gather:Te("gather",60342),table:Te("table",60343),variableGroup:Te("variable-group",60344),typeHierarchy:Te("type-hierarchy",60345),typeHierarchySub:Te("type-hierarchy-sub",60346),typeHierarchySuper:Te("type-hierarchy-super",60347),gitPullRequestCreate:Te("git-pull-request-create",60348),runAbove:Te("run-above",60349),runBelow:Te("run-below",60350),notebookTemplate:Te("notebook-template",60351),debugRerun:Te("debug-rerun",60352),workspaceTrusted:Te("workspace-trusted",60353),workspaceUntrusted:Te("workspace-untrusted",60354),workspaceUnknown:Te("workspace-unknown",60355),terminalCmd:Te("terminal-cmd",60356),terminalDebian:Te("terminal-debian",60357),terminalLinux:Te("terminal-linux",60358),terminalPowershell:Te("terminal-powershell",60359),terminalTmux:Te("terminal-tmux",60360),terminalUbuntu:Te("terminal-ubuntu",60361),terminalBash:Te("terminal-bash",60362),arrowSwap:Te("arrow-swap",60363),copy:Te("copy",60364),personAdd:Te("person-add",60365),filterFilled:Te("filter-filled",60366),wand:Te("wand",60367),debugLineByLine:Te("debug-line-by-line",60368),inspect:Te("inspect",60369),layers:Te("layers",60370),layersDot:Te("layers-dot",60371),layersActive:Te("layers-active",60372),compass:Te("compass",60373),compassDot:Te("compass-dot",60374),compassActive:Te("compass-active",60375),azure:Te("azure",60376),issueDraft:Te("issue-draft",60377),gitPullRequestClosed:Te("git-pull-request-closed",60378),gitPullRequestDraft:Te("git-pull-request-draft",60379),debugAll:Te("debug-all",60380),debugCoverage:Te("debug-coverage",60381),runErrors:Te("run-errors",60382),folderLibrary:Te("folder-library",60383),debugContinueSmall:Te("debug-continue-small",60384),beakerStop:Te("beaker-stop",60385),graphLine:Te("graph-line",60386),graphScatter:Te("graph-scatter",60387),pieChart:Te("pie-chart",60388),bracket:Te("bracket",60175),bracketDot:Te("bracket-dot",60389),bracketError:Te("bracket-error",60390),lockSmall:Te("lock-small",60391),azureDevops:Te("azure-devops",60392),verifiedFilled:Te("verified-filled",60393),newline:Te("newline",60394),layout:Te("layout",60395),layoutActivitybarLeft:Te("layout-activitybar-left",60396),layoutActivitybarRight:Te("layout-activitybar-right",60397),layoutPanelLeft:Te("layout-panel-left",60398),layoutPanelCenter:Te("layout-panel-center",60399),layoutPanelJustify:Te("layout-panel-justify",60400),layoutPanelRight:Te("layout-panel-right",60401),layoutPanel:Te("layout-panel",60402),layoutSidebarLeft:Te("layout-sidebar-left",60403),layoutSidebarRight:Te("layout-sidebar-right",60404),layoutStatusbar:Te("layout-statusbar",60405),layoutMenubar:Te("layout-menubar",60406),layoutCentered:Te("layout-centered",60407),target:Te("target",60408),indent:Te("indent",60409),recordSmall:Te("record-small",60410),errorSmall:Te("error-small",60411),terminalDecorationError:Te("terminal-decoration-error",60411),arrowCircleDown:Te("arrow-circle-down",60412),arrowCircleLeft:Te("arrow-circle-left",60413),arrowCircleRight:Te("arrow-circle-right",60414),arrowCircleUp:Te("arrow-circle-up",60415),layoutSidebarRightOff:Te("layout-sidebar-right-off",60416),layoutPanelOff:Te("layout-panel-off",60417),layoutSidebarLeftOff:Te("layout-sidebar-left-off",60418),blank:Te("blank",60419),heartFilled:Te("heart-filled",60420),map:Te("map",60421),mapHorizontal:Te("map-horizontal",60421),foldHorizontal:Te("fold-horizontal",60421),mapFilled:Te("map-filled",60422),mapHorizontalFilled:Te("map-horizontal-filled",60422),foldHorizontalFilled:Te("fold-horizontal-filled",60422),circleSmall:Te("circle-small",60423),bellSlash:Te("bell-slash",60424),bellSlashDot:Te("bell-slash-dot",60425),commentUnresolved:Te("comment-unresolved",60426),gitPullRequestGoToChanges:Te("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:Te("git-pull-request-new-changes",60428),searchFuzzy:Te("search-fuzzy",60429),commentDraft:Te("comment-draft",60430),send:Te("send",60431),sparkle:Te("sparkle",60432),insert:Te("insert",60433),mic:Te("mic",60434),thumbsdownFilled:Te("thumbsdown-filled",60435),thumbsupFilled:Te("thumbsup-filled",60436),coffee:Te("coffee",60437),snake:Te("snake",60438),game:Te("game",60439),vr:Te("vr",60440),chip:Te("chip",60441),piano:Te("piano",60442),music:Te("music",60443),micFilled:Te("mic-filled",60444),repoFetch:Te("repo-fetch",60445),copilot:Te("copilot",60446),lightbulbSparkle:Te("lightbulb-sparkle",60447),robot:Te("robot",60448),sparkleFilled:Te("sparkle-filled",60449),diffSingle:Te("diff-single",60450),diffMultiple:Te("diff-multiple",60451),surroundWith:Te("surround-with",60452),share:Te("share",60453),gitStash:Te("git-stash",60454),gitStashApply:Te("git-stash-apply",60455),gitStashPop:Te("git-stash-pop",60456),vscode:Te("vscode",60457),vscodeInsiders:Te("vscode-insiders",60458),codeOss:Te("code-oss",60459),runCoverage:Te("run-coverage",60460),runAllCoverage:Te("run-all-coverage",60461),coverage:Te("coverage",60462),githubProject:Te("github-project",60463),mapVertical:Te("map-vertical",60464),foldVertical:Te("fold-vertical",60464),mapVerticalFilled:Te("map-vertical-filled",60465),foldVerticalFilled:Te("fold-vertical-filled",60465),goToSearch:Te("go-to-search",60466),percentage:Te("percentage",60467),sortPercentage:Te("sort-percentage",60467),attach:Te("attach",60468)}}}),Hit,An,ia=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/codicons.js"(){fpe(),R2n(),Hit={dialogError:Te("dialog-error","error"),dialogWarning:Te("dialog-warning","warning"),dialogInfo:Te("dialog-info","info"),dialogClose:Te("dialog-close","close"),treeItemExpanded:Te("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:Te("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:Te("tree-filter-on-type-off","list-selection"),treeFilterClear:Te("tree-filter-clear","close"),treeItemLoading:Te("tree-item-loading","loading"),menuSelection:Te("menu-selection","check"),menuSubmenu:Te("menu-submenu","chevron-right"),menuBarMore:Te("menubar-more","more"),scrollbarButtonLeft:Te("scrollbar-button-left","triangle-left"),scrollbarButtonRight:Te("scrollbar-button-right","triangle-right"),scrollbarButtonUp:Te("scrollbar-button-up","triangle-up"),scrollbarButtonDown:Te("scrollbar-button-down","triangle-down"),toolBarMore:Te("toolbar-more","more"),quickInputBack:Te("quick-input-back","arrow-left"),dropDownButton:Te("drop-down-button",60084),symbolCustomColor:Te("symbol-customcolor",60252),exportIcon:Te("export",60332),workspaceUnspecified:Te("workspace-unspecified",60355),newLine:Te("newline",60394),thumbsDownFilled:Te("thumbsdown-filled",60435),thumbsUpFilled:Te("thumbsup-filled",60436),gitFetch:Te("git-fetch",60445),lightbulbSparkleAutofix:Te("lightbulb-sparkle-autofix",60447),debugBreakpointPending:Te("debug-breakpoint-pending",60377)},An={...F7t,...Hit}}}),PRe,Wit,F2n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/tokenizationRegistry.js"(){Un(),Nt(),PRe=class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new bt,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),zi(()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){this._factories.get(e)?.dispose();const n=new Wit(this,e,t);return this._factories.set(e,n),zi(()=>{const i=this._factories.get(e);!i||i!==n||(this._factories.delete(e),i.dispose())})}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const n=this._factories.get(e);return!!(!n||n.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}},Wit=class extends St{get isResolved(){return this._isResolved}constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}}});function B2n(e){return e&&Ui.isUri(e.uri)&&Re.isIRange(e.range)&&(Re.isIRange(e.originSelectionRange)||Re.isIRange(e.targetSelectionRange))}function j2n(e,t){return R("symbolAriaLabel","{0} ({1})",e,B7t[t])}var V8,ppe,wq,qm,Cq,nC,TVe,Sq,Ax,H8,B7t,Zce,cO,MRe,xq,ORe,Xce,j7t,Hl,Jce,eue,ra=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages.js"(){var e;ia(),ss(),Dn(),F2n(),bn(),V8=class{constructor(t,n,i){this.offset=t,this.type=n,this.language=i,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}},ppe=class{constructor(t,n){this.tokens=t,this.endState=n,this._tokenizationResultBrand=void 0}},wq=class{constructor(t,n){this.tokens=t,this.endState=n,this._encodedTokenizationResultBrand=void 0}},(function(t){t[t.Increase=0]="Increase",t[t.Decrease=1]="Decrease"})(qm||(qm={})),(function(t){const n=new Map;n.set(0,An.symbolMethod),n.set(1,An.symbolFunction),n.set(2,An.symbolConstructor),n.set(3,An.symbolField),n.set(4,An.symbolVariable),n.set(5,An.symbolClass),n.set(6,An.symbolStruct),n.set(7,An.symbolInterface),n.set(8,An.symbolModule),n.set(9,An.symbolProperty),n.set(10,An.symbolEvent),n.set(11,An.symbolOperator),n.set(12,An.symbolUnit),n.set(13,An.symbolValue),n.set(15,An.symbolEnum),n.set(14,An.symbolConstant),n.set(15,An.symbolEnum),n.set(16,An.symbolEnumMember),n.set(17,An.symbolKeyword),n.set(27,An.symbolSnippet),n.set(18,An.symbolText),n.set(19,An.symbolColor),n.set(20,An.symbolFile),n.set(21,An.symbolReference),n.set(22,An.symbolCustomColor),n.set(23,An.symbolFolder),n.set(24,An.symbolTypeParameter),n.set(25,An.account),n.set(26,An.issues);function i(s){let a=n.get(s);return a||(console.info("No codicon found for CompletionItemKind "+s),a=An.symbolProperty),a}t.toIcon=i;const r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",27),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26);function o(s,a){let l=r.get(s);return typeof l>"u"&&!a&&(l=9),l}t.fromString=o})(Cq||(Cq={})),(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(nC||(nC={})),TVe=class{constructor(t,n,i,r){this.range=t,this.text=n,this.completionKind=i,this.isSnippetText=r}equals(t){return Re.lift(this.range).equalsRange(t.range)&&this.text===t.text&&this.completionKind===t.completionKind&&this.isSnippetText===t.isSnippetText}},(function(t){t[t.Automatic=0]="Automatic",t[t.PasteAs=1]="PasteAs"})(Sq||(Sq={})),(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(Ax||(Ax={})),(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(H8||(H8={})),B7t={17:R("Array","array"),16:R("Boolean","boolean"),4:R("Class","class"),13:R("Constant","constant"),8:R("Constructor","constructor"),9:R("Enum","enumeration"),21:R("EnumMember","enumeration member"),23:R("Event","event"),7:R("Field","field"),0:R("File","file"),11:R("Function","function"),10:R("Interface","interface"),19:R("Key","key"),5:R("Method","method"),1:R("Module","module"),2:R("Namespace","namespace"),20:R("Null","null"),15:R("Number","number"),18:R("Object","object"),24:R("Operator","operator"),3:R("Package","package"),6:R("Property","property"),14:R("String","string"),22:R("Struct","struct"),25:R("TypeParameter","type parameter"),12:R("Variable","variable")},(function(t){const n=new Map;n.set(0,An.symbolFile),n.set(1,An.symbolModule),n.set(2,An.symbolNamespace),n.set(3,An.symbolPackage),n.set(4,An.symbolClass),n.set(5,An.symbolMethod),n.set(6,An.symbolProperty),n.set(7,An.symbolField),n.set(8,An.symbolConstructor),n.set(9,An.symbolEnum),n.set(10,An.symbolInterface),n.set(11,An.symbolFunction),n.set(12,An.symbolVariable),n.set(13,An.symbolConstant),n.set(14,An.symbolString),n.set(15,An.symbolNumber),n.set(16,An.symbolBoolean),n.set(17,An.symbolArray),n.set(18,An.symbolObject),n.set(19,An.symbolKey),n.set(20,An.symbolNull),n.set(21,An.symbolEnumMember),n.set(22,An.symbolStruct),n.set(23,An.symbolEvent),n.set(24,An.symbolOperator),n.set(25,An.symbolTypeParameter);function i(r){let o=n.get(r);return o||(console.info("No codicon found for SymbolKind "+r),o=An.symbolProperty),o}t.toIcon=i})(Zce||(Zce={})),cO=(e=class{static fromValue(n){switch(n){case"comment":return e.Comment;case"imports":return e.Imports;case"region":return e.Region}return new e(n)}constructor(n){this.value=n}},e.Comment=new e("comment"),e.Imports=new e("imports"),e.Region=new e("region"),e),(function(t){t[t.AIGenerated=1]="AIGenerated"})(MRe||(MRe={})),(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(xq||(xq={})),(function(t){function n(i){return!i||typeof i!="object"?!1:typeof i.id=="string"&&typeof i.title=="string"}t.is=n})(ORe||(ORe={})),(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(Xce||(Xce={})),j7t=class{constructor(t){this.createSupport=t,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(t=>{t&&t.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}},Hl=new PRe,Jce=new PRe,(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(eue||(eue={}))}}),RRe,FRe,BRe,jRe,zRe,VRe,HRe,WRe,URe,$Re,qRe,GRe,KRe,YRe,QRe,ZRe,XRe,JRe,e2e,t2e,n2e,EO,i2e,r2e,o2e,s2e,a2e,l2e,c2e,u2e,d2e,h2e,f2e,p2e,g2e,m2e,v2e,y2e,b2e,_2e,w2e,C2e,S2e,x2e,E2e,A2e,g7=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/standalone/standaloneEnums.js"(){(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(RRe||(RRe={})),(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(FRe||(FRe={})),(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(BRe||(BRe={})),(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(jRe||(jRe={})),(function(e){e[e.Deprecated=1]="Deprecated"})(zRe||(zRe={})),(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(VRe||(VRe={})),(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(HRe||(HRe={})),(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(WRe||(WRe={})),(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(URe||(URe={})),(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})($Re||($Re={})),(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(qRe||(qRe={})),(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"})(GRe||(GRe={})),(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(KRe||(KRe={})),(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(YRe||(YRe={})),(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(QRe||(QRe={})),(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(ZRe||(ZRe={})),(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(XRe||(XRe={})),(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(JRe||(JRe={})),(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(e2e||(e2e={})),(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(t2e||(t2e={})),(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(n2e||(n2e={})),(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(EO||(EO={})),(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(i2e||(i2e={})),(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(r2e||(r2e={})),(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(o2e||(o2e={})),(function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"})(s2e||(s2e={})),(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(a2e||(a2e={})),(function(e){e[e.AIGenerated=1]="AIGenerated"})(l2e||(l2e={})),(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(c2e||(c2e={})),(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(u2e||(u2e={})),(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(d2e||(d2e={})),(function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"})(h2e||(h2e={})),(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(f2e||(f2e={})),(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(p2e||(p2e={})),(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(g2e||(g2e={})),(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(m2e||(m2e={})),(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(v2e||(v2e={})),(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(y2e||(y2e={})),(function(e){e.Off="off",e.OnCode="onCode",e.On="on"})(b2e||(b2e={})),(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(_2e||(_2e={})),(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(w2e||(w2e={})),(function(e){e[e.Deprecated=1]="Deprecated"})(C2e||(C2e={})),(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(S2e||(S2e={})),(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(x2e||(x2e={})),(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(E2e||(E2e={})),(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(A2e||(A2e={}))}});function z7t(){return{editor:void 0,languages:void 0,CancellationTokenSource:bl,Emitter:bt,KeyCode:EO,KeyMod:PA,Position:mt,Range:Re,Selection:Ii,SelectionDirection:y2e,MarkerSeverity:i2e,MarkerTag:r2e,Uri:Ui,Token:V8}}var PA,gpe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/editorBaseApi.js"(){var e;Ho(),Un(),wb(),ss(),Hi(),Dn(),zs(),ra(),g7(),PA=(e=class{static chord(n,i){return pu(n,i)}},e.CtrlCmd=2048,e.Shift=1024,e.Alt=512,e.WinCtrl=256,e)}}),kVe={};oc(kVe,{__debug:()=>X2e,check:()=>cjt,default:()=>I2e,doc:()=>Doe,format:()=>MVe,formatWithCursor:()=>due,getSupportInfo:()=>Z2e,util:()=>Toe,version:()=>Q2e});function z2n(e,t,n){return ujt.diff(e,t,n)}function V2n(e){let t=e.indexOf(nue);return t!==-1?e.charAt(t+1)===TU?RVe:OVe:djt}function IVe(e){return e===OVe?nue:e===RVe?L2e:hjt}function V7t(e,t){let n=fjt.get(t);return e.match(n)?.length??0}function H2n(e){return FK(0,e,pjt,TU)}function W2n(e){return this[e<0?this.length+e:e]}function U2n(e){let t=e.length;for(;t>0&&(e[t-1]==="\r"||e[t-1]===`
`);)t--;return t<e.length?e.slice(0,t):e}function $2n(e){if(typeof e=="string")return bN;if(Array.isArray(e))return Ux;if(!e)return;let{type:t}=e;if(FVe.has(t))return t}function q2n(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', 
Expected it to be 'string' or 'object'.`;if(_N(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let i=gjt([...FVe].map(r=>`'${r}'`));return`Unexpected doc.type '${e.type}'.
Expected it to be ${i}.`}function G2n(e,t,n,i){let r=[e];for(;r.length>0;){let o=r.pop();if(o===N2e){n(r.pop());continue}n&&r.push(o,N2e);let s=_N(o);if(!s)throw new jR(o);if(t?.(o)!==!1)switch(s){case Ux:case gC:{let a=s===Ux?o:o.parts;for(let l=a.length,c=l-1;c>=0;--c)r.push(a[c]);break}case I0:r.push(o.flatContents,o.breakContents);break;case Lv:if(i&&o.expandedStates)for(let a=o.expandedStates.length,l=a-1;l>=0;--l)r.push(o.expandedStates[l]);else r.push(o.contents);break;case qx:case $x:case Gx:case mC:case Kx:r.push(o.contents);break;case bN:case yD:case Dx:case Tx:case fp:case Ky:break;default:throw new jR(o)}}}function mpe(e,t){if(typeof e=="string")return t(e);let n=new Map;return i(e);function i(o){if(n.has(o))return n.get(o);let s=r(o);return n.set(o,s),s}function r(o){switch(_N(o)){case Ux:return t(o.map(i));case gC:return t({...o,parts:o.parts.map(i)});case I0:return t({...o,breakContents:i(o.breakContents),flatContents:i(o.flatContents)});case Lv:{let{expandedStates:s,contents:a}=o;return s?(s=s.map(i),a=s[0]):a=i(a),t({...o,contents:a,expandedStates:s})}case qx:case $x:case Gx:case mC:case Kx:return t({...o,contents:i(o.contents)});case bN:case yD:case Dx:case Tx:case fp:case Ky:return t(o);default:throw new jR(o)}}}function LVe(e,t,n){let i=n,r=!1;function o(s){if(r)return!1;let a=t(s);a!==void 0&&(r=!0,i=a)}return iue(e,o),i}function K2n(e){if(e.type===Lv&&e.break||e.type===fp&&e.hard||e.type===Ky)return!0}function Y2n(e){return LVe(e,K2n,!1)}function Uit(e){if(e.length>0){let t=Jh(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Q2n(e){let t=new Set,n=[];function i(o){if(o.type===Ky&&Uit(n),o.type===Lv){if(n.push(o),t.has(o))return!1;t.add(o)}}function r(o){o.type===Lv&&n.pop().break&&Uit(n)}iue(e,i,r,!0)}function Z2n(e){return e.type===fp&&!e.hard?e.soft?"":" ":e.type===I0?e.flatContents:e}function X2n(e){return mpe(e,Z2n)}function $it(e){for(e=[...e];e.length>=2&&Jh(0,e,-2).type===fp&&Jh(0,e,-1).type===Ky;)e.length-=2;if(e.length>0){let t=EU(Jh(0,e,-1));e[e.length-1]=t}return e}function EU(e){switch(_N(e)){case $x:case Gx:case Lv:case Kx:case mC:{let t=EU(e.contents);return{...e,contents:t}}case I0:return{...e,breakContents:EU(e.breakContents),flatContents:EU(e.flatContents)};case gC:return{...e,parts:$it(e.parts)};case Ux:return $it(e);case bN:return U2n(e);case qx:case yD:case Dx:case Tx:case fp:case Ky:break;default:throw new jR(e)}return e}function H7t(e){return EU(eFn(e))}function J2n(e){switch(_N(e)){case gC:if(e.parts.every(t=>t===""))return"";break;case Lv:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Lv&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case qx:case $x:case Gx:case Kx:if(!e.contents)return"";break;case I0:if(!e.flatContents&&!e.breakContents)return"";break;case Ux:{let t=[];for(let n of e){if(!n)continue;let[i,...r]=Array.isArray(n)?n:[n];typeof i=="string"&&typeof Jh(0,t,-1)=="string"?t[t.length-1]+=i:t.push(i),t.push(...r)}return t.length===0?"":t.length===1?t[0]:t}case bN:case yD:case Dx:case Tx:case fp:case mC:case Ky:break;default:throw new jR(e)}return e}function eFn(e){return mpe(e,t=>J2n(t))}function tFn(e,t=M2e){return mpe(e,n=>typeof n=="string"?q7t(t,n.split(`
`)):n)}function nFn(e){if(e.type===fp)return!0}function iFn(e){return LVe(e,nFn,!1)}function Coe(e,t){return e.type===mC?{...e,contents:t(e.contents)}:t(e)}function tue(e){return vC(e),{type:$x,contents:e}}function W8(e,t){return vjt(e),vC(t),{type:qx,contents:t,n:e}}function rFn(e){return W8(Number.NEGATIVE_INFINITY,e)}function W7t(e){return W8({type:"root"},e)}function oFn(e){return W8(-1,e)}function U7t(e,t,n){vC(e);let i=e;if(t>0){for(let r=0;r<Math.floor(t/n);++r)i=tue(i);i=W8(t%n,i),i=W8(Number.NEGATIVE_INFINITY,i)}return i}function sFn(e){return mjt(e),{type:gC,parts:e}}function $7t(e,t={}){return vC(e),BVe(t.expandedStates,!0),{type:Lv,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function aFn(e,t){return $7t(e[0],{...t,expandedStates:e})}function lFn(e,t="",n={}){return vC(e),t!==""&&vC(t),{type:I0,breakContents:e,flatContents:t,groupId:n.groupId}}function cFn(e,t){return vC(e),{type:Gx,contents:e,groupId:t.groupId,negate:t.negate}}function q7t(e,t){vC(e),BVe(t);let n=[];for(let i=0;i<t.length;i++)i!==0&&n.push(e),n.push(t[i]);return n}function uFn(e,t){return vC(t),e?{type:mC,label:e,contents:t}:t}function D2e(e){return vC(e),{type:Kx,contents:e}}function SA(e){if(!e)return"";if(Array.isArray(e)){let t=[];for(let n of e)if(Array.isArray(n))t.push(...SA(n));else{let i=SA(n);i!==""&&t.push(i)}return t}return e.type===I0?{...e,breakContents:SA(e.breakContents),flatContents:SA(e.flatContents)}:e.type===Lv?{...e,contents:SA(e.contents),expandedStates:e.expandedStates?.map(SA)}:e.type===gC?{type:"fill",parts:e.parts.map(SA)}:e.contents?{...e,contents:SA(e.contents)}:e}function dFn(e){let t=Object.create(null),n=new Set;return i(SA(e));function i(o,s,a){if(typeof o=="string")return JSON.stringify(o);if(Array.isArray(o)){let l=o.map(i).filter(Boolean);return l.length===1?l[0]:`[${l.join(", ")}]`}if(o.type===fp){let l=a?.[s+1]?.type===Ky;return o.literal?l?"literalline":"literallineWithoutBreakParent":o.hard?l?"hardline":"hardlineWithoutBreakParent":o.soft?"softline":"line"}if(o.type===Ky)return a?.[s-1]?.type===fp&&a[s-1].hard?void 0:"breakParent";if(o.type===Dx)return"trim";if(o.type===$x)return"indent("+i(o.contents)+")";if(o.type===qx)return o.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+i(o.contents)+")":o.n<0?"dedent("+i(o.contents)+")":o.n.type==="root"?"markAsRoot("+i(o.contents)+")":"align("+JSON.stringify(o.n)+", "+i(o.contents)+")";if(o.type===I0)return"ifBreak("+i(o.breakContents)+(o.flatContents?", "+i(o.flatContents):"")+(o.groupId?(o.flatContents?"":', ""')+`, { groupId: ${r(o.groupId)} }`:"")+")";if(o.type===Gx){let l=[];o.negate&&l.push("negate: true"),o.groupId&&l.push(`groupId: ${r(o.groupId)}`);let c=l.length>0?`, { ${l.join(", ")} }`:"";return`indentIfBreak(${i(o.contents)}${c})`}if(o.type===Lv){let l=[];o.break&&o.break!=="propagated"&&l.push("shouldBreak: true"),o.id&&l.push(`id: ${r(o.id)}`);let c=l.length>0?`, { ${l.join(", ")} }`:"";return o.expandedStates?`conditionalGroup([${o.expandedStates.map(u=>i(u)).join(",")}]${c})`:`group(${i(o.contents)}${c})`}if(o.type===gC)return`fill([${o.parts.map(l=>i(l)).join(", ")}])`;if(o.type===Kx)return"lineSuffix("+i(o.contents)+")";if(o.type===Tx)return"lineSuffixBoundary";if(o.type===mC)return`label(${JSON.stringify(o.label)}, ${i(o.contents)})`;if(o.type===yD)return"cursor";throw new Error("Unknown doc type "+o.type)}function r(o){if(typeof o!="symbol")return JSON.stringify(String(o));if(o in t)return t[o];let s=o.description||"symbol";for(let a=0;;a++){let l=s+(a>0?` #${a}`:"");if(!n.has(l))return n.add(l),t[o]=`Symbol.for(${JSON.stringify(l)})`}}}function hFn(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function fFn(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function pFn(e){if(!e)return 0;if(!bjt.test(e))return e.length;e=e.replace(yjt(),n=>_jt.has(n)?" ":"  ");let t=0;for(let n of e){let i=n.codePointAt(0);i<=31||i>=127&&i<=159||i>=768&&i<=879||i>=65024&&i<=65039||(t+=hFn(i)||fFn(i)?2:1)}return t}function G7t(e,t,n){let i=t.type===1?e.queue.slice(0,-1):[...e.queue,t],r="",o=0,s=0,a=0;for(let p of i)switch(p.type){case 0:u(),n.useTabs?l(1):c(n.tabWidth);break;case 3:{let{string:g}=p;u(),r+=g,o+=g.length;break}case 2:{let{width:g}=p;s+=1,a+=g;break}default:throw new Error(`Unexpected indent comment '${p.type}'.`)}return h(),{...e,value:r,length:o,queue:i};function l(p){r+="	".repeat(p),o+=n.tabWidth*p}function c(p){r+=" ".repeat(p),o+=p}function u(){n.useTabs?d():h()}function d(){s>0&&l(s),f()}function h(){a>0&&c(a),f()}function f(){s=0,a=0}}function gFn(e,t,n){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let i;return typeof t=="number"?t<0?i=Cjt:i={type:2,width:t}:i={type:3,string:t},G7t(e,i,n)}function mFn(e,t){return G7t(e,wjt,t)}function vFn(e){let t=0;for(let n=e.length-1;n>=0;n--){let i=e[n];if(i===" "||i==="	")t++;else break}return t}function K7t(e){let t=vFn(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}function zX(e,t,n,i,r,o){if(n===Number.POSITIVE_INFINITY)return!0;let s=t.length,a=!1,l=[e],c="";for(;n>=0;){if(l.length===0){if(s===0)return!0;l.push(t[--s]);continue}let{mode:u,doc:d}=l.pop(),h=_N(d);switch(h){case bN:d&&(a&&(c+=" ",n-=1,a=!1),c+=d,n-=rue(d));break;case Ux:case gC:{let f=h===Ux?d:d.parts,p=d[oue]??0;for(let g=f.length-1;g>=p;g--)l.push({mode:u,doc:f[g]});break}case $x:case qx:case Gx:case mC:l.push({mode:u,doc:d.contents});break;case Dx:{let{text:f,count:p}=K7t(c);c=f,n+=p;break}case Lv:{if(o&&d.break)return!1;let f=d.break?Hm:u,p=d.expandedStates&&f===Hm?Jh(0,d.expandedStates,-1):d.contents;l.push({mode:f,doc:p});break}case I0:{let f=(d.groupId?r[d.groupId]||b1:u)===Hm?d.breakContents:d.flatContents;f&&l.push({mode:u,doc:f});break}case fp:if(u===Hm||d.hard)return!0;d.soft||(a=!0);break;case Kx:i=!0;break;case Tx:if(i)return!1;break}}return!1}function vpe(e,t){let n=Object.create(null),i=t.printWidth,r=IVe(t.endOfLine),o=0,s=[{indent:O2e,mode:Hm,doc:e}],a="",l=!1,c=[],u=[],d=[],h=[],f=0;for(Q2n(e);s.length>0;){let{indent:y,mode:b,doc:w}=s.pop();switch(_N(w)){case bN:{let E=r!==`
`?FK(0,w,`
`,r):w;E&&(a+=E,s.length>0&&(o+=rue(E)));break}case Ux:for(let E=w.length-1;E>=0;E--)s.push({indent:y,mode:b,doc:w[E]});break;case yD:if(u.length>=2)throw new Error("There are too many 'cursor' in doc.");u.push(f+a.length);break;case $x:s.push({indent:mFn(y,t),mode:b,doc:w.contents});break;case qx:s.push({indent:gFn(y,w.n,t),mode:b,doc:w.contents});break;case Dx:v();break;case Lv:switch(b){case b1:if(!l){s.push({indent:y,mode:w.break?Hm:b1,doc:w.contents});break}case Hm:{l=!1;let E={indent:y,mode:b1,doc:w.contents},A=i-o,D=c.length>0;if(!w.break&&zX(E,s,A,D,n))s.push(E);else if(w.expandedStates){let T=Jh(0,w.expandedStates,-1);if(w.break){s.push({indent:y,mode:Hm,doc:T});break}else for(let M=1;M<w.expandedStates.length+1;M++)if(M>=w.expandedStates.length){s.push({indent:y,mode:Hm,doc:T});break}else{let P=w.expandedStates[M],F={indent:y,mode:b1,doc:P};if(zX(F,s,A,D,n)){s.push(F);break}}}else s.push({indent:y,mode:Hm,doc:w.contents});break}}w.id&&(n[w.id]=Jh(0,s,-1).mode);break;case gC:{let E=i-o,A=w[oue]??0,{parts:D}=w,T=D.length-A;if(T===0)break;let M=D[A+0],P=D[A+1],F={indent:y,mode:b1,doc:M},N={indent:y,mode:Hm,doc:M},j=zX(F,[],E,c.length>0,n,!0);if(T===1){j?s.push(F):s.push(N);break}let W={indent:y,mode:b1,doc:P},J={indent:y,mode:Hm,doc:P};if(T===2){j?s.push(W,F):s.push(J,N);break}let ee=D[A+2],Q={indent:y,mode:b,doc:{...w,[oue]:A+2}},H=zX({indent:y,mode:b1,doc:[M,P,ee]},[],E,c.length>0,n,!0);s.push(Q),H?s.push(W,F):j?s.push(J,F):s.push(J,N);break}case I0:case Gx:{let E=w.groupId?n[w.groupId]:b;if(E===Hm){let A=w.type===I0?w.breakContents:w.negate?w.contents:tue(w.contents);A&&s.push({indent:y,mode:b,doc:A})}if(E===b1){let A=w.type===I0?w.flatContents:w.negate?tue(w.contents):w.contents;A&&s.push({indent:y,mode:b,doc:A})}break}case Kx:c.push({indent:y,mode:b,doc:w.contents});break;case Tx:c.length>0&&s.push({indent:y,mode:b,doc:Soe});break;case fp:switch(b){case b1:if(w.hard)l=!0;else{w.soft||(a+=" ",o+=1);break}case Hm:if(c.length>0){s.push({indent:y,mode:b,doc:w},...c.reverse()),c.length=0;break}w.literal?(a+=r,o=0,y.root&&(y.root.value&&(a+=y.root.value),o=y.root.length)):(v(),a+=r+y.value,o=y.length);break}break;case mC:s.push({indent:y,mode:b,doc:w.contents});break;case Ky:break;default:throw new jR(w)}s.length===0&&c.length>0&&(s.push(...c.reverse()),c.length=0)}let p=d.join("")+a,g=[...h,...u];if(g.length!==2)return{formatted:p};let m=g[0];return{formatted:p,cursorNodeStart:m,cursorNodeText:p.slice(m,Jh(0,g,-1))};function v(){let{text:y,count:b}=K7t(a);y&&(d.push(y),f+=y.length),a="",o-=b,u.length>0&&(h.push(...u.map(w=>Math.min(w,f))),u.length=0)}}function yFn(e,t,n=0){let i=0;for(let r=n;r<e.length;++r)e[r]==="	"?i=i+t-i%t:i++;return i}function bFn(e){return e!==null&&typeof e=="object"}function kz(e){return(t,n,i)=>{let r=!!i?.backwards;if(n===!1)return!1;let{length:o}=t,s=n;for(;s>=0&&s<o;){let a=t.charAt(s);if(e instanceof RegExp){if(!e.test(a))return s}else if(!e.includes(a))return s;r?s--:s++}return s===-1||s===o?s:!1}}function _Fn(e,t,n){let i=!!n?.backwards;if(t===!1)return!1;let r=e.charAt(t);if(i){if(e.charAt(t-1)==="\r"&&r===`
`)return t-2;if(B2e(r))return t-1}else{if(r==="\r"&&e.charAt(t+1)===`
`)return t+2;if(B2e(r))return t+1}return t}function wFn(e,t,n={}){let i=MD(e,n.backwards?t-1:t,n),r=CL(e,i,n);return i!==r}function CFn(e){return Array.isArray(e)&&e.length>0}function*ype(e,t){let{getVisitorKeys:n,filter:i=()=>!0}=t,r=o=>_pe(o)&&i(o);for(let o of n(e)){let s=e[o];if(Array.isArray(s))for(let a of s)r(a)&&(yield a);else r(s)&&(yield s)}}function*SFn(e,t){let n=[e];for(let i=0;i<n.length;i++){let r=n[i];for(let o of ype(r,t))yield o,n.push(o)}}function xFn(e,t){return ype(e,t).next().done}function Y7t(e,t,n){let{cache:i}=n;if(i.has(e))return i.get(e);let{filter:r}=n;if(!r)return[];let o,s=(n.getChildren?.(e,n)??[...ype(e,{getVisitorKeys:n.getVisitorKeys})]).flatMap(c=>(o??(o=[e,...t]),r(c,o)?[c]:Y7t(c,o,n))),{locStart:a,locEnd:l}=n;return s.sort((c,u)=>a(c)-a(u)||l(c)-l(u)),i.set(e,s),s}function EFn(e){let t=e.type||e.kind||"(unknown type)",n=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return n.length>20&&(n=n.slice(0,19)+"…"),t+(n?" "+n:"")}function NVe(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=EFn(e)}function AU(e,t){t.leading=!0,t.trailing=!1,NVe(e,t)}function UM(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),NVe(e,t)}function DU(e,t){t.leading=!1,t.trailing=!0,NVe(e,t)}function Q7t(e,t,n,i,r=[]){let{locStart:o,locEnd:s}=n,a=o(t),l=s(t),c=jVe(e,r,{cache:zVe,locStart:o,locEnd:s,getVisitorKeys:n.getVisitorKeys,filter:n.printer.canAttachComment,getChildren:n.printer.getCommentChildNodes}),u,d,h=0,f=c.length;for(;h<f;){let p=h+f>>1,g=c[p],m=o(g),v=s(g);if(m<=a&&l<=v)return Q7t(g,t,n,g,[g,...r]);if(v<=a){u=g,h=p+1;continue}if(l<=m){d=g,f=p;continue}throw new Error("Comment location overlaps with node location")}if(i?.type==="TemplateLiteral"){let{quasis:p}=i,g=W_e(p,t,n);u&&W_e(p,u,n)!==g&&(u=null),d&&W_e(p,d,n)!==g&&(d=null)}return{enclosingNode:i,precedingNode:u,followingNode:d}}function AFn(e,t){let{comments:n}=e;if(delete e.comments,!xjt(n)||!t.printer.canAttachComment)return;let i=[],{printer:{features:{experimental_avoidAstMutation:r},handleComments:o={}},originalText:s}=t,{ownLine:a=xoe,endOfLine:l=xoe,remaining:c=xoe}=o,u=n.map((d,h)=>({...Q7t(e,d,t),comment:d,text:s,options:t,ast:e,isLastComment:n.length-1===h}));for(let[d,h]of u.entries()){let{comment:f,precedingNode:p,enclosingNode:g,followingNode:m,text:v,options:y,ast:b,isLastComment:w}=h,E;if(r?E=[h]:(f.enclosingNode=g,f.precedingNode=p,f.followingNode=m,E=[f,v,y,b,w]),DFn(v,y,u,d))f.placement="ownLine",a(...E)||(m?AU(m,f):p?DU(p,f):UM(g||b,f));else if(TFn(v,y,u,d))f.placement="endOfLine",l(...E)||(p?DU(p,f):m?AU(m,f):UM(g||b,f));else if(f.placement="remaining",!c(...E))if(p&&m){let A=i.length;A>0&&i[A-1].followingNode!==m&&qit(i,y),i.push(h)}else p?DU(p,f):m?AU(m,f):UM(g||b,f)}if(qit(i,t),!r)for(let d of n)delete d.precedingNode,delete d.enclosingNode,delete d.followingNode}function DFn(e,t,n,i){let{comment:r,precedingNode:o}=n[i],{locStart:s,locEnd:a}=t,l=s(r);if(o)for(let c=i-1;c>=0;c--){let{comment:u,precedingNode:d}=n[c];if(d!==o||!VVe(e.slice(a(u),l)))break;l=s(u)}return bD(e,l,{backwards:!0})}function TFn(e,t,n,i){let{comment:r,followingNode:o}=n[i],{locStart:s,locEnd:a}=t,l=a(r);if(o)for(let c=i+1;c<n.length;c++){let{comment:u,followingNode:d}=n[c];if(d!==o||!VVe(e.slice(l,s(u))))break;l=a(u)}return bD(e,l)}function qit(e,t){let n=e.length;if(n===0)return;let{precedingNode:i,followingNode:r}=e[0],o=t.locStart(r),s;for(s=n;s>0;--s){let{comment:a,precedingNode:l,followingNode:c}=e[s-1];HA(l,i),HA(c,r);let u=t.originalText.slice(t.locEnd(a),o);if(t.printer.isGap?.(u,t)??/^[\s(]*$/u.test(u))o=t.locStart(a);else break}for(let[a,{comment:l}]of e.entries())a<s?DU(i,l):AU(r,l);for(let a of[i,r])a.comments&&a.comments.length>1&&a.comments.sort((l,c)=>t.locStart(l)-t.locStart(c));e.length=0}function W_e(e,t,n){let i=n.locStart(t)-1;for(let r=1;r<e.length;++r)if(i<n.locStart(e[r]))return r-1;return 0}function kFn(e,t){let n=t-1;n=MD(e,n,{backwards:!0}),n=CL(e,n,{backwards:!0}),n=MD(e,n,{backwards:!0});let i=CL(e,n,{backwards:!0});return n!==i}function Z7t(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function IFn(e,t){let n=e.node,i=[Z7t(e,t)],{printer:r,originalText:o,locStart:s,locEnd:a}=t;if(r.isBlockComment?.(n)){let c=bD(o,a(n))?bD(o,s(n),{backwards:!0})?kx:P2e:" ";i.push(c)}else i.push(kx);let l=CL(o,MD(o,a(n)));return l!==!1&&bD(o,l)&&i.push(kx),i}function LFn(e,t,n){let i=e.node,r=Z7t(e,t),{printer:o,originalText:s,locStart:a}=t,l=o.isBlockComment?.(i);if(n?.hasLineSuffix&&!n?.isBlock||bD(s,a(i),{backwards:!0})){let c=wpe(s,a(i));return{doc:D2e([kx,c?kx:"",r]),isBlock:l,hasLineSuffix:!0}}return!l||n?.hasLineSuffix?{doc:[D2e([" ",r]),EH],isBlock:l,hasLineSuffix:!0}:{doc:[" ",r],isBlock:l,hasLineSuffix:!1}}function NFn(e,t){let n=e.node;if(!n)return{};let i=t[Symbol.for("printedComments")];if((n.comments||[]).filter(a=>!i.has(a)).length===0)return{leading:"",trailing:""};let r=[],o=[],s;return e.each(()=>{let a=e.node;if(i?.has(a))return;let{leading:l,trailing:c}=a;l?r.push(IFn(e,t)):c&&(s=LFn(e,t,s),o.push(s.doc))},"comments"),{leading:r,trailing:o}}function PFn(e,t,n){let{leading:i,trailing:r}=NFn(e,n);return!i&&!r?t:Coe(t,o=>[i,o,r])}function MFn(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:n}=e;for(let i of t){if(!i.printed&&!n.has(i))throw new Error('Comment "'+i.value.trim()+'" was not printed. Please report this error!');delete i.printed}}function X7t({plugins:e=[],showDeprecated:t=!1}={}){let n=e.flatMap(r=>r.languages??[]),i=[];for(let r of RFn(Object.assign({},...e.map(({options:o})=>o),Ajt)))!t&&r.deprecated||(Array.isArray(r.choices)&&(t||(r.choices=r.choices.filter(o=>!o.deprecated)),r.name==="parser"&&(r.choices=[...r.choices,...OFn(r.choices,n,e)])),r.pluginDefaults=Object.fromEntries(e.filter(o=>o.defaultOptions?.[r.name]!==void 0).map(o=>[o.name,o.defaultOptions[r.name]])),i.push(r));return{languages:n,options:i}}function*OFn(e,t,n){let i=new Set(e.map(r=>r.value));for(let r of t)if(r.parsers){for(let o of r.parsers)if(!i.has(o)){i.add(o);let s=n.find(l=>l.parsers&&Object.prototype.hasOwnProperty.call(l.parsers,o)),a=r.name;s?.name&&(a+=` (plugin: ${s.name})`),yield{value:o,description:a}}}}function RFn(e){let t=[];for(let[n,i]of Object.entries(e)){let r={name:n,...i};Array.isArray(r.default)&&(r.default=Jh(0,r.default,-1).value),t.push(r)}return t}function FFn(){let e=globalThis,t=e.Deno?.build?.os;return typeof t=="string"?t==="windows":e.navigator?.platform?.startsWith("Win")??e.process?.platform?.startsWith("win")??!1}function J7t(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function BFn(e){return e=J7t(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function jFn(e){e=J7t(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function zFn(e){return Tjt?jFn(e):BFn(e)}function Git(e,t){if(!t)return;let n=kjt(t).toLowerCase();return e.find(({filenames:i})=>i?.some(r=>r.toLowerCase()===n))??e.find(({extensions:i})=>i?.some(r=>n.endsWith(r)))}function VFn(e,t){if(t)return e.find(({name:n})=>n.toLowerCase()===t)??e.find(({aliases:n})=>n?.includes(t))??e.find(({extensions:n})=>n?.includes(`.${t}`))}function Kit(e,t){if(t){if(Ijt(t))try{t=zFn(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:n})=>n?.({filepath:t}))}}function HFn(e,t){let n=Djt(0,e.plugins).flatMap(i=>i.languages??[]);return(VFn(n,t.language)??Git(n,t.physicalFile)??Git(n,t.file)??Kit(n,t.physicalFile)??Kit(n,t.file)??Ljt?.(n,t.physicalFile))?.parsers[0]}function Yit(e,t,n,i){return[`Invalid ${V1.red(i.key(e))} value.`,`Expected ${V1.blue(n)},`,`but received ${t===z2e?V1.gray("nothing"):V1.red(i.value(t))}.`].join(" ")}function ejt({text:e,list:t},n){let i=[];return e&&i.push(`- ${V1.blue(e)}`),t&&i.push([`- ${V1.blue(t.title)}:`].concat(t.values.map(r=>ejt(r,n-V2e.length).replace(/^|\n/g,`$&${V2e}`))).join(`
`)),tjt(i,n)}function tjt(e,t){if(e.length===1)return e[0];let[n,i]=e,[r,o]=e.map(s=>s.split(`
`,1)[0].length);return r>t&&r>o?i:n}function U_e(e,t,n){if(e===t)return 0;let i=n?.maxDistance,r=e;e.length>t.length&&(e=t,t=r);let o=e.length,s=t.length;for(;o>0&&e.charCodeAt(~-o)===t.charCodeAt(~-s);)o--,s--;let a=0;for(;a<o&&e.charCodeAt(a)===t.charCodeAt(a);)a++;if(o-=a,s-=a,i!==void 0&&s-o>i)return i;if(o===0)return i!==void 0&&s>i?i:s;let l,c,u,d,h=0,f=0;for(;h<o;)Eoe[h]=e.charCodeAt(a+h),qM[h]=++h;for(;f<s;){for(l=t.charCodeAt(a+f),u=f++,c=f,h=0;h<o;h++)d=l===Eoe[h]?u:u+1,u=qM[h],c=qM[h]=u>c?d>c?c+1:d:d>u?u+1:d;if(i!==void 0){let p=c;for(h=0;h<o;h++)qM[h]<p&&(p=qM[h]);if(p>i)return i}}return qM.length=o,Eoe.length=o,i!==void 0&&c>i?i:c}function WFn(e,t,n){if(!Array.isArray(t)||t.length===0)return;let i=n?.maxDistance,r=e.length;for(let l of t)if(l===e)return l;let o,s=Number.POSITIVE_INFINITY,a=new Set;for(let l of t){if(a.has(l))continue;a.add(l);let c=Math.abs(l.length-r);if(c>=s||c>i)continue;let u=Number.isFinite(s)?Math.min(s,i):i,d=u===void 0?U_e(e,l):U_e(e,l,{maxDistance:u});if(d>i)continue;let h=d;if(u!==void 0&&d===u&&u===i&&(h=U_e(e,l)),h<s&&(s=h,o=l,s===0))break}if(!(s>i))return o}function UFn(e,t){let n=new e(t),i=Object.create(n);for(let r of Njt)r in t&&(i[r]=$Fn(t[r],n,xA.prototype[r].length));return i}function $Fn(e,t,n){return typeof e=="function"?(...i)=>e(...i.slice(0,n-1),t,...i.slice(n-1)):()=>e}function Qit({from:e,to:t}){return{from:[e],to:t}}function qFn(e,t){let n=Object.create(null);for(let i of e){let r=i[t];if(n[r])throw new Error(`Duplicate ${t} ${JSON.stringify(r)}`);n[r]=i}return n}function GFn(e,t){let n=new Map;for(let i of e){let r=i[t];if(n.has(r))throw new Error(`Duplicate ${t} ${JSON.stringify(r)}`);n.set(r,i)}return n}function KFn(){let e=Object.create(null);return t=>{let n=JSON.stringify(t);return e[n]?!0:(e[n]=!0,!1)}}function YFn(e,t){let n=[],i=[];for(let r of e)t(r)?n.push(r):i.push(r);return[n,i]}function QFn(e){return e===Math.floor(e)}function ZFn(e,t){if(e===t)return 0;let n=typeof e,i=typeof t,r=["undefined","object","boolean","number","string"];return n!==i?r.indexOf(n)-r.indexOf(i):n!=="string"?Number(e)-Number(t):e.localeCompare(t)}function XFn(e){return(...t)=>{let n=e(...t);return typeof n=="string"?new Error(n):n}}function Zit(e){return e===void 0?{}:e}function njt(e){if(typeof e=="string")return{text:e};let{text:t,list:n}=e;return JFn((t||n)!==void 0,"Unexpected `expected` result, there should be at least one field."),n?{text:t,list:{title:n.title,values:n.values.map(njt)}}:{text:t}}function Xit(e,t){return e===!0?!0:e===!1?{value:t}:e}function Jit(e,t,n=!1){return e===!1?!1:e===!0?n?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function ert(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function T2e(e,t){return e===void 0?[]:Array.isArray(e)?e.map(n=>ert(n,t)):[ert(e,t)]}function trt(e,t){let n=T2e(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return n.length===0?{remain:t,redirect:n}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}function JFn(e,t){if(!e)throw new Error(t)}function e5n(e,t,{logger:n=!1,isCLI:i=!1,passThrough:r=!1,FlagSchema:o,descriptor:s}={}){if(i){if(!o)throw new Error("'FlagSchema' option is required.");if(!s)throw new Error("'descriptor' option is required.")}else s=$M;let a=r?Array.isArray(r)?(h,f)=>r.includes(h)?{[h]:f}:void 0:(h,f)=>({[h]:f}):(h,f,p)=>{let{_:g,...m}=p.schemas;return H2e(h,f,{...p,schemas:m})},l=t5n(t,{isCLI:i,FlagSchema:o}),c=new jjt(l,{logger:n,unknown:a,descriptor:s}),u=n!==!1;u&&K_e&&(c._hasDeprecationWarned=K_e);let d=c.normalize(e);return u&&(K_e=c._hasDeprecationWarned),d}function t5n(e,{isCLI:t,FlagSchema:n}){let i=[];t&&i.push(Mjt.create({name:"_"}));for(let r of e)i.push(n5n(r,{isCLI:t,optionInfos:e,FlagSchema:n})),r.alias&&t&&i.push(Pjt.create({name:r.alias,sourceName:r.name}));return i}function n5n(e,{isCLI:t,optionInfos:n,FlagSchema:i}){let{name:r}=e,o={name:r},s,a={};switch(e.type){case"int":s=Bjt,t&&(o.preprocess=Number);break;case"string":s=W2e;break;case"choice":s=Fjt,o.choices=e.choices.map(l=>l?.redirect?{...l,redirect:{to:{key:e.name,value:l.redirect}}}:l);break;case"boolean":s=Rjt;break;case"flag":s=i,o.flags=n.flatMap(l=>[l.alias,l.description&&l.name,l.oppositeDescription&&`no-${l.name}`].filter(Boolean));break;case"path":s=W2e;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?o.validate=(l,c,u)=>e.exception(l)||c.validate(l,u):o.validate=(l,c,u)=>l===void 0||c.validate(l,u),e.redirect&&(a.redirect=l=>l?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(a.deprecated=!0),t&&!e.array){let l=o.preprocess||(c=>c);o.preprocess=(c,u,d)=>u.preprocess(l(Array.isArray(c)?Jh(0,c,-1):c),d)}return e.array?Ojt.create({...t?{preprocess:l=>Array.isArray(l)?l:[l]}:{},...a,valueSchema:s.create(o)}):s.create({...o,...a})}function i5n(e){return!!e?.[Vjt]}async function r5n(e,t,n,i){let{node:r}=n,{language:o}=r;if(!U2e.has(o))return;let s=r.value.trim(),a;if(s){let l=o==="yaml"?o:WVe(i,{language:o});if(!l)return;a=s?await e(s,{parser:l}):""}else a=s;return W7t([r.startDelimiter,r.explicitLanguage??"",kx,a,a?kx:"",r.endDelimiter])}function o5n(e,t){return $Ve({node:e})&&(delete t.end,delete t.raw,delete t.value),t}function s5n({node:e}){return e.raw}function a5n(e,t){let n=e?i=>e(i,$2e):$jt;return t?new Proxy(n,{apply:(i,r,o)=>aue(o[0])?Hjt:Reflect.apply(i,r,o)}):n}function ijt(e,t){if(!t)throw new Error("parserName is required.");let n=UVe(0,e,r=>r.parsers&&Object.prototype.hasOwnProperty.call(r.parsers,t));if(n)return n;let i=`Couldn't resolve parser "${t}".`;throw i+=" Plugins must be explicitly added to the standalone bundle.",new HVe(i)}function l5n(e,t){if(!t)throw new Error("astFormat is required.");let n=UVe(0,e,r=>r.printers&&Object.prototype.hasOwnProperty.call(r.printers,t));if(n)return n;let i=`Couldn't find plugin for AST format "${t}".`;throw i+=" Plugins must be explicitly added to the standalone bundle.",new HVe(i)}function PVe({plugins:e,parser:t}){let n=ijt(e,t);return rjt(n,t)}function rjt(e,t){let n=e.parsers[t];return typeof n=="function"?n():n}async function c5n(e,t){let n=e.printers[t],i=typeof n=="function"?await n():n;return u5n(i)}function u5n(e){if(Aoe.has(e))return Aoe.get(e);let{features:t,getVisitorKeys:n,embed:i,massageAstNode:r,print:o,...s}=e;t=h5n(t);let a=t.experimental_frontMatterSupport;n=q2e(n,a.massageAstNode||a.embed||a.print);let l=r;r&&a.massageAstNode&&(l=new Proxy(r,{apply(h,f,p){return Wjt(...p),Reflect.apply(h,f,p)}}));let c=i;if(i){let h;c=new Proxy(i,{get(f,p,g){return p==="getVisitorKeys"?(h??(h=i.getVisitorKeys?q2e(i.getVisitorKeys,a.massageAstNode||a.embed):n),h):Reflect.get(f,p,g)},apply:(f,p,g)=>a.embed&&$Ve(...g)?r5n:Reflect.apply(f,p,g)})}let u=o;a.print&&(u=new Proxy(o,{apply(h,f,p){let[g]=p;return aue(g.node)?Ujt(g):Reflect.apply(h,f,p)}}));let d={features:t,getVisitorKeys:n,embed:c,massageAstNode:l,print:u,...s};return Aoe.set(e,d),d}function d5n(e){return{...qjt,...e}}function h5n(e){return{experimental_avoidAstMutation:!1,...e,experimental_frontMatterSupport:d5n(e?.experimental_frontMatterSupport)}}async function f5n(e,t={}){let n={...e};if(!n.parser)if(n.filepath){if(n.parser=WVe(n,{physicalFile:n.filepath}),!n.parser)throw new j2e(`No parser could be inferred for file "${n.filepath}".`)}else throw new j2e("No parser and no file path given, couldn't infer a parser.");let i=X7t({plugins:e.plugins,showDeprecated:!0}).options,r={...G2e,...Object.fromEntries(i.filter(d=>d.default!==void 0).map(d=>[d.name,d.default]))},o=ijt(n.plugins,n.parser),s=await rjt(o,n.parser);n.astFormat=s.astFormat,n.locEnd=s.locEnd,n.locStart=s.locStart;let a=o.printers?.[s.astFormat]?o:l5n(n.plugins,s.astFormat),l=await c5n(a,s.astFormat);n.printer=l,n.getVisitorKeys=l.getVisitorKeys;let c=a.defaultOptions?Object.fromEntries(Object.entries(a.defaultOptions).filter(([,d])=>d!==void 0)):{},u={...r,...c};for(let[d,h]of Object.entries(u))(n[d]===null||n[d]===void 0)&&(n[d]=h);return n.parser==="json"&&(n.trailingComma="none"),zjt(n,i,{passThrough:Object.keys(G2e),...t})}function nrt(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:AH(AH(e.white,e.bgRed),e.bold),gutter:e.gray,marker:AH(e.red,e.bold),message:AH(e.red,e.bold),reset:e.reset}}function p5n(){return new Proxy({},{get:()=>e=>e})}function g5n(e,t,n){let i=Object.assign({column:0,line:-1},e.start),r=Object.assign({},i,e.end),{linesAbove:o=2,linesBelow:s=3}=n||{},a=i.line,l=i.column,c=r.line,u=r.column,d=Math.max(a-(o+1),0),h=Math.min(t.length,c+s);a===-1&&(d=0),c===-1&&(h=t.length);let f=c-a,p={};if(f)for(let g=0;g<=f;g++){let m=g+a;if(!l)p[m]=!0;else if(g===0){let v=t[m-1].length;p[m]=[l,v-l+1]}else if(g===f)p[m]=[0,u];else{let v=t[m-g].length;p[m]=[0,v]}}else l===u?l?p[a]=[l,0]:p[a]=!0:p[a]=[l,u-l];return{start:d,end:h,markerLines:p}}function m5n(e,t,n={}){let i=p5n(),r=e.split(K2e),{start:o,end:s,markerLines:a}=g5n(t,r,n),l=t.start&&typeof t.start.column=="number",c=String(s).length,u=e.split(K2e,s).slice(o,s).map((d,h)=>{let f=o+1+h,p=` ${` ${f}`.slice(-c)} |`,g=a[f],m=!a[f+1];if(g){let v="";if(Array.isArray(g)){let y=d.slice(0,Math.max(g[0]-1,0)).replace(/[^\t]/g," "),b=g[1]||1;v=[`
 `,i.gutter(p.replace(/\d/g," "))," ",y,i.marker("^").repeat(b)].join(""),m&&n.message&&(v+=" "+i.message(n.message))}return[i.marker(">"),i.gutter(p),d.length>0?` ${d}`:"",v].join("")}else return` ${i.gutter(p)}${d.length>0?` ${d}`:""}`}).join(`
`);return n.message&&!l&&(u=`${" ".repeat(c+1)}${n.message}
${u}`),u}async function v5n(e,t){let n=await PVe(t),i=n.preprocess?await n.preprocess(e,t):e;t.originalText=i;let r;try{r=await n.parse(i,t,t)}catch(o){y5n(o,e)}return{text:i,ast:r}}function y5n(e,t){let{loc:n}=e;if(n){let i=m5n(t,n,{});throw e.message+=`
`+i,e.codeFrame=i,e}throw e}async function b5n(e,t,n,i,r){if(n.embeddedLanguageFormatting!=="auto")return;let{printer:o}=n,{embed:s}=o;if(!s)return;if(s.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let{hasPrettierIgnore:a}=o,{getVisitorKeys:l}=s,c=[];h();let u=e.stack;for(let{print:f,node:p,pathStack:g}of c)try{e.stack=g;let m=await f(d,t,e,n);m&&r.set(p,m)}catch(m){if(globalThis.PRETTIER_DEBUG)throw m}e.stack=u;function d(f,p){return _5n(f,p,n,i)}function h(){let{node:f}=e;if(f===null||typeof f!="object"||a?.(e))return;for(let g of l(f))Array.isArray(f[g])?e.each(h,g):e.call(h,g);let p=s(e,n);if(p){if(typeof p=="function"){c.push({print:p,node:f,pathStack:[...e.stack]});return}r.set(f,p)}}}async function _5n(e,t,n,i){let r=await $2({...n,...t,parentParser:n.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:o}=await m7(e,r),s=await i(o,r);return H7t(s)}function w5n(e,t,n,i){let{originalText:r,[Symbol.for("comments")]:o,locStart:s,locEnd:a,[Symbol.for("printedComments")]:l}=t,{node:c}=e,u=s(c),d=a(c);for(let f of o)s(f)>=u&&a(f)<=d&&l.add(f);let{printPrettierIgnored:h}=t.printer;return h?h(e,t,n,i):r.slice(u,d)}async function bpe(e,t){({ast:e}=await ojt(e,t));let n=new Map,i=new Sjt(e),r=Ejt(t),o=new Map;await b5n(i,a,t,bpe,o);let s=await irt(i,t,a,void 0,o);if(MFn(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[FI,s];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[s,FI]}return s;function a(c,u){return c===void 0||c===i?l(u):Array.isArray(c)?i.call(()=>l(u),...c):i.call(()=>l(u),c)}function l(c){r(i);let u=i.node;if(u==null)return"";let d=_pe(u)&&c===void 0;if(d&&n.has(u))return n.get(u);let h=irt(i,t,a,c,o);return d&&n.set(u,h),h}}function irt(e,t,n,i,r){let{node:o}=e,{printer:s}=t,a;switch(s.hasPrettierIgnore?.(e)?a=Gjt(e,t,n,i):r.has(o)?a=r.get(o):a=s.print(e,t,n,i),o){case t.cursorNode:a=Coe(a,l=>[FI,l,FI]);break;case t.nodeBeforeCursor:a=Coe(a,l=>[l,FI]);break;case t.nodeAfterCursor:a=Coe(a,l=>[FI,l]);break}return s.printComment&&!s.willPrintOwnComments?.(e,t)&&(a=PFn(e,a,t)),a}async function ojt(e,t){let n=e.comments??[];t[Symbol.for("comments")]=n,t[Symbol.for("printedComments")]=new Set,AFn(e,t);let{printer:{preprocess:i}}=t;return e=i?await i(e,t):e,{ast:e,comments:n}}function C5n(e,t){let{cursorOffset:n,locStart:i,locEnd:r,getVisitorKeys:o}=t,s=f=>i(f)<=n&&r(f)>=n,a=e,l=[e];for(let f of SFn(e,{getVisitorKeys:o,filter:s}))l.push(f),a=f;if(xFn(a,{getVisitorKeys:o}))return{cursorNode:a};let c,u,d=-1,h=Number.POSITIVE_INFINITY;for(;l.length>0&&(c===void 0||u===void 0);){a=l.pop();let f=c!==void 0,p=u!==void 0;for(let g of ype(a,{getVisitorKeys:o})){if(!f){let m=r(g);m<=n&&m>d&&(c=g,d=m)}if(!p){let m=i(g);m>=n&&m<h&&(u=g,h=m)}}}return{nodeBeforeCursor:c,nodeAfterCursor:u}}function S5n(e,t){let{printer:n}=t,i=n.massageAstNode;if(!i)return e;let{getVisitorKeys:r}=n,{ignoredProperties:o}=i;return s(e);function s(a,l){if(!_pe(a))return a;if(Array.isArray(a))return a.map(h=>s(h,l)).filter(Boolean);let c={},u=new Set(r(a));for(let h in a)!Object.prototype.hasOwnProperty.call(a,h)||o?.has(h)||(u.has(h)?c[h]=s(a[h],a):c[h]=a[h]);let d=i(a,c,l);if(d!==null)return d??c}}function x5n(e,t){return t=new Set(t),e.find(n=>GVe.has(n.type)&&t.has(n))}function rrt(e){let t=Yjt(0,e,n=>n.type!=="Program"&&n.type!=="File");return t===-1?e:e.slice(0,t+1)}function E5n(e,t,{locStart:n,locEnd:i}){let[r,...o]=e,[s,...a]=t;if(r===s)return[r,s];let l=n(r);for(let u of rrt(a))if(n(u)>=l)s=u;else break;let c=i(s);for(let u of rrt(o)){if(i(u)<=c)r=u;else break;if(r===s)break}return[r,s]}function k2e(e,t,n,i,r=[],o){let{locStart:s,locEnd:a}=n,l=s(e),c=a(e);if(t>c||t<l||o==="rangeEnd"&&t===l||o==="rangeStart"&&t===c)return;let u=[e,...r],d=jVe(e,u,{cache:zVe,locStart:s,locEnd:a,getVisitorKeys:n.getVisitorKeys,filter:n.printer.canAttachComment,getChildren:n.printer.getCommentChildNodes});for(let h of d){let f=k2e(h,t,n,i,u,o);if(f)return f}if(i(e,r[0]))return u}function A5n(e,t){return t!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}function ort(e,t,n){if(!t)return!1;switch(e.parser){case"flow":case"hermes":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"oxc":case"oxc-ts":case"__babel_estree":return A5n(t.type,n?.type);case"json":case"json5":case"jsonc":case"json-stringify":return GVe.has(t.type);case"graphql":return Zjt.has(t.kind);case"vue":return t.tag!=="root"}return!1}function D5n(e,t,n){let{rangeStart:i,rangeEnd:r,locStart:o,locEnd:s}=t;HA(r>i);let a=e.slice(i,r).search(/\S/u),l=a===-1;if(!l)for(i+=a;r>i&&!/\S/u.test(e[r-1]);--r);let c=k2e(n,i,t,(f,p)=>ort(t,f,p),[],"rangeStart");if(!c)return;let u=l?c:k2e(n,r,t,f=>ort(t,f),[],"rangeEnd");if(!u)return;let d,h;if(Qjt(t)){let f=x5n(c,u);d=f,h=f}else[d,h]=E5n(c,u,t);return[Math.min(o(d),o(h)),Math.max(s(d),s(h))]}async function sjt(e,t,n=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:i,text:r}=await m7(e,t);t.cursorOffset>=0&&(t={...t,...qVe(i,t)});let o=await bpe(i,t);n>0&&(o=U7t([kx,o],n,t.tabWidth));let s=vpe(o,t);if(n>0){let l=s.formatted.trim();s.cursorNodeStart!==void 0&&(s.cursorNodeStart-=s.formatted.indexOf(l),s.cursorNodeStart<0&&(s.cursorNodeStart=0,s.cursorNodeText=s.cursorNodeText.trimStart()),s.cursorNodeStart+s.cursorNodeText.length>l.length&&(s.cursorNodeText=s.cursorNodeText.trimEnd())),s.formatted=l+IVe(t.endOfLine)}let a=t[Symbol.for("comments")];if(t.cursorOffset>=0){let l,c,u,d;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&s.cursorNodeText)if(u=s.cursorNodeStart,d=s.cursorNodeText,t.cursorNode)l=t.locStart(t.cursorNode),c=r.slice(l,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");l=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let v=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):r.length;c=r.slice(l,v)}else l=0,c=r,u=0,d=s.formatted;let h=t.cursorOffset-l;if(c===d)return{formatted:s.formatted,cursorOffset:u+h,comments:a};let f=c.split("");f.splice(h,0,Y2e);let p=d.split(""),g=z2n(f,p),m=u;for(let v of g)if(v.removed){if(v.value.includes(Y2e))break}else m+=v.count;return{formatted:s.formatted,cursorOffset:m,comments:a}}return{formatted:s.formatted,cursorOffset:-1,comments:a}}async function T5n(e,t){let{ast:n,text:i}=await m7(e,t),[r,o]=D5n(i,t,n)??[0,0],s=i.slice(r,o),a=Math.min(r,i.lastIndexOf(`
`,r)+1),l=i.slice(a,r).match(/^\s*/u)[0],c=sue(l,t.tabWidth),u=await sjt(s,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>r&&t.cursorOffset<=o?t.cursorOffset-r:-1,endOfLine:"lf"},c),d=u.formatted.trimEnd(),{cursorOffset:h}=t;h>o?h+=d.length-s.length:u.cursorOffset>=0&&(h=u.cursorOffset+r);let f=i.slice(0,r)+d+i.slice(o);if(t.endOfLine!=="lf"){let p=IVe(t.endOfLine);h>=0&&p===`\r
`&&(h+=V7t(f.slice(0,h),`
`)),f=FK(0,f,`
`,p)}return{formatted:f,cursorOffset:h,comments:u.comments}}function $_e(e,t,n){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?n:t}function srt(e,t){let{cursorOffset:n,rangeStart:i,rangeEnd:r}=t;return n=$_e(e,n,-1),i=$_e(e,i,0),r=$_e(e,r,e.length),{...t,cursorOffset:n,rangeStart:i,rangeEnd:r}}function ajt(e,t){let{cursorOffset:n,rangeStart:i,rangeEnd:r,endOfLine:o}=srt(e,t),s=e.charAt(0)===KVe;if(s&&(e=e.slice(1),n--,i--,r--),o==="auto"&&(o=V2n(e)),e.includes("\r")){let a=l=>V7t(e.slice(0,Math.max(l,0)),`\r
`);n-=a(n),i-=a(i),r-=a(r),e=H2n(e)}return{hasBOM:s,text:e,options:srt(e,{...t,cursorOffset:n,rangeStart:i,rangeEnd:r,endOfLine:o})}}async function art(e,t){let n=await PVe(t);return!n.hasPragma||n.hasPragma(e)}async function k5n(e,t){return(await PVe(t)).hasIgnorePragma?.(e)}async function ljt(e,t){let{hasBOM:n,text:i,options:r}=ajt(e,await $2(t));if(r.rangeStart>=r.rangeEnd&&i!==""||r.requirePragma&&!await art(i,r)||r.checkIgnorePragma&&await k5n(i,r))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let o;return r.rangeStart>0||r.rangeEnd<i.length?o=await T5n(i,r):(!r.requirePragma&&r.insertPragma&&r.printer.insertPragma&&!await art(i,r)&&(i=r.printer.insertPragma(i)),o=await sjt(i,r)),n&&(o.formatted=KVe+o.formatted,o.cursorOffset>=0&&o.cursorOffset++),o}async function I5n(e,t,n){let{text:i,options:r}=ajt(e,await $2(t)),o=await m7(i,r);return n&&(n.preprocessForPrint&&(o.ast=await ojt(o.ast,r)),n.massage&&(o.ast=Kjt(o.ast,r))),o}async function L5n(e,t){t=await $2(t);let n=await bpe(e,t);return vpe(n,t)}async function N5n(e,t){let n=dFn(e),{formatted:i}=await ljt(n,{...t,parser:"__js_expression"});return i}async function P5n(e,t){t=await $2(t);let{ast:n}=await m7(e,t);return t.cursorOffset>=0&&(t={...t,...qVe(n,t)}),bpe(n,t)}async function M5n(e,t){return vpe(e,await $2(t))}function O5n(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let n=t+2;n<e.length;++n)if(e.charAt(n)==="*"&&e.charAt(n+1)==="/")return n+2}return t}function R5n(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?F2e(e,t):t}function F5n(e,t){let n=null,i=t;for(;i!==n;)n=i,i=MD(e,i),i=lue(e,i),i=cue(e,i),i=CL(e,i);return i}function B5n(e,t){let n=null,i=t;for(;i!==n;)n=i,i=R2e(e,i),i=lue(e,i),i=MD(e,i);return i=cue(e,i),i=CL(e,i),i!==!1&&bD(e,i)}function j5n(e,t){let n=e.lastIndexOf(`
`);return n===-1?0:sue(e.slice(n+1).match(/^[\t ]*/u)[0],t)}function z5n(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function V5n(e,t){let n=e.matchAll(new RegExp(`(?:${z5n(t)})+`,"gu"));return n.reduce||(n=[...n]),n.reduce((i,[r])=>Math.max(i,r.length),0)/t.length}function H5n(e,t){let n=Cpe(e,t);return n===!1?"":e.charAt(n)}function W5n(e,t){let{preferred:n,alternate:i}=t===!0||t==="'"?Xjt:Jjt,{length:r}=e,o=0,s=0;for(let a=0;a<r;a++){let l=e.charCodeAt(a);l===n.codePoint?o++:l===i.codePoint&&s++}return(o>s?i:n).character}function U5n(e,t,n){for(let i=t;i<n;++i)if(e.charAt(i)===`
`)return!0;return!1}function $5n(e,t,n={}){return MD(e,n.backwards?t-1:t,n)!==t}function q5n(e,t,n){return Cpe(e,n(t))}function G5n(e,t){return arguments.length===2||typeof t=="number"?Cpe(e,t):q5n(...arguments)}function K5n(e,t,n){return wpe(e,n(t))}function Y5n(e,t){return arguments.length===2||typeof t=="number"?wpe(e,t):K5n(...arguments)}function Q5n(e,t,n){return uue(e,n(t))}function Z5n(e,t,n){let i=t==='"'?"'":'"',r=FK(0,e,/\\(.)|(["'])/gsu,(o,s,a)=>s===i?s:a===t?"\\"+a:a||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(s)?s:"\\"+s));return t+r+t}function X5n(e,t){return arguments.length===2||typeof t=="number"?uue(e,t):Q5n(...arguments)}function kP(e,t=1){return async(...n)=>{let i=n[t]??{},r=i.plugins??[];return n[t]={...i,plugins:Array.isArray(r)?r:Object.values(r)},e(...n)}}async function MVe(e,t){let{formatted:n}=await due(e,{...t,cursorOffset:-1});return n}async function cjt(e,t){return await MVe(e,t)===e}var lrt,VX,crt,urt,drt,hrt,frt,HX,prt,grt,mrt,I2e,w5,vrt,yrt,FK,brt,_rt,ujt,wrt,HA,OVe,RVe,Crt,djt,nue,L2e,TU,hjt,fjt,pjt,Srt,Jh,bN,Ux,yD,$x,qx,Dx,Lv,gC,I0,Gx,Kx,Tx,fp,mC,Ky,FVe,_N,gjt,xrt,jR,N2e,iue,vC,BVe,mjt,vjt,EH,FI,P2e,Ert,Soe,kx,q_e,M2e,Art,Drt,yjt,Trt,bjt,_jt,rue,wjt,Cjt,O2e,Hm,b1,oue,sue,krt,Sjt,_pe,Irt,MD,R2e,F2e,B2e,CL,bD,xjt,jVe,zVe,xoe,VVe,wpe,Ejt,HVe,j2e,Ajt,Lrt,Nrt,Djt,Tjt,kjt,Ijt,Ljt,WVe,$M,WX,V1,G_e,Prt,z2e,Iz,V2e,Mrt,qM,Eoe,H2e,Njt,xA,Pjt,Mjt,Ojt,Rjt,Fjt,Ort,Bjt,W2e,Rrt,Frt,Brt,jrt,jjt,K_e,zjt,zrt,Vrt,UVe,Vjt,Hjt,aue,U2e,$Ve,Wjt,Ujt,$2e,$jt,q2e,Aoe,Hrt,qjt,G2e,$2,UX,AH,K2e,m7,Gjt,qVe,Kjt,Wrt,Urt,Yjt,Qjt,GVe,Zjt,KVe,Y2e,Doe,$rt,qrt,Grt,Q2e,Toe,lue,cue,Cpe,uue,Krt,Yrt,Qrt,Y_e,Q_e,Xjt,Jjt,Zrt,Xrt,Jrt,due,Z2e,X2e,ezt=se({"../node_modules/.pnpm/prettier@3.8.1/node_modules/prettier/standalone.mjs"(){lrt=Object.create,VX=Object.defineProperty,crt=Object.getOwnPropertyDescriptor,urt=Object.getOwnPropertyNames,drt=Object.getPrototypeOf,hrt=Object.prototype.hasOwnProperty,frt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),HX=(e,t)=>{for(var n in t)VX(e,n,{get:t[n],enumerable:!0})},prt=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of urt(t))!hrt.call(e,r)&&r!==n&&VX(e,r,{get:()=>t[r],enumerable:!(i=crt(t,r))||i.enumerable});return e},grt=(e,t,n)=>(n=e!=null?lrt(drt(e)):{},prt(t||!e||!e.__esModule?VX(n,"default",{value:e,enumerable:!0}):n,e)),mrt=frt((e,t)=>{var n,i,r,o,s,a,l,c,u,d,h,f,p,g,m,v,y,b,w;p=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,f=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,n=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,m=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,h=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,v=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,w=/[\t\v\f\ufeff\p{Zs}]+/yu,c=/\r?\n|[\r\u2028\u2029]/y,u=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,g=/\/\/.*/y,r=/[<>.:={}]|\/(?![\/*])/y,i=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,o=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,s=/[^<>{}]+/y,b=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,y=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,a=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,l=/^(?:return|throw|yield)$/,d=RegExp(c.source),t.exports=function*(E,{jsx:A=!1}={}){var D,T,M,P,F,N,j,W,J,ee,Q,H,q,le;for({length:N}=E,P=0,F="",le=[{tag:"JS"}],D=[],Q=0,H=!1;P<N;){switch(W=le[le.length-1],W.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(E[P]==="/"&&(b.test(F)||a.test(F))&&(p.lastIndex=P,j=p.exec(E))){P=p.lastIndex,F=j[0],H=!0,yield{type:"RegularExpressionLiteral",value:j[0],closed:j[1]!==void 0&&j[1]!=="\\"};continue}if(f.lastIndex=P,j=f.exec(E)){switch(q=j[0],J=f.lastIndex,ee=q,q){case"(":F==="?NonExpressionParenKeyword"&&le.push({tag:"JSNonExpressionParen",nesting:Q}),Q++,H=!1;break;case")":Q--,H=!0,W.tag==="JSNonExpressionParen"&&Q===W.nesting&&(le.pop(),ee="?NonExpressionParenEnd",H=!1);break;case"{":f.lastIndex=0,M=!y.test(F)&&(b.test(F)||a.test(F)),D.push(M),H=!1;break;case"}":switch(W.tag){case"InterpolationInTemplate":if(D.length===W.nesting){v.lastIndex=P,j=v.exec(E),P=v.lastIndex,F=j[0],j[1]==="${"?(F="?InterpolationInTemplate",H=!1,yield{type:"TemplateMiddle",value:j[0]}):(le.pop(),H=!0,yield{type:"TemplateTail",value:j[0],closed:j[1]==="`"});continue}break;case"InterpolationInJSX":if(D.length===W.nesting){le.pop(),P+=1,F="}",yield{type:"JSXPunctuator",value:"}"};continue}}H=D.pop(),ee=H?"?ExpressionBraceEnd":"}";break;case"]":H=!0;break;case"++":case"--":ee=H?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(A&&(b.test(F)||a.test(F))){le.push({tag:"JSXTag"}),P+=1,F="<",yield{type:"JSXPunctuator",value:q};continue}H=!1;break;default:H=!1}P=J,F=ee,yield{type:"Punctuator",value:q};continue}if(n.lastIndex=P,j=n.exec(E)){switch(P=n.lastIndex,ee=j[0],j[0]){case"for":case"if":case"while":case"with":F!=="."&&F!=="?."&&(ee="?NonExpressionParenKeyword")}F=ee,H=!a.test(j[0]),yield{type:j[1]==="#"?"PrivateIdentifier":"IdentifierName",value:j[0]};continue}if(m.lastIndex=P,j=m.exec(E)){P=m.lastIndex,F=j[0],H=!0,yield{type:"StringLiteral",value:j[0],closed:j[2]!==void 0};continue}if(h.lastIndex=P,j=h.exec(E)){P=h.lastIndex,F=j[0],H=!0,yield{type:"NumericLiteral",value:j[0]};continue}if(v.lastIndex=P,j=v.exec(E)){P=v.lastIndex,F=j[0],j[1]==="${"?(F="?InterpolationInTemplate",le.push({tag:"InterpolationInTemplate",nesting:D.length}),H=!1,yield{type:"TemplateHead",value:j[0]}):(H=!0,yield{type:"NoSubstitutionTemplate",value:j[0],closed:j[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(r.lastIndex=P,j=r.exec(E)){switch(P=r.lastIndex,ee=j[0],j[0]){case"<":le.push({tag:"JSXTag"});break;case">":le.pop(),F==="/"||W.tag==="JSXTagEnd"?(ee="?JSX",H=!0):le.push({tag:"JSXChildren"});break;case"{":le.push({tag:"InterpolationInJSX",nesting:D.length}),ee="?InterpolationInJSX",H=!1;break;case"/":F==="<"&&(le.pop(),le[le.length-1].tag==="JSXChildren"&&le.pop(),le.push({tag:"JSXTagEnd"}))}F=ee,yield{type:"JSXPunctuator",value:j[0]};continue}if(i.lastIndex=P,j=i.exec(E)){P=i.lastIndex,F=j[0],yield{type:"JSXIdentifier",value:j[0]};continue}if(o.lastIndex=P,j=o.exec(E)){P=o.lastIndex,F=j[0],yield{type:"JSXString",value:j[0],closed:j[2]!==void 0};continue}break;case"JSXChildren":if(s.lastIndex=P,j=s.exec(E)){P=s.lastIndex,F=j[0],yield{type:"JSXText",value:j[0]};continue}switch(E[P]){case"<":le.push({tag:"JSXTag"}),P++,F="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":le.push({tag:"InterpolationInJSX",nesting:D.length}),P++,F="?InterpolationInJSX",H=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(w.lastIndex=P,j=w.exec(E)){P=w.lastIndex,yield{type:"WhiteSpace",value:j[0]};continue}if(c.lastIndex=P,j=c.exec(E)){P=c.lastIndex,H=!1,l.test(F)&&(F="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:j[0]};continue}if(u.lastIndex=P,j=u.exec(E)){P=u.lastIndex,d.test(j[0])&&(H=!1,l.test(F)&&(F="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:j[0],closed:j[1]!==void 0};continue}if(g.lastIndex=P,j=g.exec(E)){P=g.lastIndex,H=!1,yield{type:"SingleLineComment",value:j[0]};continue}T=String.fromCodePoint(E.codePointAt(P)),P+=T.length,F=T,H=!1,yield{type:W.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:T}}}}),I2e={},HX(I2e,{__debug:()=>X2e,check:()=>cjt,doc:()=>Doe,format:()=>MVe,formatWithCursor:()=>due,getSupportInfo:()=>Z2e,util:()=>Toe,version:()=>Q2e}),w5=(e,t)=>(n,i,...r)=>n|1&&i==null?void 0:(t.call(i)??i[e]).apply(i,r),vrt=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},yrt=w5("replaceAll",function(){if(typeof this=="string")return vrt}),FK=yrt,brt=class{diff(e,t,n={}){let i;typeof n=="function"?(i=n,n={}):"callback"in n&&(i=n.callback);let r=this.castInput(e,n),o=this.castInput(t,n),s=this.removeEmpty(this.tokenize(r,n)),a=this.removeEmpty(this.tokenize(o,n));return this.diffWithOptionsObj(s,a,n,i)}diffWithOptionsObj(e,t,n,i){var r;let o=v=>{if(v=this.postProcess(v,n),i){setTimeout(function(){i(v)},0);return}else return v},s=t.length,a=e.length,l=1,c=s+a;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let u=(r=n.timeout)!==null&&r!==void 0?r:1/0,d=Date.now()+u,h=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(h[0],t,e,0,n);if(h[0].oldPos+1>=a&&f+1>=s)return o(this.buildValues(h[0].lastComponent,t,e));let p=-1/0,g=1/0,m=()=>{for(let v=Math.max(p,-l);v<=Math.min(g,l);v+=2){let y,b=h[v-1],w=h[v+1];b&&(h[v-1]=void 0);let E=!1;if(w){let D=w.oldPos-v;E=w&&0<=D&&D<s}let A=b&&b.oldPos+1<a;if(!E&&!A){h[v]=void 0;continue}if(!A||E&&b.oldPos<w.oldPos?y=this.addToPath(w,!0,!1,0,n):y=this.addToPath(b,!1,!0,1,n),f=this.extractCommon(y,t,e,v,n),y.oldPos+1>=a&&f+1>=s)return o(this.buildValues(y.lastComponent,t,e))||!0;h[v]=y,y.oldPos+1>=a&&(g=Math.min(g,v-1)),f+1>=s&&(p=Math.max(p,v+1))}l++};if(i)(function v(){setTimeout(function(){if(l>c||Date.now()>d)return i(void 0);m()||v()},0)})();else for(;l<=c&&Date.now()<=d;){let v=m();if(v)return v}}addToPath(e,t,n,i,r){let o=e.lastComponent;return o&&!r.oneChangePerToken&&o.added===t&&o.removed===n?{oldPos:e.oldPos+i,lastComponent:{count:o.count+1,added:t,removed:n,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+i,lastComponent:{count:1,added:t,removed:n,previousComponent:o}}}extractCommon(e,t,n,i,r){let o=t.length,s=n.length,a=e.oldPos,l=a-i,c=0;for(;l+1<o&&a+1<s&&this.equals(n[a+1],t[l+1],r);)l++,a++,c++,r.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return c&&!r.oneChangePerToken&&(e.lastComponent={count:c,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=a,l}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let i=[],r;for(;e;)i.push(e),r=e.previousComponent,delete e.previousComponent,e=r;i.reverse();let o=i.length,s=0,a=0,l=0;for(;s<o;s++){let c=i[s];if(c.removed)c.value=this.join(n.slice(l,l+c.count)),l+=c.count;else{if(!c.added&&this.useLongestToken){let u=t.slice(a,a+c.count);u=u.map(function(d,h){let f=n[l+h];return f.length>d.length?f:d}),c.value=this.join(u)}else c.value=this.join(t.slice(a,a+c.count));a+=c.count,c.added||(l+=c.count)}}return i}},_rt=class extends brt{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}},ujt=new _rt,wrt=()=>{},HA=wrt,OVe="cr",RVe="crlf",Crt="lf",djt=Crt,nue="\r",L2e=`\r
`,TU=`
`,hjt=TU,fjt=new Map([[TU,/\n/gu],[nue,/\r/gu],[L2e,/\r\n/gu]]),pjt=/\r\n?/gu,Srt=w5("at",function(){if(Array.isArray(this)||typeof this=="string")return W2n}),Jh=Srt,bN="string",Ux="array",yD="cursor",$x="indent",qx="align",Dx="trim",Lv="group",gC="fill",I0="if-break",Gx="indent-if-break",Kx="line-suffix",Tx="line-suffix-boundary",fp="line",mC="label",Ky="break-parent",FVe=new Set([yD,$x,qx,Dx,Lv,gC,I0,Gx,Kx,Tx,fp,mC,Ky]),_N=$2n,gjt=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e),xrt=class extends Error{name="InvalidDocError";constructor(e){super(q2n(e)),this.doc=e}},jR=xrt,N2e={},iue=G2n,vC=HA,BVe=HA,mjt=HA,vjt=HA,EH={type:Ky},FI={type:yD},P2e={type:fp},Ert={type:fp,soft:!0},Soe={type:fp,hard:!0},kx=[Soe,EH],q_e={type:fp,hard:!0,literal:!0},M2e=[q_e,EH],Art={type:Tx},Drt={type:Dx},yjt=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\u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uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,Trt="©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇",bjt=/[^\x20-\x7F]/u,_jt=new Set(Trt),rue=pFn,wjt={type:0},Cjt={type:1},O2e={value:"",length:0,queue:[],get root(){return O2e}},Hm=Symbol("MODE_BREAK"),b1=Symbol("MODE_FLAT"),oue=Symbol("DOC_FILL_PRINTED_LENGTH"),sue=yFn,krt=class{constructor(e){this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return Jh(0,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:Jh(0,this.stack,-2)}get node(){return Jh(0,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=Jh(0,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...this.#t()]}getName(){let{stack:e}=this,{length:t}=e;return t>1?Jh(0,e,-2):null}getValue(){return Jh(0,this.stack,-1)}getNode(e=0){let t=this.#e(e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}#e(e){let{stack:t}=this;for(let n=t.length-1;n>=0;n-=2)if(!Array.isArray(t[n])&&--e<0)return n;return-1}call(e,...t){let{stack:n}=this,{length:i}=n,r=Jh(0,n,-1);for(let o of t)r=r?.[o],n.push(o,r);try{return e(this)}finally{n.length=i}}callParent(e,t=0){let n=this.#e(t+1),i=this.stack.splice(n+1);try{return e(this)}finally{this.stack.push(...i)}}each(e,...t){let{stack:n}=this,{length:i}=n,r=Jh(0,n,-1);for(let o of t)r=r[o],n.push(o,r);try{for(let o=0;o<r.length;++o)n.push(o,r[o]),e(this,o,r),n.length-=2}finally{n.length=i}}map(e,...t){let n=[];return this.each((i,r,o)=>{n[r]=e(i,r,o)},...t),n}match(...e){let t=this.stack.length-1,n=null,i=this.stack[t--];for(let r of e){if(i===void 0)return!1;let o=null;if(typeof n=="number"&&(o=n,n=this.stack[t--],i=this.stack[t--]),r&&!r(i,n,o))return!1;n=this.stack[t--],i=this.stack[t--]}return!0}findAncestor(e){for(let t of this.#t())if(e(t))return t}hasAncestor(e){for(let t of this.#t())if(e(t))return!0;return!1}*#t(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let n=e[t];Array.isArray(n)||(yield n)}}},Sjt=krt,_pe=bFn,Irt=kz(/\s/u),MD=kz(" 	"),R2e=kz(",; 	"),F2e=kz(/[^\n\r]/u),B2e=e=>e===`
`||e==="\r"||e==="\u2028"||e==="\u2029",CL=_Fn,bD=wFn,xjt=CFn,jVe=Y7t,zVe=new WeakMap,xoe=()=>!1,VVe=e=>!/[\S\n\u2028\u2029]/u.test(e),wpe=kFn,Ejt=()=>HA,HVe=class extends Error{name="ConfigError"},j2e=class extends Error{name="UndefinedParserError"},Ajt={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}},Lrt=Array.prototype.toReversed??function(){return[...this].reverse()},Nrt=w5("toReversed",function(){if(Array.isArray(this))return Lrt}),Djt=Nrt,Tjt=FFn(),kjt=e=>String(e).split(/[/\\]/u).pop(),Ijt=e=>String(e).startsWith("file:"),Ljt=void 0,WVe=HFn,$M={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(n=>$M.value(n)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(n=>`${$M.key(n)}: ${$M.value(e[n])}`).join(", ")} }`},pair:({key:e,value:t})=>$M.value({[e]:t})},WX=new Proxy(String,{get:()=>WX}),V1=WX,G_e=()=>WX,Prt=(e,t,{descriptor:n})=>{let i=[`${V1.yellow(typeof e=="string"?n.key(e):n.pair(e))} is deprecated`];return t&&i.push(`we now treat it as ${V1.blue(typeof t=="string"?n.key(t):n.pair(t))}`),i.join("; ")+"."},z2e=Symbol.for("vnopts.VALUE_NOT_EXIST"),Iz=Symbol.for("vnopts.VALUE_UNCHANGED"),V2e=" ".repeat(2),Mrt=(e,t,n)=>{let{text:i,list:r}=n.normalizeExpectedResult(n.schemas[e].expected(n)),o=[];return i&&o.push(Yit(e,t,i,n.descriptor)),r&&o.push([Yit(e,t,r.title,n.descriptor)].concat(r.values.map(s=>ejt(s,n.loggerPrintWidth))).join(`
`)),tjt(o,n.loggerPrintWidth)},qM=[],Eoe=[],H2e=(e,t,{descriptor:n,logger:i,schemas:r})=>{let o=[`Ignored unknown option ${V1.yellow(n.pair({key:e,value:t}))}.`],s=WFn(e,Object.keys(r),{maxDistance:3});s&&o.push(`Did you mean ${V1.blue(n.key(s))}?`),i.warn(o.join(" "))},Njt=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"],xA=class{static create(e){return UFn(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return Iz}},Pjt=class extends xA{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},Mjt=class extends xA{expected(){return"anything"}validate(){return!0}},Ojt=class extends xA{constructor({valueSchema:e,name:t=e.name,...n}){super({...n,name:t}),this._valueSchema=e}expected(e){let{text:t,list:n}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(e,t){if(!Array.isArray(e))return!1;let n=[];for(let i of e){let r=t.normalizeValidateResult(this._valueSchema.validate(i,t),i);r!==!0&&n.push(r.value)}return n.length===0?!0:{value:n}}deprecated(e,t){let n=[];for(let i of e){let r=t.normalizeDeprecatedResult(this._valueSchema.deprecated(i,t),i);r!==!1&&n.push(...r.map(({value:o})=>({value:[o]})))}return n}forward(e,t){let n=[];for(let i of e){let r=t.normalizeForwardResult(this._valueSchema.forward(i,t),i);n.push(...r.map(Qit))}return n}redirect(e,t){let n=[],i=[];for(let r of e){let o=t.normalizeRedirectResult(this._valueSchema.redirect(r,t),r);"remain"in o&&n.push(o.remain),i.push(...o.redirect.map(Qit))}return n.length===0?{redirect:i}:{redirect:i,remain:n}}overlap(e,t){return e.concat(t)}},Rjt=class extends xA{expected(){return"true or false"}validate(e){return typeof e=="boolean"}},Fjt=class extends xA{constructor(e){super(e),this._choices=GFn(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(r=>this._choices.get(r)).filter(({hidden:r})=>!r).map(r=>r.value).sort(ZFn).map(e.value),n=t.slice(0,-2),i=t.slice(-2);return{text:n.concat(i.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},Ort=class extends xA{expected(){return"a number"}validate(e,t){return typeof e=="number"}},Bjt=class extends Ort{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&QFn(e)}},W2e=class extends xA{expected(){return"a string"}validate(e){return typeof e=="string"}},Rrt=$M,Frt=H2e,Brt=Mrt,jrt=Prt,jjt=class{constructor(e,t){let{logger:n=console,loggerPrintWidth:i=80,descriptor:r=Rrt,unknown:o=Frt,invalid:s=Brt,deprecated:a=jrt,missing:l=()=>!1,required:c=()=>!1,preprocess:u=h=>h,postprocess:d=()=>Iz}=t||{};this._utils={descriptor:r,logger:n||{warn:()=>{}},loggerPrintWidth:i,schemas:qFn(e,"name"),normalizeDefaultResult:Zit,normalizeExpectedResult:njt,normalizeDeprecatedResult:Jit,normalizeForwardResult:T2e,normalizeRedirectResult:trt,normalizeValidateResult:Xit},this._unknownHandler=o,this._invalidHandler=XFn(s),this._deprecatedHandler=a,this._identifyMissing=(h,f)=>!(h in f)||l(h,f),this._identifyRequired=c,this._preprocess=u,this._postprocess=d,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=KFn()}normalize(e){let t={},n=[this._preprocess(e,this._utils)],i=()=>{for(;n.length!==0;){let r=n.shift(),o=this._applyNormalization(r,t);n.push(...o)}};i();for(let r of Object.keys(this._utils.schemas)){let o=this._utils.schemas[r];if(!(r in t)){let s=Zit(o.default(this._utils));"value"in s&&n.push({[r]:s.value})}}i();for(let r of Object.keys(this._utils.schemas)){if(!(r in t))continue;let o=this._utils.schemas[r],s=t[r],a=o.postprocess(s,this._utils);a!==Iz&&(this._applyValidation(a,r,o),t[r]=a)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let n=[],{knownKeys:i,unknownKeys:r}=this._partitionOptionKeys(e);for(let o of i){let s=this._utils.schemas[o],a=s.preprocess(e[o],this._utils);this._applyValidation(a,o,s);let l=({from:d,to:h})=>{n.push(typeof h=="string"?{[h]:d}:{[h.key]:h.value})},c=({value:d,redirectTo:h})=>{let f=Jit(s.deprecated(d,this._utils),a,!0);if(f!==!1)if(f===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,h,this._utils));else for(let{value:p}of f){let g={key:o,value:p};if(!this._hasDeprecationWarned(g)){let m=typeof h=="string"?{key:h,value:p}:h;this._utils.logger.warn(this._deprecatedHandler(g,m,this._utils))}}};T2e(s.forward(a,this._utils),a).forEach(l);let u=trt(s.redirect(a,this._utils),a);if(u.redirect.forEach(l),"remain"in u){let d=u.remain;t[o]=o in t?s.overlap(t[o],d,this._utils):d,c({value:d})}for(let{from:d,to:h}of u.redirect)c({value:d,redirectTo:h})}for(let o of r){let s=e[o];this._applyUnknownHandler(o,s,t,(a,l)=>{n.push({[a]:l})})}return n}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,z2e,this._utils)}_partitionOptionKeys(e){let[t,n]=YFn(Object.keys(e).filter(i=>!this._identifyMissing(i,e)),i=>i in this._utils.schemas);return{knownKeys:t,unknownKeys:n}}_applyValidation(e,t,n){let i=Xit(n.validate(e,this._utils),e);if(i!==!0)throw this._invalidHandler(t,i.value,this._utils)}_applyUnknownHandler(e,t,n,i){let r=this._unknownHandler(e,t,this._utils);if(r)for(let o of Object.keys(r)){if(this._identifyMissing(o,r))continue;let s=r[o];o in this._utils.schemas?i(o,s):n[o]=s}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==Iz){if(t.delete)for(let n of t.delete)delete e[n];if(t.override){let{knownKeys:n,unknownKeys:i}=this._partitionOptionKeys(t.override);for(let r of n){let o=t.override[r];this._applyValidation(o,r,this._utils.schemas[r]),e[r]=o}for(let r of i){let o=t.override[r];this._applyUnknownHandler(r,o,e,(s,a)=>{let l=this._utils.schemas[s];this._applyValidation(a,s,l),e[s]=a})}}}}},zjt=e5n,zrt=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let n=this[t];if(e(n,t,this))return n}},Vrt=w5("findLast",function(){if(Array.isArray(this))return zrt}),UVe=Vrt,Vjt=Symbol.for("PRETTIER_IS_FRONT_MATTER"),Hjt=[],aue=i5n,U2e=new Set(["yaml","toml"]),$Ve=({node:e})=>aue(e)&&U2e.has(e.language),Wjt=o5n,Ujt=s5n,$2e=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),$jt=e=>Object.keys(e).filter(t=>!$2e.has(t)),q2e=a5n,Aoe=new WeakMap,Hrt=["clean","embed","print"],qjt=Object.fromEntries(Hrt.map(e=>[e,!1])),G2e={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null},$2=f5n,grt(mrt(),1),UX={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},new Set(UX.keyword),new Set(UX.strict),new Set(UX.strictBind),AH=(e,t)=>n=>e(t(n)),nrt(G_e(!0)),nrt(G_e(!1)),K2e=/\r\n|[\n\r\u2028\u2029]/,m7=v5n,Gjt=w5n,qVe=C5n,Kjt=S5n,Wrt=Array.prototype.findLastIndex??function(e){for(let t=this.length-1;t>=0;t--){let n=this[t];if(e(n,t,this))return t}return-1},Urt=w5("findLastIndex",function(){if(Array.isArray(this))return Wrt}),Yjt=Urt,Qjt=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify",GVe=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),Zjt=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]),KVe="\uFEFF",Y2e=Symbol("cursor"),Doe={},HX(Doe,{builders:()=>$rt,printer:()=>qrt,utils:()=>Grt}),$rt={join:q7t,line:P2e,softline:Ert,hardline:kx,literalline:M2e,group:$7t,conditionalGroup:aFn,fill:sFn,lineSuffix:D2e,lineSuffixBoundary:Art,cursor:FI,breakParent:EH,ifBreak:lFn,trim:Drt,indent:tue,indentIfBreak:cFn,align:W8,addAlignmentToDoc:U7t,markAsRoot:W7t,dedentToRoot:rFn,dedent:oFn,hardlineWithoutBreakParent:Soe,literallineWithoutBreakParent:q_e,label:uFn,concat:e=>e},qrt={printDocToString:vpe},Grt={willBreak:Y2n,traverseDoc:iue,findInDoc:LVe,mapDoc:mpe,removeLines:X2n,stripTrailingHardline:H7t,replaceEndOfLine:tFn,canBreak:iFn},Q2e="3.8.1",Toe={},HX(Toe,{addDanglingComment:()=>UM,addLeadingComment:()=>AU,addTrailingComment:()=>DU,getAlignmentSize:()=>sue,getIndentSize:()=>Krt,getMaxContinuousCount:()=>Yrt,getNextNonSpaceNonCommentCharacter:()=>Qrt,getNextNonSpaceNonCommentCharacterIndex:()=>G5n,getPreferredQuote:()=>Zrt,getStringWidth:()=>rue,hasNewline:()=>bD,hasNewlineInRange:()=>Xrt,hasSpaces:()=>Jrt,isNextLineEmpty:()=>X5n,isNextLineEmptyAfterIndex:()=>uue,isPreviousLineEmpty:()=>Y5n,makeString:()=>Z5n,skip:()=>kz,skipEverythingButNewLine:()=>F2e,skipInlineComment:()=>lue,skipNewline:()=>CL,skipSpaces:()=>MD,skipToLineEnd:()=>R2e,skipTrailingComment:()=>cue,skipWhitespace:()=>Irt}),lue=O5n,cue=R5n,Cpe=F5n,uue=B5n,Krt=j5n,Yrt=V5n,Qrt=H5n,Y_e=Object.freeze({character:"'",codePoint:39}),Q_e=Object.freeze({character:'"',codePoint:34}),Xjt=Object.freeze({preferred:Y_e,alternate:Q_e}),Jjt=Object.freeze({preferred:Q_e,alternate:Y_e}),Zrt=W5n,Xrt=U5n,Jrt=$5n,due=kP(ljt),Z2e=kP(X7t,0),X2e={parse:kP(I5n),formatAST:kP(L5n),formatDoc:kP(N5n),printToDoc:kP(P5n),printDocToString:kP(M5n)}}}),tzt={};oc(tzt,{default:()=>eFe,languages:()=>oFe,options:()=>sFe,parsers:()=>Ioe,printers:()=>lFe});function a0(e){return U8(e),{type:lzt,contents:e}}function l_(e,t={}){return U8(e),YVe(t.expandedStates,!0),{type:czt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function jS(e,t="",n={}){return U8(e),t!==""&&U8(t),{type:uzt,breakContents:e,flatContents:t,groupId:n.groupId}}function Kp(e,t){U8(e),YVe(t);let n=[];for(let i=0;i<t.length;i++)i!==0&&n.push(e),n.push(t[i]);return n}function Z_e(e){return(t,n,i)=>{let r=!!i?.backwards;if(n===!1)return!1;let{length:o}=t,s=n;for(;s>=0&&s<o;){let a=t.charAt(s);if(e instanceof RegExp){if(!e.test(a))return s}else if(!e.includes(a))return s;r?s--:s++}return s===-1||s===o?s:!1}}function J5n(e,t,n){let i=!!n?.backwards;if(t===!1)return!1;let r=e.charAt(t);if(i){if(e.charAt(t-1)==="\r"&&r===`
`)return t-2;if(tFe(r))return t-1}else{if(r==="\r"&&e.charAt(t+1)===`
`)return t+2;if(tFe(r))return t+1}return t}function e4n(e,t,n={}){let i=QVe(e,n.backwards?t-1:t,n),r=ZVe(e,i,n);return i!==r}function t4n(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let n=t+2;n<e.length;++n)if(e.charAt(n)==="*"&&e.charAt(n+1)==="/")return n+2}return t}function n4n(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?hzt(e,t):t}function i4n(e,t){let n=null,i=t;for(;i!==n;)n=i,i=dzt(e,i),i=pzt(e,i),i=QVe(e,i);return i=gzt(e,i),i=ZVe(e,i),i!==!1&&fzt(e,i)}function r4n(e){return Array.isArray(e)&&e.length>0}function kU(e){if(vB!==null&&typeof vB.property){let t=vB;return vB=kU.prototype=null,t}return vB=kU.prototype=e??Object.create(null),new kU}function o4n(e){return kU(e)}function s4n(e,t="type"){o4n(e);function n(i){let r=i[t],o=e[r];if(!Array.isArray(o))throw Object.assign(new Error(`Missing visitor keys for '${r}'.`),{node:i});return o}return n}function a4n(e,t,n){let{node:i}=e;if(!i.description)return"";let r=[n("description")];return i.kind==="InputValueDefinition"&&!i.description.block?r.push(VR):r.push(ch),r}function l4n(e,t,n){let{node:i}=e;switch(i.kind){case"Document":return[...Kp(ch,_S(e,t,n,"definitions")),ch];case"OperationDefinition":{let r=t.originalText[iFe(i)]!=="{",o=!!i.name;return[vy(e,t,n),r?i.operation:"",r&&o?[" ",n("name")]:"",r&&!o&&XVe(i.variableDefinitions)?" ":"",eot(e,n),Am(e,n,i),!r&&!o?"":" ",n("selectionSet")]}case"FragmentDefinition":return[vy(e,t,n),"fragment ",n("name"),eot(e,n)," on ",n("typeCondition"),Am(e,n,i)," ",n("selectionSet")];case"SelectionSet":return["{",a0([ch,Kp(ch,_S(e,t,n,"selections"))]),ch,"}"];case"Field":return l_([i.alias?[n("alias"),": "]:"",n("name"),i.arguments.length>0?l_(["(",a0([ad,Kp([jS("",", "),ad],_S(e,t,n,"arguments"))]),ad,")"]):"",Am(e,n,i),i.selectionSet?" ":"",n("selectionSet")]);case"Name":return i.value;case"StringValue":if(i.block){let r=koe(0,i.value,'"""','\\"""').split(`
`);return r.length===1&&(r[0]=r[0].trim()),r.every(o=>o==="")&&(r.length=0),Kp(ch,['"""',...r,'"""'])}return['"',koe(0,koe(0,i.value,/["\\]/gu,"\\$&"),`
`,"\\n"),'"'];case"IntValue":case"FloatValue":case"EnumValue":return i.value;case"BooleanValue":return i.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return l_(["[",a0([ad,Kp([jS("",", "),ad],e.map(n,"values"))]),ad,"]"]);case"ObjectValue":{let r=t.bracketSpacing&&i.fields.length>0?" ":"";return l_(["{",r,a0([ad,Kp([jS("",", "),ad],e.map(n,"fields"))]),ad,jS("",r),"}"])}case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),i.arguments.length>0?l_(["(",a0([ad,Kp([jS("",", "),ad],_S(e,t,n,"arguments"))]),ad,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[vy(e,t,n),n("variable"),": ",n("type"),i.defaultValue?[" = ",n("defaultValue")]:"",Am(e,n,i)];case"ObjectTypeExtension":case"ObjectTypeDefinition":case"InputObjectTypeExtension":case"InputObjectTypeDefinition":case"InterfaceTypeExtension":case"InterfaceTypeDefinition":{let{kind:r}=i,o=[];return r.endsWith("TypeDefinition")?o.push(vy(e,t,n)):o.push("extend "),r.startsWith("ObjectType")?o.push("type"):r.startsWith("InputObjectType")?o.push("input"):o.push("interface"),o.push(" ",n("name")),!r.startsWith("InputObjectType")&&i.interfaces.length>0&&o.push(" implements ",...d4n(e,t,n)),o.push(Am(e,n,i)),i.fields.length>0&&o.push([" {",a0([ch,Kp(ch,_S(e,t,n,"fields"))]),ch,"}"]),o}case"FieldDefinition":return[vy(e,t,n),n("name"),i.arguments.length>0?l_(["(",a0([ad,Kp([jS("",", "),ad],_S(e,t,n,"arguments"))]),ad,")"]):"",": ",n("type"),Am(e,n,i)];case"DirectiveDefinition":return[vy(e,t,n),"directive ","@",n("name"),i.arguments.length>0?l_(["(",a0([ad,Kp([jS("",", "),ad],_S(e,t,n,"arguments"))]),ad,")"]):"",i.repeatable?" repeatable":""," on ",...Kp(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[vy(e,t,n),i.kind==="EnumTypeExtension"?"extend ":"","enum ",n("name"),Am(e,n,i),i.values.length>0?[" {",a0([ch,Kp(ch,_S(e,t,n,"values"))]),ch,"}"]:""];case"EnumValueDefinition":return[vy(e,t,n),n("name"),Am(e,n,i)];case"InputValueDefinition":return[vy(e,t,n),n("name"),": ",n("type"),i.defaultValue?[" = ",n("defaultValue")]:"",Am(e,n,i)];case"SchemaExtension":return["extend schema",Am(e,n,i),...i.operationTypes.length>0?[" {",a0([ch,Kp(ch,_S(e,t,n,"operationTypes"))]),ch,"}"]:[]];case"SchemaDefinition":return[vy(e,t,n),"schema",Am(e,n,i)," {",i.operationTypes.length>0?a0([ch,Kp(ch,_S(e,t,n,"operationTypes"))]):"",ch,"}"];case"OperationTypeDefinition":return[i.operation,": ",n("type")];case"FragmentSpread":return["...",n("name"),Am(e,n,i)];case"InlineFragment":return["...",i.typeCondition?[" on ",n("typeCondition")]:"",Am(e,n,i)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return l_([vy(e,t,n),l_([i.kind==="UnionTypeExtension"?"extend ":"","union ",n("name"),Am(e,n,i),i.types.length>0?[" =",jS(""," "),a0([jS([VR,"| "]),Kp([VR,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[vy(e,t,n),i.kind==="ScalarTypeExtension"?"extend ":"","scalar ",n("name"),Am(e,n,i)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new vzt(i,"Graphql","kind")}}function Am(e,t,n){if(n.directives.length===0)return"";let i=Kp(VR,e.map(t,"directives"));return n.kind==="FragmentDefinition"||n.kind==="OperationDefinition"?l_([VR,i]):[" ",l_(a0([ad,i]))]}function _S(e,t,n,i){return e.map(({isLast:r,node:o})=>{let s=n();return!r&&mzt(t.originalText,rFe(o))?[s,ch]:s},i)}function c4n(e){return e.kind!=="Comment"}function u4n({node:e}){if(e.kind==="Comment")return"#"+e.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(e))}function d4n(e,t,n){let{node:i}=e,r=[],{interfaces:o}=i,s=e.map(n,"interfaces");for(let a=0;a<o.length;a++){let l=o[a];r.push(s[a]);let c=o[a+1];if(c){let u=t.originalText.slice(l.loc.end,c.loc.start).includes("#");r.push(" &",u?VR:" ")}}return r}function eot(e,t){let{node:n}=e;return XVe(n.variableDefinitions)?l_(["(",a0([ad,Kp([jS("",", "),ad],e.map(t,"variableDefinitions"))]),ad,")"]):""}function tot(e,t){e.kind==="StringValue"&&e.block&&!e.value.includes(`
`)&&(t.value=e.value.trim())}function h4n(e){let{node:t}=e;return t?.comments?.some(n=>n.value.trim()==="prettier-ignore")}function f4n(e){return typeof e=="object"&&e!==null}function p4n(e,t){throw new Error("Unexpected invariant triggered.")}function J2e(e,t){let n=0,i=1;for(let r of e.body.matchAll(yzt)){if(typeof r.index=="number"||p4n(),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}function g4n(e){return nzt(e.source,J2e(e.source,e.start))}function nzt(e,t){let n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=t.line===1?n:0,l=t.column+a,c=`${e.name}:${s}:${l}
`,u=i.split(/\r\n|[\n\r]/g),d=u[r];if(d.length>120){let h=Math.floor(l/80),f=l%80,p=[];for(let g=0;g<d.length;g+=80)p.push(d.slice(g,g+80));return c+not([[`${s} |`,p[0]],...p.slice(1,h+1).map(g=>["|",g]),["|","^".padStart(f)],["|",p[h+1]]])}return c+not([[`${s-1} |`,u[r-1]],[`${s} |`,d],["|","^".padStart(l)],[`${s+1} |`,u[r+1]]])}function not(e){let t=e.filter(([i,r])=>r!==void 0),n=Math.max(...t.map(([i])=>i.length));return t.map(([i,r])=>i.padStart(n)+(r?" "+r:"")).join(`
`)}function m4n(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}function iot(e){return e===void 0||e.length===0?void 0:e}function Pf(e,t,n){return new bzt(`Syntax Error: ${n}`,{source:e,positions:[t]})}function v4n(e){return e===9||e===32}function Eq(e){return e>=48&&e<=57}function izt(e){return e>=97&&e<=122||e>=65&&e<=90}function rzt(e){return izt(e)||e===95}function y4n(e){return izt(e)||Eq(e)||e===95}function b4n(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,r=-1;for(let s=0;s<e.length;++s){var o;let a=e[s],l=_4n(a);l!==a.length&&(i=(o=i)!==null&&o!==void 0?o:s,r=s,s!==0&&l<n&&(n=l))}return e.map((s,a)=>a===0?s:s.slice(n)).slice((t=i)!==null&&t!==void 0?t:0,r+1)}function _4n(e){let t=0;for(;t<e.length&&v4n(e.charCodeAt(t));)++t;return t}function w4n(e){return e===ui.BANG||e===ui.DOLLAR||e===ui.AMP||e===ui.PAREN_L||e===ui.PAREN_R||e===ui.DOT||e===ui.SPREAD||e===ui.COLON||e===ui.EQUALS||e===ui.AT||e===ui.BRACKET_L||e===ui.BRACKET_R||e===ui.BRACE_L||e===ui.PIPE||e===ui.BRACE_R}function v7(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Spe(e,t){return ozt(e.charCodeAt(t))&&szt(e.charCodeAt(t+1))}function ozt(e){return e>=55296&&e<=56319}function szt(e){return e>=56320&&e<=57343}function zR(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return ui.EOF;if(n>=32&&n<=126){let i=String.fromCodePoint(n);return i==='"'?`'"'`:`"${i}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Kh(e,t,n,i,r){let o=e.line,s=1+n-e.lineStart;return new nFe(t,n,i,o,s,r)}function C4n(e,t){let n=e.source.body,i=n.length,r=t;for(;r<i;){let o=n.charCodeAt(r);switch(o){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++e.line,e.lineStart=r;continue;case 13:n.charCodeAt(r+1)===10?r+=2:++r,++e.line,e.lineStart=r;continue;case 35:return S4n(e,r);case 33:return Kh(e,ui.BANG,r,r+1);case 36:return Kh(e,ui.DOLLAR,r,r+1);case 38:return Kh(e,ui.AMP,r,r+1);case 40:return Kh(e,ui.PAREN_L,r,r+1);case 41:return Kh(e,ui.PAREN_R,r,r+1);case 46:if(n.charCodeAt(r+1)===46&&n.charCodeAt(r+2)===46)return Kh(e,ui.SPREAD,r,r+3);break;case 58:return Kh(e,ui.COLON,r,r+1);case 61:return Kh(e,ui.EQUALS,r,r+1);case 64:return Kh(e,ui.AT,r,r+1);case 91:return Kh(e,ui.BRACKET_L,r,r+1);case 93:return Kh(e,ui.BRACKET_R,r,r+1);case 123:return Kh(e,ui.BRACE_L,r,r+1);case 124:return Kh(e,ui.PIPE,r,r+1);case 125:return Kh(e,ui.BRACE_R,r,r+1);case 34:return n.charCodeAt(r+1)===34&&n.charCodeAt(r+2)===34?k4n(e,r):E4n(e,r)}if(Eq(o)||o===45)return x4n(e,r,o);if(rzt(o))return I4n(e,r);throw Pf(e.source,r,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:v7(o)||Spe(n,r)?`Unexpected character: ${zR(e,r)}.`:`Invalid character: ${zR(e,r)}.`)}return Kh(e,ui.EOF,i,i)}function S4n(e,t){let n=e.source.body,i=n.length,r=t+1;for(;r<i;){let o=n.charCodeAt(r);if(o===10||o===13)break;if(v7(o))++r;else if(Spe(n,r))r+=2;else break}return Kh(e,ui.COMMENT,t,r,n.slice(t+1,r))}function x4n(e,t,n){let i=e.source.body,r=t,o=n,s=!1;if(o===45&&(o=i.charCodeAt(++r)),o===48){if(o=i.charCodeAt(++r),Eq(o))throw Pf(e.source,r,`Invalid number, unexpected digit after 0: ${zR(e,r)}.`)}else r=X_e(e,r,o),o=i.charCodeAt(r);if(o===46&&(s=!0,o=i.charCodeAt(++r),r=X_e(e,r,o),o=i.charCodeAt(r)),(o===69||o===101)&&(s=!0,o=i.charCodeAt(++r),(o===43||o===45)&&(o=i.charCodeAt(++r)),r=X_e(e,r,o),o=i.charCodeAt(r)),o===46||rzt(o))throw Pf(e.source,r,`Invalid number, expected digit but got: ${zR(e,r)}.`);return Kh(e,s?ui.FLOAT:ui.INT,t,r,i.slice(t,r))}function X_e(e,t,n){if(!Eq(n))throw Pf(e.source,t,`Invalid number, expected digit but got: ${zR(e,t)}.`);let i=e.source.body,r=t+1;for(;Eq(i.charCodeAt(r));)++r;return r}function E4n(e,t){let n=e.source.body,i=n.length,r=t+1,o=r,s="";for(;r<i;){let a=n.charCodeAt(r);if(a===34)return s+=n.slice(o,r),Kh(e,ui.STRING,t,r+1,s);if(a===92){s+=n.slice(o,r);let l=n.charCodeAt(r+1)===117?n.charCodeAt(r+2)===123?A4n(e,r):D4n(e,r):T4n(e,r);s+=l.value,r+=l.size,o=r;continue}if(a===10||a===13)break;if(v7(a))++r;else if(Spe(n,r))r+=2;else throw Pf(e.source,r,`Invalid character within String: ${zR(e,r)}.`)}throw Pf(e.source,r,"Unterminated string.")}function A4n(e,t){let n=e.source.body,i=0,r=3;for(;r<12;){let o=n.charCodeAt(t+r++);if(o===125){if(r<5||!v7(i))break;return{value:String.fromCodePoint(i),size:r}}if(i=i<<4|DH(o),i<0)break}throw Pf(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+r)}".`)}function D4n(e,t){let n=e.source.body,i=rot(n,t+2);if(v7(i))return{value:String.fromCodePoint(i),size:6};if(ozt(i)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){let r=rot(n,t+8);if(szt(r))return{value:String.fromCodePoint(i,r),size:12}}throw Pf(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function rot(e,t){return DH(e.charCodeAt(t))<<12|DH(e.charCodeAt(t+1))<<8|DH(e.charCodeAt(t+2))<<4|DH(e.charCodeAt(t+3))}function DH(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function T4n(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw Pf(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function k4n(e,t){let n=e.source.body,i=n.length,r=e.lineStart,o=t+3,s=o,a="",l=[];for(;o<i;){let c=n.charCodeAt(o);if(c===34&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34){a+=n.slice(s,o),l.push(a);let u=Kh(e,ui.BLOCK_STRING,t,o+3,b4n(l).join(`
`));return e.line+=l.length-1,e.lineStart=r,u}if(c===92&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34&&n.charCodeAt(o+3)===34){a+=n.slice(s,o),s=o+1,o+=4;continue}if(c===10||c===13){a+=n.slice(s,o),l.push(a),c===13&&n.charCodeAt(o+1)===10?o+=2:++o,a="",s=o,r=o;continue}if(v7(c))++o;else if(Spe(n,o))o+=2;else throw Pf(e.source,o,`Invalid character within String: ${zR(e,o)}.`)}throw Pf(e.source,o,"Unterminated string.")}function I4n(e,t){let n=e.source.body,i=n.length,r=t+1;for(;r<i;){let o=n.charCodeAt(r);if(y4n(o))++r;else break}return Kh(e,ui.NAME,t,r,n.slice(t,r))}function J_e(e,t){throw new Error(t)}function oot(e){return xpe(e,[])}function xpe(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return L4n(e,t);default:return String(e)}}function L4n(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(N4n(e)){let i=e.toJSON();if(i!==e)return typeof i=="string"?i:xpe(i,n)}else if(Array.isArray(e))return M4n(e,n);return P4n(e,n)}function N4n(e){return typeof e.toJSON=="function"}function P4n(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>2?"["+O4n(e)+"]":"{ "+n.map(([i,r])=>i+": "+xpe(r,t)).join(", ")+" }"}function M4n(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),i=e.length-n,r=[];for(let o=0;o<n;++o)r.push(xpe(e[o],t));return i===1?r.push("... 1 more item"):i>1&&r.push(`... ${i} more items`),"["+r.join(", ")+"]"}function O4n(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}function R4n(e){return _zt(e,aFe)}function F4n(e,t){let n=new wzt(e,t),i=n.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:n.tokenCount}),i}function $X(e){let t=e.value;return azt(e.kind)+(t!=null?` "${t}"`:"")}function azt(e){return w4n(e)?`"${e}"`:e}function B4n(e,t){let n=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(n,t)}function j4n(e){let t=[],{startToken:n,endToken:i}=e.loc;for(let r=n;r!==i;r=r.next)r.kind==="Comment"&&t.push({...r,loc:{start:r.start,end:r.end}});return t}function z4n(e){if(e?.name==="GraphQLError"){let{message:t,locations:[n]}=e;return Czt(t,{loc:{start:n},cause:e})}return e}function V4n(e){let t;try{t=F4n(e,Szt)}catch(n){throw z4n(n)}return t.comments=j4n(t),t}var sot,ewe,eFe,aot,lot,cot,koe,uot,twe,lzt,czt,uzt,qX,dot,U8,YVe,hot,VR,ad,fot,ch,QVe,dzt,hzt,tFe,ZVe,fzt,pzt,gzt,mzt,XVe,pot,vzt,vB,got,mot,vot,nFe,nwe,C5,iwe,yot,bot,_ot,iFe,rFe,wot,Cot,Sot,xot,Eot,Aot,vy,Dot,Tot,oFe,kot,Iot,sFe,Ioe,yzt,bzt,rwe,Bo,ui,Lot,Not,_zt,aFe,wzt,Czt,Szt,Pot,lFe,H4n=se({"../node_modules/.pnpm/prettier@3.8.1/node_modules/prettier/plugins/graphql.mjs"(){sot=Object.defineProperty,ewe=(e,t)=>{for(var n in t)sot(e,n,{get:t[n],enumerable:!0})},eFe={},ewe(eFe,{languages:()=>oFe,options:()=>sFe,parsers:()=>Ioe,printers:()=>lFe}),aot=(e,t)=>(n,i,...r)=>n|1&&i==null?void 0:(t.call(i)??i[e]).apply(i,r),lot=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},cot=aot("replaceAll",function(){if(typeof this=="string")return lot}),koe=cot,uot=()=>{},twe=uot,lzt="indent",czt="group",uzt="if-break",qX="line",dot="break-parent",U8=twe,YVe=twe,hot={type:dot},VR={type:qX},ad={type:qX,soft:!0},fot={type:qX,hard:!0},ch=[fot,hot],QVe=Z_e(" 	"),dzt=Z_e(",; 	"),hzt=Z_e(/[^\n\r]/u),tFe=e=>e===`
`||e==="\r"||e==="\u2028"||e==="\u2029",ZVe=J5n,fzt=e4n,pzt=t4n,gzt=n4n,mzt=i4n,XVe=r4n,pot=class extends Error{name="UnexpectedNodeError";constructor(e,t,n="type"){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},vzt=pot,vB=null,got=10;for(let e=0;e<=got;e++)kU();mot=s4n,vot=class{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},nFe=class{constructor(e,t,n,i,r,o){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},nwe={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},new Set(Object.keys(nwe)),(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(C5||(C5={})),iwe={...nwe};for(let e of["ArgumentCoordinate","DirectiveArgumentCoordinate","DirectiveCoordinate","MemberCoordinate","TypeCoordinate"])delete iwe[e];yot=iwe,bot=mot(yot,"kind"),_ot=bot,iFe=e=>e.loc.start,rFe=e=>e.loc.end,wot="format",Cot=/^\s*#[^\S\n]*@(?:noformat|noprettier)\s*(?:\n|$)/u,Sot=/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/u,xot=e=>Sot.test(e),Eot=e=>Cot.test(e),Aot=e=>`# @${wot}

${e}`,vy=a4n,tot.ignoredProperties=new Set(["loc","comments"]),Dot={print:l4n,massageAstNode:tot,hasPrettierIgnore:h4n,insertPragma:Aot,printComment:u4n,canAttachComment:c4n,getVisitorKeys:_ot},Tot=Dot,oFe=[{name:"GraphQL",type:"data",aceMode:"graphqlschema",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",parsers:["graphql"],vscodeLanguageIds:["graphql"],linguistLanguageId:139}],kot={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Iot={bracketSpacing:kot.bracketSpacing},sFe=Iot,Ioe={},ewe(Ioe,{graphql:()=>Pot}),yzt=/\r\n|[\n\r]/g,bzt=class xzt extends Error{constructor(t,...n){var i,r,o;let{nodes:s,source:a,positions:l,path:c,originalError:u,extensions:d}=m4n(n);super(t),this.name="GraphQLError",this.path=c??void 0,this.originalError=u??void 0,this.nodes=iot(Array.isArray(s)?s:s?[s]:void 0);let h=iot((i=this.nodes)===null||i===void 0?void 0:i.map(p=>p.loc).filter(p=>p!=null));this.source=a??(h==null||(r=h[0])===null||r===void 0?void 0:r.source),this.positions=l??h?.map(p=>p.start),this.locations=l&&a?l.map(p=>J2e(a,p)):h?.map(p=>J2e(p.source,p.start));let f=f4n(u?.extensions)?u?.extensions:void 0;this.extensions=(o=d??f)!==null&&o!==void 0?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),u!=null&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,xzt):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=`

`+g4n(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=`

`+nzt(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}},(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(rwe||(rwe={})),(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(Bo||(Bo={})),(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(ui||(ui={})),Lot=class{constructor(e){let t=new nFe(ui.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==ui.EOF)do if(e.next)e=e.next;else{let t=C4n(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===ui.COMMENT);return e}},Not=globalThis.process&&!0,_zt=Not?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if(typeof e=="object"&&e!==null){var n;let i=t.prototype[Symbol.toStringTag],r=Symbol.toStringTag in e?e[Symbol.toStringTag]:(n=e.constructor)===null||n===void 0?void 0:n.name;if(i===r){let o=oot(e);throw new Error(`Cannot use ${i} "${o}" from another module or realm.

Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.

https://yarnpkg.com/en/docs/selective-version-resolutions

Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.`)}}return!1},aFe=class{constructor(e,t="GraphQL request",n={line:1,column:1}){typeof e=="string"||J_e(!1,`Body must be a string. Received: ${oot(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||J_e(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||J_e(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}},wzt=class{constructor(e,t={}){let{lexer:n,...i}=t;if(n)this._lexer=n;else{let r=R4n(e)?e:new aFe(e);this._lexer=new Lot(r)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(ui.NAME);return this.node(e,{kind:Bo.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:Bo.DOCUMENT,definitions:this.many(ui.SOF,this.parseDefinition,ui.EOF)})}parseDefinition(){if(this.peek(ui.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===ui.BRACE_L)throw Pf(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===ui.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw Pf(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(t.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e=this._lexer.token;if(this.peek(ui.BRACE_L))return this.node(e,{kind:Bo.OPERATION_DEFINITION,operation:C5.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let t=this.parseDescription(),n=this.parseOperationType(),i;return this.peek(ui.NAME)&&(i=this.parseName()),this.node(e,{kind:Bo.OPERATION_DEFINITION,operation:n,description:t,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(ui.NAME);switch(e.value){case"query":return C5.QUERY;case"mutation":return C5.MUTATION;case"subscription":return C5.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(ui.PAREN_L,this.parseVariableDefinition,ui.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Bo.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(ui.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(ui.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(ui.DOLLAR),this.node(e,{kind:Bo.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Bo.SELECTION_SET,selections:this.many(ui.BRACE_L,this.parseSelection,ui.BRACE_R)})}parseSelection(){return this.peek(ui.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e=this._lexer.token,t=this.parseName(),n,i;return this.expectOptionalToken(ui.COLON)?(n=t,i=this.parseName()):i=t,this.node(e,{kind:Bo.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(ui.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(ui.PAREN_L,t,ui.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(ui.COLON),this.node(t,{kind:Bo.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(ui.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(ui.NAME)?this.node(e,{kind:Bo.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:Bo.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:Bo.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:Bo.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case ui.BRACKET_L:return this.parseList(e);case ui.BRACE_L:return this.parseObject(e);case ui.INT:return this.advanceLexer(),this.node(t,{kind:Bo.INT,value:t.value});case ui.FLOAT:return this.advanceLexer(),this.node(t,{kind:Bo.FLOAT,value:t.value});case ui.STRING:case ui.BLOCK_STRING:return this.parseStringLiteral();case ui.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:Bo.BOOLEAN,value:!0});case"false":return this.node(t,{kind:Bo.BOOLEAN,value:!1});case"null":return this.node(t,{kind:Bo.NULL});default:return this.node(t,{kind:Bo.ENUM,value:t.value})}case ui.DOLLAR:if(e)if(this.expectToken(ui.DOLLAR),this._lexer.token.kind===ui.NAME){let n=this._lexer.token.value;throw Pf(this._lexer.source,t.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(t);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:Bo.STRING,value:e.value,block:e.kind===ui.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:Bo.LIST,values:this.any(ui.BRACKET_L,t,ui.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:Bo.OBJECT,fields:this.any(ui.BRACE_L,t,ui.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(ui.COLON),this.node(t,{kind:Bo.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(ui.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(ui.AT),this.node(t,{kind:Bo.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e=this._lexer.token,t;if(this.expectOptionalToken(ui.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(ui.BRACKET_R),t=this.node(e,{kind:Bo.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(ui.BANG)?this.node(e,{kind:Bo.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:Bo.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(ui.STRING)||this.peek(ui.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),i=this.many(ui.BRACE_L,this.parseOperationTypeDefinition,ui.BRACE_R);return this.node(e,{kind:Bo.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(ui.COLON);let n=this.parseNamedType();return this.node(e,{kind:Bo.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:Bo.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:Bo.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(ui.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(ui.BRACE_L,this.parseFieldDefinition,ui.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(ui.COLON);let r=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:Bo.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:o})}parseArgumentDefs(){return this.optionalMany(ui.PAREN_L,this.parseInputValueDef,ui.PAREN_R)}parseInputValueDef(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(ui.COLON);let i=this.parseTypeReference(),r;this.expectOptionalToken(ui.EQUALS)&&(r=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(e,{kind:Bo.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:Bo.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(e,{kind:Bo.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(ui.EQUALS)?this.delimitedMany(ui.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(e,{kind:Bo.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r})}parseEnumValuesDefinition(){return this.optionalMany(ui.BRACE_L,this.parseEnumValueDefinition,ui.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:Bo.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Pf(this._lexer.source,this._lexer.token.start,`${$X(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(e,{kind:Bo.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(ui.BRACE_L,this.parseInputValueDef,ui.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===ui.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),n=this.optionalMany(ui.BRACE_L,this.parseOperationTypeDefinition,ui.BRACE_R);if(t.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:Bo.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(e,{kind:Bo.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:Bo.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:Bo.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:Bo.UNION_TYPE_EXTENSION,name:t,directives:n,types:i})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:Bo.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:Bo.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(ui.AT);let n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:Bo.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:o})}parseDirectiveLocations(){return this.delimitedMany(ui.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(rwe,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e=this._lexer.token,t=this.expectOptionalToken(ui.AT),n=this.parseName(),i;!t&&this.expectOptionalToken(ui.DOT)&&(i=this.parseName());let r;return(t||i)&&this.expectOptionalToken(ui.PAREN_L)&&(r=this.parseName(),this.expectToken(ui.COLON),this.expectToken(ui.PAREN_R)),t?r?this.node(e,{kind:Bo.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:r}):this.node(e,{kind:Bo.DIRECTIVE_COORDINATE,name:n}):i?r?this.node(e,{kind:Bo.ARGUMENT_COORDINATE,name:n,fieldName:i,argumentName:r}):this.node(e,{kind:Bo.MEMBER_COORDINATE,name:n,memberName:i}):this.node(e,{kind:Bo.TYPE_COORDINATE,name:n})}node(e,t){return this._options.noLocation!==!0&&(t.loc=new vot(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw Pf(this._lexer.source,t.start,`Expected ${azt(e)}, found ${$X(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){let t=this._lexer.token;if(t.kind===ui.NAME&&t.value===e)this.advanceLexer();else throw Pf(this._lexer.source,t.start,`Expected "${e}", found ${$X(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===ui.NAME&&t.value===e?(this.advanceLexer(),!0):!1}unexpected(e){let t=e??this._lexer.token;return Pf(this._lexer.source,t.start,`Unexpected ${$X(t)}.`)}any(e,t,n){this.expectToken(e);let i=[];for(;!this.expectOptionalToken(n);)i.push(t.call(this));return i}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let i=[];do i.push(t.call(this));while(!this.expectOptionalToken(n));return i}return[]}many(e,t,n){this.expectToken(e);let i=[];do i.push(t.call(this));while(!this.expectOptionalToken(n));return i}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==ui.EOF&&(++this._tokenCounter,e!==void 0&&this._tokenCounter>e))throw Pf(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}},Czt=B4n,Szt={allowLegacyFragmentVariables:!0},Pot={parse:V4n,astFormat:"graphql",hasPragma:xot,hasIgnorePragma:Eot,locStart:iFe,locEnd:rFe},lFe={graphql:Tot}}}),W4n=Ot({"../node_modules/.pnpm/prettier@3.8.1/node_modules/prettier/plugins/graphql.js"(e,t){(function(n){function i(){var o=n();return o.default||o}if(typeof e=="object"&&typeof t=="object")t.exports=i();else if(typeof define=="function"&&define.amd)define(i);else{var r=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};r.prettierPlugins=r.prettierPlugins||{},r.prettierPlugins.graphql=i()}})(function(){var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=(xe,Ke)=>{for(var nt in Ke)n(xe,nt,{get:Ke[nt],enumerable:!0})},a=(xe,Ke,nt,kt)=>{if(Ke&&typeof Ke=="object"||typeof Ke=="function")for(let Oe of r(Ke))!o.call(xe,Oe)&&Oe!==nt&&n(xe,Oe,{get:()=>Ke[Oe],enumerable:!(kt=i(Ke,Oe))||kt.enumerable});return xe},l=xe=>a(n({},"__esModule",{value:!0}),xe),c={};s(c,{languages:()=>ve,options:()=>Le,parsers:()=>be,printers:()=>Au});var u=(xe,Ke)=>(nt,kt,...Oe)=>nt|1&&kt==null?void 0:(Ke.call(kt)??kt[xe]).apply(kt,Oe),d=String.prototype.replaceAll??function(xe,Ke){return xe.global?this.replace(xe,Ke):this.split(xe).join(Ke)},h=u("replaceAll",function(){if(typeof this=="string")return d}),f=h,p=()=>{},g=p,m="indent",v="group",y="if-break",b="line",w="break-parent",E=g;function A(xe){return{type:m,contents:xe}}var D={type:w};function T(xe,Ke={}){return E(Ke.expandedStates),{type:v,id:Ke.id,contents:xe,break:!!Ke.shouldBreak,expandedStates:Ke.expandedStates}}function M(xe,Ke="",nt={}){return{type:y,breakContents:xe,flatContents:Ke,groupId:nt.groupId}}function P(xe,Ke){let nt=[];for(let kt=0;kt<Ke.length;kt++)kt!==0&&nt.push(xe),nt.push(Ke[kt]);return nt}var F={type:b},N={type:b,soft:!0},j={type:b,hard:!0},W=[j,D];function J(xe){return(Ke,nt,kt)=>{let Oe=!!kt?.backwards;if(nt===!1)return!1;let{length:st}=Ke,$t=nt;for(;$t>=0&&$t<st;){let yi=Ke.charAt($t);if(xe instanceof RegExp){if(!xe.test(yi))return $t}else if(!xe.includes(yi))return $t;Oe?$t--:$t++}return $t===-1||$t===st?$t:!1}}var ee=J(" 	"),Q=J(",; 	"),H=J(/[^\n\r]/u),q=xe=>xe===`
`||xe==="\r"||xe==="\u2028"||xe==="\u2029";function le(xe,Ke,nt){let kt=!!nt?.backwards;if(Ke===!1)return!1;let Oe=xe.charAt(Ke);if(kt){if(xe.charAt(Ke-1)==="\r"&&Oe===`
`)return Ke-2;if(q(Oe))return Ke-1}else{if(Oe==="\r"&&xe.charAt(Ke+1)===`
`)return Ke+2;if(q(Oe))return Ke+1}return Ke}var Y=le;function G(xe,Ke,nt={}){let kt=ee(xe,nt.backwards?Ke-1:Ke,nt),Oe=Y(xe,kt,nt);return kt!==Oe}var pe=G;function U(xe,Ke){if(Ke===!1)return!1;if(xe.charAt(Ke)==="/"&&xe.charAt(Ke+1)==="*"){for(let nt=Ke+2;nt<xe.length;++nt)if(xe.charAt(nt)==="*"&&xe.charAt(nt+1)==="/")return nt+2}return Ke}var K=U;function ie(xe,Ke){return Ke===!1?!1:xe.charAt(Ke)==="/"&&xe.charAt(Ke+1)==="/"?H(xe,Ke):Ke}var ce=ie;function de(xe,Ke){let nt=null,kt=Ke;for(;kt!==nt;)nt=kt,kt=Q(xe,kt),kt=K(xe,kt),kt=ee(xe,kt);return kt=ce(xe,kt),kt=Y(xe,kt),kt!==!1&&pe(xe,kt)}var oe=de;function me(xe){return Array.isArray(xe)&&xe.length>0}var Ce=me,Se=class extends Error{name="UnexpectedNodeError";constructor(xe,Ke,nt="type"){super(`Unexpected ${Ke} node ${nt}: ${JSON.stringify(xe[nt])}.`),this.node=xe}},De=Se,Me=null;function qe(xe){if(Me!==null&&typeof Me.property){let Ke=Me;return Me=qe.prototype=null,Ke}return Me=qe.prototype=xe??Object.create(null),new qe}var $=10;for(let xe=0;xe<=$;xe++)qe();function he(xe){return qe(xe)}function Ie(xe,Ke="type"){he(xe);function nt(kt){let Oe=kt[Ke],st=xe[Oe];if(!Array.isArray(st))throw Object.assign(new Error(`Missing visitor keys for '${Oe}'.`),{node:kt});return st}return nt}var Be=Ie,ze=class{constructor(xe,Ke,nt){this.start=xe.start,this.end=Ke.end,this.startToken=xe,this.endToken=Ke,this.source=nt}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},Ye=class{constructor(xe,Ke,nt,kt,Oe,st){this.kind=xe,this.start=Ke,this.end=nt,this.line=kt,this.column=Oe,this.value=st,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},it={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]};new Set(Object.keys(it));var ft;(function(xe){xe.QUERY="query",xe.MUTATION="mutation",xe.SUBSCRIPTION="subscription"})(ft||(ft={}));var ct={...it};for(let xe of["ArgumentCoordinate","DirectiveArgumentCoordinate","DirectiveCoordinate","MemberCoordinate","TypeCoordinate"])delete ct[xe];var et=ct,ut=Be(et,"kind"),wt=ut,pt=xe=>xe.loc.start,_t=xe=>xe.loc.end,Rt="format",Yt=/^\s*#[^\S\n]*@(?:noformat|noprettier)\s*(?:\n|$)/u,Ut=/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/u,Gt=xe=>Ut.test(xe),Kt=xe=>Yt.test(xe),ln=xe=>`# @${Rt}

${xe}`;function pn(xe,Ke,nt){let{node:kt}=xe;if(!kt.description)return"";let Oe=[nt("description")];return kt.kind==="InputValueDefinition"&&!kt.description.block?Oe.push(F):Oe.push(W),Oe}var wn=pn;function Mn(xe,Ke,nt){let{node:kt}=xe;switch(kt.kind){case"Document":return[...P(W,di(xe,Ke,nt,"definitions")),W];case"OperationDefinition":{let Oe=Ke.originalText[pt(kt)]!=="{",st=!!kt.name;return[wn(xe,Ke,nt),Oe?kt.operation:"",Oe&&st?[" ",nt("name")]:"",Oe&&!st&&Ce(kt.variableDefinitions)?" ":"",ne(xe,nt),Yn(xe,nt,kt),!Oe&&!st?"":" ",nt("selectionSet")]}case"FragmentDefinition":return[wn(xe,Ke,nt),"fragment ",nt("name"),ne(xe,nt)," on ",nt("typeCondition"),Yn(xe,nt,kt)," ",nt("selectionSet")];case"SelectionSet":return["{",A([W,P(W,di(xe,Ke,nt,"selections"))]),W,"}"];case"Field":return T([kt.alias?[nt("alias"),": "]:"",nt("name"),kt.arguments.length>0?T(["(",A([N,P([M("",", "),N],di(xe,Ke,nt,"arguments"))]),N,")"]):"",Yn(xe,nt,kt),kt.selectionSet?" ":"",nt("selectionSet")]);case"Name":return kt.value;case"StringValue":if(kt.block){let Oe=f(0,kt.value,'"""','\\"""').split(`
`);return Oe.length===1&&(Oe[0]=Oe[0].trim()),Oe.every(st=>st==="")&&(Oe.length=0),P(W,['"""',...Oe,'"""'])}return['"',f(0,f(0,kt.value,/["\\]/gu,"\\$&"),`
`,"\\n"),'"'];case"IntValue":case"FloatValue":case"EnumValue":return kt.value;case"BooleanValue":return kt.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",nt("name")];case"ListValue":return T(["[",A([N,P([M("",", "),N],xe.map(nt,"values"))]),N,"]"]);case"ObjectValue":{let Oe=Ke.bracketSpacing&&kt.fields.length>0?" ":"";return T(["{",Oe,A([N,P([M("",", "),N],xe.map(nt,"fields"))]),N,M("",Oe),"}"])}case"ObjectField":case"Argument":return[nt("name"),": ",nt("value")];case"Directive":return["@",nt("name"),kt.arguments.length>0?T(["(",A([N,P([M("",", "),N],di(xe,Ke,nt,"arguments"))]),N,")"]):""];case"NamedType":return nt("name");case"VariableDefinition":return[wn(xe,Ke,nt),nt("variable"),": ",nt("type"),kt.defaultValue?[" = ",nt("defaultValue")]:"",Yn(xe,nt,kt)];case"ObjectTypeExtension":case"ObjectTypeDefinition":case"InputObjectTypeExtension":case"InputObjectTypeDefinition":case"InterfaceTypeExtension":case"InterfaceTypeDefinition":{let{kind:Oe}=kt,st=[];return Oe.endsWith("TypeDefinition")?st.push(wn(xe,Ke,nt)):st.push("extend "),Oe.startsWith("ObjectType")?st.push("type"):Oe.startsWith("InputObjectType")?st.push("input"):st.push("interface"),st.push(" ",nt("name")),!Oe.startsWith("InputObjectType")&&kt.interfaces.length>0&&st.push(" implements ",...Z(xe,Ke,nt)),st.push(Yn(xe,nt,kt)),kt.fields.length>0&&st.push([" {",A([W,P(W,di(xe,Ke,nt,"fields"))]),W,"}"]),st}case"FieldDefinition":return[wn(xe,Ke,nt),nt("name"),kt.arguments.length>0?T(["(",A([N,P([M("",", "),N],di(xe,Ke,nt,"arguments"))]),N,")"]):"",": ",nt("type"),Yn(xe,nt,kt)];case"DirectiveDefinition":return[wn(xe,Ke,nt),"directive ","@",nt("name"),kt.arguments.length>0?T(["(",A([N,P([M("",", "),N],di(xe,Ke,nt,"arguments"))]),N,")"]):"",kt.repeatable?" repeatable":""," on ",...P(" | ",xe.map(nt,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[wn(xe,Ke,nt),kt.kind==="EnumTypeExtension"?"extend ":"","enum ",nt("name"),Yn(xe,nt,kt),kt.values.length>0?[" {",A([W,P(W,di(xe,Ke,nt,"values"))]),W,"}"]:""];case"EnumValueDefinition":return[wn(xe,Ke,nt),nt("name"),Yn(xe,nt,kt)];case"InputValueDefinition":return[wn(xe,Ke,nt),nt("name"),": ",nt("type"),kt.defaultValue?[" = ",nt("defaultValue")]:"",Yn(xe,nt,kt)];case"SchemaExtension":return["extend schema",Yn(xe,nt,kt),...kt.operationTypes.length>0?[" {",A([W,P(W,di(xe,Ke,nt,"operationTypes"))]),W,"}"]:[]];case"SchemaDefinition":return[wn(xe,Ke,nt),"schema",Yn(xe,nt,kt)," {",kt.operationTypes.length>0?A([W,P(W,di(xe,Ke,nt,"operationTypes"))]):"",W,"}"];case"OperationTypeDefinition":return[kt.operation,": ",nt("type")];case"FragmentSpread":return["...",nt("name"),Yn(xe,nt,kt)];case"InlineFragment":return["...",kt.typeCondition?[" on ",nt("typeCondition")]:"",Yn(xe,nt,kt)," ",nt("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return T([wn(xe,Ke,nt),T([kt.kind==="UnionTypeExtension"?"extend ":"","union ",nt("name"),Yn(xe,nt,kt),kt.types.length>0?[" =",M(""," "),A([M([F,"| "]),P([F,"| "],xe.map(nt,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[wn(xe,Ke,nt),kt.kind==="ScalarTypeExtension"?"extend ":"","scalar ",nt("name"),Yn(xe,nt,kt)];case"NonNullType":return[nt("type"),"!"];case"ListType":return["[",nt("type"),"]"];default:throw new De(kt,"Graphql","kind")}}function Yn(xe,Ke,nt){if(nt.directives.length===0)return"";let kt=P(F,xe.map(Ke,"directives"));return nt.kind==="FragmentDefinition"||nt.kind==="OperationDefinition"?T([F,kt]):[" ",T(A([N,kt]))]}function di(xe,Ke,nt,kt){return xe.map(({isLast:Oe,node:st})=>{let $t=nt();return!Oe&&oe(Ke.originalText,_t(st))?[$t,W]:$t},kt)}function Li(xe){return xe.kind!=="Comment"}function ke({node:xe}){if(xe.kind==="Comment")return"#"+xe.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(xe))}function Z(xe,Ke,nt){let{node:kt}=xe,Oe=[],{interfaces:st}=kt,$t=xe.map(nt,"interfaces");for(let yi=0;yi<st.length;yi++){let xr=st[yi];Oe.push($t[yi]);let Gn=st[yi+1];if(Gn){let Go=Ke.originalText.slice(xr.loc.end,Gn.loc.start).includes("#");Oe.push(" &",Go?F:" ")}}return Oe}function ne(xe,Ke){let{node:nt}=xe;return Ce(nt.variableDefinitions)?T(["(",A([N,P([M("",", "),N],xe.map(Ke,"variableDefinitions"))]),N,")"]):""}function V(xe,Ke){xe.kind==="StringValue"&&xe.block&&!xe.value.includes(`
`)&&(Ke.value=xe.value.trim())}V.ignoredProperties=new Set(["loc","comments"]);function re(xe){let{node:Ke}=xe;return Ke?.comments?.some(nt=>nt.value.trim()==="prettier-ignore")}var ge={print:Mn,massageAstNode:V,hasPrettierIgnore:re,insertPragma:ln,printComment:ke,canAttachComment:Li,getVisitorKeys:wt},we=ge,ve=[{name:"GraphQL",type:"data",aceMode:"graphqlschema",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",parsers:["graphql"],vscodeLanguageIds:["graphql"],linguistLanguageId:139}],_e={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."}},Ee={bracketSpacing:_e.bracketSpacing},Le=Ee,be={};s(be,{graphql:()=>cc});function Fe(xe){return typeof xe=="object"&&xe!==null}function Ze(xe,Ke){throw new Error("Unexpected invariant triggered.")}var Ve=/\r\n|[\n\r]/g;function dt(xe,Ke){let nt=0,kt=1;for(let Oe of xe.body.matchAll(Ve)){if(typeof Oe.index=="number"||Ze(),Oe.index>=Ke)break;nt=Oe.index+Oe[0].length,kt+=1}return{line:kt,column:Ke+1-nt}}function Vt(xe){return Xe(xe.source,dt(xe.source,xe.start))}function Xe(xe,Ke){let nt=xe.locationOffset.column-1,kt="".padStart(nt)+xe.body,Oe=Ke.line-1,st=xe.locationOffset.line-1,$t=Ke.line+st,yi=Ke.line===1?nt:0,xr=Ke.column+yi,Gn=`${xe.name}:${$t}:${xr}
`,Go=kt.split(/\r\n|[\n\r]/g),ro=Go[Oe];if(ro.length>120){let ts=Math.floor(xr/80),dl=xr%80,hs=[];for(let du=0;du<ro.length;du+=80)hs.push(ro.slice(du,du+80));return Gn+Ht([[`${$t} |`,hs[0]],...hs.slice(1,ts+1).map(du=>["|",du]),["|","^".padStart(dl)],["|",hs[ts+1]]])}return Gn+Ht([[`${$t-1} |`,Go[Oe-1]],[`${$t} |`,ro],["|","^".padStart(xr)],[`${$t+1} |`,Go[Oe+1]]])}function Ht(xe){let Ke=xe.filter(([kt,Oe])=>Oe!==void 0),nt=Math.max(...Ke.map(([kt])=>kt.length));return Ke.map(([kt,Oe])=>kt.padStart(nt)+(Oe?" "+Oe:"")).join(`
`)}function Qt(xe){let Ke=xe[0];return Ke==null||"kind"in Ke||"length"in Ke?{nodes:Ke,source:xe[1],positions:xe[2],path:xe[3],originalError:xe[4],extensions:xe[5]}:Ke}var Dt=class Ezt extends Error{constructor(Ke,...nt){var kt,Oe,st;let{nodes:$t,source:yi,positions:xr,path:Gn,originalError:Go,extensions:ro}=Qt(nt);super(Ke),this.name="GraphQLError",this.path=Gn??void 0,this.originalError=Go??void 0,this.nodes=Tt(Array.isArray($t)?$t:$t?[$t]:void 0);let ts=Tt((kt=this.nodes)===null||kt===void 0?void 0:kt.map(hs=>hs.loc).filter(hs=>hs!=null));this.source=yi??(ts==null||(Oe=ts[0])===null||Oe===void 0?void 0:Oe.source),this.positions=xr??ts?.map(hs=>hs.start),this.locations=xr&&yi?xr.map(hs=>dt(yi,hs)):ts?.map(hs=>dt(hs.source,hs.start));let dl=Fe(Go?.extensions)?Go?.extensions:void 0;this.extensions=(st=ro??dl)!==null&&st!==void 0?st:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),Go!=null&&Go.stack?Object.defineProperty(this,"stack",{value:Go.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Ezt):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let Ke=this.message;if(this.nodes)for(let nt of this.nodes)nt.loc&&(Ke+=`

`+Vt(nt.loc));else if(this.source&&this.locations)for(let nt of this.locations)Ke+=`

`+Xe(this.source,nt);return Ke}toJSON(){let Ke={message:this.message};return this.locations!=null&&(Ke.locations=this.locations),this.path!=null&&(Ke.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(Ke.extensions=this.extensions),Ke}};function Tt(xe){return xe===void 0||xe.length===0?void 0:xe}function en(xe,Ke,nt){return new Dt(`Syntax Error: ${nt}`,{source:xe,positions:[Ke]})}var Bt;(function(xe){xe.QUERY="QUERY",xe.MUTATION="MUTATION",xe.SUBSCRIPTION="SUBSCRIPTION",xe.FIELD="FIELD",xe.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",xe.FRAGMENT_SPREAD="FRAGMENT_SPREAD",xe.INLINE_FRAGMENT="INLINE_FRAGMENT",xe.VARIABLE_DEFINITION="VARIABLE_DEFINITION",xe.SCHEMA="SCHEMA",xe.SCALAR="SCALAR",xe.OBJECT="OBJECT",xe.FIELD_DEFINITION="FIELD_DEFINITION",xe.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",xe.INTERFACE="INTERFACE",xe.UNION="UNION",xe.ENUM="ENUM",xe.ENUM_VALUE="ENUM_VALUE",xe.INPUT_OBJECT="INPUT_OBJECT",xe.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Bt||(Bt={}));var Ue;(function(xe){xe.NAME="Name",xe.DOCUMENT="Document",xe.OPERATION_DEFINITION="OperationDefinition",xe.VARIABLE_DEFINITION="VariableDefinition",xe.SELECTION_SET="SelectionSet",xe.FIELD="Field",xe.ARGUMENT="Argument",xe.FRAGMENT_SPREAD="FragmentSpread",xe.INLINE_FRAGMENT="InlineFragment",xe.FRAGMENT_DEFINITION="FragmentDefinition",xe.VARIABLE="Variable",xe.INT="IntValue",xe.FLOAT="FloatValue",xe.STRING="StringValue",xe.BOOLEAN="BooleanValue",xe.NULL="NullValue",xe.ENUM="EnumValue",xe.LIST="ListValue",xe.OBJECT="ObjectValue",xe.OBJECT_FIELD="ObjectField",xe.DIRECTIVE="Directive",xe.NAMED_TYPE="NamedType",xe.LIST_TYPE="ListType",xe.NON_NULL_TYPE="NonNullType",xe.SCHEMA_DEFINITION="SchemaDefinition",xe.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",xe.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",xe.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",xe.FIELD_DEFINITION="FieldDefinition",xe.INPUT_VALUE_DEFINITION="InputValueDefinition",xe.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",xe.UNION_TYPE_DEFINITION="UnionTypeDefinition",xe.ENUM_TYPE_DEFINITION="EnumTypeDefinition",xe.ENUM_VALUE_DEFINITION="EnumValueDefinition",xe.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",xe.DIRECTIVE_DEFINITION="DirectiveDefinition",xe.SCHEMA_EXTENSION="SchemaExtension",xe.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",xe.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",xe.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",xe.UNION_TYPE_EXTENSION="UnionTypeExtension",xe.ENUM_TYPE_EXTENSION="EnumTypeExtension",xe.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",xe.TYPE_COORDINATE="TypeCoordinate",xe.MEMBER_COORDINATE="MemberCoordinate",xe.ARGUMENT_COORDINATE="ArgumentCoordinate",xe.DIRECTIVE_COORDINATE="DirectiveCoordinate",xe.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(Ue||(Ue={}));function Lt(xe){return xe===9||xe===32}function at(xe){return xe>=48&&xe<=57}function cn(xe){return xe>=97&&xe<=122||xe>=65&&xe<=90}function Bn(xe){return cn(xe)||xe===95}function Tn(xe){return cn(xe)||at(xe)||xe===95}function xi(xe){var Ke;let nt=Number.MAX_SAFE_INTEGER,kt=null,Oe=-1;for(let $t=0;$t<xe.length;++$t){var st;let yi=xe[$t],xr=Zi(yi);xr!==yi.length&&(kt=(st=kt)!==null&&st!==void 0?st:$t,Oe=$t,$t!==0&&xr<nt&&(nt=xr))}return xe.map(($t,yi)=>yi===0?$t:$t.slice(nt)).slice((Ke=kt)!==null&&Ke!==void 0?Ke:0,Oe+1)}function Zi(xe){let Ke=0;for(;Ke<xe.length&&Lt(xe.charCodeAt(Ke));)++Ke;return Ke}var dn;(function(xe){xe.SOF="<SOF>",xe.EOF="<EOF>",xe.BANG="!",xe.DOLLAR="$",xe.AMP="&",xe.PAREN_L="(",xe.PAREN_R=")",xe.DOT=".",xe.SPREAD="...",xe.COLON=":",xe.EQUALS="=",xe.AT="@",xe.BRACKET_L="[",xe.BRACKET_R="]",xe.BRACE_L="{",xe.PIPE="|",xe.BRACE_R="}",xe.NAME="Name",xe.INT="Int",xe.FLOAT="Float",xe.STRING="String",xe.BLOCK_STRING="BlockString",xe.COMMENT="Comment"})(dn||(dn={}));var fi=class{constructor(xe){let Ke=new Ye(dn.SOF,0,0,0,0);this.source=xe,this.lastToken=Ke,this.token=Ke,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let xe=this.token;if(xe.kind!==dn.EOF)do if(xe.next)xe=xe.next;else{let Ke=es(this,xe.end);xe.next=Ke,Ke.prev=xe,xe=Ke}while(xe.kind===dn.COMMENT);return xe}};function Fr(xe){return xe===dn.BANG||xe===dn.DOLLAR||xe===dn.AMP||xe===dn.PAREN_L||xe===dn.PAREN_R||xe===dn.DOT||xe===dn.SPREAD||xe===dn.COLON||xe===dn.EQUALS||xe===dn.AT||xe===dn.BRACKET_L||xe===dn.BRACKET_R||xe===dn.BRACE_L||xe===dn.PIPE||xe===dn.BRACE_R}function Wo(xe){return xe>=0&&xe<=55295||xe>=57344&&xe<=1114111}function Mo(xe,Ke){return Us(xe.charCodeAt(Ke))&&nl(xe.charCodeAt(Ke+1))}function Us(xe){return xe>=55296&&xe<=56319}function nl(xe){return xe>=56320&&xe<=57343}function Ai(xe,Ke){let nt=xe.source.body.codePointAt(Ke);if(nt===void 0)return dn.EOF;if(nt>=32&&nt<=126){let kt=String.fromCodePoint(nt);return kt==='"'?`'"'`:`"${kt}"`}return"U+"+nt.toString(16).toUpperCase().padStart(4,"0")}function dr(xe,Ke,nt,kt,Oe){let st=xe.line,$t=1+nt-xe.lineStart;return new Ye(Ke,nt,kt,st,$t,Oe)}function es(xe,Ke){let nt=xe.source.body,kt=nt.length,Oe=Ke;for(;Oe<kt;){let st=nt.charCodeAt(Oe);switch(st){case 65279:case 9:case 32:case 44:++Oe;continue;case 10:++Oe,++xe.line,xe.lineStart=Oe;continue;case 13:nt.charCodeAt(Oe+1)===10?Oe+=2:++Oe,++xe.line,xe.lineStart=Oe;continue;case 35:return ds(xe,Oe);case 33:return dr(xe,dn.BANG,Oe,Oe+1);case 36:return dr(xe,dn.DOLLAR,Oe,Oe+1);case 38:return dr(xe,dn.AMP,Oe,Oe+1);case 40:return dr(xe,dn.PAREN_L,Oe,Oe+1);case 41:return dr(xe,dn.PAREN_R,Oe,Oe+1);case 46:if(nt.charCodeAt(Oe+1)===46&&nt.charCodeAt(Oe+2)===46)return dr(xe,dn.SPREAD,Oe,Oe+3);break;case 58:return dr(xe,dn.COLON,Oe,Oe+1);case 61:return dr(xe,dn.EQUALS,Oe,Oe+1);case 64:return dr(xe,dn.AT,Oe,Oe+1);case 91:return dr(xe,dn.BRACKET_L,Oe,Oe+1);case 93:return dr(xe,dn.BRACKET_R,Oe,Oe+1);case 123:return dr(xe,dn.BRACE_L,Oe,Oe+1);case 124:return dr(xe,dn.PIPE,Oe,Oe+1);case 125:return dr(xe,dn.BRACE_R,Oe,Oe+1);case 34:return nt.charCodeAt(Oe+1)===34&&nt.charCodeAt(Oe+2)===34?lc(xe,Oe):Dc(xe,Oe)}if(at(st)||st===45)return Jr(xe,Oe,st);if(Bn(st))return Cf(xe,Oe);throw en(xe.source,Oe,st===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Wo(st)||Mo(nt,Oe)?`Unexpected character: ${Ai(xe,Oe)}.`:`Invalid character: ${Ai(xe,Oe)}.`)}return dr(xe,dn.EOF,kt,kt)}function ds(xe,Ke){let nt=xe.source.body,kt=nt.length,Oe=Ke+1;for(;Oe<kt;){let st=nt.charCodeAt(Oe);if(st===10||st===13)break;if(Wo(st))++Oe;else if(Mo(nt,Oe))Oe+=2;else break}return dr(xe,dn.COMMENT,Ke,Oe,nt.slice(Ke+1,Oe))}function Jr(xe,Ke,nt){let kt=xe.source.body,Oe=Ke,st=nt,$t=!1;if(st===45&&(st=kt.charCodeAt(++Oe)),st===48){if(st=kt.charCodeAt(++Oe),at(st))throw en(xe.source,Oe,`Invalid number, unexpected digit after 0: ${Ai(xe,Oe)}.`)}else Oe=Xu(xe,Oe,st),st=kt.charCodeAt(Oe);if(st===46&&($t=!0,st=kt.charCodeAt(++Oe),Oe=Xu(xe,Oe,st),st=kt.charCodeAt(Oe)),(st===69||st===101)&&($t=!0,st=kt.charCodeAt(++Oe),(st===43||st===45)&&(st=kt.charCodeAt(++Oe)),Oe=Xu(xe,Oe,st),st=kt.charCodeAt(Oe)),st===46||Bn(st))throw en(xe.source,Oe,`Invalid number, expected digit but got: ${Ai(xe,Oe)}.`);return dr(xe,$t?dn.FLOAT:dn.INT,Ke,Oe,kt.slice(Ke,Oe))}function Xu(xe,Ke,nt){if(!at(nt))throw en(xe.source,Ke,`Invalid number, expected digit but got: ${Ai(xe,Ke)}.`);let kt=xe.source.body,Oe=Ke+1;for(;at(kt.charCodeAt(Oe));)++Oe;return Oe}function Dc(xe,Ke){let nt=xe.source.body,kt=nt.length,Oe=Ke+1,st=Oe,$t="";for(;Oe<kt;){let yi=nt.charCodeAt(Oe);if(yi===34)return $t+=nt.slice(st,Oe),dr(xe,dn.STRING,Ke,Oe+1,$t);if(yi===92){$t+=nt.slice(st,Oe);let xr=nt.charCodeAt(Oe+1)===117?nt.charCodeAt(Oe+2)===123?Ju(xe,Oe):ed(xe,Oe):td(xe,Oe);$t+=xr.value,Oe+=xr.size,st=Oe;continue}if(yi===10||yi===13)break;if(Wo(yi))++Oe;else if(Mo(nt,Oe))Oe+=2;else throw en(xe.source,Oe,`Invalid character within String: ${Ai(xe,Oe)}.`)}throw en(xe.source,Oe,"Unterminated string.")}function Ju(xe,Ke){let nt=xe.source.body,kt=0,Oe=3;for(;Oe<12;){let st=nt.charCodeAt(Ke+Oe++);if(st===125){if(Oe<5||!Wo(kt))break;return{value:String.fromCodePoint(kt),size:Oe}}if(kt=kt<<4|il(st),kt<0)break}throw en(xe.source,Ke,`Invalid Unicode escape sequence: "${nt.slice(Ke,Ke+Oe)}".`)}function ed(xe,Ke){let nt=xe.source.body,kt=pa(nt,Ke+2);if(Wo(kt))return{value:String.fromCodePoint(kt),size:6};if(Us(kt)&&nt.charCodeAt(Ke+6)===92&&nt.charCodeAt(Ke+7)===117){let Oe=pa(nt,Ke+8);if(nl(Oe))return{value:String.fromCodePoint(kt,Oe),size:12}}throw en(xe.source,Ke,`Invalid Unicode escape sequence: "${nt.slice(Ke,Ke+6)}".`)}function pa(xe,Ke){return il(xe.charCodeAt(Ke))<<12|il(xe.charCodeAt(Ke+1))<<8|il(xe.charCodeAt(Ke+2))<<4|il(xe.charCodeAt(Ke+3))}function il(xe){return xe>=48&&xe<=57?xe-48:xe>=65&&xe<=70?xe-55:xe>=97&&xe<=102?xe-87:-1}function td(xe,Ke){let nt=xe.source.body;switch(nt.charCodeAt(Ke+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw en(xe.source,Ke,`Invalid character escape sequence: "${nt.slice(Ke,Ke+2)}".`)}function lc(xe,Ke){let nt=xe.source.body,kt=nt.length,Oe=xe.lineStart,st=Ke+3,$t=st,yi="",xr=[];for(;st<kt;){let Gn=nt.charCodeAt(st);if(Gn===34&&nt.charCodeAt(st+1)===34&&nt.charCodeAt(st+2)===34){yi+=nt.slice($t,st),xr.push(yi);let Go=dr(xe,dn.BLOCK_STRING,Ke,st+3,xi(xr).join(`
`));return xe.line+=xr.length-1,xe.lineStart=Oe,Go}if(Gn===92&&nt.charCodeAt(st+1)===34&&nt.charCodeAt(st+2)===34&&nt.charCodeAt(st+3)===34){yi+=nt.slice($t,st),$t=st+1,st+=4;continue}if(Gn===10||Gn===13){yi+=nt.slice($t,st),xr.push(yi),Gn===13&&nt.charCodeAt(st+1)===10?st+=2:++st,yi="",$t=st,Oe=st;continue}if(Wo(Gn))++st;else if(Mo(nt,st))st+=2;else throw en(xe.source,st,`Invalid character within String: ${Ai(xe,st)}.`)}throw en(xe.source,st,"Unterminated string.")}function Cf(xe,Ke){let nt=xe.source.body,kt=nt.length,Oe=Ke+1;for(;Oe<kt;){let st=nt.charCodeAt(Oe);if(Tn(st))++Oe;else break}return dr(xe,dn.NAME,Ke,Oe,nt.slice(Ke,Oe))}function Tc(xe,Ke){throw new Error(Ke)}function Ig(xe){return Bu(xe,[])}function Bu(xe,Ke){switch(typeof xe){case"string":return JSON.stringify(xe);case"function":return xe.name?`[function ${xe.name}]`:"[function]";case"object":return ju(xe,Ke);default:return String(xe)}}function ju(xe,Ke){if(xe===null)return"null";if(Ke.includes(xe))return"[Circular]";let nt=[...Ke,xe];if(Mp(xe)){let kt=xe.toJSON();if(kt!==xe)return typeof kt=="string"?kt:Bu(kt,nt)}else if(Array.isArray(xe))return xd(xe,nt);return Op(xe,nt)}function Mp(xe){return typeof xe.toJSON=="function"}function Op(xe,Ke){let nt=Object.entries(xe);return nt.length===0?"{}":Ke.length>2?"["+Sf(xe)+"]":"{ "+nt.map(([kt,Oe])=>kt+": "+Bu(Oe,Ke)).join(", ")+" }"}function xd(xe,Ke){if(xe.length===0)return"[]";if(Ke.length>2)return"[Array]";let nt=Math.min(10,xe.length),kt=xe.length-nt,Oe=[];for(let st=0;st<nt;++st)Oe.push(Bu(xe[st],Ke));return kt===1?Oe.push("... 1 more item"):kt>1&&Oe.push(`... ${kt} more items`),"["+Oe.join(", ")+"]"}function Sf(xe){let Ke=Object.prototype.toString.call(xe).replace(/^\[object /,"").replace(/]$/,"");if(Ke==="Object"&&typeof xe.constructor=="function"){let nt=xe.constructor.name;if(typeof nt=="string"&&nt!=="")return nt}return Ke}var Mh=globalThis.process&&!0,Sm=Mh?function(xe,Ke){return xe instanceof Ke}:function(xe,Ke){if(xe instanceof Ke)return!0;if(typeof xe=="object"&&xe!==null){var nt;let kt=Ke.prototype[Symbol.toStringTag],Oe=Symbol.toStringTag in xe?xe[Symbol.toStringTag]:(nt=xe.constructor)===null||nt===void 0?void 0:nt.name;if(kt===Oe){let st=Ig(xe);throw new Error(`Cannot use ${kt} "${st}" from another module or realm.

Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.

https://yarnpkg.com/en/docs/selective-version-resolutions

Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.`)}}return!1},io=class{constructor(xe,Ke="GraphQL request",nt={line:1,column:1}){typeof xe=="string"||Tc(!1,`Body must be a string. Received: ${Ig(xe)}.`),this.body=xe,this.name=Ke,this.locationOffset=nt,this.locationOffset.line>0||Tc(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Tc(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function Ml(xe){return Sm(xe,io)}function Rp(xe,Ke){let nt=new xf(xe,Ke),kt=nt.parseDocument();return Object.defineProperty(kt,"tokenCount",{enumerable:!1,value:nt.tokenCount}),kt}var xf=class{constructor(xe,Ke={}){let{lexer:nt,...kt}=Ke;if(nt)this._lexer=nt;else{let Oe=Ml(xe)?xe:new io(xe);this._lexer=new fi(Oe)}this._options=kt,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let xe=this.expectToken(dn.NAME);return this.node(xe,{kind:Ue.NAME,value:xe.value})}parseDocument(){return this.node(this._lexer.token,{kind:Ue.DOCUMENT,definitions:this.many(dn.SOF,this.parseDefinition,dn.EOF)})}parseDefinition(){if(this.peek(dn.BRACE_L))return this.parseOperationDefinition();let xe=this.peekDescription(),Ke=xe?this._lexer.lookahead():this._lexer.token;if(xe&&Ke.kind===dn.BRACE_L)throw en(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(Ke.kind===dn.NAME){switch(Ke.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(Ke.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(xe)throw en(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(Ke.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(Ke)}parseOperationDefinition(){let xe=this._lexer.token;if(this.peek(dn.BRACE_L))return this.node(xe,{kind:Ue.OPERATION_DEFINITION,operation:ft.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let Ke=this.parseDescription(),nt=this.parseOperationType(),kt;return this.peek(dn.NAME)&&(kt=this.parseName()),this.node(xe,{kind:Ue.OPERATION_DEFINITION,operation:nt,description:Ke,name:kt,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let xe=this.expectToken(dn.NAME);switch(xe.value){case"query":return ft.QUERY;case"mutation":return ft.MUTATION;case"subscription":return ft.SUBSCRIPTION}throw this.unexpected(xe)}parseVariableDefinitions(){return this.optionalMany(dn.PAREN_L,this.parseVariableDefinition,dn.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Ue.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(dn.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(dn.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let xe=this._lexer.token;return this.expectToken(dn.DOLLAR),this.node(xe,{kind:Ue.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Ue.SELECTION_SET,selections:this.many(dn.BRACE_L,this.parseSelection,dn.BRACE_R)})}parseSelection(){return this.peek(dn.SPREAD)?this.parseFragment():this.parseField()}parseField(){let xe=this._lexer.token,Ke=this.parseName(),nt,kt;return this.expectOptionalToken(dn.COLON)?(nt=Ke,kt=this.parseName()):kt=Ke,this.node(xe,{kind:Ue.FIELD,alias:nt,name:kt,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(dn.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(xe){let Ke=xe?this.parseConstArgument:this.parseArgument;return this.optionalMany(dn.PAREN_L,Ke,dn.PAREN_R)}parseArgument(xe=!1){let Ke=this._lexer.token,nt=this.parseName();return this.expectToken(dn.COLON),this.node(Ke,{kind:Ue.ARGUMENT,name:nt,value:this.parseValueLiteral(xe)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let xe=this._lexer.token;this.expectToken(dn.SPREAD);let Ke=this.expectOptionalKeyword("on");return!Ke&&this.peek(dn.NAME)?this.node(xe,{kind:Ue.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(xe,{kind:Ue.INLINE_FRAGMENT,typeCondition:Ke?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let xe=this._lexer.token,Ke=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(xe,{kind:Ue.FRAGMENT_DEFINITION,description:Ke,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(xe,{kind:Ue.FRAGMENT_DEFINITION,description:Ke,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(xe){let Ke=this._lexer.token;switch(Ke.kind){case dn.BRACKET_L:return this.parseList(xe);case dn.BRACE_L:return this.parseObject(xe);case dn.INT:return this.advanceLexer(),this.node(Ke,{kind:Ue.INT,value:Ke.value});case dn.FLOAT:return this.advanceLexer(),this.node(Ke,{kind:Ue.FLOAT,value:Ke.value});case dn.STRING:case dn.BLOCK_STRING:return this.parseStringLiteral();case dn.NAME:switch(this.advanceLexer(),Ke.value){case"true":return this.node(Ke,{kind:Ue.BOOLEAN,value:!0});case"false":return this.node(Ke,{kind:Ue.BOOLEAN,value:!1});case"null":return this.node(Ke,{kind:Ue.NULL});default:return this.node(Ke,{kind:Ue.ENUM,value:Ke.value})}case dn.DOLLAR:if(xe)if(this.expectToken(dn.DOLLAR),this._lexer.token.kind===dn.NAME){let nt=this._lexer.token.value;throw en(this._lexer.source,Ke.start,`Unexpected variable "$${nt}" in constant value.`)}else throw this.unexpected(Ke);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let xe=this._lexer.token;return this.advanceLexer(),this.node(xe,{kind:Ue.STRING,value:xe.value,block:xe.kind===dn.BLOCK_STRING})}parseList(xe){let Ke=()=>this.parseValueLiteral(xe);return this.node(this._lexer.token,{kind:Ue.LIST,values:this.any(dn.BRACKET_L,Ke,dn.BRACKET_R)})}parseObject(xe){let Ke=()=>this.parseObjectField(xe);return this.node(this._lexer.token,{kind:Ue.OBJECT,fields:this.any(dn.BRACE_L,Ke,dn.BRACE_R)})}parseObjectField(xe){let Ke=this._lexer.token,nt=this.parseName();return this.expectToken(dn.COLON),this.node(Ke,{kind:Ue.OBJECT_FIELD,name:nt,value:this.parseValueLiteral(xe)})}parseDirectives(xe){let Ke=[];for(;this.peek(dn.AT);)Ke.push(this.parseDirective(xe));return Ke}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(xe){let Ke=this._lexer.token;return this.expectToken(dn.AT),this.node(Ke,{kind:Ue.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(xe)})}parseTypeReference(){let xe=this._lexer.token,Ke;if(this.expectOptionalToken(dn.BRACKET_L)){let nt=this.parseTypeReference();this.expectToken(dn.BRACKET_R),Ke=this.node(xe,{kind:Ue.LIST_TYPE,type:nt})}else Ke=this.parseNamedType();return this.expectOptionalToken(dn.BANG)?this.node(xe,{kind:Ue.NON_NULL_TYPE,type:Ke}):Ke}parseNamedType(){return this.node(this._lexer.token,{kind:Ue.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(dn.STRING)||this.peek(dn.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let xe=this._lexer.token,Ke=this.parseDescription();this.expectKeyword("schema");let nt=this.parseConstDirectives(),kt=this.many(dn.BRACE_L,this.parseOperationTypeDefinition,dn.BRACE_R);return this.node(xe,{kind:Ue.SCHEMA_DEFINITION,description:Ke,directives:nt,operationTypes:kt})}parseOperationTypeDefinition(){let xe=this._lexer.token,Ke=this.parseOperationType();this.expectToken(dn.COLON);let nt=this.parseNamedType();return this.node(xe,{kind:Ue.OPERATION_TYPE_DEFINITION,operation:Ke,type:nt})}parseScalarTypeDefinition(){let xe=this._lexer.token,Ke=this.parseDescription();this.expectKeyword("scalar");let nt=this.parseName(),kt=this.parseConstDirectives();return this.node(xe,{kind:Ue.SCALAR_TYPE_DEFINITION,description:Ke,name:nt,directives:kt})}parseObjectTypeDefinition(){let xe=this._lexer.token,Ke=this.parseDescription();this.expectKeyword("type");let nt=this.parseName(),kt=this.parseImplementsInterfaces(),Oe=this.parseConstDirectives(),st=this.parseFieldsDefinition();return this.node(xe,{kind:Ue.OBJECT_TYPE_DEFINITION,description:Ke,name:nt,interfaces:kt,directives:Oe,fields:st})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(dn.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(dn.BRACE_L,this.parseFieldDefinition,dn.BRACE_R)}parseFieldDefinition(){let xe=this._lexer.token,Ke=this.parseDescription(),nt=this.parseName(),kt=this.parseArgumentDefs();this.expectToken(dn.COLON);let Oe=this.parseTypeReference(),st=this.parseConstDirectives();return this.node(xe,{kind:Ue.FIELD_DEFINITION,description:Ke,name:nt,arguments:kt,type:Oe,directives:st})}parseArgumentDefs(){return this.optionalMany(dn.PAREN_L,this.parseInputValueDef,dn.PAREN_R)}parseInputValueDef(){let xe=this._lexer.token,Ke=this.parseDescription(),nt=this.parseName();this.expectToken(dn.COLON);let kt=this.parseTypeReference(),Oe;this.expectOptionalToken(dn.EQUALS)&&(Oe=this.parseConstValueLiteral());let st=this.parseConstDirectives();return this.node(xe,{kind:Ue.INPUT_VALUE_DEFINITION,description:Ke,name:nt,type:kt,defaultValue:Oe,directives:st})}parseInterfaceTypeDefinition(){let xe=this._lexer.token,Ke=this.parseDescription();this.expectKeyword("interface");let nt=this.parseName(),kt=this.parseImplementsInterfaces(),Oe=this.parseConstDirectives(),st=this.parseFieldsDefinition();return this.node(xe,{kind:Ue.INTERFACE_TYPE_DEFINITION,description:Ke,name:nt,interfaces:kt,directives:Oe,fields:st})}parseUnionTypeDefinition(){let xe=this._lexer.token,Ke=this.parseDescription();this.expectKeyword("union");let nt=this.parseName(),kt=this.parseConstDirectives(),Oe=this.parseUnionMemberTypes();return this.node(xe,{kind:Ue.UNION_TYPE_DEFINITION,description:Ke,name:nt,directives:kt,types:Oe})}parseUnionMemberTypes(){return this.expectOptionalToken(dn.EQUALS)?this.delimitedMany(dn.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let xe=this._lexer.token,Ke=this.parseDescription();this.expectKeyword("enum");let nt=this.parseName(),kt=this.parseConstDirectives(),Oe=this.parseEnumValuesDefinition();return this.node(xe,{kind:Ue.ENUM_TYPE_DEFINITION,description:Ke,name:nt,directives:kt,values:Oe})}parseEnumValuesDefinition(){return this.optionalMany(dn.BRACE_L,this.parseEnumValueDefinition,dn.BRACE_R)}parseEnumValueDefinition(){let xe=this._lexer.token,Ke=this.parseDescription(),nt=this.parseEnumValueName(),kt=this.parseConstDirectives();return this.node(xe,{kind:Ue.ENUM_VALUE_DEFINITION,description:Ke,name:nt,directives:kt})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw en(this._lexer.source,this._lexer.token.start,`${kc(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let xe=this._lexer.token,Ke=this.parseDescription();this.expectKeyword("input");let nt=this.parseName(),kt=this.parseConstDirectives(),Oe=this.parseInputFieldsDefinition();return this.node(xe,{kind:Ue.INPUT_OBJECT_TYPE_DEFINITION,description:Ke,name:nt,directives:kt,fields:Oe})}parseInputFieldsDefinition(){return this.optionalMany(dn.BRACE_L,this.parseInputValueDef,dn.BRACE_R)}parseTypeSystemExtension(){let xe=this._lexer.lookahead();if(xe.kind===dn.NAME)switch(xe.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(xe)}parseSchemaExtension(){let xe=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let Ke=this.parseConstDirectives(),nt=this.optionalMany(dn.BRACE_L,this.parseOperationTypeDefinition,dn.BRACE_R);if(Ke.length===0&&nt.length===0)throw this.unexpected();return this.node(xe,{kind:Ue.SCHEMA_EXTENSION,directives:Ke,operationTypes:nt})}parseScalarTypeExtension(){let xe=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let Ke=this.parseName(),nt=this.parseConstDirectives();if(nt.length===0)throw this.unexpected();return this.node(xe,{kind:Ue.SCALAR_TYPE_EXTENSION,name:Ke,directives:nt})}parseObjectTypeExtension(){let xe=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let Ke=this.parseName(),nt=this.parseImplementsInterfaces(),kt=this.parseConstDirectives(),Oe=this.parseFieldsDefinition();if(nt.length===0&&kt.length===0&&Oe.length===0)throw this.unexpected();return this.node(xe,{kind:Ue.OBJECT_TYPE_EXTENSION,name:Ke,interfaces:nt,directives:kt,fields:Oe})}parseInterfaceTypeExtension(){let xe=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let Ke=this.parseName(),nt=this.parseImplementsInterfaces(),kt=this.parseConstDirectives(),Oe=this.parseFieldsDefinition();if(nt.length===0&&kt.length===0&&Oe.length===0)throw this.unexpected();return this.node(xe,{kind:Ue.INTERFACE_TYPE_EXTENSION,name:Ke,interfaces:nt,directives:kt,fields:Oe})}parseUnionTypeExtension(){let xe=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let Ke=this.parseName(),nt=this.parseConstDirectives(),kt=this.parseUnionMemberTypes();if(nt.length===0&&kt.length===0)throw this.unexpected();return this.node(xe,{kind:Ue.UNION_TYPE_EXTENSION,name:Ke,directives:nt,types:kt})}parseEnumTypeExtension(){let xe=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let Ke=this.parseName(),nt=this.parseConstDirectives(),kt=this.parseEnumValuesDefinition();if(nt.length===0&&kt.length===0)throw this.unexpected();return this.node(xe,{kind:Ue.ENUM_TYPE_EXTENSION,name:Ke,directives:nt,values:kt})}parseInputObjectTypeExtension(){let xe=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let Ke=this.parseName(),nt=this.parseConstDirectives(),kt=this.parseInputFieldsDefinition();if(nt.length===0&&kt.length===0)throw this.unexpected();return this.node(xe,{kind:Ue.INPUT_OBJECT_TYPE_EXTENSION,name:Ke,directives:nt,fields:kt})}parseDirectiveDefinition(){let xe=this._lexer.token,Ke=this.parseDescription();this.expectKeyword("directive"),this.expectToken(dn.AT);let nt=this.parseName(),kt=this.parseArgumentDefs(),Oe=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let st=this.parseDirectiveLocations();return this.node(xe,{kind:Ue.DIRECTIVE_DEFINITION,description:Ke,name:nt,arguments:kt,repeatable:Oe,locations:st})}parseDirectiveLocations(){return this.delimitedMany(dn.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let xe=this._lexer.token,Ke=this.parseName();if(Object.prototype.hasOwnProperty.call(Bt,Ke.value))return Ke;throw this.unexpected(xe)}parseSchemaCoordinate(){let xe=this._lexer.token,Ke=this.expectOptionalToken(dn.AT),nt=this.parseName(),kt;!Ke&&this.expectOptionalToken(dn.DOT)&&(kt=this.parseName());let Oe;return(Ke||kt)&&this.expectOptionalToken(dn.PAREN_L)&&(Oe=this.parseName(),this.expectToken(dn.COLON),this.expectToken(dn.PAREN_R)),Ke?Oe?this.node(xe,{kind:Ue.DIRECTIVE_ARGUMENT_COORDINATE,name:nt,argumentName:Oe}):this.node(xe,{kind:Ue.DIRECTIVE_COORDINATE,name:nt}):kt?Oe?this.node(xe,{kind:Ue.ARGUMENT_COORDINATE,name:nt,fieldName:kt,argumentName:Oe}):this.node(xe,{kind:Ue.MEMBER_COORDINATE,name:nt,memberName:kt}):this.node(xe,{kind:Ue.TYPE_COORDINATE,name:nt})}node(xe,Ke){return this._options.noLocation!==!0&&(Ke.loc=new ze(xe,this._lexer.lastToken,this._lexer.source)),Ke}peek(xe){return this._lexer.token.kind===xe}expectToken(xe){let Ke=this._lexer.token;if(Ke.kind===xe)return this.advanceLexer(),Ke;throw en(this._lexer.source,Ke.start,`Expected ${nd(xe)}, found ${kc(Ke)}.`)}expectOptionalToken(xe){return this._lexer.token.kind===xe?(this.advanceLexer(),!0):!1}expectKeyword(xe){let Ke=this._lexer.token;if(Ke.kind===dn.NAME&&Ke.value===xe)this.advanceLexer();else throw en(this._lexer.source,Ke.start,`Expected "${xe}", found ${kc(Ke)}.`)}expectOptionalKeyword(xe){let Ke=this._lexer.token;return Ke.kind===dn.NAME&&Ke.value===xe?(this.advanceLexer(),!0):!1}unexpected(xe){let Ke=xe??this._lexer.token;return en(this._lexer.source,Ke.start,`Unexpected ${kc(Ke)}.`)}any(xe,Ke,nt){this.expectToken(xe);let kt=[];for(;!this.expectOptionalToken(nt);)kt.push(Ke.call(this));return kt}optionalMany(xe,Ke,nt){if(this.expectOptionalToken(xe)){let kt=[];do kt.push(Ke.call(this));while(!this.expectOptionalToken(nt));return kt}return[]}many(xe,Ke,nt){this.expectToken(xe);let kt=[];do kt.push(Ke.call(this));while(!this.expectOptionalToken(nt));return kt}delimitedMany(xe,Ke){this.expectOptionalToken(xe);let nt=[];do nt.push(Ke.call(this));while(this.expectOptionalToken(xe));return nt}advanceLexer(){let{maxTokens:xe}=this._options,Ke=this._lexer.advance();if(Ke.kind!==dn.EOF&&(++this._tokenCounter,xe!==void 0&&this._tokenCounter>xe))throw en(this._lexer.source,Ke.start,`Document contains more that ${xe} tokens. Parsing aborted.`)}};function kc(xe){let Ke=xe.value;return nd(xe.kind)+(Ke!=null?` "${Ke}"`:"")}function nd(xe){return Fr(xe)?`"${xe}"`:xe}function Ic(xe,Ke){let nt=new SyntaxError(xe+" ("+Ke.loc.start.line+":"+Ke.loc.start.column+")");return Object.assign(nt,Ke)}var Eu=Ic;function Ed(xe){let Ke=[],{startToken:nt,endToken:kt}=xe.loc;for(let Oe=nt;Oe!==kt;Oe=Oe.next)Oe.kind==="Comment"&&Ke.push({...Oe,loc:{start:Oe.start,end:Oe.end}});return Ke}var $c={allowLegacyFragmentVariables:!0};function Lc(xe){if(xe?.name==="GraphQLError"){let{message:Ke,locations:[nt]}=xe;return Eu(Ke,{loc:{start:nt},cause:xe})}return xe}function Ef(xe){let Ke;try{Ke=Rp(xe,$c)}catch(nt){throw Lc(nt)}return Ke.comments=Ed(Ke),Ke}var cc={parse:Ef,astFormat:"graphql",hasPragma:Gt,hasIgnorePragma:Kt,locStart:pt,locEnd:_t},Au={graphql:we};return l(c)})}});function El(e,t){if(!!!e)throw new Error(t)}var wN=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/jsutils/devAssert.mjs"(){}});function OD(e){return typeof e=="object"&&e!==null}var q2=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/jsutils/isObjectLike.mjs"(){}});function H_(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}var dT=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/jsutils/invariant.mjs"(){}});function cFe(e,t){let n=0,i=1;for(const r of e.body.matchAll(Azt)){if(typeof r.index=="number"||H_(!1),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}var Azt,Dzt=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/language/location.mjs"(){dT(),Azt=/\r\n|[\n\r]/g}});function U4n(e){return Tzt(e.source,cFe(e.source,e.start))}function Tzt(e,t){const n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=t.line===1?n:0,l=t.column+a,c=`${e.name}:${s}:${l}
`,u=i.split(/\r\n|[\n\r]/g),d=u[r];if(d.length>120){const h=Math.floor(l/80),f=l%80,p=[];for(let g=0;g<d.length;g+=80)p.push(d.slice(g,g+80));return c+Mot([[`${s} |`,p[0]],...p.slice(1,h+1).map(g=>["|",g]),["|","^".padStart(f)],["|",p[h+1]]])}return c+Mot([[`${s-1} |`,u[r-1]],[`${s} |`,d],["|","^".padStart(l)],[`${s+1} |`,u[r+1]]])}function Mot(e){const t=e.filter(([i,r])=>r!==void 0),n=Math.max(...t.map(([i])=>i.length));return t.map(([i,r])=>i.padStart(n)+(r?" "+r:"")).join(`
`)}var $4n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/language/printLocation.mjs"(){Dzt()}});function q4n(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}function Oot(e){return e===void 0||e.length===0?void 0:e}var qi,oa=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/error/GraphQLError.mjs"(){q2(),Dzt(),$4n(),qi=class kzt extends Error{constructor(t,...n){var i,r,o;const{nodes:s,source:a,positions:l,path:c,originalError:u,extensions:d}=q4n(n);super(t),this.name="GraphQLError",this.path=c??void 0,this.originalError=u??void 0,this.nodes=Oot(Array.isArray(s)?s:s?[s]:void 0);const h=Oot((i=this.nodes)===null||i===void 0?void 0:i.map(p=>p.loc).filter(p=>p!=null));this.source=a??(h==null||(r=h[0])===null||r===void 0?void 0:r.source),this.positions=l??h?.map(p=>p.start),this.locations=l&&a?l.map(p=>cFe(a,p)):h?.map(p=>cFe(p.source,p.start));const f=OD(u?.extensions)?u?.extensions:void 0;this.extensions=(o=d??f)!==null&&o!==void 0?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),u!=null&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,kzt):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=`

`+U4n(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=`

`+Tzt(this.source,n);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}}});function Mf(e,t,n){return new qi(`Syntax Error: ${n}`,{source:e,positions:[t]})}var Izt=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/error/syntaxError.mjs"(){oa()}});function uFe(e){const t=e?.kind;return typeof t=="string"&&Nzt.has(t)}var Lzt,JVe,hue,Nzt,gv,CN=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/language/ast.mjs"(){Lzt=class{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},JVe=class{constructor(e,t,n,i,r,o){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},hue={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},Nzt=new Set(Object.keys(hue)),(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(gv||(gv={}))}}),jo,Epe=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/language/directiveLocation.mjs"(){(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(jo||(jo={}))}}),Ct,sc=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/language/kinds.mjs"(){(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(Ct||(Ct={}))}});function dFe(e){return e===9||e===32}function Aq(e){return e>=48&&e<=57}function Pzt(e){return e>=97&&e<=122||e>=65&&e<=90}function e3e(e){return Pzt(e)||e===95}function Mzt(e){return Pzt(e)||Aq(e)||e===95}var t3e=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/language/characterClasses.mjs"(){}});function G4n(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,r=-1;for(let s=0;s<e.length;++s){var o;const a=e[s],l=K4n(a);l!==a.length&&(i=(o=i)!==null&&o!==void 0?o:s,r=s,s!==0&&l<n&&(n=l))}return e.map((s,a)=>a===0?s:s.slice(n)).slice((t=i)!==null&&t!==void 0?t:0,r+1)}function K4n(e){let t=0;for(;t<e.length&&dFe(e.charCodeAt(t));)++t;return t}function Y4n(e){if(e==="")return!0;let t=!0,n=!1,i=!0,r=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(t&&!r)return!1;r=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:i&&(i=n),t=!1}return!(t||i&&r)}function Q4n(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),r=i.length===1,o=i.length>1&&i.slice(1).every(f=>f.length===0||dFe(f.charCodeAt(0))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,l=e.endsWith("\\"),c=a||l,u=!r||e.length>70||c||o||s;let d="";const h=r&&dFe(e.charCodeAt(0));return(u&&!h||o)&&(d+=`
`),d+=n,(u||c)&&(d+=`
`),'"""'+d+'"""'}var n3e=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/language/blockString.mjs"(){t3e()}}),ai,Ozt=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/language/tokenKind.mjs"(){(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(ai||(ai={}))}});function Z4n(e){return e===ai.BANG||e===ai.DOLLAR||e===ai.AMP||e===ai.PAREN_L||e===ai.PAREN_R||e===ai.DOT||e===ai.SPREAD||e===ai.COLON||e===ai.EQUALS||e===ai.AT||e===ai.BRACKET_L||e===ai.BRACKET_R||e===ai.BRACE_L||e===ai.PIPE||e===ai.BRACE_R}function y7(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Ape(e,t){return Rzt(e.charCodeAt(t))&&Fzt(e.charCodeAt(t+1))}function Rzt(e){return e>=55296&&e<=56319}function Fzt(e){return e>=56320&&e<=57343}function HR(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return ai.EOF;if(n>=32&&n<=126){const i=String.fromCodePoint(n);return i==='"'?`'"'`:`"${i}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Yh(e,t,n,i,r){const o=e.line,s=1+n-e.lineStart;return new JVe(t,n,i,o,s,r)}function X4n(e,t){const n=e.source.body,i=n.length;let r=t;for(;r<i;){const o=n.charCodeAt(r);switch(o){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++e.line,e.lineStart=r;continue;case 13:n.charCodeAt(r+1)===10?r+=2:++r,++e.line,e.lineStart=r;continue;case 35:return J4n(e,r);case 33:return Yh(e,ai.BANG,r,r+1);case 36:return Yh(e,ai.DOLLAR,r,r+1);case 38:return Yh(e,ai.AMP,r,r+1);case 40:return Yh(e,ai.PAREN_L,r,r+1);case 41:return Yh(e,ai.PAREN_R,r,r+1);case 46:if(n.charCodeAt(r+1)===46&&n.charCodeAt(r+2)===46)return Yh(e,ai.SPREAD,r,r+3);break;case 58:return Yh(e,ai.COLON,r,r+1);case 61:return Yh(e,ai.EQUALS,r,r+1);case 64:return Yh(e,ai.AT,r,r+1);case 91:return Yh(e,ai.BRACKET_L,r,r+1);case 93:return Yh(e,ai.BRACKET_R,r,r+1);case 123:return Yh(e,ai.BRACE_L,r,r+1);case 124:return Yh(e,ai.PIPE,r,r+1);case 125:return Yh(e,ai.BRACE_R,r,r+1);case 34:return n.charCodeAt(r+1)===34&&n.charCodeAt(r+2)===34?oBn(e,r):tBn(e,r)}if(Aq(o)||o===45)return eBn(e,r,o);if(e3e(o))return sBn(e,r);throw Mf(e.source,r,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:y7(o)||Ape(n,r)?`Unexpected character: ${HR(e,r)}.`:`Invalid character: ${HR(e,r)}.`)}return Yh(e,ai.EOF,i,i)}function J4n(e,t){const n=e.source.body,i=n.length;let r=t+1;for(;r<i;){const o=n.charCodeAt(r);if(o===10||o===13)break;if(y7(o))++r;else if(Ape(n,r))r+=2;else break}return Yh(e,ai.COMMENT,t,r,n.slice(t+1,r))}function eBn(e,t,n){const i=e.source.body;let r=t,o=n,s=!1;if(o===45&&(o=i.charCodeAt(++r)),o===48){if(o=i.charCodeAt(++r),Aq(o))throw Mf(e.source,r,`Invalid number, unexpected digit after 0: ${HR(e,r)}.`)}else r=owe(e,r,o),o=i.charCodeAt(r);if(o===46&&(s=!0,o=i.charCodeAt(++r),r=owe(e,r,o),o=i.charCodeAt(r)),(o===69||o===101)&&(s=!0,o=i.charCodeAt(++r),(o===43||o===45)&&(o=i.charCodeAt(++r)),r=owe(e,r,o),o=i.charCodeAt(r)),o===46||e3e(o))throw Mf(e.source,r,`Invalid number, expected digit but got: ${HR(e,r)}.`);return Yh(e,s?ai.FLOAT:ai.INT,t,r,i.slice(t,r))}function owe(e,t,n){if(!Aq(n))throw Mf(e.source,t,`Invalid number, expected digit but got: ${HR(e,t)}.`);const i=e.source.body;let r=t+1;for(;Aq(i.charCodeAt(r));)++r;return r}function tBn(e,t){const n=e.source.body,i=n.length;let r=t+1,o=r,s="";for(;r<i;){const a=n.charCodeAt(r);if(a===34)return s+=n.slice(o,r),Yh(e,ai.STRING,t,r+1,s);if(a===92){s+=n.slice(o,r);const l=n.charCodeAt(r+1)===117?n.charCodeAt(r+2)===123?nBn(e,r):iBn(e,r):rBn(e,r);s+=l.value,r+=l.size,o=r;continue}if(a===10||a===13)break;if(y7(a))++r;else if(Ape(n,r))r+=2;else throw Mf(e.source,r,`Invalid character within String: ${HR(e,r)}.`)}throw Mf(e.source,r,"Unterminated string.")}function nBn(e,t){const n=e.source.body;let i=0,r=3;for(;r<12;){const o=n.charCodeAt(t+r++);if(o===125){if(r<5||!y7(i))break;return{value:String.fromCodePoint(i),size:r}}if(i=i<<4|TH(o),i<0)break}throw Mf(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+r)}".`)}function iBn(e,t){const n=e.source.body,i=Rot(n,t+2);if(y7(i))return{value:String.fromCodePoint(i),size:6};if(Rzt(i)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const r=Rot(n,t+8);if(Fzt(r))return{value:String.fromCodePoint(i,r),size:12}}throw Mf(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function Rot(e,t){return TH(e.charCodeAt(t))<<12|TH(e.charCodeAt(t+1))<<8|TH(e.charCodeAt(t+2))<<4|TH(e.charCodeAt(t+3))}function TH(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function rBn(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw Mf(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function oBn(e,t){const n=e.source.body,i=n.length;let r=e.lineStart,o=t+3,s=o,a="";const l=[];for(;o<i;){const c=n.charCodeAt(o);if(c===34&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34){a+=n.slice(s,o),l.push(a);const u=Yh(e,ai.BLOCK_STRING,t,o+3,G4n(l).join(`
`));return e.line+=l.length-1,e.lineStart=r,u}if(c===92&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34&&n.charCodeAt(o+3)===34){a+=n.slice(s,o),s=o+1,o+=4;continue}if(c===10||c===13){a+=n.slice(s,o),l.push(a),c===13&&n.charCodeAt(o+1)===10?o+=2:++o,a="",s=o,r=o;continue}if(y7(c))++o;else if(Ape(n,o))o+=2;else throw Mf(e.source,o,`Invalid character within String: ${HR(e,o)}.`)}throw Mf(e.source,o,"Unterminated string.")}function sBn(e,t){const n=e.source.body,i=n.length;let r=t+1;for(;r<i;){const o=n.charCodeAt(r);if(Mzt(o))++r;else break}return Yh(e,ai.NAME,t,r,n.slice(t,r))}var Bzt,aBn=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/language/lexer.mjs"(){Izt(),CN(),n3e(),t3e(),Ozt(),Bzt=class{constructor(e){const t=new JVe(ai.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==ai.EOF)do if(e.next)e=e.next;else{const t=X4n(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===ai.COMMENT);return e}}}});function Ji(e){return Dpe(e,[])}function Dpe(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return lBn(e,t);default:return String(e)}}function lBn(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(cBn(e)){const i=e.toJSON();if(i!==e)return typeof i=="string"?i:Dpe(i,n)}else if(Array.isArray(e))return dBn(e,n);return uBn(e,n)}function cBn(e){return typeof e.toJSON=="function"}function uBn(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>i3e?"["+hBn(e)+"]":"{ "+n.map(([r,o])=>r+": "+Dpe(o,t)).join(", ")+" }"}function dBn(e,t){if(e.length===0)return"[]";if(t.length>i3e)return"[Array]";const n=Math.min(jzt,e.length),i=e.length-n,r=[];for(let o=0;o<n;++o)r.push(Dpe(e[o],t));return i===1?r.push("... 1 more item"):i>1&&r.push(`... ${i} more items`),"["+r.join(", ")+"]"}function hBn(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}var jzt,i3e,qd=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/jsutils/inspect.mjs"(){jzt=10,i3e=2}}),Fot,pw,Tpe=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/jsutils/instanceOf.mjs"(){qd(),Fot=globalThis.process&&!0,pw=Fot?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var i;const r=n.prototype[Symbol.toStringTag],o=Symbol.toStringTag in t?t[Symbol.toStringTag]:(i=t.constructor)===null||i===void 0?void 0:i.name;if(r===o){const s=Ji(t);throw new Error(`Cannot use ${r} "${s}" from another module or realm.

Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.

https://yarnpkg.com/en/docs/selective-version-resolutions

Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.`)}}return!1}}});function fBn(e){return pw(e,r3e)}var r3e,pBn=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/language/source.mjs"(){wN(),qd(),Tpe(),r3e=class{constructor(e,t="GraphQL request",n={line:1,column:1}){typeof e=="string"||El(!1,`Body must be a string. Received: ${Ji(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||El(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||El(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}}});function BK(e,t){const n=new o3e(e,t),i=n.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:n.tokenCount}),i}function gBn(e,t){const n=new o3e(e,t);n.expectToken(ai.SOF);const i=n.parseValueLiteral(!1);return n.expectToken(ai.EOF),i}function GX(e){const t=e.value;return zzt(e.kind)+(t!=null?` "${t}"`:"")}function zzt(e){return Z4n(e)?`"${e}"`:e}var o3e,Vzt=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/language/parser.mjs"(){Izt(),CN(),Epe(),sc(),aBn(),pBn(),Ozt(),o3e=class{constructor(e,t={}){const{lexer:n,...i}=t;if(n)this._lexer=n;else{const r=fBn(e)?e:new r3e(e);this._lexer=new Bzt(r)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(ai.NAME);return this.node(e,{kind:Ct.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:Ct.DOCUMENT,definitions:this.many(ai.SOF,this.parseDefinition,ai.EOF)})}parseDefinition(){if(this.peek(ai.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===ai.BRACE_L)throw Mf(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===ai.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw Mf(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(t.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(ai.BRACE_L))return this.node(e,{kind:Ct.OPERATION_DEFINITION,operation:gv.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseDescription(),n=this.parseOperationType();let i;return this.peek(ai.NAME)&&(i=this.parseName()),this.node(e,{kind:Ct.OPERATION_DEFINITION,operation:n,description:t,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(ai.NAME);switch(e.value){case"query":return gv.QUERY;case"mutation":return gv.MUTATION;case"subscription":return gv.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(ai.PAREN_L,this.parseVariableDefinition,ai.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Ct.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(ai.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(ai.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(ai.DOLLAR),this.node(e,{kind:Ct.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Ct.SELECTION_SET,selections:this.many(ai.BRACE_L,this.parseSelection,ai.BRACE_R)})}parseSelection(){return this.peek(ai.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,i;return this.expectOptionalToken(ai.COLON)?(n=t,i=this.parseName()):i=t,this.node(e,{kind:Ct.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(ai.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(ai.PAREN_L,t,ai.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(ai.COLON),this.node(t,{kind:Ct.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(ai.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(ai.NAME)?this.node(e,{kind:Ct.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:Ct.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token,t=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:Ct.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:Ct.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case ai.BRACKET_L:return this.parseList(e);case ai.BRACE_L:return this.parseObject(e);case ai.INT:return this.advanceLexer(),this.node(t,{kind:Ct.INT,value:t.value});case ai.FLOAT:return this.advanceLexer(),this.node(t,{kind:Ct.FLOAT,value:t.value});case ai.STRING:case ai.BLOCK_STRING:return this.parseStringLiteral();case ai.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:Ct.BOOLEAN,value:!0});case"false":return this.node(t,{kind:Ct.BOOLEAN,value:!1});case"null":return this.node(t,{kind:Ct.NULL});default:return this.node(t,{kind:Ct.ENUM,value:t.value})}case ai.DOLLAR:if(e)if(this.expectToken(ai.DOLLAR),this._lexer.token.kind===ai.NAME){const n=this._lexer.token.value;throw Mf(this._lexer.source,t.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(t);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:Ct.STRING,value:e.value,block:e.kind===ai.BLOCK_STRING})}parseList(e){const t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:Ct.LIST,values:this.any(ai.BRACKET_L,t,ai.BRACKET_R)})}parseObject(e){const t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:Ct.OBJECT,fields:this.any(ai.BRACE_L,t,ai.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(ai.COLON),this.node(t,{kind:Ct.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(ai.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(ai.AT),this.node(t,{kind:Ct.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(ai.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(ai.BRACKET_R),t=this.node(e,{kind:Ct.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(ai.BANG)?this.node(e,{kind:Ct.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:Ct.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(ai.STRING)||this.peek(ai.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.many(ai.BRACE_L,this.parseOperationTypeDefinition,ai.BRACE_R);return this.node(e,{kind:Ct.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(ai.COLON);const n=this.parseNamedType();return this.node(e,{kind:Ct.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:Ct.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:Ct.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(ai.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(ai.BRACE_L,this.parseFieldDefinition,ai.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(ai.COLON);const r=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:Ct.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:o})}parseArgumentDefs(){return this.optionalMany(ai.PAREN_L,this.parseInputValueDef,ai.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(ai.COLON);const i=this.parseTypeReference();let r;this.expectOptionalToken(ai.EQUALS)&&(r=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:Ct.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:Ct.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(e,{kind:Ct.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(ai.EQUALS)?this.delimitedMany(ai.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(e,{kind:Ct.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r})}parseEnumValuesDefinition(){return this.optionalMany(ai.BRACE_L,this.parseEnumValueDefinition,ai.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:Ct.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Mf(this._lexer.source,this._lexer.token.start,`${GX(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(e,{kind:Ct.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(ai.BRACE_L,this.parseInputValueDef,ai.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===ai.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(ai.BRACE_L,this.parseOperationTypeDefinition,ai.BRACE_R);if(t.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:Ct.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(e,{kind:Ct.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:Ct.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:Ct.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:Ct.UNION_TYPE_EXTENSION,name:t,directives:n,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:Ct.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:Ct.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(ai.AT);const n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:Ct.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:o})}parseDirectiveLocations(){return this.delimitedMany(ai.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(jo,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){const e=this._lexer.token,t=this.expectOptionalToken(ai.AT),n=this.parseName();let i;!t&&this.expectOptionalToken(ai.DOT)&&(i=this.parseName());let r;return(t||i)&&this.expectOptionalToken(ai.PAREN_L)&&(r=this.parseName(),this.expectToken(ai.COLON),this.expectToken(ai.PAREN_R)),t?r?this.node(e,{kind:Ct.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:r}):this.node(e,{kind:Ct.DIRECTIVE_COORDINATE,name:n}):i?r?this.node(e,{kind:Ct.ARGUMENT_COORDINATE,name:n,fieldName:i,argumentName:r}):this.node(e,{kind:Ct.MEMBER_COORDINATE,name:n,memberName:i}):this.node(e,{kind:Ct.TYPE_COORDINATE,name:n})}node(e,t){return this._options.noLocation!==!0&&(t.loc=new Lzt(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw Mf(this._lexer.source,t.start,`Expected ${zzt(e)}, found ${GX(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){const t=this._lexer.token;if(t.kind===ai.NAME&&t.value===e)this.advanceLexer();else throw Mf(this._lexer.source,t.start,`Expected "${e}", found ${GX(t)}.`)}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===ai.NAME&&t.value===e?(this.advanceLexer(),!0):!1}unexpected(e){const t=e??this._lexer.token;return Mf(this._lexer.source,t.start,`Unexpected ${GX(t)}.`)}any(e,t,n){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(n);)i.push(t.call(this));return i}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const i=[];do i.push(t.call(this));while(!this.expectOptionalToken(n));return i}return[]}many(e,t,n){this.expectToken(e);const i=[];do i.push(t.call(this));while(!this.expectOptionalToken(n));return i}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==ai.EOF&&(++this._tokenCounter,e!==void 0&&this._tokenCounter>e))throw Mf(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}}});function SL(e,t){const[n,i]=t?[e,t]:[void 0,e];let r=" Did you mean ";n&&(r+=n+" ");const o=i.map(l=>`"${l}"`);switch(o.length){case 0:return"";case 1:return r+o[0]+"?";case 2:return r+o[0]+" or "+o[1]+"?"}const s=o.slice(0,Hzt),a=s.pop();return r+s.join(", ")+", or "+a+"?"}var Hzt,b7=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/jsutils/didYouMean.mjs"(){Hzt=5}});function Bot(e){return e}var mBn=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/jsutils/identityFunc.mjs"(){}});function WR(e,t){const n=Object.create(null);for(const i of e)n[t(i)]=i;return n}var _7=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/jsutils/keyMap.mjs"(){}});function AO(e,t,n){const i=Object.create(null);for(const r of e)i[t(r)]=n(r);return i}var s3e=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/jsutils/keyValMap.mjs"(){}});function rx(e,t){const n=Object.create(null);for(const i of Object.keys(e))n[i]=t(e[i],i);return n}var a3e=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/jsutils/mapValue.mjs"(){}});function l3e(e,t){let n=0,i=0;for(;n<e.length&&i<t.length;){let r=e.charCodeAt(n),o=t.charCodeAt(i);if(KX(r)&&KX(o)){let s=0;do++n,s=s*10+r-fue,r=e.charCodeAt(n);while(KX(r)&&s>0);let a=0;do++i,a=a*10+o-fue,o=t.charCodeAt(i);while(KX(o)&&a>0);if(s<a)return-1;if(s>a)return 1}else{if(r<o)return-1;if(r>o)return 1;++n,++i}}return e.length-t.length}function KX(e){return!isNaN(e)&&fue<=e&&e<=Wzt}var fue,Wzt,c3e=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/jsutils/naturalCompare.mjs"(){fue=48,Wzt=57}});function G2(e,t){const n=Object.create(null),i=new Uzt(e),r=Math.floor(e.length*.4)+1;for(const o of t){const s=i.measure(o,r);s!==void 0&&(n[o]=s)}return Object.keys(n).sort((o,s)=>{const a=n[o]-n[s];return a!==0?a:l3e(o,s)})}function jot(e){const t=e.length,n=new Array(t);for(let i=0;i<t;++i)n[i]=e.charCodeAt(i);return n}var Uzt,w7=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/jsutils/suggestionList.mjs"(){c3e(),Uzt=class{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=jot(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let i=jot(n),r=this._inputArray;if(i.length<r.length){const c=i;i=r,r=c}const o=i.length,s=r.length;if(o-s>t)return;const a=this._rows;for(let c=0;c<=s;c++)a[0][c]=c;for(let c=1;c<=o;c++){const u=a[(c-1)%3],d=a[c%3];let h=d[0]=c;for(let f=1;f<=s;f++){const p=i[c-1]===r[f-1]?0:1;let g=Math.min(u[f]+1,d[f-1]+1,u[f-1]+p);if(c>1&&f>1&&i[c-1]===r[f-2]&&i[c-2]===r[f-1]){const m=a[(c-2)%3][f-2];g=Math.min(g,m+1)}g<h&&(h=g),d[f]=g}if(h>t)return}const l=a[o%3][s];return l<=t?l:void 0}}}});function w_(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;const t=Object.create(null);for(const[n,i]of Object.entries(e))t[n]=i;return t}var u3e=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/jsutils/toObjMap.mjs"(){}});function vBn(e){return`"${e.replace($zt,yBn)}"`}function yBn(e){return qzt[e.charCodeAt(0)]}var $zt,qzt,bBn=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/language/printString.mjs"(){$zt=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g,qzt=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]}});function Yx(e,t,n=hue){const i=new Map;for(const v of Object.values(Ct))i.set(v,pue(t,v));let r,o=Array.isArray(e),s=[e],a=-1,l=[],c=e,u,d;const h=[],f=[];do{a++;const v=a===s.length,y=v&&l.length!==0;if(v){if(u=f.length===0?void 0:h[h.length-1],c=d,d=f.pop(),y)if(o){c=c.slice();let w=0;for(const[E,A]of l){const D=E-w;A===null?(c.splice(D,1),w++):c[D]=A}}else{c={...c};for(const[w,E]of l)c[w]=E}a=r.index,s=r.keys,l=r.edits,o=r.inArray,r=r.prev}else if(d){if(u=o?a:s[a],c=d[u],c==null)continue;h.push(u)}let b;if(!Array.isArray(c)){var p,g;uFe(c)||El(!1,`Invalid AST Node: ${Ji(c)}.`);const w=v?(p=i.get(c.kind))===null||p===void 0?void 0:p.leave:(g=i.get(c.kind))===null||g===void 0?void 0:g.enter;if(b=w?.call(t,c,u,d,h,f),b===DO)break;if(b===!1){if(!v){h.pop();continue}}else if(b!==void 0&&(l.push([u,b]),!v))if(uFe(b))c=b;else{h.pop();continue}}if(b===void 0&&y&&l.push([u,c]),v)h.pop();else{var m;r={inArray:o,index:a,keys:s,edits:l,prev:r},o=Array.isArray(c),s=o?c:(m=n[c.kind])!==null&&m!==void 0?m:[],a=-1,l=[],d&&f.push(d),d=c}}while(r!==void 0);return l.length!==0?l[l.length-1][1]:e}function _Bn(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const i of Object.values(Ct)){let r=!1;const o=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);for(let l=0;l<e.length;++l){const{enter:c,leave:u}=pue(e[l],i);r||(r=c!=null||u!=null),o[l]=c,s[l]=u}if(!r)continue;const a={enter(...l){const c=l[0];for(let d=0;d<e.length;d++)if(t[d]===null){var u;const h=(u=o[d])===null||u===void 0?void 0:u.apply(e[d],l);if(h===!1)t[d]=c;else if(h===DO)t[d]=DO;else if(h!==void 0)return h}},leave(...l){const c=l[0];for(let d=0;d<e.length;d++)if(t[d]===null){var u;const h=(u=s[d])===null||u===void 0?void 0:u.apply(e[d],l);if(h===DO)t[d]=DO;else if(h!==void 0&&h!==!1)return h}else t[d]===c&&(t[d]=null)}};n[i]=a}return n}function pue(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}var DO,kpe=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/language/visitor.mjs"(){wN(),qd(),CN(),sc(),DO=Object.freeze({})}});function yu(e){return Yx(e,Gzt)}function Wr(e,t=""){var n;return(n=e?.filter(i=>i).join(t))!==null&&n!==void 0?n:""}function Gw(e){return Is(`{
`,Loe(Wr(e,`
`)),`
}`)}function Is(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function Loe(e){return Is("  ",e.replace(/\n/g,`
  `))}function swe(e){var t;return(t=e?.some(n=>n.includes(`
`)))!==null&&t!==void 0?t:!1}var zot,Gzt,BC=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/language/printer.mjs"(){n3e(),bBn(),kpe(),zot=80,Gzt={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Wr(e.definitions,`

`)},OperationDefinition:{leave(e){const t=swe(e.variableDefinitions)?Is(`(
`,Wr(e.variableDefinitions,`
`),`
)`):Is("(",Wr(e.variableDefinitions,", "),")"),n=Is("",e.description,`
`)+Wr([e.operation,Wr([e.name,t]),Wr(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:i,description:r})=>Is("",r,`
`)+e+": "+t+Is(" = ",n)+Is(" ",Wr(i," "))},SelectionSet:{leave:({selections:e})=>Gw(e)},Field:{leave({alias:e,name:t,arguments:n,directives:i,selectionSet:r}){const o=Is("",e,": ")+t;let s=o+Is("(",Wr(n,", "),")");return s.length>zot&&(s=o+Is(`(
`,Loe(Wr(n,`
`)),`
)`)),Wr([s,Wr(i," "),r]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Is(" ",Wr(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Wr(["...",Is("on ",e),Wr(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:i,selectionSet:r,description:o})=>Is("",o,`
`)+`fragment ${e}${Is("(",Wr(n,", "),")")} on ${t} ${Is("",Wr(i," ")," ")}`+r},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Q4n(e):vBn(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Wr(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Wr(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Is("(",Wr(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Is("",e,`
`)+Wr(["schema",Wr(t," "),Gw(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Is("",e,`
`)+Wr(["scalar",t,Wr(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>Is("",e,`
`)+Wr(["type",t,Is("implements ",Wr(n," & ")),Wr(i," "),Gw(r)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:i,directives:r})=>Is("",e,`
`)+t+(swe(n)?Is(`(
`,Loe(Wr(n,`
`)),`
)`):Is("(",Wr(n,", "),")"))+": "+i+Is(" ",Wr(r," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:i,directives:r})=>Is("",e,`
`)+Wr([t+": "+n,Is("= ",i),Wr(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>Is("",e,`
`)+Wr(["interface",t,Is("implements ",Wr(n," & ")),Wr(i," "),Gw(r)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:i})=>Is("",e,`
`)+Wr(["union",t,Wr(n," "),Is("= ",Wr(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:i})=>Is("",e,`
`)+Wr(["enum",t,Wr(n," "),Gw(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Is("",e,`
`)+Wr([t,Wr(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:i})=>Is("",e,`
`)+Wr(["input",t,Wr(n," "),Gw(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:i,locations:r})=>Is("",e,`
`)+"directive @"+t+(swe(n)?Is(`(
`,Loe(Wr(n,`
`)),`
)`):Is("(",Wr(n,", "),")"))+(i?" repeatable":"")+" on "+Wr(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Wr(["extend schema",Wr(e," "),Gw(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Wr(["extend scalar",e,Wr(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>Wr(["extend type",e,Is("implements ",Wr(t," & ")),Wr(n," "),Gw(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>Wr(["extend interface",e,Is("implements ",Wr(t," & ")),Wr(n," "),Gw(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Wr(["extend union",e,Wr(t," "),Is("= ",Wr(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Wr(["extend enum",e,Wr(t," "),Gw(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Wr(["extend input",e,Wr(t," "),Gw(n)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>Wr([e,Is(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>Wr([e,Is(".",t),Is("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>Wr(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>Wr(["@",e,Is("(",t,":)")])}}}});function hFe(e,t){switch(e.kind){case Ct.NULL:return null;case Ct.INT:return parseInt(e.value,10);case Ct.FLOAT:return parseFloat(e.value);case Ct.STRING:case Ct.ENUM:case Ct.BOOLEAN:return e.value;case Ct.LIST:return e.values.map(n=>hFe(n,t));case Ct.OBJECT:return AO(e.fields,n=>n.name.value,n=>hFe(n.value,t));case Ct.VARIABLE:return t?.[e.name.value]}}var wBn=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/utilities/valueFromASTUntyped.mjs"(){s3e(),sc()}});function M1(e){if(e!=null||El(!1,"Must provide name."),typeof e=="string"||El(!1,"Expected name to be a string."),e.length===0)throw new qi("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!Mzt(e.charCodeAt(t)))throw new qi(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!e3e(e.charCodeAt(0)))throw new qi(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function CBn(e){if(e==="true"||e==="false"||e==="null")throw new qi(`Enum values cannot be named: ${e}`);return M1(e)}var Kzt=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/type/assertName.mjs"(){wN(),oa(),t3e()}});function Ipe(e){return _E(e)||$l(e)||rc(e)||F0(e)||fm(e)||md(e)||cg(e)||ic(e)}function _E(e){return pw(e,ox)}function $l(e){return pw(e,C_)}function SBn(e){if(!$l(e))throw new Error(`Expected ${Ji(e)} to be a GraphQL Object type.`);return e}function rc(e){return pw(e,$8)}function xBn(e){if(!rc(e))throw new Error(`Expected ${Ji(e)} to be a GraphQL Interface type.`);return e}function F0(e){return pw(e,Dq)}function fm(e){return pw(e,EL)}function md(e){return pw(e,q8)}function cg(e){return pw(e,Xp)}function ic(e){return pw(e,ma)}function H1(e){return _E(e)||fm(e)||md(e)||d3e(e)&&H1(e.ofType)}function R6(e){return _E(e)||$l(e)||rc(e)||F0(e)||fm(e)||d3e(e)&&R6(e.ofType)}function xL(e){return _E(e)||fm(e)}function RD(e){return $l(e)||rc(e)||F0(e)}function nL(e){return rc(e)||F0(e)}function d3e(e){return cg(e)||ic(e)}function h3e(e){return Ipe(e)&&!ic(e)}function EBn(e){if(!h3e(e))throw new Error(`Expected ${Ji(e)} to be a GraphQL nullable type.`);return e}function f3e(e){if(e)return ic(e)?e.ofType:e}function p3e(e){return _E(e)||$l(e)||rc(e)||F0(e)||fm(e)||md(e)}function sg(e){if(e){let t=e;for(;d3e(t);)t=t.ofType;return t}}function Yzt(e){return typeof e=="function"?e():e}function Qzt(e){return typeof e=="function"?e():e}function Vot(e){var t;const n=Yzt((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||El(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function Hot(e){const t=Qzt(e.fields);return F6(t)||El(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),rx(t,(n,i)=>{var r;F6(n)||El(!1,`${e.name}.${i} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||El(!1,`${e.name}.${i} field resolver must be a function if provided, but got: ${Ji(n.resolve)}.`);const o=(r=n.args)!==null&&r!==void 0?r:{};return F6(o)||El(!1,`${e.name}.${i} args must be an object with argument names as keys.`),{name:M1(i),description:n.description,type:n.type,args:Zzt(o),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:w_(n.extensions),astNode:n.astNode}})}function Zzt(e){return Object.entries(e).map(([t,n])=>({name:M1(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:w_(n.extensions),astNode:n.astNode}))}function F6(e){return OD(e)&&!Array.isArray(e)}function Wot(e){return rx(e,t=>({description:t.description,type:t.type,args:Xzt(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function Xzt(e){return AO(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function jK(e){return ic(e.type)&&e.defaultValue===void 0}function ABn(e){const t=Yzt(e.types);return Array.isArray(t)||El(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}function YX(e,t){const n=e.getValues().map(r=>r.name),i=G2(t,n);return SL("the enum value",i)}function Uot(e,t){return F6(t)||El(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,i])=>(F6(i)||El(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${Ji(i)}.`),{name:CBn(n),description:i.description,value:i.value!==void 0?i.value:n,deprecationReason:i.deprecationReason,extensions:w_(i.extensions),astNode:i.astNode}))}function DBn(e){const t=Qzt(e.fields);return F6(t)||El(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),rx(t,(n,i)=>(!("resolve"in n)||El(!1,`${e.name}.${i} field has a resolve property, but Input Types cannot define resolvers.`),{name:M1(i),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:w_(n.extensions),astNode:n.astNode}))}function Jzt(e){return ic(e.type)&&e.defaultValue===void 0}var Xp,ma,ox,C_,$8,Dq,EL,q8,Uc=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/type/definition.mjs"(){wN(),b7(),mBn(),qd(),Tpe(),q2(),_7(),s3e(),a3e(),w7(),u3e(),oa(),sc(),BC(),wBn(),Kzt(),Xp=class{constructor(e){Ipe(e)||El(!1,`Expected ${Ji(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}},ma=class{constructor(e){h3e(e)||El(!1,`Expected ${Ji(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}},ox=class{constructor(e){var t,n,i,r;const o=(t=e.parseValue)!==null&&t!==void 0?t:Bot;this.name=M1(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=(n=e.serialize)!==null&&n!==void 0?n:Bot,this.parseValue=o,this.parseLiteral=(i=e.parseLiteral)!==null&&i!==void 0?i:(s,a)=>o(hFe(s,a)),this.extensions=w_(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(r=e.extensionASTNodes)!==null&&r!==void 0?r:[],e.specifiedByURL==null||typeof e.specifiedByURL=="string"||El(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${Ji(e.specifiedByURL)}.`),e.serialize==null||typeof e.serialize=="function"||El(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&(typeof e.parseValue=="function"&&typeof e.parseLiteral=="function"||El(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},C_=class{constructor(e){var t;this.name=M1(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=w_(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[],this._fields=()=>Hot(e),this._interfaces=()=>Vot(e),e.isTypeOf==null||typeof e.isTypeOf=="function"||El(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${Ji(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Wot(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},$8=class{constructor(e){var t;this.name=M1(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=w_(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[],this._fields=Hot.bind(void 0,e),this._interfaces=Vot.bind(void 0,e),e.resolveType==null||typeof e.resolveType=="function"||El(!1,`${this.name} must provide "resolveType" as a function, but got: ${Ji(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Wot(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},Dq=class{constructor(e){var t;this.name=M1(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=w_(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[],this._types=ABn.bind(void 0,e),e.resolveType==null||typeof e.resolveType=="function"||El(!1,`${this.name} must provide "resolveType" as a function, but got: ${Ji(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},EL=class{constructor(e){var t;this.name=M1(e.name),this.description=e.description,this.extensions=w_(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[],this._values=typeof e.values=="function"?e.values:Uot(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=Uot(this.name,this._values())),this._values}getValue(e){return this._nameLookup===null&&(this._nameLookup=WR(this.getValues(),t=>t.name)),this._nameLookup[e]}serialize(e){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(n=>[n.value,n])));const t=this._valueLookup.get(e);if(t===void 0)throw new qi(`Enum "${this.name}" cannot represent value: ${Ji(e)}`);return t.name}parseValue(e){if(typeof e!="string"){const n=Ji(e);throw new qi(`Enum "${this.name}" cannot represent non-string value: ${n}.`+YX(this,n))}const t=this.getValue(e);if(t==null)throw new qi(`Value "${e}" does not exist in "${this.name}" enum.`+YX(this,e));return t.value}parseLiteral(e,t){if(e.kind!==Ct.ENUM){const i=yu(e);throw new qi(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+YX(this,i),{nodes:e})}const n=this.getValue(e.value);if(n==null){const i=yu(e);throw new qi(`Value "${i}" does not exist in "${this.name}" enum.`+YX(this,i),{nodes:e})}return n.value}toConfig(){const e=AO(this.getValues(),t=>t.name,t=>({description:t.description,value:t.value,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},q8=class{constructor(e){var t,n;this.name=M1(e.name),this.description=e.description,this.extensions=w_(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[],this.isOneOf=(n=e.isOneOf)!==null&&n!==void 0?n:!1,this._fields=DBn.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){const e=rx(this.getFields(),t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}}});function fFe(e,t){return e===t?!0:ic(e)&&ic(t)||cg(e)&&cg(t)?fFe(e.ofType,t.ofType):!1}function B6(e,t,n){return t===n?!0:ic(n)?ic(t)?B6(e,t.ofType,n.ofType):!1:ic(t)?B6(e,t.ofType,n):cg(n)?cg(t)?B6(e,t.ofType,n.ofType):!1:cg(t)?!1:nL(n)&&(rc(t)||$l(t))&&e.isSubType(n,t)}function $ot(e,t,n){return t===n?!0:nL(t)?nL(n)?e.getPossibleTypes(t).some(i=>e.isSubType(n,i)):e.isSubType(t,n):nL(n)?e.isSubType(n,t):!1}var g3e=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/utilities/typeComparators.mjs"(){Uc()}});function eVt(e){return zK.some(({name:t})=>e.name===t)}function Lz(e){if(OD(e)){if(typeof e.valueOf=="function"){const t=e.valueOf();if(!OD(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}var QX,ZX,qot,pFe,Ld,l0,gFe,zK,SN=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/type/scalars.mjs"(){qd(),q2(),oa(),sc(),BC(),Uc(),QX=2147483647,ZX=-2147483648,qot=new ox({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=Lz(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new qi(`Int cannot represent non-integer value: ${Ji(t)}`);if(n>QX||n<ZX)throw new qi("Int cannot represent non 32-bit signed integer value: "+Ji(t));return n},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new qi(`Int cannot represent non-integer value: ${Ji(e)}`);if(e>QX||e<ZX)throw new qi(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==Ct.INT)throw new qi(`Int cannot represent non-integer value: ${yu(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>QX||t<ZX)throw new qi(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),pFe=new ox({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=Lz(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isFinite(n))throw new qi(`Float cannot represent non numeric value: ${Ji(t)}`);return n},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new qi(`Float cannot represent non numeric value: ${Ji(e)}`);return e},parseLiteral(e){if(e.kind!==Ct.FLOAT&&e.kind!==Ct.INT)throw new qi(`Float cannot represent non numeric value: ${yu(e)}`,e);return parseFloat(e.value)}}),Ld=new ox({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=Lz(e);if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if(typeof t=="number"&&Number.isFinite(t))return t.toString();throw new qi(`String cannot represent value: ${Ji(e)}`)},parseValue(e){if(typeof e!="string")throw new qi(`String cannot represent a non string value: ${Ji(e)}`);return e},parseLiteral(e){if(e.kind!==Ct.STRING)throw new qi(`String cannot represent a non string value: ${yu(e)}`,{nodes:e});return e.value}}),l0=new ox({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=Lz(e);if(typeof t=="boolean")return t;if(Number.isFinite(t))return t!==0;throw new qi(`Boolean cannot represent a non boolean value: ${Ji(t)}`)},parseValue(e){if(typeof e!="boolean")throw new qi(`Boolean cannot represent a non boolean value: ${Ji(e)}`);return e},parseLiteral(e){if(e.kind!==Ct.BOOLEAN)throw new qi(`Boolean cannot represent a non boolean value: ${yu(e)}`,{nodes:e});return e.value}}),gFe=new ox({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=Lz(e);if(typeof t=="string")return t;if(Number.isInteger(t))return String(t);throw new qi(`ID cannot represent value: ${Ji(e)}`)},parseValue(e){if(typeof e=="string")return e;if(typeof e=="number"&&Number.isInteger(e))return e.toString();throw new qi(`ID cannot represent value: ${Ji(e)}`)},parseLiteral(e){if(e.kind!==Ct.STRING&&e.kind!==Ct.INT)throw new qi("ID cannot represent a non-string and non-integer value: "+yu(e),{nodes:e});return e.value}}),zK=Object.freeze([Ld,qot,pFe,l0,gFe])}});function tVt(e){return pw(e,JS)}function TBn(e){return xN.some(({name:t})=>t===e.name)}var JS,mFe,vFe,yFe,gue,bFe,_Fe,xN,jC=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/type/directives.mjs"(){wN(),Tpe(),q2(),u3e(),Epe(),Kzt(),Uc(),SN(),JS=class{constructor(e){var t,n;this.name=M1(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=(t=e.isRepeatable)!==null&&t!==void 0?t:!1,this.extensions=w_(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||El(!1,`@${e.name} locations must be an Array.`);const i=(n=e.args)!==null&&n!==void 0?n:{};OD(i)&&!Array.isArray(i)||El(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=Zzt(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:Xzt(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}},mFe=new JS({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[jo.FIELD,jo.FRAGMENT_SPREAD,jo.INLINE_FRAGMENT],args:{if:{type:new ma(l0),description:"Included when true."}}}),vFe=new JS({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[jo.FIELD,jo.FRAGMENT_SPREAD,jo.INLINE_FRAGMENT],args:{if:{type:new ma(l0),description:"Skipped when true."}}}),yFe="No longer supported",gue=new JS({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[jo.FIELD_DEFINITION,jo.ARGUMENT_DEFINITION,jo.INPUT_FIELD_DEFINITION,jo.ENUM_VALUE],args:{reason:{type:Ld,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:yFe}}}),bFe=new JS({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[jo.SCALAR],args:{url:{type:new ma(Ld),description:"The URL that specifies the behavior of this scalar."}}}),_Fe=new JS({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[jo.INPUT_OBJECT],args:{}}),xN=Object.freeze([mFe,vFe,gue,bFe,_Fe])}});function kBn(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}var IBn=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/jsutils/isIterableObject.mjs"(){}});function TO(e,t){if(ic(t)){const n=TO(e,t.ofType);return n?.kind===Ct.NULL?null:n}if(e===null)return{kind:Ct.NULL};if(e===void 0)return null;if(cg(t)){const n=t.ofType;if(kBn(e)){const i=[];for(const r of e){const o=TO(r,n);o!=null&&i.push(o)}return{kind:Ct.LIST,values:i}}return TO(e,n)}if(md(t)){if(!OD(e))return null;const n=[];for(const i of Object.values(t.getFields())){const r=TO(e[i.name],i.type);r&&n.push({kind:Ct.OBJECT_FIELD,name:{kind:Ct.NAME,value:i.name},value:r})}return{kind:Ct.OBJECT,fields:n}}if(xL(t)){const n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:Ct.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){const i=String(n);return wFe.test(i)?{kind:Ct.INT,value:i}:{kind:Ct.FLOAT,value:i}}if(typeof n=="string")return fm(t)?{kind:Ct.ENUM,value:n}:t===gFe&&wFe.test(n)?{kind:Ct.INT,value:n}:{kind:Ct.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${Ji(n)}.`)}H_(!1,"Unexpected input type: "+Ji(t))}var wFe,m3e=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/utilities/astFromValue.mjs"(){qd(),dT(),IBn(),q2(),sc(),Uc(),SN(),wFe=/^-?(?:0|[1-9][0-9]*)$/}});function v3e(e){return VK.some(({name:t})=>e.name===t)}var Noe,awe,lwe,Ub,cwe,Nz,uwe,eu,dwe,Tq,kq,Iq,VK,EN=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/type/introspection.mjs"(){qd(),dT(),Epe(),BC(),m3e(),Uc(),SN(),Noe=new C_({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:Ld,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new ma(new Xp(new ma(Ub))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new ma(Ub),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Ub,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Ub,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new ma(new Xp(new ma(awe))),resolve:e=>e.getDirectives()}})}),awe=new C_({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.

In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new ma(Ld),resolve:e=>e.name},description:{type:Ld,resolve:e=>e.description},isRepeatable:{type:new ma(l0),resolve:e=>e.isRepeatable},locations:{type:new ma(new Xp(new ma(lwe))),resolve:e=>e.locations},args:{type:new ma(new Xp(new ma(Nz))),args:{includeDeprecated:{type:l0,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})}),lwe=new EL({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:jo.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:jo.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:jo.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:jo.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:jo.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:jo.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:jo.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:jo.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:jo.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:jo.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:jo.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:jo.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:jo.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:jo.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:jo.UNION,description:"Location adjacent to a union definition."},ENUM:{value:jo.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:jo.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:jo.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:jo.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Ub=new C_({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new ma(dwe),resolve(e){if(_E(e))return eu.SCALAR;if($l(e))return eu.OBJECT;if(rc(e))return eu.INTERFACE;if(F0(e))return eu.UNION;if(fm(e))return eu.ENUM;if(md(e))return eu.INPUT_OBJECT;if(cg(e))return eu.LIST;if(ic(e))return eu.NON_NULL;H_(!1,`Unexpected type: "${Ji(e)}".`)}},name:{type:Ld,resolve:e=>"name"in e?e.name:void 0},description:{type:Ld,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Ld,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Xp(new ma(cwe)),args:{includeDeprecated:{type:l0,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if($l(e)||rc(e)){const n=Object.values(e.getFields());return t?n:n.filter(i=>i.deprecationReason==null)}}},interfaces:{type:new Xp(new ma(Ub)),resolve(e){if($l(e)||rc(e))return e.getInterfaces()}},possibleTypes:{type:new Xp(new ma(Ub)),resolve(e,t,n,{schema:i}){if(nL(e))return i.getPossibleTypes(e)}},enumValues:{type:new Xp(new ma(uwe)),args:{includeDeprecated:{type:l0,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(fm(e)){const n=e.getValues();return t?n:n.filter(i=>i.deprecationReason==null)}}},inputFields:{type:new Xp(new ma(Nz)),args:{includeDeprecated:{type:l0,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(md(e)){const n=Object.values(e.getFields());return t?n:n.filter(i=>i.deprecationReason==null)}}},ofType:{type:Ub,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:l0,resolve:e=>{if(md(e))return e.isOneOf}}})}),cwe=new C_({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new ma(Ld),resolve:e=>e.name},description:{type:Ld,resolve:e=>e.description},args:{type:new ma(new Xp(new ma(Nz))),args:{includeDeprecated:{type:l0,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new ma(Ub),resolve:e=>e.type},isDeprecated:{type:new ma(l0),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ld,resolve:e=>e.deprecationReason}})}),Nz=new C_({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new ma(Ld),resolve:e=>e.name},description:{type:Ld,resolve:e=>e.description},type:{type:new ma(Ub),resolve:e=>e.type},defaultValue:{type:Ld,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,i=TO(n,t);return i?yu(i):null}},isDeprecated:{type:new ma(l0),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ld,resolve:e=>e.deprecationReason}})}),uwe=new C_({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new ma(Ld),resolve:e=>e.name},description:{type:Ld,resolve:e=>e.description},isDeprecated:{type:new ma(l0),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ld,resolve:e=>e.deprecationReason}})}),(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(eu||(eu={})),dwe=new EL({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:eu.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:eu.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:eu.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:eu.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:eu.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:eu.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:eu.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:eu.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Tq={name:"__schema",type:new ma(Noe),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:i})=>i,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},kq={name:"__type",type:Ub,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new ma(Ld),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:i})=>i.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Iq={name:"__typename",type:new ma(Ld),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:i})=>i.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},VK=Object.freeze([Noe,awe,lwe,Ub,cwe,Nz,uwe,dwe])}});function CFe(e){return pw(e,Lpe)}function LBn(e){if(!CFe(e))throw new Error(`Expected ${Ji(e)} to be a GraphQL schema.`);return e}function O1(e,t){const n=sg(e);if(!t.has(n)){if(t.add(n),F0(n))for(const i of n.getTypes())O1(i,t);else if($l(n)||rc(n)){for(const i of n.getInterfaces())O1(i,t);for(const i of Object.values(n.getFields())){O1(i.type,t);for(const r of i.args)O1(r.type,t)}}else if(md(n))for(const i of Object.values(n.getFields()))O1(i.type,t)}return t}var Lpe,Npe=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/type/schema.mjs"(){wN(),qd(),Tpe(),q2(),u3e(),CN(),Uc(),jC(),EN(),Lpe=class{constructor(e){var t,n;this.__validationErrors=e.assumeValid===!0?[]:void 0,OD(e)||El(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||El(!1,`"types" must be Array if provided but got: ${Ji(e.types)}.`),!e.directives||Array.isArray(e.directives)||El(!1,`"directives" must be Array if provided but got: ${Ji(e.directives)}.`),this.description=e.description,this.extensions=w_(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=(n=e.directives)!==null&&n!==void 0?n:xN;const i=new Set(e.types);if(e.types!=null)for(const r of e.types)i.delete(r),O1(r,i);this._queryType!=null&&O1(this._queryType,i),this._mutationType!=null&&O1(this._mutationType,i),this._subscriptionType!=null&&O1(this._subscriptionType,i);for(const r of this._directives)if(tVt(r))for(const o of r.args)O1(o.type,i);O1(Noe,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const r of i){if(r==null)continue;const o=r.name;if(o||El(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[o]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${o}".`);if(this._typeMap[o]=r,rc(r)){for(const s of r.getInterfaces())if(rc(s)){let a=this._implementationsMap[s.name];a===void 0&&(a=this._implementationsMap[s.name]={objects:[],interfaces:[]}),a.interfaces.push(r)}}else if($l(r)){for(const s of r.getInterfaces())if(rc(s)){let a=this._implementationsMap[s.name];a===void 0&&(a=this._implementationsMap[s.name]={objects:[],interfaces:[]}),a.objects.push(r)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case gv.QUERY:return this.getQueryType();case gv.MUTATION:return this.getMutationType();case gv.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return F0(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return t??{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(n===void 0){if(n=Object.create(null),F0(e))for(const i of e.getTypes())n[i.name]=!0;else{const i=this.getImplementations(e);for(const r of i.objects)n[r.name]=!0;for(const r of i.interfaces)n[r.name]=!0}this._subTypeMap[e.name]=n}return n[t.name]!==void 0}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}}}});function NBn(e){if(LBn(e),e.__validationErrors)return e.__validationErrors;const t=new nVt(e);PBn(t),MBn(t),OBn(t);const n=t.getErrors();return e.__validationErrors=n,n}function PBn(e){const t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!$l(n)){var i;e.reportError(`Query root type must be Object type, it cannot be ${Ji(n)}.`,(i=hwe(t,gv.QUERY))!==null&&i!==void 0?i:n.astNode)}const r=t.getMutationType();if(r&&!$l(r)){var o;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${Ji(r)}.`,(o=hwe(t,gv.MUTATION))!==null&&o!==void 0?o:r.astNode)}const s=t.getSubscriptionType();if(s&&!$l(s)){var a;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${Ji(s)}.`,(a=hwe(t,gv.SUBSCRIPTION))!==null&&a!==void 0?a:s.astNode)}}function hwe(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(i=>{var r;return(r=i?.operationTypes)!==null&&r!==void 0?r:[]}).find(i=>i.operation===t))===null||n===void 0?void 0:n.type}function MBn(e){for(const n of e.schema.getDirectives()){if(!tVt(n)){e.reportError(`Expected directive but got: ${Ji(n)}.`,n?.astNode);continue}UR(e,n),n.locations.length===0&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(const i of n.args)if(UR(e,i),H1(i.type)||e.reportError(`The type of @${n.name}(${i.name}:) must be Input Type but got: ${Ji(i.type)}.`,i.astNode),jK(i)&&i.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${i.name}:) cannot be deprecated.`,[y3e(i.astNode),(t=i.astNode)===null||t===void 0?void 0:t.type])}}}function UR(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function OBn(e){const t=HBn(e),n=e.schema.getTypeMap();for(const i of Object.values(n)){if(!p3e(i)){e.reportError(`Expected GraphQL named type but got: ${Ji(i)}.`,i.astNode);continue}v3e(i)||UR(e,i),$l(i)||rc(i)?(Got(e,i),Kot(e,i)):F0(i)?BBn(e,i):fm(i)?jBn(e,i):md(i)&&(zBn(e,i),t(i))}}function Got(e,t){const n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const s of n){if(UR(e,s),!R6(s.type)){var i;e.reportError(`The type of ${t.name}.${s.name} must be Output Type but got: ${Ji(s.type)}.`,(i=s.astNode)===null||i===void 0?void 0:i.type)}for(const a of s.args){const l=a.name;if(UR(e,a),!H1(a.type)){var r;e.reportError(`The type of ${t.name}.${s.name}(${l}:) must be Input Type but got: ${Ji(a.type)}.`,(r=a.astNode)===null||r===void 0?void 0:r.type)}if(jK(a)&&a.deprecationReason!=null){var o;e.reportError(`Required argument ${t.name}.${s.name}(${l}:) cannot be deprecated.`,[y3e(a.astNode),(o=a.astNode)===null||o===void 0?void 0:o.type])}}}}function Kot(e,t){const n=Object.create(null);for(const i of t.getInterfaces()){if(!rc(i)){e.reportError(`Type ${Ji(t)} must only implement Interface types, it cannot implement ${Ji(i)}.`,IU(t,i));continue}if(t===i){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,IU(t,i));continue}if(n[i.name]){e.reportError(`Type ${t.name} can only implement ${i.name} once.`,IU(t,i));continue}n[i.name]=!0,FBn(e,t,i),RBn(e,t,i)}}function RBn(e,t,n){const i=t.getFields();for(const l of Object.values(n.getFields())){const c=l.name,u=i[c];if(!u){e.reportError(`Interface field ${n.name}.${c} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!B6(e.schema,u.type,l.type)){var r,o;e.reportError(`Interface field ${n.name}.${c} expects type ${Ji(l.type)} but ${t.name}.${c} is type ${Ji(u.type)}.`,[(r=l.astNode)===null||r===void 0?void 0:r.type,(o=u.astNode)===null||o===void 0?void 0:o.type])}for(const d of l.args){const h=d.name,f=u.args.find(p=>p.name===h);if(!f){e.reportError(`Interface field argument ${n.name}.${c}(${h}:) expected but ${t.name}.${c} does not provide it.`,[d.astNode,u.astNode]);continue}if(!fFe(d.type,f.type)){var s,a;e.reportError(`Interface field argument ${n.name}.${c}(${h}:) expects type ${Ji(d.type)} but ${t.name}.${c}(${h}:) is type ${Ji(f.type)}.`,[(s=d.astNode)===null||s===void 0?void 0:s.type,(a=f.astNode)===null||a===void 0?void 0:a.type])}}for(const d of u.args){const h=d.name;!l.args.find(p=>p.name===h)&&jK(d)&&e.reportError(`Object field ${t.name}.${c} includes required argument ${h} that is missing from the Interface field ${n.name}.${c}.`,[d.astNode,l.astNode])}}}function FBn(e,t,n){const i=t.getInterfaces();for(const r of n.getInterfaces())i.includes(r)||e.reportError(r===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${r.name} because it is implemented by ${n.name}.`,[...IU(n,r),...IU(t,n)])}function BBn(e,t){const n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const i=Object.create(null);for(const r of n){if(i[r.name]){e.reportError(`Union type ${t.name} can only include type ${r.name} once.`,Yot(t,r.name));continue}i[r.name]=!0,$l(r)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${Ji(r)}.`,Yot(t,String(r)))}}function jBn(e,t){const n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const i of n)UR(e,i)}function zBn(e,t){const n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const o of n){if(UR(e,o),!H1(o.type)){var i;e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${Ji(o.type)}.`,(i=o.astNode)===null||i===void 0?void 0:i.type)}if(Jzt(o)&&o.deprecationReason!=null){var r;e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[y3e(o.astNode),(r=o.astNode)===null||r===void 0?void 0:r.type])}t.isOneOf&&VBn(t,o,e)}}function VBn(e,t,n){if(ic(t.type)){var i;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(i=t.astNode)===null||i===void 0?void 0:i.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function HBn(e){const t=Object.create(null),n=[],i=Object.create(null);return r;function r(o){if(t[o.name])return;t[o.name]=!0,i[o.name]=n.length;const s=Object.values(o.getFields());for(const a of s)if(ic(a.type)&&md(a.type.ofType)){const l=a.type.ofType,c=i[l.name];if(n.push(a),c===void 0)r(l);else{const u=n.slice(c),d=u.map(h=>h.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${d}".`,u.map(h=>h.astNode))}n.pop()}i[o.name]=void 0}}function IU(e,t){const{astNode:n,extensionASTNodes:i}=e;return(n!=null?[n,...i]:i).flatMap(o=>{var s;return(s=o.interfaces)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t.name)}function Yot(e,t){const{astNode:n,extensionASTNodes:i}=e;return(n!=null?[n,...i]:i).flatMap(o=>{var s;return(s=o.types)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t)}function y3e(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===gue.name)}var nVt,WBn=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/type/validate.mjs"(){qd(),oa(),CN(),g3e(),Uc(),jC(),EN(),Npe(),nVt=class{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new qi(e,{nodes:n}))}getErrors(){return this._errors}}}});function ob(e,t){switch(t.kind){case Ct.LIST_TYPE:{const n=ob(e,t.type);return n&&new Xp(n)}case Ct.NON_NULL_TYPE:{const n=ob(e,t.type);return n&&new ma(n)}case Ct.NAMED_TYPE:return e.getType(t.name.value)}}var AN=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/utilities/typeFromAST.mjs"(){sc(),Uc()}});function UBn(e,t,n){const i=n.name.value;if(i===Tq.name&&e.getQueryType()===t)return Tq;if(i===kq.name&&e.getQueryType()===t)return kq;if(i===Iq.name&&RD(t))return Iq;if($l(t)||rc(t))return t.getFields()[i]}function $Bn(e,t){return{enter(...n){const i=n[0];e.enter(i);const r=pue(t,i.kind).enter;if(r){const o=r.apply(t,n);return o!==void 0&&(e.leave(i),uFe(o)&&e.enter(o)),o}},leave(...n){const i=n[0],r=pue(t,i.kind).leave;let o;return r&&(o=r.apply(t,n)),e.leave(i),o}}}var b3e,qBn=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/utilities/TypeInfo.mjs"(){CN(),sc(),kpe(),Uc(),EN(),AN(),b3e=class{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=n??UBn,t&&(H1(t)&&this._inputTypeStack.push(t),RD(t)&&this._parentTypeStack.push(t),R6(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case Ct.SELECTION_SET:{const i=sg(this.getType());this._parentTypeStack.push(RD(i)?i:void 0);break}case Ct.FIELD:{const i=this.getParentType();let r,o;i&&(r=this._getFieldDef(t,i,e),r&&(o=r.type)),this._fieldDefStack.push(r),this._typeStack.push(R6(o)?o:void 0);break}case Ct.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case Ct.OPERATION_DEFINITION:{const i=t.getRootType(e.operation);this._typeStack.push($l(i)?i:void 0);break}case Ct.INLINE_FRAGMENT:case Ct.FRAGMENT_DEFINITION:{const i=e.typeCondition,r=i?ob(t,i):sg(this.getType());this._typeStack.push(R6(r)?r:void 0);break}case Ct.VARIABLE_DEFINITION:{const i=ob(t,e.type);this._inputTypeStack.push(H1(i)?i:void 0);break}case Ct.ARGUMENT:{var n;let i,r;const o=(n=this.getDirective())!==null&&n!==void 0?n:this.getFieldDef();o&&(i=o.args.find(s=>s.name===e.name.value),i&&(r=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(H1(r)?r:void 0);break}case Ct.LIST:{const i=f3e(this.getInputType()),r=cg(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(H1(r)?r:void 0);break}case Ct.OBJECT_FIELD:{const i=sg(this.getInputType());let r,o;md(i)&&(o=i.getFields()[e.name.value],o&&(r=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push(H1(r)?r:void 0);break}case Ct.ENUM:{const i=sg(this.getInputType());let r;fm(i)&&(r=i.getValue(e.value)),this._enumValue=r;break}}}leave(e){switch(e.kind){case Ct.SELECTION_SET:this._parentTypeStack.pop();break;case Ct.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Ct.DIRECTIVE:this._directive=null;break;case Ct.OPERATION_DEFINITION:case Ct.INLINE_FRAGMENT:case Ct.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Ct.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Ct.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Ct.LIST:case Ct.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Ct.ENUM:this._enumValue=null;break}}}}});function GBn(e){return e.kind===Ct.OPERATION_DEFINITION||e.kind===Ct.FRAGMENT_DEFINITION}function KBn(e){return e.kind===Ct.SCHEMA_DEFINITION||HK(e)||e.kind===Ct.DIRECTIVE_DEFINITION}function HK(e){return e.kind===Ct.SCALAR_TYPE_DEFINITION||e.kind===Ct.OBJECT_TYPE_DEFINITION||e.kind===Ct.INTERFACE_TYPE_DEFINITION||e.kind===Ct.UNION_TYPE_DEFINITION||e.kind===Ct.ENUM_TYPE_DEFINITION||e.kind===Ct.INPUT_OBJECT_TYPE_DEFINITION}function YBn(e){return e.kind===Ct.SCHEMA_EXTENSION||_3e(e)}function _3e(e){return e.kind===Ct.SCALAR_TYPE_EXTENSION||e.kind===Ct.OBJECT_TYPE_EXTENSION||e.kind===Ct.INTERFACE_TYPE_EXTENSION||e.kind===Ct.UNION_TYPE_EXTENSION||e.kind===Ct.ENUM_TYPE_EXTENSION||e.kind===Ct.INPUT_OBJECT_TYPE_EXTENSION}var WK=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/language/predicates.mjs"(){sc()}});function QBn(e){return{Document(t){for(const n of t.definitions)if(!GBn(n)){const i=n.kind===Ct.SCHEMA_DEFINITION||n.kind===Ct.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new qi(`The ${i} definition is not executable.`,{nodes:n}))}return!1}}}var ZBn=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.mjs"(){oa(),sc(),WK()}});function XBn(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const r=e.getSchema(),o=t.name.value;let s=SL("to use an inline fragment on",JBn(r,n,o));s===""&&(s=SL(e6n(n,o))),e.reportError(new qi(`Cannot query field "${o}" on type "${n.name}".`+s,{nodes:t}))}}}}function JBn(e,t,n){if(!nL(t))return[];const i=new Set,r=Object.create(null);for(const s of e.getPossibleTypes(t))if(s.getFields()[n]){i.add(s),r[s.name]=1;for(const a of s.getInterfaces()){var o;a.getFields()[n]&&(i.add(a),r[a.name]=((o=r[a.name])!==null&&o!==void 0?o:0)+1)}}return[...i].sort((s,a)=>{const l=r[a.name]-r[s.name];return l!==0?l:rc(s)&&e.isSubType(s,a)?-1:rc(a)&&e.isSubType(a,s)?1:l3e(s.name,a.name)}).map(s=>s.name)}function e6n(e,t){if($l(e)||rc(e)){const n=Object.keys(e.getFields());return G2(t,n)}return[]}var t6n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.mjs"(){b7(),c3e(),w7(),oa(),Uc()}});function n6n(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const i=ob(e.getSchema(),n);if(i&&!RD(i)){const r=yu(n);e.reportError(new qi(`Fragment cannot condition on non composite type "${r}".`,{nodes:n}))}}},FragmentDefinition(t){const n=ob(e.getSchema(),t.typeCondition);if(n&&!RD(n)){const i=yu(t.typeCondition);e.reportError(new qi(`Fragment "${t.name.value}" cannot condition on non composite type "${i}".`,{nodes:t.typeCondition}))}}}}var i6n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.mjs"(){oa(),BC(),Uc(),AN()}});function r6n(e){return{...iVt(e),Argument(t){const n=e.getArgument(),i=e.getFieldDef(),r=e.getParentType();if(!n&&i&&r){const o=t.name.value,s=i.args.map(l=>l.name),a=G2(o,s);e.reportError(new qi(`Unknown argument "${o}" on field "${r.name}.${i.name}".`+SL(a),{nodes:t}))}}}}function iVt(e){const t=Object.create(null),n=e.getSchema(),i=n?n.getDirectives():xN;for(const s of i)t[s.name]=s.args.map(a=>a.name);const r=e.getDocument().definitions;for(const s of r)if(s.kind===Ct.DIRECTIVE_DEFINITION){var o;const a=(o=s.arguments)!==null&&o!==void 0?o:[];t[s.name.value]=a.map(l=>l.name.value)}return{Directive(s){const a=s.name.value,l=t[a];if(s.arguments&&l)for(const c of s.arguments){const u=c.name.value;if(!l.includes(u)){const d=G2(u,l);e.reportError(new qi(`Unknown argument "${u}" on directive "@${a}".`+SL(d),{nodes:c}))}}return!1}}}var o6n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/KnownArgumentNamesRule.mjs"(){b7(),w7(),oa(),sc(),jC()}});function Qot(e){const t=Object.create(null),n=e.getSchema(),i=n?n.getDirectives():xN;for(const o of i)t[o.name]=o.locations;const r=e.getDocument().definitions;for(const o of r)o.kind===Ct.DIRECTIVE_DEFINITION&&(t[o.name.value]=o.locations.map(s=>s.value));return{Directive(o,s,a,l,c){const u=o.name.value,d=t[u];if(!d){e.reportError(new qi(`Unknown directive "@${u}".`,{nodes:o}));return}const h=s6n(c);h&&!d.includes(h)&&e.reportError(new qi(`Directive "@${u}" may not be used on ${h}.`,{nodes:o}))}}}function s6n(e){const t=e[e.length-1];switch("kind"in t||H_(!1),t.kind){case Ct.OPERATION_DEFINITION:return a6n(t.operation);case Ct.FIELD:return jo.FIELD;case Ct.FRAGMENT_SPREAD:return jo.FRAGMENT_SPREAD;case Ct.INLINE_FRAGMENT:return jo.INLINE_FRAGMENT;case Ct.FRAGMENT_DEFINITION:return jo.FRAGMENT_DEFINITION;case Ct.VARIABLE_DEFINITION:return jo.VARIABLE_DEFINITION;case Ct.SCHEMA_DEFINITION:case Ct.SCHEMA_EXTENSION:return jo.SCHEMA;case Ct.SCALAR_TYPE_DEFINITION:case Ct.SCALAR_TYPE_EXTENSION:return jo.SCALAR;case Ct.OBJECT_TYPE_DEFINITION:case Ct.OBJECT_TYPE_EXTENSION:return jo.OBJECT;case Ct.FIELD_DEFINITION:return jo.FIELD_DEFINITION;case Ct.INTERFACE_TYPE_DEFINITION:case Ct.INTERFACE_TYPE_EXTENSION:return jo.INTERFACE;case Ct.UNION_TYPE_DEFINITION:case Ct.UNION_TYPE_EXTENSION:return jo.UNION;case Ct.ENUM_TYPE_DEFINITION:case Ct.ENUM_TYPE_EXTENSION:return jo.ENUM;case Ct.ENUM_VALUE_DEFINITION:return jo.ENUM_VALUE;case Ct.INPUT_OBJECT_TYPE_DEFINITION:case Ct.INPUT_OBJECT_TYPE_EXTENSION:return jo.INPUT_OBJECT;case Ct.INPUT_VALUE_DEFINITION:{const n=e[e.length-3];return"kind"in n||H_(!1),n.kind===Ct.INPUT_OBJECT_TYPE_DEFINITION?jo.INPUT_FIELD_DEFINITION:jo.ARGUMENT_DEFINITION}default:H_(!1,"Unexpected kind: "+Ji(t.kind))}}function a6n(e){switch(e){case gv.QUERY:return jo.QUERY;case gv.MUTATION:return jo.MUTATION;case gv.SUBSCRIPTION:return jo.SUBSCRIPTION}}var l6n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/KnownDirectivesRule.mjs"(){qd(),dT(),oa(),CN(),Epe(),sc(),jC()}});function c6n(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new qi(`Unknown fragment "${n}".`,{nodes:t.name}))}}}var u6n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/KnownFragmentNamesRule.mjs"(){oa()}});function Zot(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);for(const o of e.getDocument().definitions)HK(o)&&(i[o.name.value]=!0);const r=[...Object.keys(n),...Object.keys(i)];return{NamedType(o,s,a,l,c){const u=o.name.value;if(!n[u]&&!i[u]){var d;const h=(d=c[2])!==null&&d!==void 0?d:a,f=h!=null&&d6n(h);if(f&&SFe.includes(u))return;const p=G2(u,f?SFe.concat(r):r);e.reportError(new qi(`Unknown type "${u}".`+SL(p),{nodes:o}))}}}}function d6n(e){return"kind"in e&&(KBn(e)||YBn(e))}var SFe,h6n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/KnownTypeNamesRule.mjs"(){b7(),w7(),oa(),WK(),EN(),SN(),SFe=[...zK,...VK].map(e=>e.name)}});function f6n(e){let t=0;return{Document(n){t=n.definitions.filter(i=>i.kind===Ct.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new qi("This anonymous operation must be the only defined operation.",{nodes:n}))}}}var p6n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.mjs"(){oa(),sc()}});function g6n(e){var t,n,i;const r=e.getSchema(),o=(t=(n=(i=r?.astNode)!==null&&i!==void 0?i:r?.getQueryType())!==null&&n!==void 0?n:r?.getMutationType())!==null&&t!==void 0?t:r?.getSubscriptionType();let s=0;return{SchemaDefinition(a){if(o){e.reportError(new qi("Cannot define a new schema within a schema extension.",{nodes:a}));return}s>0&&e.reportError(new qi("Must provide only one schema definition.",{nodes:a})),++s}}}var m6n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.mjs"(){oa()}});function v6n(e){function t(n,i=Object.create(null),r=0){if(n.kind===Ct.FRAGMENT_SPREAD){const o=n.name.value;if(i[o]===!0)return!1;const s=e.getFragment(o);if(!s)return!1;try{return i[o]=!0,t(s,i,r)}finally{i[o]=void 0}}if(n.kind===Ct.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(r++,r>=rVt))return!0;if("selectionSet"in n&&n.selectionSet){for(const o of n.selectionSet.selections)if(t(o,i,r))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new qi("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}var rVt,y6n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.mjs"(){oa(),sc(),rVt=3}});function b6n(e){const t=Object.create(null),n=[],i=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(o){return r(o),!1}};function r(o){if(t[o.name.value])return;const s=o.name.value;t[s]=!0;const a=e.getFragmentSpreads(o.selectionSet);if(a.length!==0){i[s]=n.length;for(const l of a){const c=l.name.value,u=i[c];if(n.push(l),u===void 0){const d=e.getFragment(c);d&&r(d)}else{const d=n.slice(u),h=d.slice(0,-1).map(f=>'"'+f.name.value+'"').join(", ");e.reportError(new qi(`Cannot spread fragment "${c}" within itself`+(h!==""?` via ${h}.`:"."),{nodes:d}))}n.pop()}i[s]=void 0}}}var _6n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/NoFragmentCyclesRule.mjs"(){oa()}});function w6n(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const i=e.getRecursiveVariableUsages(n);for(const{node:r}of i){const o=r.name.value;t[o]!==!0&&e.reportError(new qi(n.name?`Variable "$${o}" is not defined by operation "${n.name.value}".`:`Variable "$${o}" is not defined.`,{nodes:[r,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}var C6n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.mjs"(){oa()}});function S6n(e){const t=[],n=[];return{OperationDefinition(i){return t.push(i),!1},FragmentDefinition(i){return n.push(i),!1},Document:{leave(){const i=Object.create(null);for(const r of t)for(const o of e.getRecursivelyReferencedFragments(r))i[o.name.value]=!0;for(const r of n){const o=r.name.value;i[o]!==!0&&e.reportError(new qi(`Fragment "${o}" is never used.`,{nodes:r}))}}}}}var x6n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.mjs"(){oa()}});function E6n(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const i=Object.create(null),r=e.getRecursiveVariableUsages(n);for(const{node:o}of r)i[o.name.value]=!0;for(const o of t){const s=o.variable.name.value;i[s]!==!0&&e.reportError(new qi(n.name?`Variable "$${s}" is never used in operation "${n.name.value}".`:`Variable "$${s}" is never used.`,{nodes:o}))}}},VariableDefinition(n){t.push(n)}}}var A6n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/NoUnusedVariablesRule.mjs"(){oa()}});function w3e(e){switch(e.kind){case Ct.OBJECT:return{...e,fields:D6n(e.fields)};case Ct.LIST:return{...e,values:e.values.map(w3e)};case Ct.INT:case Ct.FLOAT:case Ct.STRING:case Ct.BOOLEAN:case Ct.NULL:case Ct.ENUM:case Ct.VARIABLE:return e}}function D6n(e){return e.map(t=>({...t,value:w3e(t.value)})).sort((t,n)=>l3e(t.name.value,n.name.value))}var T6n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/utilities/sortValueNode.mjs"(){c3e(),sc()}});function oVt(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+oVt(n)).join(" and "):e}function k6n(e){const t=new AFe,n=new lVt,i=new Map;return{SelectionSet(r){const o=I6n(e,i,t,n,e.getParentType(),r);for(const[[s,a],l,c]of o){const u=oVt(a);e.reportError(new qi(`Fields "${s}" conflict because ${u}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:l.concat(c)}))}}}}function I6n(e,t,n,i,r,o){const s=[],[a,l]=yue(e,t,r,o);if(N6n(e,s,t,n,i,a),l.length!==0)for(let c=0;c<l.length;c++){mue(e,s,t,n,i,!1,a,l[c]);for(let u=c+1;u<l.length;u++)vue(e,s,t,n,i,!1,l[c],l[u])}return s}function mue(e,t,n,i,r,o,s,a){if(i.has(s,a,o))return;i.add(s,a,o);const l=e.getFragment(a);if(!l)return;const[c,u]=EFe(e,n,l);if(s!==c){C3e(e,t,n,i,r,o,s,c);for(const d of u)mue(e,t,n,i,r,o,s,d)}}function vue(e,t,n,i,r,o,s,a){if(s===a||r.has(s,a,o))return;r.add(s,a,o);const l=e.getFragment(s),c=e.getFragment(a);if(!l||!c)return;const[u,d]=EFe(e,n,l),[h,f]=EFe(e,n,c);C3e(e,t,n,i,r,o,u,h);for(const p of f)vue(e,t,n,i,r,o,s,p);for(const p of d)vue(e,t,n,i,r,o,p,a)}function L6n(e,t,n,i,r,o,s,a,l){const c=[],[u,d]=yue(e,t,o,s),[h,f]=yue(e,t,a,l);C3e(e,c,t,n,i,r,u,h);for(const p of f)mue(e,c,t,n,i,r,u,p);for(const p of d)mue(e,c,t,n,i,r,h,p);for(const p of d)for(const g of f)vue(e,c,t,n,i,r,p,g);return c}function N6n(e,t,n,i,r,o){for(const[s,a]of Object.entries(o))if(a.length>1)for(let l=0;l<a.length;l++)for(let c=l+1;c<a.length;c++){const u=sVt(e,n,i,r,!1,s,a[l],a[c]);u&&t.push(u)}}function C3e(e,t,n,i,r,o,s,a){for(const[l,c]of Object.entries(s)){const u=a[l];if(u)for(const d of c)for(const h of u){const f=sVt(e,n,i,r,o,l,d,h);f&&t.push(f)}}}function sVt(e,t,n,i,r,o,s,a){const[l,c,u]=s,[d,h,f]=a,p=r||l!==d&&$l(l)&&$l(d);if(!p){const b=c.name.value,w=h.name.value;if(b!==w)return[[o,`"${b}" and "${w}" are different fields`],[c],[h]];if(!P6n(c,h))return[[o,"they have differing arguments"],[c],[h]]}const g=u?.type,m=f?.type;if(g&&m&&xFe(g,m))return[[o,`they return conflicting types "${Ji(g)}" and "${Ji(m)}"`],[c],[h]];const v=c.selectionSet,y=h.selectionSet;if(v&&y){const b=L6n(e,t,n,i,p,sg(g),v,sg(m),y);return M6n(b,o,c,h)}}function P6n(e,t){const n=e.arguments,i=t.arguments;if(n===void 0||n.length===0)return i===void 0||i.length===0;if(i===void 0||i.length===0||n.length!==i.length)return!1;const r=new Map(i.map(({name:o,value:s})=>[o.value,s]));return n.every(o=>{const s=o.value,a=r.get(o.name.value);return a===void 0?!1:Xot(s)===Xot(a)})}function Xot(e){return yu(w3e(e))}function xFe(e,t){return cg(e)?cg(t)?xFe(e.ofType,t.ofType):!0:cg(t)?!0:ic(e)?ic(t)?xFe(e.ofType,t.ofType):!0:ic(t)?!0:xL(e)||xL(t)?e!==t:!1}function yue(e,t,n,i){const r=t.get(i);if(r)return r;const o=Object.create(null),s=Object.create(null);aVt(e,n,i,o,s);const a=[o,Object.keys(s)];return t.set(i,a),a}function EFe(e,t,n){const i=t.get(n.selectionSet);if(i)return i;const r=ob(e.getSchema(),n.typeCondition);return yue(e,t,r,n.selectionSet)}function aVt(e,t,n,i,r){for(const o of n.selections)switch(o.kind){case Ct.FIELD:{const s=o.name.value;let a;($l(t)||rc(t))&&(a=t.getFields()[s]);const l=o.alias?o.alias.value:s;i[l]||(i[l]=[]),i[l].push([t,o,a]);break}case Ct.FRAGMENT_SPREAD:r[o.name.value]=!0;break;case Ct.INLINE_FRAGMENT:{const s=o.typeCondition,a=s?ob(e.getSchema(),s):t;aVt(e,a,o.selectionSet,i,r);break}}}function M6n(e,t,n,i){if(e.length>0)return[[t,e.map(([r])=>r)],[n,...e.map(([,r])=>r).flat()],[i,...e.map(([,,r])=>r).flat()]]}var AFe,lVt,O6n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.mjs"(){qd(),oa(),sc(),BC(),Uc(),T6n(),AN(),AFe=class{constructor(){this._data=new Map}has(e,t,n){var i;const r=(i=this._data.get(e))===null||i===void 0?void 0:i.get(t);return r===void 0?!1:n?!0:n===r}add(e,t,n){const i=this._data.get(e);i===void 0?this._data.set(e,new Map([[t,n]])):i.set(t,n)}},lVt=class{constructor(){this._orderedPairSet=new AFe}has(e,t,n){return e<t?this._orderedPairSet.has(e,t,n):this._orderedPairSet.has(t,e,n)}add(e,t,n){e<t?this._orderedPairSet.add(e,t,n):this._orderedPairSet.add(t,e,n)}}}});function R6n(e){return{InlineFragment(t){const n=e.getType(),i=e.getParentType();if(RD(n)&&RD(i)&&!$ot(e.getSchema(),n,i)){const r=Ji(i),o=Ji(n);e.reportError(new qi(`Fragment cannot be spread here as objects of type "${r}" can never be of type "${o}".`,{nodes:t}))}},FragmentSpread(t){const n=t.name.value,i=F6n(e,n),r=e.getParentType();if(i&&r&&!$ot(e.getSchema(),i,r)){const o=Ji(r),s=Ji(i);e.reportError(new qi(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${s}".`,{nodes:t}))}}}}function F6n(e,t){const n=e.getFragment(t);if(n){const i=ob(e.getSchema(),n.typeCondition);if(RD(i))return i}}var B6n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.mjs"(){qd(),oa(),Uc(),g3e(),AN()}});function j6n(e){const t=e.getSchema(),n=Object.create(null);for(const r of e.getDocument().definitions)HK(r)&&(n[r.name.value]=r);return{ScalarTypeExtension:i,ObjectTypeExtension:i,InterfaceTypeExtension:i,UnionTypeExtension:i,EnumTypeExtension:i,InputObjectTypeExtension:i};function i(r){const o=r.name.value,s=n[o],a=t?.getType(o);let l;if(s?l=cVt[s.kind]:a&&(l=z6n(a)),l){if(l!==r.kind){const c=V6n(r.kind);e.reportError(new qi(`Cannot extend non-${c} type "${o}".`,{nodes:s?[s,r]:r}))}}else{const c=Object.keys({...n,...t?.getTypeMap()}),u=G2(o,c);e.reportError(new qi(`Cannot extend type "${o}" because it is not defined.`+SL(u),{nodes:r.name}))}}}function z6n(e){if(_E(e))return Ct.SCALAR_TYPE_EXTENSION;if($l(e))return Ct.OBJECT_TYPE_EXTENSION;if(rc(e))return Ct.INTERFACE_TYPE_EXTENSION;if(F0(e))return Ct.UNION_TYPE_EXTENSION;if(fm(e))return Ct.ENUM_TYPE_EXTENSION;if(md(e))return Ct.INPUT_OBJECT_TYPE_EXTENSION;H_(!1,"Unexpected type: "+Ji(e))}function V6n(e){switch(e){case Ct.SCALAR_TYPE_EXTENSION:return"scalar";case Ct.OBJECT_TYPE_EXTENSION:return"object";case Ct.INTERFACE_TYPE_EXTENSION:return"interface";case Ct.UNION_TYPE_EXTENSION:return"union";case Ct.ENUM_TYPE_EXTENSION:return"enum";case Ct.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:H_(!1,"Unexpected kind: "+Ji(e))}}var cVt,H6n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.mjs"(){b7(),qd(),dT(),w7(),oa(),sc(),WK(),Uc(),cVt={[Ct.SCALAR_TYPE_DEFINITION]:Ct.SCALAR_TYPE_EXTENSION,[Ct.OBJECT_TYPE_DEFINITION]:Ct.OBJECT_TYPE_EXTENSION,[Ct.INTERFACE_TYPE_DEFINITION]:Ct.INTERFACE_TYPE_EXTENSION,[Ct.UNION_TYPE_DEFINITION]:Ct.UNION_TYPE_EXTENSION,[Ct.ENUM_TYPE_DEFINITION]:Ct.ENUM_TYPE_EXTENSION,[Ct.INPUT_OBJECT_TYPE_DEFINITION]:Ct.INPUT_OBJECT_TYPE_EXTENSION}}});function W6n(e){return{...uVt(e),Field:{leave(t){var n;const i=e.getFieldDef();if(!i)return!1;const r=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(o=>o.name.value));for(const o of i.args)if(!r.has(o.name)&&jK(o)){const s=Ji(o.type);e.reportError(new qi(`Field "${i.name}" argument "${o.name}" of type "${s}" is required, but it was not provided.`,{nodes:t}))}}}}}function uVt(e){var t;const n=Object.create(null),i=e.getSchema(),r=(t=i?.getDirectives())!==null&&t!==void 0?t:xN;for(const a of r)n[a.name]=WR(a.args.filter(jK),l=>l.name);const o=e.getDocument().definitions;for(const a of o)if(a.kind===Ct.DIRECTIVE_DEFINITION){var s;const l=(s=a.arguments)!==null&&s!==void 0?s:[];n[a.name.value]=WR(l.filter(U6n),c=>c.name.value)}return{Directive:{leave(a){const l=a.name.value,c=n[l];if(c){var u;const d=(u=a.arguments)!==null&&u!==void 0?u:[],h=new Set(d.map(f=>f.name.value));for(const[f,p]of Object.entries(c))if(!h.has(f)){const g=Ipe(p.type)?Ji(p.type):yu(p.type);e.reportError(new qi(`Directive "@${l}" argument "${f}" of type "${g}" is required, but it was not provided.`,{nodes:a}))}}}}}}function U6n(e){return e.type.kind===Ct.NON_NULL_TYPE&&e.defaultValue==null}var $6n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.mjs"(){qd(),_7(),oa(),sc(),BC(),Uc(),jC()}});function q6n(e){return{Field(t){const n=e.getType(),i=t.selectionSet;if(n)if(xL(sg(n))){if(i){const r=t.name.value,o=Ji(n);e.reportError(new qi(`Field "${r}" must not have a selection since type "${o}" has no subfields.`,{nodes:i}))}}else if(i){if(i.selections.length===0){const r=t.name.value,o=Ji(n);e.reportError(new qi(`Field "${r}" of type "${o}" must have at least one field selected.`,{nodes:t}))}}else{const r=t.name.value,o=Ji(n);e.reportError(new qi(`Field "${r}" of type "${o}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}}var G6n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/ScalarLeafsRule.mjs"(){qd(),oa(),Uc()}});function BI(e,t,n){if(e){if(e.kind===Ct.VARIABLE){const i=e.name.value;if(n==null||n[i]===void 0)return;const r=n[i];return r===null&&ic(t)?void 0:r}if(ic(t))return e.kind===Ct.NULL?void 0:BI(e,t.ofType,n);if(e.kind===Ct.NULL)return null;if(cg(t)){const i=t.ofType;if(e.kind===Ct.LIST){const o=[];for(const s of e.values)if(Jot(s,n)){if(ic(i))return;o.push(null)}else{const a=BI(s,i,n);if(a===void 0)return;o.push(a)}return o}const r=BI(e,i,n);return r===void 0?void 0:[r]}if(md(t)){if(e.kind!==Ct.OBJECT)return;const i=Object.create(null),r=WR(e.fields,o=>o.name.value);for(const o of Object.values(t.getFields())){const s=r[o.name];if(!s||Jot(s.value,n)){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if(ic(o.type))return;continue}const a=BI(s.value,o.type,n);if(a===void 0)return;i[o.name]=a}if(t.isOneOf){const o=Object.keys(i);if(o.length!==1||i[o[0]]===null)return}return i}if(xL(t)){let i;try{i=t.parseLiteral(e,n)}catch{return}return i===void 0?void 0:i}H_(!1,"Unexpected input type: "+Ji(t))}}function Jot(e,t){return e.kind===Ct.VARIABLE&&(t==null||t[e.name.value]===void 0)}var S3e=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/utilities/valueFromAST.mjs"(){qd(),dT(),_7(),sc(),Uc()}});function K6n(e,t,n){var i;const r={},o=(i=t.arguments)!==null&&i!==void 0?i:[],s=WR(o,a=>a.name.value);for(const a of e.args){const l=a.name,c=a.type,u=s[l];if(!u){if(a.defaultValue!==void 0)r[l]=a.defaultValue;else if(ic(c))throw new qi(`Argument "${l}" of required type "${Ji(c)}" was not provided.`,{nodes:t});continue}const d=u.value;let h=d.kind===Ct.NULL;if(d.kind===Ct.VARIABLE){const p=d.name.value;if(n==null||!Y6n(n,p)){if(a.defaultValue!==void 0)r[l]=a.defaultValue;else if(ic(c))throw new qi(`Argument "${l}" of required type "${Ji(c)}" was provided the variable "$${p}" which was not provided a runtime value.`,{nodes:d});continue}h=n[p]==null}if(h&&ic(c))throw new qi(`Argument "${l}" of non-null type "${Ji(c)}" must not be null.`,{nodes:d});const f=BI(d,c,n);if(f===void 0)throw new qi(`Argument "${l}" has invalid value ${yu(d)}.`,{nodes:d});r[l]=f}return r}function Lq(e,t,n){var i;const r=(i=t.directives)===null||i===void 0?void 0:i.find(o=>o.name.value===e.name);if(r)return K6n(e,r,n)}function Y6n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var dVt=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/execution/values.mjs"(){qd(),_7(),oa(),sc(),BC(),Uc(),S3e()}});function Q6n(e,t,n,i,r){const o=new Map;return DFe(e,t,n,i,r,o,new Set),o}function DFe(e,t,n,i,r,o,s){for(const a of r.selections)switch(a.kind){case Ct.FIELD:{if(!fwe(n,a))continue;const l=Z6n(a),c=o.get(l);c!==void 0?c.push(a):o.set(l,[a]);break}case Ct.INLINE_FRAGMENT:{if(!fwe(n,a)||!est(e,a,i))continue;DFe(e,t,n,i,a.selectionSet,o,s);break}case Ct.FRAGMENT_SPREAD:{const l=a.name.value;if(s.has(l)||!fwe(n,a))continue;s.add(l);const c=t[l];if(!c||!est(e,c,i))continue;DFe(e,t,n,i,c.selectionSet,o,s);break}}}function fwe(e,t){const n=Lq(vFe,t,e);if(n?.if===!0)return!1;const i=Lq(mFe,t,e);return i?.if!==!1}function est(e,t,n){const i=t.typeCondition;if(!i)return!0;const r=ob(e,i);return r===n?!0:nL(r)?e.isSubType(r,n):!1}function Z6n(e){return e.alias?e.alias.value:e.name.value}var X6n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/execution/collectFields.mjs"(){sc(),Uc(),jC(),AN(),dVt()}});function J6n(e){return{OperationDefinition(t){if(t.operation==="subscription"){const n=e.getSchema(),i=n.getSubscriptionType();if(i){const r=t.name?t.name.value:null,o=Object.create(null),s=e.getDocument(),a=Object.create(null);for(const c of s.definitions)c.kind===Ct.FRAGMENT_DEFINITION&&(a[c.name.value]=c);const l=Q6n(n,a,o,i,t.selectionSet);if(l.size>1){const d=[...l.values()].slice(1).flat();e.reportError(new qi(r!=null?`Subscription "${r}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:d}))}for(const c of l.values())c[0].name.value.startsWith("__")&&e.reportError(new qi(r!=null?`Subscription "${r}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:c}))}}}}}var e8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.mjs"(){oa(),sc(),X6n()}});function x3e(e,t){const n=new Map;for(const i of e){const r=t(i),o=n.get(r);o===void 0?n.set(r,[i]):o.push(i)}return n}var E3e=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/jsutils/groupBy.mjs"(){}});function t8n(e){return{DirectiveDefinition(i){var r;const o=(r=i.arguments)!==null&&r!==void 0?r:[];return n(`@${i.name.value}`,o)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(i){var r;const o=i.name.value,s=(r=i.fields)!==null&&r!==void 0?r:[];for(const l of s){var a;const c=l.name.value,u=(a=l.arguments)!==null&&a!==void 0?a:[];n(`${o}.${c}`,u)}return!1}function n(i,r){const o=x3e(r,s=>s.name.value);for(const[s,a]of o)a.length>1&&e.reportError(new qi(`Argument "${i}(${s}:)" can only be defined once.`,{nodes:a.map(l=>l.name)}));return!1}}var n8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.mjs"(){E3e(),oa()}});function tst(e){return{Field:t,Directive:t};function t(n){var i;const r=(i=n.arguments)!==null&&i!==void 0?i:[],o=x3e(r,s=>s.name.value);for(const[s,a]of o)a.length>1&&e.reportError(new qi(`There can be only one argument named "${s}".`,{nodes:a.map(l=>l.name)}))}}var i8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.mjs"(){E3e(),oa()}});function r8n(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(i){const r=i.name.value;if(n!=null&&n.getDirective(r)){e.reportError(new qi(`Directive "@${r}" already exists in the schema. It cannot be redefined.`,{nodes:i.name}));return}return t[r]?e.reportError(new qi(`There can be only one directive named "@${r}".`,{nodes:[t[r],i.name]})):t[r]=i.name,!1}}}var o8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.mjs"(){oa()}});function nst(e){const t=Object.create(null),n=e.getSchema(),i=n?n.getDirectives():xN;for(const a of i)t[a.name]=!a.isRepeatable;const r=e.getDocument().definitions;for(const a of r)a.kind===Ct.DIRECTIVE_DEFINITION&&(t[a.name.value]=!a.repeatable);const o=Object.create(null),s=Object.create(null);return{enter(a){if(!("directives"in a)||!a.directives)return;let l;if(a.kind===Ct.SCHEMA_DEFINITION||a.kind===Ct.SCHEMA_EXTENSION)l=o;else if(HK(a)||_3e(a)){const c=a.name.value;l=s[c],l===void 0&&(s[c]=l=Object.create(null))}else l=Object.create(null);for(const c of a.directives){const u=c.name.value;t[u]&&(l[u]?e.reportError(new qi(`The directive "@${u}" can only be used once at this location.`,{nodes:[l[u],c]})):l[u]=c)}}}}var s8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.mjs"(){oa(),sc(),WK(),jC()}});function a8n(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{EnumTypeDefinition:r,EnumTypeExtension:r};function r(o){var s;const a=o.name.value;i[a]||(i[a]=Object.create(null));const l=(s=o.values)!==null&&s!==void 0?s:[],c=i[a];for(const u of l){const d=u.name.value,h=n[a];fm(h)&&h.getValue(d)?e.reportError(new qi(`Enum value "${a}.${d}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:u.name})):c[d]?e.reportError(new qi(`Enum value "${a}.${d}" can only be defined once.`,{nodes:[c[d],u.name]})):c[d]=u.name}return!1}}var l8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.mjs"(){oa(),Uc()}});function c8n(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{InputObjectTypeDefinition:r,InputObjectTypeExtension:r,InterfaceTypeDefinition:r,InterfaceTypeExtension:r,ObjectTypeDefinition:r,ObjectTypeExtension:r};function r(o){var s;const a=o.name.value;i[a]||(i[a]=Object.create(null));const l=(s=o.fields)!==null&&s!==void 0?s:[],c=i[a];for(const u of l){const d=u.name.value;u8n(n[a],d)?e.reportError(new qi(`Field "${a}.${d}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:u.name})):c[d]?e.reportError(new qi(`Field "${a}.${d}" can only be defined once.`,{nodes:[c[d],u.name]})):c[d]=u.name}return!1}}function u8n(e,t){return $l(e)||rc(e)||md(e)?e.getFields()[t]!=null:!1}var d8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.mjs"(){oa(),Uc()}});function h8n(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const i=n.name.value;return t[i]?e.reportError(new qi(`There can be only one fragment named "${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name,!1}}}var f8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.mjs"(){oa()}});function ist(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const i=t.pop();i||H_(!1),n=i}},ObjectField(i){const r=i.name.value;n[r]?e.reportError(new qi(`There can be only one input field named "${r}".`,{nodes:[n[r],i.name]})):n[r]=i.name}}}var p8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.mjs"(){dT(),oa()}});function g8n(e){const t=Object.create(null);return{OperationDefinition(n){const i=n.name;return i&&(t[i.value]?e.reportError(new qi(`There can be only one operation named "${i.value}".`,{nodes:[t[i.value],i]})):t[i.value]=i),!1},FragmentDefinition:()=>!1}}var m8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/UniqueOperationNamesRule.mjs"(){oa()}});function v8n(e){const t=e.getSchema(),n=Object.create(null),i=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:r,SchemaExtension:r};function r(o){var s;const a=(s=o.operationTypes)!==null&&s!==void 0?s:[];for(const l of a){const c=l.operation,u=n[c];i[c]?e.reportError(new qi(`Type for ${c} already defined in the schema. It cannot be redefined.`,{nodes:l})):u?e.reportError(new qi(`There can be only one ${c} type in schema.`,{nodes:[u,l]})):n[c]=l}return!1}}var y8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/UniqueOperationTypesRule.mjs"(){oa()}});function b8n(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:i,ObjectTypeDefinition:i,InterfaceTypeDefinition:i,UnionTypeDefinition:i,EnumTypeDefinition:i,InputObjectTypeDefinition:i};function i(r){const o=r.name.value;if(n!=null&&n.getType(o)){e.reportError(new qi(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}));return}return t[o]?e.reportError(new qi(`There can be only one type named "${o}".`,{nodes:[t[o],r.name]})):t[o]=r.name,!1}}var _8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/UniqueTypeNamesRule.mjs"(){oa()}});function w8n(e){return{OperationDefinition(t){var n;const i=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],r=x3e(i,o=>o.variable.name.value);for(const[o,s]of r)s.length>1&&e.reportError(new qi(`There can be only one variable named "$${o}".`,{nodes:s.map(a=>a.variable.name)}))}}}var C8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/UniqueVariableNamesRule.mjs"(){E3e(),oa()}});function S8n(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){const i=f3e(e.getParentInputType());if(!cg(i))return IP(e,n),!1},ObjectValue(n){const i=sg(e.getInputType());if(!md(i))return IP(e,n),!1;const r=WR(n.fields,o=>o.name.value);for(const o of Object.values(i.getFields()))if(!r[o.name]&&Jzt(o)){const a=Ji(o.type);e.reportError(new qi(`Field "${i.name}.${o.name}" of required type "${a}" was not provided.`,{nodes:n}))}i.isOneOf&&x8n(e,n,i,r)},ObjectField(n){const i=sg(e.getParentInputType());if(!e.getInputType()&&md(i)){const o=G2(n.name.value,Object.keys(i.getFields()));e.reportError(new qi(`Field "${n.name.value}" is not defined by type "${i.name}".`+SL(o),{nodes:n}))}},NullValue(n){const i=e.getInputType();ic(i)&&e.reportError(new qi(`Expected value of type "${Ji(i)}", found ${yu(n)}.`,{nodes:n}))},EnumValue:n=>IP(e,n),IntValue:n=>IP(e,n),FloatValue:n=>IP(e,n),StringValue:n=>IP(e,n),BooleanValue:n=>IP(e,n)}}function IP(e,t){const n=e.getInputType();if(!n)return;const i=sg(n);if(!xL(i)){const r=Ji(n);e.reportError(new qi(`Expected value of type "${r}", found ${yu(t)}.`,{nodes:t}));return}try{if(i.parseLiteral(t,void 0)===void 0){const o=Ji(n);e.reportError(new qi(`Expected value of type "${o}", found ${yu(t)}.`,{nodes:t}))}}catch(r){const o=Ji(n);r instanceof qi?e.reportError(r):e.reportError(new qi(`Expected value of type "${o}", found ${yu(t)}; `+r.message,{nodes:t,originalError:r}))}}function x8n(e,t,n,i){var r;const o=Object.keys(i);if(o.length!==1){e.reportError(new qi(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}const a=(r=i[o[0]])===null||r===void 0?void 0:r.value;(!a||a.kind===Ct.NULL)&&e.reportError(new qi(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}))}var E8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs"(){b7(),qd(),_7(),w7(),oa(),sc(),BC(),Uc()}});function A8n(e){return{VariableDefinition(t){const n=ob(e.getSchema(),t.type);if(n!==void 0&&!H1(n)){const i=t.variable.name.value,r=yu(t.type);e.reportError(new qi(`Variable "$${i}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}var D8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.mjs"(){oa(),BC(),Uc(),AN()}});function T8n(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const i=e.getRecursiveVariableUsages(n);for(const{node:r,type:o,defaultValue:s,parentType:a}of i){const l=r.name.value,c=t[l];if(c&&o){const u=e.getSchema(),d=ob(u,c.type);if(d&&!k8n(u,d,c.defaultValue,o,s)){const h=Ji(d),f=Ji(o);e.reportError(new qi(`Variable "$${l}" of type "${h}" used in position expecting type "${f}".`,{nodes:[c,r]}))}md(a)&&a.isOneOf&&h3e(d)&&e.reportError(new qi(`Variable "$${l}" is of type "${d}" but must be non-nullable to be used for OneOf Input Object "${a}".`,{nodes:[c,r]}))}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function k8n(e,t,n,i,r){if(ic(i)&&!ic(t)){if(!(n!=null&&n.kind!==Ct.NULL)&&!(r!==void 0))return!1;const a=i.ofType;return B6(e,t,a)}return B6(e,t,i)}var I8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.mjs"(){qd(),oa(),sc(),Uc(),g3e(),AN()}}),rst,hVt,L8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/specifiedRules.mjs"(){ZBn(),t6n(),i6n(),o6n(),l6n(),u6n(),h6n(),p6n(),m6n(),y6n(),_6n(),C6n(),x6n(),A6n(),O6n(),B6n(),H6n(),$6n(),G6n(),e8n(),n8n(),i8n(),o8n(),s8n(),l8n(),d8n(),f8n(),p8n(),m8n(),y8n(),_8n(),C8n(),E8n(),D8n(),I8n(),rst=Object.freeze([v6n]),Object.freeze([QBn,g8n,f6n,J6n,Zot,n6n,A8n,q6n,XBn,h8n,c6n,S6n,R6n,b6n,w8n,w6n,E6n,Qot,nst,r6n,tst,S8n,W6n,T8n,k6n,ist,...rst]),hVt=Object.freeze([g6n,v8n,b8n,a8n,c8n,t8n,r8n,Zot,Qot,nst,j6n,iVt,tst,ist,uVt])}}),ost,fVt,N8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/ValidationContext.mjs"(){sc(),ost=class{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const n of this.getDocument().definitions)n.kind===Ct.FRAGMENT_DEFINITION&&(t[n.name.value]=n);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let i;for(;i=n.pop();)for(const r of i.selections)r.kind===Ct.FRAGMENT_SPREAD?t.push(r):r.selectionSet&&n.push(r.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),i=[e.selectionSet];let r;for(;r=i.pop();)for(const o of this.getFragmentSpreads(r)){const s=o.name.value;if(n[s]!==!0){n[s]=!0;const a=this.getFragment(s);a&&(t.push(a),i.push(a.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}},fVt=class extends ost{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}}});function P8n(e,t,n=hVt){const i=[],r=new fVt(e,t,s=>{i.push(s)}),o=n.map(s=>s(r));return Yx(e,_Bn(o)),i}function M8n(e){const t=P8n(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`

`))}var O8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/validation/validate.mjs"(){a3e(),CN(),kpe(),L8n(),N8n(),rx(hue,e=>e.filter(t=>t!=="description"))}}),R8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/type/index.mjs"(){Npe(),Uc(),SN(),EN(),WBn()}}),F8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/language/index.mjs"(){sc(),Vzt(),BC(),kpe()}});function B8n(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",i=t.specifiedByUrl?"specifiedByURL":"",r=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function s(l){return t.inputValueDeprecation?l:""}const a=t.oneOf?"isOneOf":"";return`
    query IntrospectionQuery {
      __schema {
        ${o}
        queryType { name kind }
        mutationType { name kind }
        subscriptionType { name kind }
        types {
          ...FullType
        }
        directives {
          name
          ${n}
          ${r}
          locations
          args${s("(includeDeprecated: true)")} {
            ...InputValue
          }
        }
      }
    }

    fragment FullType on __Type {
      kind
      name
      ${n}
      ${i}
      ${a}
      fields(includeDeprecated: true) {
        name
        ${n}
        args${s("(includeDeprecated: true)")} {
          ...InputValue
        }
        type {
          ...TypeRef
        }
        isDeprecated
        deprecationReason
      }
      inputFields${s("(includeDeprecated: true)")} {
        ...InputValue
      }
      interfaces {
        ...TypeRef
      }
      enumValues(includeDeprecated: true) {
        name
        ${n}
        isDeprecated
        deprecationReason
      }
      possibleTypes {
        ...TypeRef
      }
    }

    fragment InputValue on __InputValue {
      name
      ${n}
      type { ...TypeRef }
      defaultValue
      ${s("isDeprecated")}
      ${s("deprecationReason")}
    }

    fragment TypeRef on __Type {
      kind
      name
      ofType {
        kind
        name
        ofType {
          kind
          name
          ofType {
            kind
            name
            ofType {
              kind
              name
              ofType {
                kind
                name
                ofType {
                  kind
                  name
                  ofType {
                    kind
                    name
                    ofType {
                      kind
                      name
                      ofType {
                        kind
                        name
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  `}var j8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/utilities/getIntrospectionQuery.mjs"(){}});function z8n(e,t){OD(e)&&OD(e.__schema)||El(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${Ji(e)}.`);const n=e.__schema,i=AO(n.types,M=>M.name,M=>h(M));for(const M of[...zK,...VK])i[M.name]&&(i[M.name]=M);const r=n.queryType?u(n.queryType):null,o=n.mutationType?u(n.mutationType):null,s=n.subscriptionType?u(n.subscriptionType):null,a=n.directives?n.directives.map(T):[];return new Lpe({description:n.description,query:r,mutation:o,subscription:s,types:Object.values(i),directives:a,assumeValid:void 0});function l(M){if(M.kind===eu.LIST){const P=M.ofType;if(!P)throw new Error("Decorated type deeper than introspection query.");return new Xp(l(P))}if(M.kind===eu.NON_NULL){const P=M.ofType;if(!P)throw new Error("Decorated type deeper than introspection query.");const F=l(P);return new ma(EBn(F))}return c(M)}function c(M){const P=M.name;if(!P)throw new Error(`Unknown type reference: ${Ji(M)}.`);const F=i[P];if(!F)throw new Error(`Invalid or incomplete schema, unknown type: ${P}. Ensure that a full introspection query is used in order to build a client schema.`);return F}function u(M){return SBn(c(M))}function d(M){return xBn(c(M))}function h(M){if(M!=null&&M.name!=null&&M.kind!=null)switch(M.kind){case eu.SCALAR:return f(M);case eu.OBJECT:return g(M);case eu.INTERFACE:return m(M);case eu.UNION:return v(M);case eu.ENUM:return y(M);case eu.INPUT_OBJECT:return b(M)}const P=Ji(M);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${P}.`)}function f(M){return new ox({name:M.name,description:M.description,specifiedByURL:M.specifiedByURL})}function p(M){if(M.interfaces===null&&M.kind===eu.INTERFACE)return[];if(!M.interfaces){const P=Ji(M);throw new Error(`Introspection result missing interfaces: ${P}.`)}return M.interfaces.map(d)}function g(M){return new C_({name:M.name,description:M.description,interfaces:()=>p(M),fields:()=>w(M)})}function m(M){return new $8({name:M.name,description:M.description,interfaces:()=>p(M),fields:()=>w(M)})}function v(M){if(!M.possibleTypes){const P=Ji(M);throw new Error(`Introspection result missing possibleTypes: ${P}.`)}return new Dq({name:M.name,description:M.description,types:()=>M.possibleTypes.map(u)})}function y(M){if(!M.enumValues){const P=Ji(M);throw new Error(`Introspection result missing enumValues: ${P}.`)}return new EL({name:M.name,description:M.description,values:AO(M.enumValues,P=>P.name,P=>({description:P.description,deprecationReason:P.deprecationReason}))})}function b(M){if(!M.inputFields){const P=Ji(M);throw new Error(`Introspection result missing inputFields: ${P}.`)}return new q8({name:M.name,description:M.description,fields:()=>A(M.inputFields),isOneOf:M.isOneOf})}function w(M){if(!M.fields)throw new Error(`Introspection result missing fields: ${Ji(M)}.`);return AO(M.fields,P=>P.name,E)}function E(M){const P=l(M.type);if(!R6(P)){const F=Ji(P);throw new Error(`Introspection must provide output type for fields, but received: ${F}.`)}if(!M.args){const F=Ji(M);throw new Error(`Introspection result missing field args: ${F}.`)}return{description:M.description,deprecationReason:M.deprecationReason,type:P,args:A(M.args)}}function A(M){return AO(M,P=>P.name,D)}function D(M){const P=l(M.type);if(!H1(P)){const N=Ji(P);throw new Error(`Introspection must provide input type for arguments, but received: ${N}.`)}const F=M.defaultValue!=null?BI(gBn(M.defaultValue),P):void 0;return{description:M.description,type:P,defaultValue:F,deprecationReason:M.deprecationReason}}function T(M){if(!M.args){const P=Ji(M);throw new Error(`Introspection result missing directive args: ${P}.`)}if(!M.locations){const P=Ji(M);throw new Error(`Introspection result missing directive locations: ${P}.`)}return new JS({name:M.name,description:M.description,isRepeatable:M.isRepeatable,locations:M.locations.slice(),args:A(M.args)})}}var V8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/utilities/buildClientSchema.mjs"(){wN(),qd(),q2(),s3e(),Vzt(),Uc(),jC(),EN(),SN(),Npe(),S3e()}});function H8n(e,t,n){var i,r,o,s;const a=[],l=Object.create(null),c=[];let u;const d=[];for(const G of t.definitions)if(G.kind===Ct.SCHEMA_DEFINITION)u=G;else if(G.kind===Ct.SCHEMA_EXTENSION)d.push(G);else if(HK(G))a.push(G);else if(_3e(G)){const pe=G.name.value,U=l[pe];l[pe]=U?U.concat([G]):[G]}else G.kind===Ct.DIRECTIVE_DEFINITION&&c.push(G);if(Object.keys(l).length===0&&a.length===0&&c.length===0&&d.length===0&&u==null)return e;const h=Object.create(null);for(const G of e.types)h[G.name]=y(G);for(const G of a){var f;const pe=G.name.value;h[pe]=(f=TFe[pe])!==null&&f!==void 0?f:Y(G)}const p={query:e.query&&m(e.query),mutation:e.mutation&&m(e.mutation),subscription:e.subscription&&m(e.subscription),...u&&F([u]),...F(d)};return{description:(i=u)===null||i===void 0||(r=i.description)===null||r===void 0?void 0:r.value,...p,types:Object.values(h),directives:[...e.directives.map(v),...c.map(W)],extensions:Object.create(null),astNode:(o=u)!==null&&o!==void 0?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(d),assumeValid:(s=n?.assumeValid)!==null&&s!==void 0?s:!1};function g(G){return cg(G)?new Xp(g(G.ofType)):ic(G)?new ma(g(G.ofType)):m(G)}function m(G){return h[G.name]}function v(G){const pe=G.toConfig();return new JS({...pe,args:rx(pe.args,P)})}function y(G){if(v3e(G)||eVt(G))return G;if(_E(G))return E(G);if($l(G))return A(G);if(rc(G))return D(G);if(F0(G))return T(G);if(fm(G))return w(G);if(md(G))return b(G);H_(!1,"Unexpected type: "+Ji(G))}function b(G){var pe;const U=G.toConfig(),K=(pe=l[U.name])!==null&&pe!==void 0?pe:[];return new q8({...U,fields:()=>({...rx(U.fields,ie=>({...ie,type:g(ie.type)})),...Q(K)}),extensionASTNodes:U.extensionASTNodes.concat(K)})}function w(G){var pe;const U=G.toConfig(),K=(pe=l[G.name])!==null&&pe!==void 0?pe:[];return new EL({...U,values:{...U.values,...H(K)},extensionASTNodes:U.extensionASTNodes.concat(K)})}function E(G){var pe;const U=G.toConfig(),K=(pe=l[U.name])!==null&&pe!==void 0?pe:[];let ie=U.specifiedByURL;for(const de of K){var ce;ie=(ce=sst(de))!==null&&ce!==void 0?ce:ie}return new ox({...U,specifiedByURL:ie,extensionASTNodes:U.extensionASTNodes.concat(K)})}function A(G){var pe;const U=G.toConfig(),K=(pe=l[U.name])!==null&&pe!==void 0?pe:[];return new C_({...U,interfaces:()=>[...G.getInterfaces().map(m),...q(K)],fields:()=>({...rx(U.fields,M),...J(K)}),extensionASTNodes:U.extensionASTNodes.concat(K)})}function D(G){var pe;const U=G.toConfig(),K=(pe=l[U.name])!==null&&pe!==void 0?pe:[];return new $8({...U,interfaces:()=>[...G.getInterfaces().map(m),...q(K)],fields:()=>({...rx(U.fields,M),...J(K)}),extensionASTNodes:U.extensionASTNodes.concat(K)})}function T(G){var pe;const U=G.toConfig(),K=(pe=l[U.name])!==null&&pe!==void 0?pe:[];return new Dq({...U,types:()=>[...G.getTypes().map(m),...le(K)],extensionASTNodes:U.extensionASTNodes.concat(K)})}function M(G){return{...G,type:g(G.type),args:G.args&&rx(G.args,P)}}function P(G){return{...G,type:g(G.type)}}function F(G){const pe={};for(const K of G){var U;const ie=(U=K.operationTypes)!==null&&U!==void 0?U:[];for(const ce of ie)pe[ce.operation]=N(ce.type)}return pe}function N(G){var pe;const U=G.name.value,K=(pe=TFe[U])!==null&&pe!==void 0?pe:h[U];if(K===void 0)throw new Error(`Unknown type: "${U}".`);return K}function j(G){return G.kind===Ct.LIST_TYPE?new Xp(j(G.type)):G.kind===Ct.NON_NULL_TYPE?new ma(j(G.type)):N(G)}function W(G){var pe;return new JS({name:G.name.value,description:(pe=G.description)===null||pe===void 0?void 0:pe.value,locations:G.locations.map(({value:U})=>U),isRepeatable:G.repeatable,args:ee(G.arguments),astNode:G})}function J(G){const pe=Object.create(null);for(const ie of G){var U;const ce=(U=ie.fields)!==null&&U!==void 0?U:[];for(const de of ce){var K;pe[de.name.value]={type:j(de.type),description:(K=de.description)===null||K===void 0?void 0:K.value,args:ee(de.arguments),deprecationReason:XX(de),astNode:de}}}return pe}function ee(G){const pe=G??[],U=Object.create(null);for(const ie of pe){var K;const ce=j(ie.type);U[ie.name.value]={type:ce,description:(K=ie.description)===null||K===void 0?void 0:K.value,defaultValue:BI(ie.defaultValue,ce),deprecationReason:XX(ie),astNode:ie}}return U}function Q(G){const pe=Object.create(null);for(const ie of G){var U;const ce=(U=ie.fields)!==null&&U!==void 0?U:[];for(const de of ce){var K;const oe=j(de.type);pe[de.name.value]={type:oe,description:(K=de.description)===null||K===void 0?void 0:K.value,defaultValue:BI(de.defaultValue,oe),deprecationReason:XX(de),astNode:de}}}return pe}function H(G){const pe=Object.create(null);for(const ie of G){var U;const ce=(U=ie.values)!==null&&U!==void 0?U:[];for(const de of ce){var K;pe[de.name.value]={description:(K=de.description)===null||K===void 0?void 0:K.value,deprecationReason:XX(de),astNode:de}}}return pe}function q(G){return G.flatMap(pe=>{var U,K;return(U=(K=pe.interfaces)===null||K===void 0?void 0:K.map(N))!==null&&U!==void 0?U:[]})}function le(G){return G.flatMap(pe=>{var U,K;return(U=(K=pe.types)===null||K===void 0?void 0:K.map(N))!==null&&U!==void 0?U:[]})}function Y(G){var pe;const U=G.name.value,K=(pe=l[U])!==null&&pe!==void 0?pe:[];switch(G.kind){case Ct.OBJECT_TYPE_DEFINITION:{var ie;const Se=[G,...K];return new C_({name:U,description:(ie=G.description)===null||ie===void 0?void 0:ie.value,interfaces:()=>q(Se),fields:()=>J(Se),astNode:G,extensionASTNodes:K})}case Ct.INTERFACE_TYPE_DEFINITION:{var ce;const Se=[G,...K];return new $8({name:U,description:(ce=G.description)===null||ce===void 0?void 0:ce.value,interfaces:()=>q(Se),fields:()=>J(Se),astNode:G,extensionASTNodes:K})}case Ct.ENUM_TYPE_DEFINITION:{var de;const Se=[G,...K];return new EL({name:U,description:(de=G.description)===null||de===void 0?void 0:de.value,values:H(Se),astNode:G,extensionASTNodes:K})}case Ct.UNION_TYPE_DEFINITION:{var oe;const Se=[G,...K];return new Dq({name:U,description:(oe=G.description)===null||oe===void 0?void 0:oe.value,types:()=>le(Se),astNode:G,extensionASTNodes:K})}case Ct.SCALAR_TYPE_DEFINITION:{var me;return new ox({name:U,description:(me=G.description)===null||me===void 0?void 0:me.value,specifiedByURL:sst(G),astNode:G,extensionASTNodes:K})}case Ct.INPUT_OBJECT_TYPE_DEFINITION:{var Ce;const Se=[G,...K];return new q8({name:U,description:(Ce=G.description)===null||Ce===void 0?void 0:Ce.value,fields:()=>Q(Se),astNode:G,extensionASTNodes:K,isOneOf:W8n(G)})}}}}function XX(e){const t=Lq(gue,e);return t?.reason}function sst(e){const t=Lq(bFe,e);return t?.url}function W8n(e){return!!Lq(_Fe,e)}var TFe,U8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/utilities/extendSchema.mjs"(){qd(),dT(),_7(),a3e(),sc(),WK(),Uc(),jC(),EN(),SN(),dVt(),S3e(),TFe=WR([...zK,...VK],e=>e.name)}});function $8n(e,t){e!=null&&e.kind===Ct.DOCUMENT||El(!1,"Must provide valid Document AST."),t?.assumeValid!==!0&&t?.assumeValidSDL!==!0&&M8n(e);const i=H8n({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(i.astNode==null)for(const o of i.types)switch(o.name){case"Query":i.query=o;break;case"Mutation":i.mutation=o;break;case"Subscription":i.subscription=o;break}const r=[...i.directives,...xN.filter(o=>i.directives.every(s=>s.name!==o.name))];return new Lpe({...i,directives:r})}var q8n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/utilities/buildASTSchema.mjs"(){wN(),sc(),jC(),Npe(),O8n(),U8n()}});function ast(e){return K8n(e,t=>!TBn(t),G8n)}function G8n(e){return!eVt(e)&&!v3e(e)}function K8n(e,t,n){const i=e.getDirectives().filter(t),r=Object.values(e.getTypeMap()).filter(n);return[Y8n(e),...i.map(o=>r9n(o)),...r.map(o=>Z8n(o))].filter(Boolean).join(`

`)}function Y8n(e){if(e.description==null&&Q8n(e))return;const t=[],n=e.getQueryType();n&&t.push(`  query: ${n.name}`);const i=e.getMutationType();i&&t.push(`  mutation: ${i.name}`);const r=e.getSubscriptionType();return r&&t.push(`  subscription: ${r.name}`),X_(e)+`schema {
${t.join(`
`)}
}`}function Q8n(e){const t=e.getQueryType();if(t&&t.name!=="Query")return!1;const n=e.getMutationType();if(n&&n.name!=="Mutation")return!1;const i=e.getSubscriptionType();return!(i&&i.name!=="Subscription")}function Z8n(e){if(_E(e))return X8n(e);if($l(e))return J8n(e);if(rc(e))return e9n(e);if(F0(e))return t9n(e);if(fm(e))return n9n(e);if(md(e))return i9n(e);H_(!1,"Unexpected type: "+Ji(e))}function X8n(e){return X_(e)+`scalar ${e.name}`+o9n(e)}function pVt(e){const t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function J8n(e){return X_(e)+`type ${e.name}`+pVt(e)+gVt(e)}function e9n(e){return X_(e)+`interface ${e.name}`+pVt(e)+gVt(e)}function t9n(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return X_(e)+"union "+e.name+n}function n9n(e){const t=e.getValues().map((n,i)=>X_(n,"  ",!i)+"  "+n.name+D3e(n.deprecationReason));return X_(e)+`enum ${e.name}`+A3e(t)}function i9n(e){const t=Object.values(e.getFields()).map((n,i)=>X_(n,"  ",!i)+"  "+kFe(n));return X_(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+A3e(t)}function gVt(e){const t=Object.values(e.getFields()).map((n,i)=>X_(n,"  ",!i)+"  "+n.name+mVt(n.args,"  ")+": "+String(n.type)+D3e(n.deprecationReason));return A3e(t)}function A3e(e){return e.length!==0?` {
`+e.join(`
`)+`
}`:""}function mVt(e,t=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(kFe).join(", ")+")":`(
`+e.map((n,i)=>X_(n,"  "+t,!i)+"  "+t+kFe(n)).join(`
`)+`
`+t+")"}function kFe(e){const t=TO(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=` = ${yu(t)}`),n+D3e(e.deprecationReason)}function r9n(e){return X_(e)+"directive @"+e.name+mVt(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function D3e(e){return e==null?"":e!==yFe?` @deprecated(reason: ${yu({kind:Ct.STRING,value:e})})`:" @deprecated"}function o9n(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${yu({kind:Ct.STRING,value:e.specifiedByURL})})`}function X_(e,t="",n=!0){const{description:i}=e;if(i==null)return"";const r=yu({kind:Ct.STRING,value:i,block:Y4n(i)});return(t&&!n?`
`+t:t)+r.replace(/\n/g,`
`+t)+`
`}var s9n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/utilities/printSchema.mjs"(){qd(),dT(),n3e(),sc(),BC(),Uc(),jC(),EN(),SN(),m3e()}}),a9n=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/utilities/index.mjs"(){j8n(),V8n(),q8n(),s9n(),AN(),m3e(),qBn()}}),bd=se({"../node_modules/.pnpm/graphql@16.13.1/node_modules/graphql/index.mjs"(){R8n(),F8n(),a9n()}});function l9n(e,t){const n=e;typeof n.vscodeWindowId!="number"&&Object.defineProperty(n,"vscodeWindowId",{get:()=>t})}var la,wg=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/window.js"(){la=window}});function vVt(e,t,n){typeof t=="string"&&(t=e.matchMedia(t)),t.addEventListener("change",n)}function c9n(e){return yVt.INSTANCE.getZoomFactor(e)}function u9n(){return kH}var yVt,LP,B0,iL,j6,Qx,T3e,IFe,kH,zv=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/browser.js"(){var e;if(wg(),yVt=(e=class{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(n){return this.mapWindowIdToZoomFactor.get(this.getWindowId(n))??1}getWindowId(n){return n.vscodeWindowId}},e.INSTANCE=new e,e),LP=navigator.userAgent,B0=LP.indexOf("Firefox")>=0,iL=LP.indexOf("AppleWebKit")>=0,j6=LP.indexOf("Chrome")>=0,Qx=!j6&&LP.indexOf("Safari")>=0,T3e=!j6&&!Qx&&iL,LP.indexOf("Electron/")>=0,IFe=LP.indexOf("Android")>=0,kH=!1,typeof la.matchMedia=="function"){const t=la.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),n=la.matchMedia("(display-mode: fullscreen)");kH=t.matches,vVt(la,t,({matches:i})=>{kH&&n.matches||(kH=i)})}}}),Ppe,k3e=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/canIUse.js"(){zv(),wg(),Xr(),Ppe={clipboard:{writeText:D_||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:D_||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:D_||u9n()?0:navigator.keyboard||Qx?1:2,touch:"ontouchstart"in la||navigator.maxTouchPoints>0,pointerEvents:la.PointerEvent&&("ontouchstart"in la||navigator.maxTouchPoints>0)}}});function LFe(e,t){if(typeof e=="number"){if(e===0)return null;const n=(e&65535)>>>0,i=(e&4294901760)>>>16;return i!==0?new Poe([JX(n,t),JX(i,t)]):new Poe([JX(n,t)])}else{const n=[];for(let i=0;i<e.length;i++)n.push(JX(e[i],t));return new Poe(n)}}function JX(e,t){const n=!!(e&2048),i=!!(e&256),r=t===2?i:n,o=!!(e&1024),s=!!(e&512),a=t===2?n:i,l=e&255;return new AL(r,o,s,a,l)}var AL,Poe,bVt,_Vt,C7=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/keybindings.js"(){Vi(),AL=class wVt{constructor(t,n,i,r,o){this.ctrlKey=t,this.shiftKey=n,this.altKey=i,this.metaKey=r,this.keyCode=o}equals(t){return t instanceof wVt&&this.ctrlKey===t.ctrlKey&&this.shiftKey===t.shiftKey&&this.altKey===t.altKey&&this.metaKey===t.metaKey&&this.keyCode===t.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}},Poe=class{constructor(e){if(e.length===0)throw Gy("chords");this.chords=e}},bVt=class{constructor(e,t,n,i,r,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyLabel=r,this.keyAriaLabel=o}},_Vt=class{}}});function d9n(e){if(e.charCode){const n=String.fromCharCode(e.charCode).toUpperCase();return KA.fromString(n)}const t=e.keyCode;if(t===3)return 7;if(B0)switch(t){case 59:return 85;case 60:if(Wf)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(xo)return 57;break}else if(iL){if(xo&&t===93)return 57;if(!xo&&t===92)return 57}return TRe[t]||0}var lst,cst,ust,dst,Sa,mf=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/keyboardEvent.js"(){zv(),wb(),C7(),Xr(),lst=xo?256:2048,cst=512,ust=1024,dst=xo?2048:256,Sa=class{constructor(e){this._standardKeyboardEventBrand=!0;const t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=t.getModifierState?.("AltGraph"),this.keyCode=d9n(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=lst),this.altKey&&(t|=cst),this.shiftKey&&(t|=ust),this.metaKey&&(t|=dst),t|=e,t}_computeKeyCodeChord(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new AL(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}}});function h9n(e){if(!e.parent||e.parent===e)return null;try{const t=e.location,n=e.parent.location;if(t.origin!=="null"&&n.origin!=="null"&&t.origin!==n.origin)return null}catch{return null}return e.parent}var pwe,CVt,f9n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/iframe.js"(){pwe=new WeakMap,CVt=class{static getSameOriginWindowChain(e){let t=pwe.get(e);if(!t){t=[],pwe.set(e,t);let n=e,i;do i=h9n(n),i?t.push({window:new WeakRef(n),iframeElement:n.frameElement||null}):t.push({window:new WeakRef(n),iframeElement:null}),n=i;while(n)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let n=0,i=0;const r=this.getSameOriginWindowChain(e);for(const o of r){const s=o.window.deref();if(n+=s?.scrollY??0,i+=s?.scrollX??0,s===t||!o.iframeElement)break;const a=o.iframeElement.getBoundingClientRect();n+=a.top,i+=a.left}return{top:n,left:i}}}}}),Vy,DL,Cb=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/mouseEvent.js"(){zv(),f9n(),Xr(),Vy=class{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=t.button===0,this.middleButton=t.button===1,this.rightButton=t.button===2,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,t.type==="dblclick"&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,typeof t.pageX=="number"?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);const n=CVt.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=n.left,this.posy-=n.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}},DL=class{constructor(e,t=0,n=0){this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=n,this.deltaX=t;let i=!1;if(j6){const r=navigator.userAgent.match(/Chrome\/(\d+)/);i=(r?parseInt(r[1]):123)<=122}if(e){const r=e,o=e,s=e.view?.devicePixelRatio||1;if(typeof r.wheelDeltaY<"u")i?this.deltaY=r.wheelDeltaY/(120*s):this.deltaY=r.wheelDeltaY/120;else if(typeof o.VERTICAL_AXIS<"u"&&o.axis===o.VERTICAL_AXIS)this.deltaY=-o.detail/3;else if(e.type==="wheel"){const a=e;a.deltaMode===a.DOM_DELTA_LINE?B0&&!xo?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof r.wheelDeltaX<"u")Qx&&Ch?this.deltaX=-(r.wheelDeltaX/120):i?this.deltaX=r.wheelDeltaX/(120*s):this.deltaX=r.wheelDeltaX/120;else if(typeof o.HORIZONTAL_AXIS<"u"&&o.axis===o.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){const a=e;a.deltaMode===a.DOM_DELTA_LINE?B0&&!xo?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(i?this.deltaY=e.wheelDelta/(120*s):this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent?.preventDefault()}stopPropagation(){this.browserEvent?.stopPropagation()}}}}),I3e,SVt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/symbols.js"(){I3e=Symbol("MicrotaskDelay")}});function NFe(e){return!!e&&typeof e.then=="function"}function vd(e){const t=new bl,n=e(t.token),i=new Promise((r,o)=>{const s=t.token.onCancellationRequested(()=>{s.dispose(),o(new rb)});Promise.resolve(n).then(a=>{s.dispose(),t.dispose(),r(a)},a=>{s.dispose(),t.dispose(),o(a)})});return new class{cancel(){t.cancel(),t.dispose()}then(r,o){return i.then(r,o)}catch(r){return this.then(void 0,r)}finally(r){return i.finally(r)}}}function UK(e,t,n){return new Promise((i,r)=>{const o=t.onCancellationRequested(()=>{o.dispose(),i(n)});e.then(i,r).finally(()=>o.dispose())})}function FD(e,t){return t?new Promise((n,i)=>{const r=setTimeout(()=>{o.dispose(),n()},e),o=t.onCancellationRequested(()=>{clearTimeout(r),o.dispose(),i(new rb)})}):vd(n=>FD(e,n))}function TL(e,t=0,n){const i=setTimeout(()=>{e(),n&&r.dispose()},t),r=zi(()=>{clearTimeout(i),n?.deleteAndLeak(r)});return n?.add(r),r}function L3e(e,t=i=>!!i,n=null){let i=0;const r=e.length,o=()=>{if(i>=r)return Promise.resolve(n);const s=e[i++];return Promise.resolve(s()).then(l=>t(l)?Promise.resolve(l):o())};return o()}function p9n(e){const t=new bl,n=e(t.token);return new AVt(t,async i=>{const r=t.token.onCancellationRequested(()=>{r.dispose(),t.dispose(),i.reject(new rb)});try{for await(const o of n){if(t.token.isCancellationRequested)return;i.emitOne(o)}r.dispose(),t.dispose()}catch(o){r.dispose(),t.dispose(),i.reject(o)}})}var hst,fst,pst,j0,N3e,Sb,Mpe,Gs,xVt,IH,PFe,EVt,K2,MFe,Hy,AVt,fr=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/async.js"(){var e;Ho(),Vi(),Un(),Nt(),Xr(),SVt(),hst=class{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(t){if(this.isDisposed)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=t,!this.queuedPromise){const n=()=>{if(this.queuedPromise=null,this.isDisposed)return;const i=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,i};this.queuedPromise=new Promise(i=>{this.activePromise.then(n,n).then(i)})}return new Promise((n,i)=>{this.queuedPromise.then(n,i)})}return this.activePromise=t(),new Promise((n,i)=>{this.activePromise.then(r=>{this.activePromise=null,n(r)},r=>{this.activePromise=null,i(r)})})}dispose(){this.isDisposed=!0}},fst=(t,n)=>{let i=!0;const r=setTimeout(()=>{i=!1,n()},t);return{isTriggered:()=>i,dispose:()=>{clearTimeout(r),i=!1}}},pst=t=>{let n=!0;return queueMicrotask(()=>{n&&(n=!1,t())}),{isTriggered:()=>n,dispose:()=>{n=!1}}},j0=class{constructor(t){this.defaultDelay=t,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(t,n=this.defaultDelay){this.task=t,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((r,o)=>{this.doResolve=r,this.doReject=o}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const r=this.task;return this.task=null,r()}}));const i=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=n===I3e?pst(i):fst(n,i),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new rb),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}},N3e=class{constructor(t){this.delayer=new j0(t),this.throttler=new hst}trigger(t,n){return this.delayer.trigger(()=>this.throttler.queue(t),n)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}},Sb=class{constructor(t,n){this._isDisposed=!1,this._token=-1,typeof t=="function"&&typeof n=="number"&&this.setIfNotSet(t,n)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(t,n){if(this._isDisposed)throw new ys("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout(()=>{this._token=-1,t()},n)}setIfNotSet(t,n){if(this._isDisposed)throw new ys("Calling 'setIfNotSet' on a disposed TimeoutTimer");this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,t()},n))}},Mpe=class{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(t,n,i=globalThis){if(this.isDisposed)throw new ys("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const r=i.setInterval(()=>{t()},n);this.disposable=zi(()=>{i.clearInterval(r),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}},Gs=class{constructor(t,n){this.timeoutToken=-1,this.runner=t,this.timeout=n,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(t=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,t)}get delay(){return this.timeout}set delay(t){this.timeout=t}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}},(function(){typeof globalThis.requestIdleCallback!="function"||typeof globalThis.cancelIdleCallback!="function"?IH=(t,n)=>{SVe(()=>{if(i)return;const r=Date.now()+15;n(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,r-Date.now())}}))});let i=!1;return{dispose(){i||(i=!0)}}}:IH=(t,n,i)=>{const r=t.requestIdleCallback(n,typeof i=="number"?{timeout:i}:void 0);let o=!1;return{dispose(){o||(o=!0,t.cancelIdleCallback(r))}}},xVt=t=>IH(globalThis,t)})(),PFe=class{constructor(t,n){this._didRun=!1,this._executor=()=>{try{this._value=n()}catch(i){this._error=i}finally{this._didRun=!0}},this._handle=IH(t,()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}},EVt=class extends PFe{constructor(t){super(globalThis,t)}},K2=class{get isRejected(){return this.outcome?.outcome===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((t,n)=>{this.completeCallback=t,this.errorCallback=n})}complete(t){return new Promise(n=>{this.completeCallback(t),this.outcome={outcome:0,value:t},n()})}error(t){return new Promise(n=>{this.errorCallback(t),this.outcome={outcome:1,value:t},n()})}cancel(){return this.error(new rb)}},(function(t){async function n(r){let o;const s=await Promise.all(r.map(a=>a.then(l=>l,l=>{o||(o=l)})));if(typeof o<"u")throw o;return s}t.settled=n;function i(r){return new Promise(async(o,s)=>{try{await r(o,s)}catch(a){s(a)}})}t.withAsyncBody=i})(MFe||(MFe={})),Hy=(e=class{static fromArray(n){return new e(i=>{i.emitMany(n)})}static fromPromise(n){return new e(async i=>{i.emitMany(await n)})}static fromPromises(n){return new e(async i=>{await Promise.all(n.map(async r=>i.emitOne(await r)))})}static merge(n){return new e(async i=>{await Promise.all(n.map(async r=>{for await(const o of r)i.emitOne(o)}))})}constructor(n,i){this._state=0,this._results=[],this._error=null,this._onReturn=i,this._onStateChanged=new bt,queueMicrotask(async()=>{const r={emitOne:o=>this.emitOne(o),emitMany:o=>this.emitMany(o),reject:o=>this.reject(o)};try{await Promise.resolve(n(r)),this.resolve()}catch(o){this.reject(o)}finally{r.emitOne=void 0,r.emitMany=void 0,r.reject=void 0}})}[Symbol.asyncIterator](){let n=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(n<this._results.length)return{done:!1,value:this._results[n++]};if(this._state===1)return{done:!0,value:void 0};await On.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(n,i){return new e(async r=>{for await(const o of n)r.emitOne(i(o))})}map(n){return e.map(this,n)}static filter(n,i){return new e(async r=>{for await(const o of n)i(o)&&r.emitOne(o)})}filter(n){return e.filter(this,n)}static coalesce(n){return e.filter(n,i=>!!i)}coalesce(){return e.coalesce(this)}static async toPromise(n){const i=[];for await(const r of n)i.push(r);return i}toPromise(){return e.toPromise(this)}emitOne(n){this._state===0&&(this._results.push(n),this._onStateChanged.fire())}emitMany(n){this._state===0&&(this._results=this._results.concat(n),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(n){this._state===0&&(this._state=2,this._error=n,this._onStateChanged.fire())}},e.EMPTY=e.fromArray([]),e),AVt=class extends Hy{constructor(t,n){super(n),this._source=t}cancel(){this._source.cancel()}}}});function by(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return Moe(e,t,i)}}function g9n(e){return function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Ooe(e,n)}}function ka(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:LU;OFe&&OFe(e,null);let i=t.length;for(;i--;){let r=t[i];if(typeof r=="string"){const o=n(r);o!==r&&(TVt(t)||(t[i]=o),r=o)}e[r]=!0}return e}function m9n(e){for(let t=0;t<e.length;t++)c_(e,t)||(e[t]=null);return e}function GM(e){const t=M3e(null);for(const[n,i]of P3e(e))c_(e,n)&&(Array.isArray(i)?t[n]=m9n(i):i&&typeof i=="object"&&i.constructor===Object?t[n]=GM(i):t[n]=i);return t}function Pz(e,t){for(;e!==null;){const i=IVt(e,t);if(i){if(i.get)return by(i.get);if(typeof i.value=="function")return by(i.value)}e=kVt(e)}function n(){return null}return n}function DVt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:OVt();const t=Bt=>DVt(Bt);if(t.version="3.1.7",t.removed=[],!e||!e.document||e.document.nodeType!==wB.document)return t.isSupported=!1,t;let{document:n}=e;const i=n,r=i.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:f}=e,p=l.prototype,g=Pz(p,"cloneNode"),m=Pz(p,"remove"),v=Pz(p,"nextSibling"),y=Pz(p,"childNodes"),b=Pz(p,"parentNode");if(typeof s=="function"){const Bt=n.createElement("template");Bt.content&&Bt.content.ownerDocument&&(n=Bt.content.ownerDocument)}let w,E="";const{implementation:A,createNodeIterator:D,createDocumentFragment:T,getElementsByTagName:M}=n,{importNode:P}=i;let F={};t.isSupported=typeof P3e=="function"&&typeof b=="function"&&A&&A.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:N,ERB_EXPR:j,TMPLIT_EXPR:W,DATA_ATTR:J,ARIA_ATTR:ee,IS_SCRIPT_OR_DATA:Q,ATTR_WHITESPACE:H,CUSTOM_ELEMENT:q}=UFe;let{IS_ALLOWED_URI:le}=UFe,Y=null;const G=ka({},[...BFe,...Foe,...Boe,...joe,...jFe]);let pe=null;const U=ka({},[...zFe,...zoe,...VFe,...NH]);let K=Object.seal(M3e(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,ce=null,de=!0,oe=!0,me=!1,Ce=!0,Se=!1,De=!0,Me=!1,qe=!1,$=!1,he=!1,Ie=!1,Be=!1,ze=!0,Ye=!1;const it="user-content-";let ft=!0,ct=!1,et={},ut=null;const wt=ka({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let pt=null;const _t=ka({},["audio","video","img","source","image","track"]);let Rt=null;const Yt=ka({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ut="http://www.w3.org/1998/Math/MathML",Gt="http://www.w3.org/2000/svg",Kt="http://www.w3.org/1999/xhtml";let ln=Kt,pn=!1,wn=null;const Mn=ka({},[Ut,Gt,Kt],Roe);let Yn=null;const di=["application/xhtml+xml","text/html"],Li="text/html";let ke=null,Z=null;const ne=n.createElement("form"),V=function(Ue){return Ue instanceof RegExp||Ue instanceof Function},re=function(){let Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Z&&Z===Ue)){if((!Ue||typeof Ue!="object")&&(Ue={}),Ue=GM(Ue),Yn=di.indexOf(Ue.PARSER_MEDIA_TYPE)===-1?Li:Ue.PARSER_MEDIA_TYPE,ke=Yn==="application/xhtml+xml"?Roe:LU,Y=c_(Ue,"ALLOWED_TAGS")?ka({},Ue.ALLOWED_TAGS,ke):G,pe=c_(Ue,"ALLOWED_ATTR")?ka({},Ue.ALLOWED_ATTR,ke):U,wn=c_(Ue,"ALLOWED_NAMESPACES")?ka({},Ue.ALLOWED_NAMESPACES,Roe):Mn,Rt=c_(Ue,"ADD_URI_SAFE_ATTR")?ka(GM(Yt),Ue.ADD_URI_SAFE_ATTR,ke):Yt,pt=c_(Ue,"ADD_DATA_URI_TAGS")?ka(GM(_t),Ue.ADD_DATA_URI_TAGS,ke):_t,ut=c_(Ue,"FORBID_CONTENTS")?ka({},Ue.FORBID_CONTENTS,ke):wt,ie=c_(Ue,"FORBID_TAGS")?ka({},Ue.FORBID_TAGS,ke):{},ce=c_(Ue,"FORBID_ATTR")?ka({},Ue.FORBID_ATTR,ke):{},et=c_(Ue,"USE_PROFILES")?Ue.USE_PROFILES:!1,de=Ue.ALLOW_ARIA_ATTR!==!1,oe=Ue.ALLOW_DATA_ATTR!==!1,me=Ue.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=Ue.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Se=Ue.SAFE_FOR_TEMPLATES||!1,De=Ue.SAFE_FOR_XML!==!1,Me=Ue.WHOLE_DOCUMENT||!1,he=Ue.RETURN_DOM||!1,Ie=Ue.RETURN_DOM_FRAGMENT||!1,Be=Ue.RETURN_TRUSTED_TYPE||!1,$=Ue.FORCE_BODY||!1,ze=Ue.SANITIZE_DOM!==!1,Ye=Ue.SANITIZE_NAMED_PROPS||!1,ft=Ue.KEEP_CONTENT!==!1,ct=Ue.IN_PLACE||!1,le=Ue.ALLOWED_URI_REGEXP||HFe,ln=Ue.NAMESPACE||Kt,K=Ue.CUSTOM_ELEMENT_HANDLING||{},Ue.CUSTOM_ELEMENT_HANDLING&&V(Ue.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(K.tagNameCheck=Ue.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ue.CUSTOM_ELEMENT_HANDLING&&V(Ue.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(K.attributeNameCheck=Ue.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ue.CUSTOM_ELEMENT_HANDLING&&typeof Ue.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(K.allowCustomizedBuiltInElements=Ue.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Se&&(oe=!1),Ie&&(he=!0),et&&(Y=ka({},jFe),pe=[],et.html===!0&&(ka(Y,BFe),ka(pe,zFe)),et.svg===!0&&(ka(Y,Foe),ka(pe,zoe),ka(pe,NH)),et.svgFilters===!0&&(ka(Y,Boe),ka(pe,zoe),ka(pe,NH)),et.mathMl===!0&&(ka(Y,joe),ka(pe,VFe),ka(pe,NH))),Ue.ADD_TAGS&&(Y===G&&(Y=GM(Y)),ka(Y,Ue.ADD_TAGS,ke)),Ue.ADD_ATTR&&(pe===U&&(pe=GM(pe)),ka(pe,Ue.ADD_ATTR,ke)),Ue.ADD_URI_SAFE_ATTR&&ka(Rt,Ue.ADD_URI_SAFE_ATTR,ke),Ue.FORBID_CONTENTS&&(ut===wt&&(ut=GM(ut)),ka(ut,Ue.FORBID_CONTENTS,ke)),ft&&(Y["#text"]=!0),Me&&ka(Y,["html","head","body"]),Y.table&&(ka(Y,["tbody"]),delete ie.tbody),Ue.TRUSTED_TYPES_POLICY){if(typeof Ue.TRUSTED_TYPES_POLICY.createHTML!="function")throw _B('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Ue.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw _B('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=Ue.TRUSTED_TYPES_POLICY,E=w.createHTML("")}else w===void 0&&(w=RVt(f,r)),w!==null&&typeof E=="string"&&(E=w.createHTML(""));qg&&qg(Ue),Z=Ue}},ge=ka({},["mi","mo","mn","ms","mtext"]),we=ka({},["annotation-xml"]),ve=ka({},["title","style","font","a","script"]),_e=ka({},[...Foe,...Boe,...PVt]),Ee=ka({},[...joe,...MVt]),Le=function(Ue){let Lt=b(Ue);(!Lt||!Lt.tagName)&&(Lt={namespaceURI:ln,tagName:"template"});const at=LU(Ue.tagName),cn=LU(Lt.tagName);return wn[Ue.namespaceURI]?Ue.namespaceURI===Gt?Lt.namespaceURI===Kt?at==="svg":Lt.namespaceURI===Ut?at==="svg"&&(cn==="annotation-xml"||ge[cn]):!!_e[at]:Ue.namespaceURI===Ut?Lt.namespaceURI===Kt?at==="math":Lt.namespaceURI===Gt?at==="math"&&we[cn]:!!Ee[at]:Ue.namespaceURI===Kt?Lt.namespaceURI===Gt&&!we[cn]||Lt.namespaceURI===Ut&&!ge[cn]?!1:!Ee[at]&&(ve[at]||!_e[at]):!!(Yn==="application/xhtml+xml"&&wn[Ue.namespaceURI]):!1},be=function(Ue){yB(t.removed,{element:Ue});try{b(Ue).removeChild(Ue)}catch{m(Ue)}},Fe=function(Ue,Lt){try{yB(t.removed,{attribute:Lt.getAttributeNode(Ue),from:Lt})}catch{yB(t.removed,{attribute:null,from:Lt})}if(Lt.removeAttribute(Ue),Ue==="is"&&!pe[Ue])if(he||Ie)try{be(Lt)}catch{}else try{Lt.setAttribute(Ue,"")}catch{}},Ze=function(Ue){let Lt=null,at=null;if($)Ue="<remove></remove>"+Ue;else{const Tn=FFe(Ue,/^[\r\n\t ]+/);at=Tn&&Tn[0]}Yn==="application/xhtml+xml"&&ln===Kt&&(Ue='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Ue+"</body></html>");const cn=w?w.createHTML(Ue):Ue;if(ln===Kt)try{Lt=new h().parseFromString(cn,Yn)}catch{}if(!Lt||!Lt.documentElement){Lt=A.createDocument(ln,"template",null);try{Lt.documentElement.innerHTML=pn?E:cn}catch{}}const Bn=Lt.body||Lt.documentElement;return Ue&&at&&Bn.insertBefore(n.createTextNode(at),Bn.childNodes[0]||null),ln===Kt?M.call(Lt,Me?"html":"body")[0]:Me?Lt.documentElement:Bn},Ve=function(Ue){return D.call(Ue.ownerDocument||Ue,Ue,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},dt=function(Ue){return Ue instanceof d&&(typeof Ue.nodeName!="string"||typeof Ue.textContent!="string"||typeof Ue.removeChild!="function"||!(Ue.attributes instanceof u)||typeof Ue.removeAttribute!="function"||typeof Ue.setAttribute!="function"||typeof Ue.namespaceURI!="string"||typeof Ue.insertBefore!="function"||typeof Ue.hasChildNodes!="function")},Vt=function(Ue){return typeof a=="function"&&Ue instanceof a},Xe=function(Ue,Lt,at){F[Ue]&&LH(F[Ue],cn=>{cn.call(t,Lt,at,Z)})},Ht=function(Ue){let Lt=null;if(Xe("beforeSanitizeElements",Ue,null),dt(Ue))return be(Ue),!0;const at=ke(Ue.nodeName);if(Xe("uponSanitizeElement",Ue,{tagName:at,allowedTags:Y}),Ue.hasChildNodes()&&!Vt(Ue.firstElementChild)&&Vg(/<[/\w]/g,Ue.innerHTML)&&Vg(/<[/\w]/g,Ue.textContent)||Ue.nodeType===wB.progressingInstruction||De&&Ue.nodeType===wB.comment&&Vg(/<[/\w]/g,Ue.data))return be(Ue),!0;if(!Y[at]||ie[at]){if(!ie[at]&&Dt(at)&&(K.tagNameCheck instanceof RegExp&&Vg(K.tagNameCheck,at)||K.tagNameCheck instanceof Function&&K.tagNameCheck(at)))return!1;if(ft&&!ut[at]){const cn=b(Ue)||Ue.parentNode,Bn=y(Ue)||Ue.childNodes;if(Bn&&cn){const Tn=Bn.length;for(let xi=Tn-1;xi>=0;--xi){const Zi=g(Bn[xi],!0);Zi.__removalCount=(Ue.__removalCount||0)+1,cn.insertBefore(Zi,v(Ue))}}}return be(Ue),!0}return Ue instanceof l&&!Le(Ue)||(at==="noscript"||at==="noembed"||at==="noframes")&&Vg(/<\/no(script|embed|frames)/i,Ue.innerHTML)?(be(Ue),!0):(Se&&Ue.nodeType===wB.text&&(Lt=Ue.textContent,LH([N,j,W],cn=>{Lt=bB(Lt,cn," ")}),Ue.textContent!==Lt&&(yB(t.removed,{element:Ue.cloneNode()}),Ue.textContent=Lt)),Xe("afterSanitizeElements",Ue,null),!1)},Qt=function(Ue,Lt,at){if(ze&&(Lt==="id"||Lt==="name")&&(at in n||at in ne))return!1;if(!(oe&&!ce[Lt]&&Vg(J,Lt))){if(!(de&&Vg(ee,Lt))){if(!pe[Lt]||ce[Lt]){if(!(Dt(Ue)&&(K.tagNameCheck instanceof RegExp&&Vg(K.tagNameCheck,Ue)||K.tagNameCheck instanceof Function&&K.tagNameCheck(Ue))&&(K.attributeNameCheck instanceof RegExp&&Vg(K.attributeNameCheck,Lt)||K.attributeNameCheck instanceof Function&&K.attributeNameCheck(Lt))||Lt==="is"&&K.allowCustomizedBuiltInElements&&(K.tagNameCheck instanceof RegExp&&Vg(K.tagNameCheck,at)||K.tagNameCheck instanceof Function&&K.tagNameCheck(at))))return!1}else if(!Rt[Lt]){if(!Vg(le,bB(at,H,""))){if(!((Lt==="src"||Lt==="xlink:href"||Lt==="href")&&Ue!=="script"&&LVt(at,"data:")===0&&pt[Ue])){if(!(me&&!Vg(Q,bB(at,H,"")))){if(at)return!1}}}}}}return!0},Dt=function(Ue){return Ue!=="annotation-xml"&&FFe(Ue,q)},Tt=function(Ue){Xe("beforeSanitizeAttributes",Ue,null);const{attributes:Lt}=Ue;if(!Lt)return;const at={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};let cn=Lt.length;for(;cn--;){const Bn=Lt[cn],{name:Tn,namespaceURI:xi,value:Zi}=Bn,dn=ke(Tn);let fi=Tn==="value"?Zi:NVt(Zi);if(at.attrName=dn,at.attrValue=fi,at.keepAttr=!0,at.forceKeepAttr=void 0,Xe("uponSanitizeAttribute",Ue,at),fi=at.attrValue,at.forceKeepAttr||(Fe(Tn,Ue),!at.keepAttr))continue;if(!Ce&&Vg(/\/>/i,fi)){Fe(Tn,Ue);continue}Se&&LH([N,j,W],Wo=>{fi=bB(fi,Wo," ")});const Fr=ke(Ue.nodeName);if(Qt(Fr,dn,fi)){if(Ye&&(dn==="id"||dn==="name")&&(Fe(Tn,Ue),fi=it+fi),De&&Vg(/((--!?|])>)|<\/(style|title)/i,fi)){Fe(Tn,Ue);continue}if(w&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!xi)switch(f.getAttributeType(Fr,dn)){case"TrustedHTML":{fi=w.createHTML(fi);break}case"TrustedScriptURL":{fi=w.createScriptURL(fi);break}}try{xi?Ue.setAttributeNS(xi,Tn,fi):Ue.setAttribute(Tn,fi),dt(Ue)?be(Ue):RFe(t.removed)}catch{}}}Xe("afterSanitizeAttributes",Ue,null)},en=function Bt(Ue){let Lt=null;const at=Ve(Ue);for(Xe("beforeSanitizeShadowDOM",Ue,null);Lt=at.nextNode();)Xe("uponSanitizeShadowNode",Lt,null),!Ht(Lt)&&(Lt.content instanceof o&&Bt(Lt.content),Tt(Lt));Xe("afterSanitizeShadowDOM",Ue,null)};return t.sanitize=function(Bt){let Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Lt=null,at=null,cn=null,Bn=null;if(pn=!Bt,pn&&(Bt="\x3C!-->"),typeof Bt!="string"&&!Vt(Bt))if(typeof Bt.toString=="function"){if(Bt=Bt.toString(),typeof Bt!="string")throw _B("dirty is not a string, aborting")}else throw _B("toString is not a function");if(!t.isSupported)return Bt;if(qe||re(Ue),t.removed=[],typeof Bt=="string"&&(ct=!1),ct){if(Bt.nodeName){const Zi=ke(Bt.nodeName);if(!Y[Zi]||ie[Zi])throw _B("root node is forbidden and cannot be sanitized in-place")}}else if(Bt instanceof a)Lt=Ze("\x3C!---->"),at=Lt.ownerDocument.importNode(Bt,!0),at.nodeType===wB.element&&at.nodeName==="BODY"||at.nodeName==="HTML"?Lt=at:Lt.appendChild(at);else{if(!he&&!Se&&!Me&&Bt.indexOf("<")===-1)return w&&Be?w.createHTML(Bt):Bt;if(Lt=Ze(Bt),!Lt)return he?null:Be?E:""}Lt&&$&&be(Lt.firstChild);const Tn=Ve(ct?Bt:Lt);for(;cn=Tn.nextNode();)Ht(cn)||(cn.content instanceof o&&en(cn.content),Tt(cn));if(ct)return Bt;if(he){if(Ie)for(Bn=T.call(Lt.ownerDocument);Lt.firstChild;)Bn.appendChild(Lt.firstChild);else Bn=Lt;return(pe.shadowroot||pe.shadowrootmode)&&(Bn=P.call(i,Bn,!0)),Bn}let xi=Me?Lt.outerHTML:Lt.innerHTML;return Me&&Y["!doctype"]&&Lt.ownerDocument&&Lt.ownerDocument.doctype&&Lt.ownerDocument.doctype.name&&Vg(WFe,Lt.ownerDocument.doctype.name)&&(xi="<!DOCTYPE "+Lt.ownerDocument.doctype.name+`>
`+xi),Se&&LH([N,j,W],Zi=>{xi=bB(xi,Zi," ")}),w&&Be?w.createHTML(xi):xi},t.setConfig=function(){let Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};re(Bt),qe=!0},t.clearConfig=function(){Z=null,qe=!1},t.isValidAttribute=function(Bt,Ue,Lt){Z||re({});const at=ke(Bt),cn=ke(Ue);return Qt(at,cn,Lt)},t.addHook=function(Bt,Ue){typeof Ue=="function"&&(F[Bt]=F[Bt]||[],yB(F[Bt],Ue))},t.removeHook=function(Bt){if(F[Bt])return RFe(F[Bt])},t.removeHooks=function(Bt){F[Bt]&&(F[Bt]=[])},t.removeAllHooks=function(){F={}},t}var P3e,OFe,TVt,kVt,IVt,qg,hy,M3e,Moe,Ooe,LH,RFe,yB,LU,Roe,FFe,bB,LVt,NVt,c_,Vg,_B,BFe,Foe,Boe,PVt,joe,MVt,jFe,zFe,zoe,VFe,NH,gst,mst,vst,yst,bst,HFe,_st,wst,WFe,Cst,UFe,wB,OVt,RVt,Kw,O3e,R3e,F3e,B3e=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/dompurify/dompurify.js"(){({entries:P3e,setPrototypeOf:OFe,isFrozen:TVt,getPrototypeOf:kVt,getOwnPropertyDescriptor:IVt}=Object),{freeze:qg,seal:hy,create:M3e}=Object,{apply:Moe,construct:Ooe}=typeof Reflect<"u"&&Reflect,qg||(qg=function(t){return t}),hy||(hy=function(t){return t}),Moe||(Moe=function(t,n,i){return t.apply(n,i)}),Ooe||(Ooe=function(t,n){return new t(...n)}),LH=by(Array.prototype.forEach),RFe=by(Array.prototype.pop),yB=by(Array.prototype.push),LU=by(String.prototype.toLowerCase),Roe=by(String.prototype.toString),FFe=by(String.prototype.match),bB=by(String.prototype.replace),LVt=by(String.prototype.indexOf),NVt=by(String.prototype.trim),c_=by(Object.prototype.hasOwnProperty),Vg=by(RegExp.prototype.test),_B=g9n(TypeError),BFe=qg(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Foe=qg(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Boe=qg(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),PVt=qg(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),joe=qg(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),MVt=qg(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),jFe=qg(["#text"]),zFe=qg(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),zoe=qg(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),VFe=qg(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),NH=qg(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),gst=hy(/\{\{[\w\W]*|[\w\W]*\}\}/gm),mst=hy(/<%[\w\W]*|[\w\W]*%>/gm),vst=hy(/\${[\w\W]*}/gm),yst=hy(/^data-[\-\w.\u00B7-\uFFFF]/),bst=hy(/^aria-[\-\w]+$/),HFe=hy(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_st=hy(/^(?:\w+script|data):/i),wst=hy(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),WFe=hy(/^html$/i),Cst=hy(/^[a-z][.\w]*(-[.\w]+)+$/i),UFe=Object.freeze({__proto__:null,MUSTACHE_EXPR:gst,ERB_EXPR:mst,TMPLIT_EXPR:vst,DATA_ATTR:yst,ARIA_ATTR:bst,IS_ALLOWED_URI:HFe,IS_SCRIPT_OR_DATA:_st,ATTR_WHITESPACE:wst,DOCTYPE_NAME:WFe,CUSTOM_ELEMENT:Cst}),wB={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},OVt=function(){return typeof window>"u"?null:window},RVt=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(i=n.getAttribute(r));const o="dompurify"+(i?"#"+i:"");try{return t.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},Kw=DVt(),Kw.version,Kw.isSupported,O3e=Kw.sanitize,Kw.setConfig,Kw.clearConfig,Kw.isValidAttribute,R3e=Kw.addHook,F3e=Kw.removeHook,Kw.removeHooks,Kw.removeAllHooks}});function Sst(e){return e}var FVt,$Fe,BVt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/cache.js"(){FVt=class{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,typeof e=="function"?(this._fn=e,this._computeKey=Sst):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}},$Fe=class{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,typeof e=="function"?(this._fn=e,this._computeKey=Sst):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const n=this._fn(e);return this._map.set(e,n),this._map2.set(t,n),n}}}}),lm,wE=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/lazy.js"(){lm=class{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}}});function jVt(e){return!e||typeof e!="string"?!0:e.trim().length===0}function $R(e,...t){return t.length===0?e:e.replace($Vt,function(n,i){const r=parseInt(i,10);return isNaN(r)||r<0||r>=t.length?n:t[r]})}function v9n(e){return e.replace(/[<>"'&]/g,t=>{switch(t){case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case"'":return"&apos;";case"&":return"&amp;"}return t})}function NU(e){return e.replace(/[<>&]/g,function(t){switch(t){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return t}})}function z0(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function y9n(e,t=" "){const n=$K(e,t);return zVt(n,t)}function $K(e,t){if(!e||!t)return e;const n=t.length;if(n===0||e.length===0)return e;let i=0;for(;e.indexOf(t,i)===i;)i=i+n;return e.substring(i)}function zVt(e,t){if(!e||!t)return e;const n=t.length,i=e.length;if(n===0||i===0)return e;let r=i,o=-1;for(;o=e.lastIndexOf(t,r-1),!(o===-1||o+n!==r);){if(o===0)return"";r=o}return e.substring(0,r)}function b9n(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function _9n(e){return e.replace(/\*/g,"")}function VVt(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=z0(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e=e+"\\b"));let i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function w9n(e){return e.source==="^"||e.source==="^$"||e.source==="$"||e.source==="^\\s*$"?!1:!!(e.exec("")&&e.lastIndex===0)}function Zx(e){return e.split(/\r\n|\r|\n/)}function C9n(e){const t=[],n=e.split(/(\r\n|\r|\n)/);for(let i=0;i<Math.ceil(n.length/2);i++)t.push(n[2*i]+(n[2*i+1]??""));return t}function Cp(e){for(let t=0,n=e.length;t<n;t++){const i=e.charCodeAt(t);if(i!==32&&i!==9)return t}return-1}function Ca(e,t=0,n=e.length){for(let i=t;i<n;i++){const r=e.charCodeAt(i);if(r!==32&&r!==9)return e.substring(t,i)}return e.substring(t,n)}function iC(e,t=e.length-1){for(let n=t;n>=0;n--){const i=e.charCodeAt(n);if(i!==32&&i!==9)return n}return-1}function Nq(e,t){return e<t?-1:e>t?1:0}function qFe(e,t,n=0,i=e.length,r=0,o=t.length){for(;n<i&&r<o;n++,r++){const l=e.charCodeAt(n),c=t.charCodeAt(r);if(l<c)return-1;if(l>c)return 1}const s=i-n,a=o-r;return s<a?-1:s>a?1:0}function GFe(e,t){return Pq(e,t,0,e.length,0,t.length)}function Pq(e,t,n=0,i=e.length,r=0,o=t.length){for(;n<i&&r<o;n++,r++){let l=e.charCodeAt(n),c=t.charCodeAt(r);if(l===c)continue;if(l>=128||c>=128)return qFe(e.toLowerCase(),t.toLowerCase(),n,i,r,o);jI(l)&&(l-=32),jI(c)&&(c-=32);const u=l-c;if(u!==0)return u}const s=i-n,a=o-r;return s<a?-1:s>a?1:0}function eJ(e){return e>=48&&e<=57}function jI(e){return e>=97&&e<=122}function ex(e){return e>=65&&e<=90}function t6(e,t){return e.length===t.length&&Pq(e,t)===0}function j3e(e,t){const n=t.length;return t.length>e.length?!1:Pq(e,t,0,n)===0}function kL(e,t){const n=Math.min(e.length,t.length);let i;for(i=0;i<n;i++)if(e.charCodeAt(i)!==t.charCodeAt(i))return i;return n}function bue(e,t){const n=Math.min(e.length,t.length);let i;const r=e.length-1,o=t.length-1;for(i=0;i<n;i++)if(e.charCodeAt(r-i)!==t.charCodeAt(o-i))return i;return n}function ud(e){return 55296<=e&&e<=56319}function qR(e){return 56320<=e&&e<=57343}function z3e(e,t){return(e-55296<<10)+(t-56320)+65536}function _ue(e,t,n){const i=e.charCodeAt(n);if(ud(i)&&n+1<t){const r=e.charCodeAt(n+1);if(qR(r))return z3e(i,r)}return i}function S9n(e,t){const n=e.charCodeAt(t-1);if(qR(n)&&t>1){const i=e.charCodeAt(t-2);if(ud(i))return z3e(i,n)}return n}function V3e(e,t){return new Mq(e,t).nextGraphemeLength()}function HVt(e,t){return new Mq(e,t).prevGraphemeLength()}function x9n(e,t){t>0&&qR(e.charCodeAt(t))&&t--;const n=t+V3e(e,t);return[n-HVt(e,n),n]}function E9n(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function G8(e){return Voe||(Voe=E9n()),Voe.test(e)}function qK(e){return qVt.test(e)}function WVt(e){return U3e.test(e)}function IL(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function H3e(e){return e>=127462&&e<=127487||e===8986||e===8987||e===9200||e===9203||e>=9728&&e<=10175||e===11088||e===11093||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}function W3e(e){return!!(e&&e.length>0&&e.charCodeAt(0)===65279)}function A9n(e,t=!1){return e?(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e):!1}function UVt(e){return e=e%52,e<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function xst(e,t){return e===0?t!==5&&t!==7:e===2&&t===3?!1:e===4||e===2||e===3||t===4||t===2||t===3?!0:!(e===8&&(t===8||t===9||t===11||t===12)||(e===11||e===9)&&(t===9||t===10)||(e===12||e===10)&&t===10||t===5||t===13||t===7||e===1||e===13&&t===14||e===6&&t===6)}function D9n(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function T9n(e,t){if(e===0)return 0;const n=k9n(e,t);if(n!==void 0)return n;const i=new wue(t,e);return i.prevCodePoint(),i.offset}function k9n(e,t){const n=new wue(t,e);let i=n.prevCodePoint();for(;I9n(i)||i===65039||i===8419;){if(n.offset===0)return;i=n.prevCodePoint()}if(!H3e(i))return;let r=n.offset;return r>0&&n.prevCodePoint()===8205&&(r=n.offset),r}function I9n(e){return 127995<=e&&e<=127999}var $Vt,wue,Mq,Voe,qVt,U3e,GVt,gwe,$3e,Hoe,z6,Ki=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/strings.js"(){var e,t,n;BVt(),wE(),$Vt=/{(\d+)}/g,wue=class{get offset(){return this._offset}constructor(i,r=0){this._str=i,this._len=i.length,this._offset=r}setOffset(i){this._offset=i}prevCodePoint(){const i=S9n(this._str,this._offset);return this._offset-=i>=65536?2:1,i}nextCodePoint(){const i=_ue(this._str,this._len,this._offset);return this._offset+=i>=65536?2:1,i}eol(){return this._offset>=this._len}},Mq=class{get offset(){return this._iterator.offset}constructor(i,r=0){this._iterator=new wue(i,r)}nextGraphemeLength(){const i=gwe.getInstance(),r=this._iterator,o=r.offset;let s=i.getGraphemeBreakType(r.nextCodePoint());for(;!r.eol();){const a=r.offset,l=i.getGraphemeBreakType(r.nextCodePoint());if(xst(s,l)){r.setOffset(a);break}s=l}return r.offset-o}prevGraphemeLength(){const i=gwe.getInstance(),r=this._iterator,o=r.offset;let s=i.getGraphemeBreakType(r.prevCodePoint());for(;r.offset>0;){const a=r.offset,l=i.getGraphemeBreakType(r.prevCodePoint());if(xst(l,s)){r.setOffset(a);break}s=l}return o-r.offset}eol(){return this._iterator.eol()}},Voe=void 0,qVt=/^[\t\n\r\x20-\x7E]*$/,U3e=/[\u2028\u2029]/,GVt="\uFEFF",gwe=(e=class{static getInstance(){return e._INSTANCE||(e._INSTANCE=new e),e._INSTANCE}constructor(){this._data=D9n()}getGraphemeBreakType(r){if(r<32)return r===10?3:r===13?2:4;if(r<127)return 0;const o=this._data,s=o.length/3;let a=1;for(;a<=s;)if(r<o[3*a])a=2*a;else if(r>o[3*a+1])a=2*a+1;else return o[3*a+2];return 0}},e._INSTANCE=null,e),$3e=" ",Hoe=(t=class{static getInstance(r){return t.cache.get(Array.from(r))}static getLocales(){return t._locales.value}constructor(r){this.confusableDictionary=r}isAmbiguous(r){return this.confusableDictionary.has(r)}getPrimaryConfusable(r){return this.confusableDictionary.get(r)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}},t.ambiguousCharacterData=new lm(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),t.cache=new FVt({getCacheKey:JSON.stringify},r=>{function o(f){const p=new Map;for(let g=0;g<f.length;g+=2)p.set(f[g],f[g+1]);return p}function s(f,p){const g=new Map(f);for(const[m,v]of p)g.set(m,v);return g}function a(f,p){if(!f)return p;const g=new Map;for(const[m,v]of f)p.has(m)&&g.set(m,v);return g}const l=t.ambiguousCharacterData.value;let c=r.filter(f=>!f.startsWith("_")&&f in l);c.length===0&&(c=["_default"]);let u;for(const f of c){const p=o(l[f]);u=a(u,p)}const d=o(l._common),h=s(d,u);return new t(h)}),t._locales=new lm(()=>Object.keys(t.ambiguousCharacterData.value).filter(r=>!r.startsWith("_"))),t),z6=(n=class{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(n.getRawData())),this._data}static isInvisibleCharacter(r){return n.getData().has(r)}static get codePoints(){return n.getData()}},n._data=void 0,n)}});function Ope(e,t){return Ui.isUri(e)?t6(e.scheme,t):j3e(e,t+":")}function KFe(e,...t){return t.some(n=>Ope(e,n))}var Pr,Est,Ast,YFe,Dst,Tst,GK,QFe,Gd=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/network.js"(){var e;Vi(),Xr(),Ki(),ss(),bE(),(function(t){t.inMemory="inmemory",t.vscode="vscode",t.internal="private",t.walkThrough="walkThrough",t.walkThroughSnippet="walkThroughSnippet",t.http="http",t.https="https",t.file="file",t.mailto="mailto",t.untitled="untitled",t.data="data",t.command="command",t.vscodeRemote="vscode-remote",t.vscodeRemoteResource="vscode-remote-resource",t.vscodeManagedRemoteResource="vscode-managed-remote-resource",t.vscodeUserData="vscode-userdata",t.vscodeCustomEditor="vscode-custom-editor",t.vscodeNotebookCell="vscode-notebook-cell",t.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",t.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",t.vscodeNotebookCellOutput="vscode-notebook-cell-output",t.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",t.vscodeNotebookMetadata="vscode-notebook-metadata",t.vscodeInteractiveInput="vscode-interactive-input",t.vscodeSettings="vscode-settings",t.vscodeWorkspaceTrust="vscode-workspace-trust",t.vscodeTerminal="vscode-terminal",t.vscodeChatCodeBlock="vscode-chat-code-block",t.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",t.vscodeChatSesssion="vscode-chat-editor",t.webviewPanel="webview-panel",t.vscodeWebview="vscode-webview",t.extension="extension",t.vscodeFileResource="vscode-file",t.tmp="tmp",t.vsls="vsls",t.vscodeSourceControl="vscode-scm",t.commentsInput="comment",t.codeSetting="code-setting",t.outputChannel="output"})(Pr||(Pr={})),Est="tkn",Ast=class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(t){this._preferredWebSchema=t}get _remoteResourcesPath(){return Vc.join(this._serverRootPath,Pr.vscodeRemoteResource)}rewrite(t){if(this._delegate)try{return this._delegate(t)}catch(a){return Mr(a),t}const n=t.authority;let i=this._hosts[n];i&&i.indexOf(":")!==-1&&i.indexOf("[")===-1&&(i=`[${i}]`);const r=this._ports[n],o=this._connectionTokens[n];let s=`path=${encodeURIComponent(t.path)}`;return typeof o=="string"&&(s+=`&${Est}=${encodeURIComponent(o)}`),Ui.from({scheme:_L?this._preferredWebSchema:Pr.vscodeRemoteResource,authority:`${i}:${r}`,path:this._remoteResourcesPath,query:s})}},YFe=new Ast,Dst="vscode-app",Tst=(e=class{asBrowserUri(n){const i=this.toUri(n);return this.uriToBrowserUri(i)}uriToBrowserUri(n){return n.scheme===Pr.vscodeRemote?YFe.rewrite(n):n.scheme===Pr.file&&(D_||g7t===`${Pr.vscodeFileResource}://${e.FALLBACK_AUTHORITY}`)?n.with({scheme:Pr.vscodeFileResource,authority:n.authority||e.FALLBACK_AUTHORITY,query:null,fragment:null}):n}toUri(n,i){if(Ui.isUri(n))return n;if(globalThis._VSCODE_FILE_ROOT){const r=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(r))return Ui.joinPath(Ui.parse(r,!0),n);const o=D7t(r,n);return Ui.file(o)}return Ui.parse(i.toUrl(n))}},e.FALLBACK_AUTHORITY=Dst,e),GK=new Tst,(function(t){const n=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);t.CoopAndCoep=Object.freeze(n.get("3"));const i="vscode-coi";function r(s){let a;typeof s=="string"?a=new URL(s).searchParams:s instanceof URL?a=s.searchParams:Ui.isUri(s)&&(a=new URL(s.toString(!0)).searchParams);const l=a?.get(i);if(l)return n.get(l)}t.getHeadersFromQuery=r;function o(s,a,l){if(!globalThis.crossOriginIsolated)return;const c=a&&l?"3":l?"2":"1";s instanceof URLSearchParams?s.set(i,c):s[i]=c}t.addSearchParam=o})(QFe||(QFe={}))}});function Rpe(e){return Fpe(e,0)}function Fpe(e,t){switch(typeof e){case"object":return e===null?sD(349,t):Array.isArray(e)?N9n(e,t):P9n(e,t);case"string":return q3e(e,t);case"boolean":return L9n(e,t);case"number":return sD(e,t);case"undefined":return sD(937,t);default:return sD(617,t)}}function sD(e,t){return(t<<5)-t+e|0}function L9n(e,t){return sD(e?433:863,t)}function q3e(e,t){t=sD(149417,t);for(let n=0,i=e.length;n<i;n++)t=sD(e.charCodeAt(n),t);return t}function N9n(e,t){return t=sD(104579,t),e.reduce((n,i)=>Fpe(i,n),t)}function P9n(e,t){return t=sD(181387,t),Object.keys(e).sort().reduce((n,i)=>(n=q3e(i,n),Fpe(e[i],n)),t)}function mwe(e,t,n=32){const i=n-t,r=~((1<<i)-1);return(e<<t|(r&e)>>>i)>>>0}function kst(e,t=0,n=e.byteLength,i=0){for(let r=0;r<n;r++)e[t+r]=i}function M9n(e,t,n="0"){for(;e.length<t;)e=n+e;return e}function Mz(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map(n=>n.toString(16).padStart(2,"0")).join(""):M9n((e>>>0).toString(16),t/4)}var KVt,Y2=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/hash.js"(){var e;Ki(),KVt=(e=class{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(n){const i=n.length;if(i===0)return;const r=this._buff;let o=this._buffLen,s=this._leftoverHighSurrogate,a,l;for(s!==0?(a=s,l=-1,s=0):(a=n.charCodeAt(0),l=0);;){let c=a;if(ud(a))if(l+1<i){const u=n.charCodeAt(l+1);qR(u)?(l++,c=z3e(a,u)):c=65533}else{s=a;break}else qR(a)&&(c=65533);if(o=this._push(r,o,c),l++,l<i)a=n.charCodeAt(l);else break}this._buffLen=o,this._leftoverHighSurrogate=s}_push(n,i,r){return r<128?n[i++]=r:r<2048?(n[i++]=192|(r&1984)>>>6,n[i++]=128|(r&63)>>>0):r<65536?(n[i++]=224|(r&61440)>>>12,n[i++]=128|(r&4032)>>>6,n[i++]=128|(r&63)>>>0):(n[i++]=240|(r&1835008)>>>18,n[i++]=128|(r&258048)>>>12,n[i++]=128|(r&4032)>>>6,n[i++]=128|(r&63)>>>0),i>=64&&(this._step(),i-=64,this._totalLen+=64,n[0]=n[64],n[1]=n[65],n[2]=n[66]),i}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Mz(this._h0)+Mz(this._h1)+Mz(this._h2)+Mz(this._h3)+Mz(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,kst(this._buff,this._buffLen),this._buffLen>56&&(this._step(),kst(this._buff));const n=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(n/4294967296),!1),this._buffDV.setUint32(60,n%4294967296,!1),this._step()}_step(){const n=e._bigBlock32,i=this._buffDV;for(let h=0;h<64;h+=4)n.setUint32(h,i.getUint32(h,!1),!1);for(let h=64;h<320;h+=4)n.setUint32(h,mwe(n.getUint32(h-12,!1)^n.getUint32(h-32,!1)^n.getUint32(h-56,!1)^n.getUint32(h-64,!1),1),!1);let r=this._h0,o=this._h1,s=this._h2,a=this._h3,l=this._h4,c,u,d;for(let h=0;h<80;h++)h<20?(c=o&s|~o&a,u=1518500249):h<40?(c=o^s^a,u=1859775393):h<60?(c=o&s|o&a|s&a,u=2400959708):(c=o^s^a,u=3395469782),d=mwe(r,5)+c+l+u+n.getUint32(h*4,!1)&4294967295,l=a,a=s,s=mwe(o,30),o=r,r=d;this._h0=this._h0+r&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+s&4294967295,this._h3=this._h3+a&4294967295,this._h4=this._h4+l&4294967295}},e._bigBlock32=new DataView(new ArrayBuffer(320)),e)}});function Sh(e){for(;e.firstChild;)e.firstChild.remove()}function qt(e,t,n,i){return new a3t(e,t,n,i)}function Ist(e,t){return function(n){return t(new Vy(e,n))}}function O9n(e){return function(t){return e(new Sa(t))}}function R9n(e,t,n){return qt(e,Z_&&Ppe.pointerEvents?kn.POINTER_DOWN:kn.MOUSE_DOWN,t,n)}function PH(e,t,n){return IH(e,t,n)}function Bpe(e){return Yi(e).getComputedStyle(e,null)}function LL(e,t){const n=Yi(e),i=n.document;if(e!==i.body)return new qs(e.clientWidth,e.clientHeight);if(Z_&&n?.visualViewport)return new qs(n.visualViewport.width,n.visualViewport.height);if(n?.innerWidth&&n.innerHeight)return new qs(n.innerWidth,n.innerHeight);if(i.body&&i.body.clientWidth&&i.body.clientHeight)return new qs(i.body.clientWidth,i.body.clientHeight);if(i.documentElement&&i.documentElement.clientWidth&&i.documentElement.clientHeight)return new qs(i.documentElement.clientWidth,i.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}function YVt(e){let t=e.offsetParent,n=e.offsetTop,i=e.offsetLeft;for(;(e=e.parentNode)!==null&&e!==e.ownerDocument.body&&e!==e.ownerDocument.documentElement;){n-=e.scrollTop;const r=ZVt(e)?null:Bpe(e);r&&(i-=r.direction!=="rtl"?e.scrollLeft:-e.scrollLeft),e===t&&(i+=mv.getBorderLeftWidth(e),n+=mv.getBorderTopWidth(e),n+=e.offsetTop,i+=e.offsetLeft,t=e.offsetParent)}return{left:i,top:n}}function F9n(e,t,n){typeof t=="number"&&(e.style.width=`${t}px`),typeof n=="number"&&(e.style.height=`${n}px`)}function _c(e){const t=e.getBoundingClientRect(),n=Yi(e);return{left:t.left+n.scrollX,top:t.top+n.scrollY,width:t.width,height:t.height}}function QVt(e){let t=e,n=1;do{const i=Bpe(t).zoom;i!=null&&i!=="1"&&(n*=i),t=t.parentElement}while(t!==null&&t!==t.ownerDocument.documentElement);return n}function Gm(e){const t=mv.getMarginLeft(e)+mv.getMarginRight(e);return e.offsetWidth+t}function vwe(e){const t=mv.getBorderLeftWidth(e)+mv.getBorderRightWidth(e),n=mv.getPaddingLeft(e)+mv.getPaddingRight(e);return e.offsetWidth-t-n}function B9n(e){const t=mv.getBorderTopWidth(e)+mv.getBorderBottomWidth(e),n=mv.getPaddingTop(e)+mv.getPaddingBottom(e);return e.offsetHeight-t-n}function aD(e){const t=mv.getMarginTop(e)+mv.getMarginBottom(e);return e.offsetHeight+t}function hd(e,t){return!!t?.contains(e)}function j9n(e,t,n){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(n){if(typeof n=="string"){if(e.classList.contains(n))return null}else if(e===n)return null}e=e.parentNode}return null}function ywe(e,t,n){return!!j9n(e,t,n)}function ZVt(e){return e&&!!e.host&&!!e.mode}function Cue(e){return!!GR(e)}function GR(e){for(;e.parentNode;){if(e===e.ownerDocument?.body)return null;e=e.parentNode}return ZVt(e)?e:null}function cf(){let e=S7().activeElement;for(;e?.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Sue(e){return cf()===e}function XVt(e){return hd(cf(),e)}function S7(){return r3t()<=1?la.document:Array.from(Y3e()).map(({window:t})=>t.document).find(t=>t.hasFocus())??la.document}function MH(){return S7().defaultView?.window??la}function JVt(){return new c3t}function V0(e=la.document.head,t,n){const i=document.createElement("style");if(i.type="text/css",i.media="screen",t?.(i),e.appendChild(i),n&&n.add(zi(()=>i.remove())),e===la.document.head){const r=new Set;zpe.set(i,r);for(const{window:o,disposables:s}of Y3e()){if(o===la)continue;const a=s.add(z9n(i,r,o));n?.add(a)}}return i}function z9n(e,t,n){const i=new Jt,r=e.cloneNode(!0);n.document.head.appendChild(r),i.add(zi(()=>r.remove()));for(const o of t3t(e))r.sheet?.insertRule(o.cssText,r.sheet?.cssRules.length);return i.add(u3t.observe(e,i,{childList:!0})(()=>{r.textContent=e.textContent})),t.add(r),i.add(zi(()=>t.delete(r))),i}function e3t(){return Uoe||(Uoe=V0()),Uoe}function t3t(e){return e?.sheet?.rules?e.sheet.rules:e?.sheet?.cssRules?e.sheet.cssRules:[]}function xue(e,t,n=e3t()){if(!(!n||!t)){n.sheet?.insertRule(`${e} {${t}}`,0);for(const i of zpe.get(n)??[])xue(e,t,i)}}function ZFe(e,t=e3t()){if(!t)return;const n=t3t(t),i=[];for(let r=0;r<n.length;r++){const o=n[r];V9n(o)&&o.selectorText.indexOf(e)!==-1&&i.push(r)}for(let r=i.length-1;r>=0;r--)t.sheet?.deleteRule(i[r]);for(const r of zpe.get(t)??[])ZFe(e,r)}function V9n(e){return typeof e.selectorText=="string"}function yd(e){return e instanceof HTMLElement||e instanceof Yi(e).HTMLElement}function Lst(e){return e instanceof HTMLAnchorElement||e instanceof Yi(e).HTMLAnchorElement}function H9n(e){return e instanceof SVGElement||e instanceof Yi(e).SVGElement}function G3e(e){return e instanceof MouseEvent||e instanceof Yi(e).MouseEvent}function MA(e){return e instanceof KeyboardEvent||e instanceof Yi(e).KeyboardEvent}function W9n(e){const t=e;return!!(t&&typeof t.preventDefault=="function"&&typeof t.stopPropagation=="function")}function U9n(e){const t=[];for(let n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}function $9n(e,t){for(let n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode}function yC(e){return new d3t(e)}function q9n(e,t){return e.after(t),t}function hn(e,...t){if(e.append(...t),t.length===1&&typeof t[0]!="string")return t[0]}function K3e(e,t){return e.insertBefore(t,e.firstChild),t}function xh(e,...t){e.innerText="",hn(e,...t)}function n3t(e,t,n,...i){const r=h3t.exec(t);if(!r)throw new Error("Bad use of emmet");const o=r[1]||"div";let s;return e!==MU.HTML?s=document.createElementNS(e,o):s=document.createElement(o),r[3]&&(s.id=r[3]),r[4]&&(s.className=r[4].replace(/\./g," ").trim()),n&&Object.entries(n).forEach(([a,l])=>{typeof l>"u"||(/^on\w+$/.test(a)?s[a]=l:a==="selected"?l&&s.setAttribute(a,"true"):s.setAttribute(a,l))}),s.append(...i),s}function In(e,t,...n){return n3t(MU.HTML,e,t,...n)}function G9n(e,...t){e?lv(...t):ig(...t)}function lv(...e){for(const t of e)t.style.display="",t.removeAttribute("aria-hidden")}function ig(...e){for(const t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function Nst(e,t){const n=e.devicePixelRatio*t;return Math.max(1,Math.floor(n))/e.devicePixelRatio}function i3t(e){la.open(e,"_blank","noopener")}function K9n(e,t){const n=()=>{t(),i=Nv(e,n)};let i=Nv(e,n);return zi(()=>i.dispose())}function lD(e){return e?`url('${GK.uriToBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function bwe(e){return`'${e.replace(/'/g,"%27")}'`}function _D(e,t){if(e!==void 0){const n=e.match(/^\s*var\((.+)\)$/);if(n){const i=n[1].split(",",2);return i.length===2&&(t=_D(i[1].trim(),t)),`var(${i[0]}, ${t})`}return e}return t}function Y9n(e,t=!1){const n=document.createElement("a");return R3e("afterSanitizeAttributes",i=>{for(const r of["href","src"])if(i.hasAttribute(r)){const o=i.getAttribute(r);if(r==="href"&&o.startsWith("#"))continue;if(n.href=o,!e.includes(n.protocol.replace(/:$/,""))){if(t&&r==="src"&&n.href.startsWith("data:"))continue;i.removeAttribute(r)}}}),zi(()=>{F3e("afterSanitizeAttributes")})}function Co(e,...t){let n,i;Array.isArray(t[0])?(n={},i=t[0]):(n=t[0]||{},i=t[1]);const r=Q3e.exec(e);if(!r||!r.groups)throw new Error("Bad use of h");const o=r.groups.tag||"div",s=document.createElement(o);r.groups.id&&(s.id=r.groups.id);const a=[];if(r.groups.class)for(const c of r.groups.class.split("."))c!==""&&a.push(c);if(n.className!==void 0)for(const c of n.className.split("."))c!==""&&a.push(c);a.length>0&&(s.className=a.join(" "));const l={};if(r.groups.name&&(l[r.groups.name]=s),i)for(const c of i)yd(c)?s.appendChild(c):typeof c=="string"?s.append(c):"root"in c&&(Object.assign(l,c),s.appendChild(c.root));for(const[c,u]of Object.entries(n))if(c!=="className")if(c==="style")for(const[d,h]of Object.entries(u))s.style.setProperty(Eue(d),typeof h=="number"?h+"px":""+h);else c==="tabIndex"?s.tabIndex=u:s.setAttribute(Eue(c),u.toString());return l.root=s,l}function S5(e,...t){let n,i;Array.isArray(t[0])?(n={},i=t[0]):(n=t[0]||{},i=t[1]);const r=Q3e.exec(e);if(!r||!r.groups)throw new Error("Bad use of h");const o=r.groups.tag||"div",s=document.createElementNS("http://www.w3.org/2000/svg",o);r.groups.id&&(s.id=r.groups.id);const a=[];if(r.groups.class)for(const c of r.groups.class.split("."))c!==""&&a.push(c);if(n.className!==void 0)for(const c of n.className.split("."))c!==""&&a.push(c);a.length>0&&(s.className=a.join(" "));const l={};if(r.groups.name&&(l[r.groups.name]=s),i)for(const c of i)yd(c)?s.appendChild(c):typeof c=="string"?s.append(c):"root"in c&&(Object.assign(l,c),s.appendChild(c.root));for(const[c,u]of Object.entries(n))if(c!=="className")if(c==="style")for(const[d,h]of Object.entries(u))s.style.setProperty(Eue(d),typeof h=="number"?h+"px":""+h);else c==="tabIndex"?s.tabIndex=u:s.setAttribute(Eue(c),u.toString());return l.root=s,l}function Eue(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}var Q9n,Yi,Z9n,Y3e,r3t,PU,XFe,X9n,Oq,o3t,s3t,a3t,Il,l3t,Woe,Aue,Nv,jpe,tJ,mv,qs,zpe,c3t,u3t,Uoe,kn,Po,d3t,h3t,MU,f3t,KK,p3t,Q3e,Fn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/dom.js"(){var e;zv(),k3e(),mf(),Cb(),fr(),Vi(),Un(),B3e(),Nt(),Gd(),Xr(),Y2(),wg(),{registerWindow:Q9n,getWindow:Yi,getDocument:Z9n,getWindows:Y3e,getWindowsCount:r3t,getWindowId:PU,getWindowById:XFe,hasWindow:X9n,onDidRegisterWindow:Oq,onWillUnregisterWindow:o3t,onDidUnregisterWindow:s3t}=(function(){const t=new Map;l9n(la,1);const n={window:la,disposables:new Jt};t.set(la.vscodeWindowId,n);const i=new bt,r=new bt,o=new bt;function s(a,l){return(typeof a=="number"?t.get(a):void 0)??(l?n:void 0)}return{onDidRegisterWindow:i.event,onWillUnregisterWindow:o.event,onDidUnregisterWindow:r.event,registerWindow(a){if(t.has(a.vscodeWindowId))return St.None;const l=new Jt,c={window:a,disposables:l.add(new Jt)};return t.set(a.vscodeWindowId,c),l.add(zi(()=>{t.delete(a.vscodeWindowId),r.fire(a)})),l.add(qt(a,kn.BEFORE_UNLOAD,()=>{o.fire(a)})),i.fire(c),l},getWindows(){return t.values()},getWindowsCount(){return t.size},getWindowId(a){return a.vscodeWindowId},hasWindow(a){return t.has(a)},getWindowById:s,getWindow(a){const l=a;if(l?.ownerDocument?.defaultView)return l.ownerDocument.defaultView.window;const c=a;return c?.view?c.view.window:la},getDocument(a){return Yi(a).document}}})(),a3t=class{constructor(t,n,i,r){this._node=t,this._type=n,this._handler=i,this._options=r||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}},Il=function(n,i,r,o){let s=r;return i==="click"||i==="mousedown"||i==="contextmenu"?s=Ist(Yi(n),r):(i==="keydown"||i==="keypress"||i==="keyup")&&(s=O9n(r)),qt(n,i,s,o)},l3t=function(n,i,r){const o=Ist(Yi(n),i);return R9n(n,o,r)},Woe=class extends PFe{constructor(t,n){super(t,n)}},jpe=class extends Mpe{constructor(t){super(),this.defaultTarget=t&&Yi(t)}cancelAndSet(t,n,i){return super.cancelAndSet(t,n,i??this.defaultTarget)}},tJ=class{constructor(t,n=0){this._runner=t,this.priority=n,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(t){Mr(t)}}static sort(t,n){return n.priority-t.priority}},(function(){const t=new Map,n=new Map,i=new Map,r=new Map,o=s=>{i.set(s,!1);const a=t.get(s)??[];for(n.set(s,a),t.set(s,[]),r.set(s,!0);a.length>0;)a.sort(tJ.sort),a.shift().execute();r.set(s,!1)};Nv=(s,a,l=0)=>{const c=PU(s),u=new tJ(a,l);let d=t.get(c);return d||(d=[],t.set(c,d)),d.push(u),i.get(c)||(i.set(c,!0),s.requestAnimationFrame(()=>o(c))),u},Aue=(s,a,l)=>{const c=PU(s);if(r.get(c)){const u=new tJ(a,l);let d=n.get(c);return d||(d=[],n.set(c,d)),d.push(u),u}else return Nv(s,a,l)}})(),mv=class r0{static convertToPixels(n,i){return parseFloat(i)||0}static getDimension(n,i,r){const o=Bpe(n),s=o?o.getPropertyValue(i):"0";return r0.convertToPixels(n,s)}static getBorderLeftWidth(n){return r0.getDimension(n,"border-left-width","borderLeftWidth")}static getBorderRightWidth(n){return r0.getDimension(n,"border-right-width","borderRightWidth")}static getBorderTopWidth(n){return r0.getDimension(n,"border-top-width","borderTopWidth")}static getBorderBottomWidth(n){return r0.getDimension(n,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(n){return r0.getDimension(n,"padding-left","paddingLeft")}static getPaddingRight(n){return r0.getDimension(n,"padding-right","paddingRight")}static getPaddingTop(n){return r0.getDimension(n,"padding-top","paddingTop")}static getPaddingBottom(n){return r0.getDimension(n,"padding-bottom","paddingBottom")}static getMarginLeft(n){return r0.getDimension(n,"margin-left","marginLeft")}static getMarginTop(n){return r0.getDimension(n,"margin-top","marginTop")}static getMarginRight(n){return r0.getDimension(n,"margin-right","marginRight")}static getMarginBottom(n){return r0.getDimension(n,"margin-bottom","marginBottom")}},qs=(e=class{constructor(n,i){this.width=n,this.height=i}with(n=this.width,i=this.height){return n!==this.width||i!==this.height?new e(n,i):this}static is(n){return typeof n=="object"&&typeof n.height=="number"&&typeof n.width=="number"}static lift(n){return n instanceof e?n:new e(n.width,n.height)}static equals(n,i){return n===i?!0:!n||!i?!1:n.width===i.width&&n.height===i.height}},e.None=new e(0,0),e),zpe=new Map,c3t=class{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(t){t!==this._currentCssStyle&&(this._currentCssStyle=t,this._styleSheet?this._styleSheet.innerText=t:this._styleSheet=V0(la.document.head,n=>n.innerText=t))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}},u3t=new class{constructor(){this.mutationObservers=new Map}observe(t,n,i){let r=this.mutationObservers.get(t);r||(r=new Map,this.mutationObservers.set(t,r));const o=Rpe(i);let s=r.get(o);if(s)s.users+=1;else{const a=new bt,l=new MutationObserver(u=>a.fire(u));l.observe(t,i);const c=s={users:1,observer:l,onDidMutate:a.event};n.add(zi(()=>{c.users-=1,c.users===0&&(a.dispose(),l.disconnect(),r?.delete(o),r?.size===0&&this.mutationObservers.delete(t))})),r.set(o,s)}return s.onDidMutate}},Uoe=null,kn={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:iL?"webkitAnimationStart":"animationstart",ANIMATION_END:iL?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:iL?"webkitAnimationIteration":"animationiteration"},Po={stop:(t,n)=>(t.preventDefault(),n&&t.stopPropagation(),t)},d3t=class JFe extends St{static hasFocusWithin(n){if(yd(n)){const i=GR(n),r=i?i.activeElement:n.ownerDocument.activeElement;return hd(r,n)}else{const i=n;return hd(i.document.activeElement,i.document)}}constructor(n){super(),this._onDidFocus=this._register(new bt),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new bt),this.onDidBlur=this._onDidBlur.event;let i=JFe.hasFocusWithin(n),r=!1;const o=()=>{r=!1,i||(i=!0,this._onDidFocus.fire())},s=()=>{i&&(r=!0,(yd(n)?Yi(n):n).setTimeout(()=>{r&&(r=!1,i=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{JFe.hasFocusWithin(n)!==i&&(i?s():o())},this._register(qt(n,kn.FOCUS,o,!0)),this._register(qt(n,kn.BLUR,s,!0)),yd(n)&&(this._register(qt(n,kn.FOCUS_IN,()=>this._refreshStateHandler())),this._register(qt(n,kn.FOCUS_OUT,()=>this._refreshStateHandler())))}},h3t=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/,(function(t){t.HTML="http://www.w3.org/1999/xhtml",t.SVG="http://www.w3.org/2000/svg"})(MU||(MU={})),In.SVG=function(t,n,...i){return n3t(MU.SVG,t,n,...i)},YFe.setPreferredWebSchema(/^https:/.test(la.location.href)?"https":"http"),f3t=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]),KK=class OH extends bt{constructor(){super(),this._subscriptions=new Jt,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(On.runAndSubscribe(Oq,({window:n,disposables:i})=>this.registerListeners(n,i),{window:la,disposables:this._subscriptions}))}registerListeners(n,i){i.add(qt(n,"keydown",r=>{if(r.defaultPrevented)return;const o=new Sa(r);if(!(o.keyCode===6&&r.repeat)){if(r.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(r.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(r.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(r.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else if(o.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=r.altKey,this._keyStatus.ctrlKey=r.ctrlKey,this._keyStatus.metaKey=r.metaKey,this._keyStatus.shiftKey=r.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=r,this.fire(this._keyStatus))}},!0)),i.add(qt(n,"keyup",r=>{r.defaultPrevented||(!r.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!r.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!r.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!r.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=r.altKey,this._keyStatus.ctrlKey=r.ctrlKey,this._keyStatus.metaKey=r.metaKey,this._keyStatus.shiftKey=r.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=r,this.fire(this._keyStatus)))},!0)),i.add(qt(n.document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),i.add(qt(n.document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),i.add(qt(n.document.body,"mousemove",r=>{r.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),i.add(qt(n,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return OH.instance||(OH.instance=new OH),OH.instance}dispose(){super.dispose(),this._subscriptions.dispose()}},p3t=class extends St{constructor(t,n){super(),this.element=t,this.callbacks=n,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(qt(this.element,kn.DRAG_START,t=>{this.callbacks.onDragStart?.(t)})),this.callbacks.onDrag&&this._register(qt(this.element,kn.DRAG,t=>{this.callbacks.onDrag?.(t)})),this._register(qt(this.element,kn.DRAG_ENTER,t=>{this.counter++,this.dragStartTime=t.timeStamp,this.callbacks.onDragEnter?.(t)})),this._register(qt(this.element,kn.DRAG_OVER,t=>{t.preventDefault(),this.callbacks.onDragOver?.(t,t.timeStamp-this.dragStartTime)})),this._register(qt(this.element,kn.DRAG_LEAVE,t=>{this.counter--,this.counter===0&&(this.dragStartTime=0,this.callbacks.onDragLeave?.(t))})),this._register(qt(this.element,kn.DRAG_END,t=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDragEnd?.(t)})),this._register(qt(this.element,kn.DROP,t=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDrop?.(t)}))}},Q3e=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/}}),KR,YK=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/globalPointerMoveMonitor.js"(){Fn(),Nt(),KR=class{constructor(){this._hooks=new Jt,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;const n=this._onStopCallback;this._onStopCallback=null,e&&n&&n(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,n,i,r){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=i,this._onStopCallback=r;let o=e;try{e.setPointerCapture(t),this._hooks.add(zi(()=>{try{e.releasePointerCapture(t)}catch{}}))}catch{o=Yi(e)}this._hooks.add(qt(o,kn.POINTER_MOVE,s=>{if(s.buttons!==n){this.stopMonitoring(!0);return}s.preventDefault(),this._pointerMoveCallback(s)})),this._hooks.add(qt(o,kn.POINTER_UP,s=>this.stopMonitoring(!0)))}}}});function _we(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function Vpe(e,t="Unreachable"){throw new Error(t)}function Pst(e){e||Mr(new ys("Soft Assertion Failed"))}function YR(e){if(!e()){debugger;e(),Mr(new ys("Assertion Failed"))}}function Z3e(e,t){let n=0;for(;n<e.length-1;){const i=e[n],r=e[n+1];if(!t(i,r))return!1;n++}return!0}var zC=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/assert.js"(){Vi()}});function gk(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var $o,Kk,QA,rn,ql=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/color.js"(){var e;$o=class{constructor(t,n,i,r=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,t))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,i))|0,this.a=gk(Math.max(Math.min(1,r),0),3)}static equals(t,n){return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a}},Kk=class RH{constructor(n,i,r,o){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,n),0)|0,this.s=gk(Math.max(Math.min(1,i),0),3),this.l=gk(Math.max(Math.min(1,r),0),3),this.a=gk(Math.max(Math.min(1,o),0),3)}static equals(n,i){return n.h===i.h&&n.s===i.s&&n.l===i.l&&n.a===i.a}static fromRGBA(n){const i=n.r/255,r=n.g/255,o=n.b/255,s=n.a,a=Math.max(i,r,o),l=Math.min(i,r,o);let c=0,u=0;const d=(l+a)/2,h=a-l;if(h>0){switch(u=Math.min(d<=.5?h/(2*d):h/(2-2*d),1),a){case i:c=(r-o)/h+(r<o?6:0);break;case r:c=(o-i)/h+2;break;case o:c=(i-r)/h+4;break}c*=60,c=Math.round(c)}return new RH(c,u,d,s)}static _hue2rgb(n,i,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?n+(i-n)*6*r:r<1/2?i:r<2/3?n+(i-n)*(2/3-r)*6:n}static toRGBA(n){const i=n.h/360,{s:r,l:o,a:s}=n;let a,l,c;if(r===0)a=l=c=o;else{const u=o<.5?o*(1+r):o+r-o*r,d=2*o-u;a=RH._hue2rgb(d,u,i+1/3),l=RH._hue2rgb(d,u,i),c=RH._hue2rgb(d,u,i-1/3)}return new $o(Math.round(a*255),Math.round(l*255),Math.round(c*255),s)}},QA=class g3t{constructor(n,i,r,o){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,n),0)|0,this.s=gk(Math.max(Math.min(1,i),0),3),this.v=gk(Math.max(Math.min(1,r),0),3),this.a=gk(Math.max(Math.min(1,o),0),3)}static equals(n,i){return n.h===i.h&&n.s===i.s&&n.v===i.v&&n.a===i.a}static fromRGBA(n){const i=n.r/255,r=n.g/255,o=n.b/255,s=Math.max(i,r,o),a=Math.min(i,r,o),l=s-a,c=s===0?0:l/s;let u;return l===0?u=0:s===i?u=((r-o)/l%6+6)%6:s===r?u=(o-i)/l+2:u=(i-r)/l+4,new g3t(Math.round(u*60),c,s,n.a)}static toRGBA(n){const{h:i,s:r,v:o,a:s}=n,a=o*r,l=a*(1-Math.abs(i/60%2-1)),c=o-a;let[u,d,h]=[0,0,0];return i<60?(u=a,d=l):i<120?(u=l,d=a):i<180?(d=a,h=l):i<240?(d=l,h=a):i<300?(u=l,h=a):i<=360&&(u=a,h=l),u=Math.round((u+c)*255),d=Math.round((d+c)*255),h=Math.round((h+c)*255),new $o(u,d,h,s)}},rn=(e=class{static fromHex(n){return e.Format.CSS.parseHex(n)||e.red}static equals(n,i){return!n&&!i?!0:!n||!i?!1:n.equals(i)}get hsla(){return this._hsla?this._hsla:Kk.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:QA.fromRGBA(this.rgba)}constructor(n){if(n)if(n instanceof $o)this.rgba=n;else if(n instanceof Kk)this._hsla=n,this.rgba=Kk.toRGBA(n);else if(n instanceof QA)this._hsva=n,this.rgba=QA.toRGBA(n);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(n){return!!n&&$o.equals(this.rgba,n.rgba)&&Kk.equals(this.hsla,n.hsla)&&QA.equals(this.hsva,n.hsva)}getRelativeLuminance(){const n=e._relativeLuminanceForComponent(this.rgba.r),i=e._relativeLuminanceForComponent(this.rgba.g),r=e._relativeLuminanceForComponent(this.rgba.b),o=.2126*n+.7152*i+.0722*r;return gk(o,4)}static _relativeLuminanceForComponent(n){const i=n/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(n){const i=this.getRelativeLuminance(),r=n.getRelativeLuminance();return i>r}isDarkerThan(n){const i=this.getRelativeLuminance(),r=n.getRelativeLuminance();return i<r}lighten(n){return new e(new Kk(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*n,this.hsla.a))}darken(n){return new e(new Kk(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*n,this.hsla.a))}transparent(n){const{r:i,g:r,b:o,a:s}=this.rgba;return new e(new $o(i,r,o,s*n))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new e(new $o(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(n){if(this.isOpaque()||n.rgba.a!==1)return this;const{r:i,g:r,b:o,a:s}=this.rgba;return new e(new $o(n.rgba.r-s*(n.rgba.r-i),n.rgba.g-s*(n.rgba.g-r),n.rgba.b-s*(n.rgba.b-o),1))}toString(){return this._toString||(this._toString=e.Format.CSS.format(this)),this._toString}static getLighterColor(n,i,r){if(n.isLighterThan(i))return n;r=r||.5;const o=n.getRelativeLuminance(),s=i.getRelativeLuminance();return r=r*(s-o)/s,n.lighten(r)}static getDarkerColor(n,i,r){if(n.isDarkerThan(i))return n;r=r||.5;const o=n.getRelativeLuminance(),s=i.getRelativeLuminance();return r=r*(o-s)/o,n.darken(r)}},e.white=new e(new $o(255,255,255,1)),e.black=new e(new $o(0,0,0,1)),e.red=new e(new $o(255,0,0,1)),e.blue=new e(new $o(0,0,255,1)),e.green=new e(new $o(0,255,0,1)),e.cyan=new e(new $o(0,255,255,1)),e.lightgrey=new e(new $o(211,211,211,1)),e.transparent=new e(new $o(0,0,0,0)),e),(function(t){(function(n){(function(i){function r(p){return p.rgba.a===1?`rgb(${p.rgba.r}, ${p.rgba.g}, ${p.rgba.b})`:t.Format.CSS.formatRGBA(p)}i.formatRGB=r;function o(p){return`rgba(${p.rgba.r}, ${p.rgba.g}, ${p.rgba.b}, ${+p.rgba.a.toFixed(2)})`}i.formatRGBA=o;function s(p){return p.hsla.a===1?`hsl(${p.hsla.h}, ${(p.hsla.s*100).toFixed(2)}%, ${(p.hsla.l*100).toFixed(2)}%)`:t.Format.CSS.formatHSLA(p)}i.formatHSL=s;function a(p){return`hsla(${p.hsla.h}, ${(p.hsla.s*100).toFixed(2)}%, ${(p.hsla.l*100).toFixed(2)}%, ${p.hsla.a.toFixed(2)})`}i.formatHSLA=a;function l(p){const g=p.toString(16);return g.length!==2?"0"+g:g}function c(p){return`#${l(p.rgba.r)}${l(p.rgba.g)}${l(p.rgba.b)}`}i.formatHex=c;function u(p,g=!1){return g&&p.rgba.a===1?t.Format.CSS.formatHex(p):`#${l(p.rgba.r)}${l(p.rgba.g)}${l(p.rgba.b)}${l(Math.round(p.rgba.a*255))}`}i.formatHexA=u;function d(p){return p.isOpaque()?t.Format.CSS.formatHex(p):t.Format.CSS.formatRGBA(p)}i.format=d;function h(p){const g=p.length;if(g===0||p.charCodeAt(0)!==35)return null;if(g===7){const m=16*f(p.charCodeAt(1))+f(p.charCodeAt(2)),v=16*f(p.charCodeAt(3))+f(p.charCodeAt(4)),y=16*f(p.charCodeAt(5))+f(p.charCodeAt(6));return new t(new $o(m,v,y,1))}if(g===9){const m=16*f(p.charCodeAt(1))+f(p.charCodeAt(2)),v=16*f(p.charCodeAt(3))+f(p.charCodeAt(4)),y=16*f(p.charCodeAt(5))+f(p.charCodeAt(6)),b=16*f(p.charCodeAt(7))+f(p.charCodeAt(8));return new t(new $o(m,v,y,b/255))}if(g===4){const m=f(p.charCodeAt(1)),v=f(p.charCodeAt(2)),y=f(p.charCodeAt(3));return new t(new $o(16*m+m,16*v+v,16*y+y))}if(g===5){const m=f(p.charCodeAt(1)),v=f(p.charCodeAt(2)),y=f(p.charCodeAt(3)),b=f(p.charCodeAt(4));return new t(new $o(16*m+m,16*v+v,16*y+y,(16*b+b)/255))}return null}i.parseHex=h;function f(p){switch(p){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(n.CSS||(n.CSS={}))})(t.Format||(t.Format={}))})(rn||(rn={}))}}),Mst,ml,Fu=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js"(){zC(),as(),Mst=class{constructor(){this.data=new Map}add(e,t){_we(sm(e)),_we(jd(t)),_we(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}},ml=new Mst}});function J9n(e){return e.length>0&&e.charAt(e.length-1)==="#"?e.substring(0,e.length-1):e}var Rq,Ost,Rst,X3e=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/jsonschemas/common/jsonContributionRegistry.js"(){Un(),Fu(),Rq={JSONContribution:"base.contributions.json"},Ost=class{constructor(){this._onDidChangeSchema=new bt,this.schemasById={}}registerSchema(e,t){this.schemasById[J9n(e)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}},Rst=new Ost,ml.add(Rq.JSONContribution,Rst)}});function J3e(e){return`--vscode-${e.replace(/\./g,"-")}`}function ni(e){return`var(${J3e(e)})`}function e7n(e,t){return`var(${J3e(e)}, ${t})`}function t7n(e){return e!==null&&typeof e=="object"&&"light"in e&&"dark"in e}function Qe(e,t,n,i,r){return FH.registerColor(e,t,n,i,r)}function n7n(e,t){switch(e.op){case 0:return f1(e.value,t)?.darken(e.factor);case 1:return f1(e.value,t)?.lighten(e.factor);case 2:return f1(e.value,t)?.transparent(e.factor);case 3:{const n=f1(e.background,t);return n?f1(e.value,t)?.makeOpaque(n):f1(e.value,t)}case 4:for(const n of e.values){const i=f1(n,t);if(i)return i}return;case 6:return f1(t.defines(e.if)?e.then:e.else,t);case 5:{const n=f1(e.value,t);if(!n)return;const i=f1(e.background,t);return i?n.isDarkerThan(i)?rn.getLighterColor(n,i,e.factor).transparent(e.transparency):rn.getDarkerColor(n,i,e.factor).transparent(e.transparency):n.transparent(e.factor*e.transparency)}default:throw Vpe()}}function kO(e,t){return{op:0,value:e,factor:t}}function k1(e,t){return{op:1,value:e,factor:t}}function ao(e,t){return{op:2,value:e,factor:t}}function OU(...e){return{op:4,values:e}}function i7n(e,t,n){return{op:6,if:e,then:t,else:n}}function Fst(e,t,n,i){return{op:5,value:e,background:t,factor:n,transparency:i}}function f1(e,t){if(e!==null){if(typeof e=="string")return e[0]==="#"?rn.fromHex(e):t.getColor(e);if(e instanceof rn)return e;if(typeof e=="object")return n7n(e,t)}}var e5e,Bst,jst,FH,wwe,Cwe,Swe,gw=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/colorUtils.js"(){zC(),fr(),ql(),Un(),X3e(),Fu(),bn(),e5e={ColorContribution:"base.contributions.colors"},Bst="default",jst=class{constructor(){this._onDidChangeSchema=new bt,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,n,i=!1,r){const o={id:e,description:n,defaults:t,needsTransparency:i,deprecationMessage:r};this.colorsById[e]=o;const s={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return r&&(s.deprecationMessage=r),i&&(s.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",s.patternErrorMessage=R("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:n,oneOf:[s,{type:"string",const:Bst,description:R("useDefault","Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map(e=>this.colorsById[e])}resolveDefaultColor(e,t){const n=this.colorsById[e];if(n?.defaults){const i=t7n(n.defaults)?n.defaults[t.type]:n.defaults;return f1(i,t)}}getColorSchema(){return this.colorSchema}toString(){const e=(t,n)=>{const i=t.indexOf(".")===-1?0:1,r=n.indexOf(".")===-1?0:1;return i!==r?i-r:t.localeCompare(n)};return Object.keys(this.colorsById).sort(e).map(t=>`- \`${t}\`: ${this.colorsById[t].description}`).join(`
`)}},FH=new jst,ml.add(e5e.ColorContribution,FH),wwe="vscode://schemas/workbench-colors",Cwe=ml.as(Rq.JSONContribution),Cwe.registerSchema(wwe,FH.getColorSchema()),Swe=new Gs(()=>Cwe.notifySchemaChanged(wwe),200),FH.onDidChangeSchema(()=>{Swe.isScheduled()||Swe.schedule()})}}),go,Fq,G1,zo,Qa,m3t,DN=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/colors/baseColors.js"(){bn(),ql(),gw(),go=Qe("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},R("foreground","Overall foreground color. This color is only used if not overridden by a component.")),Qe("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},R("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),Qe("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},R("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),Qe("descriptionForeground",{light:"#717171",dark:ao(go,.7),hcDark:ao(go,.7),hcLight:ao(go,.7)},R("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),Fq=Qe("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},R("iconForeground","The default color for icons in the workbench.")),G1=Qe("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},R("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),zo=Qe("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},R("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),Qa=Qe("contrastActiveBorder",{light:null,dark:null,hcDark:G1,hcLight:G1},R("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),Qe("selection.background",null,R("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),m3t=Qe("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},R("textLinkForeground","Foreground color for links in text.")),Qe("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},R("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),Qe("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:rn.black,hcLight:"#292929"},R("textSeparatorForeground","Color for text separators.")),Qe("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},R("textPreformatForeground","Foreground color for preformatted text segments.")),Qe("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},R("textPreformatBackground","Background color for preformatted text segments.")),Qe("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},R("textBlockQuoteBackground","Background color for block quotes in text.")),Qe("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:rn.white,hcLight:"#292929"},R("textBlockQuoteBorder","Border color for block quotes in text.")),Qe("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:rn.black,hcLight:"#F2F2F2"},R("textCodeBlockBackground","Background color for code blocks in text."))}}),RU,v3t,Due,eHe,tHe,nHe,y3t,iHe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/colors/miscColors.js"(){bn(),ql(),gw(),DN(),Qe("sash.hoverBorder",G1,R("sashActiveBorder","Border color of active sashes.")),RU=Qe("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:rn.black,hcLight:"#0F4A85"},R("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),v3t=Qe("badge.foreground",{dark:rn.white,light:"#333",hcDark:rn.white,hcLight:rn.white},R("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),Due=Qe("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},R("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),eHe=Qe("scrollbarSlider.background",{dark:rn.fromHex("#797979").transparent(.4),light:rn.fromHex("#646464").transparent(.4),hcDark:ao(zo,.6),hcLight:ao(zo,.4)},R("scrollbarSliderBackground","Scrollbar slider background color.")),tHe=Qe("scrollbarSlider.hoverBackground",{dark:rn.fromHex("#646464").transparent(.7),light:rn.fromHex("#646464").transparent(.7),hcDark:ao(zo,.8),hcLight:ao(zo,.8)},R("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),nHe=Qe("scrollbarSlider.activeBackground",{dark:rn.fromHex("#BFBFBF").transparent(.4),light:rn.fromHex("#000000").transparent(.6),hcDark:zo,hcLight:zo},R("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),y3t=Qe("progressBar.background",{dark:rn.fromHex("#0E70C0"),light:rn.fromHex("#0E70C0"),hcDark:zo,hcLight:zo},R("progressBarBackground","Background color of the progress bar that can show for long running operations."))}}),By,K1,cv,Bq,Tue,jq,b3t,_3t,Ix,K8,bC,Y8,w3t,C3t,OA,S3t,t5e,kue,x3t,px,E3t,cD,A3t,FU,rHe,$oe,qoe,D3t,T3t,k3t,I3t,zst,Goe,Koe,L3t,N3t,P3t,M3t,aR,oHe,xwe,O3t,R3t,n5e,F3t,Ewe,Awe,Dwe,Twe,nJ,NP,iJ,rJ,oJ,PP,Yoe,i5e,B3t,j3t,z3t,Q2=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/colors/editorColors.js"(){bn(),ql(),gw(),DN(),iHe(),By=Qe("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:rn.black,hcLight:rn.white},R("editorBackground","Editor background color.")),K1=Qe("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:rn.white,hcLight:go},R("editorForeground","Editor default foreground color.")),Qe("editorStickyScroll.background",By,R("editorStickyScrollBackground","Background color of sticky scroll in the editor")),Qe("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:rn.fromHex("#0F4A85").transparent(.1)},R("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),Qe("editorStickyScroll.border",{dark:null,light:null,hcDark:zo,hcLight:zo},R("editorStickyScrollBorder","Border color of sticky scroll in the editor")),Qe("editorStickyScroll.shadow",Due,R("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),cv=Qe("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:rn.white},R("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),Bq=Qe("editorWidget.foreground",go,R("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),Tue=Qe("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:zo,hcLight:zo},R("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),Qe("editorWidget.resizeBorder",null,R("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),Qe("editorError.background",null,R("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),jq=Qe("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},R("editorError.foreground","Foreground color of error squigglies in the editor.")),b3t=Qe("editorError.border",{dark:null,light:null,hcDark:rn.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},R("errorBorder","If set, color of double underlines for errors in the editor.")),_3t=Qe("editorWarning.background",null,R("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),Ix=Qe("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},R("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),K8=Qe("editorWarning.border",{dark:null,light:null,hcDark:rn.fromHex("#FFCC00").transparent(.8),hcLight:rn.fromHex("#FFCC00").transparent(.8)},R("warningBorder","If set, color of double underlines for warnings in the editor.")),Qe("editorInfo.background",null,R("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),bC=Qe("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},R("editorInfo.foreground","Foreground color of info squigglies in the editor.")),Y8=Qe("editorInfo.border",{dark:null,light:null,hcDark:rn.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},R("infoBorder","If set, color of double underlines for infos in the editor.")),w3t=Qe("editorHint.foreground",{dark:rn.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},R("editorHint.foreground","Foreground color of hint squigglies in the editor.")),Qe("editorHint.border",{dark:null,light:null,hcDark:rn.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},R("hintBorder","If set, color of double underlines for hints in the editor.")),C3t=Qe("editorLink.activeForeground",{dark:"#4E94CE",light:rn.blue,hcDark:rn.cyan,hcLight:"#292929"},R("activeLinkForeground","Color of active links.")),OA=Qe("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},R("editorSelectionBackground","Color of the editor selection.")),S3t=Qe("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:rn.white},R("editorSelectionForeground","Color of the selected text for high contrast.")),t5e=Qe("editor.inactiveSelectionBackground",{light:ao(OA,.5),dark:ao(OA,.5),hcDark:ao(OA,.7),hcLight:ao(OA,.5)},R("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),kue=Qe("editor.selectionHighlightBackground",{light:Fst(OA,By,.3,.6),dark:Fst(OA,By,.3,.6),hcDark:null,hcLight:null},R("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),Qe("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:Qa,hcLight:Qa},R("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),Qe("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},R("editorFindMatch","Color of the current search match.")),x3t=Qe("editor.findMatchForeground",null,R("editorFindMatchForeground","Text color of the current search match.")),px=Qe("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},R("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),E3t=Qe("editor.findMatchHighlightForeground",null,R("findMatchHighlightForeground","Foreground color of the other search matches."),!0),Qe("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},R("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Qe("editor.findMatchBorder",{light:null,dark:null,hcDark:Qa,hcLight:Qa},R("editorFindMatchBorder","Border color of the current search match.")),cD=Qe("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:Qa,hcLight:Qa},R("findMatchHighlightBorder","Border color of the other search matches.")),A3t=Qe("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:ao(Qa,.4),hcLight:ao(Qa,.4)},R("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Qe("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},R("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),FU=Qe("editorHoverWidget.background",cv,R("hoverBackground","Background color of the editor hover.")),Qe("editorHoverWidget.foreground",Bq,R("hoverForeground","Foreground color of the editor hover.")),rHe=Qe("editorHoverWidget.border",Tue,R("hoverBorder","Border color of the editor hover.")),Qe("editorHoverWidget.statusBarBackground",{dark:k1(FU,.2),light:kO(FU,.05),hcDark:cv,hcLight:cv},R("statusBarBackground","Background color of the editor hover status bar.")),$oe=Qe("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:rn.white,hcLight:rn.black},R("editorInlayHintForeground","Foreground color of inline hints")),qoe=Qe("editorInlayHint.background",{dark:ao(RU,.1),light:ao(RU,.1),hcDark:ao(rn.white,.1),hcLight:ao(RU,.1)},R("editorInlayHintBackground","Background color of inline hints")),D3t=Qe("editorInlayHint.typeForeground",$oe,R("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),T3t=Qe("editorInlayHint.typeBackground",qoe,R("editorInlayHintBackgroundTypes","Background color of inline hints for types")),k3t=Qe("editorInlayHint.parameterForeground",$oe,R("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),I3t=Qe("editorInlayHint.parameterBackground",qoe,R("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),zst=Qe("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},R("editorLightBulbForeground","The color used for the lightbulb actions icon.")),Qe("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},R("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),Qe("editorLightBulbAi.foreground",zst,R("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),Qe("editor.snippetTabstopHighlightBackground",{dark:new rn(new $o(124,124,124,.3)),light:new rn(new $o(10,50,100,.2)),hcDark:new rn(new $o(124,124,124,.3)),hcLight:new rn(new $o(10,50,100,.2))},R("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),Qe("editor.snippetTabstopHighlightBorder",null,R("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),Qe("editor.snippetFinalTabstopHighlightBackground",null,R("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),Qe("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new rn(new $o(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},R("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),Goe=new rn(new $o(155,185,85,.2)),Koe=new rn(new $o(255,0,0,.2)),L3t=Qe("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},R("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),N3t=Qe("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},R("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Qe("diffEditor.insertedLineBackground",{dark:Goe,light:Goe,hcDark:null,hcLight:null},R("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Qe("diffEditor.removedLineBackground",{dark:Koe,light:Koe,hcDark:null,hcLight:null},R("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Qe("diffEditorGutter.insertedLineBackground",null,R("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),Qe("diffEditorGutter.removedLineBackground",null,R("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),P3t=Qe("diffEditorOverview.insertedForeground",null,R("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),M3t=Qe("diffEditorOverview.removedForeground",null,R("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),Qe("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},R("diffEditorInsertedOutline","Outline color for the text that got inserted.")),Qe("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},R("diffEditorRemovedOutline","Outline color for text that got removed.")),Qe("diffEditor.border",{dark:null,light:null,hcDark:zo,hcLight:zo},R("diffEditorBorder","Border color between the two text editors.")),Qe("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},R("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),Qe("diffEditor.unchangedRegionBackground","sideBar.background",R("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),Qe("diffEditor.unchangedRegionForeground","foreground",R("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),Qe("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},R("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),aR=Qe("widget.shadow",{dark:ao(rn.black,.36),light:ao(rn.black,.16),hcDark:null,hcLight:null},R("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),oHe=Qe("widget.border",{dark:null,light:null,hcDark:zo,hcLight:zo},R("widgetBorder","Border color of widgets such as find/replace inside the editor.")),xwe=Qe("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},R("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse")),Qe("toolbar.hoverOutline",{dark:null,light:null,hcDark:Qa,hcLight:Qa},R("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),Qe("toolbar.activeBackground",{dark:k1(xwe,.1),light:kO(xwe,.1),hcDark:null,hcLight:null},R("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),O3t=Qe("breadcrumb.foreground",ao(go,.8),R("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),R3t=Qe("breadcrumb.background",By,R("breadcrumbsBackground","Background color of breadcrumb items.")),n5e=Qe("breadcrumb.focusForeground",{light:kO(go,.2),dark:k1(go,.1),hcDark:k1(go,.1),hcLight:k1(go,.1)},R("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),F3t=Qe("breadcrumb.activeSelectionForeground",{light:kO(go,.2),dark:k1(go,.1),hcDark:k1(go,.1),hcLight:k1(go,.1)},R("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),Qe("breadcrumbPicker.background",cv,R("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),Ewe=.5,Awe=rn.fromHex("#40C8AE").transparent(Ewe),Dwe=rn.fromHex("#40A6FF").transparent(Ewe),Twe=rn.fromHex("#606060").transparent(.4),nJ=.4,NP=1,iJ=Qe("merge.currentHeaderBackground",{dark:Awe,light:Awe,hcDark:null,hcLight:null},R("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),Qe("merge.currentContentBackground",ao(iJ,nJ),R("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),rJ=Qe("merge.incomingHeaderBackground",{dark:Dwe,light:Dwe,hcDark:null,hcLight:null},R("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),Qe("merge.incomingContentBackground",ao(rJ,nJ),R("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),oJ=Qe("merge.commonHeaderBackground",{dark:Twe,light:Twe,hcDark:null,hcLight:null},R("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),Qe("merge.commonContentBackground",ao(oJ,nJ),R("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),PP=Qe("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},R("mergeBorder","Border color on headers and the splitter in inline merge-conflicts.")),Qe("editorOverviewRuler.currentContentForeground",{dark:ao(iJ,NP),light:ao(iJ,NP),hcDark:PP,hcLight:PP},R("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),Qe("editorOverviewRuler.incomingContentForeground",{dark:ao(rJ,NP),light:ao(rJ,NP),hcDark:PP,hcLight:PP},R("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),Qe("editorOverviewRuler.commonContentForeground",{dark:ao(oJ,NP),light:ao(oJ,NP),hcDark:PP,hcLight:PP},R("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),Yoe=Qe("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},R("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),i5e=Qe("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",R("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),B3t=Qe("problemsErrorIcon.foreground",jq,R("problemsErrorIconForeground","The color used for the problems error icon.")),j3t=Qe("problemsWarningIcon.foreground",Ix,R("problemsWarningIconForeground","The color used for the problems warning icon.")),z3t=Qe("problemsInfoIcon.foreground",bC,R("problemsInfoIconForeground","The color used for the problems info icon."))}}),Iue,BH,r5e,V3t,H3t,W3t,U3t,$3t,q3t=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/colors/minimapColors.js"(){bn(),ql(),gw(),Q2(),iHe(),Iue=Qe("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},R("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),BH=Qe("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},R("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),r5e=Qe("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},R("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),V3t=Qe("minimap.infoHighlight",{dark:bC,light:bC,hcDark:Y8,hcLight:Y8},R("minimapInfo","Minimap marker color for infos.")),H3t=Qe("minimap.warningHighlight",{dark:Ix,light:Ix,hcDark:K8,hcLight:K8},R("overviewRuleWarning","Minimap marker color for warnings.")),W3t=Qe("minimap.errorHighlight",{dark:new rn(new $o(255,18,18,.7)),light:new rn(new $o(255,18,18,.7)),hcDark:new rn(new $o(255,50,50,1)),hcLight:"#B5200D"},R("minimapError","Minimap marker color for errors.")),U3t=Qe("minimap.background",null,R("minimapBackground","Minimap background color.")),$3t=Qe("minimap.foregroundOpacity",rn.fromHex("#000f"),R("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),Qe("minimapSlider.background",ao(eHe,.5),R("minimapSliderBackground","Minimap slider background color.")),Qe("minimapSlider.hoverBackground",ao(tHe,.5),R("minimapSliderHoverBackground","Minimap slider background color when hovering.")),Qe("minimapSlider.activeBackground",ao(nHe,.5),R("minimapSliderActiveBackground","Minimap slider background color when clicked on."))}}),r7n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/colors/chartsColors.js"(){bn(),gw(),DN(),Q2(),q3t(),Qe("charts.foreground",go,R("chartsForeground","The foreground color used in charts.")),Qe("charts.lines",ao(go,.5),R("chartsLines","The color used for horizontal lines in charts.")),Qe("charts.red",jq,R("chartsRed","The red color used in chart visualizations.")),Qe("charts.blue",bC,R("chartsBlue","The blue color used in chart visualizations.")),Qe("charts.yellow",Ix,R("chartsYellow","The yellow color used in chart visualizations.")),Qe("charts.orange",Iue,R("chartsOrange","The orange color used in chart visualizations.")),Qe("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},R("chartsGreen","The green color used in chart visualizations.")),Qe("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},R("chartsPurple","The purple color used in chart visualizations."))}}),Lue,sHe,aHe,zq,Vst,Q8,Vq,G3t,K3t,Y3t,Q3t,Z3t,X3t,J3t,eHt,tHt,BU,nHt,Nue,Pue,o5e,iHt,CB,rHt,oHt,sHt,Qoe,aHt,SB,lHt,cHt,uHt,dHt,hHt,fHt,pHt,gHt,mHt,vHt,yHt,bHt,_Ht,wHt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/colors/inputColors.js"(){bn(),ql(),gw(),DN(),Q2(),Lue=Qe("input.background",{dark:"#3C3C3C",light:rn.white,hcDark:rn.black,hcLight:rn.white},R("inputBoxBackground","Input box background.")),sHe=Qe("input.foreground",go,R("inputBoxForeground","Input box foreground.")),aHe=Qe("input.border",{dark:null,light:null,hcDark:zo,hcLight:zo},R("inputBoxBorder","Input box border.")),zq=Qe("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:zo,hcLight:zo},R("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),Vst=Qe("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},R("inputOption.hoverBackground","Background color of activated options in input fields.")),Q8=Qe("inputOption.activeBackground",{dark:ao(G1,.4),light:ao(G1,.2),hcDark:rn.transparent,hcLight:rn.transparent},R("inputOption.activeBackground","Background hover color of options in input fields.")),Vq=Qe("inputOption.activeForeground",{dark:rn.white,light:rn.black,hcDark:go,hcLight:go},R("inputOption.activeForeground","Foreground color of activated options in input fields.")),Qe("input.placeholderForeground",{light:ao(go,.5),dark:ao(go,.5),hcDark:ao(go,.7),hcLight:ao(go,.7)},R("inputPlaceholderForeground","Input box foreground color for placeholder text.")),G3t=Qe("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:rn.black,hcLight:rn.white},R("inputValidationInfoBackground","Input validation background color for information severity.")),K3t=Qe("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:go},R("inputValidationInfoForeground","Input validation foreground color for information severity.")),Y3t=Qe("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:zo,hcLight:zo},R("inputValidationInfoBorder","Input validation border color for information severity.")),Q3t=Qe("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:rn.black,hcLight:rn.white},R("inputValidationWarningBackground","Input validation background color for warning severity.")),Z3t=Qe("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:go},R("inputValidationWarningForeground","Input validation foreground color for warning severity.")),X3t=Qe("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:zo,hcLight:zo},R("inputValidationWarningBorder","Input validation border color for warning severity.")),J3t=Qe("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:rn.black,hcLight:rn.white},R("inputValidationErrorBackground","Input validation background color for error severity.")),eHt=Qe("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:go},R("inputValidationErrorForeground","Input validation foreground color for error severity.")),tHt=Qe("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:zo,hcLight:zo},R("inputValidationErrorBorder","Input validation border color for error severity.")),BU=Qe("dropdown.background",{dark:"#3C3C3C",light:rn.white,hcDark:rn.black,hcLight:rn.white},R("dropdownBackground","Dropdown background.")),nHt=Qe("dropdown.listBackground",{dark:null,light:null,hcDark:rn.black,hcLight:rn.white},R("dropdownListBackground","Dropdown list background.")),Nue=Qe("dropdown.foreground",{dark:"#F0F0F0",light:go,hcDark:rn.white,hcLight:go},R("dropdownForeground","Dropdown foreground.")),Pue=Qe("dropdown.border",{dark:BU,light:"#CECECE",hcDark:zo,hcLight:zo},R("dropdownBorder","Dropdown border.")),o5e=Qe("button.foreground",rn.white,R("buttonForeground","Button foreground color.")),iHt=Qe("button.separator",ao(o5e,.4),R("buttonSeparator","Button separator color.")),CB=Qe("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},R("buttonBackground","Button background color.")),rHt=Qe("button.hoverBackground",{dark:k1(CB,.2),light:kO(CB,.2),hcDark:CB,hcLight:CB},R("buttonHoverBackground","Button background color when hovering.")),oHt=Qe("button.border",zo,R("buttonBorder","Button border color.")),sHt=Qe("button.secondaryForeground",{dark:rn.white,light:rn.white,hcDark:rn.white,hcLight:go},R("buttonSecondaryForeground","Secondary button foreground color.")),Qoe=Qe("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:rn.white},R("buttonSecondaryBackground","Secondary button background color.")),aHt=Qe("button.secondaryHoverBackground",{dark:k1(Qoe,.2),light:kO(Qoe,.2),hcDark:null,hcLight:null},R("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),SB=Qe("radio.activeForeground",Vq,R("radioActiveForeground","Foreground color of active radio option.")),lHt=Qe("radio.activeBackground",Q8,R("radioBackground","Background color of active radio option.")),cHt=Qe("radio.activeBorder",zq,R("radioActiveBorder","Border color of the active radio option.")),uHt=Qe("radio.inactiveForeground",null,R("radioInactiveForeground","Foreground color of inactive radio option.")),dHt=Qe("radio.inactiveBackground",null,R("radioInactiveBackground","Background color of inactive radio option.")),hHt=Qe("radio.inactiveBorder",{light:ao(SB,.2),dark:ao(SB,.2),hcDark:ao(SB,.4),hcLight:ao(SB,.2)},R("radioInactiveBorder","Border color of the inactive radio option.")),fHt=Qe("radio.inactiveHoverBackground",Vst,R("radioHoverBackground","Background color of inactive active radio option when hovering.")),pHt=Qe("checkbox.background",BU,R("checkbox.background","Background color of checkbox widget.")),Qe("checkbox.selectBackground",cv,R("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),gHt=Qe("checkbox.foreground",Nue,R("checkbox.foreground","Foreground color of checkbox widget.")),mHt=Qe("checkbox.border",Pue,R("checkbox.border","Border color of checkbox widget.")),Qe("checkbox.selectBorder",Fq,R("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),vHt=Qe("keybindingLabel.background",{dark:new rn(new $o(128,128,128,.17)),light:new rn(new $o(221,221,221,.4)),hcDark:rn.transparent,hcLight:rn.transparent},R("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),yHt=Qe("keybindingLabel.foreground",{dark:rn.fromHex("#CCCCCC"),light:rn.fromHex("#555555"),hcDark:rn.white,hcLight:go},R("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),bHt=Qe("keybindingLabel.border",{dark:new rn(new $o(51,51,51,.6)),light:new rn(new $o(204,204,204,.4)),hcDark:new rn(new $o(111,195,223)),hcLight:zo},R("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),_Ht=Qe("keybindingLabel.bottomBorder",{dark:new rn(new $o(68,68,68,.6)),light:new rn(new $o(187,187,187,.4)),hcDark:new rn(new $o(111,195,223)),hcLight:go},R("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut."))}}),CHt,SHt,xHt,EHt,rL,Z8,lHe,AHt,DHt,THt,kHt,IHt,s5e,a5e,LHt,NHt,uO,PHt,MHt,OHt,RHt,FHt,l5e,BHt,jHt,zHt,cHe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/colors/listColors.js"(){bn(),ql(),gw(),DN(),Q2(),CHt=Qe("list.focusBackground",null,R("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),SHt=Qe("list.focusForeground",null,R("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),xHt=Qe("list.focusOutline",{dark:G1,light:G1,hcDark:Qa,hcLight:Qa},R("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),EHt=Qe("list.focusAndSelectionOutline",null,R("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),rL=Qe("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:rn.fromHex("#0F4A85").transparent(.1)},R("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Z8=Qe("list.activeSelectionForeground",{dark:rn.white,light:rn.white,hcDark:null,hcLight:null},R("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),lHe=Qe("list.activeSelectionIconForeground",null,R("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),AHt=Qe("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:rn.fromHex("#0F4A85").transparent(.1)},R("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),DHt=Qe("list.inactiveSelectionForeground",null,R("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),THt=Qe("list.inactiveSelectionIconForeground",null,R("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),kHt=Qe("list.inactiveFocusBackground",null,R("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),IHt=Qe("list.inactiveFocusOutline",null,R("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),s5e=Qe("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:rn.white.transparent(.1),hcLight:rn.fromHex("#0F4A85").transparent(.1)},R("listHoverBackground","List/Tree background when hovering over items using the mouse.")),a5e=Qe("list.hoverForeground",null,R("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),LHt=Qe("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},R("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),NHt=Qe("list.dropBetweenBackground",{dark:Fq,light:Fq,hcDark:null,hcLight:null},R("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),uO=Qe("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:G1,hcLight:G1},R("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),PHt=Qe("list.focusHighlightForeground",{dark:uO,light:i7n(rL,uO,"#BBE7FF"),hcDark:uO,hcLight:uO},R("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.")),Qe("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},R("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),Qe("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},R("listErrorForeground","Foreground color of list items containing errors.")),Qe("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},R("listWarningForeground","Foreground color of list items containing warnings.")),MHt=Qe("listFilterWidget.background",{light:kO(cv,0),dark:k1(cv,0),hcDark:cv,hcLight:cv},R("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),OHt=Qe("listFilterWidget.outline",{dark:rn.transparent,light:rn.transparent,hcDark:"#f38518",hcLight:"#007ACC"},R("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),RHt=Qe("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:zo,hcLight:zo},R("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),FHt=Qe("listFilterWidget.shadow",aR,R("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),Qe("list.filterMatchBackground",{dark:px,light:px,hcDark:null,hcLight:null},R("listFilterMatchHighlight","Background color of the filtered match.")),Qe("list.filterMatchBorder",{dark:cD,light:cD,hcDark:zo,hcLight:Qa},R("listFilterMatchHighlightBorder","Border color of the filtered match.")),Qe("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},R("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized.")),l5e=Qe("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},R("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),BHt=Qe("tree.inactiveIndentGuidesStroke",ao(l5e,.4),R("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),jHt=Qe("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},R("tableColumnsBorder","Table border color between columns.")),zHt=Qe("tree.tableOddRowsBackground",{dark:ao(go,.04),light:ao(go,.04),hcDark:null,hcLight:null},R("tableOddRowsBackgroundColor","Background color for odd table rows.")),Qe("editorActionList.background",cv,R("editorActionListBackground","Action List background color.")),Qe("editorActionList.foreground",Bq,R("editorActionListForeground","Action List foreground color.")),Qe("editorActionList.focusForeground",Z8,R("editorActionListFocusForeground","Action List foreground color for the focused item.")),Qe("editorActionList.focusBackground",rL,R("editorActionListFocusBackground","Action List background color for the focused item."))}}),VHt,HHt,WHt,UHt,$Ht,qHt,GHt,o7n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/colors/menuColors.js"(){bn(),gw(),DN(),wHt(),cHe(),VHt=Qe("menu.border",{dark:null,light:null,hcDark:zo,hcLight:zo},R("menuBorder","Border color of menus.")),HHt=Qe("menu.foreground",Nue,R("menuForeground","Foreground color of menu items.")),WHt=Qe("menu.background",BU,R("menuBackground","Background color of menu items.")),UHt=Qe("menu.selectionForeground",Z8,R("menuSelectionForeground","Foreground color of the selected menu item in menus.")),$Ht=Qe("menu.selectionBackground",rL,R("menuSelectionBackground","Background color of the selected menu item in menus.")),qHt=Qe("menu.selectionBorder",{dark:null,light:null,hcDark:Qa,hcLight:Qa},R("menuSelectionBorder","Border color of the selected menu item in menus.")),GHt=Qe("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:zo,hcLight:zo},R("menuSeparatorBackground","Color of a separator menu item in menus."))}}),c5e,KHt,YHt,uHe,QHt,kwe,X8,Hpe,J8,s7n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/colors/quickpickColors.js"(){bn(),ql(),gw(),Q2(),cHe(),c5e=Qe("quickInput.background",cv,R("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),KHt=Qe("quickInput.foreground",Bq,R("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),YHt=Qe("quickInputTitle.background",{dark:new rn(new $o(255,255,255,.105)),light:new rn(new $o(0,0,0,.06)),hcDark:"#000000",hcLight:rn.white},R("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),uHe=Qe("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:rn.white,hcLight:"#0F4A85"},R("pickerGroupForeground","Quick picker color for grouping labels.")),QHt=Qe("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:rn.white,hcLight:"#0F4A85"},R("pickerGroupBorder","Quick picker color for grouping borders.")),kwe=Qe("quickInput.list.focusBackground",null,"",void 0,R("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),X8=Qe("quickInputList.focusForeground",Z8,R("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),Hpe=Qe("quickInputList.focusIconForeground",lHe,R("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),J8=Qe("quickInputList.focusBackground",{dark:OU(kwe,rL),light:OU(kwe,rL),hcDark:null,hcLight:null},R("quickInput.listFocusBackground","Quick picker background color for the focused item."))}}),a7n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/colors/searchColors.js"(){bn(),gw(),DN(),Q2(),Qe("search.resultsInfoForeground",{light:go,dark:ao(go,.65),hcDark:go,hcLight:go},R("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),Qe("searchEditor.findMatchBackground",{light:ao(px,.66),dark:ao(px,.66),hcDark:px,hcLight:px},R("searchEditor.queryMatch","Color of the Search Editor query matches.")),Qe("searchEditor.findMatchBorder",{light:ao(cD,.66),dark:ao(cD,.66),hcDark:cD,hcLight:cD},R("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))}}),ll=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js"(){gw(),DN(),r7n(),Q2(),wHt(),cHe(),o7n(),q3t(),iHe(),s7n(),a7n()}});function u5e(e){const t=_c(e);return new ZHt(t.left,t.top,t.width,t.height)}function d5e(e,t,n){const i=t.width/e.offsetWidth,r=t.height/e.offsetHeight,o=(n.x-t.x)/i,s=(n.y-t.y)/r;return new XHt(o,s)}function l7n(e){return e.replace(/(^[A-Z])/,([t])=>t.toLowerCase()).replace(/([A-Z])/g,([t])=>`-${t.toLowerCase()}`)}var jU,h5e,ZHt,XHt,uD,JHt,eWt,tWt,dHe,Hst,QK=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/editorDom.js"(){var e;Fn(),YK(),Cb(),fr(),Nt(),ll(),jU=class{constructor(t,n){this.x=t,this.y=n,this._pageCoordinatesBrand=void 0}toClientCoordinates(t){return new h5e(this.x-t.scrollX,this.y-t.scrollY)}},h5e=class{constructor(t,n){this.clientX=t,this.clientY=n,this._clientCoordinatesBrand=void 0}toPageCoordinates(t){return new jU(this.clientX+t.scrollX,this.clientY+t.scrollY)}},ZHt=class{constructor(t,n,i,r){this.x=t,this.y=n,this.width=i,this.height=r,this._editorPagePositionBrand=void 0}},XHt=class{constructor(t,n){this.x=t,this.y=n,this._positionRelativeToEditorBrand=void 0}},uD=class extends Vy{constructor(t,n,i){super(Yi(i),t),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=n,this.pos=new jU(this.posx,this.posy),this.editorPos=u5e(i),this.relativePos=d5e(i,this.editorPos,this.pos)}},JHt=class{constructor(t){this._editorViewDomNode=t}_create(t){return new uD(t,!1,this._editorViewDomNode)}onContextMenu(t,n){return qt(t,"contextmenu",i=>{n(this._create(i))})}onMouseUp(t,n){return qt(t,"mouseup",i=>{n(this._create(i))})}onMouseDown(t,n){return qt(t,kn.MOUSE_DOWN,i=>{n(this._create(i))})}onPointerDown(t,n){return qt(t,kn.POINTER_DOWN,i=>{n(this._create(i),i.pointerId)})}onMouseLeave(t,n){return qt(t,kn.MOUSE_LEAVE,i=>{n(this._create(i))})}onMouseMove(t,n){return qt(t,"mousemove",i=>n(this._create(i)))}},eWt=class{constructor(t){this._editorViewDomNode=t}_create(t){return new uD(t,!1,this._editorViewDomNode)}onPointerUp(t,n){return qt(t,"pointerup",i=>{n(this._create(i))})}onPointerDown(t,n){return qt(t,kn.POINTER_DOWN,i=>{n(this._create(i),i.pointerId)})}onPointerLeave(t,n){return qt(t,kn.POINTER_LEAVE,i=>{n(this._create(i))})}onPointerMove(t,n){return qt(t,"pointermove",i=>n(this._create(i)))}},tWt=class extends St{constructor(t){super(),this._editorViewDomNode=t,this._globalPointerMoveMonitor=this._register(new KR),this._keydownListener=null}startMonitoring(t,n,i,r,o){this._keydownListener=Il(t.ownerDocument,"keydown",s=>{s.toKeyCodeChord().isModifierKey()||this._globalPointerMoveMonitor.stopMonitoring(!0,s.browserEvent)},!0),this._globalPointerMoveMonitor.startMonitoring(t,n,i,s=>{r(new uD(s,!0,this._editorViewDomNode))},s=>{this._keydownListener.dispose(),o(s)})}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0)}},dHe=(e=class{constructor(n){this._editor=n,this._instanceId=++e._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new Gs(()=>this.garbageCollect(),1e3)}createClassNameRef(n){const i=this.getOrCreateRule(n);return i.increaseRefCount(),{className:i.className,dispose:()=>{i.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(n){const i=this.computeUniqueKey(n);let r=this._rules.get(i);if(!r){const o=this._counter++;r=new Hst(i,`dyn-rule-${this._instanceId}-${o}`,Cue(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,n),this._rules.set(i,r)}return r}computeUniqueKey(n){return JSON.stringify(n)}garbageCollect(){for(const n of this._rules.values())n.hasReferences()||(this._rules.delete(n.key),n.dispose())}},e._idPool=0,e),Hst=class{constructor(t,n,i,r){this.key=t,this.className=n,this.properties=r,this._referenceCount=0,this._styleElementDisposables=new Jt,this._styleElement=V0(i,void 0,this._styleElementDisposables),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(t,n){let i=`.${t} {`;for(const r in n){const o=n[r];let s;typeof o=="object"?s=ni(o.id):s=o;const a=l7n(r);i+=`
	${a}: ${s};`}return i+=`
}`,i}dispose(){this._styleElementDisposables.dispose(),this._styleElement=void 0}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}}}),x7,ZK=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/viewEventHandler.js"(){Nt(),x7=class extends St{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(e){return!1}onCompositionEnd(e){return!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let n=0,i=e.length;n<i;n++){const r=e[n];switch(r.type){case 0:this.onCompositionStart(r)&&(t=!0);break;case 1:this.onCompositionEnd(r)&&(t=!0);break;case 2:this.onConfigurationChanged(r)&&(t=!0);break;case 3:this.onCursorStateChanged(r)&&(t=!0);break;case 4:this.onDecorationsChanged(r)&&(t=!0);break;case 5:this.onFlushed(r)&&(t=!0);break;case 6:this.onFocusChanged(r)&&(t=!0);break;case 7:this.onLanguageConfigurationChanged(r)&&(t=!0);break;case 8:this.onLineMappingChanged(r)&&(t=!0);break;case 9:this.onLinesChanged(r)&&(t=!0);break;case 10:this.onLinesDeleted(r)&&(t=!0);break;case 11:this.onLinesInserted(r)&&(t=!0);break;case 12:this.onRevealRangeRequest(r)&&(t=!0);break;case 13:this.onScrollChanged(r)&&(t=!0);break;case 15:this.onTokensChanged(r)&&(t=!0);break;case 14:this.onThemeChanged(r)&&(t=!0);break;case 16:this.onTokensColorsChanged(r)&&(t=!0);break;case 17:this.onZonesChanged(r)&&(t=!0);break;default:console.info("View received unknown event: "),console.info(r)}}t&&(this._shouldRender=!0)}}}}),ym,J_,Cg=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/view/viewPart.js"(){ZK(),ym=class extends x7{constructor(e){super(),this._context=e,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}},J_=class{static write(e,t){e.setAttribute("data-mprt",String(t))}static read(e){const t=e.getAttribute("data-mprt");return t===null?0:parseInt(t,10)}static collect(e,t){const n=[];let i=0;for(;e&&e!==e.ownerDocument.body&&e!==t;)e.nodeType===e.ELEMENT_NODE&&(n[i++]=this.read(e)),e=e.parentElement;const r=new Uint8Array(i);for(let o=0;o<i;o++)r[o]=n[i-o-1];return r}}}});function Yw(e){return typeof e=="number"?`${e}px`:e}function Ds(e){return new hHe(e)}var hHe,_d=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/fastDomNode.js"(){hHe=class{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){const t=Yw(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=Yw(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=Yw(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=Yw(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=Yw(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=Yw(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=Yw(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=Yw(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const t=Yw(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const t=Yw(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=Yw(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}}}),Wst,nWt,iWt,fHe,bI,rWt,f5e,XK=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/view/renderingContext.js"(){Wst=class{constructor(e,t){this._restrictedRenderingContextBrand=void 0,this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;const n=this._viewLayout.getCurrentViewport();this.scrollTop=n.top,this.scrollLeft=n.left,this.viewportWidth=n.width,this.viewportHeight=n.height}getScrolledTopFromAbsoluteTop(e){return e-this.scrollTop}getVerticalOffsetForLineNumber(e,t){return this._viewLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t){return this._viewLayout.getVerticalOffsetAfterLineNumber(e,t)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}},nWt=class extends Wst{constructor(e,t,n){super(e,t),this._renderingContextBrand=void 0,this._viewLines=n}linesVisibleRangesForRange(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)}visibleRangeForPosition(e){return this._viewLines.visibleRangeForPosition(e)}},iWt=class{constructor(e,t,n,i){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=n,this.continuesOnNextLine=i}},fHe=class oWt{static from(t){const n=new Array(t.length);for(let i=0,r=t.length;i<r;i++){const o=t[i];n[i]=new oWt(o.left,o.width)}return n}constructor(t,n){this._horizontalRangeBrand=void 0,this.left=Math.round(t),this.width=Math.round(n)}toString(){return`[${this.left},${this.width}]`}},bI=class{constructor(e,t){this._floatHorizontalRangeBrand=void 0,this.left=e,this.width=t}toString(){return`[${this.left},${this.width}]`}static compare(e,t){return e.left-t.left}},rWt=class{constructor(e,t){this.outsideRenderedLine=e,this.originalLeft=t,this.left=Math.round(this.originalLeft)}},f5e=class{constructor(e,t){this.outsideRenderedLine=e,this.ranges=t}}}}),jH,c7n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lines/rangeUtil.js"(){XK(),jH=class{static _createRange(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(e,t){e.selectNodeContents(t)}static _readClientRects(e,t,n,i,r){const o=this._createRange();try{return o.setStart(e,t),o.setEnd(n,i),o.getClientRects()}catch{return null}finally{this._detachRange(o,r)}}static _mergeAdjacentRanges(e){if(e.length===1)return e;e.sort(bI.compare);const t=[];let n=0,i=e[0];for(let r=1,o=e.length;r<o;r++){const s=e[r];i.left+i.width+.9>=s.left?i.width=Math.max(i.width,s.left+s.width-i.left):(t[n++]=i,i=s)}return t[n++]=i,t}static _createHorizontalRangesFromClientRects(e,t,n){if(!e||e.length===0)return null;const i=[];for(let r=0,o=e.length;r<o;r++){const s=e[r];i[r]=new bI(Math.max(0,(s.left-t)/n),s.width/n)}return this._mergeAdjacentRanges(i)}static readHorizontalRanges(e,t,n,i,r,o){const a=e.children.length-1;if(0>a)return null;if(t=Math.min(a,Math.max(0,t)),i=Math.min(a,Math.max(0,i)),t===i&&n===r&&n===0&&!e.children[t].firstChild){const d=e.children[t].getClientRects();return o.markDidDomLayout(),this._createHorizontalRangesFromClientRects(d,o.clientRectDeltaLeft,o.clientRectScale)}t!==i&&i>0&&r===0&&(i--,r=1073741824);let l=e.children[t].firstChild,c=e.children[i].firstChild;if((!l||!c)&&(!l&&n===0&&t>0&&(l=e.children[t-1].firstChild,n=1073741824),!c&&r===0&&i>0&&(c=e.children[i-1].firstChild,r=1073741824)),!l||!c)return null;n=Math.min(l.textContent.length,Math.max(0,n)),r=Math.min(c.textContent.length,Math.max(0,r));const u=this._readClientRects(l,n,c,r,o.endNode);return o.markDidDomLayout(),this._createHorizontalRangesFromClientRects(u,o.clientRectDeltaLeft,o.clientRectScale)}}}}),sb,Iwe,Ust,sWt,E7=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/viewLayout/lineDecorations.js"(){Ki(),sb=class zH{constructor(t,n,i,r){this.startColumn=t,this.endColumn=n,this.className=i,this.type=r,this._lineDecorationBrand=void 0}static _equals(t,n){return t.startColumn===n.startColumn&&t.endColumn===n.endColumn&&t.className===n.className&&t.type===n.type}static equalsArr(t,n){const i=t.length,r=n.length;if(i!==r)return!1;for(let o=0;o<i;o++)if(!zH._equals(t[o],n[o]))return!1;return!0}static extractWrapped(t,n,i){if(t.length===0)return t;const r=n+1,o=i+1,s=i-n,a=[];let l=0;for(const c of t)c.endColumn<=r||c.startColumn>=o||(a[l++]=new zH(Math.max(1,c.startColumn-r+1),Math.min(s+1,c.endColumn-r+1),c.className,c.type));return a}static filter(t,n,i,r){if(t.length===0)return[];const o=[];let s=0;for(let a=0,l=t.length;a<l;a++){const c=t[a],u=c.range;if(u.endLineNumber<n||u.startLineNumber>n||u.isEmpty()&&(c.type===0||c.type===3))continue;const d=u.startLineNumber===n?u.startColumn:i,h=u.endLineNumber===n?u.endColumn:r;o[s++]=new zH(d,h,c.inlineClassName,c.type)}return o}static _typeCompare(t,n){const i=[2,0,1,3];return i[t]-i[n]}static compare(t,n){if(t.startColumn!==n.startColumn)return t.startColumn-n.startColumn;if(t.endColumn!==n.endColumn)return t.endColumn-n.endColumn;const i=zH._typeCompare(t.type,n.type);return i!==0?i:t.className!==n.className?t.className<n.className?-1:1:0}},Iwe=class{constructor(e,t,n,i){this.startOffset=e,this.endOffset=t,this.className=n,this.metadata=i}},Ust=class p5e{constructor(){this.stopOffsets=[],this.classNames=[],this.metadata=[],this.count=0}static _metadata(t){let n=0;for(let i=0,r=t.length;i<r;i++)n|=t[i];return n}consumeLowerThan(t,n,i){for(;this.count>0&&this.stopOffsets[0]<t;){let r=0;for(;r+1<this.count&&this.stopOffsets[r]===this.stopOffsets[r+1];)r++;i.push(new Iwe(n,this.stopOffsets[r],this.classNames.join(" "),p5e._metadata(this.metadata))),n=this.stopOffsets[r]+1,this.stopOffsets.splice(0,r+1),this.classNames.splice(0,r+1),this.metadata.splice(0,r+1),this.count-=r+1}return this.count>0&&n<t&&(i.push(new Iwe(n,t-1,this.classNames.join(" "),p5e._metadata(this.metadata))),n=t),n}insert(t,n,i){if(this.count===0||this.stopOffsets[this.count-1]<=t)this.stopOffsets.push(t),this.classNames.push(n),this.metadata.push(i);else for(let r=0;r<this.count;r++)if(this.stopOffsets[r]>=t){this.stopOffsets.splice(r,0,t),this.classNames.splice(r,0,n),this.metadata.splice(r,0,i);break}this.count++}},sWt=class{static normalize(e,t){if(t.length===0)return[];const n=[],i=new Ust;let r=0;for(let o=0,s=t.length;o<s;o++){const a=t[o];let l=a.startColumn,c=a.endColumn;const u=a.className,d=a.type===1?2:a.type===2?4:0;if(l>1){const p=e.charCodeAt(l-2);ud(p)&&l--}if(c>1){const p=e.charCodeAt(c-2);ud(p)&&c--}const h=l-1,f=c-2;r=i.consumeLowerThan(h,r,n),i.count===0&&(r=h),i.insert(f,u,d)}return i.consumeLowerThan(1073741824,r,n),n}}}});function u7n(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0}function d7n(e,t,n){e[n+0]=t&255,t=t>>>8,e[n+1]=t&255}function I1(e,t){return e[t]*2**24+e[t+1]*2**16+e[t+2]*2**8+e[t+3]}function L1(e,t,n){e[n+3]=t,t=t>>>8,e[n+2]=t,t=t>>>8,e[n+1]=t,t=t>>>8,e[n]=t}function $st(e,t){return e[t]}function qst(e,t,n){e[n]=t}var Lwe,Nwe,pHe,JK=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/buffer.js"(){wE(),Lwe=typeof Buffer<"u",new lm(()=>new Uint8Array(256)),pHe=class aWt{static wrap(t){return Lwe&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new aWt(t)}constructor(t){this.buffer=t,this.byteLength=this.buffer.byteLength}toString(){return Lwe?this.buffer.toString():(Nwe||(Nwe=new TextDecoder),Nwe.decode(this.buffer))}}}});function lWt(){return Pwe||(Pwe=new TextDecoder("UTF-16LE")),Pwe}function h7n(){return Mwe||(Mwe=new TextDecoder("UTF-16BE")),Mwe}function cWt(){return Owe||(Owe=p7t()?lWt():h7n()),Owe}function f7n(e,t,n){const i=new Uint16Array(e.buffer,t,n);return n>0&&(i[0]===65279||i[0]===65534)?p7n(e,t,n):lWt().decode(i)}function p7n(e,t,n){const i=[];let r=0;for(let o=0;o<n;o++){const s=u7n(e,t);t+=2,i[r++]=String.fromCharCode(s)}return i.join("")}var Pwe,Mwe,Owe,Z2,TN=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/stringBuilder.js"(){Ki(),Xr(),JK(),Z2=class{constructor(e){this._capacity=e|0,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return this._completedStrings!==null?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(this._bufferLength===0)return"";const e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return cWt().decode(e)}_flushBuffer(){const e=this._buildBuffer();this._bufferLength=0,this._completedStrings===null?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}appendCharCode(e){const t=this._capacity-this._bufferLength;t<=1&&(t===0||ud(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIICharCode(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendString(e){const t=e.length;if(this._bufferLength+t>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;return}for(let n=0;n<t;n++)this._buffer[this._bufferLength++]=e.charCodeAt(n)}}}}),dd,g7n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/viewLayout/linePart.js"(){dd=class{constructor(e,t,n,i){this.endIndex=e,this.type=t,this.metadata=n,this.containsRTL=i,this._linePartBrand=void 0}isWhitespace(){return!!(this.metadata&1)}isPseudoAfter(){return!!(this.metadata&4)}}}});function eY(e,t){if(e.lineContent.length===0){if(e.lineDecorations.length>0){t.appendString("<span>");let n=0,i=0,r=0;for(const s of e.lineDecorations)(s.type===1||s.type===2)&&(t.appendString('<span class="'),t.appendString(s.className),t.appendString('"></span>'),s.type===1&&(r|=1,n++),s.type===2&&(r|=2,i++));t.appendString("</span>");const o=new Mue(1,n+i);return o.setColumnInfo(1,n,0,0),new Oue(o,!1,r)}return t.appendString("<span><span></span></span>"),new Oue(new Mue(0,0),!1,0)}return C7n(m7n(e),t)}function Wpe(e){const t=new Z2(1e4),n=eY(e,t);return new dWt(n.characterMapping,t.build(),n.containsRTL,n.containsForeignElements)}function m7n(e){const t=e.lineContent;let n,i,r;e.stopRenderingLineAfter!==-1&&e.stopRenderingLineAfter<t.length?(n=!0,i=t.length-e.stopRenderingLineAfter,r=e.stopRenderingLineAfter):(n=!1,i=0,r=t.length);let o=v7n(t,e.containsRTL,e.lineTokens,e.fauxIndentLength,r);e.renderControlCharacters&&!e.isBasicASCII&&(o=b7n(t,o)),(e.renderWhitespace===4||e.renderWhitespace===1||e.renderWhitespace===2&&e.selectionsOnLine||e.renderWhitespace===3&&!e.continuesWithWrappedLine)&&(o=_7n(e,t,r,o));let s=0;if(e.lineDecorations.length>0){for(let a=0,l=e.lineDecorations.length;a<l;a++){const c=e.lineDecorations[a];c.type===3||c.type===1?s|=1:c.type===2&&(s|=2)}o=w7n(t,r,o,e.lineDecorations)}return e.containsRTL||(o=y7n(t,o,!e.isBasicASCII||e.fontLigatures)),new hWt(e.useMonospaceOptimizations,e.canUseHalfwidthRightwardsArrow,t,r,n,i,o,s,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,e.containsRTL,e.spaceWidth,e.renderSpaceCharCode,e.renderWhitespace,e.renderControlCharacters)}function v7n(e,t,n,i,r){const o=[];let s=0;i>0&&(o[s++]=new dd(i,"",0,!1));let a=i;for(let l=0,c=n.getCount();l<c;l++){const u=n.getEndOffset(l);if(u<=i)continue;const d=n.getClassName(l);if(u>=r){const f=t?G8(e.substring(a,r)):!1;o[s++]=new dd(r,d,0,f);break}const h=t?G8(e.substring(a,u)):!1;o[s++]=new dd(u,d,0,h),a=u}return o}function y7n(e,t,n){let i=0;const r=[];let o=0;if(n)for(let s=0,a=t.length;s<a;s++){const l=t[s],c=l.endIndex;if(i+50<c){const u=l.type,d=l.metadata,h=l.containsRTL;let f=-1,p=i;for(let g=i;g<c;g++)e.charCodeAt(g)===32&&(f=g),f!==-1&&g-p>=50&&(r[o++]=new dd(f+1,u,d,h),p=f+1,f=-1);p!==c&&(r[o++]=new dd(c,u,d,h))}else r[o++]=l;i=c}else for(let s=0,a=t.length;s<a;s++){const l=t[s],c=l.endIndex,u=c-i;if(u>50){const d=l.type,h=l.metadata,f=l.containsRTL,p=Math.ceil(u/50);for(let g=1;g<p;g++){const m=i+g*50;r[o++]=new dd(m,d,h,f)}r[o++]=new dd(c,d,h,f)}else r[o++]=l;i=c}return r}function uWt(e){return e<32?e!==9:e===127||e>=8234&&e<=8238||e>=8294&&e<=8297||e>=8206&&e<=8207||e===1564}function b7n(e,t){const n=[];let i=new dd(0,"",0,!1),r=0;for(const o of t){const s=o.endIndex;for(;r<s;r++){const a=e.charCodeAt(r);uWt(a)&&(r>i.endIndex&&(i=new dd(r,o.type,o.metadata,o.containsRTL),n.push(i)),i=new dd(r+1,"mtkcontrol",o.metadata,!1),n.push(i))}r>i.endIndex&&(i=new dd(s,o.type,o.metadata,o.containsRTL),n.push(i))}return n}function _7n(e,t,n,i){const r=e.continuesWithWrappedLine,o=e.fauxIndentLength,s=e.tabSize,a=e.startVisibleColumn,l=e.useMonospaceOptimizations,c=e.selectionsOnLine,u=e.renderWhitespace===1,d=e.renderWhitespace===3,h=e.renderSpaceWidth!==e.spaceWidth,f=[];let p=0,g=0,m=i[g].type,v=i[g].containsRTL,y=i[g].endIndex;const b=i.length;let w=!1,E=Cp(t),A;E===-1?(w=!0,E=n,A=n):A=iC(t);let D=!1,T=0,M=c&&c[T],P=a%s;for(let N=o;N<n;N++){const j=t.charCodeAt(N);M&&N>=M.endOffset&&(T++,M=c&&c[T]);let W;if(N<E||N>A)W=!0;else if(j===9)W=!0;else if(j===32)if(u)if(D)W=!0;else{const J=N+1<n?t.charCodeAt(N+1):0;W=J===32||J===9}else W=!0;else W=!1;if(W&&c&&(W=!!M&&M.startOffset<=N&&M.endOffset>N),W&&d&&(W=w||N>A),W&&v&&N>=E&&N<=A&&(W=!1),D){if(!W||!l&&P>=s){if(h){const J=p>0?f[p-1].endIndex:o;for(let ee=J+1;ee<=N;ee++)f[p++]=new dd(ee,"mtkw",1,!1)}else f[p++]=new dd(N,"mtkw",1,!1);P=P%s}}else(N===y||W&&N>o)&&(f[p++]=new dd(N,m,0,v),P=P%s);for(j===9?P=s:IL(j)?P+=2:P++,D=W;N===y&&(g++,g<b);)m=i[g].type,v=i[g].containsRTL,y=i[g].endIndex}let F=!1;if(D)if(r&&u){const N=n>0?t.charCodeAt(n-1):0,j=n>1?t.charCodeAt(n-2):0;N===32&&j!==32&&j!==9||(F=!0)}else F=!0;if(F)if(h){const N=p>0?f[p-1].endIndex:o;for(let j=N+1;j<=n;j++)f[p++]=new dd(j,"mtkw",1,!1)}else f[p++]=new dd(n,"mtkw",1,!1);else f[p++]=new dd(n,m,0,v);return f}function w7n(e,t,n,i){i.sort(sb.compare);const r=sWt.normalize(e,i),o=r.length;let s=0;const a=[];let l=0,c=0;for(let d=0,h=n.length;d<h;d++){const f=n[d],p=f.endIndex,g=f.type,m=f.metadata,v=f.containsRTL;for(;s<o&&r[s].startOffset<p;){const y=r[s];if(y.startOffset>c&&(c=y.startOffset,a[l++]=new dd(c,g,m,v)),y.endOffset+1<=p)c=y.endOffset+1,a[l++]=new dd(c,g+" "+y.className,m|y.metadata,v),s++;else{c=p,a[l++]=new dd(c,g+" "+y.className,m|y.metadata,v);break}}p>c&&(c=p,a[l++]=new dd(c,g,m,v))}const u=n[n.length-1].endIndex;if(s<o&&r[s].startOffset===u)for(;s<o&&r[s].startOffset===u;){const d=r[s];a[l++]=new dd(c,d.className,d.metadata,!1),s++}return a}function C7n(e,t){const n=e.fontIsMonospace,i=e.canUseHalfwidthRightwardsArrow,r=e.containsForeignElements,o=e.lineContent,s=e.len,a=e.isOverflowing,l=e.overflowingCharCount,c=e.parts,u=e.fauxIndentLength,d=e.tabSize,h=e.startVisibleColumn,f=e.containsRTL,p=e.spaceWidth,g=e.renderSpaceCharCode,m=e.renderWhitespace,v=e.renderControlCharacters,y=new Mue(s+1,c.length);let b=!1,w=0,E=h,A=0,D=0,T=0;f?t.appendString('<span dir="ltr">'):t.appendString("<span>");for(let M=0,P=c.length;M<P;M++){const F=c[M],N=F.endIndex,j=F.type,W=F.containsRTL,J=m!==0&&F.isWhitespace(),ee=J&&!n&&(j==="mtkw"||!r),Q=w===N&&F.isPseudoAfter();if(A=0,t.appendString("<span "),W&&t.appendString('style="unicode-bidi:isolate" '),t.appendString('class="'),t.appendString(ee?"mtkz":j),t.appendASCIICharCode(34),J){let H=0;{let q=w,le=E;for(;q<N;q++){const G=(o.charCodeAt(q)===9?d-le%d:1)|0;H+=G,q>=u&&(le+=G)}}for(ee&&(t.appendString(' style="width:'),t.appendString(String(p*H)),t.appendString('px"')),t.appendASCIICharCode(62);w<N;w++){y.setColumnInfo(w+1,M-T,A,D),T=0;const q=o.charCodeAt(w);let le,Y;if(q===9){le=d-E%d|0,Y=le,!i||Y>1?t.appendCharCode(8594):t.appendCharCode(65515);for(let G=2;G<=Y;G++)t.appendCharCode(160)}else le=2,Y=1,t.appendCharCode(g),t.appendCharCode(8204);A+=le,D+=Y,w>=u&&(E+=Y)}}else for(t.appendASCIICharCode(62);w<N;w++){y.setColumnInfo(w+1,M-T,A,D),T=0;const H=o.charCodeAt(w);let q=1,le=1;switch(H){case 9:q=d-E%d,le=q;for(let Y=1;Y<=q;Y++)t.appendCharCode(160);break;case 32:t.appendCharCode(160);break;case 60:t.appendString("&lt;");break;case 62:t.appendString("&gt;");break;case 38:t.appendString("&amp;");break;case 0:v?t.appendCharCode(9216):t.appendString("&#00;");break;case 65279:case 8232:case 8233:case 133:t.appendCharCode(65533);break;default:IL(H)&&le++,v&&H<32?t.appendCharCode(9216+H):v&&H===127?t.appendCharCode(9249):v&&uWt(H)?(t.appendString("[U+"),t.appendString(S7n(H)),t.appendString("]"),q=8,le=q):t.appendCharCode(H)}A+=q,D+=le,w>=u&&(E+=le)}Q?T++:T=0,w>=s&&!b&&F.isPseudoAfter()&&(b=!0,y.setColumnInfo(w+1,M,A,D)),t.appendString("</span>")}return b||y.setColumnInfo(s+1,c.length-1,A,D),a&&(t.appendString('<span class="mtkoverflow">'),t.appendString(R("showMore","Show more ({0})",x7n(l))),t.appendString("</span>")),t.appendString("</span>"),new Oue(y,f,r)}function S7n(e){return e.toString(16).toUpperCase().padStart(4,"0")}function x7n(e){return e<1024?R("overflow.chars","{0} chars",e):e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}var gHe,hT,g5e,Mue,Oue,dWt,hWt,X2=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/viewLayout/viewLineRenderer.js"(){bn(),Ki(),TN(),E7(),g7n(),gHe=class{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}},hT=class{constructor(e,t,n,i,r,o,s,a,l,c,u,d,h,f,p,g,m,v,y){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.continuesWithWrappedLine=i,this.isBasicASCII=r,this.containsRTL=o,this.fauxIndentLength=s,this.lineTokens=a,this.lineDecorations=l.sort(sb.compare),this.tabSize=c,this.startVisibleColumn=u,this.spaceWidth=d,this.stopRenderingLineAfter=p,this.renderWhitespace=g==="all"?4:g==="boundary"?1:g==="selection"?2:g==="trailing"?3:0,this.renderControlCharacters=m,this.fontLigatures=v,this.selectionsOnLine=y&&y.sort((E,A)=>E.startOffset<A.startOffset?-1:1);const b=Math.abs(f-d),w=Math.abs(h-d);b<w?(this.renderSpaceWidth=f,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=h,this.renderSpaceCharCode=183)}sameSelection(e){if(this.selectionsOnLine===null)return e===null;if(e===null||e.length!==this.selectionsOnLine.length)return!1;for(let t=0;t<this.selectionsOnLine.length;t++)if(!this.selectionsOnLine[t].equals(e[t]))return!1;return!0}equals(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.startVisibleColumn===e.startVisibleColumn&&this.spaceWidth===e.spaceWidth&&this.renderSpaceWidth===e.renderSpaceWidth&&this.renderSpaceCharCode===e.renderSpaceCharCode&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&sb.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)}},g5e=class{constructor(e,t){this.partIndex=e,this.charIndex=t}},Mue=class KM{static getPartIndex(t){return(t&4294901760)>>>16}static getCharIndex(t){return(t&65535)>>>0}constructor(t,n){this.length=t,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(t,n,i,r){const o=(n<<16|i<<0)>>>0;this._data[t-1]=o,this._horizontalOffset[t-1]=r}getHorizontalOffset(t){return this._horizontalOffset.length===0?0:this._horizontalOffset[t-1]}charOffsetToPartData(t){return this.length===0?0:t<0?this._data[0]:t>=this.length?this._data[this.length-1]:this._data[t]}getDomPosition(t){const n=this.charOffsetToPartData(t-1),i=KM.getPartIndex(n),r=KM.getCharIndex(n);return new g5e(i,r)}getColumn(t,n){return this.partDataToCharOffset(t.partIndex,n,t.charIndex)+1}partDataToCharOffset(t,n,i){if(this.length===0)return 0;const r=(t<<16|i<<0)>>>0;let o=0,s=this.length-1;for(;o+1<s;){const g=o+s>>>1,m=this._data[g];if(m===r)return g;m>r?s=g:o=g}if(o===s)return o;const a=this._data[o],l=this._data[s];if(a===r)return o;if(l===r)return s;const c=KM.getPartIndex(a),u=KM.getCharIndex(a),d=KM.getPartIndex(l);let h;c!==d?h=n:h=KM.getCharIndex(l);const f=i-u,p=h-i;return f<=p?o:s}},Oue=class{constructor(e,t,n){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=n}},dWt=class{constructor(e,t,n,i){this.characterMapping=e,this.html=t,this.containsRTL=n,this.containsForeignElements=i}},hWt=class{constructor(e,t,n,i,r,o,s,a,l,c,u,d,h,f,p,g){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.len=i,this.isOverflowing=r,this.overflowingCharCount=o,this.parts=s,this.containsForeignElements=a,this.fauxIndentLength=l,this.tabSize=c,this.startVisibleColumn=u,this.containsRTL=d,this.spaceWidth=h,this.renderSpaceCharCode=f,this.renderWhitespace=p,this.renderControlCharacters=g}}}});function rC(e){return e===Wy.HIGH_CONTRAST_DARK||e===Wy.HIGH_CONTRAST_LIGHT}function e9(e){return e===Wy.DARK||e===Wy.HIGH_CONTRAST_DARK}var Wy,VC=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/theme.js"(){(function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"})(Wy||(Wy={}))}});function fy(e,t=0){return e[e.length-(1+t)]}function E7n(e){if(e.length===0)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function vl(e,t,n=(i,r)=>i===r){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function A7n(e,t){const n=e.length-1;t<n&&(e[t]=e[n]),e.pop()}function Hq(e,t,n){return D7n(e.length,i=>n(e[i],t))}function D7n(e,t){let n=0,i=e-1;for(;n<=i;){const r=(n+i)/2|0,o=t(r);if(o<0)n=r+1;else if(o>0)i=r-1;else return r}return-(n+1)}function m5e(e,t,n){if(e=e|0,e>=t.length)throw new TypeError("invalid index");const i=t[Math.floor(t.length*Math.random())],r=[],o=[],s=[];for(const a of t){const l=n(a,i);l<0?r.push(a):l>0?o.push(a):s.push(a)}return e<r.length?m5e(e,r,n):e<r.length+s.length?s[0]:m5e(e-(r.length+s.length),o,n)}function Gst(e,t){const n=[];let i;for(const r of e.slice(0).sort(t))!i||t(i[0],r)!==0?(i=[r],n.push(i)):i.push(r);return n}function*mHe(e,t){let n,i;for(const r of e)i!==void 0&&t(i,r)?n.push(r):(n&&(yield n),n=[r]),i=r;n&&(yield n)}function fWt(e,t){for(let n=0;n<=e.length;n++)t(n===0?void 0:e[n-1],n===e.length?void 0:e[n])}function T7n(e,t){for(let n=0;n<e.length;n++)t(n===0?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function ew(e){return e.filter(t=>!!t)}function Kst(e){let t=0;for(let n=0;n<e.length;n++)e[n]&&(e[t]=e[n],t+=1);e.length=t}function pWt(e){return!Array.isArray(e)||e.length===0}function Sp(e){return Array.isArray(e)&&e.length>0}function BD(e,t=n=>n){const n=new Set;return e.filter(i=>{const r=t(i);return n.has(r)?!1:(n.add(r),!0)})}function vHe(e,t){return e.length>0?e[0]:t}function Kg(e,t){let n=typeof t=="number"?e:0;typeof t=="number"?n=e:(n=0,t=e);const i=[];if(n<=t)for(let r=n;r<t;r++)i.push(r);else for(let r=n;r>t;r--)i.push(r);return i}function Upe(e,t,n){const i=e.slice(0,t),r=e.slice(t);return i.concat(n,r)}function Rwe(e,t){const n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))}function sJ(e,t){const n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))}function v5e(e,t){for(const n of t)e.push(n)}function yHe(e){return Array.isArray(e)?e:[e]}function k7n(e,t,n){const i=gWt(e,t),r=e.length,o=n.length;e.length=r+o;for(let s=r-1;s>=i;s--)e[s+o]=e[s];for(let s=0;s<o;s++)e[s+i]=n[s]}function Yst(e,t,n,i){const r=gWt(e,t);let o=e.splice(r,n);return o===void 0&&(o=[]),k7n(e,r,i),o}function gWt(e,t){return t<0?Math.max(t+e.length,0):Math.min(t,e.length)}function ug(e,t){return(n,i)=>t(e(n),e(i))}function I7n(...e){return(t,n)=>{for(const i of e){const r=i(t,n);if(!zU.isNeitherLessOrGreaterThan(r))return r}return zU.neitherLessOrGreaterThan}}function mWt(e){return(t,n)=>-e(t,n)}var zU,Yy,vWt,Xx,V6,yWt,rr=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/arrays.js"(){var e;(function(t){function n(s){return s<0}t.isLessThan=n;function i(s){return s<=0}t.isLessThanOrEqual=i;function r(s){return s>0}t.isGreaterThan=r;function o(s){return s===0}t.isNeitherLessOrGreaterThan=o,t.greaterThan=1,t.lessThan=-1,t.neitherLessOrGreaterThan=0})(zU||(zU={})),Yy=(t,n)=>t-n,vWt=(t,n)=>Yy(t?1:0,n?1:0),Xx=class{constructor(t){this.items=t,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(t){let n=this.firstIdx;for(;n<this.items.length&&t(this.items[n]);)n++;const i=n===this.firstIdx?null:this.items.slice(this.firstIdx,n);return this.firstIdx=n,i}takeFromEndWhile(t){let n=this.lastIdx;for(;n>=0&&t(this.items[n]);)n--;const i=n===this.lastIdx?null:this.items.slice(n+1,this.lastIdx+1);return this.lastIdx=n,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const t=this.items[this.firstIdx];return this.firstIdx++,t}takeCount(t){const n=this.items.slice(this.firstIdx,this.firstIdx+t);return this.firstIdx+=t,n}},V6=(e=class{constructor(n){this.iterate=n}toArray(){const n=[];return this.iterate(i=>(n.push(i),!0)),n}filter(n){return new e(i=>this.iterate(r=>n(r)?i(r):!0))}map(n){return new e(i=>this.iterate(r=>i(n(r))))}findLast(n){let i;return this.iterate(r=>(n(r)&&(i=r),!0)),i}findLastMaxBy(n){let i,r=!0;return this.iterate(o=>((r||zU.isGreaterThan(n(o,i)))&&(r=!1,i=o),!0)),i}},e.empty=new e(n=>{}),e),yWt=class y5e{constructor(n){this._indexMap=n}static createSortPermutation(n,i){const r=Array.from(n.keys()).sort((o,s)=>i(n[o],n[s]));return new y5e(r)}apply(n){return n.map((i,r)=>n[this._indexMap[r]])}inverse(){const n=this._indexMap.slice();for(let i=0;i<this._indexMap.length;i++)n[this._indexMap[i]]=i;return new y5e(n)}}}});function WA(e){if(!e||typeof e!="object"||e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.entries(e).forEach(([n,i])=>{t[n]=i&&typeof i=="object"?WA(i):i}),t}function L7n(e){if(!e||typeof e!="object")return e;const t=[e];for(;t.length>0;){const n=t.shift();Object.freeze(n);for(const i in n)if(bHe.call(n,i)){const r=n[i];typeof r=="object"&&!Object.isFrozen(r)&&!P2n(r)&&t.push(r)}}return e}function bWt(e,t){return b5e(e,t,new Set)}function b5e(e,t,n){if(b0(e))return e;const i=t(e);if(typeof i<"u")return i;if(Array.isArray(e)){const r=[];for(const o of e)r.push(b5e(o,t,n));return r}if(jd(e)){if(n.has(e))throw new Error("Cannot clone recursive data-structure");n.add(e);const r={};for(const o in e)bHe.call(e,o)&&(r[o]=b5e(e[o],t,n));return n.delete(e),r}return e}function $pe(e,t,n=!0){return jd(e)?(jd(t)&&Object.keys(t).forEach(i=>{i in e?n&&(jd(e[i])&&jd(t[i])?$pe(e[i],t[i],n):e[i]=t[i]):e[i]=t[i]}),e):t}function Ev(e,t){if(e===t)return!0;if(e==null||t===null||t===void 0||typeof e!=typeof t||typeof e!="object"||Array.isArray(e)!==Array.isArray(t))return!1;let n,i;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!Ev(e[n],t[n]))return!1}else{const r=[];for(i in e)r.push(i);r.sort();const o=[];for(i in t)o.push(i);if(o.sort(),!Ev(r,o))return!1;for(n=0;n<r.length;n++)if(!Ev(e[r[n]],t[r[n]]))return!1}return!0}function N7n(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}function _5e(e){const t=[];for(const n of N7n(e))typeof e[n]=="function"&&t.push(n);return t}function P7n(e,t){const n=r=>function(){const o=Array.prototype.slice.call(arguments,0);return t(r,o)},i={};for(const r of e)i[r]=n(r);return i}var bHe,bm=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/objects.js"(){as(),bHe=Object.prototype.hasOwnProperty}}),tf,qpe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/textModelDefaults.js"(){tf={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}}});function M7n(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of Uq)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}function _He(e){let t=Gpe;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}function Wq(e,t,n,i,r){if(t=_He(t),r||(r=Vo.first(w5e)),n.length>r.maxLen){let c=e-r.maxLen/2;return c<0?c=0:i+=c,n=n.substring(c,e+r.maxLen/2),Wq(e,t,n,i,r)}const o=Date.now(),s=e-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-o>=r.timeBudget);c++){const u=s-r.windowSize*c;t.lastIndex=Math.max(0,u);const d=O7n(t,n,s,a);if(!d&&l||(l=d,u<=0))break;a=u}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return t.lastIndex=0,c}return null}function O7n(e,t,n,i){let r;for(;r=e.exec(t);){const o=r.index||0;if(o<=n&&e.lastIndex>=n)return r;if(i>0&&o>i)return null}return null}var Uq,Gpe,w5e,A7=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/wordHelper.js"(){bg(),_b(),Uq="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",Gpe=M7n(),w5e=new yp,w5e.unshift({maxLen:1e3,windowSize:15,timeBudget:150})}});function Zoe(e,t){if(typeof e!="object"||typeof t!="object"||!e||!t)return new H6(t,e!==t);if(Array.isArray(e)||Array.isArray(t)){const i=Array.isArray(e)&&Array.isArray(t)&&vl(e,t);return new H6(t,!i)}let n=!1;for(const i in t)if(t.hasOwnProperty(i)){const r=Zoe(e[i],t[i]);r.didChange&&(e[i]=r.newValue,n=!0)}return new H6(e,n)}function Bi(e,t){return typeof e>"u"?t:e==="false"?!1:!!e}function YM(e,t,n,i){if(typeof e>"u")return t;let r=parseInt(e,10);return isNaN(r)?t:(r=Math.max(n,r),r=Math.min(i,r),r|0)}function R7n(e,t,n,i){if(typeof e>"u")return t;const r=_y.float(e,t);return _y.clamp(r,n,i)}function Xl(e,t,n,i){return typeof e!="string"?t:i&&e in i?i[e]:n.indexOf(e)===-1?t:e}function F7n(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}function B7n(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}function j7n(e){switch(e){case"line":return ph.Line;case"block":return ph.Block;case"underline":return ph.Underline;case"line-thin":return ph.LineThin;case"block-outline":return ph.BlockOutline;case"underline-thin":return ph.UnderlineThin}}function z7n(e){return e==="ctrlCmd"?xo?"metaKey":"ctrlKey":"altKey"}function Rue(e){const t=e.get(99);return t==="editable"?e.get(92):t!=="on"}function Qst(e,t){if(typeof e!="string")return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}function x5(e,t,n){const i=n.indexOf(e);return i===-1?t:n[i]}function Pn(e){return IO[e.id]=e,e}var _1,wHe,C5e,qa,H6,E5,MP,Qo,ja,_y,Hp,Fl,Oz,Zst,Xst,ph,Jst,eat,tat,QR,Fue,nat,iat,rat,oat,sat,S5e,aat,u_,lat,cat,uat,dat,hat,fat,pat,gat,mat,vat,yat,bat,_at,wat,Cat,jm,tg,Sat,xat,Eat,Aat,Dat,Tat,kat,Iat,Lat,Nat,Pat,Mat,Oat,Rat,Fat,ap,IO,I_,Su=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions.js"(){var e,t,n;rr(),bm(),Xr(),qpe(),A7(),bn(),_1=8,wHe=class{constructor(i){this._values=i}hasChanged(i){return this._values[i]}},C5e=class{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}},qa=class{constructor(i,r,o,s){this.id=i,this.name=r,this.defaultValue=o,this.schema=s}applyUpdate(i,r){return Zoe(i,r)}compute(i,r,o){return o}},H6=class{constructor(i,r){this.newValue=i,this.didChange=r}},E5=class{constructor(i){this.schema=void 0,this.id=i,this.name="_never_",this.defaultValue=void 0}applyUpdate(i,r){return Zoe(i,r)}validate(i){return this.defaultValue}},MP=class{constructor(i,r,o,s){this.id=i,this.name=r,this.defaultValue=o,this.schema=s}applyUpdate(i,r){return Zoe(i,r)}validate(i){return typeof i>"u"?this.defaultValue:i}compute(i,r,o){return o}},Qo=class extends MP{constructor(i,r,o,s=void 0){typeof s<"u"&&(s.type="boolean",s.default=o),super(i,r,o,s)}validate(i){return Bi(i,this.defaultValue)}},ja=class _Wt extends MP{static clampedInt(r,o,s,a){return YM(r,o,s,a)}constructor(r,o,s,a,l,c=void 0){typeof c<"u"&&(c.type="integer",c.default=s,c.minimum=a,c.maximum=l),super(r,o,s,c),this.minimum=a,this.maximum=l}validate(r){return _Wt.clampedInt(r,this.defaultValue,this.minimum,this.maximum)}},_y=class wWt extends MP{static clamp(r,o,s){return r<o?o:r>s?s:r}static float(r,o){if(typeof r=="number")return r;if(typeof r>"u")return o;const s=parseFloat(r);return isNaN(s)?o:s}constructor(r,o,s,a,l){typeof l<"u"&&(l.type="number",l.default=s),super(r,o,s,l),this.validationFn=a}validate(r){return this.validationFn(wWt.float(r,this.defaultValue))}},Hp=class CWt extends MP{static string(r,o){return typeof r!="string"?o:r}constructor(r,o,s,a=void 0){typeof a<"u"&&(a.type="string",a.default=s),super(r,o,s,a)}validate(r){return CWt.string(r,this.defaultValue)}},Fl=class extends MP{constructor(i,r,o,s,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=o),super(i,r,o,a),this._allowedValues=s}validate(i){return Xl(i,this.defaultValue,this._allowedValues)}},Oz=class extends qa{constructor(i,r,o,s,a,l,c=void 0){typeof c<"u"&&(c.type="string",c.enum=a,c.default=s),super(i,r,o,c),this._allowedValues=a,this._convert=l}validate(i){return typeof i!="string"?this.defaultValue:this._allowedValues.indexOf(i)===-1?this.defaultValue:this._convert(i)}},Zst=class extends qa{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[R("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),R("accessibilitySupport.on","Optimize for usage with a Screen Reader."),R("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:R("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(i){switch(i){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(i,r,o){return o===0?i.accessibilitySupport:o}},Xst=class extends qa{constructor(){const i={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",i,{"editor.comments.insertSpace":{type:"boolean",default:i.insertSpace,description:R("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:i.ignoreEmptyLines,description:R("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;const r=i;return{insertSpace:Bi(r.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Bi(r.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}},(function(i){i[i.Line=1]="Line",i[i.Block=2]="Block",i[i.Underline=3]="Underline",i[i.LineThin=4]="LineThin",i[i.BlockOutline=5]="BlockOutline",i[i.UnderlineThin=6]="UnderlineThin"})(ph||(ph={})),Jst=class extends E5{constructor(){super(143)}compute(i,r,o){const s=["monaco-editor"];return r.get(39)&&s.push(r.get(39)),i.extraEditorClassName&&s.push(i.extraEditorClassName),r.get(74)==="default"?s.push("mouse-default"):r.get(74)==="copy"&&s.push("mouse-copy"),r.get(112)&&s.push("showUnused"),r.get(141)&&s.push("showDeprecated"),s.join(" ")}},eat=class extends Qo{constructor(){super(37,"emptySelectionClipboard",!0,{description:R("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(i,r,o){return o&&i.emptySelectionClipboard}},tat=class extends qa{constructor(){const i={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",i,{"editor.find.cursorMoveOnType":{type:"boolean",default:i.cursorMoveOnType,description:R("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:i.seedSearchStringFromSelection,enumDescriptions:[R("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),R("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),R("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:R("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:i.autoFindInSelection,enumDescriptions:[R("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),R("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),R("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:R("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:i.globalFindClipboard,description:R("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:xo},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:i.addExtraSpaceOnTop,description:R("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:i.loop,description:R("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;const r=i;return{cursorMoveOnType:Bi(r.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof i.seedSearchStringFromSelection=="boolean"?i.seedSearchStringFromSelection?"always":"never":Xl(r.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof i.autoFindInSelection=="boolean"?i.autoFindInSelection?"always":"never":Xl(r.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Bi(r.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Bi(r.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Bi(r.loop,this.defaultValue.loop)}}},QR=(e=class extends qa{constructor(){super(51,"fontLigatures",e.OFF,{anyOf:[{type:"boolean",description:R("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:R("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:R("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(r){return typeof r>"u"?this.defaultValue:typeof r=="string"?r==="false"||r.length===0?e.OFF:r==="true"?e.ON:r:r?e.ON:e.OFF}},e.OFF='"liga" off, "calt" off',e.ON='"liga" on, "calt" on',e),Fue=(t=class extends qa{constructor(){super(54,"fontVariations",t.OFF,{anyOf:[{type:"boolean",description:R("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:R("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:R("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(r){return typeof r>"u"?this.defaultValue:typeof r=="string"?r==="false"?t.OFF:r==="true"?t.TRANSLATE:r:r?t.TRANSLATE:t.OFF}compute(r,o,s){return r.fontInfo.fontVariationSettings}},t.OFF="normal",t.TRANSLATE="translate",t),nat=class extends E5{constructor(){super(50)}compute(i,r,o){return i.fontInfo}},iat=class extends MP{constructor(){super(52,"fontSize",ap.fontSize,{type:"number",minimum:6,maximum:100,default:ap.fontSize,description:R("fontSize","Controls the font size in pixels.")})}validate(i){const r=_y.float(i,this.defaultValue);return r===0?ap.fontSize:_y.clamp(r,6,100)}compute(i,r,o){return i.fontInfo.fontSize}},rat=(n=class extends qa{constructor(){super(53,"fontWeight",ap.fontWeight,{anyOf:[{type:"number",minimum:n.MINIMUM_VALUE,maximum:n.MAXIMUM_VALUE,errorMessage:R("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:n.SUGGESTION_VALUES}],default:ap.fontWeight,description:R("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(r){return r==="normal"||r==="bold"?r:String(ja.clampedInt(r,ap.fontWeight,n.MINIMUM_VALUE,n.MAXIMUM_VALUE))}},n.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],n.MINIMUM_VALUE=1,n.MAXIMUM_VALUE=1e3,n),oat=class extends qa{constructor(){const i={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",multipleTests:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:"",alternativeTestsCommand:""},r={type:"string",enum:["peek","gotoAndPeek","goto"],default:i.multiple,enumDescriptions:[R("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),R("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),R("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},o=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",i,{"editor.gotoLocation.multiple":{deprecationMessage:R("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:R("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...r},"editor.gotoLocation.multipleTypeDefinitions":{description:R("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...r},"editor.gotoLocation.multipleDeclarations":{description:R("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...r},"editor.gotoLocation.multipleImplementations":{description:R("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...r},"editor.gotoLocation.multipleReferences":{description:R("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...r},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:i.alternativeDefinitionCommand,enum:o,description:R("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:i.alternativeTypeDefinitionCommand,enum:o,description:R("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:i.alternativeDeclarationCommand,enum:o,description:R("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:i.alternativeImplementationCommand,enum:o,description:R("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:i.alternativeReferenceCommand,enum:o,description:R("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;const r=i;return{multiple:Xl(r.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:r.multipleDefinitions??Xl(r.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:r.multipleTypeDefinitions??Xl(r.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:r.multipleDeclarations??Xl(r.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:r.multipleImplementations??Xl(r.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:r.multipleReferences??Xl(r.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:r.multipleTests??Xl(r.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Hp.string(r.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Hp.string(r.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Hp.string(r.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Hp.string(r.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Hp.string(r.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:Hp.string(r.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}}},sat=class extends qa{constructor(){const i={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",i,{"editor.hover.enabled":{type:"boolean",default:i.enabled,description:R("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:i.delay,minimum:0,maximum:1e4,description:R("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:i.sticky,description:R("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:i.hidingDelay,description:R("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:i.above,description:R("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;const r=i;return{enabled:Bi(r.enabled,this.defaultValue.enabled),delay:ja.clampedInt(r.delay,this.defaultValue.delay,0,1e4),sticky:Bi(r.sticky,this.defaultValue.sticky),hidingDelay:ja.clampedInt(r.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:Bi(r.above,this.defaultValue.above)}}},S5e=class Xoe extends E5{constructor(){super(146)}compute(r,o,s){return Xoe.computeLayout(o,{memory:r.memory,outerWidth:r.outerWidth,outerHeight:r.outerHeight,isDominatedByLongLines:r.isDominatedByLongLines,lineHeight:r.fontInfo.lineHeight,viewLineCount:r.viewLineCount,lineNumbersDigitCount:r.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:r.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:r.fontInfo.maxDigitWidth,pixelRatio:r.pixelRatio,glyphMarginDecorationLaneCount:r.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(r){const o=r.height/r.lineHeight,s=Math.floor(r.paddingTop/r.lineHeight);let a=Math.floor(r.paddingBottom/r.lineHeight);r.scrollBeyondLastLine&&(a=Math.max(a,o-1));const l=(s+r.viewLineCount+a)/(r.pixelRatio*r.height),c=Math.floor(r.viewLineCount/l);return{typicalViewportLineCount:o,extraLinesBeforeFirstLine:s,extraLinesBeyondLastLine:a,desiredRatio:l,minimapLineCount:c}}static _computeMinimapLayout(r,o){const s=r.outerWidth,a=r.outerHeight,l=r.pixelRatio;if(!r.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(l*a),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:a};const c=o.stableMinimapLayoutInput,u=c&&r.outerHeight===c.outerHeight&&r.lineHeight===c.lineHeight&&r.typicalHalfwidthCharacterWidth===c.typicalHalfwidthCharacterWidth&&r.pixelRatio===c.pixelRatio&&r.scrollBeyondLastLine===c.scrollBeyondLastLine&&r.paddingTop===c.paddingTop&&r.paddingBottom===c.paddingBottom&&r.minimap.enabled===c.minimap.enabled&&r.minimap.side===c.minimap.side&&r.minimap.size===c.minimap.size&&r.minimap.showSlider===c.minimap.showSlider&&r.minimap.renderCharacters===c.minimap.renderCharacters&&r.minimap.maxColumn===c.minimap.maxColumn&&r.minimap.scale===c.minimap.scale&&r.verticalScrollbarWidth===c.verticalScrollbarWidth&&r.isViewportWrapping===c.isViewportWrapping,d=r.lineHeight,h=r.typicalHalfwidthCharacterWidth,f=r.scrollBeyondLastLine,p=r.minimap.renderCharacters;let g=l>=2?Math.round(r.minimap.scale*2):r.minimap.scale;const m=r.minimap.maxColumn,v=r.minimap.size,y=r.minimap.side,b=r.verticalScrollbarWidth,w=r.viewLineCount,E=r.remainingWidth,A=r.isViewportWrapping,D=p?2:3;let T=Math.floor(l*a);const M=T/l;let P=!1,F=!1,N=D*g,j=g/l,W=1;if(v==="fill"||v==="fit"){const{typicalViewportLineCount:Y,extraLinesBeforeFirstLine:G,extraLinesBeyondLastLine:pe,desiredRatio:U,minimapLineCount:K}=Xoe.computeContainedMinimapLineCount({viewLineCount:w,scrollBeyondLastLine:f,paddingTop:r.paddingTop,paddingBottom:r.paddingBottom,height:a,lineHeight:d,pixelRatio:l});if(w/K>1)P=!0,F=!0,g=1,N=1,j=g/l;else{let ce=!1,de=g+1;if(v==="fit"){const oe=Math.ceil((G+w+pe)*N);A&&u&&E<=o.stableFitRemainingWidth?(ce=!0,de=o.stableFitMaxMinimapScale):ce=oe>T}if(v==="fill"||ce){P=!0;const oe=g;N=Math.min(d*l,Math.max(1,Math.floor(1/U))),A&&u&&E<=o.stableFitRemainingWidth&&(de=o.stableFitMaxMinimapScale),g=Math.min(de,Math.max(1,Math.floor(N/D))),g>oe&&(W=Math.min(2,g/oe)),j=g/l/W,T=Math.ceil(Math.max(Y,G+w+pe)*N),A?(o.stableMinimapLayoutInput=r,o.stableFitRemainingWidth=E,o.stableFitMaxMinimapScale=g):(o.stableMinimapLayoutInput=null,o.stableFitRemainingWidth=0)}}}const J=Math.floor(m*j),ee=Math.min(J,Math.max(0,Math.floor((E-b-2)*j/(h+j)))+_1);let Q=Math.floor(l*ee);const H=Q/l;Q=Math.floor(Q*W);const q=p?1:2,le=y==="left"?0:s-ee-b;return{renderMinimap:q,minimapLeft:le,minimapWidth:ee,minimapHeightIsEditorHeight:P,minimapIsSampling:F,minimapScale:g,minimapLineHeight:N,minimapCanvasInnerWidth:Q,minimapCanvasInnerHeight:T,minimapCanvasOuterWidth:H,minimapCanvasOuterHeight:M}}static computeLayout(r,o){const s=o.outerWidth|0,a=o.outerHeight|0,l=o.lineHeight|0,c=o.lineNumbersDigitCount|0,u=o.typicalHalfwidthCharacterWidth,d=o.maxDigitWidth,h=o.pixelRatio,f=o.viewLineCount,p=r.get(138),g=p==="inherit"?r.get(137):p,m=g==="inherit"?r.get(133):g,v=r.get(136),y=o.isDominatedByLongLines,b=r.get(57),w=r.get(68).renderType!==0,E=r.get(69),A=r.get(106),D=r.get(84),T=r.get(73),M=r.get(104),P=M.verticalScrollbarSize,F=M.verticalHasArrows,N=M.arrowSize,j=M.horizontalScrollbarSize,W=r.get(43),J=r.get(111)!=="never";let ee=r.get(66);W&&J&&(ee+=16);let Q=0;if(w){const Ce=Math.max(c,E);Q=Math.round(Ce*d)}let H=0;b&&(H=l*o.glyphMarginDecorationLaneCount);let q=0,le=q+H,Y=le+Q,G=Y+ee;const pe=s-H-Q-ee;let U=!1,K=!1,ie=-1;g==="inherit"&&y?(U=!0,K=!0):m==="on"||m==="bounded"?K=!0:m==="wordWrapColumn"&&(ie=v);const ce=Xoe._computeMinimapLayout({outerWidth:s,outerHeight:a,lineHeight:l,typicalHalfwidthCharacterWidth:u,pixelRatio:h,scrollBeyondLastLine:A,paddingTop:D.top,paddingBottom:D.bottom,minimap:T,verticalScrollbarWidth:P,viewLineCount:f,remainingWidth:pe,isViewportWrapping:K},o.memory||new C5e);ce.renderMinimap!==0&&ce.minimapLeft===0&&(q+=ce.minimapWidth,le+=ce.minimapWidth,Y+=ce.minimapWidth,G+=ce.minimapWidth);const de=pe-ce.minimapWidth,oe=Math.max(1,Math.floor((de-P-2)/u)),me=F?N:0;return K&&(ie=Math.max(1,oe),m==="bounded"&&(ie=Math.min(ie,v))),{width:s,height:a,glyphMarginLeft:q,glyphMarginWidth:H,glyphMarginDecorationLaneCount:o.glyphMarginDecorationLaneCount,lineNumbersLeft:le,lineNumbersWidth:Q,decorationsLeft:Y,decorationsWidth:ee,contentLeft:G,contentWidth:de,minimap:ce,viewportColumn:oe,isWordWrapMinified:U,isViewportWrapping:K,wrappingColumn:ie,verticalScrollbarWidth:P,horizontalScrollbarHeight:j,overviewRuler:{top:me,width:P,height:a-2*me,right:0}}}},aat=class extends qa{constructor(){super(140,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[R("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),R("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:R("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(i){return Xl(i,"simple",["simple","advanced"])}compute(i,r,o){return r.get(2)===2?"advanced":o}},(function(i){i.Off="off",i.OnCode="onCode",i.On="on"})(u_||(u_={})),lat=class extends qa{constructor(){const i={enabled:u_.OnCode};super(65,"lightbulb",i,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[u_.Off,u_.OnCode,u_.On],default:i.enabled,enumDescriptions:[R("editor.lightbulb.enabled.off","Disable the code action menu."),R("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),R("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:R("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(i){return!i||typeof i!="object"?this.defaultValue:{enabled:Xl(i.enabled,this.defaultValue.enabled,[u_.Off,u_.OnCode,u_.On])}}},cat=class extends qa{constructor(){const i={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(116,"stickyScroll",i,{"editor.stickyScroll.enabled":{type:"boolean",default:i.enabled,description:R("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:i.maxLineCount,minimum:1,maximum:20,description:R("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:i.defaultModel,description:R("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:i.scrollWithEditor,description:R("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;const r=i;return{enabled:Bi(r.enabled,this.defaultValue.enabled),maxLineCount:ja.clampedInt(r.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:Xl(r.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:Bi(r.scrollWithEditor,this.defaultValue.scrollWithEditor)}}},uat=class extends qa{constructor(){const i={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(142,"inlayHints",i,{"editor.inlayHints.enabled":{type:"string",default:i.enabled,description:R("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[R("editor.inlayHints.on","Inlay hints are enabled"),R("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",xo?"Ctrl+Option":"Ctrl+Alt"),R("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",xo?"Ctrl+Option":"Ctrl+Alt"),R("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:i.fontSize,markdownDescription:R("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:i.fontFamily,markdownDescription:R("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:i.padding,description:R("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;const r=i;return typeof r.enabled=="boolean"&&(r.enabled=r.enabled?"on":"off"),{enabled:Xl(r.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:ja.clampedInt(r.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Hp.string(r.fontFamily,this.defaultValue.fontFamily),padding:Bi(r.padding,this.defaultValue.padding)}}},dat=class extends qa{constructor(){super(66,"lineDecorationsWidth",10)}validate(i){return typeof i=="string"&&/^\d+(\.\d+)?ch$/.test(i)?-parseFloat(i.substring(0,i.length-2)):ja.clampedInt(i,this.defaultValue,0,1e3)}compute(i,r,o){return o<0?ja.clampedInt(-o*i.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):o}},hat=class extends _y{constructor(){super(67,"lineHeight",ap.lineHeight,i=>_y.clamp(i,0,150),{markdownDescription:R("lineHeight",`Controls the line height. 
 - Use 0 to automatically compute the line height from the font size.
 - Values between 0 and 8 will be used as a multiplier with the font size.
 - Values greater than or equal to 8 will be used as effective values.`)})}compute(i,r,o){return i.fontInfo.lineHeight}},fat=class extends qa{constructor(){const i={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9,sectionHeaderLetterSpacing:1};super(73,"minimap",i,{"editor.minimap.enabled":{type:"boolean",default:i.enabled,description:R("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:i.autohide,description:R("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[R("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),R("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),R("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:i.size,description:R("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:i.side,description:R("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:i.showSlider,description:R("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:i.scale,minimum:1,maximum:3,enum:[1,2,3],description:R("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:i.renderCharacters,description:R("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:i.maxColumn,description:R("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:i.showRegionSectionHeaders,description:R("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:i.showMarkSectionHeaders,description:R("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:i.sectionHeaderFontSize,description:R("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:i.sectionHeaderLetterSpacing,description:R("minimap.sectionHeaderLetterSpacing","Controls the amount of space (in pixels) between characters of section header. This helps the readability of the header in small font sizes.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;const r=i;return{enabled:Bi(r.enabled,this.defaultValue.enabled),autohide:Bi(r.autohide,this.defaultValue.autohide),size:Xl(r.size,this.defaultValue.size,["proportional","fill","fit"]),side:Xl(r.side,this.defaultValue.side,["right","left"]),showSlider:Xl(r.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:Bi(r.renderCharacters,this.defaultValue.renderCharacters),scale:ja.clampedInt(r.scale,1,1,3),maxColumn:ja.clampedInt(r.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:Bi(r.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:Bi(r.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:_y.clamp(r.sectionHeaderFontSize??this.defaultValue.sectionHeaderFontSize,4,32),sectionHeaderLetterSpacing:_y.clamp(r.sectionHeaderLetterSpacing??this.defaultValue.sectionHeaderLetterSpacing,0,5)}}},pat=class extends qa{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:R("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:R("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;const r=i;return{top:ja.clampedInt(r.top,0,0,1e3),bottom:ja.clampedInt(r.bottom,0,0,1e3)}}},gat=class extends qa{constructor(){const i={enabled:!0,cycle:!0};super(86,"parameterHints",i,{"editor.parameterHints.enabled":{type:"boolean",default:i.enabled,description:R("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:i.cycle,description:R("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;const r=i;return{enabled:Bi(r.enabled,this.defaultValue.enabled),cycle:Bi(r.cycle,this.defaultValue.cycle)}}},mat=class extends E5{constructor(){super(144)}compute(i,r,o){return i.pixelRatio}},vat=class extends qa{constructor(){super(88,"placeholder",void 0)}validate(i){return typeof i>"u"?this.defaultValue:typeof i=="string"?i:this.defaultValue}},yat=class extends qa{constructor(){const i={other:"on",comments:"off",strings:"off"},r=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[R("on","Quick suggestions show inside the suggest widget"),R("inline","Quick suggestions show as ghost text"),R("off","Quick suggestions are disabled")]}];super(90,"quickSuggestions",i,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:r,default:i.strings,description:R("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:r,default:i.comments,description:R("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:r,default:i.other,description:R("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:i,markdownDescription:R("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the {0}-setting which controls if suggestions are triggered by special characters.","`#editor.suggestOnTriggerCharacters#`")}),this.defaultValue=i}validate(i){if(typeof i=="boolean"){const d=i?"on":"off";return{comments:d,strings:d,other:d}}if(!i||typeof i!="object")return this.defaultValue;const{other:r,comments:o,strings:s}=i,a=["on","inline","off"];let l,c,u;return typeof r=="boolean"?l=r?"on":"off":l=Xl(r,this.defaultValue.other,a),typeof o=="boolean"?c=o?"on":"off":c=Xl(o,this.defaultValue.comments,a),typeof s=="boolean"?u=s?"on":"off":u=Xl(s,this.defaultValue.strings,a),{other:l,comments:c,strings:u}}},bat=class extends qa{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[R("lineNumbers.off","Line numbers are not rendered."),R("lineNumbers.on","Line numbers are rendered as absolute number."),R("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),R("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:R("lineNumbers","Controls the display of line numbers.")})}validate(i){let r=this.defaultValue.renderType,o=this.defaultValue.renderFn;return typeof i<"u"&&(typeof i=="function"?(r=4,o=i):i==="interval"?r=3:i==="relative"?r=2:i==="on"?r=1:r=0),{renderType:r,renderFn:o}}},_at=class extends qa{constructor(){const i=[],r={type:"number",description:R("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(103,"rulers",i,{type:"array",items:{anyOf:[r,{type:["object"],properties:{column:r,color:{type:"string",description:R("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:i,description:R("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(i){if(Array.isArray(i)){const r=[];for(const o of i)if(typeof o=="number")r.push({column:ja.clampedInt(o,0,0,1e4),color:null});else if(o&&typeof o=="object"){const s=o;r.push({column:ja.clampedInt(s.column,0,0,1e4),color:s.color})}return r.sort((o,s)=>o.column-s.column),r}return this.defaultValue}},wat=class extends qa{constructor(){super(93,"readOnlyMessage",void 0)}validate(i){return!i||typeof i!="object"?this.defaultValue:i}},Cat=class extends qa{constructor(){const i={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(104,"scrollbar",i,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[R("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),R("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),R("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:R("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[R("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),R("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),R("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:R("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:i.verticalScrollbarSize,description:R("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:i.horizontalScrollbarSize,description:R("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:i.scrollByPage,description:R("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:i.ignoreHorizontalScrollbarInContentHeight,description:R("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;const r=i,o=ja.clampedInt(r.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),s=ja.clampedInt(r.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:ja.clampedInt(r.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:Qst(r.vertical,this.defaultValue.vertical),horizontal:Qst(r.horizontal,this.defaultValue.horizontal),useShadows:Bi(r.useShadows,this.defaultValue.useShadows),verticalHasArrows:Bi(r.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:Bi(r.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:Bi(r.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:Bi(r.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:o,horizontalSliderSize:ja.clampedInt(r.horizontalSliderSize,o,0,1e3),verticalScrollbarSize:s,verticalSliderSize:ja.clampedInt(r.verticalSliderSize,s,0,1e3),scrollByPage:Bi(r.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:Bi(r.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}},jm="inUntrustedWorkspace",tg={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"},Sat=class extends qa{constructor(){const i={nonBasicASCII:jm,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:jm,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(126,"unicodeHighlight",i,{[tg.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,jm],default:i.nonBasicASCII,description:R("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[tg.invisibleCharacters]:{restricted:!0,type:"boolean",default:i.invisibleCharacters,description:R("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[tg.ambiguousCharacters]:{restricted:!0,type:"boolean",default:i.ambiguousCharacters,description:R("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[tg.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,jm],default:i.includeComments,description:R("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[tg.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,jm],default:i.includeStrings,description:R("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[tg.allowedCharacters]:{restricted:!0,type:"object",default:i.allowedCharacters,description:R("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[tg.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:i.allowedLocales,description:R("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(i,r){let o=!1;r.allowedCharacters&&i&&(Ev(i.allowedCharacters,r.allowedCharacters)||(i={...i,allowedCharacters:r.allowedCharacters},o=!0)),r.allowedLocales&&i&&(Ev(i.allowedLocales,r.allowedLocales)||(i={...i,allowedLocales:r.allowedLocales},o=!0));const s=super.applyUpdate(i,r);return o?new H6(s.newValue,!0):s}validate(i){if(!i||typeof i!="object")return this.defaultValue;const r=i;return{nonBasicASCII:x5(r.nonBasicASCII,jm,[!0,!1,jm]),invisibleCharacters:Bi(r.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:Bi(r.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:x5(r.includeComments,jm,[!0,!1,jm]),includeStrings:x5(r.includeStrings,jm,[!0,!1,jm]),allowedCharacters:this.validateBooleanMap(i.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(i.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(i,r){if(typeof i!="object"||!i)return r;const o={};for(const[s,a]of Object.entries(i))a===!0&&(o[s]=!0);return o}},xat=class extends qa{constructor(){const i={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",i,{"editor.inlineSuggest.enabled":{type:"boolean",default:i.enabled,description:R("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:i.showToolbar,enum:["always","onHover","never"],enumDescriptions:[R("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),R("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),R("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:R("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:i.suppressSuggestions,description:R("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:i.fontFamily,description:R("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;const r=i;return{enabled:Bi(r.enabled,this.defaultValue.enabled),mode:Xl(r.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:Xl(r.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:Bi(r.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:Bi(r.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:Hp.string(r.fontFamily,this.defaultValue.fontFamily)}}},Eat=class extends qa{constructor(){const i={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1};super(63,"experimentalInlineEdit",i,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:i.enabled,description:R("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:i.showToolbar,enum:["always","onHover","never"],enumDescriptions:[R("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),R("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),R("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:R("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:i.fontFamily,description:R("inlineEdit.fontFamily","Controls the font family of the inline edit.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;const r=i;return{enabled:Bi(r.enabled,this.defaultValue.enabled),showToolbar:Xl(r.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:Hp.string(r.fontFamily,this.defaultValue.fontFamily),keepOnBlur:Bi(r.keepOnBlur,this.defaultValue.keepOnBlur)}}},Aat=class extends qa{constructor(){const i={enabled:tf.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:tf.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",i,{"editor.bracketPairColorization.enabled":{type:"boolean",default:i.enabled,markdownDescription:R("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:i.independentColorPoolPerBracketType,description:R("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;const r=i;return{enabled:Bi(r.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:Bi(r.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}},Dat=class extends qa{constructor(){const i={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",i,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[R("editor.guides.bracketPairs.true","Enables bracket pair guides."),R("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),R("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:i.bracketPairs,description:R("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[R("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),R("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),R("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:i.bracketPairsHorizontal,description:R("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:i.highlightActiveBracketPair,description:R("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:i.indentation,description:R("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[R("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),R("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),R("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:i.highlightActiveIndentation,description:R("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;const r=i;return{bracketPairs:x5(r.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:x5(r.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:Bi(r.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:Bi(r.indentation,this.defaultValue.indentation),highlightActiveIndentation:x5(r.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}},Tat=class extends qa{constructor(){const i={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(119,"suggest",i,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[R("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),R("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:i.insertMode,description:R("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:i.filterGraceful,description:R("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:i.localityBonus,description:R("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:i.shareSuggestSelections,markdownDescription:R("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[R("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),R("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),R("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),R("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:i.selectionMode,markdownDescription:R("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions ({0} and {1}) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.","`#editor.quickSuggestions#`","`#editor.suggestOnTriggerCharacters#`")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:i.snippetsPreventQuickSuggestions,description:R("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:i.showIcons,description:R("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:i.showStatusBar,description:R("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:i.preview,description:R("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:i.showInlineDetails,description:R("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:R("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:R("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:R("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;const r=i;return{insertMode:Xl(r.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:Bi(r.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:Bi(r.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:Bi(r.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:Bi(r.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:Xl(r.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:Bi(r.showIcons,this.defaultValue.showIcons),showStatusBar:Bi(r.showStatusBar,this.defaultValue.showStatusBar),preview:Bi(r.preview,this.defaultValue.preview),previewMode:Xl(r.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:Bi(r.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:Bi(r.showMethods,this.defaultValue.showMethods),showFunctions:Bi(r.showFunctions,this.defaultValue.showFunctions),showConstructors:Bi(r.showConstructors,this.defaultValue.showConstructors),showDeprecated:Bi(r.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:Bi(r.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:Bi(r.showFields,this.defaultValue.showFields),showVariables:Bi(r.showVariables,this.defaultValue.showVariables),showClasses:Bi(r.showClasses,this.defaultValue.showClasses),showStructs:Bi(r.showStructs,this.defaultValue.showStructs),showInterfaces:Bi(r.showInterfaces,this.defaultValue.showInterfaces),showModules:Bi(r.showModules,this.defaultValue.showModules),showProperties:Bi(r.showProperties,this.defaultValue.showProperties),showEvents:Bi(r.showEvents,this.defaultValue.showEvents),showOperators:Bi(r.showOperators,this.defaultValue.showOperators),showUnits:Bi(r.showUnits,this.defaultValue.showUnits),showValues:Bi(r.showValues,this.defaultValue.showValues),showConstants:Bi(r.showConstants,this.defaultValue.showConstants),showEnums:Bi(r.showEnums,this.defaultValue.showEnums),showEnumMembers:Bi(r.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:Bi(r.showKeywords,this.defaultValue.showKeywords),showWords:Bi(r.showWords,this.defaultValue.showWords),showColors:Bi(r.showColors,this.defaultValue.showColors),showFiles:Bi(r.showFiles,this.defaultValue.showFiles),showReferences:Bi(r.showReferences,this.defaultValue.showReferences),showFolders:Bi(r.showFolders,this.defaultValue.showFolders),showTypeParameters:Bi(r.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:Bi(r.showSnippets,this.defaultValue.showSnippets),showUsers:Bi(r.showUsers,this.defaultValue.showUsers),showIssues:Bi(r.showIssues,this.defaultValue.showIssues)}}},kat=class extends qa{constructor(){super(114,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:R("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:R("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(i){return!i||typeof i!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:Bi(i.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:Bi(i.selectSubwords,this.defaultValue.selectSubwords)}}},Iat=class extends qa{constructor(){const i=[];super(131,"wordSegmenterLocales",i,{anyOf:[{description:R("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:R("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(i){if(typeof i=="string"&&(i=[i]),Array.isArray(i)){const r=[];for(const o of i)if(typeof o=="string")try{Intl.Segmenter.supportedLocalesOf(o).length>0&&r.push(o)}catch{}return r}return this.defaultValue}},Lat=class extends qa{constructor(){super(139,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[R("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),R("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),R("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),R("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:R("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(i){switch(i){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(i,r,o){return r.get(2)===2?0:o}},Nat=class extends E5{constructor(){super(147)}compute(i,r,o){const s=r.get(146);return{isDominatedByLongLines:i.isDominatedByLongLines,isWordWrapMinified:s.isWordWrapMinified,isViewportWrapping:s.isViewportWrapping,wrappingColumn:s.wrappingColumn}}},Pat=class extends qa{constructor(){const i={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",i,{"editor.dropIntoEditor.enabled":{type:"boolean",default:i.enabled,markdownDescription:R("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:R("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[R("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),R("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;const r=i;return{enabled:Bi(r.enabled,this.defaultValue.enabled),showDropSelector:Xl(r.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}},Mat=class extends qa{constructor(){const i={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",i,{"editor.pasteAs.enabled":{type:"boolean",default:i.enabled,markdownDescription:R("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:R("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[R("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),R("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;const r=i;return{enabled:Bi(r.enabled,this.defaultValue.enabled),showPasteSelector:Xl(r.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}},Oat="Consolas, 'Courier New', monospace",Rat="Menlo, Monaco, 'Courier New', monospace",Fat="'Droid Sans Mono', 'monospace', monospace",ap={fontFamily:xo?Rat:Wf?Fat:Oat,fontWeight:"normal",fontSize:xo?12:14,lineHeight:0,letterSpacing:0},IO=[],I_={acceptSuggestionOnCommitCharacter:Pn(new Qo(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:R("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:Pn(new Fl(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",R("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:R("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:Pn(new Zst),accessibilityPageSize:Pn(new ja(3,"accessibilityPageSize",10,1,1073741824,{description:R("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:Pn(new Hp(4,"ariaLabel",R("editorViewAccessibleLabel","Editor content"))),ariaRequired:Pn(new Qo(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:Pn(new Qo(8,"screenReaderAnnounceInlineSuggestion",!0,{description:R("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:Pn(new Fl(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",R("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),R("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:R("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:Pn(new Fl(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",R("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),R("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:R("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:Pn(new Fl(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",R("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:R("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:Pn(new Fl(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",R("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:R("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:Pn(new Fl(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",R("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),R("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:R("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:Pn(new Oz(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],F7n,{enumDescriptions:[R("editor.autoIndent.none","The editor will not insert indentation automatically."),R("editor.autoIndent.keep","The editor will keep the current line's indentation."),R("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),R("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),R("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:R("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:Pn(new Qo(13,"automaticLayout",!1)),autoSurround:Pn(new Fl(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[R("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),R("editor.autoSurround.quotes","Surround with quotes but not brackets."),R("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:R("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:Pn(new Aat),bracketPairGuides:Pn(new Dat),stickyTabStops:Pn(new Qo(117,"stickyTabStops",!1,{description:R("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:Pn(new Qo(17,"codeLens",!0,{description:R("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:Pn(new Hp(18,"codeLensFontFamily","",{description:R("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:Pn(new ja(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:R("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:Pn(new Qo(20,"colorDecorators",!0,{description:R("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:Pn(new Fl(149,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[R("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),R("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),R("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:R("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:Pn(new ja(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:R("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:Pn(new Qo(22,"columnSelection",!1,{description:R("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:Pn(new Xst),contextmenu:Pn(new Qo(24,"contextmenu",!0)),copyWithSyntaxHighlighting:Pn(new Qo(25,"copyWithSyntaxHighlighting",!0,{description:R("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:Pn(new Oz(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],B7n,{description:R("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:Pn(new Fl(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[R("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),R("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),R("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:R("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:Pn(new Oz(28,"cursorStyle",ph.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],j7n,{description:R("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:Pn(new ja(29,"cursorSurroundingLines",0,0,1073741824,{description:R("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:Pn(new Fl(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[R("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),R("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:R("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:Pn(new ja(31,"cursorWidth",0,0,1073741824,{markdownDescription:R("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:Pn(new Qo(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:Pn(new Qo(33,"disableMonospaceOptimizations",!1)),domReadOnly:Pn(new Qo(34,"domReadOnly",!1)),dragAndDrop:Pn(new Qo(35,"dragAndDrop",!0,{description:R("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:Pn(new eat),dropIntoEditor:Pn(new Pat),stickyScroll:Pn(new cat),experimentalWhitespaceRendering:Pn(new Fl(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[R("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),R("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),R("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:R("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:Pn(new Hp(39,"extraEditorClassName","")),fastScrollSensitivity:Pn(new _y(40,"fastScrollSensitivity",5,i=>i<=0?5:i,{markdownDescription:R("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:Pn(new tat),fixedOverflowWidgets:Pn(new Qo(42,"fixedOverflowWidgets",!1)),folding:Pn(new Qo(43,"folding",!0,{description:R("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:Pn(new Fl(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[R("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),R("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:R("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:Pn(new Qo(45,"foldingHighlight",!0,{description:R("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:Pn(new Qo(46,"foldingImportsByDefault",!1,{description:R("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:Pn(new ja(47,"foldingMaximumRegions",5e3,10,65e3,{description:R("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:Pn(new Qo(48,"unfoldOnClickAfterEndOfLine",!1,{description:R("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:Pn(new Hp(49,"fontFamily",ap.fontFamily,{description:R("fontFamily","Controls the font family.")})),fontInfo:Pn(new nat),fontLigatures2:Pn(new QR),fontSize:Pn(new iat),fontWeight:Pn(new rat),fontVariations:Pn(new Fue),formatOnPaste:Pn(new Qo(55,"formatOnPaste",!1,{description:R("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:Pn(new Qo(56,"formatOnType",!1,{description:R("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:Pn(new Qo(57,"glyphMargin",!0,{description:R("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:Pn(new oat),hideCursorInOverviewRuler:Pn(new Qo(59,"hideCursorInOverviewRuler",!1,{description:R("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:Pn(new sat),inDiffEditor:Pn(new Qo(61,"inDiffEditor",!1)),letterSpacing:Pn(new _y(64,"letterSpacing",ap.letterSpacing,i=>_y.clamp(i,-5,20),{description:R("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:Pn(new lat),lineDecorationsWidth:Pn(new dat),lineHeight:Pn(new hat),lineNumbers:Pn(new bat),lineNumbersMinChars:Pn(new ja(69,"lineNumbersMinChars",5,1,300)),linkedEditing:Pn(new Qo(70,"linkedEditing",!1,{description:R("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:Pn(new Qo(71,"links",!0,{description:R("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:Pn(new Fl(72,"matchBrackets","always",["always","near","never"],{description:R("matchBrackets","Highlight matching brackets.")})),minimap:Pn(new fat),mouseStyle:Pn(new Fl(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:Pn(new _y(75,"mouseWheelScrollSensitivity",1,i=>i===0?1:i,{markdownDescription:R("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:Pn(new Qo(76,"mouseWheelZoom",!1,{markdownDescription:xo?R("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):R("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:Pn(new Qo(77,"multiCursorMergeOverlapping",!0,{description:R("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:Pn(new Oz(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],z7n,{markdownEnumDescriptions:[R("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),R("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:R({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:Pn(new Fl(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[R("multiCursorPaste.spread","Each cursor pastes a single line of the text."),R("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:R("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:Pn(new ja(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:R("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:Pn(new Fl(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[R("occurrencesHighlight.off","Does not highlight occurrences."),R("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),R("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:R("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:Pn(new Qo(82,"overviewRulerBorder",!0,{description:R("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:Pn(new ja(83,"overviewRulerLanes",3,0,3)),padding:Pn(new pat),pasteAs:Pn(new Mat),parameterHints:Pn(new gat),peekWidgetDefaultFocus:Pn(new Fl(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[R("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),R("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:R("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),placeholder:Pn(new vat),definitionLinkOpensInPeek:Pn(new Qo(89,"definitionLinkOpensInPeek",!1,{description:R("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:Pn(new yat),quickSuggestionsDelay:Pn(new ja(91,"quickSuggestionsDelay",10,0,1073741824,{description:R("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:Pn(new Qo(92,"readOnly",!1)),readOnlyMessage:Pn(new wat),renameOnType:Pn(new Qo(94,"renameOnType",!1,{description:R("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:R("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:Pn(new Qo(95,"renderControlCharacters",!0,{description:R("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:Pn(new Fl(96,"renderFinalNewline",Wf?"dimmed":"on",["off","on","dimmed"],{description:R("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:Pn(new Fl(97,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",R("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:R("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:Pn(new Qo(98,"renderLineHighlightOnlyWhenFocus",!1,{description:R("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:Pn(new Fl(99,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:Pn(new Fl(100,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",R("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),R("renderWhitespace.selection","Render whitespace characters only on selected text."),R("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:R("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:Pn(new ja(101,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:Pn(new Qo(102,"roundedSelection",!0,{description:R("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:Pn(new _at),scrollbar:Pn(new Cat),scrollBeyondLastColumn:Pn(new ja(105,"scrollBeyondLastColumn",4,0,1073741824,{description:R("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:Pn(new Qo(106,"scrollBeyondLastLine",!0,{description:R("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:Pn(new Qo(107,"scrollPredominantAxis",!0,{description:R("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:Pn(new Qo(108,"selectionClipboard",!0,{description:R("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:Wf})),selectionHighlight:Pn(new Qo(109,"selectionHighlight",!0,{description:R("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:Pn(new Qo(110,"selectOnLineNumbers",!0)),showFoldingControls:Pn(new Fl(111,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[R("showFoldingControls.always","Always show the folding controls."),R("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),R("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:R("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:Pn(new Qo(112,"showUnused",!0,{description:R("showUnused","Controls fading out of unused code.")})),showDeprecated:Pn(new Qo(141,"showDeprecated",!0,{description:R("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:Pn(new uat),snippetSuggestions:Pn(new Fl(113,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[R("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),R("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),R("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),R("snippetSuggestions.none","Do not show snippet suggestions.")],description:R("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:Pn(new kat),smoothScrolling:Pn(new Qo(115,"smoothScrolling",!1,{description:R("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:Pn(new ja(118,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:Pn(new Tat),inlineSuggest:Pn(new xat),inlineEdit:Pn(new Eat),inlineCompletionsAccessibilityVerbose:Pn(new Qo(150,"inlineCompletionsAccessibilityVerbose",!1,{description:R("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:Pn(new ja(120,"suggestFontSize",0,0,1e3,{markdownDescription:R("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:Pn(new ja(121,"suggestLineHeight",0,0,1e3,{markdownDescription:R("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:Pn(new Qo(122,"suggestOnTriggerCharacters",!0,{description:R("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:Pn(new Fl(123,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[R("suggestSelection.first","Always select the first suggestion."),R("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),R("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:R("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:Pn(new Fl(124,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[R("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),R("tabCompletion.off","Disable tab completions."),R("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:R("tabCompletion","Enables tab completions.")})),tabIndex:Pn(new ja(125,"tabIndex",0,-1,1073741824)),unicodeHighlight:Pn(new Sat),unusualLineTerminators:Pn(new Fl(127,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[R("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),R("unusualLineTerminators.off","Unusual line terminators are ignored."),R("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:R("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:Pn(new Qo(128,"useShadowDOM",!0)),useTabStops:Pn(new Qo(129,"useTabStops",!0,{description:R("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:Pn(new Fl(130,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[R("wordBreak.normal","Use the default line break rule."),R("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:R("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:Pn(new Iat),wordSeparators:Pn(new Hp(132,"wordSeparators",Uq,{description:R("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:Pn(new Fl(133,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[R("wordWrap.off","Lines will never wrap."),R("wordWrap.on","Lines will wrap at the viewport width."),R({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),R({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:R({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:Pn(new Hp(134,"wordWrapBreakAfterCharacters"," 	})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:Pn(new Hp(135,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:Pn(new ja(136,"wordWrapColumn",80,1,1073741824,{markdownDescription:R({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:Pn(new Fl(137,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:Pn(new Fl(138,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:Pn(new Jst),defaultColorDecorators:Pn(new Qo(148,"defaultColorDecorators",!1,{markdownDescription:R("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:Pn(new mat),tabFocusMode:Pn(new Qo(145,"tabFocusMode",!1,{markdownDescription:R("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:Pn(new S5e),wrappingInfo:Pn(new Nat),wrappingIndent:Pn(new Lat),wrappingStrategy:Pn(new aat)}}});function V7n(e,t,n,i,r){return new SWt(e,t,n,i,r)}function H7n(e,t,n,i,r){return new A5e(e,t,n,i,r)}function x5e(e,t,n){const i=t.textContent.length;let r=-1;for(;t;)t=t.previousSibling,r++;return e.getColumn(new g5e(r,n),i)}var Bat,OP,E5e,_I,Rz,A5e,SWt,Fwe,CHe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lines/viewLine.js"(){var e;zv(),_d(),Xr(),c7n(),XK(),E7(),X2(),VC(),Su(),Bat=(function(){return D_?!0:!(Wf||B0||Qx)})(),OP=!0,E5e=class{constructor(t,n){this.themeType=n;const i=t.options,r=i.get(50);i.get(38)==="off"?this.renderWhitespace=i.get(100):this.renderWhitespace="none",this.renderControlCharacters=i.get(95),this.spaceWidth=r.spaceWidth,this.middotWidth=r.middotWidth,this.wsmiddotWidth=r.wsmiddotWidth,this.useMonospaceOptimizations=r.isMonospace&&!i.get(33),this.canUseHalfwidthRightwardsArrow=r.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(67),this.stopRenderingLineAfter=i.get(118),this.fontLigatures=i.get(51)}equals(t){return this.themeType===t.themeType&&this.renderWhitespace===t.renderWhitespace&&this.renderControlCharacters===t.renderControlCharacters&&this.spaceWidth===t.spaceWidth&&this.middotWidth===t.middotWidth&&this.wsmiddotWidth===t.wsmiddotWidth&&this.useMonospaceOptimizations===t.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===t.canUseHalfwidthRightwardsArrow&&this.lineHeight===t.lineHeight&&this.stopRenderingLineAfter===t.stopRenderingLineAfter&&this.fontLigatures===t.fontLigatures}},_I=(e=class{constructor(n){this._options=n,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(n){if(this._renderedViewLine)this._renderedViewLine.domNode=Ds(n);else throw new Error("I have no rendered view line to set the dom node to...")}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(n){this._isMaybeInvalid=!0,this._options=n}onSelectionChanged(){return rC(this._options.themeType)||this._options.renderWhitespace==="selection"?(this._isMaybeInvalid=!0,!0):!1}renderLine(n,i,r,o,s){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;const a=o.getViewLineRenderingData(n),l=this._options,c=sb.filter(a.inlineDecorations,n,a.minColumn,a.maxColumn);let u=null;if(rC(l.themeType)||this._options.renderWhitespace==="selection"){const p=o.selections;for(const g of p){if(g.endLineNumber<n||g.startLineNumber>n)continue;const m=g.startLineNumber===n?g.startColumn:a.minColumn,v=g.endLineNumber===n?g.endColumn:a.maxColumn;m<v&&(rC(l.themeType)&&c.push(new sb(m,v,"inline-selected-text",0)),this._options.renderWhitespace==="selection"&&(u||(u=[]),u.push(new gHe(m-1,v-1))))}}const d=new hT(l.useMonospaceOptimizations,l.canUseHalfwidthRightwardsArrow,a.content,a.continuesWithWrappedLine,a.isBasicASCII,a.containsRTL,a.minColumn-1,a.tokens,c,a.tabSize,a.startVisibleColumn,l.spaceWidth,l.middotWidth,l.wsmiddotWidth,l.stopRenderingLineAfter,l.renderWhitespace,l.renderControlCharacters,l.fontLigatures!==QR.OFF,u);if(this._renderedViewLine&&this._renderedViewLine.input.equals(d))return!1;s.appendString('<div style="top:'),s.appendString(String(i)),s.appendString("px;height:"),s.appendString(String(r)),s.appendString('px;" class="'),s.appendString(e.CLASS_NAME),s.appendString('">');const h=eY(d,s);s.appendString("</div>");let f=null;return OP&&Bat&&a.isBasicASCII&&l.useMonospaceOptimizations&&h.containsForeignElements===0&&(f=new Rz(this._renderedViewLine?this._renderedViewLine.domNode:null,d,h.characterMapping)),f||(f=Fwe(this._renderedViewLine?this._renderedViewLine.domNode:null,d,h.characterMapping,h.containsRTL,h.containsForeignElements)),this._renderedViewLine=f,!0}layoutLine(n,i,r){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(i),this._renderedViewLine.domNode.setHeight(r))}getWidth(n){return this._renderedViewLine?this._renderedViewLine.getWidth(n):0}getWidthIsFast(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0}needsMonospaceFontCheck(){return this._renderedViewLine?this._renderedViewLine instanceof Rz:!1}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof Rz?this._renderedViewLine.monospaceAssumptionsAreValid():OP}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof Rz&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(n,i,r,o){if(!this._renderedViewLine)return null;i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i)),r=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,r));const s=this._renderedViewLine.input.stopRenderingLineAfter;if(s!==-1&&i>s+1&&r>s+1)return new f5e(!0,[new bI(this.getWidth(o),0)]);s!==-1&&i>s+1&&(i=s+1),s!==-1&&r>s+1&&(r=s+1);const a=this._renderedViewLine.getVisibleRangesForRange(n,i,r,o);return a&&a.length>0?new f5e(!1,a):null}getColumnOfNodeOffset(n,i){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(n,i):1}},e.CLASS_NAME="view-line",e),Rz=class{constructor(t,n,i){this._cachedWidth=-1,this.domNode=t,this.input=n;const r=Math.floor(n.lineContent.length/300);if(r>0){this._keyColumnPixelOffsetCache=new Float32Array(r);for(let o=0;o<r;o++)this._keyColumnPixelOffsetCache[o]=-1}else this._keyColumnPixelOffsetCache=null;this._characterMapping=i,this._charWidth=n.spaceWidth}getWidth(t){if(!this.domNode||this.input.lineContent.length<300){const n=this._characterMapping.getHorizontalOffset(this._characterMapping.length);return Math.round(this._charWidth*n)}return this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,t?.markDidDomLayout()),this._cachedWidth}getWidthIsFast(){return this.input.lineContent.length<300||this._cachedWidth!==-1}monospaceAssumptionsAreValid(){if(!this.domNode)return OP;if(this.input.lineContent.length<300){const t=this.getWidth(null),n=this.domNode.domNode.firstChild.offsetWidth;Math.abs(t-n)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),OP=!1)}return OP}toSlowRenderedLine(){return Fwe(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(t,n,i,r){const o=this._getColumnPixelOffset(t,n,r),s=this._getColumnPixelOffset(t,i,r);return[new bI(o,s-o)]}_getColumnPixelOffset(t,n,i){if(n<=300){const c=this._characterMapping.getHorizontalOffset(n);return this._charWidth*c}const r=Math.floor((n-1)/300)-1,o=(r+1)*300+1;let s=-1;if(this._keyColumnPixelOffsetCache&&(s=this._keyColumnPixelOffsetCache[r],s===-1&&(s=this._actualReadPixelOffset(t,o,i),this._keyColumnPixelOffsetCache[r]=s)),s===-1){const c=this._characterMapping.getHorizontalOffset(n);return this._charWidth*c}const a=this._characterMapping.getHorizontalOffset(o),l=this._characterMapping.getHorizontalOffset(n);return s+this._charWidth*(l-a)}_getReadingTarget(t){return t.domNode.firstChild}_actualReadPixelOffset(t,n,i){if(!this.domNode)return-1;const r=this._characterMapping.getDomPosition(n),o=jH.readHorizontalRanges(this._getReadingTarget(this.domNode),r.partIndex,r.charIndex,r.partIndex,r.charIndex,i);return!o||o.length===0?-1:o[0].left}getColumnOfNodeOffset(t,n){return x5e(this._characterMapping,t,n)}},A5e=class{constructor(t,n,i,r,o){if(this.domNode=t,this.input=n,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(n.lineContent),this._containsForeignElements=o,this._cachedWidth=-1,this._pixelOffsetCache=null,!r||this._characterMapping.length===0){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let s=0,a=this._characterMapping.length;s<=a;s++)this._pixelOffsetCache[s]=-1}}_getReadingTarget(t){return t.domNode.firstChild}getWidth(t){return this.domNode?(this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,t?.markDidDomLayout()),this._cachedWidth):0}getWidthIsFast(){return this._cachedWidth!==-1}getVisibleRangesForRange(t,n,i,r){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){const o=this._readPixelOffset(this.domNode,t,n,r);if(o===-1)return null;const s=this._readPixelOffset(this.domNode,t,i,r);return s===-1?null:[new bI(o,s-o)]}return this._readVisibleRangesForRange(this.domNode,t,n,i,r)}_readVisibleRangesForRange(t,n,i,r,o){if(i===r){const s=this._readPixelOffset(t,n,i,o);return s===-1?null:[new bI(s,0)]}else return this._readRawVisibleRangesForRange(t,i,r,o)}_readPixelOffset(t,n,i,r){if(this._characterMapping.length===0){if(this._containsForeignElements===0||this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth(r);const o=this._getReadingTarget(t);return o.firstChild?(r.markDidDomLayout(),o.firstChild.offsetWidth):0}if(this._pixelOffsetCache!==null){const o=this._pixelOffsetCache[i];if(o!==-1)return o;const s=this._actualReadPixelOffset(t,n,i,r);return this._pixelOffsetCache[i]=s,s}return this._actualReadPixelOffset(t,n,i,r)}_actualReadPixelOffset(t,n,i,r){if(this._characterMapping.length===0){const l=jH.readHorizontalRanges(this._getReadingTarget(t),0,0,0,0,r);return!l||l.length===0?-1:l[0].left}if(i===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth(r);const o=this._characterMapping.getDomPosition(i),s=jH.readHorizontalRanges(this._getReadingTarget(t),o.partIndex,o.charIndex,o.partIndex,o.charIndex,r);if(!s||s.length===0)return-1;const a=s[0].left;if(this.input.isBasicASCII){const l=this._characterMapping.getHorizontalOffset(i),c=Math.round(this.input.spaceWidth*l);if(Math.abs(c-a)<=1)return c}return a}_readRawVisibleRangesForRange(t,n,i,r){if(n===1&&i===this._characterMapping.length)return[new bI(0,this.getWidth(r))];const o=this._characterMapping.getDomPosition(n),s=this._characterMapping.getDomPosition(i);return jH.readHorizontalRanges(this._getReadingTarget(t),o.partIndex,o.charIndex,s.partIndex,s.charIndex,r)}getColumnOfNodeOffset(t,n){return x5e(this._characterMapping,t,n)}},SWt=class extends A5e{_readVisibleRangesForRange(t,n,i,r,o){const s=super._readVisibleRangesForRange(t,n,i,r,o);if(!s||s.length===0||i===r||i===1&&r===this._characterMapping.length)return s;if(!this.input.containsRTL){const a=this._readPixelOffset(t,n,r,o);if(a!==-1){const l=s[s.length-1];l.left<a&&(l.width=a-l.left)}}return s}},Fwe=(function(){return iL?V7n:H7n})()}}),cd,HC=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/cursorColumns.js"(){Ki(),cd=class xWt{static _nextVisibleColumn(t,n,i){return t===9?xWt.nextRenderTabStop(n,i):IL(t)||H3e(t)?n+2:n+1}static visibleColumnFromColumn(t,n,i){const r=Math.min(n-1,t.length),o=t.substring(0,r),s=new Mq(o);let a=0;for(;!s.eol();){const l=_ue(o,r,s.offset);s.nextGraphemeLength(),a=this._nextVisibleColumn(l,a,i)}return a}static columnFromVisibleColumn(t,n,i){if(n<=0)return 1;const r=t.length,o=new Mq(t);let s=0,a=1;for(;!o.eol();){const l=_ue(t,r,o.offset);o.nextGraphemeLength();const c=this._nextVisibleColumn(l,s,i),u=o.offset+1;if(c>=n){const d=n-s;return c-n<d?u:a}s=c,a=u}return r+1}static nextRenderTabStop(t,n){return t+n-t%n}static nextIndentTabStop(t,n){return t+n-t%n}static prevRenderTabStop(t,n){return Math.max(0,t-1-(t-1)%n)}static prevIndentTabStop(t,n){return Math.max(0,t-1-(t-1)%n)}}}}),Bue,EWt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorAtomicMoveOperations.js"(){HC(),Bue=class AWt{static whitespaceVisibleColumn(t,n,i){const r=t.length;let o=0,s=-1,a=-1;for(let l=0;l<r;l++){if(l===n)return[s,a,o];switch(o%i===0&&(s=l,a=o),t.charCodeAt(l)){case 32:o+=1;break;case 9:o=cd.nextRenderTabStop(o,i);break;default:return[-1,-1,-1]}}return n===r?[s,a,o]:[-1,-1,-1]}static atomicPosition(t,n,i,r){const o=t.length,[s,a,l]=AWt.whitespaceVisibleColumn(t,n,i);if(l===-1)return-1;let c;switch(r){case 0:c=!0;break;case 1:c=!1;break;case 2:if(l%i===0)return n;c=l%i<=i/2;break}if(c){if(s===-1)return-1;let h=a;for(let f=s;f<o;++f){if(h===a+i)return s;switch(t.charCodeAt(f)){case 32:h+=1;break;case 9:h=cd.nextRenderTabStop(h,i);break;default:return-1}}return h===a+i?s:-1}const u=cd.nextRenderTabStop(l,i);let d=l;for(let h=n;h<o;h++){if(d===u)return h;switch(t.charCodeAt(h)){case 32:d+=1;break;case 9:d=cd.nextRenderTabStop(d,i);break;default:return-1}}return d===u?o:-1}}}}),DWt={};oc(DWt,{HitTestContext:()=>$q,MouseTarget:()=>Qh,MouseTargetFactory:()=>VU,PointerHandlerLastRenderData:()=>SHe});function Bwe(e){return{isAfterLines:!1,horizontalDistanceToText:e}}function W7n(e,t,n){const i=document.createRange();let r=e.elementFromPoint(t,n);if(r!==null){for(;r&&r.firstChild&&r.firstChild.nodeType!==r.firstChild.TEXT_NODE&&r.lastChild&&r.lastChild.firstChild;)r=r.lastChild;const o=r.getBoundingClientRect(),s=Yi(r),a=s.getComputedStyle(r,null).getPropertyValue("font-style"),l=s.getComputedStyle(r,null).getPropertyValue("font-variant"),c=s.getComputedStyle(r,null).getPropertyValue("font-weight"),u=s.getComputedStyle(r,null).getPropertyValue("font-size"),d=s.getComputedStyle(r,null).getPropertyValue("line-height"),h=s.getComputedStyle(r,null).getPropertyValue("font-family"),f=`${a} ${l} ${c} ${u}/${d} ${h}`,p=r.innerText;let g=o.left,m=0,v;if(t>o.left+o.width)m=p.length;else{const y=TWt.getInstance();for(let b=0;b<p.length+1;b++){if(v=y.getCharWidth(p.charAt(b),f)/2,g+=v,t<g){m=b;break}g+=v}}i.setStart(r.firstChild,m),i.setEnd(r.firstChild,m)}return i}var aA,jwe,RP,SHe,Qh,ep,$q,jat,zat,zwe,VU,TWt,xHe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/controller/mouseTarget.js"(){var e;QK(),Cg(),CHe(),Hi(),Dn(),HC(),Fn(),EWt(),wE(),aA=class{constructor(t=null){this.hitTarget=t,this.type=0}},jwe=class{get hitTarget(){return this.spanNode}constructor(t,n,i){this.position=t,this.spanNode=n,this.injectedText=i,this.type=1}},(function(t){function n(i,r,o){const s=i.getPositionFromDOMInfo(r,o);return s?new jwe(s,r,null):new aA(r)}t.createFromDOMInfo=n})(RP||(RP={})),SHe=class{constructor(t,n){this.lastViewCursorsRenderData=t,this.lastTextareaPosition=n}},Qh=class{static _deduceRage(t,n=null){return!n&&t?new Re(t.lineNumber,t.column,t.lineNumber,t.column):n??null}static createUnknown(t,n,i){return{type:0,element:t,mouseColumn:n,position:i,range:this._deduceRage(i)}}static createTextarea(t,n){return{type:1,element:t,mouseColumn:n,position:null,range:null}}static createMargin(t,n,i,r,o,s){return{type:t,element:n,mouseColumn:i,position:r,range:o,detail:s}}static createViewZone(t,n,i,r,o){return{type:t,element:n,mouseColumn:i,position:r,range:this._deduceRage(r),detail:o}}static createContentText(t,n,i,r,o){return{type:6,element:t,mouseColumn:n,position:i,range:this._deduceRage(i,r),detail:o}}static createContentEmpty(t,n,i,r){return{type:7,element:t,mouseColumn:n,position:i,range:this._deduceRage(i),detail:r}}static createContentWidget(t,n,i){return{type:9,element:t,mouseColumn:n,position:null,range:null,detail:i}}static createScrollbar(t,n,i){return{type:11,element:t,mouseColumn:n,position:i,range:this._deduceRage(i)}}static createOverlayWidget(t,n,i){return{type:12,element:t,mouseColumn:n,position:null,range:null,detail:i}}static createOutsideEditor(t,n,i,r){return{type:13,element:null,mouseColumn:t,position:n,range:this._deduceRage(n),outsidePosition:i,outsideDistance:r}}static _typeToString(t){return t===1?"TEXTAREA":t===2?"GUTTER_GLYPH_MARGIN":t===3?"GUTTER_LINE_NUMBERS":t===4?"GUTTER_LINE_DECORATIONS":t===5?"GUTTER_VIEW_ZONE":t===6?"CONTENT_TEXT":t===7?"CONTENT_EMPTY":t===8?"CONTENT_VIEW_ZONE":t===9?"CONTENT_WIDGET":t===10?"OVERVIEW_RULER":t===11?"SCROLLBAR":t===12?"OVERLAY_WIDGET":"UNKNOWN"}static toString(t){return this._typeToString(t.type)+": "+t.position+" - "+t.range+" - "+JSON.stringify(t.detail)}},ep=class{static isTextArea(t){return t.length===2&&t[0]===3&&t[1]===7}static isChildOfViewLines(t){return t.length>=4&&t[0]===3&&t[3]===8}static isStrictChildOfViewLines(t){return t.length>4&&t[0]===3&&t[3]===8}static isChildOfScrollableElement(t){return t.length>=2&&t[0]===3&&t[1]===6}static isChildOfMinimap(t){return t.length>=2&&t[0]===3&&t[1]===9}static isChildOfContentWidgets(t){return t.length>=4&&t[0]===3&&t[3]===1}static isChildOfOverflowGuard(t){return t.length>=1&&t[0]===3}static isChildOfOverflowingContentWidgets(t){return t.length>=1&&t[0]===2}static isChildOfOverlayWidgets(t){return t.length>=2&&t[0]===3&&t[1]===4}static isChildOfOverflowingOverlayWidgets(t){return t.length>=1&&t[0]===5}},$q=class D5e{constructor(n,i,r){this.viewModel=n.viewModel;const o=n.configuration.options;this.layoutInfo=o.get(146),this.viewDomNode=i.viewDomNode,this.lineHeight=o.get(67),this.stickyTabStops=o.get(117),this.typicalHalfwidthCharacterWidth=o.get(50).typicalHalfwidthCharacterWidth,this.lastRenderData=r,this._context=n,this._viewHelper=i}getZoneAtCoord(n){return D5e.getZoneAtCoord(this._context,n)}static getZoneAtCoord(n,i){const r=n.viewLayout.getWhitespaceAtVerticalOffset(i);if(r){const o=r.verticalOffset+r.height/2,s=n.viewModel.getLineCount();let a=null,l,c=null;return r.afterLineNumber!==s&&(c=new mt(r.afterLineNumber+1,1)),r.afterLineNumber>0&&(a=new mt(r.afterLineNumber,n.viewModel.getLineMaxColumn(r.afterLineNumber))),c===null?l=a:a===null?l=c:i<o?l=a:l=c,{viewZoneId:r.id,afterLineNumber:r.afterLineNumber,positionBefore:a,positionAfter:c,position:l}}return null}getFullLineRangeAtCoord(n){if(this._context.viewLayout.isAfterLines(n)){const o=this._context.viewModel.getLineCount(),s=this._context.viewModel.getLineMaxColumn(o);return{range:new Re(o,s,o,s),isAfterLines:!0}}const i=this._context.viewLayout.getLineNumberAtVerticalOffset(n),r=this._context.viewModel.getLineMaxColumn(i);return{range:new Re(i,1,i,r),isAfterLines:!1}}getLineNumberAtVerticalOffset(n){return this._context.viewLayout.getLineNumberAtVerticalOffset(n)}isAfterLines(n){return this._context.viewLayout.isAfterLines(n)}isInTopPadding(n){return this._context.viewLayout.isInTopPadding(n)}isInBottomPadding(n){return this._context.viewLayout.isInBottomPadding(n)}getVerticalOffsetForLineNumber(n){return this._context.viewLayout.getVerticalOffsetForLineNumber(n)}findAttribute(n,i){return D5e._findAttribute(n,i,this._viewHelper.viewDomNode)}static _findAttribute(n,i,r){for(;n&&n!==n.ownerDocument.body;){if(n.hasAttribute&&n.hasAttribute(i))return n.getAttribute(i);if(n===r)return null;n=n.parentNode}return null}getLineWidth(n){return this._viewHelper.getLineWidth(n)}visibleRangeForPosition(n,i){return this._viewHelper.visibleRangeForPosition(n,i)}getPositionFromDOMInfo(n,i){return this._viewHelper.getPositionFromDOMInfo(n,i)}getCurrentScrollTop(){return this._context.viewLayout.getCurrentScrollTop()}getCurrentScrollLeft(){return this._context.viewLayout.getCurrentScrollLeft()}},jat=class{constructor(t,n,i,r){this.editorPos=n,this.pos=i,this.relativePos=r,this.mouseVerticalOffset=Math.max(0,t.getCurrentScrollTop()+this.relativePos.y),this.mouseContentHorizontalOffset=t.getCurrentScrollLeft()+this.relativePos.x-t.layoutInfo.contentLeft,this.isInMarginArea=this.relativePos.x<t.layoutInfo.contentLeft&&this.relativePos.x>=t.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,VU._getMouseColumn(this.mouseContentHorizontalOffset,t.typicalHalfwidthCharacterWidth))}},zat=class extends jat{get target(){return this._useHitTestTarget?this.hitTestResult.value.hitTarget:this._eventTarget}get targetPath(){return this._targetPathCacheElement!==this.target&&(this._targetPathCacheElement=this.target,this._targetPathCacheValue=J_.collect(this.target,this._ctx.viewDomNode)),this._targetPathCacheValue}constructor(t,n,i,r,o){super(t,n,i,r),this.hitTestResult=new lm(()=>VU.doHitTest(this._ctx,this)),this._targetPathCacheElement=null,this._targetPathCacheValue=new Uint8Array(0),this._ctx=t,this._eventTarget=o;const s=!!this._eventTarget;this._useHitTestTarget=!s}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), relativePos(${this.relativePos.x},${this.relativePos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset}
	target: ${this.target?this.target.outerHTML:null}`}get wouldBenefitFromHitTestTargetSwitch(){return!this._useHitTestTarget&&this.hitTestResult.value.hitTarget!==null&&this.target!==this.hitTestResult.value.hitTarget}switchToHitTestTarget(){this._useHitTestTarget=!0}_getMouseColumn(t=null){return t&&t.column<this._ctx.viewModel.getLineMaxColumn(t.lineNumber)?cd.visibleColumnFromColumn(this._ctx.viewModel.getLineContent(t.lineNumber),t.column,this._ctx.viewModel.model.getOptions().tabSize)+1:this.mouseColumn}fulfillUnknown(t=null){return Qh.createUnknown(this.target,this._getMouseColumn(t),t)}fulfillTextarea(){return Qh.createTextarea(this.target,this._getMouseColumn())}fulfillMargin(t,n,i,r){return Qh.createMargin(t,this.target,this._getMouseColumn(n),n,i,r)}fulfillViewZone(t,n,i){return Qh.createViewZone(t,this.target,this._getMouseColumn(n),n,i)}fulfillContentText(t,n,i){return Qh.createContentText(this.target,this._getMouseColumn(t),t,n,i)}fulfillContentEmpty(t,n){return Qh.createContentEmpty(this.target,this._getMouseColumn(t),t,n)}fulfillContentWidget(t){return Qh.createContentWidget(this.target,this._getMouseColumn(),t)}fulfillScrollbar(t){return Qh.createScrollbar(this.target,this._getMouseColumn(t),t)}fulfillOverlayWidget(t){return Qh.createOverlayWidget(this.target,this._getMouseColumn(),t)}},zwe={isAfterLines:!0},VU=class Rm{constructor(n,i){this._context=n,this._viewHelper=i}mouseTargetIsWidget(n){const i=n.target,r=J_.collect(i,this._viewHelper.viewDomNode);return!!(ep.isChildOfContentWidgets(r)||ep.isChildOfOverflowingContentWidgets(r)||ep.isChildOfOverlayWidgets(r)||ep.isChildOfOverflowingOverlayWidgets(r))}createMouseTarget(n,i,r,o,s){const a=new $q(this._context,this._viewHelper,n),l=new zat(a,i,r,o,s);try{const c=Rm._createMouseTarget(a,l);if(c.type===6&&a.stickyTabStops&&c.position!==null){const u=Rm._snapToSoftTabBoundary(c.position,a.viewModel),d=Re.fromPositions(u,u).plusRange(c.range);return l.fulfillContentText(u,d,c.detail)}return c}catch{return l.fulfillUnknown()}}static _createMouseTarget(n,i){if(i.target===null)return i.fulfillUnknown();const r=i;let o=null;return!ep.isChildOfOverflowGuard(i.targetPath)&&!ep.isChildOfOverflowingContentWidgets(i.targetPath)&&!ep.isChildOfOverflowingOverlayWidgets(i.targetPath)&&(o=o||i.fulfillUnknown()),o=o||Rm._hitTestContentWidget(n,r),o=o||Rm._hitTestOverlayWidget(n,r),o=o||Rm._hitTestMinimap(n,r),o=o||Rm._hitTestScrollbarSlider(n,r),o=o||Rm._hitTestViewZone(n,r),o=o||Rm._hitTestMargin(n,r),o=o||Rm._hitTestViewCursor(n,r),o=o||Rm._hitTestTextArea(n,r),o=o||Rm._hitTestViewLines(n,r),o=o||Rm._hitTestScrollbar(n,r),o||i.fulfillUnknown()}static _hitTestContentWidget(n,i){if(ep.isChildOfContentWidgets(i.targetPath)||ep.isChildOfOverflowingContentWidgets(i.targetPath)){const r=n.findAttribute(i.target,"widgetId");return r?i.fulfillContentWidget(r):i.fulfillUnknown()}return null}static _hitTestOverlayWidget(n,i){if(ep.isChildOfOverlayWidgets(i.targetPath)||ep.isChildOfOverflowingOverlayWidgets(i.targetPath)){const r=n.findAttribute(i.target,"widgetId");return r?i.fulfillOverlayWidget(r):i.fulfillUnknown()}return null}static _hitTestViewCursor(n,i){if(i.target){const r=n.lastRenderData.lastViewCursorsRenderData;for(const o of r)if(i.target===o.domNode)return i.fulfillContentText(o.position,null,{mightBeForeignElement:!1,injectedText:null})}if(i.isInContentArea){const r=n.lastRenderData.lastViewCursorsRenderData,o=i.mouseContentHorizontalOffset,s=i.mouseVerticalOffset;for(const a of r){if(o<a.contentLeft||o>a.contentLeft+a.width)continue;const l=n.getVerticalOffsetForLineNumber(a.position.lineNumber);if(l<=s&&s<=l+a.height)return i.fulfillContentText(a.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(n,i){const r=n.getZoneAtCoord(i.mouseVerticalOffset);if(r){const o=i.isInContentArea?8:5;return i.fulfillViewZone(o,r.position,r)}return null}static _hitTestTextArea(n,i){return ep.isTextArea(i.targetPath)?n.lastRenderData.lastTextareaPosition?i.fulfillContentText(n.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):i.fulfillTextarea():null}static _hitTestMargin(n,i){if(i.isInMarginArea){const r=n.getFullLineRangeAtCoord(i.mouseVerticalOffset),o=r.range.getStartPosition();let s=Math.abs(i.relativePos.x);const a={isAfterLines:r.isAfterLines,glyphMarginLeft:n.layoutInfo.glyphMarginLeft,glyphMarginWidth:n.layoutInfo.glyphMarginWidth,lineNumbersWidth:n.layoutInfo.lineNumbersWidth,offsetX:s};if(s-=n.layoutInfo.glyphMarginLeft,s<=n.layoutInfo.glyphMarginWidth){const l=n.viewModel.coordinatesConverter.convertViewPositionToModelPosition(r.range.getStartPosition()),c=n.viewModel.glyphLanes.getLanesAtLine(l.lineNumber);return a.glyphMarginLane=c[Math.floor(s/n.lineHeight)],i.fulfillMargin(2,o,r.range,a)}return s-=n.layoutInfo.glyphMarginWidth,s<=n.layoutInfo.lineNumbersWidth?i.fulfillMargin(3,o,r.range,a):(s-=n.layoutInfo.lineNumbersWidth,i.fulfillMargin(4,o,r.range,a))}return null}static _hitTestViewLines(n,i){if(!ep.isChildOfViewLines(i.targetPath))return null;if(n.isInTopPadding(i.mouseVerticalOffset))return i.fulfillContentEmpty(new mt(1,1),zwe);if(n.isAfterLines(i.mouseVerticalOffset)||n.isInBottomPadding(i.mouseVerticalOffset)){const o=n.viewModel.getLineCount(),s=n.viewModel.getLineMaxColumn(o);return i.fulfillContentEmpty(new mt(o,s),zwe)}if(ep.isStrictChildOfViewLines(i.targetPath)){const o=n.getLineNumberAtVerticalOffset(i.mouseVerticalOffset);if(n.viewModel.getLineLength(o)===0){const a=n.getLineWidth(o),l=Bwe(i.mouseContentHorizontalOffset-a);return i.fulfillContentEmpty(new mt(o,1),l)}const s=n.getLineWidth(o);if(i.mouseContentHorizontalOffset>=s){const a=Bwe(i.mouseContentHorizontalOffset-s),l=new mt(o,n.viewModel.getLineMaxColumn(o));return i.fulfillContentEmpty(l,a)}}const r=i.hitTestResult.value;return r.type===1?Rm.createMouseTargetFromHitTestPosition(n,i,r.spanNode,r.position,r.injectedText):i.wouldBenefitFromHitTestTargetSwitch?(i.switchToHitTestTarget(),this._createMouseTarget(n,i)):i.fulfillUnknown()}static _hitTestMinimap(n,i){if(ep.isChildOfMinimap(i.targetPath)){const r=n.getLineNumberAtVerticalOffset(i.mouseVerticalOffset),o=n.viewModel.getLineMaxColumn(r);return i.fulfillScrollbar(new mt(r,o))}return null}static _hitTestScrollbarSlider(n,i){if(ep.isChildOfScrollableElement(i.targetPath)&&i.target&&i.target.nodeType===1){const r=i.target.className;if(r&&/\b(slider|scrollbar)\b/.test(r)){const o=n.getLineNumberAtVerticalOffset(i.mouseVerticalOffset),s=n.viewModel.getLineMaxColumn(o);return i.fulfillScrollbar(new mt(o,s))}}return null}static _hitTestScrollbar(n,i){if(ep.isChildOfScrollableElement(i.targetPath)){const r=n.getLineNumberAtVerticalOffset(i.mouseVerticalOffset),o=n.viewModel.getLineMaxColumn(r);return i.fulfillScrollbar(new mt(r,o))}return null}getMouseColumn(n){const i=this._context.configuration.options,r=i.get(146),o=this._context.viewLayout.getCurrentScrollLeft()+n.x-r.contentLeft;return Rm._getMouseColumn(o,i.get(50).typicalHalfwidthCharacterWidth)}static _getMouseColumn(n,i){return n<0?1:Math.round(n/i)+1}static createMouseTargetFromHitTestPosition(n,i,r,o,s){const a=o.lineNumber,l=o.column,c=n.getLineWidth(a);if(i.mouseContentHorizontalOffset>c){const y=Bwe(i.mouseContentHorizontalOffset-c);return i.fulfillContentEmpty(o,y)}const u=n.visibleRangeForPosition(a,l);if(!u)return i.fulfillUnknown(o);const d=u.left;if(Math.abs(i.mouseContentHorizontalOffset-d)<1)return i.fulfillContentText(o,null,{mightBeForeignElement:!!s,injectedText:s});const h=[];if(h.push({offset:u.left,column:l}),l>1){const y=n.visibleRangeForPosition(a,l-1);y&&h.push({offset:y.left,column:l-1})}const f=n.viewModel.getLineMaxColumn(a);if(l<f){const y=n.visibleRangeForPosition(a,l+1);y&&h.push({offset:y.left,column:l+1})}h.sort((y,b)=>y.offset-b.offset);const p=i.pos.toClientCoordinates(Yi(n.viewDomNode)),g=r.getBoundingClientRect(),m=g.left<=p.clientX&&p.clientX<=g.right;let v=null;for(let y=1;y<h.length;y++){const b=h[y-1],w=h[y];if(b.offset<=i.mouseContentHorizontalOffset&&i.mouseContentHorizontalOffset<=w.offset){v=new Re(a,b.column,a,w.column);const E=Math.abs(b.offset-i.mouseContentHorizontalOffset),A=Math.abs(w.offset-i.mouseContentHorizontalOffset);o=E<A?new mt(a,b.column):new mt(a,w.column);break}}return i.fulfillContentText(o,v,{mightBeForeignElement:!m||!!s,injectedText:s})}static _doHitTestWithCaretRangeFromPoint(n,i){const r=n.getLineNumberAtVerticalOffset(i.mouseVerticalOffset),o=n.getVerticalOffsetForLineNumber(r),s=o+n.lineHeight;if(!(r===n.viewModel.getLineCount()&&i.mouseVerticalOffset>s)){const l=Math.floor((o+s)/2);let c=i.pos.y+(l-i.mouseVerticalOffset);c<=i.editorPos.y&&(c=i.editorPos.y+1),c>=i.editorPos.y+i.editorPos.height&&(c=i.editorPos.y+i.editorPos.height-1);const u=new jU(i.pos.x,c),d=this._actualDoHitTestWithCaretRangeFromPoint(n,u.toClientCoordinates(Yi(n.viewDomNode)));if(d.type===1)return d}return this._actualDoHitTestWithCaretRangeFromPoint(n,i.pos.toClientCoordinates(Yi(n.viewDomNode)))}static _actualDoHitTestWithCaretRangeFromPoint(n,i){const r=GR(n.viewDomNode);let o;if(r?typeof r.caretRangeFromPoint>"u"?o=W7n(r,i.clientX,i.clientY):o=r.caretRangeFromPoint(i.clientX,i.clientY):o=n.viewDomNode.ownerDocument.caretRangeFromPoint(i.clientX,i.clientY),!o||!o.startContainer)return new aA;const s=o.startContainer;if(s.nodeType===s.TEXT_NODE){const a=s.parentNode,l=a?a.parentNode:null,c=l?l.parentNode:null;return(c&&c.nodeType===c.ELEMENT_NODE?c.className:null)===_I.CLASS_NAME?RP.createFromDOMInfo(n,a,o.startOffset):new aA(s.parentNode)}else if(s.nodeType===s.ELEMENT_NODE){const a=s.parentNode,l=a?a.parentNode:null;return(l&&l.nodeType===l.ELEMENT_NODE?l.className:null)===_I.CLASS_NAME?RP.createFromDOMInfo(n,s,s.textContent.length):new aA(s)}return new aA}static _doHitTestWithCaretPositionFromPoint(n,i){const r=n.viewDomNode.ownerDocument.caretPositionFromPoint(i.clientX,i.clientY);if(r.offsetNode.nodeType===r.offsetNode.TEXT_NODE){const o=r.offsetNode.parentNode,s=o?o.parentNode:null,a=s?s.parentNode:null;return(a&&a.nodeType===a.ELEMENT_NODE?a.className:null)===_I.CLASS_NAME?RP.createFromDOMInfo(n,r.offsetNode.parentNode,r.offset):new aA(r.offsetNode.parentNode)}if(r.offsetNode.nodeType===r.offsetNode.ELEMENT_NODE){const o=r.offsetNode.parentNode,s=o&&o.nodeType===o.ELEMENT_NODE?o.className:null,a=o?o.parentNode:null,l=a&&a.nodeType===a.ELEMENT_NODE?a.className:null;if(s===_I.CLASS_NAME){const c=r.offsetNode.childNodes[Math.min(r.offset,r.offsetNode.childNodes.length-1)];if(c)return RP.createFromDOMInfo(n,c,0)}else if(l===_I.CLASS_NAME)return RP.createFromDOMInfo(n,r.offsetNode,0)}return new aA(r.offsetNode)}static _snapToSoftTabBoundary(n,i){const r=i.getLineContent(n.lineNumber),{tabSize:o}=i.model.getOptions(),s=Bue.atomicPosition(r,n.column-1,o,2);return s!==-1?new mt(n.lineNumber,s+1):n}static doHitTest(n,i){let r=new aA;if(typeof n.viewDomNode.ownerDocument.caretRangeFromPoint=="function"?r=this._doHitTestWithCaretRangeFromPoint(n,i):n.viewDomNode.ownerDocument.caretPositionFromPoint&&(r=this._doHitTestWithCaretPositionFromPoint(n,i.pos.toClientCoordinates(Yi(n.viewDomNode)))),r.type===1){const o=n.viewModel.getInjectedTextAt(r.position),s=n.viewModel.normalizePosition(r.position,2);(o||!s.equals(r.position))&&(r=new jwe(s,r.spanNode,o))}return r}},TWt=(e=class{static getInstance(){return e._INSTANCE||(e._INSTANCE=new e),e._INSTANCE}constructor(){this._cache={},this._canvas=document.createElement("canvas")}getCharWidth(n,i){const r=n+i;if(this._cache[r])return this._cache[r];const o=this._canvas.getContext("2d");o.font=i;const a=o.measureText(n).width;return this._cache[r]=a,a}},e._INSTANCE=null,e)}}),U7n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/standalone-tokens.css"(){}}),Vat,Hat,Wat,t9,EHe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/pixelRatio.js"(){Fn(),Un(),Nt(),Vat=class extends St{constructor(e){super(),this._onDidChange=this._register(new bt),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1)}_handleChange(e,t){this._mediaQueryList?.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}},Hat=class extends St{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new bt),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);const t=this._register(new Vat(e));this._register(t.onDidChange(()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)}))}_getPixelRatio(e){const t=document.createElement("canvas").getContext("2d"),n=e.devicePixelRatio||1,i=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return n/i}},Wat=class{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){const t=PU(e);let n=this.mapWindowIdToPixelRatioMonitor.get(t);return n||(n=bq(new Hat(e)),this.mapWindowIdToPixelRatioMonitor.set(t,n),bq(On.once(s3t)(({vscodeWindowId:i})=>{i===t&&(n?.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))}))),n}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}},t9=new Wat}});function yh(e,t){e instanceof hHe?(e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setFontVariationSettings(t.fontVariationSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.fontVariationSettings=t.fontVariationSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px")}var xb=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/config/domFontInfo.js"(){_d()}});function $7n(e,t,n){new IWt(t,n).read(e)}var kWt,IWt,q7n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/config/charWidthReader.js"(){xb(),kWt=class{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}},IWt=class LWt{constructor(t,n){this._bareFontInfo=t,this._requests=n,this._container=null,this._testElements=null}read(t){this._createDomElements(),t.document.body.appendChild(this._container),this._readFromDomElements(),this._container?.remove(),this._container=null,this._testElements=null}_createDomElements(){const t=document.createElement("div");t.style.position="absolute",t.style.top="-50000px",t.style.width="50000px";const n=document.createElement("div");yh(n,this._bareFontInfo),t.appendChild(n);const i=document.createElement("div");yh(i,this._bareFontInfo),i.style.fontWeight="bold",t.appendChild(i);const r=document.createElement("div");yh(r,this._bareFontInfo),r.style.fontStyle="italic",t.appendChild(r);const o=[];for(const s of this._requests){let a;s.type===0&&(a=n),s.type===2&&(a=i),s.type===1&&(a=r),a.appendChild(document.createElement("br"));const l=document.createElement("span");LWt._render(l,s),a.appendChild(l),o.push(l)}this._container=t,this._testElements=o}static _render(t,n){if(n.chr===" "){let i=" ";for(let r=0;r<8;r++)i+=i;t.innerText=i}else{let i=n.chr;for(let r=0;r<8;r++)i+=i;t.textContent=i}}_readFromDomElements(){for(let t=0,n=this._requests.length;t<n;t++){const i=this._requests[t],r=this._testElements[t];i.fulfill(r.offsetWidth/256)}}}}}),_0,tY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/config/editorZoom.js"(){Un(),_0=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new bt,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}}}),Uat,aJ,jue,$at,zue,AHe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/config/fontInfo.js"(){Xr(),Su(),tY(),Uat=xo?1.5:1.35,aJ=8,jue=class Joe{static createFromValidatedSettings(t,n,i){const r=t.get(49),o=t.get(53),s=t.get(52),a=t.get(51),l=t.get(54),c=t.get(67),u=t.get(64);return Joe._create(r,o,s,a,l,c,u,n,i)}static _create(t,n,i,r,o,s,a,l,c){s===0?s=Uat*i:s<aJ&&(s=s*i),s=Math.round(s),s<aJ&&(s=aJ);const u=1+(c?0:_0.getZoomLevel()*.1);return i*=u,s*=u,o===Fue.TRANSLATE&&(n==="normal"||n==="bold"?o=Fue.OFF:(o=`'wght' ${parseInt(n,10)}`,n="normal")),new Joe({pixelRatio:l,fontFamily:t,fontWeight:n,fontSize:i,fontFeatureSettings:r,fontVariationSettings:o,lineHeight:s,letterSpacing:a})}constructor(t){this._bareFontInfoBrand=void 0,this.pixelRatio=t.pixelRatio,this.fontFamily=String(t.fontFamily),this.fontWeight=String(t.fontWeight),this.fontSize=t.fontSize,this.fontFeatureSettings=t.fontFeatureSettings,this.fontVariationSettings=t.fontVariationSettings,this.lineHeight=t.lineHeight|0,this.letterSpacing=t.letterSpacing}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.fontVariationSettings}-${this.lineHeight}-${this.letterSpacing}`}getMassagedFontFamily(){const t=ap.fontFamily,n=Joe._wrapInQuotes(this.fontFamily);return t&&this.fontFamily!==t?`${n}, ${t}`:n}static _wrapInQuotes(t){return/[,"']/.test(t)?t:/[+ ]/.test(t)?`"${t}"`:t}},$at=2,zue=class extends jue{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=$at,this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.fontVariationSettings===e.fontVariationSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}}}),qat,Gat,Vue,NWt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/config/fontMeasurements.js"(){Fn(),EHe(),Un(),Nt(),q7n(),Su(),AHe(),qat=class extends St{constructor(){super(...arguments),this._cache=new Map,this._evictUntrustedReadingsTimeout=-1,this._onDidChange=this._register(new bt),this.onDidChange=this._onDidChange.event}dispose(){this._evictUntrustedReadingsTimeout!==-1&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache.clear(),this._onDidChange.fire()}_ensureCache(e){const t=PU(e);let n=this._cache.get(t);return n||(n=new Gat,this._cache.set(t,n)),n}_writeToCache(e,t,n){this._ensureCache(e).put(t,n),!n.isTrusted&&this._evictUntrustedReadingsTimeout===-1&&(this._evictUntrustedReadingsTimeout=e.setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings(e)},5e3))}_evictUntrustedReadings(e){const t=this._ensureCache(e),n=t.getValues();let i=!1;for(const r of n)r.isTrusted||(i=!0,t.remove(r));i&&this._onDidChange.fire()}readFontInfo(e,t){const n=this._ensureCache(e);if(!n.has(t)){let i=this._actualReadFontInfo(e,t);(i.typicalHalfwidthCharacterWidth<=2||i.typicalFullwidthCharacterWidth<=2||i.spaceWidth<=2||i.maxDigitWidth<=2)&&(i=new zue({pixelRatio:t9.getInstance(e).value,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFeatureSettings:i.fontFeatureSettings,fontVariationSettings:i.fontVariationSettings,lineHeight:i.lineHeight,letterSpacing:i.letterSpacing,isMonospace:i.isMonospace,typicalHalfwidthCharacterWidth:Math.max(i.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(i.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:i.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(i.spaceWidth,5),middotWidth:Math.max(i.middotWidth,5),wsmiddotWidth:Math.max(i.wsmiddotWidth,5),maxDigitWidth:Math.max(i.maxDigitWidth,5)},!1)),this._writeToCache(e,t,i)}return n.get(t)}_createRequest(e,t,n,i){const r=new kWt(e,t);return n.push(r),i?.push(r),r}_actualReadFontInfo(e,t){const n=[],i=[],r=this._createRequest("n",0,n,i),o=this._createRequest("m",0,n,null),s=this._createRequest(" ",0,n,i),a=this._createRequest("0",0,n,i),l=this._createRequest("1",0,n,i),c=this._createRequest("2",0,n,i),u=this._createRequest("3",0,n,i),d=this._createRequest("4",0,n,i),h=this._createRequest("5",0,n,i),f=this._createRequest("6",0,n,i),p=this._createRequest("7",0,n,i),g=this._createRequest("8",0,n,i),m=this._createRequest("9",0,n,i),v=this._createRequest("→",0,n,i),y=this._createRequest("→",0,n,null),b=this._createRequest("·",0,n,i),w=this._createRequest("⸱",0,n,null),E="|/-_ilm%";for(let P=0,F=E.length;P<F;P++)this._createRequest(E.charAt(P),0,n,i),this._createRequest(E.charAt(P),1,n,i),this._createRequest(E.charAt(P),2,n,i);$7n(e,t,n);const A=Math.max(a.width,l.width,c.width,u.width,d.width,h.width,f.width,p.width,g.width,m.width);let D=t.fontFeatureSettings===QR.OFF;const T=i[0].width;for(let P=1,F=i.length;D&&P<F;P++){const N=T-i[P].width;if(N<-.001||N>.001){D=!1;break}}let M=!0;return D&&y.width!==T&&(M=!1),y.width>v.width&&(M=!1),new zue({pixelRatio:t9.getInstance(e).value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:D,typicalHalfwidthCharacterWidth:r.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:M,spaceWidth:s.width,middotWidth:b.width,wsmiddotWidth:w.width,maxDigitWidth:A},!0)}},Gat=class{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const n=e.getId();this._keys[n]=e,this._values[n]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map(e=>this._values[e])}},Vue=new qat}});function G7n(e,t,n){t[Y1.DI_TARGET]===t?t[Y1.DI_DEPENDENCIES].push({id:e,index:n}):(t[Y1.DI_DEPENDENCIES]=[{id:e,index:n}],t[Y1.DI_TARGET]=t)}function Ao(e){if(Y1.serviceIds.has(e))return Y1.serviceIds.get(e);const t=function(n,i,r){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");G7n(t,n,r)};return t.toString=()=>e,Y1.serviceIds.set(e,t),t}var Y1,ji,li=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"(){(function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies";function t(n){return n[e.DI_DEPENDENCIES]||[]}e.getServiceDependencies=t})(Y1||(Y1={})),ji=Ao("instantiationService")}}),Jo,Ec=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"(){li(),Jo=Ao("codeEditorService")}}),Ua,Kf=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/model.js"(){li(),Ua=Ao("modelService")}}),dg,Eb=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/resolverService.js"(){li(),dg=Ao("textModelService")}});function lR(e){return{id:e.id,label:e.label,tooltip:e.tooltip??e.label,class:e.class,enabled:e.enabled??!0,checked:e.checked,run:async(...t)=>e.run(...t)}}var cm,NL,zd,ZR,PWt,wd=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/actions.js"(){var e,t;Un(),Nt(),bn(),cm=class extends St{constructor(n,i="",r="",o=!0,s){super(),this._onDidChange=this._register(new bt),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=n,this._label=i,this._cssClass=r,this._enabled=o,this._actionCallback=s}get id(){return this._id}get label(){return this._label}set label(n){this._setLabel(n)}_setLabel(n){this._label!==n&&(this._label=n,this._onDidChange.fire({label:n}))}get tooltip(){return this._tooltip||""}set tooltip(n){this._setTooltip(n)}_setTooltip(n){this._tooltip!==n&&(this._tooltip=n,this._onDidChange.fire({tooltip:n}))}get class(){return this._cssClass}set class(n){this._setClass(n)}_setClass(n){this._cssClass!==n&&(this._cssClass=n,this._onDidChange.fire({class:n}))}get enabled(){return this._enabled}set enabled(n){this._setEnabled(n)}_setEnabled(n){this._enabled!==n&&(this._enabled=n,this._onDidChange.fire({enabled:n}))}get checked(){return this._checked}set checked(n){this._setChecked(n)}_setChecked(n){this._checked!==n&&(this._checked=n,this._onDidChange.fire({checked:n}))}async run(n,i){this._actionCallback&&await this._actionCallback(n)}},NL=class extends St{constructor(){super(...arguments),this._onWillRun=this._register(new bt),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new bt),this.onDidRun=this._onDidRun.event}async run(n,i){if(!n.enabled)return;this._onWillRun.fire({action:n});let r;try{await this.runAction(n,i)}catch(o){r=o}this._onDidRun.fire({action:n,error:r})}async runAction(n,i){await n.run(i)}},zd=(e=class{constructor(){this.id=e.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...i){let r=[];for(const o of i)o.length&&(r.length?r=[...r,new e,...o]:r=o);return r}async run(){}},e.ID="vs.actions.separator",e),ZR=class{get actions(){return this._actions}constructor(n,i,r,o){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=n,this.label=i,this.class=o,this._actions=r}async run(){}},PWt=(t=class extends cm{constructor(){super(t.ID,R("submenu.empty","(empty)"),void 0,!1)}},t.ID="vs.actions.empty",t)}}),Vwe,lr,Ra=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/themables.js"(){ia(),(function(e){function t(n){return n&&typeof n=="object"&&typeof n.id=="string"}e.isThemeColor=t})(Vwe||(Vwe={})),(function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(h){const f=t.exec(h.id);if(!f)return n(An.error);const[,p,g]=f,m=["codicon","codicon-"+p];return g&&m.push("codicon-modifier-"+g.substring(1)),m}e.asClassNameArray=n;function i(h){return n(h).join(" ")}e.asClassName=i;function r(h){return"."+n(h).join(".")}e.asCSSSelector=r;function o(h){return h&&typeof h=="object"&&typeof h.id=="string"&&(typeof h.color>"u"||Vwe.isThemeColor(h.color))}e.isThemeIcon=o;const s=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);function a(h){const f=s.exec(h);if(!f)return;const[,p]=f;return{id:p}}e.fromString=a;function l(h){return{id:h}}e.fromId=l;function c(h,f){let p=h.id;const g=p.lastIndexOf("~");return g!==-1&&(p=p.substring(0,g)),f&&(p=`${p}~${f}`),{id:p}}e.modify=c;function u(h){const f=h.id.lastIndexOf("~");if(f!==-1)return h.id.substring(f+1)}e.getModifier=u;function d(h,f){return h.id===f.id&&h.color?.id===f.color?.id}e.isEqual=d})(lr||(lr={}))}}),Oa,Ro,Ks=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"(){Un(),bg(),Nt(),_b(),as(),li(),Oa=Ao("commandService"),Ro=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new bt,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw new Error("invalid command");if(typeof e=="string"){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.metadata&&Array.isArray(e.metadata.args)){const s=[];for(const l of e.metadata.args)s.push(l.constraint);const a=e.handler;e.handler=function(l,...c){return M2n(c,s),a(l,...c)}}const{id:n}=e;let i=this._commands.get(n);i||(i=new yp,this._commands.set(n,i));const r=i.unshift(e),o=zi(()=>{r(),this._commands.get(n)?.isEmpty()&&this._commands.delete(n)});return this._onDidRegisterCommand.fire(n),o}registerCommandAlias(e,t){return Ro.registerCommand(e,(n,...i)=>n.get(Oa).executeCommand(t,...i))}getCommand(e){const t=this._commands.get(e);if(!(!t||t.isEmpty()))return Vo.first(t)}getCommands(){const e=new Map;for(const t of this._commands.keys()){const n=this.getCommand(t);n&&e.set(t,n)}return e}},Ro.registerCommand("noop",()=>{})}});function Hwe(...e){switch(e.length){case 1:return R("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return R("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return R("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}var Kat,Yat,xB,K7n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/contextkey/common/scanner.js"(){var e;Vi(),bn(),Kat=R("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),Yat=R("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'."),xB=(e=class{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(n){switch(n.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return n.isTripleEq?"===":"==";case 4:return n.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return n.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return n.lexeme;case 18:return n.lexeme;case 19:return n.lexeme;case 20:return"EOF";default:throw yVe(`unhandled token type: ${JSON.stringify(n)}; have you forgotten to add a case?`)}}reset(n){return this._input=n,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const i=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:i})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const i=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:i})}else this._match(126)?this._addToken(9):this._error(Hwe("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(Hwe("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(Hwe("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(n){return this._isAtEnd()||this._input.charCodeAt(this._current)!==n?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(n){this._tokens.push({type:n,offset:this._start})}_error(n){const i=this._start,r=this._input.substring(this._start,this._current),o={type:19,offset:this._start,lexeme:r};this._errors.push({offset:i,lexeme:r,additionalInfo:n}),this._tokens.push(o)}_string(){this.stringRe.lastIndex=this._start;const n=this.stringRe.exec(this._input);if(n){this._current=this._start+n[0].length;const i=this._input.substring(this._start,this._current),r=e._keywords.get(i);r?this._addToken(r):this._tokens.push({type:17,lexeme:i,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(Kat);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let n=this._current,i=!1,r=!1;for(;;){if(n>=this._input.length){this._current=n,this._error(Yat);return}const s=this._input.charCodeAt(n);if(i)i=!1;else if(s===47&&!r){n++;break}else s===91?r=!0:s===92?i=!0:s===93&&(r=!1);n++}for(;n<this._input.length&&e._regexFlags.has(this._input.charCodeAt(n));)n++;this._current=n;const o=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:o,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}},e._regexFlags=new Set(["i","g","s","m","y","u"].map(n=>n.charCodeAt(0))),e._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]),e)}});function Y7n(e,t){const n=e?e.substituteConstants():void 0,i=t?t.substituteConstants():void 0;return!n&&!i?!0:!n||!i?!1:n.equals(i)}function Fz(e,t){return e.cmp(t)}function lJ(e,t){if(typeof e=="string"){const n=parseFloat(e);isNaN(n)||(e=n)}return typeof e=="string"||typeof e=="number"?t(e):Hg.INSTANCE}function Qat(e){let t=null;for(let n=0,i=e.length;n<i;n++){const r=e[n].substituteConstants();if(e[n]!==r&&t===null){t=[];for(let o=0;o<n;o++)t[o]=e[o]}t!==null&&(t[n]=r)}return t===null?e:t}function Zat(e,t){return e<t?-1:e>t?1:0}function FP(e,t,n,i){return e<n?-1:e>n?1:t<i?-1:t>i?1:0}function T5e(e,t){if(e.type===0||t.type===1)return!0;if(e.type===9)return t.type===9?Xat(e.expr,t.expr):!1;if(t.type===9){for(const n of t.expr)if(T5e(e,n))return!0;return!1}if(e.type===6){if(t.type===6)return Xat(t.expr,e.expr);for(const n of e.expr)if(T5e(n,t))return!0;return!1}return e.equals(t)}function Xat(e,t){let n=0,i=0;for(;n<e.length&&i<t.length;){const r=e[n].cmp(t[i]);if(r<0)return!1;r===0&&n++,i++}return n===e.length}function Jat(e){return e.type===9?e.expr:[e]}var zh,elt,tlt,nlt,ilt,rlt,Wwe,olt,slt,alt,llt,clt,nn,Hg,Dm,A5,VH,Uwe,$we,qwe,D5,Gwe,Kwe,Ywe,Qwe,cJ,ult,Zwe,uJ,Qn,ur,er=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"(){var e,t,n,i,r;Xr(),Ki(),K7n(),li(),bn(),zh=new Map,zh.set("false",!1),zh.set("true",!0),zh.set("isMac",xo),zh.set("isLinux",Wf),zh.set("isWindows",Ch),zh.set("isWeb",_L),zh.set("isMacNative",xo&&!_L),zh.set("isEdge",b7t),zh.set("isFirefox",v7t),zh.set("isChrome",LRe),zh.set("isSafari",y7t),elt=Object.prototype.hasOwnProperty,tlt={regexParsingWithErrorRecovery:!0},nlt=R("contextkey.parser.error.emptyString","Empty context key expression"),ilt=R("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),rlt=R("contextkey.parser.error.noInAfterNot","'in' after 'not'."),Wwe=R("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),olt=R("contextkey.parser.error.unexpectedToken","Unexpected token"),slt=R("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),alt=R("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),llt=R("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?"),clt=(e=class{constructor(s=tlt){this._config=s,this._scanner=new xB,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(s){if(s===""){this._parsingErrors.push({message:nlt,offset:0,lexeme:"",additionalInfo:ilt});return}this._tokens=this._scanner.reset(s).scan(),this._current=0,this._parsingErrors=[];try{const a=this._expr();if(!this._isAtEnd()){const l=this._peek(),c=l.type===17?slt:void 0;throw this._parsingErrors.push({message:olt,offset:l.offset,lexeme:xB.getLexeme(l),additionalInfo:c}),e._parseError}return a}catch(a){if(a!==e._parseError)throw a;return}}_expr(){return this._or()}_or(){const s=[this._and()];for(;this._matchOne(16);){const a=this._and();s.push(a)}return s.length===1?s[0]:nn.or(...s)}_and(){const s=[this._term()];for(;this._matchOne(15);){const a=this._term();s.push(a)}return s.length===1?s[0]:nn.and(...s)}_term(){if(this._matchOne(2)){const s=this._peek();switch(s.type){case 11:return this._advance(),Hg.INSTANCE;case 12:return this._advance(),Dm.INSTANCE;case 0:{this._advance();const a=this._expr();return this._consume(1,Wwe),a?.negate()}case 17:return this._advance(),D5.create(s.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",s)}}return this._primary()}_primary(){const s=this._peek();switch(s.type){case 11:return this._advance(),nn.true();case 12:return this._advance(),nn.false();case 0:{this._advance();const a=this._expr();return this._consume(1,Wwe),a}case 17:{const a=s.lexeme;if(this._advance(),this._matchOne(9)){const c=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),c.type!==10)throw this._errExpectedButGot("REGEX",c);const u=c.lexeme,d=u.lastIndexOf("/"),h=d===u.length-1?void 0:this._removeFlagsGY(u.substring(d+1));let f;try{f=new RegExp(u.substring(1,d),h)}catch{throw this._errExpectedButGot("REGEX",c)}return cJ.create(a,f)}switch(c.type){case 10:case 19:{const u=[c.lexeme];this._advance();let d=this._peek(),h=0;for(let v=0;v<c.lexeme.length;v++)c.lexeme.charCodeAt(v)===40?h++:c.lexeme.charCodeAt(v)===41&&h--;for(;!this._isAtEnd()&&d.type!==15&&d.type!==16;){switch(d.type){case 0:h++;break;case 1:h--;break;case 10:case 18:for(let v=0;v<d.lexeme.length;v++)d.lexeme.charCodeAt(v)===40?h++:c.lexeme.charCodeAt(v)===41&&h--}if(h<0)break;u.push(xB.getLexeme(d)),this._advance(),d=this._peek()}const f=u.join(""),p=f.lastIndexOf("/"),g=p===f.length-1?void 0:this._removeFlagsGY(f.substring(p+1));let m;try{m=new RegExp(f.substring(1,p),g)}catch{throw this._errExpectedButGot("REGEX",c)}return nn.regex(a,m)}case 18:{const u=c.lexeme;this._advance();let d=null;if(!jVt(u)){const h=u.indexOf("/"),f=u.lastIndexOf("/");if(h!==f&&h>=0){const p=u.slice(h+1,f),g=u[f+1]==="i"?"i":"";try{d=new RegExp(p,g)}catch{throw this._errExpectedButGot("REGEX",c)}}}if(d===null)throw this._errExpectedButGot("REGEX",c);return cJ.create(a,d)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,rlt);const c=this._value();return nn.notIn(a,c)}switch(this._peek().type){case 3:{this._advance();const c=this._value();if(this._previous().type===18)return nn.equals(a,c);switch(c){case"true":return nn.has(a);case"false":return nn.not(a);default:return nn.equals(a,c)}}case 4:{this._advance();const c=this._value();if(this._previous().type===18)return nn.notEquals(a,c);switch(c){case"true":return nn.not(a);case"false":return nn.has(a);default:return nn.notEquals(a,c)}}case 5:return this._advance(),Ywe.create(a,this._value());case 6:return this._advance(),Qwe.create(a,this._value());case 7:return this._advance(),Gwe.create(a,this._value());case 8:return this._advance(),Kwe.create(a,this._value());case 13:return this._advance(),nn.in(a,this._value());default:return nn.has(a)}}case 20:throw this._parsingErrors.push({message:alt,offset:s.offset,lexeme:"",additionalInfo:llt}),e._parseError;default:throw this._errExpectedButGot(`true | false | KEY 
	| KEY '=~' REGEX 
	| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){const s=this._peek();switch(s.type){case 17:case 18:return this._advance(),s.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(s){return s.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(s){return this._check(s)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(s,a){if(this._check(s))return this._advance();throw this._errExpectedButGot(a,this._peek())}_errExpectedButGot(s,a,l){const c=R("contextkey.parser.error.expectedButGot",`Expected: {0}
Received: '{1}'.`,s,xB.getLexeme(a)),u=a.offset,d=xB.getLexeme(a);return this._parsingErrors.push({message:c,offset:u,lexeme:d,additionalInfo:l}),e._parseError}_check(s){return this._peek().type===s}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}},e._parseError=new Error,e),nn=(t=class{static false(){return Hg.INSTANCE}static true(){return Dm.INSTANCE}static has(s){return A5.create(s)}static equals(s,a){return VH.create(s,a)}static notEquals(s,a){return qwe.create(s,a)}static regex(s,a){return cJ.create(s,a)}static in(s,a){return Uwe.create(s,a)}static notIn(s,a){return $we.create(s,a)}static not(s){return D5.create(s)}static and(...s){return Zwe.create(s,null,!0)}static or(...s){return uJ.create(s,null,!0)}static deserialize(s){return s==null?void 0:this._parser.parse(s)}},t._parser=new clt({regexParsingWithErrorRecovery:!1}),t),Hg=(n=class{constructor(){this.type=0}cmp(s){return this.type-s.type}equals(s){return s.type===this.type}substituteConstants(){return this}evaluate(s){return!1}serialize(){return"false"}keys(){return[]}negate(){return Dm.INSTANCE}},n.INSTANCE=new n,n),Dm=(i=class{constructor(){this.type=1}cmp(s){return this.type-s.type}equals(s){return s.type===this.type}substituteConstants(){return this}evaluate(s){return!0}serialize(){return"true"}keys(){return[]}negate(){return Hg.INSTANCE}},i.INSTANCE=new i,i),A5=class MWt{static create(s,a=null){const l=zh.get(s);return typeof l=="boolean"?l?Dm.INSTANCE:Hg.INSTANCE:new MWt(s,a)}constructor(s,a){this.key=s,this.negated=a,this.type=2}cmp(s){return s.type!==this.type?this.type-s.type:Zat(this.key,s.key)}equals(s){return s.type===this.type?this.key===s.key:!1}substituteConstants(){const s=zh.get(this.key);return typeof s=="boolean"?s?Dm.INSTANCE:Hg.INSTANCE:this}evaluate(s){return!!s.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=D5.create(this.key,this)),this.negated}},VH=class OWt{static create(s,a,l=null){if(typeof a=="boolean")return a?A5.create(s,l):D5.create(s,l);const c=zh.get(s);return typeof c=="boolean"?a===(c?"true":"false")?Dm.INSTANCE:Hg.INSTANCE:new OWt(s,a,l)}constructor(s,a,l){this.key=s,this.value=a,this.negated=l,this.type=4}cmp(s){return s.type!==this.type?this.type-s.type:FP(this.key,this.value,s.key,s.value)}equals(s){return s.type===this.type?this.key===s.key&&this.value===s.value:!1}substituteConstants(){const s=zh.get(this.key);if(typeof s=="boolean"){const a=s?"true":"false";return this.value===a?Dm.INSTANCE:Hg.INSTANCE}return this}evaluate(s){return s.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=qwe.create(this.key,this.value,this)),this.negated}},Uwe=class RWt{static create(s,a){return new RWt(s,a)}constructor(s,a){this.key=s,this.valueKey=a,this.type=10,this.negated=null}cmp(s){return s.type!==this.type?this.type-s.type:FP(this.key,this.valueKey,s.key,s.valueKey)}equals(s){return s.type===this.type?this.key===s.key&&this.valueKey===s.valueKey:!1}substituteConstants(){return this}evaluate(s){const a=s.getValue(this.valueKey),l=s.getValue(this.key);return Array.isArray(a)?a.includes(l):typeof l=="string"&&typeof a=="object"&&a!==null?elt.call(a,l):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=$we.create(this.key,this.valueKey)),this.negated}},$we=class FWt{static create(s,a){return new FWt(s,a)}constructor(s,a){this.key=s,this.valueKey=a,this.type=11,this._negated=Uwe.create(s,a)}cmp(s){return s.type!==this.type?this.type-s.type:this._negated.cmp(s._negated)}equals(s){return s.type===this.type?this._negated.equals(s._negated):!1}substituteConstants(){return this}evaluate(s){return!this._negated.evaluate(s)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}},qwe=class BWt{static create(s,a,l=null){if(typeof a=="boolean")return a?D5.create(s,l):A5.create(s,l);const c=zh.get(s);return typeof c=="boolean"?a===(c?"true":"false")?Hg.INSTANCE:Dm.INSTANCE:new BWt(s,a,l)}constructor(s,a,l){this.key=s,this.value=a,this.negated=l,this.type=5}cmp(s){return s.type!==this.type?this.type-s.type:FP(this.key,this.value,s.key,s.value)}equals(s){return s.type===this.type?this.key===s.key&&this.value===s.value:!1}substituteConstants(){const s=zh.get(this.key);if(typeof s=="boolean"){const a=s?"true":"false";return this.value===a?Hg.INSTANCE:Dm.INSTANCE}return this}evaluate(s){return s.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=VH.create(this.key,this.value,this)),this.negated}},D5=class jWt{static create(s,a=null){const l=zh.get(s);return typeof l=="boolean"?l?Hg.INSTANCE:Dm.INSTANCE:new jWt(s,a)}constructor(s,a){this.key=s,this.negated=a,this.type=3}cmp(s){return s.type!==this.type?this.type-s.type:Zat(this.key,s.key)}equals(s){return s.type===this.type?this.key===s.key:!1}substituteConstants(){const s=zh.get(this.key);return typeof s=="boolean"?s?Hg.INSTANCE:Dm.INSTANCE:this}evaluate(s){return!s.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A5.create(this.key,this)),this.negated}},Gwe=class zWt{static create(s,a,l=null){return lJ(a,c=>new zWt(s,c,l))}constructor(s,a,l){this.key=s,this.value=a,this.negated=l,this.type=12}cmp(s){return s.type!==this.type?this.type-s.type:FP(this.key,this.value,s.key,s.value)}equals(s){return s.type===this.type?this.key===s.key&&this.value===s.value:!1}substituteConstants(){return this}evaluate(s){return typeof this.value=="string"?!1:parseFloat(s.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Qwe.create(this.key,this.value,this)),this.negated}},Kwe=class VWt{static create(s,a,l=null){return lJ(a,c=>new VWt(s,c,l))}constructor(s,a,l){this.key=s,this.value=a,this.negated=l,this.type=13}cmp(s){return s.type!==this.type?this.type-s.type:FP(this.key,this.value,s.key,s.value)}equals(s){return s.type===this.type?this.key===s.key&&this.value===s.value:!1}substituteConstants(){return this}evaluate(s){return typeof this.value=="string"?!1:parseFloat(s.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Ywe.create(this.key,this.value,this)),this.negated}},Ywe=class HWt{static create(s,a,l=null){return lJ(a,c=>new HWt(s,c,l))}constructor(s,a,l){this.key=s,this.value=a,this.negated=l,this.type=14}cmp(s){return s.type!==this.type?this.type-s.type:FP(this.key,this.value,s.key,s.value)}equals(s){return s.type===this.type?this.key===s.key&&this.value===s.value:!1}substituteConstants(){return this}evaluate(s){return typeof this.value=="string"?!1:parseFloat(s.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Kwe.create(this.key,this.value,this)),this.negated}},Qwe=class WWt{static create(s,a,l=null){return lJ(a,c=>new WWt(s,c,l))}constructor(s,a,l){this.key=s,this.value=a,this.negated=l,this.type=15}cmp(s){return s.type!==this.type?this.type-s.type:FP(this.key,this.value,s.key,s.value)}equals(s){return s.type===this.type?this.key===s.key&&this.value===s.value:!1}substituteConstants(){return this}evaluate(s){return typeof this.value=="string"?!1:parseFloat(s.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Gwe.create(this.key,this.value,this)),this.negated}},cJ=class UWt{static create(s,a){return new UWt(s,a)}constructor(s,a){this.key=s,this.regexp=a,this.type=7,this.negated=null}cmp(s){if(s.type!==this.type)return this.type-s.type;if(this.key<s.key)return-1;if(this.key>s.key)return 1;const a=this.regexp?this.regexp.source:"",l=s.regexp?s.regexp.source:"";return a<l?-1:a>l?1:0}equals(s){if(s.type===this.type){const a=this.regexp?this.regexp.source:"",l=s.regexp?s.regexp.source:"";return this.key===s.key&&a===l}return!1}substituteConstants(){return this}evaluate(s){const a=s.getValue(this.key);return this.regexp?this.regexp.test(a):!1}serialize(){const s=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${s}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=ult.create(this)),this.negated}},ult=class $Wt{static create(s){return new $Wt(s)}constructor(s){this._actual=s,this.type=8}cmp(s){return s.type!==this.type?this.type-s.type:this._actual.cmp(s._actual)}equals(s){return s.type===this.type?this._actual.equals(s._actual):!1}substituteConstants(){return this}evaluate(s){return!this._actual.evaluate(s)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}},Zwe=class HH{static create(s,a,l){return HH._normalizeArr(s,a,l)}constructor(s,a){this.expr=s,this.negated=a,this.type=6}cmp(s){if(s.type!==this.type)return this.type-s.type;if(this.expr.length<s.expr.length)return-1;if(this.expr.length>s.expr.length)return 1;for(let a=0,l=this.expr.length;a<l;a++){const c=Fz(this.expr[a],s.expr[a]);if(c!==0)return c}return 0}equals(s){if(s.type===this.type){if(this.expr.length!==s.expr.length)return!1;for(let a=0,l=this.expr.length;a<l;a++)if(!this.expr[a].equals(s.expr[a]))return!1;return!0}return!1}substituteConstants(){const s=Qat(this.expr);return s===this.expr?this:HH.create(s,this.negated,!1)}evaluate(s){for(let a=0,l=this.expr.length;a<l;a++)if(!this.expr[a].evaluate(s))return!1;return!0}static _normalizeArr(s,a,l){const c=[];let u=!1;for(const d of s)if(d){if(d.type===1){u=!0;continue}if(d.type===0)return Hg.INSTANCE;if(d.type===6){c.push(...d.expr);continue}c.push(d)}if(c.length===0&&u)return Dm.INSTANCE;if(c.length!==0){if(c.length===1)return c[0];c.sort(Fz);for(let d=1;d<c.length;d++)c[d-1].equals(c[d])&&(c.splice(d,1),d--);if(c.length===1)return c[0];for(;c.length>1;){const d=c[c.length-1];if(d.type!==9)break;c.pop();const h=c.pop(),f=c.length===0,p=uJ.create(d.expr.map(g=>HH.create([g,h],null,l)),null,f);p&&(c.push(p),c.sort(Fz))}if(c.length===1)return c[0];if(l){for(let d=0;d<c.length;d++)for(let h=d+1;h<c.length;h++)if(c[d].negate().equals(c[h]))return Hg.INSTANCE;if(c.length===1)return c[0]}return new HH(c,a)}}serialize(){return this.expr.map(s=>s.serialize()).join(" && ")}keys(){const s=[];for(const a of this.expr)s.push(...a.keys());return s}negate(){if(!this.negated){const s=[];for(const a of this.expr)s.push(a.negate());this.negated=uJ.create(s,this,!0)}return this.negated}},uJ=class EB{static create(s,a,l){return EB._normalizeArr(s,a,l)}constructor(s,a){this.expr=s,this.negated=a,this.type=9}cmp(s){if(s.type!==this.type)return this.type-s.type;if(this.expr.length<s.expr.length)return-1;if(this.expr.length>s.expr.length)return 1;for(let a=0,l=this.expr.length;a<l;a++){const c=Fz(this.expr[a],s.expr[a]);if(c!==0)return c}return 0}equals(s){if(s.type===this.type){if(this.expr.length!==s.expr.length)return!1;for(let a=0,l=this.expr.length;a<l;a++)if(!this.expr[a].equals(s.expr[a]))return!1;return!0}return!1}substituteConstants(){const s=Qat(this.expr);return s===this.expr?this:EB.create(s,this.negated,!1)}evaluate(s){for(let a=0,l=this.expr.length;a<l;a++)if(this.expr[a].evaluate(s))return!0;return!1}static _normalizeArr(s,a,l){let c=[],u=!1;if(s){for(let d=0,h=s.length;d<h;d++){const f=s[d];if(f){if(f.type===0){u=!0;continue}if(f.type===1)return Dm.INSTANCE;if(f.type===9){c=c.concat(f.expr);continue}c.push(f)}}if(c.length===0&&u)return Hg.INSTANCE;c.sort(Fz)}if(c.length!==0){if(c.length===1)return c[0];for(let d=1;d<c.length;d++)c[d-1].equals(c[d])&&(c.splice(d,1),d--);if(c.length===1)return c[0];if(l){for(let d=0;d<c.length;d++)for(let h=d+1;h<c.length;h++)if(c[d].negate().equals(c[h]))return Dm.INSTANCE;if(c.length===1)return c[0]}return new EB(c,a)}}serialize(){return this.expr.map(s=>s.serialize()).join(" || ")}keys(){const s=[];for(const a of this.expr)s.push(...a.keys());return s}negate(){if(!this.negated){const s=[];for(const a of this.expr)s.push(a.negate());for(;s.length>1;){const a=s.shift(),l=s.shift(),c=[];for(const u of Jat(a))for(const d of Jat(l))c.push(Zwe.create([u,d],null,!1));s.unshift(EB.create(c,null,!1))}this.negated=EB.create(s,this,!0)}return this.negated}},Qn=(r=class extends A5{static all(){return r._info.values()}constructor(s,a,l){super(s,null),this._defaultValue=a,typeof l=="object"?r._info.push({...l,key:s}):l!==!0&&r._info.push({key:s,description:l,type:a!=null?typeof a:void 0})}bindTo(s){return s.createKey(this.key,this._defaultValue)}getValue(s){return s.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(s){return VH.create(this.key,s)}},r._info=[],r),ur=Ao("contextKeyService")}});function Q7n(e,t){if(e.weight1!==t.weight1)return e.weight1-t.weight1;if(e.command&&t.command){if(e.command<t.command)return-1;if(e.command>t.command)return 1}return e.weight2-t.weight2}var dlt,dp,hlt,kN=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js"(){C7(),Xr(),Ks(),Fu(),Nt(),_b(),dlt=class qWt{constructor(){this._coreKeybindings=new yp,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(t){if(om===1){if(t&&t.win)return t.win}else if(om===2){if(t&&t.mac)return t.mac}else if(t&&t.linux)return t.linux;return t}registerKeybindingRule(t){const n=qWt.bindToCurrentPlatform(t),i=new Jt;if(n&&n.primary){const r=LFe(n.primary,om);r&&i.add(this._registerDefaultKeybinding(r,t.id,t.args,t.weight,0,t.when))}if(n&&Array.isArray(n.secondary))for(let r=0,o=n.secondary.length;r<o;r++){const s=n.secondary[r],a=LFe(s,om);a&&i.add(this._registerDefaultKeybinding(a,t.id,t.args,t.weight,-r-1,t.when))}return i}registerCommandAndKeybindingRule(t){return z_(this.registerKeybindingRule(t),Ro.registerCommand(t))}_registerDefaultKeybinding(t,n,i,r,o,s){const a=this._coreKeybindings.push({keybinding:t,command:n,commandArgs:i,when:s,weight1:r,weight2:o,extensionId:null,isBuiltinExtension:!1});return this._cachedMergedKeybindings=null,zi(()=>{a(),this._cachedMergedKeybindings=null})}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(Q7n)),this._cachedMergedKeybindings.slice(0)}},dp=new dlt,hlt={EditorModes:"platform.keybindingsRegistry"},ml.add(hlt.EditorModes,dp)}});function n6(e){return e.command!==void 0}function Z7n(e){return e.submenu!==void 0}function Pa(e){const t=[],n=new e,{f1:i,menu:r,keybinding:o,...s}=n.desc;if(Ro.getCommand(s.id))throw new Error(`Cannot register two commands with the same id: ${s.id}`);if(t.push(Ro.registerCommand({id:s.id,handler:(a,...l)=>n.run(a,...l),metadata:s.metadata})),Array.isArray(r))for(const a of r)t.push(fd.appendMenuItem(a.id,{command:{...s,precondition:a.precondition===null?void 0:s.precondition},...a}));else r&&t.push(fd.appendMenuItem(r.id,{command:{...s,precondition:r.precondition===null?void 0:s.precondition},...r}));if(i&&(t.push(fd.appendMenuItem(Ti.CommandPalette,{command:s,when:s.precondition})),t.push(fd.addCommand(s))),Array.isArray(o))for(const a of o)t.push(dp.registerKeybindingRule({...a,id:s.id,when:s.precondition?nn.and(s.precondition,a.when):a.when}));else o&&t.push(dp.registerKeybindingRule({...o,id:s.id,when:s.precondition?nn.and(s.precondition,o.when):o.when}));return{dispose(){xa(t)}}}var flt,Xwe,dJ,Ti,Pv,T5,fd,cR,um,pp,ha=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"(){var e,t;wd(),Ra(),Un(),Nt(),_b(),Ks(),er(),li(),kN(),flt=function(n,i,r,o){var s=arguments.length,a=s<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,r):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,i,r,o);else for(var c=n.length-1;c>=0;c--)(l=n[c])&&(a=(s<3?l(a):s>3?l(i,r,a):l(i,r))||a);return s>3&&a&&Object.defineProperty(i,r,a),a},Xwe=function(n,i){return function(r,o){i(r,o,n)}},Ti=(e=class{constructor(i){if(e._instances.has(i))throw new TypeError(`MenuId with identifier '${i}' already exists. Use MenuId.for(ident) or a unique identifier`);e._instances.set(i,this),this.id=i}},e._instances=new Map,e.CommandPalette=new e("CommandPalette"),e.DebugBreakpointsContext=new e("DebugBreakpointsContext"),e.DebugCallStackContext=new e("DebugCallStackContext"),e.DebugConsoleContext=new e("DebugConsoleContext"),e.DebugVariablesContext=new e("DebugVariablesContext"),e.NotebookVariablesContext=new e("NotebookVariablesContext"),e.DebugHoverContext=new e("DebugHoverContext"),e.DebugWatchContext=new e("DebugWatchContext"),e.DebugToolBar=new e("DebugToolBar"),e.DebugToolBarStop=new e("DebugToolBarStop"),e.DebugCallStackToolbar=new e("DebugCallStackToolbar"),e.DebugCreateConfiguration=new e("DebugCreateConfiguration"),e.EditorContext=new e("EditorContext"),e.SimpleEditorContext=new e("SimpleEditorContext"),e.EditorContent=new e("EditorContent"),e.EditorLineNumberContext=new e("EditorLineNumberContext"),e.EditorContextCopy=new e("EditorContextCopy"),e.EditorContextPeek=new e("EditorContextPeek"),e.EditorContextShare=new e("EditorContextShare"),e.EditorTitle=new e("EditorTitle"),e.EditorTitleRun=new e("EditorTitleRun"),e.EditorTitleContext=new e("EditorTitleContext"),e.EditorTitleContextShare=new e("EditorTitleContextShare"),e.EmptyEditorGroup=new e("EmptyEditorGroup"),e.EmptyEditorGroupContext=new e("EmptyEditorGroupContext"),e.EditorTabsBarContext=new e("EditorTabsBarContext"),e.EditorTabsBarShowTabsSubmenu=new e("EditorTabsBarShowTabsSubmenu"),e.EditorTabsBarShowTabsZenModeSubmenu=new e("EditorTabsBarShowTabsZenModeSubmenu"),e.EditorActionsPositionSubmenu=new e("EditorActionsPositionSubmenu"),e.ExplorerContext=new e("ExplorerContext"),e.ExplorerContextShare=new e("ExplorerContextShare"),e.ExtensionContext=new e("ExtensionContext"),e.GlobalActivity=new e("GlobalActivity"),e.CommandCenter=new e("CommandCenter"),e.CommandCenterCenter=new e("CommandCenterCenter"),e.LayoutControlMenuSubmenu=new e("LayoutControlMenuSubmenu"),e.LayoutControlMenu=new e("LayoutControlMenu"),e.MenubarMainMenu=new e("MenubarMainMenu"),e.MenubarAppearanceMenu=new e("MenubarAppearanceMenu"),e.MenubarDebugMenu=new e("MenubarDebugMenu"),e.MenubarEditMenu=new e("MenubarEditMenu"),e.MenubarCopy=new e("MenubarCopy"),e.MenubarFileMenu=new e("MenubarFileMenu"),e.MenubarGoMenu=new e("MenubarGoMenu"),e.MenubarHelpMenu=new e("MenubarHelpMenu"),e.MenubarLayoutMenu=new e("MenubarLayoutMenu"),e.MenubarNewBreakpointMenu=new e("MenubarNewBreakpointMenu"),e.PanelAlignmentMenu=new e("PanelAlignmentMenu"),e.PanelPositionMenu=new e("PanelPositionMenu"),e.ActivityBarPositionMenu=new e("ActivityBarPositionMenu"),e.MenubarPreferencesMenu=new e("MenubarPreferencesMenu"),e.MenubarRecentMenu=new e("MenubarRecentMenu"),e.MenubarSelectionMenu=new e("MenubarSelectionMenu"),e.MenubarShare=new e("MenubarShare"),e.MenubarSwitchEditorMenu=new e("MenubarSwitchEditorMenu"),e.MenubarSwitchGroupMenu=new e("MenubarSwitchGroupMenu"),e.MenubarTerminalMenu=new e("MenubarTerminalMenu"),e.MenubarViewMenu=new e("MenubarViewMenu"),e.MenubarHomeMenu=new e("MenubarHomeMenu"),e.OpenEditorsContext=new e("OpenEditorsContext"),e.OpenEditorsContextShare=new e("OpenEditorsContextShare"),e.ProblemsPanelContext=new e("ProblemsPanelContext"),e.SCMInputBox=new e("SCMInputBox"),e.SCMChangesSeparator=new e("SCMChangesSeparator"),e.SCMChangesContext=new e("SCMChangesContext"),e.SCMIncomingChanges=new e("SCMIncomingChanges"),e.SCMIncomingChangesContext=new e("SCMIncomingChangesContext"),e.SCMIncomingChangesSetting=new e("SCMIncomingChangesSetting"),e.SCMOutgoingChanges=new e("SCMOutgoingChanges"),e.SCMOutgoingChangesContext=new e("SCMOutgoingChangesContext"),e.SCMOutgoingChangesSetting=new e("SCMOutgoingChangesSetting"),e.SCMIncomingChangesAllChangesContext=new e("SCMIncomingChangesAllChangesContext"),e.SCMIncomingChangesHistoryItemContext=new e("SCMIncomingChangesHistoryItemContext"),e.SCMOutgoingChangesAllChangesContext=new e("SCMOutgoingChangesAllChangesContext"),e.SCMOutgoingChangesHistoryItemContext=new e("SCMOutgoingChangesHistoryItemContext"),e.SCMChangeContext=new e("SCMChangeContext"),e.SCMResourceContext=new e("SCMResourceContext"),e.SCMResourceContextShare=new e("SCMResourceContextShare"),e.SCMResourceFolderContext=new e("SCMResourceFolderContext"),e.SCMResourceGroupContext=new e("SCMResourceGroupContext"),e.SCMSourceControl=new e("SCMSourceControl"),e.SCMSourceControlInline=new e("SCMSourceControlInline"),e.SCMSourceControlTitle=new e("SCMSourceControlTitle"),e.SCMHistoryTitle=new e("SCMHistoryTitle"),e.SCMTitle=new e("SCMTitle"),e.SearchContext=new e("SearchContext"),e.SearchActionMenu=new e("SearchActionContext"),e.StatusBarWindowIndicatorMenu=new e("StatusBarWindowIndicatorMenu"),e.StatusBarRemoteIndicatorMenu=new e("StatusBarRemoteIndicatorMenu"),e.StickyScrollContext=new e("StickyScrollContext"),e.TestItem=new e("TestItem"),e.TestItemGutter=new e("TestItemGutter"),e.TestProfilesContext=new e("TestProfilesContext"),e.TestMessageContext=new e("TestMessageContext"),e.TestMessageContent=new e("TestMessageContent"),e.TestPeekElement=new e("TestPeekElement"),e.TestPeekTitle=new e("TestPeekTitle"),e.TestCallStack=new e("TestCallStack"),e.TouchBarContext=new e("TouchBarContext"),e.TitleBarContext=new e("TitleBarContext"),e.TitleBarTitleContext=new e("TitleBarTitleContext"),e.TunnelContext=new e("TunnelContext"),e.TunnelPrivacy=new e("TunnelPrivacy"),e.TunnelProtocol=new e("TunnelProtocol"),e.TunnelPortInline=new e("TunnelInline"),e.TunnelTitle=new e("TunnelTitle"),e.TunnelLocalAddressInline=new e("TunnelLocalAddressInline"),e.TunnelOriginInline=new e("TunnelOriginInline"),e.ViewItemContext=new e("ViewItemContext"),e.ViewContainerTitle=new e("ViewContainerTitle"),e.ViewContainerTitleContext=new e("ViewContainerTitleContext"),e.ViewTitle=new e("ViewTitle"),e.ViewTitleContext=new e("ViewTitleContext"),e.CommentEditorActions=new e("CommentEditorActions"),e.CommentThreadTitle=new e("CommentThreadTitle"),e.CommentThreadActions=new e("CommentThreadActions"),e.CommentThreadAdditionalActions=new e("CommentThreadAdditionalActions"),e.CommentThreadTitleContext=new e("CommentThreadTitleContext"),e.CommentThreadCommentContext=new e("CommentThreadCommentContext"),e.CommentTitle=new e("CommentTitle"),e.CommentActions=new e("CommentActions"),e.CommentsViewThreadActions=new e("CommentsViewThreadActions"),e.InteractiveToolbar=new e("InteractiveToolbar"),e.InteractiveCellTitle=new e("InteractiveCellTitle"),e.InteractiveCellDelete=new e("InteractiveCellDelete"),e.InteractiveCellExecute=new e("InteractiveCellExecute"),e.InteractiveInputExecute=new e("InteractiveInputExecute"),e.InteractiveInputConfig=new e("InteractiveInputConfig"),e.ReplInputExecute=new e("ReplInputExecute"),e.IssueReporter=new e("IssueReporter"),e.NotebookToolbar=new e("NotebookToolbar"),e.NotebookStickyScrollContext=new e("NotebookStickyScrollContext"),e.NotebookCellTitle=new e("NotebookCellTitle"),e.NotebookCellDelete=new e("NotebookCellDelete"),e.NotebookCellInsert=new e("NotebookCellInsert"),e.NotebookCellBetween=new e("NotebookCellBetween"),e.NotebookCellListTop=new e("NotebookCellTop"),e.NotebookCellExecute=new e("NotebookCellExecute"),e.NotebookCellExecuteGoTo=new e("NotebookCellExecuteGoTo"),e.NotebookCellExecutePrimary=new e("NotebookCellExecutePrimary"),e.NotebookDiffCellInputTitle=new e("NotebookDiffCellInputTitle"),e.NotebookDiffCellMetadataTitle=new e("NotebookDiffCellMetadataTitle"),e.NotebookDiffCellOutputsTitle=new e("NotebookDiffCellOutputsTitle"),e.NotebookOutputToolbar=new e("NotebookOutputToolbar"),e.NotebookOutlineFilter=new e("NotebookOutlineFilter"),e.NotebookOutlineActionMenu=new e("NotebookOutlineActionMenu"),e.NotebookEditorLayoutConfigure=new e("NotebookEditorLayoutConfigure"),e.NotebookKernelSource=new e("NotebookKernelSource"),e.BulkEditTitle=new e("BulkEditTitle"),e.BulkEditContext=new e("BulkEditContext"),e.TimelineItemContext=new e("TimelineItemContext"),e.TimelineTitle=new e("TimelineTitle"),e.TimelineTitleContext=new e("TimelineTitleContext"),e.TimelineFilterSubMenu=new e("TimelineFilterSubMenu"),e.AccountsContext=new e("AccountsContext"),e.SidebarTitle=new e("SidebarTitle"),e.PanelTitle=new e("PanelTitle"),e.AuxiliaryBarTitle=new e("AuxiliaryBarTitle"),e.AuxiliaryBarHeader=new e("AuxiliaryBarHeader"),e.TerminalInstanceContext=new e("TerminalInstanceContext"),e.TerminalEditorInstanceContext=new e("TerminalEditorInstanceContext"),e.TerminalNewDropdownContext=new e("TerminalNewDropdownContext"),e.TerminalTabContext=new e("TerminalTabContext"),e.TerminalTabEmptyAreaContext=new e("TerminalTabEmptyAreaContext"),e.TerminalStickyScrollContext=new e("TerminalStickyScrollContext"),e.WebviewContext=new e("WebviewContext"),e.InlineCompletionsActions=new e("InlineCompletionsActions"),e.InlineEditsActions=new e("InlineEditsActions"),e.InlineEditActions=new e("InlineEditActions"),e.NewFile=new e("NewFile"),e.MergeInput1Toolbar=new e("MergeToolbar1Toolbar"),e.MergeInput2Toolbar=new e("MergeToolbar2Toolbar"),e.MergeBaseToolbar=new e("MergeBaseToolbar"),e.MergeInputResultToolbar=new e("MergeToolbarResultToolbar"),e.InlineSuggestionToolbar=new e("InlineSuggestionToolbar"),e.InlineEditToolbar=new e("InlineEditToolbar"),e.ChatContext=new e("ChatContext"),e.ChatCodeBlock=new e("ChatCodeblock"),e.ChatCompareBlock=new e("ChatCompareBlock"),e.ChatMessageTitle=new e("ChatMessageTitle"),e.ChatExecute=new e("ChatExecute"),e.ChatExecuteSecondary=new e("ChatExecuteSecondary"),e.ChatInputSide=new e("ChatInputSide"),e.AccessibleView=new e("AccessibleView"),e.MultiDiffEditorFileToolbar=new e("MultiDiffEditorFileToolbar"),e.DiffEditorHunkToolbar=new e("DiffEditorHunkToolbar"),e.DiffEditorSelectionToolbar=new e("DiffEditorSelectionToolbar"),e),Pv=Ao("menuService"),T5=(t=class{static for(i){let r=this._all.get(i);return r||(r=new t(i),this._all.set(i,r)),r}static merge(i){const r=new Set;for(const o of i)o instanceof t&&r.add(o.id);return r}constructor(i){this.id=i,this.has=r=>r===i}},t._all=new Map,t),fd=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new l7t({merge:T5.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(n){return this._commands.set(n.id,n),this._onDidChangeMenu.fire(T5.for(Ti.CommandPalette)),zi(()=>{this._commands.delete(n.id)&&this._onDidChangeMenu.fire(T5.for(Ti.CommandPalette))})}getCommand(n){return this._commands.get(n)}getCommands(){const n=new Map;return this._commands.forEach((i,r)=>n.set(r,i)),n}appendMenuItem(n,i){let r=this._menuItems.get(n);r||(r=new yp,this._menuItems.set(n,r));const o=r.push(i);return this._onDidChangeMenu.fire(T5.for(n)),zi(()=>{o(),this._onDidChangeMenu.fire(T5.for(n))})}appendMenuItems(n){const i=new Jt;for(const{id:r,item:o}of n)i.add(this.appendMenuItem(r,o));return i}getMenuItems(n){let i;return this._menuItems.has(n)?i=[...this._menuItems.get(n)]:i=[],n===Ti.CommandPalette&&this._appendImplicitItems(i),i}_appendImplicitItems(n){const i=new Set;for(const r of n)n6(r)&&(i.add(r.command.id),r.alt&&i.add(r.alt.id));this._commands.forEach((r,o)=>{i.has(o)||n.push({command:r})})}},cR=class extends ZR{constructor(n,i,r){super(`submenuitem.${n.submenu.id}`,typeof n.title=="string"?n.title:n.title.value,r,"submenu"),this.item=n,this.hideActions=i}},um=dJ=class{static label(i,r){return r?.renderShortTitle&&i.shortTitle?typeof i.shortTitle=="string"?i.shortTitle:i.shortTitle.value:typeof i.title=="string"?i.title:i.title.value}constructor(i,r,o,s,a,l,c){this.hideActions=s,this.menuKeybinding=a,this._commandService=c,this.id=i.id,this.label=dJ.label(i,o),this.tooltip=(typeof i.tooltip=="string"?i.tooltip:i.tooltip?.value)??"",this.enabled=!i.precondition||l.contextMatchesRules(i.precondition),this.checked=void 0;let u;if(i.toggled){const d=i.toggled.condition?i.toggled:{condition:i.toggled};this.checked=l.contextMatchesRules(d.condition),this.checked&&d.tooltip&&(this.tooltip=typeof d.tooltip=="string"?d.tooltip:d.tooltip.value),this.checked&&lr.isThemeIcon(d.icon)&&(u=d.icon),this.checked&&d.title&&(this.label=typeof d.title=="string"?d.title:d.title.value)}u||(u=lr.isThemeIcon(i.icon)?i.icon:void 0),this.item=i,this.alt=r?new dJ(r,void 0,o,s,void 0,l,c):void 0,this._options=o,this.class=u&&lr.asClassName(u)}run(...i){let r=[];return this._options?.arg&&(r=[...r,this._options.arg]),this._options?.shouldForwardArgs&&(r=[...r,...i]),this._commandService.executeCommand(this.id,...r)}},um=dJ=flt([Xwe(5,ur),Xwe(6,Oa)],um),pp=class{constructor(n){this.desc=n}}}}),uf,_m=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/telemetry/common/telemetry.js"(){li(),uf=Ao("telemetryService")}});function X7n(e){switch(e){case Zh.Trace:return"trace";case Zh.Debug:return"debug";case Zh.Info:return"info";case Zh.Warning:return"warn";case Zh.Error:return"error";case Zh.Off:return"off"}}var bh,Zh,Jwe,e1e,GWt,KWt,wm=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/log/common/log.js"(){Un(),Nt(),er(),li(),bh=Ao("logService"),(function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"})(Zh||(Zh={})),Jwe=Zh.Info,e1e=class extends St{constructor(){super(...arguments),this.level=Jwe,this._onDidChangeLogLevel=this._register(new bt),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==Zh.Off&&this.level<=e}},GWt=class extends e1e{constructor(e=Jwe,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(Zh.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.checkLogLevel(Zh.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.checkLogLevel(Zh.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.checkLogLevel(Zh.Warning)&&(this.useColors?console.log("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.checkLogLevel(Zh.Error)&&(this.useColors?console.log("%c  ERR","color: #f33",e,...t):console.error(e,...t))}},KWt=class extends e1e{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const n of this.loggers)n.trace(e,...t)}debug(e,...t){for(const n of this.loggers)n.debug(e,...t)}info(e,...t){for(const n of this.loggers)n.info(e,...t)}warn(e,...t){for(const n of this.loggers)n.warn(e,...t)}error(e,...t){for(const n of this.loggers)n.error(e,...t)}dispose(){for(const e of this.loggers)e.dispose();super.dispose()}},new Qn("logLevel",X7n(Zh.Info))}});function Xg(e,t){Ro.registerCommand(e,function(n,...i){const r=n.get(ji),[o,s]=i;ns(Ui.isUri(o)),ns(mt.isIPosition(s));const a=n.get(Ua).getModel(o);if(a){const l=mt.lift(s);return r.invokeFunction(t,a,l,...i.slice(2))}return n.get(dg).createModelReference(o).then(l=>new Promise((c,u)=>{try{const d=r.invokeFunction(t,l.object.textEditorModel,mt.lift(s),i.slice(2));c(d)}catch(d){u(d)}}).finally(()=>{l.dispose()}))})}function $n(e){return v_.INSTANCE.registerEditorCommand(e),e}function yn(e){const t=new e;return v_.INSTANCE.registerEditorAction(t),t}function plt(e){return v_.INSTANCE.registerEditorAction(e),e}function J7n(e){v_.INSTANCE.registerEditorAction(e)}function qo(e,t,n){v_.INSTANCE.registerEditorContribution(e,t,n)}function Bz(e){return e.register(),e}var WH,LO,t1e,Hd,ri,k5e,T_,uR,glt,v_,I5e,L5e,YWt,mr=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"(){var e;bn(),ss(),Ec(),Hi(),Kf(),Eb(),ha(),Ks(),er(),li(),kN(),Fu(),_m(),as(),wm(),Fn(),WH=class{constructor(t){this.id=t.id,this.precondition=t.precondition,this._kbOpts=t.kbOpts,this._menuOpts=t.menuOpts,this.metadata=t.metadata}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const t=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const n of t){let i=n.kbExpr;this.precondition&&(i?i=nn.and(i,this.precondition):i=this.precondition);const r={id:this.id,weight:n.weight,args:n.args,when:i,primary:n.primary,secondary:n.secondary,win:n.win,linux:n.linux,mac:n.mac};dp.registerKeybindingRule(r)}}Ro.registerCommand({id:this.id,handler:(t,n)=>this.runCommand(t,n),metadata:this.metadata})}_registerMenuItem(t){fd.appendMenuItem(t.menuId,{group:t.group,command:{id:this.id,title:t.title,icon:t.icon,precondition:this.precondition},when:t.when,order:t.order})}},LO=class extends WH{constructor(){super(...arguments),this._implementations=[]}addImplementation(t,n,i,r){return this._implementations.push({priority:t,name:n,implementation:i,when:r}),this._implementations.sort((o,s)=>s.priority-o.priority),{dispose:()=>{for(let o=0;o<this._implementations.length;o++)if(this._implementations[o].implementation===i){this._implementations.splice(o,1);return}}}}runCommand(t,n){const i=t.get(bh),r=t.get(ur);i.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`);for(const o of this._implementations){if(o.when){const a=r.getContext(cf());if(!o.when.evaluate(a))continue}const s=o.implementation(t,n);if(s)return i.trace(`Command '${this.id}' was handled by '${o.name}'.`),typeof s=="boolean"?void 0:s}i.trace(`The Command '${this.id}' was not handled by any implementation.`)}},t1e=class extends WH{constructor(t,n){super(n),this.command=t}runCommand(t,n){return this.command.runCommand(t,n)}},Hd=class N5e extends WH{static bindToContribution(n){return class extends N5e{constructor(r){super(r),this._callback=r.handler}runEditorCommand(r,o,s){const a=n(o);a&&this._callback(a,s)}}}static runEditorCommand(n,i,r,o){const s=n.get(Jo),a=s.getFocusedCodeEditor()||s.getActiveCodeEditor();if(a)return a.invokeWithinContext(l=>{if(l.get(ur).contextMatchesRules(r??void 0))return o(l,a,i)})}runCommand(n,i){return N5e.runEditorCommand(n,i,this.precondition,(r,o,s)=>this.runEditorCommand(r,o,s))}},ri=class QWt extends Hd{static convertOptions(n){let i;Array.isArray(n.menuOpts)?i=n.menuOpts:n.menuOpts?i=[n.menuOpts]:i=[];function r(o){return o.menuId||(o.menuId=Ti.EditorContext),o.title||(o.title=n.label),o.when=nn.and(n.precondition,o.when),o}return Array.isArray(n.contextMenuOpts)?i.push(...n.contextMenuOpts.map(r)):n.contextMenuOpts&&i.push(r(n.contextMenuOpts)),n.menuOpts=i,n}constructor(n){super(QWt.convertOptions(n)),this.label=n.label,this.alias=n.alias}runEditorCommand(n,i,r){return this.reportTelemetry(n,i),this.run(n,i,r||{})}reportTelemetry(n,i){n.get(uf).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}},k5e=class extends ri{constructor(){super(...arguments),this._implementations=[]}addImplementation(t,n){return this._implementations.push([t,n]),this._implementations.sort((i,r)=>r[0]-i[0]),{dispose:()=>{for(let i=0;i<this._implementations.length;i++)if(this._implementations[i][1]===n){this._implementations.splice(i,1);return}}}}run(t,n,i){for(const r of this._implementations){const o=r[1](t,n,i);if(o)return typeof o=="boolean"?void 0:o}}},T_=class extends pp{run(t,...n){const i=t.get(Jo),r=i.getFocusedCodeEditor()||i.getActiveCodeEditor();if(r)return r.invokeWithinContext(o=>{const s=o.get(ur),a=o.get(bh);if(!s.contextMatchesRules(this.desc.precondition??void 0)){a.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,this.desc.precondition?.serialize());return}return this.runEditorCommand(o,r,...n)})}},(function(t){function n(a){return v_.INSTANCE.getEditorCommand(a)}t.getEditorCommand=n;function i(){return v_.INSTANCE.getEditorActions()}t.getEditorActions=i;function r(){return v_.INSTANCE.getEditorContributions()}t.getEditorContributions=r;function o(a){return v_.INSTANCE.getEditorContributions().filter(l=>a.indexOf(l.id)>=0)}t.getSomeEditorContributions=o;function s(){return v_.INSTANCE.getDiffEditorContributions()}t.getDiffEditorContributions=s})(uR||(uR={})),glt={EditorCommonContributions:"editor.contributions"},v_=(e=class{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(n,i,r){this.editorContributions.push({id:n,ctor:i,instantiation:r})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(n){n.register(),this.editorActions.push(n)}getEditorActions(){return this.editorActions}registerEditorCommand(n){n.register(),this.editorCommands[n.id]=n}getEditorCommand(n){return this.editorCommands[n]||null}},e.INSTANCE=new e,e),ml.add(glt.EditorCommonContributions,v_.INSTANCE),I5e=Bz(new LO({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:Ti.MenubarEditMenu,group:"1_do",title:R({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:Ti.CommandPalette,group:"",title:R("undo","Undo"),order:1}]})),Bz(new t1e(I5e,{id:"default:undo",precondition:void 0})),L5e=Bz(new LO({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:Ti.MenubarEditMenu,group:"1_do",title:R({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:Ti.CommandPalette,group:"",title:R("redo","Redo"),order:1}]})),Bz(new t1e(L5e,{id:"default:redo",precondition:void 0})),YWt=Bz(new LO({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:Ti.MenubarSelectionMenu,group:"1_basic",title:R({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:Ti.CommandPalette,group:"",title:R("selectAll","Select All"),order:1}]}))}});function P5e(e){_L&&(M5e||(M5e=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}function mlt(e){return e[0]==="o"&&e[1]==="n"&&ex(e.charCodeAt(2))}function vlt(e){return/^onDynamic/.test(e)&&ex(e.charCodeAt(9))}var n1e,ylt,M5e,blt,i1e,_lt,wlt,Clt,Slt,ZWt,XWt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/worker/simpleWorker.js"(){Vi(),Un(),Nt(),Gd(),Xr(),Ki(),n1e="default",ylt="$initialize",M5e=!1,blt=class{constructor(e,t,n,i,r){this.vsWorker=e,this.req=t,this.channel=n,this.method=i,this.args=r,this.type=0}},i1e=class{constructor(e,t,n,i){this.vsWorker=e,this.seq=t,this.res=n,this.err=i,this.type=1}},_lt=class{constructor(e,t,n,i,r){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=i,this.arg=r,this.type=2}},wlt=class{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}},Clt=class{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}},Slt=class{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,n){const i=String(++this._lastSentReq);return new Promise((r,o)=>{this._pendingReplies[i]={resolve:r,reject:o},this._send(new blt(this._workerId,i,e,t,n))})}listen(e,t,n){let i=null;const r=new bt({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,r),this._send(new _lt(this._workerId,i,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new Clt(this._workerId,i)),i=null}});return r.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}createProxyToRemoteChannel(e,t){const n={get:(i,r)=>(typeof r=="string"&&!i[r]&&(vlt(r)?i[r]=o=>this.listen(e,r,o):mlt(r)?i[r]=this.listen(e,r,void 0):r.charCodeAt(0)===36&&(i[r]=async(...o)=>(await t?.(),this.sendMessage(e,r,o)))),i[r])};return new Proxy(Object.create(null),n)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),t.reject(n);return}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then(i=>{this._send(new i1e(this._workerId,t,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=pit(i.detail)),this._send(new i1e(this._workerId,t,void 0,pit(i)))})}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)(i=>{this._send(new wlt(this._workerId,t,i))});this._pendingEvents.set(t,n)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){const t=[];if(e.type===0)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else e.type===1&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}},ZWt=class extends St{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},r=>{this._protocol.handleMessage(r)},r=>{Mr(r)})),this._protocol=new Slt({sendMessage:(r,o)=>{this._worker.postMessage(r,o)},handleMessage:(r,o,s)=>this._handleMessage(r,o,s),handleEvent:(r,o,s)=>this._handleEvent(r,o,s)}),this._protocol.setWorkerId(this._worker.getId());let n=null;const i=globalThis.require;typeof i<"u"&&typeof i.getConfig=="function"?n=i.getConfig():typeof globalThis.requirejs<"u"&&(n=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(n1e,ylt,[this._worker.getId(),JSON.parse(JSON.stringify(n)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(n1e,async()=>{await this._onModuleLoaded}),this._onModuleLoaded.catch(r=>{this._onError("Worker failed to load "+t.amdModuleId,r)})}_handleMessage(e,t,n){const i=this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if(typeof i[t]!="function")return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(i[t].apply(i,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,t,n){const i=this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on main thread`);if(vlt(t)){const r=i[t].call(i,n);if(typeof r!="function")throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return r}if(mlt(t)){const r=i[t];if(typeof r!="function")throw new Error(`Missing event ${t} on main thread channel ${e}.`);return r}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}}});function fT(e,t){const n=globalThis.MonacoEnvironment;if(n?.createTrustedTypesPolicy)try{return n.createTrustedTypesPolicy(e,t)}catch(i){Mr(i);return}try{return globalThis.trustedTypes?.createPolicy(e,t)}catch(i){Mr(i);return}}var pT=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/trustedTypes.js"(){Vi()}});function ejn(e,t){const n=globalThis.MonacoEnvironment;if(n){if(typeof n.getWorker=="function")return n.getWorker("workerMain.js",t);if(typeof n.getWorkerUrl=="function"){const i=n.getWorkerUrl("workerMain.js",t);return new Worker(i6?i6.createScriptURL(i):i,{name:t,type:oL?"module":void 0})}}if(e){const i=tjn(t,e.toString(!0)),r=new Worker(i6?i6.createScriptURL(i):i,{name:t,type:oL?"module":void 0});return oL?njn(r):r}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function tjn(e,t,n){const i=/^((http:)|(https:)|(file:)|(vscode-file:))/.test(t);if(!(i&&t.substring(0,globalThis.origin.length)!==globalThis.origin)){const o=t.lastIndexOf("?"),s=t.lastIndexOf("#",o),a=o>0?new URLSearchParams(t.substring(o+1,~s?s:void 0)):new URLSearchParams;QFe.addSearchParam(a,!0,!0),a.toString()?t=`${t}?${a.toString()}#${e}`:t=`${t}#${e}`}!oL&&!i&&(t=new URL(t,globalThis.origin).toString());const r=new Blob([ew([`/*${e}*/`,void 0,`globalThis._VSCODE_NLS_MESSAGES = ${JSON.stringify(d7t())};`,`globalThis._VSCODE_NLS_LANGUAGE = ${JSON.stringify(wVe())};`,`globalThis._VSCODE_FILE_ROOT = '${globalThis._VSCODE_FILE_ROOT}';`,"const ttPolicy = globalThis.trustedTypes?.createPolicy('defaultWorkerFactory', { createScriptURL: value => value });","globalThis.workerttPolicy = ttPolicy;",oL?`await import(ttPolicy?.createScriptURL('${t}') ?? '${t}');`:`importScripts(ttPolicy?.createScriptURL('${t}') ?? '${t}');`,oL?"globalThis.postMessage({ type: 'vscode-worker-ready' });":void 0,`/*${e}*/`]).join("")],{type:"application/javascript"});return URL.createObjectURL(r)}function njn(e){return new Promise((t,n)=>{e.onmessage=function(i){i.data.type==="vscode-worker-ready"&&(e.onmessage=null,t(e))},e.onerror=n})}function ijn(e){return typeof e.then=="function"}function rjn(e,t){const n=typeof e=="string"?new JWt(e,t):e;return new ZWt(new eUt,n)}var oL,i6,xlt,JWt,eUt,ojn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/defaultWorkerFactory.js"(){var e;pT(),Vi(),Gd(),XWt(),Nt(),rr(),bn(),oL=!0,typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope"&&globalThis.workerttPolicy!==void 0?i6=globalThis.workerttPolicy:i6=fT("defaultWorkerFactory",{createScriptURL:t=>t}),xlt=class extends St{constructor(t,n,i,r,o,s){super(),this.id=i,this.label=r;const a=ejn(t,r);ijn(a)?this.worker=a:this.worker=Promise.resolve(a),this.postMessage(n,[]),this.worker.then(l=>{l.onmessage=function(c){o(c.data)},l.onmessageerror=s,typeof l.addEventListener=="function"&&l.addEventListener("error",s)}),this._register(zi(()=>{this.worker?.then(l=>{l.onmessage=null,l.onmessageerror=null,l.removeEventListener("error",s),l.terminate()}),this.worker=null}))}getId(){return this.id}postMessage(t,n){this.worker?.then(i=>{try{i.postMessage(t,n)}catch(r){Mr(r),Mr(new Error(`FAILED to post message to '${this.label}'-worker`,{cause:r}))}})}},JWt=class{constructor(t,n){this.amdModuleId=t,this.label=n,this.esmModuleLocation=oL?GK.asBrowserUri(`${t}.esm.js`):void 0}},eUt=(e=class{constructor(){this._webWorkerFailedBeforeError=!1}create(n,i,r){const o=++e.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new xlt(n.esmModuleLocation,n.amdModuleId,o,n.label||"anonymous"+o,i,s=>{P5e(s),this._webWorkerFailedBeforeError=s,r(s)})}},e.LAST_WORKER_ID=0,e)}});function jz(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}var vu,ese,tUt,J2=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfiguration.js"(){(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(vu||(vu={})),ese=class{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,n=e.notIn.length;t<n;t++)switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1;break}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(e.getTokenCount()===0)return!0;const n=e.findTokenIndexAtOffset(t-2),i=e.getStandardTokenType(n);return this.isOK(i)}_findNeutralCharacterInRange(e,t){for(let n=e;n<=t;n++){const i=String.fromCharCode(n);if(!this.open.includes(i)&&!this.close.includes(i))return i}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}},tUt=class{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)jz(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),jz(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),jz(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),jz(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),t.close.length===1&&t.open.length===1&&jz(this.autoClosingPairsCloseSingleChar,t.close,t)}}}}),nUt,sjn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages/supports/characterPair.js"(){var e;J2(),nUt=(e=class{constructor(n){if(n.autoClosingPairs?this._autoClosingPairs=n.autoClosingPairs.map(i=>new ese(i)):n.brackets?this._autoClosingPairs=n.brackets.map(i=>new ese({open:i[0],close:i[1]})):this._autoClosingPairs=[],n.__electricCharacterSupport&&n.__electricCharacterSupport.docComment){const i=n.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new ese({open:i.open,close:i.close||""}))}this._autoCloseBeforeForQuotes=typeof n.autoCloseBefore=="string"?n.autoCloseBefore:e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets=typeof n.autoCloseBefore=="string"?n.autoCloseBefore:e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=n.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(n){return n?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}},e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=`;:.,=}])> 
	`,e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS=`'"\`;:.,=}])> 
	`,e)}});function NO(e,t){const n=e.getCount(),i=e.findTokenIndexAtOffset(t),r=e.getLanguageId(i);let o=i;for(;o+1<n&&e.getLanguageId(o+1)===r;)o++;let s=i;for(;s>0&&e.getLanguageId(s-1)===r;)s--;return new iUt(e,r,s,o+1,e.getStartOffset(s),e.getEndOffset(o))}function zS(e){return(e&3)!==0}var iUt,nY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages/supports.js"(){iUt=class{constructor(e,t,n,i,r,o){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=i,this.firstCharOffset=r,this._lastCharOffset=o,this.languageIdCodec=e.languageIdCodec}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getLineLength(){return this._lastCharOffset-this.firstCharOffset}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}toIViewLineTokens(){return this._actual.sliceAndInflate(this.firstCharOffset,this._lastCharOffset,0)}}}});function ajn(e){const t=e.length;e=e.map(s=>[s[0].toLowerCase(),s[1].toLowerCase()]);const n=[];for(let s=0;s<t;s++)n[s]=s;const i=(s,a)=>{const[l,c]=s,[u,d]=a;return l===u||l===d||c===u||c===d},r=(s,a)=>{const l=Math.min(s,a),c=Math.max(s,a);for(let u=0;u<t;u++)n[u]===c&&(n[u]=l)};for(let s=0;s<t;s++){const a=e[s];for(let l=s+1;l<t;l++){const c=e[l];i(a,c)&&r(n[s],n[l])}}const o=[];for(let s=0;s<t;s++){const a=[],l=[];for(let c=0;c<t;c++)if(n[c]===s){const[u,d]=e[c];a.push(u),l.push(d)}a.length>0&&o.push({open:a,close:l})}return o}function rUt(e,t,n,i){for(let r=0,o=t.length;r<o;r++){if(r===n)continue;const s=t[r];for(const a of s.open)a.indexOf(e)>=0&&i.push(a);for(const a of s.close)a.indexOf(e)>=0&&i.push(a)}}function oUt(e,t){return e.length-t.length}function Kpe(e){if(e.length<=1)return e;const t=[],n=new Set;for(const i of e)n.has(i)||(t.push(i),n.add(i));return t}function ljn(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let o=0,s=r.length;o<s;o++)rUt(r[o],n,i,r);return r=Kpe(r),r.sort(oUt),r.reverse(),iY(r)}function cjn(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let o=0,s=r.length;o<s;o++)rUt(r[o],n,i,r);return r=Kpe(r),r.sort(oUt),r.reverse(),iY(r.map(Hue))}function ujn(e){let t=[];for(const n of e){for(const i of n.open)t.push(i);for(const i of n.close)t.push(i)}return t=Kpe(t),iY(t)}function djn(e){let t=[];for(const n of e){for(const i of n.open)t.push(i);for(const i of n.close)t.push(i)}return t=Kpe(t),iY(t.map(Hue))}function hjn(e){const t=/^[\w ]+$/.test(e);return e=z0(e),t?`\\b${e}\\b`:e}function iY(e,t){const n=`(${e.map(hjn).join(")|(")})`;return VVt(n,!0,t)}var Elt,sUt,Hue,wy,Ype=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages/supports/richEditBrackets.js"(){Ki(),TN(),Dn(),Elt=class O5e{constructor(t,n,i,r,o,s){this._richEditBracketBrand=void 0,this.languageId=t,this.index=n,this.open=i,this.close=r,this.forwardRegex=o,this.reversedRegex=s,this._openSet=O5e._toSet(this.open),this._closeSet=O5e._toSet(this.close)}isOpen(t){return this._openSet.has(t)}isClose(t){return this._closeSet.has(t)}static _toSet(t){const n=new Set;for(const i of t)n.add(i);return n}},sUt=class{constructor(e,t){this._richEditBracketsBrand=void 0;const n=ajn(t);this.brackets=n.map((i,r)=>new Elt(e,r,i.open,i.close,ljn(i.open,i.close,n,r),cjn(i.open,i.close,n,r))),this.forwardRegex=ujn(this.brackets),this.reversedRegex=djn(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const i of this.brackets){for(const r of i.open)this.textIsBracket[r]=i,this.textIsOpenBracket[r]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,r.length);for(const r of i.close)this.textIsBracket[r]=i,this.textIsOpenBracket[r]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,r.length)}}},Hue=(function(){function e(i){const r=new Uint16Array(i.length);let o=0;for(let s=i.length-1;s>=0;s--)r[o++]=i.charCodeAt(s);return cWt().decode(r)}let t=null,n=null;return function(r){return t!==r&&(t=r,n=e(t)),n}})(),wy=class{static _findPrevBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const o=n.length-(r.index||0),s=r[0].length,a=i+o;return new Re(t,a-s+1,t,a+1)}static findPrevBracketInRange(e,t,n,i,r){const s=Hue(n).substring(n.length-r,n.length-i);return this._findPrevBracketInText(e,t,s,i)}static findNextBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const o=r.index||0,s=r[0].length;if(s===0)return null;const a=i+o;return new Re(t,a+1,t,a+1+s)}static findNextBracketInRange(e,t,n,i,r){const o=n.substring(i,r);return this.findNextBracketInText(e,t,o,i)}}}}),aUt,fjn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages/supports/electricCharacter.js"(){rr(),nY(),Ype(),aUt=class{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const n of t.close){const i=n.charAt(n.length-1);e.push(i)}return BD(e)}onElectricCharacter(e,t,n){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;const i=t.findTokenIndexAtOffset(n-1);if(zS(t.getStandardTokenType(i)))return null;const r=this._richEditBrackets.reversedRegex,o=t.getLineContent().substring(0,n-1)+e,s=wy.findPrevBracketInRange(r,1,o,0,o.length);if(!s)return null;const a=o.substring(s.startColumn-1,s.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const c=t.getActualLineContentBefore(s.startColumn-1);return/^\s*$/.test(c)?{matchOpenBracket:a}:null}}}});function hJ(e){return e.global&&(e.lastIndex=0),!0}var lUt,pjn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages/supports/indentRules.js"(){lUt=class{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&hJ(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&hJ(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&hJ(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&hJ(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}}}),cUt,gjn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages/supports/onEnter.js"(){Vi(),Ki(),J2(),cUt=class UH{constructor(t){t=t||{},t.brackets=t.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],t.brackets.forEach(n=>{const i=UH._createOpenBracketRegExp(n[0]),r=UH._createCloseBracketRegExp(n[1]);i&&r&&this._brackets.push({open:n[0],openRegExp:i,close:n[1],closeRegExp:r})}),this._regExpRules=t.onEnterRules||[]}onEnter(t,n,i,r){if(t>=3)for(let o=0,s=this._regExpRules.length;o<s;o++){const a=this._regExpRules[o];if([{reg:a.beforeText,text:i},{reg:a.afterText,text:r},{reg:a.previousLineText,text:n}].every(c=>c.reg?(c.reg.lastIndex=0,c.reg.test(c.text)):!0))return a.action}if(t>=2&&i.length>0&&r.length>0)for(let o=0,s=this._brackets.length;o<s;o++){const a=this._brackets[o];if(a.openRegExp.test(i)&&a.closeRegExp.test(r))return{indentAction:vu.IndentOutdent}}if(t>=2&&i.length>0){for(let o=0,s=this._brackets.length;o<s;o++)if(this._brackets[o].openRegExp.test(i))return{indentAction:vu.Indent}}return null}static _createOpenBracketRegExp(t){let n=z0(t);return/\B/.test(n.charAt(0))||(n="\\b"+n),n+="\\s*$",UH._safeRegExp(n)}static _createCloseBracketRegExp(t){let n=z0(t);return/\B/.test(n.charAt(n.length-1))||(n=n+"\\b"),n="^\\s*"+n,UH._safeRegExp(n)}static _safeRegExp(t){try{return new RegExp(t)}catch(n){return Mr(n),null}}}}});function r1e(e,t){const n=Object.create(null);for(const i in e)uUt(n,i,e[i],t);return n}function uUt(e,t,n,i){const r=t.split("."),o=r.pop();let s=e;for(let a=0;a<r.length;a++){const l=r[a];let c=s[l];switch(typeof c){case"undefined":c=s[l]=Object.create(null);break;case"object":if(c===null){i(`Ignoring ${t} as ${r.slice(0,a+1).join(".")} is null`);return}break;default:i(`Ignoring ${t} as ${r.slice(0,a+1).join(".")} is ${JSON.stringify(c)}`);return}s=c}if(typeof s=="object"&&s!==null)try{s[o]=n}catch{i(`Ignoring ${t} as ${r.join(".")} is ${JSON.stringify(s)}`)}else i(`Ignoring ${t} as ${r.join(".")} is ${JSON.stringify(s)}`)}function mjn(e,t){const n=t.split(".");dUt(e,n)}function dUt(e,t){const n=t.shift();if(t.length===0){delete e[n];return}if(Object.keys(e).indexOf(n)!==-1){const i=e[n];typeof i=="object"&&!Array.isArray(i)&&(dUt(i,t),Object.keys(i).length===0&&delete e[n])}}function Alt(e,t,n){function i(s,a){let l=s;for(const c of a){if(typeof l!="object"||l===null)return;l=l[c]}return l}const r=t.split("."),o=i(e,r);return typeof o>"u"?n:o}function vjn(e){return e.replace(/[\[\]]/g,"")}var co,sa=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"(){li(),co=Ao("configurationService")}}),al,Kd=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages/language.js"(){li(),al=Ao("languageService")}}),R1,DHe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/instantiation/common/descriptors.js"(){R1=class{constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}}}});function Oo(e,t,n){t instanceof R1||(t=new R1(t,[],!!n)),THe.push([e,t])}function Dlt(){return THe}var THe,vf=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/instantiation/common/extensions.js"(){DHe(),THe=[]}}),Jl,eF=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/mime.js"(){Jl=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})}});function tse(e){const t=[];if(dD.test(e)){let n=R5e.exec(e);for(;n?.length;){const i=n[1].trim();i&&t.push(i),n=R5e.exec(e)}}return BD(t)}function yjn(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}function bjn(e,t){return e.trim()?dD.test(e)?R("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):HU.getConfigurationProperties()[e]!==void 0?R("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&HU.getPolicyConfigurations().get(t.policy?.name)!==void 0?R("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,HU.getPolicyConfigurations().get(t.policy?.name)):null:R("config.property.empty","Cannot register an empty property")}var Qy,fJ,pJ,gJ,mJ,vJ,zz,k5,o1e,Tlt,s1e,R5e,mk,dD,HU,gT=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js"(){rr(),Un(),as(),bn(),sa(),X3e(),Fu(),Qy={Configuration:"base.contributions.configuration"},fJ={properties:{},patternProperties:{}},pJ={properties:{},patternProperties:{}},gJ={properties:{},patternProperties:{}},mJ={properties:{},patternProperties:{}},vJ={properties:{},patternProperties:{}},zz={properties:{},patternProperties:{}},k5="vscode://schemas/settings/resourceLanguage",o1e=ml.as(Rq.JSONContribution),Tlt=class{constructor(){this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=new bt,this._onDidUpdateConfiguration=new bt,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:R("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},o1e.registerSchema(k5,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const n=new Set;this.doRegisterConfigurations(e,t,n),o1e.registerSchema(k5,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const n=[];for(const{overrides:i,source:r}of e)for(const o in i){t.add(o);const s=this.configurationDefaultsOverrides.get(o)??this.configurationDefaultsOverrides.set(o,{configurationDefaultOverrides:[]}).get(o),a=i[o];if(s.configurationDefaultOverrides.push({value:a,source:r}),dD.test(o)){const l=this.mergeDefaultConfigurationsForOverrideIdentifier(o,a,r,s.configurationDefaultOverrideValue);if(!l)continue;s.configurationDefaultOverrideValue=l,this.updateDefaultOverrideProperty(o,l,r),n.push(...tse(o))}else{const l=this.mergeDefaultConfigurationsForConfigurationProperty(o,a,r,s.configurationDefaultOverrideValue);if(!l)continue;s.configurationDefaultOverrideValue=l;const c=this.configurationProperties[o];c&&(this.updatePropertyDefaultValue(o,c),this.updateSchema(o,c))}}this.doRegisterOverrideIdentifiers(n)}updateDefaultOverrideProperty(e,t,n){const i={type:"object",default:t.value,description:R("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",vjn(e)),$ref:k5,defaultDefaultValue:t.value,source:n,defaultValueSource:n};this.configurationProperties[e]=i,this.defaultLanguageConfigurationOverridesNode.properties[e]=i}mergeDefaultConfigurationsForOverrideIdentifier(e,t,n,i){const r=i?.value||{},o=i?.source??new Map;if(!(o instanceof Map)){console.error("objectConfigurationSources is not a Map");return}for(const s of Object.keys(t)){const a=t[s];if(jd(a)&&(bp(r[s])||jd(r[s]))){if(r[s]={...r[s]??{},...a},n)for(const c in a)o.set(`${s}.${c}`,n)}else r[s]=a,n?o.set(s,n):o.delete(s)}return{value:r,source:o}}mergeDefaultConfigurationsForConfigurationProperty(e,t,n,i){const r=this.configurationProperties[e],o=i?.value??r?.defaultDefaultValue;let s=n;if(jd(t)&&(r!==void 0&&r.type==="object"||r===void 0&&(bp(o)||jd(o)))){if(s=i?.source??new Map,!(s instanceof Map)){console.error("defaultValueSource is not a Map");return}for(const l in t)n&&s.set(`${e}.${l}`,n);t={...jd(o)?o:{},...t}}return{value:t,source:s}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,n){e.forEach(i=>{this.validateAndRegisterProperties(i,t,i.extensionInfo,i.restrictedProperties,void 0,n),this.configurationContributors.push(i),this.registerJSONConfiguration(i)})}validateAndRegisterProperties(e,t=!0,n,i,r=3,o){r=b0(e.scope)?r:e.scope;const s=e.properties;if(s)for(const l in s){const c=s[l];if(t&&bjn(l,c)){delete s[l];continue}if(c.source=n,c.defaultDefaultValue=s[l].default,this.updatePropertyDefaultValue(l,c),dD.test(l)?c.scope=void 0:(c.scope=b0(c.scope)?r:c.scope,c.restricted=b0(c.restricted)?!!i?.includes(l):c.restricted),s[l].hasOwnProperty("included")&&!s[l].included){this.excludedConfigurationProperties[l]=s[l],delete s[l];continue}else this.configurationProperties[l]=s[l],s[l].policy?.name&&this.policyConfigurations.set(s[l].policy.name,l);!s[l].deprecationMessage&&s[l].markdownDeprecationMessage&&(s[l].deprecationMessage=s[l].markdownDeprecationMessage),o.add(l)}const a=e.allOf;if(a)for(const l of a)this.validateAndRegisterProperties(l,t,n,i,r,o)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=n=>{const i=n.properties;if(i)for(const o in i)this.updateSchema(o,i[o]);n.allOf?.forEach(t)};t(e)}updateSchema(e,t){switch(fJ.properties[e]=t,t.scope){case 1:pJ.properties[e]=t;break;case 2:gJ.properties[e]=t;break;case 6:mJ.properties[e]=t;break;case 3:vJ.properties[e]=t;break;case 4:zz.properties[e]=t;break;case 5:zz.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t;break}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,n={type:"object",description:R("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:R("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:k5};this.updatePropertyDefaultValue(t,n),fJ.properties[t]=n,pJ.properties[t]=n,gJ.properties[t]=n,mJ.properties[t]=n,vJ.properties[t]=n,zz.properties[t]=n}}registerOverridePropertyPatternKey(){const e={type:"object",description:R("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:R("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:k5};fJ.patternProperties[mk]=e,pJ.patternProperties[mk]=e,gJ.patternProperties[mk]=e,mJ.patternProperties[mk]=e,vJ.patternProperties[mk]=e,zz.patternProperties[mk]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const n=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let i,r;n&&(!t.disallowConfigurationDefault||!n.source)&&(i=n.value,r=n.source),bp(i)&&(i=t.defaultDefaultValue,r=void 0),bp(i)&&(i=yjn(t.type)),t.default=i,t.defaultValueSource=r}},s1e="\\[([^\\]]+)\\]",R5e=new RegExp(s1e,"g"),mk=`^(${s1e})+$`,dD=new RegExp(mk),HU=new Tlt,ml.add(Qy.Configuration,HU)}}),klt,Ilt,dR,xp,Llt,G0=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages/modesRegistry.js"(){bn(),Un(),Fu(),eF(),gT(),klt={ModesRegistry:"editor.modesRegistry"},Ilt=class{constructor(){this._onDidChangeLanguages=new bt,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,n=this._languages.length;t<n;t++)if(this._languages[t]===e){this._languages.splice(t,1);return}}}}getLanguages(){return this._languages}},dR=new Ilt,ml.add(klt.ModesRegistry,dR),xp="plaintext",Llt=".txt",dR.registerLanguage({id:xp,extensions:[Llt],aliases:[R("plainText.alias","Plain Text"),"text"],mimetypes:[Jl.text]}),ml.as(Qy.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])}});function Nlt(e){return e.filter(([t,n])=>t!==""&&n!=="")}var hUt,a1e,Plt,Mlt,_jn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages/supports/languageBracketsConfiguration.js"(){BVt(),Ype(),hUt=class{constructor(e,t){this.languageId=e;const n=t.brackets?Nlt(t.brackets):[],i=new $Fe(s=>{const a=new Set;return{info:new Plt(this,s,a),closing:a}}),r=new $Fe(s=>{const a=new Set,l=new Set;return{info:new Mlt(this,s,a,l),opening:a,openingColorized:l}});for(const[s,a]of n){const l=i.get(s),c=r.get(a);l.closing.add(c.info),c.opening.add(l.info)}const o=t.colorizedBracketPairs?Nlt(t.colorizedBracketPairs):n.filter(s=>!(s[0]==="<"&&s[1]===">"));for(const[s,a]of o){const l=i.get(s),c=r.get(a);l.closing.add(c.info),c.openingColorized.add(l.info),c.opening.add(l.info)}this._openingBrackets=new Map([...i.cachedValues].map(([s,a])=>[s,a.info])),this._closingBrackets=new Map([...r.cachedValues].map(([s,a])=>[s,a.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){const t=Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]);return iY(t,e)}},a1e=class{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}},Plt=class extends a1e{constructor(e,t,n){super(e,t),this.openedBrackets=n,this.isOpeningBracket=!0}},Mlt=class extends a1e{constructor(e,t,n,i){super(e,t),this.openingBrackets=n,this.openingColorizedBrackets=i,this.isOpeningBracket=!1}closes(e){return e.config!==this.config?!1:this.openingBrackets.has(e)}closesColorized(e){return e.config!==this.config?!1:this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}}});function wjn(e,t,n,i){let r=t.getLanguageConfiguration(e);if(!r){if(!i.isRegisteredLanguageId(e))return new WU(e,{});r=new WU(e,{})}const o=Cjn(r.languageId,n),s=pUt([r.underlyingConfig,o]);return new WU(r.languageId,s)}function Cjn(e,t){const n=t.getValue(Wue.brackets,{overrideIdentifier:e}),i=t.getValue(Wue.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:Olt(n),colorizedBracketPairs:Olt(i)}}function Olt(e){if(Array.isArray(e))return e.map(t=>{if(!(!Array.isArray(t)||t.length!==2))return[t[0],t[1]]}).filter(t=>!!t)}function fUt(e,t,n){const i=e.getLineContent(t);let r=Ca(i);return r.length>n-1&&(r=r.substring(0,n-1)),r}function pUt(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const n of e)t={comments:n.comments||t.comments,brackets:n.brackets||t.brackets,wordPattern:n.wordPattern||t.wordPattern,indentationRules:n.indentationRules||t.indentationRules,onEnterRules:n.onEnterRules||t.onEnterRules,autoClosingPairs:n.autoClosingPairs||t.autoClosingPairs,surroundingPairs:n.surroundingPairs||t.surroundingPairs,autoCloseBefore:n.autoCloseBefore||t.autoCloseBefore,folding:n.folding||t.folding,colorizedBracketPairs:n.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:n.__electricCharacterSupport||t.__electricCharacterSupport};return t}var Rlt,l1e,yJ,yl,bJ,Wue,Flt,c1e,u1e,Blt,WU,lu=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js"(){Un(),Nt(),Ki(),A7(),J2(),sjn(),fjn(),pjn(),gjn(),Ype(),li(),sa(),Kd(),vf(),G0(),_jn(),Rlt=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},l1e=function(e,t){return function(n,i){t(n,i,e)}},yJ=class{constructor(e){this.languageId=e}affects(e){return this.languageId?this.languageId===e:!0}},yl=Ao("languageConfigurationService"),bJ=class extends St{constructor(t,n){super(),this.configurationService=t,this.languageService=n,this._registry=this._register(new Blt),this.onDidChangeEmitter=this._register(new bt),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const i=new Set(Object.values(Wue));this._register(this.configurationService.onDidChangeConfiguration(r=>{const o=r.change.keys.some(a=>i.has(a)),s=r.change.overrides.filter(([a,l])=>l.some(c=>i.has(c))).map(([a])=>a);if(o)this.configurations.clear(),this.onDidChangeEmitter.fire(new yJ(void 0));else for(const a of s)this.languageService.isRegisteredLanguageId(a)&&(this.configurations.delete(a),this.onDidChangeEmitter.fire(new yJ(a)))})),this._register(this._registry.onDidChange(r=>{this.configurations.delete(r.languageId),this.onDidChangeEmitter.fire(new yJ(r.languageId))}))}register(t,n,i){return this._registry.register(t,n,i)}getLanguageConfiguration(t){let n=this.configurations.get(t);return n||(n=wjn(t,this._registry,this.configurationService,this.languageService),this.configurations.set(t,n)),n}},bJ=Rlt([l1e(0,co),l1e(1,al)],bJ),Wue={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"},Flt=class{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const n=new c1e(e,t,++this._order);return this._entries.push(n),this._resolved=null,zi(()=>{for(let i=0;i<this._entries.length;i++)if(this._entries[i]===n){this._entries.splice(i,1),this._resolved=null;break}})}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new WU(this.languageId,e))}return this._resolved}_resolve(){return this._entries.length===0?null:(this._entries.sort(c1e.cmp),pUt(this._entries.map(e=>e.configuration)))}},c1e=class{constructor(e,t,n){this.configuration=e,this.priority=t,this.order=n}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}},u1e=class{constructor(e){this.languageId=e}},Blt=class extends St{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new bt),this.onDidChange=this._onDidChange.event,this._register(this.register(xp,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,n=0){let i=this._entries.get(e);i||(i=new Flt(e),this._entries.set(e,i));const r=i.register(t,n);return this._onDidChange.fire(new u1e(e)),zi(()=>{r.dispose(),this._onDidChange.fire(new u1e(e))})}getLanguageConfiguration(e){return this._entries.get(e)?.getResolvedConfiguration()||null}},WU=class gUt{constructor(t,n){this.languageId=t,this.underlyingConfig=n,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new cUt(this.underlyingConfig):null,this.comments=gUt._handleComments(this.underlyingConfig),this.characterPair=new nUt(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||Gpe,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new lUt(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new hUt(t,this.underlyingConfig)}getWordDefinition(){return _He(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new sUt(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new aUt(this.brackets)),this._electricCharacter}onEnter(t,n,i,r){return this._onEnterSupport?this._onEnterSupport.onEnter(t,n,i,r):null}getAutoClosingPairs(){return new tUt(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(t){return this.characterPair.getAutoCloseBeforeSet(t)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(t){const n=t.comments;if(!n)return null;const i={};if(n.lineComment&&(i.lineCommentToken=n.lineComment),n.blockComment){const[r,o]=n.blockComment;i.blockCommentStartToken=r,i.blockCommentEndToken=o}return i}},Oo(yl,bJ,1)}}),EA,Sjn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/diff/diffChange.js"(){EA=class{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}}});function xjn(e,t,n){return new rY(new F5e(e),new F5e(t)).ComputeDiff(n).changes}var F5e,BP,jP,d1e,rY,Qpe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/diff/diff.js"(){Sjn(),Y2(),F5e=class{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t}},BP=class{static Assert(e,t){if(!e)throw new Error(t)}},jP=class{static Copy(e,t,n,i,r){for(let o=0;o<r;o++)n[i+o]=e[t+o]}static Copy2(e,t,n,i,r){for(let o=0;o<r;o++)n[i+o]=e[t+o]}},d1e=class{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new EA(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}},rY=class AB{constructor(t,n,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=t,this._modifiedSequence=n;const[r,o,s]=AB._getElements(t),[a,l,c]=AB._getElements(n);this._hasStrings=s&&c,this._originalStringElements=r,this._originalElementsOrHash=o,this._modifiedStringElements=a,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){const n=t.getElements();if(AB._isStringArray(n)){const i=new Int32Array(n.length);for(let r=0,o=n.length;r<o;r++)i[r]=q3e(n[r],0);return[n,i,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._modifiedStringElements[n]:!0}ElementsAreStrictEqual(t,n){if(!this.ElementsAreEqual(t,n))return!1;const i=AB._getStrictElement(this._originalSequence,t),r=AB._getStrictElement(this._modifiedSequence,n);return i===r}static _getStrictElement(t,n){return typeof t.getStrictElement=="function"?t.getStrictElement(n):null}OriginalElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._originalElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._originalStringElements[n]:!0}ModifiedElementsAreEqual(t,n){return this._modifiedElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._modifiedStringElements[t]===this._modifiedStringElements[n]:!0}ComputeDiff(t){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,t)}_ComputeDiff(t,n,i,r,o){const s=[!1];let a=this.ComputeDiffRecursive(t,n,i,r,s);return o&&(a=this.PrettifyChanges(a)),{quitEarly:s[0],changes:a}}ComputeDiffRecursive(t,n,i,r,o){for(o[0]=!1;t<=n&&i<=r&&this.ElementsAreEqual(t,i);)t++,i++;for(;n>=t&&r>=i&&this.ElementsAreEqual(n,r);)n--,r--;if(t>n||i>r){let d;return i<=r?(BP.Assert(t===n+1,"originalStart should only be one more than originalEnd"),d=[new EA(t,0,i,r-i+1)]):t<=n?(BP.Assert(i===r+1,"modifiedStart should only be one more than modifiedEnd"),d=[new EA(t,n-t+1,i,0)]):(BP.Assert(t===n+1,"originalStart should only be one more than originalEnd"),BP.Assert(i===r+1,"modifiedStart should only be one more than modifiedEnd"),d=[]),d}const s=[0],a=[0],l=this.ComputeRecursionPoint(t,n,i,r,s,a,o),c=s[0],u=a[0];if(l!==null)return l;if(!o[0]){const d=this.ComputeDiffRecursive(t,c,i,u,o);let h=[];return o[0]?h=[new EA(c+1,n-(c+1)+1,u+1,r-(u+1)+1)]:h=this.ComputeDiffRecursive(c+1,n,u+1,r,o),this.ConcatenateChanges(d,h)}return[new EA(t,n-t+1,i,r-i+1)]}WALKTRACE(t,n,i,r,o,s,a,l,c,u,d,h,f,p,g,m,v,y){let b=null,w=null,E=new d1e,A=n,D=i,T=f[0]-m[0]-r,M=-1073741824,P=this.m_forwardHistory.length-1;do{const F=T+t;F===A||F<D&&c[F-1]<c[F+1]?(d=c[F+1],p=d-T-r,d<M&&E.MarkNextChange(),M=d,E.AddModifiedElement(d+1,p),T=F+1-t):(d=c[F-1]+1,p=d-T-r,d<M&&E.MarkNextChange(),M=d-1,E.AddOriginalElement(d,p+1),T=F-1-t),P>=0&&(c=this.m_forwardHistory[P],t=c[0],A=1,D=c.length-1)}while(--P>=-1);if(b=E.getReverseChanges(),y[0]){let F=f[0]+1,N=m[0]+1;if(b!==null&&b.length>0){const j=b[b.length-1];F=Math.max(F,j.getOriginalEnd()),N=Math.max(N,j.getModifiedEnd())}w=[new EA(F,h-F+1,N,g-N+1)]}else{E=new d1e,A=s,D=a,T=f[0]-m[0]-l,M=1073741824,P=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const F=T+o;F===A||F<D&&u[F-1]>=u[F+1]?(d=u[F+1]-1,p=d-T-l,d>M&&E.MarkNextChange(),M=d+1,E.AddOriginalElement(d+1,p+1),T=F+1-o):(d=u[F-1],p=d-T-l,d>M&&E.MarkNextChange(),M=d,E.AddModifiedElement(d+1,p+1),T=F-1-o),P>=0&&(u=this.m_reverseHistory[P],o=u[0],A=1,D=u.length-1)}while(--P>=-1);w=E.getChanges()}return this.ConcatenateChanges(b,w)}ComputeRecursionPoint(t,n,i,r,o,s,a){let l=0,c=0,u=0,d=0,h=0,f=0;t--,i--,o[0]=0,s[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const p=n-t+(r-i),g=p+1,m=new Int32Array(g),v=new Int32Array(g),y=r-i,b=n-t,w=t-i,E=n-r,D=(b-y)%2===0;m[y]=t,v[b]=n,a[0]=!1;for(let T=1;T<=p/2+1;T++){let M=0,P=0;u=this.ClipDiagonalBound(y-T,T,y,g),d=this.ClipDiagonalBound(y+T,T,y,g);for(let N=u;N<=d;N+=2){N===u||N<d&&m[N-1]<m[N+1]?l=m[N+1]:l=m[N-1]+1,c=l-(N-y)-w;const j=l;for(;l<n&&c<r&&this.ElementsAreEqual(l+1,c+1);)l++,c++;if(m[N]=l,l+c>M+P&&(M=l,P=c),!D&&Math.abs(N-b)<=T-1&&l>=v[N])return o[0]=l,s[0]=c,j<=v[N]&&T<=1448?this.WALKTRACE(y,u,d,w,b,h,f,E,m,v,l,n,o,c,r,s,D,a):null}const F=(M-t+(P-i)-T)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(M,F))return a[0]=!0,o[0]=M,s[0]=P,F>0&&T<=1448?this.WALKTRACE(y,u,d,w,b,h,f,E,m,v,l,n,o,c,r,s,D,a):(t++,i++,[new EA(t,n-t+1,i,r-i+1)]);h=this.ClipDiagonalBound(b-T,T,b,g),f=this.ClipDiagonalBound(b+T,T,b,g);for(let N=h;N<=f;N+=2){N===h||N<f&&v[N-1]>=v[N+1]?l=v[N+1]-1:l=v[N-1],c=l-(N-b)-E;const j=l;for(;l>t&&c>i&&this.ElementsAreEqual(l,c);)l--,c--;if(v[N]=l,D&&Math.abs(N-y)<=T&&l<=m[N])return o[0]=l,s[0]=c,j>=m[N]&&T<=1448?this.WALKTRACE(y,u,d,w,b,h,f,E,m,v,l,n,o,c,r,s,D,a):null}if(T<=1447){let N=new Int32Array(d-u+2);N[0]=y-u+1,jP.Copy2(m,u,N,1,d-u+1),this.m_forwardHistory.push(N),N=new Int32Array(f-h+2),N[0]=b-h+1,jP.Copy2(v,h,N,1,f-h+1),this.m_reverseHistory.push(N)}}return this.WALKTRACE(y,u,d,w,b,h,f,E,m,v,l,n,o,c,r,s,D,a)}PrettifyChanges(t){for(let n=0;n<t.length;n++){const i=t[n],r=n<t.length-1?t[n+1].originalStart:this._originalElementsOrHash.length,o=n<t.length-1?t[n+1].modifiedStart:this._modifiedElementsOrHash.length,s=i.originalLength>0,a=i.modifiedLength>0;for(;i.originalStart+i.originalLength<r&&i.modifiedStart+i.modifiedLength<o&&(!s||this.OriginalElementsAreEqual(i.originalStart,i.originalStart+i.originalLength))&&(!a||this.ModifiedElementsAreEqual(i.modifiedStart,i.modifiedStart+i.modifiedLength));){const c=this.ElementsAreStrictEqual(i.originalStart,i.modifiedStart);if(this.ElementsAreStrictEqual(i.originalStart+i.originalLength,i.modifiedStart+i.modifiedLength)&&!c)break;i.originalStart++,i.modifiedStart++}const l=[null];if(n<t.length-1&&this.ChangesOverlap(t[n],t[n+1],l)){t[n]=l[0],t.splice(n+1,1),n--;continue}}for(let n=t.length-1;n>=0;n--){const i=t[n];let r=0,o=0;if(n>0){const d=t[n-1];r=d.originalStart+d.originalLength,o=d.modifiedStart+d.modifiedLength}const s=i.originalLength>0,a=i.modifiedLength>0;let l=0,c=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let d=1;;d++){const h=i.originalStart-d,f=i.modifiedStart-d;if(h<r||f<o||s&&!this.OriginalElementsAreEqual(h,h+i.originalLength)||a&&!this.ModifiedElementsAreEqual(f,f+i.modifiedLength))break;const g=(h===r&&f===o?5:0)+this._boundaryScore(h,i.originalLength,f,i.modifiedLength);g>c&&(c=g,l=d)}i.originalStart-=l,i.modifiedStart-=l;const u=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],u)){t[n-1]=u[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,i=t.length;n<i;n++){const r=t[n-1],o=t[n],s=o.originalStart-r.originalStart-r.originalLength,a=r.originalStart,l=o.originalStart+o.originalLength,c=l-a,u=r.modifiedStart,d=o.modifiedStart+o.modifiedLength,h=d-u;if(s<5&&c<20&&h<20){const f=this._findBetterContiguousSequence(a,c,u,h,s);if(f){const[p,g]=f;(p!==r.originalStart+r.originalLength||g!==r.modifiedStart+r.modifiedLength)&&(r.originalLength=p-r.originalStart,r.modifiedLength=g-r.modifiedStart,o.originalStart=p+s,o.modifiedStart=g+s,o.originalLength=l-o.originalStart,o.modifiedLength=d-o.modifiedStart)}}}return t}_findBetterContiguousSequence(t,n,i,r,o){if(n<o||r<o)return null;const s=t+n-o+1,a=i+r-o+1;let l=0,c=0,u=0;for(let d=t;d<s;d++)for(let h=i;h<a;h++){const f=this._contiguousSequenceScore(d,h,o);f>0&&f>l&&(l=f,c=d,u=h)}return l>0?[c,u]:null}_contiguousSequenceScore(t,n,i){let r=0;for(let o=0;o<i;o++){if(!this.ElementsAreEqual(t+o,n+o))return 0;r+=this._originalStringElements[t+o].length}return r}_OriginalIsBoundary(t){return t<=0||t>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,n){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(n>0){const i=t+n;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,n){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(n>0){const i=t+n;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(t,n,i,r){const o=this._OriginalRegionIsBoundary(t,n)?1:0,s=this._ModifiedRegionIsBoundary(i,r)?1:0;return o+s}ConcatenateChanges(t,n){const i=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],i)){const r=new Array(t.length+n.length-1);return jP.Copy(t,0,r,0,t.length-1),r[t.length-1]=i[0],jP.Copy(n,1,r,t.length,n.length-1),r}else{const r=new Array(t.length+n.length);return jP.Copy(t,0,r,0,t.length),jP.Copy(n,0,r,t.length,n.length),r}}ChangesOverlap(t,n,i){if(BP.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),BP.Assert(t.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=n.originalStart||t.modifiedStart+t.modifiedLength>=n.modifiedStart){const r=t.originalStart;let o=t.originalLength;const s=t.modifiedStart;let a=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(o=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(a=n.modifiedStart+n.modifiedLength-t.modifiedStart),i[0]=new EA(r,o,s,a),!0}else return i[0]=null,!1}ClipDiagonalBound(t,n,i,r){if(t>=0&&t<r)return t;const o=i,s=r-i-1,a=n%2===0;if(t<0){const l=o%2===0;return a===l?0:1}else{const l=s%2===0;return a===l?r-1:r-2}}}}});function Uue(e){return e<0?0:e>255?255:e|0}function I5(e){return e<0?0:e>4294967295?4294967295:e|0}var Zpe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/uint.js"(){}}),qq,Gq,D7=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/characterClassifier.js"(){Zpe(),qq=class mUt{constructor(t){const n=Uue(t);this._defaultValue=n,this._asciiMap=mUt._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){const n=new Uint8Array(256);return n.fill(t),n}set(t,n){const i=Uue(n);t>=0&&t<256?this._asciiMap[t]=i:this._map.set(t,i)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}},Gq=class{constructor(){this._actual=new qq(0)}add(e){this._actual.set(e,1)}has(e){return this._actual.get(e)===1}clear(){return this._actual.clear()}}}});function Ejn(){return nse===null&&(nse=new vUt([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),nse}function Ajn(){if(DB===null){DB=new qq(0);const e=` 	<>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let n=0;n<e.length;n++)DB.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)DB.set(t.charCodeAt(n),2)}return DB}function Djn(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:yUt.computeLinks(e)}var jlt,vUt,nse,DB,yUt,Tjn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages/linkComputer.js"(){D7(),jlt=class{constructor(e,t,n){const i=new Uint8Array(e*t);for(let r=0,o=e*t;r<o;r++)i[r]=n;this._data=i,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}},vUt=class{constructor(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++){const[s,a,l]=e[r];a>t&&(t=a),s>n&&(n=s),l>n&&(n=l)}t++,n++;const i=new jlt(n,t,0);for(let r=0,o=e.length;r<o;r++){const[s,a,l]=e[r];i.set(s,a,l)}this._states=i,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}},nse=null,DB=null,yUt=class B5e{static _createLink(t,n,i,r,o){let s=o-1;do{const a=n.charCodeAt(s);if(t.get(a)!==2)break;s--}while(s>r);if(r>0){const a=n.charCodeAt(r-1),l=n.charCodeAt(s);(a===40&&l===41||a===91&&l===93||a===123&&l===125)&&s--}return{range:{startLineNumber:i,startColumn:r+1,endLineNumber:i,endColumn:s+2},url:n.substring(r,s+1)}}static computeLinks(t,n=Ejn()){const i=Ajn(),r=[];for(let o=1,s=t.getLineCount();o<=s;o++){const a=t.getLineContent(o),l=a.length;let c=0,u=0,d=0,h=1,f=!1,p=!1,g=!1,m=!1;for(;c<l;){let v=!1;const y=a.charCodeAt(c);if(h===13){let b;switch(y){case 40:f=!0,b=0;break;case 41:b=f?0:1;break;case 91:g=!0,p=!0,b=0;break;case 93:g=!1,b=p?0:1;break;case 123:m=!0,b=0;break;case 125:b=m?0:1;break;case 39:case 34:case 96:d===y?b=1:d===39||d===34||d===96?b=0:b=1;break;case 42:b=d===42?1:0;break;case 124:b=d===124?1:0;break;case 32:b=g?0:1;break;default:b=i.get(y)}b===1&&(r.push(B5e._createLink(i,a,o,u,c)),v=!0)}else if(h===12){let b;y===91?(p=!0,b=0):b=i.get(y),b===1?v=!0:h=13}else h=n.nextState(h,y),h===0&&(v=!0);v&&(h=1,f=!1,p=!1,m=!1,u=c+1,d=y),c++}h===13&&r.push(B5e._createLink(i,a,o,u,l))}return r}}}}),bUt,kjn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages/supports/inplaceReplaceSupport.js"(){var e;bUt=(e=class{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(n,i,r,o,s){if(n&&i){const a=this.doNavigateValueSet(i,s);if(a)return{range:n,value:a}}if(r&&o){const a=this.doNavigateValueSet(o,s);if(a)return{range:r,value:a}}return null}doNavigateValueSet(n,i){const r=this.numberReplace(n,i);return r!==null?r:this.textReplace(n,i)}numberReplace(n,i){const r=Math.pow(10,n.length-(n.lastIndexOf(".")+1));let o=Number(n);const s=parseFloat(n);return!isNaN(o)&&!isNaN(s)&&o===s?o===0&&!i?null:(o=Math.floor(o*r),o+=i?r:-r,String(o/r)):null}textReplace(n,i){return this.valueSetsReplace(this._defaultValueSet,n,i)}valueSetsReplace(n,i,r){let o=null;for(let s=0,a=n.length;o===null&&s<a;s++)o=this.valueSetReplace(n[s],i,r);return o}valueSetReplace(n,i,r){let o=n.indexOf(i);return o>=0?(o+=r?1:-1,o<0?o=n.length-1:o%=n.length,n[o]):null}},e.INSTANCE=new e,e)}}),_Ut,wUt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js"(){var e;_Ut=(e=class{static getChannel(n){return n.getChannel(e.CHANNEL_NAME)}static setChannel(n,i){n.setChannel(e.CHANNEL_NAME,i)}},e.CHANNEL_NAME="editorWorkerHost",e)}});function Ijn(e){return Array.isArray(e)}var zlt,Vlt,Hlt,mh,Wlt,Ult,WC,CUt,Xpe,kh=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/map.js"(){var e;Hlt=class{constructor(t,n){this.uri=t,this.value=n}},mh=(e=class{constructor(n,i){if(this[zlt]="ResourceMap",n instanceof e)this.map=new Map(n.map),this.toKey=i??e.defaultToKey;else if(Ijn(n)){this.map=new Map,this.toKey=i??e.defaultToKey;for(const[r,o]of n)this.set(r,o)}else this.map=new Map,this.toKey=n??e.defaultToKey}set(n,i){return this.map.set(this.toKey(n),new Hlt(n,i)),this}get(n){return this.map.get(this.toKey(n))?.value}has(n){return this.map.has(this.toKey(n))}get size(){return this.map.size}clear(){this.map.clear()}delete(n){return this.map.delete(this.toKey(n))}forEach(n,i){typeof i<"u"&&(n=n.bind(i));for(const[r,o]of this.map)n(o.value,o.uri,this)}*values(){for(const n of this.map.values())yield n.value}*keys(){for(const n of this.map.values())yield n.uri}*entries(){for(const n of this.map.values())yield[n.uri,n.value]}*[(zlt=Symbol.toStringTag,Symbol.iterator)](){for(const[,n]of this.map)yield[n.uri,n.value]}},e.defaultToKey=n=>n.toString(),e),Wlt=class{constructor(){this[Vlt]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(t){return this._map.has(t)}get(t,n=0){const i=this._map.get(t);if(i)return n!==0&&this.touch(i,n),i.value}set(t,n,i=0){let r=this._map.get(t);if(r)r.value=n,i!==0&&this.touch(r,i);else{switch(r={key:t,value:n,next:void 0,previous:void 0},i){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(t,r),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){const n=this._map.get(t);if(n)return this._map.delete(t),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){const i=this._state;let r=this._head;for(;r;){if(n?t.bind(n)(r.value,r.key,this):t(r.value,r.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const t=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const o={value:i.key,done:!1};return i=i.next,o}else return{value:void 0,done:!0}}};return r}values(){const t=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const o={value:i.value,done:!1};return i=i.next,o}else return{value:void 0,done:!0}}};return r}entries(){const t=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const o={value:[i.key,i.value],done:!1};return i=i.next,o}else return{value:void 0,done:!0}}};return r}[(Vlt=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,i=this.size;for(;n&&i>t;)this._map.delete(n.key),n=n.next,i--;this._head=n,this._size=i,n&&(n.previous=void 0),this._state++}trimNew(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._tail,i=this.size;for(;n&&i>t;)this._map.delete(n.key),n=n.previous,i--;this._tail=n,this._size=i,n&&(n.next=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{const n=t.next,i=t.previous;if(!n||!i)throw new Error("Invalid list");n.previous=i,i.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(t===this._head)return;const i=t.next,r=t.previous;t===this._tail?(r.next=void 0,this._tail=r):(i.previous=r,r.next=i),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===2){if(t===this._tail)return;const i=t.next,r=t.previous;t===this._head?(i.previous=void 0,this._head=i):(i.previous=r,r.next=i),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){const t=[];return this.forEach((n,i)=>{t.push([i,n])}),t}fromJSON(t){this.clear();for(const[n,i]of t)this.set(n,i)}},Ult=class extends Wlt{constructor(t,n=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get(t,n=2){return super.get(t,n)}peek(t){return super.get(t,0)}set(t,n){return super.set(t,n,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}},WC=class extends Ult{constructor(t,n=1){super(t,n)}trim(t){this.trimOld(t)}set(t,n){return super.set(t,n),this.checkTrim(),this}},CUt=class{constructor(t){if(this._m1=new Map,this._m2=new Map,t)for(const[n,i]of t)this.set(n,i)}clear(){this._m1.clear(),this._m2.clear()}set(t,n){this._m1.set(t,n),this._m2.set(n,t)}get(t){return this._m1.get(t)}getKey(t){return this._m2.get(t)}delete(t){const n=this._m1.get(t);return n===void 0?!1:(this._m1.delete(t),this._m2.delete(n),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}},Xpe=class{constructor(){this.map=new Map}add(t,n){let i=this.map.get(t);i||(i=new Set,this.map.set(t,i)),i.add(n)}delete(t,n){const i=this.map.get(t);i&&(i.delete(n),i.size===0&&this.map.delete(t))}forEach(t,n){const i=this.map.get(t);i&&i.forEach(n)}get(t){const n=this.map.get(t);return n||new Set}}}});function Ay(e,t){const n=`${e}/${t.join(",")}`;let i=j5e.get(n);return i||(i=new SUt(e,t),j5e.set(n,i)),i}var SUt,j5e,oY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/wordCharacterClassifier.js"(){kh(),D7(),SUt=class extends qq{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let n=0,i=e.length;n<i;n++)this.set(e.charCodeAt(n),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let n=null;for(const i of this._getIntlSegmenterWordsOnLine(e)){if(i.index>t)break;n=i}return n}findNextIntlWordAtOrAfterOffset(e,t){for(const n of this._getIntlSegmenterWordsOnLine(e))if(!(n.index<t))return n;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?this._cachedLine===e?this._cachedSegments:(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e)),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const n of e)this._isWordLike(n)&&t.push(n);return t}_isWordLike(e){return!!e.isWordLike}},j5e=new WC(10)}});function Ljn(e){return e&&typeof e.read=="function"}function xUt(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}var x0,tw,L_,UU,n9,ise,EUt,AUt,Cd=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model.js"(){bm(),(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(x0||(x0={})),(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(tw||(tw={})),(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(L_||(L_={})),UU=class{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,e.tabSize|0),e.indentSize==="tabSize"?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,e.indentSize|0),this._indentSizeIsTabSize=!1),this.insertSpaces=!!e.insertSpaces,this.defaultEOL=e.defaultEOL|0,this.trimAutoWhitespace=!!e.trimAutoWhitespace,this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&Ev(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}},n9=class{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}},ise=class{constructor(e,t,n,i,r,o){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=i,this.isAutoWhitespaceEdit=r,this._isTracked=o}},EUt=class{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}},AUt=class{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}}});function Njn(e){if(!e||e.length===0)return!1;for(let t=0,n=e.length;t<n;t++){const i=e.charCodeAt(t);if(i===10)return!0;if(i===92){if(t++,t>=n)break;const r=e.charCodeAt(t);if(r===110||r===114||r===87)return!0}}return!1}function dO(e,t,n){if(!n)return new n9(e,null);const i=[];for(let r=0,o=t.length;r<o;r++)i[r]=t[r];return new n9(e,i)}function Pjn(e,t,n,i,r){if(i===0)return!0;const o=t.charCodeAt(i-1);if(e.get(o)!==0||o===13||o===10)return!0;if(r>0){const s=t.charCodeAt(i);if(e.get(s)!==0)return!0}return!1}function Mjn(e,t,n,i,r){if(i+r===n)return!0;const o=t.charCodeAt(i+r);if(e.get(o)!==0||o===13||o===10)return!0;if(r>0){const s=t.charCodeAt(i+r-1);if(e.get(s)!==0)return!0}return!1}function z5e(e,t,n,i,r){return Pjn(e,t,n,i,r)&&Mjn(e,t,n,i,r)}var $lt,dI,h1e,$H,hO,Jpe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/textModelSearch.js"(){Ki(),oY(),Hi(),Dn(),Cd(),$lt=999,dI=class{constructor(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=i}parseSearchRequest(){if(this.searchString==="")return null;let e;this.isRegex?e=Njn(this.searchString):e=this.searchString.indexOf(`
`)>=0;let t=null;try{t=VVt(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch{return null}if(!t)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new EUt(t,this.wordSeparators?Ay(this.wordSeparators,[]):null,n?this.searchString:null)}},h1e=class{constructor(e){const t=[];let n=0;for(let i=0,r=e.length;i<r;i++)e.charCodeAt(i)===10&&(t[n++]=i);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let n=0,i=t.length-1;if(i===-1||e<=t[0])return 0;for(;n<i;){const r=n+((i-n)/2>>0);t[r]>=e?i=r-1:t[r+1]>=e?(n=r,i=r):n=r+1}return n+1}},$H=class{static findMatches(e,t,n,i,r){const o=t.parseSearchRequest();return o?o.regex.multiline?this._doFindMatchesMultiline(e,n,new hO(o.wordSeparators,o.regex),i,r):this._doFindMatchesLineByLine(e,n,o,i,r):[]}static _getMultilineMatchRange(e,t,n,i,r,o){let s,a=0;i?(a=i.findLineFeedCountBeforeOffset(r),s=t+r+a):s=t+r;let l;if(i){const h=i.findLineFeedCountBeforeOffset(r+o.length)-a;l=s+o.length+h}else l=s+o.length;const c=e.getPositionAt(s),u=e.getPositionAt(l);return new Re(c.lineNumber,c.column,u.lineNumber,u.column)}static _doFindMatchesMultiline(e,t,n,i,r){const o=e.getOffsetAt(t.getStartPosition()),s=e.getValueInRange(t,1),a=e.getEOL()===`\r
`?new h1e(s):null,l=[];let c=0,u;for(n.reset(0);u=n.next(s);)if(l[c++]=dO(this._getMultilineMatchRange(e,o,s,a,u.index,u[0]),u,i),c>=r)return l;return l}static _doFindMatchesLineByLine(e,t,n,i,r){const o=[];let s=0;if(t.startLineNumber===t.endLineNumber){const l=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return s=this._findMatchesInLine(n,l,t.startLineNumber,t.startColumn-1,s,o,i,r),o}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);s=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,s,o,i,r);for(let l=t.startLineNumber+1;l<t.endLineNumber&&s<r;l++)s=this._findMatchesInLine(n,e.getLineContent(l),l,0,s,o,i,r);if(s<r){const l=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);s=this._findMatchesInLine(n,l,t.endLineNumber,0,s,o,i,r)}return o}static _findMatchesInLine(e,t,n,i,r,o,s,a){const l=e.wordSeparators;if(!s&&e.simpleSearch){const d=e.simpleSearch,h=d.length,f=t.length;let p=-h;for(;(p=t.indexOf(d,p+h))!==-1;)if((!l||z5e(l,t,f,p,h))&&(o[r++]=new n9(new Re(n,p+1+i,n,p+1+h+i),null),r>=a))return r;return r}const c=new hO(e.wordSeparators,e.regex);let u;c.reset(0);do if(u=c.next(t),u&&(o[r++]=dO(new Re(n,u.index+1+i,n,u.index+1+u[0].length+i),u,s),r>=a))return r;while(u);return r}static findNextMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const o=new hO(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(e,n,o,i):this._doFindNextMatchLineByLine(e,n,o,i)}static _doFindNextMatchMultiline(e,t,n,i){const r=new mt(t.lineNumber,1),o=e.getOffsetAt(r),s=e.getLineCount(),a=e.getValueInRange(new Re(r.lineNumber,r.column,s,e.getLineMaxColumn(s)),1),l=e.getEOL()===`\r
`?new h1e(a):null;n.reset(t.column-1);const c=n.next(a);return c?dO(this._getMultilineMatchRange(e,o,a,l,c.index,c[0]),c,i):t.lineNumber!==1||t.column!==1?this._doFindNextMatchMultiline(e,new mt(1,1),n,i):null}static _doFindNextMatchLineByLine(e,t,n,i){const r=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o),a=this._findFirstMatchInLine(n,s,o,t.column,i);if(a)return a;for(let l=1;l<=r;l++){const c=(o+l-1)%r,u=e.getLineContent(c+1),d=this._findFirstMatchInLine(n,u,c+1,1,i);if(d)return d}return null}static _findFirstMatchInLine(e,t,n,i,r){e.reset(i-1);const o=e.next(t);return o?dO(new Re(n,o.index+1,n,o.index+1+o[0].length),o,r):null}static findPreviousMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const o=new hO(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(e,n,o,i):this._doFindPreviousMatchLineByLine(e,n,o,i)}static _doFindPreviousMatchMultiline(e,t,n,i){const r=this._doFindMatchesMultiline(e,new Re(1,1,t.lineNumber,t.column),n,i,10*$lt);if(r.length>0)return r[r.length-1];const o=e.getLineCount();return t.lineNumber!==o||t.column!==e.getLineMaxColumn(o)?this._doFindPreviousMatchMultiline(e,new mt(o,e.getLineMaxColumn(o)),n,i):null}static _doFindPreviousMatchLineByLine(e,t,n,i){const r=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o).substring(0,t.column-1),a=this._findLastMatchInLine(n,s,o,i);if(a)return a;for(let l=1;l<=r;l++){const c=(r+o-l-1)%r,u=e.getLineContent(c+1),d=this._findLastMatchInLine(n,u,c+1,i);if(d)return d}return null}static _findLastMatchInLine(e,t,n,i){let r=null,o;for(e.reset(0);o=e.next(t);)r=dO(new Re(n,o.index+1,n,o.index+1+o[0].length),o,i);return r}},hO=class{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t||(n=this._searchRegex.exec(e),!n))return null;const i=n.index,r=n[0].length;if(i===this._prevMatchStartIndex&&r===this._prevMatchLength){if(r===0){_ue(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=r,!this._wordSeparators||z5e(this._wordSeparators,e,t,i,r))return n}while(n);return null}}}});function Ojn(e,t){return`[${z0(e.map(i=>String.fromCodePoint(i)).join(""))}]`}function qlt(e){return e===" "||e===`
`||e==="	"}var ege,f1e,DUt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js"(){Dn(),Jpe(),Ki(),zC(),A7(),ege=class{static computeUnicodeHighlights(e,t,n){const i=n?n.startLineNumber:1,r=n?n.endLineNumber:e.getLineCount(),o=new f1e(t),s=o.getCandidateCodePoints();let a;s==="allNonBasicAscii"?a=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):a=new RegExp(`${Ojn(Array.from(s))}`,"g");const l=new hO(null,a),c=[];let u=!1,d,h=0,f=0,p=0;e:for(let g=i,m=r;g<=m;g++){const v=e.getLineContent(g),y=v.length;l.reset(0);do if(d=l.next(v),d){let b=d.index,w=d.index+d[0].length;if(b>0){const T=v.charCodeAt(b-1);ud(T)&&b--}if(w+1<y){const T=v.charCodeAt(w-1);ud(T)&&w++}const E=v.substring(b,w);let A=Wq(b+1,Gpe,v,0);A&&A.endColumn<=b+1&&(A=null);const D=o.shouldHighlightNonBasicASCII(E,A?A.word:null);if(D!==0){if(D===3?h++:D===2?f++:D===1?p++:Vpe(),c.length>=1e3){u=!0;break e}c.push(new Re(g,b+1,g,w+1))}}while(d)}return{ranges:c,hasMore:u,ambiguousCharacterCount:h,invisibleCharacterCount:f,nonBasicAsciiCharacterCount:p}}static computeUnicodeHighlightReason(e,t){const n=new f1e(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const r=e.codePointAt(0),o=n.ambiguousCharacters.getPrimaryConfusable(r),s=Hoe.getLocales().filter(a=>!Hoe.getInstance(new Set([...t.allowedLocales,a])).isAmbiguous(r));return{kind:0,confusableWith:String.fromCodePoint(o),notAmbiguousInLocales:s}}case 1:return{kind:2}}}},f1e=class{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=Hoe.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of z6.codePoints)qlt(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,r=!1;if(t)for(const o of t){const s=o.codePointAt(0),a=qK(o);i=i||a,!a&&!this.ambiguousCharacters.isAmbiguous(s)&&!z6.isInvisibleCharacter(s)&&(r=!0)}return!i&&r?0:this.options.invisibleCharacters&&!qlt(e)&&z6.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}}}),$U,kHe,IHe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/diff/linesDiffComputer.js"(){$U=class{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}},kHe=class{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}}}),Xo,TUt,K0=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/offsetRange.js"(){Vi(),Xo=class VS{static addRange(t,n){let i=0;for(;i<n.length&&n[i].endExclusive<t.start;)i++;let r=i;for(;r<n.length&&n[r].start<=t.endExclusive;)r++;if(i===r)n.splice(i,0,t);else{const o=Math.min(t.start,n[i].start),s=Math.max(t.endExclusive,n[r-1].endExclusive);n.splice(i,r-i,new VS(o,s))}}static tryCreate(t,n){if(!(t>n))return new VS(t,n)}static ofLength(t){return new VS(0,t)}static ofStartAndLength(t,n){return new VS(t,t+n)}constructor(t,n){if(this.start=t,this.endExclusive=n,t>n)throw new ys(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new VS(this.start+t,this.endExclusive+t)}deltaStart(t){return new VS(this.start+t,this.endExclusive)}deltaEnd(t){return new VS(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(t){return this.start<=t&&t<this.endExclusive}join(t){return new VS(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){const n=Math.max(this.start,t.start),i=Math.min(this.endExclusive,t.endExclusive);if(n<=i)return new VS(n,i)}intersects(t){const n=Math.max(this.start,t.start),i=Math.min(this.endExclusive,t.endExclusive);return n<i}isBefore(t){return this.endExclusive<=t.start}isAfter(t){return this.start>=t.endExclusive}slice(t){return t.slice(this.start,this.endExclusive)}substring(t){return t.substring(this.start,this.endExclusive)}clip(t){if(this.isEmpty)throw new ys(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,t))}clipCyclic(t){if(this.isEmpty)throw new ys(`Invalid clipping range: ${this.toString()}`);return t<this.start?this.endExclusive-(this.start-t)%this.length:t>=this.endExclusive?this.start+(t-this.start)%this.length:t}forEach(t){for(let n=this.start;n<this.endExclusive;n++)t(n)}},TUt=class kUt{constructor(){this._sortedRanges=[]}addRange(t){let n=0;for(;n<this._sortedRanges.length&&this._sortedRanges[n].endExclusive<t.start;)n++;let i=n;for(;i<this._sortedRanges.length&&this._sortedRanges[i].start<=t.endExclusive;)i++;if(n===i)this._sortedRanges.splice(n,0,t);else{const r=Math.min(t.start,this._sortedRanges[n].start),o=Math.max(t.endExclusive,this._sortedRanges[i-1].endExclusive);this._sortedRanges.splice(n,i-n,new Xo(r,o))}}toString(){return this._sortedRanges.map(t=>t.toString()).join(", ")}intersectsStrict(t){let n=0;for(;n<this._sortedRanges.length&&this._sortedRanges[n].endExclusive<=t.start;)n++;return n<this._sortedRanges.length&&this._sortedRanges[n].start<t.endExclusive}intersectWithRange(t){const n=new kUt;for(const i of this._sortedRanges){const r=i.intersect(t);r&&n.addRange(r)}return n}intersectWithRangeLength(t){return this.intersectWithRange(t).length}get length(){return this._sortedRanges.reduce((t,n)=>t+n.length,0)}}}});function Kq(e,t){const n=Rjn(e,t);if(n!==-1)return e[n]}function Rjn(e,t,n=e.length-1){for(let i=n;i>=0;i--){const r=e[i];if(t(r))return i}return-1}function i9(e,t){const n=Yq(e,t);return n===-1?void 0:e[n]}function Yq(e,t,n=0,i=e.length){let r=n,o=i;for(;r<o;){const s=Math.floor((r+o)/2);t(e[s])?r=s+1:o=s}return r-1}function Fjn(e,t){const n=Qq(e,t);return n===e.length?void 0:e[n]}function Qq(e,t,n=0,i=e.length){let r=n,o=i;for(;r<o;){const s=Math.floor((r+o)/2);t(e[s])?o=s:r=s+1}return r}function LHe(e,t){if(e.length===0)return;let n=e[0];for(let i=1;i<e.length;i++){const r=e[i];t(r,n)>0&&(n=r)}return n}function Bjn(e,t){if(e.length===0)return;let n=e[0];for(let i=1;i<e.length;i++){const r=e[i];t(r,n)>=0&&(n=r)}return n}function jjn(e,t){return LHe(e,(n,i)=>-t(n,i))}function zjn(e,t){if(e.length===0)return-1;let n=0;for(let i=1;i<e.length;i++){const r=e[i];t(r,e[n])>0&&(n=i)}return n}function Vjn(e,t){for(const n of e){const i=t(n);if(i!==void 0)return i}}var NHe,Y0=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/arraysFind.js"(){var e;NHe=(e=class{constructor(n){this._array=n,this._findLastMonotonousLastIdx=0}findLastMonotonous(n){if(e.assertInvariants){if(this._prevFindLastPredicate){for(const r of this._array)if(this._prevFindLastPredicate(r)&&!n(r))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=n}const i=Yq(this._array,n,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=i+1,i===-1?void 0:this._array[i]}},e.assertInvariants=!1,e)}}),Ur,sL,Sg=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/lineRange.js"(){Vi(),K0(),Dn(),Y0(),Ur=class AA{static fromRangeInclusive(t){return new AA(t.startLineNumber,t.endLineNumber+1)}static joinMany(t){if(t.length===0)return[];let n=new sL(t[0].slice());for(let i=1;i<t.length;i++)n=n.getUnion(new sL(t[i].slice()));return n.ranges}static join(t){if(t.length===0)throw new ys("lineRanges cannot be empty");let n=t[0].startLineNumber,i=t[0].endLineNumberExclusive;for(let r=1;r<t.length;r++)n=Math.min(n,t[r].startLineNumber),i=Math.max(i,t[r].endLineNumberExclusive);return new AA(n,i)}static ofLength(t,n){return new AA(t,t+n)}static deserialize(t){return new AA(t[0],t[1])}constructor(t,n){if(t>n)throw new ys(`startLineNumber ${t} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=t,this.endLineNumberExclusive=n}contains(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(t){return new AA(this.startLineNumber+t,this.endLineNumberExclusive+t)}deltaLength(t){return new AA(this.startLineNumber,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new AA(Math.min(this.startLineNumber,t.startLineNumber),Math.max(this.endLineNumberExclusive,t.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(t){const n=Math.max(this.startLineNumber,t.startLineNumber),i=Math.min(this.endLineNumberExclusive,t.endLineNumberExclusive);if(n<=i)return new AA(n,i)}intersectsStrict(t){return this.startLineNumber<t.endLineNumberExclusive&&t.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(t){return this.startLineNumber<=t.endLineNumberExclusive&&t.startLineNumber<=this.endLineNumberExclusive}equals(t){return this.startLineNumber===t.startLineNumber&&this.endLineNumberExclusive===t.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new Re(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new Re(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(t){const n=[];for(let i=this.startLineNumber;i<this.endLineNumberExclusive;i++)n.push(t(i));return n}forEach(t){for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t(n)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}toOffsetRange(){return new Xo(this.startLineNumber-1,this.endLineNumberExclusive-1)}},sL=class TB{constructor(t=[]){this._normalizedRanges=t}get ranges(){return this._normalizedRanges}addRange(t){if(t.length===0)return;const n=Qq(this._normalizedRanges,r=>r.endLineNumberExclusive>=t.startLineNumber),i=Yq(this._normalizedRanges,r=>r.startLineNumber<=t.endLineNumberExclusive)+1;if(n===i)this._normalizedRanges.splice(n,0,t);else if(n===i-1){const r=this._normalizedRanges[n];this._normalizedRanges[n]=r.join(t)}else{const r=this._normalizedRanges[n].join(this._normalizedRanges[i-1]).join(t);this._normalizedRanges.splice(n,i-n,r)}}contains(t){const n=i9(this._normalizedRanges,i=>i.startLineNumber<=t);return!!n&&n.endLineNumberExclusive>t}intersects(t){const n=i9(this._normalizedRanges,i=>i.startLineNumber<t.endLineNumberExclusive);return!!n&&n.endLineNumberExclusive>t.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;const n=[];let i=0,r=0,o=null;for(;i<this._normalizedRanges.length||r<t._normalizedRanges.length;){let s=null;if(i<this._normalizedRanges.length&&r<t._normalizedRanges.length){const a=this._normalizedRanges[i],l=t._normalizedRanges[r];a.startLineNumber<l.startLineNumber?(s=a,i++):(s=l,r++)}else i<this._normalizedRanges.length?(s=this._normalizedRanges[i],i++):(s=t._normalizedRanges[r],r++);o===null?o=s:o.endLineNumberExclusive>=s.startLineNumber?o=new Ur(o.startLineNumber,Math.max(o.endLineNumberExclusive,s.endLineNumberExclusive)):(n.push(o),o=s)}return o!==null&&n.push(o),new TB(n)}subtractFrom(t){const n=Qq(this._normalizedRanges,s=>s.endLineNumberExclusive>=t.startLineNumber),i=Yq(this._normalizedRanges,s=>s.startLineNumber<=t.endLineNumberExclusive)+1;if(n===i)return new TB([t]);const r=[];let o=t.startLineNumber;for(let s=n;s<i;s++){const a=this._normalizedRanges[s];a.startLineNumber>o&&r.push(new Ur(o,a.startLineNumber)),o=a.endLineNumberExclusive}return o<t.endLineNumberExclusive&&r.push(new Ur(o,t.endLineNumberExclusive)),new TB(r)}toString(){return this._normalizedRanges.map(t=>t.toString()).join(", ")}getIntersection(t){const n=[];let i=0,r=0;for(;i<this._normalizedRanges.length&&r<t._normalizedRanges.length;){const o=this._normalizedRanges[i],s=t._normalizedRanges[r],a=o.intersect(s);a&&!a.isEmpty&&n.push(a),o.endLineNumberExclusive<s.endLineNumberExclusive?i++:r++}return new TB(n)}getWithDelta(t){return new TB(this._normalizedRanges.map(n=>n.delta(t)))}}}}),_C,IN=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/textLength.js"(){var e;Hi(),Dn(),_C=(e=class{static betweenPositions(n,i){return n.lineNumber===i.lineNumber?new e(0,i.column-n.column):new e(i.lineNumber-n.lineNumber,i.column-1)}static ofRange(n){return e.betweenPositions(n.getStartPosition(),n.getEndPosition())}static ofText(n){let i=0,r=0;for(const o of n)o===`
`?(i++,r=0):r++;return new e(i,r)}constructor(n,i){this.lineCount=n,this.columnCount=i}isGreaterThanOrEqualTo(n){return this.lineCount!==n.lineCount?this.lineCount>n.lineCount:this.columnCount>=n.columnCount}createRange(n){return this.lineCount===0?new Re(n.lineNumber,n.column,n.lineNumber,n.column+this.columnCount):new Re(n.lineNumber,n.column,n.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(n){return this.lineCount===0?new mt(n.lineNumber,n.column+this.columnCount):new mt(n.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}},e.zero=new e(0,0),e)}}),IUt,Hjn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/positionToOffset.js"(){K0(),IN(),IUt=class{constructor(e){this.text=e,this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;t<e.length;t++)e.charAt(t)===`
`&&this.lineStartOffsetByLineIdx.push(t+1)}getOffset(e){return this.lineStartOffsetByLineIdx[e.lineNumber-1]+e.column-1}getOffsetRange(e){return new Xo(this.getOffset(e.getStartPosition()),this.getOffset(e.getEndPosition()))}get textLength(){const e=this.lineStartOffsetByLineIdx.length-1;return new _C(e,this.text.length-this.lineStartOffsetByLineIdx[e])}}}});function Glt(e,t){if(e.lineNumber===t.lineNumber&&e.column===Number.MAX_SAFE_INTEGER)return Re.fromPositions(t,t);if(!e.isBeforeOrEqual(t))throw new ys("start must be before end");return new Re(e.lineNumber,e.column,t.lineNumber,t.column)}var tge,wC,V5e,Klt,mT=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/textEdit.js"(){zC(),Vi(),Hi(),Hjn(),Dn(),IN(),tge=class{constructor(e){this.edits=e,YR(()=>Z3e(e,(t,n)=>t.range.getEndPosition().isBeforeOrEqual(n.range.getStartPosition())))}apply(e){let t="",n=new mt(1,1);for(const r of this.edits){const o=r.range,s=o.getStartPosition(),a=o.getEndPosition(),l=Glt(n,s);l.isEmpty()||(t+=e.getValueOfRange(l)),t+=r.text,n=a}const i=Glt(n,e.endPositionExclusive);return i.isEmpty()||(t+=e.getValueOfRange(i)),t}applyToString(e){const t=new Klt(e);return this.apply(t)}getNewRanges(){const e=[];let t=0,n=0,i=0;for(const r of this.edits){const o=_C.ofText(r.text),s=mt.lift({lineNumber:r.range.startLineNumber+n,column:r.range.startColumn+(r.range.startLineNumber===t?i:0)}),a=o.createRange(s);e.push(a),n=a.endLineNumber-r.range.endLineNumber,i=a.endColumn-r.range.endColumn,t=r.range.endLineNumber}return e}},wC=class{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}},V5e=class{get endPositionExclusive(){return this.length.addToPosition(new mt(1,1))}},Klt=class extends V5e{constructor(e){super(),this.value=e,this._t=new IUt(this.value)}getValueOfRange(e){return this._t.getOffsetRange(e).substring(this.value)}get length(){return this._t.textLength}}}});function L5(e,t){if(e.lineNumber<1)return new mt(1,1);if(e.lineNumber>t.length)return new mt(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new mt(e.lineNumber,n.length+1):e}function Ylt(e,t){return e>=1&&e<=t.length}var Zy,CC,Dy,vT=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/diff/rangeMapping.js"(){Vi(),Sg(),Hi(),Dn(),mT(),Zy=class kB{static inverse(t,n,i){const r=[];let o=1,s=1;for(const l of t){const c=new kB(new Ur(o,l.original.startLineNumber),new Ur(s,l.modified.startLineNumber));c.modified.isEmpty||r.push(c),o=l.original.endLineNumberExclusive,s=l.modified.endLineNumberExclusive}const a=new kB(new Ur(o,n+1),new Ur(s,i+1));return a.modified.isEmpty||r.push(a),r}static clip(t,n,i){const r=[];for(const o of t){const s=o.original.intersect(n),a=o.modified.intersect(i);s&&!s.isEmpty&&a&&!a.isEmpty&&r.push(new kB(s,a))}return r}constructor(t,n){this.original=t,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new kB(this.modified,this.original)}join(t){return new kB(this.original.join(t.original),this.modified.join(t.modified))}toRangeMapping(){const t=this.original.toInclusiveRange(),n=this.modified.toInclusiveRange();if(t&&n)return new Dy(t,n);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new ys("not a valid diff");return new Dy(new Re(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new Re(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new Dy(new Re(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new Re(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(t,n){if(Ylt(this.original.endLineNumberExclusive,t)&&Ylt(this.modified.endLineNumberExclusive,n))return new Dy(new Re(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new Re(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new Dy(Re.fromPositions(new mt(this.original.startLineNumber,1),L5(new mt(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)),Re.fromPositions(new mt(this.modified.startLineNumber,1),L5(new mt(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new Dy(Re.fromPositions(L5(new mt(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),L5(new mt(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)),Re.fromPositions(L5(new mt(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),n),L5(new mt(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));throw new ys}},CC=class rse extends Zy{static fromRangeMappings(t){const n=Ur.join(t.map(r=>Ur.fromRangeInclusive(r.originalRange))),i=Ur.join(t.map(r=>Ur.fromRangeInclusive(r.modifiedRange)));return new rse(n,i,t)}constructor(t,n,i){super(t,n),this.innerChanges=i}flip(){return new rse(this.modified,this.original,this.innerChanges?.map(t=>t.flip()))}withInnerChangesFromLineRanges(){return new rse(this.original,this.modified,[this.toRangeMapping()])}},Dy=class LUt{static assertSorted(t){for(let n=1;n<t.length;n++){const i=t[n-1],r=t[n];if(!(i.originalRange.getEndPosition().isBeforeOrEqual(r.originalRange.getStartPosition())&&i.modifiedRange.getEndPosition().isBeforeOrEqual(r.modifiedRange.getStartPosition())))throw new ys("Range mappings must be sorted")}}constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new LUt(this.modifiedRange,this.originalRange)}toTextEdit(t){const n=t.getValueOfRange(this.modifiedRange);return new wC(this.originalRange,n)}}}});function Qlt(e,t,n,i){return new rY(e,t,n).ComputeDiff(i)}function Wjn(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i<r;i++){const o=e[i],s=o.originalStart-(n.originalStart+n.originalLength),a=o.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(s,a)<NUt?(n.originalLength=o.originalStart+o.originalLength-n.originalStart,n.modifiedLength=o.modifiedStart+o.modifiedLength-n.modifiedStart):(t.push(o),n=o)}return t}function p1e(e,t){const n=Cp(e);return n===-1?t:n+1}function g1e(e,t){const n=iC(e);return n===-1?t:n+2}function Zlt(e){if(e===0)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var NUt,PUt,m1e,Xlt,Vz,_J,Jlt,Ujn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/diff/legacyLinesDiffComputer.js"(){Qpe(),IHe(),vT(),Ki(),Dn(),zC(),Sg(),NUt=3,PUt=class{computeDiff(e,t,n){const r=new Jlt(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[];let s=null;for(const a of r.changes){let l;a.originalEndLineNumber===0?l=new Ur(a.originalStartLineNumber+1,a.originalStartLineNumber+1):l=new Ur(a.originalStartLineNumber,a.originalEndLineNumber+1);let c;a.modifiedEndLineNumber===0?c=new Ur(a.modifiedStartLineNumber+1,a.modifiedStartLineNumber+1):c=new Ur(a.modifiedStartLineNumber,a.modifiedEndLineNumber+1);let u=new CC(l,c,a.charChanges?.map(d=>new Dy(new Re(d.originalStartLineNumber,d.originalStartColumn,d.originalEndLineNumber,d.originalEndColumn),new Re(d.modifiedStartLineNumber,d.modifiedStartColumn,d.modifiedEndLineNumber,d.modifiedEndColumn))));s&&(s.modified.endLineNumberExclusive===u.modified.startLineNumber||s.original.endLineNumberExclusive===u.original.startLineNumber)&&(u=new CC(s.original.join(u.original),s.modified.join(u.modified),s.innerChanges&&u.innerChanges?s.innerChanges.concat(u.innerChanges):void 0),o.pop()),o.push(u),s=u}return YR(()=>Z3e(o,(a,l)=>l.original.startLineNumber-a.original.endLineNumberExclusive===l.modified.startLineNumber-a.modified.endLineNumberExclusive&&a.original.endLineNumberExclusive<l.original.startLineNumber&&a.modified.endLineNumberExclusive<l.modified.startLineNumber)),new $U(o,[],r.quitEarly)}},m1e=class{constructor(e){const t=[],n=[];for(let i=0,r=e.length;i<r;i++)t[i]=p1e(e[i],1),n[i]=g1e(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const e=[];for(let t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){const i=[],r=[],o=[];let s=0;for(let a=t;a<=n;a++){const l=this.lines[a],c=e?this._startColumns[a]:1,u=e?this._endColumns[a]:l.length+1;for(let d=c;d<u;d++)i[s]=l.charCodeAt(d-1),r[s]=a+1,o[s]=d,s++;!e&&a<n&&(i[s]=10,r[s]=a+1,o[s]=l.length+1,s++)}return new Xlt(i,r,o)}},Xlt=class{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map((e,t)=>(e===10?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return e===-1?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),this._charCodes[e]===10?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return e===-1?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),this._charCodes[e]===10?1:this._columns[e]+1)}},Vz=class MUt{constructor(t,n,i,r,o,s,a,l){this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=i,this.originalEndColumn=r,this.modifiedStartLineNumber=o,this.modifiedStartColumn=s,this.modifiedEndLineNumber=a,this.modifiedEndColumn=l}static createFromDiffChange(t,n,i){const r=n.getStartLineNumber(t.originalStart),o=n.getStartColumn(t.originalStart),s=n.getEndLineNumber(t.originalStart+t.originalLength-1),a=n.getEndColumn(t.originalStart+t.originalLength-1),l=i.getStartLineNumber(t.modifiedStart),c=i.getStartColumn(t.modifiedStart),u=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),d=i.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new MUt(r,o,s,a,l,c,u,d)}},_J=class OUt{constructor(t,n,i,r,o){this.originalStartLineNumber=t,this.originalEndLineNumber=n,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=r,this.charChanges=o}static createFromDiffResult(t,n,i,r,o,s,a){let l,c,u,d,h;if(n.originalLength===0?(l=i.getStartLineNumber(n.originalStart)-1,c=0):(l=i.getStartLineNumber(n.originalStart),c=i.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(u=r.getStartLineNumber(n.modifiedStart)-1,d=0):(u=r.getStartLineNumber(n.modifiedStart),d=r.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),s&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&o()){const f=i.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),p=r.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(f.getElements().length>0&&p.getElements().length>0){let g=Qlt(f,p,o,!0).changes;a&&(g=Wjn(g)),h=[];for(let m=0,v=g.length;m<v;m++)h.push(Vz.createFromDiffChange(g[m],f,p))}}return new OUt(l,c,u,d,h)}},Jlt=class{constructor(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new m1e(e),this.modified=new m1e(t),this.continueLineDiff=Zlt(n.maxComputationTime),this.continueCharDiff=Zlt(n.maxComputationTime===0?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=Qlt(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const s=[];for(let a=0,l=t.length;a<l;a++)s.push(_J.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[a],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:s}}const i=[];let r=0,o=0;for(let s=-1,a=t.length;s<a;s++){const l=s+1<a?t[s+1]:null,c=l?l.originalStart:this.originalLines.length,u=l?l.modifiedStart:this.modifiedLines.length;for(;r<c&&o<u;){const d=this.originalLines[r],h=this.modifiedLines[o];if(d!==h){{let f=p1e(d,1),p=p1e(h,1);for(;f>1&&p>1;){const g=d.charCodeAt(f-2),m=h.charCodeAt(p-2);if(g!==m)break;f--,p--}(f>1||p>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,f,o+1,1,p)}{let f=g1e(d,1),p=g1e(h,1);const g=d.length+1,m=h.length+1;for(;f<g&&p<m;){const v=d.charCodeAt(f-1),y=d.charCodeAt(p-1);if(v!==y)break;f++,p++}(f<g||p<m)&&this._pushTrimWhitespaceCharChange(i,r+1,f,g,o+1,p,m)}}r++,o++}l&&(i.push(_J.createFromDiffResult(this.shouldIgnoreTrimWhitespace,l,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),r+=l.originalLength,o+=l.modifiedLength)}return{quitEarly:n,changes:i}}_pushTrimWhitespaceCharChange(e,t,n,i,r,o,s){if(this._mergeTrimWhitespaceCharChange(e,t,n,i,r,o,s))return;let a;this.shouldComputeCharChanges&&(a=[new Vz(t,n,t,i,r,o,r,s)]),e.push(new _J(t,t,r,r,a))}_mergeTrimWhitespaceCharChange(e,t,n,i,r,o,s){const a=e.length;if(a===0)return!1;const l=e[a-1];return l.originalEndLineNumber===0||l.modifiedEndLineNumber===0?!1:l.originalEndLineNumber===t&&l.modifiedEndLineNumber===r?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new Vz(t,n,t,i,r,o,r,s)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===r?(l.originalEndLineNumber=t,l.modifiedEndLineNumber=r,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new Vz(t,n,t,i,r,o,r,s)),!0):!1}}}}),hR,Av,wI,nge,RUt,sY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js"(){var e,t;rr(),Vi(),K0(),hR=class H5e{static trivial(i,r){return new H5e([new Av(Xo.ofLength(i.length),Xo.ofLength(r.length))],!1)}static trivialTimedOut(i,r){return new H5e([new Av(Xo.ofLength(i.length),Xo.ofLength(r.length))],!0)}constructor(i,r){this.diffs=i,this.hitTimeout=r}},Av=class DA{static invert(i,r){const o=[];return fWt(i,(s,a)=>{o.push(DA.fromOffsetPairs(s?s.getEndExclusives():wI.zero,a?a.getStarts():new wI(r,(s?s.seq2Range.endExclusive-s.seq1Range.endExclusive:0)+r)))}),o}static fromOffsetPairs(i,r){return new DA(new Xo(i.offset1,r.offset1),new Xo(i.offset2,r.offset2))}static assertSorted(i){let r;for(const o of i){if(r&&!(r.seq1Range.endExclusive<=o.seq1Range.start&&r.seq2Range.endExclusive<=o.seq2Range.start))throw new ys("Sequence diffs must be sorted");r=o}}constructor(i,r){this.seq1Range=i,this.seq2Range=r}swap(){return new DA(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(i){return new DA(this.seq1Range.join(i.seq1Range),this.seq2Range.join(i.seq2Range))}delta(i){return i===0?this:new DA(this.seq1Range.delta(i),this.seq2Range.delta(i))}deltaStart(i){return i===0?this:new DA(this.seq1Range.deltaStart(i),this.seq2Range.deltaStart(i))}deltaEnd(i){return i===0?this:new DA(this.seq1Range.deltaEnd(i),this.seq2Range.deltaEnd(i))}intersect(i){const r=this.seq1Range.intersect(i.seq1Range),o=this.seq2Range.intersect(i.seq2Range);if(!(!r||!o))return new DA(r,o)}getStarts(){return new wI(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new wI(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}},wI=(e=class{constructor(i,r){this.offset1=i,this.offset2=r}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(i){return i===0?this:new e(this.offset1+i,this.offset2+i)}equals(i){return this.offset1===i.offset1&&this.offset2===i.offset2}},e.zero=new e(0,0),e.max=new e(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),e),nge=(t=class{isValid(){return!0}},t.instance=new t,t),RUt=class{constructor(n){if(this.timeout=n,this.startTime=Date.now(),this.valid=!0,n<=0)throw new ys("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}}}});function W5e(e){return e===32||e===9}var ose,U5e,PHe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/utils.js"(){var e;ose=class{constructor(t,n){this.width=t,this.height=n,this.array=[],this.array=new Array(t*n)}get(t,n){return this.array[t+n*this.width]}set(t,n,i){this.array[t+n*this.width]=i}},U5e=(e=class{static getKey(n){let i=this.chrKeys.get(n);return i===void 0&&(i=this.chrKeys.size,this.chrKeys.set(n,i)),i}constructor(n,i,r){this.range=n,this.lines=i,this.source=r,this.histogram=[];let o=0;for(let s=n.startLineNumber-1;s<n.endLineNumberExclusive-1;s++){const a=i[s];for(let c=0;c<a.length;c++){o++;const u=a[c],d=e.getKey(u);this.histogram[d]=(this.histogram[d]||0)+1}o++;const l=e.getKey(`
`);this.histogram[l]=(this.histogram[l]||0)+1}this.totalCount=o}computeSimilarity(n){let i=0;const r=Math.max(this.histogram.length,n.histogram.length);for(let o=0;o<r;o++)i+=Math.abs((this.histogram[o]??0)-(n.histogram[o]??0));return 1-i/(this.totalCount+n.totalCount)}},e.chrKeys=new Map,e)}}),FUt,$jn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.js"(){K0(),sY(),PHe(),FUt=class{compute(e,t,n=nge.instance,i){if(e.length===0||t.length===0)return hR.trivial(e,t);const r=new ose(e.length,t.length),o=new ose(e.length,t.length),s=new ose(e.length,t.length);for(let f=0;f<e.length;f++)for(let p=0;p<t.length;p++){if(!n.isValid())return hR.trivialTimedOut(e,t);const g=f===0?0:r.get(f-1,p),m=p===0?0:r.get(f,p-1);let v;e.getElement(f)===t.getElement(p)?(f===0||p===0?v=0:v=r.get(f-1,p-1),f>0&&p>0&&o.get(f-1,p-1)===3&&(v+=s.get(f-1,p-1)),v+=i?i(f,p):1):v=-1;const y=Math.max(g,m,v);if(y===v){const b=f>0&&p>0?s.get(f-1,p-1):0;s.set(f,p,b+1),o.set(f,p,3)}else y===g?(s.set(f,p,0),o.set(f,p,1)):y===m&&(s.set(f,p,0),o.set(f,p,2));r.set(f,p,y)}const a=[];let l=e.length,c=t.length;function u(f,p){(f+1!==l||p+1!==c)&&a.push(new Av(new Xo(f+1,l),new Xo(p+1,c))),l=f,c=p}let d=e.length-1,h=t.length-1;for(;d>=0&&h>=0;)o.get(d,h)===3?(u(d,h),d--,h--):o.get(d,h)===1?d--:h--;return u(-1,-1),a.reverse(),new hR(a,!1)}}}}),MHe,v1e,ect,tct,BUt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.js"(){K0(),sY(),MHe=class{compute(e,t,n=nge.instance){if(e.length===0||t.length===0)return hR.trivial(e,t);const i=e,r=t;function o(p,g){for(;p<i.length&&g<r.length&&i.getElement(p)===r.getElement(g);)p++,g++;return p}let s=0;const a=new ect;a.set(0,o(0,0));const l=new tct;l.set(0,a.get(0)===0?null:new v1e(null,0,0,a.get(0)));let c=0;e:for(;;){if(s++,!n.isValid())return hR.trivialTimedOut(i,r);const p=-Math.min(s,r.length+s%2),g=Math.min(s,i.length+s%2);for(c=p;c<=g;c+=2){const m=c===g?-1:a.get(c+1),v=c===p?-1:a.get(c-1)+1,y=Math.min(Math.max(m,v),i.length),b=y-c;if(y>i.length||b>r.length)continue;const w=o(y,b);a.set(c,w);const E=y===m?l.get(c+1):l.get(c-1);if(l.set(c,w!==y?new v1e(E,y,b,w-y):E),a.get(c)===i.length&&a.get(c)-c===r.length)break e}}let u=l.get(c);const d=[];let h=i.length,f=r.length;for(;;){const p=u?u.x+u.length:0,g=u?u.y+u.length:0;if((p!==h||g!==f)&&d.push(new Av(new Xo(p,h),new Xo(g,f))),!u)break;h=u.x,f=u.y,u=u.prev}return d.reverse(),new hR(d,!1)}},v1e=class{constructor(e,t,n,i){this.prev=e,this.x=t,this.y=n,this.length=i}},ect=class{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if(e=-e-1,e>=this.negativeArr.length){const n=this.negativeArr;this.negativeArr=new Int32Array(n.length*2),this.negativeArr.set(n)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const n=this.positiveArr;this.positiveArr=new Int32Array(n.length*2),this.positiveArr.set(n)}this.positiveArr[e]=t}}},tct=class{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}}});function y1e(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}function nct(e){return jUt[e]}function ict(e){return e===10?8:e===13?7:W5e(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:e===44||e===59?5:4}var Zq,jUt,zUt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js"(){Y0(),K0(),Hi(),Dn(),PHe(),Zq=class{constructor(e,t,n){this.lines=e,this.range=t,this.considerWhitespaceChanges=n,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let i=this.range.startLineNumber;i<=this.range.endLineNumber;i++){let r=e[i-1],o=0;i===this.range.startLineNumber&&this.range.startColumn>1&&(o=this.range.startColumn-1,r=r.substring(o)),this.lineStartOffsets.push(o);let s=0;if(!n){const l=r.trimStart();s=r.length-l.length,r=l.trimEnd()}this.trimmedWsLengthsByLineIdx.push(s);const a=i===this.range.endLineNumber?Math.min(this.range.endColumn-1-o-s,r.length):r.length;for(let l=0;l<a;l++)this.elements.push(r.charCodeAt(l));i<this.range.endLineNumber&&(this.elements.push(10),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new Xo(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map(t=>String.fromCharCode(t)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=ict(e>0?this.elements[e-1]:-1),n=ict(e<this.elements.length?this.elements[e]:-1);if(t===7&&n===8)return 0;if(t===8)return 150;let i=0;return t!==n&&(i+=10,t===0&&n===1&&(i+=1)),i+=nct(t),i+=nct(n),i}translateOffset(e,t="right"){const n=Yq(this.firstElementOffsetByLineIdx,r=>r<=e),i=e-this.firstElementOffsetByLineIdx[n];return new mt(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+i+(i===0&&t==="left"?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){const t=this.translateOffset(e.start,"right"),n=this.translateOffset(e.endExclusive,"left");return n.isBefore(t)?Re.fromPositions(n,n):Re.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length||!y1e(this.elements[e]))return;let t=e;for(;t>0&&y1e(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&y1e(this.elements[n]);)n++;return new Xo(t,n)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,t){return this.elements[e]===this.elements[t]}extendToFullLines(e){const t=i9(this.firstElementOffsetByLineIdx,i=>i<=e.start)??0,n=Fjn(this.firstElementOffsetByLineIdx,i=>e.endExclusive<=i)??this.elements.length;return new Xo(t,n)}},jUt={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10}}});function qjn(e,t,n,i,r,o){let{moves:s,excludedChanges:a}=Kjn(e,t,n,o);if(!o.isValid())return[];const l=e.filter(u=>!a.has(u)),c=Yjn(l,i,r,t,n,o);return v5e(s,c),s=Qjn(s),s=s.filter(u=>{const d=u.original.toOffsetRange().slice(t).map(f=>f.trim());return d.join(`
`).length>=15&&Gjn(d,f=>f.length>=2)>=2}),s=Zjn(e,s),s}function Gjn(e,t){let n=0;for(const i of e)t(i)&&n++;return n}function Kjn(e,t,n,i){const r=[],o=e.filter(l=>l.modified.isEmpty&&l.original.length>=3).map(l=>new U5e(l.original,t,l)),s=new Set(e.filter(l=>l.original.isEmpty&&l.modified.length>=3).map(l=>new U5e(l.modified,n,l))),a=new Set;for(const l of o){let c=-1,u;for(const d of s){const h=l.computeSimilarity(d);h>c&&(c=h,u=d)}if(c>.9&&u&&(s.delete(u),r.push(new Zy(l.range,u.range)),a.add(l.source),a.add(u.source)),!i.isValid())return{moves:r,excludedChanges:a}}return{moves:r,excludedChanges:a}}function Yjn(e,t,n,i,r,o){const s=[],a=new Xpe;for(const h of e)for(let f=h.original.startLineNumber;f<h.original.endLineNumberExclusive-2;f++){const p=`${t[f-1]}:${t[f+1-1]}:${t[f+2-1]}`;a.add(p,{range:new Ur(f,f+3)})}const l=[];e.sort(ug(h=>h.modified.startLineNumber,Yy));for(const h of e){let f=[];for(let p=h.modified.startLineNumber;p<h.modified.endLineNumberExclusive-2;p++){const g=`${n[p-1]}:${n[p+1-1]}:${n[p+2-1]}`,m=new Ur(p,p+3),v=[];a.forEach(g,({range:y})=>{for(const w of f)if(w.originalLineRange.endLineNumberExclusive+1===y.endLineNumberExclusive&&w.modifiedLineRange.endLineNumberExclusive+1===m.endLineNumberExclusive){w.originalLineRange=new Ur(w.originalLineRange.startLineNumber,y.endLineNumberExclusive),w.modifiedLineRange=new Ur(w.modifiedLineRange.startLineNumber,m.endLineNumberExclusive),v.push(w);return}const b={modifiedLineRange:m,originalLineRange:y};l.push(b),v.push(b)}),f=v}if(!o.isValid())return[]}l.sort(mWt(ug(h=>h.modifiedLineRange.length,Yy)));const c=new sL,u=new sL;for(const h of l){const f=h.modifiedLineRange.startLineNumber-h.originalLineRange.startLineNumber,p=c.subtractFrom(h.modifiedLineRange),g=u.subtractFrom(h.originalLineRange).getWithDelta(f),m=p.getIntersection(g);for(const v of m.ranges){if(v.length<3)continue;const y=v,b=v.delta(-f);s.push(new Zy(b,y)),c.addRange(y),u.addRange(b)}}s.sort(ug(h=>h.original.startLineNumber,Yy));const d=new NHe(e);for(let h=0;h<s.length;h++){const f=s[h],p=d.findLastMonotonous(A=>A.original.startLineNumber<=f.original.startLineNumber),g=i9(e,A=>A.modified.startLineNumber<=f.modified.startLineNumber),m=Math.max(f.original.startLineNumber-p.original.startLineNumber,f.modified.startLineNumber-g.modified.startLineNumber),v=d.findLastMonotonous(A=>A.original.startLineNumber<f.original.endLineNumberExclusive),y=i9(e,A=>A.modified.startLineNumber<f.modified.endLineNumberExclusive),b=Math.max(v.original.endLineNumberExclusive-f.original.endLineNumberExclusive,y.modified.endLineNumberExclusive-f.modified.endLineNumberExclusive);let w;for(w=0;w<m;w++){const A=f.original.startLineNumber-w-1,D=f.modified.startLineNumber-w-1;if(A>i.length||D>r.length||c.contains(D)||u.contains(A)||!rct(i[A-1],r[D-1],o))break}w>0&&(u.addRange(new Ur(f.original.startLineNumber-w,f.original.startLineNumber)),c.addRange(new Ur(f.modified.startLineNumber-w,f.modified.startLineNumber)));let E;for(E=0;E<b;E++){const A=f.original.endLineNumberExclusive+E,D=f.modified.endLineNumberExclusive+E;if(A>i.length||D>r.length||c.contains(D)||u.contains(A)||!rct(i[A-1],r[D-1],o))break}E>0&&(u.addRange(new Ur(f.original.endLineNumberExclusive,f.original.endLineNumberExclusive+E)),c.addRange(new Ur(f.modified.endLineNumberExclusive,f.modified.endLineNumberExclusive+E))),(w>0||E>0)&&(s[h]=new Zy(new Ur(f.original.startLineNumber-w,f.original.endLineNumberExclusive+E),new Ur(f.modified.startLineNumber-w,f.modified.endLineNumberExclusive+E)))}return s}function rct(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const r=new MHe().compute(new Zq([e],new Re(1,1,1,e.length),!1),new Zq([t],new Re(1,1,1,t.length),!1),n);let o=0;const s=Av.invert(r.diffs,e.length);for(const u of s)u.seq1Range.forEach(d=>{W5e(e.charCodeAt(d))||o++});function a(u){let d=0;for(let h=0;h<e.length;h++)W5e(u.charCodeAt(h))||d++;return d}const l=a(e.length>t.length?e:t);return o/l>.6&&l>10}function Qjn(e){if(e.length===0)return e;e.sort(ug(n=>n.original.startLineNumber,Yy));const t=[e[0]];for(let n=1;n<e.length;n++){const i=t[t.length-1],r=e[n],o=r.original.startLineNumber-i.original.endLineNumberExclusive,s=r.modified.startLineNumber-i.modified.endLineNumberExclusive;if(o>=0&&s>=0&&o+s<=2){t[t.length-1]=i.join(r);continue}t.push(r)}return t}function Zjn(e,t){const n=new NHe(e);return t=t.filter(i=>{const r=n.findLastMonotonous(a=>a.original.startLineNumber<i.original.endLineNumberExclusive)||new Zy(new Ur(1,1),new Ur(1,1)),o=i9(e,a=>a.modified.startLineNumber<i.modified.endLineNumberExclusive);return r!==o}),t}var Xjn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.js"(){sY(),vT(),rr(),Y0(),kh(),Sg(),zUt(),PHe(),BUt(),Dn()}});function $5e(e,t,n){let i=n;return i=oct(e,t,i),i=oct(e,t,i),i=Jjn(e,t,i),i}function oct(e,t,n){if(n.length===0)return n;const i=[];i.push(n[0]);for(let o=1;o<n.length;o++){const s=i[i.length-1];let a=n[o];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){const l=a.seq1Range.start-s.seq1Range.endExclusive;let c;for(c=1;c<=l&&!(e.getElement(a.seq1Range.start-c)!==e.getElement(a.seq1Range.endExclusive-c)||t.getElement(a.seq2Range.start-c)!==t.getElement(a.seq2Range.endExclusive-c));c++);if(c--,c===l){i[i.length-1]=new Av(new Xo(s.seq1Range.start,a.seq1Range.endExclusive-l),new Xo(s.seq2Range.start,a.seq2Range.endExclusive-l));continue}a=a.delta(-c)}i.push(a)}const r=[];for(let o=0;o<i.length-1;o++){const s=i[o+1];let a=i[o];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){const l=s.seq1Range.start-a.seq1Range.endExclusive;let c;for(c=0;c<l&&!(!e.isStronglyEqual(a.seq1Range.start+c,a.seq1Range.endExclusive+c)||!t.isStronglyEqual(a.seq2Range.start+c,a.seq2Range.endExclusive+c));c++);if(c===l){i[o+1]=new Av(new Xo(a.seq1Range.start+l,s.seq1Range.endExclusive),new Xo(a.seq2Range.start+l,s.seq2Range.endExclusive));continue}c>0&&(a=a.delta(c))}r.push(a)}return i.length>0&&r.push(i[i.length-1]),r}function Jjn(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let i=0;i<n.length;i++){const r=i>0?n[i-1]:void 0,o=n[i],s=i+1<n.length?n[i+1]:void 0,a=new Xo(r?r.seq1Range.endExclusive+1:0,s?s.seq1Range.start-1:e.length),l=new Xo(r?r.seq2Range.endExclusive+1:0,s?s.seq2Range.start-1:t.length);o.seq1Range.isEmpty?n[i]=sct(o,e,t,a,l):o.seq2Range.isEmpty&&(n[i]=sct(o.swap(),t,e,l,a).swap())}return n}function sct(e,t,n,i,r){let s=1;for(;e.seq1Range.start-s>=i.start&&e.seq2Range.start-s>=r.start&&n.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let a=0;for(;e.seq1Range.start+a<i.endExclusive&&e.seq2Range.endExclusive+a<r.endExclusive&&n.isStronglyEqual(e.seq2Range.start+a,e.seq2Range.endExclusive+a)&&a<100;)a++;if(s===0&&a===0)return e;let l=0,c=-1;for(let u=-s;u<=a;u++){const d=e.seq2Range.start+u,h=e.seq2Range.endExclusive+u,f=e.seq1Range.start+u,p=t.getBoundaryScore(f)+n.getBoundaryScore(d)+n.getBoundaryScore(h);p>c&&(c=p,l=u)}return e.delta(l)}function ezn(e,t,n){const i=[];for(const r of n){const o=i[i.length-1];if(!o){i.push(r);continue}r.seq1Range.start-o.seq1Range.endExclusive<=2||r.seq2Range.start-o.seq2Range.endExclusive<=2?i[i.length-1]=new Av(o.seq1Range.join(r.seq1Range),o.seq2Range.join(r.seq2Range)):i.push(r)}return i}function tzn(e,t,n){const i=Av.invert(n,e.length),r=[];let o=new wI(0,0);function s(l,c){if(l.offset1<o.offset1||l.offset2<o.offset2)return;const u=e.findWordContaining(l.offset1),d=t.findWordContaining(l.offset2);if(!u||!d)return;let h=new Av(u,d);const f=h.intersect(c);let p=f.seq1Range.length,g=f.seq2Range.length;for(;i.length>0;){const m=i[0];if(!(m.seq1Range.intersects(h.seq1Range)||m.seq2Range.intersects(h.seq2Range)))break;const y=e.findWordContaining(m.seq1Range.start),b=t.findWordContaining(m.seq2Range.start),w=new Av(y,b),E=w.intersect(m);if(p+=E.seq1Range.length,g+=E.seq2Range.length,h=h.join(w),h.seq1Range.endExclusive>=m.seq1Range.endExclusive)i.shift();else break}p+g<(h.seq1Range.length+h.seq2Range.length)*2/3&&r.push(h),o=h.getEndExclusives()}for(;i.length>0;){const l=i.shift();l.seq1Range.isEmpty||(s(l.getStarts(),l),s(l.getEndExclusives().delta(-1),l))}return nzn(n,r)}function nzn(e,t){const n=[];for(;e.length>0||t.length>0;){const i=e[0],r=t[0];let o;i&&(!r||i.seq1Range.start<r.seq1Range.start)?o=e.shift():o=t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=o.seq1Range.start?n[n.length-1]=n[n.length-1].join(o):n.push(o)}return n}function izn(e,t,n){let i=n;if(i.length===0)return i;let r=0,o;do{o=!1;const s=[i[0]];for(let a=1;a<i.length;a++){let l=function(h,f){const p=new Xo(u.seq1Range.endExclusive,c.seq1Range.start);return e.getText(p).replace(/\s/g,"").length<=4&&(h.seq1Range.length+h.seq2Range.length>5||f.seq1Range.length+f.seq2Range.length>5)};const c=i[a],u=s[s.length-1];l(u,c)?(o=!0,s[s.length-1]=s[s.length-1].join(c)):s.push(c)}i=s}while(r++<10&&o);return i}function rzn(e,t,n){let i=n;if(i.length===0)return i;let r=0,o;do{o=!1;const a=[i[0]];for(let l=1;l<i.length;l++){let c=function(f,p){const g=new Xo(d.seq1Range.endExclusive,u.seq1Range.start);if(e.countLinesIn(g)>5||g.length>500)return!1;const v=e.getText(g).trim();if(v.length>20||v.split(/\r\n|\r|\n/).length>1)return!1;const y=e.countLinesIn(f.seq1Range),b=f.seq1Range.length,w=t.countLinesIn(f.seq2Range),E=f.seq2Range.length,A=e.countLinesIn(p.seq1Range),D=p.seq1Range.length,T=t.countLinesIn(p.seq2Range),M=p.seq2Range.length,P=130;function F(N){return Math.min(N,P)}return Math.pow(Math.pow(F(y*40+b),1.5)+Math.pow(F(w*40+E),1.5),1.5)+Math.pow(Math.pow(F(A*40+D),1.5)+Math.pow(F(T*40+M),1.5),1.5)>(P**1.5)**1.5*1.3};const u=i[l],d=a[a.length-1];c(d,u)?(o=!0,a[a.length-1]=a[a.length-1].join(u)):a.push(u)}i=a}while(r++<10&&o);const s=[];return T7n(i,(a,l,c)=>{let u=l;function d(v){return v.length>0&&v.trim().length<=3&&l.seq1Range.length+l.seq2Range.length>100}const h=e.extendToFullLines(l.seq1Range),f=e.getText(new Xo(h.start,l.seq1Range.start));d(f)&&(u=u.deltaStart(-f.length));const p=e.getText(new Xo(l.seq1Range.endExclusive,h.endExclusive));d(p)&&(u=u.deltaEnd(p.length));const g=Av.fromOffsetPairs(a?a.getEndExclusives():wI.zero,c?c.getStarts():wI.max),m=u.intersect(g);s.length>0&&m.getStarts().equals(s[s.length-1].getEndExclusives())?s[s.length-1]=s[s.length-1].join(m):s.push(m)}),s}var VUt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js"(){rr(),K0(),sY()}});function act(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===32||e.charCodeAt(t)===9);)t++;return t}var q5e,ozn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.js"(){q5e=class{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){const t=e===0?0:act(this.lines[e-1]),n=e===this.lines.length?0:act(this.lines[e]);return 1e3-(t+n)}getText(e){return this.lines.slice(e.start,e.endExclusive).join(`
`)}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}}});function lct(e,t,n,i=!1){const r=[];for(const o of mHe(e.map(s=>szn(s,t,n)),(s,a)=>s.original.overlapOrTouch(a.original)||s.modified.overlapOrTouch(a.modified))){const s=o[0],a=o[o.length-1];r.push(new CC(s.original.join(a.original),s.modified.join(a.modified),o.map(l=>l.innerChanges[0])))}return YR(()=>!i&&r.length>0&&(r[0].modified.startLineNumber!==r[0].original.startLineNumber||n.length-r[r.length-1].modified.endLineNumberExclusive!==t.length-r[r.length-1].original.endLineNumberExclusive)?!1:Z3e(r,(o,s)=>s.original.startLineNumber-o.original.endLineNumberExclusive===s.modified.startLineNumber-o.modified.endLineNumberExclusive&&o.original.endLineNumberExclusive<s.original.startLineNumber&&o.modified.endLineNumberExclusive<s.modified.startLineNumber)),r}function szn(e,t,n){let i=0,r=0;e.modifiedRange.endColumn===1&&e.originalRange.endColumn===1&&e.originalRange.startLineNumber+i<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+i<=e.modifiedRange.endLineNumber&&(r=-1),e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(i=1);const o=new Ur(e.originalRange.startLineNumber+i,e.originalRange.endLineNumber+1+r),s=new Ur(e.modifiedRange.startLineNumber+i,e.modifiedRange.endLineNumber+1+r);return new CC(o,s,[e])}function azn(e){return new Zy(new Ur(e.seq1Range.start+1,e.seq1Range.endExclusive+1),new Ur(e.seq2Range.start+1,e.seq2Range.endExclusive+1))}var OHe,HUt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js"(){rr(),zC(),Sg(),K0(),Dn(),sY(),$jn(),BUt(),Xjn(),VUt(),ozn(),zUt(),IHe(),vT(),OHe=class{constructor(){this.dynamicProgrammingDiffing=new FUt,this.myersDiffingAlgorithm=new MHe}computeDiff(e,t,n){if(e.length<=1&&vl(e,t,(w,E)=>w===E))return new $U([],[],!1);if(e.length===1&&e[0].length===0||t.length===1&&t[0].length===0)return new $U([new CC(new Ur(1,e.length+1),new Ur(1,t.length+1),[new Dy(new Re(1,1,e.length,e[e.length-1].length+1),new Re(1,1,t.length,t[t.length-1].length+1))])],[],!1);const i=n.maxComputationTimeMs===0?nge.instance:new RUt(n.maxComputationTimeMs),r=!n.ignoreTrimWhitespace,o=new Map;function s(w){let E=o.get(w);return E===void 0&&(E=o.size,o.set(w,E)),E}const a=e.map(w=>s(w.trim())),l=t.map(w=>s(w.trim())),c=new q5e(a,e),u=new q5e(l,t),d=c.length+u.length<1700?this.dynamicProgrammingDiffing.compute(c,u,i,(w,E)=>e[w]===t[E]?t[E].length===0?.1:1+Math.log(1+t[E].length):.99):this.myersDiffingAlgorithm.compute(c,u,i);let h=d.diffs,f=d.hitTimeout;h=$5e(c,u,h),h=izn(c,u,h);const p=[],g=w=>{if(r)for(let E=0;E<w;E++){const A=m+E,D=v+E;if(e[A]!==t[D]){const T=this.refineDiff(e,t,new Av(new Xo(A,A+1),new Xo(D,D+1)),i,r);for(const M of T.mappings)p.push(M);T.hitTimeout&&(f=!0)}}};let m=0,v=0;for(const w of h){YR(()=>w.seq1Range.start-m===w.seq2Range.start-v);const E=w.seq1Range.start-m;g(E),m=w.seq1Range.endExclusive,v=w.seq2Range.endExclusive;const A=this.refineDiff(e,t,w,i,r);A.hitTimeout&&(f=!0);for(const D of A.mappings)p.push(D)}g(e.length-m);const y=lct(p,e,t);let b=[];return n.computeMoves&&(b=this.computeMoves(y,e,t,a,l,i,r)),YR(()=>{function w(A,D){if(A.lineNumber<1||A.lineNumber>D.length)return!1;const T=D[A.lineNumber-1];return!(A.column<1||A.column>T.length+1)}function E(A,D){return!(A.startLineNumber<1||A.startLineNumber>D.length+1||A.endLineNumberExclusive<1||A.endLineNumberExclusive>D.length+1)}for(const A of y){if(!A.innerChanges)return!1;for(const D of A.innerChanges)if(!(w(D.modifiedRange.getStartPosition(),t)&&w(D.modifiedRange.getEndPosition(),t)&&w(D.originalRange.getStartPosition(),e)&&w(D.originalRange.getEndPosition(),e)))return!1;if(!E(A.modified,t)||!E(A.original,e))return!1}return!0}),new $U(y,b,f)}computeMoves(e,t,n,i,r,o,s){return qjn(e,t,n,i,r,o).map(c=>{const u=this.refineDiff(t,n,new Av(c.original.toOffsetRange(),c.modified.toOffsetRange()),o,s),d=lct(u.mappings,t,n,!0);return new kHe(c,d)})}refineDiff(e,t,n,i,r){const s=azn(n).toRangeMapping2(e,t),a=new Zq(e,s.originalRange,r),l=new Zq(t,s.modifiedRange,r),c=a.length+l.length<500?this.dynamicProgrammingDiffing.compute(a,l,i):this.myersDiffingAlgorithm.compute(a,l,i);let u=c.diffs;return u=$5e(a,l,u),u=tzn(a,l,u),u=ezn(a,l,u),u=rzn(a,l,u),{mappings:u.map(h=>new Dy(a.translateRange(h.seq1Range),l.translateRange(h.seq2Range))),hitTimeout:c.hitTimeout}}}}}),G5e,lzn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/diff/linesDiffComputers.js"(){Ujn(),HUt(),G5e={getLegacy:()=>new PUt,getDefault:()=>new OHe}}});function WUt(e){const t=[];for(const n of e){const i=Number(n);(i||i===0&&n.replace(/\s/g,"")!=="")&&t.push(i)}return t}function RHe(e,t,n,i){return{red:e/255,blue:n/255,green:t/255,alpha:i}}function Hz(e,t){const n=t.index,i=t[0].length;if(!n)return;const r=e.positionAt(n);return{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:r.lineNumber,endColumn:r.column+i}}function czn(e,t){if(!e)return;const n=rn.Format.CSS.parseHex(t);if(n)return{range:e,color:RHe(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function cct(e,t,n){if(!e||t.length!==1)return;const r=t[0].values(),o=WUt(r);return{range:e,color:RHe(o[0],o[1],o[2],n?o[3]:1)}}function uct(e,t,n){if(!e||t.length!==1)return;const r=t[0].values(),o=WUt(r),s=new rn(new Kk(o[0],o[1]/100,o[2]/100,n?o[3]:1));return{range:e,color:RHe(s.rgba.r,s.rgba.g,s.rgba.b,s.rgba.a)}}function Wz(e,t){return typeof e=="string"?[...e.matchAll(t)]:e.findMatches(t)}function uzn(e){const t=[],i=Wz(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(i.length>0)for(const r of i){const o=r.filter(c=>c!==void 0),s=o[1],a=o[2];if(!a)continue;let l;if(s==="rgb"){const c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;l=cct(Hz(e,r),Wz(a,c),!1)}else if(s==="rgba"){const c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=cct(Hz(e,r),Wz(a,c),!0)}else if(s==="hsl"){const c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;l=uct(Hz(e,r),Wz(a,c),!1)}else if(s==="hsla"){const c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=uct(Hz(e,r),Wz(a,c),!0)}else s==="#"&&(l=czn(Hz(e,r),s+a));l&&t.push(l)}return t}function dzn(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:uzn(e)}var hzn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages/defaultDocumentColorsComputer.js"(){ql()}});function fzn(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const i=pzn(e,t);n=n.concat(i)}if(t.findMarkSectionHeaders){const i=gzn(e);n=n.concat(i)}return n}function pzn(e,t){const n=[],i=e.getLineCount();for(let r=1;r<=i;r++){const o=e.getLineContent(r),s=o.match(t.foldingRules.markers.start);if(s){const a={startLineNumber:r,startColumn:s[0].length+1,endLineNumber:r,endColumn:o.length+1};if(a.endColumn>a.startColumn){const l={range:a,...UUt(o.substring(s[0].length)),shouldBeInComments:!1};(l.text||l.hasSeparatorLine)&&n.push(l)}}}return n}function gzn(e){const t=[],n=e.getLineCount();for(let i=1;i<=n;i++){const r=e.getLineContent(i);mzn(r,i,t)}return t}function mzn(e,t,n){K5e.lastIndex=0;const i=K5e.exec(e);if(i){const r=i.indices[1][0]+1,o=i.indices[1][1]+1,s={startLineNumber:t,startColumn:r,endLineNumber:t,endColumn:o};if(s.endColumn>s.startColumn){const a={range:s,...UUt(i[1]),shouldBeInComments:!0};(a.text||a.hasSeparatorLine)&&n.push(a)}}}function UUt(e){e=e.trim();const t=e.startsWith("-");return e=e.replace($Ut,""),{text:e,hasSeparatorLine:t}}var K5e,$Ut,vzn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js"(){K5e=new RegExp("\\bMARK:\\s*(.*)$","d"),$Ut=/^-+|-+$/g}}),qUt,GUt,b1e,KUt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/prefixSumComputer.js"(){rr(),Zpe(),qUt=class{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=I5(e);const n=this.values,i=this.prefixSum,r=t.length;return r===0?!1:(this.values=new Uint32Array(n.length+r),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+r),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=I5(e),t=I5(t),this.values[e]===t?!1:(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=I5(e),t=I5(t);const n=this.values,i=this.prefixSum;if(e>=n.length)return!1;const r=n.length-e;return t>=r&&(t=r),t===0?!1:(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=I5(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;t===0&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,i=0,r=0,o=0;for(;t<=n;)if(i=t+(n-t)/2|0,r=this.prefixSum[i],o=r-this.values[i],e<o)n=i-1;else if(e>=r)t=i+1;else break;return new b1e(i,e-o)}},GUt=class{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),e===0?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const t=this._indexBySum[e],n=t>0?this._prefixSum[t-1]:0;return new b1e(t,e-n)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=Upe(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e<t;e++){const n=this._values[e],i=e>0?this._prefixSum[e-1]:0;this._prefixSum[e]=i+n;for(let r=0;r<n;r++)this._indexBySum[i+r]=e}this._prefixSum.length=this._values.length,this._indexBySum.length=this._prefixSum[this._prefixSum.length-1],this._isValid=!0,this._validEndIndex=this._values.length-1}}setValue(e,t){this._values[e]!==t&&(this._values[e]=t,this._invalidate(e))}},b1e=class{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}}}),YUt,yzn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/mirrorTextModel.js"(){Ki(),Hi(),KUt(),YUt=class{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new mt(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new qUt(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1));return}this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t){if(t.length===0)return;const n=Zx(t);if(n.length===1){this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));return}n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);const i=new Uint32Array(n.length-1);for(let r=1;r<n.length;r++)this._lines.splice(e.lineNumber+r-1,0,n[r]),i[r-1]=n[r].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}}}}),_1e,QUt,ZUt,dct,XUt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js"(){fr(),Nt(),ss(),Hi(),Dn(),A7(),yzn(),_1e=60*1e3,QUt=class extends St{constructor(e,t,n=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!n){const i=new Mpe;i.cancelAndSet(()=>this._checkStopModelSync(),Math.round(_1e/2)),this._register(i)}}dispose(){for(const e in this._syncedModels)xa(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const n of e){const i=n.toString();this._syncedModels[i]||this._beginModelSync(n,t),this._syncedModels[i]&&(this._syncedModelsLastUsedTime[i]=new Date().getTime())}}_checkStopModelSync(){const e=new Date().getTime(),t=[];for(const n in this._syncedModelsLastUsedTime)e-this._syncedModelsLastUsedTime[n]>_1e&&t.push(n);for(const n of t)this._stopModelSync(n)}_beginModelSync(e,t){const n=this._modelService.getModel(e);if(!n||!t&&n.isTooLargeForSyncing())return;const i=e.toString();this._proxy.$acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});const r=new Jt;r.add(n.onDidChangeContent(o=>{this._proxy.$acceptModelChanged(i.toString(),o)})),r.add(n.onWillDispose(()=>{this._stopModelSync(i)})),r.add(zi(()=>{this._proxy.$acceptRemovedModel(i)})),this._syncedModels[i]=r}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],xa(t)}},ZUt=class{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}$acceptNewModel(e){this._models[e.url]=new dct(Ui.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}},dct=class extends YUt{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const i=this._lines[n],r=this.offsetAt(new mt(n+1,1)),o=i.matchAll(e);for(const s of o)(s.index||s.index===0)&&(s.index=s.index+r),t.push(s)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const n=Wq(e.column,_He(t),this._lines[e.lineNumber-1],0);return n?new Re(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let i=0,r="",o=0,s=[];return{*[Symbol.iterator](){for(;;)if(o<s.length){const a=r.substring(s[o].start,s[o].end);o+=1,yield a}else if(i<t.length)r=t[i],s=n(r,e),o=0,i+=1;else break}}}getLineWords(e,t){const n=this._lines[e-1],i=this._wordenize(n,t),r=[];for(const o of i)r.push({word:n.substring(o.start,o.end),startColumn:o.start+1,endColumn:o.end+1});return r}_wordenize(e,t){const n=[];let i;for(t.lastIndex=0;(i=t.exec(e))&&i[0].length!==0;)n.push({start:i.index,end:i.index+i[0].length});return n}getValueInRange(e){if(e=this._validateRange(e),e.startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,r=[];r.push(this._lines[n].substring(e.startColumn-1));for(let o=n+1;o<i;o++)r.push(this._lines[o]);return r.push(this._lines[i].substring(0,e.endColumn-1)),r.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!mt.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{const r=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>r&&(n=r,i=!0)}return i?{lineNumber:t,column:n}:e}}}}),hct,fct,qH,bzn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js"(){var e;Qpe(),Dn(),Tjn(),kjn(),gpe(),wUt(),_g(),DUt(),lzn(),bm(),Gd(),hzn(),vzn(),XUt(),hct=!0,fct=(e=class{constructor(){this._workerTextModelSyncServer=new ZUt}dispose(){}_getModel(n){return this._workerTextModelSyncServer.getModel(n)}_getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(n){this._workerTextModelSyncServer.$acceptNewModel(n)}$acceptModelChanged(n,i){this._workerTextModelSyncServer.$acceptModelChanged(n,i)}$acceptRemovedModel(n){this._workerTextModelSyncServer.$acceptRemovedModel(n)}async $computeUnicodeHighlights(n,i,r){const o=this._getModel(n);return o?ege.computeUnicodeHighlights(o,i,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(n,i){const r=this._getModel(n);return r?fzn(r,i):[]}async $computeDiff(n,i,r,o){const s=this._getModel(n),a=this._getModel(i);return!s||!a?null:qH.computeDiff(s,a,r,o)}static computeDiff(n,i,r,o){const s=o==="advanced"?G5e.getDefault():G5e.getLegacy(),a=n.getLinesContent(),l=i.getLinesContent(),c=s.computeDiff(a,l,r),u=c.changes.length>0?!1:this._modelsAreIdentical(n,i);function d(h){return h.map(f=>[f.original.startLineNumber,f.original.endLineNumberExclusive,f.modified.startLineNumber,f.modified.endLineNumberExclusive,f.innerChanges?.map(p=>[p.originalRange.startLineNumber,p.originalRange.startColumn,p.originalRange.endLineNumber,p.originalRange.endColumn,p.modifiedRange.startLineNumber,p.modifiedRange.startColumn,p.modifiedRange.endLineNumber,p.modifiedRange.endColumn])])}return{identical:u,quitEarly:c.hitTimeout,changes:d(c.changes),moves:c.moves.map(h=>[h.lineRangeMapping.original.startLineNumber,h.lineRangeMapping.original.endLineNumberExclusive,h.lineRangeMapping.modified.startLineNumber,h.lineRangeMapping.modified.endLineNumberExclusive,d(h.changes)])}}static _modelsAreIdentical(n,i){const r=n.getLineCount(),o=i.getLineCount();if(r!==o)return!1;for(let s=1;s<=r;s++){const a=n.getLineContent(s),l=i.getLineContent(s);if(a!==l)return!1}return!0}async $computeMoreMinimalEdits(n,i,r){const o=this._getModel(n);if(!o)return i;const s=[];let a;i=i.slice(0).sort((c,u)=>{if(c.range&&u.range)return Re.compareRangesUsingStarts(c.range,u.range);const d=c.range?0:1,h=u.range?0:1;return d-h});let l=0;for(let c=1;c<i.length;c++)Re.getEndPosition(i[l].range).equals(Re.getStartPosition(i[c].range))?(i[l].range=Re.fromPositions(Re.getStartPosition(i[l].range),Re.getEndPosition(i[c].range)),i[l].text+=i[c].text):(l++,i[l]=i[c]);i.length=l+1;for(let{range:c,text:u,eol:d}of i){if(typeof d=="number"&&(a=d),Re.isEmpty(c)&&!u)continue;const h=o.getValueInRange(c);if(u=u.replace(/\r\n|\n|\r/g,o.eol),h===u)continue;if(Math.max(u.length,h.length)>qH._diffLimit){s.push({range:c,text:u});continue}const f=xjn(h,u,r),p=o.offsetAt(Re.lift(c).getStartPosition());for(const g of f){const m=o.positionAt(p+g.originalStart),v=o.positionAt(p+g.originalStart+g.originalLength),y={text:u.substr(g.modifiedStart,g.modifiedLength),range:{startLineNumber:m.lineNumber,startColumn:m.column,endLineNumber:v.lineNumber,endColumn:v.column}};o.getValueInRange(y.range)!==y.text&&s.push(y)}}return typeof a=="number"&&s.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async $computeLinks(n){const i=this._getModel(n);return i?Djn(i):null}async $computeDefaultDocumentColors(n){const i=this._getModel(n);return i?dzn(i):null}async $textualSuggest(n,i,r,o){const s=new Ah,a=new RegExp(r,o),l=new Set;e:for(const c of n){const u=this._getModel(c);if(u){for(const d of u.words(a))if(!(d===i||!isNaN(Number(d)))&&(l.add(d),l.size>qH._suggestionsLimit))break e}}return{words:Array.from(l),duration:s.elapsed()}}async $computeWordRanges(n,i,r,o){const s=this._getModel(n);if(!s)return Object.create(null);const a=new RegExp(r,o),l=Object.create(null);for(let c=i.startLineNumber;c<i.endLineNumber;c++){const u=s.getLineWords(c,a);for(const d of u){if(!isNaN(Number(d.word)))continue;let h=l[d.word];h||(h=[],l[d.word]=h),h.push({startLineNumber:c,startColumn:d.startColumn,endLineNumber:c,endColumn:d.endColumn})}}return l}async $navigateValueSet(n,i,r,o,s){const a=this._getModel(n);if(!a)return null;const l=new RegExp(o,s);i.startColumn===i.endColumn&&(i={startLineNumber:i.startLineNumber,startColumn:i.startColumn,endLineNumber:i.endLineNumber,endColumn:i.endColumn+1});const c=a.getValueInRange(i),u=a.getWordAtPosition({lineNumber:i.startLineNumber,column:i.startColumn},l);if(!u)return null;const d=a.getValueInRange(u);return bUt.INSTANCE.navigateValueSet(i,c,u,d,r)}},e._diffLimit=1e5,e._suggestionsLimit=1e4,e),qH=class extends fct{constructor(t,n){super(),this._host=t,this._foreignModuleFactory=n,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(t,n,i){const s={host:P7n(i,(a,l)=>this._host.$fhr(a,l)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(s,n),Promise.resolve(_5e(this._foreignModule))):new Promise((a,l)=>{const c=u=>{this._foreignModule=u.create(s,n),a(_5e(this._foreignModule))};if(!hct)aVe([`${t}`],c,l);else{const u=GK.asBrowserUri(`${t}.js`).toString(!0);gMn(()=>import(`${u}`),void 0,import.meta.url).then(c).catch(l)}})}$fmr(t,n){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,n))}catch(i){return Promise.reject(i)}}},typeof importScripts=="function"&&(globalThis.monaco=z7t())}}),Xq,FHe,ige=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js"(){li(),Xq=Ao("textResourceConfigurationService"),FHe=Ao("textResourcePropertiesService")}}),gi,Eo=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"(){li(),gi=Ao("ILanguageFeaturesService")}});function zP(e,t){const n=e.getModel(t);return!(!n||n.isTooLargeForSyncing())}var wJ,vk,w1e,sse,pct,CJ,gct,GH,JUt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/services/editorWorkerService.js"(){fr(),Nt(),XWt(),ojn(),Dn(),lu(),bzn(),Kf(),ige(),rr(),wm(),_g(),Vi(),Eo(),IHe(),vT(),Sg(),wg(),Fn(),XUt(),wUt(),wJ=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},vk=function(e,t){return function(n,i){t(n,i,e)}},w1e=300*1e3,sse=class extends St{constructor(t,n,i,r,o,s){super(),this._languageConfigurationService=o,this._modelService=n,this._workerManager=this._register(new CJ(t,this._modelService)),this._logService=r,this._register(s.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:async(a,l)=>{if(!zP(this._modelService,a.uri))return Promise.resolve({links:[]});const u=await(await this._workerWithResources([a.uri])).$computeLinks(a.uri.toString());return u&&{links:u}}})),this._register(s.completionProvider.register("*",new pct(this._workerManager,i,this._modelService,this._languageConfigurationService)))}dispose(){super.dispose()}canComputeUnicodeHighlights(t){return zP(this._modelService,t)}async computedUnicodeHighlights(t,n,i){return(await this._workerWithResources([t])).$computeUnicodeHighlights(t.toString(),n,i)}async computeDiff(t,n,i,r){const s=await(await this._workerWithResources([t,n],!0)).$computeDiff(t.toString(),n.toString(),i,r);if(!s)return null;return{identical:s.identical,quitEarly:s.quitEarly,changes:l(s.changes),moves:s.moves.map(c=>new kHe(new Zy(new Ur(c[0],c[1]),new Ur(c[2],c[3])),l(c[4])))};function l(c){return c.map(u=>new CC(new Ur(u[0],u[1]),new Ur(u[2],u[3]),u[4]?.map(d=>new Dy(new Re(d[0],d[1],d[2],d[3]),new Re(d[4],d[5],d[6],d[7])))))}}async computeMoreMinimalEdits(t,n,i=!1){if(Sp(n)){if(!zP(this._modelService,t))return Promise.resolve(n);const r=Ah.create(),o=this._workerWithResources([t]).then(s=>s.$computeMoreMinimalEdits(t.toString(),n,i));return o.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",t.toString(!0),r.elapsed())),Promise.race([o,FD(1e3).then(()=>n)])}else return Promise.resolve(void 0)}canNavigateValueSet(t){return zP(this._modelService,t)}async navigateValueSet(t,n,i){const r=this._modelService.getModel(t);if(!r)return null;const o=this._languageConfigurationService.getLanguageConfiguration(r.getLanguageId()).getWordDefinition(),s=o.source,a=o.flags;return(await this._workerWithResources([t])).$navigateValueSet(t.toString(),n,i,s,a)}canComputeWordRanges(t){return zP(this._modelService,t)}async computeWordRanges(t,n){const i=this._modelService.getModel(t);if(!i)return Promise.resolve(null);const r=this._languageConfigurationService.getLanguageConfiguration(i.getLanguageId()).getWordDefinition(),o=r.source,s=r.flags;return(await this._workerWithResources([t])).$computeWordRanges(t.toString(),n,o,s)}async findSectionHeaders(t,n){return(await this._workerWithResources([t])).$findSectionHeaders(t.toString(),n)}async computeDefaultDocumentColors(t){return(await this._workerWithResources([t])).$computeDefaultDocumentColors(t.toString())}async _workerWithResources(t,n=!1){return await(await this._workerManager.withWorker()).workerWithSyncedResources(t,n)}},sse=wJ([vk(1,Ua),vk(2,Xq),vk(3,bh),vk(4,yl),vk(5,gi)],sse),pct=class{constructor(e,t,n,i){this.languageConfigurationService=i,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=n}async provideCompletionItems(e,t){const n=this._configurationService.getValue(e.uri,t,"editor");if(n.wordBasedSuggestions==="off")return;const i=[];if(n.wordBasedSuggestions==="currentDocument")zP(this._modelService,e.uri)&&i.push(e.uri);else for(const u of this._modelService.getModels())zP(this._modelService,u.uri)&&(u===e?i.unshift(u.uri):(n.wordBasedSuggestions==="allDocuments"||u.getLanguageId()===e.getLanguageId())&&i.push(u.uri));if(i.length===0)return;const r=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),o=e.getWordAtPosition(t),s=o?new Re(t.lineNumber,o.startColumn,t.lineNumber,o.endColumn):Re.fromPositions(t),a=s.setEndPosition(t.lineNumber,t.column),c=await(await this._workerManager.withWorker()).textualSuggest(i,o?.word,r);if(c)return{duration:c.duration,suggestions:c.words.map(u=>({kind:18,label:u,insertText:u,range:{insert:a,replace:s}}))}}},CJ=class extends St{constructor(t,n){super(),this._workerDescriptor=t,this._modelService=n,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new jpe).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(w1e/2),la),this._register(this._modelService.onModelRemoved(r=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;this._modelService.getModels().length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;new Date().getTime()-this._lastWorkerUsedTime>w1e&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new GH(this._workerDescriptor,!1,this._modelService)),Promise.resolve(this._editorWorkerClient)}},CJ=wJ([vk(1,Ua)],CJ),gct=class{constructor(e){this._instance=e,this.proxy=this._instance}dispose(){this._instance.dispose()}setChannel(e,t){throw new Error("Not supported")}},GH=class extends St{constructor(t,n,i){super(),this._workerDescriptor=t,this._disposed=!1,this._modelService=i,this._keepIdleModels=n,this._worker=null,this._modelManager=null}fhr(t,n){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(rjn(this._workerDescriptor)),_Ut.setChannel(this._worker,this._createEditorWorkerHost())}catch(t){P5e(t),this._worker=this._createFallbackLocalWorker()}return this._worker}async _getProxy(){try{const t=this._getOrCreateWorker().proxy;return await t.$ping(),t}catch(t){return P5e(t),this._worker=this._createFallbackLocalWorker(),this._worker.proxy}}_createFallbackLocalWorker(){return new gct(new qH(this._createEditorWorkerHost(),null))}_createEditorWorkerHost(){return{$fhr:(t,n)=>this.fhr(t,n)}}_getOrCreateModelManager(t){return this._modelManager||(this._modelManager=this._register(new QUt(t,this._modelService,this._keepIdleModels))),this._modelManager}async workerWithSyncedResources(t,n=!1){if(this._disposed)return Promise.reject(x2n());const i=await this._getProxy();return this._getOrCreateModelManager(i).ensureSyncedResources(t,n),i}async textualSuggest(t,n,i){const r=await this.workerWithSyncedResources(t),o=i.source,s=i.flags;return r.$textualSuggest(t.map(a=>a.toString()),n,o,s)}dispose(){super.dispose(),this._disposed=!0}},GH=wJ([vk(2,Ua)],GH)}});function ec(e){return{id:e}}function Y5e(e){switch(e){case Wy.DARK:return"vs-dark";case Wy.HIGH_CONTRAST_DARK:return"hc-black";case Wy.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}function Ab(e){return Z5e.onColorThemeChange(e)}var Ru,Q5e,mct,Z5e,e$t,Ys=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js"(){Un(),Nt(),li(),Fu(),VC(),Ru=Ao("themeService"),Q5e={ThemingContribution:"base.contributions.theming"},mct=class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new bt}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),zi(()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)})}getThemingParticipants(){return this.themingParticipants}},Z5e=new mct,ml.add(Q5e.ThemingContribution,Z5e),e$t=class extends St{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(t=>this.onThemeChange(t)))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}}}),vct,yct,ase,_zn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/services/abstractCodeEditorService.js"(){Un(),Nt(),_b(),Ys(),vct=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},yct=function(e,t){return function(n,i){t(n,i,e)}},ase=class extends St{constructor(t){super(),this._themeService=t,this._onWillCreateCodeEditor=this._register(new bt),this._onCodeEditorAdd=this._register(new bt),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new bt),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onWillCreateDiffEditor=this._register(new bt),this._onDiffEditorAdd=this._register(new bt),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new bt),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new yp,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}willCreateCodeEditor(){this._onWillCreateCodeEditor.fire()}addCodeEditor(t){this._codeEditors[t.getId()]=t,this._onCodeEditorAdd.fire(t)}removeCodeEditor(t){delete this._codeEditors[t.getId()]&&this._onCodeEditorRemove.fire(t)}listCodeEditors(){return Object.keys(this._codeEditors).map(t=>this._codeEditors[t])}willCreateDiffEditor(){this._onWillCreateDiffEditor.fire()}addDiffEditor(t){this._diffEditors[t.getId()]=t,this._onDiffEditorAdd.fire(t)}listDiffEditors(){return Object.keys(this._diffEditors).map(t=>this._diffEditors[t])}getFocusedCodeEditor(){let t=null;const n=this.listCodeEditors();for(const i of n){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(t=i)}return t}removeDecorationType(t){const n=this._decorationOptionProviders.get(t);n&&(n.refCount--,n.refCount<=0&&(this._decorationOptionProviders.delete(t),n.dispose(),this.listCodeEditors().forEach(i=>i.removeDecorationsByType(t))))}setModelProperty(t,n,i){const r=t.toString();let o;this._modelProperties.has(r)?o=this._modelProperties.get(r):(o=new Map,this._modelProperties.set(r,o)),o.set(n,i)}getModelProperty(t,n){const i=t.toString();if(this._modelProperties.has(i))return this._modelProperties.get(i).get(n)}async openCodeEditor(t,n,i){for(const r of this._codeEditorOpenHandlers){const o=await r(t,n,i);if(o!==null)return o}return null}registerCodeEditorOpenHandler(t){const n=this._codeEditorOpenHandlers.unshift(t);return zi(n)}},ase=vct([yct(0,Ru)],ase)}}),bct,C1e,KH,t$t=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/standaloneCodeEditorService.js"(){Fn(),Gd(),_zn(),Ec(),er(),vf(),Ys(),bct=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},C1e=function(e,t){return function(n,i){t(n,i,e)}},KH=class extends ase{constructor(t,n){super(n),this._register(this.onCodeEditorAdd(()=>this._checkContextKey())),this._register(this.onCodeEditorRemove(()=>this._checkContextKey())),this._editorIsOpen=t.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this._register(this.registerCodeEditorOpenHandler(async(i,r,o)=>r?this.doOpenEditor(r,i):null))}_checkContextKey(){let t=!1;for(const n of this.listCodeEditors())if(!n.isSimpleWidget){t=!0;break}this._editorIsOpen.set(t)}setActiveCodeEditor(t){this._activeCodeEditor=t}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(t,n){if(!this.findModel(t,n.resource)){if(n.resource){const o=n.resource.scheme;if(o===Pr.http||o===Pr.https)return i3t(n.resource.toString()),t}return null}const r=n.options?n.options.selection:null;if(r)if(typeof r.endLineNumber=="number"&&typeof r.endColumn=="number")t.setSelection(r),t.revealRangeInCenter(r,1);else{const o={lineNumber:r.startLineNumber,column:r.startColumn};t.setPosition(o),t.revealPositionInCenter(o,1)}return t}findModel(t,n){const i=t.getModel();return i&&i.uri.toString()!==n.toString()?null:i}},KH=bct([C1e(0,ur),C1e(1,Ru)],KH),Oo(Jo,KH,0)}}),yT,LN=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/layout/browser/layoutService.js"(){li(),yT=Ao("layoutService")}}),S1e,x1e,Uz,lse,n$t=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/standaloneLayoutService.js"(){Fn(),wg(),rr(),Un(),Ec(),vf(),LN(),S1e=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},x1e=function(e,t){return function(n,i){t(n,i,e)}},Uz=class{get mainContainer(){return vHe(this._codeEditorService.listCodeEditors())?.getContainerDomNode()??la.document.body}get activeContainer(){return(this._codeEditorService.getFocusedCodeEditor()??this._codeEditorService.getActiveCodeEditor())?.getContainerDomNode()??this.mainContainer}get mainContainerDimension(){return LL(this.mainContainer)}get activeContainerDimension(){return LL(this.activeContainer)}get containers(){return ew(this._codeEditorService.listCodeEditors().map(t=>t.getContainerDomNode()))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){this._codeEditorService.getFocusedCodeEditor()?.focus()}constructor(t){this._codeEditorService=t,this.onDidLayoutMainContainer=On.None,this.onDidLayoutActiveContainer=On.None,this.onDidLayoutContainer=On.None,this.onDidChangeActiveContainer=On.None,this.onDidAddContainer=On.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}},Uz=S1e([x1e(0,Jo)],Uz),lse=class extends Uz{get mainContainer(){return this._container}constructor(t,n){super(n),this._container=t}},lse=S1e([x1e(1,Jo)],lse),Oo(yT,Uz,1)}}),$z,yc,NN=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/severity.js"(){Ki(),(function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"})($z||($z={})),(function(e){const t="error",n="warning",i="warn",r="info",o="ignore";function s(l){return l?t6(t,l)?e.Error:t6(n,l)||t6(i,l)?e.Warning:t6(r,l)?e.Info:e.Ignore:e.Ignore}e.fromValue=s;function a(l){switch(l){case e.Error:return t;case e.Warning:return n;case e.Info:return r;default:return o}}e.toString=a})($z||($z={})),yc=$z}}),T7,aY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/dialogs/common/dialogs.js"(){li(),T7=Ao("dialogService")}}),lY,Cc,i$t,yf=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/notification/common/notification.js"(){NN(),li(),lY=yc,Cc=Ao("notificationService"),i$t=class{}}}),rge,X5e,r$t,IB,BHe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/undoRedo/common/undoRedo.js"(){var e,t;li(),rge=Ao("undoRedoService"),X5e=class{constructor(n,i){this.resource=n,this.elements=i}},r$t=(e=class{constructor(){this.id=e._ID++,this.order=1}nextOrder(){return this.id===0?0:this.order++}},e._ID=0,e.None=new e,e),IB=(t=class{constructor(){this.id=t._ID++,this.order=1}nextOrder(){return this.id===0?0:this.order++}},t._ID=0,t.None=new t,t)}});function SJ(e){return e.scheme===Pr.file?e.fsPath:e.path}var _ct,E1e,VP,A1e,qz,D1e,T1e,wct,k1e,xJ,I1e,EJ,Gz,wzn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/undoRedo/common/undoRedoService.js"(){Vi(),Nt(),Gd(),NN(),bn(),aY(),vf(),yf(),BHe(),_ct=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},E1e=function(e,t){return function(n,i){t(n,i,e)}},VP=!1,A1e=0,qz=class{constructor(e,t,n,i,r,o,s){this.id=++A1e,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=n,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=i,this.groupOrder=r,this.sourceId=o,this.sourceOrder=s,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?"  VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}},D1e=class{constructor(e,t){this.resourceLabel=e,this.reason=t}},T1e=class{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,i]of this.elements)(i.reason===0?e:t).push(i.resourceLabel);const n=[];return e.length>0&&n.push(R({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&n.push(R({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),n.join(`
`)}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}},wct=class{constructor(e,t,n,i,r,o,s){this.id=++A1e,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=n,this.groupId=i,this.groupOrder=r,this.sourceId=o,this.sourceOrder=s,this.removedResources=null,this.invalidatedResources=null}canSplit(){return typeof this.actual.split=="function"}removeResource(e,t,n){this.removedResources||(this.removedResources=new T1e),this.removedResources.has(t)||this.removedResources.set(t,new D1e(e,n))}setValid(e,t,n){n?this.invalidatedResources&&(this.invalidatedResources.delete(t),this.invalidatedResources.size===0&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new T1e),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new D1e(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":"  VALID"}] ${this.actual.constructor.name} - ${this.actual}`}},k1e=class{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){const e=[];e.push(`* ${this.strResource}:`);for(let t=0;t<this._past.length;t++)e.push(`   * [UNDO] ${this._past[t]}`);for(let t=this._future.length-1;t>=0;t--)e.push(`   * [REDO] ${this._future[t]}`);return e.join(`
`)}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){e.type===1?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const n of this._past)t(n.actual)&&this._setElementValidFlag(n,e);for(const n of this._future)t(n.actual)&&this._setElementValidFlag(n,e)}pushElement(e){for(const t of this._future)t.type===1&&t.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let n=0,i=this._past.length;n<i;n++)t.push(this._past[n].id);for(let n=this._future.length-1;n>=0;n--)t.push(this._future[n].id);return new X5e(e,t)}restoreSnapshot(e){const t=e.elements.length;let n=!0,i=0,r=-1;for(let s=0,a=this._past.length;s<a;s++,i++){const l=this._past[s];n&&(i>=t||l.id!==e.elements[i])&&(n=!1,r=0),!n&&l.type===1&&l.removeResource(this.resourceLabel,this.strResource,0)}let o=-1;for(let s=this._future.length-1;s>=0;s--,i++){const a=this._future[s];n&&(i>=t||a.id!==e.elements[i])&&(n=!1,o=s),!n&&a.type===1&&a.removeResource(this.resourceLabel,this.strResource,0)}r!==-1&&(this._past=this._past.slice(0,r)),o!==-1&&(this._future=this._future.slice(o+1)),this.versionId++}getElements(){const e=[],t=[];for(const n of this._past)e.push(n.actual);for(const n of this._future)t.push(n.actual);return{past:e,future:t}}getClosestPastElement(){return this._past.length===0?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return this._future.length===0?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let n=this._past.length-1;n>=0;n--)if(this._past[n]===e){t.has(this.strResource)?this._past[n]=t.get(this.strResource):this._past.splice(n,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let n=this._future.length-1;n>=0;n--)if(this._future[n]===e){t.has(this.strResource)?this._future[n]=t.get(this.strResource):this._future.splice(n,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}},xJ=class{constructor(e){this.editStacks=e,this._versionIds=[];for(let t=0,n=this.editStacks.length;t<n;t++)this._versionIds[t]=this.editStacks[t].versionId}isValid(){for(let e=0,t=this.editStacks.length;e<t;e++)if(this._versionIds[e]!==this.editStacks[e].versionId)return!1;return!0}},I1e=new k1e("",""),I1e.locked=!0,EJ=class{constructor(t,n){this._dialogService=t,this._notificationService=n,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(t){for(const n of this._uriComparisonKeyComputers)if(n[0]===t.scheme)return n[1].getComparisonKey(t);return t.toString()}_print(t){console.log("------------------------------------"),console.log(`AFTER ${t}: `);const n=[];for(const i of this._editStacks)n.push(i[1].toString());console.log(n.join(`
`))}pushElement(t,n=r$t.None,i=IB.None){if(t.type===0){const r=SJ(t.resource),o=this.getUriComparisonKey(t.resource);this._pushElement(new qz(t,r,o,n.id,n.nextOrder(),i.id,i.nextOrder()))}else{const r=new Set,o=[],s=[];for(const a of t.resources){const l=SJ(a),c=this.getUriComparisonKey(a);r.has(c)||(r.add(c),o.push(l),s.push(c))}o.length===1?this._pushElement(new qz(t,o[0],s[0],n.id,n.nextOrder(),i.id,i.nextOrder())):this._pushElement(new wct(t,o,s,n.id,n.nextOrder(),i.id,i.nextOrder()))}VP&&this._print("pushElement")}_pushElement(t){for(let n=0,i=t.strResources.length;n<i;n++){const r=t.resourceLabels[n],o=t.strResources[n];let s;this._editStacks.has(o)?s=this._editStacks.get(o):(s=new k1e(r,o),this._editStacks.set(o,s)),s.pushElement(t)}}getLastElement(t){const n=this.getUriComparisonKey(t);if(this._editStacks.has(n)){const i=this._editStacks.get(n);if(i.hasFutureElements())return null;const r=i.getClosestPastElement();return r?r.actual:null}return null}_splitPastWorkspaceElement(t,n){const i=t.actual.split(),r=new Map;for(const o of i){const s=SJ(o.resource),a=this.getUriComparisonKey(o.resource),l=new qz(o,s,a,0,0,0,0);r.set(l.strResource,l)}for(const o of t.strResources){if(n&&n.has(o))continue;this._editStacks.get(o).splitPastWorkspaceElement(t,r)}}_splitFutureWorkspaceElement(t,n){const i=t.actual.split(),r=new Map;for(const o of i){const s=SJ(o.resource),a=this.getUriComparisonKey(o.resource),l=new qz(o,s,a,0,0,0,0);r.set(l.strResource,l)}for(const o of t.strResources){if(n&&n.has(o))continue;this._editStacks.get(o).splitFutureWorkspaceElement(t,r)}}removeElements(t){const n=typeof t=="string"?t:this.getUriComparisonKey(t);this._editStacks.has(n)&&(this._editStacks.get(n).dispose(),this._editStacks.delete(n)),VP&&this._print("removeElements")}setElementsValidFlag(t,n,i){const r=this.getUriComparisonKey(t);this._editStacks.has(r)&&this._editStacks.get(r).setElementsValidFlag(n,i),VP&&this._print("setElementsValidFlag")}createSnapshot(t){const n=this.getUriComparisonKey(t);return this._editStacks.has(n)?this._editStacks.get(n).createSnapshot(t):new X5e(t,[])}restoreSnapshot(t){const n=this.getUriComparisonKey(t.resource);if(this._editStacks.has(n)){const i=this._editStacks.get(n);i.restoreSnapshot(t),!i.hasPastElements()&&!i.hasFutureElements()&&(i.dispose(),this._editStacks.delete(n))}VP&&this._print("restoreSnapshot")}getElements(t){const n=this.getUriComparisonKey(t);return this._editStacks.has(n)?this._editStacks.get(n).getElements():{past:[],future:[]}}_findClosestUndoElementWithSource(t){if(!t)return[null,null];let n=null,i=null;for(const[r,o]of this._editStacks){const s=o.getClosestPastElement();s&&s.sourceId===t&&(!n||s.sourceOrder>n.sourceOrder)&&(n=s,i=r)}return[n,i]}canUndo(t){if(t instanceof IB){const[,i]=this._findClosestUndoElementWithSource(t.id);return!!i}const n=this.getUriComparisonKey(t);return this._editStacks.has(n)?this._editStacks.get(n).hasPastElements():!1}_onError(t,n){Mr(t);for(const i of n.strResources)this.removeElements(i);this._notificationService.error(t)}_acquireLocks(t){for(const n of t.editStacks)if(n.locked)throw new Error("Cannot acquire edit stack lock");for(const n of t.editStacks)n.locked=!0;return()=>{for(const n of t.editStacks)n.locked=!1}}_safeInvokeWithLocks(t,n,i,r,o){const s=this._acquireLocks(i);let a;try{a=n()}catch(l){return s(),r.dispose(),this._onError(l,t)}return a?a.then(()=>(s(),r.dispose(),o()),l=>(s(),r.dispose(),this._onError(l,t))):(s(),r.dispose(),o())}async _invokeWorkspacePrepare(t){if(typeof t.actual.prepareUndoRedo>"u")return St.None;const n=t.actual.prepareUndoRedo();return typeof n>"u"?St.None:n}_invokeResourcePrepare(t,n){if(t.actual.type!==1||typeof t.actual.prepareUndoRedo>"u")return n(St.None);const i=t.actual.prepareUndoRedo();return i?dpe(i)?n(i):i.then(r=>n(r)):n(St.None)}_getAffectedEditStacks(t){const n=[];for(const i of t.strResources)n.push(this._editStacks.get(i)||I1e);return new xJ(n)}_tryToSplitAndUndo(t,n,i,r){if(n.canSplit())return this._splitPastWorkspaceElement(n,i),this._notificationService.warn(r),new Gz(this._undo(t,0,!0));for(const o of n.strResources)this.removeElements(o);return this._notificationService.warn(r),new Gz}_checkWorkspaceUndo(t,n,i,r){if(n.removedResources)return this._tryToSplitAndUndo(t,n,n.removedResources,R({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",n.label,n.removedResources.createMessage()));if(r&&n.invalidatedResources)return this._tryToSplitAndUndo(t,n,n.invalidatedResources,R({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",n.label,n.invalidatedResources.createMessage()));const o=[];for(const a of i.editStacks)a.getClosestPastElement()!==n&&o.push(a.resourceLabel);if(o.length>0)return this._tryToSplitAndUndo(t,n,null,R({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",n.label,o.join(", ")));const s=[];for(const a of i.editStacks)a.locked&&s.push(a.resourceLabel);return s.length>0?this._tryToSplitAndUndo(t,n,null,R({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",n.label,s.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(t,n,null,R({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",n.label))}_workspaceUndo(t,n,i){const r=this._getAffectedEditStacks(n),o=this._checkWorkspaceUndo(t,n,r,!1);return o?o.returnValue:this._confirmAndExecuteWorkspaceUndo(t,n,r,i)}_isPartOfUndoGroup(t){if(!t.groupId)return!1;for(const[,n]of this._editStacks){const i=n.getClosestPastElement();if(i){if(i===t){const r=n.getSecondClosestPastElement();if(r&&r.groupId===t.groupId)return!0}if(i.groupId===t.groupId)return!0}}return!1}async _confirmAndExecuteWorkspaceUndo(t,n,i,r){if(n.canSplit()&&!this._isPartOfUndoGroup(n)){let a;(function(u){u[u.All=0]="All",u[u.This=1]="This",u[u.Cancel=2]="Cancel"})(a||(a={}));const{result:l}=await this._dialogService.prompt({type:yc.Info,message:R("confirmWorkspace","Would you like to undo '{0}' across all files?",n.label),buttons:[{label:R({key:"ok",comment:["{0} denotes a number that is > 1, && denotes a mnemonic"]},"&&Undo in {0} Files",i.editStacks.length),run:()=>a.All},{label:R({key:"nok",comment:["&& denotes a mnemonic"]},"Undo this &&File"),run:()=>a.This}],cancelButton:{run:()=>a.Cancel}});if(l===a.Cancel)return;if(l===a.This)return this._splitPastWorkspaceElement(n,null),this._undo(t,0,!0);const c=this._checkWorkspaceUndo(t,n,i,!1);if(c)return c.returnValue;r=!0}let o;try{o=await this._invokeWorkspacePrepare(n)}catch(a){return this._onError(a,n)}const s=this._checkWorkspaceUndo(t,n,i,!0);if(s)return o.dispose(),s.returnValue;for(const a of i.editStacks)a.moveBackward(n);return this._safeInvokeWithLocks(n,()=>n.actual.undo(),i,o,()=>this._continueUndoInGroup(n.groupId,r))}_resourceUndo(t,n,i){if(!n.isValid){t.flushAllElements();return}if(t.locked){const r=R({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",n.label);this._notificationService.warn(r);return}return this._invokeResourcePrepare(n,r=>(t.moveBackward(n),this._safeInvokeWithLocks(n,()=>n.actual.undo(),new xJ([t]),r,()=>this._continueUndoInGroup(n.groupId,i))))}_findClosestUndoElementInGroup(t){if(!t)return[null,null];let n=null,i=null;for(const[r,o]of this._editStacks){const s=o.getClosestPastElement();s&&s.groupId===t&&(!n||s.groupOrder>n.groupOrder)&&(n=s,i=r)}return[n,i]}_continueUndoInGroup(t,n){if(!t)return;const[,i]=this._findClosestUndoElementInGroup(t);if(i)return this._undo(i,0,n)}undo(t){if(t instanceof IB){const[,n]=this._findClosestUndoElementWithSource(t.id);return n?this._undo(n,t.id,!1):void 0}return typeof t=="string"?this._undo(t,0,!1):this._undo(this.getUriComparisonKey(t),0,!1)}_undo(t,n=0,i){if(!this._editStacks.has(t))return;const r=this._editStacks.get(t),o=r.getClosestPastElement();if(!o)return;if(o.groupId){const[a,l]=this._findClosestUndoElementInGroup(o.groupId);if(o!==a&&l)return this._undo(l,n,i)}if((o.sourceId!==n||o.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(t,n,o);try{return o.type===1?this._workspaceUndo(t,o,i):this._resourceUndo(r,o,i)}finally{VP&&this._print("undo")}}async _confirmAndContinueUndo(t,n,i){if((await this._dialogService.confirm({message:R("confirmDifferentSource","Would you like to undo '{0}'?",i.label),primaryButton:R({key:"confirmDifferentSource.yes",comment:["&& denotes a mnemonic"]},"&&Yes"),cancelButton:R("confirmDifferentSource.no","No")})).confirmed)return this._undo(t,n,!0)}_findClosestRedoElementWithSource(t){if(!t)return[null,null];let n=null,i=null;for(const[r,o]of this._editStacks){const s=o.getClosestFutureElement();s&&s.sourceId===t&&(!n||s.sourceOrder<n.sourceOrder)&&(n=s,i=r)}return[n,i]}canRedo(t){if(t instanceof IB){const[,i]=this._findClosestRedoElementWithSource(t.id);return!!i}const n=this.getUriComparisonKey(t);return this._editStacks.has(n)?this._editStacks.get(n).hasFutureElements():!1}_tryToSplitAndRedo(t,n,i,r){if(n.canSplit())return this._splitFutureWorkspaceElement(n,i),this._notificationService.warn(r),new Gz(this._redo(t));for(const o of n.strResources)this.removeElements(o);return this._notificationService.warn(r),new Gz}_checkWorkspaceRedo(t,n,i,r){if(n.removedResources)return this._tryToSplitAndRedo(t,n,n.removedResources,R({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",n.label,n.removedResources.createMessage()));if(r&&n.invalidatedResources)return this._tryToSplitAndRedo(t,n,n.invalidatedResources,R({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",n.label,n.invalidatedResources.createMessage()));const o=[];for(const a of i.editStacks)a.getClosestFutureElement()!==n&&o.push(a.resourceLabel);if(o.length>0)return this._tryToSplitAndRedo(t,n,null,R({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",n.label,o.join(", ")));const s=[];for(const a of i.editStacks)a.locked&&s.push(a.resourceLabel);return s.length>0?this._tryToSplitAndRedo(t,n,null,R({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",n.label,s.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(t,n,null,R({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",n.label))}_workspaceRedo(t,n){const i=this._getAffectedEditStacks(n),r=this._checkWorkspaceRedo(t,n,i,!1);return r?r.returnValue:this._executeWorkspaceRedo(t,n,i)}async _executeWorkspaceRedo(t,n,i){let r;try{r=await this._invokeWorkspacePrepare(n)}catch(s){return this._onError(s,n)}const o=this._checkWorkspaceRedo(t,n,i,!0);if(o)return r.dispose(),o.returnValue;for(const s of i.editStacks)s.moveForward(n);return this._safeInvokeWithLocks(n,()=>n.actual.redo(),i,r,()=>this._continueRedoInGroup(n.groupId))}_resourceRedo(t,n){if(!n.isValid){t.flushAllElements();return}if(t.locked){const i=R({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",n.label);this._notificationService.warn(i);return}return this._invokeResourcePrepare(n,i=>(t.moveForward(n),this._safeInvokeWithLocks(n,()=>n.actual.redo(),new xJ([t]),i,()=>this._continueRedoInGroup(n.groupId))))}_findClosestRedoElementInGroup(t){if(!t)return[null,null];let n=null,i=null;for(const[r,o]of this._editStacks){const s=o.getClosestFutureElement();s&&s.groupId===t&&(!n||s.groupOrder<n.groupOrder)&&(n=s,i=r)}return[n,i]}_continueRedoInGroup(t){if(!t)return;const[,n]=this._findClosestRedoElementInGroup(t);if(n)return this._redo(n)}redo(t){if(t instanceof IB){const[,n]=this._findClosestRedoElementWithSource(t.id);return n?this._redo(n):void 0}return typeof t=="string"?this._redo(t):this._redo(this.getUriComparisonKey(t))}_redo(t){if(!this._editStacks.has(t))return;const n=this._editStacks.get(t),i=n.getClosestFutureElement();if(i){if(i.groupId){const[r,o]=this._findClosestRedoElementInGroup(i.groupId);if(i!==r&&o)return this._redo(o)}try{return i.type===1?this._workspaceRedo(t,i):this._resourceRedo(n,i)}finally{VP&&this._print("redo")}}}},EJ=_ct([E1e(0,T7),E1e(1,Cc)],EJ),Gz=class{constructor(e){this.returnValue=e}},Oo(rge,EJ,1)}});function Jp(e,t,n){return Math.min(Math.max(e,t),n)}var J5e,o$t,k7=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/numbers.js"(){J5e=class{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}},o$t=class{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}}}),oge,jHe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/environment/common/environment.js"(){li(),oge=Ao("environmentService")}}),Cct,L1e,Mv,AJ,Sct,xct,DJ,Db=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js"(){Y2(),kh(),k7(),jHe(),vf(),li(),wm(),Gd(),Cct=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},L1e=function(e,t){return function(n,i){t(n,i,e)}},Mv=Ao("ILanguageFeatureDebounceService"),(function(e){const t=new WeakMap;let n=0;function i(r){let o=t.get(r);return o===void 0&&(o=++n,t.set(r,o)),o}e.of=i})(AJ||(AJ={})),Sct=class{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}},xct=class{constructor(e,t,n,i,r,o){this._logService=e,this._name=t,this._registry=n,this._default=i,this._min=r,this._max=o,this._cache=new WC(50,.7)}_key(e){return e.id+this._registry.all(e).reduce((t,n)=>Fpe(AJ.of(n),t),0)}get(e){const t=this._key(e),n=this._cache.get(t);return n?Jp(n.value,this._min,this._max):this.default()}update(e,t){const n=this._key(e);let i=this._cache.get(n);i||(i=new o$t(6),this._cache.set(n,i));const r=Jp(i.update(t),this._min,this._max);return Ope(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${r}ms`),r}_overall(){const e=new J5e;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){const e=this._overall()|0||this._default;return Jp(e,this._min,this._max)}},DJ=class{constructor(t,n){this._logService=t,this._data=new Map,this._isDev=n.isExtensionDevelopment||!n.isBuilt}for(t,n,i){const r=i?.min??50,o=i?.max??r**2,s=i?.key??void 0,a=`${AJ.of(t)},${r}${s?","+s:""}`;let l=this._data.get(a);return l||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${n}] is disabled in developed mode`),l=new Sct(r*1.5)):l=new xct(this._logService,n,t,this._overallAverage()|0||r*1.5,r,o),this._data.set(a,l)),l}_overallAverage(){const t=new J5e;for(const n of this._data.values())t.update(n.default());return t.value}},DJ=Cct([L1e(0,bh),L1e(1,oge)],DJ),Oo(Mv,DJ,1)}}),gh,I7=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/encodedTokenAttributes.js"(){gh=class{static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static getClassNameFromMetadata(e){let n="mtk"+this.getForeground(e);const i=this.getFontStyle(e);return i&1&&(n+=" mtki"),i&2&&(n+=" mtkb"),i&4&&(n+=" mtku"),i&8&&(n+=" mtks"),n}static getInlineStyleFromMetadata(e,t){const n=this.getForeground(e),i=this.getFontStyle(e);let r=`color: ${t[n]};`;i&1&&(r+="font-style: italic;"),i&2&&(r+="font-weight: bold;");let o="";return i&4&&(o+=" underline"),i&8&&(o+=" line-through"),o&&(r+=`text-decoration:${o};`),r}static getPresentationFromMetadata(e){const t=this.getForeground(e),n=this.getFontStyle(e);return{foreground:t,italic:!!(n&1),bold:!!(n&2),underline:!!(n&4),strikethrough:!!(n&8)}}}}});function PL(e){let t=0,n=0,i=0,r=0;for(let o=0,s=e.length;o<s;o++){const a=e.charCodeAt(o);a===13?(t===0&&(n=o),t++,o+1<s&&e.charCodeAt(o+1)===10?(r|=2,o++):r|=3,i=o+1):a===10&&(r|=1,t===0&&(n=o),t++,i=o+1)}return t===0&&(n=e.length),[t,n,e.length-i,r]}var L7=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/eolCounter.js"(){}}),s$t,Ect,N1e,Czn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/tokens/sparseMultilineTokens.js"(){Hi(),Dn(),L7(),s$t=class cse{static create(t,n){return new cse(t,new Ect(n))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(t,n){this._startLineNumber=t,this._tokens=n,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(t){return this._startLineNumber<=t&&t<=this._endLineNumber?this._tokens.getLineTokens(t-this._startLineNumber):null}getRange(){const t=this._tokens.getRange();return t&&new Re(this._startLineNumber+t.startLineNumber,t.startColumn,this._startLineNumber+t.endLineNumber,t.endColumn)}removeTokens(t){const n=t.startLineNumber-this._startLineNumber,i=t.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(n,t.startColumn-1,i,t.endColumn-1),this._updateEndLineNumber()}split(t){const n=t.startLineNumber-this._startLineNumber,i=t.endLineNumber-this._startLineNumber,[r,o,s]=this._tokens.split(n,t.startColumn-1,i,t.endColumn-1);return[new cse(this._startLineNumber,r),new cse(this._startLineNumber+s,o)]}applyEdit(t,n){const[i,r,o]=PL(n);this.acceptEdit(t,i,r,o,n.length>0?n.charCodeAt(0):0)}acceptEdit(t,n,i,r,o){this._acceptDeleteRange(t),this._acceptInsertText(new mt(t.startLineNumber,t.startColumn),n,i,r,o),this._updateEndLineNumber()}_acceptDeleteRange(t){if(t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn)return;const n=t.startLineNumber-this._startLineNumber,i=t.endLineNumber-this._startLineNumber;if(i<0){const o=i-n;this._startLineNumber-=o;return}const r=this._tokens.getMaxDeltaLine();if(!(n>=r+1)){if(n<0&&i>=r+1){this._startLineNumber=0,this._tokens.clear();return}if(n<0){const o=-n;this._startLineNumber-=o,this._tokens.acceptDeleteRange(t.startColumn-1,0,0,i,t.endColumn-1)}else this._tokens.acceptDeleteRange(0,n,t.startColumn-1,i,t.endColumn-1)}}_acceptInsertText(t,n,i,r,o){if(n===0&&i===0)return;const s=t.lineNumber-this._startLineNumber;if(s<0){this._startLineNumber+=n;return}const a=this._tokens.getMaxDeltaLine();s>=a+1||this._tokens.acceptInsertText(s,t.column-1,n,i,r,o)}},Ect=class e4e{constructor(t){this._tokens=t,this._tokenCount=t.length/4}toString(t){const n=[];for(let i=0;i<this._tokenCount;i++)n.push(`(${this._getDeltaLine(i)+t},${this._getStartCharacter(i)}-${this._getEndCharacter(i)})`);return`[${n.join(",")}]`}getMaxDeltaLine(){const t=this._getTokenCount();return t===0?-1:this._getDeltaLine(t-1)}getRange(){const t=this._getTokenCount();if(t===0)return null;const n=this._getStartCharacter(0),i=this._getDeltaLine(t-1),r=this._getEndCharacter(t-1);return new Re(0,n+1,i,r+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(t){return this._tokens[4*t]}_getStartCharacter(t){return this._tokens[4*t+1]}_getEndCharacter(t){return this._tokens[4*t+2]}isEmpty(){return this._getTokenCount()===0}getLineTokens(t){let n=0,i=this._getTokenCount()-1;for(;n<i;){const r=n+Math.floor((i-n)/2),o=this._getDeltaLine(r);if(o<t)n=r+1;else if(o>t)i=r-1;else{let s=r;for(;s>n&&this._getDeltaLine(s-1)===t;)s--;let a=r;for(;a<i&&this._getDeltaLine(a+1)===t;)a++;return new N1e(this._tokens.subarray(4*s,4*a+4))}}return this._getDeltaLine(n)===t?new N1e(this._tokens.subarray(4*n,4*n+4)):null}clear(){this._tokenCount=0}removeTokens(t,n,i,r){const o=this._tokens,s=this._tokenCount;let a=0,l=!1,c=0;for(let u=0;u<s;u++){const d=4*u,h=o[d],f=o[d+1],p=o[d+2],g=o[d+3];if((h>t||h===t&&p>=n)&&(h<i||h===i&&f<=r))l=!0;else{if(a===0&&(c=h),l){const m=4*a;o[m]=h-c,o[m+1]=f,o[m+2]=p,o[m+3]=g}a++}}return this._tokenCount=a,c}split(t,n,i,r){const o=this._tokens,s=this._tokenCount,a=[],l=[];let c=a,u=0,d=0;for(let h=0;h<s;h++){const f=4*h,p=o[f],g=o[f+1],m=o[f+2],v=o[f+3];if(p>t||p===t&&m>=n){if(p<i||p===i&&g<=r)continue;c!==l&&(c=l,u=0,d=p)}c[u++]=p-d,c[u++]=g,c[u++]=m,c[u++]=v}return[new e4e(new Uint32Array(a)),new e4e(new Uint32Array(l)),d]}acceptDeleteRange(t,n,i,r,o){const s=this._tokens,a=this._tokenCount,l=r-n;let c=0,u=!1;for(let d=0;d<a;d++){const h=4*d;let f=s[h],p=s[h+1],g=s[h+2];const m=s[h+3];if(f<n||f===n&&g<=i){c++;continue}else if(f===n&&p<i)f===r&&g>o?g-=o-i:g=i;else if(f===n&&p===i)if(f===r&&g>o)g-=o-i;else{u=!0;continue}else if(f<r||f===r&&p<o)if(f===r&&g>o)f=n,p=i,g=p+(g-o);else{u=!0;continue}else if(f>r){if(l===0&&!u){c=a;break}f-=l}else if(f===r&&p>=o)t&&f===0&&(p+=t,g+=t),f-=l,p-=o-i,g-=o-i;else throw new Error("Not possible!");const v=4*c;s[v]=f,s[v+1]=p,s[v+2]=g,s[v+3]=m,c++}this._tokenCount=c}acceptInsertText(t,n,i,r,o,s){const a=i===0&&r===1&&(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122),l=this._tokens,c=this._tokenCount;for(let u=0;u<c;u++){const d=4*u;let h=l[d],f=l[d+1],p=l[d+2];if(!(h<t||h===t&&p<n)){if(h===t&&p===n)if(a)p+=1;else continue;else if(h===t&&f<n&&n<p)i===0?p+=r:p=n;else{if(h===t&&f===n&&a)continue;if(h===t)if(h+=i,i===0)f+=r,p+=r;else{const g=p-f;f=o+(f-n),p=f+g}else h+=i}l[d]=h,l[d+1]=f,l[d+2]=p}}}},N1e=class{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}}});function a$t(e,t,n){const i=e.data,r=e.data.length/5|0,o=Math.max(Math.ceil(r/1024),400),s=[];let a=0,l=1,c=0;for(;a<r;){const u=a;let d=Math.min(u+o,r);if(d<r){let y=d;for(;y-1>u&&i[5*y]===0;)y--;if(y-1===u){let b=d;for(;b+1<r&&i[5*b]===0;)b++;d=b}else d=y}let h=new Uint32Array((d-u)*4),f=0,p=0,g=0,m=0;for(;a<d;){const y=5*a,b=i[y],w=i[y+1],E=l+b|0,A=b===0?c+w|0:w,D=i[y+2],T=A+D|0,M=i[y+3],P=i[y+4];if(T<=A)t.warnInvalidLengthSemanticTokens(E,A+1);else if(g===E&&m>A)t.warnOverlappingSemanticTokens(E,A+1);else{const F=t.getMetadata(M,P,n);F!==2147483647&&(p===0&&(p=E),h[f]=E-p,h[f+1]=A,h[f+2]=T,h[f+3]=F,f+=4,g=E,m=T)}l=E,c=A,a++}f!==h.length&&(h=h.subarray(0,f));const v=s$t.create(p,h);s.push(v)}return s}var Act,TJ,Kz,use,Dct,Tct,zHe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js"(){var e;I7(),Ys(),wm(),Czn(),Kd(),Act=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},TJ=function(t,n){return function(i,r){n(i,r,t)}},Kz=!1,use=class{constructor(n,i,r,o){this._legend=n,this._themeService=i,this._languageService=r,this._logService=o,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new Tct}getMetadata(n,i,r){const o=this._languageService.languageIdCodec.encodeLanguageId(r),s=this._hashTable.get(n,i,o);let a;if(s)a=s.metadata,Kz&&this._logService.getLevel()===Zh.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${n} / ${i}: foreground ${gh.getForeground(a)}, fontStyle ${gh.getFontStyle(a).toString(2)}`);else{let l=this._legend.tokenTypes[n];const c=[];if(l){let u=i;for(let h=0;u>0&&h<this._legend.tokenModifiers.length;h++)u&1&&c.push(this._legend.tokenModifiers[h]),u=u>>1;Kz&&u>0&&this._logService.getLevel()===Zh.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${i.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),c.push("not-in-legend"));const d=this._themeService.getColorTheme().getTokenStyleMetadata(l,c,r);if(typeof d>"u")a=2147483647;else{if(a=0,typeof d.italic<"u"){const h=(d.italic?1:0)<<11;a|=h|1}if(typeof d.bold<"u"){const h=(d.bold?2:0)<<11;a|=h|2}if(typeof d.underline<"u"){const h=(d.underline?4:0)<<11;a|=h|4}if(typeof d.strikethrough<"u"){const h=(d.strikethrough?8:0)<<11;a|=h|8}if(d.foreground){const h=d.foreground<<15;a|=h|16}a===0&&(a=2147483647)}}else Kz&&this._logService.getLevel()===Zh.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${n} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),a=2147483647,l="not-in-legend";this._hashTable.add(n,i,o,a),Kz&&this._logService.getLevel()===Zh.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${n} (${l}) / ${i} (${c.join(" ")}): foreground ${gh.getForeground(a)}, fontStyle ${gh.getFontStyle(a).toString(2)}`)}return a}warnOverlappingSemanticTokens(n,i){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${n}, column ${i}`))}warnInvalidLengthSemanticTokens(n,i){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${n}, column ${i}`))}warnInvalidEditStart(n,i,r,o,s){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${n}, resultId: ${i}) at edit #${r}: The provided start offset ${o} is outside the previous data (length ${s}).`))}},use=Act([TJ(1,Ru),TJ(2,al),TJ(3,bh)],use),Dct=class{constructor(t,n,i,r){this.tokenTypeIndex=t,this.tokenModifierSet=n,this.languageId=i,this.metadata=r,this.next=null}},Tct=(e=class{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=e._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<e._SIZES.length?2/3*this._currentLength:0),this._elements=[],e._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(n,i){for(let r=0;r<i;r++)n[r]=null}_hash2(n,i){return(n<<5)-n+i|0}_hashFunc(n,i,r){return this._hash2(this._hash2(n,i),r)%this._currentLength}get(n,i,r){const o=this._hashFunc(n,i,r);let s=this._elements[o];for(;s;){if(s.tokenTypeIndex===n&&s.tokenModifierSet===i&&s.languageId===r)return s;s=s.next}return null}add(n,i,r,o){if(this._elementsCount++,this._growCount!==0&&this._elementsCount>=this._growCount){const s=this._elements;this._currentLengthIndex++,this._currentLength=e._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<e._SIZES.length?2/3*this._currentLength:0),this._elements=[],e._nullOutEntries(this._elements,this._currentLength);for(const a of s){let l=a;for(;l;){const c=l.next;l.next=null,this._add(l),l=c}}}this._add(new Dct(n,i,r,o))}_add(n){const i=this._hashFunc(n.tokenTypeIndex,n.tokenModifierSet,n.languageId);n.next=this._elements[i],this._elements[i]=n}},e._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143],e)}}),Jq,VHe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js"(){li(),Jq=Ao("semanticTokensStylingService")}}),kct,kJ,IJ,Szn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js"(){Nt(),Kd(),Ys(),wm(),zHe(),VHe(),vf(),kct=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},kJ=function(e,t){return function(n,i){t(n,i,e)}},IJ=class extends St{constructor(t,n,i){super(),this._themeService=t,this._logService=n,this._languageService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}getStyling(t){return this._caches.has(t)||this._caches.set(t,new use(t.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(t)}},IJ=kct([kJ(0,Ru),kJ(1,bh),kJ(2,al)],IJ),Oo(Jq,IJ,1)}});function yk(e){return e===47||e===92}function l$t(e){return e.replace(/[\\/]/g,Vc.sep)}function xzn(e){return e.indexOf("/")===-1&&(e=l$t(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function Ict(e,t=Vc.sep){if(!e)return"";const n=e.length,i=e.charCodeAt(0);if(yk(i)){if(yk(e.charCodeAt(1))&&!yk(e.charCodeAt(2))){let o=3;const s=o;for(;o<n&&!yk(e.charCodeAt(o));o++);if(s!==o&&!yk(e.charCodeAt(o+1))){for(o+=1;o<n;o++)if(yk(e.charCodeAt(o)))return e.slice(0,o+1).replace(/[\\/]/g,t)}}return t}else if(c$t(i)&&e.charCodeAt(1)===58)return yk(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let r=e.indexOf("://");if(r!==-1){for(r+=3;r<n;r++)if(yk(e.charCodeAt(r)))return e.slice(0,r+1)}return""}function t4e(e,t,n,i=V_){if(e===t)return!0;if(!e||!t||t.length>e.length)return!1;if(n){if(!j3e(e,t))return!1;if(t.length===e.length)return!0;let o=t.length;return t.charAt(t.length-1)===i&&o--,e.charAt(o)===i}return t.charAt(t.length-1)!==i&&(t+=i),e.indexOf(t)===0}function c$t(e){return e>=65&&e<=90||e>=97&&e<=122}function Ezn(e,t=Ch){return t?c$t(e.charCodeAt(0))&&e.charCodeAt(1)===58:!1}var HHe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/extpath.js"(){bE(),Xr(),Ki()}});function Lct(e,t){switch(e){case 0:return"";case 1:return`${GU}*?`;default:return`(?:${qU}|${GU}+${qU}${t?`|${qU}${GU}+`:""})*?`}}function Nct(e,t){if(!e)return[];const n=[];let i=!1,r=!1,o="";for(const s of e){switch(s){case t:if(!i&&!r){n.push(o),o="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":r=!0;break;case"]":r=!1;break}o+=s}return o&&n.push(o),n}function u$t(e){if(!e)return"";let t="";const n=Nct(e,n4e);if(n.every(i=>i===YH))t=".*";else{let i=!1;n.forEach((r,o)=>{if(r===YH){if(i)return;t+=Lct(2,o===n.length-1)}else{let s=!1,a="",l=!1,c="";for(const u of r){if(u!=="}"&&s){a+=u;continue}if(l&&(u!=="]"||!c)){let d;u==="-"?d=u:(u==="^"||u==="!")&&!c?d="^":u===n4e?d="":d=z0(u),c+=d;continue}switch(u){case"{":s=!0;continue;case"[":l=!0;continue;case"}":{const h=`(?:${Nct(a,",").map(f=>u$t(f)).join("|")})`;t+=h,s=!1,a="";break}case"]":{t+="["+c+"]",l=!1,c="";break}case"?":t+=GU;continue;case"*":t+=Lct(1);continue;default:t+=z0(u)}}o<n.length-1&&(n[o+1]!==YH||o+2<n.length)&&(t+=qU)}i=r===YH})}return t}function WHe(e,t){if(!e)return oC;let n;typeof e!="string"?n=e.pattern:n=e,n=n.trim();const i=`${n}_${!!t.trimForExclusions}`;let r=i4e.get(i);if(r)return Pct(r,e);let o;return p$t.test(n)?r=Azn(n.substr(4),n):(o=g$t.exec(P1e(n,t)))?r=Dzn(o[1],n):(t.trimForExclusions?v$t:m$t).test(n)?r=Tzn(n,t):(o=y$t.exec(P1e(n,t)))?r=Mct(o[1].substr(1),n,!0):(o=b$t.exec(P1e(n,t)))?r=Mct(o[1],n,!1):r=kzn(n),i4e.set(i,r),Pct(r,e)}function Pct(e,t){if(typeof t=="string")return e;const n=function(i,r){return t4e(i,t.base,!Wf)?e($K(i.substr(t.base.length),V_),r):null};return n.allBasenames=e.allBasenames,n.allPaths=e.allPaths,n.basenames=e.basenames,n.patterns=e.patterns,n}function P1e(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function Azn(e,t){return function(n,i){return typeof n=="string"&&n.endsWith(e)?t:null}}function Dzn(e,t){const n=`/${e}`,i=`\\${e}`,r=function(s,a){return typeof s!="string"?null:a?a===e?t:null:s===e||s.endsWith(n)||s.endsWith(i)?t:null},o=[e];return r.basenames=o,r.patterns=[t],r.allBasenames=o,r}function Tzn(e,t){const n=h$t(e.slice(1,-1).split(",").map(a=>WHe(a,t)).filter(a=>a!==oC),e),i=n.length;if(!i)return oC;if(i===1)return n[0];const r=function(a,l){for(let c=0,u=n.length;c<u;c++)if(n[c](a,l))return e;return null},o=n.find(a=>!!a.allBasenames);o&&(r.allBasenames=o.allBasenames);const s=n.reduce((a,l)=>l.allPaths?a.concat(l.allPaths):a,[]);return s.length&&(r.allPaths=s),r}function Mct(e,t,n){const i=V_===Vc.sep,r=i?e:e.replace(f$t,V_),o=V_+r,s=Vc.sep+e;let a;return n?a=function(l,c){return typeof l=="string"&&(l===r||l.endsWith(o)||!i&&(l===e||l.endsWith(s)))?t:null}:a=function(l,c){return typeof l=="string"&&(l===r||!i&&l===e)?t:null},a.allPaths=[(n?"*/":"./")+e],a}function kzn(e){try{const t=new RegExp(`^${u$t(e)}$`);return function(n){return t.lastIndex=0,typeof n=="string"&&t.test(n)?e:null}}catch{return oC}}function Izn(e,t,n){return!e||typeof t!="string"?!1:d$t(e)(t,void 0,n)}function d$t(e,t={}){if(!e)return r4e;if(typeof e=="string"||Lzn(e)){const n=WHe(e,t);if(n===oC)return r4e;const i=function(r,o){return!!n(r,o)};return n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i}return Nzn(e,t)}function Lzn(e){const t=e;return t?typeof t.base=="string"&&typeof t.pattern=="string":!1}function Nzn(e,t){const n=h$t(Object.getOwnPropertyNames(e).map(a=>Pzn(a,e[a],t)).filter(a=>a!==oC)),i=n.length;if(!i)return oC;if(!n.some(a=>!!a.requiresSiblings)){if(i===1)return n[0];const a=function(u,d){let h;for(let f=0,p=n.length;f<p;f++){const g=n[f](u,d);if(typeof g=="string")return g;NFe(g)&&(h||(h=[]),h.push(g))}return h?(async()=>{for(const f of h){const p=await f;if(typeof p=="string")return p}return null})():null},l=n.find(u=>!!u.allBasenames);l&&(a.allBasenames=l.allBasenames);const c=n.reduce((u,d)=>d.allPaths?u.concat(d.allPaths):u,[]);return c.length&&(a.allPaths=c),a}const r=function(a,l,c){let u,d;for(let h=0,f=n.length;h<f;h++){const p=n[h];p.requiresSiblings&&c&&(l||(l=YA(a)),u||(u=l.substr(0,l.length-I7t(a).length)));const g=p(a,l,u,c);if(typeof g=="string")return g;NFe(g)&&(d||(d=[]),d.push(g))}return d?(async()=>{for(const h of d){const f=await h;if(typeof f=="string")return f}return null})():null},o=n.find(a=>!!a.allBasenames);o&&(r.allBasenames=o.allBasenames);const s=n.reduce((a,l)=>l.allPaths?a.concat(l.allPaths):a,[]);return s.length&&(r.allPaths=s),r}function Pzn(e,t,n){if(t===!1)return oC;const i=WHe(e,n);if(i===oC)return oC;if(typeof t=="boolean")return i;if(t){const r=t.when;if(typeof r=="string"){const o=(s,a,l,c)=>{if(!c||!i(s,a))return null;const u=r.replace("$(basename)",()=>l),d=c(u);return NFe(d)?d.then(h=>h?e:null):d?e:null};return o.requiresSiblings=!0,o}}return i}function h$t(e,t){const n=e.filter(a=>!!a.basenames);if(n.length<2)return e;const i=n.reduce((a,l)=>{const c=l.basenames;return c?a.concat(c):a},[]);let r;if(t){r=[];for(let a=0,l=i.length;a<l;a++)r.push(t)}else r=n.reduce((a,l)=>{const c=l.patterns;return c?a.concat(c):a},[]);const o=function(a,l){if(typeof a!="string")return null;if(!l){let u;for(u=a.length;u>0;u--){const d=a.charCodeAt(u-1);if(d===47||d===92)break}l=a.substr(u)}const c=i.indexOf(l);return c!==-1?r[c]:null};o.basenames=i,o.patterns=r,o.allBasenames=i;const s=e.filter(a=>!a.basenames);return s.push(o),s}var YH,n4e,qU,GU,f$t,p$t,g$t,m$t,v$t,y$t,b$t,i4e,r4e,oC,_$t=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/glob.js"(){fr(),HHe(),kh(),bE(),Xr(),Ki(),YH="**",n4e="/",qU="[/\\\\]",GU="[^/\\\\]",f$t=/\//g,p$t=/^\*\*\/\*\.[\w\.-]+$/,g$t=/^\*\*\/([\w\.-]+)\/?$/,m$t=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,v$t=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,y$t=/^\*\*((\/[\w\.-]+)+)\/?$/,b$t=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,i4e=new WC(1e4),r4e=function(){return!1},oC=function(){return null}}});function UHe(e,t,n,i,r,o){if(Array.isArray(e)){let s=0;for(const a of e){const l=UHe(a,t,n,i,r,o);if(l===10)return l;l>s&&(s=l)}return s}else{if(typeof e=="string")return i?e==="*"?5:e===n?10:0:0;if(e){const{language:s,pattern:a,scheme:l,hasAccessToAllModels:c,notebookType:u}=e;if(!i&&!c)return 0;u&&r&&(t=r);let d=0;if(l)if(l===t.scheme)d=10;else if(l==="*")d=5;else return 0;if(s)if(s===n)d=10;else if(s==="*")d=Math.max(d,5);else return 0;if(u)if(u===o)d=10;else if(u==="*"&&o!==void 0)d=Math.max(d,5);else return 0;if(a){let h;if(typeof a=="string"?h=a:h={...a,base:EVe(a.base)},h===t.fsPath||Izn(h,t.fsPath))d=10;else return 0}return d}else return 0}}var w$t=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languageSelector.js"(){_$t(),bE()}});function C$t(e){return typeof e=="string"?!1:Array.isArray(e)?e.every(C$t):!!e.exclusive}function QH(e){return typeof e=="string"?!1:Array.isArray(e)?e.some(QH):!!e.isBuiltin}var M1e,Bl,Mzn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languageFeatureRegistry.js"(){Un(),Nt(),Cd(),w$t(),M1e=class{constructor(e,t,n,i,r){this.uri=e,this.languageId=t,this.notebookUri=n,this.notebookType=i,this.recursive=r}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}},Bl=class S$t{constructor(t){this._notebookInfoResolver=t,this._clock=0,this._entries=[],this._onDidChange=new bt,this.onDidChange=this._onDidChange.event}register(t,n){let i={selector:t,provider:n,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),zi(()=>{if(i){const r=this._entries.indexOf(i);r>=0&&(this._entries.splice(r,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}})}has(t){return this.all(t).length>0}all(t){if(!t)return[];this._updateScores(t,!1);const n=[];for(const i of this._entries)i._score>0&&n.push(i.provider);return n}ordered(t,n=!1){const i=[];return this._orderedForEach(t,n,r=>i.push(r.provider)),i}orderedGroups(t){const n=[];let i,r;return this._orderedForEach(t,!1,o=>{i&&r===o._score?i.push(o.provider):(r=o._score,i=[o.provider],n.push(i))}),n}_orderedForEach(t,n,i){this._updateScores(t,n);for(const r of this._entries)r._score>0&&i(r)}_updateScores(t,n){const i=this._notebookInfoResolver?.(t.uri),r=i?new M1e(t.uri,t.getLanguageId(),i.uri,i.type,n):new M1e(t.uri,t.getLanguageId(),void 0,void 0,n);if(!this._lastCandidate?.equals(r)){this._lastCandidate=r;for(const o of this._entries)if(o._score=UHe(o.selector,r.uri,r.languageId,xUt(t),r.notebookUri,r.notebookType),C$t(o.selector)&&o._score>0)if(n)o._score=0;else{for(const s of this._entries)s._score=0;o._score=1e3;break}this._entries.sort(S$t._compareByScoreAndTime)}}static _compareByScoreAndTime(t,n){return t._score<n._score?1:t._score>n._score?-1:QH(t.selector)&&!QH(n.selector)?1:!QH(t.selector)&&QH(n.selector)?-1:t._time<n._time?1:t._time>n._time?-1:0}}}}),Oct,Ozn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js"(){Mzn(),Eo(),vf(),Oct=class{constructor(){this.referenceProvider=new Bl(this._score.bind(this)),this.renameProvider=new Bl(this._score.bind(this)),this.newSymbolNamesProvider=new Bl(this._score.bind(this)),this.codeActionProvider=new Bl(this._score.bind(this)),this.definitionProvider=new Bl(this._score.bind(this)),this.typeDefinitionProvider=new Bl(this._score.bind(this)),this.declarationProvider=new Bl(this._score.bind(this)),this.implementationProvider=new Bl(this._score.bind(this)),this.documentSymbolProvider=new Bl(this._score.bind(this)),this.inlayHintsProvider=new Bl(this._score.bind(this)),this.colorProvider=new Bl(this._score.bind(this)),this.codeLensProvider=new Bl(this._score.bind(this)),this.documentFormattingEditProvider=new Bl(this._score.bind(this)),this.documentRangeFormattingEditProvider=new Bl(this._score.bind(this)),this.onTypeFormattingEditProvider=new Bl(this._score.bind(this)),this.signatureHelpProvider=new Bl(this._score.bind(this)),this.hoverProvider=new Bl(this._score.bind(this)),this.documentHighlightProvider=new Bl(this._score.bind(this)),this.multiDocumentHighlightProvider=new Bl(this._score.bind(this)),this.selectionRangeProvider=new Bl(this._score.bind(this)),this.foldingRangeProvider=new Bl(this._score.bind(this)),this.linkProvider=new Bl(this._score.bind(this)),this.inlineCompletionsProvider=new Bl(this._score.bind(this)),this.inlineEditProvider=new Bl(this._score.bind(this)),this.completionProvider=new Bl(this._score.bind(this)),this.linkedEditingRangeProvider=new Bl(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new Bl(this._score.bind(this)),this.documentSemanticTokensProvider=new Bl(this._score.bind(this)),this.documentDropEditProvider=new Bl(this._score.bind(this)),this.documentPasteEditProvider=new Bl(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}},Oo(gi,Oct,1)}}),Rct,O1e,SC,fR,PN=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/hover/browser/hover.js"(){li(),Nt(),sa(),Fn(),Rct=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},O1e=function(e,t){return function(n,i){t(n,i,e)}},SC=Ao("hoverService"),fR=class extends St{get delay(){return this.isInstantlyHovering()?0:this._delay}constructor(t,n,i={},r,o){super(),this.placement=t,this.instantHover=n,this.overrideOptions=i,this.configurationService=r,this.hoverService=o,this.lastHoverHideTime=0,this.timeLimit=200,this.hoverDisposables=this._register(new Jt),this._delay=this.configurationService.getValue("workbench.hover.delay"),this._register(this.configurationService.onDidChangeConfiguration(s=>{s.affectsConfiguration("workbench.hover.delay")&&(this._delay=this.configurationService.getValue("workbench.hover.delay"))}))}showHover(t,n){const i=typeof this.overrideOptions=="function"?this.overrideOptions(t,n):this.overrideOptions;this.hoverDisposables.clear();const r=yd(t.target)?[t.target]:t.target.targetElements;for(const s of r)this.hoverDisposables.add(Il(s,"keydown",a=>{a.equals(9)&&this.hoverService.hideHover()}));const o=yd(t.content)?void 0:t.content.toString();return this.hoverService.showHover({...t,...i,persistence:{hideOnKeyDown:!0,...i.persistence},id:o,appearance:{...t.appearance,compact:!0,skipFadeInAnimation:this.isInstantlyHovering(),...i.appearance}},n)}isInstantlyHovering(){return this.instantHover&&Date.now()-this.lastHoverHideTime<this.timeLimit}onDidHideHover(){this.hoverDisposables.clear(),this.instantHover&&(this.lastHoverHideTime=Date.now())}},fR=Rct([O1e(3,co),O1e(4,SC)],fR)}}),Jx,dm,xg=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/contextview/browser/contextView.js"(){li(),Jx=Ao("contextViewService"),dm=Ao("contextMenuService")}}),Rzn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/services/hoverService/hover.css"(){}}),Cs,tl=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"(){li(),Cs=Ao("keybindingService")}});function Hc(e,t,n){let i=null,r=null;if(typeof n.value=="function"?(i="value",r=n.value,r.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof n.get=="function"&&(i="get",r=n.get),!r)throw new Error("not supported");const o=`$memoize$${t}`;n[i]=function(...s){return this.hasOwnProperty(o)||Object.defineProperty(this,o,{configurable:!1,enumerable:!1,writable:!1,value:r.apply(this,s)}),this[o]}}var tF=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/decorators.js"(){}}),Fct,Wa,Ap,Q0=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/touch.js"(){var e;Fn(),wg(),rr(),tF(),Un(),Nt(),_b(),Fct=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},(function(t){t.Tap="-monaco-gesturetap",t.Change="-monaco-gesturechange",t.Start="-monaco-gesturestart",t.End="-monaco-gesturesend",t.Contextmenu="-monaco-gesturecontextmenu"})(Wa||(Wa={})),Ap=(e=class extends St{constructor(){super(),this.dispatched=!1,this.targets=new yp,this.ignoreTargets=new yp,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(On.runAndSubscribe(Oq,({window:n,disposables:i})=>{i.add(qt(n.document,"touchstart",r=>this.onTouchStart(r),{passive:!1})),i.add(qt(n.document,"touchend",r=>this.onTouchEnd(n,r))),i.add(qt(n.document,"touchmove",r=>this.onTouchMove(r),{passive:!1}))},{window:la,disposables:this._store}))}static addTarget(n){if(!e.isTouchDevice())return St.None;e.INSTANCE||(e.INSTANCE=bq(new e));const i=e.INSTANCE.targets.push(n);return zi(i)}static ignoreTarget(n){if(!e.isTouchDevice())return St.None;e.INSTANCE||(e.INSTANCE=bq(new e));const i=e.INSTANCE.ignoreTargets.push(n);return zi(i)}static isTouchDevice(){return"ontouchstart"in la||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(n){const i=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let r=0,o=n.targetTouches.length;r<o;r++){const s=n.targetTouches.item(r);this.activeTouches[s.identifier]={id:s.identifier,initialTarget:s.target,initialTimeStamp:i,initialPageX:s.pageX,initialPageY:s.pageY,rollingTimestamps:[i],rollingPageX:[s.pageX],rollingPageY:[s.pageY]};const a=this.newGestureEvent(Wa.Start,s.target);a.pageX=s.pageX,a.pageY=s.pageY,this.dispatchEvent(a)}this.dispatched&&(n.preventDefault(),n.stopPropagation(),this.dispatched=!1)}onTouchEnd(n,i){const r=Date.now(),o=Object.keys(this.activeTouches).length;for(let s=0,a=i.changedTouches.length;s<a;s++){const l=i.changedTouches.item(s);if(!this.activeTouches.hasOwnProperty(String(l.identifier))){console.warn("move of an UNKNOWN touch",l);continue}const c=this.activeTouches[l.identifier],u=Date.now()-c.initialTimeStamp;if(u<e.HOLD_DELAY&&Math.abs(c.initialPageX-fy(c.rollingPageX))<30&&Math.abs(c.initialPageY-fy(c.rollingPageY))<30){const d=this.newGestureEvent(Wa.Tap,c.initialTarget);d.pageX=fy(c.rollingPageX),d.pageY=fy(c.rollingPageY),this.dispatchEvent(d)}else if(u>=e.HOLD_DELAY&&Math.abs(c.initialPageX-fy(c.rollingPageX))<30&&Math.abs(c.initialPageY-fy(c.rollingPageY))<30){const d=this.newGestureEvent(Wa.Contextmenu,c.initialTarget);d.pageX=fy(c.rollingPageX),d.pageY=fy(c.rollingPageY),this.dispatchEvent(d)}else if(o===1){const d=fy(c.rollingPageX),h=fy(c.rollingPageY),f=fy(c.rollingTimestamps)-c.rollingTimestamps[0],p=d-c.rollingPageX[0],g=h-c.rollingPageY[0],m=[...this.targets].filter(v=>c.initialTarget instanceof Node&&v.contains(c.initialTarget));this.inertia(n,m,r,Math.abs(p)/f,p>0?1:-1,d,Math.abs(g)/f,g>0?1:-1,h)}this.dispatchEvent(this.newGestureEvent(Wa.End,c.initialTarget)),delete this.activeTouches[l.identifier]}this.dispatched&&(i.preventDefault(),i.stopPropagation(),this.dispatched=!1)}newGestureEvent(n,i){const r=document.createEvent("CustomEvent");return r.initEvent(n,!1,!0),r.initialTarget=i,r.tapCount=0,r}dispatchEvent(n){if(n.type===Wa.Tap){const i=new Date().getTime();let r=0;i-this._lastSetTapCountTime>e.CLEAR_TAP_COUNT_TIME?r=1:r=2,this._lastSetTapCountTime=i,n.tapCount=r}else(n.type===Wa.Change||n.type===Wa.Contextmenu)&&(this._lastSetTapCountTime=0);if(n.initialTarget instanceof Node){for(const r of this.ignoreTargets)if(r.contains(n.initialTarget))return;const i=[];for(const r of this.targets)if(r.contains(n.initialTarget)){let o=0,s=n.initialTarget;for(;s&&s!==r;)o++,s=s.parentElement;i.push([o,r])}i.sort((r,o)=>r[0]-o[0]);for(const[r,o]of i)o.dispatchEvent(n),this.dispatched=!0}}inertia(n,i,r,o,s,a,l,c,u){this.handle=Nv(n,()=>{const d=Date.now(),h=d-r;let f=0,p=0,g=!0;o+=e.SCROLL_FRICTION*h,l+=e.SCROLL_FRICTION*h,o>0&&(g=!1,f=s*o*h),l>0&&(g=!1,p=c*l*h);const m=this.newGestureEvent(Wa.Change);m.translationX=f,m.translationY=p,i.forEach(v=>v.dispatchEvent(m)),g||this.inertia(n,i,d,o,s,a+f,l,c,u+p)})}onTouchMove(n){const i=Date.now();for(let r=0,o=n.changedTouches.length;r<o;r++){const s=n.changedTouches.item(r);if(!this.activeTouches.hasOwnProperty(String(s.identifier))){console.warn("end of an UNKNOWN touch",s);continue}const a=this.activeTouches[s.identifier],l=this.newGestureEvent(Wa.Change,a.initialTarget);l.translationX=s.pageX-fy(a.rollingPageX),l.translationY=s.pageY-fy(a.rollingPageY),l.pageX=s.pageX,l.pageY=s.pageY,this.dispatchEvent(l),a.rollingPageX.length>3&&(a.rollingPageX.shift(),a.rollingPageY.shift(),a.rollingTimestamps.shift()),a.rollingPageX.push(s.pageX),a.rollingPageY.push(s.pageY),a.rollingTimestamps.push(i)}this.dispatched&&(n.preventDefault(),n.stopPropagation(),this.dispatched=!1)}},e.SCROLL_FRICTION=-.005,e.HOLD_DELAY=700,e.CLEAR_TAP_COUNT_TIME=400,e),Fct([Hc],Ap,"isTouchDevice",null)}}),Ov,mw=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/widget.js"(){Fn(),mf(),Cb(),Q0(),Nt(),Ov=class extends St{onclick(e,t){this._register(qt(e,kn.CLICK,n=>t(new Vy(Yi(e),n))))}onmousedown(e,t){this._register(qt(e,kn.MOUSE_DOWN,n=>t(new Vy(Yi(e),n))))}onmouseover(e,t){this._register(qt(e,kn.MOUSE_OVER,n=>t(new Vy(Yi(e),n))))}onmouseleave(e,t){this._register(qt(e,kn.MOUSE_LEAVE,n=>t(new Vy(Yi(e),n))))}onkeydown(e,t){this._register(qt(e,kn.KEY_DOWN,n=>t(new Sa(n))))}onkeyup(e,t){this._register(qt(e,kn.KEY_UP,n=>t(new Sa(n))))}oninput(e,t){this._register(qt(e,kn.INPUT,t))}onblur(e,t){this._register(qt(e,kn.BLUR,t))}onfocus(e,t){this._register(qt(e,kn.FOCUS,t))}ignoreGesture(e){return Ap.ignoreTarget(e)}}}}),pR,x$t,$He=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollbarArrow.js"(){YK(),mw(),fr(),Ra(),Fn(),pR=11,x$t=class extends Ov{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px",typeof e.top<"u"&&(this.bgDomNode.style.top="0px"),typeof e.left<"u"&&(this.bgDomNode.style.left="0px"),typeof e.bottom<"u"&&(this.bgDomNode.style.bottom="0px"),typeof e.right<"u"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...lr.asClassNameArray(e.icon)),this.domNode.style.position="absolute",this.domNode.style.width=pR+"px",this.domNode.style.height=pR+"px",typeof e.top<"u"&&(this.domNode.style.top=e.top+"px"),typeof e.left<"u"&&(this.domNode.style.left=e.left+"px"),typeof e.bottom<"u"&&(this.domNode.style.bottom=e.bottom+"px"),typeof e.right<"u"&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new KR),this._register(Il(this.bgDomNode,kn.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._register(Il(this.domNode,kn.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._pointerdownRepeatTimer=this._register(new jpe),this._pointerdownScheduleRepeatTimer=this._register(new Sb)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=()=>{this._pointerdownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24,Yi(e))};this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet(t,200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,n=>{},()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()}),e.preventDefault()}}}}),E$t,Fzn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollbarVisibilityController.js"(){fr(),Nt(),E$t=class extends St{constructor(e,t,n){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=n,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new Sb)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{this._domNode?.setClassName(this._visibleClassName)},0))}_hide(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode?.setClassName(this._invisibleClassName+(e?" fade":"")))}}}}),Bct,qHe,A$t=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/abstractScrollbar.js"(){Fn(),_d(),YK(),$He(),Fzn(),mw(),Xr(),Bct=140,qHe=class extends Ov{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new E$t(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new KR),this._shouldRender=!0,this.domNode=Ds(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(qt(this.domNode.domNode,kn.POINTER_DOWN,t=>this._domNodePointerDown(t)))}_createArrow(e){const t=this._register(new x$t(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,n,i){this.slider=Ds(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),typeof n=="number"&&this.slider.setWidth(n),typeof i=="number"&&this.slider.setHeight(i),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(qt(this.slider.domNode,kn.POINTER_DOWN,r=>{r.button===0&&(r.preventDefault(),this._sliderPointerDown(r))})),this.onclick(this.slider.domNode,r=>{r.leftButton&&r.stopPropagation()})}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){const t=this.domNode.domNode.getClientRects()[0].top,n=t+this._scrollbarState.getSliderPosition(),i=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),r=this._sliderPointerPosition(e);n<=r&&r<=i?e.button===0&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,n;if(e.target===this.domNode.domNode&&typeof e.offsetX=="number"&&typeof e.offsetY=="number")t=e.offsetX,n=e.offsetY;else{const r=_c(this.domNode.domNode);t=e.pageX-r.left,n=e.pageY-r.top}const i=this._pointerDownRelativePosition(t,n);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(i):this._scrollbarState.getDesiredScrollPositionFromOffset(i)),e.button===0&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._sliderPointerPosition(e),n=this._sliderOrthogonalPointerPosition(e),i=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,r=>{const o=this._sliderOrthogonalPointerPosition(r),s=Math.abs(o-n);if(Ch&&s>Bct){this._setDesiredScrollPositionNow(i.getScrollPosition());return}const l=this._sliderPointerPosition(r)-t;this._setDesiredScrollPositionNow(i.getDesiredScrollPositionFromDelta(l))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}}}),jct,sge,GHe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollbarState.js"(){jct=20,sge=class o4e{constructor(t,n,i,r,o,s){this._scrollbarSize=Math.round(n),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(t),this._visibleSize=r,this._scrollSize=o,this._scrollPosition=s,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new o4e(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(t){const n=Math.round(t);return this._visibleSize!==n?(this._visibleSize=n,this._refreshComputedValues(),!0):!1}setScrollSize(t){const n=Math.round(t);return this._scrollSize!==n?(this._scrollSize=n,this._refreshComputedValues(),!0):!1}setScrollPosition(t){const n=Math.round(t);return this._scrollPosition!==n?(this._scrollPosition=n,this._refreshComputedValues(),!0):!1}setScrollbarSize(t){this._scrollbarSize=Math.round(t)}setOppositeScrollbarSize(t){this._oppositeScrollbarSize=Math.round(t)}static _computeValues(t,n,i,r,o){const s=Math.max(0,i-t),a=Math.max(0,s-2*n),l=r>0&&r>i;if(!l)return{computedAvailableSize:Math.round(s),computedIsNeeded:l,computedSliderSize:Math.round(a),computedSliderRatio:0,computedSliderPosition:0};const c=Math.round(Math.max(jct,Math.floor(i*a/r))),u=(a-c)/(r-i),d=o*u;return{computedAvailableSize:Math.round(s),computedIsNeeded:l,computedSliderSize:Math.round(c),computedSliderRatio:u,computedSliderPosition:Math.round(d)}}_refreshComputedValues(){const t=o4e._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(t){if(!this._computedIsNeeded)return 0;const n=t-this._arrowSize-this._computedSliderSize/2;return Math.round(n/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(t){if(!this._computedIsNeeded)return 0;const n=t-this._arrowSize;let i=this._scrollPosition;return n<this._computedSliderPosition?i-=this._visibleSize:i+=this._visibleSize,i}getDesiredScrollPositionFromDelta(t){if(!this._computedIsNeeded)return 0;const n=this._computedSliderPosition+t;return Math.round(n/this._computedSliderRatio)}}}}),D$t,Bzn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/horizontalScrollbar.js"(){Cb(),A$t(),$He(),GHe(),ia(),D$t=class extends qHe{constructor(e,t,n){const i=e.getScrollDimensions(),r=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:n,scrollbarState:new sge(t.horizontalHasArrows?t.arrowSize:0,t.horizontal===2?0:t.horizontalScrollbarSize,t.vertical===2?0:t.verticalScrollbarSize,i.width,i.scrollWidth,r.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows){const o=(t.arrowSize-pR)/2,s=(t.horizontalScrollbarSize-pR)/2;this._createArrow({className:"scra",icon:An.scrollbarButtonLeft,top:s,left:o,bottom:void 0,right:void 0,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new DL(null,1,0))}),this._createArrow({className:"scra",icon:An.scrollbarButtonRight,top:s,left:void 0,bottom:void 0,right:o,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new DL(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(e.horizontal===2?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}}}),T$t,jzn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/verticalScrollbar.js"(){Cb(),A$t(),$He(),GHe(),ia(),T$t=class extends qHe{constructor(e,t,n){const i=e.getScrollDimensions(),r=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:n,scrollbarState:new sge(t.verticalHasArrows?t.arrowSize:0,t.vertical===2?0:t.verticalScrollbarSize,0,i.height,i.scrollHeight,r.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const o=(t.arrowSize-pR)/2,s=(t.verticalScrollbarSize-pR)/2;this._createArrow({className:"scra",icon:An.scrollbarButtonUp,top:o,left:s,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new DL(null,0,1))}),this._createArrow({className:"scra",icon:An.scrollbarButtonDown,top:void 0,left:s,bottom:o,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new DL(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}}});function R1e(e,t){const n=t-e;return function(i){return e+n*Hzn(i)}}function zzn(e,t,n){return function(i){return i<n?e(i/n):t((i-n)/(1-n))}}function Vzn(e){return Math.pow(e,3)}function Hzn(e){return 1-Vzn(1-e)}var zct,XR,F1e,B1e,cY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/scrollable.js"(){Un(),Nt(),zct=class s4e{constructor(t,n,i,r,o,s,a){this._forceIntegerValues=t,this._scrollStateBrand=void 0,this._forceIntegerValues&&(n=n|0,i=i|0,r=r|0,o=o|0,s=s|0,a=a|0),this.rawScrollLeft=r,this.rawScrollTop=a,n<0&&(n=0),r+n>i&&(r=i-n),r<0&&(r=0),o<0&&(o=0),a+o>s&&(a=s-o),a<0&&(a=0),this.width=n,this.scrollWidth=i,this.scrollLeft=r,this.height=o,this.scrollHeight=s,this.scrollTop=a}equals(t){return this.rawScrollLeft===t.rawScrollLeft&&this.rawScrollTop===t.rawScrollTop&&this.width===t.width&&this.scrollWidth===t.scrollWidth&&this.scrollLeft===t.scrollLeft&&this.height===t.height&&this.scrollHeight===t.scrollHeight&&this.scrollTop===t.scrollTop}withScrollDimensions(t,n){return new s4e(this._forceIntegerValues,typeof t.width<"u"?t.width:this.width,typeof t.scrollWidth<"u"?t.scrollWidth:this.scrollWidth,n?this.rawScrollLeft:this.scrollLeft,typeof t.height<"u"?t.height:this.height,typeof t.scrollHeight<"u"?t.scrollHeight:this.scrollHeight,n?this.rawScrollTop:this.scrollTop)}withScrollPosition(t){return new s4e(this._forceIntegerValues,this.width,this.scrollWidth,typeof t.scrollLeft<"u"?t.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof t.scrollTop<"u"?t.scrollTop:this.rawScrollTop)}createScrollEvent(t,n){const i=this.width!==t.width,r=this.scrollWidth!==t.scrollWidth,o=this.scrollLeft!==t.scrollLeft,s=this.height!==t.height,a=this.scrollHeight!==t.scrollHeight,l=this.scrollTop!==t.scrollTop;return{inSmoothScrolling:n,oldWidth:t.width,oldScrollWidth:t.scrollWidth,oldScrollLeft:t.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:t.height,oldScrollHeight:t.scrollHeight,oldScrollTop:t.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:r,scrollLeftChanged:o,heightChanged:s,scrollHeightChanged:a,scrollTopChanged:l}}},XR=class extends St{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new bt),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new zct(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){const n=this._state.withScrollDimensions(e,t);this._setState(n,!!this._smoothScrolling),this._smoothScrolling?.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:typeof e.scrollLeft>"u"?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:typeof e.scrollTop>"u"?this._smoothScrolling.to.scrollTop:e.scrollTop};const n=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===n.scrollLeft&&this._smoothScrolling.to.scrollTop===n.scrollTop)return;let i;t?i=new B1e(this._smoothScrolling.from,n,this._smoothScrolling.startTime,this._smoothScrolling.duration):i=this._smoothScrolling.combine(this._state,n,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=i}else{const n=this._state.withScrollPosition(e);this._smoothScrolling=B1e.start(this._state,n,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}hasPendingScrollAnimation(){return!!this._smoothScrolling}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);if(this._setState(t,!0),!!this._smoothScrolling){if(e.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(e,t){const n=this._state;n.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(n,t)))}},F1e=class{constructor(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n}},B1e=class a4e{constructor(t,n,i,r){this.from=t,this.to=n,this.duration=r,this.startTime=i,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(t,n,i){if(Math.abs(t-n)>2.5*i){let o,s;return t<n?(o=t+.75*i,s=n-.75*i):(o=t-.75*i,s=n+.75*i),zzn(R1e(t,o),R1e(s,n),.33)}return R1e(t,n)}dispose(){this.animationFrameDisposable!==null&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(t){this.to=t.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(t){const n=(t-this.startTime)/this.duration;if(n<1){const i=this.scrollLeft(n),r=this.scrollTop(n);return new F1e(i,r,!1)}return new F1e(this.to.scrollLeft,this.to.scrollTop,!0)}combine(t,n,i){return a4e.start(t,n,i)}static start(t,n,i){i=i+10;const r=Date.now()-10;return new a4e(t,n,r,i)}}}}),Wzn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/media/scrollbars.css"(){}});function Uzn(e){const t={lazyRender:typeof e.lazyRender<"u"?e.lazyRender:!1,className:typeof e.className<"u"?e.className:"",useShadows:typeof e.useShadows<"u"?e.useShadows:!0,handleMouseWheel:typeof e.handleMouseWheel<"u"?e.handleMouseWheel:!0,flipAxes:typeof e.flipAxes<"u"?e.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof e.consumeMouseWheelIfScrollbarIsNeeded<"u"?e.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof e.alwaysConsumeMouseWheel<"u"?e.alwaysConsumeMouseWheel:!1,scrollYToX:typeof e.scrollYToX<"u"?e.scrollYToX:!1,mouseWheelScrollSensitivity:typeof e.mouseWheelScrollSensitivity<"u"?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof e.fastScrollSensitivity<"u"?e.fastScrollSensitivity:5,scrollPredominantAxis:typeof e.scrollPredominantAxis<"u"?e.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof e.mouseWheelSmoothScroll<"u"?e.mouseWheelSmoothScroll:!0,arrowSize:typeof e.arrowSize<"u"?e.arrowSize:11,listenOnDomNode:typeof e.listenOnDomNode<"u"?e.listenOnDomNode:null,horizontal:typeof e.horizontal<"u"?e.horizontal:1,horizontalScrollbarSize:typeof e.horizontalScrollbarSize<"u"?e.horizontalScrollbarSize:10,horizontalSliderSize:typeof e.horizontalSliderSize<"u"?e.horizontalSliderSize:0,horizontalHasArrows:typeof e.horizontalHasArrows<"u"?e.horizontalHasArrows:!1,vertical:typeof e.vertical<"u"?e.vertical:1,verticalScrollbarSize:typeof e.verticalScrollbarSize<"u"?e.verticalScrollbarSize:10,verticalHasArrows:typeof e.verticalHasArrows<"u"?e.verticalHasArrows:!1,verticalSliderSize:typeof e.verticalSliderSize<"u"?e.verticalSliderSize:0,scrollByPage:typeof e.scrollByPage<"u"?e.scrollByPage:!1};return t.horizontalSliderSize=typeof e.horizontalSliderSize<"u"?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=typeof e.verticalSliderSize<"u"?e.verticalSliderSize:t.verticalScrollbarSize,xo&&(t.className+=" mac"),t}var Vct,j1e,z1e,Hct,l4e,LJ,KHe,uY,N7,vw=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollableElement.js"(){var e;zv(),Fn(),_d(),Cb(),Bzn(),jzn(),mw(),fr(),Un(),Nt(),Xr(),cY(),Wzn(),Vct=500,j1e=50,z1e=!0,Hct=class{constructor(t,n,i){this.timestamp=t,this.deltaX=n,this.deltaY=i,this.score=0}},l4e=(e=class{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(this._front===-1&&this._rear===-1)return!1;let n=1,i=0,r=1,o=this._rear;do{const s=o===this._front?n:Math.pow(2,-r);if(n-=s,i+=this._memory[o].score*s,o===this._front)break;o=(this._capacity+o-1)%this._capacity,r++}while(!0);return i<=.5}acceptStandardWheelEvent(n){if(j6){const i=Yi(n.browserEvent),r=c9n(i);this.accept(Date.now(),n.deltaX*r,n.deltaY*r)}else this.accept(Date.now(),n.deltaX,n.deltaY)}accept(n,i,r){let o=null;const s=new Hct(n,i,r);this._front===-1&&this._rear===-1?(this._memory[0]=s,this._front=0,this._rear=0):(o=this._memory[this._rear],this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=s),s.score=this._computeScore(s,o)}_computeScore(n,i){if(Math.abs(n.deltaX)>0&&Math.abs(n.deltaY)>0)return 1;let r=.5;if((!this._isAlmostInt(n.deltaX)||!this._isAlmostInt(n.deltaY))&&(r+=.25),i){const o=Math.abs(n.deltaX),s=Math.abs(n.deltaY),a=Math.abs(i.deltaX),l=Math.abs(i.deltaY),c=Math.max(Math.min(o,a),1),u=Math.max(Math.min(s,l),1),d=Math.max(o,a),h=Math.max(s,l);d%c===0&&h%u===0&&(r-=.5)}return Math.min(Math.max(r,0),1)}_isAlmostInt(n){return Math.abs(Math.round(n)-n)<.01}},e.INSTANCE=new e,e),LJ=class extends Ov{get options(){return this._options}constructor(t,n,i){super(),this._onScroll=this._register(new bt),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new bt),t.style.overflow="hidden",this._options=Uzn(n),this._scrollable=i,this._register(this._scrollable.onScroll(o=>{this._onWillScroll.fire(o),this._onDidScroll(o),this._onScroll.fire(o)}));const r={onMouseWheel:o=>this._onMouseWheel(o),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new T$t(this._scrollable,this._options,r)),this._horizontalScrollbar=this._register(new D$t(this._scrollable,this._options,r)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(t),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=Ds(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=Ds(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=Ds(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,o=>this._onMouseOver(o)),this.onmouseleave(this._listenOnDomNode,o=>this._onMouseLeave(o)),this._hideTimeout=this._register(new Sb),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=xa(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(t){this._verticalScrollbar.delegatePointerDown(t)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(t){this._scrollable.setScrollDimensions(t,!1)}updateClassName(t){this._options.className=t,xo&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(t){typeof t.handleMouseWheel<"u"&&(this._options.handleMouseWheel=t.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof t.mouseWheelScrollSensitivity<"u"&&(this._options.mouseWheelScrollSensitivity=t.mouseWheelScrollSensitivity),typeof t.fastScrollSensitivity<"u"&&(this._options.fastScrollSensitivity=t.fastScrollSensitivity),typeof t.scrollPredominantAxis<"u"&&(this._options.scrollPredominantAxis=t.scrollPredominantAxis),typeof t.horizontal<"u"&&(this._options.horizontal=t.horizontal),typeof t.vertical<"u"&&(this._options.vertical=t.vertical),typeof t.horizontalScrollbarSize<"u"&&(this._options.horizontalScrollbarSize=t.horizontalScrollbarSize),typeof t.verticalScrollbarSize<"u"&&(this._options.verticalScrollbarSize=t.verticalScrollbarSize),typeof t.scrollByPage<"u"&&(this._options.scrollByPage=t.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}delegateScrollFromMouseWheelEvent(t){this._onMouseWheel(new DL(t))}_setListeningToMouseWheel(t){if(this._mouseWheelToDispose.length>0!==t&&(this._mouseWheelToDispose=xa(this._mouseWheelToDispose),t)){const i=r=>{this._onMouseWheel(new DL(r))};this._mouseWheelToDispose.push(qt(this._listenOnDomNode,kn.MOUSE_WHEEL,i,{passive:!1}))}}_onMouseWheel(t){if(t.browserEvent?.defaultPrevented)return;const n=l4e.INSTANCE;z1e&&n.acceptStandardWheelEvent(t);let i=!1;if(t.deltaY||t.deltaX){let o=t.deltaY*this._options.mouseWheelScrollSensitivity,s=t.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&s+o===0?s=o=0:Math.abs(o)>=Math.abs(s)?s=0:o=0),this._options.flipAxes&&([o,s]=[s,o]);const a=!xo&&t.browserEvent&&t.browserEvent.shiftKey;(this._options.scrollYToX||a)&&!s&&(s=o,o=0),t.browserEvent&&t.browserEvent.altKey&&(s=s*this._options.fastScrollSensitivity,o=o*this._options.fastScrollSensitivity);const l=this._scrollable.getFutureScrollPosition();let c={};if(o){const u=j1e*o,d=l.scrollTop-(u<0?Math.floor(u):Math.ceil(u));this._verticalScrollbar.writeScrollPosition(c,d)}if(s){const u=j1e*s,d=l.scrollLeft-(u<0?Math.floor(u):Math.ceil(u));this._horizontalScrollbar.writeScrollPosition(c,d)}c=this._scrollable.validateScrollPosition(c),(l.scrollLeft!==c.scrollLeft||l.scrollTop!==c.scrollTop)&&(z1e&&this._options.mouseWheelSmoothScroll&&n.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(c):this._scrollable.setScrollPositionNow(c),i=!0)}let r=i;!r&&this._options.alwaysConsumeMouseWheel&&(r=!0),!r&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(r=!0),r&&(t.preventDefault(),t.stopPropagation())}_onDidScroll(t){this._shouldRender=this._horizontalScrollbar.onDidScroll(t)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(t)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const t=this._scrollable.getCurrentScrollPosition(),n=t.scrollTop>0,i=t.scrollLeft>0,r=i?" left":"",o=n?" top":"",s=i||n?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${r}`),this._topShadowDomNode.setClassName(`shadow${o}`),this._topLeftShadowDomNode.setClassName(`shadow${s}${o}${r}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(t){this._mouseIsOver=!1,this._hide()}_onMouseOver(t){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),Vct)}},KHe=class extends LJ{constructor(t,n){n=n||{},n.mouseWheelSmoothScroll=!1;const i=new XR({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:r=>Nv(Yi(t),r)});super(t,n,i),this._register(i)}setScrollPosition(t){this._scrollable.setScrollPositionNow(t)}},uY=class extends LJ{constructor(t,n,i){super(t,n,i)}setScrollPosition(t){t.reuseAnimation?this._scrollable.setScrollPositionSmooth(t,t.reuseAnimation):this._scrollable.setScrollPositionNow(t)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}},N7=class extends LJ{constructor(t,n){n=n||{},n.mouseWheelSmoothScroll=!1;const i=new XR({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:r=>Nv(Yi(t),r)});super(t,n,i),this._register(i),this._element=t,this._register(this.onScroll(r=>{r.scrollTopChanged&&(this._element.scrollTop=r.scrollTop),r.scrollLeftChanged&&(this._element.scrollLeft=r.scrollLeft)})),this.scanDomNode()}setScrollPosition(t){this._scrollable.setScrollPositionNow(t)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}}}),$zn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverWidget.css"(){}});function k$t(e,t){return e&&t?R("acessibleViewHint","Inspect this in the accessible view with {0}.",t):e?R("acessibleViewHintNoKbOpen","Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):""}var Yz,age,YHe,c4e,u4e,dY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverWidget.js"(){Fn(),mf(),vw(),Nt(),$zn(),bn(),Yz=In,age=class extends St{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new N7(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}},YHe=class I$t extends St{static render(t,n,i){return new I$t(t,n,i)}constructor(t,n,i){super(),this.actionLabel=n.label,this.actionKeybindingLabel=i,this.actionContainer=hn(t,Yz("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=hn(this.actionContainer,Yz("a.action")),this.action.setAttribute("role","button"),n.iconClass&&hn(this.action,Yz(`span.icon.${n.iconClass}`));const r=hn(this.action,Yz("span"));r.textContent=i?`${n.label} (${i})`:n.label,this._store.add(new c4e(this.actionContainer,n.run)),this._store.add(new u4e(this.actionContainer,n.run,[3,10])),this.setEnabled(!0)}setEnabled(t){t?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}},c4e=class extends St{constructor(e,t){super(),this._register(qt(e,kn.CLICK,n=>{n.stopPropagation(),n.preventDefault(),t(e)}))}},u4e=class extends St{constructor(e,t,n){super(),this._register(qt(e,kn.KEY_DOWN,i=>{const r=new Sa(i);n.some(o=>r.equals(o))&&(i.stopPropagation(),i.preventDefault(),t(e))}))}}}});function qzn(e){let t;const n=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(e.fragment);return n&&(t={startLineNumber:parseInt(n[1]),startColumn:n[2]?parseInt(n[2]):1,endLineNumber:n[4]?parseInt(n[4]):void 0,endColumn:n[4]?n[5]?parseInt(n[5]):1:void 0},e=e.with({fragment:""})),{selection:t,uri:e}}var Eg,Ag=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/opener/common/opener.js"(){li(),Eg=Ao("openerService")}}),ko,UC=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/event.js"(){Un(),ko=class{get event(){return this.emitter.event}constructor(e,t,n){const i=r=>this.emitter.fire(r);this.emitter=new bt({onWillAddFirstListener:()=>e.addEventListener(t,i,n),onDidRemoveLastListener:()=>e.removeEventListener(t,i,n)})}dispose(){this.emitter.dispose()}}}});function Gzn(e,t={}){const n=QHe(t);return n.textContent=e,n}function Kzn(e,t={}){const n=QHe(t);return L$t(n,Yzn(e,!!t.renderCodeSegments),t.actionHandler,t.renderCodeSegments),n}function QHe(e){const t=e.inline?"span":"div",n=document.createElement(t);return e.className&&(n.className=e.className),n}function L$t(e,t,n,i){let r;if(t.type===2)r=document.createTextNode(t.content||"");else if(t.type===3)r=document.createElement("b");else if(t.type===4)r=document.createElement("i");else if(t.type===7&&i)r=document.createElement("code");else if(t.type===5&&n){const o=document.createElement("a");n.disposables.add(Il(o,"click",s=>{n.callback(String(t.index),s)})),r=o}else t.type===8?r=document.createElement("br"):t.type===1&&(r=e);r&&e!==r&&e.appendChild(r),r&&Array.isArray(t.children)&&t.children.forEach(o=>{L$t(r,o,n,i)})}function Yzn(e,t){const n={type:1,children:[]};let i=0,r=n;const o=[],s=new N$t(e);for(;!s.eos();){let a=s.next();const l=a==="\\"&&d4e(s.peek(),t)!==0;if(l&&(a=s.next()),!l&&Qzn(a,t)&&a===s.peek()){s.advance(),r.type===2&&(r=o.pop());const c=d4e(a,t);if(r.type===c||r.type===5&&c===6)r=o.pop();else{const u={type:c,children:[]};c===5&&(u.index=i,i++),r.children.push(u),o.push(r),r=u}}else if(a===`
`)r.type===2&&(r=o.pop()),r.children.push({type:8});else if(r.type!==2){const c={type:2,content:a};r.children.push(c),o.push(r),r=c}else r.content+=a}return r.type===2&&(r=o.pop()),n}function Qzn(e,t){return d4e(e,t)!==0}function d4e(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}var N$t,P$t=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/formattedTextRenderer.js"(){Fn(),N$t=class{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}}});function aL(e){const t=new Array;let n,i=0,r=0;for(;(n=M$t.exec(e))!==null;){r=n.index||0,i<r&&t.push(e.substring(i,r)),i=(n.index||0)+n[0].length;const[,o,s]=n;t.push(o?`$(${s})`:gR({id:s}))}return i<e.length&&t.push(e.substring(i)),t}function gR(e){const t=In("span");return t.classList.add(...lr.asClassNameArray(e)),t}var M$t,MN=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/iconLabel/iconLabels.js"(){Fn(),Ra(),M$t=new RegExp(`(\\\\)?\\$\\((${lr.iconNameExpression}(?:${lr.iconModifierExpression})?)\\)`,"g")}});function Zzn(e){const t=Xzn(e);if(t&&t.length>0)return new Uint32Array(t)}function Xzn(e){if(Vm=0,wS(e,dse,4352),Vm>0||(wS(e,hse,4449),Vm>0)||(wS(e,fse,4520),Vm>0)||(wS(e,Yk,12593),Vm))return ZA.subarray(0,Vm);if(e>=44032&&e<=55203){const t=e-44032,n=t%588,i=Math.floor(t/588),r=Math.floor(n/28),o=n%28-1;if(i<dse.length?wS(i,dse,0):4352+i-12593<Yk.length&&wS(4352+i,Yk,12593),r<hse.length?wS(r,hse,0):4449+r-12593<Yk.length&&wS(4449+r-12593,Yk,12593),o>=0&&(o<fse.length?wS(o,fse,0):4520+o-12593<Yk.length&&wS(4520+o-12593,Yk,12593)),Vm>0)return ZA.subarray(0,Vm)}}function wS(e,t,n){e>=n&&e<n+t.length&&Jzn(t[e-n])}function Jzn(e){e!==0&&(ZA[Vm++]=e&255,e>>8&&(ZA[Vm++]=e>>8&255),e>>16&&(ZA[Vm++]=e>>16&255))}var Vm,ZA,dse,hse,fse,Yk,eVn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/naturalLanguage/korean.js"(){Vm=0,ZA=new Uint32Array(10),dse=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),hse=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),fse=new Uint16Array([114,82,29810,115,30579,26483,101,102,29286,24934,29030,29798,30822,30310,26470,97,113,29809,116,84,100,119,99,122,120,118,103]),Yk=new Uint16Array([114,82,29810,115,30579,26483,101,69,102,29286,24934,29030,29798,30822,30310,26470,97,113,81,29809,116,84,100,119,87,99,122,120,118,103,107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108])}});function h4e(...e){return function(t,n){for(let i=0,r=e.length;i<r;i++){const o=e[i](t,n);if(o)return o}return null}}function Wct(e,t,n){if(!n||n.length<t.length)return null;let i;return e?i=j3e(n,t):i=n.indexOf(t)===0,i?t.length>0?[{start:0,end:t.length}]:[]:null}function O$t(e,t){const n=t.toLowerCase().indexOf(e.toLowerCase());return n===-1?null:[{start:n,end:n+e.length}]}function R$t(e,t){return f4e(e.toLowerCase(),t.toLowerCase(),0,0)}function f4e(e,t,n,i){if(n===e.length)return[];if(i===t.length)return null;if(e[n]===t[i]){let r=null;return(r=f4e(e,t,n+1,i+1))?JHe({start:i,end:i+1},r):null}return f4e(e,t,n,i+1)}function ZHe(e){return 97<=e&&e<=122}function lge(e){return 65<=e&&e<=90}function XHe(e){return 48<=e&&e<=57}function F$t(e){return e===32||e===9||e===10||e===13}function $ue(e){return F$t(e)||m4e.has(e)}function Uct(e,t){return e===t||$ue(e)&&$ue(t)}function $ct(e){if(gse.has(e))return gse.get(e);let t;const n=Zzn(e);return n&&(t=n),gse.set(e,t),t}function B$t(e){return ZHe(e)||lge(e)||XHe(e)}function JHe(e,t){return t.length===0?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function j$t(e,t){for(let n=t;n<e.length;n++){const i=e.charCodeAt(n);if(lge(i)||XHe(i)||n>0&&!B$t(e.charCodeAt(n-1)))return n}return e.length}function p4e(e,t,n,i){if(n===e.length)return[];if(i===t.length)return null;if(e[n]!==t[i].toLowerCase())return null;{let r=null,o=i+1;for(r=p4e(e,t,n+1,i+1);!r&&(o=j$t(t,o))<t.length;)r=p4e(e,t,n+1,o),o++;return r===null?null:JHe({start:i,end:i+1},r)}}function tVn(e){let t=0,n=0,i=0,r=0,o=0;for(let u=0;u<e.length;u++)o=e.charCodeAt(u),lge(o)&&t++,ZHe(o)&&n++,B$t(o)&&i++,XHe(o)&&r++;const s=t/e.length,a=n/e.length,l=i/e.length,c=r/e.length;return{upperPercent:s,lowerPercent:a,alphaPercent:l,numericPercent:c}}function nVn(e){const{upperPercent:t,lowerPercent:n}=e;return n===0&&t>.6}function iVn(e){const{upperPercent:t,lowerPercent:n,alphaPercent:i,numericPercent:r}=e;return n>.2&&t<.8&&i>.6&&r<.2}function rVn(e){let t=0,n=0,i=0,r=0;for(let o=0;o<e.length;o++)i=e.charCodeAt(o),lge(i)&&t++,ZHe(i)&&n++,F$t(i)&&r++;return(t===0||n===0)&&r===0?e.length<=30:t<=5}function qct(e,t){if(!t||(t=t.trim(),t.length===0)||!rVn(e))return null;t.length>60&&(t=t.substring(0,60));const n=tVn(t);if(!iVn(n)){if(!nVn(n))return null;t=t.toLowerCase()}let i=null,r=0;for(e=e.toLowerCase();r<t.length&&(i=p4e(e,t,0,r))===null;)r=j$t(t,r+1);return i}function oVn(e,t,n=!1){if(!t||t.length===0)return null;let i=null,r=0;for(e=e.toLowerCase(),t=t.toLowerCase();r<t.length&&(i=g4e(e,t,0,r,n),i===null);)r=z$t(t,r+1);return i}function g4e(e,t,n,i,r){let o=0;if(n===e.length)return[];if(i===t.length)return null;if(!Uct(e.charCodeAt(n),t.charCodeAt(i))){const l=$ct(e.charCodeAt(n));if(!l)return null;for(let c=0;c<l.length;c++)if(!Uct(l[c],t.charCodeAt(i+c)))return null;o+=l.length-1}let s=null,a=i+o+1;if(s=g4e(e,t,n+1,a,r),!r)for(;!s&&(a=z$t(t,a))<t.length;)s=g4e(e,t,n+1,a,r),a++;if(!s)return null;if(e.charCodeAt(n)!==t.charCodeAt(i)){const l=$ct(e.charCodeAt(n));if(!l)return s;for(let c=0;c<l.length;c++)if(l[c]!==t.charCodeAt(i+c))return s}return JHe({start:i,end:i+o+1},s)}function z$t(e,t){for(let n=t;n<e.length;n++)if($ue(e.charCodeAt(n))||n>0&&$ue(e.charCodeAt(n-1)))return n;return e.length}function Gct(e,t,n=!1){if(typeof e!="string"||typeof t!="string")return null;let i=v4e.get(e);i||(i=new RegExp(b9n(e),"i"),v4e.set(e,i));const r=i.exec(t);return r?[{start:r.index,end:r.index+r[0].length}]:n?H$t(e,t):V$t(e,t)}function sVn(e,t){const n=JR(e,e.toLowerCase(),0,t,t.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return n?eG(n):null}function aVn(e,t,n,i,r,o){const s=Math.min(13,e.length);for(;n<s;n++){const a=JR(e,t,n,i,r,o,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(a)return a}return[0,o]}function eG(e){if(typeof e>"u")return[];const t=[],n=e[1];for(let i=e.length-1;i>1;i--){const r=e[i]+n,o=t[t.length-1];o&&o.end===r?o.end=r+1:t.push({start:r,end:r+1})}return t}function V1e(){const e=[],t=[];for(let n=0;n<=hD;n++)t[n]=0;for(let n=0;n<=hD;n++)e.push(t.slice(0));return e}function Kct(e){const t=[];for(let n=0;n<=e;n++)t[n]=0;return t}function H1e(e,t,n,i,r){function o(a,l,c=" "){for(;a.length<l;)a=c+a;return a}let s=` |   |${i.split("").map(a=>o(a,3)).join("|")}
`;for(let a=0;a<=n;a++)a===0?s+=" |":s+=`${t[a-1]}|`,s+=e[a].slice(0,r+1).map(l=>o(l.toString(),3)).join("|")+`
`;return s}function lVn(e,t,n,i){e=e.substr(t),n=n.substr(i),console.log(H1e(RA,e,e.length,n,n.length)),console.log(H1e(r6,e,e.length,n,n.length)),console.log(H1e(w1,e,e.length,n,n.length))}function NJ(e,t){if(t<0||t>=e.length)return!1;const n=e.codePointAt(t);switch(n){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!H3e(n)}}function Yct(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function pse(e,t,n){return t[e]!==n[e]}function cVn(e,t,n,i,r,o,s=!1){for(;t<n&&r<o;)e[t]===i[r]&&(s&&(eWe[t]=r),t+=1),r+=1;return t===n}function JR(e,t,n,i,r,o,s=cge.default){const a=e.length>hD?hD:e.length,l=i.length>hD?hD:i.length;if(n>=a||o>=l||a-n>l-o||!cVn(t,n,a,r,o,l,!0))return;uVn(a,l,n,o,t,r);let c=1,u=1,d=n,h=o;const f=[!1];for(c=1,d=n;d<a;c++,d++){const y=eWe[d],b=que[d],w=d+1<a?que[d+1]:l;for(u=y-o+1,h=y;h<w;u++,h++){let E=Number.MIN_SAFE_INTEGER,A=!1;h<=b&&(E=dVn(e,t,d,n,i,r,h,l,o,w1[c-1][u-1]===0,f));let D=0;E!==Number.MAX_SAFE_INTEGER&&(A=!0,D=E+RA[c-1][u-1]);const T=h>y,M=T?RA[c][u-1]+(w1[c][u-1]>0?-5:0):0,P=h>y+1&&w1[c][u-1]>0,F=P?RA[c][u-2]+(w1[c][u-2]>0?-5:0):0;if(P&&(!T||F>=M)&&(!A||F>=D))RA[c][u]=F,r6[c][u]=3,w1[c][u]=0;else if(T&&(!A||M>=D))RA[c][u]=M,r6[c][u]=2,w1[c][u]=0;else if(A)RA[c][u]=D,r6[c][u]=1,w1[c][u]=w1[c-1][u-1]+1;else throw new Error("not possible")}}if(W$t&&lVn(e,n,i,o),!f[0]&&!s.firstMatchCanBeWeak)return;c--,u--;const p=[RA[c][u],o];let g=0,m=0;for(;c>=1;){let y=u;do{const b=r6[c][y];if(b===3)y=y-2;else if(b===2)y=y-1;else break}while(y>=1);g>1&&t[n+c-1]===r[o+u-1]&&!pse(y+o-1,i,r)&&g+1>w1[c][y]&&(y=u),y===u?g++:g=1,m||(m=y),c--,u=y-1,p.push(u)}l-o===a&&s.boostFullMatch&&(p[0]+=2);const v=m-a;return p[0]-=v,p}function uVn(e,t,n,i,r,o){let s=e-1,a=t-1;for(;s>=n&&a>=i;)r[s]===o[a]&&(que[s]=a,s--),a--}function dVn(e,t,n,i,r,o,s,a,l,c,u){if(t[n]!==o[s])return Number.MIN_SAFE_INTEGER;let d=1,h=!1;return s===n-i?d=e[n]===r[s]?7:5:pse(s,r,o)&&(s===0||!pse(s-1,r,o))?(d=e[n]===r[s]?7:5,h=!0):NJ(o,s)&&(s===0||!NJ(o,s-1))?d=5:(NJ(o,s-1)||Yct(o,s-1))&&(d=5,h=!0),d>1&&n===i&&(u[0]=!0),h||(h=pse(s,r,o)||NJ(o,s-1)||Yct(o,s-1)),n===i?s>l&&(d-=h?3:5):c?d+=h?2:0:d+=h?0:1,s+1===a&&(d-=h?3:5),d}function hVn(e,t,n,i,r,o,s){return fVn(e,t,n,i,r,o,!0,s)}function fVn(e,t,n,i,r,o,s,a){let l=JR(e,t,n,i,r,o,a);if(e.length>=3){const c=Math.min(7,e.length-1);for(let u=n+1;u<c;u++){const d=pVn(e,u);if(d){const h=JR(d,d.toLowerCase(),n,i,r,o,a);h&&(h[0]-=3,(!l||h[0]>l[0])&&(l=h))}}}return l}function pVn(e,t){if(t+1>=e.length)return;const n=e[t],i=e[t+1];if(n!==i)return e.slice(0,t)+i+n+e.slice(t+2)}var W6,m4e,gse,V$t,H$t,v4e,hD,eWe,que,w1,RA,r6,W$t,Q1,cge,yw=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/filters.js"(){var e;kh(),eVn(),Ki(),Wct.bind(void 0,!1),W6=Wct.bind(void 0,!0),m4e=new Set,"()[]{}<>`'\"-/;:,.?!".split("").forEach(t=>m4e.add(t.charCodeAt(0))),gse=new Map,V$t=h4e(W6,qct,O$t),H$t=h4e(W6,qct,R$t),v4e=new WC(1e4),hD=128,eWe=Kct(2*hD),que=Kct(2*hD),w1=V1e(),RA=V1e(),r6=V1e(),W$t=!1,(function(t){t.Default=[-100,0];function n(i){return!i||i.length===2&&i[0]===-100&&i[1]===0}t.isDefault=n})(Q1||(Q1={})),cge=(e=class{constructor(n,i){this.firstMatchCanBeWeak=n,this.boostFullMatch=i}},e.default={boostFullMatch:!0,firstMatchCanBeWeak:!1},e)}});function gVn(e){return e.replace($$t,(t,n)=>n?t:`\\${t}`)}function mVn(e){return e.replace(q$t,t=>`\\${t}`)}function tWe(e){return e.indexOf(U$t)===-1?e:e.replace(G$t,(t,n,i,r)=>i?t:n||r||"")}function vVn(e){return e?e.replace(/\$\((.*?)\)/g,(t,n)=>` ${n} `).trim():""}function Qz(e){mse.lastIndex=0;let t="";const n=[];let i=0;for(;;){const r=mse.lastIndex,o=mse.exec(e),s=e.substring(r,o?.index);if(s.length>0){t+=s;for(let a=0;a<s.length;a++)n.push(i)}if(!o)break;i+=o[0].length}return{text:t,iconOffsets:n}}function W1e(e,t,n=!1){const{text:i,iconOffsets:r}=t;if(!r||r.length===0)return Gct(e,i,n);const o=$K(i," "),s=i.length-o.length,a=Gct(e,o,n);if(a)for(const l of a){const c=r[l.start+s]+s;l.start+=c,l.end+=c}return a}var U$t,PJ,$$t,q$t,G$t,mse,P7=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/iconLabels.js"(){yw(),Ki(),Ra(),U$t="$(",PJ=new RegExp(`\\$\\(${lr.iconNameExpression}(?:${lr.iconModifierExpression})?\\)`,"g"),$$t=new RegExp(`(\\\\)?${PJ.source}`,"g"),q$t=new RegExp(`\\\\${PJ.source}`,"g"),G$t=new RegExp(`(\\s)?(\\\\)?${PJ.source}(\\s)?`,"g"),mse=new RegExp(`\\$\\(${lr.iconNameCharacter}+\\)`,"g")}});function HS(e){return _oe(e,!0)}var MJ,Ga,r9,K$t,E0,Y$t,hY,Q$t,Z$t,X$t,y4e,U1e,$1e,ML,bf=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/resources.js"(){HHe(),Gd(),bE(),Xr(),Ki(),ss(),MJ=class{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:Nq(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t?!0:!e||!t?!1:this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,n=!1){if(e.scheme===t.scheme){if(e.scheme===Pr.file)return t4e(HS(e),HS(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(U1e(e.authority,t.authority))return t4e(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(n||e.fragment===t.fragment)}return!1}joinPath(e,...t){return Ui.joinPath(e,...t)}basenameOrAuthority(e){return E0(e)||e.authority}basename(e){return Vc.basename(e.path)}extname(e){return Vc.extname(e.path)}dirname(e){if(e.path.length===0)return e;let t;return e.scheme===Pr.file?t=Ui.file(AVe(HS(e))).path:(t=Vc.dirname(e.path),e.authority&&t.length&&t.charCodeAt(0)!==47&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return e.scheme===Pr.file?t=Ui.file(EVe(HS(e))).path:t=Vc.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!U1e(e.authority,t.authority))return;if(e.scheme===Pr.file){const r=k7t(HS(e),HS(t));return Ch?l$t(r):r}let n=e.path||"/";const i=t.path||"/";if(this._ignorePathCasing(e)){let r=0;for(const o=Math.min(n.length,i.length);r<o&&!(n.charCodeAt(r)!==i.charCodeAt(r)&&n.charAt(r).toLowerCase()!==i.charAt(r).toLowerCase());r++);n=i.substr(0,r)+n.substr(r)}return Vc.relative(n,i)}resolvePath(e,t){if(e.scheme===Pr.file){const n=Ui.file(T7t(HS(e),t));return e.with({authority:n.authority,path:n.path})}return t=xzn(t),e.with({path:Vc.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&e.path[0]==="/"}isEqualAuthority(e,t){return e===t||e!==void 0&&t!==void 0&&t6(e,t)}hasTrailingPathSeparator(e,t=V_){if(e.scheme===Pr.file){const n=HS(e);return n.length>Ict(n).length&&n[n.length-1]===t}else{const n=e.path;return n.length>1&&n.charCodeAt(n.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=V_){return $1e(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=V_){let n=!1;if(e.scheme===Pr.file){const i=HS(e);n=i!==void 0&&i.length===Ict(i).length&&i[i.length-1]===t}else{t="/";const i=e.path;n=i.length===1&&i.charCodeAt(i.length-1)===47}return!n&&!$1e(e,t)?e.with({path:e.path+"/"}):e}},Ga=new MJ(()=>!1),new MJ(e=>e.scheme===Pr.file?!Wf:!0),new MJ(e=>!0),r9=Ga.isEqual.bind(Ga),Ga.isEqualOrParent.bind(Ga),Ga.getComparisonKey.bind(Ga),K$t=Ga.basenameOrAuthority.bind(Ga),E0=Ga.basename.bind(Ga),Y$t=Ga.extname.bind(Ga),hY=Ga.dirname.bind(Ga),Q$t=Ga.joinPath.bind(Ga),Z$t=Ga.normalizePath.bind(Ga),X$t=Ga.relativePath.bind(Ga),y4e=Ga.resolvePath.bind(Ga),Ga.isAbsolutePath.bind(Ga),U1e=Ga.isEqualAuthority.bind(Ga),$1e=Ga.hasTrailingPathSeparator.bind(Ga),Ga.removeTrailingPathSeparator.bind(Ga),Ga.addTrailingPathSeparator.bind(Ga),(function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime";function t(n){const i=new Map;n.path.substring(n.path.indexOf(";")+1,n.path.lastIndexOf(";")).split(";").forEach(s=>{const[a,l]=s.split(":");a&&l&&i.set(a,l)});const o=n.path.substring(0,n.path.indexOf(";"));return o&&i.set(e.META_DATA_MIME,o),i}e.parseMetaData=t})(ML||(ML={}))}});function o9(e){return sC(e)?!e.value:Array.isArray(e)?e.every(o9):!0}function sC(e){return e instanceof nf?!0:e&&typeof e=="object"?typeof e.value=="string"&&(typeof e.isTrusted=="boolean"||typeof e.isTrusted=="object"||e.isTrusted===void 0)&&(typeof e.supportThemeIcons=="boolean"||e.supportThemeIcons===void 0):!1}function yVn(e,t){return e===t?!0:!e||!t?!1:e.value===t.value&&e.isTrusted===t.isTrusted&&e.supportThemeIcons===t.supportThemeIcons&&e.supportHtml===t.supportHtml&&(e.baseUri===t.baseUri||!!e.baseUri&&!!t.baseUri&&r9(Ui.from(e.baseUri),Ui.from(t.baseUri)))}function bVn(e){return e.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")}function _Vn(e,t){const n=e.match(/^`+/gm)?.reduce((r,o)=>r.length>o.length?r:o).length??0,i=n>=3?n+1:3;return[`${"`".repeat(i)}${t}`,e,`${"`".repeat(i)}`].join(`
`)}function OJ(e){return e.replace(/"/g,"&quot;")}function q1e(e){return e&&e.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1")}function wVn(e){const t=[],n=e.split("|").map(r=>r.trim());e=n[0];const i=n[1];if(i){const r=/height=(\d+)/.exec(i),o=/width=(\d+)/.exec(i),s=r?r[1]:"",a=o?o[1]:"",l=isFinite(parseInt(a)),c=isFinite(parseInt(s));l&&t.push(`width="${a}"`),c&&t.push(`height="${s}"`)}return{href:e,dimensions:t}}var nf,Dg=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/htmlContent.js"(){Vi(),P7(),bf(),Ki(),ss(),nf=class{constructor(e="",t=!1){if(this.value=e,typeof this.value!="string")throw Gy("value");typeof t=="boolean"?(this.isTrusted=t,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=t.isTrusted??void 0,this.supportThemeIcons=t.supportThemeIcons??!1,this.supportHtml=t.supportHtml??!1)}appendText(e,t=0){return this.value+=bVn(this.supportThemeIcons?gVn(e):e).replace(/([ \t]+)/g,(n,i)=>"&nbsp;".repeat(i.length)).replace(/\>/gm,"\\>").replace(/\n/g,t===1?`\\
`:`

`),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+=`
${_Vn(t,e)}
`,this}appendLink(e,t,n){return this.value+="[",this.value+=this._escape(t,"]"),this.value+="](",this.value+=this._escape(String(e),")"),n&&(this.value+=` "${this._escape(this._escape(n,'"'),")")}"`),this.value+=")",this}_escape(e,t){const n=new RegExp(z0(t),"g");return e.replace(n,(i,r)=>e.charAt(r-1)!=="\\"?`\\${i}`:i)}}}}),Gue,Kue,uge=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/idGenerator.js"(){Gue=class{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}},Kue=new Gue("id#")}}),Vh,nWe,J$t,fY,iWe,eqt,CVn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/marked/marked.js"(){Vh={},(function(){function e(t,n){n(Vh)}e.amd=!0,(function(t,n){typeof e=="function"&&e.amd?e(["exports"],n):typeof exports=="object"&&typeof module<"u"?n(exports):(t=typeof globalThis<"u"?globalThis:t||self,n(t.marked={}))})(this,(function(t){function n(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}t.defaults=n();function i(ge){t.defaults=ge}const r=/[&<>"']/,o=new RegExp(r.source,"g"),s=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,a=new RegExp(s.source,"g"),l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},c=ge=>l[ge];function u(ge,we){if(we){if(r.test(ge))return ge.replace(o,c)}else if(s.test(ge))return ge.replace(a,c);return ge}const d=/(^|[^\[])\^/g;function h(ge,we){let ve=typeof ge=="string"?ge:ge.source;we=we||"";const _e={replace:(Ee,Le)=>{let be=typeof Le=="string"?Le:Le.source;return be=be.replace(d,"$1"),ve=ve.replace(Ee,be),_e},getRegex:()=>new RegExp(ve,we)};return _e}function f(ge){try{ge=encodeURI(ge).replace(/%25/g,"%")}catch{return null}return ge}const p={exec:()=>null};function g(ge,we){const ve=ge.replace(/\|/g,(Le,be,Fe)=>{let Ze=!1,Ve=be;for(;--Ve>=0&&Fe[Ve]==="\\";)Ze=!Ze;return Ze?"|":" |"}),_e=ve.split(/ \|/);let Ee=0;if(_e[0].trim()||_e.shift(),_e.length>0&&!_e[_e.length-1].trim()&&_e.pop(),we)if(_e.length>we)_e.splice(we);else for(;_e.length<we;)_e.push("");for(;Ee<_e.length;Ee++)_e[Ee]=_e[Ee].trim().replace(/\\\|/g,"|");return _e}function m(ge,we,ve){const _e=ge.length;if(_e===0)return"";let Ee=0;for(;Ee<_e&&ge.charAt(_e-Ee-1)===we;)Ee++;return ge.slice(0,_e-Ee)}function v(ge,we){if(ge.indexOf(we[1])===-1)return-1;let ve=0;for(let _e=0;_e<ge.length;_e++)if(ge[_e]==="\\")_e++;else if(ge[_e]===we[0])ve++;else if(ge[_e]===we[1]&&(ve--,ve<0))return _e;return-1}function y(ge,we,ve,_e){const Ee=we.href,Le=we.title?u(we.title):null,be=ge[1].replace(/\\([\[\]])/g,"$1");if(ge[0].charAt(0)!=="!"){_e.state.inLink=!0;const Fe={type:"link",raw:ve,href:Ee,title:Le,text:be,tokens:_e.inlineTokens(be)};return _e.state.inLink=!1,Fe}return{type:"image",raw:ve,href:Ee,title:Le,text:u(be)}}function b(ge,we){const ve=ge.match(/^(\s+)(?:```)/);if(ve===null)return we;const _e=ve[1];return we.split(`
`).map(Ee=>{const Le=Ee.match(/^\s+/);if(Le===null)return Ee;const[be]=Le;return be.length>=_e.length?Ee.slice(_e.length):Ee}).join(`
`)}class w{options;rules;lexer;constructor(we){this.options=we||t.defaults}space(we){const ve=this.rules.block.newline.exec(we);if(ve&&ve[0].length>0)return{type:"space",raw:ve[0]}}code(we){const ve=this.rules.block.code.exec(we);if(ve){const _e=ve[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:ve[0],codeBlockStyle:"indented",text:this.options.pedantic?_e:m(_e,`
`)}}}fences(we){const ve=this.rules.block.fences.exec(we);if(ve){const _e=ve[0],Ee=b(_e,ve[3]||"");return{type:"code",raw:_e,lang:ve[2]?ve[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):ve[2],text:Ee}}}heading(we){const ve=this.rules.block.heading.exec(we);if(ve){let _e=ve[2].trim();if(/#$/.test(_e)){const Ee=m(_e,"#");(this.options.pedantic||!Ee||/ $/.test(Ee))&&(_e=Ee.trim())}return{type:"heading",raw:ve[0],depth:ve[1].length,text:_e,tokens:this.lexer.inline(_e)}}}hr(we){const ve=this.rules.block.hr.exec(we);if(ve)return{type:"hr",raw:m(ve[0],`
`)}}blockquote(we){const ve=this.rules.block.blockquote.exec(we);if(ve){let _e=m(ve[0],`
`).split(`
`),Ee="",Le="";const be=[];for(;_e.length>0;){let Fe=!1;const Ze=[];let Ve;for(Ve=0;Ve<_e.length;Ve++)if(/^ {0,3}>/.test(_e[Ve]))Ze.push(_e[Ve]),Fe=!0;else if(!Fe)Ze.push(_e[Ve]);else break;_e=_e.slice(Ve);const dt=Ze.join(`
`),Vt=dt.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
    $1`).replace(/^ {0,3}>[ \t]?/gm,"");Ee=Ee?`${Ee}
${dt}`:dt,Le=Le?`${Le}
${Vt}`:Vt;const Xe=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(Vt,be,!0),this.lexer.state.top=Xe,_e.length===0)break;const Ht=be[be.length-1];if(Ht?.type==="code")break;if(Ht?.type==="blockquote"){const Qt=Ht,Dt=Qt.raw+`
`+_e.join(`
`),Tt=this.blockquote(Dt);be[be.length-1]=Tt,Ee=Ee.substring(0,Ee.length-Qt.raw.length)+Tt.raw,Le=Le.substring(0,Le.length-Qt.text.length)+Tt.text;break}else if(Ht?.type==="list"){const Qt=Ht,Dt=Qt.raw+`
`+_e.join(`
`),Tt=this.list(Dt);be[be.length-1]=Tt,Ee=Ee.substring(0,Ee.length-Ht.raw.length)+Tt.raw,Le=Le.substring(0,Le.length-Qt.raw.length)+Tt.raw,_e=Dt.substring(be[be.length-1].raw.length).split(`
`);continue}}return{type:"blockquote",raw:Ee,tokens:be,text:Le}}}list(we){let ve=this.rules.block.list.exec(we);if(ve){let _e=ve[1].trim();const Ee=_e.length>1,Le={type:"list",raw:"",ordered:Ee,start:Ee?+_e.slice(0,-1):"",loose:!1,items:[]};_e=Ee?`\\d{1,9}\\${_e.slice(-1)}`:`\\${_e}`,this.options.pedantic&&(_e=Ee?_e:"[*+-]");const be=new RegExp(`^( {0,3}${_e})((?:[	 ][^\\n]*)?(?:\\n|$))`);let Fe=!1;for(;we;){let Ze=!1,Ve="",dt="";if(!(ve=be.exec(we))||this.rules.block.hr.test(we))break;Ve=ve[0],we=we.substring(Ve.length);let Vt=ve[2].split(`
`,1)[0].replace(/^\t+/,en=>" ".repeat(3*en.length)),Xe=we.split(`
`,1)[0],Ht=!Vt.trim(),Qt=0;if(this.options.pedantic?(Qt=2,dt=Vt.trimStart()):Ht?Qt=ve[1].length+1:(Qt=ve[2].search(/[^ ]/),Qt=Qt>4?1:Qt,dt=Vt.slice(Qt),Qt+=ve[1].length),Ht&&/^ *$/.test(Xe)&&(Ve+=Xe+`
`,we=we.substring(Xe.length+1),Ze=!0),!Ze){const en=new RegExp(`^ {0,${Math.min(3,Qt-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),Bt=new RegExp(`^ {0,${Math.min(3,Qt-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),Ue=new RegExp(`^ {0,${Math.min(3,Qt-1)}}(?:\`\`\`|~~~)`),Lt=new RegExp(`^ {0,${Math.min(3,Qt-1)}}#`);for(;we;){const at=we.split(`
`,1)[0];if(Xe=at,this.options.pedantic&&(Xe=Xe.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),Ue.test(Xe)||Lt.test(Xe)||en.test(Xe)||Bt.test(we))break;if(Xe.search(/[^ ]/)>=Qt||!Xe.trim())dt+=`
`+Xe.slice(Qt);else{if(Ht||Vt.search(/[^ ]/)>=4||Ue.test(Vt)||Lt.test(Vt)||Bt.test(Vt))break;dt+=`
`+Xe}!Ht&&!Xe.trim()&&(Ht=!0),Ve+=at+`
`,we=we.substring(at.length+1),Vt=Xe.slice(Qt)}}Le.loose||(Fe?Le.loose=!0:/\n *\n *$/.test(Ve)&&(Fe=!0));let Dt=null,Tt;this.options.gfm&&(Dt=/^\[[ xX]\] /.exec(dt),Dt&&(Tt=Dt[0]!=="[ ] ",dt=dt.replace(/^\[[ xX]\] +/,""))),Le.items.push({type:"list_item",raw:Ve,task:!!Dt,checked:Tt,loose:!1,text:dt,tokens:[]}),Le.raw+=Ve}Le.items[Le.items.length-1].raw=Le.items[Le.items.length-1].raw.trimEnd(),Le.items[Le.items.length-1].text=Le.items[Le.items.length-1].text.trimEnd(),Le.raw=Le.raw.trimEnd();for(let Ze=0;Ze<Le.items.length;Ze++)if(this.lexer.state.top=!1,Le.items[Ze].tokens=this.lexer.blockTokens(Le.items[Ze].text,[]),!Le.loose){const Ve=Le.items[Ze].tokens.filter(Vt=>Vt.type==="space"),dt=Ve.length>0&&Ve.some(Vt=>/\n.*\n/.test(Vt.raw));Le.loose=dt}if(Le.loose)for(let Ze=0;Ze<Le.items.length;Ze++)Le.items[Ze].loose=!0;return Le}}html(we){const ve=this.rules.block.html.exec(we);if(ve)return{type:"html",block:!0,raw:ve[0],pre:ve[1]==="pre"||ve[1]==="script"||ve[1]==="style",text:ve[0]}}def(we){const ve=this.rules.block.def.exec(we);if(ve){const _e=ve[1].toLowerCase().replace(/\s+/g," "),Ee=ve[2]?ve[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",Le=ve[3]?ve[3].substring(1,ve[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):ve[3];return{type:"def",tag:_e,raw:ve[0],href:Ee,title:Le}}}table(we){const ve=this.rules.block.table.exec(we);if(!ve||!/[:|]/.test(ve[2]))return;const _e=g(ve[1]),Ee=ve[2].replace(/^\||\| *$/g,"").split("|"),Le=ve[3]&&ve[3].trim()?ve[3].replace(/\n[ \t]*$/,"").split(`
`):[],be={type:"table",raw:ve[0],header:[],align:[],rows:[]};if(_e.length===Ee.length){for(const Fe of Ee)/^ *-+: *$/.test(Fe)?be.align.push("right"):/^ *:-+: *$/.test(Fe)?be.align.push("center"):/^ *:-+ *$/.test(Fe)?be.align.push("left"):be.align.push(null);for(let Fe=0;Fe<_e.length;Fe++)be.header.push({text:_e[Fe],tokens:this.lexer.inline(_e[Fe]),header:!0,align:be.align[Fe]});for(const Fe of Le)be.rows.push(g(Fe,be.header.length).map((Ze,Ve)=>({text:Ze,tokens:this.lexer.inline(Ze),header:!1,align:be.align[Ve]})));return be}}lheading(we){const ve=this.rules.block.lheading.exec(we);if(ve)return{type:"heading",raw:ve[0],depth:ve[2].charAt(0)==="="?1:2,text:ve[1],tokens:this.lexer.inline(ve[1])}}paragraph(we){const ve=this.rules.block.paragraph.exec(we);if(ve){const _e=ve[1].charAt(ve[1].length-1)===`
`?ve[1].slice(0,-1):ve[1];return{type:"paragraph",raw:ve[0],text:_e,tokens:this.lexer.inline(_e)}}}text(we){const ve=this.rules.block.text.exec(we);if(ve)return{type:"text",raw:ve[0],text:ve[0],tokens:this.lexer.inline(ve[0])}}escape(we){const ve=this.rules.inline.escape.exec(we);if(ve)return{type:"escape",raw:ve[0],text:u(ve[1])}}tag(we){const ve=this.rules.inline.tag.exec(we);if(ve)return!this.lexer.state.inLink&&/^<a /i.test(ve[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(ve[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(ve[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ve[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:ve[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:ve[0]}}link(we){const ve=this.rules.inline.link.exec(we);if(ve){const _e=ve[2].trim();if(!this.options.pedantic&&/^</.test(_e)){if(!/>$/.test(_e))return;const be=m(_e.slice(0,-1),"\\");if((_e.length-be.length)%2===0)return}else{const be=v(ve[2],"()");if(be>-1){const Ze=(ve[0].indexOf("!")===0?5:4)+ve[1].length+be;ve[2]=ve[2].substring(0,be),ve[0]=ve[0].substring(0,Ze).trim(),ve[3]=""}}let Ee=ve[2],Le="";if(this.options.pedantic){const be=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Ee);be&&(Ee=be[1],Le=be[3])}else Le=ve[3]?ve[3].slice(1,-1):"";return Ee=Ee.trim(),/^</.test(Ee)&&(this.options.pedantic&&!/>$/.test(_e)?Ee=Ee.slice(1):Ee=Ee.slice(1,-1)),y(ve,{href:Ee&&Ee.replace(this.rules.inline.anyPunctuation,"$1"),title:Le&&Le.replace(this.rules.inline.anyPunctuation,"$1")},ve[0],this.lexer)}}reflink(we,ve){let _e;if((_e=this.rules.inline.reflink.exec(we))||(_e=this.rules.inline.nolink.exec(we))){const Ee=(_e[2]||_e[1]).replace(/\s+/g," "),Le=ve[Ee.toLowerCase()];if(!Le){const be=_e[0].charAt(0);return{type:"text",raw:be,text:be}}return y(_e,Le,_e[0],this.lexer)}}emStrong(we,ve,_e=""){let Ee=this.rules.inline.emStrongLDelim.exec(we);if(!Ee||Ee[3]&&_e.match(/[\p{L}\p{N}]/u))return;if(!(Ee[1]||Ee[2]||"")||!_e||this.rules.inline.punctuation.exec(_e)){const be=[...Ee[0]].length-1;let Fe,Ze,Ve=be,dt=0;const Vt=Ee[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(Vt.lastIndex=0,ve=ve.slice(-1*we.length+be);(Ee=Vt.exec(ve))!=null;){if(Fe=Ee[1]||Ee[2]||Ee[3]||Ee[4]||Ee[5]||Ee[6],!Fe)continue;if(Ze=[...Fe].length,Ee[3]||Ee[4]){Ve+=Ze;continue}else if((Ee[5]||Ee[6])&&be%3&&!((be+Ze)%3)){dt+=Ze;continue}if(Ve-=Ze,Ve>0)continue;Ze=Math.min(Ze,Ze+Ve+dt);const Xe=[...Ee[0]][0].length,Ht=we.slice(0,be+Ee.index+Xe+Ze);if(Math.min(be,Ze)%2){const Dt=Ht.slice(1,-1);return{type:"em",raw:Ht,text:Dt,tokens:this.lexer.inlineTokens(Dt)}}const Qt=Ht.slice(2,-2);return{type:"strong",raw:Ht,text:Qt,tokens:this.lexer.inlineTokens(Qt)}}}}codespan(we){const ve=this.rules.inline.code.exec(we);if(ve){let _e=ve[2].replace(/\n/g," ");const Ee=/[^ ]/.test(_e),Le=/^ /.test(_e)&&/ $/.test(_e);return Ee&&Le&&(_e=_e.substring(1,_e.length-1)),_e=u(_e,!0),{type:"codespan",raw:ve[0],text:_e}}}br(we){const ve=this.rules.inline.br.exec(we);if(ve)return{type:"br",raw:ve[0]}}del(we){const ve=this.rules.inline.del.exec(we);if(ve)return{type:"del",raw:ve[0],text:ve[2],tokens:this.lexer.inlineTokens(ve[2])}}autolink(we){const ve=this.rules.inline.autolink.exec(we);if(ve){let _e,Ee;return ve[2]==="@"?(_e=u(ve[1]),Ee="mailto:"+_e):(_e=u(ve[1]),Ee=_e),{type:"link",raw:ve[0],text:_e,href:Ee,tokens:[{type:"text",raw:_e,text:_e}]}}}url(we){let ve;if(ve=this.rules.inline.url.exec(we)){let _e,Ee;if(ve[2]==="@")_e=u(ve[0]),Ee="mailto:"+_e;else{let Le;do Le=ve[0],ve[0]=this.rules.inline._backpedal.exec(ve[0])?.[0]??"";while(Le!==ve[0]);_e=u(ve[0]),ve[1]==="www."?Ee="http://"+ve[0]:Ee=ve[0]}return{type:"link",raw:ve[0],text:_e,href:Ee,tokens:[{type:"text",raw:_e,text:_e}]}}}inlineText(we){const ve=this.rules.inline.text.exec(we);if(ve){let _e;return this.lexer.state.inRawBlock?_e=ve[0]:_e=u(ve[0]),{type:"text",raw:ve[0],text:_e}}}}const E=/^(?: *(?:\n|$))+/,A=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,D=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,T=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,M=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,P=/(?:[*+-]|\d{1,9}[.)])/,F=h(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,P).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),N=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,j=/^[^\n]+/,W=/(?!\s*\])(?:\\.|[^\[\]\\])+/,J=h(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",W).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ee=h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,P).getRegex(),Q="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",H=/\x3C!--(?:-?>|[\s\S]*?(?:-->|$))/,q=h("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",H).replace("tag",Q).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),le=h(N).replace("hr",T).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Q).getRegex(),G={blockquote:h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",le).getRegex(),code:A,def:J,fences:D,heading:M,hr:T,html:q,lheading:F,list:ee,newline:E,paragraph:le,table:p,text:j},pe=h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",T).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Q).getRegex(),U={...G,table:pe,paragraph:h(N).replace("hr",T).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",pe).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Q).getRegex()},K={...G,html:h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",H).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:p,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:h(N).replace("hr",T).replace("heading",` *#{1,6} *[^
]`).replace("lheading",F).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ie=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ce=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,de=/^( {2,}|\\)\n(?!\s*$)/,oe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,me="\\p{P}\\p{S}",Ce=h(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,me).getRegex(),Se=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,De=h(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,me).getRegex(),Me=h("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,me).getRegex(),qe=h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,me).getRegex(),$=h(/\\([punct])/,"gu").replace(/punct/g,me).getRegex(),he=h(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Ie=h(H).replace("(?:-->|$)","-->").getRegex(),Be=h("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Ie).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ze=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ye=h(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ze).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),it=h(/^!?\[(label)\]\[(ref)\]/).replace("label",ze).replace("ref",W).getRegex(),ft=h(/^!?\[(ref)\](?:\[\])?/).replace("ref",W).getRegex(),ct=h("reflink|nolink(?!\\()","g").replace("reflink",it).replace("nolink",ft).getRegex(),et={_backpedal:p,anyPunctuation:$,autolink:he,blockSkip:Se,br:de,code:ce,del:p,emStrongLDelim:De,emStrongRDelimAst:Me,emStrongRDelimUnd:qe,escape:ie,link:Ye,nolink:ft,punctuation:Ce,reflink:it,reflinkSearch:ct,tag:Be,text:oe,url:p},ut={...et,link:h(/^!?\[(label)\]\((.*?)\)/).replace("label",ze).getRegex(),reflink:h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ze).getRegex()},wt={...et,escape:h(ie).replace("])","~|])").getRegex(),url:h(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},pt={...wt,br:h(de).replace("{2,}","*").getRegex(),text:h(wt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},_t={normal:G,gfm:U,pedantic:K},Rt={normal:et,gfm:wt,breaks:pt,pedantic:ut};class Yt{tokens;options;state;tokenizer;inlineQueue;constructor(we){this.tokens=[],this.tokens.links=Object.create(null),this.options=we||t.defaults,this.options.tokenizer=this.options.tokenizer||new w,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const ve={block:_t.normal,inline:Rt.normal};this.options.pedantic?(ve.block=_t.pedantic,ve.inline=Rt.pedantic):this.options.gfm&&(ve.block=_t.gfm,this.options.breaks?ve.inline=Rt.breaks:ve.inline=Rt.gfm),this.tokenizer.rules=ve}static get rules(){return{block:_t,inline:Rt}}static lex(we,ve){return new Yt(ve).lex(we)}static lexInline(we,ve){return new Yt(ve).inlineTokens(we)}lex(we){we=we.replace(/\r\n|\r/g,`
`),this.blockTokens(we,this.tokens);for(let ve=0;ve<this.inlineQueue.length;ve++){const _e=this.inlineQueue[ve];this.inlineTokens(_e.src,_e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(we,ve=[],_e=!1){this.options.pedantic?we=we.replace(/\t/g,"    ").replace(/^ +$/gm,""):we=we.replace(/^( *)(\t+)/gm,(Fe,Ze,Ve)=>Ze+"    ".repeat(Ve.length));let Ee,Le,be;for(;we;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(Fe=>(Ee=Fe.call({lexer:this},we,ve))?(we=we.substring(Ee.raw.length),ve.push(Ee),!0):!1))){if(Ee=this.tokenizer.space(we)){we=we.substring(Ee.raw.length),Ee.raw.length===1&&ve.length>0?ve[ve.length-1].raw+=`
`:ve.push(Ee);continue}if(Ee=this.tokenizer.code(we)){we=we.substring(Ee.raw.length),Le=ve[ve.length-1],Le&&(Le.type==="paragraph"||Le.type==="text")?(Le.raw+=`
`+Ee.raw,Le.text+=`
`+Ee.text,this.inlineQueue[this.inlineQueue.length-1].src=Le.text):ve.push(Ee);continue}if(Ee=this.tokenizer.fences(we)){we=we.substring(Ee.raw.length),ve.push(Ee);continue}if(Ee=this.tokenizer.heading(we)){we=we.substring(Ee.raw.length),ve.push(Ee);continue}if(Ee=this.tokenizer.hr(we)){we=we.substring(Ee.raw.length),ve.push(Ee);continue}if(Ee=this.tokenizer.blockquote(we)){we=we.substring(Ee.raw.length),ve.push(Ee);continue}if(Ee=this.tokenizer.list(we)){we=we.substring(Ee.raw.length),ve.push(Ee);continue}if(Ee=this.tokenizer.html(we)){we=we.substring(Ee.raw.length),ve.push(Ee);continue}if(Ee=this.tokenizer.def(we)){we=we.substring(Ee.raw.length),Le=ve[ve.length-1],Le&&(Le.type==="paragraph"||Le.type==="text")?(Le.raw+=`
`+Ee.raw,Le.text+=`
`+Ee.raw,this.inlineQueue[this.inlineQueue.length-1].src=Le.text):this.tokens.links[Ee.tag]||(this.tokens.links[Ee.tag]={href:Ee.href,title:Ee.title});continue}if(Ee=this.tokenizer.table(we)){we=we.substring(Ee.raw.length),ve.push(Ee);continue}if(Ee=this.tokenizer.lheading(we)){we=we.substring(Ee.raw.length),ve.push(Ee);continue}if(be=we,this.options.extensions&&this.options.extensions.startBlock){let Fe=1/0;const Ze=we.slice(1);let Ve;this.options.extensions.startBlock.forEach(dt=>{Ve=dt.call({lexer:this},Ze),typeof Ve=="number"&&Ve>=0&&(Fe=Math.min(Fe,Ve))}),Fe<1/0&&Fe>=0&&(be=we.substring(0,Fe+1))}if(this.state.top&&(Ee=this.tokenizer.paragraph(be))){Le=ve[ve.length-1],_e&&Le?.type==="paragraph"?(Le.raw+=`
`+Ee.raw,Le.text+=`
`+Ee.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Le.text):ve.push(Ee),_e=be.length!==we.length,we=we.substring(Ee.raw.length);continue}if(Ee=this.tokenizer.text(we)){we=we.substring(Ee.raw.length),Le=ve[ve.length-1],Le&&Le.type==="text"?(Le.raw+=`
`+Ee.raw,Le.text+=`
`+Ee.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Le.text):ve.push(Ee);continue}if(we){const Fe="Infinite loop on byte: "+we.charCodeAt(0);if(this.options.silent){console.error(Fe);break}else throw new Error(Fe)}}return this.state.top=!0,ve}inline(we,ve=[]){return this.inlineQueue.push({src:we,tokens:ve}),ve}inlineTokens(we,ve=[]){let _e,Ee,Le,be=we,Fe,Ze,Ve;if(this.tokens.links){const dt=Object.keys(this.tokens.links);if(dt.length>0)for(;(Fe=this.tokenizer.rules.inline.reflinkSearch.exec(be))!=null;)dt.includes(Fe[0].slice(Fe[0].lastIndexOf("[")+1,-1))&&(be=be.slice(0,Fe.index)+"["+"a".repeat(Fe[0].length-2)+"]"+be.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Fe=this.tokenizer.rules.inline.blockSkip.exec(be))!=null;)be=be.slice(0,Fe.index)+"["+"a".repeat(Fe[0].length-2)+"]"+be.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Fe=this.tokenizer.rules.inline.anyPunctuation.exec(be))!=null;)be=be.slice(0,Fe.index)+"++"+be.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;we;)if(Ze||(Ve=""),Ze=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(dt=>(_e=dt.call({lexer:this},we,ve))?(we=we.substring(_e.raw.length),ve.push(_e),!0):!1))){if(_e=this.tokenizer.escape(we)){we=we.substring(_e.raw.length),ve.push(_e);continue}if(_e=this.tokenizer.tag(we)){we=we.substring(_e.raw.length),Ee=ve[ve.length-1],Ee&&_e.type==="text"&&Ee.type==="text"?(Ee.raw+=_e.raw,Ee.text+=_e.text):ve.push(_e);continue}if(_e=this.tokenizer.link(we)){we=we.substring(_e.raw.length),ve.push(_e);continue}if(_e=this.tokenizer.reflink(we,this.tokens.links)){we=we.substring(_e.raw.length),Ee=ve[ve.length-1],Ee&&_e.type==="text"&&Ee.type==="text"?(Ee.raw+=_e.raw,Ee.text+=_e.text):ve.push(_e);continue}if(_e=this.tokenizer.emStrong(we,be,Ve)){we=we.substring(_e.raw.length),ve.push(_e);continue}if(_e=this.tokenizer.codespan(we)){we=we.substring(_e.raw.length),ve.push(_e);continue}if(_e=this.tokenizer.br(we)){we=we.substring(_e.raw.length),ve.push(_e);continue}if(_e=this.tokenizer.del(we)){we=we.substring(_e.raw.length),ve.push(_e);continue}if(_e=this.tokenizer.autolink(we)){we=we.substring(_e.raw.length),ve.push(_e);continue}if(!this.state.inLink&&(_e=this.tokenizer.url(we))){we=we.substring(_e.raw.length),ve.push(_e);continue}if(Le=we,this.options.extensions&&this.options.extensions.startInline){let dt=1/0;const Vt=we.slice(1);let Xe;this.options.extensions.startInline.forEach(Ht=>{Xe=Ht.call({lexer:this},Vt),typeof Xe=="number"&&Xe>=0&&(dt=Math.min(dt,Xe))}),dt<1/0&&dt>=0&&(Le=we.substring(0,dt+1))}if(_e=this.tokenizer.inlineText(Le)){we=we.substring(_e.raw.length),_e.raw.slice(-1)!=="_"&&(Ve=_e.raw.slice(-1)),Ze=!0,Ee=ve[ve.length-1],Ee&&Ee.type==="text"?(Ee.raw+=_e.raw,Ee.text+=_e.text):ve.push(_e);continue}if(we){const dt="Infinite loop on byte: "+we.charCodeAt(0);if(this.options.silent){console.error(dt);break}else throw new Error(dt)}}return ve}}class Ut{options;parser;constructor(we){this.options=we||t.defaults}space(we){return""}code({text:we,lang:ve,escaped:_e}){const Ee=(ve||"").match(/^\S*/)?.[0],Le=we.replace(/\n$/,"")+`
`;return Ee?'<pre><code class="language-'+u(Ee)+'">'+(_e?Le:u(Le,!0))+`</code></pre>
`:"<pre><code>"+(_e?Le:u(Le,!0))+`</code></pre>
`}blockquote({tokens:we}){return`<blockquote>
${this.parser.parse(we)}</blockquote>
`}html({text:we}){return we}heading({tokens:we,depth:ve}){return`<h${ve}>${this.parser.parseInline(we)}</h${ve}>
`}hr(we){return`<hr>
`}list(we){const ve=we.ordered,_e=we.start;let Ee="";for(let Fe=0;Fe<we.items.length;Fe++){const Ze=we.items[Fe];Ee+=this.listitem(Ze)}const Le=ve?"ol":"ul",be=ve&&_e!==1?' start="'+_e+'"':"";return"<"+Le+be+`>
`+Ee+"</"+Le+`>
`}listitem(we){let ve="";if(we.task){const _e=this.checkbox({checked:!!we.checked});we.loose?we.tokens.length>0&&we.tokens[0].type==="paragraph"?(we.tokens[0].text=_e+" "+we.tokens[0].text,we.tokens[0].tokens&&we.tokens[0].tokens.length>0&&we.tokens[0].tokens[0].type==="text"&&(we.tokens[0].tokens[0].text=_e+" "+we.tokens[0].tokens[0].text)):we.tokens.unshift({type:"text",raw:_e+" ",text:_e+" "}):ve+=_e+" "}return ve+=this.parser.parse(we.tokens,!!we.loose),`<li>${ve}</li>
`}checkbox({checked:we}){return"<input "+(we?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:we}){return`<p>${this.parser.parseInline(we)}</p>
`}table(we){let ve="",_e="";for(let Le=0;Le<we.header.length;Le++)_e+=this.tablecell(we.header[Le]);ve+=this.tablerow({text:_e});let Ee="";for(let Le=0;Le<we.rows.length;Le++){const be=we.rows[Le];_e="";for(let Fe=0;Fe<be.length;Fe++)_e+=this.tablecell(be[Fe]);Ee+=this.tablerow({text:_e})}return Ee&&(Ee=`<tbody>${Ee}</tbody>`),`<table>
<thead>
`+ve+`</thead>
`+Ee+`</table>
`}tablerow({text:we}){return`<tr>
${we}</tr>
`}tablecell(we){const ve=this.parser.parseInline(we.tokens),_e=we.header?"th":"td";return(we.align?`<${_e} align="${we.align}">`:`<${_e}>`)+ve+`</${_e}>
`}strong({tokens:we}){return`<strong>${this.parser.parseInline(we)}</strong>`}em({tokens:we}){return`<em>${this.parser.parseInline(we)}</em>`}codespan({text:we}){return`<code>${we}</code>`}br(we){return"<br>"}del({tokens:we}){return`<del>${this.parser.parseInline(we)}</del>`}link({href:we,title:ve,tokens:_e}){const Ee=this.parser.parseInline(_e),Le=f(we);if(Le===null)return Ee;we=Le;let be='<a href="'+we+'"';return ve&&(be+=' title="'+ve+'"'),be+=">"+Ee+"</a>",be}image({href:we,title:ve,text:_e}){const Ee=f(we);if(Ee===null)return _e;we=Ee;let Le=`<img src="${we}" alt="${_e}"`;return ve&&(Le+=` title="${ve}"`),Le+=">",Le}text(we){return"tokens"in we&&we.tokens?this.parser.parseInline(we.tokens):we.text}}class Gt{strong({text:we}){return we}em({text:we}){return we}codespan({text:we}){return we}del({text:we}){return we}html({text:we}){return we}text({text:we}){return we}link({text:we}){return""+we}image({text:we}){return""+we}br(){return""}}class Kt{options;renderer;textRenderer;constructor(we){this.options=we||t.defaults,this.options.renderer=this.options.renderer||new Ut,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Gt}static parse(we,ve){return new Kt(ve).parse(we)}static parseInline(we,ve){return new Kt(ve).parseInline(we)}parse(we,ve=!0){let _e="";for(let Ee=0;Ee<we.length;Ee++){const Le=we[Ee];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[Le.type]){const Fe=Le,Ze=this.options.extensions.renderers[Fe.type].call({parser:this},Fe);if(Ze!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(Fe.type)){_e+=Ze||"";continue}}const be=Le;switch(be.type){case"space":{_e+=this.renderer.space(be);continue}case"hr":{_e+=this.renderer.hr(be);continue}case"heading":{_e+=this.renderer.heading(be);continue}case"code":{_e+=this.renderer.code(be);continue}case"table":{_e+=this.renderer.table(be);continue}case"blockquote":{_e+=this.renderer.blockquote(be);continue}case"list":{_e+=this.renderer.list(be);continue}case"html":{_e+=this.renderer.html(be);continue}case"paragraph":{_e+=this.renderer.paragraph(be);continue}case"text":{let Fe=be,Ze=this.renderer.text(Fe);for(;Ee+1<we.length&&we[Ee+1].type==="text";)Fe=we[++Ee],Ze+=`
`+this.renderer.text(Fe);ve?_e+=this.renderer.paragraph({type:"paragraph",raw:Ze,text:Ze,tokens:[{type:"text",raw:Ze,text:Ze}]}):_e+=Ze;continue}default:{const Fe='Token with "'+be.type+'" type was not found.';if(this.options.silent)return console.error(Fe),"";throw new Error(Fe)}}}return _e}parseInline(we,ve){ve=ve||this.renderer;let _e="";for(let Ee=0;Ee<we.length;Ee++){const Le=we[Ee];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[Le.type]){const Fe=this.options.extensions.renderers[Le.type].call({parser:this},Le);if(Fe!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(Le.type)){_e+=Fe||"";continue}}const be=Le;switch(be.type){case"escape":{_e+=ve.text(be);break}case"html":{_e+=ve.html(be);break}case"link":{_e+=ve.link(be);break}case"image":{_e+=ve.image(be);break}case"strong":{_e+=ve.strong(be);break}case"em":{_e+=ve.em(be);break}case"codespan":{_e+=ve.codespan(be);break}case"br":{_e+=ve.br(be);break}case"del":{_e+=ve.del(be);break}case"text":{_e+=ve.text(be);break}default:{const Fe='Token with "'+be.type+'" type was not found.';if(this.options.silent)return console.error(Fe),"";throw new Error(Fe)}}}return _e}}class ln{options;constructor(we){this.options=we||t.defaults}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(we){return we}postprocess(we){return we}processAllTokens(we){return we}}class pn{defaults=n();options=this.setOptions;parse=this.parseMarkdown(Yt.lex,Kt.parse);parseInline=this.parseMarkdown(Yt.lexInline,Kt.parseInline);Parser=Kt;Renderer=Ut;TextRenderer=Gt;Lexer=Yt;Tokenizer=w;Hooks=ln;constructor(...we){this.use(...we)}walkTokens(we,ve){let _e=[];for(const Ee of we)switch(_e=_e.concat(ve.call(this,Ee)),Ee.type){case"table":{const Le=Ee;for(const be of Le.header)_e=_e.concat(this.walkTokens(be.tokens,ve));for(const be of Le.rows)for(const Fe of be)_e=_e.concat(this.walkTokens(Fe.tokens,ve));break}case"list":{const Le=Ee;_e=_e.concat(this.walkTokens(Le.items,ve));break}default:{const Le=Ee;this.defaults.extensions?.childTokens?.[Le.type]?this.defaults.extensions.childTokens[Le.type].forEach(be=>{const Fe=Le[be].flat(1/0);_e=_e.concat(this.walkTokens(Fe,ve))}):Le.tokens&&(_e=_e.concat(this.walkTokens(Le.tokens,ve)))}}return _e}use(...we){const ve=this.defaults.extensions||{renderers:{},childTokens:{}};return we.forEach(_e=>{const Ee={..._e};if(Ee.async=this.defaults.async||Ee.async||!1,_e.extensions&&(_e.extensions.forEach(Le=>{if(!Le.name)throw new Error("extension name required");if("renderer"in Le){const be=ve.renderers[Le.name];be?ve.renderers[Le.name]=function(...Fe){let Ze=Le.renderer.apply(this,Fe);return Ze===!1&&(Ze=be.apply(this,Fe)),Ze}:ve.renderers[Le.name]=Le.renderer}if("tokenizer"in Le){if(!Le.level||Le.level!=="block"&&Le.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const be=ve[Le.level];be?be.unshift(Le.tokenizer):ve[Le.level]=[Le.tokenizer],Le.start&&(Le.level==="block"?ve.startBlock?ve.startBlock.push(Le.start):ve.startBlock=[Le.start]:Le.level==="inline"&&(ve.startInline?ve.startInline.push(Le.start):ve.startInline=[Le.start]))}"childTokens"in Le&&Le.childTokens&&(ve.childTokens[Le.name]=Le.childTokens)}),Ee.extensions=ve),_e.renderer){const Le=this.defaults.renderer||new Ut(this.defaults);for(const be in _e.renderer){if(!(be in Le))throw new Error(`renderer '${be}' does not exist`);if(["options","parser"].includes(be))continue;const Fe=be,Ze=_e.renderer[Fe],Ve=Le[Fe];Le[Fe]=(...dt)=>{let Vt=Ze.apply(Le,dt);return Vt===!1&&(Vt=Ve.apply(Le,dt)),Vt||""}}Ee.renderer=Le}if(_e.tokenizer){const Le=this.defaults.tokenizer||new w(this.defaults);for(const be in _e.tokenizer){if(!(be in Le))throw new Error(`tokenizer '${be}' does not exist`);if(["options","rules","lexer"].includes(be))continue;const Fe=be,Ze=_e.tokenizer[Fe],Ve=Le[Fe];Le[Fe]=(...dt)=>{let Vt=Ze.apply(Le,dt);return Vt===!1&&(Vt=Ve.apply(Le,dt)),Vt}}Ee.tokenizer=Le}if(_e.hooks){const Le=this.defaults.hooks||new ln;for(const be in _e.hooks){if(!(be in Le))throw new Error(`hook '${be}' does not exist`);if(be==="options")continue;const Fe=be,Ze=_e.hooks[Fe],Ve=Le[Fe];ln.passThroughHooks.has(be)?Le[Fe]=dt=>{if(this.defaults.async)return Promise.resolve(Ze.call(Le,dt)).then(Xe=>Ve.call(Le,Xe));const Vt=Ze.call(Le,dt);return Ve.call(Le,Vt)}:Le[Fe]=(...dt)=>{let Vt=Ze.apply(Le,dt);return Vt===!1&&(Vt=Ve.apply(Le,dt)),Vt}}Ee.hooks=Le}if(_e.walkTokens){const Le=this.defaults.walkTokens,be=_e.walkTokens;Ee.walkTokens=function(Fe){let Ze=[];return Ze.push(be.call(this,Fe)),Le&&(Ze=Ze.concat(Le.call(this,Fe))),Ze}}this.defaults={...this.defaults,...Ee}}),this}setOptions(we){return this.defaults={...this.defaults,...we},this}lexer(we,ve){return Yt.lex(we,ve??this.defaults)}parser(we,ve){return Kt.parse(we,ve??this.defaults)}parseMarkdown(we,ve){return(Ee,Le)=>{const be={...Le},Fe={...this.defaults,...be},Ze=this.onError(!!Fe.silent,!!Fe.async);if(this.defaults.async===!0&&be.async===!1)return Ze(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof Ee>"u"||Ee===null)return Ze(new Error("marked(): input parameter is undefined or null"));if(typeof Ee!="string")return Ze(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Ee)+", string expected"));if(Fe.hooks&&(Fe.hooks.options=Fe),Fe.async)return Promise.resolve(Fe.hooks?Fe.hooks.preprocess(Ee):Ee).then(Ve=>we(Ve,Fe)).then(Ve=>Fe.hooks?Fe.hooks.processAllTokens(Ve):Ve).then(Ve=>Fe.walkTokens?Promise.all(this.walkTokens(Ve,Fe.walkTokens)).then(()=>Ve):Ve).then(Ve=>ve(Ve,Fe)).then(Ve=>Fe.hooks?Fe.hooks.postprocess(Ve):Ve).catch(Ze);try{Fe.hooks&&(Ee=Fe.hooks.preprocess(Ee));let Ve=we(Ee,Fe);Fe.hooks&&(Ve=Fe.hooks.processAllTokens(Ve)),Fe.walkTokens&&this.walkTokens(Ve,Fe.walkTokens);let dt=ve(Ve,Fe);return Fe.hooks&&(dt=Fe.hooks.postprocess(dt)),dt}catch(Ve){return Ze(Ve)}}}onError(we,ve){return _e=>{if(_e.message+=`
Please report this to https://github.com/markedjs/marked.`,we){const Ee="<p>An error occurred:</p><pre>"+u(_e.message+"",!0)+"</pre>";return ve?Promise.resolve(Ee):Ee}if(ve)return Promise.reject(_e);throw _e}}}const wn=new pn;function Mn(ge,we){return wn.parse(ge,we)}Mn.options=Mn.setOptions=function(ge){return wn.setOptions(ge),Mn.defaults=wn.defaults,i(Mn.defaults),Mn},Mn.getDefaults=n,Mn.defaults=t.defaults,Mn.use=function(...ge){return wn.use(...ge),Mn.defaults=wn.defaults,i(Mn.defaults),Mn},Mn.walkTokens=function(ge,we){return wn.walkTokens(ge,we)},Mn.parseInline=wn.parseInline,Mn.Parser=Kt,Mn.parser=Kt.parse,Mn.Renderer=Ut,Mn.TextRenderer=Gt,Mn.Lexer=Yt,Mn.lexer=Yt.lex,Mn.Tokenizer=w,Mn.Hooks=ln,Mn.parse=Mn;const Yn=Mn.options,di=Mn.setOptions,Li=Mn.use,ke=Mn.walkTokens,Z=Mn.parseInline,ne=Mn,V=Kt.parse,re=Yt.lex;t.Hooks=ln,t.Lexer=Yt,t.Marked=pn,t.Parser=Kt,t.Renderer=Ut,t.TextRenderer=Gt,t.Tokenizer=w,t.getDefaults=n,t.lexer=re,t.marked=Mn,t.options=Yn,t.parse=ne,t.parseInline=Z,t.parser=V,t.setOptions=di,t.use=Li,t.walkTokens=ke}))})(),Vh.Hooks||exports.Hooks,Vh.Lexer||exports.Lexer,Vh.Marked||exports.Marked,Vh.Parser||exports.Parser,nWe=Vh.Renderer||exports.Renderer,Vh.TextRenderer||exports.TextRenderer,Vh.Tokenizer||exports.Tokenizer,J$t=Vh.defaults||exports.defaults,Vh.getDefaults||exports.getDefaults,fY=Vh.lexer||exports.lexer,Vh.marked||exports.marked,Vh.options||exports.options,iWe=Vh.parse||exports.parse,Vh.parseInline||exports.parseInline,eqt=Vh.parser||exports.parser,Vh.setOptions||exports.setOptions,Vh.use||exports.use,Vh.walkTokens||exports.walkTokens}});function SVn(e){return JSON.stringify(e,xVn)}function b4e(e){let t=JSON.parse(e);return t=_4e(t),t}function xVn(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:t.flags}:t}function _4e(e,t=0){if(!e||t>200)return e;if(typeof e=="object"){switch(e.$mid){case 1:return Ui.revive(e);case 2:return new RegExp(e.source,e.flags);case 17:return new Date(e.source)}if(e instanceof pHe||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let n=0;n<e.length;++n)e[n]=_4e(e[n],t+1);else for(const n in e)Object.hasOwnProperty.call(e,n)&&(e[n]=_4e(e[n],t+1))}return e}var rWe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/marshalling.js"(){JK(),ss()}});function dge(e,t={},n={}){const i=new Jt;let r=!1;const o=QHe(t),s=function(g){let m;try{m=b4e(decodeURIComponent(g))}catch{}return m?(m=bWt(m,v=>{if(e.uris&&e.uris[v])return Ui.revive(e.uris[v])}),encodeURIComponent(JSON.stringify(m))):g},a=function(g,m){const v=e.uris&&e.uris[g];let y=Ui.revive(v);return m?g.startsWith(Pr.data+":")?g:(y||(y=Ui.parse(g)),GK.uriToBrowserUri(y).toString(!0)):!y||Ui.parse(g).toString()===y.toString()?g:(y.query&&(y=y.with({query:s(y.query)})),y.toString())},l=new nWe;l.image=vse.image,l.link=vse.link,l.paragraph=vse.paragraph;const c=[],u=[];if(t.codeBlockRendererSync?l.code=({text:g,lang:m})=>{const v=Kue.nextId(),y=t.codeBlockRendererSync(Qct(m),g);return u.push([v,y]),`<div class="code" data-code="${v}">${NU(g)}</div>`}:t.codeBlockRenderer&&(l.code=({text:g,lang:m})=>{const v=Kue.nextId(),y=t.codeBlockRenderer(Qct(m),g);return c.push(y.then(b=>[v,b])),`<div class="code" data-code="${v}">${NU(g)}</div>`}),t.actionHandler){const g=function(y){let b=y.target;if(!(b.tagName!=="A"&&(b=b.parentElement,!b||b.tagName!=="A")))try{let w=b.dataset.href;w&&(e.baseUri&&(w=G1e(Ui.from(e.baseUri),w)),t.actionHandler.callback(w,y))}catch(w){Mr(w)}finally{y.preventDefault()}},m=t.actionHandler.disposables.add(new ko(o,"click")),v=t.actionHandler.disposables.add(new ko(o,"auxclick"));t.actionHandler.disposables.add(On.any(m.event,v.event)(y=>{const b=new Vy(Yi(o),y);!b.leftButton&&!b.middleButton||g(b)})),t.actionHandler.disposables.add(qt(o,"keydown",y=>{const b=new Sa(y);!b.equals(10)&&!b.equals(3)||g(b)}))}e.supportHtml||(l.html=({text:g})=>t.sanitizerOptions?.replaceWithPlaintext?NU(g):(e.isTrusted?g.match(/^(<span[^>]+>)|(<\/\s*span>)$/):void 0)?g:""),n.renderer=l;let d=e.value??"";d.length>1e5&&(d=`${d.substr(0,1e5)}…`),e.supportThemeIcons&&(d=mVn(d));let h;if(t.fillInIncompleteTokens){const g={...J$t,...n},m=fY(d,g),v=LVn(m);h=eqt(v,g)}else h=iWe(d,{...n,async:!1});e.supportThemeIcons&&(h=aL(h).map(m=>typeof m=="string"?m:m.outerHTML).join(""));const p=new DOMParser().parseFromString(w4e({isTrusted:e.isTrusted,...t.sanitizerOptions},h),"text/html");if(p.body.querySelectorAll("img, audio, video, source").forEach(g=>{const m=g.getAttribute("src");if(m){let v=m;try{e.baseUri&&(v=G1e(Ui.from(e.baseUri),v))}catch{}if(g.setAttribute("src",a(v,!0)),t.remoteImageIsAllowed){const y=Ui.parse(v);y.scheme!==Pr.file&&y.scheme!==Pr.data&&!t.remoteImageIsAllowed(y)&&g.replaceWith(In("",void 0,g.outerHTML))}}}),p.body.querySelectorAll("a").forEach(g=>{const m=g.getAttribute("href");if(g.setAttribute("href",""),!m||/^data:|javascript:/i.test(m)||/^command:/i.test(m)&&!e.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(m))g.replaceWith(...g.childNodes);else{let v=a(m,!1);e.baseUri&&(v=G1e(Ui.from(e.baseUri),m)),g.dataset.href=v}}),o.innerHTML=w4e({isTrusted:e.isTrusted,...t.sanitizerOptions},p.body.innerHTML),c.length>0)Promise.all(c).then(g=>{if(r)return;const m=new Map(g),v=o.querySelectorAll("div[data-code]");for(const y of v){const b=m.get(y.dataset.code??"");b&&xh(y,b)}t.asyncRenderCallback?.()});else if(u.length>0){const g=new Map(u),m=o.querySelectorAll("div[data-code]");for(const v of m){const y=g.get(v.dataset.code??"");y&&xh(v,y)}}if(t.asyncRenderCallback)for(const g of o.getElementsByTagName("img")){const m=i.add(qt(g,"load",()=>{m.dispose(),t.asyncRenderCallback()}))}return{element:o,dispose:()=>{r=!0,i.dispose()}}}function Qct(e){if(!e)return"";const t=e.split(/[\s+|:|,|\{|\?]/,1);return t.length?t[0]:e}function G1e(e,t){return/^\w[\w\d+.-]*:/.test(t)?t:e.path.endsWith("/")?y4e(e,t).toString():y4e(hY(e),t).toString()}function w4e(e,t){const{config:n,allowedSchemes:i}=EVn(e),r=new Jt;r.add(Xct("uponSanitizeAttribute",(o,s)=>{if(s.attrName==="style"||s.attrName==="class"){if(o.tagName==="SPAN"){if(s.attrName==="style"){s.keepAttr=/^(color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(background-color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(border-radius:[0-9]+px;)?$/.test(s.attrValue);return}else if(s.attrName==="class"){s.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(s.attrValue);return}}s.keepAttr=!1;return}else if(o.tagName==="INPUT"&&o.attributes.getNamedItem("type")?.value==="checkbox"){if(s.attrName==="type"&&s.attrValue==="checkbox"||s.attrName==="disabled"||s.attrName==="checked"){s.keepAttr=!0;return}s.keepAttr=!1}})),r.add(Xct("uponSanitizeElement",(o,s)=>{if(s.tagName==="input"&&(o.attributes.getNamedItem("type")?.value==="checkbox"?o.setAttribute("disabled",""):e.replaceWithPlaintext||o.remove()),e.replaceWithPlaintext&&!s.allowedTags[s.tagName]&&s.tagName!=="body"&&o.parentElement){let a,l;if(s.tagName==="#comment")a=`\x3C!--${o.textContent}-->`;else{const h=nqt.includes(s.tagName),f=o.attributes.length?" "+Array.from(o.attributes).map(p=>`${p.name}="${p.value}"`).join(" "):"";a=`<${s.tagName}${f}>`,h||(l=`</${s.tagName}>`)}const c=document.createDocumentFragment(),u=o.parentElement.ownerDocument.createTextNode(a);c.appendChild(u);const d=l?o.parentElement.ownerDocument.createTextNode(l):void 0;for(;o.firstChild;)c.appendChild(o.firstChild);d&&c.appendChild(d),o.nodeType===Node.COMMENT_NODE?o.parentElement.insertBefore(c,o):o.parentElement.replaceChild(c,o)}})),r.add(Y9n(i));try{return O3e(t,{...n,RETURN_TRUSTED_TYPE:!0})}finally{r.dispose()}}function EVn(e){const t=[Pr.http,Pr.https,Pr.mailto,Pr.data,Pr.file,Pr.vscodeFileResource,Pr.vscodeRemote,Pr.vscodeRemoteResource];return e.isTrusted&&t.push(Pr.command),{config:{ALLOWED_TAGS:e.allowedTags??[...f3t],ALLOWED_ATTR:iqt,ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:t}}function AVn(e){return typeof e=="string"?e:DVn(e)}function DVn(e,t){let n=e.value??"";n.length>1e5&&(n=`${n.substr(0,1e5)}…`);const i=iWe(n,{async:!1,renderer:oqt.value}).replace(/&(#\d+|[a-zA-Z]+);/g,r=>rqt.get(r)??r);return w4e({isTrusted:!1},i).toString()}function Zct(){const e=new nWe;return e.code=({text:t})=>t,e.blockquote=({text:t})=>t+`
`,e.html=t=>"",e.heading=function({tokens:t}){return this.parser.parseInline(t)+`
`},e.hr=()=>"",e.list=function({items:t}){return t.map(n=>this.listitem(n)).join(`
`)+`
`},e.listitem=({text:t})=>t+`
`,e.paragraph=function({tokens:t}){return this.parser.parseInline(t)+`
`},e.table=function({header:t,rows:n}){return t.map(i=>this.tablecell(i)).join(" ")+`
`+n.map(i=>i.map(r=>this.tablecell(r)).join(" ")).join(`
`)+`
`},e.tablerow=({text:t})=>t,e.tablecell=function({tokens:t}){return this.parser.parseInline(t)},e.strong=({text:t})=>t,e.em=({text:t})=>t,e.codespan=({text:t})=>t,e.br=t=>`
`,e.del=({text:t})=>t,e.image=t=>"",e.text=({text:t})=>t,e.link=({text:t})=>t,e}function Yue(e){let t="";return e.forEach(n=>{t+=n.raw}),t}function tqt(e){if(e.tokens)for(let t=e.tokens.length-1;t>=0;t--){const n=e.tokens[t];if(n.type==="text"){const i=n.raw.split(`
`),r=i[i.length-1];if(r.includes("`"))return PVn(e);if(r.includes("**"))return jVn(e);if(r.match(/\*\w/))return MVn(e);if(r.match(/(^|\s)__\w/))return zVn(e);if(r.match(/(^|\s)_\w/))return OVn(e);if(TVn(r)||kVn(r)&&e.tokens.slice(0,t).some(o=>o.type==="text"&&o.raw.match(/\[[^\]]*$/))){const o=e.tokens.slice(t+1);return o[0]?.type==="link"&&o[1]?.type==="text"&&o[1].raw.match(/^ *"[^"]*$/)||r.match(/^[^"]* +"[^"]*$/)?FVn(e):RVn(e)}else if(r.match(/(^|\s)\[\w*/))return BVn(e)}}}function TVn(e){return!!e.match(/(^|\s)\[.*\]\(\w*/)}function kVn(e){return!!e.match(/^[^\[]*\]\([^\)]*$/)}function IVn(e){const t=e.items[e.items.length-1],n=t.tokens?t.tokens[t.tokens.length-1]:void 0;let i;if(n?.type==="text"&&!("inRawBlock"in t)&&(i=tqt(n)),!i||i.type!=="paragraph")return;const r=Yue(e.items.slice(0,-1)),o=t.raw.match(/^(\s*(-|\d+\.|\*) +)/)?.[0];if(!o)return;const s=o+Yue(t.tokens.slice(0,-1))+i.raw,a=fY(r+s)[0];if(a.type==="list")return a}function LVn(e){for(let t=0;t<sqt;t++){const n=NVn(e);if(n)e=n;else break}return e}function NVn(e){let t,n;for(t=0;t<e.length;t++){const i=e[t];if(i.type==="paragraph"&&i.raw.match(/(\n|^)\|/)){n=VVn(e.slice(t));break}if(t===e.length-1&&i.type==="list"){const r=IVn(i);if(r){n=[r];break}}if(t===e.length-1&&i.type==="paragraph"){const r=tqt(i);if(r){n=[r];break}}}if(n){const i=[...e.slice(0,t),...n];return i.links=e.links,i}return null}function PVn(e){return ON(e,"`")}function MVn(e){return ON(e,"*")}function OVn(e){return ON(e,"_")}function RVn(e){return ON(e,")")}function FVn(e){return ON(e,'")')}function BVn(e){return ON(e,"](https://microsoft.com)")}function jVn(e){return ON(e,"**")}function zVn(e){return ON(e,"__")}function ON(e,t){const n=Yue(Array.isArray(e)?e:[e]);return fY(n+t)[0]}function VVn(e){const t=Yue(e),n=t.split(`
`);let i,r=!1;for(let o=0;o<n.length;o++){const s=n[o].trim();if(typeof i>"u"&&s.match(/^\s*\|/)){const a=s.match(/(\|[^\|]+)(?=\||$)/g);a&&(i=a.length)}else if(typeof i=="number")if(s.match(/^\s*\|/)){if(o!==n.length-1)return;r=!0}else return}if(typeof i=="number"&&i>0){const o=r?n.slice(0,-1).join(`
`):t,s=!!o.match(/\|\s*$/),a=o+(s?"":"|")+`
|${" --- |".repeat(i)}`;return fY(a)}}function Xct(e,t){return R3e(e,t),zi(()=>F3e(e))}var vse,nqt,iqt,rqt,oqt,sqt,hge=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/markdownRenderer.js"(){Fn(),B3e(),UC(),P$t(),mf(),Cb(),MN(),Vi(),Un(),Dg(),P7(),uge(),wE(),Nt(),CVn(),rWe(),Gd(),bm(),bf(),Ki(),ss(),vse=Object.freeze({image:({href:e,title:t,text:n})=>{let i=[],r=[];return e&&({href:e,dimensions:i}=wVn(e),r.push(`src="${OJ(e)}"`)),n&&r.push(`alt="${OJ(n)}"`),t&&r.push(`title="${OJ(t)}"`),i.length&&(r=r.concat(i)),"<img "+r.join(" ")+">"},paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>`},link({href:e,title:t,tokens:n}){let i=this.parser.parseInline(n);return typeof e!="string"?"":(e===i&&(i=q1e(i)),t=typeof t=="string"?OJ(q1e(t)):"",e=q1e(e),e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),`<a href="${e}" title="${t||e}" draggable="false">${i}</a>`)}}),nqt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],iqt=["align","autoplay","alt","checked","class","colspan","controls","data-code","data-href","disabled","draggable","height","href","loop","muted","playsinline","poster","rowspan","src","style","target","title","type","width","start"],rqt=new Map([["&quot;",'"'],["&nbsp;"," "],["&amp;","&"],["&#39;","'"],["&lt;","<"],["&gt;",">"]]),oqt=new lm(e=>Zct()),new lm(()=>{const e=Zct();return e.code=({text:t})=>`
\`\`\`
${t}
\`\`\`
`,e}),sqt=3}}),HVn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/markdownRenderer/browser/renderedMarkdown.css"(){}});function WVn(e,t){const n=t.lineNumber;if(!e.tokenization.isCheapToTokenize(n))return;e.tokenization.forceTokenization(n);const i=e.tokenization.getLineTokens(n),r=i.findTokenIndexAtOffset(t.column-1);return i.getStandardTokenType(r)}var Dh,Jct,bw=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/tokens/lineTokens.js"(){var e;I7(),Dh=(e=class{static createEmpty(n,i){const r=e.defaultTokenMetadata,o=new Uint32Array(2);return o[0]=n.length,o[1]=r,new e(o,n,i)}static createFromTextAndMetadata(n,i){let r=0,o="";const s=new Array;for(const{text:a,metadata:l}of n)s.push(r+a.length,l),r+=a.length,o+=a;return new e(new Uint32Array(s),o,i)}constructor(n,i,r){this._lineTokensBrand=void 0,this._tokens=n,this._tokensCount=this._tokens.length>>>1,this._text=i,this.languageIdCodec=r}equals(n){return n instanceof e?this.slicedEquals(n,0,this._tokensCount):!1}slicedEquals(n,i,r){if(this._text!==n._text||this._tokensCount!==n._tokensCount)return!1;const o=i<<1,s=o+(r<<1);for(let a=o;a<s;a++)if(this._tokens[a]!==n._tokens[a])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(n){return n>0?this._tokens[n-1<<1]:0}getMetadata(n){return this._tokens[(n<<1)+1]}getLanguageId(n){const i=this._tokens[(n<<1)+1],r=gh.getLanguageId(i);return this.languageIdCodec.decodeLanguageId(r)}getStandardTokenType(n){const i=this._tokens[(n<<1)+1];return gh.getTokenType(i)}getForeground(n){const i=this._tokens[(n<<1)+1];return gh.getForeground(i)}getClassName(n){const i=this._tokens[(n<<1)+1];return gh.getClassNameFromMetadata(i)}getInlineStyle(n,i){const r=this._tokens[(n<<1)+1];return gh.getInlineStyleFromMetadata(r,i)}getPresentation(n){const i=this._tokens[(n<<1)+1];return gh.getPresentationFromMetadata(i)}getEndOffset(n){return this._tokens[n<<1]}findTokenIndexAtOffset(n){return e.findIndexInTokensArray(this._tokens,n)}inflate(){return this}sliceAndInflate(n,i,r){return new Jct(this,n,i,r)}static convertToEndOffset(n,i){const o=(n.length>>>1)-1;for(let s=0;s<o;s++)n[s<<1]=n[s+1<<1];n[o<<1]=i}static findIndexInTokensArray(n,i){if(n.length<=2)return 0;let r=0,o=(n.length>>>1)-1;for(;r<o;){const s=r+Math.floor((o-r)/2),a=n[s<<1];if(a===i)return s+1;a<i?r=s+1:a>i&&(o=s)}return r}withInserted(n){if(n.length===0)return this;let i=0,r=0,o="";const s=new Array;let a=0;for(;;){const l=i<this._tokensCount?this._tokens[i<<1]:-1,c=r<n.length?n[r]:null;if(l!==-1&&(c===null||l<=c.offset)){o+=this._text.substring(a,l);const u=this._tokens[(i<<1)+1];s.push(o.length,u),i++,a=l}else if(c){if(c.offset>a){o+=this._text.substring(a,c.offset);const u=this._tokens[(i<<1)+1];s.push(o.length,u),a=c.offset}o+=c.text,s.push(o.length,c.tokenMetadata),r++}else break}return new e(new Uint32Array(s),o,this.languageIdCodec)}getTokenText(n){const i=this.getStartOffset(n),r=this.getEndOffset(n);return this._text.substring(i,r)}forEach(n){const i=this.getCount();for(let r=0;r<i;r++)n(r)}},e.defaultTokenMetadata=(32768|2<<24)>>>0,e),Jct=class aqt{constructor(n,i,r,o){this._source=n,this._startOffset=i,this._endOffset=r,this._deltaOffset=o,this._firstTokenIndex=n.findTokenIndexAtOffset(i),this.languageIdCodec=n.languageIdCodec,this._tokensCount=0;for(let s=this._firstTokenIndex,a=n.getCount();s<a&&!(n.getStartOffset(s)>=r);s++)this._tokensCount++}getMetadata(n){return this._source.getMetadata(this._firstTokenIndex+n)}getLanguageId(n){return this._source.getLanguageId(this._firstTokenIndex+n)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(n){return n instanceof aqt?this._startOffset===n._startOffset&&this._endOffset===n._endOffset&&this._deltaOffset===n._deltaOffset&&this._source.slicedEquals(n._source,this._firstTokenIndex,this._tokensCount):!1}getCount(){return this._tokensCount}getStandardTokenType(n){return this._source.getStandardTokenType(this._firstTokenIndex+n)}getForeground(n){return this._source.getForeground(this._firstTokenIndex+n)}getEndOffset(n){const i=this._source.getEndOffset(this._firstTokenIndex+n);return Math.min(this._endOffset,i)-this._startOffset+this._deltaOffset}getClassName(n){return this._source.getClassName(this._firstTokenIndex+n)}getInlineStyle(n,i){return this._source.getInlineStyle(this._firstTokenIndex+n,i)}getPresentation(n){return this._source.getPresentation(this._firstTokenIndex+n)}findTokenIndexAtOffset(n){return this._source.findTokenIndexAtOffset(n+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(n){const i=this._firstTokenIndex+n,r=this._source.getStartOffset(i),o=this._source.getEndOffset(i);let s=this._source.getTokenText(i);return r<this._startOffset&&(s=s.substring(this._startOffset-r)),o>this._endOffset&&(s=s.substring(0,s.length-(o-this._endOffset))),s}forEach(n){for(let i=0;i<this.getCount();i++)n(i)}}}});function oWe(e,t){return new ppe([new V8(0,"",e)],t)}function fge(e,t){const n=new Uint32Array(2);return n[0]=0,n[1]=(e<<0|0|0|32768|2<<24)>>>0,new wq(n,t===null?e2:t)}var e2,pY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages/nullTokenize.js"(){ra(),e2=new class{clone(){return this}equals(e){return this===e}}}});async function UVn(e,t,n){if(!n)return eut(t,e.languageIdCodec,C4e);const i=await Hl.getOrCreate(n);return eut(t,e.languageIdCodec,i||C4e)}function $Vn(e,t,n,i,r,o,s){let a="<div>",l=i,c=0,u=!0;for(let d=0,h=t.getCount();d<h;d++){const f=t.getEndOffset(d);if(f<=i)continue;let p="";for(;l<f&&l<r;l++){const g=e.charCodeAt(l);switch(g){case 9:{let m=o-(l+c)%o;for(c+=m-1;m>0;)s&&u?(p+="&#160;",u=!1):(p+=" ",u=!0),m--;break}case 60:p+="&lt;",u=!1;break;case 62:p+="&gt;",u=!1;break;case 38:p+="&amp;",u=!1;break;case 0:p+="&#00;",u=!1;break;case 65279:case 8232:case 8233:case 133:p+="�",u=!1;break;case 13:p+="&#8203",u=!1;break;case 32:s&&u?(p+="&#160;",u=!1):(p+=" ",u=!0);break;default:p+=String.fromCharCode(g),u=!1}}if(a+=`<span style="${t.getInlineStyle(d,n)}">${p}</span>`,f>r||l>=r)break}return a+="</div>",a}function eut(e,t,n){let i='<div class="monaco-tokenized-source">';const r=Zx(e);let o=n.getInitialState();for(let s=0,a=r.length;s<a;s++){const l=r[s];s>0&&(i+="<br/>");const c=n.tokenizeEncoded(l,!0,o);Dh.convertToEndOffset(c.tokens,l.length);const d=new Dh(c.tokens,l,t).inflate();let h=0;for(let f=0,p=d.getCount();f<p;f++){const g=d.getClassName(f),m=d.getEndOffset(f);i+=`<span class="${g}">${NU(l.substring(h,m))}</span>`,h=m}o=c.endState}return i+="</div>",i}var C4e,lqt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages/textToHtmlTokenizer.js"(){Ki(),bw(),ra(),pY(),C4e={getInitialState:()=>e2,tokenizeEncoded:(e,t,n)=>fge(0,n)}}});async function sWe(e,t,n){try{return await e.open(t,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:qVn(n)})}catch(i){return Mr(i),!1}}function qVn(e){return e===!0?!0:e&&Array.isArray(e.enabledCommands)?e.enabledCommands:!1}var tut,K1e,Y1e,Lx,RN=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js"(){var e;hge(),pT(),Vi(),Un(),Nt(),HVn(),xb(),Kd(),G0(),lqt(),Ag(),tut=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},K1e=function(t,n){return function(i,r){n(i,r,t)}},Lx=(e=class{constructor(n,i,r){this._options=n,this._languageService=i,this._openerService=r,this._onDidRenderAsync=new bt,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(n,i,r){if(!n)return{element:document.createElement("span"),dispose:()=>{}};const o=new Jt,s=o.add(dge(n,{...this._getRenderOptions(n,o),...i},r));return s.element.classList.add("rendered-markdown"),{element:s.element,dispose:()=>o.dispose()}}_getRenderOptions(n,i){return{codeBlockRenderer:async(r,o)=>{let s;r?s=this._languageService.getLanguageIdByLanguageName(r):this._options.editor&&(s=this._options.editor.getModel()?.getLanguageId()),s||(s=xp);const a=await UVn(this._languageService,o,s),l=document.createElement("span");if(l.innerHTML=Y1e._ttpTokenizer?.createHTML(a)??a,this._options.editor){const c=this._options.editor.getOption(50);yh(l,c)}else this._options.codeBlockFontFamily&&(l.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(l.style.fontSize=this._options.codeBlockFontSize),l},asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:r=>sWe(this._openerService,r,n.isTrusted),disposables:i}}}},Y1e=e,e._ttpTokenizer=fT("tokenizeToString",{createHTML(n){return n}}),e),Lx=Y1e=tut([K1e(1,al),K1e(2,Eg)],Lx)}}),pm,o6,Cm=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/accessibility/common/accessibility.js"(){er(),li(),pm=Ao("accessibilityService"),o6=new Qn("accessibilityModeEnabled",!1)}}),GVn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/aria/aria.css"(){}});function KVn(e){fO=document.createElement("div"),fO.className="monaco-aria-container";const t=()=>{const i=document.createElement("div");return i.className="monaco-alert",i.setAttribute("role","alert"),i.setAttribute("aria-atomic","true"),fO.appendChild(i),i};yse=t(),x4e=t();const n=()=>{const i=document.createElement("div");return i.className="monaco-status",i.setAttribute("aria-live","polite"),i.setAttribute("aria-atomic","true"),fO.appendChild(i),i};bse=n(),E4e=n(),e.appendChild(fO)}function mg(e){fO&&(yse.textContent!==e?(Sh(x4e),Que(yse,e)):(Sh(yse),Que(x4e,e)))}function eE(e){fO&&(bse.textContent!==e?(Sh(E4e),Que(bse,e)):(Sh(bse),Que(E4e,e)))}function Que(e,t){Sh(e),t.length>S4e&&(t=t.substr(0,S4e)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}var S4e,fO,yse,x4e,bse,E4e,Ih=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/aria/aria.js"(){Fn(),GVn(),S4e=2e4}}),nut,N5,Qw,_se,Q1e,iut,YVn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/services/hoverService/hoverWidget.js"(){Rzn(),Nt(),Un(),Fn(),tl(),sa(),Su(),dY(),mw(),Ag(),li(),RN(),Dg(),bn(),Xr(),Cm(),Ih(),nut=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},N5=function(e,t){return function(n,i){t(n,i,e)}},Qw=In,_se=class extends Ov{get _targetWindow(){return Yi(this._target.targetElements[0])}get _targetDocumentElement(){return Yi(this._target.targetElements[0]).document.documentElement}get isDisposed(){return this._isDisposed}get isMouseIn(){return this._lockMouseTracker.isMouseIn}get domNode(){return this._hover.containerDomNode}get onDispose(){return this._onDispose.event}get onRequestLayout(){return this._onRequestLayout.event}get anchor(){return this._hoverPosition===2?0:1}get x(){return this._x}get y(){return this._y}get isLocked(){return this._isLocked}set isLocked(t){this._isLocked!==t&&(this._isLocked=t,this._hoverContainer.classList.toggle("locked",this._isLocked))}constructor(t,n,i,r,o,s){super(),this._keybindingService=n,this._configurationService=i,this._openerService=r,this._instantiationService=o,this._accessibilityService=s,this._messageListeners=new Jt,this._isDisposed=!1,this._forcePosition=!1,this._x=0,this._y=0,this._isLocked=!1,this._enableFocusTraps=!1,this._addedFocusTrap=!1,this._onDispose=this._register(new bt),this._onRequestLayout=this._register(new bt),this._linkHandler=t.linkHandler||(h=>sWe(this._openerService,h,sC(t.content)?t.content.isTrusted:void 0)),this._target="targetElements"in t.target?t.target:new iut(t.target),this._hoverPointer=t.appearance?.showPointer?Qw("div.workbench-hover-pointer"):void 0,this._hover=this._register(new age),this._hover.containerDomNode.classList.add("workbench-hover","fadeIn"),t.appearance?.compact&&this._hover.containerDomNode.classList.add("workbench-hover","compact"),t.appearance?.skipFadeInAnimation&&this._hover.containerDomNode.classList.add("skip-fade-in"),t.additionalClasses&&this._hover.containerDomNode.classList.add(...t.additionalClasses),t.position?.forcePosition&&(this._forcePosition=!0),t.trapFocus&&(this._enableFocusTraps=!0),this._hoverPosition=t.position?.hoverPosition??3,this.onmousedown(this._hover.containerDomNode,h=>h.stopPropagation()),this.onkeydown(this._hover.containerDomNode,h=>{h.equals(9)&&this.dispose()}),this._register(qt(this._targetWindow,"blur",()=>this.dispose()));const a=Qw("div.hover-row.markdown-hover"),l=Qw("div.hover-contents");if(typeof t.content=="string")l.textContent=t.content,l.style.whiteSpace="pre-wrap";else if(yd(t.content))l.appendChild(t.content),l.classList.add("html-hover-contents");else{const h=t.content,f=this._instantiationService.createInstance(Lx,{codeBlockFontFamily:this._configurationService.getValue("editor").fontFamily||ap.fontFamily}),{element:p}=f.render(h,{actionHandler:{callback:g=>this._linkHandler(g),disposables:this._messageListeners},asyncRenderCallback:()=>{l.classList.add("code-hover-contents"),this.layout(),this._onRequestLayout.fire()}});l.appendChild(p)}if(a.appendChild(l),this._hover.contentsDomNode.appendChild(a),t.actions&&t.actions.length>0){const h=Qw("div.hover-row.status-bar"),f=Qw("div.actions");t.actions.forEach(p=>{const g=this._keybindingService.lookupKeybinding(p.commandId),m=g?g.getLabel():null;YHe.render(f,{label:p.label,commandId:p.commandId,run:v=>{p.run(v),this.dispose()},iconClass:p.iconClass},m)}),h.appendChild(f),this._hover.containerDomNode.appendChild(h)}this._hoverContainer=Qw("div.workbench-hover-container"),this._hoverPointer&&this._hoverContainer.appendChild(this._hoverPointer),this._hoverContainer.appendChild(this._hover.containerDomNode);let c;if(t.actions&&t.actions.length>0?c=!1:t.persistence?.hideOnHover===void 0?c=typeof t.content=="string"||sC(t.content)&&!t.content.value.includes("](")&&!t.content.value.includes("</a>"):c=t.persistence.hideOnHover,t.appearance?.showHoverHint){const h=Qw("div.hover-row.status-bar"),f=Qw("div.info");f.textContent=R("hoverhint","Hold {0} key to mouse over",xo?"Option":"Alt"),h.appendChild(f),this._hover.containerDomNode.appendChild(h)}const u=[...this._target.targetElements];c||u.push(this._hoverContainer);const d=this._register(new Q1e(u));if(this._register(d.onMouseOut(()=>{this._isLocked||this.dispose()})),c){const h=[...this._target.targetElements,this._hoverContainer];this._lockMouseTracker=this._register(new Q1e(h)),this._register(this._lockMouseTracker.onMouseOut(()=>{this._isLocked||this.dispose()}))}else this._lockMouseTracker=d}addFocusTrap(){if(!this._enableFocusTraps||this._addedFocusTrap)return;this._addedFocusTrap=!0;const t=this._hover.containerDomNode,n=this.findLastFocusableChild(this._hover.containerDomNode);if(n){const i=K3e(this._hoverContainer,Qw("div")),r=hn(this._hoverContainer,Qw("div"));i.tabIndex=0,r.tabIndex=0,this._register(qt(r,"focus",o=>{t.focus(),o.preventDefault()})),this._register(qt(i,"focus",o=>{n.focus(),o.preventDefault()}))}}findLastFocusableChild(t){if(t.hasChildNodes())for(let n=0;n<t.childNodes.length;n++){const i=t.childNodes.item(t.childNodes.length-n-1);if(i.nodeType===i.ELEMENT_NODE){const o=i;if(typeof o.tabIndex=="number"&&o.tabIndex>=0)return o}const r=this.findLastFocusableChild(i);if(r)return r}}render(t){t.appendChild(this._hoverContainer);const i=this._hoverContainer.contains(this._hoverContainer.ownerDocument.activeElement)&&k$t(this._configurationService.getValue("accessibility.verbosity.hover")===!0&&this._accessibilityService.isScreenReaderOptimized(),this._keybindingService.lookupKeybinding("editor.action.accessibleView")?.getAriaLabel());i&&eE(i),this.layout(),this.addFocusTrap()}layout(){this._hover.containerDomNode.classList.remove("right-aligned"),this._hover.contentsDomNode.style.maxHeight="";const t=u=>{const d=QVt(u),h=u.getBoundingClientRect();return{top:h.top*d,bottom:h.bottom*d,right:h.right*d,left:h.left*d}},n=this._target.targetElements.map(u=>t(u)),{top:i,right:r,bottom:o,left:s}=n[0],a=r-s,l=o-i,c={top:i,right:r,bottom:o,left:s,width:a,height:l,center:{x:s+a/2,y:i+l/2}};if(this.adjustHorizontalHoverPosition(c),this.adjustVerticalHoverPosition(c),this.adjustHoverMaxHeight(c),this._hoverContainer.style.padding="",this._hoverContainer.style.margin="",this._hoverPointer){switch(this._hoverPosition){case 1:c.left+=3,c.right+=3,this._hoverContainer.style.paddingLeft="3px",this._hoverContainer.style.marginLeft="-3px";break;case 0:c.left-=3,c.right-=3,this._hoverContainer.style.paddingRight="3px",this._hoverContainer.style.marginRight="-3px";break;case 2:c.top+=3,c.bottom+=3,this._hoverContainer.style.paddingTop="3px",this._hoverContainer.style.marginTop="-3px";break;case 3:c.top-=3,c.bottom-=3,this._hoverContainer.style.paddingBottom="3px",this._hoverContainer.style.marginBottom="-3px";break}c.center.x=c.left+a/2,c.center.y=c.top+l/2}this.computeXCordinate(c),this.computeYCordinate(c),this._hoverPointer&&(this._hoverPointer.classList.remove("top"),this._hoverPointer.classList.remove("left"),this._hoverPointer.classList.remove("right"),this._hoverPointer.classList.remove("bottom"),this.setHoverPointerPosition(c)),this._hover.onContentsChanged()}computeXCordinate(t){const n=this._hover.containerDomNode.clientWidth+2;this._target.x!==void 0?this._x=this._target.x:this._hoverPosition===1?this._x=t.right:this._hoverPosition===0?this._x=t.left-n:(this._hoverPointer?this._x=t.center.x-this._hover.containerDomNode.clientWidth/2:this._x=t.left,this._x+n>=this._targetDocumentElement.clientWidth&&(this._hover.containerDomNode.classList.add("right-aligned"),this._x=Math.max(this._targetDocumentElement.clientWidth-n-2,this._targetDocumentElement.clientLeft))),this._x<this._targetDocumentElement.clientLeft&&(this._x=t.left+2)}computeYCordinate(t){this._target.y!==void 0?this._y=this._target.y:this._hoverPosition===3?this._y=t.top:this._hoverPosition===2?this._y=t.bottom-2:this._hoverPointer?this._y=t.center.y+this._hover.containerDomNode.clientHeight/2:this._y=t.bottom,this._y>this._targetWindow.innerHeight&&(this._y=t.bottom)}adjustHorizontalHoverPosition(t){if(this._target.x!==void 0)return;const n=this._hoverPointer?3:0;if(this._forcePosition){const i=n+2;this._hoverPosition===1?this._hover.containerDomNode.style.maxWidth=`${this._targetDocumentElement.clientWidth-t.right-i}px`:this._hoverPosition===0&&(this._hover.containerDomNode.style.maxWidth=`${t.left-i}px`);return}this._hoverPosition===1?this._targetDocumentElement.clientWidth-t.right<this._hover.containerDomNode.clientWidth+n&&(t.left>=this._hover.containerDomNode.clientWidth+n?this._hoverPosition=0:this._hoverPosition=2):this._hoverPosition===0&&(t.left<this._hover.containerDomNode.clientWidth+n&&(this._targetDocumentElement.clientWidth-t.right>=this._hover.containerDomNode.clientWidth+n?this._hoverPosition=1:this._hoverPosition=2),t.left-this._hover.containerDomNode.clientWidth-n<=this._targetDocumentElement.clientLeft&&(this._hoverPosition=1))}adjustVerticalHoverPosition(t){if(this._target.y!==void 0||this._forcePosition)return;const n=this._hoverPointer?3:0;this._hoverPosition===3?t.top-this._hover.containerDomNode.clientHeight-n<0&&(this._hoverPosition=2):this._hoverPosition===2&&t.bottom+this._hover.containerDomNode.clientHeight+n>this._targetWindow.innerHeight&&(this._hoverPosition=3)}adjustHoverMaxHeight(t){let n=this._targetWindow.innerHeight/2;if(this._forcePosition){const i=(this._hoverPointer?3:0)+2;this._hoverPosition===3?n=Math.min(n,t.top-i):this._hoverPosition===2&&(n=Math.min(n,this._targetWindow.innerHeight-t.bottom-i))}if(this._hover.containerDomNode.style.maxHeight=`${n}px`,this._hover.contentsDomNode.clientHeight<this._hover.contentsDomNode.scrollHeight){const i=`${this._hover.scrollbar.options.verticalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingRight!==i&&(this._hover.contentsDomNode.style.paddingRight=i)}}setHoverPointerPosition(t){if(this._hoverPointer)switch(this._hoverPosition){case 0:case 1:{this._hoverPointer.classList.add(this._hoverPosition===0?"right":"left");const n=this._hover.containerDomNode.clientHeight;n>t.height?this._hoverPointer.style.top=`${t.center.y-(this._y-n)-3}px`:this._hoverPointer.style.top=`${Math.round(n/2)-3}px`;break}case 3:case 2:{this._hoverPointer.classList.add(this._hoverPosition===3?"bottom":"top");const n=this._hover.containerDomNode.clientWidth;let i=Math.round(n/2)-3;const r=this._x+i;(r<t.left||r>t.right)&&(i=t.center.x-this._x-3),this._hoverPointer.style.left=`${i}px`;break}}}focus(){this._hover.containerDomNode.focus()}dispose(){this._isDisposed||(this._onDispose.fire(),this._hoverContainer.remove(),this._messageListeners.dispose(),this._target.dispose(),super.dispose()),this._isDisposed=!0}},_se=nut([N5(1,Cs),N5(2,co),N5(3,Eg),N5(4,ji),N5(5,pm)],_se),Q1e=class extends Ov{get onMouseOut(){return this._onMouseOut.event}get isMouseIn(){return this._isMouseIn}constructor(e){super(),this._elements=e,this._isMouseIn=!0,this._onMouseOut=this._register(new bt),this._elements.forEach(t=>this.onmouseover(t,()=>this._onTargetMouseOver(t))),this._elements.forEach(t=>this.onmouseleave(t,()=>this._onTargetMouseLeave(t)))}_onTargetMouseOver(e){this._isMouseIn=!0,this._clearEvaluateMouseStateTimeout(e)}_onTargetMouseLeave(e){this._isMouseIn=!1,this._evaluateMouseState(e)}_evaluateMouseState(e){this._clearEvaluateMouseStateTimeout(e),this._mouseTimeout=Yi(e).setTimeout(()=>this._fireIfMouseOutside(),0)}_clearEvaluateMouseStateTimeout(e){this._mouseTimeout&&(Yi(e).clearTimeout(this._mouseTimeout),this._mouseTimeout=void 0)}_fireIfMouseOutside(){this._isMouseIn||this._onMouseOut.fire()}},iut=class{constructor(e){this._element=e,this.targetElements=[this._element]}dispose(){}}}}),Nf,pge=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/range.js"(){(function(e){function t(o,s){if(o.start>=s.end||s.start>=o.end)return{start:0,end:0};const a=Math.max(o.start,s.start),l=Math.min(o.end,s.end);return l-a<=0?{start:0,end:0}:{start:a,end:l}}e.intersect=t;function n(o){return o.end-o.start<=0}e.isEmpty=n;function i(o,s){return!n(t(o,s))}e.intersects=i;function r(o,s){const a=[],l={start:o.start,end:Math.min(s.start,o.end)},c={start:Math.max(s.end,o.start),end:o.end};return n(l)||a.push(l),n(c)||a.push(c),a}e.relativeComplement=r})(Nf||(Nf={}))}}),QVn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/contextview/contextview.css"(){}});function ZVn(e){const t=e;return!!t&&typeof t.x=="number"&&typeof t.y=="number"}function s6(e,t,n){const i=n.mode===hI.ALIGN?n.offset:n.offset+n.size,r=n.mode===hI.ALIGN?n.offset+n.size:n.offset;return n.position===0?t<=e-i?i:t<=r?r-t:Math.max(e-t,0):t<=r?r-t:t<=e-i?i:0}var hI,cqt,rut,uqt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/contextview/contextview.js"(){var e;k3e(),Fn(),Nt(),Xr(),pge(),QVn(),(function(t){t[t.AVOID=0]="AVOID",t[t.ALIGN=1]="ALIGN"})(hI||(hI={})),cqt=(e=class extends St{constructor(n,i){super(),this.container=null,this.useFixedPosition=!1,this.useShadowDOM=!1,this.delegate=null,this.toDisposeOnClean=St.None,this.toDisposeOnSetContainer=St.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=In(".context-view"),ig(this.view),this.setContainer(n,i),this._register(zi(()=>this.setContainer(null,1)))}setContainer(n,i){this.useFixedPosition=i!==1;const r=this.useShadowDOM;if(this.useShadowDOM=i===3,!(n===this.container&&r===this.useShadowDOM)&&(this.container&&(this.toDisposeOnSetContainer.dispose(),this.view.remove(),this.shadowRoot&&(this.shadowRoot=null,this.shadowRootHostElement?.remove(),this.shadowRootHostElement=null),this.container=null),n)){if(this.container=n,this.useShadowDOM){this.shadowRootHostElement=In(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const s=document.createElement("style");s.textContent=rut,this.shadowRoot.appendChild(s),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(In("slot"))}else this.container.appendChild(this.view);const o=new Jt;e.BUBBLE_UP_EVENTS.forEach(s=>{o.add(Il(this.container,s,a=>{this.onDOMEvent(a,!1)}))}),e.BUBBLE_DOWN_EVENTS.forEach(s=>{o.add(Il(this.container,s,a=>{this.onDOMEvent(a,!0)},!0))}),this.toDisposeOnSetContainer=o}}show(n){this.isVisible()&&this.hide(),Sh(this.view),this.view.className="context-view monaco-component",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex=`${2575+(n.layer??0)}`,this.view.style.position=this.useFixedPosition?"fixed":"absolute",lv(this.view),this.toDisposeOnClean=n.render(this.view)||St.None,this.delegate=n,this.doLayout(),this.delegate.focus?.()}getViewElement(){return this.view}layout(){if(this.isVisible()){if(this.delegate.canRelayout===!1&&!(Z_&&Ppe.pointerEvents)){this.hide();return}this.delegate?.layout?.(),this.doLayout()}}doLayout(){if(!this.isVisible())return;const n=this.delegate.getAnchor();let i;if(yd(n)){const f=_c(n),p=QVt(n);i={top:f.top*p,left:f.left*p,width:f.width*p,height:f.height*p}}else ZVn(n)?i={top:n.y,left:n.x,width:n.width||1,height:n.height||2}:i={top:n.posy,left:n.posx,width:2,height:2};const r=Gm(this.view),o=aD(this.view),s=this.delegate.anchorPosition||0,a=this.delegate.anchorAlignment||0,l=this.delegate.anchorAxisAlignment||0;let c,u;const d=MH();if(l===0){const f={offset:i.top-d.pageYOffset,size:i.height,position:s===0?0:1},p={offset:i.left,size:i.width,position:a===0?0:1,mode:hI.ALIGN};c=s6(d.innerHeight,o,f)+d.pageYOffset,Nf.intersects({start:c,end:c+o},{start:f.offset,end:f.offset+f.size})&&(p.mode=hI.AVOID),u=s6(d.innerWidth,r,p)}else{const f={offset:i.left,size:i.width,position:a===0?0:1},p={offset:i.top,size:i.height,position:s===0?0:1,mode:hI.ALIGN};u=s6(d.innerWidth,r,f),Nf.intersects({start:u,end:u+r},{start:f.offset,end:f.offset+f.size})&&(p.mode=hI.AVOID),c=s6(d.innerHeight,o,p)+d.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(s===0?"bottom":"top"),this.view.classList.add(a===0?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const h=_c(this.container);this.view.style.top=`${c-(this.useFixedPosition?_c(this.view).top:h.top)}px`,this.view.style.left=`${u-(this.useFixedPosition?_c(this.view).left:h.left)}px`,this.view.style.width="initial"}hide(n){const i=this.delegate;this.delegate=null,i?.onHide&&i.onHide(n),this.toDisposeOnClean.dispose(),ig(this.view)}isVisible(){return!!this.delegate}onDOMEvent(n,i){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(n,Yi(n).document.activeElement):i&&!hd(n.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}},e.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],e.BUBBLE_DOWN_EVENTS=["click"],e),rut=`
	:host {
		all: initial; /* 1st rule so subsequent properties are reset. */
	}

	.codicon[class*='codicon-'] {
		font: normal normal normal 16px/1 codicon;
		display: inline-block;
		text-decoration: none;
		text-rendering: auto;
		text-align: center;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		user-select: none;
		-webkit-user-select: none;
		-ms-user-select: none;
	}

	:host {
		font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;
	}

	:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
	:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }
	:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }
	:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }
	:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }

	:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }
	:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }
	:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }
	:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }
	:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }

	:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }
	:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }
	:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }
	:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }
	:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }
`}}),out,sut,ZH,dqt,hqt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/contextview/browser/contextViewService.js"(){uqt(),Nt(),LN(),Fn(),out=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},sut=function(e,t){return function(n,i){t(n,i,e)}},ZH=class extends St{constructor(t){super(),this.layoutService=t,this.contextView=this._register(new cqt(this.layoutService.mainContainer,1)),this.layout(),this._register(t.onDidLayoutContainer(()=>this.layout()))}showContextView(t,n,i){let r;n?n===this.layoutService.getContainer(Yi(n))?r=1:i?r=3:r=2:r=1,this.contextView.setContainer(n??this.layoutService.activeContainer,r),this.contextView.show(t);const o={close:()=>{this.openContextView===o&&this.hideContextView()}};return this.openContextView=o,o}layout(){this.contextView.layout()}hideContextView(t){this.contextView.hide(t),this.openContextView=void 0}},ZH=out([sut(0,yT)],ZH),dqt=class extends ZH{getContextViewElement(){return this.contextView.getViewElement()}}}}),fqt,XVn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/services/hoverService/updatableHoverWidget.js"(){Fn(),Ho(),Dg(),as(),bn(),fqt=class{constructor(e,t,n){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=n}async update(e,t,n){if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let i;if(e===void 0||sm(e)||yd(e))i=e;else if(!_q(e.markdown))i=e.markdown??e.markdownNotSupportedFallback;else{this._hoverWidget||this.show(R("iconLabel.loading","Loading..."),t,n),this._cancellationTokenSource=new bl;const r=this._cancellationTokenSource.token;if(i=await e.markdown(r),i===void 0&&(i=e.markdownNotSupportedFallback),this.isDisposed||r.isCancellationRequested)return}this.show(i,t,n)}show(e,t,n){const i=this._hoverWidget;if(this.hasContent(e)){const r={content:e,target:this.target,actions:n?.actions,linkHandler:n?.linkHandler,trapFocus:n?.trapFocus,appearance:{showPointer:this.hoverDelegate.placement==="element",skipFadeInAnimation:!this.fadeInAnimation||!!i,showHoverHint:n?.appearance?.showHoverHint},position:{hoverPosition:2}};this._hoverWidget=this.hoverDelegate.showHover(r,t)}i?.dispose()}hasContent(e){return e?sC(e)?!!e.value:!0:!1}get isDisposed(){return this._hoverWidget?.isDisposed}dispose(){this._hoverWidget?.dispose(),this._cancellationTokenSource?.dispose(!0),this._cancellationTokenSource=void 0}}}});function aut(e){if(e!==void 0)return e?.id??e}function lut(e,t){for(t=t??Yi(e).document.body;!e.hasAttribute("custom-hover")&&e!==t;)e=e.parentElement;return e}var cut,P5,RJ,uut,JVn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/services/hoverService/hoverService.js"(){vf(),Ys(),ll(),PN(),xg(),li(),YVn(),Nt(),Fn(),tl(),mf(),Cm(),LN(),wg(),hqt(),XVn(),fr(),cut=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},P5=function(e,t){return function(n,i){t(n,i,e)}},RJ=class extends St{constructor(t,n,i,r,o){super(),this._instantiationService=t,this._keybindingService=i,this._layoutService=r,this._accessibilityService=o,this._managedHovers=new Map,n.onDidShowContextMenu(()=>this.hideHover()),this._contextViewHandler=this._register(new ZH(this._layoutService))}showHover(t,n,i){if(aut(this._currentHoverOptions)===aut(t)||this._currentHover&&this._currentHoverOptions?.persistence?.sticky)return;this._currentHoverOptions=t,this._lastHoverOptions=t;const r=t.trapFocus||this._accessibilityService.isScreenReaderOptimized(),o=cf();i||(r&&o?o.classList.contains("monaco-hover")||(this._lastFocusedElementBeforeOpen=o):this._lastFocusedElementBeforeOpen=void 0);const s=new Jt,a=this._instantiationService.createInstance(_se,t);if(t.persistence?.sticky&&(a.isLocked=!0),a.onDispose(()=>{this._currentHover?.domNode&&XVt(this._currentHover.domNode)&&this._lastFocusedElementBeforeOpen?.focus(),this._currentHoverOptions===t&&(this._currentHoverOptions=void 0),s.dispose()},void 0,s),!t.container){const l=yd(t.target)?t.target:t.target.targetElements[0];t.container=this._layoutService.getContainer(Yi(l))}if(this._contextViewHandler.showContextView(new uut(a,n),t.container),a.onRequestLayout(()=>this._contextViewHandler.layout(),void 0,s),t.persistence?.sticky)s.add(qt(Yi(t.container).document,kn.MOUSE_DOWN,l=>{hd(l.target,a.domNode)||this.doHideHover()}));else{if("targetElements"in t.target)for(const c of t.target.targetElements)s.add(qt(c,kn.CLICK,()=>this.hideHover()));else s.add(qt(t.target,kn.CLICK,()=>this.hideHover()));const l=cf();if(l){const c=Yi(l).document;s.add(qt(l,kn.KEY_DOWN,u=>this._keyDown(u,a,!!t.persistence?.hideOnKeyDown))),s.add(qt(c,kn.KEY_DOWN,u=>this._keyDown(u,a,!!t.persistence?.hideOnKeyDown))),s.add(qt(l,kn.KEY_UP,u=>this._keyUp(u,a))),s.add(qt(c,kn.KEY_UP,u=>this._keyUp(u,a)))}}if("IntersectionObserver"in la){const l=new IntersectionObserver(u=>this._intersectionChange(u,a),{threshold:0}),c="targetElements"in t.target?t.target.targetElements[0]:t.target;l.observe(c),s.add(zi(()=>l.disconnect()))}return this._currentHover=a,a}hideHover(){this._currentHover?.isLocked||!this._currentHoverOptions||this.doHideHover()}doHideHover(){this._currentHover=void 0,this._currentHoverOptions=void 0,this._contextViewHandler.hideContextView()}_intersectionChange(t,n){t[t.length-1].isIntersecting||n.dispose()}showAndFocusLastHover(){this._lastHoverOptions&&this.showHover(this._lastHoverOptions,!0,!0)}_keyDown(t,n,i){if(t.key==="Alt"){n.isLocked=!0;return}const r=new Sa(t);this._keybindingService.resolveKeyboardEvent(r).getSingleModifierDispatchChords().some(s=>!!s)||this._keybindingService.softDispatch(r,r.target).kind!==0||i&&(!this._currentHoverOptions?.trapFocus||t.key!=="Tab")&&(this.hideHover(),this._lastFocusedElementBeforeOpen?.focus())}_keyUp(t,n){t.key==="Alt"&&(n.isLocked=!1,n.isMouseIn||(this.hideHover(),this._lastFocusedElementBeforeOpen?.focus()))}setupManagedHover(t,n,i,r){n.setAttribute("custom-hover","true"),n.title!==""&&(console.warn("HTML element already has a title attribute, which will conflict with the custom hover. Please remove the title attribute."),console.trace("Stack trace:",n.title),n.title="");let o,s;const a=(b,w)=>{const E=s!==void 0;b&&(s?.dispose(),s=void 0),w&&(o?.dispose(),o=void 0),E&&(t.onDidHideHover?.(),s=void 0)},l=(b,w,E,A)=>new Sb(async()=>{(!s||s.isDisposed)&&(s=new fqt(t,E||n,b>0),await s.update(typeof i=="function"?i():i,w,{...r,trapFocus:A}))},b);let c=!1;const u=qt(n,kn.MOUSE_DOWN,()=>{c=!0,a(!0,!0)},!0),d=qt(n,kn.MOUSE_UP,()=>{c=!1},!0),h=qt(n,kn.MOUSE_LEAVE,b=>{c=!1,a(!1,b.fromElement===n)},!0),f=b=>{if(o)return;const w=new Jt,E={targetElements:[n],dispose:()=>{}};if(t.placement===void 0||t.placement==="mouse"){const A=D=>{E.x=D.x+10,yd(D.target)&&lut(D.target,n)!==n&&a(!0,!0)};w.add(qt(n,kn.MOUSE_MOVE,A,!0))}o=w,!(yd(b.target)&&lut(b.target,n)!==n)&&w.add(l(t.delay,!1,E))},p=qt(n,kn.MOUSE_OVER,f,!0),g=()=>{if(c||o)return;const b={targetElements:[n],dispose:()=>{}},w=new Jt,E=()=>a(!0,!0);w.add(qt(n,kn.BLUR,E,!0)),w.add(l(t.delay,!1,b)),o=w};let m;const v=n.tagName.toLowerCase();v!=="input"&&v!=="textarea"&&(m=qt(n,kn.FOCUS,g,!0));const y={show:b=>{a(!1,!0),l(0,b,void 0,b)},hide:()=>{a(!0,!0)},update:async(b,w)=>{i=b,await s?.update(i,void 0,w)},dispose:()=>{this._managedHovers.delete(n),p.dispose(),h.dispose(),u.dispose(),d.dispose(),m?.dispose(),a(!0,!0)}};return this._managedHovers.set(n,y),y}showManagedHover(t){const n=this._managedHovers.get(t);n&&n.show(!0)}dispose(){this._managedHovers.forEach(t=>t.dispose()),super.dispose()}},RJ=cut([P5(0,ji),P5(1,dm),P5(2,Cs),P5(3,yT),P5(4,pm)],RJ),uut=class{get anchorPosition(){return this._hover.anchor}constructor(e,t=!1){this._hover=e,this._focus=t,this.layer=1}render(e){return this._hover.render(e),this._focus&&this._hover.focus(),this._hover}getAnchor(){return{x:this._hover.x,y:this._hover.y}}layout(){this._hover.layout()}},Oo(SC,RJ,1),Ab((e,t)=>{const n=e.getColor(rHe);n&&(t.addRule(`.monaco-workbench .workbench-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${n.transparent(.5)}; }`),t.addRule(`.monaco-workbench .workbench-hover hr { border-top: 1px solid ${n.transparent(.5)}; }`))})}}),M7,wse,KU,Z1e,O7=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/services/bulkEditService.js"(){li(),ss(),as(),M7=Ao("IWorkspaceEditService"),wse=class{constructor(e){this.metadata=e}static convert(e){return e.edits.map(t=>{if(KU.is(t))return KU.lift(t);if(Z1e.is(t))return Z1e.lift(t);throw new Error("Unsupported edit")})}},KU=class Cse extends wse{static is(t){return t instanceof Cse?!0:jd(t)&&Ui.isUri(t.resource)&&jd(t.textEdit)}static lift(t){return t instanceof Cse?t:new Cse(t.resource,t.textEdit,t.versionId,t.metadata)}constructor(t,n,i=void 0,r){super(r),this.resource=t,this.textEdit=n,this.versionId=i}},Z1e=class Sse extends wse{static is(t){return t instanceof Sse?!0:jd(t)&&(!!t.newResource||!!t.oldResource)}static lift(t){return t instanceof Sse?t:new Sse(t.oldResource,t.newResource,t.options,t.metadata)}constructor(t,n,i={},r){super(r),this.oldResource=t,this.newResource=n,this.options=i}}}}),lh,pqt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/config/diffEditor.js"(){lh={enableSplitViewResizing:!0,splitViewDefaultRatio:.5,renderSideBySide:!0,renderMarginRevertIcon:!0,renderGutterMenu:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit",diffAlgorithm:"advanced",accessibilityVerbose:!1,experimental:{showMoves:!1,showEmptyDecorations:!0,useTrueInlineView:!1},hideUnchangedRegions:{enabled:!1,contextLineCount:3,minimumLineCount:3,revealLineCount:20},isInEmbeddedEditor:!1,onlyShowAccessibleDiffViewer:!1,renderSideBySideInlineBreakpoint:900,useInlineViewWhenSpaceIsLimited:!0,compactMode:!1}}});function e3n(e){return typeof e.type<"u"||typeof e.anyOf<"u"}function gqt(){return JH===null&&(JH=Object.create(null),Object.keys(XH.properties).forEach(e=>{JH[e]=!0})),JH}function t3n(e){return gqt()[`editor.${e}`]||!1}function n3n(e){return gqt()[`diffEditor.${e}`]||!1}var U6,XH,JH,dut,aWe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/config/editorConfigurationSchema.js"(){pqt(),Su(),qpe(),bn(),gT(),Fu(),U6=Object.freeze({id:"editor",order:5,type:"object",title:R("editorConfigurationTitle","Editor"),scope:5}),XH={...U6,properties:{"editor.tabSize":{type:"number",default:tf.tabSize,minimum:1,markdownDescription:R("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.indentSize":{anyOf:[{type:"string",enum:["tabSize"]},{type:"number",minimum:1}],default:"tabSize",markdownDescription:R("indentSize",'The number of spaces used for indentation or `"tabSize"` to use the value from `#editor.tabSize#`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.')},"editor.insertSpaces":{type:"boolean",default:tf.insertSpaces,markdownDescription:R("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.detectIndentation":{type:"boolean",default:tf.detectIndentation,markdownDescription:R("detectIndentation","Controls whether {0} and {1} will be automatically detected when a file is opened based on the file contents.","`#editor.tabSize#`","`#editor.insertSpaces#`")},"editor.trimAutoWhitespace":{type:"boolean",default:tf.trimAutoWhitespace,description:R("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:tf.largeFileOptimizations,description:R("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{enum:["off","currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[R("wordBasedSuggestions.off","Turn off Word Based Suggestions."),R("wordBasedSuggestions.currentDocument","Only suggest words from the active document."),R("wordBasedSuggestions.matchingDocuments","Suggest words from all open documents of the same language."),R("wordBasedSuggestions.allDocuments","Suggest words from all open documents.")],description:R("wordBasedSuggestions","Controls whether completions should be computed based on words in the document and from which documents they are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[R("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),R("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),R("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:R("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:R("stablePeek","Keep peek editors open even when double-clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:R("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.experimental.asyncTokenization":{type:"boolean",default:!0,description:R("editor.experimental.asyncTokenization","Controls whether the tokenization should happen asynchronously on a web worker."),tags:["experimental"]},"editor.experimental.asyncTokenizationLogging":{type:"boolean",default:!1,description:R("editor.experimental.asyncTokenizationLogging","Controls whether async tokenization should be logged. For debugging only.")},"editor.experimental.asyncTokenizationVerification":{type:"boolean",default:!1,description:R("editor.experimental.asyncTokenizationVerification","Controls whether async tokenization should be verified against legacy background tokenization. Might slow down tokenization. For debugging only."),tags:["experimental"]},"editor.experimental.treeSitterTelemetry":{type:"boolean",default:!1,markdownDescription:R("editor.experimental.treeSitterTelemetry","Controls whether tree sitter parsing should be turned on and telemetry collected. Setting `editor.experimental.preferTreeSitter` for specific languages will take precedence."),tags:["experimental"]},"editor.language.brackets":{type:["array","null"],default:null,description:R("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:R("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:R("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:R("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:R("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:R("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:lh.maxComputationTime,description:R("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:lh.maxFileSize,description:R("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:lh.renderSideBySide,description:R("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderSideBySideInlineBreakpoint":{type:"number",default:lh.renderSideBySideInlineBreakpoint,description:R("renderSideBySideInlineBreakpoint","If the diff editor width is smaller than this value, the inline view is used.")},"diffEditor.useInlineViewWhenSpaceIsLimited":{type:"boolean",default:lh.useInlineViewWhenSpaceIsLimited,description:R("useInlineViewWhenSpaceIsLimited","If enabled and the editor width is too small, the inline view is used.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:lh.renderMarginRevertIcon,description:R("renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.renderGutterMenu":{type:"boolean",default:lh.renderGutterMenu,description:R("renderGutterMenu","When enabled, the diff editor shows a special gutter for revert and stage actions.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:lh.ignoreTrimWhitespace,description:R("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:lh.renderIndicators,description:R("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:lh.diffCodeLens,description:R("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:lh.diffWordWrap,markdownEnumDescriptions:[R("wordWrap.off","Lines will never wrap."),R("wordWrap.on","Lines will wrap at the viewport width."),R("wordWrap.inherit","Lines will wrap according to the {0} setting.","`#editor.wordWrap#`")]},"diffEditor.diffAlgorithm":{type:"string",enum:["legacy","advanced"],default:lh.diffAlgorithm,markdownEnumDescriptions:[R("diffAlgorithm.legacy","Uses the legacy diffing algorithm."),R("diffAlgorithm.advanced","Uses the advanced diffing algorithm.")],tags:["experimental"]},"diffEditor.hideUnchangedRegions.enabled":{type:"boolean",default:lh.hideUnchangedRegions.enabled,markdownDescription:R("hideUnchangedRegions.enabled","Controls whether the diff editor shows unchanged regions.")},"diffEditor.hideUnchangedRegions.revealLineCount":{type:"integer",default:lh.hideUnchangedRegions.revealLineCount,markdownDescription:R("hideUnchangedRegions.revealLineCount","Controls how many lines are used for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.minimumLineCount":{type:"integer",default:lh.hideUnchangedRegions.minimumLineCount,markdownDescription:R("hideUnchangedRegions.minimumLineCount","Controls how many lines are used as a minimum for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.contextLineCount":{type:"integer",default:lh.hideUnchangedRegions.contextLineCount,markdownDescription:R("hideUnchangedRegions.contextLineCount","Controls how many lines are used as context when comparing unchanged regions."),minimum:1},"diffEditor.experimental.showMoves":{type:"boolean",default:lh.experimental.showMoves,markdownDescription:R("showMoves","Controls whether the diff editor should show detected code moves.")},"diffEditor.experimental.showEmptyDecorations":{type:"boolean",default:lh.experimental.showEmptyDecorations,description:R("showEmptyDecorations","Controls whether the diff editor shows empty decorations to see where characters got inserted or deleted.")},"diffEditor.experimental.useTrueInlineView":{type:"boolean",default:lh.experimental.useTrueInlineView,description:R("useTrueInlineView","If enabled and the editor uses the inline view, word changes are rendered inline.")}}};for(const e of IO){const t=e.schema;if(typeof t<"u")if(e3n(t))XH.properties[`editor.${e.name}`]=t;else for(const n in t)Object.hasOwnProperty.call(t,n)&&(XH.properties[n]=t[n])}JH=null,dut=ml.as(Qy.Configuration),dut.registerConfiguration(XH)}}),pl,Tb=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/editOperation.js"(){Dn(),pl=class{static insert(e,t){return{range:new Re(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}}});function FJ(e){return Object.isFrozen(e)?e:L7n(e)}var ev,hut,fut,A4e,mqt,vqt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/configuration/common/configurationModels.js"(){rr(),kh(),bm(),as(),ss(),sa(),gT(),Fu(),ev=class QM{static createEmptyModel(t){return new QM({},[],[],void 0,t)}constructor(t,n,i,r,o){this._contents=t,this._keys=n,this._overrides=i,this.raw=r,this.logService=o,this.overrideConfigurations=new Map}get rawConfiguration(){if(!this._rawConfiguration)if(this.raw?.length){const t=this.raw.map(n=>{if(n instanceof QM)return n;const i=new hut("",this.logService);return i.parseRaw(n),i.configurationModel});this._rawConfiguration=t.reduce((n,i)=>i===n?i:n.merge(i),t[0])}else this._rawConfiguration=this;return this._rawConfiguration}get contents(){return this._contents}get overrides(){return this._overrides}get keys(){return this._keys}isEmpty(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0}getValue(t){return t?Alt(this.contents,t):this.contents}inspect(t,n){const i=this;return{get value(){return FJ(i.rawConfiguration.getValue(t))},get override(){return n?FJ(i.rawConfiguration.getOverrideValue(t,n)):void 0},get merged(){return FJ(n?i.rawConfiguration.override(n).getValue(t):i.rawConfiguration.getValue(t))},get overrides(){const r=[];for(const{contents:o,identifiers:s,keys:a}of i.rawConfiguration.overrides){const l=new QM(o,a,[],void 0,i.logService).getValue(t);l!==void 0&&r.push({identifiers:s,value:l})}return r.length?FJ(r):void 0}}}getOverrideValue(t,n){const i=this.getContentsForOverrideIdentifer(n);return i?t?Alt(i,t):i:void 0}override(t){let n=this.overrideConfigurations.get(t);return n||(n=this.createOverrideConfigurationModel(t),this.overrideConfigurations.set(t,n)),n}merge(...t){const n=WA(this.contents),i=WA(this.overrides),r=[...this.keys],o=this.raw?.length?[...this.raw]:[this];for(const s of t)if(o.push(...s.raw?.length?s.raw:[s]),!s.isEmpty()){this.mergeContents(n,s.contents);for(const a of s.overrides){const[l]=i.filter(c=>vl(c.identifiers,a.identifiers));l?(this.mergeContents(l.contents,a.contents),l.keys.push(...a.keys),l.keys=BD(l.keys)):i.push(WA(a))}for(const a of s.keys)r.indexOf(a)===-1&&r.push(a)}return new QM(n,r,i,o.every(s=>s instanceof QM)?void 0:o,this.logService)}createOverrideConfigurationModel(t){const n=this.getContentsForOverrideIdentifer(t);if(!n||typeof n!="object"||!Object.keys(n).length)return this;const i={};for(const r of BD([...Object.keys(this.contents),...Object.keys(n)])){let o=this.contents[r];const s=n[r];s&&(typeof o=="object"&&typeof s=="object"?(o=WA(o),this.mergeContents(o,s)):o=s),i[r]=o}return new QM(i,this.keys,this.overrides,void 0,this.logService)}mergeContents(t,n){for(const i of Object.keys(n)){if(i in t&&jd(t[i])&&jd(n[i])){this.mergeContents(t[i],n[i]);continue}t[i]=WA(n[i])}}getContentsForOverrideIdentifer(t){let n=null,i=null;const r=o=>{o&&(i?this.mergeContents(i,o):i=WA(o))};for(const o of this.overrides)o.identifiers.length===1&&o.identifiers[0]===t?n=o.contents:o.identifiers.includes(t)&&r(o.contents);return r(n),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(t,n){this.updateValue(t,n,!1)}removeValue(t){const n=this.keys.indexOf(t);n!==-1&&(this.keys.splice(n,1),mjn(this.contents,t),dD.test(t)&&this.overrides.splice(this.overrides.findIndex(i=>vl(i.identifiers,tse(t))),1))}updateValue(t,n,i){if(uUt(this.contents,t,n,r=>this.logService.error(r)),i=i||this.keys.indexOf(t)===-1,i&&this.keys.push(t),dD.test(t)){const r=tse(t),o={identifiers:r,keys:Object.keys(this.contents[t]),contents:r1e(this.contents[t],a=>this.logService.error(a))},s=this.overrides.findIndex(a=>vl(a.identifiers,r));s!==-1?this.overrides[s]=o:this.overrides.push(o)}}},hut=class{constructor(e,t){this._name=e,this.logService=t,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[]}get configurationModel(){return this._configurationModel||ev.createEmptyModel(this.logService)}parseRaw(e,t){this._raw=e;const{contents:n,keys:i,overrides:r,restricted:o,hasExcludedProperties:s}=this.doParseRaw(e,t);this._configurationModel=new ev(n,i,r,s?[e]:void 0,this.logService),this._restrictedConfigurations=o||[]}doParseRaw(e,t){const n=ml.as(Qy.Configuration).getConfigurationProperties(),i=this.filter(e,n,!0,t);e=i.raw;const r=r1e(e,a=>this.logService.error(`Conflict in settings file ${this._name}: ${a}`)),o=Object.keys(e),s=this.toOverrides(e,a=>this.logService.error(`Conflict in settings file ${this._name}: ${a}`));return{contents:r,keys:o,overrides:s,restricted:i.restricted,hasExcludedProperties:i.hasExcludedProperties}}filter(e,t,n,i){let r=!1;if(!i?.scopes&&!i?.skipRestricted&&!i?.exclude?.length)return{raw:e,restricted:[],hasExcludedProperties:r};const o={},s=[];for(const a in e)if(dD.test(a)&&n){const l=this.filter(e[a],t,!1,i);o[a]=l.raw,r=r||l.hasExcludedProperties,s.push(...l.restricted)}else{const l=t[a],c=l?typeof l.scope<"u"?l.scope:3:void 0;l?.restricted&&s.push(a),!i.exclude?.includes(a)&&(i.include?.includes(a)||(c===void 0||i.scopes===void 0||i.scopes.includes(c))&&!(i.skipRestricted&&l?.restricted))?o[a]=e[a]:r=!0}return{raw:o,restricted:s,hasExcludedProperties:r}}toOverrides(e,t){const n=[];for(const i of Object.keys(e))if(dD.test(i)){const r={};for(const o in e[i])r[o]=e[i][o];n.push({identifiers:tse(i),keys:Object.keys(r),contents:r1e(r,t)})}return n}},fut=class{constructor(e,t,n,i,r,o,s,a,l,c,u,d,h){this.key=e,this.overrides=t,this._value=n,this.overrideIdentifiers=i,this.defaultConfiguration=r,this.policyConfiguration=o,this.applicationConfiguration=s,this.userConfiguration=a,this.localUserConfiguration=l,this.remoteUserConfiguration=c,this.workspaceConfiguration=u,this.folderConfigurationModel=d,this.memoryConfigurationModel=h}toInspectValue(e){return e?.value!==void 0||e?.override!==void 0||e?.overrides!==void 0?e:void 0}get userInspectValue(){return this._userInspectValue||(this._userInspectValue=this.userConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._userInspectValue}get user(){return this.toInspectValue(this.userInspectValue)}},A4e=class yqt{constructor(t,n,i,r,o,s,a,l,c,u){this._defaultConfiguration=t,this._policyConfiguration=n,this._applicationConfiguration=i,this._localUserConfiguration=r,this._remoteUserConfiguration=o,this._workspaceConfiguration=s,this._folderConfigurations=a,this._memoryConfiguration=l,this._memoryConfigurationByResource=c,this.logService=u,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new mh,this._userConfiguration=null}getValue(t,n,i){return this.getConsolidatedConfigurationModel(t,n,i).getValue(t)}updateValue(t,n,i={}){let r;i.resource?(r=this._memoryConfigurationByResource.get(i.resource),r||(r=ev.createEmptyModel(this.logService),this._memoryConfigurationByResource.set(i.resource,r))):r=this._memoryConfiguration,n===void 0?r.removeValue(t):r.setValue(t,n),i.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(t,n,i){const r=this.getConsolidatedConfigurationModel(t,n,i),o=this.getFolderConfigurationModelForResource(n.resource,i),s=n.resource?this._memoryConfigurationByResource.get(n.resource)||this._memoryConfiguration:this._memoryConfiguration,a=new Set;for(const l of r.overrides)for(const c of l.identifiers)r.getOverrideValue(t,c)!==void 0&&a.add(c);return new fut(t,n,r.getValue(t),a.size?[...a]:void 0,this._defaultConfiguration,this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,i?this._workspaceConfiguration:void 0,o||void 0,s)}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration)),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidatedConfigurationModel(t,n,i){let r=this.getConsolidatedConfigurationModelForResource(n,i);return n.overrideIdentifier&&(r=r.override(n.overrideIdentifier)),!this._policyConfiguration.isEmpty()&&this._policyConfiguration.getValue(t)!==void 0&&(r=r.merge(this._policyConfiguration)),r}getConsolidatedConfigurationModelForResource({resource:t},n){let i=this.getWorkspaceConsolidatedConfiguration();if(n&&t){const r=n.getFolder(t);r&&(i=this.getFolderConsolidatedConfiguration(r.uri)||i);const o=this._memoryConfigurationByResource.get(t);o&&(i=i.merge(o))}return i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration)),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(t){let n=this._foldersConsolidatedConfigurations.get(t);if(!n){const i=this.getWorkspaceConsolidatedConfiguration(),r=this._folderConfigurations.get(t);r?(n=i.merge(r),this._foldersConsolidatedConfigurations.set(t,n)):n=i}return n}getFolderConfigurationModelForResource(t,n){if(n&&t){const i=n.getFolder(t);if(i)return this._folderConfigurations.get(i.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce((t,n)=>{const{contents:i,overrides:r,keys:o}=this._folderConfigurations.get(n);return t.push([n,{contents:i,overrides:r,keys:o}]),t},[])}}static parse(t,n){const i=this.parseConfigurationModel(t.defaults,n),r=this.parseConfigurationModel(t.policy,n),o=this.parseConfigurationModel(t.application,n),s=this.parseConfigurationModel(t.user,n),a=this.parseConfigurationModel(t.workspace,n),l=t.folders.reduce((c,u)=>(c.set(Ui.revive(u[0]),this.parseConfigurationModel(u[1],n)),c),new mh);return new yqt(i,r,o,s,ev.createEmptyModel(n),a,l,ev.createEmptyModel(n),new mh,n)}static parseConfigurationModel(t,n){return new ev(t.contents,t.keys,t.overrides,void 0,n)}},mqt=class{constructor(e,t,n,i,r){this.change=e,this.previous=t,this.currentConfiguraiton=n,this.currentWorkspace=i,this.logService=r,this._marker=`
`,this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=46,this.affectedKeys=new Set,this._previousConfiguration=void 0;for(const o of e.keys)this.affectedKeys.add(o);for(const[,o]of e.overrides)for(const s of o)this.affectedKeys.add(s);this._affectsConfigStr=this._marker;for(const o of this.affectedKeys)this._affectsConfigStr+=o+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=A4e.parse(this.previous.data,this.logService)),this._previousConfiguration}affectsConfiguration(e,t){const n=this._marker+e,i=this._affectsConfigStr.indexOf(n);if(i<0)return!1;const r=i+n.length;if(r>=this._affectsConfigStr.length)return!1;const o=this._affectsConfigStr.charCodeAt(r);if(o!==this._markerCode1&&o!==this._markerCode2)return!1;if(t){const s=this.previousConfiguration?this.previousConfiguration.getValue(e,t,this.previous?.workspace):void 0,a=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!Ev(s,a)}return!0}}}}),put,$6,bqt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/ime.js"(){Un(),put=class{constructor(){this._onDidChange=new bt,this.onDidChange=this._onDidChange.event,this._enabled=!0}get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}},$6=new put}});function i3n(e,t,n){return{kind:2,commandId:e,commandArgs:t,isBubble:n}}function gut(e){return e?`${e.serialize()}`:"no when condition"}function mut(e){return e.extensionId?e.isBuiltinExtension?`built-in extension ${e.extensionId}`:`user extension ${e.extensionId}`:e.isDefault?"built-in":"user"}var YU,vut,_qt,wqt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybindingResolver.js"(){er(),YU={kind:0},vut={kind:1},_qt=class xse{constructor(t,n,i){this._log=i,this._defaultKeybindings=t,this._defaultBoundCommands=new Map;for(const r of t){const o=r.command;o&&o.charAt(0)!=="-"&&this._defaultBoundCommands.set(o,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=xse.handleRemovals([].concat(t).concat(n));for(let r=0,o=this._keybindings.length;r<o;r++){const s=this._keybindings[r];if(s.chords.length===0)continue;const a=s.when?.substituteConstants();a&&a.type===0||this._addKeyPress(s.chords[0],s)}}static _isTargetedForRemoval(t,n,i){if(n){for(let r=0;r<n.length;r++)if(n[r]!==t.chords[r])return!1}return!(i&&i.type!==1&&(!t.when||!Y7n(i,t.when)))}static handleRemovals(t){const n=new Map;for(let r=0,o=t.length;r<o;r++){const s=t[r];if(s.command&&s.command.charAt(0)==="-"){const a=s.command.substring(1);n.has(a)?n.get(a).push(s):n.set(a,[s])}}if(n.size===0)return t;const i=[];for(let r=0,o=t.length;r<o;r++){const s=t[r];if(!s.command||s.command.length===0){i.push(s);continue}if(s.command.charAt(0)==="-")continue;const a=n.get(s.command);if(!a||!s.isDefault){i.push(s);continue}let l=!1;for(const c of a){const u=c.when;if(this._isTargetedForRemoval(s,c.chords,u)){l=!0;break}}if(!l){i.push(s);continue}}return i}_addKeyPress(t,n){const i=this._map.get(t);if(typeof i>"u"){this._map.set(t,[n]),this._addToLookupMap(n);return}for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.command===n.command)continue;let s=!0;for(let a=1;a<o.chords.length&&a<n.chords.length;a++)if(o.chords[a]!==n.chords[a]){s=!1;break}s&&xse.whenIsEntirelyIncluded(o.when,n.when)&&this._removeFromLookupMap(o)}i.push(n),this._addToLookupMap(n)}_addToLookupMap(t){if(!t.command)return;let n=this._lookupMap.get(t.command);typeof n>"u"?(n=[t],this._lookupMap.set(t.command,n)):n.push(t)}_removeFromLookupMap(t){if(!t.command)return;const n=this._lookupMap.get(t.command);if(!(typeof n>"u")){for(let i=0,r=n.length;i<r;i++)if(n[i]===t){n.splice(i,1);return}}}static whenIsEntirelyIncluded(t,n){return!n||n.type===1?!0:!t||t.type===1?!1:T5e(t,n)}getKeybindings(){return this._keybindings}lookupPrimaryKeybinding(t,n){const i=this._lookupMap.get(t);if(typeof i>"u"||i.length===0)return null;if(i.length===1)return i[0];for(let r=i.length-1;r>=0;r--){const o=i[r];if(n.contextMatchesRules(o.when))return o}return i[i.length-1]}resolve(t,n,i){const r=[...n,i];this._log(`| Resolving ${r}`);const o=this._map.get(r[0]);if(o===void 0)return this._log("\\ No keybinding entries."),YU;let s=null;if(r.length<2)s=o;else{s=[];for(let l=0,c=o.length;l<c;l++){const u=o[l];if(r.length>u.chords.length)continue;let d=!0;for(let h=1;h<r.length;h++)if(u.chords[h]!==r[h]){d=!1;break}d&&s.push(u)}}const a=this._findCommand(t,s);return a?r.length<a.chords.length?(this._log(`\\ From ${s.length} keybinding entries, awaiting ${a.chords.length-r.length} more chord(s), when: ${gut(a.when)}, source: ${mut(a)}.`),vut):(this._log(`\\ From ${s.length} keybinding entries, matched ${a.command}, when: ${gut(a.when)}, source: ${mut(a)}.`),i3n(a.command,a.commandArgs,a.bubble)):(this._log(`\\ From ${s.length} keybinding entries, no when clauses matched the context.`),YU)}_findCommand(t,n){for(let i=n.length-1;i>=0;i--){const r=n[i];if(xse._contextMatchesRules(t,r.when))return r}return null}static _contextMatchesRules(t,n){return n?n.evaluate(t):!0}}}}),yut,Cqt,Zz,r3n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/keybinding/common/abstractKeybindingService.js"(){var e;fr(),Vi(),Un(),bqt(),Nt(),bn(),wqt(),yut=/^(cursor|delete|undo|redo|tab|editor\.action\.clipboard)/,Cqt=class extends St{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:On.None}get inChordMode(){return this._currentChords.length>0}constructor(t,n,i,r,o){super(),this._contextKeyService=t,this._commandService=n,this._telemetryService=i,this._notificationService=r,this._logService=o,this._onDidUpdateKeybindings=this._register(new bt),this._currentChords=[],this._currentChordChecker=new Mpe,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=Zz.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new Sb,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(t){this._logging&&this._logService.info(`[KeybindingService]: ${t}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(t,n){const i=this._getResolver().lookupPrimaryKeybinding(t,n||this._contextKeyService);if(i)return i.resolvedKeybinding}dispatchEvent(t,n){return this._dispatch(t,n)}softDispatch(t,n){this._log("/ Soft dispatching keyboard event");const i=this.resolveKeyboardEvent(t);if(i.hasMultipleChords())return console.warn("keyboard event should not be mapped to multiple chords"),YU;const[r]=i.getDispatchChords();if(r===null)return this._log("\\ Keyboard event cannot be dispatched"),YU;const o=this._contextKeyService.getContext(n),s=this._currentChords.map((({keypress:a})=>a));return this._getResolver().resolve(o,s,r)}_scheduleLeaveChordMode(){const t=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-t>5e3&&this._leaveChordMode()},500)}_expectAnotherChord(t,n){switch(this._currentChords.push({keypress:t,label:n}),this._currentChords.length){case 0:throw yVe("impossible");case 1:this._currentChordStatusMessage=this._notificationService.status(R("first.chord","({0}) was pressed. Waiting for second key of chord...",n));break;default:{const i=this._currentChords.map(({label:r})=>r).join(", ");this._currentChordStatusMessage=this._notificationService.status(R("next.chord","({0}) was pressed. Waiting for next key of chord...",i))}}this._scheduleLeaveChordMode(),$6.enabled&&$6.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],$6.enable()}_dispatch(t,n){return this._doDispatch(this.resolveKeyboardEvent(t),n,!1)}_singleModifierDispatch(t,n){const i=this.resolveKeyboardEvent(t),[r]=i.getSingleModifierDispatchChords();if(r)return this._ignoreSingleModifiers.has(r)?(this._log(`+ Ignoring single modifier ${r} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=Zz.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=Zz.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${r}.`),this._currentSingleModifier=r,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null},300),!1):r===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${r} ${r}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,n,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${r}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[o]=i.getChords();return this._ignoreSingleModifiers=new Zz(o),this._currentSingleModifier!==null&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(t,n,i=!1){let r=!1;if(t.hasMultipleChords())return console.warn("Unexpected keyboard event mapped to multiple chords"),!1;let o=null,s=null;if(i){const[u]=t.getSingleModifierDispatchChords();o=u,s=u?[u]:[]}else[o]=t.getDispatchChords(),s=this._currentChords.map(({keypress:u})=>u);if(o===null)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),r;const a=this._contextKeyService.getContext(n),l=t.getLabel(),c=this._getResolver().resolve(a,s,o);switch(c.kind){case 0:{if(this._logService.trace("KeybindingService#dispatch",l,"[ No matching keybinding ]"),this.inChordMode){const u=this._currentChords.map(({label:d})=>d).join(", ");this._log(`+ Leaving multi-chord mode: Nothing bound to "${u}, ${l}".`),this._notificationService.status(R("missing.chord","The key combination ({0}, {1}) is not a command.",u,l),{hideAfter:10*1e3}),this._leaveChordMode(),r=!0}return r}case 1:return this._logService.trace("KeybindingService#dispatch",l,"[ Several keybindings match - more chords needed ]"),r=!0,this._expectAnotherChord(o,l),this._log(this._currentChords.length===1?"+ Entering multi-chord mode...":"+ Continuing multi-chord mode..."),r;case 2:{if(this._logService.trace("KeybindingService#dispatch",l,`[ Will dispatch command ${c.commandId} ]`),c.commandId===null||c.commandId===""){if(this.inChordMode){const u=this._currentChords.map(({label:d})=>d).join(", ");this._log(`+ Leaving chord mode: Nothing bound to "${u}, ${l}".`),this._notificationService.status(R("missing.chord","The key combination ({0}, {1}) is not a command.",u,l),{hideAfter:10*1e3}),this._leaveChordMode(),r=!0}}else{this.inChordMode&&this._leaveChordMode(),c.isBubble||(r=!0),this._log(`+ Invoking command ${c.commandId}.`),this._currentlyDispatchingCommandId=c.commandId;try{typeof c.commandArgs>"u"?this._commandService.executeCommand(c.commandId).then(void 0,u=>this._notificationService.warn(u)):this._commandService.executeCommand(c.commandId,c.commandArgs).then(void 0,u=>this._notificationService.warn(u))}finally{this._currentlyDispatchingCommandId=null}yut.test(c.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:c.commandId,from:"keybinding",detail:t.getUserSettingsLabel()??void 0})}return r}}}mightProducePrintableCharacter(t){return t.ctrlKey||t.metaKey?!1:t.keyCode>=31&&t.keyCode<=56||t.keyCode>=21&&t.keyCode<=30}},Zz=(e=class{constructor(n){this._ctrlKey=n?n.ctrlKey:!1,this._shiftKey=n?n.shiftKey:!1,this._altKey=n?n.altKey:!1,this._metaKey=n?n.metaKey:!1}has(n){switch(n){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}},e.EMPTY=new e(null),e)}});function D4e(e){const t=[];for(let n=0,i=e.length;n<i;n++){const r=e[n];if(!r)return[];t.push(r)}return t}var T4e,Sqt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/keybinding/common/resolvedKeybindingItem.js"(){T4e=class{constructor(e,t,n,i,r,o,s){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.chords=e?D4e(e.getDispatchChords()):[],e&&this.chords.length===0&&(this.chords=D4e(e.getSingleModifierDispatchChords())),this.bubble=t?t.charCodeAt(0)===94:!1,this.command=this.bubble?t.substr(1):t,this.commandArgs=n,this.when=i,this.isDefault=r,this.extensionId=o,this.isBuiltinExtension=s}}}});function o3n(e,t,n){if(t===null)return"";const i=[];return e.ctrlKey&&i.push(n.ctrlKey),e.shiftKey&&i.push(n.shiftKey),e.altKey&&i.push(n.altKey),e.metaKey&&i.push(n.metaKey),t!==""&&i.push(t),i.join(n.separator)}var Xz,gge,xqt,Eqt,Aqt,lWe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/keybindingLabels.js"(){bn(),Xz=class{constructor(e,t,n=t){this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=n}toLabel(e,t,n){if(t.length===0)return null;const i=[];for(let r=0,o=t.length;r<o;r++){const s=t[r],a=n(s);if(a===null)return null;i[r]=o3n(s,a,this.modifierLabels[e])}return i.join(" ")}},gge=new Xz({ctrlKey:"⌃",shiftKey:"⇧",altKey:"⌥",metaKey:"⌘",separator:""},{ctrlKey:R({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:R({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:R({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:R({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:R({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:R({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:R({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:R({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),xqt=new Xz({ctrlKey:R({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:R({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:R({key:"optKey.long",comment:["This is the long form for the Alt/Option key on the keyboard"]},"Option"),metaKey:R({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:R({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:R({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:R({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:R({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:R({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:R({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:R({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:R({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"}),Eqt=new Xz({ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Cmd",separator:"+"},{ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Super",separator:"+"}),Aqt=new Xz({ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"cmd",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"win",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"meta",separator:"+"})}}),Dqt,s3n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/keybinding/common/baseResolvedKeybinding.js"(){Vi(),lWe(),C7(),Dqt=class extends _Vt{constructor(e,t){if(super(),t.length===0)throw Gy("chords");this._os=e,this._chords=t}getLabel(){return gge.toLabel(this._os,this._chords,e=>this._getLabel(e))}getAriaLabel(){return xqt.toLabel(this._os,this._chords,e=>this._getAriaLabel(e))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:Eqt.toLabel(this._os,this._chords,e=>this._getElectronAccelerator(e))}getUserSettingsLabel(){return Aqt.toLabel(this._os,this._chords,e=>this._getUserSettingsLabel(e))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map(e=>this._getChord(e))}_getChord(e){return new bVt(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchChords(){return this._chords.map(e=>this._getChordDispatch(e))}getSingleModifierDispatchChords(){return this._chords.map(e=>this._getSingleModifierChordDispatch(e))}}}}),k4e,a3n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/keybinding/common/usLayoutResolvedKeybinding.js"(){wb(),C7(),s3n(),Sqt(),k4e=class I4e extends Dqt{constructor(t,n){super(n,t)}_keyCodeToUILabel(t){if(this._os===2)switch(t){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return KA.toString(t)}_getLabel(t){return t.isDuplicateModifierCase()?"":this._keyCodeToUILabel(t.keyCode)}_getAriaLabel(t){return t.isDuplicateModifierCase()?"":KA.toString(t.keyCode)}_getElectronAccelerator(t){return KA.toElectronAccelerator(t.keyCode)}_getUserSettingsLabel(t){if(t.isDuplicateModifierCase())return"";const n=KA.toUserSettingsUS(t.keyCode);return n&&n.toLowerCase()}_getChordDispatch(t){return I4e.getDispatchStr(t)}static getDispatchStr(t){if(t.isModifierKey())return null;let n="";return t.ctrlKey&&(n+="ctrl+"),t.shiftKey&&(n+="shift+"),t.altKey&&(n+="alt+"),t.metaKey&&(n+="meta+"),n+=KA.toString(t.keyCode),n}_getSingleModifierChordDispatch(t){return t.keyCode===5&&!t.shiftKey&&!t.altKey&&!t.metaKey?"ctrl":t.keyCode===4&&!t.ctrlKey&&!t.altKey&&!t.metaKey?"shift":t.keyCode===6&&!t.ctrlKey&&!t.shiftKey&&!t.metaKey?"alt":t.keyCode===57&&!t.ctrlKey&&!t.shiftKey&&!t.altKey?"meta":null}static _scanCodeToKeyCode(t){const n=boe[t];if(n!==-1)return n;switch(t){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 88;case 52:return 86;case 53:return 92;case 54:return 94;case 55:return 93;case 56:return 0;case 57:return 85;case 58:return 95;case 59:return 91;case 60:return 87;case 61:return 89;case 62:return 90;case 106:return 97}return 0}static _toKeyCodeChord(t){if(!t)return null;if(t instanceof AL)return t;const n=this._scanCodeToKeyCode(t.scanCode);return n===0?null:new AL(t.ctrlKey,t.shiftKey,t.altKey,t.metaKey,n)}static resolveKeybinding(t,n){const i=D4e(t.chords.map(r=>this._toKeyCodeChord(r)));return i.length>0?[new I4e(i,n)]:[]}}}}),t2,gY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/label/common/label.js"(){li(),t2=Ao("labelService")}}),cWe,gx,jD,$C=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/progress/common/progress.js"(){var e;li(),cWe=Ao("progressService"),gx=(e=class{constructor(n){this.callback=n}report(n){this._value=n,this.callback(this._value)}},e.None=Object.freeze({report(){}}),e),jD=Ao("editorProgressService")}}),but,_ut,wut,Cut,Jz,uWe,dWe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/ternarySearchTree.js"(){Ki(),but=class{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){const t=e.charCodeAt(0),n=this._value.charCodeAt(this._pos);return t-n}value(){return this._value[this._pos]}},_ut=class{constructor(e=!0){this._caseSensitive=e}reset(e){return this._value=e,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++)if(this._value.charCodeAt(this._to)===46)if(e)this._from++;else break;else e=!1;return this}cmp(e){return this._caseSensitive?qFe(e,this._value,0,e.length,this._from,this._to):Pq(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}},wut=class{constructor(e=!0,t=!0){this._splitOnBackslash=e,this._caseSensitive=t}reset(e){this._from=0,this._to=0,this._value=e,this._valueLen=e.length;for(let t=e.length-1;t>=0;t--,this._valueLen--){const n=this._value.charCodeAt(t);if(!(n===47||this._splitOnBackslash&&n===92))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let e=!0;for(;this._to<this._valueLen;this._to++){const t=this._value.charCodeAt(this._to);if(t===47||this._splitOnBackslash&&t===92)if(e)this._from++;else break;else e=!1}return this}cmp(e){return this._caseSensitive?qFe(e,this._value,0,e.length,this._from,this._to):Pq(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}},Cut=class{constructor(e,t){this._ignorePathCasing=e,this._ignoreQueryAndFragment=t,this._states=[],this._stateIdx=0}reset(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new wut(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(e)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(this._states[this._stateIdx]===1)return GFe(e,this._value.scheme);if(this._states[this._stateIdx]===2)return GFe(e,this._value.authority);if(this._states[this._stateIdx]===3)return this._pathIterator.cmp(e);if(this._states[this._stateIdx]===4)return Nq(e,this._value.query);if(this._states[this._stateIdx]===5)return Nq(e,this._value.fragment);throw new Error}value(){if(this._states[this._stateIdx]===1)return this._value.scheme;if(this._states[this._stateIdx]===2)return this._value.authority;if(this._states[this._stateIdx]===3)return this._pathIterator.value();if(this._states[this._stateIdx]===4)return this._value.query;if(this._states[this._stateIdx]===5)return this._value.fragment;throw new Error}},Jz=class{constructor(){this.height=1}rotateLeft(){const e=this.right;return this.right=e.left,e.left=this,this.updateHeight(),e.updateHeight(),e}rotateRight(){const e=this.left;return this.left=e.right,e.right=this,this.updateHeight(),e.updateHeight(),e}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){return this.left?.height??0}get heightRight(){return this.right?.height??0}},uWe=class Ese{static forUris(t=()=>!1,n=()=>!1){return new Ese(new Cut(t,n))}static forStrings(){return new Ese(new but)}static forConfigKeys(){return new Ese(new _ut)}constructor(t){this._iter=t}clear(){this._root=void 0}set(t,n){const i=this._iter.reset(t);let r;this._root||(this._root=new Jz,this._root.segment=i.value());const o=[];for(r=this._root;;){const a=i.cmp(r.segment);if(a>0)r.left||(r.left=new Jz,r.left.segment=i.value()),o.push([-1,r]),r=r.left;else if(a<0)r.right||(r.right=new Jz,r.right.segment=i.value()),o.push([1,r]),r=r.right;else if(i.hasNext())i.next(),r.mid||(r.mid=new Jz,r.mid.segment=i.value()),o.push([0,r]),r=r.mid;else break}const s=r.value;r.value=n,r.key=t;for(let a=o.length-1;a>=0;a--){const l=o[a][1];l.updateHeight();const c=l.balanceFactor();if(c<-1||c>1){const u=o[a][0],d=o[a+1][0];if(u===1&&d===1)o[a][1]=l.rotateLeft();else if(u===-1&&d===-1)o[a][1]=l.rotateRight();else if(u===1&&d===-1)l.right=o[a+1][1]=o[a+1][1].rotateRight(),o[a][1]=l.rotateLeft();else if(u===-1&&d===1)l.left=o[a+1][1]=o[a+1][1].rotateLeft(),o[a][1]=l.rotateRight();else throw new Error;if(a>0)switch(o[a-1][0]){case-1:o[a-1][1].left=o[a][1];break;case 1:o[a-1][1].right=o[a][1];break;case 0:o[a-1][1].mid=o[a][1];break}else this._root=o[0][1]}}return s}get(t){return this._getNode(t)?.value}_getNode(t){const n=this._iter.reset(t);let i=this._root;for(;i;){const r=n.cmp(i.segment);if(r>0)i=i.left;else if(r<0)i=i.right;else if(n.hasNext())n.next(),i=i.mid;else break}return i}has(t){const n=this._getNode(t);return!(n?.value===void 0&&n?.mid===void 0)}delete(t){return this._delete(t,!1)}deleteSuperstr(t){return this._delete(t,!0)}_delete(t,n){const i=this._iter.reset(t),r=[];let o=this._root;for(;o;){const s=i.cmp(o.segment);if(s>0)r.push([-1,o]),o=o.left;else if(s<0)r.push([1,o]),o=o.right;else if(i.hasNext())i.next(),r.push([0,o]),o=o.mid;else break}if(o){if(n?(o.left=void 0,o.mid=void 0,o.right=void 0,o.height=1):(o.key=void 0,o.value=void 0),!o.mid&&!o.value)if(o.left&&o.right){const s=this._min(o.right);if(s.key){const{key:a,value:l,segment:c}=s;this._delete(s.key,!1),o.key=a,o.value=l,o.segment=c}}else{const s=o.left??o.right;if(r.length>0){const[a,l]=r[r.length-1];switch(a){case-1:l.left=s;break;case 0:l.mid=s;break;case 1:l.right=s;break}}else this._root=s}for(let s=r.length-1;s>=0;s--){const a=r[s][1];a.updateHeight();const l=a.balanceFactor();if(l>1?(a.right.balanceFactor()>=0||(a.right=a.right.rotateRight()),r[s][1]=a.rotateLeft()):l<-1&&(a.left.balanceFactor()<=0||(a.left=a.left.rotateLeft()),r[s][1]=a.rotateRight()),s>0)switch(r[s-1][0]){case-1:r[s-1][1].left=r[s][1];break;case 1:r[s-1][1].right=r[s][1];break;case 0:r[s-1][1].mid=r[s][1];break}else this._root=r[0][1]}}}_min(t){for(;t.left;)t=t.left;return t}findSubstr(t){const n=this._iter.reset(t);let i=this._root,r;for(;i;){const o=n.cmp(i.segment);if(o>0)i=i.left;else if(o<0)i=i.right;else if(n.hasNext())n.next(),r=i.value||r,i=i.mid;else break}return i&&i.value||r}findSuperstr(t){return this._findSuperstrOrElement(t,!1)}_findSuperstrOrElement(t,n){const i=this._iter.reset(t);let r=this._root;for(;r;){const o=i.cmp(r.segment);if(o>0)r=r.left;else if(o<0)r=r.right;else if(i.hasNext())i.next(),r=r.mid;else return r.mid?this._entries(r.mid):n?r.value:void 0}}forEach(t){for(const[n,i]of this)t(i,n)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(t){const n=[];return this._dfsEntries(t,n),n[Symbol.iterator]()}_dfsEntries(t,n){t&&(t.left&&this._dfsEntries(t.left,n),t.value&&n.push([t.key,t.value]),t.mid&&this._dfsEntries(t.mid,n),t.right&&this._dfsEntries(t.right,n))}}}});function L4e(e){const t=e;return typeof t?.id=="string"&&Ui.isUri(t.uri)}function l3n(e){return typeof e?.id=="string"&&!L4e(e)&&!u3n(e)}function c3n(e,t){if(typeof e=="string"||typeof e>"u")return typeof e=="string"?{id:YA(e)}:Tqt;const n=e;return n.configuration?{id:n.id,configPath:n.configuration}:n.folders.length===1?{id:n.id,uri:n.folders[0].uri}:{id:n.id}}function u3n(e){const t=e;return typeof t?.id=="string"&&Ui.isUri(t.configPath)}function d3n(e){return e.id===hWe}var lL,Tqt,kqt,Zue,hWe,mY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/workspace/common/workspace.js"(){bn(),bE(),dWe(),ss(),li(),lL=Ao("contextService"),Tqt={id:"empty-window"},kqt=class{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}},Zue="code-workspace",R("codeWorkspace","Code Workspace"),hWe="4064f6ec-cb38-4ad0-af64-ee6467e63c82"}}),N4e,Xue,P4e,Jue,QU,M4e,O4e,R4e,bT=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/standaloneStrings.js"(){bn(),(function(e){e.inspectTokensAction=R("inspectTokens","Developer: Inspect Tokens")})(N4e||(N4e={})),(function(e){e.gotoLineActionLabel=R("gotoLineActionLabel","Go to Line/Column...")})(Xue||(Xue={})),(function(e){e.helpQuickAccessActionLabel=R("helpQuickAccess","Show all Quick Access Providers")})(P4e||(P4e={})),(function(e){e.quickCommandActionLabel=R("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=R("quickCommandActionHelp","Show And Run Commands")})(Jue||(Jue={})),(function(e){e.quickOutlineActionLabel=R("quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=R("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")})(QU||(QU={})),(function(e){e.editorViewAccessibleLabel=R("editorViewAccessibleLabel","Editor content")})(M4e||(M4e={})),(function(e){e.toggleHighContrast=R("toggleHighContrast","Toggle High Contrast Theme")})(O4e||(O4e={})),(function(e){e.bulkEditServiceSummary=R("bulkEditServiceSummary","Made {0} edits in {1} files")})(R4e||(R4e={}))}}),fWe,Iqt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/workspace/common/workspaceTrust.js"(){li(),fWe=Ao("workspaceTrustManagementService")}});function BJ(e,t=!1){h3n(e,!1,t)}function h3n(e,t,n){const i=f3n(e,t);n2.push(i),i.userConfigured?pWe.push(i):mge.push(i),n&&!i.userConfigured&&n2.forEach(r=>{r.mime===i.mime||r.userConfigured||(i.extension&&r.extension===i.extension&&console.warn(`Overwriting extension <<${i.extension}>> to now point to mime <<${i.mime}>>`),i.filename&&r.filename===i.filename&&console.warn(`Overwriting filename <<${i.filename}>> to now point to mime <<${i.mime}>>`),i.filepattern&&r.filepattern===i.filepattern&&console.warn(`Overwriting filepattern <<${i.filepattern}>> to now point to mime <<${i.mime}>>`),i.firstline&&r.firstline===i.firstline&&console.warn(`Overwriting firstline <<${i.firstline}>> to now point to mime <<${i.mime}>>`))})}function f3n(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?d$t(e.filepattern.toLowerCase()):void 0,filepatternOnPath:e.filepattern?e.filepattern.indexOf(Vc.sep)>=0:!1}}function p3n(){n2=n2.filter(e=>e.userConfigured),mge=[]}function g3n(e,t){return m3n(e,t).map(n=>n.id)}function m3n(e,t){let n;if(e)switch(e.scheme){case Pr.file:n=e.fsPath;break;case Pr.data:{n=ML.parseMetaData(e).get(ML.META_DATA_LABEL);break}case Pr.vscodeNotebookCell:n=void 0;break;default:n=e.path}if(!n)return[{id:"unknown",mime:Jl.unknown}];n=n.toLowerCase();const i=YA(n),r=Sut(n,i,pWe);if(r)return[r,{id:xp,mime:Jl.text}];const o=Sut(n,i,mge);if(o)return[o,{id:xp,mime:Jl.text}];if(t){const s=v3n(t);if(s)return[s,{id:xp,mime:Jl.text}]}return[{id:"unknown",mime:Jl.unknown}]}function Sut(e,t,n){let i,r,o;for(let s=n.length-1;s>=0;s--){const a=n[s];if(t===a.filenameLowercase){i=a;break}if(a.filepattern&&(!r||a.filepattern.length>r.filepattern.length)){const l=a.filepatternOnPath?e:t;a.filepatternLowercase?.(l)&&(r=a)}a.extension&&(!o||a.extension.length>o.extension.length)&&t.endsWith(a.extensionLowercase)&&(o=a)}if(i)return i;if(r)return r;if(o)return o}function v3n(e){if(W3e(e)&&(e=e.substr(1)),e.length>0)for(let t=n2.length-1;t>=0;t--){const n=n2[t];if(!n.firstline)continue;const i=e.match(n.firstline);if(i&&i.length>0)return n}}var n2,mge,pWe,y3n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/languagesAssociations.js"(){_$t(),eF(),Gd(),bE(),bf(),Ki(),G0(),n2=[],mge=[],pWe=[]}}),eV,X1e,xut,Lqt,b3n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/languagesRegistry.js"(){var e;Un(),Nt(),Ki(),y3n(),G0(),gT(),Fu(),eV=Object.prototype.hasOwnProperty,X1e="vs.editor.nullLanguage",xut=class{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(X1e,0),this._register(xp,1),this._nextLanguageId=2}_register(t,n){this._languageIdToLanguage[n]=t,this._languageToLanguageId.set(t,n)}register(t){if(this._languageToLanguageId.has(t))return;const n=this._nextLanguageId++;this._register(t,n)}encodeLanguageId(t){return this._languageToLanguageId.get(t)||0}decodeLanguageId(t){return this._languageIdToLanguage[t]||X1e}},Lqt=(e=class extends St{constructor(n=!0,i=!1){super(),this._onDidChange=this._register(new bt),this.onDidChange=this._onDidChange.event,e.instanceCount++,this._warnOnOverwrite=i,this.languageIdCodec=new xut,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},n&&(this._initializeFromRegistry(),this._register(dR.onDidChangeLanguages(r=>{this._initializeFromRegistry()})))}dispose(){e.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},p3n();const n=[].concat(dR.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(n)}_registerLanguages(n){for(const i of n)this._registerLanguage(i);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(i=>{const r=this._languages[i];r.name&&(this._nameMap[r.name]=r.identifier),r.aliases.forEach(o=>{this._lowercaseNameMap[o.toLowerCase()]=r.identifier}),r.mimetypes.forEach(o=>{this._mimeTypesMap[o]=r.identifier})}),ml.as(Qy.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(n){const i=n.id;let r;eV.call(this._languages,i)?r=this._languages[i]:(this.languageIdCodec.register(i),r={identifier:i,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[i]=r),this._mergeLanguage(r,n)}_mergeLanguage(n,i){const r=i.id;let o=null;if(Array.isArray(i.mimetypes)&&i.mimetypes.length>0&&(n.mimetypes.push(...i.mimetypes),o=i.mimetypes[0]),o||(o=`text/x-${r}`,n.mimetypes.push(o)),Array.isArray(i.extensions)){i.configuration?n.extensions=i.extensions.concat(n.extensions):n.extensions=n.extensions.concat(i.extensions);for(const l of i.extensions)BJ({id:r,mime:o,extension:l},this._warnOnOverwrite)}if(Array.isArray(i.filenames))for(const l of i.filenames)BJ({id:r,mime:o,filename:l},this._warnOnOverwrite),n.filenames.push(l);if(Array.isArray(i.filenamePatterns))for(const l of i.filenamePatterns)BJ({id:r,mime:o,filepattern:l},this._warnOnOverwrite);if(typeof i.firstLine=="string"&&i.firstLine.length>0){let l=i.firstLine;l.charAt(0)!=="^"&&(l="^"+l);try{const c=new RegExp(l);w9n(c)||BJ({id:r,mime:o,firstline:c},this._warnOnOverwrite)}catch(c){console.warn(`[${i.id}]: Invalid regular expression \`${l}\`: `,c)}}n.aliases.push(r);let s=null;if(typeof i.aliases<"u"&&Array.isArray(i.aliases)&&(i.aliases.length===0?s=[null]:s=i.aliases),s!==null)for(const l of s)!l||l.length===0||n.aliases.push(l);const a=s!==null&&s.length>0;if(!(a&&s[0]===null)){const l=(a?s[0]:null)||r;(a||!n.name)&&(n.name=l)}i.configuration&&n.configurationFiles.push(i.configuration),i.icon&&n.icons.push(i.icon)}isRegisteredLanguageId(n){return n?eV.call(this._languages,n):!1}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(n){const i=n.toLowerCase();return eV.call(this._lowercaseNameMap,i)?this._lowercaseNameMap[i]:null}getLanguageIdByMimeType(n){return n&&eV.call(this._mimeTypesMap,n)?this._mimeTypesMap[n]:null}guessLanguageIdByFilepathOrFirstLine(n,i){return!n&&!i?[]:g3n(n,i)}},e.instanceCount=0,e)}});function ede(e=Rv){return(t,n)=>vl(t,n,e)}function _3n(){return(e,t)=>e.equals(t)}function F4e(e,t,n){if(n!==void 0){const i=e;return i==null||t===void 0||t===null?t===i:n(i,t)}else{const i=e;return(r,o)=>r==null||o===void 0||o===null?o===r:i(r,o)}}function tde(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!tde(e[n],t[n]))return!1;return!0}if(e&&typeof e=="object"&&t&&typeof t=="object"&&Object.getPrototypeOf(e)===Object.prototype&&Object.getPrototypeOf(t)===Object.prototype){const n=e,i=t,r=Object.keys(n),o=Object.keys(i),s=new Set(o);if(r.length!==o.length)return!1;for(const a of r)if(!s.has(a)||!tde(n[a],i[a]))return!1;return!0}return!1}var Rv,_T=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/equals.js"(){rr(),Rv=(e,t)=>e===t}});function w3n(e,t){const n=nde.get(e);if(n)return n;const i=C3n(e,t);if(i){let r=j4e.get(i)??0;r++,j4e.set(i,r);const o=r===1?i:`${i}#${r}`;return nde.set(e,o),o}}function C3n(e,t){const n=nde.get(e);if(n)return n;const i=t.owner?x3n(t.owner)+".":"";let r;const o=t.debugNameSource;if(o!==void 0)if(typeof o=="function"){if(r=o(),r!==void 0)return i+r}else return i+o;const s=t.referenceFn;if(s!==void 0&&(r=B4e(s),r!==void 0))return i+r;if(t.owner!==void 0){const a=S3n(t.owner,e);if(a!==void 0)return i+a}}function S3n(e,t){for(const n in e)if(e[n]===t)return n}function x3n(e){const t=V4e.get(e);if(t)return t;const n=E3n(e);let i=z4e.get(n)??0;i++,z4e.set(n,i);const r=i===1?n:`${n}#${i}`;return V4e.set(e,r),r}function E3n(e){const t=e.constructor;return t?t.name:"Object"}function B4e(e){const t=e.toString(),i=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t);return(i?i[1]:void 0)?.trim()}var hf,j4e,nde,z4e,V4e,vY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/observableInternal/debugName.js"(){hf=class{constructor(e,t,n){this.owner=e,this.debugNameSource=t,this.referenceFn=n}getDebugName(e){return w3n(e,this)}},j4e=new Map,nde=new WeakMap,z4e=new Map,V4e=new WeakMap}});function A3n(e){Nqt=e}function Nx(){return Nqt}function D3n(e){const t=new Array,n=[];let i="";function r(s){if("length"in s)for(const a of s)a&&r(a);else"text"in s?(i+=`%c${s.text}`,t.push(s.style),s.data&&n.push(...s.data)):"data"in s&&n.push(...s.data)}r(e);const o=[i,...t];return o.push(...n),o}function M5(e){return C1(e,{color:"black"})}function tV(e){return C1(L3n(`${e}: `,10),{color:"black",bold:!0})}function C1(e,t={color:"black"}){function n(r){return Object.entries(r).reduce((o,[s,a])=>`${o}${s}:${a};`,"")}const i={color:t.color};return t.strikeThrough&&(i["text-decoration"]="line-through"),t.bold&&(i["font-weight"]="bold"),{text:e,style:n(i)}}function ZU(e,t){switch(typeof e){case"number":return""+e;case"string":return e.length+2<=t?`"${e}"`:`"${e.substr(0,t-7)}"+...`;case"boolean":return e?"true":"false";case"undefined":return"undefined";case"object":return e===null?"null":Array.isArray(e)?T3n(e,t):k3n(e,t);case"symbol":return e.toString();case"function":return`[[Function${e.name?" "+e.name:""}]]`;default:return""+e}}function T3n(e,t){let n="[ ",i=!0;for(const r of e){if(i||(n+=", "),n.length-5>t){n+="...";break}i=!1,n+=`${ZU(r,t-n.length)}`}return n+=" ]",n}function k3n(e,t){let n="{ ",i=!0;for(const[r,o]of Object.entries(e)){if(i||(n+=", "),n.length-5>t){n+="...";break}i=!1,n+=`${r}: ${ZU(o,t-n.length)}`}return n+=" }",n}function I3n(e,t){let n="";for(let i=1;i<=t;i++)n+=e;return n}function L3n(e,t){for(;e.length<t;)e+=" ";return e}var Nqt,Pqt,yY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/observableInternal/logging.js"(){Pqt=class{constructor(){this.indentation=0,this.changedObservablesSets=new WeakMap}textToConsoleArgs(e){return D3n([M5(I3n("|  ",this.indentation)),e])}formatInfo(e){return e.hadValue?e.didChange?[M5(" "),C1(ZU(e.oldValue,70),{color:"red",strikeThrough:!0}),M5(" "),C1(ZU(e.newValue,60),{color:"green"})]:[M5(" (unchanged)")]:[M5(" "),C1(ZU(e.newValue,60),{color:"green"}),M5(" (initial)")]}handleObservableChanged(e,t){console.log(...this.textToConsoleArgs([tV("observable value changed"),C1(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t)]))}formatChanges(e){if(e.size!==0)return C1(" (changed deps: "+[...e].map(t=>t.debugName).join(", ")+")",{color:"gray"})}handleDerivedCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(n,i)=>(this.changedObservablesSets.get(e).add(n),t.apply(e,[n,i]))}handleDerivedRecomputed(e,t){const n=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([tV("derived recomputed"),C1(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),this.formatChanges(n),{data:[{fn:e._debugNameData.referenceFn??e._computeFn}]}])),n.clear()}handleFromEventObservableTriggered(e,t){console.log(...this.textToConsoleArgs([tV("observable from event triggered"),C1(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),{data:[{fn:e._getValue}]}]))}handleAutorunCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(n,i)=>(this.changedObservablesSets.get(e).add(n),t.apply(e,[n,i]))}handleAutorunTriggered(e){const t=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([tV("autorun"),C1(e.debugName,{color:"BlueViolet"}),this.formatChanges(t),{data:[{fn:e._debugNameData.referenceFn??e._runFn}]}])),t.clear(),this.indentation++}handleAutorunFinished(e){this.indentation--}handleBeginTransaction(e){let t=e.getDebugName();t===void 0&&(t=""),console.log(...this.textToConsoleArgs([tV("transaction"),C1(t,{color:"BlueViolet"}),{data:[{fn:e._fn}]}])),this.indentation++}handleEndTransaction(){this.indentation--}}}});function N3n(e){Oqt=e}function P3n(e){Rqt=e}function M3n(e){H4e=e}function Al(e,t){const n=new r2(e,t);try{e(n)}finally{n.finish()}}function eW(e){if(tW)e(tW);else{const t=new r2(e,void 0);tW=t;try{e(t)}finally{t.finish(),tW=void 0}}}async function Mqt(e,t){const n=new r2(e,t);try{await e(n)}finally{n.finish()}}function i2(e,t,n){e?t(e):Al(t,n)}function mo(e,t){let n;return typeof e=="string"?n=new hf(void 0,e,void 0):n=new hf(e,void 0,void 0),new ide(n,t,Rv)}function tG(e,t){let n;return typeof e=="string"?n=new hf(void 0,e,void 0):n=new hf(e,void 0,void 0),new Fqt(n,t,Rv)}var Oqt,Rqt,H4e,W4e,mR,tW,r2,ide,Fqt,qC=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/observableInternal/base.js"(){_T(),vY(),yY(),W4e=class{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const n=t===void 0?void 0:e,i=t===void 0?e:t;return H4e({owner:n,debugName:()=>{const r=B4e(i);if(r!==void 0)return r;const s=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(i.toString());if(s)return`${this.debugName}.${s[2]}`;if(!n)return`${this.debugName} (mapped)`},debugReferenceFn:i},r=>i(this.read(r),r))}flatten(){return H4e({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},e=>this.read(e).read(e))}recomputeInitiallyAndOnChange(e,t){return e.add(Oqt(this,t)),this}keepObserved(e){return e.add(Rqt(this)),this}},mR=class extends W4e{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),t===0&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&this.observers.size===0&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}},tW=void 0,r2=class{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[],Nx()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():B4e(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t<e.length;t++){const{observer:n,observable:i}=e[t];n.endUpdate(i)}this.updatingObservers=null,Nx()?.handleEndTransaction()}},ide=class extends mR{get debugName(){return this._debugNameData.getDebugName(this)??"ObservableValue"}constructor(e,t,n){super(),this._debugNameData=e,this._equalityComparator=n,this._value=t}get(){return this._value}set(e,t,n){if(n===void 0&&this._equalityComparator(this._value,e))return;let i;t||(t=i=new r2(()=>{},()=>`Setting ${this.debugName}`));try{const r=this._value;this._setValue(e),Nx()?.handleObservableChanged(this,{oldValue:r,newValue:e,change:n,didChange:!0,hadValue:!0});for(const o of this.observers)t.updateObserver(o,this),o.handleChange(this,n)}finally{i&&i.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}},Fqt=class extends ide{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){this._value?.dispose()}}}});function Fi(e,t){return t!==void 0?new OL(new hf(e,void 0,t),t,void 0,void 0,void 0,Rv):new OL(new hf(void 0,void 0,e),e,void 0,void 0,void 0,Rv)}function bY(e,t,n){return new jqt(new hf(e,void 0,t),t,void 0,void 0,void 0,Rv,n)}function w0(e,t){return new OL(new hf(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??Rv)}function Bqt(e,t){return new OL(new hf(e.owner,e.debugName,void 0),t,e.createEmptyChangeSummary,e.handleChange,void 0,e.equalityComparer??Rv)}function FN(e,t){let n,i;t===void 0?(n=e,i=void 0):(i=e,n=t);const r=new Jt;return new OL(new hf(i,void 0,n),o=>(r.clear(),n(o,r)),void 0,void 0,()=>r.dispose(),Rv)}function cp(e,t){let n,i;t===void 0?(n=e,i=void 0):(i=e,n=t);let r;return new OL(new hf(i,void 0,n),o=>{r?r.clear():r=new Jt;const s=n(o);return s&&r.add(s),s},void 0,void 0,()=>{r&&(r.dispose(),r=void 0)},Rv)}var OL,jqt,Vv=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/observableInternal/derived.js"(){zC(),_T(),Nt(),qC(),vY(),yY(),M3n(w0),OL=class extends mR{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,i,r=void 0,o){super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=n,this._handleChange=i,this._handleLastObserverRemoved=r,this._equalityComparator=o,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=this.createChangeSummary?.(),Nx()?.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(this.observers.size===0){const e=this._computeFn(this,this.createChangeSummary?.());return this.onLastObserverRemoved(),e}else{do{if(this.state===1){for(const e of this.dependencies)if(e.reportChanges(),this.state===2)break}this.state===1&&(this.state=3),this._recomputeIfNeeded()}while(this.state!==3);return this.value}}_recomputeIfNeeded(){if(this.state===3)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e;const t=this.state!==0,n=this.value;this.state=3;const i=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this.value=this._computeFn(this,i)}finally{for(const o of this.dependenciesToBeRemoved)o.removeObserver(this);this.dependenciesToBeRemoved.clear()}const r=t&&!this._equalityComparator(n,this.value);if(Nx()?.handleDerivedRecomputed(this,{oldValue:n,newValue:this.value,change:void 0,didChange:r,hadValue:t}),r)for(const o of this.observers)o.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=this.updateCount===1;if(this.state===3&&(this.state=1,!t))for(const n of this.observers)n.handlePossibleChange(this);if(t)for(const n of this.observers)n.beginUpdate(this)}endUpdate(e){if(this.updateCount--,this.updateCount===0){const t=[...this.observers];for(const n of t)n.endUpdate(this)}YR(()=>this.updateCount>=0)}handlePossibleChange(e){if(this.state===3&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const t of this.observers)t.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const n=this._handleChange?this._handleChange({changedObservable:e,change:t,didChange:r=>r===e},this.changeSummary):!0,i=this.state===3;if(n&&(this.state===1||i)&&(this.state=2,i))for(const r of this.observers)r.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}},jqt=class extends OL{constructor(e,t,n,i,r=void 0,o,s){super(e,t,n,i,r,o),this.set=s}}}});function Tr(e){return new nG(new hf(void 0,void 0,e),e,void 0,void 0)}function _Y(e,t){return new nG(new hf(e.owner,e.debugName,e.debugReferenceFn??t),t,void 0,void 0)}function wY(e,t){return new nG(new hf(e.owner,e.debugName,e.debugReferenceFn??t),t,e.createEmptyChangeSummary,e.handleChange)}function O3n(e,t){const n=new Jt,i=wY({owner:e.owner,debugName:e.debugName,debugReferenceFn:e.debugReferenceFn??t,createEmptyChangeSummary:e.createEmptyChangeSummary,handleChange:e.handleChange},(r,o)=>{n.clear(),t(r,o,n)});return zi(()=>{i.dispose(),n.dispose()})}function hm(e){const t=new Jt,n=_Y({owner:void 0,debugName:void 0,debugReferenceFn:e},i=>{t.clear(),e(i,t)});return zi(()=>{n.dispose(),t.dispose()})}var nG,zqt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/observableInternal/autorun.js"(){zC(),Nt(),vY(),yY(),nG=class{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,i){this._debugNameData=e,this._runFn=t,this.createChangeSummary=n,this._handleChange=i,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=this.createChangeSummary?.(),Nx()?.handleAutorunCreated(this),this._runIfNeeded(),JB(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),e6(this)}_runIfNeeded(){if(this.state===3)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e,this.state=3;const t=this.disposed;try{if(!t){Nx()?.handleAutorunTriggered(this);const n=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,n)}}finally{t||Nx()?.handleAutorunFinished(this);for(const n of this.dependenciesToBeRemoved)n.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){this.state===3&&(this.state=1),this.updateCount++}endUpdate(){if(this.updateCount===1)do{if(this.state===1){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),this.state===2)break}this._runIfNeeded()}while(this.state!==3);this.updateCount--,YR(()=>this.updateCount>=0)}handlePossibleChange(e){this.state===3&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:i=>i===e},this.changeSummary))&&(this.state=2)}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}},(function(e){e.Observer=nG})(Tr||(Tr={}))}});function Uy(e){return new Vqt(e)}function Bs(...e){let t,n,i;return e.length===3?[t,n,i]=e:[n,i]=e,new XA(new hf(t,void 0,i),n,i,()=>XA.globalTransaction,Rv)}function R3n(e,t,n){return new XA(new hf(e.owner,e.debugName,e.debugReferenceFn??n),t,n,()=>XA.globalTransaction,e.equalsFn??Rv)}function af(e,t){return new Hqt(e,t)}function R7(e){return typeof e=="string"?new U4e(e):new U4e(void 0,e)}function F3n(e){const t=new gWe(!1,void 0);return e.addObserver(t),zi(()=>{e.removeObserver(t)})}function F7(e,t){const n=new gWe(!0,t);return e.addObserver(n),t?t(e.get()):e.reportChanges(),zi(()=>{e.removeObserver(n)})}function CY(e,t){let n;return w0({owner:e,debugReferenceFn:t},r=>(n=t(r,n),n))}function B3n(e,t,n,i){let r=new $4e(n,i);return w0({debugReferenceFn:n,owner:e,onLastObserverRemoved:()=>{r.dispose(),r=new $4e(n)}},s=>(r.setItems(t.read(s)),r.getItems()))}function j3n(e,t){return CY(e,(n,i)=>i??t(n))}var Vqt,XA,Hqt,U4e,gWe,$4e,vge=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/observableInternal/utils.js"(){Un(),Nt(),qC(),vY(),Vv(),yY(),_T(),Vqt=class extends W4e{constructor(e){super(),this.value=e}get debugName(){return this.toString()}get(){return this.value}addObserver(e){}removeObserver(e){}toString(){return`Const: ${this.value}`}},XA=class extends mR{constructor(e,t,n,i,r){super(),this._debugNameData=e,this.event=t,this._getValue=n,this._getTransaction=i,this._equalityComparator=r,this.hasValue=!1,this.handleEvent=o=>{const s=this._getValue(o),a=this.value,l=!this.hasValue||!this._equalityComparator(a,s);let c=!1;l&&(this.value=s,this.hasValue&&(c=!0,i2(this._getTransaction(),u=>{Nx()?.handleFromEventObservableTriggered(this,{oldValue:a,newValue:s,change:void 0,didChange:l,hadValue:this.hasValue});for(const d of this.observers)u.updateObserver(d,this),d.handleChange(this,void 0)},()=>{const u=this.getDebugName();return"Event fired"+(u?`: ${u}`:"")})),this.hasValue=!0),c||Nx()?.handleFromEventObservableTriggered(this,{oldValue:a,newValue:s,change:void 0,didChange:l,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){return this.subscription?(this.hasValue||this.handleEvent(void 0),this.value):this._getValue(void 0)}},(function(e){e.Observer=XA;function t(n,i){let r=!1;XA.globalTransaction===void 0&&(XA.globalTransaction=n,r=!0);try{i()}finally{r&&(XA.globalTransaction=void 0)}}e.batchEventsGlobally=t})(Bs||(Bs={})),Hqt=class extends mR{constructor(e,t){super(),this.debugName=e,this.event=t,this.handleEvent=()=>{Al(n=>{for(const i of this.observers)n.updateObserver(i,this),i.handleChange(this,void 0)},()=>this.debugName)}}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}},U4e=class extends mR{get debugName(){return new hf(this._owner,this._debugName,void 0).getDebugName(this)??"Observable Signal"}toString(){return this.debugName}constructor(e,t){super(),this._debugName=e,this._owner=t}trigger(e,t){if(!e){Al(n=>{this.trigger(n,t)},()=>`Trigger signal ${this.debugName}`);return}for(const n of this.observers)e.updateObserver(n,this),n.handleChange(this,t)}get(){}},P3n(F3n),N3n(F7),gWe=class{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,this._counter===0&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}},$4e=class{constructor(e,t){this._map=e,this._keySelector=t,this._cache=new Map,this._items=[]}dispose(){this._cache.forEach(e=>e.store.dispose()),this._cache.clear()}setItems(e){const t=[],n=new Set(this._cache.keys());for(const i of e){const r=this._keySelector?this._keySelector(i):i;let o=this._cache.get(r);if(o)n.delete(r);else{const s=new Jt;o={out:this._map(i,s),store:s},this._cache.set(r,o)}t.push(o.out)}for(const i of n)this._cache.get(i).store.dispose(),this._cache.delete(i);this._items=t}getItems(){return this._items}}}});function Wqt(e,t,n,i){return t||(t=r=>r!=null),new Promise((r,o)=>{let s=!0,a=!1;const l=e.map(u=>({isFinished:t(u),error:n?n(u):!1,state:u})),c=Tr(u=>{const{isFinished:d,error:h,state:f}=l.read(u);(d||h)&&(s?a=!0:c.dispose(),h?o(h===!0?f:h):r(f))});if(i){const u=i.onCancellationRequested(()=>{c.dispose(),u.dispose(),o(new rb)});if(i.isCancellationRequested){c.dispose(),u.dispose(),o(new rb);return}}s=!1,a&&c.dispose()})}var mWe,J1e,z3n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/observableInternal/promise.js"(){zqt(),qC(),Vi(),mWe=class Uqt{static fromFn(t){return new Uqt(t())}constructor(t){this._value=mo(this,void 0),this.promiseResult=this._value,this.promise=t.then(n=>(Al(i=>{this._value.set(new J1e(n,void 0),i)}),n),n=>{throw Al(i=>{this._value.set(new J1e(void 0,n),i)}),n})}},J1e=class{constructor(e,t){this.data=e,this.error=t}}}}),$qt,V3n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/observableInternal/lazyObservableValue.js"(){qC(),$qt=class extends mR{get debugName(){return this._debugNameData.getDebugName(this)??"LazyObservableValue"}constructor(e,t,n){super(),this._debugNameData=e,this._equalityComparator=n,this._isUpToDate=!0,this._deltas=[],this._updateCounter=0,this._value=t}get(){return this._update(),this._value}_update(){if(!this._isUpToDate)if(this._isUpToDate=!0,this._deltas.length>0){for(const e of this.observers)for(const t of this._deltas)e.handleChange(this,t);this._deltas.length=0}else for(const e of this.observers)e.handleChange(this,void 0)}_beginUpdate(){if(this._updateCounter++,this._updateCounter===1)for(const e of this.observers)e.beginUpdate(this)}_endUpdate(){if(this._updateCounter--,this._updateCounter===0){this._update();const e=[...this.observers];for(const t of e)t.endUpdate(this)}}addObserver(e){const t=!this.observers.has(e)&&this._updateCounter>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this._updateCounter>0;super.removeObserver(e),t&&e.endUpdate(this)}set(e,t,n){if(n===void 0&&this._equalityComparator(this._value,e))return;let i;t||(t=i=new r2(()=>{},()=>`Setting ${this.debugName}`));try{if(this._isUpToDate=!1,this._setValue(e),n!==void 0&&this._deltas.push(n),t.updateObserver({beginUpdate:()=>this._beginUpdate(),endUpdate:()=>this._endUpdate(),handleChange:(r,o)=>{},handlePossibleChange:r=>{}},this),this._updateCounter>1)for(const r of this.observers)r.handlePossibleChange(this)}finally{i&&i.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}}});function q4e(e,t){return e.lazy?new $qt(new hf(e.owner,e.debugName,void 0),t,e.equalsFn??Rv):new ide(new hf(e.owner,e.debugName,void 0),t,e.equalsFn??Rv)}var H3n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/observableInternal/api.js"(){_T(),qC(),vY(),V3n()}}),Eut,xs=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/observable.js"(){qC(),Vv(),zqt(),vge(),z3n(),H3n(),yY(),Eut=!1,Eut&&A3n(new Pqt)}}),qqt,eCe,W3n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/languageService.js"(){var e;Un(),Nt(),b3n(),rr(),ra(),G0(),xs(),qqt=(e=class extends St{constructor(n=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new bt),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new bt),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new bt({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,e.instanceCount++,this._registry=this._register(new Lqt(!0,n)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange(()=>this._onDidChange.fire()))}dispose(){e.instanceCount--,super.dispose()}isRegisteredLanguageId(n){return this._registry.isRegisteredLanguageId(n)}getLanguageIdByLanguageName(n){return this._registry.getLanguageIdByLanguageName(n)}getLanguageIdByMimeType(n){return this._registry.getLanguageIdByMimeType(n)}guessLanguageIdByFilepathOrFirstLine(n,i){const r=this._registry.guessLanguageIdByFilepathOrFirstLine(n,i);return vHe(r,null)}createById(n){return new eCe(this.onDidChange,()=>this._createAndGetLanguageIdentifier(n))}createByFilepathOrFirstLine(n,i){return new eCe(this.onDidChange,()=>{const r=this.guessLanguageIdByFilepathOrFirstLine(n,i);return this._createAndGetLanguageIdentifier(r)})}_createAndGetLanguageIdentifier(n){return(!n||!this.isRegisteredLanguageId(n))&&(n=xp),n}requestBasicLanguageFeatures(n){this._requestedBasicLanguages.has(n)||(this._requestedBasicLanguages.add(n),this._onDidRequestBasicLanguageFeatures.fire(n))}requestRichLanguageFeatures(n){this._requestedRichLanguages.has(n)||(this._requestedRichLanguages.add(n),this.requestBasicLanguageFeatures(n),Hl.getOrCreate(n),this._onDidRequestRichLanguageFeatures.fire(n))}},e.instanceCount=0,e),eCe=class{constructor(t,n){this._value=Bs(this,t,()=>n()),this.onDidChange=On.fromObservable(this._value)}get languageId(){return this._value.get()}}}}),s9,vWe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/dnd.js"(){eF(),s9={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:Jl.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"}}});function U3n(e){XU=e}function hg(e){return e==="element"?Kqt.value:Gqt.value}function a9(){return XU("element",!0)}var Aut,XU,Gqt,Kqt,Lh=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverDelegateFactory.js"(){wE(),Aut=()=>({get delay(){return-1},dispose:()=>{},showHover:()=>{}}),XU=Aut,Gqt=new lm(()=>XU("mouse",!1)),Kqt=new lm(()=>XU("element",!1))}});function $3n(e){yWe=e}function GC(){return yWe}var yWe,_w=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverDelegate2.js"(){yWe={showHover:()=>{},hideHover:()=>{},showAndFocusLastHover:()=>{},setupManagedHover:()=>null,showManagedHover:()=>{}}}}),Yqt,q3n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/list/splice.js"(){Yqt=class{constructor(e){this.spliceables=e}splice(e,t,n){this.spliceables.forEach(i=>i.splice(e,t,n))}}}}),Qqt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/list/list.css"(){}}),Qk,G3n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/list/list.js"(){Qk=class extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}}});function Dut(e,t){const n=[];for(const i of t){if(e.start>=i.range.end)continue;if(e.end<i.range.start)break;const r=Nf.intersect(e,i.range);Nf.isEmpty(r)||n.push({range:r,size:i.size})}return n}function G4e({start:e,end:t},n){return{start:e+n,end:t+n}}function K3n(e){const t=[];let n=null;for(const i of e){const r=i.range.start,o=i.range.end,s=i.size;if(n&&s===n.size){n.range.end=o;continue}n={range:{start:r,end:o},size:s},t.push(n)}return t}function Y3n(...e){return K3n(e.reduce((t,n)=>t.concat(n),[]))}var Zqt,Q3n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/list/rangeMap.js"(){pge(),Zqt=class{get paddingTop(){return this._paddingTop}set paddingTop(e){this._size=this._size+e-this._paddingTop,this._paddingTop=e}constructor(e){this.groups=[],this._size=0,this._paddingTop=0,this._paddingTop=e??0,this._size=this._paddingTop}splice(e,t,n=[]){const i=n.length-t,r=Dut({start:0,end:e},this.groups),o=Dut({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map(a=>({range:G4e(a.range,i),size:a.size})),s=n.map((a,l)=>({range:{start:e+l,end:e+l+1},size:a.size}));this.groups=Y3n(r,s,o),this._size=this._paddingTop+this.groups.reduce((a,l)=>a+l.size*(l.range.end-l.range.start),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;if(e<this._paddingTop)return 0;let t=0,n=this._paddingTop;for(const i of this.groups){const r=i.range.end-i.range.start,o=n+r*i.size;if(e<o)return t+Math.floor((e-n)/i.size);t+=r,n=o}return t}indexAfter(e){return Math.min(this.indexAt(e)+1,this.count)}positionAt(e){if(e<0)return-1;let t=0,n=0;for(const i of this.groups){const r=i.range.end-i.range.start,o=n+r;if(e<o)return this._paddingTop+t+(e-n)*i.size;t+=r*i.size,n=o}return-1}}}}),Xqt,Z3n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/list/rowCache.js"(){Fn(),Xqt=class{constructor(e){this.renderers=e,this.cache=new Map,this.transactionNodesPendingRemoval=new Set,this.inTransaction=!1}alloc(e){let t=this.getTemplateCache(e).pop(),n=!1;if(t)n=this.transactionNodesPendingRemoval.has(t.domNode),n&&this.transactionNodesPendingRemoval.delete(t.domNode);else{const i=In(".monaco-list-row"),o=this.getRenderer(e).renderTemplate(i);t={domNode:i,templateId:e,templateData:o}}return{row:t,isReusingConnectedDomNode:n}}release(e){e&&this.releaseRow(e)}transact(e){if(this.inTransaction)throw new Error("Already in transaction");this.inTransaction=!0;try{e()}finally{for(const t of this.transactionNodesPendingRemoval)this.doRemoveNode(t);this.transactionNodesPendingRemoval.clear(),this.inTransaction=!1}}releaseRow(e){const{domNode:t,templateId:n}=e;t&&(this.inTransaction?this.transactionNodesPendingRemoval.add(t):this.doRemoveNode(t)),this.getTemplateCache(n).push(e)}doRemoveNode(e){e.classList.remove("scrolling"),e.remove()}getTemplateCache(e){let t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t}dispose(){this.cache.forEach((e,t)=>{for(const n of e)this.getRenderer(t).disposeTemplate(n.templateData),n.templateData=null}),this.cache.clear(),this.transactionNodesPendingRemoval.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}}});function X3n(e,t){return Array.isArray(e)&&Array.isArray(t)?vl(e,t):e===t}var CS,bk,Zw,l9,Tut,kut,Iut,p1,bWe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/list/listView.js"(){var e;vWe(),Fn(),UC(),Q0(),vw(),rr(),fr(),tF(),Un(),Nt(),pge(),cY(),Q3n(),Z3n(),Vi(),k7(),CS=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},bk={CurrentDragAndDropData:void 0},Zw={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(t){return[t]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){},dispose(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0},l9=class{constructor(t){this.elements=t}update(){}getData(){return this.elements}},Tut=class{constructor(t){this.elements=t}update(){}getData(){return this.elements}},kut=class{constructor(){this.types=[],this.files=[]}update(t){if(t.types&&this.types.splice(0,this.types.length,...t.types),t.files){this.files.splice(0,this.files.length);for(let n=0;n<t.files.length;n++){const i=t.files.item(n);i&&(i.size||i.type)&&this.files.push(i)}}}getData(){return{types:this.types,files:this.files}}},Iut=class{constructor(t){t?.getSetSize?this.getSetSize=t.getSetSize.bind(t):this.getSetSize=(n,i,r)=>r,t?.getPosInSet?this.getPosInSet=t.getPosInSet.bind(t):this.getPosInSet=(n,i)=>i+1,t?.getRole?this.getRole=t.getRole.bind(t):this.getRole=n=>"listitem",t?.isChecked?this.isChecked=t.isChecked.bind(t):this.isChecked=n=>{}}},p1=(e=class{get contentHeight(){return this.rangeMap.size}get onDidScroll(){return this.scrollableElement.onScroll}get scrollableElementDomNode(){return this.scrollableElement.getDomNode()}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(n){if(n!==this._horizontalScrolling){if(n&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=n,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const i of this.items)this.measureItemWidth(i);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:vwe(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}constructor(n,i,r,o=Zw){if(this.virtualDelegate=i,this.domId=`list_id_${++e.InstanceCount}`,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new j0(50),this.splicing=!1,this.dragOverAnimationStopDisposable=St.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=St.None,this.onDragLeaveTimeout=St.None,this.disposables=new Jt,this._onDidChangeContentHeight=new bt,this._onDidChangeContentWidth=new bt,this.onDidChangeContentHeight=On.latch(this._onDidChangeContentHeight.event,void 0,this.disposables),this._horizontalScrolling=!1,o.horizontalScrolling&&o.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=this.createRangeMap(o.paddingTop??0);for(const a of r)this.renderers.set(a.templateId,a);this.cache=this.disposables.add(new Xqt(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support",typeof o.mouseSupport=="boolean"?o.mouseSupport:!0),this._horizontalScrolling=o.horizontalScrolling??Zw.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.paddingBottom=typeof o.paddingBottom>"u"?0:o.paddingBottom,this.accessibilityProvider=new Iut(o.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",(o.transformOptimization??Zw.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.rowsContainer.style.overflow="hidden",this.rowsContainer.style.contain="strict"),this.disposables.add(Ap.addTarget(this.rowsContainer)),this.scrollable=this.disposables.add(new XR({forceIntegerValues:!0,smoothScrollDuration:o.smoothScrolling??!1?125:0,scheduleAtNextAnimationFrame:a=>Nv(Yi(this.domNode),a)})),this.scrollableElement=this.disposables.add(new uY(this.rowsContainer,{alwaysConsumeMouseWheel:o.alwaysConsumeMouseWheel??Zw.alwaysConsumeMouseWheel,horizontal:1,vertical:o.verticalScrollMode??Zw.verticalScrollMode,useShadows:o.useShadows??Zw.useShadows,mouseWheelScrollSensitivity:o.mouseWheelScrollSensitivity,fastScrollSensitivity:o.fastScrollSensitivity,scrollByPage:o.scrollByPage},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),n.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add(qt(this.rowsContainer,Wa.Change,a=>this.onTouchChange(a))),this.disposables.add(qt(this.scrollableElement.getDomNode(),"scroll",a=>a.target.scrollTop=0)),this.disposables.add(qt(this.domNode,"dragover",a=>this.onDragOver(this.toDragEvent(a)))),this.disposables.add(qt(this.domNode,"drop",a=>this.onDrop(this.toDragEvent(a)))),this.disposables.add(qt(this.domNode,"dragleave",a=>this.onDragLeave(this.toDragEvent(a)))),this.disposables.add(qt(this.domNode,"dragend",a=>this.onDragEnd(a))),this.setRowLineHeight=o.setRowLineHeight??Zw.setRowLineHeight,this.setRowHeight=o.setRowHeight??Zw.setRowHeight,this.supportDynamicHeights=o.supportDynamicHeights??Zw.supportDynamicHeights,this.dnd=o.dnd??this.disposables.add(Zw.dnd),this.layout(o.initialSize?.height,o.initialSize?.width)}updateOptions(n){n.paddingBottom!==void 0&&(this.paddingBottom=n.paddingBottom,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),n.smoothScrolling!==void 0&&this.scrollable.setSmoothScrollDuration(n.smoothScrolling?125:0),n.horizontalScrolling!==void 0&&(this.horizontalScrolling=n.horizontalScrolling);let i;if(n.scrollByPage!==void 0&&(i={...i??{},scrollByPage:n.scrollByPage}),n.mouseWheelScrollSensitivity!==void 0&&(i={...i??{},mouseWheelScrollSensitivity:n.mouseWheelScrollSensitivity}),n.fastScrollSensitivity!==void 0&&(i={...i??{},fastScrollSensitivity:n.fastScrollSensitivity}),i&&this.scrollableElement.updateOptions(i),n.paddingTop!==void 0&&n.paddingTop!==this.rangeMap.paddingTop){const r=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),o=n.paddingTop-this.rangeMap.paddingTop;this.rangeMap.paddingTop=n.paddingTop,this.render(r,Math.max(0,this.lastRenderTop+o),this.lastRenderHeight,void 0,void 0,!0),this.setScrollTop(this.lastRenderTop),this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.lastRenderTop,this.lastRenderHeight)}}createRangeMap(n){return new Zqt(n)}splice(n,i,r=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(n,i,r)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(n,i,r=[]){const o=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),s={start:n,end:n+i},a=Nf.intersect(o,s),l=new Map;for(let A=a.end-1;A>=a.start;A--){const D=this.items[A];if(D.dragStartDisposable.dispose(),D.checkedDisposable.dispose(),D.row){let T=l.get(D.templateId);T||(T=[],l.set(D.templateId,T));const M=this.renderers.get(D.templateId);M&&M.disposeElement&&M.disposeElement(D.element,A,D.row.templateData,D.size),T.unshift(D.row)}D.row=null,D.stale=!0}const c={start:n+i,end:this.items.length},u=Nf.intersect(c,o),d=Nf.relativeComplement(c,o),h=r.map(A=>({id:String(this.itemId++),element:A,templateId:this.virtualDelegate.getTemplateId(A),size:this.virtualDelegate.getHeight(A),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(A),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:St.None,checkedDisposable:St.None,stale:!1}));let f;n===0&&i>=this.items.length?(this.rangeMap=this.createRangeMap(this.rangeMap.paddingTop),this.rangeMap.splice(0,0,h),f=this.items,this.items=h):(this.rangeMap.splice(n,i,h),f=this.items.splice(n,i,...h));const p=r.length-i,g=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),m=G4e(u,p),v=Nf.intersect(g,m);for(let A=v.start;A<v.end;A++)this.updateItemInDOM(this.items[A],A);const y=Nf.relativeComplement(m,g);for(const A of y)for(let D=A.start;D<A.end;D++)this.removeItemFromDOM(D);const b=d.map(A=>G4e(A,p)),E=[{start:n,end:n+r.length},...b].map(A=>Nf.intersect(g,A)).reverse();for(const A of E)for(let D=A.end-1;D>=A.start;D--){const T=this.items[D],P=l.get(T.templateId)?.pop();this.insertItemInDOM(D,P)}for(const A of l.values())for(const D of A)this.cache.release(D);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),f.map(A=>A.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=Nv(Yi(this.domNode),()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){if(!this.horizontalScrolling){this.scrollableElementWidthDelayer.cancel();return}this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth())}updateScrollWidth(){if(!this.horizontalScrolling)return;let n=0;for(const i of this.items)typeof i.width<"u"&&(n=Math.max(n,i.width));this.scrollWidth=n,this.scrollableElement.setScrollDimensions({scrollWidth:n===0?0:n+10}),this._onDidChangeContentWidth.fire(this.scrollWidth)}rerender(){if(this.supportDynamicHeights){for(const n of this.items)n.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}get firstVisibleIndex(){return this.getRenderRange(this.lastRenderTop,this.lastRenderHeight).start}element(n){return this.items[n].element}indexOf(n){return this.items.findIndex(i=>i.element===n)}domElement(n){const i=this.items[n].row;return i&&i.domNode}elementHeight(n){return this.items[n].size}elementTop(n){return this.rangeMap.positionAt(n)}indexAt(n){return this.rangeMap.indexAt(n)}indexAfter(n){return this.rangeMap.indexAfter(n)}layout(n,i){const r={height:typeof n=="number"?n:B9n(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,r.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(r),typeof i<"u"&&(this.renderWidth=i,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof i=="number"?i:vwe(this.domNode)})}render(n,i,r,o,s,a=!1){const l=this.getRenderRange(i,r),c=Nf.relativeComplement(l,n).reverse(),u=Nf.relativeComplement(n,l);if(a){const d=Nf.intersect(n,l);for(let h=d.start;h<d.end;h++)this.updateItemInDOM(this.items[h],h)}this.cache.transact(()=>{for(const d of u)for(let h=d.start;h<d.end;h++)this.removeItemFromDOM(h);for(const d of c)for(let h=d.end-1;h>=d.start;h--)this.insertItemInDOM(h)}),o!==void 0&&(this.rowsContainer.style.left=`-${o}px`),this.rowsContainer.style.top=`-${i}px`,this.horizontalScrolling&&s!==void 0&&(this.rowsContainer.style.width=`${Math.max(s,this.renderWidth)}px`),this.lastRenderTop=i,this.lastRenderHeight=r}insertItemInDOM(n,i){const r=this.items[n];if(!r.row)if(i)r.row=i,r.stale=!0;else{const c=this.cache.alloc(r.templateId);r.row=c.row,r.stale||=c.isReusingConnectedDomNode}const o=this.accessibilityProvider.getRole(r.element)||"listitem";r.row.domNode.setAttribute("role",o);const s=this.accessibilityProvider.isChecked(r.element);if(typeof s=="boolean")r.row.domNode.setAttribute("aria-checked",String(!!s));else if(s){const c=u=>r.row.domNode.setAttribute("aria-checked",String(!!u));c(s.value),r.checkedDisposable=s.onDidChange(()=>c(s.value))}if(r.stale||!r.row.domNode.parentElement){const c=this.items.at(n+1)?.row?.domNode??null;(r.row.domNode.parentElement!==this.rowsContainer||r.row.domNode.nextElementSibling!==c)&&this.rowsContainer.insertBefore(r.row.domNode,c),r.stale=!1}this.updateItemInDOM(r,n);const a=this.renderers.get(r.templateId);if(!a)throw new Error(`No renderer found for template id ${r.templateId}`);a?.renderElement(r.element,n,r.row.templateData,r.size);const l=this.dnd.getDragURI(r.element);r.dragStartDisposable.dispose(),r.row.domNode.draggable=!!l,l&&(r.dragStartDisposable=qt(r.row.domNode,"dragstart",c=>this.onDragStart(r.element,l,c))),this.horizontalScrolling&&(this.measureItemWidth(r),this.eventuallyUpdateScrollWidth())}measureItemWidth(n){if(!n.row||!n.row.domNode)return;n.row.domNode.style.width="fit-content",n.width=vwe(n.row.domNode);const i=Yi(n.row.domNode).getComputedStyle(n.row.domNode);i.paddingLeft&&(n.width+=parseFloat(i.paddingLeft)),i.paddingRight&&(n.width+=parseFloat(i.paddingRight)),n.row.domNode.style.width=""}updateItemInDOM(n,i){n.row.domNode.style.top=`${this.elementTop(i)}px`,this.setRowHeight&&(n.row.domNode.style.height=`${n.size}px`),this.setRowLineHeight&&(n.row.domNode.style.lineHeight=`${n.size}px`),n.row.domNode.setAttribute("data-index",`${i}`),n.row.domNode.setAttribute("data-last-element",i===this.length-1?"true":"false"),n.row.domNode.setAttribute("data-parity",i%2===0?"even":"odd"),n.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(n.element,i,this.length))),n.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(n.element,i))),n.row.domNode.setAttribute("id",this.getElementDomId(i)),n.row.domNode.classList.toggle("drop-target",n.dropTarget)}removeItemFromDOM(n){const i=this.items[n];if(i.dragStartDisposable.dispose(),i.checkedDisposable.dispose(),i.row){const r=this.renderers.get(i.templateId);r&&r.disposeElement&&r.disposeElement(i.element,n,i.row.templateData,i.size),this.cache.release(i.row),i.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(n,i){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:n,reuseAnimation:i})}get scrollTop(){return this.getScrollTop()}set scrollTop(n){this.setScrollTop(n)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.paddingBottom}get onMouseClick(){return On.map(this.disposables.add(new ko(this.domNode,"click")).event,n=>this.toMouseEvent(n),this.disposables)}get onMouseDblClick(){return On.map(this.disposables.add(new ko(this.domNode,"dblclick")).event,n=>this.toMouseEvent(n),this.disposables)}get onMouseMiddleClick(){return On.filter(On.map(this.disposables.add(new ko(this.domNode,"auxclick")).event,n=>this.toMouseEvent(n),this.disposables),n=>n.browserEvent.button===1,this.disposables)}get onMouseDown(){return On.map(this.disposables.add(new ko(this.domNode,"mousedown")).event,n=>this.toMouseEvent(n),this.disposables)}get onMouseOver(){return On.map(this.disposables.add(new ko(this.domNode,"mouseover")).event,n=>this.toMouseEvent(n),this.disposables)}get onMouseOut(){return On.map(this.disposables.add(new ko(this.domNode,"mouseout")).event,n=>this.toMouseEvent(n),this.disposables)}get onContextMenu(){return On.any(On.map(this.disposables.add(new ko(this.domNode,"contextmenu")).event,n=>this.toMouseEvent(n),this.disposables),On.map(this.disposables.add(new ko(this.domNode,Wa.Contextmenu)).event,n=>this.toGestureEvent(n),this.disposables))}get onTouchStart(){return On.map(this.disposables.add(new ko(this.domNode,"touchstart")).event,n=>this.toTouchEvent(n),this.disposables)}get onTap(){return On.map(this.disposables.add(new ko(this.rowsContainer,Wa.Tap)).event,n=>this.toGestureEvent(n),this.disposables)}toMouseEvent(n){const i=this.getItemIndexFromEventTarget(n.target||null),r=typeof i>"u"?void 0:this.items[i],o=r&&r.element;return{browserEvent:n,index:i,element:o}}toTouchEvent(n){const i=this.getItemIndexFromEventTarget(n.target||null),r=typeof i>"u"?void 0:this.items[i],o=r&&r.element;return{browserEvent:n,index:i,element:o}}toGestureEvent(n){const i=this.getItemIndexFromEventTarget(n.initialTarget||null),r=typeof i>"u"?void 0:this.items[i],o=r&&r.element;return{browserEvent:n,index:i,element:o}}toDragEvent(n){const i=this.getItemIndexFromEventTarget(n.target||null),r=typeof i>"u"?void 0:this.items[i],o=r&&r.element,s=this.getTargetSector(n,i);return{browserEvent:n,index:i,element:o,sector:s}}onScroll(n){try{const i=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(i,n.scrollTop,n.height,n.scrollLeft,n.scrollWidth),this.supportDynamicHeights&&this._rerender(n.scrollTop,n.height,n.inSmoothScrolling)}catch(i){throw console.error("Got bad scroll event:",n),i}}onTouchChange(n){n.preventDefault(),n.stopPropagation(),this.scrollTop-=n.translationY}onDragStart(n,i,r){if(!r.dataTransfer)return;const o=this.dnd.getDragElements(n);if(r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setData(s9.TEXT,i),r.dataTransfer.setDragImage){let s;this.dnd.getDragLabel&&(s=this.dnd.getDragLabel(o,r)),typeof s>"u"&&(s=String(o.length));const a=In(".monaco-drag-image");a.textContent=s,(u=>{for(;u&&!u.classList.contains("monaco-workbench");)u=u.parentElement;return u||this.domNode.ownerDocument})(this.domNode).appendChild(a),r.dataTransfer.setDragImage(a,-10,-10),setTimeout(()=>a.remove(),0)}this.domNode.classList.add("dragging"),this.currentDragData=new l9(o),bk.CurrentDragAndDropData=new Tut(o),this.dnd.onDragStart?.(this.currentDragData,r)}onDragOver(n){if(n.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),bk.CurrentDragAndDropData&&bk.CurrentDragAndDropData.getData()==="vscode-ui"||(this.setupDragAndDropScrollTopAnimation(n.browserEvent),!n.browserEvent.dataTransfer))return!1;if(!this.currentDragData)if(bk.CurrentDragAndDropData)this.currentDragData=bk.CurrentDragAndDropData;else{if(!n.browserEvent.dataTransfer.types)return!1;this.currentDragData=new kut}const i=this.dnd.onDragOver(this.currentDragData,n.element,n.index,n.sector,n.browserEvent);if(this.canDrop=typeof i=="boolean"?i:i.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;n.browserEvent.dataTransfer.dropEffect=typeof i!="boolean"&&i.effect?.type===0?"copy":"move";let r;typeof i!="boolean"&&i.feedback?r=i.feedback:typeof n.index>"u"?r=[-1]:r=[n.index],r=BD(r).filter(s=>s>=-1&&s<this.length).sort((s,a)=>s-a),r=r[0]===-1?[-1]:r;let o=typeof i!="boolean"&&i.effect&&i.effect.position?i.effect.position:"drop-target";if(X3n(this.currentDragFeedback,r)&&this.currentDragFeedbackPosition===o)return!0;if(this.currentDragFeedback=r,this.currentDragFeedbackPosition=o,this.currentDragFeedbackDisposable.dispose(),r[0]===-1)this.domNode.classList.add(o),this.rowsContainer.classList.add(o),this.currentDragFeedbackDisposable=zi(()=>{this.domNode.classList.remove(o),this.rowsContainer.classList.remove(o)});else{if(r.length>1&&o!=="drop-target")throw new Error("Can't use multiple feedbacks with position different than 'over'");o==="drop-target-after"&&r[0]<this.length-1&&(r[0]+=1,o="drop-target-before");for(const s of r){const a=this.items[s];a.dropTarget=!0,a.row?.domNode.classList.add(o)}this.currentDragFeedbackDisposable=zi(()=>{for(const s of r){const a=this.items[s];a.dropTarget=!1,a.row?.domNode.classList.remove(o)}})}return!0}onDragLeave(n){this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=TL(()=>this.clearDragOverFeedback(),100,this.disposables),this.currentDragData&&this.dnd.onDragLeave?.(this.currentDragData,n.element,n.index,n.browserEvent)}onDrop(n){if(!this.canDrop)return;const i=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,bk.CurrentDragAndDropData=void 0,!(!i||!n.browserEvent.dataTransfer)&&(n.browserEvent.preventDefault(),i.update(n.browserEvent.dataTransfer),this.dnd.drop(i,n.element,n.index,n.sector,n.browserEvent))}onDragEnd(n){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,bk.CurrentDragAndDropData=void 0,this.dnd.onDragEnd?.(n)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackPosition=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=St.None}setupDragAndDropScrollTopAnimation(n){if(!this.dragOverAnimationDisposable){const i=YVt(this.domNode).top;this.dragOverAnimationDisposable=K9n(Yi(this.domNode),this.animateDragAndDropScrollTop.bind(this,i))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=TL(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3,this.disposables),this.dragOverMouseY=n.pageY}animateDragAndDropScrollTop(n){if(this.dragOverMouseY===void 0)return;const i=this.dragOverMouseY-n,r=this.renderHeight-35;i<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(i-35))):i>r&&(this.scrollTop+=Math.min(14,Math.floor(.3*(i-r))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getTargetSector(n,i){if(i===void 0)return;const r=n.offsetY/this.items[i].size,o=Math.floor(r/.25);return Jp(o,0,3)}getItemIndexFromEventTarget(n){const i=this.scrollableElement.getDomNode();let r=n;for(;(yd(r)||H9n(r))&&r!==this.rowsContainer&&i.contains(r);){const o=r.getAttribute("data-index");if(o){const s=Number(o);if(!isNaN(s))return s}r=r.parentElement}}getRenderRange(n,i){return{start:this.rangeMap.indexAt(n),end:this.rangeMap.indexAfter(n+i-1)}}_rerender(n,i,r){const o=this.getRenderRange(n,i);let s,a;n===this.elementTop(o.start)?(s=o.start,a=0):o.end-o.start>1&&(s=o.start+1,a=this.elementTop(s)-n);let l=0;for(;;){const c=this.getRenderRange(n,i);let u=!1;for(let d=c.start;d<c.end;d++){const h=this.probeDynamicHeight(d);h!==0&&this.rangeMap.splice(d,1,[this.items[d]]),l+=h,u=u||h!==0}if(!u){l!==0&&this.eventuallyUpdateScrollDimensions();const d=Nf.relativeComplement(o,c);for(const f of d)for(let p=f.start;p<f.end;p++)this.items[p].row&&this.removeItemFromDOM(p);const h=Nf.relativeComplement(c,o).reverse();for(const f of h)for(let p=f.end-1;p>=f.start;p--)this.insertItemInDOM(p);for(let f=c.start;f<c.end;f++)this.items[f].row&&this.updateItemInDOM(this.items[f],f);if(typeof s=="number"){const f=this.scrollable.getFutureScrollPosition().scrollTop-n,p=this.elementTop(s)-a+f;this.setScrollTop(p,r)}this._onDidChangeContentHeight.fire(this.contentHeight);return}}}probeDynamicHeight(n){const i=this.items[n];if(this.virtualDelegate.getDynamicHeight){const a=this.virtualDelegate.getDynamicHeight(i.element);if(a!==null){const l=i.size;return i.size=a,i.lastDynamicHeightWidth=this.renderWidth,a-l}}if(!i.hasDynamicHeight||i.lastDynamicHeightWidth===this.renderWidth||this.virtualDelegate.hasDynamicHeight&&!this.virtualDelegate.hasDynamicHeight(i.element))return 0;const r=i.size;if(i.row)return i.row.domNode.style.height="",i.size=i.row.domNode.offsetHeight,i.size===0&&!hd(i.row.domNode,Yi(i.row.domNode).document.body)&&console.warn("Measuring item node that is not in DOM! Add ListView to the DOM before measuring row height!",new Error().stack),i.lastDynamicHeightWidth=this.renderWidth,i.size-r;const{row:o}=this.cache.alloc(i.templateId);o.domNode.style.height="",this.rowsContainer.appendChild(o.domNode);const s=this.renderers.get(i.templateId);if(!s)throw new ys("Missing renderer for templateId: "+i.templateId);return s.renderElement(i.element,n,o.templateData,void 0),i.size=o.domNode.offsetHeight,s.disposeElement?.(i.element,n,o.templateData,void 0),this.virtualDelegate.setDynamicHeight?.(i.element,i.size),i.lastDynamicHeightWidth=this.renderWidth,o.domNode.remove(),this.cache.release(o),i.size-r}getElementDomId(n){return`${this.domId}_${n}`}dispose(){for(const n of this.items)if(n.dragStartDisposable.dispose(),n.checkedDisposable.dispose(),n.row){const i=this.renderers.get(n.row.templateId);i&&(i.disposeElement?.(n.element,-1,n.row.templateData,void 0),i.disposeTemplate(n.row.templateData))}this.items=[],this.domNode?.remove(),this.dragOverAnimationDisposable?.dispose(),this.disposables.dispose()}},e.InstanceCount=0,e),CS([Hc],p1.prototype,"onMouseClick",null),CS([Hc],p1.prototype,"onMouseDblClick",null),CS([Hc],p1.prototype,"onMouseMiddleClick",null),CS([Hc],p1.prototype,"onMouseDown",null),CS([Hc],p1.prototype,"onMouseOver",null),CS([Hc],p1.prototype,"onMouseOut",null),CS([Hc],p1.prototype,"onContextMenu",null),CS([Hc],p1.prototype,"onTouchStart",null),CS([Hc],p1.prototype,"onTap",null)}});function fI(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function SY(e,t){return e.classList.contains(t)?!0:e.classList.contains("monaco-list")||!e.parentElement?!1:SY(e.parentElement,t)}function nW(e){return SY(e,"monaco-editor")}function J3n(e){return SY(e,"monaco-custom-toggle")}function eHn(e){return SY(e,"action-item")}function nV(e){return SY(e,"monaco-tree-sticky-row")}function iW(e){return e.classList.contains("monaco-tree-sticky-container")}function Jqt(e){return e.tagName==="A"&&e.classList.contains("monaco-button")||e.tagName==="DIV"&&e.classList.contains("monaco-button-dropdown")?!0:e.classList.contains("monaco-list")||!e.parentElement?!1:Jqt(e.parentElement)}function eGt(e){return xo?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function tGt(e){return e.browserEvent.shiftKey}function tHn(e){return G3e(e)&&e.button===2}function nHn(e,t){const n=e.indexOf(t);if(n===-1)return[];const i=[];let r=n-1;for(;r>=0&&e[r]===t-(n-r);)i.push(e[r--]);for(i.reverse(),r=n;r<e.length&&e[r]===t+(r-n);)i.push(e[r++]);return i}function tCe(e,t){const n=[];let i=0,r=0;for(;i<e.length||r<t.length;)if(i>=e.length)n.push(t[r++]);else if(r>=t.length)n.push(e[i++]);else if(e[i]===t[r]){n.push(e[i]),i++,r++;continue}else e[i]<t[r]?n.push(e[i++]):n.push(t[r++]);return n}function iHn(e,t){const n=[];let i=0,r=0;for(;i<e.length||r<t.length;)if(i>=e.length)n.push(t[r++]);else if(r>=t.length)n.push(e[i++]);else if(e[i]===t[r]){i++,r++;continue}else e[i]<t[r]?n.push(e[i++]):r++;return n}var lA,Lut,iV,Nut,jJ,nCe,sx,O5,Put,Mut,Out,iCe,K4e,Y4e,nGt,Rut,rCe,Fut,But,jut,tv,BN=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/list/listWidget.js"(){Fn(),UC(),mf(),Q0(),Ih(),q3n(),rr(),fr(),ql(),tF(),Un(),yw(),Nt(),k7(),Xr(),as(),Qqt(),G3n(),bWe(),Cb(),xs(),lA=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},Lut=class{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(e){return e}renderElement(e,t,n){const i=this.renderedElements.findIndex(r=>r.templateData===n);if(i>=0){const r=this.renderedElements[i];this.trait.unrender(n),r.index=t}else{const r={index:t,templateData:n};this.renderedElements.push(r)}this.trait.renderIndex(t,n)}splice(e,t,n){const i=[];for(const r of this.renderedElements)r.index<e?i.push(r):r.index>=e+t&&i.push({index:r.index+n-t,templateData:r.templateData});this.renderedElements=i}renderIndexes(e){for(const{index:t,templateData:n}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,n)}disposeTemplate(e){const t=this.renderedElements.findIndex(n=>n.templateData===e);t<0||this.renderedElements.splice(t,1)}},iV=class{get name(){return this._trait}get renderer(){return new Lut(this)}constructor(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new bt,this.onChange=this._onChange.event}splice(e,t,n){const i=n.length-t,r=e+t,o=[];let s=0;for(;s<this.sortedIndexes.length&&this.sortedIndexes[s]<e;)o.push(this.sortedIndexes[s++]);for(let a=0;a<n.length;a++)n[a]&&o.push(a+e);for(;s<this.sortedIndexes.length&&this.sortedIndexes[s]>=r;)o.push(this.sortedIndexes[s++]+i);this.renderer.splice(e,t,n.length),this._set(o,o)}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(rCe),t)}_set(e,t,n){const i=this.indexes,r=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const o=tCe(r,e);return this.renderer.renderIndexes(o),this._onChange.fire({indexes:e,browserEvent:n}),i}get(){return this.indexes}contains(e){return Hq(this.sortedIndexes,e,rCe)>=0}dispose(){xa(this._onChange)}},lA([Hc],iV.prototype,"renderer",null),Nut=class extends iV{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}},jJ=class{constructor(e,t,n){this.trait=e,this.view=t,this.identityProvider=n}splice(e,t,n){if(!this.identityProvider)return this.trait.splice(e,t,new Array(n.length).fill(!1));const i=this.trait.get().map(s=>this.identityProvider.getId(this.view.element(s)).toString());if(i.length===0)return this.trait.splice(e,t,new Array(n.length).fill(!1));const r=new Set(i),o=n.map(s=>r.has(this.identityProvider.getId(s).toString()));this.trait.splice(e,t,o)}},nCe=class{get onKeyDown(){return On.chain(this.disposables.add(new ko(this.view.domNode,"keydown")).event,e=>e.filter(t=>!fI(t.target)).map(t=>new Sa(t)))}constructor(e,t,n){this.list=e,this.view=t,this.disposables=new Jt,this.multipleSelectionDisposables=new Jt,this.multipleSelectionSupport=n.multipleSelectionSupport,this.disposables.add(this.onKeyDown(i=>{switch(i.keyCode){case 3:return this.onEnter(i);case 16:return this.onUpArrow(i);case 18:return this.onDownArrow(i);case 11:return this.onPageUpArrow(i);case 12:return this.onPageDownArrow(i);case 9:return this.onEscape(i);case 31:this.multipleSelectionSupport&&(xo?i.metaKey:i.ctrlKey)&&this.onCtrlA(i)}}))}updateOptions(e){e.multipleSelectionSupport!==void 0&&(this.multipleSelectionSupport=e.multipleSelectionSupport)}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(Kg(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}},lA([Hc],nCe.prototype,"onKeyDown",null),(function(e){e[e.Automatic=0]="Automatic",e[e.Trigger=1]="Trigger"})(sx||(sx={})),(function(e){e[e.Idle=0]="Idle",e[e.Typing=1]="Typing"})(O5||(O5={})),Put=new class{mightProducePrintableCharacter(e){return e.ctrlKey||e.metaKey||e.altKey?!1:e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=98&&e.keyCode<=107||e.keyCode>=85&&e.keyCode<=95}},Mut=class{constructor(e,t,n,i,r){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=n,this.keyboardNavigationEventFilter=i,this.delegate=r,this.enabled=!1,this.state=O5.Idle,this.mode=sx.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new Jt,this.disposables=new Jt,this.updateOptions(e.options)}updateOptions(e){e.typeNavigationEnabled??!0?this.enable():this.disable(),this.mode=e.typeNavigationMode??sx.Automatic}enable(){if(this.enabled)return;let e=!1;const t=On.chain(this.enabledDisposables.add(new ko(this.view.domNode,"keydown")).event,r=>r.filter(o=>!fI(o.target)).filter(()=>this.mode===sx.Automatic||this.triggered).map(o=>new Sa(o)).filter(o=>e||this.keyboardNavigationEventFilter(o)).filter(o=>this.delegate.mightProducePrintableCharacter(o)).forEach(o=>Po.stop(o,!0)).map(o=>o.browserEvent.key)),n=On.debounce(t,()=>null,800,void 0,void 0,void 0,this.enabledDisposables);On.reduce(On.any(t,n),(r,o)=>o===null?null:(r||"")+o,void 0,this.enabledDisposables)(this.onInput,this,this.enabledDisposables),n(this.onClear,this,this.enabledDisposables),t(()=>e=!0,void 0,this.enabledDisposables),n(()=>e=!1,void 0,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){const e=this.list.getFocus();if(e.length>0&&e[0]===this.previouslyFocused){const t=this.list.options.accessibilityProvider?.getAriaLabel(this.list.element(e[0]));typeof t=="string"?mg(t):t&&mg(t.get())}this.previouslyFocused=-1}onInput(e){if(!e){this.state=O5.Idle,this.triggered=!1;return}const t=this.list.getFocus(),n=t.length>0?t[0]:0,i=this.state===O5.Idle?1:0;this.state=O5.Typing;for(let r=0;r<this.list.length;r++){const o=(n+r+i)%this.list.length,s=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(o)),a=s&&s.toString();if(this.list.options.typeNavigationEnabled){if(typeof a<"u"){if(W6(e,a)){this.previouslyFocused=n,this.list.setFocus([o]),this.list.reveal(o);return}const l=sVn(e,a);if(l&&l[0].end-l[0].start>1&&l.length===1){this.previouslyFocused=n,this.list.setFocus([o]),this.list.reveal(o);return}}}else if(typeof a>"u"||W6(e,a)){this.previouslyFocused=n,this.list.setFocus([o]),this.list.reveal(o);return}}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}},Out=class{constructor(e,t){this.list=e,this.view=t,this.disposables=new Jt;const n=On.chain(this.disposables.add(new ko(t.domNode,"keydown")).event,r=>r.filter(o=>!fI(o.target)).map(o=>new Sa(o)));On.chain(n,r=>r.filter(o=>o.keyCode===2&&!o.ctrlKey&&!o.metaKey&&!o.shiftKey&&!o.altKey))(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(t.length===0)return;const n=this.view.domElement(t[0]);if(!n)return;const i=n.querySelector("[tabIndex]");if(!i||!yd(i)||i.tabIndex===-1)return;const r=Yi(i).getComputedStyle(i);r.visibility==="hidden"||r.display==="none"||(e.preventDefault(),e.stopPropagation(),i.focus())}dispose(){this.disposables.dispose()}},iCe={isSelectionSingleChangeEvent:eGt,isSelectionRangeChangeEvent:tGt},K4e=class{constructor(e){this.list=e,this.disposables=new Jt,this._onPointer=new bt,this.onPointer=this._onPointer.event,e.options.multipleSelectionSupport!==!1&&(this.multipleSelectionController=this.list.options.multipleSelectionController||iCe),this.mouseSupport=typeof e.options.mouseSupport>"u"||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(Ap.addTarget(e.getHTMLElement()))),On.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){e.multipleSelectionSupport!==void 0&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||iCe))}isSelectionSingleChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):!1}isSelectionRangeChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):!1}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){nW(e.browserEvent.target)||cf()!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(fI(e.browserEvent.target)||nW(e.browserEvent.target))return;const t=typeof e.index>"u"?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport||fI(e.browserEvent.target)||nW(e.browserEvent.target)||e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=e.index;if(typeof t>"u"){this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0);return}if(this.isSelectionChangeEvent(e))return this.changeSelection(e);this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),tHn(e.browserEvent)||this.list.setSelection([t],e.browserEvent),this._onPointer.fire(e)}onDoubleClick(e){if(fI(e.browserEvent.target)||nW(e.browserEvent.target)||this.isSelectionChangeEvent(e)||e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let n=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){typeof n>"u"&&(n=this.list.getFocus()[0]??t,this.list.setAnchor(n));const i=Math.min(n,t),r=Math.max(n,t),o=Kg(i,r+1),s=this.list.getSelection(),a=nHn(tCe(s,[n]),n);if(a.length===0)return;const l=tCe(o,iHn(s,a));this.list.setSelection(l,e.browserEvent),this.list.setFocus([t],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){const i=this.list.getSelection(),r=i.filter(o=>o!==t);this.list.setFocus([t]),this.list.setAnchor(t),i.length===r.length?this.list.setSelection([...r,t],e.browserEvent):this.list.setSelection(r,e.browserEvent)}}dispose(){this.disposables.dispose()}},Y4e=class{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){const t=this.selectorSuffix&&`.${this.selectorSuffix}`,n=[];e.listBackground&&n.push(`.monaco-list${t} .monaco-list-rows { background: ${e.listBackground}; }`),e.listFocusBackground&&(n.push(`.monaco-list${t}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),n.push(`.monaco-list${t}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&n.push(`.monaco-list${t}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(n.push(`.monaco-list${t}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),n.push(`.monaco-list${t}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&n.push(`.monaco-list${t}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&n.push(`.monaco-list${t}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&n.push(`
				.monaco-drag-image,
				.monaco-list${t}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; }
			`),e.listFocusAndSelectionForeground&&n.push(`
				.monaco-drag-image,
				.monaco-list${t}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; }
			`),e.listInactiveFocusForeground&&(n.push(`.monaco-list${t} .monaco-list-row.focused { color:  ${e.listInactiveFocusForeground}; }`),n.push(`.monaco-list${t} .monaco-list-row.focused:hover { color:  ${e.listInactiveFocusForeground}; }`)),e.listInactiveSelectionIconForeground&&n.push(`.monaco-list${t} .monaco-list-row.focused .codicon { color:  ${e.listInactiveSelectionIconForeground}; }`),e.listInactiveFocusBackground&&(n.push(`.monaco-list${t} .monaco-list-row.focused { background-color:  ${e.listInactiveFocusBackground}; }`),n.push(`.monaco-list${t} .monaco-list-row.focused:hover { background-color:  ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(n.push(`.monaco-list${t} .monaco-list-row.selected { background-color:  ${e.listInactiveSelectionBackground}; }`),n.push(`.monaco-list${t} .monaco-list-row.selected:hover { background-color:  ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&n.push(`.monaco-list${t} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&n.push(`.monaco-list${t}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&n.push(`.monaco-list${t}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { color:  ${e.listHoverForeground}; }`);const i=_D(e.listFocusAndSelectionOutline,_D(e.listSelectionOutline,e.listFocusOutline??""));i&&n.push(`.monaco-list${t}:focus .monaco-list-row.focused.selected { outline: 1px solid ${i}; outline-offset: -1px;}`),e.listFocusOutline&&n.push(`
				.monaco-drag-image,
				.monaco-list${t}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }
				.monaco-workbench.context-menu-visible .monaco-list${t}.last-focused .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }
			`);const r=_D(e.listSelectionOutline,e.listInactiveFocusOutline??"");r&&n.push(`.monaco-list${t} .monaco-list-row.focused.selected { outline: 1px dotted ${r}; outline-offset: -1px; }`),e.listSelectionOutline&&n.push(`.monaco-list${t} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listInactiveFocusOutline&&n.push(`.monaco-list${t} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&n.push(`.monaco-list${t} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropOverBackground&&n.push(`
				.monaco-list${t}.drop-target,
				.monaco-list${t} .monaco-list-rows.drop-target,
				.monaco-list${t} .monaco-list-row.drop-target { background-color: ${e.listDropOverBackground} !important; color: inherit !important; }
			`),e.listDropBetweenBackground&&(n.push(`
			.monaco-list${t} .monaco-list-rows.drop-target-before .monaco-list-row:first-child::before,
			.monaco-list${t} .monaco-list-row.drop-target-before::before {
				content: ""; position: absolute; top: 0px; left: 0px; width: 100%; height: 1px;
				background-color: ${e.listDropBetweenBackground};
			}`),n.push(`
			.monaco-list${t} .monaco-list-rows.drop-target-after .monaco-list-row:last-child::after,
			.monaco-list${t} .monaco-list-row.drop-target-after::after {
				content: ""; position: absolute; bottom: 0px; left: 0px; width: 100%; height: 1px;
				background-color: ${e.listDropBetweenBackground};
			}`)),e.tableColumnsBorder&&n.push(`
				.monaco-table > .monaco-split-view2,
				.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before,
				.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2,
				.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {
					border-color: ${e.tableColumnsBorder};
				}

				.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2,
				.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {
					border-color: transparent;
				}
			`),e.tableOddRowsBackgroundColor&&n.push(`
				.monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr,
				.monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr,
				.monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr {
					background-color: ${e.tableOddRowsBackgroundColor};
				}
			`),this.styleElement.textContent=n.join(`
`)}},nGt={listFocusBackground:"#7FB0D0",listActiveSelectionBackground:"#0E639C",listActiveSelectionForeground:"#FFFFFF",listActiveSelectionIconForeground:"#FFFFFF",listFocusAndSelectionOutline:"#90C2F9",listFocusAndSelectionBackground:"#094771",listFocusAndSelectionForeground:"#FFFFFF",listInactiveSelectionBackground:"#3F3F46",listInactiveSelectionIconForeground:"#FFFFFF",listHoverBackground:"#2A2D2E",listDropOverBackground:"#383B3D",listDropBetweenBackground:"#EEEEEE",treeIndentGuidesStroke:"#a9a9a9",treeInactiveIndentGuidesStroke:rn.fromHex("#a9a9a9").transparent(.4).toString(),tableColumnsBorder:rn.fromHex("#cccccc").transparent(.2).toString(),tableOddRowsBackgroundColor:rn.fromHex("#cccccc").transparent(.04).toString(),listBackground:void 0,listFocusForeground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusForeground:void 0,listInactiveFocusBackground:void 0,listHoverForeground:void 0,listFocusOutline:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listHoverOutline:void 0,treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0},Rut={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){},dispose(){}}},rCe=(e,t)=>e-t,Fut=class{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map(t=>t.renderTemplate(e))}renderElement(e,t,n,i){let r=0;for(const o of this.renderers)o.renderElement(e,t,n[r++],i)}disposeElement(e,t,n,i){let r=0;for(const o of this.renderers)o.disposeElement?.(e,t,n[r],i),r+=1}disposeTemplate(e){let t=0;for(const n of this.renderers)n.disposeTemplate(e[t++])}},But=class{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return{container:e,disposables:new Jt}}renderElement(e,t,n){const i=this.accessibilityProvider.getAriaLabel(e),r=i&&typeof i!="string"?i:Uy(i);n.disposables.add(Tr(s=>{this.setAriaLabel(s.readObservable(r),n.container)}));const o=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);typeof o=="number"?n.container.setAttribute("aria-level",`${o}`):n.container.removeAttribute("aria-level")}setAriaLabel(e,t){e?t.setAttribute("aria-label",e):t.removeAttribute("aria-label")}disposeElement(e,t,n,i){n.disposables.clear()}disposeTemplate(e){e.disposables.dispose()}},jut=class{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){this.dnd.onDragStart?.(e,t)}onDragOver(e,t,n,i,r){return this.dnd.onDragOver(e,t,n,i,r)}onDragLeave(e,t,n,i){this.dnd.onDragLeave?.(e,t,n,i)}onDragEnd(e){this.dnd.onDragEnd?.(e)}drop(e,t,n,i,r){this.dnd.drop(e,t,n,i,r)}dispose(){this.dnd.dispose()}},tv=class{get onDidChangeFocus(){return On.map(this.eventBufferer.wrapEvent(this.focus.onChange),e=>this.toListEvent(e),this.disposables)}get onDidChangeSelection(){return On.map(this.eventBufferer.wrapEvent(this.selection.onChange),e=>this.toListEvent(e),this.disposables)}get domId(){return this.view.domId}get onDidScroll(){return this.view.onDidScroll}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onMouseOver(){return this.view.onMouseOver}get onMouseOut(){return this.view.onMouseOut}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=On.chain(this.disposables.add(new ko(this.view.domNode,"keydown")).event,r=>r.map(o=>new Sa(o)).filter(o=>e=o.keyCode===58||o.shiftKey&&o.keyCode===68).map(o=>Po.stop(o,!0)).filter(()=>!1)),n=On.chain(this.disposables.add(new ko(this.view.domNode,"keyup")).event,r=>r.forEach(()=>e=!1).map(o=>new Sa(o)).filter(o=>o.keyCode===58||o.shiftKey&&o.keyCode===68).map(o=>Po.stop(o,!0)).map(({browserEvent:o})=>{const s=this.getFocus(),a=s.length?s[0]:void 0,l=typeof a<"u"?this.view.element(a):void 0,c=typeof a<"u"?this.view.domElement(a):this.view.domNode;return{index:a,element:l,anchor:c,browserEvent:o}})),i=On.chain(this.view.onContextMenu,r=>r.filter(o=>!e).map(({element:o,index:s,browserEvent:a})=>({element:o,index:s,anchor:new Vy(Yi(this.view.domNode),a),browserEvent:a})));return On.any(t,n,i)}get onKeyDown(){return this.disposables.add(new ko(this.view.domNode,"keydown")).event}get onDidFocus(){return On.signal(this.disposables.add(new ko(this.view.domNode,"focus",!0)).event)}get onDidBlur(){return On.signal(this.disposables.add(new ko(this.view.domNode,"blur",!0)).event)}constructor(e,t,n,i,r=Rut){this.user=e,this._options=r,this.focus=new iV("focused"),this.anchor=new iV("anchor"),this.eventBufferer=new p7,this._ariaLabel="",this.disposables=new Jt,this._onDidDispose=new bt,this.onDidDispose=this._onDidDispose.event;const o=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?this._options.accessibilityProvider?.getWidgetRole():"list";this.selection=new Nut(o!=="listbox");const s=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=r.accessibilityProvider,this.accessibilityProvider&&(s.push(new But(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant?.(this.onDidChangeActiveDescendant,this,this.disposables)),i=i.map(l=>new Fut(l.templateId,[...s,l]));const a={...r,dnd:r.dnd&&new jut(this,r.dnd)};if(this.view=this.createListView(t,n,i,a),this.view.domNode.setAttribute("role",o),r.styleController)this.styleController=r.styleController(this.view.domId);else{const l=V0(this.view.domNode);this.styleController=new Y4e(l,this.view.domId)}if(this.spliceable=new Yqt([new jJ(this.focus,this.view,r.identityProvider),new jJ(this.selection,this.view,r.identityProvider),new jJ(this.anchor,this.view,r.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new Out(this,this.view)),(typeof r.keyboardSupport!="boolean"||r.keyboardSupport)&&(this.keyboardController=new nCe(this,this.view,r),this.disposables.add(this.keyboardController)),r.keyboardNavigationLabelProvider){const l=r.keyboardNavigationDelegate||Put;this.typeNavigationController=new Mut(this,this.view,r.keyboardNavigationLabelProvider,r.keyboardNavigationEventFilter??(()=>!0),l),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(r),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),this._options.multipleSelectionSupport!==!1&&this.view.domNode.setAttribute("aria-multiselectable","true")}createListView(e,t,n,i){return new p1(e,t,n,i)}createMouseController(e){return new K4e(this)}updateOptions(e={}){this._options={...this._options,...e},this.typeNavigationController?.updateOptions(this._options),this._options.multipleSelectionController!==void 0&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),this.keyboardController?.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,n=[]){if(e<0||e>this.view.length)throw new Qk(this.user,`Invalid start index: ${e}`);if(t<0)throw new Qk(this.user,`Invalid delete count: ${t}`);t===0&&n.length===0||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(e,t,n))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}indexOf(e){return this.view.indexOf(e)}indexAt(e){return this.view.indexAt(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get onDidChangeContentHeight(){return this.view.onDidChangeContentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get firstVisibleIndex(){return this.view.firstVisibleIndex}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const n of e)if(n<0||n>=this.length)throw new Qk(this.user,`Invalid index ${n}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map(e=>this.view.element(e))}setAnchor(e){if(typeof e>"u"){this.anchor.set([]);return}if(e<0||e>=this.length)throw new Qk(this.user,`Invalid index ${e}`);this.anchor.set([e])}getAnchor(){return vHe(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return typeof e>"u"?void 0:this.element(e)}setFocus(e,t){for(const n of e)if(n<0||n>=this.length)throw new Qk(this.user,`Invalid index ${n}`);this.focus.set(e,t)}focusNext(e=1,t=!1,n,i){if(this.length===0)return;const r=this.focus.get(),o=this.findNextIndex(r.length>0?r[0]+e:0,t,i);o>-1&&this.setFocus([o],n)}focusPrevious(e=1,t=!1,n,i){if(this.length===0)return;const r=this.focus.get(),o=this.findPreviousIndex(r.length>0?r[0]-e:0,t,i);o>-1&&this.setFocus([o],n)}async focusNextPage(e,t){let n=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);n=n===0?0:n-1;const i=this.getFocus()[0];if(i!==n&&(i===void 0||n>i)){const r=this.findPreviousIndex(n,!1,t);r>-1&&i!==r?this.setFocus([r],e):this.setFocus([n],e)}else{const r=this.view.getScrollTop();let o=r+this.view.renderHeight;n>i&&(o-=this.view.elementHeight(n)),this.view.setScrollTop(o),this.view.getScrollTop()!==r&&(this.setFocus([]),await FD(0),await this.focusNextPage(e,t))}}async focusPreviousPage(e,t,n=()=>0){let i;const r=n(),o=this.view.getScrollTop()+r;o===0?i=this.view.indexAt(o):i=this.view.indexAfter(o-1);const s=this.getFocus()[0];if(s!==i&&(s===void 0||s>=i)){const a=this.findNextIndex(i,!1,t);a>-1&&s!==a?this.setFocus([a],e):this.setFocus([i],e)}else{const a=o;this.view.setScrollTop(o-this.view.renderHeight-r),this.view.getScrollTop()+n()!==a&&(this.setFocus([]),await FD(0),await this.focusPreviousPage(e,t,n))}}focusLast(e,t){if(this.length===0)return;const n=this.findPreviousIndex(this.length-1,!1,t);n>-1&&this.setFocus([n],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,n){if(this.length===0)return;const i=this.findNextIndex(e,!1,n);i>-1&&this.setFocus([i],t)}findNextIndex(e,t=!1,n){for(let i=0;i<this.length;i++){if(e>=this.length&&!t)return-1;if(e=e%this.length,!n||n(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,n){for(let i=0;i<this.length;i++){if(e<0&&!t)return-1;if(e=(this.length+e%this.length)%this.length,!n||n(this.element(e)))return e;e--}return-1}getFocus(){return this.focus.get()}getFocusedElements(){return this.getFocus().map(e=>this.view.element(e))}reveal(e,t,n=0){if(e<0||e>=this.length)throw new Qk(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),r=this.view.elementTop(e),o=this.view.elementHeight(e);if(wL(t)){const s=o-this.view.renderHeight+n;this.view.setScrollTop(s*Jp(t,0,1)+r-n)}else{const s=r+o,a=i+this.view.renderHeight;r<i+n&&s>=a||(r<i+n||s>=a&&o>=this.view.renderHeight?this.view.setScrollTop(r-n):s>=a&&this.view.setScrollTop(s-this.view.renderHeight))}}getRelativeTop(e,t=0){if(e<0||e>=this.length)throw new Qk(this.user,`Invalid index ${e}`);const n=this.view.getScrollTop(),i=this.view.elementTop(e),r=this.view.elementHeight(e);if(i<n+t||i+r>n+this.view.renderHeight)return null;const o=r-this.view.renderHeight+t;return Math.abs((n+t-i)/o)}getHTMLElement(){return this.view.domNode}getScrollableElement(){return this.view.scrollableElementDomNode}getElementID(e){return this.view.getElementDomId(e)}getElementTop(e){return this.view.elementTop(e)}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map(n=>this.view.element(n)),browserEvent:t}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){const e=this.focus.get();if(e.length>0){let t;this.accessibilityProvider?.getActiveDescendantId&&(t=this.accessibilityProvider.getActiveDescendantId(this.view.element(e[0]))),this.view.domNode.setAttribute("aria-activedescendant",t||this.view.getElementDomId(e[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",e.length===0),this.view.domNode.classList.toggle("selection-single",e.length===1),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}},lA([Hc],tv.prototype,"onDidChangeFocus",null),lA([Hc],tv.prototype,"onDidChangeSelection",null),lA([Hc],tv.prototype,"onContextMenu",null),lA([Hc],tv.prototype,"onKeyDown",null),lA([Hc],tv.prototype,"onDidFocus",null),lA([Hc],tv.prototype,"onDidBlur",null)}}),rHn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/selectBox/selectBoxCustom.css"(){}}),_k,oCe,zut,iGt,oHn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/selectBox/selectBoxCustom.js"(){var e;Fn(),UC(),mf(),hge(),_w(),Lh(),BN(),rr(),Un(),wb(),Nt(),Xr(),rHn(),bn(),_k=In,oCe="selectOption.entry.template",zut=class{get templateId(){return oCe}renderTemplate(t){const n=Object.create(null);return n.root=t,n.text=hn(t,_k(".option-text")),n.detail=hn(t,_k(".option-detail")),n.decoratorRight=hn(t,_k(".option-decorator-right")),n}renderElement(t,n,i){const r=i,o=t.text,s=t.detail,a=t.decoratorRight,l=t.isDisabled;r.text.textContent=o,r.detail.textContent=s||"",r.decoratorRight.innerText=a||"",l?r.root.classList.add("option-disabled"):r.root.classList.remove("option-disabled")}disposeTemplate(t){}},iGt=(e=class extends St{constructor(n,i,r,o,s){super(),this.options=[],this._currentSelection=0,this._hasDetails=!1,this._skipLayout=!1,this._sticky=!1,this._isVisible=!1,this.styles=o,this.selectBoxOptions=s||Object.create(null),typeof this.selectBoxOptions.minBottomMargin!="number"?this.selectBoxOptions.minBottomMargin=e.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN:this.selectBoxOptions.minBottomMargin<0&&(this.selectBoxOptions.minBottomMargin=0),this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box monaco-select-box-dropdown-padding",typeof this.selectBoxOptions.ariaLabel=="string"&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),typeof this.selectBoxOptions.ariaDescription=="string"&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=new bt,this._register(this._onDidSelect),this.registerListeners(),this.constructSelectDropDown(r),this.selected=i||0,n&&this.setOptions(n,i),this.initStyleSheet()}setTitle(n){!this._hover&&n?this._hover=this._register(GC().setupManagedHover(hg("mouse"),this.selectElement,n)):this._hover&&this._hover.update(n)}getHeight(){return 22}getTemplateId(){return oCe}constructSelectDropDown(n){this.contextViewProvider=n,this.selectDropDownContainer=In(".monaco-select-box-dropdown-container"),this.selectDropDownContainer.classList.add("monaco-select-box-dropdown-padding"),this.selectionDetailsPane=hn(this.selectDropDownContainer,_k(".select-box-details-pane"));const i=hn(this.selectDropDownContainer,_k(".select-box-dropdown-container-width-control")),r=hn(i,_k(".width-control-div"));this.widthControlElement=document.createElement("span"),this.widthControlElement.className="option-text-width-control",hn(r,this.widthControlElement),this._dropDownPosition=0,this.styleElement=V0(this.selectDropDownContainer),this.selectDropDownContainer.setAttribute("draggable","true"),this._register(qt(this.selectDropDownContainer,kn.DRAG_START,o=>{Po.stop(o,!0)}))}registerListeners(){this._register(Il(this.selectElement,"change",i=>{this.selected=i.target.selectedIndex,this._onDidSelect.fire({index:i.target.selectedIndex,selected:i.target.value}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)})),this._register(qt(this.selectElement,kn.CLICK,i=>{Po.stop(i),this._isVisible?this.hideSelectDropDown(!0):this.showSelectDropDown()})),this._register(qt(this.selectElement,kn.MOUSE_DOWN,i=>{Po.stop(i)}));let n;this._register(qt(this.selectElement,"touchstart",i=>{n=this._isVisible})),this._register(qt(this.selectElement,"touchend",i=>{Po.stop(i),n?this.hideSelectDropDown(!0):this.showSelectDropDown()})),this._register(qt(this.selectElement,kn.KEY_DOWN,i=>{const r=new Sa(i);let o=!1;xo?(r.keyCode===18||r.keyCode===16||r.keyCode===10||r.keyCode===3)&&(o=!0):(r.keyCode===18&&r.altKey||r.keyCode===16&&r.altKey||r.keyCode===10||r.keyCode===3)&&(o=!0),o&&(this.showSelectDropDown(),Po.stop(i,!0))}))}get onDidSelect(){return this._onDidSelect.event}setOptions(n,i){vl(this.options,n)||(this.options=n,this.selectElement.options.length=0,this._hasDetails=!1,this._cachedMaxDetailsHeight=void 0,this.options.forEach((r,o)=>{this.selectElement.add(this.createOption(r.text,o,r.isDisabled)),typeof r.description=="string"&&(this._hasDetails=!0)})),i!==void 0&&(this.select(i),this._currentSelection=this.selected)}setOptionsList(){this.selectList?.splice(0,this.selectList.length,this.options)}select(n){n>=0&&n<this.options.length?this.selected=n:n>this.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(n){this.selectElement.tabIndex=n?0:-1}render(n){this.container=n,n.classList.add("select-container"),n.appendChild(this.selectElement),this.styleSelectElement()}initStyleSheet(){const n=[];this.styles.listFocusBackground&&n.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { background-color: ${this.styles.listFocusBackground} !important; }`),this.styles.listFocusForeground&&n.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { color: ${this.styles.listFocusForeground} !important; }`),this.styles.decoratorRightForeground&&n.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.focused) .option-decorator-right { color: ${this.styles.decoratorRightForeground}; }`),this.styles.selectBackground&&this.styles.selectBorder&&this.styles.selectBorder!==this.styles.selectBackground?(n.push(`.monaco-select-box-dropdown-container { border: 1px solid ${this.styles.selectBorder} } `),n.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectBorder} } `),n.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectBorder} } `)):this.styles.selectListBorder&&(n.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectListBorder} } `),n.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectListBorder} } `)),this.styles.listHoverForeground&&n.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { color: ${this.styles.listHoverForeground} !important; }`),this.styles.listHoverBackground&&n.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { background-color: ${this.styles.listHoverBackground} !important; }`),this.styles.listFocusOutline&&n.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { outline: 1.6px dotted ${this.styles.listFocusOutline} !important; outline-offset: -1.6px !important; }`),this.styles.listHoverOutline&&n.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { outline: 1.6px dashed ${this.styles.listHoverOutline} !important; outline-offset: -1.6px !important; }`),n.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled.focused { background-color: transparent !important; color: inherit !important; outline: none !important; }"),n.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: transparent !important; color: inherit !important; outline: none !important; }"),this.styleElement.textContent=n.join(`
`)}styleSelectElement(){const n=this.styles.selectBackground??"",i=this.styles.selectForeground??"",r=this.styles.selectBorder??"";this.selectElement.style.backgroundColor=n,this.selectElement.style.color=i,this.selectElement.style.borderColor=r}styleList(){const n=this.styles.selectBackground??"",i=_D(this.styles.selectListBackground,n);this.selectDropDownListContainer.style.backgroundColor=i,this.selectionDetailsPane.style.backgroundColor=i;const r=this.styles.focusBorder??"";this.selectDropDownContainer.style.outlineColor=r,this.selectDropDownContainer.style.outlineOffset="-1px",this.selectList.style(this.styles)}createOption(n,i,r){const o=document.createElement("option");return o.value=n,o.text=n,o.disabled=!!r,o}showSelectDropDown(){this.selectionDetailsPane.innerText="",!(!this.contextViewProvider||this._isVisible)&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:n=>this.renderSelectDropDown(n,!0),layout:()=>{this.layoutSelectDropDown()},onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._isVisible=!0,this.hideSelectDropDown(!1),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:n=>this.renderSelectDropDown(n),layout:()=>this.layoutSelectDropDown(),onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._currentSelection=this.selected,this._isVisible=!0,this.selectElement.setAttribute("aria-expanded","true"))}hideSelectDropDown(n){!this.contextViewProvider||!this._isVisible||(this._isVisible=!1,this.selectElement.setAttribute("aria-expanded","false"),n&&this.selectElement.focus(),this.contextViewProvider.hideContextView())}renderSelectDropDown(n,i){return n.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(i),{dispose:()=>{this.selectDropDownContainer.remove()}}}measureMaxDetailsHeight(){let n=0;return this.options.forEach((i,r)=>{this.updateDetail(r),this.selectionDetailsPane.offsetHeight>n&&(n=this.selectionDetailsPane.offsetHeight)}),n}layoutSelectDropDown(n){if(this._skipLayout)return!1;if(this.selectList){this.selectDropDownContainer.classList.add("visible");const i=Yi(this.selectElement),r=_c(this.selectElement),o=Yi(this.selectElement).getComputedStyle(this.selectElement),s=parseFloat(o.getPropertyValue("--dropdown-padding-top"))+parseFloat(o.getPropertyValue("--dropdown-padding-bottom")),a=i.innerHeight-r.top-r.height-(this.selectBoxOptions.minBottomMargin||0),l=r.top-e.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,c=this.selectElement.offsetWidth,u=this.setWidthControlElement(this.widthControlElement),d=Math.max(u,Math.round(c)).toString()+"px";this.selectDropDownContainer.style.width=d,this.selectList.getHTMLElement().style.height="",this.selectList.layout();let h=this.selectList.contentHeight;this._hasDetails&&this._cachedMaxDetailsHeight===void 0&&(this._cachedMaxDetailsHeight=this.measureMaxDetailsHeight());const f=this._hasDetails?this._cachedMaxDetailsHeight:0,p=h+s+f,g=Math.floor((a-s-f)/this.getHeight()),m=Math.floor((l-s-f)/this.getHeight());if(n)return r.top+r.height>i.innerHeight-22||r.top<e.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN||g<1&&m<1?!1:(g<e.DEFAULT_MINIMUM_VISIBLE_OPTIONS&&m>g&&this.options.length>g?(this._dropDownPosition=1,this.selectDropDownListContainer.remove(),this.selectionDetailsPane.remove(),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectionDetailsPane.classList.remove("border-top"),this.selectionDetailsPane.classList.add("border-bottom")):(this._dropDownPosition=0,this.selectDropDownListContainer.remove(),this.selectionDetailsPane.remove(),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectionDetailsPane.classList.remove("border-bottom"),this.selectionDetailsPane.classList.add("border-top")),!0);if(r.top+r.height>i.innerHeight-22||r.top<e.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN||this._dropDownPosition===0&&g<1||this._dropDownPosition===1&&m<1)return this.hideSelectDropDown(!0),!1;if(this._dropDownPosition===0){if(this._isVisible&&g+m<1)return this.hideSelectDropDown(!0),!1;p>a&&(h=g*this.getHeight())}else p>l&&(h=m*this.getHeight());return this.selectList.layout(h),this.selectList.domFocus(),this.selectList.length>0&&(this.selectList.setFocus([this.selected||0]),this.selectList.reveal(this.selectList.getFocus()[0]||0)),this._hasDetails?(this.selectList.getHTMLElement().style.height=h+s+"px",this.selectDropDownContainer.style.height=""):this.selectDropDownContainer.style.height=h+s+"px",this.updateDetail(this.selected),this.selectDropDownContainer.style.width=d,this.selectDropDownListContainer.setAttribute("tabindex","0"),this.selectElement.classList.add("synthetic-focus"),this.selectDropDownContainer.classList.add("synthetic-focus"),!0}else return!1}setWidthControlElement(n){let i=0;if(n){let r=0,o=0;this.options.forEach((s,a)=>{const l=s.detail?s.detail.length:0,c=s.decoratorRight?s.decoratorRight.length:0,u=s.text.length+l+c;u>o&&(r=a,o=u)}),n.textContent=this.options[r].text+(this.options[r].decoratorRight?this.options[r].decoratorRight+" ":""),i=Gm(n)}return i}createSelectList(n){if(this.selectList)return;this.selectDropDownListContainer=hn(n,_k(".select-box-dropdown-list-container")),this.listRenderer=new zut,this.selectList=this._register(new tv("SelectBoxCustom",this.selectDropDownListContainer,this,[this.listRenderer],{useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1,accessibilityProvider:{getAriaLabel:o=>{let s=o.text;return o.detail&&(s+=`. ${o.detail}`),o.decoratorRight&&(s+=`. ${o.decoratorRight}`),o.description&&(s+=`. ${o.description}`),s},getWidgetAriaLabel:()=>R({key:"selectBox",comment:["Behave like native select dropdown element."]},"Select Box"),getRole:()=>xo?"":"option",getWidgetRole:()=>"listbox"}})),this.selectBoxOptions.ariaLabel&&(this.selectList.ariaLabel=this.selectBoxOptions.ariaLabel);const i=this._register(new ko(this.selectDropDownListContainer,"keydown")),r=On.chain(i.event,o=>o.filter(()=>this.selectList.length>0).map(s=>new Sa(s)));this._register(On.chain(r,o=>o.filter(s=>s.keyCode===3))(this.onEnter,this)),this._register(On.chain(r,o=>o.filter(s=>s.keyCode===2))(this.onEnter,this)),this._register(On.chain(r,o=>o.filter(s=>s.keyCode===9))(this.onEscape,this)),this._register(On.chain(r,o=>o.filter(s=>s.keyCode===16))(this.onUpArrow,this)),this._register(On.chain(r,o=>o.filter(s=>s.keyCode===18))(this.onDownArrow,this)),this._register(On.chain(r,o=>o.filter(s=>s.keyCode===12))(this.onPageDown,this)),this._register(On.chain(r,o=>o.filter(s=>s.keyCode===11))(this.onPageUp,this)),this._register(On.chain(r,o=>o.filter(s=>s.keyCode===14))(this.onHome,this)),this._register(On.chain(r,o=>o.filter(s=>s.keyCode===13))(this.onEnd,this)),this._register(On.chain(r,o=>o.filter(s=>s.keyCode>=21&&s.keyCode<=56||s.keyCode>=85&&s.keyCode<=113))(this.onCharacter,this)),this._register(qt(this.selectList.getHTMLElement(),kn.POINTER_UP,o=>this.onPointerUp(o))),this._register(this.selectList.onMouseOver(o=>typeof o.index<"u"&&this.selectList.setFocus([o.index]))),this._register(this.selectList.onDidChangeFocus(o=>this.onListFocus(o))),this._register(qt(this.selectDropDownContainer,kn.FOCUS_OUT,o=>{!this._isVisible||hd(o.relatedTarget,this.selectDropDownContainer)||this.onListBlur()})),this.selectList.getHTMLElement().setAttribute("aria-label",this.selectBoxOptions.ariaLabel||""),this.selectList.getHTMLElement().setAttribute("aria-expanded","true"),this.styleList()}onPointerUp(n){if(!this.selectList.length)return;Po.stop(n);const i=n.target;if(!i||i.classList.contains("slider"))return;const r=i.closest(".monaco-list-row");if(!r)return;const o=Number(r.getAttribute("data-index")),s=r.classList.contains("option-disabled");o>=0&&o<this.options.length&&!s&&(this.selected=o,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0]),this.selected!==this._currentSelection&&(this._currentSelection=this.selected,this._onDidSelect.fire({index:this.selectElement.selectedIndex,selected:this.options[this.selected].text}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)),this.hideSelectDropDown(!0))}onListBlur(){this._sticky||(this.selected!==this._currentSelection&&this.select(this._currentSelection),this.hideSelectDropDown(!1))}renderDescriptionMarkdown(n,i){const r=s=>{for(let a=0;a<s.childNodes.length;a++){const l=s.childNodes.item(a);(l.tagName&&l.tagName.toLowerCase())==="img"?l.remove():r(l)}},o=dge({value:n,supportThemeIcons:!0},{actionHandler:i});return o.element.classList.add("select-box-description-markdown"),r(o.element),o.element}onListFocus(n){!this._isVisible||!this._hasDetails||this.updateDetail(n.indexes[0])}updateDetail(n){this.selectionDetailsPane.innerText="";const i=this.options[n],r=i?.description??"",o=i?.descriptionIsMarkdown??!1;if(r){if(o){const s=i.descriptionMarkdownActionHandler;this.selectionDetailsPane.appendChild(this.renderDescriptionMarkdown(r,s))}else this.selectionDetailsPane.innerText=r;this.selectionDetailsPane.style.display="block"}else this.selectionDetailsPane.style.display="none";this._skipLayout=!0,this.contextViewProvider.layout(),this._skipLayout=!1}onEscape(n){Po.stop(n),this.select(this._currentSelection),this.hideSelectDropDown(!0)}onEnter(n){Po.stop(n),this.selected!==this._currentSelection&&(this._currentSelection=this.selected,this._onDidSelect.fire({index:this.selectElement.selectedIndex,selected:this.options[this.selected].text}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)),this.hideSelectDropDown(!0)}onDownArrow(n){if(this.selected<this.options.length-1){Po.stop(n,!0);const i=this.options[this.selected+1].isDisabled;if(i&&this.options.length>this.selected+2)this.selected+=2;else{if(i)return;this.selected++}this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onUpArrow(n){this.selected>0&&(Po.stop(n,!0),this.options[this.selected-1].isDisabled&&this.selected>1?this.selected-=2:this.selected--,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0]))}onPageUp(n){Po.stop(n),this.selectList.focusPreviousPage(),setTimeout(()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected<this.options.length-1&&(this.selected++,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)},1)}onPageDown(n){Po.stop(n),this.selectList.focusNextPage(),setTimeout(()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected>0&&(this.selected--,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)},1)}onHome(n){Po.stop(n),!(this.options.length<2)&&(this.selected=0,this.options[this.selected].isDisabled&&this.selected>1&&this.selected++,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onEnd(n){Po.stop(n),!(this.options.length<2)&&(this.selected=this.options.length-1,this.options[this.selected].isDisabled&&this.selected>1&&this.selected--,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onCharacter(n){const i=KA.toString(n.keyCode);let r=-1;for(let o=0;o<this.options.length-1;o++)if(r=(o+this.selected+1)%this.options.length,this.options[r].text.charAt(0).toUpperCase()===i&&!this.options[r].isDisabled){this.select(r),this.selectList.setFocus([r]),this.selectList.reveal(this.selectList.getFocus()[0]),Po.stop(n);break}}dispose(){this.hideSelectDropDown(!1),super.dispose()}},e.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN=32,e.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN=2,e.DEFAULT_MINIMUM_VISIBLE_OPTIONS=3,e)}}),rGt,sHn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/selectBox/selectBoxNative.js"(){Fn(),Q0(),rr(),Un(),Nt(),Xr(),rGt=class extends St{constructor(e,t,n,i){super(),this.selected=0,this.selectBoxOptions=i||Object.create(null),this.options=[],this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box",typeof this.selectBoxOptions.ariaLabel=="string"&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),typeof this.selectBoxOptions.ariaDescription=="string"&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=this._register(new bt),this.styles=n,this.registerListeners(),this.setOptions(e,t)}registerListeners(){this._register(Ap.addTarget(this.selectElement)),[Wa.Tap].forEach(e=>{this._register(qt(this.selectElement,e,t=>{this.selectElement.focus()}))}),this._register(Il(this.selectElement,"click",e=>{Po.stop(e,!0)})),this._register(Il(this.selectElement,"change",e=>{this.selectElement.title=e.target.value,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value})})),this._register(Il(this.selectElement,"keydown",e=>{let t=!1;xo?(e.keyCode===18||e.keyCode===16||e.keyCode===10)&&(t=!0):(e.keyCode===18&&e.altKey||e.keyCode===10||e.keyCode===3)&&(t=!0),t&&e.stopPropagation()}))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){(!this.options||!vl(this.options,e))&&(this.options=e,this.selectElement.options.length=0,this.options.forEach((n,i)=>{this.selectElement.add(this.createOption(n.text,i,n.isDisabled))})),t!==void 0&&this.select(t)}select(e){this.options.length===0?this.selected=0:e>=0&&e<this.options.length?this.selected=e:e>this.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.selected<this.options.length&&typeof this.options[this.selected].text=="string"?this.selectElement.title=this.options[this.selected].text:this.selectElement.title=""}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){e.classList.add("select-container"),e.appendChild(this.selectElement),this.setOptions(this.options,this.selected),this.applyStyles()}applyStyles(){this.selectElement&&(this.selectElement.style.backgroundColor=this.styles.selectBackground??"",this.selectElement.style.color=this.styles.selectForeground??"",this.selectElement.style.borderColor=this.styles.selectBorder??"")}createOption(e,t,n){const i=document.createElement("option");return i.value=e,i.text=e,i.disabled=!!n,i}}}}),aHn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/selectBox/selectBox.css"(){}}),oGt,lHn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/selectBox/selectBox.js"(){oHn(),sHn(),mw(),Xr(),aHn(),oGt=class extends Ov{constructor(e,t,n,i,r){super(),xo&&!r?.useCustomDrawn?this.selectBoxDelegate=new rGt(e,t,i,r):this.selectBoxDelegate=new iGt(e,t,n,i,r),this._register(this.selectBoxDelegate)}get onDidSelect(){return this.selectBoxDelegate.onDidSelect}setOptions(e,t){this.selectBoxDelegate.setOptions(e,t)}select(e){this.selectBoxDelegate.select(e)}focus(){this.selectBoxDelegate.focus()}blur(){this.selectBoxDelegate.blur()}setFocusable(e){this.selectBoxDelegate.setFocusable(e)}render(e){this.selectBoxDelegate.render(e)}}}}),sGt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.css"(){}}),S_,o2,aGt,B7=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/actionbar/actionViewItems.js"(){zv(),vWe(),Fn(),Q0(),Lh(),lHn(),wd(),Nt(),Xr(),as(),sGt(),bn(),_w(),S_=class extends St{get action(){return this._action}constructor(e,t,n={}){super(),this.options=n,this._context=e||this,this._action=t,t instanceof cm&&this._register(t.onDidChange(i=>{this.element&&this.handleActionChangeEvent(i)}))}handleActionChangeEvent(e){e.enabled!==void 0&&this.updateEnabled(),e.checked!==void 0&&this.updateChecked(),e.class!==void 0&&this.updateClass(),e.label!==void 0&&(this.updateLabel(),this.updateTooltip()),e.tooltip!==void 0&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new NL)),this._actionRunner}set actionRunner(e){this._actionRunner=e}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(Ap.addTarget(e));const n=this.options&&this.options.draggable;n&&(e.draggable=!0,B0&&this._register(qt(e,kn.DRAG_START,i=>i.dataTransfer?.setData(s9.TEXT,this._action.label)))),this._register(qt(t,Wa.Tap,i=>this.onClick(i,!0))),this._register(qt(t,kn.MOUSE_DOWN,i=>{n||Po.stop(i,!0),this._action.enabled&&i.button===0&&t.classList.add("active")})),xo&&this._register(qt(t,kn.CONTEXT_MENU,i=>{i.button===0&&i.ctrlKey===!0&&this.onClick(i)})),this._register(qt(t,kn.CLICK,i=>{Po.stop(i,!0),this.options&&this.options.isMenu||this.onClick(i)})),this._register(qt(t,kn.DBLCLICK,i=>{Po.stop(i,!0)})),[kn.MOUSE_UP,kn.MOUSE_OUT].forEach(i=>{this._register(qt(t,i,r=>{Po.stop(r),t.classList.remove("active")}))})}onClick(e,t=!1){Po.stop(e,!0);const n=b0(this._context)?this.options?.useEventAsContext?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,n)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}getClass(){return this.action.class}getTooltip(){return this.action.tooltip}updateTooltip(){if(!this.element)return;const e=this.getTooltip()??"";if(this.updateAriaLabel(),this.options.hoverDelegate?.showNativeHover)this.element.title=e;else if(!this.customHover&&e!==""){const t=this.options.hoverDelegate??hg("element");this.customHover=this._store.add(GC().setupManagedHover(t,this.element,e))}else this.customHover&&this.customHover.update(e)}updateAriaLabel(){if(this.element){const e=this.getTooltip()??"";this.element.setAttribute("aria-label",e)}}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),this._context=void 0,super.dispose()}},o2=class extends S_{constructor(e,t,n){super(e,t,n),this.options=n,this.options.icon=n.icon!==void 0?n.icon:!1,this.options.label=n.label!==void 0?n.label:!0,this.cssClass=""}render(e){super.render(e),ns(this.element);const t=document.createElement("a");if(t.classList.add("action-label"),t.setAttribute("role",this.getDefaultAriaRole()),this.label=t,this.element.appendChild(t),this.options.label&&this.options.keybinding){const n=document.createElement("span");n.classList.add("keybinding"),n.textContent=this.options.keybinding,this.element.appendChild(n)}this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}getDefaultAriaRole(){return this._action.id===zd.ID?"presentation":this.options.isMenu?"menuitem":this.options.isTabList?"tab":"button"}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.action.label)}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:!this.options.label&&this.action.label&&this.options.icon&&(e=this.action.label,this.options.keybinding&&(e=R({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e??void 0}updateClass(){this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getClass(),this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):this.label?.classList.remove("codicon")}updateEnabled(){this.action.enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),this.element?.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),this.element?.classList.add("disabled"))}updateAriaLabel(){if(this.label){const e=this.getTooltip()??"";this.label.setAttribute("aria-label",e)}}updateChecked(){this.label&&(this.action.checked!==void 0?(this.label.classList.toggle("checked",this.action.checked),this.options.isTabList?this.label.setAttribute("aria-selected",this.action.checked?"true":"false"):(this.label.setAttribute("aria-checked",this.action.checked?"true":"false"),this.label.setAttribute("role","checkbox"))):(this.label.classList.remove("checked"),this.label.removeAttribute(this.options.isTabList?"aria-selected":"aria-checked"),this.label.setAttribute("role",this.getDefaultAriaRole())))}},aGt=class extends S_{constructor(e,t,n,i,r,o,s){super(e,t),this.selectBox=new oGt(n,i,r,o,s),this.selectBox.setFocusable(!1),this._register(this.selectBox),this.registerListeners()}select(e){this.selectBox.select(e)}registerListeners(){this._register(this.selectBox.onDidSelect(e=>this.runAction(e.selected,e.index)))}runAction(e,t){this.actionRunner.run(this._action,this.getActionContext(e,t))}getActionContext(e,t){return e}setFocusable(e){this.selectBox.setFocusable(e)}focus(){this.selectBox?.focus()}blur(){this.selectBox?.blur()}render(e){this.selectBox.render(e)}}}}),lGt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/dropdown/dropdown.css"(){}}),Vut,cGt,cHn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/dropdown/dropdown.js"(){Fn(),mf(),Q0(),wd(),Un(),lGt(),Vut=class extends NL{constructor(e,t){super(),this._onDidChangeVisibility=this._register(new bt),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=hn(e,In(".monaco-dropdown")),this._label=hn(this._element,In(".dropdown-label"));let n=t.labelRenderer;n||(n=r=>(r.textContent=t.label||"",null));for(const r of[kn.CLICK,kn.MOUSE_DOWN,Wa.Tap])this._register(qt(this.element,r,o=>Po.stop(o,!0)));for(const r of[kn.MOUSE_DOWN,Wa.Tap])this._register(qt(this._label,r,o=>{G3e(o)&&(o.detail>1||o.button!==0)||(this.visible?this.hide():this.show())}));this._register(qt(this._label,kn.KEY_UP,r=>{const o=new Sa(r);(o.equals(3)||o.equals(10))&&(Po.stop(r,!0),this.visible?this.hide():this.show())}));const i=n(this._label);i&&this._register(i),this._register(Ap.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}},cGt=class extends Vut{constructor(e,t){super(e,t),this._options=t,this._actions=[],this.actions=t.actions||[]}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this._options.actionProvider?this._options.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),this.element.classList.add("active"),this._options.contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:(e,t)=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e,t):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this._options.menuClassName||"",onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this._options.menuAsChild?this.element:void 0,skipTelemetry:this._options.skipTelemetry})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}}}),iG,uGt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/dropdown/dropdownActionViewItem.js"(){Fn(),B7(),cHn(),Un(),lGt(),Lh(),_w(),iG=class extends S_{constructor(e,t,n,i=Object.create(null)){super(null,e,i),this.actionItem=null,this._onDidChangeVisibility=this._register(new bt),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this.menuActionsOrProvider=t,this.contextMenuProvider=n,this.options=i,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;const t=r=>{this.element=hn(r,In("a.action-label"));let o=[];return typeof this.options.classNames=="string"?o=this.options.classNames.split(/\s+/g).filter(s=>!!s):this.options.classNames&&(o=this.options.classNames),o.find(s=>s==="icon")||o.push("codicon"),this.element.classList.add(...o),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this._action.label&&this._register(GC().setupManagedHover(this.options.hoverDelegate??hg("mouse"),this.element,this._action.label)),this.element.ariaLabel=this._action.label||"",null},n=Array.isArray(this.menuActionsOrProvider),i={contextMenuProvider:this.contextMenuProvider,labelRenderer:t,menuAsChild:this.options.menuAsChild,actions:n?this.menuActionsOrProvider:void 0,actionProvider:n?void 0:this.menuActionsOrProvider,skipTelemetry:this.options.skipTelemetry};if(this.dropdownMenu=this._register(new cGt(e,i)),this._register(this.dropdownMenu.onDidChangeVisibility(r=>{this.element?.setAttribute("aria-expanded",`${r}`),this._onDidChangeVisibility.fire(r)})),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const r=this;this.dropdownMenu.menuOptions={...this.dropdownMenu.menuOptions,get anchorAlignment(){return r.options.anchorAlignmentProvider()}}}this.updateTooltip(),this.updateEnabled()}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:this.action.label&&(e=this.action.label),e??void 0}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}show(){this.dropdownMenu?.show()}updateEnabled(){const e=!this.action.enabled;this.actionItem?.classList.toggle("disabled",e),this.element?.classList.toggle("disabled",e)}}}}),uHn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/actions/browser/menuEntryActionViewItem.css"(){}});function dHn(e){return e&&typeof e=="object"&&typeof e.original=="string"&&typeof e.value=="string"}function hHn(e){return e?e.condition!==void 0:!1}var dGt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/action/common/action.js"(){}}),q6,R5,Ase,Dse,fHn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/parts/storage/common/storage.js"(){var e;fr(),Un(),Nt(),rWe(),as(),(function(t){t[t.STORAGE_DOES_NOT_EXIST=0]="STORAGE_DOES_NOT_EXIST",t[t.STORAGE_IN_MEMORY=1]="STORAGE_IN_MEMORY"})(q6||(q6={})),(function(t){t[t.None=0]="None",t[t.Initialized=1]="Initialized",t[t.Closed=2]="Closed"})(R5||(R5={})),Ase=(e=class extends St{constructor(n,i=Object.create(null)){super(),this.database=n,this.options=i,this._onDidChangeStorage=this._register(new bL),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=R5.None,this.cache=new Map,this.flushDelayer=this._register(new N3e(e.DEFAULT_FLUSH_DELAY)),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal(n=>this.onDidChangeItemsExternal(n)))}onDidChangeItemsExternal(n){this._onDidChangeStorage.pause();try{n.changed?.forEach((i,r)=>this.acceptExternal(r,i)),n.deleted?.forEach(i=>this.acceptExternal(i,void 0))}finally{this._onDidChangeStorage.resume()}}acceptExternal(n,i){if(this.state===R5.Closed)return;let r=!1;b0(i)?r=this.cache.delete(n):this.cache.get(n)!==i&&(this.cache.set(n,i),r=!0),r&&this._onDidChangeStorage.fire({key:n,external:!0})}get(n,i){const r=this.cache.get(n);return b0(r)?i:r}getBoolean(n,i){const r=this.get(n);return b0(r)?i:r==="true"}getNumber(n,i){const r=this.get(n);return b0(r)?i:parseInt(r,10)}async set(n,i,r=!1){if(this.state===R5.Closed)return;if(b0(i))return this.delete(n,r);const o=jd(i)||Array.isArray(i)?SVn(i):String(i);if(this.cache.get(n)!==o)return this.cache.set(n,o),this.pendingInserts.set(n,o),this.pendingDeletes.delete(n),this._onDidChangeStorage.fire({key:n,external:r}),this.doFlush()}async delete(n,i=!1){if(!(this.state===R5.Closed||!this.cache.delete(n)))return this.pendingDeletes.has(n)||this.pendingDeletes.add(n),this.pendingInserts.delete(n),this._onDidChangeStorage.fire({key:n,external:i}),this.doFlush()}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}async flushPending(){if(!this.hasPending)return;const n={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(n).finally(()=>{if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)this.whenFlushedCallbacks.pop()?.()})}async doFlush(n){return this.options.hint===q6.STORAGE_IN_MEMORY?this.flushPending():this.flushDelayer.trigger(()=>this.flushPending(),n)}},e.DEFAULT_FLUSH_DELAY=100,e),Dse=class{constructor(){this.onDidChangeItemsExternal=On.None,this.items=new Map}async updateItems(t){t.insert?.forEach((n,i)=>this.items.set(i,n)),t.delete?.forEach(n=>this.items.delete(n))}}}});function pHn(e){const t=e.get(rW);if(t)try{return JSON.parse(t)}catch{}return Object.create(null)}var rW,ab,rG,Hut,hGt,CE=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/storage/common/storage.js"(){var e;Un(),Nt(),as(),fHn(),li(),rW="__$__targetStorageMarker",ab=Ao("storageService"),(function(t){t[t.NONE=0]="NONE",t[t.SHUTDOWN=1]="SHUTDOWN"})(rG||(rG={})),Hut=(e=class extends St{constructor(n={flushInterval:e.DEFAULT_FLUSH_INTERVAL}){super(),this.options=n,this._onDidChangeValue=this._register(new bL),this._onDidChangeTarget=this._register(new bL),this._onWillSaveState=this._register(new bt),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}onDidChangeValue(n,i,r){return On.filter(this._onDidChangeValue.event,o=>o.scope===n&&(i===void 0||o.key===i),r)}emitDidChangeValue(n,i){const{key:r,external:o}=i;if(r===rW){switch(n){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0;break}this._onDidChangeTarget.fire({scope:n})}else this._onDidChangeValue.fire({scope:n,key:r,target:this.getKeyTargets(n)[r],external:o})}get(n,i,r){return this.getStorage(i)?.get(n,r)}getBoolean(n,i,r){return this.getStorage(i)?.getBoolean(n,r)}getNumber(n,i,r){return this.getStorage(i)?.getNumber(n,r)}store(n,i,r,o,s=!1){if(b0(i)){this.remove(n,r,s);return}this.withPausedEmitters(()=>{this.updateKeyTarget(n,r,o),this.getStorage(r)?.set(n,i,s)})}remove(n,i,r=!1){this.withPausedEmitters(()=>{this.updateKeyTarget(n,i,void 0),this.getStorage(i)?.delete(n,r)})}withPausedEmitters(n){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{n()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(n,i,r,o=!1){const s=this.getKeyTargets(i);typeof r=="number"?s[n]!==r&&(s[n]=r,this.getStorage(i)?.set(rW,JSON.stringify(s),o)):typeof s[n]=="number"&&(delete s[n],this.getStorage(i)?.set(rW,JSON.stringify(s),o))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(n){switch(n){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(n){const i=this.getStorage(n);return i?pHn(i):Object.create(null)}},e.DEFAULT_FLUSH_INTERVAL=60*1e3,e),hGt=class extends Hut{constructor(){super(),this.applicationStorage=this._register(new Ase(new Dse,{hint:q6.STORAGE_IN_MEMORY})),this.profileStorage=this._register(new Ase(new Dse,{hint:q6.STORAGE_IN_MEMORY})),this.workspaceStorage=this._register(new Ase(new Dse,{hint:q6.STORAGE_IN_MEMORY})),this._register(this.workspaceStorage.onDidChangeStorage(t=>this.emitDidChangeValue(1,t))),this._register(this.profileStorage.onDidChangeStorage(t=>this.emitDidChangeValue(0,t))),this._register(this.applicationStorage.onDidChangeStorage(t=>this.emitDidChangeValue(-1,t)))}getStorage(t){switch(t){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}}});function gHn(e,t){const n={...t};for(const i in e){const r=e[i];n[i]=r!==void 0?ni(r):void 0}return n}function PO(e){return gHn(e,CI)}var fGt,pGt,gGt,oG,sG,mGt,_We,CI,vGt,yGt,wT=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js"(){ll(),ql(),fGt={keybindingLabelBackground:ni(vHt),keybindingLabelForeground:ni(yHt),keybindingLabelBorder:ni(bHt),keybindingLabelBottomBorder:ni(_Ht),keybindingLabelShadow:ni(aR)},pGt={buttonForeground:ni(o5e),buttonSeparator:ni(iHt),buttonBackground:ni(CB),buttonHoverBackground:ni(rHt),buttonSecondaryForeground:ni(sHt),buttonSecondaryBackground:ni(Qoe),buttonSecondaryHoverBackground:ni(aHt),buttonBorder:ni(oHt)},gGt={progressBarBackground:ni(y3t)},oG={inputActiveOptionBorder:ni(zq),inputActiveOptionForeground:ni(Vq),inputActiveOptionBackground:ni(Q8)},ni(SB),ni(lHt),ni(cHt),ni(uHt),ni(dHt),ni(hHt),ni(fHt),ni(pHt),ni(mHt),ni(gHt),ni(cv),ni(Bq),ni(aR),ni(zo),ni(B3t),ni(j3t),ni(z3t),ni(m3t),sG={inputBackground:ni(Lue),inputForeground:ni(sHe),inputBorder:ni(aHe),inputValidationInfoBorder:ni(Y3t),inputValidationInfoBackground:ni(G3t),inputValidationInfoForeground:ni(K3t),inputValidationWarningBorder:ni(X3t),inputValidationWarningBackground:ni(Q3t),inputValidationWarningForeground:ni(Z3t),inputValidationErrorBorder:ni(tHt),inputValidationErrorBackground:ni(J3t),inputValidationErrorForeground:ni(eHt)},mGt={listFilterWidgetBackground:ni(MHt),listFilterWidgetOutline:ni(OHt),listFilterWidgetNoMatchesOutline:ni(RHt),listFilterWidgetShadow:ni(FHt),inputBoxStyles:sG,toggleStyles:oG},_We={badgeBackground:ni(RU),badgeForeground:ni(v3t),badgeBorder:ni(zo)},ni(R3t),ni(O3t),ni(n5e),ni(n5e),ni(F3t),CI={listBackground:void 0,listInactiveFocusForeground:void 0,listFocusBackground:ni(CHt),listFocusForeground:ni(SHt),listFocusOutline:ni(xHt),listActiveSelectionBackground:ni(rL),listActiveSelectionForeground:ni(Z8),listActiveSelectionIconForeground:ni(lHe),listFocusAndSelectionOutline:ni(EHt),listFocusAndSelectionBackground:ni(rL),listFocusAndSelectionForeground:ni(Z8),listInactiveSelectionBackground:ni(AHt),listInactiveSelectionIconForeground:ni(THt),listInactiveSelectionForeground:ni(DHt),listInactiveFocusBackground:ni(kHt),listInactiveFocusOutline:ni(IHt),listHoverBackground:ni(s5e),listHoverForeground:ni(a5e),listDropOverBackground:ni(LHt),listDropBetweenBackground:ni(NHt),listSelectionOutline:ni(Qa),listHoverOutline:ni(Qa),treeIndentGuidesStroke:ni(l5e),treeInactiveIndentGuidesStroke:ni(BHt),treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:ni(Due),tableColumnsBorder:ni(jHt),tableOddRowsBackgroundColor:ni(zHt)},vGt={selectBackground:ni(BU),selectListBackground:ni(nHt),selectForeground:ni(Nue),decoratorRightForeground:ni(uHe),selectBorder:ni(Pue),focusBorder:ni(G1),listFocusBackground:ni(J8),listInactiveSelectionIconForeground:ni(Hpe),listFocusForeground:ni(X8),listFocusOutline:e7n(Qa,rn.transparent.toString()),listHoverBackground:ni(s5e),listHoverForeground:ni(a5e),listHoverOutline:ni(Qa),selectListBorder:ni(Tue),listBackground:void 0,listActiveSelectionBackground:void 0,listActiveSelectionForeground:void 0,listActiveSelectionIconForeground:void 0,listFocusAndSelectionBackground:void 0,listDropOverBackground:void 0,listDropBetweenBackground:void 0,listInactiveSelectionBackground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusBackground:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listFocusAndSelectionForeground:void 0,listFocusAndSelectionOutline:void 0,listInactiveFocusForeground:void 0,tableColumnsBorder:void 0,tableOddRowsBackgroundColor:void 0,treeIndentGuidesStroke:void 0,treeInactiveIndentGuidesStroke:void 0,treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0},yGt={shadowColor:ni(aR),borderColor:ni(VHt),foregroundColor:ni(HHt),backgroundColor:ni(WHt),selectionForegroundColor:ni(UHt),selectionBackgroundColor:ni($Ht),selectionBorderColor:ni(qHt),separatorColor:ni(GHt),scrollbarShadow:ni(Due),scrollbarSliderBackground:ni(eHe),scrollbarSliderHoverBackground:ni(tHe),scrollbarSliderActiveBackground:ni(nHe)}}});function mHn(e,t,n,i){let r,o,s;if(Array.isArray(e))s=e,r=t,o=n;else{const c=t;s=e.getActions(c),r=n,o=i}const a=KK.getInstance(),l=a.keyStatus.altKey||(Ch||Wf)&&a.keyStatus.shiftKey;bGt(s,r,l,o?c=>c===o:c=>c==="navigation")}function yge(e,t,n,i,r,o){let s,a,l,c,u;if(Array.isArray(e))u=e,s=t,a=n,l=i,c=r;else{const h=t;u=e.getActions(h),s=n,a=i,l=r,c=o}bGt(u,s,!1,typeof a=="string"?h=>h===a:a,l,c)}function bGt(e,t,n,i=s=>s==="navigation",r=()=>!1,o=!1){let s,a;Array.isArray(t)?(s=t,a=t):(s=t.primary,a=t.secondary);const l=new Set;for(const[c,u]of e){let d;i(c)?(d=s,d.length>0&&o&&d.push(new zd)):(d=a,d.length>0&&d.push(new zd));for(let h of u){n&&(h=h instanceof um&&h.alt?h.alt:h);const f=d.push(h);h instanceof ZR&&l.add({group:c,action:h,index:f-1})}}for(const{group:c,action:u,index:d}of l){const h=i(c)?s:a,f=u.actions;r(u,c,h.length)&&h.splice(d,1,...f)}}function _Gt(e,t,n){return t instanceof um?e.createInstance(UA,t,n):t instanceof cR?t.item.isSelection?e.createInstance(Ise,t):t.item.rememberDefaultAction?e.createInstance(kse,t,{...n,persistLastActionId:!0}):e.createInstance(Tse,t,n):void 0}var rV,Wp,UA,wGt,Tse,kse,Ise,jN=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/actions/browser/menuEntryActionViewItem.js"(){Fn(),mf(),B7(),uGt(),wd(),lWe(),Nt(),Xr(),uHn(),bn(),ha(),dGt(),er(),xg(),li(),tl(),yf(),CE(),Ys(),Ra(),VC(),as(),ll(),wT(),Cm(),rV=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},Wp=function(e,t){return function(n,i){t(n,i,e)}},UA=class extends o2{constructor(t,n,i,r,o,s,a,l){super(void 0,t,{icon:!!(t.class||t.item.icon),label:!t.class&&!t.item.icon,draggable:n?.draggable,keybinding:n?.keybinding,hoverDelegate:n?.hoverDelegate}),this._options=n,this._keybindingService=i,this._notificationService=r,this._contextKeyService=o,this._themeService=s,this._contextMenuService=a,this._accessibilityService=l,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new Yu),this._altKey=KK.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}async onClick(t){t.preventDefault(),t.stopPropagation();try{await this.actionRunner.run(this._commandAction,this._context)}catch(n){this._notificationService.error(n)}}render(t){if(super.render(t),t.classList.add("menu-entry"),this.options.icon&&this._updateItemClass(this._menuItemAction.item),this._menuItemAction.alt){let n=!1;const i=()=>{const r=!!this._menuItemAction.alt?.enabled&&(!this._accessibilityService.isMotionReduced()||n)&&(this._altKey.keyStatus.altKey||this._altKey.keyStatus.shiftKey&&n);r!==this._wantsAltCommand&&(this._wantsAltCommand=r,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._register(this._altKey.event(i)),this._register(qt(t,"mouseleave",r=>{n=!1,i()})),this._register(qt(t,"mouseenter",r=>{n=!0,i()})),i()}}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){const t=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),n=t&&t.getLabel(),i=this._commandAction.tooltip||this._commandAction.label;let r=n?R("titleAndKb","{0} ({1})",i,n):i;if(!this._wantsAltCommand&&this._menuItemAction.alt?.enabled){const o=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,s=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),a=s&&s.getLabel(),l=a?R("titleAndKb","{0} ({1})",o,a):o;r=R("titleAndKbAndAlt",`{0}
[{1}] {2}`,r,gge.modifierLabels[om].altKey,l)}return r}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(t){this._itemClassDispose.value=void 0;const{element:n,label:i}=this;if(!n||!i)return;const r=this._commandAction.checked&&hHn(t.toggled)&&t.toggled.icon?t.toggled.icon:t.icon;if(r)if(lr.isThemeIcon(r)){const o=lr.asClassNameArray(r);i.classList.add(...o),this._itemClassDispose.value=zi(()=>{i.classList.remove(...o)})}else i.style.backgroundImage=e9(this._themeService.getColorTheme().type)?lD(r.dark):lD(r.light),i.classList.add("icon"),this._itemClassDispose.value=z_(zi(()=>{i.style.backgroundImage="",i.classList.remove("icon")}),this._themeService.onDidColorThemeChange(()=>{this.updateClass()}))}},UA=rV([Wp(2,Cs),Wp(3,Cc),Wp(4,ur),Wp(5,Ru),Wp(6,dm),Wp(7,pm)],UA),wGt=class CGt extends UA{render(t){this.options.label=!0,this.options.icon=!1,super.render(t),t.classList.add("text-only"),t.classList.toggle("use-comma",this._options?.useComma??!1)}updateLabel(){const t=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!t)return super.updateLabel();if(this.label){const n=CGt._symbolPrintEnter(t);this._options?.conversational?this.label.textContent=R({key:"content2",comment:['A label with keybindg like "ESC to dismiss"']},"{1} to {0}",this._action.label,n):this.label.textContent=R({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",this._action.label,n)}}static _symbolPrintEnter(t){return t.getLabel()?.replace(/\benter\b/gi,"⏎").replace(/\bEscape\b/gi,"Esc")}},Tse=class extends iG{constructor(t,n,i,r,o){const s={...n,menuAsChild:n?.menuAsChild??!1,classNames:n?.classNames??(lr.isThemeIcon(t.item.icon)?lr.asClassName(t.item.icon):void 0),keybindingProvider:n?.keybindingProvider??(a=>i.lookupKeybinding(a.id))};super(t,{getActions:()=>t.actions},r,s),this._keybindingService=i,this._contextMenuService=r,this._themeService=o}render(t){super.render(t),ns(this.element),t.classList.add("menu-entry");const n=this._action,{icon:i}=n.item;if(i&&!lr.isThemeIcon(i)){this.element.classList.add("icon");const r=()=>{this.element&&(this.element.style.backgroundImage=e9(this._themeService.getColorTheme().type)?lD(i.dark):lD(i.light))};r(),this._register(this._themeService.onDidColorThemeChange(()=>{r()}))}}},Tse=rV([Wp(2,Cs),Wp(3,dm),Wp(4,Ru)],Tse),kse=class extends S_{constructor(t,n,i,r,o,s,a,l){super(null,t),this._keybindingService=i,this._notificationService=r,this._contextMenuService=o,this._menuService=s,this._instaService=a,this._storageService=l,this._container=null,this._options=n,this._storageKey=`${t.item.submenu.id}_lastActionId`;let c;const u=n?.persistLastActionId?l.get(this._storageKey,1):void 0;u&&(c=t.actions.find(h=>u===h.id)),c||(c=t.actions[0]),this._defaultAction=this._instaService.createInstance(UA,c,{keybinding:this._getDefaultActionKeybindingLabel(c)});const d={keybindingProvider:h=>this._keybindingService.lookupKeybinding(h.id),...n,menuAsChild:n?.menuAsChild??!0,classNames:n?.classNames??["codicon","codicon-chevron-down"],actionRunner:n?.actionRunner??new NL};this._dropdown=new iG(t,t.actions,this._contextMenuService,d),this._register(this._dropdown.actionRunner.onDidRun(h=>{h.action instanceof um&&this.update(h.action)}))}update(t){this._options?.persistLastActionId&&this._storageService.store(this._storageKey,t.id,1,1),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(UA,t,{keybinding:this._getDefaultActionKeybindingLabel(t)}),this._defaultAction.actionRunner=new class extends NL{async runAction(n,i){await n.run(void 0)}},this._container&&this._defaultAction.render(K3e(this._container,In(".action-container")))}_getDefaultActionKeybindingLabel(t){let n;if(this._options?.renderKeybindingWithDefaultActionLabel){const i=this._keybindingService.lookupKeybinding(t.id);i&&(n=`(${i.getLabel()})`)}return n}setActionContext(t){super.setActionContext(t),this._defaultAction.setActionContext(t),this._dropdown.setActionContext(t)}render(t){this._container=t,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const n=In(".action-container");this._defaultAction.render(hn(this._container,n)),this._register(qt(n,kn.KEY_DOWN,r=>{const o=new Sa(r);o.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),o.stopPropagation())}));const i=In(".dropdown-action-container");this._dropdown.render(hn(this._container,i)),this._register(qt(i,kn.KEY_DOWN,r=>{const o=new Sa(r);o.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),this._defaultAction.element?.focus(),o.stopPropagation())}))}focus(t){t?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(t){t?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}},kse=rV([Wp(2,Cs),Wp(3,Cc),Wp(4,dm),Wp(5,Pv),Wp(6,ji),Wp(7,ab)],kse),Ise=class extends aGt{constructor(t,n){super(null,t,t.actions.map(i=>({text:i.id===zd.ID?"─────────":i.label,isDisabled:!i.enabled})),0,n,vGt,{ariaLabel:t.tooltip,optionsAsChildren:!0}),this.select(Math.max(0,t.actions.findIndex(i=>i.checked)))}render(t){super.render(t),t.style.borderColor=ni(Pue)}runAction(t,n){const i=this.action.actions[n];i&&this.actionRunner.run(i)}},Ise=rV([Wp(1,Jx)],Ise)}}),Dv,ww=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.js"(){Fn(),mf(),B7(),Lh(),wd(),Un(),Nt(),as(),sGt(),Dv=class extends St{constructor(e,t={}){super(),this._actionRunnerDisposables=this._register(new Jt),this.viewItemDisposables=this._register(new hpe),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new bt),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new bt({onWillAddFirstListener:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new bt),this.onDidRun=this._onDidRun.event,this._onWillRun=this._register(new bt),this.onWillRun=this._onWillRun.event,this.options=t,this._context=t.context??null,this._orientation=this.options.orientation??0,this._triggerKeys={keyDown:this.options.triggerKeys?.keyDown??!1,keys:this.options.triggerKeys?.keys??[3,10]},this._hoverDelegate=t.hoverDelegate??this._register(a9()),this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new NL,this._actionRunnerDisposables.add(this._actionRunner)),this._actionRunnerDisposables.add(this._actionRunner.onDidRun(r=>this._onDidRun.fire(r))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun(r=>this._onWillRun.fire(r))),this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar";let n,i;switch(this._orientation){case 0:n=[15],i=[17];break;case 1:n=[16],i=[18],this.domNode.className+=" vertical";break}this._register(qt(this.domNode,kn.KEY_DOWN,r=>{const o=new Sa(r);let s=!0;const a=typeof this.focusedItem=="number"?this.viewItems[this.focusedItem]:void 0;n&&(o.equals(n[0])||o.equals(n[1]))?s=this.focusPrevious():i&&(o.equals(i[0])||o.equals(i[1]))?s=this.focusNext():o.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():o.equals(14)?s=this.focusFirst():o.equals(13)?s=this.focusLast():o.equals(2)&&a instanceof S_&&a.trapsArrowNavigation?s=this.focusNext(void 0,!0):this.isTriggerKeyEvent(o)?this._triggerKeys.keyDown?this.doTrigger(o):this.triggerKeyDown=!0:s=!1,s&&(o.preventDefault(),o.stopPropagation())})),this._register(qt(this.domNode,kn.KEY_UP,r=>{const o=new Sa(r);this.isTriggerKeyEvent(o)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(o)),o.preventDefault(),o.stopPropagation()):(o.equals(2)||o.equals(1026)||o.equals(16)||o.equals(18)||o.equals(15)||o.equals(17))&&this.updateFocusedItem()})),this.focusTracker=this._register(yC(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{(cf()===this.domNode||!hd(cf(),this.domNode))&&(this._onDidBlur.fire(),this.previouslyFocusedItem=this.focusedItem,this.focusedItem=void 0,this.triggerKeyDown=!1)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.options.highlightToggledItems&&this.actionsList.classList.add("highlight-toggled"),this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=1?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){const t=this.viewItems.find(n=>n instanceof S_&&n.isEnabled());t instanceof S_&&t.setFocusable(!0)}else this.viewItems.forEach(t=>{t instanceof S_&&t.setFocusable(!1)})}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach(n=>{t=t||e.equals(n)}),t}updateFocusedItem(){for(let e=0;e<this.actionsList.children.length;e++){const t=this.actionsList.children[e];if(hd(cf(),t)){this.focusedItem=e,this.viewItems[this.focusedItem]?.showHover?.();break}}}get context(){return this._context}set context(e){this._context=e,this.viewItems.forEach(t=>t.setActionContext(e))}get actionRunner(){return this._actionRunner}set actionRunner(e){this._actionRunner=e,this._actionRunnerDisposables.clear(),this._actionRunnerDisposables.add(this._actionRunner.onDidRun(t=>this._onDidRun.fire(t))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun(t=>this._onWillRun.fire(t))),this.viewItems.forEach(t=>t.actionRunner=e)}getContainer(){return this.domNode}getAction(e){if(typeof e=="number")return this.viewItems[e]?.action;if(yd(e)){for(;e.parentElement!==this.actionsList;){if(!e.parentElement)return;e=e.parentElement}for(let t=0;t<this.actionsList.childNodes.length;t++)if(this.actionsList.childNodes[t]===e)return this.viewItems[t].action}}push(e,t={}){const n=Array.isArray(e)?e:[e];let i=wL(t.index)?t.index:null;n.forEach(r=>{const o=document.createElement("li");o.className="action-item",o.setAttribute("role","presentation");let s;const a={hoverDelegate:this._hoverDelegate,...t,isTabList:this.options.ariaRole==="tablist"};this.options.actionViewItemProvider&&(s=this.options.actionViewItemProvider(r,a)),s||(s=new o2(this.context,r,a)),this.options.allowContextMenu||this.viewItemDisposables.set(s,qt(o,kn.CONTEXT_MENU,l=>{Po.stop(l,!0)})),s.actionRunner=this._actionRunner,s.setActionContext(this.context),s.render(o),this.focusable&&s instanceof S_&&this.viewItems.length===0&&s.setFocusable(!0),i===null||i<0||i>=this.actionsList.children.length?(this.actionsList.appendChild(o),this.viewItems.push(s)):(this.actionsList.insertBefore(o,this.actionsList.children[i]),this.viewItems.splice(i,0,s),i++)}),typeof this.focusedItem=="number"&&this.focus(this.focusedItem),this.refreshRole()}clear(){this.isEmpty()||(this.viewItems=xa(this.viewItems),this.viewItemDisposables.clearAndDisposeAll(),Sh(this.actionsList),this.refreshRole())}length(){return this.viewItems.length}isEmpty(){return this.viewItems.length===0}focus(e){let t=!1,n;if(e===void 0?t=!0:typeof e=="number"?n=e:typeof e=="boolean"&&(t=e),t&&typeof this.focusedItem>"u"){const i=this.viewItems.findIndex(r=>r.isEnabled());this.focusedItem=i===-1?void 0:i,this.updateFocus(void 0,void 0,!0)}else n!==void 0&&(this.focusedItem=n),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e,t){if(typeof this.focusedItem>"u")this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const n=this.focusedItem;let i;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=n,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,i=this.viewItems[this.focusedItem]}while(this.focusedItem!==n&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===zd.ID));return this.updateFocus(void 0,void 0,t),!0}focusPrevious(e){if(typeof this.focusedItem>"u")this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let n;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=t,!1;this.focusedItem=this.viewItems.length-1}n=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!n.isEnabled()||n.action.id===zd.ID));return this.updateFocus(!0),!0}updateFocus(e,t,n=!1){typeof this.focusedItem>"u"&&this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem!==void 0&&this.previouslyFocusedItem!==this.focusedItem&&this.viewItems[this.previouslyFocusedItem]?.blur();const i=this.focusedItem!==void 0?this.viewItems[this.focusedItem]:void 0;if(i){let r=!0;_q(i.focus)||(r=!1),this.options.focusOnlyEnabledItems&&_q(i.isEnabled)&&!i.isEnabled()&&(r=!1),i.action.id===zd.ID&&(r=!1),r?(n||this.previouslyFocusedItem!==this.focusedItem)&&(i.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0),r&&i.showHover?.()}}doTrigger(e){if(typeof this.focusedItem>"u")return;const t=this.viewItems[this.focusedItem];if(t instanceof S_){const n=t._context===null||t._context===void 0?e:t._context;this.run(t._action,n)}}async run(e,t){await this._actionRunner.run(e,t)}dispose(){this._context=void 0,this.viewItems=xa(this.viewItems),this.getContainer().remove(),super.dispose()}}}});function vHn(e){const t=Lse,n=t.exec(e);if(!n)return e;const i=!n[1];return e.replace(t,i?"$2$3":"").trim()}function Wut(e){const t=R7t()[e.id];return`.codicon-${e.id}:before { content: '\\${t.toString(16)}'; }`}function yHn(e,t){let n=`
.monaco-menu {
	font-size: 13px;
	border-radius: 5px;
	min-width: 160px;
}

${Wut(An.menuSelection)}
${Wut(An.menuSubmenu)}

.monaco-menu .monaco-action-bar {
	text-align: right;
	overflow: hidden;
	white-space: nowrap;
}

.monaco-menu .monaco-action-bar .actions-container {
	display: flex;
	margin: 0 auto;
	padding: 0;
	width: 100%;
	justify-content: flex-end;
}

.monaco-menu .monaco-action-bar.vertical .actions-container {
	display: inline-block;
}

.monaco-menu .monaco-action-bar.reverse .actions-container {
	flex-direction: row-reverse;
}

.monaco-menu .monaco-action-bar .action-item {
	cursor: pointer;
	display: inline-block;
	transition: transform 50ms ease;
	position: relative;  /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */
}

.monaco-menu .monaco-action-bar .action-item.disabled {
	cursor: default;
}

.monaco-menu .monaco-action-bar .action-item .icon,
.monaco-menu .monaco-action-bar .action-item .codicon {
	display: inline-block;
}

.monaco-menu .monaco-action-bar .action-item .codicon {
	display: flex;
	align-items: center;
}

.monaco-menu .monaco-action-bar .action-label {
	font-size: 11px;
	margin-right: 4px;
}

.monaco-menu .monaco-action-bar .action-item.disabled .action-label,
.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {
	color: var(--vscode-disabledForeground);
}

/* Vertical actions */

.monaco-menu .monaco-action-bar.vertical {
	text-align: left;
}

.monaco-menu .monaco-action-bar.vertical .action-item {
	display: block;
}

.monaco-menu .monaco-action-bar.vertical .action-label.separator {
	display: block;
	border-bottom: 1px solid var(--vscode-menu-separatorBackground);
	padding-top: 1px;
	padding: 30px;
}

.monaco-menu .secondary-actions .monaco-action-bar .action-label {
	margin-left: 6px;
}

/* Action Items */
.monaco-menu .monaco-action-bar .action-item.select-container {
	overflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */
	flex: 1;
	max-width: 170px;
	min-width: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 10px;
}

.monaco-menu .monaco-action-bar.vertical {
	margin-left: 0;
	overflow: visible;
}

.monaco-menu .monaco-action-bar.vertical .actions-container {
	display: block;
}

.monaco-menu .monaco-action-bar.vertical .action-item {
	padding: 0;
	transform: none;
	display: flex;
}

.monaco-menu .monaco-action-bar.vertical .action-item.active {
	transform: none;
}

.monaco-menu .monaco-action-bar.vertical .action-menu-item {
	flex: 1 1 auto;
	display: flex;
	height: 2em;
	align-items: center;
	position: relative;
	margin: 0 4px;
	border-radius: 4px;
}

.monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding,
.monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding {
	opacity: unset;
}

.monaco-menu .monaco-action-bar.vertical .action-label {
	flex: 1 1 auto;
	text-decoration: none;
	padding: 0 1em;
	background: none;
	font-size: 12px;
	line-height: 1;
}

.monaco-menu .monaco-action-bar.vertical .keybinding,
.monaco-menu .monaco-action-bar.vertical .submenu-indicator {
	display: inline-block;
	flex: 2 1 auto;
	padding: 0 1em;
	text-align: right;
	font-size: 12px;
	line-height: 1;
}

.monaco-menu .monaco-action-bar.vertical .submenu-indicator {
	height: 100%;
}

.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {
	font-size: 16px !important;
	display: flex;
	align-items: center;
}

.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {
	margin-left: auto;
	margin-right: -20px;
}

.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,
.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {
	opacity: 0.4;
}

.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {
	display: inline-block;
	box-sizing: border-box;
	margin: 0;
}

.monaco-menu .monaco-action-bar.vertical .action-item {
	position: static;
	overflow: visible;
}

.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {
	position: absolute;
}

.monaco-menu .monaco-action-bar.vertical .action-label.separator {
	width: 100%;
	height: 0px !important;
	opacity: 1;
}

.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {
	padding: 0.7em 1em 0.1em 1em;
	font-weight: bold;
	opacity: 1;
}

.monaco-menu .monaco-action-bar.vertical .action-label:hover {
	color: inherit;
}

.monaco-menu .monaco-action-bar.vertical .menu-item-check {
	position: absolute;
	visibility: hidden;
	width: 1em;
	height: 100%;
}

.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {
	visibility: visible;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Context Menu */

.context-view.monaco-menu-container {
	outline: 0;
	border: none;
	animation: fadeIn 0.083s linear;
	-webkit-app-region: no-drag;
}

.context-view.monaco-menu-container :focus,
.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,
.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {
	outline: 0;
}

.hc-black .context-view.monaco-menu-container,
.hc-light .context-view.monaco-menu-container,
:host-context(.hc-black) .context-view.monaco-menu-container,
:host-context(.hc-light) .context-view.monaco-menu-container {
	box-shadow: none;
}

.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused,
.hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused,
:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused,
:host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused {
	background: none;
}

/* Vertical Action Bar Styles */

.monaco-menu .monaco-action-bar.vertical {
	padding: 4px 0;
}

.monaco-menu .monaco-action-bar.vertical .action-menu-item {
	height: 2em;
}

.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),
.monaco-menu .monaco-action-bar.vertical .keybinding {
	font-size: inherit;
	padding: 0 2em;
	max-height: 100%;
}

.monaco-menu .monaco-action-bar.vertical .menu-item-check {
	font-size: inherit;
	width: 2em;
}

.monaco-menu .monaco-action-bar.vertical .action-label.separator {
	font-size: inherit;
	margin: 5px 0 !important;
	padding: 0;
	border-radius: 0;
}

.linux .monaco-menu .monaco-action-bar.vertical .action-label.separator,
:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {
	margin-left: 0;
	margin-right: 0;
}

.monaco-menu .monaco-action-bar.vertical .submenu-indicator {
	font-size: 60%;
	padding: 0 1.8em;
}

.linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator,
:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {
	height: 100%;
	mask-size: 10px 10px;
	-webkit-mask-size: 10px 10px;
}

.monaco-menu .action-item {
	cursor: default;
}`;if(t){n+=`
			/* Arrows */
			.monaco-scrollable-element > .scrollbar > .scra {
				cursor: pointer;
				font-size: 11px !important;
			}

			.monaco-scrollable-element > .visible {
				opacity: 1;

				/* Background rule added for IE9 - to allow clicks on dom node */
				background:rgba(0,0,0,0);

				transition: opacity 100ms linear;
			}
			.monaco-scrollable-element > .invisible {
				opacity: 0;
				pointer-events: none;
			}
			.monaco-scrollable-element > .invisible.fade {
				transition: opacity 800ms linear;
			}

			/* Scrollable Content Inset Shadow */
			.monaco-scrollable-element > .shadow {
				position: absolute;
				display: none;
			}
			.monaco-scrollable-element > .shadow.top {
				display: block;
				top: 0;
				left: 3px;
				height: 3px;
				width: 100%;
			}
			.monaco-scrollable-element > .shadow.left {
				display: block;
				top: 3px;
				left: 0;
				height: 100%;
				width: 3px;
			}
			.monaco-scrollable-element > .shadow.top-left-corner {
				display: block;
				top: 0;
				left: 0;
				height: 3px;
				width: 3px;
			}
		`;const i=e.scrollbarShadow;i&&(n+=`
				.monaco-scrollable-element > .shadow.top {
					box-shadow: ${i} 0 6px 6px -6px inset;
				}

				.monaco-scrollable-element > .shadow.left {
					box-shadow: ${i} 6px 0 6px -6px inset;
				}

				.monaco-scrollable-element > .shadow.top.left {
					box-shadow: ${i} 6px 6px 6px -6px inset;
				}
			`);const r=e.scrollbarSliderBackground;r&&(n+=`
				.monaco-scrollable-element > .scrollbar > .slider {
					background: ${r};
				}
			`);const o=e.scrollbarSliderHoverBackground;o&&(n+=`
				.monaco-scrollable-element > .scrollbar > .slider:hover {
					background: ${o};
				}
			`);const s=e.scrollbarSliderActiveBackground;s&&(n+=`
				.monaco-scrollable-element > .scrollbar > .slider.active {
					background: ${s};
				}
			`)}return n}var Lse,zJ,VJ,sCe,Q4e,aCe,lCe,cCe,bHn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/menu/menu.js"(){zv(),Q0(),Fn(),mf(),Cb(),ww(),B7(),uqt(),vw(),wd(),fr(),ia(),fpe(),Ra(),P7(),Nt(),Xr(),Ki(),Lse=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,zJ=/(&amp;)?(&amp;)([^\s&])/g,(function(e){e[e.Right=0]="Right",e[e.Left=1]="Left"})(VJ||(VJ={})),(function(e){e[e.Above=0]="Above",e[e.Below=1]="Below"})(sCe||(sCe={})),Q4e=class Nse extends Dv{constructor(t,n,i,r){t.classList.add("monaco-menu-container"),t.setAttribute("role","presentation");const o=document.createElement("div");o.classList.add("monaco-menu"),o.setAttribute("role","presentation"),super(o,{orientation:1,actionViewItemProvider:c=>this.doGetActionViewItem(c,i,s),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...xo||Wf?[10]:[]],keyDown:!0}}),this.menuStyles=r,this.menuElement=o,this.actionsList.tabIndex=0,this.initializeOrUpdateStyleSheet(t,r),this._register(Ap.addTarget(o)),this._register(qt(o,kn.KEY_DOWN,c=>{new Sa(c).equals(2)&&c.preventDefault()})),i.enableMnemonics&&this._register(qt(o,kn.KEY_DOWN,c=>{const u=c.key.toLocaleLowerCase();if(this.mnemonics.has(u)){Po.stop(c,!0);const d=this.mnemonics.get(u);if(d.length===1&&(d[0]instanceof lCe&&d[0].container&&this.focusItemByElement(d[0].container),d[0].onClick(c)),d.length>1){const h=d.shift();h&&h.container&&(this.focusItemByElement(h.container),d.push(h)),this.mnemonics.set(u,d)}}})),Wf&&this._register(qt(o,kn.KEY_DOWN,c=>{const u=new Sa(c);u.equals(14)||u.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),Po.stop(c,!0)):(u.equals(13)||u.equals(12))&&(this.focusedItem=0,this.focusPrevious(),Po.stop(c,!0))})),this._register(qt(this.domNode,kn.MOUSE_OUT,c=>{const u=c.relatedTarget;hd(u,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),c.stopPropagation())})),this._register(qt(this.actionsList,kn.MOUSE_OVER,c=>{let u=c.target;if(!(!u||!hd(u,this.actionsList)||u===this.actionsList)){for(;u.parentElement!==this.actionsList&&u.parentElement!==null;)u=u.parentElement;if(u.classList.contains("action-item")){const d=this.focusedItem;this.setFocusedItem(u),d!==this.focusedItem&&this.updateFocus()}}})),this._register(Ap.addTarget(this.actionsList)),this._register(qt(this.actionsList,Wa.Tap,c=>{let u=c.initialTarget;if(!(!u||!hd(u,this.actionsList)||u===this.actionsList)){for(;u.parentElement!==this.actionsList&&u.parentElement!==null;)u=u.parentElement;if(u.classList.contains("action-item")){const d=this.focusedItem;this.setFocusedItem(u),d!==this.focusedItem&&this.updateFocus()}}}));const s={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new N7(o,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const a=this.scrollableElement.getDomNode();a.style.position="",this.styleScrollElement(a,r),this._register(qt(o,Wa.Change,c=>{Po.stop(c,!0);const u=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:u-c.translationY})})),this._register(qt(a,kn.MOUSE_UP,c=>{c.preventDefault()}));const l=Yi(t);o.style.maxHeight=`${Math.max(10,l.innerHeight-t.getBoundingClientRect().top-35)}px`,n=n.filter((c,u)=>i.submenuIds?.has(c.id)?(console.warn(`Found submenu cycle: ${c.id}`),!1):!(c instanceof zd&&(u===n.length-1||u===0||n[u-1]instanceof zd))),this.push(n,{icon:!0,label:!0,isMenu:!0}),t.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(c=>!(c instanceof cCe)).forEach((c,u,d)=>{c.updatePositionInSet(u+1,d.length)})}initializeOrUpdateStyleSheet(t,n){this.styleSheet||(Cue(t)?this.styleSheet=V0(t):(Nse.globalStyleSheet||(Nse.globalStyleSheet=V0()),this.styleSheet=Nse.globalStyleSheet)),this.styleSheet.textContent=yHn(n,Cue(t))}styleScrollElement(t,n){const i=n.foregroundColor??"",r=n.backgroundColor??"",o=n.borderColor?`1px solid ${n.borderColor}`:"",s="5px",a=n.shadowColor?`0 2px 8px ${n.shadowColor}`:"";t.style.outline=o,t.style.borderRadius=s,t.style.color=i,t.style.backgroundColor=r,t.style.boxShadow=a}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(t){const n=this.focusedItem;this.setFocusedItem(t),n!==this.focusedItem&&this.updateFocus()}setFocusedItem(t){for(let n=0;n<this.actionsList.children.length;n++){const i=this.actionsList.children[n];if(t===i){this.focusedItem=n;break}}}updateFocus(t){super.updateFocus(t,!0,!0),typeof this.focusedItem<"u"&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})}doGetActionViewItem(t,n,i){if(t instanceof zd)return new cCe(n.context,t,{icon:!0},this.menuStyles);if(t instanceof ZR){const r=new lCe(t,t.actions,i,{...n,submenuIds:new Set([...n.submenuIds||[],t.id])},this.menuStyles);if(n.enableMnemonics){const o=r.getMnemonic();if(o&&r.isEnabled()){let s=[];this.mnemonics.has(o)&&(s=this.mnemonics.get(o)),s.push(r),this.mnemonics.set(o,s)}}return r}else{const r={enableMnemonics:n.enableMnemonics,useEventAsContext:n.useEventAsContext};if(n.getKeyBinding){const s=n.getKeyBinding(t);if(s){const a=s.getLabel();a&&(r.keybinding=a)}}const o=new aCe(n.context,t,r,this.menuStyles);if(n.enableMnemonics){const s=o.getMnemonic();if(s&&o.isEnabled()){let a=[];this.mnemonics.has(s)&&(a=this.mnemonics.get(s)),a.push(o),this.mnemonics.set(s,a)}}return o}}},aCe=class extends S_{constructor(e,t,n,i){if(n.isMenu=!0,super(t,t,n),this.menuStyle=i,this.options=n,this.options.icon=n.icon!==void 0?n.icon:!1,this.options.label=n.label!==void 0?n.label:!0,this.cssClass="",this.options.label&&n.enableMnemonics){const r=this.action.label;if(r){const o=Lse.exec(r);o&&(this.mnemonic=(o[1]?o[1]:o[3]).toLocaleLowerCase())}}this.runOnceToEnableMouseUp=new Gs(()=>{this.element&&(this._register(qt(this.element,kn.MOUSE_UP,r=>{if(Po.stop(r,!0),B0){if(new Vy(Yi(this.element),r).rightButton)return;this.onClick(r)}else setTimeout(()=>{this.onClick(r)},0)})),this._register(qt(this.element,kn.CONTEXT_MENU,r=>{Po.stop(r,!0)})))},100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=hn(this.element,In("a.action-menu-item")),this._action.id===zd.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=hn(this.item,In("span.menu-item-check"+lr.asCSSSelector(An.menuSelection))),this.check.setAttribute("role","none"),this.label=hn(this.item,In("span.action-label")),this.options.label&&this.options.keybinding&&(hn(this.item,In("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked(),this.applyStyle())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item?.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){if(this.label&&this.options.label){Sh(this.label);let e=tWe(this.action.label);if(e){const t=vHn(e);this.options.enableMnemonics||(e=t),this.label.setAttribute("aria-label",t.replace(/&&/g,"&"));const n=Lse.exec(e);if(n){e=NU(e),zJ.lastIndex=0;let i=zJ.exec(e);for(;i&&i[1];)i=zJ.exec(e);const r=o=>o.replace(/&amp;&amp;/g,"&amp;");i?this.label.append($K(r(e.substr(0,i.index))," "),In("u",{"aria-hidden":"true"},i[3]),zVt(r(e.substr(i.index+i[0].length))," ")):this.label.innerText=r(e).trim(),this.item?.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[3]).toLocaleLowerCase())}else this.label.innerText=e.replace(/&&/g,"&").trim()}}}updateTooltip(){}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.action.class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.action.enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;const e=this.action.checked;this.item.classList.toggle("checked",!!e),e!==void 0?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",e?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,n=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,i=e&&this.menuStyle.selectionBorderColor?`1px solid ${this.menuStyle.selectionBorderColor}`:"",r=e&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=t??"",this.item.style.backgroundColor=n??"",this.item.style.outline=i,this.item.style.outlineOffset=r),this.check&&(this.check.style.color=t??"")}},lCe=class extends aCe{constructor(e,t,n,i,r){super(e,e,i,r),this.submenuActions=t,this.parentData=n,this.submenuOptions=i,this.mysubmenu=null,this.submenuDisposables=this._register(new Jt),this.mouseOver=!1,this.expandDirection=i&&i.expandDirection!==void 0?i.expandDirection:{horizontal:VJ.Right,vertical:sCe.Below},this.showScheduler=new Gs(()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new Gs(()=>{this.element&&!hd(cf(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))},750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=hn(this.item,In("span.submenu-indicator"+lr.asCSSSelector(An.menuSubmenu))),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(qt(this.element,kn.KEY_UP,t=>{const n=new Sa(t);(n.equals(17)||n.equals(3))&&(Po.stop(t,!0),this.createSubmenu(!0))})),this._register(qt(this.element,kn.KEY_DOWN,t=>{const n=new Sa(t);cf()===this.item&&(n.equals(17)||n.equals(3))&&Po.stop(t,!0)})),this._register(qt(this.element,kn.MOUSE_OVER,t=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())})),this._register(qt(this.element,kn.MOUSE_LEAVE,t=>{this.mouseOver=!1})),this._register(qt(this.element,kn.FOCUS_OUT,t=>{this.element&&!hd(cf(),this.element)&&this.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(()=>{this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))})))}updateEnabled(){}onClick(e){Po.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch{}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,n,i){const r={top:0,left:0};return r.left=s6(e.width,t.width,{position:i.horizontal===VJ.Right?0:1,offset:n.left,size:n.width}),r.left>=n.left&&r.left<n.left+n.width&&(n.left+10+t.width<=e.width&&(r.left=n.left+10),n.top+=10,n.height=0),r.top=s6(e.height,t.height,{position:0,offset:n.top,size:0}),r.top+t.height===n.top&&r.top+n.height+t.height<=e.height&&(r.top+=n.height),r}createSubmenu(e=!0){if(this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=hn(this.element,In("div.monaco-submenu")),this.submenuContainer.classList.add("menubar-menu-items-holder","context-view");const t=Yi(this.parentData.parent.domNode).getComputedStyle(this.parentData.parent.domNode),n=parseFloat(t.paddingTop||"0")||0;this.submenuContainer.style.zIndex="1",this.submenuContainer.style.position="fixed",this.submenuContainer.style.top="0",this.submenuContainer.style.left="0",this.parentData.submenu=new Q4e(this.submenuContainer,this.submenuActions.length?this.submenuActions:[new PWt],this.submenuOptions,this.menuStyle);const i=this.element.getBoundingClientRect(),r={top:i.top-n,left:i.left,height:i.height+2*n,width:i.width},o=this.submenuContainer.getBoundingClientRect(),s=Yi(this.element),{top:a,left:l}=this.calculateSubmenuMenuLayout(new qs(s.innerWidth,s.innerHeight),qs.lift(o),r,this.expandDirection);this.submenuContainer.style.left=`${l-o.left}px`,this.submenuContainer.style.top=`${a-o.top}px`,this.submenuDisposables.add(qt(this.submenuContainer,kn.KEY_UP,c=>{new Sa(c).equals(15)&&(Po.stop(c,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(qt(this.submenuContainer,kn.KEY_DOWN,c=>{new Sa(c).equals(15)&&Po.stop(c,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){this.item&&this.item?.setAttribute("aria-expanded",e)}applyStyle(){super.applyStyle();const t=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=t??"")}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}},cCe=class extends o2{constructor(e,t,n,i){super(e,t,n),this.menuStyles=i}render(e){super.render(e),this.label&&(this.label.style.borderBottomColor=this.menuStyles.separatorColor?`${this.menuStyles.separatorColor}`:"")}}}}),SGt,_Hn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/contextview/browser/contextMenuHandler.js"(){Fn(),Cb(),bHn(),wd(),Vi(),Nt(),wT(),SGt=class{constructor(e,t,n,i){this.contextViewService=e,this.telemetryService=t,this.notificationService=n,this.keybindingService=i,this.focusToReturn=null,this.lastContainer=null,this.block=null,this.blockDisposable=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;this.focusToReturn=cf();let n;const i=yd(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:r=>{this.lastContainer=r;const o=e.getMenuClassName?e.getMenuClassName():"";o&&(r.className+=" "+o),this.options.blockMouse&&(this.block=r.appendChild(In(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",this.blockDisposable?.dispose(),this.blockDisposable=qt(this.block,kn.MOUSE_DOWN,c=>c.stopPropagation()));const s=new Jt,a=e.actionRunner||new NL;a.onWillRun(c=>this.onActionRun(c,!e.skipTelemetry),this,s),a.onDidRun(this.onDidActionRun,this,s),n=new Q4e(r,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:a,getKeyBinding:e.getKeyBinding?e.getKeyBinding:c=>this.keybindingService.lookupKeybinding(c.id)},yGt),n.onDidCancel(()=>this.contextViewService.hideContextView(!0),null,s),n.onDidBlur(()=>this.contextViewService.hideContextView(!0),null,s);const l=Yi(r);return s.add(qt(l,kn.BLUR,()=>this.contextViewService.hideContextView(!0))),s.add(qt(l,kn.MOUSE_DOWN,c=>{if(c.defaultPrevented)return;const u=new Vy(l,c);let d=u.target;if(!u.rightButton){for(;d;){if(d===r)return;d=d.parentElement}this.contextViewService.hideContextView(!0)}})),z_(s,n)},focus:()=>{n?.focus(!!e.autoSelectFirstItem)},onHide:r=>{e.onHide?.(!!r),this.block&&(this.block.remove(),this.block=null),this.blockDisposable?.dispose(),this.blockDisposable=null,this.lastContainer&&(cf()===this.lastContainer||hd(cf(),this.lastContainer))&&this.focusToReturn?.focus(),this.lastContainer=null}},i,!!i)}onActionRun(e,t){t&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1)}onDidActionRun(e){e.error&&!bb(e.error)&&this.notificationService.error(e.error)}}}}),Uut,HP,Pse,uCe,wHn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/contextview/browser/contextMenuService.js"(){Fn(),wd(),Un(),Nt(),jN(),ha(),er(),tl(),yf(),_m(),_Hn(),xg(),Uut=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},HP=function(e,t){return function(n,i){t(n,i,e)}},Pse=class extends St{get contextMenuHandler(){return this._contextMenuHandler||(this._contextMenuHandler=new SGt(this.contextViewService,this.telemetryService,this.notificationService,this.keybindingService)),this._contextMenuHandler}constructor(t,n,i,r,o,s){super(),this.telemetryService=t,this.notificationService=n,this.contextViewService=i,this.keybindingService=r,this.menuService=o,this.contextKeyService=s,this._contextMenuHandler=void 0,this._onDidShowContextMenu=this._store.add(new bt),this.onDidShowContextMenu=this._onDidShowContextMenu.event,this._onDidHideContextMenu=this._store.add(new bt)}configure(t){this.contextMenuHandler.configure(t)}showContextMenu(t){t=uCe.transform(t,this.menuService,this.contextKeyService),this.contextMenuHandler.showContextMenu({...t,onHide:n=>{t.onHide?.(n),this._onDidHideContextMenu.fire()}}),KK.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}},Pse=Uut([HP(0,uf),HP(1,Cc),HP(2,Jx),HP(3,Cs),HP(4,Pv),HP(5,ur)],Pse),(function(e){function t(i){return i&&i.menuId instanceof Ti}function n(i,r,o){if(!t(i))return i;const{menuId:s,menuActionOptions:a,contextKeyService:l}=i;return{...i,getActions:()=>{const c=[];if(s){const u=r.getMenuActions(s,l??o,a);mHn(u,c)}return i.getActions?zd.join(i.getActions(),c):c}}}e.transform=n})(uCe||(uCe={}))}}),rde,CHn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/editor/common/editor.js"(){(function(e){e[e.API=0]="API",e[e.USER=1]="USER"})(rde||(rde={}))}}),HJ,oV,WJ,UJ,Mse,SHn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/services/openerService.js"(){Fn(),wg(),Ho(),_b(),kh(),rWe(),Gd(),bf(),ss(),Ec(),Ks(),CHn(),Ag(),HJ=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},oV=function(e,t){return function(n,i){t(n,i,e)}},WJ=class{constructor(t){this._commandService=t}async open(t,n){if(!Ope(t,Pr.command))return!1;if(!n?.allowCommands||(typeof t=="string"&&(t=Ui.parse(t)),Array.isArray(n.allowCommands)&&!n.allowCommands.includes(t.path)))return!0;let i=[];try{i=b4e(decodeURIComponent(t.query))}catch{try{i=b4e(t.query)}catch{}}return Array.isArray(i)||(i=[i]),await this._commandService.executeCommand(t.path,...i),!0}},WJ=HJ([oV(0,Oa)],WJ),UJ=class{constructor(t){this._editorService=t}async open(t,n){typeof t=="string"&&(t=Ui.parse(t));const{selection:i,uri:r}=qzn(t);return t=r,t.scheme===Pr.file&&(t=Z$t(t)),await this._editorService.openCodeEditor({resource:t,options:{selection:i,source:n?.fromUserGesture?rde.USER:rde.API,...n?.editorOptions}},this._editorService.getFocusedCodeEditor(),n?.openToSide),!0}},UJ=HJ([oV(0,Jo)],UJ),Mse=class{constructor(t,n){this._openers=new yp,this._validators=new yp,this._resolvers=new yp,this._resolvedUriTargets=new mh(i=>i.with({path:null,fragment:null,query:null}).toString()),this._externalOpeners=new yp,this._defaultExternalOpener={openExternal:async i=>(KFe(i,Pr.http,Pr.https)?i3t(i):la.location.href=i,!0)},this._openers.push({open:async(i,r)=>r?.openExternal||KFe(i,Pr.mailto,Pr.http,Pr.https,Pr.vsls)?(await this._doOpenExternal(i,r),!0):!1}),this._openers.push(new WJ(n)),this._openers.push(new UJ(t))}registerOpener(t){return{dispose:this._openers.unshift(t)}}async open(t,n){const i=typeof t=="string"?Ui.parse(t):t,r=this._resolvedUriTargets.get(i)??t;for(const o of this._validators)if(!await o.shouldOpen(r,n))return!1;for(const o of this._openers)if(await o.open(t,n))return!0;return!1}async resolveExternalUri(t,n){for(const i of this._resolvers)try{const r=await i.resolveExternalUri(t,n);if(r)return this._resolvedUriTargets.has(r.resolved)||this._resolvedUriTargets.set(r.resolved,t),r}catch{}throw new Error("Could not resolve external URI: "+t.toString())}async _doOpenExternal(t,n){const i=typeof t=="string"?Ui.parse(t):t;let r;try{r=(await this.resolveExternalUri(i,n)).resolved}catch{r=i}let o;if(typeof t=="string"&&i.toString()===r.toString()?o=t:o=encodeURI(r.toString(!0)),n?.allowContributedOpeners){const s=typeof n?.allowContributedOpeners=="string"?n?.allowContributedOpeners:void 0;for(const a of this._externalOpeners)if(await a.openExternal(o,{sourceUri:i,preferredOpenerId:s},no.None))return!0}return this._defaultExternalOpener.openExternal(o,{sourceUri:i},no.None)}dispose(){this._validators.clear()}},Mse=HJ([oV(0,Jo),oV(1,Oa)],Mse)}}),fg,SE=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/editorWorker.js"(){li(),fg=Ao("editorWorkerService")}}),tc,ode,xC,CT=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/markers/common/markers.js"(){NN(),bn(),li(),(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(tc||(tc={})),(function(e){function t(s,a){return a-s}e.compare=t;const n=Object.create(null);n[e.Error]=R("sev.error","Error"),n[e.Warning]=R("sev.warning","Warning"),n[e.Info]=R("sev.info","Info");function i(s){return n[s]||""}e.toString=i;function r(s){switch(s){case yc.Error:return e.Error;case yc.Warning:return e.Warning;case yc.Info:return e.Info;case yc.Ignore:return e.Hint}}e.fromSeverity=r;function o(s){switch(s){case e.Error:return yc.Error;case e.Warning:return yc.Warning;case e.Info:return yc.Info;case e.Hint:return yc.Ignore}}e.toSeverity=o})(tc||(tc={})),(function(e){function n(r){return i(r,!0)}e.makeKey=n;function i(r,o){const s=[""];return r.source?s.push(r.source.replace("¦","\\¦")):s.push(""),r.code?typeof r.code=="string"?s.push(r.code.replace("¦","\\¦")):s.push(r.code.value.replace("¦","\\¦")):s.push(""),r.severity!==void 0&&r.severity!==null?s.push(tc.toString(r.severity)):s.push(""),r.message&&o?s.push(r.message.replace("¦","\\¦")):s.push(""),r.startLineNumber!==void 0&&r.startLineNumber!==null?s.push(r.startLineNumber.toString()):s.push(""),r.startColumn!==void 0&&r.startColumn!==null?s.push(r.startColumn.toString()):s.push(""),r.endLineNumber!==void 0&&r.endLineNumber!==null?s.push(r.endLineNumber.toString()):s.push(""),r.endColumn!==void 0&&r.endColumn!==null?s.push(r.endColumn.toString()):s.push(""),s.push(""),s.join("¦")}e.makeKeyOptionalMessage=i})(ode||(ode={})),xC=Ao("markerService")}}),Z4e,X4e,JU,Ose,wWe,xGt,CWe,EGt,Rse,AGt,$ut,qut,a6,DGt,TGt,kGt,IGt,LGt,l6,NGt,PGt,MGt,OGt,RGt,Gut,FGt,BGt,jGt,zGt,VGt,Kut,SWe,HGt,WGt,UGt,xWe,EWe,AWe,DWe,TWe,kWe,$Gt,qGt,GGt,KGt,YGt,QGt,ZGt,XGt,JGt,eKt,tKt,nKt,iKt,kb=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/editorColorRegistry.js"(){bn(),ql(),ll(),Ys(),Z4e=Qe("editor.lineHighlightBackground",null,R("lineHighlight","Background color for the highlight of line at the cursor position.")),X4e=Qe("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:zo},R("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),Qe("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},R("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),Qe("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:Qa,hcLight:Qa},R("rangeHighlightBorder","Background color of the border around highlighted ranges.")),Qe("editor.symbolHighlightBackground",{dark:px,light:px,hcDark:null,hcLight:null},R("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),Qe("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:Qa,hcLight:Qa},R("symbolHighlightBorder","Background color of the border around highlighted symbols.")),JU=Qe("editorCursor.foreground",{dark:"#AEAFAD",light:rn.black,hcDark:rn.white,hcLight:"#0F4A85"},R("caret","Color of the editor cursor.")),Ose=Qe("editorCursor.background",null,R("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),wWe=Qe("editorMultiCursor.primary.foreground",JU,R("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),xGt=Qe("editorMultiCursor.primary.background",Ose,R("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),CWe=Qe("editorMultiCursor.secondary.foreground",JU,R("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),EGt=Qe("editorMultiCursor.secondary.background",Ose,R("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),Rse=Qe("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},R("editorWhitespaces","Color of whitespace characters in the editor.")),AGt=Qe("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:rn.white,hcLight:"#292929"},R("editorLineNumbers","Color of editor line numbers.")),$ut=Qe("editorIndentGuide.background",Rse,R("editorIndentGuides","Color of the editor indentation guides."),!1,R("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead.")),qut=Qe("editorIndentGuide.activeBackground",Rse,R("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,R("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),a6=Qe("editorIndentGuide.background1",$ut,R("editorIndentGuides1","Color of the editor indentation guides (1).")),DGt=Qe("editorIndentGuide.background2","#00000000",R("editorIndentGuides2","Color of the editor indentation guides (2).")),TGt=Qe("editorIndentGuide.background3","#00000000",R("editorIndentGuides3","Color of the editor indentation guides (3).")),kGt=Qe("editorIndentGuide.background4","#00000000",R("editorIndentGuides4","Color of the editor indentation guides (4).")),IGt=Qe("editorIndentGuide.background5","#00000000",R("editorIndentGuides5","Color of the editor indentation guides (5).")),LGt=Qe("editorIndentGuide.background6","#00000000",R("editorIndentGuides6","Color of the editor indentation guides (6).")),l6=Qe("editorIndentGuide.activeBackground1",qut,R("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),NGt=Qe("editorIndentGuide.activeBackground2","#00000000",R("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),PGt=Qe("editorIndentGuide.activeBackground3","#00000000",R("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),MGt=Qe("editorIndentGuide.activeBackground4","#00000000",R("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),OGt=Qe("editorIndentGuide.activeBackground5","#00000000",R("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),RGt=Qe("editorIndentGuide.activeBackground6","#00000000",R("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),Gut=Qe("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:Qa,hcLight:Qa},R("editorActiveLineNumber","Color of editor active line number"),!1,R("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),Qe("editorLineNumber.activeForeground",Gut,R("editorActiveLineNumber","Color of editor active line number")),FGt=Qe("editorLineNumber.dimmedForeground",null,R("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),Qe("editorRuler.foreground",{dark:"#5A5A5A",light:rn.lightgrey,hcDark:rn.white,hcLight:"#292929"},R("editorRuler","Color of the editor rulers.")),Qe("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},R("editorCodeLensForeground","Foreground color of editor CodeLens")),Qe("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},R("editorBracketMatchBackground","Background color behind matching brackets")),Qe("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:zo,hcLight:zo},R("editorBracketMatchBorder","Color for matching brackets boxes")),BGt=Qe("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},R("editorOverviewRulerBorder","Color of the overview ruler border.")),jGt=Qe("editorOverviewRuler.background",null,R("editorOverviewRulerBackground","Background color of the editor overview ruler.")),Qe("editorGutter.background",By,R("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),Qe("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:rn.fromHex("#fff").transparent(.8),hcLight:zo},R("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),zGt=Qe("editorUnnecessaryCode.opacity",{dark:rn.fromHex("#000a"),light:rn.fromHex("#0007"),hcDark:null,hcLight:null},R("unnecessaryCodeOpacity",`Opacity of unnecessary (unused) source code in the editor. For example, "#000000c0" will render the code with 75% opacity. For high contrast themes, use the  'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.`)),Qe("editorGhostText.border",{dark:null,light:null,hcDark:rn.fromHex("#fff").transparent(.8),hcLight:rn.fromHex("#292929").transparent(.8)},R("editorGhostTextBorder","Border color of ghost text in the editor.")),VGt=Qe("editorGhostText.foreground",{dark:rn.fromHex("#ffffff56"),light:rn.fromHex("#0007"),hcDark:null,hcLight:null},R("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),Qe("editorGhostText.background",null,R("editorGhostTextBackground","Background color of the ghost text in the editor.")),Kut=new rn(new $o(0,122,204,.6)),SWe=Qe("editorOverviewRuler.rangeHighlightForeground",Kut,R("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),HGt=Qe("editorOverviewRuler.errorForeground",{dark:new rn(new $o(255,18,18,.7)),light:new rn(new $o(255,18,18,.7)),hcDark:new rn(new $o(255,50,50,1)),hcLight:"#B5200D"},R("overviewRuleError","Overview ruler marker color for errors.")),WGt=Qe("editorOverviewRuler.warningForeground",{dark:Ix,light:Ix,hcDark:K8,hcLight:K8},R("overviewRuleWarning","Overview ruler marker color for warnings.")),UGt=Qe("editorOverviewRuler.infoForeground",{dark:bC,light:bC,hcDark:Y8,hcLight:Y8},R("overviewRuleInfo","Overview ruler marker color for infos.")),xWe=Qe("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},R("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),EWe=Qe("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},R("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),AWe=Qe("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},R("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),DWe=Qe("editorBracketHighlight.foreground4","#00000000",R("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),TWe=Qe("editorBracketHighlight.foreground5","#00000000",R("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),kWe=Qe("editorBracketHighlight.foreground6","#00000000",R("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),$Gt=Qe("editorBracketHighlight.unexpectedBracket.foreground",{dark:new rn(new $o(255,18,18,.8)),light:new rn(new $o(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},R("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),qGt=Qe("editorBracketPairGuide.background1","#00000000",R("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),GGt=Qe("editorBracketPairGuide.background2","#00000000",R("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),KGt=Qe("editorBracketPairGuide.background3","#00000000",R("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),YGt=Qe("editorBracketPairGuide.background4","#00000000",R("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),QGt=Qe("editorBracketPairGuide.background5","#00000000",R("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),ZGt=Qe("editorBracketPairGuide.background6","#00000000",R("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),XGt=Qe("editorBracketPairGuide.activeBackground1","#00000000",R("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),JGt=Qe("editorBracketPairGuide.activeBackground2","#00000000",R("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),eKt=Qe("editorBracketPairGuide.activeBackground3","#00000000",R("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),tKt=Qe("editorBracketPairGuide.activeBackground4","#00000000",R("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),nKt=Qe("editorBracketPairGuide.activeBackground5","#00000000",R("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),iKt=Qe("editorBracketPairGuide.activeBackground6","#00000000",R("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides.")),Qe("editorUnicodeHighlight.border",Ix,R("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),Qe("editorUnicodeHighlight.background",_3t,R("editorUnicodeHighlight.background","Background color used to highlight unicode characters.")),Ab((e,t)=>{const n=e.getColor(By),i=e.getColor(Z4e),r=i&&!i.isTransparent()?i:n;r&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${r}; }`)})}});function xHn(e,t){const n=[],i=[];for(const r of e)t.has(r)||n.push(r);for(const r of t)e.has(r)||i.push(r);return{removed:n,added:i}}function EHn(e,t){const n=new Set;for(const i of t)e.has(i)&&n.add(i);return n}var rKt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/collections.js"(){}}),Yut,dCe,Fse,Qut,AHn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js"(){CT(),Nt(),Cd(),Ys(),kb(),Kf(),Dn(),Gd(),Un(),ll(),kh(),rKt(),Yut=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},dCe=function(e,t){return function(n,i){t(n,i,e)}},Fse=class extends St{constructor(t,n){super(),this._markerService=n,this._onDidChangeMarker=this._register(new bt),this._markerDecorations=new mh,t.getModels().forEach(i=>this._onModelAdded(i)),this._register(t.onModelAdded(this._onModelAdded,this)),this._register(t.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach(t=>t.dispose()),this._markerDecorations.clear()}getMarker(t,n){const i=this._markerDecorations.get(t);return i&&i.getMarker(n)||null}_handleMarkerChange(t){t.forEach(n=>{const i=this._markerDecorations.get(n);i&&this._updateDecorations(i)})}_onModelAdded(t){const n=new Qut(t);this._markerDecorations.set(t.uri,n),this._updateDecorations(n)}_onModelRemoved(t){const n=this._markerDecorations.get(t.uri);n&&(n.dispose(),this._markerDecorations.delete(t.uri)),(t.uri.scheme===Pr.inMemory||t.uri.scheme===Pr.internal||t.uri.scheme===Pr.vscode)&&this._markerService?.read({resource:t.uri}).map(i=>i.owner).forEach(i=>this._markerService.remove(i,[t.uri]))}_updateDecorations(t){const n=this._markerService.read({resource:t.model.uri,take:500});t.update(n)&&this._onDidChangeMarker.fire(t.model)}},Fse=Yut([dCe(0,Ua),dCe(1,xC)],Fse),Qut=class extends St{constructor(e){super(),this.model=e,this._map=new CUt,this._register(zi(()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()}))}update(e){const{added:t,removed:n}=xHn(new Set(this._map.keys()),new Set(e));if(t.length===0&&n.length===0)return!1;const i=n.map(s=>this._map.get(s)),r=t.map(s=>({range:this._createDecorationRange(this.model,s),options:this._createDecorationOption(s)})),o=this.model.deltaDecorations(i,r);for(const s of n)this._map.delete(s);for(let s=0;s<o.length;s++)this._map.set(t[s],o[s]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let n=Re.lift(t);if(t.severity===tc.Hint&&!this._hasMarkerTag(t,1)&&!this._hasMarkerTag(t,2)&&(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),n=e.validateRange(n),n.isEmpty()){const i=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);if(i===1||n.endColumn>=i)return n;const r=e.getWordAtPosition(n.getStartPosition());r&&(n=new Re(n.startLineNumber,r.startColumn,n.endLineNumber,r.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&t.startColumn===1&&n.startLineNumber===n.endLineNumber){const i=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);i<n.endColumn&&(n=new Re(n.startLineNumber,i,n.endLineNumber,n.endColumn),t.startColumn=i)}return n}_createDecorationOption(e){let t,n,i,r,o;switch(e.severity){case tc.Hint:this._hasMarkerTag(e,2)?t=void 0:this._hasMarkerTag(e,1)?t="squiggly-unnecessary":t="squiggly-hint",i=0;break;case tc.Info:t="squiggly-info",n=ec(UGt),i=10,o={color:ec(V3t),position:1};break;case tc.Warning:t="squiggly-warning",n=ec(WGt),i=20,o={color:ec(H3t),position:1};break;case tc.Error:default:t="squiggly-error",n=ec(HGt),i=30,o={color:ec(W3t),position:1};break}return e.tags&&(e.tags.indexOf(1)!==-1&&(r="squiggly-inline-unnecessary"),e.tags.indexOf(2)!==-1&&(r="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:n,position:x0.Right},minimap:o,zIndex:i,inlineClassName:r}}_hasMarkerTag(e,t){return e.tags?e.tags.indexOf(t)>=0:!1}}}}),bge,IWe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/markerDecorations.js"(){li(),bge=Ao("markerDecorationsService")}});function DHn(e,t,n){let i=0;for(let o=0;o<e.length;o++)e.charAt(o)==="	"?i=cd.nextIndentTabStop(i,t):i++;let r="";if(!n){const o=Math.floor(i/t);i=i%t;for(let s=0;s<o;s++)r+="	"}for(let o=0;o<i;o++)r+=" ";return r}function LWe(e,t,n){let i=Cp(e);return i===-1&&(i=e.length),DHn(e.substring(0,i),t,n)+e.substring(i)}var NWe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/indentation.js"(){Ki(),HC()}}),J4e,Zut,oKt,THn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/textModelBracketPairs.js"(){J4e=class{constructor(e,t,n,i){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=n,this.isInvalid=i}},Zut=class{constructor(e,t,n,i,r,o){this.range=e,this.openingBracketRange=t,this.closingBracketRange=n,this.nestingLevel=i,this.nestingLevelOfEqualBracketType=r,this.bracketPairNode=o}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}},oKt=class extends Zut{constructor(e,t,n,i,r,o,s){super(e,t,n,i,r,o),this.minVisibleColumnIndentation=s}}}});function kHn(e,t,n,i){return e!==n?tu(n-e,i):tu(0,i-t)}function sde(e){return e===0}function tu(e,t){return e*vv+t}function Cy(e){const t=e,n=Math.floor(t/vv),i=t-n*vv;return new _C(n,i)}function IHn(e){return Math.floor(e/vv)}function nc(e,t){let n=e+t;return t>=vv&&(n=n-e%vv),n}function LHn(e,t){return e.reduce((n,i)=>nc(n,t(i)),_p)}function sKt(e,t){return e===t}function aG(e,t){const n=e,i=t;if(i-n<=0)return _p;const o=Math.floor(n/vv),s=Math.floor(i/vv),a=i-s*vv;if(o===s){const l=n-o*vv;return tu(0,a-l)}else return tu(s-o,a)}function G6(e,t){return e<t}function K6(e,t){return e<=t}function oW(e,t){return e>=t}function c6(e){return tu(e.lineNumber-1,e.column-1)}function vR(e,t){const n=e,i=Math.floor(n/vv),r=n-i*vv,o=t,s=Math.floor(o/vv),a=o-s*vv;return new Re(i+1,r+1,s+1,a+1)}function NHn(e){const t=Zx(e);return tu(t.length-1,t[t.length-1].length)}var _p,vv,ST=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length.js"(){Ki(),Dn(),IN(),_p=0,vv=2**26}}),zI,aKt,Xut,_ge=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/beforeEditPositionMapper.js"(){Dn(),ST(),zI=class lKt{static fromModelContentChanges(t){return t.map(i=>{const r=Re.lift(i.range);return new lKt(c6(r.getStartPosition()),c6(r.getEndPosition()),NHn(i.text))}).reverse()}constructor(t,n,i){this.startOffset=t,this.endOffset=n,this.newLength=i}toString(){return`[${Cy(this.startOffset)}...${Cy(this.endOffset)}) -> ${Cy(this.newLength)}`}},aKt=class{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map(t=>Xut.from(t))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],n=t?this.translateOldToCur(t.offsetObj):null;return n===null?null:aG(e,n)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?tu(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):tu(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=Cy(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?tu(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):tu(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],n=this.translateOldToCur(t.endOffsetAfterObj);if(K6(n,e)){this.nextEditIdx++;const i=Cy(n),r=Cy(this.translateOldToCur(t.endOffsetBeforeObj)),o=i.lineCount-r.lineCount;this.deltaOldToNewLineCount+=o;const s=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,a=i.columnCount-r.columnCount;this.deltaOldToNewColumnCount=s+a,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}else break}}},Xut=class cKt{static from(t){return new cKt(t.startOffset,t.endOffset,t.newLength)}constructor(t,n,i){this.endOffsetBeforeObj=Cy(n),this.endOffsetAfterObj=Cy(nc(t,i)),this.offsetObj=Cy(t)}}}}),sV,y0,eBe,PWe,j7=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/smallImmutableSet.js"(){var e;sV=[],y0=(e=class{static create(n,i){if(n<=128&&i.length===0){let r=e.cache[n];return r||(r=new e(n,i),e.cache[n]=r),r}return new e(n,i)}static getEmpty(){return this.empty}constructor(n,i){this.items=n,this.additionalItems=i}add(n,i){const r=i.getKey(n);let o=r>>5;if(o===0){const a=1<<r|this.items;return a===this.items?this:e.create(a,this.additionalItems)}o--;const s=this.additionalItems.slice(0);for(;s.length<o;)s.push(0);return s[o]|=1<<(r&31),e.create(this.items,s)}merge(n){const i=this.items|n.items;if(this.additionalItems===sV&&n.additionalItems===sV)return i===this.items?this:i===n.items?n:e.create(i,sV);const r=[];for(let o=0;o<Math.max(this.additionalItems.length,n.additionalItems.length);o++){const s=this.additionalItems[o]||0,a=n.additionalItems[o]||0;r.push(s|a)}return e.create(i,r)}intersects(n){if((this.items&n.items)!==0)return!0;for(let i=0;i<Math.min(this.additionalItems.length,n.additionalItems.length);i++)if((this.additionalItems[i]&n.additionalItems[i])!==0)return!0;return!1}},e.cache=new Array(129),e.empty=e.create(0,sV),e),eBe={getKey(t){return t}},PWe=class{constructor(){this.items=new Map}getKey(t){let n=this.items.get(t);return n===void 0&&(n=this.items.size,this.items.set(t,n)),n}}}}),$J,tBe,aC,qJ,Jut,hCe,edt,tdt,GJ,pI,nBe,uKt,wge=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/ast.js"(){Vi(),HC(),ST(),j7(),$J=class{get length(){return this._length}constructor(e){this._length=e}},tBe=class iBe extends $J{static create(t,n,i){let r=t.length;return n&&(r=nc(r,n.length)),i&&(r=nc(r,i.length)),new iBe(r,t,n,i,n?n.missingOpeningBracketIds:y0.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(t){switch(t){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const t=[];return t.push(this.openingBracket),this.child&&t.push(this.child),this.closingBracket&&t.push(this.closingBracket),t}constructor(t,n,i,r,o){super(t),this.openingBracket=n,this.child=i,this.closingBracket=r,this.missingOpeningBracketIds=o}canBeReused(t){return!(this.closingBracket===null||t.intersects(this.missingOpeningBracketIds))}deepClone(){return new iBe(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(t,n){return this.child?this.child.computeMinIndentation(nc(t,this.openingBracket.length),n):Number.MAX_SAFE_INTEGER}},aC=class extends $J{static create23(e,t,n,i=!1){let r=e.length,o=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(r=nc(r,t.length),o=o.merge(t.missingOpeningBracketIds),n){if(e.listHeight!==n.listHeight)throw new Error("Invalid list heights");r=nc(r,n.length),o=o.merge(n.missingOpeningBracketIds)}return i?new Jut(r,e.listHeight+1,e,t,n,o):new qJ(r,e.listHeight+1,e,t,n,o)}static getEmpty(){return new edt(_p,0,[],y0.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,n){super(e),this.listHeight=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(e===0)return;const t=this.getChild(e-1),n=t.kind===4?t.toMutable():t;return t!==n&&this.setChild(e-1,n),n}makeFirstElementMutable(){if(this.throwIfImmutable(),this.childrenLength===0)return;const t=this.getChild(0),n=t.kind===4?t.toMutable():t;return t!==n&&this.setChild(0,n),n}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds)||this.childrenLength===0)return!1;let t=this;for(;t.kind===4;){const n=t.childrenLength;if(n===0)throw new ys;t=t.getChild(n-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,n=this.getChild(0).missingOpeningBracketIds;for(let i=1;i<e;i++){const r=this.getChild(i);t=nc(t,r.length),n=n.merge(r.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(this.cachedMinIndentation!==-1)return this.cachedMinIndentation;let n=Number.MAX_SAFE_INTEGER,i=e;for(let r=0;r<this.childrenLength;r++){const o=this.getChild(r);o&&(n=Math.min(n,o.computeMinIndentation(i,t)),i=nc(i,o.length))}return this.cachedMinIndentation=n,n}},qJ=class dKt extends aC{get childrenLength(){return this._item3!==null?3:2}getChild(t){switch(t){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(t,n){switch(t){case 0:this._item1=n;return;case 1:this._item2=n;return;case 2:this._item3=n;return}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(t,n,i,r,o,s){super(t,n,s),this._item1=i,this._item2=r,this._item3=o}deepClone(){return new dKt(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(t){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=t,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const t=this._item3;return this._item3=null,this.handleChildrenChanged(),t}prependChildOfSameHeight(t){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=t,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const t=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),t}toMutable(){return this}},Jut=class extends qJ{toMutable(){return new qJ(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}},hCe=class hKt extends aC{get childrenLength(){return this._children.length}getChild(t){return this._children[t]}setChild(t,n){this._children[t]=n}get children(){return this._children}constructor(t,n,i,r){super(t,n,r),this._children=i}deepClone(){const t=new Array(this._children.length);for(let n=0;n<this._children.length;n++)t[n]=this._children[n].deepClone();return new hKt(this.length,this.listHeight,t,this.missingOpeningBracketIds)}appendChildOfSameHeight(t){this.throwIfImmutable(),this._children.push(t),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const t=this._children.pop();return this.handleChildrenChanged(),t}prependChildOfSameHeight(t){this.throwIfImmutable(),this._children.unshift(t),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const t=this._children.shift();return this.handleChildrenChanged(),t}toMutable(){return this}},edt=class extends hCe{toMutable(){return new hCe(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}},tdt=[],GJ=class extends $J{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return tdt}deepClone(){return this}},pI=class extends GJ{get kind(){return 0}get missingOpeningBracketIds(){return y0.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const n=Cy(e),i=(n.columnCount===0?n.lineCount:n.lineCount+1)+1,r=IHn(nc(e,this.length))+1;let o=Number.MAX_SAFE_INTEGER;for(let s=i;s<=r;s++){const a=t.getLineFirstNonWhitespaceColumn(s),l=t.getLineContent(s);if(a===0)continue;const c=cd.visibleColumnFromColumn(l,a,t.getOptions().tabSize);o=Math.min(o,c)}return o}},nBe=class fKt extends GJ{static create(t,n,i){return new fKt(t,n,i)}get kind(){return 1}get missingOpeningBracketIds(){return y0.getEmpty()}constructor(t,n,i){super(t),this.bracketInfo=n,this.bracketIds=i}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(t){return!1}computeMinIndentation(t,n){return Number.MAX_SAFE_INTEGER}},uKt=class extends GJ{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}}}),FA,MWe,ndt,pKt,OWe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/tokenizer.js"(){Vi(),I7(),wge(),ST(),j7(),FA=class{constructor(e,t,n,i,r){this.length=e,this.kind=t,this.bracketId=n,this.bracketIds=i,this.astNode=r}},MWe=class{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new ndt(this.textModel,this.bracketTokens),this._offset=_p,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return tu(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=nc(this._offset,e);const t=Cy(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=nc(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}},ndt=class{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,this.line!==null&&(this.lineTokenOffset=this.lineCharOffset===0?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const r=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=r.length,r}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;this.line===null&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=this.lineCharOffset===0?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let n=0;for(;;){const r=this.lineTokens,o=r.getCount();let s=null;if(this.lineTokenOffset<o){const a=r.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<o&&a===r.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const l=gh.getTokenType(a)===0,c=gh.containsBalancedBrackets(a),u=r.getEndOffset(this.lineTokenOffset);if(c&&l&&this.lineCharOffset<u){const d=r.getLanguageId(this.lineTokenOffset),h=this.line.substring(this.lineCharOffset,u),f=this.bracketTokens.getSingleLanguageBracketTokens(d),p=f.regExpGlobal;if(p){p.lastIndex=0;const g=p.exec(h);g&&(s=f.getToken(g[0]),s&&(this.lineCharOffset+=g.index))}}if(n+=u-this.lineCharOffset,s)if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=s;break}else return this.lineCharOffset+=s.length,s;else this.lineTokenOffset++,this.lineCharOffset=u}else if(this.lineIdx===this.textBufferLineCount-1||(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,n+=33,n>1e3))break;if(n>1500)break}const i=kHn(e,t,this.lineIdx,this.lineCharOffset);return new FA(i,0,-1,y0.getEmpty(),new pI(i))}},pKt=class{constructor(e,t){this.text=e,this._offset=_p,this.idx=0;const n=t.getRegExpStr(),i=n?new RegExp(n+`|
`,"gi"):null,r=[];let o,s=0,a=0,l=0,c=0;const u=[];for(let f=0;f<60;f++)u.push(new FA(tu(0,f),0,-1,y0.getEmpty(),new pI(tu(0,f))));const d=[];for(let f=0;f<60;f++)d.push(new FA(tu(1,f),0,-1,y0.getEmpty(),new pI(tu(1,f))));if(i)for(i.lastIndex=0;(o=i.exec(e))!==null;){const f=o.index,p=o[0];if(p===`
`)s++,a=f+1;else{if(l!==f){let g;if(c===s){const m=f-l;if(m<u.length)g=u[m];else{const v=tu(0,m);g=new FA(v,0,-1,y0.getEmpty(),new pI(v))}}else{const m=s-c,v=f-a;if(m===1&&v<d.length)g=d[v];else{const y=tu(m,v);g=new FA(y,0,-1,y0.getEmpty(),new pI(y))}}r.push(g)}r.push(t.getToken(p)),l=f+p.length,c=s}}const h=e.length;if(l!==h){const f=c===s?tu(0,h-l):tu(s-c,h-a);r.push(new FA(f,0,-1,y0.getEmpty(),new pI(f)))}this.length=tu(s,h-a),this.tokens=r}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new n7t}}}});function PHn(e){let t=z0(e);return/^[\w ]+/.test(e)&&(t=`\\b${t}`),/[\w ]+$/.test(e)&&(t=`${t}\\b`),t}var idt,RWe,gKt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/brackets.js"(){Ki(),wge(),ST(),j7(),OWe(),idt=class mKt{static createFromLanguage(t,n){function i(o){return n.getKey(`${o.languageId}:::${o.bracketText}`)}const r=new Map;for(const o of t.bracketsNew.openingBrackets){const s=tu(0,o.bracketText.length),a=i(o),l=y0.getEmpty().add(a,eBe);r.set(o.bracketText,new FA(s,1,a,l,nBe.create(s,o,l)))}for(const o of t.bracketsNew.closingBrackets){const s=tu(0,o.bracketText.length);let a=y0.getEmpty();const l=o.getOpeningBrackets();for(const c of l)a=a.add(i(c),eBe);r.set(o.bracketText,new FA(s,2,i(l[0]),a,nBe.create(s,o,a)))}return new mKt(r)}constructor(t){this.map=t,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const t=[...this.map.keys()];return t.sort(),t.reverse(),t.map(n=>PHn(n)).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const t=this.getRegExpStr();this._regExpGlobal=t?new RegExp(t,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(t){return this.map.get(t.toLowerCase())}findClosingTokenText(t){for(const[n,i]of this.map)if(i.kind===2&&i.bracketIds.intersects(t))return n}get isEmpty(){return this.map.size===0}},RWe=class{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=idt.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}}});function MHn(e){if(e.length===0)return null;if(e.length===1)return e[0];let t=0;function n(){if(t>=e.length)return null;const s=t,a=e[s].listHeight;for(t++;t<e.length&&e[t].listHeight===a;)t++;return t-s>=2?vKt(s===0&&t===e.length?e:e.slice(s,t),!1):e[s]}let i=n(),r=n();if(!r)return i;for(let s=n();s;s=n())rdt(i,r)<=rdt(r,s)?(i=fCe(i,r),r=s):r=fCe(r,s);return fCe(i,r)}function vKt(e,t=!1){if(e.length===0)return null;if(e.length===1)return e[0];let n=e.length;for(;n>3;){const i=n>>1;for(let r=0;r<i;r++){const o=r<<1;e[r]=aC.create23(e[o],e[o+1],o+3===n?e[o+2]:null,t)}n=i}return aC.create23(e[0],e[1],n>=3?e[2]:null,t)}function rdt(e,t){return Math.abs(e.listHeight-t.listHeight)}function fCe(e,t){return e.listHeight===t.listHeight?aC.create23(e,t,null,!1):e.listHeight>t.listHeight?OHn(e,t):RHn(t,e)}function OHn(e,t){e=e.toMutable();let n=e;const i=[];let r;for(;;){if(t.listHeight===n.listHeight){r=t;break}if(n.kind!==4)throw new Error("unexpected");i.push(n),n=n.makeLastElementMutable()}for(let o=i.length-1;o>=0;o--){const s=i[o];r?s.childrenLength>=3?r=aC.create23(s.unappendChild(),r,null,!1):(s.appendChildOfSameHeight(r),r=void 0):s.handleChildrenChanged()}return r?aC.create23(e,r,null,!1):e}function RHn(e,t){e=e.toMutable();let n=e;const i=[];for(;t.listHeight!==n.listHeight;){if(n.kind!==4)throw new Error("unexpected");i.push(n),n=n.makeFirstElementMutable()}let r=t;for(let o=i.length-1;o>=0;o--){const s=i[o];r?s.childrenLength>=3?r=aC.create23(r,s.unprependChild(),null,!1):(s.prependChildOfSameHeight(r),r=void 0):s.handleChildrenChanged()}return r?aC.create23(r,e,null,!1):e}var FHn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/concat23Trees.js"(){wge()}});function pCe(e,t=-1){for(;;){if(t++,t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function aV(e){return e.length>0?e[e.length-1]:void 0}var yKt,BHn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/nodeReader.js"(){ST(),yKt=class{constructor(e){this.lastOffset=_p,this.nextNodes=[e],this.offsets=[_p],this.idxs=[]}readLongestNodeAt(e,t){if(G6(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const n=aV(this.nextNodes);if(!n)return;const i=aV(this.offsets);if(G6(e,i))return;if(G6(i,e))if(nc(i,n.length)<=e)this.nextNodeAfterCurrent();else{const r=pCe(n);r!==-1?(this.nextNodes.push(n.getChild(r)),this.offsets.push(i),this.idxs.push(r)):this.nextNodeAfterCurrent()}else{if(t(n))return this.nextNodeAfterCurrent(),n;{const r=pCe(n);if(r===-1){this.nextNodeAfterCurrent();return}else this.nextNodes.push(n.getChild(r)),this.offsets.push(i),this.idxs.push(r)}}}}nextNodeAfterCurrent(){for(;;){const e=aV(this.offsets),t=aV(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),this.idxs.length===0)break;const n=aV(this.nextNodes),i=pCe(n,this.idxs[this.idxs.length-1]);if(i!==-1){this.nextNodes.push(n.getChild(i)),this.offsets.push(nc(e,t.length)),this.idxs[this.idxs.length-1]=i;break}else this.idxs.pop()}}}}});function rBe(e,t,n,i){return new bKt(e,t,n,i).parseDocument()}var bKt,_Kt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/parser.js"(){wge(),_ge(),j7(),ST(),FHn(),BHn(),bKt=class{constructor(e,t,n,i){if(this.tokenizer=e,this.createImmutableLists=i,this._itemsConstructed=0,this._itemsFromCache=0,n&&i)throw new Error("Not supported");this.oldNodeReader=n?new yKt(n):void 0,this.positionMapper=new aKt(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(y0.getEmpty(),0);return e||(e=aC.getEmpty()),e}parseList(e,t){const n=[];for(;;){let r=this.tryReadChildFromCache(e);if(!r){const o=this.tokenizer.peek();if(!o||o.kind===2&&o.bracketIds.intersects(e))break;r=this.parseChild(e,t+1)}r.kind===4&&r.childrenLength===0||n.push(r)}return this.oldNodeReader?MHn(n):vKt(n,this.createImmutableLists)}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(t===null||!sde(t)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),i=>t!==null&&!G6(i.length,t)?!1:i.canBeReused(e));if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}}parseChild(e,t){this._itemsConstructed++;const n=this.tokenizer.read();switch(n.kind){case 2:return new uKt(n.bracketIds,n.length);case 0:return n.astNode;case 1:{if(t>300)return new pI(n.length);const i=e.merge(n.bracketIds),r=this.parseList(i,t+1),o=this.tokenizer.peek();return o&&o.kind===2&&(o.bracketId===n.bracketId||o.bracketIds.intersects(n.bracketIds))?(this.tokenizer.read(),tBe.create(n.astNode,r,o.astNode)):tBe.create(n.astNode,r,null)}default:throw new Error("unexpected")}}}}});function ade(e,t){if(e.length===0)return t;if(t.length===0)return e;const n=new Xx(odt(e)),i=odt(t);i.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let r=n.dequeue();function o(c){if(c===void 0){const d=n.takeWhile(h=>!0)||[];return r&&d.unshift(r),d}const u=[];for(;r&&!sde(c);){const[d,h]=r.splitAt(c);u.push(d),c=aG(d.lengthAfter,c),r=h??n.dequeue()}return sde(c)||u.push(new lde(!1,c,c)),u}const s=[];function a(c,u,d){if(s.length>0&&sKt(s[s.length-1].endOffset,c)){const h=s[s.length-1];s[s.length-1]=new zI(h.startOffset,u,nc(h.newLength,d))}else s.push({startOffset:c,endOffset:u,newLength:d})}let l=_p;for(const c of i){const u=o(c.lengthBefore);if(c.modified){const d=LHn(u,f=>f.lengthBefore),h=nc(l,d);a(l,h,c.lengthAfter),l=h}else for(const d of u){const h=l;l=nc(l,d.lengthBefore),d.modified&&a(h,l,d.lengthAfter)}}return s}function odt(e){const t=[];let n=_p;for(const i of e){const r=aG(n,i.startOffset);sde(r)||t.push(new lde(!1,r,r));const o=aG(i.startOffset,i.endOffset);t.push(new lde(!0,o,i.newLength)),n=i.endOffset}return t}var lde,wKt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/combineTextEditInfos.js"(){rr(),_ge(),ST(),lde=class sW{constructor(t,n,i){this.modified=t,this.lengthBefore=n,this.lengthAfter=i}splitAt(t){const n=aG(t,this.lengthAfter);return sKt(n,_p)?[this,void 0]:this.modified?[new sW(this.modified,this.lengthBefore,t),new sW(this.modified,_p,n)]:[new sW(this.modified,t,t),new sW(this.modified,n,n)]}toString(){return`${this.modified?"M":"U"}:${Cy(this.lengthBefore)} -> ${Cy(this.lengthAfter)}`}}}});function CKt(e,t,n,i){if(e.kind===4||e.kind===2){const r=[];for(const o of e.children)n=nc(t,o.length),r.push({nodeOffsetStart:t,nodeOffsetEnd:n}),t=n;for(let o=r.length-1;o>=0;o--){const{nodeOffsetStart:s,nodeOffsetEnd:a}=r[o];if(G6(s,i)){const l=CKt(e.children[o],s,a,i);if(l)return l}}return null}else{if(e.kind===3)return null;if(e.kind===1){const r=vR(t,n);return{bracketInfo:e.bracketInfo,range:r}}}return null}function SKt(e,t,n,i){if(e.kind===4||e.kind===2){for(const r of e.children){if(n=nc(t,r.length),G6(i,n)){const o=SKt(r,t,n,i);if(o)return o}t=n}return null}else{if(e.kind===3)return null;if(e.kind===1){const r=vR(t,n);return{bracketInfo:e.bracketInfo,range:r}}}return null}function oBe(e,t,n,i,r,o,s,a,l,c,u=!1){if(s>200)return!0;e:for(;;)switch(e.kind){case 4:{const d=e.childrenLength;for(let h=0;h<d;h++){const f=e.getChild(h);if(f){if(n=nc(t,f.length),K6(t,r)&&oW(n,i)){if(oW(n,r)){e=f;continue e}if(!oBe(f,t,n,i,r,o,s,0,l,c))return!1}t=n}}return!0}case 2:{const d=!c||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let h=0;if(l){let p=l.get(e.openingBracket.text);p===void 0&&(p=0),h=p,d&&(p++,l.set(e.openingBracket.text,p))}const f=e.childrenLength;for(let p=0;p<f;p++){const g=e.getChild(p);if(g){if(n=nc(t,g.length),K6(t,r)&&oW(n,i)){if(oW(n,r)&&g.kind!==1){e=g,d?(s++,a=h+1):a=h;continue e}if((d||g.kind!==1||!e.closingBracket)&&!oBe(g,t,n,i,r,o,d?s+1:s,d?h+1:h,l,c,!e.closingBracket))return!1}t=n}}return l?.set(e.openingBracket.text,h),!0}case 3:{const d=vR(t,n);return o(new J4e(d,s-1,0,!0))}case 1:{const d=vR(t,n);return o(new J4e(d,s-1,a-1,u))}case 0:return!0}}function sBe(e,t,n,i,r,o,s,a){if(s>200)return!0;let l=!0;if(e.kind===2){let c=0;if(a){let h=a.get(e.openingBracket.text);h===void 0&&(h=0),c=h,h++,a.set(e.openingBracket.text,h)}const u=nc(t,e.openingBracket.length);let d=-1;if(o.includeMinIndentation&&(d=e.computeMinIndentation(t,o.textModel)),l=o.push(new oKt(vR(t,n),vR(t,u),e.closingBracket?vR(nc(u,e.child?.length||_p),n):void 0,s,c,e,d)),t=u,l&&e.child){const h=e.child;if(n=nc(t,h.length),K6(t,r)&&oW(n,i)&&(l=sBe(h,t,n,i,r,o,s+1,a),!l))return!1}a?.set(e.openingBracket.text,c)}else{let c=t;for(const u of e.children){const d=c;if(c=nc(c,u.length),K6(d,r)&&K6(i,c)&&(l=sBe(u,d,c,i,r,o,s,a),!l))return!1}}return l}var xKt,sdt,jHn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/bracketPairsTree.js"(){Un(),Nt(),THn(),_ge(),gKt(),ST(),_Kt(),j7(),OWe(),rr(),wKt(),xKt=class extends St{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new bt,this.denseKeyProvider=new PWe,this.brackets=new RWe(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)e.tokenization.backgroundTokenizationState===2?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const n=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),i=new pKt(this.textModel.getValue(),n);this.initialAstWithoutTokens=rBe(i,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(this.textModel.tokenization.backgroundTokenizationState===2){const e=this.initialAstWithoutTokens===void 0;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map(n=>new zI(tu(n.fromLineNumber-1,0),tu(n.toLineNumber,0),tu(n.toLineNumber-n.fromLineNumber+1,0)));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=zI.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const n=ade(this.queuedTextEdits,e);this.queuedTextEdits=n,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=ade(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,n){const i=t,r=new MWe(this.textModel,this.brackets);return rBe(r,e,i,n)}getBracketsInRange(e,t){this.flushQueue();const n=tu(e.startLineNumber-1,e.startColumn-1),i=tu(e.endLineNumber-1,e.endColumn-1);return new V6(r=>{const o=this.initialAstWithoutTokens||this.astWithTokens;oBe(o,_p,o.length,n,i,r,0,0,new Map,t)})}getBracketPairsInRange(e,t){this.flushQueue();const n=c6(e.getStartPosition()),i=c6(e.getEndPosition());return new V6(r=>{const o=this.initialAstWithoutTokens||this.astWithTokens,s=new sdt(r,t,this.textModel);sBe(o,_p,o.length,n,i,s,0,new Map)})}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return SKt(t,_p,t.length,c6(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return CKt(t,_p,t.length,c6(e))}},sdt=class{constructor(e,t,n){this.push=e,this.includeMinIndentation=t,this.textModel=n}}}});function zHn(e,t){return{object:e,dispose:()=>t?.dispose()}}function gCe(e){if(typeof e>"u")return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}function KJ(e){return e instanceof Zk?null:e}var EKt,Zk,VHn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsImpl.js"(){var e;rr(),Un(),Nt(),Dn(),nY(),Ype(),jHn(),EKt=class extends St{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(t,n){super(),this.textModel=t,this.languageConfigurationService=n,this.bracketPairsTree=this._register(new Yu),this.onDidChangeEmitter=new bt,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(t){(!t.languageId||this.bracketPairsTree.value?.object.didLanguageChange(t.languageId))&&(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(t){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(t){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(t){this.bracketPairsTree.value?.object.handleContentChanged(t)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(t){this.bracketPairsTree.value?.object.handleDidChangeTokens(t)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const t=new Jt;this.bracketPairsTree.value=zHn(t.add(new xKt(this.textModel,n=>this.languageConfigurationService.getLanguageConfiguration(n))),t),t.add(this.bracketPairsTree.value.object.onDidChange(n=>this.onDidChangeEmitter.fire(n))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire())}getBracketPairsInRange(t){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(t,!1)||V6.empty}getBracketPairsInRangeWithMinIndentation(t){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(t,!0)||V6.empty}getBracketsInRange(t,n=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(t,n)||V6.empty}findMatchingBracketUp(t,n,i){const r=this.textModel.validatePosition(n),o=this.textModel.getLanguageIdAtPosition(r.lineNumber,r.column);if(this.canBuildAST){const s=this.languageConfigurationService.getLanguageConfiguration(o).bracketsNew.getClosingBracketInfo(t);if(!s)return null;const a=this.getBracketPairsInRange(Re.fromPositions(n,n)).findLast(l=>s.closes(l.openingBracketInfo));return a?a.openingBracketRange:null}else{const s=t.toLowerCase(),a=this.languageConfigurationService.getLanguageConfiguration(o).brackets;if(!a)return null;const l=a.textIsBracket[s];return l?KJ(this._findMatchingBracketUp(l,r,gCe(i))):null}}matchBracket(t,n){if(this.canBuildAST){const i=this.getBracketPairsInRange(Re.fromPositions(t,t)).filter(r=>r.closingBracketRange!==void 0&&(r.openingBracketRange.containsPosition(t)||r.closingBracketRange.containsPosition(t))).findLastMaxBy(ug(r=>r.openingBracketRange.containsPosition(t)?r.openingBracketRange:r.closingBracketRange,Re.compareRangesUsingStarts));return i?[i.openingBracketRange,i.closingBracketRange]:null}else{const i=gCe(n);return this._matchBracket(this.textModel.validatePosition(t),i)}}_establishBracketSearchOffsets(t,n,i,r){const o=n.getCount(),s=n.getLanguageId(r);let a=Math.max(0,t.column-1-i.maxBracketLength);for(let c=r-1;c>=0;c--){const u=n.getEndOffset(c);if(u<=a)break;if(zS(n.getStandardTokenType(c))||n.getLanguageId(c)!==s){a=u;break}}let l=Math.min(n.getLineContent().length,t.column-1+i.maxBracketLength);for(let c=r+1;c<o;c++){const u=n.getStartOffset(c);if(u>=l)break;if(zS(n.getStandardTokenType(c))||n.getLanguageId(c)!==s){l=u;break}}return{searchStartOffset:a,searchEndOffset:l}}_matchBracket(t,n){const i=t.lineNumber,r=this.textModel.tokenization.getLineTokens(i),o=this.textModel.getLineContent(i),s=r.findTokenIndexAtOffset(t.column-1);if(s<0)return null;const a=this.languageConfigurationService.getLanguageConfiguration(r.getLanguageId(s)).brackets;if(a&&!zS(r.getStandardTokenType(s))){let{searchStartOffset:l,searchEndOffset:c}=this._establishBracketSearchOffsets(t,r,a,s),u=null;for(;;){const d=wy.findNextBracketInRange(a.forwardRegex,i,o,l,c);if(!d)break;if(d.startColumn<=t.column&&t.column<=d.endColumn){const h=o.substring(d.startColumn-1,d.endColumn-1).toLowerCase(),f=this._matchFoundBracket(d,a.textIsBracket[h],a.textIsOpenBracket[h],n);if(f){if(f instanceof Zk)return null;u=f}}l=d.endColumn-1}if(u)return u}if(s>0&&r.getStartOffset(s)===t.column-1){const l=s-1,c=this.languageConfigurationService.getLanguageConfiguration(r.getLanguageId(l)).brackets;if(c&&!zS(r.getStandardTokenType(l))){const{searchStartOffset:u,searchEndOffset:d}=this._establishBracketSearchOffsets(t,r,c,l),h=wy.findPrevBracketInRange(c.reversedRegex,i,o,u,d);if(h&&h.startColumn<=t.column&&t.column<=h.endColumn){const f=o.substring(h.startColumn-1,h.endColumn-1).toLowerCase(),p=this._matchFoundBracket(h,c.textIsBracket[f],c.textIsOpenBracket[f],n);if(p)return p instanceof Zk?null:p}}}return null}_matchFoundBracket(t,n,i,r){if(!n)return null;const o=i?this._findMatchingBracketDown(n,t.getEndPosition(),r):this._findMatchingBracketUp(n,t.getStartPosition(),r);return o?o instanceof Zk?o:[t,o]:null}_findMatchingBracketUp(t,n,i){const r=t.languageId,o=t.reversedRegex;let s=-1,a=0;const l=(c,u,d,h)=>{for(;;){if(i&&++a%100===0&&!i())return Zk.INSTANCE;const f=wy.findPrevBracketInRange(o,c,u,d,h);if(!f)break;const p=u.substring(f.startColumn-1,f.endColumn-1).toLowerCase();if(t.isOpen(p)?s++:t.isClose(p)&&s--,s===0)return f;h=f.startColumn-1}return null};for(let c=n.lineNumber;c>=1;c--){const u=this.textModel.tokenization.getLineTokens(c),d=u.getCount(),h=this.textModel.getLineContent(c);let f=d-1,p=h.length,g=h.length;c===n.lineNumber&&(f=u.findTokenIndexAtOffset(n.column-1),p=n.column-1,g=n.column-1);let m=!0;for(;f>=0;f--){const v=u.getLanguageId(f)===r&&!zS(u.getStandardTokenType(f));if(v)m?p=u.getStartOffset(f):(p=u.getStartOffset(f),g=u.getEndOffset(f));else if(m&&p!==g){const y=l(c,h,p,g);if(y)return y}m=v}if(m&&p!==g){const v=l(c,h,p,g);if(v)return v}}return null}_findMatchingBracketDown(t,n,i){const r=t.languageId,o=t.forwardRegex;let s=1,a=0;const l=(u,d,h,f)=>{for(;;){if(i&&++a%100===0&&!i())return Zk.INSTANCE;const p=wy.findNextBracketInRange(o,u,d,h,f);if(!p)break;const g=d.substring(p.startColumn-1,p.endColumn-1).toLowerCase();if(t.isOpen(g)?s++:t.isClose(g)&&s--,s===0)return p;h=p.endColumn-1}return null},c=this.textModel.getLineCount();for(let u=n.lineNumber;u<=c;u++){const d=this.textModel.tokenization.getLineTokens(u),h=d.getCount(),f=this.textModel.getLineContent(u);let p=0,g=0,m=0;u===n.lineNumber&&(p=d.findTokenIndexAtOffset(n.column-1),g=n.column-1,m=n.column-1);let v=!0;for(;p<h;p++){const y=d.getLanguageId(p)===r&&!zS(d.getStandardTokenType(p));if(y)v||(g=d.getStartOffset(p)),m=d.getEndOffset(p);else if(v&&g!==m){const b=l(u,f,g,m);if(b)return b}v=y}if(v&&g!==m){const y=l(u,f,g,m);if(y)return y}}return null}findPrevBracket(t){const n=this.textModel.validatePosition(t);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(n)||null;let i=null,r=null,o=null;for(let s=n.lineNumber;s>=1;s--){const a=this.textModel.tokenization.getLineTokens(s),l=a.getCount(),c=this.textModel.getLineContent(s);let u=l-1,d=c.length,h=c.length;if(s===n.lineNumber){u=a.findTokenIndexAtOffset(n.column-1),d=n.column-1,h=n.column-1;const p=a.getLanguageId(u);i!==p&&(i=p,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets,o=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew)}let f=!0;for(;u>=0;u--){const p=a.getLanguageId(u);if(i!==p){if(r&&o&&f&&d!==h){const m=wy.findPrevBracketInRange(r.reversedRegex,s,c,d,h);if(m)return this._toFoundBracket(o,m);f=!1}i=p,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets,o=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew}const g=!!r&&!zS(a.getStandardTokenType(u));if(g)f?d=a.getStartOffset(u):(d=a.getStartOffset(u),h=a.getEndOffset(u));else if(o&&r&&f&&d!==h){const m=wy.findPrevBracketInRange(r.reversedRegex,s,c,d,h);if(m)return this._toFoundBracket(o,m)}f=g}if(o&&r&&f&&d!==h){const p=wy.findPrevBracketInRange(r.reversedRegex,s,c,d,h);if(p)return this._toFoundBracket(o,p)}}return null}findNextBracket(t){const n=this.textModel.validatePosition(t);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(n)||null;const i=this.textModel.getLineCount();let r=null,o=null,s=null;for(let a=n.lineNumber;a<=i;a++){const l=this.textModel.tokenization.getLineTokens(a),c=l.getCount(),u=this.textModel.getLineContent(a);let d=0,h=0,f=0;if(a===n.lineNumber){d=l.findTokenIndexAtOffset(n.column-1),h=n.column-1,f=n.column-1;const g=l.getLanguageId(d);r!==g&&(r=g,o=this.languageConfigurationService.getLanguageConfiguration(r).brackets,s=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew)}let p=!0;for(;d<c;d++){const g=l.getLanguageId(d);if(r!==g){if(s&&o&&p&&h!==f){const v=wy.findNextBracketInRange(o.forwardRegex,a,u,h,f);if(v)return this._toFoundBracket(s,v);p=!1}r=g,o=this.languageConfigurationService.getLanguageConfiguration(r).brackets,s=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew}const m=!!o&&!zS(l.getStandardTokenType(d));if(m)p||(h=l.getStartOffset(d)),f=l.getEndOffset(d);else if(s&&o&&p&&h!==f){const v=wy.findNextBracketInRange(o.forwardRegex,a,u,h,f);if(v)return this._toFoundBracket(s,v)}p=m}if(s&&o&&p&&h!==f){const g=wy.findNextBracketInRange(o.forwardRegex,a,u,h,f);if(g)return this._toFoundBracket(s,g)}}return null}findEnclosingBrackets(t,n){const i=this.textModel.validatePosition(t);if(this.canBuildAST){const f=Re.fromPositions(i),p=this.getBracketPairsInRange(Re.fromPositions(i,i)).findLast(g=>g.closingBracketRange!==void 0&&g.range.strictContainsRange(f));return p?[p.openingBracketRange,p.closingBracketRange]:null}const r=gCe(n),o=this.textModel.getLineCount(),s=new Map;let a=[];const l=(f,p)=>{if(!s.has(f)){const g=[];for(let m=0,v=p?p.brackets.length:0;m<v;m++)g[m]=0;s.set(f,g)}a=s.get(f)};let c=0;const u=(f,p,g,m,v)=>{for(;;){if(r&&++c%100===0&&!r())return Zk.INSTANCE;const y=wy.findNextBracketInRange(f.forwardRegex,p,g,m,v);if(!y)break;const b=g.substring(y.startColumn-1,y.endColumn-1).toLowerCase(),w=f.textIsBracket[b];if(w&&(w.isOpen(b)?a[w.index]++:w.isClose(b)&&a[w.index]--,a[w.index]===-1))return this._matchFoundBracket(y,w,!1,r);m=y.endColumn-1}return null};let d=null,h=null;for(let f=i.lineNumber;f<=o;f++){const p=this.textModel.tokenization.getLineTokens(f),g=p.getCount(),m=this.textModel.getLineContent(f);let v=0,y=0,b=0;if(f===i.lineNumber){v=p.findTokenIndexAtOffset(i.column-1),y=i.column-1,b=i.column-1;const E=p.getLanguageId(v);d!==E&&(d=E,h=this.languageConfigurationService.getLanguageConfiguration(d).brackets,l(d,h))}let w=!0;for(;v<g;v++){const E=p.getLanguageId(v);if(d!==E){if(h&&w&&y!==b){const D=u(h,f,m,y,b);if(D)return KJ(D);w=!1}d=E,h=this.languageConfigurationService.getLanguageConfiguration(d).brackets,l(d,h)}const A=!!h&&!zS(p.getStandardTokenType(v));if(A)w||(y=p.getStartOffset(v)),b=p.getEndOffset(v);else if(h&&w&&y!==b){const D=u(h,f,m,y,b);if(D)return KJ(D)}w=A}if(h&&w&&y!==b){const E=u(h,f,m,y,b);if(E)return KJ(E)}}return null}_toFoundBracket(t,n){if(!n)return null;let i=this.textModel.getValueInRange(n);i=i.toLowerCase();const r=t.getBracketInfo(i);return r?{range:n,bracketInfo:r}:null}},Zk=(e=class{constructor(){this._searchCanceledBrand=void 0}},e.INSTANCE=new e,e)}}),AKt,mCe,HHn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/colorizedBracketPairsDecorationProvider.js"(){Un(),Nt(),Dn(),kb(),Ys(),AKt=class extends St{constructor(e){super(),this.textModel=e,this.colorProvider=new mCe,this.onDidChangeEmitter=new bt,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange(t=>{this.onDidChangeEmitter.fire()}))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,n,i){return i?[]:t===void 0?[]:this.colorizationOptions.enabled?this.textModel.bracketPairs.getBracketsInRange(e,!0).map(o=>({id:`bracket${o.range.toString()}-${o.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(o,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:o.range})).toArray():[]}getAllDecorations(e,t){return e===void 0?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new Re(1,1,this.textModel.getLineCount(),1),e,t):[]}},mCe=class{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return`bracket-highlighting-${e%30}`}},Ab((e,t)=>{const n=[xWe,EWe,AWe,DWe,TWe,kWe],i=new mCe;t.addRule(`.monaco-editor .${i.unexpectedClosingBracketClassName} { color: ${e.getColor($Gt)}; }`);const r=n.map(o=>e.getColor(o)).filter(o=>!!o).filter(o=>!o.isTransparent());for(let o=0;o<30;o++){const s=r[o%r.length];t.addRule(`.monaco-editor .${i.getInlineClassNameOfLevel(o)} { color: ${s}; }`)}})}});function YJ(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}function WHn(e,t){return e===null||e.length===0?t:new DKt(e,t).compress()}var S1,DKt,TKt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/textChange.js"(){JK(),TN(),S1=class WS{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(t,n,i,r){this.oldPosition=t,this.oldText=n,this.newPosition=i,this.newText=r}toString(){return this.oldText.length===0?`(insert@${this.oldPosition} "${YJ(this.newText)}")`:this.newText.length===0?`(delete@${this.oldPosition} "${YJ(this.oldText)}")`:`(replace@${this.oldPosition} "${YJ(this.oldText)}" with "${YJ(this.newText)}")`}static _writeStringSize(t){return 4+2*t.length}static _writeString(t,n,i){const r=n.length;L1(t,r,i),i+=4;for(let o=0;o<r;o++)d7n(t,n.charCodeAt(o),i),i+=2;return i}static _readString(t,n){const i=I1(t,n);return n+=4,f7n(t,n,i)}writeSize(){return 8+WS._writeStringSize(this.oldText)+WS._writeStringSize(this.newText)}write(t,n){return L1(t,this.oldPosition,n),n+=4,L1(t,this.newPosition,n),n+=4,n=WS._writeString(t,this.oldText,n),n=WS._writeString(t,this.newText,n),n}static read(t,n,i){const r=I1(t,n);n+=4;const o=I1(t,n);n+=4;const s=WS._readString(t,n);n+=WS._writeStringSize(s);const a=WS._readString(t,n);return n+=WS._writeStringSize(a),i.push(new WS(r,s,o,a)),n}},DKt=class TA{constructor(t,n){this._prevEdits=t,this._currEdits=n,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let t=0,n=0,i=this._getPrev(t),r=this._getCurr(n);for(;t<this._prevLen||n<this._currLen;){if(i===null){this._acceptCurr(r),r=this._getCurr(++n);continue}if(r===null){this._acceptPrev(i),i=this._getPrev(++t);continue}if(r.oldEnd<=i.newPosition){this._acceptCurr(r),r=this._getCurr(++n);continue}if(i.newEnd<=r.oldPosition){this._acceptPrev(i),i=this._getPrev(++t);continue}if(r.oldPosition<i.newPosition){const[c,u]=TA._splitCurr(r,i.newPosition-r.oldPosition);this._acceptCurr(c),r=u;continue}if(i.newPosition<r.oldPosition){const[c,u]=TA._splitPrev(i,r.oldPosition-i.newPosition);this._acceptPrev(c),i=u;continue}let a,l;if(r.oldEnd===i.newEnd)a=i,l=r,i=this._getPrev(++t),r=this._getCurr(++n);else if(r.oldEnd<i.newEnd){const[c,u]=TA._splitPrev(i,r.oldLength);a=c,l=r,i=u,r=this._getCurr(++n)}else{const[c,u]=TA._splitCurr(r,i.newLength);a=i,l=c,i=this._getPrev(++t),r=u}this._result[this._resultLen++]=new S1(a.oldPosition,a.oldText,l.newPosition,l.newText),this._prevDeltaOffset+=a.newLength-a.oldLength,this._currDeltaOffset+=l.newLength-l.oldLength}const o=TA._merge(this._result);return TA._removeNoOps(o)}_acceptCurr(t){this._result[this._resultLen++]=TA._rebaseCurr(this._prevDeltaOffset,t),this._currDeltaOffset+=t.newLength-t.oldLength}_getCurr(t){return t<this._currLen?this._currEdits[t]:null}_acceptPrev(t){this._result[this._resultLen++]=TA._rebasePrev(this._currDeltaOffset,t),this._prevDeltaOffset+=t.newLength-t.oldLength}_getPrev(t){return t<this._prevLen?this._prevEdits[t]:null}static _rebaseCurr(t,n){return new S1(n.oldPosition-t,n.oldText,n.newPosition,n.newText)}static _rebasePrev(t,n){return new S1(n.oldPosition,n.oldText,n.newPosition+t,n.newText)}static _splitPrev(t,n){const i=t.newText.substr(0,n),r=t.newText.substr(n);return[new S1(t.oldPosition,t.oldText,t.newPosition,i),new S1(t.oldEnd,"",t.newPosition+n,r)]}static _splitCurr(t,n){const i=t.oldText.substr(0,n),r=t.oldText.substr(n);return[new S1(t.oldPosition,i,t.newPosition,t.newText),new S1(t.oldPosition+n,r,t.newEnd,"")]}static _merge(t){if(t.length===0)return t;const n=[];let i=0,r=t[0];for(let o=1;o<t.length;o++){const s=t[o];r.oldEnd===s.oldPosition?r=new S1(r.oldPosition,r.oldText+s.oldText,r.newPosition,r.newText+s.newText):(n[i++]=r,r=s)}return n[i++]=r,n}static _removeNoOps(t){if(t.length===0)return t;const n=[];let i=0;for(let r=0;r<t.length;r++){const o=t[r];o.oldText!==o.newText&&(n[i++]=o)}return n}}}});function F5(e){return e.toString()}function vCe(e){return e.getEOL()===`
`?0:1}function $A(e){return e?e instanceof aBe||e instanceof kKt:!1}var e0,aBe,kKt,IKt,LKt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/editStack.js"(){bn(),Vi(),zs(),ss(),TKt(),JK(),bf(),e0=class kA{static create(t,n){const i=t.getAlternativeVersionId(),r=vCe(t);return new kA(i,i,r,r,n,n,[])}constructor(t,n,i,r,o,s,a){this.beforeVersionId=t,this.afterVersionId=n,this.beforeEOL=i,this.afterEOL=r,this.beforeCursorState=o,this.afterCursorState=s,this.changes=a}append(t,n,i,r,o){n.length>0&&(this.changes=WHn(this.changes,n)),this.afterEOL=i,this.afterVersionId=r,this.afterCursorState=o}static _writeSelectionsSize(t){return 4+16*(t?t.length:0)}static _writeSelections(t,n,i){if(L1(t,n?n.length:0,i),i+=4,n)for(const r of n)L1(t,r.selectionStartLineNumber,i),i+=4,L1(t,r.selectionStartColumn,i),i+=4,L1(t,r.positionLineNumber,i),i+=4,L1(t,r.positionColumn,i),i+=4;return i}static _readSelections(t,n,i){const r=I1(t,n);n+=4;for(let o=0;o<r;o++){const s=I1(t,n);n+=4;const a=I1(t,n);n+=4;const l=I1(t,n);n+=4;const c=I1(t,n);n+=4,i.push(new Ii(s,a,l,c))}return n}serialize(){let t=10+kA._writeSelectionsSize(this.beforeCursorState)+kA._writeSelectionsSize(this.afterCursorState)+4;for(const r of this.changes)t+=r.writeSize();const n=new Uint8Array(t);let i=0;L1(n,this.beforeVersionId,i),i+=4,L1(n,this.afterVersionId,i),i+=4,qst(n,this.beforeEOL,i),i+=1,qst(n,this.afterEOL,i),i+=1,i=kA._writeSelections(n,this.beforeCursorState,i),i=kA._writeSelections(n,this.afterCursorState,i),L1(n,this.changes.length,i),i+=4;for(const r of this.changes)i=r.write(n,i);return n.buffer}static deserialize(t){const n=new Uint8Array(t);let i=0;const r=I1(n,i);i+=4;const o=I1(n,i);i+=4;const s=$st(n,i);i+=1;const a=$st(n,i);i+=1;const l=[];i=kA._readSelections(n,i,l);const c=[];i=kA._readSelections(n,i,c);const u=I1(n,i);i+=4;const d=[];for(let h=0;h<u;h++)i=S1.read(n,i,d);return new kA(r,o,s,a,l,c,d)}},aBe=class{get type(){return 0}get resource(){return Ui.isUri(this.model)?this.model:this.model.uri}constructor(e,t,n,i){this.label=e,this.code=t,this.model=n,this._data=e0.create(n,i)}toString(){return(this._data instanceof e0?this._data:e0.deserialize(this._data)).changes.map(t=>t.toString()).join(", ")}matchesResource(e){return(Ui.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof e0}append(e,t,n,i,r){this._data instanceof e0&&this._data.append(e,t,n,i,r)}close(){this._data instanceof e0&&(this._data=this._data.serialize())}open(){this._data instanceof e0||(this._data=e0.deserialize(this._data))}undo(){if(Ui.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof e0&&(this._data=this._data.serialize());const e=e0.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(Ui.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof e0&&(this._data=this._data.serialize());const e=e0.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof e0&&(this._data=this._data.serialize()),this._data.byteLength+168}},kKt=class{get resources(){return this._editStackElementsArr.map(e=>e.resource)}constructor(e,t,n){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=n.slice(0),this._editStackElementsMap=new Map;for(const i of this._editStackElementsArr){const r=F5(i.resource);this._editStackElementsMap.set(r,i)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=F5(e);return this._editStackElementsMap.has(t)}setModel(e){const t=F5(Ui.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=F5(e.uri);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).canAppend(e):!1}append(e,t,n,i,r){const o=F5(e.uri);this._editStackElementsMap.get(o).append(e,t,n,i,r)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=F5(e);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).heapSize():0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${E0(t.resource)}: ${t}`);return`{${e.join(", ")}}`}},IKt=class NKt{constructor(t,n){this._model=t,this._undoRedoService=n}pushStackElement(){const t=this._undoRedoService.getLastElement(this._model.uri);$A(t)&&t.close()}popStackElement(){const t=this._undoRedoService.getLastElement(this._model.uri);$A(t)&&t.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(t,n){const i=this._undoRedoService.getLastElement(this._model.uri);if($A(i)&&i.canAppend(this._model))return i;const r=new aBe(R("edit","Typing"),"undoredo.textBufferEdit",this._model,t);return this._undoRedoService.pushElement(r,n),r}pushEOL(t){const n=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(t),n.append(this._model,[],vCe(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(t,n,i,r){const o=this._getOrCreateEditStackElement(t,r),s=this._model.applyEdits(n,!0),a=NKt._computeCursorState(i,s),l=s.map((c,u)=>({index:u,textChange:c.textChange}));return l.sort((c,u)=>c.textChange.oldPosition===u.textChange.oldPosition?c.index-u.index:c.textChange.oldPosition-u.textChange.oldPosition),o.append(this._model,l.map(c=>c.textChange),vCe(this._model),this._model.getAlternativeVersionId(),a),a}static _computeCursorState(t,n){try{return t?t(n):null}catch(i){return Mr(i),null}}}}}),FWe,PKt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/textModelPart.js"(){Nt(),FWe=class extends St{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}}});function Cge(e,t){let n=0,i=0;const r=e.length;for(;i<r;){const o=e.charCodeAt(i);if(o===32)n++;else if(o===9)n=n-n%t+t;else break;i++}return i===r?-1:n}var BWe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/utils.js"(){}}),yR,VI,Y6,jWe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/textModelGuides.js"(){(function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"})(yR||(yR={})),VI=class{constructor(e,t,n,i,r,o){if(this.visibleColumn=e,this.column=t,this.className=n,this.horizontalLine=i,this.forWrappedLinesAfterColumn=r,this.forWrappedLinesBeforeOrAtColumn=o,e!==-1==(t!==-1))throw new Error}},Y6=class{constructor(e,t){this.top=e,this.endColumn=t}}}}),MKt,lBe,OKt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/guidesTextModelPart.js"(){Y0(),Ki(),HC(),Dn(),PKt(),BWe(),jWe(),Vi(),MKt=class extends FWe{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return Cge(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,n){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new ys("Illegal value for lineNumber");const r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,o=!!(r&&r.offSide);let s=-2,a=-1,l=-2,c=-1;const u=A=>{if(s!==-1&&(s===-2||s>A-1)){s=-1,a=-1;for(let D=A-2;D>=0;D--){const T=this._computeIndentLevel(D);if(T>=0){s=D,a=T;break}}}if(l===-2){l=-1,c=-1;for(let D=A;D<i;D++){const T=this._computeIndentLevel(D);if(T>=0){l=D,c=T;break}}}};let d=-2,h=-1,f=-2,p=-1;const g=A=>{if(d===-2){d=-1,h=-1;for(let D=A-2;D>=0;D--){const T=this._computeIndentLevel(D);if(T>=0){d=D,h=T;break}}}if(f!==-1&&(f===-2||f<A-1)){f=-1,p=-1;for(let D=A;D<i;D++){const T=this._computeIndentLevel(D);if(T>=0){f=D,p=T;break}}}};let m=0,v=!0,y=0,b=!0,w=0,E=0;for(let A=0;v||b;A++){const D=e-A,T=e+A;A>1&&(D<1||D<t)&&(v=!1),A>1&&(T>i||T>n)&&(b=!1),A>5e4&&(v=!1,b=!1);let M=-1;if(v&&D>=1){const F=this._computeIndentLevel(D-1);F>=0?(l=D-1,c=F,M=Math.ceil(F/this.textModel.getOptions().indentSize)):(u(D),M=this._getIndentLevelForWhitespaceLine(o,a,c))}let P=-1;if(b&&T<=i){const F=this._computeIndentLevel(T-1);F>=0?(d=T-1,h=F,P=Math.ceil(F/this.textModel.getOptions().indentSize)):(g(T),P=this._getIndentLevelForWhitespaceLine(o,h,p))}if(A===0){E=M;continue}if(A===1){if(T<=i&&P>=0&&E+1===P){v=!1,m=T,y=T,w=P;continue}if(D>=1&&M>=0&&M-1===E){b=!1,m=D,y=D,w=M;continue}if(m=e,y=e,w=E,w===0)return{startLineNumber:m,endLineNumber:y,indent:w}}v&&(M>=w?m=D:v=!1),b&&(P>=w?y=T:b=!1)}return{startLineNumber:m,endLineNumber:y,indent:w}}getLinesBracketGuides(e,t,n,i){const r=[];for(let u=e;u<=t;u++)r.push([]);const o=!0,s=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new Re(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let a;if(n&&s.length>0){const u=(e<=n.lineNumber&&n.lineNumber<=t?s:this.textModel.bracketPairs.getBracketPairsInRange(Re.fromPositions(n)).toArray()).filter(d=>Re.strictContainsPosition(d.range,n));a=Kq(u,d=>o)?.range}const l=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,c=new lBe;for(const u of s){if(!u.closingBracketRange)continue;const d=a&&u.range.equalsRange(a);if(!d&&!i.includeInactive)continue;const h=c.getInlineClassName(u.nestingLevel,u.nestingLevelOfEqualBracketType,l)+(i.highlightActive&&d?" "+c.activeClassName:""),f=u.openingBracketRange.getStartPosition(),p=u.closingBracketRange.getStartPosition(),g=i.horizontalGuides===yR.Enabled||i.horizontalGuides===yR.EnabledForActive&&d;if(u.range.startLineNumber===u.range.endLineNumber){g&&r[u.range.startLineNumber-e].push(new VI(-1,u.openingBracketRange.getEndPosition().column,h,new Y6(!1,p.column),-1,-1));continue}const m=this.getVisibleColumnFromPosition(p),v=this.getVisibleColumnFromPosition(u.openingBracketRange.getStartPosition()),y=Math.min(v,m,u.minVisibleColumnIndentation+1);let b=!1;Cp(this.textModel.getLineContent(u.closingBracketRange.startLineNumber))<u.closingBracketRange.startColumn-1&&(b=!0);const A=Math.max(f.lineNumber,e),D=Math.min(p.lineNumber,t),T=b?1:0;for(let M=A;M<D+T;M++)r[M-e].push(new VI(y,-1,h,null,M===f.lineNumber?f.column:-1,M===p.lineNumber?p.column:-1));g&&(f.lineNumber>=e&&v>y&&r[f.lineNumber-e].push(new VI(y,-1,h,new Y6(!1,f.column),-1,-1)),p.lineNumber<=t&&m>y&&r[p.lineNumber-e].push(new VI(y,-1,h,new Y6(!b,p.column),-1,-1)))}for(const u of r)u.sort((d,h)=>d.visibleColumn-h.visibleColumn);return r}getVisibleColumnFromPosition(e){return cd.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const n=this.textModel.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");const i=this.textModel.getOptions(),r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,o=!!(r&&r.offSide),s=new Array(t-e+1);let a=-2,l=-1,c=-2,u=-1;for(let d=e;d<=t;d++){const h=d-e,f=this._computeIndentLevel(d-1);if(f>=0){a=d-1,l=f,s[h]=Math.ceil(f/i.indentSize);continue}if(a===-2){a=-1,l=-1;for(let p=d-2;p>=0;p--){const g=this._computeIndentLevel(p);if(g>=0){a=p,l=g;break}}}if(c!==-1&&(c===-2||c<d-1)){c=-1,u=-1;for(let p=d;p<n;p++){const g=this._computeIndentLevel(p);if(g>=0){c=p,u=g;break}}}s[h]=this._getIndentLevelForWhitespaceLine(o,l,u)}return s}_getIndentLevelForWhitespaceLine(e,t,n){const i=this.textModel.getOptions();return t===-1||n===-1?0:t<n?1+Math.floor(t/i.indentSize):t===n||e?Math.ceil(n/i.indentSize):1+Math.floor(n/i.indentSize)}},lBe=class{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,n){return this.getInlineClassNameOfLevel(n?t:e)}getInlineClassNameOfLevel(e){return`bracket-indent-guide lvl-${e%30}`}}}});function UHn(e,t,n,i,r){r.spacesDiff=0,r.looksLikeAlignment=!1;let o;for(o=0;o<t&&o<i;o++){const h=e.charCodeAt(o),f=n.charCodeAt(o);if(h!==f)break}let s=0,a=0;for(let h=o;h<t;h++)e.charCodeAt(h)===32?s++:a++;let l=0,c=0;for(let h=o;h<i;h++)n.charCodeAt(h)===32?l++:c++;if(s>0&&a>0||l>0&&c>0)return;const u=Math.abs(a-c),d=Math.abs(s-l);if(u===0){r.spacesDiff=d,d>0&&0<=l-1&&l-1<e.length&&l<n.length&&n.charCodeAt(l)!==32&&e.charCodeAt(l-1)===32&&e.charCodeAt(e.length-1)===44&&(r.looksLikeAlignment=!0);return}if(d%u===0){r.spacesDiff=d/u;return}}function adt(e,t,n){const i=Math.min(e.getLineCount(),1e4);let r=0,o=0,s="",a=0;const l=[2,4,6,8,3,5,7],c=8,u=[0,0,0,0,0,0,0,0,0],d=new RKt;for(let p=1;p<=i;p++){const g=e.getLineLength(p),m=e.getLineContent(p),v=g<=65536;let y=!1,b=0,w=0,E=0;for(let D=0,T=g;D<T;D++){const M=v?m.charCodeAt(D):e.getLineCharCode(p,D);if(M===9)E++;else if(M===32)w++;else{y=!0,b=D;break}}if(!y||(E>0?r++:w>1&&o++,UHn(s,a,m,b,d),d.looksLikeAlignment&&!(n&&t===d.spacesDiff)))continue;const A=d.spacesDiff;A<=c&&u[A]++,s=m,a=b}let h=n;r!==o&&(h=r<o);let f=t;if(h){let p=h?0:.1*i;l.forEach(g=>{const m=u[g];m>p&&(p=m,f=g)}),f===4&&u[4]>0&&u[2]>0&&u[2]>=u[4]/2&&(f=2)}return{insertSpaces:h,tabSize:f}}var RKt,$Hn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/indentationGuesser.js"(){RKt=class{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}}});function Gg(e){return(e.metadata&1)>>>0}function rl(e,t){e.metadata=e.metadata&254|t<<0}function df(e){return(e.metadata&2)>>>1===1}function el(e,t){e.metadata=e.metadata&253|(t?1:0)<<1}function FKt(e){return(e.metadata&4)>>>2===1}function ldt(e,t){e.metadata=e.metadata&251|(t?1:0)<<2}function BKt(e){return(e.metadata&64)>>>6===1}function cdt(e,t){e.metadata=e.metadata&191|(t?1:0)<<6}function qHn(e){return(e.metadata&24)>>>3}function udt(e,t){e.metadata=e.metadata&231|t<<3}function GHn(e){return(e.metadata&32)>>>5===1}function ddt(e,t){e.metadata=e.metadata&223|(t?1:0)<<5}function KHn(e){let t=e.root,n=0;for(;t!==So;){if(t.left!==So&&!df(t.left)){t=t.left;continue}if(t.right!==So&&!df(t.right)){n+=t.delta,t=t.right;continue}t.start=n+t.start,t.end=n+t.end,t.delta=0,RL(t),el(t,!0),el(t.left,!1),el(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent}el(e.root,!1)}function B5(e,t,n,i){return e<n?!0:e>n||i===1?!1:i===2?!0:t}function YHn(e,t,n,i,r){const o=qHn(e),s=o===0||o===2,a=o===1||o===2,l=n-t,c=i,u=Math.min(l,c),d=e.start;let h=!1;const f=e.end;let p=!1;t<=d&&f<=n&&GHn(e)&&(e.start=t,h=!0,e.end=t,p=!0);{const m=r?1:l>0?2:0;!h&&B5(d,s,t,m)&&(h=!0),!p&&B5(f,a,t,m)&&(p=!0)}if(u>0&&!r){const m=l>c?2:0;!h&&B5(d,s,t+u,m)&&(h=!0),!p&&B5(f,a,t+u,m)&&(p=!0)}{const m=r?1:0;!h&&B5(d,s,n,m)&&(e.start=t+c,h=!0),!p&&B5(f,a,n,m)&&(e.end=t+c,p=!0)}const g=c-l;h||(e.start=Math.max(0,d+g)),p||(e.end=Math.max(0,f+g)),e.start>e.end&&(e.end=e.start)}function QHn(e,t,n){let i=e.root,r=0,o=0,s=0,a=0;const l=[];let c=0;for(;i!==So;){if(df(i)){el(i.left,!1),el(i.right,!1),i===i.parent.right&&(r-=i.parent.delta),i=i.parent;continue}if(!df(i.left)){if(o=r+i.maxEnd,o<t){el(i,!0);continue}if(i.left!==So){i=i.left;continue}}if(s=r+i.start,s>n){el(i,!0);continue}if(a=r+i.end,a>=t&&(i.setCachedOffsets(s,a,0),l[c++]=i),el(i,!0),i.right!==So&&!df(i.right)){r+=i.delta,i=i.right;continue}}return el(e.root,!1),l}function ZHn(e,t,n,i){let r=e.root,o=0,s=0,a=0;const l=i-(n-t);for(;r!==So;){if(df(r)){el(r.left,!1),el(r.right,!1),r===r.parent.right&&(o-=r.parent.delta),RL(r),r=r.parent;continue}if(!df(r.left)){if(s=o+r.maxEnd,s<t){el(r,!0);continue}if(r.left!==So){r=r.left;continue}}if(a=o+r.start,a>n){r.start+=l,r.end+=l,r.delta+=l,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0),el(r,!0);continue}if(el(r,!0),r.right!==So&&!df(r.right)){o+=r.delta,r=r.right;continue}}el(e.root,!1)}function XHn(e,t){let n=e.root;const i=[];let r=0;for(;n!==So;){if(df(n)){el(n.left,!1),el(n.right,!1),n=n.parent;continue}if(n.left!==So&&!df(n.left)){n=n.left;continue}if(n.ownerId===t&&(i[r++]=n),el(n,!0),n.right!==So&&!df(n.right)){n=n.right;continue}}return el(e.root,!1),i}function JHn(e){let t=e.root;const n=[];let i=0;for(;t!==So;){if(df(t)){el(t.left,!1),el(t.right,!1),t=t.parent;continue}if(t.left!==So&&!df(t.left)){t=t.left;continue}if(t.right!==So&&!df(t.right)){t=t.right;continue}n[i++]=t,el(t,!0)}return el(e.root,!1),n}function eWn(e,t,n,i,r){let o=e.root,s=0,a=0,l=0;const c=[];let u=0;for(;o!==So;){if(df(o)){el(o.left,!1),el(o.right,!1),o===o.parent.right&&(s-=o.parent.delta),o=o.parent;continue}if(o.left!==So&&!df(o.left)){o=o.left;continue}a=s+o.start,l=s+o.end,o.setCachedOffsets(a,l,i);let d=!0;if(t&&o.ownerId&&o.ownerId!==t&&(d=!1),n&&FKt(o)&&(d=!1),r&&!BKt(o)&&(d=!1),d&&(c[u++]=o),el(o,!0),o.right!==So&&!df(o.right)){s+=o.delta,o=o.right;continue}}return el(e.root,!1),c}function tWn(e,t,n,i,r,o,s){let a=e.root,l=0,c=0,u=0,d=0;const h=[];let f=0;for(;a!==So;){if(df(a)){el(a.left,!1),el(a.right,!1),a===a.parent.right&&(l-=a.parent.delta),a=a.parent;continue}if(!df(a.left)){if(c=l+a.maxEnd,c<t){el(a,!0);continue}if(a.left!==So){a=a.left;continue}}if(u=l+a.start,u>n){el(a,!0);continue}if(d=l+a.end,d>=t){a.setCachedOffsets(u,d,o);let p=!0;i&&a.ownerId&&a.ownerId!==i&&(p=!1),r&&FKt(a)&&(p=!1),s&&!BKt(a)&&(p=!1),p&&(h[f++]=a)}if(el(a,!0),a.right!==So&&!df(a.right)){l+=a.delta,a=a.right;continue}}return el(e.root,!1),h}function hdt(e,t){if(e.root===So)return t.parent=So,t.left=So,t.right=So,rl(t,0),e.root=t,e.root;nWn(e,t),Xk(t.parent);let n=t;for(;n!==e.root&&Gg(n.parent)===1;)if(n.parent===n.parent.parent.left){const i=n.parent.parent.right;Gg(i)===1?(rl(n.parent,0),rl(i,0),rl(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&(n=n.parent,e$(e,n)),rl(n.parent,0),rl(n.parent.parent,1),t$(e,n.parent.parent))}else{const i=n.parent.parent.left;Gg(i)===1?(rl(n.parent,0),rl(i,0),rl(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&(n=n.parent,t$(e,n)),rl(n.parent,0),rl(n.parent.parent,1),e$(e,n.parent.parent))}return rl(e.root,0),t}function nWn(e,t){let n=0,i=e.root;const r=t.start,o=t.end;for(;;)if(rWn(r,o,i.start+n,i.end+n)<0)if(i.left===So){t.start-=n,t.end-=n,t.maxEnd-=n,i.left=t;break}else i=i.left;else if(i.right===So){t.start-=n+i.delta,t.end-=n+i.delta,t.maxEnd-=n+i.delta,i.right=t;break}else n+=i.delta,i=i.right;t.parent=i,t.left=So,t.right=So,rl(t,1)}function fdt(e,t){let n,i;if(t.left===So?(n=t.right,i=t,n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===So?(n=t.left,i=t):(i=iWn(t.right),n=i.right,n.start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0)),i===e.root){e.root=n,rl(n,0),t.detach(),yCe(),RL(n),e.root.parent=So;return}const r=Gg(i)===1;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?n.parent=i.parent:(i.parent===t?n.parent=i:n.parent=i.parent,i.left=t.left,i.right=t.right,i.parent=t.parent,rl(i,Gg(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==So&&(i.left.parent=i),i.right!==So&&(i.right.parent=i)),t.detach(),r){Xk(n.parent),i!==t&&(Xk(i),Xk(i.parent)),yCe();return}Xk(n),Xk(n.parent),i!==t&&(Xk(i),Xk(i.parent));let o;for(;n!==e.root&&Gg(n)===0;)n===n.parent.left?(o=n.parent.right,Gg(o)===1&&(rl(o,0),rl(n.parent,1),e$(e,n.parent),o=n.parent.right),Gg(o.left)===0&&Gg(o.right)===0?(rl(o,1),n=n.parent):(Gg(o.right)===0&&(rl(o.left,0),rl(o,1),t$(e,o),o=n.parent.right),rl(o,Gg(n.parent)),rl(n.parent,0),rl(o.right,0),e$(e,n.parent),n=e.root)):(o=n.parent.left,Gg(o)===1&&(rl(o,0),rl(n.parent,1),t$(e,n.parent),o=n.parent.left),Gg(o.left)===0&&Gg(o.right)===0?(rl(o,1),n=n.parent):(Gg(o.left)===0&&(rl(o.right,0),rl(o,1),e$(e,o),o=n.parent.left),rl(o,Gg(n.parent)),rl(n.parent,0),rl(o.left,0),t$(e,n.parent),n=e.root));rl(n,0),yCe()}function iWn(e){for(;e.left!==So;)e=e.left;return e}function yCe(){So.parent=So,So.delta=0,So.start=0,So.end=0}function e$(e,t){const n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==So&&(n.left.parent=t),n.parent=t.parent,t.parent===So?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,RL(t),RL(n)}function t$(e,t){const n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==So&&(n.right.parent=t),n.parent=t.parent,t.parent===So?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,RL(t),RL(n)}function jKt(e){let t=e.end;if(e.left!==So){const n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==So){const n=e.right.maxEnd+e.delta;n>t&&(t=n)}return t}function RL(e){e.maxEnd=jKt(e)}function Xk(e){for(;e!==So;){const t=jKt(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function rWn(e,t,n,i){return e===n?t-i:e-n}var cBe,So,Bse,oWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/intervalTree.js"(){cBe=class{constructor(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,rl(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,ldt(this,!1),cdt(this,!1),udt(this,1),ddt(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,el(this,!1)}reset(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i}setOptions(e){this.options=e;const t=this.options.className;ldt(this,t==="squiggly-error"||t==="squiggly-warning"||t==="squiggly-info"),cdt(this,this.options.glyphMarginClassName!==null),udt(this,this.options.stickiness),ddt(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}},So=new cBe(null,0,0),So.parent=So,So.left=So,So.right=So,rl(So,0),Bse=class{constructor(){this.root=So,this.requestNormalizeDelta=!1}intervalSearch(e,t,n,i,r,o){return this.root===So?[]:tWn(this,e,t,n,i,r,o)}search(e,t,n,i){return this.root===So?[]:eWn(this,e,t,n,i)}collectNodesFromOwner(e){return XHn(this,e)}collectNodesPostOrder(){return JHn(this)}insert(e){hdt(this,e),this._normalizeDeltaIfNecessary()}delete(e){fdt(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const n=e;let i=0;for(;e!==this.root;)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;const r=n.start+i,o=n.end+i;n.setCachedOffsets(r,o,t)}acceptReplace(e,t,n,i){const r=QHn(this,e,e+t);for(let o=0,s=r.length;o<s;o++){const a=r[o];fdt(this,a)}this._normalizeDeltaIfNecessary(),ZHn(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(let o=0,s=r.length;o<s;o++){const a=r[o];a.start=a.cachedAbsoluteStart,a.end=a.cachedAbsoluteEnd,YHn(a,e,e+t,n,i),a.maxEnd=a.end,hdt(this,a)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,KHn(this))}}}});function zWe(e){for(;e.left!==$r;)e=e.left;return e}function zKt(e){for(;e.right!==$r;)e=e.right;return e}function VWe(e){return e===$r?0:e.size_left+e.piece.length+VWe(e.right)}function HWe(e){return e===$r?0:e.lf_left+e.piece.lineFeedCnt+HWe(e.right)}function bCe(){$r.parent=$r}function n$(e,t){const n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==$r&&(n.left.parent=t),n.parent=t.parent,t.parent===$r?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function i$(e,t){const n=t.left;t.left=n.right,n.right!==$r&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===$r?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function QJ(e,t){let n,i;if(t.left===$r?(i=t,n=i.right):t.right===$r?(i=t,n=i.left):(i=zWe(t.right),n=i.right),i===e.root){e.root=n,n.color=0,t.detach(),bCe(),e.root.parent=$r;return}const r=i.color===1;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,aW(e,n)):(i.parent===t?n.parent=i:n.parent=i.parent,aW(e,n),i.left=t.left,i.right=t.right,i.parent=t.parent,i.color=t.color,t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==$r&&(i.left.parent=i),i.right!==$r&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,aW(e,i)),t.detach(),n.parent.left===n){const s=VWe(n),a=HWe(n);if(s!==n.parent.size_left||a!==n.parent.lf_left){const l=s-n.parent.size_left,c=a-n.parent.lf_left;n.parent.size_left=s,n.parent.lf_left=a,IA(e,n.parent,l,c)}}if(aW(e,n.parent),r){bCe();return}let o;for(;n!==e.root&&n.color===0;)n===n.parent.left?(o=n.parent.right,o.color===1&&(o.color=0,n.parent.color=1,n$(e,n.parent),o=n.parent.right),o.left.color===0&&o.right.color===0?(o.color=1,n=n.parent):(o.right.color===0&&(o.left.color=0,o.color=1,i$(e,o),o=n.parent.right),o.color=n.parent.color,n.parent.color=0,o.right.color=0,n$(e,n.parent),n=e.root)):(o=n.parent.left,o.color===1&&(o.color=0,n.parent.color=1,i$(e,n.parent),o=n.parent.left),o.left.color===0&&o.right.color===0?(o.color=1,n=n.parent):(o.left.color===0&&(o.right.color=0,o.color=1,n$(e,o),o=n.parent.left),o.color=n.parent.color,n.parent.color=0,o.left.color=0,i$(e,n.parent),n=e.root));n.color=0,bCe()}function pdt(e,t){for(aW(e,t);t!==e.root&&t.parent.color===1;)if(t.parent===t.parent.parent.left){const n=t.parent.parent.right;n.color===1?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&(t=t.parent,n$(e,t)),t.parent.color=0,t.parent.parent.color=1,i$(e,t.parent.parent))}else{const n=t.parent.parent.left;n.color===1?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&(t=t.parent,i$(e,t)),t.parent.color=0,t.parent.parent.color=1,n$(e,t.parent.parent))}e.root.color=0}function IA(e,t,n,i){for(;t!==e.root&&t!==$r;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}function aW(e,t){let n=0,i=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(t=t.parent,n=VWe(t.left)-t.size_left,i=HWe(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=i;t!==e.root&&(n!==0||i!==0);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}}var cde,$r,sWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/pieceTreeTextBuffer/rbTreeBase.js"(){cde=class{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==$r)return zWe(this.right);let e=this;for(;e.parent!==$r&&e.parent.left!==e;)e=e.parent;return e.parent===$r?$r:e.parent}prev(){if(this.left!==$r)return zKt(this.left);let e=this;for(;e.parent!==$r&&e.parent.right!==e;)e=e.parent;return e.parent===$r?$r:e.parent}detach(){this.parent=null,this.left=null,this.right=null}},$r=new cde(null,0),$r.parent=$r,$r.left=$r,$r.right=$r,$r.color=0}});function VKt(e){let t;return e[e.length-1]<65536?t=new Uint16Array(e.length):t=new Uint32Array(e.length),t.set(e,0),t}function BA(e,t=!0){const n=[0];let i=1;for(let r=0,o=e.length;r<o;r++){const s=e.charCodeAt(r);s===13?r+1<o&&e.charCodeAt(r+1)===10?(n[i++]=r+2,r++):n[i++]=r+1:s===10&&(n[i++]=r+1)}return t?VKt(n):n}function aWn(e,t){e.length=0,e[0]=0;let n=1,i=0,r=0,o=0,s=!0;for(let l=0,c=t.length;l<c;l++){const u=t.charCodeAt(l);u===13?l+1<c&&t.charCodeAt(l+1)===10?(o++,e[n++]=l+2,l++):(i++,e[n++]=l+1):u===10?(r++,e[n++]=l+1):s&&u!==9&&(u<32||u>126)&&(s=!1)}const a=new HKt(VKt(e),i,r,o,s);return e.length=0,a}var SS,HKt,Fg,gI,gdt,mdt,WKt,UKt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.js"(){Hi(),Dn(),Cd(),sWn(),Jpe(),SS=65535,HKt=class{constructor(e,t,n,i,r){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=i,this.isBasicASCII=r}},Fg=class{constructor(e,t,n,i,r){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=i,this.length=r}},gI=class{constructor(e,t){this.buffer=e,this.lineStarts=t}},gdt=class{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==$r&&e.iterate(e.root,n=>(n!==$r&&this._pieces.push(n.piece),!0))}read(){return this._pieces.length===0?this._index===0?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:this._index===0?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}},mdt=class{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const n=this._cache;for(let i=0;i<n.length;i++){const r=n[i];if(r.node.parent===null||r.nodeStartOffset>=e){n[i]=null,t=!0;continue}}if(t){const i=[];for(const r of n)r!==null&&i.push(r);this._cache=i}}},WKt=class{constructor(e,t,n){this.create(e,t,n)}create(e,t,n){this._buffers=[new gI("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=$r,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;let i=null;for(let r=0,o=e.length;r<o;r++)if(e[r].buffer.length>0){e[r].lineStarts||(e[r].lineStarts=BA(e[r].buffer));const s=new Fg(r+1,{line:0,column:0},{line:e[r].lineStarts.length-1,column:e[r].buffer.length-e[r].lineStarts[e[r].lineStarts.length-1]},e[r].lineStarts.length-1,e[r].buffer.length);this._buffers.push(e[r]),i=this.rbInsertRight(i,s)}this._searchCache=new mdt(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=SS,n=t-Math.floor(t/3),i=n*2;let r="",o=0;const s=[];if(this.iterate(this.root,a=>{const l=this.getNodeContent(a),c=l.length;if(o<=n||o+c<i)return r+=l,o+=c,!0;const u=r.replace(/\r\n|\r|\n/g,e);return s.push(new gI(u,BA(u))),r=l,o=c,!0}),o>0){const a=r.replace(/\r\n|\r|\n/g,e);s.push(new gI(a,BA(a)))}this.create(s,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new gdt(this,e)}getOffsetAt(e,t){let n=0,i=this.root;for(;i!==$r;)if(i.left!==$r&&i.lf_left+1>=e)i=i.left;else if(i.lf_left+i.piece.lineFeedCnt+1>=e){n+=i.size_left;const r=this.getAccumulatedValue(i,e-i.lf_left-2);return n+=r+t-1}else e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right;return n}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,n=0;const i=e;for(;t!==$r;)if(t.size_left!==0&&t.size_left>=e)t=t.left;else if(t.size_left+t.piece.length>=e){const r=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+r.index,r.index===0){const o=this.getOffsetAt(n+1,1),s=i-o;return new mt(n+1,s+1)}return new mt(n+1,r.remainder+1)}else if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===$r){const r=this.getOffsetAt(n+1,1),o=i-e-r;return new mt(n+1,o+1)}else t=t.right;return new mt(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),r=this.getValueInRange2(n,i);return t?t!==this._EOL||!this._EOLNormalized?r.replace(/\r\n|\r|\n/g,t):t===this.getEOL()&&this._EOLNormalized?r:r.replace(/\r\n|\r|\n/g,t):r}getValueInRange2(e,t){if(e.node===t.node){const s=e.node,a=this._buffers[s.piece.bufferIndex].buffer,l=this.offsetInBuffer(s.piece.bufferIndex,s.piece.start);return a.substring(l+e.remainder,l+t.remainder)}let n=e.node;const i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);let o=i.substring(r+e.remainder,r+n.piece.length);for(n=n.next();n!==$r;){const s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(n===t.node){o+=s.substring(a,a+t.remainder);break}else o+=s.substr(a,n.piece.length);n=n.next()}return o}getLinesContent(){const e=[];let t=0,n="",i=!1;return this.iterate(this.root,r=>{if(r===$r)return!0;const o=r.piece;let s=o.length;if(s===0)return!0;const a=this._buffers[o.bufferIndex].buffer,l=this._buffers[o.bufferIndex].lineStarts,c=o.start.line,u=o.end.line;let d=l[c]+o.start.column;if(i&&(a.charCodeAt(d)===10&&(d++,s--),e[t++]=n,n="",i=!1,s===0))return!0;if(c===u)return!this._EOLNormalized&&a.charCodeAt(d+s-1)===13?(i=!0,n+=a.substr(d,s-1)):n+=a.substr(d,s),!0;n+=this._EOLNormalized?a.substring(d,Math.max(d,l[c+1]-this._EOLLength)):a.substring(d,l[c+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;for(let h=c+1;h<u;h++)n=this._EOLNormalized?a.substring(l[h],l[h+1]-this._EOLLength):a.substring(l[h],l[h+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;return!this._EOLNormalized&&a.charCodeAt(l[u]+o.end.column-1)===13?(i=!0,o.end.column===0?t--:n=a.substr(l[u],o.end.column-1)):n=a.substr(l[u],o.end.column),!0}),i&&(e[t++]=n,n=""),e[t++]=n,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const n=this._buffers[t.piece.bufferIndex],i=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return n.buffer.charCodeAt(i)}else{const t=this._buffers[e.node.piece.bufferIndex],i=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(i)}}getLineCharCode(e,t){const n=this.nodeAt2(e,t+1);return this._getCharCode(n)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,n,i,r,o,s,a,l,c,u){const d=this._buffers[e.piece.bufferIndex],h=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),f=this.offsetInBuffer(e.piece.bufferIndex,r),p=this.offsetInBuffer(e.piece.bufferIndex,o);let g;const m={line:0,column:0};let v,y;t._wordSeparators?(v=d.buffer.substring(f,p),y=b=>b+f,t.reset(0)):(v=d.buffer,y=b=>b,t.reset(f));do if(g=t.next(v),g){if(y(g.index)>=p)return c;this.positionInBuffer(e,y(g.index)-h,m);const b=this.getLineFeedCnt(e.piece.bufferIndex,r,m),w=m.line===r.line?m.column-r.column+i:m.column+1,E=w+g[0].length;if(u[c++]=dO(new Re(n+b,w,n+b,E),g,a),y(g.index)+g[0].length>=p||c>=l)return c}while(g);return c}findMatchesLineByLine(e,t,n,i){const r=[];let o=0;const s=new hO(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(a===null)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(l===null)return[];let c=this.positionInBuffer(a.node,a.remainder);const u=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,s,e.startLineNumber,e.startColumn,c,u,t,n,i,o,r),r;let d=e.startLineNumber,h=a.node;for(;h!==l.node;){const p=this.getLineFeedCnt(h.piece.bufferIndex,c,h.piece.end);if(p>=1){const m=this._buffers[h.piece.bufferIndex].lineStarts,v=this.offsetInBuffer(h.piece.bufferIndex,h.piece.start),y=m[c.line+p],b=d===e.startLineNumber?e.startColumn:1;if(o=this.findMatchesInNode(h,s,d,b,c,this.positionInBuffer(h,y-v),t,n,i,o,r),o>=i)return r;d+=p}const g=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){const m=this.getLineContent(d).substring(g,e.endColumn-1);return o=this._findMatchesInLine(t,s,m,e.endLineNumber,g,o,r,n,i),r}if(o=this._findMatchesInLine(t,s,this.getLineContent(d).substr(g),d,g,o,r,n,i),o>=i)return r;d++,a=this.nodeAt2(d,1),h=a.node,c=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){const p=d===e.startLineNumber?e.startColumn-1:0,g=this.getLineContent(d).substring(p,e.endColumn-1);return o=this._findMatchesInLine(t,s,g,e.endLineNumber,p,o,r,n,i),r}const f=d===e.startLineNumber?e.startColumn:1;return o=this.findMatchesInNode(l.node,s,d,f,c,u,t,n,i,o,r),r}_findMatchesInLine(e,t,n,i,r,o,s,a,l){const c=e.wordSeparators;if(!a&&e.simpleSearch){const d=e.simpleSearch,h=d.length,f=n.length;let p=-h;for(;(p=n.indexOf(d,p+h))!==-1;)if((!c||z5e(c,n,f,p,h))&&(s[o++]=new n9(new Re(i,p+1+r,i,p+1+h+r),null),o>=l))return o;return o}let u;t.reset(0);do if(u=t.next(n),u&&(s[o++]=dO(new Re(i,u.index+1+r,i,u.index+1+u[0].length+r),u,a),o>=l))return o;while(u);return o}insert(e,t,n=!1){if(this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==$r){const{node:i,remainder:r,nodeStartOffset:o}=this.nodeAt(e),s=i.piece,a=s.bufferIndex,l=this.positionInBuffer(i,r);if(i.piece.bufferIndex===0&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&o+s.length===e&&t.length<SS){this.appendToNode(i,t),this.computeBufferMetadata();return}if(o===e)this.insertContentToNodeLeft(t,i),this._searchCache.validate(e);else if(o+i.piece.length>e){const c=[];let u=new Fg(s.bufferIndex,l,s.end,this.getLineFeedCnt(s.bufferIndex,l,s.end),this.offsetInBuffer(a,s.end)-this.offsetInBuffer(a,l));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&this.nodeCharCodeAt(i,r)===10){const p={line:u.start.line+1,column:0};u=new Fg(u.bufferIndex,p,u.end,this.getLineFeedCnt(u.bufferIndex,p,u.end),u.length-1),t+=`
`}if(this.shouldCheckCRLF()&&this.startWithLF(t))if(this.nodeCharCodeAt(i,r-1)===13){const p=this.positionInBuffer(i,r-1);this.deleteNodeTail(i,p),t="\r"+t,i.piece.length===0&&c.push(i)}else this.deleteNodeTail(i,l);else this.deleteNodeTail(i,l);const d=this.createNewPieces(t);u.length>0&&this.rbInsertRight(i,u);let h=i;for(let f=0;f<d.length;f++)h=this.rbInsertRight(h,d[f]);this.deleteNodes(c)}else this.insertContentToNodeRight(t,i)}else{const i=this.createNewPieces(t);let r=this.rbInsertLeft(null,i[0]);for(let o=1;o<i.length;o++)r=this.rbInsertRight(r,i[o])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===$r)return;const n=this.nodeAt(e),i=this.nodeAt(e+t),r=n.node,o=i.node;if(r===o){const d=this.positionInBuffer(r,n.remainder),h=this.positionInBuffer(r,i.remainder);if(n.nodeStartOffset===e){if(t===r.piece.length){const f=r.next();QJ(this,r),this.validateCRLFWithPrevNode(f),this.computeBufferMetadata();return}this.deleteNodeHead(r,h),this._searchCache.validate(e),this.validateCRLFWithPrevNode(r),this.computeBufferMetadata();return}if(n.nodeStartOffset+r.piece.length===e+t){this.deleteNodeTail(r,d),this.validateCRLFWithNextNode(r),this.computeBufferMetadata();return}this.shrinkNode(r,d,h),this.computeBufferMetadata();return}const s=[],a=this.positionInBuffer(r,n.remainder);this.deleteNodeTail(r,a),this._searchCache.validate(e),r.piece.length===0&&s.push(r);const l=this.positionInBuffer(o,i.remainder);this.deleteNodeHead(o,l),o.piece.length===0&&s.push(o);const c=r.next();for(let d=c;d!==$r&&d!==o;d=d.next())s.push(d);const u=r.piece.length===0?r.prev():r;this.deleteNodes(s),this.validateCRLFWithNextNode(u),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const o=t.piece,s={line:o.start.line+1,column:0},a=new Fg(o.bufferIndex,s,o.end,this.getLineFeedCnt(o.bufferIndex,s,o.end),o.length-1);t.piece=a,e+=`
`,IA(this,t,-1,-1),t.piece.length===0&&n.push(t)}const i=this.createNewPieces(e);let r=this.rbInsertLeft(t,i[i.length-1]);for(let o=i.length-2;o>=0;o--)r=this.rbInsertLeft(r,i[o]);this.validateCRLFWithPrevNode(r),this.deleteNodes(n)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+=`
`);const n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]);let r=i;for(let o=1;o<n.length;o++)r=this.rbInsertRight(r,n[o]);this.validateCRLFWithPrevNode(i)}positionInBuffer(e,t,n){const i=e.piece,r=e.piece.bufferIndex,o=this._buffers[r].lineStarts,a=o[i.start.line]+i.start.column+t;let l=i.start.line,c=i.end.line,u=0,d=0,h=0;for(;l<=c&&(u=l+(c-l)/2|0,h=o[u],u!==c);)if(d=o[u+1],a<h)c=u-1;else if(a>=d)l=u+1;else break;return n?(n.line=u,n.column=a-h,null):{line:u,column:a-h}}getLineFeedCnt(e,t,n){if(n.column===0)return n.line-t.line;const i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;const r=i[n.line+1],o=i[n.line]+n.column;if(r>o+1)return n.line-t.line;const s=o-1;return this._buffers[e].buffer.charCodeAt(s)===13?n.line-t.line+1:n.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)QJ(this,e[t])}createNewPieces(e){if(e.length>SS){const c=[];for(;e.length>SS;){const d=e.charCodeAt(SS-1);let h;d===13||d>=55296&&d<=56319?(h=e.substring(0,SS-1),e=e.substring(SS-1)):(h=e.substring(0,SS),e=e.substring(SS));const f=BA(h);c.push(new Fg(this._buffers.length,{line:0,column:0},{line:f.length-1,column:h.length-f[f.length-1]},f.length-1,h.length)),this._buffers.push(new gI(h,f))}const u=BA(e);return c.push(new Fg(this._buffers.length,{line:0,column:0},{line:u.length-1,column:e.length-u[u.length-1]},u.length-1,e.length)),this._buffers.push(new gI(e,u)),c}let t=this._buffers[0].buffer.length;const n=BA(e,!1);let i=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&t!==0&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},i=this._lastChangeBufferPos;for(let c=0;c<n.length;c++)n[c]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(t!==0)for(let c=0;c<n.length;c++)n[c]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+=e}const r=this._buffers[0].buffer.length,o=this._buffers[0].lineStarts.length-1,s=r-this._buffers[0].lineStarts[o],a={line:o,column:s},l=new Fg(0,i,a,this.getLineFeedCnt(0,i,a),r-t);return this._lastChangeBufferPos=a,[l]}getLineRawContent(e,t=0){let n=this.root,i="";const r=this._searchCache.get2(e);if(r){n=r.node;const o=this.getAccumulatedValue(n,e-r.nodeStartLineNumber-1),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(r.nodeStartLineNumber+n.piece.lineFeedCnt===e)i=s.substring(a+o,a+n.piece.length);else{const l=this.getAccumulatedValue(n,e-r.nodeStartLineNumber);return s.substring(a+o,a+l-t)}}else{let o=0;const s=e;for(;n!==$r;)if(n.left!==$r&&n.lf_left>=e-1)n=n.left;else if(n.lf_left+n.piece.lineFeedCnt>e-1){const a=this.getAccumulatedValue(n,e-n.lf_left-2),l=this.getAccumulatedValue(n,e-n.lf_left-1),c=this._buffers[n.piece.bufferIndex].buffer,u=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return o+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:o,nodeStartLineNumber:s-(e-1-n.lf_left)}),c.substring(u+a,u+l-t)}else if(n.lf_left+n.piece.lineFeedCnt===e-1){const a=this.getAccumulatedValue(n,e-n.lf_left-2),l=this._buffers[n.piece.bufferIndex].buffer,c=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i=l.substring(c+a,c+n.piece.length);break}else e-=n.lf_left+n.piece.lineFeedCnt,o+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==$r;){const o=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){const s=this.getAccumulatedValue(n,0),a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=o.substring(a,a+s-t),i}else{const s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i+=o.substr(s,n.piece.length)}n=n.next()}return i}computeBufferMetadata(){let e=this.root,t=1,n=0;for(;e!==$r;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.validate(this._length)}getIndexOf(e,t){const n=e.piece,i=this.positionInBuffer(e,t),r=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){const o=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(o!==r)return{index:o,remainder:0}}return{index:r,remainder:i.column}}getAccumulatedValue(e,t){if(t<0)return 0;const n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,r=n.start.line+t+1;return r>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[r]-i[n.start.line]-n.start.column}deleteNodeTail(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.end),o=t,s=this.offsetInBuffer(n.bufferIndex,o),a=this.getLineFeedCnt(n.bufferIndex,n.start,o),l=a-i,c=s-r,u=n.length+c;e.piece=new Fg(n.bufferIndex,n.start,o,a,u),IA(this,e,c,l)}deleteNodeHead(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.start),o=t,s=this.getLineFeedCnt(n.bufferIndex,o,n.end),a=this.offsetInBuffer(n.bufferIndex,o),l=s-i,c=r-a,u=n.length+c;e.piece=new Fg(n.bufferIndex,o,n.end,s,u),IA(this,e,c,l)}shrinkNode(e,t,n){const i=e.piece,r=i.start,o=i.end,s=i.length,a=i.lineFeedCnt,l=t,c=this.getLineFeedCnt(i.bufferIndex,i.start,l),u=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,r);e.piece=new Fg(i.bufferIndex,i.start,l,c,u),IA(this,e,u-s,c-a);const d=new Fg(i.bufferIndex,n,o,this.getLineFeedCnt(i.bufferIndex,n,o),this.offsetInBuffer(i.bufferIndex,o)-this.offsetInBuffer(i.bufferIndex,n)),h=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(h)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+=`
`);const n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const r=BA(t,!1);for(let h=0;h<r.length;h++)r[h]+=i;if(n){const h=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:i-h}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(r.slice(1));const o=this._buffers[0].lineStarts.length-1,s=this._buffers[0].buffer.length-this._buffers[0].lineStarts[o],a={line:o,column:s},l=e.piece.length+t.length,c=e.piece.lineFeedCnt,u=this.getLineFeedCnt(0,e.piece.start,a),d=u-c;e.piece=new Fg(e.piece.bufferIndex,e.piece.start,a,u,l),this._lastChangeBufferPos=a,IA(this,e,t.length,d)}nodeAt(e){let t=this.root;const n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};let i=0;for(;t!==$r;)if(t.size_left>e)t=t.left;else if(t.size_left+t.piece.length>=e){i+=t.size_left;const r={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(r),r}else e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right;return null}nodeAt2(e,t){let n=this.root,i=0;for(;n!==$r;)if(n.left!==$r&&n.lf_left>=e-1)n=n.left;else if(n.lf_left+n.piece.lineFeedCnt>e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2),o=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(r+t-1,o),nodeStartOffset:i}}else if(n.lf_left+n.piece.lineFeedCnt===e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2);if(r+t-1<=n.piece.length)return{node:n,remainder:r+t-1,nodeStartOffset:i};t-=n.piece.length-r;break}else e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right;for(n=n.next();n!==$r;){if(n.piece.lineFeedCnt>0){const r=this.getAccumulatedValue(n,0),o=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,r),nodeStartOffset:o}}else if(n.piece.length>=t-1){const r=this.offsetOfNode(n);return{node:n,remainder:t-1,nodeStartOffset:r}}else t-=n.piece.length;n=n.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&this._EOL===`
`)}startWithLF(e){if(typeof e=="string")return e.charCodeAt(0)===10;if(e===$r||e.piece.lineFeedCnt===0)return!1;const t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,r=n[i]+t.start.column;return i===n.length-1||n[i+1]>r+1?!1:this._buffers[t.bufferIndex].buffer.charCodeAt(r)===10}endWithCR(e){return typeof e=="string"?e.charCodeAt(e.length-1)===13:e===$r||e.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(e,e.piece.length-1)===13}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const n=[],i=this._buffers[e.piece.bufferIndex].lineStarts;let r;e.piece.end.column===0?r={line:e.piece.end.line-1,column:i[e.piece.end.line]-i[e.piece.end.line-1]-1}:r={line:e.piece.end.line,column:e.piece.end.column-1};const o=e.piece.length-1,s=e.piece.lineFeedCnt-1;e.piece=new Fg(e.piece.bufferIndex,e.piece.start,r,s,o),IA(this,e,-1,-1),e.piece.length===0&&n.push(e);const a={line:t.piece.start.line+1,column:0},l=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Fg(t.piece.bufferIndex,a,t.piece.end,c,l),IA(this,t,-1,-1),t.piece.length===0&&n.push(t);const u=this.createNewPieces(`\r
`);this.rbInsertRight(e,u[0]);for(let d=0;d<n.length;d++)QJ(this,n[d])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const n=t.next();if(this.startWithLF(n)){if(e+=`
`,n.piece.length===1)QJ(this,n);else{const i=n.piece,r={line:i.start.line+1,column:0},o=i.length-1,s=this.getLineFeedCnt(i.bufferIndex,r,i.end);n.piece=new Fg(i.bufferIndex,r,i.end,s,o),IA(this,n,-1,-1)}return!0}}return!1}iterate(e,t){if(e===$r)return t($r);const n=this.iterate(e.left,t);return n&&t(e)&&this.iterate(e.right,t)}getNodeContent(e){if(e===$r)return"";const t=this._buffers[e.piece.bufferIndex],n=e.piece,i=this.offsetInBuffer(n.bufferIndex,n.start),r=this.offsetInBuffer(n.bufferIndex,n.end);return t.buffer.substring(i,r)}getPieceContent(e){const t=this._buffers[e.bufferIndex],n=this.offsetInBuffer(e.bufferIndex,e.start),i=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(n,i)}rbInsertRight(e,t){const n=new cde(t,1);if(n.left=$r,n.right=$r,n.parent=$r,n.size_left=0,n.lf_left=0,this.root===$r)this.root=n,n.color=0;else if(e.right===$r)e.right=n,n.parent=e;else{const r=zWe(e.right);r.left=n,n.parent=r}return pdt(this,n),n}rbInsertLeft(e,t){const n=new cde(t,1);if(n.left=$r,n.right=$r,n.parent=$r,n.size_left=0,n.lf_left=0,this.root===$r)this.root=n,n.color=0;else if(e.left===$r)e.left=n,n.parent=e;else{const i=zKt(e.left);i.right=n,n.parent=i}return pdt(this,n),n}}}}),WWe,$Kt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.js"(){Un(),Ki(),Dn(),Cd(),UKt(),L7(),TKt(),Nt(),WWe=class jse extends St{constructor(t,n,i,r,o,s,a){super(),this._onDidChangeContent=this._register(new bt),this._BOM=n,this._mightContainNonBasicASCII=!s,this._mightContainRTL=r,this._mightContainUnusualLineTerminators=o,this._pieceTree=new WKt(t,i,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(t){return this._pieceTree.createSnapshot(t?this._BOM:"")}getOffsetAt(t,n){return this._pieceTree.getOffsetAt(t,n)}getPositionAt(t){return this._pieceTree.getPositionAt(t)}getRangeAt(t,n){const i=t+n,r=this.getPositionAt(t),o=this.getPositionAt(i);return new Re(r.lineNumber,r.column,o.lineNumber,o.column)}getValueInRange(t,n=0){if(t.isEmpty())return"";const i=this._getEndOfLine(n);return this._pieceTree.getValueInRange(t,i)}getValueLengthInRange(t,n=0){if(t.isEmpty())return 0;if(t.startLineNumber===t.endLineNumber)return t.endColumn-t.startColumn;const i=this.getOffsetAt(t.startLineNumber,t.startColumn),r=this.getOffsetAt(t.endLineNumber,t.endColumn);let o=0;const s=this._getEndOfLine(n),a=this.getEOL();if(s.length!==a.length){const l=s.length-a.length,c=t.endLineNumber-t.startLineNumber;o=l*c}return r-i+o}getCharacterCountInRange(t,n=0){if(this._mightContainNonBasicASCII){let i=0;const r=t.startLineNumber,o=t.endLineNumber;for(let s=r;s<=o;s++){const a=this.getLineContent(s),l=s===r?t.startColumn-1:0,c=s===o?t.endColumn-1:a.length;for(let u=l;u<c;u++)ud(a.charCodeAt(u))?(i=i+1,u=u+1):i=i+1}return i+=this._getEndOfLine(n).length*(o-r),i}return this.getValueLengthInRange(t,n)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(t){return this._pieceTree.getLineContent(t)}getLineCharCode(t,n){return this._pieceTree.getLineCharCode(t,n)}getLineLength(t){return this._pieceTree.getLineLength(t)}getLineFirstNonWhitespaceColumn(t){const n=Cp(this.getLineContent(t));return n===-1?0:n+1}getLineLastNonWhitespaceColumn(t){const n=iC(this.getLineContent(t));return n===-1?0:n+2}_getEndOfLine(t){switch(t){case 1:return`
`;case 2:return`\r
`;case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(t){this._pieceTree.setEOL(t)}applyEdits(t,n,i){let r=this._mightContainRTL,o=this._mightContainUnusualLineTerminators,s=this._mightContainNonBasicASCII,a=!0,l=[];for(let g=0;g<t.length;g++){const m=t[g];a&&m._isTracked&&(a=!1);const v=m.range;if(m.text){let A=!0;s||(A=!qK(m.text),s=A),!r&&A&&(r=G8(m.text)),!o&&A&&(o=WVt(m.text))}let y="",b=0,w=0,E=0;if(m.text){let A;[b,w,E,A]=PL(m.text);const D=this.getEOL();A===0||A===(D===`\r
`?2:1)?y=m.text:y=m.text.replace(/\r\n|\r|\n/g,D)}l[g]={sortIndex:g,identifier:m.identifier||null,range:v,rangeOffset:this.getOffsetAt(v.startLineNumber,v.startColumn),rangeLength:this.getValueLengthInRange(v),text:y,eolCount:b,firstLineLength:w,lastLineLength:E,forceMoveMarkers:!!m.forceMoveMarkers,isAutoWhitespaceEdit:m.isAutoWhitespaceEdit||!1}}l.sort(jse._sortOpsAscending);let c=!1;for(let g=0,m=l.length-1;g<m;g++){const v=l[g].range.getEndPosition(),y=l[g+1].range.getStartPosition();if(y.isBeforeOrEqual(v)){if(y.isBefore(v))throw new Error("Overlapping ranges are not allowed!");c=!0}}a&&(l=this._reduceOperations(l));const u=i||n?jse._getInverseEditRanges(l):[],d=[];if(n)for(let g=0;g<l.length;g++){const m=l[g],v=u[g];if(m.isAutoWhitespaceEdit&&m.range.isEmpty())for(let y=v.startLineNumber;y<=v.endLineNumber;y++){let b="";y===v.startLineNumber&&(b=this.getLineContent(m.range.startLineNumber),Cp(b)!==-1)||d.push({lineNumber:y,oldContent:b})}}let h=null;if(i){let g=0;h=[];for(let m=0;m<l.length;m++){const v=l[m],y=u[m],b=this.getValueInRange(v.range),w=v.rangeOffset+g;g+=v.text.length-b.length,h[m]={sortIndex:v.sortIndex,identifier:v.identifier,range:y,text:b,textChange:new S1(v.rangeOffset,b,w,v.text)}}c||h.sort((m,v)=>m.sortIndex-v.sortIndex)}this._mightContainRTL=r,this._mightContainUnusualLineTerminators=o,this._mightContainNonBasicASCII=s;const f=this._doApplyEdits(l);let p=null;if(n&&d.length>0){d.sort((g,m)=>m.lineNumber-g.lineNumber),p=[];for(let g=0,m=d.length;g<m;g++){const v=d[g].lineNumber;if(g>0&&d[g-1].lineNumber===v)continue;const y=d[g].oldContent,b=this.getLineContent(v);b.length===0||b===y||Cp(b)!==-1||p.push(v)}}return this._onDidChangeContent.fire(),new AUt(h,f,p)}_reduceOperations(t){return t.length<1e3?t:[this._toSingleEditOperation(t)]}_toSingleEditOperation(t){let n=!1;const i=t[0].range,r=t[t.length-1].range,o=new Re(i.startLineNumber,i.startColumn,r.endLineNumber,r.endColumn);let s=i.startLineNumber,a=i.startColumn;const l=[];for(let f=0,p=t.length;f<p;f++){const g=t[f],m=g.range;n=n||g.forceMoveMarkers,l.push(this.getValueInRange(new Re(s,a,m.startLineNumber,m.startColumn))),g.text.length>0&&l.push(g.text),s=m.endLineNumber,a=m.endColumn}const c=l.join(""),[u,d,h]=PL(c);return{sortIndex:0,identifier:t[0].identifier,range:o,rangeOffset:this.getOffsetAt(o.startLineNumber,o.startColumn),rangeLength:this.getValueLengthInRange(o,0),text:c,eolCount:u,firstLineLength:d,lastLineLength:h,forceMoveMarkers:n,isAutoWhitespaceEdit:!1}}_doApplyEdits(t){t.sort(jse._sortOpsDescending);const n=[];for(let i=0;i<t.length;i++){const r=t[i],o=r.range.startLineNumber,s=r.range.startColumn,a=r.range.endLineNumber,l=r.range.endColumn;if(o===a&&s===l&&r.text.length===0)continue;r.text?(this._pieceTree.delete(r.rangeOffset,r.rangeLength),this._pieceTree.insert(r.rangeOffset,r.text,!0)):this._pieceTree.delete(r.rangeOffset,r.rangeLength);const c=new Re(o,s,a,l);n.push({range:c,rangeLength:r.rangeLength,text:r.text,rangeOffset:r.rangeOffset,forceMoveMarkers:r.forceMoveMarkers})}return n}findMatchesLineByLine(t,n,i,r){return this._pieceTree.findMatchesLineByLine(t,n,i,r)}static _getInverseEditRanges(t){const n=[];let i=0,r=0,o=null;for(let s=0,a=t.length;s<a;s++){const l=t[s];let c,u;o?o.range.endLineNumber===l.range.startLineNumber?(c=i,u=r+(l.range.startColumn-o.range.endColumn)):(c=i+(l.range.startLineNumber-o.range.endLineNumber),u=l.range.startColumn):(c=l.range.startLineNumber,u=l.range.startColumn);let d;if(l.text.length>0){const h=l.eolCount+1;h===1?d=new Re(c,u,c,u+l.firstLineLength):d=new Re(c,u,c+h-1,l.lastLineLength+1)}else d=new Re(c,u,c,u);i=d.endLineNumber,r=d.endColumn,n.push(d),o=l}return n}static _sortOpsAscending(t,n){const i=Re.compareRangesUsingEnds(t.range,n.range);return i===0?t.sortIndex-n.sortIndex:i}static _sortOpsDescending(t,n){const i=Re.compareRangesUsingEnds(t.range,n.range);return i===0?n.sortIndex-t.sortIndex:-i}}}}),vdt,UWe,lWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBufferBuilder.js"(){Ki(),UKt(),$Kt(),vdt=class{constructor(e,t,n,i,r,o,s,a,l){this._chunks=e,this._bom=t,this._cr=n,this._lf=i,this._crlf=r,this._containsRTL=o,this._containsUnusualLineTerminators=s,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return t===0?e===1?`
`:`\r
`:n>t/2?`\r
`:`
`}create(e){const t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&(t===`\r
`&&(this._cr>0||this._lf>0)||t===`
`&&(this._cr>0||this._crlf>0)))for(let r=0,o=n.length;r<o;r++){const s=n[r].buffer.replace(/\r\n|\r|\n/g,t),a=BA(s);n[r]=new gI(s,a)}const i=new WWe(n,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:i,disposable:i}}},UWe=class{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(e.length===0)return;this.chunks.length===0&&W3e(e)&&(this.BOM=GVt,e=e.substr(1));const t=e.charCodeAt(e.length-1);t===13||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){!t&&e.length===0||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=aWn(this._tmpLineStarts,e);this.chunks.push(new gI(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=G8(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=WVt(e)))}finish(e=!0){return this._finish(),new vdt(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=BA(e.buffer);e.lineStarts=t,this._previousChar===13&&this.cr++}}}}});function cWn(e,t){const n=[];for(let i=0;i<e;i++)n[i]=t;return n}var qKt,uWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/fixedArray.js"(){rr(),qKt=class{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,n){if(e>=this._store.length)return;if(t===0){this.insert(e,n);return}else if(n===0){this.delete(e,t);return}const i=this._store.slice(0,e),r=this._store.slice(e+t),o=cWn(n,this._default);this._store=i.concat(o,r)}delete(e,t){t===0||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(t===0||e>=this._store.length)return;const n=[];for(let i=0;i<t;i++)n[i]=this._default;this._store=Upe(this._store,e,n)}}}}),GKt,dWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/tokens/contiguousMultilineTokens.js"(){GKt=class{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}}}),ude,KKt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/tokens/contiguousMultilineTokensBuilder.js"(){dWn(),ude=class{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const n=this._tokens[this._tokens.length-1];if(n.endLineNumber+1===e){n.appendLineTokens(t);return}}this._tokens.push(new GKt(e,[t]))}finalize(){return this._tokens}}}});function lV(e,t,n,i,r,o){let s=null;if(n)try{s=n.tokenizeEncoded(i,r,o.clone())}catch(a){Mr(a)}return s||(s=fge(e.encodeLanguageId(t),o)),Dh.convertToEndOffset(s.tokens,i.length),s}var ydt,YKt,dde,bdt,_dt,QKt,hWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/textModelTokens.js"(){fr(),Vi(),Xr(),_g(),L7(),Sg(),K0(),pY(),uWn(),KKt(),bw(),ydt=class{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new dde(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}},YKt=class extends ydt{constructor(e,t,n,i){super(e,t),this._textModel=n,this._languageIdCodec=i}updateTokensUntilLine(e,t){const n=this._textModel.getLanguageId();for(;;){const i=this.getFirstInvalidLine();if(!i||i.lineNumber>t)break;const r=this._textModel.getLineContent(i.lineNumber),o=lV(this._languageIdCodec,n,this.tokenizationSupport,r,!0,i.startState);e.add(i.lineNumber,o.tokens),this.store.setEndState(i.lineNumber,o.endState)}}getTokenTypeIfInsertingCharacter(e,t){const n=this.getStartState(e.lineNumber);if(!n)return 0;const i=this._textModel.getLanguageId(),r=this._textModel.getLineContent(e.lineNumber),o=r.substring(0,e.column-1)+t+r.substring(e.column-1),s=lV(this._languageIdCodec,i,this.tokenizationSupport,o,!0,n),a=new Dh(s.tokens,o,this._languageIdCodec);if(a.getCount()===0)return 0;const l=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,n){const i=e.lineNumber,r=e.column,o=this.getStartState(i);if(!o)return null;const s=this._textModel.getLineContent(i),a=s.substring(0,r-1)+n+s.substring(r-1+t),l=this._textModel.getLanguageIdAtPosition(i,0),c=lV(this._languageIdCodec,l,this.tokenizationSupport,a,!0,o);return new Dh(c.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,n){if(n<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,n),{heuristicTokens:!1};let i=this.guessStartState(t);const r=this._textModel.getLanguageId();for(let o=t;o<=n;o++){const s=this._textModel.getLineContent(o),a=lV(this._languageIdCodec,r,this.tokenizationSupport,s,!0,i);e.add(o,a.tokens),i=a.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const n=[];let i=null;for(let s=e-1;t>1&&s>=1;s--){const a=this._textModel.getLineFirstNonWhitespaceColumn(s);if(a!==0&&a<t&&(n.push(this._textModel.getLineContent(s)),t=a,i=this.getStartState(s),i))break}i||(i=this.tokenizationSupport.getInitialState()),n.reverse();const r=this._textModel.getLanguageId();let o=i;for(const s of n)o=lV(this._languageIdCodec,r,this.tokenizationSupport,s,!1,o).endState;return o}},dde=class{constructor(e){this.lineCount=e,this._tokenizationStateStore=new bdt,this._invalidEndStatesLineNumbers=new _dt,this._invalidEndStatesLineNumbers.addRange(new Xo(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new ys("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const n=this._tokenizationStateStore.setEndState(e,t);return n&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new Xo(e+1,e+2)),n}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new Xo(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[n]=PL(t.text);this.acceptChange(new Ur(t.range.startLineNumber,t.range.endLineNumber+1),n+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new Xo(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return this._invalidEndStatesLineNumbers.min===null}getStartState(e,t){return e===1?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(t===null)return null;const n=this.getStartState(t,e);if(!n)throw new ys("Start state must be defined");return{lineNumber:t,startState:n}}},bdt=class{constructor(){this._lineEndStates=new qKt(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const n=this._lineEndStates.get(e);return n&&n.equals(t)?!1:(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let n=e.length;t>0&&n>0&&(n--,t--),this._lineEndStates.replace(e.startLineNumber,n,t)}},_dt=class{constructor(){this._ranges=[]}get min(){return this._ranges.length===0?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex(n=>n.contains(e));if(t!==-1){const n=this._ranges[t];n.start===e?n.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new Xo(e+1,n.endExclusive):n.endExclusive===e+1?this._ranges[t]=new Xo(n.start,e):this._ranges.splice(t,1,new Xo(n.start,e),new Xo(e+1,n.endExclusive))}}addRange(e){Xo.addRange(e,this._ranges)}addRangeAndResize(e,t){let n=0;for(;!(n>=this._ranges.length||e.start<=this._ranges[n].endExclusive);)n++;let i=n;for(;!(i>=this._ranges.length||e.endExclusive<this._ranges[i].start);)i++;const r=t-e.length;for(let o=i;o<this._ranges.length;o++)this._ranges[o]=this._ranges[o].delta(r);if(n===i){const o=new Xo(e.start,e.start+t);o.isEmpty||this._ranges.splice(n,0,o)}else{const o=Math.min(e.start,this._ranges[n].start),s=Math.max(e.endExclusive,this._ranges[i-1].endExclusive),a=new Xo(o,s+r);a.isEmpty?this._ranges.splice(n,i-n):this._ranges.splice(n,i-n,a)}}toString(){return this._ranges.map(e=>e.toString()).join(" + ")}},QKt=class{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){this._isScheduled||!this._tokenizerWithStateStore._textModel.isAttachedToEditor()||!this._hasLinesToTokenize()||(this._isScheduled=!0,xVt(e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)}))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),n=()=>{this._isDisposed||!this._tokenizerWithStateStore._textModel.isAttachedToEditor()||!this._hasLinesToTokenize()||(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?SVe(n):this._beginBackgroundTokenization())};n()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new ude,n=Ah.create(!1);do if(n.elapsed()>1||this._tokenizeOneInvalidLine(t)>=e)break;while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return this._tokenizerWithStateStore?!this._tokenizerWithStateStore.store.allStatesValid():!1}_tokenizeOneInvalidLine(e){const t=this._tokenizerWithStateStore?.getFirstInvalidLine();return t?(this._tokenizerWithStateStore.updateTokensUntilLine(e,t.lineNumber),t.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Ur(e,t))}}}}),ZKt,wdt,XKt,$We,qWe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/tokens.js"(){rr(),fr(),Un(),Nt(),Sg(),ZKt=class{constructor(){this._onDidChangeVisibleRanges=new bt,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new wdt(t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})});return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}},wdt=class{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const n=e.map(i=>new Ur(i.startLineNumber,i.endLineNumber+1));this.handleStateChange({visibleLineRanges:n,stabilized:t})}},XKt=class extends St{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Gs(()=>this.update(),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){vl(this._computedLineRanges,this._lineRanges,(e,t)=>e.equals(t))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}},$We=class extends St{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,n){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=n,this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new bt),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new bt),this.onDidChangeTokens=this._onDidChangeTokens.event}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}}}}),uBe,fWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/treeSitterTokens.js"(){ra(),bw(),qWe(),uBe=class extends $We{constructor(e,t,n,i){super(t,n,i),this._treeSitterService=e,this._tokenizationSupport=null,this._initialize()}_initialize(){const e=this.getLanguageId();(!this._tokenizationSupport||this._lastLanguageId!==e)&&(this._lastLanguageId=e,this._tokenizationSupport=Jce.get(e))}getLineTokens(e){const t=this._textModel.getLineContent(e);if(this._tokenizationSupport){const n=this._tokenizationSupport.tokenizeEncoded(e,this._textModel);if(n)return new Dh(n,t,this._languageIdCodec)}return Dh.createEmpty(t,this._languageIdCodec)}resetTokenization(e=!0){e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]}),this._initialize()}handleDidChangeAttached(){}handleDidChangeContent(e){e.isFlush&&this.resetTokenization(!1)}forceTokenization(e){}hasAccurateTokensForLine(e){return!0}isCheapToTokenize(e){return!0}getTokenTypeIfInsertingCharacter(e,t,n){return 0}tokenizeLineWithEdit(e,t,n){return null}get hasTokens(){return this._treeSitterService.getParseResult(this._textModel)!==void 0}}}}),GWe,JKt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js"(){li(),GWe=Ao("treeSitterParserService")}});function JA(e){return e instanceof Uint32Array?e:new Uint32Array(e)}var KS,Jk,pWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/tokens/contiguousTokensEditing.js"(){bw(),KS=new Uint32Array(0).buffer,Jk=class dBe{static deleteBeginning(t,n){return t===null||t===KS?t:dBe.delete(t,0,n)}static deleteEnding(t,n){if(t===null||t===KS)return t;const i=JA(t),r=i[i.length-2];return dBe.delete(t,n,r)}static delete(t,n,i){if(t===null||t===KS||n===i)return t;const r=JA(t),o=r.length>>>1;if(n===0&&r[r.length-2]===i)return KS;const s=Dh.findIndexInTokensArray(r,n),a=s>0?r[s-1<<1]:0,l=r[s<<1];if(i<l){const f=i-n;for(let p=s;p<o;p++)r[p<<1]-=f;return t}let c,u;a!==n?(r[s<<1]=n,c=s+1<<1,u=n):(c=s<<1,u=a);const d=i-n;for(let f=s+1;f<o;f++){const p=r[f<<1]-d;p>u&&(r[c++]=p,r[c++]=r[(f<<1)+1],u=p)}if(c===r.length)return t;const h=new Uint32Array(c);return h.set(r.subarray(0,c),0),h.buffer}static append(t,n){if(n===KS)return t;if(t===KS)return n;if(t===null)return t;if(n===null)return null;const i=JA(t),r=JA(n),o=r.length>>>1,s=new Uint32Array(i.length+r.length);s.set(i,0);let a=i.length;const l=i[i.length-2];for(let c=0;c<o;c++)s[a++]=r[c<<1]+l,s[a++]=r[(c<<1)+1];return s.buffer}static insert(t,n,i){if(t===null||t===KS)return t;const r=JA(t),o=r.length>>>1;let s=Dh.findIndexInTokensArray(r,n);s>0&&r[s-1<<1]===n&&s--;for(let a=s;a<o;a++)r[a<<1]+=i;return t}}}});function Cdt(e){return(e<<0|0|0|32768|2<<24|1024)>>>0}var hBe,gWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/tokens/contiguousTokensStore.js"(){rr(),Hi(),pWn(),bw(),I7(),hBe=class fBe{constructor(t){this._lineTokens=[],this._len=0,this._languageIdCodec=t}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(t,n,i){let r=null;if(n<this._len&&(r=this._lineTokens[n]),r!==null&&r!==KS)return new Dh(JA(r),i,this._languageIdCodec);const o=new Uint32Array(2);return o[0]=i.length,o[1]=Cdt(this._languageIdCodec.encodeLanguageId(t)),new Dh(o,i,this._languageIdCodec)}static _massageTokens(t,n,i){const r=i?JA(i):null;if(n===0){let o=!1;if(r&&r.length>1&&(o=gh.getLanguageId(r[1])!==t),!o)return KS}if(!r||r.length===0){const o=new Uint32Array(2);return o[0]=n,o[1]=Cdt(t),o.buffer}return r[r.length-2]=n,r.byteOffset===0&&r.byteLength===r.buffer.byteLength?r.buffer:r}_ensureLine(t){for(;t>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(t,n){n!==0&&(t+n>this._len&&(n=this._len-t),this._lineTokens.splice(t,n),this._len-=n)}_insertLines(t,n){if(n===0)return;const i=[];for(let r=0;r<n;r++)i[r]=null;this._lineTokens=Upe(this._lineTokens,t,i),this._len+=n}setTokens(t,n,i,r,o){const s=fBe._massageTokens(this._languageIdCodec.encodeLanguageId(t),i,r);this._ensureLine(n);const a=this._lineTokens[n];return this._lineTokens[n]=s,o?!fBe._equals(a,s):!1}static _equals(t,n){if(!t||!n)return!t&&!n;const i=JA(t),r=JA(n);if(i.length!==r.length)return!1;for(let o=0,s=i.length;o<s;o++)if(i[o]!==r[o])return!1;return!0}acceptEdit(t,n,i){this._acceptDeleteRange(t),this._acceptInsertText(new mt(t.startLineNumber,t.startColumn),n,i)}_acceptDeleteRange(t){const n=t.startLineNumber-1;if(n>=this._len)return;if(t.startLineNumber===t.endLineNumber){if(t.startColumn===t.endColumn)return;this._lineTokens[n]=Jk.delete(this._lineTokens[n],t.startColumn-1,t.endColumn-1);return}this._lineTokens[n]=Jk.deleteEnding(this._lineTokens[n],t.startColumn-1);const i=t.endLineNumber-1;let r=null;i<this._len&&(r=Jk.deleteBeginning(this._lineTokens[i],t.endColumn-1)),this._lineTokens[n]=Jk.append(this._lineTokens[n],r),this._deleteLines(t.startLineNumber,t.endLineNumber-t.startLineNumber)}_acceptInsertText(t,n,i){if(n===0&&i===0)return;const r=t.lineNumber-1;if(!(r>=this._len)){if(n===0){this._lineTokens[r]=Jk.insert(this._lineTokens[r],t.column-1,i);return}this._lineTokens[r]=Jk.deleteEnding(this._lineTokens[r],t.column-1),this._lineTokens[r]=Jk.insert(this._lineTokens[r],t.column-1,i),this._insertLines(t.lineNumber,n)}}setMultilineTokens(t,n){if(t.length===0)return{changes:[]};const i=[];for(let r=0,o=t.length;r<o;r++){const s=t[r];let a=0,l=0,c=!1;for(let u=s.startLineNumber;u<=s.endLineNumber;u++)c?(this.setTokens(n.getLanguageId(),u-1,n.getLineLength(u),s.getLineTokens(u),!1),l=u):this.setTokens(n.getLanguageId(),u-1,n.getLineLength(u),s.getLineTokens(u),!0)&&(c=!0,a=u,l=u);c&&i.push({fromLineNumber:a,toLineNumber:l})}return{changes:i}}}}}),eYt,mWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/tokens/sparseTokensStore.js"(){rr(),bw(),eYt=class tYt{constructor(t){this._pieces=[],this._isComplete=!1,this._languageIdCodec=t}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return this._pieces.length===0}set(t,n){this._pieces=t||[],this._isComplete=n}setPartial(t,n){let i=t;if(n.length>0){const o=n[0].getRange(),s=n[n.length-1].getRange();if(!o||!s)return t;i=t.plusRange(o).plusRange(s)}let r=null;for(let o=0,s=this._pieces.length;o<s;o++){const a=this._pieces[o];if(a.endLineNumber<i.startLineNumber)continue;if(a.startLineNumber>i.endLineNumber){r=r||{index:o};break}if(a.removeTokens(i),a.isEmpty()){this._pieces.splice(o,1),o--,s--;continue}if(a.endLineNumber<i.startLineNumber)continue;if(a.startLineNumber>i.endLineNumber){r=r||{index:o};continue}const[l,c]=a.split(i);if(l.isEmpty()){r=r||{index:o};continue}c.isEmpty()||(this._pieces.splice(o,1,l,c),o++,s++,r=r||{index:o})}return r=r||{index:this._pieces.length},n.length>0&&(this._pieces=Upe(this._pieces,r.index,n)),i}isComplete(){return this._isComplete}addSparseTokens(t,n){if(n.getLineContent().length===0)return n;const i=this._pieces;if(i.length===0)return n;const r=tYt._findFirstPieceWithLine(i,t),o=i[r].getLineTokens(t);if(!o)return n;const s=n.getCount(),a=o.getCount();let l=0;const c=[];let u=0,d=0;const h=(f,p)=>{f!==d&&(d=f,c[u++]=f,c[u++]=p)};for(let f=0;f<a;f++){const p=o.getStartCharacter(f),g=o.getEndCharacter(f),m=o.getMetadata(f),v=((m&1?2048:0)|(m&2?4096:0)|(m&4?8192:0)|(m&8?16384:0)|(m&16?16744448:0)|(m&32?4278190080:0))>>>0,y=~v>>>0;for(;l<s&&n.getEndOffset(l)<=p;)h(n.getEndOffset(l),n.getMetadata(l)),l++;for(l<s&&n.getStartOffset(l)<p&&h(p,n.getMetadata(l));l<s&&n.getEndOffset(l)<g;)h(n.getEndOffset(l),n.getMetadata(l)&y|m&v),l++;if(l<s)h(g,n.getMetadata(l)&y|m&v),n.getEndOffset(l)===g&&l++;else{const b=Math.min(Math.max(0,l-1),s-1);h(g,n.getMetadata(b)&y|m&v)}}for(;l<s;)h(n.getEndOffset(l),n.getMetadata(l)),l++;return new Dh(new Uint32Array(c),n.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(t,n){let i=0,r=t.length-1;for(;i<r;){let o=i+Math.floor((r-i)/2);if(t[o].endLineNumber<n)i=o+1;else if(t[o].startLineNumber>n)r=o-1;else{for(;o>i&&t[o-1].startLineNumber<=n&&n<=t[o-1].endLineNumber;)o--;return o}}return i}acceptEdit(t,n,i,r,o){for(const s of this._pieces)s.acceptEdit(t,n,i,r,o)}}}}),Sdt,ZJ,XJ,zse,_Ce,vWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/tokenizationTextModelPart.js"(){Vi(),Un(),Nt(),L7(),Sg(),Hi(),A7(),ra(),Kd(),lu(),PKt(),hWn(),qWe(),fWn(),JKt(),KKt(),gWn(),mWn(),Sdt=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},ZJ=function(e,t){return function(n,i){t(n,i,e)}},zse=XJ=class extends FWe{constructor(t,n,i,r,o,s,a){super(),this._textModel=t,this._bracketPairsTextModelPart=n,this._languageId=i,this._attachedViews=r,this._languageService=o,this._languageConfigurationService=s,this._treeSitterService=a,this._semanticTokens=new eYt(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new bt),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new bt),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new bt),this.onDidChangeTokens=this._onDidChangeTokens.event,this._tokensDisposables=this._register(new Jt),this._register(this._languageConfigurationService.onDidChange(l=>{l.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})})),this._register(On.filter(Jce.onDidChange,l=>l.changedLanguages.includes(this._languageId))(()=>{this.createPreferredTokenProvider()})),this.createPreferredTokenProvider()}createGrammarTokens(){return this._register(new _Ce(this._languageService.languageIdCodec,this._textModel,()=>this._languageId,this._attachedViews))}createTreeSitterTokens(){return this._register(new uBe(this._treeSitterService,this._languageService.languageIdCodec,this._textModel,()=>this._languageId))}createTokens(t){const n=this._tokens!==void 0;this._tokens?.dispose(),this._tokens=t?this.createTreeSitterTokens():this.createGrammarTokens(),this._tokensDisposables.clear(),this._tokensDisposables.add(this._tokens.onDidChangeTokens(i=>{this._emitModelTokensChangedEvent(i)})),this._tokensDisposables.add(this._tokens.onDidChangeBackgroundTokenizationState(i=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()})),n&&this._tokens.resetTokenization()}createPreferredTokenProvider(){Jce.get(this._languageId)?this._tokens instanceof uBe||this.createTokens(!0):this._tokens instanceof _Ce||this.createTokens(!1)}handleLanguageConfigurationServiceChange(t){t.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(t){if(t.isFlush)this._semanticTokens.flush();else if(!t.isEolChange)for(const n of t.changes){const[i,r,o]=PL(n.text);this._semanticTokens.acceptEdit(n.range,i,r,o,n.text.length>0?n.text.charCodeAt(0):0)}this._tokens.handleDidChangeContent(t)}handleDidChangeAttached(){this._tokens.handleDidChangeAttached()}getLineTokens(t){this.validateLineNumber(t);const n=this._tokens.getLineTokens(t);return this._semanticTokens.addSparseTokens(t,n)}_emitModelTokensChangedEvent(t){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(t),this._onDidChangeTokens.fire(t))}validateLineNumber(t){if(t<1||t>this._textModel.getLineCount())throw new ys("Illegal value for lineNumber")}get hasTokens(){return this._tokens.hasTokens}resetTokenization(){this._tokens.resetTokenization()}get backgroundTokenizationState(){return this._tokens.backgroundTokenizationState}forceTokenization(t){this.validateLineNumber(t),this._tokens.forceTokenization(t)}hasAccurateTokensForLine(t){return this.validateLineNumber(t),this._tokens.hasAccurateTokensForLine(t)}isCheapToTokenize(t){return this.validateLineNumber(t),this._tokens.isCheapToTokenize(t)}tokenizeIfCheap(t){this.validateLineNumber(t),this._tokens.tokenizeIfCheap(t)}getTokenTypeIfInsertingCharacter(t,n,i){return this._tokens.getTokenTypeIfInsertingCharacter(t,n,i)}tokenizeLineWithEdit(t,n,i){return this._tokens.tokenizeLineWithEdit(t,n,i)}setSemanticTokens(t,n){this._semanticTokens.set(t,n),this._emitModelTokensChangedEvent({semanticTokensApplied:t!==null,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(t,n){if(this.hasCompleteSemanticTokens())return;const i=this._textModel.validateRange(this._semanticTokens.setPartial(t,n));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:i.startLineNumber,toLineNumber:i.endLineNumber}]})}getWordAtPosition(t){this.assertNotDisposed();const n=this._textModel.validatePosition(t),i=this._textModel.getLineContent(n.lineNumber),r=this.getLineTokens(n.lineNumber),o=r.findTokenIndexAtOffset(n.column-1),[s,a]=XJ._findLanguageBoundaries(r,o),l=Wq(n.column,this.getLanguageConfiguration(r.getLanguageId(o)).getWordDefinition(),i.substring(s,a),s);if(l&&l.startColumn<=t.column&&t.column<=l.endColumn)return l;if(o>0&&s===n.column-1){const[c,u]=XJ._findLanguageBoundaries(r,o-1),d=Wq(n.column,this.getLanguageConfiguration(r.getLanguageId(o-1)).getWordDefinition(),i.substring(c,u),c);if(d&&d.startColumn<=t.column&&t.column<=d.endColumn)return d}return null}getLanguageConfiguration(t){return this._languageConfigurationService.getLanguageConfiguration(t)}static _findLanguageBoundaries(t,n){const i=t.getLanguageId(n);let r=0;for(let s=n;s>=0&&t.getLanguageId(s)===i;s--)r=t.getStartOffset(s);let o=t.getLineContent().length;for(let s=n,a=t.getCount();s<a&&t.getLanguageId(s)===i;s++)o=t.getEndOffset(s);return[r,o]}getWordUntilPosition(t){const n=this.getWordAtPosition(t);return n?{word:n.word.substr(0,t.column-n.startColumn),startColumn:n.startColumn,endColumn:t.column}:{word:"",startColumn:t.column,endColumn:t.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(t,n){const i=this._textModel.validatePosition(new mt(t,n)),r=this.getLineTokens(i.lineNumber);return r.getLanguageId(r.findTokenIndexAtOffset(i.column-1))}setLanguageId(t,n="api"){if(this._languageId===t)return;const i={oldLanguage:this._languageId,newLanguage:t,source:n};this._languageId=t,this._bracketPairsTextModelPart.handleDidChangeLanguage(i),this._tokens.resetTokenization(),this.createPreferredTokenProvider(),this._onDidChangeLanguage.fire(i),this._onDidChangeLanguageConfiguration.fire({})}},zse=XJ=Sdt([ZJ(4,al),ZJ(5,yl),ZJ(6,GWe)],zse),_Ce=class extends $We{constructor(e,t,n,i){super(e,t,n),this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new Yu),this._tokens=new hBe(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new Yu),this._attachedViewStates=this._register(new hpe),this._register(Hl.onDidChange(r=>{const o=this.getLanguageId();r.changedLanguages.indexOf(o)!==-1&&this.resetTokenization()})),this.resetTokenization(),this._register(i.onDidChangeVisibleRanges(({view:r,state:o})=>{if(o){let s=this._attachedViewStates.get(r);s||(s=new XKt(()=>this.refreshRanges(s.lineRanges)),this._attachedViewStates.set(r,s)),s.handleStateChange(o)}else this._attachedViewStates.deleteAndDispose(r)}))}resetTokenization(e=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new dde(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const t=()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const r=Hl.get(this.getLanguageId());if(!r)return[null,null];let o;try{o=r.getInitialState()}catch(s){return Mr(s),[null,null]}return[r,o]},[n,i]=t();if(n&&i?this._tokenizer=new YKt(this._textModel.getLineCount(),n,this._textModel,this._languageIdCodec):this._tokenizer=null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const r={setTokens:o=>{this.setTokens(o)},backgroundTokenizationFinished:()=>{if(this._backgroundTokenizationState===2)return;const o=2;this._backgroundTokenizationState=o,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(o,s)=>{if(!this._tokenizer)return;const a=this._tokenizer.store.getFirstInvalidEndStateLineNumber();a!==null&&o>=a&&this._tokenizer?.store.setEndState(o,s)}};n&&n.createBackgroundTokenizer&&!n.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=n.createBackgroundTokenizer(this._textModel,r)),!this._backgroundTokenizer.value&&!this._textModel.isTooLargeForTokenization()&&(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new QKt(this._tokenizer,r),this._defaultBackgroundTokenizer.handleChanges()),n?.backgroundTokenizerShouldOnlyVerifyTokens&&n.createBackgroundTokenizer?(this._debugBackgroundTokens=new hBe(this._languageIdCodec),this._debugBackgroundStates=new dde(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=n.createBackgroundTokenizer(this._textModel,{setTokens:o=>{this._debugBackgroundTokens?.setMultilineTokens(o,this._textModel)},backgroundTokenizationFinished(){},setEndState:(o,s)=>{this._debugBackgroundStates?.setEndState(o,s)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(e){if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const t of e.changes){const[n,i]=PL(t.text);this._tokens.acceptEdit(t.range,n,i),this._debugBackgroundTokens?.acceptEdit(t.range,n,i)}this._debugBackgroundStates?.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=Ur.joinMany([...this._attachedViewStates].map(([t,n])=>n.lineRanges));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const n=new ude,{heuristicTokens:i}=this._tokenizer.tokenizeHeuristically(n,e,t),r=this.setTokens(n.finalize());if(i)for(const o of r.changes)this._backgroundTokenizer.value?.requestTokens(o.fromLineNumber,o.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(e){const t=new ude;this._tokenizer?.updateTokensUntilLine(t,e),this.setTokens(t.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(e){return this._tokenizer?this._tokenizer.hasAccurateTokensForLine(e):!0}isCheapToTokenize(e){return this._tokenizer?this._tokenizer.isCheapToTokenize(e):!0}getLineTokens(e){const t=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,t);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const i=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,t);!n.equals(i)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,n){if(!this._tokenizer)return 0;const i=this._textModel.validatePosition(new mt(e,t));return this.forceTokenization(i.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(i,n)}tokenizeLineWithEdit(e,t,n){if(!this._tokenizer)return null;const i=this._textModel.validatePosition(e);return this.forceTokenization(i.lineNumber),this._tokenizer.tokenizeLineWithEdit(i,t,n)}get hasTokens(){return this._tokens.hasTokens}}}}),nYt,zD,pBe,iYt,rYt,oYt,r$,KWe,o$,nF=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/textModelEvents.js"(){nYt=class{constructor(){this.changeType=1}},zD=class gBe{static applyInjectedText(t,n){if(!n||n.length===0)return t;let i="",r=0;for(const o of n)i+=t.substring(r,o.column-1),r=o.column-1,i+=o.options.content;return i+=t.substring(r),i}static fromDecorations(t){const n=[];for(const i of t)i.options.before&&i.options.before.content.length>0&&n.push(new gBe(i.ownerId,i.range.startLineNumber,i.range.startColumn,i.options.before,0)),i.options.after&&i.options.after.content.length>0&&n.push(new gBe(i.ownerId,i.range.endLineNumber,i.range.endColumn,i.options.after,1));return n.sort((i,r)=>i.lineNumber===r.lineNumber?i.column===r.column?i.order-r.order:i.column-r.column:i.lineNumber-r.lineNumber),n}constructor(t,n,i,r,o){this.ownerId=t,this.lineNumber=n,this.column=i,this.options=r,this.order=o}},pBe=class{constructor(e,t,n){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=n}},iYt=class{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}},rYt=class{constructor(e,t,n,i){this.changeType=4,this.injectedTexts=i,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}},oYt=class{constructor(){this.changeType=5}},r$=class sYt{constructor(t,n,i,r){this.changes=t,this.versionId=n,this.isUndoing=i,this.isRedoing=r,this.resultingSelection=null}containsEvent(t){for(let n=0,i=this.changes.length;n<i;n++)if(this.changes[n].changeType===t)return!0;return!1}static merge(t,n){const i=[].concat(t.changes).concat(n.changes),r=n.versionId,o=t.isUndoing||n.isUndoing,s=t.isRedoing||n.isRedoing;return new sYt(i,r,o,s)}},KWe=class{constructor(e){this.changes=e}},o$=class mBe{constructor(t,n){this.rawContentChangedEvent=t,this.contentChangedEvent=n}merge(t){const n=r$.merge(this.rawContentChangedEvent,t.rawContentChangedEvent),i=mBe._mergeChangeEvents(this.contentChangedEvent,t.contentChangedEvent);return new mBe(n,i)}static _mergeChangeEvents(t,n){const i=[].concat(t.changes).concat(n.changes),r=n.eol,o=n.versionId,s=t.isUndoing||n.isUndoing,a=t.isRedoing||n.isRedoing,l=t.isFlush||n.isFlush,c=t.isEolChange&&n.isEolChange;return{changes:i,eol:r,isEolChange:c,versionId:o,isUndoing:s,isRedoing:a,isFlush:l}}}}});function yWn(e){const t=new UWe;return t.acceptChunk(e),t.finish()}function bWn(e){const t=new UWe;let n;for(;typeof(n=e.read())=="string";)t.acceptChunk(n);return t.finish()}function xdt(e,t){let n;return typeof e=="string"?n=yWn(e):Ljn(e)?n=bWn(e):n=e,n.create(t)}function _Wn(e){let t=0;for(const n of e)if(n===" "||n==="	")t++;else break;return t}function wCe(e){return!!(e.options.overviewRuler&&e.options.overviewRuler.color)}function wWn(e){return!!e.after||!!e.before}function JJ(e){return!!e.options.after||!!e.options.before}function xS(e){return e.replace(/[^a-z0-9\-_]/gi," ")}function Edt(e){return e instanceof Gr?e:Gr.createDynamic(e)}var Adt,cV,WP,uV,Ddt,Tdt,kdt,j5,N_,CCe,SCe,Idt,Ldt,Ndt,Q6,Gr,xCe,Pdt,Mdt,Ac=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js"(){var e;rr(),ql(),Vi(),Un(),Nt(),Ki(),ss(),L7(),NWe(),Hi(),Dn(),zs(),qpe(),Kd(),lu(),Cd(),VHn(),HHn(),LKt(),OKt(),$Hn(),oWn(),$Kt(),lWn(),Jpe(),vWn(),qWe(),nF(),li(),BHe(),Adt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},cV=function(t,n){return function(i,r){n(i,r,t)}},uV=0,Ddt=999,Tdt=1e4,kdt=class{constructor(t){this._source=t,this._eos=!1}read(){if(this._eos)return null;const t=[];let n=0,i=0;do{const r=this._source.read();if(r===null)return this._eos=!0,n===0?null:t.join("");if(r.length>0&&(t[n++]=r,i+=r.length),i>=64*1024)return t.join("")}while(!0)}},j5=()=>{throw new Error("Invalid change accessor")},N_=(e=class extends St{static resolveOptions(n,i){if(i.detectIndentation){const r=adt(n,i.tabSize,i.insertSpaces);return new UU({tabSize:r.tabSize,indentSize:"tabSize",insertSpaces:r.insertSpaces,trimAutoWhitespace:i.trimAutoWhitespace,defaultEOL:i.defaultEOL,bracketPairColorizationOptions:i.bracketPairColorizationOptions})}return new UU(i)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(n){return this._eventEmitter.slowEvent(i=>n(i.contentChangedEvent))}onDidChangeContentOrInjectedText(n){return z_(this._eventEmitter.fastEvent(i=>n(i)),this._onDidChangeInjectedText.event(i=>n(i)))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(n,i,r,o=null,s,a,l,c){super(),this._undoRedoService=s,this._languageService=a,this._languageConfigurationService=l,this.instantiationService=c,this._onWillDispose=this._register(new bt),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new Pdt(g=>this.handleBeforeFireDecorationsChangedEvent(g))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new bt),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new bt),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new bt),this._eventEmitter=this._register(new Mdt),this._languageSelectionListener=this._register(new Yu),this._deltaDecorationCallCnt=0,this._attachedViews=new ZKt,uV++,this.id="$model"+uV,this.isForSimpleWidget=r.isForSimpleWidget,typeof o>"u"||o===null?this._associatedResource=Ui.parse("inmemory://model/"+uV):this._associatedResource=o,this._attachedEditorCount=0;const{textBuffer:u,disposable:d}=xdt(n,r.defaultEOL);this._buffer=u,this._bufferDisposable=d,this._options=WP.resolveOptions(this._buffer,r);const h=typeof i=="string"?i:i.languageId;typeof i!="string"&&(this._languageSelectionListener.value=i.onDidChange(()=>this._setLanguage(i.languageId))),this._bracketPairs=this._register(new EKt(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new MKt(this,this._languageConfigurationService)),this._decorationProvider=this._register(new AKt(this)),this._tokenizationTextModelPart=this.instantiationService.createInstance(zse,this,this._bracketPairs,h,this._attachedViews);const f=this._buffer.getLineCount(),p=this._buffer.getValueLengthInRange(new Re(1,1,f,this._buffer.getLineLength(f)+1),0);r.largeFileOptimizations?(this._isTooLargeForTokenization=p>WP.LARGE_FILE_SIZE_THRESHOLD||f>WP.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=p>WP.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=p>WP._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=UVt(uV),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new CCe,this._commandManager=new IKt(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange(()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()})),this._languageService.requestRichLanguageFeatures(h),this._register(this._languageConfigurationService.onDidChange(g=>{this._bracketPairs.handleLanguageConfigurationServiceChange(g),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(g)}))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const n=new WWe([],"",`
`,!1,!1,!0,!0);n.dispose(),this._buffer=n,this._bufferDisposable=St.None}_assertNotDisposed(){if(this._isDisposed)throw new ys("Model is disposed!")}_emitContentChangedEvent(n,i){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(i),this._bracketPairs.handleDidChangeContent(i),this._eventEmitter.fire(new o$(n,i)))}setValue(n){if(this._assertNotDisposed(),n==null)throw Gy();const{textBuffer:i,disposable:r}=xdt(n,this._options.defaultEOL);this._setValueFromTextBuffer(i,r)}_createContentChanged2(n,i,r,o,s,a,l,c){return{changes:[{range:n,rangeOffset:i,rangeLength:r,text:o}],eol:this._buffer.getEOL(),isEolChange:c,versionId:this.getVersionId(),isUndoing:s,isRedoing:a,isFlush:l}}_setValueFromTextBuffer(n,i){this._assertNotDisposed();const r=this.getFullModelRange(),o=this.getValueLengthInRange(r),s=this.getLineCount(),a=this.getLineMaxColumn(s);this._buffer=n,this._bufferDisposable.dispose(),this._bufferDisposable=i,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new CCe,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new r$([new nYt],this._versionId,!1,!1),this._createContentChanged2(new Re(1,1,s,a),0,o,this.getValue(),!1,!1,!0,!1))}setEOL(n){this._assertNotDisposed();const i=n===1?`\r
`:`
`;if(this._buffer.getEOL()===i)return;const r=this.getFullModelRange(),o=this.getValueLengthInRange(r),s=this.getLineCount(),a=this.getLineMaxColumn(s);this._onBeforeEOLChange(),this._buffer.setEOL(i),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new r$([new oYt],this._versionId,!1,!1),this._createContentChanged2(new Re(1,1,s,a),0,o,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const n=this.getVersionId(),i=this._decorationsTree.collectNodesPostOrder();for(let r=0,o=i.length;r<o;r++){const s=i[r],a=s.range,l=s.cachedAbsoluteStart-s.start,c=this._buffer.getOffsetAt(a.startLineNumber,a.startColumn),u=this._buffer.getOffsetAt(a.endLineNumber,a.endColumn);s.cachedAbsoluteStart=c,s.cachedAbsoluteEnd=u,s.cachedVersionId=n,s.start=c-l,s.end=u-l,RL(s)}}onBeforeAttached(){return this._attachedEditorCount++,this._attachedEditorCount===1&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(n){this._attachedEditorCount--,this._attachedEditorCount===0&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(n)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let n=0,i=0;const r=this._buffer.getLineCount();for(let o=1;o<=r;o++){const s=this._buffer.getLineLength(o);s>=Tdt?i+=s:n+=s}return i>n}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(n){this._assertNotDisposed();const i=typeof n.tabSize<"u"?n.tabSize:this._options.tabSize,r=typeof n.indentSize<"u"?n.indentSize:this._options.originalIndentSize,o=typeof n.insertSpaces<"u"?n.insertSpaces:this._options.insertSpaces,s=typeof n.trimAutoWhitespace<"u"?n.trimAutoWhitespace:this._options.trimAutoWhitespace,a=typeof n.bracketColorizationOptions<"u"?n.bracketColorizationOptions:this._options.bracketPairColorizationOptions,l=new UU({tabSize:i,indentSize:r,insertSpaces:o,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:s,bracketPairColorizationOptions:a});if(this._options.equals(l))return;const c=this._options.createChangeEvent(l);this._options=l,this._bracketPairs.handleDidChangeOptions(c),this._decorationProvider.handleDidChangeOptions(c),this._onDidChangeOptions.fire(c)}detectIndentation(n,i){this._assertNotDisposed();const r=adt(this._buffer,i,n);this.updateOptions({insertSpaces:r.insertSpaces,tabSize:r.tabSize,indentSize:r.tabSize})}normalizeIndentation(n){return this._assertNotDisposed(),LWe(n,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(n=null){const i=this.findMatches(U3e.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(n,i.map(r=>({range:r.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(n){this._assertNotDisposed();const i=this._validatePosition(n.lineNumber,n.column,0);return this._buffer.getOffsetAt(i.lineNumber,i.column)}getPositionAt(n){this._assertNotDisposed();const i=Math.min(this._buffer.getLength(),Math.max(0,n));return this._buffer.getPositionAt(i)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(n){this._versionId=n}_overwriteAlternativeVersionId(n){this._alternativeVersionId=n}_overwriteInitialUndoRedoSnapshot(n){this._initialUndoRedoSnapshot=n}getValue(n,i=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new ys("Operation would exceed heap memory limits");const r=this.getFullModelRange(),o=this.getValueInRange(r,n);return i?this._buffer.getBOM()+o:o}createSnapshot(n=!1){return new kdt(this._buffer.createSnapshot(n))}getValueLength(n,i=!1){this._assertNotDisposed();const r=this.getFullModelRange(),o=this.getValueLengthInRange(r,n);return i?this._buffer.getBOM().length+o:o}getValueInRange(n,i=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(n),i)}getValueLengthInRange(n,i=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(n),i)}getCharacterCountInRange(n,i=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(n),i)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(n){if(this._assertNotDisposed(),n<1||n>this.getLineCount())throw new ys("Illegal value for lineNumber");return this._buffer.getLineContent(n)}getLineLength(n){if(this._assertNotDisposed(),n<1||n>this.getLineCount())throw new ys("Illegal value for lineNumber");return this._buffer.getLineLength(n)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new ys("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),this._buffer.getEOL()===`
`?0:1}getLineMinColumn(n){return this._assertNotDisposed(),1}getLineMaxColumn(n){if(this._assertNotDisposed(),n<1||n>this.getLineCount())throw new ys("Illegal value for lineNumber");return this._buffer.getLineLength(n)+1}getLineFirstNonWhitespaceColumn(n){if(this._assertNotDisposed(),n<1||n>this.getLineCount())throw new ys("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(n)}getLineLastNonWhitespaceColumn(n){if(this._assertNotDisposed(),n<1||n>this.getLineCount())throw new ys("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(n)}_validateRangeRelaxedNoAllocations(n){const i=this._buffer.getLineCount(),r=n.startLineNumber,o=n.startColumn;let s=Math.floor(typeof r=="number"&&!isNaN(r)?r:1),a=Math.floor(typeof o=="number"&&!isNaN(o)?o:1);if(s<1)s=1,a=1;else if(s>i)s=i,a=this.getLineMaxColumn(s);else if(a<=1)a=1;else{const h=this.getLineMaxColumn(s);a>=h&&(a=h)}const l=n.endLineNumber,c=n.endColumn;let u=Math.floor(typeof l=="number"&&!isNaN(l)?l:1),d=Math.floor(typeof c=="number"&&!isNaN(c)?c:1);if(u<1)u=1,d=1;else if(u>i)u=i,d=this.getLineMaxColumn(u);else if(d<=1)d=1;else{const h=this.getLineMaxColumn(u);d>=h&&(d=h)}return r===s&&o===a&&l===u&&c===d&&n instanceof Re&&!(n instanceof Ii)?n:new Re(s,a,u,d)}_isValidPosition(n,i,r){if(typeof n!="number"||typeof i!="number"||isNaN(n)||isNaN(i)||n<1||i<1||(n|0)!==n||(i|0)!==i)return!1;const o=this._buffer.getLineCount();if(n>o)return!1;if(i===1)return!0;const s=this.getLineMaxColumn(n);if(i>s)return!1;if(r===1){const a=this._buffer.getLineCharCode(n,i-2);if(ud(a))return!1}return!0}_validatePosition(n,i,r){const o=Math.floor(typeof n=="number"&&!isNaN(n)?n:1),s=Math.floor(typeof i=="number"&&!isNaN(i)?i:1),a=this._buffer.getLineCount();if(o<1)return new mt(1,1);if(o>a)return new mt(a,this.getLineMaxColumn(a));if(s<=1)return new mt(o,1);const l=this.getLineMaxColumn(o);if(s>=l)return new mt(o,l);if(r===1){const c=this._buffer.getLineCharCode(o,s-2);if(ud(c))return new mt(o,s-1)}return new mt(o,s)}validatePosition(n){return this._assertNotDisposed(),n instanceof mt&&this._isValidPosition(n.lineNumber,n.column,1)?n:this._validatePosition(n.lineNumber,n.column,1)}_isValidRange(n,i){const r=n.startLineNumber,o=n.startColumn,s=n.endLineNumber,a=n.endColumn;if(!this._isValidPosition(r,o,0)||!this._isValidPosition(s,a,0))return!1;if(i===1){const l=o>1?this._buffer.getLineCharCode(r,o-2):0,c=a>1&&a<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,a-2):0,u=ud(l),d=ud(c);return!u&&!d}return!0}validateRange(n){if(this._assertNotDisposed(),n instanceof Re&&!(n instanceof Ii)&&this._isValidRange(n,1))return n;const r=this._validatePosition(n.startLineNumber,n.startColumn,0),o=this._validatePosition(n.endLineNumber,n.endColumn,0),s=r.lineNumber,a=r.column,l=o.lineNumber,c=o.column;{const u=a>1?this._buffer.getLineCharCode(s,a-2):0,d=c>1&&c<=this._buffer.getLineLength(l)?this._buffer.getLineCharCode(l,c-2):0,h=ud(u),f=ud(d);return!h&&!f?new Re(s,a,l,c):s===l&&a===c?new Re(s,a-1,l,c-1):h&&f?new Re(s,a-1,l,c+1):h?new Re(s,a-1,l,c):new Re(s,a,l,c+1)}}modifyPosition(n,i){this._assertNotDisposed();const r=this.getOffsetAt(n)+i;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,r)))}getFullModelRange(){this._assertNotDisposed();const n=this.getLineCount();return new Re(1,1,n,this.getLineMaxColumn(n))}findMatchesLineByLine(n,i,r,o){return this._buffer.findMatchesLineByLine(n,i,r,o)}findMatches(n,i,r,o,s,a,l=Ddt){this._assertNotDisposed();let c=null;i!==null&&(Array.isArray(i)||(i=[i]),i.every(h=>Re.isIRange(h))&&(c=i.map(h=>this.validateRange(h)))),c===null&&(c=[this.getFullModelRange()]),c=c.sort((h,f)=>h.startLineNumber-f.startLineNumber||h.startColumn-f.startColumn);const u=[];u.push(c.reduce((h,f)=>Re.areIntersecting(h,f)?h.plusRange(f):(u.push(h),f)));let d;if(!r&&n.indexOf(`
`)<0){const f=new dI(n,r,o,s).parseSearchRequest();if(!f)return[];d=p=>this.findMatchesLineByLine(p,f,a,l)}else d=h=>$H.findMatches(this,new dI(n,r,o,s),h,a,l);return u.map(d).reduce((h,f)=>h.concat(f),[])}findNextMatch(n,i,r,o,s,a){this._assertNotDisposed();const l=this.validatePosition(i);if(!r&&n.indexOf(`
`)<0){const u=new dI(n,r,o,s).parseSearchRequest();if(!u)return null;const d=this.getLineCount();let h=new Re(l.lineNumber,l.column,d,this.getLineMaxColumn(d)),f=this.findMatchesLineByLine(h,u,a,1);return $H.findNextMatch(this,new dI(n,r,o,s),l,a),f.length>0||(h=new Re(1,1,l.lineNumber,this.getLineMaxColumn(l.lineNumber)),f=this.findMatchesLineByLine(h,u,a,1),f.length>0)?f[0]:null}return $H.findNextMatch(this,new dI(n,r,o,s),l,a)}findPreviousMatch(n,i,r,o,s,a){this._assertNotDisposed();const l=this.validatePosition(i);return $H.findPreviousMatch(this,new dI(n,r,o,s),l,a)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(n){if((this.getEOL()===`
`?0:1)!==n)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(n)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(n){return n instanceof ise?n:new ise(n.identifier||null,this.validateRange(n.range),n.text,n.forceMoveMarkers||!1,n.isAutoWhitespaceEdit||!1,n._isTracked||!1)}_validateEditOperations(n){const i=[];for(let r=0,o=n.length;r<o;r++)i[r]=this._validateEditOperation(n[r]);return i}pushEditOperations(n,i,r,o){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(n,this._validateEditOperations(i),r,o)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(n,i,r,o){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const s=i.map(l=>({range:this.validateRange(l.range),text:l.text}));let a=!0;if(n)for(let l=0,c=n.length;l<c;l++){const u=n[l];let d=!1;for(let h=0,f=s.length;h<f;h++){const p=s[h].range,g=p.startLineNumber>u.endLineNumber,m=u.startLineNumber>p.endLineNumber;if(!g&&!m){d=!0;break}}if(!d){a=!1;break}}if(a)for(let l=0,c=this._trimAutoWhitespaceLines.length;l<c;l++){const u=this._trimAutoWhitespaceLines[l],d=this.getLineMaxColumn(u);let h=!0;for(let f=0,p=s.length;f<p;f++){const g=s[f].range,m=s[f].text;if(!(u<g.startLineNumber||u>g.endLineNumber)&&!(u===g.startLineNumber&&g.startColumn===d&&g.isEmpty()&&m&&m.length>0&&m.charAt(0)===`
`)&&!(u===g.startLineNumber&&g.startColumn===1&&g.isEmpty()&&m&&m.length>0&&m.charAt(m.length-1)===`
`)){h=!1;break}}if(h){const f=new Re(u,1,u,d);i.push(new ise(null,f,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(n,i,r,o)}_applyUndo(n,i,r,o){const s=n.map(a=>{const l=this.getPositionAt(a.newPosition),c=this.getPositionAt(a.newEnd);return{range:new Re(l.lineNumber,l.column,c.lineNumber,c.column),text:a.oldText}});this._applyUndoRedoEdits(s,i,!0,!1,r,o)}_applyRedo(n,i,r,o){const s=n.map(a=>{const l=this.getPositionAt(a.oldPosition),c=this.getPositionAt(a.oldEnd);return{range:new Re(l.lineNumber,l.column,c.lineNumber,c.column),text:a.newText}});this._applyUndoRedoEdits(s,i,!1,!0,r,o)}_applyUndoRedoEdits(n,i,r,o,s,a){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=r,this._isRedoing=o,this.applyEdits(n,!1),this.setEOL(i),this._overwriteAlternativeVersionId(s)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(a),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(n,i=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const r=this._validateEditOperations(n);return this._doApplyEdits(r,i)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(n,i){const r=this._buffer.getLineCount(),o=this._buffer.applyEdits(n,this._options.trimAutoWhitespace,i),s=this._buffer.getLineCount(),a=o.changes;if(this._trimAutoWhitespaceLines=o.trimAutoWhitespaceLineNumbers,a.length!==0){for(let u=0,d=a.length;u<d;u++){const h=a[u];this._decorationsTree.acceptReplace(h.rangeOffset,h.rangeLength,h.text.length,h.forceMoveMarkers)}const l=[];this._increaseVersionId();let c=r;for(let u=0,d=a.length;u<d;u++){const h=a[u],[f]=PL(h.text);this._onDidChangeDecorations.fire();const p=h.range.startLineNumber,g=h.range.endLineNumber,m=g-p,v=f,y=Math.min(m,v),b=v-m,w=s-c-b+p,E=w,A=w+v,D=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new mt(E,1)),this.getOffsetAt(new mt(A,this.getLineMaxColumn(A))),0),T=zD.fromDecorations(D),M=new Xx(T);for(let P=y;P>=0;P--){const F=p+P,N=w+P;M.takeFromEndWhile(W=>W.lineNumber>N);const j=M.takeFromEndWhile(W=>W.lineNumber===N);l.push(new pBe(F,this.getLineContent(N),j))}if(y<m){const P=p+y;l.push(new iYt(P+1,g))}if(y<v){const P=new Xx(T),F=p+y,N=v-y,j=s-c-N+F+1,W=[],J=[];for(let ee=0;ee<N;ee++){const Q=j+ee;J[ee]=this.getLineContent(Q),P.takeWhile(H=>H.lineNumber<Q),W[ee]=P.takeWhile(H=>H.lineNumber===Q)}l.push(new rYt(F+1,p+v,J,W))}c+=b}this._emitContentChangedEvent(new r$(l,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:a,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return o.reverseEdits===null?void 0:o.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(n){if(n===null||n.size===0)return;const r=Array.from(n).map(o=>new pBe(o,this.getLineContent(o),this._getInjectedTextInLine(o)));this._onDidChangeInjectedText.fire(new KWe(r))}changeDecorations(n,i=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(i,n)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(n,i){const r={addDecoration:(s,a)=>this._deltaDecorationsImpl(n,[],[{range:s,options:a}])[0],changeDecoration:(s,a)=>{this._changeDecorationImpl(s,a)},changeDecorationOptions:(s,a)=>{this._changeDecorationOptionsImpl(s,Edt(a))},removeDecoration:s=>{this._deltaDecorationsImpl(n,[s],[])},deltaDecorations:(s,a)=>s.length===0&&a.length===0?[]:this._deltaDecorationsImpl(n,s,a)};let o=null;try{o=i(r)}catch(s){Mr(s)}return r.addDecoration=j5,r.changeDecoration=j5,r.changeDecorationOptions=j5,r.removeDecoration=j5,r.deltaDecorations=j5,o}deltaDecorations(n,i,r=0){if(this._assertNotDisposed(),n||(n=[]),n.length===0&&i.length===0)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),Mr(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(r,n,i)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(n){return this.getDecorationRange(n)}_setTrackedRange(n,i,r){const o=n?this._decorations[n]:null;if(!o)return i?this._deltaDecorationsImpl(0,[],[{range:i,options:xCe[r]}],!0)[0]:null;if(!i)return this._decorationsTree.delete(o),delete this._decorations[o.id],null;const s=this._validateRangeRelaxedNoAllocations(i),a=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),l=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);return this._decorationsTree.delete(o),o.reset(this.getVersionId(),a,l,s),o.setOptions(xCe[r]),this._decorationsTree.insert(o),o.id}removeAllDecorationsWithOwnerId(n){if(this._isDisposed)return;const i=this._decorationsTree.collectNodesFromOwner(n);for(let r=0,o=i.length;r<o;r++){const s=i[r];this._decorationsTree.delete(s),delete this._decorations[s.id]}}getDecorationOptions(n){const i=this._decorations[n];return i?i.options:null}getDecorationRange(n){const i=this._decorations[n];return i?this._decorationsTree.getNodeRange(this,i):null}getLineDecorations(n,i=0,r=!1){return n<1||n>this.getLineCount()?[]:this.getLinesDecorations(n,n,i,r)}getLinesDecorations(n,i,r=0,o=!1,s=!1){const a=this.getLineCount(),l=Math.min(a,Math.max(1,n)),c=Math.min(a,Math.max(1,i)),u=this.getLineMaxColumn(c),d=new Re(l,1,c,u),h=this._getDecorationsInRange(d,r,o,s);return v5e(h,this._decorationProvider.getDecorationsInRange(d,r,o)),h}getDecorationsInRange(n,i=0,r=!1,o=!1,s=!1){const a=this.validateRange(n),l=this._getDecorationsInRange(a,i,r,s);return v5e(l,this._decorationProvider.getDecorationsInRange(a,i,r,o)),l}getOverviewRulerDecorations(n=0,i=!1){return this._decorationsTree.getAll(this,n,i,!0,!1)}getInjectedTextDecorations(n=0){return this._decorationsTree.getAllInjectedText(this,n)}_getInjectedTextInLine(n){const i=this._buffer.getOffsetAt(n,1),r=i+this._buffer.getLineLength(n),o=this._decorationsTree.getInjectedTextInInterval(this,i,r,0);return zD.fromDecorations(o).filter(s=>s.lineNumber===n)}getAllDecorations(n=0,i=!1){let r=this._decorationsTree.getAll(this,n,i,!1,!1);return r=r.concat(this._decorationProvider.getAllDecorations(n,i)),r}getAllMarginDecorations(n=0){return this._decorationsTree.getAll(this,n,!1,!1,!0)}_getDecorationsInRange(n,i,r,o){const s=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),a=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);return this._decorationsTree.getAllInInterval(this,s,a,i,r,o)}getRangeAt(n,i){return this._buffer.getRangeAt(n,i-n)}_changeDecorationImpl(n,i){const r=this._decorations[n];if(!r)return;if(r.options.after){const l=this.getDecorationRange(n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(l.endLineNumber)}if(r.options.before){const l=this.getDecorationRange(n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(l.startLineNumber)}const o=this._validateRangeRelaxedNoAllocations(i),s=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),a=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);this._decorationsTree.delete(r),r.reset(this.getVersionId(),s,a,o),this._decorationsTree.insert(r),this._onDidChangeDecorations.checkAffectedAndFire(r.options),r.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(o.endLineNumber),r.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(o.startLineNumber)}_changeDecorationOptionsImpl(n,i){const r=this._decorations[n];if(!r)return;const o=!!(r.options.overviewRuler&&r.options.overviewRuler.color),s=!!(i.overviewRuler&&i.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(r.options),this._onDidChangeDecorations.checkAffectedAndFire(i),r.options.after||i.after){const c=this._decorationsTree.getNodeRange(this,r);this._onDidChangeDecorations.recordLineAffectedByInjectedText(c.endLineNumber)}if(r.options.before||i.before){const c=this._decorationsTree.getNodeRange(this,r);this._onDidChangeDecorations.recordLineAffectedByInjectedText(c.startLineNumber)}const a=o!==s,l=wWn(i)!==JJ(r);a||l?(this._decorationsTree.delete(r),r.setOptions(i),this._decorationsTree.insert(r)):r.setOptions(i)}_deltaDecorationsImpl(n,i,r,o=!1){const s=this.getVersionId(),a=i.length;let l=0;const c=r.length;let u=0;this._onDidChangeDecorations.beginDeferredEmit();try{const d=new Array(c);for(;l<a||u<c;){let h=null;if(l<a){do h=this._decorations[i[l++]];while(!h&&l<a);if(h){if(h.options.after){const f=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(f.endLineNumber)}if(h.options.before){const f=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(f.startLineNumber)}this._decorationsTree.delete(h),o||this._onDidChangeDecorations.checkAffectedAndFire(h.options)}}if(u<c){if(!h){const y=++this._lastDecorationId,b=`${this._instanceId};${y}`;h=new cBe(b,0,0),this._decorations[b]=h}const f=r[u],p=this._validateRangeRelaxedNoAllocations(f.range),g=Edt(f.options),m=this._buffer.getOffsetAt(p.startLineNumber,p.startColumn),v=this._buffer.getOffsetAt(p.endLineNumber,p.endColumn);h.ownerId=n,h.reset(s,m,v,p),h.setOptions(g),h.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(p.endLineNumber),h.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(p.startLineNumber),o||this._onDidChangeDecorations.checkAffectedAndFire(g),this._decorationsTree.insert(h),d[u]=h.id,u++}else h&&delete this._decorations[h.id]}return d}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(n,i){typeof n=="string"?(this._languageSelectionListener.clear(),this._setLanguage(n,i)):(this._languageSelectionListener.value=n.onDidChange(()=>this._setLanguage(n.languageId,i)),this._setLanguage(n.languageId,i))}_setLanguage(n,i){this.tokenization.setLanguageId(n,i),this._languageService.requestRichLanguageFeatures(n)}getLanguageIdAtPosition(n,i){return this.tokenization.getLanguageIdAtPosition(n,i)}getWordAtPosition(n){return this._tokenizationTextModelPart.getWordAtPosition(n)}getWordUntilPosition(n){return this._tokenizationTextModelPart.getWordUntilPosition(n)}normalizePosition(n,i){return n}getLineIndentColumn(n){return _Wn(this.getLineContent(n))+1}},WP=e,e._MODEL_SYNC_LIMIT=50*1024*1024,e.LARGE_FILE_SIZE_THRESHOLD=20*1024*1024,e.LARGE_FILE_LINE_COUNT_THRESHOLD=300*1e3,e.LARGE_FILE_HEAP_OPERATION_THRESHOLD=256*1024*1024,e.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:tf.tabSize,indentSize:tf.indentSize,insertSpaces:tf.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:tf.trimAutoWhitespace,largeFileOptimizations:tf.largeFileOptimizations,bracketPairColorizationOptions:tf.bracketPairColorizationOptions},e),N_=WP=Adt([cV(4,rge),cV(5,al),cV(6,yl),cV(7,ji)],N_),CCe=class{constructor(){this._decorationsTree0=new Bse,this._decorationsTree1=new Bse,this._injectedTextDecorationsTree=new Bse}ensureAllNodesHaveRanges(t){this.getAll(t,0,!1,!1,!1)}_ensureNodesHaveRanges(t,n){for(const i of n)i.range===null&&(i.range=t.getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd));return n}getAllInInterval(t,n,i,r,o,s){const a=t.getVersionId(),l=this._intervalSearch(n,i,r,o,a,s);return this._ensureNodesHaveRanges(t,l)}_intervalSearch(t,n,i,r,o,s){const a=this._decorationsTree0.intervalSearch(t,n,i,r,o,s),l=this._decorationsTree1.intervalSearch(t,n,i,r,o,s),c=this._injectedTextDecorationsTree.intervalSearch(t,n,i,r,o,s);return a.concat(l).concat(c)}getInjectedTextInInterval(t,n,i,r){const o=t.getVersionId(),s=this._injectedTextDecorationsTree.intervalSearch(n,i,r,!1,o,!1);return this._ensureNodesHaveRanges(t,s).filter(a=>a.options.showIfCollapsed||!a.range.isEmpty())}getAllInjectedText(t,n){const i=t.getVersionId(),r=this._injectedTextDecorationsTree.search(n,!1,i,!1);return this._ensureNodesHaveRanges(t,r).filter(o=>o.options.showIfCollapsed||!o.range.isEmpty())}getAll(t,n,i,r,o){const s=t.getVersionId(),a=this._search(n,i,r,s,o);return this._ensureNodesHaveRanges(t,a)}_search(t,n,i,r,o){if(i)return this._decorationsTree1.search(t,n,r,o);{const s=this._decorationsTree0.search(t,n,r,o),a=this._decorationsTree1.search(t,n,r,o),l=this._injectedTextDecorationsTree.search(t,n,r,o);return s.concat(a).concat(l)}}collectNodesFromOwner(t){const n=this._decorationsTree0.collectNodesFromOwner(t),i=this._decorationsTree1.collectNodesFromOwner(t),r=this._injectedTextDecorationsTree.collectNodesFromOwner(t);return n.concat(i).concat(r)}collectNodesPostOrder(){const t=this._decorationsTree0.collectNodesPostOrder(),n=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return t.concat(n).concat(i)}insert(t){JJ(t)?this._injectedTextDecorationsTree.insert(t):wCe(t)?this._decorationsTree1.insert(t):this._decorationsTree0.insert(t)}delete(t){JJ(t)?this._injectedTextDecorationsTree.delete(t):wCe(t)?this._decorationsTree1.delete(t):this._decorationsTree0.delete(t)}getNodeRange(t,n){const i=t.getVersionId();return n.cachedVersionId!==i&&this._resolveNode(n,i),n.range===null&&(n.range=t.getRangeAt(n.cachedAbsoluteStart,n.cachedAbsoluteEnd)),n.range}_resolveNode(t,n){JJ(t)?this._injectedTextDecorationsTree.resolveNode(t,n):wCe(t)?this._decorationsTree1.resolveNode(t,n):this._decorationsTree0.resolveNode(t,n)}acceptReplace(t,n,i,r){this._decorationsTree0.acceptReplace(t,n,i,r),this._decorationsTree1.acceptReplace(t,n,i,r),this._injectedTextDecorationsTree.acceptReplace(t,n,i,r)}},SCe=class{constructor(t){this.color=t.color||"",this.darkColor=t.darkColor||""}},Idt=class extends SCe{constructor(t){super(t),this._resolvedColor=null,this.position=typeof t.position=="number"?t.position:x0.Center}getColor(t){return this._resolvedColor||(t.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,t):this._resolvedColor=this._resolveColor(this.color,t)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(t,n){if(typeof t=="string")return t;const i=t?n.getColor(t.id):null;return i?i.toString():""}},Ldt=class{constructor(t){this.position=t?.position??tw.Center,this.persistLane=t?.persistLane}},Ndt=class extends SCe{constructor(t){super(t),this.position=t.position,this.sectionHeaderStyle=t.sectionHeaderStyle??null,this.sectionHeaderText=t.sectionHeaderText??null}getColor(t){return this._resolvedColor||(t.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,t):this._resolvedColor=this._resolveColor(this.color,t)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(t,n){return typeof t=="string"?rn.fromHex(t):n.getColor(t.id)}},Q6=class vBe{static from(n){return n instanceof vBe?n:new vBe(n)}constructor(n){this.content=n.content||"",this.inlineClassName=n.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=n.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=n.attachedData||null,this.cursorStops=n.cursorStops||null}},Gr=class yBe{static register(n){return new yBe(n)}static createDynamic(n){return new yBe(n)}constructor(n){this.description=n.description,this.blockClassName=n.blockClassName?xS(n.blockClassName):null,this.blockDoesNotCollapse=n.blockDoesNotCollapse??null,this.blockIsAfterEnd=n.blockIsAfterEnd??null,this.blockPadding=n.blockPadding??null,this.stickiness=n.stickiness||0,this.zIndex=n.zIndex||0,this.className=n.className?xS(n.className):null,this.shouldFillLineOnLineBreak=n.shouldFillLineOnLineBreak??null,this.hoverMessage=n.hoverMessage||null,this.glyphMarginHoverMessage=n.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=n.lineNumberHoverMessage||null,this.isWholeLine=n.isWholeLine||!1,this.showIfCollapsed=n.showIfCollapsed||!1,this.collapseOnReplaceEdit=n.collapseOnReplaceEdit||!1,this.overviewRuler=n.overviewRuler?new Idt(n.overviewRuler):null,this.minimap=n.minimap?new Ndt(n.minimap):null,this.glyphMargin=n.glyphMarginClassName?new Ldt(n.glyphMargin):null,this.glyphMarginClassName=n.glyphMarginClassName?xS(n.glyphMarginClassName):null,this.linesDecorationsClassName=n.linesDecorationsClassName?xS(n.linesDecorationsClassName):null,this.lineNumberClassName=n.lineNumberClassName?xS(n.lineNumberClassName):null,this.linesDecorationsTooltip=n.linesDecorationsTooltip?v9n(n.linesDecorationsTooltip):null,this.firstLineDecorationClassName=n.firstLineDecorationClassName?xS(n.firstLineDecorationClassName):null,this.marginClassName=n.marginClassName?xS(n.marginClassName):null,this.inlineClassName=n.inlineClassName?xS(n.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=n.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=n.beforeContentClassName?xS(n.beforeContentClassName):null,this.afterContentClassName=n.afterContentClassName?xS(n.afterContentClassName):null,this.after=n.after?Q6.from(n.after):null,this.before=n.before?Q6.from(n.before):null,this.hideInCommentTokens=n.hideInCommentTokens??!1,this.hideInStringTokens=n.hideInStringTokens??!1}},Gr.EMPTY=Gr.register({description:"empty"}),xCe=[Gr.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),Gr.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),Gr.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),Gr.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})],Pdt=class extends St{constructor(t){super(),this.handleBeforeFire=t,this._actual=this._register(new bt),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){this._deferredCnt--,this._deferredCnt===0&&(this._shouldFireDeferred&&this.doFire(),this._affectedInjectedTextLines?.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(t){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(t)}checkAffectedAndFire(t){this._affectsMinimap||=!!t.minimap?.position,this._affectsOverviewRuler||=!!t.overviewRuler?.color,this._affectsGlyphMargin||=!!t.glyphMarginClassName,this._affectsLineNumber||=!!t.lineNumberClassName,this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){this._deferredCnt===0?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const t={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(t)}},Mdt=class extends St{constructor(){super(),this._fastEmitter=this._register(new bt),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new bt),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(t=null){if(this._deferredCnt--,this._deferredCnt===0&&this._deferredEvent!==null){this._deferredEvent.rawContentChangedEvent.resultingSelection=t;const n=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(n),this._slowEmitter.fire(n)}}fire(t){if(this._deferredCnt>0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(t):this._deferredEvent=t;return}this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}}});function UP(e){return e.toString()}var Odt,dV,z5,Rdt,Fdt,Bdt,Vse,jdt,CWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/modelService.js"(){var e,t;Un(),Nt(),Xr(),Ac(),qpe(),G0(),ige(),sa(),BHe(),Y2(),LKt(),Gd(),bm(),li(),Odt=function(n,i,r,o){var s=arguments.length,a=s<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,r):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,i,r,o);else for(var c=n.length-1;c>=0;c--)(l=n[c])&&(a=(s<3?l(a):s>3?l(i,r,a):l(i,r))||a);return s>3&&a&&Object.defineProperty(i,r,a),a},dV=function(n,i){return function(r,o){i(r,o,n)}},Rdt=class{constructor(n,i,r){this.model=n,this._modelEventListeners=new Jt,this.model=n,this._modelEventListeners.add(n.onWillDispose(()=>i(n))),this._modelEventListeners.add(n.onDidChangeLanguage(o=>r(n,o)))}dispose(){this._modelEventListeners.dispose()}},Fdt=Wf||xo?1:2,Bdt=class{constructor(n,i,r,o,s,a,l,c){this.uri=n,this.initialUndoRedoSnapshot=i,this.time=r,this.sharesUndoRedoStack=o,this.heapSize=s,this.sha1=a,this.versionId=l,this.alternativeVersionId=c}},Vse=(e=class extends St{constructor(i,r,o,s){super(),this._configurationService=i,this._resourcePropertiesService=r,this._undoRedoService=o,this._instantiationService=s,this._onModelAdded=this._register(new bt),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new bt),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new bt),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration(a=>this._updateModelOptions(a))),this._updateModelOptions(void 0)}static _readModelOptions(i,r){let o=tf.tabSize;if(i.editor&&typeof i.editor.tabSize<"u"){const p=parseInt(i.editor.tabSize,10);isNaN(p)||(o=p),o<1&&(o=1)}let s="tabSize";if(i.editor&&typeof i.editor.indentSize<"u"&&i.editor.indentSize!=="tabSize"){const p=parseInt(i.editor.indentSize,10);isNaN(p)||(s=Math.max(p,1))}let a=tf.insertSpaces;i.editor&&typeof i.editor.insertSpaces<"u"&&(a=i.editor.insertSpaces==="false"?!1:!!i.editor.insertSpaces);let l=Fdt;const c=i.eol;c===`\r
`?l=2:c===`
`&&(l=1);let u=tf.trimAutoWhitespace;i.editor&&typeof i.editor.trimAutoWhitespace<"u"&&(u=i.editor.trimAutoWhitespace==="false"?!1:!!i.editor.trimAutoWhitespace);let d=tf.detectIndentation;i.editor&&typeof i.editor.detectIndentation<"u"&&(d=i.editor.detectIndentation==="false"?!1:!!i.editor.detectIndentation);let h=tf.largeFileOptimizations;i.editor&&typeof i.editor.largeFileOptimizations<"u"&&(h=i.editor.largeFileOptimizations==="false"?!1:!!i.editor.largeFileOptimizations);let f=tf.bracketPairColorizationOptions;return i.editor?.bracketPairColorization&&typeof i.editor.bracketPairColorization=="object"&&(f={enabled:!!i.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!i.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:r,tabSize:o,indentSize:s,insertSpaces:a,detectIndentation:d,defaultEOL:l,trimAutoWhitespace:u,largeFileOptimizations:h,bracketPairColorizationOptions:f}}_getEOL(i,r){if(i)return this._resourcePropertiesService.getEOL(i,r);const o=this._configurationService.getValue("files.eol",{overrideIdentifier:r});return o&&typeof o=="string"&&o!=="auto"?o:om===3||om===2?`
`:`\r
`}_shouldRestoreUndoStack(){const i=this._configurationService.getValue("files.restoreUndoStack");return typeof i=="boolean"?i:!0}getCreationOptions(i,r,o){const s=typeof i=="string"?i:i.languageId;let a=this._modelCreationOptionsByLanguageAndResource[s+r];if(!a){const l=this._configurationService.getValue("editor",{overrideIdentifier:s,resource:r}),c=this._getEOL(r,s);a=z5._readModelOptions({editor:l,eol:c},o),this._modelCreationOptionsByLanguageAndResource[s+r]=a}return a}_updateModelOptions(i){const r=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const o=Object.keys(this._models);for(let s=0,a=o.length;s<a;s++){const l=o[s],c=this._models[l],u=c.model.getLanguageId(),d=c.model.uri;if(i&&!i.affectsConfiguration("editor",{overrideIdentifier:u,resource:d})&&!i.affectsConfiguration("files.eol",{overrideIdentifier:u,resource:d}))continue;const h=r[u+d],f=this.getCreationOptions(u,d,c.model.isForSimpleWidget);z5._setModelOptionsForModel(c.model,f,h)}}static _setModelOptionsForModel(i,r,o){o&&o.defaultEOL!==r.defaultEOL&&i.getLineCount()===1&&i.setEOL(r.defaultEOL===1?0:1),!(o&&o.detectIndentation===r.detectIndentation&&o.insertSpaces===r.insertSpaces&&o.tabSize===r.tabSize&&o.indentSize===r.indentSize&&o.trimAutoWhitespace===r.trimAutoWhitespace&&Ev(o.bracketPairColorizationOptions,r.bracketPairColorizationOptions))&&(r.detectIndentation?(i.detectIndentation(r.insertSpaces,r.tabSize),i.updateOptions({trimAutoWhitespace:r.trimAutoWhitespace,bracketColorizationOptions:r.bracketPairColorizationOptions})):i.updateOptions({insertSpaces:r.insertSpaces,tabSize:r.tabSize,indentSize:r.indentSize,trimAutoWhitespace:r.trimAutoWhitespace,bracketColorizationOptions:r.bracketPairColorizationOptions}))}_insertDisposedModel(i){this._disposedModels.set(UP(i.uri),i),this._disposedModelsHeapSize+=i.heapSize}_removeDisposedModel(i){const r=this._disposedModels.get(UP(i));return r&&(this._disposedModelsHeapSize-=r.heapSize),this._disposedModels.delete(UP(i)),r}_ensureDisposedModelsHeapSize(i){if(this._disposedModelsHeapSize>i){const r=[];for(this._disposedModels.forEach(o=>{o.sharesUndoRedoStack||r.push(o)}),r.sort((o,s)=>o.time-s.time);r.length>0&&this._disposedModelsHeapSize>i;){const o=r.shift();this._removeDisposedModel(o.uri),o.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(o.initialUndoRedoSnapshot)}}}_createModelData(i,r,o,s){const a=this.getCreationOptions(r,o,s),l=this._instantiationService.createInstance(N_,i,r,a,o);if(o&&this._disposedModels.has(UP(o))){const d=this._removeDisposedModel(o),h=this._undoRedoService.getElements(o),f=this._getSHA1Computer(),p=f.canComputeSHA1(l)?f.computeSHA1(l)===d.sha1:!1;if(p||d.sharesUndoRedoStack){for(const g of h.past)$A(g)&&g.matchesResource(o)&&g.setModel(l);for(const g of h.future)$A(g)&&g.matchesResource(o)&&g.setModel(l);this._undoRedoService.setElementsValidFlag(o,!0,g=>$A(g)&&g.matchesResource(o)),p&&(l._overwriteVersionId(d.versionId),l._overwriteAlternativeVersionId(d.alternativeVersionId),l._overwriteInitialUndoRedoSnapshot(d.initialUndoRedoSnapshot))}else d.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(d.initialUndoRedoSnapshot)}const c=UP(l.uri);if(this._models[c])throw new Error("ModelService: Cannot add model because it already exists!");const u=new Rdt(l,d=>this._onWillDispose(d),(d,h)=>this._onDidChangeLanguage(d,h));return this._models[c]=u,u}createModel(i,r,o,s=!1){let a;return r?a=this._createModelData(i,r,o,s):a=this._createModelData(i,xp,o,s),this._onModelAdded.fire(a.model),a.model}getModels(){const i=[],r=Object.keys(this._models);for(let o=0,s=r.length;o<s;o++){const a=r[o];i.push(this._models[a].model)}return i}getModel(i){const r=UP(i),o=this._models[r];return o?o.model:null}_schemaShouldMaintainUndoRedoElements(i){return i.scheme===Pr.file||i.scheme===Pr.vscodeRemote||i.scheme===Pr.vscodeUserData||i.scheme===Pr.vscodeNotebookCell||i.scheme==="fake-fs"}_onWillDispose(i){const r=UP(i.uri),o=this._models[r],s=this._undoRedoService.getUriComparisonKey(i.uri)!==i.uri.toString();let a=!1,l=0;if(s||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(i.uri)){const d=this._undoRedoService.getElements(i.uri);if(d.past.length>0||d.future.length>0){for(const h of d.past)$A(h)&&h.matchesResource(i.uri)&&(a=!0,l+=h.heapSize(i.uri),h.setModel(i.uri));for(const h of d.future)$A(h)&&h.matchesResource(i.uri)&&(a=!0,l+=h.heapSize(i.uri),h.setModel(i.uri))}}const c=z5.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,u=this._getSHA1Computer();if(a)if(!s&&(l>c||!u.canComputeSHA1(i))){const d=o.model.getInitialUndoRedoSnapshot();d!==null&&this._undoRedoService.restoreSnapshot(d)}else this._ensureDisposedModelsHeapSize(c-l),this._undoRedoService.setElementsValidFlag(i.uri,!1,d=>$A(d)&&d.matchesResource(i.uri)),this._insertDisposedModel(new Bdt(i.uri,o.model.getInitialUndoRedoSnapshot(),Date.now(),s,l,u.computeSHA1(i),i.getVersionId(),i.getAlternativeVersionId()));else if(!s){const d=o.model.getInitialUndoRedoSnapshot();d!==null&&this._undoRedoService.restoreSnapshot(d)}delete this._models[r],o.dispose(),delete this._modelCreationOptionsByLanguageAndResource[i.getLanguageId()+i.uri],this._onModelRemoved.fire(i)}_onDidChangeLanguage(i,r){const o=r.oldLanguage,s=i.getLanguageId(),a=this.getCreationOptions(o,i.uri,i.isForSimpleWidget),l=this.getCreationOptions(s,i.uri,i.isForSimpleWidget);z5._setModelOptionsForModel(i,l,a),this._onModelModeChanged.fire({model:i,oldLanguageId:o})}_getSHA1Computer(){return new jdt}},z5=e,e.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20*1024*1024,e),Vse=z5=Odt([dV(0,co),dV(1,FHe),dV(2,rge),dV(3,ji)],Vse),jdt=(t=class{canComputeSHA1(i){return i.getValueLength()<=t.MAX_MODEL_SIZE}computeSHA1(i){const r=new KVt,o=i.createSnapshot();let s;for(;s=o.read();)r.update(s);return r.digest()}},t.MAX_MODEL_SIZE=10*1024*1024,t)}}),SWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickInput/standaloneQuickInput.css"(){}}),bBe,FL,zdt,z7=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/quickinput/common/quickAccess.js"(){rr(),Nt(),Fu(),(function(e){e[e.PRESERVE=0]="PRESERVE",e[e.LAST=1]="LAST"})(bBe||(bBe={})),FL={Quickaccess:"workbench.contributions.quickaccess"},zdt=class{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return e.prefix.length===0?this.defaultProvider=e:this.providers.push(e),this.providers.sort((t,n)=>n.prefix.length-t.prefix.length),zi(()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return ew([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find(n=>e.startsWith(n.prefix))||void 0||this.defaultProvider}},ml.add(FL.Quickaccess,new zdt)}}),aYt,c9,N1,Ka,hde,Vdt,Z0,Hv=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/quickinput/common/quickInput.js"(){li(),aYt={ctrlCmd:!1,alt:!1},(function(e){e[e.Blur=1]="Blur",e[e.Gesture=2]="Gesture",e[e.Other=3]="Other"})(c9||(c9={})),(function(e){e[e.NONE=0]="NONE",e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND",e[e.LAST=3]="LAST"})(N1||(N1={})),(function(e){e[e.First=1]="First",e[e.Second=2]="Second",e[e.Last=3]="Last",e[e.Next=4]="Next",e[e.Previous=5]="Previous",e[e.NextPage=6]="NextPage",e[e.PreviousPage=7]="PreviousPage",e[e.NextSeparator=8]="NextSeparator",e[e.PreviousSeparator=9]="PreviousSeparator"})(Ka||(Ka={})),(function(e){e[e.Title=1]="Title",e[e.Inline=2]="Inline"})(hde||(hde={})),Vdt=class{constructor(e){this.options=e}},new Vdt,Z0=Ao("quickInputService")}}),Hdt,ECe,Hse,xWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/quickinput/browser/quickAccess.js"(){fr(),Ho(),Un(),Nt(),li(),z7(),Hv(),Fu(),Hdt=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},ECe=function(e,t){return function(n,i){t(n,i,e)}},Hse=class extends St{constructor(t,n){super(),this.quickInputService=t,this.instantiationService=n,this.registry=ml.as(FL.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(t="",n){this.doShowOrPick(t,!1,n)}doShowOrPick(t,n,i){const[r,o]=this.getOrInstantiateProvider(t,i?.enabledProviderPrefixes),s=this.visibleQuickAccess,a=s?.descriptor;if(s&&o&&a===o){t!==o.prefix&&!i?.preserveValue&&(s.picker.value=t),this.adjustValueSelection(s.picker,o,i);return}if(o&&!i?.preserveValue){let p;if(s&&a&&a!==o){const g=s.value.substr(a.prefix.length);g&&(p=`${o.prefix}${g}`)}if(!p){const g=r?.defaultFilterValue;g===bBe.LAST?p=this.lastAcceptedPickerValues.get(o):typeof g=="string"&&(p=`${o.prefix}${g}`)}typeof p=="string"&&(t=p)}const l=s?.picker?.valueSelection,c=s?.picker?.value,u=new Jt,d=u.add(this.quickInputService.createQuickPick({useSeparators:!0}));d.value=t,this.adjustValueSelection(d,o,i),d.placeholder=i?.placeholder??o?.placeholder,d.quickNavigate=i?.quickNavigateConfiguration,d.hideInput=!!d.quickNavigate&&!s,(typeof i?.itemActivation=="number"||i?.quickNavigateConfiguration)&&(d.itemActivation=i?.itemActivation??N1.SECOND),d.contextKey=o?.contextKey,d.filterValue=p=>p.substring(o?o.prefix.length:0);let h;n&&(h=new K2,u.add(On.once(d.onWillAccept)(p=>{p.veto(),d.hide()}))),u.add(this.registerPickerListeners(d,r,o,t,i));const f=u.add(new bl);if(r&&u.add(r.provide(d,f.token,i?.providerOptions)),On.once(d.onDidHide)(()=>{d.selectedItems.length===0&&f.cancel(),u.dispose(),h?.complete(d.selectedItems.slice(0))}),d.show(),l&&c===t&&(d.valueSelection=l),n)return h?.p}adjustValueSelection(t,n,i){let r;i?.preserveValue?r=[t.value.length,t.value.length]:r=[n?.prefix.length??0,t.value.length],t.valueSelection=r}registerPickerListeners(t,n,i,r,o){const s=new Jt,a=this.visibleQuickAccess={picker:t,descriptor:i,value:r};return s.add(zi(()=>{a===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),s.add(t.onDidChangeValue(l=>{const[c]=this.getOrInstantiateProvider(l,o?.enabledProviderPrefixes);c!==n?this.show(l,{enabledProviderPrefixes:o?.enabledProviderPrefixes,preserveValue:!0,providerOptions:o?.providerOptions}):a.value=l})),i&&s.add(t.onDidAccept(()=>{this.lastAcceptedPickerValues.set(i,t.value)})),s}getOrInstantiateProvider(t,n){const i=this.registry.getQuickAccessProvider(t);if(!i||n&&!n?.includes(i.prefix))return[void 0,void 0];let r=this.mapProviderToDescriptor.get(i);return r||(r=this.instantiationService.createInstance(i.ctor),this.mapProviderToDescriptor.set(i,r)),[r,i]}},Hse=Hdt([ECe(0,Z0),ECe(1,ji)],Hse)}}),EWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/toggle/toggle.css"(){}}),bR,xY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/toggle/toggle.js"(){mw(),Ra(),Un(),EWn(),Lh(),_w(),bR=class extends Ov{constructor(e){super(),this._onChange=this._register(new bt),this.onChange=this._onChange.event,this._onKeyDown=this._register(new bt),this.onKeyDown=this._onKeyDown.event,this._opts=e,this._checked=this._opts.isChecked;const t=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,t.push(...lr.asClassNameArray(this._icon))),this._opts.actionClassName&&t.push(...this._opts.actionClassName.split(" ")),this._checked&&t.push("checked"),this.domNode=document.createElement("div"),this._hover=this._register(GC().setupManagedHover(e.hoverDelegate??hg("mouse"),this.domNode,this._opts.title)),this.domNode.classList.add(...t),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,n=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),n.preventDefault())}),this._register(this.ignoreGesture(this.domNode)),this.onkeydown(this.domNode,n=>{if(n.keyCode===10||n.keyCode===3){this.checked=!this._checked,this._onChange.fire(!0),n.preventDefault(),n.stopPropagation();return}this._onKeyDown.fire(n)})}get enabled(){return this.domNode.getAttribute("aria-disabled")!=="true"}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 22}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder||"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground||"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground||"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}}}),YWe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/quickinput/browser/media/quickInput.css"(){}});function AWn(e){const t=[];let n=0,i;for(;i=lYt.exec(e);){i.index-n>0&&t.push(e.substring(n,i.index));const[,r,o,,s]=i;s?t.push({label:r,href:o,title:s}):t.push({label:r,href:o}),n=i.index+i[0].length}return n<e.length&&t.push(e.substring(n)),new _Be(t)}var Wdt,_Be,lYt,DWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/linkedText.js"(){tF(),Wdt=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},_Be=class{constructor(e){this.nodes=e}toString(){return this.nodes.map(e=>typeof e=="string"?e:e.label).join("")}},Wdt([Hc],_Be.prototype,"toString",null),lYt=/\[([^\]]+)\]\(((?:https?:\/\/|command:|file:)[^\)\s]+)(?: (["'])(.+?)(\3))?\)/gi}});function TWn(e){if(!e)return;let t;const n=e.dark.toString();return Wse[n]?t=Wse[n]:(t=cYt.nextId(),xue(`.${t}, .hc-light .${t}`,`background-image: ${lD(e.light||e.dark)}`),xue(`.vs-dark .${t}, .hc-black .${t}`,`background-image: ${lD(e.dark)}`),Wse[n]=t),t}function s$(e,t,n){let i=e.iconClass||TWn(e.iconPath);return e.alwaysVisible&&(i=i?`${i} always-visible`:"always-visible"),{id:t,label:"",tooltip:e.tooltip||"",class:i,enabled:!0,run:n}}function kWn(e,t,n){xh(t);const i=AWn(e);let r=0;for(const o of i.nodes)if(typeof o=="string")t.append(...aL(o));else{let s=o.title;!s&&o.href.startsWith("command:")?s=R("executeCommand","Click to execute command '{0}'",o.href.substring(8)):s||(s=o.href);const a=In("a",{href:o.href,title:s,tabIndex:r++},o.label);a.style.textDecoration="underline";const l=f=>{W9n(f)&&Po.stop(f,!0),n.callback(o.href)},c=n.disposables.add(new ko(a,kn.CLICK)).event,u=n.disposables.add(new ko(a,kn.KEY_DOWN)).event,d=On.chain(u,f=>f.filter(p=>{const g=new Sa(p);return g.equals(10)||g.equals(3)}));n.disposables.add(Ap.addTarget(a));const h=n.disposables.add(new ko(a,Wa.Tap)).event;On.any(c,h,d)(l,null,n.disposables),t.appendChild(a)}}var Wse,cYt,uYt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/quickinput/browser/quickInputUtils.js"(){Fn(),UC(),Un(),mf(),Q0(),MN(),uge(),DWn(),YWe(),bn(),Wse={},cYt=new Gue("quick-input-button-icon-")}}),Udt,ACe,DCe,dYt,hYt,wBe,fYt,TCe,pYt,gYt,Use,kCe,CBe,mYt,$se,QWe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/quickinput/browser/quickInput.js"(){var e,t;Fn(),mf(),xY(),rr(),fr(),ia(),Un(),Nt(),Xr(),NN(),Ra(),YWe(),bn(),Hv(),uYt(),sa(),PN(),er(),Udt=function(n,i,r,o){var s=arguments.length,a=s<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,r):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,i,r,o);else for(var c=n.length-1;c>=0;c--)(l=n[c])&&(a=(s<3?l(a):s>3?l(i,r,a):l(i,r))||a);return s>3&&a&&Object.defineProperty(i,r,a),a},ACe=function(n,i){return function(r,o){i(r,o,n)}},DCe="inQuickInput",dYt=new Qn(DCe,!1,R("inQuickInput","Whether keyboard focus is inside the quick input control")),hYt=nn.has(DCe),wBe="quickInputType",fYt=new Qn(wBe,void 0,R("quickInputType","The type of the currently visible quick input")),TCe="cursorAtEndOfQuickInputBox",pYt=new Qn(TCe,!1,R("cursorAtEndOfQuickInputBox","Whether the cursor in the quick input is at the end of the input box")),gYt=nn.has(TCe),Use={iconClass:lr.asClassName(An.quickInputBack),tooltip:R("quickInput.back","Back"),handle:-1},kCe=(e=class extends St{constructor(i){super(),this.ui=i,this._widgetUpdated=!1,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._leftButtons=[],this._rightButtons=[],this._inlineButtons=[],this.buttonsUpdated=!1,this._toggles=[],this.togglesUpdated=!1,this.noValidationMessage=e.noPromptMessage,this._severity=yc.Ignore,this.onDidTriggerButtonEmitter=this._register(new bt),this.onDidHideEmitter=this._register(new bt),this.onWillHideEmitter=this._register(new bt),this.onDisposeEmitter=this._register(new bt),this.visibleDisposables=this._register(new Jt),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(i){this._title=i,this.update()}get description(){return this._description}set description(i){this._description=i,this.update()}get step(){return this._steps}set step(i){this._steps=i,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(i){this._totalSteps=i,this.update()}get enabled(){return this._enabled}set enabled(i){this._enabled=i,this.update()}get contextKey(){return this._contextKey}set contextKey(i){this._contextKey=i,this.update()}get busy(){return this._busy}set busy(i){this._busy=i,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(i){const r=this._ignoreFocusOut!==i&&!Z_;this._ignoreFocusOut=i&&!Z_,r&&this.update()}get titleButtons(){return this._leftButtons.length?[...this._leftButtons,this._rightButtons]:this._rightButtons}get buttons(){return[...this._leftButtons,...this._rightButtons,...this._inlineButtons]}set buttons(i){this._leftButtons=i.filter(r=>r===Use),this._rightButtons=i.filter(r=>r!==Use&&r.location!==hde.Inline),this._inlineButtons=i.filter(r=>r.location===hde.Inline),this.buttonsUpdated=!0,this.update()}get toggles(){return this._toggles}set toggles(i){this._toggles=i??[],this.togglesUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(i){this._validationMessage=i,this.update()}get severity(){return this._severity}set severity(i){this._severity=i,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(i=>{this.buttons.indexOf(i)!==-1&&this.onDidTriggerButtonEmitter.fire(i)})),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.toggles.length&&(this.togglesUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(i=c9.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:i})}willHide(i=c9.Other){this.onWillHideEmitter.fire({reason:i})}update(){if(!this.visible)return;const i=this.getTitle();i&&this.ui.title.textContent!==i?this.ui.title.textContent=i:!i&&this.ui.title.innerHTML!=="&nbsp;"&&(this.ui.title.innerText=" ");const r=this.getDescription();if(this.ui.description1.textContent!==r&&(this.ui.description1.textContent=r),this.ui.description2.textContent!==r&&(this.ui.description2.textContent=r),this._widgetUpdated&&(this._widgetUpdated=!1,this._widget?xh(this.ui.widget,this._widget):xh(this.ui.widget)),this.busy&&!this.busyDelay&&(this.busyDelay=new Sb,this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const s=this._leftButtons.map((c,u)=>s$(c,`id-${u}`,async()=>this.onDidTriggerButtonEmitter.fire(c)));this.ui.leftActionBar.push(s,{icon:!0,label:!1}),this.ui.rightActionBar.clear();const a=this._rightButtons.map((c,u)=>s$(c,`id-${u}`,async()=>this.onDidTriggerButtonEmitter.fire(c)));this.ui.rightActionBar.push(a,{icon:!0,label:!1}),this.ui.inlineActionBar.clear();const l=this._inlineButtons.map((c,u)=>s$(c,`id-${u}`,async()=>this.onDidTriggerButtonEmitter.fire(c)));this.ui.inlineActionBar.push(l,{icon:!0,label:!1})}if(this.togglesUpdated){this.togglesUpdated=!1;const s=this.toggles?.filter(a=>a instanceof bR)??[];this.ui.inputBox.toggles=s}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const o=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==o&&(this._lastValidationMessage=o,xh(this.ui.message),kWn(o,this.ui.message,{callback:s=>{this.ui.linkOpenerDelegate(s)},disposables:this.visibleDisposables})),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?R("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(i){if(this.ui.inputBox.showDecoration(i),i!==yc.Ignore){const r=this.ui.inputBox.stylesForType(i);this.ui.message.style.color=r.foreground?`${r.foreground}`:"",this.ui.message.style.backgroundColor=r.background?`${r.background}`:"",this.ui.message.style.border=r.border?`1px solid ${r.border}`:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}},e.noPromptMessage=R("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel"),e),CBe=(t=class extends kCe{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new bt),this.onWillAcceptEmitter=this._register(new bt),this.onDidAcceptEmitter=this._register(new bt),this.onDidCustomEmitter=this._register(new bt),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._keepScrollPosition=!1,this._itemActivation=N1.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new bt),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new bt),this.onDidTriggerItemButtonEmitter=this._register(new bt),this.onDidTriggerSeparatorButtonEmitter=this._register(new bt),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this._focusEventBufferer=new p7,this.type="quickPick",this.filterValue=i=>i,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event,this.onDidTriggerSeparatorButton=this.onDidTriggerSeparatorButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(i){this._quickNavigate=i,this.update()}get value(){return this._value}set value(i){this.doSetValue(i)}doSetValue(i,r){this._value!==i&&(this._value=i,r||this.update(),this.visible&&this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(i){this._ariaLabel=i,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(i){this.ui.list.scrollTop=i}set items(i){this._items=i,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(i){this._canSelectMany=i,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(i){this._canAcceptInBackground=i}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(i){this._matchOnDescription=i,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(i){this._matchOnDetail=i,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(i){this._matchOnLabel=i,this.update()}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(i){this._matchOnLabelMode=i,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(i){this._sortByLabel=i,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(i){this._keepScrollPosition=i}get itemActivation(){return this._itemActivation}set itemActivation(i){this._itemActivation=i}get activeItems(){return this._activeItems}set activeItems(i){this._activeItems=i,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(i){this._selectedItems=i,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?aYt:this.ui.keyMods}get valueSelection(){const i=this.ui.inputBox.getSelection();if(i)return[i.start,i.end]}set valueSelection(i){this._valueSelection=i,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(i){this._customButton=i,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(i){this._customButtonLabel=i,this.update()}get customHover(){return this._customButtonHover}set customHover(i){this._customButtonHover=i,this.update()}get ok(){return this._ok}set ok(i){this._ok=i,this.update()}get hideInput(){return!!this._hideInput}set hideInput(i){this._hideInput=i,this.update()}trySelectFirst(){this.canSelectMany||this.ui.list.focus(Ka.First)}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(i=>{this.doSetValue(i,!0)})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this._focusEventBufferer.wrapEvent(this.ui.list.onDidChangeFocus,(i,r)=>r)(i=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&vl(i,this._activeItems,(r,o)=>r===o)||(this._activeItems=i,this.onDidChangeActiveEmitter.fire(i))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:i,event:r})=>{if(this.canSelectMany){i.length&&this.ui.list.setSelectedElements([]);return}this.selectedItemsToConfirm!==this._selectedItems&&vl(i,this._selectedItems,(o,s)=>o===s)||(this._selectedItems=i,this.onDidChangeSelectionEmitter.fire(i),i.length&&this.handleAccept(G3e(r)&&r.button===1))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(i=>{!this.canSelectMany||!this.visible||this.selectedItemsToConfirm!==this._selectedItems&&vl(i,this._selectedItems,(r,o)=>r===o)||(this._selectedItems=i,this.onDidChangeSelectionEmitter.fire(i))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(i=>this.onDidTriggerItemButtonEmitter.fire(i))),this.visibleDisposables.add(this.ui.list.onSeparatorButtonTriggered(i=>this.onDidTriggerSeparatorButtonEmitter.fire(i))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(i){let r=!1;this.onWillAcceptEmitter.fire({veto:()=>r=!0}),r||this.onDidAcceptEmitter.fire({inBackground:i})}registerQuickNavigation(){return qt(this.ui.container,kn.KEY_UP,i=>{if(this.canSelectMany||!this._quickNavigate)return;const r=new Sa(i),o=r.keyCode;this._quickNavigate.keybindings.some(l=>{const c=l.getChords();return c.length>1?!1:c[0].shiftKey&&o===4?!(r.ctrlKey||r.altKey||r.metaKey):!!(c[0].altKey&&o===6||c[0].ctrlKey&&o===5||c[0].metaKey&&o===57)})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)})}update(){if(!this.visible)return;const i=this.keepScrollPosition?this.scrollTop:0,r=!!this.description,o={title:!!this.title||!!this.step||!!this.titleButtons.length,description:r,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!this._hideInput,progressBar:!this._hideInput||r,visibleCount:!0,count:this.canSelectMany&&!this._hideCountBadge,ok:this.ok==="default"?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(o),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");let s=this.ariaLabel;!s&&o.inputBox&&(s=this.placeholder||t.DEFAULT_ARIA_LABEL,this.title&&(s+=` - ${this.title}`)),this.ui.list.ariaLabel!==s&&(this.ui.list.ariaLabel=s??null),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.matchOnLabelMode=this.matchOnLabelMode,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated&&(this.itemsUpdated=!1,this._focusEventBufferer.bufferEvents(()=>{switch(this.ui.list.setElements(this.items),this.ui.list.shouldLoop=!this.canSelectMany,this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this._itemActivation){case N1.NONE:this._itemActivation=N1.FIRST;break;case N1.SECOND:this.ui.list.focus(Ka.Second),this._itemActivation=N1.FIRST;break;case N1.LAST:this.ui.list.focus(Ka.Last),this._itemActivation=N1.FIRST;break;default:this.trySelectFirst();break}})),this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",o.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(Ka.First)),this.keepScrollPosition&&(this.scrollTop=i)}focus(i){this.ui.list.focus(i),this.canSelectMany&&this.ui.list.domFocus()}accept(i){i&&!this._canAcceptInBackground||this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(i??!1))}},t.DEFAULT_ARIA_LABEL=R("quickInputBox.ariaLabel","Type to narrow down results."),t),mYt=class extends kCe{constructor(){super(...arguments),this._value="",this.valueSelectionUpdated=!0,this._password=!1,this.onDidValueChangeEmitter=this._register(new bt),this.onDidAcceptEmitter=this._register(new bt),this.type="inputBox",this.onDidChangeValue=this.onDidValueChangeEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event}get value(){return this._value}set value(n){this._value=n||"",this.update()}get placeholder(){return this._placeholder}set placeholder(n){this._placeholder=n,this.update()}get password(){return this._password}set password(n){this._password=n,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(n=>{n!==this.value&&(this._value=n,this.onDidValueChangeEmitter.fire(n))})),this.visibleDisposables.add(this.ui.onDidAccept(()=>this.onDidAcceptEmitter.fire())),this.valueSelectionUpdated=!0),super.show()}update(){if(!this.visible)return;this.ui.container.classList.remove("hidden-input");const n={title:!!this.title||!!this.step||!!this.titleButtons.length,description:!!this.description||!!this.step,inputBox:!0,message:!0,progressBar:!0};this.ui.setVisibilities(n),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||""),this.ui.inputBox.password!==this.password&&(this.ui.inputBox.password=this.password)}},$se=class extends fR{constructor(i,r){super("element",!1,o=>this.getOverrideOptions(o),i,r)}getOverrideOptions(i){const r=(yd(i.content)?i.content.textContent??"":typeof i.content=="string"?i.content:i.content.value).includes(`
`);return{persistence:{hideOnKeyDown:!1},appearance:{showHoverHint:r,skipFadeInAnimation:!0}}}},$se=Udt([ACe(0,co),ACe(1,SC)],$se)}}),IWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/button/button.css"(){}}),lG,ZWe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/button/button.js"(){Fn(),B3e(),mf(),hge(),Q0(),Lh(),MN(),ql(),Un(),Dg(),Nt(),Ra(),IWn(),_w(),rn.white.toString(),rn.white.toString(),lG=class extends St{get onDidClick(){return this._onDidClick.event}constructor(e,t){super(),this._label="",this._onDidClick=this._register(new bt),this._onDidEscape=this._register(new bt),this.options=t,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),this._element.classList.toggle("secondary",!!t.secondary);const n=t.secondary?t.buttonSecondaryBackground:t.buttonBackground,i=t.secondary?t.buttonSecondaryForeground:t.buttonForeground;this._element.style.color=i||"",this._element.style.backgroundColor=n||"",t.supportShortLabel&&(this._labelShortElement=document.createElement("div"),this._labelShortElement.classList.add("monaco-button-label-short"),this._element.appendChild(this._labelShortElement),this._labelElement=document.createElement("div"),this._labelElement.classList.add("monaco-button-label"),this._element.appendChild(this._labelElement),this._element.classList.add("monaco-text-button-with-short-label")),typeof t.title=="string"&&this.setTitle(t.title),typeof t.ariaLabel=="string"&&this._element.setAttribute("aria-label",t.ariaLabel),e.appendChild(this._element),this._register(Ap.addTarget(this._element)),[kn.CLICK,Wa.Tap].forEach(r=>{this._register(qt(this._element,r,o=>{if(!this.enabled){Po.stop(o);return}this._onDidClick.fire(o)}))}),this._register(qt(this._element,kn.KEY_DOWN,r=>{const o=new Sa(r);let s=!1;this.enabled&&(o.equals(3)||o.equals(10))?(this._onDidClick.fire(r),s=!0):o.equals(9)&&(this._onDidEscape.fire(r),this._element.blur(),s=!0),s&&Po.stop(o,!0)})),this._register(qt(this._element,kn.MOUSE_OVER,r=>{this._element.classList.contains("disabled")||this.updateBackground(!0)})),this._register(qt(this._element,kn.MOUSE_OUT,r=>{this.updateBackground(!1)})),this.focusTracker=this._register(yC(this._element)),this._register(this.focusTracker.onDidFocus(()=>{this.enabled&&this.updateBackground(!0)})),this._register(this.focusTracker.onDidBlur(()=>{this.enabled&&this.updateBackground(!1)}))}dispose(){super.dispose(),this._element.remove()}getContentElements(e){const t=[];for(let n of aL(e))if(typeof n=="string"){if(n=n.trim(),n==="")continue;const i=document.createElement("span");i.textContent=n,t.push(i)}else t.push(n);return t}updateBackground(e){let t;this.options.secondary?t=e?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground:t=e?this.options.buttonHoverBackground:this.options.buttonBackground,t&&(this._element.style.backgroundColor=t)}get element(){return this._element}set label(e){if(this._label===e||sC(this._label)&&sC(e)&&yVn(this._label,e))return;this._element.classList.add("monaco-text-button");const t=this.options.supportShortLabel?this._labelElement:this._element;if(sC(e)){const i=dge(e,{inline:!0});i.dispose();const r=i.element.querySelector("p")?.innerHTML;if(r){const o=O3e(r,{ADD_TAGS:["b","i","u","code","span"],ALLOWED_ATTR:["class"],RETURN_TRUSTED_TYPE:!0});t.innerHTML=o}else xh(t)}else this.options.supportIcons?xh(t,...this.getContentElements(e)):t.textContent=e;let n="";typeof this.options.title=="string"?n=this.options.title:this.options.title&&(n=AVn(e)),this.setTitle(n),typeof this.options.ariaLabel=="string"?this._element.setAttribute("aria-label",this.options.ariaLabel):this.options.ariaLabel&&this._element.setAttribute("aria-label",n),this._label=e}get label(){return this._label}set icon(e){this._element.classList.add(...lr.asClassNameArray(e))}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}setTitle(e){!this._hover&&e!==""?this._hover=this._register(GC().setupManagedHover(this.options.hoverDelegate??hg("mouse"),this._element,e)):this._hover&&this._hover.update(e)}}}}),LWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/countBadge/countBadge.css"(){}}),fde,vYt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/countBadge/countBadge.js"(){Fn(),Ki(),LWn(),fde=class{constructor(e,t,n){this.options=t,this.styles=n,this.count=0,this.element=hn(e,In(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){this.element.textContent=$R(this.countFormat,this.count),this.element.title=$R(this.titleFormat,this.count),this.element.style.backgroundColor=this.styles.badgeBackground??"",this.element.style.color=this.styles.badgeForeground??"",this.styles.badgeBorder&&(this.element.style.border=`1px solid ${this.styles.badgeBorder}`)}}}}),NWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/progressbar/progressbar.css"(){}}),ICe,LCe,eee,tee,NCe,yYt,PWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/progressbar/progressbar.js"(){var e;Fn(),fr(),Nt(),NWn(),ICe="done",LCe="active",eee="infinite",tee="infinite-long-running",NCe="discrete",yYt=(e=class extends St{constructor(n,i){super(),this.progressSignal=this._register(new Yu),this.workedVal=0,this.showDelayedScheduler=this._register(new Gs(()=>lv(this.element),0)),this.longRunningScheduler=this._register(new Gs(()=>this.infiniteLongRunning(),e.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(n,i)}create(n,i){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),n.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.bit.style.backgroundColor=i?.progressBarBackground||"#0E70C0",this.element.appendChild(this.bit)}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(LCe,eee,tee,NCe),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel(),this.progressSignal.clear()}stop(){return this.doDone(!1)}doDone(n){return this.element.classList.add(ICe),this.element.classList.contains(eee)?(this.bit.style.opacity="0",n?setTimeout(()=>this.off(),200):this.off()):(this.bit.style.width="inherit",n?setTimeout(()=>this.off(),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(NCe,ICe,tee),this.element.classList.add(LCe,eee),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(tee)}getContainer(){return this.element}},e.LONG_RUNNING_INFINITE_THRESHOLD=1e4,e)}}),$dt,qdt,Gdt,XWe,JWe,eUe,bYt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/findinput/findInputToggles.js"(){Lh(),xY(),ia(),bn(),$dt=R("caseDescription","Match Case"),qdt=R("wordsDescription","Match Whole Word"),Gdt=R("regexDescription","Use Regular Expression"),XWe=class extends bR{constructor(e){super({icon:An.caseSensitive,title:$dt+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??hg("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}},JWe=class extends bR{constructor(e){super({icon:An.wholeWord,title:qdt+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??hg("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}},eUe=class extends bR{constructor(e){super({icon:An.regex,title:Gdt+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??hg("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}}}),_Yt,MWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/navigator.js"(){_Yt=class{constructor(e,t=0,n=e.length,i=t-1){this.items=e,this.start=t,this.end=n,this.index=i}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}}}),wYt,OWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/history.js"(){MWn(),wYt=class{constructor(e=[],t=10){this._initialize(e),this._limit=t,this._onChange()}getHistory(){return this._elements}add(e){this._history.delete(e),this._history.add(e),this._onChange()}next(){return this._navigator.next()}previous(){return this._currentPosition()!==0?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}isLast(){return this._currentPosition()>=this._elements.length-1}isNowhere(){return this._navigator.current()===null}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();const e=this._elements;this._navigator=new _Yt(e,0,e.length,e.length)}_reduceToLimit(){const e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach(t=>e.push(t)),e}}}}),RWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/inputbox/inputBox.css"(){}}),V5,Kdt,tUe,nUe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/inputbox/inputBox.js"(){Fn(),UC(),P$t(),ww(),Ih(),_w(),Lh(),vw(),mw(),Un(),OWn(),bm(),RWn(),bn(),V5=In,Kdt=class extends Ov{constructor(e,t,n){super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new bt),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new bt),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=n,this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=this.options.tooltip??(this.placeholder||""),this.ariaLabel=this.options.ariaLabel||"",this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=hn(e,V5(".monaco-inputbox.idle"));const i=this.options.flexibleHeight?"textarea":"input",r=hn(this.element,V5(".ibwrapper"));if(this.input=hn(r,V5(i+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,()=>this.element.classList.add("synthetic-focus")),this.onblur(this.input,()=>this.element.classList.remove("synthetic-focus")),this.options.flexibleHeight){this.maxHeight=typeof this.options.flexibleMaxHeight=="number"?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=hn(r,V5("div.mirror")),this.mirror.innerText=" ",this.scrollableElement=new KHe(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),hn(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(a=>this.input.scrollTop=a.scrollTop));const o=this._register(new ko(e.ownerDocument,"selectionchange")),s=On.filter(o.event,()=>e.ownerDocument.getSelection()?.anchorNode===r);this._register(s(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,()=>this.onValueChange()),this.onblur(this.input,()=>this.onBlur()),this.onfocus(this.input,()=>this.onFocus()),this._register(this.ignoreGesture(this.input)),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new Dv(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.hover?this.hover.update(e):this.hover=this._register(GC().setupManagedHover(hg("mouse"),this.input,e))}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return typeof this.cachedHeight=="number"?this.cachedHeight:aD(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return Sue(this.input)}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}getSelection(){const e=this.input.selectionStart;if(e===null)return null;const t=this.input.selectionEnd??e;return{start:e,end:t}}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,n=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:n})}showMessage(e,t){if(this.state==="open"&&Ev(this.message,e))return;this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const n=this.stylesForType(this.message.type);this.element.style.border=`1px solid ${_D(n.border,"transparent")}`,this.message.content&&(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),e?.type}stylesForType(e){const t=this.options.inputBoxStyles;switch(e){case 1:return{border:t.inputValidationInfoBorder,background:t.inputValidationInfoBackground,foreground:t.inputValidationInfoForeground};case 2:return{border:t.inputValidationWarningBorder,background:t.inputValidationWarningBackground,foreground:t.inputValidationWarningForeground};default:return{border:t.inputValidationErrorBorder,background:t.inputValidationErrorBackground,foreground:t.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e;const t=()=>e.style.width=Gm(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:i=>{if(!this.message)return null;e=hn(i,V5(".monaco-inputbox-container")),t();const r={inline:!0,className:"monaco-inputbox-message"},o=this.message.formatContent?Kzn(this.message.content,r):Gzn(this.message.content,r);o.classList.add(this.classForType(this.message.type));const s=this.stylesForType(this.message.type);return o.style.backgroundColor=s.background??"",o.style.color=s.foreground??"",o.style.border=s.border?`1px solid ${s.border}`:"",hn(e,o),null},onHide:()=>{this.state="closed"},layout:t});let n;this.message.type===3?n=R("alertErrorMessage","Error: {0}",this.message.content):this.message.type===2?n=R("alertWarningMessage","Warning: {0}",this.message.content):n=R("alertInfoMessage","Info: {0}",this.message.content),mg(n),this.state="open"}_hideMessage(){this.contextViewProvider&&(this.state==="open"&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),this.state==="open"&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,n=e.charCodeAt(e.length-1)===10?" ":"";(e+n).replace(/\u000c/g,"")?this.mirror.textContent=e+n:this.mirror.innerText=" ",this.layout()}applyStyles(){const e=this.options.inputBoxStyles,t=e.inputBackground??"",n=e.inputForeground??"",i=e.inputBorder??"";this.element.style.backgroundColor=t,this.element.style.color=n,this.input.style.backgroundColor="inherit",this.input.style.color=n,this.element.style.border=`1px solid ${_D(i,"transparent")}`}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=aD(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,n=t.selectionStart,i=t.selectionEnd,r=t.value;n!==null&&i!==null&&(this.value=r.substr(0,n)+e+r.substr(i),t.setSelectionRange(n+1,n+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar?.dispose(),super.dispose()}},tUe=class extends Kdt{constructor(e,t,n){const i=R({key:"history.inputbox.hint.suffix.noparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field ends in a closing parenthesis ")", for example "Filter (e.g. text, !exclude)". The character inserted into the final string is ⇅ to represent the up and down arrow keys.']}," or {0} for history","⇅"),r=R({key:"history.inputbox.hint.suffix.inparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field does NOT end in a closing parenthesis (eg. "Find"). The character inserted into the final string is ⇅ to represent the up and down arrow keys.']}," ({0} for history)","⇅");super(e,t,n),this._onDidFocus=this._register(new bt),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new bt),this.onDidBlur=this._onDidBlur.event,this.history=new wYt(n.history,100);const o=()=>{if(n.showHistoryHint&&n.showHistoryHint()&&!this.placeholder.endsWith(i)&&!this.placeholder.endsWith(r)&&this.history.getHistory().length){const s=this.placeholder.endsWith(")")?i:r,a=this.placeholder+s;n.showPlaceholderOnFocus&&!Sue(this.input)?this.placeholder=a:this.setPlaceHolder(a)}};this.observer=new MutationObserver((s,a)=>{s.forEach(l=>{l.target.textContent||o()})}),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,()=>o()),this.onblur(this.input,()=>{const s=a=>{if(this.placeholder.endsWith(a)){const l=this.placeholder.slice(0,this.placeholder.length-a.length);return n.showPlaceholderOnFocus?this.placeholder=l:this.setPlaceHolder(l),!0}else return!1};s(r)||s(i)})}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(e){this.value&&(e||this.value!==this.getCurrentValue())&&this.history.add(this.value)}isAtLastInHistory(){return this.history.isLast()}isNowhereInHistory(){return this.history.isNowhere()}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),this.value=e??"",eE(this.value?this.value:R("clearedInput","Cleared Input"))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,eE(this.value))}setPlaceHolder(e){super.setPlaceHolder(e),this.setTooltip(e)}onBlur(){super.onBlur(),this._onDidBlur.fire()}onFocus(){super.onFocus(),this._onDidFocus.fire()}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()}}}}),CYt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/findinput/findInput.css"(){}}),Ydt,iUe,rUe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/findinput/findInput.js"(){Fn(),bYt(),nUe(),mw(),Un(),CYt(),bn(),Nt(),Lh(),Ydt=R("defaultLabel","input"),iUe=class extends Ov{constructor(e,t,n){super(),this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalTogglesDisposables=this._register(new Yu),this.additionalToggles=[],this._onDidOptionChange=this._register(new bt),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new bt),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new bt),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new bt),this._onKeyUp=this._register(new bt),this._onCaseSensitiveKeyDown=this._register(new bt),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new bt),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||Ydt,this.showCommonFindToggles=!!n.showCommonFindToggles;const i=n.appendCaseSensitiveLabel||"",r=n.appendWholeWordsLabel||"",o=n.appendRegexLabel||"",s=n.history||[],a=!!n.flexibleHeight,l=!!n.flexibleWidth,c=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new tUe(this.domNode,t,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},history:s,showHistoryHint:n.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:c,inputBoxStyles:n.inputBoxStyles}));const u=this._register(a9());if(this.showCommonFindToggles){this.regex=this._register(new eUe({appendTitle:o,isChecked:!1,hoverDelegate:u,...n.toggleStyles})),this._register(this.regex.onChange(h=>{this._onDidOptionChange.fire(h),!h&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(h=>{this._onRegexKeyDown.fire(h)})),this.wholeWords=this._register(new JWe({appendTitle:r,isChecked:!1,hoverDelegate:u,...n.toggleStyles})),this._register(this.wholeWords.onChange(h=>{this._onDidOptionChange.fire(h),!h&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new XWe({appendTitle:i,isChecked:!1,hoverDelegate:u,...n.toggleStyles})),this._register(this.caseSensitive.onChange(h=>{this._onDidOptionChange.fire(h),!h&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(h=>{this._onCaseSensitiveKeyDown.fire(h)}));const d=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,h=>{if(h.equals(15)||h.equals(17)||h.equals(9)){const f=d.indexOf(this.domNode.ownerDocument.activeElement);if(f>=0){let p=-1;h.equals(17)?p=(f+1)%d.length:h.equals(15)&&(f===0?p=d.length-1:p=f-1),h.equals(9)?(d[f].blur(),this.inputBox.focus()):p>=0&&d[p].focus(),Po.stop(h,!0)}}})}this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this.showCommonFindToggles?"":"none",this.caseSensitive&&this.controls.append(this.caseSensitive.domNode),this.wholeWords&&this.controls.appendChild(this.wholeWords.domNode),this.regex&&this.controls.appendChild(this.regex.domNode),this.setAdditionalToggles(n?.additionalToggles),this.controls&&this.domNode.appendChild(this.controls),e?.appendChild(this.domNode),this._register(qt(this.inputBox.inputElement,"compositionstart",d=>{this.imeSessionInProgress=!0})),this._register(qt(this.inputBox.inputElement,"compositionend",d=>{this.imeSessionInProgress=!1,this._onInput.fire()})),this.onkeydown(this.inputBox.inputElement,d=>this._onKeyDown.fire(d)),this.onkeyup(this.inputBox.inputElement,d=>this._onKeyUp.fire(d)),this.oninput(this.inputBox.inputElement,d=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,d=>this._onMouseDown.fire(d))}get onDidChange(){return this.inputBox.onDidChange}layout(e){this.inputBox.layout(),this.updateInputBoxPadding(e.collapsedFindWidget)}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.regex?.enable(),this.wholeWords?.enable(),this.caseSensitive?.enable();for(const e of this.additionalToggles)e.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.regex?.disable(),this.wholeWords?.disable(),this.caseSensitive?.disable();for(const e of this.additionalToggles)e.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}setAdditionalToggles(e){for(const t of this.additionalToggles)t.domNode.remove();this.additionalToggles=[],this.additionalTogglesDisposables.value=new Jt;for(const t of e??[])this.additionalTogglesDisposables.value.add(t),this.controls.appendChild(t.domNode),this.additionalTogglesDisposables.value.add(t.onChange(n=>{this._onDidOptionChange.fire(n),!n&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()})),this.additionalToggles.push(t);this.additionalToggles.length>0&&(this.controls.style.display=""),this.updateInputBoxPadding()}updateInputBoxPadding(e=!1){e?this.inputBox.paddingRight=0:this.inputBox.paddingRight=(this.caseSensitive?.width()??0)+(this.wholeWords?.width()??0)+(this.regex?.width()??0)+this.additionalToggles.reduce((t,n)=>t+n.width(),0)}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive?.checked??!1}setCaseSensitive(e){this.caseSensitive&&(this.caseSensitive.checked=e)}getWholeWords(){return this.wholeWords?.checked??!1}setWholeWords(e){this.wholeWords&&(this.wholeWords.checked=e)}getRegex(){return this.regex?.checked??!1}setRegex(e){this.regex&&(this.regex.checked=e,this.validate())}focusOnCaseSensitive(){this.caseSensitive?.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}showMessage(e){this.inputBox.showMessage(e)}clearMessage(){this.inputBox.hideMessage()}}}}),Qdt,SYt,FWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/quickinput/browser/quickInputBox.js"(){Fn(),rUe(),Nt(),NN(),YWe(),Qdt=In,SYt=class extends St{constructor(e,t,n){super(),this.parent=e,this.onKeyDown=r=>Il(this.findInput.inputBox.inputElement,kn.KEY_DOWN,r),this.onDidChange=r=>this.findInput.onDidChange(r),this.container=hn(this.parent,Qdt(".quick-input-box")),this.findInput=this._register(new iUe(this.container,void 0,{label:"",inputBoxStyles:t,toggleStyles:n}));const i=this.findInput.inputBox.inputElement;i.role="combobox",i.ariaHasPopup="menu",i.ariaAutoComplete="list",i.ariaExpanded="true"}get value(){return this.findInput.getValue()}set value(e){this.findInput.setValue(e)}select(e=null){this.findInput.inputBox.select(e)}getSelection(){return this.findInput.inputBox.getSelection()}isSelectionAtEnd(){return this.findInput.inputBox.isSelectionAtEnd()}get placeholder(){return this.findInput.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.findInput.inputBox.setPlaceHolder(e)}get password(){return this.findInput.inputBox.inputElement.type==="password"}set password(e){this.findInput.inputBox.inputElement.type=e?"password":"text"}set enabled(e){this.findInput.inputBox.inputElement.toggleAttribute("readonly",!e)}set toggles(e){this.findInput.setAdditionalToggles(e)}setAttribute(e,t){this.findInput.inputBox.inputElement.setAttribute(e,t)}showDecoration(e){e===yc.Ignore?this.findInput.clearMessage():this.findInput.showMessage({type:e===yc.Info?1:e===yc.Warning?2:3,content:""})}stylesForType(e){return this.findInput.inputBox.stylesForType(e===yc.Info?1:e===yc.Warning?2:3)}setFocus(){this.findInput.focus()}layout(){this.findInput.inputBox.layout()}}}});function BWn(e,t){return{...t,accessibilityProvider:t.accessibilityProvider&&new xYt(e,t.accessibilityProvider)}}var Zdt,xYt,EYt,jWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/list/listPaging.js"(){rr(),Ho(),Un(),Nt(),Qqt(),BN(),Zdt=class{get templateId(){return this.renderer.templateId}constructor(e,t){this.renderer=e,this.modelProvider=t}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:St.None}}renderElement(e,t,n,i){if(n.disposable?.dispose(),!n.data)return;const r=this.modelProvider();if(r.isResolved(e))return this.renderer.renderElement(r.get(e),e,n.data,i);const o=new bl,s=r.resolve(e,o.token);n.disposable={dispose:()=>o.cancel()},this.renderer.renderPlaceholder(e,n.data),s.then(a=>this.renderer.renderElement(a,e,n.data,i))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}},xYt=class{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}},EYt=class{constructor(e,t,n,i,r={}){const o=()=>this.model,s=i.map(a=>new Zdt(a,o));this.list=new tv(e,t,n,s,BWn(o,r))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get widget(){return this.list}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return On.map(this.list.onMouseDblClick,({element:e,index:t,browserEvent:n})=>({element:e===void 0?void 0:this._model.get(e),index:t,browserEvent:n}))}get onPointer(){return On.map(this.list.onPointer,({element:e,index:t,browserEvent:n})=>({element:e===void 0?void 0:this._model.get(e),index:t,browserEvent:n}))}get onDidChangeSelection(){return On.map(this.list.onDidChangeSelection,({elements:e,indexes:t,browserEvent:n})=>({elements:e.map(i=>this._model.get(i)),indexes:t,browserEvent:n}))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,Kg(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map(e=>this.model.get(e))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}}}),zWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/sash/sash.css"(){}}),$P,Xdt,pde,Jdt,eht,tht,nht,nee,iee,hV,PCe,mx,EY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/sash/sash.js"(){Fn(),UC(),Q0(),fr(),tF(),Un(),Nt(),Xr(),zWn(),$P=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},Xdt=!1,(function(e){e.North="north",e.South="south",e.East="east",e.West="west"})(pde||(pde={})),Jdt=4,eht=new bt,tht=300,nht=new bt,nee=class{constructor(e){this.el=e,this.disposables=new Jt}get onPointerMove(){return this.disposables.add(new ko(Yi(this.el),"mousemove")).event}get onPointerUp(){return this.disposables.add(new ko(Yi(this.el),"mouseup")).event}dispose(){this.disposables.dispose()}},$P([Hc],nee.prototype,"onPointerMove",null),$P([Hc],nee.prototype,"onPointerUp",null),iee=class{get onPointerMove(){return this.disposables.add(new ko(this.el,Wa.Change)).event}get onPointerUp(){return this.disposables.add(new ko(this.el,Wa.End)).event}constructor(e){this.el=e,this.disposables=new Jt}dispose(){this.disposables.dispose()}},$P([Hc],iee.prototype,"onPointerMove",null),$P([Hc],iee.prototype,"onPointerUp",null),hV=class{get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}constructor(e){this.factory=e}dispose(){}},$P([Hc],hV.prototype,"onPointerMove",null),$P([Hc],hV.prototype,"onPointerUp",null),PCe="pointer-events-disabled",mx=class US extends St{get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(t){this._state!==t&&(this.el.classList.toggle("disabled",t===0),this.el.classList.toggle("minimum",t===1),this.el.classList.toggle("maximum",t===2),this._state=t,this.onDidEnablementChange.fire(t))}set orthogonalStartSash(t){if(this._orthogonalStartSash!==t){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),t){const n=i=>{this.orthogonalStartDragHandleDisposables.clear(),i!==0&&(this._orthogonalStartDragHandle=hn(this.el,In(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add(zi(()=>this._orthogonalStartDragHandle.remove())),this.orthogonalStartDragHandleDisposables.add(new ko(this._orthogonalStartDragHandle,"mouseenter")).event(()=>US.onMouseEnter(t),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new ko(this._orthogonalStartDragHandle,"mouseleave")).event(()=>US.onMouseLeave(t),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(t.onDidEnablementChange.event(n,this)),n(t.state)}this._orthogonalStartSash=t}}set orthogonalEndSash(t){if(this._orthogonalEndSash!==t){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),t){const n=i=>{this.orthogonalEndDragHandleDisposables.clear(),i!==0&&(this._orthogonalEndDragHandle=hn(this.el,In(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add(zi(()=>this._orthogonalEndDragHandle.remove())),this.orthogonalEndDragHandleDisposables.add(new ko(this._orthogonalEndDragHandle,"mouseenter")).event(()=>US.onMouseEnter(t),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new ko(this._orthogonalEndDragHandle,"mouseleave")).event(()=>US.onMouseLeave(t),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(t.onDidEnablementChange.event(n,this)),n(t.state)}this._orthogonalEndSash=t}}constructor(t,n,i){super(),this.hoverDelay=tht,this.hoverDelayer=this._register(new j0(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new bt),this._onDidStart=this._register(new bt),this._onDidChange=this._register(new bt),this._onDidReset=this._register(new bt),this._onDidEnd=this._register(new bt),this.orthogonalStartSashDisposables=this._register(new Jt),this.orthogonalStartDragHandleDisposables=this._register(new Jt),this.orthogonalEndSashDisposables=this._register(new Jt),this.orthogonalEndDragHandleDisposables=this._register(new Jt),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=hn(t,In(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),xo&&this.el.classList.add("mac");const r=this._register(new ko(this.el,"mousedown")).event;this._register(r(d=>this.onPointerStart(d,new nee(t)),this));const o=this._register(new ko(this.el,"dblclick")).event;this._register(o(this.onPointerDoublePress,this));const s=this._register(new ko(this.el,"mouseenter")).event;this._register(s(()=>US.onMouseEnter(this)));const a=this._register(new ko(this.el,"mouseleave")).event;this._register(a(()=>US.onMouseLeave(this))),this._register(Ap.addTarget(this.el));const l=this._register(new ko(this.el,Wa.Start)).event;this._register(l(d=>this.onPointerStart(d,new iee(this.el)),this));const c=this._register(new ko(this.el,Wa.Tap)).event;let u;this._register(c(d=>{if(u){clearTimeout(u),u=void 0,this.onPointerDoublePress(d);return}clearTimeout(u),u=setTimeout(()=>u=void 0,250)},this)),typeof i.size=="number"?(this.size=i.size,i.orientation===0?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=Jdt,this._register(eht.event(d=>{this.size=d,this.layout()}))),this._register(nht.event(d=>this.hoverDelay=d)),this.layoutProvider=n,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,this.orientation===1?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",Xdt),this.layout()}onPointerStart(t,n){Po.stop(t);let i=!1;if(!t.__orthogonalSashEvent){const p=this.getOrthogonalSash(t);p&&(i=!0,t.__orthogonalSashEvent=!0,p.onPointerStart(t,new hV(n)))}if(this.linkedSash&&!t.__linkedSashEvent&&(t.__linkedSashEvent=!0,this.linkedSash.onPointerStart(t,new hV(n))),!this.state)return;const r=this.el.ownerDocument.getElementsByTagName("iframe");for(const p of r)p.classList.add(PCe);const o=t.pageX,s=t.pageY,a=t.altKey,l={startX:o,currentX:o,startY:s,currentY:s,altKey:a};this.el.classList.add("active"),this._onDidStart.fire(l);const c=V0(this.el),u=()=>{let p="";i?p="all-scroll":this.orientation===1?this.state===1?p="s-resize":this.state===2?p="n-resize":p=xo?"row-resize":"ns-resize":this.state===1?p="e-resize":this.state===2?p="w-resize":p=xo?"col-resize":"ew-resize",c.textContent=`* { cursor: ${p} !important; }`},d=new Jt;u(),i||this.onDidEnablementChange.event(u,null,d);const h=p=>{Po.stop(p,!1);const g={startX:o,currentX:p.pageX,startY:s,currentY:p.pageY,altKey:a};this._onDidChange.fire(g)},f=p=>{Po.stop(p,!1),c.remove(),this.el.classList.remove("active"),this._onDidEnd.fire(),d.dispose();for(const g of r)g.classList.remove(PCe)};n.onPointerMove(h,null,d),n.onPointerUp(f,null,d),d.add(n)}onPointerDoublePress(t){const n=this.getOrthogonalSash(t);n&&n._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(t,n=!1){t.el.classList.contains("active")?(t.hoverDelayer.cancel(),t.el.classList.add("hover")):t.hoverDelayer.trigger(()=>t.el.classList.add("hover"),t.hoverDelay).then(void 0,()=>{}),!n&&t.linkedSash&&US.onMouseEnter(t.linkedSash,!0)}static onMouseLeave(t,n=!1){t.hoverDelayer.cancel(),t.el.classList.remove("hover"),!n&&t.linkedSash&&US.onMouseLeave(t.linkedSash,!0)}clearSashHoverState(){US.onMouseLeave(this)}layout(){if(this.orientation===0){const t=this.layoutProvider;this.el.style.left=t.getVerticalSashLeft(this)-this.size/2+"px",t.getVerticalSashTop&&(this.el.style.top=t.getVerticalSashTop(this)+"px"),t.getVerticalSashHeight&&(this.el.style.height=t.getVerticalSashHeight(this)+"px")}else{const t=this.layoutProvider;this.el.style.top=t.getHorizontalSashTop(this)-this.size/2+"px",t.getHorizontalSashLeft&&(this.el.style.left=t.getHorizontalSashLeft(this)+"px"),t.getHorizontalSashWidth&&(this.el.style.width=t.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(t){const n=t.initialTarget??t.target;if(!(!n||!yd(n))&&n.classList.contains("orthogonal-drag-handle"))return n.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash}dispose(){super.dispose(),this.el.remove()}}}}),VWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/splitview/splitview.css"(){}}),iht,MCe,rht,oht,cA,gde,oUe,AYt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/splitview/splitview.js"(){Fn(),UC(),EY(),vw(),rr(),ql(),Un(),Nt(),k7(),cY(),as(),VWn(),iht={separatorBorder:rn.transparent},MCe=class{set size(e){this._size=e}get size(){return this._size}get visible(){return typeof this._cachedVisibleSize>"u"}setVisible(e,t){if(e!==this.visible){e?(this.size=Jp(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof t=="number"?t:this.size,this.size=0),this.container.classList.toggle("visible",e);try{this.view.setVisible?.(e)}catch(n){console.error("Splitview: Failed to set visible view"),console.error(n)}}}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get proportionalLayout(){return this.view.proportionalLayout??!0}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}constructor(e,t,n,i){this.container=e,this.view=t,this.disposable=i,this._cachedVisibleSize=void 0,typeof n=="number"?(this._size=n,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=n.cachedVisibleSize)}layout(e,t){this.layoutContainer(e);try{this.view.layout(this.size,e,t)}catch(n){console.error("Splitview: Failed to layout view"),console.error(n)}}dispose(){this.disposable.dispose()}},rht=class extends MCe{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}},oht=class extends MCe{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}},(function(e){e[e.Idle=0]="Idle",e[e.Busy=1]="Busy"})(cA||(cA={})),(function(e){e.Distribute={type:"distribute"};function t(r){return{type:"split",index:r}}e.Split=t;function n(r){return{type:"auto",index:r}}e.Auto=n;function i(r){return{type:"invisible",cachedVisibleSize:r}}e.Invisible=i})(gde||(gde={})),oUe=class extends St{get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}constructor(e,t={}){super(),this.size=0,this._contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=cA.Idle,this._onDidSashChange=this._register(new bt),this._onDidSashReset=this._register(new bt),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=t.orientation??0,this.inverseAltBehavior=t.inverseAltBehavior??!1,this.proportionalLayout=t.proportionalLayout??!0,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(this.orientation===0?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=hn(this.el,In(".sash-container")),this.viewContainer=In(".split-view-container"),this.scrollable=this._register(new XR({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:i=>Nv(Yi(this.el),i)})),this.scrollableElement=this._register(new uY(this.viewContainer,{vertical:this.orientation===0?t.scrollbarVisibility??1:2,horizontal:this.orientation===1?t.scrollbarVisibility??1:2},this.scrollable));const n=this._register(new ko(this.viewContainer,"scroll")).event;this._register(n(i=>{const r=this.scrollableElement.getScrollPosition(),o=Math.abs(this.viewContainer.scrollLeft-r.scrollLeft)<=1?void 0:this.viewContainer.scrollLeft,s=Math.abs(this.viewContainer.scrollTop-r.scrollTop)<=1?void 0:this.viewContainer.scrollTop;(o!==void 0||s!==void 0)&&this.scrollableElement.setScrollPosition({scrollLeft:o,scrollTop:s})})),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll(i=>{i.scrollTopChanged&&(this.viewContainer.scrollTop=i.scrollTop),i.scrollLeftChanged&&(this.viewContainer.scrollLeft=i.scrollLeft)})),hn(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||iht),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach((i,r)=>{const o=bp(i.visible)||i.visible?i.size:{type:"invisible",cachedVisibleSize:i.size},s=i.view;this.doAddView(s,o,r,!0)}),this._contentSize=this.viewItems.reduce((i,r)=>i+r.size,0),this.saveProportions())}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,n=this.viewItems.length,i){this.doAddView(e,t,n,i)}layout(e,t){const n=Math.max(this.size,this._contentSize);if(this.size=e,this.layoutContext=t,this.proportions){let i=0;for(let r=0;r<this.viewItems.length;r++){const o=this.viewItems[r],s=this.proportions[r];typeof s=="number"?i+=s:e-=o.size}for(let r=0;r<this.viewItems.length;r++){const o=this.viewItems[r],s=this.proportions[r];typeof s=="number"&&i>0&&(o.size=Jp(Math.round(s*e/i),o.minimumSize,o.maximumSize))}}else{const i=Kg(this.viewItems.length),r=i.filter(s=>this.viewItems[s].priority===1),o=i.filter(s=>this.viewItems[s].priority===2);this.resize(this.viewItems.length-1,e-n,void 0,r,o)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this._contentSize>0&&(this.proportions=this.viewItems.map(e=>e.proportionalLayout&&e.visible?e.size/this._contentSize:void 0))}onSashStart({sash:e,start:t,alt:n}){for(const s of this.viewItems)s.enabled=!1;const i=this.sashItems.findIndex(s=>s.sash===e),r=z_(qt(this.el.ownerDocument.body,"keydown",s=>o(this.sashDragState.current,s.altKey)),qt(this.el.ownerDocument.body,"keyup",()=>o(this.sashDragState.current,!1))),o=(s,a)=>{const l=this.viewItems.map(f=>f.size);let c=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(a=!a),a)if(i===this.sashItems.length-1){const p=this.viewItems[i];c=(p.minimumSize-p.size)/2,u=(p.maximumSize-p.size)/2}else{const p=this.viewItems[i+1];c=(p.size-p.maximumSize)/2,u=(p.size-p.minimumSize)/2}let d,h;if(!a){const f=Kg(i,-1),p=Kg(i+1,this.viewItems.length),g=f.reduce((D,T)=>D+(this.viewItems[T].minimumSize-l[T]),0),m=f.reduce((D,T)=>D+(this.viewItems[T].viewMaximumSize-l[T]),0),v=p.length===0?Number.POSITIVE_INFINITY:p.reduce((D,T)=>D+(l[T]-this.viewItems[T].minimumSize),0),y=p.length===0?Number.NEGATIVE_INFINITY:p.reduce((D,T)=>D+(l[T]-this.viewItems[T].viewMaximumSize),0),b=Math.max(g,y),w=Math.min(v,m),E=this.findFirstSnapIndex(f),A=this.findFirstSnapIndex(p);if(typeof E=="number"){const D=this.viewItems[E],T=Math.floor(D.viewMinimumSize/2);d={index:E,limitDelta:D.visible?b-T:b+T,size:D.size}}if(typeof A=="number"){const D=this.viewItems[A],T=Math.floor(D.viewMinimumSize/2);h={index:A,limitDelta:D.visible?w+T:w-T,size:D.size}}}this.sashDragState={start:s,current:s,index:i,sizes:l,minDelta:c,maxDelta:u,alt:a,snapBefore:d,snapAfter:h,disposable:r}};o(t,n)}onSashChange({current:e}){const{index:t,start:n,sizes:i,alt:r,minDelta:o,maxDelta:s,snapBefore:a,snapAfter:l}=this.sashDragState;this.sashDragState.current=e;const c=e-n,u=this.resize(t,c,i,void 0,void 0,o,s,a,l);if(r){const d=t===this.sashItems.length-1,h=this.viewItems.map(y=>y.size),f=d?t:t+1,p=this.viewItems[f],g=p.size-p.maximumSize,m=p.size-p.minimumSize,v=d?t-1:t+1;this.resize(v,-u,h,void 0,void 0,g,m)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const t of this.viewItems)t.enabled=!0}onViewChange(e,t){const n=this.viewItems.indexOf(e);n<0||n>=this.viewItems.length||(t=typeof t=="number"?t:e.size,t=Jp(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&n>0?(this.resize(n-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([n],void 0)))}resizeView(e,t){if(!(e<0||e>=this.viewItems.length)){if(this.state!==cA.Idle)throw new Error("Cant modify splitview");this.state=cA.Busy;try{const n=Kg(this.viewItems.length).filter(s=>s!==e),i=[...n.filter(s=>this.viewItems[s].priority===1),e],r=n.filter(s=>this.viewItems[s].priority===2),o=this.viewItems[e];t=Math.round(t),t=Jp(t,o.minimumSize,Math.min(o.maximumSize,this.size)),o.size=t,this.relayout(i,r)}finally{this.state=cA.Idle}}}distributeViewSizes(){const e=[];let t=0;for(const s of this.viewItems)s.maximumSize-s.minimumSize>0&&(e.push(s),t+=s.size);const n=Math.floor(t/e.length);for(const s of e)s.size=Jp(n,s.minimumSize,s.maximumSize);const i=Kg(this.viewItems.length),r=i.filter(s=>this.viewItems[s].priority===1),o=i.filter(s=>this.viewItems[s].priority===2);this.relayout(r,o)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,n=this.viewItems.length,i){if(this.state!==cA.Idle)throw new Error("Cant modify splitview");this.state=cA.Busy;try{const r=In(".split-view-view");n===this.viewItems.length?this.viewContainer.appendChild(r):this.viewContainer.insertBefore(r,this.viewContainer.children.item(n));const o=e.onDidChange(d=>this.onViewChange(c,d)),s=zi(()=>r.remove()),a=z_(o,s);let l;typeof t=="number"?l=t:(t.type==="auto"&&(this.areViewsDistributed()?t={type:"distribute"}:t={type:"split",index:t.index}),t.type==="split"?l=this.getViewSize(t.index)/2:t.type==="invisible"?l={cachedVisibleSize:t.cachedVisibleSize}:l=e.minimumSize);const c=this.orientation===0?new rht(r,e,l,a):new oht(r,e,l,a);if(this.viewItems.splice(n,0,c),this.viewItems.length>1){const d={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},h=this.orientation===0?new mx(this.sashContainer,{getHorizontalSashTop:D=>this.getSashPosition(D),getHorizontalSashWidth:this.getSashOrthogonalSize},{...d,orientation:1}):new mx(this.sashContainer,{getVerticalSashLeft:D=>this.getSashPosition(D),getVerticalSashHeight:this.getSashOrthogonalSize},{...d,orientation:0}),f=this.orientation===0?D=>({sash:h,start:D.startY,current:D.currentY,alt:D.altKey}):D=>({sash:h,start:D.startX,current:D.currentX,alt:D.altKey}),g=On.map(h.onDidStart,f)(this.onSashStart,this),v=On.map(h.onDidChange,f)(this.onSashChange,this),b=On.map(h.onDidEnd,()=>this.sashItems.findIndex(D=>D.sash===h))(this.onSashEnd,this),w=h.onDidReset(()=>{const D=this.sashItems.findIndex(N=>N.sash===h),T=Kg(D,-1),M=Kg(D+1,this.viewItems.length),P=this.findFirstSnapIndex(T),F=this.findFirstSnapIndex(M);typeof P=="number"&&!this.viewItems[P].visible||typeof F=="number"&&!this.viewItems[F].visible||this._onDidSashReset.fire(D)}),E=z_(g,v,b,w,h),A={sash:h,disposable:E};this.sashItems.splice(n-1,0,A)}r.appendChild(e.element);let u;typeof t!="number"&&t.type==="split"&&(u=[t.index]),i||this.relayout([n],u),!i&&typeof t!="number"&&t.type==="distribute"&&this.distributeViewSizes()}finally{this.state=cA.Idle}}relayout(e,t){const n=this.viewItems.reduce((i,r)=>i+r.size,0);this.resize(this.viewItems.length-1,this.size-n,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,n=this.viewItems.map(c=>c.size),i,r,o=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY,a,l){if(e<0||e>=this.viewItems.length)return 0;const c=Kg(e,-1),u=Kg(e+1,this.viewItems.length);if(r)for(const A of r)Rwe(c,A),Rwe(u,A);if(i)for(const A of i)sJ(c,A),sJ(u,A);const d=c.map(A=>this.viewItems[A]),h=c.map(A=>n[A]),f=u.map(A=>this.viewItems[A]),p=u.map(A=>n[A]),g=c.reduce((A,D)=>A+(this.viewItems[D].minimumSize-n[D]),0),m=c.reduce((A,D)=>A+(this.viewItems[D].maximumSize-n[D]),0),v=u.length===0?Number.POSITIVE_INFINITY:u.reduce((A,D)=>A+(n[D]-this.viewItems[D].minimumSize),0),y=u.length===0?Number.NEGATIVE_INFINITY:u.reduce((A,D)=>A+(n[D]-this.viewItems[D].maximumSize),0),b=Math.max(g,y,o),w=Math.min(v,m,s);let E=!1;if(a){const A=this.viewItems[a.index],D=t>=a.limitDelta;E=D!==A.visible,A.setVisible(D,a.size)}if(!E&&l){const A=this.viewItems[l.index],D=t<l.limitDelta;E=D!==A.visible,A.setVisible(D,l.size)}if(E)return this.resize(e,t,n,i,r,o,s);t=Jp(t,b,w);for(let A=0,D=t;A<d.length;A++){const T=d[A],M=Jp(h[A]+D,T.minimumSize,T.maximumSize),P=M-h[A];D-=P,T.size=M}for(let A=0,D=t;A<f.length;A++){const T=f[A],M=Jp(p[A]-D,T.minimumSize,T.maximumSize),P=M-p[A];D+=P,T.size=M}return t}distributeEmptySpace(e){const t=this.viewItems.reduce((s,a)=>s+a.size,0);let n=this.size-t;const i=Kg(this.viewItems.length-1,-1),r=i.filter(s=>this.viewItems[s].priority===1),o=i.filter(s=>this.viewItems[s].priority===2);for(const s of o)Rwe(i,s);for(const s of r)sJ(i,s);typeof e=="number"&&sJ(i,e);for(let s=0;n!==0&&s<i.length;s++){const a=this.viewItems[i[s]],l=Jp(a.size+n,a.minimumSize,a.maximumSize),c=l-a.size;n-=c,a.size=l}}layoutViews(){this._contentSize=this.viewItems.reduce((t,n)=>t+n.size,0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach(t=>t.sash.layout()),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){this.orientation===0?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this._contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this._contentSize})}updateSashEnablement(){let e=!1;const t=this.viewItems.map(a=>e=a.size-a.minimumSize>0||e);e=!1;const n=this.viewItems.map(a=>e=a.maximumSize-a.size>0||e),i=[...this.viewItems].reverse();e=!1;const r=i.map(a=>e=a.size-a.minimumSize>0||e).reverse();e=!1;const o=i.map(a=>e=a.maximumSize-a.size>0||e).reverse();let s=0;for(let a=0;a<this.sashItems.length;a++){const{sash:l}=this.sashItems[a],c=this.viewItems[a];s+=c.size;const u=!(t[a]&&o[a+1]),d=!(n[a]&&r[a+1]);if(u&&d){const h=Kg(a,-1),f=Kg(a+1,this.viewItems.length),p=this.findFirstSnapIndex(h),g=this.findFirstSnapIndex(f),m=typeof p=="number"&&!this.viewItems[p].visible,v=typeof g=="number"&&!this.viewItems[g].visible;m&&r[a]&&(s>0||this.startSnappingEnabled)?l.state=1:v&&t[a]&&(s<this._contentSize||this.endSnappingEnabled)?l.state=2:l.state=0}else u&&!d?l.state=1:!u&&d?l.state=2:l.state=3}}getSashPosition(e){let t=0;for(let n=0;n<this.sashItems.length;n++)if(t+=this.viewItems[n].size,this.sashItems[n].sash===e)return t;return 0}findFirstSnapIndex(e){for(const t of e){const n=this.viewItems[t];if(n.visible&&n.snap)return t}for(const t of e){const n=this.viewItems[t];if(n.visible&&n.maximumSize-n.minimumSize>0)return;if(!n.visible&&n.snap)return t}}areViewsDistributed(){let e,t;for(const n of this.viewItems)if(e=e===void 0?n.size:Math.min(e,n.size),t=t===void 0?n.size:Math.max(t,n.size),t-e>2)return!1;return!0}dispose(){this.sashDragState?.disposable.dispose(),xa(this.viewItems),this.viewItems=[],this.sashItems.forEach(e=>e.disposable.dispose()),this.sashItems=[],super.dispose()}}}}),HWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/table/table.css"(){}});function WWn(e){return{getHeight(t){return e.getHeight(t)},getTemplateId(){return SBe.TemplateId}}}var SBe,sht,DYt,UWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/table/tableWidget.js"(){var e,t;Fn(),_w(),Lh(),BN(),AYt(),Un(),Nt(),HWn(),SBe=(e=class{constructor(i,r,o){this.columns=i,this.getColumnSize=o,this.templateId=e.TemplateId,this.renderedTemplates=new Set;const s=new Map(r.map(a=>[a.templateId,a]));this.renderers=[];for(const a of i){const l=s.get(a.templateId);if(!l)throw new Error(`Table cell renderer for template id ${a.templateId} not found.`);this.renderers.push(l)}}renderTemplate(i){const r=hn(i,In(".monaco-table-tr")),o=[],s=[];for(let l=0;l<this.columns.length;l++){const c=this.renderers[l],u=hn(r,In(".monaco-table-td",{"data-col-index":l}));u.style.width=`${this.getColumnSize(l)}px`,o.push(u),s.push(c.renderTemplate(u))}const a={container:i,cellContainers:o,cellTemplateData:s};return this.renderedTemplates.add(a),a}renderElement(i,r,o,s){for(let a=0;a<this.columns.length;a++){const c=this.columns[a].project(i);this.renderers[a].renderElement(c,r,o.cellTemplateData[a],s)}}disposeElement(i,r,o,s){for(let a=0;a<this.columns.length;a++){const l=this.renderers[a];if(l.disposeElement){const u=this.columns[a].project(i);l.disposeElement(u,r,o.cellTemplateData[a],s)}}}disposeTemplate(i){for(let r=0;r<this.columns.length;r++)this.renderers[r].disposeTemplate(i.cellTemplateData[r]);Sh(i.container),this.renderedTemplates.delete(i)}layoutColumn(i,r){for(const{cellContainers:o}of this.renderedTemplates)o[i].style.width=`${r}px`}},e.TemplateId="row",e),sht=class extends St{get minimumSize(){return this.column.minimumWidth??120}get maximumSize(){return this.column.maximumWidth??Number.POSITIVE_INFINITY}get onDidChange(){return this.column.onDidChangeWidthConstraints??On.None}constructor(n,i){super(),this.column=n,this.index=i,this._onDidLayout=new bt,this.onDidLayout=this._onDidLayout.event,this.element=In(".monaco-table-th",{"data-col-index":i},n.label),n.tooltip&&this._register(GC().setupManagedHover(hg("mouse"),this.element,n.tooltip))}layout(n){this._onDidLayout.fire([this.index,n])}},DYt=(t=class{get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onDidScroll(){return this.list.onDidScroll}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get scrollTop(){return this.list.scrollTop}set scrollTop(i){this.list.scrollTop=i}get scrollHeight(){return this.list.scrollHeight}get renderHeight(){return this.list.renderHeight}get onDidDispose(){return this.list.onDidDispose}constructor(i,r,o,s,a,l){this.virtualDelegate=o,this.columns=s,this.domId=`table_id_${++t.InstanceCount}`,this.disposables=new Jt,this.cachedWidth=0,this.cachedHeight=0,this.domNode=hn(r,In(`.monaco-table.${this.domId}`));const c=s.map((h,f)=>this.disposables.add(new sht(h,f))),u={size:c.reduce((h,f)=>h+f.column.weight,0),views:c.map(h=>({size:h.column.weight,view:h}))};this.splitview=this.disposables.add(new oUe(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:u})),this.splitview.el.style.height=`${o.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${o.headerRowHeight}px`;const d=new SBe(s,a,h=>this.splitview.getViewSize(h));this.list=this.disposables.add(new tv(i,this.domNode,WWn(o),[d],l)),On.any(...c.map(h=>h.onDidLayout))(([h,f])=>d.layoutColumn(h,f),null,this.disposables),this.splitview.onDidSashReset(h=>{const f=s.reduce((g,m)=>g+m.weight,0),p=s[h].weight/f*this.cachedWidth;this.splitview.resizeView(h,p)},null,this.disposables),this.styleElement=V0(this.domNode),this.style(nGt)}updateOptions(i){this.list.updateOptions(i)}splice(i,r,o=[]){this.list.splice(i,r,o)}getHTMLElement(){return this.domNode}style(i){const r=[];r.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {
			top: ${this.virtualDelegate.headerRowHeight+1}px;
			height: calc(100% - ${this.virtualDelegate.headerRowHeight}px);
		}`),this.styleElement.textContent=r.join(`
`),this.list.style(i)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}},t.InstanceCount=0,t)}}),f0,MO,uv,mde,AY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/tree/tree.js"(){(function(e){e[e.Expanded=0]="Expanded",e[e.Collapsed=1]="Collapsed",e[e.PreserveOrExpanded=2]="PreserveOrExpanded",e[e.PreserveOrCollapsed=3]="PreserveOrCollapsed"})(f0||(f0={})),(function(e){e[e.Unknown=0]="Unknown",e[e.Twistie=1]="Twistie",e[e.Element=2]="Element",e[e.Filter=3]="Filter"})(MO||(MO={})),uv=class extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}},mde=class{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}}});function sUe(e){return typeof e=="object"&&"visibility"in e&&"data"in e}function cG(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function OCe(e){return typeof e.collapsible=="boolean"}var TYt,aUe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/tree/indexTreeModel.js"(){AY(),rr(),fr(),SVt(),Qpe(),Un(),bg(),TYt=class{constructor(e,t,n,i={}){this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new p7,this._onDidChangeCollapseState=new bt,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new bt,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new bt,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new j0(I3e),this.collapseByDefault=typeof i.collapseByDefault>"u"?!1:i.collapseByDefault,this.allowNonCollapsibleParents=i.allowNonCollapsibleParents??!1,this.filter=i.filter,this.autoExpandSingleChildren=typeof i.autoExpandSingleChildren>"u"?!1:i.autoExpandSingleChildren,this.root={parent:void 0,element:n,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,n=Vo.empty(),i={}){if(e.length===0)throw new uv(this.user,"Invalid tree location");i.diffIdentityProvider?this.spliceSmart(i.diffIdentityProvider,e,t,n,i):this.spliceSimple(e,t,n,i)}spliceSmart(e,t,n,i=Vo.empty(),r,o=r.diffDepth??0){const{parentNode:s}=this.getParentNodeWithListIndex(t);if(!s.lastDiffIds)return this.spliceSimple(t,n,i,r);const a=[...i],l=t[t.length-1],c=new rY({getElements:()=>s.lastDiffIds},{getElements:()=>[...s.children.slice(0,l),...a,...s.children.slice(l+n)].map(p=>e.getId(p.element).toString())}).ComputeDiff(!1);if(c.quitEarly)return s.lastDiffIds=void 0,this.spliceSimple(t,n,a,r);const u=t.slice(0,-1),d=(p,g,m)=>{if(o>0)for(let v=0;v<m;v++)p--,g--,this.spliceSmart(e,[...u,p,0],Number.MAX_SAFE_INTEGER,a[g].children,r,o-1)};let h=Math.min(s.children.length,l+n),f=a.length;for(const p of c.changes.sort((g,m)=>m.originalStart-g.originalStart))d(h,f,h-(p.originalStart+p.originalLength)),h=p.originalStart,f=p.modifiedStart-l,this.spliceSimple([...u,h],p.originalLength,Vo.slice(a,f,f+p.modifiedLength),r);d(h,f,h)}spliceSimple(e,t,n=Vo.empty(),{onDidCreateNode:i,onDidDeleteNode:r,diffIdentityProvider:o}){const{parentNode:s,listIndex:a,revealed:l,visible:c}=this.getParentNodeWithListIndex(e),u=[],d=Vo.map(n,w=>this.createTreeNode(w,s,s.visible?1:0,l,u,i)),h=e[e.length-1];let f=0;for(let w=h;w>=0&&w<s.children.length;w--){const E=s.children[w];if(E.visible){f=E.visibleChildIndex;break}}const p=[];let g=0,m=0;for(const w of d)p.push(w),m+=w.renderNodeCount,w.visible&&(w.visibleChildIndex=f+g++);const v=Yst(s.children,h,t,p);o?s.lastDiffIds?Yst(s.lastDiffIds,h,t,p.map(w=>o.getId(w.element).toString())):s.lastDiffIds=s.children.map(w=>o.getId(w.element).toString()):s.lastDiffIds=void 0;let y=0;for(const w of v)w.visible&&y++;if(y!==0)for(let w=h+p.length;w<s.children.length;w++){const E=s.children[w];E.visible&&(E.visibleChildIndex-=y)}if(s.visibleChildrenCount+=g-y,l&&c){const w=v.reduce((E,A)=>E+(A.visible?A.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(s,m-w),this.list.splice(a,w,u)}if(v.length>0&&r){const w=E=>{r(E),E.children.forEach(w)};v.forEach(w)}this._onDidSplice.fire({insertedNodes:p,deletedNodes:v});let b=s;for(;b;){if(b.visibility===2){this.refilterDelayer.trigger(()=>this.refilter());break}b=b.parent}}rerender(e){if(e.length===0)throw new uv(this.user,"Invalid tree location");const{node:t,listIndex:n,revealed:i}=this.getTreeNodeWithListIndex(e);t.visible&&i&&this.list.splice(n,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:n,revealed:i}=this.getTreeNodeWithListIndex(e);return n&&i?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const n=this.getTreeNode(e);typeof t>"u"&&(t=!n.collapsible);const i={collapsible:t};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,i))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,n){const i=this.getTreeNode(e);typeof t>"u"&&(t=!i.collapsed);const r={collapsed:t,recursive:n||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,r))}_setCollapseState(e,t){const{node:n,listIndex:i,revealed:r}=this.getTreeNodeWithListIndex(e),o=this._setListNodeCollapseState(n,i,r,t);if(n!==this.root&&this.autoExpandSingleChildren&&o&&!OCe(t)&&n.collapsible&&!n.collapsed&&!t.recursive){let s=-1;for(let a=0;a<n.children.length;a++)if(n.children[a].visible)if(s>-1){s=-1;break}else s=a;s>-1&&this._setCollapseState([...e,s],t)}return o}_setListNodeCollapseState(e,t,n,i){const r=this._setNodeCollapseState(e,i,!1);if(!n||!e.visible||!r)return r;const o=e.renderNodeCount,s=this.updateNodeAfterCollapseChange(e),a=o-(t===-1?0:1);return this.list.splice(t+1,a,s.slice(1)),r}_setNodeCollapseState(e,t,n){let i;if(e===this.root?i=!1:(OCe(t)?(i=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(i=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):i=!1,i&&this._onDidChangeCollapseState.fire({node:e,deep:n})),!OCe(t)&&t.recursive)for(const r of e.children)i=this._setNodeCollapseState(r,t,!0)||i;return i}expandTo(e){this.eventBufferer.bufferEvents(()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})})}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,n,i,r,o){const s={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof e.collapsible=="boolean"?e.collapsible:typeof e.collapsed<"u",collapsed:typeof e.collapsed>"u"?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},a=this._filterNode(s,n);s.visibility=a,i&&r.push(s);const l=e.children||Vo.empty(),c=i&&a!==0&&!s.collapsed;let u=0,d=1;for(const h of l){const f=this.createTreeNode(h,s,a,c,r,o);s.children.push(f),d+=f.renderNodeCount,f.visible&&(f.visibleChildIndex=u++)}return this.allowNonCollapsibleParents||(s.collapsible=s.collapsible||s.children.length>0),s.visibleChildrenCount=u,s.visible=a===2?u>0:a===1,s.visible?s.collapsed||(s.renderNodeCount=d):(s.renderNodeCount=0,i&&r.pop()),o?.(s),s}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,n=[];return this._updateNodeAfterCollapseChange(e,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n}_updateNodeAfterCollapseChange(e,t){if(e.visible===!1)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const n of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(n,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,n=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n}_updateNodeAfterFilterChange(e,t,n,i=!0){let r;if(e!==this.root){if(r=this._filterNode(e,t),r===0)return e.visible=!1,e.renderNodeCount=0,!1;i&&n.push(e)}const o=n.length;e.renderNodeCount=e===this.root?0:1;let s=!1;if(!e.collapsed||r!==0){let a=0;for(const l of e.children)s=this._updateNodeAfterFilterChange(l,r,n,i&&!e.collapsed)||s,l.visible&&(l.visibleChildIndex=a++);e.visibleChildrenCount=a}else e.visibleChildrenCount=0;return e!==this.root&&(e.visible=r===2?s:r===1,e.visibility=r),e.visible?e.collapsed||(e.renderNodeCount+=n.length-o):(e.renderNodeCount=0,i&&n.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(t!==0)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const n=this.filter?this.filter.filter(e.element,t):1;return typeof n=="boolean"?(e.filterData=void 0,n?1:0):sUe(n)?(e.filterData=n.data,cG(n.visibility)):(e.filterData=void 0,cG(n))}hasTreeNode(e,t=this.root){if(!e||e.length===0)return!0;const[n,...i]=e;return n<0||n>t.children.length?!1:this.hasTreeNode(i,t.children[n])}getTreeNode(e,t=this.root){if(!e||e.length===0)return t;const[n,...i]=e;if(n<0||n>t.children.length)throw new uv(this.user,"Invalid tree location");return this.getTreeNode(i,t.children[n])}getTreeNodeWithListIndex(e){if(e.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:n,revealed:i,visible:r}=this.getParentNodeWithListIndex(e),o=e[e.length-1];if(o<0||o>t.children.length)throw new uv(this.user,"Invalid tree location");const s=t.children[o];return{node:s,listIndex:n,revealed:i,visible:r&&s.visible}}getParentNodeWithListIndex(e,t=this.root,n=0,i=!0,r=!0){const[o,...s]=e;if(o<0||o>t.children.length)throw new uv(this.user,"Invalid tree location");for(let a=0;a<o;a++)n+=t.children[a].renderNodeCount;return i=i&&!t.collapsed,r=r&&t.visible,s.length===0?{parentNode:t,listIndex:n,revealed:i,visible:r}:this.getParentNodeWithListIndex(s,t.children[o],n+1,i,r)}getNode(e=[]){return this.getTreeNode(e)}getNodeLocation(e){const t=[];let n=e;for(;n.parent;)t.push(n.parent.children.indexOf(n)),n=n.parent;return t.reverse()}getParentNodeLocation(e){if(e.length!==0)return e.length===1?[]:E7n(e)[0]}getFirstElementChild(e){const t=this.getTreeNode(e);if(t.children.length!==0)return t.children[0].element}}}}),$Wn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/tree/media/tree.css"(){}});function RCe(e){return e instanceof l9?new IYt(e):e}function qWn(e,t){return t&&{...t,identityProvider:t.identityProvider&&{getId(n){return t.identityProvider.getId(n.element)}},dnd:t.dnd&&new LYt(e,t.dnd),multipleSelectionController:t.multipleSelectionController&&{isSelectionSingleChangeEvent(n){return t.multipleSelectionController.isSelectionSingleChangeEvent({...n,element:n.element})},isSelectionRangeChangeEvent(n){return t.multipleSelectionController.isSelectionRangeChangeEvent({...n,element:n.element})}},accessibilityProvider:t.accessibilityProvider&&{...t.accessibilityProvider,getSetSize(n){const i=e(),r=i.getNodeLocation(n),o=i.getParentNodeLocation(r);return i.getNode(o).visibleChildrenCount},getPosInSet(n){return n.visibleChildIndex+1},isChecked:t.accessibilityProvider&&t.accessibilityProvider.isChecked?n=>t.accessibilityProvider.isChecked(n.element):void 0,getRole:t.accessibilityProvider&&t.accessibilityProvider.getRole?n=>t.accessibilityProvider.getRole(n.element):()=>"treeitem",getAriaLabel(n){return t.accessibilityProvider.getAriaLabel(n.element)},getWidgetAriaLabel(){return t.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:t.accessibilityProvider&&t.accessibilityProvider.getWidgetRole?()=>t.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:t.accessibilityProvider&&t.accessibilityProvider.getAriaLevel?n=>t.accessibilityProvider.getAriaLevel(n.element):n=>n.depth,getActiveDescendantId:t.accessibilityProvider.getActiveDescendantId&&(n=>t.accessibilityProvider.getActiveDescendantId(n.element))},keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{...t.keyboardNavigationLabelProvider,getKeyboardNavigationLabel(n){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(n.element)}}}}function GWn(e,t){return e.position===t.position&&kYt(e,t)}function kYt(e,t){return e.node.element===t.node.element&&e.startIndex===t.startIndex&&e.height===t.height&&e.endIndex===t.endIndex}function ree(e){let t=MO.Unknown;return ywe(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=MO.Twistie:ywe(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?t=MO.Element:ywe(e.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(t=MO.Filter),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function KWn(e){const t=iW(e.browserEvent.target);return{element:e.element?e.element.element:null,browserEvent:e.browserEvent,anchor:e.anchor,isStickyScroll:t}}function qse(e,t){t(e),e.children.forEach(n=>qse(n,t))}var IYt,LYt,vde,LB,aht,lht,cht,eD,pO,uht,dht,hht,FCe,fht,pht,oee,ght,mht,lUe,DY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/tree/abstractTree.js"(){var e;Fn(),UC(),mf(),ww(),rUe(),nUe(),bWe(),BN(),xY(),aUe(),AY(),wd(),rr(),fr(),ia(),Ra(),kh(),Un(),yw(),Nt(),k7(),as(),$Wn(),bn(),Lh(),xs(),Ih(),IYt=class extends l9{constructor(t){super(t.elements.map(n=>n.element)),this.data=t}},LYt=class{constructor(t,n){this.modelProvider=t,this.dnd=n,this.autoExpandDisposable=St.None,this.disposables=new Jt}getDragURI(t){return this.dnd.getDragURI(t.element)}getDragLabel(t,n){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(t.map(i=>i.element),n)}onDragStart(t,n){this.dnd.onDragStart?.(RCe(t),n)}onDragOver(t,n,i,r,o,s=!0){const a=this.dnd.onDragOver(RCe(t),n&&n.element,i,r,o),l=this.autoExpandNode!==n;if(l&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=n),typeof n>"u")return a;if(l&&typeof a!="boolean"&&a.autoExpand&&(this.autoExpandDisposable=TL(()=>{const f=this.modelProvider(),p=f.getNodeLocation(n);f.isCollapsed(p)&&f.setCollapsed(p,!1),this.autoExpandNode=void 0},500,this.disposables)),typeof a=="boolean"||!a.accept||typeof a.bubble>"u"||a.feedback){if(!s){const f=typeof a=="boolean"?a:a.accept,p=typeof a=="boolean"?void 0:a.effect;return{accept:f,effect:p,feedback:[i]}}return a}if(a.bubble===1){const f=this.modelProvider(),p=f.getNodeLocation(n),g=f.getParentNodeLocation(p),m=f.getNode(g),v=g&&f.getListIndex(g);return this.onDragOver(t,m,v,r,o,!1)}const c=this.modelProvider(),u=c.getNodeLocation(n),d=c.getListIndex(u),h=c.getListRenderCount(u);return{...a,feedback:Kg(d,d+h)}}drop(t,n,i,r,o){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(RCe(t),n&&n.element,i,r,o)}onDragEnd(t){this.dnd.onDragEnd?.(t)}dispose(){this.disposables.dispose(),this.dnd.dispose()}},vde=class{constructor(t){this.delegate=t}getHeight(t){return this.delegate.getHeight(t.element)}getTemplateId(t){return this.delegate.getTemplateId(t.element)}hasDynamicHeight(t){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(t.element)}setDynamicHeight(t,n){this.delegate.setDynamicHeight?.(t.element,n)}},(function(t){t.None="none",t.OnHover="onHover",t.Always="always"})(LB||(LB={})),aht=class{get elements(){return this._elements}constructor(t,n=[]){this._elements=n,this.disposables=new Jt,this.onDidChange=On.forEach(t,i=>this._elements=i,this.disposables)}dispose(){this.disposables.dispose()}},lht=(e=class{constructor(n,i,r,o,s,a={}){this.renderer=n,this.modelProvider=i,this.activeNodes=o,this.renderedIndentGuides=s,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=e.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.activeIndentNodes=new Set,this.indentGuidesDisposable=St.None,this.disposables=new Jt,this.templateId=n.templateId,this.updateOptions(a),On.map(r,l=>l.node)(this.onDidChangeNodeTwistieState,this,this.disposables),n.onDidChangeTwistieState?.(this.onDidChangeTwistieState,this,this.disposables)}updateOptions(n={}){if(typeof n.indent<"u"){const i=Jp(n.indent,0,40);if(i!==this.indent){this.indent=i;for(const[r,o]of this.renderedNodes)this.renderTreeElement(r,o)}}if(typeof n.renderIndentGuides<"u"){const i=n.renderIndentGuides!==LB.None;if(i!==this.shouldRenderIndentGuides){this.shouldRenderIndentGuides=i;for(const[r,o]of this.renderedNodes)this._renderIndentGuides(r,o);if(this.indentGuidesDisposable.dispose(),i){const r=new Jt;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,r),this.indentGuidesDisposable=r,this._onDidChangeActiveNodes(this.activeNodes.elements)}}}typeof n.hideTwistiesOfChildlessElements<"u"&&(this.hideTwistiesOfChildlessElements=n.hideTwistiesOfChildlessElements)}renderTemplate(n){const i=hn(n,In(".monaco-tl-row")),r=hn(i,In(".monaco-tl-indent")),o=hn(i,In(".monaco-tl-twistie")),s=hn(i,In(".monaco-tl-contents")),a=this.renderer.renderTemplate(s);return{container:n,indent:r,twistie:o,indentGuidesDisposable:St.None,templateData:a}}renderElement(n,i,r,o){this.renderedNodes.set(n,r),this.renderedElements.set(n.element,n),this.renderTreeElement(n,r),this.renderer.renderElement(n,i,r.templateData,o)}disposeElement(n,i,r,o){r.indentGuidesDisposable.dispose(),this.renderer.disposeElement?.(n,i,r.templateData,o),typeof o=="number"&&(this.renderedNodes.delete(n),this.renderedElements.delete(n.element))}disposeTemplate(n){this.renderer.disposeTemplate(n.templateData)}onDidChangeTwistieState(n){const i=this.renderedElements.get(n);i&&this.onDidChangeNodeTwistieState(i)}onDidChangeNodeTwistieState(n){const i=this.renderedNodes.get(n);i&&(this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderTreeElement(n,i))}renderTreeElement(n,i){const r=e.DefaultIndent+(n.depth-1)*this.indent;i.twistie.style.paddingLeft=`${r}px`,i.indent.style.width=`${r+this.indent-16}px`,n.collapsible?i.container.setAttribute("aria-expanded",String(!n.collapsed)):i.container.removeAttribute("aria-expanded"),i.twistie.classList.remove(...lr.asClassNameArray(An.treeItemExpanded));let o=!1;this.renderer.renderTwistie&&(o=this.renderer.renderTwistie(n.element,i.twistie)),n.collapsible&&(!this.hideTwistiesOfChildlessElements||n.visibleChildrenCount>0)?(o||i.twistie.classList.add(...lr.asClassNameArray(An.treeItemExpanded)),i.twistie.classList.add("collapsible"),i.twistie.classList.toggle("collapsed",n.collapsed)):i.twistie.classList.remove("collapsible","collapsed"),this._renderIndentGuides(n,i)}_renderIndentGuides(n,i){if(Sh(i.indent),i.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const r=new Jt,o=this.modelProvider();for(;;){const s=o.getNodeLocation(n),a=o.getParentNodeLocation(s);if(!a)break;const l=o.getNode(a),c=In(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(l)&&c.classList.add("active"),i.indent.childElementCount===0?i.indent.appendChild(c):i.indent.insertBefore(c,i.indent.firstElementChild),this.renderedIndentGuides.add(l,c),r.add(zi(()=>this.renderedIndentGuides.delete(l,c))),n=l}i.indentGuidesDisposable=r}_onDidChangeActiveNodes(n){if(!this.shouldRenderIndentGuides)return;const i=new Set,r=this.modelProvider();n.forEach(o=>{const s=r.getNodeLocation(o);try{const a=r.getParentNodeLocation(s);o.collapsible&&o.children.length>0&&!o.collapsed?i.add(o):a&&i.add(r.getNode(a))}catch{}}),this.activeIndentNodes.forEach(o=>{i.has(o)||this.renderedIndentGuides.forEach(o,s=>s.classList.remove("active"))}),i.forEach(o=>{this.activeIndentNodes.has(o)||this.renderedIndentGuides.forEach(o,s=>s.classList.add("active"))}),this.activeIndentNodes=i}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),xa(this.disposables)}},e.DefaultIndent=8,e),cht=class{get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}constructor(t,n,i){this.tree=t,this.keyboardNavigationLabelProvider=n,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new Jt,t.onWillRefilter(this.reset,this,this.disposables)}filter(t,n){let i=1;if(this._filter){const s=this._filter.filter(t,n);if(typeof s=="boolean"?i=s?1:0:sUe(s)?i=cG(s.visibility):i=s,i===0)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:Q1.Default,visibility:i};const r=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t),o=Array.isArray(r)?r:[r];for(const s of o){const a=s&&s.toString();if(typeof a>"u")return{data:Q1.Default,visibility:i};let l;if(this.tree.findMatchType===pO.Contiguous){const c=a.toLowerCase().indexOf(this._lowercasePattern);if(c>-1){l=[Number.MAX_SAFE_INTEGER,0];for(let u=this._lowercasePattern.length;u>0;u--)l.push(c+u-1)}}else l=JR(this._pattern,this._lowercasePattern,0,a,a.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(l)return this._matchCount++,o.length===1?{data:l,visibility:i}:{data:{label:a,score:l},visibility:i}}return this.tree.findMode===eD.Filter?typeof this.tree.options.defaultFindVisibility=="number"?this.tree.options.defaultFindVisibility:this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility(t):2:{data:Q1.Default,visibility:i}}reset(){this._totalCount=0,this._matchCount=0}dispose(){xa(this.disposables)}},(function(t){t[t.Highlight=0]="Highlight",t[t.Filter=1]="Filter"})(eD||(eD={})),(function(t){t[t.Fuzzy=0]="Fuzzy",t[t.Contiguous=1]="Contiguous"})(pO||(pO={})),uht=class{get pattern(){return this._pattern}get mode(){return this._mode}set mode(t){t!==this._mode&&(this._mode=t,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(t))}get matchType(){return this._matchType}set matchType(t){t!==this._matchType&&(this._matchType=t,this.widget&&(this.widget.matchType=this._matchType),this.tree.refilter(),this.render(),this._onDidChangeMatchType.fire(t))}constructor(t,n,i,r,o,s={}){this.tree=t,this.view=i,this.filter=r,this.contextViewProvider=o,this.options=s,this._pattern="",this.width=0,this._onDidChangeMode=new bt,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangeMatchType=new bt,this.onDidChangeMatchType=this._onDidChangeMatchType.event,this._onDidChangePattern=new bt,this._onDidChangeOpenState=new bt,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new Jt,this.disposables=new Jt,this._mode=t.options.defaultFindMode??eD.Highlight,this._matchType=t.options.defaultFindMatchType??pO.Fuzzy,n.onDidSplice(this.onDidSpliceModel,this,this.disposables)}updateOptions(t={}){t.defaultFindMode!==void 0&&(this.mode=t.defaultFindMode),t.defaultFindMatchType!==void 0&&(this.matchType=t.defaultFindMatchType)}onDidSpliceModel(){!this.widget||this.pattern.length===0||(this.tree.refilter(),this.render())}render(){const t=this.filter.totalCount>0&&this.filter.matchCount===0;this.pattern&&t?(mg(R("replFindNoResults","No results")),this.tree.options.showNotFoundMessage??!0?this.widget?.showMessage({type:2,content:R("not found","No elements found.")}):this.widget?.showMessage({type:2})):(this.widget?.clearMessage(),this.pattern&&mg(R("replFindResults","{0} results",this.filter.matchCount)))}shouldAllowFocus(t){return!this.widget||!this.pattern||this.filter.totalCount>0&&this.filter.matchCount<=1?!0:!Q1.isDefault(t.filterData)}layout(t){this.width=t,this.widget?.layout(t)}dispose(){this._history=void 0,this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}},dht=class{constructor(t=[]){this.stickyNodes=t}get count(){return this.stickyNodes.length}equal(t){return vl(this.stickyNodes,t.stickyNodes,GWn)}lastNodePartiallyVisible(){if(this.count===0)return!1;const t=this.stickyNodes[this.count-1];if(this.count===1)return t.position!==0;const n=this.stickyNodes[this.count-2];return n.position+n.height!==t.position}animationStateChanged(t){if(!vl(this.stickyNodes,t.stickyNodes,kYt)||this.count===0)return!1;const n=this.stickyNodes[this.count-1],i=t.stickyNodes[t.count-1];return n.position!==i.position}},hht=class{constrainStickyScrollNodes(t,n,i){for(let r=0;r<t.length;r++){const o=t[r];if(o.position+o.height>i||r>=n)return t.slice(0,r)}return t}},FCe=class extends St{constructor(t,n,i,r,o,s={}){super(),this.tree=t,this.model=n,this.view=i,this.treeDelegate=o,this.maxWidgetViewRatio=.4;const a=this.validateStickySettings(s);this.stickyScrollMaxItemCount=a.stickyScrollMaxItemCount,this.stickyScrollDelegate=s.stickyScrollDelegate??new hht,this._widget=this._register(new fht(i.getScrollableElement(),i,t,r,o,s.accessibilityProvider)),this.onDidChangeHasFocus=this._widget.onDidChangeHasFocus,this.onContextMenu=this._widget.onContextMenu,this._register(i.onDidScroll(()=>this.update())),this._register(i.onDidChangeContentHeight(()=>this.update())),this._register(t.onDidChangeCollapseState(()=>this.update())),this.update()}get height(){return this._widget.height}getNodeAtHeight(t){let n;if(t===0?n=this.view.firstVisibleIndex:n=this.view.indexAt(t+this.view.scrollTop),!(n<0||n>=this.view.length))return this.view.element(n)}update(){const t=this.getNodeAtHeight(0);if(!t||this.tree.scrollTop===0){this._widget.setState(void 0);return}const n=this.findStickyState(t);this._widget.setState(n)}findStickyState(t){const n=[];let i=t,r=0,o=this.getNextStickyNode(i,void 0,r);for(;o&&(n.push(o),r+=o.height,!(n.length<=this.stickyScrollMaxItemCount&&(i=this.getNextVisibleNode(o),!i)));)o=this.getNextStickyNode(i,o.node,r);const s=this.constrainStickyNodes(n);return s.length?new dht(s):void 0}getNextVisibleNode(t){return this.getNodeAtHeight(t.position+t.height)}getNextStickyNode(t,n,i){const r=this.getAncestorUnderPrevious(t,n);if(r&&!(r===t&&(!this.nodeIsUncollapsedParent(t)||this.nodeTopAlignsWithStickyNodesBottom(t,i))))return this.createStickyScrollNode(r,i)}nodeTopAlignsWithStickyNodesBottom(t,n){const i=this.getNodeIndex(t),r=this.view.getElementTop(i),o=n;return this.view.scrollTop===r-o}createStickyScrollNode(t,n){const i=this.treeDelegate.getHeight(t),{startIndex:r,endIndex:o}=this.getNodeRange(t),s=this.calculateStickyNodePosition(o,n,i);return{node:t,position:s,height:i,startIndex:r,endIndex:o}}getAncestorUnderPrevious(t,n=void 0){let i=t,r=this.getParentNode(i);for(;r;){if(r===n)return i;i=r,r=this.getParentNode(i)}if(n===void 0)return i}calculateStickyNodePosition(t,n,i){let r=this.view.getRelativeTop(t);if(r===null&&this.view.firstVisibleIndex===t&&t+1<this.view.length){const c=this.treeDelegate.getHeight(this.view.element(t)),u=this.view.getRelativeTop(t+1);r=u?u-c/this.view.renderHeight:null}if(r===null)return n;const o=this.view.element(t),s=this.treeDelegate.getHeight(o),l=r*this.view.renderHeight+s;return n+i>l&&n<=l?l-i:n}constrainStickyNodes(t){if(t.length===0)return[];const n=this.view.renderHeight*this.maxWidgetViewRatio,i=t[t.length-1];if(t.length<=this.stickyScrollMaxItemCount&&i.position+i.height<=n)return t;const r=this.stickyScrollDelegate.constrainStickyScrollNodes(t,this.stickyScrollMaxItemCount,n);if(!r.length)return[];const o=r[r.length-1];if(r.length>this.stickyScrollMaxItemCount||o.position+o.height>n)throw new Error("stickyScrollDelegate violates constraints");return r}getParentNode(t){const n=this.model.getNodeLocation(t),i=this.model.getParentNodeLocation(n);return i?this.model.getNode(i):void 0}nodeIsUncollapsedParent(t){const n=this.model.getNodeLocation(t);return this.model.getListRenderCount(n)>1}getNodeIndex(t){const n=this.model.getNodeLocation(t);return this.model.getListIndex(n)}getNodeRange(t){const n=this.model.getNodeLocation(t),i=this.model.getListIndex(n);if(i<0)throw new Error("Node not found in tree");const r=this.model.getListRenderCount(n),o=i+r-1;return{startIndex:i,endIndex:o}}nodePositionTopBelowWidget(t){const n=[];let i=this.getParentNode(t);for(;i;)n.push(i),i=this.getParentNode(i);let r=0;for(let o=0;o<n.length&&o<this.stickyScrollMaxItemCount;o++)r+=this.treeDelegate.getHeight(n[o]);return r}domFocus(){this._widget.domFocus()}focusedLast(){return this._widget.focusedLast()}updateOptions(t={}){if(!t.stickyScrollMaxItemCount)return;const n=this.validateStickySettings(t);this.stickyScrollMaxItemCount!==n.stickyScrollMaxItemCount&&(this.stickyScrollMaxItemCount=n.stickyScrollMaxItemCount,this.update())}validateStickySettings(t){let n=7;return typeof t.stickyScrollMaxItemCount=="number"&&(n=Math.max(t.stickyScrollMaxItemCount,1)),{stickyScrollMaxItemCount:n}}},fht=class{constructor(t,n,i,r,o,s){this.view=n,this.tree=i,this.treeRenderers=r,this.treeDelegate=o,this.accessibilityProvider=s,this._previousElements=[],this._previousStateDisposables=new Jt,this._rootDomNode=In(".monaco-tree-sticky-container.empty"),t.appendChild(this._rootDomNode);const a=In(".monaco-tree-sticky-container-shadow");this._rootDomNode.appendChild(a),this.stickyScrollFocus=new pht(this._rootDomNode,n),this.onDidChangeHasFocus=this.stickyScrollFocus.onDidChangeHasFocus,this.onContextMenu=this.stickyScrollFocus.onContextMenu}get height(){if(!this._previousState)return 0;const t=this._previousState.stickyNodes[this._previousState.count-1];return t.position+t.height}setState(t){const n=!!this._previousState&&this._previousState.count>0,i=!!t&&t.count>0;if(!n&&!i||n&&i&&this._previousState.equal(t))return;if(n!==i&&this.setVisible(i),!i){this._previousState=void 0,this._previousElements=[],this._previousStateDisposables.clear();return}const r=t.stickyNodes[t.count-1];if(this._previousState&&t.animationStateChanged(this._previousState))this._previousElements[this._previousState.count-1].style.top=`${r.position}px`;else{this._previousStateDisposables.clear();const o=Array(t.count);for(let s=t.count-1;s>=0;s--){const a=t.stickyNodes[s],{element:l,disposable:c}=this.createElement(a,s,t.count);o[s]=l,this._rootDomNode.appendChild(l),this._previousStateDisposables.add(c)}this.stickyScrollFocus.updateElements(o,t),this._previousElements=o}this._previousState=t,this._rootDomNode.style.height=`${r.position+r.height}px`}createElement(t,n,i){const r=t.startIndex,o=document.createElement("div");o.style.top=`${t.position}px`,this.tree.options.setRowHeight!==!1&&(o.style.height=`${t.height}px`),this.tree.options.setRowLineHeight!==!1&&(o.style.lineHeight=`${t.height}px`),o.classList.add("monaco-tree-sticky-row"),o.classList.add("monaco-list-row"),o.setAttribute("data-index",`${r}`),o.setAttribute("data-parity",r%2===0?"even":"odd"),o.setAttribute("id",this.view.getElementID(r));const s=this.setAccessibilityAttributes(o,t.node.element,n,i),a=this.treeDelegate.getTemplateId(t.node),l=this.treeRenderers.find(h=>h.templateId===a);if(!l)throw new Error(`No renderer found for template id ${a}`);let c=t.node;c===this.tree.getNode(this.tree.getNodeLocation(t.node))&&(c=new Proxy(t.node,{}));const u=l.renderTemplate(o);l.renderElement(c,t.startIndex,u,t.height);const d=zi(()=>{s.dispose(),l.disposeElement(c,t.startIndex,u,t.height),l.disposeTemplate(u),o.remove()});return{element:o,disposable:d}}setAccessibilityAttributes(t,n,i,r){if(!this.accessibilityProvider)return St.None;this.accessibilityProvider.getSetSize&&t.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(n,i,r))),this.accessibilityProvider.getPosInSet&&t.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(n,i))),this.accessibilityProvider.getRole&&t.setAttribute("role",this.accessibilityProvider.getRole(n)??"treeitem");const o=this.accessibilityProvider.getAriaLabel(n),s=o&&typeof o!="string"?o:Uy(o),a=Tr(c=>{const u=c.readObservable(s);u?t.setAttribute("aria-label",u):t.removeAttribute("aria-label")});typeof o=="string"||o&&t.setAttribute("aria-label",o.get());const l=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(n);return typeof l=="number"&&t.setAttribute("aria-level",`${l}`),t.setAttribute("aria-selected",String(!1)),a}setVisible(t){this._rootDomNode.classList.toggle("empty",!t),t||this.stickyScrollFocus.updateElements([],void 0)}domFocus(){this.stickyScrollFocus.domFocus()}focusedLast(){return this.stickyScrollFocus.focusedLast()}dispose(){this.stickyScrollFocus.dispose(),this._previousStateDisposables.dispose(),this._rootDomNode.remove()}},pht=class extends St{get domHasFocus(){return this._domHasFocus}set domHasFocus(t){t!==this._domHasFocus&&(this._onDidChangeHasFocus.fire(t),this._domHasFocus=t)}constructor(t,n){super(),this.container=t,this.view=n,this.focusedIndex=-1,this.elements=[],this._onDidChangeHasFocus=new bt,this.onDidChangeHasFocus=this._onDidChangeHasFocus.event,this._onContextMenu=new bt,this.onContextMenu=this._onContextMenu.event,this._domHasFocus=!1,this._register(qt(this.container,"focus",()=>this.onFocus())),this._register(qt(this.container,"blur",()=>this.onBlur())),this._register(this.view.onDidFocus(()=>this.toggleStickyScrollFocused(!1))),this._register(this.view.onKeyDown(i=>this.onKeyDown(i))),this._register(this.view.onMouseDown(i=>this.onMouseDown(i))),this._register(this.view.onContextMenu(i=>this.handleContextMenu(i)))}handleContextMenu(t){const n=t.browserEvent.target;if(!iW(n)&&!nV(n)){this.focusedLast()&&this.view.domFocus();return}if(!MA(t.browserEvent)){if(!this.state)throw new Error("Context menu should not be triggered when state is undefined");const s=this.state.stickyNodes.findIndex(a=>a.node.element===t.element?.element);if(s===-1)throw new Error("Context menu should not be triggered when element is not in sticky scroll widget");this.container.focus(),this.setFocus(s);return}if(!this.state||this.focusedIndex<0)throw new Error("Context menu key should not be triggered when focus is not in sticky scroll widget");const r=this.state.stickyNodes[this.focusedIndex].node.element,o=this.elements[this.focusedIndex];this._onContextMenu.fire({element:r,anchor:o,browserEvent:t.browserEvent,isStickyScroll:!0})}onKeyDown(t){if(this.domHasFocus&&this.state){if(t.key==="ArrowUp")this.setFocusedElement(Math.max(0,this.focusedIndex-1)),t.preventDefault(),t.stopPropagation();else if(t.key==="ArrowDown"||t.key==="ArrowRight"){if(this.focusedIndex>=this.state.count-1){const n=this.state.stickyNodes[this.state.count-1].startIndex+1;this.view.domFocus(),this.view.setFocus([n]),this.scrollNodeUnderWidget(n,this.state)}else this.setFocusedElement(this.focusedIndex+1);t.preventDefault(),t.stopPropagation()}}}onMouseDown(t){const n=t.browserEvent.target;!iW(n)&&!nV(n)||(t.browserEvent.preventDefault(),t.browserEvent.stopPropagation())}updateElements(t,n){if(n&&n.count===0)throw new Error("Sticky scroll state must be undefined when there are no sticky nodes");if(n&&n.count!==t.length)throw new Error("Sticky scroll focus received illigel state");const i=this.focusedIndex;if(this.removeFocus(),this.elements=t,this.state=n,n){const r=Jp(i,0,n.count-1);this.setFocus(r)}else this.domHasFocus&&this.view.domFocus();this.container.tabIndex=n?0:-1}setFocusedElement(t){const n=this.state;if(!n)throw new Error("Cannot set focus when state is undefined");if(this.setFocus(t),!(t<n.count-1)&&n.lastNodePartiallyVisible()){const i=n.stickyNodes[t];this.scrollNodeUnderWidget(i.endIndex+1,n)}}scrollNodeUnderWidget(t,n){const i=n.stickyNodes[n.count-1],r=n.count>1?n.stickyNodes[n.count-2]:void 0,o=this.view.getElementTop(t),s=r?r.position+r.height+i.height:i.height;this.view.scrollTop=o-s}domFocus(){if(!this.state)throw new Error("Cannot focus when state is undefined");this.container.focus()}focusedLast(){return this.state?this.view.getHTMLElement().classList.contains("sticky-scroll-focused"):!1}removeFocus(){this.focusedIndex!==-1&&(this.toggleElementFocus(this.elements[this.focusedIndex],!1),this.focusedIndex=-1)}setFocus(t){if(0>t)throw new Error("addFocus() can not remove focus");if(!this.state&&t>=0)throw new Error("Cannot set focus index when state is undefined");if(this.state&&t>=this.state.count)throw new Error("Cannot set focus index to an index that does not exist");const n=this.focusedIndex;n>=0&&this.toggleElementFocus(this.elements[n],!1),t>=0&&this.toggleElementFocus(this.elements[t],!0),this.focusedIndex=t}toggleElementFocus(t,n){this.toggleElementActiveFocus(t,n&&this.domHasFocus),this.toggleElementPassiveFocus(t,n)}toggleCurrentElementActiveFocus(t){this.focusedIndex!==-1&&this.toggleElementActiveFocus(this.elements[this.focusedIndex],t)}toggleElementActiveFocus(t,n){t.classList.toggle("focused",n)}toggleElementPassiveFocus(t,n){t.classList.toggle("passive-focused",n)}toggleStickyScrollFocused(t){this.view.getHTMLElement().classList.toggle("sticky-scroll-focused",t)}onFocus(){if(!this.state||this.elements.length===0)throw new Error("Cannot focus when state is undefined or elements are empty");this.domHasFocus=!0,this.toggleStickyScrollFocused(!0),this.toggleCurrentElementActiveFocus(!0),this.focusedIndex===-1&&this.setFocus(0)}onBlur(){this.domHasFocus=!1,this.toggleCurrentElementActiveFocus(!1)}dispose(){this.toggleStickyScrollFocused(!1),this._onDidChangeHasFocus.fire(!1),super.dispose()}},oee=class{get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}constructor(t,n){this.getFirstViewElementWithTrait=t,this.identityProvider=n,this.nodes=[],this._onDidChange=new bt,this.onDidChange=this._onDidChange.event}set(t,n){!n?.__forceEvent&&vl(this.nodes,t)||this._set(t,!1,n)}_set(t,n,i){if(this.nodes=[...t],this.elements=void 0,this._nodeSet=void 0,!n){const r=this;this._onDidChange.fire({get elements(){return r.get()},browserEvent:i})}}get(){return this.elements||(this.elements=this.nodes.map(t=>t.element)),[...this.elements]}getNodes(){return this.nodes}has(t){return this.nodeSet.has(t)}onDidModelSplice({insertedNodes:t,deletedNodes:n}){if(!this.identityProvider){const l=this.createNodeSet(),c=u=>l.delete(u);n.forEach(u=>qse(u,c)),this.set([...l.values()]);return}const i=new Set,r=l=>i.add(this.identityProvider.getId(l.element).toString());n.forEach(l=>qse(l,r));const o=new Map,s=l=>o.set(this.identityProvider.getId(l.element).toString(),l);t.forEach(l=>qse(l,s));const a=[];for(const l of this.nodes){const c=this.identityProvider.getId(l.element).toString();if(!i.has(c))a.push(l);else{const d=o.get(c);d&&d.visible&&a.push(d)}}if(this.nodes.length>0&&a.length===0){const l=this.getFirstViewElementWithTrait();l&&a.push(l)}this._set(a,!0)}createNodeSet(){const t=new Set;for(const n of this.nodes)t.add(n);return t}},ght=class extends K4e{constructor(t,n,i){super(t),this.tree=n,this.stickyScrollProvider=i}onViewPointer(t){if(Jqt(t.browserEvent.target)||fI(t.browserEvent.target)||nW(t.browserEvent.target)||t.browserEvent.isHandledByList)return;const n=t.element;if(!n)return super.onViewPointer(t);if(this.isSelectionRangeChangeEvent(t)||this.isSelectionSingleChangeEvent(t))return super.onViewPointer(t);const i=t.browserEvent.target,r=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.browserEvent.offsetX<16,o=nV(t.browserEvent.target);let s=!1;if(o?s=!0:typeof this.tree.expandOnlyOnTwistieClick=="function"?s=this.tree.expandOnlyOnTwistieClick(n.element):s=!!this.tree.expandOnlyOnTwistieClick,o)this.handleStickyScrollMouseEvent(t,n);else{if(s&&!r&&t.browserEvent.detail!==2)return super.onViewPointer(t);if(!this.tree.expandOnDoubleClick&&t.browserEvent.detail===2)return super.onViewPointer(t)}if(n.collapsible&&(!o||r)){const a=this.tree.getNodeLocation(n),l=t.browserEvent.altKey;if(this.tree.setFocus([a]),this.tree.toggleCollapsed(a,l),r){t.browserEvent.isHandledByList=!0;return}}o||super.onViewPointer(t)}handleStickyScrollMouseEvent(t,n){if(J3n(t.browserEvent.target)||eHn(t.browserEvent.target))return;const i=this.stickyScrollProvider();if(!i)throw new Error("Sticky scroll controller not found");const r=this.list.indexOf(n),o=this.list.getElementTop(r),s=i.nodePositionTopBelowWidget(n);this.tree.scrollTop=o-s,this.list.domFocus(),this.list.setFocus([r]),this.list.setSelection([r])}onDoubleClick(t){t.browserEvent.target.classList.contains("monaco-tl-twistie")||!this.tree.expandOnDoubleClick||t.browserEvent.isHandledByList||super.onDoubleClick(t)}onMouseDown(t){const n=t.browserEvent.target;if(!iW(n)&&!nV(n)){super.onMouseDown(t);return}}onContextMenu(t){const n=t.browserEvent.target;if(!iW(n)&&!nV(n)){super.onContextMenu(t);return}}},mht=class extends tv{constructor(t,n,i,r,o,s,a,l){super(t,n,i,r,l),this.focusTrait=o,this.selectionTrait=s,this.anchorTrait=a}createMouseController(t){return new ght(this,t.tree,t.stickyScrollProvider)}splice(t,n,i=[]){if(super.splice(t,n,i),i.length===0)return;const r=[],o=[];let s;i.forEach((a,l)=>{this.focusTrait.has(a)&&r.push(t+l),this.selectionTrait.has(a)&&o.push(t+l),this.anchorTrait.has(a)&&(s=t+l)}),r.length>0&&super.setFocus(BD([...super.getFocus(),...r])),o.length>0&&super.setSelection(BD([...super.getSelection(),...o])),typeof s=="number"&&super.setAnchor(s)}setFocus(t,n,i=!1){super.setFocus(t,n),i||this.focusTrait.set(t.map(r=>this.element(r)),n)}setSelection(t,n,i=!1){super.setSelection(t,n),i||this.selectionTrait.set(t.map(r=>this.element(r)),n)}setAnchor(t,n=!1){super.setAnchor(t),n||(typeof t>"u"?this.anchorTrait.set([]):this.anchorTrait.set([this.element(t)]))}},lUe=class{get onDidScroll(){return this.view.onDidScroll}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return On.filter(On.map(this.view.onMouseDblClick,ree),t=>t.target!==MO.Filter)}get onMouseOver(){return On.map(this.view.onMouseOver,ree)}get onMouseOut(){return On.map(this.view.onMouseOut,ree)}get onContextMenu(){return On.any(On.filter(On.map(this.view.onContextMenu,KWn),t=>!t.isStickyScroll),this.stickyScrollController?.onContextMenu??On.None)}get onPointer(){return On.map(this.view.onPointer,ree)}get onKeyDown(){return this.view.onKeyDown}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return On.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){return this.findController?.mode??eD.Highlight}set findMode(t){this.findController&&(this.findController.mode=t)}get findMatchType(){return this.findController?.matchType??pO.Fuzzy}set findMatchType(t){this.findController&&(this.findController.matchType=t)}get expandOnDoubleClick(){return typeof this._options.expandOnDoubleClick>"u"?!0:this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return typeof this._options.expandOnlyOnTwistieClick>"u"?!0:this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}constructor(t,n,i,r,o={}){this._user=t,this._options=o,this.eventBufferer=new p7,this.onDidChangeFindOpenState=On.None,this.onDidChangeStickyScrollFocused=On.None,this.disposables=new Jt,this._onWillRefilter=new bt,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new bt,this.treeDelegate=new vde(i);const s=new ARe,a=new ARe,l=this.disposables.add(new aht(a.event)),c=new Xpe;this.renderers=r.map(p=>new lht(p,()=>this.model,s.event,l,c,o));for(const p of this.renderers)this.disposables.add(p);let u;o.keyboardNavigationLabelProvider&&(u=new cht(this,o.keyboardNavigationLabelProvider,o.filter),o={...o,filter:u},this.disposables.add(u)),this.focus=new oee(()=>this.view.getFocusedElements()[0],o.identityProvider),this.selection=new oee(()=>this.view.getSelectedElements()[0],o.identityProvider),this.anchor=new oee(()=>this.view.getAnchorElement(),o.identityProvider),this.view=new mht(t,n,this.treeDelegate,this.renderers,this.focus,this.selection,this.anchor,{...qWn(()=>this.model,o),tree:this,stickyScrollProvider:()=>this.stickyScrollController}),this.model=this.createModel(t,this.view,o),s.input=this.model.onDidChangeCollapseState;const d=On.forEach(this.model.onDidSplice,p=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(p),this.selection.onDidModelSplice(p)})},this.disposables);d(()=>null,null,this.disposables);const h=this.disposables.add(new bt),f=this.disposables.add(new j0(0));if(this.disposables.add(On.any(d,this.focus.onDidChange,this.selection.onDidChange)(()=>{f.trigger(()=>{const p=new Set;for(const g of this.focus.getNodes())p.add(g);for(const g of this.selection.getNodes())p.add(g);h.fire([...p.values()])})})),a.input=h.event,o.keyboardSupport!==!1){const p=On.chain(this.view.onKeyDown,g=>g.filter(m=>!fI(m.target)).map(m=>new Sa(m)));On.chain(p,g=>g.filter(m=>m.keyCode===15))(this.onLeftArrow,this,this.disposables),On.chain(p,g=>g.filter(m=>m.keyCode===17))(this.onRightArrow,this,this.disposables),On.chain(p,g=>g.filter(m=>m.keyCode===10))(this.onSpace,this,this.disposables)}if((o.findWidgetEnabled??!0)&&o.keyboardNavigationLabelProvider&&o.contextViewProvider){const p=this.options.findWidgetStyles?{styles:this.options.findWidgetStyles}:void 0;this.findController=new uht(this,this.model,this.view,u,o.contextViewProvider,p),this.focusNavigationFilter=g=>this.findController.shouldAllowFocus(g),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType}else this.onDidChangeFindMode=On.None,this.onDidChangeFindMatchType=On.None;o.enableStickyScroll&&(this.stickyScrollController=new FCe(this,this.model,this.view,this.renderers,this.treeDelegate,o),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus),this.styleElement=V0(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===LB.Always)}updateOptions(t={}){this._options={...this._options,...t};for(const n of this.renderers)n.updateOptions(t);this.view.updateOptions(this._options),this.findController?.updateOptions(t),this.updateStickyScroll(t),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===LB.Always)}get options(){return this._options}updateStickyScroll(t){!this.stickyScrollController&&this._options.enableStickyScroll?(this.stickyScrollController=new FCe(this,this.model,this.view,this.renderers,this.treeDelegate,this._options),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus):this.stickyScrollController&&!this._options.enableStickyScroll&&(this.onDidChangeStickyScrollFocused=On.None,this.stickyScrollController.dispose(),this.stickyScrollController=void 0),this.stickyScrollController?.updateOptions(t)}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(t){this.view.scrollTop=t}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get ariaLabel(){return this.view.ariaLabel}set ariaLabel(t){this.view.ariaLabel=t}domFocus(){this.stickyScrollController?.focusedLast()?this.stickyScrollController.domFocus():this.view.domFocus()}layout(t,n){this.view.layout(t,n),wL(n)&&this.findController?.layout(n)}style(t){const n=`.${this.view.domId}`,i=[];t.treeIndentGuidesStroke&&(i.push(`.monaco-list${n}:hover .monaco-tl-indent > .indent-guide, .monaco-list${n}.always .monaco-tl-indent > .indent-guide  { border-color: ${t.treeInactiveIndentGuidesStroke}; }`),i.push(`.monaco-list${n} .monaco-tl-indent > .indent-guide.active { border-color: ${t.treeIndentGuidesStroke}; }`));const r=t.treeStickyScrollBackground??t.listBackground;r&&(i.push(`.monaco-list${n} .monaco-scrollable-element .monaco-tree-sticky-container { background-color: ${r}; }`),i.push(`.monaco-list${n} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row { background-color: ${r}; }`)),t.treeStickyScrollBorder&&i.push(`.monaco-list${n} .monaco-scrollable-element .monaco-tree-sticky-container { border-bottom: 1px solid ${t.treeStickyScrollBorder}; }`),t.treeStickyScrollShadow&&i.push(`.monaco-list${n} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-container-shadow { box-shadow: ${t.treeStickyScrollShadow} 0 6px 6px -6px inset; height: 3px; }`),t.listFocusForeground&&(i.push(`.monaco-list${n}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { color: ${t.listFocusForeground}; }`),i.push(`.monaco-list${n}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { color: inherit; }`));const o=_D(t.listFocusAndSelectionOutline,_D(t.listSelectionOutline,t.listFocusOutline??""));o&&(i.push(`.monaco-list${n}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused.selected { outline: 1px solid ${o}; outline-offset: -1px;}`),i.push(`.monaco-list${n}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused.selected { outline: inherit;}`)),t.listFocusOutline&&(i.push(`.monaco-list${n}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { outline: 1px solid ${t.listFocusOutline}; outline-offset: -1px; }`),i.push(`.monaco-list${n}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { outline: inherit; }`),i.push(`.monaco-workbench.context-menu-visible .monaco-list${n}.last-focused.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.passive-focused { outline: 1px solid ${t.listFocusOutline}; outline-offset: -1px; }`),i.push(`.monaco-workbench.context-menu-visible .monaco-list${n}.last-focused.sticky-scroll-focused .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`),i.push(`.monaco-workbench.context-menu-visible .monaco-list${n}.last-focused:not(.sticky-scroll-focused) .monaco-tree-sticky-container .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`)),this.styleElement.textContent=i.join(`
`),this.view.style(t)}getParentElement(t){const n=this.model.getParentNodeLocation(t);return this.model.getNode(n).element}getFirstElementChild(t){return this.model.getFirstElementChild(t)}getNode(t){return this.model.getNode(t)}getNodeLocation(t){return this.model.getNodeLocation(t)}collapse(t,n=!1){return this.model.setCollapsed(t,!0,n)}expand(t,n=!1){return this.model.setCollapsed(t,!1,n)}toggleCollapsed(t,n=!1){return this.model.setCollapsed(t,void 0,n)}isCollapsible(t){return this.model.isCollapsible(t)}setCollapsible(t,n){return this.model.setCollapsible(t,n)}isCollapsed(t){return this.model.isCollapsed(t)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(t,n){this.eventBufferer.bufferEvents(()=>{const i=t.map(o=>this.model.getNode(o));this.selection.set(i,n);const r=t.map(o=>this.model.getListIndex(o)).filter(o=>o>-1);this.view.setSelection(r,n,!0)})}getSelection(){return this.selection.get()}setFocus(t,n){this.eventBufferer.bufferEvents(()=>{const i=t.map(o=>this.model.getNode(o));this.focus.set(i,n);const r=t.map(o=>this.model.getListIndex(o)).filter(o=>o>-1);this.view.setFocus(r,n,!0)})}focusNext(t=1,n=!1,i,r=MA(i)&&i.altKey?void 0:this.focusNavigationFilter){this.view.focusNext(t,n,i,r)}focusPrevious(t=1,n=!1,i,r=MA(i)&&i.altKey?void 0:this.focusNavigationFilter){this.view.focusPrevious(t,n,i,r)}focusNextPage(t,n=MA(t)&&t.altKey?void 0:this.focusNavigationFilter){return this.view.focusNextPage(t,n)}focusPreviousPage(t,n=MA(t)&&t.altKey?void 0:this.focusNavigationFilter){return this.view.focusPreviousPage(t,n,()=>this.stickyScrollController?.height??0)}focusLast(t,n=MA(t)&&t.altKey?void 0:this.focusNavigationFilter){this.view.focusLast(t,n)}focusFirst(t,n=MA(t)&&t.altKey?void 0:this.focusNavigationFilter){this.view.focusFirst(t,n)}getFocus(){return this.focus.get()}reveal(t,n){this.model.expandTo(t);const i=this.model.getListIndex(t);if(i!==-1)if(!this.stickyScrollController)this.view.reveal(i,n);else{const r=this.stickyScrollController.nodePositionTopBelowWidget(this.getNode(t));this.view.reveal(i,n,r)}}onLeftArrow(t){t.preventDefault(),t.stopPropagation();const n=this.view.getFocusedElements();if(n.length===0)return;const i=n[0],r=this.model.getNodeLocation(i);if(!this.model.setCollapsed(r,!0)){const s=this.model.getParentNodeLocation(r);if(!s)return;const a=this.model.getListIndex(s);this.view.reveal(a),this.view.setFocus([a])}}onRightArrow(t){t.preventDefault(),t.stopPropagation();const n=this.view.getFocusedElements();if(n.length===0)return;const i=n[0],r=this.model.getNodeLocation(i);if(!this.model.setCollapsed(r,!1)){if(!i.children.some(l=>l.visible))return;const[s]=this.view.getFocus(),a=s+1;this.view.reveal(a),this.view.setFocus([a])}}onSpace(t){t.preventDefault(),t.stopPropagation();const n=this.view.getFocusedElements();if(n.length===0)return;const i=n[0],r=this.model.getNodeLocation(i),o=t.browserEvent.altKey;this.model.setCollapsed(r,void 0,o)}dispose(){xa(this.disposables),this.stickyScrollController?.dispose(),this.view.dispose()}}}}),Sge,cUe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/tree/objectTreeModel.js"(){aUe(),AY(),bg(),Sge=class{constructor(e,t,n={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new TYt(e,t,null,n),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,n.sorter&&(this.sorter={compare(i,r){return n.sorter.compare(i.element,r.element)}}),this.identityProvider=n.identityProvider}setChildren(e,t=Vo.empty(),n={}){const i=this.getElementLocation(e);this._setChildren(i,this.preserveCollapseState(t),n)}_setChildren(e,t=Vo.empty(),n){const i=new Set,r=new Set,o=a=>{if(a.element===null)return;const l=a;if(i.add(l.element),this.nodes.set(l.element,l),this.identityProvider){const c=this.identityProvider.getId(l.element).toString();r.add(c),this.nodesByIdentity.set(c,l)}n.onDidCreateNode?.(l)},s=a=>{if(a.element===null)return;const l=a;if(i.has(l.element)||this.nodes.delete(l.element),this.identityProvider){const c=this.identityProvider.getId(l.element).toString();r.has(c)||this.nodesByIdentity.delete(c)}n.onDidDeleteNode?.(l)};this.model.splice([...e,0],Number.MAX_VALUE,t,{...n,onDidCreateNode:o,onDidDeleteNode:s})}preserveCollapseState(e=Vo.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),Vo.map(e,t=>{let n=this.nodes.get(t.element);if(!n&&this.identityProvider){const o=this.identityProvider.getId(t.element).toString();n=this.nodesByIdentity.get(o)}if(!n){let o;return typeof t.collapsed>"u"?o=void 0:t.collapsed===f0.Collapsed||t.collapsed===f0.PreserveOrCollapsed?o=!0:t.collapsed===f0.Expanded||t.collapsed===f0.PreserveOrExpanded?o=!1:o=!!t.collapsed,{...t,children:this.preserveCollapseState(t.children),collapsed:o}}const i=typeof t.collapsible=="boolean"?t.collapsible:n.collapsible;let r;return typeof t.collapsed>"u"||t.collapsed===f0.PreserveOrCollapsed||t.collapsed===f0.PreserveOrExpanded?r=n.collapsed:t.collapsed===f0.Collapsed?r=!0:t.collapsed===f0.Expanded?r=!1:r=!!t.collapsed,{...t,collapsible:i,collapsed:r,children:this.preserveCollapseState(t.children)}})}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){const t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const n=this.getElementLocation(e);return this.model.setCollapsible(n,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,n){const i=this.getElementLocation(e);return this.model.setCollapsed(i,t,n)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(e===null)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new uv(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(e===null)throw new uv(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new uv(this.user,`Tree element not found: ${e}`);const n=this.model.getNodeLocation(t),i=this.model.getParentNodeLocation(n);return this.model.getNode(i).element}getElementLocation(e){if(e===null)return[];const t=this.nodes.get(e);if(!t)throw new uv(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}}});function Gse(e){const t=[e.element],n=e.incompressible||!1;return{element:{elements:t,incompressible:n},children:Vo.map(Vo.from(e.children),Gse),collapsible:e.collapsible,collapsed:e.collapsed}}function Kse(e){const t=[e.element],n=e.incompressible||!1;let i,r;for(;[r,i]=Vo.consume(Vo.from(e.children),2),!(r.length!==1||r[0].incompressible);)e=r[0],t.push(e.element);return{element:{elements:t,incompressible:n},children:Vo.map(Vo.concat(r,i),Kse),collapsible:e.collapsible,collapsed:e.collapsed}}function xBe(e,t=0){let n;return t<e.element.elements.length-1?n=[xBe(e,t+1)]:n=Vo.map(Vo.from(e.children),i=>xBe(i,0)),t===0&&e.element.incompressible?{element:e.element.elements[t],children:n,incompressible:!0,collapsible:e.collapsible,collapsed:e.collapsed}:{element:e.element.elements[t],children:n,collapsible:e.collapsible,collapsed:e.collapsed}}function vht(e){return xBe(e,0)}function NYt(e,t,n){return e.element===t?{...e,children:n}:{...e,children:Vo.map(Vo.from(e.children),i=>NYt(i,t,n))}}function YWn(e,t){return{splice(n,i,r){t.splice(n,i,r.map(o=>e.map(o)))},updateElementHeight(n,i){t.updateElementHeight(n,i)}}}function QWn(e,t){return{...t,identityProvider:t.identityProvider&&{getId(n){return t.identityProvider.getId(e(n))}},sorter:t.sorter&&{compare(n,i){return t.sorter.compare(n.elements[0],i.elements[0])}},filter:t.filter&&{filter(n,i){return t.filter.filter(e(n),i)}}}}var yht,bht,_ht,wht,PYt,ZWn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/tree/compressedObjectTreeModel.js"(){cUe(),AY(),rr(),Un(),bg(),yht=e=>({getId(t){return t.elements.map(n=>e.getId(n).toString()).join("\0")}}),bht=class{get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}constructor(e,t,n={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new Sge(e,t,n),this.enabled=typeof n.compressionEnabled>"u"?!0:n.compressionEnabled,this.identityProvider=n.identityProvider}setChildren(e,t=Vo.empty(),n){const i=n.diffIdentityProvider&&yht(n.diffIdentityProvider);if(e===null){const f=Vo.map(t,this.enabled?Kse:Gse);this._setChildren(null,f,{diffIdentityProvider:i,diffDepth:1/0});return}const r=this.nodes.get(e);if(!r)throw new uv(this.user,"Unknown compressed tree node");const o=this.model.getNode(r),s=this.model.getParentNodeLocation(r),a=this.model.getNode(s),l=vht(o),c=NYt(l,e,t),u=(this.enabled?Kse:Gse)(c),d=n.diffIdentityProvider?((f,p)=>n.diffIdentityProvider.getId(f)===n.diffIdentityProvider.getId(p)):void 0;if(vl(u.element.elements,o.element.elements,d)){this._setChildren(r,u.children||Vo.empty(),{diffIdentityProvider:i,diffDepth:1});return}const h=a.children.map(f=>f===o?u:f);this._setChildren(a.element,h,{diffIdentityProvider:i,diffDepth:o.depth-a.depth})}isCompressionEnabled(){return this.enabled}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const n=this.model.getNode().children,i=Vo.map(n,vht),r=Vo.map(i,e?Kse:Gse);this._setChildren(null,r,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,n){const i=new Set,r=s=>{for(const a of s.element.elements)i.add(a),this.nodes.set(a,s.element)},o=s=>{for(const a of s.element.elements)i.has(a)||this.nodes.delete(a)};this.model.setChildren(e,t,{...n,onDidCreateNode:r,onDidDeleteNode:o})}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if(typeof e>"u")return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return t===null?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),n=this.model.getParentNodeLocation(t);return n===null?null:n.elements[n.elements.length-1]}getFirstElementChild(e){const t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const n=this.getCompressedNode(e);return this.model.setCollapsible(n,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,n){const i=this.getCompressedNode(e);return this.model.setCollapsed(i,t,n)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(e===null)return null;const t=this.nodes.get(e);if(!t)throw new uv(this.user,`Tree element not found: ${e}`);return t}},_ht=e=>e[e.length-1],wht=class MYt{get element(){return this.node.element===null?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(t=>new MYt(this.unwrapper,t))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(t,n){this.unwrapper=t,this.node=n}},PYt=class{get onDidSplice(){return On.map(this.model.onDidSplice,({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map(n=>this.nodeMapper.map(n)),deletedNodes:t.map(n=>this.nodeMapper.map(n))}))}get onDidChangeCollapseState(){return On.map(this.model.onDidChangeCollapseState,({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t}))}get onDidChangeRenderNodeCount(){return On.map(this.model.onDidChangeRenderNodeCount,e=>this.nodeMapper.map(e))}constructor(e,t,n={}){this.rootRef=null,this.elementMapper=n.elementMapper||_ht;const i=r=>this.elementMapper(r.elements);this.nodeMapper=new mde(r=>new wht(i,r)),this.model=new bht(e,YWn(this.nodeMapper,t),QWn(i,n))}setChildren(e,t=Vo.empty(),n={}){this.model.setChildren(e,t,n)}isCompressionEnabled(){return this.model.isCompressionEnabled()}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){const t=this.model.getFirstElementChild(e);return t===null||typeof t>"u"?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,n){return this.model.setCollapsed(e,t,n)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}}});function XWn(e,t){return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(n){let i;try{i=e().getCompressedTreeNode(n)}catch{return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(n)}return i.element.elements.length===1?t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(n):t.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(i.element.elements)}}}}var Cht,yde,BCe,Sht,uUe,OYt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/tree/objectTree.js"(){DY(),ZWn(),cUe(),tF(),bg(),Cht=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},yde=class extends lUe{get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}constructor(e,t,n,i,r={}){super(e,t,n,i,r),this.user=e}setChildren(e,t=Vo.empty(),n){this.model.setChildren(e,t,n)}rerender(e){if(e===void 0){this.view.rerender();return}this.model.rerender(e)}hasElement(e){return this.model.has(e)}createModel(e,t,n){return new Sge(e,t,n)}},BCe=class{get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}constructor(e,t,n){this._compressedTreeNodeProvider=e,this.stickyScrollDelegate=t,this.renderer=n,this.templateId=n.templateId,n.onDidChangeTwistieState&&(this.onDidChangeTwistieState=n.onDidChangeTwistieState)}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,t,n,i){let r=this.stickyScrollDelegate.getCompressedNode(e);r||(r=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element)),r.element.elements.length===1?(n.compressedTreeNode=void 0,this.renderer.renderElement(e,t,n.data,i)):(n.compressedTreeNode=r,this.renderer.renderCompressedElements(r,t,n.data,i))}disposeElement(e,t,n,i){n.compressedTreeNode?this.renderer.disposeCompressedElements?.(n.compressedTreeNode,t,n.data,i):this.renderer.disposeElement?.(e,t,n.data,i)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return this.renderer.renderTwistie?this.renderer.renderTwistie(e,t):!1}},Cht([Hc],BCe.prototype,"compressedTreeNodeProvider",null),Sht=class{constructor(e){this.modelProvider=e,this.compressedStickyNodes=new Map}getCompressedNode(e){return this.compressedStickyNodes.get(e)}constrainStickyScrollNodes(e,t,n){if(this.compressedStickyNodes.clear(),e.length===0)return[];for(let i=0;i<e.length;i++){const r=e[i],o=r.position+r.height;if(i+1<e.length&&o+e[i+1].height>n||i>=t-1&&t<e.length){const a=e.slice(0,i),l=e.slice(i),c=this.compressStickyNodes(l);return[...a,c]}}return e}compressStickyNodes(e){if(e.length===0)throw new Error("Can't compress empty sticky nodes");const t=this.modelProvider();if(!t.isCompressionEnabled())return e[0];const n=[];for(let l=0;l<e.length;l++){const c=e[l],u=t.getCompressedTreeNode(c.node.element);if(u.element){if(l!==0&&u.element.incompressible)break;n.push(...u.element.elements)}}if(n.length<2)return e[0];const i=e[e.length-1],r={elements:n,incompressible:!1},o={...i.node,children:[],element:r},s=new Proxy(e[0].node,{}),a={node:s,startIndex:e[0].startIndex,endIndex:i.endIndex,position:e[0].position,height:e[0].height};return this.compressedStickyNodes.set(s,o),a}},uUe=class extends yde{constructor(e,t,n,i,r={}){const o=()=>this,s=new Sht(()=>this.model),a=i.map(l=>new BCe(o,s,l));super(e,t,n,a,{...XWn(o,r),stickyScrollDelegate:s})}setChildren(e,t=Vo.empty(),n){this.model.setChildren(e,t,n)}createModel(e,t,n){return new PYt(e,t,n)}updateOptions(e={}){super.updateOptions(e),typeof e.compressionEnabled<"u"&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}}});function jCe(e){return{...e,children:[],refreshPromise:void 0,stale:!0,slow:!1,forceExpanded:!1}}function EBe(e,t){return t.parent?t.parent===e?!0:EBe(e,t.parent):!1}function JWn(e,t){return e===t||EBe(e,t)||EBe(t,e)}function xht(e){return{browserEvent:e.browserEvent,elements:e.elements.map(t=>t.element)}}function Eht(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target}}function zCe(e){return e instanceof l9?new FYt(e):e}function RYt(e){return e&&{...e,collapseByDefault:!0,identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(t.element)}},dnd:e.dnd&&new BYt(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent(t){return e.multipleSelectionController.isSelectionSingleChangeEvent({...t,element:t.element})},isSelectionRangeChangeEvent(t){return e.multipleSelectionController.isSelectionRangeChangeEvent({...t,element:t.element})}},accessibilityProvider:e.accessibilityProvider&&{...e.accessibilityProvider,getPosInSet:void 0,getSetSize:void 0,getRole:e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",isChecked:e.accessibilityProvider.isChecked?t=>!!e.accessibilityProvider?.isChecked(t.element):void 0,getAriaLabel(t){return e.accessibilityProvider.getAriaLabel(t.element)},getWidgetAriaLabel(){return e.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider.getAriaLevel&&(t=>e.accessibilityProvider.getAriaLevel(t.element)),getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))},filter:e.filter&&{filter(t,n){return e.filter.filter(t.element,n)}},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{...e.keyboardNavigationLabelProvider,getKeyboardNavigationLabel(t){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}},sorter:void 0,expandOnlyOnTwistieClick:typeof e.expandOnlyOnTwistieClick>"u"?void 0:typeof e.expandOnlyOnTwistieClick!="function"?e.expandOnlyOnTwistieClick:(t=>e.expandOnlyOnTwistieClick(t.element)),defaultFindVisibility:t=>t.hasChildren&&t.stale?1:typeof e.defaultFindVisibility=="number"?e.defaultFindVisibility:typeof e.defaultFindVisibility>"u"?2:e.defaultFindVisibility(t.element)}}function ABe(e,t){t(e),e.children.forEach(n=>ABe(n,t))}function eUn(e){const t=e&&RYt(e);return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{...t.keyboardNavigationLabelProvider,getCompressedNodeKeyboardNavigationLabel(n){return e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(n.map(i=>i.element))}}}}function tUn(e){return typeof e=="boolean"?e?1:0:sUe(e)?cG(e.visibility):cG(e)}var Aht,Dht,FYt,BYt,DBe,Tht,kht,jYt,nUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/tree/asyncDataTree.js"(){bWe(),DY(),aUe(),OYt(),AY(),fr(),ia(),Ra(),Vi(),Un(),bg(),Nt(),as(),Aht=class zYt{get element(){return this.node.element.element}get children(){return this.node.children.map(t=>new zYt(t))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(t){this.node=t}},Dht=class{constructor(e,t,n){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,n,i){this.renderer.renderElement(this.nodeMapper.map(e),t,n.templateData,i)}renderTwistie(e,t){return e.slow?(t.classList.add(...lr.asClassNameArray(An.treeItemLoading)),!0):(t.classList.remove(...lr.asClassNameArray(An.treeItemLoading)),!1)}disposeElement(e,t,n,i){this.renderer.disposeElement?.(this.nodeMapper.map(e),t,n.templateData,i)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}},FYt=class extends l9{constructor(e){super(e.elements.map(t=>t.element)),this.data=e}},BYt=class{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(n=>n.element),t)}onDragStart(e,t){this.dnd.onDragStart?.(zCe(e),t)}onDragOver(e,t,n,i,r,o=!0){return this.dnd.onDragOver(zCe(e),t&&t.element,n,i,r)}drop(e,t,n,i,r){this.dnd.drop(zCe(e),t&&t.element,n,i,r)}onDragEnd(e){this.dnd.onDragEnd?.(e)}dispose(){this.dnd.dispose()}},DBe=class{get onDidScroll(){return this.tree.onDidScroll}get onDidChangeFocus(){return On.map(this.tree.onDidChangeFocus,xht)}get onDidChangeSelection(){return On.map(this.tree.onDidChangeSelection,xht)}get onMouseDblClick(){return On.map(this.tree.onMouseDblClick,Eht)}get onPointer(){return On.map(this.tree.onPointer,Eht)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeFindOpenState(){return this.tree.onDidChangeFindOpenState}get onDidChangeStickyScrollFocused(){return this.tree.onDidChangeStickyScrollFocused}get onDidDispose(){return this.tree.onDidDispose}constructor(e,t,n,i,r,o={}){this.user=e,this.dataSource=r,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new bt,this._onDidChangeNodeSlowState=new bt,this.nodeMapper=new mde(s=>new Aht(s)),this.disposables=new Jt,this.identityProvider=o.identityProvider,this.autoExpandSingleChildren=typeof o.autoExpandSingleChildren>"u"?!1:o.autoExpandSingleChildren,this.sorter=o.sorter,this.getDefaultCollapseState=s=>o.collapseByDefault?o.collapseByDefault(s)?f0.PreserveOrCollapsed:f0.PreserveOrExpanded:void 0,this.tree=this.createTree(e,t,n,i,o),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.onDidChangeFindMatchType=this.tree.onDidChangeFindMatchType,this.root=jCe({element:void 0,parent:null,hasChildren:!0,defaultCollapseState:void 0}),this.identityProvider&&(this.root={...this.root,id:null}),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}createTree(e,t,n,i,r){const o=new vde(n),s=i.map(l=>new Dht(l,this.nodeMapper,this._onDidChangeNodeSlowState.event)),a=RYt(r)||{};return new yde(e,t,o,s,a)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}get scrollHeight(){return this.tree.scrollHeight}get renderHeight(){return this.tree.renderHeight}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}async setInput(e,t){this.refreshPromises.forEach(i=>i.cancel()),this.refreshPromises.clear(),this.root.element=e;const n=t&&{viewState:t,focus:[],selection:[]};await this._updateChildren(e,!0,!1,n),n&&(this.tree.setFocus(n.focus),this.tree.setSelection(n.selection)),t&&typeof t.scrollTop=="number"&&(this.scrollTop=t.scrollTop)}async _updateChildren(e=this.root.element,t=!0,n=!1,i,r){if(typeof this.root.element>"u")throw new uv(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await On.toPromise(this._onDidRender.event));const o=this.getDataNode(e);if(await this.refreshAndRenderNode(o,t,i,r),n)try{this.tree.rerender(o)}catch{}}rerender(e){if(e===void 0||e===this.root.element){this.tree.rerender();return}const t=this.getDataNode(e);this.tree.rerender(t)}getNode(e=this.root.element){const t=this.getDataNode(e),n=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(n)}collapse(e,t=!1){const n=this.getDataNode(e);return this.tree.collapse(n===this.root?null:n,t)}async expand(e,t=!1){if(typeof this.root.element>"u")throw new uv(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await On.toPromise(this._onDidRender.event));const n=this.getDataNode(e);if(this.tree.hasElement(n)&&!this.tree.isCollapsible(n)||(n.refreshPromise&&(await this.root.refreshPromise,await On.toPromise(this._onDidRender.event)),n!==this.root&&!n.refreshPromise&&!this.tree.isCollapsed(n)))return!1;const i=this.tree.expand(n===this.root?null:n,t);return n.refreshPromise&&(await this.root.refreshPromise,await On.toPromise(this._onDidRender.event)),i}setSelection(e,t){const n=e.map(i=>this.getDataNode(i));this.tree.setSelection(n,t)}getSelection(){return this.tree.getSelection().map(t=>t.element)}setFocus(e,t){const n=e.map(i=>this.getDataNode(i));this.tree.setFocus(n,t)}getFocus(){return this.tree.getFocus().map(t=>t.element)}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getParentElement(e){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){const t=this.getDataNode(e),n=this.tree.getFirstElementChild(t===this.root?null:t);return n&&n.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new uv(this.user,`Data tree node not found: ${e}`);return t}async refreshAndRenderNode(e,t,n,i){await this.refreshNode(e,t,n),!this.disposables.isDisposed&&this.render(e,n,i)}async refreshNode(e,t,n){let i;if(this.subTreeRefreshPromises.forEach((r,o)=>{!i&&JWn(o,e)&&(i=r.then(()=>this.refreshNode(e,t,n)))}),i)return i;if(e!==this.root&&this.tree.getNode(e).collapsed){e.hasChildren=!!this.dataSource.hasChildren(e.element),e.stale=!0,this.setChildren(e,[],t,n);return}return this.doRefreshSubTree(e,t,n)}async doRefreshSubTree(e,t,n){let i;e.refreshPromise=new Promise(r=>i=r),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally(()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)});try{const r=await this.doRefreshNode(e,t,n);e.stale=!1,await MFe.settled(r.map(o=>this.doRefreshSubTree(o,t,n)))}finally{i()}}async doRefreshNode(e,t,n){e.hasChildren=!!this.dataSource.hasChildren(e.element);let i;if(!e.hasChildren)i=Promise.resolve(Vo.empty());else{const r=this.doGetChildren(e);if(Vit(r))i=Promise.resolve(r);else{const o=FD(800);o.then(()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)},s=>null),i=r.finally(()=>o.cancel())}}try{const r=await i;return this.setChildren(e,r,t,n)}catch(r){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),bb(r))return[];throw r}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;const n=this.dataSource.getChildren(e.element);return Vit(n)?this.processChildren(n):(t=vd(async()=>this.processChildren(await n)),this.refreshPromises.set(e,t),t.finally(()=>{this.refreshPromises.delete(e)}))}_onDidChangeCollapseState({node:e,deep:t}){e.element!==null&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(Mr))}setChildren(e,t,n,i){const r=[...t];if(e.children.length===0&&r.length===0)return[];const o=new Map,s=new Map;for(const c of e.children)o.set(c.element,c),this.identityProvider&&s.set(c.id,{node:c,collapsed:this.tree.hasElement(c)&&this.tree.isCollapsed(c)});const a=[],l=r.map(c=>{const u=!!this.dataSource.hasChildren(c);if(!this.identityProvider){const p=jCe({element:c,parent:e,hasChildren:u,defaultCollapseState:this.getDefaultCollapseState(c)});return u&&p.defaultCollapseState===f0.PreserveOrExpanded&&a.push(p),p}const d=this.identityProvider.getId(c).toString(),h=s.get(d);if(h){const p=h.node;return o.delete(p.element),this.nodes.delete(p.element),this.nodes.set(c,p),p.element=c,p.hasChildren=u,n?h.collapsed?(p.children.forEach(g=>ABe(g,m=>this.nodes.delete(m.element))),p.children.splice(0,p.children.length),p.stale=!0):a.push(p):u&&!h.collapsed&&a.push(p),p}const f=jCe({element:c,parent:e,id:d,hasChildren:u,defaultCollapseState:this.getDefaultCollapseState(c)});return i&&i.viewState.focus&&i.viewState.focus.indexOf(d)>-1&&i.focus.push(f),i&&i.viewState.selection&&i.viewState.selection.indexOf(d)>-1&&i.selection.push(f),(i&&i.viewState.expanded&&i.viewState.expanded.indexOf(d)>-1||u&&f.defaultCollapseState===f0.PreserveOrExpanded)&&a.push(f),f});for(const c of o.values())ABe(c,u=>this.nodes.delete(u.element));for(const c of l)this.nodes.set(c.element,c);return e.children.splice(0,e.children.length,...l),e!==this.root&&this.autoExpandSingleChildren&&l.length===1&&a.length===0&&(l[0].forceExpanded=!0,a.push(l[0])),a}render(e,t,n){const i=e.children.map(o=>this.asTreeElement(o,t)),r=n&&{...n,diffIdentityProvider:n.diffIdentityProvider&&{getId(o){return n.diffIdentityProvider.getId(o.element)}}};this.tree.setChildren(e===this.root?null:e,i,r),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let n;return t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?n=!1:e.forceExpanded?(n=!1,e.forceExpanded=!1):n=e.defaultCollapseState,{element:e,children:e.hasChildren?Vo.map(e.children,i=>this.asTreeElement(i,t)):[],collapsible:e.hasChildren,collapsed:n}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose(),this.tree.dispose()}},Tht=class VYt{get element(){return{elements:this.node.element.elements.map(t=>t.element),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map(t=>new VYt(t))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(t){this.node=t}},kht=class{constructor(e,t,n,i){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=n,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,n,i){this.renderer.renderElement(this.nodeMapper.map(e),t,n.templateData,i)}renderCompressedElements(e,t,n,i){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,n.templateData,i)}renderTwistie(e,t){return e.slow?(t.classList.add(...lr.asClassNameArray(An.treeItemLoading)),!0):(t.classList.remove(...lr.asClassNameArray(An.treeItemLoading)),!1)}disposeElement(e,t,n,i){this.renderer.disposeElement?.(this.nodeMapper.map(e),t,n.templateData,i)}disposeCompressedElements(e,t,n,i){this.renderer.disposeCompressedElements?.(this.compressibleNodeMapperProvider().map(e),t,n.templateData,i)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=xa(this.disposables)}},jYt=class extends DBe{constructor(e,t,n,i,r,o,s={}){super(e,t,n,r,o,s),this.compressionDelegate=i,this.compressibleNodeMapper=new mde(a=>new Tht(a)),this.filter=s.filter}createTree(e,t,n,i,r){const o=new vde(n),s=i.map(l=>new kht(l,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),a=eUn(r)||{};return new uUe(e,t,o,s,a)}asTreeElement(e,t){return{incompressible:this.compressionDelegate.isIncompressible(e.element),...super.asTreeElement(e,t)}}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t,n){if(!this.identityProvider)return super.render(e,t);const i=h=>this.identityProvider.getId(h).toString(),r=h=>{const f=new Set;for(const p of h){const g=this.tree.getCompressedTreeNode(p===this.root?null:p);if(g.element)for(const m of g.element.elements)f.add(i(m.element))}return f},o=r(this.tree.getSelection()),s=r(this.tree.getFocus());super.render(e,t,n);const a=this.getSelection();let l=!1;const c=this.getFocus();let u=!1;const d=h=>{const f=h.element;if(f)for(let p=0;p<f.elements.length;p++){const g=i(f.elements[p].element),m=f.elements[f.elements.length-1].element;o.has(g)&&a.indexOf(m)===-1&&(a.push(m),l=!0),s.has(g)&&c.indexOf(m)===-1&&(c.push(m),u=!0)}h.children.forEach(d)};d(this.tree.getCompressedTreeNode(e===this.root?null:e)),l&&this.setSelection(a),u&&this.setFocus(c)}processChildren(e){return this.filter&&(e=Vo.filter(e,t=>{const n=this.filter.filter(t,1),i=tUn(n);if(i===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return i===1})),super.processChildren(e)}}}}),HYt,iUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/tree/dataTree.js"(){DY(),cUe(),HYt=class extends lUe{constructor(e,t,n,i,r,o={}){super(e,t,n,i,o),this.user=e,this.dataSource=r,this.identityProvider=o.identityProvider}createModel(e,t,n){return new Sge(e,t,n)}}}}),lW,TBe,kBe,dUe,TY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkeys.js"(){Xr(),bn(),er(),new Qn("isMac",xo,R("isMac","Whether the operating system is macOS")),new Qn("isLinux",Wf,R("isLinux","Whether the operating system is Linux")),lW=new Qn("isWindows",Ch,R("isWindows","Whether the operating system is Windows")),TBe=new Qn("isWeb",_L,R("isWeb","Whether the platform is a web browser")),new Qn("isMacNative",xo&&!_L,R("isMacNative","Whether the operating system is macOS on a non-browser platform")),new Qn("isIOS",Z_,R("isIOS","Whether the operating system is iOS")),new Qn("isMobile",CVe,R("isMobile","Whether the platform is a mobile web browser")),new Qn("isDevelopment",!1,!0),new Qn("productQualityType","",R("productQualityType","Quality type of VS Code")),kBe="inputFocus",dUe=new Qn(kBe,!1,R("inputFocus","Whether keyboard focus is inside an input box"))}});function see(e,t){const n=e.createScoped(t.getHTMLElement());return IBe.bindTo(n),n}function aee(e,t){const n=NB.bindTo(e),i=()=>{const r=t.scrollTop===0,o=t.scrollHeight-t.renderHeight-t.scrollTop<1;r&&o?n.set("both"):r?n.set("top"):o?n.set("bottom"):n.set("none")};return i(),t.onDidScroll(i)}function ES(e){return e.getValue(eI)==="alt"}function Yse(e,t){const n=e.get(co),i=e.get(Cs),r=new Jt;return[{...t,keyboardNavigationDelegate:{mightProducePrintableCharacter(s){return i.mightProducePrintableCharacter(s)}},smoothScrolling:!!n.getValue(r_),mouseWheelScrollSensitivity:n.getValue(g1),fastScrollSensitivity:n.getValue(m1),multipleSelectionController:t.multipleSelectionController??r.add(new qYt(n)),keyboardNavigationEventFilter:rUn(i),scrollByPage:!!n.getValue(i_)},r]}function rUn(e){let t=!1;return n=>{if(n.toKeyCodeChord().isModifierKey())return!1;if(t)return t=!1,!1;const i=e.softDispatch(n,n.target);return i.kind===1?(t=!0,!1):(t=!1,i.kind===0)}}function WYt(e){const t=e.getValue(Qse);if(t==="highlight")return eD.Highlight;if(t==="filter")return eD.Filter;const n=e.getValue(cW);if(n==="simple"||n==="highlight")return eD.Highlight;if(n==="filter")return eD.Filter}function UYt(e){const t=e.getValue(Xse);if(t==="fuzzy")return pO.Fuzzy;if(t==="contiguous")return pO.Contiguous}function fV(e,t){const n=e.get(co),i=e.get(Jx),r=e.get(ur),o=e.get(ji),s=()=>{const h=r.getContextKeyValue(NBe);if(h==="automatic")return sx.Automatic;if(h==="trigger"||r.getContextKeyValue(PBe)===!1)return sx.Trigger;const p=n.getValue(Zse);if(p==="automatic")return sx.Automatic;if(p==="trigger")return sx.Trigger},a=t.horizontalScrolling!==void 0?t.horizontalScrolling:!!n.getValue(o0),[l,c]=o.invokeFunction(Yse,t),u=t.paddingBottom,d=t.renderIndentGuides!==void 0?t.renderIndentGuides:n.getValue(uW);return{getTypeNavigationMode:s,disposable:c,options:{keyboardSupport:!1,...l,indent:typeof n.getValue(u6)=="number"?n.getValue(u6):void 0,renderIndentGuides:d,smoothScrolling:!!n.getValue(r_),defaultFindMode:WYt(n),defaultFindMatchType:UYt(n),horizontalScrolling:a,scrollByPage:!!n.getValue(i_),paddingBottom:u,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:t.expandOnlyOnTwistieClick??n.getValue(dW)==="doubleClick",contextViewProvider:i,findWidgetStyles:mGt,enableStickyScroll:!!n.getValue(hW),stickyScrollMaxItemCount:Number(n.getValue(fW))}}}var AS,za,c0,$Yt,NB,IBe,VCe,pV,LBe,lee,cee,uee,gV,Iht,bde,Lht,_de,Nht,Pht,NBe,PBe,eI,mV,o0,Qse,Zse,cW,i_,Xse,u6,uW,r_,g1,m1,dW,hW,fW,qYt,HCe,WCe,UCe,dee,$Ce,Mht,Oht,Jse,qCe,GCe,eae,KCe,wk,Rht,xge=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/list/browser/listService.js"(){Fn(),jWn(),BN(),UWn(),DY(),nUn(),iUn(),OYt(),Un(),Nt(),bn(),sa(),gT(),er(),TY(),xg(),li(),tl(),Fu(),wT(),AS=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},za=function(e,t){return function(n,i){t(n,i,e)}},c0=Ao("listService"),$Yt=class{get lastFocusedList(){return this._lastFocusedWidget}constructor(){this.disposables=new Jt,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}setLastFocusedList(e){e!==this._lastFocusedWidget&&(this._lastFocusedWidget?.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,this._lastFocusedWidget?.getHTMLElement().classList.add("last-focused"))}register(e,t){if(this._hasCreatedStyleController||(this._hasCreatedStyleController=!0,new Y4e(V0(),"").style(CI)),this.lists.some(i=>i.widget===e))throw new Error("Cannot register the same widget multiple times");const n={widget:e,extraContextKeys:t};return this.lists.push(n),Sue(e.getHTMLElement())&&this.setLastFocusedList(e),z_(e.onDidFocus(()=>this.setLastFocusedList(e)),zi(()=>this.lists.splice(this.lists.indexOf(n),1)),e.onDidDispose(()=>{this.lists=this.lists.filter(i=>i!==n),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)}))}dispose(){this.disposables.dispose()}},NB=new Qn("listScrollAtBoundary","none"),nn.or(NB.isEqualTo("top"),NB.isEqualTo("both")),nn.or(NB.isEqualTo("bottom"),NB.isEqualTo("both")),IBe=new Qn("listFocus",!0),VCe=new Qn("treestickyScrollFocused",!1),pV=new Qn("listSupportsMultiselect",!0),LBe=nn.and(IBe,nn.not(kBe),VCe.negate()),lee=new Qn("listHasSelectionOrFocus",!1),cee=new Qn("listDoubleSelection",!1),uee=new Qn("listMultiSelection",!1),gV=new Qn("listSelectionNavigation",!1),Iht=new Qn("listSupportsFind",!0),bde=new Qn("treeElementCanCollapse",!1),Lht=new Qn("treeElementHasParent",!1),_de=new Qn("treeElementCanExpand",!1),Nht=new Qn("treeElementHasChild",!1),Pht=new Qn("treeFindOpen",!1),NBe="listTypeNavigationMode",PBe="listAutomaticKeyboardNavigation",eI="workbench.list.multiSelectModifier",mV="workbench.list.openMode",o0="workbench.list.horizontalScrolling",Qse="workbench.list.defaultFindMode",Zse="workbench.list.typeNavigationMode",cW="workbench.list.keyboardNavigation",i_="workbench.list.scrollByPage",Xse="workbench.list.defaultFindMatchType",u6="workbench.tree.indent",uW="workbench.tree.renderIndentGuides",r_="workbench.list.smoothScrolling",g1="workbench.list.mouseWheelScrollSensitivity",m1="workbench.list.fastScrollSensitivity",dW="workbench.tree.expandMode",hW="workbench.tree.enableStickyScroll",fW="workbench.tree.stickyScrollMaxItemCount",qYt=class extends St{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=ES(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(eI)&&(this.useAltAsMultipleSelectionModifier=ES(this.configurationService))}))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:eGt(e)}isSelectionRangeChangeEvent(e){return tGt(e)}},HCe=class extends tv{constructor(t,n,i,r,o,s,a,l,c){const u=typeof o.horizontalScrolling<"u"?o.horizontalScrolling:!!l.getValue(o0),[d,h]=c.invokeFunction(Yse,o);super(t,n,i,r,{keyboardSupport:!1,...d,horizontalScrolling:u}),this.disposables.add(h),this.contextKeyService=see(s,this),this.disposables.add(aee(this.contextKeyService,this)),this.listSupportsMultiSelect=pV.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(o.multipleSelectionSupport!==!1),gV.bindTo(this.contextKeyService).set(!!o.selectionNavigation),this.listHasSelectionOrFocus=lee.bindTo(this.contextKeyService),this.listDoubleSelection=cee.bindTo(this.contextKeyService),this.listMultiSelection=uee.bindTo(this.contextKeyService),this.horizontalScrolling=o.horizontalScrolling,this._useAltAsMultipleSelectionModifier=ES(l),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(o.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const p=this.getSelection(),g=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(p.length>0||g.length>0),this.listMultiSelection.set(p.length>1),this.listDoubleSelection.set(p.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{const p=this.getSelection(),g=this.getFocus();this.listHasSelectionOrFocus.set(p.length>0||g.length>0)})),this.disposables.add(l.onDidChangeConfiguration(p=>{p.affectsConfiguration(eI)&&(this._useAltAsMultipleSelectionModifier=ES(l));let g={};if(p.affectsConfiguration(o0)&&this.horizontalScrolling===void 0){const m=!!l.getValue(o0);g={...g,horizontalScrolling:m}}if(p.affectsConfiguration(i_)){const m=!!l.getValue(i_);g={...g,scrollByPage:m}}if(p.affectsConfiguration(r_)){const m=!!l.getValue(r_);g={...g,smoothScrolling:m}}if(p.affectsConfiguration(g1)){const m=l.getValue(g1);g={...g,mouseWheelScrollSensitivity:m}}if(p.affectsConfiguration(m1)){const m=l.getValue(m1);g={...g,fastScrollSensitivity:m}}Object.keys(g).length>0&&this.updateOptions(g)})),this.navigator=new $Ce(this,{configurationService:l,...o}),this.disposables.add(this.navigator)}updateOptions(t){super.updateOptions(t),t.overrideStyles!==void 0&&this.updateStyles(t.overrideStyles),t.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!t.multipleSelectionSupport)}updateStyles(t){this.style(t?PO(t):CI)}},HCe=AS([za(5,ur),za(6,c0),za(7,co),za(8,ji)],HCe),WCe=class extends EYt{constructor(t,n,i,r,o,s,a,l,c){const u=typeof o.horizontalScrolling<"u"?o.horizontalScrolling:!!l.getValue(o0),[d,h]=c.invokeFunction(Yse,o);super(t,n,i,r,{keyboardSupport:!1,...d,horizontalScrolling:u}),this.disposables=new Jt,this.disposables.add(h),this.contextKeyService=see(s,this),this.disposables.add(aee(this.contextKeyService,this.widget)),this.horizontalScrolling=o.horizontalScrolling,this.listSupportsMultiSelect=pV.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(o.multipleSelectionSupport!==!1),gV.bindTo(this.contextKeyService).set(!!o.selectionNavigation),this._useAltAsMultipleSelectionModifier=ES(l),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(o.overrideStyles),this.disposables.add(l.onDidChangeConfiguration(p=>{p.affectsConfiguration(eI)&&(this._useAltAsMultipleSelectionModifier=ES(l));let g={};if(p.affectsConfiguration(o0)&&this.horizontalScrolling===void 0){const m=!!l.getValue(o0);g={...g,horizontalScrolling:m}}if(p.affectsConfiguration(i_)){const m=!!l.getValue(i_);g={...g,scrollByPage:m}}if(p.affectsConfiguration(r_)){const m=!!l.getValue(r_);g={...g,smoothScrolling:m}}if(p.affectsConfiguration(g1)){const m=l.getValue(g1);g={...g,mouseWheelScrollSensitivity:m}}if(p.affectsConfiguration(m1)){const m=l.getValue(m1);g={...g,fastScrollSensitivity:m}}Object.keys(g).length>0&&this.updateOptions(g)})),this.navigator=new $Ce(this,{configurationService:l,...o}),this.disposables.add(this.navigator)}updateOptions(t){super.updateOptions(t),t.overrideStyles!==void 0&&this.updateStyles(t.overrideStyles),t.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!t.multipleSelectionSupport)}updateStyles(t){this.style(t?PO(t):CI)}dispose(){this.disposables.dispose(),super.dispose()}},WCe=AS([za(5,ur),za(6,c0),za(7,co),za(8,ji)],WCe),UCe=class extends DYt{constructor(t,n,i,r,o,s,a,l,c,u){const d=typeof s.horizontalScrolling<"u"?s.horizontalScrolling:!!c.getValue(o0),[h,f]=u.invokeFunction(Yse,s);super(t,n,i,r,o,{keyboardSupport:!1,...h,horizontalScrolling:d}),this.disposables.add(f),this.contextKeyService=see(a,this),this.disposables.add(aee(this.contextKeyService,this)),this.listSupportsMultiSelect=pV.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(s.multipleSelectionSupport!==!1),gV.bindTo(this.contextKeyService).set(!!s.selectionNavigation),this.listHasSelectionOrFocus=lee.bindTo(this.contextKeyService),this.listDoubleSelection=cee.bindTo(this.contextKeyService),this.listMultiSelection=uee.bindTo(this.contextKeyService),this.horizontalScrolling=s.horizontalScrolling,this._useAltAsMultipleSelectionModifier=ES(c),this.disposables.add(this.contextKeyService),this.disposables.add(l.register(this)),this.updateStyles(s.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const g=this.getSelection(),m=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(g.length>0||m.length>0),this.listMultiSelection.set(g.length>1),this.listDoubleSelection.set(g.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{const g=this.getSelection(),m=this.getFocus();this.listHasSelectionOrFocus.set(g.length>0||m.length>0)})),this.disposables.add(c.onDidChangeConfiguration(g=>{g.affectsConfiguration(eI)&&(this._useAltAsMultipleSelectionModifier=ES(c));let m={};if(g.affectsConfiguration(o0)&&this.horizontalScrolling===void 0){const v=!!c.getValue(o0);m={...m,horizontalScrolling:v}}if(g.affectsConfiguration(i_)){const v=!!c.getValue(i_);m={...m,scrollByPage:v}}if(g.affectsConfiguration(r_)){const v=!!c.getValue(r_);m={...m,smoothScrolling:v}}if(g.affectsConfiguration(g1)){const v=c.getValue(g1);m={...m,mouseWheelScrollSensitivity:v}}if(g.affectsConfiguration(m1)){const v=c.getValue(m1);m={...m,fastScrollSensitivity:v}}Object.keys(m).length>0&&this.updateOptions(m)})),this.navigator=new Mht(this,{configurationService:c,...s}),this.disposables.add(this.navigator)}updateOptions(t){super.updateOptions(t),t.overrideStyles!==void 0&&this.updateStyles(t.overrideStyles),t.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!t.multipleSelectionSupport)}updateStyles(t){this.style(t?PO(t):CI)}dispose(){this.disposables.dispose(),super.dispose()}},UCe=AS([za(6,ur),za(7,c0),za(8,co),za(9,ji)],UCe),dee=class extends St{constructor(e,t){super(),this.widget=e,this._onDidOpen=this._register(new bt),this.onDidOpen=this._onDidOpen.event,this._register(On.filter(this.widget.onDidChangeSelection,n=>MA(n.browserEvent))(n=>this.onSelectionFromKeyboard(n))),this._register(this.widget.onPointer(n=>this.onPointer(n.element,n.browserEvent))),this._register(this.widget.onMouseDblClick(n=>this.onMouseDblClick(n.element,n.browserEvent))),typeof t?.openOnSingleClick!="boolean"&&t?.configurationService?(this.openOnSingleClick=t?.configurationService.getValue(mV)!=="doubleClick",this._register(t?.configurationService.onDidChangeConfiguration(n=>{n.affectsConfiguration(mV)&&(this.openOnSingleClick=t?.configurationService.getValue(mV)!=="doubleClick")}))):this.openOnSingleClick=t?.openOnSingleClick??!0}onSelectionFromKeyboard(e){if(e.elements.length!==1)return;const t=e.browserEvent,n=typeof t.preserveFocus=="boolean"?t.preserveFocus:!0,i=typeof t.pinned=="boolean"?t.pinned:!n;this._open(this.getSelectedElement(),n,i,!1,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick||t.detail===2)return;const i=t.button===1,r=!0,o=i,s=t.ctrlKey||t.metaKey||t.altKey;this._open(e,r,o,s,t)}onMouseDblClick(e,t){if(!t)return;const n=t.target;if(n.classList.contains("monaco-tl-twistie")||n.classList.contains("monaco-icon-label")&&n.classList.contains("folder-icon")&&t.offsetX<16)return;const r=!1,o=!0,s=t.ctrlKey||t.metaKey||t.altKey;this._open(e,r,o,s,t)}_open(e,t,n,i,r){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:n,revealIfVisible:!0},sideBySide:i,element:e,browserEvent:r})}},$Ce=class extends dee{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}},Mht=class extends dee{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}},Oht=class extends dee{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelection()[0]??void 0}},Jse=class extends yde{constructor(t,n,i,r,o,s,a,l,c){const{options:u,getTypeNavigationMode:d,disposable:h}=s.invokeFunction(fV,o);super(t,n,i,r,u),this.disposables.add(h),this.internals=new wk(this,o,d,o.overrideStyles,a,l,c),this.disposables.add(this.internals)}updateOptions(t){super.updateOptions(t),this.internals.updateOptions(t)}},Jse=AS([za(5,ji),za(6,ur),za(7,c0),za(8,co)],Jse),qCe=class extends uUe{constructor(t,n,i,r,o,s,a,l,c){const{options:u,getTypeNavigationMode:d,disposable:h}=s.invokeFunction(fV,o);super(t,n,i,r,u),this.disposables.add(h),this.internals=new wk(this,o,d,o.overrideStyles,a,l,c),this.disposables.add(this.internals)}updateOptions(t={}){super.updateOptions(t),t.overrideStyles&&this.internals.updateStyleOverrides(t.overrideStyles),this.internals.updateOptions(t)}},qCe=AS([za(5,ji),za(6,ur),za(7,c0),za(8,co)],qCe),GCe=class extends HYt{constructor(t,n,i,r,o,s,a,l,c,u){const{options:d,getTypeNavigationMode:h,disposable:f}=a.invokeFunction(fV,s);super(t,n,i,r,o,d),this.disposables.add(f),this.internals=new wk(this,s,h,s.overrideStyles,l,c,u),this.disposables.add(this.internals)}updateOptions(t={}){super.updateOptions(t),t.overrideStyles!==void 0&&this.internals.updateStyleOverrides(t.overrideStyles),this.internals.updateOptions(t)}},GCe=AS([za(6,ji),za(7,ur),za(8,c0),za(9,co)],GCe),eae=class extends DBe{get onDidOpen(){return this.internals.onDidOpen}constructor(t,n,i,r,o,s,a,l,c,u){const{options:d,getTypeNavigationMode:h,disposable:f}=a.invokeFunction(fV,s);super(t,n,i,r,o,d),this.disposables.add(f),this.internals=new wk(this,s,h,s.overrideStyles,l,c,u),this.disposables.add(this.internals)}updateOptions(t={}){super.updateOptions(t),t.overrideStyles&&this.internals.updateStyleOverrides(t.overrideStyles),this.internals.updateOptions(t)}},eae=AS([za(6,ji),za(7,ur),za(8,c0),za(9,co)],eae),KCe=class extends jYt{constructor(t,n,i,r,o,s,a,l,c,u,d){const{options:h,getTypeNavigationMode:f,disposable:p}=l.invokeFunction(fV,a);super(t,n,i,r,o,s,h),this.disposables.add(p),this.internals=new wk(this,a,f,a.overrideStyles,c,u,d),this.disposables.add(this.internals)}updateOptions(t){super.updateOptions(t),this.internals.updateOptions(t)}},KCe=AS([za(7,ji),za(8,ur),za(9,c0),za(10,co)],KCe),wk=class{get onDidOpen(){return this.navigator.onDidOpen}constructor(t,n,i,r,o,s,a){this.tree=t,this.disposables=[],this.contextKeyService=see(o,t),this.disposables.push(aee(this.contextKeyService,t)),this.listSupportsMultiSelect=pV.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(n.multipleSelectionSupport!==!1),gV.bindTo(this.contextKeyService).set(!!n.selectionNavigation),this.listSupportFindWidget=Iht.bindTo(this.contextKeyService),this.listSupportFindWidget.set(n.findWidgetEnabled??!0),this.hasSelectionOrFocus=lee.bindTo(this.contextKeyService),this.hasDoubleSelection=cee.bindTo(this.contextKeyService),this.hasMultiSelection=uee.bindTo(this.contextKeyService),this.treeElementCanCollapse=bde.bindTo(this.contextKeyService),this.treeElementHasParent=Lht.bindTo(this.contextKeyService),this.treeElementCanExpand=_de.bindTo(this.contextKeyService),this.treeElementHasChild=Nht.bindTo(this.contextKeyService),this.treeFindOpen=Pht.bindTo(this.contextKeyService),this.treeStickyScrollFocused=VCe.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=ES(a),this.updateStyleOverrides(r);const c=()=>{const d=t.getFocus()[0];if(!d)return;const h=t.getNode(d);this.treeElementCanCollapse.set(h.collapsible&&!h.collapsed),this.treeElementHasParent.set(!!t.getParentElement(d)),this.treeElementCanExpand.set(h.collapsible&&h.collapsed),this.treeElementHasChild.set(!!t.getFirstElementChild(d))},u=new Set;u.add(NBe),u.add(PBe),this.disposables.push(this.contextKeyService,s.register(t),t.onDidChangeSelection(()=>{const d=t.getSelection(),h=t.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(d.length>0||h.length>0),this.hasMultiSelection.set(d.length>1),this.hasDoubleSelection.set(d.length===2)})}),t.onDidChangeFocus(()=>{const d=t.getSelection(),h=t.getFocus();this.hasSelectionOrFocus.set(d.length>0||h.length>0),c()}),t.onDidChangeCollapseState(c),t.onDidChangeModel(c),t.onDidChangeFindOpenState(d=>this.treeFindOpen.set(d)),t.onDidChangeStickyScrollFocused(d=>this.treeStickyScrollFocused.set(d)),a.onDidChangeConfiguration(d=>{let h={};if(d.affectsConfiguration(eI)&&(this._useAltAsMultipleSelectionModifier=ES(a)),d.affectsConfiguration(u6)){const f=a.getValue(u6);h={...h,indent:f}}if(d.affectsConfiguration(uW)&&n.renderIndentGuides===void 0){const f=a.getValue(uW);h={...h,renderIndentGuides:f}}if(d.affectsConfiguration(r_)){const f=!!a.getValue(r_);h={...h,smoothScrolling:f}}if(d.affectsConfiguration(Qse)||d.affectsConfiguration(cW)){const f=WYt(a);h={...h,defaultFindMode:f}}if(d.affectsConfiguration(Zse)||d.affectsConfiguration(cW)){const f=i();h={...h,typeNavigationMode:f}}if(d.affectsConfiguration(Xse)){const f=UYt(a);h={...h,defaultFindMatchType:f}}if(d.affectsConfiguration(o0)&&n.horizontalScrolling===void 0){const f=!!a.getValue(o0);h={...h,horizontalScrolling:f}}if(d.affectsConfiguration(i_)){const f=!!a.getValue(i_);h={...h,scrollByPage:f}}if(d.affectsConfiguration(dW)&&n.expandOnlyOnTwistieClick===void 0&&(h={...h,expandOnlyOnTwistieClick:a.getValue(dW)==="doubleClick"}),d.affectsConfiguration(hW)){const f=a.getValue(hW);h={...h,enableStickyScroll:f}}if(d.affectsConfiguration(fW)){const f=Math.max(1,a.getValue(fW));h={...h,stickyScrollMaxItemCount:f}}if(d.affectsConfiguration(g1)){const f=a.getValue(g1);h={...h,mouseWheelScrollSensitivity:f}}if(d.affectsConfiguration(m1)){const f=a.getValue(m1);h={...h,fastScrollSensitivity:f}}Object.keys(h).length>0&&t.updateOptions(h)}),this.contextKeyService.onDidChangeContext(d=>{d.affectsSome(u)&&t.updateOptions({typeNavigationMode:i()})})),this.navigator=new Oht(t,{configurationService:a,...n}),this.disposables.push(this.navigator)}updateOptions(t){t.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!t.multipleSelectionSupport)}updateStyleOverrides(t){this.tree.style(t?PO(t):CI)}dispose(){this.disposables=xa(this.disposables)}},wk=AS([za(4,ur),za(5,c0),za(6,co)],wk),Rht=ml.as(Qy.Configuration),Rht.registerConfiguration({id:"workbench",order:7,title:R("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[eI]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[R("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),R("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:R({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[mV]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:R({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[o0]:{type:"boolean",default:!1,description:R("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[i_]:{type:"boolean",default:!1,description:R("list.scrollByPage","Controls whether clicks in the scrollbar scroll page by page.")},[u6]:{type:"number",default:8,minimum:4,maximum:40,description:R("tree indent setting","Controls tree indentation in pixels.")},[uW]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:R("render tree indent guides","Controls whether the tree should render indent guides.")},[r_]:{type:"boolean",default:!1,description:R("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[g1]:{type:"number",default:1,markdownDescription:R("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[m1]:{type:"number",default:5,markdownDescription:R("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[Qse]:{type:"string",enum:["highlight","filter"],enumDescriptions:[R("defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),R("defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:R("defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")},[cW]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[R("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),R("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),R("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:R("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:R("keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' and	'workbench.list.typeNavigationMode' instead.")},[Xse]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[R("defaultFindMatchTypeSettingKey.fuzzy","Use fuzzy matching when searching."),R("defaultFindMatchTypeSettingKey.contiguous","Use contiguous matching when searching.")],default:"fuzzy",description:R("defaultFindMatchTypeSettingKey","Controls the type of matching used when searching lists and trees in the workbench.")},[dW]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:R("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[hW]:{type:"boolean",default:!0,description:R("sticky scroll","Controls whether sticky scrolling is enabled in trees.")},[fW]:{type:"number",minimum:1,default:7,markdownDescription:R("sticky scroll maximum items","Controls the number of sticky elements displayed in the tree when {0} is enabled.","`#workbench.tree.enableStickyScroll#`")},[Zse]:{type:"string",enum:["automatic","trigger"],default:"automatic",markdownDescription:R("typeNavigationMode2","Controls how type navigation works in lists and trees in the workbench. When set to `trigger`, type navigation begins once the `list.triggerTypeNavigation` command is run.")}}})}}),oUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/iconLabel/iconlabel.css"(){}}),gO,GYt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/highlightedlabel/highlightedLabel.js"(){Fn(),_w(),Lh(),MN(),Nt(),bm(),gO=class KYt extends St{constructor(t,n){super(),this.options=n,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=n?.supportIcons??!1,this.domNode=hn(t,In("span.monaco-highlighted-label"))}get element(){return this.domNode}set(t,n=[],i="",r){t||(t=""),r&&(t=KYt.escapeNewLines(t,n)),!(this.didEverRender&&this.text===t&&this.title===i&&Ev(this.highlights,n))&&(this.text=t,this.title=i,this.highlights=n,this.render())}render(){const t=[];let n=0;for(const i of this.highlights){if(i.end===i.start)continue;if(n<i.start){const s=this.text.substring(n,i.start);this.supportIcons?t.push(...aL(s)):t.push(s),n=i.start}const r=this.text.substring(n,i.end),o=In("span.highlight",void 0,...this.supportIcons?aL(r):[r]);i.extraClasses&&o.classList.add(...i.extraClasses),t.push(o),n=i.end}if(n<this.text.length){const i=this.text.substring(n);this.supportIcons?t.push(...aL(i)):t.push(i)}if(xh(this.domNode,...t),this.options?.hoverDelegate?.showNativeHover)this.domNode.title=this.title;else if(!this.customHover&&this.title!==""){const i=this.options?.hoverDelegate??hg("mouse");this.customHover=this._register(GC().setupManagedHover(i,this.domNode,this.title))}else this.customHover&&this.customHover.update(this.title);this.didEverRender=!0}static escapeNewLines(t,n){let i=0,r=0;return t.replace(/\r\n|\r|\n/g,(o,s)=>{r=o===`\r
`?-1:0,s+=i;for(const a of n)a.end<=s||(a.start>=s&&(a.start+=r),a.end>=s&&(a.end+=r));return i+=r,"⏎"})}}}});function sUn(e,t,n){if(!n)return;let i=0;return e.map(r=>{const o={start:i,end:i+r.length},s=n.map(a=>Nf.intersect(o,a)).filter(a=>!Nf.isEmpty(a)).map(({start:a,end:l})=>({start:a-i,end:l-i}));return i=o.end+t.length,s})}var H5,uG,Fht,Bht,hUe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/iconLabel/iconLabel.js"(){oUn(),Fn(),GYt(),Nt(),bm(),pge(),Lh(),_w(),as(),P7(),H5=class{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set classNames(e){this.disposed||Ev(e,this._classNames)||(this._classNames=e,this._element.classList.value="",this._element.classList.add(...e))}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}},uG=class extends St{constructor(e,t){super(),this.customHovers=new Map,this.creationOptions=t,this.domNode=this._register(new H5(hn(e,In(".monaco-icon-label")))),this.labelContainer=hn(this.domNode.element,In(".monaco-icon-label-container")),this.nameContainer=hn(this.labelContainer,In("span.monaco-icon-name-container")),t?.supportHighlights||t?.supportIcons?this.nameNode=this._register(new Bht(this.nameContainer,!!t.supportIcons)):this.nameNode=new Fht(this.nameContainer),this.hoverDelegate=t?.hoverDelegate??hg("mouse")}get element(){return this.domNode.element}setLabel(e,t,n){const i=["monaco-icon-label"],r=["monaco-icon-label-container"];let o="";n&&(n.extraClasses&&i.push(...n.extraClasses),n.italic&&i.push("italic"),n.strikethrough&&i.push("strikethrough"),n.disabledCommand&&r.push("disabled"),n.title&&(typeof n.title=="string"?o+=n.title:o+=e));const s=this.domNode.element.querySelector(".monaco-icon-label-iconpath");if(n?.iconPath){let a;!s||!yd(s)?(a=In(".monaco-icon-label-iconpath"),this.domNode.element.prepend(a)):a=s,a.style.backgroundImage=lD(n?.iconPath)}else s&&s.remove();if(this.domNode.classNames=i,this.domNode.element.setAttribute("aria-label",o),this.labelContainer.classList.value="",this.labelContainer.classList.add(...r),this.setupHover(n?.descriptionTitle?this.labelContainer:this.element,n?.title),this.nameNode.setLabel(e,n),t||this.descriptionNode){const a=this.getOrCreateDescriptionNode();a instanceof gO?(a.set(t||"",n?n.descriptionMatches:void 0,void 0,n?.labelEscapeNewLines),this.setupHover(a.element,n?.descriptionTitle)):(a.textContent=t&&n?.labelEscapeNewLines?gO.escapeNewLines(t,[]):t||"",this.setupHover(a.element,n?.descriptionTitle||""),a.empty=!t)}if(n?.suffix||this.suffixNode){const a=this.getOrCreateSuffixNode();a.textContent=n?.suffix??""}}setupHover(e,t){const n=this.customHovers.get(e);if(n&&(n.dispose(),this.customHovers.delete(e)),!t){e.removeAttribute("title");return}if(this.hoverDelegate.showNativeHover)(function(r,o){sm(o)?r.title=tWe(o):o?.markdownNotSupportedFallback?r.title=o.markdownNotSupportedFallback:r.removeAttribute("title")})(e,t);else{const i=GC().setupManagedHover(this.hoverDelegate,e,t);i&&this.customHovers.set(e,i)}}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}getOrCreateSuffixNode(){if(!this.suffixNode){const e=this._register(new H5(q9n(this.nameContainer,In("span.monaco-icon-suffix-container"))));this.suffixNode=this._register(new H5(hn(e.element,In("span.label-suffix"))))}return this.suffixNode}getOrCreateDescriptionNode(){if(!this.descriptionNode){const e=this._register(new H5(hn(this.labelContainer,In("span.monaco-icon-description-container"))));this.creationOptions?.supportDescriptionHighlights?this.descriptionNode=this._register(new gO(hn(e.element,In("span.label-description")),{supportIcons:!!this.creationOptions.supportIcons})):this.descriptionNode=this._register(new H5(hn(e.element,In("span.label-description"))))}return this.descriptionNode}},Fht=class{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&Ev(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=hn(this.container,In("a.label-name",{id:t?.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let n=0;n<e.length;n++){const i=e[n],r=t?.domId&&`${t?.domId}_${n}`;hn(this.container,In("a.label-name",{id:r,"data-icon-label-count":e.length,"data-icon-label-index":n,role:"treeitem"},i)),n<e.length-1&&hn(this.container,In("span.label-separator",void 0,t?.separator||"/"))}}}},Bht=class extends St{constructor(e,t){super(),this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&Ev(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=this._register(new gO(hn(this.container,In("a.label-name",{id:t?.domId})),{supportIcons:this.supportIcons}))),this.singleLabel.set(e,t?.matches,void 0,t?.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const n=t?.separator||"/",i=sUn(e,n,t?.matches);for(let r=0;r<e.length;r++){const o=e[r],s=i?i[r]:void 0,a=t?.domId&&`${t?.domId}_${r}`,l=In("a.label-name",{id:a,"data-icon-label-count":e.length,"data-icon-label-index":r,role:"treeitem"});this._register(new gO(hn(this.container,l),{supportIcons:this.supportIcons})).set(o,s,void 0,t?.labelEscapeNewLines),r<e.length-1&&hn(l,In("span.label-separator",void 0,n))}}}}}}),aUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/keybindingLabel/keybindingLabel.css"(){}}),vV,fUe,kY,Ege=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/keybindingLabel/keybindingLabel.js"(){Fn(),_w(),Lh(),lWe(),Nt(),bm(),aUn(),bn(),vV=In,fUe={keybindingLabelBackground:void 0,keybindingLabelForeground:void 0,keybindingLabelBorder:void 0,keybindingLabelBottomBorder:void 0,keybindingLabelShadow:void 0},kY=class YYt extends St{constructor(t,n,i){super(),this.os=n,this.keyElements=new Set,this.options=i||Object.create(null);const r=this.options.keybindingLabelForeground;this.domNode=hn(t,vV(".monaco-keybinding")),r&&(this.domNode.style.color=r),this.hover=this._register(GC().setupManagedHover(hg("mouse"),this.domNode,"")),this.didEverRender=!1,t.appendChild(this.domNode)}get element(){return this.domNode}set(t,n){this.didEverRender&&this.keybinding===t&&YYt.areSame(this.matches,n)||(this.keybinding=t,this.matches=n,this.render())}render(){if(this.clear(),this.keybinding){const t=this.keybinding.getChords();t[0]&&this.renderChord(this.domNode,t[0],this.matches?this.matches.firstPart:null);for(let i=1;i<t.length;i++)hn(this.domNode,vV("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderChord(this.domNode,t[i],this.matches?this.matches.chordPart:null);const n=this.options.disableTitle??!1?void 0:this.keybinding.getAriaLabel()||void 0;this.hover.update(n),this.domNode.setAttribute("aria-label",n||"")}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0}clear(){Sh(this.domNode),this.keyElements.clear()}renderChord(t,n,i){const r=gge.modifierLabels[this.os];n.ctrlKey&&this.renderKey(t,r.ctrlKey,!!i?.ctrlKey,r.separator),n.shiftKey&&this.renderKey(t,r.shiftKey,!!i?.shiftKey,r.separator),n.altKey&&this.renderKey(t,r.altKey,!!i?.altKey,r.separator),n.metaKey&&this.renderKey(t,r.metaKey,!!i?.metaKey,r.separator);const o=n.keyLabel;o&&this.renderKey(t,o,!!i?.keyCode,"")}renderKey(t,n,i,r){hn(t,this.createKeyElement(n,i?".highlight":"")),r&&hn(t,vV("span.monaco-keybinding-key-separator",void 0,r))}renderUnbound(t){hn(t,this.createKeyElement(R("unbound","Unbound")))}createKeyElement(t,n=""){const i=vV("span.monaco-keybinding-key"+n,void 0,t);return this.keyElements.add(i),this.options.keybindingLabelBackground&&(i.style.backgroundColor=this.options.keybindingLabelBackground),this.options.keybindingLabelBorder&&(i.style.borderColor=this.options.keybindingLabelBorder),this.options.keybindingLabelBottomBorder&&(i.style.borderBottomColor=this.options.keybindingLabelBottomBorder),this.options.keybindingLabelShadow&&(i.style.boxShadow=`inset 0 -1px 0 ${this.options.keybindingLabelShadow}`),i}static areSame(t,n){return t===n||!t&&!n?!0:!!t&&!!n&&Ev(t.firstPart,n.firstPart)&&Ev(t.chordPart,n.chordPart)}}}});function lUn(e,t,n=!1){const i=e||"",r=t||"",o=MBe.value.collator.compare(i,r);return MBe.value.collatorIsNumeric&&o===0&&i!==r?i<r?-1:1:o}function cUn(e,t,n){const i=e.toLowerCase(),r=t.toLowerCase(),o=uUn(e,t,n);if(o)return o;const s=i.endsWith(n),a=r.endsWith(n);if(s!==a)return s?-1:1;const l=lUn(i,r);return l!==0?l:i.localeCompare(r)}function uUn(e,t,n){const i=e.toLowerCase(),r=t.toLowerCase(),o=i.startsWith(n),s=r.startsWith(n);if(o!==s)return o?-1:1;if(o&&s){if(i.length<r.length)return-1;if(i.length>r.length)return 1}return 0}var MBe,dUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/comparers.js"(){wE(),MBe=new lm(()=>{const e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric}}),new lm(()=>({collator:new Intl.Collator(void 0,{numeric:!0})})),new lm(()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})}))}});function hUn(e,t){const{text:n,iconOffsets:i}=t;if(!i||i.length===0)return jht(e,n);const r=$K(n," "),o=n.length-r.length,s=jht(e,r);if(s)for(const a of s){const l=i[a.start+o]+o;a.start+=l,a.end+=l}return s}function jht(e,t){const n=t.toLowerCase().indexOf(e.toLowerCase());return n!==-1?[{start:n,end:n+e.length}]:null}function fUn(e,t,n){const i=e.labelHighlights||[],r=t.labelHighlights||[];return i.length&&!r.length?-1:!i.length&&r.length?1:i.length===0&&r.length===0?0:cUn(e.saneSortLabel,t.saneSortLabel,n)}var yV,hee,YCe,$b,QCe,eh,DS,Ck,zht,Vht,ZCe,bV,XCe,PB,pUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/quickinput/browser/quickInputTree.js"(){var e,t;Fn(),Un(),bn(),li(),xge(),Ys(),Nt(),Hv(),mf(),Xr(),tF(),hUe(),Ege(),ww(),VC(),ss(),uYt(),wE(),P7(),dUn(),Ki(),DY(),fr(),Vi(),Cm(),xs(),rr(),yV=function(n,i,r,o){var s=arguments.length,a=s<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,r):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,i,r,o);else for(var c=n.length-1;c>=0;c--)(l=n[c])&&(a=(s<3?l(a):s>3?l(i,r,a):l(i,r))||a);return s>3&&a&&Object.defineProperty(i,r,a),a},hee=function(n,i){return function(r,o){i(r,o,n)}},$b=In,QCe=class{constructor(n,i,r){this.index=n,this.hasCheckbox=i,this._hidden=!1,this._init=new lm(()=>{const o=r.label??"",s=Qz(o).text.trim(),a=r.ariaLabel||[o,this.saneDescription,this.saneDetail].map(l=>vVn(l)).filter(l=>!!l).join(", ");return{saneLabel:o,saneSortLabel:s,saneAriaLabel:a}}),this._saneDescription=r.description,this._saneTooltip=r.tooltip}get saneLabel(){return this._init.value.saneLabel}get saneSortLabel(){return this._init.value.saneSortLabel}get saneAriaLabel(){return this._init.value.saneAriaLabel}get element(){return this._element}set element(n){this._element=n}get hidden(){return this._hidden}set hidden(n){this._hidden=n}get saneDescription(){return this._saneDescription}set saneDescription(n){this._saneDescription=n}get saneDetail(){return this._saneDetail}set saneDetail(n){this._saneDetail=n}get saneTooltip(){return this._saneTooltip}set saneTooltip(n){this._saneTooltip=n}get labelHighlights(){return this._labelHighlights}set labelHighlights(n){this._labelHighlights=n}get descriptionHighlights(){return this._descriptionHighlights}set descriptionHighlights(n){this._descriptionHighlights=n}get detailHighlights(){return this._detailHighlights}set detailHighlights(n){this._detailHighlights=n}},eh=class extends QCe{constructor(n,i,r,o,s,a){super(n,i,s),this.fireButtonTriggered=r,this._onChecked=o,this.item=s,this._separator=a,this._checked=!1,this.onChecked=i?On.map(On.filter(this._onChecked.event,l=>l.element===this),l=>l.checked):On.None,this._saneDetail=s.detail,this._labelHighlights=s.highlights?.label,this._descriptionHighlights=s.highlights?.description,this._detailHighlights=s.highlights?.detail}get separator(){return this._separator}set separator(n){this._separator=n}get checked(){return this._checked}set checked(n){n!==this._checked&&(this._checked=n,this._onChecked.fire({element:this,checked:n}))}get checkboxDisabled(){return!!this.item.disabled}},(function(n){n[n.NONE=0]="NONE",n[n.MOUSE_HOVER=1]="MOUSE_HOVER",n[n.ACTIVE_ITEM=2]="ACTIVE_ITEM"})(DS||(DS={})),Ck=class extends QCe{constructor(n,i,r){super(n,!1,r),this.fireSeparatorButtonTriggered=i,this.separator=r,this.children=new Array,this.focusInsideSeparator=DS.NONE}},zht=class{getHeight(n){return n instanceof Ck?30:n.saneDetail?44:22}getTemplateId(n){return n instanceof eh?bV.ID:XCe.ID}},Vht=class{getWidgetAriaLabel(){return R("quickInput","Quick Input")}getAriaLabel(n){return n.separator?.label?`${n.saneAriaLabel}, ${n.separator.label}`:n.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(n){return n.hasCheckbox?"checkbox":"option"}isChecked(n){if(!(!n.hasCheckbox||!(n instanceof eh)))return{get value(){return n.checked},onDidChange:i=>n.onChecked(()=>i())}}},ZCe=class{constructor(n){this.hoverDelegate=n}renderTemplate(n){const i=Object.create(null);i.toDisposeElement=new Jt,i.toDisposeTemplate=new Jt,i.entry=hn(n,$b(".quick-input-list-entry"));const r=hn(i.entry,$b("label.quick-input-list-label"));i.toDisposeTemplate.add(Il(r,kn.CLICK,u=>{i.checkbox.offsetParent||u.preventDefault()})),i.checkbox=hn(r,$b("input.quick-input-list-checkbox")),i.checkbox.type="checkbox";const o=hn(r,$b(".quick-input-list-rows")),s=hn(o,$b(".quick-input-list-row")),a=hn(o,$b(".quick-input-list-row"));i.label=new uG(s,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),i.toDisposeTemplate.add(i.label),i.icon=K3e(i.label.element,$b(".quick-input-list-icon"));const l=hn(s,$b(".quick-input-list-entry-keybinding"));i.keybinding=new kY(l,om),i.toDisposeTemplate.add(i.keybinding);const c=hn(a,$b(".quick-input-list-label-meta"));return i.detail=new uG(c,{supportHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),i.toDisposeTemplate.add(i.detail),i.separator=hn(i.entry,$b(".quick-input-list-separator")),i.actionBar=new Dv(i.entry,this.hoverDelegate?{hoverDelegate:this.hoverDelegate}:void 0),i.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),i.toDisposeTemplate.add(i.actionBar),i}disposeTemplate(n){n.toDisposeElement.dispose(),n.toDisposeTemplate.dispose()}disposeElement(n,i,r){r.toDisposeElement.clear(),r.actionBar.clear()}},bV=(e=class extends ZCe{constructor(i,r){super(i),this.themeService=r,this._itemsWithSeparatorsFrequency=new Map}get templateId(){return YCe.ID}renderTemplate(i){const r=super.renderTemplate(i);return r.toDisposeTemplate.add(Il(r.checkbox,kn.CHANGE,o=>{r.element.checked=r.checkbox.checked})),r}renderElement(i,r,o){const s=i.element;o.element=s,s.element=o.entry??void 0;const a=s.item;o.checkbox.checked=s.checked,o.toDisposeElement.add(s.onChecked(p=>o.checkbox.checked=p)),o.checkbox.disabled=s.checkboxDisabled;const{labelHighlights:l,descriptionHighlights:c,detailHighlights:u}=s;if(a.iconPath){const p=e9(this.themeService.getColorTheme().type)?a.iconPath.dark:a.iconPath.light??a.iconPath.dark,g=Ui.revive(p);o.icon.className="quick-input-list-icon",o.icon.style.backgroundImage=lD(g)}else o.icon.style.backgroundImage="",o.icon.className=a.iconClass?`quick-input-list-icon ${a.iconClass}`:"";let d;!s.saneTooltip&&s.saneDescription&&(d={markdown:{value:s.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDescription});const h={matches:l||[],descriptionTitle:d,descriptionMatches:c||[],labelEscapeNewLines:!0};if(h.extraClasses=a.iconClasses,h.italic=a.italic,h.strikethrough=a.strikethrough,o.entry.classList.remove("quick-input-list-separator-as-item"),o.label.setLabel(s.saneLabel,s.saneDescription,h),o.keybinding.set(a.keybinding),s.saneDetail){let p;s.saneTooltip||(p={markdown:{value:s.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDetail}),o.detail.element.style.display="",o.detail.setLabel(s.saneDetail,void 0,{matches:u,title:p,labelEscapeNewLines:!0})}else o.detail.element.style.display="none";s.separator?.label?(o.separator.textContent=s.separator.label,o.separator.style.display="",this.addItemWithSeparator(s)):o.separator.style.display="none",o.entry.classList.toggle("quick-input-list-separator-border",!!s.separator);const f=a.buttons;f&&f.length?(o.actionBar.push(f.map((p,g)=>s$(p,`id-${g}`,()=>s.fireButtonTriggered({button:p,item:s.item}))),{icon:!0,label:!1}),o.entry.classList.add("has-actions")):o.entry.classList.remove("has-actions")}disposeElement(i,r,o){this.removeItemWithSeparator(i.element),super.disposeElement(i,r,o)}isItemWithSeparatorVisible(i){return this._itemsWithSeparatorsFrequency.has(i)}addItemWithSeparator(i){this._itemsWithSeparatorsFrequency.set(i,(this._itemsWithSeparatorsFrequency.get(i)||0)+1)}removeItemWithSeparator(i){const r=this._itemsWithSeparatorsFrequency.get(i)||0;r>1?this._itemsWithSeparatorsFrequency.set(i,r-1):this._itemsWithSeparatorsFrequency.delete(i)}},YCe=e,e.ID="quickpickitem",e),bV=YCe=yV([hee(1,Ru)],bV),XCe=(t=class extends ZCe{constructor(){super(...arguments),this._visibleSeparatorsFrequency=new Map}get templateId(){return t.ID}get visibleSeparators(){return[...this._visibleSeparatorsFrequency.keys()]}isSeparatorVisible(i){return this._visibleSeparatorsFrequency.has(i)}renderTemplate(i){const r=super.renderTemplate(i);return r.checkbox.style.display="none",r}renderElement(i,r,o){const s=i.element;o.element=s,s.element=o.entry??void 0,s.element.classList.toggle("focus-inside",!!s.focusInsideSeparator);const a=s.separator,{labelHighlights:l,descriptionHighlights:c,detailHighlights:u}=s;o.icon.style.backgroundImage="",o.icon.className="";let d;!s.saneTooltip&&s.saneDescription&&(d={markdown:{value:s.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDescription});const h={matches:l||[],descriptionTitle:d,descriptionMatches:c||[],labelEscapeNewLines:!0};if(o.entry.classList.add("quick-input-list-separator-as-item"),o.label.setLabel(s.saneLabel,s.saneDescription,h),s.saneDetail){let p;s.saneTooltip||(p={markdown:{value:s.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDetail}),o.detail.element.style.display="",o.detail.setLabel(s.saneDetail,void 0,{matches:u,title:p,labelEscapeNewLines:!0})}else o.detail.element.style.display="none";o.separator.style.display="none",o.entry.classList.add("quick-input-list-separator-border");const f=a.buttons;f&&f.length?(o.actionBar.push(f.map((p,g)=>s$(p,`id-${g}`,()=>s.fireSeparatorButtonTriggered({button:p,separator:s.separator}))),{icon:!0,label:!1}),o.entry.classList.add("has-actions")):o.entry.classList.remove("has-actions"),this.addSeparator(s)}disposeElement(i,r,o){this.removeSeparator(i.element),this.isSeparatorVisible(i.element)||i.element.element?.classList.remove("focus-inside"),super.disposeElement(i,r,o)}addSeparator(i){this._visibleSeparatorsFrequency.set(i,(this._visibleSeparatorsFrequency.get(i)||0)+1)}removeSeparator(i){const r=this._visibleSeparatorsFrequency.get(i)||0;r>1?this._visibleSeparatorsFrequency.set(i,r-1):this._visibleSeparatorsFrequency.delete(i)}},t.ID="quickpickseparator",t),PB=class extends St{constructor(i,r,o,s,a,l){super(),this.parent=i,this.hoverDelegate=r,this.linkOpenerDelegate=o,this.accessibilityService=l,this._onKeyDown=new bt,this._onLeave=new bt,this.onLeave=this._onLeave.event,this._visibleCountObservable=mo("VisibleCount",0),this.onChangedVisibleCount=On.fromObservable(this._visibleCountObservable,this._store),this._allVisibleCheckedObservable=mo("AllVisibleChecked",!1),this.onChangedAllVisibleChecked=On.fromObservable(this._allVisibleCheckedObservable,this._store),this._checkedCountObservable=mo("CheckedCount",0),this.onChangedCheckedCount=On.fromObservable(this._checkedCountObservable,this._store),this._checkedElementsObservable=q4e({equalsFn:vl},new Array),this.onChangedCheckedElements=On.fromObservable(this._checkedElementsObservable,this._store),this._onButtonTriggered=new bt,this.onButtonTriggered=this._onButtonTriggered.event,this._onSeparatorButtonTriggered=new bt,this.onSeparatorButtonTriggered=this._onSeparatorButtonTriggered.event,this._elementChecked=new bt,this._elementCheckedEventBufferer=new p7,this._hasCheckboxes=!1,this._inputElements=new Array,this._elementTree=new Array,this._itemElements=new Array,this._elementDisposable=this._register(new Jt),this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._shouldLoop=!0,this._container=hn(this.parent,$b(".quick-input-list")),this._separatorRenderer=new XCe(r),this._itemRenderer=a.createInstance(bV,r),this._tree=this._register(a.createInstance(Jse,"QuickInput",this._container,new zht,[this._itemRenderer,this._separatorRenderer],{filter:{filter(c){return c.hidden?0:c instanceof Ck?2:1}},sorter:{compare:(c,u)=>{if(!this.sortByLabel||!this._lastQueryString)return 0;const d=this._lastQueryString.toLowerCase();return fUn(c,u,d)}},accessibilityProvider:new Vht,setRowLineHeight:!1,multipleSelectionSupport:!1,hideTwistiesOfChildlessElements:!0,renderIndentGuides:LB.None,findWidgetEnabled:!1,indent:0,horizontalScrolling:!1,allowNonCollapsibleParents:!0,alwaysConsumeMouseWheel:!0})),this._tree.getHTMLElement().id=s,this._registerListeners()}get onDidChangeFocus(){return On.map(this._tree.onDidChangeFocus,i=>i.elements.filter(r=>r instanceof eh).map(r=>r.item),this._store)}get onDidChangeSelection(){return On.map(this._tree.onDidChangeSelection,i=>({items:i.elements.filter(r=>r instanceof eh).map(r=>r.item),event:i.browserEvent}),this._store)}get displayed(){return this._container.style.display!=="none"}set displayed(i){this._container.style.display=i?"":"none"}get scrollTop(){return this._tree.scrollTop}set scrollTop(i){this._tree.scrollTop=i}get ariaLabel(){return this._tree.ariaLabel}set ariaLabel(i){this._tree.ariaLabel=i??""}set enabled(i){this._tree.getHTMLElement().style.pointerEvents=i?"":"none"}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(i){this._matchOnDescription=i}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(i){this._matchOnDetail=i}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(i){this._matchOnLabel=i}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(i){this._matchOnLabelMode=i}get sortByLabel(){return this._sortByLabel}set sortByLabel(i){this._sortByLabel=i}get shouldLoop(){return this._shouldLoop}set shouldLoop(i){this._shouldLoop=i}_registerListeners(){this._registerOnKeyDown(),this._registerOnContainerClick(),this._registerOnMouseMiddleClick(),this._registerOnTreeModelChanged(),this._registerOnElementChecked(),this._registerOnContextMenu(),this._registerHoverListeners(),this._registerSelectionChangeListener(),this._registerSeparatorActionShowingListeners()}_registerOnKeyDown(){this._register(this._tree.onKeyDown(i=>{const r=new Sa(i);r.keyCode===10&&this.toggleCheckbox(),this._onKeyDown.fire(r)}))}_registerOnContainerClick(){this._register(qt(this._container,kn.CLICK,i=>{(i.x||i.y)&&this._onLeave.fire()}))}_registerOnMouseMiddleClick(){this._register(qt(this._container,kn.AUXCLICK,i=>{i.button===1&&this._onLeave.fire()}))}_registerOnTreeModelChanged(){this._register(this._tree.onDidChangeModel(()=>{const i=this._itemElements.filter(r=>!r.hidden).length;this._visibleCountObservable.set(i,void 0),this._hasCheckboxes&&this._updateCheckedObservables()}))}_registerOnElementChecked(){this._register(this._elementCheckedEventBufferer.wrapEvent(this._elementChecked.event,(i,r)=>r)(i=>this._updateCheckedObservables()))}_registerOnContextMenu(){this._register(this._tree.onContextMenu(i=>{i.element&&(i.browserEvent.preventDefault(),this._tree.setSelection([i.element]))}))}_registerHoverListeners(){const i=this._register(new N3e(this.hoverDelegate.delay));this._register(this._tree.onMouseOver(async r=>{if(Lst(r.browserEvent.target)){i.cancel();return}if(!(!Lst(r.browserEvent.relatedTarget)&&hd(r.browserEvent.relatedTarget,r.element?.element)))try{await i.trigger(async()=>{r.element instanceof eh&&this.showHover(r.element)})}catch(o){if(!bb(o))throw o}})),this._register(this._tree.onMouseOut(r=>{hd(r.browserEvent.relatedTarget,r.element?.element)||i.cancel()}))}_registerSeparatorActionShowingListeners(){this._register(this._tree.onDidChangeFocus(i=>{const r=i.elements[0]?this._tree.getParentElement(i.elements[0]):null;for(const o of this._separatorRenderer.visibleSeparators){const s=o===r;!!(o.focusInsideSeparator&DS.ACTIVE_ITEM)!==s&&(s?o.focusInsideSeparator|=DS.ACTIVE_ITEM:o.focusInsideSeparator&=~DS.ACTIVE_ITEM,this._tree.rerender(o))}})),this._register(this._tree.onMouseOver(i=>{const r=i.element?this._tree.getParentElement(i.element):null;for(const o of this._separatorRenderer.visibleSeparators){if(o!==r)continue;o.focusInsideSeparator&DS.MOUSE_HOVER||(o.focusInsideSeparator|=DS.MOUSE_HOVER,this._tree.rerender(o))}})),this._register(this._tree.onMouseOut(i=>{const r=i.element?this._tree.getParentElement(i.element):null;for(const o of this._separatorRenderer.visibleSeparators){if(o!==r)continue;o.focusInsideSeparator&DS.MOUSE_HOVER&&(o.focusInsideSeparator&=~DS.MOUSE_HOVER,this._tree.rerender(o))}}))}_registerSelectionChangeListener(){this._register(this._tree.onDidChangeSelection(i=>{const r=i.elements.filter(o=>o instanceof eh);r.length!==i.elements.length&&(i.elements.length===1&&i.elements[0]instanceof Ck&&(this._tree.setFocus([i.elements[0].children[0]]),this._tree.reveal(i.elements[0],0)),this._tree.setSelection(r))}))}setAllVisibleChecked(i){this._elementCheckedEventBufferer.bufferEvents(()=>{this._itemElements.forEach(r=>{!r.hidden&&!r.checkboxDisabled&&(r.checked=i)})})}setElements(i){this._elementDisposable.clear(),this._lastQueryString=void 0,this._inputElements=i,this._hasCheckboxes=this.parent.classList.contains("show-checkboxes");let r;this._itemElements=new Array,this._elementTree=i.reduce((o,s,a)=>{let l;if(s.type==="separator"){if(!s.buttons)return o;r=new Ck(a,c=>this._onSeparatorButtonTriggered.fire(c),s),l=r}else{const c=a>0?i[a-1]:void 0;let u;c&&c.type==="separator"&&!c.buttons&&(r=void 0,u=c);const d=new eh(a,this._hasCheckboxes,h=>this._onButtonTriggered.fire(h),this._elementChecked,s,u);if(this._itemElements.push(d),r)return r.children.push(d),o;l=d}return o.push(l),o},new Array),this._setElementsToTree(this._elementTree),this.accessibilityService.isScreenReaderOptimized()&&setTimeout(()=>{const o=this._tree.getHTMLElement().querySelector(".monaco-list-row.focused"),s=o?.parentNode;if(o&&s){const a=o.nextSibling;o.remove(),s.insertBefore(o,a)}},0)}setFocusedElements(i){const r=i.map(o=>this._itemElements.find(s=>s.item===o)).filter(o=>!!o).filter(o=>!o.hidden);if(this._tree.setFocus(r),i.length>0){const o=this._tree.getFocus()[0];o&&this._tree.reveal(o)}}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(i){const r=i.map(o=>this._itemElements.find(s=>s.item===o)).filter(o=>!!o);this._tree.setSelection(r)}getCheckedElements(){return this._itemElements.filter(i=>i.checked).map(i=>i.item)}setCheckedElements(i){this._elementCheckedEventBufferer.bufferEvents(()=>{const r=new Set;for(const o of i)r.add(o);for(const o of this._itemElements)o.checked=r.has(o.item)})}focus(i){if(this._itemElements.length)switch(i===Ka.Second&&this._itemElements.length<2&&(i=Ka.First),i){case Ka.First:this._tree.scrollTop=0,this._tree.focusFirst(void 0,r=>r.element instanceof eh);break;case Ka.Second:{this._tree.scrollTop=0;let r=!1;this._tree.focusFirst(void 0,o=>o.element instanceof eh?r?!0:(r=!r,!1):!1);break}case Ka.Last:this._tree.scrollTop=this._tree.scrollHeight,this._tree.focusLast(void 0,r=>r.element instanceof eh);break;case Ka.Next:{const r=this._tree.getFocus();this._tree.focusNext(void 0,this._shouldLoop,void 0,s=>s.element instanceof eh?(this._tree.reveal(s.element),!0):!1);const o=this._tree.getFocus();r.length&&r[0]===o[0]&&r[0]===this._itemElements[this._itemElements.length-1]&&this._onLeave.fire();break}case Ka.Previous:{const r=this._tree.getFocus();this._tree.focusPrevious(void 0,this._shouldLoop,void 0,s=>{if(!(s.element instanceof eh))return!1;const a=this._tree.getParentElement(s.element);return a===null||a.children[0]!==s.element?this._tree.reveal(s.element):this._tree.reveal(a),!0});const o=this._tree.getFocus();r.length&&r[0]===o[0]&&r[0]===this._itemElements[0]&&this._onLeave.fire();break}case Ka.NextPage:this._tree.focusNextPage(void 0,r=>r.element instanceof eh?(this._tree.reveal(r.element),!0):!1);break;case Ka.PreviousPage:this._tree.focusPreviousPage(void 0,r=>{if(!(r.element instanceof eh))return!1;const o=this._tree.getParentElement(r.element);return o===null||o.children[0]!==r.element?this._tree.reveal(r.element):this._tree.reveal(o),!0});break;case Ka.NextSeparator:{let r=!1;const o=this._tree.getFocus()[0];this._tree.focusNext(void 0,!0,void 0,a=>{if(r)return!0;if(a.element instanceof Ck)r=!0,this._separatorRenderer.isSeparatorVisible(a.element)?this._tree.reveal(a.element.children[0]):this._tree.reveal(a.element,0);else if(a.element instanceof eh){if(a.element.separator)return this._itemRenderer.isItemWithSeparatorVisible(a.element)?this._tree.reveal(a.element):this._tree.reveal(a.element,0),!0;if(a.element===this._elementTree[0])return this._tree.reveal(a.element,0),!0}return!1});const s=this._tree.getFocus()[0];o===s&&(this._tree.scrollTop=this._tree.scrollHeight,this._tree.focusLast(void 0,a=>a.element instanceof eh));break}case Ka.PreviousSeparator:{let r,o=!!this._tree.getFocus()[0]?.separator;this._tree.focusPrevious(void 0,!0,void 0,s=>{if(s.element instanceof Ck)o?r||(this._separatorRenderer.isSeparatorVisible(s.element)?this._tree.reveal(s.element):this._tree.reveal(s.element,0),r=s.element.children[0]):o=!0;else if(s.element instanceof eh&&!r){if(s.element.separator)this._itemRenderer.isItemWithSeparatorVisible(s.element)?this._tree.reveal(s.element):this._tree.reveal(s.element,0),r=s.element;else if(s.element===this._elementTree[0])return this._tree.reveal(s.element,0),!0}return!1}),r&&this._tree.setFocus([r]);break}}}clearFocus(){this._tree.setFocus([])}domFocus(){this._tree.domFocus()}layout(i){this._tree.getHTMLElement().style.maxHeight=i?`${Math.floor(i/44)*44+6}px`:"",this._tree.layout()}filter(i){if(this._lastQueryString=i,!(this._sortByLabel||this._matchOnLabel||this._matchOnDescription||this._matchOnDetail))return this._tree.layout(),!1;const r=i;if(i=i.trim(),!i||!(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))this._itemElements.forEach(o=>{o.labelHighlights=void 0,o.descriptionHighlights=void 0,o.detailHighlights=void 0,o.hidden=!1;const s=o.index&&this._inputElements[o.index-1];o.item&&(o.separator=s&&s.type==="separator"&&!s.buttons?s:void 0)});else{let o;this._itemElements.forEach(s=>{let a;this.matchOnLabelMode==="fuzzy"?a=this.matchOnLabel?W1e(i,Qz(s.saneLabel))??void 0:void 0:a=this.matchOnLabel?hUn(r,Qz(s.saneLabel))??void 0:void 0;const l=this.matchOnDescription?W1e(i,Qz(s.saneDescription||""))??void 0:void 0,c=this.matchOnDetail?W1e(i,Qz(s.saneDetail||""))??void 0:void 0;if(a||l||c?(s.labelHighlights=a,s.descriptionHighlights=l,s.detailHighlights=c,s.hidden=!1):(s.labelHighlights=void 0,s.descriptionHighlights=void 0,s.detailHighlights=void 0,s.hidden=s.item?!s.item.alwaysShow:!0),s.item?s.separator=void 0:s.separator&&(s.hidden=!0),!this.sortByLabel){const u=s.index&&this._inputElements[s.index-1]||void 0;u?.type==="separator"&&!u.buttons&&(o=u),o&&!s.hidden&&(s.separator=o,o=void 0)}})}return this._setElementsToTree(this._sortByLabel&&i?this._itemElements:this._elementTree),this._tree.layout(),!0}toggleCheckbox(){this._elementCheckedEventBufferer.bufferEvents(()=>{const i=this._tree.getFocus().filter(o=>o instanceof eh),r=this._allVisibleChecked(i);for(const o of i)o.checkboxDisabled||(o.checked=!r)})}style(i){this._tree.style(i)}toggleHover(){const i=this._tree.getFocus()[0];if(!i?.saneTooltip||!(i instanceof eh))return;if(this._lastHover&&!this._lastHover.isDisposed){this._lastHover.dispose();return}this.showHover(i);const r=new Jt;r.add(this._tree.onDidChangeFocus(o=>{o.elements[0]instanceof eh&&this.showHover(o.elements[0])})),this._lastHover&&r.add(this._lastHover),this._elementDisposable.add(r)}_setElementsToTree(i){const r=new Array;for(const o of i)o instanceof Ck?r.push({element:o,collapsible:!1,collapsed:!1,children:o.children.map(s=>({element:s,collapsible:!1,collapsed:!1}))}):r.push({element:o,collapsible:!1,collapsed:!1});this._tree.setChildren(null,r)}_allVisibleChecked(i,r=!0){for(let o=0,s=i.length;o<s;o++){const a=i[o];if(!a.hidden)if(a.checked)r=!0;else return!1}return r}_updateCheckedObservables(){Al(i=>{this._allVisibleCheckedObservable.set(this._allVisibleChecked(this._itemElements,!1),i);const r=this._itemElements.filter(o=>o.checked).length;this._checkedCountObservable.set(r,i),this._checkedElementsObservable.set(this.getCheckedElements(),i)})}showHover(i){this._lastHover&&!this._lastHover.isDisposed&&(this.hoverDelegate.onDidHideHover?.(),this._lastHover?.dispose()),!(!i.element||!i.saneTooltip)&&(this._lastHover=this.hoverDelegate.showHover({content:i.saneTooltip,target:i.element,linkHandler:r=>{this.linkOpenerDelegate(r)},appearance:{showPointer:!0},container:this._container,position:{hoverPosition:1}},!1))}},yV([Hc],PB.prototype,"onDidChangeFocus",null),yV([Hc],PB.prototype,"onDidChangeSelection",null),PB=yV([hee(4,ji),hee(5,pm)],PB)}});function Tm(e,t={}){dp.registerCommandAndKeybindingRule({...OBe,...e,secondary:gUn(e.primary,e.secondary??[],t)})}function gUn(e,t,n={}){return n.withAltMod&&t.push(512+e),n.withCtrlMod&&(t.push(a$+e),n.withAltMod&&t.push(512+a$+e)),n.withCmdMod&&xo&&(t.push(2048+e),n.withCtrlMod&&t.push(2304+e),n.withAltMod&&(t.push(2560+e),n.withCtrlMod&&t.push(2816+e))),t}function t0(e,t){return n=>{const i=n.get(Z0).currentQuickInput;if(i)return t&&i.quickNavigate?i.focus(t):i.focus(e)}}var OBe,a$,JCe,eSe,mUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/quickinput/browser/quickInputActions.js"(){Xr(),bn(),er(),TY(),kN(),QWe(),Hv(),OBe={weight:200,when:nn.and(nn.equals(wBe,"quickPick"),hYt),metadata:{description:R("quickPick","Used while in the context of the quick pick. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.")}},a$=xo?256:2048,Tm({id:"quickInput.pageNext",primary:12,handler:t0(Ka.NextPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),Tm({id:"quickInput.pagePrevious",primary:11,handler:t0(Ka.PreviousPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),Tm({id:"quickInput.first",primary:a$+14,handler:t0(Ka.First)},{withAltMod:!0,withCmdMod:!0}),Tm({id:"quickInput.last",primary:a$+13,handler:t0(Ka.Last)},{withAltMod:!0,withCmdMod:!0}),Tm({id:"quickInput.next",primary:18,handler:t0(Ka.Next)},{withCtrlMod:!0}),Tm({id:"quickInput.previous",primary:16,handler:t0(Ka.Previous)},{withCtrlMod:!0}),JCe=R("quickInput.nextSeparatorWithQuickAccessFallback","If we're in quick access mode, this will navigate to the next item. If we are not in quick access mode, this will navigate to the next separator."),eSe=R("quickInput.previousSeparatorWithQuickAccessFallback","If we're in quick access mode, this will navigate to the previous item. If we are not in quick access mode, this will navigate to the previous separator."),xo?(Tm({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:2066,handler:t0(Ka.NextSeparator,Ka.Next),metadata:{description:JCe}}),Tm({id:"quickInput.nextSeparator",primary:2578,secondary:[2322],handler:t0(Ka.NextSeparator)},{withCtrlMod:!0}),Tm({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:2064,handler:t0(Ka.PreviousSeparator,Ka.Previous),metadata:{description:eSe}}),Tm({id:"quickInput.previousSeparator",primary:2576,secondary:[2320],handler:t0(Ka.PreviousSeparator)},{withCtrlMod:!0})):(Tm({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:530,handler:t0(Ka.NextSeparator,Ka.Next),metadata:{description:JCe}}),Tm({id:"quickInput.nextSeparator",primary:2578,handler:t0(Ka.NextSeparator)}),Tm({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:528,handler:t0(Ka.PreviousSeparator,Ka.Previous),metadata:{description:eSe}}),Tm({id:"quickInput.previousSeparator",primary:2576,handler:t0(Ka.PreviousSeparator)})),Tm({id:"quickInput.acceptInBackground",when:nn.and(OBe.when,nn.or(dUe.negate(),gYt)),primary:17,weight:250,handler:e=>{e.get(Z0).currentQuickInput?.accept(!0)}},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0})}}),Hht,fee,tSe,Bg,tae,vUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/quickinput/browser/quickInputController.js"(){var e;Fn(),ww(),ZWe(),vYt(),PWn(),Ho(),Un(),Nt(),NN(),bn(),Hv(),FWn(),QWe(),LN(),wg(),li(),pUn(),er(),mUn(),Hht=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},fee=function(t,n){return function(i,r){n(i,r,t)}},Bg=In,tae=(e=class extends St{get currentQuickInput(){return this.controller??void 0}get container(){return this._container}constructor(n,i,r,o){super(),this.options=n,this.layoutService=i,this.instantiationService=r,this.contextKeyService=o,this.enabled=!0,this.onDidAcceptEmitter=this._register(new bt),this.onDidCustomEmitter=this._register(new bt),this.onDidTriggerButtonEmitter=this._register(new bt),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new bt),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new bt),this.onHide=this.onHideEmitter.event,this.inQuickInputContext=dYt.bindTo(this.contextKeyService),this.quickInputTypeContext=fYt.bindTo(this.contextKeyService),this.endOfQuickInputBoxContext=pYt.bindTo(this.contextKeyService),this.idPrefix=n.idPrefix,this._container=n.container,this.styles=n.styles,this._register(On.runAndSubscribe(Oq,({window:s,disposables:a})=>this.registerKeyModsListeners(s,a),{window:la,disposables:this._store})),this._register(o3t(s=>{this.ui&&Yi(this.ui.container)===s&&(this.reparentUI(this.layoutService.mainContainer),this.layout(this.layoutService.mainContainerDimension,this.layoutService.mainContainerOffset.quickPickTop))}))}registerKeyModsListeners(n,i){const r=o=>{this.keyMods.ctrlCmd=o.ctrlKey||o.metaKey,this.keyMods.alt=o.altKey};for(const o of[kn.KEY_DOWN,kn.KEY_UP,kn.MOUSE_DOWN])i.add(qt(n,o,r,!0))}getUI(n){if(this.ui)return n&&Yi(this._container)!==Yi(this.layoutService.activeContainer)&&(this.reparentUI(this.layoutService.activeContainer),this.layout(this.layoutService.activeContainerDimension,this.layoutService.activeContainerOffset.quickPickTop)),this.ui;const i=hn(this._container,Bg(".quick-input-widget.show-file-icons"));i.tabIndex=-1,i.style.display="none";const r=V0(i),o=hn(i,Bg(".quick-input-titlebar")),s=this._register(new Dv(o,{hoverDelegate:this.options.hoverDelegate}));s.domNode.classList.add("quick-input-left-action-bar");const a=hn(o,Bg(".quick-input-title")),l=this._register(new Dv(o,{hoverDelegate:this.options.hoverDelegate}));l.domNode.classList.add("quick-input-right-action-bar");const c=hn(i,Bg(".quick-input-header")),u=hn(c,Bg("input.quick-input-check-all"));u.type="checkbox",u.setAttribute("aria-label",R("quickInput.checkAll","Toggle all checkboxes")),this._register(Il(u,kn.CHANGE,J=>{const ee=u.checked;j.setAllVisibleChecked(ee)})),this._register(qt(u,kn.CLICK,J=>{(J.x||J.y)&&p.setFocus()}));const d=hn(c,Bg(".quick-input-description")),h=hn(c,Bg(".quick-input-and-message")),f=hn(h,Bg(".quick-input-filter")),p=this._register(new SYt(f,this.styles.inputBox,this.styles.toggle));p.setAttribute("aria-describedby",`${this.idPrefix}message`);const g=hn(f,Bg(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");const m=new fde(g,{countFormat:R({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")},this.styles.countBadge),v=hn(f,Bg(".quick-input-count"));v.setAttribute("aria-live","polite");const y=new fde(v,{countFormat:R({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")},this.styles.countBadge),b=this._register(new Dv(c,{hoverDelegate:this.options.hoverDelegate}));b.domNode.classList.add("quick-input-inline-action-bar");const w=hn(c,Bg(".quick-input-action")),E=this._register(new lG(w,this.styles.button));E.label=R("ok","OK"),this._register(E.onDidClick(J=>{this.onDidAcceptEmitter.fire()}));const A=hn(c,Bg(".quick-input-action")),D=this._register(new lG(A,{...this.styles.button,supportIcons:!0}));D.label=R("custom","Custom"),this._register(D.onDidClick(J=>{this.onDidCustomEmitter.fire()}));const T=hn(h,Bg(`#${this.idPrefix}message.quick-input-message`)),M=this._register(new yYt(i,this.styles.progressBar));M.getContainer().classList.add("quick-input-progress");const P=hn(i,Bg(".quick-input-html-widget"));P.tabIndex=-1;const F=hn(i,Bg(".quick-input-description")),N=this.idPrefix+"list",j=this._register(this.instantiationService.createInstance(PB,i,this.options.hoverDelegate,this.options.linkOpenerDelegate,N));p.setAttribute("aria-controls",N),this._register(j.onDidChangeFocus(()=>{p.setAttribute("aria-activedescendant",j.getActiveDescendant()??"")})),this._register(j.onChangedAllVisibleChecked(J=>{u.checked=J})),this._register(j.onChangedVisibleCount(J=>{m.setCount(J)})),this._register(j.onChangedCheckedCount(J=>{y.setCount(J)})),this._register(j.onLeave(()=>{setTimeout(()=>{this.controller&&(p.setFocus(),this.controller instanceof CBe&&this.controller.canSelectMany&&j.clearFocus())},0)}));const W=yC(i);return this._register(W),this._register(qt(i,kn.FOCUS,J=>{const ee=this.getUI();if(hd(J.relatedTarget,ee.inputContainer)){const Q=ee.inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==Q&&this.endOfQuickInputBoxContext.set(Q)}hd(J.relatedTarget,ee.container)||(this.inQuickInputContext.set(!0),this.previousFocusElement=yd(J.relatedTarget)?J.relatedTarget:void 0)},!0)),this._register(W.onDidBlur(()=>{!this.getUI().ignoreFocusOut&&!this.options.ignoreFocusOut()&&this.hide(c9.Blur),this.inQuickInputContext.set(!1),this.endOfQuickInputBoxContext.set(!1),this.previousFocusElement=void 0})),this._register(p.onKeyDown(J=>{const ee=this.getUI().inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==ee&&this.endOfQuickInputBoxContext.set(ee)})),this._register(qt(i,kn.FOCUS,J=>{p.setFocus()})),this._register(Il(i,kn.KEY_DOWN,J=>{if(!hd(J.target,P))switch(J.keyCode){case 3:Po.stop(J,!0),this.enabled&&this.onDidAcceptEmitter.fire();break;case 9:Po.stop(J,!0),this.hide(c9.Gesture);break;case 2:if(!J.altKey&&!J.ctrlKey&&!J.metaKey){const ee=[".quick-input-list .monaco-action-bar .always-visible",".quick-input-list-entry:hover .monaco-action-bar",".monaco-list-row.focused .monaco-action-bar"];if(i.classList.contains("show-checkboxes")?ee.push("input"):ee.push("input[type=text]"),this.getUI().list.displayed&&ee.push(".monaco-list"),this.getUI().message&&ee.push(".quick-input-message a"),this.getUI().widget){if(hd(J.target,this.getUI().widget))break;ee.push(".quick-input-html-widget")}const Q=i.querySelectorAll(ee.join(", "));J.shiftKey&&J.target===Q[0]?(Po.stop(J,!0),j.clearFocus()):!J.shiftKey&&hd(J.target,Q[Q.length-1])&&(Po.stop(J,!0),Q[0].focus())}break;case 10:J.ctrlKey&&(Po.stop(J,!0),this.getUI().list.toggleHover());break}})),this.ui={container:i,styleSheet:r,leftActionBar:s,titleBar:o,title:a,description1:F,description2:d,widget:P,rightActionBar:l,inlineActionBar:b,checkAll:u,inputContainer:h,filterContainer:f,inputBox:p,visibleCountContainer:g,visibleCount:m,countContainer:v,count:y,okContainer:w,ok:E,message:T,customButtonContainer:A,customButton:D,list:j,progressBar:M,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,show:J=>this.show(J),hide:()=>this.hide(),setVisibilities:J=>this.setVisibilities(J),setEnabled:J=>this.setEnabled(J),setContextKey:J=>this.options.setContextKey(J),linkOpenerDelegate:J=>this.options.linkOpenerDelegate(J)},this.updateStyles(),this.ui}reparentUI(n){this.ui&&(this._container=n,hn(this._container,this.ui.container))}pick(n,i={},r=no.None){return new Promise((o,s)=>{let a=d=>{a=o,i.onKeyMods?.(l.keyMods),o(d)};if(r.isCancellationRequested){a(void 0);return}const l=this.createQuickPick({useSeparators:!0});let c;const u=[l,l.onDidAccept(()=>{if(l.canSelectMany)a(l.selectedItems.slice()),l.hide();else{const d=l.activeItems[0];d&&(a(d),l.hide())}}),l.onDidChangeActive(d=>{const h=d[0];h&&i.onDidFocus&&i.onDidFocus(h)}),l.onDidChangeSelection(d=>{if(!l.canSelectMany){const h=d[0];h&&(a(h),l.hide())}}),l.onDidTriggerItemButton(d=>i.onDidTriggerItemButton&&i.onDidTriggerItemButton({...d,removeItem:()=>{const h=l.items.indexOf(d.item);if(h!==-1){const f=l.items.slice(),p=f.splice(h,1),g=l.activeItems.filter(v=>v!==p[0]),m=l.keepScrollPosition;l.keepScrollPosition=!0,l.items=f,g&&(l.activeItems=g),l.keepScrollPosition=m}}})),l.onDidTriggerSeparatorButton(d=>i.onDidTriggerSeparatorButton?.(d)),l.onDidChangeValue(d=>{c&&!d&&(l.activeItems.length!==1||l.activeItems[0]!==c)&&(l.activeItems=[c])}),r.onCancellationRequested(()=>{l.hide()}),l.onDidHide(()=>{xa(u),a(void 0)})];l.title=i.title,i.value&&(l.value=i.value),l.canSelectMany=!!i.canPickMany,l.placeholder=i.placeHolder,l.ignoreFocusOut=!!i.ignoreFocusLost,l.matchOnDescription=!!i.matchOnDescription,l.matchOnDetail=!!i.matchOnDetail,l.matchOnLabel=i.matchOnLabel===void 0||i.matchOnLabel,l.quickNavigate=i.quickNavigate,l.hideInput=!!i.hideInput,l.contextKey=i.contextKey,l.busy=!0,Promise.all([n,i.activeItem]).then(([d,h])=>{c=h,l.busy=!1,l.items=d,l.canSelectMany&&(l.selectedItems=d.filter(f=>f.type!=="separator"&&f.picked)),c&&(l.activeItems=[c])}),l.show(),Promise.resolve(n).then(void 0,d=>{s(d),l.hide()})})}createQuickPick(n={useSeparators:!1}){const i=this.getUI(!0);return new CBe(i)}createInputBox(){const n=this.getUI(!0);return new mYt(n)}show(n){const i=this.getUI(!0);this.onShowEmitter.fire();const r=this.controller;this.controller=n,r?.didHide(),this.setEnabled(!0),i.leftActionBar.clear(),i.title.textContent="",i.description1.textContent="",i.description2.textContent="",xh(i.widget),i.rightActionBar.clear(),i.inlineActionBar.clear(),i.checkAll.checked=!1,i.inputBox.placeholder="",i.inputBox.password=!1,i.inputBox.showDecoration(yc.Ignore),i.visibleCount.setCount(0),i.count.setCount(0),xh(i.message),i.progressBar.stop(),i.list.setElements([]),i.list.matchOnDescription=!1,i.list.matchOnDetail=!1,i.list.matchOnLabel=!0,i.list.sortByLabel=!0,i.ignoreFocusOut=!1,i.inputBox.toggles=void 0;const o=this.options.backKeybindingLabel();Use.tooltip=o?R("quickInput.backWithKeybinding","Back ({0})",o):R("quickInput.back","Back"),i.container.style.display="",this.updateLayout(),i.inputBox.setFocus(),this.quickInputTypeContext.set(n.type)}isVisible(){return!!this.ui&&this.ui.container.style.display!=="none"}setVisibilities(n){const i=this.getUI();i.title.style.display=n.title?"":"none",i.description1.style.display=n.description&&(n.inputBox||n.checkAll)?"":"none",i.description2.style.display=n.description&&!(n.inputBox||n.checkAll)?"":"none",i.checkAll.style.display=n.checkAll?"":"none",i.inputContainer.style.display=n.inputBox?"":"none",i.filterContainer.style.display=n.inputBox?"":"none",i.visibleCountContainer.style.display=n.visibleCount?"":"none",i.countContainer.style.display=n.count?"":"none",i.okContainer.style.display=n.ok?"":"none",i.customButtonContainer.style.display=n.customButton?"":"none",i.message.style.display=n.message?"":"none",i.progressBar.getContainer().style.display=n.progressBar?"":"none",i.list.displayed=!!n.list,i.container.classList.toggle("show-checkboxes",!!n.checkBox),i.container.classList.toggle("hidden-input",!n.inputBox&&!n.description),this.updateLayout()}setEnabled(n){if(n!==this.enabled){this.enabled=n;for(const i of this.getUI().leftActionBar.viewItems)i.action.enabled=n;for(const i of this.getUI().rightActionBar.viewItems)i.action.enabled=n;this.getUI().checkAll.disabled=!n,this.getUI().inputBox.enabled=n,this.getUI().ok.enabled=n,this.getUI().list.enabled=n}}hide(n){const i=this.controller;if(!i)return;i.willHide(n);const r=this.ui?.container,o=r&&!XVt(r);if(this.controller=null,this.onHideEmitter.fire(),r&&(r.style.display="none"),!o){let s=this.previousFocusElement;for(;s&&!s.offsetParent;)s=s.parentElement??void 0;s?.offsetParent?(s.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}i.didHide(n)}layout(n,i){this.dimension=n,this.titleBarOffset=i,this.updateLayout()}updateLayout(){if(this.ui&&this.isVisible()){this.ui.container.style.top=`${this.titleBarOffset}px`;const n=this.ui.container.style,i=Math.min(this.dimension.width*.62,tSe.MAX_WIDTH);n.width=i+"px",n.marginLeft="-"+i/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&this.dimension.height*.4)}}applyStyles(n){this.styles=n,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:n,quickInputBackground:i,quickInputForeground:r,widgetBorder:o,widgetShadow:s}=this.styles.widget;this.ui.titleBar.style.backgroundColor=n??"",this.ui.container.style.backgroundColor=i??"",this.ui.container.style.color=r??"",this.ui.container.style.border=o?`1px solid ${o}`:"",this.ui.container.style.boxShadow=s?`0 0 8px 2px ${s}`:"",this.ui.list.style(this.styles.list);const a=[];this.styles.pickerGroup.pickerGroupBorder&&a.push(`.quick-input-list .quick-input-list-entry { border-top-color:  ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&a.push(`.quick-input-list .quick-input-list-separator { color:  ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&a.push(".quick-input-list .quick-input-list-separator-as-item { color: var(--vscode-descriptionForeground); }"),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(a.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&a.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&a.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&a.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&a.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&a.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),a.push("}"));const l=a.join(`
`);l!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=l)}}},tSe=e,e.MAX_WIDTH=600,e),tae=tSe=Hht([fee(1,yT),fee(2,ji),fee(3,ur)],tae)}}),Wht,W5,nae,yUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/quickinput/browser/quickInputService.js"(){Ho(),Un(),er(),li(),LN(),Ag(),xWn(),wT(),ll(),Ys(),QWe(),vUn(),sa(),Fn(),Wht=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},W5=function(e,t){return function(n,i){t(n,i,e)}},nae=class extends e$t{get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get hasController(){return!!this._controller}get currentQuickInput(){return this.controller.currentQuickInput}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(Hse))),this._quickAccess}constructor(t,n,i,r,o){super(i),this.instantiationService=t,this.contextKeyService=n,this.layoutService=r,this.configurationService=o,this._onShow=this._register(new bt),this._onHide=this._register(new bt),this.contexts=new Map}createController(t=this.layoutService,n){const i={idPrefix:"quickInput_",container:t.activeContainer,ignoreFocusOut:()=>!1,backKeybindingLabel:()=>{},setContextKey:o=>this.setContextKey(o),linkOpenerDelegate:o=>{this.instantiationService.invokeFunction(s=>{s.get(Eg).open(o,{allowCommands:!0,fromUserGesture:!0})})},returnFocus:()=>t.focus(),styles:this.computeStyles(),hoverDelegate:this._register(this.instantiationService.createInstance($se))},r=this._register(this.instantiationService.createInstance(tae,{...i,...n}));return r.layout(t.activeContainerDimension,t.activeContainerOffset.quickPickTop),this._register(t.onDidLayoutActiveContainer(o=>{Yi(t.activeContainer)===Yi(r.container)&&r.layout(o,t.activeContainerOffset.quickPickTop)})),this._register(t.onDidChangeActiveContainer(()=>{r.isVisible()||r.layout(t.activeContainerDimension,t.activeContainerOffset.quickPickTop)})),this._register(r.onShow(()=>{this.resetContextKeys(),this._onShow.fire()})),this._register(r.onHide(()=>{this.resetContextKeys(),this._onHide.fire()})),r}setContextKey(t){let n;t&&(n=this.contexts.get(t),n||(n=new Qn(t,!1).bindTo(this.contextKeyService),this.contexts.set(t,n))),!(n&&n.get())&&(this.resetContextKeys(),n?.set(!0))}resetContextKeys(){this.contexts.forEach(t=>{t.get()&&t.reset()})}pick(t,n,i=no.None){return this.controller.pick(t,n,i)}createQuickPick(t={useSeparators:!1}){return this.controller.createQuickPick(t)}createInputBox(){return this.controller.createInputBox()}updateStyles(){this.hasController&&this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:{quickInputBackground:ni(c5e),quickInputForeground:ni(KHt),quickInputTitleBackground:ni(YHt),widgetBorder:ni(oHe),widgetShadow:ni(aR)},inputBox:sG,toggle:oG,countBadge:_We,button:pGt,progressBar:gGt,keybindingLabel:fGt,list:PO({listBackground:c5e,listFocusBackground:J8,listFocusForeground:X8,listInactiveFocusForeground:X8,listInactiveSelectionIconForeground:Hpe,listInactiveFocusBackground:J8,listFocusOutline:Qa,listInactiveFocusOutline:Qa}),pickerGroup:{pickerGroupBorder:ni(QHt),pickerGroupForeground:ni(uHe)}}}},nae=Wht([W5(0,ji),W5(1,ur),W5(2,Ru),W5(3,yT),W5(4,co)],nae)}}),nSe,Sk,pee,iae,gee,Uht,bUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js"(){var e,t;SWn(),Un(),mr(),Ys(),Ho(),li(),er(),n$t(),Ec(),yUn(),U2(),sa(),nSe=function(n,i,r,o){var s=arguments.length,a=s<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,r):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,i,r,o);else for(var c=n.length-1;c>=0;c--)(l=n[c])&&(a=(s<3?l(a):s>3?l(i,r,a):l(i,r))||a);return s>3&&a&&Object.defineProperty(i,r,a),a},Sk=function(n,i){return function(r,o){i(r,o,n)}},pee=class extends nae{constructor(i,r,o,s,a,l){super(r,o,s,new lse(i.getContainerDomNode(),a),l),this.host=void 0;const c=gee.get(i);if(c){const u=c.widget;this.host={_serviceBrand:void 0,get mainContainer(){return u.getDomNode()},getContainer(){return u.getDomNode()},whenContainerStylesLoaded(){},get containers(){return[u.getDomNode()]},get activeContainer(){return u.getDomNode()},get mainContainerDimension(){return i.getLayoutInfo()},get activeContainerDimension(){return i.getLayoutInfo()},get onDidLayoutMainContainer(){return i.onDidLayoutChange},get onDidLayoutActiveContainer(){return i.onDidLayoutChange},get onDidLayoutContainer(){return On.map(i.onDidLayoutChange,d=>({container:u.getDomNode(),dimension:d}))},get onDidChangeActiveContainer(){return On.None},get onDidAddContainer(){return On.None},get mainContainerOffset(){return{top:0,quickPickTop:0}},get activeContainerOffset(){return{top:0,quickPickTop:0}},focus:()=>i.focus()}}else this.host=void 0}createController(){return super.createController(this.host)}},pee=nSe([Sk(1,ji),Sk(2,ur),Sk(3,Ru),Sk(4,Jo),Sk(5,co)],pee),iae=class{get activeService(){const i=this.codeEditorService.getFocusedCodeEditor();if(!i)throw new Error("Quick input service needs a focused editor to work.");let r=this.mapEditorToService.get(i);if(!r){const o=r=this.instantiationService.createInstance(pee,i);this.mapEditorToService.set(i,r),vL(i.onDidDispose)(()=>{o.dispose(),this.mapEditorToService.delete(i)})}return r}get currentQuickInput(){return this.activeService.currentQuickInput}get quickAccess(){return this.activeService.quickAccess}constructor(i,r){this.instantiationService=i,this.codeEditorService=r,this.mapEditorToService=new Map}pick(i,r,o=no.None){return this.activeService.pick(i,r,o)}createQuickPick(i={useSeparators:!1}){return this.activeService.createQuickPick(i)}createInputBox(){return this.activeService.createInputBox()}},iae=nSe([Sk(0,ji),Sk(1,Jo)],iae),gee=(e=class{static get(i){return i.getContribution(e.ID)}constructor(i){this.editor=i,this.widget=new Uht(this.editor)}dispose(){this.widget.dispose()}},e.ID="editor.controller.quickInput",e),Uht=(t=class{constructor(i){this.codeEditor=i,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return t.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}},t.ID="editor.contrib.quickInputWidget",t),qo(gee.ID,gee,4)}});function _Un(e){if(!e||!Array.isArray(e))return[];const t=[];let n=0;for(let i=0,r=e.length;i<r;i++){const o=e[i];let s=-1;if(typeof o.fontStyle=="string"){s=0;const c=o.fontStyle.split(" ");for(let u=0,d=c.length;u<d;u++)switch(c[u]){case"italic":s=s|1;break;case"bold":s=s|2;break;case"underline":s=s|4;break;case"strikethrough":s=s|8;break}}let a=null;typeof o.foreground=="string"&&(a=o.foreground);let l=null;typeof o.background=="string"&&(l=o.background),t[n++]=new QYt(o.token||"",i,s,a,l)}return t}function wUn(e,t){e.sort((u,d)=>{const h=SUn(u.token,d.token);return h!==0?h:u.index-d.index});let n=0,i="000000",r="ffffff";for(;e.length>=1&&e[0].token==="";){const u=e.shift();u.fontStyle!==-1&&(n=u.fontStyle),u.foreground!==null&&(i=u.foreground),u.background!==null&&(r=u.background)}const o=new ZYt;for(const u of t)o.getId(u);const s=o.getId(i),a=o.getId(r),l=new JYt(n,s,a),c=new eQt(l);for(let u=0,d=e.length;u<d;u++){const h=e[u];c.insert(h.token,h.fontStyle,o.getId(h.foreground),o.getId(h.background))}return new pUe(o,c)}function CUn(e){const t=e.match(XYt);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}function SUn(e,t){return e<t?-1:e>t?1:0}function xUn(e){const t=[];for(let n=1,i=e.length;n<i;n++){const r=e[n];t[n]=`.mtk${n} { color: ${r}; }`}return t.push(".mtki { font-style: italic; }"),t.push(".mtkb { font-weight: bold; }"),t.push(".mtku { text-decoration: underline; text-underline-position: under; }"),t.push(".mtks { text-decoration: line-through; }"),t.push(".mtks.mtku { text-decoration: underline line-through; text-underline-position: under; }"),t.join(`
`)}var QYt,$ht,ZYt,pUe,XYt,JYt,eQt,EUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js"(){ql(),QYt=class{constructor(e,t,n,i,r){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=n,this.foreground=i,this.background=r}},$ht=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,ZYt=class{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(e){if(e===null)return 0;const t=e.match($ht);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();let n=this._color2id.get(e);return n||(n=++this._lastColorId,this._color2id.set(e,n),this._id2color[n]=rn.fromHex("#"+e),n)}getColorMap(){return this._id2color.slice(0)}},pUe=class{static createFromRawTokenTheme(e,t){return this.createFromParsedTokenTheme(_Un(e),t)}static createFromParsedTokenTheme(e,t){return wUn(e,t)}constructor(e,t){this._colorMap=e,this._root=t,this._cache=new Map}getColorMap(){return this._colorMap.getColorMap()}_match(e){return this._root.match(e)}match(e,t){let n=this._cache.get(t);if(typeof n>"u"){const i=this._match(t),r=CUn(t);n=(i.metadata|r<<8)>>>0,this._cache.set(t,n)}return(n|e<<0)>>>0}},XYt=/\b(comment|string|regex|regexp)\b/,JYt=class tQt{constructor(t,n,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=t,this._foreground=n,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new tQt(this._fontStyle,this._foreground,this._background)}acceptOverwrite(t,n,i){t!==-1&&(this._fontStyle=t),n!==0&&(this._foreground=n),i!==0&&(this._background=i),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}},eQt=class nQt{constructor(t){this._themeTrieElementBrand=void 0,this._mainRule=t,this._children=new Map}match(t){if(t==="")return this._mainRule;const n=t.indexOf(".");let i,r;n===-1?(i=t,r=""):(i=t.substring(0,n),r=t.substring(n+1));const o=this._children.get(i);return typeof o<"u"?o.match(r):this._mainRule}insert(t,n,i,r){if(t===""){this._mainRule.acceptOverwrite(n,i,r);return}const o=t.indexOf(".");let s,a;o===-1?(s=t,a=""):(s=t.substring(0,o),a=t.substring(o+1));let l=this._children.get(s);typeof l>"u"&&(l=new nQt(this._mainRule.clone()),this._children.set(s,l)),l.insert(a,n,i,r)}}}}),iQt,rQt,oQt,sQt,AUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/common/themes.js"(){kb(),ll(),iQt={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[By]:"#FFFFFE",[K1]:"#000000",[t5e]:"#E5EBF1",[a6]:"#D3D3D3",[l6]:"#939393",[kue]:"#ADD6FF4D"}},rQt={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[By]:"#1E1E1E",[K1]:"#D4D4D4",[t5e]:"#3A3D41",[a6]:"#404040",[l6]:"#707070",[kue]:"#ADD6FF26"}},oQt={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[By]:"#000000",[K1]:"#FFFFFF",[a6]:"#FFFFFF",[l6]:"#FFFFFF"}},sQt={base:"hc-light",inherit:!1,rules:[{token:"",foreground:"292929",background:"FFFFFF"},{token:"invalid",foreground:"B5200D"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"264F70"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"B5200D"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"264F78"},{token:"attribute.value",foreground:"0451A5"},{token:"string",foreground:"A31515"},{token:"string.sql",foreground:"B5200D"},{token:"keyword",foreground:"0000FF"},{token:"keyword.flow",foreground:"AF00DB"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[By]:"#FFFFFF",[K1]:"#292929",[a6]:"#292929",[l6]:"#292929"}}}});function Xa(e,t,n,i){return SI.registerIcon(e,t,n,i)}function aQt(){return SI}function DUn(){const e=R7t();for(const t in e){const n="\\"+e[t].toString(16);SI.registerIcon(t,{fontCharacter:n})}}var qht,Ght,Kht,Yht,SI,iSe,rSe,oSe,gUe,X0=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/iconRegistry.js"(){fr(),ia(),fpe(),Ra(),Un(),as(),ss(),bn(),X3e(),Fu(),qht={IconContribution:"base.contributions.icons"},(function(e){function t(n,i){let r=n.defaults;for(;lr.isThemeIcon(r);){const o=SI.getIcon(r.id);if(!o)return;r=o.defaults}return r}e.getDefinition=t})(Ght||(Ght={})),(function(e){function t(i){return{weight:i.weight,style:i.style,src:i.src.map(r=>({format:r.format,location:r.location.toString()}))}}e.toJSONObject=t;function n(i){const r=o=>sm(o)?o:void 0;if(i&&Array.isArray(i.src)&&i.src.every(o=>sm(o.format)&&sm(o.location)))return{weight:r(i.weight),style:r(i.style),src:i.src.map(o=>({format:o.format,location:Ui.parse(o.location)}))}}e.fromJSONObject=n})(Kht||(Kht={})),Yht=class{constructor(){this._onDidChange=new bt,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:R("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:R("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${lr.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,n,i){const r=this.iconsById[e];if(r){if(n&&!r.description){r.description=n,this.iconSchema.properties[e].markdownDescription=`${n} $(${e})`;const a=this.iconReferenceSchema.enum.indexOf(e);a!==-1&&(this.iconReferenceSchema.enumDescriptions[a]=n),this._onDidChange.fire()}return r}const o={id:e,description:n,defaults:t,deprecationMessage:i};this.iconsById[e]=o;const s={$ref:"#/definitions/icons"};return i&&(s.deprecationMessage=i),n&&(s.markdownDescription=`${n}: $(${e})`),this.iconSchema.properties[e]=s,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(n||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map(e=>this.iconsById[e])}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){const e=(r,o)=>r.id.localeCompare(o.id),t=r=>{for(;lr.isThemeIcon(r.defaults);)r=this.iconsById[r.defaults.id];return`codicon codicon-${r?r.id:""}`},n=[];n.push("| preview     | identifier                        | default codicon ID                | description"),n.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const i=Object.keys(this.iconsById).map(r=>this.iconsById[r]);for(const r of i.filter(o=>!!o.description).sort(e))n.push(`|<i class="${t(r)}"></i>|${r.id}|${lr.isThemeIcon(r.defaults)?r.defaults.id:r.id}|${r.description||""}|`);n.push("| preview     | identifier                        "),n.push("| ----------- | --------------------------------- |");for(const r of i.filter(o=>!lr.isThemeIcon(o.defaults)).sort(e))n.push(`|<i class="${t(r)}"></i>|${r.id}|`);return n.join(`
`)}},SI=new Yht,ml.add(qht.IconContribution,SI),DUn(),iSe="vscode://schemas/icons",rSe=ml.as(Rq.JSONContribution),rSe.registerSchema(iSe,SI.getIconSchema()),oSe=new Gs(()=>rSe.notifySchemaChanged(iSe),200),SI.onDidChange(()=>{oSe.isScheduled()||oSe.schedule()}),gUe=Xa("widget-close",An.close,R("widgetClose","Icon for the close action in widgets.")),Xa("goto-previous-location",An.arrowUp,R("previousChangeIcon","Icon for goto previous editor location.")),Xa("goto-next-location",An.arrowDown,R("nextChangeIcon","Icon for goto next editor location.")),lr.modify(An.sync,"spin"),lr.modify(An.loading,"spin")}});function TUn(e){const t=new Jt,n=t.add(new bt),i=aQt();return t.add(i.onDidChange(()=>n.fire())),e&&t.add(e.onDidProductIconThemeChange(()=>n.fire())),{dispose:()=>t.dispose(),onDidChange:n.event,getCSS(){const r=e?e.getProductIconTheme():new mUe,o={},s=[],a=[];for(const l of i.getIcons()){const c=r.getIcon(l);if(!c)continue;const u=c.font,d=`--vscode-icon-${l.id}-font-family`,h=`--vscode-icon-${l.id}-content`;u?(o[u.id]=u.definition,a.push(`${d}: ${bwe(u.id)};`,`${h}: '${c.fontCharacter}';`),s.push(`.codicon-${l.id}:before { content: '${c.fontCharacter}'; font-family: ${bwe(u.id)}; }`)):(a.push(`${h}: '${c.fontCharacter}'; ${d}: 'codicon';`),s.push(`.codicon-${l.id}:before { content: '${c.fontCharacter}'; }`))}for(const l in o){const c=o[l],u=c.weight?`font-weight: ${c.weight};`:"",d=c.style?`font-style: ${c.style};`:"",h=c.src.map(f=>`${lD(f.location)} format('${f.format}')`).join(", ");s.push(`@font-face { src: ${h}; font-family: ${bwe(l)};${u}${d} font-display: block; }`)}return s.push(`:root { ${a.join(" ")} }`),s.join(`
`)}}}var mUe,kUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/browser/iconsStyleSheet.js"(){Fn(),Un(),Nt(),Ra(),X0(),mUe=class{getIcon(e){const t=aQt();let n=e.defaults;for(;lr.isThemeIcon(n);){const i=t.getIcon(n.id);if(!i)return;n=i.defaults}return n}}}});function mee(e){return e===ZS||e===OO||e===xI||e===EI}function RBe(e){switch(e){case ZS:return iQt;case OO:return rQt;case xI:return oQt;case EI:return sQt}}function vee(e){const t=RBe(e);return new FBe(e,t)}var ZS,OO,xI,EI,sSe,Qht,FBe,lQt,cQt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/standaloneThemeService.js"(){Fn(),zv(),ql(),Un(),ra(),I7(),EUn(),AUn(),Fu(),ll(),Ys(),Nt(),VC(),kUn(),wg(),ZS="vs",OO="vs-dark",xI="hc-black",EI="hc-light",sSe=ml.as(e5e.ColorContribution),Qht=ml.as(Q5e.ThemingContribution),FBe=class{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;const n=t.base;e.length>0?(mee(e)?this.id=e:this.id=n+" "+e,this.themeName=e):(this.id=n,this.themeName=n),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const e=new Map;for(const t in this.themeData.colors)e.set(t,rn.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){const t=RBe(this.themeData.base);for(const n in t.colors)e.has(n)||e.set(n,rn.fromHex(t.colors[n]))}this.colors=e}return this.colors}getColor(e,t){const n=this.getColors().get(e);if(n)return n;if(t!==!1)return this.getDefault(e)}getDefault(e){let t=this.defaultColors[e];return t||(t=sSe.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return this.getColors().has(e)}get type(){switch(this.base){case ZS:return Wy.LIGHT;case xI:return Wy.HIGH_CONTRAST_DARK;case EI:return Wy.HIGH_CONTRAST_LIGHT;default:return Wy.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){const r=RBe(this.themeData.base);e=r.rules,r.encodedTokensColors&&(t=r.encodedTokensColors)}const n=this.themeData.colors["editor.foreground"],i=this.themeData.colors["editor.background"];if(n||i){const r={token:""};n&&(r.foreground=n),i&&(r.background=i),e.push(r)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=pUe.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,n){const r=this.tokenTheme._match([e].concat(t).join(".")).metadata,o=gh.getForeground(r),s=gh.getFontStyle(r);return{foreground:o,italic:!!(s&1),bold:!!(s&2),underline:!!(s&4),strikethrough:!!(s&8)}}},lQt=class extends St{constructor(){super(),this._onColorThemeChange=this._register(new bt),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new bt),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new mUe,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(ZS,vee(ZS)),this._knownThemes.set(OO,vee(OO)),this._knownThemes.set(xI,vee(xI)),this._knownThemes.set(EI,vee(EI));const e=this._register(TUn(this));this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}
${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(ZS),this._onOSSchemeChanged(),this._register(e.onDidChange(()=>{this._codiconCSS=e.getCSS(),this._updateCSS()})),vVt(la,"(forced-colors: active)",()=>{this._onOSSchemeChanged()})}registerEditorContainer(e){return Cue(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=V0(void 0,e=>{e.className="monaco-colors",e.textContent=this._allCSS}),this._styleElements.push(this._globalStyleElement)),St.None}_registerShadowDomContainer(e){const t=V0(e,n=>{n.className="monaco-colors",n.textContent=this._allCSS});return this._styleElements.push(t),{dispose:()=>{for(let n=0;n<this._styleElements.length;n++)if(this._styleElements[n]===t){this._styleElements.splice(n,1);return}}}}defineTheme(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!mee(t.base)&&!mee(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new FBe(e,t)),mee(e)&&this._knownThemes.forEach(n=>{n.base===e&&n.notifyBaseUpdated()}),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;this._knownThemes.has(e)?t=this._knownThemes.get(e):t=this._knownThemes.get(ZS),this._updateActualTheme(t)}_updateActualTheme(e){!e||this._theme===e||(this._theme=e,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const e=la.matchMedia("(forced-colors: active)").matches;if(e!==rC(this._theme.type)){let t;e9(this._theme.type)?t=e?xI:OO:t=e?EI:ZS,this._updateActualTheme(this._knownThemes.get(t))}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const e=[],t={},n={addRule:o=>{t[o]||(e.push(o),t[o]=!0)}};Qht.getThemingParticipants().forEach(o=>o(this._theme,n,this._environment));const i=[];for(const o of sSe.getColors()){const s=this._theme.getColor(o.id,!0);s&&i.push(`${J3e(o.id)}: ${s.toString()};`)}n.addRule(`.monaco-editor, .monaco-diff-editor, .monaco-component { ${i.join(`
`)} }`);const r=this._colorMapOverride||this._theme.tokenTheme.getColorMap();n.addRule(xUn(r)),this._themeCSS=e.join(`
`),this._updateCSS(),Hl.setColorMap(r),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS}
${this._themeCSS}`,this._styleElements.forEach(e=>e.textContent=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}}}),Fv,V7=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js"(){li(),Fv=Ao("themeService")}}),Zht,yee,rae,IUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/accessibility/browser/accessibilityService.js"(){Fn(),wg(),Un(),Nt(),Cm(),sa(),er(),LN(),Zht=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},yee=function(e,t){return function(n,i){t(n,i,e)}},rae=class extends St{constructor(t,n,i){super(),this._contextKeyService=t,this._layoutService=n,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new bt,this._onDidChangeReducedMotion=new bt,this._onDidChangeLinkUnderline=new bt,this._accessibilityModeEnabledContext=o6.bindTo(this._contextKeyService);const r=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(s=>{s.affectsConfiguration("editor.accessibilitySupport")&&(r(),this._onDidChangeScreenReaderOptimized.fire()),s.affectsConfiguration("workbench.reduceMotion")&&(this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._onDidChangeReducedMotion.fire())})),r(),this._register(this.onDidChangeScreenReaderOptimized(()=>r()));const o=la.matchMedia("(prefers-reduced-motion: reduce)");this._systemMotionReduced=o.matches,this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._linkUnderlinesEnabled=this._configurationService.getValue("accessibility.underlineLinks"),this.initReducedMotionListeners(o),this.initLinkUnderlineListeners()}initReducedMotionListeners(t){this._register(qt(t,"change",()=>{this._systemMotionReduced=t.matches,this._configMotionReduced==="auto"&&this._onDidChangeReducedMotion.fire()}));const n=()=>{const i=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle("reduce-motion",i),this._layoutService.mainContainer.classList.toggle("enable-motion",!i)};n(),this._register(this.onDidChangeReducedMotion(()=>n()))}initLinkUnderlineListeners(){this._register(this._configurationService.onDidChangeConfiguration(n=>{if(n.affectsConfiguration("accessibility.underlineLinks")){const i=this._configurationService.getValue("accessibility.underlineLinks");this._linkUnderlinesEnabled=i,this._onDidChangeLinkUnderline.fire()}}));const t=()=>{const n=this._linkUnderlinesEnabled;this._layoutService.mainContainer.classList.toggle("underline-links",n)};t(),this._register(this.onDidChangeLinkUnderlines(()=>t()))}onDidChangeLinkUnderlines(t){return this._onDidChangeLinkUnderline.event(t)}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const t=this._configurationService.getValue("editor.accessibilitySupport");return t==="on"||t==="auto"&&this._accessibilitySupport===2}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const t=this._configMotionReduced;return t==="on"||t==="auto"&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}},rae=Zht([yee(0,ur),yee(1,yT),yee(2,co)],rae)}});function LUn(e,t,n){const i=Z7n(t)?t.submenu.id:t.id,r=typeof t.title=="string"?t.title:t.title.value,o=lR({id:`hide/${e.id}/${i}`,label:R("hide.label","Hide '{0}'",r),run(){n.updateHidden(e,i,!0)}}),s=lR({id:`toggle/${e.id}/${i}`,label:r,get checked(){return!n.isHidden(e,i)},run(){n.updateHidden(e,i,!!this.checked)}});return{hide:o,toggle:s,get isHidden(){return!s.checked}}}function uQt(e,t,n,i=void 0,r=!0){return lR({id:`configureKeybinding/${n}`,label:R("configure keybinding","Configure Keybinding"),enabled:r,run(){const s=!!!t.lookupKeybinding(n)&&i?i.serialize():void 0;e.executeCommand("workbench.action.openGlobalKeybindings",`@command:${n}`+(s?` +when:${s}`:""))}})}var _V,Xw,U5,wV,oae,bee,Xht,_ee,CV,dQt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/actions/common/menuService.js"(){var e;fr(),Un(),Nt(),ha(),Ks(),er(),wd(),CE(),rr(),bn(),tl(),_V=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},Xw=function(t,n){return function(i,r){n(i,r,t)}},oae=class{constructor(n,i,r){this._commandService=n,this._keybindingService=i,this._hiddenStates=new bee(r)}createMenu(n,i,r){return new CV(n,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...r},this._commandService,this._keybindingService,i)}getMenuActions(n,i,r){const o=new CV(n,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...r},this._commandService,this._keybindingService,i),s=o.getActions(r);return o.dispose(),s}resetHiddenStates(n){this._hiddenStates.reset(n)}},oae=_V([Xw(0,Oa),Xw(1,Cs),Xw(2,ab)],oae),bee=(e=class{constructor(n){this._storageService=n,this._disposables=new Jt,this._onDidChange=new bt,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1,this._hiddenByDefaultCache=new Map;try{const i=n.get(U5._key,0,"{}");this._data=JSON.parse(i)}catch{this._data=Object.create(null)}this._disposables.add(n.onDidChangeValue(0,U5._key,this._disposables)(()=>{if(!this._ignoreChangeEvent)try{const i=n.get(U5._key,0,"{}");this._data=JSON.parse(i)}catch(i){console.log("FAILED to read storage after UPDATE",i)}this._onDidChange.fire()}))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}_isHiddenByDefault(n,i){return this._hiddenByDefaultCache.get(`${n.id}/${i}`)??!1}setDefaultState(n,i,r){this._hiddenByDefaultCache.set(`${n.id}/${i}`,r)}isHidden(n,i){const r=this._isHiddenByDefault(n,i),o=this._data[n.id]?.includes(i)??!1;return r?!o:o}updateHidden(n,i,r){this._isHiddenByDefault(n,i)&&(r=!r);const s=this._data[n.id];if(r)s?s.indexOf(i)<0&&s.push(i):this._data[n.id]=[i];else if(s){const a=s.indexOf(i);a>=0&&A7n(s,a),s.length===0&&delete this._data[n.id]}this._persist()}reset(n){if(n===void 0)this._data=Object.create(null),this._persist();else{for(const{id:i}of n)this._data[i]&&delete this._data[i];this._persist()}}_persist(){try{this._ignoreChangeEvent=!0;const n=JSON.stringify(this._data);this._storageService.store(U5._key,n,0,0)}finally{this._ignoreChangeEvent=!1}}},U5=e,e._key="menu.hiddenCommands",e),bee=U5=_V([Xw(0,ab)],bee),Xht=class sae{constructor(n,i){this._id=n,this._collectContextKeysForSubmenus=i,this._menuGroups=[],this._allMenuIds=new Set,this._structureContextKeys=new Set,this._preconditionContextKeys=new Set,this._toggledContextKeys=new Set,this.refresh()}get allMenuIds(){return this._allMenuIds}get structureContextKeys(){return this._structureContextKeys}get preconditionContextKeys(){return this._preconditionContextKeys}get toggledContextKeys(){return this._toggledContextKeys}refresh(){this._menuGroups.length=0,this._allMenuIds.clear(),this._structureContextKeys.clear(),this._preconditionContextKeys.clear(),this._toggledContextKeys.clear();const n=this._sort(fd.getMenuItems(this._id));let i;for(const r of n){const o=r.group||"";(!i||i[0]!==o)&&(i=[o,[]],this._menuGroups.push(i)),i[1].push(r),this._collectContextKeysAndSubmenuIds(r)}this._allMenuIds.add(this._id)}_sort(n){return n}_collectContextKeysAndSubmenuIds(n){if(sae._fillInKbExprKeys(n.when,this._structureContextKeys),n6(n)){if(n.command.precondition&&sae._fillInKbExprKeys(n.command.precondition,this._preconditionContextKeys),n.command.toggled){const i=n.command.toggled.condition||n.command.toggled;sae._fillInKbExprKeys(i,this._toggledContextKeys)}}else this._collectContextKeysForSubmenus&&(fd.getMenuItems(n.submenu).forEach(this._collectContextKeysAndSubmenuIds,this),this._allMenuIds.add(n.submenu))}static _fillInKbExprKeys(n,i){if(n)for(const r of n.keys())i.add(r)}},_ee=wV=class extends Xht{constructor(n,i,r,o,s,a){super(n,r),this._hiddenStates=i,this._commandService=o,this._keybindingService=s,this._contextKeyService=a,this.refresh()}createActionGroups(n){const i=[];for(const r of this._menuGroups){const[o,s]=r;let a;for(const l of s)if(this._contextKeyService.contextMatchesRules(l.when)){const c=n6(l);c&&this._hiddenStates.setDefaultState(this._id,l.command.id,!!l.isHiddenByDefault);const u=LUn(this._id,c?l.command:l,this._hiddenStates);if(c){const d=uQt(this._commandService,this._keybindingService,l.command.id,l.when);(a??=[]).push(new um(l.command,l.alt,n,u,d,this._contextKeyService,this._commandService))}else{const d=new wV(l.submenu,this._hiddenStates,this._collectContextKeysForSubmenus,this._commandService,this._keybindingService,this._contextKeyService).createActionGroups(n),h=zd.join(...d.map(f=>f[1]));h.length>0&&(a??=[]).push(new cR(l,u,h))}}a&&a.length>0&&i.push([o,a])}return i}_sort(n){return n.sort(wV._compareMenuItems)}static _compareMenuItems(n,i){const r=n.group,o=i.group;if(r!==o){if(r){if(!o)return-1}else return 1;if(r==="navigation")return-1;if(o==="navigation")return 1;const l=r.localeCompare(o);if(l!==0)return l}const s=n.order||0,a=i.order||0;return s<a?-1:s>a?1:wV._compareTitles(n6(n)?n.command.title:n.title,n6(i)?i.command.title:i.title)}static _compareTitles(n,i){const r=typeof n=="string"?n:n.original,o=typeof i=="string"?i:i.original;return r.localeCompare(o)}},_ee=wV=_V([Xw(3,Oa),Xw(4,Cs),Xw(5,ur)],_ee),CV=class{constructor(n,i,r,o,s,a){this._disposables=new Jt,this._menuInfo=new _ee(n,i,r.emitEventsForSubmenuChanges,o,s,a);const l=new Gs(()=>{this._menuInfo.refresh(),this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!0,isToggleChange:!0})},r.eventDebounceDelay);this._disposables.add(l),this._disposables.add(fd.onDidChangeMenu(h=>{for(const f of this._menuInfo.allMenuIds)if(h.has(f)){l.schedule();break}}));const c=this._disposables.add(new Jt),u=h=>{let f=!1,p=!1,g=!1;for(const m of h)if(f=f||m.isStructuralChange,p=p||m.isEnablementChange,g=g||m.isToggleChange,f&&p&&g)break;return{menu:this,isStructuralChange:f,isEnablementChange:p,isToggleChange:g}},d=()=>{c.add(a.onDidChangeContext(h=>{const f=h.affectsSome(this._menuInfo.structureContextKeys),p=h.affectsSome(this._menuInfo.preconditionContextKeys),g=h.affectsSome(this._menuInfo.toggledContextKeys);(f||p||g)&&this._onDidChange.fire({menu:this,isStructuralChange:f,isEnablementChange:p,isToggleChange:g})})),c.add(i.onDidChange(h=>{this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!1,isToggleChange:!1})}))};this._onDidChange=new _Ve({onWillAddFirstListener:d,onDidRemoveLastListener:c.clear.bind(c),delay:r.eventDebounceDelay,merge:u}),this.onDidChange=this._onDidChange.event}getActions(n){return this._menuInfo.createActionGroups(n)}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}},CV=_V([Xw(3,Oa),Xw(4,Cs),Xw(5,ur)],CV)}}),Jht,aSe,lSe,cSe,aae,NUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/clipboard/browser/clipboardService.js"(){var e;zv(),Fn(),wg(),fr(),Un(),Y2(),Nt(),ss(),LN(),wm(),Jht=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},aSe=function(t,n){return function(i,r){n(i,r,t)}},cSe="application/vnd.code.resources",aae=(e=class extends St{constructor(n,i){super(),this.layoutService=n,this.logService=i,this.mapTextToType=new Map,this.findText="",this.resources=[],this.resourcesStateHash=void 0,(Qx||T3e)&&this.installWebKitWriteTextWorkaround(),this._register(On.runAndSubscribe(Oq,({window:r,disposables:o})=>{o.add(qt(r.document,"copy",()=>this.clearResourcesState()))},{window:la,disposables:this._store}))}installWebKitWriteTextWorkaround(){const n=()=>{const i=new K2;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=i,MH().navigator.clipboard.write([new ClipboardItem({"text/plain":i.p})]).catch(async r=>{(!(r instanceof Error)||r.name!=="NotAllowedError"||!i.isRejected)&&this.logService.error(r)})};this._register(On.runAndSubscribe(this.layoutService.onDidAddContainer,({container:i,disposables:r})=>{r.add(qt(i,"click",n)),r.add(qt(i,"keydown",n))},{container:this.layoutService.mainContainer,disposables:this._store}))}async writeText(n,i){if(this.clearResourcesState(),i){this.mapTextToType.set(i,n);return}if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(n);try{return await MH().navigator.clipboard.writeText(n)}catch(r){console.error(r)}this.fallbackWriteText(n)}fallbackWriteText(n){const i=S7(),r=i.activeElement,o=i.body.appendChild(In("textarea",{"aria-hidden":!0}));o.style.height="1px",o.style.width="1px",o.style.position="absolute",o.value=n,o.focus(),o.select(),i.execCommand("copy"),yd(r)&&r.focus(),o.remove()}async readText(n){if(n)return this.mapTextToType.get(n)||"";try{return await MH().navigator.clipboard.readText()}catch(i){console.error(i)}return""}async readFindText(){return this.findText}async writeFindText(n){this.findText=n}async readResources(){try{const i=await MH().navigator.clipboard.read();for(const r of i)if(r.types.includes(`web ${cSe}`)){const o=await r.getType(`web ${cSe}`);return JSON.parse(await o.text()).map(a=>Ui.from(a))}}catch{}const n=await this.computeResourcesStateHash();return this.resourcesStateHash!==n&&this.clearResourcesState(),this.resources}async computeResourcesStateHash(){if(this.resources.length===0)return;const n=await this.readText();return Rpe(n.substring(0,lSe.MAX_RESOURCE_STATE_SOURCE_LENGTH))}clearInternalState(){this.clearResourcesState()}clearResourcesState(){this.resources=[],this.resourcesStateHash=void 0}},lSe=e,e.MAX_RESOURCE_STATE_SOURCE_LENGTH=1e3,e),aae=lSe=Jht([aSe(0,yT),aSe(1,bh)],aae)}}),tE,zN=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/clipboard/common/clipboardService.js"(){li(),tE=Ao("clipboardService")}});function PUn(e,t){return e.allKeysContainedIn(new Set(Object.keys(t)))}function MUn(e){for(;e;){if(e.hasAttribute(d6)){const t=e.getAttribute(d6);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}function OUn(e,t,n){e.get(ur).createKey(String(t),RUn(n))}function RUn(e){return bWt(e,t=>{if(typeof t=="object"&&t.$mid===1)return Ui.revive(t).toString();if(t instanceof Ui)return t.toString()})}var eft,tft,d6,wee,SV,nft,ift,uSe,dSe,rft,hSe,lae,oft,FUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/contextkey/browser/contextKeyService.js"(){var e,t;Un(),bg(),Nt(),bm(),dWe(),ss(),bn(),Ks(),sa(),er(),eft=function(n,i,r,o){var s=arguments.length,a=s<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,r):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,i,r,o);else for(var c=n.length-1;c>=0;c--)(l=n[c])&&(a=(s<3?l(a):s>3?l(i,r,a):l(i,r))||a);return s>3&&a&&Object.defineProperty(i,r,a),a},tft=function(n,i){return function(r,o){i(r,o,n)}},d6="data-keybinding-context",wee=class{constructor(n,i){this._id=n,this._parent=i,this._value=Object.create(null),this._value._contextId=n}get value(){return{...this._value}}setValue(n,i){return this._value[n]!==i?(this._value[n]=i,!0):!1}removeValue(n){return n in this._value?(delete this._value[n],!0):!1}getValue(n){const i=this._value[n];return typeof i>"u"&&this._parent?this._parent.getValue(n):i}},SV=(e=class extends wee{constructor(){super(-1,null)}setValue(i,r){return!1}removeValue(i){return!1}getValue(i){}},e.INSTANCE=new e,e),nft=(t=class extends wee{constructor(i,r,o){super(i,null),this._configurationService=r,this._values=uWe.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration(s=>{if(s.source===7){const a=Array.from(this._values,([l])=>l);this._values.clear(),o.fire(new dSe(a))}else{const a=[];for(const l of s.affectedKeys){const c=`config.${l}`,u=this._values.findSuperstr(c);u!==void 0&&(a.push(...Vo.map(u,([d])=>d)),this._values.deleteSuperstr(c)),this._values.has(c)&&(a.push(c),this._values.delete(c))}o.fire(new dSe(a))}})}dispose(){this._listener.dispose()}getValue(i){if(i.indexOf(t._keyPrefix)!==0)return super.getValue(i);if(this._values.has(i))return this._values.get(i);const r=i.substr(t._keyPrefix.length),o=this._configurationService.getValue(r);let s;switch(typeof o){case"number":case"boolean":case"string":s=o;break;default:Array.isArray(o)?s=JSON.stringify(o):s=o}return this._values.set(i,s),s}setValue(i,r){return super.setValue(i,r)}removeValue(i){return super.removeValue(i)}},t._keyPrefix="config.",t),ift=class{constructor(n,i,r){this._service=n,this._key=i,this._defaultValue=r,this.reset()}set(n){this._service.setContext(this._key,n)}reset(){typeof this._defaultValue>"u"?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}},uSe=class{constructor(n){this.key=n}affectsSome(n){return n.has(this.key)}allKeysContainedIn(n){return this.affectsSome(n)}},dSe=class{constructor(n){this.keys=n}affectsSome(n){for(const i of this.keys)if(n.has(i))return!0;return!1}allKeysContainedIn(n){return this.keys.every(i=>n.has(i))}},rft=class{constructor(n){this.events=n}affectsSome(n){for(const i of this.events)if(i.affectsSome(n))return!0;return!1}allKeysContainedIn(n){return this.events.every(i=>i.allKeysContainedIn(n))}},hSe=class extends St{constructor(n){super(),this._onDidChangeContext=this._register(new bL({merge:i=>new rft(i)})),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=n}createKey(n,i){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new ift(this,n,i)}bufferChangeEvents(n){this._onDidChangeContext.pause();try{n()}finally{this._onDidChangeContext.resume()}}createScoped(n){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new oft(this,n)}contextMatchesRules(n){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const i=this.getContextValuesContainer(this._myContextId);return n?n.evaluate(i):!0}getContextKeyValue(n){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(n)}setContext(n,i){if(this._isDisposed)return;const r=this.getContextValuesContainer(this._myContextId);r&&r.setValue(n,i)&&this._onDidChangeContext.fire(new uSe(n))}removeContext(n){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(n)&&this._onDidChangeContext.fire(new uSe(n))}getContext(n){return this._isDisposed?SV.INSTANCE:this.getContextValuesContainer(MUn(n))}dispose(){super.dispose(),this._isDisposed=!0}},lae=class extends hSe{constructor(i){super(0),this._contexts=new Map,this._lastContextId=0;const r=this._register(new nft(this._myContextId,i,this._onDidChangeContext));this._contexts.set(this._myContextId,r)}getContextValuesContainer(i){return this._isDisposed?SV.INSTANCE:this._contexts.get(i)||SV.INSTANCE}createChildContext(i=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");const r=++this._lastContextId;return this._contexts.set(r,new wee(r,this.getContextValuesContainer(i))),r}disposeContext(i){this._isDisposed||this._contexts.delete(i)}},lae=eft([tft(0,co)],lae),oft=class extends hSe{constructor(n,i){if(super(n.createChildContext()),this._parentChangeListener=this._register(new Yu),this._parent=n,this._updateParentChangeListener(),this._domNode=i,this._domNode.hasAttribute(d6)){let r="";this._domNode.classList&&(r=Array.from(this._domNode.classList.values()).join(", ")),console.error(`Element already has context attribute${r?": "+r:""}`)}this._domNode.setAttribute(d6,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext(n=>{const r=this._parent.getContextValuesContainer(this._myContextId).value;PUn(n,r)||this._onDidChangeContext.fire(n)})}dispose(){this._isDisposed||(this._parent.disposeContext(this._myContextId),this._domNode.removeAttribute(d6),super.dispose())}getContextValuesContainer(n){return this._isDisposed?SV.INSTANCE:this._parent.getContextValuesContainer(n)}createChildContext(n=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(n)}disposeContext(n){this._isDisposed||this._parent.disposeContext(n)}},Ro.registerCommand("_setContext",OUn),Ro.registerCommand({id:"getContextKeyInfo",handler(){return[...Qn.all()].sort((n,i)=>n.key.localeCompare(i.key))},metadata:{description:R("getContextKeyInfo","A command that returns information about context keys"),args:[]}}),Ro.registerCommand("_generateContextKeyInfo",function(){const n=[],i=new Set;for(const r of Qn.all())i.has(r.key)||(i.add(r.key),n.push(r));n.sort((r,o)=>r.key.localeCompare(o.key)),console.log(JSON.stringify(n,void 0,2))})}}),sft,BBe,BUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/instantiation/common/graph.js"(){sft=class{constructor(e,t){this.key=e,this.data=t,this.incoming=new Map,this.outgoing=new Map}},BBe=class{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(const t of this._nodes.values())t.outgoing.size===0&&e.push(t);return e}insertEdge(e,t){const n=this.lookupOrInsertNode(e),i=this.lookupOrInsertNode(t);n.outgoing.set(i.key,i),i.incoming.set(n.key,n)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(const n of this._nodes.values())n.outgoing.delete(t),n.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let n=this._nodes.get(t);return n||(n=new sft(t,e),this._nodes.set(t,n)),n}isEmpty(){return this._nodes.size===0}toString(){const e=[];for(const[t,n]of this._nodes)e.push(`${t}
	(-> incoming)[${[...n.incoming.keys()].join(", ")}]
	(outgoing ->)[${[...n.outgoing.keys()].join(",")}]
`);return e.join(`
`)}findCycleSlow(){for(const[e,t]of this._nodes){const n=new Set([e]),i=this._findCycle(t,n);if(i)return i}}_findCycle(e,t){for(const[n,i]of e.outgoing){if(t.has(n))return[...t,n].join(" -> ");t.add(n);const r=this._findCycle(i,t);if(r)return r;t.delete(n)}}}}}),iF,H7=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/instantiation/common/serviceCollection.js"(){iF=class{constructor(...e){this._entries=new Map;for(const[t,n]of e)this.set(t,n)}set(e,t){const n=this._entries.get(e);return this._entries.set(e,t),n}get(e){return this._entries.get(e)}}}}),aft,fSe,hQt,Cee,jUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiationService.js"(){var e;fr(),Vi(),Nt(),DHe(),BUn(),li(),H7(),_b(),aft=!1,fSe=class extends Error{constructor(t){super("cyclic dependency between services"),this.message=t.findCycleSlow()??`UNABLE to detect cycle, dumping graph: 
${t.toString()}`}},hQt=class jBe{constructor(n=new iF,i=!1,r,o=aft){this._services=n,this._strict=i,this._parent=r,this._enableTracing=o,this._isDisposed=!1,this._servicesToMaybeDispose=new Set,this._children=new Set,this._activeInstantiations=new Set,this._services.set(ji,this),this._globalGraph=o?r?._globalGraph??new BBe(s=>s):void 0}dispose(){if(!this._isDisposed){this._isDisposed=!0,xa(this._children),this._children.clear();for(const n of this._servicesToMaybeDispose)dpe(n)&&n.dispose();this._servicesToMaybeDispose.clear()}}_throwIfDisposed(){if(this._isDisposed)throw new Error("InstantiationService has been disposed")}createChild(n,i){this._throwIfDisposed();const r=this,o=new class extends jBe{dispose(){r._children.delete(o),super.dispose()}}(n,this._strict,this,this._enableTracing);return this._children.add(o),i?.add(o),o}invokeFunction(n,...i){this._throwIfDisposed();const r=Cee.traceInvocation(this._enableTracing,n);let o=!1;try{return n({get:a=>{if(o)throw yVe("service accessor is only valid during the invocation of its target method");const l=this._getOrCreateServiceInstance(a,r);if(!l)throw new Error(`[invokeFunction] unknown service '${a}'`);return l}},...i)}finally{o=!0,r.stop()}}createInstance(n,...i){this._throwIfDisposed();let r,o;return n instanceof R1?(r=Cee.traceCreation(this._enableTracing,n.ctor),o=this._createInstance(n.ctor,n.staticArguments.concat(i),r)):(r=Cee.traceCreation(this._enableTracing,n),o=this._createInstance(n,i,r)),r.stop(),o}_createInstance(n,i=[],r){const o=Y1.getServiceDependencies(n).sort((l,c)=>l.index-c.index),s=[];for(const l of o){const c=this._getOrCreateServiceInstance(l.id,r);c||this._throwIfStrict(`[createInstance] ${n.name} depends on UNKNOWN service ${l.id}.`,!1),s.push(c)}const a=o.length>0?o[0].index:i.length;if(i.length!==a){console.trace(`[createInstance] First service dependency of ${n.name} at position ${a+1} conflicts with ${i.length} static arguments`);const l=a-i.length;l>0?i=i.concat(new Array(l)):i=i.slice(0,a)}return Reflect.construct(n,i.concat(s))}_setCreatedServiceInstance(n,i){if(this._services.get(n)instanceof R1)this._services.set(n,i);else if(this._parent)this._parent._setCreatedServiceInstance(n,i);else throw new Error("illegalState - setting UNKNOWN service instance")}_getServiceInstanceOrDescriptor(n){const i=this._services.get(n);return!i&&this._parent?this._parent._getServiceInstanceOrDescriptor(n):i}_getOrCreateServiceInstance(n,i){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(n));const r=this._getServiceInstanceOrDescriptor(n);return r instanceof R1?this._safeCreateAndCacheServiceInstance(n,r,i.branch(n,!0)):(i.branch(n,!1),r)}_safeCreateAndCacheServiceInstance(n,i,r){if(this._activeInstantiations.has(n))throw new Error(`illegal state - RECURSIVELY instantiating service '${n}'`);this._activeInstantiations.add(n);try{return this._createAndCacheServiceInstance(n,i,r)}finally{this._activeInstantiations.delete(n)}}_createAndCacheServiceInstance(n,i,r){const o=new BBe(c=>c.id.toString());let s=0;const a=[{id:n,desc:i,_trace:r}],l=new Set;for(;a.length;){const c=a.pop();if(!l.has(String(c.id))){if(l.add(String(c.id)),o.lookupOrInsertNode(c),s++>1e3)throw new fSe(o);for(const u of Y1.getServiceDependencies(c.desc.ctor)){const d=this._getServiceInstanceOrDescriptor(u.id);if(d||this._throwIfStrict(`[createInstance] ${n} depends on ${u.id} which is NOT registered.`,!0),this._globalGraph?.insertEdge(String(c.id),String(u.id)),d instanceof R1){const h={id:u.id,desc:d,_trace:c._trace.branch(u.id,!0)};o.insertEdge(c,h),a.push(h)}}}}for(;;){const c=o.roots();if(c.length===0){if(!o.isEmpty())throw new fSe(o);break}for(const{data:u}of c){if(this._getServiceInstanceOrDescriptor(u.id)instanceof R1){const h=this._createServiceInstanceWithOwner(u.id,u.desc.ctor,u.desc.staticArguments,u.desc.supportsDelayedInstantiation,u._trace);this._setCreatedServiceInstance(u.id,h)}o.removeNode(u)}}return this._getServiceInstanceOrDescriptor(n)}_createServiceInstanceWithOwner(n,i,r=[],o,s){if(this._services.get(n)instanceof R1)return this._createServiceInstance(n,i,r,o,s,this._servicesToMaybeDispose);if(this._parent)return this._parent._createServiceInstanceWithOwner(n,i,r,o,s);throw new Error(`illegalState - creating UNKNOWN service instance ${i.name}`)}_createServiceInstance(n,i,r=[],o,s,a){if(o){const l=new jBe(void 0,this._strict,this,this._enableTracing);l._globalGraphImplicitDependency=String(n);const c=new Map,u=new EVt(()=>{const d=l._createInstance(i,r,s);for(const[h,f]of c){const p=d[h];if(typeof p=="function")for(const g of f)g.disposable=p.apply(d,g.listener)}return c.clear(),a.add(d),d});return new Proxy(Object.create(null),{get(d,h){if(!u.isInitialized&&typeof h=="string"&&(h.startsWith("onDid")||h.startsWith("onWill"))){let g=c.get(h);return g||(g=new yp,c.set(h,g)),(v,y,b)=>{if(u.isInitialized)return u.value[h](v,y,b);{const w={listener:[v,y,b],disposable:void 0},E=g.push(w);return zi(()=>{E(),w.disposable?.dispose()})}}}if(h in d)return d[h];const f=u.value;let p=f[h];return typeof p!="function"||(p=p.bind(f),d[h]=p),p},set(d,h,f){return u.value[h]=f,!0},getPrototypeOf(d){return i.prototype}})}else{const l=this._createInstance(i,r,s);return a.add(l),l}}_throwIfStrict(n,i){if(i&&console.warn(n),this._strict)throw new Error(n)}},Cee=(e=class{static traceInvocation(n,i){return n?new e(2,i.name||new Error().stack.split(`
`).slice(3,4).join(`
`)):e._None}static traceCreation(n,i){return n?new e(1,i.name):e._None}constructor(n,i){this.type=n,this.name=i,this._start=Date.now(),this._dep=[]}branch(n,i){const r=new e(3,n.toString());return this._dep.push([n,i,r]),r}stop(){const n=Date.now()-this._start;e._totals+=n;let i=!1;function r(s,a){const l=[],c=new Array(s+1).join("	");for(const[u,d,h]of a._dep)if(d&&h){i=!0,l.push(`${c}CREATES -> ${u}`);const f=r(s+1,h);f&&l.push(f)}else l.push(`${c}uses -> ${u}`);return l.join(`
`)}const o=[`${this.type===1?"CREATE":"CALL"} ${this.name}`,`${r(1,this)}`,`DONE, took ${n.toFixed(2)}ms (grand total ${e._totals.toFixed(2)}ms)`];(n>2||i)&&e.all.add(o.join(`
`))}},e.all=new Set,e._None=new class extends e{constructor(){super(0,null)}stop(){}branch(){return this}},e._totals=0,e)}}),lft,cft,uft,fQt,zUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/markers/common/markerService.js"(){rr(),Un(),bg(),kh(),Gd(),ss(),CT(),lft=new Set([Pr.inMemory,Pr.vscodeSourceControl,Pr.walkThrough,Pr.walkThroughSnippet,Pr.vscodeChatCodeBlock]),cft=class{constructor(){this._byResource=new mh,this._byOwner=new Map}set(e,t,n){let i=this._byResource.get(e);i||(i=new Map,this._byResource.set(e,i)),i.set(t,n);let r=this._byOwner.get(t);r||(r=new mh,this._byOwner.set(t,r)),r.set(e,n)}get(e,t){return this._byResource.get(e)?.get(t)}delete(e,t){let n=!1,i=!1;const r=this._byResource.get(e);r&&(n=r.delete(t));const o=this._byOwner.get(t);if(o&&(i=o.delete(e)),n!==i)throw new Error("illegal state");return n&&i}values(e){return typeof e=="string"?this._byOwner.get(e)?.values()??Vo.empty():Ui.isUri(e)?this._byResource.get(e)?.values()??Vo.empty():Vo.map(Vo.concat(...this._byOwner.values()),t=>t[1])}},uft=class{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new mh,this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(const t of e){const n=this._data.get(t);n&&this._substract(n);const i=this._resourceStats(t);this._add(i),this._data.set(t,i)}}_resourceStats(e){const t={errors:0,warnings:0,infos:0,unknowns:0};if(lft.has(e.scheme))return t;for(const{severity:n}of this._service.read({resource:e}))n===tc.Error?t.errors+=1:n===tc.Warning?t.warnings+=1:n===tc.Info?t.infos+=1:t.unknowns+=1;return t}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns}},fQt=class ZM{constructor(){this._onMarkerChanged=new _Ve({delay:0,merge:ZM._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new cft,this._stats=new uft(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(t,n){for(const i of n||[])this.changeOne(t,i,[])}changeOne(t,n,i){if(pWt(i))this._data.delete(n,t)&&this._onMarkerChanged.fire([n]);else{const r=[];for(const o of i){const s=ZM._toMarker(t,n,o);s&&r.push(s)}this._data.set(n,t,r),this._onMarkerChanged.fire([n])}}static _toMarker(t,n,i){let{code:r,severity:o,message:s,source:a,startLineNumber:l,startColumn:c,endLineNumber:u,endColumn:d,relatedInformation:h,tags:f}=i;if(s)return l=l>0?l:1,c=c>0?c:1,u=u>=l?u:l,d=d>0?d:c,{resource:n,owner:t,code:r,severity:o,message:s,source:a,startLineNumber:l,startColumn:c,endLineNumber:u,endColumn:d,relatedInformation:h,tags:f}}changeAll(t,n){const i=[],r=this._data.values(t);if(r)for(const o of r){const s=Vo.first(o);s&&(i.push(s.resource),this._data.delete(s.resource,t))}if(Sp(n)){const o=new mh;for(const{resource:s,marker:a}of n){const l=ZM._toMarker(t,s,a);if(!l)continue;const c=o.get(s);c?c.push(l):(o.set(s,[l]),i.push(s))}for(const[s,a]of o)this._data.set(s,t,a)}i.length>0&&this._onMarkerChanged.fire(i)}read(t=Object.create(null)){let{owner:n,resource:i,severities:r,take:o}=t;if((!o||o<0)&&(o=-1),n&&i){const s=this._data.get(i,n);if(s){const a=[];for(const l of s)if(ZM._accept(l,r)){const c=a.push(l);if(o>0&&c===o)break}return a}else return[]}else if(!n&&!i){const s=[];for(const a of this._data.values())for(const l of a)if(ZM._accept(l,r)){const c=s.push(l);if(o>0&&c===o)return s}return s}else{const s=this._data.values(i??n),a=[];for(const l of s)for(const c of l)if(ZM._accept(c,r)){const u=a.push(c);if(o>0&&u===o)return a}return a}}static _accept(t,n){return n===void 0||(n&t.severity)===t.severity}static _merge(t){const n=new mh;for(const i of t)for(const r of i)n.set(r,!0);return Array.from(n.keys())}}}}),pQt,VUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/configuration/common/configurations.js"(){Nt(),vqt(),gT(),Fu(),pQt=class extends St{get configurationModel(){return this._configurationModel}constructor(e){super(),this.logService=e,this._configurationModel=ev.createEmptyModel(this.logService)}reload(){return this.resetConfigurationModel(),this.configurationModel}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=ev.createEmptyModel(this.logService);const e=ml.as(Qy.Configuration).getConfigurationProperties();this.updateConfigurationModel(Object.keys(e),e)}updateConfigurationModel(e,t){const n=this.getConfigurationDefaultOverrides();for(const i of e){const r=n[i],o=t[i];r!==void 0?this._configurationModel.setValue(i,r):o?this._configurationModel.setValue(i,o.default):this._configurationModel.removeValue(i)}}}}}),xT,xl,dft,Py,rF=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js"(){var e,t;bn(),li(),xT=Ao("accessibilitySignalService"),xl=(e=class{static register(i){return new e(i.fileName)}constructor(i){this.fileName=i}},e.error=e.register({fileName:"error.mp3"}),e.warning=e.register({fileName:"warning.mp3"}),e.success=e.register({fileName:"success.mp3"}),e.foldedArea=e.register({fileName:"foldedAreas.mp3"}),e.break=e.register({fileName:"break.mp3"}),e.quickFixes=e.register({fileName:"quickFixes.mp3"}),e.taskCompleted=e.register({fileName:"taskCompleted.mp3"}),e.taskFailed=e.register({fileName:"taskFailed.mp3"}),e.terminalBell=e.register({fileName:"terminalBell.mp3"}),e.diffLineInserted=e.register({fileName:"diffLineInserted.mp3"}),e.diffLineDeleted=e.register({fileName:"diffLineDeleted.mp3"}),e.diffLineModified=e.register({fileName:"diffLineModified.mp3"}),e.chatRequestSent=e.register({fileName:"chatRequestSent.mp3"}),e.chatResponseReceived1=e.register({fileName:"chatResponseReceived1.mp3"}),e.chatResponseReceived2=e.register({fileName:"chatResponseReceived2.mp3"}),e.chatResponseReceived3=e.register({fileName:"chatResponseReceived3.mp3"}),e.chatResponseReceived4=e.register({fileName:"chatResponseReceived4.mp3"}),e.clear=e.register({fileName:"clear.mp3"}),e.save=e.register({fileName:"save.mp3"}),e.format=e.register({fileName:"format.mp3"}),e.voiceRecordingStarted=e.register({fileName:"voiceRecordingStarted.mp3"}),e.voiceRecordingStopped=e.register({fileName:"voiceRecordingStopped.mp3"}),e.progress=e.register({fileName:"progress.mp3"}),e),dft=class{constructor(n){this.randomOneOf=n}},Py=(t=class{constructor(i,r,o,s,a,l){this.sound=i,this.name=r,this.legacySoundSettingsKey=o,this.settingsKey=s,this.legacyAnnouncementSettingsKey=a,this.announcementMessage=l}static register(i){const r=new dft("randomOneOf"in i.sound?i.sound.randomOneOf:[i.sound]),o=new t(r,i.name,i.legacySoundSettingsKey,i.settingsKey,i.legacyAnnouncementSettingsKey,i.announcementMessage);return t._signals.add(o),o}},t._signals=new Set,t.errorAtPosition=t.register({name:R("accessibilitySignals.positionHasError.name","Error at Position"),sound:xl.error,announcementMessage:R("accessibility.signals.positionHasError","Error"),settingsKey:"accessibility.signals.positionHasError",delaySettingsKey:"accessibility.signalOptions.delays.errorAtPosition"}),t.warningAtPosition=t.register({name:R("accessibilitySignals.positionHasWarning.name","Warning at Position"),sound:xl.warning,announcementMessage:R("accessibility.signals.positionHasWarning","Warning"),settingsKey:"accessibility.signals.positionHasWarning",delaySettingsKey:"accessibility.signalOptions.delays.warningAtPosition"}),t.errorOnLine=t.register({name:R("accessibilitySignals.lineHasError.name","Error on Line"),sound:xl.error,legacySoundSettingsKey:"audioCues.lineHasError",legacyAnnouncementSettingsKey:"accessibility.alert.error",announcementMessage:R("accessibility.signals.lineHasError","Error on Line"),settingsKey:"accessibility.signals.lineHasError"}),t.warningOnLine=t.register({name:R("accessibilitySignals.lineHasWarning.name","Warning on Line"),sound:xl.warning,legacySoundSettingsKey:"audioCues.lineHasWarning",legacyAnnouncementSettingsKey:"accessibility.alert.warning",announcementMessage:R("accessibility.signals.lineHasWarning","Warning on Line"),settingsKey:"accessibility.signals.lineHasWarning"}),t.foldedArea=t.register({name:R("accessibilitySignals.lineHasFoldedArea.name","Folded Area on Line"),sound:xl.foldedArea,legacySoundSettingsKey:"audioCues.lineHasFoldedArea",legacyAnnouncementSettingsKey:"accessibility.alert.foldedArea",announcementMessage:R("accessibility.signals.lineHasFoldedArea","Folded"),settingsKey:"accessibility.signals.lineHasFoldedArea"}),t.break=t.register({name:R("accessibilitySignals.lineHasBreakpoint.name","Breakpoint on Line"),sound:xl.break,legacySoundSettingsKey:"audioCues.lineHasBreakpoint",legacyAnnouncementSettingsKey:"accessibility.alert.breakpoint",announcementMessage:R("accessibility.signals.lineHasBreakpoint","Breakpoint"),settingsKey:"accessibility.signals.lineHasBreakpoint"}),t.inlineSuggestion=t.register({name:R("accessibilitySignals.lineHasInlineSuggestion.name","Inline Suggestion on Line"),sound:xl.quickFixes,legacySoundSettingsKey:"audioCues.lineHasInlineSuggestion",settingsKey:"accessibility.signals.lineHasInlineSuggestion"}),t.terminalQuickFix=t.register({name:R("accessibilitySignals.terminalQuickFix.name","Terminal Quick Fix"),sound:xl.quickFixes,legacySoundSettingsKey:"audioCues.terminalQuickFix",legacyAnnouncementSettingsKey:"accessibility.alert.terminalQuickFix",announcementMessage:R("accessibility.signals.terminalQuickFix","Quick Fix"),settingsKey:"accessibility.signals.terminalQuickFix"}),t.onDebugBreak=t.register({name:R("accessibilitySignals.onDebugBreak.name","Debugger Stopped on Breakpoint"),sound:xl.break,legacySoundSettingsKey:"audioCues.onDebugBreak",legacyAnnouncementSettingsKey:"accessibility.alert.onDebugBreak",announcementMessage:R("accessibility.signals.onDebugBreak","Breakpoint"),settingsKey:"accessibility.signals.onDebugBreak"}),t.noInlayHints=t.register({name:R("accessibilitySignals.noInlayHints","No Inlay Hints on Line"),sound:xl.error,legacySoundSettingsKey:"audioCues.noInlayHints",legacyAnnouncementSettingsKey:"accessibility.alert.noInlayHints",announcementMessage:R("accessibility.signals.noInlayHints","No Inlay Hints"),settingsKey:"accessibility.signals.noInlayHints"}),t.taskCompleted=t.register({name:R("accessibilitySignals.taskCompleted","Task Completed"),sound:xl.taskCompleted,legacySoundSettingsKey:"audioCues.taskCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.taskCompleted",announcementMessage:R("accessibility.signals.taskCompleted","Task Completed"),settingsKey:"accessibility.signals.taskCompleted"}),t.taskFailed=t.register({name:R("accessibilitySignals.taskFailed","Task Failed"),sound:xl.taskFailed,legacySoundSettingsKey:"audioCues.taskFailed",legacyAnnouncementSettingsKey:"accessibility.alert.taskFailed",announcementMessage:R("accessibility.signals.taskFailed","Task Failed"),settingsKey:"accessibility.signals.taskFailed"}),t.terminalCommandFailed=t.register({name:R("accessibilitySignals.terminalCommandFailed","Terminal Command Failed"),sound:xl.error,legacySoundSettingsKey:"audioCues.terminalCommandFailed",legacyAnnouncementSettingsKey:"accessibility.alert.terminalCommandFailed",announcementMessage:R("accessibility.signals.terminalCommandFailed","Command Failed"),settingsKey:"accessibility.signals.terminalCommandFailed"}),t.terminalCommandSucceeded=t.register({name:R("accessibilitySignals.terminalCommandSucceeded","Terminal Command Succeeded"),sound:xl.success,announcementMessage:R("accessibility.signals.terminalCommandSucceeded","Command Succeeded"),settingsKey:"accessibility.signals.terminalCommandSucceeded"}),t.terminalBell=t.register({name:R("accessibilitySignals.terminalBell","Terminal Bell"),sound:xl.terminalBell,legacySoundSettingsKey:"audioCues.terminalBell",legacyAnnouncementSettingsKey:"accessibility.alert.terminalBell",announcementMessage:R("accessibility.signals.terminalBell","Terminal Bell"),settingsKey:"accessibility.signals.terminalBell"}),t.notebookCellCompleted=t.register({name:R("accessibilitySignals.notebookCellCompleted","Notebook Cell Completed"),sound:xl.taskCompleted,legacySoundSettingsKey:"audioCues.notebookCellCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellCompleted",announcementMessage:R("accessibility.signals.notebookCellCompleted","Notebook Cell Completed"),settingsKey:"accessibility.signals.notebookCellCompleted"}),t.notebookCellFailed=t.register({name:R("accessibilitySignals.notebookCellFailed","Notebook Cell Failed"),sound:xl.taskFailed,legacySoundSettingsKey:"audioCues.notebookCellFailed",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellFailed",announcementMessage:R("accessibility.signals.notebookCellFailed","Notebook Cell Failed"),settingsKey:"accessibility.signals.notebookCellFailed"}),t.diffLineInserted=t.register({name:R("accessibilitySignals.diffLineInserted","Diff Line Inserted"),sound:xl.diffLineInserted,legacySoundSettingsKey:"audioCues.diffLineInserted",settingsKey:"accessibility.signals.diffLineInserted"}),t.diffLineDeleted=t.register({name:R("accessibilitySignals.diffLineDeleted","Diff Line Deleted"),sound:xl.diffLineDeleted,legacySoundSettingsKey:"audioCues.diffLineDeleted",settingsKey:"accessibility.signals.diffLineDeleted"}),t.diffLineModified=t.register({name:R("accessibilitySignals.diffLineModified","Diff Line Modified"),sound:xl.diffLineModified,legacySoundSettingsKey:"audioCues.diffLineModified",settingsKey:"accessibility.signals.diffLineModified"}),t.chatRequestSent=t.register({name:R("accessibilitySignals.chatRequestSent","Chat Request Sent"),sound:xl.chatRequestSent,legacySoundSettingsKey:"audioCues.chatRequestSent",legacyAnnouncementSettingsKey:"accessibility.alert.chatRequestSent",announcementMessage:R("accessibility.signals.chatRequestSent","Chat Request Sent"),settingsKey:"accessibility.signals.chatRequestSent"}),t.chatResponseReceived=t.register({name:R("accessibilitySignals.chatResponseReceived","Chat Response Received"),legacySoundSettingsKey:"audioCues.chatResponseReceived",sound:{randomOneOf:[xl.chatResponseReceived1,xl.chatResponseReceived2,xl.chatResponseReceived3,xl.chatResponseReceived4]},settingsKey:"accessibility.signals.chatResponseReceived"}),t.progress=t.register({name:R("accessibilitySignals.progress","Progress"),sound:xl.progress,legacySoundSettingsKey:"audioCues.chatResponsePending",legacyAnnouncementSettingsKey:"accessibility.alert.progress",announcementMessage:R("accessibility.signals.progress","Progress"),settingsKey:"accessibility.signals.progress"}),t.clear=t.register({name:R("accessibilitySignals.clear","Clear"),sound:xl.clear,legacySoundSettingsKey:"audioCues.clear",legacyAnnouncementSettingsKey:"accessibility.alert.clear",announcementMessage:R("accessibility.signals.clear","Clear"),settingsKey:"accessibility.signals.clear"}),t.save=t.register({name:R("accessibilitySignals.save","Save"),sound:xl.save,legacySoundSettingsKey:"audioCues.save",legacyAnnouncementSettingsKey:"accessibility.alert.save",announcementMessage:R("accessibility.signals.save","Save"),settingsKey:"accessibility.signals.save"}),t.format=t.register({name:R("accessibilitySignals.format","Format"),sound:xl.format,legacySoundSettingsKey:"audioCues.format",legacyAnnouncementSettingsKey:"accessibility.alert.format",announcementMessage:R("accessibility.signals.format","Format"),settingsKey:"accessibility.signals.format"}),t.voiceRecordingStarted=t.register({name:R("accessibilitySignals.voiceRecordingStarted","Voice Recording Started"),sound:xl.voiceRecordingStarted,legacySoundSettingsKey:"audioCues.voiceRecordingStarted",settingsKey:"accessibility.signals.voiceRecordingStarted"}),t.voiceRecordingStopped=t.register({name:R("accessibilitySignals.voiceRecordingStopped","Voice Recording Stopped"),sound:xl.voiceRecordingStopped,legacySoundSettingsKey:"audioCues.voiceRecordingStopped",settingsKey:"accessibility.signals.voiceRecordingStopped"}),t)}}),gQt,HUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/log/common/logService.js"(){Nt(),wm(),gQt=class extends St{constructor(e,t=[]){super(),this.logger=new KWt([e,...t]),this._register(e.onDidChangeLogLevel(n=>this.setLevel(n)))}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel}setLevel(e){this.logger.setLevel(e)}getLevel(){return this.logger.getLevel()}trace(e,...t){this.logger.trace(e,...t)}debug(e,...t){this.logger.debug(e,...t)}info(e,...t){this.logger.info(e,...t)}warn(e,...t){this.logger.warn(e,...t)}error(e,...t){this.logger.error(e,...t)}}}});function W7(e){vUe.push(e)}function WUn(){return vUe.slice(0)}var vUe,oF=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/editorFeatures.js"(){vUe=[]}}),mQt,UUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/standaloneTreeSitterService.js"(){mQt=class{getParseResult(e){}}}});function hft(e){return e&&typeof e=="object"&&(!e.overrideIdentifier||typeof e.overrideIdentifier=="string")&&(!e.resource||e.resource instanceof Ui)}function See(e,t,n){if(!t||!(e instanceof pW))return;const i=[];Object.keys(t).forEach(r=>{t3n(r)&&i.push([`editor.${r}`,t[r]]),n&&n3n(r)&&i.push([`diffEditor.${r}`,t[r]])}),i.length>0&&e.updateValues(i)}var Jw,Fc,fft,xee,pft,gft,mft,vft,yft,Eee,RO,bft,pW,Aee,Dee,_ft,wft,Tee,Cft,kee,Sft,xft,Eft,Iee,wde,Lee,Aft,br,Age=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js"(){var e,t,n;t$t(),n$t(),wzn(),Db(),Szn(),Ozn(),JVn(),Ki(),Fn(),mf(),Un(),C7(),Nt(),Xr(),NN(),ss(),O7(),aWe(),Tb(),Hi(),Dn(),Kf(),Eb(),ige(),Ks(),sa(),vqt(),er(),aY(),li(),r3n(),tl(),wqt(),kN(),Sqt(),a3n(),gY(),yf(),$C(),_m(),mY(),LN(),bT(),bf(),Ec(),wm(),Iqt(),xg(),hqt(),W3n(),wHn(),vf(),SHn(),SE(),JUt(),Kd(),AHn(),IWe(),CWn(),bUn(),cQt(),V7(),IUn(),Cm(),ha(),dQt(),NUn(),zN(),FUn(),DHe(),jUn(),H7(),xge(),CT(),zUn(),Ag(),Hv(),CE(),VUn(),rF(),Eo(),lu(),HUn(),oF(),Vi(),jHe(),wg(),kh(),JKt(),UUn(),Jw=function(i,r,o,s){var a=arguments.length,l=a<3?r:s===null?s=Object.getOwnPropertyDescriptor(r,o):s,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(i,r,o,s);else for(var u=i.length-1;u>=0;u--)(c=i[u])&&(l=(a<3?c(l):a>3?c(r,o,l):c(r,o))||l);return a>3&&l&&Object.defineProperty(r,o,l),l},Fc=function(i,r){return function(o,s){r(o,s,i)}},fft=class{constructor(i){this.disposed=!1,this.model=i,this._onWillDispose=new bt}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}},xee=class{constructor(r){this.modelService=r}createModelReference(r){const o=this.modelService.getModel(r);return o?Promise.resolve(new o7t(new fft(o))):Promise.reject(new Error("Model not found"))}},xee=Jw([Fc(0,Ua)],xee),pft=(e=class{show(){return e.NULL_PROGRESS_RUNNER}async showWhile(r,o){await r}},e.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}},e),gft=class{withProgress(i,r,o){return r({report:()=>{}})}},mft=class{constructor(){this.isExtensionDevelopment=!1,this.isBuilt=!1}},vft=class{async confirm(i){return{confirmed:this.doConfirm(i.message,i.detail),checkboxChecked:!1}}doConfirm(i,r){let o=i;return r&&(o=o+`

`+r),la.confirm(o)}async prompt(i){let r;if(this.doConfirm(i.message,i.detail)){const s=[...i.buttons??[]];i.cancelButton&&typeof i.cancelButton!="string"&&typeof i.cancelButton!="boolean"&&s.push(i.cancelButton),r=await s[0]?.run({checkboxChecked:!1})}return{result:r}}async error(i,r){await this.prompt({type:yc.Error,message:i,detail:r})}},yft=(t=class{info(r){return this.notify({severity:yc.Info,message:r})}warn(r){return this.notify({severity:yc.Warning,message:r})}error(r){return this.notify({severity:yc.Error,message:r})}notify(r){switch(r.severity){case yc.Error:console.error(r.message);break;case yc.Warning:console.warn(r.message);break;default:console.log(r.message);break}return t.NO_OP}prompt(r,o,s,a){return t.NO_OP}status(r,o){return St.None}},t.NO_OP=new i$t,t),Eee=class{constructor(r){this._onWillExecuteCommand=new bt,this._onDidExecuteCommand=new bt,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=r}executeCommand(r,...o){const s=Ro.getCommand(r);if(!s)return Promise.reject(new Error(`command '${r}' not found`));try{this._onWillExecuteCommand.fire({commandId:r,args:o});const a=this._instantiationService.invokeFunction.apply(this._instantiationService,[s.handler,...o]);return this._onDidExecuteCommand.fire({commandId:r,args:o}),Promise.resolve(a)}catch(a){return Promise.reject(a)}}},Eee=Jw([Fc(0,ji)],Eee),RO=class extends Cqt{constructor(r,o,s,a,l,c){super(r,o,s,a,l),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const u=m=>{const v=new Jt;v.add(qt(m,kn.KEY_DOWN,y=>{const b=new Sa(y);this._dispatch(b,b.target)&&(b.preventDefault(),b.stopPropagation())})),v.add(qt(m,kn.KEY_UP,y=>{const b=new Sa(y);this._singleModifierDispatch(b,b.target)&&b.preventDefault()})),this._domNodeListeners.push(new bft(m,v))},d=m=>{for(let v=0;v<this._domNodeListeners.length;v++){const y=this._domNodeListeners[v];y.domNode===m&&(this._domNodeListeners.splice(v,1),y.dispose())}},h=m=>{m.getOption(61)||u(m.getContainerDomNode())},f=m=>{m.getOption(61)||d(m.getContainerDomNode())};this._register(c.onCodeEditorAdd(h)),this._register(c.onCodeEditorRemove(f)),c.listCodeEditors().forEach(h);const p=m=>{u(m.getContainerDomNode())},g=m=>{d(m.getContainerDomNode())};this._register(c.onDiffEditorAdd(p)),this._register(c.onDiffEditorRemove(g)),c.listDiffEditors().forEach(p)}addDynamicKeybinding(r,o,s,a){return z_(Ro.registerCommand(r,s),this.addDynamicKeybindings([{keybinding:o,command:r,when:a}]))}addDynamicKeybindings(r){const o=r.map(s=>({keybinding:LFe(s.keybinding,om),command:s.command??null,commandArgs:s.commandArgs,when:s.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}));return this._dynamicKeybindings=this._dynamicKeybindings.concat(o),this.updateResolver(),zi(()=>{for(let s=0;s<this._dynamicKeybindings.length;s++)if(this._dynamicKeybindings[s]===o[0]){this._dynamicKeybindings.splice(s,o.length),this.updateResolver();return}})}updateResolver(){this._cachedResolver=null,this._onDidUpdateKeybindings.fire()}_getResolver(){if(!this._cachedResolver){const r=this._toNormalizedKeybindingItems(dp.getDefaultKeybindings(),!0),o=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new _qt(r,o,s=>this._log(s))}return this._cachedResolver}_documentHasFocus(){return la.document.hasFocus()}_toNormalizedKeybindingItems(r,o){const s=[];let a=0;for(const l of r){const c=l.when||void 0,u=l.keybinding;if(!u)s[a++]=new T4e(void 0,l.command,l.commandArgs,c,o,null,!1);else{const d=k4e.resolveKeybinding(u,om);for(const h of d)s[a++]=new T4e(h,l.command,l.commandArgs,c,o,null,!1)}}return s}resolveKeyboardEvent(r){const o=new AL(r.ctrlKey,r.shiftKey,r.altKey,r.metaKey,r.keyCode);return new k4e([o],om)}},RO=Jw([Fc(0,ur),Fc(1,Oa),Fc(2,uf),Fc(3,Cc),Fc(4,bh),Fc(5,Jo)],RO),bft=class extends St{constructor(i,r){super(),this.domNode=i,this._register(r)}},pW=class{constructor(r){this.logService=r,this._onDidChangeConfiguration=new bt,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event;const o=new pQt(r);this._configuration=new A4e(o.reload(),ev.createEmptyModel(r),ev.createEmptyModel(r),ev.createEmptyModel(r),ev.createEmptyModel(r),ev.createEmptyModel(r),new mh,ev.createEmptyModel(r),new mh,r),o.dispose()}getValue(r,o){const s=typeof r=="string"?r:void 0,a=hft(r)?r:hft(o)?o:{};return this._configuration.getValue(s,a,void 0)}updateValues(r){const o={data:this._configuration.toData()},s=[];for(const a of r){const[l,c]=a;this.getValue(l)!==c&&(this._configuration.updateValue(l,c),s.push(l))}if(s.length>0){const a=new mqt({keys:s,overrides:[]},o,this._configuration,void 0,this.logService);a.source=8,this._onDidChangeConfiguration.fire(a)}return Promise.resolve()}updateValue(r,o,s,a){return this.updateValues([[r,o]])}inspect(r,o={}){return this._configuration.inspect(r,o,void 0)}},pW=Jw([Fc(0,bh)],pW),Aee=class{constructor(r,o,s){this.configurationService=r,this.modelService=o,this.languageService=s,this._onDidChangeConfiguration=new bt,this.configurationService.onDidChangeConfiguration(a=>{this._onDidChangeConfiguration.fire({affectedKeys:a.affectedKeys,affectsConfiguration:(l,c)=>a.affectsConfiguration(c)})})}getValue(r,o,s){const a=mt.isIPosition(o)?o:null,l=a?typeof s=="string"?s:void 0:typeof o=="string"?o:void 0,c=r?this.getLanguage(r,a):void 0;return typeof l>"u"?this.configurationService.getValue({resource:r,overrideIdentifier:c}):this.configurationService.getValue(l,{resource:r,overrideIdentifier:c})}getLanguage(r,o){const s=this.modelService.getModel(r);return s?o?s.getLanguageIdAtPosition(o.lineNumber,o.column):s.getLanguageId():this.languageService.guessLanguageIdByFilepathOrFirstLine(r)}},Aee=Jw([Fc(0,co),Fc(1,Ua),Fc(2,al)],Aee),Dee=class{constructor(r){this.configurationService=r}getEOL(r,o){const s=this.configurationService.getValue("files.eol",{overrideIdentifier:o,resource:r});return s&&typeof s=="string"&&s!=="auto"?s:Wf||xo?`
`:`\r
`}},Dee=Jw([Fc(0,co)],Dee),_ft=class{publicLog2(){}},wft=(n=class{constructor(){const r=Ui.from({scheme:n.SCHEME,authority:"model",path:"/"});this.workspace={id:hWe,folders:[new kqt({uri:r,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(r){return r&&r.scheme===n.SCHEME?this.workspace.folders[0]:null}},n.SCHEME="inmemory",n),Tee=class{constructor(r){this._modelService=r}hasPreviewHandler(){return!1}async apply(r,o){const s=Array.isArray(r)?r:wse.convert(r),a=new Map;for(const u of s){if(!(u instanceof KU))throw new Error("bad edit - only text edits are supported");const d=this._modelService.getModel(u.resource);if(!d)throw new Error("bad edit - model not found");if(typeof u.versionId=="number"&&d.getVersionId()!==u.versionId)throw new Error("bad state - model changed in the meantime");let h=a.get(d);h||(h=[],a.set(d,h)),h.push(pl.replaceMove(Re.lift(u.textEdit.range),u.textEdit.text))}let l=0,c=0;for(const[u,d]of a)u.pushStackElement(),u.pushEditOperations([],d,()=>[]),u.pushStackElement(),c+=1,l+=d.length;return{ariaSummary:$R(R4e.bulkEditServiceSummary,l,c),isApplied:l>0}}},Tee=Jw([Fc(0,Ua)],Tee),Cft=class{getUriLabel(i,r){return i.scheme==="file"?i.fsPath:i.path}getUriBasenameLabel(i){return E0(i)}},kee=class extends dqt{constructor(r,o){super(r),this._codeEditorService=o}showContextView(r,o,s){if(!o){const a=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();a&&(o=a.getContainerDomNode())}return super.showContextView(r,o,s)}},kee=Jw([Fc(0,yT),Fc(1,Jo)],kee),Sft=class{constructor(){this._neverEmitter=new bt,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}},xft=class extends qqt{constructor(){super()}},Eft=class extends gQt{constructor(){super(new GWt)}},Iee=class extends Pse{constructor(r,o,s,a,l,c){super(r,o,s,a,l,c),this.configure({blockMouse:!1})}},Iee=Jw([Fc(0,uf),Fc(1,Cc),Fc(2,Jx),Fc(3,Cs),Fc(4,Pv),Fc(5,ur)],Iee),wde={amdModuleId:"vs/editor/common/services/editorSimpleWorker",esmModuleLocation:void 0,label:"editorWorkerService"},Lee=class extends sse{constructor(r,o,s,a,l){super(wde,r,o,s,a,l)}},Lee=Jw([Fc(0,Ua),Fc(1,Xq),Fc(2,bh),Fc(3,yl),Fc(4,gi)],Lee),Aft=class{async playSignal(i,r){}},Oo(bh,Eft,0),Oo(co,pW,0),Oo(Xq,Aee,0),Oo(FHe,Dee,0),Oo(lL,wft,0),Oo(t2,Cft,0),Oo(uf,_ft,0),Oo(T7,vft,0),Oo(oge,mft,0),Oo(Cc,yft,0),Oo(xC,fQt,0),Oo(al,xft,0),Oo(Fv,lQt,0),Oo(Ua,Vse,0),Oo(bge,Fse,0),Oo(ur,lae,0),Oo(cWe,gft,0),Oo(jD,pft,0),Oo(ab,hGt,0),Oo(fg,Lee,0),Oo(M7,Tee,0),Oo(fWe,Sft,0),Oo(dg,xee,0),Oo(pm,rae,0),Oo(c0,$Yt,0),Oo(Oa,Eee,0),Oo(Cs,RO,0),Oo(Z0,iae,0),Oo(Jx,kee,0),Oo(Eg,Mse,0),Oo(tE,aae,0),Oo(dm,Iee,0),Oo(Pv,oae,0),Oo(xT,Aft,0),Oo(GWe,mQt,0),(function(i){const r=new iF;for(const[d,h]of Dlt())r.set(d,h);const o=new hQt(r,!0);r.set(ji,o);function s(d){a||c({});const h=r.get(d);if(!h)throw new Error("Missing service "+d);return h instanceof R1?o.invokeFunction(f=>f.get(d)):h}i.get=s;let a=!1;const l=new bt;function c(d){if(a)return o;a=!0;for(const[f,p]of Dlt())r.get(f)||r.set(f,p);for(const f in d)if(d.hasOwnProperty(f)){const p=Ao(f);r.get(p)instanceof R1&&r.set(p,d[f])}const h=WUn();for(const f of h)try{o.createInstance(f)}catch(p){Mr(p)}return l.fire(),o}i.initialize=c;function u(d){if(a)return d();const h=new Jt,f=h.add(l.event(()=>{f.dispose(),h.add(d())}));return h}i.withServices=u})(br||(br={}))}});function $Un(e,t){return new vQt(e,t)}var vQt,qUn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/standaloneWebWorker.js"(){bm(),JUt(),Age(),vQt=class extends GH{constructor(e,t){const n={amdModuleId:wde.amdModuleId,esmModuleLocation:wde.esmModuleLocation,label:t.label};super(n,t.keepIdleModels||!1,e),this._foreignModuleId=t.moduleId,this._foreignModuleCreateData=t.createData||null,this._foreignModuleHost=t.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||typeof this._foreignModuleHost[e]!="function")return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(n){return Promise.reject(n)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(e=>{const t=this._foreignModuleHost?_5e(this._foreignModuleHost):[];return e.$loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then(n=>{this._foreignModuleCreateData=null;const i=(s,a)=>e.$fmr(s,a),r=(s,a)=>function(){const l=Array.prototype.slice.call(arguments,0);return a(s,l)},o={};for(const s of n)o[s]=r(s,i);return o})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this.workerWithSyncedResources(e).then(t=>this.getProxy())}}}}),U7,Dge=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/editorCommon.js"(){U7={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}}}),zBe,yQt,Cde,nw,Z6,bQt,yUe,Sde,KC=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/viewModel.js"(){rr(),Ki(),Dn(),zBe=class{constructor(e,t,n,i){this._viewportBrand=void 0,this.top=e|0,this.left=t|0,this.width=n|0,this.height=i|0}},yQt=class{constructor(e,t){this.tabSize=e,this.data=t}},Cde=class{constructor(e,t,n,i,r,o,s){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=n,this.maxColumn=i,this.startVisibleColumn=r,this.tokens=o,this.inlineDecorations=s}},nw=class VBe{constructor(t,n,i,r,o,s,a,l,c,u){this.minColumn=t,this.maxColumn=n,this.content=i,this.continuesWithWrappedLine=r,this.isBasicASCII=VBe.isBasicASCII(i,s),this.containsRTL=VBe.containsRTL(i,this.isBasicASCII,o),this.tokens=a,this.inlineDecorations=l,this.tabSize=c,this.startVisibleColumn=u}static isBasicASCII(t,n){return n?qK(t):!0}static containsRTL(t,n,i){return!n&&i?G8(t):!1}},Z6=class{constructor(e,t,n){this.range=e,this.inlineClassName=t,this.type=n}},bQt=class{constructor(e,t,n,i){this.startOffset=e,this.endOffset=t,this.inlineClassName=n,this.inlineClassNameAffectsLetterSpacing=i}toInlineDecoration(e){return new Z6(new Re(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}},yUe=class{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}},Sde=class _Qt{constructor(t,n,i){this.color=t,this.zIndex=n,this.data=i}static compareByRenderingProps(t,n){return t.zIndex===n.zIndex?t.color<n.color?-1:t.color>n.color?1:0:t.zIndex-n.zIndex}static equals(t,n){return t.color===n.color&&t.zIndex===n.zIndex&&vl(t.data,n.data)}static equalsArr(t,n){return vl(t,n,_Qt.equals)}}}});function GUn(e){return Array.isArray(e)}function KUn(e){return!GUn(e)}function wQt(e){return typeof e=="string"}function Dft(e){return!wQt(e)}function mO(e){return!e}function wD(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function Tft(e){return e.replace(/[&<>'"_]/g,"-")}function YUn(e,t){console.log(`${e.languageId}: ${t}`)}function ol(e,t){return new Error(`${e.languageId}: ${t}`)}function AI(e,t,n,i,r){const o=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g;let s=null;return t.replace(o,function(a,l,c,u,d,h,f,p,g){return mO(c)?mO(u)?!mO(d)&&d<i.length?wD(e,i[d]):!mO(f)&&e&&typeof e[f]=="string"?e[f]:(s===null&&(s=r.split("."),s.unshift(r)),!mO(h)&&h<s.length?wD(e,s[h]):""):wD(e,n):"$"})}function QUn(e,t,n){const i=/\$[sS](\d\d?)/g;let r=null;return t.replace(i,function(o,s){return r===null&&(r=n.split("."),r.unshift(n)),!mO(s)&&s<r.length?wD(e,r[s]):""})}function Nee(e,t){let n=t;for(;n&&n.length>0;){const i=e.tokenizer[n];if(i)return i;const r=n.lastIndexOf(".");r<0?n=null:n=n.substr(0,r)}return null}function ZUn(e,t){let n=t;for(;n&&n.length>0;){if(e.stateNames[n])return!0;const r=n.lastIndexOf(".");r<0?n=null:n=n.substr(0,r)}return!1}var CQt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/common/monarch/monarchCommon.js"(){}});function XUn(e,t){if(!t)return null;t=wD(e,t);const n=e.brackets;for(const i of n){if(i.open===t)return{token:i.token,bracketType:1};if(i.close===t)return{token:i.token,bracketType:-1}}return null}var kft,Ift,pSe,gSe,Pee,xV,EV,qP,Mee,Lft,Nft,X6,SQt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/common/monarch/monarchLexer.js"(){var e,t;Nt(),ra(),pY(),CQt(),sa(),kft=function(n,i,r,o){var s=arguments.length,a=s<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,r):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,i,r,o);else for(var c=n.length-1;c>=0;c--)(l=n[c])&&(a=(s<3?l(a):s>3?l(i,r,a):l(i,r))||a);return s>3&&a&&Object.defineProperty(i,r,a),a},Ift=function(n,i){return function(r,o){i(r,o,n)}},gSe=5,Pee=(e=class{static create(i,r){return this._INSTANCE.create(i,r)}constructor(i){this._maxCacheDepth=i,this._entries=Object.create(null)}create(i,r){if(i!==null&&i.depth>=this._maxCacheDepth)return new xV(i,r);let o=xV.getStackElementId(i);o.length>0&&(o+="|"),o+=r;let s=this._entries[o];return s||(s=new xV(i,r),this._entries[o]=s,s)}},e._INSTANCE=new e(gSe),e),xV=class xQt{constructor(i,r){this.parent=i,this.state=r,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(i){let r="";for(;i!==null;)r.length>0&&(r+="|"),r+=i.state,i=i.parent;return r}static _equals(i,r){for(;i!==null&&r!==null;){if(i===r)return!0;if(i.state!==r.state)return!1;i=i.parent,r=r.parent}return i===null&&r===null}equals(i){return xQt._equals(this,i)}push(i){return Pee.create(this,i)}pop(){return this.parent}popall(){let i=this;for(;i.parent;)i=i.parent;return i}switchTo(i){return Pee.create(this.parent,i)}},EV=class EQt{constructor(i,r){this.languageId=i,this.state=r}equals(i){return this.languageId===i.languageId&&this.state.equals(i.state)}clone(){return this.state.clone()===this.state?this:new EQt(this.languageId,this.state)}},qP=(t=class{static create(i,r){return this._INSTANCE.create(i,r)}constructor(i){this._maxCacheDepth=i,this._entries=Object.create(null)}create(i,r){if(r!==null)return new Mee(i,r);if(i!==null&&i.depth>=this._maxCacheDepth)return new Mee(i,r);const o=xV.getStackElementId(i);let s=this._entries[o];return s||(s=new Mee(i,null),this._entries[o]=s,s)}},t._INSTANCE=new t(gSe),t),Mee=class AQt{constructor(i,r){this.stack=i,this.embeddedLanguageData=r}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:qP.create(this.stack,this.embeddedLanguageData)}equals(i){return!(i instanceof AQt)||!this.stack.equals(i.stack)?!1:this.embeddedLanguageData===null&&i.embeddedLanguageData===null?!0:this.embeddedLanguageData===null||i.embeddedLanguageData===null?!1:this.embeddedLanguageData.equals(i.embeddedLanguageData)}},Lft=class{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(n){this._languageId=n}emit(n,i){this._lastTokenType===i&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=i,this._lastTokenLanguage=this._languageId,this._tokens.push(new V8(n,i,this._languageId)))}nestedLanguageTokenize(n,i,r,o){const s=r.languageId,a=r.state,l=Hl.get(s);if(!l)return this.enterLanguage(s),this.emit(o,""),a;const c=l.tokenize(n,i,a);if(o!==0)for(const u of c.tokens)this._tokens.push(new V8(u.offset+o,u.type,u.language));else this._tokens=this._tokens.concat(c.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,c.endState}finalize(n){return new ppe(this._tokens,n)}},Nft=class HBe{constructor(i,r){this._languageService=i,this._theme=r,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(i){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(i)}emit(i,r){const o=this._theme.match(this._currentLanguageId,r)|1024;this._lastTokenMetadata!==o&&(this._lastTokenMetadata=o,this._tokens.push(i),this._tokens.push(o))}static _merge(i,r,o){const s=i!==null?i.length:0,a=r.length,l=o!==null?o.length:0;if(s===0&&a===0&&l===0)return new Uint32Array(0);if(s===0&&a===0)return o;if(a===0&&l===0)return i;const c=new Uint32Array(s+a+l);i!==null&&c.set(i);for(let u=0;u<a;u++)c[s+u]=r[u];return o!==null&&c.set(o,s+a),c}nestedLanguageTokenize(i,r,o,s){const a=o.languageId,l=o.state,c=Hl.get(a);if(!c)return this.enterLanguage(a),this.emit(s,""),l;const u=c.tokenizeEncoded(i,r,l);if(s!==0)for(let d=0,h=u.tokens.length;d<h;d+=2)u.tokens[d]+=s;return this._prependTokens=HBe._merge(this._prependTokens,this._tokens,u.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,u.endState}finalize(i){return new wq(HBe._merge(this._prependTokens,this._tokens,null),i)}},X6=pSe=class extends St{constructor(i,r,o,s,a){super(),this._configurationService=a,this._languageService=i,this._standaloneThemeService=r,this._languageId=o,this._lexer=s,this._embeddedLanguages=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let l=!1;this._register(Hl.onDidChange(c=>{if(l)return;let u=!1;for(let d=0,h=c.changedLanguages.length;d<h;d++){const f=c.changedLanguages[d];if(this._embeddedLanguages[f]){u=!0;break}}u&&(l=!0,Hl.handleChange([this._languageId]),l=!1)})),this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}),this._register(this._configurationService.onDidChangeConfiguration(c=>{c.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))}))}getLoadStatus(){const i=[];for(const r in this._embeddedLanguages){const o=Hl.get(r);if(o){if(o instanceof pSe){const s=o.getLoadStatus();s.loaded===!1&&i.push(s.promise)}continue}Hl.isResolved(r)||i.push(Hl.getOrCreate(r))}return i.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(i).then(r=>{})}}getInitialState(){const i=Pee.create(null,this._lexer.start);return qP.create(i,null)}tokenize(i,r,o){if(i.length>=this._maxTokenizationLineLength)return oWe(this._languageId,o);const s=new Lft,a=this._tokenize(i,r,o,s);return s.finalize(a)}tokenizeEncoded(i,r,o){if(i.length>=this._maxTokenizationLineLength)return fge(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),o);const s=new Nft(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),a=this._tokenize(i,r,o,s);return s.finalize(a)}_tokenize(i,r,o,s){return o.embeddedLanguageData?this._nestedTokenize(i,r,o,0,s):this._myTokenize(i,r,o,0,s)}_findLeavingNestedLanguageOffset(i,r){let o=this._lexer.tokenizer[r.stack.state];if(!o&&(o=Nee(this._lexer,r.stack.state),!o))throw ol(this._lexer,"tokenizer state is not defined: "+r.stack.state);let s=-1,a=!1;for(const l of o){if(!Dft(l.action)||l.action.nextEmbedded!=="@pop")continue;a=!0;let c=l.resolveRegex(r.stack.state);const u=c.source;if(u.substr(0,4)==="^(?:"&&u.substr(u.length-1,1)===")"){const h=(c.ignoreCase?"i":"")+(c.unicode?"u":"");c=new RegExp(u.substr(4,u.length-5),h)}const d=i.search(c);d===-1||d!==0&&l.matchOnlyAtLineStart||(s===-1||d<s)&&(s=d)}if(!a)throw ol(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+r.stack.state);return s}_nestedTokenize(i,r,o,s,a){const l=this._findLeavingNestedLanguageOffset(i,o);if(l===-1){const d=a.nestedLanguageTokenize(i,r,o.embeddedLanguageData,s);return qP.create(o.stack,new EV(o.embeddedLanguageData.languageId,d))}const c=i.substring(0,l);c.length>0&&a.nestedLanguageTokenize(c,!1,o.embeddedLanguageData,s);const u=i.substring(l);return this._myTokenize(u,r,o,s+l,a)}_safeRuleName(i){return i?i.name:"(unknown)"}_myTokenize(i,r,o,s,a){a.enterLanguage(this._languageId);const l=i.length,c=r&&this._lexer.includeLF?i+`
`:i,u=c.length;let d=o.embeddedLanguageData,h=o.stack,f=0,p=null,g=!0;for(;g||f<u;){const m=f,v=h.depth,y=p?p.groups.length:0,b=h.state;let w=null,E=null,A=null,D=null,T=null;if(p){w=p.matches;const F=p.groups.shift();E=F.matched,A=F.action,D=p.rule,p.groups.length===0&&(p=null)}else{if(!g&&f>=u)break;g=!1;let F=this._lexer.tokenizer[b];if(!F&&(F=Nee(this._lexer,b),!F))throw ol(this._lexer,"tokenizer state is not defined: "+b);const N=c.substr(f);for(const j of F)if((f===0||!j.matchOnlyAtLineStart)&&(w=N.match(j.resolveRegex(b)),w)){E=w[0],A=j.action;break}}if(w||(w=[""],E=""),A||(f<u&&(w=[c.charAt(f)],E=w[0]),A=this._lexer.defaultToken),E===null)break;for(f+=E.length;KUn(A)&&Dft(A)&&A.test;)A=A.test(E,w,b,f===u);let M=null;if(typeof A=="string"||Array.isArray(A))M=A;else if(A.group)M=A.group;else if(A.token!==null&&A.token!==void 0){if(A.tokenSubst?M=AI(this._lexer,A.token,E,w,b):M=A.token,A.nextEmbedded)if(A.nextEmbedded==="@pop"){if(!d)throw ol(this._lexer,"cannot pop embedded language if not inside one");d=null}else{if(d)throw ol(this._lexer,"cannot enter embedded language from within an embedded language");T=AI(this._lexer,A.nextEmbedded,E,w,b)}if(A.goBack&&(f=Math.max(0,f-A.goBack)),A.switchTo&&typeof A.switchTo=="string"){let F=AI(this._lexer,A.switchTo,E,w,b);if(F[0]==="@"&&(F=F.substr(1)),Nee(this._lexer,F))h=h.switchTo(F);else throw ol(this._lexer,"trying to switch to a state '"+F+"' that is undefined in rule: "+this._safeRuleName(D))}else{if(A.transform&&typeof A.transform=="function")throw ol(this._lexer,"action.transform not supported");if(A.next)if(A.next==="@push"){if(h.depth>=this._lexer.maxStack)throw ol(this._lexer,"maximum tokenizer stack size reached: ["+h.state+","+h.parent.state+",...]");h=h.push(b)}else if(A.next==="@pop"){if(h.depth<=1)throw ol(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(D));h=h.pop()}else if(A.next==="@popall")h=h.popall();else{let F=AI(this._lexer,A.next,E,w,b);if(F[0]==="@"&&(F=F.substr(1)),Nee(this._lexer,F))h=h.push(F);else throw ol(this._lexer,"trying to set a next state '"+F+"' that is undefined in rule: "+this._safeRuleName(D))}}A.log&&typeof A.log=="string"&&YUn(this._lexer,this._lexer.languageId+": "+AI(this._lexer,A.log,E,w,b))}if(M===null)throw ol(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(D));const P=F=>{const N=this._languageService.getLanguageIdByLanguageName(F)||this._languageService.getLanguageIdByMimeType(F)||F,j=this._getNestedEmbeddedLanguageData(N);if(f<u){const W=i.substr(f);return this._nestedTokenize(W,r,qP.create(h,j),s+f,a)}else return qP.create(h,j)};if(Array.isArray(M)){if(p&&p.groups.length>0)throw ol(this._lexer,"groups cannot be nested: "+this._safeRuleName(D));if(w.length!==M.length+1)throw ol(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(D));let F=0;for(let N=1;N<w.length;N++)F+=w[N].length;if(F!==E.length)throw ol(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(D));p={rule:D,matches:w,groups:[]};for(let N=0;N<M.length;N++)p.groups[N]={action:M[N],matched:w[N+1]};f-=E.length;continue}else{if(M==="@rematch"&&(f-=E.length,E="",w=null,M="",T!==null))return P(T);if(E.length===0){if(u===0||v!==h.depth||b!==h.state||(p?p.groups.length:0)!==y)continue;throw ol(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(D))}let F=null;if(wQt(M)&&M.indexOf("@brackets")===0){const N=M.substr(9),j=XUn(this._lexer,E);if(!j)throw ol(this._lexer,"@brackets token returned but no bracket defined as: "+E);F=Tft(j.token+N)}else{const N=M===""?"":M+this._lexer.tokenPostfix;F=Tft(N)}m<l&&a.emit(m+s,F)}if(T!==null)return P(T)}return qP.create(h,d)}_getNestedEmbeddedLanguageData(i){if(!this._languageService.isRegisteredLanguageId(i))return new EV(i,e2);i!==this._languageId&&(this._languageService.requestBasicLanguageFeatures(i),Hl.getOrCreate(i),this._embeddedLanguages[i]=!0);const r=Hl.get(i);return r?new EV(i,r.getInitialState()):new EV(i,e2)}},X6=pSe=kft([Ift(4,co)],X6)}});function JUn(e,t,n,i){return new Promise((r,o)=>{const s=()=>{const a=e$n(e,t,n,i);if(n instanceof X6){const l=n.getLoadStatus();if(l.loaded===!1){l.promise.then(s,o);return}}r(a)};s()})}function Pft(e,t,n){let i=[];const o=new Uint32Array(2);o[0]=0,o[1]=33587200;for(let s=0,a=e.length;s<a;s++){const l=e[s];o[0]=l.length;const c=new Dh(o,l,n),u=nw.isBasicASCII(l,!0),d=nw.containsRTL(l,u,!0),h=Wpe(new hT(!1,!0,l,!1,u,d,0,c,[],t,0,0,0,0,-1,"none",!1,!1,null));i=i.concat(h.html),i.push("<br/>")}return i.join("")}function e$n(e,t,n,i){let r=[],o=n.getInitialState();for(let s=0,a=e.length;s<a;s++){const l=e[s],c=n.tokenizeEncoded(l,!0,o);Dh.convertToEndOffset(c.tokens,l.length);const u=new Dh(c.tokens,l,i),d=nw.isBasicASCII(l,!0),h=nw.containsRTL(l,d,!0),f=Wpe(new hT(!1,!0,l,!1,d,h,0,u.inflate(),[],t,0,0,0,0,-1,"none",!1,!1,null));r=r.concat(f.html),r.push("<br/>"),o=c.endState}return r.join("")}var Mft,Tge,t$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/colorizer.js"(){pT(),Ki(),ra(),bw(),X2(),KC(),SQt(),Mft=fT("standaloneColorizer",{createHTML:e=>e}),Tge=class{static colorizeElement(e,t,n,i){i=i||{};const r=i.theme||"vs",o=i.mimeType||n.getAttribute("lang")||n.getAttribute("data-lang");if(!o)return console.error("Mode not detected"),Promise.resolve();const s=t.getLanguageIdByMimeType(o)||o;e.setTheme(r);const a=n.firstChild?n.firstChild.nodeValue:"";n.className+=" "+r;const l=c=>{const u=Mft?.createHTML(c)??c;n.innerHTML=u};return this.colorize(t,a||"",s,i).then(l,c=>console.error(c))}static async colorize(e,t,n,i){const r=e.languageIdCodec;let o=4;i&&typeof i.tabSize=="number"&&(o=i.tabSize),W3e(t)&&(t=t.substr(1));const s=Zx(t);if(!e.isRegisteredLanguageId(n))return Pft(s,o,r);const a=await Hl.getOrCreate(n);return a?JUn(s,o,a,r):Pft(s,o,r)}static colorizeLine(e,t,n,i,r=4){const o=nw.isBasicASCII(e,t),s=nw.containsRTL(e,o,n);return Wpe(new hT(!1,!0,e,!1,o,s,0,i,[],r,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t,n=4){const i=e.getLineContent(t);e.tokenization.forceTokenization(t);const o=e.tokenization.getLineTokens(t).inflate();return this.colorizeLine(i,e.mightContainNonBasicASCII(),e.mightContainRTL(),o,n)}}}}),Oft,Rft,AV,n$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/services/markerDecorations.js"(){var e;IWe(),mr(),Oft=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},Rft=function(t,n){return function(i,r){n(i,r,t)}},AV=(e=class{constructor(n,i){}dispose(){}},e.ID="editor.contrib.markerDecorations",e),AV=Oft([Rft(1,bge)],AV),qo(AV.ID,AV,0)}}),i$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/codeEditor/editor.css"(){}}),bUe,DQt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/config/elementSizeObserver.js"(){Nt(),Un(),Fn(),bUe=class extends St{constructor(e,t){super(),this._onDidChange=this._register(new bt),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){if(!this._resizeObserver&&this._referenceDomElement){let e=null;const t=()=>{e?this.observe({width:e.width,height:e.height}):this.observe()};let n=!1,i=!1;const r=()=>{if(n&&!i)try{n=!1,i=!0,t()}finally{Nv(Yi(this._referenceDomElement),()=>{i=!1,r()})}};this._resizeObserver=new ResizeObserver(o=>{o&&o[0]&&o[0].contentRect?e={width:o[0].contentRect.width,height:o[0].contentRect.height}:e=null,n=!0,r()}),this._resizeObserver.observe(this._referenceDomElement)}}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let n=0,i=0;t?(n=t.width,i=t.height):this._referenceDomElement&&(n=this._referenceDomElement.clientWidth,i=this._referenceDomElement.clientHeight),n=Math.max(5,n),i=Math.max(5,i),(this._width!==n||this._height!==i)&&(this._width=n,this._height=i,e&&this._onDidChange.fire())}}}});function v1(e,t){xde.items.push(new xde(e,t))}function km(e,t){v1(e,(n,i,r)=>{if(typeof n<"u"){for(const[o,s]of t)if(n===o){r(e,s);return}}})}function r$n(e){xde.items.forEach(t=>t.apply(e))}var xde,Fft,o$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/config/migrateOptions.js"(){var e;xde=(e=class{constructor(n,i){this.key=n,this.migrate=i}apply(n){const i=e._read(n,this.key),r=s=>e._read(n,s),o=(s,a)=>e._write(n,s,a);this.migrate(i,r,o)}static _read(n,i){if(typeof n>"u")return;const r=i.indexOf(".");if(r>=0){const o=i.substring(0,r);return this._read(n[o],i.substring(r+1))}return n[i]}static _write(n,i,r){const o=i.indexOf(".");if(o>=0){const s=i.substring(0,o);n[s]=n[s]||{},this._write(n[s],i.substring(o+1),r);return}n[i]=r}},e.items=[],e),km("wordWrap",[[!0,"on"],[!1,"off"]]),km("lineNumbers",[[!0,"on"],[!1,"off"]]),km("cursorBlinking",[["visible","solid"]]),km("renderWhitespace",[[!0,"boundary"],[!1,"none"]]),km("renderLineHighlight",[[!0,"line"],[!1,"none"]]),km("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]),km("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]),km("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),km("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),km("autoIndent",[[!1,"advanced"],[!0,"full"]]),km("matchBrackets",[[!0,"always"],[!1,"never"]]),km("renderFinalNewline",[[!0,"on"],[!1,"off"]]),km("cursorSmoothCaretAnimation",[[!0,"on"],[!1,"off"]]),km("occurrencesHighlight",[[!0,"singleFile"],[!1,"off"]]),km("wordBasedSuggestions",[[!0,"matchingDocuments"],[!1,"off"]]),v1("autoClosingBrackets",(t,n,i)=>{t===!1&&(i("autoClosingBrackets","never"),typeof n("autoClosingQuotes")>"u"&&i("autoClosingQuotes","never"),typeof n("autoSurround")>"u"&&i("autoSurround","never"))}),v1("renderIndentGuides",(t,n,i)=>{typeof t<"u"&&(i("renderIndentGuides",void 0),typeof n("guides.indentation")>"u"&&i("guides.indentation",!!t))}),v1("highlightActiveIndentGuide",(t,n,i)=>{typeof t<"u"&&(i("highlightActiveIndentGuide",void 0),typeof n("guides.highlightActiveIndentation")>"u"&&i("guides.highlightActiveIndentation",!!t))}),Fft={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"},v1("suggest.filteredTypes",(t,n,i)=>{if(t&&typeof t=="object"){for(const r of Object.entries(Fft))t[r[0]]===!1&&typeof n(`suggest.${r[1]}`)>"u"&&i(`suggest.${r[1]}`,!1);i("suggest.filteredTypes",void 0)}}),v1("quickSuggestions",(t,n,i)=>{if(typeof t=="boolean"){const r=t?"on":"off";i("quickSuggestions",{comments:r,strings:r,other:r})}}),v1("experimental.stickyScroll.enabled",(t,n,i)=>{typeof t=="boolean"&&(i("experimental.stickyScroll.enabled",void 0),typeof n("stickyScroll.enabled")>"u"&&i("stickyScroll.enabled",t))}),v1("experimental.stickyScroll.maxLineCount",(t,n,i)=>{typeof t=="number"&&(i("experimental.stickyScroll.maxLineCount",void 0),typeof n("stickyScroll.maxLineCount")>"u"&&i("stickyScroll.maxLineCount",t))}),v1("codeActionsOnSave",(t,n,i)=>{if(t&&typeof t=="object"){let r=!1;const o={};for(const s of Object.entries(t))typeof s[1]=="boolean"?(r=!0,o[s[0]]=s[1]?"explicit":"never"):o[s[0]]=s[1];r&&i("codeActionsOnSave",o)}}),v1("codeActionWidget.includeNearbyQuickfixes",(t,n,i)=>{typeof t=="boolean"&&(i("codeActionWidget.includeNearbyQuickfixes",void 0),typeof n("codeActionWidget.includeNearbyQuickFixes")>"u"&&i("codeActionWidget.includeNearbyQuickFixes",t))}),v1("lightbulb.enabled",(t,n,i)=>{typeof t=="boolean"&&i("lightbulb.enabled",t?void 0:"off")})}}),Bft,s2,_Ue=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/config/tabFocus.js"(){Un(),Bft=class{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new bt,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus)}},s2=new Bft}});function s$n(e){let t=0;for(;e;)e=Math.floor(e/10),t++;return t||1}function a$n(){let e="";return!Qx&&!T3e&&(e+="no-user-select "),Qx&&(e+="no-minimap-shadow ",e+="enable-user-select "),xo&&(e+="mac "),e}function jft(e){const t=WA(e);return r$n(t),t}var zft,Vft,cae,Hft,Wft,$5,l$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/config/editorConfiguration.js"(){zv(),rr(),Un(),Nt(),bm(),Xr(),DQt(),NWt(),o$n(),_Ue(),Su(),tY(),AHe(),Cm(),Fn(),EHe(),zft=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},Vft=function(e,t){return function(n,i){t(n,i,e)}},cae=class extends St{constructor(t,n,i,r,o){super(),this._accessibilityService=o,this._onDidChange=this._register(new bt),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new bt),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._glyphMarginDecorationLaneCount=1,this._computeOptionsMemory=new C5e,this.isSimpleWidget=t,this.contextMenuId=n,this._containerObserver=this._register(new bUe(r,i.dimension)),this._targetWindowId=Yi(r).vscodeWindowId,this._rawOptions=jft(i),this._validatedOptions=$5.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(13)&&this._containerObserver.startObserving(),this._register(_0.onDidChangeZoomLevel(()=>this._recomputeOptions())),this._register(s2.onDidChangeTabFocus(()=>this._recomputeOptions())),this._register(this._containerObserver.onDidChange(()=>this._recomputeOptions())),this._register(Vue.onDidChange(()=>this._recomputeOptions())),this._register(t9.getInstance(Yi(r)).onDidChange(()=>this._recomputeOptions())),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions()))}_recomputeOptions(){const t=this._computeOptions(),n=$5.checkEquals(this.options,t);n!==null&&(this.options=t,this._onDidChangeFast.fire(n),this._onDidChange.fire(n))}_computeOptions(){const t=this._readEnvConfiguration(),n=jue.createFromValidatedSettings(this._validatedOptions,t.pixelRatio,this.isSimpleWidget),i=this._readFontInfo(n),r={memory:this._computeOptionsMemory,outerWidth:t.outerWidth,outerHeight:t.outerHeight-this._reservedHeight,fontInfo:i,extraEditorClassName:t.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:t.emptySelectionClipboard,pixelRatio:t.pixelRatio,tabFocusMode:s2.getTabFocusMode(),accessibilitySupport:t.accessibilitySupport,glyphMarginDecorationLaneCount:this._glyphMarginDecorationLaneCount};return $5.computeOptions(this._validatedOptions,r)}_readEnvConfiguration(){return{extraEditorClassName:a$n(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:iL||B0,pixelRatio:t9.getInstance(XFe(this._targetWindowId,!0).window).value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(t){return Vue.readFontInfo(XFe(this._targetWindowId,!0).window,t)}getRawOptions(){return this._rawOptions}updateOptions(t){const n=jft(t);$5.applyUpdate(this._rawOptions,n)&&(this._validatedOptions=$5.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(t){this._containerObserver.observe(t)}setIsDominatedByLongLines(t){this._isDominatedByLongLines!==t&&(this._isDominatedByLongLines=t,this._recomputeOptions())}setModelLineCount(t){const n=s$n(t);this._lineNumbersDigitCount!==n&&(this._lineNumbersDigitCount=n,this._recomputeOptions())}setViewLineCount(t){this._viewLineCount!==t&&(this._viewLineCount=t,this._recomputeOptions())}setReservedHeight(t){this._reservedHeight!==t&&(this._reservedHeight=t,this._recomputeOptions())}setGlyphMarginDecorationLaneCount(t){this._glyphMarginDecorationLaneCount!==t&&(this._glyphMarginDecorationLaneCount=t,this._recomputeOptions())}},cae=zft([Vft(4,pm)],cae),Hft=class{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}},Wft=class{constructor(){this._values=[]}_read(e){if(e>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[e]}get(e){return this._read(e)}_write(e,t){this._values[e]=t}},$5=class WBe{static validateOptions(t){const n=new Hft;for(const i of IO){const r=i.name==="_never_"?void 0:t[i.name];n._write(i.id,i.validate(r))}return n}static computeOptions(t,n){const i=new Wft;for(const r of IO)i._write(r.id,r.compute(n,i,t._read(r.id)));return i}static _deepEquals(t,n){if(typeof t!="object"||typeof n!="object"||!t||!n)return t===n;if(Array.isArray(t)||Array.isArray(n))return Array.isArray(t)&&Array.isArray(n)?vl(t,n):!1;if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const i in t)if(!WBe._deepEquals(t[i],n[i]))return!1;return!0}static checkEquals(t,n){const i=[];let r=!1;for(const o of IO){const s=!WBe._deepEquals(t._read(o.id),n._read(o.id));i[o.id]=s,s&&(r=!0)}return r?new wHe(i):null}static applyUpdate(t,n){let i=!1;for(const r of IO)if(n.hasOwnProperty(r.name)){const o=r.applyUpdate(t[r.name],n[r.name]);t[r.name]=o.newValue,i=i||o.didChange}return i}}}}),DI,TQt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/performance.js"(){(function(e){const t={total:0,min:Number.MAX_VALUE,max:0},n={...t},i={...t},r={...t};let o=0;const s={keydown:0,input:0,render:0};function a(){v(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),s.keydown=1,queueMicrotask(l)}e.onKeyDown=a;function l(){s.keydown===1&&(performance.mark("keydown/end"),s.keydown=2)}function c(){performance.mark("input/start"),s.input=1,m()}e.onBeforeInput=c;function u(){s.input===0&&c(),queueMicrotask(d)}e.onInput=u;function d(){s.input===1&&(performance.mark("input/end"),s.input=2)}function h(){v()}e.onKeyUp=h;function f(){v()}e.onSelectionChange=f;function p(){s.keydown===2&&s.input===2&&s.render===0&&(performance.mark("render/start"),s.render=1,queueMicrotask(g),m())}e.onRenderStart=p;function g(){s.render===1&&(performance.mark("render/end"),s.render=2)}function m(){setTimeout(v)}function v(){s.keydown===2&&s.input===2&&s.render===2&&(performance.mark("inputlatency/end"),performance.measure("keydown","keydown/start","keydown/end"),performance.measure("input","input/start","input/end"),performance.measure("render","render/start","render/end"),performance.measure("inputlatency","inputlatency/start","inputlatency/end"),y("keydown",t),y("input",n),y("render",i),y("inputlatency",r),o++,b())}function y(D,T){const M=performance.getEntriesByName(D)[0].duration;T.total+=M,T.min=Math.min(T.min,M),T.max=Math.max(T.max,M)}function b(){performance.clearMarks("keydown/start"),performance.clearMarks("keydown/end"),performance.clearMarks("input/start"),performance.clearMarks("input/end"),performance.clearMarks("render/start"),performance.clearMarks("render/end"),performance.clearMarks("inputlatency/start"),performance.clearMarks("inputlatency/end"),performance.clearMeasures("keydown"),performance.clearMeasures("input"),performance.clearMeasures("render"),performance.clearMeasures("inputlatency"),s.keydown=0,s.input=0,s.render=0}function w(){if(o===0)return;const D={keydown:E(t),input:E(n),render:E(i),total:E(r),sampleCount:o};return A(t),A(n),A(i),A(r),o=0,D}e.getAndClearMeasurements=w;function E(D){return{average:D.total/o,max:D.max,min:D.min}}function A(D){D.total=0,D.min=Number.MAX_VALUE,D.max=0}})(DI||(DI={}))}}),uae,Uft,$ft,qft,Gft,c$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/controller/mouseHandler.js"(){var e;Fn(),Cb(),Nt(),Xr(),xHe(),QK(),tY(),Hi(),zs(),ZK(),vw(),uae=class extends x7{constructor(t,n,i){super(),this._mouseLeaveMonitor=null,this._context=t,this.viewController=n,this.viewHelper=i,this.mouseTargetFactory=new VU(this._context,i),this._mouseDownOperation=this._register(new Uft(this._context,this.viewController,this.viewHelper,this.mouseTargetFactory,(s,a)=>this._createMouseTarget(s,a),s=>this._getMouseColumn(s))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(146).height;const r=new JHt(this.viewHelper.viewDomNode);this._register(r.onContextMenu(this.viewHelper.viewDomNode,s=>this._onContextMenu(s,!0))),this._register(r.onMouseMove(this.viewHelper.viewDomNode,s=>{this._onMouseMove(s),this._mouseLeaveMonitor||(this._mouseLeaveMonitor=qt(this.viewHelper.viewDomNode.ownerDocument,"mousemove",a=>{this.viewHelper.viewDomNode.contains(a.target)||this._onMouseLeave(new uD(a,!1,this.viewHelper.viewDomNode))}))})),this._register(r.onMouseUp(this.viewHelper.viewDomNode,s=>this._onMouseUp(s))),this._register(r.onMouseLeave(this.viewHelper.viewDomNode,s=>this._onMouseLeave(s)));let o=0;this._register(r.onPointerDown(this.viewHelper.viewDomNode,(s,a)=>{o=a})),this._register(qt(this.viewHelper.viewDomNode,kn.POINTER_UP,s=>{this._mouseDownOperation.onPointerUp()})),this._register(r.onMouseDown(this.viewHelper.viewDomNode,s=>this._onMouseDown(s,o))),this._setupMouseWheelZoomListener(),this._context.addEventHandler(this)}_setupMouseWheelZoomListener(){const t=l4e.INSTANCE;let n=0,i=_0.getZoomLevel(),r=!1,o=0;const s=l=>{if(this.viewController.emitMouseWheel(l),!this._context.configuration.options.get(76))return;const c=new DL(l);if(t.acceptStandardWheelEvent(c),t.isPhysicalMouseWheel()){if(a(l)){const u=_0.getZoomLevel(),d=c.deltaY>0?1:-1;_0.setZoomLevel(u+d),c.preventDefault(),c.stopPropagation()}}else Date.now()-n>50&&(i=_0.getZoomLevel(),r=a(l),o=0),n=Date.now(),o+=c.deltaY,r&&(_0.setZoomLevel(i+o/5),c.preventDefault(),c.stopPropagation())};this._register(qt(this.viewHelper.viewDomNode,kn.MOUSE_WHEEL,s,{capture:!0,passive:!1}));function a(l){return xo?(l.metaKey||l.ctrlKey)&&!l.shiftKey&&!l.altKey:l.ctrlKey&&!l.metaKey&&!l.shiftKey&&!l.altKey}}dispose(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),super.dispose()}onConfigurationChanged(t){if(t.hasChanged(146)){const n=this._context.configuration.options.get(146).height;this._height!==n&&(this._height=n,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(t){return this._mouseDownOperation.onCursorStateChanged(t),!1}onFocusChanged(t){return!1}getTargetAtClientPoint(t,n){const r=new h5e(t,n).toPageCoordinates(Yi(this.viewHelper.viewDomNode)),o=u5e(this.viewHelper.viewDomNode);if(r.y<o.y||r.y>o.y+o.height||r.x<o.x||r.x>o.x+o.width)return null;const s=d5e(this.viewHelper.viewDomNode,o,r);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),o,r,s,null)}_createMouseTarget(t,n){let i=t.target;if(!this.viewHelper.viewDomNode.contains(i)){const r=GR(this.viewHelper.viewDomNode);r&&(i=r.elementsFromPoint(t.posx,t.posy).find(o=>this.viewHelper.viewDomNode.contains(o)))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),t.editorPos,t.pos,t.relativePos,n?i:null)}_getMouseColumn(t){return this.mouseTargetFactory.getMouseColumn(t.relativePos)}_onContextMenu(t,n){this.viewController.emitContextMenu({event:t,target:this._createMouseTarget(t,n)})}_onMouseMove(t){this.mouseTargetFactory.mouseTargetIsWidget(t)||t.preventDefault(),!(this._mouseDownOperation.isActive()||t.timestamp<this.lastMouseLeaveTime)&&this.viewController.emitMouseMove({event:t,target:this._createMouseTarget(t,!0)})}_onMouseLeave(t){this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),this.lastMouseLeaveTime=new Date().getTime(),this.viewController.emitMouseLeave({event:t,target:null})}_onMouseUp(t){this.viewController.emitMouseUp({event:t,target:this._createMouseTarget(t,!0)})}_onMouseDown(t,n){const i=this._createMouseTarget(t,!0),r=i.type===6||i.type===7,o=i.type===2||i.type===3||i.type===4,s=i.type===3,a=this._context.configuration.options.get(110),l=i.type===8||i.type===5,c=i.type===9;let u=t.leftButton||t.middleButton;xo&&t.leftButton&&t.ctrlKey&&(u=!1);const d=()=>{t.preventDefault(),this.viewHelper.focusTextArea()};if(u&&(r||s&&a))d(),this._mouseDownOperation.start(i.type,t,n);else if(o)t.preventDefault();else if(l){const h=i.detail;u&&this.viewHelper.shouldSuppressMouseDownOnViewZone(h.viewZoneId)&&(d(),this._mouseDownOperation.start(i.type,t,n),t.preventDefault())}else c&&this.viewHelper.shouldSuppressMouseDownOnWidget(i.detail)&&(d(),t.preventDefault());this.viewController.emitMouseDown({event:t,target:i})}},Uft=class extends St{constructor(t,n,i,r,o,s){super(),this._context=t,this._viewController=n,this._viewHelper=i,this._mouseTargetFactory=r,this._createMouseTarget=o,this._getMouseColumn=s,this._mouseMoveMonitor=this._register(new tWt(this._viewHelper.viewDomNode)),this._topBottomDragScrolling=this._register(new $ft(this._context,this._viewHelper,this._mouseTargetFactory,(a,l,c)=>this._dispatchMouse(a,l,c))),this._mouseState=new Gft,this._currentSelection=new Ii(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(t){this._lastMouseEvent=t,this._mouseState.setModifiers(t);const n=this._findMousePosition(t,!1);n&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:t,target:n}):n.type===13&&(n.outsidePosition==="above"||n.outsidePosition==="below")?this._topBottomDragScrolling.start(n,t):(this._topBottomDragScrolling.stop(),this._dispatchMouse(n,!0,1)))}start(t,n,i){this._lastMouseEvent=n,this._mouseState.setStartedOnLineNumbers(t===3),this._mouseState.setStartButtons(n),this._mouseState.setModifiers(n);const r=this._findMousePosition(n,!0);if(!r||!r.position)return;this._mouseState.trySetCount(n.detail,r.position),n.detail=this._mouseState.count;const o=this._context.configuration.options;if(!o.get(92)&&o.get(35)&&!o.get(22)&&!this._mouseState.altKey&&n.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&r.type===6&&r.position&&this._currentSelection.containsPosition(r.position)){this._mouseState.isDragAndDrop=!0,this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,n.buttons,s=>this._onMouseDownThenMove(s),s=>{const a=this._findMousePosition(this._lastMouseEvent,!1);MA(s)?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:a?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()});return}this._mouseState.isDragAndDrop=!1,this._dispatchMouse(r,n.shiftKey,1),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,n.buttons,s=>this._onMouseDownThenMove(s),()=>this._stop()))}_stop(){this._isActive=!1,this._topBottomDragScrolling.stop()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onPointerUp(){this._mouseMoveMonitor.stopMonitoring()}onCursorStateChanged(t){this._currentSelection=t.selections[0]}_getPositionOutsideEditor(t){const n=t.editorPos,i=this._context.viewModel,r=this._context.viewLayout,o=this._getMouseColumn(t);if(t.posy<n.y){const a=n.y-t.posy,l=Math.max(r.getCurrentScrollTop()-a,0),c=$q.getZoneAtCoord(this._context,l);if(c){const d=this._helpPositionJumpOverViewZone(c);if(d)return Qh.createOutsideEditor(o,d,"above",a)}const u=r.getLineNumberAtVerticalOffset(l);return Qh.createOutsideEditor(o,new mt(u,1),"above",a)}if(t.posy>n.y+n.height){const a=t.posy-n.y-n.height,l=r.getCurrentScrollTop()+t.relativePos.y,c=$q.getZoneAtCoord(this._context,l);if(c){const d=this._helpPositionJumpOverViewZone(c);if(d)return Qh.createOutsideEditor(o,d,"below",a)}const u=r.getLineNumberAtVerticalOffset(l);return Qh.createOutsideEditor(o,new mt(u,i.getLineMaxColumn(u)),"below",a)}const s=r.getLineNumberAtVerticalOffset(r.getCurrentScrollTop()+t.relativePos.y);if(t.posx<n.x){const a=n.x-t.posx;return Qh.createOutsideEditor(o,new mt(s,1),"left",a)}if(t.posx>n.x+n.width){const a=t.posx-n.x-n.width;return Qh.createOutsideEditor(o,new mt(s,i.getLineMaxColumn(s)),"right",a)}return null}_findMousePosition(t,n){const i=this._getPositionOutsideEditor(t);if(i)return i;const r=this._createMouseTarget(t,n);if(!r.position)return null;if(r.type===8||r.type===5){const s=this._helpPositionJumpOverViewZone(r.detail);if(s)return Qh.createViewZone(r.type,r.element,r.mouseColumn,s,r.detail)}return r}_helpPositionJumpOverViewZone(t){const n=new mt(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=t.positionBefore,r=t.positionAfter;return i&&r?i.isBefore(n)?i:r:null}_dispatchMouse(t,n,i){t.position&&this._viewController.dispatchMouse({position:t.position,mouseColumn:t.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,revealType:i,inSelectionMode:n,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:t.type===6&&t.detail.injectedText!==null})}},$ft=class extends St{constructor(t,n,i,r){super(),this._context=t,this._viewHelper=n,this._mouseTargetFactory=i,this._dispatchMouse=r,this._operation=null}dispose(){super.dispose(),this.stop()}start(t,n){this._operation?this._operation.setPosition(t,n):this._operation=new qft(this._context,this._viewHelper,this._mouseTargetFactory,this._dispatchMouse,t,n)}stop(){this._operation&&(this._operation.dispose(),this._operation=null)}},qft=class extends St{constructor(t,n,i,r,o,s){super(),this._context=t,this._viewHelper=n,this._mouseTargetFactory=i,this._dispatchMouse=r,this._position=o,this._mouseEvent=s,this._lastTime=Date.now(),this._animationFrameDisposable=Nv(Yi(s.browserEvent),()=>this._execute())}dispose(){this._animationFrameDisposable.dispose(),super.dispose()}setPosition(t,n){this._position=t,this._mouseEvent=n}_tick(){const t=Date.now(),n=t-this._lastTime;return this._lastTime=t,n}_getScrollSpeed(){const t=this._context.configuration.options.get(67),n=this._context.configuration.options.get(146).height/t,i=this._position.outsideDistance/t;return i<=1.5?Math.max(30,n*(1+i)):i<=3?Math.max(60,n*(2+i)):Math.max(200,n*(7+i))}_execute(){const t=this._context.configuration.options.get(67),n=this._getScrollSpeed(),i=this._tick(),r=n*(i/1e3)*t,o=this._position.outsidePosition==="above"?-r:r;this._context.viewModel.viewLayout.deltaScrollNow(0,o),this._viewHelper.renderNow();const s=this._context.viewLayout.getLinesViewportData(),a=this._position.outsidePosition==="above"?s.startLineNumber:s.endLineNumber;let l;{const c=u5e(this._viewHelper.viewDomNode),u=this._context.configuration.options.get(146).horizontalScrollbarHeight,d=new jU(this._mouseEvent.pos.x,c.y+c.height-u-.1),h=d5e(this._viewHelper.viewDomNode,c,d);l=this._mouseTargetFactory.createMouseTarget(this._viewHelper.getLastRenderData(),c,d,h,null)}(!l.position||l.position.lineNumber!==a)&&(this._position.outsidePosition==="above"?l=Qh.createOutsideEditor(this._position.mouseColumn,new mt(a,1),"above",this._position.outsideDistance):l=Qh.createOutsideEditor(this._position.mouseColumn,new mt(a,this._context.viewModel.getLineMaxColumn(a)),"below",this._position.outsideDistance)),this._dispatchMouse(l,!0,2),this._animationFrameDisposable=Nv(Yi(l.element),()=>this._execute())}},Gft=(e=class{get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get count(){return this._lastMouseDownCount}setModifiers(n){this._altKey=n.altKey,this._ctrlKey=n.ctrlKey,this._metaKey=n.metaKey,this._shiftKey=n.shiftKey}setStartButtons(n){this._leftButton=n.leftButton,this._middleButton=n.middleButton}setStartedOnLineNumbers(n){this._startedOnLineNumbers=n}trySetCount(n,i){const r=new Date().getTime();r-this._lastSetMouseDownCountTime>e.CLEAR_MOUSE_DOWN_COUNT_TIME&&(n=1),this._lastSetMouseDownCountTime=r,n>this._lastMouseDownCount+1&&(n=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(i)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=i,this._lastMouseDownCount=Math.min(n,this._lastMouseDownPositionEqualCount)}},e.CLEAR_MOUSE_DOWN_COUNT_TIME=400,e)}}),m0,eg,kQt,IQt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaState.js"(){var e;Ki(),Dn(),m0=!1,eg=(e=class{constructor(n,i,r,o,s){this.value=n,this.selectionStart=i,this.selectionEnd=r,this.selection=o,this.newlineCountBeforeSelection=s}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(n,i){const r=n.getValue(),o=n.getSelectionStart(),s=n.getSelectionEnd();let a;if(i){const l=r.substring(0,o),c=i.value.substring(0,i.selectionStart);l===c&&(a=i.newlineCountBeforeSelection)}return new e(r,o,s,null,a)}collapseSelection(){return this.selectionStart===this.value.length?this:new e(this.value,this.value.length,this.value.length,null,void 0)}writeToTextArea(n,i,r){m0&&console.log(`writeToTextArea ${n}: ${this.toString()}`),i.setValue(n,this.value),r&&i.setSelectionRange(n,this.selectionStart,this.selectionEnd)}deduceEditorPosition(n){if(n<=this.selectionStart){const o=this.value.substring(n,this.selectionStart);return this._finishDeduceEditorPosition(this.selection?.getStartPosition()??null,o,-1)}if(n>=this.selectionEnd){const o=this.value.substring(this.selectionEnd,n);return this._finishDeduceEditorPosition(this.selection?.getEndPosition()??null,o,1)}const i=this.value.substring(this.selectionStart,n);if(i.indexOf("…")===-1)return this._finishDeduceEditorPosition(this.selection?.getStartPosition()??null,i,1);const r=this.value.substring(n,this.selectionEnd);return this._finishDeduceEditorPosition(this.selection?.getEndPosition()??null,r,-1)}_finishDeduceEditorPosition(n,i,r){let o=0,s=-1;for(;(s=i.indexOf(`
`,s+1))!==-1;)o++;return[n,r*i.length,o]}static deduceInput(n,i,r){if(!n)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};m0&&(console.log("------------------------deduceInput"),console.log(`PREVIOUS STATE: ${n.toString()}`),console.log(`CURRENT STATE: ${i.toString()}`));const o=Math.min(kL(n.value,i.value),n.selectionStart,i.selectionStart),s=Math.min(bue(n.value,i.value),n.value.length-n.selectionEnd,i.value.length-i.selectionEnd),a=n.value.substring(o,n.value.length-s),l=i.value.substring(o,i.value.length-s),c=n.selectionStart-o,u=n.selectionEnd-o,d=i.selectionStart-o,h=i.selectionEnd-o;if(m0&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${a}>, selectionStart: ${c}, selectionEnd: ${u}`),console.log(`AFTER DIFFING CURRENT STATE: <${l}>, selectionStart: ${d}, selectionEnd: ${h}`)),d===h){const p=n.selectionStart-o;return m0&&console.log(`REMOVE PREVIOUS: ${p} chars`),{text:l,replacePrevCharCnt:p,replaceNextCharCnt:0,positionDelta:0}}const f=u-c;return{text:l,replacePrevCharCnt:f,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(n,i){if(!n)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(m0&&(console.log("------------------------deduceAndroidCompositionInput"),console.log(`PREVIOUS STATE: ${n.toString()}`),console.log(`CURRENT STATE: ${i.toString()}`)),n.value===i.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:i.selectionEnd-n.selectionEnd};const r=Math.min(kL(n.value,i.value),n.selectionEnd),o=Math.min(bue(n.value,i.value),n.value.length-n.selectionEnd),s=n.value.substring(r,n.value.length-o),a=i.value.substring(r,i.value.length-o),l=n.selectionStart-r,c=n.selectionEnd-r,u=i.selectionStart-r,d=i.selectionEnd-r;return m0&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${s}>, selectionStart: ${l}, selectionEnd: ${c}`),console.log(`AFTER DIFFING CURRENT STATE: <${a}>, selectionStart: ${u}, selectionEnd: ${d}`)),{text:a,replacePrevCharCnt:c,replaceNextCharCnt:s.length-c,positionDelta:d-a.length}}},e.EMPTY=new e("",0,0,null,void 0),e),kQt=class gW{static _getPageOfLine(n,i){return Math.floor((n-1)/i)}static _getRangeForPage(n,i){const r=n*i,o=r+1,s=r+i;return new Re(o,1,s+1,1)}static fromEditorSelection(n,i,r,o){const a=gW._getPageOfLine(i.startLineNumber,r),l=gW._getRangeForPage(a,r),c=gW._getPageOfLine(i.endLineNumber,r),u=gW._getRangeForPage(c,r);let d=l.intersectRanges(new Re(1,1,i.startLineNumber,i.startColumn));if(o&&n.getValueLengthInRange(d,1)>500){const y=n.modifyPosition(d.getEndPosition(),-500);d=Re.fromPositions(y,d.getEndPosition())}const h=n.getValueInRange(d,1),f=n.getLineCount(),p=n.getLineMaxColumn(f);let g=u.intersectRanges(new Re(i.endLineNumber,i.endColumn,f,p));if(o&&n.getValueLengthInRange(g,1)>500){const y=n.modifyPosition(g.getStartPosition(),500);g=Re.fromPositions(g.getStartPosition(),y)}const m=n.getValueInRange(g,1);let v;if(a===c||a+1===c)v=n.getValueInRange(i,1);else{const y=l.intersectRanges(i),b=u.intersectRanges(i);v=n.getValueInRange(y,1)+"…"+n.getValueInRange(b,1)}return o&&v.length>2*500&&(v=v.substring(0,500)+"…"+v.substring(v.length-500,v.length)),new eg(h+v+m,h.length,h.length+v.length,i,d.endLineNumber-d.startLineNumber)}}}}),Kft,mSe,dae,Ede,hae,Yft,fae,pae,LQt,kge=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaInput.js"(){var e;zv(),Fn(),UC(),mf(),TQt(),fr(),Un(),Nt(),eF(),Ki(),IQt(),zs(),Cm(),wm(),Kft=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},mSe=function(t,n){return function(i,r){n(i,r,t)}},(function(t){t.Tap="-monaco-textarea-synthetic-tap"})(dae||(dae={})),Ede={forceCopyWithSyntaxHighlighting:!1},hae=(e=class{constructor(){this._lastState=null}set(n,i){this._lastState={lastCopiedValue:n,data:i}}get(n){return this._lastState&&this._lastState.lastCopiedValue===n?this._lastState.data:(this._lastState=null,null)}},e.INSTANCE=new e,e),Yft=class{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(t){t=t||"";const n={text:t,replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=t.length,n}},fae=class extends St{get textAreaState(){return this._textAreaState}constructor(n,i,r,o,s,a){super(),this._host=n,this._textArea=i,this._OS=r,this._browser=o,this._accessibilityService=s,this._logService=a,this._onFocus=this._register(new bt),this.onFocus=this._onFocus.event,this._onBlur=this._register(new bt),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new bt),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new bt),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new bt),this.onCut=this._onCut.event,this._onPaste=this._register(new bt),this.onPaste=this._onPaste.event,this._onType=this._register(new bt),this.onType=this._onType.event,this._onCompositionStart=this._register(new bt),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new bt),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new bt),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new bt),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new Yu),this._asyncTriggerCut=this._register(new Gs(()=>this._onCut.fire(),0)),this._textAreaState=eg.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent("ctor"),this._register(On.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new Gs(()=>this.writeNativeTextAreaContent("asyncFocusGain"),0)):this._asyncFocusGainWriteScreenReaderContent.clear()})),this._hasFocus=!1,this._currentComposition=null;let l=null;this._register(this._textArea.onKeyDown(c=>{const u=new Sa(c);(u.keyCode===114||this._currentComposition&&u.keyCode===1)&&u.stopPropagation(),u.equals(9)&&u.preventDefault(),l=u,this._onKeyDown.fire(u)})),this._register(this._textArea.onKeyUp(c=>{const u=new Sa(c);this._onKeyUp.fire(u)})),this._register(this._textArea.onCompositionStart(c=>{m0&&console.log("[compositionstart]",c);const u=new Yft;if(this._currentComposition){this._currentComposition=u;return}if(this._currentComposition=u,this._OS===2&&l&&l.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===c.data&&(l.code==="ArrowRight"||l.code==="ArrowLeft")){m0&&console.log("[compositionstart] Handling long press case on macOS + arrow key",c),u.handleCompositionUpdate("x"),this._onCompositionStart.fire({data:c.data});return}if(this._browser.isAndroid){this._onCompositionStart.fire({data:c.data});return}this._onCompositionStart.fire({data:c.data})})),this._register(this._textArea.onCompositionUpdate(c=>{m0&&console.log("[compositionupdate]",c);const u=this._currentComposition;if(!u)return;if(this._browser.isAndroid){const h=eg.readFromTextArea(this._textArea,this._textAreaState),f=eg.deduceAndroidCompositionInput(this._textAreaState,h);this._textAreaState=h,this._onType.fire(f),this._onCompositionUpdate.fire(c);return}const d=u.handleCompositionUpdate(c.data);this._textAreaState=eg.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(d),this._onCompositionUpdate.fire(c)})),this._register(this._textArea.onCompositionEnd(c=>{m0&&console.log("[compositionend]",c);const u=this._currentComposition;if(!u)return;if(this._currentComposition=null,this._browser.isAndroid){const h=eg.readFromTextArea(this._textArea,this._textAreaState),f=eg.deduceAndroidCompositionInput(this._textAreaState,h);this._textAreaState=h,this._onType.fire(f),this._onCompositionEnd.fire();return}const d=u.handleCompositionUpdate(c.data);this._textAreaState=eg.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(d),this._onCompositionEnd.fire()})),this._register(this._textArea.onInput(c=>{if(m0&&console.log("[input]",c),this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;const u=eg.readFromTextArea(this._textArea,this._textAreaState),d=eg.deduceInput(this._textAreaState,u,this._OS===2);d.replacePrevCharCnt===0&&d.text.length===1&&(ud(d.text.charCodeAt(0))||d.text.charCodeAt(0)===127)||(this._textAreaState=u,(d.text!==""||d.replacePrevCharCnt!==0||d.replaceNextCharCnt!==0||d.positionDelta!==0)&&this._onType.fire(d))})),this._register(this._textArea.onCut(c=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(c),this._asyncTriggerCut.schedule()})),this._register(this._textArea.onCopy(c=>{this._ensureClipboardGetsEditorSelection(c)})),this._register(this._textArea.onPaste(c=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),c.preventDefault(),!c.clipboardData)return;let[u,d]=pae.getTextData(c.clipboardData);u&&(d=d||hae.INSTANCE.get(u),this._onPaste.fire({text:u,metadata:d}))})),this._register(this._textArea.onFocus(()=>{const c=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!c&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new Gs(()=>this.writeNativeTextAreaContent("asyncFocusGain"),0)),this._asyncFocusGainWriteScreenReaderContent.value.schedule())})),this._register(this._textArea.onBlur(()=>{this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(this._textArea.onSyntheticTap(()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let n=0;return qt(this._textArea.ownerDocument,"selectionchange",i=>{if(DI.onSelectionChange(),!this._hasFocus||this._currentComposition||!this._browser.isChrome)return;const r=Date.now(),o=r-n;if(n=r,o<5)return;const s=r-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),s<100||!this._textAreaState.selection)return;const a=this._textArea.getValue();if(this._textAreaState.value!==a)return;const l=this._textArea.getSelectionStart(),c=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===l&&this._textAreaState.selectionEnd===c)return;const u=this._textAreaState.deduceEditorPosition(l),d=this._host.deduceModelPosition(u[0],u[1],u[2]),h=this._textAreaState.deduceEditorPosition(c),f=this._host.deduceModelPosition(h[0],h[1],h[2]),p=new Ii(d.lineNumber,d.column,f.lineNumber,f.column);this._onSelectionChangeRequest.fire(p)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(n){this._hasFocus!==n&&(this._hasFocus=n,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeNativeTextAreaContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(n,i){this._hasFocus||(i=i.collapseSelection()),i.writeToTextArea(n,this._textArea,this._hasFocus),this._textAreaState=i}writeNativeTextAreaContent(n){!this._accessibilityService.isScreenReaderOptimized()&&n==="render"||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${n})`),this._setAndWriteTextAreaState(n,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(n){const i=this._host.getDataToCopy(),r={version:1,isFromEmptySelection:i.isFromEmptySelection,multicursorText:i.multicursorText,mode:i.mode};hae.INSTANCE.set(this._browser.isFirefox?i.text.replace(/\r\n/g,`
`):i.text,r),n.preventDefault(),n.clipboardData&&pae.setTextData(n.clipboardData,i.text,i.html,r)}},fae=Kft([mSe(4,pm),mSe(5,bh)],fae),pae={getTextData(t){const n=t.getData(Jl.text);let i=null;const r=t.getData("vscode-editor-data");if(typeof r=="string")try{i=JSON.parse(r),i.version!==1&&(i=null)}catch{}return n.length===0&&i===null&&t.files.length>0?[Array.prototype.slice.call(t.files,0).map(s=>s.name).join(`
`),null]:[n,i]},setTextData(t,n,i,r){t.setData(Jl.text,n),typeof i=="string"&&t.setData("text/html",i),t.setData("vscode-editor-data",JSON.stringify(r))}},LQt=class extends St{get ownerDocument(){return this._actual.ownerDocument}constructor(t){super(),this._actual=t,this.onKeyDown=this._register(new ko(this._actual,"keydown")).event,this.onKeyUp=this._register(new ko(this._actual,"keyup")).event,this.onCompositionStart=this._register(new ko(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(new ko(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(new ko(this._actual,"compositionend")).event,this.onBeforeInput=this._register(new ko(this._actual,"beforeinput")).event,this.onInput=this._register(new ko(this._actual,"input")).event,this.onCut=this._register(new ko(this._actual,"cut")).event,this.onCopy=this._register(new ko(this._actual,"copy")).event,this.onPaste=this._register(new ko(this._actual,"paste")).event,this.onFocus=this._register(new ko(this._actual,"focus")).event,this.onBlur=this._register(new ko(this._actual,"blur")).event,this._onSyntheticTap=this._register(new bt),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(this.onKeyDown(()=>DI.onKeyDown())),this._register(this.onBeforeInput(()=>DI.onBeforeInput())),this._register(this.onInput(()=>DI.onInput())),this._register(this.onKeyUp(()=>DI.onKeyUp())),this._register(qt(this._actual,dae.Tap,()=>this._onSyntheticTap.fire()))}hasFocus(){const t=GR(this._actual);return t?t.activeElement===this._actual:this._actual.isConnected?cf()===this._actual:!1}setIgnoreSelectionChangeTime(t){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(t,n){const i=this._actual;i.value!==n&&(this.setIgnoreSelectionChangeTime("setValue"),i.value=n)}getSelectionStart(){return this._actual.selectionDirection==="backward"?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return this._actual.selectionDirection==="backward"?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(t,n,i){const r=this._actual;let o=null;const s=GR(r);s?o=s.activeElement:o=cf();const a=Yi(o),l=o===r,c=r.selectionStart,u=r.selectionEnd;if(l&&c===n&&u===i){B0&&a.parent!==a&&r.focus();return}if(l){this.setIgnoreSelectionChangeTime("setSelectionRange"),r.setSelectionRange(n,i),B0&&a.parent!==a&&r.focus();return}try{const d=U9n(r);this.setIgnoreSelectionChangeTime("setSelectionRange"),r.focus(),r.setSelectionRange(n,i),$9n(r,d)}catch{}}}}}),Qft,Zft,NQt,u$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/controller/pointerHandler.js"(){k3e(),Fn(),Q0(),wg(),Nt(),Xr(),c$n(),kge(),QK(),Qft=class extends uae{constructor(e,t,n){super(e,t,n),this._register(Ap.addTarget(this.viewHelper.linesContentDomNode)),this._register(qt(this.viewHelper.linesContentDomNode,Wa.Tap,r=>this.onTap(r))),this._register(qt(this.viewHelper.linesContentDomNode,Wa.Change,r=>this.onChange(r))),this._register(qt(this.viewHelper.linesContentDomNode,Wa.Contextmenu,r=>this._onContextMenu(new uD(r,!1,this.viewHelper.viewDomNode),!1))),this._lastPointerType="mouse",this._register(qt(this.viewHelper.linesContentDomNode,"pointerdown",r=>{const o=r.pointerType;if(o==="mouse"){this._lastPointerType="mouse";return}else o==="touch"?this._lastPointerType="touch":this._lastPointerType="pen"}));const i=new eWt(this.viewHelper.viewDomNode);this._register(i.onPointerMove(this.viewHelper.viewDomNode,r=>this._onMouseMove(r))),this._register(i.onPointerUp(this.viewHelper.viewDomNode,r=>this._onMouseUp(r))),this._register(i.onPointerLeave(this.viewHelper.viewDomNode,r=>this._onMouseLeave(r))),this._register(i.onPointerDown(this.viewHelper.viewDomNode,(r,o)=>this._onMouseDown(r,o)))}onTap(e){!e.initialTarget||!this.viewHelper.linesContentDomNode.contains(e.initialTarget)||(e.preventDefault(),this.viewHelper.focusTextArea(),this._dispatchGesture(e,!1))}onChange(e){this._lastPointerType==="touch"&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY),this._lastPointerType==="pen"&&this._dispatchGesture(e,!0)}_dispatchGesture(e,t){const n=this._createMouseTarget(new uD(e,!1,this.viewHelper.viewDomNode),!1);n.position&&this.viewController.dispatchMouse({position:n.position,mouseColumn:n.position.column,startedOnLineNumbers:!1,revealType:1,mouseDownCount:e.tapCount,inSelectionMode:t,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:n.type===6&&n.detail.injectedText!==null})}_onMouseDown(e,t){e.browserEvent.pointerType!=="touch"&&super._onMouseDown(e,t)}},Zft=class extends uae{constructor(e,t,n){super(e,t,n),this._register(Ap.addTarget(this.viewHelper.linesContentDomNode)),this._register(qt(this.viewHelper.linesContentDomNode,Wa.Tap,i=>this.onTap(i))),this._register(qt(this.viewHelper.linesContentDomNode,Wa.Change,i=>this.onChange(i))),this._register(qt(this.viewHelper.linesContentDomNode,Wa.Contextmenu,i=>this._onContextMenu(new uD(i,!1,this.viewHelper.viewDomNode),!1)))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new uD(e,!1,this.viewHelper.viewDomNode),!1);if(t.position){const n=document.createEvent("CustomEvent");n.initEvent(dae.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(n),this.viewController.moveTo(t.position,1)}}onChange(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}},NQt=class extends St{constructor(e,t,n){super(),(Z_||_7t&&CVe)&&Ppe.pointerEvents?this.handler=this._register(new Qft(e,t,n)):la.TouchEvent?this.handler=this._register(new Zft(e,t,n)):this.handler=this._register(new uae(e,t,n))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}}}),d$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaHandler.css"(){}}),h$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lineNumbers/lineNumbers.css"(){}}),VN,sF=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/view/dynamicViewOverlay.js"(){ZK(),VN=class extends x7{}}}),wUe,PQt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js"(){var e;h$n(),Xr(),sF(),Hi(),Dn(),Ys(),kb(),wUe=(e=class extends VN{constructor(n){super(),this._context=n,this._readConfig(),this._lastCursorModelPosition=new mt(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){const n=this._context.configuration.options;this._lineHeight=n.get(67);const i=n.get(68);this._renderLineNumbers=i.renderType,this._renderCustomLineNumbers=i.renderFn,this._renderFinalNewline=n.get(96);const r=n.get(146);this._lineNumbersLeft=r.lineNumbersLeft,this._lineNumbersWidth=r.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(n){return this._readConfig(),!0}onCursorStateChanged(n){const i=n.selections[0].getPosition();this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(i);let r=!1;return this._activeLineNumber!==i.lineNumber&&(this._activeLineNumber=i.lineNumber,r=!0),(this._renderLineNumbers===2||this._renderLineNumbers===3)&&(r=!0),r}onFlushed(n){return!0}onLinesChanged(n){return!0}onLinesDeleted(n){return!0}onLinesInserted(n){return!0}onScrollChanged(n){return n.scrollTopChanged}onZonesChanged(n){return!0}onDecorationsChanged(n){return n.affectsLineNumber}_getLineRenderLineNumber(n){const i=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new mt(n,1));if(i.column!==1)return"";const r=i.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(r);if(this._renderLineNumbers===2){const o=Math.abs(this._lastCursorModelPosition.lineNumber-r);return o===0?'<span class="relative-current-line-number">'+r+"</span>":String(o)}if(this._renderLineNumbers===3){if(this._lastCursorModelPosition.lineNumber===r||r%10===0)return String(r);const o=this._context.viewModel.getLineCount();return r===o?String(r):""}return String(r)}prepareRender(n){if(this._renderLineNumbers===0){this._renderResult=null;return}const i=Wf?this._lineHeight%2===0?" lh-even":" lh-odd":"",r=n.visibleRange.startLineNumber,o=n.visibleRange.endLineNumber,s=this._context.viewModel.getDecorationsInViewport(n.visibleRange).filter(u=>!!u.options.lineNumberClassName);s.sort((u,d)=>Re.compareRangesUsingEnds(u.range,d.range));let a=0;const l=this._context.viewModel.getLineCount(),c=[];for(let u=r;u<=o;u++){const d=u-r;let h=this._getLineRenderLineNumber(u),f="";for(;a<s.length&&s[a].range.endLineNumber<u;)a++;for(let p=a;p<s.length;p++){const{range:g,options:m}=s[p];g.startLineNumber<=u&&(f+=" "+m.lineNumberClassName)}if(!h&&!f){c[d]="";continue}u===l&&this._context.viewModel.getLineLength(u)===0&&(this._renderFinalNewline==="off"&&(h=""),this._renderFinalNewline==="dimmed"&&(f+=" dimmed-line-number")),u===this._activeLineNumber&&(f+=" active-line-number"),c[d]=`<div class="${e.CLASS_NAME}${i}${f}" style="left:${this._lineNumbersLeft}px;width:${this._lineNumbersWidth}px;">${h}</div>`}this._renderResult=c}render(n,i){if(!this._renderResult)return"";const r=i-n;return r<0||r>=this._renderResult.length?"":this._renderResult[r]}},e.CLASS_NAME="line-numbers",e),Ab((t,n)=>{const i=t.getColor(AGt),r=t.getColor(FGt);r?n.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${r}; }`):i&&n.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${i.transparent(.4)}; }`)})}}),f$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/margin/margin.css"(){}}),CUe,MQt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/margin/margin.js"(){var e;f$n(),_d(),Cg(),CUe=(e=class extends ym{constructor(n){super(n);const i=this._context.configuration.options,r=i.get(146);this._canUseLayerHinting=!i.get(32),this._contentLeft=r.contentLeft,this._glyphMarginLeft=r.glyphMarginLeft,this._glyphMarginWidth=r.glyphMarginWidth,this._domNode=Ds(document.createElement("div")),this._domNode.setClassName(e.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=Ds(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(e.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(n){const i=this._context.configuration.options,r=i.get(146);return this._canUseLayerHinting=!i.get(32),this._contentLeft=r.contentLeft,this._glyphMarginLeft=r.glyphMarginLeft,this._glyphMarginWidth=r.glyphMarginWidth,!0}onScrollChanged(n){return super.onScrollChanged(n)||n.scrollTopChanged}prepareRender(n){}render(n){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const i=n.scrollTop-n.bigNumbersDelta;this._domNode.setTop(-i);const r=Math.min(n.scrollHeight,1e6);this._domNode.setHeight(r),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(r)}},e.CLASS_NAME="glyph-margin",e.OUTER_CLASS_NAME="margin",e)}}),p$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/mouseCursor/mouseCursor.css"(){}}),_R,SUe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/mouseCursor/mouseCursor.js"(){p$n(),_R="monaco-mouse-cursor-text"}});function g$n(e,t,n,i){if(t.length===0)return 0;const r=e.createElement("div");r.style.position="absolute",r.style.top="-50000px",r.style.width="50000px";const o=e.createElement("span");yh(o,n),o.style.whiteSpace="pre",o.style.tabSize=`${i*n.spaceWidth}px`,o.append(t),r.appendChild(o),e.body.appendChild(r);const s=o.offsetWidth;return r.remove(),s}var Xft,vSe,Jft,Oee,gae,m$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaHandler.js"(){d$n(),bn(),zv(),_d(),Xr(),Ki(),xb(),kge(),IQt(),Cg(),PQt(),MQt(),Su(),oY(),Hi(),Dn(),zs(),SUe(),ra(),ql(),bqt(),tl(),li(),Xft=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},vSe=function(e,t){return function(n,i){t(n,i,e)}},Jft=class{constructor(e,t,n,i,r){this._context=e,this.modelLineNumber=t,this.distanceToModelLineStart=n,this.widthOfHiddenLineTextBefore=i,this.distanceToModelLineEnd=r,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}prepareRender(e){const t=new mt(this.modelLineNumber,this.distanceToModelLineStart+1),n=new mt(this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(n),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=e.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=e.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}definePresentation(e){return this._previousPresentation||(e?this._previousPresentation=e:this._previousPresentation={foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}},Oee=B0,gae=class extends ym{constructor(t,n,i,r,o){super(t),this._keybindingService=r,this._instantiationService=o,this._primaryCursorPosition=new mt(1,1),this._primaryCursorVisibleRange=null,this._viewController=n,this._visibleRangeProvider=i,this._scrollLeft=0,this._scrollTop=0;const s=this._context.configuration.options,a=s.get(146);this._setAccessibilityOptions(s),this._contentLeft=a.contentLeft,this._contentWidth=a.contentWidth,this._contentHeight=a.height,this._fontInfo=s.get(50),this._lineHeight=s.get(67),this._emptySelectionClipboard=s.get(37),this._copyWithSyntaxHighlighting=s.get(25),this._visibleTextArea=null,this._selections=[new Ii(1,1,1,1)],this._modelSelections=[new Ii(1,1,1,1)],this._lastRenderPosition=null,this.textArea=Ds(document.createElement("textarea")),J_.write(this.textArea,7),this.textArea.setClassName(`inputarea ${_R}`),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:l}=this._context.viewModel.model.getOptions();this.textArea.domNode.style.tabSize=`${l*this._fontInfo.spaceWidth}px`,this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(s)),this.textArea.setAttribute("aria-required",s.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(s.get(125))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",R("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-autocomplete",s.get(92)?"none":"both"),this._ensureReadOnlyAttribute(),this.textAreaCover=Ds(document.createElement("div")),this.textAreaCover.setPosition("absolute");const c={getLineCount:()=>this._context.viewModel.getLineCount(),getLineMaxColumn:h=>this._context.viewModel.getLineMaxColumn(h),getValueInRange:(h,f)=>this._context.viewModel.getValueInRange(h,f),getValueLengthInRange:(h,f)=>this._context.viewModel.getValueLengthInRange(h,f),modifyPosition:(h,f)=>this._context.viewModel.modifyPosition(h,f)},u={getDataToCopy:()=>{const h=this._context.viewModel.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,Ch),f=this._context.viewModel.model.getEOL(),p=this._emptySelectionClipboard&&this._modelSelections.length===1&&this._modelSelections[0].isEmpty(),g=Array.isArray(h)?h:null,m=Array.isArray(h)?h.join(f):h;let v,y=null;if(Ede.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&m.length<65536){const b=this._context.viewModel.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);b&&(v=b.html,y=b.mode)}return{isFromEmptySelection:p,multicursorText:g,text:m,html:v,mode:y}},getScreenReaderContent:()=>{if(this._accessibilitySupport===1){const h=this._selections[0];if(xo&&h.isEmpty()){const p=h.getStartPosition();let g=this._getWordBeforePosition(p);if(g.length===0&&(g=this._getCharacterBeforePosition(p)),g.length>0)return new eg(g,g.length,g.length,Re.fromPositions(p),0)}if(xo&&!h.isEmpty()&&c.getValueLengthInRange(h,0)<500){const p=c.getValueInRange(h,0);return new eg(p,0,p.length,h,0)}if(Qx&&!h.isEmpty()){const p="vscode-placeholder";return new eg(p,0,p.length,null,void 0)}return eg.EMPTY}if(IFe){const h=this._selections[0];if(h.isEmpty()){const f=h.getStartPosition(),[p,g]=this._getAndroidWordAtPosition(f);if(p.length>0)return new eg(p,g,g,Re.fromPositions(f),0)}return eg.EMPTY}return kQt.fromEditorSelection(c,this._selections[0],this._accessibilityPageSize,this._accessibilitySupport===0)},deduceModelPosition:(h,f,p)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(h,f,p)},d=this._register(new LQt(this.textArea.domNode));this._textAreaInput=this._register(this._instantiationService.createInstance(fae,u,d,om,{isAndroid:IFe,isChrome:j6,isFirefox:B0,isSafari:Qx})),this._register(this._textAreaInput.onKeyDown(h=>{this._viewController.emitKeyDown(h)})),this._register(this._textAreaInput.onKeyUp(h=>{this._viewController.emitKeyUp(h)})),this._register(this._textAreaInput.onPaste(h=>{let f=!1,p=null,g=null;h.metadata&&(f=this._emptySelectionClipboard&&!!h.metadata.isFromEmptySelection,p=typeof h.metadata.multicursorText<"u"?h.metadata.multicursorText:null,g=h.metadata.mode),this._viewController.paste(h.text,f,p,g)})),this._register(this._textAreaInput.onCut(()=>{this._viewController.cut()})),this._register(this._textAreaInput.onType(h=>{h.replacePrevCharCnt||h.replaceNextCharCnt||h.positionDelta?(m0&&console.log(` => compositionType: <<${h.text}>>, ${h.replacePrevCharCnt}, ${h.replaceNextCharCnt}, ${h.positionDelta}`),this._viewController.compositionType(h.text,h.replacePrevCharCnt,h.replaceNextCharCnt,h.positionDelta)):(m0&&console.log(` => type: <<${h.text}>>`),this._viewController.type(h.text))})),this._register(this._textAreaInput.onSelectionChangeRequest(h=>{this._viewController.setSelection(h)})),this._register(this._textAreaInput.onCompositionStart(h=>{const f=this.textArea.domNode,p=this._modelSelections[0],{distanceToModelLineStart:g,widthOfHiddenTextBefore:m}=(()=>{const y=f.value.substring(0,Math.min(f.selectionStart,f.selectionEnd)),b=y.lastIndexOf(`
`),w=y.substring(b+1),E=w.lastIndexOf("	"),A=w.length-E-1,D=p.getStartPosition(),T=Math.min(D.column-1,A),M=D.column-1-T,P=w.substring(0,w.length-T),{tabSize:F}=this._context.viewModel.model.getOptions(),N=g$n(this.textArea.domNode.ownerDocument,P,this._fontInfo,F);return{distanceToModelLineStart:M,widthOfHiddenTextBefore:N}})(),{distanceToModelLineEnd:v}=(()=>{const y=f.value.substring(Math.max(f.selectionStart,f.selectionEnd)),b=y.indexOf(`
`),w=b===-1?y:y.substring(0,b),E=w.indexOf("	"),A=E===-1?w.length:w.length-E-1,D=p.getEndPosition(),T=Math.min(this._context.viewModel.model.getLineMaxColumn(D.lineNumber)-D.column,A);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(D.lineNumber)-D.column-T}})();this._context.viewModel.revealRange("keyboard",!0,Re.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new Jft(this._context,p.startLineNumber,g,m,v),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${_R} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()})),this._register(this._textAreaInput.onCompositionUpdate(h=>{this._visibleTextArea&&(this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render())})),this._register(this._textAreaInput.onCompositionEnd(()=>{this._visibleTextArea=null,this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._render(),this.textArea.setClassName(`inputarea ${_R}`),this._viewController.compositionEnd(),this._context.viewModel.onCompositionEnd()})),this._register(this._textAreaInput.onFocus(()=>{this._context.viewModel.setHasFocus(!0)})),this._register(this._textAreaInput.onBlur(()=>{this._context.viewModel.setHasFocus(!1)})),this._register($6.onDidChange(()=>{this._ensureReadOnlyAttribute()}))}writeScreenReaderContent(t){this._textAreaInput.writeNativeTextAreaContent(t)}dispose(){super.dispose()}_getAndroidWordAtPosition(t){const n='`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',i=this._context.viewModel.getLineContent(t.lineNumber),r=Ay(n,[]);let o=!0,s=t.column,a=!0,l=t.column,c=0;for(;c<50&&(o||a);){if(o&&s<=1&&(o=!1),o){const u=i.charCodeAt(s-2);r.get(u)!==0?o=!1:s--}if(a&&l>i.length&&(a=!1),a){const u=i.charCodeAt(l-1);r.get(u)!==0?a=!1:l++}c++}return[i.substring(s-1,l-1),t.column-s]}_getWordBeforePosition(t){const n=this._context.viewModel.getLineContent(t.lineNumber),i=Ay(this._context.configuration.options.get(132),[]);let r=t.column,o=0;for(;r>1;){const s=n.charCodeAt(r-2);if(i.get(s)!==0||o>50)return n.substring(r-1,t.column-1);o++,r--}return n.substring(0,t.column-1)}_getCharacterBeforePosition(t){if(t.column>1){const i=this._context.viewModel.getLineContent(t.lineNumber).charAt(t.column-2);if(!ud(i.charCodeAt(0)))return i}return""}_getAriaLabel(t){if(t.get(2)===1){const i=this._keybindingService.lookupKeybinding("editor.action.toggleScreenReaderAccessibilityMode")?.getAriaLabel(),r=this._keybindingService.lookupKeybinding("workbench.action.showCommands")?.getAriaLabel(),o=this._keybindingService.lookupKeybinding("workbench.action.openGlobalKeybindings")?.getAriaLabel(),s=R("accessibilityModeOff","The editor is not accessible at this time.");return i?R("accessibilityOffAriaLabel","{0} To enable screen reader optimized mode, use {1}",s,i):r?R("accessibilityOffAriaLabelNoKb","{0} To enable screen reader optimized mode, open the quick pick with {1} and run the command Toggle Screen Reader Accessibility Mode, which is currently not triggerable via keyboard.",s,r):o?R("accessibilityOffAriaLabelNoKbs","{0} Please assign a keybinding for the command Toggle Screen Reader Accessibility Mode by accessing the keybindings editor with {1} and run it.",s,o):s}return t.get(4)}_setAccessibilityOptions(t){this._accessibilitySupport=t.get(2);const n=t.get(3);this._accessibilitySupport===2&&n===I_.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=n;const r=t.get(146).wrappingColumn;if(r!==-1&&this._accessibilitySupport!==1){const o=t.get(50);this._textAreaWrapping=!0,this._textAreaWidth=Math.round(r*o.typicalHalfwidthCharacterWidth)}else this._textAreaWrapping=!1,this._textAreaWidth=Oee?0:1}onConfigurationChanged(t){const n=this._context.configuration.options,i=n.get(146);this._setAccessibilityOptions(n),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._contentHeight=i.height,this._fontInfo=n.get(50),this._lineHeight=n.get(67),this._emptySelectionClipboard=n.get(37),this._copyWithSyntaxHighlighting=n.get(25),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:r}=this._context.viewModel.model.getOptions();return this.textArea.domNode.style.tabSize=`${r*this._fontInfo.spaceWidth}px`,this.textArea.setAttribute("aria-label",this._getAriaLabel(n)),this.textArea.setAttribute("aria-required",n.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(n.get(125))),(t.hasChanged(34)||t.hasChanged(92))&&this._ensureReadOnlyAttribute(),t.hasChanged(2)&&this._textAreaInput.writeNativeTextAreaContent("strategy changed"),!0}onCursorStateChanged(t){return this._selections=t.selections.slice(0),this._modelSelections=t.modelSelections.slice(0),this._textAreaInput.writeNativeTextAreaContent("selection changed"),!0}onDecorationsChanged(t){return!0}onFlushed(t){return!0}onLinesChanged(t){return!0}onLinesDeleted(t){return!0}onLinesInserted(t){return!0}onScrollChanged(t){return this._scrollLeft=t.scrollLeft,this._scrollTop=t.scrollTop,!0}onZonesChanged(t){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(t){t.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",t.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),t.role&&this.textArea.setAttribute("role",t.role)}_ensureReadOnlyAttribute(){const t=this._context.configuration.options;!$6.enabled||t.get(34)&&t.get(92)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")}prepareRender(t){this._primaryCursorPosition=new mt(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=t.visibleRangeForPosition(this._primaryCursorPosition),this._visibleTextArea?.prepareRender(t)}render(t){this._textAreaInput.writeNativeTextAreaContent("render"),this._render()}_render(){if(this._visibleTextArea){const i=this._visibleTextArea.visibleTextareaStart,r=this._visibleTextArea.visibleTextareaEnd,o=this._visibleTextArea.startPosition,s=this._visibleTextArea.endPosition;if(o&&s&&i&&r&&r.left>=this._scrollLeft&&i.left<=this._scrollLeft+this._contentWidth){const a=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,l=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));let c=this._visibleTextArea.widthOfHiddenLineTextBefore,u=this._contentLeft+i.left-this._scrollLeft,d=r.left-i.left+1;if(u<this._contentLeft){const v=this._contentLeft-u;u+=v,c+=v,d-=v}d>this._contentWidth&&(d=this._contentWidth);const h=this._context.viewModel.getViewLineData(o.lineNumber),f=h.tokens.findTokenIndexAtOffset(o.column-1),p=h.tokens.findTokenIndexAtOffset(s.column-1),g=f===p,m=this._visibleTextArea.definePresentation(g?h.tokens.getPresentation(f):null);this.textArea.domNode.scrollTop=l*this._lineHeight,this.textArea.domNode.scrollLeft=c,this._doRender({lastRenderPosition:null,top:a,left:u,width:d,height:this._lineHeight,useCover:!1,color:(Hl.getColorMap()||[])[m.foreground],italic:m.italic,bold:m.bold,underline:m.underline,strikethrough:m.strikethrough})}return}if(!this._primaryCursorVisibleRange){this._renderAtTopLeft();return}const t=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(t<this._contentLeft||t>this._contentLeft+this._contentWidth){this._renderAtTopLeft();return}const n=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(n<0||n>this._contentHeight){this._renderAtTopLeft();return}if(xo||this._accessibilitySupport===2){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:n,left:this._textAreaWrapping?this._contentLeft:t,width:this._textAreaWidth,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;const i=this._textAreaInput.textAreaState.newlineCountBeforeSelection??this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=i*this._lineHeight;return}this._doRender({lastRenderPosition:this._primaryCursorPosition,top:n,left:this._textAreaWrapping?this._contentLeft:t,width:this._textAreaWidth,height:Oee?0:1,useCover:!1})}_newlinecount(t){let n=0,i=-1;do{if(i=t.indexOf(`
`,i+1),i===-1)break;n++}while(!0);return n}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:this._textAreaWidth,height:Oee?0:1,useCover:!0})}_doRender(t){this._lastRenderPosition=t.lastRenderPosition;const n=this.textArea,i=this.textAreaCover;yh(n,this._fontInfo),n.setTop(t.top),n.setLeft(t.left),n.setWidth(t.width),n.setHeight(t.height),n.setColor(t.color?rn.Format.CSS.formatHex(t.color):""),n.setFontStyle(t.italic?"italic":""),t.bold&&n.setFontWeight("bold"),n.setTextDecoration(`${t.underline?" underline":""}${t.strikethrough?" line-through":""}`),i.setTop(t.useCover?t.top:0),i.setLeft(t.useCover?t.left:0),i.setWidth(t.useCover?t.width:0),i.setHeight(t.useCover?t.height:0);const r=this._context.configuration.options;r.get(57)?i.setClassName("monaco-editor-background textAreaCover "+CUe.OUTER_CLASS_NAME):r.get(68).renderType!==0?i.setClassName("monaco-editor-background textAreaCover "+wUe.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")}},gae=Xft([vSe(3,Cs),vSe(4,ji)],gae)}});function cL(e){return e==="'"||e==='"'||e==="`"}var ept,tpt,npt,XM,Zo,ipt,rpt,hp,Qp,Ib=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/cursorCommon.js"(){Hi(),Dn(),zs(),nY(),HC(),NWe(),ept=()=>!0,tpt=()=>!1,npt=e=>e===" "||e==="	",XM=class{static shouldRecreate(e){return e.hasChanged(146)||e.hasChanged(132)||e.hasChanged(37)||e.hasChanged(77)||e.hasChanged(79)||e.hasChanged(80)||e.hasChanged(6)||e.hasChanged(7)||e.hasChanged(11)||e.hasChanged(9)||e.hasChanged(10)||e.hasChanged(14)||e.hasChanged(129)||e.hasChanged(50)||e.hasChanged(92)||e.hasChanged(131)}constructor(e,t,n,i){this.languageConfigurationService=i,this._cursorMoveConfigurationBrand=void 0,this._languageId=e;const r=n.options,o=r.get(146),s=r.get(50);this.readOnly=r.get(92),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=r.get(117),this.lineHeight=s.lineHeight,this.typicalHalfwidthCharacterWidth=s.typicalHalfwidthCharacterWidth,this.pageSize=Math.max(1,Math.floor(o.height/this.lineHeight)-2),this.useTabStops=r.get(129),this.wordSeparators=r.get(132),this.emptySelectionClipboard=r.get(37),this.copyWithSyntaxHighlighting=r.get(25),this.multiCursorMergeOverlapping=r.get(77),this.multiCursorPaste=r.get(79),this.multiCursorLimit=r.get(80),this.autoClosingBrackets=r.get(6),this.autoClosingComments=r.get(7),this.autoClosingQuotes=r.get(11),this.autoClosingDelete=r.get(9),this.autoClosingOvertype=r.get(10),this.autoSurround=r.get(14),this.autoIndent=r.get(12),this.wordSegmenterLocales=r.get(131),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(e,this.autoClosingQuotes,!0),comment:this._getShouldAutoClose(e,this.autoClosingComments,!1),bracket:this._getShouldAutoClose(e,this.autoClosingBrackets,!1)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(e).getAutoClosingPairs();const a=this.languageConfigurationService.getLanguageConfiguration(e).getSurroundingPairs();if(a)for(const c of a)this.surroundingPairs[c.open]=c.close;const l=this.languageConfigurationService.getLanguageConfiguration(e).comments;this.blockCommentStartToken=l?.blockCommentStartToken??null}get electricChars(){if(!this._electricChars){this._electricChars={};const e=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter?.getElectricCharacters();if(e)for(const t of e)this._electricChars[t]=!0}return this._electricChars}onElectricCharacter(e,t,n){const i=NO(t,n-1),r=this.languageConfigurationService.getLanguageConfiguration(i.languageId).electricCharacter;return r?r.onElectricCharacter(e,i,n-i.firstCharOffset):null}normalizeIndentation(e){return LWe(e,this.indentSize,this.insertSpaces)}_getShouldAutoClose(e,t,n){switch(t){case"beforeWhitespace":return npt;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(e,n);case"always":return ept;case"never":return tpt}}_getLanguageDefinedShouldAutoClose(e,t){const n=this.languageConfigurationService.getLanguageConfiguration(e).getAutoCloseBeforeSet(t);return i=>n.indexOf(i)!==-1}visibleColumnFromColumn(e,t){return cd.visibleColumnFromColumn(e.getLineContent(t.lineNumber),t.column,this.tabSize)}columnFromVisibleColumn(e,t,n){const i=cd.columnFromVisibleColumn(e.getLineContent(t),n,this.tabSize),r=e.getLineMinColumn(t);if(i<r)return r;const o=e.getLineMaxColumn(t);return i>o?o:i}},Zo=class OQt{static fromModelState(t){return new ipt(t)}static fromViewState(t){return new rpt(t)}static fromModelSelection(t){const n=Ii.liftSelection(t),i=new hp(Re.fromPositions(n.getSelectionStart()),0,0,n.getPosition(),0);return OQt.fromModelState(i)}static fromModelSelections(t){const n=[];for(let i=0,r=t.length;i<r;i++)n[i]=this.fromModelSelection(t[i]);return n}constructor(t,n){this._cursorStateBrand=void 0,this.modelState=t,this.viewState=n}equals(t){return this.viewState.equals(t.viewState)&&this.modelState.equals(t.modelState)}},ipt=class{constructor(e){this.modelState=e,this.viewState=null}},rpt=class{constructor(e){this.modelState=null,this.viewState=e}},hp=class mae{constructor(t,n,i,r,o){this.selectionStart=t,this.selectionStartKind=n,this.selectionStartLeftoverVisibleColumns=i,this.position=r,this.leftoverVisibleColumns=o,this._singleCursorStateBrand=void 0,this.selection=mae._computeSelection(this.selectionStart,this.position)}equals(t){return this.selectionStartLeftoverVisibleColumns===t.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===t.leftoverVisibleColumns&&this.selectionStartKind===t.selectionStartKind&&this.position.equals(t.position)&&this.selectionStart.equalsRange(t.selectionStart)}hasSelection(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}move(t,n,i,r){return t?new mae(this.selectionStart,this.selectionStartKind,this.selectionStartLeftoverVisibleColumns,new mt(n,i),r):new mae(new Re(n,i,n,i),0,r,new mt(n,i),r)}static _computeSelection(t,n){return t.isEmpty()||!n.isBeforeOrEqual(t.getStartPosition())?Ii.fromPositions(t.getStartPosition(),n):Ii.fromPositions(t.getEndPosition(),n)}},Qp=class{constructor(e,t,n){this._editOperationResultBrand=void 0,this.type=e,this.commands=t,this.shouldPushStackElementBefore=n.shouldPushStackElementBefore,this.shouldPushStackElementAfter=n.shouldPushStackElementAfter}}}}),MB,v$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorColumnSelection.js"(){Ib(),Hi(),Dn(),MB=class RQt{static columnSelect(t,n,i,r,o,s){const a=Math.abs(o-i)+1,l=i>o,c=r>s,u=r<s,d=[];for(let h=0;h<a;h++){const f=i+(l?-h:h),p=t.columnFromVisibleColumn(n,f,r),g=t.columnFromVisibleColumn(n,f,s),m=t.visibleColumnFromColumn(n,new mt(f,p)),v=t.visibleColumnFromColumn(n,new mt(f,g));u&&(m>s||v<r)||c&&(v>r||m<s)||d.push(new hp(new Re(f,p,f,p),0,0,new mt(f,g),0))}if(d.length===0)for(let h=0;h<a;h++){const f=i+(l?-h:h),p=n.getLineMaxColumn(f);d.push(new hp(new Re(f,p,f,p),0,0,new mt(f,p),0))}return{viewStates:d,reversed:l,fromLineNumber:i,fromVisualColumn:r,toLineNumber:o,toVisualColumn:s}}static columnSelectLeft(t,n,i){let r=i.toViewVisualColumn;return r>0&&r--,RQt.columnSelect(t,n,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,r)}static columnSelectRight(t,n,i){let r=0;const o=Math.min(i.fromViewLineNumber,i.toViewLineNumber),s=Math.max(i.fromViewLineNumber,i.toViewLineNumber);for(let l=o;l<=s;l++){const c=n.getLineMaxColumn(l),u=t.visibleColumnFromColumn(n,new mt(l,c));r=Math.max(r,u)}let a=i.toViewVisualColumn;return a<r&&a++,this.columnSelect(t,n,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,a)}static columnSelectUp(t,n,i,r){const o=r?t.pageSize:1,s=Math.max(1,i.toViewLineNumber-o);return this.columnSelect(t,n,i.fromViewLineNumber,i.fromViewVisualColumn,s,i.toViewVisualColumn)}static columnSelectDown(t,n,i,r){const o=r?t.pageSize:1,s=Math.min(n.getLineCount(),i.toViewLineNumber+o);return this.columnSelect(t,n,i.fromViewLineNumber,i.fromViewVisualColumn,s,i.toViewVisualColumn)}}}}),dh,FQt,l$,mW,Ige,$7=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/commands/replaceCommand.js"(){zs(),dh=class{constructor(e,t,n=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=n}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return Ii.fromPositions(i.getEndPosition())}},FQt=class{constructor(e,t){this._range=e,this._text=t}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return Ii.fromRange(i,0)}},l$=class{constructor(e,t,n=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=n}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return Ii.fromPositions(i.getStartPosition())}},mW=class{constructor(e,t,n,i,r=!1){this._range=e,this._text=t,this._columnDeltaOffset=i,this._lineNumberDeltaOffset=n,this.insertsAutoWhitespace=r}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return Ii.fromPositions(i.getEndPosition().delta(this._lineNumberDeltaOffset,this._columnDeltaOffset))}},Ige=class{constructor(e,t,n,i=!1){this._range=e,this._text=t,this._initialSelection=n,this._forceMoveMarkers=i,this._selectionId=null}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}}}),Ree,jc,xUe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorMoveOperations.js"(){Ki(),HC(),Hi(),Dn(),EWt(),Ib(),Ree=class{constructor(e,t,n){this._cursorPositionBrand=void 0,this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=n}},jc=class Wg{static leftPosition(t,n){if(n.column>t.getLineMinColumn(n.lineNumber))return n.delta(void 0,-HVt(t.getLineContent(n.lineNumber),n.column-1));if(n.lineNumber>1){const i=n.lineNumber-1;return new mt(i,t.getLineMaxColumn(i))}else return n}static leftPositionAtomicSoftTabs(t,n,i){if(n.column<=t.getLineIndentColumn(n.lineNumber)){const r=t.getLineMinColumn(n.lineNumber),o=t.getLineContent(n.lineNumber),s=Bue.atomicPosition(o,n.column-1,i,0);if(s!==-1&&s+1>=r)return new mt(n.lineNumber,s+1)}return this.leftPosition(t,n)}static left(t,n,i){const r=t.stickyTabStops?Wg.leftPositionAtomicSoftTabs(n,i,t.tabSize):Wg.leftPosition(n,i);return new Ree(r.lineNumber,r.column,0)}static moveLeft(t,n,i,r,o){let s,a;if(i.hasSelection()&&!r)s=i.selection.startLineNumber,a=i.selection.startColumn;else{const l=i.position.delta(void 0,-(o-1)),c=n.normalizePosition(Wg.clipPositionColumn(l,n),0),u=Wg.left(t,n,c);s=u.lineNumber,a=u.column}return i.move(r,s,a,0)}static clipPositionColumn(t,n){return new mt(t.lineNumber,Wg.clipRange(t.column,n.getLineMinColumn(t.lineNumber),n.getLineMaxColumn(t.lineNumber)))}static clipRange(t,n,i){return t<n?n:t>i?i:t}static rightPosition(t,n,i){return i<t.getLineMaxColumn(n)?i=i+V3e(t.getLineContent(n),i-1):n<t.getLineCount()&&(n=n+1,i=t.getLineMinColumn(n)),new mt(n,i)}static rightPositionAtomicSoftTabs(t,n,i,r,o){if(i<t.getLineIndentColumn(n)){const s=t.getLineContent(n),a=Bue.atomicPosition(s,i-1,r,1);if(a!==-1)return new mt(n,a+1)}return this.rightPosition(t,n,i)}static right(t,n,i){const r=t.stickyTabStops?Wg.rightPositionAtomicSoftTabs(n,i.lineNumber,i.column,t.tabSize,t.indentSize):Wg.rightPosition(n,i.lineNumber,i.column);return new Ree(r.lineNumber,r.column,0)}static moveRight(t,n,i,r,o){let s,a;if(i.hasSelection()&&!r)s=i.selection.endLineNumber,a=i.selection.endColumn;else{const l=i.position.delta(void 0,o-1),c=n.normalizePosition(Wg.clipPositionColumn(l,n),1),u=Wg.right(t,n,c);s=u.lineNumber,a=u.column}return i.move(r,s,a,0)}static vertical(t,n,i,r,o,s,a,l){const c=cd.visibleColumnFromColumn(n.getLineContent(i),r,t.tabSize)+o,u=n.getLineCount(),d=i===1&&r===1,h=i===u&&r===n.getLineMaxColumn(i),f=s<i?d:h;if(i=s,i<1?(i=1,a?r=n.getLineMinColumn(i):r=Math.min(n.getLineMaxColumn(i),r)):i>u?(i=u,a?r=n.getLineMaxColumn(i):r=Math.min(n.getLineMaxColumn(i),r)):r=t.columnFromVisibleColumn(n,i,c),f?o=0:o=c-cd.visibleColumnFromColumn(n.getLineContent(i),r,t.tabSize),l!==void 0){const p=new mt(i,r),g=n.normalizePosition(p,l);o=o+(r-g.column),i=g.lineNumber,r=g.column}return new Ree(i,r,o)}static down(t,n,i,r,o,s,a){return this.vertical(t,n,i,r,o,i+s,a,4)}static moveDown(t,n,i,r,o){let s,a;i.hasSelection()&&!r?(s=i.selection.endLineNumber,a=i.selection.endColumn):(s=i.position.lineNumber,a=i.position.column);let l=0,c;do if(c=Wg.down(t,n,s+l,a,i.leftoverVisibleColumns,o,!0),n.normalizePosition(new mt(c.lineNumber,c.column),2).lineNumber>s)break;while(l++<10&&s+l<n.getLineCount());return i.move(r,c.lineNumber,c.column,c.leftoverVisibleColumns)}static translateDown(t,n,i){const r=i.selection,o=Wg.down(t,n,r.selectionStartLineNumber,r.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),s=Wg.down(t,n,r.positionLineNumber,r.positionColumn,i.leftoverVisibleColumns,1,!1);return new hp(new Re(o.lineNumber,o.column,o.lineNumber,o.column),0,o.leftoverVisibleColumns,new mt(s.lineNumber,s.column),s.leftoverVisibleColumns)}static up(t,n,i,r,o,s,a){return this.vertical(t,n,i,r,o,i-s,a,3)}static moveUp(t,n,i,r,o){let s,a;i.hasSelection()&&!r?(s=i.selection.startLineNumber,a=i.selection.startColumn):(s=i.position.lineNumber,a=i.position.column);const l=Wg.up(t,n,s,a,i.leftoverVisibleColumns,o,!0);return i.move(r,l.lineNumber,l.column,l.leftoverVisibleColumns)}static translateUp(t,n,i){const r=i.selection,o=Wg.up(t,n,r.selectionStartLineNumber,r.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),s=Wg.up(t,n,r.positionLineNumber,r.positionColumn,i.leftoverVisibleColumns,1,!1);return new hp(new Re(o.lineNumber,o.column,o.lineNumber,o.column),0,o.leftoverVisibleColumns,new mt(s.lineNumber,s.column),s.leftoverVisibleColumns)}static _isBlankLine(t,n){return t.getLineFirstNonWhitespaceColumn(n)===0}static moveToPrevBlankLine(t,n,i,r){let o=i.position.lineNumber;for(;o>1&&this._isBlankLine(n,o);)o--;for(;o>1&&!this._isBlankLine(n,o);)o--;return i.move(r,o,n.getLineMinColumn(o),0)}static moveToNextBlankLine(t,n,i,r){const o=n.getLineCount();let s=i.position.lineNumber;for(;s<o&&this._isBlankLine(n,s);)s++;for(;s<o&&!this._isBlankLine(n,s);)s++;return i.move(r,s,n.getLineMinColumn(s),0)}static moveToBeginningOfLine(t,n,i,r){const o=i.position.lineNumber,s=n.getLineMinColumn(o),a=n.getLineFirstNonWhitespaceColumn(o)||s;let l;return i.position.column===a?l=s:l=a,i.move(r,o,l,0)}static moveToEndOfLine(t,n,i,r,o){const s=i.position.lineNumber,a=n.getLineMaxColumn(s);return i.move(r,s,a,o?1073741824-a:0)}static moveToBeginningOfBuffer(t,n,i,r){return i.move(r,1,1,0)}static moveToEndOfBuffer(t,n,i,r){const o=n.getLineCount(),s=n.getLineMaxColumn(o);return i.move(r,o,s,0)}}}}),dG,EUe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorDeleteOperations.js"(){Ki(),$7(),Ib(),HC(),xUe(),Dn(),Hi(),dG=class UBe{static deleteRight(t,n,i,r){const o=[];let s=t!==3;for(let a=0,l=r.length;a<l;a++){const c=r[a];let u=c;if(u.isEmpty()){const d=c.getPosition(),h=jc.right(n,i,d);u=new Re(h.lineNumber,h.column,d.lineNumber,d.column)}if(u.isEmpty()){o[a]=null;continue}u.startLineNumber!==u.endLineNumber&&(s=!0),o[a]=new dh(u,"")}return[s,o]}static isAutoClosingPairDelete(t,n,i,r,o,s,a){if(n==="never"&&i==="never"||t==="never")return!1;for(let l=0,c=s.length;l<c;l++){const u=s[l],d=u.getPosition();if(!u.isEmpty())return!1;const h=o.getLineContent(d.lineNumber);if(d.column<2||d.column>=h.length+1)return!1;const f=h.charAt(d.column-2),p=r.get(f);if(!p)return!1;if(cL(f)){if(i==="never")return!1}else if(n==="never")return!1;const g=h.charAt(d.column-1);let m=!1;for(const v of p)v.open===f&&v.close===g&&(m=!0);if(!m)return!1;if(t==="auto"){let v=!1;for(let y=0,b=a.length;y<b;y++){const w=a[y];if(d.lineNumber===w.startLineNumber&&d.column===w.startColumn){v=!0;break}}if(!v)return!1}}return!0}static _runAutoClosingPairDelete(t,n,i){const r=[];for(let o=0,s=i.length;o<s;o++){const a=i[o].getPosition(),l=new Re(a.lineNumber,a.column-1,a.lineNumber,a.column+1);r[o]=new dh(l,"")}return[!0,r]}static deleteLeft(t,n,i,r,o){if(this.isAutoClosingPairDelete(n.autoClosingDelete,n.autoClosingBrackets,n.autoClosingQuotes,n.autoClosingPairs.autoClosingPairsOpenByEnd,i,r,o))return this._runAutoClosingPairDelete(n,i,r);const s=[];let a=t!==2;for(let l=0,c=r.length;l<c;l++){const u=UBe.getDeleteRange(r[l],i,n);if(u.isEmpty()){s[l]=null;continue}u.startLineNumber!==u.endLineNumber&&(a=!0),s[l]=new dh(u,"")}return[a,s]}static getDeleteRange(t,n,i){if(!t.isEmpty())return t;const r=t.getPosition();if(i.useTabStops&&r.column>1){const o=n.getLineContent(r.lineNumber),s=Cp(o),a=s===-1?o.length+1:s+1;if(r.column<=a){const l=i.visibleColumnFromColumn(n,r),c=cd.prevIndentTabStop(l,i.indentSize),u=i.columnFromVisibleColumn(n,r.lineNumber,c);return new Re(r.lineNumber,u,r.lineNumber,r.column)}}return Re.fromPositions(UBe.getPositionAfterDeleteLeft(r,n),r)}static getPositionAfterDeleteLeft(t,n){if(t.column>1){const i=T9n(t.column-1,n.getLineContent(t.lineNumber));return t.with(void 0,i+1)}else if(t.lineNumber>1){const i=t.lineNumber-1;return new mt(i,n.getLineMaxColumn(i))}else return t}static cut(t,n,i){const r=[];let o=null;i.sort((s,a)=>mt.compare(s.getStartPosition(),a.getEndPosition()));for(let s=0,a=i.length;s<a;s++){const l=i[s];if(l.isEmpty())if(t.emptySelectionClipboard){const c=l.getPosition();let u,d,h,f;c.lineNumber<n.getLineCount()?(u=c.lineNumber,d=1,h=c.lineNumber+1,f=1):c.lineNumber>1&&o?.endLineNumber!==c.lineNumber?(u=c.lineNumber-1,d=n.getLineMaxColumn(c.lineNumber-1),h=c.lineNumber,f=n.getLineMaxColumn(c.lineNumber)):(u=c.lineNumber,d=1,h=c.lineNumber,f=n.getLineMaxColumn(c.lineNumber));const p=new Re(u,d,h,f);o=p,p.isEmpty()?r[s]=null:r[s]=new dh(p,"")}else r[s]=null;else r[s]=new dh(l,"")}return new Qp(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}}});function Fee(e){return e.filter(t=>!!t)}var uh,vW,Lge=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorWordOperations.js"(){Ki(),Ib(),EUe(),oY(),Hi(),Dn(),uh=class Lu{static _createWord(t,n,i,r,o){return{start:r,end:o,wordType:n,nextCharClass:i}}static _createIntlWord(t,n){return{start:t.index,end:t.index+t.segment.length,wordType:1,nextCharClass:n}}static _findPreviousWordOnLine(t,n,i){const r=n.getLineContent(i.lineNumber);return this._doFindPreviousWordOnLine(r,t,i)}static _doFindPreviousWordOnLine(t,n,i){let r=0;const o=n.findPrevIntlWordBeforeOrAtOffset(t,i.column-2);for(let s=i.column-2;s>=0;s--){const a=t.charCodeAt(s),l=n.get(a);if(o&&s===o.index)return this._createIntlWord(o,l);if(l===0){if(r===2)return this._createWord(t,r,l,s+1,this._findEndOfWord(t,n,r,s+1));r=1}else if(l===2){if(r===1)return this._createWord(t,r,l,s+1,this._findEndOfWord(t,n,r,s+1));r=2}else if(l===1&&r!==0)return this._createWord(t,r,l,s+1,this._findEndOfWord(t,n,r,s+1))}return r!==0?this._createWord(t,r,1,0,this._findEndOfWord(t,n,r,0)):null}static _findEndOfWord(t,n,i,r){const o=n.findNextIntlWordAtOrAfterOffset(t,r),s=t.length;for(let a=r;a<s;a++){const l=t.charCodeAt(a),c=n.get(l);if(o&&a===o.index+o.segment.length||c===1||i===1&&c===2||i===2&&c===0)return a}return s}static _findNextWordOnLine(t,n,i){const r=n.getLineContent(i.lineNumber);return this._doFindNextWordOnLine(r,t,i)}static _doFindNextWordOnLine(t,n,i){let r=0;const o=t.length,s=n.findNextIntlWordAtOrAfterOffset(t,i.column-1);for(let a=i.column-1;a<o;a++){const l=t.charCodeAt(a),c=n.get(l);if(s&&a===s.index)return this._createIntlWord(s,c);if(c===0){if(r===2)return this._createWord(t,r,c,this._findStartOfWord(t,n,r,a-1),a);r=1}else if(c===2){if(r===1)return this._createWord(t,r,c,this._findStartOfWord(t,n,r,a-1),a);r=2}else if(c===1&&r!==0)return this._createWord(t,r,c,this._findStartOfWord(t,n,r,a-1),a)}return r!==0?this._createWord(t,r,1,this._findStartOfWord(t,n,r,o-1),o):null}static _findStartOfWord(t,n,i,r){const o=n.findPrevIntlWordBeforeOrAtOffset(t,r);for(let s=r;s>=0;s--){const a=t.charCodeAt(s),l=n.get(a);if(o&&s===o.index)return s;if(l===1||i===1&&l===2||i===2&&l===0)return s+1}return 0}static moveWordLeft(t,n,i,r,o){let s=i.lineNumber,a=i.column;a===1&&s>1&&(s=s-1,a=n.getLineMaxColumn(s));let l=Lu._findPreviousWordOnLine(t,n,new mt(s,a));if(r===0)return new mt(s,l?l.start+1:1);if(r===1)return!o&&l&&l.wordType===2&&l.end-l.start===1&&l.nextCharClass===0&&(l=Lu._findPreviousWordOnLine(t,n,new mt(s,l.start+1))),new mt(s,l?l.start+1:1);if(r===3){for(;l&&l.wordType===2;)l=Lu._findPreviousWordOnLine(t,n,new mt(s,l.start+1));return new mt(s,l?l.start+1:1)}return l&&a<=l.end+1&&(l=Lu._findPreviousWordOnLine(t,n,new mt(s,l.start+1))),new mt(s,l?l.end+1:1)}static _moveWordPartLeft(t,n){const i=n.lineNumber,r=t.getLineMaxColumn(i);if(n.column===1)return i>1?new mt(i-1,t.getLineMaxColumn(i-1)):n;const o=t.getLineContent(i);for(let s=n.column-1;s>1;s--){const a=o.charCodeAt(s-2),l=o.charCodeAt(s-1);if(a===95&&l!==95)return new mt(i,s);if(a===45&&l!==45)return new mt(i,s);if((jI(a)||eJ(a))&&ex(l))return new mt(i,s);if(ex(a)&&ex(l)&&s+1<r){const c=o.charCodeAt(s);if(jI(c)||eJ(c))return new mt(i,s)}}return new mt(i,1)}static moveWordRight(t,n,i,r){let o=i.lineNumber,s=i.column,a=!1;s===n.getLineMaxColumn(o)&&o<n.getLineCount()&&(a=!0,o=o+1,s=1);let l=Lu._findNextWordOnLine(t,n,new mt(o,s));if(r===2)l&&l.wordType===2&&l.end-l.start===1&&l.nextCharClass===0&&(l=Lu._findNextWordOnLine(t,n,new mt(o,l.end+1))),l?s=l.end+1:s=n.getLineMaxColumn(o);else if(r===3){for(a&&(s=0);l&&(l.wordType===2||l.start+1<=s);)l=Lu._findNextWordOnLine(t,n,new mt(o,l.end+1));l?s=l.start+1:s=n.getLineMaxColumn(o)}else l&&!a&&s>=l.start+1&&(l=Lu._findNextWordOnLine(t,n,new mt(o,l.end+1))),l?s=l.start+1:s=n.getLineMaxColumn(o);return new mt(o,s)}static _moveWordPartRight(t,n){const i=n.lineNumber,r=t.getLineMaxColumn(i);if(n.column===r)return i<t.getLineCount()?new mt(i+1,1):n;const o=t.getLineContent(i);for(let s=n.column+1;s<r;s++){const a=o.charCodeAt(s-2),l=o.charCodeAt(s-1);if(a!==95&&l===95)return new mt(i,s);if(a!==45&&l===45)return new mt(i,s);if((jI(a)||eJ(a))&&ex(l))return new mt(i,s);if(ex(a)&&ex(l)&&s+1<r){const c=o.charCodeAt(s);if(jI(c)||eJ(c))return new mt(i,s)}}return new mt(i,r)}static _deleteWordLeftWhitespace(t,n){const i=t.getLineContent(n.lineNumber),r=n.column-2,o=iC(i,r);return o+1<r?new Re(n.lineNumber,o+2,n.lineNumber,n.column):null}static deleteWordLeft(t,n){const i=t.wordSeparators,r=t.model,o=t.selection,s=t.whitespaceHeuristics;if(!o.isEmpty())return o;if(dG.isAutoClosingPairDelete(t.autoClosingDelete,t.autoClosingBrackets,t.autoClosingQuotes,t.autoClosingPairs.autoClosingPairsOpenByEnd,t.model,[t.selection],t.autoClosedCharacters)){const d=t.selection.getPosition();return new Re(d.lineNumber,d.column-1,d.lineNumber,d.column+1)}const a=new mt(o.positionLineNumber,o.positionColumn);let l=a.lineNumber,c=a.column;if(l===1&&c===1)return null;if(s){const d=this._deleteWordLeftWhitespace(r,a);if(d)return d}let u=Lu._findPreviousWordOnLine(i,r,a);return n===0?u?c=u.start+1:c>1?c=1:(l--,c=r.getLineMaxColumn(l)):(u&&c<=u.end+1&&(u=Lu._findPreviousWordOnLine(i,r,new mt(l,u.start+1))),u?c=u.end+1:c>1?c=1:(l--,c=r.getLineMaxColumn(l))),new Re(l,c,a.lineNumber,a.column)}static deleteInsideWord(t,n,i){if(!i.isEmpty())return i;const r=new mt(i.positionLineNumber,i.positionColumn),o=this._deleteInsideWordWhitespace(n,r);return o||this._deleteInsideWordDetermineDeleteRange(t,n,r)}static _charAtIsWhitespace(t,n){const i=t.charCodeAt(n);return i===32||i===9}static _deleteInsideWordWhitespace(t,n){const i=t.getLineContent(n.lineNumber),r=i.length;if(r===0)return null;let o=Math.max(n.column-2,0);if(!this._charAtIsWhitespace(i,o))return null;let s=Math.min(n.column-1,r-1);if(!this._charAtIsWhitespace(i,s))return null;for(;o>0&&this._charAtIsWhitespace(i,o-1);)o--;for(;s+1<r&&this._charAtIsWhitespace(i,s+1);)s++;return new Re(n.lineNumber,o+1,n.lineNumber,s+2)}static _deleteInsideWordDetermineDeleteRange(t,n,i){const r=n.getLineContent(i.lineNumber),o=r.length;if(o===0)return i.lineNumber>1?new Re(i.lineNumber-1,n.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumber<n.getLineCount()?new Re(i.lineNumber,1,i.lineNumber+1,1):new Re(i.lineNumber,1,i.lineNumber,1);const s=d=>d.start+1<=i.column&&i.column<=d.end+1,a=(d,h)=>(d=Math.min(d,i.column),h=Math.max(h,i.column),new Re(i.lineNumber,d,i.lineNumber,h)),l=d=>{let h=d.start+1,f=d.end+1,p=!1;for(;f-1<o&&this._charAtIsWhitespace(r,f-1);)p=!0,f++;if(!p)for(;h>1&&this._charAtIsWhitespace(r,h-2);)h--;return a(h,f)},c=Lu._findPreviousWordOnLine(t,n,i);if(c&&s(c))return l(c);const u=Lu._findNextWordOnLine(t,n,i);return u&&s(u)?l(u):c&&u?a(c.end+1,u.start+1):c?a(c.start+1,c.end+1):u?a(u.start+1,u.end+1):a(1,o+1)}static _deleteWordPartLeft(t,n){if(!n.isEmpty())return n;const i=n.getPosition(),r=Lu._moveWordPartLeft(t,i);return new Re(i.lineNumber,i.column,r.lineNumber,r.column)}static _findFirstNonWhitespaceChar(t,n){const i=t.length;for(let r=n;r<i;r++){const o=t.charAt(r);if(o!==" "&&o!=="	")return r}return i}static _deleteWordRightWhitespace(t,n){const i=t.getLineContent(n.lineNumber),r=n.column-1,o=this._findFirstNonWhitespaceChar(i,r);return r+1<o?new Re(n.lineNumber,n.column,n.lineNumber,o+1):null}static deleteWordRight(t,n){const i=t.wordSeparators,r=t.model,o=t.selection,s=t.whitespaceHeuristics;if(!o.isEmpty())return o;const a=new mt(o.positionLineNumber,o.positionColumn);let l=a.lineNumber,c=a.column;const u=r.getLineCount(),d=r.getLineMaxColumn(l);if(l===u&&c===d)return null;if(s){const f=this._deleteWordRightWhitespace(r,a);if(f)return f}let h=Lu._findNextWordOnLine(i,r,a);return n===2?h?c=h.end+1:c<d||l===u?c=d:(l++,h=Lu._findNextWordOnLine(i,r,new mt(l,1)),h?c=h.start+1:c=r.getLineMaxColumn(l)):(h&&c>=h.start+1&&(h=Lu._findNextWordOnLine(i,r,new mt(l,h.end+1))),h?c=h.start+1:c<d||l===u?c=d:(l++,h=Lu._findNextWordOnLine(i,r,new mt(l,1)),h?c=h.start+1:c=r.getLineMaxColumn(l))),new Re(l,c,a.lineNumber,a.column)}static _deleteWordPartRight(t,n){if(!n.isEmpty())return n;const i=n.getPosition(),r=Lu._moveWordPartRight(t,i);return new Re(i.lineNumber,i.column,r.lineNumber,r.column)}static _createWordAtPosition(t,n,i){const r=new Re(n,i.start+1,n,i.end+1);return{word:t.getValueInRange(r),startColumn:r.startColumn,endColumn:r.endColumn}}static getWordAtPosition(t,n,i,r){const o=Ay(n,i),s=Lu._findPreviousWordOnLine(o,t,r);if(s&&s.wordType===1&&s.start<=r.column-1&&r.column-1<=s.end)return Lu._createWordAtPosition(t,r.lineNumber,s);const a=Lu._findNextWordOnLine(o,t,r);return a&&a.wordType===1&&a.start<=r.column-1&&r.column-1<=a.end?Lu._createWordAtPosition(t,r.lineNumber,a):null}static word(t,n,i,r,o){const s=Ay(t.wordSeparators,t.wordSegmenterLocales),a=Lu._findPreviousWordOnLine(s,n,o),l=Lu._findNextWordOnLine(s,n,o);if(!r){let f,p;return a&&a.wordType===1&&a.start<=o.column-1&&o.column-1<=a.end?(f=a.start+1,p=a.end+1):l&&l.wordType===1&&l.start<=o.column-1&&o.column-1<=l.end?(f=l.start+1,p=l.end+1):(a?f=a.end+1:f=1,l?p=l.start+1:p=n.getLineMaxColumn(o.lineNumber)),new hp(new Re(o.lineNumber,f,o.lineNumber,p),1,0,new mt(o.lineNumber,p),0)}let c,u;a&&a.wordType===1&&a.start<o.column-1&&o.column-1<a.end?(c=a.start+1,u=a.end+1):l&&l.wordType===1&&l.start<o.column-1&&o.column-1<l.end?(c=l.start+1,u=l.end+1):(c=o.column,u=o.column);const d=o.lineNumber;let h;if(i.selectionStart.containsPosition(o))h=i.selectionStart.endColumn;else if(o.isBeforeOrEqual(i.selectionStart.getStartPosition())){h=c;const f=new mt(d,h);i.selectionStart.containsPosition(f)&&(h=i.selectionStart.endColumn)}else{h=u;const f=new mt(d,h);i.selectionStart.containsPosition(f)&&(h=i.selectionStart.startColumn)}return i.move(!0,d,h,0)}},vW=class extends uh{static deleteWordPartLeft(e){const t=Fee([uh.deleteWordLeft(e,0),uh.deleteWordLeft(e,2),uh._deleteWordPartLeft(e.model,e.selection)]);return t.sort(Re.compareRangesUsingEnds),t[2]}static deleteWordPartRight(e){const t=Fee([uh.deleteWordRight(e,0),uh.deleteWordRight(e,2),uh._deleteWordPartRight(e.model,e.selection)]);return t.sort(Re.compareRangesUsingStarts),t[0]}static moveWordPartLeft(e,t,n,i){const r=Fee([uh.moveWordLeft(e,t,n,0,i),uh.moveWordLeft(e,t,n,2,i),uh._moveWordPartLeft(t,n)]);return r.sort(mt.compare),r[2]}static moveWordPartRight(e,t,n){const i=Fee([uh.moveWordRight(e,t,n,0),uh.moveWordRight(e,t,n,2),uh._moveWordPartRight(t,n)]);return i.sort(mt.compare),i[0]}}}}),Nd,Ade,AUe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorMoveCommands.js"(){as(),Ib(),xUe(),Lge(),Hi(),Dn(),Nd=class{static addCursorDown(e,t,n){const i=[];let r=0;for(let o=0,s=t.length;o<s;o++){const a=t[o];i[r++]=new Zo(a.modelState,a.viewState),n?i[r++]=Zo.fromModelState(jc.translateDown(e.cursorConfig,e.model,a.modelState)):i[r++]=Zo.fromViewState(jc.translateDown(e.cursorConfig,e,a.viewState))}return i}static addCursorUp(e,t,n){const i=[];let r=0;for(let o=0,s=t.length;o<s;o++){const a=t[o];i[r++]=new Zo(a.modelState,a.viewState),n?i[r++]=Zo.fromModelState(jc.translateUp(e.cursorConfig,e.model,a.modelState)):i[r++]=Zo.fromViewState(jc.translateUp(e.cursorConfig,e,a.viewState))}return i}static moveToBeginningOfLine(e,t,n){const i=[];for(let r=0,o=t.length;r<o;r++){const s=t[r];i[r]=this._moveToLineStart(e,s,n)}return i}static _moveToLineStart(e,t,n){const i=t.viewState.position.column,r=t.modelState.position.column,o=i===r,s=t.viewState.position.lineNumber,a=e.getLineFirstNonWhitespaceColumn(s);return!o&&!(i===a)?this._moveToLineStartByView(e,t,n):this._moveToLineStartByModel(e,t,n)}static _moveToLineStartByView(e,t,n){return Zo.fromViewState(jc.moveToBeginningOfLine(e.cursorConfig,e,t.viewState,n))}static _moveToLineStartByModel(e,t,n){return Zo.fromModelState(jc.moveToBeginningOfLine(e.cursorConfig,e.model,t.modelState,n))}static moveToEndOfLine(e,t,n,i){const r=[];for(let o=0,s=t.length;o<s;o++){const a=t[o];r[o]=this._moveToLineEnd(e,a,n,i)}return r}static _moveToLineEnd(e,t,n,i){const r=t.viewState.position,o=e.getLineMaxColumn(r.lineNumber),s=r.column===o,a=t.modelState.position,l=e.model.getLineMaxColumn(a.lineNumber),c=o-r.column===l-a.column;return s||c?this._moveToLineEndByModel(e,t,n,i):this._moveToLineEndByView(e,t,n,i)}static _moveToLineEndByView(e,t,n,i){return Zo.fromViewState(jc.moveToEndOfLine(e.cursorConfig,e,t.viewState,n,i))}static _moveToLineEndByModel(e,t,n,i){return Zo.fromModelState(jc.moveToEndOfLine(e.cursorConfig,e.model,t.modelState,n,i))}static expandLineSelection(e,t){const n=[];for(let i=0,r=t.length;i<r;i++){const o=t[i],s=o.modelState.selection.startLineNumber,a=e.model.getLineCount();let l=o.modelState.selection.endLineNumber,c;l===a?c=e.model.getLineMaxColumn(a):(l++,c=1),n[i]=Zo.fromModelState(new hp(new Re(s,1,s,1),0,0,new mt(l,c),0))}return n}static moveToBeginningOfBuffer(e,t,n){const i=[];for(let r=0,o=t.length;r<o;r++){const s=t[r];i[r]=Zo.fromModelState(jc.moveToBeginningOfBuffer(e.cursorConfig,e.model,s.modelState,n))}return i}static moveToEndOfBuffer(e,t,n){const i=[];for(let r=0,o=t.length;r<o;r++){const s=t[r];i[r]=Zo.fromModelState(jc.moveToEndOfBuffer(e.cursorConfig,e.model,s.modelState,n))}return i}static selectAll(e,t){const n=e.model.getLineCount(),i=e.model.getLineMaxColumn(n);return Zo.fromModelState(new hp(new Re(1,1,1,1),0,0,new mt(n,i),0))}static line(e,t,n,i,r){const o=e.model.validatePosition(i),s=r?e.coordinatesConverter.validateViewPosition(new mt(r.lineNumber,r.column),o):e.coordinatesConverter.convertModelPositionToViewPosition(o);if(!n){const l=e.model.getLineCount();let c=o.lineNumber+1,u=1;return c>l&&(c=l,u=e.model.getLineMaxColumn(c)),Zo.fromModelState(new hp(new Re(o.lineNumber,1,c,u),2,0,new mt(c,u),0))}const a=t.modelState.selectionStart.getStartPosition().lineNumber;if(o.lineNumber<a)return Zo.fromViewState(t.viewState.move(!0,s.lineNumber,1,0));if(o.lineNumber>a){const l=e.getLineCount();let c=s.lineNumber+1,u=1;return c>l&&(c=l,u=e.getLineMaxColumn(c)),Zo.fromViewState(t.viewState.move(!0,c,u,0))}else{const l=t.modelState.selectionStart.getEndPosition();return Zo.fromModelState(t.modelState.move(!0,l.lineNumber,l.column,0))}}static word(e,t,n,i){const r=e.model.validatePosition(i);return Zo.fromModelState(uh.word(e.cursorConfig,e.model,t.modelState,n,r))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new Zo(t.modelState,t.viewState);const n=t.viewState.position.lineNumber,i=t.viewState.position.column;return Zo.fromViewState(new hp(new Re(n,i,n,i),0,0,new mt(n,i),0))}static moveTo(e,t,n,i,r){if(n){if(t.modelState.selectionStartKind===1)return this.word(e,t,n,i);if(t.modelState.selectionStartKind===2)return this.line(e,t,n,i,r)}const o=e.model.validatePosition(i),s=r?e.coordinatesConverter.validateViewPosition(new mt(r.lineNumber,r.column),o):e.coordinatesConverter.convertModelPositionToViewPosition(o);return Zo.fromViewState(t.viewState.move(n,s.lineNumber,s.column,0))}static simpleMove(e,t,n,i,r,o){switch(n){case 0:return o===4?this._moveHalfLineLeft(e,t,i):this._moveLeft(e,t,i,r);case 1:return o===4?this._moveHalfLineRight(e,t,i):this._moveRight(e,t,i,r);case 2:return o===2?this._moveUpByViewLines(e,t,i,r):this._moveUpByModelLines(e,t,i,r);case 3:return o===2?this._moveDownByViewLines(e,t,i,r):this._moveDownByModelLines(e,t,i,r);case 4:return o===2?t.map(s=>Zo.fromViewState(jc.moveToPrevBlankLine(e.cursorConfig,e,s.viewState,i))):t.map(s=>Zo.fromModelState(jc.moveToPrevBlankLine(e.cursorConfig,e.model,s.modelState,i)));case 5:return o===2?t.map(s=>Zo.fromViewState(jc.moveToNextBlankLine(e.cursorConfig,e,s.viewState,i))):t.map(s=>Zo.fromModelState(jc.moveToNextBlankLine(e.cursorConfig,e.model,s.modelState,i)));case 6:return this._moveToViewMinColumn(e,t,i);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,i);case 8:return this._moveToViewCenterColumn(e,t,i);case 9:return this._moveToViewMaxColumn(e,t,i);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,i);default:return null}}static viewportMove(e,t,n,i,r){const o=e.getCompletelyVisibleViewRange(),s=e.coordinatesConverter.convertViewRangeToModelRange(o);switch(n){case 11:{const a=this._firstLineNumberInRange(e.model,s,r),l=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,t[0],i,a,l)]}case 13:{const a=this._lastLineNumberInRange(e.model,s,r),l=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,t[0],i,a,l)]}case 12:{const a=Math.round((s.startLineNumber+s.endLineNumber)/2),l=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,t[0],i,a,l)]}case 14:{const a=[];for(let l=0,c=t.length;l<c;l++){const u=t[l];a[l]=this.findPositionInViewportIfOutside(e,u,o,i)}return a}default:return null}}static findPositionInViewportIfOutside(e,t,n,i){const r=t.viewState.position.lineNumber;if(n.startLineNumber<=r&&r<=n.endLineNumber-1)return new Zo(t.modelState,t.viewState);{let o;r>n.endLineNumber-1?o=n.endLineNumber-1:r<n.startLineNumber?o=n.startLineNumber:o=r;const s=jc.vertical(e.cursorConfig,e,r,t.viewState.position.column,t.viewState.leftoverVisibleColumns,o,!1);return Zo.fromViewState(t.viewState.move(i,s.lineNumber,s.column,s.leftoverVisibleColumns))}}static _firstLineNumberInRange(e,t,n){let i=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(i)&&i++,Math.min(t.endLineNumber,i+n-1)}static _lastLineNumberInRange(e,t,n){let i=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(i)&&i++,Math.max(i,t.endLineNumber-n+1)}static _moveLeft(e,t,n,i){return t.map(r=>Zo.fromViewState(jc.moveLeft(e.cursorConfig,e,r.viewState,n,i)))}static _moveHalfLineLeft(e,t,n){const i=[];for(let r=0,o=t.length;r<o;r++){const s=t[r],a=s.viewState.position.lineNumber,l=Math.round(e.getLineLength(a)/2);i[r]=Zo.fromViewState(jc.moveLeft(e.cursorConfig,e,s.viewState,n,l))}return i}static _moveRight(e,t,n,i){return t.map(r=>Zo.fromViewState(jc.moveRight(e.cursorConfig,e,r.viewState,n,i)))}static _moveHalfLineRight(e,t,n){const i=[];for(let r=0,o=t.length;r<o;r++){const s=t[r],a=s.viewState.position.lineNumber,l=Math.round(e.getLineLength(a)/2);i[r]=Zo.fromViewState(jc.moveRight(e.cursorConfig,e,s.viewState,n,l))}return i}static _moveDownByViewLines(e,t,n,i){const r=[];for(let o=0,s=t.length;o<s;o++){const a=t[o];r[o]=Zo.fromViewState(jc.moveDown(e.cursorConfig,e,a.viewState,n,i))}return r}static _moveDownByModelLines(e,t,n,i){const r=[];for(let o=0,s=t.length;o<s;o++){const a=t[o];r[o]=Zo.fromModelState(jc.moveDown(e.cursorConfig,e.model,a.modelState,n,i))}return r}static _moveUpByViewLines(e,t,n,i){const r=[];for(let o=0,s=t.length;o<s;o++){const a=t[o];r[o]=Zo.fromViewState(jc.moveUp(e.cursorConfig,e,a.viewState,n,i))}return r}static _moveUpByModelLines(e,t,n,i){const r=[];for(let o=0,s=t.length;o<s;o++){const a=t[o];r[o]=Zo.fromModelState(jc.moveUp(e.cursorConfig,e.model,a.modelState,n,i))}return r}static _moveToViewPosition(e,t,n,i,r){return Zo.fromViewState(t.viewState.move(n,i,r,0))}static _moveToModelPosition(e,t,n,i,r){return Zo.fromModelState(t.modelState.move(n,i,r,0))}static _moveToViewMinColumn(e,t,n){const i=[];for(let r=0,o=t.length;r<o;r++){const s=t[r],a=s.viewState.position.lineNumber,l=e.getLineMinColumn(a);i[r]=this._moveToViewPosition(e,s,n,a,l)}return i}static _moveToViewFirstNonWhitespaceColumn(e,t,n){const i=[];for(let r=0,o=t.length;r<o;r++){const s=t[r],a=s.viewState.position.lineNumber,l=e.getLineFirstNonWhitespaceColumn(a);i[r]=this._moveToViewPosition(e,s,n,a,l)}return i}static _moveToViewCenterColumn(e,t,n){const i=[];for(let r=0,o=t.length;r<o;r++){const s=t[r],a=s.viewState.position.lineNumber,l=Math.round((e.getLineMaxColumn(a)+e.getLineMinColumn(a))/2);i[r]=this._moveToViewPosition(e,s,n,a,l)}return i}static _moveToViewMaxColumn(e,t,n){const i=[];for(let r=0,o=t.length;r<o;r++){const s=t[r],a=s.viewState.position.lineNumber,l=e.getLineMaxColumn(a);i[r]=this._moveToViewPosition(e,s,n,a,l)}return i}static _moveToViewLastNonWhitespaceColumn(e,t,n){const i=[];for(let r=0,o=t.length;r<o;r++){const s=t[r],a=s.viewState.position.lineNumber,l=e.getLineLastNonWhitespaceColumn(a);i[r]=this._moveToViewPosition(e,s,n,a,l)}return i}},(function(e){const t=function(i){if(!jd(i))return!1;const r=i;return!(!sm(r.to)||!bp(r.select)&&!O7t(r.select)||!bp(r.by)&&!sm(r.by)||!bp(r.value)&&!wL(r.value))};e.metadata={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:`Property-value pairs that can be passed through this argument:
					* 'to': A mandatory logical position value providing where to move the cursor.
						\`\`\`
						'left', 'right', 'up', 'down', 'prevBlankLine', 'nextBlankLine',
						'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'
						'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'
						'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'
						\`\`\`
					* 'by': Unit to move. Default is computed based on 'to' value.
						\`\`\`
						'line', 'wrappedLine', 'character', 'halfLine'
						\`\`\`
					* 'value': Number of units to move. Default is '1'.
					* 'select': If 'true' makes the selection. Default is 'false'.
				`,constraint:t,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","prevBlankLine","nextBlankLine","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},e.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",PrevBlankLine:"prevBlankLine",NextBlankLine:"nextBlankLine",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"};function n(i){if(!i.to)return null;let r;switch(i.to){case e.RawDirection.Left:r=0;break;case e.RawDirection.Right:r=1;break;case e.RawDirection.Up:r=2;break;case e.RawDirection.Down:r=3;break;case e.RawDirection.PrevBlankLine:r=4;break;case e.RawDirection.NextBlankLine:r=5;break;case e.RawDirection.WrappedLineStart:r=6;break;case e.RawDirection.WrappedLineFirstNonWhitespaceCharacter:r=7;break;case e.RawDirection.WrappedLineColumnCenter:r=8;break;case e.RawDirection.WrappedLineEnd:r=9;break;case e.RawDirection.WrappedLineLastNonWhitespaceCharacter:r=10;break;case e.RawDirection.ViewPortTop:r=11;break;case e.RawDirection.ViewPortBottom:r=13;break;case e.RawDirection.ViewPortCenter:r=12;break;case e.RawDirection.ViewPortIfOutside:r=14;break;default:return null}let o=0;switch(i.by){case e.RawUnit.Line:o=1;break;case e.RawUnit.WrappedLine:o=2;break;case e.RawUnit.Character:o=3;break;case e.RawUnit.HalfLine:o=4;break}return{direction:r,unit:o,select:!!i.select,value:i.value||1}}e.parse=n})(Ade||(Ade={}))}});function DUe(e,t){e.tokenization.forceTokenization(t.lineNumber);const n=e.tokenization.getLineTokens(t.lineNumber),i=NO(n,t.column-1),r=i.firstCharOffset===0,o=n.getLanguageId(0)===i.languageId;return!r&&!o}var Nge,Pge,ySe,TUe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages/supports/indentationLineProcessor.js"(){Ki(),nY(),bw(),Nge=class{constructor(e,t,n){this._indentRulesSupport=t,this._indentationLineProcessor=new ySe(e,n)}shouldIncrease(e,t){const n=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIncrease(n)}shouldDecrease(e,t){const n=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldDecrease(n)}shouldIgnore(e,t){const n=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIgnore(n)}shouldIndentNextLine(e,t){const n=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIndentNextLine(n)}},Pge=class{constructor(e,t){this.model=e,this.indentationLineProcessor=new ySe(e,t)}getProcessedTokenContextAroundRange(e){const t=this._getProcessedTokensBeforeRange(e),n=this._getProcessedTokensAfterRange(e),i=this._getProcessedPreviousLineTokens(e);return{beforeRangeProcessedTokens:t,afterRangeProcessedTokens:n,previousLineProcessedTokens:i}}_getProcessedTokensBeforeRange(e){this.model.tokenization.forceTokenization(e.startLineNumber);const t=this.model.tokenization.getLineTokens(e.startLineNumber),n=NO(t,e.startColumn-1);let i;if(DUe(this.model,e.getStartPosition())){const o=e.startColumn-1-n.firstCharOffset,s=n.firstCharOffset,a=s+o;i=t.sliceAndInflate(s,a,0)}else{const o=e.startColumn-1;i=t.sliceAndInflate(0,o,0)}return this.indentationLineProcessor.getProcessedTokens(i)}_getProcessedTokensAfterRange(e){const t=e.isEmpty()?e.getStartPosition():e.getEndPosition();this.model.tokenization.forceTokenization(t.lineNumber);const n=this.model.tokenization.getLineTokens(t.lineNumber),i=NO(n,t.column-1),r=t.column-1-i.firstCharOffset,o=i.firstCharOffset+r,s=i.firstCharOffset+i.getLineLength(),a=n.sliceAndInflate(o,s,0);return this.indentationLineProcessor.getProcessedTokens(a)}_getProcessedPreviousLineTokens(e){const t=h=>{this.model.tokenization.forceTokenization(h);const f=this.model.tokenization.getLineTokens(h),p=this.model.getLineMaxColumn(h)-1;return NO(f,p)};this.model.tokenization.forceTokenization(e.startLineNumber);const n=this.model.tokenization.getLineTokens(e.startLineNumber),i=NO(n,e.startColumn-1),r=Dh.createEmpty("",i.languageIdCodec),o=e.startLineNumber-1;if(o===0||!(i.firstCharOffset===0))return r;const l=t(o);if(!(i.languageId===l.languageId))return r;const u=l.toIViewLineTokens();return this.indentationLineProcessor.getProcessedTokens(u)}},ySe=class{constructor(e,t){this.model=e,this.languageConfigurationService=t}getProcessedLine(e,t){const n=(o,s)=>{const a=Ca(o);return s+o.substring(a.length)};this.model.tokenization.forceTokenization?.(e);const i=this.model.tokenization.getLineTokens(e);let r=this.getProcessedTokens(i).getLineContent();return t!==void 0&&(r=n(r,t)),r}getProcessedTokens(e){const t=a=>a===2||a===3||a===1,n=e.getLanguageId(0),r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew.getBracketRegExp({global:!0}),o=[];return e.forEach(a=>{const l=e.getStandardTokenType(a);let c=e.getTokenText(a);t(l)&&(c=c.replace(r,""));const u=e.getMetadata(a);o.push({text:c,metadata:u})}),Dh.createFromTextAndMetadata(o,e.languageIdCodec)}}}});function J6(e,t,n,i){t.tokenization.forceTokenization(n.startLineNumber);const r=t.getLanguageIdAtPosition(n.startLineNumber,n.startColumn),o=i.getLanguageConfiguration(r);if(!o)return null;const a=new Pge(t,i).getProcessedTokenContextAroundRange(n),l=a.previousLineProcessedTokens.getLineContent(),c=a.beforeRangeProcessedTokens.getLineContent(),u=a.afterRangeProcessedTokens.getLineContent(),d=o.onEnter(e,l,c,u);if(!d)return null;const h=d.indentAction;let f=d.appendText;const p=d.removeText||0;f?h===vu.Indent&&(f="	"+f):h===vu.Indent||h===vu.IndentOutdent?f="	":f="";let g=fUt(t,n.startLineNumber,n.startColumn);return p&&(g=g.substring(0,g.length-p)),{indentAction:h,appendText:f,removeText:p,indentation:g}}var kUe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages/enterAction.js"(){J2(),lu(),TUe()}});function GP(e,t){if(t<=0)return"";vae[e]||(vae[e]=["",e]);const n=vae[e];for(let i=n.length;i<=t;i++)n[i]=n[i-1]+e;return n[t]}var opt,spt,Bee,vae,L0,IY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/commands/shiftCommand.js"(){Ki(),HC(),Dn(),zs(),kUe(),lu(),opt=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},spt=function(e,t){return function(n,i){t(n,i,e)}},vae=Object.create(null),L0=Bee=class{static unshiftIndent(t,n,i,r,o){const s=cd.visibleColumnFromColumn(t,n,i);if(o){const a=GP(" ",r),c=cd.prevIndentTabStop(s,r)/r;return GP(a,c)}else{const c=cd.prevRenderTabStop(s,i)/i;return GP("	",c)}}static shiftIndent(t,n,i,r,o){const s=cd.visibleColumnFromColumn(t,n,i);if(o){const a=GP(" ",r),c=cd.nextIndentTabStop(s,r)/r;return GP(a,c)}else{const c=cd.nextRenderTabStop(s,i)/i;return GP("	",c)}}constructor(t,n,i){this._languageConfigurationService=i,this._opts=n,this._selection=t,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}_addEditOperation(t,n,i){this._useLastEditRangeForCursorEndPosition?t.addTrackedEditOperation(n,i):t.addEditOperation(n,i)}getEditOperations(t,n){const i=this._selection.startLineNumber;let r=this._selection.endLineNumber;this._selection.endColumn===1&&i!==r&&(r=r-1);const{tabSize:o,indentSize:s,insertSpaces:a}=this._opts,l=i===r;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(t.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0);let c=0,u=0;for(let d=i;d<=r;d++,c=u){u=0;const h=t.getLineContent(d);let f=Cp(h);if(this._opts.isUnshift&&(h.length===0||f===0)||!l&&!this._opts.isUnshift&&h.length===0)continue;if(f===-1&&(f=h.length),d>1&&cd.visibleColumnFromColumn(h,f+1,o)%s!==0&&t.tokenization.isCheapToTokenize(d-1)){const m=J6(this._opts.autoIndent,t,new Re(d-1,t.getLineMaxColumn(d-1),d-1,t.getLineMaxColumn(d-1)),this._languageConfigurationService);if(m){if(u=c,m.appendText)for(let v=0,y=m.appendText.length;v<y&&u<s&&m.appendText.charCodeAt(v)===32;v++)u++;m.removeText&&(u=Math.max(0,u-m.removeText));for(let v=0;v<u&&!(f===0||h.charCodeAt(f-1)!==32);v++)f--}}if(this._opts.isUnshift&&f===0)continue;let p;this._opts.isUnshift?p=Bee.unshiftIndent(h,f+1,o,s,a):p=Bee.shiftIndent(h,f+1,o,s,a),this._addEditOperation(n,new Re(d,1,d,f+1),p),d===i&&!this._selection.isEmpty()&&(this._selectionStartColumnStaysPut=this._selection.startColumn<=f+1)}}else{!this._opts.isUnshift&&this._selection.isEmpty()&&t.getLineLength(i)===0&&(this._useLastEditRangeForCursorEndPosition=!0);const c=a?GP(" ",s):"	";for(let u=i;u<=r;u++){const d=t.getLineContent(u);let h=Cp(d);if(!(this._opts.isUnshift&&(d.length===0||h===0))&&!(!l&&!this._opts.isUnshift&&d.length===0)&&(h===-1&&(h=d.length),!(this._opts.isUnshift&&h===0)))if(this._opts.isUnshift){h=Math.min(h,s);for(let f=0;f<h;f++)if(d.charCodeAt(f)===9){h=f+1;break}this._addEditOperation(n,new Re(u,1,u,h+1),"")}else this._addEditOperation(n,new Re(u,1,u,1),c),u===i&&!this._selection.isEmpty()&&(this._selectionStartColumnStaysPut=this._selection.startColumn===1)}}this._selectionId=n.trackSelection(this._selection)}computeCursorState(t,n){if(this._useLastEditRangeForCursorEndPosition){const r=n.getInverseEditOperations()[0];return new Ii(r.range.endLineNumber,r.range.endColumn,r.range.endLineNumber,r.range.endColumn)}const i=n.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){const r=this._selection.startColumn;return i.startColumn<=r?i:i.getDirection()===0?new Ii(i.startLineNumber,r,i.endLineNumber,i.endColumn):new Ii(i.endLineNumber,i.endColumn,i.startLineNumber,r)}return i}},L0=Bee=opt([spt(2,yl)],L0)}}),BQt,jQt,zQt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/commands/surroundSelectionCommand.js"(){Dn(),zs(),BQt=class{constructor(e,t,n){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=n}getEditOperations(e,t){t.addTrackedEditOperation(new Re(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new Re(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(e,t){const n=t.getInverseEditOperations(),i=n[0].range,r=n[1].range;return new Ii(i.endLineNumber,i.endColumn,r.endLineNumber,r.endColumn-this._charAfterSelection.length)}},jQt=class{constructor(e,t,n){this._position=e,this._text=t,this._charAfter=n}getEditOperations(e,t){t.addTrackedEditOperation(new Re(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column),this._text+this._charAfter)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return new Ii(i.endLineNumber,i.startColumn,i.endLineNumber,i.endColumn-this._charAfter.length)}}}});function y$n(e,t,n){const i=e.tokenization.getLanguageIdAtPosition(t,0);if(t>1){let r,o=-1;for(r=t-1;r>=1;r--){if(e.tokenization.getLanguageIdAtPosition(r,0)!==i)return o;const s=e.getLineContent(r);if(n.shouldIgnore(r)||/^\s+$/.test(s)||s===""){o=r;continue}return r}}return-1}function hG(e,t,n,i=!0,r){if(e<4)return null;const o=r.getLanguageConfiguration(t.tokenization.getLanguageId()).indentRulesSupport;if(!o)return null;const s=new Nge(t,o,r);if(n<=1)return{indentation:"",action:null};for(let l=n-1;l>0&&t.getLineContent(l)==="";l--)if(l===1)return{indentation:"",action:null};const a=y$n(t,n,s);if(a<0)return null;if(a<1)return{indentation:"",action:null};if(s.shouldIncrease(a)||s.shouldIndentNextLine(a)){const l=t.getLineContent(a);return{indentation:Ca(l),action:vu.Indent,line:a}}else if(s.shouldDecrease(a)){const l=t.getLineContent(a);return{indentation:Ca(l),action:null,line:a}}else{if(a===1)return{indentation:Ca(t.getLineContent(a)),action:null,line:a};const l=a-1,c=o.getIndentMetadata(t.getLineContent(l));if(!(c&3)&&c&4){let u=0;for(let d=l-1;d>0;d--)if(!s.shouldIndentNextLine(d)){u=d;break}return{indentation:Ca(t.getLineContent(u+1)),action:null,line:u+1}}if(i)return{indentation:Ca(t.getLineContent(a)),action:null,line:a};for(let u=a;u>0;u--){if(s.shouldIncrease(u))return{indentation:Ca(t.getLineContent(u)),action:vu.Indent,line:u};if(s.shouldIndentNextLine(u)){let d=0;for(let h=u-1;h>0;h--)if(!s.shouldIndentNextLine(u)){d=h;break}return{indentation:Ca(t.getLineContent(d+1)),action:null,line:d+1}}else if(s.shouldDecrease(u))return{indentation:Ca(t.getLineContent(u)),action:null,line:u}}return{indentation:Ca(t.getLineContent(1)),action:null,line:1}}}function c$(e,t,n,i,r,o){if(e<4)return null;const s=o.getLanguageConfiguration(n);if(!s)return null;const a=o.getLanguageConfiguration(n).indentRulesSupport;if(!a)return null;const l=new Nge(t,a,o),c=hG(e,t,i,void 0,o);if(c){const u=c.line;if(u!==void 0){let d=!0;for(let h=u;h<i-1;h++)if(!/^\s*$/.test(t.getLineContent(h))){d=!1;break}if(d){const h=s.onEnter(e,"",t.getLineContent(u),"");if(h){let f=Ca(t.getLineContent(u));return h.removeText&&(f=f.substring(0,f.length-h.removeText)),h.indentAction===vu.Indent||h.indentAction===vu.IndentOutdent?f=r.shiftIndent(f):h.indentAction===vu.Outdent&&(f=r.unshiftIndent(f)),l.shouldDecrease(i)&&(f=r.unshiftIndent(f)),h.appendText&&(f+=h.appendText),Ca(f)}}}return l.shouldDecrease(i)?c.action===vu.Indent?c.indentation:r.unshiftIndent(c.indentation):c.action===vu.Indent?r.shiftIndent(c.indentation):c.indentation}return null}function b$n(e,t,n,i,r){if(e<4)return null;const o=t.getLanguageIdAtPosition(n.startLineNumber,n.startColumn),s=r.getLanguageConfiguration(o).indentRulesSupport;if(!s)return null;t.tokenization.forceTokenization(n.startLineNumber);const l=new Pge(t,r).getProcessedTokenContextAroundRange(n),c=l.afterRangeProcessedTokens,u=l.beforeRangeProcessedTokens,d=Ca(u.getLineContent()),h=w$n(t,n.startLineNumber,u),f=DUe(t,n.getStartPosition()),p=t.getLineContent(n.startLineNumber),g=Ca(p),m=hG(e,h,n.startLineNumber+1,void 0,r);if(!m){const y=f?g:d;return{beforeEnter:y,afterEnter:y}}let v=f?g:m.indentation;return m.action===vu.Indent&&(v=i.shiftIndent(v)),s.shouldDecrease(c.getLineContent())&&(v=i.unshiftIndent(v)),{beforeEnter:f?g:d,afterEnter:v}}function _$n(e,t,n,i,r,o){const s=e.autoIndent;if(s<4||DUe(t,n.getStartPosition()))return null;const l=t.getLanguageIdAtPosition(n.startLineNumber,n.startColumn),c=o.getLanguageConfiguration(l).indentRulesSupport;if(!c)return null;const d=new Pge(t,o).getProcessedTokenContextAroundRange(n),h=d.beforeRangeProcessedTokens.getLineContent(),f=d.afterRangeProcessedTokens.getLineContent(),p=h+f,g=h+i+f;if(!c.shouldDecrease(p)&&c.shouldDecrease(g)){const v=hG(s,t,n.startLineNumber,!1,o);if(!v)return null;let y=v.indentation;return v.action!==vu.Indent&&(y=r.unshiftIndent(y)),y}const m=n.startLineNumber-1;if(m>0){const v=t.getLineContent(m);if(c.shouldIndentNextLine(v)&&c.shouldIncrease(g)){const b=hG(s,t,n.startLineNumber,!1,o)?.indentation;if(b!==void 0){const w=t.getLineContent(n.startLineNumber),E=Ca(w),D=r.shiftIndent(b)===E,T=/^\s*$/.test(p),M=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(i),F=M&&M.length>0&&T;if(D&&F)return b}}}return null}function VQt(e,t,n){const i=n.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;return!i||t<1||t>e.getLineCount()?null:i.getIndentMetadata(e.getLineContent(t))}function w$n(e,t,n){return{tokenization:{getLineTokens:r=>r===t?n:e.tokenization.getLineTokens(r),getLanguageId:()=>e.getLanguageId(),getLanguageIdAtPosition:(r,o)=>e.getLanguageIdAtPosition(r,o)},getLineContent:r=>r===t?n.getLineContent():e.getLineContent(r)}}var IUe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages/autoIndent.js"(){Ki(),J2(),TUe()}});function bSe(e,t){return e===" "?t===5||t===6?6:5:4}function jee(e,t){return lpt(e)&&!lpt(t)?!0:e===5?!1:apt(e)!==apt(t)}function apt(e){return e===6||e===5?"space":e}function lpt(e){return e===4||e===5||e===6}function cpt(e,t,n,i,r){if(e.autoClosingOvertype==="never"||!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(r))return!1;for(let o=0,s=n.length;o<s;o++){const a=n[o];if(!a.isEmpty())return!1;const l=a.getPosition(),c=t.getLineContent(l.lineNumber);if(c.charAt(l.column-1)!==r)return!1;const d=cL(r);if((l.column>2?c.charCodeAt(l.column-2):0)===92&&d)return!1;if(e.autoClosingOvertype==="auto"){let f=!1;for(let p=0,g=i.length;p<g;p++){const m=i[p];if(l.lineNumber===m.startLineNumber&&l.column===m.startColumn){f=!0;break}}if(!f)return!1}}return!0}function KP(e,t,n){return n?new l$(e,t,!0):new dh(e,t,!0)}function _Se(e,t,n){return n=n||1,L0.shiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)}function zee(e,t,n){return n=n||1,L0.unshiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)}function HQt(e,t){return cL(t)?e.autoSurround==="quotes"||e.autoSurround==="languageDefined":e.autoSurround==="brackets"||e.autoSurround==="languageDefined"}var WQt,UQt,$Qt,Dde,qQt,GQt,KQt,fG,YQt,QQt,ZQt,XQt,yae,upt,dpt,Mge=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorTypeEditOperations.js"(){Vi(),Ki(),$7(),IY(),zQt(),Ib(),oY(),Dn(),Hi(),J2(),lu(),nY(),IUe(),kUe(),WQt=class{static getEdits(e,t,n,i,r){if(!r&&this._isAutoIndentType(e,t,n)){const o=[];for(const a of n){const l=this._findActualIndentationForSelection(e,t,a,i);if(l===null)return;o.push({selection:a,indentation:l})}const s=Dde.getAutoClosingPairClose(e,t,n,i,!1);return this._getIndentationAndAutoClosingPairEdits(e,t,o,i,s)}}static _isAutoIndentType(e,t,n){if(e.autoIndent<4)return!1;for(let i=0,r=n.length;i<r;i++)if(!t.tokenization.isCheapToTokenize(n[i].getEndPosition().lineNumber))return!1;return!0}static _findActualIndentationForSelection(e,t,n,i){const r=_$n(e,t,n,i,{shiftIndent:s=>_Se(e,s),unshiftIndent:s=>zee(e,s)},e.languageConfigurationService);if(r===null)return null;const o=fUt(t,n.startLineNumber,n.startColumn);return r===e.normalizeIndentation(o)?null:r}static _getIndentationAndAutoClosingPairEdits(e,t,n,i,r){const o=n.map(({selection:a,indentation:l})=>{if(r!==null){const c=this._getEditFromIndentationAndSelection(e,t,l,a,i,!1);return new dpt(c,a,i,r)}else{const c=this._getEditFromIndentationAndSelection(e,t,l,a,i,!0);return KP(c.range,c.text,!1)}}),s={shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1};return new Qp(4,o,s)}static _getEditFromIndentationAndSelection(e,t,n,i,r,o=!0){const s=i.startLineNumber,a=t.getLineFirstNonWhitespaceColumn(s);let l=e.normalizeIndentation(n);if(a!==0){const u=t.getLineContent(s);l+=u.substring(a-1,i.startColumn-1)}return l+=o?r:"",{range:new Re(s,1,i.endLineNumber,i.endColumn),text:l}}},UQt=class{static getEdits(e,t,n,i,r,o){if(cpt(t,n,i,r,o))return this._runAutoClosingOvertype(e,i,o)}static _runAutoClosingOvertype(e,t,n){const i=[];for(let r=0,o=t.length;r<o;r++){const a=t[r].getPosition(),l=new Re(a.lineNumber,a.column,a.lineNumber,a.column+1);i[r]=new dh(l,n)}return new Qp(4,i,{shouldPushStackElementBefore:jee(e,4),shouldPushStackElementAfter:!1})}},$Qt=class{static getEdits(e,t,n,i,r){if(cpt(e,t,n,i,r)){const o=n.map(s=>new dh(new Re(s.positionLineNumber,s.positionColumn,s.positionLineNumber,s.positionColumn+1),"",!1));return new Qp(4,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}}},Dde=class{static getEdits(e,t,n,i,r,o){if(!o){const s=this.getAutoClosingPairClose(e,t,n,i,r);if(s!==null)return this._runAutoClosingOpenCharType(n,i,r,s)}}static _runAutoClosingOpenCharType(e,t,n,i){const r=[];for(let o=0,s=e.length;o<s;o++){const a=e[o];r[o]=new upt(a,t,!n,i)}return new Qp(4,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static getAutoClosingPairClose(e,t,n,i,r){for(const f of n)if(!f.isEmpty())return null;const o=n.map(f=>{const p=f.getPosition();return r?{lineNumber:p.lineNumber,beforeColumn:p.column-i.length,afterColumn:p.column}:{lineNumber:p.lineNumber,beforeColumn:p.column,afterColumn:p.column}}),s=this._findAutoClosingPairOpen(e,t,o.map(f=>new mt(f.lineNumber,f.beforeColumn)),i);if(!s)return null;let a,l;if(cL(i)?(a=e.autoClosingQuotes,l=e.shouldAutoCloseBefore.quote):(e.blockCommentStartToken?s.open.includes(e.blockCommentStartToken):!1)?(a=e.autoClosingComments,l=e.shouldAutoCloseBefore.comment):(a=e.autoClosingBrackets,l=e.shouldAutoCloseBefore.bracket),a==="never")return null;const u=this._findContainedAutoClosingPair(e,s),d=u?u.close:"";let h=!0;for(const f of o){const{lineNumber:p,beforeColumn:g,afterColumn:m}=f,v=t.getLineContent(p),y=v.substring(0,g-1),b=v.substring(m-1);if(b.startsWith(d)||(h=!1),b.length>0){const D=b.charAt(0);if(!this._isBeforeClosingBrace(e,b)&&!l(D))return null}if(s.open.length===1&&(i==="'"||i==='"')&&a!=="always"){const D=Ay(e.wordSeparators,[]);if(y.length>0){const T=y.charCodeAt(y.length-1);if(D.get(T)===0)return null}}if(!t.tokenization.isCheapToTokenize(p))return null;t.tokenization.forceTokenization(p);const w=t.tokenization.getLineTokens(p),E=NO(w,g-1);if(!s.shouldAutoClose(E,g-E.firstCharOffset))return null;const A=s.findNeutralCharacter();if(A){const D=t.tokenization.getTokenTypeIfInsertingCharacter(p,g,A);if(!s.isOK(D))return null}}return h?s.close.substring(0,s.close.length-d.length):s.close}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;const n=t.close.charAt(t.close.length-1),i=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(n)||[];let r=null;for(const o of i)o.open!==t.open&&t.open.includes(o.open)&&t.close.endsWith(o.close)&&(!r||o.open.length>r.open.length)&&(r=o);return r}static _findAutoClosingPairOpen(e,t,n,i){const r=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(i);if(!r)return null;let o=null;for(const s of r)if(o===null||s.open.length>o.open.length){let a=!0;for(const l of n)if(t.getValueInRange(new Re(l.lineNumber,l.column-s.open.length+1,l.lineNumber,l.column))+i!==s.open){a=!1;break}a&&(o=s)}return o}static _isBeforeClosingBrace(e,t){const n=t.charAt(0),i=e.autoClosingPairs.autoClosingPairsOpenByStart.get(n)||[],r=e.autoClosingPairs.autoClosingPairsCloseByStart.get(n)||[],o=i.some(a=>t.startsWith(a.open)),s=r.some(a=>t.startsWith(a.close));return!o&&s}},qQt=class{static getEdits(e,t,n,i,r){if(!r&&this._isSurroundSelectionType(e,t,n,i))return this._runSurroundSelectionType(e,n,i)}static _runSurroundSelectionType(e,t,n){const i=[];for(let r=0,o=t.length;r<o;r++){const s=t[r],a=e.surroundingPairs[n];i[r]=new BQt(s,n,a)}return new Qp(0,i,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _isSurroundSelectionType(e,t,n,i){if(!HQt(e,i)||!e.surroundingPairs.hasOwnProperty(i))return!1;const r=cL(i);for(const o of n){if(o.isEmpty())return!1;let s=!0;for(let a=o.startLineNumber;a<=o.endLineNumber;a++){const l=t.getLineContent(a),c=a===o.startLineNumber?o.startColumn-1:0,u=a===o.endLineNumber?o.endColumn-1:l.length,d=l.substring(c,u);if(/[^ \t]/.test(d)){s=!1;break}}if(s)return!1;if(r&&o.startLineNumber===o.endLineNumber&&o.startColumn+1===o.endColumn){const a=t.getValueInRange(o);if(cL(a))return!1}}return!0}},GQt=class{static getEdits(e,t,n,i,r,o){if(!o&&this._isTypeInterceptorElectricChar(t,n,i)){const s=this._typeInterceptorElectricChar(e,t,n,i[0],r);if(s)return s}}static _isTypeInterceptorElectricChar(e,t,n){return!!(n.length===1&&t.tokenization.isCheapToTokenize(n[0].getEndPosition().lineNumber))}static _typeInterceptorElectricChar(e,t,n,i,r){if(!t.electricChars.hasOwnProperty(r)||!i.isEmpty())return null;const o=i.getPosition();n.tokenization.forceTokenization(o.lineNumber);const s=n.tokenization.getLineTokens(o.lineNumber);let a;try{a=t.onElectricCharacter(r,s,o.column)}catch(l){return Mr(l),null}if(!a)return null;if(a.matchOpenBracket){const l=(s.getLineContent()+r).lastIndexOf(a.matchOpenBracket)+1,c=n.bracketPairs.findMatchingBracketUp(a.matchOpenBracket,{lineNumber:o.lineNumber,column:l},500);if(c){if(c.startLineNumber===o.lineNumber)return null;const u=n.getLineContent(c.startLineNumber),d=Ca(u),h=t.normalizeIndentation(d),f=n.getLineContent(o.lineNumber),p=n.getLineFirstNonWhitespaceColumn(o.lineNumber)||o.column,g=f.substring(p-1,o.column-1),m=h+g+r,v=new Re(o.lineNumber,1,o.lineNumber,o.column),y=new dh(v,m);return new Qp(bSe(m,e),[y],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null}},KQt=class{static getEdits(e,t,n){const i=[];for(let o=0,s=t.length;o<s;o++)i[o]=new dh(t[o],n);const r=bSe(n,e);return new Qp(r,i,{shouldPushStackElementBefore:jee(e,r),shouldPushStackElementAfter:!1})}},fG=class{static getEdits(e,t,n,i,r){if(!r&&i===`
`){const o=[];for(let s=0,a=n.length;s<a;s++)o[s]=this._enter(e,t,!1,n[s]);return new Qp(4,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}}static _enter(e,t,n,i){if(e.autoIndent===0)return KP(i,`
`,n);if(!t.tokenization.isCheapToTokenize(i.getStartPosition().lineNumber)||e.autoIndent===1){const a=t.getLineContent(i.startLineNumber),l=Ca(a).substring(0,i.startColumn-1);return KP(i,`
`+e.normalizeIndentation(l),n)}const r=J6(e.autoIndent,t,i,e.languageConfigurationService);if(r){if(r.indentAction===vu.None)return KP(i,`
`+e.normalizeIndentation(r.indentation+r.appendText),n);if(r.indentAction===vu.Indent)return KP(i,`
`+e.normalizeIndentation(r.indentation+r.appendText),n);if(r.indentAction===vu.IndentOutdent){const a=e.normalizeIndentation(r.indentation),l=e.normalizeIndentation(r.indentation+r.appendText),c=`
`+l+`
`+a;return n?new l$(i,c,!0):new mW(i,c,-1,l.length-a.length,!0)}else if(r.indentAction===vu.Outdent){const a=zee(e,r.indentation);return KP(i,`
`+e.normalizeIndentation(a+r.appendText),n)}}const o=t.getLineContent(i.startLineNumber),s=Ca(o).substring(0,i.startColumn-1);if(e.autoIndent>=4){const a=b$n(e.autoIndent,t,i,{unshiftIndent:l=>zee(e,l),shiftIndent:l=>_Se(e,l),normalizeIndentation:l=>e.normalizeIndentation(l)},e.languageConfigurationService);if(a){let l=e.visibleColumnFromColumn(t,i.getEndPosition());const c=i.endColumn,u=t.getLineContent(i.endLineNumber),d=Cp(u);if(d>=0?i=i.setEndPosition(i.endLineNumber,Math.max(i.endColumn,d+1)):i=i.setEndPosition(i.endLineNumber,t.getLineMaxColumn(i.endLineNumber)),n)return new l$(i,`
`+e.normalizeIndentation(a.afterEnter),!0);{let h=0;return c<=d+1&&(e.insertSpaces||(l=Math.ceil(l/e.indentSize)),h=Math.min(l+1-e.normalizeIndentation(a.afterEnter).length-1,0)),new mW(i,`
`+e.normalizeIndentation(a.afterEnter),0,h,!0)}}}return KP(i,`
`+e.normalizeIndentation(s),n)}static lineInsertBefore(e,t,n){if(t===null||n===null)return[];const i=[];for(let r=0,o=n.length;r<o;r++){let s=n[r].positionLineNumber;if(s===1)i[r]=new l$(new Re(1,1,1,1),`
`);else{s--;const a=t.getLineMaxColumn(s);i[r]=this._enter(e,t,!1,new Re(s,a,s,a))}}return i}static lineInsertAfter(e,t,n){if(t===null||n===null)return[];const i=[];for(let r=0,o=n.length;r<o;r++){const s=n[r].positionLineNumber,a=t.getLineMaxColumn(s);i[r]=this._enter(e,t,!1,new Re(s,a,s,a))}return i}static lineBreakInsert(e,t,n){const i=[];for(let r=0,o=n.length;r<o;r++)i[r]=this._enter(e,t,!0,n[r]);return i}},YQt=class{static getEdits(e,t,n,i,r,o){const s=this._distributePasteToCursors(e,n,i,r,o);return s?(n=n.sort(Re.compareRangesUsingStarts),this._distributedPaste(e,t,n,s)):this._simplePaste(e,t,n,i,r)}static _distributePasteToCursors(e,t,n,i,r){if(i||t.length===1)return null;if(r&&r.length===t.length)return r;if(e.multiCursorPaste==="spread"){n.charCodeAt(n.length-1)===10&&(n=n.substring(0,n.length-1)),n.charCodeAt(n.length-1)===13&&(n=n.substring(0,n.length-1));const o=Zx(n);if(o.length===t.length)return o}return null}static _distributedPaste(e,t,n,i){const r=[];for(let o=0,s=n.length;o<s;o++)r[o]=new dh(n[o],i[o]);return new Qp(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _simplePaste(e,t,n,i,r){const o=[];for(let s=0,a=n.length;s<a;s++){const l=n[s],c=l.getPosition();if(r&&!l.isEmpty()&&(r=!1),r&&i.indexOf(`
`)!==i.length-1&&(r=!1),r){const u=new Re(c.lineNumber,1,c.lineNumber,1);o[s]=new Ige(u,i,l,!0)}else o[s]=new dh(l,i)}return new Qp(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}},QQt=class{static getEdits(e,t,n,i,r,o,s,a){const l=i.map(c=>this._compositionType(n,c,r,o,s,a));return new Qp(4,l,{shouldPushStackElementBefore:jee(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,n,i,r,o){if(!t.isEmpty())return null;const s=t.getPosition(),a=Math.max(1,s.column-i),l=Math.min(e.getLineMaxColumn(s.lineNumber),s.column+r),c=new Re(s.lineNumber,a,s.lineNumber,l);return e.getValueInRange(c)===n&&o===0?null:new mW(c,n,0,o)}},ZQt=class{static getEdits(e,t,n){const i=[];for(let o=0,s=t.length;o<s;o++)i[o]=new dh(t[o],n);const r=bSe(n,e);return new Qp(r,i,{shouldPushStackElementBefore:jee(e,r),shouldPushStackElementAfter:!1})}},XQt=class{static getCommands(e,t,n){const i=[];for(let r=0,o=n.length;r<o;r++){const s=n[r];if(s.isEmpty()){const a=t.getLineContent(s.startLineNumber);if(/^\s*$/.test(a)&&t.tokenization.isCheapToTokenize(s.startLineNumber)){let l=this._goodIndentForLine(e,t,s.startLineNumber);l=l||"	";const c=e.normalizeIndentation(l);if(!a.startsWith(c)){i[r]=new dh(new Re(s.startLineNumber,1,s.startLineNumber,a.length+1),c,!0);continue}}i[r]=this._replaceJumpToNextIndent(e,t,s,!0)}else{if(s.startLineNumber===s.endLineNumber){const a=t.getLineMaxColumn(s.startLineNumber);if(s.startColumn!==1||s.endColumn!==a){i[r]=this._replaceJumpToNextIndent(e,t,s,!1);continue}}i[r]=new L0(s,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService)}}return i}static _goodIndentForLine(e,t,n){let i=null,r="";const o=hG(e.autoIndent,t,n,!1,e.languageConfigurationService);if(o)i=o.action,r=o.indentation;else if(n>1){let s;for(s=n-1;s>=1;s--){const c=t.getLineContent(s);if(iC(c)>=0)break}if(s<1)return null;const a=t.getLineMaxColumn(s),l=J6(e.autoIndent,t,new Re(s,a,s,a),e.languageConfigurationService);l&&(r=l.indentation+l.appendText)}return i&&(i===vu.Indent&&(r=_Se(e,r)),i===vu.Outdent&&(r=zee(e,r)),r=e.normalizeIndentation(r)),r||null}static _replaceJumpToNextIndent(e,t,n,i){let r="";const o=n.getStartPosition();if(e.insertSpaces){const s=e.visibleColumnFromColumn(t,o),a=e.indentSize,l=a-s%a;for(let c=0;c<l;c++)r+=" "}else r="	";return new dh(n,r,i)}},yae=class extends mW{constructor(e,t,n,i,r,o){super(e,t,n,i),this._openCharacter=r,this._closeCharacter=o,this.closeCharacterRange=null,this.enclosingRange=null}_computeCursorStateWithRange(e,t,n){return this.closeCharacterRange=new Re(t.startLineNumber,t.endColumn-this._closeCharacter.length,t.endLineNumber,t.endColumn),this.enclosingRange=new Re(t.startLineNumber,t.endColumn-this._openCharacter.length-this._closeCharacter.length,t.endLineNumber,t.endColumn),super.computeCursorState(e,n)}},upt=class extends yae{constructor(e,t,n,i){const r=(n?t:"")+i,o=0,s=-i.length;super(e,r,o,s,t,i)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return this._computeCursorStateWithRange(e,i,t)}},dpt=class extends yae{constructor(e,t,n,i){const r=n+i,o=0,s=n.length;super(t,r,o,s,n,i),this._autoIndentationEdit=e,this._autoClosingEdit={range:t,text:r}}getEditOperations(e,t){t.addTrackedEditOperation(this._autoIndentationEdit.range,this._autoIndentationEdit.text),t.addTrackedEditOperation(this._autoClosingEdit.range,this._autoClosingEdit.text)}computeCursorState(e,t){const n=t.getInverseEditOperations();if(n.length!==2)throw new Error("There should be two inverse edit operations!");const i=n[0].range,r=n[1].range,o=i.plusRange(r);return this._computeCursorStateWithRange(e,o,t)}}}}),tD,JQt,LUe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorTypeOperations.js"(){IY(),zQt(),Ib(),Mge(),tD=class{static indent(e,t,n){if(t===null||n===null)return[];const i=[];for(let r=0,o=n.length;r<o;r++)i[r]=new L0(n[r],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return i}static outdent(e,t,n){const i=[];for(let r=0,o=n.length;r<o;r++)i[r]=new L0(n[r],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return i}static paste(e,t,n,i,r,o){return YQt.getEdits(e,t,n,i,r,o)}static tab(e,t,n){return XQt.getCommands(e,t,n)}static compositionType(e,t,n,i,r,o,s,a){return QQt.getEdits(e,t,n,i,r,o,s,a)}static compositionEndWithInterceptors(e,t,n,i,r,o){if(!i)return null;let s=null;for(const d of i)if(s===null)s=d.insertedText;else if(s!==d.insertedText)return null;if(!s||s.length!==1)return null;const a=s;let l=!1;for(const d of i)if(d.deletedText.length!==0){l=!0;break}if(l){if(!HQt(t,a)||!t.surroundingPairs.hasOwnProperty(a))return null;const d=cL(a);for(const p of i)if(p.deletedSelectionStart!==0||p.deletedSelectionEnd!==p.deletedText.length||/^[ \t]+$/.test(p.deletedText)||d&&cL(p.deletedText))return null;const h=[];for(const p of r){if(!p.isEmpty())return null;h.push(p.getPosition())}if(h.length!==i.length)return null;const f=[];for(let p=0,g=h.length;p<g;p++)f.push(new jQt(h[p],i[p].deletedText,t.surroundingPairs[a]));return new Qp(4,f,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const c=$Qt.getEdits(t,n,r,o,a);if(c!==void 0)return c;const u=Dde.getEdits(t,n,r,a,!0,!1);return u!==void 0?u:null}static typeWithInterceptors(e,t,n,i,r,o,s){const a=fG.getEdits(n,i,r,s,e);if(a!==void 0)return a;const l=WQt.getEdits(n,i,r,s,e);if(l!==void 0)return l;const c=UQt.getEdits(t,n,i,r,o,s);if(c!==void 0)return c;const u=Dde.getEdits(n,i,r,s,!1,e);if(u!==void 0)return u;const d=qQt.getEdits(n,i,r,s,e);if(d!==void 0)return d;const h=GQt.getEdits(t,n,i,r,s,e);return h!==void 0?h:KQt.getEdits(t,r,s)}static typeWithoutInterceptors(e,t,n,i,r){return ZQt.getEdits(e,i,r)}},JQt=class{constructor(e,t,n,i,r,o){this.deletedText=e,this.deletedSelectionStart=t,this.deletedSelectionEnd=n,this.insertedText=i,this.insertedSelectionStart=r,this.insertedSelectionEnd=o}}}}),Ge,ls=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"(){bn(),er(),(function(e){e.editorSimpleInput=new Qn("editorSimpleInput",!1,!0),e.editorTextFocus=new Qn("editorTextFocus",!1,R("editorTextFocus","Whether the editor text has focus (cursor is blinking)")),e.focus=new Qn("editorFocus",!1,R("editorFocus","Whether the editor or an editor widget has focus (e.g. focus is in the find widget)")),e.textInputFocus=new Qn("textInputFocus",!1,R("textInputFocus","Whether an editor or a rich text input has focus (cursor is blinking)")),e.readOnly=new Qn("editorReadonly",!1,R("editorReadonly","Whether the editor is read-only")),e.inDiffEditor=new Qn("inDiffEditor",!1,R("inDiffEditor","Whether the context is a diff editor")),e.isEmbeddedDiffEditor=new Qn("isEmbeddedDiffEditor",!1,R("isEmbeddedDiffEditor","Whether the context is an embedded diff editor")),e.inMultiDiffEditor=new Qn("inMultiDiffEditor",!1,R("inMultiDiffEditor","Whether the context is a multi diff editor")),e.multiDiffEditorAllCollapsed=new Qn("multiDiffEditorAllCollapsed",void 0,R("multiDiffEditorAllCollapsed","Whether all files in multi diff editor are collapsed")),e.hasChanges=new Qn("diffEditorHasChanges",!1,R("diffEditorHasChanges","Whether the diff editor has changes")),e.comparingMovedCode=new Qn("comparingMovedCode",!1,R("comparingMovedCode","Whether a moved code block is selected for comparison")),e.accessibleDiffViewerVisible=new Qn("accessibleDiffViewerVisible",!1,R("accessibleDiffViewerVisible","Whether the accessible diff viewer is visible")),e.diffEditorRenderSideBySideInlineBreakpointReached=new Qn("diffEditorRenderSideBySideInlineBreakpointReached",!1,R("diffEditorRenderSideBySideInlineBreakpointReached","Whether the diff editor render side by side inline breakpoint is reached")),e.diffEditorInlineMode=new Qn("diffEditorInlineMode",!1,R("diffEditorInlineMode","Whether inline mode is active")),e.diffEditorOriginalWritable=new Qn("diffEditorOriginalWritable",!1,R("diffEditorOriginalWritable","Whether modified is writable in the diff editor")),e.diffEditorModifiedWritable=new Qn("diffEditorModifiedWritable",!1,R("diffEditorModifiedWritable","Whether modified is writable in the diff editor")),e.diffEditorOriginalUri=new Qn("diffEditorOriginalUri","",R("diffEditorOriginalUri","The uri of the original document")),e.diffEditorModifiedUri=new Qn("diffEditorModifiedUri","",R("diffEditorModifiedUri","The uri of the modified document")),e.columnSelection=new Qn("editorColumnSelection",!1,R("editorColumnSelection","Whether `editor.columnSelection` is enabled")),e.writable=e.readOnly.toNegated(),e.hasNonEmptySelection=new Qn("editorHasSelection",!1,R("editorHasSelection","Whether the editor has text selected")),e.hasOnlyEmptySelection=e.hasNonEmptySelection.toNegated(),e.hasMultipleSelections=new Qn("editorHasMultipleSelections",!1,R("editorHasMultipleSelections","Whether the editor has multiple selections")),e.hasSingleSelection=e.hasMultipleSelections.toNegated(),e.tabMovesFocus=new Qn("editorTabMovesFocus",!1,R("editorTabMovesFocus","Whether `Tab` will move focus out of the editor")),e.tabDoesNotMoveFocus=e.tabMovesFocus.toNegated(),e.isInEmbeddedEditor=new Qn("isInEmbeddedEditor",!1,!0),e.canUndo=new Qn("canUndo",!1,!0),e.canRedo=new Qn("canRedo",!1,!0),e.hoverVisible=new Qn("editorHoverVisible",!1,R("editorHoverVisible","Whether the editor hover is visible")),e.hoverFocused=new Qn("editorHoverFocused",!1,R("editorHoverFocused","Whether the editor hover is focused")),e.stickyScrollFocused=new Qn("stickyScrollFocused",!1,R("stickyScrollFocused","Whether the sticky scroll is focused")),e.stickyScrollVisible=new Qn("stickyScrollVisible",!1,R("stickyScrollVisible","Whether the sticky scroll is visible")),e.standaloneColorPickerVisible=new Qn("standaloneColorPickerVisible",!1,R("standaloneColorPickerVisible","Whether the standalone color picker is visible")),e.standaloneColorPickerFocused=new Qn("standaloneColorPickerFocused",!1,R("standaloneColorPickerFocused","Whether the standalone color picker is focused")),e.inCompositeEditor=new Qn("inCompositeEditor",void 0,R("inCompositeEditor","Whether the editor is part of a larger editor (e.g. notebooks)")),e.notInCompositeEditor=e.inCompositeEditor.toNegated(),e.languageId=new Qn("editorLangId","",R("editorLangId","The language identifier of the editor")),e.hasCompletionItemProvider=new Qn("editorHasCompletionItemProvider",!1,R("editorHasCompletionItemProvider","Whether the editor has a completion item provider")),e.hasCodeActionsProvider=new Qn("editorHasCodeActionsProvider",!1,R("editorHasCodeActionsProvider","Whether the editor has a code actions provider")),e.hasCodeLensProvider=new Qn("editorHasCodeLensProvider",!1,R("editorHasCodeLensProvider","Whether the editor has a code lens provider")),e.hasDefinitionProvider=new Qn("editorHasDefinitionProvider",!1,R("editorHasDefinitionProvider","Whether the editor has a definition provider")),e.hasDeclarationProvider=new Qn("editorHasDeclarationProvider",!1,R("editorHasDeclarationProvider","Whether the editor has a declaration provider")),e.hasImplementationProvider=new Qn("editorHasImplementationProvider",!1,R("editorHasImplementationProvider","Whether the editor has an implementation provider")),e.hasTypeDefinitionProvider=new Qn("editorHasTypeDefinitionProvider",!1,R("editorHasTypeDefinitionProvider","Whether the editor has a type definition provider")),e.hasHoverProvider=new Qn("editorHasHoverProvider",!1,R("editorHasHoverProvider","Whether the editor has a hover provider")),e.hasDocumentHighlightProvider=new Qn("editorHasDocumentHighlightProvider",!1,R("editorHasDocumentHighlightProvider","Whether the editor has a document highlight provider")),e.hasDocumentSymbolProvider=new Qn("editorHasDocumentSymbolProvider",!1,R("editorHasDocumentSymbolProvider","Whether the editor has a document symbol provider")),e.hasReferenceProvider=new Qn("editorHasReferenceProvider",!1,R("editorHasReferenceProvider","Whether the editor has a reference provider")),e.hasRenameProvider=new Qn("editorHasRenameProvider",!1,R("editorHasRenameProvider","Whether the editor has a rename provider")),e.hasSignatureHelpProvider=new Qn("editorHasSignatureHelpProvider",!1,R("editorHasSignatureHelpProvider","Whether the editor has a signature help provider")),e.hasInlayHintsProvider=new Qn("editorHasInlayHintsProvider",!1,R("editorHasInlayHintsProvider","Whether the editor has an inline hints provider")),e.hasDocumentFormattingProvider=new Qn("editorHasDocumentFormattingProvider",!1,R("editorHasDocumentFormattingProvider","Whether the editor has a document formatting provider")),e.hasDocumentSelectionFormattingProvider=new Qn("editorHasDocumentSelectionFormattingProvider",!1,R("editorHasDocumentSelectionFormattingProvider","Whether the editor has a document selection formatting provider")),e.hasMultipleDocumentFormattingProvider=new Qn("editorHasMultipleDocumentFormattingProvider",!1,R("editorHasMultipleDocumentFormattingProvider","Whether the editor has multiple document formatting providers")),e.hasMultipleDocumentSelectionFormattingProvider=new Qn("editorHasMultipleDocumentSelectionFormattingProvider",!1,R("editorHasMultipleDocumentSelectionFormattingProvider","Whether the editor has multiple document selection formatting providers"))})(Ge||(Ge={}))}});function q5(e,t){dp.registerKeybindingRule({id:e,primary:t,when:eZt,weight:ms+1})}function hpt(e){return e.register(),e}function YP(e,t){hpt(new $Be("default:"+e,e)),hpt(new $Be(e,e,t))}var ms,Ql,Hh,G5,Vee,Pd,eZt,e8,$Be,Oge=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/coreCommands.js"(){bn(),zv(),as(),Ih(),mr(),Ec(),v$n(),Ib(),EUe(),AUe(),LUe(),Hi(),Dn(),ls(),er(),kN(),Fn(),Mge(),ms=0,Ql=class extends Hd{runEditorCommand(e,t,n){const i=t._getViewModel();i&&this.runCoreEditorCommand(i,n||{})}},(function(e){const t=function(i){if(!jd(i))return!1;const r=i;return!(!sm(r.to)||!bp(r.by)&&!sm(r.by)||!bp(r.value)&&!wL(r.value)||!bp(r.revealCursor)&&!O7t(r.revealCursor))};e.metadata={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n					* 'to': A mandatory direction value.\n						```\n						'up', 'down'\n						```\n					* 'by': Unit to move. Default is computed based on 'to' value.\n						```\n						'line', 'wrappedLine', 'page', 'halfPage', 'editor'\n						```\n					* 'value': Number of units to move. Default is '1'.\n					* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n				",constraint:t,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage","editor"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},e.RawDirection={Up:"up",Right:"right",Down:"down",Left:"left"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage",Editor:"editor",Column:"column"};function n(i){let r;switch(i.to){case e.RawDirection.Up:r=1;break;case e.RawDirection.Right:r=2;break;case e.RawDirection.Down:r=3;break;case e.RawDirection.Left:r=4;break;default:return null}let o;switch(i.by){case e.RawUnit.Line:o=1;break;case e.RawUnit.WrappedLine:o=2;break;case e.RawUnit.Page:o=3;break;case e.RawUnit.HalfPage:o=4;break;case e.RawUnit.Editor:o=5;break;case e.RawUnit.Column:o=6;break;default:o=2}const s=Math.floor(i.value||1),a=!!i.revealCursor;return{direction:r,unit:o,value:s,revealCursor:a,select:!!i.select}}e.parse=n})(Hh||(Hh={})),(function(e){const t=function(n){if(!jd(n))return!1;const i=n;return!(!wL(i.lineNumber)&&!sm(i.lineNumber)||!bp(i.at)&&!sm(i.at))};e.metadata={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n					* 'lineNumber': A mandatory line number value.\n					* 'at': Logical position at which line has to be revealed.\n						```\n						'top', 'center', 'bottom'\n						```\n				",constraint:t,schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:["number","string"]},at:{type:"string",enum:["top","center","bottom"]}}}}]},e.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}})(G5||(G5={})),Vee=class{constructor(e){e.addImplementation(1e4,"code-editor",(t,n)=>{const i=t.get(Jo).getFocusedCodeEditor();return i&&i.hasTextFocus()?this._runEditorCommand(t,i,n):!1}),e.addImplementation(1e3,"generic-dom-input-textarea",(t,n)=>{const i=cf();return i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0?(this.runDOMCommand(i),!0):!1}),e.addImplementation(0,"generic-dom",(t,n)=>{const i=t.get(Jo).getActiveCodeEditor();return i?(i.focus(),this._runEditorCommand(t,i,n)):!1})}_runEditorCommand(e,t,n){const i=this.runEditorCommand(e,t,n);return i||!0}},(function(e){class t extends Ql{constructor(y){super(y),this._inSelectionMode=y.inSelectionMode}runCoreEditorCommand(y,b){if(!b.position)return;y.model.pushStackElement(),y.setCursorStates(b.source,3,[Nd.moveTo(y,y.getPrimaryCursorState(),this._inSelectionMode,b.position,b.viewPosition)])&&b.revealType!==2&&y.revealAllCursors(b.source,!0,!0)}}e.MoveTo=$n(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=$n(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class n extends Ql{runCoreEditorCommand(y,b){y.model.pushStackElement();const w=this._getColumnSelectResult(y,y.getPrimaryCursorState(),y.getCursorColumnSelectData(),b);w!==null&&(y.setCursorStates(b.source,3,w.viewStates.map(E=>Zo.fromViewState(E))),y.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:w.fromLineNumber,fromViewVisualColumn:w.fromVisualColumn,toViewLineNumber:w.toLineNumber,toViewVisualColumn:w.toVisualColumn}),w.reversed?y.revealTopMostCursor(b.source):y.revealBottomMostCursor(b.source))}}e.ColumnSelect=$n(new class extends n{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(v,y,b,w){if(typeof w.position>"u"||typeof w.viewPosition>"u"||typeof w.mouseColumn>"u")return null;const E=v.model.validatePosition(w.position),A=v.coordinatesConverter.validateViewPosition(new mt(w.viewPosition.lineNumber,w.viewPosition.column),E),D=w.doColumnSelect?b.fromViewLineNumber:A.lineNumber,T=w.doColumnSelect?b.fromViewVisualColumn:w.mouseColumn-1;return MB.columnSelect(v.cursorConfig,v,D,T,A.lineNumber,w.mouseColumn-1)}}),e.CursorColumnSelectLeft=$n(new class extends n{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(v,y,b,w){return MB.columnSelectLeft(v.cursorConfig,v,b)}}),e.CursorColumnSelectRight=$n(new class extends n{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(v,y,b,w){return MB.columnSelectRight(v.cursorConfig,v,b)}});class i extends n{constructor(y){super(y),this._isPaged=y.isPaged}_getColumnSelectResult(y,b,w,E){return MB.columnSelectUp(y.cursorConfig,y,w,this._isPaged)}}e.CursorColumnSelectUp=$n(new i({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=$n(new i({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:3595,linux:{primary:0}}}));class r extends n{constructor(y){super(y),this._isPaged=y.isPaged}_getColumnSelectResult(y,b,w,E){return MB.columnSelectDown(y.cursorConfig,y,w,this._isPaged)}}e.CursorColumnSelectDown=$n(new r({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=$n(new r({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:3596,linux:{primary:0}}}));class o extends Ql{constructor(){super({id:"cursorMove",precondition:void 0,metadata:Ade.metadata})}runCoreEditorCommand(y,b){const w=Ade.parse(b);w&&this._runCursorMove(y,b.source,w)}_runCursorMove(y,b,w){y.model.pushStackElement(),y.setCursorStates(b,3,o._move(y,y.getCursorStates(),w)),y.revealAllCursors(b,!0)}static _move(y,b,w){const E=w.select,A=w.value;switch(w.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return Nd.simpleMove(y,b,w.direction,E,A,w.unit);case 11:case 13:case 12:case 14:return Nd.viewportMove(y,b,w.direction,E,A);default:return null}}}e.CursorMoveImpl=o,e.CursorMove=$n(new o);class s extends Ql{constructor(y){super(y),this._staticArgs=y.args}runCoreEditorCommand(y,b){let w=this._staticArgs;this._staticArgs.value===-1&&(w={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:b.pageSize||y.cursorConfig.pageSize}),y.model.pushStackElement(),y.setCursorStates(b.source,3,Nd.simpleMove(y,y.getCursorStates(),w.direction,w.select,w.value,w.unit)),y.revealAllCursors(b.source,!0)}}e.CursorLeft=$n(new s({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=$n(new s({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:1039}})),e.CursorRight=$n(new s({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=$n(new s({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:1041}})),e.CursorUp=$n(new s({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=$n(new s({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=$n(new s({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:11}})),e.CursorPageUpSelect=$n(new s({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:1035}})),e.CursorDown=$n(new s({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=$n(new s({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=$n(new s({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:12}})),e.CursorPageDownSelect=$n(new s({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:1036}})),e.CreateCursor=$n(new class extends Ql{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(v,y){if(!y.position)return;let b;y.wholeLine?b=Nd.line(v,v.getPrimaryCursorState(),!1,y.position,y.viewPosition):b=Nd.moveTo(v,v.getPrimaryCursorState(),!1,y.position,y.viewPosition);const w=v.getCursorStates();if(w.length>1){const E=b.modelState?b.modelState.position:null,A=b.viewState?b.viewState.position:null;for(let D=0,T=w.length;D<T;D++){const M=w[D];if(!(E&&!M.modelState.selection.containsPosition(E))&&!(A&&!M.viewState.selection.containsPosition(A))){w.splice(D,1),v.model.pushStackElement(),v.setCursorStates(y.source,3,w);return}}}w.push(b),v.model.pushStackElement(),v.setCursorStates(y.source,3,w)}}),e.LastCursorMoveToSelect=$n(new class extends Ql{constructor(){super({id:"_lastCursorMoveToSelect",precondition:void 0})}runCoreEditorCommand(v,y){if(!y.position)return;const b=v.getLastAddedCursorIndex(),w=v.getCursorStates(),E=w.slice(0);E[b]=Nd.moveTo(v,w[b],!0,y.position,y.viewPosition),v.model.pushStackElement(),v.setCursorStates(y.source,3,E)}});class a extends Ql{constructor(y){super(y),this._inSelectionMode=y.inSelectionMode}runCoreEditorCommand(y,b){y.model.pushStackElement(),y.setCursorStates(b.source,3,Nd.moveToBeginningOfLine(y,y.getCursorStates(),this._inSelectionMode)),y.revealAllCursors(b.source,!0)}}e.CursorHome=$n(new a({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=$n(new a({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));class l extends Ql{constructor(y){super(y),this._inSelectionMode=y.inSelectionMode}runCoreEditorCommand(y,b){y.model.pushStackElement(),y.setCursorStates(b.source,3,this._exec(y.getCursorStates())),y.revealAllCursors(b.source,!0)}_exec(y){const b=[];for(let w=0,E=y.length;w<E;w++){const A=y[w],D=A.modelState.position.lineNumber;b[w]=Zo.fromModelState(A.modelState.move(this._inSelectionMode,D,1,0))}return b}}e.CursorLineStart=$n(new l({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:0,mac:{primary:287}}})),e.CursorLineStartSelect=$n(new l({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:0,mac:{primary:1311}}}));class c extends Ql{constructor(y){super(y),this._inSelectionMode=y.inSelectionMode}runCoreEditorCommand(y,b){y.model.pushStackElement(),y.setCursorStates(b.source,3,Nd.moveToEndOfLine(y,y.getCursorStates(),this._inSelectionMode,b.sticky||!1)),y.revealAllCursors(b.source,!0)}}e.CursorEnd=$n(new c({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:ms,kbExpr:Ge.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},metadata:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:R("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}})),e.CursorEndSelect=$n(new c({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:ms,kbExpr:Ge.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},metadata:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:R("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}}));class u extends Ql{constructor(y){super(y),this._inSelectionMode=y.inSelectionMode}runCoreEditorCommand(y,b){y.model.pushStackElement(),y.setCursorStates(b.source,3,this._exec(y,y.getCursorStates())),y.revealAllCursors(b.source,!0)}_exec(y,b){const w=[];for(let E=0,A=b.length;E<A;E++){const D=b[E],T=D.modelState.position.lineNumber,M=y.model.getLineMaxColumn(T);w[E]=Zo.fromModelState(D.modelState.move(this._inSelectionMode,T,M,0))}return w}}e.CursorLineEnd=$n(new u({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:0,mac:{primary:291}}})),e.CursorLineEndSelect=$n(new u({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:0,mac:{primary:1315}}}));class d extends Ql{constructor(y){super(y),this._inSelectionMode=y.inSelectionMode}runCoreEditorCommand(y,b){y.model.pushStackElement(),y.setCursorStates(b.source,3,Nd.moveToBeginningOfBuffer(y,y.getCursorStates(),this._inSelectionMode)),y.revealAllCursors(b.source,!0)}}e.CursorTop=$n(new d({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=$n(new d({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:3086,mac:{primary:3088}}}));class h extends Ql{constructor(y){super(y),this._inSelectionMode=y.inSelectionMode}runCoreEditorCommand(y,b){y.model.pushStackElement(),y.setCursorStates(b.source,3,Nd.moveToEndOfBuffer(y,y.getCursorStates(),this._inSelectionMode)),y.revealAllCursors(b.source,!0)}}e.CursorBottom=$n(new h({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=$n(new h({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:3085,mac:{primary:3090}}}));class f extends Ql{constructor(){super({id:"editorScroll",precondition:void 0,metadata:Hh.metadata})}determineScrollMethod(y){const b=[6],w=[1,2,3,4,5,6],E=[4,2],A=[1,3];return b.includes(y.unit)&&E.includes(y.direction)?this._runHorizontalEditorScroll.bind(this):w.includes(y.unit)&&A.includes(y.direction)?this._runVerticalEditorScroll.bind(this):null}runCoreEditorCommand(y,b){const w=Hh.parse(b);if(!w)return;const E=this.determineScrollMethod(w);E&&E(y,b.source,w)}_runVerticalEditorScroll(y,b,w){const E=this._computeDesiredScrollTop(y,w);if(w.revealCursor){const A=y.getCompletelyVisibleViewRangeAtScrollTop(E);y.setCursorStates(b,3,[Nd.findPositionInViewportIfOutside(y,y.getPrimaryCursorState(),A,w.select)])}y.viewLayout.setScrollPosition({scrollTop:E},0)}_computeDesiredScrollTop(y,b){if(b.unit===1){const A=y.viewLayout.getFutureViewport(),D=y.getCompletelyVisibleViewRangeAtScrollTop(A.top),T=y.coordinatesConverter.convertViewRangeToModelRange(D);let M;b.direction===1?M=Math.max(1,T.startLineNumber-b.value):M=Math.min(y.model.getLineCount(),T.startLineNumber+b.value);const P=y.coordinatesConverter.convertModelPositionToViewPosition(new mt(M,1));return y.viewLayout.getVerticalOffsetForLineNumber(P.lineNumber)}if(b.unit===5){let A=0;return b.direction===3&&(A=y.model.getLineCount()-y.cursorConfig.pageSize),y.viewLayout.getVerticalOffsetForLineNumber(A)}let w;b.unit===3?w=y.cursorConfig.pageSize*b.value:b.unit===4?w=Math.round(y.cursorConfig.pageSize/2)*b.value:w=b.value;const E=(b.direction===1?-1:1)*w;return y.viewLayout.getCurrentScrollTop()+E*y.cursorConfig.lineHeight}_runHorizontalEditorScroll(y,b,w){const E=this._computeDesiredScrollLeft(y,w);y.viewLayout.setScrollPosition({scrollLeft:E},0)}_computeDesiredScrollLeft(y,b){const w=(b.direction===4?-1:1)*b.value;return y.viewLayout.getCurrentScrollLeft()+w*y.cursorConfig.typicalHalfwidthCharacterWidth}}e.EditorScrollImpl=f,e.EditorScroll=$n(new f),e.ScrollLineUp=$n(new class extends Ql{constructor(){super({id:"scrollLineUp",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:2064,mac:{primary:267}}})}runCoreEditorCommand(v,y){e.EditorScroll.runCoreEditorCommand(v,{to:Hh.RawDirection.Up,by:Hh.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:y.source})}}),e.ScrollPageUp=$n(new class extends Ql{constructor(){super({id:"scrollPageUp",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}runCoreEditorCommand(v,y){e.EditorScroll.runCoreEditorCommand(v,{to:Hh.RawDirection.Up,by:Hh.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:y.source})}}),e.ScrollEditorTop=$n(new class extends Ql{constructor(){super({id:"scrollEditorTop",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus}})}runCoreEditorCommand(v,y){e.EditorScroll.runCoreEditorCommand(v,{to:Hh.RawDirection.Up,by:Hh.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:y.source})}}),e.ScrollLineDown=$n(new class extends Ql{constructor(){super({id:"scrollLineDown",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:2066,mac:{primary:268}}})}runCoreEditorCommand(v,y){e.EditorScroll.runCoreEditorCommand(v,{to:Hh.RawDirection.Down,by:Hh.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:y.source})}}),e.ScrollPageDown=$n(new class extends Ql{constructor(){super({id:"scrollPageDown",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}runCoreEditorCommand(v,y){e.EditorScroll.runCoreEditorCommand(v,{to:Hh.RawDirection.Down,by:Hh.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:y.source})}}),e.ScrollEditorBottom=$n(new class extends Ql{constructor(){super({id:"scrollEditorBottom",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus}})}runCoreEditorCommand(v,y){e.EditorScroll.runCoreEditorCommand(v,{to:Hh.RawDirection.Down,by:Hh.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:y.source})}}),e.ScrollLeft=$n(new class extends Ql{constructor(){super({id:"scrollLeft",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus}})}runCoreEditorCommand(v,y){e.EditorScroll.runCoreEditorCommand(v,{to:Hh.RawDirection.Left,by:Hh.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:y.source})}}),e.ScrollRight=$n(new class extends Ql{constructor(){super({id:"scrollRight",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus}})}runCoreEditorCommand(v,y){e.EditorScroll.runCoreEditorCommand(v,{to:Hh.RawDirection.Right,by:Hh.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:y.source})}});class p extends Ql{constructor(y){super(y),this._inSelectionMode=y.inSelectionMode}runCoreEditorCommand(y,b){b.position&&(y.model.pushStackElement(),y.setCursorStates(b.source,3,[Nd.word(y,y.getPrimaryCursorState(),this._inSelectionMode,b.position)]),b.revealType!==2&&y.revealAllCursors(b.source,!0,!0))}}e.WordSelect=$n(new p({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=$n(new p({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=$n(new class extends Ql{constructor(){super({id:"lastCursorWordSelect",precondition:void 0})}runCoreEditorCommand(v,y){if(!y.position)return;const b=v.getLastAddedCursorIndex(),w=v.getCursorStates(),E=w.slice(0),A=w[b];E[b]=Nd.word(v,A,A.modelState.hasSelection(),y.position),v.model.pushStackElement(),v.setCursorStates(y.source,3,E)}});class g extends Ql{constructor(y){super(y),this._inSelectionMode=y.inSelectionMode}runCoreEditorCommand(y,b){b.position&&(y.model.pushStackElement(),y.setCursorStates(b.source,3,[Nd.line(y,y.getPrimaryCursorState(),this._inSelectionMode,b.position,b.viewPosition)]),b.revealType!==2&&y.revealAllCursors(b.source,!1,!0))}}e.LineSelect=$n(new g({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=$n(new g({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));class m extends Ql{constructor(y){super(y),this._inSelectionMode=y.inSelectionMode}runCoreEditorCommand(y,b){if(!b.position)return;const w=y.getLastAddedCursorIndex(),E=y.getCursorStates(),A=E.slice(0);A[w]=Nd.line(y,E[w],this._inSelectionMode,b.position,b.viewPosition),y.model.pushStackElement(),y.setCursorStates(b.source,3,A)}}e.LastCursorLineSelect=$n(new m({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=$n(new m({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.CancelSelection=$n(new class extends Ql{constructor(){super({id:"cancelSelection",precondition:Ge.hasNonEmptySelection,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(v,y){v.model.pushStackElement(),v.setCursorStates(y.source,3,[Nd.cancelSelection(v,v.getPrimaryCursorState())]),v.revealAllCursors(y.source,!0)}}),e.RemoveSecondaryCursors=$n(new class extends Ql{constructor(){super({id:"removeSecondaryCursors",precondition:Ge.hasMultipleSelections,kbOpts:{weight:ms+1,kbExpr:Ge.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(v,y){v.model.pushStackElement(),v.setCursorStates(y.source,3,[v.getPrimaryCursorState()]),v.revealAllCursors(y.source,!0),eE(R("removedCursor","Removed secondary cursors"))}}),e.RevealLine=$n(new class extends Ql{constructor(){super({id:"revealLine",precondition:void 0,metadata:G5.metadata})}runCoreEditorCommand(v,y){const b=y,w=b.lineNumber||0;let E=typeof w=="number"?w+1:parseInt(w)+1;E<1&&(E=1);const A=v.model.getLineCount();E>A&&(E=A);const D=new Re(E,1,E,v.model.getLineMaxColumn(E));let T=0;if(b.at)switch(b.at){case G5.RawAtArgument.Top:T=3;break;case G5.RawAtArgument.Center:T=1;break;case G5.RawAtArgument.Bottom:T=4;break}const M=v.coordinatesConverter.convertModelRangeToViewRange(D);v.revealRange(y.source,!1,M,T,0)}}),e.SelectAll=new class extends Vee{constructor(){super(YWt)}runDOMCommand(v){B0&&(v.focus(),v.select()),v.ownerDocument.execCommand("selectAll")}runEditorCommand(v,y,b){const w=y._getViewModel();w&&this.runCoreEditorCommand(w,b)}runCoreEditorCommand(v,y){v.model.pushStackElement(),v.setCursorStates("keyboard",3,[Nd.selectAll(v,v.getPrimaryCursorState())])}},e.SetSelection=$n(new class extends Ql{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(v,y){y.selection&&(v.model.pushStackElement(),v.setCursorStates(y.source,3,[Zo.fromModelSelection(y.selection)]))}})})(Pd||(Pd={})),eZt=nn.and(Ge.textInputFocus,Ge.columnSelection),q5(Pd.CursorColumnSelectLeft.id,1039),q5(Pd.CursorColumnSelectRight.id,1041),q5(Pd.CursorColumnSelectUp.id,1040),q5(Pd.CursorColumnSelectPageUp.id,1035),q5(Pd.CursorColumnSelectDown.id,1042),q5(Pd.CursorColumnSelectPageDown.id,1036),(function(e){class t extends Hd{runEditorCommand(i,r,o){const s=r._getViewModel();s&&this.runCoreEditingCommand(r,s,o||{})}}e.CoreEditingCommand=t,e.LineBreakInsert=$n(new class extends t{constructor(){super({id:"lineBreakInsert",precondition:Ge.writable,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(n,i,r){n.pushUndoStop(),n.executeCommands(this.id,fG.lineBreakInsert(i.cursorConfig,i.model,i.getCursorStates().map(o=>o.modelState.selection)))}}),e.Outdent=$n(new class extends t{constructor(){super({id:"outdent",precondition:Ge.writable,kbOpts:{weight:ms,kbExpr:nn.and(Ge.editorTextFocus,Ge.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(n,i,r){n.pushUndoStop(),n.executeCommands(this.id,tD.outdent(i.cursorConfig,i.model,i.getCursorStates().map(o=>o.modelState.selection))),n.pushUndoStop()}}),e.Tab=$n(new class extends t{constructor(){super({id:"tab",precondition:Ge.writable,kbOpts:{weight:ms,kbExpr:nn.and(Ge.editorTextFocus,Ge.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(n,i,r){n.pushUndoStop(),n.executeCommands(this.id,tD.tab(i.cursorConfig,i.model,i.getCursorStates().map(o=>o.modelState.selection))),n.pushUndoStop()}}),e.DeleteLeft=$n(new class extends t{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(n,i,r){const[o,s]=dG.deleteLeft(i.getPrevEditOperationType(),i.cursorConfig,i.model,i.getCursorStates().map(a=>a.modelState.selection),i.getCursorAutoClosedCharacters());o&&n.pushUndoStop(),n.executeCommands(this.id,s),i.setPrevEditOperationType(2)}}),e.DeleteRight=$n(new class extends t{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:ms,kbExpr:Ge.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(n,i,r){const[o,s]=dG.deleteRight(i.getPrevEditOperationType(),i.cursorConfig,i.model,i.getCursorStates().map(a=>a.modelState.selection));o&&n.pushUndoStop(),n.executeCommands(this.id,s),i.setPrevEditOperationType(3)}}),e.Undo=new class extends Vee{constructor(){super(I5e)}runDOMCommand(n){n.ownerDocument.execCommand("undo")}runEditorCommand(n,i,r){if(!(!i.hasModel()||i.getOption(92)===!0))return i.getModel().undo()}},e.Redo=new class extends Vee{constructor(){super(L5e)}runDOMCommand(n){n.ownerDocument.execCommand("redo")}runEditorCommand(n,i,r){if(!(!i.hasModel()||i.getOption(92)===!0))return i.getModel().redo()}}})(e8||(e8={})),$Be=class extends WH{constructor(e,t,n){super({id:e,precondition:void 0,metadata:n}),this._handlerId=t}runCommand(e,t){const n=e.get(Jo).getFocusedCodeEditor();n&&n.trigger("keyboard",this._handlerId,t)}},YP("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),YP("replacePreviousChar"),YP("compositionType"),YP("compositionStart"),YP("compositionEnd"),YP("paste"),YP("cut")}}),tZt,C$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/view/viewController.js"(){Oge(),Hi(),Xr(),tZt=class{constructor(e,t,n,i){this.configuration=e,this.viewModel=t,this.userInputEvents=n,this.commandDelegate=i}paste(e,t,n,i){this.commandDelegate.paste(e,t,n,i)}type(e){this.commandDelegate.type(e)}compositionType(e,t,n,i){this.commandDelegate.compositionType(e,t,n,i)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){Pd.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column<t?new mt(e.lineNumber,t):e}_hasMulticursorModifier(e){switch(this.configuration.options.get(78)){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey;default:return!1}}_hasNonMulticursorModifier(e){switch(this.configuration.options.get(78)){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey;default:return!1}}dispatchMouse(e){const t=this.configuration.options,n=Wf&&t.get(108),i=t.get(22);e.middleButton&&!n?this._columnSelect(e.position,e.mouseColumn,e.inSelectionMode):e.startedOnLineNumbers?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelect(e.position,e.revealType):this._createCursor(e.position,!0):e.inSelectionMode?this._lineSelectDrag(e.position,e.revealType):this._lineSelect(e.position,e.revealType):e.mouseDownCount>=4?this._selectAll():e.mouseDownCount===3?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position,e.revealType):this._lastCursorLineSelect(e.position,e.revealType):e.inSelectionMode?this._lineSelectDrag(e.position,e.revealType):this._lineSelect(e.position,e.revealType):e.mouseDownCount===2?e.onInjectedText||(this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position,e.revealType):e.inSelectionMode?this._wordSelectDrag(e.position,e.revealType):this._wordSelect(e.position,e.revealType)):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position,e.revealType):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey?this._columnSelect(e.position,e.mouseColumn,!0):i?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position,e.revealType):this.moveTo(e.position,e.revealType)}_usualArgs(e,t){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,revealType:t}}moveTo(e,t){Pd.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_moveToSelect(e,t){Pd.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_columnSelect(e,t,n){e=this._validateViewColumn(e),Pd.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:n})}_createCursor(e,t){e=this._validateViewColumn(e),Pd.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e,t){Pd.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelect(e,t){Pd.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelectDrag(e,t){Pd.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorWordSelect(e,t){Pd.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelect(e,t){Pd.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelectDrag(e,t){Pd.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelect(e,t){Pd.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelectDrag(e,t){Pd.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_selectAll(){Pd.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}}}),qBe,NUe,fpt,PUe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/view/viewLayer.js"(){var e;_d(),pT(),Vi(),TN(),qBe=class{constructor(t){this._lineFactory=t,this._set(1,[])}flush(){this._set(1,[])}_set(t,n){this._lines=n,this._rendLineNumberStart=t}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(t){const n=t-this._rendLineNumberStart;if(n<0||n>=this._lines.length)throw new ys("Illegal value for lineNumber");return this._lines[n]}onLinesDeleted(t,n){if(this.getCount()===0)return null;const i=this.getStartLineNumber(),r=this.getEndLineNumber();if(n<i){const l=n-t+1;return this._rendLineNumberStart-=l,null}if(t>r)return null;let o=0,s=0;for(let l=i;l<=r;l++){const c=l-this._rendLineNumberStart;t<=l&&l<=n&&(s===0?(o=c,s=1):s++)}if(t<i){let l=0;n<i?l=n-t+1:l=i-t,this._rendLineNumberStart-=l}return this._lines.splice(o,s)}onLinesChanged(t,n){const i=t+n-1;if(this.getCount()===0)return!1;const r=this.getStartLineNumber(),o=this.getEndLineNumber();let s=!1;for(let a=t;a<=i;a++)a>=r&&a<=o&&(this._lines[a-this._rendLineNumberStart].onContentChanged(),s=!0);return s}onLinesInserted(t,n){if(this.getCount()===0)return null;const i=n-t+1,r=this.getStartLineNumber(),o=this.getEndLineNumber();if(t<=r)return this._rendLineNumberStart+=i,null;if(t>o)return null;if(i+t>o)return this._lines.splice(t-this._rendLineNumberStart,o-t+1);const s=[];for(let d=0;d<i;d++)s[d]=this._lineFactory.createLine();const a=t-this._rendLineNumberStart,l=this._lines.slice(0,a),c=this._lines.slice(a,this._lines.length-i),u=this._lines.slice(this._lines.length-i,this._lines.length);return this._lines=l.concat(s).concat(c),u}onTokensChanged(t){if(this.getCount()===0)return!1;const n=this.getStartLineNumber(),i=this.getEndLineNumber();let r=!1;for(let o=0,s=t.length;o<s;o++){const a=t[o];if(a.toLineNumber<n||a.fromLineNumber>i)continue;const l=Math.max(n,a.fromLineNumber),c=Math.min(i,a.toLineNumber);for(let u=l;u<=c;u++){const d=u-this._rendLineNumberStart;this._lines[d].onTokensChanged(),r=!0}}return r}},NUe=class{constructor(t){this._lineFactory=t,this.domNode=this._createDomNode(),this._linesCollection=new qBe(this._lineFactory)}_createDomNode(){const t=Ds(document.createElement("div"));return t.setClassName("view-layer"),t.setPosition("absolute"),t.domNode.setAttribute("role","presentation"),t.domNode.setAttribute("aria-hidden","true"),t}onConfigurationChanged(t){return!!t.hasChanged(146)}onFlushed(t){return this._linesCollection.flush(),!0}onLinesChanged(t){return this._linesCollection.onLinesChanged(t.fromLineNumber,t.count)}onLinesDeleted(t){const n=this._linesCollection.onLinesDeleted(t.fromLineNumber,t.toLineNumber);if(n)for(let i=0,r=n.length;i<r;i++)n[i].getDomNode()?.remove();return!0}onLinesInserted(t){const n=this._linesCollection.onLinesInserted(t.fromLineNumber,t.toLineNumber);if(n)for(let i=0,r=n.length;i<r;i++)n[i].getDomNode()?.remove();return!0}onScrollChanged(t){return t.scrollTopChanged}onTokensChanged(t){return this._linesCollection.onTokensChanged(t.ranges)}onZonesChanged(t){return!0}getStartLineNumber(){return this._linesCollection.getStartLineNumber()}getEndLineNumber(){return this._linesCollection.getEndLineNumber()}getVisibleLine(t){return this._linesCollection.getLine(t)}renderLines(t){const n=this._linesCollection._get(),i=new fpt(this.domNode.domNode,this._lineFactory,t),r={rendLineNumberStart:n.rendLineNumberStart,lines:n.lines,linesLength:n.lines.length},o=i.render(r,t.startLineNumber,t.endLineNumber,t.relativeVerticalOffset);this._linesCollection._set(o.rendLineNumberStart,o.lines)}},fpt=(e=class{constructor(n,i,r){this._domNode=n,this._lineFactory=i,this._viewportData=r}render(n,i,r,o){const s={rendLineNumberStart:n.rendLineNumberStart,lines:n.lines.slice(0),linesLength:n.linesLength};if(s.rendLineNumberStart+s.linesLength-1<i||r<s.rendLineNumberStart){s.rendLineNumberStart=i,s.linesLength=r-i+1,s.lines=[];for(let a=i;a<=r;a++)s.lines[a-i]=this._lineFactory.createLine();return this._finishRendering(s,!0,o),s}if(this._renderUntouchedLines(s,Math.max(i-s.rendLineNumberStart,0),Math.min(r-s.rendLineNumberStart,s.linesLength-1),o,i),s.rendLineNumberStart>i){const a=i,l=Math.min(r,s.rendLineNumberStart-1);a<=l&&(this._insertLinesBefore(s,a,l,o,i),s.linesLength+=l-a+1)}else if(s.rendLineNumberStart<i){const a=Math.min(s.linesLength,i-s.rendLineNumberStart);a>0&&(this._removeLinesBefore(s,a),s.linesLength-=a)}if(s.rendLineNumberStart=i,s.rendLineNumberStart+s.linesLength-1<r){const a=s.rendLineNumberStart+s.linesLength,l=r;a<=l&&(this._insertLinesAfter(s,a,l,o,i),s.linesLength+=l-a+1)}else if(s.rendLineNumberStart+s.linesLength-1>r){const a=Math.max(0,r-s.rendLineNumberStart+1),c=s.linesLength-1-a+1;c>0&&(this._removeLinesAfter(s,c),s.linesLength-=c)}return this._finishRendering(s,!1,o),s}_renderUntouchedLines(n,i,r,o,s){const a=n.rendLineNumberStart,l=n.lines;for(let c=i;c<=r;c++){const u=a+c;l[c].layoutLine(u,o[u-s],this._viewportData.lineHeight)}}_insertLinesBefore(n,i,r,o,s){const a=[];let l=0;for(let c=i;c<=r;c++)a[l++]=this._lineFactory.createLine();n.lines=a.concat(n.lines)}_removeLinesBefore(n,i){for(let r=0;r<i;r++)n.lines[r].getDomNode()?.remove();n.lines.splice(0,i)}_insertLinesAfter(n,i,r,o,s){const a=[];let l=0;for(let c=i;c<=r;c++)a[l++]=this._lineFactory.createLine();n.lines=n.lines.concat(a)}_removeLinesAfter(n,i){const r=n.linesLength-i;for(let o=0;o<i;o++)n.lines[r+o].getDomNode()?.remove();n.lines.splice(r,i)}_finishRenderingNewLines(n,i,r,o){e._ttPolicy&&(r=e._ttPolicy.createHTML(r));const s=this._domNode.lastChild;i||!s?this._domNode.innerHTML=r:s.insertAdjacentHTML("afterend",r);let a=this._domNode.lastChild;for(let l=n.linesLength-1;l>=0;l--){const c=n.lines[l];o[l]&&(c.setDomNode(a),a=a.previousSibling)}}_finishRenderingInvalidLines(n,i,r){const o=document.createElement("div");e._ttPolicy&&(i=e._ttPolicy.createHTML(i)),o.innerHTML=i;for(let s=0;s<n.linesLength;s++){const a=n.lines[s];if(r[s]){const l=o.firstChild,c=a.getDomNode();c.parentNode.replaceChild(l,c),a.setDomNode(l)}}}_finishRendering(n,i,r){const o=e._sb,s=n.linesLength,a=n.lines,l=n.rendLineNumberStart,c=[];{o.reset();let u=!1;for(let d=0;d<s;d++){const h=a[d];c[d]=!1,!(h.getDomNode()||!h.renderLine(d+l,r[d],this._viewportData.lineHeight,this._viewportData,o))&&(c[d]=!0,u=!0)}u&&this._finishRenderingNewLines(n,i,o.build(),c)}{o.reset();let u=!1;const d=[];for(let h=0;h<s;h++){const f=a[h];d[h]=!1,!(c[h]||!f.renderLine(h+l,r[h],this._viewportData.lineHeight,this._viewportData,o))&&(d[h]=!0,u=!0)}u&&this._finishRenderingInvalidLines(n,o.build(),d)}}},e._ttPolicy=fT("editorViewLayer",{createHTML:n=>n}),e._sb=new Z2(1e5),e)}}),wSe,ppt,nZt,iZt,S$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/view/viewOverlays.js"(){_d(),xb(),PUe(),Cg(),wSe=class extends ym{constructor(e){super(e),this._dynamicOverlays=[],this._isFocused=!1,this._visibleLines=new NUe({createLine:()=>new ppt(this._dynamicOverlays)}),this.domNode=this._visibleLines.domNode;const n=this._context.configuration.options.get(50);yh(this.domNode,n),this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;e<t;e++)if(this._dynamicOverlays[e].shouldRender())return!0;return!1}dispose(){super.dispose();for(let e=0,t=this._dynamicOverlays.length;e<t;e++)this._dynamicOverlays[e].dispose();this._dynamicOverlays=[]}getDomNode(){return this.domNode}addDynamicOverlay(e){this._dynamicOverlays.push(e)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e);const n=this._context.configuration.options.get(50);return yh(this.domNode,n),!0}onFlushed(e){return this._visibleLines.onFlushed(e)}onFocusChanged(e){return this._isFocused=e.isFocused,!0}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onScrollChanged(e){return this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._visibleLines.onZonesChanged(e)}prepareRender(e){const t=this._dynamicOverlays.filter(n=>n.shouldRender());for(let n=0,i=t.length;n<i;n++){const r=t[n];r.prepareRender(e),r.onDidRender()}}render(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)}_viewOverlaysRender(e){this._visibleLines.renderLines(e.viewportData)}},ppt=class{constructor(e){this._dynamicOverlays=e,this._domNode=null,this._renderedContent=null}getDomNode(){return this._domNode?this._domNode.domNode:null}setDomNode(e){this._domNode=Ds(e)}onContentChanged(){}onTokensChanged(){}renderLine(e,t,n,i,r){let o="";for(let s=0,a=this._dynamicOverlays.length;s<a;s++){const l=this._dynamicOverlays[s];o+=l.render(i.startLineNumber,e)}return this._renderedContent===o?!1:(this._renderedContent=o,r.appendString('<div style="top:'),r.appendString(String(t)),r.appendString("px;height:"),r.appendString(String(n)),r.appendString('px;">'),r.appendString(o),r.appendString("</div>"),!0)}layoutLine(e,t,n){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(n))}},nZt=class extends wSe{constructor(e){super(e);const n=this._context.configuration.options.get(146);this._contentWidth=n.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const n=this._context.configuration.options.get(146);return this._contentWidth=n.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}},iZt=class extends wSe{constructor(e){super(e);const t=this._context.configuration.options,n=t.get(146);this._contentLeft=n.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),yh(this.domNode,t.get(50))}onConfigurationChanged(e){const t=this._context.configuration.options;yh(this.domNode,t.get(50));const n=t.get(146);return this._contentLeft=n.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}}}),MUe,rZt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/view/viewUserInputEvents.js"(){Hi(),MUe=class oZt{constructor(t){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=t}emitKeyDown(t){this.onKeyDown?.(t)}emitKeyUp(t){this.onKeyUp?.(t)}emitContextMenu(t){this.onContextMenu?.(this._convertViewToModelMouseEvent(t))}emitMouseMove(t){this.onMouseMove?.(this._convertViewToModelMouseEvent(t))}emitMouseLeave(t){this.onMouseLeave?.(this._convertViewToModelMouseEvent(t))}emitMouseDown(t){this.onMouseDown?.(this._convertViewToModelMouseEvent(t))}emitMouseUp(t){this.onMouseUp?.(this._convertViewToModelMouseEvent(t))}emitMouseDrag(t){this.onMouseDrag?.(this._convertViewToModelMouseEvent(t))}emitMouseDrop(t){this.onMouseDrop?.(this._convertViewToModelMouseEvent(t))}emitMouseDropCanceled(){this.onMouseDropCanceled?.()}emitMouseWheel(t){this.onMouseWheel?.(t)}_convertViewToModelMouseEvent(t){return t.target?{event:t.event,target:this._convertViewToModelMouseTarget(t.target)}:t}_convertViewToModelMouseTarget(t){return oZt.convertViewToModelMouseTarget(t,this._coordinatesConverter)}static convertViewToModelMouseTarget(t,n){const i={...t};return i.position&&(i.position=n.convertViewPositionToModelPosition(i.position)),i.range&&(i.range=n.convertViewRangeToModelRange(i.range)),(i.type===5||i.type===8)&&(i.detail=this.convertViewToModelViewZoneData(i.detail,n)),i}static convertViewToModelViewZoneData(t,n){return{viewZoneId:t.viewZoneId,positionBefore:t.positionBefore?n.convertViewPositionToModelPosition(t.positionBefore):t.positionBefore,positionAfter:t.positionAfter?n.convertViewPositionToModelPosition(t.positionAfter):t.positionAfter,position:n.convertViewPositionToModelPosition(t.position),afterLineNumber:n.convertViewPositionToModelPosition(new mt(t.afterLineNumber,1)).lineNumber}}}}}),x$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/blockDecorations/blockDecorations.css"(){}}),sZt,E$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/blockDecorations/blockDecorations.js"(){_d(),x$n(),Cg(),sZt=class extends ym{constructor(e){super(e),this.blocks=[],this.contentWidth=-1,this.contentLeft=0,this.domNode=Ds(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("blockDecorations-container"),this.update()}update(){let e=!1;const n=this._context.configuration.options.get(146),i=n.contentWidth-n.verticalScrollbarWidth;this.contentWidth!==i&&(this.contentWidth=i,e=!0);const r=n.contentLeft;return this.contentLeft!==r&&(this.contentLeft=r,e=!0),e}dispose(){super.dispose()}onConfigurationChanged(e){return this.update()}onScrollChanged(e){return e.scrollTopChanged||e.scrollLeftChanged}onDecorationsChanged(e){return!0}onZonesChanged(e){return!0}prepareRender(e){}render(e){let t=0;const n=e.getDecorationsInViewport();for(const i of n){if(!i.options.blockClassName)continue;let r=this.blocks[t];r||(r=this.blocks[t]=Ds(document.createElement("div")),this.domNode.appendChild(r));let o,s;i.options.blockIsAfterEnd?(o=e.getVerticalOffsetAfterLineNumber(i.range.endLineNumber,!1),s=e.getVerticalOffsetAfterLineNumber(i.range.endLineNumber,!0)):(o=e.getVerticalOffsetForLineNumber(i.range.startLineNumber,!0),s=i.range.isEmpty()&&!i.options.blockDoesNotCollapse?e.getVerticalOffsetForLineNumber(i.range.startLineNumber,!1):e.getVerticalOffsetAfterLineNumber(i.range.endLineNumber,!0));const[a,l,c,u]=i.options.blockPadding??[0,0,0,0];r.setClassName("blockDecorations-block "+i.options.blockClassName),r.setLeft(this.contentLeft-u),r.setWidth(this.contentWidth+u+l),r.setTop(o-e.scrollTop-a),r.setHeight(s-o+a+c),t++}for(let i=t;i<this.blocks.length;i++)this.blocks[i].domNode.remove();this.blocks.length=t}}}});function CSe(e,t,...n){try{return e.call(t,...n)}catch{return null}}var aZt,gpt,K5,Y5,SSe,A$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js"(){Fn(),_d(),Cg(),aZt=class extends ym{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=Ds(document.createElement("div")),J_.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=Ds(document.createElement("div")),J_.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){const t=Object.keys(this._widgets);for(const n of t)this._widgets[n].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){return this._updateAnchorsViewPositions(),!0}onLinesChanged(e){return this._updateAnchorsViewPositions(),!0}onLinesDeleted(e){return this._updateAnchorsViewPositions(),!0}onLinesInserted(e){return this._updateAnchorsViewPositions(),!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}_updateAnchorsViewPositions(){const e=Object.keys(this._widgets);for(const t of e)this._widgets[t].updateAnchorViewPosition()}addWidget(e){const t=new gpt(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}setWidgetPosition(e,t,n,i,r){this._widgets[e.getId()].setPosition(t,n,i,r),this.setShouldRender()}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const n=this._widgets[t];delete this._widgets[t];const i=n.domNode.domNode;i.remove(),i.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return this._widgets.hasOwnProperty(e)?this._widgets[e].suppressMouseDown:!1}onBeforeRender(e){const t=Object.keys(this._widgets);for(const n of t)this._widgets[n].onBeforeRender(e)}prepareRender(e){const t=Object.keys(this._widgets);for(const n of t)this._widgets[n].prepareRender(e)}render(e){const t=Object.keys(this._widgets);for(const n of t)this._widgets[n].render(e)}},gpt=class{constructor(e,t,n){this._primaryAnchor=new K5(null,null),this._secondaryAnchor=new K5(null,null),this._context=e,this._viewDomNode=t,this._actual=n,this.domNode=Ds(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const i=this._context.configuration.options,r=i.get(146);this._fixedOverflowWidgets=i.get(42),this._contentWidth=r.contentWidth,this._contentLeft=r.contentLeft,this._lineHeight=i.get(67),this._affinity=null,this._preference=[],this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setDisplay("none"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(e){const t=this._context.configuration.options;if(this._lineHeight=t.get(67),e.hasChanged(146)){const n=t.get(146);this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,this._maxWidth=this._getMaxWidth()}}updateAnchorViewPosition(){this._setPosition(this._affinity,this._primaryAnchor.modelPosition,this._secondaryAnchor.modelPosition)}_setPosition(e,t,n){this._affinity=e,this._primaryAnchor=i(t,this._context.viewModel,this._affinity),this._secondaryAnchor=i(n,this._context.viewModel,this._affinity);function i(r,o,s){if(!r)return new K5(null,null);const a=o.model.validatePosition(r);if(o.coordinatesConverter.modelPositionIsVisible(a)){const l=o.coordinatesConverter.convertModelPositionToViewPosition(a,s??void 0);return new K5(r,l)}return new K5(r,null)}}_getMaxWidth(){const e=this.domNode.domNode.ownerDocument,t=e.defaultView;return this.allowEditorOverflow?t?.innerWidth||e.documentElement.offsetWidth||e.body.offsetWidth:this._contentWidth}setPosition(e,t,n,i){this._setPosition(i,e,t),this._preference=n,this._primaryAnchor.viewPosition&&this._preference&&this._preference.length>0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(e,t,n,i){const r=e.top,o=r,s=e.top+e.height,a=i.viewportHeight-s,l=r-n,c=o>=n,u=s,d=a>=n;let h=e.left;return h+t>i.scrollLeft+i.viewportWidth&&(h=i.scrollLeft+i.viewportWidth-t),h<i.scrollLeft&&(h=i.scrollLeft),{fitsAbove:c,aboveTop:l,fitsBelow:d,belowTop:u,left:h}}_layoutHorizontalSegmentInPage(e,t,n,i){const s=Math.max(15,t.left-i),a=Math.min(t.left+t.width+i,e.width-15),c=this._viewDomNode.domNode.ownerDocument.defaultView;let u=t.left+n-(c?.scrollX??0);if(u+i>a){const d=u-(a-i);u-=d,n-=d}if(u<s){const d=u-s;u-=d,n-=d}return[n,u]}_layoutBoxInPage(e,t,n,i){const r=e.top-n,o=e.top+e.height,s=_c(this._viewDomNode.domNode),a=this._viewDomNode.domNode.ownerDocument,l=a.defaultView,c=s.top+r-(l?.scrollY??0),u=s.top+o-(l?.scrollY??0),d=LL(a.body),[h,f]=this._layoutHorizontalSegmentInPage(d,s,e.left-i.scrollLeft+this._contentLeft,t),p=22,g=22,m=c>=p,v=u+n<=d.height-g;return this._fixedOverflowWidgets?{fitsAbove:m,aboveTop:Math.max(c,p),fitsBelow:v,belowTop:u,left:f}:{fitsAbove:m,aboveTop:r,fitsBelow:v,belowTop:o,left:h}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new Y5(e.top,e.left+this._contentLeft)}_getAnchorsCoordinates(e){const t=r(this._primaryAnchor.viewPosition,this._affinity,this._lineHeight),n=this._secondaryAnchor.viewPosition?.lineNumber===this._primaryAnchor.viewPosition?.lineNumber?this._secondaryAnchor.viewPosition:null,i=r(n,this._affinity,this._lineHeight);return{primary:t,secondary:i};function r(o,s,a){if(!o)return null;const l=e.visibleRangeForPosition(o);if(!l)return null;const c=o.column===1&&s===3?0:l.left,u=e.getVerticalOffsetForLineNumber(o.lineNumber)-e.scrollTop;return new SSe(u,c,a)}}_reduceAnchorCoordinates(e,t,n){if(!t)return e;const i=this._context.configuration.options.get(50);let r=t.left;return r<e.left?r=Math.max(r,e.left-n+i.typicalFullwidthCharacterWidth):r=Math.min(r,e.left+n-i.typicalFullwidthCharacterWidth),new SSe(e.top,r,e.height)}_prepareRenderWidget(e){if(!this._preference||this._preference.length===0)return null;const{primary:t,secondary:n}=this._getAnchorsCoordinates(e);if(!t)return{kind:"offViewport",preserveFocus:this.domNode.domNode.contains(this.domNode.domNode.ownerDocument.activeElement)};if(this._cachedDomNodeOffsetWidth===-1||this._cachedDomNodeOffsetHeight===-1){let o=null;if(typeof this._actual.beforeRender=="function"&&(o=CSe(this._actual.beforeRender,this._actual)),o)this._cachedDomNodeOffsetWidth=o.width,this._cachedDomNodeOffsetHeight=o.height;else{const a=this.domNode.domNode.getBoundingClientRect();this._cachedDomNodeOffsetWidth=Math.round(a.width),this._cachedDomNodeOffsetHeight=Math.round(a.height)}}const i=this._reduceAnchorCoordinates(t,n,this._cachedDomNodeOffsetWidth);let r;this.allowEditorOverflow?r=this._layoutBoxInPage(i,this._cachedDomNodeOffsetWidth,this._cachedDomNodeOffsetHeight,e):r=this._layoutBoxInViewport(i,this._cachedDomNodeOffsetWidth,this._cachedDomNodeOffsetHeight,e);for(let o=1;o<=2;o++)for(const s of this._preference)if(s===1){if(!r)return null;if(o===2||r.fitsAbove)return{kind:"inViewport",coordinate:new Y5(r.aboveTop,r.left),position:1}}else if(s===2){if(!r)return null;if(o===2||r.fitsBelow)return{kind:"inViewport",coordinate:new Y5(r.belowTop,r.left),position:2}}else return this.allowEditorOverflow?{kind:"inViewport",coordinate:this._prepareRenderWidgetAtExactPositionOverflowing(new Y5(i.top,i.left)),position:0}:{kind:"inViewport",coordinate:new Y5(i.top,i.left),position:0};return null}onBeforeRender(e){!this._primaryAnchor.viewPosition||!this._preference||this._primaryAnchor.viewPosition.lineNumber<e.startLineNumber||this._primaryAnchor.viewPosition.lineNumber>e.endLineNumber||this.domNode.setMaxWidth(this._maxWidth)}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){if(!this._renderData||this._renderData.kind==="offViewport"){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this._renderData?.kind==="offViewport"&&this._renderData.preserveFocus?this.domNode.setTop(-1e3):this.domNode.setVisibility("hidden")),typeof this._actual.afterRender=="function"&&CSe(this._actual.afterRender,this._actual,null);return}this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),typeof this._actual.afterRender=="function"&&CSe(this._actual.afterRender,this._actual,this._renderData.position)}},K5=class{constructor(e,t){this.modelPosition=e,this.viewPosition=t}},Y5=class{constructor(e,t){this.top=e,this.left=t,this._coordinateBrand=void 0}},SSe=class{constructor(e,t,n){this.top=e,this.left=t,this.height=n,this._anchorCoordinateBrand=void 0}}}}),D$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.css"(){}}),xSe,lZt,cZt,T$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js"(){D$n(),sF(),kb(),rr(),Ys(),zs(),VC(),Hi(),xSe=class extends VN{constructor(e){super(),this._context=e;const t=this._context.configuration.options,n=t.get(146);this._renderLineHighlight=t.get(97),this._renderLineHighlightOnlyWhenFocus=t.get(98),this._wordWrap=n.isViewportWrapping,this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new Ii(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=new Set;for(const r of this._selections)t.add(r.positionLineNumber);const n=Array.from(t);n.sort((r,o)=>r-o),vl(this._cursorLineNumbers,n)||(this._cursorLineNumbers=n,e=!0);const i=this._selections.every(r=>r.isEmpty());return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(146);return this._renderLineHighlight=t.get(97),this._renderLineHighlightOnlyWhenFocus=t.get(98),this._wordWrap=n.isViewportWrapping,this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return this._renderLineHighlightOnlyWhenFocus?(this._focused=e.isFocused,!0):!1}prepareRender(e){if(!this._shouldRenderThis()){this._renderData=null;return}const t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=[];for(let o=t;o<=n;o++){const s=o-t;i[s]=""}if(this._wordWrap){const o=this._renderOne(e,!1);for(const s of this._cursorLineNumbers){const a=this._context.viewModel.coordinatesConverter,l=a.convertViewPositionToModelPosition(new mt(s,1)).lineNumber,c=a.convertModelPositionToViewPosition(new mt(l,1)).lineNumber,u=a.convertModelPositionToViewPosition(new mt(l,this._context.viewModel.model.getLineMaxColumn(l))).lineNumber,d=Math.max(c,t),h=Math.min(u,n);for(let f=d;f<=h;f++){const p=f-t;i[p]=o}}}const r=this._renderOne(e,!0);for(const o of this._cursorLineNumbers){if(o<t||o>n)continue;const s=o-t;i[s]=r}this._renderData=i}render(e,t){if(!this._renderData)return"";const n=t-e;return n>=this._renderData.length?"":this._renderData[n]}_shouldRenderInMargin(){return(this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all")&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}},lZt=class extends xSe{_renderOne(e,t){return`<div class="${"current-line"+(this._shouldRenderInMargin()?" current-line-both":"")+(t?" current-line-exact":"")}" style="width:${Math.max(e.scrollWidth,this._contentWidth)}px;"></div>`}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}},cZt=class extends xSe{_renderOne(e,t){return`<div class="${"current-line"+(this._shouldRenderInMargin()?" current-line-margin":"")+(this._shouldRenderOther()?" current-line-margin-both":"")+(this._shouldRenderInMargin()&&t?" current-line-exact-margin":"")}" style="width:${this._contentLeft}px"></div>`}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}},Ab((e,t)=>{const n=e.getColor(Z4e);if(n&&(t.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${n}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${n}; border: none; }`)),!n||n.isTransparent()||e.defines(X4e)){const i=e.getColor(X4e);i&&(t.addRule(`.monaco-editor .view-overlays .current-line-exact { border: 2px solid ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-exact-margin { border: 2px solid ${i}; }`),rC(e.type)&&(t.addRule(".monaco-editor .view-overlays .current-line-exact { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-exact-margin { border-width: 1px; }")))}})}}),k$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/decorations/decorations.css"(){}}),uZt,I$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/decorations/decorations.js"(){k$n(),sF(),XK(),Dn(),uZt=class extends VN{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let n=[],i=0;for(let a=0,l=t.length;a<l;a++){const c=t[a];c.options.className&&(n[i++]=c)}n=n.sort((a,l)=>{if(a.options.zIndex<l.options.zIndex)return-1;if(a.options.zIndex>l.options.zIndex)return 1;const c=a.options.className,u=l.options.className;return c<u?-1:c>u?1:Re.compareRangesUsingStarts(a.range,l.range)});const r=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,s=[];for(let a=r;a<=o;a++){const l=a-r;s[l]=""}this._renderWholeLineDecorations(e,n,s),this._renderNormalDecorations(e,n,s),this._renderResult=s}_renderWholeLineDecorations(e,t,n){const i=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber;for(let o=0,s=t.length;o<s;o++){const a=t[o];if(!a.options.isWholeLine)continue;const l='<div class="cdr '+a.options.className+'" style="left:0;width:100%;"></div>',c=Math.max(a.range.startLineNumber,i),u=Math.min(a.range.endLineNumber,r);for(let d=c;d<=u;d++){const h=d-i;n[h]+=l}}}_renderNormalDecorations(e,t,n){const i=e.visibleRange.startLineNumber;let r=null,o=!1,s=null,a=!1;for(let l=0,c=t.length;l<c;l++){const u=t[l];if(u.options.isWholeLine)continue;const d=u.options.className,h=!!u.options.showIfCollapsed;let f=u.range;if(h&&f.endColumn===1&&f.endLineNumber!==f.startLineNumber&&(f=new Re(f.startLineNumber,f.startColumn,f.endLineNumber-1,this._context.viewModel.getLineMaxColumn(f.endLineNumber-1))),r===d&&o===h&&Re.areIntersectingOrTouching(s,f)){s=Re.plusRange(s,f);continue}r!==null&&this._renderNormalDecoration(e,s,r,a,o,i,n),r=d,o=h,s=f,a=u.options.shouldFillLineOnLineBreak??!1}r!==null&&this._renderNormalDecoration(e,s,r,a,o,i,n)}_renderNormalDecoration(e,t,n,i,r,o,s){const a=e.linesVisibleRangesForRange(t,n==="findMatch");if(a)for(let l=0,c=a.length;l<c;l++){const u=a[l];if(u.outsideRenderedLine)continue;const d=u.lineNumber-o;if(r&&u.ranges.length===1){const h=u.ranges[0];if(h.width<this._typicalHalfwidthCharacterWidth){const f=Math.round(h.left+h.width/2),p=Math.max(0,Math.round(f-this._typicalHalfwidthCharacterWidth/2));u.ranges[0]=new fHe(p,this._typicalHalfwidthCharacterWidth)}}for(let h=0,f=u.ranges.length;h<f;h++){const p=i&&u.continuesOnNextLine&&f===1,g=u.ranges[h],m='<div class="cdr '+n+'" style="left:'+String(g.left)+"px;width:"+(p?"100%;":String(g.width)+"px;")+'"></div>';s[d]+=m}}}render(e,t){if(!this._renderResult)return"";const n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}}}),dZt,L$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js"(){Fn(),_d(),vw(),Cg(),Ys(),dZt=class extends ym{constructor(e,t,n,i){super(e);const r=this._context.configuration.options,o=r.get(104),s=r.get(75),a=r.get(40),l=r.get(107),c={listenOnDomNode:n.domNode,className:"editor-scrollable "+Y5e(e.theme.type),useShadows:!1,lazyRender:!0,vertical:o.vertical,horizontal:o.horizontal,verticalHasArrows:o.verticalHasArrows,horizontalHasArrows:o.horizontalHasArrows,verticalScrollbarSize:o.verticalScrollbarSize,verticalSliderSize:o.verticalSliderSize,horizontalScrollbarSize:o.horizontalScrollbarSize,horizontalSliderSize:o.horizontalSliderSize,handleMouseWheel:o.handleMouseWheel,alwaysConsumeMouseWheel:o.alwaysConsumeMouseWheel,arrowSize:o.arrowSize,mouseWheelScrollSensitivity:s,fastScrollSensitivity:a,scrollPredominantAxis:l,scrollByPage:o.scrollByPage};this.scrollbar=this._register(new uY(t.domNode,c,this._context.viewLayout.getScrollable())),J_.write(this.scrollbar.getDomNode(),6),this.scrollbarDomNode=Ds(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const u=(d,h,f)=>{const p={};{const g=d.scrollTop;g&&(p.scrollTop=this._context.viewLayout.getCurrentScrollTop()+g,d.scrollTop=0)}if(f){const g=d.scrollLeft;g&&(p.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+g,d.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(p,1)};this._register(qt(n.domNode,"scroll",d=>u(n.domNode,!0,!0))),this._register(qt(t.domNode,"scroll",d=>u(t.domNode,!0,!1))),this._register(qt(i.domNode,"scroll",d=>u(i.domNode,!0,!1))),this._register(qt(this.scrollbarDomNode.domNode,"scroll",d=>u(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(146);this.scrollbarDomNode.setLeft(t.contentLeft),e.get(73).side==="right"?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(e){this.scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this.scrollbar.delegateScrollFromMouseWheelEvent(e)}onConfigurationChanged(e){if(e.hasChanged(104)||e.hasChanged(75)||e.hasChanged(40)){const t=this._context.configuration.options,n=t.get(104),i=t.get(75),r=t.get(40),o=t.get(107),s={vertical:n.vertical,horizontal:n.horizontal,verticalScrollbarSize:n.verticalScrollbarSize,horizontalScrollbarSize:n.horizontalScrollbarSize,scrollByPage:n.scrollByPage,handleMouseWheel:n.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:r,scrollPredominantAxis:o};this.scrollbar.updateOptions(s)}return e.hasChanged(146)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+Y5e(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}}}),N$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/glyphMargin/glyphMargin.css"(){}}),Tde,mpt,vpt,OUe,hZt,ypt,bpt,_pt,RUe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js"(){_d(),rr(),N$n(),sF(),Cg(),Hi(),Dn(),Cd(),Tde=class{constructor(e,t,n,i,r){this.startLineNumber=e,this.endLineNumber=t,this.className=n,this.tooltip=i,this._decorationToRenderBrand=void 0,this.zIndex=r??0}},mpt=class{constructor(e,t,n){this.className=e,this.zIndex=t,this.tooltip=n}},vpt=class{constructor(){this.decorations=[]}add(e){this.decorations.push(e)}getDecorations(){return this.decorations}},OUe=class extends VN{_render(e,t,n){const i=[];for(let s=e;s<=t;s++){const a=s-e;i[a]=new vpt}if(n.length===0)return i;n.sort((s,a)=>s.className===a.className?s.startLineNumber===a.startLineNumber?s.endLineNumber-a.endLineNumber:s.startLineNumber-a.startLineNumber:s.className<a.className?-1:1);let r=null,o=0;for(let s=0,a=n.length;s<a;s++){const l=n[s],c=l.className,u=l.zIndex;let d=Math.max(l.startLineNumber,e)-e;const h=Math.min(l.endLineNumber,t)-e;r===c?(d=Math.max(o+1,d),o=Math.max(o,h)):(r=c,o=h);for(let f=d;f<=o;f++)i[f].add(new mpt(c,u,l.tooltip))}return i}},hZt=class extends ym{constructor(e){super(e),this._widgets={},this._context=e;const t=this._context.configuration.options,n=t.get(146);this.domNode=Ds(document.createElement("div")),this.domNode.setClassName("glyph-margin-widgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this._lineHeight=t.get(67),this._glyphMargin=t.get(57),this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,this._glyphMarginDecorationLaneCount=n.glyphMarginDecorationLaneCount,this._managedDomNodes=[],this._decorationGlyphsToRender=[]}dispose(){this._managedDomNodes=[],this._decorationGlyphsToRender=[],this._widgets={},super.dispose()}getWidgets(){return Object.values(this._widgets)}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(146);return this._lineHeight=t.get(67),this._glyphMargin=t.get(57),this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,this._glyphMarginDecorationLaneCount=n.glyphMarginDecorationLaneCount,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}addWidget(e){const t=Ds(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:e.getPosition(),domNode:t,renderInfo:null},t.setPosition("absolute"),t.setDisplay("none"),t.setAttribute("widgetId",e.getId()),this.domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){const n=this._widgets[e.getId()];return n.preference.lane===t.lane&&n.preference.zIndex===t.zIndex&&Re.equalsRange(n.preference.range,t.range)?!1:(n.preference=t,this.setShouldRender(),!0)}removeWidget(e){const t=e.getId();if(this._widgets[t]){const i=this._widgets[t].domNode.domNode;delete this._widgets[t],i.remove(),this.setShouldRender()}}_collectDecorationBasedGlyphRenderRequest(e,t){const n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,r=e.getDecorationsInViewport();for(const o of r){const s=o.options.glyphMarginClassName;if(!s)continue;const a=Math.max(o.range.startLineNumber,n),l=Math.min(o.range.endLineNumber,i),c=o.options.glyphMargin?.position??tw.Center,u=o.options.zIndex??0;for(let d=a;d<=l;d++){const h=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new mt(d,0)),f=this._context.viewModel.glyphLanes.getLanesAtLine(h.lineNumber).indexOf(c);t.push(new ypt(d,f,u,s))}}}_collectWidgetBasedGlyphRenderRequest(e,t){const n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber;for(const r of Object.values(this._widgets)){const o=r.preference.range,{startLineNumber:s,endLineNumber:a}=this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(Re.lift(o));if(!s||!a||a<n||s>i)continue;const l=Math.max(s,n),c=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new mt(l,0)),u=this._context.viewModel.glyphLanes.getLanesAtLine(c.lineNumber).indexOf(r.preference.lane);t.push(new bpt(l,u,r.preference.zIndex,r))}}_collectSortedGlyphRenderRequests(e){const t=[];return this._collectDecorationBasedGlyphRenderRequest(e,t),this._collectWidgetBasedGlyphRenderRequest(e,t),t.sort((n,i)=>n.lineNumber===i.lineNumber?n.laneIndex===i.laneIndex?n.zIndex===i.zIndex?i.type===n.type?n.type===0&&i.type===0?n.className<i.className?-1:1:0:i.type-n.type:i.zIndex-n.zIndex:n.laneIndex-i.laneIndex:n.lineNumber-i.lineNumber),t}prepareRender(e){if(!this._glyphMargin){this._decorationGlyphsToRender=[];return}for(const i of Object.values(this._widgets))i.renderInfo=null;const t=new Xx(this._collectSortedGlyphRenderRequests(e)),n=[];for(;t.length>0;){const i=t.peek();if(!i)break;const r=t.takeWhile(s=>s.lineNumber===i.lineNumber&&s.laneIndex===i.laneIndex);if(!r||r.length===0)break;const o=r[0];if(o.type===0){const s=[];for(const a of r){if(a.zIndex!==o.zIndex||a.type!==o.type)break;(s.length===0||s[s.length-1]!==a.className)&&s.push(a.className)}n.push(o.accept(s.join(" ")))}else o.widget.renderInfo={lineNumber:o.lineNumber,laneIndex:o.laneIndex}}this._decorationGlyphsToRender=n}render(e){if(!this._glyphMargin){for(const n of Object.values(this._widgets))n.domNode.setDisplay("none");for(;this._managedDomNodes.length>0;)this._managedDomNodes.pop()?.domNode.remove();return}const t=Math.round(this._glyphMarginWidth/this._glyphMarginDecorationLaneCount);for(const n of Object.values(this._widgets))if(!n.renderInfo)n.domNode.setDisplay("none");else{const i=e.viewportData.relativeVerticalOffset[n.renderInfo.lineNumber-e.viewportData.startLineNumber],r=this._glyphMarginLeft+n.renderInfo.laneIndex*this._lineHeight;n.domNode.setDisplay("block"),n.domNode.setTop(i),n.domNode.setLeft(r),n.domNode.setWidth(t),n.domNode.setHeight(this._lineHeight)}for(let n=0;n<this._decorationGlyphsToRender.length;n++){const i=this._decorationGlyphsToRender[n],r=e.viewportData.relativeVerticalOffset[i.lineNumber-e.viewportData.startLineNumber],o=this._glyphMarginLeft+i.laneIndex*this._lineHeight;let s;n<this._managedDomNodes.length?s=this._managedDomNodes[n]:(s=Ds(document.createElement("div")),this._managedDomNodes.push(s),this.domNode.appendChild(s)),s.setClassName("cgmr codicon "+i.combinedClassName),s.setPosition("absolute"),s.setTop(r),s.setLeft(o),s.setWidth(t),s.setHeight(this._lineHeight)}for(;this._managedDomNodes.length>this._decorationGlyphsToRender.length;)this._managedDomNodes.pop()?.domNode.remove()}},ypt=class{constructor(e,t,n,i){this.lineNumber=e,this.laneIndex=t,this.zIndex=n,this.className=i,this.type=0}accept(e){return new _pt(this.lineNumber,this.laneIndex,e)}},bpt=class{constructor(e,t,n,i){this.lineNumber=e,this.laneIndex=t,this.zIndex=n,this.widget=i,this.type=1}},_pt=class{constructor(e,t,n){this.lineNumber=e,this.laneIndex=t,this.combinedClassName=n}}}}),P$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/indentGuides/indentGuides.css"(){}});function Q5(e){if(!(e&&e.isTransparent()))return e}var fZt,M$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/indentGuides/indentGuides.js"(){P$n(),sF(),kb(),Ys(),Hi(),rr(),as(),OKt(),jWe(),fZt=class extends VN{constructor(e){super(),this._context=e,this._primaryPosition=null;const t=this._context.configuration.options,n=t.get(147),i=t.get(50);this._spaceWidth=i.spaceWidth,this._maxIndentLeft=n.wrappingColumn===-1?-1:n.wrappingColumn*i.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(16),this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(147),i=t.get(50);return this._spaceWidth=i.spaceWidth,this._maxIndentLeft=n.wrappingColumn===-1?-1:n.wrappingColumn*i.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(16),!0}onCursorStateChanged(e){const n=e.selections[0].getPosition();return this._primaryPosition?.equals(n)?!1:(this._primaryPosition=n,!0)}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onLanguageConfigurationChanged(e){return!0}prepareRender(e){if(!this._bracketPairGuideOptions.indentation&&this._bracketPairGuideOptions.bracketPairs===!1){this._renderResult=null;return}const t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=e.scrollWidth,r=this._primaryPosition,o=this.getGuidesByLine(t,Math.min(n+1,this._context.viewModel.getLineCount()),r),s=[];for(let a=t;a<=n;a++){const l=a-t,c=o[l];let u="";const d=e.visibleRangeForPosition(new mt(a,1))?.left??0;for(const h of c){const f=h.column===-1?d+(h.visibleColumn-1)*this._spaceWidth:e.visibleRangeForPosition(new mt(a,h.column)).left;if(f>i||this._maxIndentLeft>0&&f>this._maxIndentLeft)break;const p=h.horizontalLine?h.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",g=h.horizontalLine?(e.visibleRangeForPosition(new mt(a,h.horizontalLine.endColumn))?.left??f+this._spaceWidth)-f:this._spaceWidth;u+=`<div class="core-guide ${h.className} ${p}" style="left:${f}px;width:${g}px"></div>`}s[l]=u}this._renderResult=s}getGuidesByLine(e,t,n){const i=this._bracketPairGuideOptions.bracketPairs!==!1?this._context.viewModel.getBracketGuidesInRangeByLine(e,t,n,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:this._bracketPairGuideOptions.bracketPairsHorizontal===!0?yR.Enabled:this._bracketPairGuideOptions.bracketPairsHorizontal==="active"?yR.EnabledForActive:yR.Disabled,includeInactive:this._bracketPairGuideOptions.bracketPairs===!0}):null,r=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,t):null;let o=0,s=0,a=0;if(this._bracketPairGuideOptions.highlightActiveIndentation!==!1&&n){const u=this._context.viewModel.getActiveIndentGuide(n.lineNumber,e,t);o=u.startLineNumber,s=u.endLineNumber,a=u.indent}const{indentSize:l}=this._context.viewModel.model.getOptions(),c=[];for(let u=e;u<=t;u++){const d=new Array;c.push(d);const h=i?i[u-e]:[],f=new Xx(h),p=r?r[u-e]:0;for(let g=1;g<=p;g++){const m=(g-1)*l+1,v=(this._bracketPairGuideOptions.highlightActiveIndentation==="always"||h.length===0)&&o<=u&&u<=s&&g===a;d.push(...f.takeWhile(b=>b.visibleColumn<m)||[]);const y=f.peek();(!y||y.visibleColumn!==m||y.horizontalLine)&&d.push(new VI(m,-1,`core-guide-indent lvl-${(g-1)%30}`+(v?" indent-active":""),null,-1,-1))}d.push(...f.takeWhile(g=>!0)||[])}return c}render(e,t){if(!this._renderResult)return"";const n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}},Ab((e,t)=>{const n=[{bracketColor:xWe,guideColor:qGt,guideColorActive:XGt},{bracketColor:EWe,guideColor:GGt,guideColorActive:JGt},{bracketColor:AWe,guideColor:KGt,guideColorActive:eKt},{bracketColor:DWe,guideColor:YGt,guideColorActive:tKt},{bracketColor:TWe,guideColor:QGt,guideColorActive:nKt},{bracketColor:kWe,guideColor:ZGt,guideColorActive:iKt}],i=new lBe,r=[{indentColor:a6,indentColorActive:l6},{indentColor:DGt,indentColorActive:NGt},{indentColor:TGt,indentColorActive:PGt},{indentColor:kGt,indentColorActive:MGt},{indentColor:IGt,indentColorActive:OGt},{indentColor:LGt,indentColorActive:RGt}],o=n.map(a=>{const l=e.getColor(a.bracketColor),c=e.getColor(a.guideColor),u=e.getColor(a.guideColorActive),d=Q5(Q5(c)??l?.transparent(.3)),h=Q5(Q5(u)??l);if(!(!d||!h))return{guideColor:d,guideColorActive:h}}).filter(Ex),s=r.map(a=>{const l=e.getColor(a.indentColor),c=e.getColor(a.indentColorActive),u=Q5(l),d=Q5(c);if(!(!u||!d))return{indentColor:u,indentColorActive:d}}).filter(Ex);if(o.length>0){for(let a=0;a<30;a++){const l=o[a%o.length];t.addRule(`.monaco-editor .${i.getInlineClassNameOfLevel(a).replace(/ /g,".")} { --guide-color: ${l.guideColor}; --guide-color-active: ${l.guideColorActive}; }`)}t.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),t.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),t.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),t.addRule(`.monaco-editor .vertical.${i.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),t.addRule(`.monaco-editor .horizontal-top.${i.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),t.addRule(`.monaco-editor .horizontal-bottom.${i.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}if(s.length>0){for(let a=0;a<30;a++){const l=s[a%s.length];t.addRule(`.monaco-editor .lines-content .core-guide-indent.lvl-${a} { --indent-color: ${l.indentColor}; --indent-color-active: ${l.indentColorActive}; }`)}t.addRule(".monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 var(--indent-color) inset; }"),t.addRule(".monaco-editor .lines-content .core-guide-indent.indent-active { box-shadow: 1px 0 0 0 var(--indent-color-active) inset; }")}})}}),O$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lines/viewLines.css"(){}}),bae,R$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lines/domReadingContext.js"(){bae=class{get didDomLayout(){return this._didDomLayout}readClientRect(){if(!this._clientRectRead){this._clientRectRead=!0;const e=this._domNode.getBoundingClientRect();this.markDidDomLayout(),this._clientRectDeltaLeft=e.left,this._clientRectScale=e.width/this._domNode.offsetWidth}}get clientRectDeltaLeft(){return this._clientRectRead||this.readClientRect(),this._clientRectDeltaLeft}get clientRectScale(){return this._clientRectRead||this.readClientRect(),this._clientRectScale}constructor(e,t){this._domNode=e,this.endNode=t,this._didDomLayout=!1,this._clientRectDeltaLeft=0,this._clientRectScale=1,this._clientRectRead=!1}markDidDomLayout(){this._didDomLayout=!0}}}}),wpt,Cpt,Spt,pZt,F$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lines/viewLines.js"(){var e;SUe(),fr(),Xr(),O$n(),xb(),XK(),PUe(),Cg(),R$n(),CHe(),Hi(),Dn(),wpt=class{constructor(){this._currentVisibleRange=new Re(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(t){this._currentVisibleRange=t}},Cpt=class{constructor(t,n,i,r,o,s,a){this.minimalReveal=t,this.lineNumber=n,this.startColumn=i,this.endColumn=r,this.startScrollTop=o,this.stopScrollTop=s,this.scrollType=a,this.type="range",this.minLineNumber=n,this.maxLineNumber=n}},Spt=class{constructor(t,n,i,r,o){this.minimalReveal=t,this.selections=n,this.startScrollTop=i,this.stopScrollTop=r,this.scrollType=o,this.type="selections";let s=n[0].startLineNumber,a=n[0].endLineNumber;for(let l=1,c=n.length;l<c;l++){const u=n[l];s=Math.min(s,u.startLineNumber),a=Math.max(a,u.endLineNumber)}this.minLineNumber=s,this.maxLineNumber=a}},pZt=(e=class extends ym{constructor(n,i){super(n);const r=this._context.configuration,o=this._context.configuration.options,s=o.get(50),a=o.get(147);this._lineHeight=o.get(67),this._typicalHalfwidthCharacterWidth=s.typicalHalfwidthCharacterWidth,this._isViewportWrapping=a.isViewportWrapping,this._revealHorizontalRightPadding=o.get(101),this._cursorSurroundingLines=o.get(29),this._cursorSurroundingLinesStyle=o.get(30),this._canUseLayerHinting=!o.get(32),this._viewLineOptions=new E5e(r,this._context.theme.type),this._linesContent=i,this._textRangeRestingSpot=document.createElement("div"),this._visibleLines=new NUe({createLine:()=>new _I(this._viewLineOptions)}),this.domNode=this._visibleLines.domNode,J_.write(this.domNode,8),this.domNode.setClassName(`view-lines ${_R}`),yh(this.domNode,s),this._maxLineWidth=0,this._asyncUpdateLineWidths=new Gs(()=>{this._updateLineWidthsSlow()},200),this._asyncCheckMonospaceFontAssumptions=new Gs(()=>{this._checkMonospaceFontAssumptions()},2e3),this._lastRenderedData=new wpt,this._horizontalRevealRequest=null,this._stickyScrollEnabled=o.get(116).enabled,this._maxNumberStickyLines=o.get(116).maxLineCount}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}onConfigurationChanged(n){this._visibleLines.onConfigurationChanged(n),n.hasChanged(147)&&(this._maxLineWidth=0);const i=this._context.configuration.options,r=i.get(50),o=i.get(147);return this._lineHeight=i.get(67),this._typicalHalfwidthCharacterWidth=r.typicalHalfwidthCharacterWidth,this._isViewportWrapping=o.isViewportWrapping,this._revealHorizontalRightPadding=i.get(101),this._cursorSurroundingLines=i.get(29),this._cursorSurroundingLinesStyle=i.get(30),this._canUseLayerHinting=!i.get(32),this._stickyScrollEnabled=i.get(116).enabled,this._maxNumberStickyLines=i.get(116).maxLineCount,yh(this.domNode,r),this._onOptionsMaybeChanged(),n.hasChanged(146)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const n=this._context.configuration,i=new E5e(n,this._context.theme.type);if(!this._viewLineOptions.equals(i)){this._viewLineOptions=i;const r=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber();for(let s=r;s<=o;s++)this._visibleLines.getVisibleLine(s).onOptionsChanged(this._viewLineOptions);return!0}return!1}onCursorStateChanged(n){const i=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();let o=!1;for(let s=i;s<=r;s++)o=this._visibleLines.getVisibleLine(s).onSelectionChanged()||o;return o}onDecorationsChanged(n){{const i=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();for(let o=i;o<=r;o++)this._visibleLines.getVisibleLine(o).onDecorationsChanged()}return!0}onFlushed(n){const i=this._visibleLines.onFlushed(n);return this._maxLineWidth=0,i}onLinesChanged(n){return this._visibleLines.onLinesChanged(n)}onLinesDeleted(n){return this._visibleLines.onLinesDeleted(n)}onLinesInserted(n){return this._visibleLines.onLinesInserted(n)}onRevealRangeRequest(n){const i=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),n.source,n.minimalReveal,n.range,n.selections,n.verticalType);if(i===-1)return!1;let r=this._context.viewLayout.validateScrollPosition({scrollTop:i});n.revealHorizontal?n.range&&n.range.startLineNumber!==n.range.endLineNumber?r={scrollTop:r.scrollTop,scrollLeft:0}:n.range?this._horizontalRevealRequest=new Cpt(n.minimalReveal,n.range.startLineNumber,n.range.startColumn,n.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),r.scrollTop,n.scrollType):n.selections&&n.selections.length>0&&(this._horizontalRevealRequest=new Spt(n.minimalReveal,n.selections,this._context.viewLayout.getCurrentScrollTop(),r.scrollTop,n.scrollType)):this._horizontalRevealRequest=null;const s=Math.abs(this._context.viewLayout.getCurrentScrollTop()-r.scrollTop)<=this._lineHeight?1:n.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(r,s),!0}onScrollChanged(n){if(this._horizontalRevealRequest&&n.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&n.scrollTopChanged){const i=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),r=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(n.scrollTop<i||n.scrollTop>r)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(n.scrollWidth),this._visibleLines.onScrollChanged(n)||!0}onTokensChanged(n){return this._visibleLines.onTokensChanged(n)}onZonesChanged(n){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(n)}onThemeChanged(n){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(n,i){const r=this._getViewLineDomNode(n);if(r===null)return null;const o=this._getLineNumberFor(r);if(o===-1||o<1||o>this._context.viewModel.getLineCount())return null;if(this._context.viewModel.getLineMaxColumn(o)===1)return new mt(o,1);const s=this._visibleLines.getStartLineNumber(),a=this._visibleLines.getEndLineNumber();if(o<s||o>a)return null;let l=this._visibleLines.getVisibleLine(o).getColumnOfNodeOffset(n,i);const c=this._context.viewModel.getLineMinColumn(o);return l<c&&(l=c),new mt(o,l)}_getViewLineDomNode(n){for(;n&&n.nodeType===1;){if(n.className===_I.CLASS_NAME)return n;n=n.parentElement}return null}_getLineNumberFor(n){const i=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();for(let o=i;o<=r;o++){const s=this._visibleLines.getVisibleLine(o);if(n===s.getDomNode())return o}return-1}getLineWidth(n){const i=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(n<i||n>r)return-1;const o=new bae(this.domNode.domNode,this._textRangeRestingSpot),s=this._visibleLines.getVisibleLine(n).getWidth(o);return this._updateLineWidthsSlowIfDomDidLayout(o),s}linesVisibleRangesForRange(n,i){if(this.shouldRender())return null;const r=n.endLineNumber,o=Re.intersectRanges(n,this._lastRenderedData.getCurrentVisibleRange());if(!o)return null;const s=[];let a=0;const l=new bae(this.domNode.domNode,this._textRangeRestingSpot);let c=0;i&&(c=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new mt(o.startLineNumber,1)).lineNumber);const u=this._visibleLines.getStartLineNumber(),d=this._visibleLines.getEndLineNumber();for(let h=o.startLineNumber;h<=o.endLineNumber;h++){if(h<u||h>d)continue;const f=h===o.startLineNumber?o.startColumn:1,p=h!==o.endLineNumber,g=p?this._context.viewModel.getLineMaxColumn(h):o.endColumn,m=this._visibleLines.getVisibleLine(h).getVisibleRangesForRange(h,f,g,l);if(m){if(i&&h<r){const v=c;c=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new mt(h+1,1)).lineNumber,v!==c&&(m.ranges[m.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}s[a++]=new iWt(m.outsideRenderedLine,h,fHe.from(m.ranges),p)}}return this._updateLineWidthsSlowIfDomDidLayout(l),a===0?null:s}_visibleRangesForLineRange(n,i,r){if(this.shouldRender()||n<this._visibleLines.getStartLineNumber()||n>this._visibleLines.getEndLineNumber())return null;const o=new bae(this.domNode.domNode,this._textRangeRestingSpot),s=this._visibleLines.getVisibleLine(n).getVisibleRangesForRange(n,i,r,o);return this._updateLineWidthsSlowIfDomDidLayout(o),s}visibleRangeForPosition(n){const i=this._visibleRangesForLineRange(n.lineNumber,n.column,n.column);return i?new rWt(i.outsideRenderedLine,i.ranges[0].left):null}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidthsSlowIfDomDidLayout(n){n.didDomLayout&&(this._asyncUpdateLineWidths.isScheduled()||(this._asyncUpdateLineWidths.cancel(),this._updateLineWidthsSlow()))}_updateLineWidths(n){const i=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();let o=1,s=!0;for(let a=i;a<=r;a++){const l=this._visibleLines.getVisibleLine(a);if(n&&!l.getWidthIsFast()){s=!1;continue}o=Math.max(o,l.getWidth(null))}return s&&i===1&&r===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(o),s}_checkMonospaceFontAssumptions(){let n=-1,i=-1;const r=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber();for(let s=r;s<=o;s++){const a=this._visibleLines.getVisibleLine(s);if(a.needsMonospaceFontCheck()){const l=a.getWidth(null);l>i&&(i=l,n=s)}}if(n!==-1&&!this._visibleLines.getVisibleLine(n).monospaceAssumptionsAreValid())for(let s=r;s<=o;s++)this._visibleLines.getVisibleLine(s).onMonospaceAssumptionsInvalidated()}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(n){if(this._visibleLines.renderLines(n),this._lastRenderedData.setCurrentVisibleRange(n.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const r=this._horizontalRevealRequest;if(n.startLineNumber<=r.minLineNumber&&r.maxLineNumber<=n.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const o=this._computeScrollLeftToReveal(r);o&&(this._isViewportWrapping||this._ensureMaxLineWidth(o.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:o.scrollLeft},r.scrollType))}}if(this._updateLineWidthsFast()?this._asyncUpdateLineWidths.cancel():this._asyncUpdateLineWidths.schedule(),Wf&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const r=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber();for(let s=r;s<=o;s++)if(this._visibleLines.getVisibleLine(s).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const i=this._context.viewLayout.getCurrentScrollTop()-n.bigNumbersDelta;this._linesContent.setTop(-i),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(n){const i=Math.ceil(n);this._maxLineWidth<i&&(this._maxLineWidth=i,this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth))}_computeScrollTopToRevealRange(n,i,r,o,s,a){const l=n.top,c=n.height,u=l+c;let d,h,f;if(s&&s.length>0){let y=s[0].startLineNumber,b=s[0].endLineNumber;for(let w=1,E=s.length;w<E;w++){const A=s[w];y=Math.min(y,A.startLineNumber),b=Math.max(b,A.endLineNumber)}d=!1,h=this._context.viewLayout.getVerticalOffsetForLineNumber(y),f=this._context.viewLayout.getVerticalOffsetForLineNumber(b)+this._lineHeight}else if(o)d=!0,h=this._context.viewLayout.getVerticalOffsetForLineNumber(o.startLineNumber),f=this._context.viewLayout.getVerticalOffsetForLineNumber(o.endLineNumber)+this._lineHeight;else return-1;const p=(i==="mouse"||r)&&this._cursorSurroundingLinesStyle==="default";let g=0,m=0;if(p)r||(g=this._lineHeight);else{const y=c/this._lineHeight,b=Math.max(this._cursorSurroundingLines,this._stickyScrollEnabled?this._maxNumberStickyLines:0),w=Math.min(y/2,b);g=w*this._lineHeight,m=Math.max(0,w-1)*this._lineHeight}r||(a===0||a===4)&&(m+=this._lineHeight),h-=g,f+=m;let v;if(f-h>c){if(!d)return-1;v=h}else if(a===5||a===6)if(a===6&&l<=h&&f<=u)v=l;else{const y=Math.max(5*this._lineHeight,c*.2),b=h-y,w=f-c;v=Math.max(w,b)}else if(a===1||a===2)if(a===2&&l<=h&&f<=u)v=l;else{const y=(h+f)/2;v=Math.max(0,y-c/2)}else v=this._computeMinimumScrolling(l,u,h,f,a===3,a===4);return v}_computeScrollLeftToReveal(n){const i=this._context.viewLayout.getCurrentViewport(),r=this._context.configuration.options.get(146),o=i.left,s=o+i.width-r.verticalScrollbarWidth;let a=1073741824,l=0;if(n.type==="range"){const u=this._visibleRangesForLineRange(n.lineNumber,n.startColumn,n.endColumn);if(!u)return null;for(const d of u.ranges)a=Math.min(a,Math.round(d.left)),l=Math.max(l,Math.round(d.left+d.width))}else for(const u of n.selections){if(u.startLineNumber!==u.endLineNumber)return null;const d=this._visibleRangesForLineRange(u.startLineNumber,u.startColumn,u.endColumn);if(!d)return null;for(const h of d.ranges)a=Math.min(a,Math.round(h.left)),l=Math.max(l,Math.round(h.left+h.width))}return n.minimalReveal||(a=Math.max(0,a-e.HORIZONTAL_EXTRA_PX),l+=this._revealHorizontalRightPadding),n.type==="selections"&&l-a>i.width?null:{scrollLeft:this._computeMinimumScrolling(o,s,a,l),maxHorizontalOffset:l}}_computeMinimumScrolling(n,i,r,o,s,a){n=n|0,i=i|0,r=r|0,o=o|0,s=!!s,a=!!a;const l=i-n;if(o-r<l){if(s)return r;if(a)return Math.max(0,o-l);if(r<n)return r;if(o>i)return Math.max(0,o-l)}else return r;return n}},e.HORIZONTAL_EXTRA_PX=30,e)}}),B$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/linesDecorations/linesDecorations.css"(){}}),gZt,j$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/linesDecorations/linesDecorations.js"(){B$n(),RUe(),gZt=class extends OUe{constructor(e){super(),this._context=e;const n=this._context.configuration.options.get(146);this._decorationsLeft=n.decorationsLeft,this._decorationsWidth=n.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const n=this._context.configuration.options.get(146);return this._decorationsLeft=n.decorationsLeft,this._decorationsWidth=n.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),n=[];let i=0;for(let r=0,o=t.length;r<o;r++){const s=t[r],a=s.options.linesDecorationsClassName,l=s.options.zIndex;a&&(n[i++]=new Tde(s.range.startLineNumber,s.range.endLineNumber,a,s.options.linesDecorationsTooltip??null,l));const c=s.options.firstLineDecorationClassName;c&&(n[i++]=new Tde(s.range.startLineNumber,s.range.startLineNumber,c,s.options.linesDecorationsTooltip??null,l))}return n}prepareRender(e){const t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),r=this._decorationsLeft.toString(),o=this._decorationsWidth.toString(),s='" style="left:'+r+"px;width:"+o+'px;"></div>',a=[];for(let l=t;l<=n;l++){const c=l-t,u=i[c].getDecorations();let d="";for(const h of u){let f='<div class="cldr '+h.className;h.tooltip!==null&&(f+='" title="'+h.tooltip),f+=s,d+=f}a[c]=d}this._renderResult=a}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}}}),z$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/marginDecorations/marginDecorations.css"(){}}),mZt,V$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/marginDecorations/marginDecorations.js"(){z$n(),RUe(),mZt=class extends OUe{constructor(e){super(),this._context=e,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),n=[];let i=0;for(let r=0,o=t.length;r<o;r++){const s=t[r],a=s.options.marginClassName,l=s.options.zIndex;a&&(n[i++]=new Tde(s.range.startLineNumber,s.range.endLineNumber,a,null,l))}return n}prepareRender(e){const t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),r=[];for(let o=t;o<=n;o++){const s=o-t,a=i[s].getDecorations();let l="";for(const c of a)l+='<div class="cmdr '+c.className+'" style=""></div>';r[s]=l}this._renderResult=r}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}}}),H$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/minimap/minimap.css"(){}}),HI,vZt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/rgba.js"(){var e;HI=(e=class{constructor(n,i,r,o){this._rgba8Brand=void 0,this.r=e._clamp(n),this.g=e._clamp(i),this.b=e._clamp(r),this.a=e._clamp(o)}equals(n){return this.r===n.r&&this.g===n.g&&this.b===n.b&&this.a===n.a}static _clamp(n){return n<0?0:n>255?255:n|0}},e.Empty=new e(0,0,0,0),e)}}),FUe,yZt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/viewModel/minimapTokensColorTracker.js"(){var e;Un(),Nt(),vZt(),ra(),FUe=(e=class extends St{static getInstance(){return this._INSTANCE||(this._INSTANCE=bq(new e)),this._INSTANCE}constructor(){super(),this._onDidChange=new bt,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(Hl.onDidChange(n=>{n.changedColorMap&&this._updateColorMap()}))}_updateColorMap(){const n=Hl.getColorMap();if(!n){this._colors=[HI.Empty],this._backgroundIsLight=!0;return}this._colors=[HI.Empty];for(let r=1;r<n.length;r++){const o=n[r].rgba;this._colors[r]=new HI(o.r,o.g,o.b,Math.round(o.a*255))}const i=n[2].getRelativeLuminance();this._backgroundIsLight=i>=.5,this._onDidChange.fire(void 0)}getColor(n){return(n<1||n>=this._colors.length)&&(n=2),this._colors[n]}backgroundIsLight(){return this._backgroundIsLight}},e._INSTANCE=null,e)}}),bZt,_Zt,wZt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/minimap/minimapCharSheet.js"(){bZt=(()=>{const e=[];for(let t=32;t<=126;t++)e.push(t);return e.push(65533),e})(),_Zt=(e,t)=>(e-=32,e<0||e>96?t<=2?(e+96)%96:95:e)}}),GBe,W$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/minimap/minimapCharRenderer.js"(){wZt(),Zpe(),GBe=class KBe{constructor(t,n){this.scale=n,this._minimapCharRendererBrand=void 0,this.charDataNormal=KBe.soften(t,12/15),this.charDataLight=KBe.soften(t,50/60)}static soften(t,n){const i=new Uint8ClampedArray(t.length);for(let r=0,o=t.length;r<o;r++)i[r]=Uue(t[r]*n);return i}renderChar(t,n,i,r,o,s,a,l,c,u,d){const h=1*this.scale,f=2*this.scale,p=d?1:f;if(n+h>t.width||i+p>t.height){console.warn("bad render request outside image data");return}const g=u?this.charDataLight:this.charDataNormal,m=_Zt(r,c),v=t.width*4,y=a.r,b=a.g,w=a.b,E=o.r-y,A=o.g-b,D=o.b-w,T=Math.max(s,l),M=t.data;let P=m*h*f,F=i*v+n*4;for(let N=0;N<p;N++){let j=F;for(let W=0;W<h;W++){const J=g[P++]/255*(s/255);M[j++]=y+E*J,M[j++]=b+A*J,M[j++]=w+D*J,M[j++]=T}F+=v}}blockRenderChar(t,n,i,r,o,s,a,l){const c=1*this.scale,u=2*this.scale,d=l?1:u;if(n+c>t.width||i+d>t.height){console.warn("bad render request outside image data");return}const h=t.width*4,f=.5*(o/255),p=s.r,g=s.g,m=s.b,v=r.r-p,y=r.g-g,b=r.b-m,w=p+v*f,E=g+y*f,A=m+b*f,D=Math.max(o,a),T=t.data;let M=i*h+n*4;for(let P=0;P<d;P++){let F=M;for(let N=0;N<c;N++)T[F++]=w,T[F++]=E,T[F++]=A,T[F++]=D;M+=h}}}}}),ESe,ASe,YBe,U$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/minimap/minimapPreBaked.js"(){U2(),ESe={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15},ASe=e=>{const t=new Uint8ClampedArray(e.length/2);for(let n=0;n<e.length;n+=2)t[n>>1]=ESe[e[n]]<<4|ESe[e[n+1]]&15;return t},YBe={1:vL(()=>ASe("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:vL(()=>ASe("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))}}}),CZt,$$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/minimap/minimapCharRendererFactory.js"(){W$n(),wZt(),U$n(),Zpe(),CZt=class _ae{static create(t,n){if(this.lastCreated&&t===this.lastCreated.scale&&n===this.lastFontFamily)return this.lastCreated;let i;return YBe[t]?i=new GBe(YBe[t](),t):i=_ae.createFromSampleData(_ae.createSampleData(n).data,t),this.lastFontFamily=n,this.lastCreated=i,i}static createSampleData(t){const n=document.createElement("canvas"),i=n.getContext("2d");n.style.height="16px",n.height=16,n.width=960,n.style.width="960px",i.fillStyle="#ffffff",i.font=`bold 16px ${t}`,i.textBaseline="middle";let r=0;for(const o of bZt)i.fillText(String.fromCharCode(o),r,16/2),r+=10;return i.getImageData(0,0,960,16)}static createFromSampleData(t,n){if(t.length!==61440)throw new Error("Unexpected source in MinimapCharRenderer");const r=_ae._downsample(t,n);return new GBe(r,n)}static _downsampleChar(t,n,i,r,o){const s=1*o,a=2*o;let l=r,c=0;for(let u=0;u<a;u++){const d=u/a*16,h=(u+1)/a*16;for(let f=0;f<s;f++){const p=f/s*10,g=(f+1)/s*10;let m=0,v=0;for(let b=d;b<h;b++){const w=n+Math.floor(b)*3840,E=1-(b-Math.floor(b));for(let A=p;A<g;A++){const D=1-(A-Math.floor(A)),T=w+Math.floor(A)*4,M=D*E;v+=M,m+=t[T]*t[T+3]/255*M}}const y=m/v;c=Math.max(c,y),i[l++]=Uue(y)}}return c}static _downsample(t,n){const i=2*n*1*n,r=i*96,o=new Uint8ClampedArray(r);let s=0,a=0,l=0;for(let c=0;c<96;c++)l=Math.max(l,this._downsampleChar(t,a,o,s,n)),s+=i,a+=40;if(l>0){const c=255/l;for(let u=0;u<r;u++)o[u]*=c}return o}}}}),BUe,SZt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/fonts.js"(){Xr(),BUe=Ch?'"Segoe WPC", "Segoe UI", sans-serif':xo?"-apple-system, BlinkMacSystemFont, sans-serif":'system-ui, "Ubuntu", "Droid Sans", sans-serif'}}),xpt,Ept,DSe,Apt,TSe,kSe,Dpt,ISe,xZt,Tpt,LSe,q$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/minimap/minimap.js"(){var e;H$n(),Fn(),_d(),YK(),Nt(),Xr(),Ki(),PUe(),Cg(),Su(),Dn(),vZt(),yZt(),KC(),ll(),zs(),Q0(),$$n(),U2(),kh(),SZt(),xpt=140,Ept=2,DSe=class wae{constructor(n,i,r){const o=n.options,s=o.get(144),a=o.get(146),l=a.minimap,c=o.get(50),u=o.get(73);this.renderMinimap=l.renderMinimap,this.size=u.size,this.minimapHeightIsEditorHeight=l.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=o.get(106),this.paddingTop=o.get(84).top,this.paddingBottom=o.get(84).bottom,this.showSlider=u.showSlider,this.autohide=u.autohide,this.pixelRatio=s,this.typicalHalfwidthCharacterWidth=c.typicalHalfwidthCharacterWidth,this.lineHeight=o.get(67),this.minimapLeft=l.minimapLeft,this.minimapWidth=l.minimapWidth,this.minimapHeight=a.height,this.canvasInnerWidth=l.minimapCanvasInnerWidth,this.canvasInnerHeight=l.minimapCanvasInnerHeight,this.canvasOuterWidth=l.minimapCanvasOuterWidth,this.canvasOuterHeight=l.minimapCanvasOuterHeight,this.isSampling=l.minimapIsSampling,this.editorHeight=a.height,this.fontScale=l.minimapScale,this.minimapLineHeight=l.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.sectionHeaderFontFamily=BUe,this.sectionHeaderFontSize=u.sectionHeaderFontSize*s,this.sectionHeaderLetterSpacing=u.sectionHeaderLetterSpacing,this.sectionHeaderFontColor=wae._getSectionHeaderColor(i,r.getColor(1)),this.charRenderer=vL(()=>CZt.create(this.fontScale,c.fontFamily)),this.defaultBackgroundColor=r.getColor(2),this.backgroundColor=wae._getMinimapBackground(i,this.defaultBackgroundColor),this.foregroundAlpha=wae._getMinimapForegroundOpacity(i)}static _getMinimapBackground(n,i){const r=n.getColor(U3t);return r?new HI(r.rgba.r,r.rgba.g,r.rgba.b,Math.round(255*r.rgba.a)):i}static _getMinimapForegroundOpacity(n){const i=n.getColor($3t);return i?HI._clamp(Math.round(255*i.rgba.a)):255}static _getSectionHeaderColor(n,i){const r=n.getColor(K1);return r?new HI(r.rgba.r,r.rgba.g,r.rgba.b,Math.round(255*r.rgba.a)):i}equals(n){return this.renderMinimap===n.renderMinimap&&this.size===n.size&&this.minimapHeightIsEditorHeight===n.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===n.scrollBeyondLastLine&&this.paddingTop===n.paddingTop&&this.paddingBottom===n.paddingBottom&&this.showSlider===n.showSlider&&this.autohide===n.autohide&&this.pixelRatio===n.pixelRatio&&this.typicalHalfwidthCharacterWidth===n.typicalHalfwidthCharacterWidth&&this.lineHeight===n.lineHeight&&this.minimapLeft===n.minimapLeft&&this.minimapWidth===n.minimapWidth&&this.minimapHeight===n.minimapHeight&&this.canvasInnerWidth===n.canvasInnerWidth&&this.canvasInnerHeight===n.canvasInnerHeight&&this.canvasOuterWidth===n.canvasOuterWidth&&this.canvasOuterHeight===n.canvasOuterHeight&&this.isSampling===n.isSampling&&this.editorHeight===n.editorHeight&&this.fontScale===n.fontScale&&this.minimapLineHeight===n.minimapLineHeight&&this.minimapCharWidth===n.minimapCharWidth&&this.sectionHeaderFontSize===n.sectionHeaderFontSize&&this.sectionHeaderLetterSpacing===n.sectionHeaderLetterSpacing&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(n.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(n.backgroundColor)&&this.foregroundAlpha===n.foregroundAlpha}},Apt=class Cae{constructor(n,i,r,o,s,a,l,c,u){this.scrollTop=n,this.scrollHeight=i,this.sliderNeeded=r,this._computedSliderRatio=o,this.sliderTop=s,this.sliderHeight=a,this.topPaddingLineCount=l,this.startLineNumber=c,this.endLineNumber=u}getDesiredScrollTopFromDelta(n){return Math.round(this.scrollTop+n/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(n){return Math.round((n-this.sliderHeight/2)/this._computedSliderRatio)}intersectWithViewport(n){const i=Math.max(this.startLineNumber,n.startLineNumber),r=Math.min(this.endLineNumber,n.endLineNumber);return i>r?null:[i,r]}getYForLineNumber(n,i){return+(n-this.startLineNumber+this.topPaddingLineCount)*i}static create(n,i,r,o,s,a,l,c,u,d,h){const f=n.pixelRatio,p=n.minimapLineHeight,g=Math.floor(n.canvasInnerHeight/p),m=n.lineHeight;if(n.minimapHeightIsEditorHeight){let D=c*n.lineHeight+n.paddingTop+n.paddingBottom;n.scrollBeyondLastLine&&(D+=Math.max(0,s-n.lineHeight-n.paddingBottom));const T=Math.max(1,Math.floor(s*s/D)),M=Math.max(0,n.minimapHeight-T),P=M/(d-s),F=u*P,N=M>0,j=Math.floor(n.canvasInnerHeight/n.minimapLineHeight),W=Math.floor(n.paddingTop/n.lineHeight);return new Cae(u,d,N,P,F,T,W,1,Math.min(l,j))}let v;if(a&&r!==l){const D=r-i+1;v=Math.floor(D*p/f)}else{const D=s/m;v=Math.floor(D*p/f)}const y=Math.floor(n.paddingTop/m);let b=Math.floor(n.paddingBottom/m);if(n.scrollBeyondLastLine){const D=s/m;b=Math.max(b,D-1)}let w;if(b>0){const D=s/m;w=(y+l+b-D-1)*p/f}else w=Math.max(0,(y+l)*p/f-v);w=Math.min(n.minimapHeight-v,w);const E=w/(d-s),A=u*E;if(g>=y+l+b){const D=w>0;return new Cae(u,d,D,E,A,v,y,1,l)}else{let D;i>1?D=i+y:D=Math.max(1,u/m);let T,M=Math.max(1,Math.floor(D-A*f/p));M<y?(T=y-M+1,M=1):(T=0,M=Math.max(1,M-y)),h&&h.scrollHeight===d&&(h.scrollTop>u&&(M=Math.min(M,h.startLineNumber),T=Math.max(T,h.topPaddingLineCount)),h.scrollTop<u&&(M=Math.max(M,h.startLineNumber),T=Math.min(T,h.topPaddingLineCount)));const P=Math.min(l,M-T+g-1),F=(u-o)/m;let N;return u>=n.paddingTop?N=(i-M+T+F)*p/f:N=u/n.paddingTop*(T+F)*p/f,new Cae(u,d,!0,E,N,v,T,M,P)}}},TSe=(e=class{constructor(n){this.dy=n}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}},e.INVALID=new e(-1),e),kSe=class{constructor(t,n,i){this.renderedLayout=t,this._imageData=n,this._renderedLines=new qBe({createLine:()=>TSe.INVALID}),this._renderedLines._set(t.startLineNumber,i)}linesEquals(t){if(!this.scrollEquals(t))return!1;const i=this._renderedLines._get().lines;for(let r=0,o=i.length;r<o;r++)if(i[r].dy===-1)return!1;return!0}scrollEquals(t){return this.renderedLayout.startLineNumber===t.startLineNumber&&this.renderedLayout.endLineNumber===t.endLineNumber}_get(){const t=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:t.rendLineNumberStart,lines:t.lines}}onLinesChanged(t,n){return this._renderedLines.onLinesChanged(t,n)}onLinesDeleted(t,n){this._renderedLines.onLinesDeleted(t,n)}onLinesInserted(t,n){this._renderedLines.onLinesInserted(t,n)}onTokensChanged(t){return this._renderedLines.onTokensChanged(t)}},Dpt=class EZt{constructor(n,i,r,o){this._backgroundFillData=EZt._createBackgroundFillData(i,r,o),this._buffers=[n.createImageData(i,r),n.createImageData(i,r)],this._lastUsedBuffer=0}getBuffer(){this._lastUsedBuffer=1-this._lastUsedBuffer;const n=this._buffers[this._lastUsedBuffer];return n.data.set(this._backgroundFillData),n}static _createBackgroundFillData(n,i,r){const o=r.r,s=r.g,a=r.b,l=r.a,c=new Uint8ClampedArray(n*i*4);let u=0;for(let d=0;d<i;d++)for(let h=0;h<n;h++)c[u]=o,c[u+1]=s,c[u+2]=a,c[u+3]=l,u+=4;return c}},ISe=class QBe{static compute(n,i,r){if(n.renderMinimap===0||!n.isSampling)return[null,[]];const{minimapLineCount:o}=S5e.computeContainedMinimapLineCount({viewLineCount:i,scrollBeyondLastLine:n.scrollBeyondLastLine,paddingTop:n.paddingTop,paddingBottom:n.paddingBottom,height:n.editorHeight,lineHeight:n.lineHeight,pixelRatio:n.pixelRatio}),s=i/o,a=s/2;if(!r||r.minimapLines.length===0){const v=[];if(v[0]=1,o>1){for(let y=0,b=o-1;y<b;y++)v[y]=Math.round(y*s+a);v[o-1]=i}return[new QBe(s,v),[]]}const l=r.minimapLines,c=l.length,u=[];let d=0,h=0,f=1;const p=10;let g=[],m=null;for(let v=0;v<o;v++){const y=Math.max(f,Math.round(v*s)),b=Math.max(y,Math.round((v+1)*s));for(;d<c&&l[d]<y;){if(g.length<p){const E=d+1+h;m&&m.type==="deleted"&&m._oldIndex===d-1?m.deleteToLineNumber++:(m={type:"deleted",_oldIndex:d,deleteFromLineNumber:E,deleteToLineNumber:E},g.push(m)),h--}d++}let w;if(d<c&&l[d]<=b)w=l[d],d++;else if(v===0?w=1:v+1===o?w=i:w=Math.round(v*s+a),g.length<p){const E=d+1+h;m&&m.type==="inserted"&&m._i===v-1?m.insertToLineNumber++:(m={type:"inserted",_i:v,insertFromLineNumber:E,insertToLineNumber:E},g.push(m)),h++}u[v]=w,f=w}if(g.length<p)for(;d<c;){const v=d+1+h;m&&m.type==="deleted"&&m._oldIndex===d-1?m.deleteToLineNumber++:(m={type:"deleted",_oldIndex:d,deleteFromLineNumber:v,deleteToLineNumber:v},g.push(m)),h--,d++}else g=[{type:"flush"}];return[new QBe(s,u),g]}constructor(n,i){this.samplingRatio=n,this.minimapLines=i}modelLineToMinimapLine(n){return Math.min(this.minimapLines.length,Math.max(1,Math.round(n/this.samplingRatio)))}modelLineRangeToMinimapLineRange(n,i){let r=this.modelLineToMinimapLine(n)-1;for(;r>0&&this.minimapLines[r-1]>=n;)r--;let o=this.modelLineToMinimapLine(i)-1;for(;o+1<this.minimapLines.length&&this.minimapLines[o+1]<=i;)o++;if(r===o){const s=this.minimapLines[r];if(s<n||s>i)return null}return[r+1,o+1]}decorationLineRangeToMinimapLineRange(n,i){let r=this.modelLineToMinimapLine(n),o=this.modelLineToMinimapLine(i);return n!==i&&o===r&&(o===this.minimapLines.length?r>1&&r--:o++),[r,o]}onLinesDeleted(n){const i=n.toLineNumber-n.fromLineNumber+1;let r=this.minimapLines.length,o=0;for(let s=this.minimapLines.length-1;s>=0&&!(this.minimapLines[s]<n.fromLineNumber);s--)this.minimapLines[s]<=n.toLineNumber?(this.minimapLines[s]=Math.max(1,n.fromLineNumber-1),r=Math.min(r,s),o=Math.max(o,s)):this.minimapLines[s]-=i;return[r,o]}onLinesInserted(n){const i=n.toLineNumber-n.fromLineNumber+1;for(let r=this.minimapLines.length-1;r>=0&&!(this.minimapLines[r]<n.fromLineNumber);r--)this.minimapLines[r]+=i}},xZt=class extends ym{constructor(t){super(t),this._sectionHeaderCache=new WC(10,1.5),this.tokensColorTracker=FUe.getInstance(),this._selections=[],this._minimapSelections=null,this.options=new DSe(this._context.configuration,this._context.theme,this.tokensColorTracker);const[n]=ISe.compute(this.options,this._context.viewModel.getLineCount(),null);this._samplingState=n,this._shouldCheckSampling=!1,this._actual=new Tpt(t.theme,this)}dispose(){this._actual.dispose(),super.dispose()}getDomNode(){return this._actual.getDomNode()}_onOptionsMaybeChanged(){const t=new DSe(this._context.configuration,this._context.theme,this.tokensColorTracker);return this.options.equals(t)?!1:(this.options=t,this._recreateLineSampling(),this._actual.onDidChangeOptions(),!0)}onConfigurationChanged(t){return this._onOptionsMaybeChanged()}onCursorStateChanged(t){return this._selections=t.selections,this._minimapSelections=null,this._actual.onSelectionChanged()}onDecorationsChanged(t){return t.affectsMinimap?this._actual.onDecorationsChanged():!1}onFlushed(t){return this._samplingState&&(this._shouldCheckSampling=!0),this._actual.onFlushed()}onLinesChanged(t){if(this._samplingState){const n=this._samplingState.modelLineRangeToMinimapLineRange(t.fromLineNumber,t.fromLineNumber+t.count-1);return n?this._actual.onLinesChanged(n[0],n[1]-n[0]+1):!1}else return this._actual.onLinesChanged(t.fromLineNumber,t.count)}onLinesDeleted(t){if(this._samplingState){const[n,i]=this._samplingState.onLinesDeleted(t);return n<=i&&this._actual.onLinesChanged(n+1,i-n+1),this._shouldCheckSampling=!0,!0}else return this._actual.onLinesDeleted(t.fromLineNumber,t.toLineNumber)}onLinesInserted(t){return this._samplingState?(this._samplingState.onLinesInserted(t),this._shouldCheckSampling=!0,!0):this._actual.onLinesInserted(t.fromLineNumber,t.toLineNumber)}onScrollChanged(t){return this._actual.onScrollChanged()}onThemeChanged(t){return this._actual.onThemeChanged(),this._onOptionsMaybeChanged(),!0}onTokensChanged(t){if(this._samplingState){const n=[];for(const i of t.ranges){const r=this._samplingState.modelLineRangeToMinimapLineRange(i.fromLineNumber,i.toLineNumber);r&&n.push({fromLineNumber:r[0],toLineNumber:r[1]})}return n.length?this._actual.onTokensChanged(n):!1}else return this._actual.onTokensChanged(t.ranges)}onTokensColorsChanged(t){return this._onOptionsMaybeChanged(),this._actual.onTokensColorsChanged()}onZonesChanged(t){return this._actual.onZonesChanged()}prepareRender(t){this._shouldCheckSampling&&(this._shouldCheckSampling=!1,this._recreateLineSampling())}render(t){let n=t.visibleRange.startLineNumber,i=t.visibleRange.endLineNumber;this._samplingState&&(n=this._samplingState.modelLineToMinimapLine(n),i=this._samplingState.modelLineToMinimapLine(i));const r={viewportContainsWhitespaceGaps:t.viewportData.whitespaceViewportData.length>0,scrollWidth:t.scrollWidth,scrollHeight:t.scrollHeight,viewportStartLineNumber:n,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:t.getVerticalOffsetForLineNumber(n),scrollTop:t.scrollTop,scrollLeft:t.scrollLeft,viewportWidth:t.viewportWidth,viewportHeight:t.viewportHeight};this._actual.render(r)}_recreateLineSampling(){this._minimapSelections=null;const t=!!this._samplingState,[n,i]=ISe.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=n,t&&this._samplingState)for(const r of i)switch(r.type){case"deleted":this._actual.onLinesDeleted(r.deleteFromLineNumber,r.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(r.insertFromLineNumber,r.insertToLineNumber);break;case"flush":this._actual.onFlushed();break}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(t){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[t-1]):this._context.viewModel.getLineContent(t)}getLineMaxColumn(t){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[t-1]):this._context.viewModel.getLineMaxColumn(t)}getMinimapLinesRenderingData(t,n,i){if(this._samplingState){const r=[];for(let o=0,s=n-t+1;o<s;o++)i[o]?r[o]=this._context.viewModel.getViewLineData(this._samplingState.minimapLines[t+o-1]):r[o]=null;return r}return this._context.viewModel.getMinimapLinesRenderingData(t,n,i).data}getSelections(){if(this._minimapSelections===null)if(this._samplingState){this._minimapSelections=[];for(const t of this._selections){const[n,i]=this._samplingState.decorationLineRangeToMinimapLineRange(t.startLineNumber,t.endLineNumber);this._minimapSelections.push(new Ii(n,t.startColumn,i,t.endColumn))}}else this._minimapSelections=this._selections;return this._minimapSelections}getMinimapDecorationsInViewport(t,n){const i=this._getMinimapDecorationsInViewport(t,n).filter(r=>!r.options.minimap?.sectionHeaderStyle);if(this._samplingState){const r=[];for(const o of i){if(!o.options.minimap)continue;const s=o.range,a=this._samplingState.modelLineToMinimapLine(s.startLineNumber),l=this._samplingState.modelLineToMinimapLine(s.endLineNumber);r.push(new yUe(new Re(a,s.startColumn,l,s.endColumn),o.options))}return r}return i}getSectionHeaderDecorationsInViewport(t,n){const i=this.options.minimapLineHeight,o=this.options.sectionHeaderFontSize/i;return t=Math.floor(Math.max(1,t-o)),this._getMinimapDecorationsInViewport(t,n).filter(s=>!!s.options.minimap?.sectionHeaderStyle)}_getMinimapDecorationsInViewport(t,n){let i;if(this._samplingState){const r=this._samplingState.minimapLines[t-1],o=this._samplingState.minimapLines[n-1];i=new Re(r,1,o,this._context.viewModel.getLineMaxColumn(o))}else i=new Re(t,1,n,this._context.viewModel.getLineMaxColumn(n));return this._context.viewModel.getMinimapDecorationsInRange(i)}getSectionHeaderText(t,n){const i=t.options.minimap?.sectionHeaderText;if(!i)return null;const r=this._sectionHeaderCache.get(i);if(r)return r;const o=n(i);return this._sectionHeaderCache.set(i,o),o}getOptions(){return this._context.viewModel.model.getOptions()}revealLineNumber(t){this._samplingState&&(t=this._samplingState.minimapLines[t-1]),this._context.viewModel.revealRange("mouse",!1,new Re(t,1,t,1),1,0)}setScrollTop(t){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:t},1)}},Tpt=class yW extends St{constructor(n,i){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=n,this._model=i,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor(r5e),this._domNode=Ds(document.createElement("div")),J_.write(this._domNode,9),this._domNode.setClassName(this._getMinimapDomNodeClassName()),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._shadow=Ds(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=Ds(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=Ds(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=Ds(document.createElement("div")),this._slider.setPosition("absolute"),this._slider.setClassName("minimap-slider"),this._slider.setLayerHinting(!0),this._slider.setContain("strict"),this._domNode.appendChild(this._slider),this._sliderHorizontal=Ds(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._pointerDownListener=Il(this._domNode.domNode,kn.POINTER_DOWN,r=>{if(r.preventDefault(),this._model.options.renderMinimap===0||!this._lastRenderData)return;if(this._model.options.size!=="proportional"){if(r.button===0&&this._lastRenderData){const u=_c(this._slider.domNode),d=u.top+u.height/2;this._startSliderDragging(r,d,this._lastRenderData.renderedLayout)}return}const s=this._model.options.minimapLineHeight,a=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*r.offsetY;let c=Math.floor(a/s)+this._lastRenderData.renderedLayout.startLineNumber-this._lastRenderData.renderedLayout.topPaddingLineCount;c=Math.min(c,this._model.getLineCount()),this._model.revealLineNumber(c)}),this._sliderPointerMoveMonitor=new KR,this._sliderPointerDownListener=Il(this._slider.domNode,kn.POINTER_DOWN,r=>{r.preventDefault(),r.stopPropagation(),r.button===0&&this._lastRenderData&&this._startSliderDragging(r,r.pageY,this._lastRenderData.renderedLayout)}),this._gestureDisposable=Ap.addTarget(this._domNode.domNode),this._sliderTouchStartListener=qt(this._domNode.domNode,Wa.Start,r=>{r.preventDefault(),r.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(r))},{passive:!1}),this._sliderTouchMoveListener=qt(this._domNode.domNode,Wa.Change,r=>{r.preventDefault(),r.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(r)},{passive:!1}),this._sliderTouchEndListener=Il(this._domNode.domNode,Wa.End,r=>{r.preventDefault(),r.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)})}_startSliderDragging(n,i,r){if(!n.target||!(n.target instanceof Element))return;const o=n.pageX;this._slider.toggleClassName("active",!0);const s=(a,l)=>{const c=_c(this._domNode.domNode),u=Math.min(Math.abs(l-o),Math.abs(l-c.left),Math.abs(l-c.left-c.width));if(Ch&&u>xpt){this._model.setScrollTop(r.scrollTop);return}const d=a-i;this._model.setScrollTop(r.getDesiredScrollTopFromDelta(d))};n.pageY!==i&&s(n.pageY,o),this._sliderPointerMoveMonitor.startMonitoring(n.target,n.pointerId,n.buttons,a=>s(a.pageY,a.pageX),()=>{this._slider.toggleClassName("active",!1)})}scrollDueToTouchEvent(n){const i=this._domNode.domNode.getBoundingClientRect().top,r=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(n.pageY-i);this._model.setScrollTop(r)}dispose(){this._pointerDownListener.dispose(),this._sliderPointerMoveMonitor.dispose(),this._sliderPointerDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){const n=["minimap"];return this._model.options.showSlider==="always"?n.push("slider-always"):n.push("slider-mouseover"),this._model.options.autohide&&n.push("autohide"),n.join(" ")}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new Dpt(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(n,i){return this._lastRenderData?this._lastRenderData.onLinesChanged(n,i):!1}onLinesDeleted(n,i){return this._lastRenderData?.onLinesDeleted(n,i),!0}onLinesInserted(n,i){return this._lastRenderData?.onLinesInserted(n,i),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(r5e),this._renderDecorations=!0,!0}onTokensChanged(n){return this._lastRenderData?this._lastRenderData.onTokensChanged(n):!1}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(n){if(this._model.options.renderMinimap===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}n.scrollLeft+n.viewportWidth>=n.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const r=Apt.create(this._model.options,n.viewportStartLineNumber,n.viewportEndLineNumber,n.viewportStartLineNumberVerticalOffset,n.viewportHeight,n.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),n.scrollTop,n.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(r.sliderNeeded?"block":"none"),this._slider.setTop(r.sliderTop),this._slider.setHeight(r.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(r.sliderHeight),this.renderDecorations(r),this._lastRenderData=this.renderLines(r)}renderDecorations(n){if(this._renderDecorations){this._renderDecorations=!1;const i=this._model.getSelections();i.sort(Re.compareRangesUsingStarts);const r=this._model.getMinimapDecorationsInViewport(n.startLineNumber,n.endLineNumber);r.sort((f,p)=>(f.options.zIndex||0)-(p.options.zIndex||0));const{canvasInnerWidth:o,canvasInnerHeight:s}=this._model.options,a=this._model.options.minimapLineHeight,l=this._model.options.minimapCharWidth,c=this._model.getOptions().tabSize,u=this._decorationsCanvas.domNode.getContext("2d");u.clearRect(0,0,o,s);const d=new LSe(n.startLineNumber,n.endLineNumber,!1);this._renderSelectionLineHighlights(u,i,d,n,a),this._renderDecorationsLineHighlights(u,r,d,n,a);const h=new LSe(n.startLineNumber,n.endLineNumber,null);this._renderSelectionsHighlights(u,i,h,n,a,c,l,o),this._renderDecorationsHighlights(u,r,h,n,a,c,l,o),this._renderSectionHeaders(n)}}_renderSelectionLineHighlights(n,i,r,o,s){if(!this._selectionColor||this._selectionColor.isTransparent())return;n.fillStyle=this._selectionColor.transparent(.5).toString();let a=0,l=0;for(const c of i){const u=o.intersectWithViewport(c);if(!u)continue;const[d,h]=u;for(let g=d;g<=h;g++)r.set(g,!0);const f=o.getYForLineNumber(d,s),p=o.getYForLineNumber(h,s);l>=f||(l>a&&n.fillRect(_1,a,n.canvas.width,l-a),a=f),l=p}l>a&&n.fillRect(_1,a,n.canvas.width,l-a)}_renderDecorationsLineHighlights(n,i,r,o,s){const a=new Map;for(let l=i.length-1;l>=0;l--){const c=i[l],u=c.options.minimap;if(!u||u.position!==1)continue;const d=o.intersectWithViewport(c.range);if(!d)continue;const[h,f]=d,p=u.getColor(this._theme.value);if(!p||p.isTransparent())continue;let g=a.get(p.toString());g||(g=p.transparent(.5).toString(),a.set(p.toString(),g)),n.fillStyle=g;for(let m=h;m<=f;m++){if(r.has(m))continue;r.set(m,!0);const v=o.getYForLineNumber(h,s);n.fillRect(_1,v,n.canvas.width,s)}}}_renderSelectionsHighlights(n,i,r,o,s,a,l,c){if(!(!this._selectionColor||this._selectionColor.isTransparent()))for(const u of i){const d=o.intersectWithViewport(u);if(!d)continue;const[h,f]=d;for(let p=h;p<=f;p++)this.renderDecorationOnLine(n,r,u,this._selectionColor,o,p,s,s,a,l,c)}}_renderDecorationsHighlights(n,i,r,o,s,a,l,c){for(const u of i){const d=u.options.minimap;if(!d)continue;const h=o.intersectWithViewport(u.range);if(!h)continue;const[f,p]=h,g=d.getColor(this._theme.value);if(!(!g||g.isTransparent()))for(let m=f;m<=p;m++)switch(d.position){case 1:this.renderDecorationOnLine(n,r,u.range,g,o,m,s,s,a,l,c);continue;case 2:{const v=o.getYForLineNumber(m,s);this.renderDecoration(n,g,2,v,Ept,s);continue}}}}renderDecorationOnLine(n,i,r,o,s,a,l,c,u,d,h){const f=s.getYForLineNumber(a,c);if(f+l<0||f>this._model.options.canvasInnerHeight)return;const{startLineNumber:p,endLineNumber:g}=r,m=p===a?r.startColumn:1,v=g===a?r.endColumn:this._model.getLineMaxColumn(a),y=this.getXOffsetForPosition(i,a,m,u,d,h),b=this.getXOffsetForPosition(i,a,v,u,d,h);this.renderDecoration(n,o,y,f,b-y,l)}getXOffsetForPosition(n,i,r,o,s,a){if(r===1)return _1;if((r-1)*s>=a)return a;let c=n.get(i);if(!c){const u=this._model.getLineContent(i);c=[_1];let d=_1;for(let h=1;h<u.length+1;h++){const f=u.charCodeAt(h-1),p=f===9?o*s:IL(f)?2*s:s,g=d+p;if(g>=a){c[h]=a;break}c[h]=g,d=g}n.set(i,c)}return r-1<c.length?c[r-1]:a}renderDecoration(n,i,r,o,s,a){n.fillStyle=i&&i.toString()||"",n.fillRect(r,o,s,a)}_renderSectionHeaders(n){const i=this._model.options.minimapLineHeight,r=this._model.options.sectionHeaderFontSize,o=this._model.options.sectionHeaderLetterSpacing,s=r*1.5,{canvasInnerWidth:a}=this._model.options,l=this._model.options.backgroundColor,c=`rgb(${l.r} ${l.g} ${l.b} / .7)`,u=this._model.options.sectionHeaderFontColor,d=`rgb(${u.r} ${u.g} ${u.b})`,h=d,f=this._decorationsCanvas.domNode.getContext("2d");f.letterSpacing=o+"px",f.font="500 "+r+"px "+this._model.options.sectionHeaderFontFamily,f.strokeStyle=h,f.lineWidth=.2;const p=this._model.getSectionHeaderDecorationsInViewport(n.startLineNumber,n.endLineNumber);p.sort((m,v)=>m.range.startLineNumber-v.range.startLineNumber);const g=yW._fitSectionHeader.bind(null,f,a-_1);for(const m of p){const v=n.getYForLineNumber(m.range.startLineNumber,i)+r,y=v-r,b=y+2,w=this._model.getSectionHeaderText(m,g);yW._renderSectionLabel(f,w,m.options.minimap?.sectionHeaderStyle===2,c,d,a,y,s,v,b)}}static _fitSectionHeader(n,i,r){if(!r)return r;const o="…",s=n.measureText(r).width,a=n.measureText(o).width;if(s<=i||s<=a)return r;const l=r.length,c=s/r.length,u=Math.floor((i-a)/c)-1;let d=Math.ceil(u/2);for(;d>0&&/\s/.test(r[d-1]);)--d;return r.substring(0,d)+o+r.substring(l-(u-d))}static _renderSectionLabel(n,i,r,o,s,a,l,c,u,d){i&&(n.fillStyle=o,n.fillRect(0,l,a,c),n.fillStyle=s,n.fillText(i,_1,u)),r&&(n.beginPath(),n.moveTo(0,d),n.lineTo(a,d),n.closePath(),n.stroke())}renderLines(n){const i=n.startLineNumber,r=n.endLineNumber,o=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(n)){const ee=this._lastRenderData._get();return new kSe(n,ee.imageData,ee.lines)}const s=this._getBuffer();if(!s)return null;const[a,l,c]=yW._renderUntouchedLines(s,n.topPaddingLineCount,i,r,o,this._lastRenderData),u=this._model.getMinimapLinesRenderingData(i,r,c),d=this._model.getOptions().tabSize,h=this._model.options.defaultBackgroundColor,f=this._model.options.backgroundColor,p=this._model.options.foregroundAlpha,g=this._model.tokensColorTracker,m=g.backgroundIsLight(),v=this._model.options.renderMinimap,y=this._model.options.charRenderer(),b=this._model.options.fontScale,w=this._model.options.minimapCharWidth,A=(v===1?2:3)*b,D=o>A?Math.floor((o-A)/2):0,T=f.a/255,M=new HI(Math.round((f.r-h.r)*T+h.r),Math.round((f.g-h.g)*T+h.g),Math.round((f.b-h.b)*T+h.b),255);let P=n.topPaddingLineCount*o;const F=[];for(let ee=0,Q=r-i+1;ee<Q;ee++)c[ee]&&yW._renderLine(s,M,f.a,m,v,w,g,p,y,P,D,d,u[ee],b,o),F[ee]=new TSe(P),P+=o;const N=a===-1?0:a,W=(l===-1?s.height:l)-N;return this._canvas.domNode.getContext("2d").putImageData(s,0,0,0,N,s.width,W),new kSe(n,s,F)}static _renderUntouchedLines(n,i,r,o,s,a){const l=[];if(!a){for(let P=0,F=o-r+1;P<F;P++)l[P]=!0;return[-1,-1,l]}const c=a._get(),u=c.imageData.data,d=c.rendLineNumberStart,h=c.lines,f=h.length,p=n.width,g=n.data,m=(o-r+1)*s*p*4;let v=-1,y=-1,b=-1,w=-1,E=-1,A=-1,D=i*s;for(let P=r;P<=o;P++){const F=P-r,N=P-d,j=N>=0&&N<f?h[N].dy:-1;if(j===-1){l[F]=!0,D+=s;continue}const W=j*p*4,J=(j+s)*p*4,ee=D*p*4,Q=(D+s)*p*4;w===W&&A===ee?(w=J,A=Q):(b!==-1&&(g.set(u.subarray(b,w),E),v===-1&&b===0&&b===E&&(v=w),y===-1&&w===m&&b===E&&(y=b)),b=W,w=J,E=ee,A=Q),l[F]=!1,D+=s}b!==-1&&(g.set(u.subarray(b,w),E),v===-1&&b===0&&b===E&&(v=w),y===-1&&w===m&&b===E&&(y=b));const T=v===-1?-1:v/(p*4),M=y===-1?-1:y/(p*4);return[T,M,l]}static _renderLine(n,i,r,o,s,a,l,c,u,d,h,f,p,g,m){const v=p.content,y=p.tokens,b=n.width-a,w=m===1;let E=_1,A=0,D=0;for(let T=0,M=y.getCount();T<M;T++){const P=y.getEndOffset(T),F=y.getForeground(T),N=l.getColor(F);for(;A<P;A++){if(E>b)return;const j=v.charCodeAt(A);if(j===9){const W=f-(A+D)%f;D+=W-1,E+=W*a}else if(j===32)E+=a;else{const W=IL(j)?2:1;for(let J=0;J<W;J++)if(s===2?u.blockRenderChar(n,E,d+h,N,c,i,r,w):u.renderChar(n,E,d+h,j,N,c,i,r,g,o,w),E+=a,E>b)return}}}}},LSe=class{constructor(t,n,i){this._startLineNumber=t,this._endLineNumber=n,this._defaultValue=i,this._values=[];for(let r=0,o=this._endLineNumber-this._startLineNumber+1;r<o;r++)this._values[r]=i}has(t){return this.get(t)!==this._defaultValue}set(t,n){t<this._startLineNumber||t>this._endLineNumber||(this._values[t-this._startLineNumber]=n)}get(t){return t<this._startLineNumber||t>this._endLineNumber?this._defaultValue:this._values[t-this._startLineNumber]}}}}),G$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.css"(){}}),AZt,K$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js"(){G$n(),_d(),Cg(),Fn(),AZt=class extends ym{constructor(e,t){super(e),this._viewDomNode=t;const i=this._context.configuration.options.get(146);this._widgets={},this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,this._viewDomNodeRect={top:0,left:0,width:0,height:0},this._domNode=Ds(document.createElement("div")),J_.write(this._domNode,4),this._domNode.setClassName("overlayWidgets"),this.overflowingOverlayWidgetsDomNode=Ds(document.createElement("div")),J_.write(this.overflowingOverlayWidgetsDomNode,5),this.overflowingOverlayWidgetsDomNode.setClassName("overflowingOverlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const n=this._context.configuration.options.get(146);return this._verticalScrollbarWidth=n.verticalScrollbarWidth,this._minimapWidth=n.minimap.minimapWidth,this._horizontalScrollbarHeight=n.horizontalScrollbarHeight,this._editorHeight=n.height,this._editorWidth=n.width,!0}addWidget(e){const t=Ds(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),e.allowEditorOverflow?this.overflowingOverlayWidgetsDomNode.appendChild(t):this._domNode.appendChild(t),this.setShouldRender(),this._updateMaxMinWidth()}setWidgetPosition(e,t){const n=this._widgets[e.getId()],i=t?t.preference:null,r=t?.stackOridinal;return n.preference===i&&n.stack===r?(this._updateMaxMinWidth(),!1):(n.preference=i,n.stack=r,this.setShouldRender(),this._updateMaxMinWidth(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const i=this._widgets[t].domNode.domNode;delete this._widgets[t],i.remove(),this.setShouldRender(),this._updateMaxMinWidth()}}_updateMaxMinWidth(){let e=0;const t=Object.keys(this._widgets);for(let n=0,i=t.length;n<i;n++){const r=t[n],s=this._widgets[r].widget.getMinContentWidthInPx?.();typeof s<"u"&&(e=Math.max(e,s))}this._context.viewLayout.setOverlayWidgetsMinWidth(e)}_renderWidget(e,t){const n=e.domNode;if(e.preference===null){n.setTop("");return}const i=2*this._verticalScrollbarWidth+this._minimapWidth;if(e.preference===0||e.preference===1){if(e.preference===1){const r=n.domNode.clientHeight;n.setTop(this._editorHeight-r-2*this._horizontalScrollbarHeight)}else n.setTop(0);e.stack!==void 0?(n.setTop(t[e.preference]),t[e.preference]+=n.domNode.clientWidth):n.setRight(i)}else if(e.preference===2)n.domNode.style.right="50%",e.stack!==void 0?(n.setTop(t[2]),t[2]+=n.domNode.clientHeight):n.setTop(0);else{const{top:r,left:o}=e.preference;if(this._context.configuration.options.get(42)&&e.widget.allowEditorOverflow){const a=this._viewDomNodeRect;n.setTop(r+a.top),n.setLeft(o+a.left),n.setPosition("fixed")}else n.setTop(r),n.setLeft(o),n.setPosition("absolute")}}prepareRender(e){this._viewDomNodeRect=_c(this._viewDomNode.domNode)}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets),n=Array.from({length:3},()=>0);t.sort((i,r)=>(this._widgets[i].stack||0)-(this._widgets[r].stack||0));for(let i=0,r=t.length;i<r;i++){const o=t[i];this._renderWidget(this._widgets[o],n)}}}}}),kpt,DZt,Y$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler.js"(){_d(),ql(),Cg(),Hi(),ra(),kb(),KC(),rr(),kpt=class{constructor(e,t){const n=e.options;this.lineHeight=n.get(67),this.pixelRatio=n.get(144),this.overviewRulerLanes=n.get(83),this.renderBorder=n.get(82);const i=t.getColor(BGt);this.borderColor=i?i.toString():null,this.hideCursor=n.get(59);const r=t.getColor(JU);this.cursorColorSingle=r?r.transparent(.7).toString():null;const o=t.getColor(wWe);this.cursorColorPrimary=o?o.transparent(.7).toString():null;const s=t.getColor(CWe);this.cursorColorSecondary=s?s.transparent(.7).toString():null,this.themeType=t.type;const a=n.get(73),l=a.enabled,c=a.side,u=t.getColor(jGt),d=Hl.getDefaultBackground();u?this.backgroundColor=u:l&&c==="right"?this.backgroundColor=d:this.backgroundColor=null;const f=n.get(146).overviewRuler;this.top=f.top,this.right=f.right,this.domWidth=f.width,this.domHeight=f.height,this.overviewRulerLanes===0?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);const[p,g]=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes);this.x=p,this.w=g}_initLanes(e,t,n){const i=t-e;if(n>=3){const r=Math.floor(i/3),o=Math.floor(i/3),s=i-r-o,a=e,l=a+r,c=a+r+s;return[[0,a,l,a,c,a,l,a],[0,r,s,r+s,o,r+s+o,s+o,r+s+o]]}else if(n===2){const r=Math.floor(i/2),o=i-r,s=e,a=s+r;return[[0,s,s,s,a,s,s,s],[0,r,r,r,o,r+o,r+o,r+o]]}else{const r=e,o=i;return[[0,r,r,r,r,r,r,r],[0,o,o,o,o,o,o,o]]}}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColorSingle===e.cursorColorSingle&&this.cursorColorPrimary===e.cursorColorPrimary&&this.cursorColorSecondary===e.cursorColorSecondary&&this.themeType===e.themeType&&rn.equals(this.backgroundColor,e.backgroundColor)&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}},DZt=class extends ym{constructor(e){super(e),this._actualShouldRender=0,this._renderedDecorations=[],this._renderedCursorPositions=[],this._domNode=Ds(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=Hl.onDidChange(t=>{t.changedColorMap&&this._updateSettings(!0)}),this._cursorPositions=[{position:new mt(1,1),color:this._settings.cursorColorSingle}]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new kpt(this._context.configuration,this._context.theme);return this._settings&&this._settings.equals(t)?!1:(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)}_markRenderingIsNeeded(){return this._actualShouldRender=2,!0}_markRenderingIsMaybeNeeded(){return this._actualShouldRender=1,!0}onConfigurationChanged(e){return this._updateSettings(!1)?this._markRenderingIsNeeded():!1}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,n=e.selections.length;t<n;t++){let i=this._settings.cursorColorSingle;n>1&&(i=t===0?this._settings.cursorColorPrimary:this._settings.cursorColorSecondary),this._cursorPositions.push({position:e.selections[t].getPosition(),color:i})}return this._cursorPositions.sort((t,n)=>mt.compare(t.position,n.position)),this._markRenderingIsMaybeNeeded()}onDecorationsChanged(e){return e.affectsOverviewRuler?this._markRenderingIsMaybeNeeded():!1}onFlushed(e){return this._markRenderingIsNeeded()}onScrollChanged(e){return e.scrollHeightChanged?this._markRenderingIsNeeded():!1}onZonesChanged(e){return this._markRenderingIsNeeded()}onThemeChanged(e){return this._updateSettings(!1)?this._markRenderingIsNeeded():!1}getDomNode(){return this._domNode.domNode}prepareRender(e){}render(e){this._render(),this._actualShouldRender=0}_render(){const e=this._settings.backgroundColor;if(this._settings.overviewRulerLanes===0){this._domNode.setBackgroundColor(e?rn.Format.CSS.formatHexA(e):""),this._domNode.setDisplay("none");return}const t=this._context.viewModel.getAllOverviewRulerDecorations(this._context.theme);if(t.sort(Sde.compareByRenderingProps),this._actualShouldRender===1&&!Sde.equalsArr(this._renderedDecorations,t)&&(this._actualShouldRender=2),this._actualShouldRender===1&&!vl(this._renderedCursorPositions,this._cursorPositions,(f,p)=>f.position.lineNumber===p.position.lineNumber&&f.color===p.color)&&(this._actualShouldRender=2),this._actualShouldRender===1)return;this._renderedDecorations=t,this._renderedCursorPositions=this._cursorPositions,this._domNode.setDisplay("block");const n=this._settings.canvasWidth,i=this._settings.canvasHeight,r=this._settings.lineHeight,o=this._context.viewLayout,s=this._context.viewLayout.getScrollHeight(),a=i/s,l=6*this._settings.pixelRatio|0,c=l/2|0,u=this._domNode.domNode.getContext("2d");e?e.isOpaque()?(u.fillStyle=rn.Format.CSS.formatHexA(e),u.fillRect(0,0,n,i)):(u.clearRect(0,0,n,i),u.fillStyle=rn.Format.CSS.formatHexA(e),u.fillRect(0,0,n,i)):u.clearRect(0,0,n,i);const d=this._settings.x,h=this._settings.w;for(const f of t){const p=f.color,g=f.data;u.fillStyle=p;let m=0,v=0,y=0;for(let b=0,w=g.length/3;b<w;b++){const E=g[3*b],A=g[3*b+1],D=g[3*b+2];let T=o.getVerticalOffsetForLineNumber(A)*a|0,M=(o.getVerticalOffsetForLineNumber(D)+r)*a|0;if(M-T<l){let F=(T+M)/2|0;F<c?F=c:F+c>i&&(F=i-c),T=F-c,M=F+c}T>y+1||E!==m?(b!==0&&u.fillRect(d[m],v,h[m],y-v),m=E,v=T,y=M):M>y&&(y=M)}u.fillRect(d[m],v,h[m],y-v)}if(!this._settings.hideCursor){const f=2*this._settings.pixelRatio|0,p=f/2|0,g=this._settings.x[7],m=this._settings.w[7];let v=-100,y=-100,b=null;for(let w=0,E=this._cursorPositions.length;w<E;w++){const A=this._cursorPositions[w].color;if(!A)continue;const D=this._cursorPositions[w].position;let T=o.getVerticalOffsetForLineNumber(D.lineNumber)*a|0;T<p?T=p:T+p>i&&(T=i-p);const M=T-p,P=M+f;M>y+1||A!==b?(w!==0&&b&&u.fillRect(g,v,m,y-v),v=M,y=P):P>y&&(y=P),b=A,u.fillStyle=A}b&&u.fillRect(g,v,m,y-v)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(u.beginPath(),u.lineWidth=1,u.strokeStyle=this._settings.borderColor,u.moveTo(0,0),u.lineTo(0,i),u.moveTo(1,0),u.lineTo(n,0),u.stroke())}}}}),NSe,ZBe,TZt,kZt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/viewModel/overviewZoneManager.js"(){NSe=class{constructor(e,t,n){this._colorZoneBrand=void 0,this.from=e|0,this.to=t|0,this.colorId=n|0}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}},ZBe=class{constructor(e,t,n,i){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=n,this.color=i,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines:e.startLineNumber-t.startLineNumber:e.color<t.color?-1:1}setColorZone(e){this._colorZone=e}getColorZones(){return this._colorZone}},TZt=class{constructor(e){this._getVerticalOffsetForLine=e,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}getId2Color(){return this._id2Color}setZones(e){this._zones=e,this._zones.sort(ZBe.compare)}setLineHeight(e){return this._lineHeight===e?!1:(this._lineHeight=e,this._colorZonesInvalid=!0,!0)}setPixelRatio(e){this._pixelRatio=e,this._colorZonesInvalid=!0}getDOMWidth(){return this._domWidth}getCanvasWidth(){return this._domWidth*this._pixelRatio}setDOMWidth(e){return this._domWidth===e?!1:(this._domWidth=e,this._colorZonesInvalid=!0,!0)}getDOMHeight(){return this._domHeight}getCanvasHeight(){return this._domHeight*this._pixelRatio}setDOMHeight(e){return this._domHeight===e?!1:(this._domHeight=e,this._colorZonesInvalid=!0,!0)}getOuterHeight(){return this._outerHeight}setOuterHeight(e){return this._outerHeight===e?!1:(this._outerHeight=e,this._colorZonesInvalid=!0,!0)}resolveColorZones(){const e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),n=Math.floor(this.getCanvasHeight()),i=Math.floor(this._outerHeight),r=n/i,o=Math.floor(4*this._pixelRatio/2),s=[];for(let a=0,l=this._zones.length;a<l;a++){const c=this._zones[a];if(!e){const b=c.getColorZones();if(b){s.push(b);continue}}const u=this._getVerticalOffsetForLine(c.startLineNumber),d=c.heightInLines===0?this._getVerticalOffsetForLine(c.endLineNumber)+t:u+c.heightInLines*t,h=Math.floor(r*u),f=Math.floor(r*d);let p=Math.floor((h+f)/2),g=f-p;g<o&&(g=o),p-g<0&&(p=g),p+g>n&&(p=n-g);const m=c.color;let v=this._color2Id[m];v||(v=++this._lastAssignedId,this._color2Id[m]=v,this._id2Color[v]=m);const y=new NSe(p-g,p+g,v);c.setColorZone(y),s.push(y)}return this._colorZonesInvalid=!1,s.sort(NSe.compare),s}}}}),IZt,Q$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/overviewRuler/overviewRuler.js"(){_d(),kZt(),ZK(),IZt=class extends x7{constructor(e,t){super(),this._context=e;const n=this._context.configuration.options;this._domNode=Ds(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new TZt(i=>this._context.viewLayout.getVerticalOffsetForLineNumber(i)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(n.get(67)),this._zoneManager.setPixelRatio(n.get(144)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(67)&&(this._zoneManager.setLineHeight(t.get(67)),this._render()),e.hasChanged(144)&&(this._zoneManager.setPixelRatio(t.get(144)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(this._zoneManager.getOuterHeight()===0)return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),n=this._zoneManager.resolveColorZones(),i=this._zoneManager.getId2Color(),r=this._domNode.domNode.getContext("2d");return r.clearRect(0,0,e,t),n.length>0&&this._renderOneLane(r,n,i,e),!0}_renderOneLane(e,t,n,i){let r=0,o=0,s=0;for(const a of t){const l=a.colorId,c=a.from,u=a.to;l!==r?(e.fillRect(0,o,i,s-o),r=l,e.fillStyle=n[r],o=c,s=u):s>=c?s=Math.max(s,u):(e.fillRect(0,o,i,s-o),o=c,s=u)}e.fillRect(0,o,i,s-o)}}}}),Z$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/rulers/rulers.css"(){}}),LZt,X$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/rulers/rulers.js"(){Z$n(),_d(),Cg(),LZt=class extends ym{constructor(e){super(e),this.domNode=Ds(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(103),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(103),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e<t){const{tabSize:i}=this._context.viewModel.model.getOptions(),r=i;let o=t-e;for(;o>0;){const s=Ds(document.createElement("div"));s.setClassName("view-ruler"),s.setWidth(r),this.domNode.appendChild(s),this._renderedRulers.push(s),o--}return}let n=e-t;for(;n>0;){const i=this._renderedRulers.pop();this.domNode.removeChild(i),n--}}render(e){this._ensureRulersCount();for(let t=0,n=this._rulers.length;t<n;t++){const i=this._renderedRulers[t],r=this._rulers[t];i.setBoxShadow(r.color?`1px 0 0 0 ${r.color} inset`:""),i.setHeight(Math.min(e.scrollHeight,1e6)),i.setLeft(r.column*this._typicalHalfwidthCharacterWidth)}}}}}),J$n=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.css"(){}}),NZt,eqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.js"(){J$n(),_d(),Cg(),NZt=class extends ym{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const n=this._context.configuration.options.get(104);this._useShadows=n.useShadows,this._domNode=Ds(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e?(this._shouldShow=e,!0):!1}getDomNode(){return this._domNode}_updateWidth(){const t=this._context.configuration.options.get(146);t.minimap.renderMinimap===0||t.minimap.minimapWidth>0&&t.minimap.minimapLeft===0?this._width=t.width:this._width=t.width-t.verticalScrollbarWidth}onConfigurationChanged(e){const n=this._context.configuration.options.get(104);return this._useShadows=n.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}}}),tqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/selections/selections.css"(){}});function nqn(e){return new PZt(e)}function iqn(e){return new MZt(e.lineNumber,e.ranges.map(nqn))}function Hee(e){return e<0?-e:e}var PZt,MZt,OZt,rqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/selections/selections.js"(){var e;tqn(),sF(),ll(),Ys(),PZt=class{constructor(t){this.left=t.left,this.width=t.width,this.startStyle=null,this.endStyle=null}},MZt=class{constructor(t,n){this.lineNumber=t,this.ranges=n}},OZt=(e=class extends VN{constructor(n){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=n;const i=this._context.configuration.options;this._roundedSelection=i.get(102),this._typicalHalfwidthCharacterWidth=i.get(50).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(n){const i=this._context.configuration.options;return this._roundedSelection=i.get(102),this._typicalHalfwidthCharacterWidth=i.get(50).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(n){return this._selections=n.selections.slice(0),!0}onDecorationsChanged(n){return!0}onFlushed(n){return!0}onLinesChanged(n){return!0}onLinesDeleted(n){return!0}onLinesInserted(n){return!0}onScrollChanged(n){return n.scrollTopChanged}onZonesChanged(n){return!0}_visibleRangesHaveGaps(n){for(let i=0,r=n.length;i<r;i++)if(n[i].ranges.length>1)return!0;return!1}_enrichVisibleRangesWithStyle(n,i,r){const o=this._typicalHalfwidthCharacterWidth/4;let s=null,a=null;if(r&&r.length>0&&i.length>0){const l=i[0].lineNumber;if(l===n.startLineNumber)for(let u=0;!s&&u<r.length;u++)r[u].lineNumber===l&&(s=r[u].ranges[0]);const c=i[i.length-1].lineNumber;if(c===n.endLineNumber)for(let u=r.length-1;!a&&u>=0;u--)r[u].lineNumber===c&&(a=r[u].ranges[0]);s&&!s.startStyle&&(s=null),a&&!a.startStyle&&(a=null)}for(let l=0,c=i.length;l<c;l++){const u=i[l].ranges[0],d=u.left,h=u.left+u.width,f={top:0,bottom:0},p={top:0,bottom:0};if(l>0){const g=i[l-1].ranges[0].left,m=i[l-1].ranges[0].left+i[l-1].ranges[0].width;Hee(d-g)<o?f.top=2:d>g&&(f.top=1),Hee(h-m)<o?p.top=2:g<h&&h<m&&(p.top=1)}else s&&(f.top=s.startStyle.top,p.top=s.endStyle.top);if(l+1<c){const g=i[l+1].ranges[0].left,m=i[l+1].ranges[0].left+i[l+1].ranges[0].width;Hee(d-g)<o?f.bottom=2:g<d&&d<m&&(f.bottom=1),Hee(h-m)<o?p.bottom=2:h<m&&(p.bottom=1)}else a&&(f.bottom=a.startStyle.bottom,p.bottom=a.endStyle.bottom);u.startStyle=f,u.endStyle=p}}_getVisibleRangesWithStyle(n,i,r){const s=(i.linesVisibleRangesForRange(n,!0)||[]).map(iqn);return!this._visibleRangesHaveGaps(s)&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(i.visibleRange,s,r),s}_createSelectionPiece(n,i,r,o,s){return'<div class="cslr '+r+'" style="top:'+n.toString()+"px;bottom:"+i.toString()+"px;left:"+o.toString()+"px;width:"+s.toString()+'px;"></div>'}_actualRenderOneSelection(n,i,r,o){if(o.length===0)return;const s=!!o[0].ranges[0].startStyle,a=o[0].lineNumber,l=o[o.length-1].lineNumber;for(let c=0,u=o.length;c<u;c++){const d=o[c],h=d.lineNumber,f=h-i,p=r&&h===a?1:0,g=r&&h!==a&&h===l?1:0;let m="",v="";for(let y=0,b=d.ranges.length;y<b;y++){const w=d.ranges[y];if(s){const A=w.startStyle,D=w.endStyle;if(A.top===1||A.bottom===1){m+=this._createSelectionPiece(p,g,e.SELECTION_CLASS_NAME,w.left-e.ROUNDED_PIECE_WIDTH,e.ROUNDED_PIECE_WIDTH);let T=e.EDITOR_BACKGROUND_CLASS_NAME;A.top===1&&(T+=" "+e.SELECTION_TOP_RIGHT),A.bottom===1&&(T+=" "+e.SELECTION_BOTTOM_RIGHT),m+=this._createSelectionPiece(p,g,T,w.left-e.ROUNDED_PIECE_WIDTH,e.ROUNDED_PIECE_WIDTH)}if(D.top===1||D.bottom===1){m+=this._createSelectionPiece(p,g,e.SELECTION_CLASS_NAME,w.left+w.width,e.ROUNDED_PIECE_WIDTH);let T=e.EDITOR_BACKGROUND_CLASS_NAME;D.top===1&&(T+=" "+e.SELECTION_TOP_LEFT),D.bottom===1&&(T+=" "+e.SELECTION_BOTTOM_LEFT),m+=this._createSelectionPiece(p,g,T,w.left+w.width,e.ROUNDED_PIECE_WIDTH)}}let E=e.SELECTION_CLASS_NAME;if(s){const A=w.startStyle,D=w.endStyle;A.top===0&&(E+=" "+e.SELECTION_TOP_LEFT),A.bottom===0&&(E+=" "+e.SELECTION_BOTTOM_LEFT),D.top===0&&(E+=" "+e.SELECTION_TOP_RIGHT),D.bottom===0&&(E+=" "+e.SELECTION_BOTTOM_RIGHT)}v+=this._createSelectionPiece(p,g,E,w.left,w.width)}n[f][0]+=m,n[f][1]+=v}}prepareRender(n){const i=[],r=n.visibleRange.startLineNumber,o=n.visibleRange.endLineNumber;for(let a=r;a<=o;a++){const l=a-r;i[l]=["",""]}const s=[];for(let a=0,l=this._selections.length;a<l;a++){const c=this._selections[a];if(c.isEmpty()){s[a]=null;continue}const u=this._getVisibleRangesWithStyle(c,n,this._previousFrameVisibleRangesWithStyle[a]);s[a]=u,this._actualRenderOneSelection(i,r,this._selections.length>1,u)}this._previousFrameVisibleRangesWithStyle=s,this._renderResult=i.map(([a,l])=>a+l)}render(n,i){if(!this._renderResult)return"";const r=i-n;return r<0||r>=this._renderResult.length?"":this._renderResult[r]}},e.SELECTION_CLASS_NAME="selected-text",e.SELECTION_TOP_LEFT="top-left-radius",e.SELECTION_BOTTOM_LEFT="bottom-left-radius",e.SELECTION_TOP_RIGHT="top-right-radius",e.SELECTION_BOTTOM_RIGHT="bottom-right-radius",e.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",e.ROUNDED_PIECE_WIDTH=10,e),Ab((t,n)=>{const i=t.getColor(S3t);i&&!i.isTransparent()&&n.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${i}; }`)})}}),oqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/viewCursors/viewCursors.css"(){}}),PSe,nD,XBe,sqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/viewCursors/viewCursor.js"(){Fn(),_d(),Ki(),xb(),Su(),Hi(),Dn(),SUe(),PSe=class{constructor(e,t,n,i,r,o,s){this.top=e,this.left=t,this.paddingLeft=n,this.width=i,this.height=r,this.textContent=o,this.textContentClassName=s}},(function(e){e[e.Single=0]="Single",e[e.MultiPrimary=1]="MultiPrimary",e[e.MultiSecondary=2]="MultiSecondary"})(nD||(nD={})),XBe=class{constructor(e,t){this._context=e;const n=this._context.configuration.options,i=n.get(50);this._cursorStyle=n.get(28),this._lineHeight=n.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(n.get(31),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Ds(document.createElement("div")),this._domNode.setClassName(`cursor ${_R}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),yh(this._domNode,i),this._domNode.setDisplay("none"),this._position=new mt(1,1),this._pluralityClass="",this.setPlurality(t),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}setPlurality(e){switch(e){default:case nD.Single:this._pluralityClass="";break;case nD.MultiPrimary:this._pluralityClass="cursor-primary";break;case nD.MultiSecondary:this._pluralityClass="cursor-secondary";break}}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(50);return this._cursorStyle=t.get(28),this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(31),this._typicalHalfwidthCharacterWidth),yh(this._domNode,n),!0}onCursorPositionChanged(e,t){return t?this._domNode.domNode.style.transitionProperty="none":this._domNode.domNode.style.transitionProperty="",this._position=e,!0}_getGraphemeAwarePosition(){const{lineNumber:e,column:t}=this._position,n=this._context.viewModel.getLineContent(e),[i,r]=x9n(n,t-1);return[new mt(e,i+1),n.substring(i,r)]}_prepareRender(e){let t="",n="";const[i,r]=this._getGraphemeAwarePosition();if(this._cursorStyle===ph.Line||this._cursorStyle===ph.LineThin){const d=e.visibleRangeForPosition(i);if(!d||d.outsideRenderedLine)return null;const h=Yi(this._domNode.domNode);let f;this._cursorStyle===ph.Line?(f=Nst(h,this._lineCursorWidth>0?this._lineCursorWidth:2),f>2&&(t=r,n=this._getTokenClassName(i))):f=Nst(h,1);let p=d.left,g=0;f>=2&&p>=1&&(g=1,p-=g);const m=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.bigNumbersDelta;return new PSe(m,p,g,f,this._lineHeight,t,n)}const o=e.linesVisibleRangesForRange(new Re(i.lineNumber,i.column,i.lineNumber,i.column+r.length),!1);if(!o||o.length===0)return null;const s=o[0];if(s.outsideRenderedLine||s.ranges.length===0)return null;const a=s.ranges[0],l=r==="	"?this._typicalHalfwidthCharacterWidth:a.width<1?this._typicalHalfwidthCharacterWidth:a.width;this._cursorStyle===ph.Block&&(t=r,n=this._getTokenClassName(i));let c=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.bigNumbersDelta,u=this._lineHeight;return(this._cursorStyle===ph.Underline||this._cursorStyle===ph.UnderlineThin)&&(c+=this._lineHeight-2,u=2),new PSe(c,a.left,0,l,u,t,n)}_getTokenClassName(e){const t=this._context.viewModel.getViewLineData(e.lineNumber),n=t.tokens.findTokenIndexAtOffset(e.column-1);return t.tokens.getClassName(n)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${this._pluralityClass} ${_R} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setPaddingLeft(this._renderData.paddingLeft),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}}}),RZt,aqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/viewCursors/viewCursors.js"(){var e;oqn(),_d(),fr(),Cg(),sqn(),Su(),kb(),Ys(),VC(),Fn(),RZt=(e=class extends ym{constructor(n){super(n);const i=this._context.configuration.options;this._readOnly=i.get(92),this._cursorBlinking=i.get(26),this._cursorStyle=i.get(28),this._cursorSmoothCaretAnimation=i.get(27),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new XBe(this._context,nD.Single),this._secondaryCursors=[],this._renderData=[],this._domNode=Ds(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new Sb,this._cursorFlatBlinkInterval=new jpe,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(n){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(n){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(n){const i=this._context.configuration.options;this._readOnly=i.get(92),this._cursorBlinking=i.get(26),this._cursorStyle=i.get(28),this._cursorSmoothCaretAnimation=i.get(27),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(n);for(let r=0,o=this._secondaryCursors.length;r<o;r++)this._secondaryCursors[r].onConfigurationChanged(n);return!0}_onCursorPositionChanged(n,i,r){const o=this._secondaryCursors.length!==i.length||this._cursorSmoothCaretAnimation==="explicit"&&r!==3;if(this._primaryCursor.setPlurality(i.length?nD.MultiPrimary:nD.Single),this._primaryCursor.onCursorPositionChanged(n,o),this._updateBlinking(),this._secondaryCursors.length<i.length){const s=i.length-this._secondaryCursors.length;for(let a=0;a<s;a++){const l=new XBe(this._context,nD.MultiSecondary);this._domNode.domNode.insertBefore(l.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(l)}}else if(this._secondaryCursors.length>i.length){const s=this._secondaryCursors.length-i.length;for(let a=0;a<s;a++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(let s=0;s<i.length;s++)this._secondaryCursors[s].onCursorPositionChanged(i[s],o)}onCursorStateChanged(n){const i=[];for(let o=0,s=n.selections.length;o<s;o++)i[o]=n.selections[o].getPosition();this._onCursorPositionChanged(i[0],i.slice(1),n.reason);const r=n.selections[0].isEmpty();return this._selectionIsEmpty!==r&&(this._selectionIsEmpty=r,this._updateDomClassName()),!0}onDecorationsChanged(n){return!0}onFlushed(n){return!0}onFocusChanged(n){return this._editorHasFocus=n.isFocused,this._updateBlinking(),!1}onLinesChanged(n){return!0}onLinesDeleted(n){return!0}onLinesInserted(n){return!0}onScrollChanged(n){return!0}onTokensChanged(n){const i=r=>{for(let o=0,s=n.ranges.length;o<s;o++)if(n.ranges[o].fromLineNumber<=r.lineNumber&&r.lineNumber<=n.ranges[o].toLineNumber)return!0;return!1};if(i(this._primaryCursor.getPosition()))return!0;for(const r of this._secondaryCursors)if(i(r.getPosition()))return!0;return!1}onZonesChanged(n){return!0}_getCursorBlinking(){return this._isComposingInput||!this._editorHasFocus?0:this._readOnly?5:this._cursorBlinking}_updateBlinking(){this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();const n=this._getCursorBlinking(),i=n===0,r=n===5;i?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),!i&&!r&&(n===1?this._cursorFlatBlinkInterval.cancelAndSet(()=>{this._isVisible?this._hide():this._show()},e.BLINK_INTERVAL,Yi(this._domNode.domNode)):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},e.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let n="cursors-layer";switch(this._selectionIsEmpty||(n+=" has-selection"),this._cursorStyle){case ph.Line:n+=" cursor-line-style";break;case ph.Block:n+=" cursor-block-style";break;case ph.Underline:n+=" cursor-underline-style";break;case ph.LineThin:n+=" cursor-line-thin-style";break;case ph.BlockOutline:n+=" cursor-block-outline-style";break;case ph.UnderlineThin:n+=" cursor-underline-thin-style";break;default:n+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:n+=" cursor-blink";break;case 2:n+=" cursor-smooth";break;case 3:n+=" cursor-phase";break;case 4:n+=" cursor-expand";break;case 5:n+=" cursor-solid";break;default:n+=" cursor-solid"}else n+=" cursor-solid";return(this._cursorSmoothCaretAnimation==="on"||this._cursorSmoothCaretAnimation==="explicit")&&(n+=" cursor-smooth-caret-animation"),n}_show(){this._primaryCursor.show();for(let n=0,i=this._secondaryCursors.length;n<i;n++)this._secondaryCursors[n].show();this._isVisible=!0}_hide(){this._primaryCursor.hide();for(let n=0,i=this._secondaryCursors.length;n<i;n++)this._secondaryCursors[n].hide();this._isVisible=!1}prepareRender(n){this._primaryCursor.prepareRender(n);for(let i=0,r=this._secondaryCursors.length;i<r;i++)this._secondaryCursors[i].prepareRender(n)}render(n){const i=[];let r=0;const o=this._primaryCursor.render(n);o&&(i[r++]=o);for(let s=0,a=this._secondaryCursors.length;s<a;s++){const l=this._secondaryCursors[s].render(n);l&&(i[r++]=l)}this._renderData=i}getLastRenderData(){return this._renderData}},e.BLINK_INTERVAL=500,e),Ab((t,n)=>{const i=[{class:".cursor",foreground:JU,background:Ose},{class:".cursor-primary",foreground:wWe,background:xGt},{class:".cursor-secondary",foreground:CWe,background:EGt}];for(const r of i){const o=t.getColor(r.foreground);if(o){let s=t.getColor(r.background);s||(s=o.opposite()),n.addRule(`.monaco-editor .cursors-layer ${r.class} { background-color: ${o}; border-color: ${o}; color: ${s}; }`),rC(t.type)&&n.addRule(`.monaco-editor .cursors-layer.has-selection ${r.class} { border-left: 1px solid ${s}; border-right: 1px solid ${s}; }`)}}})}});function lqn(e,t){try{return e(t)}catch(n){Mr(n)}}var Wee,FZt,cqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/viewZones/viewZones.js"(){_d(),Vi(),Cg(),Hi(),Wee=()=>{throw new Error("Invalid change accessor")},FZt=class extends ym{constructor(e){super(e);const t=this._context.configuration.options,n=t.get(146);this._lineHeight=t.get(67),this._contentWidth=n.contentWidth,this._contentLeft=n.contentLeft,this.domNode=Ds(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=Ds(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const i of e)t.set(i.id,i);let n=!1;return this._context.viewModel.changeWhitespace(i=>{const r=Object.keys(this._zones);for(let o=0,s=r.length;o<s;o++){const a=r[o],l=this._zones[a],c=this._computeWhitespaceProps(l.delegate);l.isInHiddenArea=c.isInHiddenArea;const u=t.get(a);u&&(u.afterLineNumber!==c.afterViewLineNumber||u.height!==c.heightInPx)&&(i.changeOneWhitespace(a,c.afterViewLineNumber,c.heightInPx),this._safeCallOnComputedHeight(l.delegate,c.heightInPx),n=!0)}}),n}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(146);return this._lineHeight=t.get(67),this._contentWidth=n.contentWidth,this._contentLeft=n.contentLeft,e.hasChanged(67)&&this._recomputeWhitespacesProps(),!0}onLineMappingChanged(e){return this._recomputeWhitespacesProps()}onLinesDeleted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}onLinesInserted(e){return!0}_getZoneOrdinal(e){return e.ordinal??e.afterColumn??1e4}_computeWhitespaceProps(e){if(e.afterLineNumber===0)return{isInHiddenArea:!1,afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};let t;if(typeof e.afterColumn<"u")t=this._context.viewModel.model.validatePosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{const o=this._context.viewModel.model.validatePosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;t=new mt(o,this._context.viewModel.model.getLineMaxColumn(o))}let n;t.column===this._context.viewModel.model.getLineMaxColumn(t.lineNumber)?n=this._context.viewModel.model.validatePosition({lineNumber:t.lineNumber+1,column:1}):n=this._context.viewModel.model.validatePosition({lineNumber:t.lineNumber,column:t.column+1});const i=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t,e.afterColumnAffinity,!0),r=e.showInHiddenAreas||this._context.viewModel.coordinatesConverter.modelPositionIsVisible(n);return{isInHiddenArea:!r,afterViewLineNumber:i.lineNumber,heightInPx:r?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}}changeViewZones(e){let t=!1;return this._context.viewModel.changeWhitespace(n=>{const i={addZone:r=>(t=!0,this._addZone(n,r)),removeZone:r=>{r&&(t=this._removeZone(n,r)||t)},layoutZone:r=>{r&&(t=this._layoutZone(n,r)||t)}};lqn(e,i),i.addZone=Wee,i.removeZone=Wee,i.layoutZone=Wee}),t}_addZone(e,t){const n=this._computeWhitespaceProps(t),r={whitespaceId:e.insertWhitespace(n.afterViewLineNumber,this._getZoneOrdinal(t),n.heightInPx,n.minWidthInPx),delegate:t,isInHiddenArea:n.isInHiddenArea,isVisible:!1,domNode:Ds(t.domNode),marginDomNode:t.marginDomNode?Ds(t.marginDomNode):null};return this._safeCallOnComputedHeight(r.delegate,n.heightInPx),r.domNode.setPosition("absolute"),r.domNode.domNode.style.width="100%",r.domNode.setDisplay("none"),r.domNode.setAttribute("monaco-view-zone",r.whitespaceId),this.domNode.appendChild(r.domNode),r.marginDomNode&&(r.marginDomNode.setPosition("absolute"),r.marginDomNode.domNode.style.width="100%",r.marginDomNode.setDisplay("none"),r.marginDomNode.setAttribute("monaco-view-zone",r.whitespaceId),this.marginDomNode.appendChild(r.marginDomNode)),this._zones[r.whitespaceId]=r,this.setShouldRender(),r.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const n=this._zones[t];return delete this._zones[t],e.removeWhitespace(n.whitespaceId),n.domNode.removeAttribute("monaco-visible-view-zone"),n.domNode.removeAttribute("monaco-view-zone"),n.domNode.domNode.remove(),n.marginDomNode&&(n.marginDomNode.removeAttribute("monaco-visible-view-zone"),n.marginDomNode.removeAttribute("monaco-view-zone"),n.marginDomNode.domNode.remove()),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const n=this._zones[t],i=this._computeWhitespaceProps(n.delegate);return n.isInHiddenArea=i.isInHiddenArea,e.changeOneWhitespace(n.whitespaceId,i.afterViewLineNumber,i.heightInPx),this._safeCallOnComputedHeight(n.delegate,i.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){return this._zones.hasOwnProperty(e)?!!this._zones[e].delegate.suppressMouseDown:!1}_heightInPixels(e){return typeof e.heightInPx=="number"?e.heightInPx:typeof e.heightInLines=="number"?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return typeof e.minWidthInPx=="number"?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if(typeof e.onComputedHeight=="function")try{e.onComputedHeight(t)}catch(n){Mr(n)}}_safeCallOnDomNodeTop(e,t){if(typeof e.onDomNodeTop=="function")try{e.onDomNodeTop(t)}catch(n){Mr(n)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,n={};let i=!1;for(const o of t)this._zones[o.id].isInHiddenArea||(n[o.id]=o,i=!0);const r=Object.keys(this._zones);for(let o=0,s=r.length;o<s;o++){const a=r[o],l=this._zones[a];let c=0,u=0,d="none";n.hasOwnProperty(a)?(c=n[a].verticalOffset-e.bigNumbersDelta,u=n[a].height,d="block",l.isVisible||(l.domNode.setAttribute("monaco-visible-view-zone","true"),l.isVisible=!0),this._safeCallOnDomNodeTop(l.delegate,e.getScrolledTopFromAbsoluteTop(n[a].verticalOffset))):(l.isVisible&&(l.domNode.removeAttribute("monaco-visible-view-zone"),l.isVisible=!1),this._safeCallOnDomNodeTop(l.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),l.domNode.setTop(c),l.domNode.setHeight(u),l.domNode.setDisplay(d),l.marginDomNode&&(l.marginDomNode.setTop(c),l.marginDomNode.setHeight(u),l.marginDomNode.setDisplay(d))}i&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))}}}}),uqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/whitespace/whitespace.css"(){}}),BZt,MSe,dqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/viewParts/whitespace/whitespace.js"(){uqn(),sF(),Ki(),X2(),Hi(),kb(),BZt=class extends VN{constructor(e){super(),this._context=e,this._options=new MSe(this._context.configuration),this._selection=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=new MSe(this._context.configuration);return this._options.equals(t)?e.hasChanged(146):(this._options=t,!0)}onCursorStateChanged(e){return this._selection=e.selections,this._options.renderWhitespace==="selection"}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}prepareRender(e){if(this._options.renderWhitespace==="none"){this._renderResult=null;return}const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber-t+1,r=new Array(i);for(let s=0;s<i;s++)r[s]=!0;const o=this._context.viewModel.getMinimapLinesRenderingData(e.viewportData.startLineNumber,e.viewportData.endLineNumber,r);this._renderResult=[];for(let s=e.viewportData.startLineNumber;s<=e.viewportData.endLineNumber;s++){const a=s-e.viewportData.startLineNumber,l=o.data[a];let c=null;if(this._options.renderWhitespace==="selection"){const u=this._selection;for(const d of u){if(d.endLineNumber<s||d.startLineNumber>s)continue;const h=d.startLineNumber===s?d.startColumn:l.minColumn,f=d.endLineNumber===s?d.endColumn:l.maxColumn;h<f&&(c||(c=[]),c.push(new gHe(h-1,f-1)))}}this._renderResult[a]=this._applyRenderWhitespace(e,s,c,l)}}_applyRenderWhitespace(e,t,n,i){if(this._options.renderWhitespace==="selection"&&!n||this._options.renderWhitespace==="trailing"&&i.continuesWithWrappedLine)return"";const r=this._context.theme.getColor(Rse),o=this._options.renderWithSVG,s=i.content,a=this._options.stopRenderingLineAfter===-1?s.length:Math.min(this._options.stopRenderingLineAfter,s.length),l=i.continuesWithWrappedLine,c=i.minColumn-1,u=this._options.renderWhitespace==="boundary",d=this._options.renderWhitespace==="trailing",h=this._options.lineHeight,f=this._options.middotWidth,p=this._options.wsmiddotWidth,g=this._options.spaceWidth,m=Math.abs(p-g),v=Math.abs(f-g),y=m<v?11825:183,b=this._options.canUseHalfwidthRightwardsArrow;let w="",E=!1,A=Cp(s),D;A===-1?(E=!0,A=a,D=a):D=iC(s);let T=0,M=n&&n[T],P=0;for(let F=c;F<a;F++){const N=s.charCodeAt(F);if(M&&F>=M.endOffset&&(T++,M=n&&n[T]),N!==9&&N!==32||d&&!E&&F<=D)continue;if(u&&F>=A&&F<=D&&N===32){const W=F-1>=0?s.charCodeAt(F-1):0,J=F+1<a?s.charCodeAt(F+1):0;if(W!==32&&J!==32)continue}if(u&&l&&F===a-1){const W=F-1>=0?s.charCodeAt(F-1):0;if(N===32&&W!==32&&W!==9)continue}if(n&&(!M||M.startOffset>F||M.endOffset<=F))continue;const j=e.visibleRangeForPosition(new mt(t,F+1));j&&(o?(P=Math.max(P,j.left),N===9?w+=this._renderArrow(h,g,j.left):w+=`<circle cx="${(j.left+g/2).toFixed(2)}" cy="${(h/2).toFixed(2)}" r="${(g/7).toFixed(2)}" />`):N===9?w+=`<div class="mwh" style="left:${j.left}px;height:${h}px;">${b?"→":"→"}</div>`:w+=`<div class="mwh" style="left:${j.left}px;height:${h}px;">${String.fromCharCode(y)}</div>`)}return o?(P=Math.round(P+g),`<svg style="bottom:0;position:absolute;width:${P}px;height:${h}px" viewBox="0 0 ${P} ${h}" xmlns="http://www.w3.org/2000/svg" fill="${r}">`+w+"</svg>"):w}_renderArrow(e,t,n){const i=t/7,r=t,o=e/2,s=n,a={x:0,y:i/2},l={x:100/125*r,y:a.y},c={x:l.x-.2*l.x,y:l.y+.2*l.x},u={x:c.x+.1*l.x,y:c.y+.1*l.x},d={x:u.x+.35*l.x,y:u.y-.35*l.x},h={x:d.x,y:-d.y},f={x:u.x,y:-u.y},p={x:c.x,y:-c.y},g={x:l.x,y:-l.y},m={x:a.x,y:-a.y};return`<path d="M ${[a,l,c,u,d,h,f,p,g,m].map(b=>`${(s+b.x).toFixed(2)} ${(o+b.y).toFixed(2)}`).join(" L ")}" />`}render(e,t){if(!this._renderResult)return"";const n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}},MSe=class{constructor(e){const t=e.options,n=t.get(50),i=t.get(38);i==="off"?(this.renderWhitespace="none",this.renderWithSVG=!1):i==="svg"?(this.renderWhitespace=t.get(100),this.renderWithSVG=!0):(this.renderWhitespace=t.get(100),this.renderWithSVG=!1),this.spaceWidth=n.spaceWidth,this.middotWidth=n.middotWidth,this.wsmiddotWidth=n.wsmiddotWidth,this.canUseHalfwidthRightwardsArrow=n.canUseHalfwidthRightwardsArrow,this.lineHeight=t.get(67),this.stopRenderingLineAfter=t.get(118)}equals(e){return this.renderWhitespace===e.renderWhitespace&&this.renderWithSVG===e.renderWithSVG&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter}}}}),jZt,hqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/viewLayout/viewLinesViewportData.js"(){Dn(),jZt=class{constructor(e,t,n,i){this.selections=e,this.startLineNumber=t.startLineNumber|0,this.endLineNumber=t.endLineNumber|0,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=t.bigNumbersDelta|0,this.lineHeight=t.lineHeight|0,this.whitespaceViewportData=n,this._model=i,this.visibleRange=new Re(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}getViewLineRenderingData(e){return this._model.getViewportViewLineRenderingData(this.visibleRange,e)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}}}),zZt,fqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/editorTheme.js"(){zZt=class{get type(){return this._theme.type}get value(){return this._theme}constructor(e){this._theme=e}update(e){this._theme=e}getColor(e){return this._theme.getColor(e)}}}}),VZt,pqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewContext.js"(){fqn(),VZt=class{constructor(e,t,n){this.configuration=e,this.theme=new zZt(t),this.viewModel=n,this.viewLayout=n.viewLayout}addEventHandler(e){this.viewModel.addViewEventHandler(e)}removeEventHandler(e){this.viewModel.removeViewEventHandler(e)}}}});function xk(e){try{return e()}catch(t){return Mr(t),null}}var Ipt,Lpt,Sae,Npt,gqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/view.js"(){var e;Fn(),_d(),TQt(),Vi(),xHe(),u$n(),m$n(),XK(),C$n(),S$n(),Cg(),rZt(),E$n(),A$n(),T$n(),I$n(),L$n(),RUe(),M$n(),PQt(),F$n(),j$n(),MQt(),V$n(),q$n(),K$n(),Y$n(),Q$n(),X$n(),eqn(),rqn(),aqn(),cqn(),dqn(),Hi(),Dn(),zs(),Cd(),ZK(),hqn(),pqn(),li(),Ys(),Ipt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},Lpt=function(t,n){return function(i,r){n(i,r,t)}},Sae=class extends x7{constructor(n,i,r,o,s,a,l){super(),this._instantiationService=l,this._shouldRecomputeGlyphMarginLanes=!1,this._selections=[new Ii(1,1,1,1)],this._renderAnimationFrame=null;const c=new tZt(i,o,s,n);this._context=new VZt(i,r,o),this._context.addEventHandler(this),this._viewParts=[],this._textAreaHandler=this._instantiationService.createInstance(gae,this._context,c,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=Ds(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=Ds(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=Ds(document.createElement("div")),J_.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new dZt(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new pZt(this._context,this._linesContent),this._viewZones=new FZt(this._context),this._viewParts.push(this._viewZones);const u=new DZt(this._context);this._viewParts.push(u);const d=new NZt(this._context);this._viewParts.push(d);const h=new nZt(this._context);this._viewParts.push(h),h.addDynamicOverlay(new lZt(this._context)),h.addDynamicOverlay(new OZt(this._context)),h.addDynamicOverlay(new fZt(this._context)),h.addDynamicOverlay(new uZt(this._context)),h.addDynamicOverlay(new BZt(this._context));const f=new iZt(this._context);this._viewParts.push(f),f.addDynamicOverlay(new cZt(this._context)),f.addDynamicOverlay(new mZt(this._context)),f.addDynamicOverlay(new gZt(this._context)),f.addDynamicOverlay(new wUe(this._context)),this._glyphMarginWidgets=new hZt(this._context),this._viewParts.push(this._glyphMarginWidgets);const p=new CUe(this._context);p.getDomNode().appendChild(this._viewZones.marginDomNode),p.getDomNode().appendChild(f.getDomNode()),p.getDomNode().appendChild(this._glyphMarginWidgets.domNode),this._viewParts.push(p),this._contentWidgets=new aZt(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new RZt(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new AZt(this._context,this.domNode),this._viewParts.push(this._overlayWidgets);const g=new LZt(this._context);this._viewParts.push(g);const m=new sZt(this._context);this._viewParts.push(m);const v=new xZt(this._context);if(this._viewParts.push(v),u){const y=this._scrollbar.getOverviewRulerLayoutInfo();y.parent.insertBefore(u.getDomNode(),y.insertBefore)}this._linesContent.appendChild(h.getDomNode()),this._linesContent.appendChild(g.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(p.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(d.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(v.getDomNode()),this._overflowGuardContainer.appendChild(m.domNode),this.domNode.appendChild(this._overflowGuardContainer),a?(a.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode),a.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode.domNode)):(this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this.domNode.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode)),this._applyLayout(),this._pointerHandler=this._register(new NQt(this._context,c,this._createPointerHandlerHelper()))}_computeGlyphMarginLanes(){const n=this._context.viewModel.model,i=this._context.viewModel.glyphLanes;let r=[],o=0;r=r.concat(n.getAllMarginDecorations().map(s=>{const a=s.options.glyphMargin?.position??tw.Center;return o=Math.max(o,s.range.endLineNumber),{range:s.range,lane:a,persist:s.options.glyphMargin?.persistLane}})),r=r.concat(this._glyphMarginWidgets.getWidgets().map(s=>{const a=n.validateRange(s.preference.range);return o=Math.max(o,a.endLineNumber),{range:a,lane:s.preference.lane}})),r.sort((s,a)=>Re.compareRangesUsingStarts(s.range,a.range)),i.reset(o);for(const s of r)i.push(s.lane,s.range,s.persist);return i}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,viewLinesDomNode:this._viewLines.getDomNode().domNode,focusTextArea:()=>{this.focus()},dispatchTextAreaEvent:n=>{this._textAreaHandler.textArea.domNode.dispatchEvent(n)},getLastRenderData:()=>{const n=this._viewCursors.getLastRenderData()||[],i=this._textAreaHandler.getLastRenderData();return new SHe(n,i)},renderNow:()=>{this.render(!0,!1)},shouldSuppressMouseDownOnViewZone:n=>this._viewZones.shouldSuppressMouseDownOnViewZone(n),shouldSuppressMouseDownOnWidget:n=>this._contentWidgets.shouldSuppressMouseDownOnWidget(n),getPositionFromDOMInfo:(n,i)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(n,i)),visibleRangeForPosition:(n,i)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new mt(n,i))),getLineWidth:n=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(n))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:n=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(n))}}_applyLayout(){const i=this._context.configuration.options.get(146);this.domNode.setWidth(i.width),this.domNode.setHeight(i.height),this._overflowGuardContainer.setWidth(i.width),this._overflowGuardContainer.setHeight(i.height),this._linesContent.setWidth(16777216),this._linesContent.setHeight(16777216)}_getEditorClassName(){const n=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(143)+" "+Y5e(this._context.theme.type)+n}handleEvents(n){super.handleEvents(n),this._scheduleRender()}onConfigurationChanged(n){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(n){return this._selections=n.selections,!1}onDecorationsChanged(n){return n.affectsGlyphMargin&&(this._shouldRecomputeGlyphMarginLanes=!0),!1}onFocusChanged(n){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(n){return this._context.theme.update(n.theme),this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){this._renderAnimationFrame!==null&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const n of this._viewParts)n.dispose();super.dispose()}_scheduleRender(){if(this._store.isDisposed)throw new ys;if(this._renderAnimationFrame===null){const n=this._createCoordinatedRendering();this._renderAnimationFrame=Npt.INSTANCE.scheduleCoordinatedRendering({window:Yi(this.domNode?.domNode),prepareRenderText:()=>{if(this._store.isDisposed)throw new ys;try{return n.prepareRenderText()}finally{this._renderAnimationFrame=null}},renderText:()=>{if(this._store.isDisposed)throw new ys;return n.renderText()},prepareRender:(i,r)=>{if(this._store.isDisposed)throw new ys;return n.prepareRender(i,r)},render:(i,r)=>{if(this._store.isDisposed)throw new ys;return n.render(i,r)}})}}_flushAccumulatedAndRenderNow(){const n=this._createCoordinatedRendering();xk(()=>n.prepareRenderText());const i=xk(()=>n.renderText());if(i){const[r,o]=i;xk(()=>n.prepareRender(r,o)),xk(()=>n.render(r,o))}}_getViewPartsToRender(){const n=[];let i=0;for(const r of this._viewParts)r.shouldRender()&&(n[i++]=r);return n}_createCoordinatedRendering(){return{prepareRenderText:()=>{if(this._shouldRecomputeGlyphMarginLanes){this._shouldRecomputeGlyphMarginLanes=!1;const n=this._computeGlyphMarginLanes();this._context.configuration.setGlyphMarginDecorationLaneCount(n.requiredLanes)}DI.onRenderStart()},renderText:()=>{if(!this.domNode.domNode.isConnected)return null;let n=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&n.length===0)return null;const i=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(i.startLineNumber,i.endLineNumber,i.centeredLineNumber);const r=new jZt(this._selections,i,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);return this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(r),this._viewLines.shouldRender()&&(this._viewLines.renderText(r),this._viewLines.onDidRender(),n=this._getViewPartsToRender()),[n,new nWt(this._context.viewLayout,r,this._viewLines)]},prepareRender:(n,i)=>{for(const r of n)r.prepareRender(i)},render:(n,i)=>{for(const r of n)r.render(i),r.onDidRender()}}}delegateVerticalScrollbarPointerDown(n){this._scrollbar.delegateVerticalScrollbarPointerDown(n)}delegateScrollFromMouseWheelEvent(n){this._scrollbar.delegateScrollFromMouseWheelEvent(n)}restoreState(n){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:n.scrollTop,scrollLeft:n.scrollLeft},1),this._context.viewModel.visibleLinesStabilized()}getOffsetForColumn(n,i){const r=this._context.viewModel.model.validatePosition({lineNumber:n,column:i}),o=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(r);this._flushAccumulatedAndRenderNow();const s=this._viewLines.visibleRangeForPosition(new mt(o.lineNumber,o.column));return s?s.left:-1}getTargetAtClientPoint(n,i){const r=this._pointerHandler.getTargetAtClientPoint(n,i);return r?MUe.convertViewToModelMouseTarget(r,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(n){return new IZt(this._context,n)}change(n){this._viewZones.changeViewZones(n),this._scheduleRender()}render(n,i){if(i){this._viewLines.forceShouldRender();for(const r of this._viewParts)r.forceShouldRender()}n?this._flushAccumulatedAndRenderNow():this._scheduleRender()}writeScreenReaderContent(n){this._textAreaHandler.writeScreenReaderContent(n)}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(n){this._textAreaHandler.setAriaOptions(n)}addContentWidget(n){this._contentWidgets.addWidget(n.widget),this.layoutContentWidget(n),this._scheduleRender()}layoutContentWidget(n){this._contentWidgets.setWidgetPosition(n.widget,n.position?.position??null,n.position?.secondaryPosition??null,n.position?.preference??null,n.position?.positionAffinity??null),this._scheduleRender()}removeContentWidget(n){this._contentWidgets.removeWidget(n.widget),this._scheduleRender()}addOverlayWidget(n){this._overlayWidgets.addWidget(n.widget),this.layoutOverlayWidget(n),this._scheduleRender()}layoutOverlayWidget(n){this._overlayWidgets.setWidgetPosition(n.widget,n.position)&&this._scheduleRender()}removeOverlayWidget(n){this._overlayWidgets.removeWidget(n.widget),this._scheduleRender()}addGlyphMarginWidget(n){this._glyphMarginWidgets.addWidget(n.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}layoutGlyphMarginWidget(n){const i=n.position;this._glyphMarginWidgets.setWidgetPosition(n.widget,i)&&(this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender())}removeGlyphMarginWidget(n){this._glyphMarginWidgets.removeWidget(n.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}},Sae=Ipt([Lpt(6,ji)],Sae),Npt=(e=class{constructor(){this._coordinatedRenderings=[],this._animationFrameRunners=new Map}scheduleCoordinatedRendering(n){return this._coordinatedRenderings.push(n),this._scheduleRender(n.window),{dispose:()=>{const i=this._coordinatedRenderings.indexOf(n);if(i!==-1&&(this._coordinatedRenderings.splice(i,1),this._coordinatedRenderings.length===0)){for(const[r,o]of this._animationFrameRunners)o.dispose();this._animationFrameRunners.clear()}}}}_scheduleRender(n){if(!this._animationFrameRunners.has(n)){const i=()=>{this._animationFrameRunners.delete(n),this._onRenderScheduled()};this._animationFrameRunners.set(n,Aue(n,i,100))}}_onRenderScheduled(){const n=this._coordinatedRenderings.slice(0);this._coordinatedRenderings=[];for(const r of n)xk(()=>r.prepareRenderText());const i=[];for(let r=0,o=n.length;r<o;r++){const s=n[r];i[r]=xk(()=>s.renderText())}for(let r=0,o=n.length;r<o;r++){const s=n[r],a=i[r];if(!a)continue;const[l,c]=a;xk(()=>s.prepareRender(l,c))}for(let r=0,o=n.length;r<o;r++){const s=n[r],a=i[r];if(!a)continue;const[l,c]=a;xk(()=>s.render(l,c))}}},e.INSTANCE=new e,e)}});function Ppt(e){return e==null?!0:e===L_.Right||e===L_.Both}function Mpt(e){return e==null?!0:e===L_.Left||e===L_.Both}var t8,DV,HZt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/modelLineProjectionData.js"(){zC(),Hi(),Cd(),t8=class{constructor(e,t,n,i,r){this.injectionOffsets=e,this.injectionOptions=t,this.breakOffsets=n,this.breakOffsetsVisibleColumn=i,this.wrappedTextIndentLength=r}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(e){return e>0?this.wrappedTextIndentLength:0}getLineLength(e){const t=e>0?this.breakOffsets[e-1]:0;let i=this.breakOffsets[e]-t;return e>0&&(i+=this.wrappedTextIndentLength),i}getMaxOutputOffset(e){return this.getLineLength(e)}translateToInputOffset(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));let i=e===0?t:this.breakOffsets[e-1]+t;if(this.injectionOffsets!==null)for(let r=0;r<this.injectionOffsets.length&&i>this.injectionOffsets[r];r++)i<this.injectionOffsets[r]+this.injectionOptions[r].content.length?i=this.injectionOffsets[r]:i-=this.injectionOptions[r].content.length;return i}translateToOutputPosition(e,t=2){let n=e;if(this.injectionOffsets!==null)for(let i=0;i<this.injectionOffsets.length&&!(e<this.injectionOffsets[i]||t!==1&&e===this.injectionOffsets[i]);i++)n+=this.injectionOptions[i].content.length;return this.offsetInInputWithInjectionsToOutputPosition(n,t)}offsetInInputWithInjectionsToOutputPosition(e,t=2){let n=0,i=this.breakOffsets.length-1,r=0,o=0;for(;n<=i;){r=n+(i-n)/2|0;const a=this.breakOffsets[r];if(o=r>0?this.breakOffsets[r-1]:0,t===0)if(e<=o)i=r-1;else if(e>a)n=r+1;else break;else if(e<o)i=r-1;else if(e>=a)n=r+1;else break}let s=e-o;return r>0&&(s+=this.wrappedTextIndentLength),new DV(r,s)}normalizeOutputPosition(e,t,n){if(this.injectionOffsets!==null){const i=this.outputPositionToOffsetInInputWithInjections(e,t),r=this.normalizeOffsetInInputWithInjectionsAroundInjections(i,n);if(r!==i)return this.offsetInInputWithInjectionsToOutputPosition(r,n)}if(n===0){if(e>0&&t===this.getMinOutputOffset(e))return new DV(e-1,this.getMaxOutputOffset(e-1))}else if(n===1){const i=this.getOutputLineCount()-1;if(e<i&&t===this.getMaxOutputOffset(e))return new DV(e+1,this.getMinOutputOffset(e+1))}return new DV(e,t)}outputPositionToOffsetInInputWithInjections(e,t){return e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength)),(e>0?this.breakOffsets[e-1]:0)+t}normalizeOffsetInInputWithInjectionsAroundInjections(e,t){const n=this.getInjectedTextAtOffset(e);if(!n)return e;if(t===2){if(e===n.offsetInInputWithInjections+n.length&&Ppt(this.injectionOptions[n.injectedTextIndex].cursorStops))return n.offsetInInputWithInjections+n.length;{let i=n.offsetInInputWithInjections;if(Mpt(this.injectionOptions[n.injectedTextIndex].cursorStops))return i;let r=n.injectedTextIndex-1;for(;r>=0&&this.injectionOffsets[r]===this.injectionOffsets[n.injectedTextIndex]&&!(Ppt(this.injectionOptions[r].cursorStops)||(i-=this.injectionOptions[r].content.length,Mpt(this.injectionOptions[r].cursorStops)));)r--;return i}}else if(t===1||t===4){let i=n.offsetInInputWithInjections+n.length,r=n.injectedTextIndex;for(;r+1<this.injectionOffsets.length&&this.injectionOffsets[r+1]===this.injectionOffsets[r];)i+=this.injectionOptions[r+1].content.length,r++;return i}else if(t===0||t===3){let i=n.offsetInInputWithInjections,r=n.injectedTextIndex;for(;r-1>=0&&this.injectionOffsets[r-1]===this.injectionOffsets[r];)i-=this.injectionOptions[r-1].content.length,r--;return i}Vpe()}getInjectedText(e,t){const n=this.outputPositionToOffsetInInputWithInjections(e,t),i=this.getInjectedTextAtOffset(n);return i?{options:this.injectionOptions[i.injectedTextIndex]}:null}getInjectedTextAtOffset(e){const t=this.injectionOffsets,n=this.injectionOptions;if(t!==null){let i=0;for(let r=0;r<t.length;r++){const o=n[r].content.length,s=t[r]+i,a=t[r]+i+o;if(s>e)break;if(e<=a)return{injectedTextIndex:r,offsetInInputWithInjections:s,length:o};i+=o}}}},DV=class{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e){return new mt(e+this.outputLineIndex,this.outputOffset+1)}}}});function mqn(e,t,n,i,r,o,s,a){function l(M){const P=a[M];if(P){const F=zD.applyInjectedText(t[M],P),N=P.map(W=>W.options),j=P.map(W=>W.column-1);return new t8(j,N,[F.length],[],0)}else return null}if(r===-1){const M=[];for(let P=0,F=t.length;P<F;P++)M[P]=l(P);return M}const c=Math.round(r*n.typicalHalfwidthCharacterWidth),d=Math.round(i*(o===3?2:o===2?1:0)),h=Math.ceil(n.spaceWidth*d),f=document.createElement("div");yh(f,n);const p=new Z2(1e4),g=[],m=[],v=[],y=[],b=[];for(let M=0;M<t.length;M++){const P=zD.applyInjectedText(t[M],a[M]);let F=0,N=0,j=c;if(o!==0)if(F=Cp(P),F===-1)F=0;else{for(let Q=0;Q<F;Q++){const H=P.charCodeAt(Q)===9?i-N%i:1;N+=H}const ee=Math.ceil(n.spaceWidth*N);ee+n.typicalFullwidthCharacterWidth>c?(F=0,N=0):j=c-ee}const W=P.substr(F),J=vqn(W,N,i,j,p,h);g[M]=F,m[M]=N,v[M]=W,y[M]=J[0],b[M]=J[1]}const w=p.build(),E=WZt?.createHTML(w)??w;f.innerHTML=E,f.style.position="absolute",f.style.top="10000",s==="keepAll"?(f.style.wordBreak="keep-all",f.style.overflowWrap="anywhere"):(f.style.wordBreak="inherit",f.style.overflowWrap="break-word"),e.document.body.appendChild(f);const A=document.createRange(),D=Array.prototype.slice.call(f.children,0),T=[];for(let M=0;M<t.length;M++){const P=D[M],F=yqn(A,P,v[M],y[M]);if(F===null){T[M]=l(M);continue}const N=g[M],j=m[M]+d,W=b[M],J=[];for(let q=0,le=F.length;q<le;q++)J[q]=W[F[q]];if(N!==0)for(let q=0,le=F.length;q<le;q++)F[q]+=N;let ee,Q;const H=a[M];H?(ee=H.map(q=>q.options),Q=H.map(q=>q.column-1)):(ee=null,Q=null),T[M]=new t8(Q,ee,F,J,j)}return f.remove(),T}function vqn(e,t,n,i,r,o){if(o!==0){const h=String(o);r.appendString('<div style="text-indent: -'),r.appendString(h),r.appendString("px; padding-left: "),r.appendString(h),r.appendString("px; box-sizing: border-box; width:")}else r.appendString('<div style="width:');r.appendString(String(i)),r.appendString('px;">');const s=e.length;let a=t,l=0;const c=[],u=[];let d=0<s?e.charCodeAt(0):0;r.appendString("<span>");for(let h=0;h<s;h++){h!==0&&h%16384===0&&r.appendString("</span><span>"),c[h]=l,u[h]=a;const f=d;d=h+1<s?e.charCodeAt(h+1):0;let p=1,g=1;switch(f){case 9:p=n-a%n,g=p;for(let m=1;m<=p;m++)m<p?r.appendCharCode(160):r.appendASCIICharCode(32);break;case 32:d===32?r.appendCharCode(160):r.appendASCIICharCode(32);break;case 60:r.appendString("&lt;");break;case 62:r.appendString("&gt;");break;case 38:r.appendString("&amp;");break;case 0:r.appendString("&#00;");break;case 65279:case 8232:case 8233:case 133:r.appendCharCode(65533);break;default:IL(f)&&g++,f<32?r.appendCharCode(9216+f):r.appendCharCode(f)}l+=p,a+=g}return r.appendString("</span>"),c[e.length]=l,u[e.length]=a,r.appendString("</div>"),[c,u]}function yqn(e,t,n,i){if(n.length<=1)return null;const r=Array.prototype.slice.call(t.children,0),o=[];try{JBe(e,r,i,0,null,n.length-1,null,o)}catch(s){return console.log(s),null}return o.length===0?null:(o.push(n.length),o)}function JBe(e,t,n,i,r,o,s,a){if(i===o||(r=r||OSe(e,t,n[i],n[i+1]),s=s||OSe(e,t,n[o],n[o+1]),Math.abs(r[0].top-s[0].top)<=.1))return;if(i+1===o){a.push(o);return}const l=i+(o-i)/2|0,c=OSe(e,t,n[l],n[l+1]);JBe(e,t,n,i,r,l,c,a),JBe(e,t,n,l,c,o,s,a)}function OSe(e,t,n,i){return e.setStart(t[n/16384|0].firstChild,n%16384),e.setEnd(t[i/16384|0].firstChild,i%16384),e.getClientRects()}var WZt,UZt,bqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/view/domLineBreaksComputer.js"(){pT(),Ki(),as(),xb(),TN(),HZt(),nF(),WZt=fT("domLineBreaksComputer",{createHTML:e=>e}),UZt=class $Zt{static create(t){return new $Zt(new WeakRef(t))}constructor(t){this.targetWindow=t}createLineBreaksComputer(t,n,i,r,o){const s=[],a=[];return{addRequest:(l,c,u)=>{s.push(l),a.push(c)},finalize:()=>mqn(RI(this.targetWindow.deref()),s,t,n,i,r,o,a)}}}}}),qZt,_qn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/codeEditor/codeEditorContributions.js"(){Fn(),Vi(),Nt(),qZt=class extends St{constructor(){super(),this._editor=null,this._instantiationService=null,this._instances=this._register(new hpe),this._pending=new Map,this._finishedInstantiation=[],this._finishedInstantiation[0]=!1,this._finishedInstantiation[1]=!1,this._finishedInstantiation[2]=!1,this._finishedInstantiation[3]=!1}initialize(e,t,n){this._editor=e,this._instantiationService=n;for(const i of t){if(this._pending.has(i.id)){Mr(new Error(`Cannot have two contributions with the same id ${i.id}`));continue}this._pending.set(i.id,i)}this._instantiateSome(0),this._register(PH(Yi(this._editor.getDomNode()),()=>{this._instantiateSome(1)})),this._register(PH(Yi(this._editor.getDomNode()),()=>{this._instantiateSome(2)})),this._register(PH(Yi(this._editor.getDomNode()),()=>{this._instantiateSome(3)},5e3))}saveViewState(){const e={};for(const[t,n]of this._instances)typeof n.saveViewState=="function"&&(e[t]=n.saveViewState());return e}restoreViewState(e){for(const[t,n]of this._instances)typeof n.restoreViewState=="function"&&n.restoreViewState(e[t])}get(e){return this._instantiateById(e),this._instances.get(e)||null}onBeforeInteractionEvent(){this._instantiateSome(2)}onAfterModelAttached(){return PH(Yi(this._editor?.getDomNode()),()=>{this._instantiateSome(1)},50)}_instantiateSome(e){if(this._finishedInstantiation[e])return;this._finishedInstantiation[e]=!0;const t=this._findPendingContributionsByInstantiation(e);for(const n of t)this._instantiateById(n.id)}_findPendingContributionsByInstantiation(e){const t=[];for(const[,n]of this._pending)n.instantiation===e&&t.push(n);return t}_instantiateById(e){const t=this._pending.get(e);if(t){if(this._pending.delete(e),!this._instantiationService||!this._editor)throw new Error("Cannot instantiate contributions before being initialized!");try{const n=this._instantiationService.createInstance(t.ctor,this._editor);this._instances.set(t.id,n),typeof n.restoreViewState=="function"&&t.instantiation!==0&&console.warn(`Editor contribution '${t.id}' should be eager instantiated because it uses saveViewState / restoreViewState.`)}catch(n){Mr(n)}}}}}}),jUe,GZt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/editorAction.js"(){jUe=class{constructor(e,t,n,i,r,o,s){this.id=e,this.label=t,this.alias=n,this.metadata=i,this._precondition=r,this._run=o,this._contextKeyService=s}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(e){return this.isSupported()?this._run(e):Promise.resolve(void 0)}}}});function wqn(e,t,n,i,r,o,s,a){if(r===-1)return null;const l=n.length;if(l<=1)return null;const c=a==="keepAll",u=t.breakOffsets,d=t.breakOffsetsVisibleColumn,h=KZt(n,i,r,o,s),f=r-h,p=kde,g=Ide;let m=0,v=0,y=0,b=r;const w=u.length;let E=0;if(E>=0){let A=Math.abs(d[E]-b);for(;E+1<w;){const D=Math.abs(d[E+1]-b);if(D>=A)break;A=D,E++}}for(;E<w;){let A=E<0?0:u[E],D=E<0?0:d[E];v>A&&(A=v,D=y);let T=0,M=0,P=0,F=0;if(D<=b){let j=D,W=A===0?0:n.charCodeAt(A-1),J=A===0?0:e.get(W),ee=!0;for(let Q=A;Q<l;Q++){const H=Q,q=n.charCodeAt(Q);let le,Y;if(ud(q)?(Q++,le=0,Y=2):(le=e.get(q),Y=u$(q,j,i,o)),H>v&&e6e(W,J,q,le,c)&&(T=H,M=j),j+=Y,j>b){H>v?(P=H,F=j-Y):(P=Q+1,F=j),j-M>f&&(T=0),ee=!1;break}W=q,J=le}if(ee){m>0&&(p[m]=u[u.length-1],g[m]=d[u.length-1],m++);break}}if(T===0){let j=D,W=n.charCodeAt(A),J=e.get(W),ee=!1;for(let Q=A-1;Q>=v;Q--){const H=Q+1,q=n.charCodeAt(Q);if(q===9){ee=!0;break}let le,Y;if(qR(q)?(Q--,le=0,Y=2):(le=e.get(q),Y=IL(q)?o:1),j<=b){if(P===0&&(P=H,F=j),j<=b-f)break;if(e6e(q,le,W,J,c)){T=H,M=j;break}}j-=Y,W=q,J=le}if(T!==0){const Q=f-(F-M);if(Q<=i){const H=n.charCodeAt(P);let q;ud(H)?q=2:q=u$(H,F,i,o),Q-q<0&&(T=0)}}if(ee){E--;continue}}if(T===0&&(T=P,M=F),T<=v){const j=n.charCodeAt(v);ud(j)?(T=v+2,M=y+2):(T=v+1,M=y+u$(j,y,i,o))}for(v=T,p[m]=T,y=M,g[m]=M,m++,b=M+f;E<0||E<w&&d[E]<M;)E++;let N=Math.abs(d[E]-b);for(;E+1<w;){const j=Math.abs(d[E+1]-b);if(j>=N)break;N=j,E++}}return m===0?null:(p.length=m,g.length=m,kde=t.breakOffsets,Ide=t.breakOffsetsVisibleColumn,t.breakOffsets=p,t.breakOffsetsVisibleColumn=g,t.wrappedTextIndentLength=h,t)}function Cqn(e,t,n,i,r,o,s,a){const l=zD.applyInjectedText(t,n);let c,u;if(n&&n.length>0?(c=n.map(M=>M.options),u=n.map(M=>M.column-1)):(c=null,u=null),r===-1)return c?new t8(u,c,[l.length],[],0):null;const d=l.length;if(d<=1)return c?new t8(u,c,[l.length],[],0):null;const h=a==="keepAll",f=KZt(l,i,r,o,s),p=r-f,g=[],m=[];let v=0,y=0,b=0,w=r,E=l.charCodeAt(0),A=e.get(E),D=u$(E,0,i,o),T=1;ud(E)&&(D+=1,E=l.charCodeAt(1),A=e.get(E),T++);for(let M=T;M<d;M++){const P=M,F=l.charCodeAt(M);let N,j;ud(F)?(M++,N=0,j=2):(N=e.get(F),j=u$(F,D,i,o)),e6e(E,A,F,N,h)&&(y=P,b=D),D+=j,D>w&&((y===0||D-b>p)&&(y=P,b=D-j),g[v]=y,m[v]=b,v++,w=b+p,y=0),E=F,A=N}return v===0&&(!n||n.length===0)?null:(g[v]=d,m[v]=D,new t8(u,c,g,m,f))}function u$(e,t,n,i){return e===9?n-t%n:IL(e)||e<32?i:1}function Opt(e,t){return t-e%t}function e6e(e,t,n,i,r){return n!==32&&(t===2&&i!==2||t!==1&&i===1||!r&&t===3&&i!==2||!r&&i===3&&t!==1)}function KZt(e,t,n,i,r){let o=0;if(r!==0){const s=Cp(e);if(s!==-1){for(let l=0;l<s;l++){const c=e.charCodeAt(l)===9?Opt(o,t):1;o+=c}const a=r===3?2:r===2?1:0;for(let l=0;l<a;l++){const c=Opt(o,t);o+=c}o+i>n&&(o=0)}}return o}var YZt,Rpt,kde,Ide,Sqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/viewModel/monospaceLineBreaksComputer.js"(){Ki(),D7(),nF(),HZt(),YZt=class QZt{static create(t){return new QZt(t.get(135),t.get(134))}constructor(t,n){this.classifier=new Rpt(t,n)}createLineBreaksComputer(t,n,i,r,o){const s=[],a=[],l=[];return{addRequest:(c,u,d)=>{s.push(c),a.push(u),l.push(d)},finalize:()=>{const c=t.typicalFullwidthCharacterWidth/t.typicalHalfwidthCharacterWidth,u=[];for(let d=0,h=s.length;d<h;d++){const f=a[d],p=l[d];p&&!p.injectionOptions&&!f?u[d]=wqn(this.classifier,p,s[d],n,i,c,r,o):u[d]=Cqn(this.classifier,s[d],f,n,i,c,r,o)}return kde.length=0,Ide.length=0,u}}}},Rpt=class extends qq{constructor(e,t){super(0);for(let n=0;n<e.length;n++)this.set(e.charCodeAt(n),1);for(let n=0;n<t.length;n++)this.set(t.charCodeAt(n),2)}get(e){return e>=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}},kde=[],Ide=[]}}),t6e,xqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/cursor/oneCursor.js"(){Ib(),Hi(),Dn(),zs(),t6e=class ZZt{constructor(t){this._selTrackedRange=null,this._trackSelection=!0,this._setState(t,new hp(new Re(1,1,1,1),0,0,new mt(1,1),0),new hp(new Re(1,1,1,1),0,0,new mt(1,1),0))}dispose(t){this._removeTrackedRange(t)}startTrackingSelection(t){this._trackSelection=!0,this._updateTrackedRange(t)}stopTrackingSelection(t){this._trackSelection=!1,this._removeTrackedRange(t)}_updateTrackedRange(t){this._trackSelection&&(this._selTrackedRange=t.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(t){this._selTrackedRange=t.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new Zo(this.modelState,this.viewState)}readSelectionFromMarkers(t){const n=t.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.isEmpty()&&!n.isEmpty()?Ii.fromRange(n.collapseToEnd(),this.modelState.selection.getDirection()):Ii.fromRange(n,this.modelState.selection.getDirection())}ensureValidState(t){this._setState(t,this.modelState,this.viewState)}setState(t,n,i){this._setState(t,n,i)}static _validatePositionWithCache(t,n,i,r){return n.equals(i)?r:t.normalizePosition(n,2)}static _validateViewState(t,n){const i=n.position,r=n.selectionStart.getStartPosition(),o=n.selectionStart.getEndPosition(),s=t.normalizePosition(i,2),a=this._validatePositionWithCache(t,r,i,s),l=this._validatePositionWithCache(t,o,r,a);return i.equals(s)&&r.equals(a)&&o.equals(l)?n:new hp(Re.fromPositions(a,l),n.selectionStartKind,n.selectionStartLeftoverVisibleColumns+r.column-a.column,s,n.leftoverVisibleColumns+i.column-s.column)}_setState(t,n,i){if(i&&(i=ZZt._validateViewState(t.viewModel,i)),n){const r=t.model.validateRange(n.selectionStart),o=n.selectionStart.equalsRange(r)?n.selectionStartLeftoverVisibleColumns:0,s=t.model.validatePosition(n.position),a=n.position.equals(s)?n.leftoverVisibleColumns:0;n=new hp(r,n.selectionStartKind,o,s,a)}else{if(!i)return;const r=t.model.validateRange(t.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),o=t.model.validatePosition(t.coordinatesConverter.convertViewPositionToModelPosition(i.position));n=new hp(r,i.selectionStartKind,i.selectionStartLeftoverVisibleColumns,o,i.leftoverVisibleColumns)}if(i){const r=t.coordinatesConverter.validateViewRange(i.selectionStart,n.selectionStart),o=t.coordinatesConverter.validateViewPosition(i.position,n.position);i=new hp(r,n.selectionStartKind,n.selectionStartLeftoverVisibleColumns,o,n.leftoverVisibleColumns)}else{const r=t.coordinatesConverter.convertModelPositionToViewPosition(new mt(n.selectionStart.startLineNumber,n.selectionStart.startColumn)),o=t.coordinatesConverter.convertModelPositionToViewPosition(new mt(n.selectionStart.endLineNumber,n.selectionStart.endColumn)),s=new Re(r.lineNumber,r.column,o.lineNumber,o.column),a=t.coordinatesConverter.convertModelPositionToViewPosition(n.position);i=new hp(s,n.selectionStartKind,n.selectionStartLeftoverVisibleColumns,a,n.leftoverVisibleColumns)}this.modelState=n,this.viewState=i,this._updateTrackedRange(t)}}}}),n6e,Eqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorCollection.js"(){rr(),Y0(),Ib(),xqn(),Hi(),Dn(),zs(),n6e=class{constructor(e){this.context=e,this.cursors=[new t6e(e)],this.lastAddedCursorIndex=0}dispose(){for(const e of this.cursors)e.dispose(this.context)}startTrackingSelections(){for(const e of this.cursors)e.startTrackingSelection(this.context)}stopTrackingSelections(){for(const e of this.cursors)e.stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){for(const e of this.cursors)e.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map(e=>e.readSelectionFromMarkers(this.context))}getAll(){return this.cursors.map(e=>e.asCursorState())}getViewPositions(){return this.cursors.map(e=>e.viewState.position)}getTopMostViewPosition(){return jjn(this.cursors,ug(e=>e.viewState.position,mt.compare)).viewState.position}getBottomMostViewPosition(){return Bjn(this.cursors,ug(e=>e.viewState.position,mt.compare)).viewState.position}getSelections(){return this.cursors.map(e=>e.modelState.selection)}getViewSelections(){return this.cursors.map(e=>e.viewState.selection)}setSelections(e){this.setStates(Zo.fromModelSelections(e))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(e){e!==null&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.cursors.length-1,n=e.length;if(t<n){const i=n-t;for(let r=0;r<i;r++)this._addSecondaryCursor()}else if(t>n){const i=t-n;for(let r=0;r<i;r++)this._removeSecondaryCursor(this.cursors.length-2)}for(let i=0;i<n;i++)this.cursors[i+1].setState(this.context,e[i].modelState,e[i].viewState)}killSecondaryCursors(){this._setSecondaryStates([])}_addSecondaryCursor(){this.cursors.push(new t6e(this.context)),this.lastAddedCursorIndex=this.cursors.length-1}getLastAddedCursorIndex(){return this.cursors.length===1||this.lastAddedCursorIndex===0?0:this.lastAddedCursorIndex}_removeSecondaryCursor(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}normalize(){if(this.cursors.length===1)return;const e=this.cursors.slice(0),t=[];for(let n=0,i=e.length;n<i;n++)t.push({index:n,selection:e[n].modelState.selection});t.sort(ug(n=>n.selection,Re.compareRangesUsingStarts));for(let n=0;n<t.length-1;n++){const i=t[n],r=t[n+1],o=i.selection,s=r.selection;if(!this.context.cursorConfig.multiCursorMergeOverlapping)continue;let a;if(s.isEmpty()||o.isEmpty()?a=s.getStartPosition().isBeforeOrEqual(o.getEndPosition()):a=s.getStartPosition().isBefore(o.getEndPosition()),a){const l=i.index<r.index?n:n+1,c=i.index<r.index?n+1:n,u=t[c].index,d=t[l].index,h=t[c].selection,f=t[l].selection;if(!h.equalsSelection(f)){const p=h.plusRange(f),g=h.selectionStartLineNumber===h.startLineNumber&&h.selectionStartColumn===h.startColumn,m=f.selectionStartLineNumber===f.startLineNumber&&f.selectionStartColumn===f.startColumn;let v;u===this.lastAddedCursorIndex?(v=g,this.lastAddedCursorIndex=d):v=m;let y;v?y=new Ii(p.startLineNumber,p.startColumn,p.endLineNumber,p.endColumn):y=new Ii(p.endLineNumber,p.endColumn,p.startLineNumber,p.startColumn),t[l].selection=y;const b=Zo.fromModelSelection(y);e[d].setState(this.context,b.modelState,b.viewState)}for(const p of t)p.index>u&&p.index--;e.splice(u,1),t.splice(c,1),this._removeSecondaryCursor(u-1),n--}}}}}}),i6e,Aqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorContext.js"(){i6e=class{constructor(e,t,n,i){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=n,this.cursorConfig=i}}}}),XZt,JZt,eXt,tXt,tI,bW,nXt,iXt,_W,r6e,xae,Eae,n8,rXt,oXt,sXt,aXt,lXt,zUe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/viewEvents.js"(){XZt=class{constructor(){this.type=0}},JZt=class{constructor(){this.type=1}},eXt=class{constructor(e){this.type=2,this._source=e}hasChanged(e){return this._source.hasChanged(e)}},tXt=class{constructor(e,t,n){this.selections=e,this.modelSelections=t,this.reason=n,this.type=3}},tI=class{constructor(e){this.type=4,e?(this.affectsMinimap=e.affectsMinimap,this.affectsOverviewRuler=e.affectsOverviewRuler,this.affectsGlyphMargin=e.affectsGlyphMargin,this.affectsLineNumber=e.affectsLineNumber):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0,this.affectsGlyphMargin=!0,this.affectsLineNumber=!0)}},bW=class{constructor(){this.type=5}},nXt=class{constructor(e){this.type=6,this.isFocused=e}},iXt=class{constructor(){this.type=7}},_W=class{constructor(){this.type=8}},r6e=class{constructor(e,t){this.fromLineNumber=e,this.count=t,this.type=9}},xae=class{constructor(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t}},Eae=class{constructor(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t}},n8=class{constructor(e,t,n,i,r,o,s){this.source=e,this.minimalReveal=t,this.range=n,this.selections=i,this.verticalType=r,this.revealHorizontal=o,this.scrollType=s,this.type=12}},rXt=class{constructor(e){this.type=13,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged}},oXt=class{constructor(e){this.theme=e,this.type=14}},sXt=class{constructor(e){this.type=15,this.ranges=e}},aXt=class{constructor(){this.type=16}},lXt=class{constructor(){this.type=17}}}}),cXt,Fpt,uXt,dXt,hXt,fXt,pXt,gXt,mXt,vXt,yXt,bXt,_Xt,wXt,CXt,VUe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/viewModelEventDispatcher.js"(){Un(),Nt(),cXt=class extends St{constructor(){super(),this._onEvent=this._register(new bt),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(e){this._addOutgoingEvent(e),this._emitOutgoingEvents()}_addOutgoingEvent(e){for(let t=0,n=this._outgoingEvents.length;t<n;t++){const i=this._outgoingEvents[t].kind===e.kind?this._outgoingEvents[t].attemptToMerge(e):null;if(i){this._outgoingEvents[t]=i;return}}this._outgoingEvents.push(e)}_emitOutgoingEvents(){for(;this._outgoingEvents.length>0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,n=this._eventHandlers.length;t<n;t++)this._eventHandlers[t]===e&&console.warn("Detected duplicate listener in ViewEventDispatcher",e);this._eventHandlers.push(e)}removeViewEventHandler(e){for(let t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}}beginEmitViewEvents(){return this._collectorCnt++,this._collectorCnt===1&&(this._collector=new Fpt),this._collector}endEmitViewEvents(){if(this._collectorCnt--,this._collectorCnt===0){const e=this._collector.outgoingEvents,t=this._collector.viewEvents;this._collector=null;for(const n of e)this._addOutgoingEvent(n);t.length>0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const n of t)n.handleEvents(e)}}},Fpt=class{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}},uXt=class SXt{constructor(t,n,i,r){this.kind=0,this._oldContentWidth=t,this._oldContentHeight=n,this.contentWidth=i,this.contentHeight=r,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}attemptToMerge(t){return t.kind!==this.kind?null:new SXt(this._oldContentWidth,this._oldContentHeight,t.contentWidth,t.contentHeight)}},dXt=class xXt{constructor(t,n){this.kind=1,this.oldHasFocus=t,this.hasFocus=n}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(t){return t.kind!==this.kind?null:new xXt(this.oldHasFocus,t.hasFocus)}},hXt=class EXt{constructor(t,n,i,r,o,s,a,l){this.kind=2,this._oldScrollWidth=t,this._oldScrollLeft=n,this._oldScrollHeight=i,this._oldScrollTop=r,this.scrollWidth=o,this.scrollLeft=s,this.scrollHeight=a,this.scrollTop=l,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}attemptToMerge(t){return t.kind!==this.kind?null:new EXt(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,t.scrollWidth,t.scrollLeft,t.scrollHeight,t.scrollTop)}},fXt=class{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}},pXt=class{constructor(){this.kind=4}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}},gXt=class o6e{constructor(t,n,i,r,o,s,a){this.kind=6,this.oldSelections=t,this.selections=n,this.oldModelVersionId=i,this.modelVersionId=r,this.source=o,this.reason=s,this.reachedMaxCursorCount=a}static _selectionsAreEqual(t,n){if(!t&&!n)return!0;if(!t||!n)return!1;const i=t.length,r=n.length;if(i!==r)return!1;for(let o=0;o<i;o++)if(!t[o].equalsSelection(n[o]))return!1;return!0}isNoOp(){return o6e._selectionsAreEqual(this.oldSelections,this.selections)&&this.oldModelVersionId===this.modelVersionId}attemptToMerge(t){return t.kind!==this.kind?null:new o6e(this.oldSelections,t.selections,this.oldModelVersionId,t.modelVersionId,t.source,t.reason,this.reachedMaxCursorCount||t.reachedMaxCursorCount)}},mXt=class{constructor(){this.kind=5}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}},vXt=class{constructor(e){this.event=e,this.kind=7}isNoOp(){return!1}attemptToMerge(e){return null}},yXt=class{constructor(e){this.event=e,this.kind=8}isNoOp(){return!1}attemptToMerge(e){return null}},bXt=class{constructor(e){this.event=e,this.kind=9}isNoOp(){return!1}attemptToMerge(e){return null}},_Xt=class{constructor(e){this.event=e,this.kind=10}isNoOp(){return!1}attemptToMerge(e){return null}},wXt=class{constructor(e){this.event=e,this.kind=11}isNoOp(){return!1}attemptToMerge(e){return null}},CXt=class{constructor(e){this.event=e,this.kind=12}isNoOp(){return!1}attemptToMerge(e){return null}}}}),AXt,Uee,RSe,Bpt,jpt,zpt,Dqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/cursor/cursor.js"(){Vi(),Ki(),Eqn(),Ib(),Aqn(),EUe(),LUe(),Mge(),Dn(),zs(),nF(),zUe(),Nt(),VUe(),AXt=class extends St{constructor(e,t,n,i){super(),this._model=e,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=t,this._coordinatesConverter=n,this.context=new i6e(this._model,this._viewModel,this._coordinatesConverter,i),this._cursors=new n6e(this.context),this._hasFocus=!1,this._isHandling=!1,this._compositionState=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=xa(this._autoClosedActions),super.dispose()}updateConfiguration(e){this.context=new i6e(this._model,this._viewModel,this._coordinatesConverter,e),this._cursors.updateContext(this.context)}onLineMappingChanged(e){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(e,"viewModel",0,this.getCursorStates())}setHasFocus(e){this._hasFocus=e}_validateAutoClosedActions(){if(this._autoClosedActions.length>0){const e=this._cursors.getSelections();for(let t=0;t<this._autoClosedActions.length;t++){const n=this._autoClosedActions[t];n.isValid(e)||(n.dispose(),this._autoClosedActions.splice(t,1),t--)}}}getPrimaryCursorState(){return this._cursors.getPrimaryCursor()}getLastAddedCursorIndex(){return this._cursors.getLastAddedCursorIndex()}getCursorStates(){return this._cursors.getAll()}setStates(e,t,n,i){let r=!1;const o=this.context.cursorConfig.multiCursorLimit;i!==null&&i.length>o&&(i=i.slice(0,o),r=!0);const s=Uee.from(this._model,this);return this._cursors.setStates(i),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,n,s,r)}setCursorColumnSelectData(e){this._columnSelectData=e}revealAll(e,t,n,i,r,o){const s=this._cursors.getViewPositions();let a=null,l=null;s.length>1?l=this._cursors.getViewSelections():a=Re.fromPositions(s[0],s[0]),e.emitViewEvent(new n8(t,n,a,l,i,r,o))}revealPrimary(e,t,n,i,r,o){const a=[this._cursors.getPrimaryCursor().viewState.selection];e.emitViewEvent(new n8(t,n,null,a,i,r,o))}saveState(){const e=[],t=this._cursors.getSelections();for(let n=0,i=t.length;n<i;n++){const r=t[n];e.push({inSelectionMode:!r.isEmpty(),selectionStart:{lineNumber:r.selectionStartLineNumber,column:r.selectionStartColumn},position:{lineNumber:r.positionLineNumber,column:r.positionColumn}})}return e}restoreState(e,t){const n=[];for(let i=0,r=t.length;i<r;i++){const o=t[i];let s=1,a=1;o.position&&o.position.lineNumber&&(s=o.position.lineNumber),o.position&&o.position.column&&(a=o.position.column);let l=s,c=a;o.selectionStart&&o.selectionStart.lineNumber&&(l=o.selectionStart.lineNumber),o.selectionStart&&o.selectionStart.column&&(c=o.selectionStart.column),n.push({selectionStartLineNumber:l,selectionStartColumn:c,positionLineNumber:s,positionColumn:a})}this.setStates(e,"restoreState",0,Zo.fromModelSelections(n)),this.revealAll(e,"restoreState",!1,0,!0,1)}onModelContentChanged(e,t){if(t instanceof KWe){if(this._isHandling)return;this._isHandling=!0;try{this.setStates(e,"modelChange",0,this.getCursorStates())}finally{this._isHandling=!1}}else{const n=t.rawContentChangedEvent;if(this._knownModelVersionId=n.versionId,this._isHandling)return;const i=n.containsEvent(1);if(this._prevEditOperationType=0,i)this._cursors.dispose(),this._cursors=new n6e(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,"model",1,null,!1);else if(this._hasFocus&&n.resultingSelection&&n.resultingSelection.length>0){const r=Zo.fromModelSelections(n.resultingSelection);this.setStates(e,"modelChange",n.isUndoing?5:n.isRedoing?6:2,r)&&this.revealAll(e,"modelChange",!1,0,!0,0)}else{const r=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,Zo.fromModelSelections(r))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),n=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:n.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,n)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,n,i){this.setStates(e,t,i,Zo.fromModelSelections(n))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){const n=[],i=[];for(let s=0,a=e.length;s<a;s++)n.push({range:e[s],options:{description:"auto-closed-character",inlineClassName:"auto-closed-character",stickiness:1}}),i.push({range:t[s],options:{description:"auto-closed-enclosing",stickiness:1}});const r=this._model.deltaDecorations([],n),o=this._model.deltaDecorations([],i);this._autoClosedActions.push(new RSe(this._model,r,o))}_executeEditOperation(e){if(!e)return;e.shouldPushStackElementBefore&&this._model.pushStackElement();const t=Bpt.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);const n=[],i=[];for(let r=0;r<e.commands.length;r++){const o=e.commands[r];o instanceof yae&&o.enclosingRange&&o.closeCharacterRange&&(n.push(o.closeCharacterRange),i.push(o.enclosingRange))}n.length>0&&this._pushAutoClosedAction(n,i),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){(!e||e.length===0)&&(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,n,i,r){const o=Uee.from(this._model,this);if(o.equals(i))return!1;const s=this._cursors.getSelections(),a=this._cursors.getViewSelections();if(e.emitViewEvent(new tXt(a,s,n)),!i||i.cursorState.length!==o.cursorState.length||o.cursorState.some((l,c)=>!l.modelState.equals(i.cursorState[c].modelState))){const l=i?i.cursorState.map(u=>u.modelState.selection):null,c=i?i.modelVersionId:0;e.emitOutgoingEvent(new gXt(l,s,c,o.modelVersionId,t||"keyboard",n,r))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;const t=[];for(let n=0,i=e.length;n<i;n++){const r=e[n];if(!r.text||r.text.indexOf(`
`)>=0)return null;const o=r.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!o)return null;const s=o[1],a=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(s);if(!a||a.length!==1)return null;const l=a[0].open,c=r.text.length-o[2].length-1,u=r.text.lastIndexOf(l,c-1);if(u===-1)return null;t.push([u,c])}return t}executeEdits(e,t,n,i){let r=null;t==="snippet"&&(r=this._findAutoClosingPairs(n)),r&&(n[0]._isTracked=!0);const o=[],s=[],a=this._model.pushEditOperations(this.getSelections(),n,l=>{if(r)for(let u=0,d=r.length;u<d;u++){const[h,f]=r[u],p=l[u],g=p.range.startLineNumber,m=p.range.startColumn-1+h,v=p.range.startColumn-1+f;o.push(new Re(g,v+1,g,v+2)),s.push(new Re(g,m+1,g,v+2))}const c=i(l);return c&&(this._isHandling=!0),c});a&&(this._isHandling=!1,this.setSelections(e,t,a,0)),o.length>0&&this._pushAutoClosedAction(o,s)}_executeEdit(e,t,n,i=0){if(this.context.cursorConfig.readOnly)return;const r=Uee.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(o){Mr(o)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,n,i,r,!1)&&this.revealAll(t,n,!1,0,!0,0)}getAutoClosedCharacters(){return RSe.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._compositionState=new zpt(this._model,this.getSelections())}endComposition(e,t){const n=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit(()=>{t==="keyboard"&&this._executeEditOperation(tD.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,n,this.getSelections(),this.getAutoClosedCharacters()))},e,t)}type(e,t,n){this._executeEdit(()=>{if(n==="keyboard"){const i=t.length;let r=0;for(;r<i;){const o=V3e(t,r),s=t.substr(r,o);this._executeEditOperation(tD.typeWithInterceptors(!!this._compositionState,this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),this.getAutoClosedCharacters(),s)),r+=o}}else this._executeEditOperation(tD.typeWithoutInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t))},e,n)}compositionType(e,t,n,i,r,o){if(t.length===0&&n===0&&i===0){if(r!==0){const s=this.getSelections().map(a=>{const l=a.getPosition();return new Ii(l.lineNumber,l.column+r,l.lineNumber,l.column+r)});this.setSelections(e,o,s,0)}return}this._executeEdit(()=>{this._executeEditOperation(tD.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,n,i,r))},e,o)}paste(e,t,n,i,r){this._executeEdit(()=>{this._executeEditOperation(tD.paste(this.context.cursorConfig,this._model,this.getSelections(),t,n,i||[]))},e,r,4)}cut(e,t){this._executeEdit(()=>{this._executeEditOperation(dG.cut(this.context.cursorConfig,this._model,this.getSelections()))},e,t)}executeCommand(e,t,n){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new Qp(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,n)}executeCommands(e,t,n){this._executeEdit(()=>{this._executeEditOperation(new Qp(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,n)}},Uee=class DXt{static from(t,n){return new DXt(t.getVersionId(),n.getCursorStates())}constructor(t,n){this.modelVersionId=t,this.cursorState=n}equals(t){if(!t||this.modelVersionId!==t.modelVersionId||this.cursorState.length!==t.cursorState.length)return!1;for(let n=0,i=this.cursorState.length;n<i;n++)if(!this.cursorState[n].equals(t.cursorState[n]))return!1;return!0}},RSe=class{static getAllAutoClosedCharacters(e){let t=[];for(const n of e)t=t.concat(n.getAutoClosedCharactersRanges());return t}constructor(e,t,n){this._model=e,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=n}dispose(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])}getAutoClosedCharactersRanges(){const e=[];for(let t=0;t<this._autoClosedCharactersDecorations.length;t++){const n=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);n&&e.push(n)}return e}isValid(e){const t=[];for(let n=0;n<this._autoClosedEnclosingDecorations.length;n++){const i=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[n]);if(i&&(t.push(i),i.startLineNumber!==i.endLineNumber))return!1}t.sort(Re.compareRangesUsingStarts),e.sort(Re.compareRangesUsingStarts);for(let n=0;n<e.length;n++)if(n>=t.length||!t[n].strictContainsRange(e[n]))return!1;return!0}},Bpt=class{static executeCommands(e,t,n){const i={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},r=this._innerExecuteCommands(i,n);for(let o=0,s=i.trackedRanges.length;o<s;o++)i.model._setTrackedRange(i.trackedRanges[o],null,0);return r}static _innerExecuteCommands(e,t){if(this._arrayIsEmpty(t))return null;const n=this._getEditOperations(e,t);if(n.operations.length===0)return null;const i=n.operations,r=this._getLoserCursorMap(i);if(r.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;const o=[];for(let l=0,c=i.length;l<c;l++)r.hasOwnProperty(i[l].identifier.major.toString())||o.push(i[l]);n.hadTrackedEditOperation&&o.length>0&&(o[0]._isTracked=!0);let s=e.model.pushEditOperations(e.selectionsBefore,o,l=>{const c=[];for(let h=0;h<e.selectionsBefore.length;h++)c[h]=[];for(const h of l)h.identifier&&c[h.identifier.major].push(h);const u=(h,f)=>h.identifier.minor-f.identifier.minor,d=[];for(let h=0;h<e.selectionsBefore.length;h++)c[h].length>0?(c[h].sort(u),d[h]=t[h].computeCursorState(e.model,{getInverseEditOperations:()=>c[h],getTrackedSelection:f=>{const p=parseInt(f,10),g=e.model._getTrackedRange(e.trackedRanges[p]);return e.trackedRangesDirection[p]===0?new Ii(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn):new Ii(g.endLineNumber,g.endColumn,g.startLineNumber,g.startColumn)}})):d[h]=e.selectionsBefore[h];return d});s||(s=e.selectionsBefore);const a=[];for(const l in r)r.hasOwnProperty(l)&&a.push(parseInt(l,10));a.sort((l,c)=>c-l);for(const l of a)s.splice(l,1);return s}static _arrayIsEmpty(e){for(let t=0,n=e.length;t<n;t++)if(e[t])return!1;return!0}static _getEditOperations(e,t){let n=[],i=!1;for(let r=0,o=t.length;r<o;r++){const s=t[r];if(s){const a=this._getEditOperationsFromCommand(e,r,s);n=n.concat(a.operations),i=i||a.hadTrackedEditOperation}}return{operations:n,hadTrackedEditOperation:i}}static _getEditOperationsFromCommand(e,t,n){const i=[];let r=0;const o=(u,d,h=!1)=>{Re.isEmpty(u)&&d===""||i.push({identifier:{major:t,minor:r++},range:u,text:d,forceMoveMarkers:h,isAutoWhitespaceEdit:n.insertsAutoWhitespace})};let s=!1;const c={addEditOperation:o,addTrackedEditOperation:(u,d,h)=>{s=!0,o(u,d,h)},trackSelection:(u,d)=>{const h=Ii.liftSelection(u);let f;if(h.isEmpty())if(typeof d=="boolean")d?f=2:f=3;else{const m=e.model.getLineMaxColumn(h.startLineNumber);h.startColumn===m?f=2:f=3}else f=1;const p=e.trackedRanges.length,g=e.model._setTrackedRange(null,h,f);return e.trackedRanges[p]=g,e.trackedRangesDirection[p]=h.getDirection(),p.toString()}};try{n.getEditOperations(e.model,c)}catch(u){return Mr(u),{operations:[],hadTrackedEditOperation:!1}}return{operations:i,hadTrackedEditOperation:s}}static _getLoserCursorMap(e){e=e.slice(0),e.sort((n,i)=>-Re.compareRangesUsingEnds(n.range,i.range));const t={};for(let n=1;n<e.length;n++){const i=e[n-1],r=e[n];if(Re.getStartPosition(i.range).isBefore(Re.getEndPosition(r.range))){let o;i.identifier.major>r.identifier.major?o=i.identifier.major:o=r.identifier.major,t[o.toString()]=!0;for(let s=0;s<e.length;s++)e[s].identifier.major===o&&(e.splice(s,1),s<n&&n--,s--);n>0&&n--}}return t}},jpt=class{constructor(e,t,n){this.text=e,this.startSelection=t,this.endSelection=n}},zpt=class Aae{static _capture(t,n){const i=[];for(const r of n){if(r.startLineNumber!==r.endLineNumber)return null;i.push(new jpt(t.getLineContent(r.startLineNumber),r.startColumn-1,r.endColumn-1))}return i}constructor(t,n){this._original=Aae._capture(t,n)}deduceOutcome(t,n){if(!this._original)return null;const i=Aae._capture(t,n);if(!i||this._original.length!==i.length)return null;const r=[];for(let o=0,s=this._original.length;o<s;o++)r.push(Aae._deduceOutcome(this._original[o],i[o]));return r}static _deduceOutcome(t,n){const i=Math.min(t.startSelection,n.startSelection,kL(t.text,n.text)),r=Math.min(t.text.length-t.endSelection,n.text.length-n.endSelection,bue(t.text,n.text)),o=t.text.substring(i,t.text.length-r),s=n.text.substring(i,n.text.length-r);return new JQt(o,t.startSelection-i,t.endSelection-i,s,n.startSelection-i,n.endSelection-i)}}}}),Vpt,Hpt,TXt,Tqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/viewLayout/linesLayout.js"(){var e;Ki(),Vpt=class{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(t){this._hasPending=!0,this._inserts.push(t)}change(t){this._hasPending=!0,this._changes.push(t)}remove(t){this._hasPending=!0,this._removes.push(t)}mustCommit(){return this._hasPending}commit(t){if(!this._hasPending)return;const n=this._inserts,i=this._changes,r=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],t._commitPendingChanges(n,i,r)}},Hpt=class{constructor(t,n,i,r,o){this.id=t,this.afterLineNumber=n,this.ordinal=i,this.height=r,this.minWidth=o,this.prefixSum=0}},TXt=(e=class{constructor(n,i,r,o){this._instanceId=UVt(++e.INSTANCE_COUNT),this._pendingChanges=new Vpt,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=n,this._lineHeight=i,this._paddingTop=r,this._paddingBottom=o}static findInsertionIndex(n,i,r){let o=0,s=n.length;for(;o<s;){const a=o+s>>>1;i===n[a].afterLineNumber?r<n[a].ordinal?s=a:o=a+1:i<n[a].afterLineNumber?s=a:o=a+1}return o}setLineHeight(n){this._checkPendingChanges(),this._lineHeight=n}setPadding(n,i){this._paddingTop=n,this._paddingBottom=i}onFlushed(n){this._checkPendingChanges(),this._lineCount=n}changeWhitespace(n){let i=!1;try{n({insertWhitespace:(o,s,a,l)=>{i=!0,o=o|0,s=s|0,a=a|0,l=l|0;const c=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new Hpt(c,o,s,a,l)),c},changeOneWhitespace:(o,s,a)=>{i=!0,s=s|0,a=a|0,this._pendingChanges.change({id:o,newAfterLineNumber:s,newHeight:a})},removeWhitespace:o=>{i=!0,this._pendingChanges.remove({id:o})}})}finally{this._pendingChanges.commit(this)}return i}_commitPendingChanges(n,i,r){if((n.length>0||r.length>0)&&(this._minWidth=-1),n.length+i.length+r.length<=1){for(const c of n)this._insertWhitespace(c);for(const c of i)this._changeOneWhitespace(c.id,c.newAfterLineNumber,c.newHeight);for(const c of r){const u=this._findWhitespaceIndex(c.id);u!==-1&&this._removeWhitespace(u)}return}const o=new Set;for(const c of r)o.add(c.id);const s=new Map;for(const c of i)s.set(c.id,c);const a=c=>{const u=[];for(const d of c)if(!o.has(d.id)){if(s.has(d.id)){const h=s.get(d.id);d.afterLineNumber=h.newAfterLineNumber,d.height=h.newHeight}u.push(d)}return u},l=a(this._arr).concat(a(n));l.sort((c,u)=>c.afterLineNumber===u.afterLineNumber?c.ordinal-u.ordinal:c.afterLineNumber-u.afterLineNumber),this._arr=l,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(n){const i=e.findInsertionIndex(this._arr,n.afterLineNumber,n.ordinal);this._arr.splice(i,0,n),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,i-1)}_findWhitespaceIndex(n){const i=this._arr;for(let r=0,o=i.length;r<o;r++)if(i[r].id===n)return r;return-1}_changeOneWhitespace(n,i,r){const o=this._findWhitespaceIndex(n);if(o!==-1&&(this._arr[o].height!==r&&(this._arr[o].height=r,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,o-1)),this._arr[o].afterLineNumber!==i)){const s=this._arr[o];this._removeWhitespace(o),s.afterLineNumber=i,this._insertWhitespace(s)}}_removeWhitespace(n){this._arr.splice(n,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,n-1)}onLinesDeleted(n,i){this._checkPendingChanges(),n=n|0,i=i|0,this._lineCount-=i-n+1;for(let r=0,o=this._arr.length;r<o;r++){const s=this._arr[r].afterLineNumber;n<=s&&s<=i?this._arr[r].afterLineNumber=n-1:s>i&&(this._arr[r].afterLineNumber-=i-n+1)}}onLinesInserted(n,i){this._checkPendingChanges(),n=n|0,i=i|0,this._lineCount+=i-n+1;for(let r=0,o=this._arr.length;r<o;r++){const s=this._arr[r].afterLineNumber;n<=s&&(this._arr[r].afterLineNumber+=i-n+1)}}getWhitespacesTotalHeight(){return this._checkPendingChanges(),this._arr.length===0?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)}getWhitespacesAccumulatedHeight(n){this._checkPendingChanges(),n=n|0;let i=Math.max(0,this._prefixSumValidIndex+1);i===0&&(this._arr[0].prefixSum=this._arr[0].height,i++);for(let r=i;r<=n;r++)this._arr[r].prefixSum=this._arr[r-1].prefixSum+this._arr[r].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,n),this._arr[n].prefixSum}getLinesTotalHeight(){this._checkPendingChanges();const n=this._lineHeight*this._lineCount,i=this.getWhitespacesTotalHeight();return n+i+this._paddingTop+this._paddingBottom}getWhitespaceAccumulatedHeightBeforeLineNumber(n){this._checkPendingChanges(),n=n|0;const i=this._findLastWhitespaceBeforeLineNumber(n);return i===-1?0:this.getWhitespacesAccumulatedHeight(i)}_findLastWhitespaceBeforeLineNumber(n){n=n|0;const i=this._arr;let r=0,o=i.length-1;for(;r<=o;){const a=(o-r|0)/2|0,l=r+a|0;if(i[l].afterLineNumber<n){if(l+1>=i.length||i[l+1].afterLineNumber>=n)return l;r=l+1|0}else o=l-1|0}return-1}_findFirstWhitespaceAfterLineNumber(n){n=n|0;const r=this._findLastWhitespaceBeforeLineNumber(n)+1;return r<this._arr.length?r:-1}getFirstWhitespaceIndexAfterLineNumber(n){return this._checkPendingChanges(),n=n|0,this._findFirstWhitespaceAfterLineNumber(n)}getVerticalOffsetForLineNumber(n,i=!1){this._checkPendingChanges(),n=n|0;let r;n>1?r=this._lineHeight*(n-1):r=0;const o=this.getWhitespaceAccumulatedHeightBeforeLineNumber(n-(i?1:0));return r+o+this._paddingTop}getVerticalOffsetAfterLineNumber(n,i=!1){this._checkPendingChanges(),n=n|0;const r=this._lineHeight*n,o=this.getWhitespaceAccumulatedHeightBeforeLineNumber(n+(i?1:0));return r+o+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),this._minWidth===-1){let n=0;for(let i=0,r=this._arr.length;i<r;i++)n=Math.max(n,this._arr[i].minWidth);this._minWidth=n}return this._minWidth}isAfterLines(n){this._checkPendingChanges();const i=this.getLinesTotalHeight();return n>i}isInTopPadding(n){return this._paddingTop===0?!1:(this._checkPendingChanges(),n<this._paddingTop)}isInBottomPadding(n){if(this._paddingBottom===0)return!1;this._checkPendingChanges();const i=this.getLinesTotalHeight();return n>=i-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(n){if(this._checkPendingChanges(),n=n|0,n<0)return 1;const i=this._lineCount|0,r=this._lineHeight;let o=1,s=i;for(;o<s;){const a=(o+s)/2|0,l=this.getVerticalOffsetForLineNumber(a)|0;if(n>=l+r)o=a+1;else{if(n>=l)return a;s=a}}return o>i?i:o}getLinesViewportData(n,i){this._checkPendingChanges(),n=n|0,i=i|0;const r=this._lineHeight,o=this.getLineNumberAtOrAfterVerticalOffset(n)|0,s=this.getVerticalOffsetForLineNumber(o)|0;let a=this._lineCount|0,l=this.getFirstWhitespaceIndexAfterLineNumber(o)|0;const c=this.getWhitespacesCount()|0;let u,d;l===-1?(l=c,d=a+1,u=0):(d=this.getAfterLineNumberForWhitespaceIndex(l)|0,u=this.getHeightForWhitespaceIndex(l)|0);let h=s,f=h;const p=5e5;let g=0;s>=p&&(g=Math.floor(s/p)*p,g=Math.floor(g/r)*r,f-=g);const m=[],v=n+(i-n)/2;let y=-1;for(let A=o;A<=a;A++){if(y===-1){const D=h,T=h+r;(D<=v&&v<T||D>v)&&(y=A)}for(h+=r,m[A-o]=f,f+=r;d===A;)f+=u,h+=u,l++,l>=c?d=a+1:(d=this.getAfterLineNumberForWhitespaceIndex(l)|0,u=this.getHeightForWhitespaceIndex(l)|0);if(h>=i){a=A;break}}y===-1&&(y=a);const b=this.getVerticalOffsetForLineNumber(a)|0;let w=o,E=a;return w<E&&s<n&&w++,w<E&&b+r>i&&E--,{bigNumbersDelta:g,startLineNumber:o,endLineNumber:a,relativeVerticalOffset:m,centeredLineNumber:y,completelyVisibleStartLineNumber:w,completelyVisibleEndLineNumber:E,lineHeight:this._lineHeight}}getVerticalOffsetForWhitespaceIndex(n){this._checkPendingChanges(),n=n|0;const i=this.getAfterLineNumberForWhitespaceIndex(n);let r;i>=1?r=this._lineHeight*i:r=0;let o;return n>0?o=this.getWhitespacesAccumulatedHeight(n-1):o=0,r+o+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(n){this._checkPendingChanges(),n=n|0;let i=0,r=this.getWhitespacesCount()-1;if(r<0)return-1;const o=this.getVerticalOffsetForWhitespaceIndex(r),s=this.getHeightForWhitespaceIndex(r);if(n>=o+s)return-1;for(;i<r;){const a=Math.floor((i+r)/2),l=this.getVerticalOffsetForWhitespaceIndex(a),c=this.getHeightForWhitespaceIndex(a);if(n>=l+c)i=a+1;else{if(n>=l)return a;r=a}}return i}getWhitespaceAtVerticalOffset(n){this._checkPendingChanges(),n=n|0;const i=this.getWhitespaceIndexAtOrAfterVerticallOffset(n);if(i<0||i>=this.getWhitespacesCount())return null;const r=this.getVerticalOffsetForWhitespaceIndex(i);if(r>n)return null;const o=this.getHeightForWhitespaceIndex(i),s=this.getIdForWhitespaceIndex(i),a=this.getAfterLineNumberForWhitespaceIndex(i);return{id:s,afterLineNumber:a,verticalOffset:r,height:o}}getWhitespaceViewportData(n,i){this._checkPendingChanges(),n=n|0,i=i|0;const r=this.getWhitespaceIndexAtOrAfterVerticallOffset(n),o=this.getWhitespacesCount()-1;if(r<0)return[];const s=[];for(let a=r;a<=o;a++){const l=this.getVerticalOffsetForWhitespaceIndex(a),c=this.getHeightForWhitespaceIndex(a);if(l>=i)break;s.push({id:this.getIdForWhitespaceIndex(a),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(a),verticalOffset:l,height:c})}return s}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(n){return this._checkPendingChanges(),n=n|0,this._arr[n].id}getAfterLineNumberForWhitespaceIndex(n){return this._checkPendingChanges(),n=n|0,this._arr[n].afterLineNumber}getHeightForWhitespaceIndex(n){return this._checkPendingChanges(),n=n|0,this._arr[n].height}},e.INSTANCE_COUNT=0,e)}}),Wpt,Z5,Upt,kXt,kqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/viewLayout/viewLayout.js"(){Un(),Nt(),cY(),Tqn(),KC(),VUe(),Wpt=125,Z5=class{constructor(e,t,n,i){e=e|0,t=t|0,n=n|0,i=i|0,e<0&&(e=0),t<0&&(t=0),n<0&&(n=0),i<0&&(i=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=n,this.contentHeight=i,this.scrollHeight=Math.max(n,i)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}},Upt=class extends St{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new bt),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new Z5(0,0,0,0),this._scrollable=this._register(new XR({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const n=t.contentWidth!==e.contentWidth,i=t.contentHeight!==e.contentHeight;(n||i)&&this._onDidContentSizeChange.fire(new uXt(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}},kXt=class extends St{constructor(e,t,n){super(),this._configuration=e;const i=this._configuration.options,r=i.get(146),o=i.get(84);this._linesLayout=new TXt(t,i.get(67),o.top,o.bottom),this._maxLineWidth=0,this._overlayWidgetsMinWidth=0,this._scrollable=this._register(new Upt(0,n)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new Z5(r.contentWidth,0,r.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(115)?Wpt:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(67)&&this._linesLayout.setLineHeight(t.get(67)),e.hasChanged(84)){const n=t.get(84);this._linesLayout.setPadding(n.top,n.bottom)}if(e.hasChanged(146)){const n=t.get(146),i=n.contentWidth,r=n.height,o=this._scrollable.getScrollDimensions(),s=o.contentWidth;this._scrollable.setScrollDimensions(new Z5(i,o.contentWidth,r,this._getContentHeight(i,r,s)))}else this._updateHeight();e.hasChanged(115)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const i=this._configuration.options.get(104);return i.horizontal===2||e>=t?0:i.horizontalScrollbarSize}_getContentHeight(e,t,n){const i=this._configuration.options;let r=this._linesLayout.getLinesTotalHeight();return i.get(106)?r+=Math.max(0,t-i.get(67)-i.get(84).bottom):i.get(104).ignoreHorizontalScrollbarInContentHeight||(r+=this._getHorizontalScrollbarHeight(e,n)),r}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,n=e.height,i=e.contentWidth;this._scrollable.setScrollDimensions(new Z5(t,e.contentWidth,n,this._getContentHeight(t,n,i)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new zBe(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new zBe(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(){const e=this._configuration.options,t=this._maxLineWidth,n=e.get(147),i=e.get(50),r=e.get(146);if(n.isViewportWrapping){const o=e.get(73);return t>r.contentWidth+i.typicalHalfwidthCharacterWidth&&o.enabled&&o.side==="right"?t+r.verticalScrollbarWidth:t}else{const o=e.get(105)*i.typicalHalfwidthCharacterWidth,s=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+o+r.verticalScrollbarWidth,s,this._overlayWidgetsMinWidth)}}setMaxLineWidth(e){this._maxLineWidth=e,this._updateContentWidth()}setOverlayWidgetsMinWidth(e){this._overlayWidgetsMinWidth=e,this._updateContentWidth()}_updateContentWidth(){const e=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new Z5(e.width,this._computeContentWidth(),e.height,e.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,n=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t),i=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(n);return{scrollTop:t,scrollTopWithoutViewZones:t-i,scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetAfterLineNumber(e,t)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){t===1?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}deltaScrollNow(e,t){const n=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:n.scrollLeft+e,scrollTop:n.scrollTop+t})}}}});function s6e(e,t){return!(t.options.hideInCommentTokens&&a6e(e,t)||t.options.hideInStringTokens&&l6e(e,t))}function a6e(e,t){return IXt(e,t.range,n=>n===1)}function l6e(e,t){return IXt(e,t.range,n=>n===2)}function IXt(e,t,n){for(let i=t.startLineNumber;i<=t.endLineNumber;i++){const r=e.tokenization.getLineTokens(i),o=i===t.startLineNumber,s=i===t.endLineNumber;let a=o?r.findTokenIndexAtOffset(t.startColumn-1):0;for(;a<r.getCount()&&!(s&&r.getStartOffset(a)>t.endColumn-1);){if(!n(r.getStandardTokenType(a)))return!1;a++}}return!0}var LXt,NXt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewModelDecorations.js"(){Hi(),Dn(),KC(),Su(),LXt=class{constructor(e,t,n,i,r){this.editorId=e,this.model=t,this.configuration=n,this._linesCollection=i,this._coordinatesConverter=r,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let n=this._decorationsCache[t];if(!n){const i=e.range,r=e.options;let o;if(r.isWholeLine){const s=this._coordinatesConverter.convertModelPositionToViewPosition(new mt(i.startLineNumber,1),0,!1,!0),a=this._coordinatesConverter.convertModelPositionToViewPosition(new mt(i.endLineNumber,this.model.getLineMaxColumn(i.endLineNumber)),1);o=new Re(s.lineNumber,s.column,a.lineNumber,a.column)}else o=this._coordinatesConverter.convertModelRangeToViewRange(i,1);n=new yUe(o,r),this._decorationsCache[t]=n}return n}getMinimapDecorationsInRange(e){return this._getDecorationsInRange(e,!0,!1).decorations}getDecorationsViewportData(e){let t=this._cachedModelDecorationsResolver!==null;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e,!1,!1),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(e,t=!1,n=!1){const i=new Re(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(i,t,n).inlineDecorations[0]}_getDecorationsInRange(e,t,n){const i=this._linesCollection.getDecorationsInRange(e,this.editorId,Rue(this.configuration.options),t,n),r=e.startLineNumber,o=e.endLineNumber,s=[];let a=0;const l=[];for(let c=r;c<=o;c++)l[c-r]=[];for(let c=0,u=i.length;c<u;c++){const d=i[c],h=d.options;if(!s6e(this.model,d))continue;const f=this._getOrCreateViewModelDecoration(d),p=f.range;if(s[a++]=f,h.inlineClassName){const g=new Z6(p,h.inlineClassName,h.inlineClassNameAffectsLetterSpacing?3:0),m=Math.max(r,p.startLineNumber),v=Math.min(o,p.endLineNumber);for(let y=m;y<=v;y++)l[y-r].push(g)}if(h.beforeContentClassName&&r<=p.startLineNumber&&p.startLineNumber<=o){const g=new Z6(new Re(p.startLineNumber,p.startColumn,p.startLineNumber,p.startColumn),h.beforeContentClassName,1);l[p.startLineNumber-r].push(g)}if(h.afterContentClassName&&r<=p.endLineNumber&&p.endLineNumber<=o){const g=new Z6(new Re(p.endLineNumber,p.endColumn,p.endLineNumber,p.endColumn),h.afterContentClassName,2);l[p.endLineNumber-r].push(g)}}return{decorations:s,inlineDecorations:l}}}}});function FSe(e,t){return e===null?t?c6e.INSTANCE:u6e.INSTANCE:new PXt(e,t)}function $pt(e){if(e>=Dae.length)for(let t=1;t<=e;t++)Dae[t]=Iqn(t);return Dae[e]}function Iqn(e){return new Array(e+1).join(" ")}var PXt,c6e,u6e,Dae,Lqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/viewModel/modelLineProjection.js"(){var e,t;bw(),Hi(),nF(),KC(),PXt=class{constructor(n,i){this._projectionData=n,this._isVisible=i}isVisible(){return this._isVisible}setVisible(n){return this._isVisible=n,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(n,i,r){this._assertVisible();const o=r>0?this._projectionData.breakOffsets[r-1]:0,s=this._projectionData.breakOffsets[r];let a;if(this._projectionData.injectionOffsets!==null){const l=this._projectionData.injectionOffsets.map((u,d)=>new zD(0,0,u+1,this._projectionData.injectionOptions[d],0));a=zD.applyInjectedText(n.getLineContent(i),l).substring(o,s)}else a=n.getValueInRange({startLineNumber:i,startColumn:o+1,endLineNumber:i,endColumn:s+1});return r>0&&(a=$pt(this._projectionData.wrappedTextIndentLength)+a),a}getViewLineLength(n,i,r){return this._assertVisible(),this._projectionData.getLineLength(r)}getViewLineMinColumn(n,i,r){return this._assertVisible(),this._projectionData.getMinOutputOffset(r)+1}getViewLineMaxColumn(n,i,r){return this._assertVisible(),this._projectionData.getMaxOutputOffset(r)+1}getViewLineData(n,i,r){const o=new Array;return this.getViewLinesData(n,i,r,1,0,[!0],o),o[0]}getViewLinesData(n,i,r,o,s,a,l){this._assertVisible();const c=this._projectionData,u=c.injectionOffsets,d=c.injectionOptions;let h=null;if(u){h=[];let p=0,g=0;for(let m=0;m<c.getOutputLineCount();m++){const v=new Array;h[m]=v;const y=m>0?c.breakOffsets[m-1]:0,b=c.breakOffsets[m];for(;g<u.length;){const w=d[g].content.length,E=u[g]+p,A=E+w;if(E>b)break;if(y<A){const D=d[g];if(D.inlineClassName){const T=m>0?c.wrappedTextIndentLength:0,M=T+Math.max(E-y,0),P=T+Math.min(A-y,b-y);M!==P&&v.push(new bQt(M,P,D.inlineClassName,D.inlineClassNameAffectsLetterSpacing))}}if(A<=b)p+=w,g++;else break}}}let f;u?f=n.tokenization.getLineTokens(i).withInserted(u.map((p,g)=>({offset:p,text:d[g].content,tokenMetadata:Dh.defaultTokenMetadata}))):f=n.tokenization.getLineTokens(i);for(let p=r;p<r+o;p++){const g=s+p-r;if(!a[g]){l[g]=null;continue}l[g]=this._getViewLineData(f,h?h[p]:null,p)}}_getViewLineData(n,i,r){this._assertVisible();const o=this._projectionData,s=r>0?o.wrappedTextIndentLength:0,a=r>0?o.breakOffsets[r-1]:0,l=o.breakOffsets[r],c=n.sliceAndInflate(a,l,s);let u=c.getLineContent();r>0&&(u=$pt(o.wrappedTextIndentLength)+u);const d=this._projectionData.getMinOutputOffset(r)+1,h=u.length+1,f=r+1<this.getViewLineCount(),p=r===0?0:o.breakOffsetsVisibleColumn[r-1];return new Cde(u,f,d,h,p,c,i)}getModelColumnOfViewPosition(n,i){return this._assertVisible(),this._projectionData.translateToInputOffset(n,i-1)+1}getViewPositionOfModelPosition(n,i,r=2){return this._assertVisible(),this._projectionData.translateToOutputPosition(i-1,r).toPosition(n)}getViewLineNumberOfModelPosition(n,i){this._assertVisible();const r=this._projectionData.translateToOutputPosition(i-1);return n+r.outputLineIndex}normalizePosition(n,i,r){const o=i.lineNumber-n;return this._projectionData.normalizeOutputPosition(n,i.column-1,r).toPosition(o)}getInjectedTextAt(n,i){return this._projectionData.getInjectedText(n,i-1)}_assertVisible(){if(!this._isVisible)throw new Error("Not supported")}},c6e=(e=class{constructor(){}isVisible(){return!0}setVisible(i){return i?this:u6e.INSTANCE}getProjectionData(){return null}getViewLineCount(){return 1}getViewLineContent(i,r,o){return i.getLineContent(r)}getViewLineLength(i,r,o){return i.getLineLength(r)}getViewLineMinColumn(i,r,o){return i.getLineMinColumn(r)}getViewLineMaxColumn(i,r,o){return i.getLineMaxColumn(r)}getViewLineData(i,r,o){const s=i.tokenization.getLineTokens(r),a=s.getLineContent();return new Cde(a,!1,1,a.length+1,0,s.inflate(),null)}getViewLinesData(i,r,o,s,a,l,c){if(!l[a]){c[a]=null;return}c[a]=this.getViewLineData(i,r,0)}getModelColumnOfViewPosition(i,r){return r}getViewPositionOfModelPosition(i,r){return new mt(i,r)}getViewLineNumberOfModelPosition(i,r){return i}normalizePosition(i,r,o){return r}getInjectedTextAt(i,r){return null}},e.INSTANCE=new e,e),u6e=(t=class{constructor(){}isVisible(){return!1}setVisible(i){return i?c6e.INSTANCE:this}getProjectionData(){return null}getViewLineCount(){return 0}getViewLineContent(i,r,o){throw new Error("Not supported")}getViewLineLength(i,r,o){throw new Error("Not supported")}getViewLineMinColumn(i,r,o){throw new Error("Not supported")}getViewLineMaxColumn(i,r,o){throw new Error("Not supported")}getViewLineData(i,r,o){throw new Error("Not supported")}getViewLinesData(i,r,o,s,a,l,c){throw new Error("Not supported")}getModelColumnOfViewPosition(i,r){throw new Error("Not supported")}getViewPositionOfModelPosition(i,r){throw new Error("Not supported")}getViewLineNumberOfModelPosition(i,r){throw new Error("Not supported")}normalizePosition(i,r,o){throw new Error("Not supported")}getInjectedTextAt(i,r){throw new Error("Not supported")}},t.INSTANCE=new t,t),Dae=[""]}});function Nqn(e){if(e.length===0)return[];const t=e.slice();t.sort(Re.compareRangesUsingStarts);const n=[];let i=t[0].startLineNumber,r=t[0].endLineNumber;for(let o=1,s=t.length;o<s;o++){const a=t[o];a.startLineNumber>r+1?(n.push(new Re(i,1,r,1)),i=a.startLineNumber,r=a.endLineNumber):a.endLineNumber>r&&(r=a.endLineNumber)}return n.push(new Re(i,1,r,1)),n}var MXt,BSe,jSe,qpt,OXt,Gpt,Pqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewModelLines.js"(){rr(),Hi(),Dn(),jWe(),Ac(),nF(),zUe(),Lqn(),KUt(),KC(),MXt=class{constructor(e,t,n,i,r,o,s,a,l,c){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=n,this._monospaceLineBreaksComputerFactory=i,this.fontInfo=r,this.tabSize=o,this.wrappingStrategy=s,this.wrappingColumn=a,this.wrappingIndent=l,this.wordBreak=c,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new qpt(this)}_constructLines(e,t){this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const n=this.model.getLinesContent(),i=this.model.getInjectedTextDecorations(this._editorId),r=n.length,o=this.createLineBreaksComputer(),s=new Xx(zD.fromDecorations(i));for(let p=0;p<r;p++){const g=s.takeWhile(m=>m.lineNumber===p+1);o.addRequest(n[p],g,t?t[p]:null)}const a=o.finalize(),l=[],c=this.hiddenAreasDecorationIds.map(p=>this.model.getDecorationRange(p)).sort(Re.compareRangesUsingStarts);let u=1,d=0,h=-1,f=h+1<c.length?d+1:r+2;for(let p=0;p<r;p++){const g=p+1;g===f&&(h++,u=c[h].startLineNumber,d=c[h].endLineNumber,f=h+1<c.length?d+1:r+2);const m=g>=u&&g<=d,v=FSe(a[p],!m);l[p]=v.getViewLineCount(),this.modelLineProjections[p]=v}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new GUt(l)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map(e=>this.model.getDecorationRange(e))}setHiddenAreas(e){const t=e.map(d=>this.model.validateRange(d)),n=Nqn(t),i=this.hiddenAreasDecorationIds.map(d=>this.model.getDecorationRange(d)).sort(Re.compareRangesUsingStarts);if(n.length===i.length){let d=!1;for(let h=0;h<n.length;h++)if(!n[h].equalsRange(i[h])){d=!0;break}if(!d)return!1}const r=n.map(d=>({range:d,options:Gr.EMPTY}));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,r);const o=n;let s=1,a=0,l=-1,c=l+1<o.length?a+1:this.modelLineProjections.length+2,u=!1;for(let d=0;d<this.modelLineProjections.length;d++){const h=d+1;h===c&&(l++,s=o[l].startLineNumber,a=o[l].endLineNumber,c=l+1<o.length?a+1:this.modelLineProjections.length+2);let f=!1;if(h>=s&&h<=a?this.modelLineProjections[d].isVisible()&&(this.modelLineProjections[d]=this.modelLineProjections[d].setVisible(!1),f=!0):(u=!0,this.modelLineProjections[d].isVisible()||(this.modelLineProjections[d]=this.modelLineProjections[d].setVisible(!0),f=!0)),f){const p=this.modelLineProjections[d].getViewLineCount();this.projectedModelLineLineCounts.setValue(d,p)}}return u||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return e<1||e>this.modelLineProjections.length?!1:this.modelLineProjections[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.modelLineProjections.length?1:this.modelLineProjections[e-1].getViewLineCount()}setTabSize(e){return this.tabSize===e?!1:(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,n,i,r){const o=this.fontInfo.equals(e),s=this.wrappingStrategy===t,a=this.wrappingColumn===n,l=this.wrappingIndent===i,c=this.wordBreak===r;if(o&&s&&a&&l&&c)return!1;const u=o&&s&&!a&&l&&c;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=n,this.wrappingIndent=i,this.wordBreak=r;let d=null;if(u){d=[];for(let h=0,f=this.modelLineProjections.length;h<f;h++)d[h]=this.modelLineProjections[h].getProjectionData()}return this._constructLines(!1,d),!0}createLineBreaksComputer(){return(this.wrappingStrategy==="advanced"?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory).createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent,this.wordBreak)}onModelFlushed(){this._constructLines(!0,null)}onModelLinesDeleted(e,t,n){if(!e||e<=this._validModelVersionId)return null;const i=t===1?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,r=this.projectedModelLineLineCounts.getPrefixSum(n);return this.modelLineProjections.splice(t-1,n-t+1),this.projectedModelLineLineCounts.removeValues(t-1,n-t+1),new xae(i,r)}onModelLinesInserted(e,t,n,i){if(!e||e<=this._validModelVersionId)return null;const r=t>2&&!this.modelLineProjections[t-2].isVisible(),o=t===1?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1;let s=0;const a=[],l=[];for(let c=0,u=i.length;c<u;c++){const d=FSe(i[c],!r);a.push(d);const h=d.getViewLineCount();s+=h,l[c]=h}return this.modelLineProjections=this.modelLineProjections.slice(0,t-1).concat(a).concat(this.modelLineProjections.slice(t-1)),this.projectedModelLineLineCounts.insertValues(t-1,l),new Eae(o,o+s-1)}onModelLineChanged(e,t,n){if(e!==null&&e<=this._validModelVersionId)return[!1,null,null,null];const i=t-1,r=this.modelLineProjections[i].getViewLineCount(),o=this.modelLineProjections[i].isVisible(),s=FSe(n,o);this.modelLineProjections[i]=s;const a=this.modelLineProjections[i].getViewLineCount();let l=!1,c=0,u=-1,d=0,h=-1,f=0,p=-1;r>a?(c=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,u=c+a-1,f=u+1,p=f+(r-a)-1,l=!0):r<a?(c=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,u=c+r-1,d=u+1,h=d+(a-r)-1,l=!0):(c=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,u=c+a-1),this.projectedModelLineLineCounts.setValue(i,a);const g=c<=u?new r6e(c,u-c+1):null,m=d<=h?new Eae(d,h):null,v=f<=p?new xae(f,p):null;return[l,g,m,v]}acceptVersionId(e){this._validModelVersionId=e,this.modelLineProjections.length===1&&!this.modelLineProjections[0].isVisible()&&this.setHiddenAreas([])}getViewLineCount(){return this.projectedModelLineLineCounts.getTotalSum()}_toValidViewLineNumber(e){if(e<1)return 1;const t=this.getViewLineCount();return e>t?t:e|0}getActiveIndentGuide(e,t,n){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),n=this._toValidViewLineNumber(n);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),r=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),o=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),s=this.model.guides.getActiveIndentGuide(i.lineNumber,r.lineNumber,o.lineNumber),a=this.convertModelPositionToViewPosition(s.startLineNumber,1),l=this.convertModelPositionToViewPosition(s.endLineNumber,this.model.getLineMaxColumn(s.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:l.lineNumber,indent:s.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);const t=this.projectedModelLineLineCounts.getIndexOf(e-1),n=t.index,i=t.remainder;return new BSe(n+1,i)}getMinColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getMaxColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],n=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),i=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,n);return new mt(e.modelLineNumber,i)}getModelEndPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],n=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),i=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,n);return new mt(e.modelLineNumber,i)}getViewLineInfosGroupedByModelRanges(e,t){const n=this.getViewLineInfo(e),i=this.getViewLineInfo(t),r=new Array;let o=this.getModelStartPositionOfViewLine(n),s=new Array;for(let a=n.modelLineNumber;a<=i.modelLineNumber;a++){const l=this.modelLineProjections[a-1];if(l.isVisible()){const c=a===n.modelLineNumber?n.modelLineWrappedLineIdx:0,u=a===i.modelLineNumber?i.modelLineWrappedLineIdx+1:l.getViewLineCount();for(let d=c;d<u;d++)s.push(new BSe(a,d))}if(!l.isVisible()&&o){const c=new mt(a-1,this.model.getLineMaxColumn(a-1)+1),u=Re.fromPositions(o,c);r.push(new jSe(u,s)),s=[],o=null}else l.isVisible()&&!o&&(o=new mt(a,1))}if(o){const a=Re.fromPositions(o,this.getModelEndPositionOfViewLine(i));r.push(new jSe(a,s))}return r}getViewLinesBracketGuides(e,t,n,i){const r=n?this.convertViewPositionToModelPosition(n.lineNumber,n.column):null,o=[];for(const s of this.getViewLineInfosGroupedByModelRanges(e,t)){const a=s.modelRange.startLineNumber,l=this.model.guides.getLinesBracketGuides(a,s.modelRange.endLineNumber,r,i);for(const c of s.viewLines){const d=l[c.modelLineNumber-a].map(h=>{if(h.forWrappedLinesAfterColumn!==-1&&this.modelLineProjections[c.modelLineNumber-1].getViewPositionOfModelPosition(0,h.forWrappedLinesAfterColumn).lineNumber>=c.modelLineWrappedLineIdx||h.forWrappedLinesBeforeOrAtColumn!==-1&&this.modelLineProjections[c.modelLineNumber-1].getViewPositionOfModelPosition(0,h.forWrappedLinesBeforeOrAtColumn).lineNumber<c.modelLineWrappedLineIdx)return;if(!h.horizontalLine)return h;let f=-1;if(h.column!==-1){const m=this.modelLineProjections[c.modelLineNumber-1].getViewPositionOfModelPosition(0,h.column);if(m.lineNumber===c.modelLineWrappedLineIdx)f=m.column;else if(m.lineNumber<c.modelLineWrappedLineIdx)f=this.getMinColumnOfViewLine(c);else if(m.lineNumber>c.modelLineWrappedLineIdx)return}const p=this.convertModelPositionToViewPosition(c.modelLineNumber,h.horizontalLine.endColumn),g=this.modelLineProjections[c.modelLineNumber-1].getViewPositionOfModelPosition(0,h.horizontalLine.endColumn);return g.lineNumber===c.modelLineWrappedLineIdx?new VI(h.visibleColumn,f,h.className,new Y6(h.horizontalLine.top,p.column),-1,-1):g.lineNumber<c.modelLineWrappedLineIdx||h.visibleColumn!==-1?void 0:new VI(h.visibleColumn,f,h.className,new Y6(h.horizontalLine.top,this.getMaxColumnOfViewLine(c)),-1,-1)});o.push(d.filter(h=>!!h))}}return o}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),i=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let r=[];const o=[],s=[],a=n.lineNumber-1,l=i.lineNumber-1;let c=null;for(let f=a;f<=l;f++){const p=this.modelLineProjections[f];if(p.isVisible()){const g=p.getViewLineNumberOfModelPosition(0,f===a?n.column:1),m=p.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(f+1)),v=m-g+1;let y=0;v>1&&p.getViewLineMinColumn(this.model,f+1,m)===1&&(y=g===0?1:2),o.push(v),s.push(y),c===null&&(c=new mt(f+1,0))}else c!==null&&(r=r.concat(this.model.guides.getLinesIndentGuides(c.lineNumber,f)),c=null)}c!==null&&(r=r.concat(this.model.guides.getLinesIndentGuides(c.lineNumber,i.lineNumber)),c=null);const u=t-e+1,d=new Array(u);let h=0;for(let f=0,p=r.length;f<p;f++){let g=r[f];const m=Math.min(u-h,o[f]),v=s[f];let y;v===2?y=0:v===1?y=1:y=m;for(let b=0;b<m;b++)b===y&&(g=0),d[h++]=g}return d}getViewLineContent(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineContent(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineLength(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineLength(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineMinColumn(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineMinColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineMaxColumn(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineMaxColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineData(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineData(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLinesData(e,t,n){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.projectedModelLineLineCounts.getIndexOf(e-1);let r=e;const o=i.index,s=i.remainder,a=[];for(let l=o,c=this.model.getLineCount();l<c;l++){const u=this.modelLineProjections[l];if(!u.isVisible())continue;const d=l===o?s:0;let h=u.getViewLineCount()-d,f=!1;if(r+h>t&&(f=!0,h=t-r+1),u.getViewLinesData(this.model,l+1,d,h,r-e,n,a),r+=h,f)break}return a}validateViewPosition(e,t,n){e=this._toValidViewLineNumber(e);const i=this.projectedModelLineLineCounts.getIndexOf(e-1),r=i.index,o=i.remainder,s=this.modelLineProjections[r],a=s.getViewLineMinColumn(this.model,r+1,o),l=s.getViewLineMaxColumn(this.model,r+1,o);t<a&&(t=a),t>l&&(t=l);const c=s.getModelColumnOfViewPosition(o,t);return this.model.validatePosition(new mt(r+1,c)).equals(n)?new mt(e,t):this.convertModelPositionToViewPosition(n.lineNumber,n.column)}validateViewRange(e,t){const n=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),i=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new Re(n.lineNumber,n.column,i.lineNumber,i.column)}convertViewPositionToModelPosition(e,t){const n=this.getViewLineInfo(e),i=this.modelLineProjections[n.modelLineNumber-1].getModelColumnOfViewPosition(n.modelLineWrappedLineIdx,t);return this.model.validatePosition(new mt(n.modelLineNumber,i))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),n=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new Re(t.lineNumber,t.column,n.lineNumber,n.column)}convertModelPositionToViewPosition(e,t,n=2,i=!1,r=!1){const o=this.model.validatePosition(new mt(e,t)),s=o.lineNumber,a=o.column;let l=s-1,c=!1;if(r)for(;l<this.modelLineProjections.length&&!this.modelLineProjections[l].isVisible();)l++,c=!0;else for(;l>0&&!this.modelLineProjections[l].isVisible();)l--,c=!0;if(l===0&&!this.modelLineProjections[l].isVisible())return new mt(i?0:1,1);const u=1+this.projectedModelLineLineCounts.getPrefixSum(l);let d;return c?r?d=this.modelLineProjections[l].getViewPositionOfModelPosition(u,1,n):d=this.modelLineProjections[l].getViewPositionOfModelPosition(u,this.model.getLineMaxColumn(l+1),n):d=this.modelLineProjections[s-1].getViewPositionOfModelPosition(u,a,n),d}convertModelRangeToViewRange(e,t=0){if(e.isEmpty()){const n=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return Re.fromPositions(n)}else{const n=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),i=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new Re(n.lineNumber,n.column,i.lineNumber,i.column)}}getViewLineNumberOfModelPosition(e,t){let n=e-1;if(this.modelLineProjections[n].isVisible()){const r=1+this.projectedModelLineLineCounts.getPrefixSum(n);return this.modelLineProjections[n].getViewLineNumberOfModelPosition(r,t)}for(;n>0&&!this.modelLineProjections[n].isVisible();)n--;if(n===0&&!this.modelLineProjections[n].isVisible())return 1;const i=1+this.projectedModelLineLineCounts.getPrefixSum(n);return this.modelLineProjections[n].getViewLineNumberOfModelPosition(i,this.model.getLineMaxColumn(n+1))}getDecorationsInRange(e,t,n,i,r){const o=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),s=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(s.lineNumber-o.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new Re(o.lineNumber,1,s.lineNumber,s.column),t,n,i,r);let a=[];const l=o.lineNumber-1,c=s.lineNumber-1;let u=null;for(let p=l;p<=c;p++)if(this.modelLineProjections[p].isVisible())u===null&&(u=new mt(p+1,p===l?o.column:1));else if(u!==null){const m=this.model.getLineMaxColumn(p);a=a.concat(this.model.getDecorationsInRange(new Re(u.lineNumber,u.column,p,m),t,n,i)),u=null}u!==null&&(a=a.concat(this.model.getDecorationsInRange(new Re(u.lineNumber,u.column,s.lineNumber,s.column),t,n,i)),u=null),a.sort((p,g)=>{const m=Re.compareRangesUsingStarts(p.range,g.range);return m===0?p.id<g.id?-1:p.id>g.id?1:0:m});const d=[];let h=0,f=null;for(const p of a){const g=p.id;f!==g&&(f=g,d[h++]=p)}return d}getInjectedTextAt(e){const t=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[t.modelLineNumber-1].getInjectedTextAt(t.modelLineWrappedLineIdx,e.column)}normalizePosition(e,t){const n=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[n.modelLineNumber-1].normalizePosition(n.modelLineWrappedLineIdx,e,t)}getLineIndentColumn(e){const t=this.getViewLineInfo(e);return t.modelLineWrappedLineIdx===0?this.model.getLineIndentColumn(t.modelLineNumber):0}},BSe=class{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}},jSe=class{constructor(e,t){this.modelRange=e,this.viewLines=t}},qpt=class{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t,n,i){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t,n,i)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}},OXt=class{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new Gpt(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,n,i){return!1}createLineBreaksComputer(){const e=[];return{addRequest:(t,n,i)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,n){return new xae(t,n)}onModelLinesInserted(e,t,n,i){return new Eae(t,n)}onModelLineChanged(e,t,n){return[!1,new r6e(t,1),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,n){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,n){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const n=t-e+1,i=new Array(n);for(let r=0;r<n;r++)i[r]=0;return i}getViewLineContent(e){return this.model.getLineContent(e)}getViewLineLength(e){return this.model.getLineLength(e)}getViewLineMinColumn(e){return this.model.getLineMinColumn(e)}getViewLineMaxColumn(e){return this.model.getLineMaxColumn(e)}getViewLineData(e){const t=this.model.tokenization.getLineTokens(e),n=t.getLineContent();return new Cde(n,!1,1,n.length+1,0,t.inflate(),null)}getViewLinesData(e,t,n){const i=this.model.getLineCount();e=Math.min(Math.max(1,e),i),t=Math.min(Math.max(1,t),i);const r=[];for(let o=e;o<=t;o++){const s=o-e;r[s]=n[s]?this.getViewLineData(o):null}return r}getDecorationsInRange(e,t,n,i,r){return this.model.getDecorationsInRange(e,t,n,i,r)}normalizePosition(e,t){return this.model.normalizePosition(e,t)}getLineIndentColumn(e){return this.model.getLineIndentColumn(e)}getInjectedTextAt(e){return null}},Gpt=class{constructor(e){this._lines=e}_validPosition(e){return this._lines.model.validatePosition(e)}_validRange(e){return this._lines.model.validateRange(e)}convertViewPositionToModelPosition(e){return this._validPosition(e)}convertViewRangeToModelRange(e){return this._validRange(e)}validateViewPosition(e,t){return this._validPosition(t)}validateViewRange(e,t){return this._validRange(t)}convertModelPositionToViewPosition(e){return this._validPosition(e)}convertModelRangeToViewRange(e){return this._validRange(e)}modelPositionIsVisible(e){const t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}}}),Ek,RXt,Mqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/viewModel/glyphLanesModel.js"(){Cd(),Ek=tw.Right,RXt=class{constructor(e){this.persist=0,this._requiredLanes=1,this.lanes=new Uint8Array(Math.ceil((e+1)*Ek/8))}reset(e){const t=Math.ceil((e+1)*Ek/8);this.lanes.length<t?this.lanes=new Uint8Array(t):this.lanes.fill(0),this._requiredLanes=1}get requiredLanes(){return this._requiredLanes}push(e,t,n){n&&(this.persist|=1<<e-1);for(let i=t.startLineNumber;i<=t.endLineNumber;i++){const r=Ek*i+(e-1);this.lanes[r>>>3]|=1<<r%8,this._requiredLanes=Math.max(this._requiredLanes,this.countAtLine(i))}}getLanesAtLine(e){const t=[];let n=Ek*e;for(let i=0;i<Ek;i++)(this.persist&1<<i||this.lanes[n>>>3]&1<<n%8)&&t.push(i+1),n++;return t.length?t:[tw.Center]}countAtLine(e){let t=Ek*e,n=0;for(let i=0;i<Ek;i++)(this.persist&1<<i||this.lanes[t>>>3]&1<<t%8)&&n++,t++;return n}}}});function Oqn(e,t){const n=[];let i=0,r=0;for(;i<e.length&&r<t.length;){const o=e[i],s=t[r];if(o.endLineNumber<s.startLineNumber-1)n.push(e[i++]);else if(s.endLineNumber<o.startLineNumber-1)n.push(t[r++]);else{const a=Math.min(o.startLineNumber,s.startLineNumber),l=Math.max(o.endLineNumber,s.endLineNumber);n.push(new Re(a,1,l,1)),i++,r++}}for(;i<e.length;)n.push(e[i++]);for(;r<t.length;)n.push(t[r++]);return n}function Kpt(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].equalsRange(t[n]))return!1;return!0}var Ypt,FXt,Qpt,Zpt,Xpt,zSe,Rqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewModelImpl.js"(){rr(),fr(),ql(),Nt(),Xr(),Ki(),Su(),Dqn(),Ib(),Hi(),Dn(),nF(),ra(),G0(),lqt(),zUe(),kqn(),yZt(),KC(),NXt(),VUe(),Pqn(),Mqn(),Ypt=!0,FXt=class extends St{constructor(e,t,n,i,r,o,s,a,l,c){if(super(),this.languageConfigurationService=s,this._themeService=a,this._attachedView=l,this._transactionalTarget=c,this.hiddenAreasModel=new Xpt,this.previousHiddenAreas=[],this._editorId=e,this._configuration=t,this.model=n,this._eventDispatcher=new cXt,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new XM(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._updateConfigurationViewLineCount=this._register(new Gs(()=>this._updateConfigurationViewLineCountNow(),0)),this._hasFocus=!1,this._viewportStart=Qpt.create(this.model),this.glyphLanes=new RXt(0),Ypt&&this.model.isTooLargeForTokenization())this._lines=new OXt(this.model);else{const u=this._configuration.options,d=u.get(50),h=u.get(140),f=u.get(147),p=u.get(139),g=u.get(130);this._lines=new MXt(this._editorId,this.model,i,r,d,this.model.getOptions().tabSize,h,f.wrappingColumn,p,g)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new AXt(n,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new kXt(this._configuration,this.getLineCount(),o)),this._register(this.viewLayout.onDidScroll(u=>{u.scrollTopChanged&&this._handleVisibleLinesChanged(),u.scrollTopChanged&&this._viewportStart.invalidate(),this._eventDispatcher.emitSingleViewEvent(new rXt(u)),this._eventDispatcher.emitOutgoingEvent(new hXt(u.oldScrollWidth,u.oldScrollLeft,u.oldScrollHeight,u.oldScrollTop,u.scrollWidth,u.scrollLeft,u.scrollHeight,u.scrollTop))})),this._register(this.viewLayout.onDidContentSizeChange(u=>{this._eventDispatcher.emitOutgoingEvent(u)})),this._decorations=new LXt(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast(u=>{try{const d=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(d,u)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(FUe.getInstance().onDidChange(()=>{this._eventDispatcher.emitSingleViewEvent(new aXt)})),this._register(this._themeService.onDidColorThemeChange(u=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new oXt(u))})),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStart.dispose(),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}getModelVisibleRanges(){const e=this.viewLayout.getLinesViewportData(),t=new Re(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber));return this._toModelVisibleRanges(t)}visibleLinesStabilized(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!0)}_handleVisibleLinesChanged(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!1)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new nXt(e)),this._eventDispatcher.emitOutgoingEvent(new dXt(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new XZt)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new JZt)}_captureStableViewport(){if(this._viewportStart.isValid&&this.viewLayout.getCurrentScrollTop()>0){const e=new mt(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber)),t=this.coordinatesConverter.convertViewPositionToModelPosition(e);return new zSe(t,this._viewportStart.startLineDelta)}return new zSe(null,0)}_onConfigurationChanged(e,t){const n=this._captureStableViewport(),i=this._configuration.options,r=i.get(50),o=i.get(140),s=i.get(147),a=i.get(139),l=i.get(130);this._lines.setWrappingSettings(r,o,s.wrappingColumn,a,l)&&(e.emitViewEvent(new bW),e.emitViewEvent(new _W),e.emitViewEvent(new tI(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(92)&&(this._decorations.reset(),e.emitViewEvent(new tI(null))),t.hasChanged(99)&&(this._decorations.reset(),e.emitViewEvent(new tI(null))),e.emitViewEvent(new eXt(t)),this.viewLayout.onConfigurationChanged(t),n.recoverViewportStart(this.coordinatesConverter,this.viewLayout),XM.shouldRecreate(t)&&(this.cursorConfig=new XM(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText(e=>{try{const n=this._eventDispatcher.beginEmitViewEvents();let i=!1,r=!1;const o=e instanceof o$?e.rawContentChangedEvent.changes:e.changes,s=e instanceof o$?e.rawContentChangedEvent.versionId:null,a=this._lines.createLineBreaksComputer();for(const u of o)switch(u.changeType){case 4:{for(let d=0;d<u.detail.length;d++){const h=u.detail[d];let f=u.injectedTexts[d];f&&(f=f.filter(p=>!p.ownerId||p.ownerId===this._editorId)),a.addRequest(h,f,null)}break}case 2:{let d=null;u.injectedText&&(d=u.injectedText.filter(h=>!h.ownerId||h.ownerId===this._editorId)),a.addRequest(u.detail,d,null);break}}const l=a.finalize(),c=new Xx(l);for(const u of o)switch(u.changeType){case 1:{this._lines.onModelFlushed(),n.emitViewEvent(new bW),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),i=!0;break}case 3:{const d=this._lines.onModelLinesDeleted(s,u.fromLineNumber,u.toLineNumber);d!==null&&(n.emitViewEvent(d),this.viewLayout.onLinesDeleted(d.fromLineNumber,d.toLineNumber)),i=!0;break}case 4:{const d=c.takeCount(u.detail.length),h=this._lines.onModelLinesInserted(s,u.fromLineNumber,u.toLineNumber,d);h!==null&&(n.emitViewEvent(h),this.viewLayout.onLinesInserted(h.fromLineNumber,h.toLineNumber)),i=!0;break}case 2:{const d=c.dequeue(),[h,f,p,g]=this._lines.onModelLineChanged(s,u.lineNumber,d);r=h,f&&n.emitViewEvent(f),p&&(n.emitViewEvent(p),this.viewLayout.onLinesInserted(p.fromLineNumber,p.toLineNumber)),g&&(n.emitViewEvent(g),this.viewLayout.onLinesDeleted(g.fromLineNumber,g.toLineNumber));break}case 5:break}s!==null&&this._lines.acceptVersionId(s),this.viewLayout.onHeightMaybeChanged(),!i&&r&&(n.emitViewEvent(new _W),n.emitViewEvent(new tI(null)),this._cursor.onLineMappingChanged(n),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}const t=this._viewportStart.isValid;if(this._viewportStart.invalidate(),this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&t){const n=this.model._getTrackedRange(this._viewportStart.modelTrackedRange);if(n){const i=this.coordinatesConverter.convertModelPositionToViewPosition(n.getStartPosition()),r=this.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber);this.viewLayout.setScrollPosition({scrollTop:r+this._viewportStart.startLineDelta},1)}}try{const n=this._eventDispatcher.beginEmitViewEvents();e instanceof o$&&n.emitOutgoingEvent(new _Xt(e.contentChangedEvent)),this._cursor.onModelContentChanged(n,e)}finally{this._eventDispatcher.endEmitViewEvents()}this._handleVisibleLinesChanged()})),this._register(this.model.onDidChangeTokens(e=>{const t=[];for(let n=0,i=e.ranges.length;n<i;n++){const r=e.ranges[n],o=this.coordinatesConverter.convertModelPositionToViewPosition(new mt(r.fromLineNumber,1)).lineNumber,s=this.coordinatesConverter.convertModelPositionToViewPosition(new mt(r.toLineNumber,this.model.getLineMaxColumn(r.toLineNumber))).lineNumber;t[n]={fromLineNumber:o,toLineNumber:s}}this._eventDispatcher.emitSingleViewEvent(new sXt(t)),this._eventDispatcher.emitOutgoingEvent(new CXt(e))})),this._register(this.model.onDidChangeLanguageConfiguration(e=>{this._eventDispatcher.emitSingleViewEvent(new iXt),this.cursorConfig=new XM(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new bXt(e))})),this._register(this.model.onDidChangeLanguage(e=>{this.cursorConfig=new XM(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new yXt(e))})),this._register(this.model.onDidChangeOptions(e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const t=this._eventDispatcher.beginEmitViewEvents();t.emitViewEvent(new bW),t.emitViewEvent(new _W),t.emitViewEvent(new tI(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new XM(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new wXt(e))})),this._register(this.model.onDidChangeDecorations(e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new tI(e)),this._eventDispatcher.emitOutgoingEvent(new vXt(e))}))}setHiddenAreas(e,t){this.hiddenAreasModel.setHiddenAreas(t,e);const n=this.hiddenAreasModel.getMergedRanges();if(n===this.previousHiddenAreas)return;this.previousHiddenAreas=n;const i=this._captureStableViewport();let r=!1;try{const o=this._eventDispatcher.beginEmitViewEvents();r=this._lines.setHiddenAreas(n),r&&(o.emitViewEvent(new bW),o.emitViewEvent(new _W),o.emitViewEvent(new tI(null)),this._cursor.onLineMappingChanged(o),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged());const s=i.viewportStartModelPosition?.lineNumber;s&&n.some(l=>l.startLineNumber<=s&&s<=l.endLineNumber)||i.recoverViewportStart(this.coordinatesConverter,this.viewLayout)}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),r&&this._eventDispatcher.emitOutgoingEvent(new pXt)}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(146),t=this._configuration.options.get(67),n=Math.max(20,Math.round(e.height/t)),i=this.viewLayout.getLinesViewportData(),r=Math.max(1,i.completelyVisibleStartLineNumber-n),o=Math.min(this.getLineCount(),i.completelyVisibleEndLineNumber+n);return this._toModelVisibleRanges(new Re(r,this.getLineMinColumn(r),o,this.getLineMaxColumn(o)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}getHiddenAreas(){return this._lines.getHiddenAreas()}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),n=this._lines.getHiddenAreas();if(n.length===0)return[t];const i=[];let r=0,o=t.startLineNumber,s=t.startColumn;const a=t.endLineNumber,l=t.endColumn;for(let c=0,u=n.length;c<u;c++){const d=n[c].startLineNumber,h=n[c].endLineNumber;h<o||d>a||(o<d&&(i[r++]=new Re(o,s,d-1,this.model.getLineMaxColumn(d-1))),o=h+1,s=1)}return(o<a||o===a&&s<l)&&(i[r++]=new Re(o,s,a,l)),i}getCompletelyVisibleViewRange(){const e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,n=e.completelyVisibleEndLineNumber;return new Re(t,this.getLineMinColumn(t),n,this.getLineMaxColumn(n))}getCompletelyVisibleViewRangeAtScrollTop(e){const t=this.viewLayout.getLinesViewportDataAtScrollTop(e),n=t.completelyVisibleStartLineNumber,i=t.completelyVisibleEndLineNumber;return new Re(n,this.getLineMinColumn(n),i,this.getLineMaxColumn(i))}saveState(){const e=this.viewLayout.saveState(),t=e.scrollTop,n=this.viewLayout.getLineNumberAtVerticalOffset(t),i=this.coordinatesConverter.convertViewPositionToModelPosition(new mt(n,this.getLineMinColumn(n))),r=this.viewLayout.getVerticalOffsetForLineNumber(n)-t;return{scrollLeft:e.scrollLeft,firstPosition:i,firstPositionDeltaTop:r}}reduceRestoreState(e){if(typeof e.firstPosition>"u")return this._reduceRestoreStateCompatibility(e);const t=this.model.validatePosition(e.firstPosition),n=this.coordinatesConverter.convertModelPositionToViewPosition(t),i=this.viewLayout.getVerticalOffsetForLineNumber(n.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:i}}_reduceRestoreStateCompatibility(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getLineCount(){return this._lines.getViewLineCount()}setViewport(e,t,n){this._viewportStart.update(this,e)}getActiveIndentGuide(e,t,n){return this._lines.getActiveIndentGuide(e,t,n)}getLinesIndentGuides(e,t){return this._lines.getViewLinesIndentGuides(e,t)}getBracketGuidesInRangeByLine(e,t,n,i){return this._lines.getViewLinesBracketGuides(e,t,n,i)}getLineContent(e){return this._lines.getViewLineContent(e)}getLineLength(e){return this._lines.getViewLineLength(e)}getLineMinColumn(e){return this._lines.getViewLineMinColumn(e)}getLineMaxColumn(e){return this._lines.getViewLineMaxColumn(e)}getLineFirstNonWhitespaceColumn(e){const t=Cp(this.getLineContent(e));return t===-1?0:t+1}getLineLastNonWhitespaceColumn(e){const t=iC(this.getLineContent(e));return t===-1?0:t+2}getMinimapDecorationsInRange(e){return this._decorations.getMinimapDecorationsInRange(e)}getDecorationsInViewport(e){return this._decorations.getDecorationsViewportData(e).decorations}getInjectedTextAt(e){return this._lines.getInjectedTextAt(e)}getViewportViewLineRenderingData(e,t){const i=this._decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return this._getViewLineRenderingData(t,i)}getViewLineRenderingData(e){const t=this._decorations.getInlineDecorationsOnLine(e);return this._getViewLineRenderingData(e,t)}_getViewLineRenderingData(e,t){const n=this.model.mightContainRTL(),i=this.model.mightContainNonBasicASCII(),r=this.getTabSize(),o=this._lines.getViewLineData(e);return o.inlineDecorations&&(t=[...t,...o.inlineDecorations.map(s=>s.toInlineDecoration(e))]),new nw(o.minColumn,o.maxColumn,o.content,o.continuesWithWrappedLine,n,i,o.tokens,t,r,o.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,n){const i=this._lines.getViewLinesData(e,t,n);return new yQt(this.getTabSize(),i)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,Rue(this._configuration.options)),n=new Zpt;for(const i of t){const r=i.options,o=r.overviewRuler;if(!o)continue;const s=o.position;if(s===0)continue;const a=o.getColor(e.value),l=this.coordinatesConverter.getViewLineNumberOfModelPosition(i.range.startLineNumber,i.range.startColumn),c=this.coordinatesConverter.getViewLineNumberOfModelPosition(i.range.endLineNumber,i.range.endColumn);n.accept(a,r.zIndex,l,c,s)}return n.asArray}_invalidateDecorationsColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e)t.options.overviewRuler?.invalidateCachedColor(),t.options.minimap?.invalidateCachedColor()}getValueInRange(e,t){const n=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(n,t)}getValueLengthInRange(e,t){const n=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueLengthInRange(n,t)}modifyPosition(e,t){const n=this.coordinatesConverter.convertViewPositionToModelPosition(e),i=this.model.modifyPosition(n,t);return this.coordinatesConverter.convertModelPositionToViewPosition(i)}deduceModelPositionRelativeToViewPosition(e,t,n){const i=this.coordinatesConverter.convertViewPositionToModelPosition(e);this.model.getEOL().length===2&&(t<0?t-=n:t+=n);const o=this.model.getOffsetAt(i)+t;return this.model.getPositionAt(o)}getPlainTextToCopy(e,t,n){const i=n?`\r
`:this.model.getEOL();e=e.slice(0),e.sort(Re.compareRangesUsingStarts);let r=!1,o=!1;for(const a of e)a.isEmpty()?r=!0:o=!0;if(!o){if(!t)return"";const a=e.map(c=>c.startLineNumber);let l="";for(let c=0;c<a.length;c++)c>0&&a[c-1]===a[c]||(l+=this.model.getLineContent(a[c])+i);return l}if(r&&t){const a=[];let l=0;for(const c of e){const u=c.startLineNumber;c.isEmpty()?u!==l&&a.push(this.model.getLineContent(u)):a.push(this.model.getValueInRange(c,n?2:0)),l=u}return a.length===1?a[0]:a}const s=[];for(const a of e)a.isEmpty()||s.push(this.model.getValueInRange(a,n?2:0));return s.length===1?s[0]:s}getRichTextToCopy(e,t){const n=this.model.getLanguageId();if(n===xp||e.length!==1)return null;let i=e[0];if(i.isEmpty()){if(!t)return null;const c=i.startLineNumber;i=new Re(c,this.model.getLineMinColumn(c),c,this.model.getLineMaxColumn(c))}const r=this._configuration.options.get(50),o=this._getColorMap(),a=/[:;\\\/<>]/.test(r.fontFamily)||r.fontFamily===ap.fontFamily;let l;return a?l=ap.fontFamily:(l=r.fontFamily,l=l.replace(/"/g,"'"),/[,']/.test(l)||/[+ ]/.test(l)&&(l=`'${l}'`),l=`${l}, ${ap.fontFamily}`),{mode:n,html:`<div style="color: ${o[1]};background-color: ${o[2]};font-family: ${l};font-weight: ${r.fontWeight};font-size: ${r.fontSize}px;line-height: ${r.lineHeight}px;white-space: pre;">`+this._getHTMLToCopy(i,o)+"</div>"}}_getHTMLToCopy(e,t){const n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,o=e.endColumn,s=this.getTabSize();let a="";for(let l=n;l<=r;l++){const c=this.model.tokenization.getLineTokens(l),u=c.getLineContent(),d=l===n?i-1:0,h=l===r?o-1:u.length;u===""?a+="<br>":a+=$Vn(u,c.inflate(),t,d,h,s,Ch)}return a}_getColorMap(){const e=Hl.getColorMap(),t=["#000000"];if(e)for(let n=1,i=e.length;n<i;n++)t[n]=rn.Format.CSS.formatHex(e[n]);return t}getPrimaryCursorState(){return this._cursor.getPrimaryCursorState()}getLastAddedCursorIndex(){return this._cursor.getLastAddedCursorIndex()}getCursorStates(){return this._cursor.getCursorStates()}setCursorStates(e,t,n){return this._withViewEventsCollector(i=>this._cursor.setStates(i,e,t,n))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,n=0){this._withViewEventsCollector(i=>this._cursor.setSelections(i,e,t,n))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector(t=>this._cursor.restoreState(t,e))}_executeCursorEdit(e){if(this._cursor.context.cursorConfig.readOnly){this._eventDispatcher.emitOutgoingEvent(new mXt);return}this._withViewEventsCollector(e)}executeEdits(e,t,n){this._executeCursorEdit(i=>this._cursor.executeEdits(i,e,t,n))}startComposition(){this._executeCursorEdit(e=>this._cursor.startComposition(e))}endComposition(e){this._executeCursorEdit(t=>this._cursor.endComposition(t,e))}type(e,t){this._executeCursorEdit(n=>this._cursor.type(n,e,t))}compositionType(e,t,n,i,r){this._executeCursorEdit(o=>this._cursor.compositionType(o,e,t,n,i,r))}paste(e,t,n,i){this._executeCursorEdit(r=>this._cursor.paste(r,e,t,n,i))}cut(e){this._executeCursorEdit(t=>this._cursor.cut(t,e))}executeCommand(e,t){this._executeCursorEdit(n=>this._cursor.executeCommand(n,e,t))}executeCommands(e,t){this._executeCursorEdit(n=>this._cursor.executeCommands(n,e,t))}revealAllCursors(e,t,n=!1){this._withViewEventsCollector(i=>this._cursor.revealAll(i,e,n,0,t,0))}revealPrimaryCursor(e,t,n=!1){this._withViewEventsCollector(i=>this._cursor.revealPrimary(i,e,n,0,t,0))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),n=new Re(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(i=>i.emitViewEvent(new n8(e,!1,n,null,0,!0,0)))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),n=new Re(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(i=>i.emitViewEvent(new n8(e,!1,n,null,0,!0,0)))}revealRange(e,t,n,i,r){this._withViewEventsCollector(o=>o.emitViewEvent(new n8(e,!1,n,null,i,t,r)))}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new lXt),this._eventDispatcher.emitOutgoingEvent(new fXt))}_withViewEventsCollector(e){return this._transactionalTarget.batchChanges(()=>{try{const t=this._eventDispatcher.beginEmitViewEvents();return e(t)}finally{this._eventDispatcher.endEmitViewEvents()}})}batchEvents(e){this._withViewEventsCollector(()=>{e()})}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}},Qpt=class BXt{static create(t){const n=t._setTrackedRange(null,new Re(1,1,1,1),1);return new BXt(t,1,!1,n,0)}get viewLineNumber(){return this._viewLineNumber}get isValid(){return this._isValid}get modelTrackedRange(){return this._modelTrackedRange}get startLineDelta(){return this._startLineDelta}constructor(t,n,i,r,o){this._model=t,this._viewLineNumber=n,this._isValid=i,this._modelTrackedRange=r,this._startLineDelta=o}dispose(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}update(t,n){const i=t.coordinatesConverter.convertViewPositionToModelPosition(new mt(n,t.getLineMinColumn(n))),r=t.model._setTrackedRange(this._modelTrackedRange,new Re(i.lineNumber,i.column,i.lineNumber,i.column),1),o=t.viewLayout.getVerticalOffsetForLineNumber(n),s=t.viewLayout.getCurrentScrollTop();this._viewLineNumber=n,this._isValid=!0,this._modelTrackedRange=r,this._startLineDelta=s-o}invalidate(){this._isValid=!1}},Zpt=class{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,n,i,r){const o=this._asMap[e];if(o){const s=o.data,a=s[s.length-3],l=s[s.length-1];if(a===r&&l+1>=n){i>l&&(s[s.length-1]=i);return}s.push(r,n,i)}else{const s=new Sde(e,t,[r,n,i]);this._asMap[e]=s,this.asArray.push(s)}}},Xpt=class{constructor(){this.hiddenAreas=new Map,this.shouldRecompute=!1,this.ranges=[]}setHiddenAreas(e,t){const n=this.hiddenAreas.get(e);n&&Kpt(n,t)||(this.hiddenAreas.set(e,t),this.shouldRecompute=!0)}getMergedRanges(){if(!this.shouldRecompute)return this.ranges;this.shouldRecompute=!1;const e=Array.from(this.hiddenAreas.values()).reduce((t,n)=>Oqn(t,n),[]);return Kpt(this.ranges,e)?this.ranges:(this.ranges=e,this.ranges)}},zSe=class{constructor(e,t){this.viewportStartModelPosition=e,this.startLineDelta=t}recoverViewportStart(e,t){if(!this.viewportStartModelPosition)return;const n=e.convertModelPositionToViewPosition(this.viewportStartModelPosition),i=t.getVerticalOffsetForLineNumber(n.lineNumber);t.setScrollPosition({scrollTop:i+this.startLineDelta},1)}}}});function VSe(e){return jXt+encodeURIComponent(e.toString())+zXt}function Fqn(e){return VXt+encodeURIComponent(e.toString())+HXt}var Jpt,TS,QP,i8,egt,tgt,HSe,Tf,ngt,igt,rgt,ogt,jXt,zXt,VXt,HXt,Rge=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js"(){var e;n$n(),Fn(),Vi(),Un(),Nt(),Gd(),i$n(),xb(),l$n(),_Ue(),mr(),Ec(),gqn(),bqn(),rZt(),_qn(),Su(),HC(),kb(),Hi(),Dn(),zs(),Lge(),GZt(),Dge(),ls(),lu(),Ac(),Eo(),Sqn(),Rqn(),bn(),Cm(),Ks(),er(),li(),H7(),yf(),ll(),Ys(),ha(),Jpt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},TS=function(t,n){return function(i,r){n(i,r,t)}},i8=(e=class extends St{get isSimpleWidget(){return this._configuration.isSimpleWidget}get contextMenuId(){return this._configuration.contextMenuId}constructor(n,i,r,o,s,a,l,c,u,d,h,f){super(),this.languageConfigurationService=h,this._deliveryQueue=a7t(),this._contributions=this._register(new qZt),this._onDidDispose=this._register(new bt),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new bt({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new bt({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new bt({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new bt({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new bt({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeModelTokens=this._register(new bt({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelTokens=this._onDidChangeModelTokens.event,this._onDidChangeConfiguration=this._register(new bt({deliveryQueue:this._deliveryQueue})),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onWillChangeModel=this._register(new bt({deliveryQueue:this._deliveryQueue})),this.onWillChangeModel=this._onWillChangeModel.event,this._onDidChangeModel=this._register(new bt({deliveryQueue:this._deliveryQueue})),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new bt({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new bt({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new Tf(this._contributions,this._deliveryQueue)),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new bt({deliveryQueue:this._deliveryQueue})),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new HSe({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new HSe({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new Tf(this._contributions,this._deliveryQueue)),this.onWillType=this._onWillType.event,this._onDidType=this._register(new Tf(this._contributions,this._deliveryQueue)),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new Tf(this._contributions,this._deliveryQueue)),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new Tf(this._contributions,this._deliveryQueue)),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new Tf(this._contributions,this._deliveryQueue)),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new Tf(this._contributions,this._deliveryQueue)),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new Tf(this._contributions,this._deliveryQueue)),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new Tf(this._contributions,this._deliveryQueue)),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new Tf(this._contributions,this._deliveryQueue)),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new Tf(this._contributions,this._deliveryQueue)),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onDropIntoEditor=this._register(new Tf(this._contributions,this._deliveryQueue)),this.onDropIntoEditor=this._onDropIntoEditor.event,this._onContextMenu=this._register(new Tf(this._contributions,this._deliveryQueue)),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new Tf(this._contributions,this._deliveryQueue)),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new Tf(this._contributions,this._deliveryQueue)),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new Tf(this._contributions,this._deliveryQueue)),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new Tf(this._contributions,this._deliveryQueue)),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new Tf(this._contributions,this._deliveryQueue)),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new bt({deliveryQueue:this._deliveryQueue})),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new bt({deliveryQueue:this._deliveryQueue})),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new bt({deliveryQueue:this._deliveryQueue})),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new bt({deliveryQueue:this._deliveryQueue})),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._updateCounter=0,this._onBeginUpdate=this._register(new bt),this.onBeginUpdate=this._onBeginUpdate.event,this._onEndUpdate=this._register(new bt),this.onEndUpdate=this._onEndUpdate.event,this._actions=new Map,this._bannerDomNode=null,this._dropIntoEditorDecorations=this.createDecorationsCollection(),s.willCreateCodeEditor();const p={...i};this._domElement=n,this._overflowWidgetsDomNode=p.overflowWidgetsDomNode,delete p.overflowWidgetsDomNode,this._id=++egt,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=r.telemetryData,this._configuration=this._register(this._createConfiguration(r.isSimpleWidget||!1,r.contextMenuId??(r.isSimpleWidget?Ti.SimpleEditorContext:Ti.EditorContext),p,d)),this._register(this._configuration.onDidChange(v=>{this._onDidChangeConfiguration.fire(v);const y=this._configuration.options;if(v.hasChanged(146)){const b=y.get(146);this._onDidLayoutChange.fire(b)}})),this._contextKeyService=this._register(l.createScoped(this._domElement)),this._notificationService=u,this._codeEditorService=s,this._commandService=a,this._themeService=c,this._register(new ngt(this,this._contextKeyService)),this._register(new igt(this,this._contextKeyService,f)),this._instantiationService=this._register(o.createChild(new iF([ur,this._contextKeyService]))),this._modelData=null,this._focusTracker=new rgt(n,this._overflowWidgetsDomNode),this._register(this._focusTracker.onChange(()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())})),this._contentWidgets={},this._overlayWidgets={},this._glyphMarginWidgets={};let g;Array.isArray(r.contributions)?g=r.contributions:g=uR.getEditorContributions(),this._contributions.initialize(this,g,this._instantiationService);for(const v of uR.getEditorActions()){if(this._actions.has(v.id)){Mr(new Error(`Cannot have two actions with the same id ${v.id}`));continue}const y=new jUe(v.id,v.label,v.alias,v.metadata,v.precondition??void 0,b=>this._instantiationService.invokeFunction(w=>Promise.resolve(v.runEditorCommand(w,this,b))),this._contextKeyService);this._actions.set(y.id,y)}const m=()=>!this._configuration.options.get(92)&&this._configuration.options.get(36).enabled;this._register(new p3t(this._domElement,{onDragOver:v=>{if(!m())return;const y=this.getTargetAtClientPoint(v.clientX,v.clientY);y?.position&&this.showDropIndicatorAt(y.position)},onDrop:async v=>{if(!m()||(this.removeDropIndicator(),!v.dataTransfer))return;const y=this.getTargetAtClientPoint(v.clientX,v.clientY);y?.position&&this._onDropIntoEditor.fire({position:y.position,event:v})},onDragLeave:()=>{this.removeDropIndicator()},onDragEnd:()=>{this.removeDropIndicator()}})),this._codeEditorService.addCodeEditor(this)}writeScreenReaderContent(n){this._modelData?.view.writeScreenReaderContent(n)}_createConfiguration(n,i,r,o){return new cae(n,i,r,this._domElement,o)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return U7.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose(),this._actions.clear(),this._contentWidgets={},this._overlayWidgets={},this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),super.dispose()}invokeWithinContext(n){return this._instantiationService.invokeFunction(n)}updateOptions(n){this._configuration.updateOptions(n||{})}getOptions(){return this._configuration.options}getOption(n){return this._configuration.options.get(n)}getRawOptions(){return this._configuration.getRawOptions()}getOverflowWidgetsDomNode(){return this._overflowWidgetsDomNode}getConfiguredWordAtPosition(n){return this._modelData?uh.getWordAtPosition(this._modelData.model,this._configuration.options.get(132),this._configuration.options.get(131),n):null}getValue(n=null){if(!this._modelData)return"";const i=!!(n&&n.preserveBOM);let r=0;return n&&n.lineEnding&&n.lineEnding===`
`?r=1:n&&n.lineEnding&&n.lineEnding===`\r
`&&(r=2),this._modelData.model.getValue(r,i)}setValue(n){try{if(this._beginUpdate(),!this._modelData)return;this._modelData.model.setValue(n)}finally{this._endUpdate()}}getModel(){return this._modelData?this._modelData.model:null}setModel(n=null){try{this._beginUpdate();const i=n;if(this._modelData===null&&i===null||this._modelData&&this._modelData.model===i)return;const r={oldModelUrl:this._modelData?.model.uri||null,newModelUrl:i?.uri||null};this._onWillChangeModel.fire(r);const o=this.hasTextFocus(),s=this._detachModel();this._attachModel(i),o&&this.hasModel()&&this.focus(),this._removeDecorationTypes(),this._onDidChangeModel.fire(r),this._postDetachModelCleanup(s),this._contributionsDisposable=this._contributions.onAfterModelAttached()}finally{this._endUpdate()}}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(const n in this._decorationTypeSubtypes){const i=this._decorationTypeSubtypes[n];for(const r in i)this._removeDecorationType(n+"-"+r)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetAfterPosition(n,i,r,o){const s=n.model.validatePosition({lineNumber:i,column:r}),a=n.viewModel.coordinatesConverter.convertModelPositionToViewPosition(s);return n.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(a.lineNumber,o)}getTopForLineNumber(n,i=!1){return this._modelData?QP._getVerticalOffsetForPosition(this._modelData,n,1,i):-1}getTopForPosition(n,i){return this._modelData?QP._getVerticalOffsetForPosition(this._modelData,n,i,!1):-1}static _getVerticalOffsetForPosition(n,i,r,o=!1){const s=n.model.validatePosition({lineNumber:i,column:r}),a=n.viewModel.coordinatesConverter.convertModelPositionToViewPosition(s);return n.viewModel.viewLayout.getVerticalOffsetForLineNumber(a.lineNumber,o)}getBottomForLineNumber(n,i=!1){if(!this._modelData)return-1;const r=this._modelData.model.getLineMaxColumn(n);return QP._getVerticalOffsetAfterPosition(this._modelData,n,r,i)}setHiddenAreas(n,i){this._modelData?.viewModel.setHiddenAreas(n.map(r=>Re.lift(r)),i)}getVisibleColumnFromPosition(n){if(!this._modelData)return n.column;const i=this._modelData.model.validatePosition(n),r=this._modelData.model.getOptions().tabSize;return cd.visibleColumnFromColumn(this._modelData.model.getLineContent(i.lineNumber),i.column,r)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(n,i="api"){if(this._modelData){if(!mt.isIPosition(n))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(i,[{selectionStartLineNumber:n.lineNumber,selectionStartColumn:n.column,positionLineNumber:n.lineNumber,positionColumn:n.column}])}}_sendRevealRange(n,i,r,o){if(!this._modelData)return;if(!Re.isIRange(n))throw new Error("Invalid arguments");const s=this._modelData.model.validateRange(n),a=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(s);this._modelData.viewModel.revealRange("api",r,a,i,o)}revealLine(n,i=0){this._revealLine(n,0,i)}revealLineInCenter(n,i=0){this._revealLine(n,1,i)}revealLineInCenterIfOutsideViewport(n,i=0){this._revealLine(n,2,i)}revealLineNearTop(n,i=0){this._revealLine(n,5,i)}_revealLine(n,i,r){if(typeof n!="number")throw new Error("Invalid arguments");this._sendRevealRange(new Re(n,1,n,1),i,!1,r)}revealPosition(n,i=0){this._revealPosition(n,0,!0,i)}revealPositionInCenter(n,i=0){this._revealPosition(n,1,!0,i)}revealPositionInCenterIfOutsideViewport(n,i=0){this._revealPosition(n,2,!0,i)}revealPositionNearTop(n,i=0){this._revealPosition(n,5,!0,i)}_revealPosition(n,i,r,o){if(!mt.isIPosition(n))throw new Error("Invalid arguments");this._sendRevealRange(new Re(n.lineNumber,n.column,n.lineNumber,n.column),i,r,o)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(n,i="api"){const r=Ii.isISelection(n),o=Re.isIRange(n);if(!r&&!o)throw new Error("Invalid arguments");if(r)this._setSelectionImpl(n,i);else if(o){const s={selectionStartLineNumber:n.startLineNumber,selectionStartColumn:n.startColumn,positionLineNumber:n.endLineNumber,positionColumn:n.endColumn};this._setSelectionImpl(s,i)}}_setSelectionImpl(n,i){if(!this._modelData)return;const r=new Ii(n.selectionStartLineNumber,n.selectionStartColumn,n.positionLineNumber,n.positionColumn);this._modelData.viewModel.setSelections(i,[r])}revealLines(n,i,r=0){this._revealLines(n,i,0,r)}revealLinesInCenter(n,i,r=0){this._revealLines(n,i,1,r)}revealLinesInCenterIfOutsideViewport(n,i,r=0){this._revealLines(n,i,2,r)}revealLinesNearTop(n,i,r=0){this._revealLines(n,i,5,r)}_revealLines(n,i,r,o){if(typeof n!="number"||typeof i!="number")throw new Error("Invalid arguments");this._sendRevealRange(new Re(n,1,i,1),r,!1,o)}revealRange(n,i=0,r=!1,o=!0){this._revealRange(n,r?1:0,o,i)}revealRangeInCenter(n,i=0){this._revealRange(n,1,!0,i)}revealRangeInCenterIfOutsideViewport(n,i=0){this._revealRange(n,2,!0,i)}revealRangeNearTop(n,i=0){this._revealRange(n,5,!0,i)}revealRangeNearTopIfOutsideViewport(n,i=0){this._revealRange(n,6,!0,i)}revealRangeAtTop(n,i=0){this._revealRange(n,3,!0,i)}_revealRange(n,i,r,o){if(!Re.isIRange(n))throw new Error("Invalid arguments");this._sendRevealRange(Re.lift(n),i,r,o)}setSelections(n,i="api",r=0){if(this._modelData){if(!n||n.length===0)throw new Error("Invalid arguments");for(let o=0,s=n.length;o<s;o++)if(!Ii.isISelection(n[o]))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(i,n,r)}}getContentWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1}getScrollWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1}getScrollLeft(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1}getContentHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1}getScrollHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1}getScrollTop(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1}setScrollLeft(n,i=1){if(this._modelData){if(typeof n!="number")throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollLeft:n},i)}}setScrollTop(n,i=1){if(this._modelData){if(typeof n!="number")throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollTop:n},i)}}setScrollPosition(n,i=1){this._modelData&&this._modelData.viewModel.viewLayout.setScrollPosition(n,i)}hasPendingScrollAnimation(){return this._modelData?this._modelData.viewModel.viewLayout.hasPendingScrollAnimation():!1}saveViewState(){if(!this._modelData)return null;const n=this._contributions.saveViewState(),i=this._modelData.viewModel.saveCursorState(),r=this._modelData.viewModel.saveState();return{cursorState:i,viewState:r,contributionsState:n}}restoreViewState(n){if(!this._modelData||!this._modelData.hasRealView)return;const i=n;if(i&&i.cursorState&&i.viewState){const r=i.cursorState;Array.isArray(r)?r.length>0&&this._modelData.viewModel.restoreCursorState(r):this._modelData.viewModel.restoreCursorState([r]),this._contributions.restoreViewState(i.contributionsState||{});const o=this._modelData.viewModel.reduceRestoreState(i.viewState);this._modelData.view.restoreState(o)}}handleInitialized(){this._getViewModel()?.visibleLinesStabilized()}getContribution(n){return this._contributions.get(n)}getActions(){return Array.from(this._actions.values())}getSupportedActions(){let n=this.getActions();return n=n.filter(i=>i.isSupported()),n}getAction(n){return this._actions.get(n)||null}trigger(n,i,r){r=r||{};try{switch(this._beginUpdate(),i){case"compositionStart":this._startComposition();return;case"compositionEnd":this._endComposition(n);return;case"type":{const s=r;this._type(n,s.text||"");return}case"replacePreviousChar":{const s=r;this._compositionType(n,s.text||"",s.replaceCharCnt||0,0,0);return}case"compositionType":{const s=r;this._compositionType(n,s.text||"",s.replacePrevCharCnt||0,s.replaceNextCharCnt||0,s.positionDelta||0);return}case"paste":{const s=r;this._paste(n,s.text||"",s.pasteOnNewLine||!1,s.multicursorText||null,s.mode||null,s.clipboardEvent);return}case"cut":this._cut(n);return}const o=this.getAction(i);if(o){Promise.resolve(o.run(r)).then(void 0,Mr);return}if(!this._modelData||this._triggerEditorCommand(n,i,r))return;this._triggerCommand(i,r)}finally{this._endUpdate()}}_triggerCommand(n,i){this._commandService.executeCommand(n,i)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(n){this._modelData&&(this._modelData.viewModel.endComposition(n),this._onDidCompositionEnd.fire())}_type(n,i){!this._modelData||i.length===0||(n==="keyboard"&&this._onWillType.fire(i),this._modelData.viewModel.type(i,n),n==="keyboard"&&this._onDidType.fire(i))}_compositionType(n,i,r,o,s){this._modelData&&this._modelData.viewModel.compositionType(i,r,o,s,n)}_paste(n,i,r,o,s,a){if(!this._modelData)return;const l=this._modelData.viewModel,c=l.getSelection().getStartPosition();l.paste(i,r,o,n);const u=l.getSelection().getStartPosition();n==="keyboard"&&this._onDidPaste.fire({clipboardEvent:a,range:new Re(c.lineNumber,c.column,u.lineNumber,u.column),languageId:s})}_cut(n){this._modelData&&this._modelData.viewModel.cut(n)}_triggerEditorCommand(n,i,r){const o=uR.getEditorCommand(i);return o?(r=r||{},r.source=n,this._instantiationService.invokeFunction(s=>{Promise.resolve(o.runEditorCommand(s,this,r)).then(void 0,Mr)}),!0):!1}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!this._modelData||this._configuration.options.get(92)?!1:(this._modelData.model.pushStackElement(),!0)}popUndoStop(){return!this._modelData||this._configuration.options.get(92)?!1:(this._modelData.model.popStackElement(),!0)}executeEdits(n,i,r){if(!this._modelData||this._configuration.options.get(92))return!1;let o;return r?Array.isArray(r)?o=()=>r:o=r:o=()=>null,this._modelData.viewModel.executeEdits(n,i,o),!0}executeCommand(n,i){this._modelData&&this._modelData.viewModel.executeCommand(i,n)}executeCommands(n,i){this._modelData&&this._modelData.viewModel.executeCommands(i,n)}createDecorationsCollection(n){return new ogt(this,n)}changeDecorations(n){return this._modelData?this._modelData.model.changeDecorations(n,this._id):null}getLineDecorations(n){return this._modelData?this._modelData.model.getLineDecorations(n,this._id,Rue(this._configuration.options)):null}getDecorationsInRange(n){return this._modelData?this._modelData.model.getDecorationsInRange(n,this._id,Rue(this._configuration.options)):null}deltaDecorations(n,i){return this._modelData?n.length===0&&i.length===0?n:this._modelData.model.deltaDecorations(n,i,this._id):[]}removeDecorations(n){!this._modelData||n.length===0||this._modelData.model.changeDecorations(i=>{i.deltaDecorations(n,[])})}removeDecorationsByType(n){const i=this._decorationTypeKeysToIds[n];i&&this.changeDecorations(r=>r.deltaDecorations(i,[])),this._decorationTypeKeysToIds.hasOwnProperty(n)&&delete this._decorationTypeKeysToIds[n],this._decorationTypeSubtypes.hasOwnProperty(n)&&delete this._decorationTypeSubtypes[n]}getLayoutInfo(){return this._configuration.options.get(146)}createOverviewRuler(n){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.createOverviewRuler(n)}getContainerDomNode(){return this._domElement}getDomNode(){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.domNode.domNode}delegateVerticalScrollbarPointerDown(n){!this._modelData||!this._modelData.hasRealView||this._modelData.view.delegateVerticalScrollbarPointerDown(n)}delegateScrollFromMouseWheelEvent(n){!this._modelData||!this._modelData.hasRealView||this._modelData.view.delegateScrollFromMouseWheelEvent(n)}layout(n,i=!1){this._configuration.observeContainer(n),i||this.render()}focus(){!this._modelData||!this._modelData.hasRealView||this._modelData.view.focus()}hasTextFocus(){return!this._modelData||!this._modelData.hasRealView?!1:this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(n){const i={widget:n,position:n.getPosition()};this._contentWidgets.hasOwnProperty(n.getId())&&console.warn("Overwriting a content widget with the same id:"+n.getId()),this._contentWidgets[n.getId()]=i,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(i)}layoutContentWidget(n){const i=n.getId();if(this._contentWidgets.hasOwnProperty(i)){const r=this._contentWidgets[i];r.position=n.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(r)}}removeContentWidget(n){const i=n.getId();if(this._contentWidgets.hasOwnProperty(i)){const r=this._contentWidgets[i];delete this._contentWidgets[i],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(r)}}addOverlayWidget(n){const i={widget:n,position:n.getPosition()};this._overlayWidgets.hasOwnProperty(n.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[n.getId()]=i,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(i)}layoutOverlayWidget(n){const i=n.getId();if(this._overlayWidgets.hasOwnProperty(i)){const r=this._overlayWidgets[i];r.position=n.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(r)}}removeOverlayWidget(n){const i=n.getId();if(this._overlayWidgets.hasOwnProperty(i)){const r=this._overlayWidgets[i];delete this._overlayWidgets[i],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(r)}}addGlyphMarginWidget(n){const i={widget:n,position:n.getPosition()};this._glyphMarginWidgets.hasOwnProperty(n.getId())&&console.warn("Overwriting a glyph margin widget with the same id."),this._glyphMarginWidgets[n.getId()]=i,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addGlyphMarginWidget(i)}layoutGlyphMarginWidget(n){const i=n.getId();if(this._glyphMarginWidgets.hasOwnProperty(i)){const r=this._glyphMarginWidgets[i];r.position=n.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutGlyphMarginWidget(r)}}removeGlyphMarginWidget(n){const i=n.getId();if(this._glyphMarginWidgets.hasOwnProperty(i)){const r=this._glyphMarginWidgets[i];delete this._glyphMarginWidgets[i],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeGlyphMarginWidget(r)}}changeViewZones(n){!this._modelData||!this._modelData.hasRealView||this._modelData.view.change(n)}getTargetAtClientPoint(n,i){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.getTargetAtClientPoint(n,i)}getScrolledVisiblePosition(n){if(!this._modelData||!this._modelData.hasRealView)return null;const i=this._modelData.model.validatePosition(n),r=this._configuration.options,o=r.get(146),s=QP._getVerticalOffsetForPosition(this._modelData,i.lineNumber,i.column)-this.getScrollTop(),a=this._modelData.view.getOffsetForColumn(i.lineNumber,i.column)+o.glyphMarginWidth+o.lineNumbersWidth+o.decorationsWidth-this.getScrollLeft();return{top:s,left:a,height:r.get(67)}}getOffsetForColumn(n,i){return!this._modelData||!this._modelData.hasRealView?-1:this._modelData.view.getOffsetForColumn(n,i)}render(n=!1){!this._modelData||!this._modelData.hasRealView||this._modelData.viewModel.batchEvents(()=>{this._modelData.view.render(!0,n)})}setAriaOptions(n){!this._modelData||!this._modelData.hasRealView||this._modelData.view.setAriaOptions(n)}applyFontInfo(n){yh(n,this._configuration.options.get(50))}setBanner(n,i){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._bannerDomNode.remove(),this._bannerDomNode=n,this._configuration.setReservedHeight(n?i:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(n){if(!n){this._modelData=null;return}const i=[];this._domElement.setAttribute("data-mode-id",n.getLanguageId()),this._configuration.setIsDominatedByLongLines(n.isDominatedByLongLines()),this._configuration.setModelLineCount(n.getLineCount());const r=n.onBeforeAttached(),o=new FXt(this._id,this._configuration,n,UZt.create(Yi(this._domElement)),YZt.create(this._configuration.options),l=>Nv(Yi(this._domElement),l),this.languageConfigurationService,this._themeService,r,{batchChanges:l=>{try{return this._beginUpdate(),l()}finally{this._endUpdate()}}});i.push(n.onWillDispose(()=>this.setModel(null))),i.push(o.onEvent(l=>{switch(l.kind){case 0:this._onDidContentSizeChange.fire(l);break;case 1:this._editorTextFocus.setValue(l.hasFocus);break;case 2:this._onDidScrollChange.fire(l);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{if(l.reachedMaxCursorCount){const h=this.getOption(80),f=R("cursors.maximum","The number of cursors has been limited to {0}. Consider using [find and replace](https://code.visualstudio.com/docs/editor/codebasics#_find-and-replace) for larger changes or increase the editor multi cursor limit setting.",h);this._notificationService.prompt(lY.Warning,f,[{label:"Find and Replace",run:()=>{this._commandService.executeCommand("editor.action.startFindReplaceAction")}},{label:R("goToSetting","Increase Multi Cursor Limit"),run:()=>{this._commandService.executeCommand("workbench.action.openSettings2",{query:"editor.multiCursorLimit"})}}])}const c=[];for(let h=0,f=l.selections.length;h<f;h++)c[h]=l.selections[h].getPosition();const u={position:c[0],secondaryPositions:c.slice(1),reason:l.reason,source:l.source};this._onDidChangeCursorPosition.fire(u);const d={selection:l.selections[0],secondarySelections:l.selections.slice(1),modelVersionId:l.modelVersionId,oldSelections:l.oldSelections,oldModelVersionId:l.oldModelVersionId,source:l.source,reason:l.reason};this._onDidChangeCursorSelection.fire(d);break}case 7:this._onDidChangeModelDecorations.fire(l.event);break;case 8:this._domElement.setAttribute("data-mode-id",n.getLanguageId()),this._onDidChangeModelLanguage.fire(l.event);break;case 9:this._onDidChangeModelLanguageConfiguration.fire(l.event);break;case 10:this._onDidChangeModelContent.fire(l.event);break;case 11:this._onDidChangeModelOptions.fire(l.event);break;case 12:this._onDidChangeModelTokens.fire(l.event);break}}));const[s,a]=this._createView(o);if(a){this._domElement.appendChild(s.domNode.domNode);let l=Object.keys(this._contentWidgets);for(let c=0,u=l.length;c<u;c++){const d=l[c];s.addContentWidget(this._contentWidgets[d])}l=Object.keys(this._overlayWidgets);for(let c=0,u=l.length;c<u;c++){const d=l[c];s.addOverlayWidget(this._overlayWidgets[d])}l=Object.keys(this._glyphMarginWidgets);for(let c=0,u=l.length;c<u;c++){const d=l[c];s.addGlyphMarginWidget(this._glyphMarginWidgets[d])}s.render(!1,!0),s.domNode.domNode.setAttribute("data-uri",n.uri.toString())}this._modelData=new tgt(n,o,s,a,i,r)}_createView(n){let i;this.isSimpleWidget?i={paste:(s,a,l,c)=>{this._paste("keyboard",s,a,l,c)},type:s=>{this._type("keyboard",s)},compositionType:(s,a,l,c)=>{this._compositionType("keyboard",s,a,l,c)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:i={paste:(s,a,l,c)=>{const u={text:s,pasteOnNewLine:a,multicursorText:l,mode:c};this._commandService.executeCommand("paste",u)},type:s=>{const a={text:s};this._commandService.executeCommand("type",a)},compositionType:(s,a,l,c)=>{if(l||c){const u={text:s,replacePrevCharCnt:a,replaceNextCharCnt:l,positionDelta:c};this._commandService.executeCommand("compositionType",u)}else{const u={text:s,replaceCharCnt:a};this._commandService.executeCommand("replacePreviousChar",u)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const r=new MUe(n.coordinatesConverter);return r.onKeyDown=s=>this._onKeyDown.fire(s),r.onKeyUp=s=>this._onKeyUp.fire(s),r.onContextMenu=s=>this._onContextMenu.fire(s),r.onMouseMove=s=>this._onMouseMove.fire(s),r.onMouseLeave=s=>this._onMouseLeave.fire(s),r.onMouseDown=s=>this._onMouseDown.fire(s),r.onMouseUp=s=>this._onMouseUp.fire(s),r.onMouseDrag=s=>this._onMouseDrag.fire(s),r.onMouseDrop=s=>this._onMouseDrop.fire(s),r.onMouseDropCanceled=s=>this._onMouseDropCanceled.fire(s),r.onMouseWheel=s=>this._onMouseWheel.fire(s),[new Sae(i,this._configuration,this._themeService.getColorTheme(),n,r,this._overflowWidgetsDomNode,this._instantiationService),!0]}_postDetachModelCleanup(n){n?.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(this._contributionsDisposable?.dispose(),this._contributionsDisposable=void 0,!this._modelData)return null;const n=this._modelData.model,i=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),i&&this._domElement.contains(i)&&i.remove(),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._bannerDomNode.remove(),n}_removeDecorationType(n){this._codeEditorService.removeDecorationType(n)}hasModel(){return this._modelData!==null}showDropIndicatorAt(n){const i=[{range:new Re(n.lineNumber,n.column,n.lineNumber,n.column),options:QP.dropIntoEditorDecorationOptions}];this._dropIntoEditorDecorations.set(i),this.revealPosition(n,1)}removeDropIndicator(){this._dropIntoEditorDecorations.clear()}setContextValue(n,i){this._contextKeyService.createKey(n,i)}_beginUpdate(){this._updateCounter++,this._updateCounter===1&&this._onBeginUpdate.fire()}_endUpdate(){this._updateCounter--,this._updateCounter===0&&this._onEndUpdate.fire()}},QP=e,e.dropIntoEditorDecorationOptions=Gr.register({description:"workbench-dnd-target",className:"dnd-target"}),e),i8=QP=Jpt([TS(3,ji),TS(4,Jo),TS(5,Oa),TS(6,ur),TS(7,Ru),TS(8,Cc),TS(9,pm),TS(10,yl),TS(11,gi)],i8),egt=0,tgt=class{constructor(t,n,i,r,o,s){this.model=t,this.viewModel=n,this.view=i,this.hasRealView=r,this.listenersToRemove=o,this.attachedView=s}dispose(){xa(this.listenersToRemove),this.model.onBeforeDetached(this.attachedView),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}},HSe=class extends St{constructor(t){super(),this._emitterOptions=t,this._onDidChangeToTrue=this._register(new bt(this._emitterOptions)),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new bt(this._emitterOptions)),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(t){const n=t?2:1;this._value!==n&&(this._value=n,this._value===2?this._onDidChangeToTrue.fire():this._value===1&&this._onDidChangeToFalse.fire())}},Tf=class extends bt{constructor(t,n){super({deliveryQueue:n}),this._contributions=t}fire(t){this._contributions.onBeforeInteractionEvent(),super.fire(t)}},ngt=class extends St{constructor(t,n){super(),this._editor=t,n.createKey("editorId",t.getId()),this._editorSimpleInput=Ge.editorSimpleInput.bindTo(n),this._editorFocus=Ge.focus.bindTo(n),this._textInputFocus=Ge.textInputFocus.bindTo(n),this._editorTextFocus=Ge.editorTextFocus.bindTo(n),this._tabMovesFocus=Ge.tabMovesFocus.bindTo(n),this._editorReadonly=Ge.readOnly.bindTo(n),this._inDiffEditor=Ge.inDiffEditor.bindTo(n),this._editorColumnSelection=Ge.columnSelection.bindTo(n),this._hasMultipleSelections=Ge.hasMultipleSelections.bindTo(n),this._hasNonEmptySelection=Ge.hasNonEmptySelection.bindTo(n),this._canUndo=Ge.canUndo.bindTo(n),this._canRedo=Ge.canRedo.bindTo(n),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromConfig())),this._register(this._editor.onDidChangeCursorSelection(()=>this._updateFromSelection())),this._register(this._editor.onDidFocusEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidFocusEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidChangeModel(()=>this._updateFromModel())),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromModel())),this._register(s2.onDidChangeTabFocus(i=>this._tabMovesFocus.set(i))),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const t=this._editor.getOptions();this._tabMovesFocus.set(s2.getTabFocusMode()),this._editorReadonly.set(t.get(92)),this._inDiffEditor.set(t.get(61)),this._editorColumnSelection.set(t.get(22))}_updateFromSelection(){const t=this._editor.getSelections();t?(this._hasMultipleSelections.set(t.length>1),this._hasNonEmptySelection.set(t.some(n=>!n.isEmpty()))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const t=this._editor.getModel();this._canUndo.set(!!(t&&t.canUndo())),this._canRedo.set(!!(t&&t.canRedo()))}},igt=class extends St{constructor(t,n,i){super(),this._editor=t,this._contextKeyService=n,this._languageFeaturesService=i,this._langId=Ge.languageId.bindTo(n),this._hasCompletionItemProvider=Ge.hasCompletionItemProvider.bindTo(n),this._hasCodeActionsProvider=Ge.hasCodeActionsProvider.bindTo(n),this._hasCodeLensProvider=Ge.hasCodeLensProvider.bindTo(n),this._hasDefinitionProvider=Ge.hasDefinitionProvider.bindTo(n),this._hasDeclarationProvider=Ge.hasDeclarationProvider.bindTo(n),this._hasImplementationProvider=Ge.hasImplementationProvider.bindTo(n),this._hasTypeDefinitionProvider=Ge.hasTypeDefinitionProvider.bindTo(n),this._hasHoverProvider=Ge.hasHoverProvider.bindTo(n),this._hasDocumentHighlightProvider=Ge.hasDocumentHighlightProvider.bindTo(n),this._hasDocumentSymbolProvider=Ge.hasDocumentSymbolProvider.bindTo(n),this._hasReferenceProvider=Ge.hasReferenceProvider.bindTo(n),this._hasRenameProvider=Ge.hasRenameProvider.bindTo(n),this._hasSignatureHelpProvider=Ge.hasSignatureHelpProvider.bindTo(n),this._hasInlayHintsProvider=Ge.hasInlayHintsProvider.bindTo(n),this._hasDocumentFormattingProvider=Ge.hasDocumentFormattingProvider.bindTo(n),this._hasDocumentSelectionFormattingProvider=Ge.hasDocumentSelectionFormattingProvider.bindTo(n),this._hasMultipleDocumentFormattingProvider=Ge.hasMultipleDocumentFormattingProvider.bindTo(n),this._hasMultipleDocumentSelectionFormattingProvider=Ge.hasMultipleDocumentSelectionFormattingProvider.bindTo(n),this._isInEmbeddedEditor=Ge.isInEmbeddedEditor.bindTo(n);const r=()=>this._update();this._register(t.onDidChangeModel(r)),this._register(t.onDidChangeModelLanguage(r)),this._register(i.completionProvider.onDidChange(r)),this._register(i.codeActionProvider.onDidChange(r)),this._register(i.codeLensProvider.onDidChange(r)),this._register(i.definitionProvider.onDidChange(r)),this._register(i.declarationProvider.onDidChange(r)),this._register(i.implementationProvider.onDidChange(r)),this._register(i.typeDefinitionProvider.onDidChange(r)),this._register(i.hoverProvider.onDidChange(r)),this._register(i.documentHighlightProvider.onDidChange(r)),this._register(i.documentSymbolProvider.onDidChange(r)),this._register(i.referenceProvider.onDidChange(r)),this._register(i.renameProvider.onDidChange(r)),this._register(i.documentFormattingEditProvider.onDidChange(r)),this._register(i.documentRangeFormattingEditProvider.onDidChange(r)),this._register(i.signatureHelpProvider.onDidChange(r)),this._register(i.inlayHintsProvider.onDidChange(r)),r()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents(()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInEmbeddedEditor.reset()})}_update(){const t=this._editor.getModel();if(!t){this.reset();return}this._contextKeyService.bufferChangeEvents(()=>{this._langId.set(t.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(t)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(t)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(t)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(t)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(t)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(t)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(t)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(t)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(t)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(t)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(t)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(t)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(t)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(t)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(t)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(t)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(t)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(t).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(t).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(t).length>1),this._isInEmbeddedEditor.set(t.uri.scheme===Pr.walkThroughSnippet||t.uri.scheme===Pr.vscodeChatCodeBlock)})}},rgt=class extends St{constructor(t,n){super(),this._onChange=this._register(new bt),this.onChange=this._onChange.event,this._hadFocus=void 0,this._hasDomElementFocus=!1,this._domFocusTracker=this._register(yC(t)),this._overflowWidgetsDomNodeHasFocus=!1,this._register(this._domFocusTracker.onDidFocus(()=>{this._hasDomElementFocus=!0,this._update()})),this._register(this._domFocusTracker.onDidBlur(()=>{this._hasDomElementFocus=!1,this._update()})),n&&(this._overflowWidgetsDomNode=this._register(yC(n)),this._register(this._overflowWidgetsDomNode.onDidFocus(()=>{this._overflowWidgetsDomNodeHasFocus=!0,this._update()})),this._register(this._overflowWidgetsDomNode.onDidBlur(()=>{this._overflowWidgetsDomNodeHasFocus=!1,this._update()})))}_update(){const t=this._hasDomElementFocus||this._overflowWidgetsDomNodeHasFocus;this._hadFocus!==t&&(this._hadFocus=t,this._onChange.fire(void 0))}hasFocus(){return this._hadFocus??!1}},ogt=class{get length(){return this._decorationIds.length}constructor(t,n){this._editor=t,this._decorationIds=[],this._isChangingDecorations=!1,Array.isArray(n)&&n.length>0&&this.set(n)}onDidChange(t,n,i){return this._editor.onDidChangeModelDecorations(r=>{this._isChangingDecorations||t.call(n,r)},i)}getRange(t){return!this._editor.hasModel()||t>=this._decorationIds.length?null:this._editor.getModel().getDecorationRange(this._decorationIds[t])}getRanges(){if(!this._editor.hasModel())return[];const t=this._editor.getModel(),n=[];for(const i of this._decorationIds){const r=t.getDecorationRange(i);r&&n.push(r)}return n}has(t){return this._decorationIds.includes(t.id)}clear(){this._decorationIds.length!==0&&this.set([])}set(t){try{this._isChangingDecorations=!0,this._editor.changeDecorations(n=>{this._decorationIds=n.deltaDecorations(this._decorationIds,t)})}finally{this._isChangingDecorations=!1}return this._decorationIds}append(t){let n=[];try{this._isChangingDecorations=!0,this._editor.changeDecorations(i=>{n=i.deltaDecorations([],t),this._decorationIds=this._decorationIds.concat(n)})}finally{this._isChangingDecorations=!1}return n}},jXt=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),zXt=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>"),VXt=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),HXt=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>'),Ab((t,n)=>{const i=t.getColor(jq);i&&n.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${VSe(i)}") repeat-x bottom left; }`);const r=t.getColor(Ix);r&&n.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${VSe(r)}") repeat-x bottom left; }`);const o=t.getColor(bC);o&&n.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${VSe(o)}") repeat-x bottom left; }`);const s=t.getColor(w3t);s&&n.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${Fqn(s)}") no-repeat bottom left; }`);const a=t.getColor(zGt);a&&n.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${a.rgba.a}; }`)})}}),Bqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/style.css"(){}}),VD,q7=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/stableEditorScroll.js"(){VD=class d6e{static capture(t){if(t.getScrollTop()===0||t.hasPendingScrollAnimation())return new d6e(t.getScrollTop(),t.getContentHeight(),null,0,null);let n=null,i=0;const r=t.getVisibleRanges();if(r.length>0){n=r[0].getStartPosition();const o=t.getTopForPosition(n.lineNumber,n.column);i=t.getScrollTop()-o}return new d6e(t.getScrollTop(),t.getContentHeight(),n,i,t.getPosition())}constructor(t,n,i,r,o){this._initialScrollTop=t,this._initialContentHeight=n,this._visiblePosition=i,this._visiblePositionScrollDelta=r,this._cursorPosition=o}restore(t){if(!(this._initialContentHeight===t.getContentHeight()&&this._initialScrollTop===t.getScrollTop())&&this._visiblePosition){const n=t.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);t.setScrollTop(n+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(t){if(this._initialContentHeight===t.getContentHeight()&&this._initialScrollTop===t.getScrollTop())return;const n=t.getPosition();if(!this._cursorPosition||!n)return;const i=t.getTopForLineNumber(n.lineNumber)-t.getTopForLineNumber(this._cursorPosition.lineNumber);t.setScrollTop(t.getScrollTop()+i,1)}}}});function jqn(e,t,n,i){if(e.length===0)return t;if(t.length===0)return e;const r=[];let o=0,s=0;for(;o<e.length&&s<t.length;){const a=e[o],l=t[s],c=n(a),u=n(l);c<u?(r.push(a),o++):c>u?(r.push(l),s++):(r.push(i(a,l)),o++,s++)}for(;o<e.length;)r.push(e[o]),o++;for(;s<t.length;)r.push(t[s]),s++;return r}function Lde(e,t){const n=new Jt,i=e.createDecorationsCollection();return n.add(_Y({debugName:()=>`Apply decorations from ${t.debugName}`},r=>{const o=t.read(r);i.set(o)})),n.add({dispose:()=>{i.clear()}}),n}function h6(e,t){return e.appendChild(t),zi(()=>{t.remove()})}function zqn(e,t){return e.prepend(t),zi(()=>{t.remove()})}function sgt(e,t,n){let i=t.get(),r=i,o=i;const s=mo("animatedValue",i);let a=-1;const l=300;let c;n.add(wY({createEmptyChangeSummary:()=>({animate:!1}),handleChange:(d,h)=>(d.didChange(t)&&(h.animate=h.animate||d.change),!0)},(d,h)=>{c!==void 0&&(e.cancelAnimationFrame(c),c=void 0),r=o,i=t.read(d),a=Date.now()-(h.animate?0:l),u()}));function u(){const d=Date.now()-a;o=Math.floor(Vqn(d,r,i-r,l)),d<l?c=e.requestAnimationFrame(u):o=i,s.set(o,void 0)}return s}function Vqn(e,t,n,i){return e===i?t+n:n*(-Math.pow(2,-10*e/i)+1)+t}function HD(e,t){return Tr(n=>{for(let[i,r]of Object.entries(t))r&&typeof r=="object"&&"read"in r&&(r=r.read(n)),typeof r=="number"&&(r=`${r}px`),i=i.replace(/[A-Z]/g,o=>"-"+o.toLowerCase()),e.style[i]=r})}function Nde(e,t,n,i){const r=new Jt,o=[];return r.add(hm((s,a)=>{const l=t.read(s),c=new Map,u=new Map;n&&n(!0),e.changeViewZones(d=>{for(const h of o)d.removeZone(h),i?.delete(h);o.length=0;for(const h of l){const f=d.addZone(h);h.setZoneId&&h.setZoneId(f),o.push(f),i?.add(f),c.set(h,f)}}),n&&n(!1),a.add(wY({createEmptyChangeSummary(){return{zoneIds:[]}},handleChange(d,h){const f=u.get(d.changedObservable);return f!==void 0&&h.zoneIds.push(f),!0}},(d,h)=>{for(const f of l)f.onChange&&(u.set(f.onChange,c.get(f)),f.onChange.read(d));n&&n(!0),e.changeViewZones(f=>{for(const p of h.zoneIds)f.layoutZone(p)}),n&&n(!1)}))})),r.add({dispose(){n&&n(!0),e.changeViewZones(s=>{for(const a of o)s.removeZone(a)}),i?.clear(),n&&n(!1)}}),r}function agt(e,t){const n=Kq(t,r=>r.original.startLineNumber<=e.lineNumber);if(!n)return Re.fromPositions(e);if(n.original.endLineNumberExclusive<=e.lineNumber){const r=e.lineNumber-n.original.endLineNumberExclusive+n.modified.endLineNumberExclusive;return Re.fromPositions(new mt(r,e.column))}if(!n.innerChanges)return Re.fromPositions(new mt(n.modified.startLineNumber,1));const i=Kq(n.innerChanges,r=>r.originalRange.getStartPosition().isBeforeOrEqual(e));if(!i){const r=e.lineNumber-n.original.startLineNumber+n.modified.startLineNumber;return Re.fromPositions(new mt(r,e.column))}if(i.originalRange.containsPosition(e))return i.modifiedRange;{const r=Hqn(i.originalRange.getEndPosition(),e);return Re.fromPositions(r.addToPosition(i.modifiedRange.getEndPosition()))}}function Hqn(e,t){return e.lineNumber===t.lineNumber?new _C(0,t.column-e.column):new _C(t.lineNumber-e.lineNumber,t.column-1)}function Wqn(e,t){let n;return e.filter(i=>{const r=t(i,n);return n=i,r})}var HUe,Pde,FO,lgt,WXt,d$,WSe,cgt,Cw=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/utils.js"(){var e;Y0(),Ho(),Nt(),xs(),DQt(),Hi(),Dn(),IN(),HUe=class extends St{get width(){return this._width}get height(){return this._height}get automaticLayout(){return this._automaticLayout}constructor(t,n){super(),this._automaticLayout=!1,this.elementSizeObserver=this._register(new bUe(t,n)),this._width=mo(this,this.elementSizeObserver.getWidth()),this._height=mo(this,this.elementSizeObserver.getHeight()),this._register(this.elementSizeObserver.onDidChange(i=>Al(r=>{this._width.set(this.elementSizeObserver.getWidth(),r),this._height.set(this.elementSizeObserver.getHeight(),r)})))}observe(t){this.elementSizeObserver.observe(t)}setAutomaticLayout(t){this._automaticLayout=t,t?this.elementSizeObserver.startObserving():this.elementSizeObserver.stopObserving()}},Pde=class extends St{constructor(t,n,i){super(),this._register(new lgt(t,i)),this._register(HD(i,{height:n.actualHeight,top:n.actualTop}))}},FO=class{get afterLineNumber(){return this._afterLineNumber.get()}constructor(t,n){this._afterLineNumber=t,this.heightInPx=n,this.domNode=document.createElement("div"),this._actualTop=mo(this,void 0),this._actualHeight=mo(this,void 0),this.actualTop=this._actualTop,this.actualHeight=this._actualHeight,this.showInHiddenAreas=!0,this.onChange=this._afterLineNumber,this.onDomNodeTop=i=>{this._actualTop.set(i,void 0)},this.onComputedHeight=i=>{this._actualHeight.set(i,void 0)}}},lgt=(e=class{constructor(n,i){this._editor=n,this._domElement=i,this._overlayWidgetId=`managedOverlayWidget-${e._counter++}`,this._overlayWidget={getId:()=>this._overlayWidgetId,getDomNode:()=>this._domElement,getPosition:()=>null},this._editor.addOverlayWidget(this._overlayWidget)}dispose(){this._editor.removeOverlayWidget(this._overlayWidget)}},e._counter=0,e),WXt=class extends bl{dispose(){super.dispose(!0)}},d$=class{static create(t,n=void 0){return new WSe(t,t,n)}static createWithDisposable(t,n,i=void 0){const r=new Jt;return r.add(n),r.add(t),new WSe(t,r,i)}},WSe=class extends d${constructor(t,n,i){super(),this.object=t,this._disposable=n,this._debugOwner=i,this._refCount=1,this._isDisposed=!1,this._owners=[],i&&this._addOwner(i)}_addOwner(t){t&&this._owners.push(t)}createNewRef(t){return this._refCount++,t&&this._addOwner(t),new cgt(this,t)}dispose(){this._isDisposed||(this._isDisposed=!0,this._decreaseRefCount(this._debugOwner))}_decreaseRefCount(t){if(this._refCount--,this._refCount===0&&this._disposable.dispose(),t){const n=this._owners.indexOf(t);n!==-1&&this._owners.splice(n,1)}}},cgt=class extends d${constructor(t,n){super(),this._base=t,this._debugOwner=n,this._isDisposed=!1}get object(){return this._base.object}createNewRef(t){return this._base.createNewRef(t)}dispose(){this._isDisposed||(this._isDisposed=!0,this._base._decreaseRefCount(this._debugOwner))}}}}),Uqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.css"(){}});function $qn(e,t,n){const i=[];for(const r of mHe(e,(o,s)=>s.modified.startLineNumber-o.modified.endLineNumberExclusive<2*OB)){const o=[];o.push(new $Xt);const s=new Ur(Math.max(1,r[0].original.startLineNumber-OB),Math.min(r[r.length-1].original.endLineNumberExclusive+OB,t+1)),a=new Ur(Math.max(1,r[0].modified.startLineNumber-OB),Math.min(r[r.length-1].modified.endLineNumberExclusive+OB,n+1));fWt(r,(u,d)=>{const h=new Ur(u?u.original.endLineNumberExclusive:s.startLineNumber,d?d.original.startLineNumber:s.endLineNumberExclusive),f=new Ur(u?u.modified.endLineNumberExclusive:a.startLineNumber,d?d.modified.startLineNumber:a.endLineNumberExclusive);h.forEach(p=>{o.push(new KXt(p,f.startLineNumber+(p-h.startLineNumber)))}),d&&(d.original.forEach(p=>{o.push(new qXt(d,p))}),d.modified.forEach(p=>{o.push(new GXt(d,p))}))});const l=r[0].modified.join(r[r.length-1].modified),c=r[0].original.join(r[r.length-1].original);i.push(new UXt(new Zy(l,c),o))}return i}var $ee,qee,ugt,dgt,hgt,nI,Gee,OB,Up,UXt,$Xt,qXt,GXt,KXt,Kee,YXt,qqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js"(){var e;Fn(),pT(),ww(),vw(),wd(),rr(),ia(),Nt(),xs(),Ra(),xb(),Cw(),Su(),Sg(),K0(),Hi(),Dn(),vT(),Kd(),bw(),X2(),KC(),bn(),rF(),li(),X0(),Uqn(),$ee=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},qee=function(t,n){return function(i,r){n(i,r,t)}},ugt=Xa("diff-review-insert",An.add,R("accessibleDiffViewerInsertIcon","Icon for 'Insert' in accessible diff viewer.")),dgt=Xa("diff-review-remove",An.remove,R("accessibleDiffViewerRemoveIcon","Icon for 'Remove' in accessible diff viewer.")),hgt=Xa("diff-review-close",An.close,R("accessibleDiffViewerCloseIcon","Icon for 'Close' in accessible diff viewer.")),nI=(e=class extends St{constructor(n,i,r,o,s,a,l,c,u){super(),this._parentNode=n,this._visible=i,this._setVisible=r,this._canClose=o,this._width=s,this._height=a,this._diffs=l,this._models=c,this._instantiationService=u,this._state=FN(this,(d,h)=>{const f=this._visible.read(d);if(this._parentNode.style.visibility=f?"visible":"hidden",!f)return null;const p=h.add(this._instantiationService.createInstance(Gee,this._diffs,this._models,this._setVisible,this._canClose)),g=h.add(this._instantiationService.createInstance(Kee,this._parentNode,p,this._width,this._height,this._models));return{model:p,view:g}}).recomputeInitiallyAndOnChange(this._store)}next(){Al(n=>{const i=this._visible.get();this._setVisible(!0,n),i&&this._state.get().model.nextGroup(n)})}prev(){Al(n=>{this._setVisible(!0,n),this._state.get().model.previousGroup(n)})}close(){Al(n=>{this._setVisible(!1,n)})}},e._ttPolicy=fT("diffReview",{createHTML:n=>n}),e),nI=$ee([qee(8,ji)],nI),Gee=class extends St{constructor(n,i,r,o,s){super(),this._diffs=n,this._models=i,this._setVisible=r,this.canClose=o,this._accessibilitySignalService=s,this._groups=mo(this,[]),this._currentGroupIdx=mo(this,0),this._currentElementIdx=mo(this,0),this.groups=this._groups,this.currentGroup=this._currentGroupIdx.map((a,l)=>this._groups.read(l)[a]),this.currentGroupIndex=this._currentGroupIdx,this.currentElement=this._currentElementIdx.map((a,l)=>this.currentGroup.read(l)?.lines[a]),this._register(Tr(a=>{const l=this._diffs.read(a);if(!l){this._groups.set([],void 0);return}const c=$qn(l,this._models.getOriginalModel().getLineCount(),this._models.getModifiedModel().getLineCount());Al(u=>{const d=this._models.getModifiedPosition();if(d){const h=c.findIndex(f=>d?.lineNumber<f.range.modified.endLineNumberExclusive);h!==-1&&this._currentGroupIdx.set(h,u)}this._groups.set(c,u)})})),this._register(Tr(a=>{const l=this.currentElement.read(a);l?.type===Up.Deleted?this._accessibilitySignalService.playSignal(Py.diffLineDeleted,{source:"accessibleDiffViewer.currentElementChanged"}):l?.type===Up.Added&&this._accessibilitySignalService.playSignal(Py.diffLineInserted,{source:"accessibleDiffViewer.currentElementChanged"})})),this._register(Tr(a=>{const l=this.currentElement.read(a);if(l&&l.type!==Up.Header){const c=l.modifiedLineNumber??l.diff.modified.startLineNumber;this._models.modifiedSetSelection(Re.fromPositions(new mt(c,1)))}}))}_goToGroupDelta(n,i){const r=this.groups.get();!r||r.length<=1||i2(i,o=>{this._currentGroupIdx.set(Xo.ofLength(r.length).clipCyclic(this._currentGroupIdx.get()+n),o),this._currentElementIdx.set(0,o)})}nextGroup(n){this._goToGroupDelta(1,n)}previousGroup(n){this._goToGroupDelta(-1,n)}_goToLineDelta(n){const i=this.currentGroup.get();!i||i.lines.length<=1||Al(r=>{this._currentElementIdx.set(Xo.ofLength(i.lines.length).clip(this._currentElementIdx.get()+n),r)})}goToNextLine(){this._goToLineDelta(1)}goToPreviousLine(){this._goToLineDelta(-1)}goToLine(n){const i=this.currentGroup.get();if(!i)return;const r=i.lines.indexOf(n);r!==-1&&Al(o=>{this._currentElementIdx.set(r,o)})}revealCurrentElementInEditor(){if(!this.canClose.get())return;this._setVisible(!1,void 0);const n=this.currentElement.get();n&&(n.type===Up.Deleted?this._models.originalReveal(Re.fromPositions(new mt(n.originalLineNumber,1))):this._models.modifiedReveal(n.type!==Up.Header?Re.fromPositions(new mt(n.modifiedLineNumber,1)):void 0))}close(){this.canClose.get()&&(this._setVisible(!1,void 0),this._models.modifiedFocus())}},Gee=$ee([qee(4,xT)],Gee),OB=3,(function(t){t[t.Header=0]="Header",t[t.Unchanged=1]="Unchanged",t[t.Deleted=2]="Deleted",t[t.Added=3]="Added"})(Up||(Up={})),UXt=class{constructor(t,n){this.range=t,this.lines=n}},$Xt=class{constructor(){this.type=Up.Header}},qXt=class{constructor(t,n){this.diff=t,this.originalLineNumber=n,this.type=Up.Deleted,this.modifiedLineNumber=void 0}},GXt=class{constructor(t,n){this.diff=t,this.modifiedLineNumber=n,this.type=Up.Added,this.originalLineNumber=void 0}},KXt=class{constructor(t,n){this.originalLineNumber=t,this.modifiedLineNumber=n,this.type=Up.Unchanged}},Kee=class extends St{constructor(n,i,r,o,s,a){super(),this._element=n,this._model=i,this._width=r,this._height=o,this._models=s,this._languageService=a,this.domNode=this._element,this.domNode.className="monaco-component diff-review monaco-editor-background";const l=document.createElement("div");l.className="diff-review-actions",this._actionBar=this._register(new Dv(l)),this._register(Tr(c=>{this._actionBar.clear(),this._model.canClose.read(c)&&this._actionBar.push(new cm("diffreview.close",R("label.close","Close"),"close-diff-review "+lr.asClassName(hgt),!0,async()=>i.close()),{label:!1,icon:!0})})),this._content=document.createElement("div"),this._content.className="diff-review-content",this._content.setAttribute("role","code"),this._scrollbar=this._register(new N7(this._content,{})),xh(this.domNode,this._scrollbar.getDomNode(),l),this._register(Tr(c=>{this._height.read(c),this._width.read(c),this._scrollbar.scanDomNode()})),this._register(zi(()=>{xh(this.domNode)})),this._register(HD(this.domNode,{width:this._width,height:this._height})),this._register(HD(this._content,{width:this._width,height:this._height})),this._register(hm((c,u)=>{this._model.currentGroup.read(c),this._render(u)})),this._register(Il(this.domNode,"keydown",c=>{(c.equals(18)||c.equals(2066)||c.equals(530))&&(c.preventDefault(),this._model.goToNextLine()),(c.equals(16)||c.equals(2064)||c.equals(528))&&(c.preventDefault(),this._model.goToPreviousLine()),(c.equals(9)||c.equals(2057)||c.equals(521)||c.equals(1033))&&(c.preventDefault(),this._model.close()),(c.equals(10)||c.equals(3))&&(c.preventDefault(),this._model.revealCurrentElementInEditor())}))}_render(n){const i=this._models.getOriginalOptions(),r=this._models.getModifiedOptions(),o=document.createElement("div");o.className="diff-review-table",o.setAttribute("role","list"),o.setAttribute("aria-label",R("ariaLabel","Accessible Diff Viewer. Use arrow up and down to navigate.")),yh(o,r.get(50)),xh(this._content,o);const s=this._models.getOriginalModel(),a=this._models.getModifiedModel();if(!s||!a)return;const l=s.getOptions(),c=a.getOptions(),u=r.get(67),d=this._model.currentGroup.get();for(const h of d?.lines||[]){if(!d)break;let f;if(h.type===Up.Header){const g=document.createElement("div");g.className="diff-review-row",g.setAttribute("role","listitem");const m=d.range,v=this._model.currentGroupIndex.get(),y=this._model.groups.get().length,b=D=>D===0?R("no_lines_changed","no lines changed"):D===1?R("one_line_changed","1 line changed"):R("more_lines_changed","{0} lines changed",D),w=b(m.original.length),E=b(m.modified.length);g.setAttribute("aria-label",R({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",v+1,y,m.original.startLineNumber,w,m.modified.startLineNumber,E));const A=document.createElement("div");A.className="diff-review-cell diff-review-summary",A.appendChild(document.createTextNode(`${v+1}/${y}: @@ -${m.original.startLineNumber},${m.original.length} +${m.modified.startLineNumber},${m.modified.length} @@`)),g.appendChild(A),f=g}else f=this._createRow(h,u,this._width.get(),i,s,l,r,a,c);o.appendChild(f);const p=Fi(g=>this._model.currentElement.read(g)===h);n.add(Tr(g=>{const m=p.read(g);f.tabIndex=m?0:-1,m&&f.focus()})),n.add(qt(f,"focus",()=>{this._model.goToLine(h)}))}this._scrollbar.scanDomNode()}_createRow(n,i,r,o,s,a,l,c,u){const d=o.get(146),h=d.glyphMarginWidth+d.lineNumbersWidth,f=l.get(146),p=10+f.glyphMarginWidth+f.lineNumbersWidth;let g="diff-review-row",m="";const v="diff-review-spacer";let y=null;switch(n.type){case Up.Added:g="diff-review-row line-insert",m=" char-insert",y=ugt;break;case Up.Deleted:g="diff-review-row line-delete",m=" char-delete",y=dgt;break}const b=document.createElement("div");b.style.minWidth=r+"px",b.className=g,b.setAttribute("role","listitem"),b.ariaLevel="";const w=document.createElement("div");w.className="diff-review-cell",w.style.height=`${i}px`,b.appendChild(w);const E=document.createElement("span");E.style.width=h+"px",E.style.minWidth=h+"px",E.className="diff-review-line-number"+m,n.originalLineNumber!==void 0?E.appendChild(document.createTextNode(String(n.originalLineNumber))):E.innerText=" ",w.appendChild(E);const A=document.createElement("span");A.style.width=p+"px",A.style.minWidth=p+"px",A.style.paddingRight="10px",A.className="diff-review-line-number"+m,n.modifiedLineNumber!==void 0?A.appendChild(document.createTextNode(String(n.modifiedLineNumber))):A.innerText=" ",w.appendChild(A);const D=document.createElement("span");if(D.className=v,y){const P=document.createElement("span");P.className=lr.asClassName(y),P.innerText="  ",D.appendChild(P)}else D.innerText="  ";w.appendChild(D);let T;if(n.modifiedLineNumber!==void 0){let P=this._getLineHtml(c,l,u.tabSize,n.modifiedLineNumber,this._languageService.languageIdCodec);nI._ttPolicy&&(P=nI._ttPolicy.createHTML(P)),w.insertAdjacentHTML("beforeend",P),T=c.getLineContent(n.modifiedLineNumber)}else{let P=this._getLineHtml(s,o,a.tabSize,n.originalLineNumber,this._languageService.languageIdCodec);nI._ttPolicy&&(P=nI._ttPolicy.createHTML(P)),w.insertAdjacentHTML("beforeend",P),T=s.getLineContent(n.originalLineNumber)}T.length===0&&(T=R("blankLine","blank"));let M="";switch(n.type){case Up.Unchanged:n.originalLineNumber===n.modifiedLineNumber?M=R({key:"unchangedLine",comment:["The placeholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",T,n.originalLineNumber):M=R("equalLine","{0} original line {1} modified line {2}",T,n.originalLineNumber,n.modifiedLineNumber);break;case Up.Added:M=R("insertLine","+ {0} modified line {1}",T,n.modifiedLineNumber);break;case Up.Deleted:M=R("deleteLine","- {0} original line {1}",T,n.originalLineNumber);break}return b.setAttribute("aria-label",M),b}_getLineHtml(n,i,r,o,s){const a=n.getLineContent(o),l=i.get(50),c=Dh.createEmpty(a,s),u=nw.isBasicASCII(a,n.mightContainNonBasicASCII()),d=nw.containsRTL(a,u,n.mightContainRTL());return Wpe(new hT(l.isMonospace&&!i.get(33),l.canUseHalfwidthRightwardsArrow,a,!1,u,d,0,c,[],r,0,l.spaceWidth,l.middotWidth,l.wsmiddotWidth,i.get(118),i.get(100),i.get(95),i.get(51)!==QR.OFF,null)).html}},Kee=$ee([qee(5,al)],Kee),YXt=class{constructor(t){this.editors=t}getOriginalModel(){return this.editors.original.getModel()}getOriginalOptions(){return this.editors.original.getOptions()}originalReveal(t){this.editors.original.revealRange(t),this.editors.original.setSelection(t),this.editors.original.focus()}getModifiedModel(){return this.editors.modified.getModel()}getModifiedOptions(){return this.editors.modified.getOptions()}modifiedReveal(t){t&&(this.editors.modified.revealRange(t),this.editors.modified.setSelection(t)),this.editors.modified.focus()}modifiedSetSelection(t){this.editors.modified.setSelection(t)}modifiedFocus(){this.editors.modified.focus()}getModifiedPosition(){return this.editors.modified.getPosition()??void 0}}}}),fgt,h6e,pG,u9,f6e,p6e,gG,Fge,Bge,a2,jge,zge,aF=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/registrations.contribution.js"(){ia(),Ra(),Ac(),bn(),ll(),X0(),Qe("diffEditor.move.border","#8b8b8b9c",R("diffEditor.move.border","The border color for text that got moved in the diff editor.")),Qe("diffEditor.moveActive.border","#FFA500",R("diffEditor.moveActive.border","The active border color for text that got moved in the diff editor.")),Qe("diffEditor.unchangedRegionShadow",{dark:"#000000",light:"#737373BF",hcDark:"#000000",hcLight:"#737373BF"},R("diffEditor.unchangedRegionShadow","The color of the shadow around unchanged region widgets.")),fgt=Xa("diff-insert",An.add,R("diffInsertIcon","Line decoration for inserts in the diff editor.")),h6e=Xa("diff-remove",An.remove,R("diffRemoveIcon","Line decoration for removals in the diff editor.")),pG=Gr.register({className:"line-insert",description:"line-insert",isWholeLine:!0,linesDecorationsClassName:"insert-sign "+lr.asClassName(fgt),marginClassName:"gutter-insert"}),u9=Gr.register({className:"line-delete",description:"line-delete",isWholeLine:!0,linesDecorationsClassName:"delete-sign "+lr.asClassName(h6e),marginClassName:"gutter-delete"}),f6e=Gr.register({className:"line-insert",description:"line-insert",isWholeLine:!0,marginClassName:"gutter-insert"}),p6e=Gr.register({className:"line-delete",description:"line-delete",isWholeLine:!0,marginClassName:"gutter-delete"}),gG=Gr.register({className:"char-insert",description:"char-insert",shouldFillLineOnLineBreak:!0}),Fge=Gr.register({className:"char-insert",description:"char-insert",isWholeLine:!0}),Bge=Gr.register({className:"char-insert diff-range-empty",description:"char-insert diff-range-empty"}),a2=Gr.register({className:"char-delete",description:"char-delete",shouldFillLineOnLineBreak:!0}),jge=Gr.register({className:"char-delete",description:"char-delete",isWholeLine:!0}),zge=Gr.register({className:"char-delete diff-range-empty",description:"char-delete diff-range-empty"})}}),USe,Yee,ZP,d9,Qee,Zee,Vge=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js"(){var e;vf(),li(),Un(),_g(),Sg(),vT(),SE(),_m(),USe=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},Yee=function(t,n){return function(i,r){n(i,r,t)}},d9=Ao("diffProviderFactoryService"),Qee=class{constructor(n){this.instantiationService=n}createDiffProvider(n){return this.instantiationService.createInstance(Zee,n)}},Qee=USe([Yee(0,ji)],Qee),Oo(d9,Qee,1),Zee=(e=class{constructor(n,i,r){this.editorWorkerService=i,this.telemetryService=r,this.onDidChangeEventEmitter=new bt,this.onDidChange=this.onDidChangeEventEmitter.event,this.diffAlgorithm="advanced",this.diffAlgorithmOnDidChangeSubscription=void 0,this.setOptions(n)}dispose(){this.diffAlgorithmOnDidChangeSubscription?.dispose()}async computeDiff(n,i,r,o){if(typeof this.diffAlgorithm!="string")return this.diffAlgorithm.computeDiff(n,i,r,o);if(n.isDisposed()||i.isDisposed())return{changes:[],identical:!0,quitEarly:!1,moves:[]};if(n.getLineCount()===1&&n.getLineMaxColumn(1)===1)return i.getLineCount()===1&&i.getLineMaxColumn(1)===1?{changes:[],identical:!0,quitEarly:!1,moves:[]}:{changes:[new CC(new Ur(1,2),new Ur(1,i.getLineCount()+1),[new Dy(n.getFullModelRange(),i.getFullModelRange())])],identical:!1,quitEarly:!1,moves:[]};const s=JSON.stringify([n.uri.toString(),i.uri.toString()]),a=JSON.stringify([n.id,i.id,n.getAlternativeVersionId(),i.getAlternativeVersionId(),JSON.stringify(r)]),l=ZP.diffCache.get(s);if(l&&l.context===a)return l.result;const c=Ah.create(),u=await this.editorWorkerService.computeDiff(n.uri,i.uri,r,this.diffAlgorithm),d=c.elapsed();if(this.telemetryService.publicLog2("diffEditor.computeDiff",{timeMs:d,timedOut:u?.quitEarly??!0,detectedMoves:r.computeMoves?u?.moves.length??0:-1}),o.isCancellationRequested)return{changes:[],identical:!1,quitEarly:!0,moves:[]};if(!u)throw new Error("no diff result available");return ZP.diffCache.size>10&&ZP.diffCache.delete(ZP.diffCache.keys().next().value),ZP.diffCache.set(s,{result:u,context:a}),u}setOptions(n){let i=!1;n.diffAlgorithm&&this.diffAlgorithm!==n.diffAlgorithm&&(this.diffAlgorithmOnDidChangeSubscription?.dispose(),this.diffAlgorithmOnDidChangeSubscription=void 0,this.diffAlgorithm=n.diffAlgorithm,typeof n.diffAlgorithm!="string"&&(this.diffAlgorithmOnDidChangeSubscription=n.diffAlgorithm.onDidChange(()=>this.onDidChangeEventEmitter.fire())),i=!0),i&&this.onDidChangeEventEmitter.fire()}},ZP=e,e.diffCache=new Map,e),Zee=ZP=USe([Yee(1,fg),Yee(2,uf)],Zee)}});function Hge(){return Yce&&!!Yce.VSCODE_DEV}function QXt(e){if(Hge()){const t=Gqn();return t.add(e),{dispose(){t.delete(e)}}}else return{dispose(){}}}function Gqn(){wW||(wW=new Set);const e=globalThis;return e.$hotReload_applyNewExports||(e.$hotReload_applyNewExports=t=>{const n={config:{mode:void 0},...t},i=[];for(const r of wW){const o=r(n);o&&i.push(o)}if(i.length>0)return r=>{let o=!1;for(const s of i)s(r)&&(o=!0);return o}}),wW}var wW,ZXt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/hotReload.js"(){C7t(),wW=void 0,Hge()&&QXt(({oldExports:e,newSrc:t,config:n})=>{if(n.mode==="patch-prototype")return i=>{for(const r in i){const o=i[r];if(console.log(`[hot-reload] Patching prototype methods of '${r}'`,{exportedItem:o}),typeof o=="function"&&o.prototype){const s=e[r];if(s){for(const a of Object.getOwnPropertyNames(o.prototype)){const l=Object.getOwnPropertyDescriptor(o.prototype,a),c=Object.getOwnPropertyDescriptor(s.prototype,a);l?.value?.toString()!==c?.value?.toString()&&console.log(`[hot-reload] Patching prototype method '${r}.${a}'`),Object.defineProperty(s.prototype,a,l)}i[r]=s}}}return!0}})}});function Qm(e,t){return Kqn([e],t),e}function Kqn(e,t){Hge()&&af("reload",i=>QXt(({oldExports:r})=>{if([...Object.values(r)].some(o=>e.includes(o)))return o=>(i(void 0),!0)})).read(t)}var LY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/hotReloadHelpers.js"(){ZXt(),xs()}});function Yqn(e,t,n){return{changes:e.changes.map(i=>new CC(i.original,i.modified,i.innerChanges?i.innerChanges.map(r=>Qqn(r,t,n)):void 0)),moves:e.moves,identical:e.identical,quitEarly:e.quitEarly}}function Qqn(e,t,n){let i=e.originalRange,r=e.modifiedRange;return i.startColumn===1&&r.startColumn===1&&(i.endColumn!==1||r.endColumn!==1)&&i.endColumn===t.getLineMaxColumn(i.endLineNumber)&&r.endColumn===n.getLineMaxColumn(r.endLineNumber)&&i.endLineNumber<t.getLineCount()&&r.endLineNumber<n.getLineCount()&&(i=i.setEndPosition(i.endLineNumber+1,1),r=r.setEndPosition(r.endLineNumber+1,1)),new Dy(i,r)}var pgt,ggt,Tae,mgt,g6e,TV,XXt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js"(){fr(),Ho(),Nt(),xs(),Vge(),Cw(),LY(),Sg(),HUt(),vT(),_ge(),wKt(),VUt(),as(),rr(),zC(),pgt=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},ggt=function(e,t){return function(n,i){t(n,i,e)}},Tae=class extends St{setActiveMovedText(t){this._activeMovedText.set(t,void 0)}constructor(t,n,i){super(),this.model=t,this._options=n,this._diffProviderFactoryService=i,this._isDiffUpToDate=mo(this,!1),this.isDiffUpToDate=this._isDiffUpToDate,this._diff=mo(this,void 0),this.diff=this._diff,this._unchangedRegions=mo(this,void 0),this.unchangedRegions=Fi(this,a=>this._options.hideUnchangedRegions.read(a)?this._unchangedRegions.read(a)?.regions??[]:(Al(l=>{for(const c of this._unchangedRegions.get()?.regions||[])c.collapseAll(l)}),[])),this.movedTextToCompare=mo(this,void 0),this._activeMovedText=mo(this,void 0),this._hoveredMovedText=mo(this,void 0),this.activeMovedText=Fi(this,a=>this.movedTextToCompare.read(a)??this._hoveredMovedText.read(a)??this._activeMovedText.read(a)),this._cancellationTokenSource=new bl,this._diffProvider=Fi(this,a=>{const l=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:this._options.diffAlgorithm.read(a)}),c=af("onDidChange",l.onDidChange);return{diffProvider:l,onChangeSignal:c}}),this._register(zi(()=>this._cancellationTokenSource.cancel()));const r=R7("contentChangedSignal"),o=this._register(new Gs(()=>r.trigger(void 0),200));this._register(Tr(a=>{const l=this._unchangedRegions.read(a);if(!l||l.regions.some(p=>p.isDragged.read(a)))return;const c=l.originalDecorationIds.map(p=>t.original.getDecorationRange(p)).map(p=>p?Ur.fromRangeInclusive(p):void 0),u=l.modifiedDecorationIds.map(p=>t.modified.getDecorationRange(p)).map(p=>p?Ur.fromRangeInclusive(p):void 0),d=l.regions.map((p,g)=>!c[g]||!u[g]?void 0:new TV(c[g].startLineNumber,u[g].startLineNumber,c[g].length,p.visibleLineCountTop.read(a),p.visibleLineCountBottom.read(a))).filter(Ex),h=[];let f=!1;for(const p of mHe(d,(g,m)=>g.getHiddenModifiedRange(a).endLineNumberExclusive===m.getHiddenModifiedRange(a).startLineNumber))if(p.length>1){f=!0;const g=p.reduce((v,y)=>v+y.lineCount,0),m=new TV(p[0].originalLineNumber,p[0].modifiedLineNumber,g,p[0].visibleLineCountTop.get(),p[p.length-1].visibleLineCountBottom.get());h.push(m)}else h.push(p[0]);if(f){const p=t.original.deltaDecorations(l.originalDecorationIds,h.map(m=>({range:m.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))),g=t.modified.deltaDecorations(l.modifiedDecorationIds,h.map(m=>({range:m.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})));Al(m=>{this._unchangedRegions.set({regions:h,originalDecorationIds:p,modifiedDecorationIds:g},m)})}}));const s=(a,l,c)=>{const u=TV.fromDiffs(a.changes,t.original.getLineCount(),t.modified.getLineCount(),this._options.hideUnchangedRegionsMinimumLineCount.read(c),this._options.hideUnchangedRegionsContextLineCount.read(c));let d;const h=this._unchangedRegions.get();if(h){const m=h.originalDecorationIds.map(w=>t.original.getDecorationRange(w)).map(w=>w?Ur.fromRangeInclusive(w):void 0),v=h.modifiedDecorationIds.map(w=>t.modified.getDecorationRange(w)).map(w=>w?Ur.fromRangeInclusive(w):void 0);let b=Wqn(h.regions.map((w,E)=>{if(!m[E]||!v[E])return;const A=m[E].length;return new TV(m[E].startLineNumber,v[E].startLineNumber,A,Math.min(w.visibleLineCountTop.get(),A),Math.min(w.visibleLineCountBottom.get(),A-w.visibleLineCountTop.get()))}).filter(Ex),(w,E)=>!E||w.modifiedLineNumber>=E.modifiedLineNumber+E.lineCount&&w.originalLineNumber>=E.originalLineNumber+E.lineCount).map(w=>new Zy(w.getHiddenOriginalRange(c),w.getHiddenModifiedRange(c)));b=Zy.clip(b,Ur.ofLength(1,t.original.getLineCount()),Ur.ofLength(1,t.modified.getLineCount())),d=Zy.inverse(b,t.original.getLineCount(),t.modified.getLineCount())}const f=[];if(d)for(const m of u){const v=d.filter(y=>y.original.intersectsStrict(m.originalUnchangedRange)&&y.modified.intersectsStrict(m.modifiedUnchangedRange));f.push(...m.setVisibleRanges(v,l))}else f.push(...u);const p=t.original.deltaDecorations(h?.originalDecorationIds||[],f.map(m=>({range:m.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))),g=t.modified.deltaDecorations(h?.modifiedDecorationIds||[],f.map(m=>({range:m.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})));this._unchangedRegions.set({regions:f,originalDecorationIds:p,modifiedDecorationIds:g},l)};this._register(t.modified.onDidChangeContent(a=>{if(this._diff.get()){const c=zI.fromModelContentChanges(a.changes);this._lastDiff,t.original,t.modified}this._isDiffUpToDate.set(!1,void 0),o.schedule()})),this._register(t.original.onDidChangeContent(a=>{if(this._diff.get()){const c=zI.fromModelContentChanges(a.changes);this._lastDiff,t.original,t.modified}this._isDiffUpToDate.set(!1,void 0),o.schedule()})),this._register(hm(async(a,l)=>{this._options.hideUnchangedRegionsMinimumLineCount.read(a),this._options.hideUnchangedRegionsContextLineCount.read(a),o.cancel(),r.read(a);const c=this._diffProvider.read(a);c.onChangeSignal.read(a),Qm(OHe,a),Qm($5e,a),this._isDiffUpToDate.set(!1,void 0);let u=[];l.add(t.original.onDidChangeContent(f=>{const p=zI.fromModelContentChanges(f.changes);u=ade(u,p)}));let d=[];l.add(t.modified.onDidChangeContent(f=>{const p=zI.fromModelContentChanges(f.changes);d=ade(d,p)}));let h=await c.diffProvider.computeDiff(t.original,t.modified,{ignoreTrimWhitespace:this._options.ignoreTrimWhitespace.read(a),maxComputationTimeMs:this._options.maxComputationTimeMs.read(a),computeMoves:this._options.showMoves.read(a)},this._cancellationTokenSource.token);this._cancellationTokenSource.token.isCancellationRequested||t.original.isDisposed()||t.modified.isDisposed()||(h=Yqn(h,t.original,t.modified),h=(t.original,t.modified,void 0)??h,h=(t.original,t.modified,void 0)??h,Al(f=>{s(h,f),this._lastDiff=h;const p=mgt.fromDiffResult(h);this._diff.set(p,f),this._isDiffUpToDate.set(!0,f);const g=this.movedTextToCompare.get();this.movedTextToCompare.set(g?this._lastDiff.moves.find(m=>m.lineRangeMapping.modified.intersect(g.lineRangeMapping.modified)):void 0,f)}))}))}ensureModifiedLineIsVisible(t,n,i){if(this.diff.get()?.mappings.length===0)return;const r=this._unchangedRegions.get()?.regions||[];for(const o of r)if(o.getHiddenModifiedRange(void 0).contains(t)){o.showModifiedLine(t,n,i);return}}ensureOriginalLineIsVisible(t,n,i){if(this.diff.get()?.mappings.length===0)return;const r=this._unchangedRegions.get()?.regions||[];for(const o of r)if(o.getHiddenOriginalRange(void 0).contains(t)){o.showOriginalLine(t,n,i);return}}async waitForDiff(){await Wqt(this.isDiffUpToDate,t=>t)}serializeState(){return{collapsedRegions:this._unchangedRegions.get()?.regions.map(n=>({range:n.getHiddenModifiedRange(void 0).serialize()}))}}restoreSerializedState(t){const n=t.collapsedRegions?.map(r=>Ur.deserialize(r.range)),i=this._unchangedRegions.get();!i||!n||Al(r=>{for(const o of i.regions)for(const s of n)if(o.modifiedUnchangedRange.intersect(s)){o.setHiddenModifiedRange(s,r);break}})}},Tae=pgt([ggt(2,d9)],Tae),mgt=class JXt{static fromDiffResult(t){return new JXt(t.changes.map(n=>new g6e(n)),t.moves||[],t.identical,t.quitEarly)}constructor(t,n,i,r){this.mappings=t,this.movedTexts=n,this.identical=i,this.quitEarly=r}},g6e=class{constructor(e){this.lineRangeMapping=e}},TV=class kae{static fromDiffs(t,n,i,r,o){const s=CC.inverse(t,n,i),a=[];for(const l of s){let c=l.original.startLineNumber,u=l.modified.startLineNumber,d=l.original.length;const h=c===1&&u===1,f=c+d===n+1&&u+d===i+1;(h||f)&&d>=o+r?(h&&!f&&(d-=o),f&&!h&&(c+=o,u+=o,d-=o),a.push(new kae(c,u,d,0,0))):d>=o*2+r&&(c+=o,u+=o,d-=o*2,a.push(new kae(c,u,d,0,0)))}return a}get originalUnchangedRange(){return Ur.ofLength(this.originalLineNumber,this.lineCount)}get modifiedUnchangedRange(){return Ur.ofLength(this.modifiedLineNumber,this.lineCount)}constructor(t,n,i,r,o){this.originalLineNumber=t,this.modifiedLineNumber=n,this.lineCount=i,this._visibleLineCountTop=mo(this,0),this.visibleLineCountTop=this._visibleLineCountTop,this._visibleLineCountBottom=mo(this,0),this.visibleLineCountBottom=this._visibleLineCountBottom,this._shouldHideControls=Fi(this,l=>this.visibleLineCountTop.read(l)+this.visibleLineCountBottom.read(l)===this.lineCount&&!this.isDragged.read(l)),this.isDragged=mo(this,void 0);const s=Math.max(Math.min(r,this.lineCount),0),a=Math.max(Math.min(o,this.lineCount-r),0);Pst(r===s),Pst(o===a),this._visibleLineCountTop.set(s,void 0),this._visibleLineCountBottom.set(a,void 0)}setVisibleRanges(t,n){const i=[],r=new sL(t.map(l=>l.modified)).subtractFrom(this.modifiedUnchangedRange);let o=this.originalLineNumber,s=this.modifiedLineNumber;const a=this.modifiedLineNumber+this.lineCount;if(r.ranges.length===0)this.showAll(n),i.push(this);else{let l=0;for(const c of r.ranges){const u=l===r.ranges.length-1;l++;const d=(u?a:c.endLineNumberExclusive)-s,h=new kae(o,s,d,0,0);h.setHiddenModifiedRange(c,n),i.push(h),o=h.originalUnchangedRange.endLineNumberExclusive,s=h.modifiedUnchangedRange.endLineNumberExclusive}}return i}shouldHideControls(t){return this._shouldHideControls.read(t)}getHiddenOriginalRange(t){return Ur.ofLength(this.originalLineNumber+this._visibleLineCountTop.read(t),this.lineCount-this._visibleLineCountTop.read(t)-this._visibleLineCountBottom.read(t))}getHiddenModifiedRange(t){return Ur.ofLength(this.modifiedLineNumber+this._visibleLineCountTop.read(t),this.lineCount-this._visibleLineCountTop.read(t)-this._visibleLineCountBottom.read(t))}setHiddenModifiedRange(t,n){const i=t.startLineNumber-this.modifiedLineNumber,r=this.modifiedLineNumber+this.lineCount-t.endLineNumberExclusive;this.setState(i,r,n)}getMaxVisibleLineCountTop(){return this.lineCount-this._visibleLineCountBottom.get()}getMaxVisibleLineCountBottom(){return this.lineCount-this._visibleLineCountTop.get()}showMoreAbove(t=10,n){const i=this.getMaxVisibleLineCountTop();this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+t,i),n)}showMoreBelow(t=10,n){const i=this.lineCount-this._visibleLineCountTop.get();this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+t,i),n)}showAll(t){this._visibleLineCountBottom.set(this.lineCount-this._visibleLineCountTop.get(),t)}showModifiedLine(t,n,i){const r=t+1-(this.modifiedLineNumber+this._visibleLineCountTop.get()),o=this.modifiedLineNumber-this._visibleLineCountBottom.get()+this.lineCount-t;n===0&&r<o||n===1?this._visibleLineCountTop.set(this._visibleLineCountTop.get()+r,i):this._visibleLineCountBottom.set(this._visibleLineCountBottom.get()+o,i)}showOriginalLine(t,n,i){const r=t-this.originalLineNumber,o=this.originalLineNumber+this.lineCount-t;n===0&&r<o||n===1?this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+o-r,this.getMaxVisibleLineCountTop()),i):this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+r-o,this.getMaxVisibleLineCountBottom()),i)}collapseAll(t){this._visibleLineCountTop.set(0,t),this._visibleLineCountBottom.set(0,t)}setState(t,n,i){t=Math.max(Math.min(t,this.lineCount),0),n=Math.max(Math.min(n,this.lineCount-t),0),this._visibleLineCountTop.set(t,i),this._visibleLineCountBottom.set(n,i)}}}}),eJt,Zqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js"(){Fn(),wd(),ia(),Nt(),Xr(),Ra(),bn(),eJt=class extends St{get visibility(){return this._visibility}set visibility(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")}constructor(e,t,n,i,r,o,s,a,l){super(),this._getViewZoneId=e,this._marginDomNode=t,this._modifiedEditor=n,this._diff=i,this._editor=r,this._viewLineCounts=o,this._originalTextModel=s,this._contextMenuService=a,this._clipboardService=l,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=lr.asClassName(An.lightBulb)+" lightbulb-glyph",this._diffActions.style.position="absolute";const c=this._modifiedEditor.getOption(67);this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=`${c}px`,this._diffActions.style.lineHeight=`${c}px`,this._marginDomNode.appendChild(this._diffActions);let u=0;const d=n.getOption(128)&&!Z_,h=(f,p)=>{this._contextMenuService.showContextMenu({domForShadowRoot:d?n.getDomNode()??void 0:void 0,getAnchor:()=>({x:f,y:p}),getActions:()=>{const g=[],m=i.modified.isEmpty;return g.push(new cm("diff.clipboard.copyDeletedContent",m?i.original.length>1?R("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):R("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):i.original.length>1?R("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):R("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,async()=>{const y=this._originalTextModel.getValueInRange(i.original.toExclusiveRange());await this._clipboardService.writeText(y)})),i.original.length>1&&g.push(new cm("diff.clipboard.copyDeletedLineContent",m?R("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",i.original.startLineNumber+u):R("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",i.original.startLineNumber+u),void 0,!0,async()=>{let y=this._originalTextModel.getLineContent(i.original.startLineNumber+u);y===""&&(y=this._originalTextModel.getEndOfLineSequence()===0?`
`:`\r
`),await this._clipboardService.writeText(y)})),n.getOption(92)||g.push(new cm("diff.inline.revertChange",R("diff.inline.revertChange.label","Revert this change"),void 0,!0,async()=>{this._editor.revert(this._diff)})),g},autoSelectFirstItem:!0})};this._register(Il(this._diffActions,"mousedown",f=>{if(!f.leftButton)return;const{top:p,height:g}=_c(this._diffActions),m=Math.floor(c/3);f.preventDefault(),h(f.posx,p+g+m)})),this._register(n.onMouseMove(f=>{(f.target.type===8||f.target.type===5)&&f.target.detail.viewZoneId===this._getViewZoneId()?(u=this._updateLightBulbPosition(this._marginDomNode,f.event.browserEvent.y,c),this.visibility=!0):this.visibility=!1})),this._register(n.onMouseDown(f=>{f.event.leftButton&&(f.target.type===8||f.target.type===5)&&f.target.detail.viewZoneId===this._getViewZoneId()&&(f.event.preventDefault(),u=this._updateLightBulbPosition(this._marginDomNode,f.event.browserEvent.y,c),h(f.event.posx,f.event.posy+c))}))}_updateLightBulbPosition(e,t,n){const{top:i}=_c(e),r=t-i,o=Math.floor(r/n),s=o*n;if(this._diffActions.style.top=`${s}px`,this._viewLineCounts){let a=0;for(let l=0;l<this._viewLineCounts.length;l++)if(a+=this._viewLineCounts[l],o<a)return l}return o}}}});function Xqn(e,t,n,i){yh(i,t.fontInfo);const r=n.length>0,o=new Z2(1e4);let s=0,a=0;const l=[];for(let h=0;h<e.lineTokens.length;h++){const f=h+1,p=e.lineTokens[h],g=e.lineBreakData[h],m=sb.filter(n,f,1,Number.MAX_SAFE_INTEGER);if(g){let v=0;for(const y of g.breakOffsets){const b=p.sliceAndInflate(v,y,0);s=Math.max(s,vgt(a,b,sb.extractWrapped(m,v,y),r,e.mightContainNonBasicASCII,e.mightContainRTL,t,o)),a++,v=y}l.push(g.breakOffsets.length)}else l.push(1),s=Math.max(s,vgt(a,p,m,r,e.mightContainNonBasicASCII,e.mightContainRTL,t,o)),a++}s+=t.scrollBeyondLastColumn;const c=o.build(),u=m6e?m6e.createHTML(c):c;i.innerHTML=u;const d=s*t.typicalHalfwidthCharacterWidth;return{heightInLines:a,minWidthInPx:d,viewLineCounts:l}}function vgt(e,t,n,i,r,o,s,a){a.appendString('<div class="view-line'),i||a.appendString(" char-delete"),a.appendString('" style="top:'),a.appendString(String(e*s.lineHeight)),a.appendString('px;width:1000000px;">');const l=t.getLineContent(),c=nw.isBasicASCII(l,r),u=nw.containsRTL(l,c,o),d=eY(new hT(s.fontInfo.isMonospace&&!s.disableMonospaceOptimizations,s.fontInfo.canUseHalfwidthRightwardsArrow,l,!1,c,u,0,t,n,s.tabSize,0,s.fontInfo.spaceWidth,s.fontInfo.middotWidth,s.fontInfo.wsmiddotWidth,s.stopRenderingLineAfter,s.renderWhitespace,s.renderControlCharacters,s.fontLigatures!==QR.OFF,null),a);return a.appendString("</div>"),d.characterMapping.getHorizontalOffset(d.characterMapping.length)}var m6e,tJt,nJt,Jqn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js"(){pT(),xb(),Su(),TN(),E7(),X2(),KC(),m6e=fT("diffEditorWidget",{createHTML:e=>e}),tJt=class{constructor(e,t,n,i){this.lineTokens=e,this.lineBreakData=t,this.mightContainNonBasicASCII=n,this.mightContainRTL=i}},nJt=class iJt{static fromEditor(t){const n=t.getOptions(),i=n.get(50),r=n.get(146);return new iJt(t.getModel()?.getOptions().tabSize||0,i,n.get(33),i.typicalHalfwidthCharacterWidth,n.get(105),n.get(67),r.decorationsWidth,n.get(118),n.get(100),n.get(95),n.get(51))}constructor(t,n,i,r,o,s,a,l,c,u,d){this.tabSize=t,this.fontInfo=n,this.disableMonospaceOptimizations=i,this.typicalHalfwidthCharacterWidth=r,this.scrollBeyondLastColumn=o,this.lineHeight=s,this.lineDecorationsWidth=a,this.stopRenderingLineAfter=l,this.renderWhitespace=c,this.renderControlCharacters=u,this.fontLigatures=d}}}});function ygt(e,t,n,i,r,o){const s=new Xx(bgt(e,i)),a=new Xx(bgt(t,r)),l=e.getOption(67),c=t.getOption(67),u=[];let d=0,h=0;function f(p,g){for(;;){let m=s.peek(),v=a.peek();if(m&&m.lineNumber>=p&&(m=void 0),v&&v.lineNumber>=g&&(v=void 0),!m&&!v)break;const y=m?m.lineNumber-d:Number.MAX_VALUE,b=v?v.lineNumber-h:Number.MAX_VALUE;y<b?(s.dequeue(),v={lineNumber:m.lineNumber-d+h,heightInPx:0}):y>b?(a.dequeue(),m={lineNumber:v.lineNumber-h+d,heightInPx:0}):(s.dequeue(),a.dequeue()),u.push({originalRange:Ur.ofLength(m.lineNumber,1),modifiedRange:Ur.ofLength(v.lineNumber,1),originalHeightInPx:l+m.heightInPx,modifiedHeightInPx:c+v.heightInPx,diff:void 0})}}for(const p of n){let g=function(w,E,A=!1){if(w<b||E<y)return;if(v)v=!1;else if(!A&&(w===b||E===y))return;const D=new Ur(b,w),T=new Ur(y,E);if(D.isEmpty&&T.isEmpty)return;const M=s.takeWhile(F=>F.lineNumber<w)?.reduce((F,N)=>F+N.heightInPx,0)??0,P=a.takeWhile(F=>F.lineNumber<E)?.reduce((F,N)=>F+N.heightInPx,0)??0;u.push({originalRange:D,modifiedRange:T,originalHeightInPx:D.length*l+M,modifiedHeightInPx:T.length*c+P,diff:p.lineRangeMapping}),b=w,y=E};const m=p.lineRangeMapping;f(m.original.startLineNumber,m.modified.startLineNumber);let v=!0,y=m.modified.startLineNumber,b=m.original.startLineNumber;if(o)for(const w of m.innerChanges||[]){w.originalRange.startColumn>1&&w.modifiedRange.startColumn>1&&g(w.originalRange.startLineNumber,w.modifiedRange.startLineNumber);const E=e.getModel(),A=w.originalRange.endLineNumber<=E.getLineCount()?E.getLineMaxColumn(w.originalRange.endLineNumber):Number.MAX_SAFE_INTEGER;w.originalRange.endColumn<A&&g(w.originalRange.endLineNumber,w.modifiedRange.endLineNumber)}g(m.original.endLineNumberExclusive,m.modified.endLineNumberExclusive,!0),d=m.original.endLineNumberExclusive,h=m.modified.endLineNumberExclusive}return f(Number.MAX_VALUE,Number.MAX_VALUE),u}function bgt(e,t){const n=[],i=[],r=e.getOption(147).wrappingColumn!==-1,o=e._getViewModel().coordinatesConverter,s=e.getOption(67);if(r)for(let l=1;l<=e.getModel().getLineCount();l++){const c=o.getModelLineViewLineCount(l);c>1&&i.push({lineNumber:l,heightInPx:s*(c-1)})}for(const l of e.getWhitespaces()){if(t.has(l.id))continue;const c=l.afterLineNumber===0?0:o.convertViewPositionToModelPosition(new mt(l.afterLineNumber,1)).lineNumber;n.push({lineNumber:c,heightInPx:l.height})}return jqn(n,i,l=>l.lineNumber,(l,c)=>({lineNumber:l.lineNumber,heightInPx:l.heightInPx+c.heightInPx}))}function WUe(e){return e.innerChanges?e.innerChanges.every(t=>_gt(t.modifiedRange)&&_gt(t.originalRange)||t.originalRange.equalsRange(new Re(1,1,1,1))):!1}function _gt(e){return e.startLineNumber===e.endLineNumber}var wgt,$Se,Iae,UUe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js"(){Fn(),rr(),fr(),ia(),Nt(),xs(),Ra(),as(),xb(),aF(),XXt(),Zqn(),Jqn(),Cw(),Sg(),Hi(),KC(),zN(),xg(),Dn(),wgt=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},$Se=function(e,t){return function(n,i){t(n,i,e)}},Iae=class extends St{constructor(t,n,i,r,o,s,a,l,c,u){super(),this._targetWindow=t,this._editors=n,this._diffModel=i,this._options=r,this._diffEditorWidget=o,this._canIgnoreViewZoneUpdateEvent=s,this._origViewZonesToIgnore=a,this._modViewZonesToIgnore=l,this._clipboardService=c,this._contextMenuService=u,this._originalTopPadding=mo(this,0),this._originalScrollOffset=mo(this,0),this._originalScrollOffsetAnimated=sgt(this._targetWindow,this._originalScrollOffset,this._store),this._modifiedTopPadding=mo(this,0),this._modifiedScrollOffset=mo(this,0),this._modifiedScrollOffsetAnimated=sgt(this._targetWindow,this._modifiedScrollOffset,this._store);const d=mo("invalidateAlignmentsState",0),h=this._register(new Gs(()=>{d.set(d.get()+1,void 0)},0));this._register(this._editors.original.onDidChangeViewZones(b=>{this._canIgnoreViewZoneUpdateEvent()||h.schedule()})),this._register(this._editors.modified.onDidChangeViewZones(b=>{this._canIgnoreViewZoneUpdateEvent()||h.schedule()})),this._register(this._editors.original.onDidChangeConfiguration(b=>{(b.hasChanged(147)||b.hasChanged(67))&&h.schedule()})),this._register(this._editors.modified.onDidChangeConfiguration(b=>{(b.hasChanged(147)||b.hasChanged(67))&&h.schedule()}));const f=this._diffModel.map(b=>b?Bs(this,b.model.original.onDidChangeTokens,()=>b.model.original.tokenization.backgroundTokenizationState===2):void 0).map((b,w)=>b?.read(w)),p=Fi(b=>{const w=this._diffModel.read(b),E=w?.diff.read(b);if(!w||!E)return null;d.read(b);const D=this._options.renderSideBySide.read(b);return ygt(this._editors.original,this._editors.modified,E.mappings,this._origViewZonesToIgnore,this._modViewZonesToIgnore,D)}),g=Fi(b=>{const w=this._diffModel.read(b)?.movedTextToCompare.read(b);if(!w)return null;d.read(b);const E=w.changes.map(A=>new g6e(A));return ygt(this._editors.original,this._editors.modified,E,this._origViewZonesToIgnore,this._modViewZonesToIgnore,!0)});function m(){const b=document.createElement("div");return b.className="diagonal-fill",b}const v=this._register(new Jt);this.viewZones=FN(this,(b,w)=>{v.clear();const E=p.read(b)||[],A=[],D=[],T=this._modifiedTopPadding.read(b);T>0&&D.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:T,showInHiddenAreas:!0,suppressMouseDown:!0});const M=this._originalTopPadding.read(b);M>0&&A.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:M,showInHiddenAreas:!0,suppressMouseDown:!0});const P=this._options.renderSideBySide.read(b),F=P?void 0:this._editors.modified._getViewModel()?.createLineBreaksComputer();if(F){const q=this._editors.original.getModel();for(const le of E)if(le.diff)for(let Y=le.originalRange.startLineNumber;Y<le.originalRange.endLineNumberExclusive;Y++){if(Y>q.getLineCount())return{orig:A,mod:D};F?.addRequest(q.getLineContent(Y),null,null)}}const N=F?.finalize()??[];let j=0;const W=this._editors.modified.getOption(67),J=this._diffModel.read(b)?.movedTextToCompare.read(b),ee=this._editors.original.getModel()?.mightContainNonBasicASCII()??!1,Q=this._editors.original.getModel()?.mightContainRTL()??!1,H=nJt.fromEditor(this._editors.modified);for(const q of E)if(q.diff&&!P&&(!this._options.useTrueInlineDiffRendering.read(b)||!WUe(q.diff))){if(!q.originalRange.isEmpty){f.read(b);const Y=document.createElement("div");Y.classList.add("view-lines","line-delete","monaco-mouse-cursor-text");const G=this._editors.original.getModel();if(q.originalRange.endLineNumberExclusive-1>G.getLineCount())return{orig:A,mod:D};const pe=new tJt(q.originalRange.mapToLineArray(de=>G.tokenization.getLineTokens(de)),q.originalRange.mapToLineArray(de=>N[j++]),ee,Q),U=[];for(const de of q.diff.innerChanges||[])U.push(new Z6(de.originalRange.delta(-(q.diff.original.startLineNumber-1)),a2.className,0));const K=Xqn(pe,H,U,Y),ie=document.createElement("div");if(ie.className="inline-deleted-margin-view-zone",yh(ie,H.fontInfo),this._options.renderIndicators.read(b))for(let de=0;de<K.heightInLines;de++){const oe=document.createElement("div");oe.className=`delete-sign ${lr.asClassName(h6e)}`,oe.setAttribute("style",`position:absolute;top:${de*W}px;width:${H.lineDecorationsWidth}px;height:${W}px;right:0;`),ie.appendChild(oe)}let ce;v.add(new eJt(()=>RI(ce),ie,this._editors.modified,q.diff,this._diffEditorWidget,K.viewLineCounts,this._editors.original.getModel(),this._contextMenuService,this._clipboardService));for(let de=0;de<K.viewLineCounts.length;de++){const oe=K.viewLineCounts[de];oe>1&&A.push({afterLineNumber:q.originalRange.startLineNumber+de,domNode:m(),heightInPx:(oe-1)*W,showInHiddenAreas:!0,suppressMouseDown:!0})}D.push({afterLineNumber:q.modifiedRange.startLineNumber-1,domNode:Y,heightInPx:K.heightInLines*W,minWidthInPx:K.minWidthInPx,marginDomNode:ie,setZoneId(de){ce=de},showInHiddenAreas:!0,suppressMouseDown:!0})}const le=document.createElement("div");le.className="gutter-delete",A.push({afterLineNumber:q.originalRange.endLineNumberExclusive-1,domNode:m(),heightInPx:q.modifiedHeightInPx,marginDomNode:le,showInHiddenAreas:!0,suppressMouseDown:!0})}else{const le=q.modifiedHeightInPx-q.originalHeightInPx;if(le>0){if(J?.lineRangeMapping.original.delta(-1).deltaLength(2).contains(q.originalRange.endLineNumberExclusive-1))continue;A.push({afterLineNumber:q.originalRange.endLineNumberExclusive-1,domNode:m(),heightInPx:le,showInHiddenAreas:!0,suppressMouseDown:!0})}else{let Y=function(){const pe=document.createElement("div");return pe.className="arrow-revert-change "+lr.asClassName(An.arrowRight),w.add(qt(pe,"mousedown",U=>U.stopPropagation())),w.add(qt(pe,"click",U=>{U.stopPropagation(),o.revert(q.diff)})),In("div",{},pe)};if(J?.lineRangeMapping.modified.delta(-1).deltaLength(2).contains(q.modifiedRange.endLineNumberExclusive-1))continue;let G;q.diff&&q.diff.modified.isEmpty&&this._options.shouldRenderOldRevertArrows.read(b)&&(G=Y()),D.push({afterLineNumber:q.modifiedRange.endLineNumberExclusive-1,domNode:m(),heightInPx:-le,marginDomNode:G,showInHiddenAreas:!0,suppressMouseDown:!0})}}for(const q of g.read(b)??[]){if(!J?.lineRangeMapping.original.intersect(q.originalRange)||!J?.lineRangeMapping.modified.intersect(q.modifiedRange))continue;const le=q.modifiedHeightInPx-q.originalHeightInPx;le>0?A.push({afterLineNumber:q.originalRange.endLineNumberExclusive-1,domNode:m(),heightInPx:le,showInHiddenAreas:!0,suppressMouseDown:!0}):D.push({afterLineNumber:q.modifiedRange.endLineNumberExclusive-1,domNode:m(),heightInPx:-le,showInHiddenAreas:!0,suppressMouseDown:!0})}return{orig:A,mod:D}});let y=!1;this._register(this._editors.original.onDidScrollChange(b=>{b.scrollLeftChanged&&!y&&(y=!0,this._editors.modified.setScrollLeft(b.scrollLeft),y=!1)})),this._register(this._editors.modified.onDidScrollChange(b=>{b.scrollLeftChanged&&!y&&(y=!0,this._editors.original.setScrollLeft(b.scrollLeft),y=!1)})),this._originalScrollTop=Bs(this._editors.original.onDidScrollChange,()=>this._editors.original.getScrollTop()),this._modifiedScrollTop=Bs(this._editors.modified.onDidScrollChange,()=>this._editors.modified.getScrollTop()),this._register(Tr(b=>{const w=this._originalScrollTop.read(b)-(this._originalScrollOffsetAnimated.get()-this._modifiedScrollOffsetAnimated.read(b))-(this._originalTopPadding.get()-this._modifiedTopPadding.read(b));w!==this._editors.modified.getScrollTop()&&this._editors.modified.setScrollTop(w,1)})),this._register(Tr(b=>{const w=this._modifiedScrollTop.read(b)-(this._modifiedScrollOffsetAnimated.get()-this._originalScrollOffsetAnimated.read(b))-(this._modifiedTopPadding.get()-this._originalTopPadding.read(b));w!==this._editors.original.getScrollTop()&&this._editors.original.setScrollTop(w,1)})),this._register(Tr(b=>{const w=this._diffModel.read(b)?.movedTextToCompare.read(b);let E=0;if(w){const A=this._editors.original.getTopForLineNumber(w.lineRangeMapping.original.startLineNumber,!0)-this._originalTopPadding.get();E=this._editors.modified.getTopForLineNumber(w.lineRangeMapping.modified.startLineNumber,!0)-this._modifiedTopPadding.get()-A}E>0?(this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(E,void 0)):E<0?(this._modifiedTopPadding.set(-E,void 0),this._originalTopPadding.set(0,void 0)):setTimeout(()=>{this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(0,void 0)},400),this._editors.modified.hasTextFocus()?this._originalScrollOffset.set(this._modifiedScrollOffset.get()-E,void 0,!0):this._modifiedScrollOffset.set(this._originalScrollOffset.get()+E,void 0,!0)}))}},Iae=wgt([$Se(8,tE),$Se(9,dm)],Iae)}}),h$,Cgt,qSe,rJt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js"(){var e;Fn(),ww(),wd(),rr(),Y0(),ia(),Nt(),xs(),Ra(),Cw(),K0(),bn(),h$=(e=class extends St{constructor(n,i,r,o,s){super(),this._rootElement=n,this._diffModel=i,this._originalEditorLayoutInfo=r,this._modifiedEditorLayoutInfo=o,this._editors=s,this._originalScrollTop=Bs(this,this._editors.original.onDidScrollChange,()=>this._editors.original.getScrollTop()),this._modifiedScrollTop=Bs(this,this._editors.modified.onDidScrollChange,()=>this._editors.modified.getScrollTop()),this._viewZonesChanged=af("onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this.width=mo(this,0),this._modifiedViewZonesChangedSignal=af("modified.onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=af("original.onDidChangeViewZones",this._editors.original.onDidChangeViewZones),this._state=FN(this,(d,h)=>{this._element.replaceChildren();const f=this._diffModel.read(d),p=f?.diff.read(d)?.movedTexts;if(!p||p.length===0){this.width.set(0,void 0);return}this._viewZonesChanged.read(d);const g=this._originalEditorLayoutInfo.read(d),m=this._modifiedEditorLayoutInfo.read(d);if(!g||!m){this.width.set(0,void 0);return}this._modifiedViewZonesChangedSignal.read(d),this._originalViewZonesChangedSignal.read(d);const v=p.map(T=>{function M(H,q){const le=q.getTopForLineNumber(H.startLineNumber,!0),Y=q.getTopForLineNumber(H.endLineNumberExclusive,!0);return(le+Y)/2}const P=M(T.lineRangeMapping.original,this._editors.original),F=this._originalScrollTop.read(d),N=M(T.lineRangeMapping.modified,this._editors.modified),j=this._modifiedScrollTop.read(d),W=P-F,J=N-j,ee=Math.min(P,N),Q=Math.max(P,N);return{range:new Xo(ee,Q),from:W,to:J,fromWithoutScroll:P,toWithoutScroll:N,move:T}});v.sort(I7n(ug(T=>T.fromWithoutScroll>T.toWithoutScroll,vWt),ug(T=>T.fromWithoutScroll>T.toWithoutScroll?T.fromWithoutScroll:-T.toWithoutScroll,Yy)));const y=Cgt.compute(v.map(T=>T.range)),b=10,w=g.verticalScrollbarWidth,E=(y.getTrackCount()-1)*10+b*2,A=w+E+(m.contentLeft-e.movedCodeBlockPadding);let D=0;for(const T of v){const M=y.getTrack(D),P=w+b+M*10,F=15,N=15,j=A,W=m.glyphMarginWidth+m.lineNumbersWidth,J=18,ee=document.createElementNS("http://www.w3.org/2000/svg","rect");ee.classList.add("arrow-rectangle"),ee.setAttribute("x",`${j-W}`),ee.setAttribute("y",`${T.to-J/2}`),ee.setAttribute("width",`${W}`),ee.setAttribute("height",`${J}`),this._element.appendChild(ee);const Q=document.createElementNS("http://www.w3.org/2000/svg","g"),H=document.createElementNS("http://www.w3.org/2000/svg","path");H.setAttribute("d",`M 0 ${T.from} L ${P} ${T.from} L ${P} ${T.to} L ${j-N} ${T.to}`),H.setAttribute("fill","none"),Q.appendChild(H);const q=document.createElementNS("http://www.w3.org/2000/svg","polygon");q.classList.add("arrow"),h.add(Tr(le=>{H.classList.toggle("currentMove",T.move===f.activeMovedText.read(le)),q.classList.toggle("currentMove",T.move===f.activeMovedText.read(le))})),q.setAttribute("points",`${j-N},${T.to-F/2} ${j},${T.to} ${j-N},${T.to+F/2}`),Q.appendChild(q),this._element.appendChild(Q),D++}this.width.set(E,void 0)}),this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("class","moved-blocks-lines"),this._rootElement.appendChild(this._element),this._register(zi(()=>this._element.remove())),this._register(Tr(d=>{const h=this._originalEditorLayoutInfo.read(d),f=this._modifiedEditorLayoutInfo.read(d);!h||!f||(this._element.style.left=`${h.width-h.verticalScrollbarWidth}px`,this._element.style.height=`${h.height}px`,this._element.style.width=`${h.verticalScrollbarWidth+h.contentLeft-e.movedCodeBlockPadding+this.width.read(d)}px`)})),this._register(F7(this._state));const a=Fi(d=>{const f=this._diffModel.read(d)?.diff.read(d);return f?f.movedTexts.map(p=>({move:p,original:new FO(Uy(p.lineRangeMapping.original.startLineNumber-1),18),modified:new FO(Uy(p.lineRangeMapping.modified.startLineNumber-1),18)})):[]});this._register(Nde(this._editors.original,a.map(d=>d.map(h=>h.original)))),this._register(Nde(this._editors.modified,a.map(d=>d.map(h=>h.modified)))),this._register(hm((d,h)=>{const f=a.read(d);for(const p of f)h.add(new qSe(this._editors.original,p.original,p.move,"original",this._diffModel.get())),h.add(new qSe(this._editors.modified,p.modified,p.move,"modified",this._diffModel.get()))}));const l=af("original.onDidFocusEditorWidget",d=>this._editors.original.onDidFocusEditorWidget(()=>setTimeout(()=>d(void 0),0))),c=af("modified.onDidFocusEditorWidget",d=>this._editors.modified.onDidFocusEditorWidget(()=>setTimeout(()=>d(void 0),0)));let u="modified";this._register(wY({createEmptyChangeSummary:()=>{},handleChange:(d,h)=>(d.didChange(l)&&(u="original"),d.didChange(c)&&(u="modified"),!0)},d=>{l.read(d),c.read(d);const h=this._diffModel.read(d);if(!h)return;const f=h.diff.read(d);let p;if(f&&u==="original"){const g=this._editors.originalCursor.read(d);g&&(p=f.movedTexts.find(m=>m.lineRangeMapping.original.contains(g.lineNumber)))}if(f&&u==="modified"){const g=this._editors.modifiedCursor.read(d);g&&(p=f.movedTexts.find(m=>m.lineRangeMapping.modified.contains(g.lineNumber)))}p!==h.movedTextToCompare.get()&&h.movedTextToCompare.set(void 0,void 0),h.setActiveMovedText(p)}))}},e.movedCodeBlockPadding=4,e),Cgt=class oJt{static compute(n){const i=[],r=[];for(const o of n){let s=i.findIndex(a=>!a.intersectsStrict(o));s===-1&&(i.length>=6?s=zjn(i,ug(l=>l.intersectWithRangeLength(o),Yy)):(s=i.length,i.push(new TUt))),i[s].addRange(o),r.push(s)}return new oJt(i.length,r)}constructor(n,i){this._trackCount=n,this.trackPerLineIdx=i}getTrack(n){return this.trackPerLineIdx[n]}getTrackCount(){return this._trackCount}},qSe=class extends Pde{constructor(t,n,i,r,o){const s=Co("div.diff-hidden-lines-widget");super(t,n,s.root),this._editor=t,this._move=i,this._kind=r,this._diffModel=o,this._nodes=Co("div.diff-moved-code-block",{style:{marginRight:"4px"}},[Co("div.text-content@textContent"),Co("div.action-bar@actionBar")]),s.root.appendChild(this._nodes.root);const a=Bs(this._editor.onDidLayoutChange,()=>this._editor.getLayoutInfo());this._register(HD(this._nodes.root,{paddingRight:a.map(h=>h.verticalScrollbarWidth)}));let l;i.changes.length>0?l=this._kind==="original"?R("codeMovedToWithChanges","Code moved with changes to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):R("codeMovedFromWithChanges","Code moved with changes from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1):l=this._kind==="original"?R("codeMovedTo","Code moved to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):R("codeMovedFrom","Code moved from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1);const c=this._register(new Dv(this._nodes.actionBar,{highlightToggledItems:!0})),u=new cm("",l,"",!1);c.push(u,{icon:!1,label:!0});const d=new cm("","Compare",lr.asClassName(An.compareChanges),!0,()=>{this._editor.focus(),this._diffModel.movedTextToCompare.set(this._diffModel.movedTextToCompare.get()===i?void 0:this._move,void 0)});this._register(Tr(h=>{const f=this._diffModel.movedTextToCompare.read(h)===i;d.checked=f})),c.push(d,{icon:!1,label:!0})}}}}),sJt,eGn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/components/diffEditorDecorations.js"(){Nt(),xs(),UUe(),rJt(),aF(),Cw(),sJt=class extends St{constructor(e,t,n,i){super(),this._editors=e,this._diffModel=t,this._options=n,this._decorations=Fi(this,r=>{const o=this._diffModel.read(r),s=o?.diff.read(r);if(!s)return null;const a=this._diffModel.read(r).movedTextToCompare.read(r),l=this._options.renderIndicators.read(r),c=this._options.showEmptyDecorations.read(r),u=[],d=[];if(!a)for(const f of s.mappings)if(f.lineRangeMapping.original.isEmpty||u.push({range:f.lineRangeMapping.original.toInclusiveRange(),options:l?u9:p6e}),f.lineRangeMapping.modified.isEmpty||d.push({range:f.lineRangeMapping.modified.toInclusiveRange(),options:l?pG:f6e}),f.lineRangeMapping.modified.isEmpty||f.lineRangeMapping.original.isEmpty)f.lineRangeMapping.original.isEmpty||u.push({range:f.lineRangeMapping.original.toInclusiveRange(),options:jge}),f.lineRangeMapping.modified.isEmpty||d.push({range:f.lineRangeMapping.modified.toInclusiveRange(),options:Fge});else{const p=this._options.useTrueInlineDiffRendering.read(r)&&WUe(f.lineRangeMapping);for(const g of f.lineRangeMapping.innerChanges||[])if(f.lineRangeMapping.original.contains(g.originalRange.startLineNumber)&&u.push({range:g.originalRange,options:g.originalRange.isEmpty()&&c?zge:a2}),f.lineRangeMapping.modified.contains(g.modifiedRange.startLineNumber)&&d.push({range:g.modifiedRange,options:g.modifiedRange.isEmpty()&&c&&!p?Bge:gG}),p){const m=o.model.original.getValueInRange(g.originalRange);d.push({range:g.modifiedRange,options:{description:"deleted-text",before:{content:m,inlineClassName:"inline-deleted-text"},zIndex:1e5,showIfCollapsed:!0}})}}if(a)for(const f of a.changes){const p=f.original.toInclusiveRange();p&&u.push({range:p,options:l?u9:p6e});const g=f.modified.toInclusiveRange();g&&d.push({range:g,options:l?pG:f6e});for(const m of f.innerChanges||[])u.push({range:m.originalRange,options:a2}),d.push({range:m.modifiedRange,options:gG})}const h=this._diffModel.read(r).activeMovedText.read(r);for(const f of s.movedTexts)u.push({range:f.lineRangeMapping.original.toInclusiveRange(),options:{description:"moved",blockClassName:"movedOriginal"+(f===h?" currentMove":""),blockPadding:[h$.movedCodeBlockPadding,0,h$.movedCodeBlockPadding,h$.movedCodeBlockPadding]}}),d.push({range:f.lineRangeMapping.modified.toInclusiveRange(),options:{description:"moved",blockClassName:"movedModified"+(f===h?" currentMove":""),blockPadding:[4,0,4,4]}});return{originalDecorations:u,modifiedDecorations:d}}),this._register(Lde(this._editors.original,this._decorations.map(r=>r?.originalDecorations||[]))),this._register(Lde(this._editors.modified,this._decorations.map(r=>r?.modifiedDecorations||[])))}}}}),aJt,$Ue,lJt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/components/diffEditorSash.js"(){EY(),Nt(),xs(),Vv(),aJt=class{resetSash(){this._sashRatio.set(void 0,void 0)}constructor(e,t){this._options=e,this.dimensions=t,this.sashLeft=bY(this,n=>{const i=this._sashRatio.read(n)??this._options.splitViewDefaultRatio.read(n);return this._computeSashLeft(i,n)},(n,i)=>{const r=this.dimensions.width.get();this._sashRatio.set(n/r,i)}),this._sashRatio=mo(this,void 0)}_computeSashLeft(e,t){const n=this.dimensions.width.read(t),i=Math.floor(this._options.splitViewDefaultRatio.read(t)*n),r=this._options.enableSplitViewResizing.read(t)?Math.floor(e*n):i,o=100;return n<=o*2?i:r<o?o:r>n-o?n-o:r}},$Ue=class extends St{constructor(e,t,n,i,r,o){super(),this._domNode=e,this._dimensions=t,this._enabled=n,this._boundarySashes=i,this.sashLeft=r,this._resetSash=o,this._sash=this._register(new mx(this._domNode,{getVerticalSashTop:s=>0,getVerticalSashLeft:s=>this.sashLeft.get(),getVerticalSashHeight:s=>this._dimensions.height.get()},{orientation:0})),this._startSashPosition=void 0,this._register(this._sash.onDidStart(()=>{this._startSashPosition=this.sashLeft.get()})),this._register(this._sash.onDidChange(s=>{this.sashLeft.set(this._startSashPosition+(s.currentX-s.startX),void 0)})),this._register(this._sash.onDidEnd(()=>this._sash.layout())),this._register(this._sash.onDidReset(()=>this._resetSash())),this._register(Tr(s=>{const a=this._boundarySashes.read(s);a&&(this._sash.orthogonalEndSash=a.bottom)})),this._register(Tr(s=>{const a=this._enabled.read(s);this._sash.state=a?3:0,this.sashLeft.read(s),this._dimensions.height.read(s),this._sash.layout()}))}}}}),cJt,Sgt,tGn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/utils/editorGutter.js"(){Fn(),Nt(),xs(),Sg(),K0(),cJt=class extends St{constructor(e,t,n){super(),this._editor=e,this._domNode=t,this.itemProvider=n,this.scrollTop=Bs(this,this._editor.onDidScrollChange,o=>this._editor.getScrollTop()),this.isScrollTopZero=this.scrollTop.map(o=>o===0),this.modelAttached=Bs(this,this._editor.onDidChangeModel,o=>this._editor.hasModel()),this.editorOnDidChangeViewZones=af("onDidChangeViewZones",this._editor.onDidChangeViewZones),this.editorOnDidContentSizeChange=af("onDidContentSizeChange",this._editor.onDidContentSizeChange),this.domNodeSizeChanged=R7("domNodeSizeChanged"),this.views=new Map,this._domNode.className="gutter monaco-editor";const i=this._domNode.appendChild(Co("div.scroll-decoration",{role:"presentation",ariaHidden:"true",style:{width:"100%"}}).root),r=new ResizeObserver(()=>{Al(o=>{this.domNodeSizeChanged.trigger(o)})});r.observe(this._domNode),this._register(zi(()=>r.disconnect())),this._register(Tr(o=>{i.className=this.isScrollTopZero.read(o)?"":"scroll-decoration"})),this._register(Tr(o=>this.render(o)))}dispose(){super.dispose(),xh(this._domNode)}render(e){if(!this.modelAttached.read(e))return;this.domNodeSizeChanged.read(e),this.editorOnDidChangeViewZones.read(e),this.editorOnDidContentSizeChange.read(e);const t=this.scrollTop.read(e),n=this._editor.getVisibleRanges(),i=new Set(this.views.keys()),r=Xo.ofStartAndLength(0,this._domNode.clientHeight);if(!r.isEmpty)for(const o of n){const s=new Ur(o.startLineNumber,o.endLineNumber+1),a=this.itemProvider.getIntersectingGutterItems(s,e);Al(l=>{for(const c of a){if(!c.range.intersect(s))continue;i.delete(c.id);let u=this.views.get(c.id);if(u)u.item.set(c,l);else{const p=document.createElement("div");this._domNode.appendChild(p);const g=mo("item",c),m=this.itemProvider.createView(g,p);u=new Sgt(g,m,p),this.views.set(c.id,u)}const d=c.range.startLineNumber<=this._editor.getModel().getLineCount()?this._editor.getTopForLineNumber(c.range.startLineNumber,!0)-t:this._editor.getBottomForLineNumber(c.range.startLineNumber-1,!1)-t,f=(c.range.endLineNumberExclusive===1?Math.max(d,this._editor.getTopForLineNumber(c.range.startLineNumber,!1)-t):Math.max(d,this._editor.getBottomForLineNumber(c.range.endLineNumberExclusive-1,!0)-t))-d;u.domNode.style.top=`${d}px`,u.domNode.style.height=`${f}px`,u.gutterItemView.layout(Xo.ofStartAndLength(d,f),r)}})}for(const o of i){const s=this.views.get(o);s.gutterItemView.dispose(),s.domNode.remove(),this.views.delete(o)}}},Sgt=class{constructor(e,t,n){this.item=e,this.gutterItemView=t,this.domNode=n}}}}),qUe,uJt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/multiDiffEditor/utils.js"(){wd(),qUe=class extends NL{constructor(e){super(),this._getContext=e}runAction(e,t){const n=this._getContext();return super.runAction(e,n)}}}}),v6e,nGn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/textModelText.js"(){mT(),IN(),v6e=class extends V5e{constructor(e){super(),this._textModel=e}getValueOfRange(e){return this._textModel.getValueInRange(e)}get length(){const e=this._textModel.getLineCount(),t=this._textModel.getLineLength(e);return new _C(e-1,t)}}}}),iGn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/toolbar/toolbar.css"(){}}),dJt,Lae,rGn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/toolbar/toolbar.js"(){var e;ww(),uGt(),wd(),ia(),Ra(),Un(),Nt(),iGn(),bn(),Lh(),dJt=class extends St{constructor(t,n,i={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new c7t),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new Jt),i.hoverDelegate=i.hoverDelegate??this._register(a9()),this.options=i,this.toggleMenuAction=this._register(new Lae(()=>this.toggleMenuActionViewItem?.show(),i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",t.appendChild(this.element),this.actionBar=this._register(new Dv(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,highlightToggledItems:i.highlightToggledItems,hoverDelegate:i.hoverDelegate,actionViewItemProvider:(r,o)=>{if(r.id===Lae.ID)return this.toggleMenuActionViewItem=new iG(r,r.menuActions,n,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:lr.asClassNameArray(i.moreIcon??An.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,isMenu:!0,hoverDelegate:this.options.hoverDelegate}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){const s=i.actionViewItemProvider(r,o);if(s)return s}if(r instanceof ZR){const s=new iG(r,r.actions,n,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:r.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,hoverDelegate:this.options.hoverDelegate});return s.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(s),this.disposables.add(this._onDidChangeDropdownVisibility.add(s.onDidChangeVisibility)),s}}}))}set actionRunner(t){this.actionBar.actionRunner=t}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(t){return this.actionBar.getAction(t)}setActions(t,n){this.clear();const i=t?t.slice(0):[];this.hasSecondaryActions=!!(n&&n.length>0),this.hasSecondaryActions&&n&&(this.toggleMenuAction.menuActions=n.slice(0),i.push(this.toggleMenuAction)),i.forEach(r=>{this.actionBar.push(r,{icon:this.options.icon??!0,label:this.options.label??!1,keybinding:this.getKeybindingLabel(r)})})}getKeybindingLabel(t){return this.options.getKeyBinding?.(t)?.getLabel()??void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),super.dispose()}},Lae=(e=class extends cm{constructor(n,i){i=i||R("moreActions","More Actions..."),super(e.ID,i,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=n}async run(){this.toggleDropdownMenu()}get menuActions(){return this._menuActions}set menuActions(n){this._menuActions=n}},e.ID="toolbar.toggle.more",e)}}),GSe,py,f6,f$,Wge=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/actions/browser/toolbar.js"(){Fn(),Cb(),rGn(),wd(),rr(),rKt(),Vi(),Un(),bg(),Nt(),bn(),jN(),ha(),dQt(),Ks(),er(),xg(),tl(),_m(),GSe=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},py=function(e,t){return function(n,i){t(n,i,e)}},f6=class extends dJt{constructor(t,n,i,r,o,s,a,l){super(t,o,{getKeyBinding:u=>s.lookupKeybinding(u.id)??void 0,...n,allowContextMenu:!0,skipTelemetry:typeof n?.telemetrySource=="string"}),this._options=n,this._menuService=i,this._contextKeyService=r,this._contextMenuService=o,this._keybindingService=s,this._commandService=a,this._sessionDisposables=this._store.add(new Jt);const c=n?.telemetrySource;c&&this._store.add(this.actionBar.onDidRun(u=>l.publicLog2("workbenchActionExecuted",{id:u.action.id,from:c})))}setActions(t,n=[],i){this._sessionDisposables.clear();const r=t.slice(),o=n.slice(),s=[];let a=0;const l=[];let c=!1;if(this._options?.hiddenItemStrategy!==-1)for(let u=0;u<r.length;u++){const d=r[u];!(d instanceof um)&&!(d instanceof cR)||d.hideActions&&(s.push(d.hideActions.toggle),d.hideActions.toggle.checked&&a++,d.hideActions.isHidden&&(c=!0,r[u]=void 0,this._options?.hiddenItemStrategy!==0&&(l[u]=d)))}if(this._options?.overflowBehavior!==void 0){const u=EHn(new Set(this._options.overflowBehavior.exempted),Vo.map(r,f=>f?.id)),d=this._options.overflowBehavior.maxItems-u.size;let h=0;for(let f=0;f<r.length;f++){const p=r[f];p&&(h++,!u.has(p.id)&&h>=d&&(r[f]=void 0,l[f]=p))}}Kst(r),Kst(l),super.setActions(r,zd.join(l,o)),(s.length>0||r.length>0)&&this._sessionDisposables.add(qt(this.getElement(),"contextmenu",u=>{const d=new Vy(Yi(this.getElement()),u),h=this.getItemAction(d.target);if(!h)return;d.preventDefault(),d.stopPropagation();const f=[];if(h instanceof um&&h.menuKeybinding)f.push(h.menuKeybinding);else if(!(h instanceof cR||h instanceof Lae)){const g=!!this._keybindingService.lookupKeybinding(h.id);f.push(uQt(this._commandService,this._keybindingService,h.id,void 0,g))}if(s.length>0){let g=!1;if(a===1&&this._options?.hiddenItemStrategy===0){g=!0;for(let m=0;m<s.length;m++)if(s[m].checked){s[m]=lR({id:h.id,label:h.label,checked:!0,enabled:!1,run(){}});break}}if(!g&&(h instanceof um||h instanceof cR)){if(!h.hideActions)return;f.push(h.hideActions.hide)}else f.push(lR({id:"label",label:R("hide","Hide"),enabled:!1,run(){}}))}const p=zd.join(f,s);this._options?.resetMenu&&!i&&(i=[this._options.resetMenu]),c&&i&&(p.push(new zd),p.push(lR({id:"resetThisMenu",label:R("resetThisMenu","Reset Menu"),run:()=>this._menuService.resetHiddenStates(i)}))),p.length!==0&&this._contextMenuService.showContextMenu({getAnchor:()=>d,getActions:()=>p,menuId:this._options?.contextMenu,menuActionOptions:{renderShortTitle:!0,...this._options?.menuOptions},skipTelemetry:typeof this._options?.telemetrySource=="string",contextKeyService:this._contextKeyService})}))}},f6=GSe([py(2,Pv),py(3,ur),py(4,dm),py(5,Cs),py(6,Oa),py(7,uf)],f6),f$=class extends f6{constructor(t,n,i,r,o,s,a,l,c){super(t,{resetMenu:n,...i},r,o,s,a,l,c),this._onDidChangeMenuItems=this._store.add(new bt),this.onDidChangeMenuItems=this._onDidChangeMenuItems.event;const u=this._store.add(r.createMenu(n,o,{emitEventsForSubmenuChanges:!0})),d=()=>{const h=[],f=[];yge(u,i?.menuOptions,{primary:h,secondary:f},i?.toolbarOptions?.primaryGroup,i?.toolbarOptions?.shouldInlineSubmenu,i?.toolbarOptions?.useSeparatorsInPrimaryActions),t.classList.toggle("has-no-actions",h.length===0&&f.length===0),super.setActions(h,f)};this._store.add(u.onDidChange(()=>{d(),this._onDidChangeMenuItems.fire(this)})),d()}setActions(){throw new ys("This toolbar is populated from a menu.")}},f$=GSe([py(3,Pv),py(4,ur),py(5,dm),py(6,Cs),py(7,Oa),py(8,uf)],f$)}}),KSe,kV,Xee,IV,Nae,YSe,Jee,oGn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/features/gutterFeature.js"(){Fn(),Nt(),xs(),Vv(),lJt(),Cw(),tGn(),uJt(),Sg(),K0(),Dn(),mT(),vT(),nGn(),Wge(),ha(),er(),PN(),li(),KSe=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},kV=function(e,t){return function(n,i){t(n,i,e)}},Xee=[],IV=35,Nae=class extends St{constructor(t,n,i,r,o,s,a,l,c){super(),this._diffModel=n,this._editors=i,this._options=r,this._sashLayout=o,this._boundarySashes=s,this._instantiationService=a,this._contextKeyService=l,this._menuService=c,this._menu=this._register(this._menuService.createMenu(Ti.DiffEditorHunkToolbar,this._contextKeyService)),this._actions=Bs(this,this._menu.onDidChange,()=>this._menu.getActions()),this._hasActions=this._actions.map(u=>u.length>0),this._showSash=Fi(this,u=>this._options.renderSideBySide.read(u)&&this._hasActions.read(u)),this.width=Fi(this,u=>this._hasActions.read(u)?IV:0),this.elements=Co("div.gutter@gutter",{style:{position:"absolute",height:"100%",width:IV+"px"}},[]),this._currentDiff=Fi(this,u=>{const d=this._diffModel.read(u);if(!d)return;const h=d.diff.read(u)?.mappings,f=this._editors.modifiedCursor.read(u);if(f)return h?.find(p=>p.lineRangeMapping.modified.contains(f.lineNumber))}),this._selectedDiffs=Fi(this,u=>{const h=this._diffModel.read(u)?.diff.read(u);if(!h)return Xee;const f=this._editors.modifiedSelections.read(u);if(f.every(v=>v.isEmpty()))return Xee;const p=new sL(f.map(v=>Ur.fromRangeInclusive(v))),m=h.mappings.filter(v=>v.lineRangeMapping.innerChanges&&p.intersects(v.lineRangeMapping.modified)).map(v=>({mapping:v,rangeMappings:v.lineRangeMapping.innerChanges.filter(y=>f.some(b=>Re.areIntersecting(y.modifiedRange,b)))}));return m.length===0||m.every(v=>v.rangeMappings.length===0)?Xee:m}),this._register(zqn(t,this.elements.root)),this._register(qt(this.elements.root,"click",()=>{this._editors.modified.focus()})),this._register(HD(this.elements.root,{display:this._hasActions.map(u=>u?"block":"none")})),cp(this,u=>this._showSash.read(u)?new $Ue(t,this._sashLayout.dimensions,this._options.enableSplitViewResizing,this._boundarySashes,bY(this,h=>this._sashLayout.sashLeft.read(h)-IV,(h,f)=>this._sashLayout.sashLeft.set(h+IV,f)),()=>this._sashLayout.resetSash()):void 0).recomputeInitiallyAndOnChange(this._store),this._register(new cJt(this._editors.modified,this.elements.root,{getIntersectingGutterItems:(u,d)=>{const h=this._diffModel.read(d);if(!h)return[];const f=h.diff.read(d);if(!f)return[];const p=this._selectedDiffs.read(d);if(p.length>0){const m=CC.fromRangeMappings(p.flatMap(v=>v.rangeMappings));return[new YSe(m,!0,Ti.DiffEditorSelectionToolbar,void 0,h.model.original.uri,h.model.modified.uri)]}const g=this._currentDiff.read(d);return f.mappings.map(m=>new YSe(m.lineRangeMapping.withInnerChangesFromLineRanges(),m.lineRangeMapping===g?.lineRangeMapping,Ti.DiffEditorHunkToolbar,void 0,h.model.original.uri,h.model.modified.uri))},createView:(u,d)=>this._instantiationService.createInstance(Jee,u,d,this)})),this._register(qt(this.elements.gutter,kn.MOUSE_WHEEL,u=>{this._editors.modified.getOption(104).handleMouseWheel&&this._editors.modified.delegateScrollFromMouseWheelEvent(u)},{passive:!1}))}computeStagedValue(t){const n=t.innerChanges??[],i=new v6e(this._editors.modifiedModel.get()),r=new v6e(this._editors.original.getModel());return new tge(n.map(a=>a.toTextEdit(i))).apply(r)}layout(t){this.elements.gutter.style.left=t+"px"}},Nae=KSe([kV(6,ji),kV(7,ur),kV(8,Pv)],Nae),YSe=class{constructor(e,t,n,i,r,o){this.mapping=e,this.showAlways=t,this.menuId=n,this.rangeOverride=i,this.originalUri=r,this.modifiedUri=o}get id(){return this.mapping.modified.toString()}get range(){return this.rangeOverride??this.mapping.modified}},Jee=class extends St{constructor(t,n,i,r){super(),this._item=t,this._elements=Co("div.gutterItem",{style:{height:"20px",width:"34px"}},[Co("div.background@background",{},[]),Co("div.buttons@buttons",{},[])]),this._showAlways=this._item.map(this,s=>s.showAlways),this._menuId=this._item.map(this,s=>s.menuId),this._isSmall=mo(this,!1),this._lastItemRange=void 0,this._lastViewRange=void 0;const o=this._register(r.createInstance(fR,"element",!0,{position:{hoverPosition:1}}));this._register(h6(n,this._elements.root)),this._register(Tr(s=>{const a=this._showAlways.read(s);this._elements.root.classList.toggle("noTransition",!0),this._elements.root.classList.toggle("showAlways",a),setTimeout(()=>{this._elements.root.classList.toggle("noTransition",!1)},0)})),this._register(hm((s,a)=>{this._elements.buttons.replaceChildren();const l=a.add(r.createInstance(f$,this._elements.buttons,this._menuId.read(s),{orientation:1,hoverDelegate:o,toolbarOptions:{primaryGroup:c=>c.startsWith("primary")},overflowBehavior:{maxItems:this._isSmall.read(s)?1:3},hiddenItemStrategy:0,actionRunner:new qUe(()=>{const c=this._item.get(),u=c.mapping;return{mapping:u,originalWithModifiedChanges:i.computeStagedValue(u),originalUri:c.originalUri,modifiedUri:c.modifiedUri}}),menuOptions:{shouldForwardArgs:!0}}));a.add(l.onDidChangeMenuItems(()=>{this._lastItemRange&&this.layout(this._lastItemRange,this._lastViewRange)}))}))}layout(t,n){this._lastItemRange=t,this._lastViewRange=n;let i=this._elements.buttons.clientHeight;this._isSmall.set(this._item.get().mapping.original.startLineNumber===1&&t.length<30,void 0),i=this._elements.buttons.clientHeight;const r=t.length/2-i/2,o=i;let s=t.start+r;const a=Xo.tryCreate(o,n.endExclusive-o-i),l=Xo.tryCreate(t.start+o,t.endExclusive-i-o);l&&a&&l.start<l.endExclusive&&(s=a.clip(s),s=l.clip(s)),this._elements.buttons.style.top=`${s-t.start}px`}},Jee=KSe([kV(3,ji)],Jee)}});function dv(e){return hJt.get(e)}function y6e(e,t){return O3n({createEmptyChangeSummary:()=>({deltas:[],didChange:!1}),handleChange:(n,i)=>{if(n.didChange(e)){const r=n.change;r!==void 0&&i.deltas.push(r),i.didChange=!0}return!0}},(n,i)=>{const r=e.read(n);i.didChange&&t(r,i.deltas)})}function sGn(e,t){const n=new Jt,i=y6e(e,(r,o)=>{n.clear(),t(r,o,n)});return{dispose(){i.dispose(),n.dispose()}}}var hJt,HN=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/observableCodeEditor.js"(){var e;_T(),Nt(),xs(),qC(),Vv(),zs(),hJt=(e=class extends St{static get(n){let i=e._map.get(n);if(!i){i=new e(n),e._map.set(n,i);const r=n.onDidDispose(()=>{const o=e._map.get(n);o&&(e._map.delete(n),o.dispose(),r.dispose())})}return i}_beginUpdate(){this._updateCounter++,this._updateCounter===1&&(this._currentTransaction=new r2(()=>{}))}_endUpdate(){if(this._updateCounter--,this._updateCounter===0){const n=this._currentTransaction;this._currentTransaction=void 0,n.finish()}}constructor(n){super(),this.editor=n,this._updateCounter=0,this._currentTransaction=void 0,this._model=mo(this,this.editor.getModel()),this.model=this._model,this.isReadonly=Bs(this,this.editor.onDidChangeConfiguration,()=>this.editor.getOption(92)),this._versionId=q4e({owner:this,lazy:!0},this.editor.getModel()?.getVersionId()??null),this.versionId=this._versionId,this._selections=q4e({owner:this,equalsFn:F4e(ede(Ii.selectionsEqual)),lazy:!0},this.editor.getSelections()??null),this.selections=this._selections,this.isFocused=Bs(this,i=>{const r=this.editor.onDidFocusEditorWidget(i),o=this.editor.onDidBlurEditorWidget(i);return{dispose(){r.dispose(),o.dispose()}}},()=>this.editor.hasWidgetFocus()),this.value=bY(this,i=>(this.versionId.read(i),this.model.read(i)?.getValue()??""),(i,r)=>{const o=this.model.get();o!==null&&i!==o.getValue()&&o.setValue(i)}),this.valueIsEmpty=Fi(this,i=>(this.versionId.read(i),this.editor.getModel()?.getValueLength()===0)),this.cursorSelection=w0({owner:this,equalsFn:F4e(Ii.selectionsEqual)},i=>this.selections.read(i)?.[0]??null),this.onDidType=R7(this),this.scrollTop=Bs(this.editor.onDidScrollChange,()=>this.editor.getScrollTop()),this.scrollLeft=Bs(this.editor.onDidScrollChange,()=>this.editor.getScrollLeft()),this.layoutInfo=Bs(this.editor.onDidLayoutChange,()=>this.editor.getLayoutInfo()),this.layoutInfoContentLeft=this.layoutInfo.map(i=>i.contentLeft),this.layoutInfoDecorationsLeft=this.layoutInfo.map(i=>i.decorationsLeft),this.contentWidth=Bs(this.editor.onDidContentSizeChange,()=>this.editor.getContentWidth()),this._overlayWidgetCounter=0,this._register(this.editor.onBeginUpdate(()=>this._beginUpdate())),this._register(this.editor.onEndUpdate(()=>this._endUpdate())),this._register(this.editor.onDidChangeModel(()=>{this._beginUpdate();try{this._model.set(this.editor.getModel(),this._currentTransaction),this._forceUpdate()}finally{this._endUpdate()}})),this._register(this.editor.onDidType(i=>{this._beginUpdate();try{this._forceUpdate(),this.onDidType.trigger(this._currentTransaction,i)}finally{this._endUpdate()}})),this._register(this.editor.onDidChangeModelContent(i=>{this._beginUpdate();try{this._versionId.set(this.editor.getModel()?.getVersionId()??null,this._currentTransaction,i),this._forceUpdate()}finally{this._endUpdate()}})),this._register(this.editor.onDidChangeCursorSelection(i=>{this._beginUpdate();try{this._selections.set(this.editor.getSelections(),this._currentTransaction,i),this._forceUpdate()}finally{this._endUpdate()}}))}forceUpdate(n){this._beginUpdate();try{return this._forceUpdate(),n?n(this._currentTransaction):void 0}finally{this._endUpdate()}}_forceUpdate(){this._beginUpdate();try{this._model.set(this.editor.getModel(),this._currentTransaction),this._versionId.set(this.editor.getModel()?.getVersionId()??null,this._currentTransaction,void 0),this._selections.set(this.editor.getSelections(),this._currentTransaction,void 0)}finally{this._endUpdate()}}getOption(n){return Bs(this,i=>this.editor.onDidChangeConfiguration(r=>{r.hasChanged(n)&&i(void 0)}),()=>this.editor.getOption(n))}setDecorations(n){const i=new Jt,r=this.editor.createDecorationsCollection();return i.add(_Y({owner:this,debugName:()=>`Apply decorations from ${n.debugName}`},o=>{const s=n.read(o);r.set(s)})),i.add({dispose:()=>{r.clear()}}),i}createOverlayWidget(n){const i="observableOverlayWidget"+this._overlayWidgetCounter++,r={getDomNode:()=>n.domNode,getPosition:()=>n.position.get(),getId:()=>i,allowEditorOverflow:n.allowEditorOverflow,getMinContentWidthInPx:()=>n.minContentWidthInPx.get()};this.editor.addOverlayWidget(r);const o=Tr(s=>{n.position.read(s),n.minContentWidthInPx.read(s),this.editor.layoutOverlayWidget(r)});return zi(()=>{o.dispose(),this.editor.removeOverlayWidget(r)})}},e._map=new Map,e)}}),xgt,Egt,ete,p$,QSe,ZSe,fJt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js"(){var e;Fn(),MN(),ia(),Dg(),Nt(),xs(),Vv(),Ra(),as(),HN(),Cw(),Sg(),Hi(),Dn(),ra(),bn(),li(),xgt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},Egt=function(t,n){return function(i,r){n(i,r,t)}},p$=(e=class extends St{static setBreadcrumbsSourceFactory(n){this._breadcrumbsSourceFactory.set(n,void 0)}get isUpdatingHiddenAreas(){return this._isUpdatingHiddenAreas}constructor(n,i,r,o){super(),this._editors=n,this._diffModel=i,this._options=r,this._instantiationService=o,this._modifiedOutlineSource=cp(this,c=>{const u=this._editors.modifiedModel.read(c),d=ete._breadcrumbsSourceFactory.read(c);return!u||!d?void 0:d(u,this._instantiationService)}),this._isUpdatingHiddenAreas=!1,this._register(this._editors.original.onDidChangeCursorPosition(c=>{if(c.reason===1)return;const u=this._diffModel.get();Al(d=>{for(const h of this._editors.original.getSelections()||[])u?.ensureOriginalLineIsVisible(h.getStartPosition().lineNumber,0,d),u?.ensureOriginalLineIsVisible(h.getEndPosition().lineNumber,0,d)})})),this._register(this._editors.modified.onDidChangeCursorPosition(c=>{if(c.reason===1)return;const u=this._diffModel.get();Al(d=>{for(const h of this._editors.modified.getSelections()||[])u?.ensureModifiedLineIsVisible(h.getStartPosition().lineNumber,0,d),u?.ensureModifiedLineIsVisible(h.getEndPosition().lineNumber,0,d)})}));const s=this._diffModel.map((c,u)=>{const d=c?.unchangedRegions.read(u)??[];return d.length===1&&d[0].modifiedLineNumber===1&&d[0].lineCount===this._editors.modifiedModel.read(u)?.getLineCount()?[]:d});this.viewZones=FN(this,(c,u)=>{const d=this._modifiedOutlineSource.read(c);if(!d)return{origViewZones:[],modViewZones:[]};const h=[],f=[],p=this._options.renderSideBySide.read(c),g=this._options.compactMode.read(c),m=s.read(c);for(let v=0;v<m.length;v++){const y=m[v];if(!y.shouldHideControls(c)&&!(g&&(v===0||v===m.length-1)))if(g){{const b=Fi(this,E=>y.getHiddenOriginalRange(E).startLineNumber-1),w=new FO(b,12);h.push(w),u.add(new QSe(this._editors.original,w,y,!p))}{const b=Fi(this,E=>y.getHiddenModifiedRange(E).startLineNumber-1),w=new FO(b,12);f.push(w),u.add(new QSe(this._editors.modified,w,y))}}else{{const b=Fi(this,E=>y.getHiddenOriginalRange(E).startLineNumber-1),w=new FO(b,24);h.push(w),u.add(new ZSe(this._editors.original,w,y,y.originalUnchangedRange,!p,d,E=>this._diffModel.get().ensureModifiedLineIsVisible(E,2,void 0),this._options))}{const b=Fi(this,E=>y.getHiddenModifiedRange(E).startLineNumber-1),w=new FO(b,24);f.push(w),u.add(new ZSe(this._editors.modified,w,y,y.modifiedUnchangedRange,!1,d,E=>this._diffModel.get().ensureModifiedLineIsVisible(E,2,void 0),this._options))}}}return{origViewZones:h,modViewZones:f}});const a={description:"unchanged lines",className:"diff-unchanged-lines",isWholeLine:!0},l={description:"Fold Unchanged",glyphMarginHoverMessage:new nf(void 0,{isTrusted:!0,supportThemeIcons:!0}).appendMarkdown(R("foldUnchanged","Fold Unchanged Region")),glyphMarginClassName:"fold-unchanged "+lr.asClassName(An.fold),zIndex:10001};this._register(Lde(this._editors.original,Fi(this,c=>{const u=s.read(c),d=u.map(h=>({range:h.originalUnchangedRange.toInclusiveRange(),options:a}));for(const h of u)h.shouldHideControls(c)&&d.push({range:Re.fromPositions(new mt(h.originalLineNumber,1)),options:l});return d}))),this._register(Lde(this._editors.modified,Fi(this,c=>{const u=s.read(c),d=u.map(h=>({range:h.modifiedUnchangedRange.toInclusiveRange(),options:a}));for(const h of u)h.shouldHideControls(c)&&d.push({range:Ur.ofLength(h.modifiedLineNumber,1).toInclusiveRange(),options:l});return d}))),this._register(Tr(c=>{const u=s.read(c);this._isUpdatingHiddenAreas=!0;try{this._editors.original.setHiddenAreas(u.map(d=>d.getHiddenOriginalRange(c).toInclusiveRange()).filter(Ex)),this._editors.modified.setHiddenAreas(u.map(d=>d.getHiddenModifiedRange(c).toInclusiveRange()).filter(Ex))}finally{this._isUpdatingHiddenAreas=!1}})),this._register(this._editors.modified.onMouseUp(c=>{if(!c.event.rightButton&&c.target.position&&c.target.element?.className.includes("fold-unchanged")){const u=c.target.position.lineNumber,d=this._diffModel.get();if(!d)return;const h=d.unchangedRegions.get().find(f=>f.modifiedUnchangedRange.includes(u));if(!h)return;h.collapseAll(void 0),c.event.stopPropagation(),c.event.preventDefault()}})),this._register(this._editors.original.onMouseUp(c=>{if(!c.event.rightButton&&c.target.position&&c.target.element?.className.includes("fold-unchanged")){const u=c.target.position.lineNumber,d=this._diffModel.get();if(!d)return;const h=d.unchangedRegions.get().find(f=>f.originalUnchangedRange.includes(u));if(!h)return;h.collapseAll(void 0),c.event.stopPropagation(),c.event.preventDefault()}}))}},ete=e,e._breadcrumbsSourceFactory=mo(ete,()=>({dispose(){},getBreadcrumbItems(n,i){return[]}})),e),p$=ete=xgt([Egt(3,ji)],p$),QSe=class extends Pde{constructor(t,n,i,r=!1){const o=Co("div.diff-hidden-lines-widget");super(t,n,o.root),this._unchangedRegion=i,this._hide=r,this._nodes=Co("div.diff-hidden-lines-compact",[Co("div.line-left",[]),Co("div.text@text",[]),Co("div.line-right",[])]),o.root.appendChild(this._nodes.root),this._hide&&this._nodes.root.replaceChildren(),this._register(Tr(s=>{if(!this._hide){const a=this._unchangedRegion.getHiddenModifiedRange(s).length,l=R("hiddenLines","{0} hidden lines",a);this._nodes.text.innerText=l}}))}},ZSe=class extends Pde{constructor(t,n,i,r,o,s,a,l){const c=Co("div.diff-hidden-lines-widget");super(t,n,c.root),this._editor=t,this._unchangedRegion=i,this._unchangedRegionRange=r,this._hide=o,this._modifiedOutlineSource=s,this._revealModifiedHiddenLine=a,this._options=l,this._nodes=Co("div.diff-hidden-lines",[Co("div.top@top",{title:R("diff.hiddenLines.top","Click or drag to show more above")}),Co("div.center@content",{style:{display:"flex"}},[Co("div@first",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0"}},[In("a",{title:R("showUnchangedRegion","Show Unchanged Region"),role:"button",onclick:()=>{this._unchangedRegion.showAll(void 0)}},...aL("$(unfold)"))]),Co("div@others",{style:{display:"flex",justifyContent:"center",alignItems:"center"}})]),Co("div.bottom@bottom",{title:R("diff.bottom","Click or drag to show more below"),role:"button"})]),c.root.appendChild(this._nodes.root),this._hide?xh(this._nodes.first):this._register(HD(this._nodes.first,{width:dv(this._editor).layoutInfoContentLeft})),this._register(Tr(d=>{const h=this._unchangedRegion.visibleLineCountTop.read(d)+this._unchangedRegion.visibleLineCountBottom.read(d)===this._unchangedRegion.lineCount;this._nodes.bottom.classList.toggle("canMoveTop",!h),this._nodes.bottom.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(d)>0),this._nodes.top.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(d)>0),this._nodes.top.classList.toggle("canMoveBottom",!h);const f=this._unchangedRegion.isDragged.read(d),p=this._editor.getDomNode();p&&(p.classList.toggle("draggingUnchangedRegion",!!f),f==="top"?(p.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(d)>0),p.classList.toggle("canMoveBottom",!h)):f==="bottom"?(p.classList.toggle("canMoveTop",!h),p.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(d)>0)):(p.classList.toggle("canMoveTop",!1),p.classList.toggle("canMoveBottom",!1)))}));const u=this._editor;this._register(qt(this._nodes.top,"mousedown",d=>{if(d.button!==0)return;this._nodes.top.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),d.preventDefault();const h=d.clientY;let f=!1;const p=this._unchangedRegion.visibleLineCountTop.get();this._unchangedRegion.isDragged.set("top",void 0);const g=Yi(this._nodes.top),m=qt(g,"mousemove",y=>{const w=y.clientY-h;f=f||Math.abs(w)>2;const E=Math.round(w/u.getOption(67)),A=Math.max(0,Math.min(p+E,this._unchangedRegion.getMaxVisibleLineCountTop()));this._unchangedRegion.visibleLineCountTop.set(A,void 0)}),v=qt(g,"mouseup",y=>{f||this._unchangedRegion.showMoreAbove(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0),this._nodes.top.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),this._unchangedRegion.isDragged.set(void 0,void 0),m.dispose(),v.dispose()})})),this._register(qt(this._nodes.bottom,"mousedown",d=>{if(d.button!==0)return;this._nodes.bottom.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),d.preventDefault();const h=d.clientY;let f=!1;const p=this._unchangedRegion.visibleLineCountBottom.get();this._unchangedRegion.isDragged.set("bottom",void 0);const g=Yi(this._nodes.bottom),m=qt(g,"mousemove",y=>{const w=y.clientY-h;f=f||Math.abs(w)>2;const E=Math.round(w/u.getOption(67)),A=Math.max(0,Math.min(p-E,this._unchangedRegion.getMaxVisibleLineCountBottom())),D=this._unchangedRegionRange.endLineNumberExclusive>u.getModel().getLineCount()?u.getContentHeight():u.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.visibleLineCountBottom.set(A,void 0);const T=this._unchangedRegionRange.endLineNumberExclusive>u.getModel().getLineCount()?u.getContentHeight():u.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);u.setScrollTop(u.getScrollTop()+(T-D))}),v=qt(g,"mouseup",y=>{if(this._unchangedRegion.isDragged.set(void 0,void 0),!f){const b=u.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.showMoreBelow(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0);const w=u.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);u.setScrollTop(u.getScrollTop()+(w-b))}this._nodes.bottom.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),m.dispose(),v.dispose()})})),this._register(Tr(d=>{const h=[];if(!this._hide){const f=i.getHiddenModifiedRange(d).length,p=R("hiddenLines","{0} hidden lines",f),g=In("span",{title:R("diff.hiddenLines.expandAll","Double click to unfold")},p);g.addEventListener("dblclick",y=>{y.button===0&&(y.preventDefault(),this._unchangedRegion.showAll(void 0))}),h.push(g);const m=this._unchangedRegion.getHiddenModifiedRange(d),v=this._modifiedOutlineSource.getBreadcrumbItems(m,d);if(v.length>0){h.push(In("span",void 0,"  |  "));for(let y=0;y<v.length;y++){const b=v[y],w=Zce.toIcon(b.kind),E=Co("div.breadcrumb-item",{style:{display:"flex",alignItems:"center"}},[gR(w)," ",b.name,...y===v.length-1?[]:[gR(An.chevronRight)]]).root;h.push(E),E.onclick=()=>{this._revealModifiedHiddenLine(b.startLineNumber)}}}}xh(this._nodes.others,...h)}))}}}}),Agt,Dgt,e1,r8,pJt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js"(){var e;Fn(),_d(),GHe(),Nt(),xs(),Cw(),Hi(),kZt(),ll(),Ys(),Agt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},Dgt=function(t,n){return function(i,r){n(i,r,t)}},r8=(e=class extends St{constructor(n,i,r,o,s,a,l){super(),this._editors=n,this._rootElement=i,this._diffModel=r,this._rootWidth=o,this._rootHeight=s,this._modifiedEditorLayoutInfo=a,this._themeService=l,this.width=e1.ENTIRE_DIFF_OVERVIEW_WIDTH;const c=Bs(this._themeService.onDidColorThemeChange,()=>this._themeService.getColorTheme()),u=Fi(f=>{const p=c.read(f),g=p.getColor(P3t)||(p.getColor(L3t)||Goe).transparent(2),m=p.getColor(M3t)||(p.getColor(N3t)||Koe).transparent(2);return{insertColor:g,removeColor:m}}),d=Ds(document.createElement("div"));d.setClassName("diffViewport"),d.setPosition("absolute");const h=Co("div.diffOverview",{style:{position:"absolute",top:"0px",width:e1.ENTIRE_DIFF_OVERVIEW_WIDTH+"px"}}).root;this._register(h6(h,d.domNode)),this._register(Il(h,kn.POINTER_DOWN,f=>{this._editors.modified.delegateVerticalScrollbarPointerDown(f)})),this._register(qt(h,kn.MOUSE_WHEEL,f=>{this._editors.modified.delegateScrollFromMouseWheelEvent(f)},{passive:!1})),this._register(h6(this._rootElement,h)),this._register(hm((f,p)=>{const g=this._diffModel.read(f),m=this._editors.original.createOverviewRuler("original diffOverviewRuler");m&&(p.add(m),p.add(h6(h,m.getDomNode())));const v=this._editors.modified.createOverviewRuler("modified diffOverviewRuler");if(v&&(p.add(v),p.add(h6(h,v.getDomNode()))),!m||!v)return;const y=af("viewZoneChanged",this._editors.original.onDidChangeViewZones),b=af("viewZoneChanged",this._editors.modified.onDidChangeViewZones),w=af("hiddenRangesChanged",this._editors.original.onDidChangeHiddenAreas),E=af("hiddenRangesChanged",this._editors.modified.onDidChangeHiddenAreas);p.add(Tr(A=>{y.read(A),b.read(A),w.read(A),E.read(A);const D=u.read(A),T=g?.diff.read(A)?.mappings;function M(N,j,W){const J=W._getViewModel();return J?N.filter(ee=>ee.length>0).map(ee=>{const Q=J.coordinatesConverter.convertModelPositionToViewPosition(new mt(ee.startLineNumber,1)),H=J.coordinatesConverter.convertModelPositionToViewPosition(new mt(ee.endLineNumberExclusive,1)),q=H.lineNumber-Q.lineNumber;return new ZBe(Q.lineNumber,H.lineNumber,q,j.toString())}):[]}const P=M((T||[]).map(N=>N.lineRangeMapping.original),D.removeColor,this._editors.original),F=M((T||[]).map(N=>N.lineRangeMapping.modified),D.insertColor,this._editors.modified);m?.setZones(P),v?.setZones(F)})),p.add(Tr(A=>{const D=this._rootHeight.read(A),T=this._rootWidth.read(A),M=this._modifiedEditorLayoutInfo.read(A);if(M){const P=e1.ENTIRE_DIFF_OVERVIEW_WIDTH-2*e1.ONE_OVERVIEW_WIDTH;m.setLayout({top:0,height:D,right:P+e1.ONE_OVERVIEW_WIDTH,width:e1.ONE_OVERVIEW_WIDTH}),v.setLayout({top:0,height:D,right:0,width:e1.ONE_OVERVIEW_WIDTH});const F=this._editors.modifiedScrollTop.read(A),N=this._editors.modifiedScrollHeight.read(A),j=this._editors.modified.getOption(104),W=new sge(j.verticalHasArrows?j.arrowSize:0,j.verticalScrollbarSize,0,M.height,N,F);d.setTop(W.getSliderPosition()),d.setHeight(W.getSliderSize())}else d.setTop(0),d.setHeight(0);h.style.height=D+"px",h.style.left=T-e1.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",d.setWidth(e1.ENTIRE_DIFF_OVERVIEW_WIDTH)}))}))}},e1=e,e.ONE_OVERVIEW_WIDTH=15,e.ENTIRE_DIFF_OVERVIEW_WIDTH=e.ONE_OVERVIEW_WIDTH*2,e),r8=e1=Agt([Dgt(6,Ru)],r8)}}),tte,gJt,XSe,aGn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js"(){var e;Fn(),MN(),ia(),Nt(),xs(),Sg(),Dn(),vT(),Cd(),bn(),tte=[],gJt=class extends St{constructor(t,n,i,r){super(),this._editors=t,this._diffModel=n,this._options=i,this._widget=r,this._selectedDiffs=Fi(this,o=>{const a=this._diffModel.read(o)?.diff.read(o);if(!a)return tte;const l=this._editors.modifiedSelections.read(o);if(l.every(h=>h.isEmpty()))return tte;const c=new sL(l.map(h=>Ur.fromRangeInclusive(h))),d=a.mappings.filter(h=>h.lineRangeMapping.innerChanges&&c.intersects(h.lineRangeMapping.modified)).map(h=>({mapping:h,rangeMappings:h.lineRangeMapping.innerChanges.filter(f=>l.some(p=>Re.areIntersecting(f.modifiedRange,p)))}));return d.length===0||d.every(h=>h.rangeMappings.length===0)?tte:d}),this._register(hm((o,s)=>{if(!this._options.shouldRenderOldRevertArrows.read(o))return;const a=this._diffModel.read(o),l=a?.diff.read(o);if(!a||!l||a.movedTextToCompare.read(o))return;const c=[],u=this._selectedDiffs.read(o),d=new Set(u.map(h=>h.mapping));if(u.length>0){const h=this._editors.modifiedSelections.read(o),f=s.add(new XSe(h[h.length-1].positionLineNumber,this._widget,u.flatMap(p=>p.rangeMappings),!0));this._editors.modified.addGlyphMarginWidget(f),c.push(f)}for(const h of l.mappings)if(!d.has(h)&&!h.lineRangeMapping.modified.isEmpty&&h.lineRangeMapping.innerChanges){const f=s.add(new XSe(h.lineRangeMapping.modified.startLineNumber,this._widget,h.lineRangeMapping,!1));this._editors.modified.addGlyphMarginWidget(f),c.push(f)}s.add(zi(()=>{for(const h of c)this._editors.modified.removeGlyphMarginWidget(h)}))}))}},XSe=(e=class extends St{getId(){return this._id}constructor(n,i,r,o){super(),this._lineNumber=n,this._widget=i,this._diffs=r,this._revertSelection=o,this._id=`revertButton${e.counter++}`,this._domNode=Co("div.revertButton",{title:this._revertSelection?R("revertSelectedChanges","Revert Selected Changes"):R("revertChange","Revert Change")},[gR(An.arrowRight)]).root,this._register(qt(this._domNode,kn.MOUSE_DOWN,s=>{s.button!==2&&(s.stopPropagation(),s.preventDefault())})),this._register(qt(this._domNode,kn.MOUSE_UP,s=>{s.stopPropagation(),s.preventDefault()})),this._register(qt(this._domNode,kn.CLICK,s=>{this._diffs instanceof Zy?this._widget.revert(this._diffs):this._widget.revertRangeMappings(this._diffs),s.stopPropagation(),s.preventDefault()}))}getDomNode(){return this._domNode}getPosition(){return{lane:tw.Right,range:{startColumn:1,startLineNumber:this._lineNumber,endColumn:1,endLineNumber:this._lineNumber},zIndex:10001}}},e.counter=0,e)}});function lGn(e,t,n){return R3n({debugName:()=>`Configuration Key "${e}"`},i=>n.onDidChangeConfiguration(r=>{r.affectsConfiguration(e)&&i(r)}),()=>n.getValue(e)??t)}function x1(e,t,n){const i=e.bindTo(t);return _Y({debugName:()=>`Set Context Key "${e.key}"`},r=>{i.set(n(r))})}var mJt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/observable/common/platformObservableUtils.js"(){xs(),vge()}}),Tgt,JSe,Pae,cGn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js"(){Un(),Nt(),xs(),HN(),pJt(),Su(),Hi(),bn(),li(),tl(),Tgt=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},JSe=function(e,t){return function(n,i){t(n,i,e)}},Pae=class extends St{get onDidContentSizeChange(){return this._onDidContentSizeChange.event}constructor(t,n,i,r,o,s,a){super(),this.originalEditorElement=t,this.modifiedEditorElement=n,this._options=i,this._argCodeEditorWidgetOptions=r,this._createInnerEditor=o,this._instantiationService=s,this._keybindingService=a,this.original=this._register(this._createLeftHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.originalEditor||{})),this.modified=this._register(this._createRightHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.modifiedEditor||{})),this._onDidContentSizeChange=this._register(new bt),this.modifiedScrollTop=Bs(this,this.modified.onDidScrollChange,()=>this.modified.getScrollTop()),this.modifiedScrollHeight=Bs(this,this.modified.onDidScrollChange,()=>this.modified.getScrollHeight()),this.modifiedObs=dv(this.modified),this.originalObs=dv(this.original),this.modifiedModel=this.modifiedObs.model,this.modifiedSelections=Bs(this,this.modified.onDidChangeCursorSelection,()=>this.modified.getSelections()??[]),this.modifiedCursor=w0({owner:this,equalsFn:mt.equals},l=>this.modifiedSelections.read(l)[0]?.getPosition()??new mt(1,1)),this.originalCursor=Bs(this,this.original.onDidChangeCursorPosition,()=>this.original.getPosition()??new mt(1,1)),this._argCodeEditorWidgetOptions=null,this._register(wY({createEmptyChangeSummary:()=>({}),handleChange:(l,c)=>(l.didChange(i.editorOptions)&&Object.assign(c,l.change.changedOptions),!0)},(l,c)=>{i.editorOptions.read(l),this._options.renderSideBySide.read(l),this.modified.updateOptions(this._adjustOptionsForRightHandSide(l,c)),this.original.updateOptions(this._adjustOptionsForLeftHandSide(l,c))}))}_createLeftHandSideEditor(t,n){const i=this._adjustOptionsForLeftHandSide(void 0,t),r=this._constructInnerEditor(this._instantiationService,this.originalEditorElement,i,n);return r.setContextValue("isInDiffLeftEditor",!0),r}_createRightHandSideEditor(t,n){const i=this._adjustOptionsForRightHandSide(void 0,t),r=this._constructInnerEditor(this._instantiationService,this.modifiedEditorElement,i,n);return r.setContextValue("isInDiffRightEditor",!0),r}_constructInnerEditor(t,n,i,r){const o=this._createInnerEditor(t,n,i,r);return this._register(o.onDidContentSizeChange(s=>{const a=this.original.getContentWidth()+this.modified.getContentWidth()+r8.ENTIRE_DIFF_OVERVIEW_WIDTH,l=Math.max(this.modified.getContentHeight(),this.original.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:l,contentWidth:a,contentHeightChanged:s.contentHeightChanged,contentWidthChanged:s.contentWidthChanged})})),o}_adjustOptionsForLeftHandSide(t,n){const i=this._adjustOptionsForSubEditor(n);return this._options.renderSideBySide.get()?(i.unicodeHighlight=this._options.editorOptions.get().unicodeHighlight||{},i.wordWrapOverride1=this._options.diffWordWrap.get()):(i.wordWrapOverride1="off",i.wordWrapOverride2="off",i.stickyScroll={enabled:!1},i.unicodeHighlight={nonBasicASCII:!1,ambiguousCharacters:!1,invisibleCharacters:!1}),i.glyphMargin=this._options.renderSideBySide.get(),n.originalAriaLabel&&(i.ariaLabel=n.originalAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.readOnly=!this._options.originalEditable.get(),i.dropIntoEditor={enabled:!i.readOnly},i.extraEditorClassName="original-in-monaco-diff-editor",i}_adjustOptionsForRightHandSide(t,n){const i=this._adjustOptionsForSubEditor(n);return n.modifiedAriaLabel&&(i.ariaLabel=n.modifiedAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.wordWrapOverride1=this._options.diffWordWrap.get(),i.revealHorizontalRightPadding=I_.revealHorizontalRightPadding.defaultValue+r8.ENTIRE_DIFF_OVERVIEW_WIDTH,i.scrollbar.verticalHasArrows=!1,i.extraEditorClassName="modified-in-monaco-diff-editor",i}_adjustOptionsForSubEditor(t){const n={...t,dimension:{height:0,width:0}};return n.inDiffEditor=!0,n.automaticLayout=!1,n.scrollbar={...n.scrollbar||{}},n.folding=!1,n.codeLens=this._options.diffCodeLens.get(),n.fixedOverflowWidgets=!0,n.minimap={...n.minimap||{}},n.minimap.enabled=!1,this._options.hideUnchangedRegions.get()?n.stickyScroll={enabled:!1}:n.stickyScroll=this._options.editorOptions.get().stickyScroll,n}_updateAriaLabel(t){t||(t="");const n=R("diff-aria-navigation-tip"," use {0} to open the accessibility help.",this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp")?.getAriaLabel());return this._options.accessibilityVerbose.get()?t+n:t?t.replaceAll(n,""):""}},Pae=Tgt([JSe(5,ji),JSe(6,Cs)],Pae)}}),vJt,uGn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/delegatingEditorImpl.js"(){var e;Un(),Nt(),vJt=(e=class extends St{constructor(){super(...arguments),this._id=++e.idCounter,this._onDidDispose=this._register(new bt),this.onDidDispose=this._onDidDispose.event}getId(){return this.getEditorType()+":v2:"+this._id}getVisibleColumnFromPosition(n){return this._targetEditor.getVisibleColumnFromPosition(n)}getPosition(){return this._targetEditor.getPosition()}setPosition(n,i="api"){this._targetEditor.setPosition(n,i)}revealLine(n,i=0){this._targetEditor.revealLine(n,i)}revealLineInCenter(n,i=0){this._targetEditor.revealLineInCenter(n,i)}revealLineInCenterIfOutsideViewport(n,i=0){this._targetEditor.revealLineInCenterIfOutsideViewport(n,i)}revealLineNearTop(n,i=0){this._targetEditor.revealLineNearTop(n,i)}revealPosition(n,i=0){this._targetEditor.revealPosition(n,i)}revealPositionInCenter(n,i=0){this._targetEditor.revealPositionInCenter(n,i)}revealPositionInCenterIfOutsideViewport(n,i=0){this._targetEditor.revealPositionInCenterIfOutsideViewport(n,i)}revealPositionNearTop(n,i=0){this._targetEditor.revealPositionNearTop(n,i)}getSelection(){return this._targetEditor.getSelection()}getSelections(){return this._targetEditor.getSelections()}setSelection(n,i="api"){this._targetEditor.setSelection(n,i)}setSelections(n,i="api"){this._targetEditor.setSelections(n,i)}revealLines(n,i,r=0){this._targetEditor.revealLines(n,i,r)}revealLinesInCenter(n,i,r=0){this._targetEditor.revealLinesInCenter(n,i,r)}revealLinesInCenterIfOutsideViewport(n,i,r=0){this._targetEditor.revealLinesInCenterIfOutsideViewport(n,i,r)}revealLinesNearTop(n,i,r=0){this._targetEditor.revealLinesNearTop(n,i,r)}revealRange(n,i=0,r=!1,o=!0){this._targetEditor.revealRange(n,i,r,o)}revealRangeInCenter(n,i=0){this._targetEditor.revealRangeInCenter(n,i)}revealRangeInCenterIfOutsideViewport(n,i=0){this._targetEditor.revealRangeInCenterIfOutsideViewport(n,i)}revealRangeNearTop(n,i=0){this._targetEditor.revealRangeNearTop(n,i)}revealRangeNearTopIfOutsideViewport(n,i=0){this._targetEditor.revealRangeNearTopIfOutsideViewport(n,i)}revealRangeAtTop(n,i=0){this._targetEditor.revealRangeAtTop(n,i)}getSupportedActions(){return this._targetEditor.getSupportedActions()}focus(){this._targetEditor.focus()}trigger(n,i,r){this._targetEditor.trigger(n,i,r)}createDecorationsCollection(n){return this._targetEditor.createDecorationsCollection(n)}changeDecorations(n){return this._targetEditor.changeDecorations(n)}},e.idCounter=0,e)}});function dGn(e,t){return e.mappings.every(n=>hGn(n.lineRangeMapping)||fGn(n.lineRangeMapping)||t&&WUe(n.lineRangeMapping))}function hGn(e){return e.original.length===0}function fGn(e){return e.modified.length===0}function kgt(e,t){return{enableSplitViewResizing:Bi(e.enableSplitViewResizing,t.enableSplitViewResizing),splitViewDefaultRatio:R7n(e.splitViewDefaultRatio,.5,.1,.9),renderSideBySide:Bi(e.renderSideBySide,t.renderSideBySide),renderMarginRevertIcon:Bi(e.renderMarginRevertIcon,t.renderMarginRevertIcon),maxComputationTime:YM(e.maxComputationTime,t.maxComputationTime,0,1073741824),maxFileSize:YM(e.maxFileSize,t.maxFileSize,0,1073741824),ignoreTrimWhitespace:Bi(e.ignoreTrimWhitespace,t.ignoreTrimWhitespace),renderIndicators:Bi(e.renderIndicators,t.renderIndicators),originalEditable:Bi(e.originalEditable,t.originalEditable),diffCodeLens:Bi(e.diffCodeLens,t.diffCodeLens),renderOverviewRuler:Bi(e.renderOverviewRuler,t.renderOverviewRuler),diffWordWrap:Xl(e.diffWordWrap,t.diffWordWrap,["off","on","inherit"]),diffAlgorithm:Xl(e.diffAlgorithm,t.diffAlgorithm,["legacy","advanced"],{smart:"legacy",experimental:"advanced"}),accessibilityVerbose:Bi(e.accessibilityVerbose,t.accessibilityVerbose),experimental:{showMoves:Bi(e.experimental?.showMoves,t.experimental.showMoves),showEmptyDecorations:Bi(e.experimental?.showEmptyDecorations,t.experimental.showEmptyDecorations),useTrueInlineView:Bi(e.experimental?.useTrueInlineView,t.experimental.useTrueInlineView)},hideUnchangedRegions:{enabled:Bi(e.hideUnchangedRegions?.enabled??e.experimental?.collapseUnchangedRegions,t.hideUnchangedRegions.enabled),contextLineCount:YM(e.hideUnchangedRegions?.contextLineCount,t.hideUnchangedRegions.contextLineCount,0,1073741824),minimumLineCount:YM(e.hideUnchangedRegions?.minimumLineCount,t.hideUnchangedRegions.minimumLineCount,0,1073741824),revealLineCount:YM(e.hideUnchangedRegions?.revealLineCount,t.hideUnchangedRegions.revealLineCount,0,1073741824)},isInEmbeddedEditor:Bi(e.isInEmbeddedEditor,t.isInEmbeddedEditor),onlyShowAccessibleDiffViewer:Bi(e.onlyShowAccessibleDiffViewer,t.onlyShowAccessibleDiffViewer),renderSideBySideInlineBreakpoint:YM(e.renderSideBySideInlineBreakpoint,t.renderSideBySideInlineBreakpoint,0,1073741824),useInlineViewWhenSpaceIsLimited:Bi(e.useInlineViewWhenSpaceIsLimited,t.useInlineViewWhenSpaceIsLimited),renderGutterMenu:Bi(e.renderGutterMenu,t.renderGutterMenu),compactMode:Bi(e.compactMode,t.compactMode)}}var Igt,Lgt,Mae,pGn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/diffEditorOptions.js"(){xs(),vge(),UUe(),pqt(),Su(),Cm(),Igt=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},Lgt=function(e,t){return function(n,i){t(n,i,e)}},Mae=class{get editorOptions(){return this._options}constructor(t,n){this._accessibilityService=n,this._diffEditorWidth=mo(this,0),this._screenReaderMode=Bs(this,this._accessibilityService.onDidChangeScreenReaderOptimized,()=>this._accessibilityService.isScreenReaderOptimized()),this.couldShowInlineViewBecauseOfSize=Fi(this,r=>this._options.read(r).renderSideBySide&&this._diffEditorWidth.read(r)<=this._options.read(r).renderSideBySideInlineBreakpoint),this.renderOverviewRuler=Fi(this,r=>this._options.read(r).renderOverviewRuler),this.renderSideBySide=Fi(this,r=>this.compactMode.read(r)&&this.shouldRenderInlineViewInSmartMode.read(r)?!1:this._options.read(r).renderSideBySide&&!(this._options.read(r).useInlineViewWhenSpaceIsLimited&&this.couldShowInlineViewBecauseOfSize.read(r)&&!this._screenReaderMode.read(r))),this.readOnly=Fi(this,r=>this._options.read(r).readOnly),this.shouldRenderOldRevertArrows=Fi(this,r=>!(!this._options.read(r).renderMarginRevertIcon||!this.renderSideBySide.read(r)||this.readOnly.read(r)||this.shouldRenderGutterMenu.read(r))),this.shouldRenderGutterMenu=Fi(this,r=>this._options.read(r).renderGutterMenu),this.renderIndicators=Fi(this,r=>this._options.read(r).renderIndicators),this.enableSplitViewResizing=Fi(this,r=>this._options.read(r).enableSplitViewResizing),this.splitViewDefaultRatio=Fi(this,r=>this._options.read(r).splitViewDefaultRatio),this.ignoreTrimWhitespace=Fi(this,r=>this._options.read(r).ignoreTrimWhitespace),this.maxComputationTimeMs=Fi(this,r=>this._options.read(r).maxComputationTime),this.showMoves=Fi(this,r=>this._options.read(r).experimental.showMoves&&this.renderSideBySide.read(r)),this.isInEmbeddedEditor=Fi(this,r=>this._options.read(r).isInEmbeddedEditor),this.diffWordWrap=Fi(this,r=>this._options.read(r).diffWordWrap),this.originalEditable=Fi(this,r=>this._options.read(r).originalEditable),this.diffCodeLens=Fi(this,r=>this._options.read(r).diffCodeLens),this.accessibilityVerbose=Fi(this,r=>this._options.read(r).accessibilityVerbose),this.diffAlgorithm=Fi(this,r=>this._options.read(r).diffAlgorithm),this.showEmptyDecorations=Fi(this,r=>this._options.read(r).experimental.showEmptyDecorations),this.onlyShowAccessibleDiffViewer=Fi(this,r=>this._options.read(r).onlyShowAccessibleDiffViewer),this.compactMode=Fi(this,r=>this._options.read(r).compactMode),this.trueInlineDiffRenderingEnabled=Fi(this,r=>this._options.read(r).experimental.useTrueInlineView),this.useTrueInlineDiffRendering=Fi(this,r=>!this.renderSideBySide.read(r)&&this.trueInlineDiffRenderingEnabled.read(r)),this.hideUnchangedRegions=Fi(this,r=>this._options.read(r).hideUnchangedRegions.enabled),this.hideUnchangedRegionsRevealLineCount=Fi(this,r=>this._options.read(r).hideUnchangedRegions.revealLineCount),this.hideUnchangedRegionsContextLineCount=Fi(this,r=>this._options.read(r).hideUnchangedRegions.contextLineCount),this.hideUnchangedRegionsMinimumLineCount=Fi(this,r=>this._options.read(r).hideUnchangedRegions.minimumLineCount),this._model=mo(this,void 0),this.shouldRenderInlineViewInSmartMode=this._model.map(this,r=>j3n(this,o=>{const s=r?.diff.read(o);return s?dGn(s,this.trueInlineDiffRenderingEnabled.read(o)):void 0})).flatten().map(this,r=>!!r),this.inlineViewHideOriginalLineNumbers=this.compactMode;const i={...t,...kgt(t,lh)};this._options=mo(this,i)}updateOptions(t){const n=kgt(t,this._options.get()),i={...this._options.get(),...t,...n};this._options.set(i,void 0,{changedOptions:t})}setWidth(t){this._diffEditorWidth.set(t,void 0)}setModel(t){this._model.set(t,void 0)}},Mae=Igt([Lgt(1,pm)],Mae)}});function gGn(e){return e.mappings.map(t=>{const n=t.lineRangeMapping;let i,r,o,s,a=n.innerChanges;return n.original.isEmpty?(i=n.original.startLineNumber-1,r=0,a=void 0):(i=n.original.startLineNumber,r=n.original.endLineNumberExclusive-1),n.modified.isEmpty?(o=n.modified.startLineNumber-1,s=0,a=void 0):(o=n.modified.startLineNumber,s=n.modified.endLineNumberExclusive-1),{originalStartLineNumber:i,originalEndLineNumber:r,modifiedStartLineNumber:o,modifiedEndLineNumber:s,charChanges:a?.map(l=>({originalStartLineNumber:l.originalRange.startLineNumber,originalStartColumn:l.originalRange.startColumn,originalEndLineNumber:l.originalRange.endLineNumber,originalEndColumn:l.originalRange.endColumn,modifiedStartLineNumber:l.modifiedRange.startLineNumber,modifiedStartColumn:l.modifiedRange.startColumn,modifiedEndLineNumber:l.modifiedRange.endLineNumber,modifiedEndColumn:l.modifiedRange.endColumn}))}})}var Ngt,X5,ax,GUe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/diffEditorWidget.js"(){Fn(),Y0(),Vi(),Un(),Nt(),xs(),Vv(),Bqn(),mr(),Ec(),q7(),Rge(),qqn(),eGn(),lJt(),UUe(),oGn(),fJt(),rJt(),pJt(),aGn(),Cw(),LY(),mJt(),Hi(),Dn(),Dge(),ls(),rF(),er(),li(),H7(),$C(),cGn(),uGn(),pGn(),XXt(),Ngt=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},X5=function(e,t){return function(n,i){t(n,i,e)}},ax=class extends vJt{get onDidContentSizeChange(){return this._editors.onDidContentSizeChange}constructor(t,n,i,r,o,s,a,l){super(),this._domElement=t,this._parentContextKeyService=r,this._parentInstantiationService=o,this._accessibilitySignalService=a,this._editorProgressService=l,this.elements=Co("div.monaco-diff-editor.side-by-side",{style:{position:"relative",height:"100%"}},[Co("div.editor.original@original",{style:{position:"absolute",height:"100%"}}),Co("div.editor.modified@modified",{style:{position:"absolute",height:"100%"}}),Co("div.accessibleDiffViewer@accessibleDiffViewer",{style:{position:"absolute",height:"100%"}})]),this._diffModelSrc=this._register(tG(this,void 0)),this._diffModel=Fi(this,w=>this._diffModelSrc.read(w)?.object),this.onDidChangeModel=On.fromObservableLight(this._diffModel),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._domElement)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new iF([ur,this._contextKeyService]))),this._boundarySashes=mo(this,void 0),this._accessibleDiffViewerShouldBeVisible=mo(this,!1),this._accessibleDiffViewerVisible=Fi(this,w=>this._options.onlyShowAccessibleDiffViewer.read(w)?!0:this._accessibleDiffViewerShouldBeVisible.read(w)),this._movedBlocksLinesPart=mo(this,void 0),this._layoutInfo=Fi(this,w=>{const E=this._rootSizeObserver.width.read(w),A=this._rootSizeObserver.height.read(w);this._rootSizeObserver.automaticLayout?this.elements.root.style.height="100%":this.elements.root.style.height=A+"px";const D=this._sash.read(w),T=this._gutter.read(w),M=T?.width.read(w)??0,P=this._overviewRulerPart.read(w)?.width??0;let F,N,j,W,J;if(!!D){const Q=D.sashLeft.read(w),H=this._movedBlocksLinesPart.read(w)?.width.read(w)??0;F=0,N=Q-M-H,J=Q-M,j=Q,W=E-j-P}else{J=0;const Q=this._options.inlineViewHideOriginalLineNumbers.read(w);F=M,Q?N=0:N=Math.max(5,this._editors.originalObs.layoutInfoDecorationsLeft.read(w)),j=M+N,W=E-j-P}return this.elements.original.style.left=F+"px",this.elements.original.style.width=N+"px",this._editors.original.layout({width:N,height:A},!0),T?.layout(J),this.elements.modified.style.left=j+"px",this.elements.modified.style.width=W+"px",this._editors.modified.layout({width:W,height:A},!0),{modifiedEditor:this._editors.modified.getLayoutInfo(),originalEditor:this._editors.original.getLayoutInfo()}}),this._diffValue=this._diffModel.map((w,E)=>w?.diff.read(E)),this.onDidUpdateDiff=On.fromObservableLight(this._diffValue),s.willCreateDiffEditor(),this._contextKeyService.createKey("isInDiffEditor",!0),this._domElement.appendChild(this.elements.root),this._register(zi(()=>this.elements.root.remove())),this._rootSizeObserver=this._register(new HUe(this.elements.root,n.dimension)),this._rootSizeObserver.setAutomaticLayout(n.automaticLayout??!1),this._options=this._instantiationService.createInstance(Mae,n),this._register(Tr(w=>{this._options.setWidth(this._rootSizeObserver.width.read(w))})),this._contextKeyService.createKey(Ge.isEmbeddedDiffEditor.key,!1),this._register(x1(Ge.isEmbeddedDiffEditor,this._contextKeyService,w=>this._options.isInEmbeddedEditor.read(w))),this._register(x1(Ge.comparingMovedCode,this._contextKeyService,w=>!!this._diffModel.read(w)?.movedTextToCompare.read(w))),this._register(x1(Ge.diffEditorRenderSideBySideInlineBreakpointReached,this._contextKeyService,w=>this._options.couldShowInlineViewBecauseOfSize.read(w))),this._register(x1(Ge.diffEditorInlineMode,this._contextKeyService,w=>!this._options.renderSideBySide.read(w))),this._register(x1(Ge.hasChanges,this._contextKeyService,w=>(this._diffModel.read(w)?.diff.read(w)?.mappings.length??0)>0)),this._editors=this._register(this._instantiationService.createInstance(Pae,this.elements.original,this.elements.modified,this._options,i,(w,E,A,D)=>this._createInnerEditor(w,E,A,D))),this._register(x1(Ge.diffEditorOriginalWritable,this._contextKeyService,w=>this._options.originalEditable.read(w))),this._register(x1(Ge.diffEditorModifiedWritable,this._contextKeyService,w=>!this._options.readOnly.read(w))),this._register(x1(Ge.diffEditorOriginalUri,this._contextKeyService,w=>this._diffModel.read(w)?.model.original.uri.toString()??"")),this._register(x1(Ge.diffEditorModifiedUri,this._contextKeyService,w=>this._diffModel.read(w)?.model.modified.uri.toString()??"")),this._overviewRulerPart=cp(this,w=>this._options.renderOverviewRuler.read(w)?this._instantiationService.createInstance(Qm(r8,w),this._editors,this.elements.root,this._diffModel,this._rootSizeObserver.width,this._rootSizeObserver.height,this._layoutInfo.map(E=>E.modifiedEditor)):void 0).recomputeInitiallyAndOnChange(this._store);const c={height:this._rootSizeObserver.height,width:this._rootSizeObserver.width.map((w,E)=>w-(this._overviewRulerPart.read(E)?.width??0))};this._sashLayout=new aJt(this._options,c),this._sash=cp(this,w=>{const E=this._options.renderSideBySide.read(w);return this.elements.root.classList.toggle("side-by-side",E),E?new $Ue(this.elements.root,c,this._options.enableSplitViewResizing,this._boundarySashes,this._sashLayout.sashLeft,()=>this._sashLayout.resetSash()):void 0}).recomputeInitiallyAndOnChange(this._store);const u=cp(this,w=>this._instantiationService.createInstance(Qm(p$,w),this._editors,this._diffModel,this._options)).recomputeInitiallyAndOnChange(this._store);cp(this,w=>this._instantiationService.createInstance(Qm(sJt,w),this._editors,this._diffModel,this._options,this)).recomputeInitiallyAndOnChange(this._store);const d=new Set,h=new Set;let f=!1;const p=cp(this,w=>this._instantiationService.createInstance(Qm(Iae,w),Yi(this._domElement),this._editors,this._diffModel,this._options,this,()=>f||u.get().isUpdatingHiddenAreas,d,h)).recomputeInitiallyAndOnChange(this._store),g=Fi(this,w=>{const E=p.read(w).viewZones.read(w).orig,A=u.read(w).viewZones.read(w).origViewZones;return E.concat(A)}),m=Fi(this,w=>{const E=p.read(w).viewZones.read(w).mod,A=u.read(w).viewZones.read(w).modViewZones;return E.concat(A)});this._register(Nde(this._editors.original,g,w=>{f=w},d));let v;this._register(Nde(this._editors.modified,m,w=>{f=w,f?v=VD.capture(this._editors.modified):(v?.restore(this._editors.modified),v=void 0)},h)),this._accessibleDiffViewer=cp(this,w=>this._instantiationService.createInstance(Qm(nI,w),this.elements.accessibleDiffViewer,this._accessibleDiffViewerVisible,(E,A)=>this._accessibleDiffViewerShouldBeVisible.set(E,A),this._options.onlyShowAccessibleDiffViewer.map(E=>!E),this._rootSizeObserver.width,this._rootSizeObserver.height,this._diffModel.map((E,A)=>E?.diff.read(A)?.mappings.map(D=>D.lineRangeMapping)),new YXt(this._editors))).recomputeInitiallyAndOnChange(this._store);const y=this._accessibleDiffViewerVisible.map(w=>w?"hidden":"visible");this._register(HD(this.elements.modified,{visibility:y})),this._register(HD(this.elements.original,{visibility:y})),this._createDiffEditorContributions(),s.addDiffEditor(this),this._gutter=cp(this,w=>this._options.shouldRenderGutterMenu.read(w)?this._instantiationService.createInstance(Qm(Nae,w),this.elements.root,this._diffModel,this._editors,this._options,this._sashLayout,this._boundarySashes):void 0),this._register(F7(this._layoutInfo)),cp(this,w=>new(Qm(h$,w))(this.elements.root,this._diffModel,this._layoutInfo.map(E=>E.originalEditor),this._layoutInfo.map(E=>E.modifiedEditor),this._editors)).recomputeInitiallyAndOnChange(this._store,w=>{this._movedBlocksLinesPart.set(w,void 0)}),this._register(On.runAndSubscribe(this._editors.modified.onDidChangeCursorPosition,w=>this._handleCursorPositionChange(w,!0))),this._register(On.runAndSubscribe(this._editors.original.onDidChangeCursorPosition,w=>this._handleCursorPositionChange(w,!1)));const b=this._diffModel.map(this,(w,E)=>{if(w)return w.diff.read(E)===void 0&&!w.isDiffUpToDate.read(E)});this._register(hm((w,E)=>{if(b.read(w)===!0){const A=this._editorProgressService.show(!0,1e3);E.add(zi(()=>A.done()))}})),this._register(hm((w,E)=>{E.add(new(Qm(gJt,w))(this._editors,this._diffModel,this._options,this))})),this._register(hm((w,E)=>{const A=this._diffModel.read(w);if(A)for(const D of[A.model.original,A.model.modified])E.add(D.onWillDispose(T=>{Mr(new ys("TextModel got disposed before DiffEditorWidget model got reset")),this.setModel(null)}))})),this._register(Tr(w=>{this._options.setModel(this._diffModel.read(w))}))}_createInnerEditor(t,n,i,r){return t.createInstance(i8,n,i,r)}_createDiffEditorContributions(){const t=uR.getDiffEditorContributions();for(const n of t)try{this._register(this._instantiationService.createInstance(n.ctor,this))}catch(i){Mr(i)}}get _targetEditor(){return this._editors.modified}getEditorType(){return U7.IDiffEditor}layout(t){this._rootSizeObserver.observe(t)}hasTextFocus(){return this._editors.original.hasTextFocus()||this._editors.modified.hasTextFocus()}saveViewState(){const t=this._editors.original.saveViewState(),n=this._editors.modified.saveViewState();return{original:t,modified:n,modelState:this._diffModel.get()?.serializeState()}}restoreViewState(t){if(t&&t.original&&t.modified){const n=t;this._editors.original.restoreViewState(n.original),this._editors.modified.restoreViewState(n.modified),n.modelState&&this._diffModel.get()?.restoreSerializedState(n.modelState)}}handleInitialized(){this._editors.original.handleInitialized(),this._editors.modified.handleInitialized()}createViewModel(t){return this._instantiationService.createInstance(Tae,t,this._options)}getModel(){return this._diffModel.get()?.model??null}setModel(t){const n=t?"model"in t?d$.create(t).createNewRef(this):d$.create(this.createViewModel(t),this):null;this.setDiffModel(n)}setDiffModel(t,n){const i=this._diffModel.get();!t&&i&&this._accessibleDiffViewer.get().close(),this._diffModel.get()!==t?.object&&i2(n,r=>{const o=t?.object;Bs.batchEventsGlobally(r,()=>{this._editors.original.setModel(o?o.model.original:null),this._editors.modified.setModel(o?o.model.modified:null)});const s=this._diffModelSrc.get()?.createNewRef(this);this._diffModelSrc.set(t?.createNewRef(this),r),setTimeout(()=>{s?.dispose()},0)})}updateOptions(t){this._options.updateOptions(t)}getContainerDomNode(){return this._domElement}getOriginalEditor(){return this._editors.original}getModifiedEditor(){return this._editors.modified}getLineChanges(){const t=this._diffModel.get()?.diff.get();return t?gGn(t):null}revert(t){const n=this._diffModel.get();!n||!n.isDiffUpToDate.get()||this._editors.modified.executeEdits("diffEditor",[{range:t.modified.toExclusiveRange(),text:n.model.original.getValueInRange(t.original.toExclusiveRange())}])}revertRangeMappings(t){const n=this._diffModel.get();if(!n||!n.isDiffUpToDate.get())return;const i=t.map(r=>({range:r.modifiedRange,text:n.model.original.getValueInRange(r.originalRange)}));this._editors.modified.executeEdits("diffEditor",i)}_goTo(t){this._editors.modified.setPosition(new mt(t.lineRangeMapping.modified.startLineNumber,1)),this._editors.modified.revealRangeInCenter(t.lineRangeMapping.modified.toExclusiveRange())}goToDiff(t){const n=this._diffModel.get()?.diff.get()?.mappings;if(!n||n.length===0)return;const i=this._editors.modified.getPosition().lineNumber;let r;t==="next"?r=n.find(o=>o.lineRangeMapping.modified.startLineNumber>i)??n[0]:r=Kq(n,o=>o.lineRangeMapping.modified.startLineNumber<i)??n[n.length-1],this._goTo(r),r.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(Py.diffLineDeleted,{source:"diffEditor.goToDiff"}):r.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(Py.diffLineInserted,{source:"diffEditor.goToDiff"}):r&&this._accessibilitySignalService.playSignal(Py.diffLineModified,{source:"diffEditor.goToDiff"})}revealFirstDiff(){const t=this._diffModel.get();t&&this.waitForDiff().then(()=>{const n=t.diff.get()?.mappings;!n||n.length===0||this._goTo(n[0])})}accessibleDiffViewerNext(){this._accessibleDiffViewer.get().next()}accessibleDiffViewerPrev(){this._accessibleDiffViewer.get().prev()}async waitForDiff(){const t=this._diffModel.get();t&&await t.waitForDiff()}mapToOtherSide(){const t=this._editors.modified.hasWidgetFocus(),n=t?this._editors.modified:this._editors.original,i=t?this._editors.original:this._editors.modified;let r;const o=n.getSelection();if(o){const s=this._diffModel.get()?.diff.get()?.mappings.map(a=>t?a.lineRangeMapping.flip():a.lineRangeMapping);if(s){const a=agt(o.getStartPosition(),s),l=agt(o.getEndPosition(),s);r=Re.plusRange(a,l)}}return{destination:i,destinationSelection:r}}switchSide(){const{destination:t,destinationSelection:n}=this.mapToOtherSide();t.focus(),n&&t.setSelection(n)}exitCompareMove(){const t=this._diffModel.get();t&&t.movedTextToCompare.set(void 0,void 0)}collapseAllUnchangedRegions(){const t=this._diffModel.get()?.unchangedRegions.get();t&&Al(n=>{for(const i of t)i.collapseAll(n)})}showAllUnchangedRegions(){const t=this._diffModel.get()?.unchangedRegions.get();t&&Al(n=>{for(const i of t)i.showAll(n)})}_handleCursorPositionChange(t,n){if(t?.reason===3){const i=this._diffModel.get()?.diff.get()?.mappings.find(r=>n?r.lineRangeMapping.modified.contains(t.position.lineNumber):r.lineRangeMapping.original.contains(t.position.lineNumber));i?.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(Py.diffLineDeleted,{source:"diffEditor.cursorPositionChanged"}):i?.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(Py.diffLineInserted,{source:"diffEditor.cursorPositionChanged"}):i&&this._accessibilitySignalService.playSignal(Py.diffLineModified,{source:"diffEditor.cursorPositionChanged"})}}},ax=Ngt([X5(3,ur),X5(4,ji),X5(5,Jo),X5(6,xT),X5(7,jD)],ax)}});function mGn(e){if(!e){if(b6e)return;b6e=!0}KVn(e||la.document.body)}function yJt(e,t,n,i,r){if(n=n||"",!i){const o=n.indexOf(`
`);let s=n;return o!==-1&&(s=n.substring(0,o)),Pgt(e,n,t.createByFilepathOrFirstLine(r||null,s),r)}return Pgt(e,n,t.createById(i),r)}function Pgt(e,t,n,i){return e.createModel(t,n,i)}var nte,Va,Mgt,b6e,LV,Oae,Rae,vGn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/standaloneCodeEditor.js"(){Ih(),Nt(),Ec(),Rge(),GZt(),Age(),V7(),ha(),Ks(),sa(),er(),xg(),li(),tl(),yf(),Ys(),Cm(),bT(),zN(),$C(),Kf(),Kd(),t$t(),G0(),lu(),Eo(),GUe(),rF(),wg(),Lh(),PN(),_w(),nte=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},Va=function(e,t){return function(n,i){t(n,i,e)}},Mgt=0,b6e=!1,LV=class extends i8{constructor(t,n,i,r,o,s,a,l,c,u,d,h,f){const p={...n};p.ariaLabel=p.ariaLabel||M4e.editorViewAccessibleLabel,super(t,p,{},i,r,o,s,c,u,d,h,f),l instanceof RO?this._standaloneKeybindingService=l:this._standaloneKeybindingService=null,mGn(p.ariaContainerElement),U3n((g,m)=>i.createInstance(fR,g,m,{})),$3n(a)}addCommand(t,n,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const r="DYNAMIC_"+ ++Mgt,o=nn.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(r,t,n,o),r}createContextKey(t,n){return this._contextKeyService.createKey(t,n)}addAction(t){if(typeof t.id!="string"||typeof t.label!="string"||typeof t.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),St.None;const n=t.id,i=t.label,r=nn.and(nn.equals("editorId",this.getId()),nn.deserialize(t.precondition)),o=t.keybindings,s=nn.and(r,nn.deserialize(t.keybindingContext)),a=t.contextMenuGroupId||null,l=t.contextMenuOrder||0,c=(f,...p)=>Promise.resolve(t.run(this,...p)),u=new Jt,d=this.getId()+":"+n;if(u.add(Ro.registerCommand(d,c)),a){const f={command:{id:d,title:i},when:r,group:a,order:l};u.add(fd.appendMenuItem(Ti.EditorContext,f))}if(Array.isArray(o))for(const f of o)u.add(this._standaloneKeybindingService.addDynamicKeybinding(d,f,c,s));const h=new jUe(d,i,i,void 0,r,(...f)=>Promise.resolve(t.run(this,...f)),this._contextKeyService);return this._actions.set(n,h),u.add(zi(()=>{this._actions.delete(n)})),u}_triggerCommand(t,n){if(this._codeEditorService instanceof KH)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(t,n)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(t,n)}},LV=nte([Va(2,ji),Va(3,Jo),Va(4,Oa),Va(5,ur),Va(6,SC),Va(7,Cs),Va(8,Ru),Va(9,Cc),Va(10,pm),Va(11,yl),Va(12,gi)],LV),Oae=class extends LV{constructor(t,n,i,r,o,s,a,l,c,u,d,h,f,p,g,m){const v={...n};See(d,v,!1);const y=c.registerEditorContainer(t);typeof v.theme=="string"&&c.setTheme(v.theme),typeof v.autoDetectHighContrast<"u"&&c.setAutoDetectHighContrast(!!v.autoDetectHighContrast);const b=v.model;delete v.model,super(t,v,i,r,o,s,a,l,c,u,h,g,m),this._configurationService=d,this._standaloneThemeService=c,this._register(y);let w;if(typeof b>"u"){const E=p.getLanguageIdByMimeType(v.language)||v.language||xp;w=yJt(f,p,v.value||"",E,void 0),this._ownsModel=!0}else w=b,this._ownsModel=!1;if(this._attachModel(w),w){const E={oldModelUrl:null,newModelUrl:w.uri};this._onDidChangeModel.fire(E)}}dispose(){super.dispose()}updateOptions(t){See(this._configurationService,t,!1),typeof t.theme=="string"&&this._standaloneThemeService.setTheme(t.theme),typeof t.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!t.autoDetectHighContrast),super.updateOptions(t)}_postDetachModelCleanup(t){super._postDetachModelCleanup(t),t&&this._ownsModel&&(t.dispose(),this._ownsModel=!1)}},Oae=nte([Va(2,ji),Va(3,Jo),Va(4,Oa),Va(5,ur),Va(6,SC),Va(7,Cs),Va(8,Fv),Va(9,Cc),Va(10,co),Va(11,pm),Va(12,Ua),Va(13,al),Va(14,yl),Va(15,gi)],Oae),Rae=class extends ax{constructor(t,n,i,r,o,s,a,l,c,u,d,h){const f={...n};See(l,f,!0);const p=s.registerEditorContainer(t);typeof f.theme=="string"&&s.setTheme(f.theme),typeof f.autoDetectHighContrast<"u"&&s.setAutoDetectHighContrast(!!f.autoDetectHighContrast),super(t,f,{},r,i,o,h,u),this._configurationService=l,this._standaloneThemeService=s,this._register(p)}dispose(){super.dispose()}updateOptions(t){See(this._configurationService,t,!0),typeof t.theme=="string"&&this._standaloneThemeService.setTheme(t.theme),typeof t.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!t.autoDetectHighContrast),super.updateOptions(t)}_createInnerEditor(t,n,i){return t.createInstance(LV,n,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(t,n,i){return this.getModifiedEditor().addCommand(t,n,i)}createContextKey(t,n){return this.getModifiedEditor().createContextKey(t,n)}addAction(t){return this.getModifiedEditor().addAction(t)}},Rae=nte([Va(2,ji),Va(3,ur),Va(4,Jo),Va(5,Fv),Va(6,Cc),Va(7,co),Va(8,dm),Va(9,jD),Va(10,tE),Va(11,xT)],Rae)}}),yGn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/multiDiffEditor/style.css"(){}}),Ogt,exe,bJt,g$,_Jt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js"(){Fn(),ZWe(),ia(),Nt(),xs(),qC(),HN(),GUe(),jN(),Wge(),ha(),li(),uJt(),er(),H7(),Ogt=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},exe=function(e,t){return function(n,i){t(n,i,e)}},bJt=class{constructor(e,t){this.viewModel=e,this.deltaScrollVertical=t}getId(){return this.viewModel}},g$=class extends St{constructor(t,n,i,r,o){super(),this._container=t,this._overflowWidgetsDomNode=n,this._workbenchUIElementFactory=i,this._instantiationService=r,this._viewModel=mo(this,void 0),this._collapsed=Fi(this,l=>this._viewModel.read(l)?.collapsed.read(l)),this._editorContentHeight=mo(this,500),this.contentHeight=Fi(this,l=>(this._collapsed.read(l)?0:this._editorContentHeight.read(l))+this._outerEditorHeight),this._modifiedContentWidth=mo(this,0),this._modifiedWidth=mo(this,0),this._originalContentWidth=mo(this,0),this._originalWidth=mo(this,0),this.maxScroll=Fi(this,l=>{const c=this._modifiedContentWidth.read(l)-this._modifiedWidth.read(l),u=this._originalContentWidth.read(l)-this._originalWidth.read(l);return c>u?{maxScroll:c,width:this._modifiedWidth.read(l)}:{maxScroll:u,width:this._originalWidth.read(l)}}),this._elements=Co("div.multiDiffEntry",[Co("div.header@header",[Co("div.header-content",[Co("div.collapse-button@collapseButton"),Co("div.file-path",[Co("div.title.modified.show-file-icons@primaryPath",[]),Co("div.status.deleted@status",["R"]),Co("div.title.original.show-file-icons@secondaryPath",[])]),Co("div.actions@actions")])]),Co("div.editorParent",[Co("div.editorContainer@editor")])]),this.editor=this._register(this._instantiationService.createInstance(ax,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode},{})),this.isModifedFocused=dv(this.editor.getModifiedEditor()).isFocused,this.isOriginalFocused=dv(this.editor.getOriginalEditor()).isFocused,this.isFocused=Fi(this,l=>this.isModifedFocused.read(l)||this.isOriginalFocused.read(l)),this._resourceLabel=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.primaryPath)):void 0,this._resourceLabel2=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.secondaryPath)):void 0,this._dataStore=this._register(new Jt),this._headerHeight=40,this._lastScrollTop=-1,this._isSettingScrollTop=!1;const s=new lG(this._elements.collapseButton,{});this._register(Tr(l=>{s.element.className="",s.icon=this._collapsed.read(l)?An.chevronRight:An.chevronDown})),this._register(s.onDidClick(()=>{this._viewModel.get()?.collapsed.set(!this._collapsed.get(),void 0)})),this._register(Tr(l=>{this._elements.editor.style.display=this._collapsed.read(l)?"none":"block"})),this._register(this.editor.getModifiedEditor().onDidLayoutChange(l=>{const c=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(c,void 0)})),this._register(this.editor.getOriginalEditor().onDidLayoutChange(l=>{const c=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(c,void 0)})),this._register(this.editor.onDidContentSizeChange(l=>{eW(c=>{this._editorContentHeight.set(l.contentHeight,c),this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),c),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),c)})})),this._register(this.editor.getOriginalEditor().onDidScrollChange(l=>{if(this._isSettingScrollTop||!l.scrollTopChanged||!this._data)return;const c=l.scrollTop-this._lastScrollTop;this._data.deltaScrollVertical(c)})),this._register(Tr(l=>{const c=this._viewModel.read(l)?.isActive.read(l);this._elements.root.classList.toggle("active",c)})),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight,this._contextKeyService=this._register(o.createScoped(this._elements.actions));const a=this._register(this._instantiationService.createChild(new iF([ur,this._contextKeyService])));this._register(a.createInstance(f$,this._elements.actions,Ti.MultiDiffEditorFileToolbar,{actionRunner:this._register(new qUe(()=>this._viewModel.get()?.modifiedUri)),menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:l=>l.startsWith("navigation")},actionViewItemProvider:(l,c)=>_Gt(a,l,c)}))}setScrollLeft(t){this._modifiedContentWidth.get()-this._modifiedWidth.get()>this._originalContentWidth.get()-this._originalWidth.get()?this.editor.getModifiedEditor().setScrollLeft(t):this.editor.getOriginalEditor().setScrollLeft(t)}setData(t){this._data=t;function n(r){return{...r,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:"hidden",horizontal:"hidden",handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1}}if(!t){eW(r=>{this._viewModel.set(void 0,r),this.editor.setDiffModel(null,r),this._dataStore.clear()});return}const i=t.viewModel.documentDiffItem;if(eW(r=>{this._resourceLabel?.setUri(t.viewModel.modifiedUri??t.viewModel.originalUri,{strikethrough:t.viewModel.modifiedUri===void 0});let o=!1,s=!1,a=!1,l="";t.viewModel.modifiedUri&&t.viewModel.originalUri&&t.viewModel.modifiedUri.path!==t.viewModel.originalUri.path?(l="R",o=!0):t.viewModel.modifiedUri?t.viewModel.originalUri||(l="A",a=!0):(l="D",s=!0),this._elements.status.classList.toggle("renamed",o),this._elements.status.classList.toggle("deleted",s),this._elements.status.classList.toggle("added",a),this._elements.status.innerText=l,this._resourceLabel2?.setUri(o?t.viewModel.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(t.viewModel,r),this.editor.setDiffModel(t.viewModel.diffEditorViewModelRef,r),this.editor.updateOptions(n(i.options??{}))}),i.onOptionsDidChange&&this._dataStore.add(i.onOptionsDidChange(()=>{this.editor.updateOptions(n(i.options??{}))})),t.viewModel.isAlive.recomputeInitiallyAndOnChange(this._dataStore,r=>{r||this.setData(void 0)}),t.viewModel.documentDiffItem.contextKeys)for(const[r,o]of Object.entries(t.viewModel.documentDiffItem.contextKeys))this._contextKeyService.createKey(r,o)}render(t,n,i,r){this._elements.root.style.visibility="visible",this._elements.root.style.top=`${t.start}px`,this._elements.root.style.height=`${t.length}px`,this._elements.root.style.width=`${n}px`,this._elements.root.style.position="absolute";const o=t.length-this._headerHeight,s=Math.max(0,Math.min(r.start-t.start,o));this._elements.header.style.transform=`translateY(${s}px)`,eW(a=>{this.editor.layout({width:n-16-2,height:t.length-this._outerEditorHeight})});try{this._isSettingScrollTop=!0,this._lastScrollTop=i,this.editor.getOriginalEditor().setScrollTop(i)}finally{this._isSettingScrollTop=!1}this._elements.header.classList.toggle("shadow",s>0||i>0),this._elements.header.classList.toggle("collapsed",s===o)}hide(){this._elements.root.style.top="-100000px",this._elements.root.style.visibility="hidden"}},g$=Ogt([exe(3,ji),exe(4,ur)],g$)}}),wJt,bGn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/multiDiffEditor/objectPool.js"(){wJt=class{constructor(e){this._create=e,this._unused=new Set,this._used=new Set,this._itemData=new Map}getUnusedObj(e){let t;if(this._unused.size===0)t=this._create(e),this._itemData.set(t,e);else{const n=[...this._unused.values()];t=n.find(i=>this._itemData.get(i).getId()===e.getId())??n[0],this._unused.delete(t),this._itemData.set(t,e),t.setData(e)}return this._used.add(t),{object:t,dispose:()=>{this._used.delete(t),this._unused.size>5?t.dispose():this._unused.add(t)}}}dispose(){for(const e of this._used)e.dispose();for(const e of this._unused)e.dispose();this._used.clear(),this._unused.clear()}}}}),Rgt,txe,Fae,Fgt,_Gn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js"(){Fn(),vw(),rr(),Y0(),Vi(),Nt(),xs(),qC(),cY(),yGn(),Cw(),K0(),zs(),ls(),er(),li(),H7(),_Jt(),bGn(),bn(),Rgt=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},txe=function(e,t){return function(n,i){t(n,i,e)}},Fae=class extends St{constructor(t,n,i,r,o,s){super(),this._element=t,this._dimension=n,this._viewModel=i,this._workbenchUIElementFactory=r,this._parentContextKeyService=o,this._parentInstantiationService=s,this._scrollableElements=Co("div.scrollContent",[Co("div@content",{style:{overflow:"hidden"}}),Co("div.monaco-editor@overflowWidgetsDomNode",{})]),this._scrollable=this._register(new XR({forceIntegerValues:!1,scheduleAtNextAnimationFrame:l=>Nv(Yi(this._element),l),smoothScrollDuration:100})),this._scrollableElement=this._register(new uY(this._scrollableElements.root,{vertical:1,horizontal:1,useShadows:!1},this._scrollable)),this._elements=Co("div.monaco-component.multiDiffEditor",{},[Co("div",{},[this._scrollableElement.getDomNode()]),Co("div.placeholder@placeholder",{},[Co("div",[R("noChangedFiles","No Changed Files")])])]),this._sizeObserver=this._register(new HUe(this._element,void 0)),this._objectPool=this._register(new wJt(l=>{const c=this._instantiationService.createInstance(g$,this._scrollableElements.content,this._scrollableElements.overflowWidgetsDomNode,this._workbenchUIElementFactory);return c.setData(l),c})),this.scrollTop=Bs(this,this._scrollableElement.onScroll,()=>this._scrollableElement.getScrollPosition().scrollTop),this.scrollLeft=Bs(this,this._scrollableElement.onScroll,()=>this._scrollableElement.getScrollPosition().scrollLeft),this._viewItemsInfo=FN(this,(l,c)=>{const u=this._viewModel.read(l);if(!u)return{items:[],getItem:p=>{throw new ys}};const d=u.items.read(l),h=new Map;return{items:d.map(p=>{const g=c.add(new Fgt(p,this._objectPool,this.scrollLeft,v=>{this._scrollableElement.setScrollPosition({scrollTop:this._scrollableElement.getScrollPosition().scrollTop+v})})),m=this._lastDocStates?.[g.getKey()];return m&&Al(v=>{g.setViewState(m,v)}),h.set(p,g),g}),getItem:p=>h.get(p)}}),this._viewItems=this._viewItemsInfo.map(this,l=>l.items),this._spaceBetweenPx=0,this._totalHeight=this._viewItems.map(this,(l,c)=>l.reduce((u,d)=>u+d.contentHeight.read(c)+this._spaceBetweenPx,0)),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._element)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new iF([ur,this._contextKeyService]))),this._lastDocStates={},this._contextKeyService.createKey(Ge.inMultiDiffEditor.key,!0),this._register(hm((l,c)=>{const u=this._viewModel.read(l);if(u&&u.contextKeys)for(const[d,h]of Object.entries(u.contextKeys)){const f=this._contextKeyService.createKey(d,void 0);f.set(h),c.add(zi(()=>f.reset()))}}));const a=this._parentContextKeyService.createKey(Ge.multiDiffEditorAllCollapsed.key,!1);this._register(Tr(l=>{const c=this._viewModel.read(l);if(c){const u=c.items.read(l).every(d=>d.collapsed.read(l));a.set(u)}})),this._register(Tr(l=>{const c=this._dimension.read(l);this._sizeObserver.observe(c)})),this._register(Tr(l=>{const c=this._viewItems.read(l);this._elements.placeholder.classList.toggle("visible",c.length===0)})),this._scrollableElements.content.style.position="relative",this._register(Tr(l=>{const c=this._sizeObserver.height.read(l);this._scrollableElements.root.style.height=`${c}px`;const u=this._totalHeight.read(l);this._scrollableElements.content.style.height=`${u}px`;const d=this._sizeObserver.width.read(l);let h=d;const f=this._viewItems.read(l),p=LHe(f,ug(g=>g.maxScroll.read(l).maxScroll,Yy));if(p){const g=p.maxScroll.read(l);h=d+g.maxScroll}this._scrollableElement.setScrollDimensions({width:d,height:c,scrollHeight:u,scrollWidth:h})})),t.replaceChildren(this._elements.root),this._register(zi(()=>{t.replaceChildren()})),this._register(this._register(Tr(l=>{eW(c=>{this.render(l)})})))}render(t){const n=this.scrollTop.read(t);let i=0,r=0,o=0;const s=this._sizeObserver.height.read(t),a=Xo.ofStartAndLength(n,s),l=this._sizeObserver.width.read(t);for(const c of this._viewItems.read(t)){const u=c.contentHeight.read(t),d=Math.min(u,s),h=Xo.ofStartAndLength(r,d),f=Xo.ofStartAndLength(o,u);if(f.isBefore(a))i-=u-d,c.hide();else if(f.isAfter(a))c.hide();else{const p=Math.max(0,Math.min(a.start-f.start,u-d));i-=p;const g=Xo.ofStartAndLength(n+i,s);c.render(h,p,l,g)}r+=d+this._spaceBetweenPx,o+=u+this._spaceBetweenPx}this._scrollableElements.content.style.transform=`translateY(${-(n+i)}px)`}},Fae=Rgt([txe(4,ur),txe(5,ji)],Fae),Fgt=class extends St{constructor(e,t,n,i){super(),this.viewModel=e,this._objectPool=t,this._scrollLeft=n,this._deltaScrollVertical=i,this._templateRef=this._register(tG(this,void 0)),this.contentHeight=Fi(this,r=>this._templateRef.read(r)?.object.contentHeight?.read(r)??this.viewModel.lastTemplateData.read(r).contentHeight),this.maxScroll=Fi(this,r=>this._templateRef.read(r)?.object.maxScroll.read(r)??{maxScroll:0,scrollWidth:0}),this.template=Fi(this,r=>this._templateRef.read(r)?.object),this._isHidden=mo(this,!1),this._isFocused=Fi(this,r=>this.template.read(r)?.isFocused.read(r)??!1),this.viewModel.setIsFocused(this._isFocused,void 0),this._register(Tr(r=>{const o=this._scrollLeft.read(r);this._templateRef.read(r)?.object.setScrollLeft(o)})),this._register(Tr(r=>{const o=this._templateRef.read(r);!o||!this._isHidden.read(r)||o.object.isFocused.read(r)||this._clear()}))}dispose(){this._clear(),super.dispose()}toString(){return`VirtualViewItem(${this.viewModel.documentDiffItem.modified?.uri.toString()})`}getKey(){return this.viewModel.getKey()}setViewState(e,t){this.viewModel.collapsed.set(e.collapsed,t),this._updateTemplateData(t);const n=this.viewModel.lastTemplateData.get(),i=e.selections?.map(Ii.liftSelection);this.viewModel.lastTemplateData.set({...n,selections:i},t);const r=this._templateRef.get();r&&i&&r.object.editor.setSelections(i)}_updateTemplateData(e){const t=this._templateRef.get();t&&this.viewModel.lastTemplateData.set({contentHeight:t.object.contentHeight.get(),selections:t.object.editor.getSelections()??void 0},e)}_clear(){const e=this._templateRef.get();e&&Al(t=>{this._updateTemplateData(t),e.object.hide(),this._templateRef.set(void 0,t)})}hide(){this._isHidden.set(!0,void 0)}render(e,t,n,i){this._isHidden.set(!1,void 0);let r=this._templateRef.get();if(!r){r=this._objectPool.getUnusedObj(new bJt(this.viewModel,this._deltaScrollVertical)),this._templateRef.set(r,void 0);const o=this.viewModel.lastTemplateData.get().selections;o&&r.object.editor.setSelections(o)}r.object.render(e,n,t,i)}}}}),wGn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/multiDiffEditor/colors.js"(){bn(),ll(),Qe("multiDiffEditor.headerBackground",{dark:"#262626",light:"tab.inactiveBackground",hcDark:"tab.inactiveBackground",hcLight:"tab.inactiveBackground"},R("multiDiffEditor.headerBackground","The background color of the diff editor's header")),Qe("multiDiffEditor.background",By,R("multiDiffEditor.background","The background color of the multi file diff editor")),Qe("multiDiffEditor.border",{dark:"sideBarSectionHeader.border",light:"#cccccc",hcDark:"sideBarSectionHeader.border",hcLight:"#cccccc"},R("multiDiffEditor.border","The border color of the multi file diff editor"))}}),Bgt,jgt,Bae,CGn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidget.js"(){Nt(),xs(),LY(),_Gn(),li(),wGn(),_Jt(),Bgt=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},jgt=function(e,t){return function(n,i){t(n,i,e)}},Bae=class extends St{constructor(t,n,i){super(),this._element=t,this._workbenchUIElementFactory=n,this._instantiationService=i,this._dimension=mo(this,void 0),this._viewModel=mo(this,void 0),this._widgetImpl=FN(this,(r,o)=>(Qm(g$,r),o.add(this._instantiationService.createInstance(Qm(Fae,r),this._element,this._dimension,this._viewModel,this._workbenchUIElementFactory)))),this._register(F7(this._widgetImpl))}},Bae=Bgt([jgt(2,ji)],Bae)}});function SGn(e,t,n){return br.initialize(n||{}).createInstance(Oae,e,t)}function xGn(e){return br.get(Jo).onCodeEditorAdd(n=>{e(n)})}function EGn(e){return br.get(Jo).onDiffEditorAdd(n=>{e(n)})}function AGn(){return br.get(Jo).listCodeEditors()}function DGn(){return br.get(Jo).listDiffEditors()}function TGn(e,t,n){return br.initialize(n||{}).createInstance(Rae,e,t)}function kGn(e,t){const n=br.initialize(t||{});return new Bae(e,{},n)}function IGn(e){if(typeof e.id!="string"||typeof e.run!="function")throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return Ro.registerCommand(e.id,e.run)}function LGn(e){if(typeof e.id!="string"||typeof e.label!="string"||typeof e.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const t=nn.deserialize(e.precondition),n=(r,...o)=>Hd.runEditorCommand(r,o,t,(s,a,l)=>Promise.resolve(e.run(a,...l))),i=new Jt;if(i.add(Ro.registerCommand(e.id,n)),e.contextMenuGroupId){const r={command:{id:e.id,title:e.label},when:t,group:e.contextMenuGroupId,order:e.contextMenuOrder||0};i.add(fd.appendMenuItem(Ti.EditorContext,r))}if(Array.isArray(e.keybindings)){const r=br.get(Cs);if(!(r instanceof RO))console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService");else{const o=nn.and(t,nn.deserialize(e.keybindingContext));i.add(r.addDynamicKeybindings(e.keybindings.map(s=>({keybinding:s,command:e.id,when:o}))))}}return i}function NGn(e){return CJt([e])}function CJt(e){const t=br.get(Cs);return t instanceof RO?t.addDynamicKeybindings(e.map(n=>({keybinding:n.keybinding,command:n.command,commandArgs:n.commandArgs,when:nn.deserialize(n.when)}))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),St.None)}function PGn(e,t,n){const i=br.get(al),r=i.getLanguageIdByMimeType(t)||t;return yJt(br.get(Ua),i,e,r,n)}function MGn(e,t){const n=br.get(al),i=n.getLanguageIdByMimeType(t)||t||xp;e.setLanguage(n.createById(i))}function OGn(e,t,n){e&&br.get(xC).changeOne(t,e.uri,n)}function RGn(e){br.get(xC).changeAll(e,[])}function FGn(e){return br.get(xC).read(e)}function BGn(e){return br.get(xC).onMarkerChanged(e)}function jGn(e){return br.get(Ua).getModel(e)}function zGn(){return br.get(Ua).getModels()}function VGn(e){return br.get(Ua).onModelAdded(e)}function HGn(e){return br.get(Ua).onModelRemoved(e)}function WGn(e){return br.get(Ua).onModelLanguageChanged(n=>{e({model:n.model,oldLanguage:n.oldLanguageId})})}function UGn(e){return $Un(br.get(Ua),e)}function $Gn(e,t){const n=br.get(al),i=br.get(Fv);return Tge.colorizeElement(i,n,e,t).then(()=>{i.registerEditorContainer(e)})}function qGn(e,t,n){const i=br.get(al);return br.get(Fv).registerEditorContainer(la.document.body),Tge.colorize(i,e,t,n)}function GGn(e,t,n=4){return br.get(Fv).registerEditorContainer(la.document.body),Tge.colorizeModelLine(e,t,n)}function KGn(e){const t=Hl.get(e);return t||{getInitialState:()=>e2,tokenize:(n,i,r)=>oWe(e,r)}}function YGn(e,t){Hl.getOrCreate(t);const n=KGn(t),i=Zx(e),r=[];let o=n.getInitialState();for(let s=0,a=i.length;s<a;s++){const l=i[s],c=n.tokenize(l,!0,o);r[s]=c.tokens,o=c.endState}return r}function QGn(e,t){br.get(Fv).defineTheme(e,t)}function ZGn(e){br.get(Fv).setTheme(e)}function XGn(){Vue.clearAllFontInfos()}function JGn(e,t){return Ro.registerCommand({id:e,handler:t})}function eKn(e){return br.get(Eg).registerOpener({async open(n){return typeof n=="string"&&(n=Ui.parse(n)),e.open(n)}})}function tKn(e){return br.get(Jo).registerCodeEditorOpenHandler(async(n,i,r)=>{if(!i)return null;const o=n.options?.selection;let s;return o&&typeof o.endLineNumber=="number"&&typeof o.endColumn=="number"?s=o:o&&(s={lineNumber:o.startLineNumber,column:o.startColumn}),await e.openCodeEditor(i,n.resource,s)?i:null})}function nKn(){return{create:SGn,getEditors:AGn,getDiffEditors:DGn,onDidCreateEditor:xGn,onDidCreateDiffEditor:EGn,createDiffEditor:TGn,addCommand:IGn,addEditorAction:LGn,addKeybindingRule:NGn,addKeybindingRules:CJt,createModel:PGn,setModelLanguage:MGn,setModelMarkers:OGn,getModelMarkers:FGn,removeAllMarkers:RGn,onDidChangeMarkers:BGn,getModels:zGn,getModel:jGn,onDidCreateModel:VGn,onWillDisposeModel:HGn,onDidChangeModelLanguage:WGn,createWebWorker:UGn,colorizeElement:$Gn,colorize:qGn,colorizeModelLine:GGn,tokenize:YGn,defineTheme:QGn,setTheme:ZGn,remeasureFonts:XGn,registerCommand:JGn,registerLinkOpener:eKn,registerEditorOpener:tKn,AccessibilitySupport:RRe,ContentWidgetPositionPreference:HRe,CursorChangeReason:WRe,DefaultEndOfLine:URe,EditorAutoIndentStrategy:qRe,EditorOption:GRe,EndOfLinePreference:KRe,EndOfLineSequence:YRe,MinimapPosition:o2e,MinimapSectionHeaderStyle:s2e,MouseTargetType:a2e,OverlayWidgetPositionPreference:u2e,OverviewRulerLane:d2e,GlyphMarginLane:QRe,RenderLineNumbersType:p2e,RenderMinimap:g2e,ScrollbarVisibility:v2e,ScrollType:m2e,TextEditorCursorBlinkingStyle:S2e,TextEditorCursorStyle:x2e,TrackedRangeStickiness:E2e,WrappingIndent:A2e,InjectedTextCursorStops:JRe,PositionAffinity:f2e,ShowLightbulbIconMode:b2e,ConfigurationChangedEvent:wHe,BareFontInfo:jue,FontInfo:zue,TextModelResolvedOptions:UU,FindMatch:n9,ApplyUpdateResult:H6,EditorZoom:_0,createMultiFileDiffEditor:kGn,EditorType:U7,EditorOptions:I_}}var iKn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/standaloneEditor.js"(){wg(),Nt(),Ki(),ss(),U7n(),NWt(),mr(),Ec(),qUn(),Su(),tY(),AHe(),Dge(),ra(),Kd(),G0(),pY(),Cd(),Kf(),g7(),t$n(),vGn(),Age(),V7(),ha(),Ks(),er(),tl(),CT(),Ag(),CGn()}});function rKn(e,t){if(!t||!Array.isArray(t))return!1;for(const n of t)if(!e(n))return!1;return!0}function ite(e,t){return typeof e=="boolean"?e:t}function zgt(e,t){return typeof e=="string"?e:t}function oKn(e){const t={};for(const n of e)t[n]=!0;return t}function Vgt(e,t=!1){t&&(e=e.map(function(i){return i.toLowerCase()}));const n=oKn(e);return t?function(i){return n[i.toLowerCase()]!==void 0&&n.hasOwnProperty(i.toLowerCase())}:function(i){return n[i]!==void 0&&n.hasOwnProperty(i)}}function _6e(e,t,n){t=t.replace(/@@/g,"");let i=0,r;do r=!1,t=t.replace(/@(\w+)/g,function(s,a){r=!0;let l="";if(typeof e[a]=="string")l=e[a];else if(e[a]&&e[a]instanceof RegExp)l=e[a].source;else throw e[a]===void 0?ol(e,"language definition does not contain attribute '"+a+"', used at: "+t):ol(e,"attribute reference '"+a+"' must be a string, used at: "+t);return mO(l)?"":"(?:"+l+")"}),i++;while(r&&i<5);t=t.replace(/\x01/g,"@");const o=(e.ignoreCase?"i":"")+(e.unicode?"u":"");if(n&&t.match(/\$[sS](\d\d?)/g)){let a=null,l=null;return c=>(l&&a===c||(a=c,l=new RegExp(QUn(e,t,c),o)),l)}return new RegExp(t,o)}function sKn(e,t,n,i){if(i<0)return e;if(i<t.length)return t[i];if(i>=100){i=i-100;const r=n.split(".");if(r.unshift(n),i<r.length)return r[i]}return null}function aKn(e,t,n,i){let r=-1,o=n,s=n.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);s&&(s[3]&&(r=parseInt(s[3]),s[2]&&(r=r+100)),o=s[4]);let a="~",l=o;!o||o.length===0?(a="!=",l=""):/^\w*$/.test(l)?a="==":(s=o.match(/^(@|!@|~|!~|==|!=)(.*)$/),s&&(a=s[1],l=s[2]));let c;if((a==="~"||a==="!~")&&/^(\w|\|)*$/.test(l)){const u=Vgt(l.split("|"),e.ignoreCase);c=function(d){return a==="~"?u(d):!u(d)}}else if(a==="@"||a==="!@"){const u=e[l];if(!u)throw ol(e,"the @ match target '"+l+"' is not defined, in rule: "+t);if(!rKn(function(h){return typeof h=="string"},u))throw ol(e,"the @ match target '"+l+"' must be an array of strings, in rule: "+t);const d=Vgt(u,e.ignoreCase);c=function(h){return a==="@"?d(h):!d(h)}}else if(a==="~"||a==="!~")if(l.indexOf("$")<0){const u=_6e(e,"^"+l+"$",!1);c=function(d){return a==="~"?u.test(d):!u.test(d)}}else c=function(u,d,h,f){return _6e(e,"^"+AI(e,l,d,h,f)+"$",!1).test(u)};else if(l.indexOf("$")<0){const u=wD(e,l);c=function(d){return a==="=="?d===u:d!==u}}else{const u=wD(e,l);c=function(d,h,f,p,g){const m=AI(e,u,h,f,p);return a==="=="?d===m:d!==m}}return r===-1?{name:n,value:i,test:function(u,d,h,f){return c(u,u,d,h,f)}}:{name:n,value:i,test:function(u,d,h,f){const p=sKn(u,d,h,r);return c(p||"",u,d,h,f)}}}function w6e(e,t,n){if(n){if(typeof n=="string")return n;if(n.token||n.token===""){if(typeof n.token!="string")throw ol(e,"a 'token' attribute must be of type string, in rule: "+t);{const i={token:n.token};if(n.token.indexOf("$")>=0&&(i.tokenSubst=!0),typeof n.bracket=="string")if(n.bracket==="@open")i.bracket=1;else if(n.bracket==="@close")i.bracket=-1;else throw ol(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);if(n.next){if(typeof n.next!="string")throw ol(e,"the next state must be a string value in rule: "+t);{let r=n.next;if(!/^(@pop|@push|@popall)$/.test(r)&&(r[0]==="@"&&(r=r.substr(1)),r.indexOf("$")<0&&!ZUn(e,AI(e,r,"",[],""))))throw ol(e,"the next state '"+n.next+"' is not defined in rule: "+t);i.next=r}}return typeof n.goBack=="number"&&(i.goBack=n.goBack),typeof n.switchTo=="string"&&(i.switchTo=n.switchTo),typeof n.log=="string"&&(i.log=n.log),typeof n.nextEmbedded=="string"&&(i.nextEmbedded=n.nextEmbedded,e.usesEmbedded=!0),i}}else if(Array.isArray(n)){const i=[];for(let r=0,o=n.length;r<o;r++)i[r]=w6e(e,t,n[r]);return{group:i}}else if(n.cases){const i=[];for(const o in n.cases)if(n.cases.hasOwnProperty(o)){const s=w6e(e,t,n.cases[o]);o==="@default"||o==="@"||o===""?i.push({test:void 0,value:s,name:o}):o==="@eos"?i.push({test:function(a,l,c,u){return u},value:s,name:o}):i.push(aKn(e,t,o,s))}const r=e.defaultToken;return{test:function(o,s,a,l){for(const c of i)if(!c.test||c.test(o,s,a,l))return c.value;return r}}}else throw ol(e,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+t)}else return{token:""}}function SJt(e,t){if(!t||typeof t!="object")throw new Error("Monarch: expecting a language definition object");const n={languageId:e,includeLF:ite(t.includeLF,!1),noThrow:!1,maxStack:100,start:typeof t.start=="string"?t.start:null,ignoreCase:ite(t.ignoreCase,!1),unicode:ite(t.unicode,!1),tokenPostfix:zgt(t.tokenPostfix,"."+e),defaultToken:zgt(t.defaultToken,"source"),usesEmbedded:!1,stateNames:{},tokenizer:{},brackets:[]},i=t;i.languageId=e,i.includeLF=n.includeLF,i.ignoreCase=n.ignoreCase,i.unicode=n.unicode,i.noThrow=n.noThrow,i.usesEmbedded=n.usesEmbedded,i.stateNames=t.tokenizer,i.defaultToken=n.defaultToken;function r(s,a,l){for(const c of l){let u=c.include;if(u){if(typeof u!="string")throw ol(n,"an 'include' attribute must be a string at: "+s);if(u[0]==="@"&&(u=u.substr(1)),!t.tokenizer[u])throw ol(n,"include target '"+u+"' is not defined at: "+s);r(s+"."+u,a,t.tokenizer[u])}else{const d=new xJt(s);if(Array.isArray(c)&&c.length>=1&&c.length<=3)if(d.setRegex(i,c[0]),c.length>=3)if(typeof c[1]=="string")d.setAction(i,{token:c[1],next:c[2]});else if(typeof c[1]=="object"){const h=c[1];h.next=c[2],d.setAction(i,h)}else throw ol(n,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+s);else d.setAction(i,c[1]);else{if(!c.regex)throw ol(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+s);c.name&&typeof c.name=="string"&&(d.name=c.name),c.matchOnlyAtStart&&(d.matchOnlyAtLineStart=ite(c.matchOnlyAtLineStart,!1)),d.setRegex(i,c.regex),d.setAction(i,c.action)}a.push(d)}}}if(!t.tokenizer||typeof t.tokenizer!="object")throw ol(n,"a language definition must define the 'tokenizer' attribute as an object");n.tokenizer=[];for(const s in t.tokenizer)if(t.tokenizer.hasOwnProperty(s)){n.start||(n.start=s);const a=t.tokenizer[s];n.tokenizer[s]=new Array,r("tokenizer."+s,n.tokenizer[s],a)}if(n.usesEmbedded=i.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw ol(n,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const o=[];for(const s of t.brackets){let a=s;if(a&&Array.isArray(a)&&a.length===3&&(a={token:a[2],open:a[0],close:a[1]}),a.open===a.close)throw ol(n,"open and close brackets in a 'brackets' attribute must be different: "+a.open+`
 hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")o.push({token:a.token+n.tokenPostfix,open:wD(n,a.open),close:wD(n,a.close)});else throw ol(n,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return n.brackets=o,n.noThrow=!0,n}var xJt,lKn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/common/monarch/monarchCompile.js"(){CQt(),xJt=class{constructor(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}setRegex(e,t){let n;if(typeof t=="string")n=t;else if(t instanceof RegExp)n=t.source;else throw ol(e,"rules must start with a match string or regular expression: "+this.name);this.matchOnlyAtLineStart=n.length>0&&n[0]==="^",this.name=this.name+": "+n,this.regex=_6e(e,"^(?:"+(this.matchOnlyAtLineStart?n.substr(1):n)+")",!0)}setAction(e,t){this.action=w6e(e,this.name,t)}resolveRegex(e){return this.regex instanceof RegExp?this.regex:this.regex(e)}}}});function cKn(e){dR.registerLanguage(e)}function uKn(){let e=[];return e=e.concat(dR.getLanguages()),e}function dKn(e){return br.get(al).languageIdCodec.encodeLanguageId(e)}function hKn(e,t){return br.withServices(()=>{const i=br.get(al).onDidRequestRichLanguageFeatures(r=>{r===e&&(i.dispose(),t())});return i})}function fKn(e,t){return br.withServices(()=>{const i=br.get(al).onDidRequestBasicLanguageFeatures(r=>{r===e&&(i.dispose(),t())});return i})}function pKn(e,t){if(!br.get(al).isRegisteredLanguageId(e))throw new Error(`Cannot set configuration for unknown language ${e}`);return br.get(yl).register(e,t,100)}function gKn(e){return typeof e.getInitialState=="function"}function mKn(e){return"tokenizeEncoded"in e}function EJt(e){return e&&typeof e.then=="function"}function vKn(e){const t=br.get(Fv);if(e){const n=[null];for(let i=1,r=e.length;i<r;i++)n[i]=rn.fromHex(e[i]);t.setColorMapOverride(n)}else t.setColorMapOverride(null)}function AJt(e,t){return mKn(t)?new DJt(e,t):new C6e(e,t,br.get(al),br.get(Fv))}function KUe(e,t){const n=new j7t(async()=>{const i=await Promise.resolve(t.create());return i?gKn(i)?AJt(e,i):new X6(br.get(al),br.get(Fv),e,SJt(e,i),br.get(co)):null});return Hl.registerFactory(e,n)}function yKn(e,t){if(!br.get(al).isRegisteredLanguageId(e))throw new Error(`Cannot set tokens provider for unknown language ${e}`);return EJt(t)?KUe(e,{create:()=>t}):Hl.register(e,AJt(e,t))}function bKn(e,t){const n=i=>new X6(br.get(al),br.get(Fv),e,SJt(e,i),br.get(co));return EJt(t)?KUe(e,{create:()=>t}):Hl.register(e,n(t))}function _Kn(e,t){return br.get(gi).referenceProvider.register(e,t)}function wKn(e,t){return br.get(gi).renameProvider.register(e,t)}function CKn(e,t){return br.get(gi).newSymbolNamesProvider.register(e,t)}function SKn(e,t){return br.get(gi).signatureHelpProvider.register(e,t)}function xKn(e,t){return br.get(gi).hoverProvider.register(e,{provideHover:async(i,r,o,s)=>{const a=i.getWordAtPosition(r);return Promise.resolve(t.provideHover(i,r,o,s)).then(l=>{if(l)return!l.range&&a&&(l.range=new Re(r.lineNumber,a.startColumn,r.lineNumber,a.endColumn)),l.range||(l.range=new Re(r.lineNumber,r.column,r.lineNumber,r.column)),l})}})}function EKn(e,t){return br.get(gi).documentSymbolProvider.register(e,t)}function AKn(e,t){return br.get(gi).documentHighlightProvider.register(e,t)}function DKn(e,t){return br.get(gi).linkedEditingRangeProvider.register(e,t)}function TKn(e,t){return br.get(gi).definitionProvider.register(e,t)}function kKn(e,t){return br.get(gi).implementationProvider.register(e,t)}function IKn(e,t){return br.get(gi).typeDefinitionProvider.register(e,t)}function LKn(e,t){return br.get(gi).codeLensProvider.register(e,t)}function NKn(e,t,n){return br.get(gi).codeActionProvider.register(e,{providedCodeActionKinds:n?.providedCodeActionKinds,documentation:n?.documentation,provideCodeActions:(r,o,s,a)=>{const c=br.get(xC).read({resource:r.uri}).filter(u=>Re.areIntersectingOrTouching(u,o));return t.provideCodeActions(r,o,{markers:c,only:s.only,trigger:s.trigger},a)},resolveCodeAction:t.resolveCodeAction})}function PKn(e,t){return br.get(gi).documentFormattingEditProvider.register(e,t)}function MKn(e,t){return br.get(gi).documentRangeFormattingEditProvider.register(e,t)}function OKn(e,t){return br.get(gi).onTypeFormattingEditProvider.register(e,t)}function RKn(e,t){return br.get(gi).linkProvider.register(e,t)}function FKn(e,t){return br.get(gi).completionProvider.register(e,t)}function BKn(e,t){return br.get(gi).colorProvider.register(e,t)}function jKn(e,t){return br.get(gi).foldingRangeProvider.register(e,t)}function zKn(e,t){return br.get(gi).declarationProvider.register(e,t)}function VKn(e,t){return br.get(gi).selectionRangeProvider.register(e,t)}function HKn(e,t){return br.get(gi).documentSemanticTokensProvider.register(e,t)}function WKn(e,t){return br.get(gi).documentRangeSemanticTokensProvider.register(e,t)}function UKn(e,t){return br.get(gi).inlineCompletionsProvider.register(e,t)}function $Kn(e,t){return br.get(gi).inlineEditProvider.register(e,t)}function qKn(e,t){return br.get(gi).inlayHintsProvider.register(e,t)}function GKn(){return{register:cKn,getLanguages:uKn,onLanguage:hKn,onLanguageEncountered:fKn,getEncodedLanguageId:dKn,setLanguageConfiguration:pKn,setColorMap:vKn,registerTokensProviderFactory:KUe,setTokensProvider:yKn,setMonarchTokensProvider:bKn,registerReferenceProvider:_Kn,registerRenameProvider:wKn,registerNewSymbolNameProvider:CKn,registerCompletionItemProvider:FKn,registerSignatureHelpProvider:SKn,registerHoverProvider:xKn,registerDocumentSymbolProvider:EKn,registerDocumentHighlightProvider:AKn,registerLinkedEditingRangeProvider:DKn,registerDefinitionProvider:TKn,registerImplementationProvider:kKn,registerTypeDefinitionProvider:IKn,registerCodeLensProvider:LKn,registerCodeActionProvider:NKn,registerDocumentFormattingEditProvider:PKn,registerDocumentRangeFormattingEditProvider:MKn,registerOnTypeFormattingEditProvider:OKn,registerLinkProvider:RKn,registerColorProvider:BKn,registerFoldingRangeProvider:jKn,registerDeclarationProvider:zKn,registerSelectionRangeProvider:VKn,registerDocumentSemanticTokensProvider:HKn,registerDocumentRangeSemanticTokensProvider:WKn,registerInlineCompletionsProvider:UKn,registerInlineEditProvider:$Kn,registerInlayHintsProvider:qKn,DocumentHighlightKind:$Re,CompletionItemKind:jRe,CompletionItemTag:zRe,CompletionItemInsertTextRule:BRe,SymbolKind:w2e,SymbolTag:C2e,IndentAction:XRe,CompletionTriggerKind:VRe,SignatureHelpTriggerKind:_2e,InlayHintKind:e2e,InlineCompletionTriggerKind:t2e,InlineEditTriggerKind:n2e,CodeActionTriggerType:FRe,NewSymbolNameTag:l2e,NewSymbolNameTriggerKind:c2e,PartialAcceptTriggerKind:h2e,HoverVerbosityAction:ZRe,FoldingRangeKind:cO,SelectedSuggestionInfo:TVe}}var DJt,C6e,KKn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/standaloneLanguages.js"(){ql(),Dn(),ra(),Kd(),lu(),G0(),Eo(),g7(),Age(),lKn(),SQt(),V7(),sa(),CT(),DJt=class{constructor(e,t){this._languageId=e,this._actual=t}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,n){if(typeof this._actual.tokenize=="function")return C6e.adaptTokenize(this._languageId,this._actual,e,n);throw new Error("Not supported!")}tokenizeEncoded(e,t,n){const i=this._actual.tokenizeEncoded(e,n);return new wq(i.tokens,i.endState)}},C6e=class S6e{constructor(t,n,i,r){this._languageId=t,this._actual=n,this._languageService=i,this._standaloneThemeService=r}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(t,n){const i=[];let r=0;for(let o=0,s=t.length;o<s;o++){const a=t[o];let l=a.startIndex;o===0?l=0:l<r&&(l=r),i[o]=new V8(l,a.scopes,n),r=l}return i}static adaptTokenize(t,n,i,r){const o=n.tokenize(i,r),s=S6e._toClassicTokens(o.tokens,t);let a;return o.endState.equals(r)?a=r:a=o.endState,new ppe(s,a)}tokenize(t,n,i){return S6e.adaptTokenize(this._languageId,this._actual,t,i)}_toBinaryTokens(t,n){const i=t.encodeLanguageId(this._languageId),r=this._standaloneThemeService.getColorTheme().tokenTheme,o=[];let s=0,a=0;for(let c=0,u=n.length;c<u;c++){const d=n[c],h=r.match(i,d.scopes)|1024;if(s>0&&o[s-1]===h)continue;let f=d.startIndex;c===0?f=0:f<a&&(f=a),o[s++]=f,o[s++]=h,a=f}const l=new Uint32Array(s);for(let c=0;c<s;c++)l[c]=o[c];return l}tokenizeEncoded(t,n,i){const r=this._actual.tokenize(t,i),o=this._toBinaryTokens(this._languageService.languageIdCodec,r.tokens);let s;return r.endState.equals(i)?s=i:s=r.endState,new wq(o,s)}}}}),rte,nxe,TJt,YKn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js"(){mr(),er(),Ho(),_b(),li(),vf(),bn(),rte=Ao("IEditorCancelService"),nxe=new Qn("cancellableOperation",!1,R("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'")),Oo(rte,class{constructor(){this._tokens=new WeakMap}add(e,t){let n=this._tokens.get(e);n||(n=e.invokeWithinContext(r=>{const o=nxe.bindTo(r.get(ur)),s=new yp;return{key:o,tokens:s}}),this._tokens.set(e,n));let i;return n.key.set(!0),i=n.tokens.push(t),()=>{i&&(i(),n.key.set(!n.tokens.isEmpty()),i=void 0)}}cancel(e){const t=this._tokens.get(e);if(!t)return;const n=t.tokens.pop();n&&(n.cancel(),t.key.set(!t.tokens.isEmpty()))}},1),TJt=class extends bl{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext(n=>n.get(rte).add(e,this))}dispose(){this._unregister(),super.dispose()}},$n(new class extends Hd{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:nxe})}runEditorCommand(e,t){e.get(rte).cancel(t)}})}}),YUe,WD,Uge,WN=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/editorState/browser/editorState.js"(){Ki(),Dn(),Ho(),Nt(),YKn(),YUe=class x6e{constructor(t,n){if(this.flags=n,(this.flags&1)!==0){const i=t.getModel();this.modelVersionId=i?$R("{0}#{1}",i.uri.toString(),i.getVersionId()):null}else this.modelVersionId=null;(this.flags&4)!==0?this.position=t.getPosition():this.position=null,(this.flags&2)!==0?this.selection=t.getSelection():this.selection=null,(this.flags&8)!==0?(this.scrollLeft=t.getScrollLeft(),this.scrollTop=t.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(t){if(!(t instanceof x6e))return!1;const n=t;return!(this.modelVersionId!==n.modelVersionId||this.scrollLeft!==n.scrollLeft||this.scrollTop!==n.scrollTop||!this.position&&n.position||this.position&&!n.position||this.position&&n.position&&!this.position.equals(n.position)||!this.selection&&n.selection||this.selection&&!n.selection||this.selection&&n.selection&&!this.selection.equalsRange(n.selection))}validate(t){return this._equals(new x6e(t,this.flags))}},WD=class extends TJt{constructor(e,t,n,i){super(e,i),this._listener=new Jt,t&4&&this._listener.add(e.onDidChangeCursorPosition(r=>{(!n||!Re.containsPosition(n,r.position))&&this.cancel()})),t&2&&this._listener.add(e.onDidChangeCursorSelection(r=>{(!n||!Re.containsRange(n,r.selection))&&this.cancel()})),t&8&&this._listener.add(e.onDidScrollChange(r=>this.cancel())),t&1&&(this._listener.add(e.onDidChangeModel(r=>this.cancel())),this._listener.add(e.onDidChangeModelContent(r=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}},Uge=class extends bl{constructor(e,t){super(t),this._listener=e.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}}});function nE(e){return e&&typeof e.getEditorType=="function"?e.getEditorType()===U7.ICodeEditor:!1}function QUe(e){return e&&typeof e.getEditorType=="function"?e.getEditorType()===U7.IDiffEditor:!1}function QKn(e){return!!e&&typeof e=="object"&&typeof e.onDidChangeActiveEditor=="function"}function kJt(e){return nE(e)?e:QUe(e)?e.getModifiedEditor():QKn(e)&&nE(e.activeCodeEditor)?e.activeCodeEditor:null}var NY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/editorBrowser.js"(){Dge()}}),$ge,IJt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/format/browser/formattingEdit.js"(){Tb(),Dn(),q7(),$ge=class E6e{static _handleEolEdits(t,n){let i;const r=[];for(const o of n)typeof o.eol=="number"&&(i=o.eol),o.range&&typeof o.text=="string"&&r.push(o);return typeof i=="number"&&t.hasModel()&&t.getModel().pushEOL(i),r}static _isFullModelReplaceEdit(t,n){if(!t.hasModel())return!1;const i=t.getModel(),r=i.validateRange(n.range);return i.getFullModelRange().equalsRange(r)}static execute(t,n,i){i&&t.pushUndoStop();const r=VD.capture(t),o=E6e._handleEolEdits(t,n);o.length===1&&E6e._isFullModelReplaceEdit(t,o[0])?t.executeEdits("formatEditsCommand",o.map(s=>pl.replace(Re.lift(s.range),s.text))):t.executeEdits("formatEditsCommand",o.map(s=>pl.replaceMove(Re.lift(s.range),s.text))),i&&t.pushUndoStop(),r.restoreRelativeVerticalPositionOfCursor(t)}}}}),ixe,LJt,ZKn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/extensions/common/extensions.js"(){ixe=class{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}},LJt=class{constructor(e){if(this._set=new Set,e)for(const t of e)this.add(t)}add(e){this._set.add(ixe.toKey(e))}has(e){return this._set.has(ixe.toKey(e))}}}});function NJt(e,t,n){const i=[],r=new LJt,o=e.ordered(n);for(const a of o)i.push(a),a.extensionId&&r.add(a.extensionId);const s=t.ordered(n);for(const a of s){if(a.extensionId){if(r.has(a.extensionId))continue;r.add(a.extensionId)}i.push({displayName:a.displayName,extensionId:a.extensionId,provideDocumentFormattingEdits(l,c,u){return a.provideDocumentRangeFormattingEdits(l,l.getFullModelRange(),c,u)}})}return i}async function Hgt(e,t,n,i,r,o,s){const a=e.get(ji),{documentRangeFormattingEditProvider:l}=e.get(gi),c=nE(t)?t.getModel():t,u=l.ordered(c),d=await qge.select(u,c,i,2);d&&(r.report(d),await a.invokeFunction(XKn,d,t,n,o,s))}async function XKn(e,t,n,i,r,o){const s=e.get(fg),a=e.get(bh),l=e.get(xT);let c,u;nE(n)?(c=n.getModel(),u=new WD(n,5,void 0,r)):(c=n,u=new Uge(n,r));const d=[];let h=0;for(const v of yHe(i).sort(Re.compareRangesUsingStarts))h>0&&Re.areIntersectingOrTouching(d[h-1],v)?d[h-1]=Re.fromPositions(d[h-1].getStartPosition(),v.getEndPosition()):h=d.push(v);const f=async v=>{a.trace("[format][provideDocumentRangeFormattingEdits] (request)",t.extensionId?.value,v);const y=await t.provideDocumentRangeFormattingEdits(c,v,c.getFormattingOptions(),u.token)||[];return a.trace("[format][provideDocumentRangeFormattingEdits] (response)",t.extensionId?.value,y),y},p=(v,y)=>{if(!v.length||!y.length)return!1;const b=v.reduce((w,E)=>Re.plusRange(w,E.range),v[0].range);if(!y.some(w=>Re.intersectRanges(b,w.range)))return!1;for(const w of v)for(const E of y)if(Re.intersectRanges(w.range,E.range))return!0;return!1},g=[],m=[];try{if(typeof t.provideDocumentRangesFormattingEdits=="function"){a.trace("[format][provideDocumentRangeFormattingEdits] (request)",t.extensionId?.value,d);const v=await t.provideDocumentRangesFormattingEdits(c,d,c.getFormattingOptions(),u.token)||[];a.trace("[format][provideDocumentRangeFormattingEdits] (response)",t.extensionId?.value,v),m.push(v)}else{for(const v of d){if(u.token.isCancellationRequested)return!0;m.push(await f(v))}for(let v=0;v<d.length;++v)for(let y=v+1;y<d.length;++y){if(u.token.isCancellationRequested)return!0;if(p(m[v],m[y])){const b=Re.plusRange(d[v],d[y]),w=await f(b);d.splice(y,1),d.splice(v,1),d.push(b),m.splice(y,1),m.splice(v,1),m.push(w),v=0,y=0}}}for(const v of m){if(u.token.isCancellationRequested)return!0;const y=await s.computeMoreMinimalEdits(c.uri,v);y&&g.push(...y)}}finally{u.dispose()}if(g.length===0)return!1;if(nE(n))$ge.execute(n,g,!0),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1);else{const[{range:v}]=g,y=new Ii(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn);c.pushEditOperations([y],g.map(b=>({text:b.text,range:Re.lift(b.range),forceMoveMarkers:!0})),b=>{for(const{range:w}of b)if(Re.areIntersectingOrTouching(w,y))return[new Ii(w.startLineNumber,w.startColumn,w.endLineNumber,w.endColumn)];return null})}return l.playSignal(Py.format,{userGesture:o}),!0}async function JKn(e,t,n,i,r,o){const s=e.get(ji),a=e.get(gi),l=nE(t)?t.getModel():t,c=NJt(a.documentFormattingEditProvider,a.documentRangeFormattingEditProvider,l),u=await qge.select(c,l,n,1);u&&(i.report(u),await s.invokeFunction(eYn,u,t,n,r,o))}async function eYn(e,t,n,i,r,o){const s=e.get(fg),a=e.get(xT);let l,c;nE(n)?(l=n.getModel(),c=new WD(n,5,void 0,r)):(l=n,c=new Uge(n,r));let u;try{const d=await t.provideDocumentFormattingEdits(l,l.getFormattingOptions(),c.token);if(u=await s.computeMoreMinimalEdits(l.uri,d),c.token.isCancellationRequested)return!0}finally{c.dispose()}if(!u||u.length===0)return!1;if(nE(n))$ge.execute(n,u,i!==2),i!==2&&n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1);else{const[{range:d}]=u,h=new Ii(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn);l.pushEditOperations([h],u.map(f=>({text:f.text,range:Re.lift(f.range),forceMoveMarkers:!0})),f=>{for(const{range:p}of f)if(Re.areIntersectingOrTouching(p,h))return[new Ii(p.startLineNumber,p.startColumn,p.endLineNumber,p.endColumn)];return null})}return a.playSignal(Py.format,{userGesture:o}),!0}async function tYn(e,t,n,i,r,o){const s=t.documentRangeFormattingEditProvider.ordered(n);for(const a of s){const l=await Promise.resolve(a.provideDocumentRangeFormattingEdits(n,i,r,o)).catch(Sc);if(Sp(l))return await e.computeMoreMinimalEdits(n.uri,l)}}async function nYn(e,t,n,i,r){const o=NJt(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,n);for(const s of o){const a=await Promise.resolve(s.provideDocumentFormattingEdits(n,i,r)).catch(Sc);if(Sp(a))return await e.computeMoreMinimalEdits(n.uri,a)}}function PJt(e,t,n,i,r,o,s){const a=t.onTypeFormattingEditProvider.ordered(n);return a.length===0||a[0].autoFormatTriggerCharacters.indexOf(r)<0?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(n,i,r,o,s)).catch(Sc).then(l=>e.computeMoreMinimalEdits(n.uri,l))}var qge,MJt=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/format/browser/format.js"(){var e;rr(),Ho(),Vi(),bg(),_b(),as(),ss(),WN(),NY(),Hi(),Dn(),zs(),SE(),Eb(),IJt(),Ks(),ZKn(),li(),Eo(),wm(),rF(),qge=(e=class{static setFormatterSelector(n){return{dispose:e._selectors.unshift(n)}}static async select(n,i,r,o){if(n.length===0)return;const s=Vo.first(e._selectors);if(s)return await s(n,i,r,o)}},e._selectors=new yp,e),Ro.registerCommand("_executeFormatRangeProvider",async function(t,...n){const[i,r,o]=n;ns(Ui.isUri(i)),ns(Re.isIRange(r));const s=t.get(dg),a=t.get(fg),l=t.get(gi),c=await s.createModelReference(i);try{return tYn(a,l,c.object.textEditorModel,Re.lift(r),o,no.None)}finally{c.dispose()}}),Ro.registerCommand("_executeFormatDocumentProvider",async function(t,...n){const[i,r]=n;ns(Ui.isUri(i));const o=t.get(dg),s=t.get(fg),a=t.get(gi),l=await o.createModelReference(i);try{return nYn(s,a,l.object.textEditorModel,r,no.None)}finally{l.dispose()}}),Ro.registerCommand("_executeFormatOnTypeProvider",async function(t,...n){const[i,r,o,s]=n;ns(Ui.isUri(i)),ns(mt.isIPosition(r)),ns(typeof o=="string");const a=t.get(dg),l=t.get(fg),c=t.get(gi),u=await a.createModelReference(i);try{return PJt(l,c,u.object.textEditorModel,mt.lift(r),o,s,no.None)}finally{u.dispose()}})}}),Gge={};oc(Gge,{CancellationTokenSource:()=>ZUe,Emitter:()=>Kge,KeyCode:()=>XUe,KeyMod:()=>JUe,MarkerSeverity:()=>r$e,MarkerTag:()=>o$e,Position:()=>e$e,Range:()=>t$e,Selection:()=>n$e,SelectionDirection:()=>i$e,Token:()=>s$e,Uri:()=>Yge,editor:()=>h_,languages:()=>lC});var tp,ZUe,Kge,XUe,JUe,e$e,t$e,n$e,i$e,r$e,o$e,Yge,s$e,h_,lC,Wgt,h9=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/editor.api.js"(){Su(),gpe(),iKn(),KKn(),MJt(),I_.wrappingIndent.defaultValue=0,I_.glyphMargin.defaultValue=!1,I_.autoIndent.defaultValue=3,I_.overviewRulerLanes.defaultValue=2,qge.setFormatterSelector((e,t,n)=>Promise.resolve(e[0])),tp=z7t(),tp.editor=nKn(),tp.languages=GKn(),ZUe=tp.CancellationTokenSource,Kge=tp.Emitter,XUe=tp.KeyCode,JUe=tp.KeyMod,e$e=tp.Position,t$e=tp.Range,n$e=tp.Selection,i$e=tp.SelectionDirection,r$e=tp.MarkerSeverity,o$e=tp.MarkerTag,Yge=tp.Uri,s$e=tp.Token,h_=tp.editor,lC=tp.languages,Wgt=globalThis.MonacoEnvironment,(Wgt?.globalAPI||typeof define=="function"&&define.amd)&&(globalThis.monaco=tp),typeof globalThis.require<"u"&&typeof globalThis.require.config=="function"&&globalThis.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]})}});function iYn(e){const t=e.id;A6e[t]=e,p6.languages.register(e);const n=OJt.getOrCreate(t);p6.languages.registerTokensProviderFactory(t,{create:async()=>(await n.load()).language}),p6.languages.onLanguageEncountered(t,async()=>{const i=await n.load();p6.languages.setLanguageConfiguration(t,i.conf)})}var Ugt,$gt,qgt,Ggt,rxe,Kgt,p6,A6e,ote,OJt,rYn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js"(){h9(),Ugt=Object.defineProperty,$gt=Object.getOwnPropertyDescriptor,qgt=Object.getOwnPropertyNames,Ggt=Object.prototype.hasOwnProperty,rxe=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of qgt(t))!Ggt.call(e,r)&&r!==n&&Ugt(e,r,{get:()=>t[r],enumerable:!(i=$gt(t,r))||i.enumerable});return e},Kgt=(e,t,n)=>(rxe(e,t,"default"),n&&rxe(n,t,"default")),p6={},Kgt(p6,Gge),A6e={},ote={},OJt=class RJt{static getOrCreate(t){return ote[t]||(ote[t]=new RJt(t)),ote[t]}constructor(t){this._languageId=t,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((n,i)=>{this._lazyLoadPromiseResolve=n,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,A6e[this._languageId].loader().then(t=>this._lazyLoadPromiseResolve(t),t=>this._lazyLoadPromiseReject(t))),this._lazyLoadPromise}}}}),FJt={};oc(FJt,{conf:()=>BJt,language:()=>jJt});var BJt,jJt,oYn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/basic-languages/graphql/graphql.js"(){BJt={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""'},{open:'"',close:'"'}],folding:{offSide:!0}},jJt={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}}}}),sYn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/basic-languages/graphql/graphql.contribution.js"(){rYn(),iYn({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Promise.resolve().then(()=>(oYn(),FJt))})}}),zJt={};oc(zJt,{CompletionAdapter:()=>l$e,DefinitionAdapter:()=>$Jt,DiagnosticsAdapter:()=>T6e,DocumentColorAdapter:()=>f$e,DocumentFormattingEditProvider:()=>d$e,DocumentHighlightAdapter:()=>UJt,DocumentLinkAdapter:()=>KJt,DocumentRangeFormattingEditProvider:()=>h$e,DocumentSymbolAdapter:()=>u$e,FoldingRangeAdapter:()=>p$e,HoverAdapter:()=>c$e,ReferenceAdapter:()=>qJt,RenameAdapter:()=>GJt,SelectionRangeAdapter:()=>g$e,WorkerManager:()=>a$e,fromPosition:()=>iI,fromRange:()=>D6e,getWorker:()=>wYn,setupMode:()=>CYn,toRange:()=>Jg,toTextEdit:()=>RB});function aYn(e){switch(e){case g6.Error:return Fs.MarkerSeverity.Error;case g6.Warning:return Fs.MarkerSeverity.Warning;case g6.Information:return Fs.MarkerSeverity.Info;case g6.Hint:return Fs.MarkerSeverity.Hint;default:return Fs.MarkerSeverity.Info}}function lYn(e,t){let n=typeof t.code=="number"?String(t.code):t.code;return{severity:aYn(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}function iI(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function D6e(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function Jg(e){if(e)return new Fs.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function cYn(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function uYn(e){const t=Fs.languages.CompletionItemKind;switch(e){case $h.Text:return t.Text;case $h.Method:return t.Method;case $h.Function:return t.Function;case $h.Constructor:return t.Constructor;case $h.Field:return t.Field;case $h.Variable:return t.Variable;case $h.Class:return t.Class;case $h.Interface:return t.Interface;case $h.Module:return t.Module;case $h.Property:return t.Property;case $h.Unit:return t.Unit;case $h.Value:return t.Value;case $h.Enum:return t.Enum;case $h.Keyword:return t.Keyword;case $h.Snippet:return t.Snippet;case $h.Color:return t.Color;case $h.File:return t.File;case $h.Reference:return t.Reference}return t.Property}function RB(e){if(e)return{range:Jg(e.range),text:e.newText}}function dYn(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}function hYn(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Ygt(e){return typeof e=="string"?{value:e}:hYn(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+`
`+e.value+"\n```\n"}}function fYn(e){if(e)return Array.isArray(e)?e.map(Ygt):[Ygt(e)]}function pYn(e){switch(e){case v$.Read:return Fs.languages.DocumentHighlightKind.Read;case v$.Write:return Fs.languages.DocumentHighlightKind.Write;case v$.Text:return Fs.languages.DocumentHighlightKind.Text}return Fs.languages.DocumentHighlightKind.Text}function Qgt(e){return{uri:Fs.Uri.parse(e.uri),range:Jg(e.range)}}function gYn(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const i=Fs.Uri.parse(n);for(let r of e.changes[n])t.push({resource:i,versionId:void 0,textEdit:{range:Jg(r.range),text:r.newText}})}return{edits:t}}function mYn(e){return"children"in e}function VJt(e){return{name:e.name,detail:e.detail??"",kind:HJt(e.kind),range:Jg(e.range),selectionRange:Jg(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map(t=>VJt(t))}}function HJt(e){let t=Fs.languages.SymbolKind;switch(e){case qh.File:return t.File;case qh.Module:return t.Module;case qh.Namespace:return t.Namespace;case qh.Package:return t.Package;case qh.Class:return t.Class;case qh.Method:return t.Method;case qh.Property:return t.Property;case qh.Field:return t.Field;case qh.Constructor:return t.Constructor;case qh.Enum:return t.Enum;case qh.Interface:return t.Interface;case qh.Function:return t.Function;case qh.Variable:return t.Variable;case qh.Constant:return t.Constant;case qh.String:return t.String;case qh.Number:return t.Number;case qh.Boolean:return t.Boolean;case qh.Array:return t.Array}return t.Function}function Zgt(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}function vYn(e){switch(e){case m$.Comment:return Fs.languages.FoldingRangeKind.Comment;case m$.Imports:return Fs.languages.FoldingRangeKind.Imports;case m$.Region:return Fs.languages.FoldingRangeKind.Region}}function yYn(e,t=!1){const n=e.length;let i=0,r="",o=0,s=16,a=0,l=0,c=0,u=0,d=0;function h(b,w){let E=0,A=0;for(;E<b;){let D=e.charCodeAt(i);if(D>=48&&D<=57)A=A*16+D-48;else if(D>=65&&D<=70)A=A*16+D-65+10;else if(D>=97&&D<=102)A=A*16+D-97+10;else break;i++,E++}return E<b&&(A=-1),A}function f(b){i=b,r="",o=0,s=16,d=0}function p(){let b=i;if(e.charCodeAt(i)===48)i++;else for(i++;i<e.length&&J5(e.charCodeAt(i));)i++;if(i<e.length&&e.charCodeAt(i)===46)if(i++,i<e.length&&J5(e.charCodeAt(i)))for(i++;i<e.length&&J5(e.charCodeAt(i));)i++;else return d=3,e.substring(b,i);let w=i;if(i<e.length&&(e.charCodeAt(i)===69||e.charCodeAt(i)===101))if(i++,(i<e.length&&e.charCodeAt(i)===43||e.charCodeAt(i)===45)&&i++,i<e.length&&J5(e.charCodeAt(i))){for(i++;i<e.length&&J5(e.charCodeAt(i));)i++;w=i}else d=3;return e.substring(b,w)}function g(){let b="",w=i;for(;;){if(i>=n){b+=e.substring(w,i),d=2;break}const E=e.charCodeAt(i);if(E===34){b+=e.substring(w,i),i++;break}if(E===92){if(b+=e.substring(w,i),i++,i>=n){d=2;break}switch(e.charCodeAt(i++)){case 34:b+='"';break;case 92:b+="\\";break;case 47:b+="/";break;case 98:b+="\b";break;case 102:b+="\f";break;case 110:b+=`
`;break;case 114:b+="\r";break;case 116:b+="	";break;case 117:const D=h(4);D>=0?b+=String.fromCharCode(D):d=4;break;default:d=5}w=i;continue}if(E>=0&&E<=31)if(NV(E)){b+=e.substring(w,i),d=2;break}else d=6;i++}return b}function m(){if(r="",d=0,o=i,l=a,u=c,i>=n)return o=n,s=17;let b=e.charCodeAt(i);if(oxe(b)){do i++,r+=String.fromCharCode(b),b=e.charCodeAt(i);while(oxe(b));return s=15}if(NV(b))return i++,r+=String.fromCharCode(b),b===13&&e.charCodeAt(i)===10&&(i++,r+=`
`),a++,c=i,s=14;switch(b){case 123:return i++,s=1;case 125:return i++,s=2;case 91:return i++,s=3;case 93:return i++,s=4;case 58:return i++,s=6;case 44:return i++,s=5;case 34:return i++,r=g(),s=10;case 47:const w=i-1;if(e.charCodeAt(i+1)===47){for(i+=2;i<n&&!NV(e.charCodeAt(i));)i++;return r=e.substring(w,i),s=12}if(e.charCodeAt(i+1)===42){i+=2;const E=n-1;let A=!1;for(;i<E;){const D=e.charCodeAt(i);if(D===42&&e.charCodeAt(i+1)===47){i+=2,A=!0;break}i++,NV(D)&&(D===13&&e.charCodeAt(i)===10&&i++,a++,c=i)}return A||(i++,d=1),r=e.substring(w,i),s=13}return r+=String.fromCharCode(b),i++,s=16;case 45:if(r+=String.fromCharCode(b),i++,i===n||!J5(e.charCodeAt(i)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return r+=p(),s=11;default:for(;i<n&&v(b);)i++,b=e.charCodeAt(i);if(o!==i){switch(r=e.substring(o,i),r){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return r+=String.fromCharCode(b),i++,s=16}}function v(b){if(oxe(b)||NV(b))return!1;switch(b){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function y(){let b;do b=m();while(b>=12&&b<=15);return b}return{setPosition:f,getPosition:()=>i,scan:t?y:m,getToken:()=>s,getTokenValue:()=>r,getTokenOffset:()=>o,getTokenLength:()=>i-o,getTokenStartLine:()=>l,getTokenStartCharacter:()=>o-u,getTokenError:()=>d}}function oxe(e){return e===32||e===9}function NV(e){return e===10||e===13}function J5(e){return e>=48&&e<=57}function bYn(e){return{getInitialState:()=>new m$e(null,null,!1,null),tokenize:(t,n)=>_Yn(e,t,n)}}function _Yn(e,t,n,i=0){let r=0,o=!1;switch(n.scanError){case 2:t='"'+t,r=1;break;case 1:t="/*"+t,r=2;break}const s=YJt(t);let a=n.lastWasColon,l=n.parents;const c={tokens:[],endState:n.clone()};for(;;){let u=i+s.getPosition(),d="";const h=s.scan();if(h===17)break;if(u===i+s.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+t.substr(s.getPosition(),3));switch(o&&(u-=r),o=r>0,h){case 1:l=m6.push(l,0),d=k6e,a=!1;break;case 2:l=m6.pop(l),d=k6e,a=!1;break;case 3:l=m6.push(l,1),d=I6e,a=!1;break;case 4:l=m6.pop(l),d=I6e,a=!1;break;case 6:d=QJt,a=!0;break;case 5:d=ZJt,a=!1;break;case 8:case 9:d=XJt,a=!1;break;case 7:d=JJt,a=!1;break;case 10:const p=(l?l.type:0)===1;d=a||p?een:nen,a=!1;break;case 11:d=ten,a=!1;break}switch(h){case 12:d=ren;break;case 13:d=ien;break}c.endState=new m$e(n.getStateData(),s.getTokenError(),a,l),c.tokens.push({startIndex:u,scopes:d})}return c}function wYn(){return new Promise((e,t)=>{if(!o_)return t("JSON not registered!");e(o_)})}function CYn(e){const t=[],n=[],i=new a$e(e);t.push(i),o_=(...s)=>i.getLanguageServiceWorker(...s);function r(){const{languageId:s,modeConfiguration:a}=e;WJt(n),a.documentFormattingEdits&&n.push(Fs.languages.registerDocumentFormattingEditProvider(s,new d$e(o_))),a.documentRangeFormattingEdits&&n.push(Fs.languages.registerDocumentRangeFormattingEditProvider(s,new h$e(o_))),a.completionItems&&n.push(Fs.languages.registerCompletionItemProvider(s,new l$e(o_,[" ",":",'"']))),a.hovers&&n.push(Fs.languages.registerHoverProvider(s,new c$e(o_))),a.documentSymbols&&n.push(Fs.languages.registerDocumentSymbolProvider(s,new u$e(o_))),a.tokens&&n.push(Fs.languages.setTokensProvider(s,bYn(!0))),a.colors&&n.push(Fs.languages.registerColorProvider(s,new f$e(o_))),a.foldingRanges&&n.push(Fs.languages.registerFoldingRangeProvider(s,new p$e(o_))),a.diagnostics&&n.push(new oen(s,o_,e)),a.selectionRanges&&n.push(Fs.languages.registerSelectionRangeProvider(s,new g$e(o_)))}r(),t.push(Fs.languages.setLanguageConfiguration(e.languageId,sen));let o=e.modeConfiguration;return e.onDidChange(s=>{s.modeConfiguration!==o&&(o=s.modeConfiguration,r())}),t.push(Xgt(n)),Xgt(t)}function Xgt(e){return{dispose:()=>WJt(e)}}function WJt(e){for(;e.length;)e.pop().dispose()}var Jgt,emt,tmt,nmt,sxe,imt,Fs,rmt,a$e,omt,axe,smt,ste,t1,th,ate,amt,lxe,lmt,cmt,m$,umt,cxe,g6,dmt,hmt,lte,e4,t4,uxe,n4,fmt,dxe,hxe,fxe,pxe,gxe,pmt,gmt,mxe,mmt,vxe,PV,$h,yxe,vmt,ymt,bmt,_mt,wmt,Cmt,cte,Smt,xmt,Emt,v$,Amt,qh,Dmt,Tmt,kmt,Imt,Lmt,ute,Nmt,Pmt,Mmt,Omt,Rmt,Fmt,Bmt,jmt,zmt,Vmt,Hmt,Wmt,Umt,bxe,_xe,$mt,qmt,Gmt,Kmt,Ymt,Qmt,Zmt,Xmt,Jmt,evt,Sn,T6e,l$e,c$e,UJt,$Jt,qJt,GJt,u$e,KJt,d$e,h$e,f$e,p$e,g$e,tvt,XP,nvt,YJt,ivt,rvt,ovt,k6e,I6e,QJt,ZJt,XJt,JJt,een,ten,nen,ien,ren,m6,m$e,o_,oen,sen,SYn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/language/json/jsonMode.js"(){h9(),Jgt=Object.defineProperty,emt=Object.getOwnPropertyDescriptor,tmt=Object.getOwnPropertyNames,nmt=Object.prototype.hasOwnProperty,sxe=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of tmt(t))!nmt.call(e,r)&&r!==n&&Jgt(e,r,{get:()=>t[r],enumerable:!(i=emt(t,r))||i.enumerable});return e},imt=(e,t,n)=>(sxe(e,t,"default"),n&&sxe(n,t,"default")),Fs={},imt(Fs,Gge),rmt=120*1e3,a$e=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>rmt&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=Fs.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(n=>{t=n}).then(n=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(n=>t)}},(function(e){function t(n){return typeof n=="string"}e.is=t})(omt||(omt={})),(function(e){function t(n){return typeof n=="string"}e.is=t})(axe||(axe={})),(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(smt||(smt={})),(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(ste||(ste={})),(function(e){function t(i,r){return i===Number.MAX_VALUE&&(i=ste.MAX_VALUE),r===Number.MAX_VALUE&&(r=ste.MAX_VALUE),{line:i,character:r}}e.create=t;function n(i){let r=i;return Sn.objectLiteral(r)&&Sn.uinteger(r.line)&&Sn.uinteger(r.character)}e.is=n})(t1||(t1={})),(function(e){function t(i,r,o,s){if(Sn.uinteger(i)&&Sn.uinteger(r)&&Sn.uinteger(o)&&Sn.uinteger(s))return{start:t1.create(i,r),end:t1.create(o,s)};if(t1.is(i)&&t1.is(r))return{start:i,end:r};throw new Error(`Range#create called with invalid arguments[${i}, ${r}, ${o}, ${s}]`)}e.create=t;function n(i){let r=i;return Sn.objectLiteral(r)&&t1.is(r.start)&&t1.is(r.end)}e.is=n})(th||(th={})),(function(e){function t(i,r){return{uri:i,range:r}}e.create=t;function n(i){let r=i;return Sn.objectLiteral(r)&&th.is(r.range)&&(Sn.string(r.uri)||Sn.undefined(r.uri))}e.is=n})(ate||(ate={})),(function(e){function t(i,r,o,s){return{targetUri:i,targetRange:r,targetSelectionRange:o,originSelectionRange:s}}e.create=t;function n(i){let r=i;return Sn.objectLiteral(r)&&th.is(r.targetRange)&&Sn.string(r.targetUri)&&th.is(r.targetSelectionRange)&&(th.is(r.originSelectionRange)||Sn.undefined(r.originSelectionRange))}e.is=n})(amt||(amt={})),(function(e){function t(i,r,o,s){return{red:i,green:r,blue:o,alpha:s}}e.create=t;function n(i){const r=i;return Sn.objectLiteral(r)&&Sn.numberRange(r.red,0,1)&&Sn.numberRange(r.green,0,1)&&Sn.numberRange(r.blue,0,1)&&Sn.numberRange(r.alpha,0,1)}e.is=n})(lxe||(lxe={})),(function(e){function t(i,r){return{range:i,color:r}}e.create=t;function n(i){const r=i;return Sn.objectLiteral(r)&&th.is(r.range)&&lxe.is(r.color)}e.is=n})(lmt||(lmt={})),(function(e){function t(i,r,o){return{label:i,textEdit:r,additionalTextEdits:o}}e.create=t;function n(i){const r=i;return Sn.objectLiteral(r)&&Sn.string(r.label)&&(Sn.undefined(r.textEdit)||t4.is(r))&&(Sn.undefined(r.additionalTextEdits)||Sn.typedArray(r.additionalTextEdits,t4.is))}e.is=n})(cmt||(cmt={})),(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(m$||(m$={})),(function(e){function t(i,r,o,s,a,l){const c={startLine:i,endLine:r};return Sn.defined(o)&&(c.startCharacter=o),Sn.defined(s)&&(c.endCharacter=s),Sn.defined(a)&&(c.kind=a),Sn.defined(l)&&(c.collapsedText=l),c}e.create=t;function n(i){const r=i;return Sn.objectLiteral(r)&&Sn.uinteger(r.startLine)&&Sn.uinteger(r.startLine)&&(Sn.undefined(r.startCharacter)||Sn.uinteger(r.startCharacter))&&(Sn.undefined(r.endCharacter)||Sn.uinteger(r.endCharacter))&&(Sn.undefined(r.kind)||Sn.string(r.kind))}e.is=n})(umt||(umt={})),(function(e){function t(i,r){return{location:i,message:r}}e.create=t;function n(i){let r=i;return Sn.defined(r)&&ate.is(r.location)&&Sn.string(r.message)}e.is=n})(cxe||(cxe={})),(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(g6||(g6={})),(function(e){e.Unnecessary=1,e.Deprecated=2})(dmt||(dmt={})),(function(e){function t(n){const i=n;return Sn.objectLiteral(i)&&Sn.string(i.href)}e.is=t})(hmt||(hmt={})),(function(e){function t(i,r,o,s,a,l){let c={range:i,message:r};return Sn.defined(o)&&(c.severity=o),Sn.defined(s)&&(c.code=s),Sn.defined(a)&&(c.source=a),Sn.defined(l)&&(c.relatedInformation=l),c}e.create=t;function n(i){var r;let o=i;return Sn.defined(o)&&th.is(o.range)&&Sn.string(o.message)&&(Sn.number(o.severity)||Sn.undefined(o.severity))&&(Sn.integer(o.code)||Sn.string(o.code)||Sn.undefined(o.code))&&(Sn.undefined(o.codeDescription)||Sn.string((r=o.codeDescription)===null||r===void 0?void 0:r.href))&&(Sn.string(o.source)||Sn.undefined(o.source))&&(Sn.undefined(o.relatedInformation)||Sn.typedArray(o.relatedInformation,cxe.is))}e.is=n})(lte||(lte={})),(function(e){function t(i,r,...o){let s={title:i,command:r};return Sn.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=t;function n(i){let r=i;return Sn.defined(r)&&Sn.string(r.title)&&Sn.string(r.command)}e.is=n})(e4||(e4={})),(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function n(o,s){return{range:{start:o,end:o},newText:s}}e.insert=n;function i(o){return{range:o,newText:""}}e.del=i;function r(o){const s=o;return Sn.objectLiteral(s)&&Sn.string(s.newText)&&th.is(s.range)}e.is=r})(t4||(t4={})),(function(e){function t(i,r,o){const s={label:i};return r!==void 0&&(s.needsConfirmation=r),o!==void 0&&(s.description=o),s}e.create=t;function n(i){const r=i;return Sn.objectLiteral(r)&&Sn.string(r.label)&&(Sn.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(Sn.string(r.description)||r.description===void 0)}e.is=n})(uxe||(uxe={})),(function(e){function t(n){const i=n;return Sn.string(i)}e.is=t})(n4||(n4={})),(function(e){function t(o,s,a){return{range:o,newText:s,annotationId:a}}e.replace=t;function n(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}e.insert=n;function i(o,s){return{range:o,newText:"",annotationId:s}}e.del=i;function r(o){const s=o;return t4.is(s)&&(uxe.is(s.annotationId)||n4.is(s.annotationId))}e.is=r})(fmt||(fmt={})),(function(e){function t(i,r){return{textDocument:i,edits:r}}e.create=t;function n(i){let r=i;return Sn.defined(r)&&mxe.is(r.textDocument)&&Array.isArray(r.edits)}e.is=n})(dxe||(dxe={})),(function(e){function t(i,r,o){let s={kind:"create",uri:i};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(s.options=r),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(i){let r=i;return r&&r.kind==="create"&&Sn.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||Sn.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||Sn.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||n4.is(r.annotationId))}e.is=n})(hxe||(hxe={})),(function(e){function t(i,r,o,s){let a={kind:"rename",oldUri:i,newUri:r};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(i){let r=i;return r&&r.kind==="rename"&&Sn.string(r.oldUri)&&Sn.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||Sn.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||Sn.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||n4.is(r.annotationId))}e.is=n})(fxe||(fxe={})),(function(e){function t(i,r,o){let s={kind:"delete",uri:i};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(s.options=r),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(i){let r=i;return r&&r.kind==="delete"&&Sn.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||Sn.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||Sn.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||n4.is(r.annotationId))}e.is=n})(pxe||(pxe={})),(function(e){function t(n){let i=n;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every(r=>Sn.string(r.kind)?hxe.is(r)||fxe.is(r)||pxe.is(r):dxe.is(r)))}e.is=t})(gxe||(gxe={})),(function(e){function t(i){return{uri:i}}e.create=t;function n(i){let r=i;return Sn.defined(r)&&Sn.string(r.uri)}e.is=n})(pmt||(pmt={})),(function(e){function t(i,r){return{uri:i,version:r}}e.create=t;function n(i){let r=i;return Sn.defined(r)&&Sn.string(r.uri)&&Sn.integer(r.version)}e.is=n})(gmt||(gmt={})),(function(e){function t(i,r){return{uri:i,version:r}}e.create=t;function n(i){let r=i;return Sn.defined(r)&&Sn.string(r.uri)&&(r.version===null||Sn.integer(r.version))}e.is=n})(mxe||(mxe={})),(function(e){function t(i,r,o,s){return{uri:i,languageId:r,version:o,text:s}}e.create=t;function n(i){let r=i;return Sn.defined(r)&&Sn.string(r.uri)&&Sn.string(r.languageId)&&Sn.integer(r.version)&&Sn.string(r.text)}e.is=n})(mmt||(mmt={})),(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){const i=n;return i===e.PlainText||i===e.Markdown}e.is=t})(vxe||(vxe={})),(function(e){function t(n){const i=n;return Sn.objectLiteral(n)&&vxe.is(i.kind)&&Sn.string(i.value)}e.is=t})(PV||(PV={})),(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})($h||($h={})),(function(e){e.PlainText=1,e.Snippet=2})(yxe||(yxe={})),(function(e){e.Deprecated=1})(vmt||(vmt={})),(function(e){function t(i,r,o){return{newText:i,insert:r,replace:o}}e.create=t;function n(i){const r=i;return r&&Sn.string(r.newText)&&th.is(r.insert)&&th.is(r.replace)}e.is=n})(ymt||(ymt={})),(function(e){e.asIs=1,e.adjustIndentation=2})(bmt||(bmt={})),(function(e){function t(n){const i=n;return i&&(Sn.string(i.detail)||i.detail===void 0)&&(Sn.string(i.description)||i.description===void 0)}e.is=t})(_mt||(_mt={})),(function(e){function t(n){return{label:n}}e.create=t})(wmt||(wmt={})),(function(e){function t(n,i){return{items:n||[],isIncomplete:!!i}}e.create=t})(Cmt||(Cmt={})),(function(e){function t(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(i){const r=i;return Sn.string(r)||Sn.objectLiteral(r)&&Sn.string(r.language)&&Sn.string(r.value)}e.is=n})(cte||(cte={})),(function(e){function t(n){let i=n;return!!i&&Sn.objectLiteral(i)&&(PV.is(i.contents)||cte.is(i.contents)||Sn.typedArray(i.contents,cte.is))&&(n.range===void 0||th.is(n.range))}e.is=t})(Smt||(Smt={})),(function(e){function t(n,i){return i?{label:n,documentation:i}:{label:n}}e.create=t})(xmt||(xmt={})),(function(e){function t(n,i,...r){let o={label:n};return Sn.defined(i)&&(o.documentation=i),Sn.defined(r)?o.parameters=r:o.parameters=[],o}e.create=t})(Emt||(Emt={})),(function(e){e.Text=1,e.Read=2,e.Write=3})(v$||(v$={})),(function(e){function t(n,i){let r={range:n};return Sn.number(i)&&(r.kind=i),r}e.create=t})(Amt||(Amt={})),(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(qh||(qh={})),(function(e){e.Deprecated=1})(Dmt||(Dmt={})),(function(e){function t(n,i,r,o,s){let a={name:n,kind:i,location:{uri:o,range:r}};return s&&(a.containerName=s),a}e.create=t})(Tmt||(Tmt={})),(function(e){function t(n,i,r,o){return o!==void 0?{name:n,kind:i,location:{uri:r,range:o}}:{name:n,kind:i,location:{uri:r}}}e.create=t})(kmt||(kmt={})),(function(e){function t(i,r,o,s,a,l){let c={name:i,detail:r,kind:o,range:s,selectionRange:a};return l!==void 0&&(c.children=l),c}e.create=t;function n(i){let r=i;return r&&Sn.string(r.name)&&Sn.number(r.kind)&&th.is(r.range)&&th.is(r.selectionRange)&&(r.detail===void 0||Sn.string(r.detail))&&(r.deprecated===void 0||Sn.boolean(r.deprecated))&&(r.children===void 0||Array.isArray(r.children))&&(r.tags===void 0||Array.isArray(r.tags))}e.is=n})(Imt||(Imt={})),(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Lmt||(Lmt={})),(function(e){e.Invoked=1,e.Automatic=2})(ute||(ute={})),(function(e){function t(i,r,o){let s={diagnostics:i};return r!=null&&(s.only=r),o!=null&&(s.triggerKind=o),s}e.create=t;function n(i){let r=i;return Sn.defined(r)&&Sn.typedArray(r.diagnostics,lte.is)&&(r.only===void 0||Sn.typedArray(r.only,Sn.string))&&(r.triggerKind===void 0||r.triggerKind===ute.Invoked||r.triggerKind===ute.Automatic)}e.is=n})(Nmt||(Nmt={})),(function(e){function t(i,r,o){let s={title:i},a=!0;return typeof r=="string"?(a=!1,s.kind=r):e4.is(r)?s.command=r:s.edit=r,a&&o!==void 0&&(s.kind=o),s}e.create=t;function n(i){let r=i;return r&&Sn.string(r.title)&&(r.diagnostics===void 0||Sn.typedArray(r.diagnostics,lte.is))&&(r.kind===void 0||Sn.string(r.kind))&&(r.edit!==void 0||r.command!==void 0)&&(r.command===void 0||e4.is(r.command))&&(r.isPreferred===void 0||Sn.boolean(r.isPreferred))&&(r.edit===void 0||gxe.is(r.edit))}e.is=n})(Pmt||(Pmt={})),(function(e){function t(i,r){let o={range:i};return Sn.defined(r)&&(o.data=r),o}e.create=t;function n(i){let r=i;return Sn.defined(r)&&th.is(r.range)&&(Sn.undefined(r.command)||e4.is(r.command))}e.is=n})(Mmt||(Mmt={})),(function(e){function t(i,r){return{tabSize:i,insertSpaces:r}}e.create=t;function n(i){let r=i;return Sn.defined(r)&&Sn.uinteger(r.tabSize)&&Sn.boolean(r.insertSpaces)}e.is=n})(Omt||(Omt={})),(function(e){function t(i,r,o){return{range:i,target:r,data:o}}e.create=t;function n(i){let r=i;return Sn.defined(r)&&th.is(r.range)&&(Sn.undefined(r.target)||Sn.string(r.target))}e.is=n})(Rmt||(Rmt={})),(function(e){function t(i,r){return{range:i,parent:r}}e.create=t;function n(i){let r=i;return Sn.objectLiteral(r)&&th.is(r.range)&&(r.parent===void 0||e.is(r.parent))}e.is=n})(Fmt||(Fmt={})),(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Bmt||(Bmt={})),(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(jmt||(jmt={})),(function(e){function t(n){const i=n;return Sn.objectLiteral(i)&&(i.resultId===void 0||typeof i.resultId=="string")&&Array.isArray(i.data)&&(i.data.length===0||typeof i.data[0]=="number")}e.is=t})(zmt||(zmt={})),(function(e){function t(i,r){return{range:i,text:r}}e.create=t;function n(i){const r=i;return r!=null&&th.is(r.range)&&Sn.string(r.text)}e.is=n})(Vmt||(Vmt={})),(function(e){function t(i,r,o){return{range:i,variableName:r,caseSensitiveLookup:o}}e.create=t;function n(i){const r=i;return r!=null&&th.is(r.range)&&Sn.boolean(r.caseSensitiveLookup)&&(Sn.string(r.variableName)||r.variableName===void 0)}e.is=n})(Hmt||(Hmt={})),(function(e){function t(i,r){return{range:i,expression:r}}e.create=t;function n(i){const r=i;return r!=null&&th.is(r.range)&&(Sn.string(r.expression)||r.expression===void 0)}e.is=n})(Wmt||(Wmt={})),(function(e){function t(i,r){return{frameId:i,stoppedLocation:r}}e.create=t;function n(i){const r=i;return Sn.defined(r)&&th.is(i.stoppedLocation)}e.is=n})(Umt||(Umt={})),(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(bxe||(bxe={})),(function(e){function t(i){return{value:i}}e.create=t;function n(i){const r=i;return Sn.objectLiteral(r)&&(r.tooltip===void 0||Sn.string(r.tooltip)||PV.is(r.tooltip))&&(r.location===void 0||ate.is(r.location))&&(r.command===void 0||e4.is(r.command))}e.is=n})(_xe||(_xe={})),(function(e){function t(i,r,o){const s={position:i,label:r};return o!==void 0&&(s.kind=o),s}e.create=t;function n(i){const r=i;return Sn.objectLiteral(r)&&t1.is(r.position)&&(Sn.string(r.label)||Sn.typedArray(r.label,_xe.is))&&(r.kind===void 0||bxe.is(r.kind))&&r.textEdits===void 0||Sn.typedArray(r.textEdits,t4.is)&&(r.tooltip===void 0||Sn.string(r.tooltip)||PV.is(r.tooltip))&&(r.paddingLeft===void 0||Sn.boolean(r.paddingLeft))&&(r.paddingRight===void 0||Sn.boolean(r.paddingRight))}e.is=n})($mt||($mt={})),(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(qmt||(qmt={})),(function(e){function t(n,i,r,o){return{insertText:n,filterText:i,range:r,command:o}}e.create=t})(Gmt||(Gmt={})),(function(e){function t(n){return{items:n}}e.create=t})(Kmt||(Kmt={})),(function(e){e.Invoked=0,e.Automatic=1})(Ymt||(Ymt={})),(function(e){function t(n,i){return{range:n,text:i}}e.create=t})(Qmt||(Qmt={})),(function(e){function t(n,i){return{triggerKind:n,selectedCompletionInfo:i}}e.create=t})(Zmt||(Zmt={})),(function(e){function t(n){const i=n;return Sn.objectLiteral(i)&&axe.is(i.uri)&&Sn.string(i.name)}e.is=t})(Xmt||(Xmt={})),(function(e){function t(o,s,a,l){return new evt(o,s,a,l)}e.create=t;function n(o){let s=o;return!!(Sn.defined(s)&&Sn.string(s.uri)&&(Sn.undefined(s.languageId)||Sn.string(s.languageId))&&Sn.uinteger(s.lineCount)&&Sn.func(s.getText)&&Sn.func(s.positionAt)&&Sn.func(s.offsetAt))}e.is=n;function i(o,s){let a=o.getText(),l=r(s,(u,d)=>{let h=u.range.start.line-d.range.start.line;return h===0?u.range.start.character-d.range.start.character:h}),c=a.length;for(let u=l.length-1;u>=0;u--){let d=l[u],h=o.offsetAt(d.range.start),f=o.offsetAt(d.range.end);if(f<=c)a=a.substring(0,h)+d.newText+a.substring(f,a.length);else throw new Error("Overlapping edit");c=h}return a}e.applyEdits=i;function r(o,s){if(o.length<=1)return o;const a=o.length/2|0,l=o.slice(0,a),c=o.slice(a);r(l,s),r(c,s);let u=0,d=0,h=0;for(;u<l.length&&d<c.length;)s(l[u],c[d])<=0?o[h++]=l[u++]:o[h++]=c[d++];for(;u<l.length;)o[h++]=l[u++];for(;d<c.length;)o[h++]=c[d++];return o}})(Jmt||(Jmt={})),evt=class{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],t=this._content,n=!0;for(let i=0;i<t.length;i++){n&&(e.push(i),n=!1);let r=t.charAt(i);n=r==="\r"||r===`
`,r==="\r"&&i+1<t.length&&t.charAt(i+1)===`
`&&i++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,i=t.length;if(i===0)return t1.create(0,e);for(;n<i;){let o=Math.floor((n+i)/2);t[o]>e?i=o:n=o+1}let r=n-1;return t1.create(r,e-t[r])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)}get lineCount(){return this.getLineOffsets().length}},(function(e){const t=Object.prototype.toString;function n(f){return typeof f<"u"}e.defined=n;function i(f){return typeof f>"u"}e.undefined=i;function r(f){return f===!0||f===!1}e.boolean=r;function o(f){return t.call(f)==="[object String]"}e.string=o;function s(f){return t.call(f)==="[object Number]"}e.number=s;function a(f,p,g){return t.call(f)==="[object Number]"&&p<=f&&f<=g}e.numberRange=a;function l(f){return t.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}e.integer=l;function c(f){return t.call(f)==="[object Number]"&&0<=f&&f<=2147483647}e.uinteger=c;function u(f){return t.call(f)==="[object Function]"}e.func=u;function d(f){return f!==null&&typeof f=="object"}e.objectLiteral=d;function h(f,p){return Array.isArray(f)&&f.every(p)}e.typedArray=h})(Sn||(Sn={})),T6e=class{constructor(e,t,n){this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null);const i=o=>{let s=o.getLanguageId();if(s!==this._languageId)return;let a;this._listener[o.uri.toString()]=o.onDidChangeContent(()=>{window.clearTimeout(a),a=window.setTimeout(()=>this._doValidate(o.uri,s),500)}),this._doValidate(o.uri,s)},r=o=>{Fs.editor.setModelMarkers(o,this._languageId,[]);let s=o.uri.toString(),a=this._listener[s];a&&(a.dispose(),delete this._listener[s])};this._disposables.push(Fs.editor.onDidCreateModel(i)),this._disposables.push(Fs.editor.onWillDisposeModel(r)),this._disposables.push(Fs.editor.onDidChangeModelLanguage(o=>{r(o.model),i(o.model)})),this._disposables.push(n(o=>{Fs.editor.getModels().forEach(s=>{s.getLanguageId()===this._languageId&&(r(s),i(s))})})),this._disposables.push({dispose:()=>{Fs.editor.getModels().forEach(r);for(let o in this._listener)this._listener[o].dispose()}}),Fs.editor.getModels().forEach(i)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,t){this._worker(e).then(n=>n.doValidation(e.toString())).then(n=>{const i=n.map(o=>lYn(e,o));let r=Fs.editor.getModel(e);r&&r.getLanguageId()===t&&Fs.editor.setModelMarkers(r,t,i)}).then(void 0,n=>{console.error(n)})}},l$e=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,i){const r=e.uri;return this._worker(r).then(o=>o.doComplete(r.toString(),iI(t))).then(o=>{if(!o)return;const s=e.getWordUntilPosition(t),a=new Fs.Range(t.lineNumber,s.startColumn,t.lineNumber,s.endColumn),l=o.items.map(c=>{const u={label:c.label,insertText:c.insertText||c.label,sortText:c.sortText,filterText:c.filterText,documentation:c.documentation,detail:c.detail,command:dYn(c.command),range:a,kind:uYn(c.kind)};return c.textEdit&&(cYn(c.textEdit)?u.range={insert:Jg(c.textEdit.insert),replace:Jg(c.textEdit.replace)}:u.range=Jg(c.textEdit.range),u.insertText=c.textEdit.newText),c.additionalTextEdits&&(u.additionalTextEdits=c.additionalTextEdits.map(RB)),c.insertTextFormat===yxe.Snippet&&(u.insertTextRules=Fs.languages.CompletionItemInsertTextRule.InsertAsSnippet),u});return{isIncomplete:o.isIncomplete,suggestions:l}})}},c$e=class{constructor(e){this._worker=e}provideHover(e,t,n){let i=e.uri;return this._worker(i).then(r=>r.doHover(i.toString(),iI(t))).then(r=>{if(r)return{range:Jg(r.range),contents:fYn(r.contents)}})}},UJt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentHighlights(i.toString(),iI(t))).then(r=>{if(r)return r.map(o=>({range:Jg(o.range),kind:pYn(o.kind)}))})}},$Jt=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const i=e.uri;return this._worker(i).then(r=>r.findDefinition(i.toString(),iI(t))).then(r=>{if(r)return[Qgt(r)]})}},qJt=class{constructor(e){this._worker=e}provideReferences(e,t,n,i){const r=e.uri;return this._worker(r).then(o=>o.findReferences(r.toString(),iI(t))).then(o=>{if(o)return o.map(Qgt)})}},GJt=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,i){const r=e.uri;return this._worker(r).then(o=>o.doRename(r.toString(),iI(t),n)).then(o=>gYn(o))}},u$e=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then(i=>i.findDocumentSymbols(n.toString())).then(i=>{if(i)return i.map(r=>mYn(r)?VJt(r):{name:r.name,detail:"",containerName:r.containerName,kind:HJt(r.kind),range:Jg(r.location.range),selectionRange:Jg(r.location.range),tags:[]})})}},KJt=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then(i=>i.findDocumentLinks(n.toString())).then(i=>{if(i)return{links:i.map(r=>({range:Jg(r.range),url:r.target}))}})}},d$e=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const i=e.uri;return this._worker(i).then(r=>r.format(i.toString(),null,Zgt(t)).then(o=>{if(!(!o||o.length===0))return o.map(RB)}))}},h$e=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,t,n,i){const r=e.uri;return this._worker(r).then(o=>o.format(r.toString(),D6e(t),Zgt(n)).then(s=>{if(!(!s||s.length===0))return s.map(RB)}))}},f$e=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then(i=>i.findDocumentColors(n.toString())).then(i=>{if(i)return i.map(r=>({color:r.color,range:Jg(r.range)}))})}provideColorPresentations(e,t,n){const i=e.uri;return this._worker(i).then(r=>r.getColorPresentations(i.toString(),t.color,D6e(t.range))).then(r=>{if(r)return r.map(o=>{let s={label:o.label};return o.textEdit&&(s.textEdit=RB(o.textEdit)),o.additionalTextEdits&&(s.additionalTextEdits=o.additionalTextEdits.map(RB)),s})})}},p$e=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const i=e.uri;return this._worker(i).then(r=>r.getFoldingRanges(i.toString(),t)).then(r=>{if(r)return r.map(o=>{const s={start:o.startLine+1,end:o.endLine+1};return typeof o.kind<"u"&&(s.kind=vYn(o.kind)),s})})}},g$e=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const i=e.uri;return this._worker(i).then(r=>r.getSelectionRanges(i.toString(),t.map(iI))).then(r=>{if(r)return r.map(o=>{const s=[];for(;o;)s.push({range:Jg(o.range)}),o=o.parent;return s})})}},(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(tvt||(tvt={})),new Array(20).fill(0).map((e,t)=>" ".repeat(t)),XP=200,new Array(XP).fill(0).map((e,t)=>`
`+" ".repeat(t)),new Array(XP).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(XP).fill(0).map((e,t)=>`\r
`+" ".repeat(t)),new Array(XP).fill(0).map((e,t)=>`
`+"	".repeat(t)),new Array(XP).fill(0).map((e,t)=>"\r"+"	".repeat(t)),new Array(XP).fill(0).map((e,t)=>`\r
`+"	".repeat(t)),(function(e){e.DEFAULT={allowTrailingComma:!1}})(nvt||(nvt={})),YJt=yYn,(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(ivt||(ivt={})),(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(rvt||(rvt={})),(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(ovt||(ovt={})),k6e="delimiter.bracket.json",I6e="delimiter.array.json",QJt="delimiter.colon.json",ZJt="delimiter.comma.json",XJt="keyword.json",JJt="keyword.json",een="string.value.json",ten="number.json",nen="string.key.json",ien="comment.block.json",ren="comment.line.json",m6=class aen{constructor(t,n){this.parent=t,this.type=n}static pop(t){return t?t.parent:null}static push(t,n){return new aen(t,n)}static equals(t,n){if(!t&&!n)return!0;if(!t||!n)return!1;for(;t&&n;){if(t===n)return!0;if(t.type!==n.type)return!1;t=t.parent,n=n.parent}return!0}},m$e=class L6e{constructor(t,n,i,r){this._state=t,this.scanError=n,this.lastWasColon=i,this.parents=r}clone(){return new L6e(this._state,this.scanError,this.lastWasColon,this.parents)}equals(t){return t===this?!0:!t||!(t instanceof L6e)?!1:this.scanError===t.scanError&&this.lastWasColon===t.lastWasColon&&m6.equals(this.parents,t.parents)}getStateData(){return this._state}setStateData(t){this._state=t}},oen=class extends T6e{constructor(e,t,n){super(e,t,n.onDidChange),this._disposables.push(Fs.editor.onWillDisposeModel(i=>{this._resetSchema(i.uri)})),this._disposables.push(Fs.editor.onDidChangeModelLanguage(i=>{this._resetSchema(i.model.uri)}))}_resetSchema(e){this._worker().then(t=>{t.resetSchema(e.toString())})}},sen={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]}}}),len={};oc(len,{getWorker:()=>N6e,jsonDefaults:()=>jae});function svt(){return Promise.resolve().then(()=>(SYn(),zJt))}var avt,lvt,cvt,uvt,wxe,dvt,i4,hvt,fvt,pvt,jae,N6e,cen=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/language/json/monaco.contribution.js"(){h9(),h9(),avt=Object.defineProperty,lvt=Object.getOwnPropertyDescriptor,cvt=Object.getOwnPropertyNames,uvt=Object.prototype.hasOwnProperty,wxe=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of cvt(t))!uvt.call(e,r)&&r!==n&&avt(e,r,{get:()=>t[r],enumerable:!(i=lvt(t,r))||i.enumerable});return e},dvt=(e,t,n)=>(wxe(e,t,"default"),n&&wxe(n,t,"default")),i4={},dvt(i4,Gge),hvt=class{constructor(e,t,n){this._onDidChange=new i4.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},fvt={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},pvt={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},jae=new hvt("json",fvt,pvt),N6e=()=>svt().then(e=>e.getWorker()),i4.languages.json={jsonDefaults:jae,getWorker:N6e},i4.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),i4.languages.onLanguage("json",()=>{svt().then(e=>e.setupMode(jae))})}});function xYn(e,t,n){return e.get(Jo).listDiffEditors().find(o=>{const s=o.getModifiedEditor(),a=o.getOriginalEditor();return s&&s.getModel()?.uri.toString()===n.toString()&&a&&a.getModel()?.uri.toString()===t.toString()})||null}function r4(e){const n=e.get(Jo).listDiffEditors(),i=cf();if(i)for(const r of n){const o=r.getContainerDomNode();if(EYn(o,i))return r}return null}function EYn(e,t){let n=t;for(;n;){if(n===e)return!0;n=n.parentElement}return!1}var uen,P6e,M6e,o4,den,hen,fen,pen,zae,Cxe,Vae,O6e,AYn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/commands.js"(){var e,t;Fn(),ia(),mr(),Ec(),GUe(),ls(),bn(),ha(),sa(),er(),aF(),uen=class extends pp{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:yr("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:An.map,toggled:nn.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:nn.has("isInDiffEditor"),menu:{when:nn.has("isInDiffEditor"),id:Ti.EditorTitle,order:22,group:"navigation"}})}run(n,...i){const r=n.get(co),o=!r.getValue("diffEditor.hideUnchangedRegions.enabled");r.updateValue("diffEditor.hideUnchangedRegions.enabled",o)}},P6e=class extends pp{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:yr("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:nn.has("isInDiffEditor")})}run(n,...i){const r=n.get(co),o=!r.getValue("diffEditor.experimental.showMoves");r.updateValue("diffEditor.experimental.showMoves",o)}},M6e=class extends pp{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:yr("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:nn.has("isInDiffEditor")})}run(n,...i){const r=n.get(co),o=!r.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");r.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",o)}},o4=yr("diffEditor","Diff Editor"),den=class extends T_{constructor(){super({id:"diffEditor.switchSide",title:yr("switchSide","Switch Side"),icon:An.arrowSwap,precondition:nn.has("isInDiffEditor"),f1:!0,category:o4})}runEditorCommand(n,i,r){const o=r4(n);if(o instanceof ax){if(r&&r.dryRun)return{destinationSelection:o.mapToOtherSide().destinationSelection};o.switchSide()}}},hen=class extends T_{constructor(){super({id:"diffEditor.exitCompareMove",title:yr("exitCompareMove","Exit Compare Move"),icon:An.close,precondition:Ge.comparingMovedCode,f1:!1,category:o4,keybinding:{weight:1e4,primary:9}})}runEditorCommand(n,i,...r){const o=r4(n);o instanceof ax&&o.exitCompareMove()}},fen=class extends T_{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:yr("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:An.fold,precondition:nn.has("isInDiffEditor"),f1:!0,category:o4})}runEditorCommand(n,i,...r){const o=r4(n);o instanceof ax&&o.collapseAllUnchangedRegions()}},pen=class extends T_{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:yr("showAllUnchangedRegions","Show All Unchanged Regions"),icon:An.unfold,precondition:nn.has("isInDiffEditor"),f1:!0,category:o4})}runEditorCommand(n,i,...r){const o=r4(n);o instanceof ax&&o.showAllUnchangedRegions()}},zae=class extends pp{constructor(){super({id:"diffEditor.revert",title:yr("revert","Revert"),f1:!1,category:o4})}run(n,i){const r=xYn(n,i.originalUri,i.modifiedUri);r instanceof ax&&r.revertRangeMappings(i.mapping.innerChanges??[])}},Cxe=yr("accessibleDiffViewer","Accessible Diff Viewer"),Vae=(e=class extends pp{constructor(){super({id:e.id,title:yr("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:Cxe,precondition:nn.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(i){r4(i)?.accessibleDiffViewerNext()}},e.id="editor.action.accessibleDiffViewer.next",e),O6e=(t=class extends pp{constructor(){super({id:t.id,title:yr("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:Cxe,precondition:nn.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(i){r4(i)?.accessibleDiffViewerPrev()}},t.id="editor.action.accessibleDiffViewer.prev",t)}}),DYn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js"(){ia(),AYn(),ls(),bn(),ha(),Ks(),er(),aF(),Pa(uen),Pa(P6e),Pa(M6e),fd.appendMenuItem(Ti.EditorTitle,{command:{id:new M6e().desc.id,title:R("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:nn.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:nn.has("isInDiffEditor")},order:11,group:"1_diff",when:nn.and(Ge.diffEditorRenderSideBySideInlineBreakpointReached,nn.has("isInDiffEditor"))}),fd.appendMenuItem(Ti.EditorTitle,{command:{id:new P6e().desc.id,title:R("showMoves","Show Moved Code Blocks"),icon:An.move,toggled:VH.create("config.diffEditor.experimental.showMoves",!0),precondition:nn.has("isInDiffEditor")},order:10,group:"1_diff",when:nn.has("isInDiffEditor")}),Pa(zae);for(const e of[{icon:An.arrowRight,key:Ge.diffEditorInlineMode.toNegated()},{icon:An.discard,key:Ge.diffEditorInlineMode}])fd.appendMenuItem(Ti.DiffEditorHunkToolbar,{command:{id:new zae().desc.id,title:R("revertHunk","Revert Block"),icon:e.icon},when:nn.and(Ge.diffEditorModifiedWritable,e.key),order:5,group:"primary"}),fd.appendMenuItem(Ti.DiffEditorSelectionToolbar,{command:{id:new zae().desc.id,title:R("revertSelection","Revert Selection"),icon:e.icon},when:nn.and(Ge.diffEditorModifiedWritable,e.key),order:5,group:"primary"});Pa(den),Pa(hen),Pa(fen),Pa(pen),fd.appendMenuItem(Ti.EditorTitle,{command:{id:Vae.id,title:R("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:nn.has("isInDiffEditor")},order:10,group:"2_diff",when:nn.and(Ge.accessibleDiffViewerVisible.negate(),nn.has("isInDiffEditor"))}),Ro.registerCommandAlias("editor.action.diffReview.next",Vae.id),Pa(Vae),Ro.registerCommandAlias("editor.action.diffReview.prev",O6e.id),Pa(O6e)}}),TYn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.css"(){}}),gvt,mvt,Sxe,MV,uA,vvt,yvt,bvt,_vt,kYn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js"(){var e;Ih(),Dg(),wb(),TYn(),mr(),zs(),ls(),bn(),er(),gvt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},mvt=function(t,n){return function(i,r){n(i,r,t)}},MV=new Qn("selectionAnchorSet",!1),uA=(e=class{static get(n){return n.getContribution(Sxe.ID)}constructor(n,i){this.editor=n,this.selectionAnchorSetContextKey=MV.bindTo(i),this.modelChangeListener=n.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const n=this.editor.getPosition();this.editor.changeDecorations(i=>{this.decorationId&&i.removeDecoration(this.decorationId),this.decorationId=i.addDecoration(Ii.fromPositions(n,n),{description:"selection-anchor",stickiness:1,hoverMessage:new nf().appendText(R("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),mg(R("anchorSet","Anchor set at {0}:{1}",n.lineNumber,n.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const n=this.editor.getModel().getDecorationRange(this.decorationId);n&&this.editor.setPosition(n.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const n=this.editor.getModel().getDecorationRange(this.decorationId);if(n){const i=this.editor.getPosition();this.editor.setSelection(Ii.fromPositions(n.getStartPosition(),i)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const n=this.decorationId;this.editor.changeDecorations(i=>{i.removeDecoration(n),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}},Sxe=e,e.ID="editor.contrib.selectionAnchorController",e),uA=Sxe=gvt([mvt(1,ur)],uA),vvt=class extends ri{constructor(){super({id:"editor.action.setSelectionAnchor",label:R("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:Ge.editorTextFocus,primary:pu(2089,2080),weight:100}})}async run(t,n){uA.get(n)?.setSelectionAnchor()}},yvt=class extends ri{constructor(){super({id:"editor.action.goToSelectionAnchor",label:R("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:MV})}async run(t,n){uA.get(n)?.goToSelectionAnchor()}},bvt=class extends ri{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:R("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:MV,kbOpts:{kbExpr:Ge.editorTextFocus,primary:pu(2089,2089),weight:100}})}async run(t,n){uA.get(n)?.selectFromAnchorToCursor()}},_vt=class extends ri{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:R("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:MV,kbOpts:{kbExpr:Ge.editorTextFocus,primary:9,weight:100}})}async run(t,n){uA.get(n)?.cancelSelectionAnchor()}},qo(uA.ID,uA,4),yn(vvt),yn(yvt),yn(bvt),yn(_vt)}}),IYn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.css"(){}}),wvt,Cvt,Svt,xvt,Evt,s4,LYn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js"(){var e;fr(),Nt(),IYn(),mr(),Hi(),Dn(),zs(),ls(),Cd(),Ac(),bn(),ha(),ll(),Ys(),wvt=Qe("editorOverviewRuler.bracketMatchForeground","#A0A0A0",R("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets.")),Cvt=class extends ri{constructor(){super({id:"editor.action.jumpToBracket",label:R("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:Ge.editorTextFocus,primary:3165,weight:100}})}run(t,n){s4.get(n)?.jumpToBracket()}},Svt=class extends ri{constructor(){super({id:"editor.action.selectToBracket",label:R("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:yr("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(t,n,i){let r=!0;i&&i.selectBrackets===!1&&(r=!1),s4.get(n)?.selectToBracket(r)}},xvt=class extends ri{constructor(){super({id:"editor.action.removeBrackets",label:R("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:Ge.editorTextFocus,primary:2561,weight:100}})}run(t,n){s4.get(n)?.removeBrackets(this.id)}},Evt=class{constructor(t,n,i){this.position=t,this.brackets=n,this.options=i}},s4=(e=class extends St{static get(n){return n.getContribution(e.ID)}constructor(n){super(),this._editor=n,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new Gs(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(n.onDidChangeCursorPosition(i=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(n.onDidChangeModelContent(i=>{this._updateBracketsSoon.schedule()})),this._register(n.onDidChangeModel(i=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(n.onDidChangeModelLanguageConfiguration(i=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(n.onDidChangeConfiguration(i=>{i.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(n.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(n.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const n=this._editor.getModel(),i=this._editor.getSelections().map(r=>{const o=r.getStartPosition(),s=n.bracketPairs.matchBracket(o);let a=null;if(s)s[0].containsPosition(o)&&!s[1].containsPosition(o)?a=s[1].getStartPosition():s[1].containsPosition(o)&&(a=s[0].getStartPosition());else{const l=n.bracketPairs.findEnclosingBrackets(o);if(l)a=l[1].getStartPosition();else{const c=n.bracketPairs.findNextBracket(o);c&&c.range&&(a=c.range.getStartPosition())}}return a?new Ii(a.lineNumber,a.column,a.lineNumber,a.column):new Ii(o.lineNumber,o.column,o.lineNumber,o.column)});this._editor.setSelections(i),this._editor.revealRange(i[0])}selectToBracket(n){if(!this._editor.hasModel())return;const i=this._editor.getModel(),r=[];this._editor.getSelections().forEach(o=>{const s=o.getStartPosition();let a=i.bracketPairs.matchBracket(s);if(!a&&(a=i.bracketPairs.findEnclosingBrackets(s),!a)){const u=i.bracketPairs.findNextBracket(s);u&&u.range&&(a=i.bracketPairs.matchBracket(u.range.getStartPosition()))}let l=null,c=null;if(a){a.sort(Re.compareRangesUsingStarts);const[u,d]=a;if(l=n?u.getStartPosition():u.getEndPosition(),c=n?d.getEndPosition():d.getStartPosition(),d.containsPosition(s)){const h=l;l=c,c=h}}l&&c&&r.push(new Ii(l.lineNumber,l.column,c.lineNumber,c.column))}),r.length>0&&(this._editor.setSelections(r),this._editor.revealRange(r[0]))}removeBrackets(n){if(!this._editor.hasModel())return;const i=this._editor.getModel();this._editor.getSelections().forEach(r=>{const o=r.getPosition();let s=i.bracketPairs.matchBracket(o);s||(s=i.bracketPairs.findEnclosingBrackets(o)),s&&(this._editor.pushUndoStop(),this._editor.executeEdits(n,[{range:s[0],text:""},{range:s[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const n=[];let i=0;for(const r of this._lastBracketsData){const o=r.brackets;o&&(n[i++]={range:o[0],options:r.options},n[i++]={range:o[1],options:r.options})}this._decorations.set(n)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const n=this._editor.getSelections();if(n.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const i=this._editor.getModel(),r=i.getVersionId();let o=[];this._lastVersionId===r&&(o=this._lastBracketsData);const s=[];let a=0;for(let h=0,f=n.length;h<f;h++){const p=n[h];p.isEmpty()&&(s[a++]=p.getStartPosition())}s.length>1&&s.sort(mt.compare);const l=[];let c=0,u=0;const d=o.length;for(let h=0,f=s.length;h<f;h++){const p=s[h];for(;u<d&&o[u].position.isBefore(p);)u++;if(u<d&&o[u].position.equals(p))l[c++]=o[u];else{let g=i.bracketPairs.matchBracket(p,20),m=e._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!g&&this._matchBrackets==="always"&&(g=i.bracketPairs.findEnclosingBrackets(p,20),m=e._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),l[c++]=new Evt(p,g,m)}}this._lastBracketsData=l,this._lastVersionId=r}},e.ID="editor.contrib.bracketMatchingController",e._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=Gr.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:ec(wvt),position:x0.Center}}),e._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=Gr.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"}),e),qo(s4.ID,s4,1),yn(Svt),yn(Cvt),yn(xvt),fd.appendMenuItem(Ti.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:R({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})}}),gen,NYn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/caretOperations/browser/moveCaretCommand.js"(){Dn(),zs(),gen=class{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const n=this._selection.startLineNumber,i=this._selection.startColumn,r=this._selection.endColumn;if(!(this._isMovingLeft&&i===1)&&!(!this._isMovingLeft&&r===e.getLineMaxColumn(n)))if(this._isMovingLeft){const o=new Re(n,i-1,n,i),s=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new Re(n,r,n,r),s)}else{const o=new Re(n,r,n,r+1),s=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new Re(n,i,n,i),s)}}computeCursorState(e,t){return this._isMovingLeft?new Ii(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new Ii(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}}}),xxe,Avt,Dvt,PYn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/caretOperations/browser/caretOperations.js"(){mr(),ls(),NYn(),bn(),xxe=class extends ri{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const n=[],i=t.getSelections();for(const r of i)n.push(new gen(r,this.left));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}},Avt=class extends xxe{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:R("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:Ge.writable})}},Dvt=class extends xxe{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:R("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:Ge.writable})}},yn(Avt),yn(Dvt)}}),Tvt,MYn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/caretOperations/browser/transpose.js"(){mr(),$7(),xUe(),Dn(),ls(),bn(),Tvt=class extends ri{constructor(){super({id:"editor.action.transposeLetters",label:R("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:Ge.writable,kbOpts:{kbExpr:Ge.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const n=t.getModel(),i=[],r=t.getSelections();for(const o of r){if(!o.isEmpty())continue;const s=o.startLineNumber,a=o.startColumn,l=n.getLineMaxColumn(s);if(s===1&&(a===1||a===2&&l===2))continue;const c=a===l?o.getPosition():jc.rightPosition(n,o.getPosition().lineNumber,o.getPosition().column),u=jc.leftPosition(n,c),d=jc.leftPosition(n,u),h=n.getValueInRange(Re.fromPositions(d,u)),f=n.getValueInRange(Re.fromPositions(u,c)),p=Re.fromPositions(d,c);i.push(new dh(p,f+h))}i.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop())}},yn(Tvt)}}),PY,Qge=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/uuid.js"(){PY=(function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let e;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?e=crypto.getRandomValues.bind(crypto):e=function(i){for(let r=0;r<i.length;r++)i[r]=Math.floor(Math.random()*256);return i};const t=new Uint8Array(16),n=[];for(let i=0;i<256;i++)n.push(i.toString(16).padStart(2,"0"));return function(){e(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128;let r=0,o="";return o+=n[t[r++]],o+=n[t[r++]],o+=n[t[r++]],o+=n[t[r++]],o+="-",o+=n[t[r++]],o+=n[t[r++]],o+="-",o+=n[t[r++]],o+=n[t[r++]],o+="-",o+=n[t[r++]],o+=n[t[r++]],o+="-",o+=n[t[r++]],o+=n[t[r++]],o+=n[t[r++]],o+=n[t[r++]],o+=n[t[r++]],o+=n[t[r++]],o}})()}});function v$e(e){return{asString:async()=>e,asFile:()=>{},value:typeof e=="string"?e:void 0}}function OYn(e,t,n){const i={id:PY(),name:e,uri:t,data:n};return{asString:async()=>"",asFile:()=>i,value:void 0}}function Mde(e){return e.toLowerCase()}function men(e,t){return ven(Mde(e),t.map(Mde))}function ven(e,t){if(e==="*/*")return t.length>0;if(t.includes(e))return!0;const n=e.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!n)return!1;const[i,r,o]=n;return o==="*"?t.some(s=>s.startsWith(r+"/")):!1}var y$e,mG,Zge=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/dataTransfer.js"(){rr(),bg(),Qge(),y$e=class{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return Vo.some(this,([n,i])=>i.asFile())&&t.push("files"),ven(Mde(e),t)}get(e){return this._entries.get(this.toKey(e))?.[0]}append(e,t){const n=this._entries.get(e);n?n.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const n of t)yield[e,n]}toKey(e){return Mde(e)}},mG=Object.freeze({create:e=>BD(e.map(t=>t.toString())).join(`\r
`),split:e=>e.split(`\r
`),parse:e=>mG.split(e).filter(t=>!t.startsWith("#"))})}}),Tl,YC=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/hierarchicalKind.js"(){var e;Tl=(e=class{constructor(n){this.value=n}equals(n){return this.value===n.value}contains(n){return this.equals(n)||this.value===""||n.value.startsWith(this.value+e.sep)}intersects(n){return this.contains(n)||n.contains(this)}append(...n){return new e((this.value?[this.value,...n]:n).join(e.sep))}},e.sep=".",e.None=new e("@@none@@"),e.Empty=new e(""),e)}}),R6e,kvt,Ivt,yen,ben=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/dnd/browser/dnd.js"(){var e;Fu(),R6e={EDITORS:"CodeEditors",FILES:"CodeFiles"},kvt=class{},Ivt={DragAndDropContribution:"workbench.contributions.dragAndDrop"},ml.add(Ivt.DragAndDropContribution,new kvt),yen=(e=class{constructor(){}static getInstance(){return e.INSTANCE}hasData(n){return n&&n===this.proto}getData(n){if(this.hasData(n))return this.data}},e.INSTANCE=new e,e)}});function _en(e){const t=new y$e;for(const n of e.items){const i=n.type;if(n.kind==="string"){const r=new Promise(o=>n.getAsString(o));t.append(i,v$e(r))}else if(n.kind==="file"){const r=n.getAsFile();r&&t.append(i,RYn(r))}}return t}function RYn(e){const t=e.path?Ui.parse(e.path):void 0;return OYn(e.name,t,async()=>new Uint8Array(await e.arrayBuffer()))}function wen(e,t=!1){const n=_en(e),i=n.get(s9.INTERNAL_URI_LIST);if(i)n.replace(Jl.uriList,i);else if(t||!n.has(Jl.uriList)){const r=[];for(const o of e.items){const s=o.getAsFile();if(s){const a=s.path;try{a?r.push(Ui.file(a).toString()):r.push(Ui.parse(s.name,!0).toString())}catch{}}}r.length&&n.replace(Jl.uriList,v$e(mG.create(r)))}for(const r of Cen)n.delete(r);return n}var Cen,Sen=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/dnd.js"(){vWe(),Zge(),eF(),ss(),ben(),Cen=Object.freeze([R6e.EDITORS,R6e.FILES,s9.RESOURCES,s9.INTERNAL_URI_LIST])}});async function Lvt(e){const t=e.get(Jl.uriList);if(!t)return[];const n=await t.asString(),i=[];for(const r of mG.parse(n))try{i.push({uri:Ui.parse(r),originalText:r})}catch{}return i}var dte,a4,hte,o8,Exe,OV,Nvt,Hae,Wae,b$e=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js"(){var e;rr(),Zge(),YC(),Nt(),eF(),Gd(),bf(),ss(),ra(),Eo(),bn(),mY(),dte=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},a4=function(t,n){return function(i,r){n(i,r,t)}},hte=class{async provideDocumentPasteEdits(t,n,i,r,o){const s=await this.getEdit(i,o);if(s)return{edits:[{insertText:s.insertText,title:s.title,kind:s.kind,handledMimeType:s.handledMimeType,yieldTo:s.yieldTo}],dispose(){}}}async provideDocumentDropEdits(t,n,i,r){const o=await this.getEdit(i,r);if(o)return{edits:[{insertText:o.insertText,title:o.title,kind:o.kind,handledMimeType:o.handledMimeType,yieldTo:o.yieldTo}],dispose(){}}}},o8=(e=class extends hte{constructor(){super(...arguments),this.kind=e.kind,this.dropMimeTypes=[Jl.text],this.pasteMimeTypes=[Jl.text]}async getEdit(n,i){const r=n.get(Jl.text);if(!r||n.has(Jl.uriList))return;const o=await r.asString();return{handledMimeType:Jl.text,title:R("text.label","Insert Plain Text"),insertText:o,kind:this.kind}}},e.id="text",e.kind=new Tl("text.plain"),e),Exe=class extends hte{constructor(){super(...arguments),this.kind=new Tl("uri.absolute"),this.dropMimeTypes=[Jl.uriList],this.pasteMimeTypes=[Jl.uriList]}async getEdit(t,n){const i=await Lvt(t);if(!i.length||n.isCancellationRequested)return;let r=0;const o=i.map(({uri:a,originalText:l})=>a.scheme===Pr.file?a.fsPath:(r++,l)).join(" ");let s;return r>0?s=i.length>1?R("defaultDropProvider.uriList.uris","Insert Uris"):R("defaultDropProvider.uriList.uri","Insert Uri"):s=i.length>1?R("defaultDropProvider.uriList.paths","Insert Paths"):R("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:Jl.uriList,insertText:o,title:s,kind:this.kind}}},OV=class extends hte{constructor(n){super(),this._workspaceContextService=n,this.kind=new Tl("uri.relative"),this.dropMimeTypes=[Jl.uriList],this.pasteMimeTypes=[Jl.uriList]}async getEdit(n,i){const r=await Lvt(n);if(!r.length||i.isCancellationRequested)return;const o=ew(r.map(({uri:s})=>{const a=this._workspaceContextService.getWorkspaceFolder(s);return a?X$t(a.uri,s):void 0}));if(o.length)return{handledMimeType:Jl.uriList,insertText:o.join(" "),title:r.length>1?R("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):R("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}}},OV=dte([a4(0,lL)],OV),Nvt=class{constructor(){this.kind=new Tl("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:Jl.text}]}async provideDocumentPasteEdits(t,n,i,r,o){if(r.triggerKind!==Sq.PasteAs&&!r.only?.contains(this.kind))return;const a=await i.get("text/html")?.asString();if(!(!a||o.isCancellationRequested))return{dispose(){},edits:[{insertText:a,yieldTo:this._yieldTo,title:R("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}}},Hae=class extends St{constructor(n,i){super(),this._register(n.documentDropEditProvider.register("*",new o8)),this._register(n.documentDropEditProvider.register("*",new Exe)),this._register(n.documentDropEditProvider.register("*",new OV(i)))}},Hae=dte([a4(0,gi),a4(1,lL)],Hae),Wae=class extends St{constructor(n,i){super(),this._register(n.documentPasteEditProvider.register("*",new o8)),this._register(n.documentPasteEditProvider.register("*",new Exe)),this._register(n.documentPasteEditProvider.register("*",new OV(i))),this._register(n.documentPasteEditProvider.register("*",new Nvt))}},Wae=dte([a4(0,gi),a4(1,lL)],Wae)}});function Pvt(e,t){const n=[...e];for(;n.length>0;){const i=n.shift();if(!t(i))break;n.unshift(...i.children)}}var Mvt,JP,Qg,Axe,d_,y$,Ovt,kS,fte,Uae,BL,lF=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetParser.js"(){var e;Mvt=(e=class{constructor(){this.value="",this.pos=0}static isDigitCharacter(n){return n>=48&&n<=57}static isVariableCharacter(n){return n===95||n>=97&&n<=122||n>=65&&n<=90}text(n){this.value=n,this.pos=0}tokenText(n){return this.value.substr(n.pos,n.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const n=this.pos;let i=0,r=this.value.charCodeAt(n),o;if(o=e._table[r],typeof o=="number")return this.pos+=1,{type:o,pos:n,len:1};if(e.isDigitCharacter(r)){o=8;do i+=1,r=this.value.charCodeAt(n+i);while(e.isDigitCharacter(r));return this.pos+=i,{type:o,pos:n,len:i}}if(e.isVariableCharacter(r)){o=9;do r=this.value.charCodeAt(n+ ++i);while(e.isVariableCharacter(r)||e.isDigitCharacter(r));return this.pos+=i,{type:o,pos:n,len:i}}o=10;do i+=1,r=this.value.charCodeAt(n+i);while(!isNaN(r)&&typeof e._table[r]>"u"&&!e.isDigitCharacter(r)&&!e.isVariableCharacter(r));return this.pos+=i,{type:o,pos:n,len:i}}},e._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13},e),JP=class{constructor(){this._children=[]}appendChild(t){return t instanceof Qg&&this._children[this._children.length-1]instanceof Qg?this._children[this._children.length-1].value+=t.value:(t.parent=this,this._children.push(t)),this}replace(t,n){const{parent:i}=t,r=i.children.indexOf(t),o=i.children.slice(0);o.splice(r,1,...n),i._children=o,(function s(a,l){for(const c of a)c.parent=l,s(c.children,c)})(n,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let t=this;for(;;){if(!t)return;if(t instanceof Uae)return t;t=t.parent}}toString(){return this.children.reduce((t,n)=>t+n.toString(),"")}len(){return 0}},Qg=class xen extends JP{constructor(n){super(),this.value=n}toString(){return this.value}len(){return this.value.length}clone(){return new xen(this.value)}},Axe=class extends JP{},d_=class Een extends Axe{static compareByIndex(n,i){return n.index===i.index?0:n.isFinalTabstop?1:i.isFinalTabstop||n.index<i.index?-1:n.index>i.index?1:0}constructor(n){super(),this.index=n}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof y$?this._children[0]:void 0}clone(){const n=new Een(this.index);return this.transform&&(n.transform=this.transform.clone()),n._children=this.children.map(i=>i.clone()),n}},y$=class Aen extends JP{constructor(){super(...arguments),this.options=[]}appendChild(n){return n instanceof Qg&&(n.parent=this,this.options.push(n)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const n=new Aen;return this.options.forEach(n.appendChild,n),n}},Ovt=class Den extends JP{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(n){const i=this;let r=!1,o=n.replace(this.regexp,function(){return r=!0,i._replace(Array.prototype.slice.call(arguments,0,-2))});return!r&&this._children.some(s=>s instanceof kS&&!!s.elseValue)&&(o=this._replace([])),o}_replace(n){let i="";for(const r of this._children)if(r instanceof kS){let o=n[r.index]||"";o=r.resolve(o),i+=o}else i+=r.toString();return i}toString(){return""}clone(){const n=new Den;return n.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),n._children=this.children.map(i=>i.clone()),n}},kS=class Ten extends JP{constructor(n,i,r,o){super(),this.index=n,this.shorthandName=i,this.ifValue=r,this.elseValue=o}resolve(n){return this.shorthandName==="upcase"?n?n.toLocaleUpperCase():"":this.shorthandName==="downcase"?n?n.toLocaleLowerCase():"":this.shorthandName==="capitalize"?n?n[0].toLocaleUpperCase()+n.substr(1):"":this.shorthandName==="pascalcase"?n?this._toPascalCase(n):"":this.shorthandName==="camelcase"?n?this._toCamelCase(n):"":n&&typeof this.ifValue=="string"?this.ifValue:!n&&typeof this.elseValue=="string"?this.elseValue:n||""}_toPascalCase(n){const i=n.match(/[a-z0-9]+/gi);return i?i.map(r=>r.charAt(0).toUpperCase()+r.substr(1)).join(""):n}_toCamelCase(n){const i=n.match(/[a-z0-9]+/gi);return i?i.map((r,o)=>o===0?r.charAt(0).toLowerCase()+r.substr(1):r.charAt(0).toUpperCase()+r.substr(1)).join(""):n}clone(){return new Ten(this.index,this.shorthandName,this.ifValue,this.elseValue)}},fte=class ken extends Axe{constructor(n){super(),this.name=n}resolve(n){let i=n.resolve(this);return this.transform&&(i=this.transform.resolve(i||"")),i!==void 0?(this._children=[new Qg(i)],!0):!1}clone(){const n=new ken(this.name);return this.transform&&(n.transform=this.transform.clone()),n._children=this.children.map(i=>i.clone()),n}},Uae=class Ien extends JP{get placeholderInfo(){if(!this._placeholders){const n=[];let i;this.walk(function(r){return r instanceof d_&&(n.push(r),i=!i||i.index<r.index?r:i),!0}),this._placeholders={all:n,last:i}}return this._placeholders}get placeholders(){const{all:n}=this.placeholderInfo;return n}offset(n){let i=0,r=!1;return this.walk(o=>o===n?(r=!0,!1):(i+=o.len(),!0)),r?i:-1}fullLen(n){let i=0;return Pvt([n],r=>(i+=r.len(),!0)),i}enclosingPlaceholders(n){const i=[];let{parent:r}=n;for(;r;)r instanceof d_&&i.push(r),r=r.parent;return i}resolveVariables(n){return this.walk(i=>(i instanceof fte&&i.resolve(n)&&(this._placeholders=void 0),!0)),this}appendChild(n){return this._placeholders=void 0,super.appendChild(n)}replace(n,i){return this._placeholders=void 0,super.replace(n,i)}clone(){const n=new Ien;return this._children=this.children.map(i=>i.clone()),n}walk(n){Pvt(this.children,n)}},BL=class{constructor(){this._scanner=new Mvt,this._token={type:14,pos:0,len:0}}static escape(t){return t.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(t){return/\${?CLIPBOARD/.test(t)}parse(t,n,i){const r=new Uae;return this.parseFragment(t,r),this.ensureFinalTabstop(r,i??!1,n??!1),r}parseFragment(t,n){const i=n.children.length;for(this._scanner.text(t),this._token=this._scanner.next();this._parse(n););const r=new Map,o=[];n.walk(l=>(l instanceof d_&&(l.isFinalTabstop?r.set(0,void 0):!r.has(l.index)&&l.children.length>0?r.set(l.index,l.children):o.push(l)),!0));const s=(l,c)=>{const u=r.get(l.index);if(!u)return;const d=new d_(l.index);d.transform=l.transform;for(const h of u){const f=h.clone();d.appendChild(f),f instanceof d_&&r.has(f.index)&&!c.has(f.index)&&(c.add(f.index),s(f,c),c.delete(f.index))}n.replace(l,[d])},a=new Set;for(const l of o)s(l,a);return n.children.slice(i)}ensureFinalTabstop(t,n,i){(n||i&&t.placeholders.length>0)&&(t.placeholders.find(o=>o.index===0)||t.appendChild(new d_(0)))}_accept(t,n){if(t===void 0||this._token.type===t){const i=n?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(t){return this._scanner.pos=t.pos+t.len,this._token=t,!1}_until(t){const n=this._token;for(;this._token.type!==t;){if(this._token.type===14)return!1;if(this._token.type===5){const r=this._scanner.next();if(r.type!==0&&r.type!==4&&r.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(n.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(t){return this._parseEscaped(t)||this._parseTabstopOrVariableName(t)||this._parseComplexPlaceholder(t)||this._parseComplexVariable(t)||this._parseAnything(t)}_parseEscaped(t){let n;return(n=this._accept(5,!0))?(n=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||n,t.appendChild(new Qg(n)),!0):!1}_parseTabstopOrVariableName(t){let n;const i=this._token;return this._accept(0)&&(n=this._accept(9,!0)||this._accept(8,!0))?(t.appendChild(/^\d+$/.test(n)?new d_(Number(n)):new fte(n)),!0):this._backTo(i)}_parseComplexPlaceholder(t){let n;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(n=this._accept(8,!0))))return this._backTo(i);const o=new d_(Number(n));if(this._accept(1))for(;;){if(this._accept(4))return t.appendChild(o),!0;if(!this._parse(o))return t.appendChild(new Qg("${"+n+":")),o.children.forEach(t.appendChild,t),!0}else if(o.index>0&&this._accept(7)){const s=new y$;for(;;){if(this._parseChoiceElement(s)){if(this._accept(2))continue;if(this._accept(7)&&(o.appendChild(s),this._accept(4)))return t.appendChild(o),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(o)?(t.appendChild(o),!0):(this._backTo(i),!1):this._accept(4)?(t.appendChild(o),!0):this._backTo(i)}_parseChoiceElement(t){const n=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let r;if((r=this._accept(5,!0))?r=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||r:r=this._accept(void 0,!0),!r)return this._backTo(n),!1;i.push(r)}return i.length===0?(this._backTo(n),!1):(t.appendChild(new Qg(i.join(""))),!0)}_parseComplexVariable(t){let n;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(n=this._accept(9,!0))))return this._backTo(i);const o=new fte(n);if(this._accept(1))for(;;){if(this._accept(4))return t.appendChild(o),!0;if(!this._parse(o))return t.appendChild(new Qg("${"+n+":")),o.children.forEach(t.appendChild,t),!0}else return this._accept(6)?this._parseTransform(o)?(t.appendChild(o),!0):(this._backTo(i),!1):this._accept(4)?(t.appendChild(o),!0):this._backTo(i)}_parseTransform(t){const n=new Ovt;let i="",r="";for(;!this._accept(6);){let o;if(o=this._accept(5,!0)){o=this._accept(6,!0)||o,i+=o;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let o;if(o=this._accept(5,!0)){o=this._accept(5,!0)||this._accept(6,!0)||o,n.appendChild(new Qg(o));continue}if(!(this._parseFormatString(n)||this._parseAnything(n)))return!1}for(;!this._accept(4);){if(this._token.type!==14){r+=this._accept(void 0,!0);continue}return!1}try{n.regexp=new RegExp(i,r)}catch{return!1}return t.transform=n,!0}_parseFormatString(t){const n=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const r=this._accept(8,!0);if(r)if(i){if(this._accept(4))return t.appendChild(new kS(Number(r))),!0;if(!this._accept(1))return this._backTo(n),!1}else return t.appendChild(new kS(Number(r))),!0;else return this._backTo(n),!1;if(this._accept(6)){const o=this._accept(9,!0);return!o||!this._accept(4)?(this._backTo(n),!1):(t.appendChild(new kS(Number(r),o)),!0)}else if(this._accept(11)){const o=this._until(4);if(o)return t.appendChild(new kS(Number(r),void 0,o,void 0)),!0}else if(this._accept(12)){const o=this._until(4);if(o)return t.appendChild(new kS(Number(r),void 0,void 0,o)),!0}else if(this._accept(13)){const o=this._until(1);if(o){const s=this._until(4);if(s)return t.appendChild(new kS(Number(r),void 0,o,s)),!0}}else{const o=this._until(4);if(o)return t.appendChild(new kS(Number(r),void 0,void 0,o)),!0}return this._backTo(n),!1}_parseAnything(t){return this._token.type!==14?(t.appendChild(new Qg(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}}});function Len(e,t,n){return(typeof n.insertText=="string"?n.insertText==="":n.insertText.snippet==="")?{edits:n.additionalEdit?.edits??[]}:{edits:[...t.map(i=>new KU(e,{range:i,text:typeof n.insertText=="string"?BL.escape(n.insertText)+"$0":n.insertText.snippet,insertAsSnippet:!0})),...n.additionalEdit?.edits??[]]}}function Nen(e){function t(s,a){return"mimeType"in s?s.mimeType===a.handledMimeType:!!a.kind&&s.kind.contains(a.kind)}const n=new Map;for(const s of e)for(const a of s.yieldTo??[])for(const l of e)if(l!==s&&t(a,l)){let c=n.get(s);c||(c=[],n.set(s,c)),c.push(l)}if(!n.size)return Array.from(e);const i=new Set,r=[];function o(s){if(!s.length)return[];const a=s[0];if(r.includes(a))return console.warn("Yield to cycle detected",a),s;if(i.has(a))return o(s.slice(1));let l=[];const c=n.get(a);return c&&(r.push(a),l=o(c),r.pop()),i.add(a),[...l,a,...o(s.slice(1))]}return o(Array.from(e))}var _$e=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/edit.js"(){O7(),lF()}}),FYn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineProgress/browser/inlineProgressWidget.css"(){}}),Rvt,Fvt,Bvt,jvt,b$,w$e=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineProgress/browser/inlineProgress.js"(){var e;Fn(),fr(),ia(),Nt(),Ki(),Ra(),FYn(),Dn(),Ac(),li(),Rvt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},Fvt=function(t,n){return function(i,r){n(i,r,t)}},Bvt=Gr.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:$3e,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}}),jvt=(e=class extends St{constructor(n,i,r,o,s){super(),this.typeId=n,this.editor=i,this.range=r,this.delegate=s,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(o),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(n){this.domNode=In(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=n;const i=In("span.icon");this.domNode.append(i),i.classList.add(...lr.asClassNameArray(An.loading),"codicon-modifier-spin");const r=()=>{const o=this.editor.getOption(67);this.domNode.style.height=`${o}px`,this.domNode.style.width=`${Math.ceil(.8*o)}px`};r(),this._register(this.editor.onDidChangeConfiguration(o=>{(o.hasChanged(52)||o.hasChanged(67))&&r()})),this._register(qt(this.domNode,kn.CLICK,o=>{this.delegate.cancel()}))}getId(){return e.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}},e.baseId="editor.widget.inlineProgressWidget",e),b$=class extends St{constructor(n,i,r){super(),this.id=n,this._editor=i,this._instantiationService=r,this._showDelay=500,this._showPromise=this._register(new Yu),this._currentWidget=this._register(new Yu),this._operationIdPool=0,this._currentDecorations=i.createDecorationsCollection()}dispose(){super.dispose(),this._currentDecorations.clear()}async showWhile(n,i,r,o,s){const a=this._operationIdPool++;this._currentOperation=a,this.clear(),this._showPromise.value=TL(()=>{const l=Re.fromPositions(n);this._currentDecorations.set([{range:l,options:Bvt}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(jvt,this.id,this._editor,l,i,o))},s??this._showDelay);try{return await r}finally{this._currentOperation===a&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}},b$=Rvt([Fvt(2,ji)],b$)}}),BYn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/message/browser/messageController.css"(){}}),zvt,Dxe,pte,nm,Vvt,Txe,MY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/message/browser/messageController.js"(){var e;hge(),Ih(),Un(),Dg(),Nt(),BYn(),mr(),Dn(),RN(),bn(),er(),Ag(),Fn(),zvt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},Dxe=function(t,n){return function(i,r){n(i,r,t)}},nm=(e=class{static get(n){return n.getContribution(pte.ID)}constructor(n,i,r){this._openerService=r,this._messageWidget=new Yu,this._messageListeners=new Jt,this._mouseOverMessage=!1,this._editor=n,this._visible=pte.MESSAGE_VISIBLE.bindTo(i)}dispose(){this._message?.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(n,i){mg(sC(n)?n.value:n),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=sC(n)?dge(n,{actionHandler:{callback:o=>{this.closeMessage(),sWe(this._openerService,o,sC(n)?n.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new Txe(this._editor,i,typeof n=="string"?n:this._message.element),this._messageListeners.add(On.debounce(this._editor.onDidBlurEditorText,(o,s)=>s,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&hd(cf(),this._messageWidget.value.getDomNode())||this.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(qt(this._messageWidget.value.getDomNode(),kn.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(qt(this._messageWidget.value.getDomNode(),kn.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let r;this._messageListeners.add(this._editor.onMouseMove(o=>{o.target.position&&(r?r.containsPosition(o.target.position)||this.closeMessage():r=new Re(i.lineNumber-3,1,o.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(Txe.fadeOut(this._messageWidget.value))}},pte=e,e.ID="editor.contrib.messageController",e.MESSAGE_VISIBLE=new Qn("messageVisible",!1,R("messageVisible","Whether the editor is currently showing an inline message")),e),nm=pte=zvt([Dxe(1,ur),Dxe(2,Eg)],nm),Vvt=Hd.bindToContribution(nm.get),$n(new Vvt({id:"leaveEditorMessage",precondition:nm.MESSAGE_VISIBLE,handler:t=>t.closeMessage(),kbOpts:{weight:130,primary:9}})),Txe=class{static fadeOut(t){const n=()=>{t.dispose(),clearTimeout(i),t.getDomNode().removeEventListener("animationend",n)},i=setTimeout(n,110);return t.getDomNode().addEventListener("animationend",n),t.getDomNode().classList.add("fadeOut"),{dispose:n}}constructor(t,{lineNumber:n,column:i},r){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=t,this._editor.revealLinesInCenterIfOutsideViewport(n,n,0),this._position={lineNumber:n,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);const s=document.createElement("div");typeof r=="string"?(s.classList.add("message"),s.textContent=r):(r.classList.add("message"),s.appendChild(r)),this._domNode.appendChild(s);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(t){this._domNode.classList.toggle("below",t===2)}},qo(nm.ID,nm,4)}});function kxe(e,t){return t&&(e.stack||e.stacktrace)?R("stackTrace.format","{0}: {1}",Wvt(e),Hvt(e.stack)||Hvt(e.stacktrace)):Wvt(e)}function Hvt(e){return Array.isArray(e)?e.join(`
`):e}function Wvt(e){return e.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${e.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof e.code=="string"&&typeof e.errno=="number"&&typeof e.syscall=="string"?R("nodeExceptionMessage","A system error occurred ({0})",e.message):e.message||R("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function Ode(e=null,t=!1){if(!e)return R("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(e)){const n=ew(e),i=Ode(n[0],t);return n.length>1?R("error.moreErrors","{0} ({1} errors in total)",i,n.length):i}if(sm(e))return e;if(e.detail){const n=e.detail;if(n.error)return kxe(n.error,t);if(n.exception)return kxe(n.exception,t)}return e.stack?kxe(e,t):e.message?e.message:R("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var Pen=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/errorMessage.js"(){rr(),as(),bn()}}),jYn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.css"(){}}),Ixe,eM,Lxe,gte,_$,Men=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js"(){var e;Fn(),ZWe(),wd(),Pen(),Vi(),Un(),Nt(),jYn(),O7(),_$e(),bn(),er(),xg(),li(),tl(),yf(),Ixe=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},eM=function(t,n){return function(i,r){n(i,r,t)}},gte=(e=class extends St{constructor(n,i,r,o,s,a,l,c,u,d){super(),this.typeId=n,this.editor=i,this.showCommand=o,this.range=s,this.edits=a,this.onSelectNewEdit=l,this._contextMenuService=c,this._keybindingService=d,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=r.bindTo(u),this.visibleContext.set(!0),this._register(zi(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(zi((()=>this.editor.removeContentWidget(this)))),this._register(this.editor.onDidChangeCursorPosition(h=>{s.containsPosition(h.position)||this.dispose()})),this._register(On.runAndSubscribe(d.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){const n=this._keybindingService.lookupKeybinding(this.showCommand.id)?.getLabel();this.button.element.title=this.showCommand.label+(n?` (${n})`:"")}create(){this.domNode=In(".post-edit-widget"),this.button=this._register(new lG(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(qt(this.domNode,kn.CLICK,()=>this.showSelector()))}getId(){return Lxe.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const n=_c(this.button.element);return{x:n.left+n.width,y:n.top+n.height}},getActions:()=>this.edits.allEdits.map((n,i)=>lR({id:"",label:n.title,checked:i===this.edits.activeEditIndex,run:()=>{if(i!==this.edits.activeEditIndex)return this.onSelectNewEdit(i)}}))})}},Lxe=e,e.baseId="editor.widget.postEditWidget",e),gte=Lxe=Ixe([eM(7,dm),eM(8,ur),eM(9,Cs)],gte),_$=class extends St{constructor(n,i,r,o,s,a,l){super(),this._id=n,this._editor=i,this._visibleContext=r,this._showCommand=o,this._instantiationService=s,this._bulkEditService=a,this._notificationService=l,this._currentWidget=this._register(new Yu),this._register(On.any(i.onDidChangeModel,i.onDidChangeModelContent)(()=>this.clear()))}async applyEditAndShowIfNeeded(n,i,r,o,s){const a=this._editor.getModel();if(!a||!n.length)return;const l=i.allEdits.at(i.activeEditIndex);if(!l)return;const c=async v=>{const y=this._editor.getModel();y&&(await y.undo(),this.applyEditAndShowIfNeeded(n,{activeEditIndex:v,allEdits:i.allEdits},r,o,s))},u=(v,y)=>{bb(v)||(this._notificationService.error(y),r&&this.show(n[0],i,c))};let d;try{d=await o(l,s)}catch(v){return u(v,R("resolveError",`Error resolving edit '{0}':
{1}`,l.title,Ode(v)))}if(s.isCancellationRequested)return;const h=Len(a.uri,n,d),f=n[0],p=a.deltaDecorations([],[{range:f,options:{description:"paste-line-suffix",stickiness:0}}]);this._editor.focus();let g,m;try{g=await this._bulkEditService.apply(h,{editor:this._editor,token:s}),m=a.getDecorationRange(p[0])}catch(v){return u(v,R("applyError",`Error applying edit '{0}':
{1}`,l.title,Ode(v)))}finally{a.deltaDecorations(p,[])}s.isCancellationRequested||r&&g.isApplied&&i.allEdits.length>1&&this.show(m??f,i,c)}show(n,i,r){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(gte,this._id,this._editor,this._visibleContext,this._showCommand,n,i,r))}clear(){this._currentWidget.clear()}tryShowSelector(){this._currentWidget.value?.showSelector()}},_$=Ixe([eM(4,ji),eM(5,M7),eM(6,Cc)],_$)}}),Uvt,tM,nM,F6e,Rde,mte,tx,Oen=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js"(){var e;Fn(),rr(),fr(),Ho(),Zge(),YC(),Nt(),eF(),Xr(),Qge(),kge(),Sen(),O7(),Dn(),ra(),Eo(),b$e(),_$e(),WN(),w$e(),MY(),bn(),zN(),er(),li(),$C(),Hv(),Men(),Vi(),Uvt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},tM=function(t,n){return function(i,r){n(i,r,t)}},F6e="editor.changePasteType",Rde=new Qn("pasteWidgetVisible",!1,R("pasteWidgetVisible","Whether the paste widget is showing")),mte="application/vnd.code.copyMetadata",tx=(e=class extends St{static get(n){return n.getContribution(nM.ID)}constructor(n,i,r,o,s,a,l){super(),this._bulkEditService=r,this._clipboardService=o,this._languageFeaturesService=s,this._quickInputService=a,this._progressService=l,this._editor=n;const c=n.getContainerDomNode();this._register(qt(c,"copy",u=>this.handleCopy(u))),this._register(qt(c,"cut",u=>this.handleCopy(u))),this._register(qt(c,"paste",u=>this.handlePaste(u),!0)),this._pasteProgressManager=this._register(new b$("pasteIntoEditor",n,i)),this._postPasteWidgetManager=this._register(i.createInstance(_$,"pasteIntoEditor",n,Rde,{id:F6e,label:R("postPasteWidgetTitle","Show paste options...")}))}changePasteType(){this._postPasteWidgetManager.tryShowSelector()}pasteAs(n){this._editor.focus();try{this._pasteAsActionContext={preferred:n},S7().execCommand("paste")}finally{this._pasteAsActionContext=void 0}}clearWidgets(){this._postPasteWidgetManager.clear()}isPasteAsEnabled(){return this._editor.getOption(85).enabled}async finishedPaste(){await this._currentPasteOperation}handleCopy(n){if(!this._editor.hasTextFocus()||(this._clipboardService.clearInternalState?.(),!n.clipboardData||!this.isPasteAsEnabled()))return;const i=this._editor.getModel(),r=this._editor.getSelections();if(!i||!r?.length)return;const o=this._editor.getOption(37);let s=r;const a=r.length===1&&r[0].isEmpty();if(a){if(!o)return;s=[new Re(s[0].startLineNumber,1,s[0].startLineNumber,1+i.getLineLength(s[0].startLineNumber))]}const l=this._editor._getViewModel()?.getPlainTextToCopy(r,o,Ch),u={multicursorText:Array.isArray(l)?l:null,pasteOnNewLine:a,mode:null},d=this._languageFeaturesService.documentPasteEditProvider.ordered(i).filter(m=>!!m.prepareDocumentPaste);if(!d.length){this.setCopyMetadata(n.clipboardData,{defaultPastePayload:u});return}const h=_en(n.clipboardData),f=d.flatMap(m=>m.copyMimeTypes??[]),p=PY();this.setCopyMetadata(n.clipboardData,{id:p,providerCopyMimeTypes:f,defaultPastePayload:u});const g=vd(async m=>{const v=ew(await Promise.all(d.map(async y=>{try{return await y.prepareDocumentPaste(i,s,h,m)}catch(b){console.error(b);return}})));v.reverse();for(const y of v)for(const[b,w]of y)h.replace(b,w);return h});nM._currentCopyOperation?.dataTransferPromise.cancel(),nM._currentCopyOperation={handle:p,dataTransferPromise:g}}async handlePaste(n){if(!n.clipboardData||!this._editor.hasTextFocus())return;nm.get(this._editor)?.closeMessage(),this._currentPasteOperation?.cancel(),this._currentPasteOperation=void 0;const i=this._editor.getModel(),r=this._editor.getSelections();if(!r?.length||!i||this._editor.getOption(92)||!this.isPasteAsEnabled()&&!this._pasteAsActionContext)return;const o=this.fetchCopyMetadata(n),s=wen(n.clipboardData);s.delete(mte);const a=[...n.clipboardData.types,...o?.providerCopyMimeTypes??[],Jl.uriList],l=this._languageFeaturesService.documentPasteEditProvider.ordered(i).filter(c=>{const u=this._pasteAsActionContext?.preferred;return u&&c.providedPasteEditKinds&&!this.providerMatchesPreference(c,u)?!1:c.pasteMimeTypes?.some(d=>men(d,a))});if(!l.length){this._pasteAsActionContext?.preferred&&this.showPasteAsNoEditMessage(r,this._pasteAsActionContext.preferred);return}n.preventDefault(),n.stopImmediatePropagation(),this._pasteAsActionContext?this.showPasteAsPick(this._pasteAsActionContext.preferred,l,r,s,o):this.doPasteInline(l,r,s,o,n)}showPasteAsNoEditMessage(n,i){nm.get(this._editor)?.showMessage(R("pasteAsError","No paste edits for '{0}' found",i instanceof Tl?i.value:i.providerId),n[0].getStartPosition())}doPasteInline(n,i,r,o,s){const a=this._editor;if(!a.hasModel())return;const l=new WD(a,3,void 0),c=vd(async u=>{const d=this._editor;if(!d.hasModel())return;const h=d.getModel(),f=new Jt,p=f.add(new bl(u));f.add(l.token.onCancellationRequested(()=>p.cancel()));const g=p.token;try{if(await this.mergeInDataFromCopy(r,o,g),g.isCancellationRequested)return;const m=n.filter(b=>this.isSupportedPasteProvider(b,r));if(!m.length||m.length===1&&m[0]instanceof o8)return this.applyDefaultPasteHandler(r,o,g,s);const v={triggerKind:Sq.Automatic},y=await this.getPasteEdits(m,r,h,i,v,g);if(f.add(y),g.isCancellationRequested)return;if(y.edits.length===1&&y.edits[0].provider instanceof o8)return this.applyDefaultPasteHandler(r,o,g,s);if(y.edits.length){const b=d.getOption(85).showPasteSelector==="afterPaste";return this._postPasteWidgetManager.applyEditAndShowIfNeeded(i,{activeEditIndex:0,allEdits:y.edits},b,(w,E)=>new Promise((A,D)=>{(async()=>{try{const T=w.provider.resolveDocumentPasteEdit?.(w,E),M=new K2,P=T&&await this._pasteProgressManager.showWhile(i[0].getEndPosition(),R("resolveProcess","Resolving paste edit. Click to cancel"),Promise.race([M.p,T]),{cancel:()=>(M.cancel(),D(new rb))},0);return P&&(w.additionalEdit=P.additionalEdit),A(w)}catch(T){return D(T)}})()}),g)}await this.applyDefaultPasteHandler(r,o,g,s)}finally{f.dispose(),this._currentPasteOperation===c&&(this._currentPasteOperation=void 0)}});this._pasteProgressManager.showWhile(i[0].getEndPosition(),R("pasteIntoEditorProgress","Running paste handlers. Click to cancel and do basic paste"),c,{cancel:async()=>{try{if(c.cancel(),l.token.isCancellationRequested)return;await this.applyDefaultPasteHandler(r,o,l.token,s)}finally{l.dispose()}}}).then(()=>{l.dispose()}),this._currentPasteOperation=c}showPasteAsPick(n,i,r,o,s){const a=vd(async l=>{const c=this._editor;if(!c.hasModel())return;const u=c.getModel(),d=new Jt,h=d.add(new WD(c,3,void 0,l));try{if(await this.mergeInDataFromCopy(o,s,h.token),h.token.isCancellationRequested)return;let f=i.filter(y=>this.isSupportedPasteProvider(y,o,n));n&&(f=f.filter(y=>this.providerMatchesPreference(y,n)));const p={triggerKind:Sq.PasteAs,only:n&&n instanceof Tl?n:void 0};let g=d.add(await this.getPasteEdits(f,o,u,r,p,h.token));if(h.token.isCancellationRequested)return;if(n&&(g={edits:g.edits.filter(y=>n instanceof Tl?n.contains(y.kind):n.providerId===y.provider.id),dispose:g.dispose}),!g.edits.length){p.only&&this.showPasteAsNoEditMessage(r,p.only);return}let m;if(n?m=g.edits.at(0):m=(await this._quickInputService.pick(g.edits.map(b=>({label:b.title,description:b.kind?.value,edit:b})),{placeHolder:R("pasteAsPickerPlaceholder","Select Paste Action")}))?.edit,!m)return;const v=Len(u.uri,r,m);await this._bulkEditService.apply(v,{editor:this._editor})}finally{d.dispose(),this._currentPasteOperation===a&&(this._currentPasteOperation=void 0)}});this._progressService.withProgress({location:10,title:R("pasteAsProgress","Running paste handlers")},()=>a)}setCopyMetadata(n,i){n.setData(mte,JSON.stringify(i))}fetchCopyMetadata(n){if(!n.clipboardData)return;const i=n.clipboardData.getData(mte);if(i)try{return JSON.parse(i)}catch{return}const[r,o]=pae.getTextData(n.clipboardData);if(o)return{defaultPastePayload:{mode:o.mode,multicursorText:o.multicursorText??null,pasteOnNewLine:!!o.isFromEmptySelection}}}async mergeInDataFromCopy(n,i,r){if(i?.id&&nM._currentCopyOperation?.handle===i.id){const o=await nM._currentCopyOperation.dataTransferPromise;if(r.isCancellationRequested)return;for(const[s,a]of o)n.replace(s,a)}if(!n.has(Jl.uriList)){const o=await this._clipboardService.readResources();if(r.isCancellationRequested)return;o.length&&n.append(Jl.uriList,v$e(mG.create(o)))}}async getPasteEdits(n,i,r,o,s,a){const l=new Jt,c=await UK(Promise.all(n.map(async d=>{try{const h=await d.provideDocumentPasteEdits?.(r,o,i,s,a);return h&&l.add(h),h?.edits?.map(f=>({...f,provider:d}))}catch(h){bb(h)||console.error(h);return}})),a),u=ew(c??[]).flat().filter(d=>!s.only||s.only.contains(d.kind));return{edits:Nen(u),dispose:()=>l.dispose()}}async applyDefaultPasteHandler(n,i,r,o){const a=await(n.get(Jl.text)??n.get("text"))?.asString()??"";if(r.isCancellationRequested)return;const l={clipboardEvent:o,text:a,pasteOnNewLine:i?.defaultPastePayload.pasteOnNewLine??!1,multicursorText:i?.defaultPastePayload.multicursorText??null,mode:null};this._editor.trigger("keyboard","paste",l)}isSupportedPasteProvider(n,i,r){return n.pasteMimeTypes?.some(o=>i.matches(o))?!r||this.providerMatchesPreference(n,r):!1}providerMatchesPreference(n,i){return i instanceof Tl?n.providedPasteEditKinds?n.providedPasteEditKinds.some(r=>i.contains(r)):!0:n.id===i.providerId}},nM=e,e.ID="editor.contrib.copyPasteActionController",e),tx=nM=Uvt([tM(1,ji),tM(2,M7),tM(3,tE),tM(4,gi),tM(5,Z0),tM(6,cWe)],tx)}});function Nxe(e){return e.register(),e}function $vt(e,t){e&&(e.addImplementation(1e4,"code-editor",(n,i)=>{const r=n.get(Jo).getFocusedCodeEditor();if(r&&r.hasTextFocus()){const o=r.getOption(37),s=r.getSelection();return s&&s.isEmpty()&&!o||r.getContainerDomNode().ownerDocument.execCommand(t),!0}return!1}),e.addImplementation(0,"generic-dom",(n,i)=>(S7().execCommand(t),!0)))}var Ak,qvt,Pxe,Gvt,Kvt,Yvt,vte,Qvt,zYn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/clipboard/browser/clipboard.js"(){zv(),Fn(),Xr(),kge(),mr(),Ec(),ls(),Oen(),bn(),ha(),zN(),er(),Ak="9_cutcopypaste",qvt=D_||document.queryCommandSupported("cut"),Pxe=D_||document.queryCommandSupported("copy"),Gvt=typeof navigator.clipboard>"u"||B0?document.queryCommandSupported("paste"):!0,Kvt=qvt?Nxe(new LO({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:D_?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:Ti.MenubarEditMenu,group:"2_ccp",title:R({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:Ti.EditorContext,group:Ak,title:R("actions.clipboard.cutLabel","Cut"),when:Ge.writable,order:1},{menuId:Ti.CommandPalette,group:"",title:R("actions.clipboard.cutLabel","Cut"),order:1},{menuId:Ti.SimpleEditorContext,group:Ak,title:R("actions.clipboard.cutLabel","Cut"),when:Ge.writable,order:1}]})):void 0,Yvt=Pxe?Nxe(new LO({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:D_?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:Ti.MenubarEditMenu,group:"2_ccp",title:R({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:Ti.EditorContext,group:Ak,title:R("actions.clipboard.copyLabel","Copy"),order:2},{menuId:Ti.CommandPalette,group:"",title:R("actions.clipboard.copyLabel","Copy"),order:1},{menuId:Ti.SimpleEditorContext,group:Ak,title:R("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0,fd.appendMenuItem(Ti.MenubarEditMenu,{submenu:Ti.MenubarCopy,title:yr("copy as","Copy As"),group:"2_ccp",order:3}),fd.appendMenuItem(Ti.EditorContext,{submenu:Ti.EditorContextCopy,title:yr("copy as","Copy As"),group:Ak,order:3}),fd.appendMenuItem(Ti.EditorContext,{submenu:Ti.EditorContextShare,title:yr("share","Share"),group:"11_share",order:-1,when:nn.and(nn.notEquals("resourceScheme","output"),Ge.editorTextFocus)}),fd.appendMenuItem(Ti.ExplorerContext,{submenu:Ti.ExplorerContextShare,title:yr("share","Share"),group:"11_share",order:-1}),vte=Gvt?Nxe(new LO({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:D_?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:Ti.MenubarEditMenu,group:"2_ccp",title:R({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:Ti.EditorContext,group:Ak,title:R("actions.clipboard.pasteLabel","Paste"),when:Ge.writable,order:4},{menuId:Ti.CommandPalette,group:"",title:R("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:Ti.SimpleEditorContext,group:Ak,title:R("actions.clipboard.pasteLabel","Paste"),when:Ge.writable,order:4}]})):void 0,Qvt=class extends ri{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:R("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:Ge.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(37)&&t.getSelection().isEmpty()||(Ede.forceCopyWithSyntaxHighlighting=!0,t.focus(),t.getContainerDomNode().ownerDocument.execCommand("copy"),Ede.forceCopyWithSyntaxHighlighting=!1)}},$vt(Kvt,"cut"),$vt(Yvt,"copy"),vte&&(vte.addImplementation(1e4,"code-editor",(e,t)=>{const n=e.get(Jo),i=e.get(tE),r=n.getFocusedCodeEditor();return r&&r.hasTextFocus()?r.getContainerDomNode().ownerDocument.execCommand("paste")?tx.get(r)?.finishedPaste()??Promise.resolve():_L?(async()=>{const s=await i.readText();if(s!==""){const a=hae.INSTANCE.get(s);let l=!1,c=null,u=null;a&&(l=r.getOption(37)&&!!a.isFromEmptySelection,c=typeof a.multicursorText<"u"?a.multicursorText:null,u=a.mode),r.trigger("keyboard","paste",{text:s,pasteOnNewLine:l,multicursorText:c,mode:u})}})():!0:!1}),vte.addImplementation(0,"generic-dom",(e,t)=>(S7().execCommand("paste"),!0))),Pxe&&yn(Qvt)}});function VYn(e,t){return!(e.include&&!e.include.intersects(t)||e.excludes&&e.excludes.some(n=>Ren(t,n,e.include))||!e.includeSourceActions&&Ya.Source.contains(t))}function HYn(e,t){const n=t.kind?new Tl(t.kind):void 0;return!(e.include&&(!n||!e.include.contains(n))||e.excludes&&n&&e.excludes.some(i=>Ren(n,i,e.include))||!e.includeSourceActions&&n&&Ya.Source.contains(n)||e.onlyIncludePreferredActions&&!t.isPreferred)}function Ren(e,t,n){return!(!t.contains(e)||n&&t.contains(n))}var Ya,sv,w$,Fen,cF=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/common/types.js"(){Vi(),YC(),Ya=new class{constructor(){this.QuickFix=new Tl("quickfix"),this.Refactor=new Tl("refactor"),this.RefactorExtract=this.Refactor.append("extract"),this.RefactorInline=this.Refactor.append("inline"),this.RefactorMove=this.Refactor.append("move"),this.RefactorRewrite=this.Refactor.append("rewrite"),this.Notebook=new Tl("notebook"),this.Source=new Tl("source"),this.SourceOrganizeImports=this.Source.append("organizeImports"),this.SourceFixAll=this.Source.append("fixAll"),this.SurroundWith=this.Refactor.append("surround")}},(function(e){e.Refactor="refactor",e.RefactorPreview="refactor preview",e.Lightbulb="lightbulb",e.Default="other (default)",e.SourceAction="source action",e.QuickFix="quick fix action",e.FixAll="fix all",e.OrganizeImports="organize imports",e.AutoFix="auto fix",e.QuickFixHover="quick fix hover window",e.OnSave="save participants",e.ProblemsView="problems view"})(sv||(sv={})),w$=class FB{static fromUser(t,n){return!t||typeof t!="object"?new FB(n.kind,n.apply,!1):new FB(FB.getKindFromUser(t,n.kind),FB.getApplyFromUser(t,n.apply),FB.getPreferredUser(t))}static getApplyFromUser(t,n){switch(typeof t.apply=="string"?t.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return n}}static getKindFromUser(t,n){return typeof t.kind=="string"?new Tl(t.kind):n}static getPreferredUser(t){return typeof t.preferred=="boolean"?t.preferred:!1}constructor(t,n,i){this.kind=t,this.apply=n,this.preferred=i}},Fen=class{constructor(e,t,n){this.action=e,this.provider=t,this.highlightRange=n}async resolve(e){if(this.provider?.resolveCodeAction&&!this.action.edit){let t;try{t=await this.provider.resolveCodeAction(this.action,e)}catch(n){Sc(n)}t&&(this.action.edit=t.edit)}return this}}}});async function v6(e,t,n,i,r,o){const s=i.filter||{},a={...s,excludes:[...s.excludes||[],Ya.Notebook]},l={only:s.include?.value,trigger:i.type},c=new Uge(t,o),u=i.type===2,d=WYn(e,t,u?a:s),h=new Jt,f=d.map(async g=>{try{r.report(g);const m=await g.provideCodeActions(t,n,l,c.token);if(m&&h.add(m),c.token.isCancellationRequested)return B6e;const v=(m?.actions||[]).filter(b=>b&&HYn(s,b)),y=$Yn(g,v,s.include);return{actions:v.map(b=>new Fen(b,g)),documentation:y}}catch(m){if(bb(m))throw m;return Sc(m),B6e}}),p=e.onDidChange(()=>{const g=e.all(t);vl(g,d)||c.cancel()});try{const g=await Promise.all(f),m=g.map(y=>y.actions).flat(),v=[...ew(g.map(y=>y.documentation)),...UYn(e,t,i,m)];return new Ben(m,v,h)}finally{p.dispose(),c.dispose()}}function WYn(e,t,n){return e.all(t).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(r=>VYn(n,new Tl(r))):!0)}function*UYn(e,t,n,i){if(t&&i.length)for(const r of e.all(t))r._getAdditionalMenuItems&&(yield*r._getAdditionalMenuItems?.({trigger:n.type,only:n.filter?.include?.value},i.map(o=>o.action)))}function $Yn(e,t,n){if(!e.documentation)return;const i=e.documentation.map(r=>({kind:new Tl(r.kind),command:r.command}));if(n){let r;for(const o of i)o.kind.contains(n)&&(r?r.kind.contains(o.kind)&&(r=o):r=o);if(r)return r?.command}for(const r of t)if(r.kind){for(const o of i)if(o.kind.contains(new Tl(r.kind)))return o.command}}async function qYn(e,t,n,i,r=no.None){const o=e.get(M7),s=e.get(Oa),a=e.get(uf),l=e.get(Cc);if(a.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.action.title,codeActionKind:t.action.kind,codeActionIsPreferred:!!t.action.isPreferred,reason:n}),await t.resolve(r),!r.isCancellationRequested&&!(t.action.edit?.edits.length&&!(await o.apply(t.action.edit,{editor:i?.editor,label:t.action.title,quotableLabel:t.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:n!==BO.OnSave,showPreview:i?.preview})).isApplied)&&t.action.command)try{await s.executeCommand(t.action.command.id,...t.action.command.arguments||[])}catch(c){const u=GYn(c);l.error(typeof u=="string"?u:R("applyCodeActionFailed","An unknown error occurred while applying the code action"))}}function GYn(e){return typeof e=="string"?e:e instanceof Error&&typeof e.message=="string"?e.message:void 0}var C$e,Xge,S$e,x$e,E$e,Fde,Bde,Ben,B6e,BO,G7=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeAction.js"(){rr(),Ho(),Vi(),Nt(),ss(),O7(),Dn(),zs(),Eo(),Kf(),WN(),bn(),Ks(),yf(),$C(),_m(),cF(),YC(),C$e="editor.action.codeAction",Xge="editor.action.quickFix",S$e="editor.action.autoFix",x$e="editor.action.refactor",E$e="editor.action.sourceAction",Fde="editor.action.organizeImports",Bde="editor.action.fixAll",Ben=class $ae extends St{static codeActionsPreferredComparator(t,n){return t.isPreferred&&!n.isPreferred?-1:!t.isPreferred&&n.isPreferred?1:0}static codeActionsComparator({action:t},{action:n}){return t.isAI&&!n.isAI?1:!t.isAI&&n.isAI?-1:Sp(t.diagnostics)?Sp(n.diagnostics)?$ae.codeActionsPreferredComparator(t,n):-1:Sp(n.diagnostics)?1:$ae.codeActionsPreferredComparator(t,n)}constructor(t,n,i){super(),this.documentation=n,this._register(i),this.allActions=[...t].sort($ae.codeActionsComparator),this.validActions=this.allActions.filter(({action:r})=>!r.disabled)}get hasAutoFix(){return this.validActions.some(({action:t})=>!!t.kind&&Ya.QuickFix.contains(new Tl(t.kind))&&!!t.isPreferred)}get hasAIFix(){return this.validActions.some(({action:t})=>!!t.isAI)}get allAIFixes(){return this.validActions.every(({action:t})=>!!t.isAI)}},B6e={actions:[],documentation:void 0},(function(e){e.OnSave="onSave",e.FromProblemsView="fromProblemsView",e.FromCodeActions="fromCodeActions",e.FromAILightbulb="fromAILightbulb"})(BO||(BO={})),Ro.registerCommand("_executeCodeActionProvider",async function(e,t,n,i,r){if(!(t instanceof Ui))throw Gy();const{codeActionProvider:o}=e.get(gi),s=e.get(Ua).getModel(t);if(!s)throw Gy();const a=Ii.isISelection(n)?Ii.liftSelection(n):Re.isIRange(n)?s.validateRange(n):void 0;if(!a)throw Gy();const l=typeof i=="string"?new Tl(i):void 0,c=await v6(o,s,a,{type:1,triggerAction:sv.Default,filter:{includeSourceActions:!0,include:l}},gx.None,no.None),u=[],d=Math.min(c.validActions.length,typeof r=="number"?r:0);for(let h=0;h<d;h++)u.push(c.validActions[h].resolve(no.None));try{return await Promise.all(u),c.validActions.map(h=>h.action)}finally{setTimeout(()=>c.dispose(),100)}})}}),Zvt,Xvt,Mxe,qae,KYn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionKeybindingResolver.js"(){var e;YC(),wE(),G7(),cF(),tl(),Zvt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},Xvt=function(t,n){return function(i,r){n(i,r,t)}},qae=(e=class{constructor(n){this.keybindingService=n}getResolver(){const n=new lm(()=>this.keybindingService.getKeybindings().filter(i=>Mxe.codeActionCommands.indexOf(i.command)>=0).filter(i=>i.resolvedKeybinding).map(i=>{let r=i.commandArgs;return i.command===Fde?r={kind:Ya.SourceOrganizeImports.value}:i.command===Bde&&(r={kind:Ya.SourceFixAll.value}),{resolvedKeybinding:i.resolvedKeybinding,...w$.fromUser(r,{kind:Tl.None,apply:"never"})}}));return i=>{if(i.kind)return this.bestKeybindingForCodeAction(i,n.value)?.resolvedKeybinding}}bestKeybindingForCodeAction(n,i){if(!n.kind)return;const r=new Tl(n.kind);return i.filter(o=>o.kind.contains(r)).filter(o=>o.preferred?n.isPreferred:!0).reduceRight((o,s)=>o?o.kind.contains(s.kind)?s:o:s,void 0)}},Mxe=e,e.codeActionCommands=[x$e,C$e,E$e,Fde,Bde],e),qae=Mxe=Zvt([Xvt(0,Cs)],qae)}}),YYn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/codicons/codicon/codicon.css"(){}}),QYn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/codicons/codicon/codicon-modifiers.css"(){}}),Jge=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/codicons/codiconStyles.js"(){YYn(),QYn()}}),ZYn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.css"(){}}),A$e=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js"(){ZYn(),bn(),ll(),Qe("symbolIcon.arrayForeground",go,R("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.booleanForeground",go,R("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},R("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.colorForeground",go,R("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.constantForeground",go,R("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},R("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},R("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},R("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},R("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},R("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.fileForeground",go,R("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.folderForeground",go,R("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},R("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},R("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.keyForeground",go,R("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.keywordForeground",go,R("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},R("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.moduleForeground",go,R("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.namespaceForeground",go,R("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.nullForeground",go,R("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.numberForeground",go,R("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.objectForeground",go,R("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.operatorForeground",go,R("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.packageForeground",go,R("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.propertyForeground",go,R("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.referenceForeground",go,R("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.snippetForeground",go,R("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.stringForeground",go,R("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.structForeground",go,R("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.textForeground",go,R("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.typeParameterForeground",go,R("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.unitForeground",go,R("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qe("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},R("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."))}});function XYn(e,t,n){if(!t)return e.map(o=>({kind:"action",item:o,group:j6e,disabled:!!o.action.disabled,label:o.action.disabled||o.action.title,canPreview:!!o.action.edit?.edits.length}));const i=jen.map(o=>({group:o,actions:[]}));for(const o of e){const s=o.action.kind?new Tl(o.action.kind):Tl.None;for(const a of i)if(a.group.kind.contains(s)){a.actions.push(o);break}}const r=[];for(const o of i)if(o.actions.length){r.push({kind:"header",group:o.group});for(const s of o.actions){const a=o.group;r.push({kind:"action",item:s,group:s.action.isAI?{title:a.title,kind:a.kind,icon:An.sparkle}:a,label:s.action.title,disabled:!!s.action.disabled,keybinding:n(s.action)})}}return r}var j6e,jen,JYn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionMenu.js"(){Jge(),ia(),cF(),A$e(),bn(),YC(),j6e=Object.freeze({kind:Tl.Empty,title:R("codeAction.widget.id.more","More Actions...")}),jen=Object.freeze([{kind:Ya.QuickFix,title:R("codeAction.widget.id.quickfix","Quick Fix")},{kind:Ya.RefactorExtract,title:R("codeAction.widget.id.extract","Extract"),icon:An.wrench},{kind:Ya.RefactorInline,title:R("codeAction.widget.id.inline","Inline"),icon:An.wrench},{kind:Ya.RefactorRewrite,title:R("codeAction.widget.id.convert","Rewrite"),icon:An.wrench},{kind:Ya.RefactorMove,title:R("codeAction.widget.id.move","Move"),icon:An.wrench},{kind:Ya.SurroundWith,title:R("codeAction.widget.id.surround","Surround With"),icon:An.surroundWith},{kind:Ya.Source,title:R("codeAction.widget.id.source","Source Action"),icon:An.symbolFile},j6e])}}),eQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.css"(){}}),Jvt,e0t,l4,Oxe,Rxe,Fxe,Bxe,jxe,n1,s8,zen=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.js"(){var e;Fn(),Q0(),ia(),Un(),Nt(),Ra(),eQn(),Cd(),Ac(),BWe(),G7(),bn(),tl(),X0(),Dn(),Jvt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},e0t=function(t,n){return function(i,r){n(i,r,t)}},Oxe=Xa("gutter-lightbulb",An.lightBulb,R("gutterLightbulbWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor.")),Rxe=Xa("gutter-lightbulb-auto-fix",An.lightbulbAutofix,R("gutterLightbulbAutoFixWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and a quick fix is available.")),Fxe=Xa("gutter-lightbulb-sparkle",An.lightbulbSparkle,R("gutterLightbulbAIFixWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix is available.")),Bxe=Xa("gutter-lightbulb-aifix-auto-fix",An.lightbulbSparkleAutofix,R("gutterLightbulbAIFixAutoFixWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available.")),jxe=Xa("gutter-lightbulb-sparkle-filled",An.sparkleFilled,R("gutterLightbulbSparkleFilledWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available.")),(function(t){t.Hidden={type:0};class n{constructor(r,o,s,a){this.actions=r,this.trigger=o,this.editorPosition=s,this.widgetPosition=a,this.type=1}}t.Showing=n})(n1||(n1={})),s8=(e=class extends St{constructor(n,i){super(),this._editor=n,this._keybindingService=i,this._onClick=this._register(new bt),this.onClick=this._onClick.event,this._state=n1.Hidden,this._gutterState=n1.Hidden,this._iconClasses=[],this.lightbulbClasses=["codicon-"+Oxe.id,"codicon-"+Bxe.id,"codicon-"+Rxe.id,"codicon-"+Fxe.id,"codicon-"+jxe.id],this.gutterDecoration=l4.GUTTER_DECORATION,this._domNode=In("div.lightBulbWidget"),this._domNode.role="listbox",this._register(Ap.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(r=>{const o=this._editor.getModel();(this.state.type!==1||!o||this.state.editorPosition.lineNumber>=o.getLineCount())&&this.hide(),(this.gutterState.type!==1||!o||this.gutterState.editorPosition.lineNumber>=o.getLineCount())&&this.gutterHide()})),this._register(l3t(this._domNode,r=>{if(this.state.type!==1)return;this._editor.focus(),r.preventDefault();const{top:o,height:s}=_c(this._domNode),a=this._editor.getOption(67);let l=Math.floor(a/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber<this.state.editorPosition.lineNumber&&(l+=a),this._onClick.fire({x:r.posx,y:o+s+l,actions:this.state.actions,trigger:this.state.trigger})})),this._register(qt(this._domNode,"mouseenter",r=>{(r.buttons&1)===1&&this.hide()})),this._register(On.runAndSubscribe(this._keybindingService.onDidUpdateKeybindings,()=>{this._preferredKbLabel=this._keybindingService.lookupKeybinding(S$e)?.getLabel()??void 0,this._quickFixKbLabel=this._keybindingService.lookupKeybinding(Xge)?.getLabel()??void 0,this._updateLightBulbTitleAndIcon()})),this._register(this._editor.onMouseDown(async r=>{if(!r.target.element||!this.lightbulbClasses.some(c=>r.target.element&&r.target.element.classList.contains(c))||this.gutterState.type!==1)return;this._editor.focus();const{top:o,height:s}=_c(r.target.element),a=this._editor.getOption(67);let l=Math.floor(a/3);this.gutterState.widgetPosition.position!==null&&this.gutterState.widgetPosition.position.lineNumber<this.gutterState.editorPosition.lineNumber&&(l+=a),this._onClick.fire({x:r.event.posx,y:o+s+l,actions:this.gutterState.actions,trigger:this.gutterState.trigger})}))}dispose(){super.dispose(),this._editor.removeContentWidget(this),this._gutterDecorationID&&this._removeGutterDecoration(this._gutterDecorationID)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(n,i,r){if(n.validActions.length<=0)return this.gutterHide(),this.hide();if(!this._editor.hasTextFocus())return this.gutterHide(),this.hide();if(!this._editor.getOptions().get(65).enabled)return this.gutterHide(),this.hide();const a=this._editor.getModel();if(!a)return this.gutterHide(),this.hide();const{lineNumber:l,column:c}=a.validatePosition(r),u=a.getOptions().tabSize,d=this._editor.getOptions().get(50),h=a.getLineContent(l),f=Cge(h,u),p=d.spaceWidth*f>22,g=A=>A>2&&this._editor.getTopForLineNumber(A)===this._editor.getTopForLineNumber(A-1),m=this._editor.getLineDecorations(l);let v=!1;if(m)for(const A of m){const D=A.options.glyphMarginClassName;if(D&&!this.lightbulbClasses.some(T=>D.includes(T))){v=!0;break}}let y=l,b=1;if(!p){const A=D=>{const T=a.getLineContent(D);return/^\s*$|^\s+/.test(T)||T.length<=b};if(l>1&&!g(l-1)){const D=a.getLineCount(),T=l===D,M=l>1&&A(l-1),P=!T&&A(l+1),F=A(l),N=!P&&!M;if(!P&&!M&&!v)return this.gutterState=new n1.Showing(n,i,r,{position:{lineNumber:y,column:b},preference:l4._posPref}),this.renderGutterLightbub(),this.hide();M||T||M&&!F?y-=1:(P||N&&F)&&(y+=1)}else if(l===1&&(l===a.getLineCount()||!A(l+1)&&!A(l)))if(this.gutterState=new n1.Showing(n,i,r,{position:{lineNumber:y,column:b},preference:l4._posPref}),v)this.gutterHide();else return this.renderGutterLightbub(),this.hide();else if(l<a.getLineCount()&&!g(l+1))y+=1;else if(c*d.spaceWidth<22)return this.hide();b=/^\S\s*$/.test(a.getLineContent(y))?2:1}this.state=new n1.Showing(n,i,r,{position:{lineNumber:y,column:b},preference:l4._posPref}),this._gutterDecorationID&&(this._removeGutterDecoration(this._gutterDecorationID),this.gutterHide());const w=n.validActions,E=n.validActions[0].action.kind;if(w.length!==1||!E){this._editor.layoutContentWidget(this);return}this._editor.layoutContentWidget(this)}hide(){this.state!==n1.Hidden&&(this.state=n1.Hidden,this._editor.layoutContentWidget(this))}gutterHide(){this.gutterState!==n1.Hidden&&(this._gutterDecorationID&&this._removeGutterDecoration(this._gutterDecorationID),this.gutterState=n1.Hidden)}get state(){return this._state}set state(n){this._state=n,this._updateLightBulbTitleAndIcon()}get gutterState(){return this._gutterState}set gutterState(n){this._gutterState=n,this._updateGutterLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this._domNode.classList.remove(...this._iconClasses),this._iconClasses=[],this.state.type!==1)return;let n,i=!1;this.state.actions.allAIFixes?(n=An.sparkleFilled,this.state.actions.validActions.length===1&&(i=!0)):this.state.actions.hasAutoFix?this.state.actions.hasAIFix?n=An.lightbulbSparkleAutofix:n=An.lightbulbAutofix:this.state.actions.hasAIFix?n=An.lightbulbSparkle:n=An.lightBulb,this._updateLightbulbTitle(this.state.actions.hasAutoFix,i),this._iconClasses=lr.asClassNameArray(n),this._domNode.classList.add(...this._iconClasses)}_updateGutterLightBulbTitleAndIcon(){if(this.gutterState.type!==1)return;let n,i=!1;this.gutterState.actions.allAIFixes?(n=jxe,this.gutterState.actions.validActions.length===1&&(i=!0)):this.gutterState.actions.hasAutoFix?this.gutterState.actions.hasAIFix?n=Bxe:n=Rxe:this.gutterState.actions.hasAIFix?n=Fxe:n=Oxe,this._updateLightbulbTitle(this.gutterState.actions.hasAutoFix,i);const r=Gr.register({description:"codicon-gutter-lightbulb-decoration",glyphMarginClassName:lr.asClassName(n),glyphMargin:{position:tw.Left},stickiness:1});this.gutterDecoration=r}renderGutterLightbub(){const n=this._editor.getSelection();n&&(this._gutterDecorationID===void 0?this._addGutterDecoration(n.startLineNumber):this._updateGutterDecoration(this._gutterDecorationID,n.startLineNumber))}_addGutterDecoration(n){this._editor.changeDecorations(i=>{this._gutterDecorationID=i.addDecoration(new Re(n,0,n,0),this.gutterDecoration)})}_removeGutterDecoration(n){this._editor.changeDecorations(i=>{i.removeDecoration(n),this._gutterDecorationID=void 0})}_updateGutterDecoration(n,i){this._editor.changeDecorations(r=>{r.changeDecoration(n,new Re(i,0,i,0)),r.changeDecorationOptions(n,this.gutterDecoration)})}_updateLightbulbTitle(n,i){this.state.type===1&&(i?this.title=R("codeActionAutoRun","Run: {0}",this.state.actions.validActions[0].action.title):n&&this._preferredKbLabel?this.title=R("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel):!n&&this._quickFixKbLabel?this.title=R("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):n||(this.title=R("codeAction","Show Code Actions")))}set title(n){this._domNode.title=n}},l4=e,e.GUTTER_DECORATION=Gr.register({description:"codicon-gutter-lightbulb-decoration",glyphMarginClassName:lr.asClassName(An.lightBulb),glyphMargin:{position:tw.Left},stickiness:1}),e.ID="editor.contrib.lightbulbWidget",e._posPref=[0],e),s8=l4=Jvt([e0t(1,Cs)],s8)}}),Ven=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/actionWidget/browser/actionWidget.css"(){}});function tQn(e){if(e.kind==="action")return e.label}function t0t(e){return e.replace(/\r\n|\r|\n/g," ")}var zxe,yte,z6e,V6e,n0t,bte,i0t,Vxe,Gae,nQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/actionWidget/browser/actionList.js"(){Fn(),Ege(),BN(),Ho(),ia(),Nt(),Xr(),Ra(),Ven(),bn(),xg(),tl(),wT(),ll(),zxe=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},yte=function(e,t){return function(n,i){t(n,i,e)}},z6e="acceptSelectedCodeAction",V6e="previewSelectedCodeAction",n0t=class{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,n){n.text.textContent=e.group?.title??""}disposeTemplate(e){}},bte=class{get templateId(){return"action"}constructor(t,n){this._supportsPreview=t,this._keybindingService=n}renderTemplate(t){t.classList.add(this.templateId);const n=document.createElement("div");n.className="icon",t.append(n);const i=document.createElement("span");i.className="title",t.append(i);const r=new kY(t,om);return{container:t,icon:n,text:i,keybinding:r}}renderElement(t,n,i){if(t.group?.icon?(i.icon.className=lr.asClassName(t.group.icon),t.group.icon.color&&(i.icon.style.color=ni(t.group.icon.color.id))):(i.icon.className=lr.asClassName(An.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!t.item||!t.label)return;i.text.textContent=t0t(t.label),i.keybinding.set(t.keybinding),G9n(!!t.keybinding,i.keybinding.element);const r=this._keybindingService.lookupKeybinding(z6e)?.getLabel(),o=this._keybindingService.lookupKeybinding(V6e)?.getLabel();i.container.classList.toggle("option-disabled",t.disabled),t.disabled?i.container.title=t.label:r&&o?this._supportsPreview&&t.canPreview?i.container.title=R({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to Apply, Shift+F2 to Preview"']},"{0} to Apply, {1} to Preview",r,o):i.container.title=R({key:"label",comment:['placeholder is a keybinding, e.g "F2 to Apply"']},"{0} to Apply",r):i.container.title=""}disposeTemplate(t){t.keybinding.dispose()}},bte=zxe([yte(1,Cs)],bte),i0t=class extends UIEvent{constructor(){super("acceptSelectedAction")}},Vxe=class extends UIEvent{constructor(){super("previewSelectedAction")}},Gae=class extends St{constructor(t,n,i,r,o,s){super(),this._delegate=r,this._contextViewService=o,this._keybindingService=s,this._actionLineHeight=24,this._headerLineHeight=26,this.cts=this._register(new bl),this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const a={getHeight:l=>l.kind==="header"?this._headerLineHeight:this._actionLineHeight,getTemplateId:l=>l.kind};this._list=this._register(new tv(t,this.domNode,a,[new bte(n,this._keybindingService),new n0t],{keyboardSupport:!1,typeNavigationEnabled:!0,keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:tQn},accessibilityProvider:{getAriaLabel:l=>{if(l.kind==="action"){let c=l.label?t0t(l?.label):"";return l.disabled&&(c=R({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",c,l.disabled)),c}return null},getWidgetAriaLabel:()=>R({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:l=>l.kind==="action"?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(CI),this._register(this._list.onMouseClick(l=>this.onListClick(l))),this._register(this._list.onMouseOver(l=>this.onListHover(l))),this._register(this._list.onDidChangeFocus(()=>this.onFocus())),this._register(this._list.onDidChangeSelection(l=>this.onListSelection(l))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(t){return!t.disabled&&t.kind==="action"}hide(t){this._delegate.onHide(t),this.cts.cancel(),this._contextViewService.hideContextView()}layout(t){const n=this._allMenuItems.filter(l=>l.kind==="header").length,r=this._allMenuItems.length*this._actionLineHeight+n*this._headerLineHeight-n*this._actionLineHeight;this._list.layout(r);let o=t;if(this._allMenuItems.length>=50)o=380;else{const l=this._allMenuItems.map((c,u)=>{const d=this.domNode.ownerDocument.getElementById(this._list.getElementID(u));if(d){d.style.width="auto";const h=d.getBoundingClientRect().width;return d.style.width="",h}return 0});o=Math.max(...l,t)}const a=Math.min(r,this.domNode.ownerDocument.body.clientHeight*.7);return this._list.layout(a,o),this.domNode.style.height=`${a}px`,this._list.domFocus(),o}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(t){const n=this._list.getFocus();if(n.length===0)return;const i=n[0],r=this._list.element(i);if(!this.focusCondition(r))return;const o=t?new Vxe:new i0t;this._list.setSelection([i],o)}onListSelection(t){if(!t.elements.length)return;const n=t.elements[0];n.item&&this.focusCondition(n)?this._delegate.onSelect(n.item,t.browserEvent instanceof Vxe):this._list.setSelection([])}onFocus(){const t=this._list.getFocus();if(t.length===0)return;const n=t[0],i=this._list.element(n);this._delegate.onFocus?.(i.item)}async onListHover(t){const n=t.element;if(n&&n.item&&this.focusCondition(n)){if(this._delegate.onHover&&!n.disabled&&n.kind==="action"){const i=await this._delegate.onHover(n.item,this.cts.token);n.canPreview=i?i.canPreview:void 0}t.index&&this._list.splice(t.index,1,[n])}this._list.setFocus(typeof t.index=="number"?[t.index]:[])}onListClick(t){t.element&&this.focusCondition(t.element)&&this._list.setFocus([])}},Gae=zxe([yte(4,Jx),yte(5,Cs)],Gae)}}),r0t,_te,Dk,rI,Tk,c4,iQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/actionWidget/browser/actionWidget.js"(){Fn(),ww(),Nt(),Ven(),bn(),nQn(),ha(),er(),xg(),vf(),li(),ll(),r0t=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},_te=function(e,t){return function(n,i){t(n,i,e)}},Qe("actionBar.toggledBackground",Q8,R("actionBar.toggledBackground","Background color for toggled action items in action bar.")),Dk={Visible:new Qn("codeActionMenuVisible",!1,R("codeActionMenuVisible","Whether the action widget list is visible"))},rI=Ao("actionWidgetService"),Tk=class extends St{get isVisible(){return Dk.Visible.getValue(this._contextKeyService)||!1}constructor(t,n,i){super(),this._contextViewService=t,this._contextKeyService=n,this._instantiationService=i,this._list=this._register(new Yu)}show(t,n,i,r,o,s,a){const l=Dk.Visible.bindTo(this._contextKeyService),c=this._instantiationService.createInstance(Gae,t,n,i,r);this._contextViewService.showContextView({getAnchor:()=>o,render:u=>(l.set(!0),this._renderWidget(u,c,a??[])),onHide:u=>{l.reset(),this._onWidgetClosed(u)}},s,!1)}acceptSelected(t){this._list.value?.acceptSelected(t)}focusPrevious(){this._list?.value?.focusPrevious()}focusNext(){this._list?.value?.focusNext()}hide(t){this._list.value?.hide(t),this._list.clear()}_renderWidget(t,n,i){const r=document.createElement("div");if(r.classList.add("action-widget"),t.appendChild(r),this._list.value=n,this._list.value)r.appendChild(this._list.value.domNode);else throw new Error("List has no value");const o=new Jt,s=document.createElement("div"),a=t.appendChild(s);a.classList.add("context-view-block"),o.add(qt(a,kn.MOUSE_DOWN,f=>f.stopPropagation()));const l=document.createElement("div"),c=t.appendChild(l);c.classList.add("context-view-pointerBlock"),o.add(qt(c,kn.POINTER_MOVE,()=>c.remove())),o.add(qt(c,kn.MOUSE_DOWN,()=>c.remove()));let u=0;if(i.length){const f=this._createActionBar(".action-widget-action-bar",i);f&&(r.appendChild(f.getContainer().parentElement),o.add(f),u=f.getContainer().offsetWidth)}const d=this._list.value?.layout(u);r.style.width=`${d}px`;const h=o.add(yC(t));return o.add(h.onDidBlur(()=>this.hide(!0))),o}_createActionBar(t,n){if(!n.length)return;const i=In(t),r=new Dv(i);return r.push(n,{icon:!1,label:!0}),r}_onWidgetClosed(t){this._list.value?.hide(t)}},Tk=r0t([_te(0,Jx),_te(1,ur),_te(2,ji)],Tk),Oo(rI,Tk,1),c4=1100,Pa(class extends pp{constructor(){super({id:"hideCodeActionWidget",title:yr("hideCodeActionWidget.title","Hide action widget"),precondition:Dk.Visible,keybinding:{weight:c4,primary:9,secondary:[1033]}})}run(e){e.get(rI).hide(!0)}}),Pa(class extends pp{constructor(){super({id:"selectPrevCodeAction",title:yr("selectPrevCodeAction.title","Select previous action"),precondition:Dk.Visible,keybinding:{weight:c4,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(e){const t=e.get(rI);t instanceof Tk&&t.focusPrevious()}}),Pa(class extends pp{constructor(){super({id:"selectNextCodeAction",title:yr("selectNextCodeAction.title","Select next action"),precondition:Dk.Visible,keybinding:{weight:c4,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(e){const t=e.get(rI);t instanceof Tk&&t.focusNext()}}),Pa(class extends pp{constructor(){super({id:z6e,title:yr("acceptSelected.title","Accept selected action"),precondition:Dk.Visible,keybinding:{weight:c4,primary:3,secondary:[2137]}})}run(e){const t=e.get(rI);t instanceof Tk&&t.acceptSelected()}}),Pa(class extends pp{constructor(){super({id:V6e,title:yr("previewSelected.title","Preview selected action"),precondition:Dk.Visible,keybinding:{weight:c4,primary:2051}})}run(e){const t=e.get(rI);t instanceof Tk&&t.acceptSelected(!0)}})}}),H6e,Hxe,o0t,iM,Wxe,Hen,Wen=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionModel.js"(){fr(),Vi(),Un(),Nt(),bf(),Su(),Hi(),zs(),er(),$C(),cF(),G7(),YC(),_g(),H6e=new Qn("supportedCodeAction",""),Hxe="_typescript.applyFixAllCodeAction",o0t=class extends St{constructor(e,t,n,i=250){super(),this._editor=e,this._markerService=t,this._signalChange=n,this._delay=i,this._autoTriggerTimer=this._register(new Sb),this._register(this._markerService.onMarkerChanged(r=>this._onMarkerChanges(r))),this._register(this._editor.onDidChangeCursorPosition(()=>this._tryAutoTrigger()))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some(n=>r9(n,t.uri))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:sv.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getSelection();if(e.type===1)return t;const n=this._editor.getOption(65).enabled;if(n!==u_.Off){{if(n===u_.On)return t;if(n===u_.OnCode){if(!t.isEmpty())return t;const r=this._editor.getModel(),{lineNumber:o,column:s}=t.getPosition(),a=r.getLineContent(o);if(a.length===0)return;if(s===1){if(/\s/.test(a[0]))return}else if(s===r.getLineMaxColumn(o)){if(/\s/.test(a[a.length-1]))return}else if(/\s/.test(a[s-2])&&/\s/.test(a[s-1]))return}}return t}}},(function(e){e.Empty={type:0};class t{constructor(i,r,o){this.trigger=i,this.position=r,this._cancellablePromise=o,this.type=1,this.actions=o.catch(s=>{if(bb(s))return Wxe;throw s})}cancel(){this._cancellablePromise.cancel()}}e.Triggered=t})(iM||(iM={})),Wxe=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1,hasAIFix:!1,allAIFixes:!1}),Hen=class extends St{constructor(e,t,n,i,r,o,s){super(),this._editor=e,this._registry=t,this._markerService=n,this._progressService=r,this._configurationService=o,this._telemetryService=s,this._codeActionOracle=this._register(new Yu),this._state=iM.Empty,this._onDidChangeState=this._register(new bt),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=H6e.bindTo(i),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._register(this._editor.onDidChangeConfiguration(a=>{a.hasChanged(65)&&this._update()})),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(iM.Empty,!0))}_settingEnabledNearbyQuickfixes(){const e=this._editor?.getModel();return this._configurationService?this._configurationService.getValue("editor.codeActionWidget.includeNearbyQuickFixes",{resource:e?.uri}):!1}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(iM.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(92)){const t=this._registry.all(e).flatMap(n=>n.providedCodeActionKinds??[]);this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new o0t(this._editor,this._markerService,n=>{if(!n){this.setState(iM.Empty);return}const i=n.selection.getStartPosition(),r=vd(async a=>{if(this._settingEnabledNearbyQuickfixes()&&n.trigger.type===1&&(n.trigger.triggerAction===sv.QuickFix||n.trigger.filter?.include?.contains(Ya.QuickFix))){const l=await v6(this._registry,e,n.selection,n.trigger,gx.None,a),c=[...l.allActions];if(a.isCancellationRequested)return Wxe;const u=l.validActions?.some(h=>h.action.kind?Ya.QuickFix.contains(new Tl(h.action.kind)):!1),d=this._markerService.read({resource:e.uri});if(u){for(const h of l.validActions)h.action.command?.arguments?.some(f=>typeof f=="string"&&f.includes(Hxe))&&(h.action.diagnostics=[...d.filter(f=>f.relatedInformation)]);return{validActions:l.validActions,allActions:c,documentation:l.documentation,hasAutoFix:l.hasAutoFix,hasAIFix:l.hasAIFix,allAIFixes:l.allAIFixes,dispose:()=>{l.dispose()}}}else if(!u&&d.length>0){const h=n.selection.getPosition();let f=h,p=Number.MAX_VALUE;const g=[...l.validActions];for(const v of d){const y=v.endColumn,b=v.endLineNumber,w=v.startLineNumber;if(b===h.lineNumber||w===h.lineNumber){f=new mt(b,y);const E={type:n.trigger.type,triggerAction:n.trigger.triggerAction,filter:{include:n.trigger.filter?.include?n.trigger.filter?.include:Ya.QuickFix},autoApply:n.trigger.autoApply,context:{notAvailableMessage:n.trigger.context?.notAvailableMessage||"",position:f}},A=new Ii(f.lineNumber,f.column,f.lineNumber,f.column),D=await v6(this._registry,e,A,E,gx.None,a);if(D.validActions.length!==0){for(const T of D.validActions)T.action.command?.arguments?.some(M=>typeof M=="string"&&M.includes(Hxe))&&(T.action.diagnostics=[...d.filter(M=>M.relatedInformation)]);l.allActions.length===0&&c.push(...D.allActions),Math.abs(h.column-y)<p?g.unshift(...D.validActions):g.push(...D.validActions)}p=Math.abs(h.column-y)}}const m=g.filter((v,y,b)=>b.findIndex(w=>w.action.title===v.action.title)===y);return m.sort((v,y)=>v.action.isPreferred&&!y.action.isPreferred?-1:!v.action.isPreferred&&y.action.isPreferred||v.action.isAI&&!y.action.isAI?1:!v.action.isAI&&y.action.isAI?-1:0),{validActions:m,allActions:c,documentation:l.documentation,hasAutoFix:l.hasAutoFix,hasAIFix:l.hasAIFix,allAIFixes:l.allAIFixes,dispose:()=>{l.dispose()}}}}if(n.trigger.type===1){const l=new Ah,c=await v6(this._registry,e,n.selection,n.trigger,gx.None,a);return this._telemetryService&&this._telemetryService.publicLog2("codeAction.invokedDurations",{codeActions:c.validActions.length,duration:l.elapsed()}),c}return v6(this._registry,e,n.selection,n.trigger,gx.None,a)});n.trigger.type===1&&this._progressService?.showWhile(r,250);const o=new iM.Triggered(n.trigger,i,r);let s=!1;this._state.type===1&&(s=this._state.trigger.type===1&&o.type===1&&o.trigger.type===2&&this._state.position!==o.position),s?setTimeout(()=>{this.setState(o)},500):this.setState(o)},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:sv.Default})}else this._supportedCodeActions.reset()}trigger(e){this._codeActionOracle.value?.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=e,!t&&!this._disposed&&this._onDidChangeState.fire(e))}}}}),s0t,i1,u4,a0t,wR,D$e=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionController.js"(){var e;Fn(),Ih(),Vi(),wE(),Nt(),Hi(),Ac(),Eo(),G7(),KYn(),JYn(),zen(),MY(),bn(),iQn(),Ks(),sa(),er(),li(),CT(),$C(),ll(),VC(),Ys(),cF(),Wen(),YC(),_m(),s0t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},i1=function(t,n){return function(i,r){n(i,r,t)}},a0t="quickfix-edit-highlight",wR=(e=class extends St{static get(n){return n.getContribution(u4.ID)}constructor(n,i,r,o,s,a,l,c,u,d,h){super(),this._commandService=l,this._configurationService=c,this._actionWidgetService=u,this._instantiationService=d,this._telemetryService=h,this._activeCodeActions=this._register(new Yu),this._showDisabled=!1,this._disposed=!1,this._editor=n,this._model=this._register(new Hen(this._editor,s.codeActionProvider,i,r,a,c,this._telemetryService)),this._register(this._model.onDidChangeState(f=>this.update(f))),this._lightBulbWidget=new lm(()=>{const f=this._editor.getContribution(s8.ID);return f&&this._register(f.onClick(p=>this.showCodeActionsFromLightbulb(p.actions,p))),f}),this._resolver=o.createInstance(qae),this._register(this._editor.onDidLayoutChange(()=>this._actionWidgetService.hide()))}dispose(){this._disposed=!0,super.dispose()}async showCodeActionsFromLightbulb(n,i){if(n.allAIFixes&&n.validActions.length===1){const r=n.validActions[0],o=r.action.command;o&&o.id==="inlineChat.start"&&o.arguments&&o.arguments.length>=1&&(o.arguments[0]={...o.arguments[0],autoSend:!1}),await this._applyCodeAction(r,!1,!1,BO.FromAILightbulb);return}await this.showCodeActionList(n,i,{includeDisabledActions:!1,fromLightbulb:!0})}showCodeActions(n,i,r){return this.showCodeActionList(i,r,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(n,i,r,o){if(!this._editor.hasModel())return;nm.get(this._editor)?.closeMessage();const s=this._editor.getPosition();this._trigger({type:1,triggerAction:i,filter:r,autoApply:o,context:{notAvailableMessage:n,position:s}})}_trigger(n){return this._model.trigger(n)}async _applyCodeAction(n,i,r,o){try{await this._instantiationService.invokeFunction(qYn,n,o,{preview:r,editor:this._editor})}finally{i&&this._trigger({type:2,triggerAction:sv.QuickFix,filter:{}})}}hideLightBulbWidget(){this._lightBulbWidget.rawValue?.hide(),this._lightBulbWidget.rawValue?.gutterHide()}async update(n){if(n.type!==1){this.hideLightBulbWidget();return}let i;try{i=await n.actions}catch(o){Mr(o);return}if(!(this._disposed||this._editor.getSelection()?.startLineNumber!==n.position.lineNumber))if(this._lightBulbWidget.value?.update(i,n.trigger,n.position),n.trigger.type===1){if(n.trigger.filter?.include){const s=this.tryGetValidActionToApply(n.trigger,i);if(s){try{this.hideLightBulbWidget(),await this._applyCodeAction(s,!1,!1,BO.FromCodeActions)}finally{i.dispose()}return}if(n.trigger.context){const a=this.getInvalidActionThatWouldHaveBeenApplied(n.trigger,i);if(a&&a.action.disabled){nm.get(this._editor)?.showMessage(a.action.disabled,n.trigger.context.position),i.dispose();return}}}const o=!!n.trigger.filter?.include;if(n.trigger.context&&(!i.allActions.length||!o&&!i.validActions.length)){nm.get(this._editor)?.showMessage(n.trigger.context.notAvailableMessage,n.trigger.context.position),this._activeCodeActions.value=i,i.dispose();return}this._activeCodeActions.value=i,this.showCodeActionList(i,this.toCoords(n.position),{includeDisabledActions:o,fromLightbulb:!1})}else this._actionWidgetService.isVisible?i.dispose():this._activeCodeActions.value=i}getInvalidActionThatWouldHaveBeenApplied(n,i){if(i.allActions.length&&(n.autoApply==="first"&&i.validActions.length===0||n.autoApply==="ifSingle"&&i.allActions.length===1))return i.allActions.find(({action:r})=>r.disabled)}tryGetValidActionToApply(n,i){if(i.validActions.length&&(n.autoApply==="first"&&i.validActions.length>0||n.autoApply==="ifSingle"&&i.validActions.length===1))return i.validActions[0]}async showCodeActionList(n,i,r){const o=this._editor.createDecorationsCollection(),s=this._editor.getDomNode();if(!s)return;const a=r.includeDisabledActions&&(this._showDisabled||n.validActions.length===0)?n.allActions:n.validActions;if(!a.length)return;const l=mt.isIPosition(i)?this.toCoords(i):i,c={onSelect:async(u,d)=>{this._applyCodeAction(u,!0,!!d,r.fromLightbulb?BO.FromAILightbulb:BO.FromCodeActions),this._actionWidgetService.hide(!1),o.clear()},onHide:u=>{this._editor?.focus(),o.clear()},onHover:async(u,d)=>{if(d.isCancellationRequested)return;let h=!1;const f=u.action.kind;if(f){const p=new Tl(f);h=[Ya.RefactorExtract,Ya.RefactorInline,Ya.RefactorRewrite,Ya.RefactorMove,Ya.Source].some(m=>m.contains(p))}return{canPreview:h||!!u.action.edit?.edits.length}},onFocus:u=>{if(u&&u.action){const d=u.action.ranges,h=u.action.diagnostics;if(o.clear(),d&&d.length>0){const f=h&&h?.length>1?h.map(p=>({range:p,options:u4.DECORATION})):d.map(p=>({range:p,options:u4.DECORATION}));o.set(f)}else if(h&&h.length>0){const f=h.map(g=>({range:g,options:u4.DECORATION}));o.set(f);const p=h[0];if(p.startLineNumber&&p.startColumn){const g=this._editor.getModel()?.getWordAtPosition({lineNumber:p.startLineNumber,column:p.startColumn})?.word;eE(R("editingNewSelection","Context: {0} at line {1} and column {2}.",g,p.startLineNumber,p.startColumn))}}}else o.clear()}};this._actionWidgetService.show("codeActionWidget",!0,XYn(a,this._shouldShowHeaders(),this._resolver.getResolver()),c,l,s,this._getActionBarActions(n,i,r))}toCoords(n){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(n,1),this._editor.render();const i=this._editor.getScrolledVisiblePosition(n),r=_c(this._editor.getDomNode()),o=r.left+i.left,s=r.top+i.top+i.height;return{x:o,y:s}}_shouldShowHeaders(){const n=this._editor?.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:n?.uri})}_getActionBarActions(n,i,r){if(r.fromLightbulb)return[];const o=n.documentation.map(s=>({id:s.id,label:s.title,tooltip:s.tooltip??"",class:void 0,enabled:!0,run:()=>this._commandService.executeCommand(s.id,...s.arguments??[])}));return r.includeDisabledActions&&n.validActions.length>0&&n.allActions.length!==n.validActions.length&&o.push(this._showDisabled?{id:"hideMoreActions",label:R("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(n,i,r))}:{id:"showMoreActions",label:R("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(n,i,r))}),o}},u4=e,e.ID="editor.contrib.codeActionController",e.DECORATION=Gr.register({description:"quickfix-highlight",className:a0t}),e),wR=u4=s0t([i1(1,xC),i1(2,ur),i1(3,ji),i1(4,gi),i1(5,jD),i1(6,Oa),i1(7,co),i1(8,rI),i1(9,ji),i1(10,uf)],wR),Ab((t,n)=>{((o,s)=>{s&&n.addRule(`.monaco-editor ${o} { background-color: ${s}; }`)})(".quickfix-edit-highlight",t.getColor(px));const r=t.getColor(cD);r&&n.addRule(`.monaco-editor .quickfix-edit-highlight { border: 1px ${rC(t.type)?"dotted":"solid"} ${r}; box-sizing: border-box; }`)})}});function RV(e){return nn.regex(H6e.keys()[0],new RegExp("(\\s|^)"+z0(e.value)+"\\b"))}function rM(e,t,n,i,r=sv.Default){e.hasModel()&&wR.get(e)?.manualTriggerAtCurrentPosition(t,r,n,i)}var wte,Uen,$en,qen,Gen,Ken,Yen,Qen,rQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionCommands.js"(){YC(),Ki(),mr(),ls(),G7(),bn(),er(),cF(),D$e(),Wen(),wte={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:R("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:R("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[R("args.schema.apply.first","Always apply the first returned code action."),R("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),R("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:R("args.schema.preferred","Controls if only preferred code actions should be returned.")}}},Uen=class extends ri{constructor(){super({id:Xge,label:R("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:nn.and(Ge.writable,Ge.hasCodeActionsProvider),kbOpts:{kbExpr:Ge.textInputFocus,primary:2137,weight:100}})}run(e,t){return rM(t,R("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,sv.QuickFix)}},$en=class extends Hd{constructor(){super({id:C$e,precondition:nn.and(Ge.writable,Ge.hasCodeActionsProvider),metadata:{description:"Trigger a code action",args:[{name:"args",schema:wte}]}})}runEditorCommand(e,t,n){const i=w$.fromUser(n,{kind:Tl.Empty,apply:"ifSingle"});return rM(t,typeof n?.kind=="string"?i.preferred?R("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",n.kind):R("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",n.kind):i.preferred?R("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):R("editor.action.codeAction.noneMessage","No code actions available"),{include:i.kind,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply)}},qen=class extends ri{constructor(){super({id:x$e,label:R("refactor.label","Refactor..."),alias:"Refactor...",precondition:nn.and(Ge.writable,Ge.hasCodeActionsProvider),kbOpts:{kbExpr:Ge.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:nn.and(Ge.writable,RV(Ya.Refactor))},metadata:{description:"Refactor...",args:[{name:"args",schema:wte}]}})}run(e,t,n){const i=w$.fromUser(n,{kind:Ya.Refactor,apply:"never"});return rM(t,typeof n?.kind=="string"?i.preferred?R("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",n.kind):R("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",n.kind):i.preferred?R("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):R("editor.action.refactor.noneMessage","No refactorings available"),{include:Ya.Refactor.contains(i.kind)?i.kind:Tl.None,onlyIncludePreferredActions:i.preferred},i.apply,sv.Refactor)}},Gen=class extends ri{constructor(){super({id:E$e,label:R("source.label","Source Action..."),alias:"Source Action...",precondition:nn.and(Ge.writable,Ge.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:nn.and(Ge.writable,RV(Ya.Source))},metadata:{description:"Source Action...",args:[{name:"args",schema:wte}]}})}run(e,t,n){const i=w$.fromUser(n,{kind:Ya.Source,apply:"never"});return rM(t,typeof n?.kind=="string"?i.preferred?R("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",n.kind):R("editor.action.source.noneMessage.kind","No source actions for '{0}' available",n.kind):i.preferred?R("editor.action.source.noneMessage.preferred","No preferred source actions available"):R("editor.action.source.noneMessage","No source actions available"),{include:Ya.Source.contains(i.kind)?i.kind:Tl.None,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply,sv.SourceAction)}},Ken=class extends ri{constructor(){super({id:Fde,label:R("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:nn.and(Ge.writable,RV(Ya.SourceOrganizeImports)),kbOpts:{kbExpr:Ge.textInputFocus,primary:1581,weight:100}})}run(e,t){return rM(t,R("editor.action.organize.noneMessage","No organize imports action available"),{include:Ya.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",sv.OrganizeImports)}},Yen=class extends ri{constructor(){super({id:Bde,label:R("fixAll.label","Fix All"),alias:"Fix All",precondition:nn.and(Ge.writable,RV(Ya.SourceFixAll))})}run(e,t){return rM(t,R("fixAll.noneMessage","No fix all action available"),{include:Ya.SourceFixAll,includeSourceActions:!0},"ifSingle",sv.FixAll)}},Qen=class extends ri{constructor(){super({id:S$e,label:R("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:nn.and(Ge.writable,RV(Ya.QuickFix)),kbOpts:{kbExpr:Ge.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return rM(t,R("editor.action.autoFix.noneMessage","No auto fixes available"),{include:Ya.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",sv.AutoFix)}}}}),oQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js"(){mr(),aWe(),rQn(),D$e(),zen(),bn(),gT(),Fu(),qo(wR.ID,wR,3),qo(s8.ID,s8,4),yn(Uen),yn(qen),yn(Gen),yn(Ken),yn(Qen),yn(Yen),$n(new $en),ml.as(Qy.Configuration).registerConfiguration({...U6,properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:R("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}),ml.as(Qy.Configuration).registerConfiguration({...U6,properties:{"editor.codeActionWidget.includeNearbyQuickFixes":{type:"boolean",scope:5,description:R("includeNearbyQuickFixes","Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."),default:!0}}}),ml.as(Qy.Configuration).registerConfiguration({...U6,properties:{"editor.codeActions.triggerOnFocusChange":{type:"boolean",scope:5,markdownDescription:R("triggerOnFocusChange","Enable triggering {0} when {1} is set to {2}. Code Actions must be set to {3} to be triggered for window and focus changes.","`#editor.codeActionsOnSave#`","`#files.autoSave#`","`afterDelay`","`always`"),default:!1}}})}});async function Zen(e,t,n){const i=e.ordered(t),r=new Map,o=new jde,s=i.map(async(a,l)=>{r.set(a,l);try{const c=await Promise.resolve(a.provideCodeLenses(t,n));c&&o.add(c,a)}catch(c){Sc(c)}});return await Promise.all(s),o.lenses=o.lenses.sort((a,l)=>a.symbol.range.startLineNumber<l.symbol.range.startLineNumber?-1:a.symbol.range.startLineNumber>l.symbol.range.startLineNumber?1:r.get(a.provider)<r.get(l.provider)?-1:r.get(a.provider)>r.get(l.provider)?1:a.symbol.range.startColumn<l.symbol.range.startColumn?-1:a.symbol.range.startColumn>l.symbol.range.startColumn?1:0),o}var jde,Xen=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codelens/browser/codelens.js"(){Ho(),Vi(),Nt(),as(),ss(),Kf(),Ks(),Eo(),jde=class{constructor(){this.lenses=[],this._disposables=new Jt}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const n of e.lenses)this.lenses.push({symbol:n,provider:t})}},Ro.registerCommand("_executeCodeLensProvider",function(e,...t){let[n,i]=t;ns(Ui.isUri(n)),ns(typeof i=="number"||!i);const{codeLensProvider:r}=e.get(gi),o=e.get(Ua).getModel(n);if(!o)throw Gy();const s=[],a=new Jt;return Zen(r,o,no.None).then(l=>{a.add(l);const c=[];for(const u of l.lenses)i==null||u.symbol.command?s.push(u.symbol):i-- >0&&u.provider.resolveCodeLens&&c.push(Promise.resolve(u.provider.resolveCodeLens(o,u.symbol,no.None)).then(d=>s.push(d||u.symbol)));return Promise.all(c)}).then(()=>s).finally(()=>{setTimeout(()=>a.dispose(),100)})})}}),l0t,c0t,W6e,Uxe,Cte,sQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codelens/browser/codeLensCache.js"(){Un(),kh(),Dn(),Xen(),vf(),li(),CE(),wg(),Fn(),l0t=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},c0t=function(e,t){return function(n,i){t(n,i,e)}},W6e=Ao("ICodeLensCache"),Uxe=class{constructor(e,t){this.lineCount=e,this.data=t}},Cte=class{constructor(t){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new WC(20,.75);const n="codelens/cache";PH(la,()=>t.remove(n,1));const i="codelens/cache2",r=t.get(i,1,"{}");this._deserialize(r);const o=On.filter(t.onWillSaveState,s=>s.reason===rG.SHUTDOWN);On.once(o)(s=>{t.store(i,this._serialize(),1,1)})}put(t,n){const i=n.lenses.map(s=>({range:s.symbol.range,command:s.symbol.command&&{id:"",title:s.symbol.command?.title}})),r=new jde;r.add({lenses:i,dispose:()=>{}},this._fakeProvider);const o=new Uxe(t.getLineCount(),r);this._cache.set(t.uri.toString(),o)}get(t){const n=this._cache.get(t.uri.toString());return n&&n.lineCount===t.getLineCount()?n.data:void 0}delete(t){this._cache.delete(t.uri.toString())}_serialize(){const t=Object.create(null);for(const[n,i]of this._cache){const r=new Set;for(const o of i.data.lenses)r.add(o.symbol.range.startLineNumber);t[n]={lineCount:i.lineCount,lines:[...r.values()]}}return JSON.stringify(t)}_deserialize(t){try{const n=JSON.parse(t);for(const i in n){const r=n[i],o=[];for(const a of r.lines)o.push({range:new Re(a,1,a,11)});const s=new jde;s.add({lenses:o,dispose(){}},this._fakeProvider),this._cache.set(i,new Uxe(r.lineCount,s))}}catch{}}},Cte=l0t([c0t(0,ab)],Cte),Oo(W6e,Cte,1)}}),aQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codelens/browser/codelensWidget.css"(){}}),u0t,d0t,Kae,$xe,U6e,lQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codelens/browser/codelensWidget.js"(){var e;Fn(),MN(),aQn(),Dn(),Ac(),u0t=class{constructor(t,n,i){this.afterColumn=1073741824,this.afterLineNumber=t,this.heightInPx=n,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(t){this._lastHeight===void 0?this._lastHeight=t:this._lastHeight!==t&&(this._lastHeight=t,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}},d0t=(e=class{constructor(n,i){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=n,this._id=`codelens.widget-${e._idPool++}`,this.updatePosition(i),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(n,i){this._commands.clear();const r=[];let o=!1;for(let s=0;s<n.length;s++){const a=n[s];if(a&&(o=!0,a.command)){const l=aL(a.command.title.trim());if(a.command.id){const c=`c${e._idPool++}`;r.push(In("a",{id:c,title:a.command.tooltip,role:"button"},...l)),this._commands.set(c,a.command)}else r.push(In("span",{title:a.command.tooltip},...l));s+1<n.length&&r.push(In("span",void 0," | "))}}o?(xh(this._domNode,...r),this._isEmpty&&i&&this._domNode.classList.add("fadein"),this._isEmpty=!1):xh(this._domNode,In("span",void 0,"no commands"))}getCommand(n){return n.parentElement===this._domNode?this._commands.get(n.id):void 0}getId(){return this._id}getDomNode(){return this._domNode}updatePosition(n){const i=this._editor.getModel().getLineFirstNonWhitespaceColumn(n);this._widgetPosition={position:{lineNumber:n,column:i},preference:[1]}}getPosition(){return this._widgetPosition||null}},e._idPool=0,e),Kae=class{constructor(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}addDecoration(t,n){this._addDecorations.push(t),this._addDecorationsCallbacks.push(n)}removeDecoration(t){this._removeDecorations.push(t)}commit(t){const n=t.deltaDecorations(this._removeDecorations,this._addDecorations);for(let i=0,r=n.length;i<r;i++)this._addDecorationsCallbacks[i](n[i])}},$xe=Gr.register({collapseOnReplaceEdit:!0,description:"codelens"}),U6e=class{constructor(t,n,i,r,o,s){this._isDisposed=!1,this._editor=n,this._data=t,this._decorationIds=[];let a;const l=[];this._data.forEach((c,u)=>{c.symbol.command&&l.push(c.symbol),i.addDecoration({range:c.symbol.range,options:$xe},d=>this._decorationIds[u]=d),a?a=Re.plusRange(a,c.symbol.range):a=Re.lift(c.symbol.range)}),this._viewZone=new u0t(a.startLineNumber-1,o,s),this._viewZoneId=r.addZone(this._viewZone),l.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(l,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new d0t(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(t,n){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],n?.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((t,n)=>{const i=this._editor.getModel().getDecorationRange(t),r=this._data[n].symbol;return!!(i&&Re.isEmpty(r.range)===i.isEmpty())})}updateCodeLensSymbols(t,n){this._decorationIds.forEach(n.removeDecoration,n),this._decorationIds=[],this._data=t,this._data.forEach((i,r)=>{n.addDecoration({range:i.symbol.range,options:$xe},o=>this._decorationIds[r]=o)})}updateHeight(t,n){this._viewZone.heightInPx=t,n.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(t){if(!this._viewZone.isVisible())return null;for(let n=0;n<this._decorationIds.length;n++){const i=t.getDecorationRange(this._decorationIds[n]);i&&(this._data[n].symbol.range=i)}return this._data}updateCommands(t){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(t,!0);for(let n=0;n<this._data.length;n++){const i=t[n];if(i){const{symbol:r}=this._data[n];r.command=i.command||r.command}}}getCommand(t){return this._contentWidget?.getCommand(t)}getLineNumber(){const t=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return t?t.startLineNumber:-1}update(t){if(this.isValid()){const n=this._editor.getModel().getDecorationRange(this._decorationIds[0]);n&&(this._viewZone.afterLineNumber=n.startLineNumber-1,t.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(n.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}}}}}),h0t,d4,h4,cQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codelens/browser/codelensController.js"(){var e;fr(),Vi(),Nt(),q7(),mr(),Su(),ls(),Xen(),sQn(),lQn(),bn(),Ks(),yf(),Hv(),Db(),Eo(),h0t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},d4=function(t,n){return function(i,r){n(i,r,t)}},h4=(e=class{constructor(n,i,r,o,s,a){this._editor=n,this._languageFeaturesService=i,this._commandService=o,this._notificationService=s,this._codeLensCache=a,this._disposables=new Jt,this._localToDispose=new Jt,this._lenses=[],this._oldCodeLensModels=new Jt,this._provideCodeLensDebounce=r.for(i.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=r.for(i.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new Gs(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(l=>{(l.hasChanged(50)||l.hasChanged(19)||l.hasChanged(18))&&this._updateLensStyle(),l.hasChanged(17)&&this._onModelChange()})),this._disposables.add(i.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),this._currentCodeLensModel?.dispose()}_getLayoutInfo(){const n=Math.max(1.3,this._editor.getOption(67)/this._editor.getOption(52));let i=this._editor.getOption(19);return(!i||i<5)&&(i=this._editor.getOption(52)*.9|0),{fontSize:i,codeLensHeight:i*n|0}}_updateLensStyle(){const{codeLensHeight:n,fontSize:i}=this._getLayoutInfo(),r=this._editor.getOption(18),o=this._editor.getOption(50),{style:s}=this._editor.getContainerDomNode();s.setProperty("--vscode-editorCodeLens-lineHeight",`${n}px`),s.setProperty("--vscode-editorCodeLens-fontSize",`${i}px`),s.setProperty("--vscode-editorCodeLens-fontFeatureSettings",o.fontFeatureSettings),r&&(s.setProperty("--vscode-editorCodeLens-fontFamily",r),s.setProperty("--vscode-editorCodeLens-fontFamilyDefault",ap.fontFamily)),this._editor.changeViewZones(a=>{for(const l of this._lenses)l.updateHeight(n,a)})}_localDispose(){this._getCodeLensModelPromise?.cancel(),this._getCodeLensModelPromise=void 0,this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),this._currentCodeLensModel?.dispose()}_onModelChange(){this._localDispose();const n=this._editor.getModel();if(!n||!this._editor.getOption(17)||n.isTooLargeForTokenization())return;const i=this._codeLensCache.get(n);if(i&&this._renderCodeLensSymbols(i),!this._languageFeaturesService.codeLensProvider.has(n)){i&&TL(()=>{const o=this._codeLensCache.get(n);i===o&&(this._codeLensCache.delete(n),this._onModelChange())},30*1e3,this._localToDispose);return}for(const o of this._languageFeaturesService.codeLensProvider.all(n))if(typeof o.onDidChange=="function"){const s=o.onDidChange(()=>r.schedule());this._localToDispose.add(s)}const r=new Gs(()=>{const o=Date.now();this._getCodeLensModelPromise?.cancel(),this._getCodeLensModelPromise=vd(s=>Zen(this._languageFeaturesService.codeLensProvider,n,s)),this._getCodeLensModelPromise.then(s=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=s,this._codeLensCache.put(n,s);const a=this._provideCodeLensDebounce.update(n,Date.now()-o);r.delay=a,this._renderCodeLensSymbols(s),this._resolveCodeLensesInViewportSoon()},Mr)},this._provideCodeLensDebounce.get(n));this._localToDispose.add(r),this._localToDispose.add(zi(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._editor.changeDecorations(o=>{this._editor.changeViewZones(s=>{const a=[];let l=-1;this._lenses.forEach(u=>{!u.isValid()||l===u.getLineNumber()?a.push(u):(u.update(s),l=u.getLineNumber())});const c=new Kae;a.forEach(u=>{u.dispose(c,s),this._lenses.splice(this._lenses.indexOf(u),1)}),c.commit(o)})}),r.schedule(),this._resolveCodeLensesScheduler.cancel(),this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0})),this._localToDispose.add(this._editor.onDidFocusEditorText(()=>{r.schedule()})),this._localToDispose.add(this._editor.onDidBlurEditorText(()=>{r.cancel()})),this._localToDispose.add(this._editor.onDidScrollChange(o=>{o.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(zi(()=>{if(this._editor.getModel()){const o=VD.capture(this._editor);this._editor.changeDecorations(s=>{this._editor.changeViewZones(a=>{this._disposeAllLenses(s,a)})}),o.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(o=>{if(o.target.type!==9)return;let s=o.target.element;if(s?.tagName==="SPAN"&&(s=s.parentElement),s?.tagName==="A")for(const a of this._lenses){const l=a.getCommand(s);if(l){this._commandService.executeCommand(l.id,...l.arguments||[]).catch(c=>this._notificationService.error(c));break}}})),r.schedule()}_disposeAllLenses(n,i){const r=new Kae;for(const o of this._lenses)o.dispose(r,i);n&&r.commit(n),this._lenses.length=0}_renderCodeLensSymbols(n){if(!this._editor.hasModel())return;const i=this._editor.getModel().getLineCount(),r=[];let o;for(const l of n.lenses){const c=l.symbol.range.startLineNumber;c<1||c>i||(o&&o[o.length-1].symbol.range.startLineNumber===c?o.push(l):(o=[l],r.push(o)))}if(!r.length&&!this._lenses.length)return;const s=VD.capture(this._editor),a=this._getLayoutInfo();this._editor.changeDecorations(l=>{this._editor.changeViewZones(c=>{const u=new Kae;let d=0,h=0;for(;h<r.length&&d<this._lenses.length;){const f=r[h][0].symbol.range.startLineNumber,p=this._lenses[d].getLineNumber();p<f?(this._lenses[d].dispose(u,c),this._lenses.splice(d,1)):p===f?(this._lenses[d].updateCodeLensSymbols(r[h],u),h++,d++):(this._lenses.splice(d,0,new U6e(r[h],this._editor,u,c,a.codeLensHeight,()=>this._resolveCodeLensesInViewportSoon())),d++,h++)}for(;d<this._lenses.length;)this._lenses[d].dispose(u,c),this._lenses.splice(d,1);for(;h<r.length;)this._lenses.push(new U6e(r[h],this._editor,u,c,a.codeLensHeight,()=>this._resolveCodeLensesInViewportSoon())),h++;u.commit(l)})}),s.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0;const n=this._editor.getModel();if(!n)return;const i=[],r=[];if(this._lenses.forEach(a=>{const l=a.computeIfNecessary(n);l&&(i.push(l),r.push(a))}),i.length===0)return;const o=Date.now(),s=vd(a=>{const l=i.map((c,u)=>{const d=new Array(c.length),h=c.map((f,p)=>!f.symbol.command&&typeof f.provider.resolveCodeLens=="function"?Promise.resolve(f.provider.resolveCodeLens(n,f.symbol,a)).then(g=>{d[p]=g},Sc):(d[p]=f.symbol,Promise.resolve(void 0)));return Promise.all(h).then(()=>{!a.isCancellationRequested&&!r[u].isDisposed()&&r[u].updateCommands(d)})});return Promise.all(l)});this._resolveCodeLensesPromise=s,this._resolveCodeLensesPromise.then(()=>{const a=this._resolveCodeLensesDebounce.update(n,Date.now()-o);this._resolveCodeLensesScheduler.delay=a,this._currentCodeLensModel&&this._codeLensCache.put(n,this._currentCodeLensModel),this._oldCodeLensModels.clear(),s===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},a=>{Mr(a),s===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}async getModel(){return await this._getCodeLensModelPromise,await this._resolveCodeLensesPromise,this._currentCodeLensModel?.isDisposed?void 0:this._currentCodeLensModel}},e.ID="css.editor.codeLens",e),h4=h0t([d4(1,gi),d4(2,Mv),d4(3,Oa),d4(4,Cc),d4(5,W6e)],h4),qo(h4.ID,h4,1),yn(class extends ri{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:Ge.hasCodeLensProvider,label:R("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}async run(n,i){if(!i.hasModel())return;const r=n.get(Z0),o=n.get(Oa),s=n.get(Cc),a=i.getSelection().positionLineNumber,l=i.getContribution(h4.ID);if(!l)return;const c=await l.getModel();if(!c)return;const u=[];for(const f of c.lenses)f.symbol.command&&f.symbol.range.startLineNumber===a&&u.push({label:f.symbol.command.title,command:f.symbol.command});if(u.length===0)return;const d=await r.pick(u,{canPickMany:!1,placeHolder:R("placeHolder","Select a command")});if(!d)return;let h=d.command;if(c.isDisposed){const p=(await l.getModel())?.lenses.find(g=>g.symbol.range.startLineNumber===a&&g.symbol.command?.title===h.title);if(!p||!p.symbol.command)return;h=p.symbol.command}try{await o.executeCommand(h.id,...h.arguments||[])}catch(f){s.error(f)}}})}}),qxe,Ste,y6,xte,Jen=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.js"(){ql(),Nt(),Eo(),oF(),SE(),qxe=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},Ste=function(e,t){return function(n,i){t(n,i,e)}},y6=class{constructor(t){this._editorWorkerService=t}async provideDocumentColors(t,n){return this._editorWorkerService.computeDefaultDocumentColors(t.uri)}provideColorPresentations(t,n,i){const r=n.range,o=n.color,s=o.alpha,a=new rn(new $o(Math.round(255*o.red),Math.round(255*o.green),Math.round(255*o.blue),s)),l=s?rn.Format.CSS.formatRGB(a):rn.Format.CSS.formatRGBA(a),c=s?rn.Format.CSS.formatHSL(a):rn.Format.CSS.formatHSLA(a),u=s?rn.Format.CSS.formatHex(a):rn.Format.CSS.formatHexA(a),d=[];return d.push({label:l,textEdit:{range:r,text:l}}),d.push({label:c,textEdit:{range:r,text:c}}),d.push({label:u,textEdit:{range:r,text:u}}),d}},y6=qxe([Ste(0,fg)],y6),xte=class extends St{constructor(t,n){super(),this._register(t.colorProvider.register("*",new y6(n)))}},xte=qxe([Ste(0,gi),Ste(1,fg)],xte),W7(xte)}});async function etn(e,t,n,i=!0){return $6e(new ntn,e,t,n,i)}function ttn(e,t,n,i){return Promise.resolve(n.provideColorPresentations(e,t,i))}async function $6e(e,t,n,i,r){let o=!1,s;const a=[],l=t.ordered(n);for(let c=l.length-1;c>=0;c--){const u=l[c];if(u instanceof y6)s=u;else try{await e.compute(u,n,i,a)&&(o=!0)}catch(d){Sc(d)}}return o?a:s&&r?(await e.compute(s,n,i,a),a):[]}function f0t(e,t){const{colorProvider:n}=e.get(gi),i=e.get(Ua).getModel(t);if(!i)throw Gy();const r=e.get(co).getValue("editor.defaultColorDecorators",{resource:t});return{model:i,colorProviderRegistry:n,isDefaultColorDecoratorsEnabled:r}}var ntn,p0t,g0t,itn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/color.js"(){Ho(),Vi(),ss(),Dn(),Kf(),Ks(),Eo(),Jen(),sa(),ntn=class{constructor(){}async compute(e,t,n,i){const r=await e.provideDocumentColors(t,n);if(Array.isArray(r))for(const o of r)i.push({colorInfo:o,provider:e});return Array.isArray(r)}},p0t=class{constructor(){}async compute(e,t,n,i){const r=await e.provideDocumentColors(t,n);if(Array.isArray(r))for(const o of r)i.push({range:o.range,color:[o.color.red,o.color.green,o.color.blue,o.color.alpha]});return Array.isArray(r)}},g0t=class{constructor(e){this.colorInfo=e}async compute(e,t,n,i){const r=await e.provideColorPresentations(t,this.colorInfo,no.None);return Array.isArray(r)&&i.push(...r),Array.isArray(r)}},Ro.registerCommand("_executeDocumentColorProvider",function(e,...t){const[n]=t;if(!(n instanceof Ui))throw Gy();const{model:i,colorProviderRegistry:r,isDefaultColorDecoratorsEnabled:o}=f0t(e,n);return $6e(new p0t,r,i,no.None,o)}),Ro.registerCommand("_executeColorPresentationProvider",function(e,...t){const[n,i]=t,{uri:r,range:o}=i;if(!(r instanceof Ui)||!Array.isArray(n)||n.length!==4||!Re.isIRange(o))throw Gy();const{model:s,colorProviderRegistry:a,isDefaultColorDecoratorsEnabled:l}=f0t(e,r),[c,u,d,h]=n;return $6e(new g0t({range:o,color:{red:c,green:u,blue:d,alpha:h}}),a,s,no.None,l)})}}),m0t,Ete,Gxe,q6e,vO,v0t,rtn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorDetector.js"(){var e;fr(),ql(),Vi(),Un(),Nt(),_g(),Ki(),QK(),mr(),Dn(),Ac(),Db(),Eo(),itn(),sa(),m0t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},Ete=function(t,n){return function(i,r){n(i,r,t)}},q6e=Object.create({}),vO=(e=class extends St{constructor(n,i,r,o){super(),this._editor=n,this._configurationService=i,this._languageFeaturesService=r,this._localToDispose=this._register(new Jt),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new dHe(this._editor),this._decoratorLimitReporter=new v0t,this._colorDecorationClassRefs=this._register(new Jt),this._debounceInformation=o.for(r.colorProvider,"Document Colors",{min:Gxe.RECOMPUTE_TIME}),this._register(n.onDidChangeModel(()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()})),this._register(n.onDidChangeModelLanguage(()=>this.updateColors())),this._register(r.colorProvider.onDidChange(()=>this.updateColors())),this._register(n.onDidChangeConfiguration(s=>{const a=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(148);const l=a!==this._isColorDecoratorsEnabled||s.hasChanged(21),c=s.hasChanged(148);(l||c)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(148),this.updateColors()}isEnabled(){const n=this._editor.getModel();if(!n)return!1;const i=n.getLanguageId(),r=this._configurationService.getValue(i);if(r&&typeof r=="object"){const o=r.colorDecorators;if(o&&o.enable!==void 0&&!o.enable)return o.enable}return this._editor.getOption(20)}static get(n){return n.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;const n=this._editor.getModel();!n||!this._languageFeaturesService.colorProvider.has(n)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new Sb,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(n)))})),this.beginCompute())}async beginCompute(){this._computePromise=vd(async n=>{const i=this._editor.getModel();if(!i)return[];const r=new Ah(!1),o=await etn(this._languageFeaturesService.colorProvider,i,n,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(i,r.elapsed()),o});try{const n=await this._computePromise;this.updateDecorations(n),this.updateColorDecorators(n),this._computePromise=null}catch(n){Mr(n)}}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(n){const i=n.map(r=>({range:{startLineNumber:r.colorInfo.range.startLineNumber,startColumn:r.colorInfo.range.startColumn,endLineNumber:r.colorInfo.range.endLineNumber,endColumn:r.colorInfo.range.endColumn},options:Gr.EMPTY}));this._editor.changeDecorations(r=>{this._decorationsIds=r.deltaDecorations(this._decorationsIds,i),this._colorDatas=new Map,this._decorationsIds.forEach((o,s)=>this._colorDatas.set(o,n[s]))})}updateColorDecorators(n){this._colorDecorationClassRefs.clear();const i=[],r=this._editor.getOption(21);for(let s=0;s<n.length&&i.length<r;s++){const{red:a,green:l,blue:c,alpha:u}=n[s].colorInfo.color,d=new $o(Math.round(a*255),Math.round(l*255),Math.round(c*255),u),h=`rgba(${d.r}, ${d.g}, ${d.b}, ${d.a})`,f=this._colorDecorationClassRefs.add(this._ruleFactory.createClassNameRef({backgroundColor:h}));i.push({range:{startLineNumber:n[s].colorInfo.range.startLineNumber,startColumn:n[s].colorInfo.range.startColumn,endLineNumber:n[s].colorInfo.range.endLineNumber,endColumn:n[s].colorInfo.range.endColumn},options:{description:"colorDetector",before:{content:$3e,inlineClassName:`${f.className} colorpicker-color-decoration`,inlineClassNameAffectsLetterSpacing:!0,attachedData:q6e}}})}const o=r<n.length?r:!1;this._decoratorLimitReporter.update(n.length,o),this._colorDecoratorIds.set(i)}removeAllDecorations(){this._editor.removeDecorations(this._decorationsIds),this._decorationsIds=[],this._colorDecoratorIds.clear(),this._colorDecorationClassRefs.clear()}getColorData(n){const i=this._editor.getModel();if(!i)return null;const r=i.getDecorationsInRange(Re.fromPositions(n,n)).filter(o=>this._colorDatas.has(o.id));return r.length===0?null:this._colorDatas.get(r[0].id)}isColorDecoration(n){return this._colorDecoratorIds.has(n)}},Gxe=e,e.ID="editor.contrib.colorDetector",e.RECOMPUTE_TIME=1e3,e),vO=Gxe=m0t([Ete(1,co),Ete(2,gi),Ete(3,Mv)],vO),v0t=class{constructor(){this._onDidChange=new bt,this._computed=0,this._limited=!1}update(t,n){(t!==this._computed||n!==this._limited)&&(this._computed=t,this._limited=n,this._onDidChange.fire())}},qo(vO.ID,vO,1)}}),otn,uQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorPickerModel.js"(){Un(),otn=class{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,n){this.presentationIndex=n,this._onColorFlushed=new bt,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new bt,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new bt,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let n=-1;for(let i=0;i<this.colorPresentations.length;i++)if(t.toLowerCase()===this.colorPresentations[i].label){n=i;break}if(n===-1){const i=t.split("(")[0].toLowerCase();for(let r=0;r<this.colorPresentations.length;r++)if(this.colorPresentations[r].label.toLowerCase().startsWith(i)){n=r;break}}n!==-1&&n!==this.presentationIndex&&(this.presentationIndex=n,this._onDidChangePresentation.fire(this.presentation))}flushColor(){this._onColorFlushed.fire(this._color)}}}}),T$e=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorPicker.css"(){}}),Im,y0t,b0t,_0t,w0t,Kxe,C0t,S0t,x0t,stn,dQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js"(){EHe(),Fn(),YK(),mw(),ia(),ql(),Un(),Nt(),Ra(),T$e(),bn(),ll(),X0(),Im=In,y0t=class extends St{constructor(e,t,n,i=!1){super(),this.model=t,this.showingStandaloneColorPicker=i,this._closeButton=null,this._domNode=Im(".colorpicker-header"),hn(e,this._domNode),this._pickedColorNode=hn(this._domNode,Im(".picked-color")),hn(this._pickedColorNode,Im("span.codicon.codicon-color-mode")),this._pickedColorPresentation=hn(this._pickedColorNode,document.createElement("span")),this._pickedColorPresentation.classList.add("picked-color-presentation");const r=R("clickToToggleColorOptions","Click to toggle color options (rgb/hsl/hex)");this._pickedColorNode.setAttribute("title",r),this._originalColorNode=hn(this._domNode,Im(".original-color")),this._originalColorNode.style.backgroundColor=rn.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=n.getColorTheme().getColor(FU)||rn.white,this._register(n.onDidColorThemeChange(o=>{this.backgroundColor=o.getColor(FU)||rn.white})),this._register(qt(this._pickedColorNode,kn.CLICK,()=>this.model.selectNextColorPresentation())),this._register(qt(this._originalColorNode,kn.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this._pickedColorNode.style.backgroundColor=rn.Format.CSS.format(t.color)||"",this._pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color),this.showingStandaloneColorPicker&&(this._domNode.classList.add("standalone-colorpicker"),this._closeButton=this._register(new b0t(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(e){this._pickedColorNode.style.backgroundColor=rn.Format.CSS.format(e)||"",this._pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this._pickedColorPresentation.textContent=this.model.presentation?this.model.presentation.label:""}},b0t=class extends St{constructor(e){super(),this._onClicked=this._register(new bt),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),hn(e,this._button);const t=document.createElement("div");t.classList.add("close-button-inner-div"),hn(this._button,t),hn(t,Im(".button"+lr.asCSSSelector(Xa("color-picker-close",An.close,R("closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._register(qt(this._button,kn.CLICK,()=>{this._onClicked.fire()}))}},_0t=class extends St{constructor(e,t,n,i=!1){super(),this.model=t,this.pixelRatio=n,this._insertButton=null,this._domNode=Im(".colorpicker-body"),hn(e,this._domNode),this._saturationBox=new w0t(this._domNode,this.model,this.pixelRatio),this._register(this._saturationBox),this._register(this._saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this._saturationBox.onColorFlushed(this.flushColor,this)),this._opacityStrip=new C0t(this._domNode,this.model,i),this._register(this._opacityStrip),this._register(this._opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this._opacityStrip.onColorFlushed(this.flushColor,this)),this._hueStrip=new S0t(this._domNode,this.model,i),this._register(this._hueStrip),this._register(this._hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this._hueStrip.onColorFlushed(this.flushColor,this)),i&&(this._insertButton=this._register(new x0t(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const n=this.model.color.hsva;this.model.color=new rn(new QA(n.h,e,t,n.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new rn(new QA(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,n=(1-e)*360;this.model.color=new rn(new QA(n===360?0:n,t.s,t.v,t.a))}get domNode(){return this._domNode}get saturationBox(){return this._saturationBox}get enterButton(){return this._insertButton}layout(){this._saturationBox.layout(),this._opacityStrip.layout(),this._hueStrip.layout()}},w0t=class extends St{constructor(e,t,n){super(),this.model=t,this.pixelRatio=n,this._onDidChange=new bt,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new bt,this.onColorFlushed=this._onColorFlushed.event,this._domNode=Im(".saturation-wrap"),hn(e,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",hn(this._domNode,this._canvas),this.selection=Im(".saturation-selection"),hn(this._domNode,this.selection),this.layout(),this._register(qt(this._domNode,kn.POINTER_DOWN,i=>this.onPointerDown(i))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}get domNode(){return this._domNode}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new KR);const t=_c(this._domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,i=>this.onDidChangePosition(i.pageX-t.left,i.pageY-t.top),()=>null);const n=qt(e.target.ownerDocument,kn.POINTER_UP,()=>{this._onColorFlushed.fire(),n.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){const n=Math.max(0,Math.min(1,e/this.width)),i=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(n,i),this._onDidChange.fire({s:n,v:i})}layout(){this.width=this._domNode.offsetWidth,this.height=this._domNode.offsetHeight,this._canvas.width=this.width*this.pixelRatio,this._canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new rn(new QA(e.h,1,1,1)),n=this._canvas.getContext("2d"),i=n.createLinearGradient(0,0,this._canvas.width,0);i.addColorStop(0,"rgba(255, 255, 255, 1)"),i.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),i.addColorStop(1,"rgba(255, 255, 255, 0)");const r=n.createLinearGradient(0,0,0,this._canvas.height);r.addColorStop(0,"rgba(0, 0, 0, 0)"),r.addColorStop(1,"rgba(0, 0, 0, 1)"),n.rect(0,0,this._canvas.width,this._canvas.height),n.fillStyle=rn.Format.CSS.format(t),n.fill(),n.fillStyle=i,n.fill(),n.fillStyle=r,n.fill()}paintSelection(e,t){this.selection.style.left=`${e*this.width}px`,this.selection.style.top=`${this.height-t*this.height}px`}onDidChangeColor(e){if(this.monitor&&this.monitor.isMonitoring())return;this.paint();const t=e.hsva;this.paintSelection(t.s,t.v)}},Kxe=class extends St{constructor(e,t,n=!1){super(),this.model=t,this._onDidChange=new bt,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new bt,this.onColorFlushed=this._onColorFlushed.event,n?(this.domNode=hn(e,Im(".standalone-strip")),this.overlay=hn(this.domNode,Im(".standalone-overlay"))):(this.domNode=hn(e,Im(".strip")),this.overlay=hn(this.domNode,Im(".overlay"))),this.slider=hn(this.domNode,Im(".slider")),this.slider.style.top="0px",this._register(qt(this.domNode,kn.POINTER_DOWN,i=>this.onPointerDown(i))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onDidChangeColor(e){const t=this.getValue(e);this.updateSliderPosition(t)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new KR),n=_c(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,r=>this.onDidChangeTop(r.pageY-n.top),()=>null);const i=qt(e.target.ownerDocument,kn.POINTER_UP,()=>{this._onColorFlushed.fire(),i.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=`${(1-e)*this.height}px`}},C0t=class extends Kxe{constructor(e,t,n=!1){super(e,t,n),this.domNode.classList.add("opacity-strip"),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){super.onDidChangeColor(e);const{r:t,g:n,b:i}=e.rgba,r=new rn(new $o(t,n,i,1)),o=new rn(new $o(t,n,i,0));this.overlay.style.background=`linear-gradient(to bottom, ${r} 0%, ${o} 100%)`}getValue(e){return e.hsva.a}},S0t=class extends Kxe{constructor(e,t,n=!1){super(e,t,n),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}},x0t=class extends St{constructor(e){super(),this._onClicked=this._register(new bt),this.onClicked=this._onClicked.event,this._button=hn(e,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._register(qt(this._button,kn.CLICK,()=>{this._onClicked.fire()}))}get button(){return this._button}},stn=class extends Ov{constructor(e,t,n,i,r=!1){super(),this.model=t,this.pixelRatio=n,this._register(t9.getInstance(Yi(e)).onDidChange(()=>this.layout())),this._domNode=Im(".colorpicker-widget"),e.appendChild(this._domNode),this.header=this._register(new y0t(this._domNode,this.model,i,r)),this.body=this._register(new _0t(this._domNode,this.model,this.pixelRatio,r))}layout(){this.body.layout()}get domNode(){return this._domNode}}}}),Yae,C$,jL,zL,Sw=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverTypes.js"(){Yae=class{constructor(e,t,n,i){this.priority=e,this.range=t,this.initialMousePosX=n,this.initialMousePosY=i,this.type=1}equals(e){return e.type===1&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return e.type===1&&t.lineNumber===this.range.startLineNumber}},C$=class{constructor(e,t,n,i,r,o){this.priority=e,this.owner=t,this.range=n,this.initialMousePosX=i,this.initialMousePosY=r,this.supportsMarkerHover=o,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}},jL=class{constructor(e){this.renderedHoverParts=e}dispose(){for(const e of this.renderedHoverParts)e.dispose()}},zL=new class{constructor(){this._participants=[]}register(t){this._participants.push(t)}getAll(){return this._participants}}}});async function E0t(e,t,n,i){const r=t.getValueInRange(n.range),{red:o,green:s,blue:a,alpha:l}=n.color,c=new $o(Math.round(o*255),Math.round(s*255),Math.round(a*255),l),u=new rn(c),d=await ttn(t,n,i,no.None),h=new otn(u,[],0);return h.colorPresentations=d||[],h.guessColorPresentation(u,r),e instanceof a8?new ltn(e,Re.lift(n.range),h,i):new ctn(e,Re.lift(n.range),h,i)}function A0t(e,t,n,i,r){if(i.length===0||!t.hasModel())return;if(r.setMinimumDimensions){const h=t.getOption(67)+8;r.setMinimumDimensions(new qs(302,h))}const o=new Jt,s=i[0],a=t.getModel(),l=s.model,c=o.add(new stn(r.fragment,l,t.getOption(144),n,e instanceof l8));let u=!1,d=new Re(s.range.startLineNumber,s.range.startColumn,s.range.endLineNumber,s.range.endColumn);if(e instanceof l8){const h=s.model.color;e.color=h,Qae(a,l,h,d,s),o.add(l.onColorFlushed(f=>{e.color=f}))}else o.add(l.onColorFlushed(async h=>{await Qae(a,l,h,d,s),u=!0,d=atn(t,d,l)}));return o.add(l.onDidChangeColor(h=>{Qae(a,l,h,d,s)})),o.add(t.onDidChangeModelContent(h=>{u?u=!1:(r.hide(),t.focus())})),{hoverPart:s,colorPicker:c,disposables:o}}function atn(e,t,n){const i=[],r=n.presentation.textEdit??{range:t,text:n.presentation.label,forceMoveMarkers:!1};i.push(r),n.presentation.additionalTextEdits&&i.push(...n.presentation.additionalTextEdits);const o=Re.lift(r.range),s=e.getModel()._setTrackedRange(null,o,3);return e.executeEdits("colorpicker",i),e.pushUndoStop(),e.getModel()._getTrackedRange(s)??o}async function Qae(e,t,n,i,r){const o=await ttn(e,{range:i,color:{red:n.rgba.r/255,green:n.rgba.g/255,blue:n.rgba.b/255,alpha:n.rgba.a}},r.provider,no.None);t.colorPresentations=o||[]}var Yxe,Qxe,ltn,a8,ctn,l8,k$e=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js"(){fr(),Ho(),ql(),Nt(),Dn(),itn(),rtn(),uQn(),dQn(),Sw(),Ys(),Fn(),Yxe=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},Qxe=function(e,t){return function(n,i){t(n,i,e)}},ltn=class{constructor(e,t,n,i){this.owner=e,this.range=t,this.model=n,this.provider=i,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}},a8=class{constructor(t,n){this._editor=t,this._themeService=n,this.hoverOrdinal=2}computeSync(t,n){return[]}computeAsync(t,n,i){return Hy.fromPromise(this._computeAsync(t,n,i))}async _computeAsync(t,n,i){if(!this._editor.hasModel())return[];const r=vO.get(this._editor);if(!r)return[];for(const o of n){if(!r.isColorDecoration(o))continue;const s=r.getColorData(o.range.getStartPosition());if(s)return[await E0t(this,this._editor.getModel(),s.colorInfo,s.provider)]}return[]}renderHoverParts(t,n){const i=A0t(this,this._editor,this._themeService,n,t);if(!i)return new jL([]);this._colorPicker=i.colorPicker;const r={hoverPart:i.hoverPart,hoverElement:this._colorPicker.domNode,dispose(){i.disposables.dispose()}};return new jL([r])}handleResize(){this._colorPicker?.layout()}isColorPickerVisible(){return!!this._colorPicker}},a8=Yxe([Qxe(1,Ru)],a8),ctn=class{constructor(e,t,n,i){this.owner=e,this.range=t,this.model=n,this.provider=i}},l8=class{constructor(t,n){this._editor=t,this._themeService=n,this._color=null}async createColorHover(t,n,i){if(!this._editor.hasModel()||!vO.get(this._editor))return null;const o=await etn(i,this._editor.getModel(),no.None);let s=null,a=null;for(const d of o){const h=d.colorInfo;Re.containsRange(h.range,t.range)&&(s=h,a=d.provider)}const l=s??t,c=a??n,u=!!s;return{colorHover:await E0t(this,this._editor.getModel(),l,c),foundInEditor:u}}async updateEditorModel(t){if(!this._editor.hasModel())return;const n=t.model;let i=new Re(t.range.startLineNumber,t.range.startColumn,t.range.endLineNumber,t.range.endColumn);this._color&&(await Qae(this._editor.getModel(),n,this._color,i,t),i=atn(this._editor,i,n))}renderHoverParts(t,n){return A0t(this,this._editor,this._themeService,n,t)}set color(t){this._color=t}get color(){return this._color}},l8=Yxe([Qxe(1,Ru)],l8)}}),I$e,utn,dtn,htn,ftn,ptn,gtn,mtn,vtn,ytn,OY,btn,RY,_tn,L$e=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverActionIds.js"(){bn(),I$e="editor.action.showHover",utn="editor.action.showDefinitionPreviewHover",dtn="editor.action.scrollUpHover",htn="editor.action.scrollDownHover",ftn="editor.action.scrollLeftHover",ptn="editor.action.scrollRightHover",gtn="editor.action.pageUpHover",mtn="editor.action.pageDownHover",vtn="editor.action.goToTopHover",ytn="editor.action.goToBottomHover",OY="editor.action.increaseHoverVerbosityLevel",btn=R({key:"increaseHoverVerbosityLevel",comment:["Label for action that will increase the hover verbosity level."]},"Increase Hover Verbosity Level"),RY="editor.action.decreaseHoverVerbosityLevel",_tn=R({key:"decreaseHoverVerbosityLevel",comment:["Label for action that will decrease the hover verbosity level."]},"Decrease Hover Verbosity Level")}}),hQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.css"(){}}),N$e,P$e,M$e,O$e=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/controller/commandIds.js"(){N$e="editor.action.inlineSuggest.commit",P$e="editor.action.inlineSuggest.showPrevious",M$e="editor.action.inlineSuggest.showNext"}}),Ate,gy,Dte,Zae,D0t,T0t,jO,k0t,I0t,Tte,R$e=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js"(){var e;Fn(),B7(),Ege(),wd(),rr(),fr(),ia(),Nt(),xs(),Vv(),Xr(),Ra(),hQn(),Hi(),ra(),O$e(),bn(),jN(),Wge(),ha(),Ks(),er(),xg(),li(),tl(),_m(),X0(),Ate=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},gy=function(t,n){return function(i,r){n(i,r,t)}},Zae=class extends St{constructor(n,i,r){super(),this.editor=n,this.model=i,this.instantiationService=r,this.alwaysShowToolbar=Bs(this,this.editor.onDidChangeConfiguration,()=>this.editor.getOption(62).showToolbar==="always"),this.sessionPosition=void 0,this.position=Fi(this,o=>{const s=this.model.read(o)?.primaryGhostText.read(o);if(!this.alwaysShowToolbar.read(o)||!s||s.parts.length===0)return this.sessionPosition=void 0,null;const a=s.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==s.lineNumber&&(this.sessionPosition=void 0);const l=new mt(s.lineNumber,Math.min(a,this.sessionPosition?.column??Number.MAX_SAFE_INTEGER));return this.sessionPosition=l,l}),this._register(hm((o,s)=>{const a=this.model.read(o);if(!a||!this.alwaysShowToolbar.read(o))return;const l=FN((u,d)=>{const h=d.add(this.instantiationService.createInstance(jO,this.editor,!0,this.position,a.selectedInlineCompletionIndex,a.inlineCompletionsCount,a.activeCommands));return n.addContentWidget(h),d.add(zi(()=>n.removeContentWidget(h))),d.add(Tr(f=>{this.position.read(f)&&a.lastTriggerKind.read(f)!==nC.Explicit&&a.triggerExplicitly()})),h}),c=CY(this,(u,d)=>!!this.position.read(u)||!!d);s.add(Tr(u=>{c.read(u)&&l.read(u)}))}))}},Zae=Ate([gy(2,ji)],Zae),D0t=Xa("inline-suggestion-hints-next",An.chevronRight,R("parameterHintsNextIcon","Icon for show next parameter hint.")),T0t=Xa("inline-suggestion-hints-previous",An.chevronLeft,R("parameterHintsPreviousIcon","Icon for show previous parameter hint.")),jO=(e=class extends St{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(n,i,r){const o=new cm(n,i,r,!0,()=>this._commandService.executeCommand(n)),s=this.keybindingService.lookupKeybinding(n,this._contextKeyService);let a=i;return s&&(a=R({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",i,s.getLabel())),o.tooltip=a,o}constructor(n,i,r,o,s,a,l,c,u,d,h){super(),this.editor=n,this.withBorder=i,this._position=r,this._currentSuggestionIdx=o,this._suggestionCount=s,this._extraCommands=a,this._commandService=l,this.keybindingService=u,this._contextKeyService=d,this._menuService=h,this.id=`InlineSuggestionHintsContentWidget${Dte.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=Co("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[Co("div@toolBar")]),this.previousAction=this.createCommandAction(P$e,R("previous","Previous"),lr.asClassName(T0t)),this.availableSuggestionCountAction=new cm("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(M$e,R("next","Next"),lr.asClassName(D0t)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(Ti.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new Gs(()=>{this.availableSuggestionCountAction.label=""},100)),this.disableButtonsDebounced=this._register(new Gs(()=>{this.previousAction.enabled=this.nextAction.enabled=!1},100)),this.toolBar=this._register(c.createInstance(Tte,this.nodes.toolBar,Ti.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:f=>f.startsWith("primary")},actionViewItemProvider:(f,p)=>{if(f instanceof um)return c.createInstance(I0t,f,void 0);if(f===this.availableSuggestionCountAction){const g=new k0t(void 0,f,{label:!0,icon:!1});return g.setClass("availableSuggestionCount"),g}},telemetrySource:"InlineSuggestionToolbar"})),this.toolBar.setPrependedPrimaryActions([this.previousAction,this.availableSuggestionCountAction,this.nextAction]),this._register(this.toolBar.onDidChangeDropdownVisibility(f=>{Dte._dropDownVisible=f})),this._register(Tr(f=>{this._position.read(f),this.editor.layoutContentWidget(this)})),this._register(Tr(f=>{const p=this._suggestionCount.read(f),g=this._currentSuggestionIdx.read(f);p!==void 0?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${g+1}/${p}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),p!==void 0&&p>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()})),this._register(Tr(f=>{const g=this._extraCommands.read(f).map(m=>({class:void 0,id:m.id,enabled:!0,tooltip:m.tooltip||"",label:m.title,run:v=>this._commandService.executeCommand(m.id)}));for(const[m,v]of this.inlineCompletionsActionsMenus.getActions())for(const y of v)y instanceof um&&g.push(y);g.length>0&&g.unshift(new zd),this.toolBar.setAdditionalSecondaryActions(g)}))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}},Dte=e,e._dropDownVisible=!1,e.id=0,e),jO=Dte=Ate([gy(6,Oa),gy(7,ji),gy(8,Cs),gy(9,ur),gy(10,Pv)],jO),k0t=class extends o2{constructor(){super(...arguments),this._className=void 0}setClass(t){this._className=t}render(t){super.render(t),this._className&&t.classList.add(this._className)}updateTooltip(){}},I0t=class extends UA{updateLabel(){const t=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!t)return super.updateLabel();if(this.label){const n=Co("div.keybinding").root;this._register(new kY(n,om,{disableTitle:!0,...fUe})).set(t),this.label.textContent=this._action.label,this.label.appendChild(n),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}updateTooltip(){}},Tte=class extends f6{constructor(n,i,r,o,s,a,l,c,u){super(n,{resetMenu:i,...r},o,s,a,l,c,u),this.menuId=i,this.options2=r,this.menuService=o,this.contextKeyService=s,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange(()=>this.updateToolbar())),this.updateToolbar()}updateToolbar(){const n=[],i=[];yge(this.menu,this.options2?.menuOptions,{primary:n,secondary:i},this.options2?.toolbarOptions?.primaryGroup,this.options2?.toolbarOptions?.shouldInlineSubmenu,this.options2?.toolbarOptions?.useSeparatorsInPrimaryActions),i.push(...this.additionalActions),n.unshift(...this.prependedPrimaryActions),this.setActions(n,i)}setPrependedPrimaryActions(n){vl(this.prependedPrimaryActions,n,(i,r)=>i===r)||(this.prependedPrimaryActions=n,this.updateToolbar())}setAdditionalSecondaryActions(n){vl(this.additionalActions,n,(i,r)=>i===r)||(this.additionalActions=n,this.updateToolbar())}},Tte=Ate([gy(3,Pv),gy(4,ur),gy(5,dm),gy(6,Cs),gy(7,Oa),gy(8,uf)],Tte)}});function eme(e,t,n){const i=_c(e);return!(t<i.left||t>i.left+i.width||n<i.top||n>i.top+i.height)}var tme=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverUtils.js"(){Fn()}}),L0t,F$e,wtn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverOperation.js"(){fr(),Vi(),Un(),Nt(),L0t=class{constructor(e,t,n){this.value=e,this.isComplete=t,this.hasLoadingMessage=n}},F$e=class extends St{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new bt),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new Gs(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new Gs(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new Gs(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(60).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=p9n(e=>this._computer.computeAsync(e)),(async()=>{try{for await(const e of this._asyncIterable)e&&(this._result.push(e),this._fireResult());this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(e){Mr(e)}})()):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;const e=this._state===0,t=this._state===4;this._onResult.fire(new L0t(this._result.slice(0),e,t))}start(e){if(e===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}}}),nme,B$e=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/resizable/resizable.js"(){Fn(),EY(),Un(),Nt(),nme=class{constructor(){this._onDidWillResize=new bt,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new bt,this.onDidResize=this._onDidResize.event,this._sashListener=new Jt,this._size=new qs(0,0),this._minSize=new qs(0,0),this._maxSize=new qs(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new mx(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new mx(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new mx(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:pde.North}),this._southSash=new mx(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:pde.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let e,t=0,n=0;this._sashListener.add(On.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)(()=>{e===void 0&&(this._onDidWillResize.fire(),e=this._size,t=0,n=0)})),this._sashListener.add(On.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)(()=>{e!==void 0&&(e=void 0,t=0,n=0,this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(this._eastSash.onDidChange(i=>{e&&(n=i.currentX-i.startX,this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))})),this._sashListener.add(this._westSash.onDidChange(i=>{e&&(n=-(i.currentX-i.startX),this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))})),this._sashListener.add(this._northSash.onDidChange(i=>{e&&(t=-(i.currentY-i.startY),this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))})),this._sashListener.add(this._southSash.onDidChange(i=>{e&&(t=i.currentY-i.startY,this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))})),this._sashListener.add(On.any(this._eastSash.onDidReset,this._westSash.onDidReset)(i=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(On.any(this._northSash.onDidReset,this._southSash.onDidReset)(i=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,n,i){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=n?3:0,this._westSash.state=i?3:0}layout(e=this.size.height,t=this.size.width){const{height:n,width:i}=this._minSize,{height:r,width:o}=this._maxSize;e=Math.max(n,Math.min(r,e)),t=Math.max(i,Math.min(o,t));const s=new qs(t,e);qs.equals(s,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=s,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}}}),N0t,P0t,Ctn,fQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/resizableContentWidget.js"(){B$e(),Nt(),Hi(),Fn(),N0t=30,P0t=24,Ctn=class extends St{constructor(e,t=new qs(10,10)){super(),this._editor=e,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new nme),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=qs.lift(t),this._resizableNode.layout(t.height,t.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize(n=>{this._resize(new qs(n.dimension.width,n.dimension.height)),n.done&&(this._isResizing=!1)})),this._register(this._resizableNode.onDidWillResize(()=>{this._isResizing=!0}))}get isResizing(){return this._isResizing}getDomNode(){return this._resizableNode.domNode}getPosition(){return this._contentPosition}get position(){return this._contentPosition?.position?mt.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(e){const t=this._editor.getDomNode(),n=this._editor.getScrolledVisiblePosition(e);return!t||!n?void 0:_c(t).top+n.top-N0t}_availableVerticalSpaceBelow(e){const t=this._editor.getDomNode(),n=this._editor.getScrolledVisiblePosition(e);if(!t||!n)return;const i=_c(t),r=LL(t.ownerDocument.body),o=i.top+n.top+n.height;return r.height-o-P0t}_findPositionPreference(e,t){const n=Math.min(this._availableVerticalSpaceBelow(t)??1/0,e),i=Math.min(this._availableVerticalSpaceAbove(t)??1/0,e),r=Math.min(Math.max(i,n),e),o=Math.min(e,r);let s;return this._editor.getOption(60).above?s=o<=i?1:2:s=o<=n?2:1,s===1?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),s}_resize(e){this._resizableNode.layout(e.height,e.width)}}}});function M0t(e,t,n,i,r,o){const s=n+r/2,a=i+o/2,l=Math.max(Math.abs(e-s)-r/2,0),c=Math.max(Math.abs(t-a)-o/2,0);return Math.sqrt(l*l+c*c)}var O0t,FV,IS,Zxe,R0t,Xae,pQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHoverWidget.js"(){var e;Fn(),tl(),fQn(),er(),sa(),Cm(),ls(),dY(),Un(),O0t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},FV=function(t,n){return function(i,r){n(i,r,t)}},Zxe=30,R0t=6,Xae=(e=class extends Ctn{get isVisibleFromKeyboard(){return this._renderedHover?.source===1}get isVisible(){return this._hoverVisibleKey.get()??!1}get isFocused(){return this._hoverFocusedKey.get()??!1}constructor(n,i,r,o,s){const a=n.getOption(67)+8,l=150,c=new qs(l,a);super(n,c),this._configurationService=r,this._accessibilityService=o,this._keybindingService=s,this._hover=this._register(new age),this._onDidResize=this._register(new bt),this.onDidResize=this._onDidResize.event,this._minimumSize=c,this._hoverVisibleKey=Ge.hoverVisible.bindTo(i),this._hoverFocusedKey=Ge.hoverFocused.bindTo(i),hn(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex="50",this._register(this._editor.onDidLayoutChange(()=>{this.isVisible&&this._updateMaxDimensions()})),this._register(this._editor.onDidChangeConfiguration(d=>{d.hasChanged(50)&&this._updateFont()}));const u=this._register(yC(this._resizableNode.domNode));this._register(u.onDidFocus(()=>{this._hoverFocusedKey.set(!0)})),this._register(u.onDidBlur(()=>{this._hoverFocusedKey.set(!1)})),this._setRenderedHover(void 0),this._editor.addContentWidget(this)}dispose(){super.dispose(),this._renderedHover?.dispose(),this._editor.removeContentWidget(this)}getId(){return IS.ID}static _applyDimensions(n,i,r){const o=typeof i=="number"?`${i}px`:i,s=typeof r=="number"?`${r}px`:r;n.style.width=o,n.style.height=s}_setContentsDomNodeDimensions(n,i){const r=this._hover.contentsDomNode;return IS._applyDimensions(r,n,i)}_setContainerDomNodeDimensions(n,i){const r=this._hover.containerDomNode;return IS._applyDimensions(r,n,i)}_setHoverWidgetDimensions(n,i){this._setContentsDomNodeDimensions(n,i),this._setContainerDomNodeDimensions(n,i),this._layoutContentWidget()}static _applyMaxDimensions(n,i,r){const o=typeof i=="number"?`${i}px`:i,s=typeof r=="number"?`${r}px`:r;n.style.maxWidth=o,n.style.maxHeight=s}_setHoverWidgetMaxDimensions(n,i){IS._applyMaxDimensions(this._hover.contentsDomNode,n,i),IS._applyMaxDimensions(this._hover.containerDomNode,n,i),this._hover.containerDomNode.style.setProperty("--vscode-hover-maxWidth",typeof n=="number"?`${n}px`:n),this._layoutContentWidget()}_setAdjustedHoverWidgetDimensions(n){this._setHoverWidgetMaxDimensions("none","none");const i=n.width,r=n.height;this._setHoverWidgetDimensions(i,r)}_updateResizableNodeMaxDimensions(){const n=this._findMaximumRenderingWidth()??1/0,i=this._findMaximumRenderingHeight()??1/0;this._resizableNode.maxSize=new qs(n,i),this._setHoverWidgetMaxDimensions(n,i)}_resize(n){IS._lastDimensions=new qs(n.width,n.height),this._setAdjustedHoverWidgetDimensions(n),this._resizableNode.layout(n.height,n.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),this._onDidResize.fire()}_findAvailableSpaceVertically(){const n=this._renderedHover?.showAtPosition;if(n)return this._positionPreference===1?this._availableVerticalSpaceAbove(n):this._availableVerticalSpaceBelow(n)}_findMaximumRenderingHeight(){const n=this._findAvailableSpaceVertically();if(!n)return;let i=R0t;return Array.from(this._hover.contentsDomNode.children).forEach(r=>{i+=r.clientHeight}),Math.min(n,i)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty("--vscode-hover-whiteSpace","nowrap"),this._hover.containerDomNode.style.setProperty("--vscode-hover-sourceWhiteSpace","nowrap");const n=Array.from(this._hover.contentsDomNode.children).some(i=>i.scrollWidth>i.clientWidth);return this._hover.containerDomNode.style.removeProperty("--vscode-hover-whiteSpace"),this._hover.containerDomNode.style.removeProperty("--vscode-hover-sourceWhiteSpace"),n}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const n=this._isHoverTextOverflowing(),i=typeof this._contentWidth>"u"?0:this._contentWidth-2;return n||this._hover.containerDomNode.clientWidth<i?LL(this._hover.containerDomNode.ownerDocument.body).width-14:this._hover.containerDomNode.clientWidth+2}isMouseGettingCloser(n,i){if(!this._renderedHover)return!1;if(this._renderedHover.initialMousePosX===void 0||this._renderedHover.initialMousePosY===void 0)return this._renderedHover.initialMousePosX=n,this._renderedHover.initialMousePosY=i,!1;const r=_c(this.getDomNode());this._renderedHover.closestMouseDistance===void 0&&(this._renderedHover.closestMouseDistance=M0t(this._renderedHover.initialMousePosX,this._renderedHover.initialMousePosY,r.left,r.top,r.width,r.height));const o=M0t(n,i,r.left,r.top,r.width,r.height);return o>this._renderedHover.closestMouseDistance+4?!1:(this._renderedHover.closestMouseDistance=Math.min(this._renderedHover.closestMouseDistance,o),!0)}_setRenderedHover(n){this._renderedHover?.dispose(),this._renderedHover=n,this._hoverVisibleKey.set(!!n),this._hover.containerDomNode.classList.toggle("hidden",!n)}_updateFont(){const{fontSize:n,lineHeight:i}=this._editor.getOption(50),r=this._hover.contentsDomNode;r.style.fontSize=`${n}px`,r.style.lineHeight=`${i/n}`,Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(s=>this._editor.applyFontInfo(s))}_updateContent(n){const i=this._hover.contentsDomNode;i.style.paddingBottom="",i.textContent="",i.appendChild(n)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const n=Math.max(this._editor.getLayoutInfo().height/4,250,IS._lastDimensions.height),i=Math.max(this._editor.getLayoutInfo().width*.66,500,IS._lastDimensions.width);this._setHoverWidgetMaxDimensions(i,n)}_render(n){this._setRenderedHover(n),this._updateFont(),this._updateContent(n.domNode),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){return this._renderedHover?{position:this._renderedHover.showAtPosition,secondaryPosition:this._renderedHover.showAtSecondaryPosition,positionAffinity:this._renderedHover.shouldAppearBeforeContent?3:void 0,preference:[this._positionPreference??1]}:null}show(n){if(!this._editor||!this._editor.hasModel())return;this._render(n);const i=aD(this._hover.containerDomNode),r=n.showAtPosition;this._positionPreference=this._findPositionPreference(i,r)??1,this.onContentsChanged(),n.shouldFocus&&this._hover.containerDomNode.focus(),this._onDidResize.fire();const s=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&k$t(this._configurationService.getValue("accessibility.verbosity.hover")===!0&&this._accessibilityService.isScreenReaderOptimized(),this._keybindingService.lookupKeybinding("editor.action.accessibleView")?.getAriaLabel()??"");s&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+", "+s)}hide(){if(!this._renderedHover)return;const n=this._renderedHover.shouldFocus||this._hoverFocusedKey.get();this._setRenderedHover(void 0),this._resizableNode.maxSize=new qs(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),n&&this._editor.focus()}_removeConstraintsRenderNormally(){const n=this._editor.getLayoutInfo();this._resizableNode.layout(n.height,n.width),this._setHoverWidgetDimensions("auto","auto")}setMinimumDimensions(n){this._minimumSize=new qs(Math.max(this._minimumSize.width,n.width),Math.max(this._minimumSize.height,n.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const n=typeof this._contentWidth>"u"?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new qs(n,this._minimumSize.height)}onContentsChanged(){this._removeConstraintsRenderNormally();const n=this._hover.containerDomNode;let i=aD(n),r=Gm(n);if(this._resizableNode.layout(i,r),this._setHoverWidgetDimensions(r,i),i=aD(n),r=Gm(n),this._contentWidth=r,this._updateMinimumWidth(),this._resizableNode.layout(i,r),this._renderedHover?.showAtPosition){const o=aD(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(o,this._renderedHover.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const n=this._hover.scrollbar.getScrollPosition().scrollTop,i=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:n-i.lineHeight})}scrollDown(){const n=this._hover.scrollbar.getScrollPosition().scrollTop,i=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:n+i.lineHeight})}scrollLeft(){const n=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:n-Zxe})}scrollRight(){const n=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:n+Zxe})}pageUp(){const n=this._hover.scrollbar.getScrollPosition().scrollTop,i=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:n-i})}pageDown(){const n=this._hover.scrollbar.getScrollPosition().scrollTop,i=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:n+i})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}},IS=e,e.ID="editor.contrib.resizableContentHoverWidget",e._lastDimensions=new qs(0,0),e),Xae=IS=O0t([FV(1,ur),FV(2,co),FV(3,pm),FV(4,Cs)],Xae)}}),Stn,gQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHoverComputer.js"(){rr(),fr(),Stn=class G6e{get anchor(){return this._anchor}set anchor(t){this._anchor=t}get shouldFocus(){return this._shouldFocus}set shouldFocus(t){this._shouldFocus=t}get source(){return this._source}set source(t){this._source=t}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(t){this._insistOnKeepingHoverVisible=t}constructor(t,n){this._editor=t,this._participants=n,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(t,n){if(n.type!==1&&!n.supportsMarkerHover)return[];const i=t.getModel(),r=n.range.startLineNumber;if(r>i.getLineCount())return[];const o=i.getLineMaxColumn(r);return t.getLineDecorations(r).filter(s=>{if(s.options.isWholeLine)return!0;const a=s.range.startLineNumber===r?s.range.startColumn:1,l=s.range.endLineNumber===r?s.range.endColumn:o;if(s.options.showIfCollapsed){if(a>n.range.startColumn+1||n.range.endColumn-1>l)return!1}else if(a>n.range.startColumn||n.range.endColumn>l)return!1;return!0})}computeAsync(t){const n=this._anchor;if(!this._editor.hasModel()||!n)return Hy.EMPTY;const i=G6e._getLineDecorations(this._editor,n);return Hy.merge(this._participants.map(r=>r.computeAsync?r.computeAsync(n,i,t):Hy.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const t=G6e._getLineDecorations(this._editor,this._anchor);let n=[];for(const i of this._participants)n=n.concat(i.computeSync(this._anchor,t));return ew(n)}}}}),K6e,F0t,mQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHoverTypes.js"(){K6e=class{constructor(e,t,n){this.anchor=e,this.hoverParts=t,this.isComplete=n}filter(e){const t=this.hoverParts.filter(n=>n.isValidForHoverAnchor(e));return t.length===this.hoverParts.length?this:new F0t(this,this.anchor,t,this.isComplete)}},F0t=class extends K6e{constructor(e,t,n,i){super(t,n,i),this.original=e}filter(e){return this.original.filter(e)}}}}),B0t,j0t,Xxe,S$,xtn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHoverStatusBar.js"(){Fn(),dY(),Nt(),tl(),B0t=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},j0t=function(e,t){return function(n,i){t(n,i,e)}},Xxe=In,S$=class extends St{get hasContent(){return this._hasContent}constructor(t){super(),this._keybindingService=t,this.actions=[],this._hasContent=!1,this.hoverElement=Xxe("div.hover-row.status-bar"),this.hoverElement.tabIndex=0,this.actionsElement=hn(this.hoverElement,Xxe("div.actions"))}addAction(t){const n=this._keybindingService.lookupKeybinding(t.commandId),i=n?n.getLabel():null;this._hasContent=!0;const r=this._register(YHe.render(this.actionsElement,t,i));return this.actions.push(r),r}append(t){const n=hn(this.actionsElement,t);return this._hasContent=!0,n}},S$=B0t([j0t(0,Cs)],S$)}});async function vQn(e,t,n,i,r){const o=await Promise.resolve(e.provideHover(n,i,r)).catch(Sc);if(!(!o||!yQn(o)))return new Etn(e,o,t)}function j$e(e,t,n,i,r=!1){const s=e.ordered(t,r).map((a,l)=>vQn(a,l,t,n,i));return Hy.fromPromises(s).coalesce()}function z0t(e,t,n,i,r=!1){return j$e(e,t,n,i,r).map(o=>o.hover).toPromise()}function yQn(e){const t=typeof e.range<"u",n=typeof e.contents<"u"&&e.contents&&e.contents.length>0;return t&&n}var Etn,Atn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/getHover.js"(){fr(),Ho(),Vi(),mr(),Eo(),Etn=class{constructor(e,t,n){this.provider=e,this.hover=t,this.ordinal=n}},Xg("_executeHoverProvider",(e,t,n)=>{const i=e.get(gi);return z0t(i.hoverProvider,t,n,no.None)}),Xg("_executeHoverProvider_recursive",(e,t,n)=>{const i=e.get(gi);return z0t(i.hoverProvider,t,n,no.None,!0)})}});function bQn(e,t,n,i,r){t.sort(ug(s=>s.ordinal,Yy));const o=[];for(const s of t)o.push(Dtn(n,s,i,r,e.onContentsChanged));return new jL(o)}function Dtn(e,t,n,i,r){const o=new Jt,s=zO("div.hover-row"),a=zO("div.hover-row-contents");s.appendChild(a);const l=t.contents;for(const u of l){if(o9(u))continue;const d=zO("div.markdown-hover"),h=hn(d,zO("div.hover-contents")),f=o.add(new Lx({editor:e},n,i));o.add(f.onDidRenderAsync(()=>{h.className="hover-contents code-hover-contents",r()}));const p=o.add(f.render(u));h.appendChild(p.element),a.appendChild(d)}return{hoverPart:t,hoverElement:s,dispose(){o.dispose()}}}function _Qn(e,t){switch(t){case qm.Increase:{const n=e.lookupKeybinding(OY);return n?R("increaseVerbosityWithKb","Increase Hover Verbosity ({0})",n.getLabel()):R("increaseVerbosity","Increase Hover Verbosity")}case qm.Decrease:{const n=e.lookupKeybinding(RY);return n?R("decreaseVerbosityWithKb","Decrease Hover Verbosity ({0})",n.getLabel()):R("decreaseVerbosity","Decrease Hover Verbosity")}}}var V0t,kk,zO,H0t,W0t,Ty,Jxe,c8,BV,U0t,ime=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js"(){Fn(),rr(),Ho(),Dg(),Nt(),RN(),L$e(),Dn(),Kd(),Sw(),bn(),sa(),Ag(),Eo(),ra(),X0(),ia(),Ra(),Vi(),tl(),dY(),PN(),fr(),Atn(),Ks(),V0t=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},kk=function(e,t){return function(n,i){t(n,i,e)}},zO=In,H0t=Xa("hover-increase-verbosity",An.add,R("increaseHoverVerbosity","Icon for increaseing hover verbosity.")),W0t=Xa("hover-decrease-verbosity",An.remove,R("decreaseHoverVerbosity","Icon for decreasing hover verbosity.")),Ty=class{constructor(e,t,n,i,r,o=void 0){this.owner=e,this.range=t,this.contents=n,this.isBeforeContent=i,this.ordinal=r,this.source=o}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}},Jxe=class{constructor(e,t,n){this.hover=e,this.hoverProvider=t,this.hoverPosition=n}supportsVerbosityAction(e){switch(e){case qm.Increase:return this.hover.canIncreaseVerbosity??!1;case qm.Decrease:return this.hover.canDecreaseVerbosity??!1}}},c8=class{constructor(t,n,i,r,o,s,a,l){this._editor=t,this._languageService=n,this._openerService=i,this._configurationService=r,this._languageFeaturesService=o,this._keybindingService=s,this._hoverService=a,this._commandService=l,this.hoverOrdinal=3}createLoadingMessage(t){return new Ty(this,t.range,[new nf().appendText(R("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(t,n){if(!this._editor.hasModel()||t.type!==1)return[];const i=this._editor.getModel(),r=t.range.startLineNumber,o=i.getLineMaxColumn(r),s=[];let a=1e3;const l=i.getLineLength(r),c=i.getLanguageIdAtPosition(t.range.startLineNumber,t.range.startColumn),u=this._editor.getOption(118),d=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:c});let h=!1;u>=0&&l>u&&t.range.startColumn>=u&&(h=!0,s.push(new Ty(this,t.range,[{value:R("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,a++))),!h&&typeof d=="number"&&l>=d&&s.push(new Ty(this,t.range,[{value:R("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,a++));let f=!1;for(const p of n){const g=p.range.startLineNumber===r?p.range.startColumn:1,m=p.range.endLineNumber===r?p.range.endColumn:o,v=p.options.hoverMessage;if(!v||o9(v))continue;p.options.beforeContentClassName&&(f=!0);const y=new Re(t.range.startLineNumber,g,t.range.startLineNumber,m);s.push(new Ty(this,y,yHe(v),f,a++))}return s}computeAsync(t,n,i){if(!this._editor.hasModel()||t.type!==1)return Hy.EMPTY;const r=this._editor.getModel(),o=this._languageFeaturesService.hoverProvider;return o.has(r)?this._getMarkdownHovers(o,r,t,i):Hy.EMPTY}_getMarkdownHovers(t,n,i,r){const o=i.range.getStartPosition();return j$e(t,n,o,r).filter(l=>!o9(l.hover.contents)).map(l=>{const c=l.hover.range?Re.lift(l.hover.range):i.range,u=new Jxe(l.hover,l.provider,o);return new Ty(this,c,l.hover.contents,!1,l.ordinal,u)})}renderHoverParts(t,n){return this._renderedHoverParts=new U0t(n,t.fragment,this,this._editor,this._languageService,this._openerService,this._commandService,this._keybindingService,this._hoverService,this._configurationService,t.onContentsChanged),this._renderedHoverParts}updateMarkdownHoverVerbosityLevel(t,n,i){return Promise.resolve(this._renderedHoverParts?.updateMarkdownHoverPartVerbosityLevel(t,n,i))}},c8=V0t([kk(1,al),kk(2,Eg),kk(3,co),kk(4,gi),kk(5,Cs),kk(6,SC),kk(7,Oa)],c8),BV=class{constructor(e,t,n){this.hoverPart=e,this.hoverElement=t,this.disposables=n}dispose(){this.disposables.dispose()}},U0t=class{constructor(e,t,n,i,r,o,s,a,l,c,u){this._hoverParticipant=n,this._editor=i,this._languageService=r,this._openerService=o,this._commandService=s,this._keybindingService=a,this._hoverService=l,this._configurationService=c,this._onFinishedRendering=u,this._ongoingHoverOperations=new Map,this._disposables=new Jt,this.renderedHoverParts=this._renderHoverParts(e,t,this._onFinishedRendering),this._disposables.add(zi(()=>{this.renderedHoverParts.forEach(d=>{d.dispose()}),this._ongoingHoverOperations.forEach(d=>{d.tokenSource.dispose(!0)})}))}_renderHoverParts(e,t,n){return e.sort(ug(i=>i.ordinal,Yy)),e.map(i=>{const r=this._renderHoverPart(i,n);return t.appendChild(r.hoverElement),r})}_renderHoverPart(e,t){const n=this._renderMarkdownHover(e,t),i=n.hoverElement,r=e.source,o=new Jt;if(o.add(n),!r)return new BV(e,i,o);const s=r.supportsVerbosityAction(qm.Increase),a=r.supportsVerbosityAction(qm.Decrease);if(!s&&!a)return new BV(e,i,o);const l=zO("div.verbosity-actions");return i.prepend(l),o.add(this._renderHoverExpansionAction(l,qm.Increase,s)),o.add(this._renderHoverExpansionAction(l,qm.Decrease,a)),new BV(e,i,o)}_renderMarkdownHover(e,t){return Dtn(this._editor,e,this._languageService,this._openerService,t)}_renderHoverExpansionAction(e,t,n){const i=new Jt,r=t===qm.Increase,o=hn(e,zO(lr.asCSSSelector(r?H0t:W0t)));o.tabIndex=0;const s=new fR("mouse",!1,{target:e,position:{hoverPosition:0}},this._configurationService,this._hoverService);if(i.add(this._hoverService.setupManagedHover(s,o,_Qn(this._keybindingService,t))),!n)return o.classList.add("disabled"),i;o.classList.add("enabled");const a=()=>this._commandService.executeCommand(t===qm.Increase?OY:RY);return i.add(new c4e(o,a)),i.add(new u4e(o,a,[3,10])),i}async updateMarkdownHoverPartVerbosityLevel(e,t,n=!0){const i=this._editor.getModel();if(!i)return;const r=this._getRenderedHoverPartAtIndex(t),o=r?.hoverPart.source;if(!r||!o?.supportsVerbosityAction(e))return;const s=await this._fetchHover(o,i,e);if(!s)return;const a=new Jxe(s,o.hoverProvider,o.hoverPosition),l=r.hoverPart,c=new Ty(this._hoverParticipant,l.range,s.contents,l.isBeforeContent,l.ordinal,a),u=this._renderHoverPart(c,this._onFinishedRendering);return this._replaceRenderedHoverPartAtIndex(t,u,c),n&&this._focusOnHoverPartWithIndex(t),{hoverPart:c,hoverElement:u.hoverElement}}async _fetchHover(e,t,n){let i=n===qm.Increase?1:-1;const r=e.hoverProvider,o=this._ongoingHoverOperations.get(r);o&&(o.tokenSource.cancel(),i+=o.verbosityDelta);const s=new bl;this._ongoingHoverOperations.set(r,{verbosityDelta:i,tokenSource:s});const a={verbosityRequest:{verbosityDelta:i,previousHover:e.hover}};let l;try{l=await Promise.resolve(r.provideHover(t,e.hoverPosition,s.token,a))}catch(c){Sc(c)}return s.dispose(),this._ongoingHoverOperations.delete(r),l}_replaceRenderedHoverPartAtIndex(e,t,n){if(e>=this.renderedHoverParts.length||e<0)return;const i=this.renderedHoverParts[e],r=i.hoverElement,o=t.hoverElement,s=Array.from(o.children);r.replaceChildren(...s);const a=new BV(n,r,t.disposables);r.focus(),i.dispose(),this.renderedHoverParts[e]=a}_focusOnHoverPartWithIndex(e){this.renderedHoverParts[e].hoverElement.focus()}_getRenderedHoverPartAtIndex(e){return this.renderedHoverParts[e]}dispose(){this._disposables.dispose()}}}});function eEe(e,t){return!!e[t]}function $0t(e){return e==="altKey"?xo?new CW(57,"metaKey",6,"altKey"):new CW(5,"ctrlKey",6,"altKey"):xo?new CW(6,"altKey",57,"metaKey"):new CW(6,"altKey",5,"ctrlKey")}var kte,tEe,CW,FY,rme=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js"(){Un(),Nt(),Xr(),kte=class{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=eEe(e.event,t.triggerModifier),this.hasSideBySideModifier=eEe(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}},tEe=class{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=eEe(e,t.triggerModifier)}},CW=class{constructor(e,t,n,i){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=n,this.triggerSideBySideModifier=i}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}},FY=class extends St{constructor(e,t){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new bt),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new bt),this.onExecute=this._onExecute.event,this._onCancel=this._register(new bt),this.onCancel=this._onCancel.event,this._editor=e,this._extractLineNumberFromMouseEvent=t?.extractLineNumberFromMouseEvent??(n=>n.target.position?n.target.position.lineNumber:0),this._opts=$0t(this._editor.getOption(78)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(n=>{if(n.hasChanged(78)){const i=$0t(this._editor.getOption(78));if(this._opts.equals(i))return;this._opts=i,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(n=>this._onEditorMouseMove(new kte(n,this._opts)))),this._register(this._editor.onMouseDown(n=>this._onEditorMouseDown(new kte(n,this._opts)))),this._register(this._editor.onMouseUp(n=>this._onEditorMouseUp(new kte(n,this._opts)))),this._register(this._editor.onKeyDown(n=>this._onEditorKeyDown(new tEe(n,this._opts)))),this._register(this._editor.onKeyUp(n=>this._onEditorKeyUp(new tEe(n,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(n=>this._onDidChangeCursorSelection(n))),this._register(this._editor.onDidChangeModel(n=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(n=>{(n.scrollTopChanged||n.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=this._extractLineNumberFromMouseEvent(e)}_onEditorMouseUp(e){const t=this._extractLineNumberFromMouseEvent(e);this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}}});function wQn(e){return Ui.from({scheme:Pr.command,path:e.id,query:e.arguments&&encodeURIComponent(JSON.stringify(e.arguments))}).toString()}var Y6e,q0t,Q6e,Ttn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHints.js"(){var e;Vi(),Nt(),Hi(),Dn(),Gd(),ss(),Y6e=class{constructor(t,n){this.range=t,this.direction=n}},q0t=class ktn{constructor(n,i,r){this.hint=n,this.anchor=i,this.provider=r,this._isResolved=!1}with(n){const i=new ktn(this.hint,n.anchor,this.provider);return i._isResolved=this._isResolved,i._currentResolve=this._currentResolve,i}async resolve(n){if(typeof this.provider.resolveInlayHint=="function"){if(this._currentResolve)return await this._currentResolve,n.isCancellationRequested?void 0:this.resolve(n);this._isResolved||(this._currentResolve=this._doResolve(n).finally(()=>this._currentResolve=void 0)),await this._currentResolve}}async _doResolve(n){try{const i=await Promise.resolve(this.provider.resolveInlayHint(this.hint,n));this.hint.tooltip=i?.tooltip??this.hint.tooltip,this.hint.label=i?.label??this.hint.label,this.hint.textEdits=i?.textEdits??this.hint.textEdits,this._isResolved=!0}catch(i){Sc(i),this._isResolved=!1}}},Q6e=(e=class{static async create(n,i,r,o){const s=[],a=n.ordered(i).reverse().map(l=>r.map(async c=>{try{const u=await l.provideInlayHints(i,c,o);(u?.hints.length||l.onDidChangeInlayHints)&&s.push([u??e._emptyInlayHintList,l])}catch(u){Sc(u)}}));if(await Promise.all(a.flat()),o.isCancellationRequested||i.isDisposed())throw new rb;return new e(r,s,i)}constructor(n,i,r){this._disposables=new Jt,this.ranges=n,this.provider=new Set;const o=[];for(const[s,a]of i){this._disposables.add(s),this.provider.add(a);for(const l of s.hints){const c=r.validatePosition(l.position);let u="before";const d=e._getRangeAtPosition(r,c);let h;d.getStartPosition().isBefore(c)?(h=Re.fromPositions(d.getStartPosition(),c),u="after"):(h=Re.fromPositions(c,d.getEndPosition()),u="before"),o.push(new q0t(l,new Y6e(h,u),a))}}this.items=o.sort((s,a)=>mt.compare(s.hint.position,a.hint.position))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(n,i){const r=i.lineNumber,o=n.getWordAtPosition(i);if(o)return new Re(r,o.startColumn,r,o.endColumn);n.tokenization.tokenizeIfCheap(r);const s=n.tokenization.getLineTokens(r),a=i.column-1,l=s.findTokenIndexAtOffset(a);let c=s.getStartOffset(l),u=s.getEndOffset(l);return u-c===1&&(c===a&&l>1?(c=s.getStartOffset(l-1),u=s.getEndOffset(l-1)):u===a&&l<s.getCount()-1&&(c=s.getStartOffset(l+1),u=s.getEndOffset(l+1))),new Re(r,c+1,r,u+1)}},e._emptyInlayHintList=Object.freeze({dispose(){},hints:[]}),e)}}),G0t,LS,Xy,UN=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.js"(){bm(),Ec(),Rge(),lu(),Eo(),Cm(),Ks(),er(),li(),yf(),Ys(),G0t=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},LS=function(e,t){return function(n,i){t(n,i,e)}},Xy=class extends i8{constructor(t,n,i,r,o,s,a,l,c,u,d,h,f){super(t,{...r.getRawOptions(),overflowWidgetsDomNode:r.getOverflowWidgetsDomNode()},i,o,s,a,l,c,u,d,h,f),this._parentEditor=r,this._overwriteOptions=n,super.updateOptions(this._overwriteOptions),this._register(r.onDidChangeConfiguration(p=>this._onParentConfigurationChanged(p)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(t){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(t){$pe(this._overwriteOptions,t,!0),super.updateOptions(this._overwriteOptions)}},Xy=G0t([LS(4,ji),LS(5,Jo),LS(6,Oa),LS(7,ur),LS(8,Ru),LS(9,Cc),LS(10,pm),LS(11,yl),LS(12,gi)],Xy)}}),CQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/peekView/browser/media/peekViewWidget.css"(){}}),SQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/zoneWidget/browser/zoneWidget.css"(){}}),nEe,K0t,Y0t,Q0t,Z0t,X0t,Itn,xQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/zoneWidget/browser/zoneWidget.js"(){var e;Fn(),EY(),ql(),uge(),Nt(),bm(),SQn(),Dn(),Ac(),nEe=new rn(new $o(0,122,204)),K0t={showArrow:!0,showFrame:!0,className:"",frameColor:nEe,arrowColor:nEe,keepEditorSelection:!1},Y0t="vs.editor.contrib.zoneWidget",Q0t=class{constructor(t,n,i,r,o,s,a,l){this.id="",this.domNode=t,this.afterLineNumber=n,this.afterColumn=i,this.heightInLines=r,this.showInHiddenAreas=a,this.ordinal=l,this._onDomNodeTop=o,this._onComputedHeight=s}onDomNodeTop(t){this._onDomNodeTop(t)}onComputedHeight(t){this._onComputedHeight(t)}},Z0t=class{constructor(t,n){this._id=t,this._domNode=n}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}},X0t=(e=class{constructor(n){this._editor=n,this._ruleName=e._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),ZFe(this._ruleName)}set color(n){this._color!==n&&(this._color=n,this._updateStyle())}set height(n){this._height!==n&&(this._height=n,this._updateStyle())}_updateStyle(){ZFe(this._ruleName),xue(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px !important; margin-left: -${this._height}px; `)}show(n){n.column===1&&(n={lineNumber:n.lineNumber,column:2}),this._decorations.set([{range:Re.fromPositions(n),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}},e._IdGenerator=new Gue(".arrow-decoration-"),e),Itn=class{constructor(t,n={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new Jt,this.container=null,this._isShowing=!1,this.editor=t,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=WA(n),$pe(this.options,K0t,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(i=>{const r=this._getWidth(i);this.domNode.style.width=r+"px",this.domNode.style.left=this._getLeft(i)+"px",this._onWidth(r)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(t=>{this._viewZone&&t.removeZone(this._viewZone.id),this._viewZone=null}),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new X0t(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(t){t.frameColor&&(this.options.frameColor=t.frameColor),t.arrowColor&&(this.options.arrowColor=t.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const t=this.options.frameColor.toString();this.container.style.borderTopColor=t,this.container.style.borderBottomColor=t}if(this._arrow&&this.options.arrowColor){const t=this.options.arrowColor.toString();this._arrow.color=t}}_getWidth(t){return t.width-t.minimap.minimapWidth-t.verticalScrollbarWidth}_getLeft(t){return t.minimap.minimapWidth>0&&t.minimap.minimapLeft===0?t.minimap.minimapWidth:0}_onViewZoneTop(t){this.domNode.style.top=t+"px"}_onViewZoneHeight(t){if(this.domNode.style.height=`${t}px`,this.container){const n=t-this._decoratingElementsHeight();this.container.style.height=`${n}px`;const i=this.editor.getLayoutInfo();this._doLayout(n,this._getWidth(i))}this._resizeSash?.layout()}get position(){const t=this._positionMarkerId.getRange(0);if(t)return t.getStartPosition()}show(t,n){const i=Re.isIRange(t)?Re.lift(t):Re.fromPositions(t);this._isShowing=!0,this._showImpl(i,n),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:Gr.EMPTY}])}hide(){this._viewZone&&(this.editor.changeViewZones(t=>{this._viewZone&&t.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow?.hide(),this._positionMarkerId.clear()}_decoratingElementsHeight(){const t=this.editor.getOption(67);let n=0;if(this.options.showArrow){const i=Math.round(t/3);n+=2*i}if(this.options.showFrame){const i=Math.round(t/9);n+=2*i}return n}_showImpl(t,n){const i=t.getStartPosition(),r=this.editor.getLayoutInfo(),o=this._getWidth(r);this.domNode.style.width=`${o}px`,this.domNode.style.left=this._getLeft(r)+"px";const s=document.createElement("div");s.style.overflow="hidden";const a=this.editor.getOption(67);if(!this.options.allowUnlimitedHeight){const h=Math.max(12,this.editor.getLayoutInfo().height/a*.8);n=Math.min(n,h)}let l=0,c=0;if(this._arrow&&this.options.showArrow&&(l=Math.round(a/3),this._arrow.height=l,this._arrow.show(i)),this.options.showFrame&&(c=Math.round(a/9)),this.editor.changeViewZones(h=>{this._viewZone&&h.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new Q0t(s,i.lineNumber,i.column,n,f=>this._onViewZoneTop(f),f=>this._onViewZoneHeight(f),this.options.showInHiddenAreas,this.options.ordinal),this._viewZone.id=h.addZone(this._viewZone),this._overlayWidget=new Z0t(Y0t+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const h=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=h+"px",this.container.style.borderBottomWidth=h+"px"}const u=n*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=l+"px",this.container.style.height=u+"px",this.container.style.overflow="hidden"),this._doLayout(u,o),this.options.keepEditorSelection||this.editor.setSelection(t);const d=this.editor.getModel();if(d){const h=d.validateRange(new Re(t.startLineNumber,1,t.endLineNumber+1,1));this.revealRange(h,h.startLineNumber===d.getLineCount())}}revealRange(t,n){n?this.editor.revealLineNearTop(t.endLineNumber,0):this.editor.revealRange(t,0)}setCssClass(t,n){this.container&&(n&&this.container.classList.remove(n),this.container.classList.add(t))}_onWidth(t){}_doLayout(t,n){}_relayout(t){this._viewZone&&this._viewZone.heightInLines!==t&&this.editor.changeViewZones(n=>{this._viewZone&&(this._viewZone.heightInLines=t,n.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;this._resizeSash=this._disposables.add(new mx(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0);let t;this._disposables.add(this._resizeSash.onDidStart(n=>{this._viewZone&&(t={startY:n.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{t=void 0})),this._disposables.add(this._resizeSash.onDidChange(n=>{if(t){const i=(n.currentY-t.startY)/this.editor.getOption(67),r=i<0?Math.ceil(i):Math.floor(i),o=t.heightInLines+r;o>5&&o<35&&this._relayout(o)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const t=this.editor.getLayoutInfo();return t.width-t.minimap.minimapWidth}}}});function EQn(e){const t=e.get(Jo).getFocusedCodeEditor();return t instanceof Xy?t.getParentEditor():t}var iEe,rEe,Z6e,im,jV,J0t,x$,Ltn,z$e,V$e,Ntn,Ptn,oEe,K7=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/peekView/browser/peekView.js"(){var e;Fn(),ww(),wd(),ia(),Ra(),ql(),Un(),bm(),CQn(),mr(),Ec(),UN(),xQn(),bn(),jN(),er(),vf(),li(),ll(),iEe=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},rEe=function(t,n){return function(i,r){n(i,r,t)}},Z6e=Ao("IPeekViewService"),Oo(Z6e,class{constructor(){this._widgets=new Map}addExclusiveWidget(t,n){const i=this._widgets.get(t);i&&(i.listener.dispose(),i.widget.dispose());const r=()=>{const o=this._widgets.get(t);o&&o.widget===n&&(o.listener.dispose(),this._widgets.delete(t))};this._widgets.set(t,{widget:n,listener:n.onDidClose(r)})}},1),(function(t){t.inPeekEditor=new Qn("inReferenceSearchEditor",!0,R("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),t.notInPeekEditor=t.inPeekEditor.toNegated()})(im||(im={})),jV=(e=class{constructor(n,i){n instanceof Xy&&im.inPeekEditor.bindTo(i)}dispose(){}},e.ID="editor.contrib.referenceController",e),jV=iEe([rEe(1,ur)],jV),qo(jV.ID,jV,0),J0t={headerBackgroundColor:rn.white,primaryHeadingColor:rn.fromHex("#333333"),secondaryHeadingColor:rn.fromHex("#6c6c6cb3")},x$=class extends Itn{constructor(n,i,r){super(n,i),this.instantiationService=r,this._onDidClose=new bt,this.onDidClose=this._onDidClose.event,$pe(this.options,J0t,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(n){const i=this.options;n.headerBackgroundColor&&(i.headerBackgroundColor=n.headerBackgroundColor),n.primaryHeadingColor&&(i.primaryHeadingColor=n.primaryHeadingColor),n.secondaryHeadingColor&&(i.secondaryHeadingColor=n.secondaryHeadingColor),super.style(n)}_applyStyles(){super._applyStyles();const n=this.options;this._headElement&&n.headerBackgroundColor&&(this._headElement.style.backgroundColor=n.headerBackgroundColor.toString()),this._primaryHeading&&n.primaryHeadingColor&&(this._primaryHeading.style.color=n.primaryHeadingColor.toString()),this._secondaryHeading&&n.secondaryHeadingColor&&(this._secondaryHeading.style.color=n.secondaryHeadingColor.toString()),this._bodyElement&&n.frameColor&&(this._bodyElement.style.borderColor=n.frameColor.toString())}_fillContainer(n){this.setCssClass("peekview-widget"),this._headElement=In(".head"),this._bodyElement=In(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),n.appendChild(this._headElement),n.appendChild(this._bodyElement)}_fillHead(n,i){this._titleElement=In(".peekview-title"),this.options.supportOnTitleClick&&(this._titleElement.classList.add("clickable"),Il(this._titleElement,"click",s=>this._onTitleClick(s))),hn(this._headElement,this._titleElement),this._fillTitleIcon(this._titleElement),this._primaryHeading=In("span.filename"),this._secondaryHeading=In("span.dirname"),this._metaHeading=In("span.meta"),hn(this._titleElement,this._primaryHeading,this._secondaryHeading,this._metaHeading);const r=In(".peekview-actions");hn(this._headElement,r);const o=this._getActionBarOptions();this._actionbarWidget=new Dv(r,o),this._disposables.add(this._actionbarWidget),i||this._actionbarWidget.push(new cm("peekview.close",R("label.close","Close"),lr.asClassName(An.close),!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(n){}_getActionBarOptions(){return{actionViewItemProvider:_Gt.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(n){}setTitle(n,i){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=n,this._primaryHeading.setAttribute("title",n),i?this._secondaryHeading.innerText=i:Sh(this._secondaryHeading))}setMetaTitle(n){this._metaHeading&&(n?(this._metaHeading.innerText=n,lv(this._metaHeading)):ig(this._metaHeading))}_doLayout(n,i){if(!this._isShowing&&n<0){this.dispose();return}const r=Math.ceil(this.editor.getOption(67)*1.2),o=Math.round(n-(r+2));this._doLayoutHead(r,i),this._doLayoutBody(o,i)}_doLayoutHead(n,i){this._headElement&&(this._headElement.style.height=`${n}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(n,i){this._bodyElement&&(this._bodyElement.style.height=`${n}px`)}},x$=iEe([rEe(2,ji)],x$),Ltn=Qe("peekViewTitle.background",{dark:"#252526",light:"#F3F3F3",hcDark:rn.black,hcLight:rn.white},R("peekViewTitleBackground","Background color of the peek view title area.")),z$e=Qe("peekViewTitleLabel.foreground",{dark:rn.white,light:rn.black,hcDark:rn.white,hcLight:K1},R("peekViewTitleForeground","Color of the peek view title.")),V$e=Qe("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},R("peekViewTitleInfoForeground","Color of the peek view title info.")),Ntn=Qe("peekView.border",{dark:bC,light:bC,hcDark:zo,hcLight:zo},R("peekViewBorder","Color of the peek view borders and arrow.")),Ptn=Qe("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:rn.black,hcLight:rn.white},R("peekViewResultsBackground","Background color of the peek view result list.")),Qe("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:rn.white,hcLight:K1},R("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),Qe("peekViewResult.fileForeground",{dark:rn.white,light:"#1E1E1E",hcDark:rn.white,hcLight:K1},R("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Qe("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},R("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),Qe("peekViewResult.selectionForeground",{dark:rn.white,light:"#6C6C6C",hcDark:rn.white,hcLight:K1},R("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),oEe=Qe("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:rn.black,hcLight:rn.white},R("peekViewEditorBackground","Background color of the peek view editor.")),Qe("peekViewEditorGutter.background",oEe,R("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),Qe("peekViewEditorStickyScroll.background",oEe,R("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor.")),Qe("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},R("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),Qe("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},R("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),Qe("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:Qa,hcLight:Qa},R("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))}}),CD,eyt,u8,f_,BY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js"(){Vi(),Un(),uge(),Nt(),kh(),bf(),Ki(),Dn(),bn(),CD=class{constructor(e,t,n,i){this.isProviderFirst=e,this.parent=t,this.link=n,this._rangeCallback=i,this.id=Kue.nextId()}get uri(){return this.link.uri}get range(){return this._range??this.link.targetSelectionRange??this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){const e=this.parent.getPreview(this)?.preview(this.range);return e?R({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"{0} in {1} on line {2} at column {3}",e.value,E0(this.uri),this.range.startLineNumber,this.range.startColumn):R("aria.oneReference","in {0} on line {1} at column {2}",E0(this.uri),this.range.startLineNumber,this.range.startColumn)}},eyt=class{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const n=this._modelReference.object.textEditorModel;if(!n)return;const{startLineNumber:i,startColumn:r,endLineNumber:o,endColumn:s}=e,a=n.getWordUntilPosition({lineNumber:i,column:r-t}),l=new Re(i,a.startColumn,i,r),c=new Re(o,s,o,1073741824),u=n.getValueInRange(l).replace(/^\s+/,""),d=n.getValueInRange(e),h=n.getValueInRange(c).replace(/\s+$/,"");return{value:u+d+h,highlight:{start:u.length,end:u.length+d.length}}}},u8=class{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new mh}dispose(){xa(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return e===1?R("aria.fileReferences.1","1 symbol in {0}, full path {1}",E0(this.uri),this.uri.fsPath):R("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,E0(this.uri),this.uri.fsPath)}async resolve(e){if(this._previews.size!==0)return this;for(const t of this.children)if(!this._previews.has(t.uri))try{const n=await e.createModelReference(t.uri);this._previews.set(t.uri,new eyt(n))}catch(n){Mr(n)}return this}},f_=class Jae{constructor(t,n){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new bt,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=t,this._title=n;const[i]=t;t.sort(Jae._compareReferences);let r;for(const o of t)if((!r||!Ga.isEqual(r.uri,o.uri,!0))&&(r=new u8(this,o.uri),this.groups.push(r)),r.children.length===0||Jae._compareReferences(o,r.children[r.children.length-1])!==0){const s=new CD(i===o,r,o,a=>this._onDidChangeReferenceRange.fire(a));this.references.push(s),r.children.push(s)}}dispose(){xa(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new Jae(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?R("aria.result.0","No results found"):this.references.length===1?R("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?R("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):R("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(t,n){const{parent:i}=t;let r=i.children.indexOf(t);const o=i.children.length,s=i.parent.groups.length;return s===1||n&&r+1<o||!n&&r>0?(n?r=(r+1)%o:r=(r+o-1)%o,i.children[r]):(r=i.parent.groups.indexOf(i),n?(r=(r+1)%s,i.parent.groups[r].children[0]):(r=(r+s-1)%s,i.parent.groups[r].children[i.parent.groups[r].children.length-1]))}nearestReference(t,n){const i=this.references.map((r,o)=>({idx:o,prefixLen:kL(r.uri.toString(),t.toString()),offsetDist:Math.abs(r.range.startLineNumber-n.lineNumber)*100+Math.abs(r.range.startColumn-n.column)})).sort((r,o)=>r.prefixLen>o.prefixLen?-1:r.prefixLen<o.prefixLen?1:r.offsetDist<o.offsetDist?-1:r.offsetDist>o.offsetDist?1:0)[0];if(i)return this.references[i.idx]}referenceAt(t,n){for(const i of this.references)if(i.uri.toString()===t.toString()&&Re.containsPosition(i.range,n))return i}firstReference(){for(const t of this.references)if(t.isProviderFirst)return t;return this.references[0]}static _compareReferences(t,n){return Ga.compare(t.uri,n.uri)||Re.compareRangesUsingStarts(t.range,n.range)}}}}),AQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.css"(){}}),zV,VV,sEe,ele,Mtn,tle,Otn,Ite,SW,tyt,X6e,Rtn,DQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js"(){var e,t;Fn(),vYt(),GYt(),hUe(),yw(),Nt(),bf(),Eb(),bn(),li(),tl(),gY(),wT(),BY(),zV=function(n,i,r,o){var s=arguments.length,a=s<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,r):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,i,r,o);else for(var c=n.length-1;c>=0;c--)(l=n[c])&&(a=(s<3?l(a):s>3?l(i,r,a):l(i,r))||a);return s>3&&a&&Object.defineProperty(i,r,a),a},VV=function(n,i){return function(r,o){i(r,o,n)}},ele=class{constructor(i){this._resolverService=i}hasChildren(i){return i instanceof f_||i instanceof u8}getChildren(i){if(i instanceof f_)return i.groups;if(i instanceof u8)return i.resolve(this._resolverService).then(r=>r.children);throw new Error("bad tree")}},ele=zV([VV(0,dg)],ele),Mtn=class{getHeight(){return 23}getTemplateId(n){return n instanceof u8?SW.id:X6e.id}},tle=class{constructor(i){this._keybindingService=i}getKeyboardNavigationLabel(i){if(i instanceof CD){const r=i.parent.getPreview(i)?.preview(i.range);if(r)return r.value}return E0(i.uri)}},tle=zV([VV(0,Cs)],tle),Otn=class{getId(n){return n instanceof CD?n.id:n.uri}},Ite=class extends St{constructor(i,r){super(),this._labelService=r;const o=document.createElement("div");o.classList.add("reference-file"),this.file=this._register(new uG(o,{supportHighlights:!0})),this.badge=new fde(hn(o,In(".count")),{},_We),i.appendChild(o)}set(i,r){const o=hY(i.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(i.uri),this._labelService.getUriLabel(o,{relative:!0}),{title:this._labelService.getUriLabel(i.uri),matches:r});const s=i.children.length;this.badge.setCount(s),s>1?this.badge.setTitleFormat(R("referencesCount","{0} references",s)):this.badge.setTitleFormat(R("referenceCount","{0} reference",s))}},Ite=zV([VV(1,t2)],Ite),SW=(e=class{constructor(i){this._instantiationService=i,this.templateId=sEe.id}renderTemplate(i){return this._instantiationService.createInstance(Ite,i)}renderElement(i,r,o){o.set(i.element,eG(i.filterData))}disposeTemplate(i){i.dispose()}},sEe=e,e.id="FileReferencesRenderer",e),SW=sEe=zV([VV(0,ji)],SW),tyt=class extends St{constructor(n){super(),this.label=this._register(new gO(n))}set(n,i){const r=n.parent.getPreview(n)?.preview(n.range);if(!r||!r.value)this.label.set(`${E0(n.uri)}:${n.range.startLineNumber+1}:${n.range.startColumn+1}`);else{const{value:o,highlight:s}=r;i&&!Q1.isDefault(i)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(o,eG(i))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(o,[s]))}}},X6e=(t=class{constructor(){this.templateId=t.id}renderTemplate(i){return new tyt(i)}renderElement(i,r,o){o.set(i.element,i.filterData)}disposeTemplate(i){i.dispose()}},t.id="OneReferenceRenderer",t),Rtn=class{getWidgetAriaLabel(){return R("treeAriaLabel","References")}getAriaLabel(n){return n.ariaMessage}}}}),nyt,oM,iyt,Ftn,ryt,nle,TQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js"(){var e;Fn(),AYt(),ql(),Un(),Nt(),Gd(),bf(),AQn(),UN(),Dn(),Ac(),G0(),Eb(),DQn(),K7(),bn(),li(),tl(),gY(),xge(),Ys(),BY(),nyt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},oM=function(t,n){return function(i,r){n(i,r,t)}},iyt=(e=class{constructor(n,i){this._editor=n,this._model=i,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new Jt,this._callOnModelChange=new Jt,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const n=this._editor.getModel();if(n){for(const i of this._model.references)if(i.uri.toString()===n.uri.toString()){this._addDecorations(i.parent);return}}}_addDecorations(n){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const i=[],r=[];for(let o=0,s=n.children.length;o<s;o++){const a=n.children[o];this._decorationIgnoreSet.has(a.id)||a.uri.toString()===this._editor.getModel().uri.toString()&&(i.push({range:a.range,options:e.DecorationOptions}),r.push(o))}this._editor.changeDecorations(o=>{const s=o.deltaDecorations([],i);for(let a=0;a<s.length;a++)this._decorations.set(s[a],n.children[r[a]])})}_onDecorationChanged(){const n=[],i=this._editor.getModel();if(i){for(const[r,o]of this._decorations){const s=i.getDecorationRange(r);if(!s)continue;let a=!1;if(!Re.equalsRange(s,o.range)){if(Re.spansMultipleLines(s))a=!0;else{const l=o.range.endColumn-o.range.startColumn,c=s.endColumn-s.startColumn;l!==c&&(a=!0)}a?(this._decorationIgnoreSet.add(o.id),n.push(r)):o.range=s}}for(let r=0,o=n.length;r<o;r++)this._decorations.delete(n[r]);this._editor.removeDecorations(n)}}removeDecorations(){this._editor.removeDecorations([...this._decorations.keys()]),this._decorations.clear()}},e.DecorationOptions=Gr.register({description:"reference-decoration",stickiness:1,className:"reference-decoration"}),e),Ftn=class{constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(t){let n,i;try{const r=JSON.parse(t);n=r.ratio,i=r.heightInLines}catch{}return{ratio:n||.7,heightInLines:i||18}}},ryt=class extends eae{},nle=class extends x${constructor(n,i,r,o,s,a,l,c,u){super(n,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0,supportOnTitleClick:!0},a),this._defaultTreeKeyboardSupport=i,this.layoutData=r,this._textModelResolverService=s,this._instantiationService=a,this._peekViewService=l,this._uriLabel=c,this._keybindingService=u,this._disposeOnNewModel=new Jt,this._callOnDispose=new Jt,this._onDidSelectReference=new bt,this.onDidSelectReference=this._onDidSelectReference.event,this._dim=new qs(0,0),this._isClosing=!1,this._applyTheme(o.getColorTheme()),this._callOnDispose.add(o.onDidColorThemeChange(this._applyTheme.bind(this))),this._peekViewService.addExclusiveWidget(n,this),this.create()}get isClosing(){return this._isClosing}dispose(){this._isClosing=!0,this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),xa(this._preview),xa(this._previewNotAvailableMessage),xa(this._tree),xa(this._previewModelReference),this._splitView.dispose(),super.dispose()}_applyTheme(n){const i=n.getColor(Ntn)||rn.transparent;this.style({arrowColor:i,frameColor:i,headerBackgroundColor:n.getColor(Ltn)||rn.transparent,primaryHeadingColor:n.getColor(z$e),secondaryHeadingColor:n.getColor(V$e)})}show(n){super.show(n,this.layoutData.heightInLines||18)}focusOnReferenceTree(){this._tree.domFocus()}focusOnPreviewEditor(){this._preview.focus()}isPreviewEditorFocused(){return this._preview.hasTextFocus()}_onTitleClick(n){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:n.ctrlKey||n.metaKey||n.altKey?"side":"open",source:"title"})}_fillBody(n){this.setCssClass("reference-zone-widget"),this._messageContainer=hn(n,In("div.messages")),ig(this._messageContainer),this._splitView=new oUe(n,{orientation:1}),this._previewContainer=hn(n,In("div.preview.inline"));const i={scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!0},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}};this._preview=this._instantiationService.createInstance(Xy,this._previewContainer,i,{},this.editor),ig(this._previewContainer),this._previewNotAvailableMessage=this._instantiationService.createInstance(N_,R("missingPreviewMessage","no preview available"),xp,N_.DEFAULT_CREATION_OPTIONS,null),this._treeContainer=hn(n,In("div.ref-tree.inline"));const r={keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new Rtn,keyboardNavigationLabelProvider:this._instantiationService.createInstance(tle),identityProvider:new Otn,openOnSingleClick:!0,selectionNavigation:!0,overrideStyles:{listBackground:Ptn}};this._defaultTreeKeyboardSupport&&this._callOnDispose.add(Il(this._treeContainer,"keydown",s=>{s.equals(9)&&(this._keybindingService.dispatchEvent(s,s.target),s.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(ryt,"ReferencesWidget",this._treeContainer,new Mtn,[this._instantiationService.createInstance(SW),this._instantiationService.createInstance(X6e)],this._instantiationService.createInstance(ele),r),this._splitView.addView({onDidChange:On.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:s=>{this._preview.layout({height:this._dim.height,width:s})}},gde.Distribute),this._splitView.addView({onDidChange:On.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:s=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${s}px`,this._tree.layout(this._dim.height,s)}},gde.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));const o=(s,a)=>{s instanceof CD&&(a==="show"&&this._revealReference(s,!1),this._onDidSelectReference.fire({element:s,kind:a,source:"tree"}))};this._disposables.add(this._tree.onDidOpen(s=>{s.sideBySide?o(s.element,"side"):s.editorOptions.pinned?o(s.element,"goto"):o(s.element,"show")})),ig(this._treeContainer)}_onWidth(n){this._dim&&this._doLayoutBody(this._dim.height,n)}_doLayoutBody(n,i){super._doLayoutBody(n,i),this._dim=new qs(i,n),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(i),this._splitView.resizeView(0,i*this.layoutData.ratio)}setSelection(n){return this._revealReference(n,!0).then(()=>{this._model&&(this._tree.setSelection([n]),this._tree.setFocus([n]))})}setModel(n){return this._disposeOnNewModel.clear(),this._model=n,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=R("noResults","No results"),lv(this._messageContainer),Promise.resolve(void 0)):(ig(this._messageContainer),this._decorationsManager=new iyt(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(n=>this._tree.rerender(n))),this._disposeOnNewModel.add(this._preview.onMouseDown(n=>{const{event:i,target:r}=n;if(i.detail!==2)return;const o=this._getFocusedReference();o&&this._onDidSelectReference.fire({element:{uri:o.uri,range:r.range},kind:i.ctrlKey||i.metaKey||i.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),lv(this._treeContainer),lv(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[n]=this._tree.getFocus();if(n instanceof CD)return n;if(n instanceof u8&&n.children.length>0)return n.children[0]}async revealReference(n){await this._revealReference(n,!1),this._onDidSelectReference.fire({element:n,kind:"goto",source:"tree"})}async _revealReference(n,i){if(this._revealedReference===n)return;this._revealedReference=n,n.uri.scheme!==Pr.inMemory?this.setTitle(K$t(n.uri),this._uriLabel.getUriLabel(hY(n.uri))):this.setTitle(R("peekView.alternateTitle","References"));const r=this._textModelResolverService.createModelReference(n.uri);this._tree.getInput()===n.parent?this._tree.reveal(n):(i&&this._tree.reveal(n.parent),await this._tree.expand(n.parent),this._tree.reveal(n));const o=await r;if(!this._model){o.dispose();return}xa(this._previewModelReference);const s=o.object;if(s){const a=this._preview.getModel()===s.textEditorModel?0:1,l=Re.lift(n.range).collapseToStart();this._previewModelReference=o,this._preview.setModel(s.textEditorModel),this._preview.setSelection(l),this._preview.revealRangeInCenter(l,a)}else this._preview.setModel(this._previewNotAvailableMessage),o.dispose()}},nle=nyt([oM(3,Ru),oM(4,dg),oM(5,ji),oM(6,Z6e),oM(7,t2),oM(8,Cs)],nle)}});function sM(e,t){const n=EQn(e);if(!n)return;const i=uL.get(n);i&&t(i)}var oyt,aM,Lte,Ik,uL,Btn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js"(){var e;fr(),Vi(),wb(),Nt(),Ec(),Hi(),Dn(),K7(),bn(),Ks(),sa(),er(),li(),kN(),xge(),yf(),CE(),BY(),TQn(),ls(),TY(),oyt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},aM=function(t,n){return function(i,r){n(i,r,t)}},Ik=new Qn("referenceSearchVisible",!1,R("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'")),uL=(e=class{static get(n){return n.getContribution(Lte.ID)}constructor(n,i,r,o,s,a,l,c){this._defaultTreeKeyboardSupport=n,this._editor=i,this._editorService=o,this._notificationService=s,this._instantiationService=a,this._storageService=l,this._configurationService=c,this._disposables=new Jt,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=Ik.bindTo(r)}dispose(){this._referenceSearchVisible.reset(),this._disposables.dispose(),this._widget?.dispose(),this._model?.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(n,i,r){let o;if(this._widget&&(o=this._widget.position),this.closeWidget(),o&&n.containsPosition(o))return;this._peekMode=r,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const s="peekViewLayout",a=Ftn.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(nle,this._editor,this._defaultTreeKeyboardSupport,a),this._widget.setTitle(R("labelLoading","Loading...")),this._widget.show(n),this._disposables.add(this._widget.onDidClose(()=>{i.cancel(),this._widget?(this._storageService.store(s,JSON.stringify(this._widget.layoutData),0,1),this._widget.isClosing||this.closeWidget(),this._widget=void 0):this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(c=>{const{element:u,kind:d}=c;if(u)switch(d){case"open":(c.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(u,!1,!1);break;case"side":this.openReference(u,!0,!1);break;case"goto":r?this._gotoReference(u,!0):this.openReference(u,!1,!0);break}}));const l=++this._requestIdPool;i.then(c=>{if(l!==this._requestIdPool||!this._widget){c.dispose();return}return this._model?.dispose(),this._model=c,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(R("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const u=this._editor.getModel().uri,d=new mt(n.startLineNumber,n.startColumn),h=this._model.nearestReference(u,d);if(h)return this._widget.setSelection(h).then(()=>{this._widget&&this._editor.getOption(87)==="editor"&&this._widget.focusOnPreviewEditor()})}})},c=>{this._notificationService.error(c)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}async goToNextOrPreviousReference(n){if(!this._editor.hasModel()||!this._model||!this._widget)return;const i=this._widget.position;if(!i)return;const r=this._model.nearestReference(this._editor.getModel().uri,i);if(!r)return;const o=this._model.nextOrPreviousReference(r,n),s=this._editor.hasTextFocus(),a=this._widget.isPreviewEditorFocused();await this._widget.setSelection(o),await this._gotoReference(o,!1),s?this._editor.focus():this._widget&&a&&this._widget.focusOnPreviewEditor()}async revealReference(n){!this._editor.hasModel()||!this._model||!this._widget||await this._widget.revealReference(n)}closeWidget(n=!0){this._widget?.dispose(),this._model?.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,n&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(n,i){this._widget?.hide(),this._ignoreModelChangeEvent=!0;const r=Re.lift(n.range).collapseToStart();return this._editorService.openCodeEditor({resource:n.uri,options:{selection:r,selectionSource:"code.jump",pinned:i}},this._editor).then(o=>{if(this._ignoreModelChangeEvent=!1,!o||!this._widget){this.closeWidget();return}if(this._editor===o)this._widget.show(r),this._widget.focusOnReferenceTree();else{const s=Lte.get(o),a=this._model.clone();this.closeWidget(),o.focus(),s?.toggleWidget(r,vd(l=>Promise.resolve(a)),this._peekMode??!1)}},o=>{this._ignoreModelChangeEvent=!1,Mr(o)})}openReference(n,i,r){i||this.closeWidget();const{uri:o,range:s}=n;this._editorService.openCodeEditor({resource:o,options:{selection:s,selectionSource:"code.jump",pinned:r}},this._editor,i)}},Lte=e,e.ID="editor.contrib.referencesController",e),uL=Lte=oyt([aM(2,ur),aM(3,Jo),aM(4,Cc),aM(5,ji),aM(6,ab),aM(7,co)],uL),dp.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:pu(2089,60),when:nn.or(Ik,im.inPeekEditor),handler(t){sM(t,n=>{n.changeFocusBetweenPreviewAndReferences()})}}),dp.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:nn.or(Ik,im.inPeekEditor),handler(t){sM(t,n=>{n.goToNextOrPreviousReference(!0)})}}),dp.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:nn.or(Ik,im.inPeekEditor),handler(t){sM(t,n=>{n.goToNextOrPreviousReference(!1)})}}),Ro.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),Ro.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),Ro.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),Ro.registerCommand("closeReferenceSearch",t=>sM(t,n=>n.closeWidget())),dp.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:nn.and(im.inPeekEditor,nn.not("config.editor.stablePeek"))}),dp.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:nn.and(Ik,nn.not("config.editor.stablePeek"),nn.or(Ge.editorTextFocus,dUe.negate()))}),dp.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:nn.and(Ik,LBe,bde.negate(),_de.negate()),handler(t){const i=t.get(c0).lastFocusedList?.getFocus();Array.isArray(i)&&i[0]instanceof CD&&sM(t,r=>r.revealReference(i[0]))}}),dp.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:nn.and(Ik,LBe,bde.negate(),_de.negate()),handler(t){const i=t.get(c0).lastFocusedList?.getFocus();Array.isArray(i)&&i[0]instanceof CD&&sM(t,r=>r.openReference(i[0],!0,!0))}}),Ro.registerCommand("openReference",t=>{const i=t.get(c0).lastFocusedList?.getFocus();Array.isArray(i)&&i[0]instanceof CD&&sM(t,r=>r.openReference(i[0],!1,!0))})}}),aEe,f4,Nte,xW,Pte,Mte,kQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js"(){Un(),Nt(),bf(),mr(),Ec(),Dn(),bn(),er(),vf(),li(),tl(),kN(),yf(),aEe=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},f4=function(e,t){return function(n,i){t(n,i,e)}},Nte=new Qn("hasSymbols",!1,R("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),xW=Ao("ISymbolNavigationService"),Pte=class{constructor(t,n,i,r){this._editorService=n,this._notificationService=i,this._keybindingService=r,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=Nte.bindTo(t)}reset(){this._ctxHasSymbols.reset(),this._currentState?.dispose(),this._currentMessage?.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(t){const n=t.parent.parent;if(n.references.length<=1){this.reset();return}this._currentModel=n,this._currentIdx=n.references.indexOf(t),this._ctxHasSymbols.set(!0),this._showMessage();const i=new Mte(this._editorService),r=i.onDidChange(o=>{if(this._ignoreEditorChange)return;const s=this._editorService.getActiveCodeEditor();if(!s)return;const a=s.getModel(),l=s.getPosition();if(!a||!l)return;let c=!1,u=!1;for(const d of n.references)if(r9(d.uri,a.uri))c=!0,u=u||Re.containsPosition(d.range,l);else if(c)break;(!c||!u)&&this.reset()});this._currentState=z_(i,r)}revealNext(t){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const n=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:n.uri,options:{selection:Re.collapseToStart(n.range),selectionRevealType:3}},t).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){this._currentMessage?.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),n=t?R("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):R("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(n)}},Pte=aEe([f4(0,ur),f4(1,Jo),f4(2,Cc),f4(3,Cs)],Pte),Oo(xW,Pte,1),$n(new class extends Hd{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:Nte,kbOpts:{weight:100,primary:70}})}runEditorCommand(e,t){return e.get(xW).revealNext(t)}}),dp.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:Nte,primary:9,handler(e){e.get(xW).reset()}}),Mte=class{constructor(t){this._listener=new Map,this._disposables=new Jt,this._onDidChange=new bt,this.onDidChange=this._onDidChange.event,this._disposables.add(t.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(t.onCodeEditorAdd(this._onDidAddEditor,this)),t.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),xa(this._listener.values())}_onDidAddEditor(t){this._listener.set(t,z_(t.onDidChangeCursorPosition(n=>this._onDidChange.fire({editor:t})),t.onDidChangeModelContent(n=>this._onDidChange.fire({editor:t}))))}_onDidRemoveEditor(t){this._listener.get(t)?.dispose(),this._listener.delete(t)}},Mte=aEe([f4(0,Jo)],Mte)}});function J6e(e,t){return t.uri.scheme===e.uri.scheme?!0:!KFe(t.uri,Pr.walkThroughSnippet,Pr.vscodeChatCodeBlock,Pr.vscodeChatCodeCompareBlock)}async function jY(e,t,n,i,r){const s=n.ordered(e,i).map(l=>Promise.resolve(r(l,e,t)).then(void 0,c=>{Sc(c)})),a=await Promise.all(s);return ew(a.flat()).filter(l=>J6e(e,l))}function vG(e,t,n,i,r){return jY(t,n,e,i,(o,s,a)=>o.provideDefinition(s,a,r))}function e8e(e,t,n,i,r){return jY(t,n,e,i,(o,s,a)=>o.provideDeclaration(s,a,r))}function t8e(e,t,n,i,r){return jY(t,n,e,i,(o,s,a)=>o.provideImplementation(s,a,r))}function n8e(e,t,n,i,r){return jY(t,n,e,i,(o,s,a)=>o.provideTypeDefinition(s,a,r))}function E$(e,t,n,i,r,o){return jY(t,n,e,r,async(s,a,l)=>{const c=(await s.provideReferences(a,l,{includeDeclaration:!0},o))?.filter(d=>J6e(a,d));if(!i||!c||c.length!==2)return c;const u=(await s.provideReferences(a,l,{includeDeclaration:!1},o))?.filter(d=>J6e(a,d));return u&&u.length===1?u:c})}async function NS(e){const t=await e(),n=new f_(t,""),i=n.references.map(r=>r.link);return n.dispose(),i}var H$e=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/goToSymbol.js"(){rr(),Ho(),Vi(),Gd(),mr(),Eo(),BY(),Xg("_executeDefinitionProvider",(e,t,n)=>{const i=e.get(gi),r=vG(i.definitionProvider,t,n,!1,no.None);return NS(()=>r)}),Xg("_executeDefinitionProvider_recursive",(e,t,n)=>{const i=e.get(gi),r=vG(i.definitionProvider,t,n,!0,no.None);return NS(()=>r)}),Xg("_executeTypeDefinitionProvider",(e,t,n)=>{const i=e.get(gi),r=n8e(i.typeDefinitionProvider,t,n,!1,no.None);return NS(()=>r)}),Xg("_executeTypeDefinitionProvider_recursive",(e,t,n)=>{const i=e.get(gi),r=n8e(i.typeDefinitionProvider,t,n,!0,no.None);return NS(()=>r)}),Xg("_executeDeclarationProvider",(e,t,n)=>{const i=e.get(gi),r=e8e(i.declarationProvider,t,n,!1,no.None);return NS(()=>r)}),Xg("_executeDeclarationProvider_recursive",(e,t,n)=>{const i=e.get(gi),r=e8e(i.declarationProvider,t,n,!0,no.None);return NS(()=>r)}),Xg("_executeReferenceProvider",(e,t,n)=>{const i=e.get(gi),r=E$(i.referenceProvider,t,n,!1,!1,no.None);return NS(()=>r)}),Xg("_executeReferenceProvider_recursive",(e,t,n)=>{const i=e.get(gi),r=E$(i.referenceProvider,t,n,!1,!0,no.None);return NS(()=>r)}),Xg("_executeImplementationProvider",(e,t,n)=>{const i=e.get(gi),r=t8e(i.implementationProvider,t,n,!1,no.None);return NS(()=>r)}),Xg("_executeImplementationProvider_recursive",(e,t,n)=>{const i=e.get(gi),r=t8e(i.implementationProvider,t,n,!0,no.None);return NS(()=>r)})}}),A$,oI,b6,lEe,cEe,uEe,dEe,syt,W$e=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js"(){var e,t,n,i,r,o,s,a,l;Ih(),fr(),wb(),as(),ss(),WN(),NY(),mr(),Ec(),UN(),Hi(),Dn(),ls(),ra(),Btn(),BY(),kQn(),MY(),K7(),bn(),ha(),Ks(),er(),li(),yf(),$C(),H$e(),Eo(),bg(),TY(),fd.appendMenuItem(Ti.EditorContext,{submenu:Ti.EditorContextPeek,title:R("peek.submenu","Peek"),group:"navigation",order:100}),A$=class jtn{static is(u){return!u||typeof u!="object"?!1:!!(u instanceof jtn||mt.isIPosition(u.position)&&u.model)}constructor(u,d){this.model=u,this.position=d}},oI=(e=class extends T_{static all(){return e._allSymbolNavigationCommands.values()}static _patchConfig(u){const d={...u,f1:!0};if(d.menu)for(const h of Vo.wrap(d.menu))(h.id===Ti.EditorContext||h.id===Ti.EditorContextPeek)&&(h.when=nn.and(u.precondition,h.when));return d}constructor(u,d){super(e._patchConfig(d)),this.configuration=u,e._allSymbolNavigationCommands.set(d.id,this)}runEditorCommand(u,d,h,f){if(!d.hasModel())return Promise.resolve(void 0);const p=u.get(Cc),g=u.get(Jo),m=u.get(jD),v=u.get(xW),y=u.get(gi),b=u.get(ji),w=d.getModel(),E=d.getPosition(),A=A$.is(h)?h:new A$(w,E),D=new WD(d,5),T=UK(this._getLocationModel(y,A.model,A.position,D.token),D.token).then(async M=>{if(!M||D.token.isCancellationRequested)return;mg(M.ariaMessage);let P;if(M.referenceAt(w.uri,E)){const N=this._getAlternativeCommand(d);!e._activeAlternativeCommands.has(N)&&e._allSymbolNavigationCommands.has(N)&&(P=e._allSymbolNavigationCommands.get(N))}const F=M.references.length;if(F===0){if(!this.configuration.muteMessage){const N=w.getWordAtPosition(E);nm.get(d)?.showMessage(this._getNoResultFoundMessage(N),E)}}else if(F===1&&P)e._activeAlternativeCommands.add(this.desc.id),b.invokeFunction(N=>P.runEditorCommand(N,d,h,f).finally(()=>{e._activeAlternativeCommands.delete(this.desc.id)}));else return this._onResult(g,v,d,M,f)},M=>{p.error(M)}).finally(()=>{D.dispose()});return m.showWhile(T,250),T}async _onResult(u,d,h,f,p){const g=this._getGoToPreference(h);if(!(h instanceof Xy)&&(this.configuration.openInPeek||g==="peek"&&f.references.length>1))this._openInPeek(h,f,p);else{const m=f.firstReference(),v=f.references.length>1&&g==="gotoAndPeek",y=await this._openReference(h,u,m,this.configuration.openToSide,!v);v&&y?this._openInPeek(y,f,p):f.dispose(),g==="goto"&&d.put(m)}}async _openReference(u,d,h,f,p){let g;if(B2n(h)&&(g=h.targetSelectionRange),g||(g=h.range),!g)return;const m=await d.openCodeEditor({resource:h.uri,options:{selection:Re.collapseToStart(g),selectionRevealType:3,selectionSource:"code.jump"}},u,f);if(m){if(p){const v=m.getModel(),y=m.createDecorationsCollection([{range:g,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{m.getModel()===v&&y.clear()},350)}return m}}_openInPeek(u,d,h){const f=uL.get(u);f&&u.hasModel()?f.toggleWidget(h??u.getSelection(),vd(p=>Promise.resolve(d)),this.configuration.openInPeek):d.dispose()}},e._allSymbolNavigationCommands=new Map,e._activeAlternativeCommands=new Set,e),b6=class extends oI{async _getLocationModel(c,u,d,h){return new f_(await vG(c.definitionProvider,u,d,!1,h),R("def.title","Definitions"))}_getNoResultFoundMessage(c){return c&&c.word?R("noResultWord","No definition found for '{0}'",c.word):R("generic.noResults","No definition found")}_getAlternativeCommand(c){return c.getOption(58).alternativeDefinitionCommand}_getGoToPreference(c){return c.getOption(58).multipleDefinitions}},Pa((t=class extends b6{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:t.id,title:{...yr("actions.goToDecl.label","Go to Definition"),mnemonicTitle:R({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:Ge.hasDefinitionProvider,keybinding:[{when:Ge.editorTextFocus,primary:70,weight:100},{when:nn.and(Ge.editorTextFocus,TBe),primary:2118,weight:100}],menu:[{id:Ti.EditorContext,group:"navigation",order:1.1},{id:Ti.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),Ro.registerCommandAlias("editor.action.goToDeclaration",t.id)}},t.id="editor.action.revealDefinition",t)),Pa((n=class extends b6{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:n.id,title:yr("actions.goToDeclToSide.label","Open Definition to the Side"),precondition:nn.and(Ge.hasDefinitionProvider,Ge.isInEmbeddedEditor.toNegated()),keybinding:[{when:Ge.editorTextFocus,primary:pu(2089,70),weight:100},{when:nn.and(Ge.editorTextFocus,TBe),primary:pu(2089,2118),weight:100}]}),Ro.registerCommandAlias("editor.action.openDeclarationToTheSide",n.id)}},n.id="editor.action.revealDefinitionAside",n)),Pa((i=class extends b6{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:i.id,title:yr("actions.previewDecl.label","Peek Definition"),precondition:nn.and(Ge.hasDefinitionProvider,im.notInPeekEditor,Ge.isInEmbeddedEditor.toNegated()),keybinding:{when:Ge.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:Ti.EditorContextPeek,group:"peek",order:2}}),Ro.registerCommandAlias("editor.action.previewDeclaration",i.id)}},i.id="editor.action.peekDefinition",i)),lEe=class extends oI{async _getLocationModel(c,u,d,h){return new f_(await e8e(c.declarationProvider,u,d,!1,h),R("decl.title","Declarations"))}_getNoResultFoundMessage(c){return c&&c.word?R("decl.noResultWord","No declaration found for '{0}'",c.word):R("decl.generic.noResults","No declaration found")}_getAlternativeCommand(c){return c.getOption(58).alternativeDeclarationCommand}_getGoToPreference(c){return c.getOption(58).multipleDeclarations}},Pa((r=class extends lEe{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:r.id,title:{...yr("actions.goToDeclaration.label","Go to Declaration"),mnemonicTitle:R({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:nn.and(Ge.hasDeclarationProvider,Ge.isInEmbeddedEditor.toNegated()),menu:[{id:Ti.EditorContext,group:"navigation",order:1.3},{id:Ti.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(u){return u&&u.word?R("decl.noResultWord","No declaration found for '{0}'",u.word):R("decl.generic.noResults","No declaration found")}},r.id="editor.action.revealDeclaration",r)),Pa(class extends lEe{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:yr("actions.peekDecl.label","Peek Declaration"),precondition:nn.and(Ge.hasDeclarationProvider,im.notInPeekEditor,Ge.isInEmbeddedEditor.toNegated()),menu:{id:Ti.EditorContextPeek,group:"peek",order:3}})}}),cEe=class extends oI{async _getLocationModel(c,u,d,h){return new f_(await n8e(c.typeDefinitionProvider,u,d,!1,h),R("typedef.title","Type Definitions"))}_getNoResultFoundMessage(c){return c&&c.word?R("goToTypeDefinition.noResultWord","No type definition found for '{0}'",c.word):R("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(c){return c.getOption(58).alternativeTypeDefinitionCommand}_getGoToPreference(c){return c.getOption(58).multipleTypeDefinitions}},Pa((o=class extends cEe{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:o.ID,title:{...yr("actions.goToTypeDefinition.label","Go to Type Definition"),mnemonicTitle:R({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:Ge.hasTypeDefinitionProvider,keybinding:{when:Ge.editorTextFocus,primary:0,weight:100},menu:[{id:Ti.EditorContext,group:"navigation",order:1.4},{id:Ti.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}},o.ID="editor.action.goToTypeDefinition",o)),Pa((s=class extends cEe{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:s.ID,title:yr("actions.peekTypeDefinition.label","Peek Type Definition"),precondition:nn.and(Ge.hasTypeDefinitionProvider,im.notInPeekEditor,Ge.isInEmbeddedEditor.toNegated()),menu:{id:Ti.EditorContextPeek,group:"peek",order:4}})}},s.ID="editor.action.peekTypeDefinition",s)),uEe=class extends oI{async _getLocationModel(c,u,d,h){return new f_(await t8e(c.implementationProvider,u,d,!1,h),R("impl.title","Implementations"))}_getNoResultFoundMessage(c){return c&&c.word?R("goToImplementation.noResultWord","No implementation found for '{0}'",c.word):R("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(c){return c.getOption(58).alternativeImplementationCommand}_getGoToPreference(c){return c.getOption(58).multipleImplementations}},Pa((a=class extends uEe{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:a.ID,title:{...yr("actions.goToImplementation.label","Go to Implementations"),mnemonicTitle:R({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:Ge.hasImplementationProvider,keybinding:{when:Ge.editorTextFocus,primary:2118,weight:100},menu:[{id:Ti.EditorContext,group:"navigation",order:1.45},{id:Ti.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}},a.ID="editor.action.goToImplementation",a)),Pa((l=class extends uEe{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:l.ID,title:yr("actions.peekImplementation.label","Peek Implementations"),precondition:nn.and(Ge.hasImplementationProvider,im.notInPeekEditor,Ge.isInEmbeddedEditor.toNegated()),keybinding:{when:Ge.editorTextFocus,primary:3142,weight:100},menu:{id:Ti.EditorContextPeek,group:"peek",order:5}})}},l.ID="editor.action.peekImplementation",l)),dEe=class extends oI{_getNoResultFoundMessage(c){return c?R("references.no","No references found for '{0}'",c.word):R("references.noGeneric","No references found")}_getAlternativeCommand(c){return c.getOption(58).alternativeReferenceCommand}_getGoToPreference(c){return c.getOption(58).multipleReferences}},Pa(class extends dEe{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{...yr("goToReferences.label","Go to References"),mnemonicTitle:R({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:nn.and(Ge.hasReferenceProvider,im.notInPeekEditor,Ge.isInEmbeddedEditor.toNegated()),keybinding:{when:Ge.editorTextFocus,primary:1094,weight:100},menu:[{id:Ti.EditorContext,group:"navigation",order:1.45},{id:Ti.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}async _getLocationModel(u,d,h,f){return new f_(await E$(u.referenceProvider,d,h,!0,!1,f),R("ref.title","References"))}}),Pa(class extends dEe{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:yr("references.action.label","Peek References"),precondition:nn.and(Ge.hasReferenceProvider,im.notInPeekEditor,Ge.isInEmbeddedEditor.toNegated()),menu:{id:Ti.EditorContextPeek,group:"peek",order:6}})}async _getLocationModel(u,d,h,f){return new f_(await E$(u.referenceProvider,d,h,!1,!1,f),R("ref.title","References"))}}),syt=class extends oI{constructor(c,u,d){super(c,{id:"editor.action.goToLocation",title:yr("label.generic","Go to Any Symbol"),precondition:nn.and(im.notInPeekEditor,Ge.isInEmbeddedEditor.toNegated())}),this._references=u,this._gotoMultipleBehaviour=d}async _getLocationModel(c,u,d,h){return new f_(this._references,R("generic.title","Locations"))}_getNoResultFoundMessage(c){return c&&R("generic.noResult","No results for '{0}'",c.word)||""}_getGoToPreference(c){return this._gotoMultipleBehaviour??c.getOption(58).multipleReferences}_getAlternativeCommand(){return""}},Ro.registerCommand({id:"editor.action.goToLocations",metadata:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Ui},{name:"position",description:"The position at which to start",constraint:mt.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:async(c,u,d,h,f,p,g)=>{ns(Ui.isUri(u)),ns(mt.isIPosition(d)),ns(Array.isArray(h)),ns(typeof f>"u"||typeof f=="string"),ns(typeof g>"u"||typeof g=="boolean");const m=c.get(Jo),v=await m.openCodeEditor({resource:u},m.getFocusedCodeEditor());if(nE(v))return v.setPosition(d),v.revealPositionInCenterIfOutsideViewport(d,0),v.invokeWithinContext(y=>{const b=new class extends syt{_getNoResultFoundMessage(w){return p||super._getNoResultFoundMessage(w)}}({muteMessage:!p,openInPeek:!!g,openToSide:!1},h,f);y.get(ji).invokeFunction(b.run.bind(b),v)})}}),Ro.registerCommand({id:"editor.action.peekLocations",metadata:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Ui},{name:"position",description:"The position at which to start",constraint:mt.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"}]},handler:async(c,u,d,h,f)=>{c.get(Oa).executeCommand("editor.action.goToLocations",u,d,h,f,void 0,!0)}}),Ro.registerCommand({id:"editor.action.findReferences",handler:(c,u,d)=>{ns(Ui.isUri(u)),ns(mt.isIPosition(d));const h=c.get(gi),f=c.get(Jo);return f.openCodeEditor({resource:u},f.getFocusedCodeEditor()).then(p=>{if(!nE(p)||!p.hasModel())return;const g=uL.get(p);if(!g)return;const m=vd(y=>E$(h.referenceProvider,p.getModel(),mt.lift(d),!1,!1,y).then(b=>new f_(b,R("ref.title","References")))),v=new Re(d.lineNumber,d.column,d.lineNumber,d.column);return Promise.resolve(g.toggleWidget(v,m,!1))})}}),Ro.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")}});async function IQn(e,t,n,i){const r=e.get(dg),o=e.get(dm),s=e.get(Oa),a=e.get(ji),l=e.get(Cc);if(await i.item.resolve(no.None),!i.part.location)return;const c=i.part.location,u=[],d=new Set(fd.getMenuItems(Ti.EditorContext).map(f=>n6(f)?f.command.id:PY()));for(const f of oI.all())d.has(f.desc.id)&&u.push(new cm(f.desc.id,um.label(f.desc,{renderShortTitle:!0}),void 0,!0,async()=>{const p=await r.createModelReference(c.uri);try{const g=new A$(p.object.textEditorModel,Re.getStartPosition(c.range)),m=i.item.anchor.range;await a.invokeFunction(f.runEditorCommand.bind(f),t,g,m)}finally{p.dispose()}}));if(i.part.command){const{command:f}=i.part;u.push(new zd),u.push(new cm(f.id,f.title,void 0,!0,async()=>{try{await s.executeCommand(f.id,...f.arguments??[])}catch(p){l.notify({severity:lY.Error,source:i.item.provider.displayName,message:p})}}))}const h=t.getOption(128);o.showContextMenu({domForShadowRoot:h?t.getDomNode()??void 0:void 0,getAnchor:()=>{const f=_c(n);return{x:f.left,y:f.top+f.height+8}},getActions:()=>u,onHide:()=>{t.focus()},autoSelectFirstItem:!0})}async function ztn(e,t,n,i){const o=await e.get(dg).createModelReference(i.uri);await n.invokeWithinContext(async s=>{const a=t.hasSideBySideModifier,l=s.get(ur),c=im.inPeekEditor.getValue(l),u=!a&&n.getOption(89)&&!c;return new b6({openToSide:a,openInPeek:u,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(s,new A$(o.object.textEditorModel,Re.getStartPosition(i.range)),Re.lift(i.range))}),o.dispose()}var Vtn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.js"(){Fn(),wd(),Ho(),Qge(),Dn(),Eb(),W$e(),K7(),ha(),Ks(),er(),xg(),li(),yf()}});function LQn(e){return e.replace(/[ \t]/g," ")}var ayt,lM,p4,lyt,hEe,ile,cyt,d8,Htn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHintsController.js"(){var e;Fn(),rr(),fr(),Ho(),Vi(),Nt(),kh(),as(),ss(),QK(),q7(),Su(),Tb(),Dn(),ra(),Cd(),Ac(),Db(),Eo(),Eb(),rme(),Ttn(),Vtn(),Ks(),vf(),li(),yf(),ll(),Ys(),ayt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},lM=function(t,n){return function(i,r){n(i,r,t)}},lyt=class i8e{constructor(){this._entries=new WC(50)}get(n){const i=i8e._key(n);return this._entries.get(i)}set(n,i){const r=i8e._key(n);this._entries.set(r,i)}static _key(n){return`${n.uri.toString()}/${n.getVersionId()}`}},hEe=Ao("IInlayHintsCache"),Oo(hEe,lyt,1),ile=class{constructor(t,n){this.item=t,this.index=n}get part(){const t=this.item.hint.label;return typeof t=="string"?{label:t}:t[this.index]}},cyt=class{constructor(t,n){this.part=t,this.hasTriggerModifier=n}},d8=(e=class{static get(n){return n.getContribution(p4.ID)??void 0}constructor(n,i,r,o,s,a,l){this._editor=n,this._languageFeaturesService=i,this._inlayHintsCache=o,this._commandService=s,this._notificationService=a,this._instaService=l,this._disposables=new Jt,this._sessionDisposables=new Jt,this._decorationsMetadata=new Map,this._ruleFactory=new dHe(this._editor),this._activeRenderMode=0,this._debounceInfo=r.for(i.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(i.inlayHintsProvider.onDidChange(()=>this._update())),this._disposables.add(n.onDidChangeModel(()=>this._update())),this._disposables.add(n.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(n.onDidChangeConfiguration(c=>{c.hasChanged(142)&&this._update()})),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();const n=this._editor.getOption(142);if(n.enabled==="off")return;const i=this._editor.getModel();if(!i||!this._languageFeaturesService.inlayHintsProvider.has(i))return;if(n.enabled==="on")this._activeRenderMode=0;else{let l,c;n.enabled==="onUnlessPressed"?(l=0,c=1):(l=1,c=0),this._activeRenderMode=l,this._sessionDisposables.add(KK.getInstance().event(u=>{if(!this._editor.hasModel())return;const d=u.altKey&&u.ctrlKey&&!(u.shiftKey||u.metaKey)?c:l;if(d!==this._activeRenderMode){this._activeRenderMode=d;const h=this._editor.getModel(),f=this._copyInlayHintsWithCurrentAnchor(h);this._updateHintsDecorators([h.getFullModelRange()],f),a.schedule(0)}}))}const r=this._inlayHintsCache.get(i);r&&this._updateHintsDecorators([i.getFullModelRange()],r),this._sessionDisposables.add(zi(()=>{i.isDisposed()||this._cacheHintsForFastRestore(i)}));let o;const s=new Set,a=new Gs(async()=>{const l=Date.now();o?.dispose(!0),o=new bl;const c=i.onWillDispose(()=>o?.cancel());try{const u=o.token,d=await Q6e.create(this._languageFeaturesService.inlayHintsProvider,i,this._getHintsRanges(),u);if(a.delay=this._debounceInfo.update(i,Date.now()-l),u.isCancellationRequested){d.dispose();return}for(const h of d.provider)typeof h.onDidChangeInlayHints=="function"&&!s.has(h)&&(s.add(h),this._sessionDisposables.add(h.onDidChangeInlayHints(()=>{a.isScheduled()||a.schedule()})));this._sessionDisposables.add(d),this._updateHintsDecorators(d.ranges,d.items),this._cacheHintsForFastRestore(i)}catch(u){Mr(u)}finally{o.dispose(),c.dispose()}},this._debounceInfo.get(i));this._sessionDisposables.add(a),this._sessionDisposables.add(zi(()=>o?.dispose(!0))),a.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange(l=>{(l.scrollTopChanged||!a.isScheduled())&&a.schedule()})),this._sessionDisposables.add(this._editor.onDidChangeModelContent(l=>{o?.cancel();const c=Math.max(a.delay,1250);a.schedule(c)})),this._sessionDisposables.add(this._installDblClickGesture(()=>a.schedule(0))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){const n=new Jt,i=n.add(new FY(this._editor)),r=new Jt;return n.add(r),n.add(i.onMouseMoveOrRelevantKeyDown(o=>{const[s]=o,a=this._getInlayHintLabelPart(s),l=this._editor.getModel();if(!a||!l){r.clear();return}const c=new bl;r.add(zi(()=>c.dispose(!0))),a.item.resolve(c.token),this._activeInlayHintPart=a.part.command||a.part.location?new cyt(a,s.hasTriggerModifier):void 0;const u=l.validatePosition(a.item.hint.position).lineNumber,d=new Re(u,1,u,l.getLineMaxColumn(u)),h=this._getInlineHintsForRange(d);this._updateHintsDecorators([d],h),r.add(zi(()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([d],h)}))})),n.add(i.onCancel(()=>r.clear())),n.add(i.onExecute(async o=>{const s=this._getInlayHintLabelPart(o);if(s){const a=s.part;a.location?this._instaService.invokeFunction(ztn,o,this._editor,a.location):ORe.is(a.command)&&await this._invokeCommand(a.command,s.item)}})),n}_getInlineHintsForRange(n){const i=new Set;for(const r of this._decorationsMetadata.values())n.containsRange(r.item.anchor.range)&&i.add(r.item);return Array.from(i)}_installDblClickGesture(n){return this._editor.onMouseUp(async i=>{if(i.event.detail!==2)return;const r=this._getInlayHintLabelPart(i);if(r&&(i.event.preventDefault(),await r.item.resolve(no.None),Sp(r.item.hint.textEdits))){const o=r.item.hint.textEdits.map(s=>pl.replace(Re.lift(s.range),s.text));this._editor.executeEdits("inlayHint.default",o),n()}})}_installContextMenu(){return this._editor.onContextMenu(async n=>{if(!yd(n.event.target))return;const i=this._getInlayHintLabelPart(n);i&&await this._instaService.invokeFunction(IQn,this._editor,n.event.target,i)})}_getInlayHintLabelPart(n){if(n.target.type!==6)return;const i=n.target.detail.injectedText?.options;if(i instanceof Q6&&i?.attachedData instanceof ile)return i.attachedData}async _invokeCommand(n,i){try{await this._commandService.executeCommand(n.id,...n.arguments??[])}catch(r){this._notificationService.notify({severity:lY.Error,source:i.provider.displayName,message:r})}}_cacheHintsForFastRestore(n){const i=this._copyInlayHintsWithCurrentAnchor(n);this._inlayHintsCache.set(n,i)}_copyInlayHintsWithCurrentAnchor(n){const i=new Map;for(const[r,o]of this._decorationsMetadata){if(i.has(o.item))continue;const s=n.getDecorationRange(r);if(s){const a=new Y6e(s,o.item.anchor.direction),l=o.item.with({anchor:a});i.set(o.item,l)}}return Array.from(i.values())}_getHintsRanges(){const i=this._editor.getModel(),r=this._editor.getVisibleRangesPlusViewportAboveBelow(),o=[];for(const s of r.sort(Re.compareRangesUsingStarts)){const a=i.validateRange(new Re(s.startLineNumber-30,s.startColumn,s.endLineNumber+30,s.endColumn));o.length===0||!Re.areIntersectingOrTouching(o[o.length-1],a)?o.push(a):o[o.length-1]=Re.plusRange(o[o.length-1],a)}return o}_updateHintsDecorators(n,i){const r=[],o=(g,m,v,y,b)=>{const w={content:v,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:m.className,cursorStops:y,attachedData:b};r.push({item:g,classNameRef:m,decoration:{range:g.anchor.range,options:{description:"InlayHint",showIfCollapsed:g.anchor.range.isEmpty(),collapseOnReplaceEdit:!g.anchor.range.isEmpty(),stickiness:0,[g.anchor.direction]:this._activeRenderMode===0?w:void 0}}})},s=(g,m)=>{const v=this._ruleFactory.createClassNameRef({width:`${a/3|0}px`,display:"inline-block"});o(g,v," ",m?L_.Right:L_.None)},{fontSize:a,fontFamily:l,padding:c,isUniform:u}=this._getLayoutInfo(),d="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(d,l);let h={line:0,totalLen:0};for(const g of i){if(h.line!==g.anchor.range.startLineNumber&&(h={line:g.anchor.range.startLineNumber,totalLen:0}),h.totalLen>p4._MAX_LABEL_LEN)continue;g.hint.paddingLeft&&s(g,!1);const m=typeof g.hint.label=="string"?[{label:g.hint.label}]:g.hint.label;for(let v=0;v<m.length;v++){const y=m[v],b=v===0,w=v===m.length-1,E={fontSize:`${a}px`,fontFamily:`var(${d}), ${ap.fontFamily}`,verticalAlign:u?"baseline":"middle",unicodeBidi:"isolate"};Sp(g.hint.textEdits)&&(E.cursor="default"),this._fillInColors(E,g.hint),(y.command||y.location)&&this._activeInlayHintPart?.part.item===g&&this._activeInlayHintPart.part.index===v&&(E.textDecoration="underline",this._activeInlayHintPart.hasTriggerModifier&&(E.color=ec(C3t),E.cursor="pointer")),c&&(b&&w?(E.padding=`1px ${Math.max(1,a/4)|0}px`,E.borderRadius=`${a/4|0}px`):b?(E.padding=`1px 0 1px ${Math.max(1,a/4)|0}px`,E.borderRadius=`${a/4|0}px 0 0 ${a/4|0}px`):w?(E.padding=`1px ${Math.max(1,a/4)|0}px 1px 0`,E.borderRadius=`0 ${a/4|0}px ${a/4|0}px 0`):E.padding="1px 0 1px 0");let A=y.label;h.totalLen+=A.length;let D=!1;const T=h.totalLen-p4._MAX_LABEL_LEN;if(T>0&&(A=A.slice(0,-T)+"…",D=!0),o(g,this._ruleFactory.createClassNameRef(E),LQn(A),w&&!g.hint.paddingRight?L_.Right:L_.None,new ile(g,v)),D)break}if(g.hint.paddingRight&&s(g,!0),r.length>p4._MAX_DECORATORS)break}const f=[];for(const[g,m]of this._decorationsMetadata){const v=this._editor.getModel()?.getDecorationRange(g);v&&n.some(y=>y.containsRange(v))&&(f.push(g),m.classNameRef.dispose(),this._decorationsMetadata.delete(g))}const p=VD.capture(this._editor);this._editor.changeDecorations(g=>{const m=g.deltaDecorations(f,r.map(v=>v.decoration));for(let v=0;v<m.length;v++){const y=r[v];this._decorationsMetadata.set(m[v],y)}}),p.restore(this._editor)}_fillInColors(n,i){i.kind===Xce.Parameter?(n.backgroundColor=ec(I3t),n.color=ec(k3t)):i.kind===Xce.Type?(n.backgroundColor=ec(T3t),n.color=ec(D3t)):(n.backgroundColor=ec(qoe),n.color=ec($oe))}_getLayoutInfo(){const n=this._editor.getOption(142),i=n.padding,r=this._editor.getOption(52),o=this._editor.getOption(49);let s=n.fontSize;(!s||s<5||s>r)&&(s=r);const a=n.fontFamily||o;return{fontSize:s,fontFamily:a,padding:i,isUniform:!i&&a===o&&s===r}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(const n of this._decorationsMetadata.values())n.classNameRef.dispose();this._decorationsMetadata.clear()}},p4=e,e.ID="editor.contrib.InlayHints",e._MAX_DECORATORS=1500,e._MAX_LABEL_LEN=43,e),d8=p4=ayt([lM(1,gi),lM(2,Mv),lM(3,hEe),lM(4,Oa),lM(5,Cc),lM(6,ji)],d8),Ro.registerCommand("_executeInlayHintProvider",async(t,...n)=>{const[i,r]=n;ns(Ui.isUri(i)),ns(Re.isIRange(r));const{inlayHintsProvider:o}=t.get(gi),s=await t.get(dg).createModelReference(i);try{const a=await Q6e.create(o,s.object.textEditorModel,[Re.lift(r)],no.None),l=a.items.map(c=>c.hint);return setTimeout(()=>a.dispose(),0),l}finally{s.dispose()}})}}),uyt,dA,fEe,D$,Wtn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js"(){fr(),Dg(),Hi(),Ac(),Sw(),Kd(),Eb(),Atn(),ime(),Htn(),sa(),Ag(),Eo(),bn(),Xr(),Ttn(),rr(),tl(),PN(),Ks(),uyt=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},dA=function(e,t){return function(n,i){t(n,i,e)}},fEe=class extends C${constructor(e,t,n,i){super(10,t,e.item.anchor.range,n,i,!0),this.part=e}},D$=class extends c8{constructor(t,n,i,r,o,s,a,l,c){super(t,n,i,s,l,r,o,c),this._resolverService=a,this.hoverOrdinal=6}suggestHoverAnchor(t){if(!d8.get(this._editor)||t.target.type!==6)return null;const i=t.target.detail.injectedText?.options;return i instanceof Q6&&i.attachedData instanceof ile?new fEe(i.attachedData,this,t.event.posx,t.event.posy):null}computeSync(){return[]}computeAsync(t,n,i){return t instanceof fEe?new Hy(async r=>{const{part:o}=t;if(await o.item.resolve(i),i.isCancellationRequested)return;let s;typeof o.item.hint.tooltip=="string"?s=new nf().appendText(o.item.hint.tooltip):o.item.hint.tooltip&&(s=o.item.hint.tooltip),s&&r.emitOne(new Ty(this,t.range,[s],!1,0)),Sp(o.item.hint.textEdits)&&r.emitOne(new Ty(this,t.range,[new nf().appendText(R("hint.dbl","Double-click to insert"))],!1,10001));let a;if(typeof o.part.tooltip=="string"?a=new nf().appendText(o.part.tooltip):o.part.tooltip&&(a=o.part.tooltip),a&&r.emitOne(new Ty(this,t.range,[a],!1,1)),o.part.location||o.part.command){let c;const d=this._editor.getOption(78)==="altKey"?xo?R("links.navigate.kb.meta.mac","cmd + click"):R("links.navigate.kb.meta","ctrl + click"):xo?R("links.navigate.kb.alt.mac","option + click"):R("links.navigate.kb.alt","alt + click");o.part.location&&o.part.command?c=new nf().appendText(R("hint.defAndCommand","Go to Definition ({0}), right click for more",d)):o.part.location?c=new nf().appendText(R("hint.def","Go to Definition ({0})",d)):o.part.command&&(c=new nf(`[${R("hint.cmd","Execute Command")}](${wQn(o.part.command)} "${o.part.command.title}") (${d})`,{isTrusted:!0})),c&&r.emitOne(new Ty(this,t.range,[c],!1,1e4))}const l=await this._resolveInlayHintLabelPartHover(o,i);for await(const c of l)r.emitOne(c)}):Hy.EMPTY}async _resolveInlayHintLabelPartHover(t,n){if(!t.part.location)return Hy.EMPTY;const{uri:i,range:r}=t.part.location,o=await this._resolverService.createModelReference(i);try{const s=o.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(s)?j$e(this._languageFeaturesService.hoverProvider,s,new mt(r.startLineNumber,r.startColumn),n).filter(a=>!o9(a.hover.contents)).map(a=>new Ty(this,t.item.anchor.range,a.hover.contents,!1,2+a.ordinal)):Hy.EMPTY}finally{o.dispose()}}},D$=uyt([dA(1,al),dA(2,Eg),dA(3,Cs),dA(4,SC),dA(5,co),dA(6,dg),dA(7,gi),dA(8,Oa)],D$)}}),Utn,dyt,hyt,NQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHoverRendered.js"(){var e;Sw(),Nt(),xtn(),Ac(),Hi(),Dn(),Fn(),ime(),k$e(),Wtn(),Vi(),Utn=class $tn extends St{constructor(n,i,r,o,s,a){super();const l=i.anchor,c=i.hoverParts;this._renderedHoverParts=this._register(new hyt(n,r,c,a,s));const{showAtPosition:u,showAtSecondaryPosition:d}=$tn.computeHoverPositions(n,l.range,c);this.shouldAppearBeforeContent=c.some(h=>h.isBeforeContent),this.showAtPosition=u,this.showAtSecondaryPosition=d,this.initialMousePosX=l.initialMousePosX,this.initialMousePosY=l.initialMousePosY,this.shouldFocus=o.shouldFocus,this.source=o.source}get domNode(){return this._renderedHoverParts.domNode}get domNodeHasChildren(){return this._renderedHoverParts.domNodeHasChildren}get focusedHoverPartIndex(){return this._renderedHoverParts.focusedHoverPartIndex}async updateHoverVerbosityLevel(n,i,r){this._renderedHoverParts.updateHoverVerbosityLevel(n,i,r)}isColorPickerVisible(){return this._renderedHoverParts.isColorPickerVisible()}static computeHoverPositions(n,i,r){let o=1;if(n.hasModel()){const d=n._getViewModel(),h=d.coordinatesConverter,f=h.convertModelRangeToViewRange(i),p=d.getLineMinColumn(f.startLineNumber),g=new mt(f.startLineNumber,p);o=h.convertViewPositionToModelPosition(g).column}const s=i.startLineNumber;let a=i.startColumn,l;for(const d of r){const h=d.range,f=h.startLineNumber===s,p=h.endLineNumber===s;if(f&&p){const m=h.startColumn,v=Math.min(a,m);a=Math.max(v,o)}d.forceShowAtRange&&(l=h)}let c,u;if(l){const d=l.getStartPosition();c=d,u=d}else c=i.getStartPosition(),u=new mt(s,a);return{showAtPosition:c,showAtSecondaryPosition:u}}},dyt=class{constructor(t,n){this._statusBar=n,t.appendChild(this._statusBar.hoverElement)}get hoverElement(){return this._statusBar.hoverElement}get actions(){return this._statusBar.actions}dispose(){this._statusBar.dispose()}},hyt=(e=class extends St{constructor(n,i,r,o,s){super(),this._renderedParts=[],this._focusedHoverPartIndex=-1,this._context=s,this._fragment=document.createDocumentFragment(),this._register(this._renderParts(i,r,s,o)),this._register(this._registerListenersOnRenderedParts()),this._register(this._createEditorDecorations(n,r)),this._updateMarkdownAndColorParticipantInfo(i)}_createEditorDecorations(n,i){if(i.length===0)return St.None;let r=i[0].range;for(const s of i){const a=s.range;r=Re.plusRange(r,a)}const o=n.createDecorationsCollection();return o.set([{range:r,options:e._DECORATION_OPTIONS}]),zi(()=>{o.clear()})}_renderParts(n,i,r,o){const s=new S$(o),a={fragment:this._fragment,statusBar:s,...r},l=new Jt;for(const u of n){const d=this._renderHoverPartsForParticipant(i,u,a);l.add(d);for(const h of d.renderedHoverParts)this._renderedParts.push({type:"hoverPart",participant:u,hoverPart:h.hoverPart,hoverElement:h.hoverElement})}const c=this._renderStatusBar(this._fragment,s);return c&&(l.add(c),this._renderedParts.push({type:"statusBar",hoverElement:c.hoverElement,actions:c.actions})),zi(()=>{l.dispose()})}_renderHoverPartsForParticipant(n,i,r){const o=n.filter(a=>a.owner===i);return o.length>0?i.renderHoverParts(r,o):new jL([])}_renderStatusBar(n,i){if(i.hasContent)return new dyt(n,i)}_registerListenersOnRenderedParts(){const n=new Jt;return this._renderedParts.forEach((i,r)=>{const o=i.hoverElement;o.tabIndex=0,n.add(qt(o,kn.FOCUS_IN,s=>{s.stopPropagation(),this._focusedHoverPartIndex=r})),n.add(qt(o,kn.FOCUS_OUT,s=>{s.stopPropagation(),this._focusedHoverPartIndex=-1}))}),n}_updateMarkdownAndColorParticipantInfo(n){const i=n.find(r=>r instanceof c8&&!(r instanceof D$));i&&(this._markdownHoverParticipant=i),this._colorHoverParticipant=n.find(r=>r instanceof a8)}async updateHoverVerbosityLevel(n,i,r){if(!this._markdownHoverParticipant)return;const o=this._normalizedIndexToMarkdownHoverIndexRange(this._markdownHoverParticipant,i);if(o===void 0)return;const s=await this._markdownHoverParticipant.updateMarkdownHoverVerbosityLevel(n,o,r);s&&(this._renderedParts[i]={type:"hoverPart",participant:this._markdownHoverParticipant,hoverPart:s.hoverPart,hoverElement:s.hoverElement},this._context.onContentsChanged())}isColorPickerVisible(){return this._colorHoverParticipant?.isColorPickerVisible()??!1}_normalizedIndexToMarkdownHoverIndexRange(n,i){const r=this._renderedParts[i];if(!r||r.type!=="hoverPart"||!(r.participant===n))return;const s=this._renderedParts.findIndex(a=>a.type==="hoverPart"&&a.participant===n);if(s===-1)throw new ys;return i-s}get domNode(){return this._fragment}get domNodeHasChildren(){return this._fragment.hasChildNodes()}get focusedHoverPartIndex(){return this._focusedHoverPartIndex}},e._DECORATION_OPTIONS=Gr.register({description:"content-hover-highlight",className:"hoverHighlight"}),e)}}),fyt,pEe,rle,PQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js"(){Fn(),Nt(),ra(),wtn(),Sw(),li(),tl(),pQn(),gQn(),mQn(),Un(),NQn(),tme(),fyt=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},pEe=function(e,t){return function(n,i){t(n,i,e)}},rle=class extends St{constructor(t,n,i){super(),this._editor=t,this._instantiationService=n,this._keybindingService=i,this._currentResult=null,this._onContentsChanged=this._register(new bt),this.onContentsChanged=this._onContentsChanged.event,this._contentHoverWidget=this._register(this._instantiationService.createInstance(Xae,this._editor)),this._participants=this._initializeHoverParticipants(),this._computer=new Stn(this._editor,this._participants),this._hoverOperation=this._register(new F$e(this._editor,this._computer)),this._registerListeners()}_initializeHoverParticipants(){const t=[];for(const n of zL.getAll()){const i=this._instantiationService.createInstance(n,this._editor);t.push(i)}return t.sort((n,i)=>n.hoverOrdinal-i.hoverOrdinal),this._register(this._contentHoverWidget.onDidResize(()=>{this._participants.forEach(n=>n.handleResize?.())})),t}_registerListeners(){this._register(this._hoverOperation.onResult(n=>{if(!this._computer.anchor)return;const i=n.hasLoadingMessage?this._addLoadingMessage(n.value):n.value;this._withResult(new K6e(this._computer.anchor,i,n.isComplete))}));const t=this._contentHoverWidget.getDomNode();this._register(Il(t,"keydown",n=>{n.equals(9)&&this.hide()})),this._register(Il(t,"mouseleave",n=>{this._onMouseLeave(n)})),this._register(Hl.onDidChange(()=>{this._contentHoverWidget.position&&this._currentResult&&this._setCurrentResult(this._currentResult)}))}_startShowingOrUpdateHover(t,n,i,r,o){if(!(this._contentHoverWidget.position&&this._currentResult))return t?(this._startHoverOperationIfNecessary(t,n,i,r,!1),!0):!1;const a=this._editor.getOption(60).sticky,l=o&&this._contentHoverWidget.isMouseGettingCloser(o.event.posx,o.event.posy);return a&&l?(t&&this._startHoverOperationIfNecessary(t,n,i,r,!0),!0):t?this._currentResult.anchor.equals(t)?!0:t.canAdoptVisibleHover(this._currentResult.anchor,this._contentHoverWidget.position)?(this._setCurrentResult(this._currentResult.filter(t)),this._startHoverOperationIfNecessary(t,n,i,r,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(t,n,i,r,!1),!0):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(t,n,i,r,o){this._computer.anchor&&this._computer.anchor.equals(t)||(this._hoverOperation.cancel(),this._computer.anchor=t,this._computer.shouldFocus=r,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=o,this._hoverOperation.start(n))}_setCurrentResult(t){let n=t;if(this._currentResult===n)return;n&&n.hoverParts.length===0&&(n=null),this._currentResult=n,this._currentResult?this._showHover(this._currentResult):this._hideHover()}_addLoadingMessage(t){if(!this._computer.anchor)return t;for(const n of this._participants){if(!n.createLoadingMessage)continue;const i=n.createLoadingMessage(this._computer.anchor);if(i)return t.slice(0).concat([i])}return t}_withResult(t){if(this._contentHoverWidget.position&&this._currentResult&&this._currentResult.isComplete||this._setCurrentResult(t),!t.isComplete)return;const r=t.hoverParts.length===0,o=this._computer.insistOnKeepingHoverVisible;r&&o||this._setCurrentResult(t)}_showHover(t){const n=this._getHoverContext();this._renderedContentHover=new Utn(this._editor,t,this._participants,this._computer,n,this._keybindingService),this._renderedContentHover.domNodeHasChildren?this._contentHoverWidget.show(this._renderedContentHover):this._renderedContentHover.dispose()}_hideHover(){this._contentHoverWidget.hide()}_getHoverContext(){return{hide:()=>{this.hide()},onContentsChanged:()=>{this._onContentsChanged.fire(),this._contentHoverWidget.onContentsChanged()},setMinimumDimensions:r=>{this._contentHoverWidget.setMinimumDimensions(r)}}}showsOrWillShow(t){if(this._contentHoverWidget.isResizing)return!0;const i=this._findHoverAnchorCandidates(t);if(!(i.length>0))return this._startShowingOrUpdateHover(null,0,0,!1,t);const o=i[0];return this._startShowingOrUpdateHover(o,0,0,!1,t)}_findHoverAnchorCandidates(t){const n=[];for(const r of this._participants){if(!r.suggestHoverAnchor)continue;const o=r.suggestHoverAnchor(t);o&&n.push(o)}const i=t.target;switch(i.type){case 6:{n.push(new Yae(0,i.range,t.event.posx,t.event.posy));break}case 7:{const r=this._editor.getOption(50).typicalHalfwidthCharacterWidth/2;if(!(!i.detail.isAfterLines&&typeof i.detail.horizontalDistanceToText=="number"&&i.detail.horizontalDistanceToText<r))break;n.push(new Yae(0,i.range,t.event.posx,t.event.posy));break}}return n.sort((r,o)=>o.priority-r.priority),n}_onMouseLeave(t){const n=this._editor.getDomNode();(!n||!eme(n,t.x,t.y))&&this.hide()}startShowingAtRange(t,n,i,r){this._startShowingOrUpdateHover(new Yae(0,t,void 0,void 0),n,i,r,null)}async updateHoverVerbosityLevel(t,n,i){this._renderedContentHover?.updateHoverVerbosityLevel(t,n,i)}focusedHoverPartIndex(){return this._renderedContentHover?.focusedHoverPartIndex??-1}containsNode(t){return t?this._contentHoverWidget.getDomNode().contains(t):!1}focus(){this._contentHoverWidget.focus()}scrollUp(){this._contentHoverWidget.scrollUp()}scrollDown(){this._contentHoverWidget.scrollDown()}scrollLeft(){this._contentHoverWidget.scrollLeft()}scrollRight(){this._contentHoverWidget.scrollRight()}pageUp(){this._contentHoverWidget.pageUp()}pageDown(){this._contentHoverWidget.pageDown()}goToTop(){this._contentHoverWidget.goToTop()}goToBottom(){this._contentHoverWidget.goToBottom()}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}getDomNode(){return this._contentHoverWidget.getDomNode()}get isColorPickerVisible(){return this._renderedContentHover?.isColorPickerVisible()??!1}get isVisibleFromKeyboard(){return this._contentHoverWidget.isVisibleFromKeyboard}get isVisible(){return this._contentHoverWidget.isVisible}get isFocused(){return this._contentHoverWidget.isFocused}get isResizing(){return this._contentHoverWidget.isResizing}get widget(){return this._contentHoverWidget}},rle=fyt([pEe(1,ji),pEe(2,Cs)],rle)}}),ome=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hover.css"(){}}),pyt,gEe,mEe,HV,Lf,U$e=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHoverController2.js"(){var e;L$e(),Nt(),li(),R$e(),tl(),fr(),tme(),PQn(),ome(),Un(),pyt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},gEe=function(t,n){return function(i,r){n(i,r,t)}},HV=!1,Lf=(e=class extends St{constructor(n,i,r){super(),this._editor=n,this._instantiationService=i,this._keybindingService=r,this._onHoverContentsChanged=this._register(new bt),this.shouldKeepOpenOnEditorMouseMoveOrLeave=!1,this._listenersStore=new Jt,this._hoverState={mouseDown:!1,activatedByDecoratorClick:!1},this._reactToEditorMouseMoveRunner=this._register(new Gs(()=>this._reactToEditorMouseMove(this._mouseMoveEvent),0)),this._hookListeners(),this._register(this._editor.onDidChangeConfiguration(o=>{o.hasChanged(60)&&(this._unhookListeners(),this._hookListeners())}))}static get(n){return n.getContribution(mEe.ID)}_hookListeners(){const n=this._editor.getOption(60);this._hoverSettings={enabled:n.enabled,sticky:n.sticky,hidingDelay:n.hidingDelay},n.enabled?(this._listenersStore.add(this._editor.onMouseDown(i=>this._onEditorMouseDown(i))),this._listenersStore.add(this._editor.onMouseUp(()=>this._onEditorMouseUp())),this._listenersStore.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._listenersStore.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))):(this._listenersStore.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._listenersStore.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))),this._listenersStore.add(this._editor.onMouseLeave(i=>this._onEditorMouseLeave(i))),this._listenersStore.add(this._editor.onDidChangeModel(()=>{this._cancelScheduler(),this._hideWidgets()})),this._listenersStore.add(this._editor.onDidChangeModelContent(()=>this._cancelScheduler())),this._listenersStore.add(this._editor.onDidScrollChange(i=>this._onEditorScrollChanged(i)))}_unhookListeners(){this._listenersStore.clear()}_cancelScheduler(){this._mouseMoveEvent=void 0,this._reactToEditorMouseMoveRunner.cancel()}_onEditorScrollChanged(n){(n.scrollTopChanged||n.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(n){this._hoverState.mouseDown=!0,!this._shouldNotHideCurrentHoverWidget(n)&&this._hideWidgets()}_shouldNotHideCurrentHoverWidget(n){return this._isMouseOnContentHoverWidget(n)||this._isContentWidgetResizing()}_isMouseOnContentHoverWidget(n){const i=this._contentWidget?.getDomNode();return i?eme(i,n.event.posx,n.event.posy):!1}_onEditorMouseUp(){this._hoverState.mouseDown=!1}_onEditorMouseLeave(n){this.shouldKeepOpenOnEditorMouseMoveOrLeave||(this._cancelScheduler(),this._shouldNotHideCurrentHoverWidget(n))||HV||this._hideWidgets()}_shouldNotRecomputeCurrentHoverWidget(n){const i=this._hoverSettings.sticky,r=(a,l)=>{const c=this._isMouseOnContentHoverWidget(a);return l&&c},o=a=>{const l=this._isMouseOnContentHoverWidget(a),c=this._contentWidget?.isColorPickerVisible??!1;return l&&c},s=(a,l)=>(l&&this._contentWidget?.containsNode(a.event.browserEvent.view?.document.activeElement)&&!a.event.browserEvent.view?.getSelection()?.isCollapsed)??!1;return r(n,i)||o(n)||s(n,i)}_onEditorMouseMove(n){if(this.shouldKeepOpenOnEditorMouseMoveOrLeave||(this._mouseMoveEvent=n,this._contentWidget?.isFocused||this._contentWidget?.isResizing))return;const i=this._hoverSettings.sticky;if(i&&this._contentWidget?.isVisibleFromKeyboard)return;if(this._shouldNotRecomputeCurrentHoverWidget(n)){this._reactToEditorMouseMoveRunner.cancel();return}const o=this._hoverSettings.hidingDelay;if(this._contentWidget?.isVisible&&i&&o>0){this._reactToEditorMouseMoveRunner.isScheduled()||this._reactToEditorMouseMoveRunner.schedule(o);return}this._reactToEditorMouseMove(n)}_reactToEditorMouseMove(n){if(!n)return;const r=n.target.element?.classList.contains("colorpicker-color-decoration"),o=this._editor.getOption(149),s=this._hoverSettings.enabled,a=this._hoverState.activatedByDecoratorClick;if(r&&(o==="click"&&!a||o==="hover"&&!s&&!HV||o==="clickAndHover"&&!s&&!a)||!r&&!s&&!a){this._hideWidgets();return}this._tryShowHoverWidget(n)||HV||this._hideWidgets()}_tryShowHoverWidget(n){return this._getOrCreateContentWidget().showsOrWillShow(n)}_onKeyDown(n){if(!this._editor.hasModel())return;const i=this._keybindingService.softDispatch(n,this._editor.getDomNode()),r=i.kind===1||i.kind===2&&(i.commandId===I$e||i.commandId===OY||i.commandId===RY)&&this._contentWidget?.isVisible;n.keyCode===5||n.keyCode===6||n.keyCode===57||n.keyCode===4||r||this._hideWidgets()}_hideWidgets(){HV||this._hoverState.mouseDown&&this._contentWidget?.isColorPickerVisible||jO.dropDownVisible||(this._hoverState.activatedByDecoratorClick=!1,this._contentWidget?.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(rle,this._editor),this._listenersStore.add(this._contentWidget.onContentsChanged(()=>this._onHoverContentsChanged.fire()))),this._contentWidget}showContentHover(n,i,r,o,s=!1){this._hoverState.activatedByDecoratorClick=s,this._getOrCreateContentWidget().startShowingAtRange(n,i,r,o)}_isContentWidgetResizing(){return this._contentWidget?.widget.isResizing||!1}focusedHoverPartIndex(){return this._getOrCreateContentWidget().focusedHoverPartIndex()}updateHoverVerbosityLevel(n,i,r){this._getOrCreateContentWidget().updateHoverVerbosityLevel(n,i,r)}focus(){this._contentWidget?.focus()}scrollUp(){this._contentWidget?.scrollUp()}scrollDown(){this._contentWidget?.scrollDown()}scrollLeft(){this._contentWidget?.scrollLeft()}scrollRight(){this._contentWidget?.scrollRight()}pageUp(){this._contentWidget?.pageUp()}pageDown(){this._contentWidget?.pageDown()}goToTop(){this._contentWidget?.goToTop()}goToBottom(){this._contentWidget?.goToBottom()}get isColorPickerVisible(){return this._contentWidget?.isColorPickerVisible}get isHoverVisible(){return this._contentWidget?.isVisible}dispose(){super.dispose(),this._unhookListeners(),this._listenersStore.dispose(),this._contentWidget?.dispose()}},mEe=e,e.ID="editor.contrib.contentHover",e),Lf=mEe=pyt([gEe(1,ji),gEe(2,Cs)],Lf)}}),vEe,MQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorContributions.js"(){var e;Nt(),mr(),Dn(),rtn(),k$e(),U$e(),Sw(),vEe=(e=class extends St{constructor(n){super(),this._editor=n,this._register(n.onMouseDown(i=>this.onMouseDown(i)))}dispose(){super.dispose()}onMouseDown(n){const i=this._editor.getOption(149);if(i!=="click"&&i!=="clickAndHover")return;const r=n.target;if(r.type!==6||!r.detail.injectedText||r.detail.injectedText.options.attachedData!==q6e||!r.range)return;const o=this._editor.getContribution(Lf.ID);if(o&&!o.isColorPickerVisible){const s=new Re(r.range.startLineNumber,r.range.startColumn+1,r.range.endLineNumber,r.range.endColumn+1);o.showContentHover(s,1,0,!1,!0)}}},e.ID="editor.contrib.colorContribution",e),qo(vEe.ID,vEe,2),zL.register(a8)}}),yEe,cM,bEe,_Ee,TI,wEe,gyt,Ote,myt,OQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPickerWidget.js"(){var e,t;Nt(),k$e(),li(),xtn(),tl(),Un(),Eo(),mr(),ls(),er(),Jen(),Fn(),T$e(),SE(),yEe=function(n,i,r,o){var s=arguments.length,a=s<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,r):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,i,r,o);else for(var c=n.length-1;c>=0;c--)(l=n[c])&&(a=(s<3?l(a):s>3?l(i,r,a):l(i,r))||a);return s>3&&a&&Object.defineProperty(i,r,a),a},cM=function(n,i){return function(r,o){i(r,o,n)}},TI=(e=class extends St{constructor(i,r,o){super(),this._editor=i,this._instantiationService=o,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=Ge.standaloneColorPickerVisible.bindTo(r),this._standaloneColorPickerFocused=Ge.standaloneColorPickerFocused.bindTo(r)}showOrFocus(){this._editor.hasModel()&&(this._standaloneColorPickerVisible.get()?this._standaloneColorPickerFocused.get()||this._standaloneColorPickerWidget?.focus():this._standaloneColorPickerWidget=this._instantiationService.createInstance(Ote,this._editor,this._standaloneColorPickerVisible,this._standaloneColorPickerFocused))}hide(){this._standaloneColorPickerFocused.set(!1),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerWidget?.hide(),this._editor.focus()}insertColor(){this._standaloneColorPickerWidget?.updateEditor(),this.hide()}static get(i){return i.getContribution(bEe.ID)}},bEe=e,e.ID="editor.contrib.standaloneColorPickerController",e),TI=bEe=yEe([cM(1,ur),cM(2,ji)],TI),qo(TI.ID,TI,1),wEe=8,gyt=22,Ote=(t=class extends St{constructor(i,r,o,s,a,l,c){super(),this._editor=i,this._standaloneColorPickerVisible=r,this._standaloneColorPickerFocused=o,this._keybindingService=a,this._languageFeaturesService=l,this._editorWorkerService=c,this.allowEditorOverflow=!0,this._position=void 0,this._body=document.createElement("div"),this._colorHover=null,this._selectionSetInEditor=!1,this._onResult=this._register(new bt),this.onResult=this._onResult.event,this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=s.createInstance(l8,this._editor),this._position=this._editor._getViewModel()?.getPrimaryCursorState().modelState.position;const u=this._editor.getSelection(),d=u?{startLineNumber:u.startLineNumber,startColumn:u.startColumn,endLineNumber:u.endLineNumber,endColumn:u.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},h=this._register(yC(this._body));this._register(h.onDidBlur(f=>{this.hide()})),this._register(h.onDidFocus(f=>{this.focus()})),this._register(this._editor.onDidChangeCursorPosition(()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()})),this._register(this._editor.onMouseMove(f=>{const p=f.target.element?.classList;p&&p.contains("colorpicker-color-decoration")&&this.hide()})),this._register(this.onResult(f=>{this._render(f.value,f.foundInEditor)})),this._start(d),this._body.style.zIndex="50",this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return _Ee.ID}getDomNode(){return this._body}getPosition(){if(!this._position)return null;const i=this._editor.getOption(60).above;return{position:this._position,secondaryPosition:this._position,preference:i?[1,2]:[2,1],positionAffinity:2}}hide(){this.dispose(),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerFocused.set(!1),this._editor.removeContentWidget(this),this._editor.focus()}focus(){this._standaloneColorPickerFocused.set(!0),this._body.focus()}async _start(i){const r=await this._computeAsync(i);r&&this._onResult.fire(new myt(r.result,r.foundInEditor))}async _computeAsync(i){if(!this._editor.hasModel())return null;const r={range:i,color:{red:0,green:0,blue:0,alpha:1}},o=await this._standaloneColorPickerParticipant.createColorHover(r,new y6(this._editorWorkerService),this._languageFeaturesService.colorProvider);return o?{result:o.colorHover,foundInEditor:o.foundInEditor}:null}_render(i,r){const o=document.createDocumentFragment(),s=this._register(new S$(this._keybindingService)),a={fragment:o,statusBar:s,onContentsChanged:()=>{},hide:()=>this.hide()};this._colorHover=i;const l=this._standaloneColorPickerParticipant.renderHoverParts(a,[i]);if(!l)return;this._register(l.disposables);const c=l.colorPicker;this._body.classList.add("standalone-colorpicker-body"),this._body.style.maxHeight=Math.max(this._editor.getLayoutInfo().height/4,250)+"px",this._body.style.maxWidth=Math.max(this._editor.getLayoutInfo().width*.66,500)+"px",this._body.tabIndex=0,this._body.appendChild(o),c.layout();const u=c.body,d=u.saturationBox.domNode.clientWidth,h=u.domNode.clientWidth-d-gyt-wEe,f=c.body.enterButton;f?.onClicked(()=>{this.updateEditor(),this.hide()});const p=c.header,g=p.pickedColorNode;g.style.width=d+wEe+"px";const m=p.originalColorNode;m.style.width=h+"px",c.header.closeButton?.onClicked(()=>{this.hide()}),r&&(f&&(f.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(i.range)),this._editor.layoutContentWidget(this)}},_Ee=t,t.ID="editor.contrib.standaloneColorPickerWidget",t),Ote=_Ee=yEe([cM(3,ji),cM(4,Cs),cM(5,gi),cM(6,fg)],Ote),myt=class{constructor(n,i){this.value=n,this.foundInEditor=i}}}}),vyt,yyt,byt,RQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.js"(){mr(),bn(),OQn(),ls(),ha(),T$e(),vyt=class extends T_{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{...yr("showOrFocusStandaloneColorPicker","Show or Focus Standalone Color Picker"),mnemonicTitle:R({key:"mishowOrFocusStandaloneColorPicker",comment:["&& denotes a mnemonic"]},"&&Show or Focus Standalone Color Picker")},precondition:void 0,menu:[{id:Ti.CommandPalette}],metadata:{description:yr("showOrFocusStandaloneColorPickerDescription","Show or focus a standalone color picker which uses the default color provider. It displays hex/rgb/hsl colors.")}})}runEditorCommand(e,t){TI.get(t)?.showOrFocus()}},yyt=class extends ri{constructor(){super({id:"editor.action.hideColorPicker",label:R({key:"hideColorPicker",comment:["Action that hides the color picker"]},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:Ge.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100},metadata:{description:yr("hideColorPickerDescription","Hide the standalone color picker.")}})}run(e,t){TI.get(t)?.hide()}},byt=class extends ri{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:R({key:"insertColorWithStandaloneColorPicker",comment:["Action that inserts color with standalone color picker"]},"Insert Color with Standalone Color Picker"),alias:"Insert Color with Standalone Color Picker",precondition:Ge.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100},metadata:{description:yr("insertColorWithStandaloneColorPickerDescription","Insert hex/rgb/hsl colors with the focused standalone color picker.")}})}run(e,t){TI.get(t)?.insertColor()}},yn(yyt),yn(byt),Pa(vyt)}}),_6,qtn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/comment/browser/blockCommentCommand.js"(){Tb(),Hi(),Dn(),zs(),_6=class r8e{constructor(t,n,i){this.languageConfigurationService=i,this._selection=t,this._insertSpace=n,this._usedEndToken=null}static _haystackHasNeedleAtOffset(t,n,i){if(i<0)return!1;const r=n.length,o=t.length;if(i+r>o)return!1;for(let s=0;s<r;s++){const a=t.charCodeAt(i+s),l=n.charCodeAt(s);if(a!==l&&!(a>=65&&a<=90&&a+32===l)&&!(l>=65&&l<=90&&l+32===a))return!1}return!0}_createOperationsForBlockComment(t,n,i,r,o,s){const a=t.startLineNumber,l=t.startColumn,c=t.endLineNumber,u=t.endColumn,d=o.getLineContent(a),h=o.getLineContent(c);let f=d.lastIndexOf(n,l-1+n.length),p=h.indexOf(i,u-1-i.length);if(f!==-1&&p!==-1)if(a===c)d.substring(f+n.length,p).indexOf(i)>=0&&(f=-1,p=-1);else{const m=d.substring(f+n.length),v=h.substring(0,p);(m.indexOf(i)>=0||v.indexOf(i)>=0)&&(f=-1,p=-1)}let g;f!==-1&&p!==-1?(r&&f+n.length<d.length&&d.charCodeAt(f+n.length)===32&&(n=n+" "),r&&p>0&&h.charCodeAt(p-1)===32&&(i=" "+i,p-=1),g=r8e._createRemoveBlockCommentOperations(new Re(a,f+n.length+1,c,p+1),n,i)):(g=r8e._createAddBlockCommentOperations(t,n,i,this._insertSpace),this._usedEndToken=g.length===1?i:null);for(const m of g)s.addTrackedEditOperation(m.range,m.text)}static _createRemoveBlockCommentOperations(t,n,i){const r=[];return Re.isEmpty(t)?r.push(pl.delete(new Re(t.startLineNumber,t.startColumn-n.length,t.endLineNumber,t.endColumn+i.length))):(r.push(pl.delete(new Re(t.startLineNumber,t.startColumn-n.length,t.startLineNumber,t.startColumn))),r.push(pl.delete(new Re(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn+i.length)))),r}static _createAddBlockCommentOperations(t,n,i,r){const o=[];return Re.isEmpty(t)?o.push(pl.replace(new Re(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn),n+"  "+i)):(o.push(pl.insert(new mt(t.startLineNumber,t.startColumn),n+(r?" ":""))),o.push(pl.insert(new mt(t.endLineNumber,t.endColumn),(r?" ":"")+i))),o}getEditOperations(t,n){const i=this._selection.startLineNumber,r=this._selection.startColumn;t.tokenization.tokenizeIfCheap(i);const o=t.getLanguageIdAtPosition(i,r),s=this.languageConfigurationService.getLanguageConfiguration(o).comments;!s||!s.blockCommentStartToken||!s.blockCommentEndToken||this._createOperationsForBlockComment(this._selection,s.blockCommentStartToken,s.blockCommentEndToken,this._insertSpace,t,n)}computeCursorState(t,n){const i=n.getInverseEditOperations();if(i.length===2){const r=i[0],o=i[1];return new Ii(r.range.endLineNumber,r.range.endColumn,o.range.startLineNumber,o.range.startColumn)}else{const r=i[0].range,o=this._usedEndToken?-this._usedEndToken.length-1:0;return new Ii(r.endLineNumber,r.endColumn+o,r.endLineNumber,r.endColumn+o)}}}}}),Gtn,FQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/comment/browser/lineCommentCommand.js"(){Ki(),Tb(),Hi(),Dn(),zs(),qtn(),Gtn=class sI{constructor(t,n,i,r,o,s,a){this.languageConfigurationService=t,this._selection=n,this._indentSize=i,this._type=r,this._insertSpace=o,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=s,this._ignoreFirstLine=a||!1}static _gatherPreflightCommentStrings(t,n,i,r){t.tokenization.tokenizeIfCheap(n);const o=t.getLanguageIdAtPosition(n,1),s=r.getLanguageConfiguration(o).comments,a=s?s.lineCommentToken:null;if(!a)return null;const l=[];for(let c=0,u=i-n+1;c<u;c++)l[c]={ignore:!1,commentStr:a,commentStrOffset:0,commentStrLength:a.length};return l}static _analyzeLines(t,n,i,r,o,s,a,l){let c=!0,u;t===0?u=!0:t===1?u=!1:u=!0;for(let d=0,h=r.length;d<h;d++){const f=r[d],p=o+d;if(p===o&&a){f.ignore=!0;continue}const g=i.getLineContent(p),m=Cp(g);if(m===-1){f.ignore=s,f.commentStrOffset=g.length;continue}if(c=!1,f.ignore=!1,f.commentStrOffset=m,u&&!_6._haystackHasNeedleAtOffset(g,f.commentStr,m)&&(t===0?u=!1:t===1||(f.ignore=!0)),u&&n){const v=m+f.commentStrLength;v<g.length&&g.charCodeAt(v)===32&&(f.commentStrLength+=1)}}if(t===0&&c){u=!1;for(let d=0,h=r.length;d<h;d++)r[d].ignore=!1}return{supported:!0,shouldRemoveComments:u,lines:r}}static _gatherPreflightData(t,n,i,r,o,s,a,l){const c=sI._gatherPreflightCommentStrings(i,r,o,l);return c===null?{supported:!1}:sI._analyzeLines(t,n,i,c,r,s,a,l)}_executeLineComments(t,n,i,r){let o;i.shouldRemoveComments?o=sI._createRemoveLineCommentsOperations(i.lines,r.startLineNumber):(sI._normalizeInsertionPoint(t,i.lines,r.startLineNumber,this._indentSize),o=this._createAddLineCommentsOperations(i.lines,r.startLineNumber));const s=new mt(r.positionLineNumber,r.positionColumn);for(let a=0,l=o.length;a<l;a++)n.addEditOperation(o[a].range,o[a].text),Re.isEmpty(o[a].range)&&Re.getStartPosition(o[a].range).equals(s)&&t.getLineContent(s.lineNumber).length+1===s.column&&(this._deltaColumn=(o[a].text||"").length);this._selectionId=n.trackSelection(r)}_attemptRemoveBlockComment(t,n,i,r){let o=n.startLineNumber,s=n.endLineNumber;const a=r.length+Math.max(t.getLineFirstNonWhitespaceColumn(n.startLineNumber),n.startColumn);let l=t.getLineContent(o).lastIndexOf(i,a-1),c=t.getLineContent(s).indexOf(r,n.endColumn-1-i.length);return l!==-1&&c===-1&&(c=t.getLineContent(o).indexOf(r,l+i.length),s=o),l===-1&&c!==-1&&(l=t.getLineContent(s).lastIndexOf(i,c),o=s),n.isEmpty()&&(l===-1||c===-1)&&(l=t.getLineContent(o).indexOf(i),l!==-1&&(c=t.getLineContent(o).indexOf(r,l+i.length))),l!==-1&&t.getLineContent(o).charCodeAt(l+i.length)===32&&(i+=" "),c!==-1&&t.getLineContent(s).charCodeAt(c-1)===32&&(r=" "+r,c-=1),l!==-1&&c!==-1?_6._createRemoveBlockCommentOperations(new Re(o,l+i.length+1,s,c+1),i,r):null}_executeBlockComment(t,n,i){t.tokenization.tokenizeIfCheap(i.startLineNumber);const r=t.getLanguageIdAtPosition(i.startLineNumber,1),o=this.languageConfigurationService.getLanguageConfiguration(r).comments;if(!o||!o.blockCommentStartToken||!o.blockCommentEndToken)return;const s=o.blockCommentStartToken,a=o.blockCommentEndToken;let l=this._attemptRemoveBlockComment(t,i,s,a);if(!l){if(i.isEmpty()){const c=t.getLineContent(i.startLineNumber);let u=Cp(c);u===-1&&(u=c.length),l=_6._createAddBlockCommentOperations(new Re(i.startLineNumber,u+1,i.startLineNumber,c.length+1),s,a,this._insertSpace)}else l=_6._createAddBlockCommentOperations(new Re(i.startLineNumber,t.getLineFirstNonWhitespaceColumn(i.startLineNumber),i.endLineNumber,t.getLineMaxColumn(i.endLineNumber)),s,a,this._insertSpace);l.length===1&&(this._deltaColumn=s.length+1)}this._selectionId=n.trackSelection(i);for(const c of l)n.addEditOperation(c.range,c.text)}getEditOperations(t,n){let i=this._selection;if(this._moveEndPositionDown=!1,i.startLineNumber===i.endLineNumber&&this._ignoreFirstLine){n.addEditOperation(new Re(i.startLineNumber,t.getLineMaxColumn(i.startLineNumber),i.startLineNumber+1,1),i.startLineNumber===t.getLineCount()?"":`
`),this._selectionId=n.trackSelection(i);return}i.startLineNumber<i.endLineNumber&&i.endColumn===1&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,t.getLineMaxColumn(i.endLineNumber-1)));const r=sI._gatherPreflightData(this._type,this._insertSpace,t,i.startLineNumber,i.endLineNumber,this._ignoreEmptyLines,this._ignoreFirstLine,this.languageConfigurationService);return r.supported?this._executeLineComments(t,n,r,i):this._executeBlockComment(t,n,i)}computeCursorState(t,n){let i=n.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),new Ii(i.selectionStartLineNumber,i.selectionStartColumn+this._deltaColumn,i.positionLineNumber,i.positionColumn+this._deltaColumn)}static _createRemoveLineCommentsOperations(t,n){const i=[];for(let r=0,o=t.length;r<o;r++){const s=t[r];s.ignore||i.push(pl.delete(new Re(n+r,s.commentStrOffset+1,n+r,s.commentStrOffset+s.commentStrLength+1)))}return i}_createAddLineCommentsOperations(t,n){const i=[],r=this._insertSpace?" ":"";for(let o=0,s=t.length;o<s;o++){const a=t[o];a.ignore||i.push(pl.insert(new mt(n+o,a.commentStrOffset+1),a.commentStr+r))}return i}static nextVisibleColumn(t,n,i,r){return i?t+(n-t%n):t+r}static _normalizeInsertionPoint(t,n,i,r){let o=1073741824,s,a;for(let l=0,c=n.length;l<c;l++){if(n[l].ignore)continue;const u=t.getLineContent(i+l);let d=0;for(let h=0,f=n[l].commentStrOffset;d<o&&h<f;h++)d=sI.nextVisibleColumn(d,r,u.charCodeAt(h)===9,1);d<o&&(o=d)}o=Math.floor(o/r)*r;for(let l=0,c=n.length;l<c;l++){if(n[l].ignore)continue;const u=t.getLineContent(i+l);let d=0;for(s=0,a=n[l].commentStrOffset;d<o&&s<a;s++)d=sI.nextVisibleColumn(d,r,u.charCodeAt(s)===9,1);d>o?n[l].commentStrOffset=s-1:n[l].commentStrOffset=s}}}}}),Rte,_yt,wyt,Cyt,Syt,BQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/comment/browser/comment.js"(){wb(),mr(),Dn(),ls(),lu(),qtn(),FQn(),bn(),ha(),Rte=class extends ri{constructor(e,t){super(t),this._type=e}run(e,t){const n=e.get(yl);if(!t.hasModel())return;const i=t.getModel(),r=[],o=i.getOptions(),s=t.getOption(23),a=t.getSelections().map((c,u)=>({selection:c,index:u,ignoreFirstLine:!1}));a.sort((c,u)=>Re.compareRangesUsingStarts(c.selection,u.selection));let l=a[0];for(let c=1;c<a.length;c++){const u=a[c];l.selection.endLineNumber===u.selection.startLineNumber&&(l.index<u.index?u.ignoreFirstLine=!0:(l.ignoreFirstLine=!0,l=u))}for(const c of a)r.push(new Gtn(n,c.selection,o.indentSize,this._type,s.insertSpace,s.ignoreEmptyLines,c.ignoreFirstLine));t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}},_yt=class extends Rte{constructor(){super(0,{id:"editor.action.commentLine",label:R("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:Ge.writable,kbOpts:{kbExpr:Ge.editorTextFocus,primary:2138,weight:100},menuOpts:{menuId:Ti.MenubarEditMenu,group:"5_insert",title:R({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})}},wyt=class extends Rte{constructor(){super(1,{id:"editor.action.addCommentLine",label:R("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:Ge.writable,kbOpts:{kbExpr:Ge.editorTextFocus,primary:pu(2089,2081),weight:100}})}},Cyt=class extends Rte{constructor(){super(2,{id:"editor.action.removeCommentLine",label:R("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:Ge.writable,kbOpts:{kbExpr:Ge.editorTextFocus,primary:pu(2089,2099),weight:100}})}},Syt=class extends ri{constructor(){super({id:"editor.action.blockComment",label:R("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:Ge.writable,kbOpts:{kbExpr:Ge.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:Ti.MenubarEditMenu,group:"5_insert",title:R({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})}run(e,t){const n=e.get(yl);if(!t.hasModel())return;const i=t.getOption(23),r=[],o=t.getSelections();for(const s of o)r.push(new _6(s,i.insertSpace,n));t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}},yn(_yt),yn(wyt),yn(Cyt),yn(Syt)}}),xyt,Lk,CEe,JM,Eyt,Ktn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js"(){var e;Fn(),B7(),wd(),Nt(),Xr(),mr(),ls(),bn(),ha(),er(),xg(),tl(),sa(),mY(),xyt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},Lk=function(t,n){return function(i,r){n(i,r,t)}},JM=(e=class{static get(n){return n.getContribution(CEe.ID)}constructor(n,i,r,o,s,a,l,c){this._contextMenuService=i,this._contextViewService=r,this._contextKeyService=o,this._keybindingService=s,this._menuService=a,this._configurationService=l,this._workspaceContextService=c,this._toDispose=new Jt,this._contextMenuIsBeingShownCount=0,this._editor=n,this._toDispose.add(this._editor.onContextMenu(u=>this._onContextMenu(u))),this._toDispose.add(this._editor.onMouseWheel(u=>{if(this._contextMenuIsBeingShownCount>0){const d=this._contextViewService.getContextViewElement(),h=u.srcElement;h.shadowRoot&&GR(d)===h.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(u=>{this._editor.getOption(24)&&u.keyCode===58&&(u.preventDefault(),u.stopPropagation(),this.showContextMenu())}))}_onContextMenu(n){if(!this._editor.hasModel())return;if(!this._editor.getOption(24)){this._editor.focus(),n.target.position&&!this._editor.getSelection().containsPosition(n.target.position)&&this._editor.setPosition(n.target.position);return}if(n.target.type===12||n.target.type===6&&n.target.detail.injectedText)return;if(n.event.preventDefault(),n.event.stopPropagation(),n.target.type===11)return this._showScrollbarContextMenu(n.event);if(n.target.type!==6&&n.target.type!==7&&n.target.type!==1)return;if(this._editor.focus(),n.target.position){let r=!1;for(const o of this._editor.getSelections())if(o.containsPosition(n.target.position)){r=!0;break}r||this._editor.setPosition(n.target.position)}let i=null;n.target.type!==1&&(i=n.event),this.showContextMenu(i)}showContextMenu(n){if(!this._editor.getOption(24)||!this._editor.hasModel())return;const i=this._getMenuActions(this._editor.getModel(),this._editor.contextMenuId);i.length>0&&this._doShowContextMenu(i,n)}_getMenuActions(n,i){const r=[],o=this._menuService.getMenuActions(i,this._contextKeyService,{arg:n.uri});for(const s of o){const[,a]=s;let l=0;for(const c of a)if(c instanceof cR){const u=this._getMenuActions(n,c.item.submenu);u.length>0&&(r.push(new ZR(c.id,c.label,u)),l++)}else r.push(c),l++;l&&r.push(new zd)}return r.length&&r.pop(),r}_doShowContextMenu(n,i=null){if(!this._editor.hasModel())return;const r=this._editor.getOption(60);this._editor.updateOptions({hover:{enabled:!1}});let o=i;if(!o){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const a=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),l=_c(this._editor.getDomNode()),c=l.left+a.left,u=l.top+a.top+a.height;o={x:c,y:u}}const s=this._editor.getOption(128)&&!Z_;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:s?this._editor.getOverflowWidgetsDomNode()??this._editor.getDomNode():void 0,getAnchor:()=>o,getActions:()=>n,getActionViewItem:a=>{const l=this._keybindingFor(a);if(l)return new o2(a,a,{label:!0,keybinding:l.getLabel(),isMenu:!0});const c=a;return typeof c.getActionViewItem=="function"?c.getActionViewItem():new o2(a,a,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:a=>this._keybindingFor(a),onHide:a=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:r})}})}_showScrollbarContextMenu(n){if(!this._editor.hasModel()||d3n(this._workspaceContextService.getWorkspace()))return;const i=this._editor.getOption(73);let r=0;const o=u=>({id:`menu-action-${++r}`,label:u.label,tooltip:"",class:void 0,enabled:typeof u.enabled>"u"?!0:u.enabled,checked:u.checked,run:u.run}),s=(u,d)=>new ZR(`menu-action-${++r}`,u,d,void 0),a=(u,d,h,f,p)=>{if(!d)return o({label:u,enabled:d,run:()=>{}});const g=v=>()=>{this._configurationService.updateValue(h,v)},m=[];for(const v of p)m.push(o({label:v.label,checked:f===v.value,run:g(v.value)}));return s(u,m)},l=[];l.push(o({label:R("context.minimap.minimap","Minimap"),checked:i.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!i.enabled)}})),l.push(new zd),l.push(o({label:R("context.minimap.renderCharacters","Render Characters"),enabled:i.enabled,checked:i.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!i.renderCharacters)}})),l.push(a(R("context.minimap.size","Vertical size"),i.enabled,"editor.minimap.size",i.size,[{label:R("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:R("context.minimap.size.fill","Fill"),value:"fill"},{label:R("context.minimap.size.fit","Fit"),value:"fit"}])),l.push(a(R("context.minimap.slider","Slider"),i.enabled,"editor.minimap.showSlider",i.showSlider,[{label:R("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:R("context.minimap.slider.always","Always"),value:"always"}]));const c=this._editor.getOption(128)&&!Z_;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:c?this._editor.getDomNode():void 0,getAnchor:()=>n,getActions:()=>l,onHide:u=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(n){return this._keybindingService.lookupKeybinding(n.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}},CEe=e,e.ID="editor.contrib.contextmenu",e),JM=CEe=xyt([Lk(1,dm),Lk(2,Jx),Lk(3,ur),Lk(4,Cs),Lk(5,Pv),Lk(6,co),Lk(7,lL)],JM),Eyt=class extends ri{constructor(){super({id:"editor.action.showContextMenu",label:R("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:Ge.textInputFocus,primary:1092,weight:100}})}run(t,n){JM.get(n)?.showContextMenu()}},qo(JM.ID,JM,2),yn(Eyt)}}),Fte,Bte,WV,Ayt,Dyt,jQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js"(){var e;Nt(),mr(),ls(),bn(),Fte=class{constructor(t){this.selections=t}equals(t){const n=this.selections.length,i=t.selections.length;if(n!==i)return!1;for(let r=0;r<n;r++)if(!this.selections[r].equalsSelection(t.selections[r]))return!1;return!0}},Bte=class{constructor(t,n,i){this.cursorState=t,this.scrollTop=n,this.scrollLeft=i}},WV=(e=class extends St{static get(n){return n.getContribution(e.ID)}constructor(n){super(),this._editor=n,this._isCursorUndoRedo=!1,this._undoStack=[],this._redoStack=[],this._register(n.onDidChangeModel(i=>{this._undoStack=[],this._redoStack=[]})),this._register(n.onDidChangeModelContent(i=>{this._undoStack=[],this._redoStack=[]})),this._register(n.onDidChangeCursorSelection(i=>{if(this._isCursorUndoRedo||!i.oldSelections||i.oldModelVersionId!==i.modelVersionId)return;const r=new Fte(i.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(r)||(this._undoStack.push(new Bte(r,n.getScrollTop(),n.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}cursorUndo(){!this._editor.hasModel()||this._undoStack.length===0||(this._redoStack.push(new Bte(new Fte(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){!this._editor.hasModel()||this._redoStack.length===0||(this._undoStack.push(new Bte(new Fte(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(n){this._isCursorUndoRedo=!0,this._editor.setSelections(n.cursorState.selections),this._editor.setScrollPosition({scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),this._isCursorUndoRedo=!1}},e.ID="editor.contrib.cursorUndoRedoController",e),Ayt=class extends ri{constructor(){super({id:"cursorUndo",label:R("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:Ge.textInputFocus,primary:2099,weight:100}})}run(t,n,i){WV.get(n)?.cursorUndo()}},Dyt=class extends ri{constructor(){super({id:"cursorRedo",label:R("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(t,n,i){WV.get(n)?.cursorRedo()}},qo(WV.ID,WV,0),yn(Ayt),yn(Dyt)}}),zQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dnd/browser/dnd.css"(){}}),Ytn,VQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dnd/browser/dragAndDropCommand.js"(){Dn(),zs(),Ytn=class{constructor(e,t,n){this.selection=e,this.targetPosition=t,this.copy=n,this.targetSelection=null}getEditOperations(e,t){const n=e.getValueInRange(this.selection);if(this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new Re(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),n),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new Ii(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new Ii(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber<this.selection.endLineNumber){this.targetSelection=new Ii(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new Ii(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column-this.selection.endColumn+this.selection.startColumn:this.targetPosition.column-this.selection.endColumn+this.selection.startColumn,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new Ii(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn)}computeCursorState(e,t){return this.targetSelection}}}});function g4(e){return xo?e.altKey:e.ctrlKey}var SEe,HQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dnd/browser/dnd.js"(){var e;Nt(),Xr(),zQn(),mr(),Hi(),Dn(),zs(),Ac(),VQn(),SEe=(e=class extends St{constructor(n){super(),this._editor=n,this._dndDecorationIds=this._editor.createDecorationsCollection(),this._register(this._editor.onMouseDown(i=>this._onEditorMouseDown(i))),this._register(this._editor.onMouseUp(i=>this._onEditorMouseUp(i))),this._register(this._editor.onMouseDrag(i=>this._onEditorMouseDrag(i))),this._register(this._editor.onMouseDrop(i=>this._onEditorMouseDrop(i))),this._register(this._editor.onMouseDropCanceled(()=>this._onEditorMouseDropCanceled())),this._register(this._editor.onKeyDown(i=>this.onEditorKeyDown(i))),this._register(this._editor.onKeyUp(i=>this.onEditorKeyUp(i))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(n){!this._editor.getOption(35)||this._editor.getOption(22)||(g4(n)&&(this._modifierPressed=!0),this._mouseDown&&g4(n)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(n){!this._editor.getOption(35)||this._editor.getOption(22)||(g4(n)&&(this._modifierPressed=!1),this._mouseDown&&n.keyCode===e.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(n){this._mouseDown=!0}_onEditorMouseUp(n){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(n){const i=n.target;if(this._dragSelection===null){const o=(this._editor.getSelections()||[]).filter(s=>i.position&&s.containsPosition(i.position));if(o.length===1)this._dragSelection=o[0];else return}g4(n.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),i.position&&(this._dragSelection.containsPosition(i.position)?this._removeDecoration():this.showAt(i.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(n){if(n.target&&(this._hitContent(n.target)||this._hitMargin(n.target))&&n.target.position){const i=new mt(n.target.position.lineNumber,n.target.position.column);if(this._dragSelection===null){let r=null;if(n.event.shiftKey){const o=this._editor.getSelection();if(o){const{selectionStartLineNumber:s,selectionStartColumn:a}=o;r=[new Ii(s,a,i.lineNumber,i.column)]}}else r=(this._editor.getSelections()||[]).map(o=>o.containsPosition(i)?new Ii(i.lineNumber,i.column,i.lineNumber,i.column):o);this._editor.setSelections(r||[],"mouse",3)}else(!this._dragSelection.containsPosition(i)||(g4(n.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(i)||this._dragSelection.getStartPosition().equals(i)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(e.ID,new Ytn(this._dragSelection,i,g4(n.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(n){this._dndDecorationIds.set([{range:new Re(n.lineNumber,n.column,n.lineNumber,n.column),options:e._DECORATION_OPTIONS}]),this._editor.revealPosition(n,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(n){return n.type===6||n.type===7}_hitMargin(n){return n.type===2||n.type===3||n.type===4}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}},e.ID="editor.contrib.dragAndDrop",e.TRIGGER_KEY_VALUE=xo?6:5,e._DECORATION_OPTIONS=Gr.register({description:"dnd-target",className:"dnd-target"}),e),qo(SEe.ID,SEe,2)}}),WQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js"(){var e;YC(),mr(),ls(),oF(),Oen(),b$e(),bn(),qo(tx.ID,tx,0),W7(Wae),$n(new class extends Hd{constructor(){super({id:F6e,precondition:Rde,kbOpts:{weight:100,primary:2137}})}runEditorCommand(t,n){return tx.get(n)?.changePasteType()}}),$n(new class extends Hd{constructor(){super({id:"editor.hidePasteWidget",precondition:Rde,kbOpts:{weight:100,primary:9}})}runEditorCommand(t,n){tx.get(n)?.clearWidgets()}}),yn((e=class extends ri{constructor(){super({id:"editor.action.pasteAs",label:R("pasteAs","Paste As..."),alias:"Paste As...",precondition:Ge.writable,metadata:{description:"Paste as",args:[{name:"args",schema:e.argsSchema}]}})}run(n,i,r){let o=typeof r?.kind=="string"?r.kind:void 0;return!o&&r&&(o=typeof r.id=="string"?r.id:void 0),tx.get(i)?.pasteAs(o?new Tl(o):void 0)}},e.argsSchema={type:"object",properties:{kind:{type:"string",description:R("pasteAs.kind","The kind of the paste edit to try applying. If not provided or there are multiple edits for this kind, the editor will show a picker.")}}},e)),yn(class extends ri{constructor(){super({id:"editor.action.pasteAsText",label:R("pasteAsText","Paste as Text"),alias:"Paste as Text",precondition:Ge.writable})}run(t,n){return tx.get(n)?.pasteAs({providerId:o8.id})}})}}),Qtn,o8e,Ztn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js"(){Qtn=class{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}},o8e=class{constructor(e){this.identifier=e}}}}),s8e,UQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js"(){vf(),li(),Ztn(),s8e=Ao("treeViewsDndService"),Oo(s8e,Qtn,1)}}),Tyt,UV,xEe,a8e,l8e,zde,VO,$Qn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js"(){var e;rr(),fr(),Zge(),YC(),Nt(),Sen(),Dn(),Eo(),Ztn(),UQn(),WN(),w$e(),bn(),sa(),er(),ben(),li(),_$e(),Men(),Tyt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},UV=function(t,n){return function(i,r){n(i,r,t)}},a8e="editor.experimental.dropIntoEditor.defaultProvider",l8e="editor.changeDropType",zde=new Qn("dropWidgetVisible",!1,R("dropWidgetVisible","Whether the drop widget is showing")),VO=(e=class extends St{static get(n){return n.getContribution(xEe.ID)}constructor(n,i,r,o,s){super(),this._configService=r,this._languageFeaturesService=o,this._treeViewsDragAndDropService=s,this.treeItemsTransfer=yen.getInstance(),this._dropProgressManager=this._register(i.createInstance(b$,"dropIntoEditor",n)),this._postDropWidgetManager=this._register(i.createInstance(_$,"dropIntoEditor",n,zde,{id:l8e,label:R("postDropWidgetTitle","Show drop options...")})),this._register(n.onDropIntoEditor(a=>this.onDropIntoEditor(n,a.position,a.event)))}clearWidgets(){this._postDropWidgetManager.clear()}changeDropType(){this._postDropWidgetManager.tryShowSelector()}async onDropIntoEditor(n,i,r){if(!r.dataTransfer||!n.hasModel())return;this._currentOperation?.cancel(),n.focus(),n.setPosition(i);const o=vd(async s=>{const a=new Jt,l=a.add(new WD(n,1,void 0,s));try{const c=await this.extractDataTransferData(r);if(c.size===0||l.token.isCancellationRequested)return;const u=n.getModel();if(!u)return;const d=this._languageFeaturesService.documentDropEditProvider.ordered(u).filter(f=>f.dropMimeTypes?f.dropMimeTypes.some(p=>c.matches(p)):!0),h=a.add(await this.getDropEdits(d,u,i,c,l));if(l.token.isCancellationRequested)return;if(h.edits.length){const f=this.getInitialActiveEditIndex(u,h.edits),p=n.getOption(36).showDropSelector==="afterDrop";await this._postDropWidgetManager.applyEditAndShowIfNeeded([Re.fromPositions(i)],{activeEditIndex:f,allEdits:h.edits},p,async g=>g,s)}}finally{a.dispose(),this._currentOperation===o&&(this._currentOperation=void 0)}});this._dropProgressManager.showWhile(i,R("dropIntoEditorProgress","Running drop handlers. Click to cancel"),o,{cancel:()=>o.cancel()}),this._currentOperation=o}async getDropEdits(n,i,r,o,s){const a=new Jt,l=await UK(Promise.all(n.map(async u=>{try{const d=await u.provideDocumentDropEdits(i,r,o,s.token);return d&&a.add(d),d?.edits.map(h=>({...h,providerId:u.id}))}catch(d){console.error(d)}})),s.token),c=ew(l??[]).flat();return{edits:Nen(c),dispose:()=>a.dispose()}}getInitialActiveEditIndex(n,i){const r=this._configService.getValue(a8e,{resource:n.uri});for(const[o,s]of Object.entries(r)){const a=new Tl(s),l=i.findIndex(c=>a.value===c.providerId&&c.handledMimeType&&men(o,[c.handledMimeType]));if(l>=0)return l}return 0}async extractDataTransferData(n){if(!n.dataTransfer)return new y$e;const i=wen(n.dataTransfer);if(this.treeItemsTransfer.hasData(o8e.prototype)){const r=this.treeItemsTransfer.getData(o8e.prototype);if(Array.isArray(r))for(const o of r){const s=await this._treeViewsDragAndDropService.removeDragOperationTransfer(o.identifier);if(s)for(const[a,l]of s)i.replace(a,l)}}return i}},xEe=e,e.ID="editor.contrib.dropIntoEditorController",e),VO=xEe=Tyt([UV(1,ji),UV(2,co),UV(3,gi),UV(4,s8e)],VO)}}),qQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js"(){mr(),aWe(),oF(),b$e(),bn(),gT(),Fu(),$Qn(),qo(VO.ID,VO,2),W7(Hae),$n(new class extends Hd{constructor(){super({id:l8e,precondition:zde,kbOpts:{weight:100,primary:2137}})}runEditorCommand(e,t,n){VO.get(t)?.changeDropType()}}),$n(new class extends Hd{constructor(){super({id:"editor.hideDropWidget",precondition:zde,kbOpts:{weight:100,primary:9}})}runEditorCommand(e,t,n){VO.get(t)?.clearWidgets()}}),ml.as(Qy.Configuration).registerConfiguration({...U6,properties:{[a8e]:{type:"object",scope:5,description:R("defaultProviderDescription","Configures the default drop provider to use for content of a given mime type."),default:{},additionalProperties:{type:"string"}}}})}}),Xtn,GQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findDecorations.js"(){var e;Dn(),Cd(),Ac(),ll(),Ys(),Xtn=(e=class{constructor(n){this._editor=n,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const n=this._findScopeDecorationIds.map(i=>this._editor.getModel().getDecorationRange(i)).filter(i=>!!i);if(n.length)return n}return null}getStartPosition(){return this._startPosition}setStartPosition(n){this._startPosition=n,this.setCurrentFindMatch(null)}_getDecorationIndex(n){const i=this._decorations.indexOf(n);return i>=0?i+1:1}getDecorationRangeAt(n){const i=n<this._decorations.length?this._decorations[n]:null;return i?this._editor.getModel().getDecorationRange(i):null}getCurrentMatchesPosition(n){const i=this._editor.getModel().getDecorationsInRange(n);for(const r of i){const o=r.options;if(o===e._FIND_MATCH_DECORATION||o===e._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(r.id)}return 0}setCurrentFindMatch(n){let i=null,r=0;if(n)for(let o=0,s=this._decorations.length;o<s;o++){const a=this._editor.getModel().getDecorationRange(this._decorations[o]);if(n.equalsRange(a)){i=this._decorations[o],r=o+1;break}}return(this._highlightedDecorationId!==null||i!==null)&&this._editor.changeDecorations(o=>{if(this._highlightedDecorationId!==null&&(o.changeDecorationOptions(this._highlightedDecorationId,e._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),i!==null&&(this._highlightedDecorationId=i,o.changeDecorationOptions(this._highlightedDecorationId,e._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(o.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),i!==null){let s=this._editor.getModel().getDecorationRange(i);if(s.startLineNumber!==s.endLineNumber&&s.endColumn===1){const a=s.endLineNumber-1,l=this._editor.getModel().getLineMaxColumn(a);s=new Re(s.startLineNumber,s.startColumn,a,l)}this._rangeHighlightDecorationId=o.addDecoration(s,e._RANGE_HIGHLIGHT_DECORATION)}}),r}set(n,i){this._editor.changeDecorations(r=>{let o=e._FIND_MATCH_DECORATION;const s=[];if(n.length>1e3){o=e._FIND_MATCH_NO_OVERVIEW_DECORATION;const l=this._editor.getModel().getLineCount(),u=this._editor.getLayoutInfo().height/l,d=Math.max(2,Math.ceil(3/u));let h=n[0].range.startLineNumber,f=n[0].range.endLineNumber;for(let p=1,g=n.length;p<g;p++){const m=n[p].range;f+d>=m.startLineNumber?m.endLineNumber>f&&(f=m.endLineNumber):(s.push({range:new Re(h,1,f,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),h=m.startLineNumber,f=m.endLineNumber)}s.push({range:new Re(h,1,f,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const a=new Array(n.length);for(let l=0,c=n.length;l<c;l++)a[l]={range:n[l].range,options:o};this._decorations=r.deltaDecorations(this._decorations,a),this._overviewRulerApproximateDecorations=r.deltaDecorations(this._overviewRulerApproximateDecorations,s),this._rangeHighlightDecorationId&&(r.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),this._findScopeDecorationIds.length&&(this._findScopeDecorationIds.forEach(l=>r.removeDecoration(l)),this._findScopeDecorationIds=[]),i?.length&&(this._findScopeDecorationIds=i.map(l=>r.addDecoration(l,e._FIND_SCOPE_DECORATION)))})}matchBeforePosition(n){if(this._decorations.length===0)return null;for(let i=this._decorations.length-1;i>=0;i--){const r=this._decorations[i],o=this._editor.getModel().getDecorationRange(r);if(!(!o||o.endLineNumber>n.lineNumber)){if(o.endLineNumber<n.lineNumber)return o;if(!(o.endColumn>n.column))return o}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(n){if(this._decorations.length===0)return null;for(let i=0,r=this._decorations.length;i<r;i++){const o=this._decorations[i],s=this._editor.getModel().getDecorationRange(o);if(!(!s||s.startLineNumber<n.lineNumber)){if(s.startLineNumber>n.lineNumber)return s;if(!(s.startColumn<n.column))return s}}return this._editor.getModel().getDecorationRange(this._decorations[0])}_allDecorations(){let n=[];return n=n.concat(this._decorations),n=n.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationIds.length&&n.push(...this._findScopeDecorationIds),this._rangeHighlightDecorationId&&n.push(this._rangeHighlightDecorationId),n}},e._CURRENT_FIND_MATCH_DECORATION=Gr.register({description:"current-find-match",stickiness:1,zIndex:13,className:"currentFindMatch",inlineClassName:"currentFindMatchInline",showIfCollapsed:!0,overviewRuler:{color:ec(Yoe),position:x0.Center},minimap:{color:ec(Iue),position:1}}),e._FIND_MATCH_DECORATION=Gr.register({description:"find-match",stickiness:1,zIndex:10,className:"findMatch",inlineClassName:"findMatchInline",showIfCollapsed:!0,overviewRuler:{color:ec(Yoe),position:x0.Center},minimap:{color:ec(Iue),position:1}}),e._FIND_MATCH_NO_OVERVIEW_DECORATION=Gr.register({description:"find-match-no-overview",stickiness:1,className:"findMatch",showIfCollapsed:!0}),e._FIND_MATCH_ONLY_OVERVIEW_DECORATION=Gr.register({description:"find-match-only-overview",stickiness:1,overviewRuler:{color:ec(Yoe),position:x0.Center}}),e._RANGE_HIGHLIGHT_DECORATION=Gr.register({description:"find-range-highlight",stickiness:1,className:"rangeHighlight",isWholeLine:!0}),e._FIND_SCOPE_DECORATION=Gr.register({description:"find-scope",className:"findScope",isWholeLine:!0}),e)}}),Jtn,KQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/replaceAllCommand.js"(){Dn(),Jtn=class{constructor(e,t,n){this._editorSelection=e,this._ranges=t,this._replaceStrings=n,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){const n=[];for(let o=0;o<this._ranges.length;o++)n.push({range:this._ranges[o],text:this._replaceStrings[o]});n.sort((o,s)=>Re.compareRangesUsingStarts(o.range,s.range));const i=[];let r=n[0];for(let o=1;o<n.length;o++)r.range.endLineNumber===n[o].range.startLineNumber&&r.range.endColumn===n[o].range.startColumn?(r.range=r.range.plusRange(n[o].range),r.text=r.text+n[o].text):(i.push(r),r=n[o]);i.push(r);for(const o of i)t.addEditOperation(o.range,o.text)}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)}}}});function enn(e,t){if(e&&e[0]!==""){const n=kyt(e,t,"-"),i=kyt(e,t,"_");return n&&!i?Iyt(e,t,"-"):!n&&i?Iyt(e,t,"_"):e[0].toUpperCase()===e[0]?t.toUpperCase():e[0].toLowerCase()===e[0]?t.toLowerCase():A9n(e[0][0])&&t.length>0?t[0].toUpperCase()+t.substr(1):e[0][0].toUpperCase()!==e[0][0]&&t.length>0?t[0].toLowerCase()+t.substr(1):t}else return t}function kyt(e,t,n){return e[0].indexOf(n)!==-1&&t.indexOf(n)!==-1&&e[0].split(n).length===t.split(n).length}function Iyt(e,t,n){const i=t.split(n),r=e[0].split(n);let o="";return i.forEach((s,a)=>{o+=enn([r[a]],s)+n}),o.slice(0,-1)}var YQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/search.js"(){Ki()}});function QQn(e){if(!e||e.length===0)return new Vde(null);const t=[],n=new tnn(e);for(let i=0,r=e.length;i<r;i++){const o=e.charCodeAt(i);if(o===92){if(i++,i>=r)break;const s=e.charCodeAt(i);switch(s){case 92:n.emitUnchanged(i-1),n.emitStatic("\\",i+1);break;case 110:n.emitUnchanged(i-1),n.emitStatic(`
`,i+1);break;case 116:n.emitUnchanged(i-1),n.emitStatic("	",i+1);break;case 117:case 85:case 108:case 76:n.emitUnchanged(i-1),n.emitStatic("",i+1),t.push(String.fromCharCode(s));break}continue}if(o===36){if(i++,i>=r)break;const s=e.charCodeAt(i);if(s===36){n.emitUnchanged(i-1),n.emitStatic("$",i+1);continue}if(s===48||s===38){n.emitUnchanged(i-1),n.emitMatchIndex(0,i+1,t),t.length=0;continue}if(49<=s&&s<=57){let a=s-48;if(i+1<r){const l=e.charCodeAt(i+1);if(48<=l&&l<=57){i++,a=a*10+(l-48),n.emitUnchanged(i-2),n.emitMatchIndex(a,i+1,t),t.length=0;continue}}n.emitUnchanged(i-1),n.emitMatchIndex(a,i+1,t),t.length=0;continue}}}return n.finalize()}var EEe,Lyt,Vde,$V,tnn,ZQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/replacePattern.js"(){YQn(),EEe=class{constructor(e){this.staticValue=e,this.kind=0}},Lyt=class{constructor(e){this.pieces=e,this.kind=1}},Vde=class c8e{static fromStaticValue(t){return new c8e([$V.staticValue(t)])}get hasReplacementPatterns(){return this._state.kind===1}constructor(t){!t||t.length===0?this._state=new EEe(""):t.length===1&&t[0].staticValue!==null?this._state=new EEe(t[0].staticValue):this._state=new Lyt(t)}buildReplaceString(t,n){if(this._state.kind===0)return n?enn(t,this._state.staticValue):this._state.staticValue;let i="";for(let r=0,o=this._state.pieces.length;r<o;r++){const s=this._state.pieces[r];if(s.staticValue!==null){i+=s.staticValue;continue}let a=c8e._substitute(s.matchIndex,t);if(s.caseOps!==null&&s.caseOps.length>0){const l=[],c=s.caseOps.length;let u=0;for(let d=0,h=a.length;d<h;d++){if(u>=c){l.push(a.slice(d));break}switch(s.caseOps[u]){case"U":l.push(a[d].toUpperCase());break;case"u":l.push(a[d].toUpperCase()),u++;break;case"L":l.push(a[d].toLowerCase());break;case"l":l.push(a[d].toLowerCase()),u++;break;default:l.push(a[d])}}a=l.join("")}i+=a}return i}static _substitute(t,n){if(n===null)return"";if(t===0)return n[0];let i="";for(;t>0;){if(t<n.length)return(n[t]||"")+i;i=String(t%10)+i,t=Math.floor(t/10)}return"$"+i}},$V=class u8e{static staticValue(t){return new u8e(t,-1,null)}static caseOps(t,n){return new u8e(null,t,n)}constructor(t,n,i){this.staticValue=t,this.matchIndex=n,!i||i.length===0?this.caseOps=null:this.caseOps=i.slice(0)}},tnn=class{constructor(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}emitUnchanged(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e}emitStatic(e,t){this._emitStatic(e),this._lastCharIndex=t}_emitStatic(e){e.length!==0&&(this._currentStaticPiece+=e)}emitMatchIndex(e,t,n){this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=$V.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=$V.caseOps(e,n),this._lastCharIndex=t}finalize(){return this.emitUnchanged(this._source.length),this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=$V.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new Vde(this._result)}}}}),YS,T$,Hde,EW,AW,DW,TW,kW,Ha,iD,Nyt,nnn,sme=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findModel.js"(){Y0(),fr(),Nt(),$7(),Hi(),Dn(),zs(),Jpe(),GQn(),KQn(),ZQn(),er(),YS=new Qn("findWidgetVisible",!1),YS.toNegated(),T$=new Qn("findInputFocussed",!1),Hde=new Qn("replaceInputFocussed",!1),EW={primary:545,mac:{primary:2593}},AW={primary:565,mac:{primary:2613}},DW={primary:560,mac:{primary:2608}},TW={primary:554,mac:{primary:2602}},kW={primary:558,mac:{primary:2606}},Ha={StartFindAction:"actions.find",StartFindWithSelection:"actions.findWithSelection",StartFindWithArgs:"editor.actions.findWithArgs",NextMatchFindAction:"editor.action.nextMatchFindAction",PreviousMatchFindAction:"editor.action.previousMatchFindAction",GoToMatchFindAction:"editor.action.goToMatchFindAction",NextSelectionMatchFindAction:"editor.action.nextSelectionMatchFindAction",PreviousSelectionMatchFindAction:"editor.action.previousSelectionMatchFindAction",StartFindReplaceAction:"editor.action.startFindReplaceAction",CloseFindWidgetCommand:"closeFindWidget",ToggleCaseSensitiveCommand:"toggleFindCaseSensitive",ToggleWholeWordCommand:"toggleFindWholeWord",ToggleRegexCommand:"toggleFindRegex",ToggleSearchScopeCommand:"toggleFindInSelection",TogglePreserveCaseCommand:"togglePreserveCase",ReplaceOneAction:"editor.action.replaceOne",ReplaceAllAction:"editor.action.replaceAll",SelectAllMatchesAction:"editor.action.selectAllMatches"},iD=19999,Nyt=240,nnn=class ole{constructor(t,n){this._toDispose=new Jt,this._editor=t,this._state=n,this._isDisposed=!1,this._startSearchingTimer=new Sb,this._decorations=new Xtn(t),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new Gs(()=>{if(this._editor.hasModel())return this.research(!1)},100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(i=>{(i.reason===3||i.reason===5||i.reason===6)&&this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(i=>{this._ignoreModelContentChanged||(i.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(i=>this._onStateChanged(i))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,xa(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(t){this._isDisposed||this._editor.hasModel()&&(t.searchString||t.isReplaceRevealed||t.isRegex||t.wholeWord||t.matchCase||t.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(()=>{t.searchScope?this.research(t.moveCursor,this._state.searchScope):this.research(t.moveCursor)},Nyt)):t.searchScope?this.research(t.moveCursor,this._state.searchScope):this.research(t.moveCursor))}static _getSearchRange(t,n){return n||t.getFullModelRange()}research(t,n){let i=null;typeof n<"u"?n!==null&&(Array.isArray(n)?i=n:i=[n]):i=this._decorations.getFindScopes(),i!==null&&(i=i.map(a=>{if(a.startLineNumber!==a.endLineNumber){let l=a.endLineNumber;return a.endColumn===1&&(l=l-1),new Re(a.startLineNumber,1,l,this._editor.getModel().getLineMaxColumn(l))}return a}));const r=this._findMatches(i,!1,iD);this._decorations.set(r,i);const o=this._editor.getSelection();let s=this._decorations.getCurrentMatchesPosition(o);if(s===0&&r.length>0){const a=Qq(r.map(l=>l.range),l=>Re.compareRangesUsingStarts(l,o)>=0);s=a>0?a-1+1:s}this._state.changeMatchInfo(s,this._decorations.getCount(),void 0),t&&this._editor.getOption(41).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){const t=this._decorations.getFindScope();return t&&this._editor.revealRangeInCenterIfOutsideViewport(t,0),!0}return!1}_setCurrentFindMatch(t){const n=this._decorations.setCurrentFindMatch(t);this._state.changeMatchInfo(n,this._decorations.getCount(),t),this._editor.setSelection(t),this._editor.revealRangeInCenterIfOutsideViewport(t,0)}_prevSearchPosition(t){const n=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:r}=t;const o=this._editor.getModel();return n||r===1?(i===1?i=o.getLineCount():i--,r=o.getLineMaxColumn(i)):r--,new mt(i,r)}_moveToPrevMatch(t,n=!1){if(!this._state.canNavigateBack()){const u=this._decorations.matchAfterPosition(t);u&&this._setCurrentFindMatch(u);return}if(this._decorations.getCount()<iD){let u=this._decorations.matchBeforePosition(t);u&&u.isEmpty()&&u.getStartPosition().equals(t)&&(t=this._prevSearchPosition(t),u=this._decorations.matchBeforePosition(t)),u&&this._setCurrentFindMatch(u);return}if(this._cannotFind())return;const i=this._decorations.getFindScope(),r=ole._getSearchRange(this._editor.getModel(),i);r.getEndPosition().isBefore(t)&&(t=r.getEndPosition()),t.isBefore(r.getStartPosition())&&(t=r.getEndPosition());const{lineNumber:o,column:s}=t,a=this._editor.getModel();let l=new mt(o,s),c=a.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,!1);if(c&&c.range.isEmpty()&&c.range.getStartPosition().equals(l)&&(l=this._prevSearchPosition(l),c=a.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,!1)),!!c){if(!n&&!r.containsRange(c.range))return this._moveToPrevMatch(c.range.getStartPosition(),!0);this._setCurrentFindMatch(c.range)}}moveToPrevMatch(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())}_nextSearchPosition(t){const n=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:r}=t;const o=this._editor.getModel();return n||r===o.getLineMaxColumn(i)?(i===o.getLineCount()?i=1:i++,r=1):r++,new mt(i,r)}_moveToNextMatch(t){if(!this._state.canNavigateForward()){const i=this._decorations.matchBeforePosition(t);i&&this._setCurrentFindMatch(i);return}if(this._decorations.getCount()<iD){let i=this._decorations.matchAfterPosition(t);i&&i.isEmpty()&&i.getStartPosition().equals(t)&&(t=this._nextSearchPosition(t),i=this._decorations.matchAfterPosition(t)),i&&this._setCurrentFindMatch(i);return}const n=this._getNextMatch(t,!1,!0);n&&this._setCurrentFindMatch(n.range)}_getNextMatch(t,n,i,r=!1){if(this._cannotFind())return null;const o=this._decorations.getFindScope(),s=ole._getSearchRange(this._editor.getModel(),o);s.getEndPosition().isBefore(t)&&(t=s.getStartPosition()),t.isBefore(s.getStartPosition())&&(t=s.getStartPosition());const{lineNumber:a,column:l}=t,c=this._editor.getModel();let u=new mt(a,l),d=c.findNextMatch(this._state.searchString,u,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,n);return i&&d&&d.range.isEmpty()&&d.range.getStartPosition().equals(u)&&(u=this._nextSearchPosition(u),d=c.findNextMatch(this._state.searchString,u,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,n)),d?!r&&!s.containsRange(d.range)?this._getNextMatch(d.range.getEndPosition(),n,i,!0):d:null}moveToNextMatch(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())}_moveToMatch(t){const n=this._decorations.getDecorationRangeAt(t);n&&this._setCurrentFindMatch(n)}moveToMatch(t){this._moveToMatch(t)}_getReplacePattern(){return this._state.isRegex?QQn(this._state.replaceString):Vde.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;const t=this._getReplacePattern(),n=this._editor.getSelection(),i=this._getNextMatch(n.getStartPosition(),!0,!1);if(i)if(n.equalsRange(i.range)){const r=t.buildReplaceString(i.matches,this._state.preserveCase),o=new dh(n,r);this._executeEditorCommand("replace",o),this._decorations.setStartPosition(new mt(n.startLineNumber,n.startColumn+r.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(i.range)}_findMatches(t,n,i){const r=(t||[null]).map(o=>ole._getSearchRange(this._editor.getModel(),o));return this._editor.getModel().findMatches(this._state.searchString,r,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,n,i)}replaceAll(){if(!this._hasMatches())return;const t=this._decorations.getFindScopes();t===null&&this._state.matchesCount>=iD?this._largeReplaceAll():this._regularReplaceAll(t),this.research(!1)}_largeReplaceAll(){const n=new dI(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null).parseSearchRequest();if(!n)return;let i=n.regex;if(!i.multiline){let d="mu";i.ignoreCase&&(d+="i"),i.global&&(d+="g"),i=new RegExp(i.source,d)}const r=this._editor.getModel(),o=r.getValue(1),s=r.getFullModelRange(),a=this._getReplacePattern();let l;const c=this._state.preserveCase;a.hasReplacementPatterns||c?l=o.replace(i,function(){return a.buildReplaceString(arguments,c)}):l=o.replace(i,a.buildReplaceString(null,c));const u=new Ige(s,l,this._editor.getSelection());this._executeEditorCommand("replaceAll",u)}_regularReplaceAll(t){const n=this._getReplacePattern(),i=this._findMatches(t,n.hasReplacementPatterns||this._state.preserveCase,1073741824),r=[];for(let s=0,a=i.length;s<a;s++)r[s]=n.buildReplaceString(i[s].matches,this._state.preserveCase);const o=new Jtn(this._editor.getSelection(),i.map(s=>s.range),r);this._executeEditorCommand("replaceAll",o)}selectAllMatches(){if(!this._hasMatches())return;const t=this._decorations.getFindScopes();let i=this._findMatches(t,!1,1073741824).map(o=>new Ii(o.range.startLineNumber,o.range.startColumn,o.range.endLineNumber,o.range.endColumn));const r=this._editor.getSelection();for(let o=0,s=i.length;o<s;o++)if(i[o].equalsRange(r)){i=[r].concat(i.slice(0,o)).concat(i.slice(o+1));break}this._editor.setSelections(i)}_executeEditorCommand(t,n){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(t,n),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}}}}}),XQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findOptionsWidget.css"(){}}),inn,JQn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findOptionsWidget.js"(){var e;Fn(),XQn(),bYt(),mw(),fr(),sme(),ll(),Lh(),inn=(e=class extends Ov{constructor(n,i,r){super(),this._hideSoon=this._register(new Gs(()=>this._hide(),2e3)),this._isVisible=!1,this._editor=n,this._state=i,this._keybindingService=r,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.style.zIndex="12",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const o={inputActiveOptionBorder:ni(zq),inputActiveOptionForeground:ni(Vq),inputActiveOptionBackground:ni(Q8)},s=this._register(a9());this.caseSensitive=this._register(new XWe({appendTitle:this._keybindingLabelFor(Ha.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase,hoverDelegate:s,...o})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new JWe({appendTitle:this._keybindingLabelFor(Ha.ToggleWholeWordCommand),isChecked:this._state.wholeWord,hoverDelegate:s,...o})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new eUe({appendTitle:this._keybindingLabelFor(Ha.ToggleRegexCommand),isChecked:this._state.isRegex,hoverDelegate:s,...o})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(a=>{let l=!1;a.isRegex&&(this.regex.checked=this._state.isRegex,l=!0),a.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,l=!0),a.matchCase&&(this.caseSensitive.checked=this._state.matchCase,l=!0),!this._state.isRevealed&&l&&this._revealTemporarily()})),this._register(qt(this._domNode,kn.MOUSE_LEAVE,a=>this._onMouseLeave())),this._register(qt(this._domNode,"mouseover",a=>this._onMouseOver()))}_keybindingLabelFor(n){const i=this._keybindingService.lookupKeybinding(n);return i?` (${i.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return e.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}},e.ID="editor.contrib.findOptionsWidget",e)}});function jte(e,t){return e===1?!0:e===2?!1:t}var rnn,eZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findState.js"(){Un(),Nt(),Dn(),sme(),rnn=class extends St{get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return jte(this._isRegexOverride,this._isRegex)}get wholeWord(){return jte(this._wholeWordOverride,this._wholeWord)}get matchCase(){return jte(this._matchCaseOverride,this._matchCase)}get preserveCase(){return jte(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}constructor(){super(),this._onFindReplaceStateChange=this._register(new bt),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}changeMatchInfo(e,t,n){const i={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let r=!1;t===0&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,i.matchesPosition=!0,r=!0),this._matchesCount!==t&&(this._matchesCount=t,i.matchesCount=!0,r=!0),typeof n<"u"&&(Re.equalsRange(this._currentMatch,n)||(this._currentMatch=n,i.currentMatch=!0,r=!0)),r&&this._onFindReplaceStateChange.fire(i)}change(e,t,n=!0){const i={moveCursor:t,updateHistory:n,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let r=!1;const o=this.isRegex,s=this.wholeWord,a=this.matchCase,l=this.preserveCase;typeof e.searchString<"u"&&this._searchString!==e.searchString&&(this._searchString=e.searchString,i.searchString=!0,r=!0),typeof e.replaceString<"u"&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,i.replaceString=!0,r=!0),typeof e.isRevealed<"u"&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,i.isRevealed=!0,r=!0),typeof e.isReplaceRevealed<"u"&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,i.isReplaceRevealed=!0,r=!0),typeof e.isRegex<"u"&&(this._isRegex=e.isRegex),typeof e.wholeWord<"u"&&(this._wholeWord=e.wholeWord),typeof e.matchCase<"u"&&(this._matchCase=e.matchCase),typeof e.preserveCase<"u"&&(this._preserveCase=e.preserveCase),typeof e.searchScope<"u"&&(e.searchScope?.every(c=>this._searchScope?.some(u=>!Re.equalsRange(u,c)))||(this._searchScope=e.searchScope,i.searchScope=!0,r=!0)),typeof e.loop<"u"&&this._loop!==e.loop&&(this._loop=e.loop,i.loop=!0,r=!0),typeof e.isSearching<"u"&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,i.isSearching=!0,r=!0),typeof e.filters<"u"&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,i.filters=!0,r=!0),this._isRegexOverride=typeof e.isRegexOverride<"u"?e.isRegexOverride:0,this._wholeWordOverride=typeof e.wholeWordOverride<"u"?e.wholeWordOverride:0,this._matchCaseOverride=typeof e.matchCaseOverride<"u"?e.matchCaseOverride:0,this._preserveCaseOverride=typeof e.preserveCaseOverride<"u"?e.preserveCaseOverride:0,o!==this.isRegex&&(r=!0,i.isRegex=!0),s!==this.wholeWord&&(r=!0,i.wholeWord=!0),a!==this.matchCase&&(r=!0,i.matchCase=!0),l!==this.preserveCase&&(r=!0,i.preserveCase=!0),r&&this._onFindReplaceStateChange.fire(i)}canNavigateBack(){return this.canNavigateInLoop()||this.matchesPosition!==1}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition<this.matchesCount}canNavigateInLoop(){return this._loop||this.matchesCount>=iD}}}}),tZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findWidget.css"(){}}),Pyt,Myt,Oyt,onn,nZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/findinput/replaceInput.js"(){Fn(),xY(),nUe(),mw(),ia(),Un(),CYt(),bn(),Lh(),Pyt=R("defaultLabel","input"),Myt=R("label.preserveCaseToggle","Preserve Case"),Oyt=class extends bR{constructor(e){super({icon:An.preserveCase,title:Myt+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??hg("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}},onn=class extends Ov{constructor(e,t,n,i){super(),this._showOptionButtons=n,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new bt),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new bt),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new bt),this._onInput=this._register(new bt),this._onKeyUp=this._register(new bt),this._onPreserveCaseKeyDown=this._register(new bt),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=i.placeholder||"",this.validation=i.validation,this.label=i.label||Pyt;const r=i.appendPreserveCaseLabel||"",o=i.history||[],s=!!i.flexibleHeight,a=!!i.flexibleWidth,l=i.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new tUe(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:o,showHistoryHint:i.showHistoryHint,flexibleHeight:s,flexibleWidth:a,flexibleMaxHeight:l,inputBoxStyles:i.inputBoxStyles})),this.preserveCase=this._register(new Oyt({appendTitle:r,isChecked:!1,...i.toggleStyles})),this._register(this.preserveCase.onChange(d=>{this._onDidOptionChange.fire(d),!d&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(d=>{this._onPreserveCaseKeyDown.fire(d)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const c=[this.preserveCase.domNode];this.onkeydown(this.domNode,d=>{if(d.equals(15)||d.equals(17)||d.equals(9)){const h=c.indexOf(this.domNode.ownerDocument.activeElement);if(h>=0){let f=-1;d.equals(17)?f=(h+1)%c.length:d.equals(15)&&(h===0?f=c.length-1:f=h-1),d.equals(9)?(c[h].blur(),this.inputBox.focus()):f>=0&&c[f].focus(),Po.stop(d,!0)}}});const u=document.createElement("div");u.className="controls",u.style.display=this._showOptionButtons?"block":"none",u.appendChild(this.preserveCase.domNode),this.domNode.appendChild(u),e?.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,d=>this._onKeyDown.fire(d)),this.onkeyup(this.inputBox.inputElement,d=>this._onKeyUp.fire(d)),this.oninput(this.inputBox.inputElement,d=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,d=>this._onMouseDown.fire(d))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){this.inputBox?.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}}});function Ryt(e,t){if(IW.includes(t))throw new Error("Cannot register the same widget multiple times");IW.push(t);const n=new Jt,i=new Qn(ale,!1).bindTo(e),r=new Qn(d8e,!0).bindTo(e),o=new Qn(h8e,!0).bindTo(e),s=()=>{i.set(!0),h8=t},a=()=>{i.set(!1),h8===t&&(h8=void 0)};return Sue(t.element)&&s(),n.add(t.onDidFocus(()=>s())),n.add(t.onDidBlur(()=>a())),n.add(zi(()=>{IW.splice(IW.indexOf(t),1),a()})),{historyNavigationForwardsEnablement:r,historyNavigationBackwardsEnablement:o,dispose(){n.dispose()}}}var AEe,DEe,sle,ale,d8e,h8e,h8,IW,lle,cle,snn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/history/browser/contextScopedHistoryWidget.js"(){rUe(),nZn(),er(),kN(),bn(),Nt(),Fn(),AEe=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},DEe=function(e,t){return function(n,i){t(n,i,e)}},sle=new Qn("suggestWidgetVisible",!1,R("suggestWidgetVisible","Whether suggestion are visible")),ale="historyNavigationWidgetFocus",d8e="historyNavigationForwardsEnabled",h8e="historyNavigationBackwardsEnabled",h8=void 0,IW=[],lle=class extends iUe{constructor(t,n,i,r){super(t,n,i);const o=this._register(r.createScoped(this.inputBox.element));this._register(Ryt(o,this.inputBox))}},lle=AEe([DEe(3,ur)],lle),cle=class extends onn{constructor(t,n,i,r,o=!1){super(t,n,o,i);const s=this._register(r.createScoped(this.inputBox.element));this._register(Ryt(s,this.inputBox))}},cle=AEe([DEe(3,ur)],cle),dp.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:nn.and(nn.has(ale),nn.equals(h8e,!0),nn.not("isComposing"),sle.isEqualTo(!1)),primary:16,secondary:[528],handler:e=>{h8?.showPreviousValue()}}),dp.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:nn.and(nn.has(ale),nn.equals(d8e,!0),nn.not("isComposing"),sle.isEqualTo(!1)),primary:18,secondary:[530],handler:e=>{h8?.showNextValue()}})}});function Fyt(e){return e.lookupKeybinding("history.showPrevious")?.getElectronAccelerator()==="Up"&&e.lookupKeybinding("history.showNext")?.getElectronAccelerator()==="Down"}var iZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/history/browser/historyWidgetKeybindingHint.js"(){}});function Byt(e,t,n){const i=!!t.match(/\n/);if(n&&i&&n.selectionStart>0){e.stopPropagation();return}}function jyt(e,t,n){const i=!!t.match(/\n/);if(n&&i&&n.selectionEnd<n.value.length){e.stopPropagation();return}}var TEe,kEe,zyt,Vyt,Hyt,Wyt,Uyt,$yt,qyt,Gyt,Kyt,Yyt,Qyt,Zyt,Xyt,Jyt,ebt,tbt,nbt,ibt,rbt,IEe,r1,obt,sbt,m4,abt,LEe,NEe,zte,ann,uM,rZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findWidget.js"(){var e;Fn(),Ih(),xY(),EY(),mw(),fr(),ia(),Vi(),Nt(),Xr(),Ki(),tZn(),Dn(),sme(),bn(),snn(),iZn(),ll(),X0(),Ys(),Ra(),VC(),as(),wT(),Lh(),TEe=Xa("find-collapsed",An.chevronRight,R("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),kEe=Xa("find-expanded",An.chevronDown,R("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),zyt=Xa("find-selection",An.selection,R("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),Vyt=Xa("find-replace",An.replace,R("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),Hyt=Xa("find-replace-all",An.replaceAll,R("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),Wyt=Xa("find-previous-match",An.arrowUp,R("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),Uyt=Xa("find-next-match",An.arrowDown,R("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),$yt=R("label.findDialog","Find / Replace"),qyt=R("label.find","Find"),Gyt=R("placeholder.find","Find"),Kyt=R("label.previousMatchButton","Previous Match"),Yyt=R("label.nextMatchButton","Next Match"),Qyt=R("label.toggleSelectionFind","Find in Selection"),Zyt=R("label.closeButton","Close"),Xyt=R("label.replace","Replace"),Jyt=R("placeholder.replace","Replace"),ebt=R("label.replaceButton","Replace"),tbt=R("label.replaceAllButton","Replace All"),nbt=R("label.toggleReplaceButton","Toggle Replace"),ibt=R("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",iD),rbt=R("label.matchesLocation","{0} of {1}"),IEe=R("label.noResults","No results"),r1=419,obt=275,sbt=obt-54,m4=69,abt=33,LEe="ctrlEnterReplaceAll.windows.donotask",NEe=xo?256:2048,zte=class{constructor(t){this.afterLineNumber=t,this.heightInPx=abt,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}},ann=(e=class extends Ov{constructor(n,i,r,o,s,a,l,c,u,d){super(),this._hoverService=d,this._cachedHeight=null,this._revealTimeouts=[],this._codeEditor=n,this._controller=i,this._state=r,this._contextViewProvider=o,this._keybindingService=s,this._contextKeyService=a,this._storageService=c,this._notificationService=u,this._ctrlEnterReplaceAllWarningPrompted=!!c.getBoolean(LEe,0),this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._updateHistoryDelayer=new j0(500),this._register(zi(()=>this._updateHistoryDelayer.cancel())),this._register(this._state.onFindReplaceStateChange(h=>this._onStateChanged(h))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration(h=>{if(h.hasChanged(92)&&(this._codeEditor.getOption(92)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),h.hasChanged(146)&&this._tryUpdateWidgetWidth(),h.hasChanged(2)&&this.updateAccessibilitySupport(),h.hasChanged(41)){const f=this._codeEditor.getOption(41).loop;this._state.change({loop:f},!1);const p=this._codeEditor.getOption(41).addExtraSpaceOnTop;p&&!this._viewZone&&(this._viewZone=new zte(0),this._showViewZone()),!p&&this._viewZone&&this._removeViewZone()}})),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection(()=>{this._isVisible&&this._updateToggleSelectionFindButton()})),this._register(this._codeEditor.onDidFocusEditorWidget(async()=>{if(this._isVisible){const h=await this._controller.getGlobalBufferTerm();h&&h!==this._state.searchString&&(this._state.change({searchString:h},!1),this._findInput.select())}})),this._findInputFocused=T$.bindTo(a),this._findFocusTracker=this._register(yC(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus(()=>{this._findInputFocused.set(!0),this._updateSearchScope()})),this._register(this._findFocusTracker.onDidBlur(()=>{this._findInputFocused.set(!1)})),this._replaceInputFocused=Hde.bindTo(a),this._replaceFocusTracker=this._register(yC(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus(()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()})),this._register(this._replaceFocusTracker.onDidBlur(()=>{this._replaceInputFocused.set(!1)})),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(41).addExtraSpaceOnTop&&(this._viewZone=new zte(0)),this._register(this._codeEditor.onDidChangeModel(()=>{this._isVisible&&(this._viewZoneId=void 0)})),this._register(this._codeEditor.onDidScrollChange(h=>{if(h.scrollTopChanged){this._layoutViewZone();return}setTimeout(()=>{this._layoutViewZone()},0)}))}getId(){return e.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(n){if(n.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(n.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),n.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),n.isReplaceRevealed&&(this._state.isReplaceRevealed?!this._codeEditor.getOption(92)&&!this._isReplaceVisible&&(this._isReplaceVisible=!0,this._replaceInput.width=Gm(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(n.isRevealed||n.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),n.isRegex&&this._findInput.setRegex(this._state.isRegex),n.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),n.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),n.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),n.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),n.searchString||n.matchesCount||n.matchesPosition){const i=this._state.searchString.length>0&&this._state.matchesCount===0;this._domNode.classList.toggle("no-results",i),this._updateMatchesCount(),this._updateButtons()}(n.searchString||n.currentMatch)&&this._layoutViewZone(),n.updateHistory&&this._delayedUpdateHistory(),n.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,Mr)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){this._matchesCount.style.minWidth=m4+"px",this._state.matchesCount>=iD?this._matchesCount.title=ibt:this._matchesCount.title="",this._matchesCount.firstChild?.remove();let n;if(this._state.matchesCount>0){let i=String(this._state.matchesCount);this._state.matchesCount>=iD&&(i+="+");let r=String(this._state.matchesPosition);r==="0"&&(r="?"),n=$R(rbt,r,i)}else n=IEe;this._matchesCount.appendChild(document.createTextNode(n)),mg(this._getAriaLabel(n,this._state.currentMatch,this._state.searchString)),m4=Math.max(m4,this._matchesCount.clientWidth)}_getAriaLabel(n,i,r){if(n===IEe)return r===""?R("ariaSearchNoResultEmpty","{0} found",n):R("ariaSearchNoResult","{0} found for '{1}'",n,r);if(i){const o=R("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",n,r,i.startLineNumber+":"+i.startColumn),s=this._codeEditor.getModel();return s&&i.startLineNumber<=s.getLineCount()&&i.startLineNumber>=1?`${s.getLineContent(i.startLineNumber)}, ${o}`:o}return R("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",n,r)}_updateToggleSelectionFindButton(){const n=this._codeEditor.getSelection(),i=n?n.startLineNumber!==n.endLineNumber||n.startColumn!==n.endColumn:!1,r=this._toggleSelectionFind.checked;this._isVisible&&(r||i)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);const n=this._state.searchString.length>0,i=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&n&&i&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&n&&i&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&n),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&n),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);const r=!this._codeEditor.getOption(92);this._toggleReplaceBtn.setEnabled(this._isVisible&&r)}_reveal(){if(this._revealTimeouts.forEach(n=>{clearTimeout(n)}),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const n=this._codeEditor.getSelection();switch(this._codeEditor.getOption(41).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{const r=!!n&&n.startLineNumber!==n.endLineNumber;this._toggleSelectionFind.checked=r;break}}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout(()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")},0)),this._revealTimeouts.push(setTimeout(()=>{this._findInput.validate()},200)),this._codeEditor.layoutOverlayWidget(this);let i=!0;if(this._codeEditor.getOption(41).seedSearchStringFromSelection&&n){const r=this._codeEditor.getDomNode();if(r){const o=_c(r),s=this._codeEditor.getScrolledVisiblePosition(n.getStartPosition()),a=o.left+(s?s.left:0),l=s?s.top:0;if(this._viewZone&&l<this._viewZone.heightInPx){n.endLineNumber>n.startLineNumber&&(i=!1);const c=YVt(this._domNode).left;a>c&&(i=!1);const u=this._codeEditor.getScrolledVisiblePosition(n.getEndPosition());o.left+(u?u.left:0)>c&&(i=!1)}}}this._showViewZone(i)}}_hide(n){this._revealTimeouts.forEach(i=>{clearTimeout(i)}),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),n&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(n){if(!this._codeEditor.getOption(41).addExtraSpaceOnTop){this._removeViewZone();return}if(!this._isVisible)return;const r=this._viewZone;this._viewZoneId!==void 0||!r||this._codeEditor.changeViewZones(o=>{r.heightInPx=this._getHeight(),this._viewZoneId=o.addZone(r),this._codeEditor.setScrollTop(n||this._codeEditor.getScrollTop()+r.heightInPx)})}_showViewZone(n=!0){if(!this._isVisible||!this._codeEditor.getOption(41).addExtraSpaceOnTop)return;this._viewZone===void 0&&(this._viewZone=new zte(0));const r=this._viewZone;this._codeEditor.changeViewZones(o=>{if(this._viewZoneId!==void 0){const s=this._getHeight();if(s===r.heightInPx)return;const a=s-r.heightInPx;r.heightInPx=s,o.layoutZone(this._viewZoneId),n&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+a);return}else{let s=this._getHeight();if(s-=this._codeEditor.getOption(84).top,s<=0)return;r.heightInPx=s,this._viewZoneId=o.addZone(r),n&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+s)}})}_removeViewZone(){this._codeEditor.changeViewZones(n=>{this._viewZoneId!==void 0&&(n.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))})}_tryUpdateWidgetWidth(){if(!this._isVisible||!this._domNode.isConnected)return;const n=this._codeEditor.getLayoutInfo();if(n.contentWidth<=0){this._domNode.classList.add("hiddenEditor");return}else this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const r=n.width,o=n.minimap.minimapWidth;let s=!1,a=!1,l=!1;if(this._resized&&Gm(this._domNode)>r1){this._domNode.style.maxWidth=`${r-28-o-15}px`,this._replaceInput.width=Gm(this._findInput.domNode);return}if(r1+28+o>=r&&(a=!0),r1+28+o-m4>=r&&(l=!0),r1+28+o-m4>=r+50&&(s=!0),this._domNode.classList.toggle("collapsed-find-widget",s),this._domNode.classList.toggle("narrow-find-widget",l),this._domNode.classList.toggle("reduced-find-widget",a),!l&&!s&&(this._domNode.style.maxWidth=`${r-28-o-15}px`),this._findInput.layout({collapsedFindWidget:s,narrowFindWidget:l,reducedFindWidget:a}),this._resized){const c=this._findInput.inputBox.element.clientWidth;c>0&&(this._replaceInput.width=c)}else this._isReplaceVisible&&(this._replaceInput.width=Gm(this._findInput.domNode))}_getHeight(){let n=0;return n+=4,n+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(n+=4,n+=this._replaceInput.inputBox.height+2),n+=4,n}_tryUpdateHeight(){const n=this._getHeight();return this._cachedHeight!==null&&this._cachedHeight===n?!1:(this._cachedHeight=n,this._domNode.style.height=`${n}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){const n=this._codeEditor.getSelections();n.map(i=>{i.endColumn===1&&i.endLineNumber>i.startLineNumber&&(i=i.setEndPosition(i.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(i.endLineNumber-1)));const r=this._state.currentMatch;return i.startLineNumber!==i.endLineNumber&&!Re.equalsRange(i,r)?i:null}).filter(i=>!!i),n.length&&this._state.change({searchScope:n},!0)}}_onFindInputMouseDown(n){n.middleButton&&n.stopPropagation()}_onFindInputKeyDown(n){if(n.equals(NEe|3))if(this._keybindingService.dispatchEvent(n,n.target)){n.preventDefault();return}else{this._findInput.inputBox.insertAtCursor(`
`),n.preventDefault();return}if(n.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),n.preventDefault();return}if(n.equals(2066)){this._codeEditor.focus(),n.preventDefault();return}if(n.equals(16))return Byt(n,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"));if(n.equals(18))return jyt(n,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"))}_onReplaceInputKeyDown(n){if(n.equals(NEe|3))if(this._keybindingService.dispatchEvent(n,n.target)){n.preventDefault();return}else{Ch&&D_&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(R("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(LEe,!0,0,0)),this._replaceInput.inputBox.insertAtCursor(`
`),n.preventDefault();return}if(n.equals(2)){this._findInput.focusOnCaseSensitive(),n.preventDefault();return}if(n.equals(1026)){this._findInput.focus(),n.preventDefault();return}if(n.equals(2066)){this._codeEditor.focus(),n.preventDefault();return}if(n.equals(16))return Byt(n,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(n.equals(18))return jyt(n,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))}getVerticalSashLeft(n){return 0}_keybindingLabelFor(n){const i=this._keybindingService.lookupKeybinding(n);return i?` (${i.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new lle(null,this._contextViewProvider,{width:sbt,label:qyt,placeholder:Gyt,appendCaseSensitiveLabel:this._keybindingLabelFor(Ha.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(Ha.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(Ha.ToggleRegexCommand),validation:d=>{if(d.length===0||!this._findInput.getRegex())return null;try{return new RegExp(d,"gu"),null}catch(h){return{content:h.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showCommonFindToggles:!0,showHistoryHint:()=>Fyt(this._keybindingService),inputBoxStyles:sG,toggleStyles:oG},this._contextKeyService)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(d=>this._onFindInputKeyDown(d))),this._register(this._findInput.inputBox.onDidChange(()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(d=>{d.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),d.preventDefault())})),this._register(this._findInput.onRegexKeyDown(d=>{d.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),d.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(d=>{this._tryUpdateHeight()&&this._showViewZone()})),Wf&&this._register(this._findInput.onMouseDown(d=>this._onFindInputMouseDown(d))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount();const r=this._register(a9());this._prevBtn=this._register(new uM({label:Kyt+this._keybindingLabelFor(Ha.PreviousMatchFindAction),icon:Wyt,hoverDelegate:r,onTrigger:()=>{RI(this._codeEditor.getAction(Ha.PreviousMatchFindAction)).run().then(void 0,Mr)}},this._hoverService)),this._nextBtn=this._register(new uM({label:Yyt+this._keybindingLabelFor(Ha.NextMatchFindAction),icon:Uyt,hoverDelegate:r,onTrigger:()=>{RI(this._codeEditor.getAction(Ha.NextMatchFindAction)).run().then(void 0,Mr)}},this._hoverService));const o=document.createElement("div");o.className="find-part",o.appendChild(this._findInput.domNode);const s=document.createElement("div");s.className="find-actions",o.appendChild(s),s.appendChild(this._matchesCount),s.appendChild(this._prevBtn.domNode),s.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new bR({icon:zyt,title:Qyt+this._keybindingLabelFor(Ha.ToggleSearchScopeCommand),isChecked:!1,hoverDelegate:r,inputActiveOptionBackground:ni(Q8),inputActiveOptionBorder:ni(zq),inputActiveOptionForeground:ni(Vq)})),this._register(this._toggleSelectionFind.onChange(()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let d=this._codeEditor.getSelections();d=d.map(h=>(h.endColumn===1&&h.endLineNumber>h.startLineNumber&&(h=h.setEndPosition(h.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(h.endLineNumber-1))),h.isEmpty()?null:h)).filter(h=>!!h),d.length&&this._state.change({searchScope:d},!0)}}else this._state.change({searchScope:null},!0)})),s.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new uM({label:Zyt+this._keybindingLabelFor(Ha.CloseFindWidgetCommand),icon:gUe,hoverDelegate:r,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:d=>{d.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),d.preventDefault())}},this._hoverService)),this._replaceInput=this._register(new cle(null,void 0,{label:Xyt,placeholder:Jyt,appendPreserveCaseLabel:this._keybindingLabelFor(Ha.TogglePreserveCaseCommand),history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>Fyt(this._keybindingService),inputBoxStyles:sG,toggleStyles:oG},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(d=>this._onReplaceInputKeyDown(d))),this._register(this._replaceInput.inputBox.onDidChange(()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(d=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(d=>{d.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),d.preventDefault())}));const a=this._register(a9());this._replaceBtn=this._register(new uM({label:ebt+this._keybindingLabelFor(Ha.ReplaceOneAction),icon:Vyt,hoverDelegate:a,onTrigger:()=>{this._controller.replace()},onKeyDown:d=>{d.equals(1026)&&(this._closeBtn.focus(),d.preventDefault())}},this._hoverService)),this._replaceAllBtn=this._register(new uM({label:tbt+this._keybindingLabelFor(Ha.ReplaceAllAction),icon:Hyt,hoverDelegate:a,onTrigger:()=>{this._controller.replaceAll()}},this._hoverService));const l=document.createElement("div");l.className="replace-part",l.appendChild(this._replaceInput.domNode);const c=document.createElement("div");c.className="replace-actions",l.appendChild(c),c.appendChild(this._replaceBtn.domNode),c.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new uM({label:nbt,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=Gm(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}},this._hoverService)),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.ariaLabel=$yt,this._domNode.role="dialog",this._domNode.style.width=`${r1}px`,this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(o),this._domNode.appendChild(this._closeBtn.domNode),this._domNode.appendChild(l),this._resizeSash=this._register(new mx(this._domNode,this,{orientation:0,size:2})),this._resized=!1;let u=r1;this._register(this._resizeSash.onDidStart(()=>{u=Gm(this._domNode)})),this._register(this._resizeSash.onDidChange(d=>{this._resized=!0;const h=u+d.startX-d.currentX;if(h<r1)return;const f=parseFloat(Bpe(this._domNode).maxWidth)||0;h>f||(this._domNode.style.width=`${h}px`,this._isReplaceVisible&&(this._replaceInput.width=Gm(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())})),this._register(this._resizeSash.onDidReset(()=>{const d=Gm(this._domNode);if(d<r1)return;let h=r1;if(!this._resized||d===r1){const f=this._codeEditor.getLayoutInfo();h=f.width-28-f.minimap.minimapWidth-15,this._resized=!0}this._domNode.style.width=`${h}px`,this._isReplaceVisible&&(this._replaceInput.width=Gm(this._findInput.domNode)),this._findInput.inputBox.layout()}))}updateAccessibilitySupport(){const n=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(n!==2)}},e.ID="editor.contrib.findWidget",e),uM=class extends Ov{constructor(t,n){super(),this._opts=t;let i="button";this._opts.className&&(i=i+" "+this._opts.className),this._opts.icon&&(i=i+" "+lr.asClassName(this._opts.icon)),this._domNode=document.createElement("div"),this._domNode.tabIndex=0,this._domNode.className=i,this._domNode.setAttribute("role","button"),this._domNode.setAttribute("aria-label",this._opts.label),this._register(n.setupManagedHover(t.hoverDelegate??hg("element"),this._domNode,this._opts.label)),this.onclick(this._domNode,r=>{this._opts.onTrigger(),r.preventDefault()}),this.onkeydown(this._domNode,r=>{if(r.equals(10)||r.equals(3)){this._opts.onTrigger(),r.preventDefault();return}this._opts.onKeyDown?.(r)})}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(t){this._domNode.classList.toggle("disabled",!t),this._domNode.setAttribute("aria-disabled",String(!t)),this._domNode.tabIndex=t?0:-1}setExpanded(t){this._domNode.setAttribute("aria-expanded",String(!!t)),t?(this._domNode.classList.remove(...lr.asClassNameArray(TEe)),this._domNode.classList.add(...lr.asClassNameArray(kEe))):(this._domNode.classList.remove(...lr.asClassNameArray(kEe)),this._domNode.classList.add(...lr.asClassNameArray(TEe)))}},Ab((t,n)=>{const i=t.getColor(cD);i&&n.addRule(`.monaco-editor .findMatch { border: 1px ${rC(t.type)?"dotted":"solid"} ${i}; box-sizing: border-box; }`);const r=t.getColor(A3t);r&&n.addRule(`.monaco-editor .findScope { border: 1px ${rC(t.type)?"dashed":"solid"} ${r}; }`);const o=t.getColor(zo);o&&n.addRule(`.monaco-editor .find-widget { border: 1px solid ${o}; }`);const s=t.getColor(x3t);s&&n.addRule(`.monaco-editor .findMatchInline { color: ${s}; }`);const a=t.getColor(E3t);a&&n.addRule(`.monaco-editor .currentFindMatchInline { color: ${a}; }`)})}});function PEe(e,t="single",n=!1){if(!e.hasModel())return null;const i=e.getSelection();if(t==="single"&&i.startLineNumber===i.endLineNumber||t==="multiple"){if(i.isEmpty()){const r=e.getConfiguredWordAtPosition(i.getStartPosition());if(r&&n===!1)return r.word}else if(e.getModel().getValueLengthInRange(i)<lnn)return e.getModel().getValueInRange(i)}return null}var MEe,n0,OEe,lnn,Yp,Vte,lbt,cbt,ubt,dbt,REe,hbt,fbt,pbt,FEe,gbt,mbt,vbt,qb,cnn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findController.js"(){var e;fr(),Nt(),Ki(),mr(),kb(),ls(),Cd(),sme(),JQn(),eZn(),rZn(),bn(),ha(),zN(),er(),xg(),tl(),yf(),Hv(),CE(),Ys(),PN(),MEe=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},n0=function(t,n){return function(i,r){n(i,r,t)}},lnn=524288,Yp=(e=class extends St{get editor(){return this._editor}static get(n){return n.getContribution(OEe.ID)}constructor(n,i,r,o,s,a){super(),this._editor=n,this._findWidgetVisible=YS.bindTo(i),this._contextKeyService=i,this._storageService=r,this._clipboardService=o,this._notificationService=s,this._hoverService=a,this._updateHistoryDelayer=new j0(500),this._state=this._register(new rnn),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange(l=>this._onStateChanged(l))),this._model=null,this._register(this._editor.onDidChangeModel(()=>{const l=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),l&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(41).loop})}))}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(n){this.saveQueryState(n),n.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),n.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(n){n.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,1),n.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,1),n.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,1),n.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,1)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!T$.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let n=this._editor.getSelections();n=n.map(i=>(i.endColumn===1&&i.endLineNumber>i.startLineNumber&&(i=i.setEndPosition(i.endLineNumber-1,this._editor.getModel().getLineMaxColumn(i.endLineNumber-1))),i.isEmpty()?null:i)).filter(i=>!!i),n.length&&this._state.change({searchScope:n},!0)}}setSearchString(n){this._state.isRegex&&(n=z0(n)),this._state.change({searchString:n},!1)}highlightFindOptions(n=!1){}async _start(n,i){if(this.disposeModel(),!this._editor.hasModel())return;const r={...i,isRevealed:!0};if(n.seedSearchStringFromSelection==="single"){const o=PEe(this._editor,n.seedSearchStringFromSelection,n.seedSearchStringFromNonEmptySelection);o&&(this._state.isRegex?r.searchString=z0(o):r.searchString=o)}else if(n.seedSearchStringFromSelection==="multiple"&&!n.updateSearchScope){const o=PEe(this._editor,n.seedSearchStringFromSelection);o&&(r.searchString=o)}if(!r.searchString&&n.seedSearchStringFromGlobalClipboard){const o=await this.getGlobalBufferTerm();if(!this._editor.hasModel())return;o&&(r.searchString=o)}if(n.forceRevealReplace||r.isReplaceRevealed?r.isReplaceRevealed=!0:this._findWidgetVisible.get()||(r.isReplaceRevealed=!1),n.updateSearchScope){const o=this._editor.getSelections();o.some(s=>!s.isEmpty())&&(r.searchScope=o)}r.loop=n.loop,this._state.change(r,!1),this._model||(this._model=new nnn(this._editor,this._state))}start(n,i){return this._start(n,i)}moveToNextMatch(){return this._model?(this._model.moveToNextMatch(),!0):!1}moveToPrevMatch(){return this._model?(this._model.moveToPrevMatch(),!0):!1}goToMatch(n){return this._model?(this._model.moveToMatch(n),!0):!1}replace(){return this._model?(this._model.replace(),!0):!1}replaceAll(){return this._model?this._editor.getModel()?.isTooLargeForHeapOperation()?(this._notificationService.warn(R("too.large.for.replaceall","The file is too large to perform a replace all operation.")),!1):(this._model.replaceAll(),!0):!1}selectAllMatches(){return this._model?(this._model.selectAllMatches(),this._editor.focus(),!0):!1}async getGlobalBufferTerm(){return this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""}setGlobalBufferTerm(n){this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(n)}},OEe=e,e.ID="editor.contrib.findController",e),Yp=OEe=MEe([n0(1,ur),n0(2,ab),n0(3,tE),n0(4,Cc),n0(5,SC)],Yp),Vte=class extends Yp{constructor(n,i,r,o,s,a,l,c,u){super(n,r,l,c,a,u),this._contextViewService=i,this._keybindingService=o,this._themeService=s,this._widget=null,this._findOptionsWidget=null}async _start(n,i){this._widget||this._createFindWidget();const r=this._editor.getSelection();let o=!1;switch(this._editor.getOption(41).autoFindInSelection){case"always":o=!0;break;case"never":o=!1;break;case"multiline":{o=!!r&&r.startLineNumber!==r.endLineNumber;break}}n.updateSearchScope=n.updateSearchScope||o,await super._start(n,i),this._widget&&(n.shouldFocus===2?this._widget.focusReplaceInput():n.shouldFocus===1&&this._widget.focusFindInput())}highlightFindOptions(n=!1){this._widget||this._createFindWidget(),this._state.isRevealed&&!n?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new ann(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService,this._hoverService)),this._findOptionsWidget=this._register(new inn(this._editor,this._state,this._keybindingService))}},Vte=MEe([n0(1,Jx),n0(2,ur),n0(3,Cs),n0(4,Ru),n0(5,Cc),n0(6,ab),n0(7,tE),n0(8,SC)],Vte),lbt=plt(new k5e({id:Ha.StartFindAction,label:R("startFindAction","Find"),alias:"Find",precondition:nn.or(Ge.focus,nn.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:Ti.MenubarEditMenu,group:"3_find",title:R({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})),lbt.addImplementation(0,(t,n,i)=>{const r=Yp.get(n);return r?r.start({forceRevealReplace:!1,seedSearchStringFromSelection:n.getOption(41).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:n.getOption(41).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:n.getOption(41).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:n.getOption(41).loop}):!1}),cbt={description:"Open a new In-Editor Find Widget.",args:[{name:"Open a new In-Editor Find Widget args",schema:{properties:{searchString:{type:"string"},replaceString:{type:"string"},isRegex:{type:"boolean"},matchWholeWord:{type:"boolean"},isCaseSensitive:{type:"boolean"},preserveCase:{type:"boolean"},findInSelection:{type:"boolean"}}}}]},ubt=class extends ri{constructor(){super({id:Ha.StartFindWithArgs,label:R("startFindWithArgsAction","Find With Arguments"),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},metadata:cbt})}async run(t,n,i){const r=Yp.get(n);if(r){const o=i?{searchString:i.searchString,replaceString:i.replaceString,isReplaceRevealed:i.replaceString!==void 0,isRegex:i.isRegex,wholeWord:i.matchWholeWord,matchCase:i.isCaseSensitive,preserveCase:i.preserveCase}:{};await r.start({forceRevealReplace:!1,seedSearchStringFromSelection:r.getState().searchString.length===0&&n.getOption(41).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:n.getOption(41).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:i?.findInSelection||!1,loop:n.getOption(41).loop},o),r.setGlobalBufferTerm(r.getState().searchString)}}},dbt=class extends ri{constructor(){super({id:Ha.StartFindWithSelection,label:R("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}async run(t,n){const i=Yp.get(n);i&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:n.getOption(41).loop}),i.setGlobalBufferTerm(i.getState().searchString))}},REe=class extends ri{async run(t,n){const i=Yp.get(n);i&&!this._run(i)&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:i.getState().searchString.length===0&&n.getOption(41).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:n.getOption(41).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:n.getOption(41).loop}),this._run(i))}},hbt=class extends REe{constructor(){super({id:Ha.NextMatchFindAction,label:R("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:Ge.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:nn.and(Ge.focus,T$),primary:3,weight:100}]})}_run(t){return t.moveToNextMatch()?(t.editor.pushUndoStop(),!0):!1}},fbt=class extends REe{constructor(){super({id:Ha.PreviousMatchFindAction,label:R("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:Ge.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:nn.and(Ge.focus,T$),primary:1027,weight:100}]})}_run(t){return t.moveToPrevMatch()}},pbt=class extends ri{constructor(){super({id:Ha.GoToMatchFindAction,label:R("findMatchAction.goToMatch","Go to Match..."),alias:"Go to Match...",precondition:YS}),this._highlightDecorations=[]}run(t,n,i){const r=Yp.get(n);if(!r)return;const o=r.getState().matchesCount;if(o<1){t.get(Cc).notify({severity:lY.Warning,message:R("findMatchAction.noResults","No matches. Try searching for something else.")});return}const s=t.get(Z0),a=new Jt,l=a.add(s.createInputBox());l.placeholder=R("findMatchAction.inputPlaceHolder","Type a number to go to a specific match (between 1 and {0})",o);const c=d=>{const h=parseInt(d);if(isNaN(h))return;const f=r.getState().matchesCount;if(h>0&&h<=f)return h-1;if(h<0&&h>=-f)return f+h},u=d=>{const h=c(d);if(typeof h=="number"){l.validationMessage=void 0,r.goToMatch(h);const f=r.getState().currentMatch;f&&this.addDecorations(n,f)}else l.validationMessage=R("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",r.getState().matchesCount),this.clearDecorations(n)};a.add(l.onDidChangeValue(d=>{u(d)})),a.add(l.onDidAccept(()=>{const d=c(l.value);typeof d=="number"?(r.goToMatch(d),l.hide()):l.validationMessage=R("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",r.getState().matchesCount)})),a.add(l.onDidHide(()=>{this.clearDecorations(n),a.dispose()})),l.show()}clearDecorations(t){t.changeDecorations(n=>{this._highlightDecorations=n.deltaDecorations(this._highlightDecorations,[])})}addDecorations(t,n){t.changeDecorations(i=>{this._highlightDecorations=i.deltaDecorations(this._highlightDecorations,[{range:n,options:{description:"find-match-quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:n,options:{description:"find-match-quick-access-range-highlight-overview",overviewRuler:{color:ec(SWe),position:x0.Full}}}])})}},FEe=class extends ri{async run(t,n){const i=Yp.get(n);if(!i)return;const r=PEe(n,"single",!1);r&&i.setSearchString(r),this._run(i)||(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:n.getOption(41).loop}),this._run(i))}},gbt=class extends FEe{constructor(){super({id:Ha.NextSelectionMatchFindAction,label:R("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:Ge.focus,primary:2109,weight:100}})}_run(t){return t.moveToNextMatch()}},mbt=class extends FEe{constructor(){super({id:Ha.PreviousSelectionMatchFindAction,label:R("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:Ge.focus,primary:3133,weight:100}})}_run(t){return t.moveToPrevMatch()}},vbt=plt(new k5e({id:Ha.StartFindReplaceAction,label:R("startReplace","Replace"),alias:"Replace",precondition:nn.or(Ge.focus,nn.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:Ti.MenubarEditMenu,group:"3_find",title:R({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})),vbt.addImplementation(0,(t,n,i)=>{if(!n.hasModel()||n.getOption(92))return!1;const r=Yp.get(n);if(!r)return!1;const o=n.getSelection(),s=r.isFindInputFocused(),a=!o.isEmpty()&&o.startLineNumber===o.endLineNumber&&n.getOption(41).seedSearchStringFromSelection!=="never"&&!s,l=s||a?2:1;return r.start({forceRevealReplace:!0,seedSearchStringFromSelection:a?"single":"none",seedSearchStringFromNonEmptySelection:n.getOption(41).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:n.getOption(41).seedSearchStringFromSelection!=="never",shouldFocus:l,shouldAnimate:!0,updateSearchScope:!1,loop:n.getOption(41).loop})}),qo(Yp.ID,Vte,0),yn(ubt),yn(dbt),yn(hbt),yn(fbt),yn(pbt),yn(gbt),yn(mbt),qb=Hd.bindToContribution(Yp.get),$n(new qb({id:Ha.CloseFindWidgetCommand,precondition:YS,handler:t=>t.closeFindWidget(),kbOpts:{weight:105,kbExpr:nn.and(Ge.focus,nn.not("isComposing")),primary:9,secondary:[1033]}})),$n(new qb({id:Ha.ToggleCaseSensitiveCommand,precondition:void 0,handler:t=>t.toggleCaseSensitive(),kbOpts:{weight:105,kbExpr:Ge.focus,primary:EW.primary,mac:EW.mac,win:EW.win,linux:EW.linux}})),$n(new qb({id:Ha.ToggleWholeWordCommand,precondition:void 0,handler:t=>t.toggleWholeWords(),kbOpts:{weight:105,kbExpr:Ge.focus,primary:AW.primary,mac:AW.mac,win:AW.win,linux:AW.linux}})),$n(new qb({id:Ha.ToggleRegexCommand,precondition:void 0,handler:t=>t.toggleRegex(),kbOpts:{weight:105,kbExpr:Ge.focus,primary:DW.primary,mac:DW.mac,win:DW.win,linux:DW.linux}})),$n(new qb({id:Ha.ToggleSearchScopeCommand,precondition:void 0,handler:t=>t.toggleSearchScope(),kbOpts:{weight:105,kbExpr:Ge.focus,primary:TW.primary,mac:TW.mac,win:TW.win,linux:TW.linux}})),$n(new qb({id:Ha.TogglePreserveCaseCommand,precondition:void 0,handler:t=>t.togglePreserveCase(),kbOpts:{weight:105,kbExpr:Ge.focus,primary:kW.primary,mac:kW.mac,win:kW.win,linux:kW.linux}})),$n(new qb({id:Ha.ReplaceOneAction,precondition:YS,handler:t=>t.replace(),kbOpts:{weight:105,kbExpr:Ge.focus,primary:3094}})),$n(new qb({id:Ha.ReplaceOneAction,precondition:YS,handler:t=>t.replace(),kbOpts:{weight:105,kbExpr:nn.and(Ge.focus,Hde),primary:3}})),$n(new qb({id:Ha.ReplaceAllAction,precondition:YS,handler:t=>t.replaceAll(),kbOpts:{weight:105,kbExpr:Ge.focus,primary:2563}})),$n(new qb({id:Ha.ReplaceAllAction,precondition:YS,handler:t=>t.replaceAll(),kbOpts:{weight:105,kbExpr:nn.and(Ge.focus,Hde),primary:void 0,mac:{primary:2051}}})),$n(new qb({id:Ha.SelectAllMatchesAction,precondition:YS,handler:t=>t.selectAllMatches(),kbOpts:{weight:105,kbExpr:Ge.focus,primary:515}}))}}),oZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/folding.css"(){}}),ybt,BEe,p_,jEe,Hte,My,bbt,ame=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/foldingRanges.js"(){ybt={0:" ",1:"u",2:"r"},BEe=65535,p_=16777215,jEe=4278190080,Hte=class{constructor(e){const t=Math.ceil(e/32);this._states=new Uint32Array(t)}get(e){const t=e/32|0,n=e%32;return(this._states[t]&1<<n)!==0}set(e,t){const n=e/32|0,i=e%32,r=this._states[n];t?this._states[n]=r|1<<i:this._states[n]=r&~(1<<i)}},My=class unn{constructor(t,n,i){if(t.length!==n.length||t.length>BEe)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=t,this._endIndexes=n,this._collapseStates=new Hte(t.length),this._userDefinedStates=new Hte(t.length),this._recoveredStates=new Hte(t.length),this._types=i,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;const t=[],n=(i,r)=>{const o=t[t.length-1];return this.getStartLineNumber(o)<=i&&this.getEndLineNumber(o)>=r};for(let i=0,r=this._startIndexes.length;i<r;i++){const o=this._startIndexes[i],s=this._endIndexes[i];if(o>p_||s>p_)throw new Error("startLineNumber or endLineNumber must not exceed "+p_);for(;t.length>0&&!n(o,s);)t.pop();const a=t.length>0?t[t.length-1]:-1;t.push(i),this._startIndexes[i]=o+((a&255)<<24),this._endIndexes[i]=s+((a&65280)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(t){return this._startIndexes[t]&p_}getEndLineNumber(t){return this._endIndexes[t]&p_}getType(t){return this._types?this._types[t]:void 0}hasTypes(){return!!this._types}isCollapsed(t){return this._collapseStates.get(t)}setCollapsed(t,n){this._collapseStates.set(t,n)}isUserDefined(t){return this._userDefinedStates.get(t)}setUserDefined(t,n){return this._userDefinedStates.set(t,n)}isRecovered(t){return this._recoveredStates.get(t)}setRecovered(t,n){return this._recoveredStates.set(t,n)}getSource(t){return this.isUserDefined(t)?1:this.isRecovered(t)?2:0}setSource(t,n){n===1?(this.setUserDefined(t,!0),this.setRecovered(t,!1)):n===2?(this.setUserDefined(t,!1),this.setRecovered(t,!0)):(this.setUserDefined(t,!1),this.setRecovered(t,!1))}setCollapsedAllOfType(t,n){let i=!1;if(this._types)for(let r=0;r<this._types.length;r++)this._types[r]===t&&(this.setCollapsed(r,n),i=!0);return i}toRegion(t){return new bbt(this,t)}getParentIndex(t){this.ensureParentIndices();const n=((this._startIndexes[t]&jEe)>>>24)+((this._endIndexes[t]&jEe)>>>16);return n===BEe?-1:n}contains(t,n){return this.getStartLineNumber(t)<=n&&this.getEndLineNumber(t)>=n}findIndex(t){let n=0,i=this._startIndexes.length;if(i===0)return-1;for(;n<i;){const r=Math.floor((n+i)/2);t<this.getStartLineNumber(r)?i=r:n=r+1}return n-1}findRange(t){let n=this.findIndex(t);if(n>=0){if(this.getEndLineNumber(n)>=t)return n;for(n=this.getParentIndex(n);n!==-1;){if(this.contains(n,t))return n;n=this.getParentIndex(n)}}return-1}toString(){const t=[];for(let n=0;n<this.length;n++)t[n]=`[${ybt[this.getSource(n)]}${this.isCollapsed(n)?"+":"-"}] ${this.getStartLineNumber(n)}/${this.getEndLineNumber(n)}`;return t.join(", ")}toFoldRange(t){return{startLineNumber:this._startIndexes[t]&p_,endLineNumber:this._endIndexes[t]&p_,type:this._types?this._types[t]:void 0,isCollapsed:this.isCollapsed(t),source:this.getSource(t)}}static fromFoldRanges(t){const n=t.length,i=new Uint32Array(n),r=new Uint32Array(n);let o=[],s=!1;for(let l=0;l<n;l++){const c=t[l];i[l]=c.startLineNumber,r[l]=c.endLineNumber,o.push(c.type),c.type&&(s=!0)}s||(o=void 0);const a=new unn(i,r,o);for(let l=0;l<n;l++)t[l].isCollapsed&&a.setCollapsed(l,!0),a.setSource(l,t[l].source);return a}static sanitizeAndMerge(t,n,i,r){i=i??Number.MAX_VALUE;const o=(m,v)=>Array.isArray(m)?(y=>y<v?m[y]:void 0):(y=>y<v?m.toFoldRange(y):void 0),s=o(t,t.length),a=o(n,n.length);let l=0,c=0,u=s(0),d=a(0);const h=[];let f,p=0;const g=[];for(;u||d;){let m;if(d&&(!u||u.startLineNumber>=d.startLineNumber))u&&u.startLineNumber===d.startLineNumber?(d.source===1?m=d:(m=u,m.isCollapsed=d.isCollapsed&&(u.endLineNumber===d.endLineNumber||!r?.startsInside(u.startLineNumber+1,u.endLineNumber+1)),m.source=0),u=s(++l)):(m=d,d.isCollapsed&&d.source===0&&(m.source=2)),d=a(++c);else{let v=c,y=d;for(;;){if(!y||y.startLineNumber>u.endLineNumber){m=u;break}if(y.source===1&&y.endLineNumber>u.endLineNumber)break;y=a(++v)}u=s(++l)}if(m){for(;f&&f.endLineNumber<m.startLineNumber;)f=h.pop();m.endLineNumber>m.startLineNumber&&m.startLineNumber>p&&m.endLineNumber<=i&&(!f||f.endLineNumber>=m.endLineNumber)&&(g.push(m),p=m.startLineNumber,f&&h.push(f),f=m)}}return g}},bbt=class{constructor(e,t){this.ranges=e,this.index=t}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber}containsLine(e){return this.startLineNumber<=e&&e<=this.endLineNumber}}}});function f8e(e,t,n){const i=[];for(const r of n){const o=e.getRegionAtLine(r);if(o){const s=!o.isCollapsed;if(i.push(o),t>1){const a=e.getRegionsInside(o,(l,c)=>l.isCollapsed!==s&&c<t);i.push(...a)}}}e.toggleCollapseState(i)}function v4(e,t,n=Number.MAX_VALUE,i){const r=[];if(i&&i.length>0)for(const o of i){const s=e.getRegionAtLine(o);if(s&&(s.isCollapsed!==t&&r.push(s),n>1)){const a=e.getRegionsInside(s,(l,c)=>l.isCollapsed!==t&&c<n);r.push(...a)}}else{const o=e.getRegionsInside(null,(s,a)=>s.isCollapsed!==t&&a<n);r.push(...o)}e.toggleCollapseState(r)}function _bt(e,t,n,i){const r=[];for(const o of i){const s=e.getAllRegionsAtLine(o,(a,l)=>a.isCollapsed!==t&&l<=n);r.push(...s)}e.toggleCollapseState(r)}function sZn(e,t,n){const i=[];for(const r of n){const o=e.getAllRegionsAtLine(r,s=>s.isCollapsed!==t);o.length>0&&i.push(o[0])}e.toggleCollapseState(i)}function aZn(e,t,n,i){const r=(s,a)=>a===t&&s.isCollapsed!==n&&!i.some(l=>s.containsLine(l)),o=e.getRegionsInside(null,r);e.toggleCollapseState(o)}function wbt(e,t,n){const i=[];for(const s of n){const a=e.getAllRegionsAtLine(s,void 0);a.length>0&&i.push(a[0])}const r=s=>i.every(a=>!a.containedBy(s)&&!s.containedBy(a))&&s.isCollapsed!==t,o=e.getRegionsInside(null,r);e.toggleCollapseState(o)}function zEe(e,t,n){const i=e.textModel,r=e.regions,o=[];for(let s=r.length-1;s>=0;s--)if(n!==r.isCollapsed(s)){const a=r.getStartLineNumber(s);t.test(i.getLineContent(a))&&o.push(r.toRegion(s))}e.toggleCollapseState(o)}function VEe(e,t,n){const i=e.regions,r=[];for(let o=i.length-1;o>=0;o--)n!==i.isCollapsed(o)&&t===i.getType(o)&&r.push(i.toRegion(o));e.toggleCollapseState(r)}function lZn(e,t){let n=null;const i=t.getRegionAtLine(e);if(i!==null&&(n=i.startLineNumber,e===n)){const r=i.parentIndex;r!==-1?n=t.regions.getStartLineNumber(r):n=null}return n}function cZn(e,t){let n=t.getRegionAtLine(e);if(n!==null&&n.startLineNumber===e){if(e!==n.startLineNumber)return n.startLineNumber;{const i=n.parentIndex;let r=0;for(i!==-1&&(r=t.regions.getStartLineNumber(n.parentIndex));n!==null;)if(n.regionIndex>0){if(n=t.regions.toRegion(n.regionIndex-1),n.startLineNumber<=r)return null;if(n.parentIndex===i)return n.startLineNumber}else return null}}else if(t.regions.length>0)for(n=t.regions.toRegion(t.regions.length-1);n!==null;){if(n.startLineNumber<e)return n.startLineNumber;n.regionIndex>0?n=t.regions.toRegion(n.regionIndex-1):n=null}return null}function uZn(e,t){let n=t.getRegionAtLine(e);if(n!==null&&n.startLineNumber===e){const i=n.parentIndex;let r=0;if(i!==-1)r=t.regions.getEndLineNumber(n.parentIndex);else{if(t.regions.length===0)return null;r=t.regions.getEndLineNumber(t.regions.length-1)}for(;n!==null;)if(n.regionIndex<t.regions.length){if(n=t.regions.toRegion(n.regionIndex+1),n.startLineNumber>=r)return null;if(n.parentIndex===i)return n.startLineNumber}else return null}else if(t.regions.length>0)for(n=t.regions.toRegion(0);n!==null;){if(n.startLineNumber>e)return n.startLineNumber;n.regionIndex<t.regions.length?n=t.regions.toRegion(n.regionIndex+1):n=null}return null}var dnn,hnn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/foldingModel.js"(){Un(),ame(),Y2(),dnn=class{get regions(){return this._regions}get textModel(){return this._textModel}constructor(e,t){this._updateEventEmitter=new bt,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new My(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[]}toggleCollapseState(e){if(!e.length)return;e=e.sort((n,i)=>n.regionIndex-i.regionIndex);const t={};this._decorationProvider.changeDecorations(n=>{let i=0,r=-1,o=-1;const s=a=>{for(;i<a;){const l=this._regions.getEndLineNumber(i),c=this._regions.isCollapsed(i);if(l<=r){const u=this.regions.getSource(i)!==0;n.changeDecorationOptions(this._editorDecorationIds[i],this._decorationProvider.getDecorationOption(c,l<=o,u))}c&&l>o&&(o=l),i++}};for(const a of e){const l=a.regionIndex,c=this._editorDecorationIds[l];if(c&&!t[c]){t[c]=!0,s(l);const u=!this._regions.isCollapsed(l);this._regions.setCollapsed(l,u),r=Math.max(r,this._regions.getEndLineNumber(l))}}s(this._regions.length)}),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}removeManualRanges(e){const t=new Array,n=i=>{for(const r of e)if(!(r.startLineNumber>i.endLineNumber||i.startLineNumber>r.endLineNumber))return!0;return!1};for(let i=0;i<this._regions.length;i++){const r=this._regions.toFoldRange(i);(r.source===0||!n(r))&&t.push(r)}this.updatePost(My.fromFoldRanges(t))}update(e,t){const n=this._currentFoldedOrManualRanges(t),i=My.sanitizeAndMerge(e,n,this._textModel.getLineCount(),t);this.updatePost(My.fromFoldRanges(i))}updatePost(e){const t=[];let n=-1;for(let i=0,r=e.length;i<r;i++){const o=e.getStartLineNumber(i),s=e.getEndLineNumber(i),a=e.isCollapsed(i),l=e.getSource(i)!==0,c={startLineNumber:o,startColumn:this._textModel.getLineMaxColumn(o),endLineNumber:s,endColumn:this._textModel.getLineMaxColumn(s)+1};t.push({range:c,options:this._decorationProvider.getDecorationOption(a,s<=n,l)}),a&&s>n&&(n=s)}this._decorationProvider.changeDecorations(i=>this._editorDecorationIds=i.deltaDecorations(this._editorDecorationIds,t)),this._regions=e,this._updateEventEmitter.fire({model:this})}_currentFoldedOrManualRanges(e){const t=[];for(let n=0,i=this._regions.length;n<i;n++){let r=this.regions.isCollapsed(n);const o=this.regions.getSource(n);if(r||o!==0){const s=this._regions.toFoldRange(n),a=this._textModel.getDecorationRange(this._editorDecorationIds[n]);a&&(r&&e?.startsInside(a.startLineNumber+1,a.endLineNumber)&&(r=!1),t.push({startLineNumber:a.startLineNumber,endLineNumber:a.endLineNumber,type:s.type,isCollapsed:r,source:o}))}}return t}getMemento(){const e=this._currentFoldedOrManualRanges(),t=[],n=this._textModel.getLineCount();for(let i=0,r=e.length;i<r;i++){const o=e[i];if(o.startLineNumber>=o.endLineNumber||o.startLineNumber<1||o.endLineNumber>n)continue;const s=this._getLinesChecksum(o.startLineNumber+1,o.endLineNumber);t.push({startLineNumber:o.startLineNumber,endLineNumber:o.endLineNumber,isCollapsed:o.isCollapsed,source:o.source,checksum:s})}return t.length>0?t:void 0}applyMemento(e){if(!Array.isArray(e))return;const t=[],n=this._textModel.getLineCount();for(const r of e){if(r.startLineNumber>=r.endLineNumber||r.startLineNumber<1||r.endLineNumber>n)continue;const o=this._getLinesChecksum(r.startLineNumber+1,r.endLineNumber);(!r.checksum||o===r.checksum)&&t.push({startLineNumber:r.startLineNumber,endLineNumber:r.endLineNumber,type:void 0,isCollapsed:r.isCollapsed??!0,source:r.source??0})}const i=My.sanitizeAndMerge(this._regions,t,n);this.updatePost(My.fromFoldRanges(i))}_getLinesChecksum(e,t){return Rpe(this._textModel.getLineContent(e)+this._textModel.getLineContent(t))%1e6}dispose(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}getAllRegionsAtLine(e,t){const n=[];if(this._regions){let i=this._regions.findRange(e),r=1;for(;i>=0;){const o=this._regions.toRegion(i);(!t||t(o,r))&&n.push(o),r++,i=o.parentIndex}}return n}getRegionAtLine(e){if(this._regions){const t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){const n=[],i=e?e.regionIndex+1:0,r=e?e.endLineNumber:Number.MAX_VALUE;if(t&&t.length===2){const o=[];for(let s=i,a=this._regions.length;s<a;s++){const l=this._regions.toRegion(s);if(this._regions.getStartLineNumber(s)<r){for(;o.length>0&&!l.containedBy(o[o.length-1]);)o.pop();o.push(l),t(l,o.length)&&n.push(l)}else break}}else for(let o=i,s=this._regions.length;o<s;o++){const a=this._regions.toRegion(o);if(this._regions.getStartLineNumber(o)<r)(!t||t(a))&&n.push(a);else break}return n}}}});function dZn(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}function Cbt(e,t){const n=Qq(e,i=>t<i.startLineNumber)-1;return n>=0&&e[n].endLineNumber>=t?e[n]:null}var fnn,hZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/hiddenRangeModel.js"(){Y0(),Un(),Dn(),L7(),fnn=class{get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}constructor(e){this._updateEventEmitter=new bt,this._hasLineChanges=!1,this._foldingModel=e,this._foldingModelListener=e.onDidChange(t=>this.updateHiddenRanges()),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}notifyChangeModelContent(e){this._hiddenRanges.length&&!this._hasLineChanges&&(this._hasLineChanges=e.changes.some(t=>t.range.endLineNumber!==t.range.startLineNumber||PL(t.text)[0]!==0))}updateHiddenRanges(){let e=!1;const t=[];let n=0,i=0,r=Number.MAX_VALUE,o=-1;const s=this._foldingModel.regions;for(;n<s.length;n++){if(!s.isCollapsed(n))continue;const a=s.getStartLineNumber(n)+1,l=s.getEndLineNumber(n);r<=a&&l<=o||(!e&&i<this._hiddenRanges.length&&this._hiddenRanges[i].startLineNumber===a&&this._hiddenRanges[i].endLineNumber===l?(t.push(this._hiddenRanges[i]),i++):(e=!0,t.push(new Re(a,1,l,1))),r=a,o=l)}(this._hasLineChanges||e||i<this._hiddenRanges.length)&&this.applyHiddenRanges(t)}applyHiddenRanges(e){this._hiddenRanges=e,this._hasLineChanges=!1,this._updateEventEmitter.fire(e)}hasRanges(){return this._hiddenRanges.length>0}isHidden(e){return Cbt(this._hiddenRanges,e)!==null}adjustSelections(e){let t=!1;const n=this._foldingModel.textModel;let i=null;const r=o=>((!i||!dZn(o,i))&&(i=Cbt(this._hiddenRanges,o)),i?i.startLineNumber-1:null);for(let o=0,s=e.length;o<s;o++){let a=e[o];const l=r(a.startLineNumber);l&&(a=a.setStartPosition(l,n.getLineMaxColumn(l)),t=!0);const c=r(a.endLineNumber);c&&(a=a.setEndPosition(c,n.getLineMaxColumn(c)),t=!0),e[o]=a}return t}dispose(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}}});function fZn(e,t,n,i=gnn){const r=e.getOptions().tabSize,o=new pnn(i);let s;n&&(s=new RegExp(`(${n.start.source})|(?:${n.end.source})`));const a=[],l=e.getLineCount()+1;a.push({indent:-1,endAbove:l,line:l});for(let c=e.getLineCount();c>0;c--){const u=e.getLineContent(c),d=Cge(u,r);let h=a[a.length-1];if(d===-1){t&&(h.endAbove=c);continue}let f;if(s&&(f=u.match(s)))if(f[1]){let p=a.length-1;for(;p>0&&a[p].indent!==-2;)p--;if(p>0){a.length=p+1,h=a[p],o.insertFirst(c,h.line,d),h.line=c,h.indent=d,h.endAbove=c;continue}}else{a.push({indent:-2,endAbove:c,line:c});continue}if(h.indent>d){do a.pop(),h=a[a.length-1];while(h.indent>d);const p=h.endAbove-1;p-c>=1&&o.insertFirst(c,p,d)}h.indent===d?h.endAbove=c:a.push({indent:d,endAbove:c,line:c})}return o.toIndentRanges(e)}var Sbt,xbt,Wde,pnn,gnn,mnn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/indentRangeProvider.js"(){BWe(),ame(),Sbt=5e3,xbt="indent",Wde=class{constructor(e,t,n){this.editorModel=e,this.languageConfigurationService=t,this.foldingRangesLimit=n,this.id=xbt}dispose(){}compute(e){const t=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,n=t&&!!t.offSide,i=t&&t.markers;return Promise.resolve(fZn(this.editorModel,n,i,this.foldingRangesLimit))}},pnn=class{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,n){if(e>p_||t>p_)return;const i=this._length;this._startIndexes[i]=e,this._endIndexes[i]=t,this._length++,n<1e3&&(this._indentOccurrences[n]=(this._indentOccurrences[n]||0)+1)}toIndentRanges(e){const t=this._foldingRangesLimit.limit;if(this._length<=t){this._foldingRangesLimit.update(this._length,!1);const n=new Uint32Array(this._length),i=new Uint32Array(this._length);for(let r=this._length-1,o=0;r>=0;r--,o++)n[o]=this._startIndexes[r],i[o]=this._endIndexes[r];return new My(n,i)}else{this._foldingRangesLimit.update(this._length,t);let n=0,i=this._indentOccurrences.length;for(let a=0;a<this._indentOccurrences.length;a++){const l=this._indentOccurrences[a];if(l){if(l+n>t){i=a;break}n+=l}}const r=e.getOptions().tabSize,o=new Uint32Array(t),s=new Uint32Array(t);for(let a=this._length-1,l=0;a>=0;a--){const c=this._startIndexes[a],u=e.getLineContent(c),d=Cge(u,r);(d<i||d===i&&n++<t)&&(o[l]=c,s[l]=this._endIndexes[a],l++)}return new My(o,s)}}},gnn={limit:Sbt,update:()=>{}}}}),Ebt,LW,NW,HEe,WEe,Wte,dM,qV,vnn,ynn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/foldingDecorations.js"(){var e;ia(),Ac(),bn(),ll(),X0(),Ys(),Ra(),Ebt=Qe("editor.foldBackground",{light:ao(OA,.3),dark:ao(OA,.3),hcDark:null,hcLight:null},R("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0),Qe("editor.foldPlaceholderForeground",{light:"#808080",dark:"#808080",hcDark:null,hcLight:null},R("collapsedTextColor","Color of the collapsed text after the first line of a folded range.")),Qe("editorGutter.foldingControlForeground",Fq,R("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter.")),LW=Xa("folding-expanded",An.chevronDown,R("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),NW=Xa("folding-collapsed",An.chevronRight,R("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin.")),HEe=Xa("folding-manual-collapsed",NW,R("foldingManualCollapedIcon","Icon for manually collapsed ranges in the editor glyph margin.")),WEe=Xa("folding-manual-expanded",LW,R("foldingManualExpandedIcon","Icon for manually expanded ranges in the editor glyph margin.")),Wte={color:ec(Ebt),position:1},dM=R("linesCollapsed","Click to expand the range."),qV=R("linesExpanded","Click to collapse the range."),vnn=(e=class{constructor(n){this.editor=n,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}getDecorationOption(n,i,r){return i?e.HIDDEN_RANGE_DECORATION:this.showFoldingControls==="never"?n?this.showFoldingHighlights?e.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION:e.NO_CONTROLS_COLLAPSED_RANGE_DECORATION:e.NO_CONTROLS_EXPANDED_RANGE_DECORATION:n?r?this.showFoldingHighlights?e.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:e.MANUALLY_COLLAPSED_VISUAL_DECORATION:this.showFoldingHighlights?e.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:e.COLLAPSED_VISUAL_DECORATION:this.showFoldingControls==="mouseover"?r?e.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION:e.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:r?e.MANUALLY_EXPANDED_VISUAL_DECORATION:e.EXPANDED_VISUAL_DECORATION}changeDecorations(n){return this.editor.changeDecorations(n)}removeDecorations(n){this.editor.removeDecorations(n)}},e.COLLAPSED_VISUAL_DECORATION=Gr.register({description:"folding-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:dM,firstLineDecorationClassName:lr.asClassName(NW)}),e.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=Gr.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:Wte,isWholeLine:!0,linesDecorationsTooltip:dM,firstLineDecorationClassName:lr.asClassName(NW)}),e.MANUALLY_COLLAPSED_VISUAL_DECORATION=Gr.register({description:"folding-manually-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:dM,firstLineDecorationClassName:lr.asClassName(HEe)}),e.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=Gr.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:Wte,isWholeLine:!0,linesDecorationsTooltip:dM,firstLineDecorationClassName:lr.asClassName(HEe)}),e.NO_CONTROLS_COLLAPSED_RANGE_DECORATION=Gr.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:dM}),e.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION=Gr.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:Wte,isWholeLine:!0,linesDecorationsTooltip:dM}),e.EXPANDED_VISUAL_DECORATION=Gr.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+lr.asClassName(LW),linesDecorationsTooltip:qV}),e.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=Gr.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:lr.asClassName(LW),linesDecorationsTooltip:qV}),e.MANUALLY_EXPANDED_VISUAL_DECORATION=Gr.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+lr.asClassName(WEe),linesDecorationsTooltip:qV}),e.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION=Gr.register({description:"folding-manually-expanded-auto-hide-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:lr.asClassName(WEe),linesDecorationsTooltip:qV}),e.NO_CONTROLS_EXPANDED_RANGE_DECORATION=Gr.register({description:"folding-no-controls-range-decoration",stickiness:0,isWholeLine:!0}),e.HIDDEN_RANGE_DECORATION=Gr.register({description:"folding-hidden-range-decoration",stickiness:1}),e)}});function pZn(e,t,n){let i=null;const r=e.map((o,s)=>Promise.resolve(o.provideFoldingRanges(t,bnn,n)).then(a=>{if(!n.isCancellationRequested&&Array.isArray(a)){Array.isArray(i)||(i=[]);const l=t.getLineCount();for(const c of a)c.start>0&&c.end>c.start&&c.end<=l&&i.push({start:c.start,end:c.end,rank:s,kind:c.kind})}},Sc));return Promise.all(r).then(o=>i)}function gZn(e,t){const n=e.sort((s,a)=>{let l=s.start-a.start;return l===0&&(l=s.rank-a.rank),l}),i=new _nn(t);let r;const o=[];for(const s of n)if(!r)r=s,i.add(s.start,s.end,s.kind&&s.kind.value,o.length);else if(s.start>r.start)if(s.end<=r.end)o.push(r),r=s,i.add(s.start,s.end,s.kind&&s.kind.value,o.length);else{if(s.start>r.end){do r=o.pop();while(r&&s.start>r.end);r&&o.push(r),r=s}i.add(s.start,s.end,s.kind&&s.kind.value,o.length)}return i.toIndentRanges()}var bnn,Abt,Ude,_nn,wnn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/syntaxRangeProvider.js"(){Vi(),Nt(),ame(),bnn={},Abt="syntax",Ude=class{constructor(e,t,n,i,r){this.editorModel=e,this.providers=t,this.handleFoldingRangesChange=n,this.foldingRangesLimit=i,this.fallbackRangeProvider=r,this.id=Abt,this.disposables=new Jt,r&&this.disposables.add(r);for(const o of t)typeof o.onDidChange=="function"&&this.disposables.add(o.onDidChange(n))}compute(e){return pZn(this.providers,this.editorModel,e).then(t=>t?gZn(t,this.foldingRangesLimit):this.fallbackRangeProvider?.compute(e)??null)}dispose(){this.disposables.dispose()}},_nn=class{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,n,i){if(e>p_||t>p_)return;const r=this._length;this._startIndexes[r]=e,this._endIndexes[r]=t,this._nestingLevels[r]=i,this._types[r]=n,this._length++,i<30&&(this._nestingLevelCounts[i]=(this._nestingLevelCounts[i]||0)+1)}toIndentRanges(){const e=this._foldingRangesLimit.limit;if(this._length<=e){this._foldingRangesLimit.update(this._length,!1);const t=new Uint32Array(this._length),n=new Uint32Array(this._length);for(let i=0;i<this._length;i++)t[i]=this._startIndexes[i],n[i]=this._endIndexes[i];return new My(t,n,this._types)}else{this._foldingRangesLimit.update(this._length,e);let t=0,n=this._nestingLevelCounts.length;for(let s=0;s<this._nestingLevelCounts.length;s++){const a=this._nestingLevelCounts[s];if(a){if(a+t>e){n=s;break}t+=a}}const i=new Uint32Array(e),r=new Uint32Array(e),o=[];for(let s=0,a=0;s<this._length;s++){const l=this._nestingLevels[s];(l<n||l===n&&t++<e)&&(i[a]=this._startIndexes[s],r[a]=this._endIndexes[s],o[a]=this._types[s],a++)}return new My(i,r,o)}}}}});function mZn(e){return!e||e.length===0?{startsInside:()=>!1}:{startsInside(t,n){for(const i of e){const r=i.startLineNumber;if(r>=t&&r<=n)return!0}return!1}}}function Dbt(e){if(!bp(e)){if(!jd(e))return!1;const t=e;if(!bp(t.levels)&&!wL(t.levels)||!bp(t.direction)&&!sm(t.direction)||!bp(t.selectionLines)&&(!Array.isArray(t.selectionLines)||!t.selectionLines.every(wL)))return!1}return!0}var Tbt,y4,GV,nh,jA,p8e,Wh,kbt,Ibt,Lbt,Nbt,Pbt,Mbt,Obt,Rbt,Fbt,Bbt,jbt,zbt,Vbt,UEe,Hbt,Wbt,Ubt,$bt,qbt,$$e=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/folding.js"(){var e,t;fr(),Ho(),Vi(),wb(),Nt(),Ki(),as(),oZn(),q7(),mr(),ls(),ra(),lu(),hnn(),hZn(),mnn(),bn(),er(),ynn(),ame(),wnn(),yf(),Db(),_g(),Eo(),Un(),Ks(),ss(),Kf(),sa(),Tbt=function(n,i,r,o){var s=arguments.length,a=s<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,r):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,i,r,o);else for(var c=n.length-1;c>=0;c--)(l=n[c])&&(a=(s<3?l(a):s>3?l(i,r,a):l(i,r))||a);return s>3&&a&&Object.defineProperty(i,r,a),a},y4=function(n,i){return function(r,o){i(r,o,n)}},nh=new Qn("foldingEnabled",!1),jA=(e=class extends St{static get(i){return i.getContribution(GV.ID)}static getFoldingRangeProviders(i,r){const o=i.foldingRangeProvider.ordered(r);return GV._foldingRangeSelector?.(o,r)??o}constructor(i,r,o,s,a,l){super(),this.contextKeyService=r,this.languageConfigurationService=o,this.languageFeaturesService=l,this.localToDispose=this._register(new Jt),this.editor=i,this._foldingLimitReporter=new p8e(i);const c=this.editor.getOptions();this._isEnabled=c.get(43),this._useFoldingProviders=c.get(44)!=="indentation",this._unfoldOnClickAfterEndOfLine=c.get(48),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=c.get(46),this.updateDebounceInfo=a.for(l.foldingRangeProvider,"Folding",{min:200}),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new vnn(i),this.foldingDecorationProvider.showFoldingControls=c.get(111),this.foldingDecorationProvider.showFoldingHighlights=c.get(45),this.foldingEnabled=nh.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel(()=>this.onModelChanged())),this._register(this.editor.onDidChangeConfiguration(u=>{if(u.hasChanged(43)&&(this._isEnabled=this.editor.getOptions().get(43),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),u.hasChanged(47)&&this.onModelChanged(),u.hasChanged(111)||u.hasChanged(45)){const d=this.editor.getOptions();this.foldingDecorationProvider.showFoldingControls=d.get(111),this.foldingDecorationProvider.showFoldingHighlights=d.get(45),this.triggerFoldingModelChanged()}u.hasChanged(44)&&(this._useFoldingProviders=this.editor.getOptions().get(44)!=="indentation",this.onFoldingStrategyChanged()),u.hasChanged(48)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(48)),u.hasChanged(46)&&(this._foldingImportsByDefault=this.editor.getOptions().get(46))})),this.onModelChanged()}saveViewState(){const i=this.editor.getModel();if(!i||!this._isEnabled||i.isTooLargeForTokenization())return{};if(this.foldingModel){const r=this.foldingModel.getMemento(),o=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:r,lineCount:i.getLineCount(),provider:o,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(i){const r=this.editor.getModel();if(!(!r||!this._isEnabled||r.isTooLargeForTokenization()||!this.hiddenRangeModel)&&i&&(this._currentModelHasFoldedImports=!!i.foldedImports,i.collapsedRegions&&i.collapsedRegions.length>0&&this.foldingModel)){this._restoringViewState=!0;try{this.foldingModel.applyMemento(i.collapsedRegions)}finally{this._restoringViewState=!1}}}onModelChanged(){this.localToDispose.clear();const i=this.editor.getModel();!this._isEnabled||!i||i.isTooLargeForTokenization()||(this._currentModelHasFoldedImports=!1,this.foldingModel=new dnn(i,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new fnn(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(r=>this.onHiddenRangesChanges(r))),this.updateScheduler=new j0(this.updateDebounceInfo.get(i)),this.cursorChangedScheduler=new Gs(()=>this.revealCursor(),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(this.languageFeaturesService.foldingRangeProvider.onDidChange(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelContent(r=>this.onDidChangeModelContent(r))),this.localToDispose.add(this.editor.onDidChangeCursorPosition(()=>this.onCursorPositionChanged())),this.localToDispose.add(this.editor.onMouseDown(r=>this.onEditorMouseDown(r))),this.localToDispose.add(this.editor.onMouseUp(r=>this.onEditorMouseUp(r))),this.localToDispose.add({dispose:()=>{this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.updateScheduler?.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,this.rangeProvider?.dispose(),this.rangeProvider=null}}),this.triggerFoldingModelChanged())}onFoldingStrategyChanged(){this.rangeProvider?.dispose(),this.rangeProvider=null,this.triggerFoldingModelChanged()}getRangeProvider(i){if(this.rangeProvider)return this.rangeProvider;const r=new Wde(i,this.languageConfigurationService,this._foldingLimitReporter);if(this.rangeProvider=r,this._useFoldingProviders&&this.foldingModel){const o=GV.getFoldingRangeProviders(this.languageFeaturesService,i);o.length>0&&(this.rangeProvider=new Ude(i,o,()=>this.triggerFoldingModelChanged(),this._foldingLimitReporter,r))}return this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onDidChangeModelContent(i){this.hiddenRangeModel?.notifyChangeModelContent(i),this.triggerFoldingModelChanged()}triggerFoldingModelChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(()=>{const i=this.foldingModel;if(!i)return null;const r=new Ah,o=this.getRangeProvider(i.textModel),s=this.foldingRegionPromise=vd(a=>o.compute(a));return s.then(a=>{if(a&&s===this.foldingRegionPromise){let l;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){const d=a.setCollapsedAllOfType(cO.Imports.value,!0);d&&(l=VD.capture(this.editor),this._currentModelHasFoldedImports=d)}const c=this.editor.getSelections();i.update(a,mZn(c)),l?.restore(this.editor);const u=this.updateDebounceInfo.update(i.textModel,r.elapsed());this.updateScheduler&&(this.updateScheduler.defaultDelay=u)}return i})}).then(void 0,i=>(Mr(i),null)))}onHiddenRangesChanges(i){if(this.hiddenRangeModel&&i.length&&!this._restoringViewState){const r=this.editor.getSelections();r&&this.hiddenRangeModel.adjustSelections(r)&&this.editor.setSelections(r)}this.editor.setHiddenAreas(i,this)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){const i=this.getFoldingModel();i&&i.then(r=>{if(r){const o=this.editor.getSelections();if(o&&o.length>0){const s=[];for(const a of o){const l=a.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(l)&&s.push(...r.getAllRegionsAtLine(l,c=>c.isCollapsed&&l>c.startLineNumber))}s.length&&(r.toggleCollapseState(s),this.reveal(o[0].getPosition()))}}}).then(void 0,Mr)}onEditorMouseDown(i){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!i.target||!i.target.range||!i.event.leftButton&&!i.event.middleButton)return;const r=i.target.range;let o=!1;switch(i.target.type){case 4:{const s=i.target.detail,a=i.target.element.offsetLeft;if(s.offsetX-a<4)return;o=!0;break}case 7:{if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()&&!i.target.detail.isAfterLines)break;return}case 6:{if(this.hiddenRangeModel.hasRanges()){const s=this.editor.getModel();if(s&&r.startColumn===s.getLineMaxColumn(r.startLineNumber))break}return}default:return}this.mouseDownInfo={lineNumber:r.startLineNumber,iconClicked:o}}onEditorMouseUp(i){const r=this.foldingModel;if(!r||!this.mouseDownInfo||!i.target)return;const o=this.mouseDownInfo.lineNumber,s=this.mouseDownInfo.iconClicked,a=i.target.range;if(!a||a.startLineNumber!==o)return;if(s){if(i.target.type!==4)return}else{const c=this.editor.getModel();if(!c||a.startColumn!==c.getLineMaxColumn(o))return}const l=r.getRegionAtLine(o);if(l&&l.startLineNumber===o){const c=l.isCollapsed;if(s||c){const u=i.event.altKey;let d=[];if(u){const h=p=>!p.containedBy(l)&&!l.containedBy(p),f=r.getRegionsInside(null,h);for(const p of f)p.isCollapsed&&d.push(p);d.length===0&&(d=f)}else{const h=i.event.middleButton||i.event.shiftKey;if(h)for(const f of r.getRegionsInside(l))f.isCollapsed===c&&d.push(f);(c||!h||d.length===0)&&d.push(l)}r.toggleCollapseState(d),this.reveal({lineNumber:o,column:1})}}}reveal(i){this.editor.revealPositionInCenterIfOutsideViewport(i,0)}},GV=e,e.ID="editor.contrib.folding",e),jA=GV=Tbt([y4(1,ur),y4(2,yl),y4(3,Cc),y4(4,Mv),y4(5,gi)],jA),p8e=class{constructor(n){this.editor=n,this._onDidChange=new bt,this._computed=0,this._limited=!1}get limit(){return this.editor.getOptions().get(47)}update(n,i){(n!==this._computed||i!==this._limited)&&(this._computed=n,this._limited=i,this._onDidChange.fire())}},Wh=class extends ri{runEditorCommand(n,i,r){const o=n.get(yl),s=jA.get(i);if(!s)return;const a=s.getFoldingModel();if(a)return this.reportTelemetry(n,i),a.then(l=>{if(l){this.invoke(s,l,i,r,o);const c=i.getSelection();c&&s.reveal(c.getStartPosition())}})}getSelectedLines(n){const i=n.getSelections();return i?i.map(r=>r.startLineNumber):[]}getLineNumbers(n,i){return n&&n.selectionLines?n.selectionLines.map(r=>r+1):this.getSelectedLines(i)}run(n,i){}},kbt=class extends Wh{constructor(){super({id:"editor.unfold",label:R("unfoldAction.label","Unfold"),alias:"Unfold",precondition:nh,kbOpts:{kbExpr:Ge.editorTextFocus,primary:3166,mac:{primary:2654},weight:100},metadata:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:`Property-value pairs that can be passed through this argument:
						* 'levels': Number of levels to unfold. If not set, defaults to 1.
						* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.
						* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.
						`,constraint:Dbt,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(n,i,r,o){const s=o&&o.levels||1,a=this.getLineNumbers(o,r);o&&o.direction==="up"?_bt(i,!1,s,a):v4(i,!1,s,a)}},Ibt=class extends Wh{constructor(){super({id:"editor.unfoldRecursively",label:R("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:nh,kbOpts:{kbExpr:Ge.editorTextFocus,primary:pu(2089,2142),weight:100}})}invoke(n,i,r,o){v4(i,!1,Number.MAX_VALUE,this.getSelectedLines(r))}},Lbt=class extends Wh{constructor(){super({id:"editor.fold",label:R("foldAction.label","Fold"),alias:"Fold",precondition:nh,kbOpts:{kbExpr:Ge.editorTextFocus,primary:3164,mac:{primary:2652},weight:100},metadata:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:`Property-value pairs that can be passed through this argument:
							* 'levels': Number of levels to fold.
							* 'direction': If 'up', folds given number of levels up otherwise folds down.
							* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.
							If no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.
						`,constraint:Dbt,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(n,i,r,o){const s=this.getLineNumbers(o,r),a=o&&o.levels,l=o&&o.direction;typeof a!="number"&&typeof l!="string"?sZn(i,!0,s):l==="up"?_bt(i,!0,a||1,s):v4(i,!0,a||1,s)}},Nbt=class extends Wh{constructor(){super({id:"editor.toggleFold",label:R("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:nh,kbOpts:{kbExpr:Ge.editorTextFocus,primary:pu(2089,2090),weight:100}})}invoke(n,i,r){const o=this.getSelectedLines(r);f8e(i,1,o)}},Pbt=class extends Wh{constructor(){super({id:"editor.foldRecursively",label:R("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:nh,kbOpts:{kbExpr:Ge.editorTextFocus,primary:pu(2089,2140),weight:100}})}invoke(n,i,r){const o=this.getSelectedLines(r);v4(i,!0,Number.MAX_VALUE,o)}},Mbt=class extends Wh{constructor(){super({id:"editor.toggleFoldRecursively",label:R("toggleFoldRecursivelyAction.label","Toggle Fold Recursively"),alias:"Toggle Fold Recursively",precondition:nh,kbOpts:{kbExpr:Ge.editorTextFocus,primary:pu(2089,3114),weight:100}})}invoke(n,i,r){const o=this.getSelectedLines(r);f8e(i,Number.MAX_VALUE,o)}},Obt=class extends Wh{constructor(){super({id:"editor.foldAllBlockComments",label:R("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:nh,kbOpts:{kbExpr:Ge.editorTextFocus,primary:pu(2089,2138),weight:100}})}invoke(n,i,r,o,s){if(i.regions.hasTypes())VEe(i,cO.Comment.value,!0);else{const a=r.getModel();if(!a)return;const l=s.getLanguageConfiguration(a.getLanguageId()).comments;if(l&&l.blockCommentStartToken){const c=new RegExp("^\\s*"+z0(l.blockCommentStartToken));zEe(i,c,!0)}}}},Rbt=class extends Wh{constructor(){super({id:"editor.foldAllMarkerRegions",label:R("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:nh,kbOpts:{kbExpr:Ge.editorTextFocus,primary:pu(2089,2077),weight:100}})}invoke(n,i,r,o,s){if(i.regions.hasTypes())VEe(i,cO.Region.value,!0);else{const a=r.getModel();if(!a)return;const l=s.getLanguageConfiguration(a.getLanguageId()).foldingRules;if(l&&l.markers&&l.markers.start){const c=new RegExp(l.markers.start);zEe(i,c,!0)}}}},Fbt=class extends Wh{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:R("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:nh,kbOpts:{kbExpr:Ge.editorTextFocus,primary:pu(2089,2078),weight:100}})}invoke(n,i,r,o,s){if(i.regions.hasTypes())VEe(i,cO.Region.value,!1);else{const a=r.getModel();if(!a)return;const l=s.getLanguageConfiguration(a.getLanguageId()).foldingRules;if(l&&l.markers&&l.markers.start){const c=new RegExp(l.markers.start);zEe(i,c,!1)}}}},Bbt=class extends Wh{constructor(){super({id:"editor.foldAllExcept",label:R("foldAllExcept.label","Fold All Except Selected"),alias:"Fold All Except Selected",precondition:nh,kbOpts:{kbExpr:Ge.editorTextFocus,primary:pu(2089,2136),weight:100}})}invoke(n,i,r){const o=this.getSelectedLines(r);wbt(i,!0,o)}},jbt=class extends Wh{constructor(){super({id:"editor.unfoldAllExcept",label:R("unfoldAllExcept.label","Unfold All Except Selected"),alias:"Unfold All Except Selected",precondition:nh,kbOpts:{kbExpr:Ge.editorTextFocus,primary:pu(2089,2134),weight:100}})}invoke(n,i,r){const o=this.getSelectedLines(r);wbt(i,!1,o)}},zbt=class extends Wh{constructor(){super({id:"editor.foldAll",label:R("foldAllAction.label","Fold All"),alias:"Fold All",precondition:nh,kbOpts:{kbExpr:Ge.editorTextFocus,primary:pu(2089,2069),weight:100}})}invoke(n,i,r){v4(i,!0)}},Vbt=class extends Wh{constructor(){super({id:"editor.unfoldAll",label:R("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:nh,kbOpts:{kbExpr:Ge.editorTextFocus,primary:pu(2089,2088),weight:100}})}invoke(n,i,r){v4(i,!1)}},UEe=(t=class extends Wh{getFoldingLevel(){return parseInt(this.id.substr(t.ID_PREFIX.length))}invoke(i,r,o){aZn(r,this.getFoldingLevel(),!0,this.getSelectedLines(o))}},t.ID_PREFIX="editor.foldLevel",t.ID=i=>t.ID_PREFIX+i,t),Hbt=class extends Wh{constructor(){super({id:"editor.gotoParentFold",label:R("gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:nh,kbOpts:{kbExpr:Ge.editorTextFocus,weight:100}})}invoke(n,i,r){const o=this.getSelectedLines(r);if(o.length>0){const s=lZn(o[0],i);s!==null&&r.setSelection({startLineNumber:s,startColumn:1,endLineNumber:s,endColumn:1})}}},Wbt=class extends Wh{constructor(){super({id:"editor.gotoPreviousFold",label:R("gotoPreviousFold.label","Go to Previous Folding Range"),alias:"Go to Previous Folding Range",precondition:nh,kbOpts:{kbExpr:Ge.editorTextFocus,weight:100}})}invoke(n,i,r){const o=this.getSelectedLines(r);if(o.length>0){const s=cZn(o[0],i);s!==null&&r.setSelection({startLineNumber:s,startColumn:1,endLineNumber:s,endColumn:1})}}},Ubt=class extends Wh{constructor(){super({id:"editor.gotoNextFold",label:R("gotoNextFold.label","Go to Next Folding Range"),alias:"Go to Next Folding Range",precondition:nh,kbOpts:{kbExpr:Ge.editorTextFocus,weight:100}})}invoke(n,i,r){const o=this.getSelectedLines(r);if(o.length>0){const s=uZn(o[0],i);s!==null&&r.setSelection({startLineNumber:s,startColumn:1,endLineNumber:s,endColumn:1})}}},$bt=class extends Wh{constructor(){super({id:"editor.createFoldingRangeFromSelection",label:R("createManualFoldRange.label","Create Folding Range from Selection"),alias:"Create Folding Range from Selection",precondition:nh,kbOpts:{kbExpr:Ge.editorTextFocus,primary:pu(2089,2135),weight:100}})}invoke(n,i,r){const o=[],s=r.getSelections();if(s){for(const a of s){let l=a.endLineNumber;a.endColumn===1&&--l,l>a.startLineNumber&&(o.push({startLineNumber:a.startLineNumber,endLineNumber:l,type:void 0,isCollapsed:!0,source:1}),r.setSelection({startLineNumber:a.startLineNumber,startColumn:1,endLineNumber:a.startLineNumber,endColumn:1}))}if(o.length>0){o.sort((l,c)=>l.startLineNumber-c.startLineNumber);const a=My.sanitizeAndMerge(i.regions,o,r.getModel()?.getLineCount());i.updatePost(My.fromFoldRanges(a))}}}},qbt=class extends Wh{constructor(){super({id:"editor.removeManualFoldingRanges",label:R("removeManualFoldingRanges.label","Remove Manual Folding Ranges"),alias:"Remove Manual Folding Ranges",precondition:nh,kbOpts:{kbExpr:Ge.editorTextFocus,primary:pu(2089,2137),weight:100}})}invoke(n,i,r){const o=r.getSelections();if(o){const s=[];for(const a of o){const{startLineNumber:l,endLineNumber:c}=a;s.push(c>=l?{startLineNumber:l,endLineNumber:c}:{endLineNumber:c,startLineNumber:l})}i.removeManualRanges(s),n.triggerFoldingModelChanged()}}},qo(jA.ID,jA,0),yn(kbt),yn(Ibt),yn(Lbt),yn(Pbt),yn(Mbt),yn(zbt),yn(Vbt),yn(Obt),yn(Rbt),yn(Fbt),yn(Bbt),yn(jbt),yn(Nbt),yn(Hbt),yn(Wbt),yn(Ubt),yn($bt),yn(qbt);for(let n=1;n<=7;n++)J7n(new UEe({id:UEe.ID(n),label:R("foldLevelAction.label","Fold Level {0}",n),alias:`Fold Level ${n}`,precondition:nh,kbOpts:{kbExpr:Ge.editorTextFocus,primary:pu(2089,2048|21+n),weight:100}}));Ro.registerCommand("_executeFoldingRangeProvider",async function(n,...i){const[r]=i;if(!(r instanceof Ui))throw Gy();const o=n.get(gi),s=n.get(Ua).getModel(r);if(!s)throw Gy();const a=n.get(co);if(!a.getValue("editor.folding",{resource:r}))return[];const l=n.get(yl),c=a.getValue("editor.foldingStrategy",{resource:r}),u={get limit(){return a.getValue("editor.foldingMaximumRegions",{resource:r})},update:(g,m)=>{}},d=new Wde(s,l,u);let h=d;if(c!=="indentation"){const g=jA.getFoldingRangeProviders(o,s);g.length&&(h=new Ude(s,g,()=>{},u,d))}const f=await h.compute(no.None),p=[];try{if(f)for(let g=0;g<f.length;g++){const m=f.getType(g);p.push({start:f.getStartLineNumber(g),end:f.getEndLineNumber(g),kind:m?cO.fromValue(m):void 0})}return p}finally{h.dispose()}})}}),Gbt,Kbt,Ybt,vZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js"(){mr(),tY(),bn(),Gbt=class extends ri{constructor(){super({id:"editor.action.fontZoomIn",label:R("EditorFontZoomIn.label","Increase Editor Font Size"),alias:"Increase Editor Font Size",precondition:void 0})}run(e,t){_0.setZoomLevel(_0.getZoomLevel()+1)}},Kbt=class extends ri{constructor(){super({id:"editor.action.fontZoomOut",label:R("EditorFontZoomOut.label","Decrease Editor Font Size"),alias:"Decrease Editor Font Size",precondition:void 0})}run(e,t){_0.setZoomLevel(_0.getZoomLevel()-1)}},Ybt=class extends ri{constructor(){super({id:"editor.action.fontZoomReset",label:R("EditorFontZoomReset.label","Reset Editor Font Size"),alias:"Reset Editor Font Size",precondition:void 0})}run(e,t){_0.setZoomLevel(0)}},yn(Gbt),yn(Kbt),yn(Ybt)}}),$Ee,b4,KV,YV,Qbt,Zbt,yZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/format/browser/formatActions.js"(){var e,t;rr(),Ho(),Vi(),wb(),Nt(),mr(),Ec(),D7(),Dn(),ls(),SE(),Eo(),MJt(),IJt(),bn(),rF(),Ks(),er(),li(),$C(),$Ee=function(n,i,r,o){var s=arguments.length,a=s<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,r):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,i,r,o);else for(var c=n.length-1;c>=0;c--)(l=n[c])&&(a=(s<3?l(a):s>3?l(i,r,a):l(i,r))||a);return s>3&&a&&Object.defineProperty(i,r,a),a},b4=function(n,i){return function(r,o){i(r,o,n)}},KV=(e=class{constructor(i,r,o,s){this._editor=i,this._languageFeaturesService=r,this._workerService=o,this._accessibilitySignalService=s,this._disposables=new Jt,this._sessionDisposables=new Jt,this._disposables.add(r.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(i.onDidChangeModel(()=>this._update())),this._disposables.add(i.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(i.onDidChangeConfiguration(a=>{a.hasChanged(56)&&this._update()})),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(56)||!this._editor.hasModel())return;const i=this._editor.getModel(),[r]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(i);if(!r||!r.autoFormatTriggerCharacters)return;const o=new Gq;for(const s of r.autoFormatTriggerCharacters)o.add(s.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType(s=>{const a=s.charCodeAt(s.length-1);o.has(a)&&this._trigger(String.fromCharCode(a))}))}_trigger(i){if(!this._editor.hasModel()||this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;const r=this._editor.getModel(),o=this._editor.getPosition(),s=new bl,a=this._editor.onDidChangeModelContent(l=>{if(l.isFlush){s.cancel(),a.dispose();return}for(let c=0,u=l.changes.length;c<u;c++)if(l.changes[c].range.endLineNumber<=o.lineNumber){s.cancel(),a.dispose();return}});PJt(this._workerService,this._languageFeaturesService,r,o,i,r.getFormattingOptions(),s.token).then(l=>{s.token.isCancellationRequested||Sp(l)&&(this._accessibilitySignalService.playSignal(Py.format,{userGesture:!1}),$ge.execute(this._editor,l,!0))}).finally(()=>{a.dispose()})}},e.ID="editor.contrib.autoFormat",e),KV=$Ee([b4(1,gi),b4(2,fg),b4(3,xT)],KV),YV=(t=class{constructor(i,r,o){this.editor=i,this._languageFeaturesService=r,this._instantiationService=o,this._callOnDispose=new Jt,this._callOnModel=new Jt,this._callOnDispose.add(i.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(i.onDidChangeModel(()=>this._update())),this._callOnDispose.add(i.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(r.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(55)&&this.editor.hasModel()&&this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste(({range:i})=>this._trigger(i)))}_trigger(i){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(Hgt,this.editor,i,2,gx.None,no.None,!1).catch(Mr))}},t.ID="editor.contrib.formatOnPaste",t),YV=$Ee([b4(1,gi),b4(2,ji)],YV),Qbt=class extends ri{constructor(){super({id:"editor.action.formatDocument",label:R("formatDocument.label","Format Document"),alias:"Format Document",precondition:nn.and(Ge.notInCompositeEditor,Ge.writable,Ge.hasDocumentFormattingProvider),kbOpts:{kbExpr:Ge.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}async run(n,i){if(i.hasModel()){const r=n.get(ji);await n.get(jD).showWhile(r.invokeFunction(JKn,i,1,gx.None,no.None,!0),250)}}},Zbt=class extends ri{constructor(){super({id:"editor.action.formatSelection",label:R("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:nn.and(Ge.writable,Ge.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:Ge.editorTextFocus,primary:pu(2089,2084),weight:100},contextMenuOpts:{when:Ge.hasNonEmptySelection,group:"1_modification",order:1.31}})}async run(n,i){if(!i.hasModel())return;const r=n.get(ji),o=i.getModel(),s=i.getSelections().map(l=>l.isEmpty()?new Re(l.startLineNumber,1,l.startLineNumber,o.getLineMaxColumn(l.startLineNumber)):l);await n.get(jD).showWhile(r.invokeFunction(Hgt,i,s,1,gx.None,no.None,!0),250)}},qo(KV.ID,KV,2),qo(YV.ID,YV,2),yn(Qbt),yn(Zbt),Ro.registerCommand("editor.action.format",async n=>{const i=n.get(Jo).getFocusedCodeEditor();if(!i||!i.hasModel())return;const r=n.get(Oa);i.getSelection().isEmpty()?await r.executeCommand("editor.action.formatDocument"):await r.executeCommand("editor.action.formatSelection")})}}),Xbt,Ute,hM,ule,g8e,m8e,f9,$te,zY=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/documentSymbols/browser/outlineModel.js"(){rr(),Ho(),Vi(),bg(),kh(),Hi(),Dn(),Db(),li(),vf(),Kf(),Nt(),Eo(),Xbt=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},Ute=function(e,t){return function(n,i){t(n,i,e)}},hM=class{remove(){this.parent?.children.delete(this.id)}static findId(e,t){let n;typeof e=="string"?n=`${t.id}/${e}`:(n=`${t.id}/${e.name}`,t.children.get(n)!==void 0&&(n=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let i=n;for(let r=0;t.children.get(i)!==void 0;r++)i=`${n}_${r}`;return i}static empty(e){return e.children.size===0}},ule=class extends hM{constructor(e,t,n){super(),this.id=e,this.parent=t,this.symbol=n,this.children=new Map}},g8e=class extends hM{constructor(e,t,n,i){super(),this.id=e,this.parent=t,this.label=n,this.order=i,this.children=new Map}},m8e=class eO extends hM{static create(t,n,i){const r=new bl(i),o=new eO(n.uri),s=t.ordered(n),a=s.map((c,u)=>{const d=hM.findId(`provider_${u}`,o),h=new g8e(d,o,c.displayName??"Unknown Outline Provider",u);return Promise.resolve(c.provideDocumentSymbols(n,r.token)).then(f=>{for(const p of f||[])eO._makeOutlineElement(p,h);return h},f=>(Sc(f),h)).then(f=>{hM.empty(f)?f.remove():o._groups.set(d,f)})}),l=t.onDidChange(()=>{const c=t.ordered(n);vl(c,s)||r.cancel()});return Promise.all(a).then(()=>r.token.isCancellationRequested&&!i.isCancellationRequested?eO.create(t,n,i):o._compact()).finally(()=>{r.dispose(),l.dispose(),r.dispose()})}static _makeOutlineElement(t,n){const i=hM.findId(t,n),r=new ule(i,n,t);if(t.children)for(const o of t.children)eO._makeOutlineElement(o,r);n.children.set(r.id,r)}constructor(t){super(),this.uri=t,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}_compact(){let t=0;for(const[n,i]of this._groups)i.children.size===0?this._groups.delete(n):t+=1;if(t!==1)this.children=this._groups;else{const n=Vo.first(this._groups.values());for(const[,i]of n.children)i.parent=this,this.children.set(i.id,i)}return this}getTopLevelSymbols(){const t=[];for(const n of this.children.values())n instanceof ule?t.push(n.symbol):t.push(...Vo.map(n.children.values(),i=>i.symbol));return t.sort((n,i)=>Re.compareRangesUsingStarts(n.range,i.range))}asListOfDocumentSymbols(){const t=this.getTopLevelSymbols(),n=[];return eO._flattenDocumentSymbols(n,t,""),n.sort((i,r)=>mt.compare(Re.getStartPosition(i.range),Re.getStartPosition(r.range))||mt.compare(Re.getEndPosition(r.range),Re.getEndPosition(i.range)))}static _flattenDocumentSymbols(t,n,i){for(const r of n)t.push({kind:r.kind,tags:r.tags,name:r.name,detail:r.detail,containerName:r.containerName||i,range:r.range,selectionRange:r.selectionRange,children:void 0}),r.children&&eO._flattenDocumentSymbols(t,r.children,r.name)}},f9=Ao("IOutlineModelService"),$te=class{constructor(t,n,i){this._languageFeaturesService=t,this._disposables=new Jt,this._cache=new WC(10,.7),this._debounceInformation=n.for(t.documentSymbolProvider,"DocumentSymbols",{min:350}),this._disposables.add(i.onModelRemoved(r=>{this._cache.delete(r.id)}))}dispose(){this._disposables.dispose()}async getOrCreate(t,n){const i=this._languageFeaturesService.documentSymbolProvider,r=i.ordered(t);let o=this._cache.get(t.id);if(!o||o.versionId!==t.getVersionId()||!vl(o.provider,r)){const a=new bl;o={versionId:t.getVersionId(),provider:r,promiseCnt:0,source:a,promise:m8e.create(i,t,a.token),model:void 0},this._cache.set(t.id,o);const l=Date.now();o.promise.then(c=>{o.model=c,this._debounceInformation.update(t,Date.now()-l)}).catch(c=>{this._cache.delete(t.id)})}if(o.model)return o.model;o.promiseCnt+=1;const s=n.onCancellationRequested(()=>{--o.promiseCnt===0&&(o.source.cancel(),this._cache.delete(t.id))});try{return await o.promise}finally{s.dispose()}}},$te=Xbt([Ute(0,gi),Ute(1,Mv),Ute(2,Ua)],$te),Oo(f9,$te,1)}}),bZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/documentSymbols/browser/documentSymbols.js"(){Ho(),as(),ss(),Eb(),zY(),Ks(),Ro.registerCommand("_executeDocumentSymbolProvider",async function(e,...t){const[n]=t;ns(Ui.isUri(n));const i=e.get(f9),o=await e.get(dg).createModelReference(n);try{return(await i.getOrCreate(o.object.textEditorModel,no.None)).getTopLevelSymbols()}finally{o.dispose()}})}}),h0,q$e=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js"(){var e;xs(),Ki(),HC(),er(),Nt(),bn(),h0=(e=class extends St{constructor(n,i){super(),this.contextKeyService=n,this.model=i,this.inlineCompletionVisible=e.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=e.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=e.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService),this.suppressSuggestions=e.suppressSuggestions.bindTo(this.contextKeyService),this._register(Tr(r=>{const s=this.model.read(r)?.state.read(r),a=!!s?.inlineCompletion&&s?.primaryGhostText!==void 0&&!s?.primaryGhostText.isEmpty();this.inlineCompletionVisible.set(a),s?.primaryGhostText&&s?.inlineCompletion&&this.suppressSuggestions.set(s.inlineCompletion.inlineCompletion.source.inlineCompletions.suppressSuggestions)})),this._register(Tr(r=>{const o=this.model.read(r);let s=!1,a=!0;const l=o?.primaryGhostText.read(r);if(o?.selectedSuggestItem&&l&&l.parts.length>0){const{column:c,lines:u}=l.parts[0],d=u[0],h=o.textModel.getLineIndentColumn(l.lineNumber);if(c<=h){let p=Cp(d);p===-1&&(p=d.length-1),s=p>0;const g=o.textModel.getOptions().tabSize;a=cd.visibleColumnFromColumn(d,p+1,g)<g}}this.inlineCompletionSuggestsIndentation.set(s),this.inlineCompletionSuggestsIndentationLessThanTabSize.set(a)}))}},e.inlineSuggestionVisible=new Qn("inlineSuggestionVisible",!1,R("inlineSuggestionVisible","Whether an inline suggestion is visible")),e.inlineSuggestionHasIndentation=new Qn("inlineSuggestionHasIndentation",!1,R("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace")),e.inlineSuggestionHasIndentationLessThanTabSize=new Qn("inlineSuggestionHasIndentationLessThanTabSize",!0,R("inlineSuggestionHasIndentationLessThanTabSize","Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab")),e.suppressSuggestions=new Qn("inlineSuggestionSuppressSuggestions",void 0,R("suppressSuggestions","Whether suggestions should be suppressed for the current suggestion")),e)}});function _Zn(e){const t=new Jt,n=t.add(JVt());return t.add(Tr(i=>{n.setStyle(e.read(i))})),t}var wZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/domObservable.js"(){Fn(),Nt(),xs()}}),CZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/view/ghostTextView.css"(){}});function Jbt(e,t){return vl(e,t,Cnn)}function Cnn(e,t){return e===t?!0:!e||!t?!1:e instanceof p9&&t instanceof p9||e instanceof $de&&t instanceof $de?e.equals(t):!1}var p9,yG,$de,lme=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/model/ghostText.js"(){rr(),Ki(),Hi(),Dn(),mT(),p9=class{constructor(e,t){this.lineNumber=e,this.parts=t}equals(e){return this.lineNumber===e.lineNumber&&this.parts.length===e.parts.length&&this.parts.every((t,n)=>t.equals(e.parts[n]))}renderForScreenReader(e){if(this.parts.length===0)return"";const t=this.parts[this.parts.length-1],n=e.substr(0,t.column-1);return new tge([...this.parts.map(r=>new wC(Re.fromPositions(new mt(1,r.column)),r.lines.join(`
`)))]).applyToString(n).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every(e=>e.lines.length===0)}get lineCount(){return 1+this.parts.reduce((e,t)=>e+t.lines.length-1,0)}},yG=class{constructor(e,t,n){this.column=e,this.text=t,this.preview=n,this.lines=Zx(this.text)}equals(e){return this.column===e.column&&this.lines.length===e.lines.length&&this.lines.every((t,n)=>t===e.lines[n])}},$de=class{constructor(e,t,n,i=0){this.lineNumber=e,this.columnRange=t,this.text=n,this.additionalReservedLineCount=i,this.parts=[new yG(this.columnRange.endColumnExclusive,this.text,!1)],this.newLines=Zx(this.text)}renderForScreenReader(e){return this.newLines.join(`
`)}get lineCount(){return this.newLines.length}isEmpty(){return this.parts.every(e=>e.lines.length===0)}equals(e){return this.lineNumber===e.lineNumber&&this.columnRange.equals(e.columnRange)&&this.newLines.length===e.newLines.length&&this.newLines.every((t,n)=>t===e.newLines[n])&&this.additionalReservedLineCount===e.additionalReservedLineCount}}}});function SZn(){return xnn}function Snn(e,t){const n=new Jt,i=e.createDecorationsCollection();return n.add(_Y({debugName:()=>`Apply decorations from ${t.debugName}`},r=>{const o=t.read(r);i.set(o)})),n.add({dispose:()=>{i.clear()}}),n}function xZn(e,t){return new mt(e.lineNumber+t.lineNumber-1,t.lineNumber===1?e.column+t.column-1:t.column)}function e_t(e,t){return new mt(e.lineNumber-t.lineNumber+1,e.lineNumber-t.lineNumber===0?e.column-t.column+1:e.column)}var xnn,G$e,cme=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/utils.js"(){Vi(),Nt(),xs(),Hi(),Dn(),xnn=[],G$e=class{constructor(e,t){if(this.startColumn=e,this.endColumnExclusive=t,e>t)throw new ys(`startColumn ${e} cannot be after endColumnExclusive ${t}`)}toRange(e){return new Re(e,this.startColumn,e,this.endColumnExclusive)}equals(e){return this.startColumn===e.startColumn&&this.endColumnExclusive===e.endColumnExclusive}}}});function EZn(e,t,n,i,r){const o=i.get(33),s=i.get(118),a="none",l=i.get(95),c=i.get(51),u=i.get(50),d=i.get(67),h=new Z2(1e4);h.appendString('<div class="suggest-preview-text">');for(let g=0,m=n.length;g<m;g++){const v=n[g],y=v.content;h.appendString('<div class="view-line'),h.appendString('" style="top:'),h.appendString(String(g*d)),h.appendString('px;width:1000000px;">');const b=qK(y),w=G8(y),E=Dh.createEmpty(y,r);eY(new hT(u.isMonospace&&!o,u.canUseHalfwidthRightwardsArrow,y,!1,b,w,0,E,v.decorations,t,0,u.spaceWidth,u.middotWidth,u.wsmiddotWidth,s,a,l,c!==QR.OFF,null),h),h.appendString("</div>")}h.appendString("</div>"),yh(e,u);const f=h.build(),p=v8e?v8e.createHTML(f):f;e.innerHTML=p}var t_t,n_t,qEe,dle,i_t,v8e,AZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/view/ghostTextView.js"(){pT(),Un(),Nt(),xs(),Ki(),CZn(),xb(),Su(),Hi(),Dn(),TN(),Kd(),Cd(),bw(),E7(),X2(),lme(),cme(),t_t=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},n_t=function(e,t){return function(n,i){t(n,i,e)}},qEe="ghost-text",dle=class extends St{constructor(t,n,i){super(),this.editor=t,this.model=n,this.languageService=i,this.isDisposed=mo(this,!1),this.currentTextModel=Bs(this,this.editor.onDidChangeModel,()=>this.editor.getModel()),this.uiState=Fi(this,r=>{if(this.isDisposed.read(r))return;const o=this.currentTextModel.read(r);if(o!==this.model.targetTextModel.read(r))return;const s=this.model.ghostText.read(r);if(!s)return;const a=s instanceof $de?s.columnRange:void 0,l=[],c=[];function u(g,m){if(c.length>0){const v=c[c.length-1];m&&v.decorations.push(new sb(v.content.length+1,v.content.length+1+g[0].length,m,0)),v.content+=g[0],g=g.slice(1)}for(const v of g)c.push({content:v,decorations:m?[new sb(1,v.length+1,m,0)]:[]})}const d=o.getLineContent(s.lineNumber);let h,f=0;for(const g of s.parts){let m=g.lines;h===void 0?(l.push({column:g.column,text:m[0],preview:g.preview}),m=m.slice(1)):u([d.substring(f,g.column-1)],void 0),m.length>0&&(u(m,qEe),h===void 0&&g.column<=d.length&&(h=g.column)),f=g.column-1}h!==void 0&&u([d.substring(f)],void 0);const p=h!==void 0?new G$e(h,d.length+1):void 0;return{replacedRange:a,inlineTexts:l,additionalLines:c,hiddenRange:p,lineNumber:s.lineNumber,additionalReservedLineCount:this.model.minReservedLineCount.read(r),targetTextModel:o}}),this.decorations=Fi(this,r=>{const o=this.uiState.read(r);if(!o)return[];const s=[];o.replacedRange&&s.push({range:o.replacedRange.toRange(o.lineNumber),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}),o.hiddenRange&&s.push({range:o.hiddenRange.toRange(o.lineNumber),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}});for(const a of o.inlineTexts)s.push({range:Re.fromPositions(new mt(o.lineNumber,a.column)),options:{description:qEe,after:{content:a.text,inlineClassName:a.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:L_.Left},showIfCollapsed:!0}});return s}),this.additionalLinesWidget=this._register(new i_t(this.editor,this.languageService.languageIdCodec,Fi(r=>{const o=this.uiState.read(r);return o?{lineNumber:o.lineNumber,additionalLines:o.additionalLines,minReservedLineCount:o.additionalReservedLineCount,targetTextModel:o.targetTextModel}:void 0}))),this._register(zi(()=>{this.isDisposed.set(!0,void 0)})),this._register(Snn(this.editor,this.decorations))}ownsViewZone(t){return this.additionalLinesWidget.viewZoneId===t}},dle=t_t([n_t(2,al)],dle),i_t=class extends St{get viewZoneId(){return this._viewZoneId}constructor(e,t,n){super(),this.editor=e,this.languageIdCodec=t,this.lines=n,this._viewZoneId=void 0,this.editorOptionsChanged=af("editorOptionChanged",On.filter(this.editor.onDidChangeConfiguration,i=>i.hasChanged(33)||i.hasChanged(118)||i.hasChanged(100)||i.hasChanged(95)||i.hasChanged(51)||i.hasChanged(50)||i.hasChanged(67))),this._register(Tr(i=>{const r=this.lines.read(i);this.editorOptionsChanged.read(i),r?this.updateLines(r.lineNumber,r.additionalLines,r.minReservedLineCount):this.clear()}))}dispose(){super.dispose(),this.clear()}clear(){this.editor.changeViewZones(e=>{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)})}updateLines(e,t,n){const i=this.editor.getModel();if(!i)return;const{tabSize:r}=i.getOptions();this.editor.changeViewZones(o=>{this._viewZoneId&&(o.removeZone(this._viewZoneId),this._viewZoneId=void 0);const s=Math.max(t.length,n);if(s>0){const a=document.createElement("div");EZn(a,r,t,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=o.addZone({afterLineNumber:e,heightInLines:s,domNode:a,afterColumnAffinity:1})}})}},v8e=fT("editorGhostText",{createHTML:e=>e})}});function DZn(e,t){const n=new PWe,i=new RWe(n,c=>t.getLanguageConfiguration(c)),r=new MWe(new Enn([e]),i),o=rBe(r,[],void 0,!0);let s="";const a=e.getLineContent();function l(c,u){if(c.kind===2)if(l(c.openingBracket,u),u=nc(u,c.openingBracket.length),c.child&&(l(c.child,u),u=nc(u,c.child.length)),c.closingBracket)l(c.closingBracket,u),u=nc(u,c.closingBracket.length);else{const h=i.getSingleLanguageBracketTokens(c.openingBracket.languageId).findClosingTokenText(c.openingBracket.bracketIds);s+=h}else if(c.kind!==3){if(c.kind===0||c.kind===1)s+=a.substring(u,nc(u,c.length));else if(c.kind===4)for(const d of c.children)l(d,u),u=nc(u,d.length)}}return l(o,_p),s}var Enn,TZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/fixBrackets.js"(){gKt(),ST(),_Kt(),j7(),OWe(),Enn=class{constructor(e){this.lines=e,this.tokenization={getLineTokens:t=>this.lines[t-1]}}getLineCount(){return this.lines.length}getLineLength(e){return this.lines[e-1].getLineContent().length}}}});async function Ann(e,t,n,i,r=no.None,o){const s=t instanceof mt?kZn(t,n):t,a=e.all(n),l=new Xpe;for(const v of a)v.groupId&&l.add(v.groupId,v);function c(v){if(!v.yieldsToGroupIds)return[];const y=[];for(const b of v.yieldsToGroupIds||[]){const w=l.get(b);for(const E of w)y.push(E)}return y}const u=new Map,d=new Set;function h(v,y){if(y=[...y,v],d.has(v))return y;d.add(v);try{const b=c(v);for(const w of b){const E=h(w,y);if(E)return E}}finally{d.delete(v)}}function f(v){const y=u.get(v);if(y)return y;const b=h(v,[]);b&&Sc(new Error(`Inline completions: cyclic yield-to dependency detected. Path: ${b.map(E=>E.toString?E.toString():""+E).join(" -> ")}`));const w=new K2;return u.set(v,w.p),(async()=>{if(!b){const E=c(v);for(const A of E){const D=await f(A);if(D&&D.items.length>0)return}}try{return t instanceof mt?await v.provideInlineCompletions(n,t,i,r):await v.provideInlineEdits?.(n,t,i,r)}catch(E){Sc(E);return}})().then(E=>w.complete(E),E=>w.error(E)),w.p}const p=await Promise.all(a.map(async v=>({provider:v,completions:await f(v)}))),g=new Map,m=[];for(const v of p){const y=v.completions;if(!y)continue;const b=new Tnn(y,v.provider);m.push(b);for(const w of y.items){const E=knn.from(w,b,s,n,o);g.set(E.hash(),E)}}return new Dnn(Array.from(g.values()),new Set(g.keys()),m)}function kZn(e,t){const n=t.getWordAtPosition(e),i=t.getLineMaxColumn(e.lineNumber);return n?new Re(e.lineNumber,n.startColumn,e.lineNumber,i):Re.fromPositions(e,e.with(void 0,i))}function r_t(e,t,n,i){const o=n.getLineContent(t.lineNumber).substring(0,t.column-1)+e,a=n.tokenization.tokenizeLineWithEdit(t,o.length-(t.column-1),e)?.sliceAndInflate(t.column-1,o.length,0);return a?DZn(a,i):e}var Dnn,Tnn,knn,Inn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js"(){zC(),fr(),Ho(),kh(),Vi(),Hi(),Dn(),TZn(),mT(),cme(),lF(),Dnn=class{constructor(e,t,n){this.completions=e,this.hashs=t,this.providerResults=n}has(e){return this.hashs.has(e.hash())}dispose(){for(const e of this.providerResults)e.removeRef()}},Tnn=class{constructor(e,t){this.inlineCompletions=e,this.provider=t,this.refCount=1}addRef(){this.refCount++}removeRef(){this.refCount--,this.refCount===0&&this.provider.freeInlineCompletions(this.inlineCompletions)}},knn=class y8e{static from(t,n,i,r,o){let s,a,l=t.range?Re.lift(t.range):i;if(typeof t.insertText=="string"){if(s=t.insertText,o&&t.completeBracketPairs){s=r_t(s,l.getStartPosition(),r,o);const c=s.length-t.insertText.length;c!==0&&(l=new Re(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn+c))}a=void 0}else if("snippet"in t.insertText){const c=t.insertText.snippet.length;if(o&&t.completeBracketPairs){t.insertText.snippet=r_t(t.insertText.snippet,l.getStartPosition(),r,o);const d=t.insertText.snippet.length-c;d!==0&&(l=new Re(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn+d))}const u=new BL().parse(t.insertText.snippet);u.children.length===1&&u.children[0]instanceof Qg?(s=u.children[0].value,a=void 0):(s=u.toString(),a={snippet:t.insertText.snippet,range:l})}else Vpe(t.insertText);return new y8e(s,t.command,l,s,a,t.additionalTextEdits||SZn(),t,n)}constructor(t,n,i,r,o,s,a,l){this.filterText=t,this.command=n,this.range=i,this.insertText=r,this.snippetInfo=o,this.additionalTextEdits=s,this.sourceInlineCompletion=a,this.source=l,t=t.replace(/\r\n|\r/g,`
`),r=t.replace(/\r\n|\r/g,`
`)}withRange(t){return new y8e(this.filterText,this.command,t,this.insertText,this.snippetInfo,this.additionalTextEdits,this.sourceInlineCompletion,this.source)}hash(){return JSON.stringify({insertText:this.insertText,range:this.range.toString()})}toSingleTextEdit(){return new wC(this.range,this.insertText)}}}});function CR(e,t,n){const i=n?e.range.intersectRanges(n):e.range;if(!i)return e;const r=t.getValueInRange(i,1),o=kL(r,e.text),s=_C.ofText(r.substring(0,o)).addToPosition(e.range.getStartPosition()),a=e.text.substring(o),l=Re.fromPositions(s,e.range.getEndPosition());return new wC(l,a)}function Lnn(e,t){return e.text.startsWith(t.text)&&IZn(e.range,t.range)}function o_t(e,t,n,i,r=0){let o=CR(e,t);if(o.range.endLineNumber!==o.range.startLineNumber)return;const s=t.getLineContent(o.range.startLineNumber),a=Ca(s).length;if(o.range.startColumn-1<=a){const p=Ca(o.text).length,g=s.substring(o.range.startColumn-1,a),[m,v]=[o.range.getStartPosition(),o.range.getEndPosition()],y=m.column+g.length<=v.column?m.delta(0,g.length):v,b=Re.fromPositions(y,v),w=o.text.startsWith(g)?o.text.substring(g.length):o.text.substring(p);o=new wC(b,w)}const c=t.getValueInRange(o.range),u=LZn(c,o.text);if(!u)return;const d=o.range.startLineNumber,h=new Array;if(n==="prefix"){const p=u.filter(g=>g.originalLength===0);if(p.length>1||p.length===1&&p[0].originalStart!==c.length)return}const f=o.text.length-r;for(const p of u){const g=o.range.startColumn+p.originalStart+p.originalLength;if(n==="subwordSmart"&&i&&i.lineNumber===o.range.startLineNumber&&g<i.column||p.originalLength>0)return;if(p.modifiedLength===0)continue;const m=p.modifiedStart+p.modifiedLength,v=Math.max(p.modifiedStart,Math.min(m,f)),y=o.text.substring(p.modifiedStart,v),b=o.text.substring(v,Math.max(p.modifiedStart,m));y.length>0&&h.push(new yG(g,y,!1)),b.length>0&&h.push(new yG(g,b,!0))}return new p9(d,h)}function IZn(e,t){return t.getStartPosition().equals(e.getStartPosition())&&t.getEndPosition().isBeforeOrEqual(e.getEndPosition())}function LZn(e,t){if(PW?.originalValue===e&&PW?.newValue===t)return PW?.changes;{let n=a_t(e,t,!0);if(n){const i=s_t(n);if(i>0){const r=a_t(e,t,!1);r&&s_t(r)<i&&(n=r)}}return PW={originalValue:e,newValue:t,changes:n},n}}function s_t(e){let t=0;for(const n of e)t+=n.originalLength;return t}function a_t(e,t,n){if(e.length>5e3||t.length>5e3)return;function i(c){let u=0;for(let d=0,h=c.length;d<h;d++){const f=c.charCodeAt(d);f>u&&(u=f)}return u}const r=Math.max(i(e),i(t));function o(c){if(c<0)throw new Error("unexpected");return r+c+1}function s(c){let u=0,d=0;const h=new Int32Array(c.length);for(let f=0,p=c.length;f<p;f++)if(n&&c[f]==="("){const g=d*100+u;h[f]=o(2*g),u++}else if(n&&c[f]===")"){u=Math.max(u-1,0);const g=d*100+u;h[f]=o(2*g+1),u===0&&d++}else h[f]=c.charCodeAt(f);return h}const a=s(e),l=s(t);return new rY({getElements:()=>a},{getElements:()=>l}).ComputeDiff(!1).changes}var PW,K$e=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/model/singleTextEdit.js"(){Qpe(),Ki(),Dn(),IN(),mT(),lme(),PW=void 0}});function NZn(e,t){return new Promise(n=>{let i;const r=setTimeout(()=>{i&&i.dispose(),n()},e);t&&(i=t.onCancellationRequested(()=>{clearTimeout(r),i&&i.dispose(),n()}))})}var l_t,GEe,hle,c_t,u_t,d_t,KEe,qte,PZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js"(){Ho(),_T(),yw(),Nt(),xs(),Dn(),mT(),IN(),ra(),lu(),Eo(),Inn(),K$e(),l_t=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},GEe=function(e,t){return function(n,i){t(n,i,e)}},hle=class extends St{constructor(t,n,i,r,o){super(),this.textModel=t,this.versionId=n,this._debounceValue=i,this.languageFeaturesService=r,this.languageConfigurationService=o,this._updateOperation=this._register(new Yu),this.inlineCompletions=tG("inlineCompletions",void 0),this.suggestWidgetInlineCompletions=tG("suggestWidgetInlineCompletions",void 0),this._register(this.textModel.onDidChangeContent(()=>{this._updateOperation.clear()}))}fetch(t,n,i){const r=new c_t(t,n,this.textModel.getVersionId()),o=n.selectedSuggestionInfo?this.suggestWidgetInlineCompletions:this.inlineCompletions;if(this._updateOperation.value?.request.satisfies(r))return this._updateOperation.value.promise;if(o.get()?.request.satisfies(r))return Promise.resolve(!0);const s=!!this._updateOperation.value;this._updateOperation.clear();const a=new bl,l=(async()=>{if((s||n.triggerKind===nC.Automatic)&&await NZn(this._debounceValue.get(this.textModel),a.token),a.token.isCancellationRequested||this._store.isDisposed||this.textModel.getVersionId()!==r.versionId)return!1;const d=new Date,h=await Ann(this.languageFeaturesService.inlineCompletionsProvider,t,this.textModel,n,a.token,this.languageConfigurationService);if(a.token.isCancellationRequested||this._store.isDisposed||this.textModel.getVersionId()!==r.versionId)return!1;const f=new Date;this._debounceValue.update(this.textModel,f.getTime()-d.getTime());const p=new d_t(h,r,this.textModel,this.versionId);if(i){const g=i.toInlineCompletion(void 0);i.canBeReused(this.textModel,t)&&!h.has(g)&&p.prepend(i.inlineCompletion,g.range,!0)}return this._updateOperation.clear(),Al(g=>{o.set(p,g)}),!0})(),c=new u_t(r,a,l);return this._updateOperation.value=c,l}clear(t){this._updateOperation.clear(),this.inlineCompletions.set(void 0,t),this.suggestWidgetInlineCompletions.set(void 0,t)}clearSuggestWidgetInlineCompletions(t){this._updateOperation.value?.request.context.selectedSuggestionInfo&&this._updateOperation.clear(),this.suggestWidgetInlineCompletions.set(void 0,t)}cancelUpdate(){this._updateOperation.clear()}},hle=l_t([GEe(3,gi),GEe(4,yl)],hle),c_t=class{constructor(e,t,n){this.position=e,this.context=t,this.versionId=n}satisfies(e){return this.position.equals(e.position)&&F4e(this.context.selectedSuggestionInfo,e.context.selectedSuggestionInfo,_3n())&&(e.context.triggerKind===nC.Automatic||this.context.triggerKind===nC.Explicit)&&this.versionId===e.versionId}},u_t=class{constructor(e,t,n){this.request=e,this.cancellationTokenSource=t,this.promise=n}dispose(){this.cancellationTokenSource.cancel()}},d_t=class{get inlineCompletions(){return this._inlineCompletions}constructor(e,t,n,i){this.inlineCompletionProviderResult=e,this.request=t,this._textModel=n,this._versionId=i,this._refCount=1,this._prependedInlineCompletionItems=[];const r=n.deltaDecorations([],e.completions.map(o=>({range:o.range,options:{description:"inline-completion-tracking-range"}})));this._inlineCompletions=e.completions.map((o,s)=>new KEe(o,r[s],this._textModel,this._versionId))}clone(){return this._refCount++,this}dispose(){if(this._refCount--,this._refCount===0){setTimeout(()=>{this._textModel.isDisposed()||this._textModel.deltaDecorations(this._inlineCompletions.map(e=>e.decorationId),[])},0),this.inlineCompletionProviderResult.dispose();for(const e of this._prependedInlineCompletionItems)e.source.removeRef()}}prepend(e,t,n){n&&e.source.addRef();const i=this._textModel.deltaDecorations([],[{range:t,options:{description:"inline-completion-tracking-range"}}])[0];this._inlineCompletions.unshift(new KEe(e,i,this._textModel,this._versionId)),this._prependedInlineCompletionItems.push(e)}},KEe=class{get forwardStable(){return this.inlineCompletion.source.inlineCompletions.enableForwardStability??!1}constructor(e,t,n,i){this.inlineCompletion=e,this.decorationId=t,this._textModel=n,this._modelVersion=i,this.semanticId=JSON.stringify([this.inlineCompletion.filterText,this.inlineCompletion.insertText,this.inlineCompletion.range.getStartPosition().toString()]),this._updatedRange=w0({owner:this,equalsFn:Re.equalsRange},r=>(this._modelVersion.read(r),this._textModel.getDecorationRange(this.decorationId)))}toInlineCompletion(e){return this.inlineCompletion.withRange(this._updatedRange.read(e)??qte)}toSingleTextEdit(e){return new wC(this._updatedRange.read(e)??qte,this.inlineCompletion.insertText)}isVisible(e,t,n){const i=CR(this._toFilterTextReplacement(n),e),r=this._updatedRange.read(n);if(!r||!this.inlineCompletion.range.getStartPosition().equals(r.getStartPosition())||t.lineNumber!==i.range.startLineNumber)return!1;const o=e.getValueInRange(i.range,1),s=i.text,a=Math.max(0,t.column-i.range.startColumn);let l=s.substring(0,a),c=s.substring(a),u=o.substring(0,a),d=o.substring(a);const h=e.getLineIndentColumn(i.range.startLineNumber);return i.range.startColumn<=h&&(u=u.trimStart(),u.length===0&&(d=d.trimStart()),l=l.trimStart(),l.length===0&&(c=c.trimStart())),l.startsWith(u)&&!!R$t(d,c)}canBeReused(e,t){const n=this._updatedRange.read(void 0);return!!n&&n.containsPosition(t)&&this.isVisible(e,t,void 0)&&_C.ofRange(n).isGreaterThanOrEqualTo(_C.ofRange(this.inlineCompletion.range))}_toFilterTextReplacement(e){return new wC(this._updatedRange.read(e)??qte,this.inlineCompletion.filterText)}},qte=new Re(1,1,1,1)}});async function Y$e(e,t,n,i=ume.default,r={triggerKind:0},o=no.None){const s=new Ah;n=n.clone();const a=t.getWordAtPosition(n),l=a?new Re(n.lineNumber,a.startColumn,n.lineNumber,a.endColumn):Re.fromPositions(n),c={replace:l,insert:l.setEndPosition(n.lineNumber,n.column)},u=[],d=new Jt,h=[];let f=!1;const p=(m,v,y)=>{let b=!1;if(!v)return b;for(const w of v.suggestions)if(!i.kindFilter.has(w.kind)){if(!i.showDeprecated&&w?.tags?.includes(1))continue;w.range||(w.range=c),w.sortText||(w.sortText=typeof w.label=="string"?w.label:w.label.label),!f&&w.insertTextRules&&w.insertTextRules&4&&(f=BL.guessNeedsClipboard(w.insertText)),u.push(new Nnn(n,w,v,m)),b=!0}return dpe(v)&&d.add(v),h.push({providerName:m._debugDisplayName??"unknown_provider",elapsedProvider:v.duration??-1,elapsedOverall:y.elapsed()}),b},g=(async()=>{})();for(const m of e.orderedGroups(t)){let v=!1;if(await Promise.all(m.map(async y=>{if(i.providerItemsToReuse.has(y)){const b=i.providerItemsToReuse.get(y);b.forEach(w=>u.push(w)),v=v||b.length>0;return}if(!(i.providerFilter.size>0&&!i.providerFilter.has(y)))try{const b=new Ah,w=await y.provideCompletionItems(t,n,r,o);v=p(y,w,b)||v}catch(b){Sc(b)}})),v||o.isCancellationRequested)break}return await g,o.isCancellationRequested?(d.dispose(),Promise.reject(new rb)):new Pnn(u.sort(RZn(i.snippetSortOrder)),f,{entries:h,elapsed:s.elapsed()},d)}function Q$e(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow<t.sortTextLow)return-1;if(e.sortTextLow>t.sortTextLow)return 1}return e.textLabel<t.textLabel?-1:e.textLabel>t.textLabel?1:e.completion.kind-t.completion.kind}function MZn(e,t){if(e.completion.kind!==t.completion.kind){if(e.completion.kind===27)return-1;if(t.completion.kind===27)return 1}return Q$e(e,t)}function OZn(e,t){if(e.completion.kind!==t.completion.kind){if(e.completion.kind===27)return 1;if(t.completion.kind===27)return-1}return Q$e(e,t)}function RZn(e){return MW.get(e)}function FZn(e,t){e.getContribution("editor.contrib.suggestController")?.triggerSuggest(new Set().add(t),void 0,!0)}var so,zA,Nnn,ume,Pnn,MW,HO,Y7=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggest.js"(){var e;Ho(),Vi(),yw(),Nt(),_g(),as(),ss(),Hi(),Dn(),Eb(),lF(),bn(),ha(),Ks(),er(),Eo(),snn(),so={Visible:sle,HasFocusedSuggestion:new Qn("suggestWidgetHasFocusedSuggestion",!1,R("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new Qn("suggestWidgetDetailsVisible",!1,R("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new Qn("suggestWidgetMultipleSuggestions",!1,R("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new Qn("suggestionMakesTextEdit",!0,R("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new Qn("acceptSuggestionOnEnter",!0,R("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new Qn("suggestionHasInsertAndReplaceRange",!1,R("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new Qn("suggestionInsertMode",void 0,{type:"string",description:R("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new Qn("suggestionCanResolve",!1,R("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},zA=new Ti("suggestWidgetStatusBar"),Nnn=class{constructor(t,n,i,r){this.position=t,this.completion=n,this.container=i,this.provider=r,this.isInvalid=!1,this.score=Q1.Default,this.distance=0,this.textLabel=typeof n.label=="string"?n.label:n.label?.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=n.sortText&&n.sortText.toLowerCase(),this.filterTextLow=n.filterText&&n.filterText.toLowerCase(),this.extensionId=n.extensionId,Re.isIRange(n.range)?(this.editStart=new mt(n.range.startLineNumber,n.range.startColumn),this.editInsertEnd=new mt(n.range.endLineNumber,n.range.endColumn),this.editReplaceEnd=new mt(n.range.endLineNumber,n.range.endColumn),this.isInvalid=this.isInvalid||Re.spansMultipleLines(n.range)||n.range.startLineNumber!==t.lineNumber):(this.editStart=new mt(n.range.insert.startLineNumber,n.range.insert.startColumn),this.editInsertEnd=new mt(n.range.insert.endLineNumber,n.range.insert.endColumn),this.editReplaceEnd=new mt(n.range.replace.endLineNumber,n.range.replace.endColumn),this.isInvalid=this.isInvalid||Re.spansMultipleLines(n.range.insert)||Re.spansMultipleLines(n.range.replace)||n.range.insert.startLineNumber!==t.lineNumber||n.range.replace.startLineNumber!==t.lineNumber||n.range.insert.startColumn!==n.range.replace.startColumn),typeof r.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._resolveDuration=0)}get isResolved(){return this._resolveDuration!==void 0}get resolveDuration(){return this._resolveDuration!==void 0?this._resolveDuration:-1}async resolve(t){if(!this._resolveCache){const n=t.onCancellationRequested(()=>{this._resolveCache=void 0,this._resolveDuration=void 0}),i=new Ah(!0);this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,t)).then(r=>{Object.assign(this.completion,r),this._resolveDuration=i.elapsed()},r=>{bb(r)&&(this._resolveCache=void 0,this._resolveDuration=void 0)}).finally(()=>{n.dispose()})}return this._resolveCache}},ume=(e=class{constructor(n=2,i=new Set,r=new Set,o=new Map,s=!0){this.snippetSortOrder=n,this.kindFilter=i,this.providerFilter=r,this.providerItemsToReuse=o,this.showDeprecated=s}},e.default=new e,e),Pnn=class{constructor(t,n,i,r){this.items=t,this.needsClipboard=n,this.durations=i,this.disposable=r}},MW=new Map,MW.set(0,MZn),MW.set(2,OZn),MW.set(1,Q$e),Ro.registerCommand("_executeCompletionItemProvider",async(t,...n)=>{const[i,r,o,s]=n;ns(Ui.isUri(i)),ns(mt.isIPosition(r)),ns(typeof o=="string"||!o),ns(typeof s=="number"||!s);const{completionProvider:a}=t.get(gi),l=await t.get(dg).createModelReference(i);try{const c={incomplete:!1,suggestions:[]},u=[],d=l.object.textEditorModel.validatePosition(r),h=await Y$e(a,l.object.textEditorModel,d,void 0,{triggerCharacter:o??void 0,triggerKind:o?1:0});for(const f of h.items)u.length<(s??0)&&u.push(f.resolve(no.None)),c.incomplete=c.incomplete||f.container.incomplete,c.suggestions.push(f.completion);try{return await Promise.all(u),c}finally{setTimeout(()=>h.disposable.dispose(),100)}}finally{l.dispose()}}),HO=class{static isAllOff(t){return t.other==="off"&&t.comments==="off"&&t.strings==="off"}static isAllOn(t){return t.other==="on"&&t.comments==="on"&&t.strings==="on"}static valueFor(t,n){switch(n){case 1:return t.comments;case 2:return t.strings;default:return t.other}}}}}),BZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetSession.css"(){}});function h_t(e,t=Ch){return Ezn(e,t)?e.charAt(0).toUpperCase()+e.slice(1):e}var jZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/labels.js"(){HHe(),Xr()}}),f_t,p_t,b8e,_8e,w8e,C8e,k$,S8e,x8e,E8e,zZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetVariables.js"(){var e;jZn(),bE(),bf(),Ki(),Qge(),lu(),lF(),bn(),mY(),f_t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},p_t=function(t,n){return function(i,r){n(i,r,t)}},b8e=class{constructor(t){this._delegates=t}resolve(t){for(const n of this._delegates){const i=n.resolve(t);if(i!==void 0)return i}}},_8e=class{constructor(t,n,i,r){this._model=t,this._selection=n,this._selectionIdx=i,this._overtypingCapturer=r}resolve(t){const{name:n}=t;if(n==="SELECTION"||n==="TM_SELECTED_TEXT"){let i=this._model.getValueInRange(this._selection)||void 0,r=this._selection.startLineNumber!==this._selection.endLineNumber;if(!i&&this._overtypingCapturer){const o=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);o&&(i=o.value,r=o.multiline)}if(i&&r&&t.snippet){const o=this._model.getLineContent(this._selection.startLineNumber),s=Ca(o,0,this._selection.startColumn-1);let a=s;t.snippet.walk(c=>c===t?!1:(c instanceof Qg&&(a=Ca(Zx(c.value).pop())),!0));const l=kL(a,s);i=i.replace(/(\r\n|\r|\n)(.*)/g,(c,u,d)=>`${u}${a.substr(l)}${d}`)}return i}else{if(n==="TM_CURRENT_LINE")return this._model.getLineContent(this._selection.positionLineNumber);if(n==="TM_CURRENT_WORD"){const i=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return i&&i.word||void 0}else{if(n==="TM_LINE_INDEX")return String(this._selection.positionLineNumber-1);if(n==="TM_LINE_NUMBER")return String(this._selection.positionLineNumber);if(n==="CURSOR_INDEX")return String(this._selectionIdx);if(n==="CURSOR_NUMBER")return String(this._selectionIdx+1)}}}},w8e=class{constructor(t,n){this._labelService=t,this._model=n}resolve(t){const{name:n}=t;if(n==="TM_FILENAME")return YA(this._model.uri.fsPath);if(n==="TM_FILENAME_BASE"){const i=YA(this._model.uri.fsPath),r=i.lastIndexOf(".");return r<=0?i:i.slice(0,r)}else{if(n==="TM_DIRECTORY")return AVe(this._model.uri.fsPath)==="."?"":this._labelService.getUriLabel(hY(this._model.uri));if(n==="TM_FILEPATH")return this._labelService.getUriLabel(this._model.uri);if(n==="RELATIVE_FILEPATH")return this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0})}}},C8e=class{constructor(t,n,i,r){this._readClipboardText=t,this._selectionIdx=n,this._selectionCount=i,this._spread=r}resolve(t){if(t.name!=="CLIPBOARD")return;const n=this._readClipboardText();if(n){if(this._spread){const i=n.split(/\r\n|\n|\r/).filter(r=>!jVt(r));if(i.length===this._selectionCount)return i[this._selectionIdx]}return n}}},k$=class{constructor(n,i,r){this._model=n,this._selection=i,this._languageConfigurationService=r}resolve(n){const{name:i}=n,r=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),o=this._languageConfigurationService.getLanguageConfiguration(r).comments;if(o){if(i==="LINE_COMMENT")return o.lineCommentToken||void 0;if(i==="BLOCK_COMMENT_START")return o.blockCommentStartToken||void 0;if(i==="BLOCK_COMMENT_END")return o.blockCommentEndToken||void 0}}},k$=f_t([p_t(2,yl)],k$),S8e=(e=class{constructor(){this._date=new Date}resolve(n){const{name:i}=n;if(i==="CURRENT_YEAR")return String(this._date.getFullYear());if(i==="CURRENT_YEAR_SHORT")return String(this._date.getFullYear()).slice(-2);if(i==="CURRENT_MONTH")return String(this._date.getMonth().valueOf()+1).padStart(2,"0");if(i==="CURRENT_DATE")return String(this._date.getDate().valueOf()).padStart(2,"0");if(i==="CURRENT_HOUR")return String(this._date.getHours().valueOf()).padStart(2,"0");if(i==="CURRENT_MINUTE")return String(this._date.getMinutes().valueOf()).padStart(2,"0");if(i==="CURRENT_SECOND")return String(this._date.getSeconds().valueOf()).padStart(2,"0");if(i==="CURRENT_DAY_NAME")return e.dayNames[this._date.getDay()];if(i==="CURRENT_DAY_NAME_SHORT")return e.dayNamesShort[this._date.getDay()];if(i==="CURRENT_MONTH_NAME")return e.monthNames[this._date.getMonth()];if(i==="CURRENT_MONTH_NAME_SHORT")return e.monthNamesShort[this._date.getMonth()];if(i==="CURRENT_SECONDS_UNIX")return String(Math.floor(this._date.getTime()/1e3));if(i==="CURRENT_TIMEZONE_OFFSET"){const r=this._date.getTimezoneOffset(),o=r>0?"-":"+",s=Math.trunc(Math.abs(r/60)),a=s<10?"0"+s:s,l=Math.abs(r)-s*60,c=l<10?"0"+l:l;return o+a+":"+c}}},e.dayNames=[R("Sunday","Sunday"),R("Monday","Monday"),R("Tuesday","Tuesday"),R("Wednesday","Wednesday"),R("Thursday","Thursday"),R("Friday","Friday"),R("Saturday","Saturday")],e.dayNamesShort=[R("SundayShort","Sun"),R("MondayShort","Mon"),R("TuesdayShort","Tue"),R("WednesdayShort","Wed"),R("ThursdayShort","Thu"),R("FridayShort","Fri"),R("SaturdayShort","Sat")],e.monthNames=[R("January","January"),R("February","February"),R("March","March"),R("April","April"),R("May","May"),R("June","June"),R("July","July"),R("August","August"),R("September","September"),R("October","October"),R("November","November"),R("December","December")],e.monthNamesShort=[R("JanuaryShort","Jan"),R("FebruaryShort","Feb"),R("MarchShort","Mar"),R("AprilShort","Apr"),R("MayShort","May"),R("JuneShort","Jun"),R("JulyShort","Jul"),R("AugustShort","Aug"),R("SeptemberShort","Sep"),R("OctoberShort","Oct"),R("NovemberShort","Nov"),R("DecemberShort","Dec")],e),x8e=class{constructor(t){this._workspaceService=t}resolve(t){if(!this._workspaceService)return;const n=c3n(this._workspaceService.getWorkspace());if(!l3n(n)){if(t.name==="WORKSPACE_NAME")return this._resolveWorkspaceName(n);if(t.name==="WORKSPACE_FOLDER")return this._resoveWorkspacePath(n)}}_resolveWorkspaceName(t){if(L4e(t))return YA(t.uri.path);let n=YA(t.configPath.path);return n.endsWith(Zue)&&(n=n.substr(0,n.length-Zue.length-1)),n}_resoveWorkspacePath(t){if(L4e(t))return h_t(t.uri.fsPath);const n=YA(t.configPath.path);let i=t.configPath.fsPath;return i.endsWith(n)&&(i=i.substr(0,i.length-n.length-1)),i?h_t(i):"/"}},E8e=class{resolve(t){const{name:n}=t;if(n==="RANDOM")return Math.random().toString().slice(-6);if(n==="RANDOM_HEX")return Math.random().toString(16).slice(-6);if(n==="UUID")return PY()}}}}),g_t,m_t,o1,YEe,QEe,I$,Mnn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetSession.js"(){var e;rr(),Nt(),Ki(),BZn(),Tb(),Dn(),zs(),lu(),Ac(),gY(),mY(),lF(),zZn(),g_t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},m_t=function(t,n){return function(i,r){n(i,r,t)}},YEe=(e=class{constructor(n,i,r){this._editor=n,this._snippet=i,this._snippetLineLeadingWhitespace=r,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=Gst(i.placeholders,d_.compareByIndex),this._placeholderGroupsIdx=-1}initialize(n){this._offset=n.newPosition}dispose(){this._placeholderDecorations&&this._editor.removeDecorations([...this._placeholderDecorations.values()]),this._placeholderGroups.length=0}_initDecorations(){if(this._offset===-1)throw new Error("Snippet not initialized!");if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;const n=this._editor.getModel();this._editor.changeDecorations(i=>{for(const r of this._snippet.placeholders){const o=this._snippet.offset(r),s=this._snippet.fullLen(r),a=Re.fromPositions(n.getPositionAt(this._offset+o),n.getPositionAt(this._offset+o+s)),l=r.isFinalTabstop?e._decor.inactiveFinal:e._decor.inactive,c=i.addDecoration(a,l);this._placeholderDecorations.set(r,c)}})}move(n){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){const o=[];for(const s of this._placeholderGroups[this._placeholderGroupsIdx])if(s.transform){const a=this._placeholderDecorations.get(s),l=this._editor.getModel().getDecorationRange(a),c=this._editor.getModel().getValueInRange(l),u=s.transform.resolve(c).split(/\r\n|\r|\n/);for(let d=1;d<u.length;d++)u[d]=this._editor.getModel().normalizeIndentation(this._snippetLineLeadingWhitespace+u[d]);o.push(pl.replace(l,u.join(this._editor.getModel().getEOL())))}o.length>0&&this._editor.executeEdits("snippet.placeholderTransform",o)}let i=!1;n===!0&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,i=!0):n===!1&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,i=!0);const r=this._editor.getModel().changeDecorations(o=>{const s=new Set,a=[];for(const l of this._placeholderGroups[this._placeholderGroupsIdx]){const c=this._placeholderDecorations.get(l),u=this._editor.getModel().getDecorationRange(c);a.push(new Ii(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn)),i=i&&this._hasPlaceholderBeenCollapsed(l),o.changeDecorationOptions(c,l.isFinalTabstop?e._decor.activeFinal:e._decor.active),s.add(l);for(const d of this._snippet.enclosingPlaceholders(l)){const h=this._placeholderDecorations.get(d);o.changeDecorationOptions(h,d.isFinalTabstop?e._decor.activeFinal:e._decor.active),s.add(d)}}for(const[l,c]of this._placeholderDecorations)s.has(l)||o.changeDecorationOptions(c,l.isFinalTabstop?e._decor.inactiveFinal:e._decor.inactive);return a});return i?this.move(n):r??[]}_hasPlaceholderBeenCollapsed(n){let i=n;for(;i;){if(i instanceof d_){const r=this._placeholderDecorations.get(i);if(this._editor.getModel().getDecorationRange(r).isEmpty()&&i.toString().length>0)return!0}i=i.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||this._placeholderGroups.length===0}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}get isTrivialSnippet(){if(this._snippet.placeholders.length===0)return!0;if(this._snippet.placeholders.length===1){const[n]=this._snippet.placeholders;if(n.isFinalTabstop&&this._snippet.rightMostDescendant===n)return!0}return!1}computePossibleSelections(){const n=new Map;for(const i of this._placeholderGroups){let r;for(const o of i){if(o.isFinalTabstop)break;r||(r=[],n.set(o.index,r));const s=this._placeholderDecorations.get(o),a=this._editor.getModel().getDecorationRange(s);if(!a){n.delete(o.index);break}r.push(a)}}return n}get activeChoice(){if(!this._placeholderDecorations)return;const n=this._placeholderGroups[this._placeholderGroupsIdx][0];if(!n?.choice)return;const i=this._placeholderDecorations.get(n);if(!i)return;const r=this._editor.getModel().getDecorationRange(i);if(r)return{range:r,choice:n.choice}}get hasChoice(){let n=!1;return this._snippet.walk(i=>(n=i instanceof y$,!n)),n}merge(n){const i=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(r=>{for(const o of this._placeholderGroups[this._placeholderGroupsIdx]){const s=n.shift();console.assert(s._offset!==-1),console.assert(!s._placeholderDecorations);const a=s._snippet.placeholderInfo.last.index;for(const c of s._snippet.placeholderInfo.all)c.isFinalTabstop?c.index=o.index+(a+1)/this._nestingLevel:c.index=o.index+c.index/this._nestingLevel;this._snippet.replace(o,s._snippet.children);const l=this._placeholderDecorations.get(o);r.removeDecoration(l),this._placeholderDecorations.delete(o);for(const c of s._snippet.placeholders){const u=s._snippet.offset(c),d=s._snippet.fullLen(c),h=Re.fromPositions(i.getPositionAt(s._offset+u),i.getPositionAt(s._offset+u+d)),f=r.addDecoration(h,e._decor.inactive);this._placeholderDecorations.set(c,f)}}this._placeholderGroups=Gst(this._snippet.placeholders,d_.compareByIndex)})}},e._decor={active:Gr.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:Gr.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:Gr.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:Gr.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})},e),QEe={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0},I$=o1=class{static adjustWhitespace(n,i,r,o,s){const a=n.getLineContent(i.lineNumber),l=Ca(a,0,i.column-1);let c;return o.walk(u=>{if(!(u instanceof Qg)||u.parent instanceof y$||s&&!s.has(u))return!0;const d=u.value.split(/\r\n|\r|\n/);if(r){const f=o.offset(u);if(f===0)d[0]=n.normalizeIndentation(d[0]);else{c=c??o.toString();const p=c.charCodeAt(f-1);(p===10||p===13)&&(d[0]=n.normalizeIndentation(l+d[0]))}for(let p=1;p<d.length;p++)d[p]=n.normalizeIndentation(l+d[p])}const h=d.join(n.getEOL());return h!==u.value&&(u.parent.replace(u,[new Qg(h)]),c=void 0),!0}),l}static adjustSelection(n,i,r,o){if(r!==0||o!==0){const{positionLineNumber:s,positionColumn:a}=i,l=a-r,c=a+o,u=n.validateRange({startLineNumber:s,startColumn:l,endLineNumber:s,endColumn:c});i=Ii.createWithDirection(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn,i.getDirection())}return i}static createEditsAndSnippetsFromSelections(n,i,r,o,s,a,l,c,u){const d=[],h=[];if(!n.hasModel())return{edits:d,snippets:h};const f=n.getModel(),p=n.invokeWithinContext(E=>E.get(lL)),g=n.invokeWithinContext(E=>new w8e(E.get(t2),f)),m=()=>l,v=f.getValueInRange(o1.adjustSelection(f,n.getSelection(),r,0)),y=f.getValueInRange(o1.adjustSelection(f,n.getSelection(),0,o)),b=f.getLineFirstNonWhitespaceColumn(n.getSelection().positionLineNumber),w=n.getSelections().map((E,A)=>({selection:E,idx:A})).sort((E,A)=>Re.compareRangesUsingStarts(E.selection,A.selection));for(const{selection:E,idx:A}of w){let D=o1.adjustSelection(f,E,r,0),T=o1.adjustSelection(f,E,0,o);v!==f.getValueInRange(D)&&(D=E),y!==f.getValueInRange(T)&&(T=E);const M=E.setStartPosition(D.startLineNumber,D.startColumn).setEndPosition(T.endLineNumber,T.endColumn),P=new BL().parse(i,!0,s),F=M.getStartPosition(),N=o1.adjustWhitespace(f,F,a||A>0&&b!==f.getLineFirstNonWhitespaceColumn(E.positionLineNumber),P);P.resolveVariables(new b8e([g,new C8e(m,A,w.length,n.getOption(79)==="spread"),new _8e(f,E,A,c),new k$(f,E,u),new S8e,new x8e(p),new E8e])),d[A]=pl.replace(M,P.toString()),d[A].identifier={major:A,minor:0},d[A]._isTracked=!0,h[A]=new YEe(n,P,N)}return{edits:d,snippets:h}}static createEditsAndSnippetsFromEdits(n,i,r,o,s,a,l){if(!n.hasModel()||i.length===0)return{edits:[],snippets:[]};const c=[],u=n.getModel(),d=new BL,h=new Uae,f=new b8e([n.invokeWithinContext(g=>new w8e(g.get(t2),u)),new C8e(()=>s,0,n.getSelections().length,n.getOption(79)==="spread"),new _8e(u,n.getSelection(),0,a),new k$(u,n.getSelection(),l),new S8e,new x8e(n.invokeWithinContext(g=>g.get(lL))),new E8e]);i=i.sort((g,m)=>Re.compareRangesUsingStarts(g.range,m.range));let p=0;for(let g=0;g<i.length;g++){const{range:m,template:v}=i[g];if(g>0){const A=i[g-1].range,D=Re.fromPositions(A.getEndPosition(),m.getStartPosition()),T=new Qg(u.getValueInRange(D));h.appendChild(T),p+=T.value.length}const y=d.parseFragment(v,h);o1.adjustWhitespace(u,m.getStartPosition(),!0,h,new Set(y)),h.resolveVariables(f);const b=h.toString(),w=b.slice(p);p=b.length;const E=pl.replace(m,w);E.identifier={major:g,minor:0},E._isTracked=!0,c.push(E)}return d.ensureFinalTabstop(h,r,!0),{edits:c,snippets:[new YEe(n,h,"")]}}constructor(n,i,r=QEe,o){this._editor=n,this._template=i,this._options=r,this._languageConfigurationService=o,this._templateMerges=[],this._snippets=[]}dispose(){xa(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;const{edits:n,snippets:i}=typeof this._template=="string"?o1.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):o1.createEditsAndSnippetsFromEdits(this._editor,this._template,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService);this._snippets=i,this._editor.executeEdits("snippet",n,r=>{const o=r.filter(s=>!!s.identifier);for(let s=0;s<i.length;s++)i[s].initialize(o[s].textChange);return this._snippets[0].hasPlaceholder?this._move(!0):o.map(s=>Ii.fromPositions(s.range.getEndPosition()))}),this._editor.revealRange(this._editor.getSelections()[0])}merge(n,i=QEe){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,n]);const{edits:r,snippets:o}=o1.createEditsAndSnippetsFromSelections(this._editor,n,i.overwriteBefore,i.overwriteAfter,!0,i.adjustWhitespace,i.clipboardText,i.overtypingCapturer,this._languageConfigurationService);this._editor.executeEdits("snippet",r,s=>{const a=s.filter(c=>!!c.identifier);for(let c=0;c<o.length;c++)o[c].initialize(a[c].textChange);const l=o[0].isTrivialSnippet;if(!l){for(const c of this._snippets)c.merge(o);console.assert(o.length===0)}return this._snippets[0].hasPlaceholder&&!l?this._move(void 0):a.map(c=>Ii.fromPositions(c.range.getEndPosition()))})}next(){const n=this._move(!0);this._editor.setSelections(n),this._editor.revealPositionInCenterIfOutsideViewport(n[0].getPosition())}prev(){const n=this._move(!1);this._editor.setSelections(n),this._editor.revealPositionInCenterIfOutsideViewport(n[0].getPosition())}_move(n){const i=[];for(const r of this._snippets){const o=r.move(n);i.push(...o)}return i}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get hasChoice(){return this._snippets[0].hasChoice}get activeChoice(){return this._snippets[0].activeChoice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const n=this._editor.getSelections();if(n.length<this._snippets.length)return!1;const i=new Map;for(const r of this._snippets){const o=r.computePossibleSelections();if(i.size===0)for(const[s,a]of o){a.sort(Re.compareRangesUsingStarts);for(const l of n)if(a[0].containsRange(l)){i.set(s,[]);break}}if(i.size===0)return!1;i.forEach((s,a)=>{s.push(...o.get(a))})}n.sort(Re.compareRangesUsingStarts);for(const[r,o]of i){if(o.length!==n.length){i.delete(r);continue}o.sort(Re.compareRangesUsingStarts);for(let s=0;s<o.length;s++)if(!o[s].containsRange(n[s])){i.delete(r);continue}}return i.size>0}},I$=o1=g_t([m_t(3,yl)],I$)}}),v_t,QV,_4,ZEe,sp,ZV,dme=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetController2.js"(){var e;Nt(),as(),mr(),Hi(),ls(),lu(),Eo(),Y7(),bn(),er(),wm(),Mnn(),v_t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},QV=function(t,n){return function(i,r){n(i,r,t)}},ZEe={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0},sp=(e=class{static get(n){return n.getContribution(_4.ID)}constructor(n,i,r,o,s){this._editor=n,this._logService=i,this._languageFeaturesService=r,this._languageConfigurationService=s,this._snippetListener=new Jt,this._modelVersionId=-1,this._inSnippet=_4.InSnippetMode.bindTo(o),this._hasNextTabstop=_4.HasNextTabstop.bindTo(o),this._hasPrevTabstop=_4.HasPrevTabstop.bindTo(o)}dispose(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._session?.dispose(),this._snippetListener.dispose()}insert(n,i){try{this._doInsert(n,typeof i>"u"?ZEe:{...ZEe,...i})}catch(r){this.cancel(),this._logService.error(r),this._logService.error("snippet_error"),this._logService.error("insert_template=",n),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}_doInsert(n,i){if(this._editor.hasModel()){if(this._snippetListener.clear(),i.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&typeof n!="string"&&this.cancel(),this._session?(ns(typeof n=="string"),this._session.merge(n,i)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new I$(this._editor,n,i,this._languageConfigurationService),this._session.insert()),i.undoStopAfter&&this._editor.getModel().pushStackElement(),this._session?.hasChoice){const r={_debugDisplayName:"snippetChoiceCompletions",provideCompletionItems:(u,d)=>{if(!this._session||u!==this._editor.getModel()||!mt.equals(this._editor.getPosition(),d))return;const{activeChoice:h}=this._session;if(!h||h.choice.options.length===0)return;const f=u.getValueInRange(h.range),p=!!h.choice.options.find(m=>m.value===f),g=[];for(let m=0;m<h.choice.options.length;m++){const v=h.choice.options[m];g.push({kind:13,label:v.value,insertText:v.value,sortText:"a".repeat(m+1),range:h.range,filterText:p?`${f}_${v.value}`:void 0,command:{id:"jumpToNextSnippetPlaceholder",title:R("next","Go to next placeholder...")}})}return{suggestions:g}}},o=this._editor.getModel();let s,a=!1;const l=()=>{s?.dispose(),a=!1},c=()=>{a||(s=this._languageFeaturesService.completionProvider.register({language:o.getLanguageId(),pattern:o.uri.fsPath,scheme:o.uri.scheme,exclusive:!0},r),this._snippetListener.add(s),a=!0)};this._choiceCompletions={provider:r,enable:c,disable:l}}this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(r=>r.isFlush&&this.cancel())),this._snippetListener.add(this._editor.onDidChangeModel(()=>this.cancel())),this._snippetListener.add(this._editor.onDidChangeCursorSelection(()=>this._updateState()))}}_updateState(){if(!(!this._session||!this._editor.hasModel())){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){if(!this._session||!this._editor.hasModel()){this._currentChoice=void 0;return}const{activeChoice:n}=this._session;if(!n||!this._choiceCompletions){this._choiceCompletions?.disable(),this._currentChoice=void 0;return}this._currentChoice!==n.choice&&(this._currentChoice=n.choice,this._choiceCompletions.enable(),queueMicrotask(()=>{FZn(this._editor,this._choiceCompletions.provider)}))}finish(){for(;this._inSnippet.get();)this.next()}cancel(n=!1){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),this._currentChoice=void 0,this._session?.dispose(),this._session=void 0,this._modelVersionId=-1,n&&this._editor.setSelections([this._editor.getSelection()])}prev(){this._session?.prev(),this._updateState()}next(){this._session?.next(),this._updateState()}isInSnippet(){return!!this._inSnippet.get()}},_4=e,e.ID="snippetController2",e.InSnippetMode=new Qn("inSnippetMode",!1,R("inSnippetMode","Whether the editor in current in snippet mode")),e.HasNextTabstop=new Qn("hasNextTabstop",!1,R("hasNextTabstop","Whether there is a next tab stop when in snippet mode")),e.HasPrevTabstop=new Qn("hasPrevTabstop",!1,R("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode")),e),sp=_4=v_t([QV(1,bh),QV(2,gi),QV(3,ur),QV(4,yl)],sp),qo(sp.ID,sp,4),ZV=Hd.bindToContribution(sp.get),$n(new ZV({id:"jumpToNextSnippetPlaceholder",precondition:nn.and(sp.InSnippetMode,sp.HasNextTabstop),handler:t=>t.next(),kbOpts:{weight:130,kbExpr:Ge.textInputFocus,primary:2}})),$n(new ZV({id:"jumpToPrevSnippetPlaceholder",precondition:nn.and(sp.InSnippetMode,sp.HasPrevTabstop),handler:t=>t.prev(),kbOpts:{weight:130,kbExpr:Ge.textInputFocus,primary:1026}})),$n(new ZV({id:"leaveSnippet",precondition:sp.InSnippetMode,handler:t=>t.cancel(!0),kbOpts:{weight:130,kbExpr:Ge.textInputFocus,primary:9,secondary:[1033]}})),$n(new ZV({id:"acceptSnippet",precondition:sp.InSnippetMode,handler:t=>t.finish()}))}});function XEe(e,t,n){if(t.length===1)return[];const i=t[0],r=t.slice(1),o=n.range.getStartPosition(),s=n.range.getEndPosition(),a=e.getValueInRange(Re.fromPositions(i,s)),l=e_t(i,o);if(l.lineNumber<1)return Mr(new ys(`positionWithinTextEdit line number should be bigger than 0.
			Invalid subtraction between ${i.toString()} and ${o.toString()}`)),[];const c=VZn(n.text,l);return r.map(u=>{const d=xZn(e_t(u,o),s),h=e.getValueInRange(Re.fromPositions(u,d)),f=kL(a,h),p=Re.fromPositions(u,u.delta(0,f));return new wC(p,c)})}function VZn(e,t){let n="";const i=C9n(e);for(let r=t.lineNumber-1;r<i.length;r++)n+=i[r].substring(r===t.lineNumber-1?t.column-1:0);return n}function y_t(e){const t=yWt.createSortPermutation(e,ug(o=>o.range,Re.compareRangesUsingStarts)),i=new tge(t.apply(e)).getNewRanges();return t.inverse().apply(i).map(o=>o.getEndPosition())}var b_t,Gte,fle,hA,HZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js"(){rr(),Y0(),_T(),Vi(),Nt(),xs(),Ki(),as(),Tb(),Hi(),Dn(),zs(),mT(),IN(),ra(),lu(),lme(),PZn(),K$e(),cme(),dme(),Ks(),li(),b_t=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},Gte=function(e,t){return function(n,i){t(n,i,e)}},fle=class extends St{get isAcceptingPartially(){return this._isAcceptingPartially}constructor(t,n,i,r,o,s,a,l,c,u,d,h){super(),this.textModel=t,this.selectedSuggestItem=n,this._textModelVersionId=i,this._positions=r,this._debounceValue=o,this._suggestPreviewEnabled=s,this._suggestPreviewMode=a,this._inlineSuggestMode=l,this._enabled=c,this._instantiationService=u,this._commandService=d,this._languageConfigurationService=h,this._source=this._register(this._instantiationService.createInstance(hle,this.textModel,this._textModelVersionId,this._debounceValue)),this._isActive=mo(this,!1),this._forceUpdateExplicitlySignal=R7(this),this._selectedInlineCompletionId=mo(this,void 0),this._primaryPosition=Fi(this,p=>this._positions.read(p)[0]??new mt(1,1)),this._isAcceptingPartially=!1,this._preserveCurrentCompletionReasons=new Set([hA.Redo,hA.Undo,hA.AcceptWord]),this._fetchInlineCompletionsPromise=Bqt({owner:this,createEmptyChangeSummary:()=>({preserveCurrentCompletion:!1,inlineCompletionTriggerKind:nC.Automatic}),handleChange:(p,g)=>(p.didChange(this._textModelVersionId)&&this._preserveCurrentCompletionReasons.has(this._getReason(p.change))?g.preserveCurrentCompletion=!0:p.didChange(this._forceUpdateExplicitlySignal)&&(g.inlineCompletionTriggerKind=nC.Explicit),!0)},(p,g)=>{if(this._forceUpdateExplicitlySignal.read(p),!(this._enabled.read(p)&&this.selectedSuggestItem.read(p)||this._isActive.read(p))){this._source.cancelUpdate();return}this._textModelVersionId.read(p);const v=this._source.suggestWidgetInlineCompletions.get(),y=this.selectedSuggestItem.read(p);if(v&&!y){const D=this._source.inlineCompletions.get();Al(T=>{(!D||v.request.versionId>D.request.versionId)&&this._source.inlineCompletions.set(v.clone(),T),this._source.clearSuggestWidgetInlineCompletions(T)})}const b=this._primaryPosition.read(p),w={triggerKind:g.inlineCompletionTriggerKind,selectedSuggestionInfo:y?.toSelectedSuggestionInfo()},E=this.selectedInlineCompletion.get(),A=g.preserveCurrentCompletion||E?.forwardStable?E:void 0;return this._source.fetch(b,w,A)}),this._filteredInlineCompletionItems=w0({owner:this,equalsFn:ede()},p=>{const g=this._source.inlineCompletions.read(p);if(!g)return[];const m=this._primaryPosition.read(p);return g.inlineCompletions.filter(y=>y.isVisible(this.textModel,m,p))}),this.selectedInlineCompletionIndex=Fi(this,p=>{const g=this._selectedInlineCompletionId.read(p),m=this._filteredInlineCompletionItems.read(p),v=this._selectedInlineCompletionId===void 0?-1:m.findIndex(y=>y.semanticId===g);return v===-1?(this._selectedInlineCompletionId.set(void 0,void 0),0):v}),this.selectedInlineCompletion=Fi(this,p=>{const g=this._filteredInlineCompletionItems.read(p),m=this.selectedInlineCompletionIndex.read(p);return g[m]}),this.activeCommands=w0({owner:this,equalsFn:ede()},p=>this.selectedInlineCompletion.read(p)?.inlineCompletion.source.inlineCompletions.commands??[]),this.lastTriggerKind=this._source.inlineCompletions.map(this,p=>p?.request.context.triggerKind),this.inlineCompletionsCount=Fi(this,p=>{if(this.lastTriggerKind.read(p)===nC.Explicit)return this._filteredInlineCompletionItems.read(p).length}),this.state=w0({owner:this,equalsFn:(p,g)=>!p||!g?p===g:Jbt(p.ghostTexts,g.ghostTexts)&&p.inlineCompletion===g.inlineCompletion&&p.suggestItem===g.suggestItem},p=>{const g=this.textModel,m=this.selectedSuggestItem.read(p);if(m){const v=CR(m.toSingleTextEdit(),g),y=this._computeAugmentation(v,p);if(!this._suggestPreviewEnabled.read(p)&&!y)return;const w=y?.edit??v,E=y?y.edit.text.length-v.text.length:0,A=this._suggestPreviewMode.read(p),D=this._positions.read(p),T=[w,...XEe(this.textModel,D,w)],M=T.map((F,N)=>o_t(F,g,A,D[N],E)).filter(Ex),P=M[0]??new p9(w.range.endLineNumber,[]);return{edits:T,primaryGhostText:P,ghostTexts:M,inlineCompletion:y?.completion,suggestItem:m}}else{if(!this._isActive.read(p))return;const v=this.selectedInlineCompletion.read(p);if(!v)return;const y=v.toSingleTextEdit(p),b=this._inlineSuggestMode.read(p),w=this._positions.read(p),E=[y,...XEe(this.textModel,w,y)],A=E.map((D,T)=>o_t(D,g,b,w[T],0)).filter(Ex);return A[0]?{edits:E,primaryGhostText:A[0],ghostTexts:A,inlineCompletion:v,suggestItem:void 0}:void 0}}),this.ghostTexts=w0({owner:this,equalsFn:Jbt},p=>{const g=this.state.read(p);if(g)return g.ghostTexts}),this.primaryGhostText=w0({owner:this,equalsFn:Cnn},p=>{const g=this.state.read(p);if(g)return g?.primaryGhostText}),this._register(F7(this._fetchInlineCompletionsPromise));let f;this._register(Tr(p=>{const m=this.state.read(p)?.inlineCompletion;if(m?.semanticId!==f?.semanticId&&(f=m,m)){const v=m.inlineCompletion,y=v.source;y.provider.handleItemDidShow?.(y.inlineCompletions,v.sourceInlineCompletion,v.insertText)}}))}_getReason(t){return t?.isUndoing?hA.Undo:t?.isRedoing?hA.Redo:this.isAcceptingPartially?hA.AcceptWord:hA.Other}async trigger(t){this._isActive.set(!0,t),await this._fetchInlineCompletionsPromise.get()}async triggerExplicitly(t){i2(t,n=>{this._isActive.set(!0,n),this._forceUpdateExplicitlySignal.trigger(n)}),await this._fetchInlineCompletionsPromise.get()}stop(t){i2(t,n=>{this._isActive.set(!1,n),this._source.clear(n)})}_computeAugmentation(t,n){const i=this.textModel,r=this._source.suggestWidgetInlineCompletions.read(n),o=r?r.inlineCompletions:[this.selectedInlineCompletion.read(n)].filter(Ex);return Vjn(o,a=>{let l=a.toSingleTextEdit(n);return l=CR(l,i,Re.fromPositions(l.range.getStartPosition(),t.range.getEndPosition())),Lnn(l,t)?{completion:a,edit:l}:void 0})}async _deltaSelectedInlineCompletionIndex(t){await this.triggerExplicitly();const n=this._filteredInlineCompletionItems.get()||[];if(n.length>0){const i=(this.selectedInlineCompletionIndex.get()+t+n.length)%n.length;this._selectedInlineCompletionId.set(n[i].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)}async next(){await this._deltaSelectedInlineCompletionIndex(1)}async previous(){await this._deltaSelectedInlineCompletionIndex(-1)}async accept(t){if(t.getModel()!==this.textModel)throw new ys;const n=this.state.get();if(!n||n.primaryGhostText.isEmpty()||!n.inlineCompletion)return;const i=n.inlineCompletion.toInlineCompletion(void 0);if(i.command&&i.source.addRef(),t.pushUndoStop(),i.snippetInfo)t.executeEdits("inlineSuggestion.accept",[pl.replace(i.range,""),...i.additionalTextEdits]),t.setPosition(i.snippetInfo.range.getStartPosition(),"inlineCompletionAccept"),sp.get(t)?.insert(i.snippetInfo.snippet,{undoStopBefore:!1});else{const r=n.edits,o=y_t(r).map(s=>Ii.fromPositions(s));t.executeEdits("inlineSuggestion.accept",[...r.map(s=>pl.replace(s.range,s.text)),...i.additionalTextEdits]),t.setSelections(o,"inlineCompletionAccept")}this.stop(),i.command&&(await this._commandService.executeCommand(i.command.id,...i.command.arguments||[]).then(void 0,Sc),i.source.removeRef())}async acceptNextWord(t){await this._acceptNext(t,(n,i)=>{const r=this.textModel.getLanguageIdAtPosition(n.lineNumber,n.column),o=this._languageConfigurationService.getLanguageConfiguration(r),s=new RegExp(o.wordDefinition.source,o.wordDefinition.flags.replace("g","")),a=i.match(s);let l=0;a&&a.index!==void 0?a.index===0?l=a[0].length:l=a.index:l=i.length;const u=/\s+/g.exec(i);return u&&u.index!==void 0&&u.index+u[0].length<l&&(l=u.index+u[0].length),l},0)}async acceptNextLine(t){await this._acceptNext(t,(n,i)=>{const r=i.match(/\n/);return r&&r.index!==void 0?r.index+1:i.length},1)}async _acceptNext(t,n,i){if(t.getModel()!==this.textModel)throw new ys;const r=this.state.get();if(!r||r.primaryGhostText.isEmpty()||!r.inlineCompletion)return;const o=r.primaryGhostText,s=r.inlineCompletion.toInlineCompletion(void 0);if(s.snippetInfo||s.filterText!==s.insertText){await this.accept(t);return}const a=o.parts[0],l=new mt(o.lineNumber,a.column),c=a.text,u=n(l,c);if(u===c.length&&o.parts.length===1){this.accept(t);return}const d=c.substring(0,u),h=this._positions.get(),f=h[0];s.source.addRef();try{this._isAcceptingPartially=!0;try{t.pushUndoStop();const p=Re.fromPositions(f,l),g=t.getModel().getValueInRange(p)+d,m=new wC(p,g),v=[m,...XEe(this.textModel,h,m)],y=y_t(v).map(b=>Ii.fromPositions(b));t.executeEdits("inlineSuggestion.accept",v.map(b=>pl.replace(b.range,b.text))),t.setSelections(y,"inlineCompletionPartialAccept"),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1)}finally{this._isAcceptingPartially=!1}if(s.source.provider.handlePartialAccept){const p=Re.fromPositions(s.range.getStartPosition(),_C.ofText(d).addToPosition(l)),g=t.getModel().getValueInRange(p,1);s.source.provider.handlePartialAccept(s.source.inlineCompletions,s.sourceInlineCompletion,g.length,{kind:i})}}finally{s.source.removeRef()}}handleSuggestAccepted(t){const n=CR(t.toSingleTextEdit(),this.textModel),i=this._computeAugmentation(n,void 0);if(!i)return;const r=i.completion.inlineCompletion;r.source.provider.handlePartialAccept?.(r.source.inlineCompletions,r.sourceInlineCompletion,n.text.length,{kind:2})}},fle=b_t([Gte(9,ji),Gte(10,Oa),Gte(11,yl)],fle),(function(e){e[e.Undo=0]="Undo",e[e.Redo=1]="Redo",e[e.AcceptWord=2]="AcceptWord",e[e.Other=3]="Other"})(hA||(hA={}))}}),__t,JEe,XV,Kte,eAe,w_t,C_t,Yte,bG,Onn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestMemory.js"(){var e;fr(),Nt(),kh(),dWe(),ra(),sa(),vf(),li(),CE(),__t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},JEe=function(t,n){return function(i,r){n(i,r,t)}},Kte=class{constructor(t){this.name=t}select(t,n,i){if(i.length===0)return 0;const r=i[0].score[0];for(let o=0;o<i.length;o++){const{score:s,completion:a}=i[o];if(s[0]!==r)break;if(a.preselect)return o}return 0}},eAe=class extends Kte{constructor(){super("first")}memorize(t,n,i){}toJSON(){}fromJSON(){}},w_t=class extends Kte{constructor(){super("recentlyUsed"),this._cache=new WC(300,.66),this._seq=0}memorize(t,n,i){const r=`${t.getLanguageId()}/${i.textLabel}`;this._cache.set(r,{touch:this._seq++,type:i.completion.kind,insertText:i.completion.insertText})}select(t,n,i){if(i.length===0)return 0;const r=t.getLineContent(n.lineNumber).substr(n.column-10,n.column-1);if(/\s$/.test(r))return super.select(t,n,i);const o=i[0].score[0];let s=-1,a=-1,l=-1;for(let c=0;c<i.length&&i[c].score[0]===o;c++){const u=`${t.getLanguageId()}/${i[c].textLabel}`,d=this._cache.peek(u);if(d&&d.touch>l&&d.type===i[c].completion.kind&&d.insertText===i[c].completion.insertText&&(l=d.touch,a=c),i[c].completion.preselect&&s===-1)return s=c}return a!==-1?a:s!==-1?s:0}toJSON(){return this._cache.toJSON()}fromJSON(t){this._cache.clear();const n=0;for(const[i,r]of t)r.touch=n,r.type=typeof r.type=="number"?r.type:Cq.fromString(r.type),this._cache.set(i,r);this._seq=this._cache.size}},C_t=class extends Kte{constructor(){super("recentlyUsedByPrefix"),this._trie=uWe.forStrings(),this._seq=0}memorize(t,n,i){const{word:r}=t.getWordUntilPosition(n),o=`${t.getLanguageId()}/${r}`;this._trie.set(o,{type:i.completion.kind,insertText:i.completion.insertText,touch:this._seq++})}select(t,n,i){const{word:r}=t.getWordUntilPosition(n);if(!r)return super.select(t,n,i);const o=`${t.getLanguageId()}/${r}`;let s=this._trie.get(o);if(s||(s=this._trie.findSubstr(o)),s)for(let a=0;a<i.length;a++){const{kind:l,insertText:c}=i[a].completion;if(l===s.type&&c===s.insertText)return a}return super.select(t,n,i)}toJSON(){const t=[];return this._trie.forEach((n,i)=>t.push([i,n])),t.sort((n,i)=>-(n[1].touch-i[1].touch)).forEach((n,i)=>n[1].touch=i),t.slice(0,200)}fromJSON(t){if(this._trie.clear(),t.length>0){this._seq=t[0][1].touch+1;for(const[n,i]of t)i.type=typeof i.type=="number"?i.type:Cq.fromString(i.type),this._trie.set(n,i)}}},Yte=(e=class{constructor(n,i){this._storageService=n,this._configService=i,this._disposables=new Jt,this._persistSoon=new Gs(()=>this._saveState(),500),this._disposables.add(n.onWillSaveState(r=>{r.reason===rG.SHUTDOWN&&this._saveState()}))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(n,i,r){this._withStrategy(n,i).memorize(n,i,r),this._persistSoon.schedule()}select(n,i,r){return this._withStrategy(n,i).select(n,i,r)}_withStrategy(n,i){const r=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:n.getLanguageIdAtPosition(i.lineNumber,i.column),resource:n.uri});if(this._strategy?.name!==r){this._saveState();const o=XV._strategyCtors.get(r)||eAe;this._strategy=new o;try{const a=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,l=this._storageService.get(`${XV._storagePrefix}/${r}`,a);l&&this._strategy.fromJSON(JSON.parse(l))}catch{}}return this._strategy}_saveState(){if(this._strategy){const i=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,r=JSON.stringify(this._strategy);this._storageService.store(`${XV._storagePrefix}/${this._strategy.name}`,r,i,1)}}},XV=e,e._strategyCtors=new Map([["recentlyUsedByPrefix",C_t],["recentlyUsed",w_t],["first",eAe]]),e._storagePrefix="suggest/memories",e),Yte=XV=__t([JEe(0,ab),JEe(1,co)],Yte),bG=Ao("ISuggestMemories"),Oo(bG,Yte,1)}}),S_t,x_t,tAe,L$,WZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/wordContextKey.js"(){var e;er(),S_t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},x_t=function(t,n){return function(i,r){n(i,r,t)}},L$=(e=class{constructor(n,i){this._editor=n,this._enabled=!1,this._ckAtEnd=tAe.AtEnd.bindTo(i),this._configListener=this._editor.onDidChangeConfiguration(r=>r.hasChanged(124)&&this._update()),this._update()}dispose(){this._configListener.dispose(),this._selectionListener?.dispose(),this._ckAtEnd.reset()}_update(){const n=this._editor.getOption(124)==="on";if(this._enabled!==n)if(this._enabled=n,this._enabled){const i=()=>{if(!this._editor.hasModel()){this._ckAtEnd.set(!1);return}const r=this._editor.getModel(),o=this._editor.getSelection(),s=r.getWordAtPosition(o.getStartPosition());if(!s){this._ckAtEnd.set(!1);return}this._ckAtEnd.set(s.endColumn===o.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(i),i()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}},tAe=e,e.AtEnd=new Qn("atEndOfWord",!1),e),L$=tAe=S_t([x_t(1,ur)],L$)}}),E_t,A_t,JV,WO,UZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestAlternatives.js"(){var e;er(),E_t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},A_t=function(t,n){return function(i,r){n(i,r,t)}},WO=(e=class{constructor(n,i){this._editor=n,this._index=0,this._ckOtherSuggestions=JV.OtherSuggestions.bindTo(i)}dispose(){this.reset()}reset(){this._ckOtherSuggestions.reset(),this._listener?.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:n,index:i},r){if(n.items.length===0){this.reset();return}if(JV._moveIndex(!0,n,i)===i){this.reset();return}this._acceptNext=r,this._model=n,this._index=i,this._listener=this._editor.onDidChangeCursorPosition(()=>{this._ignore||this.reset()}),this._ckOtherSuggestions.set(!0)}static _moveIndex(n,i,r){let o=r;for(let s=i.items.length;s>0&&(o=(o+i.items.length+(n?1:-1))%i.items.length,!(o===r||!i.items[o].completion.additionalTextEdits));s--);return o}next(){this._move(!0)}prev(){this._move(!1)}_move(n){if(this._model)try{this._ignore=!0,this._index=JV._moveIndex(n,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}},JV=e,e.OtherSuggestions=new Qn("hasOtherSuggestions",!1),e),WO=JV=E_t([A_t(1,ur)],WO)}}),Rnn,$Zn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestCommitCharacters.js"(){rr(),Nt(),D7(),Rnn=class{constructor(e,t,n,i){this._disposables=new Jt,this._disposables.add(n.onDidSuggest(r=>{r.completionModel.items.length===0&&this.reset()})),this._disposables.add(n.onDidCancel(r=>{this.reset()})),this._disposables.add(t.onDidShow(()=>this._onItem(t.getFocusedItem()))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType(r=>{if(this._active&&!t.isFrozen()&&n.state!==0){const o=r.charCodeAt(r.length-1);this._active.acceptCharacters.has(o)&&e.getOption(0)&&i(this._active.item)}}))}_onItem(e){if(!e||!Sp(e.item.completion.commitCharacters)){this.reset();return}if(this._active&&this._active.item.item===e.item)return;const t=new Gq;for(const n of e.item.completion.commitCharacters)n.length>0&&t.add(n.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}}}),Z$e,Fnn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/smartSelect/browser/bracketSelections.js"(){var e;_b(),Hi(),Dn(),Z$e=(e=class{async provideSelectionRanges(n,i){const r=[];for(const o of i){const s=[];r.push(s);const a=new Map;await new Promise(l=>e._bracketsRightYield(l,0,n,o,a)),await new Promise(l=>e._bracketsLeftYield(l,0,n,o,a,s))}return r}static _bracketsRightYield(n,i,r,o,s){const a=new Map,l=Date.now();for(;;){if(i>=e._maxRounds){n();break}if(!o){n();break}const c=r.bracketPairs.findNextBracket(o);if(!c){n();break}if(Date.now()-l>e._maxDuration){setTimeout(()=>e._bracketsRightYield(n,i+1,r,o,s));break}if(c.bracketInfo.isOpeningBracket){const d=c.bracketInfo.bracketText,h=a.has(d)?a.get(d):0;a.set(d,h+1)}else{const d=c.bracketInfo.getOpeningBrackets()[0].bracketText;let h=a.has(d)?a.get(d):0;if(h-=1,a.set(d,Math.max(0,h)),h<0){let f=s.get(d);f||(f=new yp,s.set(d,f)),f.push(c.range)}}o=c.range.getEndPosition()}}static _bracketsLeftYield(n,i,r,o,s,a){const l=new Map,c=Date.now();for(;;){if(i>=e._maxRounds&&s.size===0){n();break}if(!o){n();break}const u=r.bracketPairs.findPrevBracket(o);if(!u){n();break}if(Date.now()-c>e._maxDuration){setTimeout(()=>e._bracketsLeftYield(n,i+1,r,o,s,a));break}if(u.bracketInfo.isOpeningBracket){const h=u.bracketInfo.bracketText;let f=l.has(h)?l.get(h):0;if(f-=1,l.set(h,Math.max(0,f)),f<0){const p=s.get(h);if(p){const g=p.shift();p.size===0&&s.delete(h);const m=Re.fromPositions(u.range.getEndPosition(),g.getStartPosition()),v=Re.fromPositions(u.range.getStartPosition(),g.getEndPosition());a.push({range:m}),a.push({range:v}),e._addBracketLeading(r,v,a)}}}else{const h=u.bracketInfo.getOpeningBrackets()[0].bracketText,f=l.has(h)?l.get(h):0;l.set(h,f+1)}o=u.range.getStartPosition()}}static _addBracketLeading(n,i,r){if(i.startLineNumber===i.endLineNumber)return;const o=i.startLineNumber,s=n.getLineFirstNonWhitespaceColumn(o);s!==0&&s!==i.startColumn&&(r.push({range:Re.fromPositions(new mt(o,s),i.getEndPosition())}),r.push({range:Re.fromPositions(new mt(o,1),i.getEndPosition())}));const a=o-1;if(a>0){const l=n.getLineFirstNonWhitespaceColumn(a);l===i.startColumn&&l!==n.getLineLastNonWhitespaceColumn(a)&&(r.push({range:Re.fromPositions(new mt(a,l),i.getEndPosition())}),r.push({range:Re.fromPositions(new mt(a,1),i.getEndPosition())}))}}},e._maxDuration=30,e._maxRounds=2,e)}}),X$e,Bnn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/wordDistance.js"(){var e;rr(),Dn(),Fnn(),X$e=(e=class{static async create(n,i){if(!i.getOption(119).localityBonus||!i.hasModel())return e.None;const r=i.getModel(),o=i.getPosition();if(!n.canComputeWordRanges(r.uri))return e.None;const[s]=await new Z$e().provideSelectionRanges(r,[o]);if(s.length===0)return e.None;const a=await n.computeWordRanges(r.uri,s[0].range);if(!a)return e.None;const l=r.getWordUntilPosition(o);return delete a[l.word],new class extends e{distance(c,u){if(!o.equals(i.getPosition()))return 0;if(u.kind===17)return 2<<20;const d=typeof u.label=="string"?u.label:u.label.label,h=a[d];if(pWt(h))return 2<<20;const f=Hq(h,Re.fromPositions(c),Re.compareRangesUsingStarts),p=f>=0?h[f]:h[Math.max(0,~f-1)];let g=s.length;for(const m of s){if(!Re.containsRange(m.range,p))break;g-=1}return g}}}},e.None=new class extends e{distance(){return 0}},e)}}),A8e,J$e,jnn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/completionModel.js"(){rr(),yw(),Ki(),A8e=class{constructor(e,t){this.leadingLineContent=e,this.characterCountDelta=t}},J$e=class BB{constructor(t,n,i,r,o,s,a=cge.default,l=void 0){this.clipboardText=l,this._snippetCompareFn=BB._compareCompletionItems,this._items=t,this._column=n,this._wordDistance=r,this._options=o,this._refilterKind=1,this._lineContext=i,this._fuzzyScoreOptions=a,s==="top"?this._snippetCompareFn=BB._compareCompletionItemsSnippetsUp:s==="bottom"&&(this._snippetCompareFn=BB._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(t){(this._lineContext.leadingLineContent!==t.leadingLineContent||this._lineContext.characterCountDelta!==t.characterCountDelta)&&(this._refilterKind=this._lineContext.characterCountDelta<t.characterCountDelta&&this._filteredItems?2:1,this._lineContext=t)}get items(){return this._ensureCachedState(),this._filteredItems}getItemsByProvider(){return this._ensureCachedState(),this._itemsByProvider}getIncompleteProvider(){this._ensureCachedState();const t=new Set;for(const[n,i]of this.getItemsByProvider())i.length>0&&i[0].container.incomplete&&t.add(n);return t}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){this._refilterKind!==0&&this._createCachedState()}_createCachedState(){this._itemsByProvider=new Map;const t=[],{leadingLineContent:n,characterCountDelta:i}=this._lineContext;let r="",o="";const s=this._refilterKind===1?this._items:this._filteredItems,a=[],l=!this._options.filterGraceful||s.length>2e3?JR:hVn;for(let c=0;c<s.length;c++){const u=s[c];if(u.isInvalid)continue;const d=this._itemsByProvider.get(u.provider);d?d.push(u):this._itemsByProvider.set(u.provider,[u]);const h=u.position.column-u.editStart.column,f=h+i-(u.position.column-this._column);if(r.length!==f&&(r=f===0?"":n.slice(-f),o=r.toLowerCase()),u.word=r,f===0)u.score=Q1.Default;else{let p=0;for(;p<h;){const g=r.charCodeAt(p);if(g===32||g===9)p+=1;else break}if(p>=f)u.score=Q1.Default;else if(typeof u.completion.filterText=="string"){const g=l(r,o,p,u.completion.filterText,u.filterTextLow,0,this._fuzzyScoreOptions);if(!g)continue;GFe(u.completion.filterText,u.textLabel)===0?u.score=g:(u.score=aVn(r,o,p,u.textLabel,u.labelLow,0),u.score[0]=g[0])}else{const g=l(r,o,p,u.textLabel,u.labelLow,0,this._fuzzyScoreOptions);if(!g)continue;u.score=g}}u.idx=c,u.distance=this._wordDistance.distance(u.position,u.completion),a.push(u),t.push(u.textLabel.length)}this._filteredItems=a.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:t.length?m5e(t.length-.85,t,(c,u)=>c-u):0}}static _compareCompletionItems(t,n){return t.score[0]>n.score[0]?-1:t.score[0]<n.score[0]?1:t.distance<n.distance?-1:t.distance>n.distance?1:t.idx<n.idx?-1:t.idx>n.idx?1:0}static _compareCompletionItemsSnippetsDown(t,n){if(t.completion.kind!==n.completion.kind){if(t.completion.kind===27)return 1;if(n.completion.kind===27)return-1}return BB._compareCompletionItems(t,n)}static _compareCompletionItemsSnippetsUp(t,n){if(t.completion.kind!==n.completion.kind){if(t.completion.kind===27)return-1;if(n.completion.kind===27)return 1}return BB._compareCompletionItems(t,n)}}}});function qZn(e,t,n){if(!t.getContextKeyValue(h0.inlineSuggestionVisible.key))return!0;const i=t.getContextKeyValue(h0.suppressSuggestions.key);return i!==void 0?!i:!e.getOption(62).suppressSuggestions}function GZn(e,t,n){if(!t.getContextKeyValue("inlineSuggestionVisible"))return!0;const i=t.getContextKeyValue(h0.suppressSuggestions.key);return i!==void 0?!i:!e.getOption(62).suppressSuggestions}var D_t,fA,nAe,Nk,N$,znn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestModel.js"(){fr(),Ho(),Vi(),Un(),Nt(),Ki(),zs(),SE(),Bnn(),zN(),sa(),er(),wm(),_m(),jnn(),Y7(),Eo(),yw(),as(),q$e(),dme(),jHe(),D_t=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},fA=function(e,t){return function(n,i){t(n,i,e)}},Nk=class{static shouldAutoTrigger(e){if(!e.hasModel())return!1;const t=e.getModel(),n=e.getPosition();t.tokenization.tokenizeIfCheap(n.lineNumber);const i=t.getWordAtPosition(n);return!(!i||i.endColumn!==n.column&&i.startColumn+1!==n.column||!isNaN(Number(i.word)))}constructor(e,t,n){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.triggerOptions=n}},N$=nAe=class{constructor(t,n,i,r,o,s,a,l,c){this._editor=t,this._editorWorkerService=n,this._clipboardService=i,this._telemetryService=r,this._logService=o,this._contextKeyService=s,this._configurationService=a,this._languageFeaturesService=l,this._envService=c,this._toDispose=new Jt,this._triggerCharacterListener=new Jt,this._triggerQuickSuggest=new Sb,this._triggerState=void 0,this._completionDisposables=new Jt,this._onDidCancel=new bt,this._onDidTrigger=new bt,this._onDidSuggest=new bt,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new Ii(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(()=>{this._updateTriggerCharacters()})),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange(()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()}));let u=!1;this._toDispose.add(this._editor.onDidCompositionStart(()=>{u=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(()=>{u=!1,this._onCompositionEnd()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(d=>{u||this._onCursorChange(d)})),this._toDispose.add(this._editor.onDidChangeModelContent(()=>{!u&&this._triggerState!==void 0&&this._refilterCompletionItems()})),this._updateTriggerCharacters()}dispose(){xa(this._triggerCharacterListener),xa([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(92)||!this._editor.hasModel()||!this._editor.getOption(122))return;const t=new Map;for(const i of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(const r of i.triggerCharacters||[]){let o=t.get(r);o||(o=new Set,t.set(r,o)),o.add(i)}const n=i=>{if(!GZn(this._editor,this._contextKeyService,this._configurationService)||Nk.shouldAutoTrigger(this._editor))return;if(!i){const s=this._editor.getPosition();i=this._editor.getModel().getLineContent(s.lineNumber).substr(0,s.column-1)}let r="";qR(i.charCodeAt(i.length-1))?ud(i.charCodeAt(i.length-2))&&(r=i.substr(i.length-2)):r=i.charAt(i.length-1);const o=t.get(r);if(o){const s=new Map;if(this._completionModel)for(const[a,l]of this._completionModel.getItemsByProvider())o.has(a)||s.set(a,l);this.trigger({auto:!0,triggerKind:1,triggerCharacter:r,retrigger:!!this._completionModel,clipboardText:this._completionModel?.clipboardText,completionOptions:{providerFilter:o,providerItemsToReuse:s}})}};this._triggerCharacterListener.add(this._editor.onDidType(n)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(()=>n()))}get state(){return this._triggerState?this._triggerState.auto?2:1:0}cancel(t=!1){this._triggerState!==void 0&&(this._triggerQuickSuggest.cancel(),this._requestToken?.cancel(),this._requestToken=void 0,this._triggerState=void 0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:t}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){this._triggerState!==void 0&&(!this._editor.hasModel()||!this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.cancel():this.trigger({auto:this._triggerState.auto,retrigger:!0}))}_onCursorChange(t){if(!this._editor.hasModel())return;const n=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!t.selection.isEmpty()||t.reason!==0&&t.reason!==3||t.source!=="keyboard"&&t.source!=="deleteLeft"){this.cancel();return}this._triggerState===void 0&&t.reason===0?(n.containsRange(this._currentSelection)||n.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():this._triggerState!==void 0&&t.reason===3&&this._refilterCompletionItems()}_onCompositionEnd(){this._triggerState===void 0?this._doTriggerQuickSuggest():this._refilterCompletionItems()}_doTriggerQuickSuggest(){HO.isAllOff(this._editor.getOption(90))||this._editor.getOption(119).snippetsPreventQuickSuggestions&&sp.get(this._editor)?.isInSnippet()||(this.cancel(),this._triggerQuickSuggest.cancelAndSet(()=>{if(this._triggerState!==void 0||!Nk.shouldAutoTrigger(this._editor)||!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;const t=this._editor.getModel(),n=this._editor.getPosition(),i=this._editor.getOption(90);if(!HO.isAllOff(i)){if(!HO.isAllOn(i)){t.tokenization.tokenizeIfCheap(n.lineNumber);const r=t.tokenization.getLineTokens(n.lineNumber),o=r.getStandardTokenType(r.findTokenIndexAtOffset(Math.max(n.column-1-1,0)));if(HO.valueFor(i,o)!=="on")return}qZn(this._editor,this._contextKeyService,this._configurationService)&&this._languageFeaturesService.completionProvider.has(t)&&this.trigger({auto:!0})}},this._editor.getOption(91)))}_refilterCompletionItems(){ns(this._editor.hasModel()),ns(this._triggerState!==void 0);const t=this._editor.getModel(),n=this._editor.getPosition(),i=new Nk(t,n,{...this._triggerState,refilter:!0});this._onNewContext(i)}trigger(t){if(!this._editor.hasModel())return;const n=this._editor.getModel(),i=new Nk(n,this._editor.getPosition(),t);this.cancel(t.retrigger),this._triggerState=t,this._onDidTrigger.fire({auto:t.auto,shy:t.shy??!1,position:this._editor.getPosition()}),this._context=i;let r={triggerKind:t.triggerKind??0};t.triggerCharacter&&(r={triggerKind:1,triggerCharacter:t.triggerCharacter}),this._requestToken=new bl;const o=this._editor.getOption(113);let s=1;switch(o){case"top":s=0;break;case"bottom":s=2;break}const{itemKind:a,showDeprecated:l}=nAe.createSuggestFilter(this._editor),c=new ume(s,t.completionOptions?.kindFilter??a,t.completionOptions?.providerFilter,t.completionOptions?.providerItemsToReuse,l),u=X$e.create(this._editorWorkerService,this._editor),d=Y$e(this._languageFeaturesService.completionProvider,n,this._editor.getPosition(),c,r,this._requestToken.token);Promise.all([d,u]).then(async([h,f])=>{if(this._requestToken?.dispose(),!this._editor.hasModel())return;let p=t?.clipboardText;if(!p&&h.needsClipboard&&(p=await this._clipboardService.readText()),this._triggerState===void 0)return;const g=this._editor.getModel(),m=new Nk(g,this._editor.getPosition(),t),v={...cge.default,firstMatchCanBeWeak:!this._editor.getOption(119).matchOnWordStartOnly};if(this._completionModel=new J$e(h.items,this._context.column,{leadingLineContent:m.leadingLineContent,characterCountDelta:m.column-this._context.column},f,this._editor.getOption(119),this._editor.getOption(113),v,p),this._completionDisposables.add(h.disposable),this._onNewContext(m),this._reportDurationsTelemetry(h.durations),!this._envService.isBuilt||this._envService.isExtensionDevelopment)for(const y of h.items)y.isInvalid&&this._logService.warn(`[suggest] did IGNORE invalid completion item from ${y.provider._debugDisplayName}`,y.completion)}).catch(Mr)}_reportDurationsTelemetry(t){this._telemetryGate++%230===0&&setTimeout(()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(t)}),this._logService.debug("suggest.durations.json",t)})}static createSuggestFilter(t){const n=new Set;t.getOption(113)==="none"&&n.add(27);const r=t.getOption(119);return r.showMethods||n.add(0),r.showFunctions||n.add(1),r.showConstructors||n.add(2),r.showFields||n.add(3),r.showVariables||n.add(4),r.showClasses||n.add(5),r.showStructs||n.add(6),r.showInterfaces||n.add(7),r.showModules||n.add(8),r.showProperties||n.add(9),r.showEvents||n.add(10),r.showOperators||n.add(11),r.showUnits||n.add(12),r.showValues||n.add(13),r.showConstants||n.add(14),r.showEnums||n.add(15),r.showEnumMembers||n.add(16),r.showKeywords||n.add(17),r.showWords||n.add(18),r.showColors||n.add(19),r.showFiles||n.add(20),r.showReferences||n.add(21),r.showColors||n.add(22),r.showFolders||n.add(23),r.showTypeParameters||n.add(24),r.showSnippets||n.add(27),r.showUsers||n.add(25),r.showIssues||n.add(26),{itemKind:n,showDeprecated:r.showDeprecated}}_onNewContext(t){if(this._context){if(t.lineNumber!==this._context.lineNumber){this.cancel();return}if(Ca(t.leadingLineContent)!==Ca(this._context.leadingLineContent)){this.cancel();return}if(t.column<this._context.column){t.leadingWord.word?this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0}):this.cancel();return}if(this._completionModel){if(t.leadingWord.word.length!==0&&t.leadingWord.startColumn>this._context.leadingWord.startColumn){if(Nk.shouldAutoTrigger(this._editor)&&this._context){const i=this._completionModel.getItemsByProvider();this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerItemsToReuse:i}})}return}if(t.column>this._context.column&&this._completionModel.getIncompleteProvider().size>0&&t.leadingWord.word.length!==0){const n=new Map,i=new Set;for(const[r,o]of this._completionModel.getItemsByProvider())o.length>0&&o[0].container.incomplete?i.add(r):n.set(r,o);this.trigger({auto:this._context.triggerOptions.auto,triggerKind:2,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerFilter:i,providerItemsToReuse:n}})}else{const n=this._completionModel.lineContext;let i=!1;if(this._completionModel.lineContext={leadingLineContent:t.leadingLineContent,characterCountDelta:t.column-this._context.column},this._completionModel.items.length===0){const r=Nk.shouldAutoTrigger(this._editor);if(!this._context){this.cancel();return}if(r&&this._context.leadingWord.endColumn<t.leadingWord.startColumn){this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0});return}if(this._context.triggerOptions.auto){this.cancel();return}else if(this._completionModel.lineContext=n,i=this._completionModel.items.length>0,i&&t.leadingWord.word.length===0){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,triggerOptions:t.triggerOptions,isFrozen:i})}}}}},N$=nAe=D_t([fA(1,fg),fA(2,tE),fA(3,uf),fA(4,bh),fA(5,ur),fA(6,co),fA(7,gi),fA(8,oge)],N$)}}),Vnn,KZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestOvertypingCapturer.js"(){var e;Nt(),Vnn=(e=class{constructor(n,i){this._disposables=new Jt,this._lastOvertyped=[],this._locked=!1,this._disposables.add(n.onWillType(()=>{if(this._locked||!n.hasModel())return;const r=n.getSelections(),o=r.length;let s=!1;for(let l=0;l<o;l++)if(!r[l].isEmpty()){s=!0;break}if(!s){this._lastOvertyped.length!==0&&(this._lastOvertyped.length=0);return}this._lastOvertyped=[];const a=n.getModel();for(let l=0;l<o;l++){const c=r[l];if(a.getValueLengthInRange(c)>e._maxSelectionLength)return;this._lastOvertyped[l]={value:a.getValueInRange(c),multiline:c.startLineNumber!==c.endLineNumber}}})),this._disposables.add(i.onDidTrigger(r=>{this._locked=!0})),this._disposables.add(i.onDidCancel(r=>{this._locked=!1}))}getLastOvertypedInfo(n){if(n>=0&&n<this._lastOvertyped.length)return this._lastOvertyped[n]}dispose(){this._disposables.dispose()}},e._maxSelectionLength=51200,e)}}),YZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/media/suggest.css"(){}}),T_t,Qte,ple,QZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestWidgetStatus.js"(){Fn(),ww(),Nt(),jN(),ha(),er(),li(),T_t=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},Qte=function(e,t){return function(n,i){t(n,i,e)}},ple=class{constructor(t,n,i,r,o){this._menuId=n,this._menuService=r,this._contextKeyService=o,this._menuDisposables=new Jt,this.element=hn(t,In(".suggest-status-bar"));const s=(a=>a instanceof um?i.createInstance(wGt,a,{useComma:!0}):void 0);this._leftActions=new Dv(this.element,{actionViewItemProvider:s}),this._rightActions=new Dv(this.element,{actionViewItemProvider:s}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this._leftActions.dispose(),this._rightActions.dispose(),this.element.remove()}show(){const t=this._menuService.createMenu(this._menuId,this._contextKeyService),n=()=>{const i=[],r=[];for(const[o,s]of t.getActions())o==="left"?i.push(...s):r.push(...s);this._leftActions.clear(),this._leftActions.push(i),this._rightActions.clear(),this._rightActions.push(r)};this._menuDisposables.add(t.onDidChange(()=>n())),this._menuDisposables.add(t)}hide(){this._menuDisposables.clear()}},ple=T_t([Qte(2,ji),Qte(3,Pv),Qte(4,ur)],ple)}});function eqe(e){return!!e&&!!(e.completion.documentation||e.completion.detail&&e.completion.detail!==e.completion.label)}var k_t,I_t,gle,Hnn,Wnn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js"(){Fn(),vw(),ia(),Ra(),Un(),Dg(),Nt(),RN(),B$e(),bn(),li(),k_t=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},I_t=function(e,t){return function(n,i){t(n,i,e)}},gle=class{constructor(t,n){this._editor=t,this._onDidClose=new bt,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new bt,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new Jt,this._renderDisposeable=new Jt,this._borderWidth=1,this._size=new qs(330,0),this.domNode=In(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=n.createInstance(Lx,{editor:t}),this._body=In(".body"),this._scrollbar=new N7(this._body,{alwaysConsumeMouseWheel:!0}),hn(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=hn(this._body,In(".header")),this._close=hn(this._header,In("span"+lr.asCSSSelector(An.close))),this._close.title=R("details.close","Close"),this._type=hn(this._header,In("p.type")),this._docs=hn(this._body,In("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(50)&&this._configureFont()}))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){const t=this._editor.getOptions(),n=t.get(50),i=n.getMassagedFontFamily(),r=t.get(120)||n.fontSize,o=t.get(121)||n.lineHeight,s=n.fontWeight,a=`${r}px`,l=`${o}px`;this.domNode.style.fontSize=a,this.domNode.style.lineHeight=`${o/r}`,this.domNode.style.fontWeight=s,this.domNode.style.fontFeatureSettings=n.fontFeatureSettings,this._type.style.fontFamily=i,this._close.style.height=l,this._close.style.width=l}getLayoutInfo(){const t=this._editor.getOption(121)||this._editor.getOption(50).lineHeight,n=this._borderWidth,i=n*2;return{lineHeight:t,borderWidth:n,borderHeight:i,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=R("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,this.getLayoutInfo().lineHeight*2),this._onDidChangeContents.fire(this)}renderItem(t,n){this._renderDisposeable.clear();let{detail:i,documentation:r}=t.completion;if(n){let o="";o+=`score: ${t.score[0]}
`,o+=`prefix: ${t.word??"(no prefix)"}
`,o+=`word: ${t.completion.filterText?t.completion.filterText+" (filterText)":t.textLabel}
`,o+=`distance: ${t.distance} (localityBonus-setting)
`,o+=`index: ${t.idx}, based on ${t.completion.sortText&&`sortText: "${t.completion.sortText}"`||"label"}
`,o+=`commit_chars: ${t.completion.commitCharacters?.join("")}
`,r=new nf().appendCodeblock("empty",o),i=`Provider: ${t.provider._debugDisplayName}`}if(!n&&!eqe(t)){this.clearContents();return}if(this.domNode.classList.remove("no-docs","no-type"),i){const o=i.length>1e5?`${i.substr(0,1e5)}…`:i;this._type.textContent=o,this._type.title=o,lv(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gmi.test(o))}else Sh(this._type),this._type.title="",ig(this._type),this.domNode.classList.add("no-type");if(Sh(this._docs),typeof r=="string")this._docs.classList.remove("markdown-docs"),this._docs.textContent=r;else if(r){this._docs.classList.add("markdown-docs"),Sh(this._docs);const o=this._markdownRenderer.render(r);this._docs.appendChild(o.element),this._renderDisposeable.add(o),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync(()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=o=>{o.preventDefault(),o.stopPropagation()},this._close.onclick=o=>{o.preventDefault(),o.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get isEmpty(){return this.domNode.classList.contains("no-docs")}get size(){return this._size}layout(t,n){const i=new qs(t,n);qs.equals(i,this._size)||(this._size=i,F9n(this.domNode,t,n)),this._scrollbar.scanDomNode()}scrollDown(t=8){this._body.scrollTop+=t}scrollUp(t=8){this._body.scrollTop-=t}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(t){this._borderWidth=t}get borderWidth(){return this._borderWidth}},gle=k_t([I_t(1,ji)],gle),Hnn=class{constructor(e,t){this.widget=e,this._editor=t,this.allowEditorOverflow=!0,this._disposables=new Jt,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new nme,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let n,i,r=0,o=0;this._disposables.add(this._resizable.onDidWillResize(()=>{n=this._topLeft,i=this._resizable.size})),this._disposables.add(this._resizable.onDidResize(s=>{if(n&&i){this.widget.layout(s.dimension.width,s.dimension.height);let a=!1;s.west&&(o=i.width-s.dimension.width,a=!0),s.north&&(r=i.height-s.dimension.height,a=!0),a&&this._applyTopLeft({top:n.top+r,left:n.left+o})}s.done&&(n=void 0,i=void 0,r=0,o=0,this._userSize=s.dimension)})),this._disposables.add(this.widget.onDidChangeContents(()=>{this._anchorBox&&this._placeAtAnchor(this._anchorBox,this._userSize??this.widget.size,this._preferAlignAtTop)}))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return this._topLeft?{preference:this._topLeft}:null}show(){this._added||(this._editor.addOverlayWidget(this),this._added=!0)}hide(e=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(e,t){const n=e.getBoundingClientRect();this._anchorBox=n,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,this._userSize??this.widget.size,t)}_placeAtAnchor(e,t,n){const i=LL(this.getDomNode().ownerDocument.body),r=this.widget.getLayoutInfo(),o=new qs(220,2*r.lineHeight),s=e.top,a=(function(){const w=i.width-(e.left+e.width+r.borderWidth+r.horizontalPadding),E=-r.borderWidth+e.left+e.width,A=new qs(w,i.height-e.top-r.borderHeight-r.verticalPadding),D=A.with(void 0,e.top+e.height-r.borderHeight-r.verticalPadding);return{top:s,left:E,fit:w-t.width,maxSizeTop:A,maxSizeBottom:D,minSize:o.with(Math.min(w,o.width))}})(),l=(function(){const w=e.left-r.borderWidth-r.horizontalPadding,E=Math.max(r.horizontalPadding,e.left-t.width-r.borderWidth),A=new qs(w,i.height-e.top-r.borderHeight-r.verticalPadding),D=A.with(void 0,e.top+e.height-r.borderHeight-r.verticalPadding);return{top:s,left:E,fit:w-t.width,maxSizeTop:A,maxSizeBottom:D,minSize:o.with(Math.min(w,o.width))}})(),c=(function(){const w=e.left,E=-r.borderWidth+e.top+e.height,A=new qs(e.width-r.borderHeight,i.height-e.top-e.height-r.verticalPadding);return{top:E,left:w,fit:A.height-t.height,maxSizeBottom:A,maxSizeTop:A,minSize:o.with(A.width)}})(),u=[a,l,c],d=u.find(w=>w.fit>=0)??u.sort((w,E)=>E.fit-w.fit)[0],h=e.top+e.height-r.borderHeight;let f,p=t.height;const g=Math.max(d.maxSizeTop.height,d.maxSizeBottom.height);p>g&&(p=g);let m;n?p<=d.maxSizeTop.height?(f=!0,m=d.maxSizeTop):(f=!1,m=d.maxSizeBottom):p<=d.maxSizeBottom.height?(f=!1,m=d.maxSizeBottom):(f=!0,m=d.maxSizeTop);let{top:v,left:y}=d;!f&&p>e.height&&(v=h-p);const b=this._editor.getDomNode();if(b){const w=b.getBoundingClientRect();v-=w.top,y-=w.left}this._applyTopLeft({left:y,top:v}),this._resizable.enableSashes(!f,d===a,f,d!==a),this._resizable.minSize=d.minSize,this._resizable.maxSize=m,this._resizable.layout(p,Math.min(m.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this._editor.layoutOverlayWidget(this)}}}}),vx,Unn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/files/common/files.js"(){(function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"})(vx||(vx={}))}});function Zte(e,t,n,i,r){if(lr.isThemeIcon(r))return[`codicon-${r.id}`,"predefined-file-icon"];if(Ui.isUri(r))return[];const o=i===vx.ROOT_FOLDER?["rootfolder-icon"]:i===vx.FOLDER?["folder-icon"]:["file-icon"];if(n){let s;if(n.scheme===Pr.data)s=ML.parseMetaData(n).get(ML.META_DATA_LABEL);else{const a=n.path.match($nn);a?(s=Xte(a[2].toLowerCase()),a[1]&&o.push(`${Xte(a[1].toLowerCase())}-name-dir-icon`)):s=Xte(n.authority.toLowerCase())}if(i===vx.ROOT_FOLDER)o.push(`${s}-root-name-folder-icon`);else if(i===vx.FOLDER)o.push(`${s}-name-folder-icon`);else{if(s){if(o.push(`${s}-name-file-icon`),o.push("name-file-icon"),s.length<=255){const l=s.split(".");for(let c=1;c<l.length;c++)o.push(`${l.slice(c).join(".")}-ext-file-icon`)}o.push("ext-file-icon")}const a=ZZn(e,t,n);a&&o.push(`${Xte(a)}-lang-file-icon`)}}return o}function ZZn(e,t,n){if(!n)return null;let i=null;if(n.scheme===Pr.data){const o=ML.parseMetaData(n).get(ML.META_DATA_MIME);o&&(i=t.getLanguageIdByMimeType(o))}else{const r=e.getModel(n);r&&(i=r.getLanguageId())}return i&&i!==xp?i:t.guessLanguageIdByFilepathOrFirstLine(n)}function Xte(e){return e.replace(/[\s]/g,"/")}var $nn,XZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/getIconClasses.js"(){Gd(),bf(),ss(),G0(),Unn(),Ra(),$nn=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/}});function qnn(e){return`suggest-aria-id:${e}`}function iAe(e){return e.replace(/\r\n|\r|\n/g,"")}var L_t,Jte,N_t,P_t,mle,JZn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js"(){var e;Fn(),hUe(),ia(),Ra(),Un(),yw(),Nt(),ss(),ra(),XZn(),Kf(),Kd(),bn(),Unn(),X0(),Ys(),Wnn(),L_t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},Jte=function(t,n){return function(i,r){n(i,r,t)}},N_t=Xa("suggest-more-info",An.chevronRight,R("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),P_t=new(e=class{extract(n,i){if(n.textLabel.match(e._regexStrict))return i[0]=n.textLabel,!0;if(n.completion.detail&&n.completion.detail.match(e._regexStrict))return i[0]=n.completion.detail,!0;if(n.completion.documentation){const r=typeof n.completion.documentation=="string"?n.completion.documentation:n.completion.documentation.value,o=e._regexRelaxed.exec(r);if(o&&(o.index===0||o.index+o[0].length===r.length))return i[0]=o[0],!0}return!1}},e._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/,e._regexStrict=new RegExp(`^${e._regexRelaxed.source}$`,"i"),e),mle=class{constructor(n,i,r,o){this._editor=n,this._modelService=i,this._languageService=r,this._themeService=o,this._onDidToggleDetails=new bt,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(n){const i=new Jt,r=n;r.classList.add("show-file-icons");const o=hn(n,In(".icon")),s=hn(o,In("span.colorspan")),a=hn(n,In(".contents")),l=hn(a,In(".main")),c=hn(l,In(".icon-label.codicon")),u=hn(l,In("span.left")),d=hn(l,In("span.right")),h=new uG(u,{supportHighlights:!0,supportIcons:!0});i.add(h);const f=hn(u,In("span.signature-label")),p=hn(u,In("span.qualifier-label")),g=hn(d,In("span.details-label")),m=hn(d,In("span.readMore"+lr.asCSSSelector(N_t)));return m.title=R("readMore","Read More"),{root:r,left:u,right:d,icon:o,colorspan:s,iconLabel:h,iconContainer:c,parametersLabel:f,qualifierLabel:p,detailsLabel:g,readMore:m,disposables:i,configureFont:()=>{const y=this._editor.getOptions(),b=y.get(50),w=b.getMassagedFontFamily(),E=b.fontFeatureSettings,A=y.get(120)||b.fontSize,D=y.get(121)||b.lineHeight,T=b.fontWeight,M=b.letterSpacing,P=`${A}px`,F=`${D}px`,N=`${M}px`;r.style.fontSize=P,r.style.fontWeight=T,r.style.letterSpacing=N,l.style.fontFamily=w,l.style.fontFeatureSettings=E,l.style.lineHeight=F,o.style.height=F,o.style.width=F,m.style.height=F,m.style.width=F}}}renderElement(n,i,r){r.configureFont();const{completion:o}=n;r.root.id=qnn(i),r.colorspan.style.backgroundColor="";const s={labelEscapeNewLines:!0,matches:eG(n.score)},a=[];if(o.kind===19&&P_t.extract(n,a))r.icon.className="icon customcolor",r.iconContainer.className="icon hide",r.colorspan.style.backgroundColor=a[0];else if(o.kind===20&&this._themeService.getFileIconTheme().hasFileIcons){r.icon.className="icon hide",r.iconContainer.className="icon hide";const l=Zte(this._modelService,this._languageService,Ui.from({scheme:"fake",path:n.textLabel}),vx.FILE),c=Zte(this._modelService,this._languageService,Ui.from({scheme:"fake",path:o.detail}),vx.FILE);s.extraClasses=l.length>c.length?l:c}else o.kind===23&&this._themeService.getFileIconTheme().hasFolderIcons?(r.icon.className="icon hide",r.iconContainer.className="icon hide",s.extraClasses=[Zte(this._modelService,this._languageService,Ui.from({scheme:"fake",path:n.textLabel}),vx.FOLDER),Zte(this._modelService,this._languageService,Ui.from({scheme:"fake",path:o.detail}),vx.FOLDER)].flat()):(r.icon.className="icon hide",r.iconContainer.className="",r.iconContainer.classList.add("suggest-icon",...lr.asClassNameArray(Cq.toIcon(o.kind))));o.tags&&o.tags.indexOf(1)>=0&&(s.extraClasses=(s.extraClasses||[]).concat(["deprecated"]),s.matches=[]),r.iconLabel.setLabel(n.textLabel,void 0,s),typeof o.label=="string"?(r.parametersLabel.textContent="",r.detailsLabel.textContent=iAe(o.detail||""),r.root.classList.add("string-label")):(r.parametersLabel.textContent=iAe(o.label.detail||""),r.detailsLabel.textContent=iAe(o.label.description||""),r.root.classList.remove("string-label")),this._editor.getOption(119).showInlineDetails?lv(r.detailsLabel):ig(r.detailsLabel),eqe(n)?(r.right.classList.add("can-expand-details"),lv(r.readMore),r.readMore.onmousedown=l=>{l.stopPropagation(),l.preventDefault()},r.readMore.onclick=l=>{l.stopPropagation(),l.preventDefault(),this._onDidToggleDetails.fire()}):(r.right.classList.remove("can-expand-details"),ig(r.readMore),r.readMore.onmousedown=null,r.readMore.onclick=null)}disposeTemplate(n){n.disposables.dispose()}},mle=L_t([Jte(1,Ua),Jte(2,al),Jte(3,Ru)],mle)}}),M_t,e3,w4,O_t,R_t,F_t,vle,B_t,eXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestWidget.js"(){var e;Fn(),Jge(),BN(),fr(),Vi(),Un(),Nt(),k7(),Ki(),YZn(),UN(),QZn(),A$e(),bn(),er(),li(),CE(),ll(),VC(),Ys(),B$e(),Y7(),Wnn(),JZn(),wT(),Ih(),M_t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},e3=function(t,n){return function(i,r){n(i,r,t)}},Qe("editorSuggestWidget.background",cv,R("editorSuggestWidgetBackground","Background color of the suggest widget.")),Qe("editorSuggestWidget.border",Tue,R("editorSuggestWidgetBorder","Border color of the suggest widget.")),O_t=Qe("editorSuggestWidget.foreground",K1,R("editorSuggestWidgetForeground","Foreground color of the suggest widget.")),Qe("editorSuggestWidget.selectedForeground",X8,R("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget.")),Qe("editorSuggestWidget.selectedIconForeground",Hpe,R("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget.")),R_t=Qe("editorSuggestWidget.selectedBackground",J8,R("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget.")),Qe("editorSuggestWidget.highlightForeground",uO,R("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),Qe("editorSuggestWidget.focusHighlightForeground",PHt,R("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused.")),Qe("editorSuggestWidgetStatus.foreground",ao(O_t,.5),R("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status.")),F_t=class{constructor(t,n){this._service=t,this._key=`suggestWidget.size/${n.getEditorType()}/${n instanceof Xy}`}restore(){const t=this._service.get(this._key,0)??"";try{const n=JSON.parse(t);if(qs.is(n))return qs.lift(n)}catch{}}store(t){this._service.store(this._key,JSON.stringify(t),0,1)}reset(){this._service.remove(this._key,0)}},vle=(e=class{constructor(n,i,r,o,s){this.editor=n,this._storageService=i,this._state=0,this._isAuto=!1,this._pendingLayout=new Yu,this._pendingShowDetails=new Yu,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new Sb,this._disposables=new Jt,this._onDidSelect=new bL,this._onDidFocus=new bL,this._onDidHide=new bt,this._onDidShow=new bt,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new bt,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new nme,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new B_t(this,n),this._persistedSize=new F_t(i,n);class a{constructor(p,g,m=!1,v=!1){this.persistedSize=p,this.currentSize=g,this.persistHeight=m,this.persistWidth=v}}let l;this._disposables.add(this.element.onDidWillResize(()=>{this._contentWidget.lockPreference(),l=new a(this._persistedSize.restore(),this.element.size)})),this._disposables.add(this.element.onDidResize(f=>{if(this._resize(f.dimension.width,f.dimension.height),l&&(l.persistHeight=l.persistHeight||!!f.north||!!f.south,l.persistWidth=l.persistWidth||!!f.east||!!f.west),!!f.done){if(l){const{itemHeight:p,defaultSize:g}=this.getLayoutInfo(),m=Math.round(p/2);let{width:v,height:y}=this.element.size;(!l.persistHeight||Math.abs(l.currentSize.height-y)<=m)&&(y=l.persistedSize?.height??g.height),(!l.persistWidth||Math.abs(l.currentSize.width-v)<=m)&&(v=l.persistedSize?.width??g.width),this._persistedSize.store(new qs(v,y))}this._contentWidget.unlockPreference(),l=void 0}})),this._messageElement=hn(this.element.domNode,In(".message")),this._listElement=hn(this.element.domNode,In(".tree"));const c=this._disposables.add(s.createInstance(gle,this.editor));c.onDidClose(this.toggleDetails,this,this._disposables),this._details=new Hnn(c,this.editor);const u=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(119).showIcons);u();const d=s.createInstance(mle,this.editor);this._disposables.add(d),this._disposables.add(d.onDidToggleDetails(()=>this.toggleDetails())),this._list=new tv("SuggestWidget",this._listElement,{getHeight:f=>this.getLayoutInfo().itemHeight,getTemplateId:f=>"suggestion"},[d],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>R("suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:f=>{let p=f.textLabel;if(typeof f.completion.label!="string"){const{detail:y,description:b}=f.completion.label;y&&b?p=R("label.full","{0} {1}, {2}",p,y,b):y?p=R("label.detail","{0} {1}",p,y):b&&(p=R("label.desc","{0}, {1}",p,b))}if(!f.isResolved||!this._isDetailsVisible())return p;const{documentation:g,detail:m}=f.completion,v=$R("{0}{1}",m||"",g?typeof g=="string"?g:g.value:"");return R("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",p,v)}}}),this._list.style(PO({listInactiveFocusBackground:R_t,listInactiveFocusOutline:Qa})),this._status=s.createInstance(ple,this.element.domNode,zA);const h=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(119).showStatusBar);h(),this._disposables.add(o.onDidColorThemeChange(f=>this._onThemeChange(f))),this._onThemeChange(o.getColorTheme()),this._disposables.add(this._list.onMouseDown(f=>this._onListMouseDownOrTap(f))),this._disposables.add(this._list.onTap(f=>this._onListMouseDownOrTap(f))),this._disposables.add(this._list.onDidChangeSelection(f=>this._onListSelection(f))),this._disposables.add(this._list.onDidChangeFocus(f=>this._onListFocus(f))),this._disposables.add(this.editor.onDidChangeCursorSelection(()=>this._onCursorSelectionChanged())),this._disposables.add(this.editor.onDidChangeConfiguration(f=>{f.hasChanged(119)&&(h(),u()),this._completionModel&&(f.hasChanged(50)||f.hasChanged(120)||f.hasChanged(121))&&this._list.splice(0,this._list.length,this._completionModel.items)})),this._ctxSuggestWidgetVisible=so.Visible.bindTo(r),this._ctxSuggestWidgetDetailsVisible=so.DetailsVisible.bindTo(r),this._ctxSuggestWidgetMultipleSuggestions=so.MultipleSuggestions.bindTo(r),this._ctxSuggestWidgetHasFocusedSuggestion=so.HasFocusedSuggestion.bindTo(r),this._disposables.add(Il(this._details.widget.domNode,"keydown",f=>{this._onDetailsKeydown.fire(f)})),this._disposables.add(this.editor.onMouseDown(f=>this._onEditorMouseDown(f)))}dispose(){this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),this._loadingTimeout?.dispose(),this._pendingLayout.dispose(),this._pendingShowDetails.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(n){this._details.widget.domNode.contains(n.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(n.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){this._state!==0&&this._contentWidget.layout()}_onListMouseDownOrTap(n){typeof n.element>"u"||typeof n.index>"u"||(n.browserEvent.preventDefault(),n.browserEvent.stopPropagation(),this._select(n.element,n.index))}_onListSelection(n){n.elements.length&&this._select(n.elements[0],n.indexes[0])}_select(n,i){const r=this._completionModel;r&&(this._onDidSelect.fire({item:n,index:i,model:r}),this.editor.focus())}_onThemeChange(n){this._details.widget.borderWidth=rC(n.type)?2:1}_onListFocus(n){if(this._ignoreFocusEvents)return;if(!n.elements.length){this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);return}if(!this._completionModel)return;this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);const i=n.elements[0],r=n.indexes[0];i!==this._focusedItem&&(this._currentSuggestionDetails?.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=i,this._list.reveal(r),this._currentSuggestionDetails=vd(async o=>{const s=TL(()=>{this._isDetailsVisible()&&this.showDetails(!0)},250),a=o.onCancellationRequested(()=>s.dispose());try{return await i.resolve(o)}finally{s.dispose(),a.dispose()}}),this._currentSuggestionDetails.then(()=>{r>=this._list.length||i!==this._list.element(r)||(this._ignoreFocusEvents=!0,this._list.splice(r,1,[i]),this._list.setFocus([r]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:qnn(r)}))}).catch(Mr)),this._onDidFocus.fire({item:i,index:r,model:this._completionModel})}_setState(n){if(this._state!==n)switch(this._state=n,this.element.domNode.classList.toggle("frozen",n===4),this.element.domNode.classList.remove("message"),n){case 0:ig(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._ctxSuggestWidgetHasFocusedSuggestion.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=w4.LOADING_MESSAGE,ig(this._listElement,this._status.element),lv(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,eE(w4.LOADING_MESSAGE);break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=w4.NO_SUGGESTIONS_MESSAGE,ig(this._listElement,this._status.element),lv(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,eE(w4.NO_SUGGESTIONS_MESSAGE);break;case 3:ig(this._messageElement),lv(this._listElement,this._status.element),this._show();break;case 4:ig(this._messageElement),lv(this._listElement,this._status.element),this._show();break;case 5:ig(this._messageElement),lv(this._listElement,this._status.element),this._details.show(),this._show();break}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet(()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)},100)}showTriggered(n,i){this._state===0&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!n,this._isAuto||(this._loadingTimeout=TL(()=>this._setState(1),i)))}showSuggestions(n,i,r,o,s){if(this._contentWidget.setPosition(this.editor.getPosition()),this._loadingTimeout?.dispose(),this._currentSuggestionDetails?.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==n&&(this._completionModel=n),r&&this._state!==2&&this._state!==0){this._setState(4);return}const a=this._completionModel.items.length,l=a===0;if(this._ctxSuggestWidgetMultipleSuggestions.set(a>1),l){this._setState(o?0:2),this._completionModel=void 0;return}this._focusedItem=void 0,this._onDidFocus.pause(),this._onDidSelect.pause();try{this._list.splice(0,this._list.length,this._completionModel.items),this._setState(r?4:3),this._list.reveal(i,0),this._list.setFocus(s?[]:[i])}finally{this._onDidFocus.resume(),this._onDidSelect.resume()}this._pendingLayout.value=Aue(Yi(this.element.domNode),()=>{this._pendingLayout.clear(),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")})}focusSelected(){this._list.length>0&&this._list.setFocus([0])}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(this._state!==0&&this._state!==2&&this._state!==1&&this._completionModel&&this._list.getFocus().length>0)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){this._state===5?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):this._state===3&&this._isDetailsVisible()&&(this._setState(5),this._details.widget.domNode.classList.add("focused"))}toggleDetails(){this._isDetailsVisible()?(this._pendingShowDetails.clear(),this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):(eqe(this._list.getFocusedElements()[0])||this._explainMode)&&(this._state===3||this._state===5||this._state===4)&&(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(n){this._pendingShowDetails.value=Aue(Yi(this.element.domNode),()=>{this._pendingShowDetails.clear(),this._details.show(),n?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._details.widget.isEmpty?this._details.hide():(this._positionDetails(),this.element.domNode.classList.add("shows-details")),this.editor.focus()})}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){this._pendingLayout.clear(),this._pendingShowDetails.clear(),this._loadingTimeout?.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();const n=this._persistedSize.restore(),i=Math.ceil(this.getLayoutInfo().itemHeight*4.3);n&&n.height<i&&this._persistedSize.store(n.with(void 0,i))}isFrozen(){return this._state===4}_afterRender(n){if(n===null){this._isDetailsVisible()&&this._details.hide();return}this._state===2||this._state===1||(this._isDetailsVisible()&&!this._details.widget.isEmpty&&this._details.show(),this._positionDetails())}_layout(n){if(!this.editor.hasModel()||!this.editor.getDomNode())return;const i=LL(this.element.domNode.ownerDocument.body),r=this.getLayoutInfo();n||(n=r.defaultSize);let o=n.height,s=n.width;if(this._status.element.style.height=`${r.itemHeight}px`,this._state===2||this._state===1)o=r.itemHeight+r.borderHeight,s=r.defaultSize.width/2,this.element.enableSashes(!1,!1,!1,!1),this.element.minSize=this.element.maxSize=new qs(s,o),this._contentWidget.setPreference(2);else{const a=i.width-r.borderHeight-2*r.horizontalPadding;s>a&&(s=a);const l=this._completionModel?this._completionModel.stats.pLabelLen*r.typicalHalfwidthCharacterWidth:s,c=r.statusBarHeight+this._list.contentHeight+r.borderHeight,u=r.itemHeight+r.statusBarHeight,d=_c(this.editor.getDomNode()),h=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),f=d.top+h.top+h.height,p=Math.min(i.height-f-r.verticalPadding,c),g=d.top+h.top-r.verticalPadding,m=Math.min(g,c);let v=Math.min(Math.max(m,p)+r.borderHeight,c);o===this._cappedHeight?.capped&&(o=this._cappedHeight.wanted),o<u&&(o=u),o>v&&(o=v),o>p||this._forceRenderingAbove&&g>150?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),v=m):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),v=p),this.element.preferredSize=new qs(l,r.defaultSize.height),this.element.maxSize=new qs(a,v),this.element.minSize=new qs(220,u),this._cappedHeight=o===c?{wanted:this._cappedHeight?.wanted??n.height,capped:o}:void 0}this._resize(s,o)}_resize(n,i){const{width:r,height:o}=this.element.maxSize;n=Math.min(r,n),i=Math.min(o,i);const{statusBarHeight:s}=this.getLayoutInfo();this._list.layout(i-s,n),this._listElement.style.height=`${i-s}px`,this.element.layout(i,n),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode,this._contentWidget.getPosition()?.preference[0]===2)}getLayoutInfo(){const n=this.editor.getOption(50),i=Jp(this.editor.getOption(121)||n.lineHeight,8,1e3),r=!this.editor.getOption(119).showStatusBar||this._state===2||this._state===1?0:i,o=this._details.widget.borderWidth,s=2*o;return{itemHeight:i,statusBarHeight:r,borderWidth:o,borderHeight:s,typicalHalfwidthCharacterWidth:n.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new qs(430,r+12*i+s)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(n){this._storageService.store("expandSuggestionDocs",n,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}},w4=e,e.LOADING_MESSAGE=R("suggestWidget.loading","Loading..."),e.NO_SUGGESTIONS_MESSAGE=R("suggestWidget.noSuggestions","No suggestions."),e),vle=w4=M_t([e3(1,ab),e3(2,ur),e3(3,Ru),e3(4,ji)],vle),B_t=class{constructor(t,n){this._widget=t,this._editor=n,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return this._hidden||!this._position||!this._preference?null:{position:this._position,preference:[this._preference]}}beforeRender(){const{height:t,width:n}=this._widget.element.size,{borderWidth:i,horizontalPadding:r}=this._widget.getLayoutInfo();return new qs(n+2*i+r,t+2*i)}afterRender(t){this._widget._afterRender(t)}setPreference(t){this._preferenceLocked||(this._preference=t)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(t){this._position=t}}}}),j_t,fM,rAe,z_t,V_t,xy,H_t,oAe,Lm,np,tqe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestController.js"(){var e,t;Ih(),rr(),Ho(),Vi(),Un(),C7(),Nt(),Xr(),_g(),as(),q7(),mr(),Tb(),Hi(),Dn(),ls(),dme(),lF(),Onn(),WZn(),bn(),Ks(),er(),li(),wm(),Y7(),UZn(),$Zn(),znn(),KZn(),eXn(),_m(),bf(),Y2(),Fn(),Ac(),j_t=function(n,i,r,o){var s=arguments.length,a=s<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,r):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,i,r,o);else for(var c=n.length-1;c>=0;c--)(l=n[c])&&(a=(s<3?l(a):s>3?l(i,r,a):l(i,r))||a);return s>3&&a&&Object.defineProperty(i,r,a),a},fM=function(n,i){return function(r,o){i(r,o,n)}},z_t=!1,V_t=class{constructor(n,i){if(this._model=n,this._position=i,this._decorationOptions=Gr.register({description:"suggest-line-suffix",stickiness:1}),n.getLineMaxColumn(i.lineNumber)!==i.column){const o=n.getOffsetAt(i),s=n.getPositionAt(o+1);n.changeDecorations(a=>{this._marker&&a.removeDecoration(this._marker),this._marker=a.addDecoration(Re.fromPositions(i,s),this._decorationOptions)})}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.changeDecorations(n=>{n.removeDecoration(this._marker),this._marker=void 0})}delta(n){if(this._model.isDisposed()||this._position.lineNumber!==n.lineNumber)return 0;if(this._marker){const i=this._model.getDecorationRange(this._marker);return this._model.getOffsetAt(i.getStartPosition())-this._model.getOffsetAt(n)}else return this._model.getLineMaxColumn(n.lineNumber)-n.column}},xy=(e=class{static get(i){return i.getContribution(rAe.ID)}constructor(i,r,o,s,a,l,c){this._memoryService=r,this._commandService=o,this._contextKeyService=s,this._instantiationService=a,this._logService=l,this._telemetryService=c,this._lineSuffix=new Yu,this._toDispose=new Jt,this._selectors=new H_t(f=>f.priority),this._onWillInsertSuggestItem=new bt,this.onWillInsertSuggestItem=this._onWillInsertSuggestItem.event,this.editor=i,this.model=a.createInstance(N$,this.editor),this._selectors.register({priority:0,select:(f,p,g)=>this._memoryService.select(f,p,g)});const u=so.InsertMode.bindTo(s);u.set(i.getOption(119).insertMode),this._toDispose.add(this.model.onDidTrigger(()=>u.set(i.getOption(119).insertMode))),this.widget=this._toDispose.add(new Woe(Yi(i.getDomNode()),()=>{const f=this._instantiationService.createInstance(vle,this.editor);this._toDispose.add(f),this._toDispose.add(f.onDidSelect(y=>this._insertSuggestion(y,0),this));const p=new Rnn(this.editor,f,this.model,y=>this._insertSuggestion(y,2));this._toDispose.add(p);const g=so.MakesTextEdit.bindTo(this._contextKeyService),m=so.HasInsertAndReplaceRange.bindTo(this._contextKeyService),v=so.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add(zi(()=>{g.reset(),m.reset(),v.reset()})),this._toDispose.add(f.onDidFocus(({item:y})=>{const b=this.editor.getPosition(),w=y.editStart.column,E=b.column;let A=!0;this.editor.getOption(1)==="smart"&&this.model.state===2&&!y.completion.additionalTextEdits&&!(y.completion.insertTextRules&4)&&E-w===y.completion.insertText.length&&(A=this.editor.getModel().getValueInRange({startLineNumber:b.lineNumber,startColumn:w,endLineNumber:b.lineNumber,endColumn:E})!==y.completion.insertText),g.set(A),m.set(!mt.equals(y.editInsertEnd,y.editReplaceEnd)),v.set(!!y.provider.resolveCompletionItem||!!y.completion.documentation||y.completion.detail!==y.completion.label)})),this._toDispose.add(f.onDetailsKeyDown(y=>{if(y.toKeyCodeChord().equals(new AL(!0,!1,!1,!1,33))||xo&&y.toKeyCodeChord().equals(new AL(!1,!1,!1,!0,33))){y.stopPropagation();return}y.toKeyCodeChord().isModifierKey()||this.editor.focus()})),f})),this._overtypingCapturer=this._toDispose.add(new Woe(Yi(i.getDomNode()),()=>this._toDispose.add(new Vnn(this.editor,this.model)))),this._alternatives=this._toDispose.add(new Woe(Yi(i.getDomNode()),()=>this._toDispose.add(new WO(this.editor,this._contextKeyService)))),this._toDispose.add(a.createInstance(L$,i)),this._toDispose.add(this.model.onDidTrigger(f=>{this.widget.value.showTriggered(f.auto,f.shy?250:50),this._lineSuffix.value=new V_t(this.editor.getModel(),f.position)})),this._toDispose.add(this.model.onDidSuggest(f=>{if(f.triggerOptions.shy)return;let p=-1;for(const m of this._selectors.itemsOrderedByPriorityDesc)if(p=m.select(this.editor.getModel(),this.editor.getPosition(),f.completionModel.items),p!==-1)break;if(p===-1&&(p=0),this.model.state===0)return;let g=!1;if(f.triggerOptions.auto){const m=this.editor.getOption(119);m.selectionMode==="never"||m.selectionMode==="always"?g=m.selectionMode==="never":m.selectionMode==="whenTriggerCharacter"?g=f.triggerOptions.triggerKind!==1:m.selectionMode==="whenQuickSuggestion"&&(g=f.triggerOptions.triggerKind===1&&!f.triggerOptions.refilter)}this.widget.value.showSuggestions(f.completionModel,p,f.isFrozen,f.triggerOptions.auto,g)})),this._toDispose.add(this.model.onDidCancel(f=>{f.retrigger||this.widget.value.hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(()=>{z_t||(this.model.cancel(),this.model.clear())}));const d=so.AcceptSuggestionsOnEnter.bindTo(s),h=()=>{const f=this.editor.getOption(1);d.set(f==="on"||f==="smart")};this._toDispose.add(this.editor.onDidChangeConfiguration(()=>h())),h()}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose(),this._onWillInsertSuggestItem.dispose()}_insertSuggestion(i,r){if(!i||!i.item){this._alternatives.value.reset(),this.model.cancel(),this.model.clear();return}if(!this.editor.hasModel())return;const o=sp.get(this.editor);if(!o)return;this._onWillInsertSuggestItem.fire({item:i.item});const s=this.editor.getModel(),a=s.getAlternativeVersionId(),{item:l}=i,c=[],u=new bl;r&1||this.editor.pushUndoStop();const d=this.getOverwriteInfo(l,!!(r&8));this._memoryService.memorize(s,this.editor.getPosition(),l);const h=l.isResolved;let f=-1,p=-1;if(Array.isArray(l.completion.additionalTextEdits)){this.model.cancel();const m=VD.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",l.completion.additionalTextEdits.map(v=>{let y=Re.lift(v.range);if(y.startLineNumber===l.position.lineNumber&&y.startColumn>l.position.column){const b=this.editor.getPosition().column-l.position.column,w=b,E=Re.spansMultipleLines(y)?0:b;y=new Re(y.startLineNumber,y.startColumn+w,y.endLineNumber,y.endColumn+E)}return pl.replaceMove(y,v.text)})),m.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!h){const m=new Ah;let v;const y=s.onDidChangeContent(A=>{if(A.isFlush){u.cancel(),y.dispose();return}for(const D of A.changes){const T=Re.getEndPosition(D.range);(!v||mt.isBefore(T,v))&&(v=T)}}),b=r;r|=2;let w=!1;const E=this.editor.onWillType(()=>{E.dispose(),w=!0,b&2||this.editor.pushUndoStop()});c.push(l.resolve(u.token).then(()=>{if(!l.completion.additionalTextEdits||u.token.isCancellationRequested)return;if(v&&l.completion.additionalTextEdits.some(D=>mt.isBefore(v,Re.getStartPosition(D.range))))return!1;w&&this.editor.pushUndoStop();const A=VD.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",l.completion.additionalTextEdits.map(D=>pl.replaceMove(Re.lift(D.range),D.text))),A.restoreRelativeVerticalPositionOfCursor(this.editor),(w||!(b&2))&&this.editor.pushUndoStop(),!0}).then(A=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",m.elapsed(),A),p=A===!0?1:A===!1?0:-2}).finally(()=>{y.dispose(),E.dispose()}))}let{insertText:g}=l.completion;if(l.completion.insertTextRules&4||(g=BL.escape(g)),this.model.cancel(),o.insert(g,{overwriteBefore:d.overwriteBefore,overwriteAfter:d.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(l.completion.insertTextRules&1),clipboardText:i.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),r&2||this.editor.pushUndoStop(),l.completion.command)if(l.completion.command.id===oAe.id)this.model.trigger({auto:!0,retrigger:!0});else{const m=new Ah;c.push(this._commandService.executeCommand(l.completion.command.id,...l.completion.command.arguments?[...l.completion.command.arguments]:[]).catch(v=>{l.completion.extensionId?Sc(v):Mr(v)}).finally(()=>{f=m.elapsed()}))}r&4&&this._alternatives.value.set(i,m=>{for(u.cancel();s.canUndo();){a!==s.getAlternativeVersionId()&&s.undo(),this._insertSuggestion(m,3|(r&8?8:0));break}}),this._alertCompletionItem(l),Promise.all(c).finally(()=>{this._reportSuggestionAcceptedTelemetry(l,s,h,f,p,i.index,i.model.items),this.model.clear(),u.dispose()})}_reportSuggestionAcceptedTelemetry(i,r,o,s,a,l,c){if(Math.floor(Math.random()*100)===0)return;const u=new Map;for(let p=0;p<Math.min(30,c.length);p++){const g=c[p].textLabel;u.has(g)?u.get(g).push(p):u.set(g,[p])}const d=u.get(i.textLabel),f=d&&d.length>1?d[0]:-1;this._telemetryService.publicLog2("suggest.acceptedSuggestion",{extensionId:i.extensionId?.value??"unknown",providerId:i.provider._debugDisplayName??"unknown",kind:i.completion.kind,basenameHash:Rpe(E0(r.uri)).toString(16),languageId:r.getLanguageId(),fileExtension:Y$t(r.uri),resolveInfo:i.provider.resolveCompletionItem?o?1:0:-1,resolveDuration:i.resolveDuration,commandDuration:s,additionalEditsAsync:a,index:l,firstIndex:f})}getOverwriteInfo(i,r){ns(this.editor.hasModel());let o=this.editor.getOption(119).insertMode==="replace";r&&(o=!o);const s=i.position.column-i.editStart.column,a=(o?i.editReplaceEnd.column:i.editInsertEnd.column)-i.position.column,l=this.editor.getPosition().column-i.position.column,c=this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0;return{overwriteBefore:s+l,overwriteAfter:a+c}}_alertCompletionItem(i){if(Sp(i.completion.additionalTextEdits)){const r=R("aria.alert.snippet","Accepting '{0}' made {1} additional edits",i.textLabel,i.completion.additionalTextEdits.length);mg(r)}}triggerSuggest(i,r,o){this.editor.hasModel()&&(this.model.trigger({auto:r??!1,completionOptions:{providerFilter:i,kindFilter:o?new Set:void 0}}),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(i){if(!this.editor.hasModel())return;const r=this.editor.getPosition(),o=()=>{r.equals(this.editor.getPosition())&&this._commandService.executeCommand(i.fallback)},s=a=>{if(a.completion.insertTextRules&4||a.completion.additionalTextEdits)return!0;const l=this.editor.getPosition(),c=a.editStart.column,u=l.column;return u-c!==a.completion.insertText.length?!0:this.editor.getModel().getValueInRange({startLineNumber:l.lineNumber,startColumn:c,endLineNumber:l.lineNumber,endColumn:u})!==a.completion.insertText};On.once(this.model.onDidTrigger)(a=>{const l=[];On.any(this.model.onDidTrigger,this.model.onDidCancel)(()=>{xa(l),o()},void 0,l),this.model.onDidSuggest(({completionModel:c})=>{if(xa(l),c.items.length===0){o();return}const u=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),c.items),d=c.items[u];if(!s(d)){o();return}this.editor.pushUndoStop(),this._insertSuggestion({index:u,item:d,model:c},7)},void 0,l)}),this.model.trigger({auto:!1,shy:!0}),this.editor.revealPosition(r,0),this.editor.focus()}acceptSelectedSuggestion(i,r){const o=this.widget.value.getFocusedItem();let s=0;i&&(s|=4),r&&(s|=8),this._insertSuggestion(o,s)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}focusSuggestion(){this.widget.value.focusSelected()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.isInitialized&&this.widget.value.stopForceRenderingAbove()}registerSelector(i){return this._selectors.register(i)}},rAe=e,e.ID="editor.contrib.suggestController",e),xy=rAe=j_t([fM(1,bG),fM(2,Oa),fM(3,ur),fM(4,ji),fM(5,bh),fM(6,uf)],xy),H_t=class{constructor(n){this.prioritySelector=n,this._items=new Array}register(n){if(this._items.indexOf(n)!==-1)throw new Error("Value is already registered");return this._items.push(n),this._items.sort((i,r)=>this.prioritySelector(r)-this.prioritySelector(i)),{dispose:()=>{const i=this._items.indexOf(n);i>=0&&this._items.splice(i,1)}}}get itemsOrderedByPriorityDesc(){return this._items}},oAe=(t=class extends ri{constructor(){super({id:t.id,label:R("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:nn.and(Ge.writable,Ge.hasCompletionItemProvider,so.Visible.toNegated()),kbOpts:{kbExpr:Ge.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(i,r,o){const s=xy.get(r);if(!s)return;let a;o&&typeof o=="object"&&o.auto===!0&&(a=!0),s.triggerSuggest(void 0,a,void 0)}},t.id="editor.action.triggerSuggest",t),qo(xy.ID,xy,2),yn(oAe),Lm=190,np=Hd.bindToContribution(xy.get),$n(new np({id:"acceptSelectedSuggestion",precondition:nn.and(so.Visible,so.HasFocusedSuggestion),handler(n){n.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:nn.and(so.Visible,Ge.textInputFocus),weight:Lm},{primary:3,kbExpr:nn.and(so.Visible,Ge.textInputFocus,so.AcceptSuggestionsOnEnter,so.MakesTextEdit),weight:Lm}],menuOpts:[{menuId:zA,title:R("accept.insert","Insert"),group:"left",order:1,when:so.HasInsertAndReplaceRange.toNegated()},{menuId:zA,title:R("accept.insert","Insert"),group:"left",order:1,when:nn.and(so.HasInsertAndReplaceRange,so.InsertMode.isEqualTo("insert"))},{menuId:zA,title:R("accept.replace","Replace"),group:"left",order:1,when:nn.and(so.HasInsertAndReplaceRange,so.InsertMode.isEqualTo("replace"))}]})),$n(new np({id:"acceptAlternativeSelectedSuggestion",precondition:nn.and(so.Visible,Ge.textInputFocus,so.HasFocusedSuggestion),kbOpts:{weight:Lm,kbExpr:Ge.textInputFocus,primary:1027,secondary:[1026]},handler(n){n.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:zA,group:"left",order:2,when:nn.and(so.HasInsertAndReplaceRange,so.InsertMode.isEqualTo("insert")),title:R("accept.replace","Replace")},{menuId:zA,group:"left",order:2,when:nn.and(so.HasInsertAndReplaceRange,so.InsertMode.isEqualTo("replace")),title:R("accept.insert","Insert")}]})),Ro.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),$n(new np({id:"hideSuggestWidget",precondition:so.Visible,handler:n=>n.cancelSuggestWidget(),kbOpts:{weight:Lm,kbExpr:Ge.textInputFocus,primary:9,secondary:[1033]}})),$n(new np({id:"selectNextSuggestion",precondition:nn.and(so.Visible,nn.or(so.MultipleSuggestions,so.HasFocusedSuggestion.negate())),handler:n=>n.selectNextSuggestion(),kbOpts:{weight:Lm,kbExpr:Ge.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),$n(new np({id:"selectNextPageSuggestion",precondition:nn.and(so.Visible,nn.or(so.MultipleSuggestions,so.HasFocusedSuggestion.negate())),handler:n=>n.selectNextPageSuggestion(),kbOpts:{weight:Lm,kbExpr:Ge.textInputFocus,primary:12,secondary:[2060]}})),$n(new np({id:"selectLastSuggestion",precondition:nn.and(so.Visible,nn.or(so.MultipleSuggestions,so.HasFocusedSuggestion.negate())),handler:n=>n.selectLastSuggestion()})),$n(new np({id:"selectPrevSuggestion",precondition:nn.and(so.Visible,nn.or(so.MultipleSuggestions,so.HasFocusedSuggestion.negate())),handler:n=>n.selectPrevSuggestion(),kbOpts:{weight:Lm,kbExpr:Ge.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),$n(new np({id:"selectPrevPageSuggestion",precondition:nn.and(so.Visible,nn.or(so.MultipleSuggestions,so.HasFocusedSuggestion.negate())),handler:n=>n.selectPrevPageSuggestion(),kbOpts:{weight:Lm,kbExpr:Ge.textInputFocus,primary:11,secondary:[2059]}})),$n(new np({id:"selectFirstSuggestion",precondition:nn.and(so.Visible,nn.or(so.MultipleSuggestions,so.HasFocusedSuggestion.negate())),handler:n=>n.selectFirstSuggestion()})),$n(new np({id:"focusSuggestion",precondition:nn.and(so.Visible,so.HasFocusedSuggestion.negate()),handler:n=>n.focusSuggestion(),kbOpts:{weight:Lm,kbExpr:Ge.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}}})),$n(new np({id:"focusAndAcceptSuggestion",precondition:nn.and(so.Visible,so.HasFocusedSuggestion.negate()),handler:n=>{n.focusSuggestion(),n.acceptSelectedSuggestion(!0,!1)}})),$n(new np({id:"toggleSuggestionDetails",precondition:nn.and(so.Visible,so.HasFocusedSuggestion),handler:n=>n.toggleSuggestionDetails(),kbOpts:{weight:Lm,kbExpr:Ge.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:zA,group:"right",order:1,when:nn.and(so.DetailsVisible,so.CanResolve),title:R("detail.more","Show Less")},{menuId:zA,group:"right",order:1,when:nn.and(so.DetailsVisible.toNegated(),so.CanResolve),title:R("detail.less","Show More")}]})),$n(new np({id:"toggleExplainMode",precondition:so.Visible,handler:n=>n.toggleExplainMode(),kbOpts:{weight:100,primary:2138}})),$n(new np({id:"toggleSuggestionFocus",precondition:so.Visible,handler:n=>n.toggleSuggestionFocus(),kbOpts:{weight:Lm,kbExpr:Ge.textInputFocus,primary:2570,mac:{primary:778}}})),$n(new np({id:"insertBestCompletion",precondition:nn.and(Ge.textInputFocus,nn.equals("config.editor.tabCompletion","on"),L$.AtEnd,so.Visible.toNegated(),WO.OtherSuggestions.toNegated(),sp.InSnippetMode.toNegated()),handler:(n,i)=>{n.triggerSuggestAndAcceptBest(jd(i)?{fallback:"tab",...i}:{fallback:"tab"})},kbOpts:{weight:Lm,primary:2}})),$n(new np({id:"insertNextSuggestion",precondition:nn.and(Ge.textInputFocus,nn.equals("config.editor.tabCompletion","on"),WO.OtherSuggestions,so.Visible.toNegated(),sp.InSnippetMode.toNegated()),handler:n=>n.acceptNextSuggestion(),kbOpts:{weight:Lm,kbExpr:Ge.textInputFocus,primary:2}})),$n(new np({id:"insertPrevSuggestion",precondition:nn.and(Ge.textInputFocus,nn.equals("config.editor.tabCompletion","on"),WO.OtherSuggestions,so.Visible.toNegated(),sp.InSnippetMode.toNegated()),handler:n=>n.acceptPrevSuggestion(),kbOpts:{weight:Lm,kbExpr:Ge.textInputFocus,primary:1026}})),yn(class extends ri{constructor(){super({id:"editor.action.resetSuggestSize",label:R("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(n,i){xy.get(i)?.resetWidgetSize()}})}});function tXn(e,t){return e===t?!0:!e||!t?!1:e.equals(t)}var Gnn,ene,nXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdaptor.js"(){rr(),Y0(),Un(),Nt(),Hi(),Dn(),mT(),ra(),K$e(),lF(),Mnn(),tqe(),Gnn=class extends St{get selectedItem(){return this._currentSuggestItemInfo}constructor(e,t,n){super(),this.editor=e,this.suggestControllerPreselector=t,this.onWillAccept=n,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this._onDidSelectedItemChange=this._register(new bt),this.onDidSelectedItemChange=this._onDidSelectedItemChange.event,this._register(e.onKeyDown(r=>{r.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))})),this._register(e.onKeyUp(r=>{r.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))}));const i=xy.get(this.editor);if(i){this._register(i.registerSelector({priority:100,select:(s,a,l)=>{const c=this.editor.getModel();if(!c)return-1;const u=this.suggestControllerPreselector(),d=u?CR(u,c):void 0;if(!d)return-1;const h=mt.lift(a),f=l.map((g,m)=>{const v=ene.fromSuggestion(i,c,h,g,this.isShiftKeyPressed),y=CR(v.toSingleTextEdit(),c),b=Lnn(d,y);return{index:m,valid:b,prefixLength:y.text.length,suggestItem:g}}).filter(g=>g&&g.valid&&g.prefixLength>0),p=LHe(f,ug(g=>g.prefixLength,Yy));return p?p.index:-1}}));let r=!1;const o=()=>{r||(r=!0,this._register(i.widget.value.onDidShow(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})),this._register(i.widget.value.onDidHide(()=>{this.isSuggestWidgetVisible=!1,this.update(!1)})),this._register(i.widget.value.onDidFocus(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})))};this._register(On.once(i.model.onDidTrigger)(s=>{o()})),this._register(i.onWillInsertSuggestItem(s=>{const a=this.editor.getPosition(),l=this.editor.getModel();if(!a||!l)return;const c=ene.fromSuggestion(i,l,a,s.item,this.isShiftKeyPressed);this.onWillAccept(c)}))}this.update(this._isActive)}update(e){const t=this.getSuggestItemInfo();(this._isActive!==e||!tXn(this._currentSuggestItemInfo,t))&&(this._isActive=e,this._currentSuggestItemInfo=t,this._onDidSelectedItemChange.fire())}getSuggestItemInfo(){const e=xy.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;const t=e.widget.value.getFocusedItem(),n=this.editor.getPosition(),i=this.editor.getModel();if(!(!t||!n||!i))return ene.fromSuggestion(e,i,n,t.item,this.isShiftKeyPressed)}stopForceRenderingAbove(){xy.get(this.editor)?.stopForceRenderingAbove()}forceRenderingAbove(){xy.get(this.editor)?.forceRenderingAbove()}},ene=class Knn{static fromSuggestion(t,n,i,r,o){let{insertText:s}=r.completion,a=!1;if(r.completion.insertTextRules&4){const c=new BL().parse(s);c.children.length<100&&I$.adjustWhitespace(n,i,!0,c),s=c.toString(),a=!0}const l=t.getOverwriteInfo(r,o);return new Knn(Re.fromPositions(i.delta(0,-l.overwriteBefore),i.delta(0,Math.max(l.overwriteAfter,0))),s,r.completion.kind,a)}constructor(t,n,i,r){this.range=t,this.insertText=n,this.completionItemKind=i,this.isSnippetText=r}equals(t){return this.range.equalsRange(t.range)&&this.insertText===t.insertText&&this.completionItemKind===t.completionItemKind&&this.isSnippetText===t.isSnippetText}toSelectedSuggestionInfo(){return new TVe(this.range,this.insertText,this.completionItemKind,this.isSnippetText)}toSingleTextEdit(){return new wC(this.range,this.insertText)}}}});function iXn(e,t){const n=mo("result",[]),i=[];return t.add(Tr(r=>{const o=e.read(r);Al(s=>{if(o.length!==i.length){i.length=o.length;for(let a=0;a<i.length;a++)i[a]||(i[a]=mo("item",o[a]));n.set([...i],s)}i.forEach((a,l)=>a.set(o[l],s))})})),n}var W_t,PS,sAe,v0,nqe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js"(){var e;wZn(),Ih(),fr(),Ho(),Nt(),xs(),Vv(),vge(),as(),Oge(),HN(),Hi(),Db(),Eo(),O$e(),AZn(),q$e(),R$e(),HZn(),nXn(),bn(),Cm(),rF(),Ks(),sa(),er(),li(),tl(),W_t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},PS=function(t,n){return function(i,r){n(i,r,t)}},v0=(e=class extends St{static get(n){return n.getContribution(sAe.ID)}constructor(n,i,r,o,s,a,l,c,u,d){super(),this.editor=n,this._instantiationService=i,this._contextKeyService=r,this._configurationService=o,this._commandService=s,this._debounceService=a,this._languageFeaturesService=l,this._accessibilitySignalService=c,this._keybindingService=u,this._accessibilityService=d,this._editorObs=dv(this.editor),this._positions=Fi(this,f=>this._editorObs.selections.read(f)?.map(p=>p.getEndPosition())??[new mt(1,1)]),this._suggestWidgetAdaptor=this._register(new Gnn(this.editor,()=>(this._editorObs.forceUpdate(),this.model.get()?.selectedInlineCompletion.get()?.toSingleTextEdit(void 0)),f=>this._editorObs.forceUpdate(p=>{this.model.get()?.handleSuggestAccepted(f)}))),this._suggestWidgetSelectedItem=Bs(this,f=>this._suggestWidgetAdaptor.onDidSelectedItemChange(()=>{this._editorObs.forceUpdate(p=>f(void 0))}),()=>this._suggestWidgetAdaptor.selectedItem),this._enabledInConfig=Bs(this,this.editor.onDidChangeConfiguration,()=>this.editor.getOption(62).enabled),this._isScreenReaderEnabled=Bs(this,this._accessibilityService.onDidChangeScreenReaderOptimized,()=>this._accessibilityService.isScreenReaderOptimized()),this._editorDictationInProgress=Bs(this,this._contextKeyService.onDidChangeContext,()=>this._contextKeyService.getContext(this.editor.getDomNode()).getValue("editorDictation.inProgress")===!0),this._enabled=Fi(this,f=>this._enabledInConfig.read(f)&&(!this._isScreenReaderEnabled.read(f)||!this._editorDictationInProgress.read(f))),this._debounceValue=this._debounceService.for(this._languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this.model=cp(this,f=>{if(this._editorObs.isReadonly.read(f))return;const p=this._editorObs.model.read(f);return p?this._instantiationService.createInstance(fle,p,this._suggestWidgetSelectedItem,this._editorObs.versionId,this._positions,this._debounceValue,Bs(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(119).preview),Bs(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(119).previewMode),Bs(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(62).mode),this._enabled):void 0}).recomputeInitiallyAndOnChange(this._store),this._ghostTexts=Fi(this,f=>this.model.read(f)?.ghostTexts.read(f)??[]),this._stablizedGhostTexts=iXn(this._ghostTexts,this._store),this._ghostTextWidgets=B3n(this,this._stablizedGhostTexts,(f,p)=>p.add(this._instantiationService.createInstance(dle,this.editor,{ghostText:f,minReservedLineCount:Uy(0),targetTextModel:this.model.map(g=>g?.textModel)}))).recomputeInitiallyAndOnChange(this._store),this._playAccessibilitySignal=R7(this),this._fontFamily=Bs(this,this.editor.onDidChangeConfiguration,()=>this.editor.getOption(62).fontFamily),this._register(new h0(this._contextKeyService,this.model)),this._register(y6e(this._editorObs.onDidType,(f,p)=>{this._enabled.get()&&this.model.get()?.trigger()})),this._register(this._commandService.onDidExecuteCommand(f=>{new Set([e8.Tab.id,e8.DeleteLeft.id,e8.DeleteRight.id,N$e,"acceptSelectedSuggestion"]).has(f.commandId)&&n.hasTextFocus()&&this._enabled.get()&&this._editorObs.forceUpdate(g=>{this.model.get()?.trigger(g)})})),this._register(y6e(this._editorObs.selections,(f,p)=>{p.some(g=>g.reason===3||g.source==="api")&&this.model.get()?.stop()})),this._register(this.editor.onDidBlurEditorWidget(()=>{this._contextKeyService.getContextKeyValue("accessibleViewIsShown")||this._configurationService.getValue("editor.inlineSuggest.keepOnBlur")||n.getOption(62).keepOnBlur||jO.dropDownVisible||Al(f=>{this.model.get()?.stop(f)})})),this._register(Tr(f=>{const p=this.model.read(f)?.state.read(f);p?.suggestItem?p.primaryGhostText.lineCount>=2&&this._suggestWidgetAdaptor.forceRenderingAbove():this._suggestWidgetAdaptor.stopForceRenderingAbove()})),this._register(zi(()=>{this._suggestWidgetAdaptor.stopForceRenderingAbove()}));const h=CY(this,(f,p)=>{const m=this.model.read(f)?.state.read(f);return this._suggestWidgetSelectedItem.get()?p:m?.inlineCompletion?.semanticId});this._register(sGn(Fi(f=>(this._playAccessibilitySignal.read(f),h.read(f),{})),async(f,p,g)=>{const m=this.model.get(),v=m?.state.get();if(!v||!m)return;const y=m.textModel.getLineContent(v.primaryGhostText.lineNumber);await FD(50,DRe(g)),await Wqt(this._suggestWidgetSelectedItem,bp,()=>!1,DRe(g)),await this._accessibilitySignalService.playSignal(Py.inlineSuggestion),this.editor.getOption(8)&&this._provideScreenReaderUpdate(v.primaryGhostText.renderForScreenReader(y))})),this._register(new Zae(this.editor,this.model,this._instantiationService)),this._register(_Zn(Fi(f=>{const p=this._fontFamily.read(f);return p===""||p==="default"?"":`
.monaco-editor .ghost-text-decoration,
.monaco-editor .ghost-text-decoration-preview,
.monaco-editor .ghost-text {
	font-family: ${p};
}`}))),this._register(this._configurationService.onDidChangeConfiguration(f=>{f.affectsConfiguration("accessibility.verbosity.inlineCompletions")&&this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})})),this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}playAccessibilitySignal(n){this._playAccessibilitySignal.trigger(n)}_provideScreenReaderUpdate(n){const i=this._contextKeyService.getContextKeyValue("accessibleViewIsShown"),r=this._keybindingService.lookupKeybinding("editor.action.accessibleView");let o;!i&&r&&this.editor.getOption(150)&&(o=R("showAccessibleViewHint","Inspect this in the accessible view ({0})",r.getAriaLabel())),mg(o?n+", "+o:n)}shouldShowHoverAt(n){const i=this.model.get()?.primaryGhostText.get();return i?i.parts.some(r=>n.containsPosition(new mt(i.lineNumber,r.column))):!1}shouldShowHoverAtViewZone(n){return this._ghostTextWidgets.get()[0]?.ownsViewZone(n)??!1}},sAe=e,e.ID="editor.contrib.inlineCompletionsController",e),v0=sAe=W_t([PS(1,ji),PS(2,ur),PS(3,co),PS(4,Oa),PS(5,Mv),PS(6,gi),PS(7,xT),PS(8,Cs),PS(9,pm)],v0)}}),Ynn,Qnn,Znn,Xnn,Jnn,ein,tin,nin,rXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js"(){var e,t,n,i;xs(),qC(),mr(),ls(),O$e(),q$e(),nqe(),Y7(),bn(),ha(),sa(),er(),Ynn=(e=class extends ri{constructor(){super({id:e.ID,label:R("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:nn.and(Ge.writable,h0.inlineSuggestionVisible),kbOpts:{weight:100,primary:606}})}async run(o,s){v0.get(s)?.model.get()?.next()}},e.ID=M$e,e),Qnn=(t=class extends ri{constructor(){super({id:t.ID,label:R("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:nn.and(Ge.writable,h0.inlineSuggestionVisible),kbOpts:{weight:100,primary:604}})}async run(o,s){v0.get(s)?.model.get()?.previous()}},t.ID=P$e,t),Znn=class extends ri{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:R("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:Ge.writable})}async run(r,o){const s=v0.get(o);await Mqt(async a=>{await s?.model.get()?.triggerExplicitly(a),s?.playAccessibilitySignal(a)})}},Xnn=class extends ri{constructor(){super({id:"editor.action.inlineSuggest.acceptNextWord",label:R("action.inlineSuggest.acceptNextWord","Accept Next Word Of Inline Suggestion"),alias:"Accept Next Word Of Inline Suggestion",precondition:nn.and(Ge.writable,h0.inlineSuggestionVisible),kbOpts:{weight:101,primary:2065,kbExpr:nn.and(Ge.writable,h0.inlineSuggestionVisible)},menuOpts:[{menuId:Ti.InlineSuggestionToolbar,title:R("acceptWord","Accept Word"),group:"primary",order:2}]})}async run(r,o){const s=v0.get(o);await s?.model.get()?.acceptNextWord(s.editor)}},Jnn=class extends ri{constructor(){super({id:"editor.action.inlineSuggest.acceptNextLine",label:R("action.inlineSuggest.acceptNextLine","Accept Next Line Of Inline Suggestion"),alias:"Accept Next Line Of Inline Suggestion",precondition:nn.and(Ge.writable,h0.inlineSuggestionVisible),kbOpts:{weight:101},menuOpts:[{menuId:Ti.InlineSuggestionToolbar,title:R("acceptLine","Accept Line"),group:"secondary",order:2}]})}async run(r,o){const s=v0.get(o);await s?.model.get()?.acceptNextLine(s.editor)}},ein=class extends ri{constructor(){super({id:N$e,label:R("action.inlineSuggest.accept","Accept Inline Suggestion"),alias:"Accept Inline Suggestion",precondition:h0.inlineSuggestionVisible,menuOpts:[{menuId:Ti.InlineSuggestionToolbar,title:R("accept","Accept"),group:"primary",order:1}],kbOpts:{primary:2,weight:200,kbExpr:nn.and(h0.inlineSuggestionVisible,Ge.tabMovesFocus.toNegated(),h0.inlineSuggestionHasIndentationLessThanTabSize,so.Visible.toNegated(),Ge.hoverFocused.toNegated())}})}async run(r,o){const s=v0.get(o);s&&(s.model.get()?.accept(s.editor),s.editor.focus())}},tin=(n=class extends ri{constructor(){super({id:n.ID,label:R("action.inlineSuggest.hide","Hide Inline Suggestion"),alias:"Hide Inline Suggestion",precondition:h0.inlineSuggestionVisible,kbOpts:{weight:100,primary:9}})}async run(o,s){const a=v0.get(s);Al(l=>{a?.model.get()?.stop(l)})}},n.ID="editor.action.inlineSuggest.hide",n),nin=(i=class extends pp{constructor(){super({id:i.ID,title:R("action.inlineSuggest.alwaysShowToolbar","Always Show Toolbar"),f1:!1,precondition:void 0,menu:[{id:Ti.InlineSuggestionToolbar,group:"secondary",order:10}],toggled:nn.equals("config.editor.inlineSuggest.showToolbar","always")})}async run(o,s){const a=o.get(co),c=a.getValue("editor.inlineSuggest.showToolbar")==="always"?"onHover":"always";a.updateValue("editor.inlineSuggest.showToolbar",c)}},i.ID="editor.action.inlineSuggest.toggleAlwaysShowToolbar",i)}}),U_t,C4,$_t,yle,oXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js"(){Fn(),Dg(),Nt(),xs(),Dn(),Kd(),Sw(),nqe(),R$e(),RN(),bn(),Cm(),li(),Ag(),_m(),U_t=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},C4=function(e,t){return function(n,i){t(n,i,e)}},$_t=class{constructor(e,t,n){this.owner=e,this.range=t,this.controller=n}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}},yle=class{constructor(t,n,i,r,o,s){this._editor=t,this._languageService=n,this._openerService=i,this.accessibilityService=r,this._instantiationService=o,this._telemetryService=s,this.hoverOrdinal=4}suggestHoverAnchor(t){const n=v0.get(this._editor);if(!n)return null;const i=t.target;if(i.type===8){const r=i.detail;if(n.shouldShowHoverAtViewZone(r.viewZoneId))return new C$(1e3,this,Re.fromPositions(this._editor.getModel().validatePosition(r.positionBefore||r.position)),t.event.posx,t.event.posy,!1)}return i.type===7&&n.shouldShowHoverAt(i.range)?new C$(1e3,this,i.range,t.event.posx,t.event.posy,!1):i.type===6&&i.detail.mightBeForeignElement&&n.shouldShowHoverAt(i.range)?new C$(1e3,this,i.range,t.event.posx,t.event.posy,!1):null}computeSync(t,n){if(this._editor.getOption(62).showToolbar!=="onHover")return[];const i=v0.get(this._editor);return i&&i.shouldShowHoverAt(t.range)?[new $_t(this,t.range,i)]:[]}renderHoverParts(t,n){const i=new Jt,r=n[0];this._telemetryService.publicLog2("inlineCompletionHover.shown"),this.accessibilityService.isScreenReaderOptimized()&&!this._editor.getOption(8)&&i.add(this.renderScreenReaderText(t,r));const o=r.controller.model.get(),s=this._instantiationService.createInstance(jO,this._editor,!1,Uy(null),o.selectedInlineCompletionIndex,o.inlineCompletionsCount,o.activeCommands),a=s.getDomNode();t.fragment.appendChild(a),o.triggerExplicitly(),i.add(s);const l={hoverPart:r,hoverElement:a,dispose(){i.dispose()}};return new jL([l])}renderScreenReaderText(t,n){const i=new Jt,r=In,o=r("div.hover-row.markdown-hover"),s=hn(o,r("div.hover-contents",{"aria-live":"assertive"})),a=i.add(new Lx({editor:this._editor},this._languageService,this._openerService)),l=c=>{i.add(a.onDidRenderAsync(()=>{s.className="hover-contents code-hover-contents",t.onContentsChanged()}));const u=R("inlineSuggestionFollows","Suggestion:"),d=i.add(a.render(new nf().appendText(u).appendCodeblock("text",c)));s.replaceChildren(d.element)};return i.add(Tr(c=>{const u=n.controller.model.read(c)?.primaryGhostText.read(c);if(u){const d=this._editor.getModel().getLineContent(u.lineNumber);l(u.renderForScreenReader(d))}else xh(s)})),t.fragment.appendChild(o),i}},yle=U_t([C4(1,al),C4(2,Eg),C4(3,pm),C4(4,ji),C4(5,uf)],yle)}}),iin,sXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.js"(){iin=class{}}}),P$,rin=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/accessibility/browser/accessibleViewRegistry.js"(){P$=new class{constructor(){this._implementations=[]}register(t){return this._implementations.push(t),{dispose:()=>{const n=this._implementations.indexOf(t);n!==-1&&this._implementations.splice(n,1)}}}getImplementations(){return this._implementations}}}}),aXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js"(){mr(),Sw(),rXn(),oXn(),sXn(),nqe(),rin(),ha(),qo(v0.ID,v0,3),yn(Znn),yn(Ynn),yn(Qnn),yn(Xnn),yn(Jnn),yn(ein),yn(tin),Pa(nin),zL.register(yle),P$.register(new iin)}}),lXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.css"(){}}),q_t,tne,t3,jB,oin=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js"(){var e;fr(),Vi(),Dg(),Nt(),lXn(),WN(),mr(),Dn(),Kd(),Eb(),rme(),K7(),bn(),er(),W$e(),H$e(),Eo(),Ac(),q_t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},tne=function(t,n){return function(i,r){n(i,r,t)}},jB=(e=class{constructor(n,i,r,o){this.textModelResolverService=i,this.languageService=r,this.languageFeaturesService=o,this.toUnhook=new Jt,this.toUnhookForKeyboard=new Jt,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=n,this.linkDecorations=this.editor.createDecorationsCollection();const s=new FY(n);this.toUnhook.add(s),this.toUnhook.add(s.onMouseMoveOrRelevantKeyDown(([a,l])=>{this.startFindDefinitionFromMouse(a,l??void 0)})),this.toUnhook.add(s.onExecute(a=>{this.isEnabled(a)&&this.gotoDefinition(a.target.position,a.hasSideBySideModifier).catch(l=>{Mr(l)}).finally(()=>{this.removeLinkDecorations()})})),this.toUnhook.add(s.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(n){return n.getContribution(t3.ID)}async startFindDefinitionFromCursor(n){await this.startFindDefinition(n),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(i=>{i&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))}startFindDefinitionFromMouse(n,i){if(n.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(n,i)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}const r=n.target.position;this.startFindDefinition(r)}async startFindDefinition(n){this.toUnhookForKeyboard.clear();const i=n?this.editor.getModel()?.getWordAtPosition(n):null;if(!i){this.currentWordAtPosition=null,this.removeLinkDecorations();return}if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return;this.currentWordAtPosition=i;const r=new YUe(this.editor,15);this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=vd(a=>this.findDefinition(n,a));let o;try{o=await this.previousPromise}catch(a){Mr(a);return}if(!o||!o.length||!r.validate(this.editor)){this.removeLinkDecorations();return}const s=o[0].originSelectionRange?Re.lift(o[0].originSelectionRange):new Re(n.lineNumber,i.startColumn,n.lineNumber,i.endColumn);if(o.length>1){let a=s;for(const{originSelectionRange:l}of o)l&&(a=Re.plusRange(a,l));this.addDecoration(a,new nf().appendText(R("multipleResults","Click to show {0} definitions.",o.length)))}else{const a=o[0];if(!a.uri)return;this.textModelResolverService.createModelReference(a.uri).then(l=>{if(!l.object||!l.object.textEditorModel){l.dispose();return}const{object:{textEditorModel:c}}=l,{startLineNumber:u}=a.range;if(u<1||u>c.getLineCount()){l.dispose();return}const d=this.getPreviewValue(c,u,a),h=this.languageService.guessLanguageIdByFilepathOrFirstLine(c.uri);this.addDecoration(s,d?new nf().appendCodeblock(h||"",d):void 0),l.dispose()})}}getPreviewValue(n,i,r){let o=r.range;return o.endLineNumber-o.startLineNumber>=t3.MAX_SOURCE_PREVIEW_LINES&&(o=this.getPreviewRangeBasedOnIndentation(n,i)),this.stripIndentationFromPreviewRange(n,i,o)}stripIndentationFromPreviewRange(n,i,r){let s=n.getLineFirstNonWhitespaceColumn(i);for(let l=i+1;l<r.endLineNumber;l++){const c=n.getLineFirstNonWhitespaceColumn(l);s=Math.min(s,c)}return n.getValueInRange(r).replace(new RegExp(`^\\s{${s-1}}`,"gm"),"").trim()}getPreviewRangeBasedOnIndentation(n,i){const r=n.getLineFirstNonWhitespaceColumn(i),o=Math.min(n.getLineCount(),i+t3.MAX_SOURCE_PREVIEW_LINES);let s=i+1;for(;s<o;s++){const a=n.getLineFirstNonWhitespaceColumn(s);if(r===a)break}return new Re(i,1,s+1,1)}addDecoration(n,i){const r={range:n,options:{description:"goto-definition-link",inlineClassName:"goto-definition-link",hoverMessage:i}};this.linkDecorations.set([r])}removeLinkDecorations(){this.linkDecorations.clear()}isEnabled(n,i){return this.editor.hasModel()&&n.isLeftClick&&n.isNoneOrSingleMouseDown&&n.target.type===6&&!(n.target.detail.injectedText?.options instanceof Q6)&&(n.hasTriggerModifier||(i?i.keyCodeIsTriggerKey:!1))&&this.languageFeaturesService.definitionProvider.has(this.editor.getModel())}findDefinition(n,i){const r=this.editor.getModel();return r?vG(this.languageFeaturesService.definitionProvider,r,n,!1,i):Promise.resolve(null)}gotoDefinition(n,i){return this.editor.setPosition(n),this.editor.invokeWithinContext(r=>{const o=!i&&this.editor.getOption(89)&&!this.isInPeekEditor(r);return new b6({openToSide:i,openInPeek:o,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(r)})}isInPeekEditor(n){const i=n.get(ur);return im.inPeekEditor.getValue(i)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}},t3=e,e.ID="editor.contrib.gotodefinitionatposition",e.MAX_SOURCE_PREVIEW_LINES=8,e),jB=t3=q_t([tne(1,dg),tne(2,al),tne(3,gi)],jB),qo(jB.ID,jB,2)}}),aAe,n3,lAe,nne,D8e,ine,cXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoError/browser/markerNavigationService.js"(){rr(),Un(),Nt(),_b(),Ki(),ss(),Dn(),vf(),li(),CT(),sa(),aAe=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},n3=function(e,t){return function(n,i){t(n,i,e)}},lAe=class{constructor(e,t,n){this.marker=e,this.index=t,this.total=n}},nne=class{constructor(t,n,i){this._markerService=n,this._configService=i,this._onDidChange=new bt,this.onDidChange=this._onDidChange.event,this._dispoables=new Jt,this._markers=[],this._nextIdx=-1,Ui.isUri(t)?this._resourceFilter=a=>a.toString()===t.toString():t&&(this._resourceFilter=t);const r=this._configService.getValue("problems.sortOrder"),o=(a,l)=>{let c=Nq(a.resource.toString(),l.resource.toString());return c===0&&(r==="position"?c=Re.compareRangesUsingStarts(a,l)||tc.compare(a.severity,l.severity):c=tc.compare(a.severity,l.severity)||Re.compareRangesUsingStarts(a,l)),c},s=()=>{this._markers=this._markerService.read({resource:Ui.isUri(t)?t:void 0,severities:tc.Error|tc.Warning|tc.Info}),typeof t=="function"&&(this._markers=this._markers.filter(a=>this._resourceFilter(a.resource))),this._markers.sort(o)};s(),this._dispoables.add(n.onMarkerChanged(a=>{(!this._resourceFilter||a.some(l=>this._resourceFilter(l)))&&(s(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(t){return!this._resourceFilter&&!t?!0:!this._resourceFilter||!t?!1:this._resourceFilter(t)}get selected(){const t=this._markers[this._nextIdx];return t&&new lAe(t,this._nextIdx+1,this._markers.length)}_initIdx(t,n,i){let r=!1,o=this._markers.findIndex(s=>s.resource.toString()===t.uri.toString());o<0&&(o=Hq(this._markers,{resource:t.uri},(s,a)=>Nq(s.resource.toString(),a.resource.toString())),o<0&&(o=~o));for(let s=o;s<this._markers.length;s++){let a=Re.lift(this._markers[s]);if(a.isEmpty()){const l=t.getWordAtPosition(a.getStartPosition());l&&(a=new Re(a.startLineNumber,l.startColumn,a.startLineNumber,l.endColumn))}if(n&&(a.containsPosition(n)||n.isBeforeOrEqual(a.getStartPosition()))){this._nextIdx=s,r=!0;break}if(this._markers[s].resource.toString()!==t.uri.toString())break}r||(this._nextIdx=i?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)}resetIndex(){this._nextIdx=-1}move(t,n,i){if(this._markers.length===0)return!1;const r=this._nextIdx;return this._nextIdx===-1?this._initIdx(n,i,t):t?this._nextIdx=(this._nextIdx+1)%this._markers.length:t||(this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length),r!==this._nextIdx}find(t,n){let i=this._markers.findIndex(r=>r.resource.toString()===t.toString());if(!(i<0)){for(;i<this._markers.length;i++)if(Re.containsPosition(this._markers[i],n))return new lAe(this._markers[i],i+1,this._markers.length)}}},nne=aAe([n3(1,xC),n3(2,co)],nne),D8e=Ao("IMarkerNavigationService"),ine=class{constructor(t,n){this._markerService=t,this._configService=n,this._provider=new yp}getMarkerList(t){for(const n of this._provider){const i=n.getMarkerList(t);if(i)return i}return new nne(t,this._markerService,this._configService)}},ine=aAe([n3(0,xC),n3(1,co)],ine),Oo(D8e,ine,1)}}),uXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoError/browser/media/gotoErrorWidget.css"(){}}),dXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/severityIcon/browser/media/severityIcon.css"(){}}),T8e,hXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/severityIcon/browser/severityIcon.js"(){dXn(),ia(),Ra(),NN(),(function(e){function t(n){switch(n){case yc.Ignore:return"severity-ignore "+lr.asClassName(An.info);case yc.Info:return lr.asClassName(An.info);case yc.Warning:return lr.asClassName(An.warning);case yc.Error:return lr.asClassName(An.error);default:return""}}e.className=t})(T8e||(T8e={}))}}),G_t,pM,cAe,K_t,f8,uAe,dAe,hAe,rne,Y_t,i3,Q_t,one,Z_t,X_t,fXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js"(){var e;Fn(),vw(),rr(),ql(),Un(),Nt(),bf(),Ki(),uXn(),Dn(),K7(),bn(),jN(),ha(),er(),li(),gY(),CT(),Ag(),hXn(),ll(),Ys(),G_t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},pM=function(t,n){return function(i,r){n(i,r,t)}},K_t=class{constructor(t,n,i,r,o){this._openerService=r,this._labelService=o,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new Jt,this._editor=n;const s=document.createElement("div");s.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),s.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),s.appendChild(this._relatedBlock),this._disposables.add(Il(this._relatedBlock,"click",a=>{a.preventDefault();const l=this._relatedDiagnostics.get(a.target);l&&i(l)})),this._scrollable=new KHe(s,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),t.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(a=>{s.style.left=`-${a.scrollLeft}px`,s.style.top=`-${a.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){xa(this._disposables)}update(t){const{source:n,message:i,relatedInformation:r,code:o}=t;let s=(n?.length||0)+2;o&&(typeof o=="string"?s+=o.length:s+=o.value.length);const a=Zx(i);this._lines=a.length,this._longestLineLength=0;for(const h of a)this._longestLineLength=Math.max(h.length+s,this._longestLineLength);Sh(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(t)),this._editor.applyFontInfo(this._messageBlock);let l=this._messageBlock;for(const h of a)l=document.createElement("div"),l.innerText=h,h===""&&(l.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(l);if(n||o){const h=document.createElement("span");if(h.classList.add("details"),l.appendChild(h),n){const f=document.createElement("span");f.innerText=n,f.classList.add("source"),h.appendChild(f)}if(o)if(typeof o=="string"){const f=document.createElement("span");f.innerText=`(${o})`,f.classList.add("code"),h.appendChild(f)}else{this._codeLink=In("a.code-link"),this._codeLink.setAttribute("href",`${o.target.toString()}`),this._codeLink.onclick=p=>{this._openerService.open(o.target,{allowCommands:!0}),p.preventDefault(),p.stopPropagation()};const f=hn(this._codeLink,In("span"));f.innerText=o.value,h.appendChild(this._codeLink)}}if(Sh(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Sp(r)){const h=this._relatedBlock.appendChild(document.createElement("div"));h.style.paddingTop=`${Math.floor(this._editor.getOption(67)*.66)}px`,this._lines+=1;for(const f of r){const p=document.createElement("div"),g=document.createElement("a");g.classList.add("filename"),g.innerText=`${this._labelService.getUriBasenameLabel(f.resource)}(${f.startLineNumber}, ${f.startColumn}): `,g.title=this._labelService.getUriLabel(f.resource),this._relatedDiagnostics.set(g,f);const m=document.createElement("span");m.innerText=f.message,p.appendChild(g),p.appendChild(m),this._lines+=1,h.appendChild(p)}}const c=this._editor.getOption(50),u=Math.ceil(c.typicalFullwidthCharacterWidth*this._longestLineLength*.75),d=c.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:u,scrollHeight:d})}layout(t,n){this._scrollable.getDomNode().style.height=`${t}px`,this._scrollable.getDomNode().style.width=`${n}px`,this._scrollable.setScrollDimensions({width:n,height:t})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(t){let n="";switch(t.severity){case tc.Error:n=R("Error","Error");break;case tc.Warning:n=R("Warning","Warning");break;case tc.Info:n=R("Info","Info");break;case tc.Hint:n=R("Hint","Hint");break}let i=R("marker aria","{0} at {1}. ",n,t.startLineNumber+":"+t.startColumn);const r=this._editor.getModel();return r&&t.startLineNumber<=r.getLineCount()&&t.startLineNumber>=1&&(i=`${r.getLineContent(t.startLineNumber)}, ${i}`),i}},f8=(e=class extends x${constructor(n,i,r,o,s,a,l){super(n,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},s),this._themeService=i,this._openerService=r,this._menuService=o,this._contextKeyService=a,this._labelService=l,this._callOnDispose=new Jt,this._onDidSelectRelatedInformation=new bt,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=tc.Warning,this._backgroundColor=rn.white,this._applyTheme(i.getColorTheme()),this._callOnDispose.add(i.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(n){this._backgroundColor=n.getColor(X_t);let i=rne,r=Y_t;this._severity===tc.Warning?(i=i3,r=Q_t):this._severity===tc.Info&&(i=one,r=Z_t);const o=n.getColor(i),s=n.getColor(r);this.style({arrowColor:o,frameColor:o,headerBackgroundColor:s,primaryHeadingColor:n.getColor(z$e),secondaryHeadingColor:n.getColor(V$e)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(n){super._fillHead(n),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun(o=>this.editor.focus()));const i=[],r=this._menuService.getMenuActions(cAe.TitleMenu,this._contextKeyService);yge(r,i),this._actionbarWidget.push(i,{label:!1,icon:!0,index:0})}_fillTitleIcon(n){this._icon=hn(n,In(""))}_fillBody(n){this._parentContainer=n,n.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),n.appendChild(this._container),this._message=new K_t(this._container,this.editor,i=>this._onDidSelectRelatedInformation.fire(i),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(n,i,r){this._container.classList.remove("stale"),this._message.update(n),this._severity=n.severity,this._applyTheme(this._themeService.getColorTheme());const o=Re.lift(n),s=this.editor.getPosition(),a=s&&o.containsPosition(s)?s:o.getStartPosition();super.show(a,this.computeRequiredHeight());const l=this.editor.getModel();if(l){const c=r>1?R("problems","{0} of {1} problems",i,r):R("change","{0} of {1} problem",i,r);this.setTitle(E0(l.uri),c)}this._icon.className=`codicon ${T8e.className(tc.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(a,0),this.editor.focus()}updateMarker(n){this._container.classList.remove("stale"),this._message.update(n)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(n,i){super._doLayoutBody(n,i),this._heightInPixel=n,this._message.layout(n,i),this._container.style.height=`${n}px`}_onWidth(n){this._message.layout(this._heightInPixel,n)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}},cAe=e,e.TitleMenu=new Ti("gotoErrorTitleMenu"),e),f8=cAe=G_t([pM(1,Ru),pM(2,Eg),pM(3,Pv),pM(4,ji),pM(5,ur),pM(6,t2)],f8),uAe=OU(jq,b3t),dAe=OU(Ix,K8),hAe=OU(bC,Y8),rne=Qe("editorMarkerNavigationError.background",{dark:uAe,light:uAe,hcDark:zo,hcLight:zo},R("editorMarkerNavigationError","Editor marker navigation widget error color.")),Y_t=Qe("editorMarkerNavigationError.headerBackground",{dark:ao(rne,.1),light:ao(rne,.1),hcDark:null,hcLight:null},R("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),i3=Qe("editorMarkerNavigationWarning.background",{dark:dAe,light:dAe,hcDark:zo,hcLight:zo},R("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Q_t=Qe("editorMarkerNavigationWarning.headerBackground",{dark:ao(i3,.1),light:ao(i3,.1),hcDark:"#0C141F",hcLight:ao(i3,.2)},R("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),one=Qe("editorMarkerNavigationInfo.background",{dark:hAe,light:hAe,hcDark:zo,hcLight:zo},R("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),Z_t=Qe("editorMarkerNavigationInfo.headerBackground",{dark:ao(one,.1),light:ao(one,.1),hcDark:null,hcLight:null},R("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),X_t=Qe("editorMarkerNavigation.background",By,R("editorMarkerNavigationBackground","Editor marker navigation widget background."))}}),J_t,r3,o3,aI,s3,k8e,ewt,twt,nwt,fAe,iwt,sin=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoError/browser/gotoError.js"(){var e,t,n;ia(),Nt(),mr(),Ec(),Hi(),Dn(),ls(),cXn(),bn(),ha(),er(),li(),X0(),fXn(),J_t=function(i,r,o,s){var a=arguments.length,l=a<3?r:s===null?s=Object.getOwnPropertyDescriptor(r,o):s,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(i,r,o,s);else for(var u=i.length-1;u>=0;u--)(c=i[u])&&(l=(a<3?c(l):a>3?c(r,o,l):c(r,o))||l);return a>3&&l&&Object.defineProperty(r,o,l),l},r3=function(i,r){return function(o,s){r(o,s,i)}},aI=(e=class{static get(r){return r.getContribution(o3.ID)}constructor(r,o,s,a,l){this._markerNavigationService=o,this._contextKeyService=s,this._editorService=a,this._instantiationService=l,this._sessionDispoables=new Jt,this._editor=r,this._widgetVisible=fAe.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(r){if(this._model&&this._model.matches(r))return this._model;let o=!1;return this._model&&(o=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(r),o&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(f8,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(s=>{(!this._model?.selected||!Re.containsPosition(this._model?.selected.marker,s.position))&&this._model?.resetIndex()})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;const s=this._model.find(this._editor.getModel().uri,this._widget.position);s?this._widget.updateMarker(s.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(s=>{this._editorService.openCodeEditor({resource:s.resource,options:{pinned:!0,revealIfOpened:!0,selection:Re.lift(s).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(r=!0){this._cleanUp(),r&&this._editor.focus()}showAtMarker(r){if(this._editor.hasModel()){const o=this._getOrCreateModel(this._editor.getModel().uri);o.resetIndex(),o.move(!0,this._editor.getModel(),new mt(r.startLineNumber,r.startColumn)),o.selected&&this._widget.showAtMarker(o.selected.marker,o.selected.index,o.selected.total)}}async nagivate(r,o){if(this._editor.hasModel()){const s=this._getOrCreateModel(o?void 0:this._editor.getModel().uri);if(s.move(r,this._editor.getModel(),this._editor.getPosition()),!s.selected)return;if(s.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const a=await this._editorService.openCodeEditor({resource:s.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:s.selected.marker}},this._editor);a&&(o3.get(a)?.close(),o3.get(a)?.nagivate(r,o))}else this._widget.showAtMarker(s.selected.marker,s.selected.index,s.selected.total)}}},o3=e,e.ID="editor.contrib.markerController",e),aI=o3=J_t([r3(1,D8e),r3(2,ur),r3(3,Jo),r3(4,ji)],aI),s3=class extends ri{constructor(i,r,o){super(o),this._next=i,this._multiFile=r}async run(i,r){r.hasModel()&&aI.get(r)?.nagivate(this._next,this._multiFile)}},k8e=(t=class extends s3{constructor(){super(!0,!1,{id:t.ID,label:t.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:Ge.focus,primary:578,weight:100},menuOpts:{menuId:f8.TitleMenu,title:t.LABEL,icon:Xa("marker-navigation-next",An.arrowDown,R("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}},t.ID="editor.action.marker.next",t.LABEL=R("markerAction.next.label","Go to Next Problem (Error, Warning, Info)"),t),ewt=(n=class extends s3{constructor(){super(!1,!1,{id:n.ID,label:n.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:Ge.focus,primary:1602,weight:100},menuOpts:{menuId:f8.TitleMenu,title:n.LABEL,icon:Xa("marker-navigation-previous",An.arrowUp,R("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}},n.ID="editor.action.marker.prev",n.LABEL=R("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)"),n),twt=class extends s3{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:R("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:Ge.focus,primary:66,weight:100},menuOpts:{menuId:Ti.MenubarGoMenu,title:R({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}},nwt=class extends s3{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:R("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:Ge.focus,primary:1090,weight:100},menuOpts:{menuId:Ti.MenubarGoMenu,title:R({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}},qo(aI.ID,aI,4),yn(k8e),yn(ewt),yn(twt),yn(nwt),fAe=new Qn("markersNavigationVisible",!1),iwt=Hd.bindToContribution(aI.get),$n(new iwt({id:"closeMarkersNavigation",precondition:fAe,handler:i=>i.close(),kbOpts:{weight:150,kbExpr:Ge.focus,primary:9,secondary:[1033]}}))}}),s1,ain,lin,cin,uin,din,hin,fin,pin,gin,min,vin,yin,pXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverActions.js"(){L$e(),wb(),mr(),Dn(),ls(),oin(),U$e(),ra(),bn(),ome(),(function(e){e.NoAutoFocus="noAutoFocus",e.FocusIfVisible="focusIfVisible",e.AutoFocusImmediately="autoFocusImmediately"})(s1||(s1={})),ain=class extends ri{constructor(){super({id:I$e,label:R({key:"showOrFocusHover",comment:["Label for action that will trigger the showing/focusing of a hover in the editor.","If the hover is not visible, it will show the hover.","This allows for users to show the hover without using the mouse."]},"Show or Focus Hover"),metadata:{description:yr("showOrFocusHoverDescription","Show or focus the editor hover which shows documentation, references, and other content for a symbol at the current cursor position."),args:[{name:"args",schema:{type:"object",properties:{focus:{description:"Controls if and when the hover should take focus upon being triggered by this action.",enum:[s1.NoAutoFocus,s1.FocusIfVisible,s1.AutoFocusImmediately],enumDescriptions:[R("showOrFocusHover.focus.noAutoFocus","The hover will not automatically take focus."),R("showOrFocusHover.focus.focusIfVisible","The hover will take focus only if it is already visible."),R("showOrFocusHover.focus.autoFocusImmediately","The hover will automatically take focus when it appears.")],default:s1.FocusIfVisible}}}}]},alias:"Show or Focus Hover",precondition:void 0,kbOpts:{kbExpr:Ge.editorTextFocus,primary:pu(2089,2087),weight:100}})}run(e,t,n){if(!t.hasModel())return;const i=Lf.get(t);if(!i)return;const r=n?.focus;let o=s1.FocusIfVisible;Object.values(s1).includes(r)?o=r:typeof r=="boolean"&&r&&(o=s1.AutoFocusImmediately);const s=l=>{const c=t.getPosition(),u=new Re(c.lineNumber,c.column,c.lineNumber,c.column);i.showContentHover(u,1,1,l)},a=t.getOption(2)===2;i.isHoverVisible?o!==s1.NoAutoFocus?i.focus():s(a):s(a||o===s1.AutoFocusImmediately)}},lin=class extends ri{constructor(){super({id:utn,label:R({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0,metadata:{description:yr("showDefinitionPreviewHoverDescription","Show the definition preview hover in the editor.")}})}run(e,t){const n=Lf.get(t);if(!n)return;const i=t.getPosition();if(!i)return;const r=new Re(i.lineNumber,i.column,i.lineNumber,i.column),o=jB.get(t);if(!o)return;o.startFindDefinitionFromCursor(i).then(()=>{n.showContentHover(r,1,1,!0)})}},cin=class extends ri{constructor(){super({id:dtn,label:R({key:"scrollUpHover",comment:["Action that allows to scroll up in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Up Hover"),alias:"Scroll Up Hover",precondition:Ge.hoverFocused,kbOpts:{kbExpr:Ge.hoverFocused,primary:16,weight:100},metadata:{description:yr("scrollUpHoverDescription","Scroll up the editor hover.")}})}run(e,t){const n=Lf.get(t);n&&n.scrollUp()}},uin=class extends ri{constructor(){super({id:htn,label:R({key:"scrollDownHover",comment:["Action that allows to scroll down in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Down Hover"),alias:"Scroll Down Hover",precondition:Ge.hoverFocused,kbOpts:{kbExpr:Ge.hoverFocused,primary:18,weight:100},metadata:{description:yr("scrollDownHoverDescription","Scroll down the editor hover.")}})}run(e,t){const n=Lf.get(t);n&&n.scrollDown()}},din=class extends ri{constructor(){super({id:ftn,label:R({key:"scrollLeftHover",comment:["Action that allows to scroll left in the hover widget with the left arrow when the hover widget is focused."]},"Scroll Left Hover"),alias:"Scroll Left Hover",precondition:Ge.hoverFocused,kbOpts:{kbExpr:Ge.hoverFocused,primary:15,weight:100},metadata:{description:yr("scrollLeftHoverDescription","Scroll left the editor hover.")}})}run(e,t){const n=Lf.get(t);n&&n.scrollLeft()}},hin=class extends ri{constructor(){super({id:ptn,label:R({key:"scrollRightHover",comment:["Action that allows to scroll right in the hover widget with the right arrow when the hover widget is focused."]},"Scroll Right Hover"),alias:"Scroll Right Hover",precondition:Ge.hoverFocused,kbOpts:{kbExpr:Ge.hoverFocused,primary:17,weight:100},metadata:{description:yr("scrollRightHoverDescription","Scroll right the editor hover.")}})}run(e,t){const n=Lf.get(t);n&&n.scrollRight()}},fin=class extends ri{constructor(){super({id:gtn,label:R({key:"pageUpHover",comment:["Action that allows to page up in the hover widget with the page up command when the hover widget is focused."]},"Page Up Hover"),alias:"Page Up Hover",precondition:Ge.hoverFocused,kbOpts:{kbExpr:Ge.hoverFocused,primary:11,secondary:[528],weight:100},metadata:{description:yr("pageUpHoverDescription","Page up the editor hover.")}})}run(e,t){const n=Lf.get(t);n&&n.pageUp()}},pin=class extends ri{constructor(){super({id:mtn,label:R({key:"pageDownHover",comment:["Action that allows to page down in the hover widget with the page down command when the hover widget is focused."]},"Page Down Hover"),alias:"Page Down Hover",precondition:Ge.hoverFocused,kbOpts:{kbExpr:Ge.hoverFocused,primary:12,secondary:[530],weight:100},metadata:{description:yr("pageDownHoverDescription","Page down the editor hover.")}})}run(e,t){const n=Lf.get(t);n&&n.pageDown()}},gin=class extends ri{constructor(){super({id:vtn,label:R({key:"goToTopHover",comment:["Action that allows to go to the top of the hover widget with the home command when the hover widget is focused."]},"Go To Top Hover"),alias:"Go To Bottom Hover",precondition:Ge.hoverFocused,kbOpts:{kbExpr:Ge.hoverFocused,primary:14,secondary:[2064],weight:100},metadata:{description:yr("goToTopHoverDescription","Go to the top of the editor hover.")}})}run(e,t){const n=Lf.get(t);n&&n.goToTop()}},min=class extends ri{constructor(){super({id:ytn,label:R({key:"goToBottomHover",comment:["Action that allows to go to the bottom in the hover widget with the end command when the hover widget is focused."]},"Go To Bottom Hover"),alias:"Go To Bottom Hover",precondition:Ge.hoverFocused,kbOpts:{kbExpr:Ge.hoverFocused,primary:13,secondary:[2066],weight:100},metadata:{description:yr("goToBottomHoverDescription","Go to the bottom of the editor hover.")}})}run(e,t){const n=Lf.get(t);n&&n.goToBottom()}},vin=class extends ri{constructor(){super({id:OY,label:btn,alias:"Increase Hover Verbosity Level",precondition:Ge.hoverVisible})}run(e,t,n){const i=Lf.get(t);if(!i)return;const r=n?.index!==void 0?n.index:i.focusedHoverPartIndex();i.updateHoverVerbosityLevel(qm.Increase,r,n?.focus)}},yin=class extends ri{constructor(){super({id:RY,label:_tn,alias:"Decrease Hover Verbosity Level",precondition:Ge.hoverVisible})}run(e,t,n){const i=Lf.get(t);if(!i)return;const r=n?.index!==void 0?n.index:i.focusedHoverPartIndex();Lf.get(t)?.updateHoverVerbosityLevel(qm.Decrease,r,n?.focus)}}}}),rwt,sne,my,owt,pAe,ble,gXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js"(){Fn(),rr(),fr(),Vi(),Nt(),bf(),Dn(),Eo(),IWe(),G7(),D$e(),cF(),sin(),Sw(),bn(),CT(),Ag(),$C(),rwt=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},sne=function(e,t){return function(n,i){t(n,i,e)}},my=In,owt=class{constructor(e,t,n){this.owner=e,this.range=t,this.marker=n}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}},pAe={type:1,filter:{include:Ya.QuickFix},triggerAction:sv.QuickFixHover},ble=class{constructor(t,n,i,r){this._editor=t,this._markerDecorationsService=n,this._openerService=i,this._languageFeaturesService=r,this.hoverOrdinal=1,this.recentMarkerCodeActionsInfo=void 0}computeSync(t,n){if(!this._editor.hasModel()||t.type!==1&&!t.supportsMarkerHover)return[];const i=this._editor.getModel(),r=t.range.startLineNumber,o=i.getLineMaxColumn(r),s=[];for(const a of n){const l=a.range.startLineNumber===r?a.range.startColumn:1,c=a.range.endLineNumber===r?a.range.endColumn:o,u=this._markerDecorationsService.getMarker(i.uri,a);if(!u)continue;const d=new Re(t.range.startLineNumber,l,t.range.startLineNumber,c);s.push(new owt(this,d,u))}return s}renderHoverParts(t,n){if(!n.length)return new jL([]);const i=new Jt,r=[];n.forEach(s=>{const a=this._renderMarkerHover(s);t.fragment.appendChild(a.hoverElement),r.push(a)});const o=n.length===1?n[0]:n.sort((s,a)=>tc.compare(s.marker.severity,a.marker.severity))[0];return this.renderMarkerStatusbar(t,o,i),new jL(r)}_renderMarkerHover(t){const n=new Jt,i=my("div.hover-row"),r=hn(i,my("div.marker.hover-contents")),{source:o,message:s,code:a,relatedInformation:l}=t.marker;this._editor.applyFontInfo(r);const c=hn(r,my("span"));if(c.style.whiteSpace="pre-wrap",c.innerText=s,o||a)if(a&&typeof a!="string"){const d=my("span");if(o){const g=hn(d,my("span"));g.innerText=o}const h=hn(d,my("a.code-link"));h.setAttribute("href",a.target.toString()),n.add(qt(h,"click",g=>{this._openerService.open(a.target,{allowCommands:!0}),g.preventDefault(),g.stopPropagation()}));const f=hn(h,my("span"));f.innerText=a.value;const p=hn(r,d);p.style.opacity="0.6",p.style.paddingLeft="6px"}else{const d=hn(r,my("span"));d.style.opacity="0.6",d.style.paddingLeft="6px",d.innerText=o&&a?`${o}(${a})`:o||`(${a})`}if(Sp(l))for(const{message:d,resource:h,startLineNumber:f,startColumn:p}of l){const g=hn(r,my("div"));g.style.marginTop="8px";const m=hn(g,my("a"));m.innerText=`${E0(h)}(${f}, ${p}): `,m.style.cursor="pointer",n.add(qt(m,"click",y=>{if(y.stopPropagation(),y.preventDefault(),this._openerService){const b={selection:{startLineNumber:f,startColumn:p}};this._openerService.open(h,{fromUserGesture:!0,editorOptions:b}).catch(Mr)}}));const v=hn(g,my("span"));v.innerText=d,this._editor.applyFontInfo(v)}return{hoverPart:t,hoverElement:i,dispose:()=>n.dispose()}}renderMarkerStatusbar(t,n,i){if(n.marker.severity===tc.Error||n.marker.severity===tc.Warning||n.marker.severity===tc.Info){const r=aI.get(this._editor);r&&t.statusBar.addAction({label:R("view problem","View Problem"),commandId:k8e.ID,run:()=>{t.hide(),r.showAtMarker(n.marker),this._editor.focus()}})}if(!this._editor.getOption(92)){const r=t.statusBar.append(my("div"));this.recentMarkerCodeActionsInfo&&(ode.makeKey(this.recentMarkerCodeActionsInfo.marker)===ode.makeKey(n.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(r.textContent=R("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const o=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?St.None:TL(()=>r.textContent=R("checkingForQuickFixes","Checking for quick fixes..."),200,i);r.textContent||(r.textContent=" ");const s=this.getCodeActions(n.marker);i.add(zi(()=>s.cancel())),s.then(a=>{if(o.dispose(),this.recentMarkerCodeActionsInfo={marker:n.marker,hasCodeActions:a.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){a.dispose(),r.textContent=R("noQuickFixes","No quick fixes available");return}r.style.display="none";let l=!1;i.add(zi(()=>{l||a.dispose()})),t.statusBar.addAction({label:R("quick fixes","Quick Fix..."),commandId:Xge,run:c=>{l=!0;const u=wR.get(this._editor),d=_c(c);t.hide(),u?.showCodeActions(pAe,a,{x:d.left,y:d.top,width:d.width,height:d.height})}})},Mr)}}getCodeActions(t){return vd(n=>v6(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new Re(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn),pAe,gx.None,n))}},ble=rwt([sne(1,bge),sne(2,Eg),sne(3,gi)],ble)}}),bin,mXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/marginHoverComputer.js"(){rr(),Dg(),Cd(),bin=class{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}get lane(){return this._laneOrLine}set lane(e){this._laneOrLine=e}constructor(e){this._editor=e,this._lineNumber=-1,this._laneOrLine=tw.Center}computeSync(){const e=r=>({value:r}),t=this._editor.getLineDecorations(this._lineNumber),n=[],i=this._laneOrLine==="lineNo";if(!t)return n;for(const r of t){const o=r.options.glyphMargin?.position??tw.Center;if(!i&&o!==this._laneOrLine)continue;const s=i?r.options.lineNumberHoverMessage:r.options.glyphMarginHoverMessage;!s||o9(s)||n.push(...yHe(s).map(e))}return n}}}}),swt,gAe,mAe,vAe,_le,vXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/marginHoverWidget.js"(){var e;Fn(),Nt(),RN(),Kd(),wtn(),Ag(),dY(),mXn(),tme(),swt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},gAe=function(t,n){return function(i,r){n(i,r,t)}},vAe=In,_le=(e=class extends St{constructor(n,i,r){super(),this._renderDisposeables=this._register(new Jt),this._editor=n,this._isVisible=!1,this._messages=[],this._hover=this._register(new age),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new Lx({editor:this._editor},i,r)),this._computer=new bin(this._editor),this._hoverOperation=this._register(new F$e(this._editor,this._computer)),this._register(this._hoverOperation.onResult(o=>{this._withResult(o.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(o=>{o.hasChanged(50)&&this._updateFont()})),this._register(Il(this._hover.containerDomNode,"mouseleave",o=>{this._onMouseLeave(o)})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return mAe.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(i=>this._editor.applyFontInfo(i))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}showsOrWillShow(n){const i=n.target;return i.type===2&&i.detail.glyphMarginLane?(this._startShowingAt(i.position.lineNumber,i.detail.glyphMarginLane),!0):i.type===3?(this._startShowingAt(i.position.lineNumber,"lineNo"),!0):!1}_startShowingAt(n,i){this._computer.lineNumber===n&&this._computer.lane===i||(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=n,this._computer.lane=i,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(n){this._messages=n,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(n,i){this._renderDisposeables.clear();const r=document.createDocumentFragment();for(const o of i){const s=vAe("div.hover-row.markdown-hover"),a=hn(s,vAe("div.hover-contents")),l=this._renderDisposeables.add(this._markdownRenderer.render(o.value));a.appendChild(l.element),r.appendChild(s)}this._updateContents(r),this._showAt(n)}_updateContents(n){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(n),this._updateFont()}_showAt(n){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const i=this._editor.getLayoutInfo(),r=this._editor.getTopForLineNumber(n),o=this._editor.getScrollTop(),s=this._editor.getOption(67),a=this._hover.containerDomNode.clientHeight,l=r-o-(a-s)/2,c=i.glyphMarginLeft+i.glyphMarginWidth+(this._computer.lane==="lineNo"?i.lineNumbersWidth:0);this._hover.containerDomNode.style.left=`${c}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(l),0)}px`}_onMouseLeave(n){const i=this._editor.getDomNode();(!i||!eme(i,n.x,n.y))&&this.hide()}},mAe=e,e.ID="editor.contrib.modesGlyphHoverWidget",e),_le=mAe=swt([gAe(1,al),gAe(2,Eg)],_le)}}),awt,lwt,ane,M$,yXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/marginHoverController.js"(){var e;Nt(),li(),fr(),tme(),ome(),vXn(),awt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},lwt=function(t,n){return function(i,r){n(i,r,t)}},ane=!1,M$=(e=class extends St{constructor(n,i){super(),this._editor=n,this._instantiationService=i,this.shouldKeepOpenOnEditorMouseMoveOrLeave=!1,this._listenersStore=new Jt,this._hoverState={mouseDown:!1},this._reactToEditorMouseMoveRunner=this._register(new Gs(()=>this._reactToEditorMouseMove(this._mouseMoveEvent),0)),this._hookListeners(),this._register(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(60)&&(this._unhookListeners(),this._hookListeners())}))}_hookListeners(){const n=this._editor.getOption(60);this._hoverSettings={enabled:n.enabled,sticky:n.sticky,hidingDelay:n.hidingDelay},n.enabled?(this._listenersStore.add(this._editor.onMouseDown(i=>this._onEditorMouseDown(i))),this._listenersStore.add(this._editor.onMouseUp(()=>this._onEditorMouseUp())),this._listenersStore.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._listenersStore.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))):(this._listenersStore.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._listenersStore.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))),this._listenersStore.add(this._editor.onMouseLeave(i=>this._onEditorMouseLeave(i))),this._listenersStore.add(this._editor.onDidChangeModel(()=>{this._cancelScheduler(),this._hideWidgets()})),this._listenersStore.add(this._editor.onDidChangeModelContent(()=>this._cancelScheduler())),this._listenersStore.add(this._editor.onDidScrollChange(i=>this._onEditorScrollChanged(i)))}_unhookListeners(){this._listenersStore.clear()}_cancelScheduler(){this._mouseMoveEvent=void 0,this._reactToEditorMouseMoveRunner.cancel()}_onEditorScrollChanged(n){(n.scrollTopChanged||n.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(n){this._hoverState.mouseDown=!0,!this._isMouseOnMarginHoverWidget(n)&&this._hideWidgets()}_isMouseOnMarginHoverWidget(n){const i=this._glyphWidget?.getDomNode();return i?eme(i,n.event.posx,n.event.posy):!1}_onEditorMouseUp(){this._hoverState.mouseDown=!1}_onEditorMouseLeave(n){this.shouldKeepOpenOnEditorMouseMoveOrLeave||(this._cancelScheduler(),this._isMouseOnMarginHoverWidget(n))||ane||this._hideWidgets()}_shouldNotRecomputeCurrentHoverWidget(n){const i=this._hoverSettings.sticky,r=this._isMouseOnMarginHoverWidget(n);return i&&r}_onEditorMouseMove(n){if(this.shouldKeepOpenOnEditorMouseMoveOrLeave)return;if(this._mouseMoveEvent=n,this._shouldNotRecomputeCurrentHoverWidget(n)){this._reactToEditorMouseMoveRunner.cancel();return}this._reactToEditorMouseMove(n)}_reactToEditorMouseMove(n){!n||this._tryShowHoverWidget(n)||ane||this._hideWidgets()}_tryShowHoverWidget(n){return this._getOrCreateGlyphWidget().showsOrWillShow(n)}_onKeyDown(n){this._editor.hasModel()&&(n.keyCode===5||n.keyCode===6||n.keyCode===57||n.keyCode===4||this._hideWidgets())}_hideWidgets(){ane||this._glyphWidget?.hide()}_getOrCreateGlyphWidget(){return this._glyphWidget||(this._glyphWidget=this._instantiationService.createInstance(_le,this._editor)),this._glyphWidget}dispose(){super.dispose(),this._unhookListeners(),this._listenersStore.dispose(),this._glyphWidget?.dispose()}},e.ID="editor.contrib.marginHover",e),M$=awt([lwt(1,ji)],M$)}}),_in,win,Cin,bXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverAccessibleViews.js"(){_in=class{},win=class{},Cin=class{}}}),_Xn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverContribution.js"(){pXn(),mr(),ll(),Ys(),Sw(),ime(),gXn(),U$e(),yXn(),ome(),rin(),bXn(),qo(Lf.ID,Lf,2),qo(M$.ID,M$,2),yn(ain),yn(lin),yn(cin),yn(uin),yn(din),yn(hin),yn(fin),yn(pin),yn(gin),yn(min),yn(vin),yn(yin),zL.register(c8),zL.register(ble),Ab((e,t)=>{const n=e.getColor(rHe);n&&(t.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${n.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${n.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${n.transparent(.5)}; }`))}),P$.register(new _in),P$.register(new win),P$.register(new Cin)}});function Wm(e,t){let n=0;for(let i=0;i<e.length;i++)e.charAt(i)==="	"?n+=t:n++;return n}function O$(e,t,n){e=e<0?0:e;let i="";if(!n){const r=Math.floor(e/t);e=e%t;for(let o=0;o<r;o++)i+="	"}for(let r=0;r<e;r++)i+=" ";return i}var Sin=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/indentation/common/indentUtils.js"(){}});function cwt(e,t,n,i){if(e.getLineCount()===1&&e.getLineMaxColumn(1)===1)return[];const r=t.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;if(!r)return[];const o=new Nge(e,r,t);for(i=Math.min(i,e.getLineCount());n<=i&&o.shouldIgnore(n);)n++;if(n>i-1)return[];const{tabSize:s,indentSize:a,insertSpaces:l}=e.getOptions(),c=(g,m)=>(m=m||1,L0.shiftIndent(g,g.length+m,s,a,l)),u=(g,m)=>(m=m||1,L0.unshiftIndent(g,g.length+m,s,a,l)),d=[],h=e.getLineContent(n);let f=Ca(h),p=f;o.shouldIncrease(n)?(p=c(p),f=c(f)):o.shouldIndentNextLine(n)&&(p=c(p)),n++;for(let g=n;g<=i;g++){if(wXn(e,g))continue;const m=e.getLineContent(g),v=Ca(m),y=p;o.shouldDecrease(g,y)&&(p=u(p),f=u(f)),v!==p&&d.push(pl.replaceMove(new Ii(g,1,g,v.length+1),LWe(p,a,l))),!o.shouldIgnore(g)&&(o.shouldIncrease(g,y)?(f=c(f),p=f):o.shouldIndentNextLine(g,y)?p=c(p):p=f)}return d}function wXn(e,t){return e.tokenization.isCheapToTokenize(t)?e.tokenization.getLineTokens(t).getStandardTokenType(0)===2:!1}var CXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/indentation/common/indentation.js"(){Ki(),IY(),Tb(),NWe(),zs(),TUe()}});function SXn(e,t){const n=i=>WVn(e,i)===2;return n(t.getStartPosition())||n(t.getEndPosition())}function uwt(e,t,n,i){if(e.getLineCount()===1&&e.getLineMaxColumn(1)===1)return;let r="";for(let s=0;s<n;s++)r+=" ";const o=new RegExp(r,"gi");for(let s=1,a=e.getLineCount();s<=a;s++){let l=e.getLineFirstNonWhitespaceColumn(s);if(l===0&&(l=e.getLineMaxColumn(s)),l===1)continue;const c=new Re(s,1,s,l),u=e.getValueInRange(c),d=i?u.replace(/\t/ig,r):u.replace(o,"	");t.addEditOperation(c,d)}}var dwt,hwt,fwt,pwt,lne,gwt,mwt,vwt,ywt,bwt,_wt,wwt,a3,Cwt,Swt,xXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/indentation/browser/indentation.js"(){var e,t,n,i,r,o,s;Nt(),Ki(),mr(),IY(),Dn(),ls(),lu(),Kf(),Sin(),bn(),Hv(),IUe(),CXn(),bw(),dwt=function(a,l,c,u){var d=arguments.length,h=d<3?l:u===null?u=Object.getOwnPropertyDescriptor(l,c):u,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(a,l,c,u);else for(var p=a.length-1;p>=0;p--)(f=a[p])&&(h=(d<3?f(h):d>3?f(l,c,h):f(l,c))||h);return d>3&&h&&Object.defineProperty(l,c,h),h},hwt=function(a,l){return function(c,u){l(c,u,a)}},fwt=(e=class extends ri{constructor(){super({id:e.ID,label:R("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:Ge.writable,metadata:{description:yr("indentationToSpacesDescription","Convert the tab indentation to spaces.")}})}run(l,c){const u=c.getModel();if(!u)return;const d=u.getOptions(),h=c.getSelection();if(!h)return;const f=new Cwt(h,d.tabSize);c.pushUndoStop(),c.executeCommands(this.id,[f]),c.pushUndoStop(),u.updateOptions({insertSpaces:!0})}},e.ID="editor.action.indentationToSpaces",e),pwt=(t=class extends ri{constructor(){super({id:t.ID,label:R("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:Ge.writable,metadata:{description:yr("indentationToTabsDescription","Convert the spaces indentation to tabs.")}})}run(l,c){const u=c.getModel();if(!u)return;const d=u.getOptions(),h=c.getSelection();if(!h)return;const f=new Swt(h,d.tabSize);c.pushUndoStop(),c.executeCommands(this.id,[f]),c.pushUndoStop(),u.updateOptions({insertSpaces:!1})}},t.ID="editor.action.indentationToTabs",t),lne=class extends ri{constructor(a,l,c){super(c),this.insertSpaces=a,this.displaySizeOnly=l}run(a,l){const c=a.get(Z0),u=a.get(Ua),d=l.getModel();if(!d)return;const h=u.getCreationOptions(d.getLanguageId(),d.uri,d.isForSimpleWidget),f=d.getOptions(),p=[1,2,3,4,5,6,7,8].map(m=>({id:m.toString(),label:m.toString(),description:m===h.tabSize&&m===f.tabSize?R("configuredTabSize","Configured Tab Size"):m===h.tabSize?R("defaultTabSize","Default Tab Size"):m===f.tabSize?R("currentTabSize","Current Tab Size"):void 0})),g=Math.min(d.getOptions().tabSize-1,7);setTimeout(()=>{c.pick(p,{placeHolder:R({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:p[g]}).then(m=>{if(m&&d&&!d.isDisposed()){const v=parseInt(m.label,10);this.displaySizeOnly?d.updateOptions({tabSize:v}):d.updateOptions({tabSize:v,indentSize:v,insertSpaces:this.insertSpaces})}})},50)}},gwt=(n=class extends lne{constructor(){super(!1,!1,{id:n.ID,label:R("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0,metadata:{description:yr("indentUsingTabsDescription","Use indentation with tabs.")}})}},n.ID="editor.action.indentUsingTabs",n),mwt=(i=class extends lne{constructor(){super(!0,!1,{id:i.ID,label:R("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0,metadata:{description:yr("indentUsingSpacesDescription","Use indentation with spaces.")}})}},i.ID="editor.action.indentUsingSpaces",i),vwt=(r=class extends lne{constructor(){super(!0,!0,{id:r.ID,label:R("changeTabDisplaySize","Change Tab Display Size"),alias:"Change Tab Display Size",precondition:void 0,metadata:{description:yr("changeTabDisplaySizeDescription","Change the space size equivalent of the tab.")}})}},r.ID="editor.action.changeTabDisplaySize",r),ywt=(o=class extends ri{constructor(){super({id:o.ID,label:R("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0,metadata:{description:yr("detectIndentationDescription","Detect the indentation from content.")}})}run(l,c){const u=l.get(Ua),d=c.getModel();if(!d)return;const h=u.getCreationOptions(d.getLanguageId(),d.uri,d.isForSimpleWidget);d.detectIndentation(h.insertSpaces,h.tabSize)}},o.ID="editor.action.detectIndentation",o),bwt=class extends ri{constructor(){super({id:"editor.action.reindentlines",label:R("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:Ge.writable,metadata:{description:yr("editor.reindentlinesDescription","Reindent the lines of the editor.")}})}run(a,l){const c=a.get(yl),u=l.getModel();if(!u)return;const d=cwt(u,c,1,u.getLineCount());d.length>0&&(l.pushUndoStop(),l.executeEdits(this.id,d),l.pushUndoStop())}},_wt=class extends ri{constructor(){super({id:"editor.action.reindentselectedlines",label:R("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:Ge.writable,metadata:{description:yr("editor.reindentselectedlinesDescription","Reindent the selected lines of the editor.")}})}run(a,l){const c=a.get(yl),u=l.getModel();if(!u)return;const d=l.getSelections();if(d===null)return;const h=[];for(const f of d){let p=f.startLineNumber,g=f.endLineNumber;if(p!==g&&f.endColumn===1&&g--,p===1){if(p===g)continue}else p--;const m=cwt(u,c,p,g);h.push(...m)}h.length>0&&(l.pushUndoStop(),l.executeEdits(this.id,h),l.pushUndoStop())}},wwt=class{constructor(a,l){this._initialSelection=l,this._edits=[],this._selectionId=null;for(const c of a)c.range&&typeof c.text=="string"&&this._edits.push(c)}getEditOperations(a,l){for(const u of this._edits)l.addEditOperation(Re.lift(u.range),u.text);let c=!1;Array.isArray(this._edits)&&this._edits.length===1&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(c=!0,this._selectionId=l.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(c=!0,this._selectionId=l.trackSelection(this._initialSelection,!1))),c||(this._selectionId=l.trackSelection(this._initialSelection))}computeCursorState(a,l){return l.getTrackedSelection(this._selectionId)}},a3=(s=class{constructor(l,c){this.editor=l,this._languageConfigurationService=c,this.callOnDispose=new Jt,this.callOnModel=new Jt,this.callOnDispose.add(l.onDidChangeConfiguration(()=>this.update())),this.callOnDispose.add(l.onDidChangeModel(()=>this.update())),this.callOnDispose.add(l.onDidChangeModelLanguage(()=>this.update()))}update(){this.callOnModel.clear(),!(this.editor.getOption(12)<4||this.editor.getOption(55))&&this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste(({range:l})=>{this.trigger(l)}))}trigger(l){const c=this.editor.getSelections();if(c===null||c.length>1)return;const u=this.editor.getModel();if(!u||this.rangeContainsOnlyWhitespaceCharacters(u,l)||SXn(u,l)||!u.tokenization.isCheapToTokenize(l.getStartPosition().lineNumber))return;const h=this.editor.getOption(12),{tabSize:f,indentSize:p,insertSpaces:g}=u.getOptions(),m=[],v={shiftIndent:E=>L0.shiftIndent(E,E.length+1,f,p,g),unshiftIndent:E=>L0.unshiftIndent(E,E.length+1,f,p,g)};let y=l.startLineNumber;for(;y<=l.endLineNumber;){if(this.shouldIgnoreLine(u,y)){y++;continue}break}if(y>l.endLineNumber)return;let b=u.getLineContent(y);if(!/\S/.test(b.substring(0,l.startColumn-1))){const E=c$(h,u,u.getLanguageId(),y,v,this._languageConfigurationService);if(E!==null){const A=Ca(b),D=Wm(E,f),T=Wm(A,f);if(D!==T){const M=O$(D,f,g);m.push({range:new Re(y,1,y,A.length+1),text:M}),b=M+b.substring(A.length)}else{const M=VQt(u,y,this._languageConfigurationService);if(M===0||M===8)return}}}const w=y;for(;y<l.endLineNumber;){if(!/\S/.test(u.getLineContent(y+1))){y++;continue}break}if(y!==l.endLineNumber){const A=c$(h,{tokenization:{getLineTokens:D=>u.tokenization.getLineTokens(D),getLanguageId:()=>u.getLanguageId(),getLanguageIdAtPosition:(D,T)=>u.getLanguageIdAtPosition(D,T)},getLineContent:D=>D===w?b:u.getLineContent(D)},u.getLanguageId(),y+1,v,this._languageConfigurationService);if(A!==null){const D=Wm(A,f),T=Wm(Ca(u.getLineContent(y+1)),f);if(D!==T){const M=D-T;for(let P=y+1;P<=l.endLineNumber;P++){const F=u.getLineContent(P),N=Ca(F),W=Wm(N,f)+M,J=O$(W,f,g);J!==N&&m.push({range:new Re(P,1,P,N.length+1),text:J})}}}}if(m.length>0){this.editor.pushUndoStop();const E=new wwt(m,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",E),this.editor.pushUndoStop()}}rangeContainsOnlyWhitespaceCharacters(l,c){const u=h=>h.trim().length===0;let d=!0;if(c.startLineNumber===c.endLineNumber){const f=l.getLineContent(c.startLineNumber).substring(c.startColumn-1,c.endColumn-1);d=u(f)}else for(let h=c.startLineNumber;h<=c.endLineNumber;h++){const f=l.getLineContent(h);if(h===c.startLineNumber){const p=f.substring(c.startColumn-1);d=u(p)}else if(h===c.endLineNumber){const p=f.substring(0,c.endColumn-1);d=u(p)}else d=l.getLineFirstNonWhitespaceColumn(h)===0;if(!d)break}return d}shouldIgnoreLine(l,c){l.tokenization.forceTokenization(c);const u=l.getLineFirstNonWhitespaceColumn(c);if(u===0)return!0;const d=l.tokenization.getLineTokens(c);if(d.getCount()>0){const h=d.findTokenIndexAtOffset(u);if(h>=0&&d.getStandardTokenType(h)===1)return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}},s.ID="editor.contrib.autoIndentOnPaste",s),a3=dwt([hwt(1,yl)],a3),Cwt=class{constructor(a,l){this.selection=a,this.tabSize=l,this.selectionId=null}getEditOperations(a,l){this.selectionId=l.trackSelection(this.selection),uwt(a,l,this.tabSize,!0)}computeCursorState(a,l){return l.getTrackedSelection(this.selectionId)}},Swt=class{constructor(a,l){this.selection=a,this.tabSize=l,this.selectionId=null}getEditOperations(a,l){this.selectionId=l.trackSelection(this.selection),uwt(a,l,this.tabSize,!1)}computeCursorState(a,l){return l.getTrackedSelection(this.selectionId)}},qo(a3.ID,a3,2),yn(fwt),yn(pwt),yn(gwt),yn(mwt),yn(vwt),yn(ywt),yn(bwt),yn(_wt)}}),EXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHintsContribution.js"(){mr(),Sw(),Htn(),Wtn(),qo(d8.ID,d8,1),zL.register(D$)}}),xin,AXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplaceCommand.js"(){zs(),xin=class{constructor(e,t,n){this._editRange=e,this._originalSelection=t,this._text=n}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new Ii(i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn),i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn)):new Ii(i.endLineNumber,i.endColumn-this._text.length,i.endLineNumber,i.endColumn)}}}}),DXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.css"(){}}),TXn=Ot({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js"(e){var a;fr(),Vi(),WN(),mr(),Dn(),zs(),ls(),Ac(),SE(),bn(),AXn(),DXn();var t=e&&e.__decorate||function(l,c,u,d){var h=arguments.length,f=h<3?c:d===null?d=Object.getOwnPropertyDescriptor(c,u):d,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(l,c,u,d);else for(var g=l.length-1;g>=0;g--)(p=l[g])&&(f=(h<3?p(f):h>3?p(c,u,f):p(c,u))||f);return h>3&&f&&Object.defineProperty(c,u,f),f},n=e&&e.__param||function(l,c){return function(u,d){c(u,d,l)}},i,r=(a=class{static get(c){return c.getContribution(i.ID)}constructor(c,u){this.editor=c,this.editorWorkerService=u,this.decorations=this.editor.createDecorationsCollection()}dispose(){}run(c,u){this.currentRequest?.cancel();const d=this.editor.getSelection(),h=this.editor.getModel();if(!h||!d)return;let f=d;if(f.startLineNumber!==f.endLineNumber)return;const p=new YUe(this.editor,5),g=h.uri;return this.editorWorkerService.canNavigateValueSet(g)?(this.currentRequest=vd(m=>this.editorWorkerService.navigateValueSet(g,f,u)),this.currentRequest.then(m=>{if(!m||!m.range||!m.value||!p.validate(this.editor))return;const v=Re.lift(m.range);let y=m.range;const b=m.value.length-(f.endColumn-f.startColumn);y={startLineNumber:y.startLineNumber,startColumn:y.startColumn,endLineNumber:y.endLineNumber,endColumn:y.startColumn+m.value.length},b>1&&(f=new Ii(f.startLineNumber,f.startColumn,f.endLineNumber,f.endColumn+b-1));const w=new xin(v,f,m.value);this.editor.pushUndoStop(),this.editor.executeCommand(c,w),this.editor.pushUndoStop(),this.decorations.set([{range:y,options:i.DECORATION}]),this.decorationRemover?.cancel(),this.decorationRemover=FD(350),this.decorationRemover.then(()=>this.decorations.clear()).catch(Mr)}).catch(Mr)):Promise.resolve(void 0)}},i=a,a.ID="editor.contrib.inPlaceReplaceController",a.DECORATION=Gr.register({description:"in-place-replace",className:"valueSetReplacement"}),a);r=i=t([n(1,fg)],r);var o=class extends ri{constructor(){super({id:"editor.action.inPlaceReplace.up",label:R("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:Ge.writable,kbOpts:{kbExpr:Ge.editorTextFocus,primary:3159,weight:100}})}run(l,c){const u=r.get(c);return u?u.run(this.id,!1):Promise.resolve(void 0)}},s=class extends ri{constructor(){super({id:"editor.action.inPlaceReplace.down",label:R("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:Ge.writable,kbOpts:{kbExpr:Ge.editorTextFocus,primary:3161,weight:100}})}run(l,c){const u=r.get(c);return u?u.run(this.id,!0):Promise.resolve(void 0)}};qo(r.ID,r,4),yn(o),yn(s)}}),xwt,kXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js"(){mr(),AUe(),ls(),bn(),xwt=class extends ri{constructor(){super({id:"expandLineSelection",label:R("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:Ge.textInputFocus,primary:2090}})}run(e,t,n){if(n=n||{},!t.hasModel())return;const i=t._getViewModel();i.model.pushStackElement(),i.setCursorStates(n.source,3,Nd.expandLineSelection(i,i.getCursorStates())),i.revealAllCursors(n.source,!0)}},yn(xwt)}});function IXn(e,t,n){t.sort((a,l)=>a.lineNumber===l.lineNumber?a.column-l.column:a.lineNumber-l.lineNumber);for(let a=t.length-2;a>=0;a--)t[a].lineNumber===t[a+1].lineNumber&&t.splice(a,1);const i=[];let r=0,o=0;const s=t.length;for(let a=1,l=e.getLineCount();a<=l;a++){const c=e.getLineContent(a),u=c.length+1;let d=0;if(o<s&&t[o].lineNumber===a&&(d=t[o].column,o++,d===u)||c.length===0)continue;const h=iC(c);let f=0;if(h===-1)f=1;else if(h!==c.length-1)f=h+2;else continue;if(!n){if(!e.tokenization.hasAccurateTokensForLine(a))continue;const p=e.tokenization.getLineTokens(a),g=p.getStandardTokenType(p.findTokenIndexAtOffset(f));if(g===2||g===3)continue}f=Math.max(d,f),i[r++]=pl.delete(new Re(a,f,a,u))}return i}var Ein,LXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/commands/trimTrailingWhitespaceCommand.js"(){Ki(),Tb(),Dn(),Ein=class{constructor(e,t,n){this._selection=e,this._cursors=t,this._selectionId=null,this._trimInRegexesAndStrings=n}getEditOperations(e,t){const n=IXn(e,this._cursors,this._trimInRegexesAndStrings);for(let i=0,r=n.length;i<r;i++){const o=n[i];t.addEditOperation(o.range,o.text)}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}}}),I8e,NXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/linesOperations/browser/copyLinesCommand.js"(){Dn(),zs(),I8e=class{constructor(e,t,n){this._selection=e,this._isCopyingDown=t,this._noop=n||!1,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}getEditOperations(e,t){let n=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,n.startLineNumber<n.endLineNumber&&n.endColumn===1&&(this._endLineNumberDelta=1,n=n.setEndPosition(n.endLineNumber-1,e.getLineMaxColumn(n.endLineNumber-1)));const i=[];for(let o=n.startLineNumber;o<=n.endLineNumber;o++)i.push(e.getLineContent(o));const r=i.join(`
`);r===""&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._noop?t.addEditOperation(new Re(n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber+1,1),n.endLineNumber===e.getLineCount()?"":`
`):this._isCopyingDown?t.addEditOperation(new Re(n.startLineNumber,1,n.startLineNumber,1),r+`
`):t.addEditOperation(new Re(n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),`
`+r),this._selectionId=t.trackSelection(n),this._selectionDirection=this._selection.getDirection()}computeCursorState(e,t){let n=t.getTrackedSelection(this._selectionId);if(this._startLineNumberDelta!==0||this._endLineNumberDelta!==0){let i=n.startLineNumber,r=n.startColumn,o=n.endLineNumber,s=n.endColumn;this._startLineNumberDelta!==0&&(i=i+this._startLineNumberDelta,r=1),this._endLineNumberDelta!==0&&(o=o+this._endLineNumberDelta,s=1),n=Ii.createWithDirection(i,r,o,s,this._selectionDirection)}return n}}}}),Ewt,Awt,wle,PXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/linesOperations/browser/moveLinesCommand.js"(){Ki(),IY(),Dn(),zs(),J2(),lu(),Sin(),IUe(),kUe(),Ewt=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},Awt=function(e,t){return function(n,i){t(n,i,e)}},wle=class{constructor(t,n,i,r){this._languageConfigurationService=r,this._selection=t,this._isMovingDown=n,this._autoIndent=i,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(t,n){const i=()=>t.getLanguageId(),r=(d,h)=>t.getLanguageIdAtPosition(d,h),o=t.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===o){this._selectionId=n.trackSelection(this._selection);return}if(!this._isMovingDown&&this._selection.startLineNumber===1){this._selectionId=n.trackSelection(this._selection);return}this._moveEndPositionDown=!1;let s=this._selection;s.startLineNumber<s.endLineNumber&&s.endColumn===1&&(this._moveEndPositionDown=!0,s=s.setEndPosition(s.endLineNumber-1,t.getLineMaxColumn(s.endLineNumber-1)));const{tabSize:a,indentSize:l,insertSpaces:c}=t.getOptions(),u=this.buildIndentConverter(a,l,c);if(s.startLineNumber===s.endLineNumber&&t.getLineMaxColumn(s.startLineNumber)===1){const d=s.startLineNumber,h=this._isMovingDown?d+1:d-1;t.getLineMaxColumn(h)===1?n.addEditOperation(new Re(1,1,1,1),null):(n.addEditOperation(new Re(d,1,d,1),t.getLineContent(h)),n.addEditOperation(new Re(h,1,h,t.getLineMaxColumn(h)),null)),s=new Ii(h,1,h,1)}else{let d,h;if(this._isMovingDown){d=s.endLineNumber+1,h=t.getLineContent(d),n.addEditOperation(new Re(d-1,t.getLineMaxColumn(d-1),d,t.getLineMaxColumn(d)),null);let f=h;if(this.shouldAutoIndent(t,s)){const p=this.matchEnterRule(t,u,a,d,s.startLineNumber-1);if(p!==null){const m=Ca(t.getLineContent(d)),v=p+Wm(m,a);f=O$(v,a,c)+this.trimStart(h)}else{const m={tokenization:{getLineTokens:y=>y===s.startLineNumber?t.tokenization.getLineTokens(d):t.tokenization.getLineTokens(y),getLanguageId:i,getLanguageIdAtPosition:r},getLineContent:y=>y===s.startLineNumber?t.getLineContent(d):t.getLineContent(y)},v=c$(this._autoIndent,m,t.getLanguageIdAtPosition(d,1),s.startLineNumber,u,this._languageConfigurationService);if(v!==null){const y=Ca(t.getLineContent(d)),b=Wm(v,a),w=Wm(y,a);b!==w&&(f=O$(b,a,c)+this.trimStart(h))}}n.addEditOperation(new Re(s.startLineNumber,1,s.startLineNumber,1),f+`
`);const g=this.matchEnterRuleMovingDown(t,u,a,s.startLineNumber,d,f);if(g!==null)g!==0&&this.getIndentEditsOfMovingBlock(t,n,s,a,c,g);else{const m={tokenization:{getLineTokens:y=>y===s.startLineNumber?t.tokenization.getLineTokens(d):y>=s.startLineNumber+1&&y<=s.endLineNumber+1?t.tokenization.getLineTokens(y-1):t.tokenization.getLineTokens(y),getLanguageId:i,getLanguageIdAtPosition:r},getLineContent:y=>y===s.startLineNumber?f:y>=s.startLineNumber+1&&y<=s.endLineNumber+1?t.getLineContent(y-1):t.getLineContent(y)},v=c$(this._autoIndent,m,t.getLanguageIdAtPosition(d,1),s.startLineNumber+1,u,this._languageConfigurationService);if(v!==null){const y=Ca(t.getLineContent(s.startLineNumber)),b=Wm(v,a),w=Wm(y,a);if(b!==w){const E=b-w;this.getIndentEditsOfMovingBlock(t,n,s,a,c,E)}}}}else n.addEditOperation(new Re(s.startLineNumber,1,s.startLineNumber,1),f+`
`)}else if(d=s.startLineNumber-1,h=t.getLineContent(d),n.addEditOperation(new Re(d,1,d+1,1),null),n.addEditOperation(new Re(s.endLineNumber,t.getLineMaxColumn(s.endLineNumber),s.endLineNumber,t.getLineMaxColumn(s.endLineNumber)),`
`+h),this.shouldAutoIndent(t,s)){const f={tokenization:{getLineTokens:g=>g===d?t.tokenization.getLineTokens(s.startLineNumber):t.tokenization.getLineTokens(g),getLanguageId:i,getLanguageIdAtPosition:r},getLineContent:g=>g===d?t.getLineContent(s.startLineNumber):t.getLineContent(g)},p=this.matchEnterRule(t,u,a,s.startLineNumber,s.startLineNumber-2);if(p!==null)p!==0&&this.getIndentEditsOfMovingBlock(t,n,s,a,c,p);else{const g=c$(this._autoIndent,f,t.getLanguageIdAtPosition(s.startLineNumber,1),d,u,this._languageConfigurationService);if(g!==null){const m=Ca(t.getLineContent(s.startLineNumber)),v=Wm(g,a),y=Wm(m,a);if(v!==y){const b=v-y;this.getIndentEditsOfMovingBlock(t,n,s,a,c,b)}}}}}this._selectionId=n.trackSelection(s)}buildIndentConverter(t,n,i){return{shiftIndent:r=>L0.shiftIndent(r,r.length+1,t,n,i),unshiftIndent:r=>L0.unshiftIndent(r,r.length+1,t,n,i)}}parseEnterResult(t,n,i,r,o){if(o){let s=o.indentation;o.indentAction===vu.None||o.indentAction===vu.Indent?s=o.indentation+o.appendText:o.indentAction===vu.IndentOutdent?s=o.indentation:o.indentAction===vu.Outdent&&(s=n.unshiftIndent(o.indentation)+o.appendText);const a=t.getLineContent(r);if(this.trimStart(a).indexOf(this.trimStart(s))>=0){const l=Ca(t.getLineContent(r));let c=Ca(s);const u=VQt(t,r,this._languageConfigurationService);u!==null&&u&2&&(c=n.unshiftIndent(c));const d=Wm(c,i),h=Wm(l,i);return d-h}}return null}matchEnterRuleMovingDown(t,n,i,r,o,s){if(iC(s)>=0){const a=t.getLineMaxColumn(o),l=J6(this._autoIndent,t,new Re(o,a,o,a),this._languageConfigurationService);return this.parseEnterResult(t,n,i,r,l)}else{let a=r-1;for(;a>=1;){const u=t.getLineContent(a);if(iC(u)>=0)break;a--}if(a<1||r>t.getLineCount())return null;const l=t.getLineMaxColumn(a),c=J6(this._autoIndent,t,new Re(a,l,a,l),this._languageConfigurationService);return this.parseEnterResult(t,n,i,r,c)}}matchEnterRule(t,n,i,r,o,s){let a=o;for(;a>=1;){let u;if(a===o&&s!==void 0?u=s:u=t.getLineContent(a),iC(u)>=0)break;a--}if(a<1||r>t.getLineCount())return null;const l=t.getLineMaxColumn(a),c=J6(this._autoIndent,t,new Re(a,l,a,l),this._languageConfigurationService);return this.parseEnterResult(t,n,i,r,c)}trimStart(t){return t.replace(/^\s+/,"")}shouldAutoIndent(t,n){if(this._autoIndent<4||!t.tokenization.isCheapToTokenize(n.startLineNumber))return!1;const i=t.getLanguageIdAtPosition(n.startLineNumber,1),r=t.getLanguageIdAtPosition(n.endLineNumber,1);return!(i!==r||this._languageConfigurationService.getLanguageConfiguration(i).indentRulesSupport===null)}getIndentEditsOfMovingBlock(t,n,i,r,o,s){for(let a=i.startLineNumber;a<=i.endLineNumber;a++){const l=t.getLineContent(a),c=Ca(l),d=Wm(c,r)+s,h=O$(d,r,o);h!==c&&(n.addEditOperation(new Re(a,1,a,c.length+1),h),a===i.endLineNumber&&i.endColumn<=c.length+1&&h===""&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(t,n){let i=n.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&i.startLineNumber<i.endLineNumber&&(i=i.setEndPosition(i.endLineNumber,2)),i}},wle=Ewt([Awt(3,yl)],wle)}});function Ain(e,t,n){const i=t.startLineNumber;let r=t.endLineNumber;if(t.endColumn===1&&r--,i>=r)return null;const o=[];for(let a=i;a<=r;a++)o.push(e.getLineContent(a));let s=o.slice(0);return s.sort(qde.getCollator().compare),n===!0&&(s=s.reverse()),{startLineNumber:i,endLineNumber:r,before:o,after:s}}function MXn(e,t,n){const i=Ain(e,t,n);return i?pl.replace(new Re(i.startLineNumber,1,i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),i.after.join(`
`)):null}var qde,OXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/linesOperations/browser/sortLinesCommand.js"(){var e;Tb(),Dn(),qde=(e=class{static getCollator(){return e._COLLATOR||(e._COLLATOR=new Intl.Collator),e._COLLATOR}constructor(n,i){this.selection=n,this.descending=i,this.selectionId=null}getEditOperations(n,i){const r=MXn(n,this.selection,this.descending);r&&i.addEditOperation(r.range,r.text),this.selectionId=i.trackSelection(this.selection)}computeCursorState(n,i){return i.getTrackedSelection(this.selectionId)}static canRun(n,i,r){if(n===null)return!1;const o=Ain(n,i,r);if(!o)return!1;for(let s=0,a=o.before.length;s<a;s++)if(o.before[s]!==o.after[s])return!0;return!1}},e._COLLATOR=null,e)}}),yAe,Dwt,Twt,kwt,bAe,Iwt,Lwt,_Ae,Nwt,Pwt,Mwt,Owt,Rwt,Fwt,Bwt,jwt,zwt,wAe,Vwt,Hwt,Wwt,Uwt,Pk,$wt,qwt,MS,CAe,cne,SAe,xAe,EAe,RXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js"(){var e,t,n,i,r,o;wb(),Oge(),mr(),$7(),LXn(),LUe(),Mge(),Tb(),Hi(),Dn(),zs(),ls(),NXn(),PXn(),OXn(),bn(),ha(),lu(),sa(),yAe=class extends ri{constructor(s,a){super(a),this.down=s}run(s,a){if(!a.hasModel())return;const l=a.getSelections().map((d,h)=>({selection:d,index:h,ignore:!1}));l.sort((d,h)=>Re.compareRangesUsingStarts(d.selection,h.selection));let c=l[0];for(let d=1;d<l.length;d++){const h=l[d];c.selection.endLineNumber===h.selection.startLineNumber&&(c.index<h.index?h.ignore=!0:(c.ignore=!0,c=h))}const u=[];for(const d of l)u.push(new I8e(d.selection,this.down,d.ignore));a.pushUndoStop(),a.executeCommands(this.id,u),a.pushUndoStop()}},Dwt=class extends yAe{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:R("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:Ge.writable,kbOpts:{kbExpr:Ge.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:Ti.MenubarSelectionMenu,group:"2_line",title:R({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})}},Twt=class extends yAe{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:R("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:Ge.writable,kbOpts:{kbExpr:Ge.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:Ti.MenubarSelectionMenu,group:"2_line",title:R({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})}},kwt=class extends ri{constructor(){super({id:"editor.action.duplicateSelection",label:R("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:Ge.writable,menuOpts:{menuId:Ti.MenubarSelectionMenu,group:"2_line",title:R({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})}run(s,a,l){if(!a.hasModel())return;const c=[],u=a.getSelections(),d=a.getModel();for(const h of u)if(h.isEmpty())c.push(new I8e(h,!0));else{const f=new Ii(h.endLineNumber,h.endColumn,h.endLineNumber,h.endColumn);c.push(new FQt(f,d.getValueInRange(h)))}a.pushUndoStop(),a.executeCommands(this.id,c),a.pushUndoStop()}},bAe=class extends ri{constructor(s,a){super(a),this.down=s}run(s,a){const l=s.get(yl),c=[],u=a.getSelections()||[],d=a.getOption(12);for(const h of u)c.push(new wle(h,this.down,d,l));a.pushUndoStop(),a.executeCommands(this.id,c),a.pushUndoStop()}},Iwt=class extends bAe{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:R("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:Ge.writable,kbOpts:{kbExpr:Ge.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:Ti.MenubarSelectionMenu,group:"2_line",title:R({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})}},Lwt=class extends bAe{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:R("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:Ge.writable,kbOpts:{kbExpr:Ge.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:Ti.MenubarSelectionMenu,group:"2_line",title:R({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})}},_Ae=class extends ri{constructor(s,a){super(a),this.descending=s}run(s,a){if(!a.hasModel())return;const l=a.getModel();let c=a.getSelections();c.length===1&&c[0].isEmpty()&&(c=[new Ii(1,1,l.getLineCount(),l.getLineMaxColumn(l.getLineCount()))]);for(const d of c)if(!qde.canRun(a.getModel(),d,this.descending))return;const u=[];for(let d=0,h=c.length;d<h;d++)u[d]=new qde(c[d],this.descending);a.pushUndoStop(),a.executeCommands(this.id,u),a.pushUndoStop()}},Nwt=class extends _Ae{constructor(){super(!1,{id:"editor.action.sortLinesAscending",label:R("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:Ge.writable})}},Pwt=class extends _Ae{constructor(){super(!0,{id:"editor.action.sortLinesDescending",label:R("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:Ge.writable})}},Mwt=class extends ri{constructor(){super({id:"editor.action.removeDuplicateLines",label:R("lines.deleteDuplicates","Delete Duplicate Lines"),alias:"Delete Duplicate Lines",precondition:Ge.writable})}run(s,a){if(!a.hasModel())return;const l=a.getModel();if(l.getLineCount()===1&&l.getLineMaxColumn(1)===1)return;const c=[],u=[];let d=0,h=!0,f=a.getSelections();f.length===1&&f[0].isEmpty()&&(f=[new Ii(1,1,l.getLineCount(),l.getLineMaxColumn(l.getLineCount()))],h=!1);for(const p of f){const g=new Set,m=[];for(let w=p.startLineNumber;w<=p.endLineNumber;w++){const E=l.getLineContent(w);g.has(E)||(m.push(E),g.add(E))}const v=new Ii(p.startLineNumber,1,p.endLineNumber,l.getLineMaxColumn(p.endLineNumber)),y=p.startLineNumber-d,b=new Ii(y,1,y+m.length-1,m[m.length-1].length);c.push(pl.replace(v,m.join(`
`))),u.push(b),d+=p.endLineNumber-p.startLineNumber+1-m.length}a.pushUndoStop(),a.executeEdits(this.id,c,h?u:void 0),a.pushUndoStop()}},Owt=(e=class extends ri{constructor(){super({id:e.ID,label:R("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:Ge.writable,kbOpts:{kbExpr:Ge.editorTextFocus,primary:pu(2089,2102),weight:100}})}run(a,l,c){let u=[];c.reason==="auto-save"&&(u=(l.getSelections()||[]).map(m=>new mt(m.positionLineNumber,m.positionColumn)));const d=l.getSelection();if(d===null)return;const h=a.get(co),f=l.getModel(),p=h.getValue("files.trimTrailingWhitespaceInRegexAndStrings",{overrideIdentifier:f?.getLanguageId(),resource:f?.uri}),g=new Ein(d,u,p);l.pushUndoStop(),l.executeCommands(this.id,[g]),l.pushUndoStop()}},e.ID="editor.action.trimTrailingWhitespace",e),Rwt=class extends ri{constructor(){super({id:"editor.action.deleteLines",label:R("lines.delete","Delete Line"),alias:"Delete Line",precondition:Ge.writable,kbOpts:{kbExpr:Ge.textInputFocus,primary:3113,weight:100}})}run(s,a){if(!a.hasModel())return;const l=this._getLinesToRemove(a),c=a.getModel();if(c.getLineCount()===1&&c.getLineMaxColumn(1)===1)return;let u=0;const d=[],h=[];for(let f=0,p=l.length;f<p;f++){const g=l[f];let m=g.startLineNumber,v=g.endLineNumber,y=1,b=c.getLineMaxColumn(v);v<c.getLineCount()?(v+=1,b=1):m>1&&(m-=1,y=c.getLineMaxColumn(m)),d.push(pl.replace(new Ii(m,y,v,b),"")),h.push(new Ii(m-u,g.positionColumn,m-u,g.positionColumn)),u+=g.endLineNumber-g.startLineNumber+1}a.pushUndoStop(),a.executeEdits(this.id,d,h),a.pushUndoStop()}_getLinesToRemove(s){const a=s.getSelections().map(u=>{let d=u.endLineNumber;return u.startLineNumber<u.endLineNumber&&u.endColumn===1&&(d-=1),{startLineNumber:u.startLineNumber,selectionStartColumn:u.selectionStartColumn,endLineNumber:d,positionColumn:u.positionColumn}});a.sort((u,d)=>u.startLineNumber===d.startLineNumber?u.endLineNumber-d.endLineNumber:u.startLineNumber-d.startLineNumber);const l=[];let c=a[0];for(let u=1;u<a.length;u++)c.endLineNumber+1>=a[u].startLineNumber?c.endLineNumber=a[u].endLineNumber:(l.push(c),c=a[u]);return l.push(c),l}},Fwt=class extends ri{constructor(){super({id:"editor.action.indentLines",label:R("lines.indent","Indent Line"),alias:"Indent Line",precondition:Ge.writable,kbOpts:{kbExpr:Ge.editorTextFocus,primary:2142,weight:100}})}run(s,a){const l=a._getViewModel();l&&(a.pushUndoStop(),a.executeCommands(this.id,tD.indent(l.cursorConfig,a.getModel(),a.getSelections())),a.pushUndoStop())}},Bwt=class extends ri{constructor(){super({id:"editor.action.outdentLines",label:R("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:Ge.writable,kbOpts:{kbExpr:Ge.editorTextFocus,primary:2140,weight:100}})}run(s,a){e8.Outdent.runEditorCommand(s,a,null)}},jwt=class extends ri{constructor(){super({id:"editor.action.insertLineBefore",label:R("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:Ge.writable,kbOpts:{kbExpr:Ge.editorTextFocus,primary:3075,weight:100}})}run(s,a){const l=a._getViewModel();l&&(a.pushUndoStop(),a.executeCommands(this.id,fG.lineInsertBefore(l.cursorConfig,a.getModel(),a.getSelections())))}},zwt=class extends ri{constructor(){super({id:"editor.action.insertLineAfter",label:R("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:Ge.writable,kbOpts:{kbExpr:Ge.editorTextFocus,primary:2051,weight:100}})}run(s,a){const l=a._getViewModel();l&&(a.pushUndoStop(),a.executeCommands(this.id,fG.lineInsertAfter(l.cursorConfig,a.getModel(),a.getSelections())))}},wAe=class extends ri{run(s,a){if(!a.hasModel())return;const l=a.getSelection(),c=this._getRangesToDelete(a),u=[];for(let f=0,p=c.length-1;f<p;f++){const g=c[f],m=c[f+1];Re.intersectRanges(g,m)===null?u.push(g):c[f+1]=Re.plusRange(g,m)}u.push(c[c.length-1]);const d=this._getEndCursorState(l,u),h=u.map(f=>pl.replace(f,""));a.pushUndoStop(),a.executeEdits(this.id,h,d),a.pushUndoStop()}},Vwt=class extends wAe{constructor(){super({id:"deleteAllLeft",label:R("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:Ge.writable,kbOpts:{kbExpr:Ge.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(s,a){let l=null;const c=[];let u=0;return a.forEach(d=>{let h;if(d.endColumn===1&&u>0){const f=d.startLineNumber-u;h=new Ii(f,d.startColumn,f,d.startColumn)}else h=new Ii(d.startLineNumber,d.startColumn,d.startLineNumber,d.startColumn);u+=d.endLineNumber-d.startLineNumber,d.intersectRanges(s)?l=h:c.push(h)}),l&&c.unshift(l),c}_getRangesToDelete(s){const a=s.getSelections();if(a===null)return[];let l=a;const c=s.getModel();return c===null?[]:(l.sort(Re.compareRangesUsingStarts),l=l.map(u=>{if(u.isEmpty())if(u.startColumn===1){const d=Math.max(1,u.startLineNumber-1),h=u.startLineNumber===1?1:c.getLineLength(d)+1;return new Re(d,h,u.startLineNumber,1)}else return new Re(u.startLineNumber,1,u.startLineNumber,u.startColumn);else return new Re(u.startLineNumber,1,u.endLineNumber,u.endColumn)}),l)}},Hwt=class extends wAe{constructor(){super({id:"deleteAllRight",label:R("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:Ge.writable,kbOpts:{kbExpr:Ge.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(s,a){let l=null;const c=[];for(let u=0,d=a.length,h=0;u<d;u++){const f=a[u],p=new Ii(f.startLineNumber-h,f.startColumn,f.startLineNumber-h,f.startColumn);f.intersectRanges(s)?l=p:c.push(p)}return l&&c.unshift(l),c}_getRangesToDelete(s){const a=s.getModel();if(a===null)return[];const l=s.getSelections();if(l===null)return[];const c=l.map(u=>{if(u.isEmpty()){const d=a.getLineMaxColumn(u.startLineNumber);return u.startColumn===d?new Re(u.startLineNumber,u.startColumn,u.startLineNumber+1,1):new Re(u.startLineNumber,u.startColumn,u.startLineNumber,d)}return u});return c.sort(Re.compareRangesUsingStarts),c}},Wwt=class extends ri{constructor(){super({id:"editor.action.joinLines",label:R("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:Ge.writable,kbOpts:{kbExpr:Ge.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(s,a){const l=a.getSelections();if(l===null)return;let c=a.getSelection();if(c===null)return;l.sort(Re.compareRangesUsingStarts);const u=[],d=l.reduce((v,y)=>v.isEmpty()?v.endLineNumber===y.startLineNumber?(c.equalsSelection(v)&&(c=y),y):y.startLineNumber>v.endLineNumber+1?(u.push(v),y):new Ii(v.startLineNumber,v.startColumn,y.endLineNumber,y.endColumn):y.startLineNumber>v.endLineNumber?(u.push(v),y):new Ii(v.startLineNumber,v.startColumn,y.endLineNumber,y.endColumn));u.push(d);const h=a.getModel();if(h===null)return;const f=[],p=[];let g=c,m=0;for(let v=0,y=u.length;v<y;v++){const b=u[v],w=b.startLineNumber,E=1;let A=0,D,T;const M=h.getLineLength(b.endLineNumber)-b.endColumn;if(b.isEmpty()||b.startLineNumber===b.endLineNumber){const N=b.getStartPosition();N.lineNumber<h.getLineCount()?(D=w+1,T=h.getLineMaxColumn(D)):(D=N.lineNumber,T=h.getLineMaxColumn(N.lineNumber))}else D=b.endLineNumber,T=h.getLineMaxColumn(D);let P=h.getLineContent(w);for(let N=w+1;N<=D;N++){const j=h.getLineContent(N),W=h.getLineFirstNonWhitespaceColumn(N);if(W>=1){let J=!0;P===""&&(J=!1),J&&(P.charAt(P.length-1)===" "||P.charAt(P.length-1)==="	")&&(J=!1,P=P.replace(/[\s\uFEFF\xA0]+$/g," "));const ee=j.substr(W-1);P+=(J?" ":"")+ee,J?A=ee.length+1:A=ee.length}else A=0}const F=new Re(w,E,D,T);if(!F.isEmpty()){let N;b.isEmpty()?(f.push(pl.replace(F,P)),N=new Ii(F.startLineNumber-m,P.length-A+1,w-m,P.length-A+1)):b.startLineNumber===b.endLineNumber?(f.push(pl.replace(F,P)),N=new Ii(b.startLineNumber-m,b.startColumn,b.endLineNumber-m,b.endColumn)):(f.push(pl.replace(F,P)),N=new Ii(b.startLineNumber-m,b.startColumn,b.startLineNumber-m,P.length-M)),Re.intersectRanges(F,c)!==null?g=N:p.push(N)}m+=F.endLineNumber-F.startLineNumber}p.unshift(g),a.pushUndoStop(),a.executeEdits(this.id,f,p),a.pushUndoStop()}},Uwt=class extends ri{constructor(){super({id:"editor.action.transpose",label:R("editor.transpose","Transpose Characters around the Cursor"),alias:"Transpose Characters around the Cursor",precondition:Ge.writable})}run(s,a){const l=a.getSelections();if(l===null)return;const c=a.getModel();if(c===null)return;const u=[];for(let d=0,h=l.length;d<h;d++){const f=l[d];if(!f.isEmpty())continue;const p=f.getStartPosition(),g=c.getLineMaxColumn(p.lineNumber);if(p.column>=g){if(p.lineNumber===c.getLineCount())continue;const m=new Re(p.lineNumber,Math.max(1,p.column-1),p.lineNumber+1,1),v=c.getValueInRange(m).split("").reverse().join("");u.push(new dh(new Ii(p.lineNumber,Math.max(1,p.column-1),p.lineNumber+1,1),v))}else{const m=new Re(p.lineNumber,Math.max(1,p.column-1),p.lineNumber,p.column+1),v=c.getValueInRange(m).split("").reverse().join("");u.push(new Ige(m,v,new Ii(p.lineNumber,p.column+1,p.lineNumber,p.column+1)))}}a.pushUndoStop(),a.executeCommands(this.id,u),a.pushUndoStop()}},Pk=class extends ri{run(s,a){const l=a.getSelections();if(l===null)return;const c=a.getModel();if(c===null)return;const u=a.getOption(132),d=[];for(const h of l)if(h.isEmpty()){const f=h.getStartPosition(),p=a.getConfiguredWordAtPosition(f);if(!p)continue;const g=new Re(f.lineNumber,p.startColumn,f.lineNumber,p.endColumn),m=c.getValueInRange(g);d.push(pl.replace(g,this._modifyText(m,u)))}else{const f=c.getValueInRange(h);d.push(pl.replace(h,this._modifyText(f,u)))}a.pushUndoStop(),a.executeEdits(this.id,d),a.pushUndoStop()}},$wt=class extends Pk{constructor(){super({id:"editor.action.transformToUppercase",label:R("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:Ge.writable})}_modifyText(s,a){return s.toLocaleUpperCase()}},qwt=class extends Pk{constructor(){super({id:"editor.action.transformToLowercase",label:R("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:Ge.writable})}_modifyText(s,a){return s.toLocaleLowerCase()}},MS=class{constructor(s,a){this._pattern=s,this._flags=a,this._actual=null,this._evaluated=!1}get(){if(!this._evaluated){this._evaluated=!0;try{this._actual=new RegExp(this._pattern,this._flags)}catch{}}return this._actual}isSupported(){return this.get()!==null}},CAe=(t=class extends Pk{constructor(){super({id:"editor.action.transformToTitlecase",label:R("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:Ge.writable})}_modifyText(a,l){const c=t.titleBoundary.get();return c?a.toLocaleLowerCase().replace(c,u=>u.toLocaleUpperCase()):a}},t.titleBoundary=new MS("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu"),t),cne=(n=class extends Pk{constructor(){super({id:"editor.action.transformToSnakecase",label:R("editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:Ge.writable})}_modifyText(a,l){const c=n.caseBoundary.get(),u=n.singleLetters.get();return!c||!u?a:a.replace(c,"$1_$2").replace(u,"$1_$2$3").toLocaleLowerCase()}},n.caseBoundary=new MS("(\\p{Ll})(\\p{Lu})","gmu"),n.singleLetters=new MS("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu"),n),SAe=(i=class extends Pk{constructor(){super({id:"editor.action.transformToCamelcase",label:R("editor.transformToCamelcase","Transform to Camel Case"),alias:"Transform to Camel Case",precondition:Ge.writable})}_modifyText(a,l){const c=i.wordBoundary.get();if(!c)return a;const u=a.split(c);return u.shift()+u.map(h=>h.substring(0,1).toLocaleUpperCase()+h.substring(1)).join("")}},i.wordBoundary=new MS("[_\\s-]","gm"),i),xAe=(r=class extends Pk{constructor(){super({id:"editor.action.transformToPascalcase",label:R("editor.transformToPascalcase","Transform to Pascal Case"),alias:"Transform to Pascal Case",precondition:Ge.writable})}_modifyText(a,l){const c=r.wordBoundary.get(),u=r.wordBoundaryToMaintain.get();return!c||!u?a:a.split(u).map(f=>f.split(c)).flat().map(f=>f.substring(0,1).toLocaleUpperCase()+f.substring(1)).join("")}},r.wordBoundary=new MS("[_\\s-]","gm"),r.wordBoundaryToMaintain=new MS("(?<=\\.)","gm"),r),EAe=(o=class extends Pk{static isSupported(){return[this.caseBoundary,this.singleLetters,this.underscoreBoundary].every(l=>l.isSupported())}constructor(){super({id:"editor.action.transformToKebabcase",label:R("editor.transformToKebabcase","Transform to Kebab Case"),alias:"Transform to Kebab Case",precondition:Ge.writable})}_modifyText(a,l){const c=o.caseBoundary.get(),u=o.singleLetters.get(),d=o.underscoreBoundary.get();return!c||!u||!d?a:a.replace(d,"$1-$3").replace(c,"$1-$2").replace(u,"$1-$2").toLocaleLowerCase()}},o.caseBoundary=new MS("(\\p{Ll})(\\p{Lu})","gmu"),o.singleLetters=new MS("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu"),o.underscoreBoundary=new MS("(\\S)(_)(\\S)","gm"),o),yn(Dwt),yn(Twt),yn(kwt),yn(Iwt),yn(Lwt),yn(Nwt),yn(Pwt),yn(Mwt),yn(Owt),yn(Rwt),yn(Fwt),yn(Bwt),yn(jwt),yn(zwt),yn(Vwt),yn(Hwt),yn(Wwt),yn(Uwt),yn($wt),yn(qwt),cne.caseBoundary.isSupported()&&cne.singleLetters.isSupported()&&yn(cne),SAe.wordBoundary.isSupported()&&yn(SAe),xAe.wordBoundary.isSupported()&&yn(xAe),CAe.titleBoundary.isSupported()&&yn(CAe),EAe.isSupported()&&yn(EAe)}}),FXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.css"(){}});function Gwt(e,t,n,i){const r=e.ordered(t);return L3e(r.map(o=>async()=>{try{return await o.provideLinkedEditingRanges(t,n,i)}catch(s){Sc(s);return}}),o=>!!o&&Sp(o?.ranges))}var Kwt,l3,une,AAe,Ywt,gM,Qwt,Zwt,BXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js"(){var e;rr(),fr(),Ho(),ql(),Vi(),Un(),Nt(),Ki(),ss(),mr(),Ec(),Hi(),Dn(),ls(),Ac(),lu(),bn(),er(),Eo(),ll(),Db(),_g(),FXn(),Kwt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},l3=function(t,n){return function(i,r){n(i,r,t)}},AAe=new Qn("LinkedEditingInputVisible",!1),Ywt="linked-editing-decoration",gM=(e=class extends St{static get(n){return n.getContribution(une.ID)}constructor(n,i,r,o,s){super(),this.languageConfigurationService=o,this._syncRangesToken=0,this._localToDispose=this._register(new Jt),this._editor=n,this._providers=r.linkedEditingRangeProvider,this._enabled=!1,this._visibleContextKey=AAe.bindTo(i),this._debounceInformation=s.for(this._providers,"Linked Editing",{max:200}),this._currentDecorations=this._editor.createDecorationsCollection(),this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new Jt),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequestCts=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel(()=>this.reinitialize(!0))),this._register(this._editor.onDidChangeConfiguration(a=>{(a.hasChanged(70)||a.hasChanged(94))&&this.reinitialize(!1)})),this._register(this._providers.onDidChange(()=>this.reinitialize(!1))),this._register(this._editor.onDidChangeModelLanguage(()=>this.reinitialize(!0))),this.reinitialize(!0)}reinitialize(n){const i=this._editor.getModel(),r=i!==null&&(this._editor.getOption(70)||this._editor.getOption(94))&&this._providers.has(i);if(r===this._enabled&&!n||(this._enabled=r,this.clearRanges(),this._localToDispose.clear(),!r||i===null))return;this._localToDispose.add(On.runAndSubscribe(i.onDidChangeLanguageConfiguration,()=>{this._languageWordPattern=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId()).getWordDefinition()}));const o=new j0(this._debounceInformation.get(i)),s=()=>{this._rangeUpdateTriggerPromise=o.trigger(()=>this.updateRanges(),this._debounceDuration??this._debounceInformation.get(i))},a=new j0(0),l=c=>{this._rangeSyncTriggerPromise=a.trigger(()=>this._syncRanges(c))};this._localToDispose.add(this._editor.onDidChangeCursorPosition(()=>{s()})),this._localToDispose.add(this._editor.onDidChangeModelContent(c=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const u=this._currentDecorations.getRange(0);if(u&&c.changes.every(d=>u.intersectRanges(d.range))){l(this._syncRangesToken);return}}s()})),this._localToDispose.add({dispose:()=>{o.dispose(),a.dispose()}}),this.updateRanges()}_syncRanges(n){if(!this._editor.hasModel()||n!==this._syncRangesToken||this._currentDecorations.length===0)return;const i=this._editor.getModel(),r=this._currentDecorations.getRange(0);if(!r||r.startLineNumber!==r.endLineNumber)return this.clearRanges();const o=i.getValueInRange(r);if(this._currentWordPattern){const a=o.match(this._currentWordPattern);if((a?a[0].length:0)!==o.length)return this.clearRanges()}const s=[];for(let a=1,l=this._currentDecorations.length;a<l;a++){const c=this._currentDecorations.getRange(a);if(c)if(c.startLineNumber!==c.endLineNumber)s.push({range:c,text:o});else{let u=i.getValueInRange(c),d=o,h=c.startColumn,f=c.endColumn;const p=kL(u,d);h+=p,u=u.substr(p),d=d.substr(p);const g=bue(u,d);f-=g,u=u.substr(0,u.length-g),d=d.substr(0,d.length-g),(h!==f||d.length!==0)&&s.push({range:new Re(c.startLineNumber,h,c.endLineNumber,f),text:d})}}if(s.length!==0)try{this._editor.popUndoStop(),this._ignoreChangeEvent=!0;const a=this._editor._getViewModel().getPrevEditOperationType();this._editor.executeEdits("linkedEditing",s),this._editor._getViewModel().setPrevEditOperationType(a)}finally{this._ignoreChangeEvent=!1}}dispose(){this.clearRanges(),super.dispose()}clearRanges(){this._visibleContextKey.set(!1),this._currentDecorations.clear(),this._currentRequestCts&&(this._currentRequestCts.cancel(),this._currentRequestCts=null,this._currentRequestPosition=null)}async updateRanges(n=!1){if(!this._editor.hasModel()){this.clearRanges();return}const i=this._editor.getPosition();if(!this._enabled&&!n||this._editor.getSelections().length>1){this.clearRanges();return}const r=this._editor.getModel(),o=r.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===o){if(i.equals(this._currentRequestPosition))return;if(this._currentDecorations.length>0){const a=this._currentDecorations.getRange(0);if(a&&a.containsPosition(i))return}}this.clearRanges(),this._currentRequestPosition=i,this._currentRequestModelVersion=o;const s=this._currentRequestCts=new bl;try{const a=new Ah(!1),l=await Gwt(this._providers,r,i,s.token);if(this._debounceInformation.update(r,a.elapsed()),s!==this._currentRequestCts||(this._currentRequestCts=null,o!==r.getVersionId()))return;let c=[];l?.ranges&&(c=l.ranges),this._currentWordPattern=l?.wordPattern||this._languageWordPattern;let u=!1;for(let h=0,f=c.length;h<f;h++)if(Re.containsPosition(c[h],i)){if(u=!0,h!==0){const p=c[h];c.splice(h,1),c.unshift(p)}break}if(!u){this.clearRanges();return}const d=c.map(h=>({range:h,options:une.DECORATION}));this._visibleContextKey.set(!0),this._currentDecorations.set(d),this._syncRangesToken++}catch(a){bb(a)||Mr(a),(this._currentRequestCts===s||!this._currentRequestCts)&&this.clearRanges()}}},une=e,e.ID="editor.contrib.linkedEditing",e.DECORATION=Gr.register({description:"linked-editing",stickiness:0,className:Ywt}),e),gM=une=Kwt([l3(1,ur),l3(2,gi),l3(3,yl),l3(4,Mv)],gM),Qwt=class extends ri{constructor(){super({id:"editor.action.linkedEditing",label:R("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:nn.and(Ge.writable,Ge.hasRenameProvider),kbOpts:{kbExpr:Ge.editorTextFocus,primary:3132,weight:100}})}runCommand(t,n){const i=t.get(Jo),[r,o]=Array.isArray(n)&&n||[void 0,void 0];return Ui.isUri(r)&&mt.isIPosition(o)?i.openCodeEditor({resource:r},i.getActiveCodeEditor()).then(s=>{s&&(s.setPosition(o),s.invokeWithinContext(a=>(this.reportTelemetry(a,s),this.run(a,s))))},Mr):super.runCommand(t,n)}run(t,n){const i=gM.get(n);return i?Promise.resolve(i.updateRanges(!0)):Promise.resolve()}},Zwt=Hd.bindToContribution(gM.get),$n(new Zwt({id:"cancelLinkedEditingInput",precondition:AAe,handler:t=>t.clearRanges(),kbOpts:{kbExpr:Ge.editorTextFocus,weight:199,primary:9,secondary:[1033]}})),Qe("editor.linkedEditingBackground",{dark:rn.fromHex("#f00").transparent(.3),light:rn.fromHex("#f00").transparent(.3),hcDark:rn.fromHex("#f00").transparent(.3),hcLight:rn.white},R("editorLinkedEditingBackground","Background color when the editor auto renames on type.")),Xg("_executeLinkedEditingProvider",(t,n,i)=>{const{linkedEditingRangeProvider:r}=t.get(gi);return Gwt(r,n,i,no.None)}),qo(gM.ID,gM,1),yn(Qwt)}}),jXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/links/browser/links.css"(){}});function Din(e,t,n){const i=[],r=e.ordered(t).reverse().map((o,s)=>Promise.resolve(o.provideLinks(t,n)).then(a=>{a&&(i[s]=[a,o])},Sc));return Promise.all(r).then(()=>{const o=new L8e(ew(i));return n.isCancellationRequested?(o.dispose(),new L8e([])):o})}var Xwt,L8e,zXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/links/browser/getLinks.js"(){rr(),Ho(),Vi(),Nt(),as(),ss(),Dn(),Kf(),Ks(),Eo(),Xwt=class{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}async resolve(e){return this._link.url?this._link.url:typeof this._provider.resolveLink=="function"?Promise.resolve(this._provider.resolveLink(this._link,e)).then(t=>(this._link=t||this._link,this._link.url?this.resolve(e):Promise.reject(new Error("missing")))):Promise.reject(new Error("missing"))}},L8e=class Tin{constructor(t){this._disposables=new Jt;let n=[];for(const[i,r]of t){const o=i.links.map(s=>new Xwt(s,r));n=Tin._union(n,o),dpe(i)&&this._disposables.add(i)}this.links=n}dispose(){this._disposables.dispose(),this.links.length=0}static _union(t,n){const i=[];let r,o,s,a;for(r=0,s=0,o=t.length,a=n.length;r<o&&s<a;){const l=t[r],c=n[s];if(Re.areIntersectingOrTouching(l.range,c.range)){r++;continue}Re.compareRangesUsingStarts(l.range,c.range)<0?(i.push(l),r++):(i.push(c),s++)}for(;r<o;r++)i.push(t[r]);for(;s<a;s++)i.push(n[s]);return i}},Ro.registerCommand("_executeLinkProvider",async(e,...t)=>{let[n,i]=t;ns(n instanceof Ui),typeof i!="number"&&(i=0);const{linkProvider:r}=e.get(gi),o=e.get(Ua).getModel(n);if(!o)return[];const s=await Din(r,o,no.None);if(!s)return[];for(let l=0;l<Math.min(i,s.links.length);l++)await s.links[l].resolve(no.None);const a=s.links.slice(0);return s.dispose(),a})}});function VXn(e,t){const n=e.url&&/^command:/i.test(e.url.toString()),i=e.tooltip?e.tooltip:n?R("links.navigate.executeCmd","Execute command"):R("links.navigate.follow","Follow link"),r=t?xo?R("links.navigate.kb.meta.mac","cmd + click"):R("links.navigate.kb.meta","ctrl + click"):xo?R("links.navigate.kb.alt.mac","option + click"):R("links.navigate.kb.alt","alt + click");if(e.url){let o="";if(/^command:/i.test(e.url.toString())){const a=e.url.toString().match(/^command:([^?#]+)/);if(a){const l=a[1];o=R("tooltip.explanation","Execute command {0}",l)}}return new nf("",!0).appendLink(e.url.toString(!0).replace(/ /g,"%20"),i,o).appendMarkdown(` (${r})`)}else return new nf().appendText(`${i} (${r})`)}var Jwt,c3,DAe,S4,TAe,kAe,e1t,HXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/links/browser/links.js"(){var e;fr(),Ho(),Vi(),Dg(),Nt(),Gd(),Xr(),bf(),_g(),ss(),jXn(),mr(),Ac(),Db(),Eo(),rme(),zXn(),bn(),yf(),Ag(),Jwt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},c3=function(t,n){return function(i,r){n(i,r,t)}},S4=(e=class extends St{static get(n){return n.getContribution(DAe.ID)}constructor(n,i,r,o,s){super(),this.editor=n,this.openerService=i,this.notificationService=r,this.languageFeaturesService=o,this.providers=this.languageFeaturesService.linkProvider,this.debounceInformation=s.for(this.providers,"Links",{min:1e3,max:4e3}),this.computeLinks=this._register(new Gs(()=>this.computeLinksNow(),1e3)),this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null;const a=this._register(new FY(n));this._register(a.onMouseMoveOrRelevantKeyDown(([l,c])=>{this._onEditorMouseMove(l,c)})),this._register(a.onExecute(l=>{this.onEditorMouseUp(l)})),this._register(a.onCancel(l=>{this.cleanUpActiveLinkDecoration()})),this._register(n.onDidChangeConfiguration(l=>{l.hasChanged(71)&&(this.updateDecorations([]),this.stop(),this.computeLinks.schedule(0))})),this._register(n.onDidChangeModelContent(l=>{this.editor.hasModel()&&this.computeLinks.schedule(this.debounceInformation.get(this.editor.getModel()))})),this._register(n.onDidChangeModel(l=>{this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.computeLinks.schedule(0)})),this._register(n.onDidChangeModelLanguage(l=>{this.stop(),this.computeLinks.schedule(0)})),this._register(this.providers.onDidChange(l=>{this.stop(),this.computeLinks.schedule(0)})),this.computeLinks.schedule(0)}async computeLinksNow(){if(!this.editor.hasModel()||!this.editor.getOption(71))return;const n=this.editor.getModel();if(!n.isTooLargeForSyncing()&&this.providers.has(n)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=vd(i=>Din(this.providers,n,i));try{const i=new Ah(!1);if(this.activeLinksList=await this.computePromise,this.debounceInformation.update(n,i.elapsed()),n.isDisposed())return;this.updateDecorations(this.activeLinksList.links)}catch(i){Mr(i)}finally{this.computePromise=null}}}updateDecorations(n){const i=this.editor.getOption(78)==="altKey",r=[],o=Object.keys(this.currentOccurrences);for(const a of o){const l=this.currentOccurrences[a];r.push(l.decorationId)}const s=[];if(n)for(const a of n)s.push(kAe.decoration(a,i));this.editor.changeDecorations(a=>{const l=a.deltaDecorations(r,s);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let c=0,u=l.length;c<u;c++){const d=new kAe(n[c],l[c]);this.currentOccurrences[d.decorationId]=d}})}_onEditorMouseMove(n,i){const r=this.editor.getOption(78)==="altKey";if(this.isEnabled(n,i)){this.cleanUpActiveLinkDecoration();const o=this.getLinkOccurrence(n.target.position);o&&this.editor.changeDecorations(s=>{o.activate(s,r),this.activeLinkDecorationId=o.decorationId})}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){const n=this.editor.getOption(78)==="altKey";if(this.activeLinkDecorationId){const i=this.currentOccurrences[this.activeLinkDecorationId];i&&this.editor.changeDecorations(r=>{i.deactivate(r,n)}),this.activeLinkDecorationId=null}}onEditorMouseUp(n){if(!this.isEnabled(n))return;const i=this.getLinkOccurrence(n.target.position);i&&this.openLinkOccurrence(i,n.hasSideBySideModifier,!0)}openLinkOccurrence(n,i,r=!1){if(!this.openerService)return;const{link:o}=n;o.resolve(no.None).then(s=>{if(typeof s=="string"&&this.editor.hasModel()){const a=this.editor.getModel().uri;if(a.scheme===Pr.file&&s.startsWith(`${Pr.file}:`)){const l=Ui.parse(s);if(l.scheme===Pr.file){const c=HS(l);let u=null;c.startsWith("/./")||c.startsWith("\\.\\")?u=`.${c.substr(1)}`:(c.startsWith("//./")||c.startsWith("\\\\.\\"))&&(u=`.${c.substr(2)}`),u&&(s=Q$t(a,u))}}}return this.openerService.open(s,{openToSide:i,fromUserGesture:r,allowContributedOpeners:!0,allowCommands:!0,fromWorkspace:!0})},s=>{const a=s instanceof Error?s.message:s;a==="invalid"?this.notificationService.warn(R("invalid.url","Failed to open this link because it is not well-formed: {0}",o.url.toString())):a==="missing"?this.notificationService.warn(R("missing.url","Failed to open this link because its target is missing.")):Mr(s)})}getLinkOccurrence(n){if(!this.editor.hasModel()||!n)return null;const i=this.editor.getModel().getDecorationsInRange({startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:n.lineNumber,endColumn:n.column},0,!0);for(const r of i){const o=this.currentOccurrences[r.id];if(o)return o}return null}isEnabled(n,i){return!!(n.target.type===6&&(n.hasTriggerModifier||i&&i.keyCodeIsTriggerKey))}stop(){this.computeLinks.cancel(),this.activeLinksList&&(this.activeLinksList?.dispose(),this.activeLinksList=null),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop()}},DAe=e,e.ID="editor.linkDetector",e),S4=DAe=Jwt([c3(1,Eg),c3(2,Cc),c3(3,gi),c3(4,Mv)],S4),TAe={general:Gr.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:Gr.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})},kAe=class Cle{static decoration(n,i){return{range:n.range,options:Cle._getOptions(n,i,!1)}}static _getOptions(n,i,r){const o={...r?TAe.active:TAe.general};return o.hoverMessage=VXn(n,i),o}constructor(n,i){this.link=n,this.decorationId=i}activate(n,i){n.changeDecorationOptions(this.decorationId,Cle._getOptions(this.link,i,!0))}deactivate(n,i){n.changeDecorationOptions(this.decorationId,Cle._getOptions(this.link,i,!1))}},e1t=class extends ri{constructor(){super({id:"editor.action.openLink",label:R("label","Open Link"),alias:"Open Link",precondition:void 0})}run(t,n){const i=S4.get(n);if(!i||!n.hasModel())return;const r=n.getSelections();for(const o of r){const s=i.getLinkOccurrence(o.getEndPosition());s&&i.openLinkOccurrence(s,!1)}}},qo(S4.ID,S4,1),yn(e1t)}}),IAe,WXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/longLinesHelper/browser/longLinesHelper.js"(){var e;Nt(),mr(),IAe=(e=class extends St{constructor(n){super(),this._editor=n,this._register(this._editor.onMouseDown(i=>{const r=this._editor.getOption(118);r>=0&&i.target.type===6&&i.target.position.column>=r&&this._editor.updateOptions({stopRenderingLineAfter:-1})}))}},e.ID="editor.contrib.longLinesHelper",e),qo(IAe.ID,IAe,2)}}),UXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.css"(){}});function $Xn(e){return e===H8.Write?kin:e===H8.Text?Iin:Pin}function qXn(e){return e?Nin:Lin}var t1t,n1t,i1t,r1t,o1t,kin,Iin,Lin,Nin,Pin,Min=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js"(){UXn(),Cd(),Ac(),ra(),bn(),ll(),Ys(),t1t=Qe("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},R("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0),Qe("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},R("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),Qe("editor.wordHighlightTextBackground",t1t,R("wordHighlightText","Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0),n1t=Qe("editor.wordHighlightBorder",{light:null,dark:null,hcDark:Qa,hcLight:Qa},R("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),Qe("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:Qa,hcLight:Qa},R("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),Qe("editor.wordHighlightTextBorder",n1t,R("wordHighlightTextBorder","Border color of a textual occurrence for a symbol.")),i1t=Qe("editorOverviewRuler.wordHighlightForeground","#A0A0A0CC",R("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),r1t=Qe("editorOverviewRuler.wordHighlightStrongForeground","#C0A0C0CC",R("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),o1t=Qe("editorOverviewRuler.wordHighlightTextForeground",i5e,R("overviewRulerWordHighlightTextForeground","Overview ruler marker color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0),kin=Gr.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:ec(r1t),position:x0.Center},minimap:{color:ec(BH),position:1}}),Iin=Gr.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:ec(o1t),position:x0.Center},minimap:{color:ec(BH),position:1}}),Lin=Gr.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:ec(i5e),position:x0.Center},minimap:{color:ec(BH),position:1}}),Nin=Gr.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),Pin=Gr.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:ec(i1t),position:x0.Center},minimap:{color:ec(BH),position:1}}),Ab((e,t)=>{const n=e.getColor(kue);n&&t.addRule(`.monaco-editor .selectionHighlight { background-color: ${n.transparent(.5)}; }`)})}});function Mk(e,t){const n=t.filter(i=>!e.find(r=>r.equals(i)));if(n.length>=1){const i=n.map(o=>`line ${o.viewState.position.lineNumber} column ${o.viewState.position.column}`).join(", "),r=n.length===1?R("cursorAdded","Cursor added: {0}",i):R("cursorsAdded","Cursors added: {0}",i);eE(r)}}function s1t(e,t,n){const i=a1t(e,t[0],!n);for(let r=1,o=t.length;r<o;r++){const s=t[r];if(s.isEmpty())return!1;const a=a1t(e,s,!n);if(i!==a)return!1}return!0}function a1t(e,t,n){const i=e.getValueInRange(t);return n?i.toLowerCase():i}var l1t,c1t,LAe,u1t,d1t,h1t,f1t,p1t,u3,NAe,d3,mM,g1t,m1t,v1t,y1t,b1t,_1t,w1t,h3,C1t,S1t,GXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/multicursor/browser/multicursor.js"(){var e,t;Ih(),fr(),wb(),Nt(),mr(),AUe(),Dn(),zs(),ls(),cnn(),bn(),ha(),er(),Eo(),Min(),li(),l1t=function(n,i,r,o){var s=arguments.length,a=s<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,r):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,i,r,o);else for(var c=n.length-1;c>=0;c--)(l=n[c])&&(a=(s<3?l(a):s>3?l(i,r,a):l(i,r))||a);return s>3&&a&&Object.defineProperty(i,r,a),a},c1t=function(n,i){return function(r,o){i(r,o,n)}},u1t=class extends ri{constructor(){super({id:"editor.action.insertCursorAbove",label:R("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:Ge.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:Ti.MenubarSelectionMenu,group:"3_multi",title:R({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(n,i,r){if(!i.hasModel())return;let o=!0;r&&r.logicalLine===!1&&(o=!1);const s=i._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();const a=s.getCursorStates();s.setCursorStates(r.source,3,Nd.addCursorUp(s,a,o)),s.revealTopMostCursor(r.source),Mk(a,s.getCursorStates())}},d1t=class extends ri{constructor(){super({id:"editor.action.insertCursorBelow",label:R("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:Ge.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:Ti.MenubarSelectionMenu,group:"3_multi",title:R({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(n,i,r){if(!i.hasModel())return;let o=!0;r&&r.logicalLine===!1&&(o=!1);const s=i._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();const a=s.getCursorStates();s.setCursorStates(r.source,3,Nd.addCursorDown(s,a,o)),s.revealBottomMostCursor(r.source),Mk(a,s.getCursorStates())}},h1t=class extends ri{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:R("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:Ge.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:Ti.MenubarSelectionMenu,group:"3_multi",title:R({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(n,i,r){if(!n.isEmpty()){for(let o=n.startLineNumber;o<n.endLineNumber;o++){const s=i.getLineMaxColumn(o);r.push(new Ii(o,s,o,s))}n.endColumn>1&&r.push(new Ii(n.endLineNumber,n.endColumn,n.endLineNumber,n.endColumn))}}run(n,i){if(!i.hasModel())return;const r=i.getModel(),o=i.getSelections(),s=i._getViewModel(),a=s.getCursorStates(),l=[];o.forEach(c=>this.getCursorsForSelection(c,r,l)),l.length>0&&i.setSelections(l),Mk(a,s.getCursorStates())}},f1t=class extends ri{constructor(){super({id:"editor.action.addCursorsToBottom",label:R("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(n,i){if(!i.hasModel())return;const r=i.getSelections(),o=i.getModel().getLineCount(),s=[];for(let c=r[0].startLineNumber;c<=o;c++)s.push(new Ii(c,r[0].startColumn,c,r[0].endColumn));const a=i._getViewModel(),l=a.getCursorStates();s.length>0&&i.setSelections(s),Mk(l,a.getCursorStates())}},p1t=class extends ri{constructor(){super({id:"editor.action.addCursorsToTop",label:R("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(n,i){if(!i.hasModel())return;const r=i.getSelections(),o=[];for(let l=r[0].startLineNumber;l>=1;l--)o.push(new Ii(l,r[0].startColumn,l,r[0].endColumn));const s=i._getViewModel(),a=s.getCursorStates();o.length>0&&i.setSelections(o),Mk(a,s.getCursorStates())}},u3=class{constructor(n,i,r){this.selections=n,this.revealRange=i,this.revealScrollType=r}},NAe=class N8e{static create(i,r){if(!i.hasModel())return null;const o=r.getState();if(!i.hasTextFocus()&&o.isRevealed&&o.searchString.length>0)return new N8e(i,r,!1,o.searchString,o.wholeWord,o.matchCase,null);let s=!1,a,l;const c=i.getSelections();c.length===1&&c[0].isEmpty()?(s=!0,a=!0,l=!0):(a=o.wholeWord,l=o.matchCase);const u=i.getSelection();let d,h=null;if(u.isEmpty()){const f=i.getConfiguredWordAtPosition(u.getStartPosition());if(!f)return null;d=f.word,h=new Ii(u.startLineNumber,f.startColumn,u.startLineNumber,f.endColumn)}else d=i.getModel().getValueInRange(u).replace(/\r\n/g,`
`);return new N8e(i,r,s,d,a,l,h)}constructor(i,r,o,s,a,l,c){this._editor=i,this.findController=r,this.isDisconnectedFromFindController=o,this.searchText=s,this.wholeWord=a,this.matchCase=l,this.currentMatch=c}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const i=this._getNextMatch();if(!i)return null;const r=this._editor.getSelections();return new u3(r.concat(i),i,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const i=this._getNextMatch();if(!i)return null;const r=this._editor.getSelections();return new u3(r.slice(0,r.length-1).concat(i),i,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const s=this.currentMatch;return this.currentMatch=null,s}this.findController.highlightFindOptions();const i=this._editor.getSelections(),r=i[i.length-1],o=this._editor.getModel().findNextMatch(this.searchText,r.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1);return o?new Ii(o.range.startLineNumber,o.range.startColumn,o.range.endLineNumber,o.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const i=this._getPreviousMatch();if(!i)return null;const r=this._editor.getSelections();return new u3(r.concat(i),i,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const i=this._getPreviousMatch();if(!i)return null;const r=this._editor.getSelections();return new u3(r.slice(0,r.length-1).concat(i),i,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const s=this.currentMatch;return this.currentMatch=null,s}this.findController.highlightFindOptions();const i=this._editor.getSelections(),r=i[i.length-1],o=this._editor.getModel().findPreviousMatch(this.searchText,r.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1);return o?new Ii(o.range.startLineNumber,o.range.startColumn,o.range.endLineNumber,o.range.endColumn):null}selectAll(i){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();const r=this._editor.getModel();return i?r.findMatches(this.searchText,i,!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1,1073741824):r.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1,1073741824)}},d3=(e=class extends St{static get(i){return i.getContribution(e.ID)}constructor(i){super(),this._sessionDispose=this._register(new Jt),this._editor=i,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(i){if(!this._session){const r=NAe.create(this._editor,i);if(!r)return;this._session=r;const o={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(o.wholeWordOverride=1,o.matchCaseOverride=1,o.isRegexOverride=2),i.getState().change(o,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(s=>{this._ignoreSelectionChange||this._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(()=>{this._endSession()})),this._sessionDispose.add(i.getState().onFindReplaceStateChange(s=>{(s.matchCase||s.wholeWord)&&this._endSession()}))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const i={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(i,!1)}this._session=null}_setSelections(i){this._ignoreSelectionChange=!0,this._editor.setSelections(i),this._ignoreSelectionChange=!1}_expandEmptyToWord(i,r){if(!r.isEmpty())return r;const o=this._editor.getConfiguredWordAtPosition(r.getStartPosition());return o?new Ii(r.startLineNumber,o.startColumn,r.startLineNumber,o.endColumn):r}_applySessionResult(i){i&&(this._setSelections(i.selections),i.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(i.revealRange,i.revealScrollType))}getSession(i){return this._session}addSelectionToNextFindMatch(i){if(this._editor.hasModel()){if(!this._session){const r=this._editor.getSelections();if(r.length>1){const s=i.getState().matchCase;if(!s1t(this._editor.getModel(),r,s)){const l=this._editor.getModel(),c=[];for(let u=0,d=r.length;u<d;u++)c[u]=this._expandEmptyToWord(l,r[u]);this._editor.setSelections(c);return}}}this._beginSessionIfNeeded(i),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch(i){this._beginSessionIfNeeded(i),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch(i){this._beginSessionIfNeeded(i),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch(i){this._beginSessionIfNeeded(i),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}selectAll(i){if(!this._editor.hasModel())return;let r=null;const o=i.getState();if(o.isRevealed&&o.searchString.length>0&&o.isRegex){const s=this._editor.getModel();o.searchScope?r=s.findMatches(o.searchString,o.searchScope,o.isRegex,o.matchCase,o.wholeWord?this._editor.getOption(132):null,!1,1073741824):r=s.findMatches(o.searchString,!0,o.isRegex,o.matchCase,o.wholeWord?this._editor.getOption(132):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(i),!this._session)return;r=this._session.selectAll(o.searchScope)}if(r.length>0){const s=this._editor.getSelection();for(let a=0,l=r.length;a<l;a++){const c=r[a];if(c.range.intersectRanges(s)){r[a]=r[0],r[0]=c;break}}this._setSelections(r.map(a=>new Ii(a.range.startLineNumber,a.range.startColumn,a.range.endLineNumber,a.range.endColumn)))}}},e.ID="editor.contrib.multiCursorController",e),mM=class extends ri{run(n,i){const r=d3.get(i);if(!r)return;const o=i._getViewModel();if(o){const s=o.getCursorStates(),a=Yp.get(i);if(a)this._run(r,a);else{const l=n.get(ji).createInstance(Yp,i);this._run(r,l),l.dispose()}Mk(s,o.getCursorStates())}}},g1t=class extends mM{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:R("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:Ge.focus,primary:2082,weight:100},menuOpts:{menuId:Ti.MenubarSelectionMenu,group:"3_multi",title:R({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(n,i){n.addSelectionToNextFindMatch(i)}},m1t=class extends mM{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:R("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:Ti.MenubarSelectionMenu,group:"3_multi",title:R({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(n,i){n.addSelectionToPreviousFindMatch(i)}},v1t=class extends mM{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:R("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:Ge.focus,primary:pu(2089,2082),weight:100}})}_run(n,i){n.moveSelectionToNextFindMatch(i)}},y1t=class extends mM{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:R("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(n,i){n.moveSelectionToPreviousFindMatch(i)}},b1t=class extends mM{constructor(){super({id:"editor.action.selectHighlights",label:R("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:Ge.focus,primary:3114,weight:100},menuOpts:{menuId:Ti.MenubarSelectionMenu,group:"3_multi",title:R({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(n,i){n.selectAll(i)}},_1t=class extends mM{constructor(){super({id:"editor.action.changeAll",label:R("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:nn.and(Ge.writable,Ge.editorTextFocus),kbOpts:{kbExpr:Ge.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(n,i){n.selectAll(i)}},w1t=class{constructor(n,i,r,o,s){this._model=n,this._searchText=i,this._matchCase=r,this._wordSeparators=o,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,s&&this._model===s._model&&this._searchText===s._searchText&&this._matchCase===s._matchCase&&this._wordSeparators===s._wordSeparators&&this._modelVersionId===s._modelVersionId&&(this._cachedFindMatches=s._cachedFindMatches)}findMatches(){return this._cachedFindMatches===null&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map(n=>n.range),this._cachedFindMatches.sort(Re.compareRangesUsingStarts)),this._cachedFindMatches}},h3=(t=class extends St{constructor(i,r){super(),this._languageFeaturesService=r,this.editor=i,this._isEnabled=i.getOption(109),this._decorations=i.createDecorationsCollection(),this.updateSoon=this._register(new Gs(()=>this._update(),300)),this.state=null,this._register(i.onDidChangeConfiguration(s=>{this._isEnabled=i.getOption(109)})),this._register(i.onDidChangeCursorSelection(s=>{this._isEnabled&&(s.selection.isEmpty()?s.reason===3?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())})),this._register(i.onDidChangeModel(s=>{this._setState(null)})),this._register(i.onDidChangeModelContent(s=>{this._isEnabled&&this.updateSoon.schedule()}));const o=Yp.get(i);o&&this._register(o.getState().onFindReplaceStateChange(s=>{this._update()})),this.updateSoon.schedule()}_update(){this._setState(LAe._createState(this.state,this._isEnabled,this.editor))}static _createState(i,r,o){if(!r||!o.hasModel())return null;const s=o.getSelection();if(s.startLineNumber!==s.endLineNumber)return null;const a=d3.get(o);if(!a)return null;const l=Yp.get(o);if(!l)return null;let c=a.getSession(l);if(!c){const h=o.getSelections();if(h.length>1){const p=l.getState().matchCase;if(!s1t(o.getModel(),h,p))return null}c=NAe.create(o,l)}if(!c||c.currentMatch||/^[ \t]+$/.test(c.searchText)||c.searchText.length>200)return null;const u=l.getState(),d=u.matchCase;if(u.isRevealed){let h=u.searchString;d||(h=h.toLowerCase());let f=c.searchText;if(d||(f=f.toLowerCase()),h===f&&c.matchCase===u.matchCase&&c.wholeWord===u.wholeWord&&!u.isRegex)return null}return new w1t(o.getModel(),c.searchText,c.matchCase,c.wholeWord?o.getOption(132):null,i)}_setState(i){if(this.state=i,!this.state){this._decorations.clear();return}if(!this.editor.hasModel())return;const r=this.editor.getModel();if(r.isTooLargeForTokenization())return;const o=this.state.findMatches(),s=this.editor.getSelections();s.sort(Re.compareRangesUsingStarts);const a=[];for(let d=0,h=0,f=o.length,p=s.length;d<f;){const g=o[d];if(h>=p)a.push(g),d++;else{const m=Re.compareRangesUsingStarts(g,s[h]);m<0?((s[h].isEmpty()||!Re.areIntersecting(g,s[h]))&&a.push(g),d++):(m>0||d++,h++)}}const l=this.editor.getOption(81)!=="off",c=this._languageFeaturesService.documentHighlightProvider.has(r)&&l,u=a.map(d=>({range:d,options:qXn(c)}));this._decorations.set(u)}dispose(){this._setState(null),super.dispose()}},LAe=t,t.ID="editor.contrib.selectionHighlighter",t),h3=LAe=l1t([c1t(1,gi)],h3),C1t=class extends ri{constructor(){super({id:"editor.action.focusNextCursor",label:R("mutlicursor.focusNextCursor","Focus Next Cursor"),metadata:{description:R("mutlicursor.focusNextCursor.description","Focuses the next cursor"),args:[]},alias:"Focus Next Cursor",precondition:void 0})}run(n,i,r){if(!i.hasModel())return;const o=i._getViewModel();if(o.cursorConfig.readOnly)return;o.model.pushStackElement();const s=Array.from(o.getCursorStates()),a=s.shift();a&&(s.push(a),o.setCursorStates(r.source,3,s),o.revealPrimaryCursor(r.source,!0),Mk(s,o.getCursorStates()))}},S1t=class extends ri{constructor(){super({id:"editor.action.focusPreviousCursor",label:R("mutlicursor.focusPreviousCursor","Focus Previous Cursor"),metadata:{description:R("mutlicursor.focusPreviousCursor.description","Focuses the previous cursor"),args:[]},alias:"Focus Previous Cursor",precondition:void 0})}run(n,i,r){if(!i.hasModel())return;const o=i._getViewModel();if(o.cursorConfig.readOnly)return;o.model.pushStackElement();const s=Array.from(o.getCursorStates()),a=s.pop();a&&(s.unshift(a),o.setCursorStates(r.source,3,s),o.revealPrimaryCursor(r.source,!0),Mk(s,o.getCursorStates()))}},qo(d3.ID,d3,4),qo(h3.ID,h3,1),yn(u1t),yn(d1t),yn(h1t),yn(g1t),yn(m1t),yn(v1t),yn(y1t),yn(b1t),yn(_1t),yn(f1t),yn(p1t),yn(C1t),yn(S1t)}}),Oin,Rin,Fin,Bin,KXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/commandIds.js"(){Oin="editor.action.inlineEdit.accept",Rin="editor.action.inlineEdit.reject",Fin="editor.action.inlineEdit.jumpTo",Bin="editor.action.inlineEdit.jumpBack"}}),YXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/inlineEdit.css"(){}}),x1t,E1t,dne,Sle,QXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/ghostTextWidget.js"(){Nt(),xs(),YXn(),Hi(),Dn(),Kd(),Cd(),E7(),cme(),aF(),x1t=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},E1t=function(e,t){return function(n,i){t(n,i,e)}},dne="inline-edit",Sle=class extends St{constructor(t,n,i){super(),this.editor=t,this.model=n,this.languageService=i,this.isDisposed=mo(this,!1),this.currentTextModel=Bs(this,this.editor.onDidChangeModel,()=>this.editor.getModel()),this.uiState=Fi(this,r=>{if(this.isDisposed.read(r))return;const o=this.currentTextModel.read(r);if(o!==this.model.targetTextModel.read(r))return;const s=this.model.ghostText.read(r);if(!s)return;let a=this.model.range?.read(r);a&&a.startLineNumber===a.endLineNumber&&a.startColumn===a.endColumn&&(a=void 0);const l=(a?a.startLineNumber===a.endLineNumber:!0)&&s.parts.length===1&&s.parts[0].lines.length===1,c=s.parts.length===1&&s.parts[0].lines.every(y=>y.length===0),u=[],d=[];function h(y,b){if(d.length>0){const w=d[d.length-1];b&&w.decorations.push(new sb(w.content.length+1,w.content.length+1+y[0].length,b,0)),w.content+=y[0],y=y.slice(1)}for(const w of y)d.push({content:w,decorations:b?[new sb(1,w.length+1,b,0)]:[]})}const f=o.getLineContent(s.lineNumber);let p,g=0;if(!c&&(l||!a)){for(const y of s.parts){let b=y.lines;a&&!l&&(h(b,dne),b=[]),p===void 0?(u.push({column:y.column,text:b[0],preview:y.preview}),b=b.slice(1)):h([f.substring(g,y.column-1)],void 0),b.length>0&&(h(b,dne),p===void 0&&y.column<=f.length&&(p=y.column)),g=y.column-1}p!==void 0&&h([f.substring(g)],void 0)}const m=p!==void 0?new G$e(p,f.length+1):void 0,v=l||!a?s.lineNumber:a.endLineNumber-1;return{inlineTexts:u,additionalLines:d,hiddenRange:m,lineNumber:v,additionalReservedLineCount:this.model.minReservedLineCount.read(r),targetTextModel:o,range:a,isSingleLine:l,isPureRemove:c}}),this.decorations=Fi(this,r=>{const o=this.uiState.read(r);if(!o)return[];const s=[];if(o.hiddenRange&&s.push({range:o.hiddenRange.toRange(o.lineNumber),options:{inlineClassName:"inline-edit-hidden",description:"inline-edit-hidden"}}),o.range){const a=[];if(o.isSingleLine)a.push(o.range);else if(!o.isPureRemove){const l=o.range.endLineNumber-o.range.startLineNumber;for(let c=0;c<l;c++){const u=o.range.startLineNumber+c,d=o.targetTextModel.getLineFirstNonWhitespaceColumn(u),h=o.targetTextModel.getLineLastNonWhitespaceColumn(u),f=new Re(u,d,u,h);a.push(f)}}for(const l of a)s.push({range:l,options:a2})}if(o.range&&!o.isSingleLine&&o.isPureRemove){const a=new Re(o.range.startLineNumber,1,o.range.endLineNumber-1,1);s.push({range:a,options:u9})}for(const a of o.inlineTexts)s.push({range:Re.fromPositions(new mt(o.lineNumber,a.column)),options:{description:dne,after:{content:a.text,inlineClassName:a.preview?"inline-edit-decoration-preview":"inline-edit-decoration",cursorStops:L_.Left},showIfCollapsed:!0}});return s}),this._register(zi(()=>{this.isDisposed.set(!0,void 0)})),this._register(Snn(this.editor,this.decorations))}},Sle=x1t([E1t(2,al)],Sle)}}),ZXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.css"(){}}),hne,a1,fne,xle,pne,A1t,gne,XXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.js"(){var e;Fn(),Ege(),wd(),rr(),Nt(),xs(),Xr(),ZXn(),Hi(),jN(),Wge(),ha(),Ks(),er(),xg(),li(),tl(),_m(),hne=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},a1=function(t,n){return function(i,r){n(i,r,t)}},xle=class extends St{constructor(n,i,r){super(),this.editor=n,this.model=i,this.instantiationService=r,this.alwaysShowToolbar=Bs(this,this.editor.onDidChangeConfiguration,()=>this.editor.getOption(63).showToolbar==="always"),this.sessionPosition=void 0,this.position=Fi(this,o=>{const s=this.model.read(o)?.model.ghostText.read(o);if(!this.alwaysShowToolbar.read(o)||!s||s.parts.length===0)return this.sessionPosition=void 0,null;const a=s.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==s.lineNumber&&(this.sessionPosition=void 0);const l=new mt(s.lineNumber,Math.min(a,this.sessionPosition?.column??Number.MAX_SAFE_INTEGER));return this.sessionPosition=l,l}),this._register(hm((o,s)=>{if(!this.model.read(o)||!this.alwaysShowToolbar.read(o))return;const l=s.add(this.instantiationService.createInstance(pne,this.editor,!0,this.position));n.addContentWidget(l),s.add(zi(()=>n.removeContentWidget(l)))}))}},xle=hne([a1(2,ji)],xle),pne=(e=class extends St{constructor(n,i,r,o,s,a){super(),this.editor=n,this.withBorder=i,this._position=r,this._contextKeyService=s,this._menuService=a,this.id=`InlineEditHintsContentWidget${fne.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=Co("div.inlineEditHints",{className:this.withBorder?".withBorder":""},[Co("div@toolBar")]),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(Ti.InlineEditActions,this._contextKeyService)),this.toolBar=this._register(o.createInstance(gne,this.nodes.toolBar,this.editor,Ti.InlineEditToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:l=>l.startsWith("primary")},actionViewItemProvider:(l,c)=>{if(l instanceof um)return o.createInstance(A1t,l,void 0)},telemetrySource:"InlineEditToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility(l=>{fne._dropDownVisible=l})),this._register(Tr(l=>{this._position.read(l),this.editor.layoutContentWidget(this)})),this._register(Tr(l=>{const c=[];for(const[u,d]of this.inlineCompletionsActionsMenus.getActions())for(const h of d)h instanceof um&&c.push(h);c.length>0&&c.unshift(new zd),this.toolBar.setAdditionalSecondaryActions(c)}))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}},fne=e,e._dropDownVisible=!1,e.id=0,e),pne=fne=hne([a1(3,ji),a1(4,ur),a1(5,Pv)],pne),A1t=class extends UA{updateLabel(){const t=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!t)return super.updateLabel();if(this.label){const n=Co("div.keybinding").root;this._register(new kY(n,om,{disableTitle:!0,...fUe})).set(t),this.label.textContent=this._action.label,this.label.appendChild(n),this.label.classList.add("inlineEditStatusBarItemLabel")}}updateTooltip(){}},gne=class extends f6{constructor(n,i,r,o,s,a,l,c,u,d){super(n,{resetMenu:r,...o},s,a,l,c,u,d),this.editor=i,this.menuId=r,this.options2=o,this.menuService=s,this.contextKeyService=a,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange(()=>this.updateToolbar())),this._store.add(this.editor.onDidChangeCursorPosition(()=>this.updateToolbar())),this.updateToolbar()}updateToolbar(){const n=[],i=[];yge(this.menu,this.options2?.menuOptions,{primary:n,secondary:i},this.options2?.toolbarOptions?.primaryGroup,this.options2?.toolbarOptions?.shouldInlineSubmenu,this.options2?.toolbarOptions?.useSeparatorsInPrimaryActions),i.push(...this.additionalActions),n.unshift(...this.prependedPrimaryActions),this.setActions(n,i)}setAdditionalSecondaryActions(n){vl(this.additionalActions,n,(i,r)=>i===r)||(this.additionalActions=n,this.updateToolbar())}},gne=hne([a1(4,Pv),a1(5,ur),a1(6,dm),a1(7,Cs),a1(8,Oa),a1(9,uf)],gne)}}),JXn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/inlineEditSideBySideWidget.css"(){}});function*eJn(e,t,n=1){t===void 0&&([t,e]=[e,0]);for(let i=e;i<t;i+=n)yield i}function PAe(e){const t=e[0].match(/^\s*/)?.[0]??"",n=t.length;return{text:e.map(i=>i.replace(new RegExp("^"+t),"")),shift:n}}var MAe,f3,p3,OAe,Ele,mne,tJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/inlineEditSideBySideWidget.js"(){var e,t;Fn(),Ho(),Nt(),xs(),Vv(),ss(),JXn(),HN(),UN(),Vge(),aF(),Hi(),Dn(),G0(),Ac(),Kf(),li(),MAe=function(n,i,r,o){var s=arguments.length,a=s<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,r):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,i,r,o);else for(var c=n.length-1;c>=0;c--)(l=n[c])&&(a=(s<3?l(a):s>3?l(i,r,a):l(i,r))||a);return s>3&&a&&Object.defineProperty(i,r,a),a},f3=function(n,i){return function(r,o){i(r,o,n)}},Ele=(e=class extends St{static _createUniqueUri(){return Ui.from({scheme:"inline-edit-widget",path:new Date().toString()+String(p3._modelId++)})}constructor(i,r,o,s,a){super(),this._editor=i,this._model=r,this._instantiationService=o,this._diffProviderFactoryService=s,this._modelService=a,this._position=Fi(this,l=>{const c=this._model.read(l);if(!c||c.text.length===0||c.range.startLineNumber===c.range.endLineNumber&&!(c.range.startColumn===c.range.endColumn&&c.range.startColumn===1))return null;const u=this._editor.getModel();if(!u)return null;const d=Array.from(eJn(c.range.startLineNumber,c.range.endLineNumber+1)),h=d.map(v=>u.getLineLastNonWhitespaceColumn(v)),f=Math.max(...h),p=d[h.indexOf(f)],g=new mt(p,f);return{top:c.range.startLineNumber,left:g}}),this._text=Fi(this,l=>{const c=this._model.read(l);if(!c)return{text:"",shift:0};const u=PAe(c.text.split(`
`));return{text:u.text.join(`
`),shift:u.shift}}),this._originalModel=cp(()=>this._modelService.createModel("",null,p3._createUniqueUri())).keepObserved(this._store),this._modifiedModel=cp(()=>this._modelService.createModel("",null,p3._createUniqueUri())).keepObserved(this._store),this._diff=Fi(this,l=>this._diffPromise.read(l)?.promiseResult.read(l)?.data),this._diffPromise=Fi(this,l=>{const c=this._model.read(l);if(!c)return;const u=this._editor.getModel();if(!u)return;const d=PAe(u.getValueInRange(c.range).split(`
`)).text.join(`
`),h=PAe(c.text.split(`
`)).text.join(`
`);this._originalModel.get().setValue(d),this._modifiedModel.get().setValue(h);const f=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:"advanced"});return mWe.fromFn(async()=>{const p=await f.computeDiff(this._originalModel.get(),this._modifiedModel.get(),{computeMoves:!1,ignoreTrimWhitespace:!1,maxComputationTimeMs:1e3},no.None);if(!p.identical)return p.changes})}),this._register(hm((l,c)=>{if(!this._model.read(l)||this._position.get()===null)return;const d=c.add(this._instantiationService.createInstance(mne,this._editor,this._position,this._text.map(h=>h.text),this._text.map(h=>h.shift),this._diff));i.addOverlayWidget(d),c.add(zi(()=>i.removeOverlayWidget(d)))}))}},p3=e,e._modelId=0,e),Ele=p3=MAe([f3(2,ji),f3(3,d9),f3(4,Ua)],Ele),mne=(t=class extends St{constructor(i,r,o,s,a,l){super(),this._editor=i,this._position=r,this._text=o,this._shift=s,this._diff=a,this._instantiationService=l,this.id=`InlineEditSideBySideContentWidget${OAe.id++}`,this.allowEditorOverflow=!1,this._nodes=In("div.inlineEditSideBySide",void 0),this._scrollChanged=af("editor.onDidScrollChange",this._editor.onDidScrollChange),this._previewEditor=this._register(this._instantiationService.createInstance(Xy,this._nodes,{glyphMargin:!1,lineNumbers:"off",minimap:{enabled:!1},guides:{indentation:!1,bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveIndentation:!1},folding:!1,selectOnLineNumbers:!1,selectionHighlight:!1,columnSelection:!1,overviewRulerBorder:!1,overviewRulerLanes:0,lineDecorationsWidth:0,lineNumbersMinChars:0,scrollbar:{vertical:"hidden",horizontal:"hidden",alwaysConsumeMouseWheel:!1,handleMouseWheel:!1},readOnly:!0,wordWrap:"off",wordWrapOverride1:"off",wordWrapOverride2:"off",wrappingIndent:"none",wrappingStrategy:void 0},{contributions:[],isSimpleWidget:!0},this._editor)),this._previewEditorObs=dv(this._previewEditor),this._editorObs=dv(this._editor),this._previewTextModel=this._register(this._instantiationService.createInstance(N_,"",this._editor.getModel()?.getLanguageId()??xp,N_.DEFAULT_CREATION_OPTIONS,null)),this._setText=Fi(c=>{const u=this._text.read(c);u&&this._previewTextModel.setValue(u)}).recomputeInitiallyAndOnChange(this._store),this._decorations=Fi(this,c=>{this._setText.read(c);const u=this._position.read(c);if(!u)return{org:[],mod:[]};const d=this._diff.read(c);if(!d)return{org:[],mod:[]};const h=[],f=[];if(d.length===1&&d[0].innerChanges[0].modifiedRange.equalsRange(this._previewTextModel.getFullModelRange()))return{org:[],mod:[]};const p=this._shift.get(),g=m=>new Re(m.startLineNumber+u.top-1,m.startColumn+p,m.endLineNumber+u.top-1,m.endColumn+p);for(const m of d)if(m.original.isEmpty||h.push({range:g(m.original.toInclusiveRange()),options:u9}),m.modified.isEmpty||f.push({range:m.modified.toInclusiveRange(),options:pG}),m.modified.isEmpty||m.original.isEmpty)m.original.isEmpty||h.push({range:g(m.original.toInclusiveRange()),options:jge}),m.modified.isEmpty||f.push({range:m.modified.toInclusiveRange(),options:Fge});else for(const v of m.innerChanges||[])m.original.contains(v.originalRange.startLineNumber)&&h.push({range:g(v.originalRange),options:v.originalRange.isEmpty()?zge:a2}),m.modified.contains(v.modifiedRange.startLineNumber)&&f.push({range:v.modifiedRange,options:v.modifiedRange.isEmpty()?Bge:gG});return{org:h,mod:f}}),this._originalDecorations=Fi(this,c=>this._decorations.read(c).org),this._modifiedDecorations=Fi(this,c=>this._decorations.read(c).mod),this._previewEditor.setModel(this._previewTextModel),this._register(this._editorObs.setDecorations(this._originalDecorations)),this._register(this._previewEditorObs.setDecorations(this._modifiedDecorations)),this._register(Tr(c=>{const u=this._previewEditorObs.contentWidth.read(c),d=this._text.read(c).split(`
`).length-1,h=this._editor.getOption(67)*d;u<=0||this._previewEditor.layout({height:h,width:u})})),this._register(Tr(c=>{this._position.read(c),this._editor.layoutOverlayWidget(this)})),this._register(Tr(c=>{this._scrollChanged.read(c),this._position.read(c)&&this._editor.layoutOverlayWidget(this)}))}getId(){return this.id}getDomNode(){return this._nodes}getPosition(){const i=this._position.get();if(!i)return null;const r=this._editor.getLayoutInfo(),o=this._editor.getScrolledVisiblePosition(new mt(i.top,1));if(!o)return null;const s=o.top-1,a=this._editor.getOffsetForColumn(i.left.lineNumber,i.left.column);return{preference:{left:r.contentLeft+a+10,top:s}}}},OAe=t,t.id=0,t),mne=OAe=MAe([f3(5,ji)],mne)}});function nJn(e,t){return new Promise(n=>{let i;const r=setTimeout(()=>{i&&i.dispose(),n()},e);t&&(i=t.onCancellationRequested(()=>{clearTimeout(r),i&&i.dispose(),n()}))})}var D1t,Ok,g3,op,jin=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/inlineEditController.js"(){var e;Nt(),xs(),Tb(),Hi(),Dn(),QXn(),er(),li(),ra(),Eo(),Ho(),lme(),Ks(),XXn(),Fn(),sa(),Vi(),Vv(),tJn(),Vge(),Kf(),D1t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},Ok=function(t,n){return function(i,r){n(i,r,t)}},op=(e=class extends St{static get(n){return n.getContribution(g3.ID)}constructor(n,i,r,o,s,a,l,c){super(),this.editor=n,this.instantiationService=i,this.contextKeyService=r,this.languageFeaturesService=o,this._commandService=s,this._configurationService=a,this._diffProviderFactoryService=l,this._modelService=c,this._isVisibleContext=g3.inlineEditVisibleContext.bindTo(this.contextKeyService),this._isCursorAtInlineEditContext=g3.cursorAtInlineEditContext.bindTo(this.contextKeyService),this._currentEdit=mo(this,void 0),this._currentWidget=cp(this._currentEdit,g=>{const m=this._currentEdit.read(g);if(!m)return;const v=m.range.endLineNumber,y=m.range.endColumn,b=m.text.endsWith(`
`)&&!(m.range.startLineNumber===m.range.endLineNumber&&m.range.startColumn===m.range.endColumn)?m.text.slice(0,-1):m.text,w=new p9(v,[new yG(y,b,!1)]),E=m.range.startLineNumber===m.range.endLineNumber&&w.parts.length===1&&w.parts[0].lines.length===1,A=m.text==="";return!E&&!A?void 0:this.instantiationService.createInstance(Sle,this.editor,{ghostText:Uy(w),minReservedLineCount:Uy(0),targetTextModel:Uy(this.editor.getModel()??void 0),range:Uy(m.range)})}),this._isAccepting=mo(this,!1),this._enabled=Bs(this,this.editor.onDidChangeConfiguration,()=>this.editor.getOption(63).enabled),this._fontFamily=Bs(this,this.editor.onDidChangeConfiguration,()=>this.editor.getOption(63).fontFamily);const u=af("InlineEditController.modelContentChangedSignal",n.onDidChangeModelContent);this._register(Tr(g=>{this._enabled.read(g)&&(u.read(g),!this._isAccepting.read(g)&&this.getInlineEdit(n,!0))}));const d=Bs(this,n.onDidChangeCursorPosition,()=>n.getPosition());this._register(Tr(g=>{if(!this._enabled.read(g))return;const m=d.read(g);m&&this.checkCursorPosition(m)})),this._register(Tr(g=>{const m=this._currentEdit.read(g);if(this._isCursorAtInlineEditContext.set(!1),!m){this._isVisibleContext.set(!1);return}this._isVisibleContext.set(!0);const v=n.getPosition();v&&this.checkCursorPosition(v)}));const h=af("InlineEditController.editorBlurSignal",n.onDidBlurEditorWidget);this._register(Tr(async g=>{this._enabled.read(g)&&(h.read(g),!(this._configurationService.getValue("editor.experimentalInlineEdit.keepOnBlur")||n.getOption(63).keepOnBlur)&&(this._currentRequestCts?.dispose(!0),this._currentRequestCts=void 0,await this.clear(!1)))}));const f=af("InlineEditController.editorFocusSignal",n.onDidFocusEditorText);this._register(Tr(g=>{this._enabled.read(g)&&(f.read(g),this.getInlineEdit(n,!0))}));const p=this._register(JVt());this._register(Tr(g=>{const m=this._fontFamily.read(g);p.setStyle(m===""||m==="default"?"":`
.monaco-editor .inline-edit-decoration,
.monaco-editor .inline-edit-decoration-preview,
.monaco-editor .inline-edit {
	font-family: ${m};
}`)})),this._register(new xle(this.editor,this._currentWidget,this.instantiationService)),this._register(new Ele(this.editor,this._currentEdit,this.instantiationService,this._diffProviderFactoryService,this._modelService))}checkCursorPosition(n){if(!this._currentEdit){this._isCursorAtInlineEditContext.set(!1);return}const i=this._currentEdit.get();if(!i){this._isCursorAtInlineEditContext.set(!1);return}this._isCursorAtInlineEditContext.set(Re.containsPosition(i.range,n))}validateInlineEdit(n,i){if(i.text.includes(`
`)&&i.range.startLineNumber!==i.range.endLineNumber&&i.range.startColumn!==i.range.endColumn){if(i.range.startColumn!==1)return!1;const o=i.range.endLineNumber,s=i.range.endColumn,a=n.getModel()?.getLineLength(o)??0;if(s!==a+1)return!1}return!0}async fetchInlineEdit(n,i){this._currentRequestCts&&this._currentRequestCts.dispose(!0);const r=n.getModel();if(!r)return;const o=r.getVersionId(),s=this.languageFeaturesService.inlineEditProvider.all(r);if(s.length===0)return;const a=s[0];this._currentRequestCts=new bl;const l=this._currentRequestCts.token,c=i?eue.Automatic:eue.Invoke;if(i&&await nJn(50,l),l.isCancellationRequested||r.isDisposed()||r.getVersionId()!==o)return;const d=await a.provideInlineEdit(r,{triggerKind:c},l);if(d&&!(l.isCancellationRequested||r.isDisposed()||r.getVersionId()!==o)&&this.validateInlineEdit(n,d))return d}async getInlineEdit(n,i){this._isCursorAtInlineEditContext.set(!1),await this.clear();const r=await this.fetchInlineEdit(n,i);r&&this._currentEdit.set(r,void 0)}async trigger(){await this.getInlineEdit(this.editor,!1)}async jumpBack(){this._jumpBackPosition&&(this.editor.setPosition(this._jumpBackPosition),this.editor.revealPositionInCenterIfOutsideViewport(this._jumpBackPosition))}async accept(){this._isAccepting.set(!0,void 0);const n=this._currentEdit.get();if(!n)return;let i=n.text;n.text.startsWith(`
`)&&(i=n.text.substring(1)),this.editor.pushUndoStop(),this.editor.executeEdits("acceptCurrent",[pl.replace(Re.lift(n.range),i)]),n.accepted&&await this._commandService.executeCommand(n.accepted.id,...n.accepted.arguments||[]).then(void 0,Sc),this.freeEdit(n),Al(r=>{this._currentEdit.set(void 0,r),this._isAccepting.set(!1,r)})}jumpToCurrent(){this._jumpBackPosition=this.editor.getSelection()?.getStartPosition();const n=this._currentEdit.get();if(!n)return;const i=mt.lift({lineNumber:n.range.startLineNumber,column:n.range.startColumn});this.editor.setPosition(i),this.editor.revealPositionInCenterIfOutsideViewport(i)}async clear(n=!0){const i=this._currentEdit.get();i&&i?.rejected&&n&&await this._commandService.executeCommand(i.rejected.id,...i.rejected.arguments||[]).then(void 0,Sc),i&&this.freeEdit(i),this._currentEdit.set(void 0,void 0)}freeEdit(n){const i=this.editor.getModel();if(!i)return;const r=this.languageFeaturesService.inlineEditProvider.all(i);r.length!==0&&r[0].freeInlineEdit(n)}},g3=e,e.ID="editor.contrib.inlineEditController",e.inlineEditVisibleKey="inlineEditVisible",e.inlineEditVisibleContext=new Qn(e.inlineEditVisibleKey,!1),e.cursorAtInlineEditKey="cursorAtInlineEdit",e.cursorAtInlineEditContext=new Qn(e.cursorAtInlineEditKey,!1),e),op=g3=D1t([Ok(1,ji),Ok(2,ur),Ok(3,gi),Ok(4,Oa),Ok(5,co),Ok(6,d9),Ok(7,Ua)],op)}}),zin,Vin,Hin,Win,Uin,iJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/commands.js"(){mr(),ls(),KXn(),jin(),ha(),er(),zin=class extends ri{constructor(){super({id:Oin,label:"Accept Inline Edit",alias:"Accept Inline Edit",precondition:nn.and(Ge.writable,op.inlineEditVisibleContext),kbOpts:[{weight:101,primary:2,kbExpr:nn.and(Ge.writable,op.inlineEditVisibleContext,op.cursorAtInlineEditContext)}],menuOpts:[{menuId:Ti.InlineEditToolbar,title:"Accept",group:"primary",order:1}]})}async run(e,t){await op.get(t)?.accept()}},Vin=class extends ri{constructor(){const e=nn.and(Ge.writable,nn.not(op.inlineEditVisibleKey));super({id:"editor.action.inlineEdit.trigger",label:"Trigger Inline Edit",alias:"Trigger Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e}})}async run(e,t){op.get(t)?.trigger()}},Hin=class extends ri{constructor(){const e=nn.and(Ge.writable,op.inlineEditVisibleContext,nn.not(op.cursorAtInlineEditKey));super({id:Fin,label:"Jump to Inline Edit",alias:"Jump to Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e},menuOpts:[{menuId:Ti.InlineEditToolbar,title:"Jump To Edit",group:"primary",order:3,when:e}]})}async run(e,t){op.get(t)?.jumpToCurrent()}},Win=class extends ri{constructor(){const e=nn.and(Ge.writable,op.cursorAtInlineEditContext);super({id:Bin,label:"Jump Back from Inline Edit",alias:"Jump Back from Inline Edit",precondition:e,kbOpts:{weight:110,primary:2646,kbExpr:e},menuOpts:[{menuId:Ti.InlineEditToolbar,title:"Jump Back",group:"primary",order:3,when:e}]})}async run(e,t){op.get(t)?.jumpBack()}},Uin=class extends ri{constructor(){const e=nn.and(Ge.writable,op.inlineEditVisibleContext);super({id:Rin,label:"Reject Inline Edit",alias:"Reject Inline Edit",precondition:e,kbOpts:{weight:100,primary:9,kbExpr:e},menuOpts:[{menuId:Ti.InlineEditToolbar,title:"Reject",group:"secondary",order:2}]})}async run(e,t){await op.get(t)?.clear()}}}}),rJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/inlineEdit.contribution.js"(){mr(),iJn(),jin(),yn(zin),yn(Uin),yn(Hin),yn(Win),yn(Vin),qo(op.ID,op,3)}}),$in,qin,Gin,yO,Kin,Yin=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdits/browser/consts.js"(){bn(),er(),$in="editor.action.inlineEdits.accept",qin="editor.action.inlineEdits.showPrevious",Gin="editor.action.inlineEdits.showNext",yO=new Qn("inlineEditsVisible",!1,R("inlineEditsVisible","Whether an inline edit is visible")),Kin=new Qn("inlineEditsIsPinned",!1,R("isPinned","Whether an inline edit is visible"))}}),oJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdits/browser/inlineEditsWidget.css"(){}});function sJn(e,t){return CY(e,(n,i)=>i===!0?!0:t(n))}var Gde,Qin=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/placeholderText/browser/placeholderTextContribution.js"(){var e;Fn(),_T(),Nt(),xs(),Vv(),HN(),Gde=(e=class extends St{constructor(n){super(),this._editor=n,this._editorObs=dv(this._editor),this._placeholderText=this._editorObs.getOption(88),this._state=w0({owner:this,equalsFn:tde},i=>{const r=this._placeholderText.read(i);if(r&&this._editorObs.valueIsEmpty.read(i))return{placeholder:r}}),this._shouldViewBeAlive=sJn(this,i=>this._state.read(i)?.placeholder!==void 0),this._view=FN((i,r)=>{if(!this._shouldViewBeAlive.read(i))return;const o=Co("div.editorPlaceholder");r.add(Tr(s=>{const a=this._state.read(s),l=a?.placeholder!==void 0;o.root.style.display=l?"block":"none",o.root.innerText=a?.placeholder??""})),r.add(Tr(s=>{const a=this._editorObs.layoutInfo.read(s);o.root.style.left=`${a.contentLeft}px`,o.root.style.width=a.contentWidth-a.verticalScrollbarWidth+"px",o.root.style.top=`${this._editor.getTopForLineNumber(0)}px`})),r.add(Tr(s=>{o.root.style.fontFamily=this._editorObs.getOption(49).read(s),o.root.style.fontSize=this._editorObs.getOption(52).read(s)+"px",o.root.style.lineHeight=this._editorObs.getOption(67).read(s)+"px"})),r.add(this._editorObs.createOverlayWidget({allowEditorOverflow:!1,minContentWidthInPx:Uy(0),position:Uy(null),domNode:o.root}))}),this._view.recomputeInitiallyAndOnChange(this._store)}},e.ID="editor.contrib.placeholderText",e)}});function aJn(e,t,n){return bY(void 0,i=>t(e.read(i)),(i,r)=>e.set(n(i),r))}function lJn(e,t){const n=new Jt;return n.add(Tr(i=>{const r=e.read(i);t.set(r,void 0)})),n.add(Tr(i=>{const r=t.read(i);e.set(r,void 0)})),n}var T1t,k1t,Zin,Ale,m3,I1t,Xin=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdits/browser/inlineEditsWidget.js"(){Fn(),SZt(),Nt(),xs(),Vv(),oJn(),mr(),HN(),UN(),aF(),Cw(),G0(),Ac(),Ktn(),Qin(),tqe(),li(),T1t=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},k1t=function(e,t){return function(n,i){t(n,i,e)}},Zin=class{constructor(e,t,n){this.range=e,this.newLines=t,this.changes=n}},Ale=class extends St{constructor(t,n,i,r){super(),this._editor=t,this._edit=n,this._userPrompt=i,this._instantiationService=r,this._editorObs=dv(this._editor),this._elements=Co("div.inline-edits-widget",{style:{position:"absolute",overflow:"visible",top:"0px",left:"0px"}},[Co("div@editorContainer",{style:{position:"absolute",top:"0px",left:"0px",width:"500px",height:"500px"}},[Co("div.toolbar@toolbar",{style:{position:"absolute",top:"-25px",left:"0px"}}),Co("div.promptEditor@promptEditor",{style:{position:"absolute",top:"-25px",left:"80px",width:"300px",height:"22px"}}),Co("div.preview@editor",{style:{position:"absolute",top:"0px",left:"0px"}})]),S5("svg",{style:{overflow:"visible",pointerEvents:"none"}},[S5("defs",[S5("linearGradient",{id:"Gradient2",x1:"0",y1:"0",x2:"1",y2:"0"},[S5("stop",{offset:"0%",class:"gradient-stop"}),S5("stop",{offset:"100%",class:"gradient-stop"})])]),S5("path@path",{d:"",fill:"url(#Gradient2)"})])]),this._previewTextModel=this._register(this._instantiationService.createInstance(N_,"",xp,N_.DEFAULT_CREATION_OPTIONS,null)),this._setText=Fi(s=>{const a=this._edit.read(s);a&&this._previewTextModel.setValue(a.newLines.join(`
`))}).recomputeInitiallyAndOnChange(this._store),this._promptTextModel=this._register(this._instantiationService.createInstance(N_,"",xp,N_.DEFAULT_CREATION_OPTIONS,null)),this._promptEditor=this._register(this._instantiationService.createInstance(Xy,this._elements.promptEditor,{glyphMargin:!1,lineNumbers:"off",minimap:{enabled:!1},guides:{indentation:!1,bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveIndentation:!1},folding:!1,selectOnLineNumbers:!1,selectionHighlight:!1,columnSelection:!1,overviewRulerBorder:!1,overviewRulerLanes:0,lineDecorationsWidth:0,lineNumbersMinChars:0,placeholder:"Describe the change you want...",fontFamily:BUe},{contributions:uR.getSomeEditorContributions([xy.ID,Gde.ID,JM.ID]),isSimpleWidget:!0},this._editor)),this._previewEditor=this._register(this._instantiationService.createInstance(Xy,this._elements.editor,{glyphMargin:!1,lineNumbers:"off",minimap:{enabled:!1},guides:{indentation:!1,bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveIndentation:!1},folding:!1,selectOnLineNumbers:!1,selectionHighlight:!1,columnSelection:!1,overviewRulerBorder:!1,overviewRulerLanes:0,lineDecorationsWidth:0,lineNumbersMinChars:0},{contributions:[]},this._editor)),this._previewEditorObs=dv(this._previewEditor),this._decorations=Fi(this,s=>{this._setText.read(s);const a=this._edit.read(s)?.changes;if(!a)return[];const l=[],c=[];if(a.length===1&&a[0].innerChanges[0].modifiedRange.equalsRange(this._previewTextModel.getFullModelRange()))return[];for(const u of a)if(u.original.isEmpty||l.push({range:u.original.toInclusiveRange(),options:u9}),u.modified.isEmpty||c.push({range:u.modified.toInclusiveRange(),options:pG}),u.modified.isEmpty||u.original.isEmpty)u.original.isEmpty||l.push({range:u.original.toInclusiveRange(),options:jge}),u.modified.isEmpty||c.push({range:u.modified.toInclusiveRange(),options:Fge});else for(const d of u.innerChanges||[])u.original.contains(d.originalRange.startLineNumber)&&l.push({range:d.originalRange,options:d.originalRange.isEmpty()?zge:a2}),u.modified.contains(d.modifiedRange.startLineNumber)&&c.push({range:d.modifiedRange,options:d.modifiedRange.isEmpty()?Bge:gG});return c}),this._layout1=Fi(this,s=>{const a=this._editor.getModel(),l=this._edit.read(s);if(!l)return null;const c=l.range;let u=0;for(let f=c.startLineNumber;f<c.endLineNumberExclusive;f++){const p=a.getLineMaxColumn(f),g=this._editor.getOffsetForColumn(f,p);u=Math.max(u,g)}return{left:this._editor.getLayoutInfo().contentLeft+u}}),this._layout=Fi(this,s=>{const a=this._edit.read(s);if(!a)return null;const l=a.range,c=this._editorObs.scrollLeft.read(s),u=this._layout1.read(s).left+20-c,d=this._editor.getTopForLineNumber(l.startLineNumber)-this._editorObs.scrollTop.read(s),h=this._editor.getTopForLineNumber(l.endLineNumberExclusive)-this._editorObs.scrollTop.read(s),f=new m3(u,d),p=new m3(u,h),g=h-d,m=50,v=this._editor.getOption(67)*a.newLines.length,y=g-v,b=new m3(u+m,d+y/2),w=new m3(u+m,h-y/2);return{topCode:f,bottomCode:p,codeHeight:g,topEdit:b,bottomEdit:w,editHeight:v}});const o=Fi(this,s=>this._edit.read(s)!==void 0||this._userPrompt.read(s)!==void 0);this._register(HD(this._elements.root,{display:Fi(this,s=>o.read(s)?"block":"none")})),this._register(h6(this._editor.getDomNode(),this._elements.root)),this._register(dv(t).createOverlayWidget({domNode:this._elements.root,position:Uy(null),allowEditorOverflow:!1,minContentWidthInPx:Fi(s=>{const a=this._layout1.read(s)?.left;if(a===void 0)return 0;const l=this._previewEditorObs.contentWidth.read(s);return a+l})})),this._previewEditor.setModel(this._previewTextModel),this._register(this._previewEditorObs.setDecorations(this._decorations)),this._register(Tr(s=>{const a=this._layout.read(s);if(!a)return;const{topCode:l,bottomCode:c,topEdit:u,bottomEdit:d,editHeight:h}=a,f=10,p=0,g=40,m=new I1t().moveTo(l).lineTo(l.deltaX(f)).curveTo(l.deltaX(f+g),u.deltaX(-g-p),u.deltaX(-p)).lineTo(u).lineTo(d).lineTo(d.deltaX(-p)).curveTo(d.deltaX(-g-p),c.deltaX(f+g),c.deltaX(f)).lineTo(c).build();this._elements.path.setAttribute("d",m),this._elements.editorContainer.style.top=`${u.y}px`,this._elements.editorContainer.style.left=`${u.x}px`,this._elements.editorContainer.style.height=`${h}px`;const v=this._previewEditorObs.contentWidth.read(s);this._previewEditor.layout({height:h,width:v})})),this._promptEditor.setModel(this._promptTextModel),this._promptEditor.layout(),this._register(lJn(aJn(this._userPrompt,s=>s??"",s=>s),dv(this._promptEditor).value)),this._register(Tr(s=>{const a=dv(this._promptEditor).isFocused.read(s);this._elements.root.classList.toggle("focused",a)}))}},Ale=T1t([k1t(3,ji)],Ale),m3=class Jin{constructor(t,n){this.x=t,this.y=n}deltaX(t){return new Jin(this.x+t,this.y)}},I1t=class{constructor(){this._data=""}moveTo(e){return this._data+=`M ${e.x} ${e.y} `,this}lineTo(e){return this._data+=`L ${e.x} ${e.y} `,this}curveTo(e,t,n){return this._data+=`C ${e.x} ${e.y} ${t.x} ${t.y} ${n.x} ${n.y} `,this}build(){return this._data}}}}),L1t,vne,v3,Dle,N1t,P1t,cJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdits/browser/inlineEditsModel.js"(){var e;fr(),Ho(),_T(),Vi(),Nt(),xs(),Vv(),ss(),Vge(),Sg(),ra(),Eo(),Kf(),Inn(),Xin(),L1t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},vne=function(t,n){return function(i,r){n(i,r,t)}},Dle=(e=class extends St{static _createUniqueUri(){return Ui.from({scheme:"inline-edits",path:new Date().toString()+String(v3._modelId++)})}constructor(n,i,r,o,s,a,l){super(),this.textModel=n,this._textModelVersionId=i,this._selection=r,this._debounceValue=o,this.languageFeaturesService=s,this._diffProviderFactoryService=a,this._modelService=l,this._forceUpdateExplicitlySignal=R7(this),this._selectedInlineCompletionId=mo(this,void 0),this._isActive=mo(this,!1),this._originalModel=cp(()=>this._modelService.createModel("",null,v3._createUniqueUri())).keepObserved(this._store),this._modifiedModel=cp(()=>this._modelService.createModel("",null,v3._createUniqueUri())).keepObserved(this._store),this._pinnedRange=new P1t(this.textModel,this._textModelVersionId),this.isPinned=this._pinnedRange.range.map(c=>!!c),this.userPrompt=mo(this,void 0),this.inlineEdit=Fi(this,c=>this._inlineEdit.read(c)?.promiseResult.read(c)?.data),this._inlineEdit=Fi(this,c=>{const u=this.selectedInlineEdit.read(c);if(!u)return;const d=u.inlineCompletion.range;if(u.inlineCompletion.insertText.trim()==="")return;let h=u.inlineCompletion.insertText.split(/\r\n|\r|\n/);function f(v){const y=v[0].match(/^\s*/)?.[0]??"";return v.map(b=>b.replace(new RegExp("^"+y),""))}h=f(h);let g=this.textModel.getValueInRange(d).split(/\r\n|\r|\n/);g=f(g),this._originalModel.get().setValue(g.join(`
`)),this._modifiedModel.get().setValue(h.join(`
`));const m=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:"advanced"});return mWe.fromFn(async()=>{const v=await m.computeDiff(this._originalModel.get(),this._modifiedModel.get(),{computeMoves:!1,ignoreTrimWhitespace:!1,maxComputationTimeMs:1e3},no.None);if(!v.identical)return new Zin(Ur.fromRangeInclusive(d),f(h),v.changes)})}),this._fetchStore=this._register(new Jt),this._inlineEditsFetchResult=tG(this,void 0),this._inlineEdits=w0({owner:this,equalsFn:tde},c=>this._inlineEditsFetchResult.read(c)?.completions.map(u=>new N1t(u))??[]),this._fetchInlineEditsPromise=Bqt({owner:this,createEmptyChangeSummary:()=>({inlineCompletionTriggerKind:nC.Automatic}),handleChange:(c,u)=>(c.didChange(this._forceUpdateExplicitlySignal)&&(u.inlineCompletionTriggerKind=nC.Explicit),!0)},async(c,u)=>{this._fetchStore.clear(),this._forceUpdateExplicitlySignal.read(c),this._textModelVersionId.read(c);function d(m,v){return v(m)}const h=this._pinnedRange.range.read(c)??d(this._selection.read(c),m=>m.isEmpty()?void 0:m);if(!h){this._inlineEditsFetchResult.set(void 0,void 0),this.userPrompt.set(void 0,void 0);return}const f={triggerKind:u.inlineCompletionTriggerKind,selectedSuggestionInfo:void 0,userPrompt:this.userPrompt.read(c)},p=DRe(this._fetchStore);await FD(200,p);const g=await Ann(this.languageFeaturesService.inlineCompletionsProvider,h,this.textModel,f,p);p.isCancellationRequested||this._inlineEditsFetchResult.set(g,void 0)}),this._filteredInlineEditItems=w0({owner:this,equalsFn:ede()},c=>this._inlineEdits.read(c)),this.selectedInlineCompletionIndex=Fi(this,c=>{const u=this._selectedInlineCompletionId.read(c),d=this._filteredInlineEditItems.read(c),h=this._selectedInlineCompletionId===void 0?-1:d.findIndex(f=>f.semanticId===u);return h===-1?(this._selectedInlineCompletionId.set(void 0,void 0),0):h}),this.selectedInlineEdit=Fi(this,c=>{const u=this._filteredInlineEditItems.read(c),d=this.selectedInlineCompletionIndex.read(c);return u[d]}),this._register(F7(this._fetchInlineEditsPromise))}async triggerExplicitly(n){i2(n,i=>{this._isActive.set(!0,i),this._forceUpdateExplicitlySignal.trigger(i)}),await this._fetchInlineEditsPromise.get()}stop(n){i2(n,i=>{this.userPrompt.set(void 0,i),this._isActive.set(!1,i),this._inlineEditsFetchResult.set(void 0,i),this._pinnedRange.setRange(void 0,i)})}async _deltaSelectedInlineCompletionIndex(n){await this.triggerExplicitly();const i=this._filteredInlineEditItems.get()||[];if(i.length>0){const r=(this.selectedInlineCompletionIndex.get()+n+i.length)%i.length;this._selectedInlineCompletionId.set(i[r].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)}async next(){await this._deltaSelectedInlineCompletionIndex(1)}async previous(){await this._deltaSelectedInlineCompletionIndex(-1)}async accept(n){if(n.getModel()!==this.textModel)throw new ys;const i=this.selectedInlineEdit.get();i&&(n.pushUndoStop(),n.executeEdits("inlineSuggestion.accept",[i.inlineCompletion.toSingleTextEdit().toSingleEditOperation()]),this.stop())}},v3=e,e._modelId=0,e),Dle=v3=L1t([vne(4,gi),vne(5,d9),vne(6,Ua)],Dle),N1t=class{constructor(t){this.inlineCompletion=t,this.semanticId=this.inlineCompletion.hash()}},P1t=class extends St{constructor(t,n){super(),this._textModel=t,this._versionId=n,this._decorations=mo(this,[]),this.range=Fi(this,i=>{this._versionId.read(i);const r=this._decorations.read(i)[0];return r?this._textModel.getDecorationRange(r)??null:null}),this._register(zi(()=>{this._textModel.deltaDecorations(this._decorations.get(),[])}))}setRange(t,n){this._decorations.set(this._textModel.deltaDecorations(this._decorations.get(),t?[{range:t,options:{description:"trackedRange"}}]:[]),n)}}}});function uJn(e){return bY(void 0,t=>e(t).read(t),(t,n)=>{e(void 0).set(t,n)})}var M1t,x4,RAe,lx,ern=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdits/browser/inlineEditsController.js"(){var e;Nt(),xs(),Vv(),HN(),LY(),zs(),Db(),Eo(),Yin(),cJn(),Xin(),sa(),er(),li(),mJt(),M1t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},x4=function(t,n){return function(i,r){n(i,r,t)}},lx=(e=class extends St{static get(n){return n.getContribution(RAe.ID)}constructor(n,i,r,o,s,a){super(),this.editor=n,this._instantiationService=i,this._contextKeyService=r,this._debounceService=o,this._languageFeaturesService=s,this._configurationService=a,this._enabled=lGn("editor.inlineEdits.enabled",!1,this._configurationService),this._editorObs=dv(this.editor),this._selection=Fi(this,l=>this._editorObs.cursorSelection.read(l)??new Ii(1,1,1,1)),this._debounceValue=this._debounceService.for(this._languageFeaturesService.inlineCompletionsProvider,"InlineEditsDebounce",{min:50,max:50}),this.model=cp(this,l=>{if(!this._enabled.read(l)||this._editorObs.isReadonly.read(l))return;const c=this._editorObs.model.read(l);return c?this._instantiationService.createInstance(Qm(Dle,l),c,this._editorObs.versionId,this._selection,this._debounceValue):void 0}),this._hadInlineEdit=CY(this,(l,c)=>c||this.model.read(l)?.inlineEdit.read(l)!==void 0),this._widget=cp(this,l=>{if(this._hadInlineEdit.read(l))return this._instantiationService.createInstance(Qm(Ale,l),this.editor,this.model.map((c,u)=>c?.inlineEdit.read(u)),uJn(c=>this.model.read(c)?.userPrompt??mo("empty","")))}),this._register(x1(yO,this._contextKeyService,l=>!!this.model.read(l)?.inlineEdit.read(l))),this._register(x1(Kin,this._contextKeyService,l=>!!this.model.read(l)?.isPinned.read(l))),this.model.recomputeInitiallyAndOnChange(this._store),this._widget.recomputeInitiallyAndOnChange(this._store)}},RAe=e,e.ID="editor.contrib.inlineEditsController",e),lx=RAe=M1t([x4(1,ji),x4(2,ur),x4(3,Mv),x4(4,gi),x4(5,co)],lx)}});function y3(e){return{label:e.value,alias:e.original}}var trn,nrn,irn,rrn,orn,dJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdits/browser/commands.js"(){var e,t,n;ia(),xs(),qC(),mr(),UN(),ls(),Yin(),ern(),bn(),ha(),er(),trn=(e=class extends ri{constructor(){super({id:e.ID,...y3(yr("action.inlineEdits.showNext","Show Next Inline Edit")),precondition:nn.and(Ge.writable,yO),kbOpts:{weight:100,primary:606}})}async run(r,o){lx.get(o)?.model.get()?.next()}},e.ID=Gin,e),nrn=(t=class extends ri{constructor(){super({id:t.ID,...y3(yr("action.inlineEdits.showPrevious","Show Previous Inline Edit")),precondition:nn.and(Ge.writable,yO),kbOpts:{weight:100,primary:604}})}async run(r,o){lx.get(o)?.model.get()?.previous()}},t.ID=qin,t),irn=class extends ri{constructor(){super({id:"editor.action.inlineEdits.trigger",...y3(yr("action.inlineEdits.trigger","Trigger Inline Edit")),precondition:Ge.writable})}async run(i,r){const o=lx.get(r);await Mqt(async s=>{await o?.model.get()?.triggerExplicitly(s)})}},rrn=class extends ri{constructor(){super({id:$in,...y3(yr("action.inlineEdits.accept","Accept Inline Edit")),precondition:yO,menuOpts:{menuId:Ti.InlineEditsActions,title:R("inlineEditsActions","Accept Inline Edit"),group:"primary",order:1,icon:An.check},kbOpts:{primary:2058,weight:2e4,kbExpr:yO}})}async run(i,r){r instanceof Xy&&(r=r.getParentEditor());const o=lx.get(r);o&&(o.model.get()?.accept(o.editor),o.editor.focus())}},orn=(n=class extends ri{constructor(){super({id:n.ID,...y3(yr("action.inlineEdits.hide","Hide Inline Edit")),precondition:yO,kbOpts:{weight:100,primary:9}})}async run(r,o){const s=lx.get(o);Al(a=>{s?.model.get()?.stop(a)})}},n.ID="editor.action.inlineEdits.hide",n)}}),hJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdits/browser/inlineEdits.contribution.js"(){mr(),dJn(),ern(),qo(lx.ID,lx,3),yn(irn),yn(trn),yn(nrn),yn(rrn),yn(orn)}});async function srn(e,t,n,i,r){const o=e.ordered(t);for(const s of o)try{const a=await s.provideSignatureHelp(t,n,r,i);if(a)return a}catch(a){Sc(a)}}var kI,iqe=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/parameterHints/browser/provideSignatureHelp.js"(){Ho(),Vi(),as(),ss(),Hi(),ra(),Eo(),Eb(),Ks(),er(),kI={Visible:new Qn("parameterHintsVisible",!1),MultipleSignatures:new Qn("parameterHintsMultipleSignatures",!1)},Ro.registerCommand("_executeSignatureHelpProvider",async(e,...t)=>{const[n,i,r]=t;ns(Ui.isUri(n)),ns(mt.isIPosition(i)),ns(typeof r=="string"||!r);const o=e.get(gi),s=await e.get(dg).createModelReference(n);try{const a=await srn(o.signatureHelpProvider,s.object.textEditorModel,mt.lift(i),{triggerKind:Ax.Invoke,isRetrigger:!1,triggerCharacter:r},no.None);return a?(setTimeout(()=>a.dispose(),0),a.value):void 0}finally{s.dispose()}})}});function fJn(e,t){switch(t.triggerKind){case Ax.Invoke:return t;case Ax.ContentChange:return e;case Ax.TriggerCharacter:default:return t}}var Rk,arn,pJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/parameterHints/browser/parameterHintsModel.js"(){var e;fr(),Vi(),Un(),Nt(),D7(),ra(),iqe(),(function(t){t.Default={type:0};class n{constructor(o,s){this.request=o,this.previouslyActiveHints=s,this.type=2}}t.Pending=n;class i{constructor(o){this.hints=o,this.type=1}}t.Active=i})(Rk||(Rk={})),arn=(e=class extends St{constructor(n,i,r=e.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new bt),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=Rk.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new Yu),this.triggerChars=new Gq,this.retriggerChars=new Gq,this.triggerId=0,this.editor=n,this.providers=i,this.throttledDelayer=new j0(r),this._register(this.editor.onDidBlurEditorWidget(()=>this.cancel())),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(o=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(o=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(o=>this.onCursorChange(o))),this._register(this.editor.onDidChangeModelContent(o=>this.onModelContentChange())),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(o=>this.onDidType(o))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(n){this._state.type===2&&this._state.request.cancel(),this._state=n}cancel(n=!1){this.state=Rk.Default,this.throttledDelayer.cancel(),n||this._onChangedHints.fire(void 0)}trigger(n,i){const r=this.editor.getModel();if(!r||!this.providers.has(r))return;const o=++this.triggerId;this._pendingTriggers.push(n),this.throttledDelayer.trigger(()=>this.doTrigger(o),i).catch(Mr)}next(){if(this.state.type!==1)return;const n=this.state.hints.signatures.length,i=this.state.hints.activeSignature,r=i%n===n-1,o=this.editor.getOption(86).cycle;if((n<2||r)&&!o){this.cancel();return}this.updateActiveSignature(r&&o?0:i+1)}previous(){if(this.state.type!==1)return;const n=this.state.hints.signatures.length,i=this.state.hints.activeSignature,r=i===0,o=this.editor.getOption(86).cycle;if((n<2||r)&&!o){this.cancel();return}this.updateActiveSignature(r&&o?n-1:i-1)}updateActiveSignature(n){this.state.type===1&&(this.state=new Rk.Active({...this.state.hints,activeSignature:n}),this._onChangedHints.fire(this.state.hints))}async doTrigger(n){const i=this.state.type===1||this.state.type===2,r=this.getLastActiveHints();if(this.cancel(!0),this._pendingTriggers.length===0)return!1;const o=this._pendingTriggers.reduce(fJn);this._pendingTriggers=[];const s={triggerKind:o.triggerKind,triggerCharacter:o.triggerCharacter,isRetrigger:i,activeSignatureHelp:r};if(!this.editor.hasModel())return!1;const a=this.editor.getModel(),l=this.editor.getPosition();this.state=new Rk.Pending(vd(c=>srn(this.providers,a,l,s,c)),r);try{const c=await this.state.request;return n!==this.triggerId?(c?.dispose(),!1):!c||!c.value.signatures||c.value.signatures.length===0?(c?.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1):(this.state=new Rk.Active(c.value),this._lastSignatureHelpResult.value=c,this._onChangedHints.fire(this.state.hints),!0)}catch(c){return n===this.triggerId&&(this.state=Rk.Default),Mr(c),!1}}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return this.state.type===1||this.state.type===2||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars.clear(),this.retriggerChars.clear();const n=this.editor.getModel();if(n)for(const i of this.providers.ordered(n)){for(const r of i.signatureHelpTriggerCharacters||[])if(r.length){const o=r.charCodeAt(0);this.triggerChars.add(o),this.retriggerChars.add(o)}for(const r of i.signatureHelpRetriggerCharacters||[])r.length&&this.retriggerChars.add(r.charCodeAt(0))}}onDidType(n){if(!this.triggerOnType)return;const i=n.length-1,r=n.charCodeAt(i);(this.triggerChars.has(r)||this.isTriggered&&this.retriggerChars.has(r))&&this.trigger({triggerKind:Ax.TriggerCharacter,triggerCharacter:n.charAt(i)})}onCursorChange(n){n.source==="mouse"?this.cancel():this.isTriggered&&this.trigger({triggerKind:Ax.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:Ax.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(86).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}},e.DEFAULT_DELAY=120,e)}}),gJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/parameterHints/browser/parameterHints.css"(){}}),O1t,b3,FAe,Nm,R1t,F1t,Tle,mJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js"(){var e;Fn(),Ih(),vw(),ia(),Un(),Nt(),Ki(),as(),gJn(),Su(),Kd(),RN(),iqe(),bn(),er(),Ag(),ll(),X0(),Ra(),_g(),_m(),O1t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},b3=function(t,n){return function(i,r){n(i,r,t)}},Nm=In,R1t=Xa("parameter-hints-next",An.chevronDown,R("parameterHintsNextIcon","Icon for show next parameter hint.")),F1t=Xa("parameter-hints-previous",An.chevronUp,R("parameterHintsPreviousIcon","Icon for show previous parameter hint.")),Tle=(e=class extends St{constructor(n,i,r,o,s,a){super(),this.editor=n,this.model=i,this.telemetryService=a,this.renderDisposeables=this._register(new Jt),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new Lx({editor:n},s,o)),this.keyVisible=kI.Visible.bindTo(r),this.keyMultipleSignatures=kI.MultipleSignatures.bindTo(r)}createParameterHintDOMNodes(){const n=Nm(".editor-widget.parameter-hints-widget"),i=hn(n,Nm(".phwrapper"));i.tabIndex=-1;const r=hn(i,Nm(".controls")),o=hn(r,Nm(".button"+lr.asCSSSelector(F1t))),s=hn(r,Nm(".overloads")),a=hn(r,Nm(".button"+lr.asCSSSelector(R1t)));this._register(qt(o,"click",f=>{Po.stop(f),this.previous()})),this._register(qt(a,"click",f=>{Po.stop(f),this.next()}));const l=Nm(".body"),c=new N7(l,{alwaysConsumeMouseWheel:!0});this._register(c),i.appendChild(c.getDomNode());const u=hn(l,Nm(".signature")),d=hn(l,Nm(".docs"));n.style.userSelect="text",this.domNodes={element:n,signature:u,overloads:s,docs:d,scrollbar:c},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(f=>{this.visible&&this.editor.layoutContentWidget(this)}));const h=()=>{if(!this.domNodes)return;const f=this.editor.getOption(50),p=this.domNodes.element;p.style.fontSize=`${f.fontSize}px`,p.style.lineHeight=`${f.lineHeight/f.fontSize}`,p.style.setProperty("--vscode-parameterHintsWidget-editorFontFamily",f.fontFamily),p.style.setProperty("--vscode-parameterHintsWidget-editorFontFamilyDefault",ap.fontFamily)};h(),this._register(On.chain(this.editor.onDidChangeConfiguration.bind(this.editor),f=>f.filter(p=>p.hasChanged(50)))(h)),this._register(this.editor.onDidLayoutChange(f=>this.updateMaxHeight())),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(()=>{this.domNodes?.element.classList.add("visible")},100),this.editor.layoutContentWidget(this))}hide(){this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes?.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(n){if(this.renderDisposeables.clear(),!this.domNodes)return;const i=n.signatures.length>1;this.domNodes.element.classList.toggle("multiple",i),this.keyMultipleSignatures.set(i),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";const r=n.signatures[n.activeSignature];if(!r)return;const o=hn(this.domNodes.signature,Nm(".code")),s=r.parameters.length>0,a=r.activeParameter??n.activeParameter;if(s)this.renderParameters(o,r,a);else{const u=hn(o,Nm("span"));u.textContent=r.label}const l=r.parameters[a];if(l?.documentation){const u=Nm("span.documentation");if(typeof l.documentation=="string")u.textContent=l.documentation;else{const d=this.renderMarkdownDocs(l.documentation);u.appendChild(d.element)}hn(this.domNodes.docs,Nm("p",{},u))}if(r.documentation!==void 0)if(typeof r.documentation=="string")hn(this.domNodes.docs,Nm("p",{},r.documentation));else{const u=this.renderMarkdownDocs(r.documentation);hn(this.domNodes.docs,u.element)}const c=this.hasDocs(r,l);if(this.domNodes.signature.classList.toggle("has-docs",c),this.domNodes.docs.classList.toggle("empty",!c),this.domNodes.overloads.textContent=String(n.activeSignature+1).padStart(n.signatures.length.toString().length,"0")+"/"+n.signatures.length,l){let u="";const d=r.parameters[a];Array.isArray(d.label)?u=r.label.substring(d.label[0],d.label[1]):u=d.label,d.documentation&&(u+=typeof d.documentation=="string"?`, ${d.documentation}`:`, ${d.documentation.value}`),r.documentation&&(u+=typeof r.documentation=="string"?`, ${r.documentation}`:`, ${r.documentation.value}`),this.announcedLabel!==u&&(mg(R("hint","{0}, hint",u)),this.announcedLabel=u)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(n){const i=new Ah,r=this.renderDisposeables.add(this.markdownRenderer.render(n,{asyncRenderCallback:()=>{this.domNodes?.scrollbar.scanDomNode()}}));r.element.classList.add("markdown-docs");const o=i.elapsed();return o>300&&this.telemetryService.publicLog2("parameterHints.parseMarkdown",{renderDuration:o}),r}hasDocs(n,i){return!!(i&&typeof i.documentation=="string"&&RI(i.documentation).length>0||i&&typeof i.documentation=="object"&&RI(i.documentation).value.length>0||n.documentation&&typeof n.documentation=="string"&&RI(n.documentation).length>0||n.documentation&&typeof n.documentation=="object"&&RI(n.documentation.value).length>0)}renderParameters(n,i,r){const[o,s]=this.getParameterLabelOffsets(i,r),a=document.createElement("span");a.textContent=i.label.substring(0,o);const l=document.createElement("span");l.textContent=i.label.substring(o,s),l.className="parameter active";const c=document.createElement("span");c.textContent=i.label.substring(s),hn(n,a,l,c)}getParameterLabelOffsets(n,i){const r=n.parameters[i];if(r){if(Array.isArray(r.label))return r.label;if(r.label.length){const o=new RegExp(`(\\W|^)${z0(r.label)}(?=\\W|$)`,"g");o.test(n.label);const s=o.lastIndex-r.label.length;return s>=0?[s,o.lastIndex]:[0,0]}else return[0,0]}else return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return FAe.ID}updateMaxHeight(){if(!this.domNodes)return;const i=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=i;const r=this.domNodes.element.getElementsByClassName("phwrapper");r.length&&(r[0].style.maxHeight=i)}},FAe=e,e.ID="editor.widget.parameterHintsWidget",e),Tle=FAe=O1t([b3(2,ur),b3(3,Eg),b3(4,al),b3(5,uf)],Tle),Qe("editorHoverWidget.highlightForeground",uO,R("editorHoverWidgetHighlightForeground","Foreground color of the active item in the parameter hint."))}}),B1t,BAe,jAe,vM,j1t,yne,bne,vJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js"(){var e;wE(),Nt(),mr(),ls(),ra(),Eo(),pJn(),iqe(),bn(),er(),li(),mJn(),B1t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},BAe=function(t,n){return function(i,r){n(i,r,t)}},vM=(e=class extends St{static get(n){return n.getContribution(jAe.ID)}constructor(n,i,r){super(),this.editor=n,this.model=this._register(new arn(n,r.signatureHelpProvider)),this._register(this.model.onChangedHints(o=>{o?(this.widget.value.show(),this.widget.value.render(o)):this.widget.rawValue?.hide()})),this.widget=new lm(()=>this._register(i.createInstance(Tle,this.editor,this.model)))}cancel(){this.model.cancel()}previous(){this.widget.rawValue?.previous()}next(){this.widget.rawValue?.next()}trigger(n){this.model.trigger(n,0)}},jAe=e,e.ID="editor.controller.parameterHints",e),vM=jAe=B1t([BAe(1,ji),BAe(2,gi)],vM),j1t=class extends ri{constructor(){super({id:"editor.action.triggerParameterHints",label:R("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:Ge.hasSignatureHelpProvider,kbOpts:{kbExpr:Ge.editorTextFocus,primary:3082,weight:100}})}run(t,n){vM.get(n)?.trigger({triggerKind:Ax.Invoke})}},qo(vM.ID,vM,2),yn(j1t),yne=175,bne=Hd.bindToContribution(vM.get),$n(new bne({id:"closeParameterHints",precondition:kI.Visible,handler:t=>t.cancel(),kbOpts:{weight:yne,kbExpr:Ge.focus,primary:9,secondary:[1033]}})),$n(new bne({id:"showPrevParameterHint",precondition:nn.and(kI.Visible,kI.MultipleSignatures),handler:t=>t.previous(),kbOpts:{weight:yne,kbExpr:Ge.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),$n(new bne({id:"showNextParameterHint",precondition:nn.and(kI.Visible,kI.MultipleSignatures),handler:t=>t.next(),kbOpts:{weight:yne,kbExpr:Ge.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))}}),yJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/placeholderText/browser/placeholderText.css"(){}});function bJn(e,t){return class extends t{constructor(){super(...arguments),this._autorun=void 0}init(...i){this._autorun=hm((r,o)=>{const s=Qm(e(),r);o.add(this.instantiationService.createInstance(s,...i))})}dispose(){this._autorun?.dispose()}}}function _Jn(e){return Hge()?bJn(e,kle):e()}var z1t,V1t,H1t,kle,wJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/observable/common/wrapInReloadableClass.js"(){ZXt(),LY(),xs(),li(),z1t=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},V1t=function(e,t){return function(n,i){t(n,i,e)}},H1t=class{constructor(e){this.instantiationService=e}init(...e){}},kle=class extends H1t{constructor(t,n){super(n),this.init(t)}},kle=z1t([V1t(1,ji)],kle)}}),CJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js"(){yJn(),mr(),kb(),bn(),gw(),Qin(),wJn(),qo(Gde.ID,_Jn(()=>Gde),0),Qe("editor.placeholder.foreground",VGt,R("placeholderForeground","Foreground color of the placeholder text in the editor."))}}),SJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/rename/browser/renameWidget.css"(){}}),W1t,_3,U1t,bO,Ile,$1t,q1t,_ne,xJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/rename/browser/renameWidget.js"(){var e;Fn(),mf(),Ih(),_w(),Lh(),MN(),BN(),rr(),fr(),Ho(),ia(),Un(),Nt(),_g(),as(),SJn(),xb(),Hi(),Dn(),ra(),bn(),er(),tl(),wm(),wT(),ll(),Ys(),W1t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},_3=function(t,n){return function(i,r){n(i,r,t)}},U1t=!1,bO=new Qn("renameInputVisible",!1,R("renameInputVisible","Whether the rename input widget is visible")),new Qn("renameInputFocused",!1,R("renameInputFocused","Whether the rename input widget is focused")),Ile=class{constructor(n,i,r,o,s,a){this._editor=n,this._acceptKeybindings=i,this._themeService=r,this._keybindingService=o,this._logService=a,this.allowEditorOverflow=!0,this._disposables=new Jt,this._visibleContextKey=bO.bindTo(s),this._isEditingRenameCandidate=!1,this._nRenameSuggestionsInvocations=0,this._hadAutomaticRenameSuggestionsInvocation=!1,this._candidates=new Set,this._beforeFirstInputFieldEditSW=new Ah,this._inputWithButton=new q1t,this._disposables.add(this._inputWithButton),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(l=>{l.hasChanged(50)&&this._updateFont()})),this._disposables.add(r.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._domNode.appendChild(this._inputWithButton.domNode),this._renameCandidateListView=this._disposables.add(new $1t(this._domNode,{fontInfo:this._editor.getOption(50),onFocusChange:n=>{this._inputWithButton.input.value=n,this._isEditingRenameCandidate=!1},onSelectionChange:()=>{this._isEditingRenameCandidate=!1,this.acceptInput(!1)}})),this._disposables.add(this._inputWithButton.onDidInputChange(()=>{this._renameCandidateListView?.focusedCandidate!==void 0&&(this._isEditingRenameCandidate=!0),this._timeBeforeFirstInputFieldEdit??=this._beforeFirstInputFieldEditSW.elapsed(),this._renameCandidateProvidersCts?.token.isCancellationRequested===!1&&this._renameCandidateProvidersCts.cancel(),this._renameCandidateListView?.clearFocus()})),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())),this._domNode}_updateStyles(n){if(!this._domNode)return;const i=n.getColor(aR),r=n.getColor(oHe);this._domNode.style.backgroundColor=String(n.getColor(cv)??""),this._domNode.style.boxShadow=i?` 0 0 8px 2px ${i}`:"",this._domNode.style.border=r?`1px solid ${r}`:"",this._domNode.style.color=String(n.getColor(sHe)??"");const o=n.getColor(aHe);this._inputWithButton.domNode.style.backgroundColor=String(n.getColor(Lue)??""),this._inputWithButton.input.style.backgroundColor=String(n.getColor(Lue)??""),this._inputWithButton.domNode.style.borderWidth=o?"1px":"0px",this._inputWithButton.domNode.style.borderStyle=o?"solid":"none",this._inputWithButton.domNode.style.borderColor=o?.toString()??"none"}_updateFont(){if(this._domNode===void 0)return;ns(this._label!==void 0,"RenameWidget#_updateFont: _label must not be undefined given _domNode is defined"),this._editor.applyFontInfo(this._inputWithButton.input);const n=this._editor.getOption(50);this._label.style.fontSize=`${this._computeLabelFontSize(n.fontSize)}px`}_computeLabelFontSize(n){return n*.8}getPosition(){if(!this._visible||!this._editor.hasModel()||!this._editor.getDomNode())return null;const n=LL(this.getDomNode().ownerDocument.body),i=_c(this._editor.getDomNode()),r=this._getTopForPosition();this._nPxAvailableAbove=r+i.top,this._nPxAvailableBelow=n.height-this._nPxAvailableAbove;const o=this._editor.getOption(67),{totalHeight:s}=_ne.getLayoutInfo({lineHeight:o}),a=this._nPxAvailableBelow>s*6?[2,1]:[1,2];return{position:this._position,preference:a}}beforeRender(){const[n,i]=this._acceptKeybindings;return this._label.innerText=R({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",this._keybindingService.lookupKeybinding(n)?.getLabel(),this._keybindingService.lookupKeybinding(i)?.getLabel()),this._domNode.style.minWidth="200px",null}afterRender(n){if(n===null){this.cancelInput(!0,"afterRender (because position is null)");return}if(!this._editor.hasModel()||!this._editor.getDomNode())return;ns(this._renameCandidateListView),ns(this._nPxAvailableAbove!==void 0),ns(this._nPxAvailableBelow!==void 0);const i=aD(this._inputWithButton.domNode),r=aD(this._label);let o;n===2?o=this._nPxAvailableBelow:o=this._nPxAvailableAbove,this._renameCandidateListView.layout({height:o-r-i,width:Gm(this._inputWithButton.domNode)})}acceptInput(n){this._trace("invoking acceptInput"),this._currentAcceptInput?.(n)}cancelInput(n,i){this._currentCancelInput?.(n)}focusNextRenameSuggestion(){this._renameCandidateListView?.focusNext()||(this._inputWithButton.input.value=this._currentName)}focusPreviousRenameSuggestion(){this._renameCandidateListView?.focusPrevious()||(this._inputWithButton.input.value=this._currentName)}getInput(n,i,r,o,s){const{start:a,end:l}=this._getSelection(n,i);this._renameCts=s;const c=new Jt;this._nRenameSuggestionsInvocations=0,this._hadAutomaticRenameSuggestionsInvocation=!1,o===void 0?this._inputWithButton.button.style.display="none":(this._inputWithButton.button.style.display="flex",this._requestRenameCandidatesOnce=o,this._requestRenameCandidates(i,!1),c.add(qt(this._inputWithButton.button,"click",()=>this._requestRenameCandidates(i,!0))),c.add(qt(this._inputWithButton.button,kn.KEY_DOWN,d=>{const h=new Sa(d);(h.equals(3)||h.equals(10))&&(h.stopPropagation(),h.preventDefault(),this._requestRenameCandidates(i,!0))}))),this._isEditingRenameCandidate=!1,this._domNode.classList.toggle("preview",r),this._position=new mt(n.startLineNumber,n.startColumn),this._currentName=i,this._inputWithButton.input.value=i,this._inputWithButton.input.setAttribute("selectionStart",a.toString()),this._inputWithButton.input.setAttribute("selectionEnd",l.toString()),this._inputWithButton.input.size=Math.max((n.endColumn-n.startColumn)*1.1,20),this._beforeFirstInputFieldEditSW.reset(),c.add(zi(()=>{this._renameCts=void 0,s.dispose(!0)})),c.add(zi(()=>{this._renameCandidateProvidersCts!==void 0&&(this._renameCandidateProvidersCts.dispose(!0),this._renameCandidateProvidersCts=void 0)})),c.add(zi(()=>this._candidates.clear()));const u=new K2;return u.p.finally(()=>{c.dispose(),this._hide()}),this._currentCancelInput=d=>(this._trace("invoking _currentCancelInput"),this._currentAcceptInput=void 0,this._currentCancelInput=void 0,this._renameCandidateListView?.clearCandidates(),u.complete(d),!0),this._currentAcceptInput=d=>{this._trace("invoking _currentAcceptInput"),ns(this._renameCandidateListView!==void 0);const h=this._renameCandidateListView.nCandidates;let f,p;const g=this._renameCandidateListView.focusedCandidate;if(g!==void 0?(this._trace("using new name from renameSuggestion"),f=g,p={k:"renameSuggestion"}):(this._trace("using new name from inputField"),f=this._inputWithButton.input.value,p=this._isEditingRenameCandidate?{k:"userEditedRenameSuggestion"}:{k:"inputField"}),f===i||f.trim().length===0){this.cancelInput(!0,"_currentAcceptInput (because newName === value || newName.trim().length === 0)");return}this._currentAcceptInput=void 0,this._currentCancelInput=void 0,this._renameCandidateListView.clearCandidates(),u.complete({newName:f,wantsPreview:r&&d,stats:{source:p,nRenameSuggestions:h,timeBeforeFirstInputFieldEdit:this._timeBeforeFirstInputFieldEdit,nRenameSuggestionsInvocations:this._nRenameSuggestionsInvocations,hadAutomaticRenameSuggestionsInvocation:this._hadAutomaticRenameSuggestionsInvocation}})},c.add(s.token.onCancellationRequested(()=>this.cancelInput(!0,"cts.token.onCancellationRequested"))),U1t||c.add(this._editor.onDidBlurEditorWidget(()=>this.cancelInput(!this._domNode?.ownerDocument.hasFocus(),"editor.onDidBlurEditorWidget"))),this._show(),u.p}_requestRenameCandidates(n,i){if(this._requestRenameCandidatesOnce!==void 0&&(this._renameCandidateProvidersCts!==void 0&&this._renameCandidateProvidersCts.dispose(!0),ns(this._renameCts),this._inputWithButton.buttonState!=="stop")){this._renameCandidateProvidersCts=new bl;const r=i?xq.Invoke:xq.Automatic,o=this._requestRenameCandidatesOnce(r,this._renameCandidateProvidersCts.token);if(o.length===0){this._inputWithButton.setSparkleButton();return}i||(this._hadAutomaticRenameSuggestionsInvocation=!0),this._nRenameSuggestionsInvocations+=1,this._inputWithButton.setStopButton(),this._updateRenameCandidates(o,n,this._renameCts.token)}}_getSelection(n,i){ns(this._editor.hasModel());const r=this._editor.getSelection();let o=0,s=i.length;return!Re.isEmpty(r)&&!Re.spansMultipleLines(r)&&Re.containsRange(n,r)&&(o=Math.max(0,r.startColumn-n.startColumn),s=Math.min(n.endColumn,r.endColumn)-n.startColumn),{start:o,end:s}}_show(){this._trace("invoking _show"),this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(()=>{this._inputWithButton.input.focus(),this._inputWithButton.input.setSelectionRange(parseInt(this._inputWithButton.input.getAttribute("selectionStart")),parseInt(this._inputWithButton.input.getAttribute("selectionEnd")))},100)}async _updateRenameCandidates(n,i,r){const o=(...u)=>this._trace("_updateRenameCandidates",...u);o("start");const s=await UK(Promise.allSettled(n),r);if(this._inputWithButton.setSparkleButton(),s===void 0){o("returning early - received updateRenameCandidates results - undefined");return}const a=s.flatMap(u=>u.status==="fulfilled"&&Ex(u.value)?u.value:[]);o(`received updateRenameCandidates results - total (unfiltered) ${a.length} candidates.`);const l=BD(a,u=>u.newSymbolName);o(`distinct candidates - ${l.length} candidates.`);const c=l.filter(({newSymbolName:u})=>u.trim().length>0&&u!==this._inputWithButton.input.value&&u!==i&&!this._candidates.has(u));if(o(`valid distinct candidates - ${a.length} candidates.`),c.forEach(u=>this._candidates.add(u.newSymbolName)),c.length<1){o("returning early - no valid distinct candidates");return}o("setting candidates"),this._renameCandidateListView.setCandidates(c),o("asking editor to re-layout"),this._editor.layoutContentWidget(this)}_hide(){this._trace("invoked _hide"),this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}_getTopForPosition(){const n=this._editor.getVisibleRanges();let i;return n.length>0?i=n[0].startLineNumber:(this._logService.warn("RenameWidget#_getTopForPosition: this should not happen - visibleRanges is empty"),i=Math.max(1,this._position.lineNumber-5)),this._editor.getTopForLineNumber(this._position.lineNumber)-this._editor.getTopForLineNumber(i)}_trace(...n){this._logService.trace("RenameWidget",...n)}},Ile=W1t([_3(2,Ru),_3(3,Cs),_3(4,ur),_3(5,bh)],Ile),$1t=class lrn{constructor(n,i){this._disposables=new Jt,this._availableHeight=0,this._minimumWidth=0,this._lineHeight=i.fontInfo.lineHeight,this._typicalHalfwidthCharacterWidth=i.fontInfo.typicalHalfwidthCharacterWidth,this._listContainer=document.createElement("div"),this._listContainer.className="rename-box rename-candidate-list-container",n.appendChild(this._listContainer),this._listWidget=lrn._createListWidget(this._listContainer,this._candidateViewHeight,i.fontInfo),this._listWidget.onDidChangeFocus(r=>{r.elements.length===1&&i.onFocusChange(r.elements[0].newSymbolName)},this._disposables),this._listWidget.onDidChangeSelection(r=>{r.elements.length===1&&i.onSelectionChange()},this._disposables),this._disposables.add(this._listWidget.onDidBlur(r=>{this._listWidget.setFocus([])})),this._listWidget.style(PO({listInactiveFocusForeground:X8,listInactiveFocusBackground:J8}))}dispose(){this._listWidget.dispose(),this._disposables.dispose()}layout({height:n,width:i}){this._availableHeight=n,this._minimumWidth=i}setCandidates(n){this._listWidget.splice(0,0,n);const i=this._pickListHeight(this._listWidget.length),r=this._pickListWidth(n);this._listWidget.layout(i,r),this._listContainer.style.height=`${i}px`,this._listContainer.style.width=`${r}px`,eE(R("renameSuggestionsReceivedAria","Received {0} rename suggestions",n.length))}clearCandidates(){this._listContainer.style.height="0px",this._listContainer.style.width="0px",this._listWidget.splice(0,this._listWidget.length,[])}get nCandidates(){return this._listWidget.length}get focusedCandidate(){if(this._listWidget.length===0)return;const n=this._listWidget.getSelectedElements()[0];if(n!==void 0)return n.newSymbolName;const i=this._listWidget.getFocusedElements()[0];if(i!==void 0)return i.newSymbolName}focusNext(){if(this._listWidget.length===0)return!1;const n=this._listWidget.getFocus();if(n.length===0)return this._listWidget.focusFirst(),this._listWidget.reveal(0),!0;if(n[0]===this._listWidget.length-1)return this._listWidget.setFocus([]),this._listWidget.reveal(0),!1;{this._listWidget.focusNext();const i=this._listWidget.getFocus()[0];return this._listWidget.reveal(i),!0}}focusPrevious(){if(this._listWidget.length===0)return!1;const n=this._listWidget.getFocus();if(n.length===0){this._listWidget.focusLast();const i=this._listWidget.getFocus()[0];return this._listWidget.reveal(i),!0}else{if(n[0]===0)return this._listWidget.setFocus([]),!1;{this._listWidget.focusPrevious();const i=this._listWidget.getFocus()[0];return this._listWidget.reveal(i),!0}}}clearFocus(){this._listWidget.setFocus([])}get _candidateViewHeight(){const{totalHeight:n}=_ne.getLayoutInfo({lineHeight:this._lineHeight});return n}_pickListHeight(n){const i=this._candidateViewHeight*n;return Math.min(i,this._availableHeight,this._candidateViewHeight*7)}_pickListWidth(n){const i=Math.ceil(Math.max(...n.map(o=>o.newSymbolName.length))*this._typicalHalfwidthCharacterWidth);return Math.max(this._minimumWidth,25+i+10)}static _createListWidget(n,i,r){const o=new class{getTemplateId(a){return"candidate"}getHeight(a){return i}},s=new class{constructor(){this.templateId="candidate"}renderTemplate(a){return new _ne(a,r)}renderElement(a,l,c){c.populate(a)}disposeTemplate(a){a.dispose()}};return new tv("NewSymbolNameCandidates",n,o,[s],{keyboardSupport:!1,mouseSupport:!0,multipleSelectionSupport:!1})}},q1t=class{constructor(){this._onDidInputChange=new bt,this.onDidInputChange=this._onDidInputChange.event,this._disposables=new Jt}get domNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="rename-input-with-button",this._domNode.style.display="flex",this._domNode.style.flexDirection="row",this._domNode.style.alignItems="center",this._inputNode=document.createElement("input"),this._inputNode.className="rename-input",this._inputNode.type="text",this._inputNode.style.border="none",this._inputNode.setAttribute("aria-label",R("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._inputNode),this._buttonNode=document.createElement("div"),this._buttonNode.className="rename-suggestions-button",this._buttonNode.setAttribute("tabindex","0"),this._buttonGenHoverText=R("generateRenameSuggestionsButton","Generate new name suggestions"),this._buttonCancelHoverText=R("cancelRenameSuggestionsButton","Cancel"),this._buttonHover=GC().setupManagedHover(hg("element"),this._buttonNode,this._buttonGenHoverText),this._disposables.add(this._buttonHover),this._domNode.appendChild(this._buttonNode),this._disposables.add(qt(this.input,kn.INPUT,()=>this._onDidInputChange.fire())),this._disposables.add(qt(this.input,kn.KEY_DOWN,t=>{const n=new Sa(t);(n.keyCode===15||n.keyCode===17)&&this._onDidInputChange.fire()})),this._disposables.add(qt(this.input,kn.CLICK,()=>this._onDidInputChange.fire())),this._disposables.add(qt(this.input,kn.FOCUS,()=>{this.domNode.style.outlineWidth="1px",this.domNode.style.outlineStyle="solid",this.domNode.style.outlineOffset="-1px",this.domNode.style.outlineColor="var(--vscode-focusBorder)"})),this._disposables.add(qt(this.input,kn.BLUR,()=>{this.domNode.style.outline="none"}))),this._domNode}get input(){return ns(this._inputNode),this._inputNode}get button(){return ns(this._buttonNode),this._buttonNode}get buttonState(){return this._buttonState}setSparkleButton(){this._buttonState="sparkle",this._sparkleIcon??=gR(An.sparkle),Sh(this.button),this.button.appendChild(this._sparkleIcon),this.button.setAttribute("aria-label","Generating new name suggestions"),this._buttonHover?.update(this._buttonGenHoverText),this.input.focus()}setStopButton(){this._buttonState="stop",this._stopIcon??=gR(An.primitiveSquare),Sh(this.button),this.button.appendChild(this._stopIcon),this.button.setAttribute("aria-label","Cancel generating new name suggestions"),this._buttonHover?.update(this._buttonCancelHoverText),this.input.focus()}dispose(){this._disposables.dispose()}},_ne=(e=class{constructor(n,i){this._domNode=document.createElement("div"),this._domNode.className="rename-box rename-candidate",this._domNode.style.display="flex",this._domNode.style.columnGap="5px",this._domNode.style.alignItems="center",this._domNode.style.height=`${i.lineHeight}px`,this._domNode.style.padding=`${e._PADDING}px`;const r=document.createElement("div");r.style.display="flex",r.style.alignItems="center",r.style.width=r.style.height=`${i.lineHeight*.8}px`,this._domNode.appendChild(r),this._icon=gR(An.sparkle),this._icon.style.display="none",r.appendChild(this._icon),this._label=document.createElement("div"),yh(this._label,i),this._domNode.appendChild(this._label),n.appendChild(this._domNode)}populate(n){this._updateIcon(n),this._updateLabel(n)}_updateIcon(n){const i=!!n.tags?.includes(MRe.AIGenerated);this._icon.style.display=i?"inherit":"none"}_updateLabel(n){this._label.innerText=n.newSymbolName}static getLayoutInfo({lineHeight:n}){return{totalHeight:n+e._PADDING*2}}dispose(){}},e._PADDING=2,e)}});async function EJn(e,t,n,i){const r=new Lle(t,n,e),o=await r.resolveRenameLocation(no.None);return o?.rejectReason?{edits:[],rejectReason:o.rejectReason}:r.provideRenameEdits(i,no.None)}var G1t,pA,zAe,Lle,gA,K1t,wne,AJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/rename/browser/rename.js"(){var e;Ih(),fr(),Ho(),Vi(),Dg(),Nt(),as(),ss(),mr(),O7(),Ec(),Hi(),Dn(),ls(),ra(),Eo(),ige(),WN(),MY(),bn(),ha(),gT(),er(),li(),wm(),yf(),$C(),Fu(),_m(),xJn(),G1t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},pA=function(t,n){return function(i,r){n(i,r,t)}},Lle=class{constructor(t,n,i){this.model=t,this.position=n,this._providerRenameIdx=0,this._providers=i.ordered(t)}hasProvider(){return this._providers.length>0}async resolveRenameLocation(t){const n=[];for(this._providerRenameIdx=0;this._providerRenameIdx<this._providers.length;this._providerRenameIdx++){const r=this._providers[this._providerRenameIdx];if(!r.resolveRenameLocation)break;const o=await r.resolveRenameLocation(this.model,this.position,t);if(o){if(o.rejectReason){n.push(o.rejectReason);continue}return o}}this._providerRenameIdx=0;const i=this.model.getWordAtPosition(this.position);return i?{range:new Re(this.position.lineNumber,i.startColumn,this.position.lineNumber,i.endColumn),text:i.word,rejectReason:n.length>0?n.join(`
`):void 0}:{range:Re.fromPositions(this.position),text:"",rejectReason:n.length>0?n.join(`
`):void 0}}async provideRenameEdits(t,n){return this._provideRenameEdits(t,this._providerRenameIdx,[],n)}async _provideRenameEdits(t,n,i,r){const o=this._providers[n];if(!o)return{edits:[],rejectReason:i.join(`
`)};const s=await o.provideRenameEdits(this.model,this.position,t,r);if(s){if(s.rejectReason)return this._provideRenameEdits(t,n+1,i.concat(s.rejectReason),r)}else return this._provideRenameEdits(t,n+1,i.concat(R("no result","No result.")),r);return s}},gA=(e=class{static get(n){return n.getContribution(zAe.ID)}constructor(n,i,r,o,s,a,l,c,u){this.editor=n,this._instaService=i,this._notificationService=r,this._bulkEditService=o,this._progressService=s,this._logService=a,this._configService=l,this._languageFeaturesService=c,this._telemetryService=u,this._disposableStore=new Jt,this._cts=new bl,this._renameWidget=this._disposableStore.add(this._instaService.createInstance(Ile,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}async run(){const n=this._logService.trace.bind(this._logService,"[rename]");if(this._cts.dispose(!0),this._cts=new bl,!this.editor.hasModel()){n("editor has no model");return}const i=this.editor.getPosition(),r=new Lle(this.editor.getModel(),i,this._languageFeaturesService.renameProvider);if(!r.hasProvider()){n("skeleton has no provider");return}const o=new WD(this.editor,5,void 0,this._cts.token);let s;try{n("resolving rename location");const g=r.resolveRenameLocation(o.token);this._progressService.showWhile(g,250),s=await g,n("resolved rename location")}catch(g){g instanceof rb?n("resolve rename location cancelled",JSON.stringify(g,null,"	")):(n("resolve rename location failed",g instanceof Error?g:JSON.stringify(g,null,"	")),(typeof g=="string"||sC(g))&&nm.get(this.editor)?.showMessage(g||R("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),i));return}finally{o.dispose()}if(!s){n("returning early - no loc");return}if(s.rejectReason){n(`returning early - rejected with reason: ${s.rejectReason}`,s.rejectReason),nm.get(this.editor)?.showMessage(s.rejectReason,i);return}if(o.token.isCancellationRequested){n("returning early - cts1 cancelled");return}const a=new WD(this.editor,5,s.range,this._cts.token),l=this.editor.getModel(),c=this._languageFeaturesService.newSymbolNamesProvider.all(l),u=await Promise.all(c.map(async g=>[g,await g.supportsAutomaticNewSymbolNamesTriggerKind??!1])),d=(g,m)=>{let v=u.slice();return g===xq.Automatic&&(v=v.filter(([y,b])=>b)),v.map(([y])=>y.provideNewSymbolNames(l,s.range,g,m))};n("creating rename input field and awaiting its result");const h=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),f=await this._renameWidget.getInput(s.range,s.text,h,c.length>0?d:void 0,a);if(n("received response from rename input field"),c.length>0&&this._reportTelemetry(c.length,l.getLanguageId(),f),typeof f=="boolean"){n(`returning early - rename input field response - ${f}`),f&&this.editor.focus(),a.dispose();return}this.editor.focus(),n("requesting rename edits");const p=UK(r.provideRenameEdits(f.newName,a.token),a.token).then(async g=>{if(!g){n("returning early - no rename edits result");return}if(!this.editor.hasModel()){n("returning early - no model after rename edits are provided");return}if(g.rejectReason){n(`returning early - rejected with reason: ${g.rejectReason}`),this._notificationService.info(g.rejectReason);return}this.editor.setSelection(Re.fromPositions(this.editor.getSelection().getPosition())),n("applying edits"),this._bulkEditService.apply(g,{editor:this.editor,showPreview:f.wantsPreview,label:R("label","Renaming '{0}' to '{1}'",s?.text,f.newName),code:"undoredo.rename",quotableLabel:R("quotableLabel","Renaming {0} to {1}",s?.text,f.newName),respectAutoSaveConfig:!0}).then(m=>{n("edits applied"),m.ariaSummary&&mg(R("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",s.text,f.newName,m.ariaSummary))}).catch(m=>{n(`error when applying edits ${JSON.stringify(m,null,"	")}`),this._notificationService.error(R("rename.failedApply","Rename failed to apply edits")),this._logService.error(m)})},g=>{n("error when providing rename edits",JSON.stringify(g,null,"	")),this._notificationService.error(R("rename.failed","Rename failed to compute edits")),this._logService.error(g)}).finally(()=>{a.dispose()});return n("returning rename operation"),this._progressService.showWhile(p,250),p}acceptRenameInput(n){this._renameWidget.acceptInput(n)}cancelRenameInput(){this._renameWidget.cancelInput(!0,"cancelRenameInput command")}focusNextRenameSuggestion(){this._renameWidget.focusNextRenameSuggestion()}focusPreviousRenameSuggestion(){this._renameWidget.focusPreviousRenameSuggestion()}_reportTelemetry(n,i,r){const o=typeof r=="boolean"?{kind:"cancelled",languageId:i,nRenameSuggestionProviders:n}:{kind:"accepted",languageId:i,nRenameSuggestionProviders:n,source:r.stats.source.k,nRenameSuggestions:r.stats.nRenameSuggestions,timeBeforeFirstInputFieldEdit:r.stats.timeBeforeFirstInputFieldEdit,wantsPreview:r.wantsPreview,nRenameSuggestionsInvocations:r.stats.nRenameSuggestionsInvocations,hadAutomaticRenameSuggestionsInvocation:r.stats.hadAutomaticRenameSuggestionsInvocation};this._telemetryService.publicLog2("renameInvokedEvent",o)}},zAe=e,e.ID="editor.contrib.renameController",e),gA=zAe=G1t([pA(1,ji),pA(2,Cc),pA(3,M7),pA(4,jD),pA(5,bh),pA(6,Xq),pA(7,gi),pA(8,uf)],gA),K1t=class extends ri{constructor(){super({id:"editor.action.rename",label:R("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:nn.and(Ge.writable,Ge.hasRenameProvider),kbOpts:{kbExpr:Ge.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(t,n){const i=t.get(Jo),[r,o]=Array.isArray(n)&&n||[void 0,void 0];return Ui.isUri(r)&&mt.isIPosition(o)?i.openCodeEditor({resource:r},i.getActiveCodeEditor()).then(s=>{s&&(s.setPosition(o),s.invokeWithinContext(a=>(this.reportTelemetry(a,s),this.run(a,s))))},Mr):super.runCommand(t,n)}run(t,n){const i=t.get(bh),r=gA.get(n);return r?(i.trace("[RenameAction] got controller, running..."),r.run()):(i.trace("[RenameAction] returning early - controller missing"),Promise.resolve())}},qo(gA.ID,gA,4),yn(K1t),wne=Hd.bindToContribution(gA.get),$n(new wne({id:"acceptRenameInput",precondition:bO,handler:t=>t.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:nn.and(Ge.focus,nn.not("isComposing")),primary:3}})),$n(new wne({id:"acceptRenameInputWithPreview",precondition:nn.and(bO,nn.has("config.editor.rename.enablePreview")),handler:t=>t.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:nn.and(Ge.focus,nn.not("isComposing")),primary:2051}})),$n(new wne({id:"cancelRenameInput",precondition:bO,handler:t=>t.cancelRenameInput(),kbOpts:{weight:199,kbExpr:Ge.focus,primary:9,secondary:[1033]}})),Pa(class extends pp{constructor(){super({id:"focusNextRenameSuggestion",title:{...yr("focusNextRenameSuggestion","Focus Next Rename Suggestion")},precondition:bO,keybinding:[{primary:18,weight:199}]})}run(n){const i=n.get(Jo).getFocusedCodeEditor();if(!i)return;const r=gA.get(i);r&&r.focusNextRenameSuggestion()}}),Pa(class extends pp{constructor(){super({id:"focusPreviousRenameSuggestion",title:{...yr("focusPreviousRenameSuggestion","Focus Previous Rename Suggestion")},precondition:bO,keybinding:[{primary:16,weight:199}]})}run(n){const i=n.get(Jo).getFocusedCodeEditor();if(!i)return;const r=gA.get(i);r&&r.focusPreviousRenameSuggestion()}}),Xg("_executeDocumentRenameProvider",function(t,n,i,...r){const[o]=r;ns(typeof o=="string");const{renameProvider:s}=t.get(gi);return EJn(s,n,i,o)}),Xg("_executePrepareRename",async function(t,n,i){const{renameProvider:r}=t.get(gi),s=await new Lle(n,i,r).resolveRenameLocation(no.None);if(s?.rejectReason)throw new Error(s.rejectReason);return s}),ml.as(Qy.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:R("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})}});function DJn(e){return{range:e.range,options:Gr.createDynamic({description:"section-header",stickiness:3,collapseOnReplaceEdit:!0,minimap:{color:void 0,position:1,sectionHeaderStyle:e.hasSeparatorLine?2:1,sectionHeaderText:e.text}})}}var Y1t,VAe,w3,TJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.js"(){var e;fr(),Nt(),mr(),lu(),Ac(),SE(),Y1t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},VAe=function(t,n){return function(i,r){n(i,r,t)}},w3=(e=class extends St{constructor(n,i,r){super(),this.editor=n,this.languageConfigurationService=i,this.editorWorkerService=r,this.decorations=this.editor.createDecorationsCollection(),this.options=this.createOptions(n.getOption(73)),this.computePromise=null,this.currentOccurrences={},this._register(n.onDidChangeModel(o=>{this.currentOccurrences={},this.options=this.createOptions(n.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)})),this._register(n.onDidChangeModelLanguage(o=>{this.currentOccurrences={},this.options=this.createOptions(n.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)})),this._register(i.onDidChange(o=>{const s=this.editor.getModel()?.getLanguageId();s&&o.affects(s)&&(this.currentOccurrences={},this.options=this.createOptions(n.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0))})),this._register(n.onDidChangeConfiguration(o=>{this.options&&!o.hasChanged(73)||(this.options=this.createOptions(n.getOption(73)),this.updateDecorations([]),this.stop(),this.computeSectionHeaders.schedule(0))})),this._register(this.editor.onDidChangeModelContent(o=>{this.computeSectionHeaders.schedule()})),this._register(n.onDidChangeModelTokens(o=>{this.computeSectionHeaders.isScheduled()||this.computeSectionHeaders.schedule(1e3)})),this.computeSectionHeaders=this._register(new Gs(()=>{this.findSectionHeaders()},250)),this.computeSectionHeaders.schedule(0)}createOptions(n){if(!n||!this.editor.hasModel())return;const i=this.editor.getModel().getLanguageId();if(!i)return;const r=this.languageConfigurationService.getLanguageConfiguration(i).comments,o=this.languageConfigurationService.getLanguageConfiguration(i).foldingRules;if(!(!r&&!o?.markers))return{foldingRules:o,findMarkSectionHeaders:n.showMarkSectionHeaders,findRegionSectionHeaders:n.showRegionSectionHeaders}}findSectionHeaders(){if(!this.editor.hasModel()||!this.options?.findMarkSectionHeaders&&!this.options?.findRegionSectionHeaders)return;const n=this.editor.getModel();if(n.isDisposed()||n.isTooLargeForSyncing())return;const i=n.getVersionId();this.editorWorkerService.findSectionHeaders(n.uri,this.options).then(r=>{n.isDisposed()||n.getVersionId()!==i||this.updateDecorations(r)})}updateDecorations(n){const i=this.editor.getModel();i&&(n=n.filter(s=>{if(!s.shouldBeInComments)return!0;const a=i.validateRange(s.range),l=i.tokenization.getLineTokens(a.startLineNumber),c=l.findTokenIndexAtOffset(a.startColumn-1),u=l.getStandardTokenType(c);return l.getLanguageId(c)===i.getLanguageId()&&u===1}));const r=Object.values(this.currentOccurrences).map(s=>s.decorationId),o=n.map(s=>DJn(s));this.editor.changeDecorations(s=>{const a=s.deltaDecorations(r,o);this.currentOccurrences={};for(let l=0,c=a.length;l<c;l++){const u={sectionHeader:n[l],decorationId:a[l]};this.currentOccurrences[u.decorationId]=u}})}stop(){this.computeSectionHeaders.cancel(),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop(),this.decorations.clear()}},e.ID="editor.sectionHeaderDetector",e),w3=Y1t([VAe(1,yl),VAe(2,fg)],w3),qo(w3.ID,w3,1)}});function kJn(e){for(let t=0,n=e.length;t<n;t+=4){const i=e[t+0],r=e[t+1],o=e[t+2],s=e[t+3];e[t+0]=s,e[t+1]=o,e[t+2]=r,e[t+3]=i}}function IJn(e){const t=new Uint8Array(e.buffer,e.byteOffset,e.length*4);return p7t()||kJn(t),pHe.wrap(t)}function Q1t(e){const t=new Uint32Array(LJn(e));let n=0;if(t[n++]=e.id,e.type==="full")t[n++]=1,t[n++]=e.data.length,t.set(e.data,n),n+=e.data.length;else{t[n++]=2,t[n++]=e.deltas.length;for(const i of e.deltas)t[n++]=i.start,t[n++]=i.deleteCount,i.data?(t[n++]=i.data.length,t.set(i.data,n),n+=i.data.length):t[n++]=0}return IJn(t)}function LJn(e){let t=0;if(t+=2,e.type==="full")t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const n of e.deltas)n.data&&(t+=n.data.length)}return t}var NJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js"(){JK(),Xr()}});function hme(e){return e&&!!e.data}function crn(e){return e&&Array.isArray(e.edits)}function urn(e,t){return e.has(t)}function PJn(e,t){const n=e.orderedGroups(t);return n.length>0?n[0]:[]}async function drn(e,t,n,i,r){const o=PJn(e,t),s=await Promise.all(o.map(async a=>{let l,c=null;try{l=await a.provideDocumentSemanticTokens(t,a===n?i:null,r)}catch(u){c=u,l=null}return(!l||!hme(l)&&!crn(l))&&(l=null),new frn(a,l,c)}));for(const a of s){if(a.error)throw a.error;if(a.tokens)return a}return s.length>0?s[0]:null}function MJn(e,t){const n=e.orderedGroups(t);return n.length>0?n[0]:null}function OJn(e,t){return e.has(t)}function hrn(e,t){const n=e.orderedGroups(t);return n.length>0?n[0]:[]}async function P8e(e,t,n,i){const r=hrn(e,t),o=await Promise.all(r.map(async s=>{let a;try{a=await s.provideDocumentRangeSemanticTokens(t,n,i)}catch(l){Sc(l),a=null}return(!a||!hme(a))&&(a=null),new prn(s,a)}));for(const s of o)if(s.tokens)return s;return o.length>0?o[0]:null}var frn,prn,grn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/semanticTokens/common/getSemanticTokens.js"(){Ho(),Vi(),ss(),Kf(),Ks(),as(),NJn(),Dn(),Eo(),frn=class{constructor(e,t,n){this.provider=e,this.tokens=t,this.error=n}},prn=class{constructor(e,t){this.provider=e,this.tokens=t}},Ro.registerCommand("_provideDocumentSemanticTokensLegend",async(e,...t)=>{const[n]=t;ns(n instanceof Ui);const i=e.get(Ua).getModel(n);if(!i)return;const{documentSemanticTokensProvider:r}=e.get(gi),o=MJn(r,i);return o?o[0].getLegend():e.get(Oa).executeCommand("_provideDocumentRangeSemanticTokensLegend",n)}),Ro.registerCommand("_provideDocumentSemanticTokens",async(e,...t)=>{const[n]=t;ns(n instanceof Ui);const i=e.get(Ua).getModel(n);if(!i)return;const{documentSemanticTokensProvider:r}=e.get(gi);if(!urn(r,i))return e.get(Oa).executeCommand("_provideDocumentRangeSemanticTokens",n,i.getFullModelRange());const o=await drn(r,i,null,null,no.None);if(!o)return;const{provider:s,tokens:a}=o;if(!a||!hme(a))return;const l=Q1t({id:0,type:"full",data:a.data});return a.resultId&&s.releaseDocumentSemanticTokens(a.resultId),l}),Ro.registerCommand("_provideDocumentRangeSemanticTokensLegend",async(e,...t)=>{const[n,i]=t;ns(n instanceof Ui);const r=e.get(Ua).getModel(n);if(!r)return;const{documentRangeSemanticTokensProvider:o}=e.get(gi),s=hrn(o,r);if(s.length===0)return;if(s.length===1)return s[0].getLegend();if(!i||!Re.isIRange(i))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),s[0].getLegend();const a=await P8e(o,r,Re.lift(i),no.None);if(a)return a.provider.getLegend()}),Ro.registerCommand("_provideDocumentRangeSemanticTokens",async(e,...t)=>{const[n,i]=t;ns(n instanceof Ui),ns(Re.isIRange(i));const r=e.get(Ua).getModel(n);if(!r)return;const{documentRangeSemanticTokensProvider:o}=e.get(gi),s=await P8e(o,r,Re.lift(i),no.None);if(!(!s||!s.tokens))return Q1t({id:0,type:"full",data:s.tokens.data})})}});function Nle(e,t,n){const i=n.getValue(fme,{overrideIdentifier:e.getLanguageId(),resource:e.uri})?.enabled;return typeof i=="boolean"?i:t.getColorTheme().semanticHighlighting}var fme,mrn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/semanticTokens/common/semanticTokensConfig.js"(){fme="editor.semanticHighlighting"}}),HAe,l1,Fk,Cne,Sne,Z1t,RJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js"(){var e;Nt(),Vi(),Kf(),sa(),fr(),Ho(),Ys(),zHe(),grn(),Db(),_g(),Eo(),VHe(),oF(),mrn(),HAe=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},l1=function(t,n){return function(i,r){n(i,r,t)}},Cne=class extends St{constructor(n,i,r,o,s,a){super(),this._watchers=Object.create(null);const l=d=>{this._watchers[d.uri.toString()]=new Sne(d,n,r,s,a)},c=(d,h)=>{h.dispose(),delete this._watchers[d.uri.toString()]},u=()=>{for(const d of i.getModels()){const h=this._watchers[d.uri.toString()];Nle(d,r,o)?h||l(d):h&&c(d,h)}};i.getModels().forEach(d=>{Nle(d,r,o)&&l(d)}),this._register(i.onModelAdded(d=>{Nle(d,r,o)&&l(d)})),this._register(i.onModelRemoved(d=>{const h=this._watchers[d.uri.toString()];h&&c(d,h)})),this._register(o.onDidChangeConfiguration(d=>{d.affectsConfiguration(fme)&&u()})),this._register(r.onDidColorThemeChange(u))}dispose(){for(const n of Object.values(this._watchers))n.dispose();super.dispose()}},Cne=HAe([l1(0,Jq),l1(1,Ua),l1(2,Ru),l1(3,co),l1(4,Mv),l1(5,gi)],Cne),Sne=(e=class extends St{constructor(n,i,r,o,s){super(),this._semanticTokensStylingService=i,this._isDisposed=!1,this._model=n,this._provider=s.documentSemanticTokensProvider,this._debounceInformation=o.for(this._provider,"DocumentSemanticTokens",{min:Fk.REQUEST_MIN_DELAY,max:Fk.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new Gs(()=>this._fetchDocumentSemanticTokensNow(),Fk.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._providersChangedDuringRequest=!1,this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeAttached(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeLanguage(()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)}));const a=()=>{xa(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const l of this._provider.all(n))typeof l.onDidChange=="function"&&this._documentProvidersChangeListeners.push(l.onDidChange(()=>{if(this._currentDocumentRequestCancellationTokenSource){this._providersChangedDuringRequest=!0;return}this._fetchDocumentSemanticTokens.schedule(0)}))};a(),this._register(this._provider.onDidChange(()=>{a(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(r.onDidColorThemeChange(l=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),xa(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[],this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!urn(this._provider,this._model)){this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1);return}if(!this._model.isAttachedToEditor())return;const n=new bl,i=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,r=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,o=drn(this._provider,this._model,i,r,n.token);this._currentDocumentRequestCancellationTokenSource=n,this._providersChangedDuringRequest=!1;const s=[],a=this._model.onDidChangeContent(c=>{s.push(c)}),l=new Ah(!1);o.then(c=>{if(this._debounceInformation.update(this._model,l.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,a.dispose(),!c)this._setDocumentSemanticTokens(null,null,null,s);else{const{provider:u,tokens:d}=c,h=this._semanticTokensStylingService.getStyling(u);this._setDocumentSemanticTokens(u,d||null,h,s)}},c=>{c&&(bb(c)||typeof c.message=="string"&&c.message.indexOf("busy")!==-1)||Mr(c),this._currentDocumentRequestCancellationTokenSource=null,a.dispose(),(s.length>0||this._providersChangedDuringRequest)&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))})}static _copy(n,i,r,o,s){s=Math.min(s,r.length-o,n.length-i);for(let a=0;a<s;a++)r[o+a]=n[i+a]}_setDocumentSemanticTokens(n,i,r,o){const s=this._currentDocumentResponse,a=()=>{(o.length>0||this._providersChangedDuringRequest)&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed){n&&i&&n.releaseDocumentSemanticTokens(i.resultId);return}if(!n||!r){this._model.tokenization.setSemanticTokens(null,!1);return}if(!i){this._model.tokenization.setSemanticTokens(null,!0),a();return}if(crn(i)){if(!s){this._model.tokenization.setSemanticTokens(null,!0);return}if(i.edits.length===0)i={resultId:i.resultId,data:s.data};else{let l=0;for(const f of i.edits)l+=(f.data?f.data.length:0)-f.deleteCount;const c=s.data,u=new Uint32Array(c.length+l);let d=c.length,h=u.length;for(let f=i.edits.length-1;f>=0;f--){const p=i.edits[f];if(p.start>c.length){r.warnInvalidEditStart(s.resultId,i.resultId,f,p.start,c.length),this._model.tokenization.setSemanticTokens(null,!0);return}const g=d-(p.start+p.deleteCount);g>0&&(Fk._copy(c,d-g,u,h-g,g),h-=g),p.data&&(Fk._copy(p.data,0,u,h-p.data.length,p.data.length),h-=p.data.length),d=p.start}d>0&&Fk._copy(c,0,u,0,d),i={resultId:i.resultId,data:u}}}if(hme(i)){this._currentDocumentResponse=new Z1t(n,i.resultId,i.data);const l=a$t(i,r,this._model.getLanguageId());if(o.length>0)for(const c of o)for(const u of l)for(const d of c.changes)u.applyEdit(d.range,d.text);this._model.tokenization.setSemanticTokens(l,!0)}else this._model.tokenization.setSemanticTokens(null,!0);a()}},Fk=e,e.REQUEST_MIN_DELAY=300,e.REQUEST_MAX_DELAY=2e3,e),Sne=Fk=HAe([l1(1,Jq),l1(2,Ru),l1(3,Mv),l1(4,gi)],Sne),Z1t=class{constructor(t,n,i){this.provider=t,this.resultId=n,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}},W7(Cne)}}),X1t,E4,C3,FJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/semanticTokens/browser/viewportSemanticTokens.js"(){var e;fr(),Nt(),mr(),grn(),mrn(),zHe(),sa(),Ys(),Db(),_g(),Eo(),VHe(),X1t=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},E4=function(t,n){return function(i,r){n(i,r,t)}},C3=(e=class extends St{constructor(n,i,r,o,s,a){super(),this._semanticTokensStylingService=i,this._themeService=r,this._configurationService=o,this._editor=n,this._provider=a.documentRangeSemanticTokensProvider,this._debounceInformation=s.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new Gs(()=>this._tokenizeViewportNow(),100)),this._outstandingRequests=[];const l=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange(()=>{l()})),this._register(this._editor.onDidChangeModel(()=>{this._cancelAll(),l()})),this._register(this._editor.onDidChangeModelContent(c=>{this._cancelAll(),l()})),this._register(this._provider.onDidChange(()=>{this._cancelAll(),l()})),this._register(this._configurationService.onDidChangeConfiguration(c=>{c.affectsConfiguration(fme)&&(this._cancelAll(),l())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),l()})),l()}_cancelAll(){for(const n of this._outstandingRequests)n.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(n){for(let i=0,r=this._outstandingRequests.length;i<r;i++)if(this._outstandingRequests[i]===n){this._outstandingRequests.splice(i,1);return}}_tokenizeViewportNow(){if(!this._editor.hasModel())return;const n=this._editor.getModel();if(n.tokenization.hasCompleteSemanticTokens())return;if(!Nle(n,this._themeService,this._configurationService)){n.tokenization.hasSomeSemanticTokens()&&n.tokenization.setSemanticTokens(null,!1);return}if(!OJn(this._provider,n)){n.tokenization.hasSomeSemanticTokens()&&n.tokenization.setSemanticTokens(null,!1);return}const i=this._editor.getVisibleRangesPlusViewportAboveBelow();this._outstandingRequests=this._outstandingRequests.concat(i.map(r=>this._requestRange(n,r)))}_requestRange(n,i){const r=n.getVersionId(),o=vd(a=>Promise.resolve(P8e(this._provider,n,i,a))),s=new Ah(!1);return o.then(a=>{if(this._debounceInformation.update(n,s.elapsed()),!a||!a.tokens||n.isDisposed()||n.getVersionId()!==r)return;const{provider:l,tokens:c}=a,u=this._semanticTokensStylingService.getStyling(l);n.tokenization.setPartialSemanticTokens(i,a$t(c,u,n.getLanguageId()))}).then(()=>this._removeOutstandingRequest(o),()=>this._removeOutstandingRequest(o)),o}},e.ID="editor.contrib.viewportSemanticTokens",e),C3=X1t([E4(1,Jq),E4(2,Ru),E4(3,co),E4(4,Mv),E4(5,gi)],C3),qo(C3.ID,C3,1)}}),vrn,BJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/smartSelect/browser/wordSelections.js"(){Ki(),Dn(),vrn=class{constructor(e=!0){this.selectSubwords=e}provideSelectionRanges(e,t){const n=[];for(const i of t){const r=[];n.push(r),this.selectSubwords&&this._addInWordRanges(r,e,i),this._addWordRanges(r,e,i),this._addWhitespaceLine(r,e,i),r.push({range:e.getFullModelRange()})}return n}_addInWordRanges(e,t,n){const i=t.getWordAtPosition(n);if(!i)return;const{word:r,startColumn:o}=i,s=n.column-o;let a=s,l=s,c=0;for(;a>=0;a--){const u=r.charCodeAt(a);if(a!==s&&(u===95||u===45))break;if(jI(u)&&ex(c))break;c=u}for(a+=1;l<r.length;l++){const u=r.charCodeAt(l);if(ex(u)&&jI(c))break;if(u===95||u===45)break;c=u}a<l&&e.push({range:new Re(n.lineNumber,o+a,n.lineNumber,o+l)})}_addWordRanges(e,t,n){const i=t.getWordAtPosition(n);i&&e.push({range:new Re(n.lineNumber,i.startColumn,n.lineNumber,i.endColumn)})}_addWhitespaceLine(e,t,n){t.getLineLength(n.lineNumber)>0&&t.getLineFirstNonWhitespaceColumn(n.lineNumber)===0&&t.getLineLastNonWhitespaceColumn(n.lineNumber)===0&&e.push({range:new Re(n.lineNumber,1,n.lineNumber,t.getLineMaxColumn(n.lineNumber))})}}}});async function J1t(e,t,n,i,r){const o=e.all(t).concat(new vrn(i.selectSubwords));o.length===1&&o.unshift(new Z$e);const s=[],a=[];for(const l of o)s.push(Promise.resolve(l.provideSelectionRanges(t,n,r)).then(c=>{if(Sp(c)&&c.length===n.length)for(let u=0;u<n.length;u++){a[u]||(a[u]=[]);for(const d of c[u])Re.isIRange(d.range)&&Re.containsPosition(d.range,n[u])&&a[u].push(Re.lift(d.range))}},Sc));return await Promise.all(s),a.map(l=>{if(l.length===0)return[];l.sort((h,f)=>mt.isBefore(h.getStartPosition(),f.getStartPosition())?1:mt.isBefore(f.getStartPosition(),h.getStartPosition())||mt.isBefore(h.getEndPosition(),f.getEndPosition())?-1:mt.isBefore(f.getEndPosition(),h.getEndPosition())?1:0);const c=[];let u;for(const h of l)(!u||Re.containsRange(h,u)&&!Re.equalsRange(h,u))&&(c.push(h),u=h);if(!i.selectLeadingAndTrailingWhitespace)return c;const d=[c[0]];for(let h=1;h<c.length;h++){const f=c[h-1],p=c[h];if(p.startLineNumber!==f.startLineNumber||p.endLineNumber!==f.endLineNumber){const g=new Re(f.startLineNumber,t.getLineFirstNonWhitespaceColumn(f.startLineNumber),f.endLineNumber,t.getLineLastNonWhitespaceColumn(f.endLineNumber));g.containsRange(f)&&!g.equalsRange(f)&&p.containsRange(g)&&!p.equalsRange(g)&&d.push(g);const m=new Re(f.startLineNumber,1,f.endLineNumber,t.getLineMaxColumn(f.endLineNumber));m.containsRange(f)&&!m.equalsRange(g)&&p.containsRange(m)&&!p.equalsRange(m)&&d.push(m)}d.push(p)}return d})}var eCt,tCt,WAe,nCt,A4,UAe,iCt,rCt,jJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js"(){var e;rr(),Ho(),Vi(),mr(),Hi(),Dn(),zs(),ls(),Fnn(),BJn(),bn(),ha(),Ks(),Eo(),Eb(),as(),ss(),eCt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},tCt=function(t,n){return function(i,r){n(i,r,t)}},nCt=class yrn{constructor(n,i){this.index=n,this.ranges=i}mov(n){const i=this.index+(n?1:-1);if(i<0||i>=this.ranges.length)return this;const r=new yrn(i,this.ranges);return r.ranges[i].equalsRange(this.ranges[this.index])?r.mov(n):r}},A4=(e=class{static get(n){return n.getContribution(WAe.ID)}constructor(n,i){this._editor=n,this._languageFeaturesService=i,this._ignoreSelection=!1}dispose(){this._selectionListener?.dispose()}async run(n){if(!this._editor.hasModel())return;const i=this._editor.getSelections(),r=this._editor.getModel();if(this._state||await J1t(this._languageFeaturesService.selectionRangeProvider,r,i.map(s=>s.getPosition()),this._editor.getOption(114),no.None).then(s=>{if(!(!Sp(s)||s.length!==i.length)&&!(!this._editor.hasModel()||!vl(this._editor.getSelections(),i,(a,l)=>a.equalsSelection(l)))){for(let a=0;a<s.length;a++)s[a]=s[a].filter(l=>l.containsPosition(i[a].getStartPosition())&&l.containsPosition(i[a].getEndPosition())),s[a].unshift(i[a]);this._state=s.map(a=>new nCt(0,a)),this._selectionListener?.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition(()=>{this._ignoreSelection||(this._selectionListener?.dispose(),this._state=void 0)})}}),!this._state)return;this._state=this._state.map(s=>s.mov(n));const o=this._state.map(s=>Ii.fromPositions(s.ranges[s.index].getStartPosition(),s.ranges[s.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(o)}finally{this._ignoreSelection=!1}}},WAe=e,e.ID="editor.contrib.smartSelectController",e),A4=WAe=eCt([tCt(1,gi)],A4),UAe=class extends ri{constructor(t,n){super(n),this._forward=t}async run(t,n){const i=A4.get(n);i&&await i.run(this._forward)}},iCt=class extends UAe{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:R("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:Ge.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:Ti.MenubarSelectionMenu,group:"1_basic",title:R({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}},Ro.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand"),rCt=class extends UAe{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:R("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:Ge.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:Ti.MenubarSelectionMenu,group:"1_basic",title:R({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}},qo(A4.ID,A4,4),yn(iCt),yn(rCt),Ro.registerCommand("_executeSelectionRangeProvider",async function(t,...n){const[i,r]=n;ns(Ui.isUri(i));const o=t.get(gi).selectionRangeProvider,s=await t.get(dg).createModelReference(i);try{return J1t(o,s.object.textEditorModel,r,{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},no.None)}finally{s.dispose()}})}}),brn,zJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/action/common/actionCommonCategories.js"(){bn(),brn=Object.freeze({View:yr("view","View"),Help:yr("help","Help"),Test:yr("test","Test"),File:yr("file","File"),Preferences:yr("preferences","Preferences"),Developer:yr({key:"developer",comment:["A developer on Code itself or someone diagnosing issues in Code"]},"Developer")})}}),VJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScroll.css"(){}}),Ple,$Ae,xne,qAe,oCt,GAe,_rn,sCt,aCt,HJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js"(){Fn(),pT(),rr(),Nt(),Ra(),VJn(),CHe(),UN(),Hi(),TN(),E7(),X2(),ynn(),Ple=class wrn{constructor(t,n,i,r=null){this.startLineNumbers=t,this.endLineNumbers=n,this.lastLineRelativePosition=i,this.showEndForLine=r}equals(t){return!!t&&this.lastLineRelativePosition===t.lastLineRelativePosition&&this.showEndForLine===t.showEndForLine&&vl(this.startLineNumbers,t.startLineNumbers)&&vl(this.endLineNumbers,t.endLineNumbers)}static get Empty(){return new wrn([],[],0)}},$Ae=fT("stickyScrollViewLayer",{createHTML:e=>e}),xne="data-sticky-line-index",qAe="data-sticky-is-line",oCt="data-sticky-is-line-number",GAe="data-sticky-is-folding-icon",_rn=class extends St{constructor(e){super(),this._editor=e,this._foldingIconStore=new Jt,this._rootDomNode=document.createElement("div"),this._lineNumbersDomNode=document.createElement("div"),this._linesDomNodeScrollable=document.createElement("div"),this._linesDomNode=document.createElement("div"),this._lineHeight=this._editor.getOption(67),this._renderedStickyLines=[],this._lineNumbers=[],this._lastLineRelativePosition=0,this._minContentWidthInPx=0,this._isOnGlyphMargin=!1,this._lineNumbersDomNode.className="sticky-widget-line-numbers",this._lineNumbersDomNode.setAttribute("role","none"),this._linesDomNode.className="sticky-widget-lines",this._linesDomNode.setAttribute("role","list"),this._linesDomNodeScrollable.className="sticky-widget-lines-scrollable",this._linesDomNodeScrollable.appendChild(this._linesDomNode),this._rootDomNode.className="sticky-widget",this._rootDomNode.classList.toggle("peek",e instanceof Xy),this._rootDomNode.appendChild(this._lineNumbersDomNode),this._rootDomNode.appendChild(this._linesDomNodeScrollable);const t=()=>{this._linesDomNode.style.left=this._editor.getOption(116).scrollWithEditor?`-${this._editor.getScrollLeft()}px`:"0px"};this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(116)&&t(),n.hasChanged(67)&&(this._lineHeight=this._editor.getOption(67))})),this._register(this._editor.onDidScrollChange(n=>{n.scrollLeftChanged&&t(),n.scrollWidthChanged&&this._updateWidgetWidth()})),this._register(this._editor.onDidChangeModel(()=>{t(),this._updateWidgetWidth()})),this._register(this._foldingIconStore),t(),this._register(this._editor.onDidLayoutChange(n=>{this._updateWidgetWidth()})),this._updateWidgetWidth()}get lineNumbers(){return this._lineNumbers}get lineNumberCount(){return this._lineNumbers.length}getRenderedStickyLine(e){return this._renderedStickyLines.find(t=>t.lineNumber===e)}getCurrentLines(){return this._lineNumbers}setState(e,t,n){if(n===void 0&&(!this._previousState&&!e||this._previousState&&this._previousState.equals(e)))return;const i=this._isWidgetHeightZero(e),r=i?void 0:e,o=i?0:this._findLineToRebuildWidgetFrom(e,n);this._renderRootNode(r,t,o),this._previousState=e}_isWidgetHeightZero(e){if(!e)return!0;const t=e.startLineNumbers.length*this._lineHeight+e.lastLineRelativePosition;if(t>0){this._lastLineRelativePosition=e.lastLineRelativePosition;const n=[...e.startLineNumbers];e.showEndForLine!==null&&(n[e.showEndForLine]=e.endLineNumbers[e.showEndForLine]),this._lineNumbers=n}else this._lastLineRelativePosition=0,this._lineNumbers=[];return t===0}_findLineToRebuildWidgetFrom(e,t){if(!e||!this._previousState)return 0;if(t!==void 0)return t;const n=this._previousState,i=e.startLineNumbers.findIndex(r=>!n.startLineNumbers.includes(r));return i===-1?0:i}_updateWidgetWidth(){const e=this._editor.getLayoutInfo(),t=e.contentLeft;this._lineNumbersDomNode.style.width=`${t}px`,this._linesDomNodeScrollable.style.setProperty("--vscode-editorStickyScroll-scrollableWidth",`${this._editor.getScrollWidth()-e.verticalScrollbarWidth}px`),this._rootDomNode.style.width=`${e.width-e.verticalScrollbarWidth}px`}_clearStickyLinesFromLine(e){this._foldingIconStore.clear();for(let t=e;t<this._renderedStickyLines.length;t++){const n=this._renderedStickyLines[t];n.lineNumberDomNode.remove(),n.lineDomNode.remove()}this._renderedStickyLines=this._renderedStickyLines.slice(0,e),this._rootDomNode.style.display="none"}_useFoldingOpacityTransition(e){this._lineNumbersDomNode.style.setProperty("--vscode-editorStickyScroll-foldingOpacityTransition",`opacity ${e?.5:0}s`)}_setFoldingIconsVisibility(e){for(const t of this._renderedStickyLines){const n=t.foldingIcon;n&&n.setVisible(e?!0:n.isCollapsed)}}async _renderRootNode(e,t,n){if(this._clearStickyLinesFromLine(n),!e)return;for(const s of this._renderedStickyLines)this._updateTopAndZIndexOfStickyLine(s);const i=this._editor.getLayoutInfo(),r=this._lineNumbers.slice(n);for(const[s,a]of r.entries()){const l=this._renderChildNode(s+n,a,t,i);l&&(this._linesDomNode.appendChild(l.lineDomNode),this._lineNumbersDomNode.appendChild(l.lineNumberDomNode),this._renderedStickyLines.push(l))}t&&(this._setFoldingHoverListeners(),this._useFoldingOpacityTransition(!this._isOnGlyphMargin));const o=this._lineNumbers.length*this._lineHeight+this._lastLineRelativePosition;this._rootDomNode.style.display="block",this._lineNumbersDomNode.style.height=`${o}px`,this._linesDomNodeScrollable.style.height=`${o}px`,this._rootDomNode.style.height=`${o}px`,this._rootDomNode.style.marginLeft="0px",this._minContentWidthInPx=Math.max(...this._renderedStickyLines.map(s=>s.scrollWidth))+i.verticalScrollbarWidth,this._editor.layoutOverlayWidget(this)}_setFoldingHoverListeners(){this._editor.getOption(111)==="mouseover"&&(this._foldingIconStore.add(qt(this._lineNumbersDomNode,kn.MOUSE_ENTER,()=>{this._isOnGlyphMargin=!0,this._setFoldingIconsVisibility(!0)})),this._foldingIconStore.add(qt(this._lineNumbersDomNode,kn.MOUSE_LEAVE,()=>{this._isOnGlyphMargin=!1,this._useFoldingOpacityTransition(!0),this._setFoldingIconsVisibility(!1)})))}_renderChildNode(e,t,n,i){const r=this._editor._getViewModel();if(!r)return;const o=r.coordinatesConverter.convertModelPositionToViewPosition(new mt(t,1)).lineNumber,s=r.getViewLineRenderingData(o),a=this._editor.getOption(68);let l;try{l=sb.filter(s.inlineDecorations,o,s.minColumn,s.maxColumn)}catch{l=[]}const c=new hT(!0,!0,s.content,s.continuesWithWrappedLine,s.isBasicASCII,s.containsRTL,0,s.tokens,l,s.tabSize,s.startVisibleColumn,1,1,1,500,"none",!0,!0,null),u=new Z2(2e3),d=eY(c,u);let h;$Ae?h=$Ae.createHTML(u.build()):h=u.build();const f=document.createElement("span");f.setAttribute(xne,String(e)),f.setAttribute(qAe,""),f.setAttribute("role","listitem"),f.tabIndex=0,f.className="sticky-line-content",f.classList.add(`stickyLine${t}`),f.style.lineHeight=`${this._lineHeight}px`,f.innerHTML=h;const p=document.createElement("span");p.setAttribute(xne,String(e)),p.setAttribute(oCt,""),p.className="sticky-line-number",p.style.lineHeight=`${this._lineHeight}px`;const g=i.contentLeft;p.style.width=`${g}px`;const m=document.createElement("span");a.renderType===1||a.renderType===3&&t%10===0?m.innerText=t.toString():a.renderType===2&&(m.innerText=Math.abs(t-this._editor.getPosition().lineNumber).toString()),m.className="sticky-line-number-inner",m.style.lineHeight=`${this._lineHeight}px`,m.style.width=`${i.lineNumbersWidth}px`,m.style.paddingLeft=`${i.lineNumbersLeft}px`,p.appendChild(m);const v=this._renderFoldingIconForLine(n,t);v&&p.appendChild(v.domNode),this._editor.applyFontInfo(f),this._editor.applyFontInfo(m),p.style.lineHeight=`${this._lineHeight}px`,f.style.lineHeight=`${this._lineHeight}px`,p.style.height=`${this._lineHeight}px`,f.style.height=`${this._lineHeight}px`;const y=new sCt(e,t,f,p,v,d.characterMapping,f.scrollWidth);return this._updateTopAndZIndexOfStickyLine(y)}_updateTopAndZIndexOfStickyLine(e){const t=e.index,n=e.lineDomNode,i=e.lineNumberDomNode,r=t===this._lineNumbers.length-1,o="0",s="1";n.style.zIndex=r?o:s,i.style.zIndex=r?o:s;const a=`${t*this._lineHeight+this._lastLineRelativePosition+(e.foldingIcon?.isCollapsed?1:0)}px`,l=`${t*this._lineHeight}px`;return n.style.top=r?a:l,i.style.top=r?a:l,e}_renderFoldingIconForLine(e,t){const n=this._editor.getOption(111);if(!e||n==="never")return;const i=e.regions,r=i.findRange(t),o=i.getStartLineNumber(r);if(!(t===o))return;const a=i.isCollapsed(r),l=new aCt(a,o,i.getEndLineNumber(r),this._lineHeight);return l.setVisible(this._isOnGlyphMargin?!0:a||n==="always"),l.domNode.setAttribute(GAe,""),l}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this._rootDomNode}getPosition(){return{preference:2,stackOridinal:10}}getMinContentWidthInPx(){return this._minContentWidthInPx}focusLineWithIndex(e){0<=e&&e<this._renderedStickyLines.length&&this._renderedStickyLines[e].lineDomNode.focus()}getEditorPositionFromNode(e){if(!e||e.children.length>0)return null;const t=this._getRenderedStickyLineFromChildDomNode(e);if(!t)return null;const n=x5e(t.characterMapping,e,0);return new mt(t.lineNumber,n)}getLineNumberFromChildDomNode(e){return this._getRenderedStickyLineFromChildDomNode(e)?.lineNumber??null}_getRenderedStickyLineFromChildDomNode(e){const t=this.getLineIndexFromChildDomNode(e);return t===null||t<0||t>=this._renderedStickyLines.length?null:this._renderedStickyLines[t]}getLineIndexFromChildDomNode(e){const t=this._getAttributeValue(e,xne);return t?parseInt(t,10):null}isInStickyLine(e){return this._getAttributeValue(e,qAe)!==void 0}isInFoldingIconDomNode(e){return this._getAttributeValue(e,GAe)!==void 0}_getAttributeValue(e,t){for(;e&&e!==this._rootDomNode;){const n=e.getAttribute(t);if(n!==null)return n;e=e.parentElement}}},sCt=class{constructor(e,t,n,i,r,o,s){this.index=e,this.lineNumber=t,this.lineDomNode=n,this.lineNumberDomNode=i,this.foldingIcon=r,this.characterMapping=o,this.scrollWidth=s}},aCt=class{constructor(e,t,n,i){this.isCollapsed=e,this.foldingStartLine=t,this.foldingEndLine=n,this.dimension=i,this.domNode=document.createElement("div"),this.domNode.style.width=`${i}px`,this.domNode.style.height=`${i}px`,this.domNode.className=lr.asClassName(e?NW:LW)}setVisible(e){this.domNode.style.cursor=e?"pointer":"default",this.domNode.style.opacity=e?"1":"0"}}}}),w6,OW,M8e,Crn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollElement.js"(){w6=class{constructor(e,t){this.startLineNumber=e,this.endLineNumber=t}},OW=class{constructor(e,t,n){this.range=e,this.children=t,this.parent=n}},M8e=class{constructor(e,t,n,i){this.uri=e,this.version=t,this.element=n,this.outlineProviderId=i}}}}),S3,D4,x3,Bk,Mle,KAe,Ene,YAe,Ane,Dne,WJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js"(){Nt(),Eo(),zY(),fr(),$$e(),wnn(),mnn(),lu(),Vi(),Crn(),bg(),li(),S3=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},D4=function(e,t){return function(n,i){t(n,i,e)}},(function(e){e.OUTLINE_MODEL="outlineModel",e.FOLDING_PROVIDER_MODEL="foldingProviderModel",e.INDENTATION_MODEL="indentationModel"})(x3||(x3={})),(function(e){e[e.VALID=0]="VALID",e[e.INVALID=1]="INVALID",e[e.CANCELED=2]="CANCELED"})(Bk||(Bk={})),Mle=class extends St{constructor(t,n,i,r){switch(super(),this._editor=t,this._modelProviders=[],this._modelPromise=null,this._updateScheduler=this._register(new j0(300)),this._updateOperation=this._register(new Jt),this._editor.getOption(116).defaultModel){case x3.OUTLINE_MODEL:this._modelProviders.push(new Ene(this._editor,r));case x3.FOLDING_PROVIDER_MODEL:this._modelProviders.push(new Dne(this._editor,n,r));case x3.INDENTATION_MODEL:this._modelProviders.push(new Ane(this._editor,i));break}}dispose(){this._modelProviders.forEach(t=>t.dispose()),this._updateOperation.clear(),this._cancelModelPromise(),super.dispose()}_cancelModelPromise(){this._modelPromise&&(this._modelPromise.cancel(),this._modelPromise=null)}async update(t){return this._updateOperation.clear(),this._updateOperation.add({dispose:()=>{this._cancelModelPromise(),this._updateScheduler.cancel()}}),this._cancelModelPromise(),await this._updateScheduler.trigger(async()=>{for(const n of this._modelProviders){const{statusPromise:i,modelPromise:r}=n.computeStickyModel(t);this._modelPromise=r;const o=await i;if(this._modelPromise!==r)return null;switch(o){case Bk.CANCELED:return this._updateOperation.clear(),null;case Bk.VALID:return n.stickyModel}}return null}).catch(n=>(Mr(n),null))}},Mle=S3([D4(2,ji),D4(3,gi)],Mle),KAe=class extends St{constructor(e){super(),this._editor=e,this._stickyModel=null}get stickyModel(){return this._stickyModel}_invalid(){return this._stickyModel=null,Bk.INVALID}computeStickyModel(e){if(e.isCancellationRequested||!this.isProviderValid())return{statusPromise:this._invalid(),modelPromise:null};const t=vd(n=>this.createModelFromProvider(n));return{statusPromise:t.then(n=>this.isModelValid(n)?e.isCancellationRequested?Bk.CANCELED:(this._stickyModel=this.createStickyModel(e,n),Bk.VALID):this._invalid()).then(void 0,n=>(Mr(n),Bk.CANCELED)),modelPromise:t}}isModelValid(e){return!0}isProviderValid(){return!0}},Ene=class extends KAe{constructor(t,n){super(t),this._languageFeaturesService=n}createModelFromProvider(t){return m8e.create(this._languageFeaturesService.documentSymbolProvider,this._editor.getModel(),t)}createStickyModel(t,n){const{stickyOutlineElement:i,providerID:r}=this._stickyModelFromOutlineModel(n,this._stickyModel?.outlineProviderId),o=this._editor.getModel();return new M8e(o.uri,o.getVersionId(),i,r)}isModelValid(t){return t&&t.children.size>0}_stickyModelFromOutlineModel(t,n){let i;if(Vo.first(t.children.values())instanceof g8e){const a=Vo.find(t.children.values(),l=>l.id===n);if(a)i=a.children;else{let l="",c=-1,u;for(const[d,h]of t.children.entries()){const f=this._findSumOfRangesOfGroup(h);f>c&&(u=h,c=f,l=h.id)}n=l,i=u.children}}else i=t.children;const r=[],o=Array.from(i.values()).sort((a,l)=>{const c=new w6(a.symbol.range.startLineNumber,a.symbol.range.endLineNumber),u=new w6(l.symbol.range.startLineNumber,l.symbol.range.endLineNumber);return this._comparator(c,u)});for(const a of o)r.push(this._stickyModelFromOutlineElement(a,a.symbol.selectionRange.startLineNumber));return{stickyOutlineElement:new OW(void 0,r,void 0),providerID:n}}_stickyModelFromOutlineElement(t,n){const i=[];for(const o of t.children.values())if(o.symbol.selectionRange.startLineNumber!==o.symbol.range.endLineNumber)if(o.symbol.selectionRange.startLineNumber!==n)i.push(this._stickyModelFromOutlineElement(o,o.symbol.selectionRange.startLineNumber));else for(const s of o.children.values())i.push(this._stickyModelFromOutlineElement(s,o.symbol.selectionRange.startLineNumber));i.sort((o,s)=>this._comparator(o.range,s.range));const r=new w6(t.symbol.selectionRange.startLineNumber,t.symbol.range.endLineNumber);return new OW(r,i,void 0)}_comparator(t,n){return t.startLineNumber!==n.startLineNumber?t.startLineNumber-n.startLineNumber:n.endLineNumber-t.endLineNumber}_findSumOfRangesOfGroup(t){let n=0;for(const i of t.children.values())n+=this._findSumOfRangesOfGroup(i);return t instanceof ule?n+t.symbol.range.endLineNumber-t.symbol.selectionRange.startLineNumber:n}},Ene=S3([D4(1,gi)],Ene),YAe=class extends KAe{constructor(e){super(e),this._foldingLimitReporter=new p8e(e)}createStickyModel(e,t){const n=this._fromFoldingRegions(t),i=this._editor.getModel();return new M8e(i.uri,i.getVersionId(),n,void 0)}isModelValid(e){return e!==null}_fromFoldingRegions(e){const t=e.length,n=[],i=new OW(void 0,[],void 0);for(let r=0;r<t;r++){const o=e.getParentIndex(r);let s;o!==-1?s=n[o]:s=i;const a=new OW(new w6(e.getStartLineNumber(r),e.getEndLineNumber(r)+1),[],s);s.children.push(a),n.push(a)}return i}},Ane=class extends YAe{constructor(t,n){super(t),this._languageConfigurationService=n,this.provider=this._register(new Wde(t.getModel(),this._languageConfigurationService,this._foldingLimitReporter))}async createModelFromProvider(t){return this.provider.compute(t)}},Ane=S3([D4(1,yl)],Ane),Dne=class extends YAe{constructor(t,n,i){super(t),this._languageFeaturesService=i;const r=jA.getFoldingRangeProviders(this._languageFeaturesService,t.getModel());r.length>0&&(this.provider=this._register(new Ude(t.getModel(),r,n,this._foldingLimitReporter,void 0)))}isProviderValid(){return this.provider!==void 0}async createModelFromProvider(t){return this.provider?.compute(t)??null}},Dne=S3([D4(2,gi)],Dne)}}),lCt,QAe,cCt,Ole,UJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js"(){Nt(),Eo(),Ho(),fr(),rr(),Un(),lu(),WJn(),lCt=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},QAe=function(e,t){return function(n,i){t(n,i,e)}},cCt=class{constructor(e,t,n){this.startLineNumber=e,this.endLineNumber=t,this.nestingDepth=n}},Ole=class extends St{constructor(t,n,i){super(),this._languageFeaturesService=n,this._languageConfigurationService=i,this._onDidChangeStickyScroll=this._register(new bt),this.onDidChangeStickyScroll=this._onDidChangeStickyScroll.event,this._model=null,this._cts=null,this._stickyModelProvider=null,this._editor=t,this._sessionStore=this._register(new Jt),this._updateSoon=this._register(new Gs(()=>this.update(),50)),this._register(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(116)&&this.readConfiguration()})),this.readConfiguration()}readConfiguration(){this._sessionStore.clear(),this._editor.getOption(116).enabled&&(this._sessionStore.add(this._editor.onDidChangeModel(()=>{this._model=null,this.updateStickyModelProvider(),this._onDidChangeStickyScroll.fire(),this.update()})),this._sessionStore.add(this._editor.onDidChangeHiddenAreas(()=>this.update())),this._sessionStore.add(this._editor.onDidChangeModelContent(()=>this._updateSoon.schedule())),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>this.update())),this._sessionStore.add(zi(()=>{this._stickyModelProvider?.dispose(),this._stickyModelProvider=null})),this.updateStickyModelProvider(),this.update())}getVersionId(){return this._model?.version}updateStickyModelProvider(){this._stickyModelProvider?.dispose(),this._stickyModelProvider=null;const t=this._editor;t.hasModel()&&(this._stickyModelProvider=new Mle(t,()=>this._updateSoon.schedule(),this._languageConfigurationService,this._languageFeaturesService))}async update(){this._cts?.dispose(!0),this._cts=new bl,await this.updateStickyModel(this._cts.token),this._onDidChangeStickyScroll.fire()}async updateStickyModel(t){if(!this._editor.hasModel()||!this._stickyModelProvider||this._editor.getModel().isTooLargeForTokenization()){this._model=null;return}const n=await this._stickyModelProvider.update(t);t.isCancellationRequested||(this._model=n)}updateIndex(t){return t===-1?t=0:t<0&&(t=-t-2),t}getCandidateStickyLinesIntersectingFromStickyModel(t,n,i,r,o){if(n.children.length===0)return;let s=o;const a=[];for(let u=0;u<n.children.length;u++){const d=n.children[u];d.range&&a.push(d.range.startLineNumber)}const l=this.updateIndex(Hq(a,t.startLineNumber,(u,d)=>u-d)),c=this.updateIndex(Hq(a,t.startLineNumber+r,(u,d)=>u-d));for(let u=l;u<=c;u++){const d=n.children[u];if(!d)return;if(d.range){const h=d.range.startLineNumber,f=d.range.endLineNumber;t.startLineNumber<=f+1&&h-1<=t.endLineNumber&&h!==s&&(s=h,i.push(new cCt(h,f-1,r+1)),this.getCandidateStickyLinesIntersectingFromStickyModel(t,d,i,r+1,h))}else this.getCandidateStickyLinesIntersectingFromStickyModel(t,d,i,r,o)}}getCandidateStickyLinesIntersecting(t){if(!this._model?.element)return[];let n=[];this.getCandidateStickyLinesIntersectingFromStickyModel(t,this._model.element,n,0,-1);const i=this._editor._getViewModel()?.getHiddenAreas();if(i)for(const r of i)n=n.filter(o=>!(o.startLineNumber>=r.startLineNumber&&o.endLineNumber<=r.endLineNumber+1));return n}},Ole=lCt([QAe(1,gi),QAe(2,yl)],Ole)}}),uCt,yM,ZAe,cx,Srn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js"(){var e;Nt(),Eo(),HJn(),UJn(),li(),xg(),ha(),er(),ls(),rme(),Dn(),H$e(),Vtn(),Hi(),Ho(),lu(),Db(),Fn(),Crn(),Cb(),$$e(),hnn(),uCt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},yM=function(t,n){return function(i,r){n(i,r,t)}},cx=(e=class extends St{constructor(n,i,r,o,s,a,l){super(),this._editor=n,this._contextMenuService=i,this._languageFeaturesService=r,this._instaService=o,this._contextKeyService=l,this._sessionStore=new Jt,this._maxStickyLines=Number.MAX_SAFE_INTEGER,this._candidateDefinitionsLength=-1,this._focusedStickyElementIndex=-1,this._enabled=!1,this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1,this._endLineNumbers=[],this._stickyScrollWidget=new _rn(this._editor),this._stickyLineCandidateProvider=new Ole(this._editor,r,s),this._register(this._stickyScrollWidget),this._register(this._stickyLineCandidateProvider),this._widgetState=Ple.Empty,this._onDidResize(),this._readConfiguration();const c=this._stickyScrollWidget.getDomNode();this._register(this._editor.onDidChangeConfiguration(d=>{this._readConfigurationChange(d)})),this._register(qt(c,kn.CONTEXT_MENU,async d=>{this._onContextMenu(Yi(c),d)})),this._stickyScrollFocusedContextKey=Ge.stickyScrollFocused.bindTo(this._contextKeyService),this._stickyScrollVisibleContextKey=Ge.stickyScrollVisible.bindTo(this._contextKeyService);const u=this._register(yC(c));this._register(u.onDidBlur(d=>{this._positionRevealed===!1&&c.clientHeight===0?(this._focusedStickyElementIndex=-1,this.focus()):this._disposeFocusStickyScrollStore()})),this._register(u.onDidFocus(d=>{this.focus()})),this._registerMouseListeners(),this._register(qt(c,kn.MOUSE_DOWN,d=>{this._onMouseDown=!0}))}static get(n){return n.getContribution(ZAe.ID)}_disposeFocusStickyScrollStore(){this._stickyScrollFocusedContextKey.set(!1),this._focusDisposableStore?.dispose(),this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1}focus(){if(this._onMouseDown){this._onMouseDown=!1,this._editor.focus();return}this._stickyScrollFocusedContextKey.get()!==!0&&(this._focused=!0,this._focusDisposableStore=new Jt,this._stickyScrollFocusedContextKey.set(!0),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumbers.length-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}focusNext(){this._focusedStickyElementIndex<this._stickyScrollWidget.lineNumberCount-1&&this._focusNav(!0)}focusPrevious(){this._focusedStickyElementIndex>0&&this._focusNav(!1)}selectEditor(){this._editor.focus()}_focusNav(n){this._focusedStickyElementIndex=n?this._focusedStickyElementIndex+1:this._focusedStickyElementIndex-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}goToFocused(){const n=this._stickyScrollWidget.lineNumbers;this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:n[this._focusedStickyElementIndex],column:1})}_revealPosition(n){this._reveaInEditor(n,()=>this._editor.revealPosition(n))}_revealLineInCenterIfOutsideViewport(n){this._reveaInEditor(n,()=>this._editor.revealLineInCenterIfOutsideViewport(n.lineNumber,0))}_reveaInEditor(n,i){this._focused&&this._disposeFocusStickyScrollStore(),this._positionRevealed=!0,i(),this._editor.setSelection(Re.fromPositions(n)),this._editor.focus()}_registerMouseListeners(){const n=this._register(new Jt),i=this._register(new FY(this._editor,{extractLineNumberFromMouseEvent:s=>{const a=this._stickyScrollWidget.getEditorPositionFromNode(s.target.element);return a?a.lineNumber:0}})),r=s=>{if(!this._editor.hasModel()||s.target.type!==12||s.target.detail!==this._stickyScrollWidget.getId())return null;const a=s.target.element;if(!a||a.innerText!==a.innerHTML)return null;const l=this._stickyScrollWidget.getEditorPositionFromNode(a);return l?{range:new Re(l.lineNumber,l.column,l.lineNumber,l.column+a.innerText.length),textElement:a}:null},o=this._stickyScrollWidget.getDomNode();this._register(Il(o,kn.CLICK,s=>{if(s.ctrlKey||s.altKey||s.metaKey||!s.leftButton)return;if(s.shiftKey){const u=this._stickyScrollWidget.getLineIndexFromChildDomNode(s.target);if(u===null)return;const d=new mt(this._endLineNumbers[u],1);this._revealLineInCenterIfOutsideViewport(d);return}if(this._stickyScrollWidget.isInFoldingIconDomNode(s.target)){const u=this._stickyScrollWidget.getLineNumberFromChildDomNode(s.target);this._toggleFoldingRegionForLine(u);return}if(!this._stickyScrollWidget.isInStickyLine(s.target))return;let c=this._stickyScrollWidget.getEditorPositionFromNode(s.target);if(!c){const u=this._stickyScrollWidget.getLineNumberFromChildDomNode(s.target);if(u===null)return;c=new mt(u,1)}this._revealPosition(c)})),this._register(Il(o,kn.MOUSE_MOVE,s=>{if(s.shiftKey){const a=this._stickyScrollWidget.getLineIndexFromChildDomNode(s.target);if(a===null||this._showEndForLine!==null&&this._showEndForLine===a)return;this._showEndForLine=a,this._renderStickyScroll();return}this._showEndForLine!==void 0&&(this._showEndForLine=void 0,this._renderStickyScroll())})),this._register(qt(o,kn.MOUSE_LEAVE,s=>{this._showEndForLine!==void 0&&(this._showEndForLine=void 0,this._renderStickyScroll())})),this._register(i.onMouseMoveOrRelevantKeyDown(([s,a])=>{const l=r(s);if(!l||!s.hasTriggerModifier||!this._editor.hasModel()){n.clear();return}const{range:c,textElement:u}=l;if(!c.equalsRange(this._stickyRangeProjectedOnEditor))this._stickyRangeProjectedOnEditor=c,n.clear();else if(u.style.textDecoration==="underline")return;const d=new bl;n.add(zi(()=>d.dispose(!0)));let h;vG(this._languageFeaturesService.definitionProvider,this._editor.getModel(),new mt(c.startLineNumber,c.startColumn+1),!1,d.token).then((f=>{if(!d.token.isCancellationRequested)if(f.length!==0){this._candidateDefinitionsLength=f.length;const p=u;h!==p?(n.clear(),h=p,h.style.textDecoration="underline",n.add(zi(()=>{h.style.textDecoration="none"}))):h||(h=p,h.style.textDecoration="underline",n.add(zi(()=>{h.style.textDecoration="none"})))}else n.clear()}))})),this._register(i.onCancel(()=>{n.clear()})),this._register(i.onExecute(async s=>{if(s.target.type!==12||s.target.detail!==this._stickyScrollWidget.getId())return;const a=this._stickyScrollWidget.getEditorPositionFromNode(s.target.element);a&&(!this._editor.hasModel()||!this._stickyRangeProjectedOnEditor||(this._candidateDefinitionsLength>1&&(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:a.lineNumber,column:1})),this._instaService.invokeFunction(ztn,s,this._editor,{uri:this._editor.getModel().uri,range:this._stickyRangeProjectedOnEditor})))}))}_onContextMenu(n,i){const r=new Vy(n,i);this._contextMenuService.showContextMenu({menuId:Ti.StickyScrollContext,getAnchor:()=>r})}_toggleFoldingRegionForLine(n){if(!this._foldingModel||n===null)return;const i=this._stickyScrollWidget.getRenderedStickyLine(n),r=i?.foldingIcon;if(!r)return;f8e(this._foldingModel,Number.MAX_VALUE,[n]),r.isCollapsed=!r.isCollapsed;const o=(r.isCollapsed?this._editor.getTopForLineNumber(r.foldingEndLine):this._editor.getTopForLineNumber(r.foldingStartLine))-this._editor.getOption(67)*i.index+1;this._editor.setScrollTop(o),this._renderStickyScroll(n)}_readConfiguration(){const n=this._editor.getOption(116);if(n.enabled===!1){this._editor.removeOverlayWidget(this._stickyScrollWidget),this._sessionStore.clear(),this._enabled=!1;return}else n.enabled&&!this._enabled&&(this._editor.addOverlayWidget(this._stickyScrollWidget),this._sessionStore.add(this._editor.onDidScrollChange(r=>{r.scrollTopChanged&&(this._showEndForLine=void 0,this._renderStickyScroll())})),this._sessionStore.add(this._editor.onDidLayoutChange(()=>this._onDidResize())),this._sessionStore.add(this._editor.onDidChangeModelTokens(r=>this._onTokensChange(r))),this._sessionStore.add(this._stickyLineCandidateProvider.onDidChangeStickyScroll(()=>{this._showEndForLine=void 0,this._renderStickyScroll()})),this._enabled=!0);this._editor.getOption(68).renderType===2&&this._sessionStore.add(this._editor.onDidChangeCursorPosition(()=>{this._showEndForLine=void 0,this._renderStickyScroll(0)}))}_readConfigurationChange(n){(n.hasChanged(116)||n.hasChanged(73)||n.hasChanged(67)||n.hasChanged(111)||n.hasChanged(68))&&this._readConfiguration(),n.hasChanged(68)&&this._renderStickyScroll(0)}_needsUpdate(n){const i=this._stickyScrollWidget.getCurrentLines();for(const r of i)for(const o of n.ranges)if(r>=o.fromLineNumber&&r<=o.toLineNumber)return!0;return!1}_onTokensChange(n){this._needsUpdate(n)&&this._renderStickyScroll(0)}_onDidResize(){const i=this._editor.getLayoutInfo().height/this._editor.getOption(67);this._maxStickyLines=Math.round(i*.25)}async _renderStickyScroll(n){const i=this._editor.getModel();if(!i||i.isTooLargeForTokenization()){this._resetState();return}const r=this._updateAndGetMinRebuildFromLine(n),o=this._stickyLineCandidateProvider.getVersionId();if(o===void 0||o===i.getVersionId())if(!this._focused)await this._updateState(r);else if(this._focusedStickyElementIndex===-1)await this._updateState(r),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1,this._focusedStickyElementIndex!==-1&&this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex);else{const a=this._stickyScrollWidget.lineNumbers[this._focusedStickyElementIndex];await this._updateState(r),this._stickyScrollWidget.lineNumberCount===0?this._focusedStickyElementIndex=-1:(this._stickyScrollWidget.lineNumbers.includes(a)||(this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1),this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}}_updateAndGetMinRebuildFromLine(n){if(n!==void 0){const i=this._minRebuildFromLine!==void 0?this._minRebuildFromLine:1/0;this._minRebuildFromLine=Math.min(n,i)}return this._minRebuildFromLine}async _updateState(n){this._minRebuildFromLine=void 0,this._foldingModel=await jA.get(this._editor)?.getFoldingModel()??void 0,this._widgetState=this.findScrollWidgetState();const i=this._widgetState.startLineNumbers.length>0;this._stickyScrollVisibleContextKey.set(i),this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,n)}async _resetState(){this._minRebuildFromLine=void 0,this._foldingModel=void 0,this._widgetState=Ple.Empty,this._stickyScrollVisibleContextKey.set(!1),this._stickyScrollWidget.setState(void 0,void 0)}findScrollWidgetState(){const n=this._editor.getOption(67),i=Math.min(this._maxStickyLines,this._editor.getOption(116).maxLineCount),r=this._editor.getScrollTop();let o=0;const s=[],a=[],l=this._editor.getVisibleRanges();if(l.length!==0){const c=new w6(l[0].startLineNumber,l[l.length-1].endLineNumber),u=this._stickyLineCandidateProvider.getCandidateStickyLinesIntersecting(c);for(const d of u){const h=d.startLineNumber,f=d.endLineNumber,p=d.nestingDepth;if(f-h>0){const g=(p-1)*n,m=p*n,v=this._editor.getBottomForLineNumber(h)-r,y=this._editor.getTopForLineNumber(f)-r,b=this._editor.getBottomForLineNumber(f)-r;if(g>y&&g<=b){s.push(h),a.push(f+1),o=b-m;break}else m>v&&m<=b&&(s.push(h),a.push(f+1));if(s.length===i)break}}}return this._endLineNumbers=a,new Ple(s,a,o,this._showEndForLine)}dispose(){super.dispose(),this._sessionStore.dispose()}},ZAe=e,e.ID="store.contrib.stickyScrollController",e),cx=ZAe=uCt([yM(1,dm),yM(2,gi),yM(3,ji),yM(4,yl),yM(5,Mv),yM(6,ur)],cx)}}),xrn,E3,Ern,Arn,Drn,Trn,krn,$Jn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js"(){mr(),bn(),zJn(),ha(),sa(),er(),ls(),Srn(),xrn=class extends pp{constructor(){super({id:"editor.action.toggleStickyScroll",title:{...yr("toggleEditorStickyScroll","Toggle Editor Sticky Scroll"),mnemonicTitle:R({key:"mitoggleStickyScroll",comment:["&& denotes a mnemonic"]},"&&Toggle Editor Sticky Scroll")},metadata:{description:yr("toggleEditorStickyScroll.description","Toggle/enable the editor sticky scroll which shows the nested scopes at the top of the viewport")},category:brn.View,toggled:{condition:nn.equals("config.editor.stickyScroll.enabled",!0),title:R("stickyScroll","Sticky Scroll"),mnemonicTitle:R({key:"miStickyScroll",comment:["&& denotes a mnemonic"]},"&&Sticky Scroll")},menu:[{id:Ti.CommandPalette},{id:Ti.MenubarAppearanceMenu,group:"4_editor",order:3},{id:Ti.StickyScrollContext}]})}async run(e){const t=e.get(co),n=!t.getValue("editor.stickyScroll.enabled");return t.updateValue("editor.stickyScroll.enabled",n)}},E3=100,Ern=class extends T_{constructor(){super({id:"editor.action.focusStickyScroll",title:{...yr("focusStickyScroll","Focus on the editor sticky scroll"),mnemonicTitle:R({key:"mifocusStickyScroll",comment:["&& denotes a mnemonic"]},"&&Focus Sticky Scroll")},precondition:nn.and(nn.has("config.editor.stickyScroll.enabled"),Ge.stickyScrollVisible),menu:[{id:Ti.CommandPalette}]})}runEditorCommand(e,t){cx.get(t)?.focus()}},Arn=class extends T_{constructor(){super({id:"editor.action.selectNextStickyScrollLine",title:yr("selectNextStickyScrollLine.title","Select the next editor sticky scroll line"),precondition:Ge.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:E3,primary:18}})}runEditorCommand(e,t){cx.get(t)?.focusNext()}},Drn=class extends T_{constructor(){super({id:"editor.action.selectPreviousStickyScrollLine",title:yr("selectPreviousStickyScrollLine.title","Select the previous sticky scroll line"),precondition:Ge.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:E3,primary:16}})}runEditorCommand(e,t){cx.get(t)?.focusPrevious()}},Trn=class extends T_{constructor(){super({id:"editor.action.goToFocusedStickyScrollLine",title:yr("goToFocusedStickyScrollLine.title","Go to the focused sticky scroll line"),precondition:Ge.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:E3,primary:3}})}runEditorCommand(e,t){cx.get(t)?.goToFocused()}},krn=class extends T_{constructor(){super({id:"editor.action.selectEditor",title:yr("selectEditor.title","Select Editor"),precondition:Ge.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:E3,primary:9}})}runEditorCommand(e,t){cx.get(t)?.selectEditor()}}}}),qJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollContribution.js"(){mr(),$Jn(),Srn(),ha(),qo(cx.ID,cx,1),Pa(xrn),Pa(Ern),Pa(Drn),Pa(Arn),Pa(Trn),Pa(krn)}}),XAe,T4,dCt,Tne,kne,GJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js"(){Ho(),yw(),bg(),Nt(),Ec(),Dn(),oF(),Eo(),jnn(),Y7(),Onn(),znn(),Bnn(),zN(),XAe=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},T4=function(e,t){return function(n,i){t(n,i,e)}},dCt=class{constructor(e,t,n,i,r,o){this.range=e,this.insertText=t,this.filterText=n,this.additionalTextEdits=i,this.command=r,this.completion=o}},Tne=class extends r7t{constructor(t,n,i,r,o,s){super(o.disposable),this.model=t,this.line=n,this.word=i,this.completionModel=r,this._suggestMemoryService=s}canBeReused(t,n,i){return this.model===t&&this.line===n&&this.word.word.length>0&&this.word.startColumn===i.startColumn&&this.word.endColumn<i.endColumn&&this.completionModel.getIncompleteProvider().size===0}get items(){const t=[],{items:n}=this.completionModel,i=this._suggestMemoryService.select(this.model,{lineNumber:this.line,column:this.word.endColumn+this.completionModel.lineContext.characterCountDelta},n),r=Vo.slice(n,i),o=Vo.slice(n,0,i);let s=5;for(const a of Vo.concat(r,o)){if(a.score===Q1.Default)continue;const l=new Re(a.editStart.lineNumber,a.editStart.column,a.editInsertEnd.lineNumber,a.editInsertEnd.column+this.completionModel.lineContext.characterCountDelta),c=a.completion.insertTextRules&&a.completion.insertTextRules&4?{snippet:a.completion.insertText}:a.completion.insertText;t.push(new dCt(l,c,a.filterTextLow??a.labelLow,a.completion.additionalTextEdits,a.completion.command,a)),s-->=0&&a.resolve(no.None)}return t}},Tne=XAe([T4(5,bG)],Tne),kne=class extends St{constructor(t,n,i,r){super(),this._languageFeatureService=t,this._clipboardService=n,this._suggestMemoryService=i,this._editorService=r,this._store.add(t.inlineCompletionsProvider.register("*",this))}async provideInlineCompletions(t,n,i,r){if(i.selectedSuggestionInfo)return;let o;for(const f of this._editorService.listCodeEditors())if(f.getModel()===t){o=f;break}if(!o)return;const s=o.getOption(90);if(HO.isAllOff(s))return;t.tokenization.tokenizeIfCheap(n.lineNumber);const a=t.tokenization.getLineTokens(n.lineNumber),l=a.getStandardTokenType(a.findTokenIndexAtOffset(Math.max(n.column-1-1,0)));if(HO.valueFor(s,l)!=="inline")return;let c=t.getWordAtPosition(n),u;if(c?.word||(u=this._getTriggerCharacterInfo(t,n)),!c?.word&&!u||(c||(c=t.getWordUntilPosition(n)),c.endColumn!==n.column))return;let d;const h=t.getValueInRange(new Re(n.lineNumber,1,n.lineNumber,n.column));if(!u&&this._lastResult?.canBeReused(t,n.lineNumber,c)){const f=new A8e(h,n.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=f,this._lastResult.acquire(),d=this._lastResult}else{const f=await Y$e(this._languageFeatureService.completionProvider,t,n,new ume(void 0,N$.createSuggestFilter(o).itemKind,u?.providers),u&&{triggerKind:1,triggerCharacter:u.ch},r);let p;f.needsClipboard&&(p=await this._clipboardService.readText());const g=new J$e(f.items,n.column,new A8e(h,0),X$e.None,o.getOption(119),o.getOption(113),{boostFullMatch:!1,firstMatchCanBeWeak:!1},p);d=new Tne(t,n.lineNumber,c,g,f,this._suggestMemoryService)}return this._lastResult=d,d}handleItemDidShow(t,n){n.completion.resolve(no.None)}freeInlineCompletions(t){t.release()}_getTriggerCharacterInfo(t,n){const i=t.getValueInRange(Re.fromPositions({lineNumber:n.lineNumber,column:n.column-1},n)),r=new Set;for(const o of this._languageFeatureService.completionProvider.all(t))o.triggerCharacters?.includes(i)&&r.add(o);if(r.size!==0)return{providers:r,ch:i}}},kne=XAe([T4(0,gi),T4(1,tE),T4(2,bG),T4(3,Jo)],kne),W7(kne)}}),hCt,KJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/tokenization/browser/tokenization.js"(){_g(),mr(),bn(),hCt=class extends ri{constructor(){super({id:"editor.action.forceRetokenize",label:R("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const n=t.getModel();n.tokenization.resetTokenization();const i=new Ah;n.tokenization.forceTokenization(n.getLineCount()),i.stop(),console.log(`tokenization took ${i.elapsed()}`)}},yn(hCt)}}),fCt,YJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js"(){var e;Ih(),_Ue(),bn(),ha(),fCt=(e=class extends pp{constructor(){super({id:e.ID,title:yr({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},metadata:{description:yr("tabMovesFocusDescriptions","Determines whether the tab key moves focus around the workbench or inserts the tab character in the current editor. This is also called tab trapping, tab navigation, or tab focus mode.")},f1:!0})}run(){const i=!s2.getTabFocusMode();s2.setTabFocusMode(i),mg(i?R("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element"):R("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}},e.ID="editor.action.toggleTabFocusMode",e),Pa(fCt)}}),QJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.css"(){}}),ZJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.css"(){}}),XJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/opener/browser/link.css"(){}}),pCt,JAe,Rle,JJn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/opener/browser/link.js"(){Fn(),UC(),mf(),Q0(),Un(),Nt(),Ag(),XJn(),Lh(),PN(),pCt=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},JAe=function(e,t){return function(n,i){t(n,i,e)}},Rle=class extends St{get enabled(){return this._enabled}set enabled(t){t?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=t}constructor(t,n,i={},r,o){super(),this._link=n,this._hoverService=r,this._enabled=!0,this.el=hn(t,In("a.monaco-link",{tabIndex:n.tabIndex??0,href:n.href},n.label)),this.hoverDelegate=i.hoverDelegate??hg("mouse"),this.setTooltip(n.title),this.el.setAttribute("role","button");const s=this._register(new ko(this.el,"click")),a=this._register(new ko(this.el,"keypress")),l=On.chain(a.event,d=>d.map(h=>new Sa(h)).filter(h=>h.keyCode===3)),c=this._register(new ko(this.el,Wa.Tap)).event;this._register(Ap.addTarget(this.el));const u=On.any(s.event,l,c);this._register(u(d=>{this.enabled&&(Po.stop(d,!0),i?.opener?i.opener(this._link.href):o.open(this._link.href,{allowCommands:!0}))})),this.enabled=!0}setTooltip(t){this.hoverDelegate.showNativeHover?this.el.title=t??"":!this.hover&&t?this.hover=this._register(this._hoverService.setupManagedHover(this.hoverDelegate,this.el,t)):this.hover&&this.hover.update(t)}},Rle=pCt([JAe(3,SC),JAe(4,Eg)],Rle)}}),eDe,tDe,gCt,Fle,Ine,eei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js"(){ZJn(),Fn(),ww(),wd(),Nt(),RN(),li(),JJn(),X0(),Ra(),eDe=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},tDe=function(e,t){return function(n,i){t(n,i,e)}},gCt=26,Fle=class extends St{constructor(t,n){super(),this._editor=t,this.instantiationService=n,this.banner=this._register(this.instantiationService.createInstance(Ine))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(t){this.banner.show({...t,onClose:()=>{this.hide(),t.onClose?.()}}),this._editor.setBanner(this.banner.element,gCt)}},Fle=eDe([tDe(1,ji)],Fle),Ine=class extends St{constructor(t){super(),this.instantiationService=t,this.markdownRenderer=this.instantiationService.createInstance(Lx,{}),this.element=In("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(t){if(t.ariaLabel)return t.ariaLabel;if(typeof t.message=="string")return t.message}getBannerMessage(t){if(typeof t=="string"){const n=In("span");return n.innerText=t,n}return this.markdownRenderer.render(t).element}clear(){Sh(this.element)}show(t){Sh(this.element);const n=this.getAriaLabel(t);n&&this.element.setAttribute("aria-label",n);const i=hn(this.element,In("div.icon-container"));i.setAttribute("aria-hidden","true"),t.icon&&i.appendChild(In(`div${lr.asCSSSelector(t.icon)}`));const r=hn(this.element,In("div.message-container"));if(r.setAttribute("aria-hidden","true"),r.appendChild(this.getBannerMessage(t.message)),this.messageActionsContainer=hn(this.element,In("div.message-actions-container")),t.actions)for(const s of t.actions)this._register(this.instantiationService.createInstance(Rle,this.messageActionsContainer,{...s,tabIndex:-1},{}));const o=hn(this.element,In("div.action-container"));this.actionBar=this._register(new Dv(o)),this.actionBar.push(this._register(new cm("banner.close","Close Banner",lr.asClassName(gUe),!0,()=>{typeof t.onClose=="function"&&t.onClose()})),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}},Ine=eDe([tDe(0,ji)],Ine)}});function tei(e,t){return{nonBasicASCII:t.nonBasicASCII===jm?!e:t.nonBasicASCII,ambiguousCharacters:t.ambiguousCharacters,invisibleCharacters:t.invisibleCharacters,includeComments:t.includeComments===jm?!e:t.includeComments,includeStrings:t.includeStrings===jm?!e:t.includeStrings,allowedCharacters:t.allowedCharacters,allowedLocales:t.allowedLocales}}function O8e(e){return`U+${e.toString(16).padStart(4,"0")}`}function nDe(e){let t=`\`${O8e(e)}\``;return z6.isInvisibleCharacter(e)||(t+=` "${`${nei(e)}`}"`),t}function nei(e){return e===96?"`` ` ``":"`"+String.fromCodePoint(e)+"`"}function mCt(e,t){return ege.computeUnicodeHighlightReason(e,t)}async function iei(e,t){const n=e.getValue(tg.allowedCharacters);let i;typeof n=="object"&&n?i=n:i={};for(const r of t)i[String.fromCodePoint(r)]=!0;await e.updateValue(tg.allowedCharacters,i,2)}async function rei(e,t){const n=e.inspect(tg.allowedLocales).user?.value;let i;typeof n=="object"&&n?i=Object.assign({},n):i={};for(const r of t)i[r]=!0;await e.updateValue(tg.allowedLocales,i,2)}function oei(e){throw new Error(`Unexpected value: ${e}`)}var Lne,bM,vCt,k4,Nne,yCt,iDe,Pne,rDe,bCt,_Ct,I4,Mne,One,oDe,sei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js"(){var e,t,n,i,r,o;fr(),ia(),Dg(),Nt(),Xr(),Ki(),QJn(),mr(),Su(),Ac(),DUt(),SE(),Kd(),NXt(),Sw(),ime(),eei(),bn(),sa(),li(),Ag(),Hv(),X0(),Iqt(),Lne=function(s,a,l,c){var u=arguments.length,d=u<3?a:c===null?c=Object.getOwnPropertyDescriptor(a,l):c,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(s,a,l,c);else for(var f=s.length-1;f>=0;f--)(h=s[f])&&(d=(u<3?h(d):u>3?h(a,l,d):h(a,l))||d);return u>3&&d&&Object.defineProperty(a,l,d),d},bM=function(s,a){return function(l,c){a(l,c,s)}},vCt=Xa("extensions-warning-message",An.warning,R("warningIcon","Icon shown with a warning message in the extensions editor.")),k4=(e=class extends St{constructor(a,l,c,u){super(),this._editor=a,this._editorWorkerService=l,this._workspaceTrustService=c,this._highlighter=null,this._bannerClosed=!1,this._updateState=d=>{if(d&&d.hasMore){if(this._bannerClosed)return;const h=Math.max(d.ambiguousCharacterCount,d.nonBasicAsciiCharacterCount,d.invisibleCharacterCount);let f;if(d.nonBasicAsciiCharacterCount>=h)f={message:R("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new One};else if(d.ambiguousCharacterCount>=h)f={message:R("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new I4};else if(d.invisibleCharacterCount>=h)f={message:R("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new Mne};else throw new Error("Unreachable");this._bannerController.show({id:"unicodeHighlightBanner",message:f.message,icon:vCt,actions:[{label:f.command.shortLabel,href:`command:${f.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(u.createInstance(Fle,a)),this._register(this._editor.onDidChangeModel(()=>{this._bannerClosed=!1,this._updateHighlighter()})),this._options=a.getOption(126),this._register(c.onDidChangeTrust(d=>{this._updateHighlighter()})),this._register(a.onDidChangeConfiguration(d=>{d.hasChanged(126)&&(this._options=a.getOption(126),this._updateHighlighter())})),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;const a=tei(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([a.nonBasicASCII,a.ambiguousCharacters,a.invisibleCharacters].every(c=>c===!1))return;const l={nonBasicASCII:a.nonBasicASCII,ambiguousCharacters:a.ambiguousCharacters,invisibleCharacters:a.invisibleCharacters,includeComments:a.includeComments,includeStrings:a.includeStrings,allowedCodePoints:Object.keys(a.allowedCharacters).map(c=>c.codePointAt(0)),allowedLocales:Object.keys(a.allowedLocales).map(c=>c==="_os"?new Intl.NumberFormat().resolvedOptions().locale:c==="_vscode"?m7t:c)};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new Nne(this._editor,l,this._updateState,this._editorWorkerService):this._highlighter=new yCt(this._editor,l,this._updateState)}getDecorationInfo(a){return this._highlighter?this._highlighter.getDecorationInfo(a):null}},e.ID="editor.contrib.unicodeHighlighter",e),k4=Lne([bM(1,fg),bM(2,fWe),bM(3,ji)],k4),Nne=class extends St{constructor(a,l,c,u){super(),this._editor=a,this._options=l,this._updateState=c,this._editorWorkerService=u,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new Gs(()=>this._update(),250)),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}const a=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then(l=>{if(this._model.isDisposed()||this._model.getVersionId()!==a)return;this._updateState(l);const c=[];if(!l.hasMore)for(const u of l.ranges)c.push({range:u,options:rDe.instance.getDecorationFromOptions(this._options)});this._decorations.set(c)})}getDecorationInfo(a){if(!this._decorations.has(a))return null;const l=this._editor.getModel();if(!s6e(l,a))return null;const c=l.getValueInRange(a.range);return{reason:mCt(c,this._options),inComment:a6e(l,a),inString:l6e(l,a)}}},Nne=Lne([bM(3,fg)],Nne),yCt=class extends St{constructor(s,a,l){super(),this._editor=s,this._options=a,this._updateState=l,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new Gs(()=>this._update(),250)),this._register(this._editor.onDidLayoutChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidScrollChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeHiddenAreas(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}const s=this._editor.getVisibleRanges(),a=[],l={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(const c of s){const u=ege.computeUnicodeHighlights(this._model,this._options,c);for(const d of u.ranges)l.ranges.push(d);l.ambiguousCharacterCount+=l.ambiguousCharacterCount,l.invisibleCharacterCount+=l.invisibleCharacterCount,l.nonBasicAsciiCharacterCount+=l.nonBasicAsciiCharacterCount,l.hasMore=l.hasMore||u.hasMore}if(!l.hasMore)for(const c of l.ranges)a.push({range:c,options:rDe.instance.getDecorationFromOptions(this._options)});this._updateState(l),this._decorations.set(a)}getDecorationInfo(s){if(!this._decorations.has(s))return null;const a=this._editor.getModel(),l=a.getValueInRange(s.range);return s6e(a,s)?{reason:mCt(l,this._options),inComment:a6e(a,s),inString:l6e(a,s)}:null}},iDe=R("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options"),Pne=class{constructor(a,l,c){this._editor=a,this._languageService=l,this._openerService=c,this.hoverOrdinal=5}computeSync(a,l){if(!this._editor.hasModel()||a.type!==1)return[];const c=this._editor.getModel(),u=this._editor.getContribution(k4.ID);if(!u)return[];const d=[],h=new Set;let f=300;for(const p of l){const g=u.getDecorationInfo(p);if(!g)continue;const v=c.getValueInRange(p.range).codePointAt(0),y=nDe(v);let b;switch(g.reason.kind){case 0:{qK(g.reason.confusableWith)?b=R("unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",y,nDe(g.reason.confusableWith.codePointAt(0))):b=R("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",y,nDe(g.reason.confusableWith.codePointAt(0)));break}case 1:b=R("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",y);break;case 2:b=R("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",y);break}if(h.has(b))continue;h.add(b);const w={codePoint:v,reason:g.reason,inComment:g.inComment,inString:g.inString},E=R("unicodeHighlight.adjustSettings","Adjust settings"),A=`command:${oDe.ID}?${encodeURIComponent(JSON.stringify(w))}`,D=new nf("",!0).appendMarkdown(b).appendText(" ").appendLink(A,E,iDe);d.push(new Ty(this,p.range,[D],!1,f++))}return d}renderHoverParts(a,l){return bQn(a,l,this._editor,this._languageService,this._openerService)}},Pne=Lne([bM(1,al),bM(2,Eg)],Pne),rDe=(t=class{constructor(){this.map=new Map}getDecorationFromOptions(a){return this.getDecoration(!a.includeComments,!a.includeStrings)}getDecoration(a,l){const c=`${a}${l}`;let u=this.map.get(c);return u||(u=Gr.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:a,hideInStringTokens:l}),this.map.set(c,u)),u}},t.instance=new t,t),bCt=class extends ri{constructor(){super({id:I4.ID,label:R("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=R("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}async run(s,a,l){const c=s?.get(co);c&&this.runAction(c)}async runAction(s){await s.updateValue(tg.includeComments,!1,2)}},_Ct=class extends ri{constructor(){super({id:I4.ID,label:R("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=R("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}async run(s,a,l){const c=s?.get(co);c&&this.runAction(c)}async runAction(s){await s.updateValue(tg.includeStrings,!1,2)}},I4=(n=class extends ri{constructor(){super({id:n.ID,label:R("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=R("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}async run(a,l,c){const u=a?.get(co);u&&this.runAction(u)}async runAction(a){await a.updateValue(tg.ambiguousCharacters,!1,2)}},n.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters",n),Mne=(i=class extends ri{constructor(){super({id:i.ID,label:R("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=R("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}async run(a,l,c){const u=a?.get(co);u&&this.runAction(u)}async runAction(a){await a.updateValue(tg.invisibleCharacters,!1,2)}},i.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters",i),One=(r=class extends ri{constructor(){super({id:r.ID,label:R("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=R("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}async run(a,l,c){const u=a?.get(co);u&&this.runAction(u)}async runAction(a){await a.updateValue(tg.nonBasicASCII,!1,2)}},r.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters",r),oDe=(o=class extends ri{constructor(){super({id:o.ID,label:R("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}async run(a,l,c){const{codePoint:u,reason:d,inString:h,inComment:f}=c,p=String.fromCodePoint(u),g=a.get(Z0),m=a.get(co);function v(w){return z6.isInvisibleCharacter(w)?R("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",O8e(w)):R("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${O8e(w)} "${p}"`)}const y=[];if(d.kind===0)for(const w of d.notAmbiguousInLocales)y.push({label:R("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',w),run:async()=>{rei(m,[w])}});if(y.push({label:v(u),run:()=>iei(m,[u])}),f){const w=new bCt;y.push({label:w.label,run:async()=>w.runAction(m)})}else if(h){const w=new _Ct;y.push({label:w.label,run:async()=>w.runAction(m)})}if(d.kind===0){const w=new I4;y.push({label:w.label,run:async()=>w.runAction(m)})}else if(d.kind===1){const w=new Mne;y.push({label:w.label,run:async()=>w.runAction(m)})}else if(d.kind===2){const w=new One;y.push({label:w.label,run:async()=>w.runAction(m)})}else oei(d);const b=await g.pick(y,{title:iDe});b&&await b.run()}},o.ID="editor.action.unicodeHighlight.showExcludeOptions",o),yn(I4),yn(Mne),yn(One),yn(oDe),qo(k4.ID,k4,1),zL.register(Pne)}});function aei(e,t,n){e.setModelProperty(t.uri,rqe,n)}function lei(e,t){return e.getModelProperty(t.uri,rqe)}var wCt,sDe,rqe,A3,cei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js"(){var e;Nt(),bf(),mr(),Ec(),bn(),aY(),wCt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},sDe=function(t,n){return function(i,r){n(i,r,t)}},rqe="ignoreUnusualLineTerminators",A3=(e=class extends St{constructor(n,i,r){super(),this._editor=n,this._dialogService=i,this._codeEditorService=r,this._isPresentingDialog=!1,this._config=this._editor.getOption(127),this._register(this._editor.onDidChangeConfiguration(o=>{o.hasChanged(127)&&(this._config=this._editor.getOption(127),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(o=>{o.isUndoing||this._checkForUnusualLineTerminators()})),this._checkForUnusualLineTerminators()}async _checkForUnusualLineTerminators(){if(this._config==="off"||!this._editor.hasModel())return;const n=this._editor.getModel();if(!n.mightContainUnusualLineTerminators()||lei(this._codeEditorService,n)===!0||this._editor.getOption(92))return;if(this._config==="auto"){n.removeUnusualLineTerminators(this._editor.getSelections());return}if(this._isPresentingDialog)return;let r;try{this._isPresentingDialog=!0,r=await this._dialogService.confirm({title:R("unusualLineTerminators.title","Unusual Line Terminators"),message:R("unusualLineTerminators.message","Detected unusual line terminators"),detail:R("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",E0(n.uri)),primaryButton:R({key:"unusualLineTerminators.fix",comment:["&& denotes a mnemonic"]},"&&Remove Unusual Line Terminators"),cancelButton:R("unusualLineTerminators.ignore","Ignore")})}finally{this._isPresentingDialog=!1}if(!r.confirmed){aei(this._codeEditorService,n,!0);return}n.removeUnusualLineTerminators(this._editor.getSelections())}},e.ID="editor.contrib.unusualLineTerminatorsDetector",e),A3=wCt([sDe(1,T7),sDe(2,Jo)],A3),qo(A3.ID,A3,1)}}),CCt,SCt,aDe,Ble,uei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/wordHighlighter/browser/textualHighlightProvider.js"(){A7(),Eo(),ra(),Nt(),kh(),CCt=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},SCt=function(e,t){return function(n,i){t(n,i,e)}},aDe=class{constructor(){this.selector={language:"*"}}provideDocumentHighlights(e,t,n){const i=[],r=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column});return r?e.isDisposed()?void 0:e.findMatches(r.word,!0,!1,!0,Uq,!1).map(s=>({range:s.range,kind:H8.Text})):Promise.resolve(i)}provideMultiDocumentHighlights(e,t,n,i){const r=new mh,o=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column});if(!o)return Promise.resolve(r);for(const s of[e,...n]){if(s.isDisposed())continue;const l=s.findMatches(o.word,!0,!1,!0,Uq,!1).map(c=>({range:c.range,kind:H8.Text}));l&&r.set(s.uri,l)}return r}},Ble=class extends St{constructor(t){super(),this._register(t.documentHighlightProvider.register("*",new aDe)),this._register(t.multiDocumentHighlightProvider.register("*",new aDe))}},Ble=CCt([SCt(0,gi)],Ble)}});function xCt(e,t,n,i){const r=e.ordered(t);return L3e(r.map(o=>()=>Promise.resolve(o.provideDocumentHighlights(t,n,i)).then(void 0,Sc)),o=>o!=null).then(o=>{if(o){const s=new mh;return s.set(t.uri,o),s}return new mh})}function dei(e,t,n,i,r,o){const s=e.ordered(t);return L3e(s.map(a=>()=>{const l=o.filter(c=>xUt(c)).filter(c=>UHe(a.selector,c.uri,c.getLanguageId(),!0,void 0,void 0)>0);return Promise.resolve(a.provideMultiDocumentHighlights(t,n,l,r)).then(void 0,Sc)}),a=>a!=null)}function hei(e,t,n,i,r){return new Irn(t,n,r,e)}function fei(e,t,n,i,r,o){return new Lrn(t,n,r,e,o)}var lDe,D3,Bc,cDe,Rne,uDe,Irn,Lrn,Fne,mA,dDe,ECt,ACt,DCt,pei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js"(){var e,t;bn(),Ih(),fr(),Ho(),Vi(),Nt(),NY(),mr(),Ec(),Dn(),ls(),Cd(),Eo(),Min(),er(),Gd(),kh(),w$t(),bf(),uei(),oF(),lDe=function(n,i,r,o){var s=arguments.length,a=s<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,r):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,i,r,o);else for(var c=n.length-1;c>=0;c--)(l=n[c])&&(a=(s<3?l(a):s>3?l(i,r,a):l(i,r))||a);return s>3&&a&&Object.defineProperty(i,r,a),a},D3=function(n,i){return function(r,o){i(r,o,n)}},Rne=new Qn("hasWordHighlights",!1),uDe=class{constructor(n,i,r){this._model=n,this._selection=i,this._wordSeparators=r,this._wordRange=this._getCurrentWordRange(n,i),this._result=null}get result(){return this._result||(this._result=vd(n=>this._compute(this._model,this._selection,this._wordSeparators,n))),this._result}_getCurrentWordRange(n,i){const r=n.getWordAtPosition(i.getPosition());return r?new Re(i.startLineNumber,r.startColumn,i.startLineNumber,r.endColumn):null}isValid(n,i,r){const o=i.startLineNumber,s=i.startColumn,a=i.endColumn,l=this._getCurrentWordRange(n,i);let c=!!(this._wordRange&&this._wordRange.equalsRange(l));for(let u=0,d=r.length;!c&&u<d;u++){const h=r.getRange(u);h&&h.startLineNumber===o&&h.startColumn<=s&&h.endColumn>=a&&(c=!0)}return c}cancel(){this.result.cancel()}},Irn=class extends uDe{constructor(n,i,r,o){super(n,i,r),this._providers=o}_compute(n,i,r,o){return xCt(this._providers,n,i.getPosition(),o).then(s=>s||new mh)}},Lrn=class extends uDe{constructor(n,i,r,o,s){super(n,i,r),this._providers=o,this._otherModels=s}_compute(n,i,r,o){return dei(this._providers,n,i.getPosition(),r,o,this._otherModels).then(s=>s||new mh)}},Xg("_executeDocumentHighlights",async(n,i,r)=>{const o=n.get(gi);return(await xCt(o.documentHighlightProvider,i,r,no.None))?.get(i.uri)}),Fne=(e=class{constructor(i,r,o,s,a){this.toUnhook=new Jt,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=new mh,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.runDelayer=this.toUnhook.add(new j0(50)),this.editor=i,this.providers=r,this.multiDocumentProviders=o,this.codeEditorService=a,this._hasWordHighlights=Rne.bindTo(s),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(81),this.model=this.editor.getModel(),this.toUnhook.add(i.onDidChangeCursorPosition(l=>{this._ignorePositionChangeEvent||this.occurrencesHighlight!=="off"&&this.runDelayer.trigger(()=>{this._onPositionChanged(l)})})),this.toUnhook.add(i.onDidFocusEditorText(l=>{this.occurrencesHighlight!=="off"&&(this.workerRequest||this.runDelayer.trigger(()=>{this._run()}))})),this.toUnhook.add(i.onDidChangeModelContent(l=>{Ope(this.model.uri,"output")||this._stopAll()})),this.toUnhook.add(i.onDidChangeModel(l=>{!l.newModelUrl&&l.oldModelUrl?this._stopSingular():Bc.query&&this._run()})),this.toUnhook.add(i.onDidChangeConfiguration(l=>{const c=this.editor.getOption(81);if(this.occurrencesHighlight!==c)switch(this.occurrencesHighlight=c,c){case"off":this._stopAll();break;case"singleFile":this._stopAll(Bc.query?.modelInfo?.model);break;case"multiFile":Bc.query&&this._run(!0);break;default:console.warn("Unknown occurrencesHighlight setting value:",c);break}})),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,Bc.query&&this._run()}hasDecorations(){return this.decorations.length>0}restore(){this.occurrencesHighlight!=="off"&&(this.runDelayer.cancel(),this._run())}_getSortedHighlights(){return this.decorations.getRanges().sort(Re.compareRangesUsingStarts)}moveNext(){const i=this._getSortedHighlights(),o=(i.findIndex(a=>a.containsPosition(this.editor.getPosition()))+1)%i.length,s=i[o];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(s.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(s);const a=this._getWord();if(a){const l=this.editor.getModel().getLineContent(s.startLineNumber);mg(`${l}, ${o+1} of ${i.length} for '${a.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){const i=this._getSortedHighlights(),o=(i.findIndex(a=>a.containsPosition(this.editor.getPosition()))-1+i.length)%i.length,s=i[o];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(s.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(s);const a=this._getWord();if(a){const l=this.editor.getModel().getLineContent(s.startLineNumber);mg(`${l}, ${o+1} of ${i.length} for '${a.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeSingleDecorations(){if(!this.editor.hasModel())return;const i=Bc.storedDecorationIDs.get(this.editor.getModel().uri);i&&(this.editor.removeDecorations(i),Bc.storedDecorationIDs.delete(this.editor.getModel().uri),this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1)))}_removeAllDecorations(i){const r=this.codeEditorService.listCodeEditors(),o=[];for(const s of r){if(!s.hasModel()||r9(s.getModel().uri,i?.uri))continue;const a=Bc.storedDecorationIDs.get(s.getModel().uri);if(!a)continue;s.removeDecorations(a),o.push(s.getModel().uri);const l=mA.get(s);l?.wordHighlighter&&l.wordHighlighter.decorations.length>0&&(l.wordHighlighter.decorations.clear(),l.wordHighlighter.workerRequest=null,l.wordHighlighter._hasWordHighlights.set(!1))}for(const s of o)Bc.storedDecorationIDs.delete(s)}_stopSingular(){this._removeSingleDecorations(),this.editor.hasTextFocus()&&(this.editor.getModel()?.uri.scheme!==Pr.vscodeNotebookCell&&Bc.query?.modelInfo?.model.uri.scheme!==Pr.vscodeNotebookCell?(Bc.query=null,this._run()):Bc.query?.modelInfo&&(Bc.query.modelInfo=null)),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_stopAll(i){this._removeAllDecorations(i),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(i){if(this.occurrencesHighlight==="off"){this._stopAll();return}if(i.reason!==3&&this.editor.getModel()?.uri.scheme!==Pr.vscodeNotebookCell){this._stopAll();return}this._run()}_getWord(){const i=this.editor.getSelection(),r=i.startLineNumber,o=i.startColumn;return this.model.isDisposed()?null:this.model.getWordAtPosition({lineNumber:r,column:o})}getOtherModelsToHighlight(i){if(!i)return[];if(i.uri.scheme===Pr.vscodeNotebookCell){const a=[],l=this.codeEditorService.listCodeEditors();for(const c of l){const u=c.getModel();u&&u!==i&&u.uri.scheme===Pr.vscodeNotebookCell&&a.push(u)}return a}const o=[],s=this.codeEditorService.listCodeEditors();for(const a of s){if(!QUe(a))continue;const l=a.getModel();l&&i===l.modified&&o.push(l.modified)}if(o.length)return o;if(this.occurrencesHighlight==="singleFile")return[];for(const a of s){const l=a.getModel();l&&l!==i&&o.push(l)}return o}_run(i){let r;if(this.editor.hasTextFocus()){const s=this.editor.getSelection();if(!s||s.startLineNumber!==s.endLineNumber){Bc.query=null,this._stopAll();return}const a=s.startColumn,l=s.endColumn,c=this._getWord();if(!c||c.startColumn>a||c.endColumn<l){Bc.query=null,this._stopAll();return}r=this.workerRequest&&this.workerRequest.isValid(this.model,s,this.decorations),Bc.query={modelInfo:{model:this.model,selection:s},word:c}}else if(!Bc.query){this._stopAll();return}if(this.lastCursorPositionChangeTime=new Date().getTime(),r)this.workerRequestCompleted&&this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else if(r9(this.editor.getModel().uri,Bc.query.modelInfo?.model.uri)){if(!i){const l=this.decorations.getRanges();for(const c of l)if(c.containsPosition(this.editor.getPosition()))return}this._stopAll(i?this.model:void 0);const s=++this.workerRequestTokenId;this.workerRequestCompleted=!1;const a=this.getOtherModelsToHighlight(this.editor.getModel());if(!Bc.query||!Bc.query.modelInfo||Bc.query.modelInfo.model.isDisposed())return;this.workerRequest=this.computeWithModel(Bc.query.modelInfo.model,Bc.query.modelInfo.selection,Bc.query.word,a),this.workerRequest?.result.then(l=>{s===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=l||[],this._beginRenderDecorations())},Mr)}}computeWithModel(i,r,o,s){return s.length?fei(this.multiDocumentProviders,i,r,o,this.editor.getOption(132),s):hei(this.providers,i,r,o,this.editor.getOption(132))}_beginRenderDecorations(){const i=new Date().getTime(),r=this.lastCursorPositionChangeTime+250;i>=r?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},r-i)}renderDecorations(){this.renderDecorationsTimer=-1;const i=this.codeEditorService.listCodeEditors();for(const r of i){const o=mA.get(r);if(!o)continue;const s=[],a=r.getModel()?.uri;if(a&&this.workerRequestValue.has(a)){const l=Bc.storedDecorationIDs.get(a),c=this.workerRequestValue.get(a);if(c)for(const d of c)d.range&&s.push({range:d.range,options:$Xn(d.kind)});let u=[];r.changeDecorations(d=>{u=d.deltaDecorations(l??[],s)}),Bc.storedDecorationIDs=Bc.storedDecorationIDs.set(a,u),s.length>0&&(o.wordHighlighter?.decorations.set(s),o.wordHighlighter?._hasWordHighlights.set(!0))}}}dispose(){this._stopSingular(),this.toUnhook.dispose()}},Bc=e,e.storedDecorationIDs=new mh,e.query=null,e),Fne=Bc=lDe([D3(4,Jo)],Fne),mA=(t=class extends St{static get(i){return i.getContribution(cDe.ID)}constructor(i,r,o,s){super(),this._wordHighlighter=null;const a=()=>{i.hasModel()&&!i.getModel().isTooLargeForTokenization()&&(this._wordHighlighter=new Fne(i,o.documentHighlightProvider,o.multiDocumentHighlightProvider,r,s))};this._register(i.onDidChangeModel(l=>{this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),a()})),a()}get wordHighlighter(){return this._wordHighlighter}saveViewState(){return!!(this._wordHighlighter&&this._wordHighlighter.hasDecorations())}moveNext(){this._wordHighlighter?.moveNext()}moveBack(){this._wordHighlighter?.moveBack()}restoreViewState(i){this._wordHighlighter&&i&&this._wordHighlighter.restore()}dispose(){this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),super.dispose()}},cDe=t,t.ID="editor.contrib.wordHighlighter",t),mA=cDe=lDe([D3(1,ur),D3(2,gi),D3(3,Jo)],mA),dDe=class extends ri{constructor(n,i){super(i),this._isNext=n}run(n,i){const r=mA.get(i);r&&(this._isNext?r.moveNext():r.moveBack())}},ECt=class extends dDe{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:R("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:Rne,kbOpts:{kbExpr:Ge.editorTextFocus,primary:65,weight:100}})}},ACt=class extends dDe{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:R("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:Rne,kbOpts:{kbExpr:Ge.editorTextFocus,primary:1089,weight:100}})}},DCt=class extends ri{constructor(){super({id:"editor.action.wordHighlight.trigger",label:R("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:void 0,kbOpts:{kbExpr:Ge.editorTextFocus,primary:0,weight:100}})}run(n,i,r){const o=mA.get(i);o&&o.restoreViewState(!0)}},qo(mA.ID,mA,0),yn(ECt),yn(ACt),yn(DCt),W7(Ble)}}),R$,vA,yA,TCt,kCt,ICt,LCt,NCt,PCt,MCt,OCt,RCt,FCt,BCt,jCt,zCt,VCt,HCt,WCt,F$,Bne,jne,UCt,$Ct,qCt,GCt,KCt,YCt,QCt,Nrn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js"(){mr(),$7(),Su(),Ib(),Lge(),oY(),Hi(),Dn(),zs(),ls(),lu(),bn(),Cm(),er(),TY(),R$=class extends Hd{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,n){if(!t.hasModel())return;const i=Ay(t.getOption(132),t.getOption(131)),r=t.getModel(),o=t.getSelections(),s=o.length>1,a=o.map(l=>{const c=new mt(l.positionLineNumber,l.positionColumn),u=this._move(i,r,c,this._wordNavigationType,s);return this._moveTo(l,u,this._inSelectionMode)});if(r.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,a.map(l=>Zo.fromModelSelection(l))),a.length===1){const l=new mt(a[0].positionLineNumber,a[0].positionColumn);t.revealPosition(l,0)}}_moveTo(e,t,n){return n?new Ii(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new Ii(t.lineNumber,t.column,t.lineNumber,t.column)}},vA=class extends R${_move(e,t,n,i,r){return uh.moveWordLeft(e,t,n,i,r)}},yA=class extends R${_move(e,t,n,i,r){return uh.moveWordRight(e,t,n,i)}},TCt=class extends vA{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}},kCt=class extends vA{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}},ICt=class extends vA{constructor(){super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:nn.and(Ge.textInputFocus,nn.and(o6,lW)?.negate()),primary:2063,mac:{primary:527},weight:100}})}},LCt=class extends vA{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}},NCt=class extends vA{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}},PCt=class extends vA{constructor(){super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:nn.and(Ge.textInputFocus,nn.and(o6,lW)?.negate()),primary:3087,mac:{primary:1551},weight:100}})}},MCt=class extends vA{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,n,i,r){return super._move(Ay(I_.wordSeparators.defaultValue,e.intlSegmenterLocales),t,n,i,r)}},OCt=class extends vA{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,n,i,r){return super._move(Ay(I_.wordSeparators.defaultValue,e.intlSegmenterLocales),t,n,i,r)}},RCt=class extends yA{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}},FCt=class extends yA{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:nn.and(Ge.textInputFocus,nn.and(o6,lW)?.negate()),primary:2065,mac:{primary:529},weight:100}})}},BCt=class extends yA{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}},jCt=class extends yA{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}},zCt=class extends yA{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:nn.and(Ge.textInputFocus,nn.and(o6,lW)?.negate()),primary:3089,mac:{primary:1553},weight:100}})}},VCt=class extends yA{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}},HCt=class extends yA{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,n,i,r){return super._move(Ay(I_.wordSeparators.defaultValue,e.intlSegmenterLocales),t,n,i,r)}},WCt=class extends yA{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,n,i,r){return super._move(Ay(I_.wordSeparators.defaultValue,e.intlSegmenterLocales),t,n,i,r)}},F$=class extends Hd{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,n){const i=e.get(yl);if(!t.hasModel())return;const r=Ay(t.getOption(132),t.getOption(131)),o=t.getModel(),s=t.getSelections(),a=t.getOption(6),l=t.getOption(11),c=i.getLanguageConfiguration(o.getLanguageId()).getAutoClosingPairs(),u=t._getViewModel(),d=s.map(h=>{const f=this._delete({wordSeparators:r,model:o,selection:h,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(9),autoClosingBrackets:a,autoClosingQuotes:l,autoClosingPairs:c,autoClosedCharacters:u.getCursorAutoClosedCharacters()},this._wordNavigationType);return new dh(f,"")});t.pushUndoStop(),t.executeCommands(this.id,d),t.pushUndoStop()}},Bne=class extends F${_delete(e,t){const n=uh.deleteWordLeft(e,t);return n||new Re(1,1,1,1)}},jne=class extends F${_delete(e,t){const n=uh.deleteWordRight(e,t);if(n)return n;const i=e.model.getLineCount(),r=e.model.getLineMaxColumn(i);return new Re(i,r,i,r)}},UCt=class extends Bne{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:Ge.writable})}},$Ct=class extends Bne{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:Ge.writable})}},qCt=class extends Bne{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:Ge.writable,kbOpts:{kbExpr:Ge.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}},GCt=class extends jne{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:Ge.writable})}},KCt=class extends jne{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:Ge.writable})}},YCt=class extends jne{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:Ge.writable,kbOpts:{kbExpr:Ge.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}},QCt=class extends ri{constructor(){super({id:"deleteInsideWord",precondition:Ge.writable,label:R("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,n){if(!t.hasModel())return;const i=Ay(t.getOption(132),t.getOption(131)),r=t.getModel(),s=t.getSelections().map(a=>{const l=uh.deleteInsideWord(i,r,a);return new dh(l,"")});t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}},$n(new TCt),$n(new kCt),$n(new ICt),$n(new LCt),$n(new NCt),$n(new PCt),$n(new RCt),$n(new FCt),$n(new BCt),$n(new jCt),$n(new zCt),$n(new VCt),$n(new MCt),$n(new OCt),$n(new HCt),$n(new WCt),$n(new UCt),$n(new $Ct),$n(new qCt),$n(new GCt),$n(new KCt),$n(new YCt),yn(QCt)}}),ZCt,XCt,hDe,JCt,eSt,fDe,tSt,nSt,gei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/wordPartOperations/browser/wordPartOperations.js"(){mr(),Lge(),Dn(),ls(),Nrn(),Ks(),ZCt=class extends F${constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:Ge.writable,kbOpts:{kbExpr:Ge.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){const n=vW.deleteWordPartLeft(e);return n||new Re(1,1,1,1)}},XCt=class extends F${constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:Ge.writable,kbOpts:{kbExpr:Ge.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){const n=vW.deleteWordPartRight(e);if(n)return n;const i=e.model.getLineCount(),r=e.model.getLineMaxColumn(i);return new Re(i,r,i,r)}},hDe=class extends R${_move(e,t,n,i,r){return vW.moveWordPartLeft(e,t,n,r)}},JCt=class extends hDe{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:Ge.textInputFocus,primary:0,mac:{primary:783},weight:100}})}},Ro.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft"),eSt=class extends hDe{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:Ge.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}},Ro.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect"),fDe=class extends R${_move(e,t,n,i,r){return vW.moveWordPartRight(e,t,n)}},tSt=class extends fDe{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:Ge.textInputFocus,primary:0,mac:{primary:785},weight:100}})}},nSt=class extends fDe{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:Ge.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}},$n(new ZCt),$n(new XCt),$n(new JCt),$n(new eSt),$n(new tSt),$n(new nSt)}}),pDe,mei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js"(){var e;Dg(),Nt(),mr(),MY(),bn(),pDe=(e=class extends St{constructor(n){super(),this.editor=n,this._register(this.editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}_onDidAttemptReadOnlyEdit(){const n=nm.get(this.editor);if(n&&this.editor.hasModel()){let i=this.editor.getOptions().get(93);i||(this.editor.isSimpleWidget?i=new nf(R("editor.simple.readonly","Cannot edit in read-only input")):i=new nf(R("editor.readonly","Cannot edit in read-only editor"))),n.showMessage(i,this.editor.getPosition())}}},e.ID="editor.contrib.readOnlyMessageController",e),qo(pDe.ID,pDe,2)}}),vei=Ot({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/diffEditorBreadcrumbs/browser/contribution.js"(e){rr(),xs(),fJt(),Cw(),Eo(),zY(),Nt(),Un();var t=e&&e.__decorate||function(r,o,s,a){var l=arguments.length,c=l<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,s):a,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(r,o,s,a);else for(var d=r.length-1;d>=0;d--)(u=r[d])&&(c=(l<3?u(c):l>3?u(o,s,c):u(o,s))||c);return l>3&&c&&Object.defineProperty(o,s,c),c},n=e&&e.__param||function(r,o){return function(s,a){o(s,a,r)}},i=class extends St{constructor(o,s,a){super(),this._textModel=o,this._languageFeaturesService=s,this._outlineModelService=a,this._currentModel=mo(this,void 0);const l=af("documentSymbolProvider.onDidChange",this._languageFeaturesService.documentSymbolProvider.onDidChange),c=af("_textModel.onDidChangeContent",On.debounce(u=>this._textModel.onDidChangeContent(u),()=>{},100));this._register(hm(async(u,d)=>{l.read(u),c.read(u);const h=d.add(new WXt),f=await this._outlineModelService.getOrCreate(this._textModel,h.token);d.isDisposed||this._currentModel.set(f,void 0)}))}getBreadcrumbItems(o,s){const a=this._currentModel.read(s);if(!a)return[];const l=a.asListOfDocumentSymbols().filter(c=>o.contains(c.range.startLineNumber)&&!o.contains(c.range.endLineNumber));return l.sort(mWt(ug(c=>c.range.endLineNumber-c.range.startLineNumber,Yy))),l.map(c=>({name:c.name,kind:c.kind,startLineNumber:c.range.startLineNumber}))}};i=t([n(1,gi),n(2,f9)],i),p$.setBreadcrumbsSourceFactory((r,o)=>o.createInstance(i,r))}}),yei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/editor.all.js"(){Oge(),Rge(),DYn(),kYn(),LYn(),PYn(),MYn(),zYn(),oQn(),cQn(),MQn(),RQn(),BQn(),Ktn(),jQn(),HQn(),WQn(),qQn(),cnn(),$$e(),vZn(),yZn(),bZn(),aXn(),w$e(),W$e(),oin(),sin(),_Xn(),xXn(),EXn(),on(TXn()),kXn(),RXn(),BXn(),HXn(),WXn(),GXn(),rJn(),hJn(),vJn(),CJn(),AJn(),TJn(),RJn(),FJn(),jJn(),dme(),qJn(),tqe(),GJn(),KJn(),YJn(),sei(),cei(),pei(),Nrn(),gei(),mei(),on(vei()),bT(),Jge()}}),bei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.css"(){}}),gDe,iSt,_ei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js"(){var e,t;bei(),Fn(),Nt(),mr(),Xr(),gDe=(e=class extends St{constructor(i){super(),this.editor=i,this.widget=null,Z_&&(this._register(i.onDidChangeConfiguration(()=>this.update())),this.update())}update(){const i=!this.editor.getOption(92);!this.widget&&i?this.widget=new iSt(this.editor):this.widget&&!i&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}},e.ID="editor.contrib.iPadShowKeyboard",e),iSt=(t=class extends St{constructor(i){super(),this.editor=i,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(qt(this._domNode,"touchstart",r=>{this.editor.focus()})),this._register(qt(this._domNode,"focus",r=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return t.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}},t.ID="editor.contrib.ShowKeyboardWidget",t),qo(gDe.ID,gDe,3)}}),wei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/inspectTokens/inspectTokens.css"(){}}),Cei=Ot({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/inspectTokens/inspectTokens.js"(e){var c,u;wei(),Fn(),ql(),Nt(),mr(),ra(),I7(),pY(),Kd(),V7(),bT();var t=e&&e.__decorate||function(d,h,f,p){var g=arguments.length,m=g<3?h:p===null?p=Object.getOwnPropertyDescriptor(h,f):p,v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(d,h,f,p);else for(var y=d.length-1;y>=0;y--)(v=d[y])&&(m=(g<3?v(m):g>3?v(h,f,m):v(h,f))||m);return g>3&&m&&Object.defineProperty(h,f,m),m},n=e&&e.__param||function(d,h){return function(f,p){h(f,p,d)}},i,r=(c=class extends St{static get(h){return h.getContribution(i.ID)}constructor(h,f,p){super(),this._editor=h,this._languageService=p,this._widget=null,this._register(this._editor.onDidChangeModel(g=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(g=>this.stop())),this._register(Hl.onDidChange(g=>this.stop())),this._register(this._editor.onKeyUp(g=>g.keyCode===9&&this.stop()))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new l(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}},i=c,c.ID="editor.contrib.inspectTokens",c);r=i=t([n(1,Fv),n(2,al)],r);var o=class extends ri{constructor(){super({id:"editor.action.inspectTokens",label:N4e.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(d,h){r.get(h)?.launch()}};function s(d){let h="";for(let f=0,p=d.length;f<p;f++){const g=d.charCodeAt(f);switch(g){case 9:h+="→";break;case 32:h+="·";break;default:h+=String.fromCharCode(g)}}return h}function a(d,h){const f=Hl.get(h);if(f)return f;const p=d.encodeLanguageId(h);return{getInitialState:()=>e2,tokenize:(g,m,v)=>oWe(h,v),tokenizeEncoded:(g,m,v)=>fge(p,v)}}var l=(u=class extends St{constructor(h,f){super(),this.allowEditorOverflow=!0,this._editor=h,this._languageService=f,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=a(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(p=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return u._ID}_compute(h){const f=this._getTokensAtLine(h.lineNumber);let p=0;for(let b=f.tokens1.length-1;b>=0;b--){const w=f.tokens1[b];if(h.column-1>=w.offset){p=b;break}}let g=0;for(let b=f.tokens2.length>>>1;b>=0;b--)if(h.column-1>=f.tokens2[b<<1]){g=b;break}const m=this._model.getLineContent(h.lineNumber);let v="";if(p<f.tokens1.length){const b=f.tokens1[p].offset,w=p+1<f.tokens1.length?f.tokens1[p+1].offset:m.length;v=m.substring(b,w)}xh(this._domNode,In("h2.tm-token",void 0,s(v),In("span.tm-token-length",void 0,`${v.length} ${v.length===1?"char":"chars"}`))),hn(this._domNode,In("hr.tokens-inspect-separator",{style:"clear:both"}));const y=(g<<1)+1<f.tokens2.length?this._decodeMetadata(f.tokens2[(g<<1)+1]):null;hn(this._domNode,In("table.tm-metadata-table",void 0,In("tbody",void 0,In("tr",void 0,In("td.tm-metadata-key",void 0,"language"),In("td.tm-metadata-value",void 0,`${y?y.languageId:"-?-"}`)),In("tr",void 0,In("td.tm-metadata-key",void 0,"token type"),In("td.tm-metadata-value",void 0,`${y?this._tokenTypeToString(y.tokenType):"-?-"}`)),In("tr",void 0,In("td.tm-metadata-key",void 0,"font style"),In("td.tm-metadata-value",void 0,`${y?this._fontStyleToString(y.fontStyle):"-?-"}`)),In("tr",void 0,In("td.tm-metadata-key",void 0,"foreground"),In("td.tm-metadata-value",void 0,`${y?rn.Format.CSS.formatHex(y.foreground):"-?-"}`)),In("tr",void 0,In("td.tm-metadata-key",void 0,"background"),In("td.tm-metadata-value",void 0,`${y?rn.Format.CSS.formatHex(y.background):"-?-"}`))))),hn(this._domNode,In("hr.tokens-inspect-separator")),p<f.tokens1.length&&hn(this._domNode,In("span.tm-token-type",void 0,f.tokens1[p].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(h){const f=Hl.getColorMap(),p=gh.getLanguageId(h),g=gh.getTokenType(h),m=gh.getFontStyle(h),v=gh.getForeground(h),y=gh.getBackground(h);return{languageId:this._languageService.languageIdCodec.decodeLanguageId(p),tokenType:g,fontStyle:m,foreground:f[v],background:f[y]}}_tokenTypeToString(h){switch(h){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 3:return"RegEx";default:return"??"}}_fontStyleToString(h){let f="";return h&1&&(f+="italic "),h&2&&(f+="bold "),h&4&&(f+="underline "),h&8&&(f+="strikethrough "),f.length===0&&(f="---"),f}_getTokensAtLine(h){const f=this._getStateBeforeLine(h),p=this._tokenizationSupport.tokenize(this._model.getLineContent(h),!0,f),g=this._tokenizationSupport.tokenizeEncoded(this._model.getLineContent(h),!0,f);return{startState:f,tokens1:p.tokens,tokens2:g.tokens,endState:p.endState}}_getStateBeforeLine(h){let f=this._tokenizationSupport.getInitialState();for(let p=1;p<h;p++)f=this._tokenizationSupport.tokenize(this._model.getLineContent(p),!0,f).endState;return f}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}},u._ID="editor.contrib.inspectTokensWidget",u);qo(r.ID,r,4),yn(o)}}),rSt,mDe,T3,jle,Sei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/quickinput/browser/helpQuickAccess.js"(){var e;bn(),Fu(),Nt(),tl(),z7(),Hv(),rSt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},mDe=function(t,n){return function(i,r){n(i,r,t)}},jle=(e=class{constructor(n,i){this.quickInputService=n,this.keybindingService=i,this.registry=ml.as(FL.Quickaccess)}provide(n){const i=new Jt;return i.add(n.onDidAccept(()=>{const[r]=n.selectedItems;r&&this.quickInputService.quickAccess.show(r.prefix,{preserveValue:!0})})),i.add(n.onDidChangeValue(r=>{const o=this.registry.getQuickAccessProvider(r.substr(T3.PREFIX.length));o&&o.prefix&&o.prefix!==T3.PREFIX&&this.quickInputService.quickAccess.show(o.prefix,{preserveValue:!0})})),n.items=this.getQuickAccessProviders().filter(r=>r.prefix!==T3.PREFIX),i}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort((i,r)=>i.prefix.localeCompare(r.prefix)).flatMap(i=>this.createPicks(i))}createPicks(n){return n.helpEntries.map(i=>{const r=i.prefix||n.prefix,o=r||"…";return{prefix:r,label:o,keybinding:i.commandId?this.keybindingService.lookupKeybinding(i.commandId):void 0,ariaLabel:R("helpPickAriaLabel","{0}, {1}",o,i.description),description:i.description}})}},T3=e,e.PREFIX="?",e),jle=T3=rSt([mDe(0,Z0),mDe(1,Cs)],jle)}}),xei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneHelpQuickAccess.js"(){Fu(),z7(),bT(),Sei(),ml.as(FL.Quickaccess).registerQuickAccessProvider({ctor:jle,prefix:"",helpEntries:[{description:P4e.helpQuickAccessActionLabel}]})}}),oqe,Prn=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js"(){U2(),Nt(),NY(),Cd(),kb(),Ys(),Ih(),oqe=class{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t,n){const i=new Jt;e.canAcceptInBackground=!!this.options?.canAcceptInBackground,e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const r=i.add(new Yu);return r.value=this.doProvide(e,t,n),i.add(this.onDidActiveTextEditorControlChange(()=>{r.value=void 0,r.value=this.doProvide(e,t)})),i}doProvide(e,t,n){const i=new Jt,r=this.activeTextEditorControl;if(r&&this.canProvideWithTextEditor(r)){const o={editor:r},s=kJt(r);if(s){let a=r.saveViewState()??void 0;i.add(s.onDidChangeCursorPosition(()=>{a=r.saveViewState()??void 0})),o.restoreViewState=()=>{a&&r===this.activeTextEditorControl&&r.restoreViewState(a)},i.add(vL(t.onCancellationRequested)(()=>o.restoreViewState?.()))}i.add(zi(()=>this.clearDecorations(r))),i.add(this.provideWithTextEditor(o,e,t,n))}else i.add(this.provideWithoutTextEditor(e,t));return i}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range,"code.jump"),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus();const n=e.getModel();n&&"getLineContent"in n&&eE(`${n.getLineContent(t.range.startLineNumber)}`)}getModel(e){return QUe(e)?e.getModel()?.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(n=>{const i=[];this.rangeHighlightDecorationId&&(i.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),i.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const r=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:ec(SWe),position:x0.Full}}}],[o,s]=n.deltaDecorations(i,r);this.rangeHighlightDecorationId={rangeHighlightId:o,overviewRulerDecorationId:s}})}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(n=>{n.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}}}),Mrn,Eei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js"(){var e;Nt(),NY(),Prn(),bn(),Mrn=(e=class extends oqe{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(n){const i=R("cannotRunGotoLine","Open a text editor first to go to a line.");return n.items=[{label:i}],n.ariaLabel=i,St.None}provideWithTextEditor(n,i,r){const o=n.editor,s=new Jt;s.add(i.onDidAccept(c=>{const[u]=i.selectedItems;if(u){if(!this.isValidLineNumber(o,u.lineNumber))return;this.gotoLocation(n,{range:this.toRange(u.lineNumber,u.column),keyMods:i.keyMods,preserveFocus:c.inBackground}),c.inBackground||i.hide()}}));const a=()=>{const c=this.parsePosition(o,i.value.trim().substr(e.PREFIX.length)),u=this.getPickLabel(o,c.lineNumber,c.column);if(i.items=[{lineNumber:c.lineNumber,column:c.column,label:u}],i.ariaLabel=u,!this.isValidLineNumber(o,c.lineNumber)){this.clearDecorations(o);return}const d=this.toRange(c.lineNumber,c.column);o.revealRangeInCenter(d,0),this.addDecorations(o,d)};a(),s.add(i.onDidChangeValue(()=>a()));const l=kJt(o);return l&&l.getOptions().get(68).renderType===2&&(l.updateOptions({lineNumbers:"on"}),s.add(zi(()=>l.updateOptions({lineNumbers:"relative"})))),s}toRange(n=1,i=1){return{startLineNumber:n,startColumn:i,endLineNumber:n,endColumn:i}}parsePosition(n,i){const r=i.split(/,|:|#/).map(s=>parseInt(s,10)).filter(s=>!isNaN(s)),o=this.lineCount(n)+1;return{lineNumber:r[0]>0?r[0]:o+r[0],column:r[1]}}getPickLabel(n,i,r){if(this.isValidLineNumber(n,i))return this.isValidColumn(n,i,r)?R("gotoLineColumnLabel","Go to line {0} and character {1}.",i,r):R("gotoLineLabel","Go to line {0}.",i);const o=n.getPosition()||{lineNumber:1,column:1},s=this.lineCount(n);return s>1?R("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",o.lineNumber,o.column,s):R("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",o.lineNumber,o.column)}isValidLineNumber(n,i){return!i||typeof i!="number"?!1:i>0&&i<=this.lineCount(n)}isValidColumn(n,i,r){if(!r||typeof r!="number")return!1;const o=this.getModel(n);if(!o)return!1;const s={lineNumber:i,column:r};return o.validatePosition(s).equals(s)}lineCount(n){return this.getModel(n)?.getLineCount()??0}},e.PREFIX=":",e)}}),oSt,sSt,L4,vDe,Aei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneGotoLineQuickAccess.js"(){var e;Eei(),Fu(),z7(),Ec(),bT(),Un(),mr(),ls(),Hv(),oSt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},sSt=function(t,n){return function(i,r){n(i,r,t)}},L4=class extends Mrn{constructor(n){super(),this.editorService=n,this.onDidActiveTextEditorControlChange=On.None}get activeTextEditorControl(){return this.editorService.getFocusedCodeEditor()??void 0}},L4=oSt([sSt(0,Jo)],L4),vDe=(e=class extends ri{constructor(){super({id:e.ID,label:Xue.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:Ge.focus,primary:2085,mac:{primary:293},weight:100}})}run(n){n.get(Z0).quickAccess.show(L4.PREFIX)}},e.ID="editor.action.gotoLine",e),yn(vDe),ml.as(FL.Quickaccess).registerQuickAccessProvider({ctor:L4,prefix:L4.PREFIX,helpEntries:[{description:Xue.gotoLineActionLabel,commandId:vDe.ID}]})}});function yDe(e,t,n=0,i=0){const r=t;return r.values&&r.values.length>1?Dei(e,r.values,n,i):Orn(e,t,n,i)}function Dei(e,t,n,i){let r=0;const o=[];for(const s of t){const[a,l]=Orn(e,s,n,i);if(typeof a!="number")return sqe;r+=a,o.push(...l)}return[r,Tei(o)]}function Orn(e,t,n,i){const r=JR(t.original,t.originalLowercase,n,e,e.toLowerCase(),i,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return r?[r[0],eG(r)]:sqe}function Tei(e){const t=e.sort((r,o)=>r.start-o.start),n=[];let i;for(const r of t)!i||!kei(i,r)?(i=r,n.push(r)):(i.start=Math.min(i.start,r.start),i.end=Math.max(i.end,r.end));return n}function kei(e,t){return!(e.end<t.start||t.end<e.start)}function aSt(e){return e.startsWith('"')&&e.endsWith('"')}function R8e(e){typeof e!="string"&&(e="");const t=e.toLowerCase(),{pathNormalized:n,normalized:i,normalizedLowercase:r}=lSt(e),o=n.indexOf(V_)>=0,s=aSt(e);let a;const l=e.split(aqe);if(l.length>1)for(const c of l){const u=aSt(c),{pathNormalized:d,normalized:h,normalizedLowercase:f}=lSt(c);h&&(a||(a=[]),a.push({original:c,originalLowercase:c.toLowerCase(),pathNormalized:d,normalized:h,normalizedLowercase:f,expectContiguousMatch:u}))}return{original:e,originalLowercase:t,pathNormalized:n,normalized:i,normalizedLowercase:r,values:a,containsPathSeparator:o,expectContiguousMatch:s}}function lSt(e){let t;Ch?t=e.replace(/\//g,V_):t=e.replace(/\\/g,V_);const n=_9n(t).replace(/\s|"/g,"");return{pathNormalized:t,normalized:n,normalizedLowercase:n.toLowerCase()}}function cSt(e){return Array.isArray(e)?R8e(e.map(t=>t.original).join(aqe)):R8e(e.original)}var sqe,aqe,Iei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/fuzzyScorer.js"(){yw(),bE(),Xr(),Ki(),sqe=[void 0,[]],aqe=" "}}),uSt,bDe,zne,II,Vne,Hne,Lei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js"(){var e;fr(),Ho(),ia(),Ra(),Iei(),Nt(),Ki(),Dn(),ra(),zY(),Prn(),bn(),Eo(),Y0(),uSt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},bDe=function(t,n){return function(i,r){n(i,r,t)}},II=(e=class extends oqe{constructor(n,i,r=Object.create(null)){super(r),this._languageFeaturesService=n,this._outlineModelService=i,this.options=r,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(n){return this.provideLabelPick(n,R("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),St.None}provideWithTextEditor(n,i,r,o){const s=n.editor,a=this.getModel(s);return a?this._languageFeaturesService.documentSymbolProvider.has(a)?this.doProvideWithEditorSymbols(n,a,i,r,o):this.doProvideWithoutEditorSymbols(n,a,i,r):St.None}doProvideWithoutEditorSymbols(n,i,r,o){const s=new Jt;return this.provideLabelPick(r,R("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(async()=>!await this.waitForLanguageSymbolRegistry(i,s)||o.isCancellationRequested||s.add(this.doProvideWithEditorSymbols(n,i,r,o)))(),s}provideLabelPick(n,i){n.items=[{label:i,index:0,kind:14}],n.ariaLabel=i}async waitForLanguageSymbolRegistry(n,i){if(this._languageFeaturesService.documentSymbolProvider.has(n))return!0;const r=new K2,o=i.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(n)&&(o.dispose(),r.complete(!0))}));return i.add(zi(()=>r.complete(!1))),r.p}doProvideWithEditorSymbols(n,i,r,o,s){const a=n.editor,l=new Jt;l.add(r.onDidAccept(h=>{const[f]=r.selectedItems;f&&f.range&&(this.gotoLocation(n,{range:f.range.selection,keyMods:r.keyMods,preserveFocus:h.inBackground}),s?.handleAccept?.(f),h.inBackground||r.hide())})),l.add(r.onDidTriggerItemButton(({item:h})=>{h&&h.range&&(this.gotoLocation(n,{range:h.range.selection,keyMods:r.keyMods,forceSideBySide:!0}),r.hide())}));const c=this.getDocumentSymbols(i,o);let u;const d=async h=>{u?.dispose(!0),r.busy=!1,u=new bl(o),r.busy=!0;try{const f=R8e(r.value.substr(zne.PREFIX.length).trim()),p=await this.doGetSymbolPicks(c,f,void 0,u.token,i);if(o.isCancellationRequested)return;if(p.length>0){if(r.items=p,h&&f.original.length===0){const g=Kq(p,m=>!!(m.type!=="separator"&&m.range&&Re.containsPosition(m.range.decoration,h)));g&&(r.activeItems=[g])}}else f.original.length>0?this.provideLabelPick(r,R("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(r,R("noSymbolResults","No editor symbols"))}finally{o.isCancellationRequested||(r.busy=!1)}};return l.add(r.onDidChangeValue(()=>d(void 0))),d(a.getSelection()?.getPosition()),l.add(r.onDidChangeActive(()=>{const[h]=r.activeItems;h&&h.range&&(a.revealRangeInCenter(h.range.selection,0),this.addDecorations(a,h.range.decoration))})),l}async doGetSymbolPicks(n,i,r,o,s){const a=await n;if(o.isCancellationRequested)return[];const l=i.original.indexOf(zne.SCOPE_PREFIX)===0,c=l?1:0;let u,d;i.values&&i.values.length>1?(u=cSt(i.values[0]),d=cSt(i.values.slice(1))):u=i;let h;const f=this.options?.openSideBySideDirection?.();f&&(h=[{iconClass:f==="right"?lr.asClassName(An.splitHorizontal):lr.asClassName(An.splitVertical),tooltip:f==="right"?R("openToSide","Open to the Side"):R("openToBottom","Open to the Bottom")}]);const p=[];for(let v=0;v<a.length;v++){const y=a[v],b=y9n(y.name),w=`$(${Zce.toIcon(y.kind).id}) ${b}`,E=w.length-b.length;let A=y.containerName;r?.extraContainerLabel&&(A?A=`${r.extraContainerLabel} • ${A}`:A=r.extraContainerLabel);let D,T,M,P;if(i.original.length>c){let N=!1;if(u!==i&&([D,T]=yDe(w,{...i,values:void 0},c,E),typeof D=="number"&&(N=!0)),typeof D!="number"&&([D,T]=yDe(w,u,c,E),typeof D!="number"))continue;if(!N&&d){if(A&&d.original.length>0&&([M,P]=yDe(A,d)),typeof M!="number")continue;typeof D=="number"&&(D+=M)}}const F=y.tags&&y.tags.indexOf(1)>=0;p.push({index:v,kind:y.kind,score:D,label:w,ariaLabel:j2n(y.name,y.kind),description:A,highlights:F?void 0:{label:T,description:P},range:{selection:Re.collapseToStart(y.selectionRange),decoration:y.range},uri:s.uri,symbolName:b,strikethrough:F,buttons:h})}const g=p.sort((v,y)=>l?this.compareByKindAndScore(v,y):this.compareByScore(v,y));let m=[];if(l){let v=function(){b&&typeof y=="number"&&w>0&&(b.label=$R(Hne[y]||Vne,w))},y,b,w=0;for(const E of g)y!==E.kind?(v(),y=E.kind,w=1,b={type:"separator"},m.push(b)):w++,m.push(E);v()}else g.length>0&&(m=[{label:R("symbols","symbols ({0})",p.length),type:"separator"},...g]);return m}compareByScore(n,i){if(typeof n.score!="number"&&typeof i.score=="number")return 1;if(typeof n.score=="number"&&typeof i.score!="number")return-1;if(typeof n.score=="number"&&typeof i.score=="number"){if(n.score>i.score)return-1;if(n.score<i.score)return 1}return n.index<i.index?-1:n.index>i.index?1:0}compareByKindAndScore(n,i){const r=Hne[n.kind]||Vne,o=Hne[i.kind]||Vne,s=r.localeCompare(o);return s===0?this.compareByScore(n,i):s}async getDocumentSymbols(n,i){const r=await this._outlineModelService.getOrCreate(n,i);return i.isCancellationRequested?[]:r.asListOfDocumentSymbols()}},zne=e,e.PREFIX="@",e.SCOPE_PREFIX=":",e.PREFIX_BY_CATEGORY=`${e.PREFIX}${e.SCOPE_PREFIX}`,e),II=zne=uSt([bDe(0,gi),bDe(1,f9)],II),Vne=R("property","properties ({0})"),Hne={5:R("method","methods ({0})"),11:R("function","functions ({0})"),8:R("_constructor","constructors ({0})"),12:R("variable","variables ({0})"),4:R("class","classes ({0})"),22:R("struct","structs ({0})"),23:R("event","events ({0})"),24:R("operator","operators ({0})"),10:R("interface","interfaces ({0})"),2:R("namespace","namespaces ({0})"),3:R("package","packages ({0})"),25:R("typeParameter","type parameters ({0})"),1:R("modules","modules ({0})"),6:R("property","properties ({0})"),9:R("enum","enumerations ({0})"),21:R("enumMember","enumeration members ({0})"),14:R("string","strings ({0})"),0:R("file","files ({0})"),17:R("array","arrays ({0})"),15:R("number","numbers ({0})"),16:R("boolean","booleans ({0})"),18:R("object","objects ({0})"),19:R("key","keys ({0})"),7:R("field","fields ({0})"),13:R("constant","constants ({0})")}}}),dSt,Wne,Une,_De,Nei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneGotoSymbolQuickAccess.js"(){var e;Jge(),A$e(),Lei(),Fu(),z7(),Ec(),bT(),Un(),mr(),ls(),Hv(),zY(),Eo(),dSt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},Wne=function(t,n){return function(i,r){n(i,r,t)}},Une=class extends II{constructor(n,i,r){super(i,r),this.editorService=n,this.onDidActiveTextEditorControlChange=On.None}get activeTextEditorControl(){return this.editorService.getFocusedCodeEditor()??void 0}},Une=dSt([Wne(0,Jo),Wne(1,gi),Wne(2,f9)],Une),_De=(e=class extends ri{constructor(){super({id:e.ID,label:QU.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:Ge.hasDocumentSymbolProvider,kbOpts:{kbExpr:Ge.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(n){n.get(Z0).quickAccess.show(II.PREFIX,{itemActivation:N1.NONE})}},e.ID="editor.action.quickOutline",e),yn(_De),ml.as(FL.Quickaccess).registerQuickAccessProvider({ctor:Une,prefix:II.PREFIX,helpEntries:[{description:QU.quickOutlineActionLabel,prefix:II.PREFIX,commandId:_De.ID},{description:QU.quickOutlineByCategoryActionLabel,prefix:II.PREFIX_BY_CATEGORY}]})}});function Pei(e){const t=new Map;for(const n of e)t.set(n,(t.get(n)??0)+1);return t}function Mei(e){const t=e.slice(0);t.sort((i,r)=>r.score-i.score);const n=t[0]?.score??0;if(n>0)for(const i of t)i.score/=n;return t}var Rrn,Oei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/tfIdf.js"(){Rrn=class zle{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(t,n){const i=this.computeEmbedding(t),r=new Map,o=[];for(const[s,a]of this.documents){if(n.isCancellationRequested)return[];for(const l of a.chunks){const c=this.computeSimilarityScore(l,i,r);c>0&&o.push({key:s,score:c})}}return o}static termFrequencies(t){return Pei(zle.splitTerms(t))}static*splitTerms(t){const n=i=>i.toLowerCase();for(const[i]of t.matchAll(new RegExp("\\b\\p{Letter}[\\p{Letter}\\d]{2,}\\b","gu"))){yield n(i);const r=i.replace(/([a-z])([A-Z])/g,"$1 $2").split(/\s+/g);if(r.length>1)for(const o of r)o.length>2&&new RegExp("\\p{Letter}{3,}","gu").test(o)&&(yield n(o))}}updateDocuments(t){for(const{key:n}of t)this.deleteDocument(n);for(const n of t){const i=[];for(const r of n.textChunks){const o=zle.termFrequencies(r);for(const s of o.keys())this.chunkOccurrences.set(s,(this.chunkOccurrences.get(s)??0)+1);i.push({text:r,tf:o})}this.chunkCount+=i.length,this.documents.set(n.key,{chunks:i})}return this}deleteDocument(t){const n=this.documents.get(t);if(n){this.documents.delete(t),this.chunkCount-=n.chunks.length;for(const i of n.chunks)for(const r of i.tf.keys()){const o=this.chunkOccurrences.get(r);if(typeof o=="number"){const s=o-1;s<=0?this.chunkOccurrences.delete(r):this.chunkOccurrences.set(r,s)}}}}computeSimilarityScore(t,n,i){let r=0;for(const[o,s]of Object.entries(n)){const a=t.tf.get(o);if(!a)continue;let l=i.get(o);typeof l!="number"&&(l=this.computeIdf(o),i.set(o,l));const c=a*l;r+=c*s}return r}computeEmbedding(t){const n=zle.termFrequencies(t);return this.computeTfidf(n)}computeIdf(t){const n=this.chunkOccurrences.get(t)??0;return n>0?Math.log((this.chunkCount+1)/n):0}computeTfidf(t){const n=Object.create(null);for(const[i,r]of t){const o=this.computeIdf(i);o>0&&(n[i]=r*o)}return n}}}});function wDe(e){return Array.isArray(e.items)}function hSt(e){const t=e;return!!t.picks&&t.additionalPicks instanceof Promise}var N4,Frn,Rei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/quickinput/browser/pickerQuickAccess.js"(){fr(),Ho(),Nt(),as(),(function(e){e[e.NO_ACTION=0]="NO_ACTION",e[e.CLOSE_PICKER=1]="CLOSE_PICKER",e[e.REFRESH_PICKER=2]="REFRESH_PICKER",e[e.REMOVE_ITEM=3]="REMOVE_ITEM"})(N4||(N4={})),Frn=class extends St{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,n){const i=new Jt;e.canAcceptInBackground=!!this.options?.canAcceptInBackground,e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let r;const o=i.add(new Yu),s=async()=>{const l=o.value=new Jt;r?.dispose(!0),e.busy=!1,r=new bl(t);const c=r.token;let u=e.value.substring(this.prefix.length);this.options?.shouldSkipTrimPickFilter||(u=u.trim());const d=this._getPicks(u,l,c,n),h=(p,g)=>{let m,v;if(wDe(p)?(m=p.items,v=p.active):m=p,m.length===0){if(g)return!1;(u.length>0||e.hideInput)&&this.options?.noResultsPick&&(_q(this.options.noResultsPick)?m=[this.options.noResultsPick(u)]:m=[this.options.noResultsPick])}return e.items=m,v&&(e.activeItems=[v]),!0},f=async p=>{let g=!1,m=!1;await Promise.all([(async()=>{typeof p.mergeDelay=="number"&&(await FD(p.mergeDelay),c.isCancellationRequested)||m||(g=h(p.picks,!0))})(),(async()=>{e.busy=!0;try{const v=await p.additionalPicks;if(c.isCancellationRequested)return;let y,b;wDe(p.picks)?(y=p.picks.items,b=p.picks.active):y=p.picks;let w,E;if(wDe(v)?(w=v.items,E=v.active):w=v,w.length>0||!g){let A;if(!b&&!E){const D=e.activeItems[0];D&&y.indexOf(D)!==-1&&(A=D)}h({items:[...y,...w],active:b||E||A})}}finally{c.isCancellationRequested||(e.busy=!1),m=!0}})()])};if(d!==null)if(hSt(d))await f(d);else if(!(d instanceof Promise))h(d);else{e.busy=!0;try{const p=await d;if(c.isCancellationRequested)return;hSt(p)?await f(p):h(p)}finally{c.isCancellationRequested||(e.busy=!1)}}};i.add(e.onDidChangeValue(()=>s())),s(),i.add(e.onDidAccept(l=>{if(n?.handleAccept){l.inBackground||e.hide(),n.handleAccept?.(e.activeItems[0]);return}const[c]=e.selectedItems;typeof c?.accept=="function"&&(l.inBackground||e.hide(),c.accept(e.keyMods,l))}));const a=async(l,c)=>{if(typeof c.trigger!="function")return;const u=c.buttons?.indexOf(l)??-1;if(u>=0){const d=c.trigger(u,e.keyMods),h=typeof d=="number"?d:await d;if(t.isCancellationRequested)return;switch(h){case N4.NO_ACTION:break;case N4.CLOSE_PICKER:e.hide();break;case N4.REFRESH_PICKER:s();break;case N4.REMOVE_ITEM:{const f=e.items.indexOf(c);if(f!==-1){const p=e.items.slice(),g=p.splice(f,1),m=e.activeItems.filter(y=>y!==g[0]),v=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=p,m&&(e.activeItems=m),e.keepScrollPosition=v}break}}}};return i.add(e.onDidTriggerItemButton(({button:l,item:c})=>a(l,c))),i.add(e.onDidTriggerSeparatorButton(({button:l,separator:c})=>a(l,c))),i}}}}),CDe,bA,_M,ku,Vle,$ne,Fei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/quickinput/browser/commandsQuickAccess.js"(){var e,t;Pen(),Vi(),yw(),U2(),Nt(),kh(),Oei(),bn(),Ks(),sa(),aY(),li(),tl(),wm(),Rei(),CE(),_m(),CDe=function(n,i,r,o){var s=arguments.length,a=s<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,r):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,i,r,o);else for(var c=n.length-1;c>=0;c--)(l=n[c])&&(a=(s<3?l(a):s>3?l(i,r,a):l(i,r))||a);return s>3&&a&&Object.defineProperty(i,r,a),a},bA=function(n,i){return function(r,o){i(r,o,n)}},Vle=(e=class extends Frn{constructor(i,r,o,s,a,l){super(_M.PREFIX,i),this.instantiationService=r,this.keybindingService=o,this.commandService=s,this.telemetryService=a,this.dialogService=l,this.commandsHistory=this._register(this.instantiationService.createInstance($ne)),this.options=i}async _getPicks(i,r,o,s){const a=await this.getCommandPicks(o);if(o.isCancellationRequested)return[];const l=vL(()=>{const g=new Rrn;g.updateDocuments(a.map(v=>({key:v.commandId,textChunks:[this.getTfIdfChunk(v)]})));const m=g.calculateScores(i,o);return Mei(m).filter(v=>v.score>_M.TFIDF_THRESHOLD).slice(0,_M.TFIDF_MAX_RESULTS)}),c=[];for(const g of a){const m=_M.WORD_FILTER(i,g.label)??void 0,v=g.commandAlias?_M.WORD_FILTER(i,g.commandAlias)??void 0:void 0;if(m||v)g.highlights={label:m,detail:this.options.showAlias?v:void 0},c.push(g);else if(i===g.commandId)c.push(g);else if(i.length>=3){const y=l();if(o.isCancellationRequested)return[];const b=y.find(w=>w.key===g.commandId);b&&(g.tfIdfScore=b.score,c.push(g))}}const u=new Map;for(const g of c){const m=u.get(g.label);m?(g.description=g.commandId,m.description=m.commandId):u.set(g.label,g)}c.sort((g,m)=>{if(g.tfIdfScore&&m.tfIdfScore)return g.tfIdfScore===m.tfIdfScore?g.label.localeCompare(m.label):m.tfIdfScore-g.tfIdfScore;if(g.tfIdfScore)return 1;if(m.tfIdfScore)return-1;const v=this.commandsHistory.peek(g.commandId),y=this.commandsHistory.peek(m.commandId);if(v&&y)return v>y?-1:1;if(v)return-1;if(y)return 1;if(this.options.suggestedCommandIds){const b=this.options.suggestedCommandIds.has(g.commandId),w=this.options.suggestedCommandIds.has(m.commandId);if(b&&w)return 0;if(b)return-1;if(w)return 1}return g.label.localeCompare(m.label)});const d=[];let h=!1,f=!0,p=!!this.options.suggestedCommandIds;for(let g=0;g<c.length;g++){const m=c[g];g===0&&this.commandsHistory.peek(m.commandId)&&(d.push({type:"separator",label:R("recentlyUsed","recently used")}),h=!0),f&&m.tfIdfScore!==void 0&&(d.push({type:"separator",label:R("suggested","similar commands")}),f=!1),p&&m.tfIdfScore===void 0&&!this.commandsHistory.peek(m.commandId)&&this.options.suggestedCommandIds?.has(m.commandId)&&(d.push({type:"separator",label:R("commonlyUsed","commonly used")}),h=!0,p=!1),h&&m.tfIdfScore===void 0&&!this.commandsHistory.peek(m.commandId)&&!this.options.suggestedCommandIds?.has(m.commandId)&&(d.push({type:"separator",label:R("morecCommands","other commands")}),h=!1),d.push(this.toCommandPick(m,s))}return this.hasAdditionalCommandPicks(i,o)?{picks:d,additionalPicks:(async()=>{const g=await this.getAdditionalCommandPicks(a,c,i,o);if(o.isCancellationRequested)return[];const m=g.map(v=>this.toCommandPick(v,s));return f&&m[0]?.type!=="separator"&&m.unshift({type:"separator",label:R("suggested","similar commands")}),m})()}:d}toCommandPick(i,r){if(i.type==="separator")return i;const o=this.keybindingService.lookupKeybinding(i.commandId),s=o?R("commandPickAriaLabelWithKeybinding","{0}, {1}",i.label,o.getAriaLabel()):i.label;return{...i,ariaLabel:s,detail:this.options.showAlias&&i.commandAlias!==i.label?i.commandAlias:void 0,keybinding:o,accept:async()=>{this.commandsHistory.push(i.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:i.commandId,from:r?.from??"quick open"});try{i.args?.length?await this.commandService.executeCommand(i.commandId,...i.args):await this.commandService.executeCommand(i.commandId)}catch(a){bb(a)||this.dialogService.error(R("canNotRun","Command '{0}' resulted in an error",i.label),Ode(a))}}}}getTfIdfChunk({label:i,commandAlias:r,commandDescription:o}){let s=i;return r&&r!==i&&(s+=` - ${r}`),o&&o.value!==i&&(s+=` - ${o.value===o.original?o.value:`${o.value} (${o.original})`}`),s}},_M=e,e.PREFIX=">",e.TFIDF_THRESHOLD=.5,e.TFIDF_MAX_RESULTS=5,e.WORD_FILTER=h4e(W6,oVn,O$t),e),Vle=_M=CDe([bA(1,ji),bA(2,Cs),bA(3,Oa),bA(4,uf),bA(5,T7)],Vle),$ne=(t=class extends St{constructor(i,r,o){super(),this.storageService=i,this.configurationService=r,this.logService=o,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(i=>this.updateConfiguration(i))),this._register(this.storageService.onWillSaveState(i=>{i.reason===rG.SHUTDOWN&&this.saveState()}))}updateConfiguration(i){i&&!i.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=ku.getConfiguredCommandHistoryLength(this.configurationService),ku.cache&&ku.cache.limit!==this.configuredCommandsHistoryLength&&(ku.cache.limit=this.configuredCommandsHistoryLength,ku.hasChanges=!0))}load(){const i=this.storageService.get(ku.PREF_KEY_CACHE,0);let r;if(i)try{r=JSON.parse(i)}catch(s){this.logService.error(`[CommandsHistory] invalid data: ${s}`)}const o=ku.cache=new WC(this.configuredCommandsHistoryLength,1);if(r){let s;r.usesLRU?s=r.entries:s=r.entries.sort((a,l)=>a.value-l.value),s.forEach(a=>o.set(a.key,a.value))}ku.counter=this.storageService.getNumber(ku.PREF_KEY_COUNTER,0,ku.counter)}push(i){ku.cache&&(ku.cache.set(i,ku.counter++),ku.hasChanges=!0)}peek(i){return ku.cache?.peek(i)}saveState(){if(!ku.cache||!ku.hasChanges)return;const i={usesLRU:!0,entries:[]};ku.cache.forEach((r,o)=>i.entries.push({key:o,value:r})),this.storageService.store(ku.PREF_KEY_CACHE,JSON.stringify(i),0,0),this.storageService.store(ku.PREF_KEY_COUNTER,ku.counter,0,0),ku.hasChanges=!1}static getConfiguredCommandHistoryLength(i){const o=i.getValue().workbench?.commandPalette?.history;return typeof o=="number"?o:ku.DEFAULT_COMMANDS_HISTORY_LENGTH}},ku=t,t.DEFAULT_COMMANDS_HISTORY_LENGTH=50,t.PREF_KEY_CACHE="commandPalette.mru.cache",t.PREF_KEY_COUNTER="commandPalette.mru.counter",t.counter=1,t.hasChanges=!1,t),$ne=ku=CDe([bA(0,ab),bA(1,co),bA(2,bh)],$ne)}}),Brn,Bei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/quickAccess/browser/commandsQuickAccess.js"(){P7(),dGt(),Fei(),Brn=class extends Vle{constructor(e,t,n,i,r,o){super(e,t,n,i,r,o)}getCodeEditorCommandPicks(){const e=this.activeTextEditorControl;if(!e)return[];const t=[];for(const n of e.getSupportedActions()){let i;n.metadata?.description&&(dHn(n.metadata.description)?i=n.metadata.description:i={original:n.metadata.description,value:n.metadata.description}),t.push({commandId:n.id,commandAlias:n.alias,commandDescription:i,label:tWe(n.label)||n.id})}return t}}}}),fSt,wM,P4,SDe,jei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneCommandsQuickAccess.js"(){var e;Fu(),z7(),bT(),Ec(),Bei(),li(),tl(),Ks(),_m(),aY(),mr(),ls(),Hv(),fSt=function(t,n,i,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(n,i,s):a(n,i))||s);return o>3&&s&&Object.defineProperty(n,i,s),s},wM=function(t,n){return function(i,r){n(i,r,t)}},P4=class extends Brn{get activeTextEditorControl(){return this.codeEditorService.getFocusedCodeEditor()??void 0}constructor(n,i,r,o,s,a){super({showAlias:!1},n,r,o,s,a),this.codeEditorService=i}async getCommandPicks(){return this.getCodeEditorCommandPicks()}hasAdditionalCommandPicks(){return!1}async getAdditionalCommandPicks(){return[]}},P4=fSt([wM(0,ji),wM(1,Jo),wM(2,Cs),wM(3,Oa),wM(4,uf),wM(5,T7)],P4),SDe=(e=class extends ri{constructor(){super({id:e.ID,label:Jue.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:Ge.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(n){n.get(Z0).quickAccess.show(P4.PREFIX)}},e.ID="editor.action.quickCommand",e),yn(SDe),ml.as(FL.Quickaccess).registerQuickAccessProvider({ctor:P4,prefix:P4.PREFIX,helpEntries:[{description:Jue.quickCommandHelp,commandId:SDe.ID}]})}}),pSt,CM,qne,zei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/referenceSearch/standaloneReferenceSearch.js"(){mr(),Ec(),Btn(),sa(),er(),li(),yf(),CE(),pSt=function(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,n,o):s(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},CM=function(e,t){return function(n,i){t(n,i,e)}},qne=class extends uL{constructor(t,n,i,r,o,s,a){super(!0,t,n,i,r,o,s,a)}},qne=pSt([CM(1,ur),CM(2,Jo),CM(3,Cc),CM(4,ji),CM(5,ab),CM(6,co)],qne),qo(uL.ID,qne,4)}}),gSt,Vei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/standalone/browser/toggleHighContrast/toggleHighContrast.js"(){mr(),V7(),bT(),VC(),cQt(),gSt=class extends ri{constructor(){super({id:"editor.action.toggleHighContrast",label:O4e.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const n=e.get(Fv),i=n.getColorTheme();rC(i.type)?(n.setTheme(this._originalThemeName||(e9(i.type)?OO:ZS)),this._originalThemeName=null):(n.setTheme(e9(i.type)?xI:EI),this._originalThemeName=i.themeName)}},yn(gSt)}}),Hei=se({"../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/edcore.main.js"(){yei(),_ei(),on(Cei()),xei(),Aei(),Nei(),jei(),zei(),Vei(),h9()}}),jrn={};oc(jrn,{CancellationTokenSource:()=>ZUe,Emitter:()=>Kge,KeyCode:()=>XUe,KeyMod:()=>JUe,MarkerSeverity:()=>r$e,MarkerTag:()=>o$e,Position:()=>e$e,Range:()=>t$e,Selection:()=>n$e,SelectionDirection:()=>i$e,Token:()=>s$e,Uri:()=>Yge,editor:()=>h_,languages:()=>lC});var Q7=se({"../node_modules/.pnpm/monaco-graphql@1.7.3_graphql@16.13.1_monaco-editor@0.52.2_prettier@3.8.1/node_modules/monaco-graphql/esm/monaco-editor.js"(){sYn(),cen(),Hei()}});function Wei(e,t){if(!t)return new F8e({languageId:e,schemas:[],formattingOptions:Hle,modeConfiguration:B8e,diagnosticSettings:j8e,completionSettings:z8e});const{schemas:n,formattingOptions:i,modeConfiguration:r,diagnosticSettings:o,completionSettings:s}=t;return new F8e({languageId:e,schemas:n,formattingOptions:{...Hle,...i,prettierConfig:{...Hle.prettierConfig,...i?.prettierConfig}},modeConfiguration:{...B8e,...r},diagnosticSettings:{...j8e,...o},completionSettings:{...z8e,...s}})}var F8e,B8e,Hle,j8e,z8e,Uei=se({"../node_modules/.pnpm/monaco-graphql@1.7.3_graphql@16.13.1_monaco-editor@0.52.2_prettier@3.8.1/node_modules/monaco-graphql/esm/api.js"(){Q7(),F8e=class{_onDidChange=new Kge;_formattingOptions;_modeConfiguration;_diagnosticSettings;_completionSettings;_schemas=null;_schemasById=Object.create(null);_languageId;_externalFragmentDefinitions;constructor({languageId:e,schemas:t,modeConfiguration:n,formattingOptions:i,diagnosticSettings:r,completionSettings:o}){this._languageId=e,t&&this.setSchemaConfig(t),this._modeConfiguration=n,this._completionSettings=o,this._diagnosticSettings=r,this._formattingOptions=i}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get schemas(){return this._schemas}schemasById(){return this._schemasById}get formattingOptions(){return this._formattingOptions}get diagnosticSettings(){return this._diagnosticSettings}get completionSettings(){return{...this._completionSettings,fillLeafsOnComplete:this._completionSettings.__experimental__fillLeafsOnComplete??this._completionSettings.fillLeafsOnComplete}}get externalFragmentDefinitions(){return this._externalFragmentDefinitions}setSchemaConfig(e){this._schemas=e,this._schemasById=e.reduce((t,n)=>(t[n.uri]=n,t),Object.create(null)),this._onDidChange.fire(this)}setExternalFragmentDefinitions(e){this._externalFragmentDefinitions=e}setModeConfiguration(e){this._modeConfiguration=e,this._onDidChange.fire(this)}setFormattingOptions(e){this._formattingOptions=e,this._onDidChange.fire(this)}setDiagnosticSettings(e){this._diagnosticSettings=e,this._onDidChange.fire(this)}setCompletionSettings(e){this._completionSettings=e,this._onDidChange.fire(this)}},B8e={documentFormattingEdits:!0,documentRangeFormattingEdits:!1,completionItems:!0,hovers:!0,documentSymbols:!1,tokens:!1,colors:!1,foldingRanges:!1,diagnostics:!0,selectionRanges:!1},Hle={prettierConfig:{tabWidth:2}},j8e={jsonDiagnosticSettings:{schemaValidation:"error"}},z8e={__experimental__fillLeafsOnComplete:!1}}}),zrn=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/interface/autocompleteUtils.js"(){}}),mSt,xDe,vSt,Gne,c1,ih,Kne,ySt,EDe,bSt,_St,wSt,CSt,ADe,SSt,xSt,ESt,Yne,M4,O4,DDe,R4,ASt,TDe,kDe,IDe,LDe,NDe,DSt,TSt,PDe,kSt,MDe,k3,ISt,LSt,NSt,PSt,MSt,OSt,RSt,FSt,Qne,BSt,jSt,zSt,VSt,HSt,WSt,USt,$St,qSt,GSt,KSt,Zne,YSt,QSt,ZSt,XSt,JSt,ext,txt,nxt,ixt,rxt,oxt,sxt,axt,ODe,RDe,lxt,cxt,uxt,dxt,hxt,fxt,pxt,gxt,mxt,vxt,xn,Vrn=se({"../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){(function(e){function t(n){return typeof n=="string"}e.is=t})(mSt||(mSt={})),(function(e){function t(n){return typeof n=="string"}e.is=t})(xDe||(xDe={})),(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(vSt||(vSt={})),(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(Gne||(Gne={})),(function(e){function t(i,r){return i===Number.MAX_VALUE&&(i=Gne.MAX_VALUE),r===Number.MAX_VALUE&&(r=Gne.MAX_VALUE),{line:i,character:r}}e.create=t;function n(i){let r=i;return xn.objectLiteral(r)&&xn.uinteger(r.line)&&xn.uinteger(r.character)}e.is=n})(c1||(c1={})),(function(e){function t(i,r,o,s){if(xn.uinteger(i)&&xn.uinteger(r)&&xn.uinteger(o)&&xn.uinteger(s))return{start:c1.create(i,r),end:c1.create(o,s)};if(c1.is(i)&&c1.is(r))return{start:i,end:r};throw new Error(`Range#create called with invalid arguments[${i}, ${r}, ${o}, ${s}]`)}e.create=t;function n(i){let r=i;return xn.objectLiteral(r)&&c1.is(r.start)&&c1.is(r.end)}e.is=n})(ih||(ih={})),(function(e){function t(i,r){return{uri:i,range:r}}e.create=t;function n(i){let r=i;return xn.objectLiteral(r)&&ih.is(r.range)&&(xn.string(r.uri)||xn.undefined(r.uri))}e.is=n})(Kne||(Kne={})),(function(e){function t(i,r,o,s){return{targetUri:i,targetRange:r,targetSelectionRange:o,originSelectionRange:s}}e.create=t;function n(i){let r=i;return xn.objectLiteral(r)&&ih.is(r.targetRange)&&xn.string(r.targetUri)&&ih.is(r.targetSelectionRange)&&(ih.is(r.originSelectionRange)||xn.undefined(r.originSelectionRange))}e.is=n})(ySt||(ySt={})),(function(e){function t(i,r,o,s){return{red:i,green:r,blue:o,alpha:s}}e.create=t;function n(i){const r=i;return xn.objectLiteral(r)&&xn.numberRange(r.red,0,1)&&xn.numberRange(r.green,0,1)&&xn.numberRange(r.blue,0,1)&&xn.numberRange(r.alpha,0,1)}e.is=n})(EDe||(EDe={})),(function(e){function t(i,r){return{range:i,color:r}}e.create=t;function n(i){const r=i;return xn.objectLiteral(r)&&ih.is(r.range)&&EDe.is(r.color)}e.is=n})(bSt||(bSt={})),(function(e){function t(i,r,o){return{label:i,textEdit:r,additionalTextEdits:o}}e.create=t;function n(i){const r=i;return xn.objectLiteral(r)&&xn.string(r.label)&&(xn.undefined(r.textEdit)||O4.is(r))&&(xn.undefined(r.additionalTextEdits)||xn.typedArray(r.additionalTextEdits,O4.is))}e.is=n})(_St||(_St={})),(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(wSt||(wSt={})),(function(e){function t(i,r,o,s,a,l){const c={startLine:i,endLine:r};return xn.defined(o)&&(c.startCharacter=o),xn.defined(s)&&(c.endCharacter=s),xn.defined(a)&&(c.kind=a),xn.defined(l)&&(c.collapsedText=l),c}e.create=t;function n(i){const r=i;return xn.objectLiteral(r)&&xn.uinteger(r.startLine)&&xn.uinteger(r.startLine)&&(xn.undefined(r.startCharacter)||xn.uinteger(r.startCharacter))&&(xn.undefined(r.endCharacter)||xn.uinteger(r.endCharacter))&&(xn.undefined(r.kind)||xn.string(r.kind))}e.is=n})(CSt||(CSt={})),(function(e){function t(i,r){return{location:i,message:r}}e.create=t;function n(i){let r=i;return xn.defined(r)&&Kne.is(r.location)&&xn.string(r.message)}e.is=n})(ADe||(ADe={})),(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(SSt||(SSt={})),(function(e){e.Unnecessary=1,e.Deprecated=2})(xSt||(xSt={})),(function(e){function t(n){const i=n;return xn.objectLiteral(i)&&xn.string(i.href)}e.is=t})(ESt||(ESt={})),(function(e){function t(i,r,o,s,a,l){let c={range:i,message:r};return xn.defined(o)&&(c.severity=o),xn.defined(s)&&(c.code=s),xn.defined(a)&&(c.source=a),xn.defined(l)&&(c.relatedInformation=l),c}e.create=t;function n(i){var r;let o=i;return xn.defined(o)&&ih.is(o.range)&&xn.string(o.message)&&(xn.number(o.severity)||xn.undefined(o.severity))&&(xn.integer(o.code)||xn.string(o.code)||xn.undefined(o.code))&&(xn.undefined(o.codeDescription)||xn.string((r=o.codeDescription)===null||r===void 0?void 0:r.href))&&(xn.string(o.source)||xn.undefined(o.source))&&(xn.undefined(o.relatedInformation)||xn.typedArray(o.relatedInformation,ADe.is))}e.is=n})(Yne||(Yne={})),(function(e){function t(i,r,...o){let s={title:i,command:r};return xn.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=t;function n(i){let r=i;return xn.defined(r)&&xn.string(r.title)&&xn.string(r.command)}e.is=n})(M4||(M4={})),(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function n(o,s){return{range:{start:o,end:o},newText:s}}e.insert=n;function i(o){return{range:o,newText:""}}e.del=i;function r(o){const s=o;return xn.objectLiteral(s)&&xn.string(s.newText)&&ih.is(s.range)}e.is=r})(O4||(O4={})),(function(e){function t(i,r,o){const s={label:i};return r!==void 0&&(s.needsConfirmation=r),o!==void 0&&(s.description=o),s}e.create=t;function n(i){const r=i;return xn.objectLiteral(r)&&xn.string(r.label)&&(xn.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(xn.string(r.description)||r.description===void 0)}e.is=n})(DDe||(DDe={})),(function(e){function t(n){const i=n;return xn.string(i)}e.is=t})(R4||(R4={})),(function(e){function t(o,s,a){return{range:o,newText:s,annotationId:a}}e.replace=t;function n(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}e.insert=n;function i(o,s){return{range:o,newText:"",annotationId:s}}e.del=i;function r(o){const s=o;return O4.is(s)&&(DDe.is(s.annotationId)||R4.is(s.annotationId))}e.is=r})(ASt||(ASt={})),(function(e){function t(i,r){return{textDocument:i,edits:r}}e.create=t;function n(i){let r=i;return xn.defined(r)&&PDe.is(r.textDocument)&&Array.isArray(r.edits)}e.is=n})(TDe||(TDe={})),(function(e){function t(i,r,o){let s={kind:"create",uri:i};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(s.options=r),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(i){let r=i;return r&&r.kind==="create"&&xn.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||xn.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||xn.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||R4.is(r.annotationId))}e.is=n})(kDe||(kDe={})),(function(e){function t(i,r,o,s){let a={kind:"rename",oldUri:i,newUri:r};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(i){let r=i;return r&&r.kind==="rename"&&xn.string(r.oldUri)&&xn.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||xn.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||xn.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||R4.is(r.annotationId))}e.is=n})(IDe||(IDe={})),(function(e){function t(i,r,o){let s={kind:"delete",uri:i};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(s.options=r),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(i){let r=i;return r&&r.kind==="delete"&&xn.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||xn.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||xn.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||R4.is(r.annotationId))}e.is=n})(LDe||(LDe={})),(function(e){function t(n){let i=n;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every(r=>xn.string(r.kind)?kDe.is(r)||IDe.is(r)||LDe.is(r):TDe.is(r)))}e.is=t})(NDe||(NDe={})),(function(e){function t(i){return{uri:i}}e.create=t;function n(i){let r=i;return xn.defined(r)&&xn.string(r.uri)}e.is=n})(DSt||(DSt={})),(function(e){function t(i,r){return{uri:i,version:r}}e.create=t;function n(i){let r=i;return xn.defined(r)&&xn.string(r.uri)&&xn.integer(r.version)}e.is=n})(TSt||(TSt={})),(function(e){function t(i,r){return{uri:i,version:r}}e.create=t;function n(i){let r=i;return xn.defined(r)&&xn.string(r.uri)&&(r.version===null||xn.integer(r.version))}e.is=n})(PDe||(PDe={})),(function(e){function t(i,r,o,s){return{uri:i,languageId:r,version:o,text:s}}e.create=t;function n(i){let r=i;return xn.defined(r)&&xn.string(r.uri)&&xn.string(r.languageId)&&xn.integer(r.version)&&xn.string(r.text)}e.is=n})(kSt||(kSt={})),(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){const i=n;return i===e.PlainText||i===e.Markdown}e.is=t})(MDe||(MDe={})),(function(e){function t(n){const i=n;return xn.objectLiteral(n)&&MDe.is(i.kind)&&xn.string(i.value)}e.is=t})(k3||(k3={})),(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(ISt||(ISt={})),(function(e){e.PlainText=1,e.Snippet=2})(LSt||(LSt={})),(function(e){e.Deprecated=1})(NSt||(NSt={})),(function(e){function t(i,r,o){return{newText:i,insert:r,replace:o}}e.create=t;function n(i){const r=i;return r&&xn.string(r.newText)&&ih.is(r.insert)&&ih.is(r.replace)}e.is=n})(PSt||(PSt={})),(function(e){e.asIs=1,e.adjustIndentation=2})(MSt||(MSt={})),(function(e){function t(n){const i=n;return i&&(xn.string(i.detail)||i.detail===void 0)&&(xn.string(i.description)||i.description===void 0)}e.is=t})(OSt||(OSt={})),(function(e){function t(n){return{label:n}}e.create=t})(RSt||(RSt={})),(function(e){function t(n,i){return{items:n||[],isIncomplete:!!i}}e.create=t})(FSt||(FSt={})),(function(e){function t(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(i){const r=i;return xn.string(r)||xn.objectLiteral(r)&&xn.string(r.language)&&xn.string(r.value)}e.is=n})(Qne||(Qne={})),(function(e){function t(n){let i=n;return!!i&&xn.objectLiteral(i)&&(k3.is(i.contents)||Qne.is(i.contents)||xn.typedArray(i.contents,Qne.is))&&(n.range===void 0||ih.is(n.range))}e.is=t})(BSt||(BSt={})),(function(e){function t(n,i){return i?{label:n,documentation:i}:{label:n}}e.create=t})(jSt||(jSt={})),(function(e){function t(n,i,...r){let o={label:n};return xn.defined(i)&&(o.documentation=i),xn.defined(r)?o.parameters=r:o.parameters=[],o}e.create=t})(zSt||(zSt={})),(function(e){e.Text=1,e.Read=2,e.Write=3})(VSt||(VSt={})),(function(e){function t(n,i){let r={range:n};return xn.number(i)&&(r.kind=i),r}e.create=t})(HSt||(HSt={})),(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(WSt||(WSt={})),(function(e){e.Deprecated=1})(USt||(USt={})),(function(e){function t(n,i,r,o,s){let a={name:n,kind:i,location:{uri:o,range:r}};return s&&(a.containerName=s),a}e.create=t})($St||($St={})),(function(e){function t(n,i,r,o){return o!==void 0?{name:n,kind:i,location:{uri:r,range:o}}:{name:n,kind:i,location:{uri:r}}}e.create=t})(qSt||(qSt={})),(function(e){function t(i,r,o,s,a,l){let c={name:i,detail:r,kind:o,range:s,selectionRange:a};return l!==void 0&&(c.children=l),c}e.create=t;function n(i){let r=i;return r&&xn.string(r.name)&&xn.number(r.kind)&&ih.is(r.range)&&ih.is(r.selectionRange)&&(r.detail===void 0||xn.string(r.detail))&&(r.deprecated===void 0||xn.boolean(r.deprecated))&&(r.children===void 0||Array.isArray(r.children))&&(r.tags===void 0||Array.isArray(r.tags))}e.is=n})(GSt||(GSt={})),(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(KSt||(KSt={})),(function(e){e.Invoked=1,e.Automatic=2})(Zne||(Zne={})),(function(e){function t(i,r,o){let s={diagnostics:i};return r!=null&&(s.only=r),o!=null&&(s.triggerKind=o),s}e.create=t;function n(i){let r=i;return xn.defined(r)&&xn.typedArray(r.diagnostics,Yne.is)&&(r.only===void 0||xn.typedArray(r.only,xn.string))&&(r.triggerKind===void 0||r.triggerKind===Zne.Invoked||r.triggerKind===Zne.Automatic)}e.is=n})(YSt||(YSt={})),(function(e){function t(i,r,o){let s={title:i},a=!0;return typeof r=="string"?(a=!1,s.kind=r):M4.is(r)?s.command=r:s.edit=r,a&&o!==void 0&&(s.kind=o),s}e.create=t;function n(i){let r=i;return r&&xn.string(r.title)&&(r.diagnostics===void 0||xn.typedArray(r.diagnostics,Yne.is))&&(r.kind===void 0||xn.string(r.kind))&&(r.edit!==void 0||r.command!==void 0)&&(r.command===void 0||M4.is(r.command))&&(r.isPreferred===void 0||xn.boolean(r.isPreferred))&&(r.edit===void 0||NDe.is(r.edit))}e.is=n})(QSt||(QSt={})),(function(e){function t(i,r){let o={range:i};return xn.defined(r)&&(o.data=r),o}e.create=t;function n(i){let r=i;return xn.defined(r)&&ih.is(r.range)&&(xn.undefined(r.command)||M4.is(r.command))}e.is=n})(ZSt||(ZSt={})),(function(e){function t(i,r){return{tabSize:i,insertSpaces:r}}e.create=t;function n(i){let r=i;return xn.defined(r)&&xn.uinteger(r.tabSize)&&xn.boolean(r.insertSpaces)}e.is=n})(XSt||(XSt={})),(function(e){function t(i,r,o){return{range:i,target:r,data:o}}e.create=t;function n(i){let r=i;return xn.defined(r)&&ih.is(r.range)&&(xn.undefined(r.target)||xn.string(r.target))}e.is=n})(JSt||(JSt={})),(function(e){function t(i,r){return{range:i,parent:r}}e.create=t;function n(i){let r=i;return xn.objectLiteral(r)&&ih.is(r.range)&&(r.parent===void 0||e.is(r.parent))}e.is=n})(ext||(ext={})),(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(txt||(txt={})),(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(nxt||(nxt={})),(function(e){function t(n){const i=n;return xn.objectLiteral(i)&&(i.resultId===void 0||typeof i.resultId=="string")&&Array.isArray(i.data)&&(i.data.length===0||typeof i.data[0]=="number")}e.is=t})(ixt||(ixt={})),(function(e){function t(i,r){return{range:i,text:r}}e.create=t;function n(i){const r=i;return r!=null&&ih.is(r.range)&&xn.string(r.text)}e.is=n})(rxt||(rxt={})),(function(e){function t(i,r,o){return{range:i,variableName:r,caseSensitiveLookup:o}}e.create=t;function n(i){const r=i;return r!=null&&ih.is(r.range)&&xn.boolean(r.caseSensitiveLookup)&&(xn.string(r.variableName)||r.variableName===void 0)}e.is=n})(oxt||(oxt={})),(function(e){function t(i,r){return{range:i,expression:r}}e.create=t;function n(i){const r=i;return r!=null&&ih.is(r.range)&&(xn.string(r.expression)||r.expression===void 0)}e.is=n})(sxt||(sxt={})),(function(e){function t(i,r){return{frameId:i,stoppedLocation:r}}e.create=t;function n(i){const r=i;return xn.defined(r)&&ih.is(i.stoppedLocation)}e.is=n})(axt||(axt={})),(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(ODe||(ODe={})),(function(e){function t(i){return{value:i}}e.create=t;function n(i){const r=i;return xn.objectLiteral(r)&&(r.tooltip===void 0||xn.string(r.tooltip)||k3.is(r.tooltip))&&(r.location===void 0||Kne.is(r.location))&&(r.command===void 0||M4.is(r.command))}e.is=n})(RDe||(RDe={})),(function(e){function t(i,r,o){const s={position:i,label:r};return o!==void 0&&(s.kind=o),s}e.create=t;function n(i){const r=i;return xn.objectLiteral(r)&&c1.is(r.position)&&(xn.string(r.label)||xn.typedArray(r.label,RDe.is))&&(r.kind===void 0||ODe.is(r.kind))&&r.textEdits===void 0||xn.typedArray(r.textEdits,O4.is)&&(r.tooltip===void 0||xn.string(r.tooltip)||k3.is(r.tooltip))&&(r.paddingLeft===void 0||xn.boolean(r.paddingLeft))&&(r.paddingRight===void 0||xn.boolean(r.paddingRight))}e.is=n})(lxt||(lxt={})),(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(cxt||(cxt={})),(function(e){function t(n,i,r,o){return{insertText:n,filterText:i,range:r,command:o}}e.create=t})(uxt||(uxt={})),(function(e){function t(n){return{items:n}}e.create=t})(dxt||(dxt={})),(function(e){e.Invoked=0,e.Automatic=1})(hxt||(hxt={})),(function(e){function t(n,i){return{range:n,text:i}}e.create=t})(fxt||(fxt={})),(function(e){function t(n,i){return{triggerKind:n,selectedCompletionInfo:i}}e.create=t})(pxt||(pxt={})),(function(e){function t(n){const i=n;return xn.objectLiteral(i)&&xDe.is(i.uri)&&xn.string(i.name)}e.is=t})(gxt||(gxt={})),(function(e){function t(o,s,a,l){return new vxt(o,s,a,l)}e.create=t;function n(o){let s=o;return!!(xn.defined(s)&&xn.string(s.uri)&&(xn.undefined(s.languageId)||xn.string(s.languageId))&&xn.uinteger(s.lineCount)&&xn.func(s.getText)&&xn.func(s.positionAt)&&xn.func(s.offsetAt))}e.is=n;function i(o,s){let a=o.getText(),l=r(s,(u,d)=>{let h=u.range.start.line-d.range.start.line;return h===0?u.range.start.character-d.range.start.character:h}),c=a.length;for(let u=l.length-1;u>=0;u--){let d=l[u],h=o.offsetAt(d.range.start),f=o.offsetAt(d.range.end);if(f<=c)a=a.substring(0,h)+d.newText+a.substring(f,a.length);else throw new Error("Overlapping edit");c=h}return a}e.applyEdits=i;function r(o,s){if(o.length<=1)return o;const a=o.length/2|0,l=o.slice(0,a),c=o.slice(a);r(l,s),r(c,s);let u=0,d=0,h=0;for(;u<l.length&&d<c.length;)s(l[u],c[d])<=0?o[h++]=l[u++]:o[h++]=c[d++];for(;u<l.length;)o[h++]=l[u++];for(;d<c.length;)o[h++]=c[d++];return o}})(mxt||(mxt={})),vxt=class{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],t=this._content,n=!0;for(let i=0;i<t.length;i++){n&&(e.push(i),n=!1);let r=t.charAt(i);n=r==="\r"||r===`
`,r==="\r"&&i+1<t.length&&t.charAt(i+1)===`
`&&i++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,i=t.length;if(i===0)return c1.create(0,e);for(;n<i;){let o=Math.floor((n+i)/2);t[o]>e?i=o:n=o+1}let r=n-1;return c1.create(r,e-t[r])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)}get lineCount(){return this.getLineOffsets().length}},(function(e){const t=Object.prototype.toString;function n(f){return typeof f<"u"}e.defined=n;function i(f){return typeof f>"u"}e.undefined=i;function r(f){return f===!0||f===!1}e.boolean=r;function o(f){return t.call(f)==="[object String]"}e.string=o;function s(f){return t.call(f)==="[object Number]"}e.number=s;function a(f,p,g){return t.call(f)==="[object Number]"&&p<=f&&f<=g}e.numberRange=a;function l(f){return t.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}e.integer=l;function c(f){return t.call(f)==="[object Number]"&&0<=f&&f<=2147483647}e.uinteger=c;function u(f){return t.call(f)==="[object Function]"}e.func=u;function d(f){return f!==null&&typeof f=="object"}e.objectLiteral=d;function h(f,p){return Array.isArray(f)&&f.every(p)}e.typedArray=h})(xn||(xn={}))}}),V8e,$ei=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/parser/CharacterStream.js"(){V8e=class{constructor(e){this._start=0,this._pos=0,this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>this._pos===0,this.peek=()=>this._sourceText.charAt(this._pos)||null,this.next=()=>{const t=this._sourceText.charAt(this._pos);return this._pos++,t},this.eat=t=>{if(this._testNextCharacter(t))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=t=>{let n=this._testNextCharacter(t),i=!1;for(n&&(i=n,this._start=this._pos);n;)this._pos++,n=this._testNextCharacter(t),i=!0;return i},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=t=>{this._pos=t},this.match=(t,n=!0,i=!1)=>{let r=null,o=null;return typeof t=="string"?(o=new RegExp(t,i?"i":"g").test(this._sourceText.slice(this._pos,this._pos+t.length)),r=t):t instanceof RegExp&&(o=this._sourceText.slice(this._pos).match(t),r=o?.[0]),o!=null&&(typeof t=="string"||o instanceof Array&&this._sourceText.startsWith(o[0],this._pos))?(n&&(this._start=this._pos,r&&r.length&&(this._pos+=r.length)),o):!1},this.backUp=t=>{this._pos-=t},this.column=()=>this._pos,this.indentation=()=>{const t=this._sourceText.match(/\s*/);let n=0;if(t&&t.length!==0){const i=t[0];let r=0;for(;i.length>r;)i.charCodeAt(r)===9?n+=2:n++,r++}return n},this.current=()=>this._sourceText.slice(this._start,this._pos),this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return typeof e=="string"?n=t===e:n=e instanceof RegExp?e.test(t):e(t),n}}}});function rh(e){return{ofRule:e}}function fl(e,t){return{ofRule:e,isList:!0,separator:t}}function qei(e,t){const n=e.match;return e.match=i=>{let r=!1;return n&&(r=n(i)),r&&t.every(o=>o.match&&!o.match(i))},e}function FDe(e,t){return{style:t,match:n=>n.kind===e}}function Rs(e,t){return{style:t||"punctuation",match:n=>n.kind==="Punctuation"&&n.value===e}}var Hrn=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/parser/RuleHelpers.js"(){}});function $p(e){return{style:"keyword",match:t=>t.kind==="Name"&&t.value===e}}function hu(e){return{style:e,match:t=>t.kind==="Name",update(t,n){t.name=n.value}}}function Gei(e){return{style:e,match:t=>t.kind==="Name",update(t,n){var i;!((i=t.prevState)===null||i===void 0)&&i.prevState&&(t.name=n.value,t.prevState.prevState.type=n.value)}}}var Wrn,Urn,$rn,qrn=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/parser/Rules.js"(){Hrn(),bd(),Wrn=e=>e===" "||e==="	"||e===","||e===`
`||e==="\r"||e==="\uFEFF"||e===" ",Urn={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},$rn={Document:[fl("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return Ct.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[$p("query"),rh(hu("def")),rh("VariableDefinitions"),fl("Directive"),"SelectionSet"],Mutation:[$p("mutation"),rh(hu("def")),rh("VariableDefinitions"),fl("Directive"),"SelectionSet"],Subscription:[$p("subscription"),rh(hu("def")),rh("VariableDefinitions"),fl("Directive"),"SelectionSet"],VariableDefinitions:[Rs("("),fl("VariableDefinition"),Rs(")")],VariableDefinition:["Variable",Rs(":"),"Type",rh("DefaultValue")],Variable:[Rs("$","variable"),hu("variable")],DefaultValue:[Rs("="),"Value"],SelectionSet:[Rs("{"),fl("Selection"),Rs("}")],Selection(e,t){return e.value==="..."?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[hu("property"),Rs(":"),hu("qualifier"),rh("Arguments"),fl("Directive"),rh("SelectionSet")],Field:[hu("property"),rh("Arguments"),fl("Directive"),rh("SelectionSet")],Arguments:[Rs("("),fl("Argument"),Rs(")")],Argument:[hu("attribute"),Rs(":"),"Value"],FragmentSpread:[Rs("..."),hu("def"),fl("Directive")],InlineFragment:[Rs("..."),rh("TypeCondition"),fl("Directive"),"SelectionSet"],FragmentDefinition:[$p("fragment"),rh(qei(hu("def"),[$p("on")])),"TypeCondition",fl("Directive"),"SelectionSet"],TypeCondition:[$p("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return e.value==="null"?"NullValue":"EnumValue"}},NumberValue:[FDe("Number","number")],StringValue:[{style:"string",match:e=>e.kind==="String",update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[FDe("Name","builtin")],NullValue:[FDe("Name","keyword")],EnumValue:[hu("string-2")],ListValue:[Rs("["),fl("Value"),Rs("]")],ObjectValue:[Rs("{"),fl("ObjectField"),Rs("}")],ObjectField:[hu("attribute"),Rs(":"),"Value"],Type(e){return e.value==="["?"ListType":"NonNullType"},ListType:[Rs("["),"Type",Rs("]"),rh(Rs("!"))],NonNullType:["NamedType",rh(Rs("!"))],NamedType:[Gei("atom")],Directive:[Rs("@","meta"),hu("meta"),rh("Arguments")],DirectiveDef:[$p("directive"),Rs("@","meta"),hu("meta"),rh("ArgumentsDef"),$p("on"),fl("DirectiveLocation",Rs("|"))],InterfaceDef:[$p("interface"),hu("atom"),rh("Implements"),fl("Directive"),Rs("{"),fl("FieldDef"),Rs("}")],Implements:[$p("implements"),fl("NamedType",Rs("&"))],DirectiveLocation:[hu("string-2")],SchemaDef:[$p("schema"),fl("Directive"),Rs("{"),fl("OperationTypeDef"),Rs("}")],OperationTypeDef:[hu("keyword"),Rs(":"),hu("atom")],ScalarDef:[$p("scalar"),hu("atom"),fl("Directive")],ObjectTypeDef:[$p("type"),hu("atom"),rh("Implements"),fl("Directive"),Rs("{"),fl("FieldDef"),Rs("}")],FieldDef:[hu("property"),rh("ArgumentsDef"),Rs(":"),"Type",fl("Directive")],ArgumentsDef:[Rs("("),fl("InputValueDef"),Rs(")")],InputValueDef:[hu("attribute"),Rs(":"),"Type",rh("DefaultValue"),fl("Directive")],UnionDef:[$p("union"),hu("atom"),fl("Directive"),Rs("="),fl("UnionMember",Rs("|"))],UnionMember:["NamedType"],EnumDef:[$p("enum"),hu("atom"),fl("Directive"),Rs("{"),fl("EnumValueDef"),Rs("}")],EnumValueDef:[hu("string-2"),fl("Directive")],InputDef:[$p("input"),hu("atom"),fl("Directive"),Rs("{"),fl("InputValueDef"),Rs("}")],ExtendDef:[$p("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return Ct.SCHEMA_EXTENSION;case"scalar":return Ct.SCALAR_TYPE_EXTENSION;case"type":return Ct.OBJECT_TYPE_EXTENSION;case"interface":return Ct.INTERFACE_TYPE_EXTENSION;case"union":return Ct.UNION_TYPE_EXTENSION;case"enum":return Ct.ENUM_TYPE_EXTENSION;case"input":return Ct.INPUT_OBJECT_TYPE_EXTENSION}},[Ct.SCHEMA_EXTENSION]:["SchemaDef"],[Ct.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[Ct.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[Ct.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[Ct.UNION_TYPE_EXTENSION]:["UnionDef"],[Ct.ENUM_TYPE_EXTENSION]:["EnumDef"],[Ct.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]}}});function Kei(e={eatWhitespace:t=>t.eatWhile(Wrn),lexRules:Urn,parseRules:$rn,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return RW(e.parseRules,t,Ct.DOCUMENT),t},token(t,n){return Yei(t,n,e)}}}function Yei(e,t,n){var i;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:r,parseRules:o,eatWhitespace:s,editorConfig:a}=n;if(t.rule&&t.rule.length===0?lqe(t):t.needsAdvance&&(t.needsAdvance=!1,H8e(t,!0)),e.sol()){const u=a?.tabSize||2;t.indentLevel=Math.floor(e.indentation()/u)}if(s(e))return"ws";const l=Zei(r,e);if(!l)return e.match(/\S+/)||e.match(/\s/),RW(Wle,t,"Invalid"),"invalidchar";if(l.kind==="Comment")return RW(Wle,t,"Comment"),"comment";const c=yxt({},t);if(l.kind==="Punctuation"){if(/^[{([]/.test(l.value))t.indentLevel!==void 0&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(l.value)){const u=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&u.length>0&&u.at(-1)<t.indentLevel&&(t.indentLevel=u.at(-1))}}for(;t.rule;){let u=typeof t.rule=="function"?t.step===0?t.rule(l,e):null:t.rule[t.step];if(t.needsSeparator&&(u=u?.separator),u){if(u.ofRule&&(u=u.ofRule),typeof u=="string"){RW(o,t,u);continue}if(!((i=u.match)===null||i===void 0)&&i.call(u,l))return u.update&&u.update(t,l),l.kind==="Punctuation"?H8e(t,!0):t.needsAdvance=!0,u.style}Qei(t)}return yxt(t,c),RW(Wle,t,"Invalid"),"invalidchar"}function yxt(e,t){const n=Object.keys(t);for(let i=0;i<n.length;i++)e[n[i]]=t[n[i]];return e}function RW(e,t,n){if(!e[n])throw new TypeError("Unknown rule: "+n);t.prevState=Object.assign({},t),t.kind=n,t.name=null,t.type=null,t.rule=e[n],t.step=0,t.needsSeparator=!1}function lqe(e){e.prevState&&(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeparator=e.prevState.needsSeparator,e.prevState=e.prevState.prevState)}function H8e(e,t){var n;if(bxt(e)&&e.rule){const i=e.rule[e.step];if(i.separator){const{separator:r}=i;if(e.needsSeparator=!e.needsSeparator,!e.needsSeparator&&r.ofRule)return}if(t)return}for(e.needsSeparator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)lqe(e),e.rule&&(bxt(e)?!((n=e.rule)===null||n===void 0)&&n[e.step].separator&&(e.needsSeparator=!e.needsSeparator):(e.needsSeparator=!1,e.step++))}function bxt(e){const t=Array.isArray(e.rule)&&typeof e.rule[e.step]!="string"&&e.rule[e.step];return t&&t.isList}function Qei(e){for(;e.rule&&!(Array.isArray(e.rule)&&e.rule[e.step].ofRule);)lqe(e);e.rule&&H8e(e,!1)}function Zei(e,t){const n=Object.keys(e);for(let i=0;i<n.length;i++){const r=t.match(e[n[i]]);if(r&&r instanceof Array)return{kind:n[i],value:r[0]}}}var Wle,Xei=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/parser/onlineParser.js"(){qrn(),bd(),Wle={Invalid:[],Comment:[]}}});function Jei(e,t){const n=e.split(`
`),i=Kei();let r=i.startState(),o="",s=new V8e("");for(let a=0;a<n.length;a++){for(s=new V8e(n[a]);!s.eol()&&(o=i.token(s,r),t(s,r,o,a)!=="BREAK"););t(s,r,o,a),r.kind||(r=i.startState())}return{start:s.getStartOfToken(),end:s.getCurrentPosition(),string:s.current(),state:r,style:o}}function eti(e,t){return Grn(e)}function tti(e,t,n=0){let i=null,r=null,o=null;const s=Jei(e,(a,l,c,u)=>{if(!(u!==t.line||a.getCurrentPosition()+n<t.character+1))return i=c,r=Object.assign({},l),o=a.current(),"BREAK"});return{start:s.start,end:s.end,string:o||s.string,state:r||s.state,style:i||s.style}}function nti(e,t,n,i,r){const o=tti(e,t,1);if(!o)return null;const s=o.state.kind==="Invalid"?o.state.prevState:o.state;if(!s)return null;const a=oti(n,o.state),l=eti(e);return{token:o,state:s,typeInfo:a,mode:l}}var I3,_xt,Grn,iti=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/parser/api.js"(){uF(),bd(),(function(e){e.TYPE_SYSTEM="TYPE_SYSTEM",e.EXECUTABLE="EXECUTABLE",e.UNKNOWN="UNKNOWN"})(I3||(I3={})),_xt=[Ct.SCHEMA_DEFINITION,Ct.OPERATION_TYPE_DEFINITION,Ct.SCALAR_TYPE_DEFINITION,Ct.OBJECT_TYPE_DEFINITION,Ct.INTERFACE_TYPE_DEFINITION,Ct.UNION_TYPE_DEFINITION,Ct.ENUM_TYPE_DEFINITION,Ct.INPUT_OBJECT_TYPE_DEFINITION,Ct.DIRECTIVE_DEFINITION,Ct.SCHEMA_EXTENSION,Ct.SCALAR_TYPE_EXTENSION,Ct.OBJECT_TYPE_EXTENSION,Ct.INTERFACE_TYPE_EXTENSION,Ct.UNION_TYPE_EXTENSION,Ct.ENUM_TYPE_EXTENSION,Ct.INPUT_OBJECT_TYPE_EXTENSION],Grn=e=>{let t=I3.UNKNOWN;if(e)try{Yx(BK(e),{enter(n){if(n.kind==="Document"){t=I3.EXECUTABLE;return}return _xt.includes(n.kind)?(t=I3.TYPE_SYSTEM,DO):!1}})}catch{return t}return t}}});function wxt(e,t,n){return n===Tq.name&&e.getQueryType()===t?Tq:n===kq.name&&e.getQueryType()===t?kq:n===Iq.name&&RD(t)?Iq:"getFields"in t?t.getFields()[n]:null}function rti(e,t){const n=[];let i=e;for(;i?.kind;)n.push(i),i=i.prevState;for(let r=n.length-1;r>=0;r--)t(n[r])}function oti(e,t){let n,i,r,o,s,a,l,c,u,d,h;return rti(t,f=>{var p;switch(f.kind){case Uu.QUERY:case"ShortQuery":d=e.getQueryType();break;case Uu.MUTATION:d=e.getMutationType();break;case Uu.SUBSCRIPTION:d=e.getSubscriptionType();break;case Uu.INLINE_FRAGMENT:case Uu.FRAGMENT_DEFINITION:f.type&&(d=e.getType(f.type));break;case Uu.FIELD:case Uu.ALIASED_FIELD:{!d||!f.name?s=null:(s=u?wxt(e,u,f.name):null,d=s?s.type:null);break}case Uu.SELECTION_SET:u=sg(d);break;case Uu.DIRECTIVE:r=f.name?e.getDirective(f.name):null;break;case Uu.INTERFACE_DEF:f.name&&(l=null,h=new $8({name:f.name,interfaces:[],fields:{}}));break;case Uu.OBJECT_TYPE_DEF:f.name&&(h=null,l=new C_({name:f.name,interfaces:[],fields:{}}));break;case Uu.ARGUMENTS:{if(f.prevState)switch(f.prevState.kind){case Uu.FIELD:i=s&&s.args;break;case Uu.DIRECTIVE:i=r&&r.args;break;case Uu.ALIASED_FIELD:{const b=(p=f.prevState)===null||p===void 0?void 0:p.name;if(!b){i=null;break}const w=u?wxt(e,u,b):null;if(!w){i=null;break}i=w.args;break}default:i=null;break}else i=null;break}case Uu.ARGUMENT:if(i){for(let b=0;b<i.length;b++)if(i[b].name===f.name){n=i[b];break}}a=n?.type;break;case Uu.VARIABLE_DEFINITION:case Uu.VARIABLE:d=a;break;case Uu.ENUM_VALUE:const g=sg(a);o=g instanceof EL?g.getValues().find(b=>b.value===f.name):null;break;case Uu.LIST_VALUE:const m=f3e(a);a=m instanceof Xp?m.ofType:null;break;case Uu.OBJECT_VALUE:const v=sg(a);c=v instanceof q8?v.getFields():null;break;case Uu.OBJECT_FIELD:const y=f.name&&c?c[f.name]:null;a=y?.type,s=y,d=s?s.type:null;break;case Uu.NAMED_TYPE:f.name&&(d=e.getType(f.name));break}}),{argDef:n,argDefs:i,directiveDef:r,enumValue:o,fieldDef:s,inputType:a,objectFieldDefs:c,parentType:u,type:d,interfaceDef:h,objectTypeDef:l}}var sti=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/parser/getTypeInfo.js"(){bd(),uF()}}),Cxt,Uu,ati=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/parser/types.js"(){bd(),Cxt={ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",EXTENSION_DEFINITION:"ExtensionDefinition",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type",VARIABLE:"Variable"},Uu=Object.assign(Object.assign({},Ct),Cxt)}}),uF=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/parser/index.js"(){$ei(),qrn(),Hrn(),Xei(),iti(),sti(),ati()}}),wa,Krn=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/types.js"(){Vrn(),uF(),(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(wa||(wa={}))}}),lti=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/interface/getAutocompleteSuggestions.js"(){Krn(),uF(),zrn(),Vrn(),wa.Function,wa.Function,wa.Function,wa.Function,wa.Function,wa.Function,wa.Function,wa.Function,wa.Function,wa.Function,wa.Constructor}}),cti=Ot({"../node_modules/.pnpm/nullthrows@1.1.1/node_modules/nullthrows/nullthrows.js"(e,t){function n(i,r){if(i!=null)return i;var o=new Error(r!==void 0?r:"Got unexpected "+i);throw o.framesToPop=1,o}t.exports=n,t.exports.default=n,Object.defineProperty(t.exports,"__esModule",{value:!0})}}),BDe,Yrn,uti=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/utils/fragmentDependencies.js"(){bd(),BDe=on(cti()),Yrn=(e,t)=>{if(!t)return[];const n=new Map,i=new Set;Yx(e,{FragmentDefinition(s){n.set(s.name.value,!0)},FragmentSpread(s){i.has(s.name.value)||i.add(s.name.value)}});const r=new Set;for(const s of i)!n.has(s)&&t.has(s)&&r.add((0,BDe.default)(t.get(s)));const o=[];for(const s of r)Yx(s,{FragmentSpread(a){!i.has(a.name.value)&&t.get(a.name.value)&&(r.add((0,BDe.default)(t.get(a.name.value))),i.add(a.name.value))}}),n.has(s.name.value)||o.push(s);return o}}}),dti=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/utils/getVariablesJSONSchema.js"(){}}),hti=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/utils/getASTNodeAtPosition.js"(){}}),Qrn,fti=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/utils/Range.js"(){Qrn=class{constructor(e,t){this.lessThanOrEqualTo=n=>this.line<n.line||this.line===n.line&&this.character<=n.character,this.line=e,this.character=t}setLine(e){this.line=e}setCharacter(e){this.character=e}}}}),pti=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/utils/validateWithCustomRules.js"(){}});function gti(e,t){const n=Object.create(null);for(const i of t.definitions)if(i.kind==="OperationDefinition"){const{variableDefinitions:r}=i;if(r)for(const{variable:o,type:s}of r){const a=ob(e,s);a?n[o.name.value]=a:s.kind===Ct.NAMED_TYPE&&s.name.value==="Float"&&(n[o.name.value]=pFe)}}return n}var Zrn=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/utils/collectVariables.js"(){bd()}});function mti(e,t){const n=t?gti(t,e):void 0,i=[];return Yx(e,{OperationDefinition(r){i.push(r)}}),{variableToType:n,operations:i}}function vti(e,t){if(t)try{const n=BK(t);return Object.assign(Object.assign({},mti(n,e)),{documentAST:n})}catch{}}var yti=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/utils/getOperationFacts.js"(){bd(),Zrn()}}),pme=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/utils/index.js"(){uti(),dti(),hti(),fti(),pti(),Zrn(),yti()}}),bti=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/interface/getDefinition.js"(){pme()}}),L3,_ti=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/interface/getDiagnostics.js"(){uF(),pme(),L3={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"},L3.Error+"",L3.Warning+"",L3.Information+"",L3.Hint+""}}),wti=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/interface/getOutline.js"(){pme()}}),Cti=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/interface/getHoverInformation.js"(){uF()}}),Sti=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/interface/index.js"(){zrn(),lti(),bti(),_ti(),wti(),Cti()}}),gme=se({"../node_modules/.pnpm/graphql-language-service@5.5.0_graphql@16.13.1/node_modules/graphql-language-service/esm/index.js"(){Sti(),uF(),Krn(),pme()}});function xti(e){return new Qrn(e.lineNumber-1,e.column-1)}var Ule,Xrn,cqe=se({"../node_modules/.pnpm/monaco-graphql@1.7.3_graphql@16.13.1_monaco-editor@0.52.2_prettier@3.8.1/node_modules/monaco-graphql/esm/utils.js"(){bd(),gme(),g7(),Ule=e=>"getModeId"in e?e.getModeId():e.getLanguageId(),Xrn=e=>{const{schema:t,documentAST:n,introspectionJSON:i,introspectionJSONString:r,documentString:o,...s}=e;if(t)return{...s,documentString:ast(t)};if(r)return{...s,introspectionJSONString:r};if(o)return{...s,documentString:o};if(i)return{...s,introspectionJSONString:JSON.stringify(i)};if(n){const a=$8n(n,s.buildSchemaOptions);return{...s,documentString:ast(a)}}throw new Error("No schema supplied")}}}),Sxt,Jrn,Eti=se({"../node_modules/.pnpm/monaco-graphql@1.7.3_graphql@16.13.1_monaco-editor@0.52.2_prettier@3.8.1/node_modules/monaco-graphql/esm/workerManager.js"(){Q7(),cqe(),Sxt=120*1e3,Jrn=class{_defaults;_idleCheckInterval;_lastUsedTime=0;_configChangeListener;_worker=null;_client=null;constructor(e){this._defaults=e,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._configChangeListener=this._defaults.onDidChange(()=>{this._stopWorker()})}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>Sxt&&this._stopWorker()}async _getClient(){if(this._lastUsedTime=Date.now(),!this._client&&!this._worker)try{const{languageId:e,formattingOptions:t,schemas:n,externalFragmentDefinitions:i,completionSettings:r}=this._defaults;this._worker=h_.createWebWorker({moduleId:"monaco-graphql/esm/GraphQLWorker.js",label:e,createData:{languageId:e,formattingOptions:t,languageConfig:{schemas:n?.map(Xrn),externalFragmentDefinitions:i,fillLeafsOnComplete:r.__experimental__fillLeafsOnComplete}}}),this._client=this._worker.getProxy()}catch(e){console.error("error loading worker",e)}return this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return await this._worker.withSyncedResources(e),t}}}});function Ati(e){return e in W8e?W8e[e]:Jc.Text}function Dti(e){return{range:e.range,kind:Ati(e.kind),label:e.label,insertText:e.insertText??e.label,insertTextRules:e.insertText?lC.CompletionItemInsertTextRule.InsertAsSnippet:void 0,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:e.command}}var eon,Jc,W8e,ton,non,ion,Tti=se({"../node_modules/.pnpm/monaco-graphql@1.7.3_graphql@16.13.1_monaco-editor@0.52.2_prettier@3.8.1/node_modules/monaco-graphql/esm/languageFeatures.js"(){Q7(),h9(),gme(),cqe(),eon=class{defaults;_worker;_disposables=[];_listener=Object.create(null);constructor(e,t){this.defaults=e,this._worker=t,this._worker=t;let n;const i=o=>{const s=Ule(o);if(s!==this.defaults.languageId)return;const a=o.uri.toString(),l=e.diagnosticSettings.validateVariablesJSON?.[a];n=setTimeout(()=>{this._doValidate(o.uri,s,l)},400),this._listener[a]=o.onDidChangeContent(()=>{clearTimeout(n),n=setTimeout(()=>{this._doValidate(o.uri,s,l)},400)})},r=o=>{h_.setModelMarkers(o,this.defaults.languageId,[]);const s=o.uri.toString(),a=this._listener[s];a&&(a.dispose(),delete this._listener[s])};this._disposables.push(h_.onDidCreateModel(i),{dispose(){clearTimeout(n)}},h_.onWillDisposeModel(o=>{r(o)}),h_.onDidChangeModelLanguage(o=>{r(o.model),i(o.model)}),{dispose:()=>{for(const o of Object.values(this._listener))o.dispose()}},e.onDidChange(()=>{for(const o of h_.getModels())Ule(o)===this.defaults.languageId&&(r(o),i(o))}));for(const o of h_.getModels())Ule(o)===this.defaults.languageId&&i(o)}dispose(){for(const e of this._disposables)e.dispose();this._disposables=[]}async _doValidate(e,t,n){const i=await this._worker(e);if(!i)return;const r=await i.doValidation(e.toString());if(h_.setModelMarkers(h_.getModel(e),t,r),n){if(await Promise.resolve().then(()=>(cen(),len)),!n.length)throw new Error("No variables URI strings provided to validate");const o=await i.doGetVariablesJSONSchema(e.toString());if(!o)return;const s=Yge.file(n[0].replace(".json","-schema.json")).toString(),a={uri:s,schema:o,fileMatch:n},l=lC.json.jsonDefaults.diagnosticsOptions.schemas?.filter(c=>c.uri!==s)||[];lC.json.jsonDefaults.setDiagnosticsOptions({schemaValidation:"error",validate:!0,...this.defaults.diagnosticSettings.jsonDiagnosticSettings,schemas:[...l,a],enableSchemaRequest:!1})}}},Jc=lC.CompletionItemKind,W8e={[wa.Text]:Jc.Text,[wa.Method]:Jc.Method,[wa.Function]:Jc.Function,[wa.Constructor]:Jc.Constructor,[wa.Field]:Jc.Field,[wa.Variable]:Jc.Variable,[wa.Class]:Jc.Class,[wa.Interface]:Jc.Interface,[wa.Module]:Jc.Module,[wa.Property]:Jc.Property,[wa.Unit]:Jc.Unit,[wa.Value]:Jc.Value,[wa.Enum]:Jc.Enum,[wa.Keyword]:Jc.Keyword,[wa.Snippet]:Jc.Snippet,[wa.Color]:Jc.Color,[wa.File]:Jc.File,[wa.Reference]:Jc.Reference,[wa.Folder]:Jc.Folder,[wa.EnumMember]:Jc.EnumMember,[wa.Constant]:Jc.Constant,[wa.Struct]:Jc.Struct,[wa.Event]:Jc.Event,[wa.Operator]:Jc.Operator,[wa.TypeParameter]:Jc.TypeParameter},ton=class{_worker;constructor(e){this._worker=e,this._worker=e}get triggerCharacters(){return[":","$"," ","(","@"]}async provideCompletionItems(e,t,n,i){try{return{incomplete:!0,suggestions:(await(await this._worker(e.uri)).doComplete(e.uri.toString(),t)).map(Dti)}}catch(r){return console.error("Error fetching completion items",r),{suggestions:[]}}}},non=class{_worker;constructor(e){this._worker=e,this._worker=e}async provideDocumentFormattingEdits(e,t,n){const r=await(await this._worker(e.uri)).doFormat(e.uri.toString());return r?[{range:e.getFullModelRange(),text:r}]:[]}},ion=class{_worker;constructor(e){this._worker=e}async provideHover(e,t,n){const i=e.uri,o=await(await this._worker(e.uri)).doHover(i.toString(),t);return o?{range:o.range,contents:[{value:o.content}]}:{contents:[]}}dispose(){}}}}),ron={};oc(ron,{setupMode:()=>kti});function kti(e){const t=[],n=[],i=new Jrn(e);t.push(i);const r=(...h)=>{try{return i.getLanguageServiceWorker(...h)}catch{throw new Error("Error fetching graphql language service worker")}};function o(){const{modeConfiguration:h,languageId:f}=e;h.documentFormattingEdits&&n.push(lC.registerDocumentFormattingEditProvider(f,new non(r)))}function s(h){const{modeConfiguration:f,languageId:p}=e;oon(n),f.completionItems&&n.push(lC.registerCompletionItemProvider(p,new ton(r))),f.diagnostics&&n.push(new eon(h,r)),f.hovers&&n.push(lC.registerHoverProvider(p,new ion(r))),o()}let{modeConfiguration:a,formattingOptions:l,diagnosticSettings:c,externalFragmentDefinitions:u,schemas:d}=e;return s(e),e.onDidChange(h=>{h.modeConfiguration!==a&&(a=h.modeConfiguration,s(h)),h.formattingOptions!==l&&(l=h.formattingOptions,o()),h.externalFragmentDefinitions!==u&&(u=h.externalFragmentDefinitions,s(h)),h.diagnosticSettings!==c&&(c=h.diagnosticSettings,s(h)),h.schemas!==d&&(d=h.schemas,s(h))}),t.push(xxt(n)),xxt(t)}function xxt(e){return{dispose:()=>oon(e)}}function oon(e){for(;e.length;)e.pop().dispose()}var Iti=se({"../node_modules/.pnpm/monaco-graphql@1.7.3_graphql@16.13.1_monaco-editor@0.52.2_prettier@3.8.1/node_modules/monaco-graphql/esm/graphqlMode.js"(){Q7(),Eti(),Tti()}});function Lti(e){return N3||(N3=Wei(uqe,e),lC.graphql={api:N3},Nti().then(t=>t.setupMode(N3))),N3}function Nti(){return Promise.resolve().then(()=>(Iti(),ron))}var uqe,N3,Pti=se({"../node_modules/.pnpm/monaco-graphql@1.7.3_graphql@16.13.1_monaco-editor@0.52.2_prettier@3.8.1/node_modules/monaco-graphql/esm/initialize.js"(){Uei(),Q7(),uqe="graphql"}}),son={};oc(son,{LANGUAGE_ID:()=>uqe,initializeMode:()=>Lti});var Mti=se({"../node_modules/.pnpm/monaco-graphql@1.7.3_graphql@16.13.1_monaco-editor@0.52.2_prettier@3.8.1/node_modules/monaco-graphql/esm/lite.js"(){Pti()}}),aon={};oc(aon,{default:()=>e9e,languages:()=>f9e,options:()=>d9e,printers:()=>h9e});function Oti(e){return this[e<0?this.length+e:e]}function Rti(e){return e!==null&&typeof e=="object"}function*Fti(e,t){let{getVisitorKeys:n,filter:i=()=>!0}=t,r=o=>Lqe(o)&&i(o);for(let o of n(e)){let s=e[o];if(Array.isArray(s))for(let a of s)r(a)&&(yield a);else r(s)&&(yield s)}}function*Bti(e,t){let n=[e];for(let i=0;i<n.length;i++){let r=n[i];for(let o of Fti(r,t))yield o,n.push(o)}}function jti(e,{getVisitorKeys:t,predicate:n}){for(let i of Bti(e,{getVisitorKeys:t}))if(n(i))return!0;return!1}function zti(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Vti(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function Hti(e){if(!e)return 0;if(!zsn.test(e))return e.length;e=e.replace(jsn(),n=>Vsn.has(n)?" ":"  ");let t=0;for(let n of e){let i=n.codePointAt(0);i<=31||i>=127&&i<=159||i>=768&&i<=879||i>=65024&&i<=65039||(t+=zti(i)||Vti(i)?2:1)}return t}function jDe(e){return(t,n,i)=>{let r=!!i?.backwards;if(n===!1)return!1;let{length:o}=t,s=n;for(;s>=0&&s<o;){let a=t.charAt(s);if(e instanceof RegExp){if(!e.test(a))return s}else if(!e.includes(a))return s;r?s--:s++}return s===-1||s===o?s:!1}}function Wti(e,t,n){let i=!!n?.backwards;if(t===!1)return!1;let r=e.charAt(t);if(i){if(e.charAt(t-1)==="\r"&&r===`
`)return t-2;if(t9e(r))return t-1}else{if(r==="\r"&&e.charAt(t+1)===`
`)return t+2;if(t9e(r))return t+1}return t}function Uti(e,t,n={}){let i=u2(e,n.backwards?t-1:t,n),r=d2(e,i,n);return i!==r}function $ti(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let n=t+2;n<e.length;++n)if(e.charAt(n)==="*"&&e.charAt(n+1)==="/")return n+2}return t}function qti(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?Wsn(e,t):t}function Gti(e,t){let n=null,i=t;for(;i!==n;)n=i,i=Hsn(e,i),i=Sme(e,i),i=u2(e,i);return i=xme(e,i),i=d2(e,i),i!==!1&&kv(e,i)}function Kti(e){return Array.isArray(e)&&e.length>0}function Yti(e,t){let{preferred:n,alternate:i}=t===!0||t==="'"?Usn:$sn,{length:r}=e,o=0,s=0;for(let a=0;a<r;a++){let l=e.charCodeAt(a);l===n.codePoint?o++:l===i.codePoint&&s++}return(o>s?i:n).character}function Qti(e,t){let n=t==='"'?"'":'"',i=Vf(0,e,qsn,(r,o,s)=>o?o===n?n:r:s===t?"\\"+s:s);return t+i+t}function Zti(e,t){LI(/^(?<quote>["']).*\k<quote>$/su.test(e));let n=e.slice(1,-1),i=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":Nqe(n,t.singleQuote);return e.charAt(0)===i?e:Gsn(n,i)}function ca(e){let t=e.range?.[0]??e.start,n=(e.declaration?.decorators??e.decorators)?.[0];return n?Math.min(ca(n),t):t}function ta(e){return e.range?.[1]??e.end}function mme(e,t){let n=ca(e);return Pqe(n)&&n===ca(t)}function Xti(e,t){let n=ta(e);return Pqe(n)&&n===ta(t)}function Jti(e,t){return mme(e,t)&&Xti(e,t)}function B$(e){if(VB!==null&&typeof VB.property){let t=VB;return VB=B$.prototype=null,t}return VB=B$.prototype=e??Object.create(null),new B$}function eni(e){return B$(e)}function tni(e,t="type"){eni(e);function n(i){let r=i[t],o=e[r];if(!Array.isArray(o))throw Object.assign(new Error(`Missing visitor keys for '${r}'.`),{node:i});return o}return n}function nni(e){let t=new Set(e);return n=>t.has(n?.type)}function ini(e){return e.extra?.raw??e.raw}function rni(e,t){let n=t.split(".");for(let i=n.length-1;i>=0;i--){let r=n[i];if(i===0)return e.type==="Identifier"&&e.name===r;if(i===1&&e.type==="MetaProperty"&&e.property.type==="Identifier"&&e.property.name===r){e=e.meta;continue}if(e.type==="MemberExpression"&&!e.optional&&!e.computed&&e.property.type==="Identifier"&&e.property.name===r){e=e.object;continue}return!1}}function oni(e,t){return t.some(n=>rni(e,n))}function sni({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}function ani({node:e,parent:t}){return e?.type!=="EmptyStatement"?!1:t.type==="IfStatement"?t.consequent===e||t.alternate===e:t.type==="DoWhileStatement"||t.type==="ForInStatement"||t.type==="ForOfStatement"||t.type==="ForStatement"||t.type==="LabeledStatement"||t.type==="WithStatement"||t.type==="WhileStatement"?t.body===e:!1}function U8e(e,t){return t(e)||jti(e,{getVisitorKeys:n9e,predicate:t})}function dqe(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||Za(e)||su(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||P_(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function lni(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function lon(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}function cni(e){return e.type==="LogicalExpression"&&e.operator==="??"}function iE(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function uni(e){return e.type==="BooleanLiteral"||e.type==="Literal"&&typeof e.value=="boolean"}function con(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&iE(e.argument)}function Dp(e){return!!(e&&(e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"))}function uon(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}function dni(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function zDe(e){return Za(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}function _G(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}function don(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function hni(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!mme(e,e.typeAnnotation)}function zB(e){return su(e)||e.type==="BindExpression"&&!!e.object}function hqe(e){return Oqe(e)||Mqe(e)||Qsn(e)||e.type==="GenericTypeAnnotation"&&!e.typeParameters||e.type==="TSTypeReference"&&!e.typeArguments}function fni(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}function pni(e){return Eme(e,Zsn)}function vme(e,t){if(e?.type!=="CallExpression"||e.optional)return!1;let n=Lb(e);if(n.length===1){if(zDe(e)&&vme(t))return v9(n[0]);if(fni(e.callee))return zDe(n[0])}else if((n.length===2||n.length===3)&&(n[0].type==="TemplateLiteral"||Dp(n[0]))&&pni(e.callee))return n[2]&&!iE(n[2])?!1:(n.length===2?v9(n[1]):dni(n[1])&&gm(n[1]).length<=1)||zDe(n[1]);return!1}function Ext(e,t=5){return hon(e,t)<=t}function hon(e,t){let n=0;for(let i in e){let r=e[i];if(Lqe(r)&&typeof r.type=="string"&&(n++,n+=hon(r,t-n)),n>t)return n}return n}function fqe(e,t){let{printWidth:n}=t;if(cr(e))return!1;let i=n*Xsn;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=i||con(e)&&!cr(e.argument))return!0;let r=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return r?r.length<=i:Dp(e)?h2(Iv(e),t).length<=i:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=i&&!e.quasis[0].value.raw.includes(`
`):e.type==="UnaryExpression"?fqe(e.argument,{printWidth:n}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=i-2:Dme(e)}function cC(e,t){return Uf(t)?yme(t):cr(t,Or.Leading,n=>kv(e,ta(n)))}function Axt(e){return e.quasis.some(t=>t.value.raw.includes(`
`))}function fon(e,t){return(e.type==="TemplateLiteral"&&Axt(e)||e.type==="TaggedTemplateExpression"&&Axt(e.quasi))&&!kv(t,ca(e),{backwards:!0})}function pon(e){if(!cr(e))return!1;let t=gl(0,SR(e,Or.Dangling),-1);return t&&!U_(t)}function gni(e){if(e.length<=1)return!1;let t=0;for(let n of e)if(v9(n)){if(t+=1,t>1)return!0}else if(Za(n)){for(let i of Lb(n))if(v9(i))return!0}return!1}function gon(e){let{node:t,parent:n,key:i}=e;return i==="callee"&&Za(t)&&Za(n)&&n.arguments.length>0&&t.arguments.length>n.arguments.length}function F1(e,t=2){if(t<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return F1(e.expression,t);let n=i=>F1(i,t-1);if(uon(e))return c2(e.pattern??e.regex.pattern)<=5;if(Dme(e)||Ysn(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(i=>!i.value.raw.includes(`
`))&&e.expressions.every(n);if(iw(e))return e.properties.every(i=>!i.computed&&(i.shorthand||i.value&&n(i.value)));if(Tp(e))return e.elements.every(i=>i===null||n(i));if(m9(e)){if(e.type==="ImportExpression"||F1(e.callee,t)){let i=Lb(e);return i.length<=t&&i.every(n)}return!1}return su(e)?F1(e.object,t)&&F1(e.property,t):e.type==="UnaryExpression"&&Jsn.has(e.operator)||e.type==="UpdateExpression"?F1(e.argument,t):!1}function xE(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function Km(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return Km(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return Km(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:Km(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:Km(e.callee,t);case"ConditionalExpression":return Km(e.test,t);case"UpdateExpression":return!e.prefix&&Km(e.argument,t);case"BindExpression":return e.object&&Km(e.object,t);case"SequenceExpression":return Km(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Km(e.expression,t);default:return t(e)}}function pqe(e,t){return!(Kde(t)!==Kde(e)||e==="**"||i9e[e]&&i9e[t]||t==="%"&&BW[e]||e==="%"&&BW[t]||t!==e&&BW[t]&&BW[e]||Jde[e]&&Jde[t])}function Kde(e){return ean.get(e)}function mni(e){return!!Jde[e]||e==="|"||e==="^"||e==="&"}function vni(e){if(e.rest)return!0;let t=gm(e);return gl(0,t,-1)?.type==="RestElement"}function gm(e){if(qle.has(e))return qle.get(e);let t=[];return e.this&&t.push(e.this),t.push(...e.params),e.rest&&t.push(e.rest),qle.set(e,t),t}function yni(e,t){let{node:n}=e,i=0,r=()=>t(e,i++);n.this&&e.call(r,"this"),e.each(r,"params"),n.rest&&e.call(r,"rest")}function Lb(e){if(Gle.has(e))return Gle.get(e);if(e.type==="ChainExpression")return Lb(e.expression);let t;return e.type==="ImportExpression"||e.type==="TSImportType"?(t=[e.source],e.options&&t.push(e.options)):e.type==="TSExternalModuleReference"?t=[e.expression]:t=e.arguments,Gle.set(e,t),t}function Yde(e,t){let{node:n}=e;if(n.type==="ChainExpression")return e.call(()=>Yde(e,t),"expression");n.type==="ImportExpression"||n.type==="TSImportType"?(e.call(()=>t(e,0),"source"),n.options&&e.call(()=>t(e,1),"options")):n.type==="TSExternalModuleReference"?e.call(()=>t(e,0),"expression"):e.each(t,"arguments")}function Dxt(e,t){let n=[];if(e.type==="ChainExpression"&&(e=e.expression,n.push("expression")),e.type==="ImportExpression"||e.type==="TSImportType"){if(t===0||t===(e.options?-2:-1))return[...n,"source"];if(e.options&&(t===1||t===-1))return[...n,"options"];throw new RangeError("Invalid argument index")}else if(e.type==="TSExternalModuleReference"){if(t===0||t===-1)return[...n,"expression"]}else if(t<0&&(t=e.arguments.length+t),t>=0&&t<e.arguments.length)return[...n,"arguments",t];throw new RangeError("Invalid argument index")}function g9(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function yme(e){return e?.prettierIgnore||cr(e,Or.PrettierIgnore)}function cr(e,t,n){if(!au(e?.comments))return!1;let i=Rqe(t,n);return i?e.comments.some(i):!0}function SR(e,t,n){if(!Array.isArray(e?.comments))return[];let i=Rqe(t,n);return i?e.comments.filter(i):e.comments}function m9(e){return Za(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function $N(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!_G(e))}function mon({key:e,parent:t}){return!(e==="types"&&AC(t)||e==="types"&&J7(t))}function Txt(e,t,n){if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="Literal")&&e.bigint&&(t.bigint=e.bigint.toLowerCase()),e.type==="EmptyStatement"&&!Ame({node:e,parent:n})||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty"||e.type==="ImportAttribute")&&e.key&&!e.computed){let{key:r}=e;Dp(r)||iE(r)?t.key=String(r.value):r.type==="Identifier"&&(t.key=r.name)}if(e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(r=>r.type==="JSXAttribute"&&r.name.name==="jsx"))for(let{type:r,expression:o}of t.children)r==="JSXExpressionContainer"&&o.type==="TemplateLiteral"&&tO(o);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&tO(t.value.expression),e.type==="JSXAttribute"&&e.value?.type==="Literal"&&/["']|&quot;|&apos;/u.test(e.value.value)&&(t.value.value=Vf(0,e.value.value,/["']|&quot;|&apos;/gu,'"'));let i=e.expression||e.callee;if(e.type==="Decorator"&&i.type==="CallExpression"&&i.callee.name==="Component"&&i.arguments.length===1){let r=e.expression.arguments[0].properties;for(let[o,s]of t.expression.arguments[0].properties.entries())switch(r[o].key.name){case"styles":Tp(s.value)&&tO(s.value.elements[0]);break;case"template":s.value.type==="TemplateLiteral"&&tO(s.value);break}}e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&tO(t.quasi),e.type==="TemplateLiteral"&&tO(t),e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&(t.type="TSNonNullExpression",t.expression.type="ChainExpression")}function bni(e,t){return tan(e)||nan(e,t)||ian(e,t)?!1:e.type==="EmptyStatement"?Ame({node:e,parent:t[0]}):!(ran(e,t)||e.type==="TSTypeAnnotation"&&t[0].type==="TSPropertySignature")}function _ni(e){let t=e.type||e.kind||"(unknown type)",n=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return n.length>20&&(n=n.slice(0,19)+"…"),t+(n?" "+n:"")}function gqe(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=_ni(e)}function Eh(e,t){t.leading=!0,t.trailing=!1,gqe(e,t)}function lb(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),gqe(e,t)}function Gu(e,t){t.leading=!1,t.trailing=!0,gqe(e,t)}function wni(e,t){let n=null,i=t;for(;i!==n;)n=i,i=u2(e,i),i=Sme(e,i),i=xme(e,i),i=d2(e,i);return i}function Cni(e,t){let n=fF(e,t);return n===!1?"":e.charAt(n)}function Sni(e,t,n){for(let i=t;i<n;++i)if(e.charAt(i)===`
`)return!0;return!1}function xni(e){return Kle.has(e)||Kle.set(e,U_(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),Kle.get(e)}function Eni(e){return[xon,yon,won,Mni,kni,mqe,vqe,von,bon,jni,Rni,Fni,bqe,Son,zni,_on,Con,yqe,Ini,$ni,Eon,_qe].some(t=>t(e))}function Ani(e){return[Tni,won,yon,Son,mqe,vqe,von,bon,Con,Oni,Bni,bqe,Vni,yqe,Wni,Uni,qni,Eon,Kni,Gni,_qe].some(t=>t(e))}function Dni(e){return[xon,mqe,vqe,Pni,_on,bqe,Nni,Lni,yqe,Hni,_qe].some(t=>t(e))}function dF(e,t){let n=(e.body||e.properties).find(({type:i})=>i!=="EmptyStatement");n?Eh(n,t):lb(e,t)}function $8e(e,t){e.type==="BlockStatement"?dF(e,t):Eh(e,t)}function Tni({comment:e,followingNode:t}){return t&&Fqe(e)?(Eh(t,e),!0):!1}function mqe({comment:e,precedingNode:t,enclosingNode:n,followingNode:i,text:r}){if(n?.type!=="IfStatement"||!i)return!1;if(rw(r,ta(e))===")")return Gu(t,e),!0;if(i.type==="BlockStatement"&&i===n.consequent&&ca(e)>=ta(t)&&ta(e)<=ca(i))return Eh(i,e),!0;if(t===n.consequent&&i===n.alternate){let o=fF(r,ta(n.consequent));if(i.type==="BlockStatement"&&ca(e)>=o&&ta(e)<=ca(i))return Eh(i,e),!0;if(ca(e)<o||n.alternate.type==="BlockStatement")return t.type==="BlockStatement"||Tme(e,r)&&!H0(r,ca(t),ca(e))?(Gu(t,e),!0):(lb(n,e),!0)}return i.type==="BlockStatement"?(dF(i,e),!0):i.type==="IfStatement"?($8e(i.consequent,e),!0):n.consequent===i?(Eh(i,e),!0):!1}function vqe({comment:e,precedingNode:t,enclosingNode:n,followingNode:i,text:r}){return n?.type!=="WhileStatement"||!i?!1:rw(r,ta(e))===")"?(Gu(t,e),!0):i.type==="BlockStatement"?(dF(i,e),!0):n.body===i?(Eh(i,e),!0):!1}function von({comment:e,precedingNode:t,enclosingNode:n,followingNode:i}){return n?.type!=="TryStatement"&&n?.type!=="CatchClause"||!i?!1:n.type==="CatchClause"&&t?(Gu(t,e),!0):i.type==="BlockStatement"?(dF(i,e),!0):i.type==="TryStatement"?($8e(i.finalizer,e),!0):i.type==="CatchClause"?($8e(i.body,e),!0):!1}function kni({comment:e,enclosingNode:t,followingNode:n}){return su(t)&&n?.type==="Identifier"?(Eh(t,e),!0):!1}function Ini({comment:e,enclosingNode:t,followingNode:n,options:i}){return!i.experimentalTernaries||!(t?.type==="ConditionalExpression"||$D(t))?!1:n?.type==="ConditionalExpression"||$D(n)?(lb(t,e),!0):!1}function yon({comment:e,precedingNode:t,enclosingNode:n,followingNode:i,text:r,options:o}){let s=t&&!H0(r,ta(t),ca(e));return(!t||!s)&&(n?.type==="ConditionalExpression"||$D(n))&&i?o.experimentalTernaries&&n.alternate===i&&!(U_(e)&&!H0(o.originalText,ca(e),ta(e)))?(lb(n,e),!0):(Eh(i,e),!0):!1}function bon({comment:e,precedingNode:t,enclosingNode:n,followingNode:i}){if(oan(n)){if(au(n.decorators)&&i?.type!=="Decorator")return Gu(gl(0,n.decorators,-1),e),!0;if(n.body&&i===n.body)return dF(n.body,e),!0;if(i){if(n.superClass&&i===n.superClass&&t&&(t===n.id||t===n.typeParameters))return Gu(t,e),!0;for(let r of["implements","extends","mixins"])if(n[r]&&i===n[r][0])return t&&(t===n.id||t===n.typeParameters||t===n.superClass)?Gu(t,e):lb(n,e,r),!0}}return!1}function _on({comment:e,precedingNode:t,enclosingNode:n,text:i}){return n&&t&&rw(i,ta(e))==="("&&(n.type==="Property"||n.type==="TSDeclareMethod"||n.type==="TSAbstractMethodDefinition")&&t.type==="Identifier"&&n.key===t&&rw(i,ta(t))!==":"||t?.type==="Decorator"&&san(n)&&(p8(e)||e.placement==="ownLine")?(Gu(t,e),!0):!1}function Lni({comment:e,precedingNode:t,enclosingNode:n,text:i}){return rw(i,ta(e))!=="("?!1:t&&Bqe(n)?(Gu(t,e),!0):!1}function Nni({comment:e,enclosingNode:t,text:n}){if(t?.type!=="ArrowFunctionExpression")return!1;let i=fF(n,ta(e));return i!==!1&&n.slice(i,i+2)==="=>"?(lb(t,e),!0):!1}function Pni({comment:e,enclosingNode:t,text:n}){return rw(n,ta(e))!==")"?!1:t&&(jqe(t)&&gm(t).length===0||m9(t)&&Lb(t).length===0)?(lb(t,e),!0):(t?.type==="MethodDefinition"||t?.type==="TSAbstractMethodDefinition")&&gm(t.value).length===0?(lb(t.value,e),!0):!1}function Mni({comment:e,precedingNode:t,enclosingNode:n,followingNode:i,text:r}){return t?.type==="ComponentTypeParameter"&&(n?.type==="DeclareComponent"||n?.type==="ComponentTypeAnnotation")&&i?.type!=="ComponentTypeParameter"||(t?.type==="ComponentParameter"||t?.type==="RestElement")&&n?.type==="ComponentDeclaration"&&rw(r,ta(e))===")"?(Gu(t,e),!0):!1}function won({comment:e,precedingNode:t,enclosingNode:n,followingNode:i,text:r}){return t?.type==="FunctionTypeParam"&&n?.type==="FunctionTypeAnnotation"&&i?.type!=="FunctionTypeParam"||(t?.type==="Identifier"||t?.type==="AssignmentPattern"||t?.type==="ObjectPattern"||t?.type==="ArrayPattern"||t?.type==="RestElement"||t?.type==="TSParameterProperty")&&jqe(n)&&rw(r,ta(e))===")"?(Gu(t,e),!0):!U_(e)&&i?.type==="BlockStatement"&&Bqe(n)&&(n.type==="MethodDefinition"?n.value.body:n.body)===i&&fF(r,ta(e))===ca(i)?(dF(i,e),!0):!1}function Con({comment:e,enclosingNode:t}){return t?.type==="LabeledStatement"?(Eh(t,e),!0):!1}function yqe({comment:e,enclosingNode:t}){return(t?.type==="ContinueStatement"||t?.type==="BreakStatement")&&!t.label?(Gu(t,e),!0):!1}function Oni({comment:e,precedingNode:t,enclosingNode:n}){return Za(n)&&t&&n.callee===t&&n.arguments.length>0?(Eh(n.arguments[0],e),!0):!1}function Rni({comment:e,precedingNode:t,enclosingNode:n,followingNode:i}){return AC(n)?(g9(e)&&(i.prettierIgnore=!0,e.unignore=!0),t?(Gu(t,e),!0):!1):(AC(i)&&g9(e)&&(i.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function Fni({comment:e,precedingNode:t,enclosingNode:n,followingNode:i}){return n&&n.type==="MatchOrPattern"?(g9(e)&&(i.prettierIgnore=!0,e.unignore=!0),t?(Gu(t,e),!0):!1):(i&&i.type==="MatchOrPattern"&&g9(e)&&(i.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function Bni({comment:e,enclosingNode:t}){return $N(t)?(Eh(t,e),!0):!1}function bqe({comment:e,enclosingNode:t,ast:n,isLastComment:i}){return n?.body?.length===0?(i?lb(n,e):Eh(n,e),!0):t?.type==="Program"&&t.body.length===0&&!au(t.directives)?(i?lb(t,e):Eh(t,e),!0):!1}function jni({comment:e,enclosingNode:t,followingNode:n}){return(t?.type==="ForInStatement"||t?.type==="ForOfStatement")&&n!==t.body?(Eh(t,e),!0):!1}function Son({comment:e,precedingNode:t,enclosingNode:n,text:i}){if(n?.type==="ImportSpecifier"||n?.type==="ExportSpecifier")return Eh(n,e),!0;let r=t?.type==="ImportSpecifier"&&n?.type==="ImportDeclaration",o=t?.type==="ExportSpecifier"&&n?.type==="ExportNamedDeclaration";return(r||o)&&kv(i,ta(e))?(Gu(t,e),!0):!1}function zni({comment:e,enclosingNode:t}){return t?.type==="AssignmentPattern"?(Eh(t,e),!0):!1}function Vni({comment:e,enclosingNode:t,followingNode:n}){return aan(t)&&n&&(lan(n)||U_(e))?(Eh(n,e),!0):!1}function Hni({comment:e,enclosingNode:t,precedingNode:n,followingNode:i,text:r}){return!i&&(t?.type==="TSMethodSignature"||t?.type==="TSDeclareFunction"||t?.type==="TSAbstractMethodDefinition")&&(!n||n!==t.returnType)&&rw(r,ta(e))===";"?(Gu(t,e),!0):!1}function xon({comment:e,enclosingNode:t,followingNode:n}){if(g9(e)&&t?.type==="TSMappedType"&&n===t.key)return t.prettierIgnore=!0,e.unignore=!0,!0}function Eon({comment:e,precedingNode:t,enclosingNode:n}){if(n?.type==="TSMappedType"&&!t)return lb(n,e),!0}function Wni({comment:e,enclosingNode:t,followingNode:n}){return!t||t.type!=="SwitchCase"||t.test||!n||n!==t.consequent[0]?!1:(n.type==="BlockStatement"&&p8(e)?dF(n,e):lb(t,e),!0)}function Uni({comment:e,precedingNode:t,enclosingNode:n,followingNode:i}){return AC(t)&&((n.type==="TSArrayType"||n.type==="ArrayTypeAnnotation")&&!i||J7(n))?(Gu(gl(0,t.types,-1),e),!0):!1}function $ni({comment:e,enclosingNode:t,precedingNode:n,followingNode:i}){if((t?.type==="ObjectPattern"||t?.type==="ArrayPattern")&&i?.type==="TSTypeAnnotation")return n?Gu(n,e):lb(t,e),!0}function qni({comment:e,precedingNode:t,enclosingNode:n,followingNode:i,text:r}){return!i&&n?.type==="UnaryExpression"&&(t?.type==="LogicalExpression"||t?.type==="BinaryExpression")&&H0(r,ca(n.argument),ca(t.right))&&Tme(e,r)&&!H0(r,ca(t.right),ca(e))?(Gu(t.right,e),!0):!1}function Gni({enclosingNode:e,followingNode:t,comment:n}){if(e&&(e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&(AC(t)||J7(t)))return Eh(t,n),!0}function _qe({enclosingNode:e,precedingNode:t,followingNode:n,comment:i,text:r}){if(P_(e)&&t===e.expression&&!Tme(i,r))return n?Eh(n,i):Gu(e,i),!0}function Kni({comment:e,enclosingNode:t,followingNode:n,precedingNode:i}){return t&&n&&i&&t.type==="ArrowFunctionExpression"&&t.returnType===i&&(i.type==="TSTypeAnnotation"||i.type==="TypeAnnotation")?(Eh(n,e),!0):!1}function Yni(e,{parser:t}){if(t==="flow"||t==="hermes"||t==="babel-flow")return e=Vf(0,e,/[\s(]/gu,""),e===""||e==="/*"||e==="/*::"}function Qni(e){let{key:t,parent:n}=e;if(t==="types"&&AC(n)||t==="argument"&&n.type==="JSXSpreadAttribute"||t==="expression"&&n.type==="JSXSpreadChild"||t==="superClass"&&(n.type==="ClassDeclaration"||n.type==="ClassExpression")||(t==="id"||t==="typeParameters")&&can(n)||t==="patterns"&&n.type==="MatchOrPattern")return!0;let{node:i}=e;return yme(i)?!1:AC(i)?mon(e):!!Uf(i)}function Zni(e){if(typeof e=="string")return qN;if(Array.isArray(e))return oE;if(!e)return;let{type:t}=e;if(zqe.has(t))return t}function Xni(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', 
Expected it to be 'string' or 'object'.`;if(ET(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let i=uan([...zqe].map(r=>`'${r}'`));return`Unexpected doc.type '${e.type}'.
Expected it to be ${i}.`}function Jni(e,t,n,i){let r=[e];for(;r.length>0;){let o=r.pop();if(o===r9e){n(r.pop());continue}n&&r.push(o,r9e);let s=ET(o);if(!s)throw new y9(o);if(t?.(o)!==!1)switch(s){case oE:case qD:{let a=s===oE?o:o.parts;for(let l=a.length,c=l-1;c>=0;--c)r.push(a[c]);break}case uC:r.push(o.flatContents,o.breakContents);break;case ub:if(i&&o.expandedStates)for(let a=o.expandedStates.length,l=a-1;l>=0;--l)r.push(o.expandedStates[l]);else r.push(o.contents);break;case HL:case VL:case UL:case sE:case $L:r.push(o.contents);break;case qN:case xR:case WL:case SD:case av:case Px:break;default:throw new y9(o)}}}function Z7(e,t){if(typeof e=="string")return t(e);let n=new Map;return i(e);function i(o){if(n.has(o))return n.get(o);let s=r(o);return n.set(o,s),s}function r(o){switch(ET(o)){case oE:return t(o.map(i));case qD:return t({...o,parts:o.parts.map(i)});case uC:return t({...o,breakContents:i(o.breakContents),flatContents:i(o.flatContents)});case ub:{let{expandedStates:s,contents:a}=o;return s?(s=s.map(i),a=s[0]):a=i(a),t({...o,contents:a,expandedStates:s})}case HL:case VL:case UL:case sE:case $L:return t({...o,contents:i(o.contents)});case qN:case xR:case WL:case SD:case av:case Px:return t(o);default:throw new y9(o)}}}function Aon(e,t,n){let i=n,r=!1;function o(s){if(r)return!1;let a=t(s);a!==void 0&&(r=!0,i=a)}return kme(e,o),i}function eii(e){if(e.type===ub&&e.break||e.type===av&&e.hard||e.type===Px)return!0}function hv(e){return Aon(e,eii,!1)}function kxt(e){if(e.length>0){let t=gl(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function tii(e){let t=new Set,n=[];function i(o){if(o.type===Px&&kxt(n),o.type===ub){if(n.push(o),t.has(o))return!1;t.add(o)}}function r(o){o.type===ub&&n.pop().break&&kxt(n)}kme(e,i,r,!0)}function nii(e){return e.type===av&&!e.hard?e.soft?"":" ":e.type===uC?e.flatContents:e}function Qde(e){return Z7(e,nii)}function iii(e){switch(ET(e)){case qD:if(e.parts.every(t=>t===""))return"";break;case ub:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===ub&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case HL:case VL:case UL:case $L:if(!e.contents)return"";break;case uC:if(!e.flatContents&&!e.breakContents)return"";break;case oE:{let t=[];for(let n of e){if(!n)continue;let[i,...r]=Array.isArray(n)?n:[n];typeof i=="string"&&typeof gl(0,t,-1)=="string"?t[t.length-1]+=i:t.push(i),t.push(...r)}return t.length===0?"":t.length===1?t[0]:t}case qN:case xR:case WL:case SD:case av:case sE:case Px:break;default:throw new y9(e)}return e}function wqe(e){return Z7(e,t=>iii(t))}function l2(e,t=Hqe){return Z7(e,n=>typeof n=="string"?Aa(t,n.split(`
`)):n)}function rii(e){if(e.type===av)return!0}function oii(e){return Aon(e,rii,!1)}function q8e(e,t){return e.type===sE?{...e,contents:t(e.contents)}:t(e)}function sii(e){let t=!0;return kme(e,n=>{switch(ET(n)){case qN:if(n==="")break;case WL:case SD:case av:case Px:return t=!1,!1}}),t}function Ci(e){return DC(e),{type:VL,contents:e}}function EC(e,t){return han(e),DC(t),{type:HL,contents:t,n:e}}function aii(e){return EC(Number.NEGATIVE_INFINITY,e)}function Don(e){return EC(-1,e)}function lii(e,t,n){DC(e);let i=e;if(t>0){for(let r=0;r<Math.floor(t/n);++r)i=Ci(i);i=EC(t%n,i),i=EC(Number.NEGATIVE_INFINITY,i)}return i}function Ton(e){return dan(e),{type:qD,parts:e}}function En(e,t={}){return DC(e),Vqe(t.expandedStates,!0),{type:ub,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function UO(e,t){return En(e[0],{...t,expandedStates:e})}function os(e,t="",n={}){return DC(e),t!==""&&DC(t),{type:uC,breakContents:e,flatContents:t,groupId:n.groupId}}function wG(e,t){return DC(e),{type:UL,contents:e,groupId:t.groupId,negate:t.negate}}function Aa(e,t){DC(e),Vqe(t);let n=[];for(let i=0;i<t.length;i++)i!==0&&n.push(e),n.push(t[i]);return n}function VY(e,t){return DC(t),e?{type:sE,label:e,contents:t}:t}function Ixt(e){return DC(e),{type:$L,contents:e}}function cii(e){return e===fan?gan:e===pan?man:van}function kon(e,t,n){let i=t.type===1?e.queue.slice(0,-1):[...e.queue,t],r="",o=0,s=0,a=0;for(let p of i)switch(p.type){case 0:u(),n.useTabs?l(1):c(n.tabWidth);break;case 3:{let{string:g}=p;u(),r+=g,o+=g.length;break}case 2:{let{width:g}=p;s+=1,a+=g;break}default:throw new Error(`Unexpected indent comment '${p.type}'.`)}return h(),{...e,value:r,length:o,queue:i};function l(p){r+="	".repeat(p),o+=n.tabWidth*p}function c(p){r+=" ".repeat(p),o+=p}function u(){n.useTabs?d():h()}function d(){s>0&&l(s),f()}function h(){a>0&&c(a),f()}function f(){s=0,a=0}}function uii(e,t,n){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let i;return typeof t=="number"?t<0?i=ban:i={type:2,width:t}:i={type:3,string:t},kon(e,i,n)}function dii(e,t){return kon(e,yan,t)}function hii(e){let t=0;for(let n=e.length-1;n>=0;n--){let i=e[n];if(i===" "||i==="	")t++;else break}return t}function Ion(e){let t=hii(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}function Xne(e,t,n,i,r,o){if(n===Number.POSITIVE_INFINITY)return!0;let s=t.length,a=!1,l=[e],c="";for(;n>=0;){if(l.length===0){if(s===0)return!0;l.push(t[--s]);continue}let{mode:u,doc:d}=l.pop(),h=ET(d);switch(h){case qN:d&&(a&&(c+=" ",n-=1,a=!1),c+=d,n-=c2(d));break;case oE:case qD:{let f=h===oE?d:d.parts,p=d[the]??0;for(let g=f.length-1;g>=p;g--)l.push({mode:u,doc:f[g]});break}case VL:case HL:case UL:case sE:l.push({mode:u,doc:d.contents});break;case WL:{let{text:f,count:p}=Ion(c);c=f,n+=p;break}case ub:{if(o&&d.break)return!1;let f=d.break?Um:u,p=d.expandedStates&&f===Um?gl(0,d.expandedStates,-1):d.contents;l.push({mode:f,doc:p});break}case uC:{let f=(d.groupId?r[d.groupId]||E1:u)===Um?d.breakContents:d.flatContents;f&&l.push({mode:u,doc:f});break}case av:if(u===Um||d.hard)return!0;d.soft||(a=!0);break;case $L:i=!0;break;case SD:if(i)return!1;break}}return!1}function Lon(e,t){let n=Object.create(null),i=t.printWidth,r=cii(t.endOfLine),o=0,s=[{indent:s9e,mode:Um,doc:e}],a="",l=!1,c=[],u=[],d=[],h=[],f=0;for(tii(e);s.length>0;){let{indent:y,mode:b,doc:w}=s.pop();switch(ET(w)){case qN:{let E=r!==`
`?Vf(0,w,`
`,r):w;E&&(a+=E,s.length>0&&(o+=c2(E)));break}case oE:for(let E=w.length-1;E>=0;E--)s.push({indent:y,mode:b,doc:w[E]});break;case xR:if(u.length>=2)throw new Error("There are too many 'cursor' in doc.");u.push(f+a.length);break;case VL:s.push({indent:dii(y,t),mode:b,doc:w.contents});break;case HL:s.push({indent:uii(y,w.n,t),mode:b,doc:w.contents});break;case WL:v();break;case ub:switch(b){case E1:if(!l){s.push({indent:y,mode:w.break?Um:E1,doc:w.contents});break}case Um:{l=!1;let E={indent:y,mode:E1,doc:w.contents},A=i-o,D=c.length>0;if(!w.break&&Xne(E,s,A,D,n))s.push(E);else if(w.expandedStates){let T=gl(0,w.expandedStates,-1);if(w.break){s.push({indent:y,mode:Um,doc:T});break}else for(let M=1;M<w.expandedStates.length+1;M++)if(M>=w.expandedStates.length){s.push({indent:y,mode:Um,doc:T});break}else{let P=w.expandedStates[M],F={indent:y,mode:E1,doc:P};if(Xne(F,s,A,D,n)){s.push(F);break}}}else s.push({indent:y,mode:Um,doc:w.contents});break}}w.id&&(n[w.id]=gl(0,s,-1).mode);break;case qD:{let E=i-o,A=w[the]??0,{parts:D}=w,T=D.length-A;if(T===0)break;let M=D[A+0],P=D[A+1],F={indent:y,mode:E1,doc:M},N={indent:y,mode:Um,doc:M},j=Xne(F,[],E,c.length>0,n,!0);if(T===1){j?s.push(F):s.push(N);break}let W={indent:y,mode:E1,doc:P},J={indent:y,mode:Um,doc:P};if(T===2){j?s.push(W,F):s.push(J,N);break}let ee=D[A+2],Q={indent:y,mode:b,doc:{...w,[the]:A+2}},H=Xne({indent:y,mode:E1,doc:[M,P,ee]},[],E,c.length>0,n,!0);s.push(Q),H?s.push(W,F):j?s.push(J,F):s.push(J,N);break}case uC:case UL:{let E=w.groupId?n[w.groupId]:b;if(E===Um){let A=w.type===uC?w.breakContents:w.negate?w.contents:Ci(w.contents);A&&s.push({indent:y,mode:b,doc:A})}if(E===E1){let A=w.type===uC?w.flatContents:w.negate?Ci(w.contents):w.contents;A&&s.push({indent:y,mode:b,doc:A})}break}case $L:c.push({indent:y,mode:b,doc:w.contents});break;case SD:c.length>0&&s.push({indent:y,mode:b,doc:o9e});break;case av:switch(b){case E1:if(w.hard)l=!0;else{w.soft||(a+=" ",o+=1);break}case Um:if(c.length>0){s.push({indent:y,mode:b,doc:w},...c.reverse()),c.length=0;break}w.literal?(a+=r,o=0,y.root&&(y.root.value&&(a+=y.root.value),o=y.root.length)):(v(),a+=r+y.value,o=y.length);break}break;case sE:s.push({indent:y,mode:b,doc:w.contents});break;case Px:break;default:throw new y9(w)}s.length===0&&c.length>0&&(s.push(...c.reverse()),c.length=0)}let p=d.join("")+a,g=[...h,...u];if(g.length!==2)return{formatted:p};let m=g[0];return{formatted:p,cursorNodeStart:m,cursorNodeText:p.slice(m,gl(0,g,-1))};function v(){let{text:y,count:b}=Ion(a);y&&(d.push(y),f+=y.length),a="",o-=b,u.length>0&&(h.push(...u.map(w=>Math.min(w,f))),u.length=0)}}function fii(e,t,n=0){let i=0;for(let r=n;r<e.length;++r)e[r]==="	"?i=i+t-i%t:i++;return i}function pii(e,t){let n=e.lastIndexOf(`
`);return n===-1?0:_an(e.slice(n+1).match(/^[\t ]*/u)[0],t)}function Non(e,t,n){let{node:i}=e;if(i.type==="TemplateLiteral"&&yii(e)){let l=mii(e,t,n);if(l)return l}let r="expressions";i.type==="TSTemplateLiteralType"&&(r="types");let o=[],s=e.map(n,r);o.push(TC,"`");let a=0;return e.each(({index:l,node:c})=>{if(o.push(n()),c.tail)return;let{tabWidth:u}=t,d=c.value.raw,h=d.includes(`
`)?wan(d,u):a;a=h;let f=s[l],p=i[r][l],g=H0(t.originalText,ta(c),ca(i.quasis[l+1]));if(!g){let v=Lon(f,{...t,printWidth:Number.POSITIVE_INFINITY}).formatted;v.includes(`
`)?g=!0:f=v}g&&(cr(p)||p.type==="Identifier"||su(p)||p.type==="ConditionalExpression"||p.type==="SequenceExpression"||P_(p)||rE(p))&&(f=[Ci([hi,f]),hi]);let m=h===0&&d.endsWith(`
`)?EC(Number.NEGATIVE_INFINITY,f):lii(f,h,u);o.push(En(["${",m,TC,"}"]))},"quasis"),o.push("`"),o}function gii(e,t,n){let i=n("quasi"),{node:r}=e,o="",s=SR(r.quasi,Or.Leading)[0];return s&&(H0(t.originalText,ta(r.typeArguments??r.tag),ca(s))?o=hi:o=" "),VY(i.label&&{tagged:!0,...i.label},[n("tag"),n("typeArguments"),o,TC,i])}function mii(e,t,n){let{node:i}=e,r=i.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(r.length>1||r.some(o=>o.length>0)){t.__inJestEach=!0;let o=e.map(n,"expressions");t.__inJestEach=!1;let s=o.map(d=>"${"+Lon(d,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),a=[{hasLineBreak:!1,cells:[]}];for(let d=1;d<i.quasis.length;d++){let h=gl(0,a,-1),f=s[d-1];h.cells.push(f),f.includes(`
`)&&(h.hasLineBreak=!0),i.quasis[d].value.raw.includes(`
`)&&a.push({hasLineBreak:!1,cells:[]})}let l=Math.max(r.length,...a.map(d=>d.cells.length)),c=Array.from({length:l}).fill(0),u=[{cells:r},...a.filter(d=>d.cells.length>0)];for(let{cells:d}of u.filter(h=>!h.hasLineBreak))for(let[h,f]of d.entries())c[h]=Math.max(c[h],c2(f));return[TC,"`",Ci([ki,Aa(ki,u.map(d=>Aa(" | ",d.cells.map((h,f)=>d.hasLineBreak?h:h+" ".repeat(c[f]-c2(h))))))]),ki,"`"]}}function vii(e,t){let{node:n}=e,i=t();return cr(n)&&(i=En([Ci([hi,i]),hi])),["${",i,TC,"}"]}function Cqe(e,t){return e.map(()=>vii(e,t),"expressions")}function Pon(e,t){return Z7(e,n=>typeof n=="string"?t?Vf(0,n,/(\\*)`/gu,"$1$1\\`"):Mon(n):n)}function Mon(e){return Vf(0,e,/([\\`]|\$\{)/gu,"\\$1")}function yii({node:e,parent:t}){let n=/^[fx]?(?:describe|it|test)$/u;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&n.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&n.test(t.tag.object.object.name))}function bii(e){let t=i=>i.type==="TemplateLiteral",n=(i,r)=>$N(i)&&!i.computed&&i.key.type==="Identifier"&&i.key.name==="styles"&&r==="value";return e.match(t,(i,r)=>Tp(i)&&r==="elements",n,...nhe)||e.match(t,n,...nhe)}function _ii(e){return e.match(t=>t.type==="TemplateLiteral",(t,n)=>$N(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&n==="value",...nhe)}function VDe(e,t){return cr(e,Or.Block|Or.Leading,({value:n})=>n===` ${t} `)}function Oon({node:e,parent:t},n){return VDe(e,n)||wii(t)&&VDe(t,n)||t.type==="ExpressionStatement"&&VDe(t,n)}function wii(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function Cii(e,t,n){let{node:i}=n,r="";for(let[l,c]of i.quasis.entries()){let{raw:u}=c.value;l>0&&(r+="@prettier-placeholder-"+(l-1)+"-id"),r+=u}let o=await e(r,{parser:"scss"}),s=Cqe(n,t),a=Sii(o,s);if(!a)throw new Error("Couldn't insert all the expressions");return["`",Ci([ki,a]),hi,"`"]}function Sii(e,t){if(!au(t))return e;let n=0,i=Z7(wqe(e),r=>typeof r!="string"||!r.includes("@prettier-placeholder")?r:r.split(/@prettier-placeholder-(\d+)-id/u).map((o,s)=>s%2===0?l2(o):(n++,t[o])));return t.length===n?i:null}function xii(e){return e.match(void 0,(t,n)=>n==="quasi"&&t.type==="TaggedTemplateExpression"&&Eme(t.tag,["css","css.global","css.resolve"]))||e.match(void 0,(t,n)=>n==="expression"&&t.type==="JSXExpressionContainer",(t,n)=>n==="children"&&t.type==="JSXElement"&&t.openingElement.name.type==="JSXIdentifier"&&t.openingElement.name.name==="style"&&t.openingElement.attributes.some(i=>i.type==="JSXAttribute"&&i.name.type==="JSXIdentifier"&&i.name.name==="jsx"))}function Jne(e){return e.type==="Identifier"&&e.name==="styled"}function Lxt(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name==="extend"}function Eii({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let t=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return Jne(t.object)||Lxt(t);case"CallExpression":return Jne(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(Jne(t.callee.object.object)||Lxt(t.callee.object))||t.callee.object.type==="CallExpression"&&Jne(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function Aii({parent:e,grandparent:t}){return t?.type==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}async function Dii(e,t,n){let{node:i}=n,r=i.quasis.length,o=Cqe(n,t),s=[];for(let a=0;a<r;a++){let l=i.quasis[a],c=a===0,u=a===r-1,d=l.value.cooked,h=d.split(`
`),f=h.length,p=o[a],g=f>2&&h[0].trim()===""&&h[1].trim()==="",m=f>2&&h[f-1].trim()===""&&h[f-2].trim()==="",v=h.every(b=>/^\s*(?:#[^\n\r]*)?$/u.test(b));if(!u&&/#[^\n\r]*$/u.test(h[f-1]))return null;let y=null;v?y=Tii(h):y=await e(d,{parser:"graphql"}),y?(y=Pon(y,!1),!c&&g&&s.push(""),s.push(y),!u&&m&&s.push("")):!c&&!u&&g&&s.push(""),p&&s.push(p)}return["`",Ci([ki,Aa(ki,s)]),ki,"`"]}function Tii(e){let t=[],n=!1,i=e.map(r=>r.trim());for(let[r,o]of i.entries())o!==""&&(i[r-1]===""&&n?t.push([ki,o]):t.push(o),n=!0);return t.length===0?null:Aa(ki,t)}function kii({node:e,parent:t}){return Oon({node:e,parent:t},"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}async function Nxt(e,t,n,i,r){let{node:o}=i,s=Yle;Yle=Yle+1>>>0;let a=v=>`PRETTIER_HTML_PLACEHOLDER_${v}_${s}_IN_JS`,l=o.quasis.map((v,y,b)=>y===b.length-1?v.value.cooked:v.value.cooked+a(y)).join(""),c=Cqe(i,n),u=new RegExp(a("(\\d+)"),"gu"),d=0,h=await t(l,{parser:e,__onHtmlRoot(v){d=v.children.length}}),f=Z7(h,v=>{if(typeof v!="string")return v;let y=[],b=v.split(u);for(let w=0;w<b.length;w++){let E=b[w];if(w%2===0){E&&(E=Mon(E),r.__embeddedInHtml&&(E=Vf(0,E,/<\/(?=script\b)/giu,"<\\/")),y.push(E));continue}let A=Number(E);y.push(c[A])}return y}),p=/^\s/u.test(l)?" ":"",g=/\s$/u.test(l)?" ":"",m=r.htmlWhitespaceSensitivity==="ignore"?ki:p&&g?hr:null;return m?En(["`",Ci([m,En(f)]),m,"`"]):VY({hug:!1},En(["`",p,d>1?Ci(En(f)):En(f),g,"`"]))}function Iii(e){return Oon(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,n)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&n==="quasi")}async function Lii(e,t,n){let{node:i}=n,r=Vf(0,i.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(l,c)=>"\\".repeat(c.length/2)+"`"),o=Nii(r),s=o!=="";s&&(r=Vf(0,r,new RegExp(`^${o}`,"gmu"),""));let a=Pon(await e(r,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",s?Ci([hi,a]):[Hqe,aii(a)],hi,"`"]}function Nii(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?"":t[1]}function Pii({node:e,parent:t}){return t?.type==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}function Mii(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||Rii(t))return;let n=Can.find(({test:i})=>i(e));if(n)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":n.print}function Oii(e){return async(...t)=>{let n=await e(...t);return n&&VY({embed:!0,...n.label},n)}}function Rii({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}function Fii(e){let t=e.match(Wqe);return t?t[0].trimStart():""}function Bii(e){let t=e.match(Wqe)?.[0];return t==null?e:e.slice(t.length)}function jii(e){e=Vf(0,e.replace(xan,"").replace(San,""),Dan,"$1");let t="";for(;t!==e;)t=e,e=Vf(0,e,Aan,`
$1 $2
`);e=e.replace(a9e,"").trimEnd();let n=Object.create(null),i=Vf(0,e,l9e,"").replace(a9e,"").trimEnd(),r;for(;r=l9e.exec(e);){let o=Vf(0,r[2],Ean,"");if(typeof n[r[1]]=="string"||Array.isArray(n[r[1]])){let s=n[r[1]];n[r[1]]=[...Uqe,...Array.isArray(s)?s:[s],o]}else n[r[1]]=o}return{comments:i,pragmas:n}}function zii({comments:e="",pragmas:t={}}){let n=Object.keys(t),i=n.flatMap(o=>Pxt(o,t[o])).map(o=>` * ${o}
`).join("");if(!e){if(n.length===0)return"";if(n.length===1&&!Array.isArray(t[n[0]])){let o=t[n[0]];return`/** ${Pxt(n[0],o)[0]} */`}}let r=e.split(`
`).map(o=>` * ${o}`).join(`
`)+`
`;return`/**
`+(e?r:"")+(e&&n.length>0?` *
`:"")+i+" */"}function Pxt(e,t){return[...Uqe,...Array.isArray(t)?t:[t]].map(n=>`@${e} ${n}`.trim())}function Vii(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
`);return t===-1?e:e.slice(0,t)}function Hii(e){let t=kan(e);t&&(e=e.slice(t.length+1));let n=Fii(e),{pragmas:i,comments:r}=jii(n);return{shebang:t,text:e,pragmas:i,comments:r}}function Wii(e){let{shebang:t,text:n,pragmas:i,comments:r}=Hii(e),o=Bii(n),s=zii({pragmas:{[Tan]:"",...i},comments:r.trimStart()});return(t?`${t}
`:"")+s+(o.startsWith(`
`)?`
`:`

`)+o}function Uii(e){if(!U_(e))return!1;let t=`*${e.value}*`.split(`
`);return t.length>1&&t.every(n=>n.trimStart()[0]==="*")}function $ii(e){return Qle.has(e)||Qle.set(e,Uii(e)),Qle.get(e)}function qii(e,t){let n=e.node;if(p8(n))return t.originalText.slice(ca(n),ta(n)).trimEnd();if(Ian(n))return Gii(n);if(U_(n))return["/*",l2(n.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(n))}function Gii(e){let t=e.value.split(`
`);return["/*",Aa(ki,t.map((n,i)=>i===0?n.trimEnd():" "+(i<t.length-1?n.trim():n.trimStart()))),"*/"]}function G8e(e,t){if(e.isRoot)return!1;let{node:n,key:i,parent:r}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&Qii(n)&&FW(e))return!0;if(Lan(n))return!1;if(n.type==="Identifier"){if(n.extra?.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(n.name)||i==="left"&&(n.name==="async"&&!r.await||n.name==="let")&&r.type==="ForOfStatement")return!0;if(n.name==="let"){let o=e.findAncestor(s=>s.type==="ForOfStatement")?.left;if(o&&Km(o,s=>s===n))return!0}if(i==="object"&&n.name==="let"&&r.type==="MemberExpression"&&r.computed&&!r.optional){let o=e.findAncestor(a=>a.type==="ExpressionStatement"||a.type==="ForStatement"||a.type==="ForInStatement"),s=o?o.type==="ExpressionStatement"?o.expression:o.type==="ForStatement"?o.init:o.left:void 0;if(s&&Km(s,a=>a===n))return!0}if(i==="expression")switch(n.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let o=e.findAncestor(s=>!P_(s));if(o!==r&&o.type==="ExpressionStatement")return!0}}return!1}if(n.type==="ObjectExpression"||n.type==="FunctionExpression"||n.type==="ClassExpression"||n.type==="DoExpression"){let o=e.findAncestor(s=>s.type==="ExpressionStatement")?.expression;if(o&&Km(o,s=>s===n))return!0}if(n.type==="ObjectExpression"){let o=e.findAncestor(s=>s.type==="ArrowFunctionExpression")?.body;if(o&&o.type!=="SequenceExpression"&&o.type!=="AssignmentExpression"&&Km(o,s=>s===n))return!0}switch(r.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(i==="superClass"&&(n.type==="ArrowFunctionExpression"||n.type==="AssignmentExpression"||n.type==="AwaitExpression"||n.type==="BinaryExpression"||n.type==="ConditionalExpression"||n.type==="LogicalExpression"||n.type==="NewExpression"||n.type==="ObjectExpression"||n.type==="SequenceExpression"||n.type==="TaggedTemplateExpression"||n.type==="UnaryExpression"||n.type==="UpdateExpression"||n.type==="YieldExpression"||n.type==="TSNonNullExpression"||n.type==="ClassExpression"&&au(n.decorators)))return!0;break;case"ExportDefaultDeclaration":return Ron(e,t)||n.type==="SequenceExpression";case"Decorator":if(i==="expression"&&!Xii(n))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(o,s)=>s==="returnType"&&o.type==="ArrowFunctionExpression")&&Yii(n))return!0;break;case"BinaryExpression":if(i==="left"&&(r.operator==="in"||r.operator==="instanceof")&&n.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(i==="init"&&e.match(void 0,void 0,(o,s)=>s==="declarations"&&o.type==="VariableDeclaration",(o,s)=>s==="left"&&o.type==="ForInStatement"))return!0;break}switch(n.type){case"UpdateExpression":if(r.type==="UnaryExpression")return n.prefix&&(n.operator==="++"&&r.operator==="+"||n.operator==="--"&&r.operator==="-");case"UnaryExpression":switch(r.type){case"UnaryExpression":return n.operator===r.operator&&(n.operator==="+"||n.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return i==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return i==="callee";case"BinaryExpression":return i==="left"&&r.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(r.type==="UpdateExpression"||n.operator==="in"&&Kii(e))return!0;if(n.operator==="|>"&&n.extra?.parenthesized){let o=e.grandparent;if(o.type==="BinaryExpression"&&o.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!P_(n);case"ConditionalExpression":return P_(n)||cni(n);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return i==="callee";case"ClassExpression":case"ClassDeclaration":return i==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return i==="object";case"AssignmentExpression":case"AssignmentPattern":return i==="left"&&(n.type==="TSTypeAssertion"||P_(n));case"LogicalExpression":if(n.type==="LogicalExpression")return r.operator!==n.operator;case"BinaryExpression":{let{operator:o,type:s}=n;if(!o&&s!=="TSTypeAssertion")return!0;let a=Kde(o),l=r.operator,c=Kde(l);return!!(c>a||i==="right"&&c===a||c===a&&!pqe(l,o)||c<a&&o==="%"&&(l==="+"||l==="-")||mni(l))}default:return!1}case"SequenceExpression":return r.type!=="ForStatement";case"YieldExpression":if(r.type==="AwaitExpression"||r.type==="TSTypeAssertion")return!0;case"AwaitExpression":switch(r.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return i==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return i==="callee";case"ConditionalExpression":return i==="test";case"BinaryExpression":return!(!n.argument&&r.operator==="|>");default:return!1}case"TSFunctionType":if(e.match(o=>o.type==="TSFunctionType",(o,s)=>s==="typeAnnotation"&&o.type==="TSTypeAnnotation",(o,s)=>s==="returnType"&&o.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":case"ConditionalTypeAnnotation":if(i==="extendsType"&&$D(n)&&r.type===n.type||i==="checkType"&&$D(r))return!0;if(i==="extendsType"&&r.type==="TSConditionalType"){let{typeAnnotation:o}=n.returnType||n.typeAnnotation;if(o.type==="TSTypePredicate"&&o.typeAnnotation&&(o=o.typeAnnotation.typeAnnotation),o.type==="TSInferType"&&o.typeParameter.constraint)return!0}case"TSUnionType":case"TSIntersectionType":if(AC(r)||J7(r))return!0;case"TSInferType":if(n.type==="TSInferType"){if(r.type==="TSRestType")return!1;if(i==="types"&&(r.type==="TSUnionType"||r.type==="TSIntersectionType")&&n.typeParameter.type==="TSTypeParameter"&&n.typeParameter.constraint)return!0}case"TSTypeOperator":return r.type==="TSArrayType"||r.type==="TSOptionalType"||r.type==="TSRestType"||i==="objectType"&&r.type==="TSIndexedAccessType"||r.type==="TSTypeOperator"||r.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return i==="objectType"&&r.type==="TSIndexedAccessType"||i==="elementType"&&r.type==="TSArrayType";case"TypeOperator":return r.type==="ArrayTypeAnnotation"||r.type==="NullableTypeAnnotation"||i==="objectType"&&(r.type==="IndexedAccessType"||r.type==="OptionalIndexedAccessType")||r.type==="TypeOperator";case"TypeofTypeAnnotation":return i==="objectType"&&(r.type==="IndexedAccessType"||r.type==="OptionalIndexedAccessType")||i==="elementType"&&r.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return r.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return r.type==="TypeOperator"||r.type==="KeyofTypeAnnotation"||r.type==="ArrayTypeAnnotation"||r.type==="NullableTypeAnnotation"||r.type==="IntersectionTypeAnnotation"||r.type==="UnionTypeAnnotation"||i==="objectType"&&(r.type==="IndexedAccessType"||r.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return r.type==="ArrayTypeAnnotation"||i==="objectType"&&(r.type==="IndexedAccessType"||r.type==="OptionalIndexedAccessType");case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(n.type==="ComponentTypeAnnotation"&&(n.rendersType===null||n.rendersType===void 0))return!1;if(e.match(void 0,(s,a)=>a==="typeAnnotation"&&s.type==="TypeAnnotation",(s,a)=>a==="returnType"&&s.type==="ArrowFunctionExpression")||e.match(void 0,(s,a)=>a==="typeAnnotation"&&s.type==="TypePredicate",(s,a)=>a==="typeAnnotation"&&s.type==="TypeAnnotation",(s,a)=>a==="returnType"&&s.type==="ArrowFunctionExpression"))return!0;let o=r.type==="NullableTypeAnnotation"?e.grandparent:r;return o.type==="UnionTypeAnnotation"||o.type==="IntersectionTypeAnnotation"||o.type==="ArrayTypeAnnotation"||i==="objectType"&&(o.type==="IndexedAccessType"||o.type==="OptionalIndexedAccessType")||i==="checkType"&&r.type==="ConditionalTypeAnnotation"||i==="extendsType"&&r.type==="ConditionalTypeAnnotation"&&n.returnType?.type==="InferTypeAnnotation"&&n.returnType?.typeParameter.bound||o.type==="NullableTypeAnnotation"||r.type==="FunctionTypeParam"&&r.name===null&&gm(n).some(s=>s.typeAnnotation?.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return i==="objectType"&&r.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof n.value=="string"&&r.type==="ExpressionStatement"&&typeof r.directive!="string"){let o=e.grandparent;return o.type==="Program"||o.type==="BlockStatement"}return i==="object"&&su(r)&&iE(n);case"AssignmentExpression":return!((i==="init"||i==="update")&&r.type==="ForStatement"||i==="expression"&&n.left.type!=="ObjectPattern"&&r.type==="ExpressionStatement"||i==="key"&&r.type==="TSPropertySignature"||r.type==="AssignmentExpression"||i==="expressions"&&r.type==="SequenceExpression"&&e.match(void 0,void 0,(o,s)=>(s==="init"||s==="update")&&o.type==="ForStatement")||i==="value"&&r.type==="Property"&&e.match(void 0,void 0,(o,s)=>s==="properties"&&o.type==="ObjectPattern")||r.type==="NGChainedExpression"||i==="node"&&r.type==="JsExpressionRoot");case"ConditionalExpression":switch(r.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return i==="callee";case"ConditionalExpression":return t.experimentalTernaries?!1:i==="test";case"MemberExpression":case"OptionalMemberExpression":return i==="object";default:return!1}case"FunctionExpression":switch(r.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return i==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(r.type){case"BinaryExpression":return r.operator!=="|>"||n.extra?.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return i==="callee";case"MemberExpression":case"OptionalMemberExpression":return i==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":case"MatchExpressionCase":return!0;case"TSInstantiationExpression":return i==="expression";case"ConditionalExpression":return i==="test";default:return!1}case"ClassExpression":return r.type==="NewExpression"?i==="callee":!1;case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(Zii(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(i==="callee"&&(r.type==="BindExpression"||r.type==="NewExpression")){let o=n;for(;o;)switch(o.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":o=o.object;break;case"TaggedTemplateExpression":o=o.tag;break;case"TSNonNullExpression":o=o.expression;break;default:return!1}}return!1;case"BindExpression":return i==="callee"&&(r.type==="BindExpression"||r.type==="NewExpression")||i==="object"&&su(r);case"NGPipeExpression":return!(r.type==="NGRoot"||r.type==="NGMicrosyntaxExpression"||r.type==="ObjectProperty"&&!n.extra?.parenthesized||Tp(r)||i==="arguments"&&Za(r)||i==="right"&&r.type==="NGPipeExpression"||i==="property"&&r.type==="MemberExpression"||r.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return i==="callee"||i==="left"&&r.type==="BinaryExpression"&&r.operator==="<"||!Tp(r)&&r.type!=="ArrowFunctionExpression"&&r.type!=="AssignmentExpression"&&r.type!=="AssignmentPattern"&&r.type!=="BinaryExpression"&&r.type!=="NewExpression"&&r.type!=="ConditionalExpression"&&r.type!=="ExpressionStatement"&&r.type!=="JsExpressionRoot"&&r.type!=="JSXAttribute"&&r.type!=="JSXElement"&&r.type!=="JSXExpressionContainer"&&r.type!=="JSXFragment"&&r.type!=="LogicalExpression"&&!Za(r)&&!$N(r)&&r.type!=="ReturnStatement"&&r.type!=="ThrowStatement"&&r.type!=="TypeCastExpression"&&r.type!=="VariableDeclarator"&&r.type!=="YieldExpression"&&r.type!=="MatchExpressionCase";case"TSInstantiationExpression":return i==="object"&&su(r);case"MatchOrPattern":return r.type==="MatchAsPattern"}return!1}function Kii(e){let t=0,{node:n}=e;for(;n;){let i=e.getParentNode(t++);if(i?.type==="ForStatement"&&i.init===n)return!0;n=i}return!1}function Yii(e){return U8e(e,t=>t.type==="ObjectTypeAnnotation"&&U8e(t,n=>n.type==="FunctionTypeAnnotation"))}function Qii(e){return iw(e)}function FW(e){let{parent:t,key:n}=e;switch(t.type){case"NGPipeExpression":if(n==="arguments"&&e.isLast)return e.callParent(FW);break;case"ObjectProperty":if(n==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(n==="right")return e.callParent(FW);break;case"ConditionalExpression":if(n==="alternate")return e.callParent(FW);break;case"UnaryExpression":if(t.prefix)return e.callParent(FW);break}return!1}function Ron(e,t){let{node:n,parent:i}=e;return n.type==="FunctionExpression"||n.type==="ClassExpression"?i.type==="ExportDefaultDeclaration"||!G8e(e,t):!dqe(n)||i.type!=="ExportDefaultDeclaration"&&G8e(e,t)?!1:e.call(()=>Ron(e,t),...lon(n))}function Zii(e){return!!(e.match(void 0,(t,n)=>n==="expression"&&t.type==="ChainExpression",(t,n)=>n==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,n)=>n==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,n)=>n==="expression"&&t.type==="TSNonNullExpression",(t,n)=>n==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,n)=>n==="expression"&&t.type==="ChainExpression",(t,n)=>n==="expression"&&t.type==="TSNonNullExpression",(t,n)=>n==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,n)=>n==="expression"&&t.type==="TSNonNullExpression",(t,n)=>n==="expression"&&t.type==="ChainExpression",(t,n)=>n==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,n)=>n==="object"&&t.type==="MemberExpression"||n==="callee"&&(t.type==="CallExpression"||t.type==="NewExpression"))||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,n)=>n==="expression"&&t.type==="TSNonNullExpression",(t,n)=>n==="object"&&t.type==="MemberExpression"||n==="callee"&&t.type==="CallExpression")||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,n)=>n==="expression"&&t.type==="ChainExpression")&&(e.match(void 0,void 0,(t,n)=>n==="callee"&&(t.type==="CallExpression"&&!t.optional||t.type==="NewExpression")||n==="object"&&t.type==="MemberExpression"&&!t.optional)||e.match(void 0,void 0,(t,n)=>n==="expression"&&t.type==="TSNonNullExpression",(t,n)=>n==="object"&&t.type==="MemberExpression"||n==="callee"&&t.type==="CallExpression"))||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,n)=>n==="expression"&&t.type==="TSNonNullExpression",(t,n)=>n==="expression"&&t.type==="ChainExpression",(t,n)=>n==="object"&&t.type==="MemberExpression"||n==="callee"&&t.type==="CallExpression"))}function K8e(e){return e.type==="Identifier"?!0:su(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&K8e(e.object):!1}function Xii(e){return e.type==="ChainExpression"&&(e=e.expression),K8e(e)||Za(e)&&!e.optional&&K8e(e.callee)}function Jii(e,t){let n=t-1;n=u2(e,n,{backwards:!0}),n=d2(e,n,{backwards:!0}),n=u2(e,n,{backwards:!0});let i=d2(e,n,{backwards:!0});return n!==i}function Sqe(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function eri(e,t){let n=e.node,i=[Sqe(e,t)],{printer:r,originalText:o,locStart:s,locEnd:a}=t;if(r.isBlockComment?.(n)){let c=kv(o,a(n))?kv(o,s(n),{backwards:!0})?ki:hr:" ";i.push(c)}else i.push(ki);let l=d2(o,u2(o,a(n)));return l!==!1&&kv(o,l)&&i.push(ki),i}function tri(e,t,n){let i=e.node,r=Sqe(e,t),{printer:o,originalText:s,locStart:a}=t,l=o.isBlockComment?.(i);if(n?.hasLineSuffix&&!n?.isBlock||kv(s,a(i),{backwards:!0})){let c=Nan(s,a(i));return{doc:Ixt([ki,c?ki:"",r]),isBlock:l,hasLineSuffix:!0}}return!l||n?.hasLineSuffix?{doc:[Ixt([" ",r]),Mx],isBlock:l,hasLineSuffix:!0}:{doc:[" ",r],isBlock:l,hasLineSuffix:!1}}function _u(e,t,n={}){let{node:i}=e;if(!au(i?.comments))return"";let{indent:r=!1,marker:o,filter:s=Pan}=n,a=[];if(e.each(({node:c})=>{c.leading||c.trailing||c.marker!==o||!s(c)||a.push(Sqe(e,t))},"comments"),a.length===0)return"";let l=Aa(ki,a);return r?Ci([ki,l]):l}function bme(e,t){let n=e.node;if(!n)return{};let i=t[Symbol.for("printedComments")];if((n.comments||[]).filter(a=>!i.has(a)).length===0)return{leading:"",trailing:""};let r=[],o=[],s;return e.each(()=>{let a=e.node;if(i?.has(a))return;let{leading:l,trailing:c}=a;l?r.push(eri(e,t)):c&&(s=tri(e,t,s),o.push(s.doc))},"comments"),{leading:r,trailing:o}}function W_(e,t,n){let{leading:i,trailing:r}=bme(e,n);return!i&&!r?t:q8e(t,o=>[i,o,r])}function hF(e,t,n,i,r){let o=e.node,s=gm(o),a=r&&o.typeParameters?n("typeParameters"):"";if(s.length===0)return[a,"(",_u(e,t,{filter:f=>rw(t.originalText,ta(f))===")"}),")"];let{parent:l}=e,c=vme(l),u=Fon(o),d=[];if(yni(e,(f,p)=>{let g=p===s.length-1;g&&o.rest&&d.push("..."),d.push(n()),!g&&(d.push(","),c||u?d.push(" "):QC(s[p],t)?d.push(ki,ki):d.push(hr))}),i&&!iri(e)){if(hv(a)||hv(d))throw new xG;return En([Qde(a),"(",Qde(d),")"])}let h=s.every(f=>!au(f.decorators));return u&&h?[a,"(",...d,")"]:c?[a,"(",...d,")"]:(don(l)||hni(l)||l.type==="TypeAlias"||l.type==="UnionTypeAnnotation"||l.type==="IntersectionTypeAnnotation"||l.type==="FunctionTypeAnnotation"&&l.returnType===o)&&s.length===1&&s[0].name===null&&o.this!==s[0]&&s[0].typeAnnotation&&o.typeParameters===null&&hqe(s[0].typeAnnotation)&&!o.rest?t.arrowParens==="always"||o.type==="HookTypeAnnotation"?["(",...d,")"]:d:[a,"(",Ci([hi,...d]),os(!vni(o)&&xE(t,"all")?",":""),hi,")"]}function Fon(e){if(!e)return!1;let t=gm(e);if(t.length!==1)return!1;let[n]=t;return!cr(n)&&(n.type==="ObjectPattern"||n.type==="ArrayPattern"||n.type==="Identifier"&&n.typeAnnotation&&(n.typeAnnotation.type==="TypeAnnotation"||n.typeAnnotation.type==="TSTypeAnnotation")&&UD(n.typeAnnotation.typeAnnotation)||n.type==="FunctionTypeParam"&&UD(n.typeAnnotation)&&n!==e.rest||n.type==="AssignmentPattern"&&(n.left.type==="ObjectPattern"||n.left.type==="ArrayPattern")&&(n.right.type==="Identifier"||iw(n.right)&&n.right.properties.length===0||Tp(n.right)&&n.right.elements.length===0))}function nri(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function X7(e,t){let n=nri(e);if(!n)return!1;let i=e.typeParameters?.params;if(i){if(i.length>1)return!1;if(i.length===1){let r=i[0];if(r.constraint||r.default)return!1}}return gm(e).length===1&&(UD(n)||hv(t))}function iri(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,n)=>{if(t.type==="CallExpression"&&n==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let i=t.callee.callee;return i.type==="Identifier"||i.type==="MemberExpression"&&!i.computed&&i.object.type==="Identifier"&&i.property.type==="Identifier"}return!1},(t,n)=>t.type==="VariableDeclarator"&&n==="init"||t.type==="ExportDefaultDeclaration"&&n==="declaration"||t.type==="TSExportAssignment"&&n==="expression"||t.type==="AssignmentExpression"&&n==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function rri(e){let t=gm(e);return t.length>1&&t.some(n=>n.type==="TSParameterProperty")}function j$(e,t){return(t==="params"||t==="this"||t==="rest")&&Fon(e)}function Tv(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":Za(t)||su(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function Bon(e){return e.node.definite||e.match(void 0,(t,n)=>n==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}function cb(e){let{node:t}=e;return t.declare||Man(t)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}function _me({node:e}){return e.abstract||Oan(e)?"abstract ":""}function jk(e,t,n){return e.type==="EmptyStatement"?cr(e,Or.Leading)?[" ",t]:t:e.type==="BlockStatement"||n?[" ",t]:Ci([hr,t])}function wme(e){return e.accessibility?e.accessibility+" ":""}function ori(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}function jon(e,t,n){let{node:i,parent:r,grandparent:o,key:s}=e,a=s!=="body"&&(r.type==="IfStatement"||r.type==="WhileStatement"||r.type==="SwitchStatement"||r.type==="DoWhileStatement"),l=i.operator==="|>"&&e.root.extra?.__isUsingHackPipeline,c=Y8e(e,t,n,!1,a);if(a)return c;if(l)return En(c);if(s==="callee"&&(Za(r)||r.type==="NewExpression")||r.type==="UnaryExpression"||su(r)&&!r.computed)return En([Ci([hi,...c]),hi]);let u=r.type==="ReturnStatement"||r.type==="ThrowStatement"||r.type==="JSXExpressionContainer"&&o.type==="JSXAttribute"||i.operator!=="|"&&r.type==="JsExpressionRoot"||i.type!=="NGPipeExpression"&&(r.type==="NGRoot"&&t.parser==="__ng_binding"||r.type==="NGMicrosyntaxExpression"&&o.type==="NGMicrosyntax"&&o.body.length===1)||i===r.body&&r.type==="ArrowFunctionExpression"||i!==r.body&&r.type==="ForStatement"||r.type==="ConditionalExpression"&&o.type!=="ReturnStatement"&&o.type!=="ThrowStatement"&&!Za(o)&&o.type!=="NewExpression"||r.type==="TemplateLiteral"||ari(e),d=r.type==="AssignmentExpression"||r.type==="VariableDeclarator"||r.type==="ClassProperty"||r.type==="PropertyDefinition"||r.type==="TSAbstractPropertyDefinition"||r.type==="ClassPrivateProperty"||$N(r),h=rE(i.left)&&pqe(i.operator,i.left.operator);if(u||CG(i)&&!h||!CG(i)&&d)return En(c);if(c.length===0)return"";let f=Uf(i.right),p=c.findIndex(w=>typeof w!="string"&&!Array.isArray(w)&&w.type===ub),g=c.slice(0,p===-1?1:p+1),m=c.slice(g.length,f?-1:void 0),v=Symbol("logicalChain-"+ ++Fan),y=En([...g,Ci(m)],{id:v});if(!f)return y;let b=gl(0,c,-1);return En([y,wG(b,{groupId:v})])}function Y8e(e,t,n,i,r){let{node:o}=e;if(!rE(o))return[En(n())];let s=[];pqe(o.operator,o.left.operator)?s=e.call(()=>Y8e(e,t,n,!0,r),"left"):s.push(En(n("left")));let a=CG(o),l=o.right.type==="ChainExpression"?o.right.expression:o.right,c=(o.operator==="|>"||o.type==="NGPipeExpression"||sri(e,t))&&!cC(t.originalText,l),u=!cr(l,Or.Leading,Fqe)&&cC(t.originalText,l),d=o.type==="NGPipeExpression"?"|":o.operator,h=o.type==="NGPipeExpression"&&o.arguments.length>0?En(Ci([hi,": ",Aa([hr,": "],e.map(()=>EC(2,En(n())),"arguments"))])):"",f;if(a)f=[d,cC(t.originalText,l)?Ci([hr,n("right"),h]):[" ",n("right"),h]];else{let m=d==="|>"&&e.root.extra?.__isUsingHackPipeline?e.call(()=>Y8e(e,t,n,!0,r),"right"):n("right");if(t.experimentalOperatorPosition==="start"){let v="";if(u)switch(ET(m)){case oE:v=m.splice(0,1)[0];break;case sE:v=m.contents.splice(0,1)[0];break}f=[hr,v,d," ",m,h]}else f=[c?hr:"",d,c?" ":hr,m,h]}let{parent:p}=e,g=cr(o.left,Or.Trailing|Or.Line);if((g||!(r&&o.type==="LogicalExpression")&&p.type!==o.type&&o.left.type!==o.type&&o.right.type!==o.type)&&(f=En(f,{shouldBreak:g})),t.experimentalOperatorPosition==="start"?s.push(a||u?" ":"",f):s.push(c?"":" ",f),i&&cr(o)){let m=wqe(W_(e,s,t));return m.type===qD?m.parts:Array.isArray(m)?m:[m]}return s}function CG(e){return e.type!=="LogicalExpression"?!1:!!(iw(e.right)&&e.right.properties.length>0||Tp(e.right)&&e.right.elements.length>0||Uf(e.right))}function sri(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&c9e(e.node)&&!e.hasAncestor(n=>!c9e(n)&&n.type!=="JsExpressionRoot")}function ari(e){if(e.key!=="arguments")return!1;let{parent:t}=e;if(!(Za(t)&&!t.optional&&t.arguments.length===1))return!1;let{callee:n}=t;return n.type==="Identifier"&&n.name==="Boolean"}function zon(e,t,n){let{node:i}=e,{parent:r}=e,o=r.type!=="TypeParameterInstantiation"&&(!$D(r)||!t.experimentalTernaries)&&r.type!=="TSTypeParameterInstantiation"&&r.type!=="GenericTypeAnnotation"&&r.type!=="TSTypeReference"&&r.type!=="TSTypeAssertion"&&r.type!=="TupleTypeAnnotation"&&r.type!=="TSTupleType"&&!(r.type==="FunctionTypeParam"&&!r.name&&e.grandparent.this!==r)&&!((ehe(r)||r.type==="VariableDeclarator")&&cC(t.originalText,i))&&!(ehe(r)&&cr(r.id,Or.Trailing|Or.Line)),s=Von(i),a=e.map(()=>{let f=n();return s||(f=EC(2,f)),W_(e,f,t)},"types"),l="",c="";if(mon(e)&&({leading:l,trailing:c}=bme(e,t)),s)return[l,Aa(" | ",a),c];let u=o&&!cC(t.originalText,i),d=[os([u?hr:"","| "]),Aa([hr,"| "],a)];if(AT(e,t))return[l,En([Ci(d),hi]),c];let h=[l,En(d)];return(r.type==="TupleTypeAnnotation"||r.type==="TSTupleType")&&r[r.type==="TupleTypeAnnotation"&&r.types?"types":"elementTypes"].length>1?[En([Ci([os(["(",hi]),h]),hi,os(")")]),c]:[En(o?Ci(h):h),c]}function Von(e){let{types:t}=e;if(t.some(i=>cr(i)))return!1;let n=t.find(i=>jan(i));return n?t.every(i=>i===n||Ban(i)):!1}function lri(e){return hqe(e)||UD(e)?!0:AC(e)?Von(e):!1}function pg(e,t,n="typeAnnotation"){let{node:{[n]:i}}=e;if(!i)return"";let r=!1;if(i.type==="TSTypeAnnotation"||i.type==="TypeAnnotation"){let o=e.call($qe,n);(o==="=>"||o===":"&&cr(i,Or.Leading))&&(r=!0),zan.add(i)}return r?[" ",t(n)]:t(n)}function Hon(e,t,n){let i=$qe(e);return i?[i," ",n("typeAnnotation")]:n("typeAnnotation")}function cri(e,t,n,i){let{node:r}=e,o=r.inexact?"...":"";return cr(r,Or.Dangling)?En([n,o,_u(e,t,{indent:!0}),hi,i]):[n,o,i]}function xqe(e,t,n){let{node:i}=e,r=[],o="[",s="]",a=i.type==="TupleTypeAnnotation"&&i.types?"types":i.type==="TSTupleType"||i.type==="TupleTypeAnnotation"?"elementTypes":"elements",l=i[a];if(l.length===0)r.push(cri(e,t,o,s));else{let c=gl(0,l,-1),u=c?.type!=="RestElement"&&!i.inexact,d=c===null,h=Symbol("array"),f=!t.__inJestEach&&l.length>1&&l.every((m,v,y)=>{let b=m?.type;if(!Tp(m)&&!iw(m))return!1;let w=y[v+1];if(w&&b!==w.type)return!1;let E=Tp(m)?"elements":"properties";return m[E]&&m[E].length>1}),p=Won(i,t),g=u?d?",":xE(t)?p?os(",","",{groupId:h}):os(","):"":"";r.push(En([o,Ci([hi,p?dri(e,t,n,g):[uri(e,t,n,a,i.inexact),g],_u(e,t)]),hi,s],{shouldBreak:f,id:h}))}return r.push(Tv(e),pg(e,n)),r}function Won(e,t){return Tp(e)&&e.elements.length>0&&e.elements.every(n=>n&&(iE(n)||con(n)&&!cr(n.argument))&&!cr(n,Or.Trailing|Or.Line,i=>!kv(t.originalText,ca(i),{backwards:!0})))}function Uon({node:e},{originalText:t}){let n=ta(e);if(n===ca(e))return!1;let{length:i}=t;for(;n<i&&t[n]!==",";)n=Sme(t,xme(t,n+1));return Xde(t,n)}function uri(e,t,n,i,r){let o=[];return e.each(({node:s,isLast:a})=>{o.push(s?En(n()):""),(!a||r)&&o.push([",",hr,s&&Uon(e,t)?hi:""])},i),r&&o.push("..."),o}function dri(e,t,n,i){let r=[];return e.each(({isLast:o,next:s})=>{r.push([n(),o?i:","]),o||r.push(Uon(e,t)?[ki,ki]:cr(s,Or.Leading|Or.Line)?ki:hr)},"elements"),Ton(r)}function hri(e,t,n){let{node:i}=e,r=Lb(i);if(r.length===0)return["(",_u(e,t),")"];let o=r.length-1;if(gri(r)){let d=["("];return Yde(e,(h,f)=>{d.push(n()),f!==o&&d.push(", ")}),d.push(")"),d}let s=!1,a=[];Yde(e,({node:d},h)=>{let f=n();h===o||(QC(d,t)?(s=!0,f=[f,",",ki,ki]):f=[f,",",hr]),a.push(f)});let l=!t.parser.startsWith("__ng_")&&i.type!=="ImportExpression"&&i.type!=="TSImportType"&&i.type!=="TSExternalModuleReference"&&xE(t,"all")?",":"";function c(){return En(["(",Ci([hr,...a]),l,hr,")"],{shouldBreak:!0})}if(s||e.parent.type!=="Decorator"&&gni(r))return c();if(pri(r)){let d=a.slice(1);if(d.some(hv))return c();let h;try{h=n(Dxt(i,0),{expandFirstArg:!0})}catch(f){if(f instanceof xG)return c();throw f}return hv(h)?[Mx,UO([["(",En(h,{shouldBreak:!0}),", ",...d,")"],c()])]:UO([["(",h,", ",...d,")"],["(",En(h,{shouldBreak:!0}),", ",...d,")"],c()])}if(fri(r,a,t)){let d=a.slice(0,-1);if(d.some(hv))return c();let h;try{h=n(Dxt(i,-1),{expandLastArg:!0})}catch(f){if(f instanceof xG)return c();throw f}return hv(h)?[Mx,UO([["(",...d,En(h,{shouldBreak:!0}),")"],c()])]:UO([["(",...d,h,")"],["(",...d,En(h,{shouldBreak:!0}),")"],c()])}let u=["(",Ci([hi,...a]),os(l),hi,")"];return gon(e)?u:En(u,{shouldBreak:a.some(hv)||s})}function z$(e,t=!1){return iw(e)&&(e.properties.length>0||cr(e))||Tp(e)&&(e.elements.length>0||cr(e))||e.type==="TSTypeAssertion"&&z$(e.expression)||P_(e)&&z$(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||mri(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&z$(e.body,!0)||iw(e.body)||Tp(e.body)||!t&&(Za(e.body)||e.body.type==="ConditionalExpression")||Uf(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function fri(e,t,n){let i=gl(0,e,-1);if(e.length===1){let o=gl(0,t,-1);if(o.label?.embed&&o.label?.hug!==!1)return!0}let r=gl(0,e,-2);return!cr(i,Or.Leading)&&!cr(i,Or.Trailing)&&z$(i)&&(!r||r.type!==i.type)&&(e.length!==2||r.type!=="ArrowFunctionExpression"||!Tp(i))&&!(e.length>1&&Won(i,n))}function pri(e){if(e.length!==2)return!1;let[t,n]=e;return t.type==="ModuleExpression"&&vri(n)?!0:!cr(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&n.type!=="FunctionExpression"&&n.type!=="ArrowFunctionExpression"&&n.type!=="ConditionalExpression"&&$on(n)&&!z$(n)}function $on(e){if(e.type==="ParenthesizedExpression")return $on(e.expression);if(P_(e)||e.type==="TypeCastExpression"){let{typeAnnotation:t}=e;if(t.type==="TypeAnnotation"&&(t=t.typeAnnotation),t.type==="TSArrayType"&&(t=t.elementType,t.type==="TSArrayType"&&(t=t.elementType)),t.type==="GenericTypeAnnotation"||t.type==="TSTypeReference"){let n=t.type==="GenericTypeAnnotation"?t.typeParameters:t.typeArguments;n?.params.length===1&&(t=n.params[0])}return hqe(t)&&F1(e.expression,1)}return m9(e)&&Lb(e).length>1?!1:rE(e)?F1(e.left,1)&&F1(e.right,1):uon(e)||F1(e)}function gri(e){return e.length===2?Mxt(e,0):e.length===3?e[0].type==="Identifier"&&Mxt(e,1):!1}function Mxt(e,t){let n=e[t],i=e[t+1];return n.type==="ArrowFunctionExpression"&&gm(n).length===0&&n.body.type==="BlockStatement"&&i.type==="ArrayExpression"&&!e.some(r=>cr(r))}function mri(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||cr(e,Or.Dangling))}function vri(e){if(!(e.type==="ObjectExpression"&&e.properties.length===1))return!1;let[t]=e.properties;return $N(t)?!t.computed&&(t.key.type==="Identifier"&&t.key.name==="type"||Dp(t.key)&&t.key.value==="type")&&Dp(t.value)&&t.value.value==="module":!1}function yri(e,t,n){return[n("object"),En(Ci([hi,qon(e,t,n)]))]}function qon(e,t,n){return["::",n("callee")]}function bri(e){let{node:t,ancestors:n}=e;for(let i of n){if(!(su(i)&&i.object===t||i.type==="TSNonNullExpression"&&i.expression===t))return i.type==="NewExpression"&&i.callee===t;t=i}return!1}function _ri(e,t,n){let i=n("object"),r=Gon(e,t,n),{node:o}=e,s=e.findAncestor(c=>!(su(c)||c.type==="TSNonNullExpression")),a=e.findAncestor(c=>!(c.type==="ChainExpression"||c.type==="TSNonNullExpression")),l=s.type==="BindExpression"||s.type==="AssignmentExpression"&&s.left.type!=="Identifier"||bri(e)||o.computed||o.object.type==="Identifier"&&o.property.type==="Identifier"&&!su(a)||(a.type==="AssignmentExpression"||a.type==="VariableDeclarator")&&(Van(o.object)||i.label?.memberChain);return VY(i.label,[i,l?r:En(Ci([hi,r]))])}function Gon(e,t,n){let i=n("property"),{node:r}=e,o=Tv(e);return r.computed?!r.property||iE(r.property)?[o,"[",i,"]"]:En([o,"[",Ci([hi,i]),hi,"]"]):[o,".",i]}function Kon(e,t,n){if(e.node.type==="ChainExpression")return e.call(()=>Kon(e,t,n),"expression");let i=(e.parent.type==="ChainExpression"?e.grandparent:e.parent).type==="ExpressionStatement",r=[];function o(j){let{originalText:W}=t,J=fF(W,ta(j));return W.charAt(J)===")"?J!==!1&&Xde(W,J+1):QC(j,t)}function s(){let{node:j}=e;if(j.type==="ChainExpression")return e.call(s,"expression");if(Za(j)&&(zB(j.callee)||Za(j.callee))){let W=o(j);r.unshift({node:j,hasTrailingEmptyLine:W,printed:[W_(e,[Tv(e),n("typeArguments"),ihe(e,t,n)],t),W?ki:""]}),e.call(s,"callee")}else zB(j)?(r.unshift({node:j,needsParens:AT(e,t),printed:W_(e,su(j)?Gon(e,t,n):qon(e,t,n),t)}),e.call(s,"object")):j.type==="TSNonNullExpression"?(r.unshift({node:j,printed:W_(e,"!",t)}),e.call(s,"expression")):r.unshift({node:j,printed:n()})}let{node:a}=e;r.unshift({node:a,printed:[Tv(e),n("typeArguments"),ihe(e,t,n)]}),a.callee&&e.call(s,"callee");let l=[],c=[r[0]],u=1;for(;u<r.length&&(r[u].node.type==="TSNonNullExpression"||Za(r[u].node)||su(r[u].node)&&r[u].node.computed&&iE(r[u].node.property));++u)c.push(r[u]);if(!Za(r[0].node))for(;u+1<r.length&&zB(r[u].node)&&zB(r[u+1].node);++u)c.push(r[u]);l.push(c),c=[];let d=!1;for(;u<r.length;++u){if(d&&zB(r[u].node)){if(r[u].node.computed&&iE(r[u].node.property)){c.push(r[u]);continue}l.push(c),c=[],d=!1}(Za(r[u].node)||r[u].node.type==="ImportExpression")&&(d=!0),c.push(r[u]),cr(r[u].node,Or.Trailing)&&(l.push(c),c=[],d=!1)}c.length>0&&l.push(c);function h(j){return/^[A-Z]|^[$_]+$/u.test(j)}function f(j){return j.length<=t.tabWidth}function p(j){let W=j[1][0]?.node.computed;if(j[0].length===1){let ee=j[0][0].node;return ee.type==="ThisExpression"||ee.type==="Identifier"&&(h(ee.name)||i&&f(ee.name)||W)}let J=gl(0,j[0],-1).node;return su(J)&&J.property.type==="Identifier"&&(h(J.property.name)||W)}let g=l.length>=2&&!cr(l[1][0].node)&&p(l);function m(j){let W=j.map(J=>J.printed);return j.length>0&&gl(0,j,-1).needsParens?["(",...W,")"]:W}function v(j){return j.length===0?"":Ci([ki,Aa(ki,j.map(m))])}let y=l.map(m),b=y,w=g?3:2,E=l.flat(),A=E.slice(1,-1).some(j=>cr(j.node,Or.Leading))||E.slice(0,-1).some(j=>cr(j.node,Or.Trailing))||l[w]&&cr(l[w][0].node,Or.Leading);if(l.length<=w&&!A&&!l.some(j=>gl(0,j,-1).hasTrailingEmptyLine))return gon(e)?b:En(b);let D=gl(0,l[g?1:0],-1).node,T=!Za(D)&&o(D),M=[m(l[0]),g?l.slice(1,2).map(m):"",T?ki:"",v(l.slice(g?2:1))],P=r.map(({node:j})=>j).filter(Za);function F(){let j=gl(0,gl(0,l,-1),-1).node,W=gl(0,y,-1);return Za(j)&&hv(W)&&P.slice(0,-1).some(J=>J.arguments.some(v9))}let N;return A||P.length>2&&P.some(j=>!j.arguments.every(W=>F1(W)))||y.slice(0,-1).some(hv)||F()?N=En(M):N=[hv(b)||T?Mx:"",UO([b,M])],VY({memberChain:!0},N)}function Zde(e,t,n){let{node:i}=e,r=i.type==="NewExpression",o=Tv(e),s=Lb(i),a=i.type!=="TSImportType"&&i.typeArguments?n("typeArguments"):"",l=s.length===1&&fon(s[0],t.originalText);if(l||wri(e)||Cri(e)||vme(i,e.parent)){let d=[];if(Yde(e,()=>{d.push(n())}),!(l&&d[0].label?.embed))return[r?"new ":"",Oxt(e,n),o,a,"(",Aa(", ",d),")"]}let c=i.type==="ImportExpression"||i.type==="TSImportType"||i.type==="TSExternalModuleReference";if(!c&&!r&&zB(i.callee)&&!e.call(()=>AT(e,t),"callee",...i.callee.type==="ChainExpression"?["expression"]:[]))return Han(e,t,n);let u=[r?"new ":"",Oxt(e,n),o,a,ihe(e,t,n)];return c||Za(i.callee)?En(u):u}function Oxt(e,t){let{node:n}=e;return n.type==="ImportExpression"?`import${n.phase?`.${n.phase}`:""}`:n.type==="TSImportType"?"import":n.type==="TSExternalModuleReference"?"require":t("callee")}function wri(e){let{node:t}=e;if(!(t.type==="ImportExpression"||t.type==="TSImportType"||t.type==="TSExternalModuleReference"||t.type==="CallExpression"&&!t.optional&&Eme(t.callee,Wan)))return!1;let n=Lb(t);return n.length===1&&Dp(n[0])&&!cr(n[0])}function Cri(e){let{node:t}=e;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let n=Lb(t);return t.callee.name==="require"?(n.length===1&&Dp(n[0])||n.length>1)&&!cr(n[0]):t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?n.length===1||n.length===2&&n[0].type==="ArrayExpression"||n.length===3&&Dp(n[0])&&n[1].type==="ArrayExpression":!1}function HY(e,t,n,i,r,o){let s=Eri(e,t,n,i,o),a=o?n(o,{assignmentLayout:s}):"";switch(s){case"break-after-operator":return En([En(i),r,En(Ci([hr,a]))]);case"never-break-after-operator":return En([En(i),r," ",a]);case"fluid":{let l=Symbol("assignment");return En([En(i),r,En(Ci(hr),{id:l}),TC,wG(a,{groupId:l})])}case"break-lhs":return En([i,r," ",En(a)]);case"chain":return[En(i),r,hr,a];case"chain-tail":return[En(i),r,Ci([hr,a])];case"chain-tail-arrow-chain":return[En(i),r,a];case"only-left":return i}}function Sri(e,t,n){let{node:i}=e;return HY(e,t,n,n("left"),[" ",i.operator],"right")}function xri(e,t,n){return HY(e,t,n,n("id")," =","init")}function Eri(e,t,n,i,r){let{node:o}=e,s=o[r];if(!s)return"only-left";let a=!$le(s);if(e.match($le,Yon,u=>!a||u.type!=="ExpressionStatement"&&u.type!=="VariableDeclaration"))return a?s.type==="ArrowFunctionExpression"&&s.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!a&&$le(s.right)||cC(t.originalText,s))return"break-after-operator";if(o.type==="ImportAttribute"||s.type==="CallExpression"&&s.callee.name==="require"||t.parser==="json5"||t.parser==="jsonc"||t.parser==="json")return"never-break-after-operator";let l=oii(i);if(Dri(o)||Iri(o)||Qon(o)&&l)return"break-lhs";let c=Lri(o,i,t);return e.call(()=>Ari(e,t,n,c),r)?"break-after-operator":Tri(o)?"break-lhs":!l&&(c||s.type==="TemplateLiteral"||s.type==="TaggedTemplateExpression"||uni(s)||iE(s)||s.type==="ClassExpression")?"never-break-after-operator":"fluid"}function Ari(e,t,n,i){let r=e.node;if(rE(r)&&!CG(r))return!0;switch(r.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!Mri(r))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:c}=r;return rE(c)&&!CG(c)}let{consequent:a,alternate:l}=r;return a.type==="ConditionalExpression"||l.type==="ConditionalExpression"}case"ClassExpression":return au(r.decorators)}if(i)return!1;let o=r,s=[];for(;;)if(o.type==="UnaryExpression"||o.type==="AwaitExpression"||o.type==="YieldExpression"&&o.argument!==null)o=o.argument,s.push("argument");else if(o.type==="TSNonNullExpression")o=o.expression,s.push("expression");else break;return!!(Dp(o)||e.call(()=>Zon(e,t,n),...s))}function Dri(e){if(Yon(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(n=>$N(n)&&(!n.shorthand||n.value?.type==="AssignmentPattern"))}return!1}function $le(e){return e.type==="AssignmentExpression"}function Yon(e){return $le(e)||e.type==="VariableDeclarator"}function Tri(e){let t=kri(e);if(au(t)){let n=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(i=>i[n]||i.default))return!0}return!1}function kri(e){if(ehe(e))return e.typeParameters?.params}function Iri(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let n=Rxt(t.typeAnnotation);return au(n)&&n.length>1&&n.some(i=>au(Rxt(i))||i.type==="TSConditionalType")}function Qon(e){return e.type==="VariableDeclarator"&&e.init?.type==="ArrowFunctionExpression"}function Rxt(e){let t;switch(e.type){case"GenericTypeAnnotation":t=e.typeParameters;break;case"TSTypeReference":t=e.typeArguments;break}return t?.params}function Zon(e,t,n,i=!1){let{node:r}=e,o=()=>Zon(e,t,n,!0);if(r.type==="ChainExpression"||r.type==="TSNonNullExpression")return e.call(o,"expression");if(Za(r)){if(Zde(e,t,n).label?.memberChain)return!1;let s=Lb(r);return!(s.length===0||s.length===1&&fqe(s[0],t))||Nri(r,n)?!1:e.call(o,"callee")}return su(r)?e.call(o,"object"):i&&(r.type==="Identifier"||r.type==="ThisExpression")}function Lri(e,t,n){return $N(e)?(t=wqe(t),typeof t=="string"&&c2(t)<n.tabWidth+3):!1}function Nri(e,t){let n=Pri(e);if(au(n)){if(n.length>1)return!0;if(n.length===1){let r=n[0];if(AC(r)||J7(r)||r.type==="TSTypeLiteral"||r.type==="ObjectTypeAnnotation")return!0}let i=e.typeParameters?"typeParameters":"typeArguments";if(hv(t(i)))return!0}return!1}function Pri(e){return(e.typeParameters??e.typeArguments)?.params}function Fxt(e){switch(e.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!e.typeParameters;case"TSTypeReference":return!!e.typeArguments;default:return!1}}function Mri(e){return Fxt(e.checkType)||Fxt(e.extendsType)}function Xon(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function Bxt(e,t){return t.parser==="json"||t.parser==="jsonc"||!Dp(e.key)||h2(Iv(e.key),t).slice(1,-1)!==e.key.value?!1:!!(Ran(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||(t.parser==="typescript"||t.parser==="oxc-ts")&&e.type==="PropertyDefinition")||Xon(e.key.value)&&String(Number(e.key.value))===e.key.value&&e.type!=="ImportAttribute"&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="oxc"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function Ori(e,t){let{key:n}=e.node;return(n.type==="Identifier"||iE(n)&&Xon(f2(Iv(n)))&&String(n.value)===f2(Iv(n))&&!(t.parser==="typescript"||t.parser==="babel-ts"||t.parser==="oxc-ts"))&&(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&H$.get(e.parent))}function WY(e,t,n){let{node:i}=e;if(i.computed)return["[",n("key"),"]"];let{parent:r}=e,{key:o}=i;if(t.quoteProps==="consistent"&&!H$.has(r)){let s=e.siblings.some(a=>!a.computed&&Dp(a.key)&&!Bxt(a,t));H$.set(r,s)}if(Ori(e,t)){let s=h2(JSON.stringify(o.type==="Identifier"?o.name:o.value.toString()),t);return e.call(()=>W_(e,s,t),"key")}return Bxt(i,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!H$.get(r))?e.call(()=>W_(e,/^\d/u.test(o.value)?f2(o.value):o.value,t),"key"):n("key")}function HDe(e,t,n){let{node:i}=e;return i.shorthand?n("value"):HY(e,t,n,WY(e,t,n),":","value")}function Jon(e,t,n,i){if(Uan(e))return Eqe(e,t,n);let{node:r}=e,o=!1;if((r.type==="FunctionDeclaration"||r.type==="FunctionExpression")&&i?.expandLastArg){let{parent:u}=e;Za(u)&&(Lb(u).length>1||gm(r).every(d=>d.type==="Identifier"&&!d.typeAnnotation))&&(o=!0)}let s=[cb(e),r.async?"async ":"",`function${r.generator?"*":""} `,r.id?n("id"):""],a=hF(e,t,n,o),l=Cme(e,n),c=X7(r,l);return s.push(n("typeParameters"),En([c?En(a):a,l]),r.body?" ":"",n("body")),t.semi&&(r.declare||!r.body)&&s.push(";"),s}function Q8e(e,t,n){let{node:i}=e,{kind:r}=i,o=i.value||i,s=[];return!r||r==="init"||r==="method"||r==="constructor"?o.async&&s.push("async "):(LI(r==="get"||r==="set"),s.push(r," ")),o.generator&&s.push("*"),s.push(WY(e,t,n),i.optional?"?":"",i===o?Eqe(e,t,n):n("value")),s}function Eqe(e,t,n){let{node:i}=e,r=hF(e,t,n),o=Cme(e,n),s=rri(i),a=X7(i,o),l=[n("typeParameters"),En([s?En(r,{shouldBreak:!0}):a?En(r):r,o])];return i.body?l.push(" ",n("body")):l.push(t.semi?";":""),l}function Rri(e){let t=gm(e);return t.length===1&&!e.typeParameters&&!cr(e,Or.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!cr(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function esn(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:n}=e;return Rri(n)}return!1}function Cme(e,t){let{node:n}=e,i=[pg(e,t,"returnType")];return n.predicate&&i.push(t("predicate")),i}function tsn(e,t,n){let{node:i}=e,r=[];if(i.argument){let a=n("argument");jri(t,i.argument)?a=["(",Ci([ki,a]),ki,")"]:(rE(i.argument)||t.experimentalTernaries&&i.argument.type==="ConditionalExpression"&&(i.argument.consequent.type==="ConditionalExpression"||i.argument.alternate.type==="ConditionalExpression"))&&(a=En([os("("),Ci([hi,a]),hi,os(")")])),r.push(" ",a)}let o=cr(i,Or.Dangling),s=t.semi&&o&&cr(i,Or.Last|Or.Line);return s&&r.push(";"),o&&r.push(" ",_u(e,t)),!s&&t.semi&&r.push(";"),r}function Fri(e,t,n){return["return",tsn(e,t,n)]}function Bri(e,t,n){return["throw",tsn(e,t,n)]}function jri(e,t){if(cC(e.originalText,t)||cr(t,Or.Leading,n=>H0(e.originalText,ca(n),ta(n)))&&!Uf(t))return!0;if(dqe(t)){let n=t,i;for(;i=lni(n);)if(n=i,cC(e.originalText,n))return!0}return!1}function zri(e,t){if(t.semi||isn(e,t)||osn(e,t)||rsn(e,t))return!1;let{node:n,key:i,parent:r}=e;return!!(n.type==="ExpressionStatement"&&(i==="body"&&(r.type==="Program"||r.type==="BlockStatement"||r.type==="StaticBlock"||r.type==="TSModuleBlock")||i==="consequent"&&r.type==="SwitchCase")&&e.call(()=>nsn(e,t),"expression"))}function nsn(e,t){let{node:n}=e;switch(n.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!esn(e,t))return!0;break;case"UnaryExpression":{let{prefix:i,operator:r}=n;if(i&&(r==="+"||r==="-"))return!0;break}case"BindExpression":if(!n.object)return!0;break;case"Literal":if(n.regex)return!0;break;default:if(Uf(n))return!0}return AT(e,t)?!0:dqe(n)?e.call(()=>nsn(e,t),...lon(n)):!1}function isn(e,t){return(t.parentParser==="markdown"||t.parentParser==="mdx")&&Ime(e)&&Uf(e.node.expression)}function rsn(e,t){return t.__isHtmlInlineEventHandler&&Ime(e)}function osn(e,t){return(t.parser==="__vue_event_binding"||t.parser==="__vue_ts_event_binding")&&Ime(e)}function Vri(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Hri(e,t,n){let{node:i}=e;if(i.type==="JSXElement"&&ioi(i))return[n("openingElement"),n("closingElement")];let r=i.type==="JSXElement"?n("openingElement"):n("openingFragment"),o=i.type==="JSXElement"?n("closingElement"):n("closingFragment");if(i.children.length===1&&i.children[0].type==="JSXExpressionContainer"&&(i.children[0].expression.type==="TemplateLiteral"||i.children[0].expression.type==="TaggedTemplateExpression"))return[r,...e.map(n,"children"),o];i.children=i.children.map(b=>roi(b)?{type:"JSXText",value:" ",raw:" "}:b);let s=i.children.some(Uf),a=i.children.filter(b=>b.type==="JSXExpressionContainer").length>1,l=i.type==="JSXElement"&&i.openingElement.attributes.length>1,c=hv(r)||s||l||a,u=e.parent.rootMarker==="mdx",d=t.singleQuote?"{' '}":'{" "}',h=u?hr:os([d,hi]," "),f=i.openingElement?.name?.name==="fbt",p=Wri(e,t,n,h,f),g=i.children.some(b=>SG(b));for(let b=p.length-2;b>=0;b--){let w=p[b]===""&&p[b+1]==="",E=p[b]===ki&&p[b+1]===""&&p[b+2]===ki,A=(p[b]===hi||p[b]===ki)&&p[b+1]===""&&p[b+2]===h,D=p[b]===h&&p[b+1]===""&&(p[b+2]===hi||p[b+2]===ki),T=p[b]===h&&p[b+1]===""&&p[b+2]===h,M=p[b]===hi&&p[b+1]===""&&p[b+2]===ki||p[b]===ki&&p[b+1]===""&&p[b+2]===hi;E&&g||w||A||T||M?p.splice(b,2):D&&p.splice(b+1,2)}for(;p.length>0&&Zle(gl(0,p,-1));)p.pop();for(;p.length>1&&Zle(p[0])&&Zle(p[1]);)p.shift(),p.shift();let m=[""];for(let[b,w]of p.entries()){if(w===h){if(b===1&&sii(p[b-1])){if(p.length===2){m.push([m.pop(),d]);continue}m.push([d,ki],"");continue}else if(b===p.length-1){m.push([m.pop(),d]);continue}else if(p[b-1]===""&&p[b-2]===ki){m.push([m.pop(),d]);continue}}b%2===0?m.push([m.pop(),w]):m.push(w,""),hv(w)&&(c=!0)}let v=g?Ton(m):En(m,{shouldBreak:!0});if(t.cursorNode?.type==="JSXText"&&i.children.includes(t.cursorNode)?v=[jW,v,jW]:t.nodeBeforeCursor?.type==="JSXText"&&i.children.includes(t.nodeBeforeCursor)?v=[jW,v]:t.nodeAfterCursor?.type==="JSXText"&&i.children.includes(t.nodeAfterCursor)&&(v=[v,jW]),u)return v;let y=En([r,Ci([ki,v]),ki,o]);return c?y:UO([En([r,...p,o]),y])}function Wri(e,t,n,i,r){let o="",s=[o];function a(c){o=c,s.push([s.pop(),c])}function l(c){c!==""&&(o=c,s.push(c,""))}return e.each(({node:c,next:u})=>{if(c.type==="JSXText"){let d=Iv(c);if(SG(c)){let h=W$.split(d,!0);h[0]===""&&(h.shift(),/\n/u.test(h[0])?l(zxt(r,h[1],c,u)):l(i),h.shift());let f;if(gl(0,h,-1)===""&&(h.pop(),f=h.pop()),h.length===0)return;for(let[p,g]of h.entries())p%2===1?l(hr):a(g);f!==void 0?/\n/u.test(f)?l(zxt(r,o,c,u)):l(i):l(jxt(r,o,c,u))}else/\n/u.test(d)?d.match(/\n/gu).length>1&&l(ki):l(i)}else{let d=n();if(a(d),u&&SG(u)){let h=W$.trim(Iv(u)),[f]=W$.split(h);l(jxt(r,f,c,u))}else l(ki)}},"children"),s}function jxt(e,t,n,i){return e?"":n.type==="JSXElement"&&!n.closingElement||i?.type==="JSXElement"&&!i.closingElement?t.length===1?hi:ki:hi}function zxt(e,t,n,i){return e?ki:t.length===1?n.type==="JSXElement"&&!n.closingElement||i?.type==="JSXElement"&&!i.closingElement?ki:hi:ki}function Uri(e,t,n){let{parent:i}=e;if($an(i))return t;let r=$ri(e),o=AT(e,n);return En([o?"":os("("),Ci([hi,t]),hi,o?"":os(")")],{shouldBreak:r})}function $ri(e){return e.match(void 0,(t,n)=>n==="body"&&t.type==="ArrowFunctionExpression",(t,n)=>n==="arguments"&&Za(t))&&(e.match(void 0,void 0,void 0,(t,n)=>n==="expression"&&t.type==="JSXExpressionContainer")||e.match(void 0,void 0,void 0,(t,n)=>n==="expression"&&t.type==="ChainExpression",(t,n)=>n==="expression"&&t.type==="JSXExpressionContainer"))}function qri(e,t,n){let{node:i}=e,r=[n("name")];if(i.value){let o;if(Dp(i.value)){let s=Iv(i.value),a=Vf(0,Vf(0,s.slice(1,-1),"&apos;","'"),"&quot;",'"'),l=Nqe(a,t.jsxSingleQuote);a=l==='"'?Vf(0,a,'"',"&quot;"):Vf(0,a,"'","&apos;"),o=e.call(()=>W_(e,l2(l+a+l),t),"value")}else o=n("value");r.push("=",o)}return r}function Gri(e,t,n){let{node:i}=e,r=(o,s)=>o.type==="JSXEmptyExpression"||!cr(o)&&(Tp(o)||iw(o)||o.type==="ArrowFunctionExpression"||o.type==="AwaitExpression"&&(r(o.argument,o)||o.argument.type==="JSXElement")||Za(o)||o.type==="ChainExpression"&&Za(o.expression)||o.type==="FunctionExpression"||o.type==="TemplateLiteral"||o.type==="TaggedTemplateExpression"||o.type==="DoExpression"||Uf(s)&&(o.type==="ConditionalExpression"||rE(o)));return r(i.expression,e.parent)?En(["{",n("expression"),TC,"}"]):En(["{",Ci([hi,n("expression")]),hi,TC,"}"])}function Kri(e,t,n){let{node:i}=e,r=cr(i.name)||cr(i.typeArguments);if(i.selfClosing&&i.attributes.length===0&&!r)return["<",n("name"),n("typeArguments")," />"];if(i.attributes?.length===1&&Dp(i.attributes[0].value)&&!i.attributes[0].value.value.includes(`
`)&&!r&&!cr(i.attributes[0]))return En(["<",n("name"),n("typeArguments")," ",...e.map(n,"attributes"),i.selfClosing?" />":">"]);let o=i.attributes?.some(a=>Dp(a.value)&&a.value.value.includes(`
`)),s=t.singleAttributePerLine&&i.attributes.length>1?ki:hr;return En(["<",n("name"),n("typeArguments"),Ci(e.map(()=>[s,n()],"attributes")),...Yri(i,t,r)],{shouldBreak:o})}function Yri(e,t,n){return e.selfClosing?[hr,"/>"]:Qri(e,t,n)?[">"]:[hi,">"]}function Qri(e,t,n){let i=e.attributes.length>0&&cr(gl(0,e.attributes,-1),Or.Trailing);return e.attributes.length===0&&!n||(t.bracketSameLine||t.jsxBracketSameLine)&&(!n||e.attributes.length>0)&&!i}function Zri(e,t,n){let{node:i}=e,r=["</"],o=n("name");return cr(i.name,Or.Leading|Or.Line)?r.push(Ci([ki,o]),ki):cr(i.name,Or.Leading|Or.Block)?r.push(" ",o):r.push(o),r.push(">"),r}function Xri(e,t){let{node:n}=e,i=cr(n),r=cr(n,Or.Line),o=n.type==="JSXOpeningFragment";return[o?"<":"</",Ci([r?ki:i&&!o?" ":"",_u(e,t)]),r?ki:"",">"]}function Jri(e,t,n){let i=W_(e,Hri(e,t,n),t);return Uri(e,i,t)}function eoi(e,t){let{node:n}=e,i=cr(n,Or.Line);return[_u(e,t,{indent:i}),i?ki:""]}function toi(e,t,n){let{node:i}=e;return["{",e.call(({node:r})=>{let o=["...",n()];return cr(r)?[Ci([hi,W_(e,o,t)]),hi]:o},i.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function noi(e,t,n){let{node:i}=e;if(i.type.startsWith("JSX"))switch(i.type){case"JSXAttribute":return qri(e,t,n);case"JSXIdentifier":return i.name;case"JSXNamespacedName":return Aa(":",[n("namespace"),n("name")]);case"JSXMemberExpression":return Aa(".",[n("object"),n("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return toi(e,t,n);case"JSXExpressionContainer":return Gri(e,t,n);case"JSXFragment":case"JSXElement":return Jri(e,t,n);case"JSXOpeningElement":return Kri(e,t,n);case"JSXClosingElement":return Zri(e,t,n);case"JSXOpeningFragment":case"JSXClosingFragment":return Xri(e,t);case"JSXEmptyExpression":return eoi(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new pF(i,"JSX")}}function ioi(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!SG(t)}function SG(e){return e.type==="JSXText"&&(W$.hasNonWhitespaceCharacter(Iv(e))||!/\n/u.test(Iv(e)))}function roi(e){return e.type==="JSXExpressionContainer"&&Dp(e.expression)&&e.expression.value===" "&&!cr(e.expression)}function ooi(e){let{node:t,parent:n}=e;if(!Uf(t)||!Uf(n))return!1;let{index:i,siblings:r}=e,o;for(let s=i;s>0;s--){let a=r[s-1];if(!(a.type==="JSXText"&&!SG(a))){o=a;break}}return o?.type==="JSXExpressionContainer"&&o.expression.type==="JSXEmptyExpression"&&yme(o.expression)}function soi(e){return yme(e.node)||ooi(e)}function aoi(e,t,n){let{node:i}=e;if(i.type.startsWith("NG"))switch(i.type){case"NGRoot":return n("node");case"NGPipeExpression":return jon(e,t,n);case"NGChainedExpression":return En(Aa([";",hr],e.map(()=>coi(e)?n():["(",n(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":Vxt(e)?" ":[";",hr],n()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(i.name)?i.name:JSON.stringify(i.name);case"NGMicrosyntaxExpression":return[n("expression"),i.alias===null?"":[" as ",n("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:r,parent:o}=e,s=Vxt(e)||loi(e)||(r===1&&(i.key.name==="then"||i.key.name==="else"||i.key.name==="as")||r===2&&(i.key.name==="else"&&o.body[r-1].type==="NGMicrosyntaxKeyedExpression"&&o.body[r-1].key.name==="then"||i.key.name==="track"))&&o.body[0].type==="NGMicrosyntaxExpression";return[n("key"),s?" ":": ",n("expression")]}case"NGMicrosyntaxLet":return["let ",n("key"),i.value===null?"":[" = ",n("value")]];case"NGMicrosyntaxAs":return[n("key")," as ",n("alias")];default:throw new pF(i,"Angular")}}function Vxt({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}function loi(e){let{node:t}=e;return e.parent.body[1].key.name==="of"&&t.type==="NGMicrosyntaxKeyedExpression"&&t.key.name==="track"&&t.key.type==="NGMicrosyntaxKey"}function coi({node:e}){return U8e(e,qan)}function ssn(e,t,n){let{node:i}=e;return En([Aa(hr,e.map(n,"decorators")),asn(i,t)?ki:hr])}function uoi(e,t,n){return lsn(e.node)?[Aa(ki,e.map(n,"declaration","decorators")),ki]:""}function doi(e,t,n){let{node:i,parent:r}=e,{decorators:o}=i;if(!au(o)||lsn(r)||rhe(e))return"";let s=i.type==="ClassExpression"||i.type==="ClassDeclaration"||asn(i,t);return[e.key==="declaration"&&Ksn(r)?ki:s?Mx:"",Aa(hr,e.map(n,"decorators")),hr]}function asn(e,t){return e.decorators.some(n=>kv(t.originalText,ta(n)))}function lsn(e){if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=e.declaration?.decorators;return au(t)&&mme(e,t[0])}function csn(e){return Xle.has(e)||Xle.set(e,e.type==="ConditionalExpression"&&!Km(e,t=>t.type==="ObjectExpression")),Xle.get(e)}function hoi(e,t,n,i={}){let r=[],o,s=[],a=!1,l=!i.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",c;(function v(){let{node:y}=e,b=foi(e,t,n,i);if(r.length===0)r.push(b);else{let{leading:w,trailing:E}=bme(e,t);r.push([w,b]),s.unshift(E)}l&&(a||(a=y.returnType&&gm(y).length>0||y.typeParameters||gm(y).some(w=>w.type!=="Identifier"))),!l||y.body.type!=="ArrowFunctionExpression"?(o=n("body",i),c=y.body):e.call(v,"body")})();let u=!cC(t.originalText,c)&&(Gan(c)||poi(c,o,t)||!a&&csn(c)),d=e.key==="callee"&&m9(e.parent),h=Symbol("arrow-chain"),f=goi(e,i,{signatureDocs:r,shouldBreak:a}),p=!1,g=!1,m=!1;return l&&(d||i.assignmentLayout)&&(g=!0,m=!cr(e.node,Or.Leading&Or.Line),p=i.assignmentLayout==="chain-tail-arrow-chain"||d&&!u),o=moi(e,t,i,{bodyDoc:o,bodyComments:s,functionBody:c,shouldPutBodyOnSameLine:u}),En([En(g?Ci([m?hi:"",f]):f,{shouldBreak:p,id:h})," =>",l?wG(o,{groupId:h}):En(o),l&&d?os(hi,"",{groupId:h}):""])}function foi(e,t,n,i){let{node:r}=e,o=[];if(r.async&&o.push("async "),esn(e,t))o.push(n(["params",0]));else{let a=i.expandLastArg||i.expandFirstArg,l=Cme(e,n);if(a){if(hv(l))throw new xG;l=En(Qde(l))}o.push(En([hF(e,t,n,a,!0),l]))}let s=_u(e,t,{filter(a){let l=fF(t.originalText,ta(a));return l!==!1&&t.originalText.slice(l,l+2)==="=>"}});return s&&o.push(" ",s),o}function poi(e,t,n){return Tp(e)||iw(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||Uf(e)||t.label?.hug!==!1&&(t.label?.embed||fon(e,n.originalText))}function goi(e,t,{signatureDocs:n,shouldBreak:i}){if(n.length===1)return n[0];let{parent:r,key:o}=e;return o!=="callee"&&m9(r)||rE(r)?En([n[0]," =>",Ci([hr,Aa([" =>",hr],n.slice(1))])],{shouldBreak:i}):o==="callee"&&m9(r)||t.assignmentLayout?En(Aa([" =>",hr],n),{shouldBreak:i}):En(Ci(Aa([" =>",hr],n)),{shouldBreak:i})}function moi(e,t,n,{bodyDoc:i,bodyComments:r,functionBody:o,shouldPutBodyOnSameLine:s}){let{node:a,parent:l}=e,c=n.expandLastArg&&xE(t,"all")?os(","):"",u=(n.expandLastArg||l.type==="JSXExpressionContainer")&&!cr(a)?hi:"";return s&&csn(o)?[" ",En([os("","("),Ci([hi,i]),os("",")"),c,u]),r]:s?[" ",i,r]:[Ci([hr,i,r]),c,u]}function Z8e(e,t,n,i){let{node:r}=e,o=[],s=Kan(0,r[i],a=>a.type!=="EmptyStatement");return e.each(({node:a})=>{a.type!=="EmptyStatement"&&(o.push(n()),a!==s&&(o.push(ki),QC(a,t)&&o.push(ki)))},i),o}function usn(e,t,n){let i=voi(e,t,n),{node:r,parent:o}=e;if(r.type==="Program"&&o?.type!=="ModuleExpression")return i?[i,ki]:"";let s=[];if(r.type==="StaticBlock"&&s.push("static "),s.push("{"),i)s.push(Ci([ki,i]),ki);else{let a=e.grandparent;o.type==="ArrowFunctionExpression"||o.type==="FunctionExpression"||o.type==="FunctionDeclaration"||o.type==="ComponentDeclaration"||o.type==="HookDeclaration"||o.type==="ObjectMethod"||o.type==="ClassMethod"||o.type==="ClassPrivateMethod"||o.type==="ForStatement"||o.type==="WhileStatement"||o.type==="DoWhileStatement"||o.type==="DoExpression"||o.type==="ModuleExpression"||o.type==="CatchClause"&&!a.finalizer||o.type==="TSModuleDeclaration"||o.type==="MatchStatementCase"||r.type==="StaticBlock"||s.push(ki)}return s.push("}"),s}function voi(e,t,n){let{node:i}=e,r=au(i.directives),o=i.body.some(l=>l.type!=="EmptyStatement"),s=cr(i,Or.Dangling);if(!r&&!o&&!s)return"";let a=[];return r&&(a.push(Z8e(e,t,n,"directives")),(o||s)&&(a.push(ki),QC(gl(0,i.directives,-1),t)&&a.push(ki))),o&&a.push(Z8e(e,t,n,"body")),s&&a.push(_u(e,t)),a}function yoi(e){let t=new WeakMap;return function(n){return t.has(n)||t.set(n,Symbol(e)),t.get(n)}}function Aqe(e,t,n){let{node:i}=e,r=[],o=i.type==="ObjectTypeAnnotation",s=!dsn(e),a=s?hr:ki,l=cr(i,Or.Dangling),[c,u]=o&&i.exact?["{|","|}"]:"{}",d;if(boi(e,({node:h,next:f,isLast:p})=>{if(d??(d=h),r.push(n()),s&&o){let{parent:g}=e;g.inexact||!p?r.push(","):xE(t)&&r.push(os(","))}!s&&(_oi({node:h,next:f},t)||hsn({node:h,next:f},t))&&r.push(";"),p||(r.push(a),QC(h,t)&&r.push(ki))}),l&&r.push(_u(e,t)),i.type==="ObjectTypeAnnotation"&&i.inexact){let h;cr(i,Or.Dangling)?h=[cr(i,Or.Line)||kv(t.originalText,ta(gl(0,SR(i),-1)))?ki:hr,"..."]:h=[d?hr:"","..."],r.push(h)}if(s){let h=l||t.objectWrap==="preserve"&&d&&H0(t.originalText,ca(i),ca(d)),f;if(r.length===0)f=c+u;else{let p=t.bracketSpacing?hr:hi;f=[c,Ci([p,...r]),p,u]}return e.match(void 0,(p,g)=>g==="typeAnnotation",(p,g)=>g==="typeAnnotation",j$)||e.match(void 0,(p,g)=>p.type==="FunctionTypeParam"&&g==="typeAnnotation",j$)?f:En(f,{shouldBreak:h})}return[c,r.length>0?[Ci([ki,r]),ki]:"",u]}function dsn(e){let{node:t}=e;if(t.type==="ObjectTypeAnnotation"){let{key:n,parent:i}=e;return n==="body"&&(i.type==="InterfaceDeclaration"||i.type==="DeclareInterface"||i.type==="DeclareClass")}return t.type==="ClassBody"||t.type==="TSInterfaceBody"}function boi(e,t){let{node:n}=e;if(n.type==="ClassBody"||n.type==="TSInterfaceBody"){e.each(t,"body");return}if(n.type==="TSTypeLiteral"){e.each(t,"members");return}if(n.type==="ObjectTypeAnnotation"){let i=["properties","indexers","callProperties","internalSlots"].flatMap(r=>e.map(({node:o,index:s})=>({node:o,loc:ca(o),selector:[r,s]}),r)).sort((r,o)=>r.loc-o.loc);for(let[r,{node:o,selector:s}]of i.entries())e.call(()=>t({node:o,next:i[r+1]?.node,isLast:r===i.length-1}),...s)}}function fD(e,t){let{parent:n}=e;return e.callParent(dsn)?t.semi||n.type==="ObjectTypeAnnotation"?";":"":n.type==="TSTypeLiteral"?e.isLast?t.semi?os(";"):"":t.semi||hsn({node:e.node,next:e.next},t)?";":os("",";"):""}function _oi({node:e,next:t},n){if(n.semi||!u9e(e))return!1;if(!e.value&&qqe(e))return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let i=t.key?.name;if(i==="in"||i==="instanceof")return!0}if(u9e(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let i=t.value?t.value.generator:t.generator;return!!(t.computed||i)}case"TSIndexSignature":return!0}return!1}function hsn({node:e,next:t},n){return n.semi||!Yan(e)?!1:qqe(e)?!0:t?t.type==="TSCallSignatureDeclaration":!1}function Dqe(e,t,n){let{node:i}=e,r=Zan(i),o=[cb(e),_me(e),r?"interface":"class"],s=psn(e),a=[],l=[];if(i.type!=="InterfaceTypeAnnotation"){i.id&&a.push(" ");for(let u of["id","typeParameters"])if(i[u]){let{leading:d,trailing:h}=e.call(()=>bme(e,t),u);a.push(d,n(u),Ci(h))}}if(i.superClass){let u=[Soi(e,t,n),n(i.superTypeArguments?"superTypeArguments":"superTypeParameters")],d=e.call(()=>["extends ",W_(e,u,t)],"superClass");s?l.push(hr,En(d)):l.push(" ",d)}else l.push(WDe(e,t,n,"extends"));l.push(WDe(e,t,n,"mixins"),WDe(e,t,n,"implements"));let c;return s?(c=Qan(i),o.push(En([...a,Ci(l)],{id:c}))):o.push(...a,...l),!r&&s&&woi(i.body)?o.push(os(ki," ",{groupId:c})):o.push(" "),o.push(n("body")),o}function woi(e){return e.type==="ObjectTypeAnnotation"?["properties","indexers","callProperties","internalSlots"].some(t=>au(e[t])):au(e.body)}function fsn(e){let t=e.superClass?1:0;for(let n of["extends","mixins","implements"])if(Array.isArray(e[n])&&(t+=e[n].length),t>1)return!0;return t>1}function Coi(e){let{node:t}=e;if(cr(t.id,Or.Trailing)||cr(t.typeParameters,Or.Trailing)||cr(t.superClass)||fsn(t))return!0;if(t.superClass)return e.parent.type==="AssignmentExpression"?!1:!(t.superTypeArguments??t.superTypeParameters)&&su(t.superClass);let n=t.extends?.[0]??t.mixins?.[0]??t.implements?.[0];return n?n.type==="InterfaceExtends"&&n.id.type==="QualifiedTypeIdentifier"&&!n.typeParameters||(n.type==="TSClassImplements"||n.type==="TSInterfaceHeritage")&&su(n.expression)&&!n.typeArguments:!1}function psn(e){let{node:t}=e;return Jle.has(t)||Jle.set(t,Coi(e)),Jle.get(t)}function WDe(e,t,n,i){let{node:r}=e;if(!au(r[i]))return"";let o=_u(e,t,{marker:i}),s=Aa([",",hr],e.map(n,i));if(!fsn(r)){let a=[`${i} `,o,s];return psn(e)?[hr,En(a)]:[" ",a]}return[hr,o,o&&ki,i,En(Ci([hr,s]))]}function Soi(e,t,n){let i=n("superClass"),{parent:r}=e;return r.type==="AssignmentExpression"?En(os(["(",Ci([hi,i]),hi,")"],i)):i}function gsn(e,t,n){let{node:i}=e,r=[];return au(i.decorators)&&r.push(ssn(e,t,n)),r.push(wme(i)),i.static&&r.push("static "),r.push(_me(e)),i.override&&r.push("override "),r.push(Q8e(e,t,n)),r}function msn(e,t,n){let{node:i}=e,r=[];au(i.decorators)&&r.push(ssn(e,t,n)),r.push(cb(e),wme(i)),i.static&&r.push("static "),r.push(_me(e)),i.override&&r.push("override "),i.readonly&&r.push("readonly "),i.variance&&r.push(n("variance")),(i.type==="ClassAccessorProperty"||i.type==="AccessorProperty"||i.type==="TSAbstractAccessorProperty")&&r.push("accessor "),r.push(WY(e,t,n),Tv(e),Bon(e),pg(e,n));let o=i.type==="TSAbstractPropertyDefinition"||i.type==="TSAbstractAccessorProperty";return[HY(e,t,n,r," =",o?void 0:"value"),t.semi?";":""]}function vsn(e){return Xan(e)?vsn(e.expression):e}function xoi(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function Eoi(e,t){if(osn(e,t)){let n=vsn(e.node.expression);return Jan(n)||xoi(n)}return!(!t.semi||isn(e,t)||rsn(e,t))}function Aoi(e,t,n){return[n("expression"),Eoi(e,t)?";":""]}function Doi(e,t,n){if(t.__isVueBindings||t.__isVueForBindingLeft){let i=e.map(n,"program","body",0,"params");if(i.length===1)return i[0];let r=Aa([",",hr],i);return t.__isVueForBindingLeft?["(",Ci([hi,En(r)]),hi,")"]:r}if(t.__isEmbeddedTypescriptGenericParameters){let i=e.map(n,"program","body",0,"typeParameters","params");return Aa([",",hr],i)}}function Toi(e,t){let{node:n}=e;switch(n.type){case"RegExpLiteral":return Hxt(n);case"BigIntLiteral":return X8e(n.extra.raw);case"NumericLiteral":return f2(n.extra.raw);case"StringLiteral":return l2(h2(n.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(n.value);case"DirectiveLiteral":return Wxt(n.extra.raw,t);case"Literal":{if(n.regex)return Hxt(n.regex);if(n.bigint)return X8e(n.raw);let{value:i}=n;return typeof i=="number"?f2(n.raw):typeof i=="string"?koi(e)?Wxt(n.raw,t):l2(h2(n.raw,t)):String(i)}}}function koi(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&typeof t.directive=="string"}function X8e(e){return e.toLowerCase()}function Hxt({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}function Wxt(e,t){let n=e.slice(1,-1);if(n===eln||!(n.includes('"')||n.includes("'"))){let i=t.singleQuote?"'":'"';return i+n+i}return e}function Ioi(e,t,n){let i=e.originalText.slice(t,n);for(let r of e[Symbol.for("comments")]){let o=ca(r);if(o>n)break;let s=ta(r);if(s<t)continue;let a=o-t,l=s-t;i=i.slice(0,a)+Vf(0,i.slice(a,l),/[^\n]/gu," ")+i.slice(l)}return i}function Tqe(e,t,n){let{node:i,parent:r}=e,o=tln(i),s=i.type==="TSEnumBody"||o,a=Gqe(i),l=o&&i.hasUnknownMembers,c=s?"members":a?"attributes":"properties",u=i[c],d=s||i.type==="ObjectPattern"&&r.type!=="FunctionDeclaration"&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ObjectMethod"&&r.type!=="ClassMethod"&&r.type!=="ClassPrivateMethod"&&r.type!=="AssignmentPattern"&&r.type!=="CatchClause"&&i.properties.some(m=>m.value&&(m.value.type==="ObjectPattern"||m.value.type==="ArrayPattern"))||i.type!=="ObjectPattern"&&t.objectWrap==="preserve"&&u.length>0&&Loi(i,u[0],t),h=[],f=e.map(({node:m})=>{let v=[...h,En(n())];return h=[",",hr],QC(m,t)&&h.push(ki),v},c);if(l){let m;if(cr(i,Or.Dangling)){let v=cr(i,Or.Line);m=[_u(e,t),v||kv(t.originalText,ta(gl(0,SR(i),-1)))?ki:hr,"..."]}else m=["..."];f.push([...h,...m])}let p=!(l||gl(0,u,-1)?.type==="RestElement"),g;if(f.length===0){if(!cr(i,Or.Dangling))return["{}",pg(e,n)];g=En(["{",_u(e,t,{indent:!0}),hi,"}",Tv(e),pg(e,n)])}else{let m=t.bracketSpacing?hr:hi;g=["{",Ci([m,...f]),os(p&&xE(t)?",":""),m,"}",Tv(e),pg(e,n)]}return e.match(m=>m.type==="ObjectPattern"&&!au(m.decorators),j$)||UD(i)&&(e.match(void 0,(m,v)=>v==="typeAnnotation",(m,v)=>v==="typeAnnotation",j$)||e.match(void 0,(m,v)=>m.type==="FunctionTypeParam"&&v==="typeAnnotation",j$))||!d&&e.match(m=>m.type==="ObjectPattern",m=>m.type==="AssignmentExpression"||m.type==="VariableDeclarator")?g:En(g,{shouldBreak:d})}function Loi(e,t,n){let i=n.originalText,r=ca(e),o=ca(t);if(Gqe(e)){let s=ca(e),a=UY(n,s,o);r=s+a.lastIndexOf("{")}return H0(i,r,o)}function Noi(e,t,n){let{node:i}=e;return["import",i.phase?` ${i.phase}`:"",bsn(i),wsn(e,t,n),_sn(e,t,n),Ssn(e,t,n),t.semi?";":""]}function ysn(e,t,n){let{node:i}=e,r=[uoi(e,t,n),cb(e),"export",Kqe(i)?" default":""],{declaration:o,exported:s}=i;return cr(i,Or.Dangling)&&(r.push(" ",_u(e,t)),pon(i)&&r.push(ki)),o?r.push(" ",n("declaration")):(r.push(Moi(i)),i.type==="ExportAllDeclaration"||i.type==="DeclareExportAllDeclaration"?(r.push(" *"),s&&r.push(" as ",n("exported"))):r.push(wsn(e,t,n)),r.push(_sn(e,t,n),Ssn(e,t,n))),r.push(Poi(i,t)),r}function Poi(e,t){return t.semi&&(!e.declaration||Kqe(e)&&!nln(e.declaration))?";":""}function kqe(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function bsn(e,t){return kqe(e.importKind,t)}function Moi(e){return kqe(e.exportKind)}function _sn(e,t,n){let{node:i}=e;return i.source?[Csn(i,t)?" from":""," ",n("source")]:""}function wsn(e,t,n){let{node:i}=e;if(!Csn(i,t))return"";let r=[" "];if(au(i.specifiers)){let o=[],s=[];e.each(()=>{let a=e.node.type;if(a==="ExportNamespaceSpecifier"||a==="ExportDefaultSpecifier"||a==="ImportNamespaceSpecifier"||a==="ImportDefaultSpecifier")o.push(n());else if(a==="ExportSpecifier"||a==="ImportSpecifier")s.push(n());else throw new pF(i,"specifier")},"specifiers"),r.push(Aa(", ",o)),s.length>0&&(o.length>0&&r.push(", "),s.length>1||o.length>0||i.specifiers.some(a=>cr(a))?r.push(En(["{",Ci([t.bracketSpacing?hr:hi,Aa([",",hr],s)]),os(xE(t)?",":""),t.bracketSpacing?hr:hi,"}"])):r.push(["{",t.bracketSpacing?" ":"",...s,t.bracketSpacing?" ":"","}"]))}else r.push("{}");return r}function Csn(e,t){return e.type!=="ImportDeclaration"||au(e.specifiers)||e.importKind==="type"?!0:UY(t,ca(e),ca(e.source)).trimEnd().endsWith("from")}function Ooi(e,t){if(e.extra?.deprecatedAssertSyntax)return"assert";let n=UY(t,ta(e.source),e.attributes?.[0]?ca(e.attributes[0]):ta(e)).trimStart();return n.startsWith("assert")?"assert":n.startsWith("with")||au(e.attributes)?"with":void 0}function Ssn(e,t,n){let{node:i}=e;if(!i.source)return"";let r=Ooi(i,t);if(!r)return"";let o=Tqe(e,t,n);return iln(i)&&(o=Qde(o)),[` ${r} `,o]}function Roi(e,t,n){let{node:i}=e,{type:r}=i,o=r.startsWith("Import"),s=o?"imported":"local",a=o?"local":"exported",l=i[s],c=i[a],u="",d="";return r==="ExportNamespaceSpecifier"||r==="ImportNamespaceSpecifier"?u="*":l&&(u=n(s)),c&&!Foi(i)&&(d=n(a)),[kqe(r==="ImportSpecifier"?i.importKind:i.exportKind,!1),u,u&&d?" as ":"",d]}function Foi(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:n}=e;return t.type!==n.type||!Jti(t,n)?!1:Dp(t)?t.value===n.value&&Iv(t)===Iv(n):t.type==="Identifier"?t.name===n.name:!1}function J8e(e,t){return["...",t("argument"),pg(e,t)]}function Boi(e){let t=[e];for(let n=0;n<t.length;n++){let i=t[n];for(let r of["test","consequent","alternate"]){let o=i[r];if(Uf(o))return!0;o.type==="ConditionalExpression"&&t.push(o)}}return!1}function joi(e,t,n){let{node:i}=e,r=i.type==="ConditionalExpression",o=r?"alternate":"falseType",{parent:s}=e,a=r?n("test"):[n("checkType")," ","extends"," ",n("extendsType")];return s.type===i.type&&s[o]===i?EC(2,a):a}function zoi(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let n,i=t;for(let r=0;!n;r++){let o=e.getParentNode(r);if(o.type==="ChainExpression"&&o.expression===i||Za(o)&&o.callee===i||su(o)&&o.object===i||o.type==="TSNonNullExpression"&&o.expression===i){i=o;continue}o.type==="NewExpression"&&o.callee===i||P_(o)&&o.expression===i?(n=e.getParentNode(r+1),i=o):n=o}return i===t?!1:n[rln.get(n.type)]===i}function Voi(e,t,n){let{node:i}=e,r=i.type==="ConditionalExpression",o=r?"consequent":"trueType",s=r?"alternate":"falseType",a=r?["test"]:["checkType","extendsType"],l=i[o],c=i[s],u=[],d=!1,{parent:h}=e,f=h.type===i.type&&a.some(T=>h[T]===i),p=h.type===i.type&&!f,g,m,v=0;do m=g||i,g=e.getParentNode(v),v++;while(g&&g.type===i.type&&a.every(T=>g[T]!==m));let y=g||h,b=m;if(r&&(Uf(i[a[0]])||Uf(l)||Uf(c)||Boi(b))){d=!0,p=!0;let T=P=>[os("("),Ci([hi,P]),hi,os(")")],M=P=>P.type==="NullLiteral"||P.type==="Literal"&&P.value===null||P.type==="Identifier"&&P.name==="undefined";u.push(" ? ",M(l)?n(o):T(n(o))," : ",c.type===i.type||M(c)?n(s):T(n(s)))}else{let T=P=>t.useTabs?Ci(n(P)):EC(2,n(P)),M=[hr,"? ",l.type===i.type?os("","("):"",T(o),l.type===i.type?os("",")"):"",hr,": ",T(s)];u.push(h.type!==i.type||h[s]===i||f?M:t.useTabs?Don(Ci(M)):EC(Math.max(0,t.tabWidth-2),M))}let w=T=>h===y?En(T):T,E=!d&&(su(h)||h.type==="NGPipeExpression"&&h.left===i)&&!h.computed,A=zoi(e),D=w([joi(e,t,n),p?u:Ci(u),r&&E&&!A?hi:""]);return f||A?En([Ci([hi,D]),hi]):D}function Hoi(e,t){return(su(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function Woi(e,t,n,i){return[...e.map(r=>SR(r)),SR(t),SR(n)].flat().some(r=>U_(r)&&H0(i.originalText,ca(r),ta(r)))}function Uoi(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let n,i=t;for(let r=0;!n;r++){let o=e.getParentNode(r);if(o.type==="ChainExpression"&&o.expression===i||Za(o)&&o.callee===i||su(o)&&o.object===i||o.type==="TSNonNullExpression"&&o.expression===i){i=o;continue}o.type==="NewExpression"&&o.callee===i||P_(o)&&o.expression===i?(n=e.getParentNode(r+1),i=o):n=o}return i===t?!1:n[oln.get(n.type)]===i}function Iqe(e,t,n,i){if(!t.experimentalTernaries)return Voi(e,t,n);let{node:r}=e,o=r.type==="ConditionalExpression",s=$D(r),a=o?"consequent":"trueType",l=o?"alternate":"falseType",c=o?["test"]:["checkType","extendsType"],u=r[a],d=r[l],h=c.map(Se=>r[Se]),{parent:f}=e,p=f.type===r.type,g=p&&c.some(Se=>f[Se]===r),m=p&&f[l]===r,v=u.type===r.type,y=d.type===r.type,b=y||m,w=t.tabWidth>2||t.useTabs,E,A,D=0;do A=E||r,E=e.getParentNode(D),D++;while(E&&E.type===r.type&&c.every(Se=>E[Se]!==A));let T=E||f,M=i&&i.assignmentLayout&&i.assignmentLayout!=="break-after-operator"&&(f.type==="AssignmentExpression"||f.type==="VariableDeclarator"||f.type==="ClassProperty"||f.type==="PropertyDefinition"||f.type==="ClassPrivateProperty"||f.type==="ObjectProperty"||f.type==="Property"),P=(f.type==="ReturnStatement"||f.type==="ThrowStatement")&&!(v||y),F=o&&T.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",N=Uoi(e),j=Hoi(r,f),W=s&&AT(e,t),J=w?t.useTabs?"	":" ".repeat(t.tabWidth-1):"",ee=Woi(h,u,d,t)||v||y,Q=!b&&!p&&!s&&(F?u.type==="NullLiteral"||u.type==="Literal"&&u.value===null:fqe(u,t)&&Ext(r.test,3)),H=b||m||s&&!p||p&&o&&Ext(r.test,1)||Q,q=[];!v&&cr(u,Or.Dangling)&&e.call(()=>{q.push(_u(e,t),ki)},"consequent");let le=[];cr(r.test,Or.Dangling)&&e.call(()=>{le.push(_u(e,t))},"test"),!y&&cr(d,Or.Dangling)&&e.call(()=>{le.push(_u(e,t))},"alternate"),cr(r,Or.Dangling)&&le.push(_u(e,t));let Y=Symbol("test"),G=Symbol("consequent"),pe=Symbol("test-and-consequent"),U=o?[ece(n("test")),r.test.type==="ConditionalExpression"?Mx:""]:[n("checkType")," ","extends"," ",$D(r.extendsType)||r.extendsType.type==="TSMappedType"?n("extendsType"):En(ece(n("extendsType")))],K=En([U," ?"],{id:Y}),ie=n(a),ce=Ci([v||F&&(Uf(u)||p||b)?ki:hr,q,ie]),de=H?En([K,b?ce:os(ce,En(ce,{id:G}),{groupId:Y})],{id:pe}):[K,ce],oe=n(l),me=Q?os(oe,Don(ece(oe)),{groupId:pe}):oe,Ce=[de,le.length>0?[Ci([ki,le]),ki]:y?ki:Q?os(hr," ",{groupId:pe}):hr,":",y?" ":w?H?os(J,os(b||Q?" ":J," "),{groupId:pe}):os(J," "):" ",y?me:En([Ci(me),F&&!Q?hi:""]),j&&!N?hi:"",ee?Mx:""];return M&&!ee?En(Ci([hi,En(Ce)])):M||P?En(Ci(Ce)):N||s&&g?En([Ci([hi,Ce]),W?hi:""]):f===T?En(Ce):Ce}function $oi(e,t,n,i){let{node:r}=e;if(Dme(r))return Toi(e,t);switch(r.type){case"JsExpressionRoot":return n("node");case"JsonRoot":return[_u(e,t),n("node"),ki];case"File":return Doi(e,t,n)??n("program");case"ExpressionStatement":return Aoi(e,t,n);case"ChainExpression":return n("expression");case"ParenthesizedExpression":return!cr(r.expression)&&(iw(r.expression)||Tp(r.expression))?["(",n("expression"),")"]:En(["(",Ci([hi,n("expression")]),hi,")"]);case"AssignmentExpression":return Sri(e,t,n);case"VariableDeclarator":return xri(e,t,n);case"BinaryExpression":case"LogicalExpression":return jon(e,t,n);case"AssignmentPattern":return[n("left")," = ",n("right")];case"OptionalMemberExpression":case"MemberExpression":return _ri(e,t,n);case"MetaProperty":return[n("meta"),".",n("property")];case"BindExpression":return yri(e,t,n);case"Identifier":return[r.name,Tv(e),Bon(e),pg(e,n)];case"V8IntrinsicIdentifier":return["%",r.name];case"SpreadElement":return J8e(e,n);case"RestElement":return J8e(e,n);case"FunctionDeclaration":case"FunctionExpression":return Jon(e,t,n,i);case"ArrowFunctionExpression":return hoi(e,t,n,i);case"YieldExpression":return[`yield${r.delegate?"*":""}`,r.argument?[" ",n("argument")]:""];case"AwaitExpression":{let o=["await"];if(r.argument){o.push(" ",n("argument"));let{parent:s}=e;if(Za(s)&&s.callee===r||su(s)&&s.object===r){o=[Ci([hi,...o]),hi];let a=e.findAncestor(l=>l.type==="AwaitExpression"||l.type==="BlockStatement");if(a?.type!=="AwaitExpression"||!Km(a.argument,l=>l===r))return En(o)}}return o}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return ysn(e,t,n);case"ImportDeclaration":return Noi(e,t,n);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Roi(e,t,n);case"ImportAttribute":return HDe(e,t,n);case"Program":case"BlockStatement":case"StaticBlock":return usn(e,t,n);case"ClassBody":return Aqe(e,t,n);case"ThrowStatement":return Bri(e,t,n);case"ReturnStatement":return Fri(e,t,n);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return Zde(e,t,n);case"ObjectExpression":case"ObjectPattern":return Tqe(e,t,n);case"Property":return _G(r)?Q8e(e,t,n):HDe(e,t,n);case"ObjectProperty":return HDe(e,t,n);case"ObjectMethod":return Q8e(e,t,n);case"Decorator":return["@",n("expression")];case"ArrayExpression":case"ArrayPattern":return xqe(e,t,n);case"SequenceExpression":{let{parent:o}=e;if(o.type==="ExpressionStatement"||o.type==="ForStatement"){let a=[];return e.each(({isFirst:l})=>{l?a.push(n()):a.push(",",Ci([hr,n()]))},"expressions"),En(a)}let s=Aa([",",hr],e.map(n,"expressions"));return(o.type==="ReturnStatement"||o.type==="ThrowStatement")&&e.key==="argument"||o.type==="ArrowFunctionExpression"&&e.key==="body"?En(os([Ci([hi,s]),hi],s)):En(s)}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[n("value"),t.semi?";":""];case"UnaryExpression":{let o=[r.operator];return/[a-z]$/u.test(r.operator)&&o.push(" "),cr(r.argument)?o.push(En(["(",Ci([hi,n("argument")]),hi,")"])):o.push(n("argument")),o}case"UpdateExpression":return[r.prefix?r.operator:"",n("argument"),r.prefix?"":r.operator];case"ConditionalExpression":return Iqe(e,t,n,i);case"VariableDeclaration":{let o=e.map(n,"declarations"),s=e.parent,a=s.type==="ForStatement"||s.type==="ForInStatement"||s.type==="ForOfStatement",l=r.declarations.some(u=>u.init),c;return o.length===1&&!cr(r.declarations[0])?c=o[0]:o.length>0&&(c=Ci(o[0])),En([cb(e),r.kind,c?[" ",c]:"",Ci(o.slice(1).map(u=>[",",l&&!a?ki:hr,u])),t.semi&&!(a&&s.body!==r)?";":""])}case"WithStatement":return En(["with (",n("object"),")",jk(r.body,n("body"))]);case"IfStatement":{let o=jk(r.consequent,n("consequent")),s=[En(["if (",En([Ci([hi,n("test")]),hi]),")",o])];if(r.alternate){let a=cr(r.consequent,Or.Trailing|Or.Line)||pon(r),l=r.consequent.type==="BlockStatement"&&!a;s.push(l?" ":ki),cr(r,Or.Dangling)&&s.push(_u(e,t),a?ki:" "),s.push("else",En(jk(r.alternate,n("alternate"),r.alternate.type==="IfStatement")))}return s}case"ForStatement":{let o=jk(r.body,n("body")),s=_u(e,t),a=s?[s,hi]:"";return!r.init&&!r.test&&!r.update?[a,En(["for (;;)",o])]:[a,En(["for (",En([Ci([hi,n("init"),";",hr,n("test"),";",r.update?[hr,n("update")]:os("",hr)]),hi]),")",o])]}case"WhileStatement":return En(["while (",En([Ci([hi,n("test")]),hi]),")",jk(r.body,n("body"))]);case"ForInStatement":return En(["for (",n("left")," in ",n("right"),")",jk(r.body,n("body"))]);case"ForOfStatement":return En(["for",r.await?" await":""," (",n("left")," of ",n("right"),")",jk(r.body,n("body"))]);case"DoWhileStatement":{let o=jk(r.body,n("body"));return[En(["do",o]),r.body.type==="BlockStatement"?" ":ki,"while (",En([Ci([hi,n("test")]),hi]),")",t.semi?";":""]}case"DoExpression":return[r.async?"async ":"","do ",n("body")];case"BreakStatement":case"ContinueStatement":return[r.type==="BreakStatement"?"break":"continue",r.label?[" ",n("label")]:"",t.semi?";":""];case"LabeledStatement":return[n("label"),`:${r.body.type==="EmptyStatement"&&!cr(r.body,Or.Leading)?"":" "}`,n("body")];case"TryStatement":return["try ",n("block"),r.handler?[" ",n("handler")]:"",r.finalizer?[" finally ",n("finalizer")]:""];case"CatchClause":if(r.param){let o=cr(r.param,a=>!U_(a)||a.leading&&kv(t.originalText,ta(a))||a.trailing&&kv(t.originalText,ca(a),{backwards:!0})),s=n("param");return["catch ",o?["(",Ci([hi,s]),hi,") "]:["(",s,") "],n("body")]}return["catch ",n("body")];case"SwitchStatement":return[En(["switch (",Ci([hi,n("discriminant")]),hi,")"])," {",r.cases.length>0?Ci([ki,Aa(ki,e.map(({node:o,isLast:s})=>[n(),!s&&QC(o,t)?ki:""],"cases"))]):"",ki,"}"];case"SwitchCase":{let o=[];r.test?o.push("case ",n("test"),":"):o.push("default:"),cr(r,Or.Dangling)&&o.push(" ",_u(e,t));let s=r.consequent.filter(a=>a.type!=="EmptyStatement");if(s.length>0){let a=Z8e(e,t,n,"consequent");o.push(s.length===1&&s[0].type==="BlockStatement"?[" ",a]:Ci([ki,a]))}return o}case"DebuggerStatement":return["debugger",t.semi?";":""];case"ClassDeclaration":case"ClassExpression":return Dqe(e,t,n);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return gsn(e,t,n);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return msn(e,t,n);case"TemplateElement":return l2(r.value.raw);case"TemplateLiteral":return Non(e,t,n);case"TaggedTemplateExpression":return gii(e,t,n);case"PrivateIdentifier":return["#",r.name];case"PrivateName":return["#",n("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",n("body")];case"VoidPattern":return"void";case"EmptyStatement":if(Ame(e))return";";default:throw new pF(r,"ESTree")}}function xsn(e){return[e("elementType"),"[]"]}function Esn(e,t,n){let{parent:i,node:r,key:o}=e,s=r.type==="AsConstExpression"?"const":n("typeAnnotation"),a=[n("expression")," ",sln(r)?"satisfies":"as"," ",s];return o==="callee"&&Za(i)||o==="object"&&su(i)?En([Ci([hi,...a]),hi]):a}function qoi(e,t,n){let{node:i}=e,r=[cb(e),"component"];i.id&&r.push(" ",n("id")),r.push(n("typeParameters"));let o=Goi(e,t,n);return i.rendersType?r.push(En([o," ",n("rendersType")])):r.push(En([o])),i.body&&r.push(" ",n("body")),t.semi&&i.type==="DeclareComponent"&&r.push(";"),r}function Goi(e,t,n){let{node:i}=e,r=i.params;if(i.rest&&(r=[...r,i.rest]),r.length===0)return["(",_u(e,t,{filter:s=>rw(t.originalText,ta(s))===")"}),")"];let o=[];return Yoi(e,(s,a)=>{let l=a===r.length-1;l&&i.rest&&o.push("..."),o.push(n()),!l&&(o.push(","),QC(r[a],t)?o.push(ki,ki):o.push(hr))}),["(",Ci([hi,...o]),os(xE(t,"all")&&!Koi(i,r)?",":""),hi,")"]}function Koi(e,t){return e.rest||gl(0,t,-1)?.type==="RestElement"}function Yoi(e,t){let{node:n}=e,i=0,r=o=>t(o,i++);e.each(r,"params"),n.rest&&e.call(r,"rest")}function Qoi(e,t,n){let{node:i}=e;return i.shorthand?n("local"):[n("name")," as ",n("local")]}function Zoi(e,t,n){let{node:i}=e,r=[];return i.name&&r.push(n("name"),i.optional?"?: ":": "),r.push(n("typeAnnotation")),r}function Asn(e,t,n){return Tqe(e,t,n)}function Xoi(e,t,n){let{node:i}=e;return[i.type==="EnumSymbolBody"||i.explicitType?`of ${i.type.slice(4,-4).toLowerCase()} `:"",Asn(e,t,n)]}function Dsn(e,t){let{node:n}=e,i=t("id");n.computed&&(i=["[",i,"]"]);let r="";return n.initializer&&(r=t("initializer")),n.init&&(r=t("init")),r?[i," = ",r]:i}function Tsn(e,t){let{node:n}=e;return[cb(e),n.const?"const ":"","enum ",t("id")," ",t("body")]}function ksn(e,t,n){let{node:i}=e,r=[_me(e)];(i.type==="TSConstructorType"||i.type==="TSConstructSignatureDeclaration")&&r.push("new ");let o=hF(e,t,n,!1,!0),s=[];return i.type==="FunctionTypeAnnotation"?s.push(Joi(e)?" => ":": ",n("returnType")):s.push(pg(e,n,"returnType")),X7(i,s)&&(o=En(o)),r.push(o,s),[En(r),i.type==="TSConstructSignatureDeclaration"||i.type==="TSCallSignatureDeclaration"?fD(e,t):""]}function Joi(e){let{node:t,parent:n}=e;return t.type==="FunctionTypeAnnotation"&&(don(n)||!((n.type==="ObjectTypeProperty"||n.type==="ObjectTypeInternalSlot")&&!n.variance&&!n.optional&&mme(n,t)||n.type==="ObjectTypeCallProperty"||e.getParentNode(2)?.type==="DeclareFunction"))}function esi(e,t,n){let{node:i}=e,r=["hook"];i.id&&r.push(" ",n("id"));let o=hF(e,t,n,!1,!0),s=Cme(e,n),a=X7(i,s);return r.push(En([a?En(o):o,s]),i.body?" ":"",n("body")),r}function tsi(e,t,n){let{node:i}=e,r=[cb(e),"hook"];return i.id&&r.push(" ",n("id")),t.semi&&r.push(";"),r}function Uxt(e){let{node:t}=e;return t.type==="HookTypeAnnotation"&&e.getParentNode(2)?.type==="DeclareHook"}function nsi(e,t,n){let{node:i}=e,r=hF(e,t,n,!1,!0),o=[Uxt(e)?": ":" => ",n("returnType")];return En([Uxt(e)?"":"hook ",X7(i,o)?En(r):r,o])}function Isn(e,t,n){return[n("objectType"),Tv(e),"[",n("indexType"),"]"]}function Lsn(e,t,n){return["infer ",n("typeParameter")]}function Nsn(e,t,n){let i=!1;return En(e.map(({isFirst:r,previous:o,node:s,index:a})=>{let l=n();if(r)return l;let c=UD(s),u=UD(o);return u&&c?[" & ",i?Ci(l):l]:!u&&!c||cC(t.originalText,s)?t.experimentalOperatorPosition==="start"?Ci([hr,"& ",l]):Ci([" &",hr,l]):(a>1&&(i=!0),[" & ",a>1?Ci(l):l])},"types"))}function isi(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function rsi(e,t,n){let{node:i}=e;return[En([i.variance?n("variance"):"","[",Ci([n("keyTparam")," in ",n("sourceType")]),"]",isi(i.optional),": ",n("propType")]),fD(e,t)]}function $xt(e,t){return e==="+"||e==="-"?e+t:t}function osi(e,t,n){let{node:i}=e,r=!1;if(t.objectWrap==="preserve"){let o=ca(i),s=UY(t,o+1,ca(i.key)),a=o+1+s.search(/\S/u);H0(t.originalText,o,a)&&(r=!0)}return En(["{",Ci([t.bracketSpacing?hr:hi,cr(i,Or.Dangling)?En([_u(e,t),ki]):"",En([i.readonly?[$xt(i.readonly,"readonly")," "]:"","[",n("key")," in ",n("constraint"),i.nameType?[" as ",n("nameType")]:"","]",i.optional?$xt(i.optional,"?"):"",i.typeAnnotation?": ":"",n("typeAnnotation")]),t.semi?os(";"):""]),t.bracketSpacing?hr:hi,"}"],{shouldBreak:r})}function ssi(e,t,n){let{node:i}=e;return[En(["match (",Ci([hi,n("argument")]),hi,")"])," {",i.cases.length>0?Ci([ki,Aa(ki,e.map(({node:r,isLast:o})=>[n(),!o&&QC(r,t)?ki:""],"cases"))]):"",ki,"}"]}function asi(e,t,n){let{node:i}=e,r=cr(i,Or.Dangling)?[" ",_u(e,t)]:[],o=i.type==="MatchStatementCase"?[" ",n("body")]:Ci([hr,n("body"),","]);return[n("pattern"),i.guard?En([Ci([hr,"if (",n("guard"),")"])]):"",En([" =>",r,o])]}function lsi(e,t,n){let{node:i}=e;switch(i.type){case"MatchOrPattern":return dsi(e,t,n);case"MatchAsPattern":return[n("pattern")," as ",n("target")];case"MatchWildcardPattern":return["_"];case"MatchLiteralPattern":return n("literal");case"MatchUnaryPattern":return[i.operator,n("argument")];case"MatchIdentifierPattern":return n("id");case"MatchMemberPattern":{let r=i.property.type==="Identifier"?[".",n("property")]:["[",Ci([hi,n("property")]),hi,"]"];return En([n("base"),r])}case"MatchBindingPattern":return[i.kind," ",n("id")];case"MatchObjectPattern":{let r=e.map(n,"properties");return i.rest&&r.push(n("rest")),En(["{",Ci([hi,Aa([",",hr],r)]),i.rest?"":os(","),hi,"}"])}case"MatchArrayPattern":{let r=e.map(n,"elements");return i.rest&&r.push(n("rest")),En(["[",Ci([hi,Aa([",",hr],r)]),i.rest?"":os(","),hi,"]"])}case"MatchObjectPatternProperty":return i.shorthand?n("pattern"):En([n("key"),":",Ci([hr,n("pattern")])]);case"MatchRestPattern":{let r=["..."];return i.argument&&r.push(n("argument")),r}}}function csi(e){let{patterns:t}=e;if(t.some(i=>cr(i)))return!1;let n=t.find(i=>i.type==="MatchObjectPattern");return n?t.every(i=>i===n||Yqe(i)):!1}function usi(e){return Yqe(e)||e.type==="MatchObjectPattern"?!0:e.type==="MatchOrPattern"?csi(e):!1}function dsi(e,t,n){let{node:i}=e,{parent:r}=e,o=r.type!=="MatchStatementCase"&&r.type!=="MatchExpressionCase"&&r.type!=="MatchArrayPattern"&&r.type!=="MatchObjectPatternProperty"&&!cC(t.originalText,i),s=usi(i),a=e.map(()=>{let c=n();return s||(c=EC(2,c)),W_(e,c,t)},"patterns");if(s)return Aa(" | ",a);let l=[os(["| "]),Aa([hr,"| "],a)];return AT(e,t)?En([Ci([os([hi]),l]),hi]):r.type==="MatchArrayPattern"&&r.elements.length>1?En([Ci([os(["(",hi]),l]),hi,os(")")]):En(o?Ci(l):l)}function hsi(e,t,n){let{node:i}=e,r=[cb(e),"opaque type ",n("id"),n("typeParameters")];if(i.supertype&&r.push(": ",n("supertype")),i.lowerBound||i.upperBound){let o=[];i.lowerBound&&o.push(Ci([hr,"super ",n("lowerBound")])),i.upperBound&&o.push(Ci([hr,"extends ",n("upperBound")])),r.push(En(o))}return i.impltype&&r.push(" = ",n("impltype")),r.push(t.semi?";":""),r}function Psn(e,t,n){let{node:i}=e;return["...",...i.type==="TupleTypeSpreadElement"&&i.label?[n("label"),": "]:[],n("typeAnnotation")]}function Msn(e,t,n){let{node:i}=e;return[i.variance?n("variance"):"",n("label"),i.optional?"?":"",": ",n("elementType")]}function Osn(e,t,n){let{node:i}=e,r=[cb(e),"type ",n("id"),n("typeParameters")],o=i.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[HY(e,t,n,r," =",o),t.semi?";":""]}function fsi(e,t,n){let{node:i}=e;return gm(i).length===1&&i.type.startsWith("TS")&&!i[n][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function V$(e,t,n,i){let{node:r}=e;if(!r[i])return"";if(!Array.isArray(r[i]))return n(i);let o=vme(e.grandparent),s=e.match(l=>!(l[i].length===1&&UD(l[i][0])),void 0,(l,c)=>c==="typeAnnotation",l=>l.type==="Identifier",Qon);if(r[i].length===0||!s&&(o||r[i].length===1&&(r[i][0].type==="NullableTypeAnnotation"||lri(r[i][0]))))return["<",Aa(", ",e.map(n,i)),psi(e,t),">"];let a=r.type==="TSTypeParameterInstantiation"?"":fsi(e,t,i)?",":xE(t)?os(","):"";return En(["<",Ci([hi,Aa([",",hr],e.map(n,i))]),a,hi,">"])}function psi(e,t){let{node:n}=e;if(!cr(n,Or.Dangling))return"";let i=!cr(n,Or.Line),r=_u(e,t,{indent:!i});return i?r:[r,ki]}function Rsn(e,t,n){let{node:i}=e,r=[i.const?"const ":""],o=i.type==="TSTypeParameter"?n("name"):i.name;if(i.variance&&r.push(n("variance")),i.in&&r.push("in "),i.out&&r.push("out "),r.push(o),i.bound&&(i.usesExtendsBound&&r.push(" extends "),r.push(pg(e,n,"bound"))),i.constraint){let s=Symbol("constraint");r.push(" extends",En(Ci(hr),{id:s}),TC,wG(n("constraint"),{groupId:s}))}if(i.default){let s=Symbol("default");r.push(" =",En(Ci(hr),{id:s}),TC,wG(n("default"),{groupId:s}))}return En(r)}function Fsn(e,t){let{node:n}=e;return[n.type==="TSTypePredicate"&&n.asserts?"asserts ":n.type==="TypePredicate"&&n.kind?`${n.kind} `:"",t("parameterName"),n.typeAnnotation?[" is ",pg(e,t)]:""]}function Bsn({node:e},t){let n=e.type==="TSTypeQuery"?"exprName":"argument";return["typeof ",t(n),t("typeArguments")]}function gsi(e,t,n){let{node:i}=e;if(Mqe(i))return i.type.slice(0,-14).toLowerCase();switch(i.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return qoi(e,t,n);case"ComponentParameter":return Qoi(e,t,n);case"ComponentTypeParameter":return Zoi(e,t,n);case"HookDeclaration":return esi(e,t,n);case"DeclareHook":return tsi(e,t,n);case"HookTypeAnnotation":return nsi(e,t,n);case"DeclareFunction":return[cb(e),"function ",n("id"),n("predicate"),t.semi?";":""];case"DeclareModule":return["declare module ",n("id")," ",n("body")];case"DeclareModuleExports":return["declare module.exports",pg(e,n),t.semi?";":""];case"DeclareNamespace":return["declare namespace ",n("id")," ",n("body")];case"DeclareVariable":return[cb(e),i.kind??"var"," ",n("id"),t.semi?";":""];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return ysn(e,t,n);case"DeclareOpaqueType":case"OpaqueType":return hsi(e,t,n);case"DeclareTypeAlias":case"TypeAlias":return Osn(e,t,n);case"IntersectionTypeAnnotation":return Nsn(e,t,n);case"UnionTypeAnnotation":return zon(e,t,n);case"ConditionalTypeAnnotation":return Iqe(e,t,n);case"InferTypeAnnotation":return Lsn(e,t,n);case"FunctionTypeAnnotation":return ksn(e,t,n);case"TupleTypeAnnotation":return xqe(e,t,n);case"TupleTypeLabeledElement":return Msn(e,t,n);case"TupleTypeSpreadElement":return Psn(e,t,n);case"GenericTypeAnnotation":return[n("id"),V$(e,t,n,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return Isn(e,t,n);case"TypeAnnotation":return Hon(e,t,n);case"TypeParameter":return Rsn(e,t,n);case"TypeofTypeAnnotation":return Bsn(e,n);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return xsn(n);case"DeclareEnum":case"EnumDeclaration":return Tsn(e,n);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return Xoi(e,t,n);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return Dsn(e,n);case"FunctionTypeParam":{let r=i.name?n("name"):e.parent.this===i?"this":"";return[r,Tv(e),r?": ":"",n("typeAnnotation")]}case"DeclareClass":case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return Dqe(e,t,n);case"ObjectTypeAnnotation":return Aqe(e,t,n);case"ClassImplements":case"InterfaceExtends":return[n("id"),n("typeParameters")];case"NullableTypeAnnotation":return["?",n("typeAnnotation")];case"Variance":{let{kind:r}=i;return LI(r==="plus"||r==="minus"),r==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",n("argument")];case"ObjectTypeCallProperty":return[i.static?"static ":"",n("value"),fD(e,t)];case"ObjectTypeMappedTypeProperty":return rsi(e,t,n);case"ObjectTypeIndexer":return[i.static?"static ":"",i.variance?n("variance"):"","[",n("id"),i.id?": ":"",n("key"),"]: ",n("value"),fD(e,t)];case"ObjectTypeProperty":{let r="";return i.proto?r="proto ":i.static&&(r="static "),[r,i.kind!=="init"?i.kind+" ":"",i.variance?n("variance"):"",WY(e,t,n),Tv(e),_G(i)?"":": ",n("value"),fD(e,t)]}case"ObjectTypeInternalSlot":return[i.static?"static ":"","[[",n("id"),"]]",Tv(e),i.method?"":": ",n("value"),fD(e,t)];case"ObjectTypeSpreadProperty":return J8e(e,n);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[n("qualification"),".",n("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(i.value);case"StringLiteralTypeAnnotation":return l2(h2(Iv(i),t));case"NumberLiteralTypeAnnotation":return f2(Iv(i));case"BigIntLiteralTypeAnnotation":return X8e(Iv(i));case"TypeCastExpression":return["(",n("expression"),pg(e,n),")"];case"TypePredicate":return Fsn(e,n);case"TypeOperator":return[i.operator," ",n("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return V$(e,t,n,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...i.type==="DeclaredPredicate"?["(",n("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Esn(e,t,n);case"MatchExpression":case"MatchStatement":return ssi(e,t,n);case"MatchExpressionCase":case"MatchStatementCase":return asi(e,t,n);case"MatchOrPattern":case"MatchAsPattern":case"MatchWildcardPattern":case"MatchLiteralPattern":case"MatchUnaryPattern":case"MatchIdentifierPattern":case"MatchMemberPattern":case"MatchBindingPattern":case"MatchObjectPattern":case"MatchObjectPatternProperty":case"MatchRestPattern":case"MatchArrayPattern":return lsi(e,t,n)}}function msi(e,t,n){let{node:i}=e,r=i.parameters.length>1?os(xE(t)?",":""):"",o=En([Ci([hi,Aa([", ",hi],e.map(n,"parameters"))]),r,hi]);return[e.key==="body"&&e.parent.type==="ClassBody"&&i.static?"static ":"",i.readonly?"readonly ":"","[",i.parameters?o:"","]",pg(e,n),fD(e,t)]}function qxt(e,t,n){let{node:i}=e;return[i.postfix?"":n,pg(e,t),i.postfix?n:""]}function vsi(e,t,n){let{node:i}=e,r=[],o=i.kind&&i.kind!=="method"?`${i.kind} `:"";r.push(wme(i),o,i.computed?"[":"",n("key"),i.computed?"]":"",Tv(e));let s=hF(e,t,n,!1,!0),a=pg(e,n,"returnType"),l=X7(i,a);return r.push(l?En(s):s),i.returnType&&r.push(En(a)),[En(r),fD(e,t)]}function ysi(e,t,n){let{node:i}=e;return[cb(e),i.kind==="global"?"":`${i.kind} `,n("id"),i.body?[" ",En(n("body"))]:t.semi?";":""]}function bsi(e,t,n){let{node:i}=e,r=!(Tp(i.expression)||iw(i.expression)),o=En(["<",Ci([hi,n("typeAnnotation")]),hi,">"]),s=[os("("),Ci([hi,n("expression")]),hi,os(")")];return r?UO([[o,n("expression")],[o,En(s,{shouldBreak:!0})],[o,n("expression")]]):En([o,n("expression")])}function _si(e,t,n){let{node:i}=e;if(i.type.startsWith("TS")){if(Oqe(i))return i.type.slice(2,-7).toLowerCase();switch(i.type){case"TSThisType":return"this";case"TSTypeAssertion":return bsi(e,t,n);case"TSDeclareFunction":return Jon(e,t,n);case"TSExportAssignment":return["export = ",n("expression"),t.semi?";":""];case"TSModuleBlock":return usn(e,t,n);case"TSInterfaceBody":case"TSTypeLiteral":return Aqe(e,t,n);case"TSTypeAliasDeclaration":return Osn(e,t,n);case"TSQualifiedName":return[n("left"),".",n("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return gsn(e,t,n);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return msn(e,t,n);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[n("expression"),n("typeArguments")];case"TSTemplateLiteralType":return Non(e,t,n);case"TSNamedTupleMember":return Msn(e,t,n);case"TSRestType":return Psn(e,t,n);case"TSOptionalType":return[n("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return Dqe(e,t,n);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return V$(e,t,n,"params");case"TSTypeParameter":return Rsn(e,t,n);case"TSAsExpression":case"TSSatisfiesExpression":return Esn(e,t,n);case"TSArrayType":return xsn(n);case"TSPropertySignature":return[i.readonly?"readonly ":"",WY(e,t,n),Tv(e),pg(e,n),fD(e,t)];case"TSParameterProperty":return[wme(i),i.static?"static ":"",i.override?"override ":"",i.readonly?"readonly ":"",n("parameter")];case"TSTypeQuery":return Bsn(e,n);case"TSIndexSignature":return msi(e,t,n);case"TSTypePredicate":return Fsn(e,n);case"TSNonNullExpression":return[n("expression"),"!"];case"TSImportType":return[Zde(e,t,n),i.qualifier?[".",n("qualifier")]:"",V$(e,t,n,"typeArguments")];case"TSLiteralType":return n("literal");case"TSIndexedAccessType":return Isn(e,t,n);case"TSTypeOperator":return[i.operator," ",n("typeAnnotation")];case"TSMappedType":return osi(e,t,n);case"TSMethodSignature":return vsi(e,t,n);case"TSNamespaceExportDeclaration":return["export as namespace ",n("id"),t.semi?";":""];case"TSEnumDeclaration":return Tsn(e,n);case"TSEnumBody":return Asn(e,t,n);case"TSEnumMember":return Dsn(e,n);case"TSImportEqualsDeclaration":return["import ",bsn(i,!1),n("id")," = ",n("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return Zde(e,t,n);case"TSModuleDeclaration":return ysi(e,t,n);case"TSConditionalType":return Iqe(e,t,n);case"TSInferType":return Lsn(e,t,n);case"TSIntersectionType":return Nsn(e,t,n);case"TSUnionType":return zon(e,t,n);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return ksn(e,t,n);case"TSTupleType":return xqe(e,t,n);case"TSTypeReference":return[n("typeName"),V$(e,t,n,"typeArguments")];case"TSTypeAnnotation":return Hon(e,t,n);case"TSEmptyBodyFunctionExpression":return Eqe(e,t,n);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return qxt(e,n,"?");case"TSJSDocNonNullableType":return qxt(e,n,"!");default:throw new pF(i,"TypeScript")}}}function wsi(e,t,n,i){for(let r of[aoi,noi,gsi,_si,$oi]){let o=r(e,t,n,i);if(o!==void 0)return o}}function Csi(e,t,n,i){e.isRoot&&t.__onHtmlBindingRoot?.(e.node,t);let{node:r}=e,o=rhe(e)?t.originalText.slice(ca(r),ta(r)):wsi(e,t,n,i);if(!o)return"";if(aln(r))return o;let s=au(r.decorators),a=doi(e,t,n),l=r.type==="ClassExpression";if(s&&!l)return q8e(o,d=>En([a,d]));let c=AT(e,t),u=zri(e,t);return!a&&!c&&!u?o:q8e(o,d=>[u?";":"",c?"(":"",c&&l&&s?[Ci([hr,a,d]),hr]:[a,d],c?")":""])}function Ssi(e,t,n){let{node:i}=e;switch(i.type){case"JsonRoot":return[n("node"),ki];case"ArrayExpression":{if(i.elements.length===0)return"[]";let r=e.map(()=>e.node===null?"null":n(),"elements");return["[",Ci([ki,Aa([",",ki],r)]),ki,"]"]}case"ObjectExpression":return i.properties.length===0?"{}":["{",Ci([ki,Aa([",",ki],e.map(n,"properties"))]),ki,"}"];case"ObjectProperty":return[n("key"),": ",n("value")];case"UnaryExpression":return[i.operator==="+"?"":i.operator,n("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return i.value?"true":"false";case"StringLiteral":return JSON.stringify(i.value);case"NumericLiteral":return Gxt(e)?JSON.stringify(String(i.value)):JSON.stringify(i.value);case"Identifier":return Gxt(e)?JSON.stringify(i.name):i.name;case"TemplateLiteral":return n(["quasis",0]);case"TemplateElement":return JSON.stringify(i.value.cooked);default:throw new pF(i,"JSON")}}function Gxt(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}function Kxt(e,t){let{type:n}=e;if(n==="ObjectProperty"){let{key:i}=e;i.type==="Identifier"?t.key={type:"StringLiteral",value:i.name}:i.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(i.value)});return}if(n==="UnaryExpression"&&e.operator==="+")return t.argument;if(n==="ArrayExpression"){for(let[i,r]of e.elements.entries())r===null&&t.elements.splice(i,0,{type:"NullLiteral"});return}if(n==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}var Yxt,eie,e9e,Qxt,UDe,tie,Zxt,Xxt,Vf,Jxt,gl,Lqe,jsn,eEt,zsn,Vsn,c2,u2,Hsn,Wsn,t9e,d2,kv,Sme,xme,Xde,au,tEt,LI,$De,qDe,Usn,$sn,Nqe,qsn,Gsn,h2,Pqe,VB,nEt,GDe,Pt,iEt,rEt,n9e,gs,Iv,oEt,U_,sEt,Mqe,aEt,p8,Eme,Oqe,Ame,Ksn,Tp,iw,Dme,Ysn,UD,v9,Uf,rE,Qsn,Zsn,KDe,Za,su,Xsn,Jsn,i9e,BW,Jde,ean,qle,Gle,Or,Rqe,QC,P_,AC,J7,$D,lEt,ehe,cEt,tO,uEt,tan,nan,ian,YDe,ran,dEt,fF,rw,H0,Kle,Fqe,Tme,oan,san,Bqe,aan,lan,jqe,hEt,fEt,pEt,can,gEt,qN,oE,xR,VL,HL,WL,ub,qD,uC,UL,$L,SD,av,sE,Px,zqe,ET,uan,mEt,y9,r9e,kme,DC,Vqe,dan,han,Mx,jW,hr,hi,o9e,ki,vEt,Hqe,TC,fan,pan,gan,man,yEt,van,yan,ban,s9e,Um,E1,the,_an,wan,nhe,bEt,Yle,_Et,wEt,Can,CEt,San,xan,Wqe,Ean,a9e,Aan,l9e,Dan,Uqe,Tan,kan,Qle,Ian,Lan,AT,Nan,Pan,xG,Man,Oan,SEt,xEt,Ran,f2,Fan,c9e,Ban,jan,zan,$qe,ihe,Van,Han,Wan,H$,Uan,Ime,EEt,pF,AEt,DEt,W$,Zle,$an,rhe,qan,Xle,Gan,TEt,kEt,Kan,IEt,u9e,qqe,Yan,Qan,Zan,Jle,Xan,Jan,eln,UY,Gqe,tln,Kqe,nln,iln,rln,oln,ece,sln,Yqe,aln,QDe,LEt,NEt,ZDe,SM,PEt,MEt,OEt,REt,F4,_A,FEt,d9e,h9e,f9e,xsi=se({"../node_modules/.pnpm/prettier@3.8.1/node_modules/prettier/plugins/estree.mjs"(){Yxt=Object.defineProperty,eie=(e,t)=>{for(var n in t)Yxt(e,n,{get:t[n],enumerable:!0})},e9e={},eie(e9e,{languages:()=>f9e,options:()=>d9e,printers:()=>h9e}),Qxt=[{name:"JavaScript",type:"programming",aceMode:"javascript",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],filenames:["Jakefile","start.frag","end.frag"],tmScope:"source.js",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",aceMode:"javascript",extensions:[".js.flow"],filenames:[],tmScope:"source.js",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",aceMode:"javascript",extensions:[".jsx"],filenames:void 0,tmScope:"source.js.jsx",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",aceMode:"typescript",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",aceMode:"tsx",extensions:[".tsx"],tmScope:"source.tsx",codemirrorMode:"jsx",codemirrorMimeType:"text/typescript-jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],UDe={},eie(UDe,{canAttachComment:()=>dEt,embed:()=>CEt,features:()=>LEt,getVisitorKeys:()=>n9e,handleComments:()=>fEt,hasPrettierIgnore:()=>rhe,insertPragma:()=>Wii,isBlockComment:()=>U_,isGap:()=>pEt,massageAstNode:()=>uEt,print:()=>QDe,printComment:()=>qii,printPrettierIgnored:()=>QDe,willPrintOwnComments:()=>gEt}),tie=(e,t)=>(n,i,...r)=>n|1&&i==null?void 0:(t.call(i)??i[e]).apply(i,r),Zxt=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},Xxt=tie("replaceAll",function(){if(typeof this=="string")return Zxt}),Vf=Xxt,Jxt=tie("at",function(){if(Array.isArray(this)||typeof this=="string")return Oti}),gl=Jxt,Lqe=Rti,jsn=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\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DE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,eEt="©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇",zsn=/[^\x20-\x7F]/u,Vsn=new Set(eEt),c2=Hti,u2=jDe(" 	"),Hsn=jDe(",; 	"),Wsn=jDe(/[^\n\r]/u),t9e=e=>e===`
`||e==="\r"||e==="\u2028"||e==="\u2029",d2=Wti,kv=Uti,Sme=$ti,xme=qti,Xde=Gti,au=Kti,tEt=()=>{},LI=tEt,$De=Object.freeze({character:"'",codePoint:39}),qDe=Object.freeze({character:'"',codePoint:34}),Usn=Object.freeze({preferred:$De,alternate:qDe}),$sn=Object.freeze({preferred:qDe,alternate:$De}),Nqe=Yti,qsn=/\\(["'\\])|(["'])/gu,Gsn=Qti,h2=Zti,Pqe=e=>Number.isInteger(e)&&e>=0,VB=null,nEt=10;for(let e=0;e<=nEt;e++)B$();GDe=tni,Pt=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],iEt={AccessorProperty:Pt[0],AnyTypeAnnotation:Pt[1],ArgumentPlaceholder:Pt[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:Pt[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:Pt[3],AsExpression:Pt[4],AssignmentExpression:Pt[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:Pt[6],BigIntLiteral:Pt[1],BigIntLiteralTypeAnnotation:Pt[1],BigIntTypeAnnotation:Pt[1],BinaryExpression:Pt[5],BindExpression:["object","callee"],BlockStatement:Pt[7],BooleanLiteral:Pt[1],BooleanLiteralTypeAnnotation:Pt[1],BooleanTypeAnnotation:Pt[1],BreakStatement:Pt[8],CallExpression:Pt[9],CatchClause:["param","body"],ChainExpression:Pt[3],ClassAccessorProperty:Pt[0],ClassBody:Pt[10],ClassDeclaration:Pt[11],ClassExpression:Pt[11],ClassImplements:Pt[12],ClassMethod:Pt[13],ClassPrivateMethod:Pt[13],ClassPrivateProperty:Pt[14],ClassProperty:Pt[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:Pt[15],ConditionalExpression:Pt[16],ConditionalTypeAnnotation:Pt[17],ContinueStatement:Pt[8],DebuggerStatement:Pt[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:Pt[18],DeclareEnum:Pt[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:Pt[20],DeclareFunction:["id","predicate"],DeclareHook:Pt[21],DeclareInterface:Pt[22],DeclareModule:Pt[19],DeclareModuleExports:Pt[23],DeclareNamespace:Pt[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:Pt[24],DeclareVariable:Pt[21],Decorator:Pt[3],Directive:Pt[18],DirectiveLiteral:Pt[1],DoExpression:Pt[10],DoWhileStatement:Pt[25],EmptyStatement:Pt[1],EmptyTypeAnnotation:Pt[1],EnumBigIntBody:Pt[26],EnumBigIntMember:Pt[27],EnumBooleanBody:Pt[26],EnumBooleanMember:Pt[27],EnumDeclaration:Pt[19],EnumDefaultedMember:Pt[21],EnumNumberBody:Pt[26],EnumNumberMember:Pt[27],EnumStringBody:Pt[26],EnumStringMember:Pt[27],EnumSymbolBody:Pt[26],ExistsTypeAnnotation:Pt[1],ExperimentalRestProperty:Pt[6],ExperimentalSpreadProperty:Pt[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:Pt[28],ExportNamedDeclaration:Pt[20],ExportNamespaceSpecifier:Pt[28],ExportSpecifier:["local","exported"],ExpressionStatement:Pt[3],File:["program"],ForInStatement:Pt[29],ForOfStatement:Pt[29],ForStatement:["init","test","update","body"],FunctionDeclaration:Pt[30],FunctionExpression:Pt[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:Pt[15],GenericTypeAnnotation:Pt[12],HookDeclaration:Pt[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:Pt[16],ImportAttribute:Pt[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:Pt[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:Pt[33],ImportSpecifier:["imported","local"],IndexedAccessType:Pt[34],InferredPredicate:Pt[1],InferTypeAnnotation:Pt[35],InterfaceDeclaration:Pt[22],InterfaceExtends:Pt[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:Pt[1],IntersectionTypeAnnotation:Pt[36],JsExpressionRoot:Pt[37],JsonRoot:Pt[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:Pt[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:Pt[1],JSXExpressionContainer:Pt[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:Pt[1],JSXMemberExpression:Pt[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:Pt[1],JSXSpreadAttribute:Pt[6],JSXSpreadChild:Pt[3],JSXText:Pt[1],KeyofTypeAnnotation:Pt[6],LabeledStatement:["label","body"],Literal:Pt[1],LogicalExpression:Pt[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:Pt[21],MatchExpression:Pt[39],MatchExpressionCase:Pt[40],MatchIdentifierPattern:Pt[21],MatchLiteralPattern:Pt[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:Pt[6],MatchStatement:Pt[39],MatchStatementCase:Pt[40],MatchUnaryPattern:Pt[6],MatchWildcardPattern:Pt[1],MemberExpression:Pt[38],MetaProperty:["meta","property"],MethodDefinition:Pt[42],MixedTypeAnnotation:Pt[1],ModuleExpression:Pt[10],NeverTypeAnnotation:Pt[1],NewExpression:Pt[9],NGChainedExpression:Pt[43],NGEmptyExpression:Pt[1],NGMicrosyntax:Pt[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:Pt[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:Pt[32],NGPipeExpression:["left","right","arguments"],NGRoot:Pt[37],NullableTypeAnnotation:Pt[23],NullLiteral:Pt[1],NullLiteralTypeAnnotation:Pt[1],NumberLiteralTypeAnnotation:Pt[1],NumberTypeAnnotation:Pt[1],NumericLiteral:Pt[1],ObjectExpression:["properties"],ObjectMethod:Pt[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:Pt[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:Pt[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:Pt[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:Pt[9],OptionalIndexedAccessType:Pt[34],OptionalMemberExpression:Pt[38],ParenthesizedExpression:Pt[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:Pt[1],PipelineTopicExpression:Pt[3],Placeholder:Pt[1],PrivateIdentifier:Pt[1],PrivateName:Pt[21],Program:Pt[7],Property:Pt[32],PropertyDefinition:Pt[14],QualifiedTypeIdentifier:Pt[44],QualifiedTypeofIdentifier:Pt[44],RegExpLiteral:Pt[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:Pt[6],SatisfiesExpression:Pt[4],SequenceExpression:Pt[43],SpreadElement:Pt[6],StaticBlock:Pt[10],StringLiteral:Pt[1],StringLiteralTypeAnnotation:Pt[1],StringTypeAnnotation:Pt[1],Super:Pt[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:Pt[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:Pt[1],TemplateLiteral:["quasis","expressions"],ThisExpression:Pt[1],ThisTypeAnnotation:Pt[1],ThrowStatement:Pt[6],TopicReference:Pt[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:Pt[45],TSAbstractKeyword:Pt[1],TSAbstractMethodDefinition:Pt[32],TSAbstractPropertyDefinition:Pt[45],TSAnyKeyword:Pt[1],TSArrayType:Pt[2],TSAsExpression:Pt[4],TSAsyncKeyword:Pt[1],TSBigIntKeyword:Pt[1],TSBooleanKeyword:Pt[1],TSCallSignatureDeclaration:Pt[46],TSClassImplements:Pt[47],TSConditionalType:Pt[17],TSConstructorType:Pt[46],TSConstructSignatureDeclaration:Pt[46],TSDeclareFunction:Pt[31],TSDeclareKeyword:Pt[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:Pt[26],TSEnumDeclaration:Pt[19],TSEnumMember:["id","initializer"],TSExportAssignment:Pt[3],TSExportKeyword:Pt[1],TSExternalModuleReference:Pt[3],TSFunctionType:Pt[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:Pt[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:Pt[35],TSInstantiationExpression:Pt[47],TSInterfaceBody:Pt[10],TSInterfaceDeclaration:Pt[22],TSInterfaceHeritage:Pt[47],TSIntersectionType:Pt[36],TSIntrinsicKeyword:Pt[1],TSJSDocAllType:Pt[1],TSJSDocNonNullableType:Pt[23],TSJSDocNullableType:Pt[23],TSJSDocUnknownType:Pt[1],TSLiteralType:Pt[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:Pt[10],TSModuleDeclaration:Pt[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:Pt[21],TSNeverKeyword:Pt[1],TSNonNullExpression:Pt[3],TSNullKeyword:Pt[1],TSNumberKeyword:Pt[1],TSObjectKeyword:Pt[1],TSOptionalType:Pt[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:Pt[23],TSPrivateKeyword:Pt[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:Pt[1],TSPublicKeyword:Pt[1],TSQualifiedName:Pt[5],TSReadonlyKeyword:Pt[1],TSRestType:Pt[23],TSSatisfiesExpression:Pt[4],TSStaticKeyword:Pt[1],TSStringKeyword:Pt[1],TSSymbolKeyword:Pt[1],TSTemplateLiteralType:["quasis","types"],TSThisType:Pt[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:Pt[23],TSTypeAssertion:Pt[4],TSTypeLiteral:Pt[26],TSTypeOperator:Pt[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:Pt[48],TSTypeParameterInstantiation:Pt[48],TSTypePredicate:Pt[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:Pt[1],TSUnionType:Pt[36],TSUnknownKeyword:Pt[1],TSVoidKeyword:Pt[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:Pt[24],TypeAnnotation:Pt[23],TypeCastExpression:Pt[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:Pt[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:Pt[48],TypeParameterInstantiation:Pt[48],TypePredicate:Pt[49],UnaryExpression:Pt[6],UndefinedTypeAnnotation:Pt[1],UnionTypeAnnotation:Pt[36],UnknownTypeAnnotation:Pt[1],UpdateExpression:Pt[6],V8IntrinsicIdentifier:Pt[1],VariableDeclaration:["declarations"],VariableDeclarator:Pt[27],Variance:Pt[1],VoidPattern:Pt[1],VoidTypeAnnotation:Pt[1],WhileStatement:Pt[25],WithStatement:["object","body"],YieldExpression:Pt[6]},rEt=GDe(iEt),n9e=rEt,gs=nni,Iv=ini,oEt=gs(["Block","CommentBlock","MultiLine"]),U_=oEt,sEt=gs(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),Mqe=sEt,aEt=gs(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),p8=aEt,Eme=oni,Oqe=sni,Ame=ani,Ksn=gs(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),Tp=gs(["ArrayExpression"]),iw=gs(["ObjectExpression"]),Dme=gs(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),Ysn=gs(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),UD=gs(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),v9=gs(["FunctionExpression","ArrowFunctionExpression"]),Uf=gs(["JSXElement","JSXFragment"]),rE=gs(["BinaryExpression","LogicalExpression","NGPipeExpression"]),Qsn=gs(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]),Zsn=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.fixme","test.step","test.describe","test.describe.only","test.describe.skip","test.describe.fixme","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"],KDe=e=>t=>(t?.type==="ChainExpression"&&(t=t.expression),e(t)),Za=KDe(gs(["CallExpression","OptionalCallExpression"])),su=KDe(gs(["MemberExpression","OptionalMemberExpression"])),Xsn=.25,Jsn=new Set(["!","-","+","~"]),i9e={"==":!0,"!=":!0,"===":!0,"!==":!0},BW={"*":!0,"/":!0,"%":!0},Jde={">>":!0,">>>":!0,"<<":!0},ean=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(n=>[n,t]))),qle=new WeakMap,Gle=new WeakMap,Or={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Rqe=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(n,i,r)=>!(e&Or.Leading&&!n.leading||e&Or.Trailing&&!n.trailing||e&Or.Dangling&&(n.leading||n.trailing)||e&Or.Block&&!U_(n)||e&Or.Line&&!p8(n)||e&Or.First&&i!==0||e&Or.Last&&i!==r.length-1||e&Or.PrettierIgnore&&!g9(n)||t&&!t(n))},QC=(e,{originalText:t})=>Xde(t,ta(e)),P_=gs(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),AC=gs(["TSUnionType","UnionTypeAnnotation"]),J7=gs(["TSIntersectionType","IntersectionTypeAnnotation"]),$D=gs(["TSConditionalType","ConditionalTypeAnnotation"]),lEt=e=>e?.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const",ehe=gs(["TSTypeAliasDeclaration","TypeAlias"]),cEt=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),tO=e=>{for(let t of e.quasis)delete t.value},Txt.ignoredProperties=cEt,uEt=Txt,tan=gs(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),nan=(e,[t])=>t?.type==="ComponentParameter"&&t.shorthand&&t.name===e&&t.local!==t.name||t?.type==="MatchObjectPatternProperty"&&t.shorthand&&t.key===e&&t.value!==t.key||t?.type==="ObjectProperty"&&t.shorthand&&t.key===e&&t.value!==t.key||t?.type==="Property"&&t.shorthand&&t.key===e&&!_G(t)&&t.value!==t.key,ian=(e,[t])=>!!(e.type==="FunctionExpression"&&t.type==="MethodDefinition"&&t.value===e&&gm(e).length===0&&!e.returnType&&!au(e.typeParameters)&&e.body),YDe=(e,[t])=>t?.typeAnnotation===e&&lEt(t),ran=(e,[t,...n])=>YDe(e,[t])||t?.typeName===e&&YDe(t,n),dEt=bni,fF=wni,rw=Cni,H0=Sni,Kle=new WeakMap,Fqe=xni,Tme=(e,t)=>p8(e)||!H0(t,ca(e),ta(e)),oan=gs(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]),san=gs(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","TSParameterProperty"]),Bqe=gs(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]),aan=gs(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),lan=gs(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]),jqe=gs(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),hEt={endOfLine:Ani,ownLine:Eni,remaining:Dni},fEt=hEt,pEt=Yni,can=gs(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]),gEt=Qni,qN="string",oE="array",xR="cursor",VL="indent",HL="align",WL="trim",ub="group",qD="fill",uC="if-break",UL="indent-if-break",$L="line-suffix",SD="line-suffix-boundary",av="line",sE="label",Px="break-parent",zqe=new Set([xR,VL,HL,WL,ub,qD,uC,UL,$L,SD,av,sE,Px]),ET=Zni,uan=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e),mEt=class extends Error{name="InvalidDocError";constructor(e){super(Xni(e)),this.doc=e}},y9=mEt,r9e={},kme=Jni,DC=LI,Vqe=LI,dan=LI,han=LI,Mx={type:Px},jW={type:xR},hr={type:av},hi={type:av,soft:!0},o9e={type:av,hard:!0},ki=[o9e,Mx],vEt={type:av,hard:!0,literal:!0},Hqe=[vEt,Mx],TC={type:SD},fan="cr",pan="crlf",gan="\r",man=`\r
`,yEt=`
`,van=yEt,yan={type:0},ban={type:1},s9e={value:"",length:0,queue:[],get root(){return s9e}},Um=Symbol("MODE_BREAK"),E1=Symbol("MODE_FLAT"),the=Symbol("DOC_FILL_PRINTED_LENGTH"),_an=fii,wan=pii,nhe=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"],bEt=e=>xii(e)||Eii(e)||Aii(e)||bii(e),Yle=0,_Et=Nxt.bind(void 0,"html"),wEt=Nxt.bind(void 0,"angular"),Can=[{test:bEt,print:Cii},{test:kii,print:Dii},{test:Iii,print:_Et},{test:_ii,print:wEt},{test:Pii,print:Lii}].map(({test:e,print:t})=>({test:e,print:Oii(t)})),CEt=Mii,San=/\*\/$/,xan=/^\/\*\*?/,Wqe=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Ean=/(^|\s+)\/\/([^\n\r]*)/g,a9e=/^(\r?\n)+/,Aan=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,l9e=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Dan=/(\r?\n|^) *\* ?/g,Uqe=[],Tan="format",kan=Vii,Qle=new WeakMap,Ian=$ii,Lan=gs(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]),AT=G8e,Nan=Jii,Pan=()=>!0,xG=class extends Error{name="ArgExpansionBailout"},Man=gs(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]),Oan=gs(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),SEt=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-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\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,xEt=e=>SEt.test(e),Ran=xEt,f2=ori,Fan=0,c9e=e=>e.type==="BinaryExpression"&&e.operator==="|",Ban=gs(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),jan=gs(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]),zan=new WeakSet,$qe=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,n)=>(n==="returnType"||n==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,n)=>n==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,n)=>n==="typeAnnotation"&&t.type==="Identifier",(t,n)=>n==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,n)=>n==="typeAnnotation"&&t.type==="Identifier",(t,n)=>n==="id"&&t.type==="DeclareHook")||e.match(t=>t.type==="TypeAnnotation",(t,n)=>n==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":",ihe=hri,Van=e=>((e.type==="ChainExpression"||e.type==="TSNonNullExpression")&&(e=e.expression),Za(e)&&Lb(e).length>0),Han=Kon,Wan=["require","require.resolve","require.resolve.paths","import.meta.resolve"],H$=new WeakMap,Uan=({node:e,key:t,parent:n})=>t==="value"&&e.type==="FunctionExpression"&&(n.type==="ObjectMethod"||n.type==="ClassMethod"||n.type==="ClassPrivateMethod"||n.type==="MethodDefinition"||n.type==="TSAbstractMethodDefinition"||n.type==="TSDeclareMethod"||n.type==="Property"&&_G(n)),Ime=({node:e,parent:t})=>e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1&&(Array.isArray(t.directives)&&t.directives.length===0||!t.directives),EEt=class extends Error{name="UnexpectedNodeError";constructor(e,t,n="type"){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},pF=EEt,AEt=class{#e;constructor(e){this.#e=new Set(e)}getLeadingWhitespaceCount(e){let t=this.#e,n=0;for(let i=0;i<e.length&&t.has(e.charAt(i));i++)n++;return n}getTrailingWhitespaceCount(e){let t=this.#e,n=0;for(let i=e.length-1;i>=0&&t.has(e.charAt(i));i--)n++;return n}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return this.#e.has(e.charAt(0))}hasTrailingWhitespace(e){return this.#e.has(gl(0,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let n=`[${Vri([...this.#e].join(""))}]+`,i=new RegExp(t?`(${n})`:n,"u");return e.split(i)}hasWhitespaceCharacter(e){let t=this.#e;return Array.prototype.some.call(e,n=>t.has(n))}hasNonWhitespaceCharacter(e){let t=this.#e;return Array.prototype.some.call(e,n=>!t.has(n))}isWhitespaceOnly(e){let t=this.#e;return Array.prototype.every.call(e,n=>t.has(n))}#t(e){let t=Number.POSITIVE_INFINITY;for(let n of e.split(`
`)){if(n.length===0)continue;let i=this.getLeadingWhitespaceCount(n);if(i===0)return 0;n.length!==i&&i<t&&(t=i)}return t===Number.POSITIVE_INFINITY?0:t}dedentString(e){let t=this.#t(e);return t===0?e:e.split(`
`).map(n=>n.slice(t)).join(`
`)}},DEt=AEt,W$=new DEt(` 
\r	`),Zle=e=>e===""||e===hr||e===ki||e===hi,$an=gs(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]),rhe=soi,qan=gs(["CallExpression","OptionalCallExpression","AssignmentExpression"]),Xle=new WeakMap,Gan=e=>e.type==="SequenceExpression",TEt=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let n=this[t];if(e(n,t,this))return n}},kEt=tie("findLast",function(){if(Array.isArray(this))return TEt}),Kan=kEt,IEt=yoi,u9e=gs(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),qqe=e=>{if(e.computed||e.typeAnnotation)return!1;let{type:t,name:n}=e.key;return t==="Identifier"&&(n==="static"||n==="get"||n==="set")},Yan=gs(["TSPropertySignature"]),Qan=IEt("heritageGroup"),Zan=gs(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]),Jle=new WeakMap,Xan=gs(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]),Jan=gs(["FunctionExpression","ArrowFunctionExpression"]),eln="use strict",UY=Ioi,Gqe=gs(["ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportDeclaration","DeclareExportAllDeclaration"]),tln=gs(["EnumBooleanBody","EnumNumberBody","EnumBigIntBody","EnumStringBody","EnumSymbolBody"]),Kqe=e=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default,nln=gs(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]),iln=e=>{let{attributes:t}=e;if(t.length!==1)return!1;let[n]=t,{type:i,key:r,value:o}=n;return i==="ImportAttribute"&&(r.type==="Identifier"&&r.name==="type"||Dp(r)&&r.value==="type")&&Dp(o)&&!cr(n)&&!cr(r)&&!cr(o)},rln=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]),oln=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]),ece=e=>[os("("),Ci([hi,e]),hi,os(")")],sln=gs(["SatisfiesExpression","TSSatisfiesExpression"]),Yqe=gs(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]),aln=gs(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]),QDe=Csi,LEt={experimental_avoidAstMutation:!0},NEt=[{name:"JSON.stringify",type:"data",aceMode:"json",extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",aceMode:"json",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",aceMode:"javascript",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],tmScope:"source.json.comments",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",aceMode:"json5",extensions:[".json5"],tmScope:"source.js",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],ZDe={},eie(ZDe,{getVisitorKeys:()=>OEt,massageAstNode:()=>Kxt,print:()=>Ssi}),SM=[[]],PEt={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:SM[0],BooleanLiteral:SM[0],StringLiteral:SM[0],NumericLiteral:SM[0],Identifier:SM[0],TemplateLiteral:["quasis"],TemplateElement:SM[0]},MEt=GDe(PEt),OEt=MEt,REt=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]),Kxt.ignoredProperties=REt,F4={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},_A="JavaScript",FEt={arrowParens:{category:_A,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:F4.bracketSameLine,objectWrap:F4.objectWrap,bracketSpacing:F4.bracketSpacing,jsxBracketSameLine:{category:_A,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:_A,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:_A,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:_A,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:F4.singleQuote,jsxSingleQuote:{category:_A,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:_A,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:_A,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:F4.singleAttributePerLine},d9e=FEt,h9e={estree:UDe,"estree-json":ZDe},f9e=[...Qxt,...NEt]}}),Esi=Ot({"../node_modules/.pnpm/prettier@3.8.1/node_modules/prettier/plugins/babel.js"(e,t){(function(n){function i(){var o=n();return o.default||o}if(typeof e=="object"&&typeof t=="object")t.exports=i();else if(typeof define=="function"&&define.amd)define(i);else{var r=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};r.prettierPlugins=r.prettierPlugins||{},r.prettierPlugins.babel=i()}})(function(){var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=(k,C)=>{for(var O in C)n(k,O,{get:C[O],enumerable:!0})},a=(k,C,O,z)=>{if(C&&typeof C=="object"||typeof C=="function")for(let ue of r(C))!o.call(k,ue)&&ue!==O&&n(k,ue,{get:()=>C[ue],enumerable:!(z=i(C,ue))||z.enumerable});return k},l=k=>a(n({},"__esModule",{value:!0}),k),c={};s(c,{parsers:()=>vo});var u={};s(u,{__babel_estree:()=>zn,__js_expression:()=>Ei,__ts_expression:()=>sn,__vue_event_binding:()=>jt,__vue_expression:()=>Ei,__vue_ts_event_binding:()=>jn,__vue_ts_expression:()=>sn,babel:()=>jt,"babel-flow":()=>vn,"babel-ts":()=>jn});function d(k,C){if(k==null)return{};var O={};for(var z in k)if({}.hasOwnProperty.call(k,z)){if(C.indexOf(z)!==-1)continue;O[z]=k[z]}return O}var h=class{line;column;index;constructor(k,C,O){this.line=k,this.column=C,this.index=O}},f=class{start;end;filename;identifierName;constructor(k,C){this.start=k,this.end=C}};function p(k,C){let{line:O,column:z,index:ue}=k;return new h(O,z+C,ue+C)}var g="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",m={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:g},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:g}},v={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},y=k=>k.type==="UpdateExpression"?v.UpdateExpression[`${k.prefix}`]:v[k.type],b={AccessorIsGenerator:({kind:k})=>`A ${k}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:k})=>`Missing initializer in ${k} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:k})=>`\`${k}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:k,exportName:C})=>`A string literal cannot be used as an exported binding without \`from\`.
- Did you mean \`export { '${k}' as '${C}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:k})=>`'${k==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:k})=>`Unsyntactic ${k==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:k})=>`A string literal cannot be used as an imported binding.
- Did you mean \`import { "${k}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:k})=>`Expected number in radix ${k}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:k})=>`Escape sequence in keyword ${k}.`,InvalidIdentifier:({identifierName:k})=>`Invalid identifier ${k}.`,InvalidLhs:({ancestor:k})=>`Invalid left-hand side in ${y(k)}.`,InvalidLhsBinding:({ancestor:k})=>`Binding invalid left-hand side in ${y(k)}.`,InvalidLhsOptionalChaining:({ancestor:k})=>`Invalid optional chaining in the left-hand side of ${y(k)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:k})=>`Unexpected character '${k}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:k})=>`Private name #${k} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:k})=>`Label '${k}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:k})=>`This experimental syntax requires enabling the parser plugin: ${k.map(C=>JSON.stringify(C)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:k})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${k.map(C=>JSON.stringify(C)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:k})=>`Duplicate key "${k}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:k})=>`An export name cannot include a lone surrogate, found '\\u${k.toString(16)}'.`,ModuleExportUndefined:({localName:k})=>`Export '${k}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:k})=>`Private names are only allowed in property accesses (\`obj.#${k}\`) or in \`in\` expressions (\`#${k} in obj\`).`,PrivateNameRedeclaration:({identifierName:k})=>`Duplicate private name #${k}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:k})=>`Unexpected keyword '${k}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:k})=>`Unexpected reserved word '${k}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:k,unexpected:C})=>`Unexpected token${C?` '${C}'.`:""}${k?`, expected "${k}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:k,onlyValidPropertyName:C})=>`The only valid meta property for ${k} is ${k}.${C}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:k})=>`Identifier '${k}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},w={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:k})=>`Assigning to '${k}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:k})=>`Binding '${k}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},E={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:k})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(k)}\`.`},A=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),D=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:k})=>`Invalid topic token ${k}. In order to use ${k} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${k}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:k})=>`Hack-style pipe body cannot be an unparenthesized ${y({type:k})}; please wrap it in parentheses.`},{}),T=["message"];function M(k,C,O){Object.defineProperty(k,C,{enumerable:!1,configurable:!0,value:O})}function P({toMessage:k,code:C,reasonCode:O,syntaxPlugin:z}){let ue=O==="MissingPlugin"||O==="MissingOneOfPlugins";return function Ne($e,ot){let vt=new SyntaxError;return vt.code=C,vt.reasonCode=O,vt.loc=$e,vt.pos=$e.index,vt.syntaxPlugin=z,ue&&(vt.missingPlugin=ot.missingPlugin),M(vt,"clone",function(xt={}){let{line:Hn,column:Oi,index:fo}=xt.loc??$e;return Ne(new h(Hn,Oi,fo),Object.assign({},ot,xt.details))}),M(vt,"details",ot),Object.defineProperty(vt,"message",{configurable:!0,get(){let xt=`${k(ot)} (${$e.line}:${$e.column})`;return this.message=xt,xt},set(xt){Object.defineProperty(this,"message",{value:xt,writable:!0})}}),vt}}function F(k,C){if(Array.isArray(k))return z=>F(z,k[0]);let O={};for(let z of Object.keys(k)){let ue=k[z],Ne=typeof ue=="string"?{message:()=>ue}:typeof ue=="function"?{message:ue}:ue,{message:$e}=Ne,ot=d(Ne,T),vt=typeof $e=="string"?()=>$e:$e;O[z]=P(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:z,toMessage:vt},C?{syntaxPlugin:C}:{},ot))}return O}var N=Object.assign({},F(m),F(b),F(w),F(E),F`pipelineOperator`(D));function j(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!0,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function W(k){let C=j();if(k==null)return C;if(k.annexB!=null&&k.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let O of Object.keys(C))k[O]!=null&&(C[O]=k[O]);if(C.startLine===1)k.startIndex==null&&C.startColumn>0?C.startIndex=C.startColumn:k.startColumn==null&&C.startIndex>0&&(C.startColumn=C.startIndex);else if(k.startColumn==null||k.startIndex==null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(C.sourceType==="commonjs"){if(k.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(k.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(k.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return C}var{defineProperty:J}=Object,ee=(k,C)=>{k&&J(k,C,{enumerable:!1,value:k[C]})};function Q(k){return ee(k.loc.start,"index"),ee(k.loc.end,"index"),k}var H=k=>class extends k{parse(){let C=Q(super.parse());return this.optionFlags&256&&(C.tokens=C.tokens.map(Q)),C}parseRegExpLiteral({pattern:C,flags:O}){let z=null;try{z=new RegExp(C,O)}catch{}let ue=this.estreeParseLiteral(z);return ue.regex={pattern:C,flags:O},ue}parseBigIntLiteral(C){let O;try{O=BigInt(C)}catch{O=null}let z=this.estreeParseLiteral(O);return z.bigint=String(z.value||C),z}parseDecimalLiteral(C){let O=this.estreeParseLiteral(null);return O.decimal=String(O.value||C),O}estreeParseLiteral(C){return this.parseLiteral(C,"Literal")}parseStringLiteral(C){return this.estreeParseLiteral(C)}parseNumericLiteral(C){return this.estreeParseLiteral(C)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(C){return this.estreeParseLiteral(C)}estreeParseChainExpression(C,O){let z=this.startNodeAtNode(C);return z.expression=C,this.finishNodeAt(z,"ChainExpression",O)}directiveToStmt(C){let O=C.value;delete C.value,this.castNodeTo(O,"Literal"),O.raw=O.extra.raw,O.value=O.extra.expressionValue;let z=this.castNodeTo(C,"ExpressionStatement");return z.expression=O,z.directive=O.extra.rawValue,delete O.extra,z}fillOptionalPropertiesForTSESLint(C){}cloneEstreeStringLiteral(C){let{start:O,end:z,loc:ue,range:Ne,raw:$e,value:ot}=C,vt=Object.create(C.constructor.prototype);return vt.type="Literal",vt.start=O,vt.end=z,vt.loc=ue,vt.range=Ne,vt.raw=$e,vt.value=ot,vt}initFunction(C,O){super.initFunction(C,O),C.expression=!1}checkDeclaration(C){C!=null&&this.isObjectProperty(C)?this.checkDeclaration(C.value):super.checkDeclaration(C)}getObjectOrClassMethodParams(C){return C.value.params}isValidDirective(C){return C.type==="ExpressionStatement"&&C.expression.type==="Literal"&&typeof C.expression.value=="string"&&!C.expression.extra?.parenthesized}parseBlockBody(C,O,z,ue,Ne){super.parseBlockBody(C,O,z,ue,Ne);let $e=C.directives.map(ot=>this.directiveToStmt(ot));C.body=$e.concat(C.body),delete C.directives}parsePrivateName(){let C=super.parsePrivateName();return this.convertPrivateNameToPrivateIdentifier(C)}convertPrivateNameToPrivateIdentifier(C){let O=super.getPrivateNameSV(C);return delete C.id,C.name=O,this.castNodeTo(C,"PrivateIdentifier")}isPrivateName(C){return C.type==="PrivateIdentifier"}getPrivateNameSV(C){return C.name}parseLiteral(C,O){let z=super.parseLiteral(C,O);return z.raw=z.extra.raw,delete z.extra,z}parseFunctionBody(C,O,z=!1){super.parseFunctionBody(C,O,z),C.expression=C.body.type!=="BlockStatement"}parseMethod(C,O,z,ue,Ne,$e,ot=!1){let vt=this.startNode();vt.kind=C.kind,vt=super.parseMethod(vt,O,z,ue,Ne,$e,ot),delete vt.kind;let{typeParameters:xt}=C;xt&&(delete C.typeParameters,vt.typeParameters=xt,this.resetStartLocationFromNode(vt,xt));let Hn=this.castNodeTo(vt,this.hasPlugin("typescript")&&!vt.body?"TSEmptyBodyFunctionExpression":"FunctionExpression");return C.value=Hn,$e==="ClassPrivateMethod"&&(C.computed=!1),this.hasPlugin("typescript")&&C.abstract?(delete C.abstract,this.finishNode(C,"TSAbstractMethodDefinition")):$e==="ObjectMethod"?(C.kind==="method"&&(C.kind="init"),C.shorthand=!1,this.finishNode(C,"Property")):this.finishNode(C,"MethodDefinition")}nameIsConstructor(C){return C.type==="Literal"?C.value==="constructor":super.nameIsConstructor(C)}parseClassProperty(...C){let O=super.parseClassProperty(...C);return O.abstract&&this.hasPlugin("typescript")?(delete O.abstract,this.castNodeTo(O,"TSAbstractPropertyDefinition")):this.castNodeTo(O,"PropertyDefinition"),O}parseClassPrivateProperty(...C){let O=super.parseClassPrivateProperty(...C);return O.abstract&&this.hasPlugin("typescript")?this.castNodeTo(O,"TSAbstractPropertyDefinition"):this.castNodeTo(O,"PropertyDefinition"),O.computed=!1,O}parseClassAccessorProperty(C){let O=super.parseClassAccessorProperty(C);return O.abstract&&this.hasPlugin("typescript")?(delete O.abstract,this.castNodeTo(O,"TSAbstractAccessorProperty")):this.castNodeTo(O,"AccessorProperty"),O}parseObjectProperty(C,O,z,ue){let Ne=super.parseObjectProperty(C,O,z,ue);return Ne&&(Ne.kind="init",this.castNodeTo(Ne,"Property")),Ne}finishObjectProperty(C){return C.kind="init",this.finishNode(C,"Property")}isValidLVal(C,O,z,ue){return C==="Property"?"value":super.isValidLVal(C,O,z,ue)}isAssignable(C,O){return C!=null&&this.isObjectProperty(C)?this.isAssignable(C.value,O):super.isAssignable(C,O)}toAssignable(C,O=!1){if(C!=null&&this.isObjectProperty(C)){let{key:z,value:ue}=C;this.isPrivateName(z)&&this.classScope.usePrivateName(this.getPrivateNameSV(z),z.loc.start),this.toAssignable(ue,O)}else super.toAssignable(C,O)}toAssignableObjectExpressionProp(C,O,z){C.type==="Property"&&(C.kind==="get"||C.kind==="set")?this.raise(N.PatternHasAccessor,C.key):C.type==="Property"&&C.method?this.raise(N.PatternHasMethod,C.key):super.toAssignableObjectExpressionProp(C,O,z)}finishCallExpression(C,O){let z=super.finishCallExpression(C,O);return z.callee.type==="Import"?(this.castNodeTo(z,"ImportExpression"),z.source=z.arguments[0],z.options=z.arguments[1]??null,delete z.arguments,delete z.callee):z.type==="OptionalCallExpression"?this.castNodeTo(z,"CallExpression"):z.optional=!1,z}toReferencedArguments(C){C.type!=="ImportExpression"&&super.toReferencedArguments(C)}parseExport(C,O){let z=this.state.lastTokStartLoc,ue=super.parseExport(C,O);switch(ue.type){case"ExportAllDeclaration":ue.exported=null;break;case"ExportNamedDeclaration":ue.specifiers.length===1&&ue.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(ue,"ExportAllDeclaration"),ue.exported=ue.specifiers[0].exported,delete ue.specifiers);case"ExportDefaultDeclaration":{let{declaration:Ne}=ue;Ne?.type==="ClassDeclaration"&&Ne.decorators?.length>0&&Ne.start===ue.start&&this.resetStartLocation(ue,z)}break}return ue}stopParseSubscript(C,O){let z=super.stopParseSubscript(C,O);return O.optionalChainMember?this.estreeParseChainExpression(z,C.loc.end):z}parseMember(C,O,z,ue,Ne){let $e=super.parseMember(C,O,z,ue,Ne);return $e.type==="OptionalMemberExpression"?this.castNodeTo($e,"MemberExpression"):$e.optional=!1,$e}isOptionalMemberExpression(C){return C.type==="ChainExpression"?C.expression.type==="MemberExpression":super.isOptionalMemberExpression(C)}hasPropertyAsPrivateName(C){return C.type==="ChainExpression"&&(C=C.expression),super.hasPropertyAsPrivateName(C)}isObjectProperty(C){return C.type==="Property"&&C.kind==="init"&&!C.method}isObjectMethod(C){return C.type==="Property"&&(C.method||C.kind==="get"||C.kind==="set")}castNodeTo(C,O){let z=super.castNodeTo(C,O);return this.fillOptionalPropertiesForTSESLint(z),z}cloneIdentifier(C){let O=super.cloneIdentifier(C);return this.fillOptionalPropertiesForTSESLint(O),O}cloneStringLiteral(C){return C.type==="Literal"?this.cloneEstreeStringLiteral(C):super.cloneStringLiteral(C)}finishNodeAt(C,O,z){return Q(super.finishNodeAt(C,O,z))}finishNode(C,O){let z=super.finishNode(C,O);return this.fillOptionalPropertiesForTSESLint(z),z}resetStartLocation(C,O){super.resetStartLocation(C,O),Q(C)}resetEndLocation(C,O=this.state.lastTokEndLoc){super.resetEndLocation(C,O),Q(C)}},q=class{constructor(k,C){this.token=k,this.preserveSpace=!!C}token;preserveSpace},le={brace:new q("{"),j_oTag:new q("<tag"),j_cTag:new q("</tag"),j_expr:new q("<tag>...</tag>",!0)},Y=!0,G=!0,pe=!0,U=!0,K=!0,ie=!0,ce=class{label;keyword;beforeExpr;startsExpr;rightAssociative;isLoop;isAssign;prefix;postfix;binop;constructor(k,C={}){this.label=k,this.keyword=C.keyword,this.beforeExpr=!!C.beforeExpr,this.startsExpr=!!C.startsExpr,this.rightAssociative=!!C.rightAssociative,this.isLoop=!!C.isLoop,this.isAssign=!!C.isAssign,this.prefix=!!C.prefix,this.postfix=!!C.postfix,this.binop=C.binop!=null?C.binop:null}},de=new Map;function oe(k,C={}){C.keyword=k;let O=Ie(k,C);return de.set(k,O),O}function me(k,C){return Ie(k,{beforeExpr:Y,binop:C})}var Ce=-1,Se=[],De=[],Me=[],qe=[],$=[],he=[];function Ie(k,C={}){return++Ce,De.push(k),Me.push(C.binop??-1),qe.push(C.beforeExpr??!1),$.push(C.startsExpr??!1),he.push(C.prefix??!1),Se.push(new ce(k,C)),Ce}function Be(k,C={}){return++Ce,de.set(k,Ce),De.push(k),Me.push(C.binop??-1),qe.push(C.beforeExpr??!1),$.push(C.startsExpr??!1),he.push(C.prefix??!1),Se.push(new ce("name",C)),Ce}var ze={bracketL:Ie("[",{beforeExpr:Y,startsExpr:G}),bracketHashL:Ie("#[",{beforeExpr:Y,startsExpr:G}),bracketBarL:Ie("[|",{beforeExpr:Y,startsExpr:G}),bracketR:Ie("]"),bracketBarR:Ie("|]"),braceL:Ie("{",{beforeExpr:Y,startsExpr:G}),braceBarL:Ie("{|",{beforeExpr:Y,startsExpr:G}),braceHashL:Ie("#{",{beforeExpr:Y,startsExpr:G}),braceR:Ie("}"),braceBarR:Ie("|}"),parenL:Ie("(",{beforeExpr:Y,startsExpr:G}),parenR:Ie(")"),comma:Ie(",",{beforeExpr:Y}),semi:Ie(";",{beforeExpr:Y}),colon:Ie(":",{beforeExpr:Y}),doubleColon:Ie("::",{beforeExpr:Y}),dot:Ie("."),question:Ie("?",{beforeExpr:Y}),questionDot:Ie("?."),arrow:Ie("=>",{beforeExpr:Y}),template:Ie("template"),ellipsis:Ie("...",{beforeExpr:Y}),backQuote:Ie("`",{startsExpr:G}),dollarBraceL:Ie("${",{beforeExpr:Y,startsExpr:G}),templateTail:Ie("...`",{startsExpr:G}),templateNonTail:Ie("...${",{beforeExpr:Y,startsExpr:G}),at:Ie("@"),hash:Ie("#",{startsExpr:G}),interpreterDirective:Ie("#!..."),eq:Ie("=",{beforeExpr:Y,isAssign:U}),assign:Ie("_=",{beforeExpr:Y,isAssign:U}),slashAssign:Ie("_=",{beforeExpr:Y,isAssign:U}),xorAssign:Ie("_=",{beforeExpr:Y,isAssign:U}),moduloAssign:Ie("_=",{beforeExpr:Y,isAssign:U}),incDec:Ie("++/--",{prefix:K,postfix:ie,startsExpr:G}),bang:Ie("!",{beforeExpr:Y,prefix:K,startsExpr:G}),tilde:Ie("~",{beforeExpr:Y,prefix:K,startsExpr:G}),doubleCaret:Ie("^^",{startsExpr:G}),doubleAt:Ie("@@",{startsExpr:G}),pipeline:me("|>",0),nullishCoalescing:me("??",1),logicalOR:me("||",1),logicalAND:me("&&",2),bitwiseOR:me("|",3),bitwiseXOR:me("^",4),bitwiseAND:me("&",5),equality:me("==/!=/===/!==",6),lt:me("</>/<=/>=",7),gt:me("</>/<=/>=",7),relational:me("</>/<=/>=",7),bitShift:me("<</>>/>>>",8),bitShiftL:me("<</>>/>>>",8),bitShiftR:me("<</>>/>>>",8),plusMin:Ie("+/-",{beforeExpr:Y,binop:9,prefix:K,startsExpr:G}),modulo:Ie("%",{binop:10,startsExpr:G}),star:Ie("*",{binop:10}),slash:me("/",10),exponent:Ie("**",{beforeExpr:Y,binop:11,rightAssociative:!0}),_in:oe("in",{beforeExpr:Y,binop:7}),_instanceof:oe("instanceof",{beforeExpr:Y,binop:7}),_break:oe("break"),_case:oe("case",{beforeExpr:Y}),_catch:oe("catch"),_continue:oe("continue"),_debugger:oe("debugger"),_default:oe("default",{beforeExpr:Y}),_else:oe("else",{beforeExpr:Y}),_finally:oe("finally"),_function:oe("function",{startsExpr:G}),_if:oe("if"),_return:oe("return",{beforeExpr:Y}),_switch:oe("switch"),_throw:oe("throw",{beforeExpr:Y,prefix:K,startsExpr:G}),_try:oe("try"),_var:oe("var"),_const:oe("const"),_with:oe("with"),_new:oe("new",{beforeExpr:Y,startsExpr:G}),_this:oe("this",{startsExpr:G}),_super:oe("super",{startsExpr:G}),_class:oe("class",{startsExpr:G}),_extends:oe("extends",{beforeExpr:Y}),_export:oe("export"),_import:oe("import",{startsExpr:G}),_null:oe("null",{startsExpr:G}),_true:oe("true",{startsExpr:G}),_false:oe("false",{startsExpr:G}),_typeof:oe("typeof",{beforeExpr:Y,prefix:K,startsExpr:G}),_void:oe("void",{beforeExpr:Y,prefix:K,startsExpr:G}),_delete:oe("delete",{beforeExpr:Y,prefix:K,startsExpr:G}),_do:oe("do",{isLoop:pe,beforeExpr:Y}),_for:oe("for",{isLoop:pe}),_while:oe("while",{isLoop:pe}),_as:Be("as",{startsExpr:G}),_assert:Be("assert",{startsExpr:G}),_async:Be("async",{startsExpr:G}),_await:Be("await",{startsExpr:G}),_defer:Be("defer",{startsExpr:G}),_from:Be("from",{startsExpr:G}),_get:Be("get",{startsExpr:G}),_let:Be("let",{startsExpr:G}),_meta:Be("meta",{startsExpr:G}),_of:Be("of",{startsExpr:G}),_sent:Be("sent",{startsExpr:G}),_set:Be("set",{startsExpr:G}),_source:Be("source",{startsExpr:G}),_static:Be("static",{startsExpr:G}),_using:Be("using",{startsExpr:G}),_yield:Be("yield",{startsExpr:G}),_asserts:Be("asserts",{startsExpr:G}),_checks:Be("checks",{startsExpr:G}),_exports:Be("exports",{startsExpr:G}),_global:Be("global",{startsExpr:G}),_implements:Be("implements",{startsExpr:G}),_intrinsic:Be("intrinsic",{startsExpr:G}),_infer:Be("infer",{startsExpr:G}),_is:Be("is",{startsExpr:G}),_mixins:Be("mixins",{startsExpr:G}),_proto:Be("proto",{startsExpr:G}),_require:Be("require",{startsExpr:G}),_satisfies:Be("satisfies",{startsExpr:G}),_keyof:Be("keyof",{startsExpr:G}),_readonly:Be("readonly",{startsExpr:G}),_unique:Be("unique",{startsExpr:G}),_abstract:Be("abstract",{startsExpr:G}),_declare:Be("declare",{startsExpr:G}),_enum:Be("enum",{startsExpr:G}),_module:Be("module",{startsExpr:G}),_namespace:Be("namespace",{startsExpr:G}),_interface:Be("interface",{startsExpr:G}),_type:Be("type",{startsExpr:G}),_opaque:Be("opaque",{startsExpr:G}),name:Ie("name",{startsExpr:G}),placeholder:Ie("%%",{startsExpr:G}),string:Ie("string",{startsExpr:G}),num:Ie("num",{startsExpr:G}),bigint:Ie("bigint",{startsExpr:G}),decimal:Ie("decimal",{startsExpr:G}),regexp:Ie("regexp",{startsExpr:G}),privateName:Ie("#name",{startsExpr:G}),eof:Ie("eof"),jsxName:Ie("jsxName"),jsxText:Ie("jsxText",{beforeExpr:Y}),jsxTagStart:Ie("jsxTagStart",{startsExpr:G}),jsxTagEnd:Ie("jsxTagEnd")};function Ye(k){return k>=93&&k<=133}function it(k){return k<=92}function ft(k){return k>=58&&k<=133}function ct(k){return k>=58&&k<=137}function et(k){return qe[k]}function ut(k){return $[k]}function wt(k){return k>=29&&k<=33}function pt(k){return k>=129&&k<=131}function _t(k){return k>=90&&k<=92}function Rt(k){return k>=58&&k<=92}function Yt(k){return k>=39&&k<=59}function Ut(k){return k===34}function Gt(k){return he[k]}function Kt(k){return k>=121&&k<=123}function ln(k){return k>=124&&k<=130}function pn(k){return De[k]}function wn(k){return Me[k]}function Mn(k){return k===57}function Yn(k){return k>=24&&k<=25}function di(k){return Se[k]}var Li="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ke="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",Z=new RegExp("["+Li+"]"),ne=new RegExp("["+Li+ke+"]");Li=ke=null;var V=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],re=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function ge(k,C){let O=65536;for(let z=0,ue=C.length;z<ue;z+=2){if(O+=C[z],O>k)return!1;if(O+=C[z+1],O>=k)return!0}return!1}function we(k){return k<65?k===36:k<=90?!0:k<97?k===95:k<=122?!0:k<=65535?k>=170&&Z.test(String.fromCharCode(k)):ge(k,V)}function ve(k){return k<48?k===36:k<58?!0:k<65?!1:k<=90?!0:k<97?k===95:k<=122?!0:k<=65535?k>=170&&ne.test(String.fromCharCode(k)):ge(k,V)||ge(k,re)}var _e={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Ee=new Set(_e.keyword),Le=new Set(_e.strict),be=new Set(_e.strictBind);function Fe(k,C){return C&&k==="await"||k==="enum"}function Ze(k,C){return Fe(k,C)||Le.has(k)}function Ve(k){return be.has(k)}function dt(k,C){return Ze(k,C)||Ve(k)}function Vt(k){return Ee.has(k)}function Xe(k,C,O){return k===64&&C===64&&we(O)}var Ht=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Qt(k){return Ht.has(k)}var Dt=class{flags=0;names=new Map;firstLexicalName="";constructor(k){this.flags=k}},Tt=class{parser;scopeStack=[];inModule;undefinedExports=new Map;constructor(k,C){this.parser=k,this.inModule=C}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let k=this.currentThisScopeFlags();return(k&64)>0&&(k&2)===0}get inStaticBlock(){for(let k=this.scopeStack.length-1;;k--){let{flags:C}=this.scopeStack[k];if(C&128)return!0;if(C&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(k){return new Dt(k)}enter(k){this.scopeStack.push(this.createScope(k))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(k){return!!(k.flags&130||!this.parser.inModule&&k.flags&1)}declareName(k,C,O){let z=this.currentScope();if(C&8||C&16){this.checkRedeclarationInScope(z,k,C,O);let ue=z.names.get(k)||0;C&16?ue=ue|4:(z.firstLexicalName||(z.firstLexicalName=k),ue=ue|2),z.names.set(k,ue),C&8&&this.maybeExportDefined(z,k)}else if(C&4)for(let ue=this.scopeStack.length-1;ue>=0&&(z=this.scopeStack[ue],this.checkRedeclarationInScope(z,k,C,O),z.names.set(k,(z.names.get(k)||0)|1),this.maybeExportDefined(z,k),!(z.flags&1667));--ue);this.parser.inModule&&z.flags&1&&this.undefinedExports.delete(k)}maybeExportDefined(k,C){this.parser.inModule&&k.flags&1&&this.undefinedExports.delete(C)}checkRedeclarationInScope(k,C,O,z){this.isRedeclaredInScope(k,C,O)&&this.parser.raise(N.VarRedeclaration,z,{identifierName:C})}isRedeclaredInScope(k,C,O){if(!(O&1))return!1;if(O&8)return k.names.has(C);let z=k.names.get(C)||0;return O&16?(z&2)>0||!this.treatFunctionsAsVarInScope(k)&&(z&1)>0:(z&2)>0&&!(k.flags&8&&k.firstLexicalName===C)||!this.treatFunctionsAsVarInScope(k)&&(z&4)>0}checkLocalExport(k){let{name:C}=k;this.scopeStack[0].names.has(C)||this.undefinedExports.set(C,k.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let k=this.scopeStack.length-1;;k--){let{flags:C}=this.scopeStack[k];if(C&1667)return C}}currentThisScopeFlags(){for(let k=this.scopeStack.length-1;;k--){let{flags:C}=this.scopeStack[k];if(C&1731&&!(C&4))return C}}},en=class extends Dt{declareFunctions=new Set},Bt=class extends Tt{createScope(k){return new en(k)}declareName(k,C,O){let z=this.currentScope();if(C&2048){this.checkRedeclarationInScope(z,k,C,O),this.maybeExportDefined(z,k),z.declareFunctions.add(k);return}super.declareName(k,C,O)}isRedeclaredInScope(k,C,O){if(super.isRedeclaredInScope(k,C,O))return!0;if(O&2048&&!k.declareFunctions.has(C)){let z=k.names.get(C);return(z&4)>0||(z&2)>0}return!1}checkLocalExport(k){this.scopeStack[0].declareFunctions.has(k.name)||super.checkLocalExport(k)}},Ue=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Lt=F`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:k})=>`Cannot overwrite reserved type ${k}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:k,enumName:C})=>`Boolean enum members need to be initialized. Use either \`${k} = true,\` or \`${k} = false,\` in enum \`${C}\`.`,EnumDuplicateMemberName:({memberName:k,enumName:C})=>`Enum member names need to be unique, but the name \`${k}\` has already been used before in enum \`${C}\`.`,EnumInconsistentMemberValues:({enumName:k})=>`Enum \`${k}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:k,enumName:C})=>`Enum type \`${k}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${C}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:k})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${k}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:k,memberName:C,explicitType:O})=>`Enum \`${k}\` has type \`${O}\`, so the initializer of \`${C}\` needs to be a ${O} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:k,memberName:C})=>`Symbol enum members cannot be initialized. Use \`${C},\` in enum \`${k}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:k,memberName:C})=>`The enum member initializer for \`${C}\` needs to be a literal (either a boolean, number, or string) in enum \`${k}\`.`,EnumInvalidMemberName:({enumName:k,memberName:C,suggestion:O})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${C}\`, consider using \`${O}\`, in enum \`${k}\`.`,EnumNumberMemberNotInitialized:({enumName:k,memberName:C})=>`Number enum members need to be initialized, e.g. \`${C} = 1\` in enum \`${k}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:k})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${k}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:k})=>`Unexpected reserved type ${k}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:k,suggestion:C})=>`\`declare export ${k}\` is not supported. Use \`${C}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function at(k){return k.type==="DeclareExportAllDeclaration"||k.type==="DeclareExportDeclaration"&&(!k.declaration||k.declaration.type!=="TypeAlias"&&k.declaration.type!=="InterfaceDeclaration")}function cn(k){return k.importKind==="type"||k.importKind==="typeof"}var Bn={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function Tn(k,C){let O=[],z=[];for(let ue=0;ue<k.length;ue++)(C(k[ue],ue,k)?O:z).push(k[ue]);return[O,z]}var xi=/\*?\s*@((?:no)?flow)\b/,Zi=k=>class extends k{flowPragma=void 0;getScopeHandler(){return Bt}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(C,O){C!==134&&C!==13&&C!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(C,O)}addComment(C){if(this.flowPragma===void 0){let O=xi.exec(C.value);if(O)if(O[1]==="flow")this.flowPragma="flow";else if(O[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(C)}flowParseTypeInitialiser(C){let O=this.state.inType;this.state.inType=!0,this.expect(C||14);let z=this.flowParseType();return this.state.inType=O,z}flowParsePredicate(){let C=this.startNode(),O=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>O.index+1&&this.raise(Lt.UnexpectedSpaceBetweenModuloChecks,O),this.eat(10)?(C.value=super.parseExpression(),this.expect(11),this.finishNode(C,"DeclaredPredicate")):this.finishNode(C,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let C=this.state.inType;this.state.inType=!0,this.expect(14);let O=null,z=null;return this.match(54)?(this.state.inType=C,z=this.flowParsePredicate()):(O=this.flowParseType(),this.state.inType=C,this.match(54)&&(z=this.flowParsePredicate())),[O,z]}flowParseDeclareClass(C){return this.next(),this.flowParseInterfaceish(C,!0),this.finishNode(C,"DeclareClass")}flowParseDeclareFunction(C){this.next();let O=C.id=this.parseIdentifier(),z=this.startNode(),ue=this.startNode();this.match(47)?z.typeParameters=this.flowParseTypeParameterDeclaration():z.typeParameters=null,this.expect(10);let Ne=this.flowParseFunctionTypeParams();return z.params=Ne.params,z.rest=Ne.rest,z.this=Ne._this,this.expect(11),[z.returnType,C.predicate]=this.flowParseTypeAndPredicateInitialiser(),ue.typeAnnotation=this.finishNode(z,"FunctionTypeAnnotation"),O.typeAnnotation=this.finishNode(ue,"TypeAnnotation"),this.resetEndLocation(O),this.semicolon(),this.scope.declareName(C.id.name,2048,C.id.loc.start),this.finishNode(C,"DeclareFunction")}flowParseDeclare(C,O){if(this.match(80))return this.flowParseDeclareClass(C);if(this.match(68))return this.flowParseDeclareFunction(C);if(this.match(74))return this.flowParseDeclareVariable(C);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(C):(O&&this.raise(Lt.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(C));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(C);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(C);if(this.isContextual(129))return this.flowParseDeclareInterface(C);if(this.match(82))return this.flowParseDeclareExportDeclaration(C,O);throw this.unexpected()}flowParseDeclareVariable(C){return this.next(),C.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(C.id.name,5,C.id.loc.start),this.semicolon(),this.finishNode(C,"DeclareVariable")}flowParseDeclareModule(C){this.scope.enter(0),this.match(134)?C.id=super.parseExprAtom():C.id=this.parseIdentifier();let O=C.body=this.startNode(),z=O.body=[];for(this.expect(5);!this.match(8);){let $e=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(Lt.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),z.push(super.parseImport($e))):(this.expectContextual(125,Lt.UnsupportedStatementInDeclareModule),z.push(this.flowParseDeclare($e,!0)))}this.scope.exit(),this.expect(8),this.finishNode(O,"BlockStatement");let ue=null,Ne=!1;return z.forEach($e=>{at($e)?(ue==="CommonJS"&&this.raise(Lt.AmbiguousDeclareModuleKind,$e),ue="ES"):$e.type==="DeclareModuleExports"&&(Ne&&this.raise(Lt.DuplicateDeclareModuleExports,$e),ue==="ES"&&this.raise(Lt.AmbiguousDeclareModuleKind,$e),ue="CommonJS",Ne=!0)}),C.kind=ue||"CommonJS",this.finishNode(C,"DeclareModule")}flowParseDeclareExportDeclaration(C,O){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?C.declaration=this.flowParseDeclare(this.startNode()):(C.declaration=this.flowParseType(),this.semicolon()),C.default=!0,this.finishNode(C,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!O){let z=this.state.value;throw this.raise(Lt.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:z,suggestion:Bn[z]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return C.declaration=this.flowParseDeclare(this.startNode()),C.default=!1,this.finishNode(C,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return C=this.parseExport(C,null),C.type==="ExportNamedDeclaration"?(C.default=!1,delete C.exportKind,this.castNodeTo(C,"DeclareExportDeclaration")):this.castNodeTo(C,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(C){return this.next(),this.expectContextual(111),C.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(C,"DeclareModuleExports")}flowParseDeclareTypeAlias(C){this.next();let O=this.flowParseTypeAlias(C);return this.castNodeTo(O,"DeclareTypeAlias"),O}flowParseDeclareOpaqueType(C){this.next();let O=this.flowParseOpaqueType(C,!0);return this.castNodeTo(O,"DeclareOpaqueType"),O}flowParseDeclareInterface(C){return this.next(),this.flowParseInterfaceish(C,!1),this.finishNode(C,"DeclareInterface")}flowParseInterfaceish(C,O){if(C.id=this.flowParseRestrictedIdentifier(!O,!0),this.scope.declareName(C.id.name,O?17:8201,C.id.loc.start),this.match(47)?C.typeParameters=this.flowParseTypeParameterDeclaration():C.typeParameters=null,C.extends=[],this.eat(81))do C.extends.push(this.flowParseInterfaceExtends());while(!O&&this.eat(12));if(O){if(C.implements=[],C.mixins=[],this.eatContextual(117))do C.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do C.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}C.body=this.flowParseObjectType({allowStatic:O,allowExact:!1,allowSpread:!1,allowProto:O,allowInexact:!1})}flowParseInterfaceExtends(){let C=this.startNode();return C.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?C.typeParameters=this.flowParseTypeParameterInstantiation():C.typeParameters=null,this.finishNode(C,"InterfaceExtends")}flowParseInterface(C){return this.flowParseInterfaceish(C,!1),this.finishNode(C,"InterfaceDeclaration")}checkNotUnderscore(C){C==="_"&&this.raise(Lt.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(C,O,z){Ue.has(C)&&this.raise(z?Lt.AssignReservedType:Lt.UnexpectedReservedType,O,{reservedType:C})}flowParseRestrictedIdentifier(C,O){return this.checkReservedType(this.state.value,this.state.startLoc,O),this.parseIdentifier(C)}flowParseTypeAlias(C){return C.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(C.id.name,8201,C.id.loc.start),this.match(47)?C.typeParameters=this.flowParseTypeParameterDeclaration():C.typeParameters=null,C.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(C,"TypeAlias")}flowParseOpaqueType(C,O){return this.expectContextual(130),C.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(C.id.name,8201,C.id.loc.start),this.match(47)?C.typeParameters=this.flowParseTypeParameterDeclaration():C.typeParameters=null,C.supertype=null,this.match(14)&&(C.supertype=this.flowParseTypeInitialiser(14)),C.impltype=null,O||(C.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(C,"OpaqueType")}flowParseTypeParameter(C=!1){let O=this.state.startLoc,z=this.startNode(),ue=this.flowParseVariance(),Ne=this.flowParseTypeAnnotatableIdentifier();return z.name=Ne.name,z.variance=ue,z.bound=Ne.typeAnnotation,this.match(29)?(this.eat(29),z.default=this.flowParseType()):C&&this.raise(Lt.MissingTypeParamDefault,O),this.finishNode(z,"TypeParameter")}flowParseTypeParameterDeclaration(){let C=this.state.inType,O=this.startNode();O.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let z=!1;do{let ue=this.flowParseTypeParameter(z);O.params.push(ue),ue.default&&(z=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=C,this.finishNode(O,"TypeParameterDeclaration")}flowInTopLevelContext(C){if(this.curContext()!==le.brace){let O=this.state.context;this.state.context=[O[0]];try{return C()}finally{this.state.context=O}}else return C()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let C=this.startNode(),O=this.state.inType;return this.state.inType=!0,C.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let z=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)C.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=z}),this.state.inType=O,!this.state.inType&&this.curContext()===le.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(C,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let C=this.startNode(),O=this.state.inType;for(C.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)C.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=O,this.finishNode(C,"TypeParameterInstantiation")}flowParseInterfaceType(){let C=this.startNode();if(this.expectContextual(129),C.extends=[],this.eat(81))do C.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return C.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(C,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(C,O,z){return C.static=O,this.lookahead().type===14?(C.id=this.flowParseObjectPropertyKey(),C.key=this.flowParseTypeInitialiser()):(C.id=null,C.key=this.flowParseType()),this.expect(3),C.value=this.flowParseTypeInitialiser(),C.variance=z,this.finishNode(C,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(C,O){return C.static=O,C.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(C.method=!0,C.optional=!1,C.value=this.flowParseObjectTypeMethodish(this.startNodeAt(C.loc.start))):(C.method=!1,this.eat(17)&&(C.optional=!0),C.value=this.flowParseTypeInitialiser()),this.finishNode(C,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(C){for(C.params=[],C.rest=null,C.typeParameters=null,C.this=null,this.match(47)&&(C.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(C.this=this.flowParseFunctionTypeParam(!0),C.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)C.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(C.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),C.returnType=this.flowParseTypeInitialiser(),this.finishNode(C,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(C,O){let z=this.startNode();return C.static=O,C.value=this.flowParseObjectTypeMethodish(z),this.finishNode(C,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:C,allowExact:O,allowSpread:z,allowProto:ue,allowInexact:Ne}){let $e=this.state.inType;this.state.inType=!0;let ot=this.startNode();ot.callProperties=[],ot.properties=[],ot.indexers=[],ot.internalSlots=[];let vt,xt,Hn=!1;for(O&&this.match(6)?(this.expect(6),vt=9,xt=!0):(this.expect(5),vt=8,xt=!1),ot.exact=xt;!this.match(vt);){let fo=!1,Ko=null,Gc=null,Af=this.startNode();if(ue&&this.isContextual(118)){let rd=this.lookahead();rd.type!==14&&rd.type!==17&&(this.next(),Ko=this.state.startLoc,C=!1)}if(C&&this.isContextual(106)){let rd=this.lookahead();rd.type!==14&&rd.type!==17&&(this.next(),fo=!0)}let zu=this.flowParseVariance();if(this.eat(0))Ko!=null&&this.unexpected(Ko),this.eat(0)?(zu&&this.unexpected(zu.loc.start),ot.internalSlots.push(this.flowParseObjectTypeInternalSlot(Af,fo))):ot.indexers.push(this.flowParseObjectTypeIndexer(Af,fo,zu));else if(this.match(10)||this.match(47))Ko!=null&&this.unexpected(Ko),zu&&this.unexpected(zu.loc.start),ot.callProperties.push(this.flowParseObjectTypeCallProperty(Af,fo));else{let rd="init";if(this.isContextual(99)||this.isContextual(104)){let Ww=this.lookahead();ct(Ww.type)&&(rd=this.state.value,this.next())}let Og=this.flowParseObjectTypeProperty(Af,fo,Ko,zu,rd,z,Ne??!xt);Og===null?(Hn=!0,Gc=this.state.lastTokStartLoc):ot.properties.push(Og)}this.flowObjectTypeSemicolon(),Gc&&!this.match(8)&&!this.match(9)&&this.raise(Lt.UnexpectedExplicitInexactInObject,Gc)}this.expect(vt),z&&(ot.inexact=Hn);let Oi=this.finishNode(ot,"ObjectTypeAnnotation");return this.state.inType=$e,Oi}flowParseObjectTypeProperty(C,O,z,ue,Ne,$e,ot){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?($e?ot||this.raise(Lt.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Lt.InexactInsideNonObject,this.state.lastTokStartLoc),ue&&this.raise(Lt.InexactVariance,ue),null):($e||this.raise(Lt.UnexpectedSpreadType,this.state.lastTokStartLoc),z!=null&&this.unexpected(z),ue&&this.raise(Lt.SpreadVariance,ue),C.argument=this.flowParseType(),this.finishNode(C,"ObjectTypeSpreadProperty"));{C.key=this.flowParseObjectPropertyKey(),C.static=O,C.proto=z!=null,C.kind=Ne;let vt=!1;return this.match(47)||this.match(10)?(C.method=!0,z!=null&&this.unexpected(z),ue&&this.unexpected(ue.loc.start),C.value=this.flowParseObjectTypeMethodish(this.startNodeAt(C.loc.start)),(Ne==="get"||Ne==="set")&&this.flowCheckGetterSetterParams(C),!$e&&C.key.name==="constructor"&&C.value.this&&this.raise(Lt.ThisParamBannedInConstructor,C.value.this)):(Ne!=="init"&&this.unexpected(),C.method=!1,this.eat(17)&&(vt=!0),C.value=this.flowParseTypeInitialiser(),C.variance=ue),C.optional=vt,this.finishNode(C,"ObjectTypeProperty")}}flowCheckGetterSetterParams(C){let O=C.kind==="get"?0:1,z=C.value.params.length+(C.value.rest?1:0);C.value.this&&this.raise(C.kind==="get"?Lt.GetterMayNotHaveThisParam:Lt.SetterMayNotHaveThisParam,C.value.this),z!==O&&this.raise(C.kind==="get"?N.BadGetterArity:N.BadSetterArity,C),C.kind==="set"&&C.value.rest&&this.raise(N.BadSetterRestParameter,C)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(C,O){C??(C=this.state.startLoc);let z=O||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let ue=this.startNodeAt(C);ue.qualification=z,ue.id=this.flowParseRestrictedIdentifier(!0),z=this.finishNode(ue,"QualifiedTypeIdentifier")}return z}flowParseGenericType(C,O){let z=this.startNodeAt(C);return z.typeParameters=null,z.id=this.flowParseQualifiedTypeIdentifier(C,O),this.match(47)&&(z.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(z,"GenericTypeAnnotation")}flowParseTypeofType(){let C=this.startNode();return this.expect(87),C.argument=this.flowParsePrimaryType(),this.finishNode(C,"TypeofTypeAnnotation")}flowParseTupleType(){let C=this.startNode();for(C.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(C.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(C,"TupleTypeAnnotation")}flowParseFunctionTypeParam(C){let O=null,z=!1,ue=null,Ne=this.startNode(),$e=this.lookahead(),ot=this.state.type===78;return $e.type===14||$e.type===17?(ot&&!C&&this.raise(Lt.ThisParamMustBeFirst,Ne),O=this.parseIdentifier(ot),this.eat(17)&&(z=!0,ot&&this.raise(Lt.ThisParamMayNotBeOptional,Ne)),ue=this.flowParseTypeInitialiser()):ue=this.flowParseType(),Ne.name=O,Ne.optional=z,Ne.typeAnnotation=ue,this.finishNode(Ne,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(C){let O=this.startNodeAt(C.loc.start);return O.name=null,O.optional=!1,O.typeAnnotation=C,this.finishNode(O,"FunctionTypeParam")}flowParseFunctionTypeParams(C=[]){let O=null,z=null;for(this.match(78)&&(z=this.flowParseFunctionTypeParam(!0),z.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)C.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(O=this.flowParseFunctionTypeParam(!1)),{params:C,rest:O,_this:z}}flowIdentToTypeAnnotation(C,O,z){switch(z.name){case"any":return this.finishNode(O,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(O,"BooleanTypeAnnotation");case"mixed":return this.finishNode(O,"MixedTypeAnnotation");case"empty":return this.finishNode(O,"EmptyTypeAnnotation");case"number":return this.finishNode(O,"NumberTypeAnnotation");case"string":return this.finishNode(O,"StringTypeAnnotation");case"symbol":return this.finishNode(O,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(z.name),this.flowParseGenericType(C,z)}}flowParsePrimaryType(){let C=this.state.startLoc,O=this.startNode(),z,ue,Ne=!1,$e=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,ue=this.flowParseTupleType(),this.state.noAnonFunctionType=$e,ue;case 47:{let ot=this.startNode();return ot.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),z=this.flowParseFunctionTypeParams(),ot.params=z.params,ot.rest=z.rest,ot.this=z._this,this.expect(11),this.expect(19),ot.returnType=this.flowParseType(),this.finishNode(ot,"FunctionTypeAnnotation")}case 10:{let ot=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(Ye(this.state.type)||this.match(78)){let vt=this.lookahead().type;Ne=vt!==17&&vt!==14}else Ne=!0;if(Ne){if(this.state.noAnonFunctionType=!1,ue=this.flowParseType(),this.state.noAnonFunctionType=$e,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),ue;this.eat(12)}return ue?z=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(ue)]):z=this.flowParseFunctionTypeParams(),ot.params=z.params,ot.rest=z.rest,ot.this=z._this,this.expect(11),this.expect(19),ot.returnType=this.flowParseType(),ot.typeParameters=null,this.finishNode(ot,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return O.value=this.match(85),this.next(),this.finishNode(O,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",O);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",O);throw this.raise(Lt.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(O,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(O,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(O,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(O,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(Rt(this.state.type)){let ot=pn(this.state.type);return this.next(),super.createIdentifier(O,ot)}else if(Ye(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(C,O,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){let C=this.state.startLoc,O=this.flowParsePrimaryType(),z=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let ue=this.startNodeAt(C),Ne=this.eat(18);z=z||Ne,this.expect(0),!Ne&&this.match(3)?(ue.elementType=O,this.next(),O=this.finishNode(ue,"ArrayTypeAnnotation")):(ue.objectType=O,ue.indexType=this.flowParseType(),this.expect(3),z?(ue.optional=Ne,O=this.finishNode(ue,"OptionalIndexedAccessType")):O=this.finishNode(ue,"IndexedAccessType"))}return O}flowParsePrefixType(){let C=this.startNode();return this.eat(17)?(C.typeAnnotation=this.flowParsePrefixType(),this.finishNode(C,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let C=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let O=this.startNodeAt(C.loc.start);return O.params=[this.reinterpretTypeAsFunctionTypeParam(C)],O.rest=null,O.this=null,O.returnType=this.flowParseType(),O.typeParameters=null,this.finishNode(O,"FunctionTypeAnnotation")}return C}flowParseIntersectionType(){let C=this.startNode();this.eat(45);let O=this.flowParseAnonFunctionWithoutParens();for(C.types=[O];this.eat(45);)C.types.push(this.flowParseAnonFunctionWithoutParens());return C.types.length===1?O:this.finishNode(C,"IntersectionTypeAnnotation")}flowParseUnionType(){let C=this.startNode();this.eat(43);let O=this.flowParseIntersectionType();for(C.types=[O];this.eat(43);)C.types.push(this.flowParseIntersectionType());return C.types.length===1?O:this.finishNode(C,"UnionTypeAnnotation")}flowParseType(){let C=this.state.inType;this.state.inType=!0;let O=this.flowParseUnionType();return this.state.inType=C,O}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let C=this.state.startLoc,O=this.parseIdentifier();return this.flowParseGenericType(C,O)}else return this.flowParseType()}flowParseTypeAnnotation(){let C=this.startNode();return C.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(C,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(C){let O=C?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(O.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(O)),O}typeCastToParameter(C){return C.expression.typeAnnotation=C.typeAnnotation,this.resetEndLocation(C.expression,C.typeAnnotation.loc.end),C.expression}flowParseVariance(){let C=null;return this.match(53)?(C=this.startNode(),this.state.value==="+"?C.kind="plus":C.kind="minus",this.next(),this.finishNode(C,"Variance")):C}parseFunctionBody(C,O,z=!1){if(O){this.forwardNoArrowParamsConversionAt(C,()=>super.parseFunctionBody(C,!0,z));return}super.parseFunctionBody(C,!1,z)}parseFunctionBodyAndFinish(C,O,z=!1){if(this.match(14)){let ue=this.startNode();[ue.typeAnnotation,C.predicate]=this.flowParseTypeAndPredicateInitialiser(),C.returnType=ue.typeAnnotation?this.finishNode(ue,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(C,O,z)}parseStatementLike(C){if(this.state.strict&&this.isContextual(129)){let z=this.lookahead();if(ft(z.type)){let ue=this.startNode();return this.next(),this.flowParseInterface(ue)}}else if(this.isContextual(126)){let z=this.startNode();return this.next(),this.flowParseEnumDeclaration(z)}let O=super.parseStatementLike(C);return this.flowPragma===void 0&&!this.isValidDirective(O)&&(this.flowPragma=null),O}parseExpressionStatement(C,O,z){if(O.type==="Identifier"){if(O.name==="declare"){if(this.match(80)||Ye(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(C)}else if(Ye(this.state.type)){if(O.name==="interface")return this.flowParseInterface(C);if(O.name==="type")return this.flowParseTypeAlias(C);if(O.name==="opaque")return this.flowParseOpaqueType(C,!1)}}return super.parseExpressionStatement(C,O,z)}shouldParseExportDeclaration(){let{type:C}=this.state;return C===126||pt(C)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:C}=this.state;return C===126||pt(C)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let C=this.startNode();return this.next(),this.flowParseEnumDeclaration(C)}return super.parseExportDefaultExpression()}parseConditional(C,O,z){if(!this.match(17))return C;if(this.state.maybeInArrowParameters){let Oi=this.lookaheadCharCode();if(Oi===44||Oi===61||Oi===58||Oi===41)return this.setOptionalParametersError(z),C}this.expect(17);let ue=this.state.clone(),Ne=this.state.noArrowAt,$e=this.startNodeAt(O),{consequent:ot,failed:vt}=this.tryParseConditionalConsequent(),[xt,Hn]=this.getArrowLikeExpressions(ot);if(vt||Hn.length>0){let Oi=[...Ne];if(Hn.length>0){this.state=ue,this.state.noArrowAt=Oi;for(let fo=0;fo<Hn.length;fo++)Oi.push(Hn[fo].start);({consequent:ot,failed:vt}=this.tryParseConditionalConsequent()),[xt,Hn]=this.getArrowLikeExpressions(ot)}vt&&xt.length>1&&this.raise(Lt.AmbiguousConditionalArrow,ue.startLoc),vt&&xt.length===1&&(this.state=ue,Oi.push(xt[0].start),this.state.noArrowAt=Oi,{consequent:ot,failed:vt}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(ot,!0),this.state.noArrowAt=Ne,this.expect(14),$e.test=C,$e.consequent=ot,$e.alternate=this.forwardNoArrowParamsConversionAt($e,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode($e,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let C=this.parseMaybeAssignAllowIn(),O=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:C,failed:O}}getArrowLikeExpressions(C,O){let z=[C],ue=[];for(;z.length!==0;){let Ne=z.pop();Ne.type==="ArrowFunctionExpression"&&Ne.body.type!=="BlockStatement"?(Ne.typeParameters||!Ne.returnType?this.finishArrowValidation(Ne):ue.push(Ne),z.push(Ne.body)):Ne.type==="ConditionalExpression"&&(z.push(Ne.consequent),z.push(Ne.alternate))}return O?(ue.forEach(Ne=>this.finishArrowValidation(Ne)),[ue,[]]):Tn(ue,Ne=>Ne.params.every($e=>this.isAssignable($e,!0)))}finishArrowValidation(C){this.toAssignableList(C.params,C.extra?.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(C,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(C,O){let z;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(C.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),z=O(),this.state.noArrowParamsConversionAt.pop()):z=O(),z}parseParenItem(C,O){let z=super.parseParenItem(C,O);if(this.eat(17)&&(z.optional=!0,this.resetEndLocation(C)),this.match(14)){let ue=this.startNodeAt(O);return ue.expression=z,ue.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(ue,"TypeCastExpression")}return z}assertModuleNodeAllowed(C){C.type==="ImportDeclaration"&&(C.importKind==="type"||C.importKind==="typeof")||C.type==="ExportNamedDeclaration"&&C.exportKind==="type"||C.type==="ExportAllDeclaration"&&C.exportKind==="type"||super.assertModuleNodeAllowed(C)}parseExportDeclaration(C){if(this.isContextual(130)){C.exportKind="type";let O=this.startNode();return this.next(),this.match(5)?(C.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(C),null):this.flowParseTypeAlias(O)}else if(this.isContextual(131)){C.exportKind="type";let O=this.startNode();return this.next(),this.flowParseOpaqueType(O,!1)}else if(this.isContextual(129)){C.exportKind="type";let O=this.startNode();return this.next(),this.flowParseInterface(O)}else if(this.isContextual(126)){C.exportKind="value";let O=this.startNode();return this.next(),this.flowParseEnumDeclaration(O)}else return super.parseExportDeclaration(C)}eatExportStar(C){return super.eatExportStar(C)?!0:this.isContextual(130)&&this.lookahead().type===55?(C.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(C){let{startLoc:O}=this.state,z=super.maybeParseExportNamespaceSpecifier(C);return z&&C.exportKind==="type"&&this.unexpected(O),z}parseClassId(C,O,z){super.parseClassId(C,O,z),this.match(47)&&(C.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(C,O,z){let{startLoc:ue}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(C,O))return;O.declare=!0}super.parseClassMember(C,O,z),O.declare&&(O.type!=="ClassProperty"&&O.type!=="ClassPrivateProperty"&&O.type!=="PropertyDefinition"?this.raise(Lt.DeclareClassElement,ue):O.value&&this.raise(Lt.DeclareClassFieldInitializer,O.value))}isIterator(C){return C==="iterator"||C==="asyncIterator"}readIterator(){let C=super.readWord1(),O="@@"+C;(!this.isIterator(C)||!this.state.inType)&&this.raise(N.InvalidIdentifier,this.state.curPosition(),{identifierName:O}),this.finishToken(132,O)}getTokenFromCode(C){let O=this.input.charCodeAt(this.state.pos+1);C===123&&O===124?this.finishOp(6,2):this.state.inType&&(C===62||C===60)?this.finishOp(C===62?48:47,1):this.state.inType&&C===63?O===46?this.finishOp(18,2):this.finishOp(17,1):Xe(C,O,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(C)}isAssignable(C,O){return C.type==="TypeCastExpression"?this.isAssignable(C.expression,O):super.isAssignable(C,O)}toAssignable(C,O=!1){!O&&C.type==="AssignmentExpression"&&C.left.type==="TypeCastExpression"&&(C.left=this.typeCastToParameter(C.left)),super.toAssignable(C,O)}toAssignableList(C,O,z){for(let ue=0;ue<C.length;ue++){let Ne=C[ue];Ne?.type==="TypeCastExpression"&&(C[ue]=this.typeCastToParameter(Ne))}super.toAssignableList(C,O,z)}toReferencedList(C,O){for(let z=0;z<C.length;z++){let ue=C[z];ue&&ue.type==="TypeCastExpression"&&!ue.extra?.parenthesized&&(C.length>1||!O)&&this.raise(Lt.TypeCastInPattern,ue.typeAnnotation)}return C}parseArrayLike(C,O,z){let ue=super.parseArrayLike(C,O,z);return z!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(ue.elements),ue}isValidLVal(C,O,z,ue){return C==="TypeCastExpression"||super.isValidLVal(C,O,z,ue)}parseClassProperty(C){return this.match(14)&&(C.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(C)}parseClassPrivateProperty(C){return this.match(14)&&(C.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(C)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(C){return!this.match(14)&&super.isNonstaticConstructor(C)}pushClassMethod(C,O,z,ue,Ne,$e){if(O.variance&&this.unexpected(O.variance.loc.start),delete O.variance,this.match(47)&&(O.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(C,O,z,ue,Ne,$e),O.params&&Ne){let ot=O.params;ot.length>0&&this.isThisParam(ot[0])&&this.raise(Lt.ThisParamBannedInConstructor,O)}else if(O.type==="MethodDefinition"&&Ne&&O.value.params){let ot=O.value.params;ot.length>0&&this.isThisParam(ot[0])&&this.raise(Lt.ThisParamBannedInConstructor,O)}}pushClassPrivateMethod(C,O,z,ue){O.variance&&this.unexpected(O.variance.loc.start),delete O.variance,this.match(47)&&(O.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(C,O,z,ue)}parseClassSuper(C){if(super.parseClassSuper(C),C.superClass&&(this.match(47)||this.match(51))&&(C.superTypeArguments=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let O=C.implements=[];do{let z=this.startNode();z.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?z.typeParameters=this.flowParseTypeParameterInstantiation():z.typeParameters=null,O.push(this.finishNode(z,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(C){super.checkGetterSetterParams(C);let O=this.getObjectOrClassMethodParams(C);if(O.length>0){let z=O[0];this.isThisParam(z)&&C.kind==="get"?this.raise(Lt.GetterMayNotHaveThisParam,z):this.isThisParam(z)&&this.raise(Lt.SetterMayNotHaveThisParam,z)}}parsePropertyNamePrefixOperator(C){C.variance=this.flowParseVariance()}parseObjPropValue(C,O,z,ue,Ne,$e,ot){C.variance&&this.unexpected(C.variance.loc.start),delete C.variance;let vt;this.match(47)&&!$e&&(vt=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let xt=super.parseObjPropValue(C,O,z,ue,Ne,$e,ot);return vt&&((xt.value||xt).typeParameters=vt),xt}parseFunctionParamType(C){return this.eat(17)&&(C.type!=="Identifier"&&this.raise(Lt.PatternIsOptional,C),this.isThisParam(C)&&this.raise(Lt.ThisParamMayNotBeOptional,C),C.optional=!0),this.match(14)?C.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(C)&&this.raise(Lt.ThisParamAnnotationRequired,C),this.match(29)&&this.isThisParam(C)&&this.raise(Lt.ThisParamNoDefault,C),this.resetEndLocation(C),C}parseMaybeDefault(C,O){let z=super.parseMaybeDefault(C,O);return z.type==="AssignmentPattern"&&z.typeAnnotation&&z.right.start<z.typeAnnotation.start&&this.raise(Lt.TypeBeforeInitializer,z.typeAnnotation),z}checkImportReflection(C){super.checkImportReflection(C),C.module&&C.importKind!=="value"&&this.raise(Lt.ImportReflectionHasImportType,C.specifiers[0].loc.start)}parseImportSpecifierLocal(C,O,z){O.local=cn(C)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),C.specifiers.push(this.finishImportSpecifier(O,z))}isPotentialImportPhase(C){if(super.isPotentialImportPhase(C))return!0;if(this.isContextual(130)){if(!C)return!0;let O=this.lookaheadCharCode();return O===123||O===42}return!C&&this.isContextual(87)}applyImportPhase(C,O,z,ue){if(super.applyImportPhase(C,O,z,ue),O){if(!z&&this.match(65))return;C.exportKind=z==="type"?z:"value"}else z==="type"&&this.match(55)&&this.unexpected(),C.importKind=z==="type"||z==="typeof"?z:"value"}parseImportSpecifier(C,O,z,ue,Ne){let $e=C.imported,ot=null;$e.type==="Identifier"&&($e.name==="type"?ot="type":$e.name==="typeof"&&(ot="typeof"));let vt=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let Hn=this.parseIdentifier(!0);ot!==null&&!ft(this.state.type)?(C.imported=Hn,C.importKind=ot,C.local=this.cloneIdentifier(Hn)):(C.imported=$e,C.importKind=null,C.local=this.parseIdentifier())}else{if(ot!==null&&ft(this.state.type))C.imported=this.parseIdentifier(!0),C.importKind=ot;else{if(O)throw this.raise(N.ImportBindingIsString,C,{importName:$e.value});C.imported=$e,C.importKind=null}this.eatContextual(93)?C.local=this.parseIdentifier():(vt=!0,C.local=this.cloneIdentifier(C.imported))}let xt=cn(C);return z&&xt&&this.raise(Lt.ImportTypeShorthandOnlyInPureImport,C),(z||xt)&&this.checkReservedType(C.local.name,C.local.loc.start,!0),vt&&!z&&!xt&&this.checkReservedWord(C.local.name,C.loc.start,!0,!0),this.finishImportSpecifier(C,"ImportSpecifier")}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(C,O){let z=C.kind;z!=="get"&&z!=="set"&&this.match(47)&&(C.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(C,O)}parseVarId(C,O){super.parseVarId(C,O),this.match(14)&&(C.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(C.id))}parseAsyncArrowFromCallExpression(C,O){if(this.match(14)){let z=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,C.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=z}return super.parseAsyncArrowFromCallExpression(C,O)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(C,O){let z=null,ue;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(z=this.state.clone(),ue=this.tryParse(()=>super.parseMaybeAssign(C,O),z),!ue.error)return ue.node;let{context:Ne}=this.state,$e=Ne[Ne.length-1];($e===le.j_oTag||$e===le.j_expr)&&Ne.pop()}if(ue?.error||this.match(47)){z=z||this.state.clone();let Ne,$e=this.tryParse(vt=>{Ne=this.flowParseTypeParameterDeclaration();let xt=this.forwardNoArrowParamsConversionAt(Ne,()=>{let Oi=super.parseMaybeAssign(C,O);return this.resetStartLocationFromNode(Oi,Ne),Oi});xt.extra?.parenthesized&&vt();let Hn=this.maybeUnwrapTypeCastExpression(xt);return Hn.type!=="ArrowFunctionExpression"&&vt(),Hn.typeParameters=Ne,this.resetStartLocationFromNode(Hn,Ne),xt},z),ot=null;if($e.node&&this.maybeUnwrapTypeCastExpression($e.node).type==="ArrowFunctionExpression"){if(!$e.error&&!$e.aborted)return $e.node.async&&this.raise(Lt.UnexpectedTypeParameterBeforeAsyncArrowFunction,Ne),$e.node;ot=$e.node}if(ue?.node)return this.state=ue.failState,ue.node;if(ot)return this.state=$e.failState,ot;throw ue?.thrown?ue.error:$e.thrown?$e.error:this.raise(Lt.UnexpectedTokenAfterTypeParameter,Ne)}return super.parseMaybeAssign(C,O)}parseArrow(C){if(this.match(14)){let O=this.tryParse(()=>{let z=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let ue=this.startNode();return[ue.typeAnnotation,C.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=z,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),ue});if(O.thrown)return null;O.error&&(this.state=O.failState),C.returnType=O.node.typeAnnotation?this.finishNode(O.node,"TypeAnnotation"):null}return super.parseArrow(C)}shouldParseArrow(C){return this.match(14)||super.shouldParseArrow(C)}setArrowFunctionParameters(C,O){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(C.start))?C.params=O:super.setArrowFunctionParameters(C,O)}checkParams(C,O,z,ue=!0){if(!(z&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(C.start)))){for(let Ne=0;Ne<C.params.length;Ne++)this.isThisParam(C.params[Ne])&&Ne>0&&this.raise(Lt.ThisParamMustBeFirst,C.params[Ne]);super.checkParams(C,O,z,ue)}}parseParenAndDistinguishExpression(C){return super.parseParenAndDistinguishExpression(C&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(C,O,z){if(C.type==="Identifier"&&C.name==="async"&&this.state.noArrowAt.includes(O.index)){this.next();let ue=this.startNodeAt(O);ue.callee=C,ue.arguments=super.parseCallExpressionArguments(),C=this.finishNode(ue,"CallExpression")}else if(C.type==="Identifier"&&C.name==="async"&&this.match(47)){let ue=this.state.clone(),Ne=this.tryParse(ot=>this.parseAsyncArrowWithTypeParameters(O)||ot(),ue);if(!Ne.error&&!Ne.aborted)return Ne.node;let $e=this.tryParse(()=>super.parseSubscripts(C,O,z),ue);if($e.node&&!$e.error)return $e.node;if(Ne.node)return this.state=Ne.failState,Ne.node;if($e.node)return this.state=$e.failState,$e.node;throw Ne.error||$e.error}return super.parseSubscripts(C,O,z)}parseSubscript(C,O,z,ue){if(this.match(18)&&this.isLookaheadToken_lt()){if(ue.optionalChainMember=!0,z)return ue.stop=!0,C;this.next();let Ne=this.startNodeAt(O);return Ne.callee=C,Ne.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),Ne.arguments=this.parseCallExpressionArguments(),Ne.optional=!0,this.finishCallExpression(Ne,!0)}else if(!z&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let Ne=this.startNodeAt(O);Ne.callee=C;let $e=this.tryParse(()=>(Ne.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),Ne.arguments=super.parseCallExpressionArguments(),ue.optionalChainMember&&(Ne.optional=!1),this.finishCallExpression(Ne,ue.optionalChainMember)));if($e.node)return $e.error&&(this.state=$e.failState),$e.node}return super.parseSubscript(C,O,z,ue)}parseNewCallee(C){super.parseNewCallee(C);let O=null;this.shouldParseTypes()&&this.match(47)&&(O=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),C.typeArguments=O}parseAsyncArrowWithTypeParameters(C){let O=this.startNodeAt(C);if(this.parseFunctionParams(O,!1),!!this.parseArrow(O))return super.parseArrowExpression(O,void 0,!0)}readToken_mult_modulo(C){let O=this.input.charCodeAt(this.state.pos+1);if(C===42&&O===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(C)}readToken_pipe_amp(C){let O=this.input.charCodeAt(this.state.pos+1);if(C===124&&O===125){this.finishOp(9,2);return}super.readToken_pipe_amp(C)}parseTopLevel(C,O){let z=super.parseTopLevel(C,O);return this.state.hasFlowComment&&this.raise(Lt.UnterminatedFlowComment,this.state.curPosition()),z}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Lt.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let C=this.skipFlowComment();C&&(this.state.pos+=C,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:C}=this.state,O=2;for(;[32,9].includes(this.input.charCodeAt(C+O));)O++;let z=this.input.charCodeAt(O+C),ue=this.input.charCodeAt(O+C+1);return z===58&&ue===58?O+2:this.input.slice(O+C,O+C+12)==="flow-include"?O+12:z===58&&ue!==58?O:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(N.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(C,{enumName:O,memberName:z}){this.raise(Lt.EnumBooleanMemberNotInitialized,C,{memberName:z,enumName:O})}flowEnumErrorInvalidMemberInitializer(C,O){return this.raise(O.explicitType?O.explicitType==="symbol"?Lt.EnumInvalidMemberInitializerSymbolType:Lt.EnumInvalidMemberInitializerPrimaryType:Lt.EnumInvalidMemberInitializerUnknownType,C,O)}flowEnumErrorNumberMemberNotInitialized(C,O){this.raise(Lt.EnumNumberMemberNotInitialized,C,O)}flowEnumErrorStringMemberInconsistentlyInitialized(C,O){this.raise(Lt.EnumStringMemberInconsistentlyInitialized,C,O)}flowEnumMemberInit(){let C=this.state.startLoc,O=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let z=this.parseNumericLiteral(this.state.value);return O()?{type:"number",loc:z.loc.start,value:z}:{type:"invalid",loc:C}}case 134:{let z=this.parseStringLiteral(this.state.value);return O()?{type:"string",loc:z.loc.start,value:z}:{type:"invalid",loc:C}}case 85:case 86:{let z=this.parseBooleanLiteral(this.match(85));return O()?{type:"boolean",loc:z.loc.start,value:z}:{type:"invalid",loc:C}}default:return{type:"invalid",loc:C}}}flowEnumMemberRaw(){let C=this.state.startLoc,O=this.parseIdentifier(!0),z=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:C};return{id:O,init:z}}flowEnumCheckExplicitTypeMismatch(C,O,z){let{explicitType:ue}=O;ue!==null&&ue!==z&&this.flowEnumErrorInvalidMemberInitializer(C,O)}flowEnumMembers({enumName:C,explicitType:O}){let z=new Set,ue={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},Ne=!1;for(;!this.match(8);){if(this.eat(21)){Ne=!0;break}let $e=this.startNode(),{id:ot,init:vt}=this.flowEnumMemberRaw(),xt=ot.name;if(xt==="")continue;/^[a-z]/.test(xt)&&this.raise(Lt.EnumInvalidMemberName,ot,{memberName:xt,suggestion:xt[0].toUpperCase()+xt.slice(1),enumName:C}),z.has(xt)&&this.raise(Lt.EnumDuplicateMemberName,ot,{memberName:xt,enumName:C}),z.add(xt);let Hn={enumName:C,explicitType:O,memberName:xt};switch($e.id=ot,vt.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(vt.loc,Hn,"boolean"),$e.init=vt.value,ue.booleanMembers.push(this.finishNode($e,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(vt.loc,Hn,"number"),$e.init=vt.value,ue.numberMembers.push(this.finishNode($e,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(vt.loc,Hn,"string"),$e.init=vt.value,ue.stringMembers.push(this.finishNode($e,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(vt.loc,Hn);case"none":switch(O){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(vt.loc,Hn);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(vt.loc,Hn);break;default:ue.defaultedMembers.push(this.finishNode($e,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:ue,hasUnknownMembers:Ne}}flowEnumStringMembers(C,O,{enumName:z}){if(C.length===0)return O;if(O.length===0)return C;if(O.length>C.length){for(let ue of C)this.flowEnumErrorStringMemberInconsistentlyInitialized(ue,{enumName:z});return O}else{for(let ue of O)this.flowEnumErrorStringMemberInconsistentlyInitialized(ue,{enumName:z});return C}}flowEnumParseExplicitType({enumName:C}){if(!this.eatContextual(102))return null;if(!Ye(this.state.type))throw this.raise(Lt.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:C});let{value:O}=this.state;return this.next(),O!=="boolean"&&O!=="number"&&O!=="string"&&O!=="symbol"&&this.raise(Lt.EnumInvalidExplicitType,this.state.startLoc,{enumName:C,invalidEnumType:O}),O}flowEnumBody(C,O){let z=O.name,ue=O.loc.start,Ne=this.flowEnumParseExplicitType({enumName:z});this.expect(5);let{members:$e,hasUnknownMembers:ot}=this.flowEnumMembers({enumName:z,explicitType:Ne});switch(C.hasUnknownMembers=ot,Ne){case"boolean":return C.explicitType=!0,C.members=$e.booleanMembers,this.expect(8),this.finishNode(C,"EnumBooleanBody");case"number":return C.explicitType=!0,C.members=$e.numberMembers,this.expect(8),this.finishNode(C,"EnumNumberBody");case"string":return C.explicitType=!0,C.members=this.flowEnumStringMembers($e.stringMembers,$e.defaultedMembers,{enumName:z}),this.expect(8),this.finishNode(C,"EnumStringBody");case"symbol":return C.members=$e.defaultedMembers,this.expect(8),this.finishNode(C,"EnumSymbolBody");default:{let vt=()=>(C.members=[],this.expect(8),this.finishNode(C,"EnumStringBody"));C.explicitType=!1;let xt=$e.booleanMembers.length,Hn=$e.numberMembers.length,Oi=$e.stringMembers.length,fo=$e.defaultedMembers.length;if(!xt&&!Hn&&!Oi&&!fo)return vt();if(!xt&&!Hn)return C.members=this.flowEnumStringMembers($e.stringMembers,$e.defaultedMembers,{enumName:z}),this.expect(8),this.finishNode(C,"EnumStringBody");if(!Hn&&!Oi&&xt>=fo){for(let Ko of $e.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(Ko.loc.start,{enumName:z,memberName:Ko.id.name});return C.members=$e.booleanMembers,this.expect(8),this.finishNode(C,"EnumBooleanBody")}else if(!xt&&!Oi&&Hn>=fo){for(let Ko of $e.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(Ko.loc.start,{enumName:z,memberName:Ko.id.name});return C.members=$e.numberMembers,this.expect(8),this.finishNode(C,"EnumNumberBody")}else return this.raise(Lt.EnumInconsistentMemberValues,ue,{enumName:z}),vt()}}}flowParseEnumDeclaration(C){let O=this.parseIdentifier();return C.id=O,C.body=this.flowEnumBody(this.startNode(),O),this.finishNode(C,"EnumDeclaration")}jsxParseOpeningElementAfterName(C){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(C.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(C)}isLookaheadToken_lt(){let C=this.nextTokenStart();if(this.input.charCodeAt(C)===60){let O=this.input.charCodeAt(C+1);return O!==60&&O!==61}return!1}reScan_lt_gt(){let{type:C}=this.state;C===47?(this.state.pos-=1,this.readToken_lt()):C===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:C}=this.state;return C===51?(this.state.pos-=2,this.finishOp(47,1),47):C}maybeUnwrapTypeCastExpression(C){return C.type==="TypeCastExpression"?C.expression:C}},dn=/\r\n|[\r\n\u2028\u2029]/,fi=new RegExp(dn.source,"g");function Fr(k){switch(k){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function Wo(k,C,O){for(let z=C;z<O;z++)if(Fr(k.charCodeAt(z)))return!0;return!1}var Mo=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Us=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function nl(k){switch(k){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var Ai=F`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:k})=>`Expected corresponding JSX closing tag for <${k}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:k,HTMLEntity:C})=>`Unexpected token \`${k}\`. Did you mean \`${C}\` or \`{'${k}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function dr(k){return k?k.type==="JSXOpeningFragment"||k.type==="JSXClosingFragment":!1}function es(k){if(k.type==="JSXIdentifier")return k.name;if(k.type==="JSXNamespacedName")return k.namespace.name+":"+k.name.name;if(k.type==="JSXMemberExpression")return es(k.object)+"."+es(k.property);throw new Error("Node had unexpected type: "+k.type)}var ds=k=>class extends k{jsxReadToken(){let C="",O=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Ai.UnterminatedJsxContent,this.state.startLoc);let z=this.input.charCodeAt(this.state.pos);switch(z){case 60:case 123:if(this.state.pos===this.state.start){z===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(z);return}C+=this.input.slice(O,this.state.pos),this.finishToken(142,C);return;case 38:C+=this.input.slice(O,this.state.pos),C+=this.jsxReadEntity(),O=this.state.pos;break;case 62:case 125:this.raise(Ai.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:z===125?"&rbrace;":"&gt;"});default:Fr(z)?(C+=this.input.slice(O,this.state.pos),C+=this.jsxReadNewLine(!0),O=this.state.pos):++this.state.pos}}}jsxReadNewLine(C){let O=this.input.charCodeAt(this.state.pos),z;return++this.state.pos,O===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,z=C?`
`:`\r
`):z=String.fromCharCode(O),++this.state.curLine,this.state.lineStart=this.state.pos,z}jsxReadString(C){let O="",z=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(N.UnterminatedString,this.state.startLoc);let ue=this.input.charCodeAt(this.state.pos);if(ue===C)break;ue===38?(O+=this.input.slice(z,this.state.pos),O+=this.jsxReadEntity(),z=this.state.pos):Fr(ue)?(O+=this.input.slice(z,this.state.pos),O+=this.jsxReadNewLine(!1),z=this.state.pos):++this.state.pos}O+=this.input.slice(z,this.state.pos++),this.finishToken(134,O)}jsxReadEntity(){let C=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let O=10;this.codePointAtPos(this.state.pos)===120&&(O=16,++this.state.pos);let z=this.readInt(O,void 0,!1,"bail");if(z!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(z)}else{let O=0,z=!1;for(;O++<10&&this.state.pos<this.length&&!(z=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(z){this.input.slice(C,this.state.pos);let ue;++this.state.pos}}return this.state.pos=C,"&"}jsxReadWord(){let C,O=this.state.pos;do C=this.input.charCodeAt(++this.state.pos);while(ve(C)||C===45);this.finishToken(141,this.input.slice(O,this.state.pos))}jsxParseIdentifier(){let C=this.startNode();return this.match(141)?C.name=this.state.value:Rt(this.state.type)?C.name=pn(this.state.type):this.unexpected(),this.next(),this.finishNode(C,"JSXIdentifier")}jsxParseNamespacedName(){let C=this.state.startLoc,O=this.jsxParseIdentifier();if(!this.eat(14))return O;let z=this.startNodeAt(C);return z.namespace=O,z.name=this.jsxParseIdentifier(),this.finishNode(z,"JSXNamespacedName")}jsxParseElementName(){let C=this.state.startLoc,O=this.jsxParseNamespacedName();if(O.type==="JSXNamespacedName")return O;for(;this.eat(16);){let z=this.startNodeAt(C);z.object=O,z.property=this.jsxParseIdentifier(),O=this.finishNode(z,"JSXMemberExpression")}return O}jsxParseAttributeValue(){let C;switch(this.state.type){case 5:return C=this.startNode(),this.setContext(le.brace),this.next(),C=this.jsxParseExpressionContainer(C,le.j_oTag),C.expression.type==="JSXEmptyExpression"&&this.raise(Ai.AttributeIsEmpty,C),C;case 143:case 134:return this.parseExprAtom();default:throw this.raise(Ai.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let C=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(C,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(C){return this.next(),C.expression=this.parseExpression(),this.setContext(le.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(C,"JSXSpreadChild")}jsxParseExpressionContainer(C,O){if(this.match(8))C.expression=this.jsxParseEmptyExpression();else{let z=this.parseExpression();z.type==="SequenceExpression"&&!z.extra?.parenthesized&&this.raise(Ai.UnexpectedSequenceExpression,z.expressions[1]),C.expression=z}return this.setContext(O),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(C,"JSXExpressionContainer")}jsxParseAttribute(){let C=this.startNode();return this.match(5)?(this.setContext(le.brace),this.next(),this.expect(21),C.argument=this.parseMaybeAssignAllowIn(),this.setContext(le.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(C,"JSXSpreadAttribute")):(C.name=this.jsxParseNamespacedName(),C.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(C,"JSXAttribute"))}jsxParseOpeningElementAt(C){let O=this.startNodeAt(C);return this.eat(144)?this.finishNode(O,"JSXOpeningFragment"):(O.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(O))}jsxParseOpeningElementAfterName(C){let O=[];for(;!this.match(56)&&!this.match(144);)O.push(this.jsxParseAttribute());return C.attributes=O,C.selfClosing=this.eat(56),this.expect(144),this.finishNode(C,"JSXOpeningElement")}jsxParseClosingElementAt(C){let O=this.startNodeAt(C);return this.eat(144)?this.finishNode(O,"JSXClosingFragment"):(O.name=this.jsxParseElementName(),this.expect(144),this.finishNode(O,"JSXClosingElement"))}jsxParseElementAt(C){let O=this.startNodeAt(C),z=[],ue=this.jsxParseOpeningElementAt(C),Ne=null;if(!ue.selfClosing){e:for(;;)switch(this.state.type){case 143:if(C=this.state.startLoc,this.next(),this.eat(56)){Ne=this.jsxParseClosingElementAt(C);break e}z.push(this.jsxParseElementAt(C));break;case 142:z.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let $e=this.startNode();this.setContext(le.brace),this.next(),this.match(21)?z.push(this.jsxParseSpreadChild($e)):z.push(this.jsxParseExpressionContainer($e,le.j_expr));break}default:this.unexpected()}dr(ue)&&!dr(Ne)&&Ne!==null?this.raise(Ai.MissingClosingTagFragment,Ne):!dr(ue)&&dr(Ne)?this.raise(Ai.MissingClosingTagElement,Ne,{openingTagName:es(ue.name)}):!dr(ue)&&!dr(Ne)&&es(Ne.name)!==es(ue.name)&&this.raise(Ai.MissingClosingTagElement,Ne,{openingTagName:es(ue.name)})}if(dr(ue)?(O.openingFragment=ue,O.closingFragment=Ne):(O.openingElement=ue,O.closingElement=Ne),O.children=z,this.match(47))throw this.raise(Ai.UnwrappedAdjacentJSXElements,this.state.startLoc);return dr(ue)?this.finishNode(O,"JSXFragment"):this.finishNode(O,"JSXElement")}jsxParseElement(){let C=this.state.startLoc;return this.next(),this.jsxParseElementAt(C)}setContext(C){let{context:O}=this.state;O[O.length-1]=C}parseExprAtom(C){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(C)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(C){let O=this.curContext();if(O===le.j_expr){this.jsxReadToken();return}if(O===le.j_oTag||O===le.j_cTag){if(we(C)){this.jsxReadWord();return}if(C===62){++this.state.pos,this.finishToken(144);return}if((C===34||C===39)&&O===le.j_oTag){this.jsxReadString(C);return}}if(C===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(C)}updateContext(C){let{context:O,type:z}=this.state;if(z===56&&C===143)O.splice(-2,2,le.j_cTag),this.state.canStartJSXElement=!1;else if(z===143)O.push(le.j_oTag);else if(z===144){let ue=O[O.length-1];ue===le.j_oTag&&C===56||ue===le.j_cTag?(O.pop(),this.state.canStartJSXElement=O[O.length-1]===le.j_expr):(this.setContext(le.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=et(z)}},Jr=class extends Dt{tsNames=new Map},Xu=class extends Tt{importsStack=[];createScope(k){return this.importsStack.push(new Set),new Jr(k)}enter(k){k===1024&&this.importsStack.push(new Set),super.enter(k)}exit(){let k=super.exit();return k===1024&&this.importsStack.pop(),k}hasImport(k,C){let O=this.importsStack.length;if(this.importsStack[O-1].has(k))return!0;if(!C&&O>1){for(let z=0;z<O-1;z++)if(this.importsStack[z].has(k))return!0}return!1}declareName(k,C,O){if(C&4096){this.hasImport(k,!0)&&this.parser.raise(N.VarRedeclaration,O,{identifierName:k}),this.importsStack[this.importsStack.length-1].add(k);return}let z=this.currentScope(),ue=z.tsNames.get(k)||0;if(C&1024){this.maybeExportDefined(z,k),z.tsNames.set(k,ue|16);return}super.declareName(k,C,O),C&2&&(C&1||(this.checkRedeclarationInScope(z,k,C,O),this.maybeExportDefined(z,k)),ue=ue|1),C&256&&(ue=ue|2),C&512&&(ue=ue|4),C&128&&(ue=ue|8),ue&&z.tsNames.set(k,ue)}isRedeclaredInScope(k,C,O){let z=k.tsNames.get(C);if((z&2)>0){if(O&256){let ue=!!(O&512),Ne=(z&4)>0;return ue!==Ne}return!0}return O&128&&(z&8)>0?k.names.get(C)&2?!!(O&1):!1:O&2&&(z&1)>0?!0:super.isRedeclaredInScope(k,C,O)}checkLocalExport(k){let{name:C}=k;if(this.hasImport(C))return;let O=this.scopeStack.length;for(let z=O-1;z>=0;z--){let ue=this.scopeStack[z].tsNames.get(C);if((ue&1)>0||(ue&16)>0)return}super.checkLocalExport(k)}},Dc=class{stacks=[];enter(k){this.stacks.push(k)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function Ju(k,C){return(k?2:0)|(C?1:0)}var ed=class{sawUnambiguousESM=!1;ambiguousScriptDifferentAst=!1;sourceToOffsetPos(k){return k+this.startIndex}offsetToSourcePos(k){return k-this.startIndex}hasPlugin(k){if(typeof k=="string")return this.plugins.has(k);{let[C,O]=k;if(!this.hasPlugin(C))return!1;let z=this.plugins.get(C);for(let ue of Object.keys(O))if(z?.[ue]!==O[ue])return!1;return!0}}getPluginOption(k,C){return this.plugins.get(k)?.[C]}};function pa(k,C){k.trailingComments===void 0?k.trailingComments=C:k.trailingComments.unshift(...C)}function il(k,C){k.leadingComments===void 0?k.leadingComments=C:k.leadingComments.unshift(...C)}function td(k,C){k.innerComments===void 0?k.innerComments=C:k.innerComments.unshift(...C)}function lc(k,C,O){let z=null,ue=C.length;for(;z===null&&ue>0;)z=C[--ue];z===null||z.start>O.start?td(k,O.comments):pa(z,O.comments)}var Cf=class extends ed{addComment(k){this.filename&&(k.loc.filename=this.filename);let{commentsLen:C}=this.state;this.comments.length!==C&&(this.comments.length=C),this.comments.push(k),this.state.commentsLen++}processComment(k){let{commentStack:C}=this.state,O=C.length;if(O===0)return;let z=O-1,ue=C[z];ue.start===k.end&&(ue.leadingNode=k,z--);let{start:Ne}=k;for(;z>=0;z--){let $e=C[z],ot=$e.end;if(ot>Ne)$e.containingNode=k,this.finalizeComment($e),C.splice(z,1);else{ot===Ne&&($e.trailingNode=k);break}}}finalizeComment(k){let{comments:C}=k;if(k.leadingNode!==null||k.trailingNode!==null)k.leadingNode!==null&&pa(k.leadingNode,C),k.trailingNode!==null&&il(k.trailingNode,C);else{let O=k.containingNode,z=k.start;if(this.input.charCodeAt(this.offsetToSourcePos(z)-1)===44)switch(O.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":lc(O,O.properties,k);break;case"CallExpression":case"OptionalCallExpression":lc(O,O.arguments,k);break;case"ImportExpression":lc(O,[O.source,O.options??null],k);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":lc(O,O.params,k);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":lc(O,O.elements,k);break;case"ExportNamedDeclaration":case"ImportDeclaration":lc(O,O.specifiers,k);break;case"TSEnumDeclaration":td(O,C);break;case"TSEnumBody":lc(O,O.members,k);break;default:td(O,C)}else td(O,C)}}finalizeRemainingComments(){let{commentStack:k}=this.state;for(let C=k.length-1;C>=0;C--)this.finalizeComment(k[C]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(k){let{commentStack:C}=this.state,{length:O}=C;if(O===0)return;let z=C[O-1];z.leadingNode===k&&(z.leadingNode=null)}takeSurroundingComments(k,C,O){let{commentStack:z}=this.state,ue=z.length;if(ue===0)return;let Ne=ue-1;for(;Ne>=0;Ne--){let $e=z[Ne],ot=$e.end;if($e.start===O)$e.leadingNode=k;else if(ot===C)$e.trailingNode=k;else if(ot<C)break}}},Tc=class lln{flags=1024;get strict(){return(this.flags&1)>0}set strict(C){C?this.flags|=1:this.flags&=-2}startIndex;curLine;lineStart;startLoc;endLoc;init({strictMode:C,sourceType:O,startIndex:z,startLine:ue,startColumn:Ne}){this.strict=C===!1?!1:C===!0?!0:O==="module",this.startIndex=z,this.curLine=ue,this.lineStart=-Ne,this.startLoc=this.endLoc=new h(ue,Ne,z)}errors=[];potentialArrowAt=-1;noArrowAt=[];noArrowParamsConversionAt=[];get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(C){C?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(C){C?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(C){C?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(C){C?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(C){C?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(C){C?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(C){C?this.flags|=128:this.flags&=-129}topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};get soloAwait(){return(this.flags&256)>0}set soloAwait(C){C?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(C){C?this.flags|=512:this.flags&=-513}labels=[];commentsLen=0;commentStack=[];pos=0;type=140;value=null;start=0;end=0;lastTokEndLoc=null;lastTokStartLoc=null;context=[le.brace];get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(C){C?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(C){C?this.flags|=2048:this.flags&=-2049}firstInvalidTemplateEscapePos=null;get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(C){C?this.flags|=4096:this.flags&=-4097}strictErrors=new Map;tokensLength=0;curPosition(){return new h(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let C=new lln;return C.flags=this.flags,C.startIndex=this.startIndex,C.curLine=this.curLine,C.lineStart=this.lineStart,C.startLoc=this.startLoc,C.endLoc=this.endLoc,C.errors=this.errors.slice(),C.potentialArrowAt=this.potentialArrowAt,C.noArrowAt=this.noArrowAt.slice(),C.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),C.topicContext=this.topicContext,C.labels=this.labels.slice(),C.commentsLen=this.commentsLen,C.commentStack=this.commentStack.slice(),C.pos=this.pos,C.type=this.type,C.value=this.value,C.start=this.start,C.end=this.end,C.lastTokEndLoc=this.lastTokEndLoc,C.lastTokStartLoc=this.lastTokStartLoc,C.context=this.context.slice(),C.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,C.strictErrors=this.strictErrors,C.tokensLength=this.tokensLength,C}},Ig=function(k){return k>=48&&k<=57},Bu={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},ju={bin:k=>k===48||k===49,oct:k=>k>=48&&k<=55,dec:k=>k>=48&&k<=57,hex:k=>k>=48&&k<=57||k>=65&&k<=70||k>=97&&k<=102};function Mp(k,C,O,z,ue,Ne){let $e=O,ot=z,vt=ue,xt="",Hn=null,Oi=O,{length:fo}=C;for(;;){if(O>=fo){Ne.unterminated($e,ot,vt),xt+=C.slice(Oi,O);break}let Ko=C.charCodeAt(O);if(Op(k,Ko,C,O)){xt+=C.slice(Oi,O);break}if(Ko===92){xt+=C.slice(Oi,O);let Gc=xd(C,O,z,ue,k==="template",Ne);Gc.ch===null&&!Hn?Hn={pos:O,lineStart:z,curLine:ue}:xt+=Gc.ch,{pos:O,lineStart:z,curLine:ue}=Gc,Oi=O}else Ko===8232||Ko===8233?(++O,++ue,z=O):Ko===10||Ko===13?k==="template"?(xt+=C.slice(Oi,O)+`
`,++O,Ko===13&&C.charCodeAt(O)===10&&++O,++ue,Oi=z=O):Ne.unterminated($e,ot,vt):++O}return{pos:O,str:xt,firstInvalidLoc:Hn,lineStart:z,curLine:ue}}function Op(k,C,O,z){return k==="template"?C===96||C===36&&O.charCodeAt(z+1)===123:C===(k==="double"?34:39)}function xd(k,C,O,z,ue,Ne){let $e=!ue;C++;let ot=xt=>({pos:C,ch:xt,lineStart:O,curLine:z}),vt=k.charCodeAt(C++);switch(vt){case 110:return ot(`
`);case 114:return ot("\r");case 120:{let xt;return{code:xt,pos:C}=Sf(k,C,O,z,2,!1,$e,Ne),ot(xt===null?null:String.fromCharCode(xt))}case 117:{let xt;return{code:xt,pos:C}=Sm(k,C,O,z,$e,Ne),ot(xt===null?null:String.fromCodePoint(xt))}case 116:return ot("	");case 98:return ot("\b");case 118:return ot("\v");case 102:return ot("\f");case 13:k.charCodeAt(C)===10&&++C;case 10:O=C,++z;case 8232:case 8233:return ot("");case 56:case 57:if(ue)return ot(null);Ne.strictNumericEscape(C-1,O,z);default:if(vt>=48&&vt<=55){let xt=C-1,Hn=/^[0-7]+/.exec(k.slice(xt,C+2))[0],Oi=parseInt(Hn,8);Oi>255&&(Hn=Hn.slice(0,-1),Oi=parseInt(Hn,8)),C+=Hn.length-1;let fo=k.charCodeAt(C);if(Hn!=="0"||fo===56||fo===57){if(ue)return ot(null);Ne.strictNumericEscape(xt,O,z)}return ot(String.fromCharCode(Oi))}return ot(String.fromCharCode(vt))}}function Sf(k,C,O,z,ue,Ne,$e,ot){let vt=C,xt;return{n:xt,pos:C}=Mh(k,C,O,z,16,ue,Ne,!1,ot,!$e),xt===null&&($e?ot.invalidEscapeSequence(vt,O,z):C=vt-1),{code:xt,pos:C}}function Mh(k,C,O,z,ue,Ne,$e,ot,vt,xt){let Hn=C,Oi=ue===16?Bu.hex:Bu.decBinOct,fo=ue===16?ju.hex:ue===10?ju.dec:ue===8?ju.oct:ju.bin,Ko=!1,Gc=0;for(let Af=0,zu=Ne??1/0;Af<zu;++Af){let rd=k.charCodeAt(C),Og;if(rd===95&&ot!=="bail"){let Ww=k.charCodeAt(C-1),bP=k.charCodeAt(C+1);if(ot){if(Number.isNaN(bP)||!fo(bP)||Oi.has(Ww)||Oi.has(bP)){if(xt)return{n:null,pos:C};vt.unexpectedNumericSeparator(C,O,z)}}else{if(xt)return{n:null,pos:C};vt.numericSeparatorInEscapeSequence(C,O,z)}++C;continue}if(rd>=97?Og=rd-97+10:rd>=65?Og=rd-65+10:Ig(rd)?Og=rd-48:Og=1/0,Og>=ue){if(Og<=9&&xt)return{n:null,pos:C};if(Og<=9&&vt.invalidDigit(C,O,z,ue))Og=0;else if($e)Og=0,Ko=!0;else break}++C,Gc=Gc*ue+Og}return C===Hn||Ne!=null&&C-Hn!==Ne||Ko?{n:null,pos:C}:{n:Gc,pos:C}}function Sm(k,C,O,z,ue,Ne){let $e=k.charCodeAt(C),ot;if($e===123){if(++C,{code:ot,pos:C}=Sf(k,C,O,z,k.indexOf("}",C)-C,!0,ue,Ne),++C,ot!==null&&ot>1114111)if(ue)Ne.invalidCodePoint(C,O,z);else return{code:null,pos:C}}else({code:ot,pos:C}=Sf(k,C,O,z,4,!1,ue,Ne));return{code:ot,pos:C}}function io(k,C,O){return new h(O,k-C,k)}var Ml=new Set([103,109,115,105,121,117,100,118]),Rp=class{constructor(k){let C=k.startIndex||0;this.type=k.type,this.value=k.value,this.start=C+k.start,this.end=C+k.end,this.loc=new f(k.startLoc,k.endLoc)}},xf=class extends Cf{isLookahead;tokens=[];constructor(k,C){super(),this.state=new Tc,this.state.init(k),this.input=C,this.length=C.length,this.comments=[],this.isLookahead=!1}pushToken(k){this.tokens.length=this.state.tokensLength,this.tokens.push(k),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new Rp(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(k){return this.match(k)?(this.next(),!0):!1}match(k){return this.state.type===k}createLookaheadState(k){return{pos:k.pos,value:null,type:k.type,start:k.start,end:k.end,context:[this.curContext()],inType:k.inType,startLoc:k.startLoc,lastTokEndLoc:k.lastTokEndLoc,curLine:k.curLine,lineStart:k.lineStart,curPosition:k.curPosition}}lookahead(){let k=this.state;this.state=this.createLookaheadState(k),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let C=this.state;return this.state=k,C}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(k){return Mo.lastIndex=k,Mo.test(this.input)?Mo.lastIndex:k}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(k){return this.input.charCodeAt(this.nextTokenStartSince(k))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(k){return Us.lastIndex=k,Us.test(this.input)?Us.lastIndex:k}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(k){let C=this.input.charCodeAt(k);if((C&64512)===55296&&++k<this.input.length){let O=this.input.charCodeAt(k);(O&64512)===56320&&(C=65536+((C&1023)<<10)+(O&1023))}return C}setStrict(k){this.state.strict=k,k&&(this.state.strictErrors.forEach(([C,O])=>this.raise(C,O)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(k){let C;this.isLookahead||(C=this.state.curPosition());let O=this.state.pos,z=this.input.indexOf(k,O+2);if(z===-1)throw this.raise(N.UnterminatedComment,this.state.curPosition());for(this.state.pos=z+k.length,fi.lastIndex=O+2;fi.test(this.input)&&fi.lastIndex<=z;)++this.state.curLine,this.state.lineStart=fi.lastIndex;if(this.isLookahead)return;let ue={type:"CommentBlock",value:this.input.slice(O+2,z),start:this.sourceToOffsetPos(O),end:this.sourceToOffsetPos(z+k.length),loc:new f(C,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(ue),ue}skipLineComment(k){let C=this.state.pos,O;this.isLookahead||(O=this.state.curPosition());let z=this.input.charCodeAt(this.state.pos+=k);if(this.state.pos<this.length)for(;!Fr(z)&&++this.state.pos<this.length;)z=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let ue=this.state.pos,Ne={type:"CommentLine",value:this.input.slice(C+k,ue),start:this.sourceToOffsetPos(C),end:this.sourceToOffsetPos(ue),loc:new f(O,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(Ne),Ne}skipSpace(){let k=this.state.pos,C=this.optionFlags&4096?[]:null;e:for(;this.state.pos<this.length;){let O=this.input.charCodeAt(this.state.pos);switch(O){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let z=this.skipBlockComment("*/");z!==void 0&&(this.addComment(z),C?.push(z));break}case 47:{let z=this.skipLineComment(2);z!==void 0&&(this.addComment(z),C?.push(z));break}default:break e}break;default:if(nl(O))++this.state.pos;else if(O===45&&!this.inModule&&this.optionFlags&8192){let z=this.state.pos;if(this.input.charCodeAt(z+1)===45&&this.input.charCodeAt(z+2)===62&&(k===0||this.state.lineStart>k)){let ue=this.skipLineComment(3);ue!==void 0&&(this.addComment(ue),C?.push(ue))}else break e}else if(O===60&&!this.inModule&&this.optionFlags&8192){let z=this.state.pos;if(this.input.charCodeAt(z+1)===33&&this.input.charCodeAt(z+2)===45&&this.input.charCodeAt(z+3)===45){let ue=this.skipLineComment(4);ue!==void 0&&(this.addComment(ue),C?.push(ue))}else break e}else break e}}if(C?.length>0){let O=this.state.pos,z={start:this.sourceToOffsetPos(k),end:this.sourceToOffsetPos(O),comments:C,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(z)}}finishToken(k,C){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let O=this.state.type;this.state.type=k,this.state.value=C,this.isLookahead||this.updateContext(O)}replaceToken(k){this.state.type=k,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let k=this.state.pos+1,C=this.codePointAtPos(k);if(C>=48&&C<=57)throw this.raise(N.UnexpectedDigitAfterHash,this.state.curPosition());we(C)?(++this.state.pos,this.finishToken(139,this.readWord1(C))):C===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let k=this.input.charCodeAt(this.state.pos+1);if(k>=48&&k<=57){this.readNumber(!0);return}k===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let k=this.input.charCodeAt(this.state.pos+1);if(k!==33)return!1;let C=this.state.pos;for(this.state.pos+=1;!Fr(k)&&++this.state.pos<this.length;)k=this.input.charCodeAt(this.state.pos);let O=this.input.slice(C+2,this.state.pos);return this.finishToken(28,O),!0}readToken_mult_modulo(k){let C=k===42?55:54,O=1,z=this.input.charCodeAt(this.state.pos+1);k===42&&z===42&&(O++,z=this.input.charCodeAt(this.state.pos+2),C=57),z===61&&!this.state.inType&&(O++,C=k===37?33:30),this.finishOp(C,O)}readToken_pipe_amp(k){let C=this.input.charCodeAt(this.state.pos+1);if(C===k){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(k===124?41:42,2);return}if(k===124&&C===62){this.finishOp(39,2);return}if(C===61){this.finishOp(30,2);return}this.finishOp(k===124?43:45,1)}readToken_caret(){let k=this.input.charCodeAt(this.state.pos+1);k===61&&!this.state.inType?this.finishOp(32,2):k===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(k){let C=this.input.charCodeAt(this.state.pos+1);if(C===k){this.finishOp(34,2);return}C===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:k}=this.state,C=this.input.charCodeAt(k+1);if(C===60){if(this.input.charCodeAt(k+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(C===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:k}=this.state,C=this.input.charCodeAt(k+1);if(C===62){let O=this.input.charCodeAt(k+2)===62?3:2;if(this.input.charCodeAt(k+O)===61){this.finishOp(30,O+1);return}this.finishOp(52,O);return}if(C===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(k){let C=this.input.charCodeAt(this.state.pos+1);if(C===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(k===61&&C===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(k===61?29:35,1)}readToken_question(){let k=this.input.charCodeAt(this.state.pos+1),C=this.input.charCodeAt(this.state.pos+2);k===63?C===61?this.finishOp(30,3):this.finishOp(40,2):k===46&&!(C>=48&&C<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(k){switch(k){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let C=this.input.charCodeAt(this.state.pos+1);if(C===120||C===88){this.readRadixNumber(16);return}if(C===111||C===79){this.readRadixNumber(8);return}if(C===98||C===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(k);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(k);return;case 124:case 38:this.readToken_pipe_amp(k);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(k);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(k);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(we(k)){this.readWord(k);return}}throw this.raise(N.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(k)})}finishOp(k,C){let O=this.input.slice(this.state.pos,this.state.pos+C);this.state.pos+=C,this.finishToken(k,O)}readRegexp(){let k=this.state.startLoc,C=this.state.start+1,O,z,{pos:ue}=this.state;for(;;++ue){if(ue>=this.length)throw this.raise(N.UnterminatedRegExp,p(k,1));let vt=this.input.charCodeAt(ue);if(Fr(vt))throw this.raise(N.UnterminatedRegExp,p(k,1));if(O)O=!1;else{if(vt===91)z=!0;else if(vt===93&&z)z=!1;else if(vt===47&&!z)break;O=vt===92}}let Ne=this.input.slice(C,ue);++ue;let $e="",ot=()=>p(k,ue+2-C);for(;ue<this.length;){let vt=this.codePointAtPos(ue),xt=String.fromCharCode(vt);if(Ml.has(vt))vt===118?$e.includes("u")&&this.raise(N.IncompatibleRegExpUVFlags,ot()):vt===117&&$e.includes("v")&&this.raise(N.IncompatibleRegExpUVFlags,ot()),$e.includes(xt)&&this.raise(N.DuplicateRegExpFlags,ot());else if(ve(vt)||vt===92)this.raise(N.MalformedRegExpFlags,ot());else break;++ue,$e+=xt}this.state.pos=ue,this.finishToken(138,{pattern:Ne,flags:$e})}readInt(k,C,O=!1,z=!0){let{n:ue,pos:Ne}=Mh(this.input,this.state.pos,this.state.lineStart,this.state.curLine,k,C,O,z,this.errorHandlers_readInt,!1);return this.state.pos=Ne,ue}readRadixNumber(k){let C=this.state.pos,O=this.state.curPosition(),z=!1;this.state.pos+=2;let ue=this.readInt(k);ue==null&&this.raise(N.InvalidDigit,p(O,2),{radix:k});let Ne=this.input.charCodeAt(this.state.pos);if(Ne===110)++this.state.pos,z=!0;else if(Ne===109)throw this.raise(N.InvalidDecimal,O);if(we(this.codePointAtPos(this.state.pos)))throw this.raise(N.NumberIdentifier,this.state.curPosition());if(z){let $e=this.input.slice(C,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,$e);return}this.finishToken(135,ue)}readNumber(k){let C=this.state.pos,O=this.state.curPosition(),z=!1,ue=!1,Ne=!1;!k&&this.readInt(10)===null&&this.raise(N.InvalidNumber,this.state.curPosition());let $e=this.state.pos-C>=2&&this.input.charCodeAt(C)===48;if($e){let Hn=this.input.slice(C,this.state.pos);if(this.recordStrictModeErrors(N.StrictOctalLiteral,O),!this.state.strict){let Oi=Hn.indexOf("_");Oi>0&&this.raise(N.ZeroDigitNumericSeparator,p(O,Oi))}Ne=$e&&!/[89]/.test(Hn)}let ot=this.input.charCodeAt(this.state.pos);if(ot===46&&!Ne&&(++this.state.pos,this.readInt(10),z=!0,ot=this.input.charCodeAt(this.state.pos)),(ot===69||ot===101)&&!Ne&&(ot=this.input.charCodeAt(++this.state.pos),(ot===43||ot===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(N.InvalidOrMissingExponent,O),z=!0,ot=this.input.charCodeAt(this.state.pos)),ot===110&&((z||$e)&&this.raise(N.InvalidBigIntLiteral,O),++this.state.pos,ue=!0),we(this.codePointAtPos(this.state.pos)))throw this.raise(N.NumberIdentifier,this.state.curPosition());let vt=this.input.slice(C,this.state.pos).replace(/[_mn]/g,"");if(ue){this.finishToken(136,vt);return}let xt=Ne?parseInt(vt,8):parseFloat(vt);this.finishToken(135,xt)}readCodePoint(k){let{code:C,pos:O}=Sm(this.input,this.state.pos,this.state.lineStart,this.state.curLine,k,this.errorHandlers_readCodePoint);return this.state.pos=O,C}readString(k){let{str:C,pos:O,curLine:z,lineStart:ue}=Mp(k===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=O+1,this.state.lineStart=ue,this.state.curLine=z,this.finishToken(134,C)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let k=this.input[this.state.pos],{str:C,firstInvalidLoc:O,pos:z,curLine:ue,lineStart:Ne}=Mp("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=z+1,this.state.lineStart=Ne,this.state.curLine=ue,O&&(this.state.firstInvalidTemplateEscapePos=new h(O.curLine,O.pos-O.lineStart,this.sourceToOffsetPos(O.pos))),this.input.codePointAt(z)===96?this.finishToken(24,O?null:k+C+"`"):(this.state.pos++,this.finishToken(25,O?null:k+C+"${"))}recordStrictModeErrors(k,C){let O=C.index;this.state.strict&&!this.state.strictErrors.has(O)?this.raise(k,C):this.state.strictErrors.set(O,[k,C])}readWord1(k){this.state.containsEsc=!1;let C="",O=this.state.pos,z=this.state.pos;for(k!==void 0&&(this.state.pos+=k<=65535?1:2);this.state.pos<this.length;){let ue=this.codePointAtPos(this.state.pos);if(ve(ue))this.state.pos+=ue<=65535?1:2;else if(ue===92){this.state.containsEsc=!0,C+=this.input.slice(z,this.state.pos);let Ne=this.state.curPosition(),$e=this.state.pos===O?we:ve;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(N.MissingUnicodeEscape,this.state.curPosition()),z=this.state.pos-1;continue}++this.state.pos;let ot=this.readCodePoint(!0);ot!==null&&($e(ot)||this.raise(N.EscapedCharNotAnIdentifier,Ne),C+=String.fromCodePoint(ot)),z=this.state.pos}else break}return C+this.input.slice(z,this.state.pos)}readWord(k){let C=this.readWord1(k),O=de.get(C);O!==void 0?this.finishToken(O,pn(O)):this.finishToken(132,C)}checkKeywordEscapes(){let{type:k}=this.state;Rt(k)&&this.state.containsEsc&&this.raise(N.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:pn(k)})}raise(k,C,O={}){let z=C instanceof h?C:C.loc.start,ue=k(z,O);if(!(this.optionFlags&2048))throw ue;return this.isLookahead||this.state.errors.push(ue),ue}raiseOverwrite(k,C,O={}){let z=C instanceof h?C:C.loc.start,ue=z.index,Ne=this.state.errors;for(let $e=Ne.length-1;$e>=0;$e--){let ot=Ne[$e];if(ot.loc.index===ue)return Ne[$e]=k(z,O);if(ot.loc.index<ue)break}return this.raise(k,C,O)}updateContext(k){}unexpected(k,C){throw this.raise(N.UnexpectedToken,k??this.state.startLoc,{expected:C?pn(C):null})}expectPlugin(k,C){if(this.hasPlugin(k))return!0;throw this.raise(N.MissingPlugin,C??this.state.startLoc,{missingPlugin:[k]})}expectOnePlugin(k){if(!k.some(C=>this.hasPlugin(C)))throw this.raise(N.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:k})}errorBuilder(k){return(C,O,z)=>{this.raise(k,io(C,O,z))}}errorHandlers_readInt={invalidDigit:(k,C,O,z)=>this.optionFlags&2048?(this.raise(N.InvalidDigit,io(k,C,O),{radix:z}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(N.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(N.UnexpectedNumericSeparator)};errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(N.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(N.InvalidCodePoint)});errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(k,C,O)=>{this.recordStrictModeErrors(N.StrictNumericEscape,io(k,C,O))},unterminated:(k,C,O)=>{throw this.raise(N.UnterminatedString,io(k-1,C,O))}});errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(N.StrictNumericEscape),unterminated:(k,C,O)=>{throw this.raise(N.UnterminatedTemplate,io(k,C,O))}})},kc=class{privateNames=new Set;loneAccessors=new Map;undefinedPrivateNames=new Map},nd=class{parser;stack=[];undefinedPrivateNames=new Map;constructor(k){this.parser=k}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new kc)}exit(){let k=this.stack.pop(),C=this.current();for(let[O,z]of Array.from(k.undefinedPrivateNames))C?C.undefinedPrivateNames.has(O)||C.undefinedPrivateNames.set(O,z):this.parser.raise(N.InvalidPrivateFieldResolution,z,{identifierName:O})}declarePrivateName(k,C,O){let{privateNames:z,loneAccessors:ue,undefinedPrivateNames:Ne}=this.current(),$e=z.has(k);if(C&3){let ot=$e&&ue.get(k);if(ot){let vt=ot&4,xt=C&4,Hn=ot&3,Oi=C&3;$e=Hn===Oi||vt!==xt,$e||ue.delete(k)}else $e||ue.set(k,C)}$e&&this.parser.raise(N.PrivateNameRedeclaration,O,{identifierName:k}),z.add(k),Ne.delete(k)}usePrivateName(k,C){let O;for(O of this.stack)if(O.privateNames.has(k))return;O?O.undefinedPrivateNames.set(k,C):this.parser.raise(N.InvalidPrivateFieldResolution,C,{identifierName:k})}},Ic=class{constructor(k=0){this.type=k}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Eu=class extends Ic{declarationErrors=new Map;constructor(k){super(k)}recordDeclarationError(k,C){let O=C.index;this.declarationErrors.set(O,[k,C])}clearDeclarationError(k){this.declarationErrors.delete(k)}iterateErrors(k){this.declarationErrors.forEach(k)}},Ed=class{parser;stack=[new Ic];constructor(k){this.parser=k}enter(k){this.stack.push(k)}exit(){this.stack.pop()}recordParameterInitializerError(k,C){let O=C.loc.start,{stack:z}=this,ue=z.length-1,Ne=z[ue];for(;!Ne.isCertainlyParameterDeclaration();){if(Ne.canBeArrowParameterDeclaration())Ne.recordDeclarationError(k,O);else return;Ne=z[--ue]}this.parser.raise(k,O)}recordArrowParameterBindingError(k,C){let{stack:O}=this,z=O[O.length-1],ue=C.loc.start;if(z.isCertainlyParameterDeclaration())this.parser.raise(k,ue);else if(z.canBeArrowParameterDeclaration())z.recordDeclarationError(k,ue);else return}recordAsyncArrowParametersError(k){let{stack:C}=this,O=C.length-1,z=C[O];for(;z.canBeArrowParameterDeclaration();)z.type===2&&z.recordDeclarationError(N.AwaitBindingIdentifier,k),z=C[--O]}validateAsPattern(){let{stack:k}=this,C=k[k.length-1];C.canBeArrowParameterDeclaration()&&C.iterateErrors(([O,z])=>{this.parser.raise(O,z);let ue=k.length-2,Ne=k[ue];for(;Ne.canBeArrowParameterDeclaration();)Ne.clearDeclarationError(z.index),Ne=k[--ue]})}};function $c(){return new Ic(3)}function Lc(){return new Eu(1)}function Ef(){return new Eu(2)}function cc(){return new Ic}var Au=class extends xf{addExtra(k,C,O,z=!0){if(!k)return;let{extra:ue}=k;ue==null&&(ue={},k.extra=ue),z?ue[C]=O:Object.defineProperty(ue,C,{enumerable:z,value:O})}isContextual(k){return this.state.type===k&&!this.state.containsEsc}isUnparsedContextual(k,C){if(this.input.startsWith(C,k)){let O=this.input.charCodeAt(k+C.length);return!(ve(O)||(O&64512)===55296)}return!1}isLookaheadContextual(k){let C=this.nextTokenStart();return this.isUnparsedContextual(C,k)}eatContextual(k){return this.isContextual(k)?(this.next(),!0):!1}expectContextual(k,C){if(!this.eatContextual(k)){if(C!=null)throw this.raise(C,this.state.startLoc);this.unexpected(null,k)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Wo(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Wo(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(k=!0){(k?this.isLineTerminator():this.eat(13))||this.raise(N.MissingSemicolon,this.state.lastTokEndLoc)}expect(k,C){this.eat(k)||this.unexpected(C,k)}tryParse(k,C=this.state.clone()){let O={node:null};try{let z=k((ue=null)=>{throw O.node=ue,O});if(this.state.errors.length>C.errors.length){let ue=this.state;return this.state=C,this.state.tokensLength=ue.tokensLength,{node:z,error:ue.errors[C.errors.length],thrown:!1,aborted:!1,failState:ue}}return{node:z,error:null,thrown:!1,aborted:!1,failState:null}}catch(z){let ue=this.state;if(this.state=C,z instanceof SyntaxError)return{node:null,error:z,thrown:!0,aborted:!1,failState:ue};if(z===O)return{node:O.node,error:null,thrown:!1,aborted:!0,failState:ue};throw z}}checkExpressionErrors(k,C){if(!k)return!1;let{shorthandAssignLoc:O,doubleProtoLoc:z,privateKeyLoc:ue,optionalParametersLoc:Ne,voidPatternLoc:$e}=k,ot=!!O||!!z||!!Ne||!!ue||!!$e;if(!C)return ot;O!=null&&this.raise(N.InvalidCoverInitializedName,O),z!=null&&this.raise(N.DuplicateProto,z),ue!=null&&this.raise(N.UnexpectedPrivateField,ue),Ne!=null&&this.unexpected(Ne),$e!=null&&this.raise(N.InvalidCoverDiscardElement,$e)}isLiteralPropertyName(){return ct(this.state.type)}isPrivateName(k){return k.type==="PrivateName"}getPrivateNameSV(k){return k.id.name}hasPropertyAsPrivateName(k){return(k.type==="MemberExpression"||k.type==="OptionalMemberExpression")&&this.isPrivateName(k.property)}isObjectProperty(k){return k.type==="ObjectProperty"}isObjectMethod(k){return k.type==="ObjectMethod"}initializeScopes(k=this.options.sourceType==="module"){let C=this.state.labels;this.state.labels=[];let O=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let z=this.inModule;this.inModule=k;let ue=this.scope,Ne=this.getScopeHandler();this.scope=new Ne(this,k);let $e=this.prodParam;this.prodParam=new Dc;let ot=this.classScope;this.classScope=new nd(this);let vt=this.expressionScope;return this.expressionScope=new Ed(this),()=>{this.state.labels=C,this.exportedIdentifiers=O,this.inModule=z,this.scope=ue,this.prodParam=$e,this.classScope=ot,this.expressionScope=vt}}enterInitialScopes(){let k=0;(this.inModule||this.optionFlags&1)&&(k|=2),this.optionFlags&32&&(k|=1);let C=!this.inModule&&this.options.sourceType==="commonjs";(C||this.optionFlags&2)&&(k|=4),this.prodParam.enter(k);let O=C?514:1;this.optionFlags&4&&(O|=512),this.optionFlags&16&&(O|=48),this.scope.enter(O)}checkDestructuringPrivate(k){let{privateKeyLoc:C}=k;C!==null&&this.expectPlugin("destructuringPrivate",C)}},xe=class{shorthandAssignLoc=null;doubleProtoLoc=null;privateKeyLoc=null;optionalParametersLoc=null;voidPatternLoc=null},Ke=class{constructor(k,C,O){this.start=C,this.end=0,this.loc=new f(O),k?.optionFlags&128&&(this.range=[C,0]),k?.filename&&(this.loc.filename=k.filename)}type=""},nt=Ke.prototype,kt=class extends Au{startNode(){let k=this.state.startLoc;return new Ke(this,k.index,k)}startNodeAt(k){return new Ke(this,k.index,k)}startNodeAtNode(k){return this.startNodeAt(k.loc.start)}finishNode(k,C){return this.finishNodeAt(k,C,this.state.lastTokEndLoc)}finishNodeAt(k,C,O){return k.type=C,k.end=O.index,k.loc.end=O,this.optionFlags&128&&(k.range[1]=O.index),this.optionFlags&4096&&this.processComment(k),k}resetStartLocation(k,C){k.start=C.index,k.loc.start=C,this.optionFlags&128&&(k.range[0]=C.index)}resetEndLocation(k,C=this.state.lastTokEndLoc){k.end=C.index,k.loc.end=C,this.optionFlags&128&&(k.range[1]=C.index)}resetStartLocationFromNode(k,C){this.resetStartLocation(k,C.loc.start)}castNodeTo(k,C){return k.type=C,k}cloneIdentifier(k){let{type:C,start:O,end:z,loc:ue,range:Ne,name:$e}=k,ot=Object.create(nt);return ot.type=C,ot.start=O,ot.end=z,ot.loc=ue,ot.range=Ne,ot.name=$e,k.extra&&(ot.extra=k.extra),ot}cloneStringLiteral(k){let{type:C,start:O,end:z,loc:ue,range:Ne,extra:$e}=k,ot=Object.create(nt);return ot.type=C,ot.start=O,ot.end=z,ot.loc=ue,ot.range=Ne,ot.extra=$e,ot.value=k.value,ot}},Oe=k=>k.type==="ParenthesizedExpression"?Oe(k.expression):k,st=class extends kt{toAssignable(k,C=!1){let O;switch((k.type==="ParenthesizedExpression"||k.extra?.parenthesized)&&(O=Oe(k),C?O.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(N.InvalidParenthesizedAssignment,k):O.type!=="CallExpression"&&O.type!=="MemberExpression"&&!this.isOptionalMemberExpression(O)&&this.raise(N.InvalidParenthesizedAssignment,k):this.raise(N.InvalidParenthesizedAssignment,k)),k.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(k,"ObjectPattern");for(let z=0,ue=k.properties.length,Ne=ue-1;z<ue;z++){let $e=k.properties[z],ot=z===Ne;this.toAssignableObjectExpressionProp($e,ot,C),ot&&$e.type==="RestElement"&&k.extra?.trailingCommaLoc&&this.raise(N.RestTrailingComma,k.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:z,value:ue}=k;this.isPrivateName(z)&&this.classScope.usePrivateName(this.getPrivateNameSV(z),z.loc.start),this.toAssignable(ue,C);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(k,"ArrayPattern"),this.toAssignableList(k.elements,k.extra?.trailingCommaLoc,C);break;case"AssignmentExpression":k.operator!=="="&&this.raise(N.MissingEqInAssignment,k.left.loc.end),this.castNodeTo(k,"AssignmentPattern"),delete k.operator,k.left.type==="VoidPattern"&&this.raise(N.VoidPatternInitializer,k.left),this.toAssignable(k.left,C);break;case"ParenthesizedExpression":this.toAssignable(O,C);break}}toAssignableObjectExpressionProp(k,C,O){if(k.type==="ObjectMethod")this.raise(k.kind==="get"||k.kind==="set"?N.PatternHasAccessor:N.PatternHasMethod,k.key);else if(k.type==="SpreadElement"){this.castNodeTo(k,"RestElement");let z=k.argument;this.checkToRestConversion(z,!1),this.toAssignable(z,O),C||this.raise(N.RestTrailingComma,k)}else this.toAssignable(k,O)}toAssignableList(k,C,O){let z=k.length-1;for(let ue=0;ue<=z;ue++){let Ne=k[ue];Ne&&(this.toAssignableListItem(k,ue,O),Ne.type==="RestElement"&&(ue<z?this.raise(N.RestTrailingComma,Ne):C&&this.raise(N.RestTrailingComma,C)))}}toAssignableListItem(k,C,O){let z=k[C];if(z.type==="SpreadElement"){this.castNodeTo(z,"RestElement");let ue=z.argument;this.checkToRestConversion(ue,!0),this.toAssignable(ue,O)}else this.toAssignable(z,O)}isAssignable(k,C){switch(k.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let O=k.properties.length-1;return k.properties.every((z,ue)=>z.type!=="ObjectMethod"&&(ue===O||z.type!=="SpreadElement")&&this.isAssignable(z))}case"ObjectProperty":return this.isAssignable(k.value);case"SpreadElement":return this.isAssignable(k.argument);case"ArrayExpression":return k.elements.every(O=>O===null||this.isAssignable(O));case"AssignmentExpression":return k.operator==="=";case"ParenthesizedExpression":return this.isAssignable(k.expression);case"MemberExpression":case"OptionalMemberExpression":return!C;default:return!1}}toReferencedList(k,C){return k}toReferencedListDeep(k,C){this.toReferencedList(k,C);for(let O of k)O?.type==="ArrayExpression"&&this.toReferencedListDeep(O.elements)}parseSpread(k){let C=this.startNode();return this.next(),C.argument=this.parseMaybeAssignAllowIn(k,void 0),this.finishNode(C,"SpreadElement")}parseRestBinding(){let k=this.startNode();this.next();let C=this.parseBindingAtom();return C.type==="VoidPattern"&&this.raise(N.UnexpectedVoidPattern,C),k.argument=C,this.finishNode(k,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let k=this.startNode();return this.next(),k.elements=this.parseBindingList(3,93,1),this.finishNode(k,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(k,C,O){let z=O&1,ue=[],Ne=!0;for(;!this.eat(k);)if(Ne?Ne=!1:this.expect(12),z&&this.match(12))ue.push(null);else{if(this.eat(k))break;if(this.match(21)){let $e=this.parseRestBinding();if(O&2&&($e=this.parseFunctionParamType($e)),ue.push($e),!this.checkCommaAfterRest(C)){this.expect(k);break}}else{let $e=[];if(O&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(N.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)$e.push(this.parseDecorator());ue.push(this.parseBindingElement(O,$e))}}return ue}parseBindingRestProperty(k){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(k.argument=this.parseVoidPattern(null),this.raise(N.UnexpectedVoidPattern,k.argument)):k.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(k,"RestElement")}parseBindingProperty(){let{type:k,startLoc:C}=this.state;if(k===21)return this.parseBindingRestProperty(this.startNode());let O=this.startNode();return k===139?(this.expectPlugin("destructuringPrivate",C),this.classScope.usePrivateName(this.state.value,C),O.key=this.parsePrivateName()):this.parsePropertyName(O),O.method=!1,this.parseObjPropValue(O,C,!1,!1,!0,!1)}parseBindingElement(k,C){let O=this.parseMaybeDefault();return k&2&&this.parseFunctionParamType(O),C.length&&(O.decorators=C,this.resetStartLocationFromNode(O,C[0])),this.parseMaybeDefault(O.loc.start,O)}parseFunctionParamType(k){return k}parseMaybeDefault(k,C){if(k??(k=this.state.startLoc),C=C??this.parseBindingAtom(),!this.eat(29))return C;let O=this.startNodeAt(k);return C.type==="VoidPattern"&&this.raise(N.VoidPatternInitializer,C),O.left=C,O.right=this.parseMaybeAssignAllowIn(),this.finishNode(O,"AssignmentPattern")}isValidLVal(k,C,O,z){switch(k){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!C&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(k){return k.type==="OptionalMemberExpression"}checkLVal(k,C,O=64,z=!1,ue=!1,Ne=!1,$e=!1){let ot=k.type;if(this.isObjectMethod(k))return;let vt=this.isOptionalMemberExpression(k);if(vt||ot==="MemberExpression"){vt&&(this.expectPlugin("optionalChainingAssign",k.loc.start),C.type!=="AssignmentExpression"&&this.raise(N.InvalidLhsOptionalChaining,k,{ancestor:C})),O!==64&&this.raise(N.InvalidPropertyBindingPattern,k);return}if(ot==="Identifier"){this.checkIdentifier(k,O,ue);let{name:Af}=k;z&&(z.has(Af)?this.raise(N.ParamDupe,k):z.add(Af));return}else ot==="VoidPattern"&&C.type==="CatchClause"&&this.raise(N.VoidPatternCatchClauseParam,k);let xt=Oe(k);$e||($e=xt.type==="CallExpression"&&(xt.callee.type==="Import"||xt.callee.type==="Super"));let Hn=this.isValidLVal(ot,$e,!(Ne||k.extra?.parenthesized)&&C.type==="AssignmentExpression",O);if(Hn===!0)return;if(Hn===!1){let Af=O===64?N.InvalidLhs:N.InvalidLhsBinding;this.raise(Af,k,{ancestor:C});return}let Oi,fo;typeof Hn=="string"?(Oi=Hn,fo=ot==="ParenthesizedExpression"):[Oi,fo]=Hn;let Ko=ot==="ArrayPattern"||ot==="ObjectPattern"?{type:ot}:C,Gc=k[Oi];if(Array.isArray(Gc))for(let Af of Gc)Af&&this.checkLVal(Af,Ko,O,z,ue,fo,!0);else Gc&&this.checkLVal(Gc,Ko,O,z,ue,fo,$e)}checkIdentifier(k,C,O=!1){this.state.strict&&(O?dt(k.name,this.inModule):Ve(k.name))&&(C===64?this.raise(N.StrictEvalArguments,k,{referenceName:k.name}):this.raise(N.StrictEvalArgumentsBinding,k,{bindingName:k.name})),C&8192&&k.name==="let"&&this.raise(N.LetInLexicalBinding,k),C&64||this.declareNameFromIdentifier(k,C)}declareNameFromIdentifier(k,C){this.scope.declareName(k.name,C,k.loc.start)}checkToRestConversion(k,C){switch(k.type){case"ParenthesizedExpression":this.checkToRestConversion(k.expression,C);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(C)break;default:this.raise(N.InvalidRestAssignmentPattern,k)}}checkCommaAfterRest(k){return this.match(12)?(this.raise(this.lookaheadCharCode()===k?N.RestTrailingComma:N.ElementAfterRest,this.state.startLoc),!0):!1}},$t=/in(?:stanceof)?|as|satisfies/y;function yi(k){if(k==null)throw new Error(`Unexpected ${k} value.`);return k}function xr(k){if(!k)throw new Error("Assert fail")}var Gn=F`typescript`({AbstractMethodHasImplementation:({methodName:k})=>`Method '${k}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:k})=>`Property '${k}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:k})=>`'declare' is not allowed in ${k}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:k})=>`Accessibility modifier already seen: '${k}'.`,DuplicateModifier:({modifier:k})=>`Duplicate modifier: '${k}'.`,EmptyHeritageClauseType:({token:k})=>`'${k}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:k})=>`'${k[0]}' modifier cannot be used with '${k[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:k})=>`Index signatures cannot have an accessibility modifier ('${k}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:k})=>`'${k}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:k=>`'${k}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:k})=>`'${k}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:k})=>`'${k}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:k})=>`'${k}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:k=>`'${k}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:k})=>`'${k[0]}' modifier must precede '${k[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:k})=>`Private elements cannot have an accessibility modifier ('${k}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:k})=>`Single type parameter ${k} should have a trailing comma. Example usage: <${k},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:k})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${k}.`,UsingDeclarationInAmbientContext:k=>`'${k}' declarations are not allowed in ambient contexts.`});function Go(k){switch(k){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function ro(k){return k==="private"||k==="public"||k==="protected"}function ts(k){return k==="in"||k==="out"}function dl(k){if(k.extra?.parenthesized)return!1;switch(k.type){case"Identifier":return!0;case"MemberExpression":return!k.computed&&dl(k.object);case"TSInstantiationExpression":return dl(k.expression);default:return!1}}var hs=k=>class extends k{getScopeHandler(){return Xu}tsIsIdentifier(){return Ye(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(C,O,z){if(!Ye(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let ue=this.state.value;if(C.includes(ue)){if(z&&this.match(106)||O&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return ue}}tsParseModifiers({allowedModifiers:C,disallowedModifiers:O,stopOnStartOfClassStaticBlock:z,errorTemplate:ue=Gn.InvalidModifierOnTypeMember},Ne){let $e=(vt,xt,Hn,Oi)=>{xt===Hn&&Ne[Oi]&&this.raise(Gn.InvalidModifiersOrder,vt,{orderedModifiers:[Hn,Oi]})},ot=(vt,xt,Hn,Oi)=>{(Ne[Hn]&&xt===Oi||Ne[Oi]&&xt===Hn)&&this.raise(Gn.IncompatibleModifiers,vt,{modifiers:[Hn,Oi]})};for(;;){let{startLoc:vt}=this.state,xt=this.tsParseModifier(C.concat(O??[]),z,Ne.static);if(!xt)break;ro(xt)?Ne.accessibility?this.raise(Gn.DuplicateAccessibilityModifier,vt,{modifier:xt}):($e(vt,xt,xt,"override"),$e(vt,xt,xt,"static"),$e(vt,xt,xt,"readonly"),Ne.accessibility=xt):ts(xt)?(Ne[xt]&&this.raise(Gn.DuplicateModifier,vt,{modifier:xt}),Ne[xt]=!0,$e(vt,xt,"in","out")):(Object.prototype.hasOwnProperty.call(Ne,xt)?this.raise(Gn.DuplicateModifier,vt,{modifier:xt}):($e(vt,xt,"static","readonly"),$e(vt,xt,"static","override"),$e(vt,xt,"override","readonly"),$e(vt,xt,"abstract","override"),ot(vt,xt,"declare","override"),ot(vt,xt,"static","abstract")),Ne[xt]=!0),O?.includes(xt)&&this.raise(ue,vt,{modifier:xt})}}tsIsListTerminator(C){switch(C){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(C,O){let z=[];for(;!this.tsIsListTerminator(C);)z.push(O());return z}tsParseDelimitedList(C,O,z){return yi(this.tsParseDelimitedListWorker(C,O,!0,z))}tsParseDelimitedListWorker(C,O,z,ue){let Ne=[],$e=-1;for(;!this.tsIsListTerminator(C);){$e=-1;let ot=O();if(ot==null)return;if(Ne.push(ot),this.eat(12)){$e=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(C))break;z&&this.expect(12);return}return ue&&(ue.value=$e),Ne}tsParseBracketedList(C,O,z,ue,Ne){ue||(z?this.expect(0):this.expect(47));let $e=this.tsParseDelimitedList(C,O,Ne);return z?this.expect(3):this.expect(48),$e}tsParseImportType(){let C=this.startNode();return this.expect(83),this.expect(10),this.match(134)?C.argument=this.tsParseLiteralTypeNode():(this.raise(Gn.UnsupportedImportTypeArgument,this.state.startLoc),C.argument=this.tsParseNonConditionalType()),this.eat(12)?C.options=this.tsParseImportTypeOptions():C.options=null,this.expect(11),this.eat(16)&&(C.qualifier=this.tsParseEntityName(3)),this.match(47)&&(C.typeArguments=this.tsParseTypeArguments()),this.finishNode(C,"TSImportType")}tsParseImportTypeOptions(){let C=this.startNode();this.expect(5);let O=this.startNode();return this.isContextual(76)?(O.method=!1,O.key=this.parseIdentifier(!0),O.computed=!1,O.shorthand=!1):this.unexpected(null,76),this.expect(14),O.value=this.tsParseImportTypeWithPropertyValue(),C.properties=[this.finishObjectProperty(O)],this.eat(12),this.expect(8),this.finishNode(C,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let C=this.startNode(),O=[];for(this.expect(5);!this.match(8);){let z=this.state.type;Ye(z)||z===134?O.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return C.properties=O,this.next(),this.finishNode(C,"ObjectExpression")}tsParseEntityName(C){let O;if(C&1&&this.match(78))if(C&2)O=this.parseIdentifier(!0);else{let z=this.startNode();this.next(),O=this.finishNode(z,"ThisExpression")}else O=this.parseIdentifier(!!(C&1));for(;this.eat(16);){let z=this.startNodeAtNode(O);z.left=O,z.right=this.parseIdentifier(!!(C&1)),O=this.finishNode(z,"TSQualifiedName")}return O}tsParseTypeReference(){let C=this.startNode();return C.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(C.typeArguments=this.tsParseTypeArguments()),this.finishNode(C,"TSTypeReference")}tsParseThisTypePredicate(C){this.next();let O=this.startNodeAtNode(C);return O.parameterName=C,O.typeAnnotation=this.tsParseTypeAnnotation(!1),O.asserts=!1,this.finishNode(O,"TSTypePredicate")}tsParseThisTypeNode(){let C=this.startNode();return this.next(),this.finishNode(C,"TSThisType")}tsParseTypeQuery(){let C=this.startNode();return this.expect(87),this.match(83)?C.exprName=this.tsParseImportType():C.exprName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(C.typeArguments=this.tsParseTypeArguments()),this.finishNode(C,"TSTypeQuery")}tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:Gn.InvalidModifierOnTypeParameter});tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Gn.InvalidModifierOnTypeParameterPositions});tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Gn.InvalidModifierOnTypeParameter});tsParseTypeParameter(C){let O=this.startNode();return C(O),O.name=this.tsParseTypeParameterName(),O.constraint=this.tsEatThenParseType(81),O.default=this.tsEatThenParseType(29),this.finishNode(O,"TSTypeParameter")}tsTryParseTypeParameters(C){if(this.match(47))return this.tsParseTypeParameters(C)}tsParseTypeParameters(C){let O=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let z={value:-1};return O.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,C),!1,!0,z),O.params.length===0&&this.raise(Gn.EmptyTypeParameters,O),z.value!==-1&&this.addExtra(O,"trailingComma",z.value),this.finishNode(O,"TSTypeParameterDeclaration")}tsFillSignature(C,O){let z=C===19,ue="params",Ne="returnType";O.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),O[ue]=this.tsParseBindingListForSignature(),z?O[Ne]=this.tsParseTypeOrTypePredicateAnnotation(C):this.match(C)&&(O[Ne]=this.tsParseTypeOrTypePredicateAnnotation(C))}tsParseBindingListForSignature(){let C=super.parseBindingList(11,41,2);for(let O of C){let{type:z}=O;(z==="AssignmentPattern"||z==="TSParameterProperty")&&this.raise(Gn.UnsupportedSignatureParameterKind,O,{type:z})}return C}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(C,O){return this.tsFillSignature(14,O),this.tsParseTypeMemberSemicolon(),this.finishNode(O,C)}tsIsUnambiguouslyIndexSignature(){return this.next(),Ye(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(C){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let O=this.parseIdentifier();O.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(O),this.expect(3),C.parameters=[O];let z=this.tsTryParseTypeAnnotation();return z&&(C.typeAnnotation=z),this.tsParseTypeMemberSemicolon(),this.finishNode(C,"TSIndexSignature")}tsParsePropertyOrMethodSignature(C,O){if(this.eat(17)&&(C.optional=!0),this.match(10)||this.match(47)){O&&this.raise(Gn.ReadonlyForMethodSignature,C);let z=C;z.kind&&this.match(47)&&this.raise(Gn.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,z),this.tsParseTypeMemberSemicolon();let ue="params",Ne="returnType";if(z.kind==="get")z[ue].length>0&&(this.raise(N.BadGetterArity,this.state.curPosition()),this.isThisParam(z[ue][0])&&this.raise(Gn.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(z.kind==="set"){if(z[ue].length!==1)this.raise(N.BadSetterArity,this.state.curPosition());else{let $e=z[ue][0];this.isThisParam($e)&&this.raise(Gn.AccessorCannotDeclareThisParameter,this.state.curPosition()),$e.type==="Identifier"&&$e.optional&&this.raise(Gn.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),$e.type==="RestElement"&&this.raise(Gn.SetAccessorCannotHaveRestParameter,this.state.curPosition())}z[Ne]&&this.raise(Gn.SetAccessorCannotHaveReturnType,z[Ne])}else z.kind="method";return this.finishNode(z,"TSMethodSignature")}else{let z=C;O&&(z.readonly=!0);let ue=this.tsTryParseTypeAnnotation();return ue&&(z.typeAnnotation=ue),this.tsParseTypeMemberSemicolon(),this.finishNode(z,"TSPropertySignature")}}tsParseTypeMember(){let C=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",C);if(this.match(77)){let z=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",C):(C.key=this.createIdentifier(z,"new"),this.tsParsePropertyOrMethodSignature(C,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},C),this.tsTryParseIndexSignature(C)||(super.parsePropertyName(C),!C.computed&&C.key.type==="Identifier"&&(C.key.name==="get"||C.key.name==="set")&&this.tsTokenCanFollowModifier()&&(C.kind=C.key.name,super.parsePropertyName(C),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(C,!!C.readonly))}tsParseTypeLiteral(){let C=this.startNode();return C.members=this.tsParseObjectTypeMembers(),this.finishNode(C,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let C=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),C}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let C=this.startNode();return this.expect(5),this.match(53)?(C.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(C.readonly=!0),this.expect(0),C.key=this.tsParseTypeParameterName(),C.constraint=this.tsExpectThenParseType(58),C.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(C.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(C.optional=!0),C.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(C,"TSMappedType")}tsParseTupleType(){let C=this.startNode();C.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let O=!1;return C.elementTypes.forEach(z=>{let{type:ue}=z;O&&ue!=="TSRestType"&&ue!=="TSOptionalType"&&!(ue==="TSNamedTupleMember"&&z.optional)&&this.raise(Gn.OptionalTypeBeforeRequired,z),O||(O=ue==="TSNamedTupleMember"&&z.optional||ue==="TSOptionalType")}),this.finishNode(C,"TSTupleType")}tsParseTupleElementType(){let C=this.state.startLoc,O=this.eat(21),{startLoc:z}=this.state,ue,Ne,$e,ot,vt=ft(this.state.type)?this.lookaheadCharCode():null;if(vt===58)ue=!0,$e=!1,Ne=this.parseIdentifier(!0),this.expect(14),ot=this.tsParseType();else if(vt===63){$e=!0;let xt=this.state.value,Hn=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(ue=!0,Ne=this.createIdentifier(this.startNodeAt(z),xt),this.expect(17),this.expect(14),ot=this.tsParseType()):(ue=!1,ot=Hn,this.expect(17))}else ot=this.tsParseType(),$e=this.eat(17),ue=this.eat(14);if(ue){let xt;Ne?(xt=this.startNodeAt(z),xt.optional=$e,xt.label=Ne,xt.elementType=ot,this.eat(17)&&(xt.optional=!0,this.raise(Gn.TupleOptionalAfterType,this.state.lastTokStartLoc))):(xt=this.startNodeAt(z),xt.optional=$e,this.raise(Gn.InvalidTupleMemberLabel,ot),xt.label=ot,xt.elementType=this.tsParseType()),ot=this.finishNode(xt,"TSNamedTupleMember")}else if($e){let xt=this.startNodeAt(z);xt.typeAnnotation=ot,ot=this.finishNode(xt,"TSOptionalType")}if(O){let xt=this.startNodeAt(C);xt.typeAnnotation=ot,ot=this.finishNode(xt,"TSRestType")}return ot}tsParseParenthesizedType(){let C=this.startNode();return this.expect(10),C.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(C,"TSParenthesizedType")}tsParseFunctionOrConstructorType(C,O){let z=this.startNode();return C==="TSConstructorType"&&(z.abstract=!!O,O&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,z)),this.finishNode(z,C)}tsParseLiteralTypeNode(){let C=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:C.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(C,"TSLiteralType")}tsParseTemplateLiteralType(){{let C=this.state.startLoc,O=this.parseTemplateElement(!1),z=[O];if(O.tail){let ue=this.startNodeAt(C),Ne=this.startNodeAt(C);return Ne.expressions=[],Ne.quasis=z,ue.literal=this.finishNode(Ne,"TemplateLiteral"),this.finishNode(ue,"TSLiteralType")}else{let ue=[];for(;!O.tail;)ue.push(this.tsParseType()),this.readTemplateContinuation(),z.push(O=this.parseTemplateElement(!1));let Ne=this.startNodeAt(C);return Ne.types=ue,Ne.quasis=z,this.finishNode(Ne,"TSTemplateLiteralType")}}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let C=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(C):C}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let C=this.startNode(),O=this.lookahead();return O.type!==135&&O.type!==136&&this.unexpected(),C.literal=this.parseMaybeUnary(),this.finishNode(C,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:if(!(this.optionFlags&1024)){let C=this.state.startLoc;this.next();let O=this.tsParseType();return this.expect(11),this.addExtra(O,"parenthesized",!0),this.addExtra(O,"parenStart",C.index),O}return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:C}=this.state;if(Ye(C)||C===88||C===84){let O=C===88?"TSVoidKeyword":C===84?"TSNullKeyword":Go(this.state.value);if(O!==void 0&&this.lookaheadCharCode()!==46){let z=this.startNode();return this.next(),this.finishNode(z,O)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:C}=this.state,O=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let z=this.startNodeAt(C);z.elementType=O,this.expect(3),O=this.finishNode(z,"TSArrayType")}else{let z=this.startNodeAt(C);z.objectType=O,z.indexType=this.tsParseType(),this.expect(3),O=this.finishNode(z,"TSIndexedAccessType")}return O}tsParseTypeOperator(){let C=this.startNode(),O=this.state.value;return this.next(),C.operator=O,C.typeAnnotation=this.tsParseTypeOperatorOrHigher(),O==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(C),this.finishNode(C,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(C){switch(C.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(Gn.UnexpectedReadonly,C)}}tsParseInferType(){let C=this.startNode();this.expectContextual(115);let O=this.startNode();return O.name=this.tsParseTypeParameterName(),O.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),C.typeParameter=this.finishNode(O,"TSTypeParameter"),this.finishNode(C,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let C=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return C}}tsParseTypeOperatorOrHigher(){return Kt(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(C,O,z){let ue=this.startNode(),Ne=this.eat(z),$e=[];do $e.push(O());while(this.eat(z));return $e.length===1&&!Ne?$e[0]:(ue.types=$e,this.finishNode(ue,C))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Ye(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:C}=this.state,O=C.length;try{return this.parseObjectLike(8,!0),C.length===O}catch{return!1}}if(this.match(0)){this.next();let{errors:C}=this.state,O=C.length;try{return super.parseBindingList(3,93,1),C.length===O}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(C){return this.tsInType(()=>{let O=this.startNode();this.expect(C);let z=this.startNode(),ue=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(ue&&this.match(78)){let ot=this.tsParseThisTypeOrThisTypePredicate();return ot.type==="TSThisType"?(z.parameterName=ot,z.asserts=!0,z.typeAnnotation=null,ot=this.finishNode(z,"TSTypePredicate")):(this.resetStartLocationFromNode(ot,z),ot.asserts=!0),O.typeAnnotation=ot,this.finishNode(O,"TSTypeAnnotation")}let Ne=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!Ne)return ue?(z.parameterName=this.parseIdentifier(),z.asserts=ue,z.typeAnnotation=null,O.typeAnnotation=this.finishNode(z,"TSTypePredicate"),this.finishNode(O,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,O);let $e=this.tsParseTypeAnnotation(!1);return z.parameterName=Ne,z.typeAnnotation=$e,z.asserts=ue,O.typeAnnotation=this.finishNode(z,"TSTypePredicate"),this.finishNode(O,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let C=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),C}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let C=this.state.containsEsc;return this.next(),!Ye(this.state.type)&&!this.match(78)?!1:(C&&this.raise(N.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(C=!0,O=this.startNode()){return this.tsInType(()=>{C&&this.expect(14),O.typeAnnotation=this.tsParseType()}),this.finishNode(O,"TSTypeAnnotation")}tsParseType(){xr(this.state.inType);let C=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return C;let O=this.startNodeAtNode(C);return O.checkType=C,O.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),O.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),O.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(O,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Gn.ReservedTypeAssertion,this.state.startLoc);let C=this.startNode();return C.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),C.expression=this.parseMaybeUnary(),this.finishNode(C,"TSTypeAssertion")}tsParseHeritageClause(C){let O=this.state.startLoc,z=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let ue=super.parseExprSubscripts();dl(ue)||this.raise(Gn.InvalidHeritageClauseType,ue.loc.start,{token:C});let Ne=C==="extends"?"TSInterfaceHeritage":"TSClassImplements";if(ue.type==="TSInstantiationExpression")return ue.type=Ne,ue;let $e=this.startNodeAtNode(ue);return $e.expression=ue,(this.match(47)||this.match(51))&&($e.typeArguments=this.tsParseTypeArgumentsInExpression()),this.finishNode($e,Ne)}});return z.length||this.raise(Gn.EmptyHeritageClauseType,O,{token:C}),z}tsParseInterfaceDeclaration(C,O={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),O.declare&&(C.declare=!0),Ye(this.state.type)?(C.id=this.parseIdentifier(),this.checkIdentifier(C.id,130)):(C.id=null,this.raise(Gn.MissingInterfaceName,this.state.startLoc)),C.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(C.extends=this.tsParseHeritageClause("extends"));let z=this.startNode();return z.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),C.body=this.finishNode(z,"TSInterfaceBody"),this.finishNode(C,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(C){return C.id=this.parseIdentifier(),this.checkIdentifier(C.id,2),C.typeAnnotation=this.tsInType(()=>{if(C.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let O=this.startNode();return this.next(),this.finishNode(O,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(C,"TSTypeAliasDeclaration")}tsInTopLevelContext(C){if(this.curContext()!==le.brace){let O=this.state.context;this.state.context=[O[0]];try{return C()}finally{this.state.context=O}}else return C()}tsInType(C){let O=this.state.inType;this.state.inType=!0;try{return C()}finally{this.state.inType=O}}tsInDisallowConditionalTypesContext(C){let O=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return C()}finally{this.state.inDisallowConditionalTypesContext=O}}tsInAllowConditionalTypesContext(C){let O=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return C()}finally{this.state.inDisallowConditionalTypesContext=O}}tsEatThenParseType(C){if(this.match(C))return this.tsNextThenParseType()}tsExpectThenParseType(C){return this.tsInType(()=>(this.expect(C),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let C=this.startNode();return C.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(C.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(C,"TSEnumMember")}tsParseEnumDeclaration(C,O={}){return O.const&&(C.const=!0),O.declare&&(C.declare=!0),this.expectContextual(126),C.id=this.parseIdentifier(),this.checkIdentifier(C.id,C.const?8971:8459),C.body=this.tsParseEnumBody(),this.finishNode(C,"TSEnumDeclaration")}tsParseEnumBody(){let C=this.startNode();return this.expect(5),C.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(C,"TSEnumBody")}tsParseModuleBlock(){let C=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(C.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(C,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(C,O=!1){return C.id=this.tsParseEntityName(1),C.id.type==="Identifier"&&this.checkIdentifier(C.id,1024),this.scope.enter(1024),this.prodParam.enter(0),C.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit(),this.finishNode(C,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(C){return this.isContextual(112)?(C.kind="global",C.id=this.parseIdentifier()):this.match(134)?(C.kind="module",C.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),C.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(C,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(C,O,z){C.id=O||this.parseIdentifier(),this.checkIdentifier(C.id,4096),this.expect(29);let ue=this.tsParseModuleReference();return C.importKind==="type"&&ue.type!=="TSExternalModuleReference"&&this.raise(Gn.ImportAliasHasImportType,ue),C.moduleReference=ue,this.semicolon(),this.finishNode(C,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let C=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),C.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(C,"TSExternalModuleReference")}tsLookAhead(C){let O=this.state.clone(),z=C();return this.state=O,z}tsTryParseAndCatch(C){let O=this.tryParse(z=>C()||z());if(!(O.aborted||!O.node))return O.error&&(this.state=O.failState),O.node}tsTryParse(C){let O=this.state.clone(),z=C();if(z!==void 0&&z!==!1)return z;this.state=O}tsTryParseDeclare(C){if(this.isLineTerminator())return;let O=this.state.type;return this.tsInAmbientContext(()=>{switch(O){case 68:return C.declare=!0,super.parseFunctionStatement(C,!1,!1);case 80:return C.declare=!0,this.parseClass(C,!0,!1);case 126:return this.tsParseEnumDeclaration(C,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(C);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(C.declare=!0,this.parseVarStatement(C,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(C,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(Gn.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),C.declare=!0,this.parseVarStatement(C,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(Gn.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),C.declare=!0,this.next(),this.parseVarStatement(C,"await using",!0);break;case 129:{let z=this.tsParseInterfaceDeclaration(C,{declare:!0});if(z)return z}default:if(Ye(O))return this.tsParseDeclaration(C,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(C,O,z,ue){switch(O){case 124:if(this.tsCheckLineTerminator(z)&&(this.match(80)||Ye(this.state.type)))return this.tsParseAbstractDeclaration(C,ue);break;case 127:if(this.tsCheckLineTerminator(z)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(C);if(Ye(this.state.type))return C.kind="module",this.tsParseModuleOrNamespaceDeclaration(C)}break;case 128:if(this.tsCheckLineTerminator(z)&&Ye(this.state.type))return C.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(C);break;case 130:if(this.tsCheckLineTerminator(z)&&Ye(this.state.type))return this.tsParseTypeAliasDeclaration(C);break}}tsCheckLineTerminator(C){return C?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(C){if(!this.match(47))return;let O=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let z=this.tsTryParseAndCatch(()=>{let ue=this.startNodeAt(C);return ue.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(ue),ue.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),ue});if(this.state.maybeInArrowParameters=O,!!z)return super.parseArrowExpression(z,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let C=this.startNode();return C.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),C.params.length===0?this.raise(Gn.EmptyTypeArguments,C):!this.state.inType&&this.curContext()===le.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(C,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return ln(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(C,O){let z=O.length?O[0].loc.start:this.state.startLoc,ue={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},ue);let Ne=ue.accessibility,$e=ue.override,ot=ue.readonly;!(C&4)&&(Ne||ot||$e)&&this.raise(Gn.UnexpectedParameterModifier,z);let vt=this.parseMaybeDefault();C&2&&this.parseFunctionParamType(vt);let xt=this.parseMaybeDefault(vt.loc.start,vt);if(Ne||ot||$e){let Hn=this.startNodeAt(z);return O.length&&(Hn.decorators=O),Ne&&(Hn.accessibility=Ne),ot&&(Hn.readonly=ot),$e&&(Hn.override=$e),xt.type!=="Identifier"&&xt.type!=="AssignmentPattern"&&this.raise(Gn.UnsupportedParameterPropertyKind,Hn),Hn.parameter=xt,this.finishNode(Hn,"TSParameterProperty")}return O.length&&(vt.decorators=O),xt}isSimpleParameter(C){return C.type==="TSParameterProperty"&&super.isSimpleParameter(C.parameter)||super.isSimpleParameter(C)}tsDisallowOptionalPattern(C){for(let O of C.params)O.type!=="Identifier"&&O.optional&&!this.state.isAmbientContext&&this.raise(Gn.PatternIsOptional,O)}setArrowFunctionParameters(C,O,z){super.setArrowFunctionParameters(C,O,z),this.tsDisallowOptionalPattern(C)}parseFunctionBodyAndFinish(C,O,z=!1){this.match(14)&&(C.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let ue=O==="FunctionDeclaration"?"TSDeclareFunction":O==="ClassMethod"||O==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return ue&&!this.match(5)&&this.isLineTerminator()?this.finishNode(C,ue):ue==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(Gn.DeclareFunctionHasImplementation,C),C.declare)?super.parseFunctionBodyAndFinish(C,ue,z):(this.tsDisallowOptionalPattern(C),super.parseFunctionBodyAndFinish(C,O,z))}registerFunctionStatementId(C){!C.body&&C.id?this.checkIdentifier(C.id,1024):super.registerFunctionStatementId(C)}tsCheckForInvalidTypeCasts(C){C.forEach(O=>{O?.type==="TSTypeCastExpression"&&this.raise(Gn.UnexpectedTypeAnnotation,O.typeAnnotation)})}toReferencedList(C,O){return this.tsCheckForInvalidTypeCasts(C),C}parseArrayLike(C,O,z){let ue=super.parseArrayLike(C,O,z);return ue.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(ue.elements),ue}parseSubscript(C,O,z,ue){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let $e=this.startNodeAt(O);return $e.expression=C,this.finishNode($e,"TSNonNullExpression")}let Ne=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(z)return ue.stop=!0,C;ue.optionalChainMember=Ne=!0,this.next()}if(this.match(47)||this.match(51)){let $e,ot=this.tsTryParseAndCatch(()=>{if(!z&&this.atPossibleAsyncArrow(C)){let Oi=this.tsTryParseGenericAsyncArrowFunction(O);if(Oi)return ue.stop=!0,Oi}let vt=this.tsParseTypeArgumentsInExpression();if(!vt)return;if(Ne&&!this.match(10)){$e=this.state.curPosition();return}if(Yn(this.state.type)){let Oi=super.parseTaggedTemplateExpression(C,O,ue);return Oi.typeArguments=vt,Oi}if(!z&&this.eat(10)){let Oi=this.startNodeAt(O);return Oi.callee=C,Oi.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(Oi.arguments),Oi.typeArguments=vt,ue.optionalChainMember&&(Oi.optional=Ne),this.finishCallExpression(Oi,ue.optionalChainMember)}let xt=this.state.type;if(xt===48||xt===52||xt!==10&&ut(xt)&&!this.hasPrecedingLineBreak())return;let Hn=this.startNodeAt(O);return Hn.expression=C,Hn.typeArguments=vt,this.finishNode(Hn,"TSInstantiationExpression")});if($e&&this.unexpected($e,10),ot)return ot.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(Gn.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(ot.expression=super.stopParseSubscript(C,ue))),ot}return super.parseSubscript(C,O,z,ue)}parseNewCallee(C){super.parseNewCallee(C);let{callee:O}=C;O.type==="TSInstantiationExpression"&&!O.extra?.parenthesized&&(C.typeArguments=O.typeArguments,C.callee=O.expression)}parseExprOp(C,O,z){let ue;if(wn(58)>z&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(ue=this.isContextual(120)))){let Ne=this.startNodeAt(O);return Ne.expression=C,Ne.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(ue&&this.raise(N.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(Ne,ue?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(Ne,O,z)}return super.parseExprOp(C,O,z)}checkReservedWord(C,O,z,ue){this.state.isAmbientContext||super.checkReservedWord(C,O,z,ue)}checkImportReflection(C){super.checkImportReflection(C),C.module&&C.importKind!=="value"&&this.raise(Gn.ImportReflectionHasImportType,C.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(C){if(super.isPotentialImportPhase(C))return!0;if(this.isContextual(130)){let O=this.lookaheadCharCode();return C?O===123||O===42:O!==61}return!C&&this.isContextual(87)}applyImportPhase(C,O,z,ue){super.applyImportPhase(C,O,z,ue),O?C.exportKind=z==="type"?"type":"value":C.importKind=z==="type"||z==="typeof"?z:"value"}parseImport(C){if(this.match(134))return C.importKind="value",super.parseImport(C);let O;if(Ye(this.state.type)&&this.lookaheadCharCode()===61)return C.importKind="value",this.tsParseImportEqualsDeclaration(C);if(this.isContextual(130)){let z=this.parseMaybeImportPhase(C,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(C,z);O=super.parseImportSpecifiersAndAfter(C,z)}else O=super.parseImport(C);return O.importKind==="type"&&O.specifiers.length>1&&O.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(Gn.TypeImportCannotSpecifyDefaultAndNamed,O),O}parseExport(C,O){if(this.match(83)){let z=this.startNode();this.next();let ue=null;this.isContextual(130)&&this.isPotentialImportPhase(!1)?ue=this.parseMaybeImportPhase(z,!1):z.importKind="value";let Ne=this.tsParseImportEqualsDeclaration(z,ue,!0);return C.attributes=[],C.declaration=Ne,C.exportKind="value",C.source=null,C.specifiers=[],this.finishNode(C,"ExportNamedDeclaration")}else if(this.eat(29)){let z=C;return z.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(z,"TSExportAssignment")}else if(this.eatContextual(93)){let z=C;return this.expectContextual(128),z.id=this.parseIdentifier(),this.semicolon(),this.finishNode(z,"TSNamespaceExportDeclaration")}else return super.parseExport(C,O)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let C=this.startNode();return this.next(),C.abstract=!0,this.parseClass(C,!0,!0)}if(this.match(129)){let C=this.tsParseInterfaceDeclaration(this.startNode());if(C)return C}return super.parseExportDefaultExpression()}parseVarStatement(C,O,z=!1){let{isAmbientContext:ue}=this.state,Ne=super.parseVarStatement(C,O,z||ue);if(!ue)return Ne;if(!C.declare&&(O==="using"||O==="await using"))return this.raiseOverwrite(Gn.UsingDeclarationInAmbientContext,C,O),Ne;for(let{id:$e,init:ot}of Ne.declarations)ot&&(O==="var"||O==="let"||$e.typeAnnotation?this.raise(Gn.InitializerNotAllowedInAmbientContext,ot):Zf(ot,this.hasPlugin("estree"))||this.raise(Gn.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,ot));return Ne}parseStatementContent(C,O){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let z=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(z,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let z=this.state.type,ue=this.startNode();this.next();let Ne=z===125?this.tsTryParseDeclare(ue):this.tsParseAbstractDeclaration(ue,O);return Ne?(z===125&&(Ne.declare=!0),Ne):(ue.expression=this.createIdentifier(this.startNodeAt(ue.loc.start),z===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(ue,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let z=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(z)}break}case 129:{let z=this.tsParseInterfaceDeclaration(this.startNode());if(z)return z;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let z=this.startNode();return this.next(),this.tsParseDeclaration(z,127,!1,O)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let z=this.startNode();return this.next(),this.tsParseDeclaration(z,128,!1,O)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let z=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(z)}break}}return super.parseStatementContent(C,O)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(C,O){return O.some(z=>ro(z)?C.accessibility===z:!!C[z])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(C,O,z){let ue=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:ue,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Gn.InvalidModifierOnTypeParameterPositions},O);let Ne=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(O,ue)&&this.raise(Gn.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(C,O)):this.parseClassMemberWithIsStatic(C,O,z,!!O.static)};O.declare?this.tsInAmbientContext(Ne):Ne()}parseClassMemberWithIsStatic(C,O,z,ue){let Ne=this.tsTryParseIndexSignature(O);if(Ne){C.body.push(Ne),O.abstract&&this.raise(Gn.IndexSignatureHasAbstract,O),O.accessibility&&this.raise(Gn.IndexSignatureHasAccessibility,O,{modifier:O.accessibility}),O.declare&&this.raise(Gn.IndexSignatureHasDeclare,O),O.override&&this.raise(Gn.IndexSignatureHasOverride,O);return}!this.state.inAbstractClass&&O.abstract&&this.raise(Gn.NonAbstractClassHasAbstractMethod,O),O.override&&(z.hadSuperClass||this.raise(Gn.OverrideNotInSubClass,O)),super.parseClassMemberWithIsStatic(C,O,z,ue)}parsePostMemberNameModifiers(C){this.eat(17)&&(C.optional=!0),C.readonly&&this.match(10)&&this.raise(Gn.ClassMethodHasReadonly,C),C.declare&&this.match(10)&&this.raise(Gn.ClassMethodHasDeclare,C)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(C,O,z){if(!this.match(17))return C;if(this.state.maybeInArrowParameters){let ue=this.lookaheadCharCode();if(ue===44||ue===61||ue===58||ue===41)return this.setOptionalParametersError(z),C}return super.parseConditional(C,O,z)}parseParenItem(C,O){let z=super.parseParenItem(C,O);if(this.eat(17)&&(z.optional=!0,this.resetEndLocation(C)),this.match(14)){let ue=this.startNodeAt(O);return ue.expression=C,ue.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(ue,"TSTypeCastExpression")}return C}parseExportDeclaration(C){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(C));let O=this.state.startLoc,z=this.eatContextual(125);if(z&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Gn.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let ue=Ye(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(C);return ue?((ue.type==="TSInterfaceDeclaration"||ue.type==="TSTypeAliasDeclaration"||z)&&(C.exportKind="type"),z&&ue.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(ue,O),ue.declare=!0),ue):null}parseClassId(C,O,z,ue){if((!O||z)&&this.isContextual(113))return;super.parseClassId(C,O,z,C.declare?1024:8331);let Ne=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);Ne&&(C.typeParameters=Ne)}parseClassPropertyAnnotation(C){C.optional||(this.eat(35)?C.definite=!0:this.eat(17)&&(C.optional=!0));let O=this.tsTryParseTypeAnnotation();O&&(C.typeAnnotation=O)}parseClassProperty(C){if(this.parseClassPropertyAnnotation(C),this.state.isAmbientContext&&!(C.readonly&&!C.typeAnnotation)&&this.match(29)&&this.raise(Gn.DeclareClassFieldHasInitializer,this.state.startLoc),C.abstract&&this.match(29)){let{key:O}=C;this.raise(Gn.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:O.type==="Identifier"&&!C.computed?O.name:`[${this.input.slice(this.offsetToSourcePos(O.start),this.offsetToSourcePos(O.end))}]`})}return super.parseClassProperty(C)}parseClassPrivateProperty(C){return C.abstract&&this.raise(Gn.PrivateElementHasAbstract,C),C.accessibility&&this.raise(Gn.PrivateElementHasAccessibility,C,{modifier:C.accessibility}),this.parseClassPropertyAnnotation(C),super.parseClassPrivateProperty(C)}parseClassAccessorProperty(C){return this.parseClassPropertyAnnotation(C),C.optional&&this.raise(Gn.AccessorCannotBeOptional,C),super.parseClassAccessorProperty(C)}pushClassMethod(C,O,z,ue,Ne,$e){let ot=this.tsTryParseTypeParameters(this.tsParseConstModifier);ot&&Ne&&this.raise(Gn.ConstructorHasTypeParameters,ot);let{declare:vt=!1,kind:xt}=O;vt&&(xt==="get"||xt==="set")&&this.raise(Gn.DeclareAccessor,O,{kind:xt}),ot&&(O.typeParameters=ot),super.pushClassMethod(C,O,z,ue,Ne,$e)}pushClassPrivateMethod(C,O,z,ue){let Ne=this.tsTryParseTypeParameters(this.tsParseConstModifier);Ne&&(O.typeParameters=Ne),super.pushClassPrivateMethod(C,O,z,ue)}declareClassPrivateMethodInScope(C,O){C.type!=="TSDeclareMethod"&&(C.type==="MethodDefinition"&&C.value.body==null||super.declareClassPrivateMethodInScope(C,O))}parseClassSuper(C){super.parseClassSuper(C),C.superClass&&(this.match(47)||this.match(51))&&(C.superTypeArguments=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(C.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(C,O,z,ue,Ne,$e,ot){let vt=this.tsTryParseTypeParameters(this.tsParseConstModifier);return vt&&(C.typeParameters=vt),super.parseObjPropValue(C,O,z,ue,Ne,$e,ot)}parseFunctionParams(C,O){let z=this.tsTryParseTypeParameters(this.tsParseConstModifier);z&&(C.typeParameters=z),super.parseFunctionParams(C,O)}parseVarId(C,O){super.parseVarId(C,O),C.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(C.definite=!0);let z=this.tsTryParseTypeAnnotation();z&&(C.id.typeAnnotation=z,this.resetEndLocation(C.id))}parseAsyncArrowFromCallExpression(C,O){return this.match(14)&&(C.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(C,O)}parseMaybeAssign(C,O){let z,ue,Ne;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(z=this.state.clone(),ue=this.tryParse(()=>super.parseMaybeAssign(C,O),z),!ue.error)return ue.node;let{context:vt}=this.state,xt=vt[vt.length-1];(xt===le.j_oTag||xt===le.j_expr)&&vt.pop()}if(!ue?.error&&!this.match(47))return super.parseMaybeAssign(C,O);(!z||z===this.state)&&(z=this.state.clone());let $e,ot=this.tryParse(vt=>{$e=this.tsParseTypeParameters(this.tsParseConstModifier);let xt=super.parseMaybeAssign(C,O);if((xt.type!=="ArrowFunctionExpression"||xt.extra?.parenthesized)&&vt(),$e?.params.length!==0&&this.resetStartLocationFromNode(xt,$e),xt.typeParameters=$e,this.hasPlugin("jsx")&&xt.typeParameters.params.length===1&&!xt.typeParameters.extra?.trailingComma){let Hn=xt.typeParameters.params[0];Hn.constraint||this.raise(Gn.SingleTypeParameterWithoutTrailingComma,p(Hn.loc.end,1),{typeParameterName:Hn.name.name})}return xt},z);if(!ot.error&&!ot.aborted)return $e&&this.reportReservedArrowTypeParam($e),ot.node;if(!ue&&(xr(!this.hasPlugin("jsx")),Ne=this.tryParse(()=>super.parseMaybeAssign(C,O),z),!Ne.error))return Ne.node;if(ue?.node)return this.state=ue.failState,ue.node;if(ot.node)return this.state=ot.failState,$e&&this.reportReservedArrowTypeParam($e),ot.node;if(Ne?.node)return this.state=Ne.failState,Ne.node;throw ue?.error||ot.error||Ne?.error}reportReservedArrowTypeParam(C){C.params.length===1&&!C.params[0].constraint&&!C.extra?.trailingComma&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Gn.ReservedArrowTypeParam,C)}parseMaybeUnary(C,O){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(C,O)}parseArrow(C){if(this.match(14)){let O=this.tryParse(z=>{let ue=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&z(),ue});if(O.aborted)return;O.thrown||(O.error&&(this.state=O.failState),C.returnType=O.node)}return super.parseArrow(C)}parseFunctionParamType(C){this.eat(17)&&(C.optional=!0);let O=this.tsTryParseTypeAnnotation();return O&&(C.typeAnnotation=O),this.resetEndLocation(C),C}isAssignable(C,O){switch(C.type){case"TSTypeCastExpression":return this.isAssignable(C.expression,O);case"TSParameterProperty":return!0;default:return super.isAssignable(C,O)}}toAssignable(C,O=!1){switch(C.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(C,O);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":O?this.expressionScope.recordArrowParameterBindingError(Gn.UnexpectedTypeCastInParameter,C):this.raise(Gn.UnexpectedTypeCastInParameter,C),this.toAssignable(C.expression,O);break;case"AssignmentExpression":!O&&C.left.type==="TSTypeCastExpression"&&(C.left=this.typeCastToParameter(C.left));default:super.toAssignable(C,O)}}toAssignableParenthesizedExpression(C,O){switch(C.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(C.expression,O);break;default:super.toAssignable(C,O)}}checkToRestConversion(C,O){switch(C.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(C.expression,!1);break;default:super.checkToRestConversion(C,O)}}isValidLVal(C,O,z,ue){switch(C){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(ue!==64||!z)&&["expression",!0];default:return super.isValidLVal(C,O,z,ue)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(C,O){if(this.match(47)||this.match(51)){let z=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let ue=super.parseMaybeDecoratorArguments(C,O);return ue.typeArguments=z,ue}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(C,O)}checkCommaAfterRest(C){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===C?(this.next(),!1):super.checkCommaAfterRest(C)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(C,O){let z=super.parseMaybeDefault(C,O);return z.type==="AssignmentPattern"&&z.typeAnnotation&&z.right.start<z.typeAnnotation.start&&this.raise(Gn.TypeAnnotationAfterAssign,z.typeAnnotation),z}getTokenFromCode(C){if(this.state.inType){if(C===62){this.finishOp(48,1);return}if(C===60){this.finishOp(47,1);return}}super.getTokenFromCode(C)}reScan_lt_gt(){let{type:C}=this.state;C===47?(this.state.pos-=1,this.readToken_lt()):C===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:C}=this.state;return C===51?(this.state.pos-=2,this.finishOp(47,1),47):C}toAssignableListItem(C,O,z){let ue=C[O];ue.type==="TSTypeCastExpression"&&(C[O]=this.typeCastToParameter(ue)),super.toAssignableListItem(C,O,z)}typeCastToParameter(C){return C.expression.typeAnnotation=C.typeAnnotation,this.resetEndLocation(C.expression,C.typeAnnotation.loc.end),C.expression}shouldParseArrow(C){return this.match(14)?C.every(O=>this.isAssignable(O,!0)):super.shouldParseArrow(C)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(C){if(this.match(47)||this.match(51)){let O=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());O&&(C.typeArguments=O)}return super.jsxParseOpeningElementAfterName(C)}getGetterSetterExpectedParamCount(C){let O=super.getGetterSetterExpectedParamCount(C),z=this.getObjectOrClassMethodParams(C)[0];return z&&this.isThisParam(z)?O+1:O}parseCatchClauseParam(){let C=super.parseCatchClauseParam(),O=this.tsTryParseTypeAnnotation();return O&&(C.typeAnnotation=O,this.resetEndLocation(C)),C}tsInAmbientContext(C){let{isAmbientContext:O,strict:z}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return C()}finally{this.state.isAmbientContext=O,this.state.strict=z}}parseClass(C,O,z){let ue=this.state.inAbstractClass;this.state.inAbstractClass=!!C.abstract;try{return super.parseClass(C,O,z)}finally{this.state.inAbstractClass=ue}}tsParseAbstractDeclaration(C,O){if(this.match(80))return C.abstract=!0,this.maybeTakeDecorators(O,this.parseClass(C,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(C.abstract=!0,this.raise(Gn.NonClassMethodPropertyHasAbstractModifier,C),this.tsParseInterfaceDeclaration(C));throw this.unexpected(null,80)}parseMethod(C,O,z,ue,Ne,$e,ot){let vt=super.parseMethod(C,O,z,ue,Ne,$e,ot);if((vt.abstract||vt.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?vt.value:vt).body){let{key:xt}=vt;this.raise(Gn.AbstractMethodHasImplementation,vt,{methodName:xt.type==="Identifier"&&!vt.computed?xt.name:`[${this.input.slice(this.offsetToSourcePos(xt.start),this.offsetToSourcePos(xt.end))}]`})}return vt}tsParseTypeParameterName(){return this.parseIdentifier()}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(C,O,z,ue){return!O&&ue?(this.parseTypeOnlyImportExportSpecifier(C,!1,z),this.finishNode(C,"ExportSpecifier")):(C.exportKind="value",super.parseExportSpecifier(C,O,z,ue))}parseImportSpecifier(C,O,z,ue,Ne){return!O&&ue?(this.parseTypeOnlyImportExportSpecifier(C,!0,z),this.finishNode(C,"ImportSpecifier")):(C.importKind="value",super.parseImportSpecifier(C,O,z,ue,z?4098:4096))}parseTypeOnlyImportExportSpecifier(C,O,z){let ue=O?"imported":"local",Ne=O?"local":"exported",$e=C[ue],ot,vt=!1,xt=!0,Hn=$e.loc.start;if(this.isContextual(93)){let fo=this.parseIdentifier();if(this.isContextual(93)){let Ko=this.parseIdentifier();ft(this.state.type)?(vt=!0,$e=fo,ot=O?this.parseIdentifier():this.parseModuleExportName(),xt=!1):(ot=Ko,xt=!1)}else ft(this.state.type)?(xt=!1,ot=O?this.parseIdentifier():this.parseModuleExportName()):(vt=!0,$e=fo)}else ft(this.state.type)&&(vt=!0,O?($e=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord($e.name,$e.loc.start,!0,!0)):$e=this.parseModuleExportName());vt&&z&&this.raise(O?Gn.TypeModifierIsUsedInTypeImports:Gn.TypeModifierIsUsedInTypeExports,Hn),C[ue]=$e,C[Ne]=ot;let Oi=O?"importKind":"exportKind";C[Oi]=vt?"type":"value",xt&&this.eatContextual(93)&&(C[Ne]=O?this.parseIdentifier():this.parseModuleExportName()),C[Ne]||(C[Ne]=this.cloneIdentifier(C[ue])),O&&this.checkIdentifier(C[Ne],vt?4098:4096)}fillOptionalPropertiesForTSESLint(C){switch(C.type){case"ExpressionStatement":C.directive??(C.directive=void 0);return;case"RestElement":C.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":C.decorators??(C.decorators=[]),C.optional??(C.optional=!1),C.typeAnnotation??(C.typeAnnotation=void 0);return;case"TSParameterProperty":C.accessibility??(C.accessibility=void 0),C.decorators??(C.decorators=[]),C.override??(C.override=!1),C.readonly??(C.readonly=!1),C.static??(C.static=!1);return;case"TSEmptyBodyFunctionExpression":C.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":C.declare??(C.declare=!1),C.returnType??(C.returnType=void 0),C.typeParameters??(C.typeParameters=void 0);return;case"Property":C.optional??(C.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":C.optional??(C.optional=!1);case"TSIndexSignature":C.accessibility??(C.accessibility=void 0),C.readonly??(C.readonly=!1),C.static??(C.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":C.declare??(C.declare=!1),C.definite??(C.definite=!1),C.readonly??(C.readonly=!1),C.typeAnnotation??(C.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":C.accessibility??(C.accessibility=void 0),C.decorators??(C.decorators=[]),C.override??(C.override=!1),C.optional??(C.optional=!1);return;case"ClassExpression":C.id??(C.id=null);case"ClassDeclaration":C.abstract??(C.abstract=!1),C.declare??(C.declare=!1),C.decorators??(C.decorators=[]),C.implements??(C.implements=[]),C.superTypeArguments??(C.superTypeArguments=void 0),C.typeParameters??(C.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":C.declare??(C.declare=!1);return;case"VariableDeclarator":C.definite??(C.definite=!1);return;case"TSEnumDeclaration":C.const??(C.const=!1),C.declare??(C.declare=!1);return;case"TSEnumMember":C.computed??(C.computed=!1);return;case"TSImportType":C.qualifier??(C.qualifier=null),C.options??(C.options=null),C.typeArguments??(C.typeArguments=null);return;case"TSInterfaceDeclaration":C.declare??(C.declare=!1),C.extends??(C.extends=[]);return;case"TSMappedType":C.optional??(C.optional=!1),C.readonly??(C.readonly=void 0);return;case"TSModuleDeclaration":C.declare??(C.declare=!1),C.global??(C.global=C.kind==="global");return;case"TSTypeParameter":C.const??(C.const=!1),C.in??(C.in=!1),C.out??(C.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(C,O){if(we(C)){if($t.lastIndex=O,$t.test(this.input)){let z=this.codePointAtPos($t.lastIndex);if(!ve(z)&&z!==92)return!1}return!0}else return C===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let C=this.nextTokenInLineStart(),O=this.codePointAtPos(C);return this.chStartsBindingIdentifierAndNotRelationalOperator(O,C)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let C=this.nextTokenInLineStart(),O=this.codePointAtPos(C);return this.chStartsBindingIdentifier(O,C)||O===34||O===39}};function du(k){if(k.type!=="MemberExpression")return!1;let{computed:C,property:O}=k;return C&&O.type!=="StringLiteral"&&(O.type!=="TemplateLiteral"||O.expressions.length>0)?!1:zt(k.object)}function Zf(k,C){let{type:O}=k;if(k.extra?.parenthesized)return!1;if(C){if(O==="Literal"){let{value:z}=k;if(typeof z=="string"||typeof z=="boolean")return!0}}else if(O==="StringLiteral"||O==="BooleanLiteral")return!0;return!!(Qd(k,C)||Je(k,C)||O==="TemplateLiteral"&&k.expressions.length===0||du(k))}function Qd(k,C){return C?k.type==="Literal"&&(typeof k.value=="number"||"bigint"in k):k.type==="NumericLiteral"||k.type==="BigIntLiteral"}function Je(k,C){if(k.type==="UnaryExpression"){let{operator:O,argument:z}=k;if(O==="-"&&Qd(z,C))return!0}return!1}function zt(k){return k.type==="Identifier"?!0:k.type!=="MemberExpression"||k.computed?!1:zt(k.object)}var Kn=F`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),Mi=k=>class extends k{parsePlaceholder(C){if(this.match(133)){let O=this.startNode();return this.next(),this.assertNoSpace(),O.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(O,C)}}finishPlaceholder(C,O){let z=C;return(!z.expectedNode||!z.type)&&(z=this.finishNode(z,"Placeholder")),z.expectedNode=O,z}getTokenFromCode(C){C===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(C)}parseExprAtom(C){return this.parsePlaceholder("Expression")||super.parseExprAtom(C)}parseIdentifier(C){return this.parsePlaceholder("Identifier")||super.parseIdentifier(C)}checkReservedWord(C,O,z,ue){C!==void 0&&super.checkReservedWord(C,O,z,ue)}cloneIdentifier(C){let O=super.cloneIdentifier(C);return O.type==="Placeholder"&&(O.expectedNode=C.expectedNode),O}cloneStringLiteral(C){return C.type==="Placeholder"?this.cloneIdentifier(C):super.cloneStringLiteral(C)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(C,O,z,ue){return C==="Placeholder"||super.isValidLVal(C,O,z,ue)}toAssignable(C,O){C&&C.type==="Placeholder"&&C.expectedNode==="Expression"?C.expectedNode="Pattern":super.toAssignable(C,O)}chStartsBindingIdentifier(C,O){if(super.chStartsBindingIdentifier(C,O))return!0;let z=this.nextTokenStart();return this.input.charCodeAt(z)===37&&this.input.charCodeAt(z+1)===37}verifyBreakContinue(C,O){C.label&&C.label.type==="Placeholder"||super.verifyBreakContinue(C,O)}parseExpressionStatement(C,O){if(O.type!=="Placeholder"||O.extra?.parenthesized)return super.parseExpressionStatement(C,O);if(this.match(14)){let ue=C;return ue.label=this.finishPlaceholder(O,"Identifier"),this.next(),ue.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(ue,"LabeledStatement")}this.semicolon();let z=C;return z.name=O.name,this.finishPlaceholder(z,"Statement")}parseBlock(C,O,z){return this.parsePlaceholder("BlockStatement")||super.parseBlock(C,O,z)}parseFunctionId(C){return this.parsePlaceholder("Identifier")||super.parseFunctionId(C)}parseClass(C,O,z){let ue=O?"ClassDeclaration":"ClassExpression";this.next();let Ne=this.state.strict,$e=this.parsePlaceholder("Identifier");if($e)if(this.match(81)||this.match(133)||this.match(5))C.id=$e;else{if(z||!O)return C.id=null,C.body=this.finishPlaceholder($e,"ClassBody"),this.finishNode(C,ue);throw this.raise(Kn.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(C,O,z);return super.parseClassSuper(C),C.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!C.superClass,Ne),this.finishNode(C,ue)}parseExport(C,O){let z=this.parsePlaceholder("Identifier");if(!z)return super.parseExport(C,O);let ue=C;if(!this.isContextual(98)&&!this.match(12))return ue.specifiers=[],ue.source=null,ue.declaration=this.finishPlaceholder(z,"Declaration"),this.finishNode(ue,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let Ne=this.startNode();return Ne.exported=z,ue.specifiers=[this.finishNode(Ne,"ExportDefaultSpecifier")],super.parseExport(ue,O)}isExportDefaultSpecifier(){if(this.match(65)){let C=this.nextTokenStart();if(this.isUnparsedContextual(C,"from")&&this.input.startsWith(pn(133),this.nextTokenStartSince(C+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(C,O){return C.specifiers?.length?!0:super.maybeParseExportDefaultSpecifier(C,O)}checkExport(C){let{specifiers:O}=C;O?.length&&(C.specifiers=O.filter(z=>z.exported.type==="Placeholder")),super.checkExport(C),C.specifiers=O}parseImport(C){let O=this.parsePlaceholder("Identifier");if(!O)return super.parseImport(C);if(C.specifiers=[],!this.isContextual(98)&&!this.match(12))return C.source=this.finishPlaceholder(O,"StringLiteral"),this.semicolon(),this.finishNode(C,"ImportDeclaration");let z=this.startNodeAtNode(O);return z.local=O,C.specifiers.push(this.finishNode(z,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(C)||this.parseNamedImportSpecifiers(C)),this.expectContextual(98),C.source=this.parseImportSource(),this.semicolon(),this.finishNode(C,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(Kn.UnexpectedSpace,this.state.lastTokEndLoc)}},Fo=k=>class extends k{parseV8Intrinsic(){if(this.match(54)){let C=this.state.startLoc,O=this.startNode();if(this.next(),Ye(this.state.type)){let z=this.parseIdentifierName(),ue=this.createIdentifier(O,z);if(this.castNodeTo(ue,"V8IntrinsicIdentifier"),this.match(10))return ue}this.unexpected(C)}}parseExprAtom(C){return this.parseV8Intrinsic()||super.parseExprAtom(C)}},Vr=["fsharp","hack"],We=["^^","@@","^","%","#"];function At(k){if(k.has("decorators")){if(k.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let C=k.get("decorators").decoratorsBeforeExport;if(C!=null&&typeof C!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let O=k.get("decorators").allowCallParenthesized;if(O!=null&&typeof O!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(k.has("flow")&&k.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(k.has("placeholders")&&k.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(k.has("pipelineOperator")){let C=k.get("pipelineOperator").proposal;if(!Vr.includes(C)){let O=Vr.map(z=>`"${z}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${O}.`)}if(C==="hack"){if(k.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(k.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let O=k.get("pipelineOperator").topicToken;if(!We.includes(O)){let z=We.map(ue=>`"${ue}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${z}.`)}}}if(k.has("moduleAttributes"))throw new Error("`moduleAttributes` has been removed in Babel 8, please migrate to import attributes instead.");if(k.has("importAssertions"))throw new Error("`importAssertions` has been removed in Babel 8, please use import attributes instead. To use the non-standard `assert` syntax you can enable the `deprecatedImportAssert` parser plugin.");if(!k.has("deprecatedImportAssert")&&k.has("importAttributes")&&k.get("importAttributes").deprecatedAssertSyntax)throw new Error("The 'importAttributes' plugin has been removed in Babel 8. If you need to enable support for the deprecated `assert` syntax, you can enable the `deprecatedImportAssert` parser plugin.");if(k.has("recordAndTuple"))throw new Error("The 'recordAndTuple' plugin has been removed in Babel 8. Please remove it from your configuration.");if(k.has("asyncDoExpressions")&&!k.has("doExpressions")){let C=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw C.missingPlugins="doExpressions",C}if(k.has("optionalChainingAssign")&&k.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(k.has("discardBinding")&&k.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.");{if(k.has("decimal"))throw new Error("The 'decimal' plugin has been removed in Babel 8. Please remove it from your configuration.");if(k.has("importReflection"))throw new Error("The 'importReflection' plugin has been removed in Babel 8. Use 'sourcePhaseImports' instead, and replace 'import module' with 'import source' in your code.")}}var mn={estree:H,jsx:ds,flow:Zi,typescript:hs,v8intrinsic:Fo,placeholders:Mi},bi=Object.keys(mn),Dr=class extends st{checkProto(k,C,O,z){if(k.type==="SpreadElement"||this.isObjectMethod(k)||k.computed||k.shorthand)return O;let ue=k.key;return(ue.type==="Identifier"?ue.name:ue.value)==="__proto__"?C?(this.raise(N.RecordNoProto,ue),!0):(O&&(z?z.doubleProtoLoc===null&&(z.doubleProtoLoc=ue.loc.start):this.raise(N.DuplicateProto,ue)),!0):O}shouldExitDescending(k,C){return k.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(k.start)===C}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(N.ParseExpressionEmptyInput,this.state.startLoc);let k=this.parseExpression();if(!this.match(140))throw this.raise(N.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),k.comments=this.comments,k.errors=this.state.errors,this.optionFlags&256&&(k.tokens=this.tokens),k}parseExpression(k,C){return k?this.disallowInAnd(()=>this.parseExpressionBase(C)):this.allowInAnd(()=>this.parseExpressionBase(C))}parseExpressionBase(k){let C=this.state.startLoc,O=this.parseMaybeAssign(k);if(this.match(12)){let z=this.startNodeAt(C);for(z.expressions=[O];this.eat(12);)z.expressions.push(this.parseMaybeAssign(k));return this.toReferencedList(z.expressions),this.finishNode(z,"SequenceExpression")}return O}parseMaybeAssignDisallowIn(k,C){return this.disallowInAnd(()=>this.parseMaybeAssign(k,C))}parseMaybeAssignAllowIn(k,C){return this.allowInAnd(()=>this.parseMaybeAssign(k,C))}setOptionalParametersError(k){k.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(k,C){let O=this.state.startLoc,z=this.isContextual(108);if(z&&this.prodParam.hasYield){this.next();let ot=this.parseYield(O);return C&&(ot=C.call(this,ot,O)),ot}let ue;k?ue=!1:(k=new xe,ue=!0);let{type:Ne}=this.state;(Ne===10||Ye(Ne))&&(this.state.potentialArrowAt=this.state.start);let $e=this.parseMaybeConditional(k);if(C&&($e=C.call(this,$e,O)),wt(this.state.type)){let ot=this.startNodeAt(O),vt=this.state.value;if(ot.operator=vt,this.match(29)){this.toAssignable($e,!0),ot.left=$e;let xt=O.index;k.doubleProtoLoc!=null&&k.doubleProtoLoc.index>=xt&&(k.doubleProtoLoc=null),k.shorthandAssignLoc!=null&&k.shorthandAssignLoc.index>=xt&&(k.shorthandAssignLoc=null),k.privateKeyLoc!=null&&k.privateKeyLoc.index>=xt&&(this.checkDestructuringPrivate(k),k.privateKeyLoc=null),k.voidPatternLoc!=null&&k.voidPatternLoc.index>=xt&&(k.voidPatternLoc=null)}else ot.left=$e;return this.next(),ot.right=this.parseMaybeAssign(),this.checkLVal($e,this.finishNode(ot,"AssignmentExpression"),void 0,void 0,void 0,void 0,vt==="||="||vt==="&&="||vt==="??="),ot}else ue&&this.checkExpressionErrors(k,!0);if(z){let{type:ot}=this.state;if((this.hasPlugin("v8intrinsic")?ut(ot):ut(ot)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(N.YieldNotInGeneratorFunction,O),this.parseYield(O)}return $e}parseMaybeConditional(k){let C=this.state.startLoc,O=this.state.potentialArrowAt,z=this.parseExprOps(k);return this.shouldExitDescending(z,O)?z:this.parseConditional(z,C,k)}parseConditional(k,C,O){if(this.eat(17)){let z=this.startNodeAt(C);return z.test=k,z.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),z.alternate=this.parseMaybeAssign(),this.finishNode(z,"ConditionalExpression")}return k}parseMaybeUnaryOrPrivate(k){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(k)}parseExprOps(k){let C=this.state.startLoc,O=this.state.potentialArrowAt,z=this.parseMaybeUnaryOrPrivate(k);return this.shouldExitDescending(z,O)?z:this.parseExprOp(z,C,-1)}parseExprOp(k,C,O){if(this.isPrivateName(k)){let ue=this.getPrivateNameSV(k);(O>=wn(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(N.PrivateInExpectedIn,k,{identifierName:ue}),this.classScope.usePrivateName(ue,k.loc.start)}let z=this.state.type;if(Yt(z)&&(this.prodParam.hasIn||!this.match(58))){let ue=wn(z);if(ue>O){if(z===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return k;this.checkPipelineAtInfixOperator(k,C)}let Ne=this.startNodeAt(C);Ne.left=k,Ne.operator=this.state.value;let $e=z===41||z===42,ot=z===40;ot&&(ue=wn(42)),this.next(),Ne.right=this.parseExprOpRightExpr(z,ue);let vt=this.finishNode(Ne,$e||ot?"LogicalExpression":"BinaryExpression"),xt=this.state.type;if(ot&&(xt===41||xt===42)||$e&&xt===40)throw this.raise(N.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(vt,C,O)}}return k}parseExprOpRightExpr(k,C){switch(this.state.startLoc,k){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(C))}default:return this.parseExprOpBaseRightExpr(k,C)}}parseExprOpBaseRightExpr(k,C){let O=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),O,Mn(k)?C-1:C)}parseHackPipeBody(){let{startLoc:k}=this.state,C=this.parseMaybeAssign();return A.has(C.type)&&!C.extra?.parenthesized&&this.raise(N.PipeUnparenthesizedBody,k,{type:C.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(N.PipeTopicUnused,k),C}checkExponentialAfterUnary(k){this.match(57)&&this.raise(N.UnexpectedTokenUnaryExponentiation,k.argument)}parseMaybeUnary(k,C){let O=this.state.startLoc,z=this.isContextual(96);if(z&&this.recordAwaitIfAllowed()){this.next();let ot=this.parseAwait(O);return C||this.checkExponentialAfterUnary(ot),ot}let ue=this.match(34),Ne=this.startNode();if(Gt(this.state.type)){Ne.operator=this.state.value,Ne.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let ot=this.match(89);if(this.next(),Ne.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(k,!0),this.state.strict&&ot){let vt=Ne.argument;vt.type==="Identifier"?this.raise(N.StrictDelete,Ne):this.hasPropertyAsPrivateName(vt)&&this.raise(N.DeletePrivateField,Ne)}if(!ue)return C||this.checkExponentialAfterUnary(Ne),this.finishNode(Ne,"UnaryExpression")}let $e=this.parseUpdate(Ne,ue,k);if(z){let{type:ot}=this.state;if((this.hasPlugin("v8intrinsic")?ut(ot):ut(ot)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(N.AwaitNotInAsyncContext,O),this.parseAwait(O)}return $e}parseUpdate(k,C,O){if(C){let Ne=k;return this.checkLVal(Ne.argument,this.finishNode(Ne,"UpdateExpression")),k}let z=this.state.startLoc,ue=this.parseExprSubscripts(O);if(this.checkExpressionErrors(O,!1))return ue;for(;Ut(this.state.type)&&!this.canInsertSemicolon();){let Ne=this.startNodeAt(z);Ne.operator=this.state.value,Ne.prefix=!1,Ne.argument=ue,this.next(),this.checkLVal(ue,ue=this.finishNode(Ne,"UpdateExpression"))}return ue}parseExprSubscripts(k){let C=this.state.startLoc,O=this.state.potentialArrowAt,z=this.parseExprAtom(k);return this.shouldExitDescending(z,O)?z:this.parseSubscripts(z,C)}parseSubscripts(k,C,O){let z={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(k),stop:!1};do k=this.parseSubscript(k,C,O,z),z.maybeAsyncArrow=!1;while(!z.stop);return k}parseSubscript(k,C,O,z){let{type:ue}=this.state;if(!O&&ue===15)return this.parseBind(k,C,O,z);if(Yn(ue))return this.parseTaggedTemplateExpression(k,C,z);let Ne=!1;if(ue===18){if(O&&(this.raise(N.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(k,z);z.optionalChainMember=Ne=!0,this.next()}if(!O&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(k,C,z,Ne);{let $e=this.eat(0);return $e||Ne||this.eat(16)?this.parseMember(k,C,z,$e,Ne):this.stopParseSubscript(k,z)}}stopParseSubscript(k,C){return C.stop=!0,k}parseMember(k,C,O,z,ue){let Ne=this.startNodeAt(C);return Ne.object=k,Ne.computed=z,z?(Ne.property=this.parseExpression(),this.expect(3)):this.match(139)?(k.type==="Super"&&this.raise(N.SuperPrivateField,C),this.classScope.usePrivateName(this.state.value,this.state.startLoc),Ne.property=this.parsePrivateName()):Ne.property=this.parseIdentifier(!0),O.optionalChainMember?(Ne.optional=ue,this.finishNode(Ne,"OptionalMemberExpression")):this.finishNode(Ne,"MemberExpression")}parseBind(k,C,O,z){let ue=this.startNodeAt(C);return ue.object=k,this.next(),ue.callee=this.parseNoCallExpr(),z.stop=!0,this.parseSubscripts(this.finishNode(ue,"BindExpression"),C,O)}parseCoverCallAndAsyncArrowHead(k,C,O,z){let ue=this.state.maybeInArrowParameters,Ne=null;this.state.maybeInArrowParameters=!0,this.next();let $e=this.startNodeAt(C);$e.callee=k;let{maybeAsyncArrow:ot,optionalChainMember:vt}=O;ot&&(this.expressionScope.enter(Ef()),Ne=new xe),vt&&($e.optional=z),z?$e.arguments=this.parseCallExpressionArguments():$e.arguments=this.parseCallExpressionArguments(k.type!=="Super",$e,Ne);let xt=this.finishCallExpression($e,vt);return ot&&this.shouldParseAsyncArrow()&&!z?(O.stop=!0,this.checkDestructuringPrivate(Ne),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),xt=this.parseAsyncArrowFromCallExpression(this.startNodeAt(C),xt)):(ot&&(this.checkExpressionErrors(Ne,!0),this.expressionScope.exit()),this.toReferencedArguments(xt)),this.state.maybeInArrowParameters=ue,xt}toReferencedArguments(k,C){this.toReferencedListDeep(k.arguments,C)}parseTaggedTemplateExpression(k,C,O){let z=this.startNodeAt(C);return z.tag=k,z.quasi=this.parseTemplate(!0),O.optionalChainMember&&this.raise(N.OptionalChainingNoTemplate,C),this.finishNode(z,"TaggedTemplateExpression")}atPossibleAsyncArrow(k){return k.type==="Identifier"&&k.name==="async"&&this.state.lastTokEndLoc.index===k.end&&!this.canInsertSemicolon()&&k.end-k.start===5&&this.offsetToSourcePos(k.start)===this.state.potentialArrowAt}finishCallExpression(k,C){if(k.callee.type==="Import")if(k.arguments.length===0||k.arguments.length>2)this.raise(N.ImportCallArity,k);else for(let O of k.arguments)O.type==="SpreadElement"&&this.raise(N.ImportCallSpreadArgument,O);return this.finishNode(k,C?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(k,C,O){let z=[],ue=!0,Ne=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(ue)ue=!1;else if(this.expect(12),this.match(11)){C&&this.addTrailingCommaExtraToNode(C),this.next();break}z.push(this.parseExprListItem(11,!1,O,k))}return this.state.inFSharpPipelineDirectBody=Ne,z}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(k,C){return this.resetPreviousNodeTrailingComments(C),this.expect(19),this.parseArrowExpression(k,C.arguments,!0,C.extra?.trailingCommaLoc),C.innerComments&&td(k,C.innerComments),C.callee.trailingComments&&td(k,C.callee.trailingComments),k}parseNoCallExpr(){let k=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),k,!0)}parseExprAtom(k){let C,O=null,{type:z}=this.state;switch(z){case 79:return this.parseSuper();case 83:return C=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(C):this.match(10)?this.optionFlags&512?this.parseImportCall(C):this.finishNode(C,"Import"):(this.raise(N.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(C,"Import"));case 78:return C=this.startNode(),this.next(),this.finishNode(C,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let ue=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(ue)}case 0:return this.parseArrayLike(3,!1,k);case 5:return this.parseObjectLike(8,!1,!1,k);case 68:return this.parseFunctionOrFunctionSent();case 26:O=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(O,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{C=this.startNode(),this.next(),C.object=null;let ue=C.callee=this.parseNoCallExpr();if(ue.type==="MemberExpression")return this.finishNode(C,"BindExpression");throw this.raise(N.UnsupportedBind,ue)}case 139:return this.raise(N.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let ue=this.getPluginOption("pipelineOperator","proposal");if(ue)return this.parseTopicReference(ue);throw this.unexpected()}case 47:{let ue=this.input.codePointAt(this.nextTokenStart());throw we(ue)||ue===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(Ye(z)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let ue=this.state.potentialArrowAt===this.state.start,Ne=this.state.containsEsc,$e=this.parseIdentifier();if(!Ne&&$e.name==="async"&&!this.canInsertSemicolon()){let{type:ot}=this.state;if(ot===68)return this.resetPreviousNodeTrailingComments($e),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode($e));if(Ye(ot))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode($e)):$e;if(ot===90)return this.resetPreviousNodeTrailingComments($e),this.parseDo(this.startNodeAtNode($e),!0)}return ue&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode($e),[$e],!1)):$e}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(k,C){let O=this.getPluginOption("pipelineOperator","proposal");if(O)return this.state.type=k,this.state.value=C,this.state.pos--,this.state.end--,this.state.endLoc=p(this.state.endLoc,-1),this.parseTopicReference(O);throw this.unexpected()}parseTopicReference(k){let C=this.startNode(),O=this.state.startLoc,z=this.state.type;return this.next(),this.finishTopicReference(C,O,k,z)}finishTopicReference(k,C,O,z){if(this.testTopicReferenceConfiguration(O,C,z))return this.topicReferenceIsAllowedInCurrentContext()||this.raise(N.PipeTopicUnbound,C),this.registerTopicReference(),this.finishNode(k,"TopicReference");throw this.raise(N.PipeTopicUnconfiguredToken,C,{token:pn(z)})}testTopicReferenceConfiguration(k,C,O){switch(k){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:pn(O)}]);case"smart":return O===27;default:throw this.raise(N.PipeTopicRequiresHackPipes,C)}}parseAsyncArrowUnaryFunction(k){this.prodParam.enter(Ju(!0,this.prodParam.hasYield));let C=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(N.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(k,C,!0)}parseDo(k,C){this.expectPlugin("doExpressions"),C&&this.expectPlugin("asyncDoExpressions"),k.async=C,this.next();let O=this.state.labels;return this.state.labels=[],C?(this.prodParam.enter(2),k.body=this.parseBlock(),this.prodParam.exit()):k.body=this.parseBlock(),this.state.labels=O,this.finishNode(k,"DoExpression")}parseSuper(){let k=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.raise(N.SuperNotAllowed,k):this.scope.allowSuper||this.raise(N.UnexpectedSuper,k),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(N.UnsupportedSuper,k),this.finishNode(k,"Super")}parsePrivateName(){let k=this.startNode(),C=this.startNodeAt(p(this.state.startLoc,1)),O=this.state.value;return this.next(),k.id=this.createIdentifier(C,O),this.finishNode(k,"PrivateName")}parseFunctionOrFunctionSent(){let k=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let C=this.createIdentifier(this.startNodeAtNode(k),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(k,C,"sent")}return this.parseFunction(k)}parseMetaProperty(k,C,O){k.meta=C;let z=this.state.containsEsc;return k.property=this.parseIdentifier(!0),(k.property.name!==O||z)&&this.raise(N.UnsupportedMetaProperty,k.property,{target:C.name,onlyValidPropertyName:O}),this.finishNode(k,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(k){if(this.next(),this.isContextual(105)||this.isContextual(97)){let C=this.isContextual(105);return this.expectPlugin(C?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),k.phase=C?"source":"defer",this.parseImportCall(k)}else{let C=this.createIdentifierAt(this.startNodeAtNode(k),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(N.ImportMetaOutsideModule,C),this.sawUnambiguousESM=!0),this.parseMetaProperty(k,C,"meta")}}parseLiteralAtNode(k,C,O){return this.addExtra(O,"rawValue",k),this.addExtra(O,"raw",this.input.slice(this.offsetToSourcePos(O.start),this.state.end)),O.value=k,this.next(),this.finishNode(O,C)}parseLiteral(k,C){let O=this.startNode();return this.parseLiteralAtNode(k,C,O)}parseStringLiteral(k){return this.parseLiteral(k,"StringLiteral")}parseNumericLiteral(k){return this.parseLiteral(k,"NumericLiteral")}parseBigIntLiteral(k){{let C;try{C=BigInt(k)}catch{C=null}return this.parseLiteral(C,"BigIntLiteral")}}parseDecimalLiteral(k){return this.parseLiteral(k,"DecimalLiteral")}parseRegExpLiteral(k){let C=this.startNode();return this.addExtra(C,"raw",this.input.slice(this.offsetToSourcePos(C.start),this.state.end)),C.pattern=k.pattern,C.flags=k.flags,this.next(),this.finishNode(C,"RegExpLiteral")}parseBooleanLiteral(k){let C=this.startNode();return C.value=k,this.next(),this.finishNode(C,"BooleanLiteral")}parseNullLiteral(){let k=this.startNode();return this.next(),this.finishNode(k,"NullLiteral")}parseParenAndDistinguishExpression(k){let C=this.state.startLoc,O;this.next(),this.expressionScope.enter(Lc());let z=this.state.maybeInArrowParameters,ue=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let Ne=this.state.startLoc,$e=[],ot=new xe,vt=!0,xt,Hn;for(;!this.match(11);){if(vt)vt=!1;else if(this.expect(12,ot.optionalParametersLoc===null?null:ot.optionalParametersLoc),this.match(11)){Hn=this.state.startLoc;break}if(this.match(21)){let Ko=this.state.startLoc;if(xt=this.state.startLoc,$e.push(this.parseParenItem(this.parseRestBinding(),Ko)),!this.checkCommaAfterRest(41))break}else $e.push(this.parseMaybeAssignAllowInOrVoidPattern(11,ot,this.parseParenItem))}let Oi=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=z,this.state.inFSharpPipelineDirectBody=ue;let fo=this.startNodeAt(C);return k&&this.shouldParseArrow($e)&&(fo=this.parseArrow(fo))?(this.checkDestructuringPrivate(ot),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(fo,$e,!1),fo):(this.expressionScope.exit(),$e.length||this.unexpected(this.state.lastTokStartLoc),Hn&&this.unexpected(Hn),xt&&this.unexpected(xt),this.checkExpressionErrors(ot,!0),this.toReferencedListDeep($e,!0),$e.length>1?(O=this.startNodeAt(Ne),O.expressions=$e,this.finishNode(O,"SequenceExpression"),this.resetEndLocation(O,Oi)):O=$e[0],this.wrapParenthesis(C,O))}wrapParenthesis(k,C){if(!(this.optionFlags&1024))return this.addExtra(C,"parenthesized",!0),this.addExtra(C,"parenStart",k.index),this.takeSurroundingComments(C,k.index,this.state.lastTokEndLoc.index),C;let O=this.startNodeAt(k);return O.expression=C,this.finishNode(O,"ParenthesizedExpression")}shouldParseArrow(k){return!this.canInsertSemicolon()}parseArrow(k){if(this.eat(19))return k}parseParenItem(k,C){return k}parseNewOrNewTarget(){let k=this.startNode();if(this.next(),this.match(16)){let C=this.createIdentifier(this.startNodeAtNode(k),"new");this.next();let O=this.parseMetaProperty(k,C,"target");return this.scope.allowNewTarget||this.raise(N.UnexpectedNewTarget,O),O}return this.parseNew(k)}parseNew(k){if(this.parseNewCallee(k),this.eat(10)){let C=this.parseExprList(11);this.toReferencedList(C),k.arguments=C}else k.arguments=[];return this.finishNode(k,"NewExpression")}parseNewCallee(k){let C=this.match(83),O=this.parseNoCallExpr();k.callee=O,C&&(O.type==="Import"||O.type==="ImportExpression")&&this.raise(N.ImportCallNotNewExpression,O)}parseTemplateElement(k){let{start:C,startLoc:O,end:z,value:ue}=this.state,Ne=C+1,$e=this.startNodeAt(p(O,1));ue===null&&(k||this.raise(N.InvalidEscapeSequenceTemplate,p(this.state.firstInvalidTemplateEscapePos,1)));let ot=this.match(24),vt=ot?-1:-2,xt=z+vt;$e.value={raw:this.input.slice(Ne,xt).replace(/\r\n?/g,`
`),cooked:ue===null?null:ue.slice(1,vt)},$e.tail=ot,this.next();let Hn=this.finishNode($e,"TemplateElement");return this.resetEndLocation(Hn,p(this.state.lastTokEndLoc,vt)),Hn}parseTemplate(k){let C=this.startNode(),O=this.parseTemplateElement(k),z=[O],ue=[];for(;!O.tail;)ue.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),z.push(O=this.parseTemplateElement(k));return C.expressions=ue,C.quasis=z,this.finishNode(C,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(k,C,O,z){O&&this.expectPlugin("recordAndTuple");let ue=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let Ne=!1,$e=!0,ot=this.startNode();for(ot.properties=[],this.next();!this.match(k);){if($e)$e=!1;else if(this.expect(12),this.match(k)){this.addTrailingCommaExtraToNode(ot);break}let xt;C?xt=this.parseBindingProperty():(xt=this.parsePropertyDefinition(z),Ne=this.checkProto(xt,O,Ne,z)),O&&!this.isObjectProperty(xt)&&xt.type!=="SpreadElement"&&this.raise(N.InvalidRecordProperty,xt),ot.properties.push(xt)}this.next(),this.state.inFSharpPipelineDirectBody=ue;let vt="ObjectExpression";return C?vt="ObjectPattern":O&&(vt="RecordExpression"),this.finishNode(ot,vt)}addTrailingCommaExtraToNode(k){this.addExtra(k,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(k,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(k){return!k.computed&&k.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(k){let C=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(N.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)C.push(this.parseDecorator());let O=this.startNode(),z=!1,ue=!1,Ne;if(this.match(21))return C.length&&this.unexpected(),this.parseSpread();C.length&&(O.decorators=C,C=[]),O.method=!1,k&&(Ne=this.state.startLoc);let $e=this.eat(55);this.parsePropertyNamePrefixOperator(O);let ot=this.state.containsEsc;if(this.parsePropertyName(O,k),!$e&&!ot&&this.maybeAsyncOrAccessorProp(O)){let{key:vt}=O,xt=vt.name;xt==="async"&&!this.hasPrecedingLineBreak()&&(z=!0,this.resetPreviousNodeTrailingComments(vt),$e=this.eat(55),this.parsePropertyName(O)),(xt==="get"||xt==="set")&&(ue=!0,this.resetPreviousNodeTrailingComments(vt),O.kind=xt,this.match(55)&&($e=!0,this.raise(N.AccessorIsGenerator,this.state.curPosition(),{kind:xt}),this.next()),this.parsePropertyName(O))}return this.parseObjPropValue(O,Ne,$e,z,!1,ue,k)}getGetterSetterExpectedParamCount(k){return k.kind==="get"?0:1}getObjectOrClassMethodParams(k){return k.params}checkGetterSetterParams(k){let C=this.getGetterSetterExpectedParamCount(k),O=this.getObjectOrClassMethodParams(k);O.length!==C&&this.raise(k.kind==="get"?N.BadGetterArity:N.BadSetterArity,k),k.kind==="set"&&O[O.length-1]?.type==="RestElement"&&this.raise(N.BadSetterRestParameter,k)}parseObjectMethod(k,C,O,z,ue){if(ue){let Ne=this.parseMethod(k,C,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(Ne),Ne}if(O||C||this.match(10))return z&&this.unexpected(),k.kind="method",k.method=!0,this.parseMethod(k,C,O,!1,!1,"ObjectMethod")}parseObjectProperty(k,C,O,z){if(k.shorthand=!1,this.eat(14))return k.value=O?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,z),this.finishObjectProperty(k);if(!k.computed&&k.key.type==="Identifier"){if(this.checkReservedWord(k.key.name,k.key.loc.start,!0,!1),O)k.value=this.parseMaybeDefault(C,this.cloneIdentifier(k.key));else if(this.match(29)){let ue=this.state.startLoc;z!=null?z.shorthandAssignLoc===null&&(z.shorthandAssignLoc=ue):this.raise(N.InvalidCoverInitializedName,ue),k.value=this.parseMaybeDefault(C,this.cloneIdentifier(k.key))}else k.value=this.cloneIdentifier(k.key);return k.shorthand=!0,this.finishObjectProperty(k)}}finishObjectProperty(k){return this.finishNode(k,"ObjectProperty")}parseObjPropValue(k,C,O,z,ue,Ne,$e){let ot=this.parseObjectMethod(k,O,z,ue,Ne)||this.parseObjectProperty(k,C,ue,$e);return ot||this.unexpected(),ot}parsePropertyName(k,C){if(this.eat(0))k.computed=!0,k.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:O,value:z}=this.state,ue;if(ft(O))ue=this.parseIdentifier(!0);else switch(O){case 135:ue=this.parseNumericLiteral(z);break;case 134:ue=this.parseStringLiteral(z);break;case 136:ue=this.parseBigIntLiteral(z);break;case 139:{let Ne=this.state.startLoc;C!=null?C.privateKeyLoc===null&&(C.privateKeyLoc=Ne):this.raise(N.UnexpectedPrivateField,Ne),ue=this.parsePrivateName();break}default:this.unexpected()}k.key=ue,O!==139&&(k.computed=!1)}}initFunction(k,C){k.id=null,k.generator=!1,k.async=C}parseMethod(k,C,O,z,ue,Ne,$e=!1){this.initFunction(k,O),k.generator=C,this.scope.enter(530|($e?576:0)|(ue?32:0)),this.prodParam.enter(Ju(O,k.generator)),this.parseFunctionParams(k,z);let ot=this.parseFunctionBodyAndFinish(k,Ne,!0);return this.prodParam.exit(),this.scope.exit(),ot}parseArrayLike(k,C,O){C&&this.expectPlugin("recordAndTuple");let z=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let ue=this.startNode();return this.next(),ue.elements=this.parseExprList(k,!C,O,ue),this.state.inFSharpPipelineDirectBody=z,this.finishNode(ue,C?"TupleExpression":"ArrayExpression")}parseArrowExpression(k,C,O,z){this.scope.enter(518);let ue=Ju(O,!1);!this.match(5)&&this.prodParam.hasIn&&(ue|=8),this.prodParam.enter(ue),this.initFunction(k,O);let Ne=this.state.maybeInArrowParameters;return C&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(k,C,z)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(k,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=Ne,this.finishNode(k,"ArrowFunctionExpression")}setArrowFunctionParameters(k,C,O){this.toAssignableList(C,O,!1),k.params=C}parseFunctionBodyAndFinish(k,C,O=!1){return this.parseFunctionBody(k,!1,O),this.finishNode(k,C)}parseFunctionBody(k,C,O=!1){let z=C&&!this.match(5);if(this.expressionScope.enter(cc()),z)k.body=this.parseMaybeAssign(),this.checkParams(k,!1,C,!1);else{let ue=this.state.strict,Ne=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),k.body=this.parseBlock(!0,!1,$e=>{let ot=!this.isSimpleParamList(k.params);$e&&ot&&this.raise(N.IllegalLanguageModeDirective,(k.kind==="method"||k.kind==="constructor")&&k.key?k.key.loc.end:k);let vt=!ue&&this.state.strict;this.checkParams(k,!this.state.strict&&!C&&!O&&!ot,C,vt),this.state.strict&&k.id&&this.checkIdentifier(k.id,65,vt)}),this.prodParam.exit(),this.state.labels=Ne}this.expressionScope.exit()}isSimpleParameter(k){return k.type==="Identifier"}isSimpleParamList(k){for(let C=0,O=k.length;C<O;C++)if(!this.isSimpleParameter(k[C]))return!1;return!0}checkParams(k,C,O,z=!0){let ue=!C&&new Set,Ne={type:"FormalParameters"};for(let $e of k.params)this.checkLVal($e,Ne,5,ue,z)}parseExprList(k,C,O,z){let ue=[],Ne=!0;for(;!this.eat(k);){if(Ne)Ne=!1;else if(this.expect(12),this.match(k)){z&&this.addTrailingCommaExtraToNode(z),this.next();break}ue.push(this.parseExprListItem(k,C,O))}return ue}parseExprListItem(k,C,O,z){let ue;if(this.match(12))C||this.raise(N.UnexpectedToken,this.state.curPosition(),{unexpected:","}),ue=null;else if(this.match(21)){let Ne=this.state.startLoc;ue=this.parseParenItem(this.parseSpread(O),Ne)}else if(this.match(17)){this.expectPlugin("partialApplication"),z||this.raise(N.UnexpectedArgumentPlaceholder,this.state.startLoc);let Ne=this.startNode();this.next(),ue=this.finishNode(Ne,"ArgumentPlaceholder")}else ue=this.parseMaybeAssignAllowInOrVoidPattern(k,O,this.parseParenItem);return ue}parseIdentifier(k){let C=this.startNode(),O=this.parseIdentifierName(k);return this.createIdentifier(C,O)}createIdentifier(k,C){return k.name=C,k.loc.identifierName=C,this.finishNode(k,"Identifier")}createIdentifierAt(k,C,O){return k.name=C,k.loc.identifierName=C,this.finishNodeAt(k,"Identifier",O)}parseIdentifierName(k){let C,{startLoc:O,type:z}=this.state;ft(z)?C=this.state.value:this.unexpected();let ue=it(z);return k?ue&&this.replaceToken(132):this.checkReservedWord(C,O,ue,!1),this.next(),C}checkReservedWord(k,C,O,z){if(!(k.length>10||!Qt(k))){if(O&&Vt(k)){this.raise(N.UnexpectedKeyword,C,{keyword:k});return}if((this.state.strict?z?dt:Ze:Fe)(k,this.inModule)){this.raise(N.UnexpectedReservedWord,C,{reservedWord:k});return}else if(k==="yield"){if(this.prodParam.hasYield){this.raise(N.YieldBindingIdentifier,C);return}}else if(k==="await"){if(this.prodParam.hasAwait){this.raise(N.AwaitBindingIdentifier,C);return}if(this.scope.inStaticBlock){this.raise(N.AwaitBindingIdentifierInStaticBlock,C);return}this.expressionScope.recordAsyncArrowParametersError(C)}else if(k==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(N.ArgumentsInClass,C);return}}}recordAwaitIfAllowed(){let k=this.prodParam.hasAwait;return k&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),k}parseAwait(k){let C=this.startNodeAt(k);return this.expressionScope.recordParameterInitializerError(N.AwaitExpressionFormalParameter,C),this.eat(55)&&this.raise(N.ObsoleteAwaitStar,C),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(C.argument=this.parseMaybeUnary(null,!0)),this.finishNode(C,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:k}=this.state;return k===53||k===10||k===0||Yn(k)||k===102&&!this.state.containsEsc||k===138||k===56||this.hasPlugin("v8intrinsic")&&k===54}parseYield(k){let C=this.startNodeAt(k);this.expressionScope.recordParameterInitializerError(N.YieldInParameter,C);let O=!1,z=null;if(!this.hasPrecedingLineBreak())switch(O=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!O)break;default:z=this.parseMaybeAssign()}return C.delegate=O,C.argument=z,this.finishNode(C,"YieldExpression")}parseImportCall(k){if(this.next(),k.source=this.parseMaybeAssignAllowIn(),k.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(k.source);else if(k.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(k.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(N.ImportCallArity,k)}}return this.expect(11),this.finishNode(k,"ImportExpression")}checkPipelineAtInfixOperator(k,C){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&k.type==="SequenceExpression"&&this.raise(N.PipelineHeadSequenceExpression,C)}parseSmartPipelineBodyInStyle(k,C){if(this.isSimpleReference(k)){let O=this.startNodeAt(C);return O.callee=k,this.finishNode(O,"PipelineBareFunction")}else{let O=this.startNodeAt(C);return this.checkSmartPipeTopicBodyEarlyErrors(C),O.expression=k,this.finishNode(O,"PipelineTopicExpression")}}isSimpleReference(k){switch(k.type){case"MemberExpression":return!k.computed&&this.isSimpleReference(k.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(k){if(this.match(19))throw this.raise(N.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(N.PipelineTopicUnused,k)}withTopicBindingContext(k){let C=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return k()}finally{this.state.topicContext=C}}withSmartMixTopicForbiddingContext(k){return k()}withSoloAwaitPermittingContext(k){let C=this.state.soloAwait;this.state.soloAwait=!0;try{return k()}finally{this.state.soloAwait=C}}allowInAnd(k){let C=this.prodParam.currentFlags();if(8&~C){this.prodParam.enter(C|8);try{return k()}finally{this.prodParam.exit()}}return k()}disallowInAnd(k){let C=this.prodParam.currentFlags();if(8&C){this.prodParam.enter(C&-9);try{return k()}finally{this.prodParam.exit()}}return k()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(k){let C=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let O=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let z=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),C,k);return this.state.inFSharpPipelineDirectBody=O,z}parseModuleExpression(){this.expectPlugin("moduleBlocks");let k=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let C=this.startNodeAt(this.state.endLoc);this.next();let O=this.initializeScopes(!0);this.enterInitialScopes();try{k.body=this.parseProgram(C,8,"module")}finally{O()}return this.finishNode(k,"ModuleExpression")}parseVoidPattern(k){this.expectPlugin("discardBinding");let C=this.startNode();return k!=null&&(k.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(C,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(k,C,O){if(C!=null&&this.match(88)){let z=this.lookaheadCharCode();if(z===44||z===(k===3?93:k===8?125:41)||z===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(C))}return this.parseMaybeAssignAllowIn(C,O)}parsePropertyNamePrefixOperator(k){}},Xi={kind:1},Br={kind:2},_a=/[\uD800-\uDFFF]/u,fs=/in(?:stanceof)?/y;function hl(k,C,O){for(let z=0;z<k.length;z++){let ue=k[z],{type:Ne}=ue;typeof Ne=="number"&&(ue.type=di(Ne))}return k}var Ol=class extends Dr{parseTopLevel(k,C){return k.program=this.parseProgram(C,140,this.options.sourceType==="module"?"module":"script"),k.comments=this.comments,this.optionFlags&256&&(k.tokens=hl(this.tokens,this.input,this.startIndex)),this.finishNode(k,"File")}parseProgram(k,C,O){if(k.sourceType=O,k.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(k,!0,!0,C),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[ue,Ne]of Array.from(this.scope.undefinedExports))this.raise(N.ModuleExportUndefined,Ne,{localName:ue});this.addExtra(k,"topLevelAwait",this.state.hasTopLevelAwait)}let z;return C===140?z=this.finishNode(k,"Program"):z=this.finishNodeAt(k,"Program",p(this.state.startLoc,-1)),z}stmtToDirective(k){let C=this.castNodeTo(k,"Directive"),O=this.castNodeTo(k.expression,"DirectiveLiteral"),z=O.value,ue=this.input.slice(this.offsetToSourcePos(O.start),this.offsetToSourcePos(O.end)),Ne=O.value=ue.slice(1,-1);return this.addExtra(O,"raw",ue),this.addExtra(O,"rawValue",Ne),this.addExtra(O,"expressionValue",z),C.value=O,delete k.expression,C}parseInterpreterDirective(){if(!this.match(28))return null;let k=this.startNode();return k.value=this.state.value,this.next(),this.finishNode(k,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let k=this.nextTokenInLineStart(),C=this.codePointAtPos(k);if(this.isUnparsedContextual(k,"of")){let O=this.lookaheadCharCodeSince(k+2);if(O!==61&&O!==58&&O!==59)return!1}return!!(this.chStartsBindingIdentifier(C,k)||this.isUnparsedContextual(k,"void"))}nextTokenIsIdentifierOnSameLine(){let k=this.nextTokenInLineStart(),C=this.codePointAtPos(k);return this.chStartsBindingIdentifier(C,k)}isAwaitUsing(){if(!this.isContextual(96))return!1;let k=this.nextTokenInLineStart();if(this.isUnparsedContextual(k,"using")){k=this.nextTokenInLineStartSince(k+5);let C=this.codePointAtPos(k);if(this.chStartsBindingIdentifier(C,k))return!0}return!1}chStartsBindingIdentifier(k,C){if(we(k)){if(fs.lastIndex=C,fs.test(this.input)){let O=this.codePointAtPos(fs.lastIndex);if(!ve(O)&&O!==92)return!1}return!0}else return k===92}chStartsBindingPattern(k){return k===91||k===123}hasFollowingBindingAtom(){let k=this.nextTokenStart(),C=this.codePointAtPos(k);return this.chStartsBindingPattern(C)||this.chStartsBindingIdentifier(C,k)}hasInLineFollowingBindingIdentifierOrBrace(){let k=this.nextTokenInLineStart(),C=this.codePointAtPos(k);return C===123||this.chStartsBindingIdentifier(C,k)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(k=!1){let C=0;return this.options.annexB&&!this.state.strict&&(C|=4,k&&(C|=8)),this.parseStatementLike(C)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(k){let C=null;return this.match(26)&&(C=this.parseDecorators(!0)),this.parseStatementContent(k,C)}parseStatementContent(k,C){let O=this.state.type,z=this.startNode(),ue=!!(k&2),Ne=!!(k&4),$e=k&1;switch(O){case 60:return this.parseBreakContinueStatement(z,!0);case 63:return this.parseBreakContinueStatement(z,!1);case 64:return this.parseDebuggerStatement(z);case 90:return this.parseDoWhileStatement(z);case 91:return this.parseForStatement(z);case 68:if(this.lookaheadCharCode()===46)break;return Ne||this.raise(this.state.strict?N.StrictFunction:this.options.annexB?N.SloppyFunctionAnnexB:N.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(z,!1,!ue&&Ne);case 80:return ue||this.unexpected(),this.parseClass(this.maybeTakeDecorators(C,z),!0);case 69:return this.parseIfStatement(z);case 70:return this.parseReturnStatement(z);case 71:return this.parseSwitchStatement(z);case 72:return this.parseThrowStatement(z);case 73:return this.parseTryStatement(z);case 96:if(this.isAwaitUsing())return this.allowsUsing()?ue?this.recordAwaitIfAllowed()||this.raise(N.AwaitUsingNotInAsyncContext,z):this.raise(N.UnexpectedLexicalDeclaration,z):this.raise(N.UnexpectedUsingDeclaration,z),this.next(),this.parseVarStatement(z,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?ue||this.raise(N.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(N.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(z,"using");case 100:{if(this.state.containsEsc)break;let xt=this.nextTokenStart(),Hn=this.codePointAtPos(xt);if(Hn!==91&&(!ue&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(Hn,xt)&&Hn!==123))break}case 75:ue||this.raise(N.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let xt=this.state.value;return this.parseVarStatement(z,xt)}case 92:return this.parseWhileStatement(z);case 76:return this.parseWithStatement(z);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(z);case 83:{let xt=this.lookaheadCharCode();if(xt===40||xt===46)break}case 82:{!(this.optionFlags&8)&&!$e&&this.raise(N.UnexpectedImportExport,this.state.startLoc),this.next();let xt;return O===83?xt=this.parseImport(z):xt=this.parseExport(z,C),this.assertModuleNodeAllowed(xt),xt}default:if(this.isAsyncFunction())return ue||this.raise(N.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(z,!0,!ue&&Ne)}let ot=this.state.value,vt=this.parseExpression();return Ye(O)&&vt.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(z,ot,vt,k):this.parseExpressionStatement(z,vt,C)}assertModuleNodeAllowed(k){!(this.optionFlags&8)&&!this.inModule&&this.raise(N.ImportOutsideModule,k)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(k,C,O){return k&&(C.decorators?.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(N.DecoratorsBeforeAfterExport,C.decorators[0]),C.decorators.unshift(...k)):C.decorators=k,this.resetStartLocationFromNode(C,k[0]),O&&this.resetStartLocationFromNode(O,C)),C}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(k){let C=[];do C.push(this.parseDecorator());while(this.match(26));if(this.match(82))k||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(N.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(N.UnexpectedLeadingDecorator,this.state.startLoc);return C}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let k=this.startNode();if(this.next(),this.hasPlugin("decorators")){let C=this.state.startLoc,O;if(this.match(10)){let z=this.state.startLoc;this.next(),O=this.parseExpression(),this.expect(11),O=this.wrapParenthesis(z,O);let ue=this.state.startLoc;k.expression=this.parseMaybeDecoratorArguments(O,z),this.getPluginOption("decorators","allowCallParenthesized")===!1&&k.expression!==O&&this.raise(N.DecoratorArgumentsOutsideParentheses,ue)}else{for(O=this.parseIdentifier(!1);this.eat(16);){let z=this.startNodeAt(C);z.object=O,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),z.property=this.parsePrivateName()):z.property=this.parseIdentifier(!0),z.computed=!1,O=this.finishNode(z,"MemberExpression")}k.expression=this.parseMaybeDecoratorArguments(O,C)}}else k.expression=this.parseExprSubscripts();return this.finishNode(k,"Decorator")}parseMaybeDecoratorArguments(k,C){if(this.eat(10)){let O=this.startNodeAt(C);return O.callee=k,O.arguments=this.parseCallExpressionArguments(),this.toReferencedList(O.arguments),this.finishNode(O,"CallExpression")}return k}parseBreakContinueStatement(k,C){return this.next(),this.isLineTerminator()?k.label=null:(k.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(k,C),this.finishNode(k,C?"BreakStatement":"ContinueStatement")}verifyBreakContinue(k,C){let O;for(O=0;O<this.state.labels.length;++O){let z=this.state.labels[O];if((k.label==null||z.name===k.label.name)&&(z.kind!=null&&(C||z.kind===1)||k.label&&C))break}if(O===this.state.labels.length){let z=C?"BreakStatement":"ContinueStatement";this.raise(N.IllegalBreakContinue,k,{type:z})}}parseDebuggerStatement(k){return this.next(),this.semicolon(),this.finishNode(k,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let k=this.parseExpression();return this.expect(11),k}parseDoWhileStatement(k){return this.next(),this.state.labels.push(Xi),k.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),k.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(k,"DoWhileStatement")}parseForStatement(k){this.next(),this.state.labels.push(Xi);let C=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(C=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return C!==null&&this.unexpected(C),this.parseFor(k,null);let O=this.isContextual(100);{let ot=this.isAwaitUsing(),vt=ot||this.isForUsing(),xt=O&&this.hasFollowingBindingAtom()||vt;if(this.match(74)||this.match(75)||xt){let Hn=this.startNode(),Oi;ot?(Oi="await using",this.recordAwaitIfAllowed()||this.raise(N.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):Oi=this.state.value,this.next(),this.parseVar(Hn,!0,Oi);let fo=this.finishNode(Hn,"VariableDeclaration"),Ko=this.match(58);return Ko&&vt&&this.raise(N.ForInUsing,fo),(Ko||this.isContextual(102))&&fo.declarations.length===1?this.parseForIn(k,fo,C):(C!==null&&this.unexpected(C),this.parseFor(k,fo))}}let z=this.isContextual(95),ue=new xe,Ne=this.parseExpression(!0,ue),$e=this.isContextual(102);if($e&&(O&&this.raise(N.ForOfLet,Ne),C===null&&z&&Ne.type==="Identifier"&&this.raise(N.ForOfAsync,Ne)),$e||this.match(58)){this.checkDestructuringPrivate(ue),this.toAssignable(Ne,!0);let ot=$e?"ForOfStatement":"ForInStatement";return this.checkLVal(Ne,{type:ot}),this.parseForIn(k,Ne,C)}else this.checkExpressionErrors(ue,!0);return C!==null&&this.unexpected(C),this.parseFor(k,Ne)}parseFunctionStatement(k,C,O){return this.next(),this.parseFunction(k,1|(O?2:0)|(C?8:0))}parseIfStatement(k){return this.next(),k.test=this.parseHeaderExpression(),k.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),k.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(k,"IfStatement")}parseReturnStatement(k){return this.prodParam.hasReturn||this.raise(N.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?k.argument=null:(k.argument=this.parseExpression(),this.semicolon()),this.finishNode(k,"ReturnStatement")}parseSwitchStatement(k){this.next(),k.discriminant=this.parseHeaderExpression();let C=k.cases=[];this.expect(5),this.state.labels.push(Br),this.scope.enter(256);let O;for(let z;!this.match(8);)if(this.match(61)||this.match(65)){let ue=this.match(61);O&&this.finishNode(O,"SwitchCase"),C.push(O=this.startNode()),O.consequent=[],this.next(),ue?O.test=this.parseExpression():(z&&this.raise(N.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),z=!0,O.test=null),this.expect(14)}else O?O.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),O&&this.finishNode(O,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(k,"SwitchStatement")}parseThrowStatement(k){return this.next(),this.hasPrecedingLineBreak()&&this.raise(N.NewlineAfterThrow,this.state.lastTokEndLoc),k.argument=this.parseExpression(),this.semicolon(),this.finishNode(k,"ThrowStatement")}parseCatchClauseParam(){let k=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&k.type==="Identifier"?8:0),this.checkLVal(k,{type:"CatchClause"},9),k}parseTryStatement(k){if(this.next(),k.block=this.parseBlock(),k.handler=null,this.match(62)){let C=this.startNode();this.next(),this.match(10)?(this.expect(10),C.param=this.parseCatchClauseParam(),this.expect(11)):(C.param=null,this.scope.enter(0)),C.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),k.handler=this.finishNode(C,"CatchClause")}return k.finalizer=this.eat(67)?this.parseBlock():null,!k.handler&&!k.finalizer&&this.raise(N.NoCatchOrFinally,k),this.finishNode(k,"TryStatement")}parseVarStatement(k,C,O=!1){return this.next(),this.parseVar(k,!1,C,O),this.semicolon(),this.finishNode(k,"VariableDeclaration")}parseWhileStatement(k){return this.next(),k.test=this.parseHeaderExpression(),this.state.labels.push(Xi),k.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(k,"WhileStatement")}parseWithStatement(k){return this.state.strict&&this.raise(N.StrictWith,this.state.startLoc),this.next(),k.object=this.parseHeaderExpression(),k.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(k,"WithStatement")}parseEmptyStatement(k){return this.next(),this.finishNode(k,"EmptyStatement")}parseLabeledStatement(k,C,O,z){for(let Ne of this.state.labels)Ne.name===C&&this.raise(N.LabelRedeclaration,O,{labelName:C});let ue=_t(this.state.type)?1:this.match(71)?2:null;for(let Ne=this.state.labels.length-1;Ne>=0;Ne--){let $e=this.state.labels[Ne];if($e.statementStart===k.start)$e.statementStart=this.sourceToOffsetPos(this.state.start),$e.kind=ue;else break}return this.state.labels.push({name:C,kind:ue,statementStart:this.sourceToOffsetPos(this.state.start)}),k.body=z&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),k.label=O,this.finishNode(k,"LabeledStatement")}parseExpressionStatement(k,C,O){return k.expression=C,this.semicolon(),this.finishNode(k,"ExpressionStatement")}parseBlock(k=!1,C=!0,O){let z=this.startNode();return k&&this.state.strictErrors.clear(),this.expect(5),C&&this.scope.enter(0),this.parseBlockBody(z,k,!1,8,O),C&&this.scope.exit(),this.finishNode(z,"BlockStatement")}isValidDirective(k){return k.type==="ExpressionStatement"&&k.expression.type==="StringLiteral"&&!k.expression.extra.parenthesized}parseBlockBody(k,C,O,z,ue){let Ne=k.body=[],$e=k.directives=[];this.parseBlockOrModuleBlockBody(Ne,C?$e:void 0,O,z,ue)}parseBlockOrModuleBlockBody(k,C,O,z,ue){let Ne=this.state.strict,$e=!1,ot=!1;for(;!this.match(z);){let vt=O?this.parseModuleItem():this.parseStatementListItem();if(C&&!ot){if(this.isValidDirective(vt)){let xt=this.stmtToDirective(vt);C.push(xt),!$e&&xt.value.value==="use strict"&&($e=!0,this.setStrict(!0));continue}ot=!0,this.state.strictErrors.clear()}k.push(vt)}ue?.call(this,$e),Ne||this.setStrict(!1),this.next()}parseFor(k,C){return k.init=C,this.semicolon(!1),k.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),k.update=this.match(11)?null:this.parseExpression(),this.expect(11),k.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(k,"ForStatement")}parseForIn(k,C,O){let z=this.match(58);return this.next(),z?O!==null&&this.unexpected(O):k.await=O!==null,C.type==="VariableDeclaration"&&C.declarations[0].init!=null&&(!z||!this.options.annexB||this.state.strict||C.kind!=="var"||C.declarations[0].id.type!=="Identifier")&&this.raise(N.ForInOfLoopInitializer,C,{type:z?"ForInStatement":"ForOfStatement"}),C.type==="AssignmentPattern"&&this.raise(N.InvalidLhs,C,{ancestor:{type:"ForStatement"}}),k.left=C,k.right=z?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),k.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(k,z?"ForInStatement":"ForOfStatement")}parseVar(k,C,O,z=!1){let ue=k.declarations=[];for(k.kind=O;;){let Ne=this.startNode();if(this.parseVarId(Ne,O),Ne.init=this.eat(29)?C?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,Ne.init===null&&!z&&(Ne.id.type!=="Identifier"&&!(C&&(this.match(58)||this.isContextual(102)))?this.raise(N.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(O==="const"||O==="using"||O==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(N.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:O})),ue.push(this.finishNode(Ne,"VariableDeclarator")),!this.eat(12))break}return k}parseVarId(k,C){let O=this.parseBindingAtom();C==="using"||C==="await using"?(O.type==="ArrayPattern"||O.type==="ObjectPattern")&&this.raise(N.UsingDeclarationHasBindingPattern,O.loc.start):O.type==="VoidPattern"&&this.raise(N.UnexpectedVoidPattern,O.loc.start),this.checkLVal(O,{type:"VariableDeclarator"},C==="var"?5:8201),k.id=O}parseAsyncFunctionExpression(k){return this.parseFunction(k,8)}parseFunction(k,C=0){let O=C&2,z=!!(C&1),ue=z&&!(C&4),Ne=!!(C&8);this.initFunction(k,Ne),this.match(55)&&(O&&this.raise(N.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),k.generator=!0),z&&(k.id=this.parseFunctionId(ue));let $e=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(Ju(Ne,k.generator)),z||(k.id=this.parseFunctionId()),this.parseFunctionParams(k,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(k,z?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),z&&!O&&this.registerFunctionStatementId(k),this.state.maybeInArrowParameters=$e,k}parseFunctionId(k){return k||Ye(this.state.type)?this.parseIdentifier():null}parseFunctionParams(k,C){this.expect(10),this.expressionScope.enter($c()),k.params=this.parseBindingList(11,41,2|(C?4:0)),this.expressionScope.exit()}registerFunctionStatementId(k){k.id&&this.scope.declareName(k.id.name,!this.options.annexB||this.state.strict||k.generator||k.async?this.scope.treatFunctionsAsVar?5:8201:17,k.id.loc.start)}parseClass(k,C,O){this.next();let z=this.state.strict;return this.state.strict=!0,this.parseClassId(k,C,O),this.parseClassSuper(k),k.body=this.parseClassBody(!!k.superClass,z),this.finishNode(k,C?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(k){return k.type==="Identifier"&&k.name==="constructor"||k.type==="StringLiteral"&&k.value==="constructor"}isNonstaticConstructor(k){return!k.computed&&!k.static&&this.nameIsConstructor(k.key)}parseClassBody(k,C){this.classScope.enter();let O={hadConstructor:!1,hadSuperClass:k},z=[],ue=this.startNode();if(ue.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(z.length>0)throw this.raise(N.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){z.push(this.parseDecorator());continue}let Ne=this.startNode();z.length&&(Ne.decorators=z,this.resetStartLocationFromNode(Ne,z[0]),z=[]),this.parseClassMember(ue,Ne,O),Ne.kind==="constructor"&&Ne.decorators&&Ne.decorators.length>0&&this.raise(N.DecoratorConstructor,Ne)}}),this.state.strict=C,this.next(),z.length)throw this.raise(N.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(ue,"ClassBody")}parseClassMemberFromModifier(k,C){let O=this.parseIdentifier(!0);if(this.isClassMethod()){let z=C;return z.kind="method",z.computed=!1,z.key=O,z.static=!1,this.pushClassMethod(k,z,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let z=C;return z.computed=!1,z.key=O,z.static=!1,k.body.push(this.parseClassProperty(z)),!0}return this.resetPreviousNodeTrailingComments(O),!1}parseClassMember(k,C,O){let z=this.isContextual(106);if(z){if(this.parseClassMemberFromModifier(k,C))return;if(this.eat(5)){this.parseClassStaticBlock(k,C);return}}this.parseClassMemberWithIsStatic(k,C,O,z)}parseClassMemberWithIsStatic(k,C,O,z){let ue=C,Ne=C,$e=C,ot=C,vt=C,xt=ue,Hn=ue;if(C.static=z,this.parsePropertyNamePrefixOperator(C),this.eat(55)){xt.kind="method";let zu=this.match(139);if(this.parseClassElementName(xt),this.parsePostMemberNameModifiers(xt),zu){this.pushClassPrivateMethod(k,Ne,!0,!1);return}this.isNonstaticConstructor(ue)&&this.raise(N.ConstructorIsGenerator,ue.key),this.pushClassMethod(k,ue,!0,!1,!1,!1);return}let Oi=!this.state.containsEsc&&Ye(this.state.type),fo=this.parseClassElementName(C),Ko=Oi?fo.name:null,Gc=this.isPrivateName(fo),Af=this.state.startLoc;if(this.parsePostMemberNameModifiers(Hn),this.isClassMethod()){if(xt.kind="method",Gc){this.pushClassPrivateMethod(k,Ne,!1,!1);return}let zu=this.isNonstaticConstructor(ue),rd=!1;zu&&(ue.kind="constructor",O.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(N.DuplicateConstructor,fo),zu&&this.hasPlugin("typescript")&&C.override&&this.raise(N.OverrideOnConstructor,fo),O.hadConstructor=!0,rd=O.hadSuperClass),this.pushClassMethod(k,ue,!1,!1,zu,rd)}else if(this.isClassProperty())Gc?this.pushClassPrivateProperty(k,ot):this.pushClassProperty(k,$e);else if(Ko==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(fo);let zu=this.eat(55);Hn.optional&&this.unexpected(Af),xt.kind="method";let rd=this.match(139);this.parseClassElementName(xt),this.parsePostMemberNameModifiers(Hn),rd?this.pushClassPrivateMethod(k,Ne,zu,!0):(this.isNonstaticConstructor(ue)&&this.raise(N.ConstructorIsAsync,ue.key),this.pushClassMethod(k,ue,zu,!0,!1,!1))}else if((Ko==="get"||Ko==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(fo),xt.kind=Ko;let zu=this.match(139);this.parseClassElementName(ue),zu?this.pushClassPrivateMethod(k,Ne,!1,!1):(this.isNonstaticConstructor(ue)&&this.raise(N.ConstructorIsAccessor,ue.key),this.pushClassMethod(k,ue,!1,!1,!1,!1)),this.checkGetterSetterParams(ue)}else if(Ko==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(fo);let zu=this.match(139);this.parseClassElementName($e),this.pushClassAccessorProperty(k,vt,zu)}else this.isLineTerminator()?Gc?this.pushClassPrivateProperty(k,ot):this.pushClassProperty(k,$e):this.unexpected()}parseClassElementName(k){let{type:C,value:O}=this.state;if((C===132||C===134)&&k.static&&O==="prototype"&&this.raise(N.StaticPrototype,this.state.startLoc),C===139){O==="constructor"&&this.raise(N.ConstructorClassPrivateField,this.state.startLoc);let z=this.parsePrivateName();return k.key=z,z}return this.parsePropertyName(k),k.key}parseClassStaticBlock(k,C){this.scope.enter(720);let O=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let z=C.body=[];this.parseBlockOrModuleBlockBody(z,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=O,k.body.push(this.finishNode(C,"StaticBlock")),C.decorators?.length&&this.raise(N.DecoratorStaticBlock,C)}pushClassProperty(k,C){!C.computed&&this.nameIsConstructor(C.key)&&this.raise(N.ConstructorClassField,C.key),k.body.push(this.parseClassProperty(C))}pushClassPrivateProperty(k,C){let O=this.parseClassPrivateProperty(C);k.body.push(O),this.classScope.declarePrivateName(this.getPrivateNameSV(O.key),0,O.key.loc.start)}pushClassAccessorProperty(k,C,O){!O&&!C.computed&&this.nameIsConstructor(C.key)&&this.raise(N.ConstructorClassField,C.key);let z=this.parseClassAccessorProperty(C);k.body.push(z),O&&this.classScope.declarePrivateName(this.getPrivateNameSV(z.key),0,z.key.loc.start)}pushClassMethod(k,C,O,z,ue,Ne){k.body.push(this.parseMethod(C,O,z,ue,Ne,"ClassMethod",!0))}pushClassPrivateMethod(k,C,O,z){let ue=this.parseMethod(C,O,z,!1,!1,"ClassPrivateMethod",!0);k.body.push(ue);let Ne=ue.kind==="get"?ue.static?6:2:ue.kind==="set"?ue.static?5:1:0;this.declareClassPrivateMethodInScope(ue,Ne)}declareClassPrivateMethodInScope(k,C){this.classScope.declarePrivateName(this.getPrivateNameSV(k.key),C,k.key.loc.start)}parsePostMemberNameModifiers(k){}parseClassPrivateProperty(k){return this.parseInitializer(k),this.semicolon(),this.finishNode(k,"ClassPrivateProperty")}parseClassProperty(k){return this.parseInitializer(k),this.semicolon(),this.finishNode(k,"ClassProperty")}parseClassAccessorProperty(k){return this.parseInitializer(k),this.semicolon(),this.finishNode(k,"ClassAccessorProperty")}parseInitializer(k){this.scope.enter(592),this.expressionScope.enter(cc()),this.prodParam.enter(0),k.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(k,C,O,z=8331){if(Ye(this.state.type))k.id=this.parseIdentifier(),C&&this.declareNameFromIdentifier(k.id,z);else if(O||!C)k.id=null;else throw this.raise(N.MissingClassName,this.state.startLoc)}parseClassSuper(k){k.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(k,C){let O=this.parseMaybeImportPhase(k,!0),z=this.maybeParseExportDefaultSpecifier(k,O),ue=!z||this.eat(12),Ne=ue&&this.eatExportStar(k),$e=Ne&&this.maybeParseExportNamespaceSpecifier(k),ot=ue&&(!$e||this.eat(12)),vt=z||Ne;if(Ne&&!$e){if(z&&this.unexpected(),C)throw this.raise(N.UnsupportedDecoratorExport,k);return this.parseExportFrom(k,!0),this.sawUnambiguousESM=!0,this.finishNode(k,"ExportAllDeclaration")}let xt=this.maybeParseExportNamedSpecifiers(k);z&&ue&&!Ne&&!xt&&this.unexpected(null,5),$e&&ot&&this.unexpected(null,98);let Hn;if(vt||xt){if(Hn=!1,C)throw this.raise(N.UnsupportedDecoratorExport,k);this.parseExportFrom(k,vt)}else Hn=this.maybeParseExportDeclaration(k);if(vt||xt||Hn){let Oi=k;if(this.checkExport(Oi,!0,!1,!!Oi.source),Oi.declaration?.type==="ClassDeclaration")this.maybeTakeDecorators(C,Oi.declaration,Oi);else if(C)throw this.raise(N.UnsupportedDecoratorExport,k);return this.sawUnambiguousESM=!0,this.finishNode(Oi,"ExportNamedDeclaration")}if(this.eat(65)){let Oi=k,fo=this.parseExportDefaultExpression();if(Oi.declaration=fo,fo.type==="ClassDeclaration")this.maybeTakeDecorators(C,fo,Oi);else if(C)throw this.raise(N.UnsupportedDecoratorExport,k);return this.checkExport(Oi,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(Oi,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(k){return this.eat(55)}maybeParseExportDefaultSpecifier(k,C){if(C||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",C?.loc.start);let O=C||this.parseIdentifier(!0),z=this.startNodeAtNode(O);return z.exported=O,k.specifiers=[this.finishNode(z,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(k){if(this.isContextual(93)){k.specifiers??(k.specifiers=[]);let C=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),C.exported=this.parseModuleExportName(),k.specifiers.push(this.finishNode(C,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(k){if(this.match(5)){let C=k;C.specifiers||(C.specifiers=[]);let O=C.exportKind==="type";return C.specifiers.push(...this.parseExportSpecifiers(O)),C.source=null,C.attributes=[],C.declaration=null,!0}return!1}maybeParseExportDeclaration(k){return this.shouldParseExportDeclaration()?(k.specifiers=[],k.source=null,k.attributes=[],k.declaration=this.parseExportDeclaration(k),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let k=this.nextTokenInLineStart();return this.isUnparsedContextual(k,"function")}parseExportDefaultExpression(){let k=this.startNode();if(this.match(68))return this.next(),this.parseFunction(k,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(k,13);if(this.match(80))return this.parseClass(k,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(N.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(N.UnsupportedDefaultExport,this.state.startLoc);let C=this.parseMaybeAssignAllowIn();return this.semicolon(),C}parseExportDeclaration(k){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:k}=this.state;if(Ye(k)){if(k===95&&!this.state.containsEsc||k===100)return!1;if((k===130||k===129)&&!this.state.containsEsc){let z=this.nextTokenStart(),ue=this.input.charCodeAt(z);if(ue===123||this.chStartsBindingIdentifier(ue,z)&&!this.input.startsWith("from",z))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let C=this.nextTokenStart(),O=this.isUnparsedContextual(C,"from");if(this.input.charCodeAt(C)===44||Ye(this.state.type)&&O)return!0;if(this.match(65)&&O){let z=this.input.charCodeAt(this.nextTokenStartSince(C+4));return z===34||z===39}return!1}parseExportFrom(k,C){this.eatContextual(98)?(k.source=this.parseImportSource(),this.checkExport(k),this.maybeParseImportAttributes(k),this.checkJSONModuleImport(k)):C&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:k}=this.state;return k===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(N.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(N.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(N.UsingDeclarationExport,this.state.startLoc),!0):k===74||k===75||k===68||k===80||this.isLet()||this.isAsyncFunction()}checkExport(k,C,O,z){if(C){if(O){if(this.checkDuplicateExports(k,"default"),this.hasPlugin("exportDefaultFrom")){let ue=k.declaration;ue.type==="Identifier"&&ue.name==="from"&&ue.end-ue.start===4&&!ue.extra?.parenthesized&&this.raise(N.ExportDefaultFromAsIdentifier,ue)}}else if(k.specifiers?.length)for(let ue of k.specifiers){let{exported:Ne}=ue,$e=Ne.type==="Identifier"?Ne.name:Ne.value;if(this.checkDuplicateExports(ue,$e),!z&&ue.local){let{local:ot}=ue;ot.type!=="Identifier"?this.raise(N.ExportBindingIsString,ue,{localName:ot.value,exportName:$e}):(this.checkReservedWord(ot.name,ot.loc.start,!0,!1),this.scope.checkLocalExport(ot))}}else if(k.declaration){let ue=k.declaration;if(ue.type==="FunctionDeclaration"||ue.type==="ClassDeclaration"){let{id:Ne}=ue;if(!Ne)throw new Error("Assertion failure");this.checkDuplicateExports(k,Ne.name)}else if(ue.type==="VariableDeclaration")for(let Ne of ue.declarations)this.checkDeclaration(Ne.id)}}}checkDeclaration(k){if(k.type==="Identifier")this.checkDuplicateExports(k,k.name);else if(k.type==="ObjectPattern")for(let C of k.properties)this.checkDeclaration(C);else if(k.type==="ArrayPattern")for(let C of k.elements)C&&this.checkDeclaration(C);else k.type==="ObjectProperty"?this.checkDeclaration(k.value):k.type==="RestElement"?this.checkDeclaration(k.argument):k.type==="AssignmentPattern"&&this.checkDeclaration(k.left)}checkDuplicateExports(k,C){this.exportedIdentifiers.has(C)&&(C==="default"?this.raise(N.DuplicateDefaultExport,k):this.raise(N.DuplicateExport,k,{exportName:C})),this.exportedIdentifiers.add(C)}parseExportSpecifiers(k){let C=[],O=!0;for(this.expect(5);!this.eat(8);){if(O)O=!1;else if(this.expect(12),this.eat(8))break;let z=this.isContextual(130),ue=this.match(134),Ne=this.startNode();Ne.local=this.parseModuleExportName(),C.push(this.parseExportSpecifier(Ne,ue,k,z))}return C}parseExportSpecifier(k,C,O,z){return this.eatContextual(93)?k.exported=this.parseModuleExportName():C?k.exported=this.cloneStringLiteral(k.local):k.exported||(k.exported=this.cloneIdentifier(k.local)),this.finishNode(k,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let k=this.parseStringLiteral(this.state.value),C=_a.exec(k.value);return C&&this.raise(N.ModuleExportNameHasLoneSurrogate,k,{surrogateCharCode:C[0].charCodeAt(0)}),k}return this.parseIdentifier(!0)}isJSONModuleImport(k){return k.assertions!=null?k.assertions.some(({key:C,value:O})=>O.value==="json"&&(C.type==="Identifier"?C.name==="type":C.value==="type")):!1}checkImportReflection(k){let{specifiers:C}=k,O=C.length===1?C[0].type:null;k.phase==="source"?O!=="ImportDefaultSpecifier"&&this.raise(N.SourcePhaseImportRequiresDefault,C[0].loc.start):k.phase==="defer"?O!=="ImportNamespaceSpecifier"&&this.raise(N.DeferImportRequiresNamespace,C[0].loc.start):k.module&&(O!=="ImportDefaultSpecifier"&&this.raise(N.ImportReflectionNotBinding,C[0].loc.start),k.assertions?.length>0&&this.raise(N.ImportReflectionHasAssertion,C[0].loc.start))}checkJSONModuleImport(k){if(this.isJSONModuleImport(k)&&k.type!=="ExportAllDeclaration"){let{specifiers:C}=k;if(C!=null){let O=C.find(z=>{let ue;if(z.type==="ExportSpecifier"?ue=z.local:z.type==="ImportSpecifier"&&(ue=z.imported),ue!==void 0)return ue.type==="Identifier"?ue.name!=="default":ue.value!=="default"});O!==void 0&&this.raise(N.ImportJSONBindingNotDefault,O.loc.start)}}}isPotentialImportPhase(k){return k?!1:this.isContextual(105)||this.isContextual(97)}applyImportPhase(k,C,O,z){C||(this.hasPlugin("importReflection")&&(k.module=!1),O==="source"?(this.expectPlugin("sourcePhaseImports",z),k.phase="source"):O==="defer"?(this.expectPlugin("deferredImportEvaluation",z),k.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(k.phase=null))}parseMaybeImportPhase(k,C){if(!this.isPotentialImportPhase(C))return this.applyImportPhase(k,C,null),null;let O=this.startNode(),z=this.parseIdentifierName(!0),{type:ue}=this.state;return(ft(ue)?ue!==98||this.lookaheadCharCode()===102:ue!==12)?(this.applyImportPhase(k,C,z,O.loc.start),null):(this.applyImportPhase(k,C,null),this.createIdentifier(O,z))}isPrecedingIdImportPhase(k){let{type:C}=this.state;return Ye(C)?C!==98||this.lookaheadCharCode()===102:C!==12}parseImport(k){return this.match(134)?this.parseImportSourceAndAttributes(k):this.parseImportSpecifiersAndAfter(k,this.parseMaybeImportPhase(k,!1))}parseImportSpecifiersAndAfter(k,C){k.specifiers=[];let O=!this.maybeParseDefaultImportSpecifier(k,C)||this.eat(12),z=O&&this.maybeParseStarImportSpecifier(k);return O&&!z&&this.parseNamedImportSpecifiers(k),this.expectContextual(98),this.parseImportSourceAndAttributes(k)}parseImportSourceAndAttributes(k){return k.specifiers??(k.specifiers=[]),k.source=this.parseImportSource(),this.maybeParseImportAttributes(k),this.checkImportReflection(k),this.checkJSONModuleImport(k),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(k,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(k,C,O){C.local=this.parseIdentifier(),k.specifiers.push(this.finishImportSpecifier(C,O))}finishImportSpecifier(k,C,O=8201){return this.checkLVal(k.local,{type:C},O),this.finishNode(k,C)}parseImportAttributes(){this.expect(5);let k=[],C=new Set;do{if(this.match(8))break;let O=this.startNode(),z=this.state.value;if(C.has(z)&&this.raise(N.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:z}),C.add(z),this.match(134)?O.key=this.parseStringLiteral(z):O.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(N.ModuleAttributeInvalidValue,this.state.startLoc);O.value=this.parseStringLiteral(this.state.value),k.push(this.finishNode(O,"ImportAttribute"))}while(this.eat(12));return this.expect(8),k}parseModuleAttributes(){let k=[],C=new Set;do{let O=this.startNode();if(O.key=this.parseIdentifier(!0),O.key.name!=="type"&&this.raise(N.ModuleAttributeDifferentFromType,O.key),C.has(O.key.name)&&this.raise(N.ModuleAttributesWithDuplicateKeys,O.key,{key:O.key.name}),C.add(O.key.name),this.expect(14),!this.match(134))throw this.raise(N.ModuleAttributeInvalidValue,this.state.startLoc);O.value=this.parseStringLiteral(this.state.value),k.push(this.finishNode(O,"ImportAttribute"))}while(this.eat(12));return k}maybeParseImportAttributes(k){let C;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),C=this.parseImportAttributes()}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.raise(N.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(k,"deprecatedAssertSyntax",!0),this.next(),C=this.parseImportAttributes()):C=[];k.attributes=C}maybeParseDefaultImportSpecifier(k,C){if(C){let O=this.startNodeAtNode(C);return O.local=C,k.specifiers.push(this.finishImportSpecifier(O,"ImportDefaultSpecifier")),!0}else if(ft(this.state.type))return this.parseImportSpecifierLocal(k,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(k){if(this.match(55)){let C=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(k,C,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(k){let C=!0;for(this.expect(5);!this.eat(8);){if(C)C=!1;else{if(this.eat(14))throw this.raise(N.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let O=this.startNode(),z=this.match(134),ue=this.isContextual(130);O.imported=this.parseModuleExportName();let Ne=this.parseImportSpecifier(O,z,k.importKind==="type"||k.importKind==="typeof",ue,void 0);k.specifiers.push(Ne)}}parseImportSpecifier(k,C,O,z,ue){if(this.eatContextual(93))k.local=this.parseIdentifier();else{let{imported:Ne}=k;if(C)throw this.raise(N.ImportBindingIsString,k,{importName:Ne.value});this.checkReservedWord(Ne.name,k.loc.start,!0,!0),k.local||(k.local=this.cloneIdentifier(Ne))}return this.finishImportSpecifier(k,"ImportSpecifier",ue)}isThisParam(k){return k.type==="Identifier"&&k.name==="this"}},Yl=class extends Ol{constructor(k,C,O){let z=W(k);super(z,C),this.options=z,this.initializeScopes(),this.plugins=O,this.filename=z.sourceFilename,this.startIndex=z.startIndex;let ue=0;z.allowAwaitOutsideFunction&&(ue|=1),z.allowReturnOutsideFunction&&(ue|=2),z.allowImportExportEverywhere&&(ue|=8),z.allowSuperOutsideMethod&&(ue|=16),z.allowUndeclaredExports&&(ue|=64),z.allowNewTargetOutsideFunction&&(ue|=4),z.allowYieldOutsideFunction&&(ue|=32),z.ranges&&(ue|=128),z.tokens&&(ue|=256),z.createImportExpressions&&(ue|=512),z.createParenthesizedExpressions&&(ue|=1024),z.errorRecovery&&(ue|=2048),z.attachComment&&(ue|=4096),z.annexB&&(ue|=8192),this.optionFlags=ue}getScopeHandler(){return Tt}parse(){this.enterInitialScopes();let k=this.startNode(),C=this.startNode();this.nextToken(),k.errors=null;let O=this.parseTopLevel(k,C);return O.errors=this.state.errors,O.comments.length=this.state.commentsLen,O}};function Du(k,C){if(C?.sourceType==="unambiguous"){C=Object.assign({},C);try{C.sourceType="module";let O=Xf(C,k),z=O.parse();if(O.sawUnambiguousESM)return z;if(O.ambiguousScriptDifferentAst)try{return C.sourceType="script",Xf(C,k).parse()}catch{}else z.program.sourceType="script";return z}catch(O){try{return C.sourceType="script",Xf(C,k).parse()}catch{}throw O}}else return Xf(C,k).parse()}function Nc(k,C){let O=Xf(C,k);return O.options.strictMode&&(O.state.strict=!0),O.getExpression()}function id(k){let C={};for(let O of Object.keys(k))C[O]=di(k[O]);return C}id(ze);function Xf(k,C){let O=Yl,z=new Map;if(k?.plugins){for(let ue of k.plugins){let Ne,$e;typeof ue=="string"?Ne=ue:[Ne,$e]=ue,z.has(Ne)||z.set(Ne,$e||{})}At(z),O=Ng(z)}return new O(k,C,z)}var Lg=new Map;function Ng(k){let C=[];for(let ue of bi)k.has(ue)&&C.push(ue);let O=C.join("|"),z=Lg.get(O);if(!z){z=Yl;for(let ue of C)z=mn[ue](z);Lg.set(O,z)}return z}function Ob(k){return(C,O,z)=>{let ue=!!z?.backwards;if(O===!1)return!1;let{length:Ne}=C,$e=O;for(;$e>=0&&$e<Ne;){let ot=C.charAt($e);if(k instanceof RegExp){if(!k.test(ot))return $e}else if(!k.includes(ot))return $e;ue?$e--:$e++}return $e===-1||$e===Ne?$e:!1}}var Rb=Ob(" 	"),Fb=Ob(/[^\n\r]/u);function ME(k,C){if(C===!1)return!1;if(k.charAt(C)==="/"&&k.charAt(C+1)==="*"){for(let O=C+2;O<k.length;++O)if(k.charAt(O)==="*"&&k.charAt(O+1)==="/")return O+2}return C}var Vj=ME,cP=k=>k===`
`||k==="\r"||k==="\u2028"||k==="\u2029";function GF(k,C,O){let z=!!O?.backwards;if(C===!1)return!1;let ue=k.charAt(C);if(z){if(k.charAt(C-1)==="\r"&&ue===`
`)return C-2;if(cP(ue))return C-1}else{if(ue==="\r"&&k.charAt(C+1)===`
`)return C+2;if(cP(ue))return C+1}return C}var FT=GF;function BT(k,C){return C===!1?!1:k.charAt(C)==="/"&&k.charAt(C+1)==="/"?Fb(k,C):C}var uP=BT;function lS(k,C){let O=null,z=C;for(;z!==O;)O=z,z=Rb(k,z),z=Vj(k,z),z=uP(k,z),z=FT(k,z);return z}var jT=lS;function zT(k){let C=[];for(let O of k)try{return O()}catch(z){C.push(z)}throw Object.assign(new Error("All combinations failed"),{errors:C})}function Hj(k){if(!k.startsWith("#!"))return"";let C=k.indexOf(`
`);return C===-1?k:k.slice(0,C)}var dP=Hj,Ow=(k,C)=>(O,z,...ue)=>O|1&&z==null?void 0:(C.call(z)??z[k]).apply(z,ue),cS=Array.prototype.findLast??function(k){for(let C=this.length-1;C>=0;C--){let O=this[C];if(k(O,C,this))return O}},OE=Ow("findLast",function(){if(Array.isArray(this))return cS}),Wj=OE;function uS(k){return this[k<0?this.length+k:k]}var VT=Ow("at",function(){if(Array.isArray(this)||typeof this=="string")return uS}),KF=VT;function xm(k){let C=k.range?.[0]??k.start,O=(k.declaration?.decorators??k.decorators)?.[0];return O?Math.min(xm(O),C):C}function Pg(k){return k.range?.[1]??k.end}function HT(k){let C=new Set(k);return O=>C.has(O?.type)}var WT=HT,UT=WT(["Block","CommentBlock","MultiLine"]),RE=UT,Oh=WT(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),FE=Oh,Rw=new WeakMap;function YF(k){return Rw.has(k)||Rw.set(k,RE(k)&&k.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(k.value)),Rw.get(k)}var Rh=YF;function dS(k){if(!RE(k))return!1;let C=`*${k.value}*`.split(`
`);return C.length>1&&C.every(O=>O.trimStart()[0]==="*")}var BE=new WeakMap;function jE(k){return BE.has(k)||BE.set(k,dS(k)),BE.get(k)}var zE=jE;function Bb(k){if(k.length<2)return;let C;for(let O=k.length-1;O>=0;O--){let z=k[O];if(C&&Pg(z)===xm(C)&&zE(z)&&zE(C)&&(k.splice(O+1,1),z.value+="*//*"+C.value,z.range=[xm(z),Pg(C)]),!FE(z)&&!RE(z))throw new TypeError(`Unknown comment type: "${z.type}".`);C=z}}var VE=Bb;function hP(k){return k!==null&&typeof k=="object"}var ry=hP,oy=null;function $v(k){if(oy!==null&&typeof oy.property){let C=oy;return oy=$v.prototype=null,C}return oy=$v.prototype=k??Object.create(null),new $v}var fP=10;for(let k=0;k<=fP;k++)$v();function $T(k){return $v(k)}function Fw(k,C="type"){$T(k);function O(z){let ue=z[C],Ne=k[ue];if(!Array.isArray(Ne))throw Object.assign(new Error(`Missing visitor keys for '${ue}'.`),{node:z});return Ne}return O}var Bw=Fw,It=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],QF={AccessorProperty:It[0],AnyTypeAnnotation:It[1],ArgumentPlaceholder:It[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:It[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:It[3],AsExpression:It[4],AssignmentExpression:It[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:It[6],BigIntLiteral:It[1],BigIntLiteralTypeAnnotation:It[1],BigIntTypeAnnotation:It[1],BinaryExpression:It[5],BindExpression:["object","callee"],BlockStatement:It[7],BooleanLiteral:It[1],BooleanLiteralTypeAnnotation:It[1],BooleanTypeAnnotation:It[1],BreakStatement:It[8],CallExpression:It[9],CatchClause:["param","body"],ChainExpression:It[3],ClassAccessorProperty:It[0],ClassBody:It[10],ClassDeclaration:It[11],ClassExpression:It[11],ClassImplements:It[12],ClassMethod:It[13],ClassPrivateMethod:It[13],ClassPrivateProperty:It[14],ClassProperty:It[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:It[15],ConditionalExpression:It[16],ConditionalTypeAnnotation:It[17],ContinueStatement:It[8],DebuggerStatement:It[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:It[18],DeclareEnum:It[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:It[20],DeclareFunction:["id","predicate"],DeclareHook:It[21],DeclareInterface:It[22],DeclareModule:It[19],DeclareModuleExports:It[23],DeclareNamespace:It[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:It[24],DeclareVariable:It[21],Decorator:It[3],Directive:It[18],DirectiveLiteral:It[1],DoExpression:It[10],DoWhileStatement:It[25],EmptyStatement:It[1],EmptyTypeAnnotation:It[1],EnumBigIntBody:It[26],EnumBigIntMember:It[27],EnumBooleanBody:It[26],EnumBooleanMember:It[27],EnumDeclaration:It[19],EnumDefaultedMember:It[21],EnumNumberBody:It[26],EnumNumberMember:It[27],EnumStringBody:It[26],EnumStringMember:It[27],EnumSymbolBody:It[26],ExistsTypeAnnotation:It[1],ExperimentalRestProperty:It[6],ExperimentalSpreadProperty:It[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:It[28],ExportNamedDeclaration:It[20],ExportNamespaceSpecifier:It[28],ExportSpecifier:["local","exported"],ExpressionStatement:It[3],File:["program"],ForInStatement:It[29],ForOfStatement:It[29],ForStatement:["init","test","update","body"],FunctionDeclaration:It[30],FunctionExpression:It[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:It[15],GenericTypeAnnotation:It[12],HookDeclaration:It[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:It[16],ImportAttribute:It[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:It[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:It[33],ImportSpecifier:["imported","local"],IndexedAccessType:It[34],InferredPredicate:It[1],InferTypeAnnotation:It[35],InterfaceDeclaration:It[22],InterfaceExtends:It[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:It[1],IntersectionTypeAnnotation:It[36],JsExpressionRoot:It[37],JsonRoot:It[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:It[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:It[1],JSXExpressionContainer:It[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:It[1],JSXMemberExpression:It[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:It[1],JSXSpreadAttribute:It[6],JSXSpreadChild:It[3],JSXText:It[1],KeyofTypeAnnotation:It[6],LabeledStatement:["label","body"],Literal:It[1],LogicalExpression:It[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:It[21],MatchExpression:It[39],MatchExpressionCase:It[40],MatchIdentifierPattern:It[21],MatchLiteralPattern:It[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:It[6],MatchStatement:It[39],MatchStatementCase:It[40],MatchUnaryPattern:It[6],MatchWildcardPattern:It[1],MemberExpression:It[38],MetaProperty:["meta","property"],MethodDefinition:It[42],MixedTypeAnnotation:It[1],ModuleExpression:It[10],NeverTypeAnnotation:It[1],NewExpression:It[9],NGChainedExpression:It[43],NGEmptyExpression:It[1],NGMicrosyntax:It[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:It[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:It[32],NGPipeExpression:["left","right","arguments"],NGRoot:It[37],NullableTypeAnnotation:It[23],NullLiteral:It[1],NullLiteralTypeAnnotation:It[1],NumberLiteralTypeAnnotation:It[1],NumberTypeAnnotation:It[1],NumericLiteral:It[1],ObjectExpression:["properties"],ObjectMethod:It[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:It[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:It[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:It[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:It[9],OptionalIndexedAccessType:It[34],OptionalMemberExpression:It[38],ParenthesizedExpression:It[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:It[1],PipelineTopicExpression:It[3],Placeholder:It[1],PrivateIdentifier:It[1],PrivateName:It[21],Program:It[7],Property:It[32],PropertyDefinition:It[14],QualifiedTypeIdentifier:It[44],QualifiedTypeofIdentifier:It[44],RegExpLiteral:It[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:It[6],SatisfiesExpression:It[4],SequenceExpression:It[43],SpreadElement:It[6],StaticBlock:It[10],StringLiteral:It[1],StringLiteralTypeAnnotation:It[1],StringTypeAnnotation:It[1],Super:It[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:It[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:It[1],TemplateLiteral:["quasis","expressions"],ThisExpression:It[1],ThisTypeAnnotation:It[1],ThrowStatement:It[6],TopicReference:It[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:It[45],TSAbstractKeyword:It[1],TSAbstractMethodDefinition:It[32],TSAbstractPropertyDefinition:It[45],TSAnyKeyword:It[1],TSArrayType:It[2],TSAsExpression:It[4],TSAsyncKeyword:It[1],TSBigIntKeyword:It[1],TSBooleanKeyword:It[1],TSCallSignatureDeclaration:It[46],TSClassImplements:It[47],TSConditionalType:It[17],TSConstructorType:It[46],TSConstructSignatureDeclaration:It[46],TSDeclareFunction:It[31],TSDeclareKeyword:It[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:It[26],TSEnumDeclaration:It[19],TSEnumMember:["id","initializer"],TSExportAssignment:It[3],TSExportKeyword:It[1],TSExternalModuleReference:It[3],TSFunctionType:It[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:It[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:It[35],TSInstantiationExpression:It[47],TSInterfaceBody:It[10],TSInterfaceDeclaration:It[22],TSInterfaceHeritage:It[47],TSIntersectionType:It[36],TSIntrinsicKeyword:It[1],TSJSDocAllType:It[1],TSJSDocNonNullableType:It[23],TSJSDocNullableType:It[23],TSJSDocUnknownType:It[1],TSLiteralType:It[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:It[10],TSModuleDeclaration:It[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:It[21],TSNeverKeyword:It[1],TSNonNullExpression:It[3],TSNullKeyword:It[1],TSNumberKeyword:It[1],TSObjectKeyword:It[1],TSOptionalType:It[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:It[23],TSPrivateKeyword:It[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:It[1],TSPublicKeyword:It[1],TSQualifiedName:It[5],TSReadonlyKeyword:It[1],TSRestType:It[23],TSSatisfiesExpression:It[4],TSStaticKeyword:It[1],TSStringKeyword:It[1],TSSymbolKeyword:It[1],TSTemplateLiteralType:["quasis","types"],TSThisType:It[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:It[23],TSTypeAssertion:It[4],TSTypeLiteral:It[26],TSTypeOperator:It[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:It[48],TSTypeParameterInstantiation:It[48],TSTypePredicate:It[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:It[1],TSUnionType:It[36],TSUnknownKeyword:It[1],TSVoidKeyword:It[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:It[24],TypeAnnotation:It[23],TypeCastExpression:It[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:It[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:It[48],TypeParameterInstantiation:It[48],TypePredicate:It[49],UnaryExpression:It[6],UndefinedTypeAnnotation:It[1],UnionTypeAnnotation:It[36],UnknownTypeAnnotation:It[1],UpdateExpression:It[6],V8IntrinsicIdentifier:It[1],VariableDeclaration:["declarations"],VariableDeclarator:It[27],Variance:It[1],VoidPattern:It[1],VoidTypeAnnotation:It[1],WhileStatement:It[25],WithStatement:["object","body"],YieldExpression:It[6]},jw=Bw(QF),qT=jw;function zw(k,C){if(!ry(k))return k;if(Array.isArray(k)){for(let z=0;z<k.length;z++)k[z]=zw(k[z],C);return k}if(C.onEnter){let z=C.onEnter(k)??k;if(z!==k)return zw(z,C);k=z}let O=qT(k);for(let z=0;z<O.length;z++)k[O[z]]=zw(k[O[z]],C);return C.onLeave&&(k=C.onLeave(k)||k),k}var ZF=zw;WT(["RegExpLiteral","BigIntLiteral","NumericLiteral","StringLiteral","DirectiveLiteral","Literal","JSXText","TemplateElement","StringLiteralTypeAnnotation","NumberLiteralTypeAnnotation","BigIntLiteralTypeAnnotation"]);function Uj(k,C){let{parser:O,text:z}=C,{comments:ue}=k,Ne=O==="oxc"&&C.oxcAstType==="ts";VE(ue);let $e=k.type==="File"?k.program:k;$e.interpreter&&(ue.unshift($e.interpreter),delete $e.interpreter),Ne&&k.hashbang&&(ue.unshift(k.hashbang),delete k.hashbang),k.type==="Program"&&(k.range=[0,z.length]);let ot;return k=ZF(k,{onEnter(vt){switch(vt.type){case"ParenthesizedExpression":{let{expression:xt}=vt,Hn=xm(vt);if(xt.type==="TypeCastExpression")return xt.range=[Hn,Pg(vt)],xt;let Oi=!1;if(!Ne){if(!ot){ot=[];for(let Ko of ue)Rh(Ko)&&ot.push(Pg(Ko))}let fo=Wj(0,ot,Ko=>Ko<=Hn);Oi=fo&&z.slice(fo,Hn).trim().length===0}return Oi?void 0:(xt.extra={...xt.extra,parenthesized:!0},xt)}case"TemplateLiteral":if(vt.expressions.length!==vt.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(O==="flow"||O==="hermes"||O==="espree"||O==="typescript"||Ne){let xt=xm(vt)+1,Hn=Pg(vt)-(vt.tail?1:2);vt.range=[xt,Hn]}break;case"VariableDeclaration":{let xt=KF(0,vt.declarations,-1);xt?.init&&z[Pg(xt)]!==";"&&(vt.range=[xm(vt),Pg(xt)]);break}case"TSParenthesizedType":return vt.typeAnnotation;case"TopicReference":k.extra={...k.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(vt.types.length===1)return vt.types[0];break;case"ImportExpression":O==="hermes"&&vt.attributes&&!vt.options&&(vt.options=vt.attributes);break}},onLeave(vt){switch(vt.type){case"LogicalExpression":if(pP(vt))return gP(vt);break;case"TSImportType":!vt.source&&vt.argument.type==="TSLiteralType"&&(vt.source=vt.argument.literal,delete vt.argument);break}}}),k}function pP(k){return k.type==="LogicalExpression"&&k.right.type==="LogicalExpression"&&k.operator===k.right.operator}function gP(k){return pP(k)?gP({type:"LogicalExpression",operator:k.operator,left:gP({type:"LogicalExpression",operator:k.operator,left:k.left,right:k.right.left,range:[xm(k.left),Pg(k.right.left)]}),right:k.right.right,range:[xm(k),Pg(k)]}):k}var mP=Uj;function vP(k,C){let O=new SyntaxError(k+" ("+C.loc.start.line+":"+C.loc.start.column+")");return Object.assign(O,C)}var GT=vP,Mg="Unexpected parseExpression() input: ";function HE(k){let{message:C,loc:O,reasonCode:z}=k;if(!O)return k;let{line:ue,column:Ne}=O,$e=k;(z==="MissingPlugin"||z==="MissingOneOfPlugins")&&(C="Unexpected token.",$e=void 0);let ot=` (${ue}:${Ne})`;return C.endsWith(ot)&&(C=C.slice(0,-ot.length)),C.startsWith(Mg)&&(C=C.slice(Mg.length)),GT(C,{loc:{start:{line:ue,column:Ne+1}},cause:$e})}var Fp=HE,hS=String.prototype.replaceAll??function(k,C){return k.global?this.replace(k,C):this.split(k).join(C)},WE=Ow("replaceAll",function(){if(typeof this=="string")return hS}),jb=WE,UE=/\*\/$/,yP=/^\/\*\*?/,Vw=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,XF=/(^|\s+)\/\/([^\n\r]*)/g,$E=/^(\r?\n)+/,fS=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,JF=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Bp=/(\r?\n|^) *\* ?/g,pS=[];function Zd(k){let C=k.match(Vw);return C?C[0].trimStart():""}function e5(k){k=jb(0,k.replace(yP,"").replace(UE,""),Bp,"$1");let C="";for(;C!==k;)C=k,k=jb(0,k,fS,`
$1 $2
`);k=k.replace($E,"").trimEnd();let O=Object.create(null),z=jb(0,k,JF,"").replace($E,"").trimEnd(),ue;for(;ue=JF.exec(k);){let Ne=jb(0,ue[2],XF,"");if(typeof O[ue[1]]=="string"||Array.isArray(O[ue[1]])){let $e=O[ue[1]];O[ue[1]]=[...pS,...Array.isArray($e)?$e:[$e],Ne]}else O[ue[1]]=Ne}return{comments:z,pragmas:O}}var KT=["noformat","noprettier"],qv=["format","prettier"];function qE(k){let C=dP(k);C&&(k=k.slice(C.length+1));let O=Zd(k),{pragmas:z,comments:ue}=e5(O);return{shebang:C,text:k,pragmas:z,comments:ue}}function zb(k){let{pragmas:C}=qE(k);return qv.some(O=>Object.prototype.hasOwnProperty.call(C,O))}function GE(k){let{pragmas:C}=qE(k);return KT.some(O=>Object.prototype.hasOwnProperty.call(C,O))}function sy(k){return k=typeof k=="function"?{parse:k}:k,{astFormat:"estree",hasPragma:zb,hasIgnorePragma:GE,locStart:xm,locEnd:Pg,...k}}var qc=sy,Gv="module",Hw="commonjs";function YT(k){if(typeof k=="string"){if(k=k.toLowerCase(),/\.(?:mjs|mts)$/iu.test(k))return Gv;if(/\.(?:cjs|cts)$/iu.test(k))return Hw}}function KE(k,C){let{type:O="JsExpressionRoot",rootMarker:z,text:ue}=C,{tokens:Ne,comments:$e}=k;return delete k.tokens,delete k.comments,{tokens:Ne,comments:$e,type:O,node:k,range:[0,ue.length],rootMarker:z}}var jp=KE,X=k=>qc(yt(k)),te={sourceType:Gv,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,attachComment:!1,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],["discardBinding",{syntaxType:"void"}]],tokens:!1,ranges:!1},ye="v8intrinsic",Ae=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],Pe=(k,C=te)=>({...C,plugins:[...C.plugins,...k]}),He=/@(?:no)?flow\b/u;function rt(k,C){if(C?.endsWith(".js.flow"))return!0;let O=dP(k);O&&(k=k.slice(O.length));let z=jT(k,0);return z!==!1&&(k=k.slice(0,z)),He.test(k)}function ht(k,C,O){let z=k(C,O),ue=z.errors.find(Ne=>!Ft.has(Ne.reasonCode));if(ue)throw ue;return z}function yt({isExpression:k=!1,optionsCombinations:C}){return(O,z={})=>{let{filepath:ue}=z;if(typeof ue!="string"&&(ue=void 0),(z.parser==="babel"||z.parser==="__babel_estree")&&rt(O,ue))return z.parser="babel-flow",vn.parse(O,z);let Ne=C,$e=z.__babelSourceType??YT(ue);$e&&$e!==Gv&&(Ne=Ne.map(Hn=>({...Hn,sourceType:$e,...$e===Hw?{allowReturnOutsideFunction:void 0,allowNewTargetOutsideFunction:void 0}:void 0})));let ot=/%[A-Z]/u.test(O);O.includes("|>")?Ne=(ot?[...Ae,ye]:Ae).flatMap(Hn=>Ne.map(Oi=>Pe([Hn],Oi))):ot&&(Ne=Ne.map(Hn=>Pe([ye],Hn)));let vt=k?Nc:Du,xt;try{xt=zT(Ne.map(Hn=>()=>ht(vt,O,Hn)))}catch({errors:[Hn]}){throw Fp(Hn)}return k&&(xt=jp(xt,{text:O,rootMarker:z.rootMarker})),mP(xt,{text:O})}}var Ft=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","ImportAttributesUseAssert","DeclarationMissingInitializer"]),Zt=[Pe(["jsx"])],jt=X({optionsCombinations:Zt}),jn=X({optionsCombinations:[Pe(["jsx","typescript"]),Pe(["typescript"])]}),Ei=X({isExpression:!0,optionsCombinations:[Pe(["jsx"])]}),sn=X({isExpression:!0,optionsCombinations:[Pe(["typescript"])]}),vn=X({optionsCombinations:[Pe(["jsx",["flow",{all:!0}],"flowComments"])]}),zn=X({optionsCombinations:Zt.map(k=>Pe(["estree"],k))}),Jn={};s(Jn,{json:()=>eo,"json-stringify":()=>ps,json5:()=>Uo,jsonc:()=>Er});function si(k){return Array.isArray(k)&&k.length>0}var ii=si,mi={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function oi(k){let C=Du(k,mi),{program:O}=C;if(O.body.length===0&&O.directives.length===0&&!O.interpreter)return C}function or(k,C={}){let{allowComments:O=!0,allowEmpty:z=!1}=C,ue;try{ue=Nc(k,mi)}catch(Ne){if(z&&Ne.code==="BABEL_PARSER_SYNTAX_ERROR"&&Ne.reasonCode==="ParseExpressionEmptyInput")try{ue=oi(k)}catch{}if(!ue)throw Fp(Ne)}if(!O&&ii(ue.comments))throw sr(ue.comments[0],"Comment");return ue=jp(ue,{type:"JsonRoot",text:k}),ue.node.type==="File"?delete ue.node:Gi(ue.node),ue}function sr(k,C){let[O,z]=[k.loc.start,k.loc.end].map(({line:ue,column:Ne})=>({line:ue,column:Ne+1}));return GT(`${C} is not allowed in JSON.`,{loc:{start:O,end:z}})}function Gi(k){switch(k.type){case"ArrayExpression":for(let C of k.elements)C!==null&&Gi(C);return;case"ObjectExpression":for(let C of k.properties)Gi(C);return;case"ObjectProperty":if(k.computed)throw sr(k.key,"Computed key");if(k.shorthand)throw sr(k.key,"Shorthand property");k.key.type!=="Identifier"&&Gi(k.key),Gi(k.value);return;case"UnaryExpression":{let{operator:C,argument:O}=k;if(C!=="+"&&C!=="-")throw sr(k,`Operator '${k.operator}'`);if(O.type==="NumericLiteral"||O.type==="Identifier"&&(O.name==="Infinity"||O.name==="NaN"))return;throw sr(O,`Operator '${C}' before '${O.type}'`)}case"Identifier":if(k.name!=="Infinity"&&k.name!=="NaN"&&k.name!=="undefined")throw sr(k,`Identifier '${k.name}'`);return;case"TemplateLiteral":if(ii(k.expressions))throw sr(k.expressions[0],"'TemplateLiteral' with expression");for(let C of k.quasis)Gi(C);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw sr(k,`'${k.type}'`)}}var eo=qc({parse:k=>or(k),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),Uo=qc(k=>or(k)),Er=qc(k=>or(k,{allowEmpty:!0})),ps=qc({parse:k=>or(k,{allowComments:!1}),astFormat:"estree-json"}),vo={...u,...Jn};return l(c)})}}),Asi=Ot({"../node_modules/.pnpm/is-primitive@3.0.1/node_modules/is-primitive/index.js"(e,t){t.exports=function(i){return typeof i=="object"?i===null:typeof i!="function"}}}),cln=Ot({"../node_modules/.pnpm/isobject@3.0.1/node_modules/isobject/index.js"(e,t){t.exports=function(i){return i!=null&&typeof i=="object"&&Array.isArray(i)===!1}}}),Dsi=Ot({"../node_modules/.pnpm/is-plain-object@2.0.4/node_modules/is-plain-object/index.js"(e,t){var n=cln();function i(r){return n(r)===!0&&Object.prototype.toString.call(r)==="[object Object]"}t.exports=function(o){var s,a;return!(i(o)===!1||(s=o.constructor,typeof s!="function")||(a=s.prototype,i(a)===!1)||a.hasOwnProperty("isPrototypeOf")===!1)}}}),Tsi=Ot({"../node_modules/.pnpm/set-value@4.1.0/node_modules/set-value/index.js"(e,t){var{deleteProperty:n}=Reflect,i=Asi(),r=Dsi(),o=g=>typeof g=="object"&&g!==null||typeof g=="function",s=g=>g==="__proto__"||g==="constructor"||g==="prototype",a=g=>{if(!i(g))throw new TypeError("Object keys must be strings or symbols");if(s(g))throw new Error(`Cannot set unsafe key: "${g}"`)},l=g=>Array.isArray(g)?g.flat().map(String).join(","):g,c=(g,m)=>{if(typeof g!="string"||!m)return g;let v=g+";";return m.arrays!==void 0&&(v+=`arrays=${m.arrays};`),m.separator!==void 0&&(v+=`separator=${m.separator};`),m.split!==void 0&&(v+=`split=${m.split};`),m.merge!==void 0&&(v+=`merge=${m.merge};`),m.preservePaths!==void 0&&(v+=`preservePaths=${m.preservePaths};`),v},u=(g,m,v)=>{const y=l(m?c(g,m):g);a(y);const b=p.cache.get(y)||v();return p.cache.set(y,b),b},d=(g,m={})=>{const v=m.separator||".",y=v==="/"?!1:m.preservePaths;if(typeof g=="string"&&y!==!1&&/\//.test(g))return[g];const b=[];let w="";const E=A=>{let D;A.trim()!==""&&Number.isInteger(D=Number(A))?b.push(D):b.push(A)};for(let A=0;A<g.length;A++){const D=g[A];if(D==="\\"){w+=g[++A];continue}if(D===v){E(w),w="";continue}w+=D}return w&&E(w),b},h=(g,m)=>m&&typeof m.split=="function"?m.split(g):typeof g=="symbol"?[g]:Array.isArray(g)?g:u(g,m,()=>d(g,m)),f=(g,m,v,y)=>{if(a(m),v===void 0)n(g,m);else if(y&&y.merge){const b=y.merge==="function"?y.merge:Object.assign;b&&r(g[m])&&r(v)?g[m]=b(g[m],v):g[m]=v}else g[m]=v;return g},p=(g,m,v,y)=>{if(!m||!o(g))return g;const b=h(m,y);let w=g;for(let E=0;E<b.length;E++){const A=b[E],D=b[E+1];if(a(A),D===void 0){f(w,A,v,y);break}if(typeof D=="number"&&!Array.isArray(w[A])){w=w[A]=[];continue}o(w[A])||(w[A]={}),w=w[A]}return g};p.split=h,p.cache=new Map,p.clear=()=>{p.cache=new Map},t.exports=p}}),ksi=Ot({"../node_modules/.pnpm/get-value@3.0.1/node_modules/get-value/index.js"(e,t){var n=cln();t.exports=function(a,l,c){if(n(c)||(c={default:c}),!s(a))return typeof c.default<"u"?c.default:a;typeof l=="number"&&(l=String(l));const u=Array.isArray(l),d=typeof l=="string",h=c.separator||".",f=c.joinChar||(typeof h=="string"?h:".");if(!d&&!u)return a;if(d&&l in a)return o(l,a,c)?a[l]:c.default;let p=u?l:r(l,h,c),g=p.length,m=0;do{let v=p[m];for(typeof v=="number"&&(v=String(v));v&&v.slice(-1)==="\\";)v=i([v.slice(0,-1),p[++m]||""],f,c);if(v in a){if(!o(v,a,c))return c.default;a=a[v]}else{let y=!1,b=m+1;for(;b<g;)if(v=i([v,p[b++]],f,c),y=v in a){if(!o(v,a,c))return c.default;a=a[v],m=b-1;break}if(!y)return c.default}}while(++m<g&&s(a));return m===g?a:c.default};function i(a,l,c){return typeof c.join=="function"?c.join(a):a[0]+l+a[1]}function r(a,l,c){return typeof c.split=="function"?c.split(a):a.split(l)}function o(a,l,c){return typeof c.isValid=="function"?c.isValid(a,l):!0}function s(a){return n(a)||Array.isArray(a)||typeof a=="function"}}}),Isi=Ot({"../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.4/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js"(e){var t=aVe("react");function n(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var i=typeof Object.is=="function"?Object.is:n,r=t.useSyncExternalStore,o=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(c,u,d,h,f){var p=o(null);if(p.current===null){var g={hasValue:!1,value:null};p.current=g}else g=p.current;p=a(function(){function v(A){if(!y){if(y=!0,b=A,A=h(A),f!==void 0&&g.hasValue){var D=g.value;if(f(D,A))return w=D}return w=A}if(D=w,i(b,A))return D;var T=h(A);return f!==void 0&&f(D,T)?(b=A,D):(b=A,w=T)}var y=!1,b,w,E=d===void 0?null:d;return[function(){return v(u())},E===null?void 0:function(){return v(E())}]},[u,d,h,f]);var m=r(c,p[0],p[1]);return s(function(){g.hasValue=!0,g.value=m},[m]),l(m),m}}}),Lsi=Ot({"../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.4/node_modules/use-sync-external-store/with-selector.js"(e,t){t.exports=Isi()}}),uln=e=>{throw TypeError(e)},Nsi=(e,t,n)=>t.has(e)||uln("Cannot "+n),XDe=(e,t,n)=>(Nsi(e,t,"read from private field"),n?n.call(e):t.get(e)),Psi=(e,t,n)=>t.has(e)?uln("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),BEt="popstate";function jEt(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function Msi(e={}){function t(i,r){let o=r.state?.masked,{pathname:s,search:a,hash:l}=o||i.location;return EG("",{pathname:s,search:a,hash:l},r.state&&r.state.usr||null,r.state&&r.state.key||"default",o?{pathname:i.location.pathname,search:i.location.search,hash:i.location.hash}:void 0)}function n(i,r){return typeof r=="string"?r:aE(r)}return Rsi(t,n,null,e)}function ya(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Vd(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Osi(){return Math.random().toString(36).substring(2,10)}function zEt(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function EG(e,t,n=null,i,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?DT(t):t,state:n,key:t&&t.key||i||Osi(),unstable_mask:r}}function aE({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function DT(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substring(i),e=e.substring(0,i)),e&&(t.pathname=e)}return t}function Rsi(e,t,n,i={}){let{window:r=document.defaultView,v5Compat:o=!1}=i,s=r.history,a="POP",l=null,c=u();c==null&&(c=0,s.replaceState({...s.state,idx:c},""));function u(){return(s.state||{idx:null}).idx}function d(){a="POP";let m=u(),v=m==null?null:m-c;c=m,l&&l({action:a,location:g.location,delta:v})}function h(m,v){a="PUSH";let y=jEt(m)?m:EG(g.location,m,v);c=u()+1;let b=zEt(y,c),w=g.createHref(y.unstable_mask||y);try{s.pushState(b,"",w)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;r.location.assign(w)}o&&l&&l({action:a,location:g.location,delta:1})}function f(m,v){a="REPLACE";let y=jEt(m)?m:EG(g.location,m,v);c=u();let b=zEt(y,c),w=g.createHref(y.unstable_mask||y);s.replaceState(b,"",w),o&&l&&l({action:a,location:g.location,delta:0})}function p(m){return dln(m)}let g={get action(){return a},get location(){return e(r,s)},listen(m){if(l)throw new Error("A history only accepts one active listener");return r.addEventListener(BEt,d),l=m,()=>{r.removeEventListener(BEt,d),l=null}},createHref(m){return t(r,m)},createURL:p,encodeLocation(m){let v=p(m);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:f,go(m){return s.go(m)}};return g}function dln(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),ya(n,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:aE(e);return i=i.replace(/ $/,"%20"),!t&&i.startsWith("//")&&(i=n+i),new URL(i,n)}var zW,VEt=class{constructor(e){if(Psi(this,zW,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(XDe(this,zW).has(e))return XDe(this,zW).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){XDe(this,zW).set(e,t)}};zW=new WeakMap;var Fsi=new Set(["lazy","caseSensitive","path","id","index","children"]);function Bsi(e){return Fsi.has(e)}var jsi=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function zsi(e){return jsi.has(e)}function Vsi(e){return e.index===!0}function AG(e,t,n=[],i={},r=!1){return e.map((o,s)=>{let a=[...n,String(s)],l=typeof o.id=="string"?o.id:a.join("-");if(ya(o.index!==!0||!o.children,"Cannot specify children on an index route"),ya(r||!i[l],`Found a route id collision on id "${l}".  Route id's must be globally unique within Data Router usages`),Vsi(o)){let c={...o,id:l};return i[l]=HEt(c,t(c)),c}else{let c={...o,id:l,children:void 0};return i[l]=HEt(c,t(c)),o.children&&(c.children=AG(o.children,t,a,i,r)),c}})}function HEt(e,t){return Object.assign(e,{...t,...typeof t.lazy=="object"&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function NI(e,t,n="/"){return VW(e,t,n,!1)}function VW(e,t,n,i){let r=typeof t=="string"?DT(t):t,o=W0(r.pathname||"/",n);if(o==null)return null;let s=hln(e);Wsi(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let c=tai(o);a=Xsi(s[l],c,i)}return a}function Hsi(e,t){let{route:n,pathname:i,params:r}=e;return{id:n.id,pathname:i,params:r,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function hln(e,t=[],n=[],i="",r=!1){let o=(s,a,l=r,c)=>{let u={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};if(u.relativePath.startsWith("/")){if(!u.relativePath.startsWith(i)&&l)return;ya(u.relativePath.startsWith(i),`Absolute route path "${u.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(i.length)}let d=dC([i,u.relativePath]),h=n.concat(u);s.children&&s.children.length>0&&(ya(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),hln(s.children,t,h,d,l)),!(s.path==null&&!s.index)&&t.push({path:d,score:Qsi(d,s.index),routesMeta:h})};return e.forEach((s,a)=>{if(s.path===""||!s.path?.includes("?"))o(s,a);else for(let l of fln(s.path))o(s,a,!0,l)}),t}function fln(e){let t=e.split("/");if(t.length===0)return[];let[n,...i]=t,r=n.endsWith("?"),o=n.replace(/\?$/,"");if(i.length===0)return r?[o,""]:[o];let s=fln(i.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),r&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function Wsi(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Zsi(t.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}var Usi=/^:[\w-]+$/,$si=3,qsi=2,Gsi=1,Ksi=10,Ysi=-2,WEt=e=>e==="*";function Qsi(e,t){let n=e.split("/"),i=n.length;return n.some(WEt)&&(i+=Ysi),t&&(i+=qsi),n.filter(r=>!WEt(r)).reduce((r,o)=>r+(Usi.test(o)?$si:o===""?Gsi:Ksi),i)}function Zsi(e,t){return e.length===t.length&&e.slice(0,-1).every((i,r)=>i===t[r])?e[e.length-1]-t[t.length-1]:0}function Xsi(e,t,n=!1){let{routesMeta:i}=e,r={},o="/",s=[];for(let a=0;a<i.length;++a){let l=i[a],c=a===i.length-1,u=o==="/"?t:t.slice(o.length)||"/",d=ohe({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),h=l.route;if(!d&&c&&n&&!i[i.length-1].route.index&&(d=ohe({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;Object.assign(r,d.params),s.push({params:r,pathname:dC([o,d.pathname]),pathnameBase:rai(dC([o,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(o=dC([o,d.pathnameBase]))}return s}function Jsi(e,t={}){let n=e;n.endsWith("*")&&n!=="*"&&!n.endsWith("/*")&&(Vd(!1,`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`),n=n.replace(/\*$/,"/*"));const i=n.startsWith("/")?"/":"",r=s=>s==null?"":typeof s=="string"?s:String(s),o=n.split(/\/+/).map((s,a,l)=>{if(a===l.length-1&&s==="*")return r(t["*"]);const u=s.match(/^:([\w-]+)(\??)(.*)/);if(u){const[,d,h,f]=u;let p=t[d];return ya(h==="?"||p!=null,`Missing ":${d}" param`),encodeURIComponent(r(p))+f}return s.replace(/\?$/g,"")}).filter(s=>!!s);return i+o.join("/")}function ohe(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,i]=eai(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let o=r[0],s=o.replace(/(.)\/+$/,"$1"),a=r.slice(1);return{params:i.reduce((c,{paramName:u,isOptional:d},h)=>{if(u==="*"){let p=a[h]||"";s=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}const f=a[h];return d&&!f?c[u]=void 0:c[u]=(f||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:s,pattern:e}}function eai(e,t=!1,n=!0){Vd(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let i=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l,c,u)=>{if(i.push({paramName:a,isOptional:l!=null}),l){let d=u.charAt(c+s.length);return d&&d!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),i]}function tai(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Vd(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function W0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&i!=="/"?null:e.slice(n)||"/"}function nai({basename:e,pathname:t}){return t==="/"?e:dC([e,t])}var pln=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qqe=e=>pln.test(e);function iai(e,t="/"){let{pathname:n,search:i="",hash:r=""}=typeof e=="string"?DT(e):e,o;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?o=UEt(n.substring(1),"/"):o=UEt(n,t)):o=t,{pathname:o,search:oai(i),hash:sai(r)}}function UEt(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function JDe(e,t,n,i){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(i)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function gln(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Zqe(e){let t=gln(e);return t.map((n,i)=>i===t.length-1?n.pathname:n.pathnameBase)}function Lme(e,t,n,i=!1){let r;typeof e=="string"?r=DT(e):(r={...e},ya(!r.pathname||!r.pathname.includes("?"),JDe("?","pathname","search",r)),ya(!r.pathname||!r.pathname.includes("#"),JDe("#","pathname","hash",r)),ya(!r.search||!r.search.includes("#"),JDe("#","search","hash",r)));let o=e===""||r.pathname==="",s=o?"/":r.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!i&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),d-=1;r.pathname=h.join("/")}a=d>=0?t[d]:"/"}let l=iai(r,a),c=s&&s!=="/"&&s.endsWith("/"),u=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}var dC=e=>e.join("/").replace(/\/\/+/g,"/"),rai=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),oai=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,sai=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,aai=(e,t=302)=>{let n=t;typeof n=="number"?n={status:n}:typeof n.status>"u"&&(n.status=302);let i=new Headers(n.headers);return i.set("Location",e),new Response(null,{...n,headers:i})},$Y=class{constructor(e,t,n,i=!1){this.status=e,this.statusText=t||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function DG(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function qY(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var mln=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function vln(e,t){let n=e;if(typeof n!="string"||!pln.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let i=n,r=!1;if(mln)try{let o=new URL(window.location.href),s=n.startsWith("//")?new URL(o.protocol+n):new URL(n),a=W0(s.pathname,t);s.origin===o.origin&&a!=null?n=a+s.search+s.hash:r=!0}catch{Vd(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:r,to:n}}var WI=Symbol("Uninstrumented");function lai(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(r=>r({id:t.id,index:t.index,path:t.path,instrument(o){let s=Object.keys(n);for(let a of s)o[a]&&n[a].push(o[a])}}));let i={};if(typeof t.lazy=="function"&&n.lazy.length>0){let r=C6(n.lazy,t.lazy,()=>{});r&&(i.lazy=r)}if(typeof t.lazy=="object"){let r=t.lazy;["middleware","loader","action"].forEach(o=>{let s=r[o],a=n[`lazy.${o}`];if(typeof s=="function"&&a.length>0){let l=C6(a,s,()=>{});l&&(i.lazy=Object.assign(i.lazy||{},{[o]:l}))}})}return["loader","action"].forEach(r=>{let o=t[r];if(typeof o=="function"&&n[r].length>0){let s=o[WI]??o,a=C6(n[r],s,(...l)=>$Et(l[0]));a&&(r==="loader"&&s.hydrate===!0&&(a.hydrate=!0),a[WI]=s,i[r]=a)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(i.middleware=t.middleware.map(r=>{let o=r[WI]??r,s=C6(n.middleware,o,(...a)=>$Et(a[0]));return s?(s[WI]=o,s):r})),i}function cai(e,t){let n={navigate:[],fetch:[]};if(t.forEach(i=>i({instrument(r){let o=Object.keys(r);for(let s of o)r[s]&&n[s].push(r[s])}})),n.navigate.length>0){let i=e.navigate[WI]??e.navigate,r=C6(n.navigate,i,(...o)=>{let[s,a]=o;return{to:typeof s=="number"||typeof s=="string"?s:s?aE(s):".",...qEt(e,a??{})}});r&&(r[WI]=i,e.navigate=r)}if(n.fetch.length>0){let i=e.fetch[WI]??e.fetch,r=C6(n.fetch,i,(...o)=>{let[s,,a,l]=o;return{href:a??".",fetcherKey:s,...qEt(e,l??{})}});r&&(r[WI]=i,e.fetch=r)}return e}function C6(e,t,n){return e.length===0?null:async(...i)=>{let r=await yln(e,n(...i),()=>t(...i),e.length-1);if(r.type==="error")throw r.value;return r.value}}async function yln(e,t,n,i){let r=e[i],o;if(r){let s,a=async()=>(s?console.error("You cannot call instrumented handlers more than once"):s=yln(e,t,n,i-1),o=await s,ya(o,"Expected a result"),o.type==="error"&&o.value instanceof Error?{status:"error",error:o.value}:{status:"success",error:void 0});try{await r(a,t)}catch(l){console.error("An instrumentation function threw an error:",l)}s||await a(),await s}else try{o={type:"success",value:await n()}}catch(s){o={type:"error",value:s}}return o||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function $Et(e){let{request:t,context:n,params:i,unstable_pattern:r}=e;return{request:uai(t),params:{...i},unstable_pattern:r,context:dai(n)}}function qEt(e,t){return{currentUrl:aE(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function uai(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function dai(e){if(fai(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var hai=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function fai(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===hai}var bln=["POST","PUT","PATCH","DELETE"],pai=new Set(bln),gai=["GET",...bln],mai=new Set(gai),_ln=new Set([301,302,303,307,308]),vai=new Set([307,308]),eTe={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},yai={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},HB={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},bai=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),wln="remix-router-transitions",Cln=Symbol("ResetLoaderData");function _ai(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";ya(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i=e.hydrationRouteProperties||[],r=e.mapRouteProperties||bai,o=r;if(e.unstable_instrumentations){let be=e.unstable_instrumentations;o=Fe=>({...r(Fe),...lai(be.map(Ze=>Ze.route).filter(Boolean),Fe)})}let s={},a=AG(e.routes,o,void 0,s),l,c=e.basename||"/";c.startsWith("/")||(c=`/${c}`);let u=e.dataStrategy||Eai,d={...e.future},h=null,f=new Set,p=null,g=null,m=null,v=e.hydrationData!=null,y=NI(a,e.history.location,c),b=!1,w=null,E,A;if(y==null&&!e.patchRoutesOnNavigation){let be=g_(404,{pathname:e.history.location.pathname}),{matches:Fe,route:Ze}=nie(a);E=!0,A=!E,y=Fe,w={[Ze.id]:be}}else if(y&&!e.hydrationData&&we(y,a,e.history.location.pathname).active&&(y=null),y)if(y.some(be=>be.route.lazy))E=!1,A=!E;else if(!y.some(be=>Xqe(be.route)))E=!0,A=!E;else{let be=e.hydrationData?e.hydrationData.loaderData:null,Fe=e.hydrationData?e.hydrationData.errors:null,Ze=y;if(Fe){let Ve=y.findIndex(dt=>Fe[dt.route.id]!==void 0);Ze=Ze.slice(0,Ve+1)}A=!1,E=Ze.every(Ve=>{let dt=Sln(Ve.route,be,Fe);return A=A||dt.renderFallback,!dt.shouldLoad})}else{E=!1,A=!E,y=[];let be=we(null,a,e.history.location.pathname);be.active&&be.matches&&(b=!0,y=be.matches)}let D,T={historyAction:e.history.action,location:e.history.location,matches:y,initialized:E,renderFallback:A,navigation:eTe,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||w,fetchers:new Map,blockers:new Map},M="POP",P=null,F=!1,N,j=!1,W=new Map,J=null,ee=!1,Q=!1,H=new Set,q=new Map,le=0,Y=-1,G=new Map,pe=new Set,U=new Map,K=new Map,ie=new Set,ce=new Map,de,oe=null;function me(){if(h=e.history.listen(({action:be,location:Fe,delta:Ze})=>{if(de){de(),de=void 0;return}Vd(ce.size===0||Ze!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ve=ke({currentLocation:T.location,nextLocation:Fe,historyAction:be});if(Ve&&Ze!=null){let dt=new Promise(Vt=>{de=Vt});e.history.go(Ze*-1),Li(Ve,{state:"blocked",location:Fe,proceed(){Li(Ve,{state:"proceeding",proceed:void 0,reset:void 0,location:Fe}),dt.then(()=>e.history.go(Ze))},reset(){let Vt=new Map(T.blockers);Vt.set(Ve,HB),De({blockers:Vt})}}),P?.resolve(),P=null;return}return he(be,Fe)}),n){Wai(t,W);let be=()=>Uai(t,W);t.addEventListener("pagehide",be),J=()=>t.removeEventListener("pagehide",be)}return T.initialized||he("POP",T.location,{initialHydration:!0}),D}function Ce(){h&&h(),J&&J(),f.clear(),N&&N.abort(),T.fetchers.forEach((be,Fe)=>Gt(Fe)),T.blockers.forEach((be,Fe)=>di(Fe))}function Se(be){return f.add(be),()=>f.delete(be)}function De(be,Fe={}){be.matches&&(be.matches=be.matches.map(dt=>{let Vt=s[dt.route.id],Xe=dt.route;return Xe.element!==Vt.element||Xe.errorElement!==Vt.errorElement||Xe.hydrateFallbackElement!==Vt.hydrateFallbackElement?{...dt,route:Vt}:dt})),T={...T,...be};let Ze=[],Ve=[];T.fetchers.forEach((dt,Vt)=>{dt.state==="idle"&&(ie.has(Vt)?Ze.push(Vt):Ve.push(Vt))}),ie.forEach(dt=>{!T.fetchers.has(dt)&&!q.has(dt)&&Ze.push(dt)}),[...f].forEach(dt=>dt(T,{deletedFetchers:Ze,newErrors:be.errors??null,viewTransitionOpts:Fe.viewTransitionOpts,flushSync:Fe.flushSync===!0})),Ze.forEach(dt=>Gt(dt)),Ve.forEach(dt=>T.fetchers.delete(dt))}function Me(be,Fe,{flushSync:Ze}={}){let Ve=T.actionData!=null&&T.navigation.formMethod!=null&&tm(T.navigation.formMethod)&&T.navigation.state==="loading"&&be.state?._isRedirect!==!0,dt;Fe.actionData?Object.keys(Fe.actionData).length>0?dt=Fe.actionData:dt=null:Ve?dt=T.actionData:dt=null;let Vt=Fe.loaderData?nAt(T.loaderData,Fe.loaderData,Fe.matches||[],Fe.errors):T.loaderData,Xe=T.blockers;Xe.size>0&&(Xe=new Map(Xe),Xe.forEach((Tt,en)=>Xe.set(en,HB)));let Ht=ee?!1:ge(be,Fe.matches||T.matches),Qt=F===!0||T.navigation.formMethod!=null&&tm(T.navigation.formMethod)&&be.state?._isRedirect!==!0;l&&(a=l,l=void 0),ee||M==="POP"||(M==="PUSH"?e.history.push(be,be.state):M==="REPLACE"&&e.history.replace(be,be.state));let Dt;if(M==="POP"){let Tt=W.get(T.location.pathname);Tt&&Tt.has(be.pathname)?Dt={currentLocation:T.location,nextLocation:be}:W.has(be.pathname)&&(Dt={currentLocation:be,nextLocation:T.location})}else if(j){let Tt=W.get(T.location.pathname);Tt?Tt.add(be.pathname):(Tt=new Set([be.pathname]),W.set(T.location.pathname,Tt)),Dt={currentLocation:T.location,nextLocation:be}}De({...Fe,actionData:dt,loaderData:Vt,historyAction:M,location:be,initialized:!0,renderFallback:!1,navigation:eTe,revalidation:"idle",restoreScrollPosition:Ht,preventScrollReset:Qt,blockers:Xe},{viewTransitionOpts:Dt,flushSync:Ze===!0}),M="POP",F=!1,j=!1,ee=!1,Q=!1,P?.resolve(),P=null,oe?.resolve(),oe=null}async function qe(be,Fe){if(P?.resolve(),P=null,typeof be=="number"){P||(P=sAt());let Lt=P.promise;return e.history.go(be),Lt}let Ze=p9e(T.location,T.matches,c,be,Fe?.fromRouteId,Fe?.relative),{path:Ve,submission:dt,error:Vt}=GEt(!1,Ze,Fe),Xe;Fe?.unstable_mask&&(Xe={pathname:"",search:"",hash:"",...typeof Fe.unstable_mask=="string"?DT(Fe.unstable_mask):{...T.location.unstable_mask,...Fe.unstable_mask}});let Ht=T.location,Qt=EG(Ht,Ve,Fe&&Fe.state,void 0,Xe);Qt={...Qt,...e.history.encodeLocation(Qt)};let Dt=Fe&&Fe.replace!=null?Fe.replace:void 0,Tt="PUSH";Dt===!0?Tt="REPLACE":Dt===!1||dt!=null&&tm(dt.formMethod)&&dt.formAction===T.location.pathname+T.location.search&&(Tt="REPLACE");let en=Fe&&"preventScrollReset"in Fe?Fe.preventScrollReset===!0:void 0,Bt=(Fe&&Fe.flushSync)===!0,Ue=ke({currentLocation:Ht,nextLocation:Qt,historyAction:Tt});if(Ue){Li(Ue,{state:"blocked",location:Qt,proceed(){Li(Ue,{state:"proceeding",proceed:void 0,reset:void 0,location:Qt}),qe(be,Fe)},reset(){let Lt=new Map(T.blockers);Lt.set(Ue,HB),De({blockers:Lt})}});return}await he(Tt,Qt,{submission:dt,pendingError:Vt,preventScrollReset:en,replace:Fe&&Fe.replace,enableViewTransition:Fe&&Fe.viewTransition,flushSync:Bt,callSiteDefaultShouldRevalidate:Fe&&Fe.unstable_defaultShouldRevalidate})}function $(){oe||(oe=sAt()),pt(),De({revalidation:"loading"});let be=oe.promise;return T.navigation.state==="submitting"?be:T.navigation.state==="idle"?(he(T.historyAction,T.location,{startUninterruptedRevalidation:!0}),be):(he(M||T.historyAction,T.navigation.location,{overrideNavigation:T.navigation,enableViewTransition:j===!0}),be)}async function he(be,Fe,Ze){N&&N.abort(),N=null,M=be,ee=(Ze&&Ze.startUninterruptedRevalidation)===!0,re(T.location,T.matches),F=(Ze&&Ze.preventScrollReset)===!0,j=(Ze&&Ze.enableViewTransition)===!0;let Ve=l||a,dt=Ze&&Ze.overrideNavigation,Vt=Ze?.initialHydration&&T.matches&&T.matches.length>0&&!b?T.matches:NI(Ve,Fe,c),Xe=(Ze&&Ze.flushSync)===!0;if(Vt&&T.initialized&&!Q&&Pai(T.location,Fe)&&!(Ze&&Ze.submission&&tm(Ze.submission.formMethod))){Me(Fe,{matches:Vt},{flushSync:Xe});return}let Ht=we(Vt,Ve,Fe.pathname);if(Ht.active&&Ht.matches&&(Vt=Ht.matches),!Vt){let{error:at,notFoundMatches:cn,route:Bn}=Z(Fe.pathname);Me(Fe,{matches:cn,loaderData:{},errors:{[Bn.id]:at}},{flushSync:Xe});return}N=new AbortController;let Qt=WB(e.history,Fe,N.signal,Ze&&Ze.submission),Dt=e.getContext?await e.getContext():new VEt,Tt;if(Ze&&Ze.pendingError)Tt=[PI(Vt).route.id,{type:"error",error:Ze.pendingError}];else if(Ze&&Ze.submission&&tm(Ze.submission.formMethod)){let at=await Ie(Qt,Fe,Ze.submission,Vt,Dt,Ht.active,Ze&&Ze.initialHydration===!0,{replace:Ze.replace,flushSync:Xe});if(at.shortCircuited)return;if(at.pendingActionResult){let[cn,Bn]=at.pendingActionResult;if(ky(Bn)&&DG(Bn.error)&&Bn.error.status===404){N=null,Me(Fe,{matches:at.matches,loaderData:{},errors:{[cn]:Bn.error}});return}}Vt=at.matches||Vt,Tt=at.pendingActionResult,dt=tTe(Fe,Ze.submission),Xe=!1,Ht.active=!1,Qt=WB(e.history,Qt.url,Qt.signal)}let{shortCircuited:en,matches:Bt,loaderData:Ue,errors:Lt}=await Be(Qt,Fe,Vt,Dt,Ht.active,dt,Ze&&Ze.submission,Ze&&Ze.fetcherSubmission,Ze&&Ze.replace,Ze&&Ze.initialHydration===!0,Xe,Tt,Ze&&Ze.callSiteDefaultShouldRevalidate);en||(N=null,Me(Fe,{matches:Bt||Vt,...iAt(Tt),loaderData:Ue,errors:Lt}))}async function Ie(be,Fe,Ze,Ve,dt,Vt,Xe,Ht={}){pt();let Qt=Vai(Fe,Ze);if(De({navigation:Qt},{flushSync:Ht.flushSync===!0}),Vt){let en=await ve(Ve,Fe.pathname,be.signal);if(en.type==="aborted")return{shortCircuited:!0};if(en.type==="error"){if(en.partialMatches.length===0){let{matches:Ue,route:Lt}=nie(a);return{matches:Ue,pendingActionResult:[Lt.id,{type:"error",error:en.error}]}}let Bt=PI(en.partialMatches).route.id;return{matches:en.partialMatches,pendingActionResult:[Bt,{type:"error",error:en.error}]}}else if(en.matches)Ve=en.matches;else{let{notFoundMatches:Bt,error:Ue,route:Lt}=Z(Fe.pathname);return{matches:Bt,pendingActionResult:[Lt.id,{type:"error",error:Ue}]}}}let Dt,Tt=tce(Ve,Fe);if(!Tt.route.action&&!Tt.route.lazy)Dt={type:"error",error:g_(405,{method:be.method,pathname:Fe.pathname,routeId:Tt.route.id})};else{let en=g8(o,s,be,Ve,Tt,Xe?[]:i,dt),Bt=await ut(be,en,dt,null);if(Dt=Bt[Tt.route.id],!Dt){for(let Ue of Ve)if(Bt[Ue.route.id]){Dt=Bt[Ue.route.id];break}}if(be.signal.aborted)return{shortCircuited:!0}}if($O(Dt)){let en;return Ht&&Ht.replace!=null?en=Ht.replace:en=JEt(Dt.response.headers.get("Location"),new URL(be.url),c,e.history)===T.location.pathname+T.location.search,await et(be,Dt,!0,{submission:Ze,replace:en}),{shortCircuited:!0}}if(ky(Dt)){let en=PI(Ve,Tt.route.id);return(Ht&&Ht.replace)!==!0&&(M="PUSH"),{matches:Ve,pendingActionResult:[en.route.id,Dt,Tt.route.id]}}return{matches:Ve,pendingActionResult:[Tt.route.id,Dt]}}async function Be(be,Fe,Ze,Ve,dt,Vt,Xe,Ht,Qt,Dt,Tt,en,Bt){let Ue=Vt||tTe(Fe,Xe),Lt=Xe||Ht||oAt(Ue),at=!ee&&!Dt;if(dt){if(at){let dr=ze(en);De({navigation:Ue,...dr!==void 0?{actionData:dr}:{}},{flushSync:Tt})}let Ai=await ve(Ze,Fe.pathname,be.signal);if(Ai.type==="aborted")return{shortCircuited:!0};if(Ai.type==="error"){if(Ai.partialMatches.length===0){let{matches:es,route:ds}=nie(a);return{matches:es,loaderData:{},errors:{[ds.id]:Ai.error}}}let dr=PI(Ai.partialMatches).route.id;return{matches:Ai.partialMatches,loaderData:{},errors:{[dr]:Ai.error}}}else if(Ai.matches)Ze=Ai.matches;else{let{error:dr,notFoundMatches:es,route:ds}=Z(Fe.pathname);return{matches:es,loaderData:{},errors:{[ds.id]:dr}}}}let cn=l||a,{dsMatches:Bn,revalidatingFetchers:Tn}=KEt(be,Ve,o,s,e.history,T,Ze,Lt,Fe,Dt?[]:i,Dt===!0,Q,H,ie,U,pe,cn,c,e.patchRoutesOnNavigation!=null,en,Bt);if(Y=++le,!e.dataStrategy&&!Bn.some(Ai=>Ai.shouldLoad)&&!Bn.some(Ai=>Ai.route.middleware&&Ai.route.middleware.length>0)&&Tn.length===0){let Ai=wn();return Me(Fe,{matches:Ze,loaderData:{},errors:en&&ky(en[1])?{[en[0]]:en[1].error}:null,...iAt(en),...Ai?{fetchers:new Map(T.fetchers)}:{}},{flushSync:Tt}),{shortCircuited:!0}}if(at){let Ai={};if(!dt){Ai.navigation=Ue;let dr=ze(en);dr!==void 0&&(Ai.actionData=dr)}Tn.length>0&&(Ai.fetchers=Ye(Tn)),De(Ai,{flushSync:Tt})}Tn.forEach(Ai=>{ln(Ai.key),Ai.controller&&q.set(Ai.key,Ai.controller)});let xi=()=>Tn.forEach(Ai=>ln(Ai.key));N&&N.signal.addEventListener("abort",xi);let{loaderResults:Zi,fetcherResults:dn}=await wt(Bn,Tn,be,Ve);if(be.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener("abort",xi),Tn.forEach(Ai=>q.delete(Ai.key));let fi=iie(Zi);if(fi)return await et(be,fi.result,!0,{replace:Qt}),{shortCircuited:!0};if(fi=iie(dn),fi)return pe.add(fi.key),await et(be,fi.result,!0,{replace:Qt}),{shortCircuited:!0};let{loaderData:Fr,errors:Wo}=tAt(T,Ze,Zi,en,Tn,dn);Dt&&T.errors&&(Wo={...T.errors,...Wo});let Mo=wn(),Us=Mn(Y),nl=Mo||Us||Tn.length>0;return{matches:Ze,loaderData:Fr,errors:Wo,...nl?{fetchers:new Map(T.fetchers)}:{}}}function ze(be){if(be&&!ky(be[1]))return{[be[0]]:be[1].data};if(T.actionData)return Object.keys(T.actionData).length===0?null:T.actionData}function Ye(be){return be.forEach(Fe=>{let Ze=T.fetchers.get(Fe.key),Ve=P3(void 0,Ze?Ze.data:void 0);T.fetchers.set(Fe.key,Ve)}),new Map(T.fetchers)}async function it(be,Fe,Ze,Ve){ln(be);let dt=(Ve&&Ve.flushSync)===!0,Vt=l||a,Xe=p9e(T.location,T.matches,c,Ze,Fe,Ve?.relative),Ht=NI(Vt,Xe,c),Qt=we(Ht,Vt,Xe);if(Qt.active&&Qt.matches&&(Ht=Qt.matches),!Ht){Rt(be,Fe,g_(404,{pathname:Xe}),{flushSync:dt});return}let{path:Dt,submission:Tt,error:en}=GEt(!0,Xe,Ve);if(en){Rt(be,Fe,en,{flushSync:dt});return}let Bt=e.getContext?await e.getContext():new VEt,Ue=(Ve&&Ve.preventScrollReset)===!0;if(Tt&&tm(Tt.formMethod)){await ft(be,Fe,Dt,Ht,Bt,Qt.active,dt,Ue,Tt,Ve&&Ve.unstable_defaultShouldRevalidate);return}U.set(be,{routeId:Fe,path:Dt}),await ct(be,Fe,Dt,Ht,Bt,Qt.active,dt,Ue,Tt)}async function ft(be,Fe,Ze,Ve,dt,Vt,Xe,Ht,Qt,Dt){pt(),U.delete(be);let Tt=T.fetchers.get(be);_t(be,Hai(Qt,Tt),{flushSync:Xe});let en=new AbortController,Bt=WB(e.history,Ze,en.signal,Qt);if(Vt){let Jr=await ve(Ve,new URL(Bt.url).pathname,Bt.signal,be);if(Jr.type==="aborted")return;if(Jr.type==="error"){Rt(be,Fe,Jr.error,{flushSync:Xe});return}else if(Jr.matches)Ve=Jr.matches;else{Rt(be,Fe,g_(404,{pathname:Ze}),{flushSync:Xe});return}}let Ue=tce(Ve,Ze);if(!Ue.route.action&&!Ue.route.lazy){let Jr=g_(405,{method:Qt.formMethod,pathname:Ze,routeId:Fe});Rt(be,Fe,Jr,{flushSync:Xe});return}q.set(be,en);let Lt=le,at=g8(o,s,Bt,Ve,Ue,i,dt),cn=await ut(Bt,at,dt,be),Bn=cn[Ue.route.id];if(!Bn){for(let Jr of at)if(cn[Jr.route.id]){Bn=cn[Jr.route.id];break}}if(Bt.signal.aborted){q.get(be)===en&&q.delete(be);return}if(ie.has(be)){if($O(Bn)||ky(Bn)){_t(be,LA(void 0));return}}else{if($O(Bn))if(q.delete(be),Y>Lt){_t(be,LA(void 0));return}else return pe.add(be),_t(be,P3(Qt)),et(Bt,Bn,!1,{fetcherSubmission:Qt,preventScrollReset:Ht});if(ky(Bn)){Rt(be,Fe,Bn.error);return}}let Tn=T.navigation.location||T.location,xi=WB(e.history,Tn,en.signal),Zi=l||a,dn=T.navigation.state!=="idle"?NI(Zi,T.navigation.location,c):T.matches;ya(dn,"Didn't find any matches after fetcher action");let fi=++le;G.set(be,fi);let Fr=P3(Qt,Bn.data);T.fetchers.set(be,Fr);let{dsMatches:Wo,revalidatingFetchers:Mo}=KEt(xi,dt,o,s,e.history,T,dn,Qt,Tn,i,!1,Q,H,ie,U,pe,Zi,c,e.patchRoutesOnNavigation!=null,[Ue.route.id,Bn],Dt);Mo.filter(Jr=>Jr.key!==be).forEach(Jr=>{let Xu=Jr.key,Dc=T.fetchers.get(Xu),Ju=P3(void 0,Dc?Dc.data:void 0);T.fetchers.set(Xu,Ju),ln(Xu),Jr.controller&&q.set(Xu,Jr.controller)}),De({fetchers:new Map(T.fetchers)});let Us=()=>Mo.forEach(Jr=>ln(Jr.key));en.signal.addEventListener("abort",Us);let{loaderResults:nl,fetcherResults:Ai}=await wt(Wo,Mo,xi,dt);if(en.signal.aborted)return;if(en.signal.removeEventListener("abort",Us),G.delete(be),q.delete(be),Mo.forEach(Jr=>q.delete(Jr.key)),T.fetchers.has(be)){let Jr=LA(Bn.data);T.fetchers.set(be,Jr)}let dr=iie(nl);if(dr)return et(xi,dr.result,!1,{preventScrollReset:Ht});if(dr=iie(Ai),dr)return pe.add(dr.key),et(xi,dr.result,!1,{preventScrollReset:Ht});let{loaderData:es,errors:ds}=tAt(T,dn,nl,void 0,Mo,Ai);Mn(fi),T.navigation.state==="loading"&&fi>Y?(ya(M,"Expected pending action"),N&&N.abort(),Me(T.navigation.location,{matches:dn,loaderData:es,errors:ds,fetchers:new Map(T.fetchers)})):(De({errors:ds,loaderData:nAt(T.loaderData,es,dn,ds),fetchers:new Map(T.fetchers)}),Q=!1)}async function ct(be,Fe,Ze,Ve,dt,Vt,Xe,Ht,Qt){let Dt=T.fetchers.get(be);_t(be,P3(Qt,Dt?Dt.data:void 0),{flushSync:Xe});let Tt=new AbortController,en=WB(e.history,Ze,Tt.signal);if(Vt){let Bn=await ve(Ve,new URL(en.url).pathname,en.signal,be);if(Bn.type==="aborted")return;if(Bn.type==="error"){Rt(be,Fe,Bn.error,{flushSync:Xe});return}else if(Bn.matches)Ve=Bn.matches;else{Rt(be,Fe,g_(404,{pathname:Ze}),{flushSync:Xe});return}}let Bt=tce(Ve,Ze);q.set(be,Tt);let Ue=le,Lt=g8(o,s,en,Ve,Bt,i,dt),cn=(await ut(en,Lt,dt,be))[Bt.route.id];if(q.get(be)===Tt&&q.delete(be),!en.signal.aborted){if(ie.has(be)){_t(be,LA(void 0));return}if($O(cn))if(Y>Ue){_t(be,LA(void 0));return}else{pe.add(be),await et(en,cn,!1,{preventScrollReset:Ht});return}if(ky(cn)){Rt(be,Fe,cn.error);return}_t(be,LA(cn.data))}}async function et(be,Fe,Ze,{submission:Ve,fetcherSubmission:dt,preventScrollReset:Vt,replace:Xe}={}){Ze||(P?.resolve(),P=null),Fe.response.headers.has("X-Remix-Revalidate")&&(Q=!0);let Ht=Fe.response.headers.get("Location");ya(Ht,"Expected a Location header on the redirect Response"),Ht=JEt(Ht,new URL(be.url),c,e.history);let Qt=EG(T.location,Ht,{_isRedirect:!0});if(n){let Lt=!1;if(Fe.response.headers.has("X-Remix-Reload-Document"))Lt=!0;else if(Qqe(Ht)){const at=dln(Ht,!0);Lt=at.origin!==t.location.origin||W0(at.pathname,c)==null}if(Lt){Xe?t.location.replace(Ht):t.location.assign(Ht);return}}N=null;let Dt=Xe===!0||Fe.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Tt,formAction:en,formEncType:Bt}=T.navigation;!Ve&&!dt&&Tt&&en&&Bt&&(Ve=oAt(T.navigation));let Ue=Ve||dt;if(vai.has(Fe.response.status)&&Ue&&tm(Ue.formMethod))await he(Dt,Qt,{submission:{...Ue,formAction:Ht},preventScrollReset:Vt||F,enableViewTransition:Ze?j:void 0});else{let Lt=tTe(Qt,Ve);await he(Dt,Qt,{overrideNavigation:Lt,fetcherSubmission:dt,preventScrollReset:Vt||F,enableViewTransition:Ze?j:void 0})}}async function ut(be,Fe,Ze,Ve){let dt,Vt={};try{dt=await Dai(u,be,Fe,Ve,Ze,!1)}catch(Xe){return Fe.filter(Ht=>Ht.shouldLoad).forEach(Ht=>{Vt[Ht.route.id]={type:"error",error:Xe}}),Vt}if(be.signal.aborted)return Vt;if(!tm(be.method))for(let Xe of Fe){if(dt[Xe.route.id]?.type==="error")break;!dt.hasOwnProperty(Xe.route.id)&&!T.loaderData.hasOwnProperty(Xe.route.id)&&(!T.errors||!T.errors.hasOwnProperty(Xe.route.id))&&Xe.shouldCallHandler()&&(dt[Xe.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${Xe.route.id}`)})}for(let[Xe,Ht]of Object.entries(dt))if(Fai(Ht)){let Qt=Ht.result;Vt[Xe]={type:"redirect",response:Lai(Qt,be,Xe,Fe,c)}}else Vt[Xe]=await Iai(Ht);return Vt}async function wt(be,Fe,Ze,Ve){let dt=ut(Ze,be,Ve,null),Vt=Promise.all(Fe.map(async Qt=>{if(Qt.matches&&Qt.match&&Qt.request&&Qt.controller){let Tt=(await ut(Qt.request,Qt.matches,Ve,Qt.key))[Qt.match.route.id];return{[Qt.key]:Tt}}else return Promise.resolve({[Qt.key]:{type:"error",error:g_(404,{pathname:Qt.path})}})})),Xe=await dt,Ht=(await Vt).reduce((Qt,Dt)=>Object.assign(Qt,Dt),{});return{loaderResults:Xe,fetcherResults:Ht}}function pt(){Q=!0,U.forEach((be,Fe)=>{q.has(Fe)&&H.add(Fe),ln(Fe)})}function _t(be,Fe,Ze={}){T.fetchers.set(be,Fe),De({fetchers:new Map(T.fetchers)},{flushSync:(Ze&&Ze.flushSync)===!0})}function Rt(be,Fe,Ze,Ve={}){let dt=PI(T.matches,Fe);Gt(be),De({errors:{[dt.route.id]:Ze},fetchers:new Map(T.fetchers)},{flushSync:(Ve&&Ve.flushSync)===!0})}function Yt(be){return K.set(be,(K.get(be)||0)+1),ie.has(be)&&ie.delete(be),T.fetchers.get(be)||yai}function Ut(be,Fe){ln(be,Fe?.reason),_t(be,LA(null))}function Gt(be){let Fe=T.fetchers.get(be);q.has(be)&&!(Fe&&Fe.state==="loading"&&G.has(be))&&ln(be),U.delete(be),G.delete(be),pe.delete(be),ie.delete(be),H.delete(be),T.fetchers.delete(be)}function Kt(be){let Fe=(K.get(be)||0)-1;Fe<=0?(K.delete(be),ie.add(be)):K.set(be,Fe),De({fetchers:new Map(T.fetchers)})}function ln(be,Fe){let Ze=q.get(be);Ze&&(Ze.abort(Fe),q.delete(be))}function pn(be){for(let Fe of be){let Ze=Yt(Fe),Ve=LA(Ze.data);T.fetchers.set(Fe,Ve)}}function wn(){let be=[],Fe=!1;for(let Ze of pe){let Ve=T.fetchers.get(Ze);ya(Ve,`Expected fetcher: ${Ze}`),Ve.state==="loading"&&(pe.delete(Ze),be.push(Ze),Fe=!0)}return pn(be),Fe}function Mn(be){let Fe=[];for(let[Ze,Ve]of G)if(Ve<be){let dt=T.fetchers.get(Ze);ya(dt,`Expected fetcher: ${Ze}`),dt.state==="loading"&&(ln(Ze),G.delete(Ze),Fe.push(Ze))}return pn(Fe),Fe.length>0}function Yn(be,Fe){let Ze=T.blockers.get(be)||HB;return ce.get(be)!==Fe&&ce.set(be,Fe),Ze}function di(be){T.blockers.delete(be),ce.delete(be)}function Li(be,Fe){let Ze=T.blockers.get(be)||HB;ya(Ze.state==="unblocked"&&Fe.state==="blocked"||Ze.state==="blocked"&&Fe.state==="blocked"||Ze.state==="blocked"&&Fe.state==="proceeding"||Ze.state==="blocked"&&Fe.state==="unblocked"||Ze.state==="proceeding"&&Fe.state==="unblocked",`Invalid blocker state transition: ${Ze.state} -> ${Fe.state}`);let Ve=new Map(T.blockers);Ve.set(be,Fe),De({blockers:Ve})}function ke({currentLocation:be,nextLocation:Fe,historyAction:Ze}){if(ce.size===0)return;ce.size>1&&Vd(!1,"A router only supports one blocker at a time");let Ve=Array.from(ce.entries()),[dt,Vt]=Ve[Ve.length-1],Xe=T.blockers.get(dt);if(!(Xe&&Xe.state==="proceeding")&&Vt({currentLocation:be,nextLocation:Fe,historyAction:Ze}))return dt}function Z(be){let Fe=g_(404,{pathname:be}),Ze=l||a,{matches:Ve,route:dt}=nie(Ze);return{notFoundMatches:Ve,route:dt,error:Fe}}function ne(be,Fe,Ze){if(p=be,m=Fe,g=Ze||null,!v&&T.navigation===eTe){v=!0;let Ve=ge(T.location,T.matches);Ve!=null&&De({restoreScrollPosition:Ve})}return()=>{p=null,m=null,g=null}}function V(be,Fe){return g&&g(be,Fe.map(Ve=>Hsi(Ve,T.loaderData)))||be.key}function re(be,Fe){if(p&&m){let Ze=V(be,Fe);p[Ze]=m()}}function ge(be,Fe){if(p){let Ze=V(be,Fe),Ve=p[Ze];if(typeof Ve=="number")return Ve}return null}function we(be,Fe,Ze){if(e.patchRoutesOnNavigation)if(be){if(Object.keys(be[0].params).length>0)return{active:!0,matches:VW(Fe,Ze,c,!0)}}else return{active:!0,matches:VW(Fe,Ze,c,!0)||[]};return{active:!1,matches:null}}async function ve(be,Fe,Ze,Ve){if(!e.patchRoutesOnNavigation)return{type:"success",matches:be};let dt=be;for(;;){let Vt=l==null,Xe=l||a,Ht=s;try{await e.patchRoutesOnNavigation({signal:Ze,path:Fe,matches:dt,fetcherKey:Ve,patch:(Tt,en)=>{Ze.aborted||YEt(Tt,en,Xe,Ht,o,!1)}})}catch(Tt){return{type:"error",error:Tt,partialMatches:dt}}finally{Vt&&!Ze.aborted&&(a=[...a])}if(Ze.aborted)return{type:"aborted"};let Qt=NI(Xe,Fe,c),Dt=null;if(Qt){if(Object.keys(Qt[0].params).length===0)return{type:"success",matches:Qt};if(Dt=VW(Xe,Fe,c,!0),!(Dt&&dt.length<Dt.length&&_e(dt,Dt.slice(0,dt.length))))return{type:"success",matches:Qt}}if(Dt||(Dt=VW(Xe,Fe,c,!0)),!Dt||_e(dt,Dt))return{type:"success",matches:null};dt=Dt}}function _e(be,Fe){return be.length===Fe.length&&be.every((Ze,Ve)=>Ze.route.id===Fe[Ve].route.id)}function Ee(be){s={},l=AG(be,o,void 0,s)}function Le(be,Fe,Ze=!1){let Ve=l==null;YEt(be,Fe,l||a,s,o,Ze),Ve&&(a=[...a],De({}))}return D={get basename(){return c},get future(){return d},get state(){return T},get routes(){return a},get window(){return t},initialize:me,subscribe:Se,enableScrollRestoration:ne,navigate:qe,fetch:it,revalidate:$,createHref:be=>e.history.createHref(be),encodeLocation:be=>e.history.encodeLocation(be),getFetcher:Yt,resetFetcher:Ut,deleteFetcher:Kt,dispose:Ce,getBlocker:Yn,deleteBlocker:di,patchRoutes:Le,_internalFetchControllers:q,_internalSetRoutes:Ee,_internalSetStateDoNotUseOrYouWillBreakYourApp(be){De(be)}},e.unstable_instrumentations&&(D=cai(D,e.unstable_instrumentations.map(be=>be.router).filter(Boolean))),D}function wai(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function p9e(e,t,n,i,r,o){let s,a;if(r){s=[];for(let c of t)if(s.push(c),c.route.id===r){a=c;break}}else s=t,a=t[t.length-1];let l=Lme(i||".",Zqe(s),W0(e.pathname,n)||e.pathname,o==="path");if(i==null&&(l.search=e.search,l.hash=e.hash),(i==null||i===""||i===".")&&a){let c=eGe(l.search);if(a.route.index&&!c)l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index";else if(!a.route.index&&c){let u=new URLSearchParams(l.search),d=u.getAll("index");u.delete("index"),d.filter(f=>f).forEach(f=>u.append("index",f));let h=u.toString();l.search=h?`?${h}`:""}}return n!=="/"&&(l.pathname=nai({basename:n,pathname:l.pathname})),aE(l)}function GEt(e,t,n){if(!n||!wai(n))return{path:t};if(n.formMethod&&!zai(n.formMethod))return{path:t,error:g_(405,{method:n.formMethod})};let i=()=>({path:t,error:g_(400,{type:"invalid-body"})}),o=(n.formMethod||"get").toUpperCase(),s=kln(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!tm(o))return i();let d=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((h,[f,p])=>`${h}${f}=${p}
`,""):String(n.body);return{path:t,submission:{formMethod:o,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:d}}}else if(n.formEncType==="application/json"){if(!tm(o))return i();try{let d=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:o,formAction:s,formEncType:n.formEncType,formData:void 0,json:d,text:void 0}}}catch{return i()}}}ya(typeof FormData=="function","FormData is not available in this environment");let a,l;if(n.formData)a=m9e(n.formData),l=n.formData;else if(n.body instanceof FormData)a=m9e(n.body),l=n.body;else if(n.body instanceof URLSearchParams)a=n.body,l=eAt(a);else if(n.body==null)a=new URLSearchParams,l=new FormData;else try{a=new URLSearchParams(n.body),l=eAt(a)}catch{return i()}let c={formMethod:o,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(tm(c.formMethod))return{path:t,submission:c};let u=DT(t);return e&&u.search&&eGe(u.search)&&a.append("index",""),u.search=`?${a}`,{path:aE(u),submission:c}}function KEt(e,t,n,i,r,o,s,a,l,c,u,d,h,f,p,g,m,v,y,b,w){let E=b?ky(b[1])?b[1].error:b[1].data:void 0,A=r.createURL(o.location),D=r.createURL(l),T;if(u&&o.errors){let J=Object.keys(o.errors)[0];T=s.findIndex(ee=>ee.route.id===J)}else if(b&&ky(b[1])){let J=b[0];T=s.findIndex(ee=>ee.route.id===J)-1}let M=b?b[1].statusCode:void 0,P=M&&M>=400,F={currentUrl:A,currentParams:o.matches[0]?.params||{},nextUrl:D,nextParams:s[0].params,...a,actionResult:E,actionStatus:M},N=qY(s),j=s.map((J,ee)=>{let{route:Q}=J,H=null;if(T!=null&&ee>T)H=!1;else if(Q.lazy)H=!0;else if(!Xqe(Q))H=!1;else if(u){let{shouldLoad:G}=Sln(Q,o.loaderData,o.errors);H=G}else Cai(o.loaderData,o.matches[ee],J)&&(H=!0);if(H!==null)return g9e(n,i,e,N,J,c,t,H);let q=!1;typeof w=="boolean"?q=w:P?q=!1:(d||A.pathname+A.search===D.pathname+D.search||A.search!==D.search||Sai(o.matches[ee],J))&&(q=!0);let le={...F,defaultShouldRevalidate:q},Y=U$(J,le);return g9e(n,i,e,N,J,c,t,Y,le,w)}),W=[];return p.forEach((J,ee)=>{if(u||!s.some(U=>U.route.id===J.routeId)||f.has(ee))return;let Q=o.fetchers.get(ee),H=Q&&Q.state!=="idle"&&Q.data===void 0,q=NI(m,J.path,v);if(!q){if(y&&H)return;W.push({key:ee,routeId:J.routeId,path:J.path,matches:null,match:null,request:null,controller:null});return}if(g.has(ee))return;let le=tce(q,J.path),Y=new AbortController,G=WB(r,J.path,Y.signal),pe=null;if(h.has(ee))h.delete(ee),pe=g8(n,i,G,q,le,c,t);else if(H)d&&(pe=g8(n,i,G,q,le,c,t));else{let U;typeof w=="boolean"?U=w:P?U=!1:U=d;let K={...F,defaultShouldRevalidate:U};U$(le,K)&&(pe=g8(n,i,G,q,le,c,t,K))}pe&&W.push({key:ee,routeId:J.routeId,path:J.path,matches:pe,match:le,request:G,controller:Y})}),{dsMatches:j,revalidatingFetchers:W}}function Xqe(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function Sln(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Xqe(e))return{shouldLoad:!1,renderFallback:!1};let i=t!=null&&e.id in t,r=n!=null&&n[e.id]!==void 0;if(!i&&r)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader=="function"&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!i};let o=!i&&!r;return{shouldLoad:o,renderFallback:o}}function Cai(e,t,n){let i=!t||n.route.id!==t.route.id,r=!e.hasOwnProperty(n.route.id);return i||r}function Sai(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function U$(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function YEt(e,t,n,i,r,o){let s;if(e){let c=i[e];ya(c,`No route found to patch children into: routeId = ${e}`),c.children||(c.children=[]),s=c.children}else s=n;let a=[],l=[];if(t.forEach(c=>{let u=s.find(d=>xln(c,d));u?l.push({existingRoute:u,newRoute:c}):a.push(c)}),a.length>0){let c=AG(a,r,[e||"_","patch",String(s?.length||"0")],i);s.push(...c)}if(o&&l.length>0)for(let c=0;c<l.length;c++){let{existingRoute:u,newRoute:d}=l[c],h=u,[f]=AG([d],r,[],{},!0);Object.assign(h,{element:f.element?f.element:h.element,errorElement:f.errorElement?f.errorElement:h.errorElement,hydrateFallbackElement:f.hydrateFallbackElement?f.hydrateFallbackElement:h.hydrateFallbackElement})}}function xln(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((n,i)=>t.children?.some(r=>xln(n,r)))??!1:!1}var QEt=new WeakMap,Eln=({key:e,route:t,manifest:n,mapRouteProperties:i})=>{let r=n[t.id];if(ya(r,"No route found in manifest"),!r.lazy||typeof r.lazy!="object")return;let o=r.lazy[e];if(!o)return;let s=QEt.get(r);s||(s={},QEt.set(r,s));let a=s[e];if(a)return a;let l=(async()=>{let c=Bsi(e),d=r[e]!==void 0&&e!=="hasErrorBoundary";if(c)Vd(!c,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),s[e]=Promise.resolve();else if(d)Vd(!1,`Route "${r.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let h=await o();h!=null&&(Object.assign(r,{[e]:h}),Object.assign(r,i(r)))}typeof r.lazy=="object"&&(r.lazy[e]=void 0,Object.values(r.lazy).every(h=>h===void 0)&&(r.lazy=void 0))})();return s[e]=l,l},ZEt=new WeakMap;function xai(e,t,n,i,r){let o=n[e.id];if(ya(o,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let u=ZEt.get(o);if(u)return{lazyRoutePromise:u,lazyHandlerPromise:u};let d=(async()=>{ya(typeof e.lazy=="function","No lazy route function found");let h=await e.lazy(),f={};for(let p in h){let g=h[p];if(g===void 0)continue;let m=zsi(p),y=o[p]!==void 0&&p!=="hasErrorBoundary";m?Vd(!m,"Route property "+p+" is not a supported property to be returned from a lazy route function. This property will be ignored."):y?Vd(!y,`Route "${o.id}" has a static property "${p}" defined but its lazy function is also returning a value for this property. The lazy route property "${p}" will be ignored.`):f[p]=g}Object.assign(o,f),Object.assign(o,{...i(o),lazy:void 0})})();return ZEt.set(o,d),d.catch(()=>{}),{lazyRoutePromise:d,lazyHandlerPromise:d}}let s=Object.keys(e.lazy),a=[],l;for(let u of s){if(r&&r.includes(u))continue;let d=Eln({key:u,route:e,manifest:n,mapRouteProperties:i});d&&(a.push(d),u===t&&(l=d))}let c=a.length>0?Promise.all(a).then(()=>{}):void 0;return c?.catch(()=>{}),l?.catch(()=>{}),{lazyRoutePromise:c,lazyHandlerPromise:l}}async function XEt(e){let t=e.matches.filter(r=>r.shouldLoad),n={};return(await Promise.all(t.map(r=>r.resolve()))).forEach((r,o)=>{n[t[o].route.id]=r}),n}async function Eai(e){return e.matches.some(t=>t.route.middleware)?Aln(e,()=>XEt(e)):XEt(e)}function Aln(e,t){return Aai(e,t,i=>{if(jai(i))throw i;return i},Oai,n);function n(i,r,o){if(o)return Promise.resolve(Object.assign(o.value,{[r]:{type:"error",result:i}}));{let{matches:s}=e,a=Math.min(Math.max(s.findIndex(c=>c.route.id===r),0),Math.max(s.findIndex(c=>c.shouldCallHandler()),0)),l=PI(s,s[a].route.id).route.id;return Promise.resolve({[l]:{type:"error",result:i}})}}}async function Aai(e,t,n,i,r){let{matches:o,request:s,params:a,context:l,unstable_pattern:c}=e,u=o.flatMap(h=>h.route.middleware?h.route.middleware.map(f=>[h.route.id,f]):[]);return await Dln({request:s,params:a,context:l,unstable_pattern:c},u,t,n,i,r)}async function Dln(e,t,n,i,r,o,s=0){let{request:a}=e;if(a.signal.aborted)throw a.signal.reason??new Error(`Request aborted: ${a.method} ${a.url}`);let l=t[s];if(!l)return await n();let[c,u]=l,d,h=async()=>{if(d)throw new Error("You may only call `next()` once per middleware");try{return d={value:await Dln(e,t,n,i,r,o,s+1)},d.value}catch(f){return d={value:await o(f,c,d)},d.value}};try{let f=await u(e,h),p=f!=null?i(f):void 0;return r(p)?p:d?p??d.value:(d={value:await h()},d.value)}catch(f){return await o(f,c,d)}}function Tln(e,t,n,i,r){let o=Eln({key:"middleware",route:i.route,manifest:t,mapRouteProperties:e}),s=xai(i.route,tm(n.method)?"action":"loader",t,e,r);return{middleware:o,route:s.lazyRoutePromise,handler:s.lazyHandlerPromise}}function g9e(e,t,n,i,r,o,s,a,l=null,c){let u=!1,d=Tln(e,t,n,r,o);return{...r,_lazyPromises:d,shouldLoad:a,shouldRevalidateArgs:l,shouldCallHandler(h){return u=!0,l?typeof c=="boolean"?U$(r,{...l,defaultShouldRevalidate:c}):typeof h=="boolean"?U$(r,{...l,defaultShouldRevalidate:h}):U$(r,l):a},resolve(h){let{lazy:f,loader:p,middleware:g}=r.route,m=u||a||h&&!tm(n.method)&&(f||p),v=g&&g.length>0&&!p&&!f;return m&&(tm(n.method)||!v)?Tai({request:n,unstable_pattern:i,match:r,lazyHandlerPromise:d?.handler,lazyRoutePromise:d?.route,handlerOverride:h,scopedContext:s}):Promise.resolve({type:"data",result:void 0})}}}function g8(e,t,n,i,r,o,s,a=null){return i.map(l=>l.route.id!==r.route.id?{...l,shouldLoad:!1,shouldRevalidateArgs:a,shouldCallHandler:()=>!1,_lazyPromises:Tln(e,t,n,l,o),resolve:()=>Promise.resolve({type:"data",result:void 0})}:g9e(e,t,n,qY(i),l,o,s,!0,a))}async function Dai(e,t,n,i,r,o){n.some(c=>c._lazyPromises?.middleware)&&await Promise.all(n.map(c=>c._lazyPromises?.middleware));let s={request:t,unstable_pattern:qY(n),params:n[0].params,context:r,matches:n},l=await e({...s,fetcherKey:i,runClientMiddleware:c=>{let u=s;return Aln(u,()=>c({...u,fetcherKey:i,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(n.flatMap(c=>[c._lazyPromises?.handler,c._lazyPromises?.route]))}catch{}return l}async function Tai({request:e,unstable_pattern:t,match:n,lazyHandlerPromise:i,lazyRoutePromise:r,handlerOverride:o,scopedContext:s}){let a,l,c=tm(e.method),u=c?"action":"loader",d=h=>{let f,p=new Promise((v,y)=>f=y);l=()=>f(),e.signal.addEventListener("abort",l);let g=v=>typeof h!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${u}" [routeId: ${n.route.id}]`)):h({request:e,unstable_pattern:t,params:n.params,context:s},...v!==void 0?[v]:[]),m=(async()=>{try{return{type:"data",result:await(o?o(y=>g(y)):g())}}catch(v){return{type:"error",result:v}}})();return Promise.race([m,p])};try{let h=c?n.route.action:n.route.loader;if(i||r)if(h){let f,[p]=await Promise.all([d(h).catch(g=>{f=g}),i,r]);if(f!==void 0)throw f;a=p}else{await i;let f=c?n.route.action:n.route.loader;if(f)[a]=await Promise.all([d(f),r]);else if(u==="action"){let p=new URL(e.url),g=p.pathname+p.search;throw g_(405,{method:e.method,pathname:g,routeId:n.route.id})}else return{type:"data",result:void 0}}else if(h)a=await d(h);else{let f=new URL(e.url),p=f.pathname+f.search;throw g_(404,{pathname:p})}}catch(h){return{type:"error",result:h}}finally{l&&e.signal.removeEventListener("abort",l)}return a}async function kai(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function Iai(e){let{result:t,type:n}=e;if(Jqe(t)){let i;try{i=await kai(t)}catch(r){return{type:"error",error:r}}return n==="error"?{type:"error",error:new $Y(t.status,t.statusText,i),statusCode:t.status,headers:t.headers}:{type:"data",data:i,statusCode:t.status,headers:t.headers}}return n==="error"?rAt(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:Mai(t),statusCode:DG(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:DG(t)?t.status:void 0}:rAt(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function Lai(e,t,n,i,r){let o=e.headers.get("Location");if(ya(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!Qqe(o)){let s=i.slice(0,i.findIndex(a=>a.route.id===n)+1);o=p9e(new URL(t.url),s,r,o),e.headers.set("Location",o)}return e}function JEt(e,t,n,i){let r=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(Qqe(e)){let o=e,s=o.startsWith("//")?new URL(t.protocol+o):new URL(o);if(r.includes(s.protocol))throw new Error("Invalid redirect location");let a=W0(s.pathname,n)!=null;if(s.origin===t.origin&&a)return s.pathname+s.search+s.hash}try{let o=i.createURL(e);if(r.includes(o.protocol))throw new Error("Invalid redirect location")}catch{}return e}function WB(e,t,n,i){let r=e.createURL(kln(t)).toString(),o={signal:n};if(i&&tm(i.formMethod)){let{formMethod:s,formEncType:a}=i;o.method=s.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(i.json)):a==="text/plain"?o.body=i.text:a==="application/x-www-form-urlencoded"&&i.formData?o.body=m9e(i.formData):o.body=i.formData}return new Request(r,o)}function m9e(e){let t=new URLSearchParams;for(let[n,i]of e.entries())t.append(n,typeof i=="string"?i:i.name);return t}function eAt(e){let t=new FormData;for(let[n,i]of e.entries())t.append(n,i);return t}function Nai(e,t,n,i=!1,r=!1){let o={},s=null,a,l=!1,c={},u=n&&ky(n[1])?n[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let h=d.route.id,f=t[h];if(ya(!$O(f),"Cannot handle redirect results in processLoaderData"),ky(f)){let p=f.error;if(u!==void 0&&(p=u,u=void 0),s=s||{},r)s[h]=p;else{let g=PI(e,h);s[g.route.id]==null&&(s[g.route.id]=p)}i||(o[h]=Cln),l||(l=!0,a=DG(f.error)?f.error.status:500),f.headers&&(c[h]=f.headers)}else o[h]=f.data,f.statusCode&&f.statusCode!==200&&!l&&(a=f.statusCode),f.headers&&(c[h]=f.headers)}),u!==void 0&&n&&(s={[n[0]]:u},n[2]&&(o[n[2]]=void 0)),{loaderData:o,errors:s,statusCode:a||200,loaderHeaders:c}}function tAt(e,t,n,i,r,o){let{loaderData:s,errors:a}=Nai(t,n,i);return r.filter(l=>!l.matches||l.matches.some(c=>c.shouldLoad)).forEach(l=>{let{key:c,match:u,controller:d}=l;if(d&&d.signal.aborted)return;let h=o[c];if(ya(h,"Did not find corresponding fetcher result"),ky(h)){let f=PI(e.matches,u?.route.id);a&&a[f.route.id]||(a={...a,[f.route.id]:h.error}),e.fetchers.delete(c)}else if($O(h))ya(!1,"Unhandled fetcher revalidation redirect");else{let f=LA(h.data);e.fetchers.set(c,f)}}),{loaderData:s,errors:a}}function nAt(e,t,n,i){let r=Object.entries(t).filter(([,o])=>o!==Cln).reduce((o,[s,a])=>(o[s]=a,o),{});for(let o of n){let s=o.route.id;if(!t.hasOwnProperty(s)&&e.hasOwnProperty(s)&&o.route.loader&&(r[s]=e[s]),i&&i.hasOwnProperty(s))break}return r}function iAt(e){return e?ky(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function PI(e,t){return(t?e.slice(0,e.findIndex(i=>i.route.id===t)+1):[...e]).reverse().find(i=>i.route.hasErrorBoundary===!0)||e[0]}function nie(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function g_(e,{pathname:t,routeId:n,method:i,type:r,message:o}={}){let s="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&t&&n?a=`You made a ${i} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:r==="invalid-body"&&(a="Unable to encode submission body")):e===403?(s="Forbidden",a=`Route "${n}" does not match URL "${t}"`):e===404?(s="Not Found",a=`No route matches URL "${t}"`):e===405&&(s="Method Not Allowed",i&&t&&n?a=`You made a ${i.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:i&&(a=`Invalid request method "${i.toUpperCase()}"`)),new $Y(e||500,s,new Error(a),!0)}function iie(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[i,r]=t[n];if($O(r))return{key:i,result:r}}}function kln(e){let t=typeof e=="string"?DT(e):e;return aE({...t,hash:""})}function Pai(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Mai(e){return new $Y(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function Oai(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,n])=>typeof t=="string"&&Rai(n))}function Rai(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function Fai(e){return Jqe(e.result)&&_ln.has(e.result.status)}function ky(e){return e.type==="error"}function $O(e){return(e&&e.type)==="redirect"}function rAt(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Jqe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Bai(e){return _ln.has(e)}function jai(e){return Jqe(e)&&Bai(e.status)&&e.headers.has("Location")}function zai(e){return mai.has(e.toUpperCase())}function tm(e){return pai.has(e.toUpperCase())}function eGe(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function tce(e,t){let n=typeof t=="string"?DT(t).search:t.search;if(e[e.length-1].route.index&&eGe(n||""))return e[e.length-1];let i=gln(e);return i[i.length-1]}function oAt(e){let{formMethod:t,formAction:n,formEncType:i,text:r,formData:o,json:s}=e;if(!(!t||!n||!i)){if(r!=null)return{formMethod:t,formAction:n,formEncType:i,formData:void 0,json:void 0,text:r};if(o!=null)return{formMethod:t,formAction:n,formEncType:i,formData:o,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:i,formData:void 0,json:s,text:void 0}}}function tTe(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Vai(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function P3(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Hai(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function LA(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Wai(e,t){try{let n=e.sessionStorage.getItem(wln);if(n){let i=JSON.parse(n);for(let[r,o]of Object.entries(i||{}))o&&Array.isArray(o)&&t.set(r,new Set(o||[]))}}catch{}}function Uai(e,t){if(t.size>0){let n={};for(let[i,r]of t)n[i]=[...r];try{e.sessionStorage.setItem(wln,JSON.stringify(n))}catch(i){Vd(!1,`Failed to save applied view transitions in sessionStorage (${i}).`)}}}function sAt(){let e,t,n=new Promise((i,r)=>{e=async o=>{i(o);try{await n}catch{}},t=async o=>{r(o);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var gF=I.createContext(null);gF.displayName="DataRouter";var GY=I.createContext(null);GY.displayName="DataRouterState";var Iln=I.createContext(!1);function $ai(){return I.useContext(Iln)}var tGe=I.createContext({isTransitioning:!1});tGe.displayName="ViewTransition";var Lln=I.createContext(new Map);Lln.displayName="Fetchers";var qai=I.createContext(null);qai.displayName="Await";var xw=I.createContext(null);xw.displayName="Navigation";var Nme=I.createContext(null);Nme.displayName="Location";var ZC=I.createContext({outlet:null,matches:[],isDataRoute:!1});ZC.displayName="Route";var nGe=I.createContext(null);nGe.displayName="RouteError";var Nln="REACT_ROUTER_ERROR",Gai="REDIRECT",Kai="ROUTE_ERROR_RESPONSE";function Yai(e){if(e.startsWith(`${Nln}:${Gai}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Qai(e){if(e.startsWith(`${Nln}:${Kai}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new $Y(t.status,t.statusText,t.data)}catch{}}function Zai(e,{relative:t}={}){ya(KY(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:i}=I.useContext(xw),{hash:r,pathname:o,search:s}=QY(e,{relative:t}),a=o;return n!=="/"&&(a=o==="/"?n:dC([n,o])),i.createHref({pathname:a,search:s,hash:r})}function KY(){return I.useContext(Nme)!=null}function XC(){return ya(KY(),"useLocation() may be used only in the context of a <Router> component."),I.useContext(Nme).location}var Pln="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Mln(e){I.useContext(xw).static||I.useLayoutEffect(e)}function YY(){let{isDataRoute:e}=I.useContext(ZC);return e?fli():Xai()}function Xai(){ya(KY(),"useNavigate() may be used only in the context of a <Router> component.");let e=I.useContext(gF),{basename:t,navigator:n}=I.useContext(xw),{matches:i}=I.useContext(ZC),{pathname:r}=XC(),o=JSON.stringify(Zqe(i)),s=I.useRef(!1);return Mln(()=>{s.current=!0}),I.useCallback((l,c={})=>{if(Vd(s.current,Pln),!s.current)return;if(typeof l=="number"){n.go(l);return}let u=Lme(l,JSON.parse(o),r,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:dC([t,u.pathname])),(c.replace?n.replace:n.push)(u,c.state,c)},[t,n,o,r,e])}var Jai=I.createContext(null);function eli(e){let t=I.useContext(ZC).outlet;return I.useMemo(()=>t&&I.createElement(Jai.Provider,{value:e},t),[t,e])}function tli(){let{matches:e}=I.useContext(ZC),t=e[e.length-1];return t?t.params:{}}function QY(e,{relative:t}={}){let{matches:n}=I.useContext(ZC),{pathname:i}=XC(),r=JSON.stringify(Zqe(n));return I.useMemo(()=>Lme(e,JSON.parse(r),i,t==="path"),[e,r,i,t])}function nli(e,t,n){ya(KY(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=I.useContext(xw),{matches:r}=I.useContext(ZC),o=r[r.length-1],s=o?o.params:{},a=o?o.pathname:"/",l=o?o.pathnameBase:"/",c=o&&o.route;{let m=c&&c.path||"";Bln(a,!c||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${a}" (under <Route path="${m}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let u=XC(),d;d=u;let h=d.pathname||"/",f=h;if(l!=="/"){let m=l.replace(/^\//,"").split("/");f="/"+h.replace(/^\//,"").split("/").slice(m.length).join("/")}let p=NI(e,{pathname:f});return Vd(c||p!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Vd(p==null||p[p.length-1].route.element!==void 0||p[p.length-1].route.Component!==void 0||p[p.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),ali(p&&p.map(m=>Object.assign({},m,{params:Object.assign({},s,m.params),pathname:dC([l,i.encodeLocation?i.encodeLocation(m.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:dC([l,i.encodeLocation?i.encodeLocation(m.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),r,n)}function ili(){let e=uli(),t=DG(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:i},o={padding:"2px 4px",backgroundColor:i},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=I.createElement(I.Fragment,null,I.createElement("p",null,"💿 Hey developer 👋"),I.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",I.createElement("code",{style:o},"ErrorBoundary")," or"," ",I.createElement("code",{style:o},"errorElement")," prop on your route.")),I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},t),n?I.createElement("pre",{style:r},n):null,s)}var rli=I.createElement(ili,null),Oln=class extends I.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=Qai(e.digest);n&&(e=n)}let t=e!==void 0?I.createElement(ZC.Provider,{value:this.props.routeContext},I.createElement(nGe.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?I.createElement(oli,{error:e},t):t}};Oln.contextType=Iln;var nTe=new WeakMap;function oli({children:e,error:t}){let{basename:n}=I.useContext(xw);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let i=Yai(t.digest);if(i){let r=nTe.get(t);if(r)throw r;let o=vln(i.location,n);if(mln&&!nTe.get(t))if(o.isExternal||i.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:i.replace}));throw nTe.set(t,s),s}return I.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function sli({routeContext:e,match:t,children:n}){let i=I.useContext(gF);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),I.createElement(ZC.Provider,{value:e},n)}function ali(e,t=[],n){let i=n?.state;if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(t.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let r=e,o=i?.errors;if(o!=null){let u=r.findIndex(d=>d.route.id&&o?.[d.route.id]!==void 0);ya(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),r=r.slice(0,Math.min(r.length,u+1))}let s=!1,a=-1;if(n&&i){s=i.renderFallback;for(let u=0;u<r.length;u++){let d=r[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(a=u),d.route.id){let{loaderData:h,errors:f}=i,p=d.route.loader&&!h.hasOwnProperty(d.route.id)&&(!f||f[d.route.id]===void 0);if(d.route.lazy||p){n.isStatic&&(s=!0),a>=0?r=r.slice(0,a+1):r=[r[0]];break}}}}let l=n?.onError,c=i&&l?(u,d)=>{l(u,{location:i.location,params:i.matches?.[0]?.params??{},unstable_pattern:qY(i.matches),errorInfo:d})}:void 0;return r.reduceRight((u,d,h)=>{let f,p=!1,g=null,m=null;i&&(f=o&&d.route.id?o[d.route.id]:void 0,g=d.route.errorElement||rli,s&&(a<0&&h===0?(Bln("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,m=null):a===h&&(p=!0,m=d.route.hydrateFallbackElement||null)));let v=t.concat(r.slice(0,h+1)),y=()=>{let b;return f?b=g:p?b=m:d.route.Component?b=I.createElement(d.route.Component,null):d.route.element?b=d.route.element:b=u,I.createElement(sli,{match:d,routeContext:{outlet:u,matches:v,isDataRoute:i!=null},children:b})};return i&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?I.createElement(Oln,{location:i.location,revalidation:i.revalidation,component:g,error:f,children:y(),routeContext:{outlet:null,matches:v,isDataRoute:!0},onError:c}):y()},null)}function iGe(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Rln(e){let t=I.useContext(gF);return ya(t,iGe(e)),t}function Fln(e){let t=I.useContext(GY);return ya(t,iGe(e)),t}function lli(e){let t=I.useContext(ZC);return ya(t,iGe(e)),t}function rGe(e){let t=lli(e),n=t.matches[t.matches.length-1];return ya(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function cli(){return rGe("useRouteId")}function uli(){let e=I.useContext(nGe),t=Fln("useRouteError"),n=rGe("useRouteError");return e!==void 0?e:t.errors?.[n]}var dli=0;function hli(e){let{router:t,basename:n}=Rln("useBlocker"),i=Fln("useBlocker"),[r,o]=I.useState(""),s=I.useCallback(a=>{if(typeof e!="function")return!!e;if(n==="/")return e(a);let{currentLocation:l,nextLocation:c,historyAction:u}=a;return e({currentLocation:{...l,pathname:W0(l.pathname,n)||l.pathname},nextLocation:{...c,pathname:W0(c.pathname,n)||c.pathname},historyAction:u})},[n,e]);return I.useEffect(()=>{let a=String(++dli);return o(a),()=>t.deleteBlocker(a)},[t]),I.useEffect(()=>{r!==""&&t.getBlocker(r,s)},[t,r,s]),r&&i.blockers.has(r)?i.blockers.get(r):HB}function fli(){let{router:e}=Rln("useNavigate"),t=rGe("useNavigate"),n=I.useRef(!1);return Mln(()=>{n.current=!0}),I.useCallback(async(r,o={})=>{Vd(n.current,Pln),n.current&&(typeof r=="number"?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))},[e,t])}var aAt={};function Bln(e,t,n){!t&&!aAt[e]&&(aAt[e]=!0,Vd(!1,n))}var lAt={};function cAt(e,t){!e&&!lAt[t]&&(lAt[t]=!0,console.warn(t))}var pli="useOptimistic",uAt=cT[pli],gli=()=>{};function mli(e){return uAt?uAt(e):[e,gli]}function vli(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Vd(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:I.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Vd(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:I.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Vd(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:I.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var yli=["HydrateFallback","hydrateFallbackElement"],bli=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function _li({router:e,flushSync:t,onError:n,unstable_useTransitions:i}){i=$ai()||i;let[o,s]=I.useState(e.state),[a,l]=mli(o),[c,u]=I.useState(),[d,h]=I.useState({isTransitioning:!1}),[f,p]=I.useState(),[g,m]=I.useState(),[v,y]=I.useState(),b=I.useRef(new Map),w=I.useCallback((T,{deletedFetchers:M,newErrors:P,flushSync:F,viewTransitionOpts:N})=>{P&&n&&Object.values(P).forEach(W=>n(W,{location:T.location,params:T.matches[0]?.params??{},unstable_pattern:qY(T.matches)})),T.fetchers.forEach((W,J)=>{W.data!==void 0&&b.current.set(J,W.data)}),M.forEach(W=>b.current.delete(W)),cAt(F===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable.  Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let j=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(cAt(N==null||j,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!N||!j){t&&F?t(()=>s(T)):i===!1?s(T):I.startTransition(()=>{i===!0&&l(W=>dAt(W,T)),s(T)});return}if(t&&F){t(()=>{g&&(f?.resolve(),g.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:N.currentLocation,nextLocation:N.nextLocation})});let W=e.window.document.startViewTransition(()=>{t(()=>s(T))});W.finished.finally(()=>{t(()=>{p(void 0),m(void 0),u(void 0),h({isTransitioning:!1})})}),t(()=>m(W));return}g?(f?.resolve(),g.skipTransition(),y({state:T,currentLocation:N.currentLocation,nextLocation:N.nextLocation})):(u(T),h({isTransitioning:!0,flushSync:!1,currentLocation:N.currentLocation,nextLocation:N.nextLocation}))},[e.window,t,g,f,i,l,n]);I.useLayoutEffect(()=>e.subscribe(w),[e,w]),I.useEffect(()=>{d.isTransitioning&&!d.flushSync&&p(new bli)},[d]),I.useEffect(()=>{if(f&&c&&e.window){let T=c,M=f.promise,P=e.window.document.startViewTransition(async()=>{i===!1?s(T):I.startTransition(()=>{i===!0&&l(F=>dAt(F,T)),s(T)}),await M});P.finished.finally(()=>{p(void 0),m(void 0),u(void 0),h({isTransitioning:!1})}),m(P)}},[c,f,e.window,i,l]),I.useEffect(()=>{f&&c&&a.location.key===c.location.key&&f.resolve()},[f,g,a.location,c]),I.useEffect(()=>{!d.isTransitioning&&v&&(u(v.state),h({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))},[d.isTransitioning,v]);let E=I.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:T=>e.navigate(T),push:(T,M,P)=>e.navigate(T,{state:M,preventScrollReset:P?.preventScrollReset}),replace:(T,M,P)=>e.navigate(T,{replace:!0,state:M,preventScrollReset:P?.preventScrollReset})}),[e]),A=e.basename||"/",D=I.useMemo(()=>({router:e,navigator:E,static:!1,basename:A,onError:n}),[e,E,A,n]);return I.createElement(I.Fragment,null,I.createElement(gF.Provider,{value:D},I.createElement(GY.Provider,{value:a},I.createElement(Lln.Provider,{value:b.current},I.createElement(tGe.Provider,{value:d},I.createElement(xli,{basename:A,location:a.location,navigationType:a.historyAction,navigator:E,unstable_useTransitions:i},I.createElement(wli,{routes:e.routes,future:e.future,state:a,isStatic:!1,onError:n})))))),null)}function dAt(e,t){return{...e,navigation:t.navigation.state!=="idle"?t.navigation:e.navigation,revalidation:t.revalidation!=="idle"?t.revalidation:e.revalidation,actionData:t.navigation.state!=="submitting"?t.actionData:e.actionData,fetchers:t.fetchers}}var wli=I.memo(Cli);function Cli({routes:e,future:t,state:n,isStatic:i,onError:r}){return nli(e,void 0,{state:n,isStatic:i,onError:r})}function Sli(e){return eli(e.context)}function xli({basename:e="/",children:t=null,location:n,navigationType:i="POP",navigator:r,static:o=!1,unstable_useTransitions:s}){ya(!KY(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),l=I.useMemo(()=>({basename:a,navigator:r,static:o,unstable_useTransitions:s,future:{}}),[a,r,o,s]);typeof n=="string"&&(n=DT(n));let{pathname:c="/",search:u="",hash:d="",state:h=null,key:f="default",unstable_mask:p}=n,g=I.useMemo(()=>{let m=W0(c,a);return m==null?null:{location:{pathname:m,search:u,hash:d,state:h,key:f,unstable_mask:p},navigationType:i}},[a,c,u,d,h,f,i,p]);return Vd(g!=null,`<Router basename="${a}"> is not able to match the URL "${c}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:I.createElement(xw.Provider,{value:l},I.createElement(Nme.Provider,{children:t,value:g}))}var nce="get",ice="application/x-www-form-urlencoded";function Pme(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Eli(e){return Pme(e)&&e.tagName.toLowerCase()==="button"}function Ali(e){return Pme(e)&&e.tagName.toLowerCase()==="form"}function Dli(e){return Pme(e)&&e.tagName.toLowerCase()==="input"}function Tli(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function kli(e,t){return e.button===0&&(!t||t==="_self")&&!Tli(e)}function m8(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let i=e[n];return t.concat(Array.isArray(i)?i.map(r=>[n,r]):[[n,i]])},[]))}function Ili(e,t){let n=m8(e);return t&&t.forEach((i,r)=>{n.has(r)||t.getAll(r).forEach(o=>{n.append(r,o)})}),n}var rie=null;function Lli(){if(rie===null)try{new FormData(document.createElement("form"),0),rie=!1}catch{rie=!0}return rie}var Nli=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function iTe(e){return e!=null&&!Nli.has(e)?(Vd(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ice}"`),null):e}function Pli(e,t){let n,i,r,o,s;if(Ali(e)){let a=e.getAttribute("action");i=a?W0(a,t):null,n=e.getAttribute("method")||nce,r=iTe(e.getAttribute("enctype"))||ice,o=new FormData(e)}else if(Eli(e)||Dli(e)&&(e.type==="submit"||e.type==="image")){let a=e.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||a.getAttribute("action");if(i=l?W0(l,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||nce,r=iTe(e.getAttribute("formenctype"))||iTe(a.getAttribute("enctype"))||ice,o=new FormData(a,e),!Lli()){let{name:c,type:u,value:d}=e;if(u==="image"){let h=c?`${c}.`:"";o.append(`${h}x`,"0"),o.append(`${h}y`,"0")}else c&&o.append(c,d)}}else{if(Pme(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=nce,i=null,r=ice,s=e}return o&&r==="text/plain"&&(s=o,o=void 0),{action:i,method:n.toLowerCase(),encType:r,formData:o,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function oGe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Mli(e,t,n,i){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?r.pathname.endsWith("/")?r.pathname=`${r.pathname}_.${i}`:r.pathname=`${r.pathname}.${i}`:r.pathname==="/"?r.pathname=`_root.${i}`:t&&W0(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${i}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${i}`,r}async function Oli(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Rli(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Fli(e,t,n){let i=await Promise.all(e.map(async r=>{let o=t.routes[r.route.id];if(o){let s=await Oli(o,n);return s.links?s.links():[]}return[]}));return Vli(i.flat(1).filter(Rli).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}function hAt(e,t,n,i,r,o){let s=(l,c)=>n[c]?l.route.id!==n[c].route.id:!0,a=(l,c)=>n[c].pathname!==l.pathname||n[c].route.path?.endsWith("*")&&n[c].params["*"]!==l.params["*"];return o==="assets"?t.filter((l,c)=>s(l,c)||a(l,c)):o==="data"?t.filter((l,c)=>{let u=i.routes[l.route.id];if(!u||!u.hasLoader)return!1;if(s(l,c)||a(l,c))return!0;if(l.route.shouldRevalidate){let d=l.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function Bli(e,t,{includeHydrateFallback:n}={}){return jli(e.map(i=>{let r=t.routes[i.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o}).flat(1))}function jli(e){return[...new Set(e)]}function zli(e){let t={},n=Object.keys(e).sort();for(let i of n)t[i]=e[i];return t}function Vli(e,t){let n=new Set;return new Set(t),e.reduce((i,r)=>{let o=JSON.stringify(zli(r));return n.has(o)||(n.add(o),i.push({key:o,link:r})),i},[])}function jln(){let e=I.useContext(gF);return oGe(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Hli(){let e=I.useContext(GY);return oGe(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var sGe=I.createContext(void 0);sGe.displayName="FrameworkContext";function zln(){let e=I.useContext(sGe);return oGe(e,"You must render this element inside a <HydratedRouter> element"),e}function Wli(e,t){let n=I.useContext(sGe),[i,r]=I.useState(!1),[o,s]=I.useState(!1),{onFocus:a,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:d}=t,h=I.useRef(null);I.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let g=v=>{v.forEach(y=>{s(y.isIntersecting)})},m=new IntersectionObserver(g,{threshold:.5});return h.current&&m.observe(h.current),()=>{m.disconnect()}}},[e]),I.useEffect(()=>{if(i){let g=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(g)}}},[i]);let f=()=>{r(!0)},p=()=>{r(!1),s(!1)};return n?e!=="intent"?[o,h,{}]:[o,h,{onFocus:M3(a,f),onBlur:M3(l,p),onMouseEnter:M3(c,f),onMouseLeave:M3(u,p),onTouchStart:M3(d,f)}]:[!1,h,{}]}function M3(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Uli({page:e,...t}){let{router:n}=jln(),i=I.useMemo(()=>NI(n.routes,e,n.basename),[n.routes,e,n.basename]);return i?I.createElement(qli,{page:e,matches:i,...t}):null}function $li(e){let{manifest:t,routeModules:n}=zln(),[i,r]=I.useState([]);return I.useEffect(()=>{let o=!1;return Fli(e,t,n).then(s=>{o||r(s)}),()=>{o=!0}},[e,t,n]),i}function qli({page:e,matches:t,...n}){let i=XC(),{future:r,manifest:o,routeModules:s}=zln(),{basename:a}=jln(),{loaderData:l,matches:c}=Hli(),u=I.useMemo(()=>hAt(e,t,c,o,i,"data"),[e,t,c,o,i]),d=I.useMemo(()=>hAt(e,t,c,o,i,"assets"),[e,t,c,o,i]),h=I.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let g=new Set,m=!1;if(t.forEach(y=>{let b=o.routes[y.route.id];!b||!b.hasLoader||(!u.some(w=>w.route.id===y.route.id)&&y.route.id in l&&s[y.route.id]?.shouldRevalidate||b.hasClientLoader?m=!0:g.add(y.route.id))}),g.size===0)return[];let v=Mli(e,a,r.unstable_trailingSlashAwareDataRequests,"data");return m&&g.size>0&&v.searchParams.set("_routes",t.filter(y=>g.has(y.route.id)).map(y=>y.route.id).join(",")),[v.pathname+v.search]},[a,r.unstable_trailingSlashAwareDataRequests,l,i,o,u,t,e,s]),f=I.useMemo(()=>Bli(d,o),[d,o]),p=$li(d);return I.createElement(I.Fragment,null,h.map(g=>I.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),f.map(g=>I.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),p.map(({key:g,link:m})=>I.createElement("link",{key:g,nonce:n.nonce,...m,crossOrigin:m.crossOrigin??n.crossOrigin})))}function Gli(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Kli=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Kli&&(window.__reactRouterVersion="7.13.1")}catch{}function Yli(e,t){return _ai({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:Msi({window:t?.window}),hydrationData:Qli(),routes:e,mapRouteProperties:vli,hydrationRouteProperties:yli,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function Qli(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Zli(e.errors)}),e}function Zli(e){if(!e)return null;let t=Object.entries(e),n={};for(let[i,r]of t)if(r&&r.__type==="RouteErrorResponse")n[i]=new $Y(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type==="Error"){if(r.__subType){let o=window[r.__subType];if(typeof o=="function")try{let s=new o(r.message);s.stack="",n[i]=s}catch{}}if(n[i]==null){let o=new Error(r.message);o.stack="",n[i]=o}}else n[i]=r;return n}var Vln=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Jy=I.forwardRef(function({onClick:t,discover:n="render",prefetch:i="none",relative:r,reloadDocument:o,replace:s,unstable_mask:a,state:l,target:c,to:u,preventScrollReset:d,viewTransition:h,unstable_defaultShouldRevalidate:f,...p},g){let{basename:m,navigator:v,unstable_useTransitions:y}=I.useContext(xw),b=typeof u=="string"&&Vln.test(u),w=vln(u,m);u=w.to;let E=Zai(u,{relative:r}),A=XC(),D=null;if(a){let J=Lme(a,[],A.unstable_mask?A.unstable_mask.pathname:"/",!0);m!=="/"&&(J.pathname=J.pathname==="/"?m:dC([m,J.pathname])),D=v.createHref(J)}let[T,M,P]=Wli(i,p),F=tci(u,{replace:s,unstable_mask:a,state:l,target:c,preventScrollReset:d,relative:r,viewTransition:h,unstable_defaultShouldRevalidate:f,unstable_useTransitions:y});function N(J){t&&t(J),J.defaultPrevented||F(J)}let j=!(w.isExternal||o),W=I.createElement("a",{...p,...P,href:(j?D:void 0)||w.absoluteURL||E,onClick:j?N:t,ref:Gli(g,M),target:c,"data-discover":!b&&n==="render"?"true":void 0});return T&&!b?I.createElement(I.Fragment,null,W,I.createElement(Uli,{page:E})):W});Jy.displayName="Link";var Xli=I.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:i="",end:r=!1,style:o,to:s,viewTransition:a,children:l,...c},u){let d=QY(s,{relative:c.relative}),h=XC(),f=I.useContext(GY),{navigator:p,basename:g}=I.useContext(xw),m=f!=null&&aci(d)&&a===!0,v=p.encodeLocation?p.encodeLocation(d).pathname:d.pathname,y=h.pathname,b=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;n||(y=y.toLowerCase(),b=b?b.toLowerCase():null,v=v.toLowerCase()),b&&g&&(b=W0(b,g)||b);const w=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let E=y===v||!r&&y.startsWith(v)&&y.charAt(w)==="/",A=b!=null&&(b===v||!r&&b.startsWith(v)&&b.charAt(v.length)==="/"),D={isActive:E,isPending:A,isTransitioning:m},T=E?t:void 0,M;typeof i=="function"?M=i(D):M=[i,E?"active":null,A?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let P=typeof o=="function"?o(D):o;return I.createElement(Jy,{...c,"aria-current":T,className:M,ref:u,style:P,to:s,viewTransition:a},typeof l=="function"?l(D):l)});Xli.displayName="NavLink";var Jli=I.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:i,replace:r,state:o,method:s=nce,action:a,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:h,...f},p)=>{let{unstable_useTransitions:g}=I.useContext(xw),m=oci(),v=sci(a,{relative:c}),y=s.toLowerCase()==="get"?"get":"post",b=typeof a=="string"&&Vln.test(a),w=E=>{if(l&&l(E),E.defaultPrevented)return;E.preventDefault();let A=E.nativeEvent.submitter,D=A?.getAttribute("formmethod")||s,T=()=>m(A||E.currentTarget,{fetcherKey:t,method:D,navigate:n,replace:r,state:o,relative:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:h});g&&n!==!1?I.startTransition(()=>T()):T()};return I.createElement("form",{ref:p,method:y,action:v,onSubmit:i?l:w,...f,"data-discover":!b&&e==="render"?"true":void 0})});Jli.displayName="Form";function eci(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Hln(e){let t=I.useContext(gF);return ya(t,eci(e)),t}function tci(e,{target:t,replace:n,unstable_mask:i,state:r,preventScrollReset:o,relative:s,viewTransition:a,unstable_defaultShouldRevalidate:l,unstable_useTransitions:c}={}){let u=YY(),d=XC(),h=QY(e,{relative:s});return I.useCallback(f=>{if(kli(f,t)){f.preventDefault();let p=n!==void 0?n:aE(d)===aE(h),g=()=>u(e,{replace:p,unstable_mask:i,state:r,preventScrollReset:o,relative:s,viewTransition:a,unstable_defaultShouldRevalidate:l});c?I.startTransition(()=>g()):g()}},[d,u,h,n,i,r,t,e,o,s,a,l,c])}function nci(e){Vd(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=I.useRef(m8(e)),n=I.useRef(!1),i=XC(),r=I.useMemo(()=>Ili(i.search,n.current?null:t.current),[i.search]),o=YY(),s=I.useCallback((a,l)=>{const c=m8(typeof a=="function"?a(new URLSearchParams(r)):a);n.current=!0,o("?"+c,l)},[o,r]);return[r,s]}var ici=0,rci=()=>`__${String(++ici)}__`;function oci(){let{router:e}=Hln("useSubmit"),{basename:t}=I.useContext(xw),n=cli(),i=e.fetch,r=e.navigate;return I.useCallback(async(o,s={})=>{let{action:a,method:l,encType:c,formData:u,body:d}=Pli(o,t);if(s.navigate===!1){let h=s.fetcherKey||rci();await i(h,n,s.action||a,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:u,body:d,formMethod:s.method||l,formEncType:s.encType||c,flushSync:s.flushSync})}else await r(s.action||a,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:u,body:d,formMethod:s.method||l,formEncType:s.encType||c,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[i,r,t,n])}function sci(e,{relative:t}={}){let{basename:n}=I.useContext(xw),i=I.useContext(ZC);ya(i,"useFormAction must be used inside a RouteContext");let[r]=i.matches.slice(-1),o={...QY(e||".",{relative:t})},s=XC();if(e==null){o.search=s.search;let a=new URLSearchParams(o.search),l=a.getAll("index");if(l.some(u=>u==="")){a.delete("index"),l.filter(d=>d).forEach(d=>a.append("index",d));let u=a.toString();o.search=u?`?${u}`:""}}return(!e||e===".")&&r.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:dC([n,o.pathname])),aE(o)}function aci(e,{relative:t}={}){let n=I.useContext(tGe);ya(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Hln("useViewTransitionState"),r=QY(e,{relative:t});if(!n.isTransitioning)return!1;let o=W0(n.currentLocation.pathname,i)||n.currentLocation.pathname,s=W0(n.nextLocation.pathname,i)||n.nextLocation.pathname;return ohe(r.pathname,s)!=null||ohe(r.pathname,o)!=null}function lci(e){return I.createElement(_li,{flushSync:lf.flushSync,...e})}var ej=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},cci={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},uci=class{#e=cci;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},qO=new uci;function dci(e){setTimeout(e,0)}var p2=typeof window>"u"||"Deno"in globalThis;function Zm(){}function hci(e,t){return typeof e=="function"?e(t):e}function v9e(e){return typeof e=="number"&&e>=0&&e!==1/0}function Wln(e,t){return Math.max(e+(t||0)-Date.now(),0)}function dL(e,t){return typeof e=="function"?e(t):e}function y_(e,t){return typeof e=="function"?e(t):e}function fAt(e,t){const{type:n="all",exact:i,fetchStatus:r,predicate:o,queryKey:s,stale:a}=e;if(s){if(i){if(t.queryHash!==aGe(s,t.options))return!1}else if(!TG(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||r&&r!==t.state.fetchStatus||o&&!o(t))}function pAt(e,t){const{exact:n,status:i,predicate:r,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(g2(t.options.mutationKey)!==g2(o))return!1}else if(!TG(t.options.mutationKey,o))return!1}return!(i&&t.state.status!==i||r&&!r(t))}function aGe(e,t){return(t?.queryKeyHashFn||g2)(e)}function g2(e){return JSON.stringify(e,(t,n)=>y9e(n)?Object.keys(n).sort().reduce((i,r)=>(i[r]=n[r],i),{}):n)}function TG(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>TG(e[n],t[n])):!1}var fci=Object.prototype.hasOwnProperty;function Uln(e,t,n=0){if(e===t)return e;if(n>500)return t;const i=gAt(e)&&gAt(t);if(!i&&!(y9e(e)&&y9e(t)))return t;const o=(i?e:Object.keys(e)).length,s=i?t:Object.keys(t),a=s.length,l=i?new Array(a):{};let c=0;for(let u=0;u<a;u++){const d=i?u:s[u],h=e[d],f=t[d];if(h===f){l[d]=h,(i?u<o:fci.call(e,d))&&c++;continue}if(h===null||f===null||typeof h!="object"||typeof f!="object"){l[d]=f;continue}const p=Uln(h,f,n+1);l[d]=p,p===h&&c++}return o===a&&c===o?e:l}function she(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function gAt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function y9e(e){if(!mAt(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!mAt(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function mAt(e){return Object.prototype.toString.call(e)==="[object Object]"}function pci(e){return new Promise(t=>{qO.setTimeout(t,e)})}function b9e(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Uln(e,t):t}function $ln(e){return e}function gci(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function mci(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var lGe=Symbol();function qln(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===lGe?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function cGe(e,t){return typeof e=="function"?e(...t):!!e}function vci(e,t,n){let i=!1,r;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(r??=t(),i||(i=!0,r.aborted?n():r.addEventListener("abort",n,{once:!0})),r)}),e}var yci=class extends ej{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!p2&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},uGe=new yci;function _9e(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});n.status="pending",n.catch(()=>{});function i(r){Object.assign(n,r),delete n.resolve,delete n.reject}return n.resolve=r=>{i({status:"fulfilled",value:r}),e(r)},n.reject=r=>{i({status:"rejected",reason:r}),t(r)},n}var bci=dci;function _ci(){let e=[],t=0,n=a=>{a()},i=a=>{a()},r=bci;const o=a=>{t?e.push(a):r(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&r(()=>{i(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{i=a},setScheduler:a=>{r=a}}}var Of=_ci(),wci=class extends ej{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!p2&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},ahe=new wci;function Cci(e){return Math.min(1e3*2**e,3e4)}function Gln(e){return(e??"online")==="online"?ahe.isOnline():!0}var w9e=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Kln(e){let t=!1,n=0,i;const r=_9e(),o=()=>r.status!=="pending",s=g=>{if(!o()){const m=new w9e(g);h(m),e.onCancel?.(m)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>uGe.isFocused()&&(e.networkMode==="always"||ahe.isOnline())&&e.canRun(),u=()=>Gln(e.networkMode)&&e.canRun(),d=g=>{o()||(i?.(),r.resolve(g))},h=g=>{o()||(i?.(),r.reject(g))},f=()=>new Promise(g=>{i=m=>{(o()||c())&&g(m)},e.onPause?.()}).then(()=>{i=void 0,o()||e.onContinue?.()}),p=()=>{if(o())return;let g;const m=n===0?e.initialPromise:void 0;try{g=m??e.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(d).catch(v=>{if(o())return;const y=e.retry??(p2?0:3),b=e.retryDelay??Cci,w=typeof b=="function"?b(n,v):b,E=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,v);if(t||!E){h(v);return}n++,e.onFail?.(n,v),pci(w).then(()=>c()?void 0:f()).then(()=>{t?h(v):p()})})};return{promise:r,status:()=>r.status,cancel:s,continue:()=>(i?.(),r),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?p():f().then(p),r)}}var Yln=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),v9e(this.gcTime)&&(this.#e=qO.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(p2?1/0:300*1e3))}clearGcTimeout(){this.#e&&(qO.clearTimeout(this.#e),this.#e=void 0)}},Sci=class extends Yln{#e;#t;#n;#r;#i;#s;#a;constructor(e){super(),this.#a=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=yAt(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=yAt(this.options);t.data!==void 0&&(this.setState(vAt(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=b9e(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(Zm).catch(Zm):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>y_(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===lGe||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>dL(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Wln(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#a?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){const a=this.observers.find(l=>l.options.queryFn);a&&this.setOptions(a.options)}const n=new AbortController,i=a=>{Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},r=()=>{const a=qln(this.options,t),c=(()=>{const u={client:this.#r,queryKey:this.queryKey,meta:this.meta};return i(u),u})();return this.#a=!1,this.options.persister?this.options.persister(a,c,this):a(c)},s=(()=>{const a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:r};return i(a),a})();this.options.behavior?.onFetch(s,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#o({type:"fetch",meta:s.fetchOptions?.meta}),this.#i=Kln({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:a=>{a instanceof w9e&&a.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(a,l)=>{this.#o({type:"failed",failureCount:a,error:l})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const a=await this.#i.start();if(a===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(a),this.#n.config.onSuccess?.(a,this),this.#n.config.onSettled?.(a,this.state.error,this),a}catch(a){if(a instanceof w9e){if(a.silent)return this.#i.promise;if(a.revert){if(this.state.data===void 0)throw a;return this.state.data}}throw this.#o({type:"error",error:a}),this.#n.config.onError?.(a,this),this.#n.config.onSettled?.(this.state.data,a,this),a}finally{this.scheduleGc()}}#o(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Qln(n.data,this.options),fetchMeta:e.meta??null};case"success":const i={...n,...vAt(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?i:void 0,i;case"error":const r=e.error;return{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Of.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function Qln(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Gln(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function vAt(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function yAt(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,i=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var xci=class extends ej{constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.#a=_9e(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#s;#a;#o;#g;#h;#f;#c;#u;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),bAt(this.#t,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return C9e(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return C9e(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#w(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof y_(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#C(),this.#t.setOptions(this.options),t._defaulted&&!she(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&_At(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),i&&(this.#t!==n||y_(this.options.enabled,this.#t)!==y_(t.enabled,this.#t)||dL(this.options.staleTime,this.#t)!==dL(t.staleTime,this.#t))&&this.#m();const r=this.#v();i&&(this.#t!==n||y_(this.options.enabled,this.#t)!==y_(t.enabled,this.#t)||r!==this.#l)&&this.#y(r)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Aci(this,n)&&(this.#r=n,this.#s=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,i)=>(this.trackProp(i),t?.(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,i))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#C();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Zm)),t}#m(){this.#_();const e=dL(this.options.staleTime,this.#t);if(p2||this.#r.isStale||!v9e(e))return;const n=Wln(this.#r.dataUpdatedAt,e)+1;this.#c=qO.setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#w(),this.#l=e,!(p2||y_(this.options.enabled,this.#t)===!1||!v9e(this.#l)||this.#l===0)&&(this.#u=qO.setInterval(()=>{(this.options.refetchIntervalInBackground||uGe.isFocused())&&this.#d()},this.#l))}#b(){this.#m(),this.#y(this.#v())}#_(){this.#c&&(qO.clearTimeout(this.#c),this.#c=void 0)}#w(){this.#u&&(qO.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#t,i=this.options,r=this.#r,o=this.#i,s=this.#s,l=e!==n?e.state:this.#n,{state:c}=e;let u={...c},d=!1,h;if(t._optimisticResults){const T=this.hasListeners(),M=!T&&bAt(e,t),P=T&&_At(e,n,t,i);(M||P)&&(u={...u,...Qln(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:f,errorUpdatedAt:p,status:g}=u;h=u.data;let m=!1;if(t.placeholderData!==void 0&&h===void 0&&g==="pending"){let T;r?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(T=r.data,m=!0):T=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,T!==void 0&&(g="success",h=b9e(r?.data,T,t),d=!0)}if(t.select&&h!==void 0&&!m)if(r&&h===o?.data&&t.select===this.#g)h=this.#h;else try{this.#g=t.select,h=t.select(h),h=b9e(r?.data,h,t),this.#h=h,this.#o=null}catch(T){this.#o=T}this.#o&&(f=this.#o,h=this.#h,p=Date.now(),g="error");const v=u.fetchStatus==="fetching",y=g==="pending",b=g==="error",w=y&&v,E=h!==void 0,D={status:g,fetchStatus:u.fetchStatus,isPending:y,isSuccess:g==="success",isError:b,isInitialLoading:w,isLoading:w,data:h,dataUpdatedAt:u.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!y,isLoadingError:b&&!E,isPaused:u.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:b&&E,isStale:dGe(e,t),refetch:this.refetch,promise:this.#a,isEnabled:y_(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const T=D.data!==void 0,M=D.status==="error"&&!T,P=j=>{M?j.reject(D.error):T&&j.resolve(D.data)},F=()=>{const j=this.#a=D.promise=_9e();P(j)},N=this.#a;switch(N.status){case"pending":e.queryHash===n.queryHash&&P(N);break;case"fulfilled":(M||D.data!==N.value)&&F();break;case"rejected":(!M||D.error!==N.reason)&&F();break}}return D}updateResult(){const e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#s=this.options,this.#i.data!==void 0&&(this.#f=this.#t),she(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,r=typeof i=="function"?i():i;if(r==="all"||!r&&!this.#p.size)return!0;const o=new Set(r??this.#p);return this.options.throwOnError&&o.add("error"),Object.keys(this.#r).some(s=>{const a=s;return this.#r[a]!==e[a]&&o.has(a)})};this.#S({listeners:n()})}#C(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#S(e){Of.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Eci(e,t){return y_(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function bAt(e,t){return Eci(e,t)||e.state.data!==void 0&&C9e(e,t,t.refetchOnMount)}function C9e(e,t,n){if(y_(t.enabled,e)!==!1&&dL(t.staleTime,e)!=="static"){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&dGe(e,t)}return!1}function _At(e,t,n,i){return(e!==t||y_(i.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&dGe(e,n)}function dGe(e,t){return y_(t.enabled,e)!==!1&&e.isStaleByTime(dL(t.staleTime,e))}function Aci(e,t){return!she(e.getCurrentResult(),t)}function wAt(e){return{onFetch:(t,n)=>{const i=t.options,r=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let u=!1;const d=p=>{vci(p,()=>t.signal,()=>u=!0)},h=qln(t.options,t.fetchOptions),f=async(p,g,m)=>{if(u)return Promise.reject();if(g==null&&p.pages.length)return Promise.resolve(p);const y=(()=>{const A={client:t.client,queryKey:t.queryKey,pageParam:g,direction:m?"backward":"forward",meta:t.options.meta};return d(A),A})(),b=await h(y),{maxPages:w}=t.options,E=m?mci:gci;return{pages:E(p.pages,b,w),pageParams:E(p.pageParams,g,w)}};if(r&&o.length){const p=r==="backward",g=p?Dci:CAt,m={pages:o,pageParams:s},v=g(i,m);a=await f(m,v,p)}else{const p=e??o.length;do{const g=l===0?s[0]??i.initialPageParam:CAt(i,a);if(l>0&&g==null)break;a=await f(a,g),l++}while(l<p)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function CAt(e,{pages:t,pageParams:n}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,n[i],n):void 0}function Dci(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Tci=class extends Yln{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Zln(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#i({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Kln({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(o,s)=>{this.#i({type:"failed",failureCount:o,error:s})},onPause:()=>{this.#i({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const i=this.state.status==="pending",r=!this.#r.canStart();try{if(i)t();else{this.#i({type:"pending",variables:e,isPaused:r}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);const s=await this.options.onMutate?.(e,n);s!==this.state.context&&this.#i({type:"pending",context:s,variables:e,isPaused:r})}const o=await this.#r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:"success",data:o}),o}catch(o){try{await this.#n.config.onError?.(o,e,this.state.context,this,n)}catch(s){Promise.reject(s)}try{await this.options.onError?.(o,e,this.state.context,n)}catch(s){Promise.reject(s)}try{await this.#n.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,n)}catch(s){Promise.reject(s)}try{await this.options.onSettled?.(void 0,o,e,this.state.context,n)}catch(s){Promise.reject(s)}throw this.#i({type:"error",error:o}),o}finally{this.#n.runNext(this)}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Of.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function Zln(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xln=class extends ej{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const i=new Tci({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(i),i}add(e){this.#e.add(e);const t=oie(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=oie(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const i=n.indexOf(e);i!==-1&&n.splice(i,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=oie(e);if(typeof t=="string"){const i=this.#t.get(t)?.find(r=>r.state.status==="pending");return!i||i===e}else return!0}runNext(e){const t=oie(e);return typeof t=="string"?this.#t.get(t)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Of.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>pAt(t,n))}findAll(e={}){return this.getAll().filter(t=>pAt(e,t))}notify(e){Of.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Of.batch(()=>Promise.all(e.map(t=>t.continue().catch(Zm))))}};function oie(e){return e.options.scope?.id}var kci=class extends ej{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#e.defaultMutationOptions(e),she(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&g2(t.mutationKey)!==g2(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#s(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#s()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){const e=this.#n?.state??Zln();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#s(e){Of.batch(()=>{if(this.#r&&this.hasListeners()){const t=this.#t.variables,n=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#r.onSuccess?.(e.data,t,n,i)}catch(r){Promise.reject(r)}try{this.#r.onSettled?.(e.data,null,t,n,i)}catch(r){Promise.reject(r)}}else if(e?.type==="error"){try{this.#r.onError?.(e.error,t,n,i)}catch(r){Promise.reject(r)}try{this.#r.onSettled?.(void 0,e.error,t,n,i)}catch(r){Promise.reject(r)}}}this.listeners.forEach(t=>{t(this.#t)})})}},Jln=class extends ej{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const i=t.queryKey,r=t.queryHash??aGe(i,t);let o=this.get(r);return o||(o=new Sci({client:e,queryKey:i,queryHash:r,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(o)),o}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Of.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>fAt(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>fAt(e,n)):t}notify(e){Of.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Of.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Of.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ici=class{#e;#t;#n;#r;#i;#s;#a;#o;constructor(e={}){this.#e=e.queryCache||new Jln,this.#t=e.mutationCache||new Xln,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#a=uGe.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=ahe.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#a?.(),this.#a=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(dL(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.defaultQueryOptions({queryKey:e}),o=this.#e.get(i.queryHash)?.state.data,s=hci(t,o);if(s!==void 0)return this.#e.build(this,i).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Of.batch(()=>this.#e.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Of.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Of.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},i=Of.batch(()=>this.#e.findAll(e).map(r=>r.cancel(n)));return Promise.all(i).then(Zm).catch(Zm)}invalidateQueries(e,t={}){return Of.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},i=Of.batch(()=>this.#e.findAll(e).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let o=r.fetch(void 0,n);return n.throwOnError||(o=o.catch(Zm)),r.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(i).then(Zm)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(dL(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zm).catch(Zm)}fetchInfiniteQuery(e){return e.behavior=wAt(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zm).catch(Zm)}ensureInfiniteQueryData(e){return e.behavior=wAt(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ahe.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(g2(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(i=>{TG(e,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(g2(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(i=>{TG(e,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=aGe(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===lGe&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},ecn=I.createContext(void 0),J0=e=>{const t=I.useContext(ecn);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Lci=({client:e,children:t})=>(I.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),S.jsx(ecn.Provider,{value:e,children:t})),tcn=I.createContext(!1),Nci=()=>I.useContext(tcn);tcn.Provider;function Pci(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Mci=I.createContext(Pci()),Oci=()=>I.useContext(Mci),Rci=(e,t,n)=>{const i=n?.state.error&&typeof e.throwOnError=="function"?cGe(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||i)&&(t.isReset()||(e.retryOnMount=!1))},Fci=e=>{I.useEffect(()=>{e.clearReset()},[e])},Bci=({result:e,errorResetBoundary:t,throwOnError:n,query:i,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(r&&e.data===void 0||cGe(n,[e.error,i])),jci=e=>{if(e.suspense){const n=r=>r==="static"?r:Math.max(r??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...r)=>n(i(...r)):n(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},zci=(e,t)=>e.isLoading&&e.isFetching&&!t,Vci=(e,t)=>e?.suspense&&t.isPending,SAt=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Hci(e,t,n){const i=Nci(),r=Oci(),o=J0(),s=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(s);const a=o.getQueryCache().get(s.queryHash);s._optimisticResults=i?"isRestoring":"optimistic",jci(s),Rci(s,r,a),Fci(r);const l=!o.getQueryCache().get(s.queryHash),[c]=I.useState(()=>new t(o,s)),u=c.getOptimisticResult(s),d=!i&&e.subscribed!==!1;if(I.useSyncExternalStore(I.useCallback(h=>{const f=d?c.subscribe(Of.batchCalls(h)):Zm;return c.updateResult(),f},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),I.useEffect(()=>{c.setOptions(s)},[s,c]),Vci(s,u))throw SAt(s,c,r);if(Bci({result:u,errorResetBoundary:r,throwOnError:s.throwOnError,query:a,suspense:s.suspense}))throw u.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(s,u),s.experimental_prefetchInRender&&!p2&&zci(u,i)&&(l?SAt(s,c,r):a?.promise)?.catch(Zm).finally(()=>{c.updateResult()}),s.notifyOnChangeProps?u:c.trackResult(u)}function Yf(e,t){return Hci(e,xci)}function hGe(e,t){const n=J0();n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function GN(e,t){const n=J0(),[i]=I.useState(()=>new kci(n,e));I.useEffect(()=>{i.setOptions(e)},[i,e]);const r=I.useSyncExternalStore(I.useCallback(s=>i.subscribe(Of.batchCalls(s)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),o=I.useCallback((s,a)=>{i.mutate(s,a).catch(Zm)},[i]);if(r.error&&cGe(i.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:o,mutateAsync:r.mutate}}var Wci=function(){return null};function ncn(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=ncn(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function Uci(){for(var e,t,n=0,i="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=ncn(e))&&(i&&(i+=" "),i+=t);return i}var Nn=Uci;function $ci(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}$ci(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
`);var ZY=e=>typeof e=="number"&&!isNaN(e),m2=e=>typeof e=="string",GD=e=>typeof e=="function",qci=e=>m2(e)||ZY(e),S9e=e=>m2(e)||GD(e)?e:null,Gci=(e,t)=>e===!1||ZY(e)&&e>0?e:t,x9e=e=>I.isValidElement(e)||m2(e)||GD(e)||ZY(e);function Kci(e,t,n=300){let{scrollHeight:i,style:r}=e;requestAnimationFrame(()=>{r.minHeight="initial",r.height=i+"px",r.transition=`all ${n}ms`,requestAnimationFrame(()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(t,n)})})}function Yci({enter:e,exit:t,appendPosition:n=!1,collapse:i=!0,collapseDuration:r=300}){return function({children:o,position:s,preventExitTransition:a,done:l,nodeRef:c,isIn:u,playToast:d}){let h=n?`${e}--${s}`:e,f=n?`${t}--${s}`:t,p=I.useRef(0);return I.useLayoutEffect(()=>{let g=c.current,m=h.split(" "),v=y=>{y.target===c.current&&(d(),g.removeEventListener("animationend",v),g.removeEventListener("animationcancel",v),p.current===0&&y.type!=="animationcancel"&&g.classList.remove(...m))};g.classList.add(...m),g.addEventListener("animationend",v),g.addEventListener("animationcancel",v)},[]),I.useEffect(()=>{let g=c.current,m=()=>{g.removeEventListener("animationend",m),i?Kci(g,l,r):l()};u||(a?m():(p.current=1,g.className+=` ${f}`,g.addEventListener("animationend",m)))},[u]),Ri.createElement(Ri.Fragment,null,o)}}function xAt(e,t){return{content:icn(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function icn(e,t,n=!1){return I.isValidElement(e)&&!m2(e.type)?I.cloneElement(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):GD(e)?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):e}function Qci({closeToast:e,theme:t,ariaLabel:n="close"}){return Ri.createElement("button",{className:`Toastify__close-button Toastify__close-button--${t}`,type:"button",onClick:i=>{i.stopPropagation(),e(!0)},"aria-label":n},Ri.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Ri.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function Zci({delay:e,isRunning:t,closeToast:n,type:i="default",hide:r,className:o,controlledProgress:s,progress:a,rtl:l,isIn:c,theme:u}){let d=r||s&&a===0,h={animationDuration:`${e}ms`,animationPlayState:t?"running":"paused"};s&&(h.transform=`scaleX(${a})`);let f=Nn("Toastify__progress-bar",s?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${u}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":l}),p=GD(o)?o({rtl:l,type:i,defaultClassName:f}):Nn(f,o),g={[s&&a>=1?"onTransitionEnd":"onAnimationEnd"]:s&&a<1?null:()=>{c&&n()}};return Ri.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":d},Ri.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${u} Toastify__progress-bar--${i}`}),Ri.createElement("div",{role:"progressbar","aria-hidden":d?"true":"false","aria-label":"notification timer",className:p,style:h,...g}))}var Xci=1,rcn=()=>`${Xci++}`;function Jci(e,t,n){let i=1,r=0,o=[],s=[],a=t,l=new Map,c=new Set,u=y=>(c.add(y),()=>c.delete(y)),d=()=>{s=Array.from(l.values()),c.forEach(y=>y())},h=({containerId:y,toastId:b,updateId:w})=>{let E=y?y!==e:e!==1,A=l.has(b)&&w==null;return E||A},f=(y,b)=>{l.forEach(w=>{var E;(b==null||b===w.props.toastId)&&((E=w.toggle)==null||E.call(w,y))})},p=y=>{var b,w;(w=(b=y.props)==null?void 0:b.onClose)==null||w.call(b,y.removalReason),y.isActive=!1},g=y=>{if(y==null)l.forEach(p);else{let b=l.get(y);b&&p(b)}d()},m=()=>{r-=o.length,o=[]},v=y=>{var b,w;let{toastId:E,updateId:A}=y.props,D=A==null;y.staleId&&l.delete(y.staleId),y.isActive=!0,l.set(E,y),d(),n(xAt(y,D?"added":"updated")),D&&((w=(b=y.props).onOpen)==null||w.call(b))};return{id:e,props:a,observe:u,toggle:f,removeToast:g,toasts:l,clearQueue:m,buildToast:(y,b)=>{if(h(b))return;let{toastId:w,updateId:E,data:A,staleId:D,delay:T}=b,M=E==null;M&&r++;let P={...a,style:a.toastStyle,key:i++,...Object.fromEntries(Object.entries(b).filter(([N,j])=>j!=null)),toastId:w,updateId:E,data:A,isIn:!1,className:S9e(b.className||a.toastClassName),progressClassName:S9e(b.progressClassName||a.progressClassName),autoClose:b.isLoading?!1:Gci(b.autoClose,a.autoClose),closeToast(N){l.get(w).removalReason=N,g(w)},deleteToast(){let N=l.get(w);if(N!=null){if(n(xAt(N,"removed")),l.delete(w),r--,r<0&&(r=0),o.length>0){v(o.shift());return}d()}}};P.closeButton=a.closeButton,b.closeButton===!1||x9e(b.closeButton)?P.closeButton=b.closeButton:b.closeButton===!0&&(P.closeButton=x9e(a.closeButton)?a.closeButton:!0);let F={content:y,props:P,staleId:D};a.limit&&a.limit>0&&r>a.limit&&M?o.push(F):ZY(T)?setTimeout(()=>{v(F)},T):v(F)},setProps(y){a=y},setToggle:(y,b)=>{let w=l.get(y);w&&(w.toggle=b)},isToastActive:y=>{var b;return(b=l.get(y))==null?void 0:b.isActive},getSnapshot:()=>s}}var yv=new Map,kG=[],E9e=new Set,eui=e=>E9e.forEach(t=>t(e)),ocn=()=>yv.size>0;function tui(){kG.forEach(e=>acn(e.content,e.options)),kG=[]}var nui=(e,{containerId:t})=>{var n;return(n=yv.get(t||1))==null?void 0:n.toasts.get(e)};function scn(e,t){var n;if(t)return!!((n=yv.get(t))!=null&&n.isToastActive(e));let i=!1;return yv.forEach(r=>{r.isToastActive(e)&&(i=!0)}),i}function iui(e){if(!ocn()){kG=kG.filter(t=>e!=null&&t.options.toastId!==e);return}if(e==null||qci(e))yv.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=yv.get(e.containerId);t?t.removeToast(e.id):yv.forEach(n=>{n.removeToast(e.id)})}}var rui=(e={})=>{yv.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})};function acn(e,t){x9e(e)&&(ocn()||kG.push({content:e,options:t}),yv.forEach(n=>{n.buildToast(e,t)}))}function oui(e){var t;(t=yv.get(e.containerId||1))==null||t.setToggle(e.id,e.fn)}function lcn(e,t){yv.forEach(n=>{(t==null||!(t!=null&&t.containerId)||t?.containerId===n.id)&&n.toggle(e,t?.id)})}function sui(e){let t=e.containerId||1;return{subscribe(n){let i=Jci(t,e,eui);yv.set(t,i);let r=i.observe(n);return tui(),()=>{r(),yv.delete(t)}},setProps(n){var i;(i=yv.get(t))==null||i.setProps(n)},getSnapshot(){var n;return(n=yv.get(t))==null?void 0:n.getSnapshot()}}}function aui(e){return E9e.add(e),()=>{E9e.delete(e)}}function lui(e){return e&&(m2(e.toastId)||ZY(e.toastId))?e.toastId:rcn()}function XY(e,t){return acn(e,t),t.toastId}function Mme(e,t){return{...t,type:t&&t.type||e,toastId:lui(t)}}function Ome(e){return(t,n)=>XY(t,Mme(e,n))}function ua(e,t){return XY(e,Mme("default",t))}ua.loading=(e,t)=>XY(e,Mme("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t}));function cui(e,{pending:t,error:n,success:i},r){let o;t&&(o=m2(t)?ua.loading(t,r):ua.loading(t.render,{...r,...t}));let s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},a=(c,u,d)=>{if(u==null){ua.dismiss(o);return}let h={type:c,...s,...r,data:d},f=m2(u)?{render:u}:u;return o?ua.update(o,{...h,...f}):ua(f.render,{...h,...f}),d},l=GD(e)?e():e;return l.then(c=>a("success",i,c)).catch(c=>a("error",n,c)),l}ua.promise=cui;ua.success=Ome("success");ua.info=Ome("info");ua.error=Ome("error");ua.warning=Ome("warning");ua.warn=ua.warning;ua.dark=(e,t)=>XY(e,Mme("default",{theme:"dark",...t}));function uui(e){iui(e)}ua.dismiss=uui;ua.clearWaitingQueue=rui;ua.isActive=scn;ua.update=(e,t={})=>{let n=nui(e,t);if(n){let{props:i,content:r}=n,o={delay:100,...i,...t,toastId:t.toastId||e,updateId:rcn()};o.toastId!==e&&(o.staleId=e);let s=o.render||r;delete o.render,XY(s,o)}};ua.done=e=>{ua.update(e,{progress:1})};ua.onChange=aui;ua.play=e=>lcn(!0,e);ua.pause=e=>lcn(!1,e);function dui(e){var t;let{subscribe:n,getSnapshot:i,setProps:r}=I.useRef(sui(e)).current;r(e);let o=(t=I.useSyncExternalStore(n,i,i))==null?void 0:t.slice();function s(a){if(!o)return[];let l=new Map;return e.newestOnTop&&o.reverse(),o.forEach(c=>{let{position:u}=c.props;l.has(u)||l.set(u,[]),l.get(u).push(c)}),Array.from(l,c=>a(c[0],c[1]))}return{getToastToRender:s,isToastActive:scn,count:o?.length}}function hui(e){let[t,n]=I.useState(!1),[i,r]=I.useState(!1),o=I.useRef(null),s=I.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:l,closeToast:c,onClick:u,closeOnClick:d}=e;oui({id:e.toastId,containerId:e.containerId,fn:n}),I.useEffect(()=>{if(e.pauseOnFocusLoss)return h(),()=>{f()}},[e.pauseOnFocusLoss]);function h(){document.hasFocus()||v(),window.addEventListener("focus",m),window.addEventListener("blur",v)}function f(){window.removeEventListener("focus",m),window.removeEventListener("blur",v)}function p(D){if(e.draggable===!0||e.draggable===D.pointerType){y();let T=o.current;s.canCloseOnClick=!0,s.canDrag=!0,T.style.transition="none",e.draggableDirection==="x"?(s.start=D.clientX,s.removalDistance=T.offsetWidth*(e.draggablePercent/100)):(s.start=D.clientY,s.removalDistance=T.offsetHeight*(e.draggablePercent===80?e.draggablePercent*1.5:e.draggablePercent)/100)}}function g(D){let{top:T,bottom:M,left:P,right:F}=o.current.getBoundingClientRect();D.nativeEvent.type!=="touchend"&&e.pauseOnHover&&D.clientX>=P&&D.clientX<=F&&D.clientY>=T&&D.clientY<=M?v():m()}function m(){n(!0)}function v(){n(!1)}function y(){s.didMove=!1,document.addEventListener("pointermove",w),document.addEventListener("pointerup",E)}function b(){document.removeEventListener("pointermove",w),document.removeEventListener("pointerup",E)}function w(D){let T=o.current;if(s.canDrag&&T){s.didMove=!0,t&&v(),e.draggableDirection==="x"?s.delta=D.clientX-s.start:s.delta=D.clientY-s.start,s.start!==D.clientX&&(s.canCloseOnClick=!1);let M=e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`;T.style.transform=`translate3d(${M},0)`,T.style.opacity=`${1-Math.abs(s.delta/s.removalDistance)}`}}function E(){b();let D=o.current;if(s.canDrag&&s.didMove&&D){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance){r(!0),e.closeToast(!0),e.collapseAll();return}D.style.transition="transform 0.2s, opacity 0.2s",D.style.removeProperty("transform"),D.style.removeProperty("opacity")}}let A={onPointerDown:p,onPointerUp:g};return a&&l&&(A.onMouseEnter=v,e.stacked||(A.onMouseLeave=m)),d&&(A.onClick=D=>{u&&u(D),s.canCloseOnClick&&c(!0)}),{playToast:m,pauseToast:v,isRunning:t,preventExitTransition:i,toastRef:o,eventHandlers:A}}var fui=typeof window<"u"?I.useLayoutEffect:I.useEffect,Rme=({theme:e,type:t,isLoading:n,...i})=>Ri.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${t})`,...i});function pui(e){return Ri.createElement(Rme,{...e},Ri.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function gui(e){return Ri.createElement(Rme,{...e},Ri.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function mui(e){return Ri.createElement(Rme,{...e},Ri.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function vui(e){return Ri.createElement(Rme,{...e},Ri.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function yui(){return Ri.createElement("div",{className:"Toastify__spinner"})}var A9e={info:gui,warning:pui,success:mui,error:vui,spinner:yui},bui=e=>e in A9e;function _ui({theme:e,type:t,isLoading:n,icon:i}){let r=null,o={theme:e,type:t};return i===!1||(GD(i)?r=i({...o,isLoading:n}):I.isValidElement(i)?r=I.cloneElement(i,o):n?r=A9e.spinner():bui(t)&&(r=A9e[t](o))),r}var wui=e=>{let{isRunning:t,preventExitTransition:n,toastRef:i,eventHandlers:r,playToast:o}=hui(e),{closeButton:s,children:a,autoClose:l,onClick:c,type:u,hideProgressBar:d,closeToast:h,transition:f,position:p,className:g,style:m,progressClassName:v,updateId:y,role:b,progress:w,rtl:E,toastId:A,deleteToast:D,isIn:T,isLoading:M,closeOnClick:P,theme:F,ariaLabel:N}=e,j=Nn("Toastify__toast",`Toastify__toast-theme--${F}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":E},{"Toastify__toast--close-on-click":P}),W=GD(g)?g({rtl:E,position:p,type:u,defaultClassName:j}):Nn(j,g),J=_ui(e),ee=!!w||!l,Q={closeToast:h,type:u,theme:F},H=null;return s===!1||(GD(s)?H=s(Q):I.isValidElement(s)?H=I.cloneElement(s,Q):H=Qci(Q)),Ri.createElement(f,{isIn:T,done:D,position:p,preventExitTransition:n,nodeRef:i,playToast:o},Ri.createElement("div",{id:A,tabIndex:0,onClick:c,"data-in":T,className:W,...r,style:m,ref:i,...T&&{role:b,"aria-label":N}},J!=null&&Ri.createElement("div",{className:Nn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!M})},J),icn(a,e,!t),H,!e.customProgressBar&&Ri.createElement(Zci,{...y&&!ee?{key:`p-${y}`}:{},rtl:E,theme:F,delay:l,isRunning:t,isIn:T,closeToast:h,hide:d,type:u,className:v,controlledProgress:ee,progress:w||0})))},Cui=(e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}),Sui=Yci(Cui("bounce",!0)),xui={position:"top-right",transition:Sui,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&e.code==="KeyT"};function Eui(e){let t={...xui,...e},n=e.stacked,[i,r]=I.useState(!0),o=I.useRef(null),{getToastToRender:s,isToastActive:a,count:l}=dui(t),{className:c,style:u,rtl:d,containerId:h,hotKeys:f}=t;function p(m){let v=Nn("Toastify__toast-container",`Toastify__toast-container--${m}`,{"Toastify__toast-container--rtl":d});return GD(c)?c({position:m,rtl:d,defaultClassName:v}):Nn(v,S9e(c))}function g(){n&&(r(!0),ua.play())}return fui(()=>{var m;if(n){let v=o.current.querySelectorAll('[data-in="true"]'),y=12,b=(m=t.position)==null?void 0:m.includes("top"),w=0,E=0;Array.from(v).reverse().forEach((A,D)=>{let T=A;T.classList.add("Toastify__toast--stacked"),D>0&&(T.dataset.collapsed=`${i}`),T.dataset.pos||(T.dataset.pos=b?"top":"bot");let M=w*(i?.2:1)+(i?0:y*D);T.style.setProperty("--y",`${b?M:M*-1}px`),T.style.setProperty("--g",`${y}`),T.style.setProperty("--s",`${1-(i?E:0)}`),w+=T.offsetHeight,E+=.025})}},[i,l,n]),I.useEffect(()=>{function m(v){var y;let b=o.current;f(v)&&((y=b.querySelector('[tabIndex="0"]'))==null||y.focus(),r(!1),ua.pause()),v.key==="Escape"&&(document.activeElement===b||b!=null&&b.contains(document.activeElement))&&(r(!0),ua.play())}return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[f]),Ri.createElement("section",{ref:o,className:"Toastify",id:h,onMouseEnter:()=>{n&&(r(!1),ua.pause())},onMouseLeave:g,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":t["aria-label"]},s((m,v)=>{let y=v.length?{...u}:{...u,pointerEvents:"none"};return Ri.createElement("div",{tabIndex:-1,className:p(m),"data-stacked":n,style:y,key:`c-${m}`},v.map(({content:b,props:w})=>Ri.createElement(wui,{...w,stacked:n,collapseAll:g,isIn:a(w.toastId,w.containerId),key:`t-${w.key}`},b)))}))}var lhe=class extends Error{errors=[];data;constructor(e,t){let n=Array.isArray(e)?e.map(i=>i?.message||"").join(`
`):"";n||(n="GraphQL error"),super(n),this.errors=e,this.data=t}};function EAt(e,t){let n=t.map(i=>i.request);n.length===1&&(n=n[0]),(()=>{try{return e.fetcher(n)}catch(i){return Promise.reject(i)}})().then(i=>{if(t.length===1&&!Array.isArray(i)){if(i.errors&&i.errors.length){t[0].reject(new lhe(i.errors,i.data));return}t[0].resolve(i);return}else if(i.length!==t.length)throw new Error("response length did not match query length");for(let r=0;r<t.length;r++)i[r].errors&&i[r].errors.length?t[r].reject(new lhe(i[r].errors,i[r].data)):t[r].resolve(i[r])}).catch(i=>{for(let r=0;r<t.length;r++)t[r].reject(i)})}function rTe(e,t){const n=e._queue,i=t.maxBatchSize||0;if(e._queue=[],i>0&&i<n.length)for(let r=0;r<n.length/i;r++)EAt(e,n.slice(r*i,(r+1)*i));else EAt(e,n)}var Aui=class ccn{fetcher;_options;_queue;constructor(t,{batchInterval:n=6,shouldBatch:i=!0,maxBatchSize:r=0}={}){this.fetcher=t,this._options={batchInterval:n,shouldBatch:i,maxBatchSize:r},this._queue=[]}fetch(t,n,i,r={}){const o={query:t},s=Object.assign({},this._options,r);return n&&(o.variables=n),i&&(o.operationName=i),new Promise((l,c)=>{this._queue.push({request:o,resolve:l,reject:c}),this._queue.length===1&&(s.shouldBatch?setTimeout(()=>rTe(this,s),s.batchInterval):rTe(this,s))})}forceFetch(t,n,i,r={}){const o={query:t},s=Object.assign({},this._options,r,{shouldBatch:!1});return n&&(o.variables=n),i&&(o.operationName=i),new Promise((l,c)=>{const u=new ccn(this.fetcher,this._options);u._queue=[{request:o,resolve:l,reject:c}],rTe(u,s)})}},Dui={maxBatchSize:10,batchInterval:40},Tui=({url:e,headers:t={},fetcher:n,fetch:i,batch:r=!1,...o})=>{if(!e&&!n)throw new Error("url or fetcher is required");if(n=n||(async a=>{let l=typeof t=="function"?await t():t;if(l=l||{},typeof fetch>"u"&&!i)throw new Error("Global `fetch` function is not available, pass a fetch polyfill to Genql `createClient`");const u=await(i||fetch)(e,{headers:{"Content-Type":"application/json",...l},method:"POST",body:JSON.stringify(a),...o});if(!u.ok)throw new Error(`${u.statusText}: ${await u.text()}`);return await u.json()}),!r)return async a=>{const l=await n(a);if(Array.isArray(l))return l.map(c=>{if(c?.errors?.length)throw new lhe(c.errors||[],c.data);return c.data});if(l?.errors?.length)throw new lhe(l.errors||[],l.data);return l.data};const s=new Aui(async a=>await n(a),r===!0?Dui:r);return async({query:a,variables:l})=>{const c=await s.fetch(a,l);if(c?.data)return c.data;throw new Error("Genql batch fetcher returned unexpected result "+JSON.stringify(c))}},rce=(e,t,n)=>{if(typeof e=="object"&&"__args"in e){const i=e.__args;let r={...e};delete r.__args;const o=Object.keys(i);if(o.length===0)return rce(r,t,n);const s=DAt(t.root,n);return`(${o.map(l=>{t.varCounter++;const c=`v${t.varCounter}`,u=s.args&&s.args[l];if(!u)throw new Error(`no typing defined for argument \`${l}\` in path \`${n.join(".")}\``);return t.variables[c]={value:i[l],typing:u},`${l}:$${c}`})})${rce(r,t,n)}`}else if(typeof e=="object"&&Object.keys(e).length>0){const i=e,r=Object.keys(i).filter(c=>!!i[c]);if(r.length===0)throw new Error(`field selection should not be empty: ${n.join(".")}`);const o=n.length>0?DAt(t.root,n).type:t.root,s=o.scalar;let a;if(r.includes("__scalar")){const c=new Set(Object.keys(i).filter(u=>!i[u]));s?.length&&(t.fragmentCounter++,a=`f${t.fragmentCounter}`,t.fragments.push(`fragment ${a} on ${o.name}{${s.filter(u=>!c.has(u)).join(",")}}`))}return`{${r.filter(c=>!["__scalar","__name"].includes(c)).map(c=>{const u=rce(i[c],t,[...n,c]);if(c.startsWith("on_")){t.fragmentCounter++;const d=`f${t.fragmentCounter}`,h=c.match(/^on_(.+)/);if(!h||!h[1])throw new Error("match failed");return t.fragments.push(`fragment ${d} on ${h[1]}${u}`),`...${d}`}else return`${c}${u}`}).concat(a?[`...${a}`]:[]).join(",")}}`}else return""},AAt=(e,t,n)=>{const i={root:t,varCounter:0,variables:{},fragmentCounter:0,fragments:[]},r=rce(n,i,[]),o=Object.keys(i.variables),s=o.length>0?`(${o.map(l=>{const c=i.variables[l].typing[1];return`$${l}:${c}`})})`:"",a=n?.__name||"";return{query:[`${e} ${a}${s}${r}`,...i.fragments].join(","),variables:Object.keys(i.variables).reduce((l,c)=>(l[c]=i.variables[c].value,l),{}),...a?{operationName:a.toString()}:{}}},DAt=(e,t)=>{let n;if(!e)throw new Error("root type is not provided");if(t.length===0)throw new Error("path is empty");return t.forEach(i=>{const r=n?n.type:e;if(!r.fields)throw new Error(`type \`${r.name}\` does not have fields`);const o=Object.keys(r.fields).filter(a=>a.startsWith("on_")).reduce((a,l)=>{const c=r.fields&&r.fields[l];return c&&a.push(c.type),a},[r]);let s=null;if(o.forEach(a=>{const l=a.fields&&a.fields[i];l&&(s=l)}),!s)throw new Error(`type \`${r.name}\` does not have a field \`${i}\``);n=s}),n},kui=({queryRoot:e,mutationRoot:t,subscriptionRoot:n,...i})=>{const r=Tui(i),o={};return e&&(o.query=s=>{if(!e)throw new Error("queryRoot argument is missing");return r(AAt("query",e,s))}),t&&(o.mutation=s=>{if(!t)throw new Error("mutationRoot argument is missing");return r(AAt("mutation",t,s))}),o},Iui=e=>{const t=Object.assign({},...Object.keys(e.types).map((r,o)=>({[o]:r})));let n=Object.assign({},...Object.keys(e.types||{}).map(r=>{const s=e.types[r]||{};return{[r]:{name:r,scalar:Object.keys(s).filter(a=>{const[l]=s[a]||[];if(!(l&&e.scalars.includes(l)))return!1;const u=s[a]?.[1];return!Object.values(u||{}).map(f=>f?.[1]).filter(Boolean).some(f=>f&&f.endsWith("!"))}),fields:Object.assign({},...Object.keys(s).map(a=>{const[l,c]=s[a]||[];return l==null?{}:{[a]:{type:t[l],args:Object.assign({},...Object.keys(c||{}).map(u=>{if(!c||!c[u])return;const[d,h]=c[u];return{[u]:[t[d],h||t[d]]}}))}}}))}}}));return Lui(n)},Lui=e=>(Object.keys(e).forEach(t=>{const n=e[t];if(!n.fields)return;const i=n.fields;Object.keys(i).forEach(r=>{const o=i[r];if(o.args){const a=o.args;Object.keys(a).forEach(l=>{const c=a[l];if(c){const[u]=c;typeof u=="string"&&(e[u]||(e[u]={name:u}),c[0]=e[u])}})}const s=o.type;typeof s=="string"&&(e[s]||(e[s]={name:s}),o.type=e[s])})}),e),Nui={scalars:[0,1,3,7,8,11,33,57,83,90,95,96],types:{AlignmentUnit:{},AllPropertySpec:{},CollectionOfMetaGraph:{list:[47],page:[47,{limit:[3,"Int!"],offset:[3],pageIndex:[3]}],count:[3],__typename:[7]},Int:{},CollectionOfNamespace:{list:[53],page:[53,{limit:[3,"Int!"],offset:[3],pageIndex:[3]}],count:[3],__typename:[7]},CollectionOfNamespacedItem:{list:[54],page:[54,{limit:[3,"Int!"],offset:[3],pageIndex:[3]}],count:[3],__typename:[7]},Document:{entity:[9],content:[7],embedding:[8],score:[8],__typename:[7]},String:{},Float:{},DocumentEntity:{on_Node:[55],on_Edge:[10],__typename:[7]},Edge:{defaultLayer:[10],layers:[10,{names:[7,"[String!]!"]}],excludeLayers:[10,{names:[7,"[String!]!"]}],layer:[10,{name:[7,"String!"]}],excludeLayer:[10,{name:[7,"String!"]}],rolling:[21,{window:[102,"WindowDuration!"],step:[102],alignmentUnit:[0]}],expanding:[21,{step:[102,"WindowDuration!"],alignmentUnit:[0]}],window:[10,{start:[95,"TimeInput!"],end:[95,"TimeInput!"]}],at:[10,{time:[95,"TimeInput!"]}],latest:[10],snapshotAt:[10,{time:[95,"TimeInput!"]}],snapshotLatest:[10],before:[10,{time:[95,"TimeInput!"]}],after:[10,{time:[95,"TimeInput!"]}],shrinkWindow:[10,{start:[95,"TimeInput!"],end:[95,"TimeInput!"]}],shrinkStart:[10,{start:[95,"TimeInput!"]}],shrinkEnd:[10,{end:[95,"TimeInput!"]}],applyViews:[10,{views:[19,"[EdgeViewCollection!]!"]}],earliestTime:[26],firstUpdate:[26],latestTime:[26],lastUpdate:[26],time:[26],start:[26],end:[26],src:[55],dst:[55],nbr:[55],id:[7],properties:[79],metadata:[48],layerNames:[7],layerName:[7],explode:[22],explodeLayers:[22],history:[38],deletions:[38],isValid:[11],isActive:[11],isDeleted:[11],isSelfLoop:[11],filter:[10,{expr:[13,"EdgeFilter!"]}],__typename:[7]},Boolean:{},EdgeAddition:{src:[7],dst:[7],layer:[7],metadata:[82],updates:[94],__typename:[7]},EdgeFilter:{src:[60],dst:[60],property:[81],metadata:[81],temporalProperty:[81],and:[13],or:[13],not:[13],window:[20],at:[17],before:[17],after:[17],latest:[18],snapshotAt:[17],snapshotLatest:[18],layers:[14],isActive:[11],isValid:[11],isDeleted:[11],isSelfLoop:[11],__typename:[7]},EdgeLayersExpr:{names:[7],expr:[13],__typename:[7]},EdgeSchema:{srcType:[7],dstType:[7],properties:[84],metadata:[84],__typename:[7]},EdgeSortBy:{reverse:[11],src:[11],dst:[11],time:[90],property:[7],__typename:[7]},EdgeTimeExpr:{time:[95],expr:[13],__typename:[7]},EdgeUnaryExpr:{expr:[13],__typename:[7]},EdgeViewCollection:{defaultLayer:[11],latest:[11],snapshotLatest:[11],snapshotAt:[95],layers:[7],excludeLayers:[7],excludeLayer:[7],window:[101],at:[95],before:[95],after:[95],shrinkWindow:[101],shrinkStart:[95],shrinkEnd:[95],edgeFilter:[13],__typename:[7]},EdgeWindowExpr:{start:[95],end:[95],expr:[13],__typename:[7]},EdgeWindowSet:{count:[3],page:[10,{limit:[3,"Int!"],offset:[3],pageIndex:[3]}],list:[10],__typename:[7]},Edges:{defaultLayer:[22],layers:[22,{names:[7,"[String!]!"]}],excludeLayers:[22,{names:[7,"[String!]!"]}],layer:[22,{name:[7,"String!"]}],excludeLayer:[22,{name:[7,"String!"]}],rolling:[24,{window:[102,"WindowDuration!"],step:[102],alignmentUnit:[0]}],expanding:[24,{step:[102,"WindowDuration!"],alignmentUnit:[0]}],window:[22,{start:[95,"TimeInput!"],end:[95,"TimeInput!"]}],at:[22,{time:[95,"TimeInput!"]}],latest:[22],snapshotAt:[22,{time:[95,"TimeInput!"]}],snapshotLatest:[22],before:[22,{time:[95,"TimeInput!"]}],after:[22,{time:[95,"TimeInput!"]}],shrinkWindow:[22,{start:[95,"TimeInput!"],end:[95,"TimeInput!"]}],shrinkStart:[22,{start:[95,"TimeInput!"]}],shrinkEnd:[22,{end:[95,"TimeInput!"]}],applyViews:[22,{views:[23,"[EdgesViewCollection!]!"]}],explode:[22],explodeLayers:[22],sorted:[22,{sortBys:[16,"[EdgeSortBy!]!"]}],start:[26],end:[26],count:[3],page:[10,{limit:[3,"Int!"],offset:[3],pageIndex:[3]}],list:[10],filter:[22,{expr:[13,"EdgeFilter!"]}],select:[22,{expr:[13,"EdgeFilter!"]}],__typename:[7]},EdgesViewCollection:{defaultLayer:[11],latest:[11],snapshotLatest:[11],snapshotAt:[95],layers:[7],excludeLayers:[7],excludeLayer:[7],window:[101],at:[95],before:[95],after:[95],shrinkWindow:[101],shrinkStart:[95],shrinkEnd:[95],edgeFilter:[13],__typename:[7]},EdgesWindowSet:{count:[3],page:[22,{limit:[3,"Int!"],offset:[3],pageIndex:[3]}],list:[22],__typename:[7]},EmbeddingModel:{openAI:[73],__typename:[7]},EventTime:{timestamp:[3],eventId:[3],datetime:[7,{formatString:[7]}],__typename:[7]},Graph:{uniqueLayers:[7],defaultLayer:[27],layers:[27,{names:[7,"[String!]!"]}],excludeLayers:[27,{names:[7,"[String!]!"]}],layer:[27,{name:[7,"String!"]}],excludeLayer:[27,{name:[7,"String!"]}],subgraph:[27,{nodes:[7,"[String!]!"]}],valid:[27],subgraphNodeTypes:[27,{nodeTypes:[7,"[String!]!"]}],excludeNodes:[27,{nodes:[7,"[String!]!"]}],rolling:[37,{window:[102,"WindowDuration!"],step:[102],alignmentUnit:[0]}],expanding:[37,{step:[102,"WindowDuration!"],alignmentUnit:[0]}],window:[27,{start:[95,"TimeInput!"],end:[95,"TimeInput!"]}],at:[27,{time:[95,"TimeInput!"]}],latest:[27],snapshotAt:[27,{time:[95,"TimeInput!"]}],snapshotLatest:[27],before:[27,{time:[95,"TimeInput!"]}],after:[27,{time:[95,"TimeInput!"]}],shrinkWindow:[27,{start:[95,"TimeInput!"],end:[95,"TimeInput!"]}],shrinkStart:[27,{start:[95,"TimeInput!"]}],shrinkEnd:[27,{end:[95,"TimeInput!"]}],created:[3],lastOpened:[3],lastUpdated:[3],earliestTime:[26],latestTime:[26],start:[26],end:[26],earliestEdgeTime:[26,{includeNegative:[11]}],latestEdgeTime:[26,{includeNegative:[11]}],countEdges:[3],countTemporalEdges:[3],countNodes:[3],hasNode:[11,{name:[7,"String!"]}],hasEdge:[11,{src:[7,"String!"],dst:[7,"String!"],layer:[7]}],node:[55,{name:[7,"String!"]}],nodes:[69,{select:[60]}],edge:[10,{src:[7,"String!"],dst:[7,"String!"]}],edges:[22,{select:[13]}],properties:[79],metadata:[48],name:[7],path:[7],namespace:[7],schema:[31],algorithms:[28],sharedNeighbours:[55,{selectedNodes:[7,"[String!]!"]}],exportTo:[11,{path:[7,"String!"]}],filter:[27,{expr:[29]}],filterNodes:[27,{expr:[60,"NodeFilter!"]}],filterEdges:[27,{expr:[13,"EdgeFilter!"]}],getIndexSpec:[42],searchNodes:[55,{filter:[60,"NodeFilter!"],limit:[3,"Int!"],offset:[3,"Int!"]}],searchEdges:[10,{filter:[13,"EdgeFilter!"],limit:[3,"Int!"],offset:[3,"Int!"]}],applyViews:[27,{views:[35,"[GraphViewCollection!]!"]}],__typename:[7]},GraphAlgorithmPlugin:{pagerank:[74,{iterCount:[3,"Int!"],threads:[3],tol:[8]}],shortest_path:[88,{source:[7,"String!"],targets:[7,"[String!]!"],direction:[7]}],__typename:[7]},GraphFilter:{window:[36],at:[32],before:[32],after:[32],latest:[34],snapshotAt:[32],snapshotLatest:[34],layers:[30],__typename:[7]},GraphLayersExpr:{names:[7],expr:[29],__typename:[7]},GraphSchema:{nodes:[62],layers:[46],__typename:[7]},GraphTimeExpr:{time:[95],expr:[29],__typename:[7]},GraphType:{},GraphUnaryExpr:{expr:[29],__typename:[7]},GraphViewCollection:{defaultLayer:[11],layers:[7],excludeLayers:[7],excludeLayer:[7],subgraph:[7],subgraphNodeTypes:[7],excludeNodes:[7],valid:[11],window:[101],at:[95],latest:[11],snapshotAt:[95],snapshotLatest:[11],before:[95],after:[95],shrinkWindow:[101],shrinkStart:[95],shrinkEnd:[95],nodeFilter:[60],edgeFilter:[13],__typename:[7]},GraphWindowExpr:{start:[95],end:[95],expr:[29],__typename:[7]},GraphWindowSet:{count:[3],page:[27,{limit:[3,"Int!"],offset:[3],pageIndex:[3]}],list:[27],__typename:[7]},History:{earliestTime:[26],latestTime:[26],list:[26],listRev:[26],page:[26,{limit:[3,"Int!"],offset:[3],pageIndex:[3]}],pageRev:[26,{limit:[3,"Int!"],offset:[3],pageIndex:[3]}],isEmpty:[11],count:[3],timestamps:[41],datetimes:[39,{formatString:[7]}],eventId:[40],intervals:[45],__typename:[7]},HistoryDateTime:{list:[7,{filterBroken:[11]}],listRev:[7,{filterBroken:[11]}],page:[7,{limit:[3,"Int!"],offset:[3],pageIndex:[3],filterBroken:[11]}],pageRev:[7,{limit:[3,"Int!"],offset:[3],pageIndex:[3],filterBroken:[11]}],__typename:[7]},HistoryEventId:{list:[3],listRev:[3],page:[3,{limit:[3,"Int!"],offset:[3],pageIndex:[3]}],pageRev:[3,{limit:[3,"Int!"],offset:[3],pageIndex:[3]}],__typename:[7]},HistoryTimestamp:{list:[3],listRev:[3],page:[3,{limit:[3,"Int!"],offset:[3],pageIndex:[3]}],pageRev:[3,{limit:[3,"Int!"],offset:[3],pageIndex:[3]}],__typename:[7]},IndexSpec:{nodeMetadata:[7],nodeProperties:[7],edgeMetadata:[7],edgeProperties:[7],__typename:[7]},IndexSpecInput:{nodeProps:[86],edgeProps:[86],__typename:[7]},InputEdge:{src:[7],dst:[7],__typename:[7]},Intervals:{list:[3],listRev:[3],page:[3,{limit:[3,"Int!"],offset:[3],pageIndex:[3]}],pageRev:[3,{limit:[3,"Int!"],offset:[3],pageIndex:[3]}],mean:[8],median:[3],max:[3],min:[3],__typename:[7]},LayerSchema:{name:[7],edges:[15],__typename:[7]},MetaGraph:{name:[7],path:[7],created:[3],lastOpened:[3],lastUpdated:[3],nodeCount:[3],edgeCount:[3],metadata:[80],__typename:[7]},Metadata:{get:[80,{key:[7,"String!"]}],contains:[11,{key:[7,"String!"]}],keys:[7],values:[80,{keys:[7,"[String!]"]}],__typename:[7]},MutableEdge:{success:[11],edge:[10],src:[51],dst:[51],delete:[11,{time:[3,"Int!"],layer:[7]}],addMetadata:[11,{properties:[82,"[PropertyInput!]!"],layer:[7]}],updateMetadata:[11,{properties:[82,"[PropertyInput!]!"],layer:[7]}],addUpdates:[11,{time:[3,"Int!"],properties:[82,"[PropertyInput!]"],layer:[7]}],__typename:[7]},MutableGraph:{graph:[27],node:[51,{name:[7,"String!"]}],addNode:[51,{time:[3,"Int!"],name:[7,"String!"],properties:[82,"[PropertyInput!]"],nodeType:[7]}],createNode:[51,{time:[3,"Int!"],name:[7,"String!"],properties:[82,"[PropertyInput!]"],nodeType:[7]}],addNodes:[11,{nodes:[56,"[NodeAddition!]!"]}],edge:[49,{src:[7,"String!"],dst:[7,"String!"]}],addEdge:[49,{time:[3,"Int!"],src:[7,"String!"],dst:[7,"String!"],properties:[82,"[PropertyInput!]"],layer:[7]}],addEdges:[11,{edges:[12,"[EdgeAddition!]!"]}],deleteEdge:[49,{time:[3,"Int!"],src:[7,"String!"],dst:[7,"String!"],layer:[7]}],addProperties:[11,{t:[3,"Int!"],properties:[82,"[PropertyInput!]!"]}],addMetadata:[11,{properties:[82,"[PropertyInput!]!"]}],updateMetadata:[11,{properties:[82,"[PropertyInput!]!"]}],__typename:[7]},MutableNode:{success:[11],node:[55],addMetadata:[11,{properties:[82,"[PropertyInput!]!"]}],setNodeType:[11,{newType:[7,"String!"]}],updateMetadata:[11,{properties:[82,"[PropertyInput!]!"]}],addUpdates:[11,{time:[3,"Int!"],properties:[82,"[PropertyInput!]"]}],__typename:[7]},MutationPlugin:{NoOps:[7],__typename:[7]},Namespace:{graphs:[2],path:[7],parent:[53],children:[4],items:[5],__typename:[7]},NamespacedItem:{on_Namespace:[53],on_MetaGraph:[47],__typename:[7]},Node:{id:[7],name:[7],defaultLayer:[55],layers:[55,{names:[7,"[String!]!"]}],excludeLayers:[55,{names:[7,"[String!]!"]}],layer:[55,{name:[7,"String!"]}],excludeLayer:[55,{name:[7,"String!"]}],rolling:[68,{window:[102,"WindowDuration!"],step:[102],alignmentUnit:[0]}],expanding:[68,{step:[102,"WindowDuration!"],alignmentUnit:[0]}],window:[55,{start:[95,"TimeInput!"],end:[95,"TimeInput!"]}],at:[55,{time:[95,"TimeInput!"]}],latest:[55],snapshotAt:[55,{time:[95,"TimeInput!"]}],snapshotLatest:[55],before:[55,{time:[95,"TimeInput!"]}],after:[55,{time:[95,"TimeInput!"]}],shrinkWindow:[55,{start:[95,"TimeInput!"],end:[95,"TimeInput!"]}],shrinkStart:[55,{start:[95,"TimeInput!"]}],shrinkEnd:[55,{end:[95,"TimeInput!"]}],applyViews:[55,{views:[66,"[NodeViewCollection!]!"]}],earliestTime:[26],firstUpdate:[26],latestTime:[26],lastUpdate:[26],start:[26],end:[26],history:[38],edgeHistoryCount:[3],isActive:[11],nodeType:[7],properties:[79],metadata:[48],degree:[3],outDegree:[3],inDegree:[3],inComponent:[69],outComponent:[69],edges:[22,{select:[13]}],outEdges:[22,{select:[13]}],inEdges:[22,{select:[13]}],neighbours:[75,{select:[60]}],inNeighbours:[75,{select:[60]}],outNeighbours:[75,{select:[60]}],filter:[55,{expr:[60,"NodeFilter!"]}],__typename:[7]},NodeAddition:{name:[7],nodeType:[7],metadata:[82],updates:[94],__typename:[7]},NodeField:{},NodeFieldCondition:{eq:[97],ne:[97],gt:[97],ge:[97],lt:[97],le:[97],startsWith:[97],endsWith:[97],contains:[97],notContains:[97],isIn:[97],isNotIn:[97],__typename:[7]},NodeFieldFilterNew:{field:[57],where:[58],__typename:[7]},NodeFilter:{node:[59],property:[81],metadata:[81],temporalProperty:[81],and:[60],or:[60],not:[60],window:[67],at:[64],before:[64],after:[64],latest:[65],snapshotAt:[64],snapshotLatest:[65],layers:[61],isActive:[11],__typename:[7]},NodeLayersExpr:{names:[7],expr:[60],__typename:[7]},NodeSchema:{typeName:[7],properties:[84],metadata:[84],__typename:[7]},NodeSortBy:{reverse:[11],id:[11],time:[90],property:[7],__typename:[7]},NodeTimeExpr:{time:[95],expr:[60],__typename:[7]},NodeUnaryExpr:{expr:[60],__typename:[7]},NodeViewCollection:{defaultLayer:[11],latest:[11],snapshotLatest:[11],snapshotAt:[95],layers:[7],excludeLayers:[7],excludeLayer:[7],window:[101],at:[95],before:[95],after:[95],shrinkWindow:[101],shrinkStart:[95],shrinkEnd:[95],nodeFilter:[60],__typename:[7]},NodeWindowExpr:{start:[95],end:[95],expr:[60],__typename:[7]},NodeWindowSet:{count:[3],page:[55,{limit:[3,"Int!"],offset:[3],pageIndex:[3]}],list:[55],__typename:[7]},Nodes:{defaultLayer:[69],layers:[69,{names:[7,"[String!]!"]}],excludeLayers:[69,{names:[7,"[String!]!"]}],layer:[69,{name:[7,"String!"]}],excludeLayer:[69,{name:[7,"String!"]}],rolling:[71,{window:[102,"WindowDuration!"],step:[102],alignmentUnit:[0]}],expanding:[71,{step:[102,"WindowDuration!"],alignmentUnit:[0]}],window:[69,{start:[95,"TimeInput!"],end:[95,"TimeInput!"]}],at:[69,{time:[95,"TimeInput!"]}],latest:[69],snapshotAt:[69,{time:[95,"TimeInput!"]}],snapshotLatest:[69],before:[69,{time:[95,"TimeInput!"]}],after:[69,{time:[95,"TimeInput!"]}],shrinkWindow:[69,{start:[95,"TimeInput!"],end:[95,"TimeInput!"]}],shrinkStart:[69,{start:[95,"TimeInput!"]}],shrinkEnd:[69,{end:[95,"TimeInput!"]}],typeFilter:[69,{nodeTypes:[7,"[String!]!"]}],applyViews:[69,{views:[70,"[NodesViewCollection!]!"]}],sorted:[69,{sortBys:[63,"[NodeSortBy!]!"]}],start:[26],end:[26],count:[3],page:[55,{limit:[3,"Int!"],offset:[3],pageIndex:[3]}],list:[55],ids:[7],filter:[69,{expr:[60,"NodeFilter!"]}],select:[69,{expr:[60,"NodeFilter!"]}],__typename:[7]},NodesViewCollection:{defaultLayer:[11],latest:[11],snapshotLatest:[11],layers:[7],excludeLayers:[7],excludeLayer:[7],window:[101],at:[95],snapshotAt:[95],before:[95],after:[95],shrinkWindow:[101],shrinkStart:[95],shrinkEnd:[95],nodeFilter:[60],typeFilter:[7],__typename:[7]},NodesWindowSet:{count:[3],page:[69,{limit:[3,"Int!"],offset:[3],pageIndex:[3]}],list:[69],__typename:[7]},ObjectEntry:{key:[7],value:[97],__typename:[7]},OpenAIConfig:{model:[7],apiBase:[7],apiKeyEnv:[7],orgId:[7],projectId:[7],__typename:[7]},PagerankOutput:{name:[7],rank:[8],__typename:[7]},PathFromNode:{layers:[75,{names:[7,"[String!]!"]}],excludeLayers:[75,{names:[7,"[String!]!"]}],layer:[75,{name:[7,"String!"]}],excludeLayer:[75,{name:[7,"String!"]}],rolling:[77,{window:[102,"WindowDuration!"],step:[102],alignmentUnit:[0]}],expanding:[77,{step:[102,"WindowDuration!"],alignmentUnit:[0]}],window:[75,{start:[95,"TimeInput!"],end:[95,"TimeInput!"]}],at:[75,{time:[95,"TimeInput!"]}],snapshotLatest:[75],snapshotAt:[75,{time:[95,"TimeInput!"]}],latest:[75],before:[75,{time:[95,"TimeInput!"]}],after:[75,{time:[95,"TimeInput!"]}],shrinkWindow:[75,{start:[95,"TimeInput!"],end:[95,"TimeInput!"]}],shrinkStart:[75,{start:[95,"TimeInput!"]}],shrinkEnd:[75,{end:[95,"TimeInput!"]}],typeFilter:[75,{nodeTypes:[7,"[String!]!"]}],start:[26],end:[26],count:[3],page:[55,{limit:[3,"Int!"],offset:[3],pageIndex:[3]}],list:[55],ids:[7],applyViews:[75,{views:[76,"[PathFromNodeViewCollection!]!"]}],filter:[75,{expr:[60,"NodeFilter!"]}],select:[75,{expr:[60,"NodeFilter!"]}],__typename:[7]},PathFromNodeViewCollection:{latest:[11],snapshotLatest:[11],snapshotAt:[95],layers:[7],excludeLayers:[7],excludeLayer:[7],window:[101],at:[95],before:[95],after:[95],shrinkWindow:[101],shrinkStart:[95],shrinkEnd:[95],__typename:[7]},PathFromNodeWindowSet:{count:[3],page:[75,{limit:[3,"Int!"],offset:[3],pageIndex:[3]}],list:[75],__typename:[7]},PropCondition:{eq:[97],ne:[97],gt:[97],ge:[97],lt:[97],le:[97],startsWith:[97],endsWith:[97],contains:[97],notContains:[97],isIn:[97],isNotIn:[97],isSome:[11],isNone:[11],and:[78],or:[78],not:[78],first:[78],last:[78],any:[78],all:[78],sum:[78],avg:[78],min:[78],max:[78],len:[78],__typename:[7]},Properties:{get:[80,{key:[7,"String!"]}],contains:[11,{key:[7,"String!"]}],keys:[7],values:[80,{keys:[7,"[String!]"]}],temporal:[92],__typename:[7]},Property:{key:[7],asString:[7],value:[83],__typename:[7]},PropertyFilterNew:{name:[7],where:[78],__typename:[7]},PropertyInput:{key:[7],value:[97],__typename:[7]},PropertyOutput:{},PropertySchema:{key:[7],propertyType:[7],variants:[7],__typename:[7]},PropertyTuple:{time:[26],asString:[7],value:[83],__typename:[7]},PropsInput:{all:[1],some:[89],__typename:[7]},QueryPlugin:{NoOps:[7],__typename:[7]},ShortestPathOutput:{target:[7],nodes:[7],__typename:[7]},SomePropertySpec:{metadata:[7],properties:[7],__typename:[7]},SortByTime:{},Template:{enabled:[11],custom:[7],__typename:[7]},TemporalProperties:{get:[93,{key:[7,"String!"]}],contains:[11,{key:[7,"String!"]}],keys:[7],values:[93,{keys:[7,"[String!]"]}],__typename:[7]},TemporalProperty:{key:[7],history:[38],values:[7],at:[7,{t:[95,"TimeInput!"]}],latest:[7],unique:[7],orderedDedupe:[85,{latestTime:[11,"Boolean!"]}],__typename:[7]},TemporalPropertyInput:{time:[3],properties:[82],__typename:[7]},TimeInput:{},Upload:{},Value:{u8:[3],u16:[3],u32:[3],u64:[3],i32:[3],i64:[3],f32:[8],f64:[8],str:[7],bool:[11],list:[97],object:[72],__typename:[7]},VectorSelection:{nodes:[55],edges:[10],getDocuments:[6],addNodes:[98,{nodes:[7,"[String!]!"]}],addEdges:[98,{edges:[44,"[InputEdge!]!"]}],expand:[98,{hops:[3,"Int!"],window:[100]}],expandEntitiesBySimilarity:[98,{query:[7,"String!"],limit:[3,"Int!"],window:[100]}],expandNodesBySimilarity:[98,{query:[7,"String!"],limit:[3,"Int!"],window:[100]}],expandEdgesBySimilarity:[98,{query:[7,"String!"],limit:[3,"Int!"],window:[100]}],__typename:[7]},VectorisedGraph:{optimizeIndex:[11],emptySelection:[98],entitiesBySimilarity:[98,{query:[7,"String!"],limit:[3,"Int!"],window:[100]}],nodesBySimilarity:[98,{query:[7,"String!"],limit:[3,"Int!"],window:[100]}],edgesBySimilarity:[98,{query:[7,"String!"],limit:[3,"Int!"],window:[100]}],__typename:[7]},VectorisedGraphWindow:{start:[3],end:[3],__typename:[7]},Window:{start:[95],end:[95],__typename:[7]},WindowDuration:{duration:[7],epoch:[3],__typename:[7]},Query:{hello:[7],graph:[27,{path:[7,"String!"]}],updateGraph:[50,{path:[7,"String!"]}],vectoriseGraph:[11,{path:[7,"String!"],model:[25],nodes:[91],edges:[91]}],vectorisedGraph:[99,{path:[7,"String!"]}],namespaces:[4],namespace:[53,{path:[7,"String!"]}],root:[53],plugins:[87],receiveGraph:[7,{path:[7,"String!"]}],version:[7],__typename:[7]},Mutation:{plugins:[52],deleteGraph:[11,{path:[7,"String!"]}],newGraph:[11,{path:[7,"String!"],graphType:[33,"GraphType!"]}],moveGraph:[11,{path:[7,"String!"],newPath:[7,"String!"]}],copyGraph:[11,{path:[7,"String!"],newPath:[7,"String!"]}],uploadGraph:[7,{path:[7,"String!"],graph:[96,"Upload!"],overwrite:[11,"Boolean!"]}],sendGraph:[7,{path:[7,"String!"],graph:[7,"String!"],overwrite:[11,"Boolean!"]}],createSubgraph:[7,{parentPath:[7,"String!"],nodes:[7,"[String!]!"],newPath:[7,"String!"],overwrite:[11,"Boolean!"]}],createIndex:[11,{path:[7,"String!"],indexSpec:[43],inRam:[11,"Boolean!"]}],__typename:[7]}}},oTe=Iui(Nui),ucn=function(e){return kui({url:void 0,...e,queryRoot:oTe.Query,mutationRoot:oTe.Mutation,subscriptionRoot:oTe.Subscription})},ac=I.createContext({client:ucn({url:"http://localhost:1736"})}),dcn=I.createContext([{},()=>{}]);function Pui(){return I.useContext(dcn)}function Mui(){return I.useState({lastSeenGraphParams:void 0})}var hcn=I.createContext({}),Oui=e=>{switch(e.type){case"prop":return`${e.prop} changed to ${e.value} for ${e.node}`;case"edge":case"exploded-edge":{const t=e.layer==="_default"?"interacted with":e.layer;return`${e.src} -> ${t} -> ${e.dst}`}}},Nl=()=>{const e=I.useContext(hcn),t=window.location.origin,n=e.graphqlAddress??t;return{nameProperty:"name",nodeProperties:[],temporalNodeProperties:[],activityDescription:Oui,graphqlAddress:n,graphDisplayLimit:1e3,previewDisplayLimit:100,...e}};function TAt(e){const n=(e.message||"").trim();return!n||n.endsWith(":")?n.toLowerCase().startsWith("not found")?"Resource not found":"Something went wrong. Please try again.":n.length>100?n.substring(0,100)+"...":n}var Rui=new Ici({queryCache:new Jln({onError:e=>{console.error(e),ua.error(TAt(e))}}),mutationCache:new Xln({onError:e=>{console.error(e),ua.error(TAt(e))}})});function Fui({client:e,children:t}){const n=I.useMemo(()=>e??Rui,[e]),{graphqlAddress:i}=Nl(),r=I.useMemo(()=>ucn({url:i,batch:!0}),[i]);return S.jsx(Lci,{client:n,children:S.jsxs(ac.Provider,{value:{client:r},children:[t,S.jsx(Wci,{initialIsOpen:!1})]})})}function Bui({query:e,type:t,graphPath:n,start:i,end:r}){const{client:o}=I.useContext(ac);return Yf({enabled:e.length>0,queryKey:["document-search",e,t,n?.fullPath,i,r],queryFn:async()=>{if(n===void 0)throw new Error("Path is required for single graph search");const s=await zui(o,e,n,t,i,r);if(s===void 0)throw new Error("No data found");return s}})}function jui(e,t){if(!(e===void 0||t===void 0))return e.filter(n=>{switch(n.entity.__typename){case"Node":return n.entity.nodeType===t;case"Edge":return n.entity.src.nodeType===t&&n.entity.dst.nodeType===t}}).map(n=>{switch(n.entity.__typename){case"Edge":return{content:n.content,entity:{type:"edge",src:{name:n.entity.src.name,nodeType:n.entity.src.nodeType??void 0},dst:{name:n.entity.dst.name,nodeType:n.entity.dst.nodeType??void 0}}};case"Node":return{content:n.content,entity:{type:"node",name:n.entity.name,nodeType:n.entity.nodeType??void 0}}}})}async function zui(e,t,n,i,r,o){const s=r===void 0&&o===void 0?void 0:{start:r??Number.MIN_SAFE_INTEGER,end:o??Number.MAX_SAFE_INTEGER},a=await e.query({__name:"SimilaritySearch",vectorisedGraph:{__args:{path:n.fullPath},entitiesBySimilarity:{__args:{query:t,limit:100,window:s},getDocuments:{content:!0,entity:{__typename:!0,on_Node:{name:!0,nodeType:!0},on_Edge:{src:{name:!0,nodeType:!0},dst:{name:!0,nodeType:!0}}}}}}});return jui(a.vectorisedGraph?.entitiesBySimilarity.getDocuments,i)}var sTe=new Date,aTe=new Date;function Qf(e,t,n,i){function r(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return r.floor=o=>(e(o=new Date(+o)),o),r.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),r.round=o=>{const s=r(o),a=r.ceil(o);return o-s<a-o?s:a},r.offset=(o,s)=>(t(o=new Date(+o),s==null?1:Math.floor(s)),o),r.range=(o,s,a)=>{const l=[];if(o=r.ceil(o),a=a==null?1:Math.floor(a),!(o<s)||!(a>0))return l;let c;do l.push(c=new Date(+o)),t(o,a),e(o);while(c<o&&o<s);return l},r.filter=o=>Qf(s=>{if(s>=s)for(;e(s),!o(s);)s.setTime(s-1)},(s,a)=>{if(s>=s)if(a<0)for(;++a<=0;)for(;t(s,-1),!o(s););else for(;--a>=0;)for(;t(s,1),!o(s););}),n&&(r.count=(o,s)=>(sTe.setTime(+o),aTe.setTime(+s),e(sTe),e(aTe),Math.floor(n(sTe,aTe))),r.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?r.filter(i?s=>i(s)%o===0:s=>r.count(0,s)%o===0):r)),r}var fv=Qf(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);fv.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Qf(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):fv);fv.range;var pD=1e3,M_=pD*60,gD=M_*60,KD=gD*24,fGe=KD*7,kAt=KD*30,lTe=KD*365,O_=Qf(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*pD)},(e,t)=>(t-e)/pD,e=>e.getUTCSeconds());O_.range;var yx=Qf(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*pD)},(e,t)=>{e.setTime(+e+t*M_)},(e,t)=>(t-e)/M_,e=>e.getMinutes());yx.range;var pGe=Qf(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*M_)},(e,t)=>(t-e)/M_,e=>e.getUTCMinutes());pGe.range;var xD=Qf(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*pD-e.getMinutes()*M_)},(e,t)=>{e.setTime(+e+t*gD)},(e,t)=>(t-e)/gD,e=>e.getHours());xD.range;var gGe=Qf(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*gD)},(e,t)=>(t-e)/gD,e=>e.getUTCHours());gGe.range;var qL=Qf(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*M_)/KD,e=>e.getDate()-1);qL.range;var Fme=Qf(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/KD,e=>e.getUTCDate()-1);Fme.range;var fcn=Qf(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/KD,e=>Math.floor(e/KD));fcn.range;function mF(e){return Qf(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*M_)/fGe)}var JY=mF(0),che=mF(1),Vui=mF(2),Hui=mF(3),b9=mF(4),Wui=mF(5),Uui=mF(6);JY.range;che.range;Vui.range;Hui.range;b9.range;Wui.range;Uui.range;function vF(e){return Qf(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/fGe)}var Bme=vF(0),uhe=vF(1),$ui=vF(2),qui=vF(3),_9=vF(4),Gui=vF(5),Kui=vF(6);Bme.range;uhe.range;$ui.range;qui.range;_9.range;Gui.range;Kui.range;var hL=Qf(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());hL.range;var mGe=Qf(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());mGe.range;var A0=Qf(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());A0.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Qf(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});A0.range;var YD=Qf(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());YD.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Qf(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});YD.range;function oce(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Yui(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function vGe(e){let t,n,i;e.length!==2?(t=oce,n=(a,l)=>oce(e(a),l),i=(a,l)=>e(a)-l):(t=e===oce||e===Yui?e:Qui,n=e,i=e);function r(a,l,c=0,u=a.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(a[d],l)<0?c=d+1:u=d}while(c<u)}return c}function o(a,l,c=0,u=a.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(a[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function s(a,l,c=0,u=a.length){const d=r(a,l,c,u-1);return d>c&&i(a[d-1],l)>-i(a[d],l)?d-1:d}return{left:r,center:s,right:o}}function Qui(){return 0}function Zui(e){return e===null?NaN:+e}var Xui=vGe(oce),Jui=Xui.right;vGe(Zui).center;var edi=Jui,IAt=class extends Map{constructor(e,t=idi){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(const[n,i]of e)this.set(n,i)}get(e){return super.get(LAt(this,e))}has(e){return super.has(LAt(this,e))}set(e,t){return super.set(tdi(this,e),t)}delete(e){return super.delete(ndi(this,e))}};function LAt({_intern:e,_key:t},n){const i=t(n);return e.has(i)?e.get(i):n}function tdi({_intern:e,_key:t},n){const i=t(n);return e.has(i)?e.get(i):(e.set(i,n),n)}function ndi({_intern:e,_key:t},n){const i=t(n);return e.has(i)&&(n=e.get(i),e.delete(i)),n}function idi(e){return e!==null&&typeof e=="object"?e.valueOf():e}var rdi=Math.sqrt(50),odi=Math.sqrt(10),sdi=Math.sqrt(2);function pcn(e,t,n){const i=(t-e)/Math.max(0,n),r=Math.floor(Math.log10(i)),o=i/Math.pow(10,r),s=o>=rdi?10:o>=odi?5:o>=sdi?2:1;let a,l,c;return r<0?(c=Math.pow(10,-r)/s,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,r)*s,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?pcn(e,t,n*2):[a,l,c]}function NAt(e,t,n){return t=+t,e=+e,n=+n,pcn(e,t,n)[2]}function PAt(e,t,n){t=+t,e=+e,n=+n;const i=t<e,r=i?NAt(t,e,n):NAt(e,t,n);return(i?-1:1)*(r<0?1/-r:r)}function adi(e,t,n){e=+e,t=+t,n=(r=arguments.length)<2?(t=e,e=0,1):r<3?1:+n;for(var i=-1,r=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(r);++i<r;)o[i]=e+i*n;return o}function ldi(e,t,n,i,r,o){const s=[[O_,1,pD],[O_,5,5*pD],[O_,15,15*pD],[O_,30,30*pD],[o,1,M_],[o,5,5*M_],[o,15,15*M_],[o,30,30*M_],[r,1,gD],[r,3,3*gD],[r,6,6*gD],[r,12,12*gD],[i,1,KD],[i,2,2*KD],[n,1,fGe],[t,1,kAt],[t,3,3*kAt],[e,1,lTe]];function a(c,u,d){const h=u<c;h&&([c,u]=[u,c]);const f=d&&typeof d.range=="function"?d:l(c,u,d),p=f?f.range(c,+u+1):[];return h?p.reverse():p}function l(c,u,d){const h=Math.abs(u-c)/d,f=vGe(([,,m])=>m).right(s,h);if(f===s.length)return e.every(PAt(c/lTe,u/lTe,d));if(f===0)return fv.every(Math.max(PAt(c,u,d),1));const[p,g]=s[h/s[f-1][2]<s[f][2]/h?f-1:f];return p.every(g)}return[a,l]}var[cdi,udi]=ldi(YD,mGe,Bme,fcn,gGe,pGe),Di={};oc(Di,{$brand:()=>vcn,$input:()=>Ydn,$output:()=>Kdn,NEVER:()=>mcn,TimePrecision:()=>ehn,ZodAny:()=>kKe,ZodArray:()=>PKe,ZodBase64:()=>mve,ZodBase64URL:()=>vve,ZodBigInt:()=>vQ,ZodBigIntFormat:()=>_ve,ZodBoolean:()=>mQ,ZodCIDRv4:()=>pve,ZodCIDRv6:()=>gve,ZodCUID:()=>ave,ZodCUID2:()=>lve,ZodCatch:()=>tYe,ZodCodec:()=>Tve,ZodCustom:()=>SQ,ZodCustomStringFormat:()=>nj,ZodDate:()=>Cve,ZodDefault:()=>YKe,ZodDiscriminatedUnion:()=>OKe,ZodE164:()=>yve,ZodEmail:()=>rve,ZodEmoji:()=>ove,ZodEnum:()=>D9,ZodError:()=>kpi,ZodExactOptional:()=>qKe,ZodFile:()=>UKe,ZodFirstPartyTypeKind:()=>N9e,ZodFunction:()=>uYe,ZodGUID:()=>LG,ZodIPv4:()=>hve,ZodIPv6:()=>fve,ZodISODate:()=>bKe,ZodISODateTime:()=>yKe,ZodISODuration:()=>wKe,ZodISOTime:()=>_Ke,ZodIntersection:()=>RKe,ZodIssueCode:()=>Ipi,ZodJWT:()=>bve,ZodKSUID:()=>dve,ZodLazy:()=>aYe,ZodLiteral:()=>WKe,ZodMAC:()=>CKe,ZodMap:()=>VKe,ZodNaN:()=>iYe,ZodNanoID:()=>sve,ZodNever:()=>LKe,ZodNonOptional:()=>Ave,ZodNull:()=>DKe,ZodNullable:()=>KKe,ZodNumber:()=>gQ,ZodNumberFormat:()=>_F,ZodObject:()=>bQ,ZodOptional:()=>CQ,ZodPipe:()=>Dve,ZodPrefault:()=>ZKe,ZodPromise:()=>cYe,ZodReadonly:()=>rYe,ZodRealError:()=>Pb,ZodRecord:()=>wQ,ZodSet:()=>HKe,ZodString:()=>fQ,ZodStringFormat:()=>uu,ZodSuccess:()=>eYe,ZodSymbol:()=>EKe,ZodTemplateLiteral:()=>sYe,ZodTransform:()=>$Ke,ZodTuple:()=>BKe,ZodType:()=>ws,ZodULID:()=>cve,ZodURL:()=>pQ,ZodUUID:()=>bx,ZodUndefined:()=>AKe,ZodUnion:()=>_Q,ZodUnknown:()=>IKe,ZodVoid:()=>NKe,ZodXID:()=>uve,ZodXor:()=>MKe,_ZodString:()=>ive,_default:()=>QKe,_function:()=>bhe,any:()=>xpn,array:()=>yQ,base64:()=>apn,base64url:()=>lpn,bigint:()=>bpn,boolean:()=>xKe,catch:()=>nYe,check:()=>qpn,cidrv4:()=>opn,cidrv6:()=>spn,clone:()=>Ew,codec:()=>Wpn,coerce:()=>tgn,config:()=>mm,core:()=>gcn,cuid:()=>Zfn,cuid2:()=>Xfn,custom:()=>Gpn,date:()=>Apn,decode:()=>Mfn,decodeAsync:()=>Rfn,describe:()=>Kpn,discriminatedUnion:()=>Npn,e164:()=>cpn,email:()=>Vfn,emoji:()=>Yfn,encode:()=>Pfn,encodeAsync:()=>Ofn,endsWith:()=>Qme,enum:()=>xve,exactOptional:()=>GKe,file:()=>jpn,flattenError:()=>wGe,float32:()=>gpn,float64:()=>mpn,formatError:()=>CGe,fromJSONSchema:()=>Rpi,function:()=>bhe,getErrorMap:()=>Npi,globalRegistry:()=>R_,gt:()=>KL,gte:()=>C0,guid:()=>Hfn,hash:()=>ppn,hex:()=>fpn,hostname:()=>hpn,httpUrl:()=>Kfn,includes:()=>Kme,instanceof:()=>Qpn,int:()=>yhe,int32:()=>vpn,int64:()=>_pn,intersection:()=>FKe,ipv4:()=>npn,ipv6:()=>rpn,iso:()=>vKe,json:()=>Xpn,jwt:()=>upn,keyof:()=>Dpn,ksuid:()=>tpn,lazy:()=>lYe,length:()=>dQ,literal:()=>Bpn,locales:()=>HGe,looseObject:()=>Ipn,looseRecord:()=>Mpn,lowercase:()=>qme,lt:()=>GL,lte:()=>$_,mac:()=>ipn,map:()=>Opn,maxLength:()=>uQ,maxSize:()=>tj,meta:()=>Ypn,mime:()=>Zme,minLength:()=>y2,minSize:()=>YL,multipleOf:()=>S9,nan:()=>Hpn,nanoid:()=>Qfn,nativeEnum:()=>Fpn,negative:()=>dKe,never:()=>wve,nonnegative:()=>fKe,nonoptional:()=>JKe,nonpositive:()=>hKe,normalize:()=>Xme,null:()=>TKe,nullable:()=>PG,nullish:()=>zpn,number:()=>SKe,object:()=>Tpn,optional:()=>NG,overwrite:()=>kT,parse:()=>kfn,parseAsync:()=>Ifn,partialRecord:()=>Ppn,pipe:()=>MG,positive:()=>uKe,prefault:()=>XKe,preprocess:()=>Jpn,prettifyError:()=>Lcn,promise:()=>$pn,property:()=>pKe,readonly:()=>oYe,record:()=>zKe,refine:()=>dYe,regex:()=>$me,regexes:()=>bF,registry:()=>WGe,safeDecode:()=>Bfn,safeDecodeAsync:()=>zfn,safeEncode:()=>Ffn,safeEncodeAsync:()=>jfn,safeParse:()=>Lfn,safeParseAsync:()=>Nfn,set:()=>Rpn,setErrorMap:()=>Lpi,size:()=>cQ,slugify:()=>nve,startsWith:()=>Yme,strictObject:()=>kpn,string:()=>vhe,stringFormat:()=>dpn,stringbool:()=>Zpn,success:()=>Vpn,superRefine:()=>hYe,symbol:()=>Cpn,templateLiteral:()=>Upn,toJSONSchema:()=>wfn,toLowerCase:()=>eve,toUpperCase:()=>tve,transform:()=>Eve,treeifyError:()=>kcn,trim:()=>Jme,tuple:()=>jKe,uint32:()=>ypn,uint64:()=>wpn,ulid:()=>Jfn,undefined:()=>Spn,union:()=>Sve,unknown:()=>b2,uppercase:()=>Gme,url:()=>Gfn,util:()=>Ma,uuid:()=>Wfn,uuidv4:()=>Ufn,uuidv6:()=>$fn,uuidv7:()=>qfn,void:()=>Epn,xid:()=>epn,xor:()=>Lpn});var gcn={};oc(gcn,{$ZodAny:()=>udn,$ZodArray:()=>gdn,$ZodAsyncError:()=>ER,$ZodBase64:()=>Xun,$ZodBase64URL:()=>edn,$ZodBigInt:()=>BGe,$ZodBigIntFormat:()=>sdn,$ZodBoolean:()=>FGe,$ZodCIDRv4:()=>Qun,$ZodCIDRv6:()=>Zun,$ZodCUID:()=>Bun,$ZodCUID2:()=>jun,$ZodCatch:()=>Rdn,$ZodCheck:()=>Qu,$ZodCheckBigIntFormat:()=>pun,$ZodCheckEndsWith:()=>Aun,$ZodCheckGreaterThan:()=>MGe,$ZodCheckIncludes:()=>xun,$ZodCheckLengthEquals:()=>_un,$ZodCheckLessThan:()=>PGe,$ZodCheckLowerCase:()=>Cun,$ZodCheckMaxLength:()=>yun,$ZodCheckMaxSize:()=>gun,$ZodCheckMimeType:()=>Tun,$ZodCheckMinLength:()=>bun,$ZodCheckMinSize:()=>mun,$ZodCheckMultipleOf:()=>hun,$ZodCheckNumberFormat:()=>fun,$ZodCheckOverwrite:()=>kun,$ZodCheckProperty:()=>Dun,$ZodCheckRegex:()=>wun,$ZodCheckSizeEquals:()=>vun,$ZodCheckStartsWith:()=>Eun,$ZodCheckStringFormat:()=>aQ,$ZodCheckUpperCase:()=>Sun,$ZodCodec:()=>VGe,$ZodCustom:()=>Udn,$ZodCustomStringFormat:()=>rdn,$ZodDate:()=>pdn,$ZodDefault:()=>Ndn,$ZodDiscriminatedUnion:()=>wdn,$ZodE164:()=>tdn,$ZodEmail:()=>Mun,$ZodEmoji:()=>Run,$ZodEncodeError:()=>jme,$ZodEnum:()=>Adn,$ZodError:()=>_Ge,$ZodExactOptional:()=>Idn,$ZodFile:()=>Tdn,$ZodFunction:()=>Vdn,$ZodGUID:()=>Nun,$ZodIPv4:()=>Gun,$ZodIPv6:()=>Kun,$ZodISODate:()=>Uun,$ZodISODateTime:()=>Wun,$ZodISODuration:()=>qun,$ZodISOTime:()=>$un,$ZodIntersection:()=>Cdn,$ZodJWT:()=>idn,$ZodKSUID:()=>Hun,$ZodLazy:()=>Wdn,$ZodLiteral:()=>Ddn,$ZodMAC:()=>Yun,$ZodMap:()=>xdn,$ZodNaN:()=>Fdn,$ZodNanoID:()=>Fun,$ZodNever:()=>hdn,$ZodNonOptional:()=>Mdn,$ZodNull:()=>cdn,$ZodNullable:()=>Ldn,$ZodNumber:()=>RGe,$ZodNumberFormat:()=>odn,$ZodObject:()=>ydn,$ZodObjectJIT:()=>bdn,$ZodOptional:()=>zGe,$ZodPipe:()=>Bdn,$ZodPrefault:()=>Pdn,$ZodPromise:()=>Hdn,$ZodReadonly:()=>jdn,$ZodRealError:()=>Nb,$ZodRecord:()=>Sdn,$ZodRegistry:()=>Qdn,$ZodSet:()=>Edn,$ZodString:()=>lQ,$ZodStringFormat:()=>cu,$ZodSuccess:()=>Odn,$ZodSymbol:()=>adn,$ZodTemplateLiteral:()=>zdn,$ZodTransform:()=>kdn,$ZodTuple:()=>jGe,$ZodType:()=>Os,$ZodULID:()=>zun,$ZodURL:()=>Oun,$ZodUUID:()=>Pun,$ZodUndefined:()=>ldn,$ZodUnion:()=>Wme,$ZodUnknown:()=>ddn,$ZodVoid:()=>fdn,$ZodXID:()=>Vun,$ZodXor:()=>_dn,$brand:()=>vcn,$constructor:()=>fn,$input:()=>Ydn,$output:()=>Kdn,Doc:()=>Iun,JSONSchema:()=>Tpi,JSONSchemaGenerator:()=>Dpi,NEVER:()=>mcn,TimePrecision:()=>ehn,_any:()=>whn,_array:()=>Thn,_base64:()=>sKe,_base64url:()=>aKe,_bigint:()=>phn,_boolean:()=>hhn,_catch:()=>_pi,_check:()=>Phn,_cidrv4:()=>rKe,_cidrv6:()=>oKe,_coercedBigint:()=>ghn,_coercedBoolean:()=>fhn,_coercedDate:()=>Ahn,_coercedNumber:()=>shn,_coercedString:()=>Xdn,_cuid:()=>ZGe,_cuid2:()=>XGe,_custom:()=>Ihn,_date:()=>Ehn,_decode:()=>xGe,_decodeAsync:()=>AGe,_default:()=>vpi,_discriminatedUnion:()=>opi,_e164:()=>lKe,_email:()=>UGe,_emoji:()=>YGe,_encode:()=>SGe,_encodeAsync:()=>EGe,_endsWith:()=>Qme,_enum:()=>dpi,_file:()=>khn,_float32:()=>lhn,_float64:()=>chn,_gt:()=>KL,_gte:()=>C0,_guid:()=>mhe,_includes:()=>Kme,_int:()=>ahn,_int32:()=>uhn,_int64:()=>mhn,_intersection:()=>spi,_ipv4:()=>nKe,_ipv6:()=>iKe,_isoDate:()=>nhn,_isoDateTime:()=>thn,_isoDuration:()=>rhn,_isoTime:()=>ihn,_jwt:()=>cKe,_ksuid:()=>tKe,_lazy:()=>xpi,_length:()=>dQ,_literal:()=>fpi,_lowercase:()=>qme,_lt:()=>GL,_lte:()=>$_,_mac:()=>Jdn,_map:()=>cpi,_max:()=>$_,_maxLength:()=>uQ,_maxSize:()=>tj,_mime:()=>Zme,_min:()=>C0,_minLength:()=>y2,_minSize:()=>YL,_multipleOf:()=>S9,_nan:()=>Dhn,_nanoid:()=>QGe,_nativeEnum:()=>hpi,_negative:()=>dKe,_never:()=>Shn,_nonnegative:()=>fKe,_nonoptional:()=>ypi,_nonpositive:()=>hKe,_normalize:()=>Xme,_null:()=>_hn,_nullable:()=>mpi,_number:()=>ohn,_optional:()=>gpi,_overwrite:()=>kT,_parse:()=>tQ,_parseAsync:()=>nQ,_pipe:()=>wpi,_positive:()=>uKe,_promise:()=>Epi,_property:()=>pKe,_readonly:()=>Cpi,_record:()=>lpi,_refine:()=>Lhn,_regex:()=>$me,_safeDecode:()=>TGe,_safeDecodeAsync:()=>IGe,_safeEncode:()=>DGe,_safeEncodeAsync:()=>kGe,_safeParse:()=>iQ,_safeParseAsync:()=>rQ,_set:()=>upi,_size:()=>cQ,_slugify:()=>nve,_startsWith:()=>Yme,_string:()=>Zdn,_stringFormat:()=>hQ,_stringbool:()=>Rhn,_success:()=>bpi,_superRefine:()=>Nhn,_symbol:()=>yhn,_templateLiteral:()=>Spi,_toLowerCase:()=>eve,_toUpperCase:()=>tve,_transform:()=>ppi,_trim:()=>Jme,_tuple:()=>api,_uint32:()=>dhn,_uint64:()=>vhn,_ulid:()=>JGe,_undefined:()=>bhn,_union:()=>ipi,_unknown:()=>Chn,_uppercase:()=>Gme,_url:()=>Ume,_uuid:()=>$Ge,_uuidv4:()=>qGe,_uuidv6:()=>GGe,_uuidv7:()=>KGe,_void:()=>xhn,_xid:()=>eKe,_xor:()=>rpi,clone:()=>Ew,config:()=>mm,createStandardJSONSchemaMethod:()=>IG,createToJSONSchemaMethod:()=>Fhn,decode:()=>Bdi,decodeAsync:()=>zdi,describe:()=>Mhn,encode:()=>Fdi,encodeAsync:()=>jdi,extractDefs:()=>E9,finalize:()=>A9,flattenError:()=>wGe,formatError:()=>CGe,globalConfig:()=>dhe,globalRegistry:()=>R_,initializeContext:()=>x9,isValidBase64:()=>OGe,isValidBase64URL:()=>Jun,isValidJWT:()=>ndn,locales:()=>HGe,meta:()=>Ohn,parse:()=>T9e,parseAsync:()=>k9e,prettifyError:()=>Lcn,process:()=>Wc,regexes:()=>bF,registry:()=>WGe,safeDecode:()=>Hdi,safeDecodeAsync:()=>Udi,safeEncode:()=>Vdi,safeEncodeAsync:()=>Wdi,safeParse:()=>Ncn,safeParseAsync:()=>Pcn,toDotPath:()=>Icn,toJSONSchema:()=>wfn,treeifyError:()=>kcn,util:()=>Ma,version:()=>Lun});var mcn=Object.freeze({status:"aborted"});function fn(e,t,n){function i(a,l){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,l);const c=s.prototype,u=Object.keys(c);for(let d=0;d<u.length;d++){const h=u[d];h in a||(a[h]=c[h].bind(a))}}const r=n?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function s(a){var l;const c=n?.Parent?new o:this;i(c,a),(l=c._zod).deferred??(l.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(s,"init",{value:i}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>n?.Parent&&a instanceof n.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}var vcn=Symbol("zod_brand"),ER=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},jme=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}},dhe={};function mm(e){return e&&Object.assign(dhe,e),dhe}var Ma={};oc(Ma,{BIGINT_FORMAT_RANGES:()=>Ecn,Class:()=>Rdi,NUMBER_FORMAT_RANGES:()=>xcn,aborted:()=>GO,allowsEval:()=>_cn,assert:()=>gdi,assertEqual:()=>ddi,assertIs:()=>fdi,assertNever:()=>pdi,assertNotEqual:()=>hdi,assignProp:()=>KN,base64ToUint8Array:()=>Acn,base64urlToUint8Array:()=>Ndi,cached:()=>eQ,captureStackTrace:()=>bGe,cleanEnum:()=>Ldi,cleanRegex:()=>zme,clone:()=>Ew,cloneDef:()=>vdi,createTransparentProxy:()=>Sdi,defineLazy:()=>ba,esc:()=>D9e,escapeRegex:()=>QD,extend:()=>Adi,finalizeIssue:()=>ow,floatSafeRemainder:()=>ycn,getElementAtPath:()=>ydi,getEnumValues:()=>yGe,getLengthableOrigin:()=>Hme,getParsedType:()=>Cdi,getSizableOrigin:()=>Vme,hexToUint8Array:()=>Mdi,isObject:()=>w9,isPlainObject:()=>v2,issue:()=>phe,joinValues:()=>$i,jsonStringifyReplacer:()=>hhe,merge:()=>Tdi,mergeDefs:()=>TT,normalizeParams:()=>Qi,nullish:()=>yF,numKeys:()=>wdi,objectClone:()=>mdi,omit:()=>Edi,optionalKeys:()=>Scn,parsedType:()=>us,partial:()=>kdi,pick:()=>xdi,prefixIssues:()=>Z1,primitiveTypes:()=>Ccn,promiseAllObject:()=>bdi,propertyKeyTypes:()=>fhe,randomString:()=>_di,required:()=>Idi,safeExtend:()=>Ddi,shallowClone:()=>wcn,slugify:()=>bcn,stringifyPrimitive:()=>is,uint8ArrayToBase64:()=>Dcn,uint8ArrayToBase64url:()=>Pdi,uint8ArrayToHex:()=>Odi,unwrapMessage:()=>HW});function ddi(e){return e}function hdi(e){return e}function fdi(e){}function pdi(e){throw new Error("Unexpected value in exhaustive check")}function gdi(e){}function yGe(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}function $i(e,t="|"){return e.map(n=>is(n)).join(t)}function hhe(e,t){return typeof t=="bigint"?t.toString():t}function eQ(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function yF(e){return e==null}function zme(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function ycn(e,t){const n=(e.toString().split(".")[1]||"").length,i=t.toString();let r=(i.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(i)){const l=i.match(/\d?e-(\d?)/);l?.[1]&&(r=Number.parseInt(l[1]))}const o=n>r?n:r,s=Number.parseInt(e.toFixed(o).replace(".","")),a=Number.parseInt(t.toFixed(o).replace(".",""));return s%a/10**o}var MAt=Symbol("evaluating");function ba(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==MAt)return i===void 0&&(i=MAt,i=n()),i},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function mdi(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function KN(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function TT(...e){const t={};for(const n of e){const i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function vdi(e){return TT(e._zod.def)}function ydi(e,t){return t?t.reduce((n,i)=>n?.[i],e):e}function bdi(e){const t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{const r={};for(let o=0;o<t.length;o++)r[t[o]]=i[o];return r})}function _di(e=10){const t="abcdefghijklmnopqrstuvwxyz";let n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function D9e(e){return JSON.stringify(e)}function bcn(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var bGe="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function w9(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var _cn=eQ(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function v2(e){if(w9(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(w9(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function wcn(e){return v2(e)?{...e}:Array.isArray(e)?[...e]:e}function wdi(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var Cdi=e=>{const t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},fhe=new Set(["string","number","symbol"]),Ccn=new Set(["string","number","bigint","boolean","symbol","undefined"]);function QD(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ew(e,t,n){const i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function Qi(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Sdi(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,o){return t??(t=e()),Reflect.set(t,i,r,o)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}function is(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Scn(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var xcn={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Ecn={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function xdi(e,t){const n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const o=TT(e._zod.def,{get shape(){const s={};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(s[a]=n.shape[a])}return KN(this,"shape",s),s},checks:[]});return Ew(e,o)}function Edi(e,t){const n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const o=TT(e._zod.def,{get shape(){const s={...e._zod.def.shape};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete s[a]}return KN(this,"shape",s),s},checks:[]});return Ew(e,o)}function Adi(e,t){if(!v2(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const o=e._zod.def.shape;for(const s in t)if(Object.getOwnPropertyDescriptor(o,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const r=TT(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return KN(this,"shape",o),o}});return Ew(e,r)}function Ddi(e,t){if(!v2(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=TT(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return KN(this,"shape",i),i}});return Ew(e,n)}function Tdi(e,t){const n=TT(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return KN(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return Ew(e,n)}function kdi(e,t,n){const r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const s=TT(t._zod.def,{get shape(){const a=t._zod.def.shape,l={...a};if(n)for(const c in n){if(!(c in a))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(l[c]=e?new e({type:"optional",innerType:a[c]}):a[c])}else for(const c in a)l[c]=e?new e({type:"optional",innerType:a[c]}):a[c];return KN(this,"shape",l),l},checks:[]});return Ew(t,s)}function Idi(e,t,n){const i=TT(t._zod.def,{get shape(){const r=t._zod.def.shape,o={...r};if(n)for(const s in n){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=new e({type:"nonoptional",innerType:r[s]}))}else for(const s in r)o[s]=new e({type:"nonoptional",innerType:r[s]});return KN(this,"shape",o),o}});return Ew(t,i)}function GO(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Z1(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function HW(e){return typeof e=="string"?e:e?.message}function ow(e,t,n){const i={...e,path:e.path??[]};if(!e.message){const r=HW(e.inst?._zod.def?.error?.(e))??HW(t?.error?.(e))??HW(n.customError?.(e))??HW(n.localeError?.(e))??"Invalid input";i.message=r}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function Vme(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Hme(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function us(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";const n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function phe(...e){const[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}function Ldi(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function Acn(e){const t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}function Dcn(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function Ndi(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return Acn(t+n)}function Pdi(e){return Dcn(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Mdi(e){const t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");const n=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)n[i/2]=Number.parseInt(t.slice(i,i+2),16);return n}function Odi(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Rdi=class{constructor(...e){}},Tcn=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,hhe,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},_Ge=fn("$ZodError",Tcn),Nb=fn("$ZodError",Tcn,{Parent:Error});function wGe(e,t=n=>n.message){const n={},i=[];for(const r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}function CGe(e,t=n=>n.message){const n={_errors:[]},i=r=>{for(const o of r.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(s=>i({issues:s}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)n._errors.push(t(o));else{let s=n,a=0;for(;a<o.path.length;){const l=o.path[a];a===o.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(t(o))):s[l]=s[l]||{_errors:[]},s=s[l],a++}}};return i(e),n}function kcn(e,t=n=>n.message){const n={errors:[]},i=(r,o=[])=>{var s,a;for(const l of r.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(c=>i({issues:c},l.path));else if(l.code==="invalid_key")i({issues:l.issues},l.path);else if(l.code==="invalid_element")i({issues:l.issues},l.path);else{const c=[...o,...l.path];if(c.length===0){n.errors.push(t(l));continue}let u=n,d=0;for(;d<c.length;){const h=c[d],f=d===c.length-1;typeof h=="string"?(u.properties??(u.properties={}),(s=u.properties)[h]??(s[h]={errors:[]}),u=u.properties[h]):(u.items??(u.items=[]),(a=u.items)[h]??(a[h]={errors:[]}),u=u.items[h]),f&&u.errors.push(t(l)),d++}}};return i(e),n}function Icn(e){const t=[],n=e.map(i=>typeof i=="object"?i.key:i);for(const i of n)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function Lcn(e){const t=[],n=[...e.issues].sort((i,r)=>(i.path??[]).length-(r.path??[]).length);for(const i of n)t.push(`✖ ${i.message}`),i.path?.length&&t.push(`  → at ${Icn(i.path)}`);return t.join(`
`)}var tQ=e=>(t,n,i,r)=>{const o=i?Object.assign(i,{async:!1}):{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new ER;if(s.issues.length){const a=new(r?.Err??e)(s.issues.map(l=>ow(l,o,mm())));throw bGe(a,r?.callee),a}return s.value},T9e=tQ(Nb),nQ=e=>async(t,n,i,r)=>{const o=i?Object.assign(i,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new(r?.Err??e)(s.issues.map(l=>ow(l,o,mm())));throw bGe(a,r?.callee),a}return s.value},k9e=nQ(Nb),iQ=e=>(t,n,i)=>{const r=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},r);if(o instanceof Promise)throw new ER;return o.issues.length?{success:!1,error:new(e??_Ge)(o.issues.map(s=>ow(s,r,mm())))}:{success:!0,data:o.value}},Ncn=iQ(Nb),rQ=e=>async(t,n,i)=>{const r=i?Object.assign(i,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(s=>ow(s,r,mm())))}:{success:!0,data:o.value}},Pcn=rQ(Nb),SGe=e=>(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return tQ(e)(t,n,r)},Fdi=SGe(Nb),xGe=e=>(t,n,i)=>tQ(e)(t,n,i),Bdi=xGe(Nb),EGe=e=>async(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return nQ(e)(t,n,r)},jdi=EGe(Nb),AGe=e=>async(t,n,i)=>nQ(e)(t,n,i),zdi=AGe(Nb),DGe=e=>(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return iQ(e)(t,n,r)},Vdi=DGe(Nb),TGe=e=>(t,n,i)=>iQ(e)(t,n,i),Hdi=TGe(Nb),kGe=e=>async(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return rQ(e)(t,n,r)},Wdi=kGe(Nb),IGe=e=>async(t,n,i)=>rQ(e)(t,n,i),Udi=IGe(Nb),bF={};oc(bF,{base64:()=>Qcn,base64url:()=>LGe,bigint:()=>run,boolean:()=>sun,browserEmail:()=>Xdi,cidrv4:()=>Kcn,cidrv6:()=>Ycn,cuid:()=>Mcn,cuid2:()=>Ocn,date:()=>Jcn,datetime:()=>nun,domain:()=>thi,duration:()=>zcn,e164:()=>Zcn,email:()=>Hcn,emoji:()=>Ucn,extendedDuration:()=>$di,guid:()=>Vcn,hex:()=>nhi,hostname:()=>ehi,html5Email:()=>Ydi,idnEmail:()=>Zdi,integer:()=>oun,ipv4:()=>$cn,ipv6:()=>qcn,ksuid:()=>Bcn,lowercase:()=>cun,mac:()=>Gcn,md5_base64:()=>rhi,md5_base64url:()=>ohi,md5_hex:()=>ihi,nanoid:()=>jcn,null:()=>aun,number:()=>NGe,rfc5322Email:()=>Qdi,sha1_base64:()=>ahi,sha1_base64url:()=>lhi,sha1_hex:()=>shi,sha256_base64:()=>uhi,sha256_base64url:()=>dhi,sha256_hex:()=>chi,sha384_base64:()=>fhi,sha384_base64url:()=>phi,sha384_hex:()=>hhi,sha512_base64:()=>mhi,sha512_base64url:()=>vhi,sha512_hex:()=>ghi,string:()=>iun,time:()=>tun,ulid:()=>Rcn,undefined:()=>lun,unicodeEmail:()=>Wcn,uppercase:()=>uun,uuid:()=>C9,uuid4:()=>qdi,uuid6:()=>Gdi,uuid7:()=>Kdi,xid:()=>Fcn});var Mcn=/^[cC][^\s-]{8,}$/,Ocn=/^[0-9a-z]+$/,Rcn=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Fcn=/^[0-9a-vA-V]{20}$/,Bcn=/^[A-Za-z0-9]{27}$/,jcn=/^[a-zA-Z0-9_-]{21}$/,zcn=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,$di=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Vcn=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,C9=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,qdi=C9(4),Gdi=C9(6),Kdi=C9(7),Hcn=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ydi=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Qdi=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Wcn=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Zdi=Wcn,Xdi=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Jdi="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Ucn(){return new RegExp(Jdi,"u")}var $cn=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0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-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Zcn=/^\+[1-9]\d{6,14}$/,Xcn="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Jcn=new RegExp(`^${Xcn}$`);function eun(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function tun(e){return new RegExp(`^${eun(e)}$`)}function nun(e){const t=eun({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${n.join("|")})`;return new RegExp(`^${Xcn}T(?:${i})$`)}var iun=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},run=/^-?\d+n?$/,oun=/^-?\d+$/,NGe=/^-?\d+(?:\.\d+)?$/,sun=/^(?:true|false)$/i,aun=/^null$/i,lun=/^undefined$/i,cun=/^[^A-Z]*$/,uun=/^[^a-z]*$/,nhi=/^[0-9a-fA-F]*$/;function oQ(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function sQ(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var ihi=/^[0-9a-fA-F]{32}$/,rhi=oQ(22,"=="),ohi=sQ(22),shi=/^[0-9a-fA-F]{40}$/,ahi=oQ(27,"="),lhi=sQ(27),chi=/^[0-9a-fA-F]{64}$/,uhi=oQ(43,"="),dhi=sQ(43),hhi=/^[0-9a-fA-F]{96}$/,fhi=oQ(64,""),phi=sQ(64),ghi=/^[0-9a-fA-F]{128}$/,mhi=oQ(86,"=="),vhi=sQ(86),Qu=fn("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),dun={number:"number",bigint:"bigint",object:"date"},PGe=fn("$ZodCheckLessThan",(e,t)=>{Qu.init(e,t);const n=dun[typeof t.value];e._zod.onattach.push(i=>{const r=i._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),MGe=fn("$ZodCheckGreaterThan",(e,t)=>{Qu.init(e,t);const n=dun[typeof t.value];e._zod.onattach.push(i=>{const r=i._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),hun=fn("$ZodCheckMultipleOf",(e,t)=>{Qu.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):ycn(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),fun=fn("$ZodCheckNumberFormat",(e,t)=>{Qu.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),i=n?"int":"number",[r,o]=xcn[t.format];e._zod.onattach.push(s=>{const a=s._zod.bag;a.format=t.format,a.minimum=r,a.maximum=o,n&&(a.pattern=oun)}),e._zod.check=s=>{const a=s.value;if(n){if(!Number.isInteger(a)){s.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}a<r&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),a>o&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),pun=fn("$ZodCheckBigIntFormat",(e,t)=>{Qu.init(e,t);const[n,i]=Ecn[t.format];e._zod.onattach.push(r=>{const o=r._zod.bag;o.format=t.format,o.minimum=n,o.maximum=i}),e._zod.check=r=>{const o=r.value;o<n&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o>i&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),gun=fn("$ZodCheckMaxSize",(e,t)=>{var n;Qu.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!yF(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const r=i.value;r.size<=t.maximum||i.issues.push({origin:Vme(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),mun=fn("$ZodCheckMinSize",(e,t)=>{var n;Qu.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!yF(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const r=i.value;r.size>=t.minimum||i.issues.push({origin:Vme(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),vun=fn("$ZodCheckSizeEquals",(e,t)=>{var n;Qu.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!yF(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=i=>{const r=i.value,o=r.size;if(o===t.size)return;const s=o>t.size;i.issues.push({origin:Vme(r),...s?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),yun=fn("$ZodCheckMaxLength",(e,t)=>{var n;Qu.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!yF(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const r=i.value;if(r.length<=t.maximum)return;const s=Hme(r);i.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),bun=fn("$ZodCheckMinLength",(e,t)=>{var n;Qu.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!yF(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const r=i.value;if(r.length>=t.minimum)return;const s=Hme(r);i.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),_un=fn("$ZodCheckLengthEquals",(e,t)=>{var n;Qu.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!yF(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=i=>{const r=i.value,o=r.length;if(o===t.length)return;const s=Hme(r),a=o>t.length;i.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),aQ=fn("$ZodCheckStringFormat",(e,t)=>{var n,i;Qu.init(e,t),e._zod.onattach.push(r=>{const o=r._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),wun=fn("$ZodCheckRegex",(e,t)=>{aQ.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Cun=fn("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=cun),aQ.init(e,t)}),Sun=fn("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=uun),aQ.init(e,t)}),xun=fn("$ZodCheckIncludes",(e,t)=>{Qu.init(e,t);const n=QD(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Eun=fn("$ZodCheckStartsWith",(e,t)=>{Qu.init(e,t);const n=new RegExp(`^${QD(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),Aun=fn("$ZodCheckEndsWith",(e,t)=>{Qu.init(e,t);const n=new RegExp(`.*${QD(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function OAt(e,t,n){e.issues.length&&t.issues.push(...Z1(n,e.issues))}var Dun=fn("$ZodCheckProperty",(e,t)=>{Qu.init(e,t),e._zod.check=n=>{const i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>OAt(r,n,t.property));OAt(i,n,t.property)}}),Tun=fn("$ZodCheckMimeType",(e,t)=>{Qu.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),kun=fn("$ZodCheckOverwrite",(e,t)=>{Qu.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}}),Iun=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const n=e.split(`
`).filter(o=>o),i=Math.min(...n.map(o=>o.length-o.trimStart().length)),r=n.map(o=>o.slice(i)).map(o=>" ".repeat(this.indent*2)+o);for(const o of r)this.content.push(o)}compile(){const e=Function,t=this?.args,i=[...(this?.content??[""]).map(r=>`  ${r}`)];return new e(...t,i.join(`
`))}},Lun={major:4,minor:3,patch:6},Os=fn("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Lun;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const r of i)for(const o of r._zod.onattach)o(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const r=(s,a,l)=>{let c=GO(s),u;for(const d of a){if(d._zod.def.when){if(!d._zod.def.when(s))continue}else if(c)continue;const h=s.issues.length,f=d._zod.check(s);if(f instanceof Promise&&l?.async===!1)throw new ER;if(u||f instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await f,s.issues.length!==h&&(c||(c=GO(s,h)))});else{if(s.issues.length===h)continue;c||(c=GO(s,h))}}return u?u.then(()=>s):s},o=(s,a,l)=>{if(GO(s))return s.aborted=!0,s;const c=r(a,i,l);if(c instanceof Promise){if(l.async===!1)throw new ER;return c.then(u=>e._zod.parse(u,l))}return e._zod.parse(c,l)};e._zod.run=(s,a)=>{if(a.skipChecks)return e._zod.parse(s,a);if(a.direction==="backward"){const c=e._zod.parse({value:s.value,issues:[]},{...a,skipChecks:!0});return c instanceof Promise?c.then(u=>o(u,s,a)):o(c,s,a)}const l=e._zod.parse(s,a);if(l instanceof Promise){if(a.async===!1)throw new ER;return l.then(c=>r(c,i,a))}return r(l,i,a)}}ba(e,"~standard",()=>({validate:r=>{try{const o=Ncn(e,r);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return Pcn(e,r).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),lQ=fn("$ZodString",(e,t)=>{Os.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??iun(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),cu=fn("$ZodStringFormat",(e,t)=>{aQ.init(e,t),lQ.init(e,t)}),Nun=fn("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Vcn),cu.init(e,t)}),Pun=fn("$ZodUUID",(e,t)=>{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=C9(i))}else t.pattern??(t.pattern=C9());cu.init(e,t)}),Mun=fn("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Hcn),cu.init(e,t)}),Oun=fn("$ZodURL",(e,t)=>{cu.init(e,t),e._zod.check=n=>{try{const i=n.value.trim(),r=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=r.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Run=fn("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Ucn()),cu.init(e,t)}),Fun=fn("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=jcn),cu.init(e,t)}),Bun=fn("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Mcn),cu.init(e,t)}),jun=fn("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Ocn),cu.init(e,t)}),zun=fn("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Rcn),cu.init(e,t)}),Vun=fn("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Fcn),cu.init(e,t)}),Hun=fn("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Bcn),cu.init(e,t)}),Wun=fn("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=nun(t)),cu.init(e,t)}),Uun=fn("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Jcn),cu.init(e,t)}),$un=fn("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=tun(t)),cu.init(e,t)}),qun=fn("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=zcn),cu.init(e,t)}),Gun=fn("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=$cn),cu.init(e,t),e._zod.bag.format="ipv4"}),Kun=fn("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=qcn),cu.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Yun=fn("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Gcn(t.delimiter)),cu.init(e,t),e._zod.bag.format="mac"}),Qun=fn("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Kcn),cu.init(e,t)}),Zun=fn("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Ycn),cu.init(e,t),e._zod.check=n=>{const i=n.value.split("/");try{if(i.length!==2)throw new Error;const[r,o]=i;if(!o)throw new Error;const s=Number(o);if(`${s}`!==o)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function OGe(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Xun=fn("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Qcn),cu.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{OGe(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Jun(e){if(!LGe.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return OGe(n)}var edn=fn("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=LGe),cu.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Jun(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),tdn=fn("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Zcn),cu.init(e,t)});function ndn(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[i]=n;if(!i)return!1;const r=JSON.parse(atob(i));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}var idn=fn("$ZodJWT",(e,t)=>{cu.init(e,t),e._zod.check=n=>{ndn(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),rdn=fn("$ZodCustomStringFormat",(e,t)=>{cu.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),RGe=fn("$ZodNumber",(e,t)=>{Os.init(e,t),e._zod.pattern=e._zod.bag.pattern??NGe,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;const o=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...o?{received:o}:{}}),n}}),odn=fn("$ZodNumberFormat",(e,t)=>{fun.init(e,t),RGe.init(e,t)}),FGe=fn("$ZodBoolean",(e,t)=>{Os.init(e,t),e._zod.pattern=sun,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch{}const r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),BGe=fn("$ZodBigInt",(e,t)=>{Os.init(e,t),e._zod.pattern=run,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),sdn=fn("$ZodBigIntFormat",(e,t)=>{pun.init(e,t),BGe.init(e,t)}),adn=fn("$ZodSymbol",(e,t)=>{Os.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n}}),ldn=fn("$ZodUndefined",(e,t)=>{Os.init(e,t),e._zod.pattern=lun,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,i)=>{const r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n}}),cdn=fn("$ZodNull",(e,t)=>{Os.init(e,t),e._zod.pattern=aun,e._zod.values=new Set([null]),e._zod.parse=(n,i)=>{const r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n}}),udn=fn("$ZodAny",(e,t)=>{Os.init(e,t),e._zod.parse=n=>n}),ddn=fn("$ZodUnknown",(e,t)=>{Os.init(e,t),e._zod.parse=n=>n}),hdn=fn("$ZodNever",(e,t)=>{Os.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),fdn=fn("$ZodVoid",(e,t)=>{Os.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n}}),pdn=fn("$ZodDate",(e,t)=>{Os.init(e,t),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}const r=n.value,o=r instanceof Date;return o&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...o?{received:"Invalid Date"}:{},inst:e}),n}});function RAt(e,t,n){e.issues.length&&t.issues.push(...Z1(n,e.issues)),t.value[n]=e.value}var gdn=fn("$ZodArray",(e,t)=>{Os.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);const o=[];for(let s=0;s<r.length;s++){const a=r[s],l=t.element._zod.run({value:a,issues:[]},i);l instanceof Promise?o.push(l.then(c=>RAt(c,n,s))):RAt(l,n,s)}return o.length?Promise.all(o).then(()=>n):n}});function ghe(e,t,n,i,r){if(e.issues.length){if(r&&!(n in i))return;t.issues.push(...Z1(n,e.issues))}e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function mdn(e){const t=Object.keys(e.shape);for(const i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);const n=Scn(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function vdn(e,t,n,i,r,o){const s=[],a=r.keySet,l=r.catchall._zod,c=l.def.type,u=l.optout==="optional";for(const d in t){if(a.has(d))continue;if(c==="never"){s.push(d);continue}const h=l.run({value:t[d],issues:[]},i);h instanceof Promise?e.push(h.then(f=>ghe(f,n,d,t,u))):ghe(h,n,d,t,u)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}var ydn=fn("$ZodObject",(e,t)=>{if(Os.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const a=t.shape;Object.defineProperty(t,"shape",{get:()=>{const l={...a};return Object.defineProperty(t,"shape",{value:l}),l}})}const i=eQ(()=>mdn(t));ba(e._zod,"propValues",()=>{const a=t.shape,l={};for(const c in a){const u=a[c]._zod;if(u.values){l[c]??(l[c]=new Set);for(const d of u.values)l[c].add(d)}}return l});const r=w9,o=t.catchall;let s;e._zod.parse=(a,l)=>{s??(s=i.value);const c=a.value;if(!r(c))return a.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),a;a.value={};const u=[],d=s.shape;for(const h of s.keys){const f=d[h],p=f._zod.optout==="optional",g=f._zod.run({value:c[h],issues:[]},l);g instanceof Promise?u.push(g.then(m=>ghe(m,a,h,c,p))):ghe(g,a,h,c,p)}return o?vdn(u,c,a,l,i.value,e):u.length?Promise.all(u).then(()=>a):a}}),bdn=fn("$ZodObjectJIT",(e,t)=>{ydn.init(e,t);const n=e._zod.parse,i=eQ(()=>mdn(t)),r=h=>{const f=new Iun(["shape","payload","ctx"]),p=i.value,g=b=>{const w=D9e(b);return`shape[${w}]._zod.run({ value: input[${w}], issues: [] }, ctx)`};f.write("const input = payload.value;");const m=Object.create(null);let v=0;for(const b of p.keys)m[b]=`key_${v++}`;f.write("const newResult = {};");for(const b of p.keys){const w=m[b],E=D9e(b),D=h[b]?._zod?.optout==="optional";f.write(`const ${w} = ${g(b)};`),D?f.write(`
        if (${w}.issues.length) {
          if (${E} in input) {
            payload.issues = payload.issues.concat(${w}.issues.map(iss => ({
              ...iss,
              path: iss.path ? [${E}, ...iss.path] : [${E}]
            })));
          }
        }
        
        if (${w}.value === undefined) {
          if (${E} in input) {
            newResult[${E}] = undefined;
          }
        } else {
          newResult[${E}] = ${w}.value;
        }
        
      `):f.write(`
        if (${w}.issues.length) {
          payload.issues = payload.issues.concat(${w}.issues.map(iss => ({
            ...iss,
            path: iss.path ? [${E}, ...iss.path] : [${E}]
          })));
        }
        
        if (${w}.value === undefined) {
          if (${E} in input) {
            newResult[${E}] = undefined;
          }
        } else {
          newResult[${E}] = ${w}.value;
        }
        
      `)}f.write("payload.value = newResult;"),f.write("return payload;");const y=f.compile();return(b,w)=>y(h,b,w)};let o;const s=w9,a=!dhe.jitless,c=a&&_cn.value,u=t.catchall;let d;e._zod.parse=(h,f)=>{d??(d=i.value);const p=h.value;return s(p)?a&&c&&f?.async===!1&&f.jitless!==!0?(o||(o=r(t.shape)),h=o(h,f),u?vdn([],p,h,f,d,e):h):n(h,f):(h.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),h)}});function FAt(e,t,n,i){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const r=e.filter(o=>!GO(o));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(s=>ow(s,i,mm())))}),t)}var Wme=fn("$ZodUnion",(e,t)=>{Os.init(e,t),ba(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),ba(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),ba(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),ba(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>zme(o.source)).join("|")})$`)}});const n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(n)return i(r,o);let s=!1;const a=[];for(const l of t.options){const c=l._zod.run({value:r.value,issues:[]},o);if(c instanceof Promise)a.push(c),s=!0;else{if(c.issues.length===0)return c;a.push(c)}}return s?Promise.all(a).then(l=>FAt(l,r,e,o)):FAt(a,r,e,o)}});function BAt(e,t,n,i){const r=e.filter(o=>o.issues.length===0);return r.length===1?(t.value=r[0].value,t):(r.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(s=>ow(s,i,mm())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}var _dn=fn("$ZodXor",(e,t)=>{Wme.init(e,t),t.inclusive=!1;const n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(n)return i(r,o);let s=!1;const a=[];for(const l of t.options){const c=l._zod.run({value:r.value,issues:[]},o);c instanceof Promise?(a.push(c),s=!0):a.push(c)}return s?Promise.all(a).then(l=>BAt(l,r,e,o)):BAt(a,r,e,o)}}),wdn=fn("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Wme.init(e,t);const n=e._zod.parse;ba(e._zod,"propValues",()=>{const r={};for(const o of t.options){const s=o._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(const[a,l]of Object.entries(s)){r[a]||(r[a]=new Set);for(const c of l)r[a].add(c)}}return r});const i=eQ(()=>{const r=t.options,o=new Map;for(const s of r){const a=s._zod.propValues?.[t.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(const l of a){if(o.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);o.set(l,s)}}return o});e._zod.parse=(r,o)=>{const s=r.value;if(!w9(s))return r.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),r;const a=i.value.get(s?.[t.discriminator]);return a?a._zod.run(r,o):t.unionFallback?n(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),r)}}),Cdn=fn("$ZodIntersection",(e,t)=>{Os.init(e,t),e._zod.parse=(n,i)=>{const r=n.value,o=t.left._zod.run({value:r,issues:[]},i),s=t.right._zod.run({value:r,issues:[]},i);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([l,c])=>jAt(n,l,c)):jAt(n,o,s)}});function I9e(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(v2(e)&&v2(t)){const n=Object.keys(t),i=Object.keys(e).filter(o=>n.indexOf(o)!==-1),r={...e,...t};for(const o of i){const s=I9e(e[o],t[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};r[o]=s.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let i=0;i<e.length;i++){const r=e[i],o=t[i],s=I9e(r,o);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function jAt(e,t,n){const i=new Map;let r;for(const a of t.issues)if(a.code==="unrecognized_keys"){r??(r=a);for(const l of a.keys)i.has(l)||i.set(l,{}),i.get(l).l=!0}else e.issues.push(a);for(const a of n.issues)if(a.code==="unrecognized_keys")for(const l of a.keys)i.has(l)||i.set(l,{}),i.get(l).r=!0;else e.issues.push(a);const o=[...i].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(o.length&&r&&e.issues.push({...r,keys:o}),GO(e))return e;const s=I9e(t.value,n.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}var jGe=fn("$ZodTuple",(e,t)=>{Os.init(e,t);const n=t.items;e._zod.parse=(i,r)=>{const o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];const s=[],a=[...n].reverse().findIndex(u=>u._zod.optin!=="optional"),l=a===-1?0:n.length-a;if(!t.rest){const u=o.length>n.length,d=o.length<l-1;if(u||d)return i.issues.push({...u?{code:"too_big",maximum:n.length,inclusive:!0}:{code:"too_small",minimum:n.length},input:o,inst:e,origin:"array"}),i}let c=-1;for(const u of n){if(c++,c>=o.length&&c>=l)continue;const d=u._zod.run({value:o[c],issues:[]},r);d instanceof Promise?s.push(d.then(h=>sie(h,i,c))):sie(d,i,c)}if(t.rest){const u=o.slice(n.length);for(const d of u){c++;const h=t.rest._zod.run({value:d,issues:[]},r);h instanceof Promise?s.push(h.then(f=>sie(f,i,c))):sie(h,i,c)}}return s.length?Promise.all(s).then(()=>i):i}});function sie(e,t,n){e.issues.length&&t.issues.push(...Z1(n,e.issues)),t.value[n]=e.value}var Sdn=fn("$ZodRecord",(e,t)=>{Os.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!v2(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;const o=[],s=t.keyType._zod.values;if(s){n.value={};const a=new Set;for(const c of s)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){a.add(typeof c=="number"?c.toString():c);const u=t.valueType._zod.run({value:r[c],issues:[]},i);u instanceof Promise?o.push(u.then(d=>{d.issues.length&&n.issues.push(...Z1(c,d.issues)),n.value[c]=d.value})):(u.issues.length&&n.issues.push(...Z1(c,u.issues)),n.value[c]=u.value)}let l;for(const c in r)a.has(c)||(l=l??[],l.push(c));l&&l.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:l})}else{n.value={};for(const a of Reflect.ownKeys(r)){if(a==="__proto__")continue;let l=t.keyType._zod.run({value:a,issues:[]},i);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&NGe.test(a)&&l.issues.length){const d=t.keyType._zod.run({value:Number(a),issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(l=d)}if(l.issues.length){t.mode==="loose"?n.value[a]=r[a]:n.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(d=>ow(d,i,mm())),input:a,path:[a],inst:e});continue}const u=t.valueType._zod.run({value:r[a],issues:[]},i);u instanceof Promise?o.push(u.then(d=>{d.issues.length&&n.issues.push(...Z1(a,d.issues)),n.value[l.value]=d.value})):(u.issues.length&&n.issues.push(...Z1(a,u.issues)),n.value[l.value]=u.value)}}return o.length?Promise.all(o).then(()=>n):n}}),xdn=fn("$ZodMap",(e,t)=>{Os.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;const o=[];n.value=new Map;for(const[s,a]of r){const l=t.keyType._zod.run({value:s,issues:[]},i),c=t.valueType._zod.run({value:a,issues:[]},i);l instanceof Promise||c instanceof Promise?o.push(Promise.all([l,c]).then(([u,d])=>{zAt(u,d,n,s,r,e,i)})):zAt(l,c,n,s,r,e,i)}return o.length?Promise.all(o).then(()=>n):n}});function zAt(e,t,n,i,r,o,s){e.issues.length&&(fhe.has(typeof i)?n.issues.push(...Z1(i,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:o,issues:e.issues.map(a=>ow(a,s,mm()))})),t.issues.length&&(fhe.has(typeof i)?n.issues.push(...Z1(i,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:i,issues:t.issues.map(a=>ow(a,s,mm()))})),n.value.set(e.value,t.value)}var Edn=fn("$ZodSet",(e,t)=>{Os.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;const o=[];n.value=new Set;for(const s of r){const a=t.valueType._zod.run({value:s,issues:[]},i);a instanceof Promise?o.push(a.then(l=>VAt(l,n))):VAt(a,n)}return o.length?Promise.all(o).then(()=>n):n}});function VAt(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Adn=fn("$ZodEnum",(e,t)=>{Os.init(e,t);const n=yGe(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(r=>fhe.has(typeof r)).map(r=>typeof r=="string"?QD(r):r.toString()).join("|")})$`),e._zod.parse=(r,o)=>{const s=r.value;return i.has(s)||r.issues.push({code:"invalid_value",values:n,input:s,inst:e}),r}}),Ddn=fn("$ZodLiteral",(e,t)=>{if(Os.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?QD(i):i?QD(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,r)=>{const o=i.value;return n.has(o)||i.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),i}}),Tdn=fn("$ZodFile",(e,t)=>{Os.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n}}),kdn=fn("$ZodTransform",(e,t)=>{Os.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new jme(e.constructor.name);const r=t.transform(n.value,n);if(i.async)return(r instanceof Promise?r:Promise.resolve(r)).then(s=>(n.value=s,n));if(r instanceof Promise)throw new ER;return n.value=r,n}});function HAt(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var zGe=fn("$ZodOptional",(e,t)=>{Os.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ba(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ba(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${zme(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>HAt(o,n.value)):HAt(r,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),Idn=fn("$ZodExactOptional",(e,t)=>{zGe.init(e,t),ba(e._zod,"values",()=>t.innerType._zod.values),ba(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,i)=>t.innerType._zod.run(n,i)}),Ldn=fn("$ZodNullable",(e,t)=>{Os.init(e,t),ba(e._zod,"optin",()=>t.innerType._zod.optin),ba(e._zod,"optout",()=>t.innerType._zod.optout),ba(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${zme(n.source)}|null)$`):void 0}),ba(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),Ndn=fn("$ZodDefault",(e,t)=>{Os.init(e,t),e._zod.optin="optional",ba(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>WAt(o,t)):WAt(r,t)}});function WAt(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Pdn=fn("$ZodPrefault",(e,t)=>{Os.init(e,t),e._zod.optin="optional",ba(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),Mdn=fn("$ZodNonOptional",(e,t)=>{Os.init(e,t),ba(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>UAt(o,e)):UAt(r,e)}});function UAt(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var Odn=fn("$ZodSuccess",(e,t)=>{Os.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new jme("ZodSuccess");const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),Rdn=fn("$ZodCatch",(e,t)=>{Os.init(e,t),ba(e._zod,"optin",()=>t.innerType._zod.optin),ba(e._zod,"optout",()=>t.innerType._zod.optout),ba(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(s=>ow(s,i,mm()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(o=>ow(o,i,mm()))},input:n.value}),n.issues=[]),n)}}),Fdn=fn("$ZodNaN",(e,t)=>{Os.init(e,t),e._zod.parse=(n,i)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),Bdn=fn("$ZodPipe",(e,t)=>{Os.init(e,t),ba(e._zod,"values",()=>t.in._zod.values),ba(e._zod,"optin",()=>t.in._zod.optin),ba(e._zod,"optout",()=>t.out._zod.optout),ba(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){const o=t.out._zod.run(n,i);return o instanceof Promise?o.then(s=>aie(s,t.in,i)):aie(o,t.in,i)}const r=t.in._zod.run(n,i);return r instanceof Promise?r.then(o=>aie(o,t.out,i)):aie(r,t.out,i)}});function aie(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var VGe=fn("$ZodCodec",(e,t)=>{Os.init(e,t),ba(e._zod,"values",()=>t.in._zod.values),ba(e._zod,"optin",()=>t.in._zod.optin),ba(e._zod,"optout",()=>t.out._zod.optout),ba(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if((i.direction||"forward")==="forward"){const o=t.in._zod.run(n,i);return o instanceof Promise?o.then(s=>lie(s,t,i)):lie(o,t,i)}else{const o=t.out._zod.run(n,i);return o instanceof Promise?o.then(s=>lie(s,t,i)):lie(o,t,i)}}});function lie(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){const r=t.transform(e.value,e);return r instanceof Promise?r.then(o=>cie(e,o,t.out,n)):cie(e,r,t.out,n)}else{const r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(o=>cie(e,o,t.in,n)):cie(e,r,t.in,n)}}function cie(e,t,n,i){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},i)}var jdn=fn("$ZodReadonly",(e,t)=>{Os.init(e,t),ba(e._zod,"propValues",()=>t.innerType._zod.propValues),ba(e._zod,"values",()=>t.innerType._zod.values),ba(e._zod,"optin",()=>t.innerType?._zod?.optin),ba(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then($At):$At(r)}});function $At(e){return e.value=Object.freeze(e.value),e}var zdn=fn("$ZodTemplateLiteral",(e,t)=>{Os.init(e,t);const n=[];for(const i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);const r=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${i._zod.traits}`);const o=r.startsWith("^")?1:0,s=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(o,s))}else if(i===null||Ccn.has(typeof i))n.push(QD(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(i,r)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i)}),Vdn=fn("$ZodFunction",(e,t)=>(Os.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...i){const r=e._def.input?T9e(e._def.input,i):i,o=Reflect.apply(n,this,r);return e._def.output?T9e(e._def.output,o):o}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){const r=e._def.input?await k9e(e._def.input,i):i,o=await Reflect.apply(n,this,r);return e._def.output?await k9e(e._def.output,o):o}},e._zod.parse=(n,i)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{const i=e.constructor;return Array.isArray(n[0])?new i({type:"function",input:new jGe({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new i({type:"function",input:n[0],output:e._def.output})},e.output=n=>{const i=e.constructor;return new i({type:"function",input:e._def.input,output:n})},e)),Hdn=fn("$ZodPromise",(e,t)=>{Os.init(e,t),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},i))}),Wdn=fn("$ZodLazy",(e,t)=>{Os.init(e,t),ba(e._zod,"innerType",()=>t.getter()),ba(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),ba(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),ba(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),ba(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i)}),Udn=fn("$ZodCustom",(e,t)=>{Qu.init(e,t),Os.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{const i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(o=>qAt(o,n,i,e));qAt(r,n,i,e)}});function qAt(e,t,n,i){if(!e){const r={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(r.params=i._zod.def.params),t.issues.push(phe(r))}}var HGe={};oc(HGe,{ar:()=>bhi,az:()=>whi,be:()=>Shi,bg:()=>Ehi,ca:()=>Dhi,cs:()=>khi,da:()=>Lhi,de:()=>Phi,en:()=>$dn,eo:()=>Rhi,es:()=>Bhi,fa:()=>zhi,fi:()=>Hhi,fr:()=>Uhi,frCA:()=>qhi,he:()=>Khi,hu:()=>Qhi,hy:()=>Xhi,id:()=>efi,is:()=>nfi,it:()=>rfi,ja:()=>sfi,ka:()=>lfi,kh:()=>ufi,km:()=>qdn,ko:()=>hfi,lt:()=>pfi,mk:()=>mfi,ms:()=>yfi,nl:()=>_fi,no:()=>Cfi,ota:()=>xfi,pl:()=>Tfi,ps:()=>Afi,pt:()=>Ifi,ru:()=>Nfi,sl:()=>Mfi,sv:()=>Rfi,ta:()=>Bfi,th:()=>zfi,tr:()=>Hfi,ua:()=>Ufi,uk:()=>Gdn,ur:()=>qfi,uz:()=>Kfi,vi:()=>Qfi,yo:()=>npi,zhCN:()=>Xfi,zhTW:()=>epi});var yhi=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(r){return e[r]??null}const n={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${r.expected}، ولكن تم إدخال ${a}`:`مدخلات غير مقبولة: يفترض إدخال ${o}، ولكن تم إدخال ${a}`}case"invalid_value":return r.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${is(r.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?` أكبر من اللازم: يفترض أن تكون ${r.origin??"القيمة"} ${o} ${r.maximum.toString()} ${s.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${r.origin??"القيمة"} ${o} ${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`أصغر من اللازم: يفترض لـ ${r.origin} أن يكون ${o} ${r.minimum.toString()} ${s.unit}`:`أصغر من اللازم: يفترض لـ ${r.origin} أن يكون ${o} ${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${r.prefix}"`:o.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${o.suffix}"`:o.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${o.includes}"`:o.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${o.pattern}`:`${n[o.format]??r.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${r.divisor}`;case"unrecognized_keys":return`معرف${r.keys.length>1?"ات":""} غريب${r.keys.length>1?"ة":""}: ${$i(r.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${r.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${r.origin}`;default:return"مدخل غير مقبول"}}};function bhi(){return{localeError:yhi()}}var _hi=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function t(r){return e[r]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Yanlış dəyər: gözlənilən instanceof ${r.expected}, daxil olan ${a}`:`Yanlış dəyər: gözlənilən ${o}, daxil olan ${a}`}case"invalid_value":return r.values.length===1?`Yanlış dəyər: gözlənilən ${is(r.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Çox böyük: gözlənilən ${r.origin??"dəyər"} ${o}${r.maximum.toString()} ${s.unit??"element"}`:`Çox böyük: gözlənilən ${r.origin??"dəyər"} ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Çox kiçik: gözlənilən ${r.origin} ${o}${r.minimum.toString()} ${s.unit}`:`Çox kiçik: gözlənilən ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Yanlış mətn: "${o.prefix}" ilə başlamalıdır`:o.format==="ends_with"?`Yanlış mətn: "${o.suffix}" ilə bitməlidir`:o.format==="includes"?`Yanlış mətn: "${o.includes}" daxil olmalıdır`:o.format==="regex"?`Yanlış mətn: ${o.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[o.format]??r.format}`}case"not_multiple_of":return`Yanlış ədəd: ${r.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${r.keys.length>1?"lar":""}: ${$i(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${r.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function whi(){return{localeError:_hi()}}function GAt(e,t,n,i){const r=Math.abs(e),o=r%10,s=r%100;return s>=11&&s<=19?i:o===1?t:o>=2&&o<=4?n:i}var Chi=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function t(r){return e[r]??null}const n={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},i={nan:"NaN",number:"лік",array:"масіў"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Няправільны ўвод: чакаўся instanceof ${r.expected}, атрымана ${a}`:`Няправільны ўвод: чакаўся ${o}, атрымана ${a}`}case"invalid_value":return r.values.length===1?`Няправільны ўвод: чакалася ${is(r.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);if(s){const a=Number(r.maximum),l=GAt(a,s.unit.one,s.unit.few,s.unit.many);return`Занадта вялікі: чакалася, што ${r.origin??"значэнне"} павінна ${s.verb} ${o}${r.maximum.toString()} ${l}`}return`Занадта вялікі: чакалася, што ${r.origin??"значэнне"} павінна быць ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);if(s){const a=Number(r.minimum),l=GAt(a,s.unit.one,s.unit.few,s.unit.many);return`Занадта малы: чакалася, што ${r.origin} павінна ${s.verb} ${o}${r.minimum.toString()} ${l}`}return`Занадта малы: чакалася, што ${r.origin} павінна быць ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${o.prefix}"`:o.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${o.suffix}"`:o.format==="includes"?`Няправільны радок: павінен змяшчаць "${o.includes}"`:o.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${o.pattern}`:`Няправільны ${n[o.format]??r.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${r.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${r.keys.length>1?"ключы":"ключ"}: ${$i(r.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${r.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${r.origin}`;default:return"Няправільны ўвод"}}};function Shi(){return{localeError:Chi()}}var xhi=()=>{const e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function t(r){return e[r]??null}const n={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},i={nan:"NaN",number:"число",array:"масив"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Невалиден вход: очакван instanceof ${r.expected}, получен ${a}`:`Невалиден вход: очакван ${o}, получен ${a}`}case"invalid_value":return r.values.length===1?`Невалиден вход: очакван ${is(r.values[0])}`:`Невалидна опция: очаквано едно от ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Твърде голямо: очаква се ${r.origin??"стойност"} да съдържа ${o}${r.maximum.toString()} ${s.unit??"елемента"}`:`Твърде голямо: очаква се ${r.origin??"стойност"} да бъде ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Твърде малко: очаква се ${r.origin} да съдържа ${o}${r.minimum.toString()} ${s.unit}`:`Твърде малко: очаква се ${r.origin} да бъде ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;if(o.format==="starts_with")return`Невалиден низ: трябва да започва с "${o.prefix}"`;if(o.format==="ends_with")return`Невалиден низ: трябва да завършва с "${o.suffix}"`;if(o.format==="includes")return`Невалиден низ: трябва да включва "${o.includes}"`;if(o.format==="regex")return`Невалиден низ: трябва да съвпада с ${o.pattern}`;let s="Невалиден";return o.format==="emoji"&&(s="Невалидно"),o.format==="datetime"&&(s="Невалидно"),o.format==="date"&&(s="Невалидна"),o.format==="time"&&(s="Невалидно"),o.format==="duration"&&(s="Невалидна"),`${s} ${n[o.format]??r.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${r.divisor}`;case"unrecognized_keys":return`Неразпознат${r.keys.length>1?"и":""} ключ${r.keys.length>1?"ове":""}: ${$i(r.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${r.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${r.origin}`;default:return"Невалиден вход"}}};function Ehi(){return{localeError:xhi()}}var Ahi=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}const n={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Tipus invàlid: s'esperava instanceof ${r.expected}, s'ha rebut ${a}`:`Tipus invàlid: s'esperava ${o}, s'ha rebut ${a}`}case"invalid_value":return r.values.length===1?`Valor invàlid: s'esperava ${is(r.values[0])}`:`Opció invàlida: s'esperava una de ${$i(r.values," o ")}`;case"too_big":{const o=r.inclusive?"com a màxim":"menys de",s=t(r.origin);return s?`Massa gran: s'esperava que ${r.origin??"el valor"} contingués ${o} ${r.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${o} ${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?"com a mínim":"més de",s=t(r.origin);return s?`Massa petit: s'esperava que ${r.origin} contingués ${o} ${r.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Format invàlid: ha de començar amb "${o.prefix}"`:o.format==="ends_with"?`Format invàlid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format invàlid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${o.pattern}`:`Format invàlid per a ${n[o.format]??r.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${$i(r.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${r.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${r.origin}`;default:return"Entrada invàlida"}}};function Dhi(){return{localeError:Ahi()}}var Thi=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function t(r){return e[r]??null}const n={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Neplatný vstup: očekáváno instanceof ${r.expected}, obdrženo ${a}`:`Neplatný vstup: očekáváno ${o}, obdrženo ${a}`}case"invalid_value":return r.values.length===1?`Neplatný vstup: očekáváno ${is(r.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Hodnota je příliš velká: ${r.origin??"hodnota"} musí mít ${o}${r.maximum.toString()} ${s.unit??"prvků"}`:`Hodnota je příliš velká: ${r.origin??"hodnota"} musí být ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Hodnota je příliš malá: ${r.origin??"hodnota"} musí mít ${o}${r.minimum.toString()} ${s.unit??"prvků"}`:`Hodnota je příliš malá: ${r.origin??"hodnota"} musí být ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Neplatný řetězec: musí začínat na "${o.prefix}"`:o.format==="ends_with"?`Neplatný řetězec: musí končit na "${o.suffix}"`:o.format==="includes"?`Neplatný řetězec: musí obsahovat "${o.includes}"`:o.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${o.pattern}`:`Neplatný formát ${n[o.format]??r.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${r.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${$i(r.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${r.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${r.origin}`;default:return"Neplatný vstup"}}};function khi(){return{localeError:Thi()}}var Ihi=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(r){return e[r]??null}const n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${a}`:`Ugyldigt input: forventede ${o}, fik ${a}`}case"invalid_value":return r.values.length===1?`Ugyldig værdi: forventede ${is(r.values[0])}`:`Ugyldigt valg: forventede en af følgende ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin),a=i[r.origin]??r.origin;return s?`For stor: forventede ${a??"value"} ${s.verb} ${o} ${r.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${a??"value"} havde ${o} ${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin),a=i[r.origin]??r.origin;return s?`For lille: forventede ${a} ${s.verb} ${o} ${r.minimum.toString()} ${s.unit}`:`For lille: forventede ${a} havde ${o} ${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche mønsteret ${o.pattern}`:`Ugyldig ${n[o.format]??r.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${$i(r.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${r.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${r.origin}`;default:return"Ugyldigt input"}}};function Lhi(){return{localeError:Ihi()}}var Nhi=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(r){return e[r]??null}const n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Ungültige Eingabe: erwartet instanceof ${r.expected}, erhalten ${a}`:`Ungültige Eingabe: erwartet ${o}, erhalten ${a}`}case"invalid_value":return r.values.length===1?`Ungültige Eingabe: erwartet ${is(r.values[0])}`:`Ungültige Option: erwartet eine von ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Zu groß: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ist`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Ungültiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ungültiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ungültiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ungültiger String: muss dem Muster ${o.pattern} entsprechen`:`Ungültig: ${n[o.format]??r.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${$i(r.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${r.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${r.origin}`;default:return"Ungültige Eingabe"}}};function Phi(){return{localeError:Nhi()}}var Mhi=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(r){return e[r]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return`Invalid input: expected ${o}, received ${a}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${is(r.values[0])}`:`Invalid option: expected one of ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Too big: expected ${r.origin??"value"} to have ${o}${r.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Too small: expected ${r.origin} to have ${o}${r.minimum.toString()} ${s.unit}`:`Too small: expected ${r.origin} to be ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${n[o.format]??r.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${$i(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}};function $dn(){return{localeError:Mhi()}}var Ohi=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(r){return e[r]??null}const n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendiĝis instanceof ${r.expected}, riceviĝis ${a}`:`Nevalida enigo: atendiĝis ${o}, riceviĝis ${a}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendiĝis ${is(r.values[0])}`:`Nevalida opcio: atendiĝis unu el ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Tro granda: atendiĝis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Tro malgranda: atendiĝis ke ${r.origin} havu ${o}${r.minimum.toString()} ${s.unit}`:`Tro malgranda: atendiĝis ke ${r.origin} estu ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${n[o.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} ŝlosilo${r.keys.length>1?"j":""}: ${$i(r.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}};function Rhi(){return{localeError:Ohi()}}var Fhi=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}const n={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Entrada inválida: se esperaba instanceof ${r.expected}, recibido ${a}`:`Entrada inválida: se esperaba ${o}, recibido ${a}`}case"invalid_value":return r.values.length===1?`Entrada inválida: se esperaba ${is(r.values[0])}`:`Opción inválida: se esperaba una de ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin),a=i[r.origin]??r.origin;return s?`Demasiado grande: se esperaba que ${a??"valor"} tuviera ${o}${r.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${a??"valor"} fuera ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin),a=i[r.origin]??r.origin;return s?`Demasiado pequeño: se esperaba que ${a} tuviera ${o}${r.minimum.toString()} ${s.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Cadena inválida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inválida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inválida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${o.pattern}`:`Inválido ${n[o.format]??r.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${$i(r.keys,", ")}`;case"invalid_key":return`Llave inválida en ${i[r.origin]??r.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${i[r.origin]??r.origin}`;default:return"Entrada inválida"}}};function Bhi(){return{localeError:Fhi()}}var jhi=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(r){return e[r]??null}const n={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},i={nan:"NaN",number:"عدد",array:"آرایه"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`ورودی نامعتبر: می‌بایست instanceof ${r.expected} می‌بود، ${a} دریافت شد`:`ورودی نامعتبر: می‌بایست ${o} می‌بود، ${a} دریافت شد`}case"invalid_value":return r.values.length===1?`ورودی نامعتبر: می‌بایست ${is(r.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${$i(r.values,"|")} می‌بود`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`خیلی بزرگ: ${r.origin??"مقدار"} باید ${o}${r.maximum.toString()} ${s.unit??"عنصر"} باشد`:`خیلی بزرگ: ${r.origin??"مقدار"} باید ${o}${r.maximum.toString()} باشد`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`خیلی کوچک: ${r.origin} باید ${o}${r.minimum.toString()} ${s.unit} باشد`:`خیلی کوچک: ${r.origin} باید ${o}${r.minimum.toString()} باشد`}case"invalid_format":{const o=r;return o.format==="starts_with"?`رشته نامعتبر: باید با "${o.prefix}" شروع شود`:o.format==="ends_with"?`رشته نامعتبر: باید با "${o.suffix}" تمام شود`:o.format==="includes"?`رشته نامعتبر: باید شامل "${o.includes}" باشد`:o.format==="regex"?`رشته نامعتبر: باید با الگوی ${o.pattern} مطابقت داشته باشد`:`${n[o.format]??r.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${r.divisor} باشد`;case"unrecognized_keys":return`کلید${r.keys.length>1?"های":""} ناشناس: ${$i(r.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${r.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${r.origin}`;default:return"ورودی نامعتبر"}}};function zhi(){return{localeError:jhi()}}var Vhi=()=>{const e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function t(r){return e[r]??null}const n={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${a}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${a}`}case"invalid_value":return r.values.length===1?`Virheellinen syöte: täytyy olla ${is(r.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Liian suuri: ${s.subject} täytyy olla ${o}${r.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon täytyy olla ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Liian pieni: ${s.subject} täytyy olla ${o}${r.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon täytyy olla ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen syöte: täytyy sisältää "${o.includes}"`:o.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${o.pattern}`:`Virheellinen ${n[o.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${$i(r.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function Hhi(){return{localeError:Vhi()}}var Whi=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(r){return e[r]??null}const n={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},i={nan:"NaN",number:"nombre",array:"tableau"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Entrée invalide : instanceof ${r.expected} attendu, ${a} reçu`:`Entrée invalide : ${o} attendu, ${a} reçu`}case"invalid_value":return r.values.length===1?`Entrée invalide : ${is(r.values[0])} attendu`:`Option invalide : une valeur parmi ${$i(r.values,"|")} attendue`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Trop grand : ${r.origin??"valeur"} doit ${s.verb} ${o}${r.maximum.toString()} ${s.unit??"élément(s)"}`:`Trop grand : ${r.origin??"valeur"} doit être ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Trop petit : ${r.origin} doit ${s.verb} ${o}${r.minimum.toString()} ${s.unit}`:`Trop petit : ${r.origin} doit être ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Chaîne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Chaîne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Chaîne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${o.pattern}`:`${n[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${r.divisor}`;case"unrecognized_keys":return`Clé${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${$i(r.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${r.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entrée invalide"}}};function Uhi(){return{localeError:Whi()}}var $hi=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(r){return e[r]??null}const n={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Entrée invalide : attendu instanceof ${r.expected}, reçu ${a}`:`Entrée invalide : attendu ${o}, reçu ${a}`}case"invalid_value":return r.values.length===1?`Entrée invalide : attendu ${is(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"≤":"<",s=t(r.origin);return s?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${o}${r.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?"≥":">",s=t(r.origin);return s?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Chaîne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Chaîne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Chaîne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Chaîne invalide : doit correspondre au motif ${o.pattern}`:`${n[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${r.divisor}`;case"unrecognized_keys":return`Clé${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${$i(r.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${r.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entrée invalide"}}};function qhi(){return{localeError:$hi()}}var Ghi=()=>{const e={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},t={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},n=c=>c?e[c]:void 0,i=c=>{const u=n(c);return u?u.label:c??e.unknown.label},r=c=>`ה${i(c)}`,o=c=>(n(c)?.gender??"m")==="f"?"צריכה להיות":"צריך להיות",s=c=>c?t[c]??null:null,a={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},l={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{const u=c.expected,d=l[u??""]??i(u),h=us(c.input),f=l[h]??e[h]?.label??h;return/^[A-Z]/.test(c.expected)?`קלט לא תקין: צריך להיות instanceof ${c.expected}, התקבל ${f}`:`קלט לא תקין: צריך להיות ${d}, התקבל ${f}`}case"invalid_value":{if(c.values.length===1)return`ערך לא תקין: הערך חייב להיות ${is(c.values[0])}`;const u=c.values.map(f=>is(f));if(c.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${u[0]} או ${u[1]}`;const d=u[u.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${u.slice(0,-1).join(", ")} או ${d}`}case"too_big":{const u=s(c.origin),d=r(c.origin??"value");if(c.origin==="string")return`${u?.longLabel??"ארוך"} מדי: ${d} צריכה להכיל ${c.maximum.toString()} ${u?.unit??""} ${c.inclusive?"או פחות":"לכל היותר"}`.trim();if(c.origin==="number"){const p=c.inclusive?`קטן או שווה ל-${c.maximum}`:`קטן מ-${c.maximum}`;return`גדול מדי: ${d} צריך להיות ${p}`}if(c.origin==="array"||c.origin==="set"){const p=c.origin==="set"?"צריכה":"צריך",g=c.inclusive?`${c.maximum} ${u?.unit??""} או פחות`:`פחות מ-${c.maximum} ${u?.unit??""}`;return`גדול מדי: ${d} ${p} להכיל ${g}`.trim()}const h=c.inclusive?"<=":"<",f=o(c.origin??"value");return u?.unit?`${u.longLabel} מדי: ${d} ${f} ${h}${c.maximum.toString()} ${u.unit}`:`${u?.longLabel??"גדול"} מדי: ${d} ${f} ${h}${c.maximum.toString()}`}case"too_small":{const u=s(c.origin),d=r(c.origin??"value");if(c.origin==="string")return`${u?.shortLabel??"קצר"} מדי: ${d} צריכה להכיל ${c.minimum.toString()} ${u?.unit??""} ${c.inclusive?"או יותר":"לפחות"}`.trim();if(c.origin==="number"){const p=c.inclusive?`גדול או שווה ל-${c.minimum}`:`גדול מ-${c.minimum}`;return`קטן מדי: ${d} צריך להיות ${p}`}if(c.origin==="array"||c.origin==="set"){const p=c.origin==="set"?"צריכה":"צריך";if(c.minimum===1&&c.inclusive){const m=(c.origin==="set","לפחות פריט אחד");return`קטן מדי: ${d} ${p} להכיל ${m}`}const g=c.inclusive?`${c.minimum} ${u?.unit??""} או יותר`:`יותר מ-${c.minimum} ${u?.unit??""}`;return`קטן מדי: ${d} ${p} להכיל ${g}`.trim()}const h=c.inclusive?">=":">",f=o(c.origin??"value");return u?.unit?`${u.shortLabel} מדי: ${d} ${f} ${h}${c.minimum.toString()} ${u.unit}`:`${u?.shortLabel??"קטן"} מדי: ${d} ${f} ${h}${c.minimum.toString()}`}case"invalid_format":{const u=c;if(u.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${u.prefix}"`;if(u.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${u.suffix}"`;if(u.format==="includes")return`המחרוזת חייבת לכלול "${u.includes}"`;if(u.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${u.pattern}`;const d=a[u.format],h=d?.label??u.format,p=(d?.gender??"m")==="f"?"תקינה":"תקין";return`${h} לא ${p}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${c.divisor}`;case"unrecognized_keys":return`מפתח${c.keys.length>1?"ות":""} לא מזוה${c.keys.length>1?"ים":"ה"}: ${$i(c.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${r(c.origin??"array")}`;default:return"קלט לא תקין"}}};function Khi(){return{localeError:Ghi()}}var Yhi=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}const n={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"szám",array:"tömb"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Érvénytelen bemenet: a várt érték instanceof ${r.expected}, a kapott érték ${a}`:`Érvénytelen bemenet: a várt érték ${o}, a kapott érték ${a}`}case"invalid_value":return r.values.length===1?`Érvénytelen bemenet: a várt érték ${is(r.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Túl nagy: ${r.origin??"érték"} mérete túl nagy ${o}${r.maximum.toString()} ${s.unit??"elem"}`:`Túl nagy: a bemeneti érték ${r.origin??"érték"} túl nagy: ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Túl kicsi: a bemeneti érték ${r.origin} mérete túl kicsi ${o}${r.minimum.toString()} ${s.unit}`:`Túl kicsi: a bemeneti érték ${r.origin} túl kicsi ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Érvénytelen string: "${o.prefix}" értékkel kell kezdődnie`:o.format==="ends_with"?`Érvénytelen string: "${o.suffix}" értékkel kell végződnie`:o.format==="includes"?`Érvénytelen string: "${o.includes}" értéket kell tartalmaznia`:o.format==="regex"?`Érvénytelen string: ${o.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[o.format]??r.format}`}case"not_multiple_of":return`Érvénytelen szám: ${r.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${$i(r.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${r.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${r.origin}`;default:return"Érvénytelen bemenet"}}};function Qhi(){return{localeError:Yhi()}}function KAt(e,t,n){return Math.abs(e)===1?t:n}function B4(e){if(!e)return"";const t=["ա","ե","ը","ի","ո","ու","օ"],n=e[e.length-1];return e+(t.includes(n)?"ն":"ը")}var Zhi=()=>{const e={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function t(r){return e[r]??null}const n={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},i={nan:"NaN",number:"թիվ",array:"զանգված"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${r.expected}, ստացվել է ${a}`:`Սխալ մուտքագրում․ սպասվում էր ${o}, ստացվել է ${a}`}case"invalid_value":return r.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${is(r.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);if(s){const a=Number(r.maximum),l=KAt(a,s.unit.one,s.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${B4(r.origin??"արժեք")} կունենա ${o}${r.maximum.toString()} ${l}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${B4(r.origin??"արժեք")} լինի ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);if(s){const a=Number(r.minimum),l=KAt(a,s.unit.one,s.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${B4(r.origin)} կունենա ${o}${r.minimum.toString()} ${l}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${B4(r.origin)} լինի ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Սխալ տող․ պետք է սկսվի "${o.prefix}"-ով`:o.format==="ends_with"?`Սխալ տող․ պետք է ավարտվի "${o.suffix}"-ով`:o.format==="includes"?`Սխալ տող․ պետք է պարունակի "${o.includes}"`:o.format==="regex"?`Սխալ տող․ պետք է համապատասխանի ${o.pattern} ձևաչափին`:`Սխալ ${n[o.format]??r.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${r.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${r.keys.length>1?"ներ":""}. ${$i(r.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${B4(r.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${B4(r.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};function Xhi(){return{localeError:Zhi()}}var Jhi=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}const n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${a}`:`Input tidak valid: diharapkan ${o}, diterima ${a}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${is(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${o}${r.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${n[o.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${$i(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function efi(){return{localeError:Jhi()}}var tfi=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function t(r){return e[r]??null}const n={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"númer",array:"fylki"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Rangt gildi: Þú slóst inn ${a} þar sem á að vera instanceof ${r.expected}`:`Rangt gildi: Þú slóst inn ${a} þar sem á að vera ${o}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert ráð fyrir ${is(r.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Of stórt: gert er ráð fyrir að ${r.origin??"gildi"} hafi ${o}${r.maximum.toString()} ${s.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${r.origin??"gildi"} sé ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Of lítið: gert er ráð fyrir að ${r.origin} hafi ${o}${r.minimum.toString()} ${s.unit}`:`Of lítið: gert er ráð fyrir að ${r.origin} sé ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Ógildur strengur: verður að byrja á "${o.prefix}"`:o.format==="ends_with"?`Ógildur strengur: verður að enda á "${o.suffix}"`:o.format==="includes"?`Ógildur strengur: verður að innihalda "${o.includes}"`:o.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${o.pattern}`:`Rangt ${n[o.format]??r.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${r.divisor}`;case"unrecognized_keys":return`Óþekkt ${r.keys.length>1?"ir lyklar":"ur lykill"}: ${$i(r.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${r.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${r.origin}`;default:return"Rangt gildi"}}};function nfi(){return{localeError:tfi()}}var ifi=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}const n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${a}`:`Input non valido: atteso ${o}, ricevuto ${a}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${is(r.values[0])}`:`Opzione non valida: atteso uno tra ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Troppo grande: ${r.origin??"valore"} deve avere ${o}${r.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${n[o.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${$i(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function rfi(){return{localeError:ifi()}}var ofi=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(r){return e[r]??null}const n={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},i={nan:"NaN",number:"数値",array:"配列"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`無効な入力: instanceof ${r.expected}が期待されましたが、${a}が入力されました`:`無効な入力: ${o}が期待されましたが、${a}が入力されました`}case"invalid_value":return r.values.length===1?`無効な入力: ${is(r.values[0])}が期待されました`:`無効な選択: ${$i(r.values,"、")}のいずれかである必要があります`;case"too_big":{const o=r.inclusive?"以下である":"より小さい",s=t(r.origin);return s?`大きすぎる値: ${r.origin??"値"}は${r.maximum.toString()}${s.unit??"要素"}${o}必要があります`:`大きすぎる値: ${r.origin??"値"}は${r.maximum.toString()}${o}必要があります`}case"too_small":{const o=r.inclusive?"以上である":"より大きい",s=t(r.origin);return s?`小さすぎる値: ${r.origin}は${r.minimum.toString()}${s.unit}${o}必要があります`:`小さすぎる値: ${r.origin}は${r.minimum.toString()}${o}必要があります`}case"invalid_format":{const o=r;return o.format==="starts_with"?`無効な文字列: "${o.prefix}"で始まる必要があります`:o.format==="ends_with"?`無効な文字列: "${o.suffix}"で終わる必要があります`:o.format==="includes"?`無効な文字列: "${o.includes}"を含む必要があります`:o.format==="regex"?`無効な文字列: パターン${o.pattern}に一致する必要があります`:`無効な${n[o.format]??r.format}`}case"not_multiple_of":return`無効な数値: ${r.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${r.keys.length>1?"群":""}: ${$i(r.keys,"、")}`;case"invalid_key":return`${r.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${r.origin}内の無効な値`;default:return"無効な入力"}}};function sfi(){return{localeError:ofi()}}var afi=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function t(r){return e[r]??null}const n={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},i={nan:"NaN",number:"რიცხვი",string:"სტრინგი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${r.expected}, მიღებული ${a}`:`არასწორი შეყვანა: მოსალოდნელი ${o}, მიღებული ${a}`}case"invalid_value":return r.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${is(r.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${$i(r.values,"|")}-დან`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`ზედმეტად დიდი: მოსალოდნელი ${r.origin??"მნიშვნელობა"} ${s.verb} ${o}${r.maximum.toString()} ${s.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${r.origin??"მნიშვნელობა"} იყოს ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`ზედმეტად პატარა: მოსალოდნელი ${r.origin} ${s.verb} ${o}${r.minimum.toString()} ${s.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${r.origin} იყოს ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`არასწორი სტრინგი: უნდა იწყებოდეს "${o.prefix}"-ით`:o.format==="ends_with"?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${o.suffix}"-ით`:o.format==="includes"?`არასწორი სტრინგი: უნდა შეიცავდეს "${o.includes}"-ს`:o.format==="regex"?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${o.pattern}`:`არასწორი ${n[o.format]??r.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${r.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${r.keys.length>1?"ები":"ი"}: ${$i(r.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${r.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${r.origin}-ში`;default:return"არასწორი შეყვანა"}}};function lfi(){return{localeError:afi()}}var cfi=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(r){return e[r]??null}const n={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},i={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${r.expected} ប៉ុន្តែទទួលបាន ${a}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${o} ប៉ុន្តែទទួលបាន ${a}`}case"invalid_value":return r.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${is(r.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`ធំពេក៖ ត្រូវការ ${r.origin??"តម្លៃ"} ${o} ${r.maximum.toString()} ${s.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${r.origin??"តម្លៃ"} ${o} ${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`តូចពេក៖ ត្រូវការ ${r.origin} ${o} ${r.minimum.toString()} ${s.unit}`:`តូចពេក៖ ត្រូវការ ${r.origin} ${o} ${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${o.prefix}"`:o.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${o.suffix}"`:o.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${o.includes}"`:o.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${o.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[o.format]??r.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${r.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${$i(r.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${r.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${r.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function qdn(){return{localeError:cfi()}}function ufi(){return qdn()}var dfi=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(r){return e[r]??null}const n={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`잘못된 입력: 예상 타입은 instanceof ${r.expected}, 받은 타입은 ${a}입니다`:`잘못된 입력: 예상 타입은 ${o}, 받은 타입은 ${a}입니다`}case"invalid_value":return r.values.length===1?`잘못된 입력: 값은 ${is(r.values[0])} 이어야 합니다`:`잘못된 옵션: ${$i(r.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const o=r.inclusive?"이하":"미만",s=o==="미만"?"이어야 합니다":"여야 합니다",a=t(r.origin),l=a?.unit??"요소";return a?`${r.origin??"값"}이 너무 큽니다: ${r.maximum.toString()}${l} ${o}${s}`:`${r.origin??"값"}이 너무 큽니다: ${r.maximum.toString()} ${o}${s}`}case"too_small":{const o=r.inclusive?"이상":"초과",s=o==="이상"?"이어야 합니다":"여야 합니다",a=t(r.origin),l=a?.unit??"요소";return a?`${r.origin??"값"}이 너무 작습니다: ${r.minimum.toString()}${l} ${o}${s}`:`${r.origin??"값"}이 너무 작습니다: ${r.minimum.toString()} ${o}${s}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`잘못된 문자열: "${o.prefix}"(으)로 시작해야 합니다`:o.format==="ends_with"?`잘못된 문자열: "${o.suffix}"(으)로 끝나야 합니다`:o.format==="includes"?`잘못된 문자열: "${o.includes}"을(를) 포함해야 합니다`:o.format==="regex"?`잘못된 문자열: 정규식 ${o.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[o.format]??r.format}`}case"not_multiple_of":return`잘못된 숫자: ${r.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${$i(r.keys,", ")}`;case"invalid_key":return`잘못된 키: ${r.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${r.origin}`;default:return"잘못된 입력"}}};function hfi(){return{localeError:dfi()}}var O3=e=>e.charAt(0).toUpperCase()+e.slice(1);function YAt(e){const t=Math.abs(e),n=t%10,i=t%100;return i>=11&&i<=19||n===0?"many":n===1?"one":"few"}var ffi=()=>{const e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function t(r,o,s,a){const l=e[r]??null;return l===null?l:{unit:l.unit[o],verb:l.verb[a][s?"inclusive":"notInclusive"]}}const n={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},i={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${a}, o tikėtasi - instanceof ${r.expected}`:`Gautas tipas ${a}, o tikėtasi - ${o}`}case"invalid_value":return r.values.length===1?`Privalo būti ${is(r.values[0])}`:`Privalo būti vienas iš ${$i(r.values,"|")} pasirinkimų`;case"too_big":{const o=i[r.origin]??r.origin,s=t(r.origin,YAt(Number(r.maximum)),r.inclusive??!1,"smaller");if(s?.verb)return`${O3(o??r.origin??"reikšmė")} ${s.verb} ${r.maximum.toString()} ${s.unit??"elementų"}`;const a=r.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${O3(o??r.origin??"reikšmė")} turi būti ${a} ${r.maximum.toString()} ${s?.unit}`}case"too_small":{const o=i[r.origin]??r.origin,s=t(r.origin,YAt(Number(r.minimum)),r.inclusive??!1,"bigger");if(s?.verb)return`${O3(o??r.origin??"reikšmė")} ${s.verb} ${r.minimum.toString()} ${s.unit??"elementų"}`;const a=r.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${O3(o??r.origin??"reikšmė")} turi būti ${a} ${r.minimum.toString()} ${s?.unit}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Eilutė privalo prasidėti "${o.prefix}"`:o.format==="ends_with"?`Eilutė privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilutė privalo įtraukti "${o.includes}"`:o.format==="regex"?`Eilutė privalo atitikti ${o.pattern}`:`Neteisingas ${n[o.format]??r.format}`}case"not_multiple_of":return`Skaičius privalo būti ${r.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${r.keys.length>1?"i":"as"} rakt${r.keys.length>1?"ai":"as"}: ${$i(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const o=i[r.origin]??r.origin;return`${O3(o??r.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function pfi(){return{localeError:ffi()}}var gfi=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(r){return e[r]??null}const n={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},i={nan:"NaN",number:"број",array:"низа"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Грешен внес: се очекува instanceof ${r.expected}, примено ${a}`:`Грешен внес: се очекува ${o}, примено ${a}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${is(r.values[0])}`:`Грешана опција: се очекува една ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Премногу голем: се очекува ${r.origin??"вредноста"} да има ${o}${r.maximum.toString()} ${s.unit??"елементи"}`:`Премногу голем: се очекува ${r.origin??"вредноста"} да биде ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Премногу мал: се очекува ${r.origin} да има ${o}${r.minimum.toString()} ${s.unit}`:`Премногу мал: се очекува ${r.origin} да биде ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Неважечка низа: мора да започнува со "${o.prefix}"`:o.format==="ends_with"?`Неважечка низа: мора да завршува со "${o.suffix}"`:o.format==="includes"?`Неважечка низа: мора да вклучува "${o.includes}"`:o.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${o.pattern}`:`Invalid ${n[o.format]??r.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${$i(r.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${r.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${r.origin}`;default:return"Грешен внес"}}};function mfi(){return{localeError:gfi()}}var vfi=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}const n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${a}`:`Input tidak sah: dijangka ${o}, diterima ${a}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${is(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Terlalu besar: dijangka ${r.origin??"nilai"} ${s.verb} ${o}${r.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Terlalu kecil: dijangka ${r.origin} ${s.verb} ${o}${r.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${n[o.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${$i(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function yfi(){return{localeError:vfi()}}var bfi=()=>{const e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(r){return e[r]??null}const n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${a}`:`Ongeldige invoer: verwacht ${o}, ontving ${a}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${is(r.values[0])}`:`Ongeldige optie: verwacht één van ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin),a=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return s?`Te ${a}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${a}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} is`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin),a=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return s?`Te ${a}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${a}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${n[o.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${$i(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function _fi(){return{localeError:bfi()}}var wfi=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(r){return e[r]??null}const n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${a}`:`Ugyldig input: forventet ${o}, fikk ${a}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${is(r.values[0])}`:`Ugyldig valg: forventet en av ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`For stor(t): forventet ${r.origin??"value"} til å ha ${o}${r.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til å ha ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`For lite(n): forventet ${r.origin} til å ha ${o}${r.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${r.origin} til å ha ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Ugyldig streng: må starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: må ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: må inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: må matche mønsteret ${o.pattern}`:`Ugyldig ${n[o.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${$i(r.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function Cfi(){return{localeError:wfi()}}var Sfi=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function t(r){return e[r]??null}const n={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Fâsit giren: umulan instanceof ${r.expected}, alınan ${a}`:`Fâsit giren: umulan ${o}, alınan ${a}`}case"invalid_value":return r.values.length===1?`Fâsit giren: umulan ${is(r.values[0])}`:`Fâsit tercih: mûteberler ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Fazla büyük: ${r.origin??"value"}, ${o}${r.maximum.toString()} ${s.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${r.origin??"value"}, ${o}${r.maximum.toString()} olmalıydı.`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Fazla küçük: ${r.origin}, ${o}${r.minimum.toString()} ${s.unit} sahip olmalıydı.`:`Fazla küçük: ${r.origin}, ${o}${r.minimum.toString()} olmalıydı.`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Fâsit metin: "${o.prefix}" ile başlamalı.`:o.format==="ends_with"?`Fâsit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`Fâsit metin: "${o.includes}" ihtivâ etmeli.`:o.format==="regex"?`Fâsit metin: ${o.pattern} nakşına uymalı.`:`Fâsit ${n[o.format]??r.format}`}case"not_multiple_of":return`Fâsit sayı: ${r.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${r.keys.length>1?"s":""}: ${$i(r.keys,", ")}`;case"invalid_key":return`${r.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${r.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function xfi(){return{localeError:Sfi()}}var Efi=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(r){return e[r]??null}const n={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},i={nan:"NaN",number:"عدد",array:"ارې"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`ناسم ورودي: باید instanceof ${r.expected} وای, مګر ${a} ترلاسه شو`:`ناسم ورودي: باید ${o} وای, مګر ${a} ترلاسه شو`}case"invalid_value":return r.values.length===1?`ناسم ورودي: باید ${is(r.values[0])} وای`:`ناسم انتخاب: باید یو له ${$i(r.values,"|")} څخه وای`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`ډیر لوی: ${r.origin??"ارزښت"} باید ${o}${r.maximum.toString()} ${s.unit??"عنصرونه"} ولري`:`ډیر لوی: ${r.origin??"ارزښت"} باید ${o}${r.maximum.toString()} وي`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`ډیر کوچنی: ${r.origin} باید ${o}${r.minimum.toString()} ${s.unit} ولري`:`ډیر کوچنی: ${r.origin} باید ${o}${r.minimum.toString()} وي`}case"invalid_format":{const o=r;return o.format==="starts_with"?`ناسم متن: باید د "${o.prefix}" سره پیل شي`:o.format==="ends_with"?`ناسم متن: باید د "${o.suffix}" سره پای ته ورسيږي`:o.format==="includes"?`ناسم متن: باید "${o.includes}" ولري`:o.format==="regex"?`ناسم متن: باید د ${o.pattern} سره مطابقت ولري`:`${n[o.format]??r.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${r.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${r.keys.length>1?"کلیډونه":"کلیډ"}: ${$i(r.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${r.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${r.origin} کې`;default:return"ناسمه ورودي"}}};function Afi(){return{localeError:Efi()}}var Dfi=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function t(r){return e[r]??null}const n={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},i={nan:"NaN",number:"liczba",array:"tablica"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${r.expected}, otrzymano ${a}`:`Nieprawidłowe dane wejściowe: oczekiwano ${o}, otrzymano ${a}`}case"invalid_value":return r.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${is(r.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Za duża wartość: oczekiwano, że ${r.origin??"wartość"} będzie mieć ${o}${r.maximum.toString()} ${s.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${r.origin??"wartość"} będzie wynosić ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Za mała wartość: oczekiwano, że ${r.origin??"wartość"} będzie mieć ${o}${r.minimum.toString()} ${s.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${r.origin??"wartość"} będzie wynosić ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${o.prefix}"`:o.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${o.suffix}"`:o.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${o.includes}"`:o.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${o.pattern}`:`Nieprawidłow(y/a/e) ${n[o.format]??r.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${$i(r.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${r.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${r.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function Tfi(){return{localeError:Dfi()}}var kfi=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}const n={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"número",null:"nulo"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Tipo inválido: esperado instanceof ${r.expected}, recebido ${a}`:`Tipo inválido: esperado ${o}, recebido ${a}`}case"invalid_value":return r.values.length===1?`Entrada inválida: esperado ${is(r.values[0])}`:`Opção inválida: esperada uma das ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${o}${r.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Texto inválido: deve começar com "${o.prefix}"`:o.format==="ends_with"?`Texto inválido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inválido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inválido: deve corresponder ao padrão ${o.pattern}`:`${n[o.format]??r.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${$i(r.keys,", ")}`;case"invalid_key":return`Chave inválida em ${r.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${r.origin}`;default:return"Campo inválido"}}};function Ifi(){return{localeError:kfi()}}function QAt(e,t,n,i){const r=Math.abs(e),o=r%10,s=r%100;return s>=11&&s<=19?i:o===1?t:o>=2&&o<=4?n:i}var Lfi=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function t(r){return e[r]??null}const n={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},i={nan:"NaN",number:"число",array:"массив"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Неверный ввод: ожидалось instanceof ${r.expected}, получено ${a}`:`Неверный ввод: ожидалось ${o}, получено ${a}`}case"invalid_value":return r.values.length===1?`Неверный ввод: ожидалось ${is(r.values[0])}`:`Неверный вариант: ожидалось одно из ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);if(s){const a=Number(r.maximum),l=QAt(a,s.unit.one,s.unit.few,s.unit.many);return`Слишком большое значение: ожидалось, что ${r.origin??"значение"} будет иметь ${o}${r.maximum.toString()} ${l}`}return`Слишком большое значение: ожидалось, что ${r.origin??"значение"} будет ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);if(s){const a=Number(r.minimum),l=QAt(a,s.unit.one,s.unit.few,s.unit.many);return`Слишком маленькое значение: ожидалось, что ${r.origin} будет иметь ${o}${r.minimum.toString()} ${l}`}return`Слишком маленькое значение: ожидалось, что ${r.origin} будет ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Неверная строка: должна начинаться с "${o.prefix}"`:o.format==="ends_with"?`Неверная строка: должна заканчиваться на "${o.suffix}"`:o.format==="includes"?`Неверная строка: должна содержать "${o.includes}"`:o.format==="regex"?`Неверная строка: должна соответствовать шаблону ${o.pattern}`:`Неверный ${n[o.format]??r.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${r.divisor}`;case"unrecognized_keys":return`Нераспознанн${r.keys.length>1?"ые":"ый"} ключ${r.keys.length>1?"и":""}: ${$i(r.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${r.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${r.origin}`;default:return"Неверные входные данные"}}};function Nfi(){return{localeError:Lfi()}}var Pfi=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}const n={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"število",array:"tabela"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pričakovano instanceof ${r.expected}, prejeto ${a}`:`Neveljaven vnos: pričakovano ${o}, prejeto ${a}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pričakovano ${is(r.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Preveliko: pričakovano, da bo ${r.origin??"vrednost"} imelo ${o}${r.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${r.origin??"vrednost"} ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Premajhno: pričakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${s.unit}`:`Premajhno: pričakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Neveljaven niz: mora se začeti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se končati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${n[o.format]??r.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i ključi":" ključ"}: ${$i(r.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function Mfi(){return{localeError:Pfi()}}var Ofi=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function t(r){return e[r]??null}const n={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: förväntat instanceof ${r.expected}, fick ${a}`:`Ogiltig inmatning: förväntat ${o}, fick ${a}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: förväntat ${is(r.values[0])}`:`Ogiltigt val: förväntade en av ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`För stor(t): förväntade ${r.origin??"värdet"} att ha ${o}${r.maximum.toString()} ${s.unit??"element"}`:`För stor(t): förväntat ${r.origin??"värdet"} att ha ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`För lite(t): förväntade ${r.origin??"värdet"} att ha ${o}${r.minimum.toString()} ${s.unit}`:`För lite(t): förväntade ${r.origin??"värdet"} att ha ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Ogiltig sträng: måste börja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig sträng: måste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig sträng: måste innehålla "${o.includes}"`:o.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${o.pattern}"`:`Ogiltig(t) ${n[o.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${$i(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${r.origin??"värdet"}`;default:return"Ogiltig input"}}};function Rfi(){return{localeError:Ofi()}}var Ffi=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(r){return e[r]??null}const n={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${r.expected}, பெறப்பட்டது ${a}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${o}, பெறப்பட்டது ${a}`}case"invalid_value":return r.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${is(r.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${$i(r.values,"|")} இல் ஒன்று`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${r.origin??"மதிப்பு"} ${o}${r.maximum.toString()} ${s.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${r.origin??"மதிப்பு"} ${o}${r.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${r.origin} ${o}${r.minimum.toString()} ${s.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${r.origin} ${o}${r.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const o=r;return o.format==="starts_with"?`தவறான சரம்: "${o.prefix}" இல் தொடங்க வேண்டும்`:o.format==="ends_with"?`தவறான சரம்: "${o.suffix}" இல் முடிவடைய வேண்டும்`:o.format==="includes"?`தவறான சரம்: "${o.includes}" ஐ உள்ளடக்க வேண்டும்`:o.format==="regex"?`தவறான சரம்: ${o.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[o.format]??r.format}`}case"not_multiple_of":return`தவறான எண்: ${r.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${r.keys.length>1?"கள்":""}: ${$i(r.keys,", ")}`;case"invalid_key":return`${r.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${r.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function Bfi(){return{localeError:Ffi()}}var jfi=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(r){return e[r]??null}const n={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},i={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${r.expected} แต่ได้รับ ${a}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${o} แต่ได้รับ ${a}`}case"invalid_value":return r.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${is(r.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"ไม่เกิน":"น้อยกว่า",s=t(r.origin);return s?`เกินกำหนด: ${r.origin??"ค่า"} ควรมี${o} ${r.maximum.toString()} ${s.unit??"รายการ"}`:`เกินกำหนด: ${r.origin??"ค่า"} ควรมี${o} ${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?"อย่างน้อย":"มากกว่า",s=t(r.origin);return s?`น้อยกว่ากำหนด: ${r.origin} ควรมี${o} ${r.minimum.toString()} ${s.unit}`:`น้อยกว่ากำหนด: ${r.origin} ควรมี${o} ${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${o.prefix}"`:o.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${o.suffix}"`:o.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${o.includes}" อยู่ในข้อความ`:o.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${o.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[o.format]??r.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${r.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${$i(r.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${r.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${r.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function zfi(){return{localeError:jfi()}}var Vfi=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(r){return e[r]??null}const n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Geçersiz değer: beklenen instanceof ${r.expected}, alınan ${a}`:`Geçersiz değer: beklenen ${o}, alınan ${a}`}case"invalid_value":return r.values.length===1?`Geçersiz değer: beklenen ${is(r.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Çok büyük: beklenen ${r.origin??"değer"} ${o}${r.maximum.toString()} ${s.unit??"öğe"}`:`Çok büyük: beklenen ${r.origin??"değer"} ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Çok küçük: beklenen ${r.origin} ${o}${r.minimum.toString()} ${s.unit}`:`Çok küçük: beklenen ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Geçersiz metin: "${o.prefix}" ile başlamalı`:o.format==="ends_with"?`Geçersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Geçersiz metin: "${o.includes}" içermeli`:o.format==="regex"?`Geçersiz metin: ${o.pattern} desenine uymalı`:`Geçersiz ${n[o.format]??r.format}`}case"not_multiple_of":return`Geçersiz sayı: ${r.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${r.keys.length>1?"lar":""}: ${$i(r.keys,", ")}`;case"invalid_key":return`${r.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${r.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function Hfi(){return{localeError:Vfi()}}var Wfi=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(r){return e[r]??null}const n={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},i={nan:"NaN",number:"число",array:"масив"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Неправильні вхідні дані: очікується instanceof ${r.expected}, отримано ${a}`:`Неправильні вхідні дані: очікується ${o}, отримано ${a}`}case"invalid_value":return r.values.length===1?`Неправильні вхідні дані: очікується ${is(r.values[0])}`:`Неправильна опція: очікується одне з ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Занадто велике: очікується, що ${r.origin??"значення"} ${s.verb} ${o}${r.maximum.toString()} ${s.unit??"елементів"}`:`Занадто велике: очікується, що ${r.origin??"значення"} буде ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Занадто мале: очікується, що ${r.origin} ${s.verb} ${o}${r.minimum.toString()} ${s.unit}`:`Занадто мале: очікується, що ${r.origin} буде ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Неправильний рядок: повинен починатися з "${o.prefix}"`:o.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${o.suffix}"`:o.format==="includes"?`Неправильний рядок: повинен містити "${o.includes}"`:o.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${o.pattern}`:`Неправильний ${n[o.format]??r.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${r.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${r.keys.length>1?"і":""}: ${$i(r.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${r.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${r.origin}`;default:return"Неправильні вхідні дані"}}};function Gdn(){return{localeError:Wfi()}}function Ufi(){return Gdn()}var $fi=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(r){return e[r]??null}const n={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},i={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`غلط ان پٹ: instanceof ${r.expected} متوقع تھا، ${a} موصول ہوا`:`غلط ان پٹ: ${o} متوقع تھا، ${a} موصول ہوا`}case"invalid_value":return r.values.length===1?`غلط ان پٹ: ${is(r.values[0])} متوقع تھا`:`غلط آپشن: ${$i(r.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`بہت بڑا: ${r.origin??"ویلیو"} کے ${o}${r.maximum.toString()} ${s.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${r.origin??"ویلیو"} کا ${o}${r.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`بہت چھوٹا: ${r.origin} کے ${o}${r.minimum.toString()} ${s.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${r.origin} کا ${o}${r.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const o=r;return o.format==="starts_with"?`غلط سٹرنگ: "${o.prefix}" سے شروع ہونا چاہیے`:o.format==="ends_with"?`غلط سٹرنگ: "${o.suffix}" پر ختم ہونا چاہیے`:o.format==="includes"?`غلط سٹرنگ: "${o.includes}" شامل ہونا چاہیے`:o.format==="regex"?`غلط سٹرنگ: پیٹرن ${o.pattern} سے میچ ہونا چاہیے`:`غلط ${n[o.format]??r.format}`}case"not_multiple_of":return`غلط نمبر: ${r.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${r.keys.length>1?"ز":""}: ${$i(r.keys,"، ")}`;case"invalid_key":return`${r.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${r.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function qfi(){return{localeError:$fi()}}var Gfi=()=>{const e={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"}};function t(r){return e[r]??null}const n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${a}`:`Noto‘g‘ri kirish: kutilgan ${o}, qabul qilingan ${a}`}case"invalid_value":return r.values.length===1?`Noto‘g‘ri kirish: kutilgan ${is(r.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Noto‘g‘ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto‘g‘ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto‘g‘ri satr: "${o.includes}" ni o‘z ichiga olishi kerak`:o.format==="regex"?`Noto‘g‘ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[o.format]??r.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${r.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${r.keys.length>1?"lar":""}: ${$i(r.keys,", ")}`;case"invalid_key":return`${r.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${r.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};function Kfi(){return{localeError:Gfi()}}var Yfi=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function t(r){return e[r]??null}const n={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"},i={nan:"NaN",number:"số",array:"mảng"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${r.expected}, nhận được ${a}`:`Đầu vào không hợp lệ: mong đợi ${o}, nhận được ${a}`}case"invalid_value":return r.values.length===1?`Đầu vào không hợp lệ: mong đợi ${is(r.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Quá lớn: mong đợi ${r.origin??"giá trị"} ${s.verb} ${o}${r.maximum.toString()} ${s.unit??"phần tử"}`:`Quá lớn: mong đợi ${r.origin??"giá trị"} ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Quá nhỏ: mong đợi ${r.origin} ${s.verb} ${o}${r.minimum.toString()} ${s.unit}`:`Quá nhỏ: mong đợi ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${o.prefix}"`:o.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${o.suffix}"`:o.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${o.includes}"`:o.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${o.pattern}`:`${n[o.format]??r.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${r.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${$i(r.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${r.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${r.origin}`;default:return"Đầu vào không hợp lệ"}}};function Qfi(){return{localeError:Yfi()}}var Zfi=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(r){return e[r]??null}const n={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},i={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`无效输入:期望 instanceof ${r.expected},实际接收 ${a}`:`无效输入:期望 ${o},实际接收 ${a}`}case"invalid_value":return r.values.length===1?`无效输入:期望 ${is(r.values[0])}`:`无效选项:期望以下之一 ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`数值过大:期望 ${r.origin??"值"} ${o}${r.maximum.toString()} ${s.unit??"个元素"}`:`数值过大:期望 ${r.origin??"值"} ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`数值过小:期望 ${r.origin} ${o}${r.minimum.toString()} ${s.unit}`:`数值过小:期望 ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`无效字符串:必须以 "${o.prefix}" 开头`:o.format==="ends_with"?`无效字符串:必须以 "${o.suffix}" 结尾`:o.format==="includes"?`无效字符串:必须包含 "${o.includes}"`:o.format==="regex"?`无效字符串:必须满足正则表达式 ${o.pattern}`:`无效${n[o.format]??r.format}`}case"not_multiple_of":return`无效数字:必须是 ${r.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${$i(r.keys,", ")}`;case"invalid_key":return`${r.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${r.origin} 中包含无效值(value)`;default:return"无效输入"}}};function Xfi(){return{localeError:Zfi()}}var Jfi=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(r){return e[r]??null}const n={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`無效的輸入值:預期為 instanceof ${r.expected},但收到 ${a}`:`無效的輸入值:預期為 ${o},但收到 ${a}`}case"invalid_value":return r.values.length===1?`無效的輸入值:預期為 ${is(r.values[0])}`:`無效的選項:預期為以下其中之一 ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`數值過大:預期 ${r.origin??"值"} 應為 ${o}${r.maximum.toString()} ${s.unit??"個元素"}`:`數值過大:預期 ${r.origin??"值"} 應為 ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`數值過小:預期 ${r.origin} 應為 ${o}${r.minimum.toString()} ${s.unit}`:`數值過小:預期 ${r.origin} 應為 ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`無效的字串:必須以 "${o.prefix}" 開頭`:o.format==="ends_with"?`無效的字串:必須以 "${o.suffix}" 結尾`:o.format==="includes"?`無效的字串:必須包含 "${o.includes}"`:o.format==="regex"?`無效的字串:必須符合格式 ${o.pattern}`:`無效的 ${n[o.format]??r.format}`}case"not_multiple_of":return`無效的數字:必須為 ${r.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${r.keys.length>1?"們":""}:${$i(r.keys,"、")}`;case"invalid_key":return`${r.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${r.origin} 中有無效的值`;default:return"無效的輸入值"}}};function epi(){return{localeError:Jfi()}}var tpi=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function t(r){return e[r]??null}const n={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},i={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return r=>{switch(r.code){case"invalid_type":{const o=i[r.expected]??r.expected,s=us(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${r.expected}, àmọ̀ a rí ${a}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${o}, àmọ̀ a rí ${a}`}case"invalid_value":return r.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${is(r.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${$i(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Tó pọ̀ jù: a ní láti jẹ́ pé ${r.origin??"iye"} ${s.verb} ${o}${r.maximum} ${s.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${o}${r.maximum}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Kéré ju: a ní láti jẹ́ pé ${r.origin} ${s.verb} ${o}${r.minimum} ${s.unit}`:`Kéré ju: a ní láti jẹ́ ${o}${r.minimum}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${o.prefix}"`:o.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${o.suffix}"`:o.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${o.includes}"`:o.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${o.pattern}`:`Aṣìṣe: ${n[o.format]??r.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${r.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${$i(r.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${r.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${r.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function npi(){return{localeError:tpi()}}var ZAt,Kdn=Symbol("ZodOutput"),Ydn=Symbol("ZodInput"),Qdn=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const n=t[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const n={...this.get(t)??{}};delete n.id;const i={...n,...this._map.get(e)};return Object.keys(i).length?i:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function WGe(){return new Qdn}(ZAt=globalThis).__zod_globalRegistry??(ZAt.__zod_globalRegistry=WGe());var R_=globalThis.__zod_globalRegistry;function Zdn(e,t){return new e({type:"string",...Qi(t)})}function Xdn(e,t){return new e({type:"string",coerce:!0,...Qi(t)})}function UGe(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Qi(t)})}function mhe(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Qi(t)})}function $Ge(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Qi(t)})}function qGe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Qi(t)})}function GGe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Qi(t)})}function KGe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Qi(t)})}function Ume(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Qi(t)})}function YGe(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Qi(t)})}function QGe(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Qi(t)})}function ZGe(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Qi(t)})}function XGe(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Qi(t)})}function JGe(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Qi(t)})}function eKe(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Qi(t)})}function tKe(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Qi(t)})}function nKe(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Qi(t)})}function iKe(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Qi(t)})}function Jdn(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...Qi(t)})}function rKe(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Qi(t)})}function oKe(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Qi(t)})}function sKe(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Qi(t)})}function aKe(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Qi(t)})}function lKe(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Qi(t)})}function cKe(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Qi(t)})}var ehn={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function thn(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Qi(t)})}function nhn(e,t){return new e({type:"string",format:"date",check:"string_format",...Qi(t)})}function ihn(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Qi(t)})}function rhn(e,t){return new e({type:"string",format:"duration",check:"string_format",...Qi(t)})}function ohn(e,t){return new e({type:"number",checks:[],...Qi(t)})}function shn(e,t){return new e({type:"number",coerce:!0,checks:[],...Qi(t)})}function ahn(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Qi(t)})}function lhn(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...Qi(t)})}function chn(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...Qi(t)})}function uhn(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...Qi(t)})}function dhn(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...Qi(t)})}function hhn(e,t){return new e({type:"boolean",...Qi(t)})}function fhn(e,t){return new e({type:"boolean",coerce:!0,...Qi(t)})}function phn(e,t){return new e({type:"bigint",...Qi(t)})}function ghn(e,t){return new e({type:"bigint",coerce:!0,...Qi(t)})}function mhn(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...Qi(t)})}function vhn(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...Qi(t)})}function yhn(e,t){return new e({type:"symbol",...Qi(t)})}function bhn(e,t){return new e({type:"undefined",...Qi(t)})}function _hn(e,t){return new e({type:"null",...Qi(t)})}function whn(e){return new e({type:"any"})}function Chn(e){return new e({type:"unknown"})}function Shn(e,t){return new e({type:"never",...Qi(t)})}function xhn(e,t){return new e({type:"void",...Qi(t)})}function Ehn(e,t){return new e({type:"date",...Qi(t)})}function Ahn(e,t){return new e({type:"date",coerce:!0,...Qi(t)})}function Dhn(e,t){return new e({type:"nan",...Qi(t)})}function GL(e,t){return new PGe({check:"less_than",...Qi(t),value:e,inclusive:!1})}function $_(e,t){return new PGe({check:"less_than",...Qi(t),value:e,inclusive:!0})}function KL(e,t){return new MGe({check:"greater_than",...Qi(t),value:e,inclusive:!1})}function C0(e,t){return new MGe({check:"greater_than",...Qi(t),value:e,inclusive:!0})}function uKe(e){return KL(0,e)}function dKe(e){return GL(0,e)}function hKe(e){return $_(0,e)}function fKe(e){return C0(0,e)}function S9(e,t){return new hun({check:"multiple_of",...Qi(t),value:e})}function tj(e,t){return new gun({check:"max_size",...Qi(t),maximum:e})}function YL(e,t){return new mun({check:"min_size",...Qi(t),minimum:e})}function cQ(e,t){return new vun({check:"size_equals",...Qi(t),size:e})}function uQ(e,t){return new yun({check:"max_length",...Qi(t),maximum:e})}function y2(e,t){return new bun({check:"min_length",...Qi(t),minimum:e})}function dQ(e,t){return new _un({check:"length_equals",...Qi(t),length:e})}function $me(e,t){return new wun({check:"string_format",format:"regex",...Qi(t),pattern:e})}function qme(e){return new Cun({check:"string_format",format:"lowercase",...Qi(e)})}function Gme(e){return new Sun({check:"string_format",format:"uppercase",...Qi(e)})}function Kme(e,t){return new xun({check:"string_format",format:"includes",...Qi(t),includes:e})}function Yme(e,t){return new Eun({check:"string_format",format:"starts_with",...Qi(t),prefix:e})}function Qme(e,t){return new Aun({check:"string_format",format:"ends_with",...Qi(t),suffix:e})}function pKe(e,t,n){return new Dun({check:"property",property:e,schema:t,...Qi(n)})}function Zme(e,t){return new Tun({check:"mime_type",mime:e,...Qi(t)})}function kT(e){return new kun({check:"overwrite",tx:e})}function Xme(e){return kT(t=>t.normalize(e))}function Jme(){return kT(e=>e.trim())}function eve(){return kT(e=>e.toLowerCase())}function tve(){return kT(e=>e.toUpperCase())}function nve(){return kT(e=>bcn(e))}function Thn(e,t,n){return new e({type:"array",element:t,...Qi(n)})}function ipi(e,t,n){return new e({type:"union",options:t,...Qi(n)})}function rpi(e,t,n){return new e({type:"union",options:t,inclusive:!1,...Qi(n)})}function opi(e,t,n,i){return new e({type:"union",options:n,discriminator:t,...Qi(i)})}function spi(e,t,n){return new e({type:"intersection",left:t,right:n})}function api(e,t,n,i){const r=n instanceof Os,o=r?i:n,s=r?n:null;return new e({type:"tuple",items:t,rest:s,...Qi(o)})}function lpi(e,t,n,i){return new e({type:"record",keyType:t,valueType:n,...Qi(i)})}function cpi(e,t,n,i){return new e({type:"map",keyType:t,valueType:n,...Qi(i)})}function upi(e,t,n){return new e({type:"set",valueType:t,...Qi(n)})}function dpi(e,t,n){const i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:i,...Qi(n)})}function hpi(e,t,n){return new e({type:"enum",entries:t,...Qi(n)})}function fpi(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...Qi(n)})}function khn(e,t){return new e({type:"file",...Qi(t)})}function ppi(e,t){return new e({type:"transform",transform:t})}function gpi(e,t){return new e({type:"optional",innerType:t})}function mpi(e,t){return new e({type:"nullable",innerType:t})}function vpi(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():wcn(n)}})}function ypi(e,t,n){return new e({type:"nonoptional",innerType:t,...Qi(n)})}function bpi(e,t){return new e({type:"success",innerType:t})}function _pi(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function wpi(e,t,n){return new e({type:"pipe",in:t,out:n})}function Cpi(e,t){return new e({type:"readonly",innerType:t})}function Spi(e,t,n){return new e({type:"template_literal",parts:t,...Qi(n)})}function xpi(e,t){return new e({type:"lazy",getter:t})}function Epi(e,t){return new e({type:"promise",innerType:t})}function Ihn(e,t,n){const i=Qi(n);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function Lhn(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Qi(n)})}function Nhn(e){const t=Phn(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(phe(i,n.value,t._zod.def));else{const r=i;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),n.issues.push(phe(r))}},e(n.value,n)));return t}function Phn(e,t){const n=new Qu({check:"custom",...Qi(t)});return n._zod.check=e,n}function Mhn(e){const t=new Qu({check:"describe"});return t._zod.onattach=[n=>{const i=R_.get(n)??{};R_.add(n,{...i,description:e})}],t._zod.check=()=>{},t}function Ohn(e){const t=new Qu({check:"meta"});return t._zod.onattach=[n=>{const i=R_.get(n)??{};R_.add(n,{...i,...e})}],t._zod.check=()=>{},t}function Rhn(e,t){const n=Qi(t);let i=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(i=i.map(f=>typeof f=="string"?f.toLowerCase():f),r=r.map(f=>typeof f=="string"?f.toLowerCase():f));const o=new Set(i),s=new Set(r),a=e.Codec??VGe,l=e.Boolean??FGe,c=e.String??lQ,u=new c({type:"string",error:n.error}),d=new l({type:"boolean",error:n.error}),h=new a({type:"pipe",in:u,out:d,transform:((f,p)=>{let g=f;return n.case!=="sensitive"&&(g=g.toLowerCase()),o.has(g)?!0:s.has(g)?!1:(p.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...s],input:p.value,inst:h,continue:!1}),{})}),reverseTransform:((f,p)=>f===!0?i[0]||"true":r[0]||"false"),error:n.error});return h}function hQ(e,t,n,i={}){const r=Qi(i),o={...Qi(i),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:a=>n.test(a),...r};return n instanceof RegExp&&(o.pattern=n),new e(o)}function x9(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??R_,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Wc(e,t,n={path:[],schemaPath:[]}){var i;const r=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;const s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s);const a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{const u={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,u);else{const h=s.schema,f=t.processors[r.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);f(e,t,h,u)}const d=e._zod.parent;d&&(s.ref||(s.ref=d),Wc(d,t,u),t.seen.get(d).isParent=!0)}const l=t.metadataRegistry.get(e);return l&&Object.assign(s.schema,l),t.io==="input"&&Fm(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&s.schema._prefault&&((i=s.schema).default??(i.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function E9(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=new Map;for(const s of e.seen.entries()){const a=e.metadataRegistry.get(s[0])?.id;if(a){const l=i.get(a);if(l&&l!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(a,s[0])}}const r=s=>{const a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const d=e.external.registry.get(s[0])?.id,h=e.external.uri??(p=>p);if(d)return{ref:h(d)};const f=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=f,{defId:f,ref:`${h("__shared")}#/${a}/${f}`}}if(s[1]===n)return{ref:"#"};const c=`#/${a}/`,u=s[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:c+u}},o=s=>{if(s[1].schema.$ref)return;const a=s[1],{ref:l,defId:c}=r(s);a.def={...a.schema},c&&(a.defId=c);const u=a.schema;for(const d in u)delete u[d];u.$ref=l};if(e.cycles==="throw")for(const s of e.seen.entries()){const a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>

Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const s of e.seen.entries()){const a=s[1];if(t===s[0]){o(s);continue}if(e.external){const c=e.external.registry.get(s[0])?.id;if(t!==s[0]&&c){o(s);continue}}if(e.metadataRegistry.get(s[0])?.id){o(s);continue}if(a.cycle){o(s);continue}if(a.count>1&&e.reused==="ref"){o(s);continue}}}function A9(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=s=>{const a=e.seen.get(s);if(a.ref===null)return;const l=a.def??a.schema,c={...l},u=a.ref;if(a.ref=null,u){i(u);const h=e.seen.get(u),f=h.schema;if(f.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(f)):Object.assign(l,f),Object.assign(l,c),s._zod.parent===u)for(const g in l)g==="$ref"||g==="allOf"||g in c||delete l[g];if(f.$ref&&h.def)for(const g in l)g==="$ref"||g==="allOf"||g in h.def&&JSON.stringify(l[g])===JSON.stringify(h.def[g])&&delete l[g]}const d=s._zod.parent;if(d&&d!==u){i(d);const h=e.seen.get(d);if(h?.schema.$ref&&(l.$ref=h.schema.$ref,h.def))for(const f in l)f==="$ref"||f==="allOf"||f in h.def&&JSON.stringify(l[f])===JSON.stringify(h.def[f])&&delete l[f]}e.override({zodSchema:s,jsonSchema:l,path:a.path??[]})};for(const s of[...e.seen.entries()].reverse())i(s[0]);const r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(s)}Object.assign(r,n.def??n.schema);const o=e.external?.defs??{};for(const s of e.seen.entries()){const a=s[1];a.def&&a.defId&&(o[a.defId]=a.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?r.$defs=o:r.definitions=o);try{const s=JSON.parse(JSON.stringify(r));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:IG(t,"input",e.processors),output:IG(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function Fm(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return Fm(i.element,n);if(i.type==="set")return Fm(i.valueType,n);if(i.type==="lazy")return Fm(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return Fm(i.innerType,n);if(i.type==="intersection")return Fm(i.left,n)||Fm(i.right,n);if(i.type==="record"||i.type==="map")return Fm(i.keyType,n)||Fm(i.valueType,n);if(i.type==="pipe")return Fm(i.in,n)||Fm(i.out,n);if(i.type==="object"){for(const r in i.shape)if(Fm(i.shape[r],n))return!0;return!1}if(i.type==="union"){for(const r of i.options)if(Fm(r,n))return!0;return!1}if(i.type==="tuple"){for(const r of i.items)if(Fm(r,n))return!0;return!!(i.rest&&Fm(i.rest,n))}return!1}var Fhn=(e,t={})=>n=>{const i=x9({...n,processors:t});return Wc(e,i),E9(i,e),A9(i,e)},IG=(e,t,n={})=>i=>{const{libraryOptions:r,target:o}=i??{},s=x9({...r??{},target:o,io:t,processors:n});return Wc(e,s),E9(s,e),A9(s,e)},Api={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Bhn=(e,t,n,i)=>{const r=n;r.type="string";const{minimum:o,maximum:s,format:a,patterns:l,contentEncoding:c}=e._zod.bag;if(typeof o=="number"&&(r.minLength=o),typeof s=="number"&&(r.maxLength=s),a&&(r.format=Api[a]??a,r.format===""&&delete r.format,a==="time"&&delete r.format),c&&(r.contentEncoding=c),l&&l.size>0){const u=[...l];u.length===1?r.pattern=u[0].source:u.length>1&&(r.allOf=[...u.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},jhn=(e,t,n,i)=>{const r=n,{minimum:o,maximum:s,format:a,multipleOf:l,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof a=="string"&&a.includes("int")?r.type="integer":r.type="number",typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u),typeof o=="number"&&(r.minimum=o,typeof u=="number"&&t.target!=="draft-04"&&(u>=o?delete r.minimum:delete r.exclusiveMinimum)),typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=c,r.exclusiveMaximum=!0):r.exclusiveMaximum=c),typeof s=="number"&&(r.maximum=s,typeof c=="number"&&t.target!=="draft-04"&&(c<=s?delete r.maximum:delete r.exclusiveMaximum)),typeof l=="number"&&(r.multipleOf=l)},zhn=(e,t,n,i)=>{n.type="boolean"},Vhn=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Hhn=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Whn=(e,t,n,i)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},Uhn=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},$hn=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},qhn=(e,t,n,i)=>{n.not={}},Ghn=(e,t,n,i)=>{},Khn=(e,t,n,i)=>{},Yhn=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Qhn=(e,t,n,i)=>{const r=e._zod.def,o=yGe(r.entries);o.every(s=>typeof s=="number")&&(n.type="number"),o.every(s=>typeof s=="string")&&(n.type="string"),n.enum=o},Zhn=(e,t,n,i)=>{const r=e._zod.def,o=[];for(const s of r.values)if(s===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(s))}else o.push(s);if(o.length!==0)if(o.length===1){const s=o[0];n.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[s]:n.const=s}else o.every(s=>typeof s=="number")&&(n.type="number"),o.every(s=>typeof s=="string")&&(n.type="string"),o.every(s=>typeof s=="boolean")&&(n.type="boolean"),o.every(s=>s===null)&&(n.type="null"),n.enum=o},Xhn=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Jhn=(e,t,n,i)=>{const r=n,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=o.source},efn=(e,t,n,i)=>{const r=n,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:a,mime:l}=e._zod.bag;s!==void 0&&(o.minLength=s),a!==void 0&&(o.maxLength=a),l?l.length===1?(o.contentMediaType=l[0],Object.assign(r,o)):(Object.assign(r,o),r.anyOf=l.map(c=>({contentMediaType:c}))):Object.assign(r,o)},tfn=(e,t,n,i)=>{n.type="boolean"},nfn=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},ifn=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},rfn=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},ofn=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},sfn=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},afn=(e,t,n,i)=>{const r=n,o=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;typeof s=="number"&&(r.minItems=s),typeof a=="number"&&(r.maxItems=a),r.type="array",r.items=Wc(o.element,t,{...i,path:[...i.path,"items"]})},lfn=(e,t,n,i)=>{const r=n,o=e._zod.def;r.type="object",r.properties={};const s=o.shape;for(const c in s)r.properties[c]=Wc(s[c],t,{...i,path:[...i.path,"properties",c]});const a=new Set(Object.keys(s)),l=new Set([...a].filter(c=>{const u=o.shape[c]._zod;return t.io==="input"?u.optin===void 0:u.optout===void 0}));l.size>0&&(r.required=Array.from(l)),o.catchall?._zod.def.type==="never"?r.additionalProperties=!1:o.catchall?o.catchall&&(r.additionalProperties=Wc(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},gKe=(e,t,n,i)=>{const r=e._zod.def,o=r.inclusive===!1,s=r.options.map((a,l)=>Wc(a,t,{...i,path:[...i.path,o?"oneOf":"anyOf",l]}));o?n.oneOf=s:n.anyOf=s},cfn=(e,t,n,i)=>{const r=e._zod.def,o=Wc(r.left,t,{...i,path:[...i.path,"allOf",0]}),s=Wc(r.right,t,{...i,path:[...i.path,"allOf",1]}),a=c=>"allOf"in c&&Object.keys(c).length===1,l=[...a(o)?o.allOf:[o],...a(s)?s.allOf:[s]];n.allOf=l},ufn=(e,t,n,i)=>{const r=n,o=e._zod.def;r.type="array";const s=t.target==="draft-2020-12"?"prefixItems":"items",a=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=o.items.map((h,f)=>Wc(h,t,{...i,path:[...i.path,s,f]})),c=o.rest?Wc(o.rest,t,{...i,path:[...i.path,a,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=l,c&&(r.items=c)):t.target==="openapi-3.0"?(r.items={anyOf:l},c&&r.items.anyOf.push(c),r.minItems=l.length,c||(r.maxItems=l.length)):(r.items=l,c&&(r.additionalItems=c));const{minimum:u,maximum:d}=e._zod.bag;typeof u=="number"&&(r.minItems=u),typeof d=="number"&&(r.maxItems=d)},dfn=(e,t,n,i)=>{const r=n,o=e._zod.def;r.type="object";const s=o.keyType,l=s._zod.bag?.patterns;if(o.mode==="loose"&&l&&l.size>0){const u=Wc(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});r.patternProperties={};for(const d of l)r.patternProperties[d.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=Wc(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),r.additionalProperties=Wc(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});const c=s._zod.values;if(c){const u=[...c].filter(d=>typeof d=="string"||typeof d=="number");u.length>0&&(r.required=u)}},hfn=(e,t,n,i)=>{const r=e._zod.def,o=Wc(r.innerType,t,i),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=r.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},ffn=(e,t,n,i)=>{const r=e._zod.def;Wc(r.innerType,t,i);const o=t.seen.get(e);o.ref=r.innerType},pfn=(e,t,n,i)=>{const r=e._zod.def;Wc(r.innerType,t,i);const o=t.seen.get(e);o.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},gfn=(e,t,n,i)=>{const r=e._zod.def;Wc(r.innerType,t,i);const o=t.seen.get(e);o.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},mfn=(e,t,n,i)=>{const r=e._zod.def;Wc(r.innerType,t,i);const o=t.seen.get(e);o.ref=r.innerType;let s;try{s=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=s},vfn=(e,t,n,i)=>{const r=e._zod.def,o=t.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;Wc(o,t,i);const s=t.seen.get(e);s.ref=o},yfn=(e,t,n,i)=>{const r=e._zod.def;Wc(r.innerType,t,i);const o=t.seen.get(e);o.ref=r.innerType,n.readOnly=!0},bfn=(e,t,n,i)=>{const r=e._zod.def;Wc(r.innerType,t,i);const o=t.seen.get(e);o.ref=r.innerType},mKe=(e,t,n,i)=>{const r=e._zod.def;Wc(r.innerType,t,i);const o=t.seen.get(e);o.ref=r.innerType},_fn=(e,t,n,i)=>{const r=e._zod.innerType;Wc(r,t,i);const o=t.seen.get(e);o.ref=r},L9e={string:Bhn,number:jhn,boolean:zhn,bigint:Vhn,symbol:Hhn,null:Whn,undefined:Uhn,void:$hn,never:qhn,any:Ghn,unknown:Khn,date:Yhn,enum:Qhn,literal:Zhn,nan:Xhn,template_literal:Jhn,file:efn,success:tfn,custom:nfn,function:ifn,transform:rfn,map:ofn,set:sfn,array:afn,object:lfn,union:gKe,intersection:cfn,tuple:ufn,record:dfn,nullable:hfn,nonoptional:ffn,default:pfn,prefault:gfn,catch:mfn,pipe:vfn,readonly:yfn,promise:bfn,optional:mKe,lazy:_fn};function wfn(e,t){if("_idmap"in e){const i=e,r=x9({...t,processors:L9e}),o={};for(const l of i._idmap.entries()){const[c,u]=l;Wc(u,r)}const s={},a={registry:i,uri:t?.uri,defs:o};r.external=a;for(const l of i._idmap.entries()){const[c,u]=l;E9(r,u),s[c]=A9(r,u)}if(Object.keys(o).length>0){const l=r.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[l]:o}}return{schemas:s}}const n=x9({...t,processors:L9e});return Wc(e,n),E9(n,e),A9(n,e)}var Dpi=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??"draft-2020-12";t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),this.ctx=x9({processors:L9e,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return Wc(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),E9(this.ctx,e);const n=A9(this.ctx,e),{"~standard":i,...r}=n;return r}},Tpi={},Cfn={};oc(Cfn,{ZodAny:()=>kKe,ZodArray:()=>PKe,ZodBase64:()=>mve,ZodBase64URL:()=>vve,ZodBigInt:()=>vQ,ZodBigIntFormat:()=>_ve,ZodBoolean:()=>mQ,ZodCIDRv4:()=>pve,ZodCIDRv6:()=>gve,ZodCUID:()=>ave,ZodCUID2:()=>lve,ZodCatch:()=>tYe,ZodCodec:()=>Tve,ZodCustom:()=>SQ,ZodCustomStringFormat:()=>nj,ZodDate:()=>Cve,ZodDefault:()=>YKe,ZodDiscriminatedUnion:()=>OKe,ZodE164:()=>yve,ZodEmail:()=>rve,ZodEmoji:()=>ove,ZodEnum:()=>D9,ZodExactOptional:()=>qKe,ZodFile:()=>UKe,ZodFunction:()=>uYe,ZodGUID:()=>LG,ZodIPv4:()=>hve,ZodIPv6:()=>fve,ZodIntersection:()=>RKe,ZodJWT:()=>bve,ZodKSUID:()=>dve,ZodLazy:()=>aYe,ZodLiteral:()=>WKe,ZodMAC:()=>CKe,ZodMap:()=>VKe,ZodNaN:()=>iYe,ZodNanoID:()=>sve,ZodNever:()=>LKe,ZodNonOptional:()=>Ave,ZodNull:()=>DKe,ZodNullable:()=>KKe,ZodNumber:()=>gQ,ZodNumberFormat:()=>_F,ZodObject:()=>bQ,ZodOptional:()=>CQ,ZodPipe:()=>Dve,ZodPrefault:()=>ZKe,ZodPromise:()=>cYe,ZodReadonly:()=>rYe,ZodRecord:()=>wQ,ZodSet:()=>HKe,ZodString:()=>fQ,ZodStringFormat:()=>uu,ZodSuccess:()=>eYe,ZodSymbol:()=>EKe,ZodTemplateLiteral:()=>sYe,ZodTransform:()=>$Ke,ZodTuple:()=>BKe,ZodType:()=>ws,ZodULID:()=>cve,ZodURL:()=>pQ,ZodUUID:()=>bx,ZodUndefined:()=>AKe,ZodUnion:()=>_Q,ZodUnknown:()=>IKe,ZodVoid:()=>NKe,ZodXID:()=>uve,ZodXor:()=>MKe,_ZodString:()=>ive,_default:()=>QKe,_function:()=>bhe,any:()=>xpn,array:()=>yQ,base64:()=>apn,base64url:()=>lpn,bigint:()=>bpn,boolean:()=>xKe,catch:()=>nYe,check:()=>qpn,cidrv4:()=>opn,cidrv6:()=>spn,codec:()=>Wpn,cuid:()=>Zfn,cuid2:()=>Xfn,custom:()=>Gpn,date:()=>Apn,describe:()=>Kpn,discriminatedUnion:()=>Npn,e164:()=>cpn,email:()=>Vfn,emoji:()=>Yfn,enum:()=>xve,exactOptional:()=>GKe,file:()=>jpn,float32:()=>gpn,float64:()=>mpn,function:()=>bhe,guid:()=>Hfn,hash:()=>ppn,hex:()=>fpn,hostname:()=>hpn,httpUrl:()=>Kfn,instanceof:()=>Qpn,int:()=>yhe,int32:()=>vpn,int64:()=>_pn,intersection:()=>FKe,ipv4:()=>npn,ipv6:()=>rpn,json:()=>Xpn,jwt:()=>upn,keyof:()=>Dpn,ksuid:()=>tpn,lazy:()=>lYe,literal:()=>Bpn,looseObject:()=>Ipn,looseRecord:()=>Mpn,mac:()=>ipn,map:()=>Opn,meta:()=>Ypn,nan:()=>Hpn,nanoid:()=>Qfn,nativeEnum:()=>Fpn,never:()=>wve,nonoptional:()=>JKe,null:()=>TKe,nullable:()=>PG,nullish:()=>zpn,number:()=>SKe,object:()=>Tpn,optional:()=>NG,partialRecord:()=>Ppn,pipe:()=>MG,prefault:()=>XKe,preprocess:()=>Jpn,promise:()=>$pn,readonly:()=>oYe,record:()=>zKe,refine:()=>dYe,set:()=>Rpn,strictObject:()=>kpn,string:()=>vhe,stringFormat:()=>dpn,stringbool:()=>Zpn,success:()=>Vpn,superRefine:()=>hYe,symbol:()=>Cpn,templateLiteral:()=>Upn,transform:()=>Eve,tuple:()=>jKe,uint32:()=>ypn,uint64:()=>wpn,ulid:()=>Jfn,undefined:()=>Spn,union:()=>Sve,unknown:()=>b2,url:()=>Gfn,uuid:()=>Wfn,uuidv4:()=>Ufn,uuidv6:()=>$fn,uuidv7:()=>qfn,void:()=>Epn,xid:()=>epn,xor:()=>Lpn});var Sfn={};oc(Sfn,{endsWith:()=>Qme,gt:()=>KL,gte:()=>C0,includes:()=>Kme,length:()=>dQ,lowercase:()=>qme,lt:()=>GL,lte:()=>$_,maxLength:()=>uQ,maxSize:()=>tj,mime:()=>Zme,minLength:()=>y2,minSize:()=>YL,multipleOf:()=>S9,negative:()=>dKe,nonnegative:()=>fKe,nonpositive:()=>hKe,normalize:()=>Xme,overwrite:()=>kT,positive:()=>uKe,property:()=>pKe,regex:()=>$me,size:()=>cQ,slugify:()=>nve,startsWith:()=>Yme,toLowerCase:()=>eve,toUpperCase:()=>tve,trim:()=>Jme,uppercase:()=>Gme});var vKe={};oc(vKe,{ZodISODate:()=>bKe,ZodISODateTime:()=>yKe,ZodISODuration:()=>wKe,ZodISOTime:()=>_Ke,date:()=>Efn,datetime:()=>xfn,duration:()=>Dfn,time:()=>Afn});var yKe=fn("ZodISODateTime",(e,t)=>{Wun.init(e,t),uu.init(e,t)});function xfn(e){return thn(yKe,e)}var bKe=fn("ZodISODate",(e,t)=>{Uun.init(e,t),uu.init(e,t)});function Efn(e){return nhn(bKe,e)}var _Ke=fn("ZodISOTime",(e,t)=>{$un.init(e,t),uu.init(e,t)});function Afn(e){return ihn(_Ke,e)}var wKe=fn("ZodISODuration",(e,t)=>{qun.init(e,t),uu.init(e,t)});function Dfn(e){return rhn(wKe,e)}var Tfn=(e,t)=>{_Ge.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>CGe(e,n)},flatten:{value:n=>wGe(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,hhe,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,hhe,2)}},isEmpty:{get(){return e.issues.length===0}}})},kpi=fn("ZodError",Tfn),Pb=fn("ZodError",Tfn,{Parent:Error}),kfn=tQ(Pb),Ifn=nQ(Pb),Lfn=iQ(Pb),Nfn=rQ(Pb),Pfn=SGe(Pb),Mfn=xGe(Pb),Ofn=EGe(Pb),Rfn=AGe(Pb),Ffn=DGe(Pb),Bfn=TGe(Pb),jfn=kGe(Pb),zfn=IGe(Pb),ws=fn("ZodType",(e,t)=>(Os.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:IG(e,"input"),output:IG(e,"output")}}),e.toJSONSchema=Fhn(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Ma.mergeDefs(t,{checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(n,i)=>Ew(e,n,i),e.brand=()=>e,e.register=((n,i)=>(n.add(e,i),e)),e.parse=(n,i)=>kfn(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>Lfn(e,n,i),e.parseAsync=async(n,i)=>Ifn(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>Nfn(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>Pfn(e,n,i),e.decode=(n,i)=>Mfn(e,n,i),e.encodeAsync=async(n,i)=>Ofn(e,n,i),e.decodeAsync=async(n,i)=>Rfn(e,n,i),e.safeEncode=(n,i)=>Ffn(e,n,i),e.safeDecode=(n,i)=>Bfn(e,n,i),e.safeEncodeAsync=async(n,i)=>jfn(e,n,i),e.safeDecodeAsync=async(n,i)=>zfn(e,n,i),e.refine=(n,i)=>e.check(dYe(n,i)),e.superRefine=n=>e.check(hYe(n)),e.overwrite=n=>e.check(kT(n)),e.optional=()=>NG(e),e.exactOptional=()=>GKe(e),e.nullable=()=>PG(e),e.nullish=()=>NG(PG(e)),e.nonoptional=n=>JKe(e,n),e.array=()=>yQ(e),e.or=n=>Sve([e,n]),e.and=n=>FKe(e,n),e.transform=n=>MG(e,Eve(n)),e.default=n=>QKe(e,n),e.prefault=n=>XKe(e,n),e.catch=n=>nYe(e,n),e.pipe=n=>MG(e,n),e.readonly=()=>oYe(e),e.describe=n=>{const i=e.clone();return R_.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){return R_.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return R_.get(e);const i=e.clone();return R_.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),ive=fn("_ZodString",(e,t)=>{lQ.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Bhn(e,i,r);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...i)=>e.check($me(...i)),e.includes=(...i)=>e.check(Kme(...i)),e.startsWith=(...i)=>e.check(Yme(...i)),e.endsWith=(...i)=>e.check(Qme(...i)),e.min=(...i)=>e.check(y2(...i)),e.max=(...i)=>e.check(uQ(...i)),e.length=(...i)=>e.check(dQ(...i)),e.nonempty=(...i)=>e.check(y2(1,...i)),e.lowercase=i=>e.check(qme(i)),e.uppercase=i=>e.check(Gme(i)),e.trim=()=>e.check(Jme()),e.normalize=(...i)=>e.check(Xme(...i)),e.toLowerCase=()=>e.check(eve()),e.toUpperCase=()=>e.check(tve()),e.slugify=()=>e.check(nve())}),fQ=fn("ZodString",(e,t)=>{lQ.init(e,t),ive.init(e,t),e.email=n=>e.check(UGe(rve,n)),e.url=n=>e.check(Ume(pQ,n)),e.jwt=n=>e.check(cKe(bve,n)),e.emoji=n=>e.check(YGe(ove,n)),e.guid=n=>e.check(mhe(LG,n)),e.uuid=n=>e.check($Ge(bx,n)),e.uuidv4=n=>e.check(qGe(bx,n)),e.uuidv6=n=>e.check(GGe(bx,n)),e.uuidv7=n=>e.check(KGe(bx,n)),e.nanoid=n=>e.check(QGe(sve,n)),e.guid=n=>e.check(mhe(LG,n)),e.cuid=n=>e.check(ZGe(ave,n)),e.cuid2=n=>e.check(XGe(lve,n)),e.ulid=n=>e.check(JGe(cve,n)),e.base64=n=>e.check(sKe(mve,n)),e.base64url=n=>e.check(aKe(vve,n)),e.xid=n=>e.check(eKe(uve,n)),e.ksuid=n=>e.check(tKe(dve,n)),e.ipv4=n=>e.check(nKe(hve,n)),e.ipv6=n=>e.check(iKe(fve,n)),e.cidrv4=n=>e.check(rKe(pve,n)),e.cidrv6=n=>e.check(oKe(gve,n)),e.e164=n=>e.check(lKe(yve,n)),e.datetime=n=>e.check(xfn(n)),e.date=n=>e.check(Efn(n)),e.time=n=>e.check(Afn(n)),e.duration=n=>e.check(Dfn(n))});function vhe(e){return Zdn(fQ,e)}var uu=fn("ZodStringFormat",(e,t)=>{cu.init(e,t),ive.init(e,t)}),rve=fn("ZodEmail",(e,t)=>{Mun.init(e,t),uu.init(e,t)});function Vfn(e){return UGe(rve,e)}var LG=fn("ZodGUID",(e,t)=>{Nun.init(e,t),uu.init(e,t)});function Hfn(e){return mhe(LG,e)}var bx=fn("ZodUUID",(e,t)=>{Pun.init(e,t),uu.init(e,t)});function Wfn(e){return $Ge(bx,e)}function Ufn(e){return qGe(bx,e)}function $fn(e){return GGe(bx,e)}function qfn(e){return KGe(bx,e)}var pQ=fn("ZodURL",(e,t)=>{Oun.init(e,t),uu.init(e,t)});function Gfn(e){return Ume(pQ,e)}function Kfn(e){return Ume(pQ,{protocol:/^https?$/,hostname:bF.domain,...Ma.normalizeParams(e)})}var ove=fn("ZodEmoji",(e,t)=>{Run.init(e,t),uu.init(e,t)});function Yfn(e){return YGe(ove,e)}var sve=fn("ZodNanoID",(e,t)=>{Fun.init(e,t),uu.init(e,t)});function Qfn(e){return QGe(sve,e)}var ave=fn("ZodCUID",(e,t)=>{Bun.init(e,t),uu.init(e,t)});function Zfn(e){return ZGe(ave,e)}var lve=fn("ZodCUID2",(e,t)=>{jun.init(e,t),uu.init(e,t)});function Xfn(e){return XGe(lve,e)}var cve=fn("ZodULID",(e,t)=>{zun.init(e,t),uu.init(e,t)});function Jfn(e){return JGe(cve,e)}var uve=fn("ZodXID",(e,t)=>{Vun.init(e,t),uu.init(e,t)});function epn(e){return eKe(uve,e)}var dve=fn("ZodKSUID",(e,t)=>{Hun.init(e,t),uu.init(e,t)});function tpn(e){return tKe(dve,e)}var hve=fn("ZodIPv4",(e,t)=>{Gun.init(e,t),uu.init(e,t)});function npn(e){return nKe(hve,e)}var CKe=fn("ZodMAC",(e,t)=>{Yun.init(e,t),uu.init(e,t)});function ipn(e){return Jdn(CKe,e)}var fve=fn("ZodIPv6",(e,t)=>{Kun.init(e,t),uu.init(e,t)});function rpn(e){return iKe(fve,e)}var pve=fn("ZodCIDRv4",(e,t)=>{Qun.init(e,t),uu.init(e,t)});function opn(e){return rKe(pve,e)}var gve=fn("ZodCIDRv6",(e,t)=>{Zun.init(e,t),uu.init(e,t)});function spn(e){return oKe(gve,e)}var mve=fn("ZodBase64",(e,t)=>{Xun.init(e,t),uu.init(e,t)});function apn(e){return sKe(mve,e)}var vve=fn("ZodBase64URL",(e,t)=>{edn.init(e,t),uu.init(e,t)});function lpn(e){return aKe(vve,e)}var yve=fn("ZodE164",(e,t)=>{tdn.init(e,t),uu.init(e,t)});function cpn(e){return lKe(yve,e)}var bve=fn("ZodJWT",(e,t)=>{idn.init(e,t),uu.init(e,t)});function upn(e){return cKe(bve,e)}var nj=fn("ZodCustomStringFormat",(e,t)=>{rdn.init(e,t),uu.init(e,t)});function dpn(e,t,n={}){return hQ(nj,e,t,n)}function hpn(e){return hQ(nj,"hostname",bF.hostname,e)}function fpn(e){return hQ(nj,"hex",bF.hex,e)}function ppn(e,t){const n=t?.enc??"hex",i=`${e}_${n}`,r=bF[i];if(!r)throw new Error(`Unrecognized hash format: ${i}`);return hQ(nj,i,r,t)}var gQ=fn("ZodNumber",(e,t)=>{RGe.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(i,r,o)=>jhn(e,i,r),e.gt=(i,r)=>e.check(KL(i,r)),e.gte=(i,r)=>e.check(C0(i,r)),e.min=(i,r)=>e.check(C0(i,r)),e.lt=(i,r)=>e.check(GL(i,r)),e.lte=(i,r)=>e.check($_(i,r)),e.max=(i,r)=>e.check($_(i,r)),e.int=i=>e.check(yhe(i)),e.safe=i=>e.check(yhe(i)),e.positive=i=>e.check(KL(0,i)),e.nonnegative=i=>e.check(C0(0,i)),e.negative=i=>e.check(GL(0,i)),e.nonpositive=i=>e.check($_(0,i)),e.multipleOf=(i,r)=>e.check(S9(i,r)),e.step=(i,r)=>e.check(S9(i,r)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function SKe(e){return ohn(gQ,e)}var _F=fn("ZodNumberFormat",(e,t)=>{odn.init(e,t),gQ.init(e,t)});function yhe(e){return ahn(_F,e)}function gpn(e){return lhn(_F,e)}function mpn(e){return chn(_F,e)}function vpn(e){return uhn(_F,e)}function ypn(e){return dhn(_F,e)}var mQ=fn("ZodBoolean",(e,t)=>{FGe.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>zhn(e,n,i)});function xKe(e){return hhn(mQ,e)}var vQ=fn("ZodBigInt",(e,t)=>{BGe.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Vhn(e,i),e.gte=(i,r)=>e.check(C0(i,r)),e.min=(i,r)=>e.check(C0(i,r)),e.gt=(i,r)=>e.check(KL(i,r)),e.gte=(i,r)=>e.check(C0(i,r)),e.min=(i,r)=>e.check(C0(i,r)),e.lt=(i,r)=>e.check(GL(i,r)),e.lte=(i,r)=>e.check($_(i,r)),e.max=(i,r)=>e.check($_(i,r)),e.positive=i=>e.check(KL(BigInt(0),i)),e.negative=i=>e.check(GL(BigInt(0),i)),e.nonpositive=i=>e.check($_(BigInt(0),i)),e.nonnegative=i=>e.check(C0(BigInt(0),i)),e.multipleOf=(i,r)=>e.check(S9(i,r));const n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function bpn(e){return phn(vQ,e)}var _ve=fn("ZodBigIntFormat",(e,t)=>{sdn.init(e,t),vQ.init(e,t)});function _pn(e){return mhn(_ve,e)}function wpn(e){return vhn(_ve,e)}var EKe=fn("ZodSymbol",(e,t)=>{adn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Hhn(e,n)});function Cpn(e){return yhn(EKe,e)}var AKe=fn("ZodUndefined",(e,t)=>{ldn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Uhn(e,n)});function Spn(e){return bhn(AKe,e)}var DKe=fn("ZodNull",(e,t)=>{cdn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Whn(e,n,i)});function TKe(e){return _hn(DKe,e)}var kKe=fn("ZodAny",(e,t)=>{udn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ghn()});function xpn(){return whn(kKe)}var IKe=fn("ZodUnknown",(e,t)=>{ddn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Khn()});function b2(){return Chn(IKe)}var LKe=fn("ZodNever",(e,t)=>{hdn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>qhn(e,n,i)});function wve(e){return Shn(LKe,e)}var NKe=fn("ZodVoid",(e,t)=>{fdn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>$hn(e,n)});function Epn(e){return xhn(NKe,e)}var Cve=fn("ZodDate",(e,t)=>{pdn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Yhn(e,i),e.min=(i,r)=>e.check(C0(i,r)),e.max=(i,r)=>e.check($_(i,r));const n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function Apn(e){return Ehn(Cve,e)}var PKe=fn("ZodArray",(e,t)=>{gdn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>afn(e,n,i,r),e.element=t.element,e.min=(n,i)=>e.check(y2(n,i)),e.nonempty=n=>e.check(y2(1,n)),e.max=(n,i)=>e.check(uQ(n,i)),e.length=(n,i)=>e.check(dQ(n,i)),e.unwrap=()=>e.element});function yQ(e,t){return Thn(PKe,e,t)}function Dpn(e){const t=e._zod.def.shape;return xve(Object.keys(t))}var bQ=fn("ZodObject",(e,t)=>{bdn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>lfn(e,n,i,r),Ma.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>xve(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:b2()}),e.loose=()=>e.clone({...e._zod.def,catchall:b2()}),e.strict=()=>e.clone({...e._zod.def,catchall:wve()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>Ma.extend(e,n),e.safeExtend=n=>Ma.safeExtend(e,n),e.merge=n=>Ma.merge(e,n),e.pick=n=>Ma.pick(e,n),e.omit=n=>Ma.omit(e,n),e.partial=(...n)=>Ma.partial(CQ,e,n[0]),e.required=(...n)=>Ma.required(Ave,e,n[0])});function Tpn(e,t){const n={type:"object",shape:e??{},...Ma.normalizeParams(t)};return new bQ(n)}function kpn(e,t){return new bQ({type:"object",shape:e,catchall:wve(),...Ma.normalizeParams(t)})}function Ipn(e,t){return new bQ({type:"object",shape:e,catchall:b2(),...Ma.normalizeParams(t)})}var _Q=fn("ZodUnion",(e,t)=>{Wme.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>gKe(e,n,i,r),e.options=t.options});function Sve(e,t){return new _Q({type:"union",options:e,...Ma.normalizeParams(t)})}var MKe=fn("ZodXor",(e,t)=>{_Q.init(e,t),_dn.init(e,t),e._zod.processJSONSchema=(n,i,r)=>gKe(e,n,i,r),e.options=t.options});function Lpn(e,t){return new MKe({type:"union",options:e,inclusive:!1,...Ma.normalizeParams(t)})}var OKe=fn("ZodDiscriminatedUnion",(e,t)=>{_Q.init(e,t),wdn.init(e,t)});function Npn(e,t,n){return new OKe({type:"union",options:t,discriminator:e,...Ma.normalizeParams(n)})}var RKe=fn("ZodIntersection",(e,t)=>{Cdn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>cfn(e,n,i,r)});function FKe(e,t){return new RKe({type:"intersection",left:e,right:t})}var BKe=fn("ZodTuple",(e,t)=>{jGe.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ufn(e,n,i,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function jKe(e,t,n){const i=t instanceof Os,r=i?n:t,o=i?t:null;return new BKe({type:"tuple",items:e,rest:o,...Ma.normalizeParams(r)})}var wQ=fn("ZodRecord",(e,t)=>{Sdn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>dfn(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType});function zKe(e,t,n){return new wQ({type:"record",keyType:e,valueType:t,...Ma.normalizeParams(n)})}function Ppn(e,t,n){const i=Ew(e);return i._zod.values=void 0,new wQ({type:"record",keyType:i,valueType:t,...Ma.normalizeParams(n)})}function Mpn(e,t,n){return new wQ({type:"record",keyType:e,valueType:t,mode:"loose",...Ma.normalizeParams(n)})}var VKe=fn("ZodMap",(e,t)=>{xdn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ofn(e,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(YL(...n)),e.nonempty=n=>e.check(YL(1,n)),e.max=(...n)=>e.check(tj(...n)),e.size=(...n)=>e.check(cQ(...n))});function Opn(e,t,n){return new VKe({type:"map",keyType:e,valueType:t,...Ma.normalizeParams(n)})}var HKe=fn("ZodSet",(e,t)=>{Edn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>sfn(e,n),e.min=(...n)=>e.check(YL(...n)),e.nonempty=n=>e.check(YL(1,n)),e.max=(...n)=>e.check(tj(...n)),e.size=(...n)=>e.check(cQ(...n))});function Rpn(e,t){return new HKe({type:"set",valueType:e,...Ma.normalizeParams(t)})}var D9=fn("ZodEnum",(e,t)=>{Adn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Qhn(e,i,r),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(i,r)=>{const o={};for(const s of i)if(n.has(s))o[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new D9({...t,checks:[],...Ma.normalizeParams(r),entries:o})},e.exclude=(i,r)=>{const o={...t.entries};for(const s of i)if(n.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new D9({...t,checks:[],...Ma.normalizeParams(r),entries:o})}});function xve(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new D9({type:"enum",entries:n,...Ma.normalizeParams(t)})}function Fpn(e,t){return new D9({type:"enum",entries:e,...Ma.normalizeParams(t)})}var WKe=fn("ZodLiteral",(e,t)=>{Ddn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Zhn(e,n,i),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Bpn(e,t){return new WKe({type:"literal",values:Array.isArray(e)?e:[e],...Ma.normalizeParams(t)})}var UKe=fn("ZodFile",(e,t)=>{Tdn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>efn(e,n,i),e.min=(n,i)=>e.check(YL(n,i)),e.max=(n,i)=>e.check(tj(n,i)),e.mime=(n,i)=>e.check(Zme(Array.isArray(n)?n:[n],i))});function jpn(e){return khn(UKe,e)}var $Ke=fn("ZodTransform",(e,t)=>{kdn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>rfn(e,n),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new jme(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(Ma.issue(o,n.value,t));else{const s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),n.issues.push(Ma.issue(s))}};const r=t.transform(n.value,n);return r instanceof Promise?r.then(o=>(n.value=o,n)):(n.value=r,n)}});function Eve(e){return new $Ke({type:"transform",transform:e})}var CQ=fn("ZodOptional",(e,t)=>{zGe.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>mKe(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function NG(e){return new CQ({type:"optional",innerType:e})}var qKe=fn("ZodExactOptional",(e,t)=>{Idn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>mKe(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function GKe(e){return new qKe({type:"optional",innerType:e})}var KKe=fn("ZodNullable",(e,t)=>{Ldn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>hfn(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function PG(e){return new KKe({type:"nullable",innerType:e})}function zpn(e){return NG(PG(e))}var YKe=fn("ZodDefault",(e,t)=>{Ndn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>pfn(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function QKe(e,t){return new YKe({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Ma.shallowClone(t)}})}var ZKe=fn("ZodPrefault",(e,t)=>{Pdn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>gfn(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function XKe(e,t){return new ZKe({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Ma.shallowClone(t)}})}var Ave=fn("ZodNonOptional",(e,t)=>{Mdn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ffn(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function JKe(e,t){return new Ave({type:"nonoptional",innerType:e,...Ma.normalizeParams(t)})}var eYe=fn("ZodSuccess",(e,t)=>{Odn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>tfn(e,n,i),e.unwrap=()=>e._zod.def.innerType});function Vpn(e){return new eYe({type:"success",innerType:e})}var tYe=fn("ZodCatch",(e,t)=>{Rdn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>mfn(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function nYe(e,t){return new tYe({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var iYe=fn("ZodNaN",(e,t)=>{Fdn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Xhn(e,n)});function Hpn(e){return Dhn(iYe,e)}var Dve=fn("ZodPipe",(e,t)=>{Bdn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>vfn(e,n,i,r),e.in=t.in,e.out=t.out});function MG(e,t){return new Dve({type:"pipe",in:e,out:t})}var Tve=fn("ZodCodec",(e,t)=>{Dve.init(e,t),VGe.init(e,t)});function Wpn(e,t,n){return new Tve({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}var rYe=fn("ZodReadonly",(e,t)=>{jdn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>yfn(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function oYe(e){return new rYe({type:"readonly",innerType:e})}var sYe=fn("ZodTemplateLiteral",(e,t)=>{zdn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Jhn(e,n,i)});function Upn(e,t){return new sYe({type:"template_literal",parts:e,...Ma.normalizeParams(t)})}var aYe=fn("ZodLazy",(e,t)=>{Wdn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>_fn(e,n,i,r),e.unwrap=()=>e._zod.def.getter()});function lYe(e){return new aYe({type:"lazy",getter:e})}var cYe=fn("ZodPromise",(e,t)=>{Hdn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>bfn(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function $pn(e){return new cYe({type:"promise",innerType:e})}var uYe=fn("ZodFunction",(e,t)=>{Vdn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ifn(e,n)});function bhe(e){return new uYe({type:"function",input:Array.isArray(e?.input)?jKe(e?.input):e?.input??yQ(b2()),output:e?.output??b2()})}var SQ=fn("ZodCustom",(e,t)=>{Udn.init(e,t),ws.init(e,t),e._zod.processJSONSchema=(n,i,r)=>nfn(e,n)});function qpn(e){const t=new Qu({check:"custom"});return t._zod.check=e,t}function Gpn(e,t){return Ihn(SQ,e??(()=>!0),t)}function dYe(e,t={}){return Lhn(SQ,e,t)}function hYe(e){return Nhn(e)}var Kpn=Mhn,Ypn=Ohn;function Qpn(e,t={}){const n=new SQ({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...Ma.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:n,path:[...n._zod.def.path??[]]})},n}var Zpn=(...e)=>Rhn({Codec:Tve,Boolean:mQ,String:fQ},...e);function Xpn(e){const t=lYe(()=>Sve([vhe(e),SKe(),xKe(),TKe(),yQ(t),zKe(vhe(),t)]));return t}function Jpn(e,t){return MG(Eve(e),t)}var Ipi={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function Lpi(e){mm({customError:e})}function Npi(){return mm().customError}var N9e;N9e||(N9e={});var Ar={...Cfn,...Sfn,iso:vKe},Ppi=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function Mpi(e,t){const n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function Opi(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");const n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;const i=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===i){const r=n[1];if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}function egn(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return Ar.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){const r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return Ar.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);const o=Opi(r,t),s=Zg(o,t);return t.refs.set(r,s),t.processing.delete(r),s}if(e.enum!==void 0){const r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return Ar.null();if(r.length===0)return Ar.never();if(r.length===1)return Ar.literal(r[0]);if(r.every(s=>typeof s=="string"))return Ar.enum(r);const o=r.map(s=>Ar.literal(s));return o.length<2?o[0]:Ar.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return Ar.literal(e.const);const n=e.type;if(Array.isArray(n)){const r=n.map(o=>{const s={...e,type:o};return egn(s,t)});return r.length===0?Ar.never():r.length===1?r[0]:Ar.union(r)}if(!n)return Ar.any();let i;switch(n){case"string":{let r=Ar.string();if(e.format){const o=e.format;o==="email"?r=r.check(Ar.email()):o==="uri"||o==="uri-reference"?r=r.check(Ar.url()):o==="uuid"||o==="guid"?r=r.check(Ar.uuid()):o==="date-time"?r=r.check(Ar.iso.datetime()):o==="date"?r=r.check(Ar.iso.date()):o==="time"?r=r.check(Ar.iso.time()):o==="duration"?r=r.check(Ar.iso.duration()):o==="ipv4"?r=r.check(Ar.ipv4()):o==="ipv6"?r=r.check(Ar.ipv6()):o==="mac"?r=r.check(Ar.mac()):o==="cidr"?r=r.check(Ar.cidrv4()):o==="cidr-v6"?r=r.check(Ar.cidrv6()):o==="base64"?r=r.check(Ar.base64()):o==="base64url"?r=r.check(Ar.base64url()):o==="e164"?r=r.check(Ar.e164()):o==="jwt"?r=r.check(Ar.jwt()):o==="emoji"?r=r.check(Ar.emoji()):o==="nanoid"?r=r.check(Ar.nanoid()):o==="cuid"?r=r.check(Ar.cuid()):o==="cuid2"?r=r.check(Ar.cuid2()):o==="ulid"?r=r.check(Ar.ulid()):o==="xid"?r=r.check(Ar.xid()):o==="ksuid"&&(r=r.check(Ar.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),i=r;break}case"number":case"integer":{let r=n==="integer"?Ar.number().int():Ar.number();typeof e.minimum=="number"&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),i=r;break}case"boolean":{i=Ar.boolean();break}case"null":{i=Ar.null();break}case"object":{const r={},o=e.properties||{},s=new Set(e.required||[]);for(const[l,c]of Object.entries(o)){const u=Zg(c,t);r[l]=s.has(l)?u:u.optional()}if(e.propertyNames){const l=Zg(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?Zg(e.additionalProperties,t):Ar.any();if(Object.keys(r).length===0){i=Ar.record(l,c);break}const u=Ar.object(r).passthrough(),d=Ar.looseRecord(l,c);i=Ar.intersection(u,d);break}if(e.patternProperties){const l=e.patternProperties,c=Object.keys(l),u=[];for(const h of c){const f=Zg(l[h],t),p=Ar.string().regex(new RegExp(h));u.push(Ar.looseRecord(p,f))}const d=[];if(Object.keys(r).length>0&&d.push(Ar.object(r).passthrough()),d.push(...u),d.length===0)i=Ar.object({}).passthrough();else if(d.length===1)i=d[0];else{let h=Ar.intersection(d[0],d[1]);for(let f=2;f<d.length;f++)h=Ar.intersection(h,d[f]);i=h}break}const a=Ar.object(r);e.additionalProperties===!1?i=a.strict():typeof e.additionalProperties=="object"?i=a.catchall(Zg(e.additionalProperties,t)):i=a.passthrough();break}case"array":{const r=e.prefixItems,o=e.items;if(r&&Array.isArray(r)){const s=r.map(l=>Zg(l,t)),a=o&&typeof o=="object"&&!Array.isArray(o)?Zg(o,t):void 0;a?i=Ar.tuple(s).rest(a):i=Ar.tuple(s),typeof e.minItems=="number"&&(i=i.check(Ar.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(Ar.maxLength(e.maxItems)))}else if(Array.isArray(o)){const s=o.map(l=>Zg(l,t)),a=e.additionalItems&&typeof e.additionalItems=="object"?Zg(e.additionalItems,t):void 0;a?i=Ar.tuple(s).rest(a):i=Ar.tuple(s),typeof e.minItems=="number"&&(i=i.check(Ar.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(Ar.maxLength(e.maxItems)))}else if(o!==void 0){const s=Zg(o,t);let a=Ar.array(s);typeof e.minItems=="number"&&(a=a.min(e.minItems)),typeof e.maxItems=="number"&&(a=a.max(e.maxItems)),i=a}else i=Ar.array(Ar.any());break}default:throw new Error(`Unsupported type: ${n}`)}return e.description&&(i=i.describe(e.description)),e.default!==void 0&&(i=i.default(e.default)),i}function Zg(e,t){if(typeof e=="boolean")return e?Ar.any():Ar.never();let n=egn(e,t);const i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){const a=e.anyOf.map(c=>Zg(c,t)),l=Ar.union(a);n=i?Ar.intersection(n,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){const a=e.oneOf.map(c=>Zg(c,t)),l=Ar.xor(a);n=i?Ar.intersection(n,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=i?n:Ar.any();else{let a=i?n:Zg(e.allOf[0],t);const l=i?0:1;for(let c=l;c<e.allOf.length;c++)a=Ar.intersection(a,Zg(e.allOf[c],t));n=a}e.nullable===!0&&t.version==="openapi-3.0"&&(n=Ar.nullable(n)),e.readOnly===!0&&(n=Ar.readonly(n));const r={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(const a of o)a in e&&(r[a]=e[a]);const s=["contentEncoding","contentMediaType","contentSchema"];for(const a of s)a in e&&(r[a]=e[a]);for(const a of Object.keys(e))Ppi.has(a)||(r[a]=e[a]);return Object.keys(r).length>0&&t.registry.add(n,r),n}function Rpi(e,t){if(typeof e=="boolean")return e?Ar.any():Ar.never();const n=Mpi(e,t?.defaultTarget),i=e.$defs||e.definitions||{},r={version:n,defs:i,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??R_};return Zg(e,r)}var tgn={};oc(tgn,{bigint:()=>zpi,boolean:()=>jpi,date:()=>Vpi,number:()=>Bpi,string:()=>Fpi});function Fpi(e){return Xdn(fQ,e)}function Bpi(e){return shn(gQ,e)}function jpi(e){return fhn(mQ,e)}function zpi(e){return ghn(vQ,e)}function Vpi(e){return Ahn(Cve,e)}mm($dn());var fYe=I.createContext(void 0);function Hpi(e){const[t,n]=I.useReducer(Wpi,{past:[],present:e,future:[]}),i=t.past.length!==0,r=t.future.length!==0,o=I.useCallback(()=>{i&&n({type:"UNDO"})},[i]),s=I.useCallback(()=>{r&&n({type:"REDO"})},[r]),a=I.useCallback(d=>{n({type:"SET",newPresent:d})},[]),l=I.useCallback(d=>{n({type:"SETWITH",dispatcher:d})},[]),c=I.useCallback(d=>{n({type:"REPLACE",newPresent:d})},[]),u=I.useCallback(d=>n({type:"RESET",initialPresent:d}),[]);return{state:t.present,set:a,setWith:l,replace:c,undo:o,redo:s,canUndo:i,canRedo:r,reset:u}}function Wpi(e,t){const{past:n,present:i,future:r}=e;switch(t.type){case"UNDO":return{past:n.slice(0,n.length-1),present:n[n.length-1],future:[i,...r]};case"REDO":return{past:[...n,i],present:r[0],future:r.slice(1)};case"SET":return t.newPresent===i?e:{past:[...n,i],present:t.newPresent,future:[]};case"SETWITH":{const o=t.dispatcher(i);return o===i?e:{past:[...n,i],present:o,future:[]}}case"REPLACE":return t.newPresent===i?e:{past:n,present:t.newPresent,future:r};case"RESET":return{past:[],present:t.initialPresent,future:[]}}}function Upi(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function $f(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,[])).next())})}var $pi={abs:Math.abs,ceil:Math.ceil,floor:Math.floor,max:Math.max,min:Math.min,round:Math.round,sqrt:Math.sqrt,pow:Math.pow},ef=class extends Error{constructor(e,t,n){super(e),this.position=t,this.token=n,this.name="ExpressionError"}},Es;(function(e){e[e.STRING=0]="STRING",e[e.NUMBER=1]="NUMBER",e[e.BOOLEAN=2]="BOOLEAN",e[e.NULL=3]="NULL",e[e.IDENTIFIER=4]="IDENTIFIER",e[e.OPERATOR=5]="OPERATOR",e[e.FUNCTION=6]="FUNCTION",e[e.DOT=7]="DOT",e[e.BRACKET_LEFT=8]="BRACKET_LEFT",e[e.BRACKET_RIGHT=9]="BRACKET_RIGHT",e[e.PAREN_LEFT=10]="PAREN_LEFT",e[e.PAREN_RIGHT=11]="PAREN_RIGHT",e[e.COMMA=12]="COMMA",e[e.QUESTION=13]="QUESTION",e[e.COLON=14]="COLON",e[e.DOLLAR=15]="DOLLAR"})(Es||(Es={}));var qpi=new Set([32,9,10,13]),Gpi=new Set([43,45,42,47,37,33,38,124,61,60,62]),Kpi=new Map([["true",Es.BOOLEAN],["false",Es.BOOLEAN],["null",Es.NULL]]),cTe=new Map([["===",!0],["!==",!0],["<=",!0],[">=",!0],["&&",!0],["||",!0],["+",!0],["-",!0],["*",!0],["/",!0],["%",!0],["!",!0],["<",!0],[">",!0]]),Ypi=new Map([[46,Es.DOT],[91,Es.BRACKET_LEFT],[93,Es.BRACKET_RIGHT],[40,Es.PAREN_LEFT],[41,Es.PAREN_RIGHT],[44,Es.COMMA],[63,Es.QUESTION],[58,Es.COLON],[36,Es.DOLLAR]]),ngn=new Map;for(const[e,t]of Ypi.entries())ngn.set(e,{type:t,value:String.fromCharCode(e)});function WW(e){return e>=48&&e<=57}function P9e(e){return e>=97&&e<=122||e>=65&&e<=90||e===95}function XAt(e){return P9e(e)||WW(e)}function Qpi(e){return Gpi.has(e)}var ld;(function(e){e[e.Program=0]="Program",e[e.Literal=1]="Literal",e[e.Identifier=2]="Identifier",e[e.MemberExpression=3]="MemberExpression",e[e.CallExpression=4]="CallExpression",e[e.BinaryExpression=5]="BinaryExpression",e[e.UnaryExpression=6]="UnaryExpression",e[e.ConditionalExpression=7]="ConditionalExpression"})(ld||(ld={}));var Zpi=new Map([["||",2],["&&",3],["===",4],["!==",4],[">",5],[">=",5],["<",5],["<=",5],["+",6],["-",6],["*",7],["/",7],["%",7],["!",8]]),Xpi={type:ld.Literal,value:null},Jpi={type:ld.Literal,value:!0},egi={type:ld.Literal,value:!1},tgi=e=>{let t=0;const n=e.length,i=()=>t>=n?null:e[t],r=()=>e[t++],o=d=>{const h=i();return h!==null&&h.type===d},s=d=>d.type===Es.OPERATOR?Zpi.get(d.value)||-1:d.type===Es.DOT||d.type===Es.BRACKET_LEFT?9:d.type===Es.QUESTION?1:-1,a=d=>{let h,f;if(r().type===Es.DOT){if(!o(Es.IDENTIFIER)){const g=i();throw new ef("Expected property name",t,g?g.value:"<end of input>")}const p=r();h={type:ld.Identifier,name:p.value},f=!1}else{if(h=c(0),!o(Es.BRACKET_RIGHT)){const p=i();throw new ef("Expected closing bracket",t,p?p.value:"<end of input>")}r(),f=!0}return{type:ld.MemberExpression,object:d,property:h,computed:f}},l=()=>{const d=i();if(!d)throw new ef("Unexpected end of input",t,"<end of input>");if(d.type===Es.OPERATOR&&(d.value==="!"||d.value==="-")){r();const h=l();return{type:ld.UnaryExpression,operator:d.value,argument:h,prefix:!0}}switch(d.type){case Es.NUMBER:return r(),{type:ld.Literal,value:Number(d.value)};case Es.STRING:return r(),{type:ld.Literal,value:d.value};case Es.BOOLEAN:return r(),d.value==="true"?Jpi:egi;case Es.NULL:return r(),Xpi;case Es.IDENTIFIER:return r(),{type:ld.Identifier,name:d.value};case Es.FUNCTION:return(()=>{const h=r(),f=[];if(!o(Es.PAREN_LEFT)){const p=i();throw new ef("Expected opening parenthesis after function name",t,p?p.value:"<end of input>")}for(r();;){if(o(Es.PAREN_RIGHT)){r();break}if(!i()){const g=i();throw new ef("Expected closing parenthesis",t,g?g.value:"<end of input>")}if(f.length>0){if(!o(Es.COMMA)){const g=i();throw new ef("Expected comma between function arguments",t,g?g.value:"<end of input>")}r()}const p=c(0);f.push(p)}return{type:ld.CallExpression,callee:{type:ld.Identifier,name:h.value},arguments:f}})();case Es.PAREN_LEFT:{r();const h=c(0);if(!o(Es.PAREN_RIGHT)){const f=i();throw new ef("Expected closing parenthesis",t,f?f.value:"<end of input>")}return r(),h}default:throw new ef(`Unexpected token: ${d.type}`,t,d.value)}},c=(d=0)=>{let h=l();for(;t<n;){const f=e[t],p=s(f);if(p<=d)break;if(f.type!==Es.QUESTION)if(f.type!==Es.OPERATOR){if(f.type!==Es.DOT&&f.type!==Es.BRACKET_LEFT)break;h=a(h)}else{r();const g=c(p);h={type:ld.BinaryExpression,operator:f.value,left:h,right:g}}else{r();const g=c(0);if(!o(Es.COLON)){const v=i();throw new ef("Expected : in conditional expression",t,v?v.value:"<end of input>")}r();const m=c(0);h={type:ld.ConditionalExpression,test:h,consequent:g,alternate:m}}}return h},u=c();return{type:ld.Program,body:u}},ngi=(e,t,n)=>{let i=t;n&&(i={...t,context:{...t.context,...n}});const r=o=>{switch(o.type){case ld.Literal:return(s=>s.value)(o);case ld.Identifier:return(s=>{if(!(s.name in i.context))throw new ef(`Undefined variable: ${s.name}`);return i.context[s.name]})(o);case ld.MemberExpression:return(s=>{const a=r(s.object);if(a==null)throw new ef("Cannot access property of null or undefined");return a[s.computed?r(s.property):s.property.name]})(o);case ld.CallExpression:return(s=>{const a=i.functions[s.callee.name];if(!a)throw new ef(`Undefined function: ${s.callee.name}`);return a(...s.arguments.map((l=>r(l))))})(o);case ld.BinaryExpression:return(s=>{if(s.operator==="&&"){const c=r(s.left);return c&&r(s.right)}if(s.operator==="||")return r(s.left)||r(s.right);const a=r(s.left),l=r(s.right);switch(s.operator){case"+":return a+l;case"-":return a-l;case"*":return a*l;case"/":return a/l;case"%":return a%l;case"===":return a===l;case"!==":return a!==l;case">":return a>l;case">=":return a>=l;case"<":return a<l;case"<=":return a<=l;default:throw new ef(`Unknown operator: ${s.operator}`)}})(o);case ld.UnaryExpression:return(s=>{const a=r(s.argument);if(s.prefix)switch(s.operator){case"!":return!a;case"-":if(typeof a!="number")throw new ef(`Cannot apply unary - to non-number: ${a}`);return-a;default:throw new ef(`Unknown operator: ${s.operator}`)}throw new ef(`Postfix operators are not supported: ${s.operator}`)})(o);case ld.ConditionalExpression:return(s=>{const a=r(s.test);return r(a?s.consequent:s.alternate)})(o);default:throw new ef(`Evaluation error: Unsupported node type: ${o.type}`)}};return r(e.body)};function ign(e){const t=(r=>{const o=r,s=o.length,a=new Array(Math.ceil(s/3));let l=0,c=0;function u(m){const v=c+1;c++;let y="",b=!1;for(;c<s;){const w=o.charCodeAt(c);if(w===m)return b||(y=o.substring(v,c)),c++,{type:Es.STRING,value:y};w===92?(b||(y=o.substring(v,c),b=!0),c++,y+=o[c]):b&&(y+=o[c]),c++}throw new ef(`Unterminated string starting with ${String.fromCharCode(m)}`,c,o.substring(Math.max(0,c-10),c))}function d(){const m=c;for(o.charCodeAt(c)===45&&c++;c<s&&WW(o.charCodeAt(c));)c++;if(c<s&&o.charCodeAt(c)===46)for(c++;c<s&&WW(o.charCodeAt(c));)c++;const v=o.slice(m,c);return{type:Es.NUMBER,value:v}}function h(){c++;const m=c;if(c<s&&P9e(o.charCodeAt(c)))for(c++;c<s&&XAt(o.charCodeAt(c));)c++;const v=o.slice(m,c);return{type:Es.FUNCTION,value:v}}function f(){const m=c++;for(;c<s&&XAt(o.charCodeAt(c));)c++;const v=o.slice(m,c),y=Kpi.get(v);return y?{type:y,value:v}:{type:Es.IDENTIFIER,value:v}}function p(){if(c+2<s){const v=o.substring(c,c+3);if(cTe.has(v))return c+=3,{type:Es.OPERATOR,value:v}}if(c+1<s){const v=o.substring(c,c+2);if(cTe.has(v))return c+=2,{type:Es.OPERATOR,value:v}}const m=o[c];if(cTe.has(m))return c++,{type:Es.OPERATOR,value:m};throw new ef(`Unknown operator at position ${c}: ${o.substring(c,c+1)}`,c,o.substring(Math.max(0,c-10),c))}for(;c<s;){const m=o.charCodeAt(c);if(g=m,qpi.has(g)){c++;continue}const v=ngn.get(m);if(v)a[l++]=v,c++;else if(m!==34&&m!==39)if(WW(m)||m===45&&c+1<s&&WW(o.charCodeAt(c+1)))a[l++]=d();else if(m!==64)if(P9e(m))a[l++]=f();else{if(!Qpi(m))throw new ef(`Unexpected character: ${o[c]}`,c,o.substring(Math.max(0,c-10),c));a[l++]=p()}else a[l++]=h();else a[l++]=u(m)}var g;return l===a.length?a:a.slice(0,l)})(e),n=tgi(t),i=((r={},o={})=>({context:r,functions:o}))({},$pi);return(r={})=>ngi(n,i,r)}function igi(e,t={}){return ign(e)(t)}function rgi(e,t){if(typeof e!="string")return;const n=e.trim();if(n)try{return ign(n),igi(n,t)}catch{return}}function vh(e){return typeof e=="number"}function _he(e){if(!e)return[0,0,0];if(vh(e))return[e,e,e];if(Array.isArray(e)&&e.length===0)return[0,0,0];const[t,n=t,i=t]=e;return[t,n,i]}function ogi(e){return vh(e)?!0:Array.isArray(e)?e.every(t=>vh(t)):!1}function Bf(e){return e==null}function rgn(e){return typeof e=="string"}function ogn(e){return typeof e=="function"}function jf(e,t){if(typeof e=="function")return e;if(typeof e=="string"){const n=e;return(...i)=>{const r={};for(let o=0;o<t.length;o++)r[t[o]]=i[o];return rgi(n,r)}}return()=>e}function Oy(e,t,n="node"){if(Bf(e))return()=>t;if(rgn(e)){const i=jf(e,[n]);return r=>{const o=i(r);return vh(o)?o:t}}return ogn(e)?e:vh(e)?()=>e:()=>t}function whe(e,t=10,n="node"){if(Bf(e))return()=>t;if(rgn(e)){const i=jf(e,[n]);return r=>{const o=i(r);return ogi(o)?o:t}}return ogn(e)?e:vh(e)?()=>e:Array.isArray(e)?()=>e:()=>t}var IT=(e,t,n=10,i=0)=>{const r=whe(t,i),o=whe(e,n);return s=>{const[a,l,c]=_he(o(s)),[u,d,h]=_he(r(s));return[a+u,l+d,c+h]}};function sgn(e){var t;return[e.x,e.y,(t=e.z)!==null&&t!==void 0?t:0]}var sgi=class{constructor(e,t={}){this.edgeIdCounter=new Map,this.nodeMap=cgi(e.nodes,t.node),this.edgeMap=ugi(e.edges||[],t.edge,this.getEdgeId.bind(this))}data(){return{nodes:this.nodeMap,edges:this.edgeMap}}replace(e){this.nodeMap=e.nodes,this.edgeMap=e.edges,this.clearCache()}nodes(){return Array.from(this.nodeMap.values())}node(e){return this.nodeMap.get(e)}nodeAt(e){this.indexNodeCache||this.buildNodeIndexCache();const t=this.indexNodeCache.get(e);return t?this.nodeMap.get(t):void 0}nodeIndexOf(e){var t;return this.nodeIndexCache||this.buildNodeIndexCache(),(t=this.nodeIndexCache.get(e))!==null&&t!==void 0?t:-1}firstNode(){return this.nodeMap.values().next().value}forEachNode(e){let t=0;this.nodeMap.forEach(n=>e(n,t++))}originalNode(e){const t=this.nodeMap.get(e);return t?._original}nodeCount(){return this.nodeMap.size}edges(){return Array.from(this.edgeMap.values())}edge(e){return this.edgeMap.get(e)}firstEdge(){return this.edgeMap.values().next().value}forEachEdge(e){let t=0;this.edgeMap.forEach(n=>e(n,t++))}originalEdge(e){const t=this.edgeMap.get(e);return t?._original}edgeCount(){return this.edgeMap.size}getEdgeId(e){if(e.id)return e.id;const t=`${e.source}-${e.target}`,n=this.edgeIdCounter.get(t)||0,i=n===0?t:`${t}-${n}`;return this.edgeIdCounter.set(t,n+1),i}degree(e,t="both"){this.degreeCache||this.buildDegreeCache();const n=this.degreeCache.get(e);return n?n[t]:0}neighbors(e,t="both"){if((!this.outAdjacencyCache||!this.inAdjacencyCache)&&this.buildAdjacencyCache(),t==="out")return Array.from(this.outAdjacencyCache.get(e)||[]);if(t==="in")return Array.from(this.inAdjacencyCache.get(e)||[]);if(this.bothAdjacencyCache)return Array.from(this.bothAdjacencyCache.get(e)||[]);const n=this.inAdjacencyCache.get(e),i=this.outAdjacencyCache.get(e);if(!n&&!i)return[];if(!n)return Array.from(i);if(!i)return Array.from(n);const r=new Set;return n.forEach(o=>r.add(o)),i.forEach(o=>r.add(o)),Array.from(r)}successors(e){return this.neighbors(e,"out")}predecessors(e){return this.neighbors(e,"in")}setNodeOrder(e){const t=new Map;for(const n of e)t.set(n.id,n);this.nodeMap=t,this.nodeIndexCache=void 0,this.indexNodeCache=void 0}clearCache(){this.degreeCache=void 0,this.inAdjacencyCache=void 0,this.outAdjacencyCache=void 0,this.bothAdjacencyCache=void 0,this.nodeIndexCache=void 0,this.indexNodeCache=void 0}buildDegreeCache(){this.degreeCache=new Map;for(const e of this.edges()){const{source:t,target:n}=e;if(e.source===e.target)continue;this.degreeCache.has(t)||this.degreeCache.set(t,{in:0,out:0,both:0});const i=this.degreeCache.get(e.source);i&&(i.out++,i.both++),this.degreeCache.has(n)||this.degreeCache.set(n,{in:0,out:0,both:0});const r=this.degreeCache.get(e.target);r&&(r.in++,r.both++)}}buildAdjacencyCache(){this.inAdjacencyCache=new Map,this.outAdjacencyCache=new Map;for(const e of this.edges())!this.nodeMap.has(e.source)||!this.nodeMap.has(e.target)||(this.outAdjacencyCache.has(e.source)||this.outAdjacencyCache.set(e.source,new Set),this.outAdjacencyCache.get(e.source).add(e.target),this.inAdjacencyCache.has(e.target)||this.inAdjacencyCache.set(e.target,new Set),this.inAdjacencyCache.get(e.target).add(e.source))}buildNodeIndexCache(){this.nodeIndexCache=new Map,this.indexNodeCache=new Map;let e=0;this.nodeMap.forEach((t,n)=>{this.nodeIndexCache.set(n,e),this.indexNodeCache.set(e,n),e++})}destroy(){this.clearCache(),this.nodeMap.clear(),this.edgeMap.clear(),this.edgeIdCounter.clear()}},agi=["id","x","y","z","vx","vy","vz","fx","fy","fz","parentId"],lgi=["id","source","target","points"];function cgi(e,t){if(!e)throw new Error("Data.nodes is required");const n=new Map;for(const i of e){const r={_original:i};for(const o of agi){const s=i[o];Bf(s)||(r[o]=s)}if(t){const o=t(i);for(const s in o){const a=o[s];Bf(a)||(r[s]=a)}}if(Bf(r.id))throw new Error("Node is missing id field");n.set(r.id,r)}return n}function ugi(e,t,n){const i=new Map;for(const r of e){const o={_original:r};for(const s of lgi){const a=r[s];Bf(a)||(o[s]=a)}if(t){const s=t(r);for(const a in s){const l=s[a];Bf(l)||(o[a]=l)}}if(Bf(o.source)||Bf(o.target))throw new Error("Edge is missing source or target field");Bf(o.id)&&(o.id=n?.(r)),i.set(o.id,o)}return i}function pYe(e,t,n,i=2){e.forEachNode(r=>{Bf(r.x)&&(r.x=Math.random()*t),Bf(r.y)&&(r.y=Math.random()*n),i===3&&Bf(r.z)&&(r.z=Math.random()*Math.min(t,n))})}var dgi=class{constructor(e,t={}){this.graph=new sgi(e,t)}export(){return this.graph.data()}replace(e){this.graph.replace(e)}forEachNode(e){this.graph.forEachNode(e)}forEachEdge(e){this.graph.forEachEdge((t,n)=>{t.sourceNode=this.graph.node(t.source),t.targetNode=this.graph.node(t.target),e(t,n)})}destroy(){this.graph.destroy()}},agn=Symbol("Comlink.proxy"),hgi=Symbol("Comlink.endpoint"),fgi=Symbol("Comlink.releaseProxy"),uTe=Symbol("Comlink.finalizer"),sce=Symbol("Comlink.thrown"),lgn=e=>typeof e=="object"&&e!==null||typeof e=="function",pgi={canHandle:e=>lgn(e)&&e[agn],serialize(e){const{port1:t,port2:n}=new MessageChannel;return ugn(e,t),[n,[n]]},deserialize(e){return e.start(),hgn(e)}},ggi={canHandle:e=>lgn(e)&&sce in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},cgn=new Map([["proxy",pgi],["throw",ggi]]);function mgi(e,t){for(const n of e)if(t===n||n==="*"||n instanceof RegExp&&n.test(t))return!0;return!1}function ugn(e,t=globalThis,n=["*"]){t.addEventListener("message",function i(r){if(!r||!r.data)return;if(!mgi(n,r.origin)){console.warn(`Invalid origin '${r.origin}' for comlink proxy`);return}const{id:o,type:s,path:a}=Object.assign({path:[]},r.data),l=(r.data.argumentList||[]).map(_O);let c;try{const u=a.slice(0,-1).reduce((h,f)=>h[f],e),d=a.reduce((h,f)=>h[f],e);switch(s){case"GET":c=d;break;case"SET":u[a.slice(-1)[0]]=_O(r.data.value),c=!0;break;case"APPLY":c=d.apply(u,l);break;case"CONSTRUCT":{const h=new d(...l);c=Cgi(h)}break;case"ENDPOINT":{const{port1:h,port2:f}=new MessageChannel;ugn(e,f),c=wgi(h,[h])}break;case"RELEASE":c=void 0;break;default:return}}catch(u){c={value:u,[sce]:0}}Promise.resolve(c).catch(u=>({value:u,[sce]:0})).then(u=>{const[d,h]=xhe(u);t.postMessage(Object.assign(Object.assign({},d),{id:o}),h),s==="RELEASE"&&(t.removeEventListener("message",i),dgn(t),uTe in e&&typeof e[uTe]=="function"&&e[uTe]())}).catch(u=>{const[d,h]=xhe({value:new TypeError("Unserializable return value"),[sce]:0});t.postMessage(Object.assign(Object.assign({},d),{id:o}),h)})}),t.start&&t.start()}function vgi(e){return e.constructor.name==="MessagePort"}function dgn(e){vgi(e)&&e.close()}function hgn(e,t){const n=new Map;return e.addEventListener("message",function(r){const{data:o}=r;if(!o||!o.id)return;const s=n.get(o.id);if(s)try{s(o)}finally{n.delete(o.id)}}),M9e(e,n,[],t)}function uie(e){if(e)throw new Error("Proxy has been released and is not useable")}function fgn(e){return UB(e,new Map,{type:"RELEASE"}).then(()=>{dgn(e)})}var Che=new WeakMap,She="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(Che.get(e)||0)-1;Che.set(e,t),t===0&&fgn(e)});function ygi(e,t){const n=(Che.get(t)||0)+1;Che.set(t,n),She&&She.register(e,t,e)}function bgi(e){She&&She.unregister(e)}function M9e(e,t,n=[],i=function(){}){let r=!1;const o=new Proxy(i,{get(s,a){if(uie(r),a===fgi)return()=>{bgi(o),fgn(e),t.clear(),r=!0};if(a==="then"){if(n.length===0)return{then:()=>o};const l=UB(e,t,{type:"GET",path:n.map(c=>c.toString())}).then(_O);return l.then.bind(l)}return M9e(e,t,[...n,a])},set(s,a,l){uie(r);const[c,u]=xhe(l);return UB(e,t,{type:"SET",path:[...n,a].map(d=>d.toString()),value:c},u).then(_O)},apply(s,a,l){uie(r);const c=n[n.length-1];if(c===hgi)return UB(e,t,{type:"ENDPOINT"}).then(_O);if(c==="bind")return M9e(e,t,n.slice(0,-1));const[u,d]=JAt(l);return UB(e,t,{type:"APPLY",path:n.map(h=>h.toString()),argumentList:u},d).then(_O)},construct(s,a){uie(r);const[l,c]=JAt(a);return UB(e,t,{type:"CONSTRUCT",path:n.map(u=>u.toString()),argumentList:l},c).then(_O)}});return ygi(o,e),o}function _gi(e){return Array.prototype.concat.apply([],e)}function JAt(e){const t=e.map(xhe);return[t.map(n=>n[0]),_gi(t.map(n=>n[1]))]}var pgn=new WeakMap;function wgi(e,t){return pgn.set(e,t),e}function Cgi(e){return Object.assign(e,{[agn]:!0})}function xhe(e){for(const[t,n]of cgn)if(n.canHandle(e)){const[i,r]=n.serialize(e);return[{type:"HANDLER",name:t,value:i},r]}return[{type:"RAW",value:e},pgn.get(e)||[]]}function _O(e){switch(e.type){case"HANDLER":return cgn.get(e.name).deserialize(e.value);case"RAW":return e.value}}function UB(e,t,n,i){return new Promise(r=>{const o=Sgi();t.set(o,r),e.start&&e.start(),e.postMessage(Object.assign({id:o},n),i)})}function Sgi(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}var xgi=class{constructor(){this.worker=null,this.workerApi=null}execute(e,t,n){return $f(this,void 0,void 0,function*(){if(this.worker||(yield this.initWorker()),!this.workerApi)throw new Error("Worker API not initialized");return yield this.workerApi.execute(e,t,n)})}destroy(){this.workerApi&&this.workerApi.destroy(),this.worker&&(this.worker.terminate(),this.worker=null,this.workerApi=null)}initWorker(){return $f(this,void 0,void 0,function*(){const e=this.resolveWorkerPath(),n=e.includes("/lib/")||e.endsWith(".mjs")?"module":"classic";this.worker=new Worker(e,{type:n}),this.workerApi=hgn(this.worker)})}resolveWorkerPath(){const e=(()=>{if(typeof document>"u")return null;const t=document.currentScript;if(t?.src)return t.src;const n=document.getElementsByTagName("script");for(let i=n.length-1;i>=0;i--){const r=n[i].src;if(r&&(r.includes("index.js")||r.includes("index.min.js")))return r}return null})();if(e){if(e.includes("index.js")||e.includes("index.min.js")){const i=e.replace(/index(\.min)?\.(m?js)(\?.*)?$/,"worker.js");if(i!==e)return i}const t=e.replace(/\/runtime\/[^/]+\.(m?js)(\?.*)?$/,"/worker.js");if(t!==e)return t;const n=e.replace(/\/[^/]+\.(m?js)(\?.*)?$/,"/worker.js");if(n!==e)return n}return"./worker.js"}},EE=class{constructor(e){this.supervisor=null,this.initialOptions=this.mergeOptions(this.getDefaultOptions(),e)}get options(){return this.runtimeOptions||this.initialOptions}mergeOptions(e,t){return Object.assign({},e,t||{})}execute(e,t){return $f(this,void 0,void 0,function*(){this.runtimeOptions=this.mergeOptions(this.initialOptions,t);const{node:n,edge:i,enableWorker:r}=this.runtimeOptions;this.context=new dgi(e,{node:n,edge:i}),this.model=this.context.graph,r&&typeof Worker<"u"?yield this.layoutInWorker(e,this.runtimeOptions):yield this.layout(this.runtimeOptions)})}layoutInWorker(e,t){var n;return $f(this,void 0,void 0,function*(){try{this.supervisor||(this.supervisor=new xgi);const i=yield this.supervisor.execute(this.id,e,t);(n=this.context)===null||n===void 0||n.replace(i)}catch(i){console.error("Layout in worker failed, fallback to main thread layout.",i),yield this.layout(t)}})}forEachNode(e){this.context.forEachNode(e)}forEachEdge(e){this.context.forEachEdge(e)}destroy(){var e;(e=this.context)===null||e===void 0||e.destroy(),this.model=null,this.context=null,this.supervisor&&(this.supervisor.destroy(),this.supervisor=null)}},kve=class extends EE{};function Ehe(e){return!!e.tick&&!!e.stop}var kC=class{constructor(e={}){this.options=e,this.nodes=new Map,this.edges=new Map,this.inEdges=new Map,this.outEdges=new Map,this.parentMap=new Map,this.childrenMap=new Map,e.tree&&Array.isArray(e.tree)&&e.tree.length>0&&(typeof e.tree[0]=="string"?e.tree.forEach(t=>{this.parentMap.set(t,new Map),this.childrenMap.set(t,new Map)}):(this.attachTreeStructure("default"),this.addTree(e.tree))),e.nodes&&e.nodes.forEach(t=>this.addNode(t)),e.edges&&e.edges.forEach(t=>this.addEdge(t))}addNode(e){this.nodes.has(e.id)||(this.nodes.set(e.id,e),this.inEdges.set(e.id,new Set),this.outEdges.set(e.id,new Set))}addNodes(e){e.forEach(t=>this.addNode(t))}getNode(e){return this.nodes.get(e)}hasNode(e){return this.nodes.has(e)}removeNode(e){if(!this.nodes.has(e))return;const t=Array.from(this.inEdges.get(e)||[]),n=Array.from(this.outEdges.get(e)||[]);t.forEach(i=>this.removeEdge(i)),n.forEach(i=>this.removeEdge(i)),this.nodes.delete(e),this.inEdges.delete(e),this.outEdges.delete(e),this.parentMap.forEach(i=>{i.delete(e)}),this.childrenMap.forEach(i=>{i.delete(e)})}getAllNodes(){return Array.from(this.nodes.values())}addEdge(e){if(!this.nodes.has(e.source)||!this.nodes.has(e.target))throw new Error(`Cannot add edge ${e.id}: source ${e.source} or target ${e.target} does not exist`);this.edges.set(e.id,e),this.outEdges.get(e.source).add(e.id),this.inEdges.get(e.target).add(e.id)}addEdges(e){e.forEach(t=>this.addEdge(t))}getEdge(e){return this.edges.get(e)}hasEdge(e){return this.edges.has(e)}removeEdge(e){var t,n;const i=this.edges.get(e);i&&(this.edges.delete(e),(t=this.outEdges.get(i.source))===null||t===void 0||t.delete(e),(n=this.inEdges.get(i.target))===null||n===void 0||n.delete(e))}getAllEdges(){return Array.from(this.edges.values())}updateEdgeData(e,t){const n=this.edges.get(e);n&&Object.assign(n.data,t)}updateNodeData(e,t){const n=this.nodes.get(e);n&&Object.assign(n.data,t)}getRelatedEdges(e,t="both"){const n=[];if(t==="in"||t==="both"){const i=this.inEdges.get(e);i&&i.forEach(r=>{const o=this.edges.get(r);o&&n.push(o)})}if(t==="out"||t==="both"){const i=this.outEdges.get(e);i&&i.forEach(r=>{const o=this.edges.get(r);o&&n.push(o)})}return n}getSuccessors(e){const t=this.outEdges.get(e);if(!t||t.size===0)return[];const n=[];return t.forEach(i=>{const r=this.edges.get(i);if(r){const o=this.nodes.get(r.target);o&&n.push(o)}}),n.length>0?n:[]}getPredecessors(e){const t=this.inEdges.get(e);if(!t||t.size===0)return[];const n=[];return t.forEach(i=>{const r=this.edges.get(i);if(r){const o=this.nodes.get(r.source);o&&n.push(o)}}),n.length>0?n:[]}getNeighbors(e){const t=this.getSuccessors(e)||[],n=this.getPredecessors(e)||[],i=[...t,...n],r=Array.from(new Map(i.map(o=>[o.id,o])).values());return r.length>0?r:[]}attachTreeStructure(e){this.parentMap.has(e)||(this.parentMap.set(e,new Map),this.childrenMap.set(e,new Map))}addTree(e,t){var n,i;const r=t||((i=(n=this.options.tree)===null||n===void 0?void 0:n[0])!==null&&i!==void 0?i:"default");this.hasTreeStructure(r)||this.attachTreeStructure(r);const o=Array.isArray(e)?e:[e],s=(a,l)=>{this.addNode({id:a.id,data:a.data}),l!==void 0&&this.setParent(a.id,l,r),a.children&&a.children.length>0&&a.children.forEach(c=>{s(c,a.id)})};o.forEach(a=>s(a))}hasTreeStructure(e){return this.parentMap.has(e)}setParent(e,t,n){var i,r,o;const s=n||((r=(i=this.options.tree)===null||i===void 0?void 0:i[0])!==null&&r!==void 0?r:"default");this.parentMap.has(s)||this.attachTreeStructure(s);const a=this.parentMap.get(s),l=this.childrenMap.get(s),c=a.get(e);c!==void 0&&((o=l.get(c))===null||o===void 0||o.delete(e)),a.set(e,t),l.has(t)||l.set(t,new Set),l.get(t).add(e)}getParent(e,t){var n,i;const r=t||((i=(n=this.options.tree)===null||n===void 0?void 0:n[0])!==null&&i!==void 0?i:"default");this.parentMap.has(r)||this.attachTreeStructure(r);const o=this.parentMap.get(r);if(!o)return;const s=o.get(e);return s===void 0?null:this.nodes.get(s)}getChildren(e,t){var n,i;const r=t||((i=(n=this.options.tree)===null||n===void 0?void 0:n[0])!==null&&i!==void 0?i:"default"),o=this.childrenMap.get(r);if(!o)return[];const s=o.get(e);return s?Array.from(s).map(a=>this.nodes.get(a)).filter(a=>a!==void 0):[]}getRoots(e){var t,n;const i=e||((n=(t=this.options.tree)===null||t===void 0?void 0:t[0])!==null&&n!==void 0?n:"default"),r=this.parentMap.get(i),o=[];return this.nodes.forEach(s=>{r&&r.get(s.id)!==void 0||o.push(s)}),o}dfsTree(e,t){const n=[e],i=new Set;for(;n.length>0;){const r=n.pop();if(i.has(r))continue;const o=this.getNode(r);if(o){if(i.add(r),t(o)===!0)continue;const a=this.getChildren(r);for(let l=a.length-1;l>=0;l--)i.has(a[l].id)||n.push(a[l].id)}}}},Egi=(e,t)=>{if(e!=="next"&&e!=="prev")return t},eDt=e=>{e.prev.next=e.next,e.next.prev=e.prev,delete e.next,delete e.prev},Agi=class{constructor(){const t={};t.prev=t,t.next=t.prev,this.shortcut=t}dequeue(){const t=this.shortcut,n=t.prev;if(n&&n!==t)return eDt(n),n}enqueue(t){const n=this.shortcut;t.prev&&t.next&&eDt(t),t.next=n.next,n.next.prev=t,n.next=t,t.prev=n}toString(){const t=[],n=this.shortcut;let i=n.prev;for(;i!==n;)t.push(JSON.stringify(i,Egi)),i=i?.prev;return`[${t.join(", ")}]`}},Dgi=class extends Agi{},Tgi=()=>1,kgi=(e,t)=>{var n;if(e.getAllNodes().length<=1)return[];const i=Lgi(e,t||Tgi);return(n=Igi(i.graph,i.buckets,i.zeroIdx).map(o=>e.getRelatedEdges(o.v,"out").filter(({target:s})=>s===o.w)))===null||n===void 0?void 0:n.flat()},Igi=(e,t,n)=>{let i=[];const r=t[t.length-1],o=t[0];let s;for(;e.getAllNodes().length;){for(;s=o.dequeue();)dTe(e,t,n,s);for(;s=r.dequeue();)dTe(e,t,n,s);if(e.getAllNodes().length){for(let a=t.length-2;a>0;--a)if(s=t[a].dequeue(),s){i=i.concat(dTe(e,t,n,s,!0));break}}}return i},dTe=(e,t,n,i,r)=>{var o,s;const a=[];return e.hasNode(i.v)&&((o=e.getRelatedEdges(i.v,"in"))===null||o===void 0||o.forEach(l=>{const c=l.data.weight,u=e.getNode(l.source);r&&a.push({v:l.source,w:l.target,in:0,out:0}),u.data.out===void 0&&(u.data.out=0),u.data.out-=c,O9e(t,n,Object.assign({v:u.id},u.data))}),(s=e.getRelatedEdges(i.v,"out"))===null||s===void 0||s.forEach(l=>{const c=l.data.weight,u=l.target,d=e.getNode(u);d.data.in===void 0&&(d.data.in=0),d.data.in-=c,O9e(t,n,Object.assign({v:d.id},d.data))}),e.removeNode(i.v)),r?a:void 0},Lgi=(e,t)=>{const n=new kC;let i=0,r=0;e.getAllNodes().forEach(l=>{n.addNode({id:l.id,data:{v:l.id,in:0,out:0}})}),e.getAllEdges().forEach(l=>{const c=n.getRelatedEdges(l.source,"out").find(d=>d.target===l.target),u=t?.(l)||1;c?n.updateEdgeData(c?.id,Object.assign(Object.assign({},c.data),{weight:c.data.weight+u})):n.addEdge({id:l.id,source:l.source,target:l.target,data:{weight:u}}),r=Math.max(r,n.getNode(l.source).data.out+=u),i=Math.max(i,n.getNode(l.target).data.in+=u)});const o=[],s=r+i+3;for(let l=0;l<s;l++)o.push(new Dgi);const a=i+1;return n.getAllNodes().forEach(l=>{O9e(o,a,Object.assign({v:l.id},n.getNode(l.id).data))}),{buckets:o,zeroIdx:a,graph:n}},O9e=(e,t,n)=>{n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)},Ngi=(e,t)=>{const i=kgi(e,(r=>o=>o.data.weight||1)());i?.forEach(r=>{const o=r.data;e.removeEdge(r.id),o.forwardName=r.data.name,o.reversed=!0,e.addEdge({id:r.id,source:r.target,target:r.source,data:Object.assign({},o)})})},Pgi=e=>{e.getAllEdges().forEach(t=>{const n=t.data;if(n.reversed){e.removeEdge(t.id);const i=n.forwardName;delete n.reversed,delete n.forwardName,e.addEdge({id:t.id,source:t.target,target:t.source,data:Object.assign(Object.assign({},n),{forwardName:i})})}})},Mgi=(e,t)=>Number(e)-Number(t),ij=(e,t,n,i)=>{let r;do r=`${i}${Math.random()}`;while(e.hasNode(r));return n.dummy=t,e.addNode({id:r,data:n}),r},Ogi=e=>{const t=new kC;return e.getAllNodes().forEach(n=>{t.addNode(Object.assign({},n))}),e.getAllEdges().forEach(n=>{const i=t.getRelatedEdges(n.source,"out").find(r=>r.target===n.target);i?t.updateEdgeData(i?.id,Object.assign(Object.assign({},i.data),{weight:i.data.weight+n.data.weight||0,minlen:Math.max(i.data.minlen,n.data.minlen||1)})):t.addEdge({id:n.id,source:n.source,target:n.target,data:{weight:n.data.weight||0,minlen:n.data.minlen||1}})}),t},ggn=e=>{const t=new kC;return e.getAllNodes().forEach(n=>{e.getChildren(n.id).length||t.addNode(Object.assign({},n))}),e.getAllEdges().forEach(n=>{t.addEdge(n)}),t},Rgi=(e,t)=>e?.reduce((n,i,r)=>(n[i]=t[r],n),{}),tDt=(e,t)=>{const n=Number(e.x),i=Number(e.y),r=Number(t.x)-n,o=Number(t.y)-i;let s=Number(e.width)/2,a=Number(e.height)/2;if(!r&&!o)return{x:0,y:0};let l,c;return Math.abs(o)*s>Math.abs(r)*a?(o<0&&(a=-a),l=a*r/o,c=a):(r<0&&(s=-s),l=s,c=s*o/r),{x:n+l,y:i+c}},OG=e=>{const t=[],n=mgn(e)+1;for(let i=0;i<n;i++)t.push([]);e.getAllNodes().forEach(i=>{const r=i.data.rank;r!==void 0&&t[r]&&t[r].push(i.id)});for(let i=0;i<n;i++)t[i]=t[i].sort((r,o)=>Mgi(e.getNode(r).data.order,e.getNode(o).data.order));return t},Fgi=e=>{const t=e.getAllNodes().filter(i=>i.data.rank!==void 0).map(i=>i.data.rank),n=Math.min(...t);e.getAllNodes().forEach(i=>{i.data.hasOwnProperty("rank")&&n!==1/0&&(i.data.rank-=n)})},Bgi=(e,t=0)=>{const n=e.getAllNodes(),i=n.filter(a=>a.data.rank!==void 0).map(a=>a.data.rank),r=Math.min(...i),o=[];n.forEach(a=>{const l=(a.data.rank||0)-r;o[l]||(o[l]=[]),o[l].push(a.id)});let s=0;for(let a=0;a<o.length;a++){const l=o[a];l===void 0?a%t!==0&&(s-=1):s&&l?.forEach(c=>{const u=e.getNode(c);u&&(u.data.rank=u.data.rank||0,u.data.rank+=s)})}},nDt=(e,t,n,i)=>{const r={width:0,height:0};return vh(n)&&vh(i)&&(r.rank=n,r.order=i),ij(e,"border",r,t)},mgn=e=>{let t;return e.getAllNodes().forEach(n=>{const i=n.data.rank;i!==void 0&&(t===void 0||i>t)&&(t=i)}),t||(t=0),t},jgi=(e,t)=>{const n={lhs:[],rhs:[]};return e?.forEach(i=>{t(i)?n.lhs.push(i):n.rhs.push(i)}),n},gYe=(e,t)=>e.reduce((n,i)=>{const r=t(n),o=t(i);return r>o?i:n}),vgn=(e,t,n,i,r,o)=>{if(!i.includes(t.id)){i.push(t.id),n||o.push(t.id);const s=r(t.id);s&&s.forEach(a=>vgn(e,a,n,i,r,o)),n&&o.push(t.id)}},ygn=(e,t,n,i)=>{const r=Array.isArray(t)?t:[t],o=l=>e.getNeighbors(l),s=[],a=[];return r.forEach(l=>{if(e.hasNode(l.id))vgn(e,l,n==="post",a,o,s);else throw new Error(`Graph does not have node: ${l}`)}),s},zgi=e=>{const t=n=>{const i=e.getChildren(n),r=e.getNode(n);if(i?.length&&i.forEach(o=>t(o.id)),r.data.hasOwnProperty("minRank")){r.data.borderLeft=[],r.data.borderRight=[];for(let o=r.data.minRank,s=r.data.maxRank+1;o<s;o+=1)iDt(e,"borderLeft","_bl",n,r,o),iDt(e,"borderRight","_br",n,r,o)}};e.getRoots().forEach(n=>t(n.id))},iDt=(e,t,n,i,r,o)=>{const s={rank:o,borderType:t,width:0,height:0},a=o-r.data.minRank,l=r.data[t][a-1],c=ij(e,"border",s,n);r.data[t][a]=c,e.setParent(c,i),l&&e.addEdge({id:`e${Math.random()}`,source:l,target:c,data:{weight:1}})},Vgi=(e,t)=>{const n=t.toLowerCase();(n==="lr"||n==="rl")&&bgn(e)},Hgi=(e,t)=>{const n=t.toLowerCase();(n==="bt"||n==="rl")&&Wgi(e),(n==="lr"||n==="rl")&&(Ugi(e),bgn(e))},bgn=e=>{e.getAllNodes().forEach(t=>{rDt(t)}),e.getAllEdges().forEach(t=>{rDt(t)})},rDt=e=>{const t=e.data.width;e.data.width=e.data.height,e.data.height=t},Wgi=e=>{e.getAllNodes().forEach(t=>{hTe(t.data)}),e.getAllEdges().forEach(t=>{var n;(n=t.data.points)===null||n===void 0||n.forEach(i=>hTe(i)),t.data.hasOwnProperty("y")&&hTe(t.data)})},hTe=e=>{e?.y&&(e.y=-e.y)},Ugi=e=>{e.getAllNodes().forEach(t=>{fTe(t.data)}),e.getAllEdges().forEach(t=>{var n;(n=t.data.points)===null||n===void 0||n.forEach(i=>fTe(i)),t.data.hasOwnProperty("x")&&fTe(t.data)})},fTe=e=>{const t=e.x;e.x=e.y,e.y=t},$gi=e=>{const t=ij(e,"root",{},"_root"),n=qgi(e);let i=Math.max(...Object.values(n));Math.abs(i)===1/0&&(i=1);const r=i-1,o=2*r+1;e.getAllEdges().forEach(a=>{a.data.minlen*=o});const s=Ggi(e)+1;return e.getRoots().forEach(a=>{_gn(e,t,o,s,r,n,a.id)}),{nestingRoot:t,nodeRankFactor:o}},_gn=(e,t,n,i,r,o,s)=>{const a=e.getChildren(s);if(!a?.length){s!==t&&e.addEdge({id:`e${Math.random()}`,source:t,target:s,data:{weight:0,minlen:n}});return}const l=nDt(e,"_bt"),c=nDt(e,"_bb"),u=e.getNode(s);e.setParent(l,s),u.data.borderTop=l,e.setParent(c,s),u.data.borderBottom=c,a?.forEach(d=>{_gn(e,t,n,i,r,o,d.id);const h=d.data.borderTop?d.data.borderTop:d.id,f=d.data.borderBottom?d.data.borderBottom:d.id,p=d.data.borderTop?i:2*i,g=h!==f?1:r-o[s]+1;e.addEdge({id:`e${Math.random()}`,source:l,target:h,data:{minlen:g,weight:p,nestingEdge:!0}}),e.addEdge({id:`e${Math.random()}`,source:f,target:c,data:{minlen:g,weight:p,nestingEdge:!0}})}),e.getParent(s)||e.addEdge({id:`e${Math.random()}`,source:t,target:l,data:{weight:0,minlen:r+o[s]}})},qgi=e=>{const t={},n=(i,r)=>{const o=e.getChildren(i);o?.forEach(s=>n(s.id,r+1)),t[i]=r};return e.getRoots().forEach(i=>n(i.id,1)),t},Ggi=e=>{let t=0;return e.getAllEdges().forEach(n=>{t+=n.data.weight}),t},Kgi=(e,t)=>{t&&e.removeNode(t),e.getAllEdges().forEach(n=>{n.data.nestingEdge&&e.removeEdge(n.id)})},Ygi="edge",wgn="edge-label",Qgi=(e,t)=>{e.getAllEdges().forEach(n=>Zgi(e,n,t))},Zgi=(e,t,n)=>{let i=t.source,r=e.getNode(i).data.rank;const o=t.target,s=e.getNode(o).data.rank,a=t.data.labelRank;if(s===r+1)return;e.removeEdge(t.id);let l,c,u;for(u=0,++r;r<s;++u,++r)t.data.points=[],c={originalEdge:t,width:0,height:0,rank:r},l=ij(e,Ygi,c,"_d"),r===a&&(c.width=t.data.width,c.height=t.data.height,c.dummy=wgn,c.labelpos=t.data.labelpos),e.addEdge({id:`e${Math.random()}`,source:i,target:l,data:{weight:t.data.weight}}),u===0&&n.push(l),i=l;e.addEdge({id:`e${Math.random()}`,source:i,target:o,data:{weight:t.data.weight}})},Xgi=(e,t)=>{t.forEach(n=>{let i=e.getNode(n);const{data:r}=i,o=r.originalEdge;let s;o&&e.addEdge(o);let a=n;for(;i.data.dummy;)s=e.getSuccessors(a)[0],e.removeNode(a),o.data.points.push({x:i.data.x,y:i.data.y}),i.data.dummy===wgn&&(o.data.x=i.data.x,o.data.y=i.data.y,o.data.width=i.data.width,o.data.height=i.data.height),a=s.id,i=e.getNode(a)})},Jgi=(e,t,n)=>{const i={};let r;n?.forEach(o=>{let s=e.getParent(o),a,l;for(;s;){if(a=e.getParent(s.id),a?(l=i[a.id],i[a.id]=s.id):(l=r,r=s.id),l&&l!==s.id){t.hasNode(l)||t.addNode({id:l,data:{}}),t.hasNode(s.id)||t.addNode({id:s.id,data:{}}),t.hasEdge(`e${l}-${s.id}`)||t.addEdge({id:`e${l}-${s.id}`,source:l,target:s.id,data:{}});return}s=a}})},emi=(e,t,n)=>{const i=tmi(e),r=new kC;return r.addNode({id:i,data:{}}),e.getAllNodes().forEach(o=>{var s,a;const l=e.getParent(o.id);(o.data.rank===t||o.data.minRank<=t&&t<=o.data.maxRank)&&(r.hasNode(o.id)||r.addNode(Object.assign({},o)),l?.id&&!r.hasNode(l?.id)&&r.addNode(Object.assign({},l)),r.setParent(o.id,l?.id||i),e.getRelatedEdges(o.id,n).forEach(c=>{const u=c.source===o.id?c.target:c.source;r.hasNode(u)||r.addNode(Object.assign({},e.getNode(u)));const d=r.getRelatedEdges(u,"out").find(({target:f})=>f===o.id),h=d!==void 0?d.data.weight:0;d?r.updateEdgeData(d.id,Object.assign(Object.assign({},d.data),{weight:c.data.weight+h})):r.addEdge({id:c.id,source:u,target:o.id,data:{weight:c.data.weight+h}})}),o.data.hasOwnProperty("minRank")&&r.updateNodeData(o.id,Object.assign(Object.assign({},o.data),{borderLeft:[(s=o.data.borderLeft)===null||s===void 0?void 0:s[t-o.data.minRank]],borderRight:[(a=o.data.borderRight)===null||a===void 0?void 0:a[t-o.data.minRank]]})))}),r},tmi=e=>{let t;for(;e.hasNode(t=`_root${Math.random()}`););return t},nmi=(e,t,n)=>{const i=Rgi(n,n.map((u,d)=>d)),o=t.map(u=>{const d=e.getRelatedEdges(u,"out").map(h=>({pos:i[h.target]||0,weight:h.data.weight}));return d?.sort((h,f)=>h.pos-f.pos)}).flat().filter(u=>u!==void 0);let s=1;for(;s<n.length;)s<<=1;const a=2*s-1;s-=1;const l=Array(a).fill(0,0,a);let c=0;return o?.forEach(u=>{if(u){let d=u.pos+s;l[d]+=u.weight;let h=0;for(;d>0;)d%2&&(h+=l[d+1]),d=d-1>>1,l[d]+=u.weight;c+=u.weight*h}}),c},oDt=(e,t)=>{let n=0;for(let i=1;i<t?.length;i+=1)n+=nmi(e,t[i-1],t[i]);return n},sDt=e=>{const t={},n=e.getAllNodes(),i=n.map(c=>{var u;return(u=c.data.rank)!==null&&u!==void 0?u:-1/0}),r=Math.max(...i),o=[];for(let c=0;c<r+1;c++)o.push([]);const s=n.sort((c,u)=>e.getNode(c.id).data.rank-e.getNode(u.id).data.rank),l=s.filter(c=>e.getNode(c.id).data.fixorder!==void 0).sort((c,u)=>e.getNode(c.id).data.fixorder-e.getNode(u.id).data.fixorder);return l?.forEach(c=>{isNaN(e.getNode(c.id).data.rank)||o[e.getNode(c.id).data.rank].push(c.id),t[c.id]=!0}),s?.forEach(c=>e.dfsTree(c.id,u=>{if(t.hasOwnProperty(u.id))return!0;t[u.id]=!0,isNaN(u.data.rank)||o[u.data.rank].push(u.id)})),o},imi=(e,t)=>t.map(n=>{const i=e.getRelatedEdges(n,"in");if(!i?.length)return{v:n};const r={sum:0,weight:0};return i?.forEach(o=>{const s=e.getNode(o.source);r.sum+=o.data.weight*s.data.order,r.weight+=o.data.weight}),{v:n,barycenter:r.sum/r.weight,weight:r.weight}}),rmi=(e,t)=>{var n,i,r;const o={};e?.forEach((a,l)=>{o[a.v]={i:l,indegree:0,in:[],out:[],vs:[a.v]};const c=o[a.v];a.barycenter!==void 0&&(c.barycenter=a.barycenter,c.weight=a.weight)}),(n=t.getAllEdges())===null||n===void 0||n.forEach(a=>{const l=o[a.source],c=o[a.target];l!==void 0&&c!==void 0&&(c.indegree++,l.out.push(o[a.target]))});const s=(r=(i=Object.values(o)).filter)===null||r===void 0?void 0:r.call(i,a=>!a.indegree);return omi(s)},omi=e=>{var t,n;const i=[],r=l=>c=>{c.merged||(c.barycenter===void 0||l.barycenter===void 0||c.barycenter>=l.barycenter)&&smi(l,c)},o=l=>c=>{c.in.push(l),--c.indegree===0&&e.push(c)};for(;e?.length;){const l=e.pop();i.push(l),(t=l.in.reverse())===null||t===void 0||t.forEach(c=>r(l)(c)),(n=l.out)===null||n===void 0||n.forEach(c=>o(l)(c))}const s=i.filter(l=>!l.merged),a=["vs","i","barycenter","weight"];return s.map(l=>{const c={};return a?.forEach(u=>{l[u]!==void 0&&(c[u]=l[u])}),c})},smi=(e,t)=>{var n;let i=0,r=0;e.weight&&(i+=e.barycenter*e.weight,r+=e.weight),t.weight&&(i+=t.barycenter*t.weight,r+=t.weight),e.vs=(n=t.vs)===null||n===void 0?void 0:n.concat(e.vs),e.barycenter=i/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0},ami=(e,t,n,i)=>{const r=jgi(e,h=>{const f=h.hasOwnProperty("fixorder")&&!isNaN(h.fixorder);return i?!f&&h.hasOwnProperty("barycenter"):f||h.hasOwnProperty("barycenter")}),o=r.lhs,s=r.rhs.sort((h,f)=>-h.i- -f.i),a=[];let l=0,c=0,u=0;o?.sort(lmi(!!t,!!n)),u=aDt(a,s,u),o?.forEach(h=>{var f;u+=(f=h.vs)===null||f===void 0?void 0:f.length,a.push(h.vs),l+=h.barycenter*h.weight,c+=h.weight,u=aDt(a,s,u)});const d={vs:a.flat()};return c&&(d.barycenter=l/c,d.weight=c),d},aDt=(e,t,n)=>{let i=n,r;for(;t.length&&(r=t[t.length-1]).i<=i;)t.pop(),e?.push(r.vs),i++;return i},lmi=(e,t)=>(n,i)=>{if(n.fixorder!==void 0&&i.fixorder!==void 0)return n.fixorder-i.fixorder;if(n.barycenter<i.barycenter)return-1;if(n.barycenter>i.barycenter)return 1;if(t&&n.order!==void 0&&i.order!==void 0){if(n.order<i.order)return-1;if(n.order>i.order)return 1}return e?i.i-n.i:n.i-i.i},Cgn=(e,t,n,i,r,o)=>{var s,a,l,c;let u=e.getChildren(t).map(y=>y.id);const d=e.getNode(t),h=d?d.data.borderLeft:void 0,f=d?d.data.borderRight:void 0,p={};h&&(u=u?.filter(y=>y!==h&&y!==f));const g=imi(e,u||[]);g?.forEach(y=>{var b;if(!((b=e.getChildren(y.v))===null||b===void 0)&&b.length){const w=Cgn(e,y.v,n,i,o);p[y.v]=w,w.hasOwnProperty("barycenter")&&umi(y,w)}});const m=rmi(g,n);cmi(m,p),(s=m.filter(y=>y.vs.length>0))===null||s===void 0||s.forEach(y=>{const b=e.getNode(y.vs[0]);b&&(y.fixorder=b.data.fixorder,y.order=b.data.order)});const v=ami(m,i,r,o);if(h&&(v.vs=[h,v.vs,f].flat(),!((a=e.getPredecessors(h))===null||a===void 0)&&a.length)){const y=e.getNode(((l=e.getPredecessors(h))===null||l===void 0?void 0:l[0].id)||""),b=e.getNode(((c=e.getPredecessors(f))===null||c===void 0?void 0:c[0].id)||"");v.hasOwnProperty("barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+y.data.order+b.data.order)/(v.weight+2),v.weight+=2}return v},cmi=(e,t)=>{e?.forEach(n=>{var i;const r=(i=n.vs)===null||i===void 0?void 0:i.map(o=>t[o]?t[o].vs:o);n.vs=r.flat()})},umi=(e,t)=>{e.barycenter!==void 0?(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight):(e.barycenter=t.barycenter,e.weight=t.weight)};function mYe(e){return Array.isArray(e)}var Ahe=function(e){if(typeof e!="object"||e===null)return e;var t;if(mYe(e)){t=[];for(var n=0,i=e.length;n<i;n++)typeof e[n]=="object"&&e[n]!=null?t[n]=Ahe(e[n]):t[n]=e[n]}else{t={};for(var r in e)typeof e[r]=="object"&&e[r]!=null?t[r]=Ahe(e[r]):t[r]=e[r]}return t},dmi=(e,t)=>{const n=mgn(e),i=[],r=[];for(let u=1;u<n+1;u++)i.push(u);for(let u=n-1;u>-1;u--)r.push(u);const o=lDt(e,i,"in"),s=lDt(e,r,"out");let a=sDt(e);pTe(e,a);let l=Number.POSITIVE_INFINITY,c;for(let u=0,d=0;d<4;++u,++d){cDt(u%2?o:s,u%4>=2,!1,t),a=OG(e);const h=oDt(e,a);h<l&&(d=0,c=Ahe(a),l=h)}a=sDt(e),pTe(e,a);for(let u=0,d=0;d<4;++u,++d){cDt(u%2?o:s,u%4>=2,!0,t),a=OG(e);const h=oDt(e,a);h<l&&(d=0,c=Ahe(a),l=h)}pTe(e,c)},lDt=(e,t,n)=>t.map(i=>emi(e,i,n)),cDt=(e,t,n,i)=>{const r=new kC;e?.forEach(o=>{var s;const a=o.getRoots()[0].id,l=Cgn(o,a,r,t,n,i);for(let c=0;c<((s=l.vs)===null||s===void 0?void 0:s.length);c++){const u=o.getNode(l.vs[c]);u&&(u.data.order=c)}Jgi(o,r,l.vs)})},pTe=(e,t)=>{t?.forEach(n=>{n?.forEach((i,r)=>{e.getNode(i).data.order=r})})},hmi=(e,t)=>{const i=e.getAllNodes().filter(s=>{var a;return!(!((a=e.getChildren(s.id))===null||a===void 0)&&a.length)}).map(s=>s.data.rank),r=Math.max(...i),o=[];for(let s=0;s<r+1;s++)o[s]=[];t?.forEach(s=>{const a=e.getNode(s);!a||a.data.dummy||isNaN(a.data.rank)||(a.data.fixorder=o[a.data.rank].length,o[a.data.rank].push(s))})},fmi=e=>{const t={};let n=0;const i=r=>{const o=n;e.getChildren(r).forEach(s=>i(s.id)),t[r]={low:o,lim:n++}};return e.getRoots().forEach(r=>i(r.id)),t},pmi=(e,t,n,i)=>{var r,o;const s=[],a=[],l=Math.min(t[n].low,t[i].low),c=Math.max(t[n].lim,t[i].lim);let u,d;u=n;do u=(r=e.getParent(u))===null||r===void 0?void 0:r.id,s.push(u);while(u&&(t[u].low>l||c>t[u].lim));for(d=u,u=i;u&&u!==d;)a.push(u),u=(o=e.getParent(u))===null||o===void 0?void 0:o.id;return{lca:d,path:s.concat(a.reverse())}},gmi=(e,t)=>{const n=fmi(e);t.forEach(i=>{var r,o;let s=i,a=e.getNode(s);const l=a.data.originalEdge;if(!l)return;const c=pmi(e,n,l.source,l.target),u=c.path,d=c.lca;let h=0,f=u[h],p=!0;for(;s!==l.target;){if(a=e.getNode(s),p){for(;f!==d&&((r=e.getNode(f))===null||r===void 0?void 0:r.data.maxRank)<a.data.rank;)h++,f=u[h];f===d&&(p=!1)}if(!p){for(;h<u.length-1&&((o=e.getNode(u[h+1]))===null||o===void 0?void 0:o.data.minRank)<=a.data.rank;)h++;f=u[h]}e.hasNode(f)&&e.setParent(s,f),s=e.getSuccessors(s)[0].id}})},mmi=(e,t)=>{const n={},i=(r,o)=>{let s=0,a=0;const l=r.length,c=o?.[o?.length-1];return o?.forEach((u,d)=>{var h;const f=ymi(e,u),p=f?e.getNode(f.id).data.order:l;(f||u===c)&&((h=o.slice(a,d+1))===null||h===void 0||h.forEach(g=>{var m;(m=e.getPredecessors(g))===null||m===void 0||m.forEach(v=>{var y;const b=e.getNode(v.id),w=b.data.order;(w<s||p<w)&&!(b.data.dummy&&(!((y=e.getNode(g))===null||y===void 0)&&y.data.dummy))&&Sgn(n,v.id,g)})}),a=d+1,s=p)}),o};return t?.length&&t.reduce(i),n},vmi=(e,t)=>{const n={};function i(a,l,c,u,d){var h,f;let p;for(let g=l;g<c;g++)p=a[g],!((h=e.getNode(p))===null||h===void 0)&&h.data.dummy&&((f=e.getPredecessors(p))===null||f===void 0||f.forEach(m=>{const v=e.getNode(m.id);v.data.dummy&&(v.data.order<u||v.data.order>d)&&Sgn(n,m.id,p)}))}function r(a){return JSON.stringify(a.slice(1))}function o(a,l){const c=r(a);l.get(c)||(i(...a),l.set(c,!0))}const s=(a,l)=>{let c=-1,u,d=0;const h=new Map;return l?.forEach((f,p)=>{var g;if(((g=e.getNode(f))===null||g===void 0?void 0:g.data.dummy)==="border"){const m=e.getPredecessors(f)||[];m.length&&(u=e.getNode(m[0].id).data.order,o([l,d,p,c,u],h),d=p,c=u)}o([l,d,l.length,u,a.length],h)}),l};return t?.length&&t.reduce(s),n},ymi=(e,t)=>{var n,i;if(!((n=e.getNode(t))===null||n===void 0)&&n.data.dummy)return(i=e.getPredecessors(t))===null||i===void 0?void 0:i.find(r=>e.getNode(r.id).data.dummy)},Sgn=(e,t,n)=>{let i=t,r=n;if(i>r){const s=i;i=r,r=s}let o=e[i];o||(e[i]=o={}),o[r]=!0},bmi=(e,t,n)=>{let i=t,r=n;if(i>r){const o=t;i=r,r=o}return!!e[i]},_mi=(e,t,n,i)=>{const r={},o={},s={};return t?.forEach(a=>{a?.forEach((l,c)=>{r[l]=l,o[l]=l,s[l]=c})}),t?.forEach(a=>{let l=-1;a?.forEach(c=>{let u=i(c).map(d=>d.id);if(u.length){u=u.sort((h,f)=>s[h]-s[f]);const d=(u.length-1)/2;for(let h=Math.floor(d),f=Math.ceil(d);h<=f;++h){const p=u[h];o[c]===c&&l<s[p]&&!bmi(n,c,p)&&(o[p]=c,o[c]=r[c]=r[p],l=s[p])}}})}),{root:r,align:o}},wmi=(e,t,n,i,r,o,s)=>{var a;const l={},c=Cmi(e,t,n,r,o,s),u=s?"borderLeft":"borderRight",d=(p,g)=>{let m=c.getAllNodes(),v=m.pop();const y={};for(;v;)y[v.id]?p(v.id):(y[v.id]=!0,m.push(v),m=m.concat(g(v.id))),v=m.pop()},h=p=>{l[p]=(c.getRelatedEdges(p,"in")||[]).reduce((g,m)=>Math.max(g,(l[m.source]||0)+m.data.weight),0)},f=p=>{const g=(c.getRelatedEdges(p,"out")||[]).reduce((v,y)=>Math.min(v,(l[y.target]||0)-y.data.weight),Number.POSITIVE_INFINITY),m=e.getNode(p);g!==Number.POSITIVE_INFINITY&&m.data.borderType!==u&&(l[p]=Math.max(l[p],g))};return d(h,c.getPredecessors.bind(c)),d(f,c.getSuccessors.bind(c)),(a=Object.values(i))===null||a===void 0||a.forEach(p=>{l[p]=l[n[p]]}),l},Cmi=(e,t,n,i,r,o)=>{const s=new kC,a=Ami(i,r,o);return t?.forEach(l=>{let c;l?.forEach(u=>{const d=n[u];if(s.hasNode(d)||s.addNode({id:d,data:{}}),c){const h=n[c],f=s.getRelatedEdges(h,"out").find(p=>p.target===d);f?s.updateEdgeData(f.id,Object.assign(Object.assign({},f.data),{weight:Math.max(a(e,u,c),f.data.weight||0)})):s.addEdge({id:`e${Math.random()}`,source:h,target:d,data:{weight:Math.max(a(e,u,c),0)}})}c=u})}),s},Smi=(e,t)=>gYe(Object.values(t),n=>{var i;let r=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return(i=Object.keys(n))===null||i===void 0||i.forEach(s=>{const a=n[s],l=Dmi(e,s)/2;r=Math.max(a+l,r),o=Math.min(a-l,o)}),r-o});function xmi(e,t){const n=Object.values(t),i=Math.min(...n),r=Math.max(...n);["u","d"].forEach(o=>{["l","r"].forEach(s=>{const a=o+s,l=e[a];let c;if(l===t)return;const u=Object.values(l);c=s==="l"?i-Math.min(...u):r-Math.max(...u),c&&(e[a]={},Object.keys(l).forEach(d=>{e[a][d]=l[d]+c}))})})}var Emi=(e,t)=>{const n={};return Object.keys(e.ul).forEach(i=>{if(t)n[i]=e[t.toLowerCase()][i];else{const r=Object.values(e).map(o=>o[i]);n[i]=(r[0]+r[1])/2}}),n},Ami=(e,t,n)=>(i,r,o)=>{const s=i.getNode(r),a=i.getNode(o);let l=0,c=0;if(l+=s.data.width/2,s.data.hasOwnProperty("labelpos"))switch((s.data.labelpos||"").toLowerCase()){case"l":c=-s.data.width/2;break;case"r":c=s.data.width/2;break}if(c&&(l+=n?c:-c),c=0,l+=(s.data.dummy?t:e)/2,l+=(a.data.dummy?t:e)/2,l+=a.data.width/2,a.data.labelpos)switch((a.data.labelpos||"").toLowerCase()){case"l":c=a.data.width/2;break;case"r":c=-a.data.width/2;break}return c&&(l+=n?c:-c),c=0,l},Dmi=(e,t)=>e.getNode(t).data.width||0,Tmi=(e,t)=>{const{ranksep:n=0}=t||{},i=OG(e);let r=0;i?.forEach(o=>{const s=o.map(l=>e.getNode(l).data.height),a=Math.max(...s,0);o?.forEach(l=>{e.getNode(l).data.y=r+a/2}),r+=a+n})},kmi=(e,t)=>{const{align:n,nodesep:i=0,edgesep:r=0}=t||{},o=OG(e),s=Object.assign(mmi(e,o),vmi(e,o)),a={};let l=[];["u","d"].forEach(u=>{l=u==="u"?o:Object.values(o).reverse(),["l","r"].forEach(d=>{d==="r"&&(l=l.map(g=>Object.values(g).reverse()));const h=(u==="u"?e.getPredecessors:e.getSuccessors).bind(e),f=_mi(e,l,s,h),p=wmi(e,l,f.root,f.align,i,r,d==="r");d==="r"&&Object.keys(p).forEach(g=>p[g]=-p[g]),a[u+d]=p})});const c=Smi(e,a);return c&&xmi(a,c),Emi(a,n)},Imi=(e,t)=>{var n;const i=ggn(e);Tmi(i,t);const r=kmi(i,t);(n=Object.keys(r))===null||n===void 0||n.forEach(o=>{i.getNode(o).data.x=r[o]})},xgn=e=>{const t={},n=i=>{var r;const o=e.getNode(i);if(!o)return 0;if(t[i])return o.data.rank;t[i]=!0;let s;return(r=e.getRelatedEdges(i,"out"))===null||r===void 0||r.forEach(a=>{const l=n(a.target),c=a.data.minlen,u=l-c;u&&(s===void 0||u<s)&&(s=u)}),s||(s=0),o.data.rank=s,s};e.getAllNodes().filter(i=>e.getRelatedEdges(i.id,"in").length===0).forEach(i=>n(i.id))},Lmi=e=>{const t={};let n;const i=s=>{var a;const l=e.getNode(s);if(!l)return 0;if(t[s])return l.data.rank;t[s]=!0;let c;return(a=e.getRelatedEdges(s,"out"))===null||a===void 0||a.forEach(u=>{const d=i(u.target),h=u.data.minlen,f=d-h;f&&(c===void 0||f<c)&&(c=f)}),c||(c=0),(n===void 0||c<n)&&(n=c),l.data.rank=c,c};e.getAllNodes().filter(s=>e.getRelatedEdges(s.id,"in").length===0).forEach(s=>{s&&i(s.id)}),n===void 0&&(n=0);const r={},o=(s,a)=>{var l;const c=e.getNode(s),u=isNaN(c.data.layer)?a:c.data.layer;(c.data.rank===void 0||c.data.rank<u)&&(c.data.rank=u),!r[s]&&(r[s]=!0,(l=e.getRelatedEdges(s,"out"))===null||l===void 0||l.forEach(d=>{o(d.target,u+d.data.minlen)}))};e.getAllNodes().forEach(s=>{const a=s.data;a&&(isNaN(a.layer)?a.rank-=n:o(s.id,a.layer))})},QL=(e,t)=>e.getNode(t.target).data.rank-e.getNode(t.source).data.rank-t.data.minlen,Nmi=e=>{const t=new kC({tree:[]}),n=e.getAllNodes()[0],i=e.getAllNodes().length;t.addNode(n);let r,o;for(;Pmi(t,e)<i;)r=Egn(t,e),o=t.hasNode(r.source)?QL(e,r):-QL(e,r),Agn(t,e,o);return t},Pmi=(e,t)=>{const n=i=>{t.getRelatedEdges(i,"both").forEach(r=>{const o=r.source,s=i===o?r.target:o;!e.hasNode(s)&&!QL(t,r)&&(e.addNode({id:s,data:{}}),e.addEdge({id:r.id,source:i,target:s,data:{}}),n(s))})};return e.getAllNodes().forEach(i=>n(i.id)),e.getAllNodes().length},Mmi=e=>{const t=new kC({tree:[]}),n=e.getAllNodes()[0],i=e.getAllNodes().length;t.addNode(n);let r,o;for(;Omi(t,e)<i;)r=Egn(t,e),o=t.hasNode(r.source)?QL(e,r):-QL(e,r),Agn(t,e,o);return t},Omi=(e,t)=>{const n=i=>{var r;(r=t.getRelatedEdges(i,"both"))===null||r===void 0||r.forEach(o=>{const s=o.source,a=i===s?o.target:s;!e.hasNode(a)&&(t.getNode(a).data.layer!==void 0||!QL(t,o))&&(e.addNode({id:a,data:{}}),e.addEdge({id:o.id,source:i,target:a,data:{}}),n(a))})};return e.getAllNodes().forEach(i=>n(i.id)),e.getAllNodes().length},Egn=(e,t)=>gYe(t.getAllEdges(),n=>e.hasNode(n.source)!==e.hasNode(n.target)?QL(t,n):1/0),Agn=(e,t,n)=>{e.getAllNodes().forEach(i=>{const r=t.getNode(i.id);r.data.rank||(r.data.rank=0),r.data.rank+=n})},Rmi=e=>{const t=Ogi(e);xgn(t);const n=Nmi(t);Tgn(n),Dgn(n,t);let i,r;for(;i=jmi(n);)r=zmi(n,t,i),Vmi(n,t,i,r)},Dgn=(e,t)=>{let n=ygn(e,e.getAllNodes(),"post");n=n.slice(0,n?.length-1),n.forEach(i=>{Fmi(e,t,i)})},Fmi=(e,t,n)=>{const r=e.getNode(n).data.parent,o=e.getRelatedEdges(n,"both").find(s=>s.target===r||s.source===r);o.data.cutvalue=Bmi(e,t,n)},Bmi=(e,t,n)=>{const r=e.getNode(n).data.parent;let o=!0,s=t.getRelatedEdges(n,"out").find(l=>l.target===r),a=0;return s||(o=!1,s=t.getRelatedEdges(r,"out").find(l=>l.target===n)),a=s.data.weight,t.getRelatedEdges(n,"both").forEach(l=>{const c=l.source===n,u=c?l.target:l.source;if(u!==r){const d=c===o,h=l.data.weight;if(a+=d?h:-h,Wmi(e,n,u)){const f=e.getRelatedEdges(n,"both").find(p=>p.source===u||p.target===u).data.cutvalue;a+=d?-f:f}}}),a},Tgn=(e,t=e.getAllNodes()[0].id)=>{kgn(e,{},1,t)},kgn=(e,t,n,i,r)=>{var o;const s=n;let a=n;const l=e.getNode(i);return t[i]=!0,(o=e.getNeighbors(i))===null||o===void 0||o.forEach(c=>{t[c.id]||(a=kgn(e,t,a,c.id,i))}),l.data.low=s,l.data.lim=a++,r?l.data.parent=r:delete l.data.parent,a},jmi=e=>e.getAllEdges().find(t=>t.data.cutvalue<0),zmi=(e,t,n)=>{let i=n.source,r=n.target;t.getRelatedEdges(i,"out").find(u=>u.target===r)||(i=n.target,r=n.source);const o=e.getNode(i),s=e.getNode(r);let a=o,l=!1;o.data.lim>s.data.lim&&(a=s,l=!0);const c=t.getAllEdges().filter(u=>l===uDt(e.getNode(u.source),a)&&l!==uDt(e.getNode(u.target),a));return gYe(c,u=>QL(t,u))},Vmi=(e,t,n,i)=>{const r=e.getRelatedEdges(n.source,"both").find(o=>o.source===n.target||o.target===n.target);r&&e.removeEdge(r.id),e.addEdge({id:`e${Math.random()}`,source:i.source,target:i.target,data:{}}),Tgn(e),Dgn(e,t),Hmi(e,t)},Hmi=(e,t)=>{const n=e.getAllNodes().find(r=>!r.data.parent);let i=ygn(e,n,"pre");i=i.slice(1),i.forEach(r=>{const o=e.getNode(r).data.parent;let s=t.getRelatedEdges(r,"out").find(l=>l.target===o),a=!1;!s&&t.hasNode(o)&&(s=t.getRelatedEdges(o,"out").find(l=>l.target===r),a=!0),t.getNode(r).data.rank=(t.hasNode(o)&&t.getNode(o).data.rank||0)+(a?s?.data.minlen:-s?.data.minlen)})},Wmi=(e,t,n)=>e.getRelatedEdges(t,"both").find(i=>i.source===n||i.target===n),uDt=(e,t)=>t.data.low<=e.data.lim&&e.data.lim<=t.data.lim,Umi=(e,t)=>{switch(t){case"network-simplex":qmi(e);break;case"tight-tree":dDt(e);break;case"longest-path":$mi(e);break;default:dDt(e)}},$mi=xgn,dDt=e=>{Lmi(e),Mmi(e)},qmi=e=>{Rmi(e)},Gmi=(e,t)=>{const{edgeLabelSpace:n,keepNodeOrder:i,prevGraph:r,rankdir:o,ranksep:s}=t;!i&&r&&Ymi(e,r);const a=tvi(e);n&&(t.ranksep=nvi(a,{rankdir:o,ranksep:s}));let l;try{l=Kmi(a,t)}catch(c){if(c.message==="Not possible to find intersection inside of the rectangle"){console.error(`The following error may be caused by improper layer setting, please make sure your manual layer setting does not violate the graph's structure:
`,c);return}throw c}return Qmi(e,a),l},Kmi=(e,t)=>{const{ranker:n,rankdir:i="tb",nodeOrder:r,keepNodeOrder:o,align:s,nodesep:a=50,edgesep:l=20,ranksep:c=50}=t;dvi(e),Ngi(e);const{nestingRoot:u,nodeRankFactor:d}=$gi(e);Umi(ggn(e),n),ivi(e),Bgi(e,d),Kgi(e,u),Fgi(e),rvi(e),ovi(e);const h=[];Qgi(e,h),gmi(e,h),zgi(e),o&&hmi(e,r),dmi(e,o),hvi(e),Vgi(e,i),Imi(e,{align:s,nodesep:a,edgesep:l,ranksep:c}),fvi(e),uvi(e),Xgi(e,h),lvi(e),Hgi(e,i);const{width:f,height:p}=svi(e);return avi(e),cvi(e),Pgi(e),{width:f,height:p}},Ymi=(e,t)=>{e.getAllNodes().forEach(n=>{const i=e.getNode(n.id);if(t.hasNode(n.id)){const r=t.getNode(n.id);i.data.fixorder=r.data._order,delete r.data._order}else delete i.data.fixorder})},Qmi=(e,t)=>{e.getAllNodes().forEach(n=>{var i;const r=e.getNode(n.id);if(r){const o=t.getNode(n.id);r.data.x=o.data.x,r.data.y=o.data.y,r.data._order=o.data.order,r.data._rank=o.data.rank,!((i=t.getChildren(n.id))===null||i===void 0)&&i.length&&(r.data.width=o.data.width,r.data.height=o.data.height)}}),e.getAllEdges().forEach(n=>{const i=e.getEdge(n.id),r=t.getEdge(n.id);i.data.points=r?r.data.points:[],r&&r.data.hasOwnProperty("x")&&(i.data.x=r.data.x,i.data.y=r.data.y)})},Zmi=["width","height","layer","fixorder"],Xmi={width:0,height:0},Jmi=["minlen","weight","width","height","labeloffset"],evi={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},gTe=["labelpos"],tvi=e=>{const t=new kC({tree:[]});return e.getAllNodes().forEach(n=>{const i=fDt(e.getNode(n.id).data),r=Object.assign(Object.assign({},Xmi),i),o=hDt(r,Zmi);t.hasNode(n.id)||t.addNode({id:n.id,data:Object.assign({},o)});const s=e.hasTreeStructure("combo")?e.getParent(n.id,"combo"):e.getParent(n.id);Bf(s)||(t.hasNode(s.id)||t.addNode(Object.assign({},s)),t.setParent(n.id,s.id))}),e.getAllEdges().forEach(n=>{const i=fDt(e.getEdge(n.id).data),r={};gTe?.forEach(o=>{i[o]!==void 0&&(r[o]=i[o])}),t.addEdge({id:n.id,source:n.source,target:n.target,data:Object.assign({},evi,hDt(i,Jmi),r)})}),t},nvi=(e,t)=>{const{ranksep:n=0,rankdir:i}=t;return e.getAllNodes().forEach(r=>{isNaN(r.data.layer)||r.data.layer||(r.data.layer=0)}),e.getAllEdges().forEach(r=>{var o;r.data.minlen*=2,((o=r.data.labelpos)===null||o===void 0?void 0:o.toLowerCase())!=="c"&&(i==="TB"||i==="BT"?r.data.width+=r.data.labeloffset:r.data.height+=r.data.labeloffset)}),n/2},ivi=e=>{e.getAllEdges().forEach(t=>{if(t.data.width&&t.data.height){const n=e.getNode(t.source),i=e.getNode(t.target),r={e:t,rank:(i.data.rank-n.data.rank)/2+n.data.rank};ij(e,"edge-proxy",r,"_ep")}})},rvi=e=>{let t=0;return e.getAllNodes().forEach(n=>{var i,r;n.data.borderTop&&(n.data.minRank=(i=e.getNode(n.data.borderTop))===null||i===void 0?void 0:i.data.rank,n.data.maxRank=(r=e.getNode(n.data.borderBottom))===null||r===void 0?void 0:r.data.rank,t=Math.max(t,n.data.maxRank||-1/0))}),t},ovi=e=>{e.getAllNodes().forEach(t=>{t.data.dummy==="edge-proxy"&&(e.getEdge(t.data.e.id).data.labelRank=t.data.rank,e.removeNode(t.id))})},svi=(e,t)=>{let n,i=0,r,o=0;const{marginx:s=0,marginy:a=0}={},l=c=>{if(!c.data)return;const u=c.data.x,d=c.data.y,h=c.data.width,f=c.data.height;!isNaN(u)&&!isNaN(h)&&(n===void 0&&(n=u-h/2),n=Math.min(n,u-h/2),i=Math.max(i,u+h/2)),!isNaN(d)&&!isNaN(f)&&(r===void 0&&(r=d-f/2),r=Math.min(r,d-f/2),o=Math.max(o,d+f/2))};return e.getAllNodes().forEach(c=>{l(c)}),e.getAllEdges().forEach(c=>{c?.data.hasOwnProperty("x")&&l(c)}),n-=s,r-=a,e.getAllNodes().forEach(c=>{c.data.x-=n,c.data.y-=r}),e.getAllEdges().forEach(c=>{var u;(u=c.data.points)===null||u===void 0||u.forEach(d=>{d.x-=n,d.y-=r}),c.data.hasOwnProperty("x")&&(c.data.x-=n),c.data.hasOwnProperty("y")&&(c.data.y-=r)}),{width:i-n+s,height:o-r+a}},avi=e=>{e.getAllEdges().forEach(t=>{const n=e.getNode(t.source),i=e.getNode(t.target);let r,o;t.data.points?(r=t.data.points[0],o=t.data.points[t.data.points.length-1]):(t.data.points=[],r={x:i.data.x,y:i.data.y},o={x:n.data.x,y:n.data.y}),t.data.points.unshift(tDt(n.data,r)),t.data.points.push(tDt(i.data,o))})},lvi=e=>{e.getAllEdges().forEach(t=>{if(t.data.hasOwnProperty("x"))switch((t.data.labelpos==="l"||t.data.labelpos==="r")&&(t.data.width-=t.data.labeloffset),t.data.labelpos){case"l":t.data.x-=t.data.width/2+t.data.labeloffset;break;case"r":t.data.x+=t.data.width/2+t.data.labeloffset;break}})},cvi=e=>{e.getAllEdges().forEach(t=>{var n;t.data.reversed&&((n=t.data.points)===null||n===void 0||n.reverse())})},uvi=e=>{e.getAllNodes().forEach(t=>{var n,i,r;if(!((n=e.getChildren(t.id))===null||n===void 0)&&n.length){const o=e.getNode(t.id),s=e.getNode(o.data.borderTop),a=e.getNode(o.data.borderBottom),l=e.getNode(o.data.borderLeft[((i=o.data.borderLeft)===null||i===void 0?void 0:i.length)-1]),c=e.getNode(o.data.borderRight[((r=o.data.borderRight)===null||r===void 0?void 0:r.length)-1]);o.data.width=Math.abs(c?.data.x-l?.data.x)||10,o.data.height=Math.abs(a?.data.y-s?.data.y)||10,o.data.x=(l?.data.x||0)+o.data.width/2,o.data.y=(s?.data.y||0)+o.data.height/2}}),e.getAllNodes().forEach(t=>{t.data.dummy==="border"&&e.removeNode(t.id)})},dvi=e=>{e.getAllEdges().forEach(t=>{if(t.source===t.target){const n=e.getNode(t.source);n.data.selfEdges||(n.data.selfEdges=[]),n.data.selfEdges.push(t),e.removeEdge(t.id)}})},hvi=e=>{const t=OG(e);t?.forEach(n=>{let i=0;n?.forEach((r,o)=>{var s;const a=e.getNode(r);a.data.order=o+i,(s=a.data.selfEdges)===null||s===void 0||s.forEach(l=>{ij(e,"selfedge",{width:l.data.width,height:l.data.height,rank:a.data.rank,order:o+ ++i,e:l},"_se")}),delete a.data.selfEdges})})},fvi=e=>{e.getAllNodes().forEach(t=>{const n=e.getNode(t.id);if(n.data.dummy==="selfedge"){const i=e.getNode(n.data.e.source),r=i.data.x+i.data.width/2,o=i.data.y,s=n.data.x-r,a=i.data.height/2;e.hasEdge(n.data.e.id)?e.updateEdgeData(n.data.e.id,n.data.e.data):e.addEdge({id:n.data.e.id,source:n.data.e.source,target:n.data.e.target,data:n.data.e.data}),e.removeNode(t.id),n.data.e.data.points=[{x:r+2*s/3,y:o-a},{x:r+5*s/6,y:o-a},{y:o,x:r+s},{x:r+5*s/6,y:o+a},{x:r+2*s/3,y:o+a}],n.data.e.data.x=n.data.x,n.data.e.data.y=n.data.y}})},hDt=(e,t)=>{const n={};return t?.forEach(i=>{e[i]!==void 0&&(n[i]=+e[i])}),n},fDt=(e={})=>{const t={};return Object.keys(e).forEach(n=>{t[n.toLowerCase()]=e[n]}),t},mTe={nodeSize:10,nodeSpacing:0,rankdir:"TB",nodesep:50,ranksep:50,edgeLabelSpace:!0,ranker:"tight-tree",controlPoints:!1,radial:!1,focusNode:null},Dhe=class extends EE{constructor(){super(...arguments),this.id="antv-dagre"}getDefaultOptions(){return mTe}layout(e){return $f(this,void 0,void 0,function*(){const{nodeSize:t,nodeSpacing:n,align:i,rankdir:r="TB",ranksep:o,nodesep:s,edgeLabelSpace:a,ranker:l="tight-tree",nodeOrder:c,begin:u,controlPoints:d,radial:h,sortByCombo:f,preset:p,ranksepFunc:g,nodesepFunc:m}=e,v=Oy(g,o??50,"node"),y=Oy(m,s??50,"node");let b=y,w=v;(r==="LR"||r==="RL")&&(b=v,w=y);const E=new kC({tree:[]}),A=this.model.nodes(),D=this.model.edges(),T=IT(t,n,mTe.nodeSize,mTe.nodeSpacing);A.forEach(N=>{var j;const W=N._original,J=T(W),ee=w(W),Q=b(W),H=J[0]+2*Q,q=J[1]+2*ee,le=(j=N.data)===null||j===void 0?void 0:j.layer;vh(le)?E.addNode({id:N.id,data:{width:H,height:q,layer:le,originalWidth:J[0],originalHeight:J[1]}}):E.addNode({id:N.id,data:{width:H,height:q,originalWidth:J[0],originalHeight:J[1]}})}),D.forEach(N=>{E.addEdge({id:N.id,source:N.source,target:N.target,data:{}})}),f&&(E.attachTreeStructure("combo"),A.forEach(N=>{const j=N?.parentId;j!==void 0&&E.hasNode(j)&&E.setParent(N.id,j,"combo")}));let M=null;p?.length&&(M=new kC,p.forEach(N=>{M.addNode({id:N.id,data:N.data})})),Gmi(E,{prevGraph:M,edgeLabelSpace:a,keepNodeOrder:!!c,nodeOrder:c||[],acyclicer:"greedy",ranker:l,rankdir:r,nodesep:s,align:i});const P=[0,0];if(u){let N=1/0,j=1/0;E.getAllNodes().forEach(W=>{N>W.data.x&&(N=W.data.x),j>W.data.y&&(j=W.data.y)}),E.getAllEdges().forEach(W=>{var J;(J=W.data.points)===null||J===void 0||J.forEach(ee=>{N>ee.x&&(N=ee.x),j>ee.y&&(j=ee.y)})}),P[0]=u[0]-N,P[1]=u[1]-j}const F=r==="LR"||r==="RL";if(!h){const N=new Set,W=r==="BT"||r==="RL"?(H,q)=>q-H:(H,q)=>H-q;E.getAllNodes().forEach(H=>{H.data.x=H.data.x+P[0],H.data.y=H.data.y+P[1],N.add(F?H.data.x:H.data.y)});const J=Array.from(N).sort(W),ee=F?(H,q)=>H.x!==q.x:(H,q)=>H.y!==q.y,Q=F?(H,q,le)=>{const Y=Math.max(q.y,le.y),G=Math.min(q.y,le.y);return H.filter(pe=>pe.y<=Y&&pe.y>=G)}:(H,q,le)=>{const Y=Math.max(q.x,le.x),G=Math.min(q.x,le.x);return H.filter(pe=>pe.x<=Y&&pe.x>=G)};E.getAllEdges().forEach((H,q)=>{var le;a&&d&&H.data.type!=="loop"&&(H.data.controlPoints=pvi((le=H.data.points)===null||le===void 0?void 0:le.map(({x:Y,y:G})=>({x:Y+P[0],y:G+P[1]})),E.getNode(H.source),E.getNode(H.target),J,F,ee,Q))})}this.model.forEachNode(N=>{const j=E.getNode(N.id);if(j){const{x:W,y:J,width:ee,height:Q,originalWidth:H,originalHeight:q}=j.data,le=f?E.getChildren(N.id,"combo"):E.getChildren(N.id);if(le.length>0){let G=1/0,pe=-1/0,U=1/0,K=-1/0;le.forEach(oe=>{const me=oe.id,Ce=E.getNode(me);if(Ce?.data){const Se=Ce.data.x,De=Ce.data.y,Me=Ce.data.originalWidth||Ce.data.width||0,qe=Ce.data.originalHeight||Ce.data.height||0;G=Math.min(G,Se-Me/2),pe=Math.max(pe,Se+Me/2),U=Math.min(U,De-qe/2),K=Math.max(K,De+qe/2)}});const ie=20,ce=(pe-G||0)+ie*2,de=(K-U||0)+ie*2;N.x=(G+pe)/2,N.y=(U+K)/2,N.size=[ce,de]}else N.x=W,N.y=J,N.size=[H,q]}}),this.model.forEachEdge(N=>{const j=E.getEdge(N.id);j&&j.data.controlPoints&&(N.points=j.data.controlPoints.map(sgn))})})}},pvi=(e,t,n,i,r,o,s)=>{let a=e?.slice(1,e.length-1)||[];if(t&&n){let{x:l,y:c}=t.data,{x:u,y:d}=n.data;if(r&&(l=t.data.y,c=t.data.x,u=n.data.y,d=n.data.x),d!==c&&l!==u){const h=i.indexOf(c),f=i[h+1];if(f){const m=a[0],v=r?{x:(c+f)/2,y:m?.y||u}:{x:m?.x||u,y:(c+f)/2};(!m||o(m,v))&&a.unshift(v)}const p=i.indexOf(d),g=Math.abs(p-h);if(g===1)a=s(a,t.data,n.data),a.length||a.push(r?{x:(c+d)/2,y:l}:{x:l,y:(c+d)/2});else if(g>1){const m=i[p-1];if(m){const v=a[a.length-1],y=r?{x:(d+m)/2,y:v?.y||u}:{x:v?.x||l,y:(d+m)/2};(!v||o(v,y))&&a.push(y)}}}}return a};function wF(e,t,n=2){if(e.nodeCount()===1){const r=e.firstNode();r.x=t[0],r.y=t[1],n===3&&(r.z=t[2]||0)}}function vYe(e,t){const n=e.nodes();return n.sort(t),e.setNodeOrder(n),e}function yYe(e,t="desc"){return vYe(e,(n,i)=>{const r=e.degree(n.id),o=e.degree(i.id);return t==="asc"?r-o:o-r})}function gvi(e){return vYe(e,(t,n)=>{const i=t.id,r=n.id;return typeof i=="number"&&typeof r=="number"?i-r:String(i).localeCompare(String(r))})}function Ign(e,t){return vYe(e,(n,i)=>{const r=e.originalNode(n.id),o=e.originalNode(i.id);return t(r,o)})}function pDt(e,t=!1){const n=e.nodeCount();if(n===0)return e;const i=e.nodes(),r=[i[0]],o={};o[i[0].id]=!0;let s=0,a=0;return e.forEachNode(l=>{if(a!==0){const c=e.degree(l.id,"both"),u=a<n-1?e.degree(i[a+1].id,"both"):0,d=r[s].id,h=e.neighbors(d,"both").includes(l.id);if((a===n-1||c!==u||h)&&!o[l.id])r.push(l),o[l.id]=!0,s++;else{const f=t?e.successors(d):e.neighbors(d);let p=!1;for(let m=0;m<f.length;m++){const v=f[m],y=e.node(v);if(y&&e.degree(v)===e.degree(l.id)&&!o[v]){r.push(y),o[v]=!0,p=!0;break}}let g=0;for(;!p&&(o[i[g].id]||(r.push(i[g]),o[i[g].id]=!0,p=!0),g++,g!==n););}}a++}),e.setNodeOrder(r),e}var db=e=>{const{width:t,height:n,center:i}=e,r=t??(typeof window<"u"?window.innerWidth:0),o=n??(typeof window<"u"?window.innerHeight:0),s=i??[r/2,o/2];return{width:r,height:o,center:s}},vTe={radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1,nodeSize:10,nodeSpacing:0},Lgn=class extends EE{constructor(){super(...arguments),this.id="circular"}getDefaultOptions(){return vTe}layout(){return $f(this,void 0,void 0,function*(){const{width:e,height:t,center:n}=db(this.options),i=this.model.nodeCount();if(!i||i===1){wF(this.model,n);return}const{ordering:r,nodeSpacing:o,nodeSize:s,endAngle:a=2*Math.PI,startAngle:l=0,divisions:c,angleRatio:u,clockwise:d}=this.options;r==="topology"?pDt(this.model,!1):r==="topology-directed"?pDt(this.model,!0):r==="degree"&&yYe(this.model,"asc");let{radius:h,startRadius:f,endRadius:p}=this.options;const g=this.model.nodes(),m=IT(s,o,vTe.nodeSize,vTe.nodeSpacing);if(o){let E=0;for(const A of g)E+=Math.max(...m(A._original));h=E/(2*Math.PI)}else!h&&!f&&!p?h=Math.min(t,e)/2:!f&&p?f=p:f&&!p&&(p=f);const y=(a-l)/i*u,b=Math.ceil(i/c),w=2*Math.PI/c;for(let E=0;E<i;){const A=g[E];let D=h;!D&&f!==null&&p!==null&&(D=f+E*(p-f)/(i-1)),D||(D=10+E*100/(i-1));const T=Math.floor(E/b),P=E%b*y+w*T;let F=l+P;d||(F=a-P),A.x=n[0]+Math.cos(F)*D,A.y=n[1]+Math.sin(F)*D,E++}})}},die={nodeSize:30,nodeSpacing:10,preventOverlap:!1,sweep:void 0,equidistant:!1,startAngle:3/2*Math.PI,clockwise:!0,maxLevelDiff:void 0,sortBy:"degree"},bYe=class extends EE{constructor(){super(...arguments),this.id="concentric"}getDefaultOptions(){return die}layout(){return $f(this,void 0,void 0,function*(){const{width:e,height:t,center:n}=db(this.options),i=this.model.nodeCount();if(!i||i===1){wF(this.model,n);return}const{sortBy:r,maxLevelDiff:o,sweep:s,clockwise:a,equidistant:l,preventOverlap:c,startAngle:u=die.startAngle,nodeSize:d,nodeSpacing:h}=this.options,f=!r||r==="degree"?"degree":jf(r,["node"]);if(f==="degree")yYe(this.model);else{const A=(D,T)=>{const M=f(D),P=f(T);return M===P?0:M>P?-1:1};Ign(this.model,A)}const p=this.model.nodes(),g=new Map;for(const A of p){const D=f==="degree"?this.model.degree(A.id):f(A._original);g.set(A.id,D)}const m=this.model.firstNode(),v=o||g.get(m.id)/4,y=IT(d,h,die.nodeSize,die.nodeSpacing),b=new Map;for(const A of p)b.set(A.id,Math.max(...y(A._original)));const w=[{nodes:[]}];let E=w[0];for(let A=0;A<i;A++){const D=p[A];if(E.nodes.length>0){const T=E.nodes[0],M=Math.abs(g.get(T.id)-g.get(D.id));v&&M>=v&&(E={nodes:[]},w.push(E))}E.nodes.push(D)}for(const A of w){const D=A.nodes.map(T=>b.get(T.id));A.nodeSizes=D,A.maxNodeSize=Math.max(...D)}if(w.forEach(A=>{const D=s===void 0?2*Math.PI-2*Math.PI/A.nodes.length:s;A.dTheta=D/Math.max(1,A.nodes.length-1)}),c){let A=0;for(let D=0;D<w.length;D++){const T=w[D];if(T.nodes.length>1){const M=T.nodeSizes||[];let P=0;for(let J=0;J<M.length-1;J++)P=Math.max(P,(M[J]+M[J+1])/2);const F=Math.cos(T.dTheta)-Math.cos(0),N=Math.sin(T.dTheta)-Math.sin(0),j=Math.sqrt(F*F+N*N),W=j>0?P/j:0;A=Math.max(W,A)}if(T.r=A,D<w.length-1){const M=w[D+1],P=((T.maxNodeSize||0)+(M.maxNodeSize||0))/2;A+=Math.max(0,P)}}}else{let A=0;w[0].r=0;for(let M=0;M<w.length-1;M++){const P=w[M],F=w[M+1],N=((P.maxNodeSize||0)+(F.maxNodeSize||0))/2;A+=Math.max(0,N),F.r=A}const D=Math.min(e,t)/2;let T=1;for(const M of w){const P=M.r||0;if(P<=0)continue;const F=D-(M.maxNodeSize||0);if(F<=0){T=0;break}T=Math.min(T,F/P)}if(T=Math.max(0,Math.min(1,T)),T!==1)for(const M of w)M.r=(M.r||0)*T}if(l){let A=0,D=0;for(let T=0;T<w.length;T++){const P=(w[T].r||0)-D;A=Math.max(A,P)}D=0,w.forEach((T,M)=>{M===0&&(D=T.r||0),T.r=D,D+=A})}w.forEach(A=>{const D=A.dTheta||0,T=A.r||0;A.nodes.forEach((M,P)=>{const F=u+(a?1:-1)*D*P;M.x=n[0]+T*Math.cos(F),M.y=n[1]+T*Math.sin(F)})})})}},mvi=(function(e){var t=typeof e;return e!==null&&t==="object"||t==="function"});function xM(e,...t){return t.forEach(n=>{n&&Object.keys(n).forEach(i=>{const r=n[i];r!==void 0&&(e[i]=r)})}),e}var vvi=1664525,yvi=1013904223,gDt=4294967296;function bvi(){let e=1;return()=>(e=(vvi*e+yvi)%gDt)/gDt}var T9=0,UW=0,R3=0,Ngn=1e3,The,$W,khe=0,_2=0,Ive=0,RG=typeof performance=="object"&&performance.now?performance:Date,Pgn=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Mgn(){return _2||(Pgn(_vi),_2=RG.now()+Ive)}function _vi(){_2=0}function R9e(){this._call=this._time=this._next=null}R9e.prototype=_Ye.prototype={constructor:R9e,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Mgn():+n)+(t==null?0:+t),!this._next&&$W!==this&&($W?$W._next=this:The=this,$W=this),this._call=e,this._time=n,F9e()},stop:function(){this._call&&(this._call=null,this._time=1/0,F9e())}};function _Ye(e,t,n){var i=new R9e;return i.restart(e,t,n),i}function wvi(){Mgn(),++T9;for(var e=The,t;e;)(t=_2-e._time)>=0&&e._call.call(void 0,t),e=e._next;--T9}function mDt(){_2=(khe=RG.now())+Ive,T9=UW=0;try{wvi()}finally{T9=0,Svi(),_2=0}}function Cvi(){var e=RG.now(),t=e-khe;t>Ngn&&(Ive-=t,khe=e)}function Svi(){for(var e,t=The,n,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:The=n);$W=e,F9e(i)}function F9e(e){if(!T9){UW&&(UW=clearTimeout(UW));var t=e-_2;t>24?(e<1/0&&(UW=setTimeout(mDt,e-RG.now()-Ive)),R3&&(R3=clearInterval(R3))):(R3||(khe=RG.now(),R3=setInterval(Cvi,Ngn)),T9=1,Pgn(mDt))}}var xvi={value:()=>{}};function wYe(){for(var e=0,t=arguments.length,n={},i;e<t;++e){if(!(i=arguments[e]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new ace(n)}function ace(e){this._=e}function Evi(e,t){return e.trim().split(/^|\s+/).map(function(n){var i="",r=n.indexOf(".");if(r>=0&&(i=n.slice(r+1),n=n.slice(0,r)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}ace.prototype=wYe.prototype={constructor:ace,on:function(e,t){var n=this._,i=Evi(e+"",n),r,o=-1,s=i.length;if(arguments.length<2){for(;++o<s;)if((r=(e=i[o]).type)&&(r=Avi(n[r],e.name)))return r;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<s;)if(r=(e=i[o]).type)n[r]=vDt(n[r],e.name,t);else if(t==null)for(r in n)n[r]=vDt(n[r],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new ace(e)},call:function(e,t){if((r=arguments.length-2)>0)for(var n=new Array(r),i=0,r,o;i<r;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],i=0,r=o.length;i<r;++i)o[i].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],r=0,o=i.length;r<o;++r)i[r].value.apply(t,n)}};function Avi(e,t){for(var n=0,i=e.length,r;n<i;++n)if((r=e[n]).name===t)return r.value}function vDt(e,t,n){for(var i=0,r=e.length;i<r;++i)if(e[i].name===t){e[i]=xvi,e=e.slice(0,i).concat(e.slice(i+1));break}return n!=null&&e.push({name:t,value:n}),e}function Dvi(e){return e.x}function Tvi(e){return e.y}var kvi=10,Ivi=Math.PI*(3-Math.sqrt(5));function Ogn(e){var t,n=1,i=.001,r=1-Math.pow(i,1/300),o=0,s=.6,a=new Map,l=_Ye(d),c=wYe("tick","end"),u=bvi();e==null&&(e=[]);function d(){h(),c.call("tick",t),n<i&&(l.stop(),c.call("end",t))}function h(g){var m,v=e.length,y;g===void 0&&(g=1);for(var b=0;b<g;++b)for(n+=(o-n)*r,a.forEach(function(w){w(n)}),m=0;m<v;++m)y=e[m],y.fx==null?y.x+=y.vx*=s:(y.x=y.fx,y.vx=0),y.fy==null?y.y+=y.vy*=s:(y.y=y.fy,y.vy=0);return t}function f(){for(var g=0,m=e.length,v;g<m;++g){if(v=e[g],v.index=g,v.fx!=null&&(v.x=v.fx),v.fy!=null&&(v.y=v.fy),isNaN(v.x)||isNaN(v.y)){var y=kvi*Math.sqrt(.5+g),b=g*Ivi;v.x=y*Math.cos(b),v.y=y*Math.sin(b)}(isNaN(v.vx)||isNaN(v.vy))&&(v.vx=v.vy=0)}}function p(g){return g.initialize&&g.initialize(e,u),g}return f(),t={tick:h,restart:function(){return l.restart(d),t},stop:function(){return l.stop(),t},nodes:function(g){return arguments.length?(e=g,f(),a.forEach(p),t):e},alpha:function(g){return arguments.length?(n=+g,t):n},alphaMin:function(g){return arguments.length?(i=+g,t):i},alphaDecay:function(g){return arguments.length?(r=+g,t):+r},alphaTarget:function(g){return arguments.length?(o=+g,t):o},velocityDecay:function(g){return arguments.length?(s=1-g,t):1-s},randomSource:function(g){return arguments.length?(u=g,a.forEach(p),t):u},force:function(g,m){return arguments.length>1?(m==null?a.delete(g):a.set(g,p(m)),t):a.get(g)},find:function(g,m,v){var y=0,b=e.length,w,E,A,D,T;for(v==null?v=1/0:v*=v,y=0;y<b;++y)D=e[y],w=g-D.x,E=m-D.y,A=w*w+E*E,A<v&&(T=D,v=A);return T},on:function(g,m){return arguments.length>1?(c.on(g,m),t):c.on(g)}}}function Hf(e){return function(){return e}}function Rgn(e){var t=Hf(.1),n,i,r;typeof e!="function"&&(e=Hf(e==null?0:+e));function o(a){for(var l=0,c=n.length,u;l<c;++l)u=n[l],u.vx+=(r[l]-u.x)*i[l]*a}function s(){if(n){var a,l=n.length;for(i=new Array(l),r=new Array(l),a=0;a<l;++a)i[a]=isNaN(r[a]=+e(n[a],a,n))?0:+t(n[a],a,n)}}return o.initialize=function(a){n=a,s()},o.strength=function(a){return arguments.length?(t=typeof a=="function"?a:Hf(+a),s(),o):t},o.x=function(a){return arguments.length?(e=typeof a=="function"?a:Hf(+a),s(),o):e},o}function Fgn(e){var t=Hf(.1),n,i,r;typeof e!="function"&&(e=Hf(e==null?0:+e));function o(a){for(var l=0,c=n.length,u;l<c;++l)u=n[l],u.vy+=(r[l]-u.y)*i[l]*a}function s(){if(n){var a,l=n.length;for(i=new Array(l),r=new Array(l),a=0;a<l;++a)i[a]=isNaN(r[a]=+e(n[a],a,n))?0:+t(n[a],a,n)}}return o.initialize=function(a){n=a,s()},o.strength=function(a){return arguments.length?(t=typeof a=="function"?a:Hf(+a),s(),o):t},o.y=function(a){return arguments.length?(e=typeof a=="function"?a:Hf(+a),s(),o):e},o}function UI(e){return(e()-.5)*1e-6}function Lvi(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return Bgn(this.cover(t,n),t,n,e)}function Bgn(e,t,n,i){if(isNaN(t)||isNaN(n))return e;var r,o=e._root,s={data:i},a=e._x0,l=e._y0,c=e._x1,u=e._y1,d,h,f,p,g,m,v,y;if(!o)return e._root=s,e;for(;o.length;)if((g=t>=(d=(a+c)/2))?a=d:c=d,(m=n>=(h=(l+u)/2))?l=h:u=h,r=o,!(o=o[v=m<<1|g]))return r[v]=s,e;if(f=+e._x.call(null,o.data),p=+e._y.call(null,o.data),t===f&&n===p)return s.next=o,r?r[v]=s:e._root=s,e;do r=r?r[v]=new Array(4):e._root=new Array(4),(g=t>=(d=(a+c)/2))?a=d:c=d,(m=n>=(h=(l+u)/2))?l=h:u=h;while((v=m<<1|g)===(y=(p>=h)<<1|f>=d));return r[y]=o,r[v]=s,e}function Nvi(e){var t,n,i=e.length,r,o,s=new Array(i),a=new Array(i),l=1/0,c=1/0,u=-1/0,d=-1/0;for(n=0;n<i;++n)isNaN(r=+this._x.call(null,t=e[n]))||isNaN(o=+this._y.call(null,t))||(s[n]=r,a[n]=o,r<l&&(l=r),r>u&&(u=r),o<c&&(c=o),o>d&&(d=o));if(l>u||c>d)return this;for(this.cover(l,c).cover(u,d),n=0;n<i;++n)Bgn(this,s[n],a[n],e[n]);return this}function Pvi(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,i=this._y0,r=this._x1,o=this._y1;if(isNaN(n))r=(n=Math.floor(e))+1,o=(i=Math.floor(t))+1;else{for(var s=r-n||1,a=this._root,l,c;n>e||e>=r||i>t||t>=o;)switch(c=(t<i)<<1|e<n,l=new Array(4),l[c]=a,a=l,s*=2,c){case 0:r=n+s,o=i+s;break;case 1:n=r-s,o=i+s;break;case 2:r=n+s,i=o-s;break;case 3:n=r-s,i=o-s;break}this._root&&this._root.length&&(this._root=a)}return this._x0=n,this._y0=i,this._x1=r,this._y1=o,this}function Mvi(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Ovi(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function pv(e,t,n,i,r){this.node=e,this.x0=t,this.y0=n,this.x1=i,this.y1=r}function Rvi(e,t,n){var i,r=this._x0,o=this._y0,s,a,l,c,u=this._x1,d=this._y1,h=[],f=this._root,p,g;for(f&&h.push(new pv(f,r,o,u,d)),n==null?n=1/0:(r=e-n,o=t-n,u=e+n,d=t+n,n*=n);p=h.pop();)if(!(!(f=p.node)||(s=p.x0)>u||(a=p.y0)>d||(l=p.x1)<r||(c=p.y1)<o))if(f.length){var m=(s+l)/2,v=(a+c)/2;h.push(new pv(f[3],m,v,l,c),new pv(f[2],s,v,m,c),new pv(f[1],m,a,l,v),new pv(f[0],s,a,m,v)),(g=(t>=v)<<1|e>=m)&&(p=h[h.length-1],h[h.length-1]=h[h.length-1-g],h[h.length-1-g]=p)}else{var y=e-+this._x.call(null,f.data),b=t-+this._y.call(null,f.data),w=y*y+b*b;if(w<n){var E=Math.sqrt(n=w);r=e-E,o=t-E,u=e+E,d=t+E,i=f.data}}return i}function Fvi(e){if(isNaN(u=+this._x.call(null,e))||isNaN(d=+this._y.call(null,e)))return this;var t,n=this._root,i,r,o,s=this._x0,a=this._y0,l=this._x1,c=this._y1,u,d,h,f,p,g,m,v;if(!n)return this;if(n.length)for(;;){if((p=u>=(h=(s+l)/2))?s=h:l=h,(g=d>=(f=(a+c)/2))?a=f:c=f,t=n,!(n=n[m=g<<1|p]))return this;if(!n.length)break;(t[m+1&3]||t[m+2&3]||t[m+3&3])&&(i=t,v=m)}for(;n.data!==e;)if(r=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,r?(o?r.next=o:delete r.next,this):t?(o?t[m]=o:delete t[m],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(i?i[v]=n:this._root=n),this):(this._root=o,this)}function Bvi(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function jvi(){return this._root}function zvi(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Vvi(e){var t=[],n,i=this._root,r,o,s,a,l;for(i&&t.push(new pv(i,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(i=n.node,o=n.x0,s=n.y0,a=n.x1,l=n.y1)&&i.length){var c=(o+a)/2,u=(s+l)/2;(r=i[3])&&t.push(new pv(r,c,u,a,l)),(r=i[2])&&t.push(new pv(r,o,u,c,l)),(r=i[1])&&t.push(new pv(r,c,s,a,u)),(r=i[0])&&t.push(new pv(r,o,s,c,u))}return this}function Hvi(e){var t=[],n=[],i;for(this._root&&t.push(new pv(this._root,this._x0,this._y0,this._x1,this._y1));i=t.pop();){var r=i.node;if(r.length){var o,s=i.x0,a=i.y0,l=i.x1,c=i.y1,u=(s+l)/2,d=(a+c)/2;(o=r[0])&&t.push(new pv(o,s,a,u,d)),(o=r[1])&&t.push(new pv(o,u,a,l,d)),(o=r[2])&&t.push(new pv(o,s,d,u,c)),(o=r[3])&&t.push(new pv(o,u,d,l,c))}n.push(i)}for(;i=n.pop();)e(i.node,i.x0,i.y0,i.x1,i.y1);return this}function Wvi(e){return e[0]}function Uvi(e){return arguments.length?(this._x=e,this):this._x}function $vi(e){return e[1]}function qvi(e){return arguments.length?(this._y=e,this):this._y}function CF(e,t,n){var i=new CYe(t??Wvi,n??$vi,NaN,NaN,NaN,NaN);return e==null?i:i.addAll(e)}function CYe(e,t,n,i,r,o){this._x=e,this._y=t,this._x0=n,this._y0=i,this._x1=r,this._y1=o,this._root=void 0}function yDt(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Wv=CF.prototype=CYe.prototype;Wv.copy=function(){var e=new CYe(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,i;if(!t)return e;if(!t.length)return e._root=yDt(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var r=0;r<4;++r)(i=t.source[r])&&(i.length?n.push({source:i,target:t.target[r]=new Array(4)}):t.target[r]=yDt(i));return e};Wv.add=Lvi;Wv.addAll=Nvi;Wv.cover=Pvi;Wv.data=Mvi;Wv.extent=Ovi;Wv.find=Rvi;Wv.remove=Fvi;Wv.removeAll=Bvi;Wv.root=jvi;Wv.size=zvi;Wv.visit=Vvi;Wv.visitAfter=Hvi;Wv.x=Uvi;Wv.y=qvi;function Gvi(e){return e.x+e.vx}function Kvi(e){return e.y+e.vy}function jgn(e){var t,n,i,r=1,o=1;typeof e!="function"&&(e=Hf(e==null?1:+e));function s(){for(var c,u=t.length,d,h,f,p,g,m,v=0;v<o;++v)for(d=CF(t,Gvi,Kvi).visitAfter(a),c=0;c<u;++c)h=t[c],g=n[h.index],m=g*g,f=h.x+h.vx,p=h.y+h.vy,d.visit(y);function y(b,w,E,A,D){var T=b.data,M=b.r,P=g+M;if(T){if(T.index>h.index){var F=f-T.x-T.vx,N=p-T.y-T.vy,j=F*F+N*N;j<P*P&&(F===0&&(F=UI(i),j+=F*F),N===0&&(N=UI(i),j+=N*N),j=(P-(j=Math.sqrt(j)))/j*r,h.vx+=(F*=j)*(P=(M*=M)/(m+M)),h.vy+=(N*=j)*P,T.vx-=F*(P=1-P),T.vy-=N*P)}return}return w>f+P||A<f-P||E>p+P||D<p-P}}function a(c){if(c.data)return c.r=n[c.data.index];for(var u=c.r=0;u<4;++u)c[u]&&c[u].r>c.r&&(c.r=c[u].r)}function l(){if(t){var c,u=t.length,d;for(n=new Array(u),c=0;c<u;++c)d=t[c],n[d.index]=+e(d,c,t)}}return s.initialize=function(c,u){t=c,i=u,l()},s.iterations=function(c){return arguments.length?(o=+c,s):o},s.strength=function(c){return arguments.length?(r=+c,s):r},s.radius=function(c){return arguments.length?(e=typeof c=="function"?c:Hf(+c),l(),s):e},s}function zgn(){var e,t,n,i,r=Hf(-30),o,s=1,a=1/0,l=.81;function c(f){var p,g=e.length,m=CF(e,Dvi,Tvi).visitAfter(d);for(i=f,p=0;p<g;++p)t=e[p],m.visit(h)}function u(){if(e){var f,p=e.length,g;for(o=new Array(p),f=0;f<p;++f)g=e[f],o[g.index]=+r(g,f,e)}}function d(f){var p=0,g,m,v=0,y,b,w;if(f.length){for(y=b=w=0;w<4;++w)(g=f[w])&&(m=Math.abs(g.value))&&(p+=g.value,v+=m,y+=m*g.x,b+=m*g.y);f.x=y/v,f.y=b/v}else{g=f,g.x=g.data.x,g.y=g.data.y;do p+=o[g.data.index];while(g=g.next)}f.value=p}function h(f,p,g,m){if(!f.value)return!0;var v=f.x-t.x,y=f.y-t.y,b=m-p,w=v*v+y*y;if(b*b/l<w)return w<a&&(v===0&&(v=UI(n),w+=v*v),y===0&&(y=UI(n),w+=y*y),w<s&&(w=Math.sqrt(s*w)),t.vx+=v*f.value*i/w,t.vy+=y*f.value*i/w),!0;if(f.length||w>=a)return;(f.data!==t||f.next)&&(v===0&&(v=UI(n),w+=v*v),y===0&&(y=UI(n),w+=y*y),w<s&&(w=Math.sqrt(s*w)));do f.data!==t&&(b=o[f.data.index]*i/w,t.vx+=v*b,t.vy+=y*b);while(f=f.next)}return c.initialize=function(f,p){e=f,n=p,u()},c.strength=function(f){return arguments.length?(r=typeof f=="function"?f:Hf(+f),u(),c):r},c.distanceMin=function(f){return arguments.length?(s=f*f,c):Math.sqrt(s)},c.distanceMax=function(f){return arguments.length?(a=f*f,c):Math.sqrt(a)},c.theta=function(f){return arguments.length?(l=f*f,c):Math.sqrt(l)},c}function Yvi(e){return e.index}function bDt(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function Vgn(e){var t=Yvi,n=d,i,r=Hf(30),o,s,a,l,c,u=1;e==null&&(e=[]);function d(m){return 1/Math.min(a[m.source.index],a[m.target.index])}function h(m){for(var v=0,y=e.length;v<u;++v)for(var b=0,w,E,A,D,T,M,P;b<y;++b)w=e[b],E=w.source,A=w.target,D=A.x+A.vx-E.x-E.vx||UI(c),T=A.y+A.vy-E.y-E.vy||UI(c),M=Math.sqrt(D*D+T*T),M=(M-o[b])/M*m*i[b],D*=M,T*=M,A.vx-=D*(P=l[b]),A.vy-=T*P,E.vx+=D*(P=1-P),E.vy+=T*P}function f(){if(s){var m,v=s.length,y=e.length,b=new Map(s.map((E,A)=>[t(E,A,s),E])),w;for(m=0,a=new Array(v);m<y;++m)w=e[m],w.index=m,typeof w.source!="object"&&(w.source=bDt(b,w.source)),typeof w.target!="object"&&(w.target=bDt(b,w.target)),a[w.source.index]=(a[w.source.index]||0)+1,a[w.target.index]=(a[w.target.index]||0)+1;for(m=0,l=new Array(y);m<y;++m)w=e[m],l[m]=a[w.source.index]/(a[w.source.index]+a[w.target.index]);i=new Array(y),p(),o=new Array(y),g()}}function p(){if(s)for(var m=0,v=e.length;m<v;++m)i[m]=+n(e[m],m,e)}function g(){if(s)for(var m=0,v=e.length;m<v;++m)o[m]=+r(e[m],m,e)}return h.initialize=function(m,v){s=m,c=v,f()},h.links=function(m){return arguments.length?(e=m,f(),h):e},h.id=function(m){return arguments.length?(t=m,h):t},h.iterations=function(m){return arguments.length?(u=+m,h):u},h.strength=function(m){return arguments.length?(n=typeof m=="function"?m:Hf(+m),p(),h):n},h.distance=function(m){return arguments.length?(r=typeof m=="function"?m:Hf(+m),g(),h):r},h}var hie=(e,t)=>e[t];function Qvi(){function e(U){return()=>U}let t=U=>U.cluster,n=e(1),i=e(-1),r=e(100),o=e(.1),s=[0,0],a=[],l={},c=[],u=100,d=100,h={none:{x:0,y:0}},f=[],p,g="force",m=!0,v=.1;function y(U){if(!m)return y;p.tick(),T();for(let K=0,ie=a.length,ce,de=U*v;K<ie;++K)ce=a[K],ce.vx||(ce.vx=0),ce.vy||(ce.vy=0),ce.vx+=(h[t(ce._original)].x-ce.x)*de,ce.vy+=(h[t(ce._original)].y-ce.y)*de}function b(){a&&w()}function w(){if(!a||!a.length)return;const U=a[0];if(t(U._original)===void 0)throw Error("Couldnt find the grouping attribute for the nodes. Make sure to set it up with forceInABox.groupBy('clusterAttr') before calling .links()");const K=E();p=Ogn(K.nodes).force("x",Rgn(u).strength(.1)).force("y",Fgn(d).strength(.1)).force("collide",jgn(ie=>ie.r).iterations(4)).force("charge",zgn().strength(i)).force("links",Vgn(K.nodes.length?K.links:[]).distance(r).strength(o)),f=p.nodes(),T()}function E(){const U=[],K=[],ie={};let ce=[],de={},oe=[];return de=A(a),oe=D(c),ce=Object.keys(de),ce.forEach((me,Ce)=>{const Se=de[me];U.push({id:me,size:Se.count,r:Math.sqrt(Se.sumforceNodeSize/Math.PI)}),ie[me]=Ce}),oe.forEach(me=>{const Ce=hie(me,"source"),Se=hie(me,"target"),De=ie[Ce],Me=ie[Se];De!==void 0&&Me!==void 0&&K.push({source:De,target:Me,count:me.count})}),{nodes:U,links:K}}function A(U){const K={};return U.forEach(ie=>{const ce=t(ie._original);K[ce]||(K[ce]={count:0,sumforceNodeSize:0})}),U.forEach(ie=>{const ce=t(ie._original),de=n(ie._original),oe=K[ce];oe.count=oe.count+1,oe.sumforceNodeSize=oe.sumforceNodeSize+Math.PI*(de*de)*1.3,K[ce]=oe}),K}function D(U){const K={},ie=[];return U.forEach(de=>{const oe=M(de);let me=0;K[oe]!==void 0&&(me=K[oe]),me+=1,K[oe]=me}),Object.entries(K).forEach(([de,oe])=>{const me=de.split("~")[0],Ce=de.split("~")[1];me!==void 0&&Ce!==void 0&&ie.push({source:me,target:Ce,count:oe})}),ie}function T(){return h={none:{x:0,y:0}},f.forEach(U=>{h[U.id]={x:U.x-s[0],y:U.y-s[1]}}),h}function M(U){const K=hie(U,"source"),ie=hie(U,"target"),ce=t(l[K]._original),de=t(l[ie]._original);return ce<=de?`${ce}~${de}`:`${de}~${ce}`}function P(U){l={},U.forEach(K=>{l[K.id]=K})}function F(U){return arguments.length?(g=U,b(),y):g}function N(U){return arguments.length?typeof U=="string"?(t=K=>K[U],y):(t=U,y):t}function j(U){return arguments.length?(m=U,y):m}function W(U){return arguments.length?(v=U,y):v}function J(U){return arguments.length?(u=U,y):u}function ee(U){return arguments.length?(d=U,y):d}function Q(U){return arguments.length?(P(U||[]),a=U||[],y):a}function H(U){return arguments.length?(c=U||[],b(),y):c}function q(U){return arguments.length?(typeof U=="function"?n=U:n=e(+U),b(),y):n}function le(U){return arguments.length?(typeof U=="function"?i=U:i=e(+U),b(),y):i}function Y(U){return arguments.length?(typeof U=="function"?r=U:r=e(+U),b(),y):r}function G(U){return arguments.length?(typeof U=="function"?o=U:o=e(+U),b(),y):o}function pe(U){return arguments.length?(s=U,y):s}return y.initialize=U=>{a=U,b()},y.template=F,y.groupBy=N,y.enableGrouping=j,y.strength=W,y.centerX=J,y.centerY=ee,y.nodes=Q,y.links=H,y.forceNodeSize=q,y.nodeSize=y.forceNodeSize,y.forceCharge=le,y.forceLinkDistance=Y,y.forceLinkStrength=G,y.offset=pe,y.getFocis=T,y}var Zvi=function(e){return typeof e=="object"&&e!==null},Xvi={}.toString,Hgn=function(e,t){return Xvi.call(e)==="[object "+t+"]"},B9e=function(e){if(!Zvi(e)||!Hgn(e,"Object"))return!1;if(Object.getPrototypeOf(e)===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},Jvi=5;function e0i(e,t){if(Object.hasOwn)return Object.hasOwn(e,t);if(e==null)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}function Wgn(e,t,n,i){n=n||0,i=i||Jvi;for(var r in t)if(e0i(t,r)){var o=t[r];o!==null&&B9e(o)?(B9e(e[r])||(e[r]={}),n<i?Wgn(e[r],o,n+1,i):e[r]=t[r]):mYe(o)?(e[r]=[],e[r]=e[r].concat(o)):o!==void 0&&(e[r]=o)}}var t0i=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i+=1)Wgn(e,t[i]);return e};function n0i(e,t){var n,i=1;e==null&&(e=0),t==null&&(t=0);function r(){var o,s=n.length,a,l=0,c=0;for(o=0;o<s;++o)a=n[o],l+=a.x,c+=a.y;for(l=(l/s-e)*i,c=(c/s-t)*i,o=0;o<s;++o)a=n[o],a.x-=l,a.y-=c}return r.initialize=function(o){n=o},r.x=function(o){return arguments.length?(e=+o,r):e},r.y=function(o){return arguments.length?(t=+o,r):t},r.strength=function(o){return arguments.length?(i=+o,r):i},r}function i0i(e,t,n){var i,r=Hf(.1),o,s;typeof e!="function"&&(e=Hf(+e)),t==null&&(t=0),n==null&&(n=0);function a(c){for(var u=0,d=i.length;u<d;++u){var h=i[u],f=h.x-t||1e-6,p=h.y-n||1e-6,g=Math.sqrt(f*f+p*p),m=(s[u]-g)*o[u]*c/g;h.vx+=f*m,h.vy+=p*m}}function l(){if(i){var c,u=i.length;for(o=new Array(u),s=new Array(u),c=0;c<u;++c)s[c]=+e(i[c],c,i),o[c]=isNaN(s[c])?0:+r(i[c],c,i)}}return a.initialize=function(c){i=c,l()},a.strength=function(c){return arguments.length?(r=typeof c=="function"?c:Hf(+c),l(),a):r},a.radius=function(c){return arguments.length?(e=typeof c=="function"?c:Hf(+c),l(),a):e},a.x=function(c){return arguments.length?(t=+c,a):t},a.y=function(c){return arguments.length?(n=+c,a):n},a}var yTe={edgeId:"edge.id",manyBody:{strength:-30},preventOverlap:!1,nodeSize:10,nodeSpacing:0,x:!1,y:!1,clustering:!1,clusterNodeStrength:-1,clusterEdgeStrength:.1,clusterEdgeDistance:100,clusterFociStrength:.8,clusterNodeSize:10},Lve=class extends kve{getDefaultOptions(){return yTe}mergeOptions(e,t){return t0i({},e,t)}constructor(e){super(e),this.id="d3-force",this.d3Nodes=[],this.d3Edges=[],this.config={simulationAttrs:["alpha","alphaMin","alphaDecay","alphaTarget","velocityDecay","randomSource"]},this.options.forceSimulation&&(this.simulation=this.options.forceSimulation)}stop(){return this.simulation&&this.simulation.stop(),this}tick(e=1){var t,n;if(this.simulation){for(let i=0;i<e;i++)this.simulation.tick();this.syncPositionsFromD3(),(n=(t=this.options).onTick)===null||n===void 0||n.call(t,this)}return this}restart(e){return this.simulation&&(e!==void 0&&this.simulation.alpha(e),this.simulation.restart()),this}reheat(){return this.restart(1)}getAlpha(){var e,t;return(t=(e=this.simulation)===null||e===void 0?void 0:e.alpha())!==null&&t!==void 0?t:0}setAlpha(e){return this.simulation&&this.simulation.alpha(e),this}getForce(e){var t;return(t=this.simulation)===null||t===void 0?void 0:t.force(e)}force(e,t){return this.simulation&&this.simulation.force(e,t),this}nodes(){var e,t;return(t=(e=this.simulation)===null||e===void 0?void 0:e.nodes())!==null&&t!==void 0?t:[]}find(e,t,n){if(this.simulation)return this.simulation.find(e,t,n)}setFixedPosition(e,t){const n=this.d3Nodes.find(o=>o.id===e),i=this.model.node(e);if(!i||!n)return;const r=["fx","fy","fz"];if(t===null){r.forEach(o=>{delete i[o],delete n[o]});return}t.forEach((o,s)=>{s<r.length&&(typeof o=="number"||o===null)&&(i[r[s]]=o,n[r[s]]=o)})}parseOptions(e){const t=e;return t.iterations===void 0&&(t.link&&t.link.iterations===void 0&&(t.iterations=t.link.iterations),t.collide&&t.collide.iterations===void 0&&(t.iterations=t.collide.iterations)),t}layout(){var e;return $f(this,void 0,void 0,function*(){const t=this.parseOptions(this.options||{});this.createD3Copies();const n=this.setSimulation(t);return n.nodes(this.d3Nodes),(e=n.force("link"))===null||e===void 0||e.links(this.d3Edges),new Promise(i=>{n.on("end",()=>{this.syncPositionsFromD3(),i()})})})}createD3Copies(){this.d3Nodes=[],this.d3Edges=[],this.model.forEachNode(e=>{this.d3Nodes.push(Object.assign({},e))}),this.model.forEachEdge(e=>{this.d3Edges.push(Object.assign({},e))})}syncPositionsFromD3(){this.d3Nodes.forEach(e=>{const t=this.model.node(e.id);t&&(t.x=e.x,t.y=e.y,e.z!==void 0&&(t.z=e.z),e.fx!==void 0&&(t.fx=e.fx),e.fy!==void 0&&(t.fy=e.fy),e.fz!==void 0&&(t.fz=e.fz),e.vx!==void 0&&(t.vx=e.vx),e.vy!==void 0&&(t.vy=e.vy),e.vz!==void 0&&(t.vz=e.vz))})}initSimulation(){return Ogn()}setSimulation(e){const t=this.simulation||this.options.forceSimulation||this.initSimulation();return this.simulation||(this.simulation=t.on("tick",()=>{var n;this.syncPositionsFromD3(),(n=e.onTick)===null||n===void 0||n.call(e,this)})),$S(t,this.config.simulationAttrs.map(n=>[n,e[n]])),this.setupForces(t,e),t}setupForces(e,t){this.setupLinkForce(e,t),this.setupManyBodyForce(e,t),this.setupCenterForce(e,t),this.setupCollisionForce(e,t),this.setupXForce(e,t),this.setupYForce(e,t),this.setupRadialForce(e,t),this.setupClusterForce(e,t)}getCenterOptions(e){if(e.center===!1)return;const t=db({width:e.width,height:e.height});return xM({},e.center||{},{x:t.width/2,y:t.height/2,strength:e.centerStrength})}setupCenterForce(e,t){const n=this.getCenterOptions(t);if(n){let i=e.force("center");i||(i=n0i(n.x,n.y),e.force("center",i));const r=[];n.x!==void 0&&r.push(["x",n.x]),n.y!==void 0&&r.push(["y",n.y]),n.strength!==void 0&&r.push(["strength",n.strength]),$S(i,r)}else e.force("center",null)}getManyBodyOptions(e){if(e.manyBody!==!1)return xM({},e.manyBody||{},{strength:e.nodeStrength?jf(e.nodeStrength,["node"]):void 0,distanceMin:e.distanceMin,distanceMax:e.distanceMax,theta:e.theta})}setupManyBodyForce(e,t){const n=this.getManyBodyOptions(t);if(n){let i=e.force("charge");i||(i=zgn(),e.force("charge",i));const r=[];n.strength!==void 0&&r.push(["strength",n.strength]),n.distanceMin!==void 0&&r.push(["distanceMin",n.distanceMin]),n.distanceMax!==void 0&&r.push(["distanceMax",n.distanceMax]),n.theta!==void 0&&r.push(["theta",n.theta]),$S(i,r)}else e.force("charge",null)}getLinkOptions(e){if(e.link!==!1)return xM({},e.link||{},{id:e.edgeId?jf(e.edgeId,["edge"]):void 0,distance:e.linkDistance?jf(e.linkDistance,["edge"]):void 0,strength:e.edgeStrength?jf(e.edgeStrength,["edge"]):void 0,iterations:e.edgeIterations})}setupLinkForce(e,t){const n=this.model.edges(),i=this.getLinkOptions(t);if(n.length>0&&i){let r=e.force("link");r||(r=Vgn(),e.force("link",r));const o=[];i.id!==void 0&&o.push(["id",i.id]),i.distance!==void 0&&o.push(["distance",i.distance]),i.strength!==void 0&&o.push(["strength",i.strength]),i.iterations!==void 0&&o.push(["iterations",i.iterations]),$S(r,o)}else e.force("link",null)}getCollisionOptions(e){if(e.preventOverlap===!1&&(e.collide===!1||e.collide===void 0))return;const t=IT(e.nodeSize,e.nodeSpacing,yTe.nodeSize,yTe.nodeSpacing),n=i=>Math.max(...t(i._original))/2;return xM({},e.collide||{},{radius:e.collide&&e.collide.radius||n,strength:e.collideStrength,iterations:e.collideIterations})}setupCollisionForce(e,t){const n=this.getCollisionOptions(t);if(n){let i=e.force("collide");i||(i=jgn(),e.force("collide",i));const r=[];n.radius!==void 0&&r.push(["radius",n.radius]),n.strength!==void 0&&r.push(["strength",n.strength]),n.iterations!==void 0&&r.push(["iterations",n.iterations]),$S(i,r)}else e.force("collide",null)}getXForceOptions(e){var t;if(e.x===!1)return;const n=this.getCenterOptions(e);return xM({},e.x||{},{x:(t=e.forceXPosition)!==null&&t!==void 0?t:n&&n.x,strength:e.forceXStrength})}setupXForce(e,t){const n=this.getXForceOptions(t);if(n){let i=e.force("x");i||(i=Rgn(),e.force("x",i));const r=[];n.x!==void 0&&r.push(["x",n.x]),n.strength!==void 0&&r.push(["strength",n.strength]),$S(i,r)}else e.force("x",null)}getYForceOptions(e){var t;if(e.y===!1)return;const n=this.getCenterOptions(e);return xM({},e.y||{},{y:(t=e.forceYPosition)!==null&&t!==void 0?t:n&&n.y,strength:e.forceYStrength})}setupYForce(e,t){const n=this.getYForceOptions(t);if(n){let i=e.force("y");i||(i=Fgn(),e.force("y",i));const r=[];n.y!==void 0&&r.push(["y",n.y]),n.strength!==void 0&&r.push(["strength",n.strength]),$S(i,r)}else e.force("y",null)}getRadialOptions(e){var t,n,i;if(e.radial!==void 0||e.radialStrength!==void 0||e.radialRadius!==void 0||e.radialX!==void 0||e.radialY!==void 0){const r=this.getCenterOptions(e);return xM({},e.radial||{},{strength:e.radialStrength,radius:(t=e.radialRadius)!==null&&t!==void 0?t:100,x:(n=e.radialX)!==null&&n!==void 0?n:r&&r.x,y:(i=e.radialY)!==null&&i!==void 0?i:r&&r.y})}}setupRadialForce(e,t){const n=this.getRadialOptions(t);if(n){let i=e.force("radial");i||(i=i0i(n.radius||100,n.x,n.y),e.force("radial",i));const r=[];n.radius!==void 0&&r.push(["radius",n.radius]),n.strength!==void 0&&r.push(["strength",n.strength]),n.x!==void 0&&r.push(["x",n.x]),n.y!==void 0&&r.push(["y",n.y]),$S(i,r)}else e.force("radial",null)}setupClusterForce(e,t){const{clustering:n}=t;if(n){const{clusterFociStrength:i,clusterEdgeDistance:r,clusterEdgeStrength:o,clusterNodeStrength:s,clusterNodeSize:a,clusterBy:l}=t,c=this.getCenterOptions(t);let u=e.force("group");u||(u=Qvi(),e.force("group",u)),$S(u,[["centerX",c&&c.x],["centerY",c&&c.y],["template","force"],["strength",i],["groupBy",l?jf(l,["node"]):void 0],["nodes",this.model.nodes()],["links",this.model.edges()],["forceLinkDistance",r],["forceLinkStrength",o],["forceCharge",s],["forceNodeSize",a]])}else e.force("group",null)}},$S=(e,t)=>t.reduce((n,[i,r])=>!n[i]||r===void 0?n:n[i].call(e,r),e);function gd(e){return function(){return e}}function r0i(e){var t=gd(.1),n,i,r;typeof e!="function"&&(e=gd(e==null?0:+e));function o(a){for(var l=0,c=n.length,u;l<c;++l)u=n[l],u.vz+=(r[l]-u.z)*i[l]*a}function s(){if(n){var a,l=n.length;for(i=new Array(l),r=new Array(l),a=0;a<l;++a)i[a]=isNaN(r[a]=+e(n[a],a,n))?0:+t(n[a],a,n)}}return o.initialize=function(a){n=a,s()},o.strength=function(a){return arguments.length?(t=typeof a=="function"?a:gd(+a),s(),o):t},o.z=function(a){return arguments.length?(e=typeof a=="function"?a:gd(+a),s(),o):e},o}function o0i(e){var t=gd(.1),n,i,r;typeof e!="function"&&(e=gd(e==null?0:+e));function o(a){for(var l=0,c=n.length,u;l<c;++l)u=n[l],u.vy+=(r[l]-u.y)*i[l]*a}function s(){if(n){var a,l=n.length;for(i=new Array(l),r=new Array(l),a=0;a<l;++a)i[a]=isNaN(r[a]=+e(n[a],a,n))?0:+t(n[a],a,n)}}return o.initialize=function(a){n=a,s()},o.strength=function(a){return arguments.length?(t=typeof a=="function"?a:gd(+a),s(),o):t},o.y=function(a){return arguments.length?(e=typeof a=="function"?a:gd(+a),s(),o):e},o}function s0i(e){var t=gd(.1),n,i,r;typeof e!="function"&&(e=gd(e==null?0:+e));function o(a){for(var l=0,c=n.length,u;l<c;++l)u=n[l],u.vx+=(r[l]-u.x)*i[l]*a}function s(){if(n){var a,l=n.length;for(i=new Array(l),r=new Array(l),a=0;a<l;++a)i[a]=isNaN(r[a]=+e(n[a],a,n))?0:+t(n[a],a,n)}}return o.initialize=function(a){n=a,s()},o.strength=function(a){return arguments.length?(t=typeof a=="function"?a:gd(+a),s(),o):t},o.x=function(a){return arguments.length?(e=typeof a=="function"?a:gd(+a),s(),o):e},o}function a0i(e,t,n,i){var r,o,s=gd(.1),a,l;typeof e!="function"&&(e=gd(+e)),t==null&&(t=0),n==null&&(n=0),i==null&&(i=0);function c(d){for(var h=0,f=r.length;h<f;++h){var p=r[h],g=p.x-t||1e-6,m=(p.y||0)-n||1e-6,v=(p.z||0)-i||1e-6,y=Math.sqrt(g*g+m*m+v*v),b=(l[h]-y)*a[h]*d/y;p.vx+=g*b,o>1&&(p.vy+=m*b),o>2&&(p.vz+=v*b)}}function u(){if(r){var d,h=r.length;for(a=new Array(h),l=new Array(h),d=0;d<h;++d)l[d]=+e(r[d],d,r),a[d]=isNaN(l[d])?0:+s(r[d],d,r)}}return c.initialize=function(d,...h){r=d,o=h.find(f=>[1,2,3].includes(f))||2,u()},c.strength=function(d){return arguments.length?(s=typeof d=="function"?d:gd(+d),u(),c):s},c.radius=function(d){return arguments.length?(e=typeof d=="function"?d:gd(+d),u(),c):e},c.x=function(d){return arguments.length?(t=+d,c):t},c.y=function(d){return arguments.length?(n=+d,c):n},c.z=function(d){return arguments.length?(i=+d,c):i},c}function x_(e){return(e()-.5)*1e-6}function l0i(e){const t=+this._x.call(null,e);return Ugn(this.cover(t),t,e)}function Ugn(e,t,n){if(isNaN(t))return e;var i,r=e._root,o={data:n},s=e._x0,a=e._x1,l,c,u,d,h;if(!r)return e._root=o,e;for(;r.length;)if((u=t>=(l=(s+a)/2))?s=l:a=l,i=r,!(r=r[d=+u]))return i[d]=o,e;if(c=+e._x.call(null,r.data),t===c)return o.next=r,i?i[d]=o:e._root=o,e;do i=i?i[d]=new Array(2):e._root=new Array(2),(u=t>=(l=(s+a)/2))?s=l:a=l;while((d=+u)==(h=+(c>=l)));return i[h]=r,i[d]=o,e}function c0i(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t);let i=1/0,r=-1/0;for(let o=0,s;o<t;++o)isNaN(s=+this._x.call(null,e[o]))||(n[o]=s,s<i&&(i=s),s>r&&(r=s));if(i>r)return this;this.cover(i).cover(r);for(let o=0;o<t;++o)Ugn(this,n[o],e[o]);return this}function u0i(e){if(isNaN(e=+e))return this;var t=this._x0,n=this._x1;if(isNaN(t))n=(t=Math.floor(e))+1;else{for(var i=n-t||1,r=this._root,o,s;t>e||e>=n;)switch(s=+(e<t),o=new Array(2),o[s]=r,r=o,i*=2,s){case 0:n=t+i;break;case 1:t=n-i;break}this._root&&this._root.length&&(this._root=r)}return this._x0=t,this._x1=n,this}function d0i(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function h0i(e){return arguments.length?this.cover(+e[0][0]).cover(+e[1][0]):isNaN(this._x0)?void 0:[[this._x0],[this._x1]]}function ED(e,t,n){this.node=e,this.x0=t,this.x1=n}function f0i(e,t){var n,i=this._x0,r,o,s=this._x1,a=[],l=this._root,c,u;for(l&&a.push(new ED(l,i,s)),t==null?t=1/0:(i=e-t,s=e+t);c=a.pop();)if(!(!(l=c.node)||(r=c.x0)>s||(o=c.x1)<i))if(l.length){var d=(r+o)/2;a.push(new ED(l[1],d,o),new ED(l[0],r,d)),(u=+(e>=d))&&(c=a[a.length-1],a[a.length-1]=a[a.length-1-u],a[a.length-1-u]=c)}else{var h=Math.abs(e-+this._x.call(null,l.data));h<t&&(t=h,i=e-h,s=e+h,n=l.data)}return n}function p0i(e){if(isNaN(l=+this._x.call(null,e)))return this;var t,n=this._root,i,r,o,s=this._x0,a=this._x1,l,c,u,d,h;if(!n)return this;if(n.length)for(;;){if((u=l>=(c=(s+a)/2))?s=c:a=c,t=n,!(n=n[d=+u]))return this;if(!n.length)break;t[d+1&1]&&(i=t,h=d)}for(;n.data!==e;)if(r=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,r?(o?r.next=o:delete r.next,this):t?(o?t[d]=o:delete t[d],(n=t[0]||t[1])&&n===(t[1]||t[0])&&!n.length&&(i?i[h]=n:this._root=n),this):(this._root=o,this)}function g0i(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function m0i(){return this._root}function v0i(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function y0i(e){var t=[],n,i=this._root,r,o,s;for(i&&t.push(new ED(i,this._x0,this._x1));n=t.pop();)if(!e(i=n.node,o=n.x0,s=n.x1)&&i.length){var a=(o+s)/2;(r=i[1])&&t.push(new ED(r,a,s)),(r=i[0])&&t.push(new ED(r,o,a))}return this}function b0i(e){var t=[],n=[],i;for(this._root&&t.push(new ED(this._root,this._x0,this._x1));i=t.pop();){var r=i.node;if(r.length){var o,s=i.x0,a=i.x1,l=(s+a)/2;(o=r[0])&&t.push(new ED(o,s,l)),(o=r[1])&&t.push(new ED(o,l,a))}n.push(i)}for(;i=n.pop();)e(i.node,i.x0,i.x1);return this}function _0i(e){return e[0]}function w0i(e){return arguments.length?(this._x=e,this):this._x}function SYe(e,t){var n=new xYe(t??_0i,NaN,NaN);return e==null?n:n.addAll(e)}function xYe(e,t,n){this._x=e,this._x0=t,this._x1=n,this._root=void 0}function _Dt(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var ey=SYe.prototype=xYe.prototype;ey.copy=function(){var e=new xYe(this._x,this._x0,this._x1),t=this._root,n,i;if(!t)return e;if(!t.length)return e._root=_Dt(t),e;for(n=[{source:t,target:e._root=new Array(2)}];t=n.pop();)for(var r=0;r<2;++r)(i=t.source[r])&&(i.length?n.push({source:i,target:t.target[r]=new Array(2)}):t.target[r]=_Dt(i));return e};ey.add=l0i;ey.addAll=c0i;ey.cover=u0i;ey.data=d0i;ey.extent=h0i;ey.find=f0i;ey.remove=p0i;ey.removeAll=g0i;ey.root=m0i;ey.size=v0i;ey.visit=y0i;ey.visitAfter=b0i;ey.x=w0i;function C0i(e){const t=+this._x.call(null,e),n=+this._y.call(null,e),i=+this._z.call(null,e);return $gn(this.cover(t,n,i),t,n,i,e)}function $gn(e,t,n,i,r){if(isNaN(t)||isNaN(n)||isNaN(i))return e;var o,s=e._root,a={data:r},l=e._x0,c=e._y0,u=e._z0,d=e._x1,h=e._y1,f=e._z1,p,g,m,v,y,b,w,E,A,D,T;if(!s)return e._root=a,e;for(;s.length;)if((w=t>=(p=(l+d)/2))?l=p:d=p,(E=n>=(g=(c+h)/2))?c=g:h=g,(A=i>=(m=(u+f)/2))?u=m:f=m,o=s,!(s=s[D=A<<2|E<<1|w]))return o[D]=a,e;if(v=+e._x.call(null,s.data),y=+e._y.call(null,s.data),b=+e._z.call(null,s.data),t===v&&n===y&&i===b)return a.next=s,o?o[D]=a:e._root=a,e;do o=o?o[D]=new Array(8):e._root=new Array(8),(w=t>=(p=(l+d)/2))?l=p:d=p,(E=n>=(g=(c+h)/2))?c=g:h=g,(A=i>=(m=(u+f)/2))?u=m:f=m;while((D=A<<2|E<<1|w)===(T=(b>=m)<<2|(y>=g)<<1|v>=p));return o[T]=s,o[D]=a,e}function S0i(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t),i=new Float64Array(t),r=new Float64Array(t);let o=1/0,s=1/0,a=1/0,l=-1/0,c=-1/0,u=-1/0;for(let d=0,h,f,p,g;d<t;++d)isNaN(f=+this._x.call(null,h=e[d]))||isNaN(p=+this._y.call(null,h))||isNaN(g=+this._z.call(null,h))||(n[d]=f,i[d]=p,r[d]=g,f<o&&(o=f),f>l&&(l=f),p<s&&(s=p),p>c&&(c=p),g<a&&(a=g),g>u&&(u=g));if(o>l||s>c||a>u)return this;this.cover(o,s,a).cover(l,c,u);for(let d=0;d<t;++d)$gn(this,n[d],i[d],r[d],e[d]);return this}function x0i(e,t,n){if(isNaN(e=+e)||isNaN(t=+t)||isNaN(n=+n))return this;var i=this._x0,r=this._y0,o=this._z0,s=this._x1,a=this._y1,l=this._z1;if(isNaN(i))s=(i=Math.floor(e))+1,a=(r=Math.floor(t))+1,l=(o=Math.floor(n))+1;else{for(var c=s-i||1,u=this._root,d,h;i>e||e>=s||r>t||t>=a||o>n||n>=l;)switch(h=(n<o)<<2|(t<r)<<1|e<i,d=new Array(8),d[h]=u,u=d,c*=2,h){case 0:s=i+c,a=r+c,l=o+c;break;case 1:i=s-c,a=r+c,l=o+c;break;case 2:s=i+c,r=a-c,l=o+c;break;case 3:i=s-c,r=a-c,l=o+c;break;case 4:s=i+c,a=r+c,o=l-c;break;case 5:i=s-c,a=r+c,o=l-c;break;case 6:s=i+c,r=a-c,o=l-c;break;case 7:i=s-c,r=a-c,o=l-c;break}this._root&&this._root.length&&(this._root=u)}return this._x0=i,this._y0=r,this._z0=o,this._x1=s,this._y1=a,this._z1=l,this}function E0i(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function A0i(e){return arguments.length?this.cover(+e[0][0],+e[0][1],+e[0][2]).cover(+e[1][0],+e[1][1],+e[1][2]):isNaN(this._x0)?void 0:[[this._x0,this._y0,this._z0],[this._x1,this._y1,this._z1]]}function nu(e,t,n,i,r,o,s){this.node=e,this.x0=t,this.y0=n,this.z0=i,this.x1=r,this.y1=o,this.z1=s}function D0i(e,t,n,i){var r,o=this._x0,s=this._y0,a=this._z0,l,c,u,d,h,f,p=this._x1,g=this._y1,m=this._z1,v=[],y=this._root,b,w;for(y&&v.push(new nu(y,o,s,a,p,g,m)),i==null?i=1/0:(o=e-i,s=t-i,a=n-i,p=e+i,g=t+i,m=n+i,i*=i);b=v.pop();)if(!(!(y=b.node)||(l=b.x0)>p||(c=b.y0)>g||(u=b.z0)>m||(d=b.x1)<o||(h=b.y1)<s||(f=b.z1)<a))if(y.length){var E=(l+d)/2,A=(c+h)/2,D=(u+f)/2;v.push(new nu(y[7],E,A,D,d,h,f),new nu(y[6],l,A,D,E,h,f),new nu(y[5],E,c,D,d,A,f),new nu(y[4],l,c,D,E,A,f),new nu(y[3],E,A,u,d,h,D),new nu(y[2],l,A,u,E,h,D),new nu(y[1],E,c,u,d,A,D),new nu(y[0],l,c,u,E,A,D)),(w=(n>=D)<<2|(t>=A)<<1|e>=E)&&(b=v[v.length-1],v[v.length-1]=v[v.length-1-w],v[v.length-1-w]=b)}else{var T=e-+this._x.call(null,y.data),M=t-+this._y.call(null,y.data),P=n-+this._z.call(null,y.data),F=T*T+M*M+P*P;if(F<i){var N=Math.sqrt(i=F);o=e-N,s=t-N,a=n-N,p=e+N,g=t+N,m=n+N,r=y.data}}return r}var T0i=(e,t,n,i,r,o)=>Math.sqrt((e-i)**2+(t-r)**2+(n-o)**2);function k0i(e,t,n,i){const r=[],o=e-i,s=t-i,a=n-i,l=e+i,c=t+i,u=n+i;return this.visit((d,h,f,p,g,m,v)=>{if(!d.length)do{const y=d.data;T0i(e,t,n,this._x(y),this._y(y),this._z(y))<=i&&r.push(y)}while(d=d.next);return h>l||f>c||p>u||g<o||m<s||v<a}),r}function I0i(e){if(isNaN(h=+this._x.call(null,e))||isNaN(f=+this._y.call(null,e))||isNaN(p=+this._z.call(null,e)))return this;var t,n=this._root,i,r,o,s=this._x0,a=this._y0,l=this._z0,c=this._x1,u=this._y1,d=this._z1,h,f,p,g,m,v,y,b,w,E,A;if(!n)return this;if(n.length)for(;;){if((y=h>=(g=(s+c)/2))?s=g:c=g,(b=f>=(m=(a+u)/2))?a=m:u=m,(w=p>=(v=(l+d)/2))?l=v:d=v,t=n,!(n=n[E=w<<2|b<<1|y]))return this;if(!n.length)break;(t[E+1&7]||t[E+2&7]||t[E+3&7]||t[E+4&7]||t[E+5&7]||t[E+6&7]||t[E+7&7])&&(i=t,A=E)}for(;n.data!==e;)if(r=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,r?(o?r.next=o:delete r.next,this):t?(o?t[E]=o:delete t[E],(n=t[0]||t[1]||t[2]||t[3]||t[4]||t[5]||t[6]||t[7])&&n===(t[7]||t[6]||t[5]||t[4]||t[3]||t[2]||t[1]||t[0])&&!n.length&&(i?i[A]=n:this._root=n),this):(this._root=o,this)}function L0i(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function N0i(){return this._root}function P0i(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function M0i(e){var t=[],n,i=this._root,r,o,s,a,l,c,u;for(i&&t.push(new nu(i,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));n=t.pop();)if(!e(i=n.node,o=n.x0,s=n.y0,a=n.z0,l=n.x1,c=n.y1,u=n.z1)&&i.length){var d=(o+l)/2,h=(s+c)/2,f=(a+u)/2;(r=i[7])&&t.push(new nu(r,d,h,f,l,c,u)),(r=i[6])&&t.push(new nu(r,o,h,f,d,c,u)),(r=i[5])&&t.push(new nu(r,d,s,f,l,h,u)),(r=i[4])&&t.push(new nu(r,o,s,f,d,h,u)),(r=i[3])&&t.push(new nu(r,d,h,a,l,c,f)),(r=i[2])&&t.push(new nu(r,o,h,a,d,c,f)),(r=i[1])&&t.push(new nu(r,d,s,a,l,h,f)),(r=i[0])&&t.push(new nu(r,o,s,a,d,h,f))}return this}function O0i(e){var t=[],n=[],i;for(this._root&&t.push(new nu(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));i=t.pop();){var r=i.node;if(r.length){var o,s=i.x0,a=i.y0,l=i.z0,c=i.x1,u=i.y1,d=i.z1,h=(s+c)/2,f=(a+u)/2,p=(l+d)/2;(o=r[0])&&t.push(new nu(o,s,a,l,h,f,p)),(o=r[1])&&t.push(new nu(o,h,a,l,c,f,p)),(o=r[2])&&t.push(new nu(o,s,f,l,h,u,p)),(o=r[3])&&t.push(new nu(o,h,f,l,c,u,p)),(o=r[4])&&t.push(new nu(o,s,a,p,h,f,d)),(o=r[5])&&t.push(new nu(o,h,a,p,c,f,d)),(o=r[6])&&t.push(new nu(o,s,f,p,h,u,d)),(o=r[7])&&t.push(new nu(o,h,f,p,c,u,d))}n.push(i)}for(;i=n.pop();)e(i.node,i.x0,i.y0,i.z0,i.x1,i.y1,i.z1);return this}function R0i(e){return e[0]}function F0i(e){return arguments.length?(this._x=e,this):this._x}function B0i(e){return e[1]}function j0i(e){return arguments.length?(this._y=e,this):this._y}function z0i(e){return e[2]}function V0i(e){return arguments.length?(this._z=e,this):this._z}function Nve(e,t,n,i){var r=new EYe(t??R0i,n??B0i,i??z0i,NaN,NaN,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function EYe(e,t,n,i,r,o,s,a,l){this._x=e,this._y=t,this._z=n,this._x0=i,this._y0=r,this._z0=o,this._x1=s,this._y1=a,this._z1=l,this._root=void 0}function wDt(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Tg=Nve.prototype=EYe.prototype;Tg.copy=function(){var e=new EYe(this._x,this._y,this._z,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1),t=this._root,n,i;if(!t)return e;if(!t.length)return e._root=wDt(t),e;for(n=[{source:t,target:e._root=new Array(8)}];t=n.pop();)for(var r=0;r<8;++r)(i=t.source[r])&&(i.length?n.push({source:i,target:t.target[r]=new Array(8)}):t.target[r]=wDt(i));return e};Tg.add=C0i;Tg.addAll=S0i;Tg.cover=x0i;Tg.data=E0i;Tg.extent=A0i;Tg.find=D0i;Tg.findAllWithinRadius=k0i;Tg.remove=I0i;Tg.removeAll=L0i;Tg.root=N0i;Tg.size=P0i;Tg.visit=M0i;Tg.visitAfter=O0i;Tg.x=F0i;Tg.y=j0i;Tg.z=V0i;function bTe(e){return e.x+e.vx}function CDt(e){return e.y+e.vy}function H0i(e){return e.z+e.vz}function W0i(e){var t,n,i,r,o=1,s=1;typeof e!="function"&&(e=gd(e==null?1:+e));function a(){for(var u,d=t.length,h,f,p,g,m,v,y,b=0;b<s;++b)for(h=(n===1?SYe(t,bTe):n===2?CF(t,bTe,CDt):n===3?Nve(t,bTe,CDt,H0i):null).visitAfter(l),u=0;u<d;++u)f=t[u],v=i[f.index],y=v*v,p=f.x+f.vx,n>1&&(g=f.y+f.vy),n>2&&(m=f.z+f.vz),h.visit(w);function w(E,A,D,T,M,P,F){var N=[A,D,T,M,P,F],j=N[0],W=N[1],J=N[2],ee=N[n],Q=N[n+1],H=N[n+2],q=E.data,le=E.r,Y=v+le;if(q){if(q.index>f.index){var G=p-q.x-q.vx,pe=n>1?g-q.y-q.vy:0,U=n>2?m-q.z-q.vz:0,K=G*G+pe*pe+U*U;K<Y*Y&&(G===0&&(G=x_(r),K+=G*G),n>1&&pe===0&&(pe=x_(r),K+=pe*pe),n>2&&U===0&&(U=x_(r),K+=U*U),K=(Y-(K=Math.sqrt(K)))/K*o,f.vx+=(G*=K)*(Y=(le*=le)/(y+le)),n>1&&(f.vy+=(pe*=K)*Y),n>2&&(f.vz+=(U*=K)*Y),q.vx-=G*(Y=1-Y),n>1&&(q.vy-=pe*Y),n>2&&(q.vz-=U*Y))}return}return j>p+Y||ee<p-Y||n>1&&(W>g+Y||Q<g-Y)||n>2&&(J>m+Y||H<m-Y)}}function l(u){if(u.data)return u.r=i[u.data.index];for(var d=u.r=0;d<Math.pow(2,n);++d)u[d]&&u[d].r>u.r&&(u.r=u[d].r)}function c(){if(t){var u,d=t.length,h;for(i=new Array(d),u=0;u<d;++u)h=t[u],i[h.index]=+e(h,u,t)}}return a.initialize=function(u,...d){t=u,r=d.find(h=>typeof h=="function")||Math.random,n=d.find(h=>[1,2,3].includes(h))||2,c()},a.iterations=function(u){return arguments.length?(s=+u,a):s},a.strength=function(u){return arguments.length?(o=+u,a):o},a.radius=function(u){return arguments.length?(e=typeof u=="function"?u:gd(+u),c(),a):e},a}function U0i(e,t,n){var i,r=1;e==null&&(e=0),t==null&&(t=0),n==null&&(n=0);function o(){var s,a=i.length,l,c=0,u=0,d=0;for(s=0;s<a;++s)l=i[s],c+=l.x||0,u+=l.y||0,d+=l.z||0;for(c=(c/a-e)*r,u=(u/a-t)*r,d=(d/a-n)*r,s=0;s<a;++s)l=i[s],c&&(l.x-=c),u&&(l.y-=u),d&&(l.z-=d)}return o.initialize=function(s){i=s},o.x=function(s){return arguments.length?(e=+s,o):e},o.y=function(s){return arguments.length?(t=+s,o):t},o.z=function(s){return arguments.length?(n=+s,o):n},o.strength=function(s){return arguments.length?(r=+s,o):r},o}var $0i=1664525,q0i=1013904223,SDt=4294967296;function G0i(){let e=1;return()=>(e=($0i*e+q0i)%SDt)/SDt}var xDt=3;function _Te(e){return e.x}function EDt(e){return e.y}function K0i(e){return e.z}var Y0i=10,Q0i=Math.PI*(3-Math.sqrt(5)),Z0i=Math.PI*20/(9+Math.sqrt(221));function X0i(e,t){t=t||2;var n=Math.min(xDt,Math.max(1,Math.round(t))),i,r=1,o=.001,s=1-Math.pow(o,1/300),a=0,l=.6,c=new Map,u=_Ye(f),d=wYe("tick","end"),h=G0i();e==null&&(e=[]);function f(){p(),d.call("tick",i),r<o&&(u.stop(),d.call("end",i))}function p(v){var y,b=e.length,w;v===void 0&&(v=1);for(var E=0;E<v;++E)for(r+=(a-r)*s,c.forEach(function(A){A(r)}),y=0;y<b;++y)w=e[y],w.fx==null?w.x+=w.vx*=l:(w.x=w.fx,w.vx=0),n>1&&(w.fy==null?w.y+=w.vy*=l:(w.y=w.fy,w.vy=0)),n>2&&(w.fz==null?w.z+=w.vz*=l:(w.z=w.fz,w.vz=0));return i}function g(){for(var v=0,y=e.length,b;v<y;++v){if(b=e[v],b.index=v,b.fx!=null&&(b.x=b.fx),b.fy!=null&&(b.y=b.fy),b.fz!=null&&(b.z=b.fz),isNaN(b.x)||n>1&&isNaN(b.y)||n>2&&isNaN(b.z)){var w=Y0i*(n>2?Math.cbrt(.5+v):n>1?Math.sqrt(.5+v):v),E=v*Q0i,A=v*Z0i;n===1?b.x=w:n===2?(b.x=w*Math.cos(E),b.y=w*Math.sin(E)):(b.x=w*Math.sin(E)*Math.cos(A),b.y=w*Math.cos(E),b.z=w*Math.sin(E)*Math.sin(A))}(isNaN(b.vx)||n>1&&isNaN(b.vy)||n>2&&isNaN(b.vz))&&(b.vx=0,n>1&&(b.vy=0),n>2&&(b.vz=0))}}function m(v){return v.initialize&&v.initialize(e,h,n),v}return g(),i={tick:p,restart:function(){return u.restart(f),i},stop:function(){return u.stop(),i},numDimensions:function(v){return arguments.length?(n=Math.min(xDt,Math.max(1,Math.round(v))),c.forEach(m),i):n},nodes:function(v){return arguments.length?(e=v,g(),c.forEach(m),i):e},alpha:function(v){return arguments.length?(r=+v,i):r},alphaMin:function(v){return arguments.length?(o=+v,i):o},alphaDecay:function(v){return arguments.length?(s=+v,i):+s},alphaTarget:function(v){return arguments.length?(a=+v,i):a},velocityDecay:function(v){return arguments.length?(l=1-v,i):1-l},randomSource:function(v){return arguments.length?(h=v,c.forEach(m),i):h},force:function(v,y){return arguments.length>1?(y==null?c.delete(v):c.set(v,m(y)),i):c.get(v)},find:function(){var v=Array.prototype.slice.call(arguments),y=v.shift()||0,b=(n>1?v.shift():null)||0,w=(n>2?v.shift():null)||0,E=v.shift()||1/0,A=0,D=e.length,T,M,P,F,N,j;for(E*=E,A=0;A<D;++A)N=e[A],T=y-N.x,M=b-(N.y||0),P=w-(N.z||0),F=T*T+M*M+P*P,F<E&&(j=N,E=F);return j},on:function(v,y){return arguments.length>1?(d.on(v,y),i):d.on(v)}}}function J0i(){var e,t,n,i,r,o=gd(-30),s,a=1,l=1/0,c=.81;function u(p){var g,m=e.length,v=(t===1?SYe(e,_Te):t===2?CF(e,_Te,EDt):t===3?Nve(e,_Te,EDt,K0i):null).visitAfter(h);for(r=p,g=0;g<m;++g)n=e[g],v.visit(f)}function d(){if(e){var p,g=e.length,m;for(s=new Array(g),p=0;p<g;++p)m=e[p],s[m.index]=+o(m,p,e)}}function h(p){var g=0,m,v,y=0,b,w,E,A,D=p.length;if(D){for(b=w=E=A=0;A<D;++A)(m=p[A])&&(v=Math.abs(m.value))&&(g+=m.value,y+=v,b+=v*(m.x||0),w+=v*(m.y||0),E+=v*(m.z||0));g*=Math.sqrt(4/D),p.x=b/y,t>1&&(p.y=w/y),t>2&&(p.z=E/y)}else{m=p,m.x=m.data.x,t>1&&(m.y=m.data.y),t>2&&(m.z=m.data.z);do g+=s[m.data.index];while(m=m.next)}p.value=g}function f(p,g,m,v,y){if(!p.value)return!0;var b=[m,v,y][t-1],w=p.x-n.x,E=t>1?p.y-n.y:0,A=t>2?p.z-n.z:0,D=b-g,T=w*w+E*E+A*A;if(D*D/c<T)return T<l&&(w===0&&(w=x_(i),T+=w*w),t>1&&E===0&&(E=x_(i),T+=E*E),t>2&&A===0&&(A=x_(i),T+=A*A),T<a&&(T=Math.sqrt(a*T)),n.vx+=w*p.value*r/T,t>1&&(n.vy+=E*p.value*r/T),t>2&&(n.vz+=A*p.value*r/T)),!0;if(p.length||T>=l)return;(p.data!==n||p.next)&&(w===0&&(w=x_(i),T+=w*w),t>1&&E===0&&(E=x_(i),T+=E*E),t>2&&A===0&&(A=x_(i),T+=A*A),T<a&&(T=Math.sqrt(a*T)));do p.data!==n&&(D=s[p.data.index]*r/T,n.vx+=w*D,t>1&&(n.vy+=E*D),t>2&&(n.vz+=A*D));while(p=p.next)}return u.initialize=function(p,...g){e=p,i=g.find(m=>typeof m=="function")||Math.random,t=g.find(m=>[1,2,3].includes(m))||2,d()},u.strength=function(p){return arguments.length?(o=typeof p=="function"?p:gd(+p),d(),u):o},u.distanceMin=function(p){return arguments.length?(a=p*p,u):Math.sqrt(a)},u.distanceMax=function(p){return arguments.length?(l=p*p,u):Math.sqrt(l)},u.theta=function(p){return arguments.length?(c=p*p,u):Math.sqrt(c)},u}function eyi(e){return e.index}function ADt(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function tyi(e){var t=eyi,n=h,i,r=gd(30),o,s,a,l,c,u,d=1;e==null&&(e=[]);function h(v){return 1/Math.min(l[v.source.index],l[v.target.index])}function f(v){for(var y=0,b=e.length;y<d;++y)for(var w=0,E,A,D,T=0,M=0,P=0,F,N;w<b;++w)E=e[w],A=E.source,D=E.target,T=D.x+D.vx-A.x-A.vx||x_(u),a>1&&(M=D.y+D.vy-A.y-A.vy||x_(u)),a>2&&(P=D.z+D.vz-A.z-A.vz||x_(u)),F=Math.sqrt(T*T+M*M+P*P),F=(F-o[w])/F*v*i[w],T*=F,M*=F,P*=F,D.vx-=T*(N=c[w]),a>1&&(D.vy-=M*N),a>2&&(D.vz-=P*N),A.vx+=T*(N=1-N),a>1&&(A.vy+=M*N),a>2&&(A.vz+=P*N)}function p(){if(s){var v,y=s.length,b=e.length,w=new Map(s.map((A,D)=>[t(A,D,s),A])),E;for(v=0,l=new Array(y);v<b;++v)E=e[v],E.index=v,typeof E.source!="object"&&(E.source=ADt(w,E.source)),typeof E.target!="object"&&(E.target=ADt(w,E.target)),l[E.source.index]=(l[E.source.index]||0)+1,l[E.target.index]=(l[E.target.index]||0)+1;for(v=0,c=new Array(b);v<b;++v)E=e[v],c[v]=l[E.source.index]/(l[E.source.index]+l[E.target.index]);i=new Array(b),g(),o=new Array(b),m()}}function g(){if(s)for(var v=0,y=e.length;v<y;++v)i[v]=+n(e[v],v,e)}function m(){if(s)for(var v=0,y=e.length;v<y;++v)o[v]=+r(e[v],v,e)}return f.initialize=function(v,...y){s=v,u=y.find(b=>typeof b=="function")||Math.random,a=y.find(b=>[1,2,3].includes(b))||2,p()},f.links=function(v){return arguments.length?(e=v,p(),f):e},f.id=function(v){return arguments.length?(t=v,f):t},f.iterations=function(v){return arguments.length?(d=+v,f):d},f.strength=function(v){return arguments.length?(n=typeof v=="function"?v:gd(+v),g(),f):n},f.distance=function(v){return arguments.length?(r=typeof v=="function"?v:gd(+v),m(),f):r},f}var nyi=class extends Lve{constructor(){super(...arguments),this.id="d3-force-3d",this.config={simulationAttrs:["alpha","alphaMin","alphaDecay","alphaTarget","velocityDecay","randomSource","numDimensions"]},this.forceMap={link:tyi,manyBody:J0i,center:U0i,collide:W0i,radial:a0i,x:s0i,y:o0i,z:r0i}}getDefaultOptions(){return{numDimensions:3,link:{id:e=>e.id},manyBody:{},center:{x:0,y:0,z:0}}}initSimulation(){return X0i()}setupForces(e,t){Object.entries(this.forceMap).forEach(([n,i])=>{const r=n;if(t[n]){let o=e.force(r);o||(o=i(),e.force(r,o)),$S(o,Object.entries(t[r]))}else e.force(r,null)})}},fie=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qgn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ggn(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function i(){var r=!1;try{r=this instanceof i}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return e[i]}})}),n}function AYe(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var wTe,DDt;function iyi(){if(DDt)return wTe;DDt=1;function e(){this.__data__=[],this.size=0}return wTe=e,wTe}var CTe,TDt;function rj(){if(TDt)return CTe;TDt=1;function e(t,n){return t===n||t!==t&&n!==n}return CTe=e,CTe}var STe,kDt;function Pve(){if(kDt)return STe;kDt=1;var e=rj();function t(n,i){for(var r=n.length;r--;)if(e(n[r][0],i))return r;return-1}return STe=t,STe}var xTe,IDt;function ryi(){if(IDt)return xTe;IDt=1;var e=Pve(),t=Array.prototype,n=t.splice;function i(r){var o=this.__data__,s=e(o,r);if(s<0)return!1;var a=o.length-1;return s==a?o.pop():n.call(o,s,1),--this.size,!0}return xTe=i,xTe}var ETe,LDt;function oyi(){if(LDt)return ETe;LDt=1;var e=Pve();function t(n){var i=this.__data__,r=e(i,n);return r<0?void 0:i[r][1]}return ETe=t,ETe}var ATe,NDt;function syi(){if(NDt)return ATe;NDt=1;var e=Pve();function t(n){return e(this.__data__,n)>-1}return ATe=t,ATe}var DTe,PDt;function ayi(){if(PDt)return DTe;PDt=1;var e=Pve();function t(n,i){var r=this.__data__,o=e(r,n);return o<0?(++this.size,r.push([n,i])):r[o][1]=i,this}return DTe=t,DTe}var TTe,MDt;function Mve(){if(MDt)return TTe;MDt=1;var e=iyi(),t=ryi(),n=oyi(),i=syi(),r=ayi();function o(s){var a=-1,l=s==null?0:s.length;for(this.clear();++a<l;){var c=s[a];this.set(c[0],c[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=i,o.prototype.set=r,TTe=o,TTe}var kTe,ODt;function lyi(){if(ODt)return kTe;ODt=1;var e=Mve();function t(){this.__data__=new e,this.size=0}return kTe=t,kTe}var ITe,RDt;function cyi(){if(RDt)return ITe;RDt=1;function e(t){var n=this.__data__,i=n.delete(t);return this.size=n.size,i}return ITe=e,ITe}var LTe,FDt;function uyi(){if(FDt)return LTe;FDt=1;function e(t){return this.__data__.get(t)}return LTe=e,LTe}var NTe,BDt;function dyi(){if(BDt)return NTe;BDt=1;function e(t){return this.__data__.has(t)}return NTe=e,NTe}var PTe,jDt;function Kgn(){if(jDt)return PTe;jDt=1;var e=typeof fie=="object"&&fie&&fie.Object===Object&&fie;return PTe=e,PTe}var MTe,zDt;function JC(){if(zDt)return MTe;zDt=1;var e=Kgn(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return MTe=n,MTe}var OTe,VDt;function oj(){if(VDt)return OTe;VDt=1;var e=JC(),t=e.Symbol;return OTe=t,OTe}var RTe,HDt;function hyi(){if(HDt)return RTe;HDt=1;var e=oj(),t=Object.prototype,n=t.hasOwnProperty,i=t.toString,r=e?e.toStringTag:void 0;function o(s){var a=n.call(s,r),l=s[r];try{s[r]=void 0;var c=!0}catch{}var u=i.call(s);return c&&(a?s[r]=l:delete s[r]),u}return RTe=o,RTe}var FTe,WDt;function fyi(){if(WDt)return FTe;WDt=1;var e=Object.prototype,t=e.toString;function n(i){return t.call(i)}return FTe=n,FTe}var BTe,UDt;function SF(){if(UDt)return BTe;UDt=1;var e=oj(),t=hyi(),n=fyi(),i="[object Null]",r="[object Undefined]",o=e?e.toStringTag:void 0;function s(a){return a==null?a===void 0?r:i:o&&o in Object(a)?t(a):n(a)}return BTe=s,BTe}var jTe,$Dt;function Aw(){if($Dt)return jTe;$Dt=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return jTe=e,jTe}var zTe,qDt;function xQ(){if(qDt)return zTe;qDt=1;var e=SF(),t=Aw(),n="[object AsyncFunction]",i="[object Function]",r="[object GeneratorFunction]",o="[object Proxy]";function s(a){if(!t(a))return!1;var l=e(a);return l==i||l==r||l==n||l==o}return zTe=s,zTe}var VTe,GDt;function pyi(){if(GDt)return VTe;GDt=1;var e=JC(),t=e["__core-js_shared__"];return VTe=t,VTe}var HTe,KDt;function gyi(){if(KDt)return HTe;KDt=1;var e=pyi(),t=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function n(i){return!!t&&t in i}return HTe=n,HTe}var WTe,YDt;function Ygn(){if(YDt)return WTe;YDt=1;var e=Function.prototype,t=e.toString;function n(i){if(i!=null){try{return t.call(i)}catch{}try{return i+""}catch{}}return""}return WTe=n,WTe}var UTe,QDt;function myi(){if(QDt)return UTe;QDt=1;var e=xQ(),t=gyi(),n=Aw(),i=Ygn(),r=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,s=Function.prototype,a=Object.prototype,l=s.toString,c=a.hasOwnProperty,u=RegExp("^"+l.call(c).replace(r,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(h){if(!n(h)||t(h))return!1;var f=e(h)?u:o;return f.test(i(h))}return UTe=d,UTe}var $Te,ZDt;function vyi(){if(ZDt)return $Te;ZDt=1;function e(t,n){return t?.[n]}return $Te=e,$Te}var qTe,XDt;function xF(){if(XDt)return qTe;XDt=1;var e=myi(),t=vyi();function n(i,r){var o=t(i,r);return e(o)?o:void 0}return qTe=n,qTe}var GTe,JDt;function DYe(){if(JDt)return GTe;JDt=1;var e=xF(),t=JC(),n=e(t,"Map");return GTe=n,GTe}var KTe,eTt;function Ove(){if(eTt)return KTe;eTt=1;var e=xF(),t=e(Object,"create");return KTe=t,KTe}var YTe,tTt;function yyi(){if(tTt)return YTe;tTt=1;var e=Ove();function t(){this.__data__=e?e(null):{},this.size=0}return YTe=t,YTe}var QTe,nTt;function byi(){if(nTt)return QTe;nTt=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return QTe=e,QTe}var ZTe,iTt;function _yi(){if(iTt)return ZTe;iTt=1;var e=Ove(),t="__lodash_hash_undefined__",n=Object.prototype,i=n.hasOwnProperty;function r(o){var s=this.__data__;if(e){var a=s[o];return a===t?void 0:a}return i.call(s,o)?s[o]:void 0}return ZTe=r,ZTe}var XTe,rTt;function wyi(){if(rTt)return XTe;rTt=1;var e=Ove(),t=Object.prototype,n=t.hasOwnProperty;function i(r){var o=this.__data__;return e?o[r]!==void 0:n.call(o,r)}return XTe=i,XTe}var JTe,oTt;function Cyi(){if(oTt)return JTe;oTt=1;var e=Ove(),t="__lodash_hash_undefined__";function n(i,r){var o=this.__data__;return this.size+=this.has(i)?0:1,o[i]=e&&r===void 0?t:r,this}return JTe=n,JTe}var eke,sTt;function Syi(){if(sTt)return eke;sTt=1;var e=yyi(),t=byi(),n=_yi(),i=wyi(),r=Cyi();function o(s){var a=-1,l=s==null?0:s.length;for(this.clear();++a<l;){var c=s[a];this.set(c[0],c[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=i,o.prototype.set=r,eke=o,eke}var tke,aTt;function xyi(){if(aTt)return tke;aTt=1;var e=Syi(),t=Mve(),n=DYe();function i(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return tke=i,tke}var nke,lTt;function Eyi(){if(lTt)return nke;lTt=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return nke=e,nke}var ike,cTt;function Rve(){if(cTt)return ike;cTt=1;var e=Eyi();function t(n,i){var r=n.__data__;return e(i)?r[typeof i=="string"?"string":"hash"]:r.map}return ike=t,ike}var rke,uTt;function Ayi(){if(uTt)return rke;uTt=1;var e=Rve();function t(n){var i=e(this,n).delete(n);return this.size-=i?1:0,i}return rke=t,rke}var oke,dTt;function Dyi(){if(dTt)return oke;dTt=1;var e=Rve();function t(n){return e(this,n).get(n)}return oke=t,oke}var ske,hTt;function Tyi(){if(hTt)return ske;hTt=1;var e=Rve();function t(n){return e(this,n).has(n)}return ske=t,ske}var ake,fTt;function kyi(){if(fTt)return ake;fTt=1;var e=Rve();function t(n,i){var r=e(this,n),o=r.size;return r.set(n,i),this.size+=r.size==o?0:1,this}return ake=t,ake}var lke,pTt;function TYe(){if(pTt)return lke;pTt=1;var e=xyi(),t=Ayi(),n=Dyi(),i=Tyi(),r=kyi();function o(s){var a=-1,l=s==null?0:s.length;for(this.clear();++a<l;){var c=s[a];this.set(c[0],c[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=i,o.prototype.set=r,lke=o,lke}var cke,gTt;function Iyi(){if(gTt)return cke;gTt=1;var e=Mve(),t=DYe(),n=TYe(),i=200;function r(o,s){var a=this.__data__;if(a instanceof e){var l=a.__data__;if(!t||l.length<i-1)return l.push([o,s]),this.size=++a.size,this;a=this.__data__=new n(l)}return a.set(o,s),this.size=a.size,this}return cke=r,cke}var uke,mTt;function Fve(){if(mTt)return uke;mTt=1;var e=Mve(),t=lyi(),n=cyi(),i=uyi(),r=dyi(),o=Iyi();function s(a){var l=this.__data__=new e(a);this.size=l.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=i,s.prototype.has=r,s.prototype.set=o,uke=s,uke}var dke,vTt;function kYe(){if(vTt)return dke;vTt=1;function e(t,n){for(var i=-1,r=t==null?0:t.length;++i<r&&n(t[i],i,t)!==!1;);return t}return dke=e,dke}var hke,yTt;function Qgn(){if(yTt)return hke;yTt=1;var e=xF(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return hke=t,hke}var fke,bTt;function Bve(){if(bTt)return fke;bTt=1;var e=Qgn();function t(n,i,r){i=="__proto__"&&e?e(n,i,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[i]=r}return fke=t,fke}var pke,_Tt;function jve(){if(_Tt)return pke;_Tt=1;var e=Bve(),t=rj(),n=Object.prototype,i=n.hasOwnProperty;function r(o,s,a){var l=o[s];(!(i.call(o,s)&&t(l,a))||a===void 0&&!(s in o))&&e(o,s,a)}return pke=r,pke}var gke,wTt;function EQ(){if(wTt)return gke;wTt=1;var e=jve(),t=Bve();function n(i,r,o,s){var a=!o;o||(o={});for(var l=-1,c=r.length;++l<c;){var u=r[l],d=s?s(o[u],i[u],u,o,i):void 0;d===void 0&&(d=i[u]),a?t(o,u,d):e(o,u,d)}return o}return gke=n,gke}var mke,CTt;function Lyi(){if(CTt)return mke;CTt=1;function e(t,n){for(var i=-1,r=Array(t);++i<t;)r[i]=n(i);return r}return mke=e,mke}var vke,STt;function AE(){if(STt)return vke;STt=1;function e(t){return t!=null&&typeof t=="object"}return vke=e,vke}var yke,xTt;function Nyi(){if(xTt)return yke;xTt=1;var e=SF(),t=AE(),n="[object Arguments]";function i(r){return t(r)&&e(r)==n}return yke=i,yke}var bke,ETt;function AQ(){if(ETt)return bke;ETt=1;var e=Nyi(),t=AE(),n=Object.prototype,i=n.hasOwnProperty,r=n.propertyIsEnumerable,o=e((function(){return arguments})())?e:function(s){return t(s)&&i.call(s,"callee")&&!r.call(s,"callee")};return bke=o,bke}var _ke,ATt;function _f(){if(ATt)return _ke;ATt=1;var e=Array.isArray;return _ke=e,_ke}var qW={exports:{}},wke,DTt;function Pyi(){if(DTt)return wke;DTt=1;function e(){return!1}return wke=e,wke}qW.exports;var TTt;function sj(){return TTt||(TTt=1,(function(e,t){var n=JC(),i=Pyi(),r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===r,a=s?n.Buffer:void 0,l=a?a.isBuffer:void 0,c=l||i;e.exports=c})(qW,qW.exports)),qW.exports}var Cke,kTt;function zve(){if(kTt)return Cke;kTt=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(i,r){var o=typeof i;return r=r??e,!!r&&(o=="number"||o!="symbol"&&t.test(i))&&i>-1&&i%1==0&&i<r}return Cke=n,Cke}var Ske,ITt;function IYe(){if(ITt)return Ske;ITt=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Ske=t,Ske}var xke,LTt;function Myi(){if(LTt)return xke;LTt=1;var e=SF(),t=IYe(),n=AE(),i="[object Arguments]",r="[object Array]",o="[object Boolean]",s="[object Date]",a="[object Error]",l="[object Function]",c="[object Map]",u="[object Number]",d="[object Object]",h="[object RegExp]",f="[object Set]",p="[object String]",g="[object WeakMap]",m="[object ArrayBuffer]",v="[object DataView]",y="[object Float32Array]",b="[object Float64Array]",w="[object Int8Array]",E="[object Int16Array]",A="[object Int32Array]",D="[object Uint8Array]",T="[object Uint8ClampedArray]",M="[object Uint16Array]",P="[object Uint32Array]",F={};F[y]=F[b]=F[w]=F[E]=F[A]=F[D]=F[T]=F[M]=F[P]=!0,F[i]=F[r]=F[m]=F[o]=F[v]=F[s]=F[a]=F[l]=F[c]=F[u]=F[d]=F[h]=F[f]=F[p]=F[g]=!1;function N(j){return n(j)&&t(j.length)&&!!F[e(j)]}return xke=N,xke}var Eke,NTt;function Vve(){if(NTt)return Eke;NTt=1;function e(t){return function(n){return t(n)}}return Eke=e,Eke}var GW={exports:{}};GW.exports;var PTt;function LYe(){return PTt||(PTt=1,(function(e,t){var n=Kgn(),i=t&&!t.nodeType&&t,r=i&&!0&&e&&!e.nodeType&&e,o=r&&r.exports===i,s=o&&n.process,a=(function(){try{var l=r&&r.require&&r.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}})();e.exports=a})(GW,GW.exports)),GW.exports}var Ake,MTt;function DQ(){if(MTt)return Ake;MTt=1;var e=Myi(),t=Vve(),n=LYe(),i=n&&n.isTypedArray,r=i?t(i):e;return Ake=r,Ake}var Dke,OTt;function Zgn(){if(OTt)return Dke;OTt=1;var e=Lyi(),t=AQ(),n=_f(),i=sj(),r=zve(),o=DQ(),s=Object.prototype,a=s.hasOwnProperty;function l(c,u){var d=n(c),h=!d&&t(c),f=!d&&!h&&i(c),p=!d&&!h&&!f&&o(c),g=d||h||f||p,m=g?e(c.length,String):[],v=m.length;for(var y in c)(u||a.call(c,y))&&!(g&&(y=="length"||f&&(y=="offset"||y=="parent")||p&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||r(y,v)))&&m.push(y);return m}return Dke=l,Dke}var Tke,RTt;function Hve(){if(RTt)return Tke;RTt=1;var e=Object.prototype;function t(n){var i=n&&n.constructor,r=typeof i=="function"&&i.prototype||e;return n===r}return Tke=t,Tke}var kke,FTt;function Xgn(){if(FTt)return kke;FTt=1;function e(t,n){return function(i){return t(n(i))}}return kke=e,kke}var Ike,BTt;function Oyi(){if(BTt)return Ike;BTt=1;var e=Xgn(),t=e(Object.keys,Object);return Ike=t,Ike}var Lke,jTt;function NYe(){if(jTt)return Lke;jTt=1;var e=Hve(),t=Oyi(),n=Object.prototype,i=n.hasOwnProperty;function r(o){if(!e(o))return t(o);var s=[];for(var a in Object(o))i.call(o,a)&&a!="constructor"&&s.push(a);return s}return Lke=r,Lke}var Nke,zTt;function LT(){if(zTt)return Nke;zTt=1;var e=xQ(),t=IYe();function n(i){return i!=null&&t(i.length)&&!e(i)}return Nke=n,Nke}var Pke,VTt;function YN(){if(VTt)return Pke;VTt=1;var e=Zgn(),t=NYe(),n=LT();function i(r){return n(r)?e(r):t(r)}return Pke=i,Pke}var Mke,HTt;function Ryi(){if(HTt)return Mke;HTt=1;var e=EQ(),t=YN();function n(i,r){return i&&e(r,t(r),i)}return Mke=n,Mke}var Oke,WTt;function Fyi(){if(WTt)return Oke;WTt=1;function e(t){var n=[];if(t!=null)for(var i in Object(t))n.push(i);return n}return Oke=e,Oke}var Rke,UTt;function Byi(){if(UTt)return Rke;UTt=1;var e=Aw(),t=Hve(),n=Fyi(),i=Object.prototype,r=i.hasOwnProperty;function o(s){if(!e(s))return n(s);var a=t(s),l=[];for(var c in s)c=="constructor"&&(a||!r.call(s,c))||l.push(c);return l}return Rke=o,Rke}var Fke,$Tt;function EF(){if($Tt)return Fke;$Tt=1;var e=Zgn(),t=Byi(),n=LT();function i(r){return n(r)?e(r,!0):t(r)}return Fke=i,Fke}var Bke,qTt;function jyi(){if(qTt)return Bke;qTt=1;var e=EQ(),t=EF();function n(i,r){return i&&e(r,t(r),i)}return Bke=n,Bke}var KW={exports:{}};KW.exports;var GTt;function Jgn(){return GTt||(GTt=1,(function(e,t){var n=JC(),i=t&&!t.nodeType&&t,r=i&&!0&&e&&!e.nodeType&&e,o=r&&r.exports===i,s=o?n.Buffer:void 0,a=s?s.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var d=c.length,h=a?a(d):new c.constructor(d);return c.copy(h),h}e.exports=l})(KW,KW.exports)),KW.exports}var jke,KTt;function emn(){if(KTt)return jke;KTt=1;function e(t,n){var i=-1,r=t.length;for(n||(n=Array(r));++i<r;)n[i]=t[i];return n}return jke=e,jke}var zke,YTt;function tmn(){if(YTt)return zke;YTt=1;function e(t,n){for(var i=-1,r=t==null?0:t.length,o=0,s=[];++i<r;){var a=t[i];n(a,i,t)&&(s[o++]=a)}return s}return zke=e,zke}var Vke,QTt;function nmn(){if(QTt)return Vke;QTt=1;function e(){return[]}return Vke=e,Vke}var Hke,ZTt;function PYe(){if(ZTt)return Hke;ZTt=1;var e=tmn(),t=nmn(),n=Object.prototype,i=n.propertyIsEnumerable,r=Object.getOwnPropertySymbols,o=r?function(s){return s==null?[]:(s=Object(s),e(r(s),function(a){return i.call(s,a)}))}:t;return Hke=o,Hke}var Wke,XTt;function zyi(){if(XTt)return Wke;XTt=1;var e=EQ(),t=PYe();function n(i,r){return e(i,t(i),r)}return Wke=n,Wke}var Uke,JTt;function MYe(){if(JTt)return Uke;JTt=1;function e(t,n){for(var i=-1,r=n.length,o=t.length;++i<r;)t[o+i]=n[i];return t}return Uke=e,Uke}var $ke,ekt;function Wve(){if(ekt)return $ke;ekt=1;var e=Xgn(),t=e(Object.getPrototypeOf,Object);return $ke=t,$ke}var qke,tkt;function imn(){if(tkt)return qke;tkt=1;var e=MYe(),t=Wve(),n=PYe(),i=nmn(),r=Object.getOwnPropertySymbols,o=r?function(s){for(var a=[];s;)e(a,n(s)),s=t(s);return a}:i;return qke=o,qke}var Gke,nkt;function Vyi(){if(nkt)return Gke;nkt=1;var e=EQ(),t=imn();function n(i,r){return e(i,t(i),r)}return Gke=n,Gke}var Kke,ikt;function rmn(){if(ikt)return Kke;ikt=1;var e=MYe(),t=_f();function n(i,r,o){var s=r(i);return t(i)?s:e(s,o(i))}return Kke=n,Kke}var Yke,rkt;function omn(){if(rkt)return Yke;rkt=1;var e=rmn(),t=PYe(),n=YN();function i(r){return e(r,n,t)}return Yke=i,Yke}var Qke,okt;function Hyi(){if(okt)return Qke;okt=1;var e=rmn(),t=imn(),n=EF();function i(r){return e(r,n,t)}return Qke=i,Qke}var Zke,skt;function Wyi(){if(skt)return Zke;skt=1;var e=xF(),t=JC(),n=e(t,"DataView");return Zke=n,Zke}var Xke,akt;function Uyi(){if(akt)return Xke;akt=1;var e=xF(),t=JC(),n=e(t,"Promise");return Xke=n,Xke}var Jke,lkt;function smn(){if(lkt)return Jke;lkt=1;var e=xF(),t=JC(),n=e(t,"Set");return Jke=n,Jke}var eIe,ckt;function $yi(){if(ckt)return eIe;ckt=1;var e=xF(),t=JC(),n=e(t,"WeakMap");return eIe=n,eIe}var tIe,ukt;function aj(){if(ukt)return tIe;ukt=1;var e=Wyi(),t=DYe(),n=Uyi(),i=smn(),r=$yi(),o=SF(),s=Ygn(),a="[object Map]",l="[object Object]",c="[object Promise]",u="[object Set]",d="[object WeakMap]",h="[object DataView]",f=s(e),p=s(t),g=s(n),m=s(i),v=s(r),y=o;return(e&&y(new e(new ArrayBuffer(1)))!=h||t&&y(new t)!=a||n&&y(n.resolve())!=c||i&&y(new i)!=u||r&&y(new r)!=d)&&(y=function(b){var w=o(b),E=w==l?b.constructor:void 0,A=E?s(E):"";if(A)switch(A){case f:return h;case p:return a;case g:return c;case m:return u;case v:return d}return w}),tIe=y,tIe}var nIe,dkt;function qyi(){if(dkt)return nIe;dkt=1;var e=Object.prototype,t=e.hasOwnProperty;function n(i){var r=i.length,o=new i.constructor(r);return r&&typeof i[0]=="string"&&t.call(i,"index")&&(o.index=i.index,o.input=i.input),o}return nIe=n,nIe}var iIe,hkt;function amn(){if(hkt)return iIe;hkt=1;var e=JC(),t=e.Uint8Array;return iIe=t,iIe}var rIe,fkt;function OYe(){if(fkt)return rIe;fkt=1;var e=amn();function t(n){var i=new n.constructor(n.byteLength);return new e(i).set(new e(n)),i}return rIe=t,rIe}var oIe,pkt;function Gyi(){if(pkt)return oIe;pkt=1;var e=OYe();function t(n,i){var r=i?e(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}return oIe=t,oIe}var sIe,gkt;function Kyi(){if(gkt)return sIe;gkt=1;var e=/\w*$/;function t(n){var i=new n.constructor(n.source,e.exec(n));return i.lastIndex=n.lastIndex,i}return sIe=t,sIe}var aIe,mkt;function Yyi(){if(mkt)return aIe;mkt=1;var e=oj(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;function i(r){return n?Object(n.call(r)):{}}return aIe=i,aIe}var lIe,vkt;function lmn(){if(vkt)return lIe;vkt=1;var e=OYe();function t(n,i){var r=i?e(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}return lIe=t,lIe}var cIe,ykt;function Qyi(){if(ykt)return cIe;ykt=1;var e=OYe(),t=Gyi(),n=Kyi(),i=Yyi(),r=lmn(),o="[object Boolean]",s="[object Date]",a="[object Map]",l="[object Number]",c="[object RegExp]",u="[object Set]",d="[object String]",h="[object Symbol]",f="[object ArrayBuffer]",p="[object DataView]",g="[object Float32Array]",m="[object Float64Array]",v="[object Int8Array]",y="[object Int16Array]",b="[object Int32Array]",w="[object Uint8Array]",E="[object Uint8ClampedArray]",A="[object Uint16Array]",D="[object Uint32Array]";function T(M,P,F){var N=M.constructor;switch(P){case f:return e(M);case o:case s:return new N(+M);case p:return t(M,F);case g:case m:case v:case y:case b:case w:case E:case A:case D:return r(M,F);case a:return new N;case l:case d:return new N(M);case c:return n(M);case u:return new N;case h:return i(M)}}return cIe=T,cIe}var uIe,bkt;function cmn(){if(bkt)return uIe;bkt=1;var e=Aw(),t=Object.create,n=(function(){function i(){}return function(r){if(!e(r))return{};if(t)return t(r);i.prototype=r;var o=new i;return i.prototype=void 0,o}})();return uIe=n,uIe}var dIe,_kt;function umn(){if(_kt)return dIe;_kt=1;var e=cmn(),t=Wve(),n=Hve();function i(r){return typeof r.constructor=="function"&&!n(r)?e(t(r)):{}}return dIe=i,dIe}var hIe,wkt;function Zyi(){if(wkt)return hIe;wkt=1;var e=aj(),t=AE(),n="[object Map]";function i(r){return t(r)&&e(r)==n}return hIe=i,hIe}var fIe,Ckt;function Xyi(){if(Ckt)return fIe;Ckt=1;var e=Zyi(),t=Vve(),n=LYe(),i=n&&n.isMap,r=i?t(i):e;return fIe=r,fIe}var pIe,Skt;function Jyi(){if(Skt)return pIe;Skt=1;var e=aj(),t=AE(),n="[object Set]";function i(r){return t(r)&&e(r)==n}return pIe=i,pIe}var gIe,xkt;function ebi(){if(xkt)return gIe;xkt=1;var e=Jyi(),t=Vve(),n=LYe(),i=n&&n.isSet,r=i?t(i):e;return gIe=r,gIe}var mIe,Ekt;function dmn(){if(Ekt)return mIe;Ekt=1;var e=Fve(),t=kYe(),n=jve(),i=Ryi(),r=jyi(),o=Jgn(),s=emn(),a=zyi(),l=Vyi(),c=omn(),u=Hyi(),d=aj(),h=qyi(),f=Qyi(),p=umn(),g=_f(),m=sj(),v=Xyi(),y=Aw(),b=ebi(),w=YN(),E=EF(),A=1,D=2,T=4,M="[object Arguments]",P="[object Array]",F="[object Boolean]",N="[object Date]",j="[object Error]",W="[object Function]",J="[object GeneratorFunction]",ee="[object Map]",Q="[object Number]",H="[object Object]",q="[object RegExp]",le="[object Set]",Y="[object String]",G="[object Symbol]",pe="[object WeakMap]",U="[object ArrayBuffer]",K="[object DataView]",ie="[object Float32Array]",ce="[object Float64Array]",de="[object Int8Array]",oe="[object Int16Array]",me="[object Int32Array]",Ce="[object Uint8Array]",Se="[object Uint8ClampedArray]",De="[object Uint16Array]",Me="[object Uint32Array]",qe={};qe[M]=qe[P]=qe[U]=qe[K]=qe[F]=qe[N]=qe[ie]=qe[ce]=qe[de]=qe[oe]=qe[me]=qe[ee]=qe[Q]=qe[H]=qe[q]=qe[le]=qe[Y]=qe[G]=qe[Ce]=qe[Se]=qe[De]=qe[Me]=!0,qe[j]=qe[W]=qe[pe]=!1;function $(he,Ie,Be,ze,Ye,it){var ft,ct=Ie&A,et=Ie&D,ut=Ie&T;if(Be&&(ft=Ye?Be(he,ze,Ye,it):Be(he)),ft!==void 0)return ft;if(!y(he))return he;var wt=g(he);if(wt){if(ft=h(he),!ct)return s(he,ft)}else{var pt=d(he),_t=pt==W||pt==J;if(m(he))return o(he,ct);if(pt==H||pt==M||_t&&!Ye){if(ft=et||_t?{}:p(he),!ct)return et?l(he,r(ft,he)):a(he,i(ft,he))}else{if(!qe[pt])return Ye?he:{};ft=f(he,pt,ct)}}it||(it=new e);var Rt=it.get(he);if(Rt)return Rt;it.set(he,ft),b(he)?he.forEach(function(Gt){ft.add($(Gt,Ie,Be,Gt,he,it))}):v(he)&&he.forEach(function(Gt,Kt){ft.set(Kt,$(Gt,Ie,Be,Kt,he,it))});var Yt=ut?et?u:c:et?E:w,Ut=wt?void 0:Yt(he);return t(Ut||he,function(Gt,Kt){Ut&&(Kt=Gt,Gt=he[Kt]),n(ft,Kt,$(Gt,Ie,Be,Kt,he,it))}),ft}return mIe=$,mIe}var vIe,Akt;function tbi(){if(Akt)return vIe;Akt=1;var e=dmn(),t=4;function n(i){return e(i,t)}return vIe=n,vIe}var yIe,Dkt;function RYe(){if(Dkt)return yIe;Dkt=1;function e(t){return function(){return t}}return yIe=e,yIe}var bIe,Tkt;function nbi(){if(Tkt)return bIe;Tkt=1;function e(t){return function(n,i,r){for(var o=-1,s=Object(n),a=r(n),l=a.length;l--;){var c=a[t?l:++o];if(i(s[c],c,s)===!1)break}return n}}return bIe=e,bIe}var _Ie,kkt;function FYe(){if(kkt)return _Ie;kkt=1;var e=nbi(),t=e();return _Ie=t,_Ie}var wIe,Ikt;function BYe(){if(Ikt)return wIe;Ikt=1;var e=FYe(),t=YN();function n(i,r){return i&&e(i,r,t)}return wIe=n,wIe}var CIe,Lkt;function ibi(){if(Lkt)return CIe;Lkt=1;var e=LT();function t(n,i){return function(r,o){if(r==null)return r;if(!e(r))return n(r,o);for(var s=r.length,a=i?s:-1,l=Object(r);(i?a--:++a<s)&&o(l[a],a,l)!==!1;);return r}}return CIe=t,CIe}var SIe,Nkt;function Uve(){if(Nkt)return SIe;Nkt=1;var e=BYe(),t=ibi(),n=t(e);return SIe=n,SIe}var xIe,Pkt;function AF(){if(Pkt)return xIe;Pkt=1;function e(t){return t}return xIe=e,xIe}var EIe,Mkt;function hmn(){if(Mkt)return EIe;Mkt=1;var e=AF();function t(n){return typeof n=="function"?n:e}return EIe=t,EIe}var AIe,Okt;function fmn(){if(Okt)return AIe;Okt=1;var e=kYe(),t=Uve(),n=hmn(),i=_f();function r(o,s){var a=i(o)?e:t;return a(o,n(s))}return AIe=r,AIe}var DIe,Rkt;function pmn(){return Rkt||(Rkt=1,DIe=fmn()),DIe}var TIe,Fkt;function rbi(){if(Fkt)return TIe;Fkt=1;var e=Uve();function t(n,i){var r=[];return e(n,function(o,s,a){i(o,s,a)&&r.push(o)}),r}return TIe=t,TIe}var kIe,Bkt;function obi(){if(Bkt)return kIe;Bkt=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return kIe=t,kIe}var IIe,jkt;function sbi(){if(jkt)return IIe;jkt=1;function e(t){return this.__data__.has(t)}return IIe=e,IIe}var LIe,zkt;function gmn(){if(zkt)return LIe;zkt=1;var e=TYe(),t=obi(),n=sbi();function i(r){var o=-1,s=r==null?0:r.length;for(this.__data__=new e;++o<s;)this.add(r[o])}return i.prototype.add=i.prototype.push=t,i.prototype.has=n,LIe=i,LIe}var NIe,Vkt;function abi(){if(Vkt)return NIe;Vkt=1;function e(t,n){for(var i=-1,r=t==null?0:t.length;++i<r;)if(n(t[i],i,t))return!0;return!1}return NIe=e,NIe}var PIe,Hkt;function mmn(){if(Hkt)return PIe;Hkt=1;function e(t,n){return t.has(n)}return PIe=e,PIe}var MIe,Wkt;function vmn(){if(Wkt)return MIe;Wkt=1;var e=gmn(),t=abi(),n=mmn(),i=1,r=2;function o(s,a,l,c,u,d){var h=l&i,f=s.length,p=a.length;if(f!=p&&!(h&&p>f))return!1;var g=d.get(s),m=d.get(a);if(g&&m)return g==a&&m==s;var v=-1,y=!0,b=l&r?new e:void 0;for(d.set(s,a),d.set(a,s);++v<f;){var w=s[v],E=a[v];if(c)var A=h?c(E,w,v,a,s,d):c(w,E,v,s,a,d);if(A!==void 0){if(A)continue;y=!1;break}if(b){if(!t(a,function(D,T){if(!n(b,T)&&(w===D||u(w,D,l,c,d)))return b.push(T)})){y=!1;break}}else if(!(w===E||u(w,E,l,c,d))){y=!1;break}}return d.delete(s),d.delete(a),y}return MIe=o,MIe}var OIe,Ukt;function lbi(){if(Ukt)return OIe;Ukt=1;function e(t){var n=-1,i=Array(t.size);return t.forEach(function(r,o){i[++n]=[o,r]}),i}return OIe=e,OIe}var RIe,$kt;function jYe(){if($kt)return RIe;$kt=1;function e(t){var n=-1,i=Array(t.size);return t.forEach(function(r){i[++n]=r}),i}return RIe=e,RIe}var FIe,qkt;function cbi(){if(qkt)return FIe;qkt=1;var e=oj(),t=amn(),n=rj(),i=vmn(),r=lbi(),o=jYe(),s=1,a=2,l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Map]",h="[object Number]",f="[object RegExp]",p="[object Set]",g="[object String]",m="[object Symbol]",v="[object ArrayBuffer]",y="[object DataView]",b=e?e.prototype:void 0,w=b?b.valueOf:void 0;function E(A,D,T,M,P,F,N){switch(T){case y:if(A.byteLength!=D.byteLength||A.byteOffset!=D.byteOffset)return!1;A=A.buffer,D=D.buffer;case v:return!(A.byteLength!=D.byteLength||!F(new t(A),new t(D)));case l:case c:case h:return n(+A,+D);case u:return A.name==D.name&&A.message==D.message;case f:case g:return A==D+"";case d:var j=r;case p:var W=M&s;if(j||(j=o),A.size!=D.size&&!W)return!1;var J=N.get(A);if(J)return J==D;M|=a,N.set(A,D);var ee=i(j(A),j(D),M,P,F,N);return N.delete(A),ee;case m:if(w)return w.call(A)==w.call(D)}return!1}return FIe=E,FIe}var BIe,Gkt;function ubi(){if(Gkt)return BIe;Gkt=1;var e=omn(),t=1,n=Object.prototype,i=n.hasOwnProperty;function r(o,s,a,l,c,u){var d=a&t,h=e(o),f=h.length,p=e(s),g=p.length;if(f!=g&&!d)return!1;for(var m=f;m--;){var v=h[m];if(!(d?v in s:i.call(s,v)))return!1}var y=u.get(o),b=u.get(s);if(y&&b)return y==s&&b==o;var w=!0;u.set(o,s),u.set(s,o);for(var E=d;++m<f;){v=h[m];var A=o[v],D=s[v];if(l)var T=d?l(D,A,v,s,o,u):l(A,D,v,o,s,u);if(!(T===void 0?A===D||c(A,D,a,l,u):T)){w=!1;break}E||(E=v=="constructor")}if(w&&!E){var M=o.constructor,P=s.constructor;M!=P&&"constructor"in o&&"constructor"in s&&!(typeof M=="function"&&M instanceof M&&typeof P=="function"&&P instanceof P)&&(w=!1)}return u.delete(o),u.delete(s),w}return BIe=r,BIe}var jIe,Kkt;function dbi(){if(Kkt)return jIe;Kkt=1;var e=Fve(),t=vmn(),n=cbi(),i=ubi(),r=aj(),o=_f(),s=sj(),a=DQ(),l=1,c="[object Arguments]",u="[object Array]",d="[object Object]",h=Object.prototype,f=h.hasOwnProperty;function p(g,m,v,y,b,w){var E=o(g),A=o(m),D=E?u:r(g),T=A?u:r(m);D=D==c?d:D,T=T==c?d:T;var M=D==d,P=T==d,F=D==T;if(F&&s(g)){if(!s(m))return!1;E=!0,M=!1}if(F&&!M)return w||(w=new e),E||a(g)?t(g,m,v,y,b,w):n(g,m,D,v,y,b,w);if(!(v&l)){var N=M&&f.call(g,"__wrapped__"),j=P&&f.call(m,"__wrapped__");if(N||j){var W=N?g.value():g,J=j?m.value():m;return w||(w=new e),b(W,J,v,y,w)}}return F?(w||(w=new e),i(g,m,v,y,b,w)):!1}return jIe=p,jIe}var zIe,Ykt;function ymn(){if(Ykt)return zIe;Ykt=1;var e=dbi(),t=AE();function n(i,r,o,s,a){return i===r?!0:i==null||r==null||!t(i)&&!t(r)?i!==i&&r!==r:e(i,r,o,s,n,a)}return zIe=n,zIe}var VIe,Qkt;function hbi(){if(Qkt)return VIe;Qkt=1;var e=Fve(),t=ymn(),n=1,i=2;function r(o,s,a,l){var c=a.length,u=c,d=!l;if(o==null)return!u;for(o=Object(o);c--;){var h=a[c];if(d&&h[2]?h[1]!==o[h[0]]:!(h[0]in o))return!1}for(;++c<u;){h=a[c];var f=h[0],p=o[f],g=h[1];if(d&&h[2]){if(p===void 0&&!(f in o))return!1}else{var m=new e;if(l)var v=l(p,g,f,o,s,m);if(!(v===void 0?t(g,p,n|i,l,m):v))return!1}}return!0}return VIe=r,VIe}var HIe,Zkt;function bmn(){if(Zkt)return HIe;Zkt=1;var e=Aw();function t(n){return n===n&&!e(n)}return HIe=t,HIe}var WIe,Xkt;function fbi(){if(Xkt)return WIe;Xkt=1;var e=bmn(),t=YN();function n(i){for(var r=t(i),o=r.length;o--;){var s=r[o],a=i[s];r[o]=[s,a,e(a)]}return r}return WIe=n,WIe}var UIe,Jkt;function _mn(){if(Jkt)return UIe;Jkt=1;function e(t,n){return function(i){return i==null?!1:i[t]===n&&(n!==void 0||t in Object(i))}}return UIe=e,UIe}var $Ie,eIt;function pbi(){if(eIt)return $Ie;eIt=1;var e=hbi(),t=fbi(),n=_mn();function i(r){var o=t(r);return o.length==1&&o[0][2]?n(o[0][0],o[0][1]):function(s){return s===r||e(s,r,o)}}return $Ie=i,$Ie}var qIe,tIt;function lj(){if(tIt)return qIe;tIt=1;var e=SF(),t=AE(),n="[object Symbol]";function i(r){return typeof r=="symbol"||t(r)&&e(r)==n}return qIe=i,qIe}var GIe,nIt;function zYe(){if(nIt)return GIe;nIt=1;var e=_f(),t=lj(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;function r(o,s){if(e(o))return!1;var a=typeof o;return a=="number"||a=="symbol"||a=="boolean"||o==null||t(o)?!0:i.test(o)||!n.test(o)||s!=null&&o in Object(s)}return GIe=r,GIe}var KIe,iIt;function gbi(){if(iIt)return KIe;iIt=1;var e=TYe(),t="Expected a function";function n(i,r){if(typeof i!="function"||r!=null&&typeof r!="function")throw new TypeError(t);var o=function(){var s=arguments,a=r?r.apply(this,s):s[0],l=o.cache;if(l.has(a))return l.get(a);var c=i.apply(this,s);return o.cache=l.set(a,c)||l,c};return o.cache=new(n.Cache||e),o}return n.Cache=e,KIe=n,KIe}var YIe,rIt;function mbi(){if(rIt)return YIe;rIt=1;var e=gbi(),t=500;function n(i){var r=e(i,function(s){return o.size===t&&o.clear(),s}),o=r.cache;return r}return YIe=n,YIe}var QIe,oIt;function vbi(){if(oIt)return QIe;oIt=1;var e=mbi(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,i=e(function(r){var o=[];return r.charCodeAt(0)===46&&o.push(""),r.replace(t,function(s,a,l,c){o.push(l?c.replace(n,"$1"):a||s)}),o});return QIe=i,QIe}var ZIe,sIt;function $ve(){if(sIt)return ZIe;sIt=1;function e(t,n){for(var i=-1,r=t==null?0:t.length,o=Array(r);++i<r;)o[i]=n(t[i],i,t);return o}return ZIe=e,ZIe}var XIe,aIt;function ybi(){if(aIt)return XIe;aIt=1;var e=oj(),t=$ve(),n=_f(),i=lj(),r=e?e.prototype:void 0,o=r?r.toString:void 0;function s(a){if(typeof a=="string")return a;if(n(a))return t(a,s)+"";if(i(a))return o?o.call(a):"";var l=a+"";return l=="0"&&1/a==-1/0?"-0":l}return XIe=s,XIe}var JIe,lIt;function wmn(){if(lIt)return JIe;lIt=1;var e=ybi();function t(n){return n==null?"":e(n)}return JIe=t,JIe}var eLe,cIt;function qve(){if(cIt)return eLe;cIt=1;var e=_f(),t=zYe(),n=vbi(),i=wmn();function r(o,s){return e(o)?o:t(o,s)?[o]:n(i(o))}return eLe=r,eLe}var tLe,uIt;function TQ(){if(uIt)return tLe;uIt=1;var e=lj();function t(n){if(typeof n=="string"||e(n))return n;var i=n+"";return i=="0"&&1/n==-1/0?"-0":i}return tLe=t,tLe}var nLe,dIt;function Gve(){if(dIt)return nLe;dIt=1;var e=qve(),t=TQ();function n(i,r){r=e(r,i);for(var o=0,s=r.length;i!=null&&o<s;)i=i[t(r[o++])];return o&&o==s?i:void 0}return nLe=n,nLe}var iLe,hIt;function bbi(){if(hIt)return iLe;hIt=1;var e=Gve();function t(n,i,r){var o=n==null?void 0:e(n,i);return o===void 0?r:o}return iLe=t,iLe}var rLe,fIt;function _bi(){if(fIt)return rLe;fIt=1;function e(t,n){return t!=null&&n in Object(t)}return rLe=e,rLe}var oLe,pIt;function Cmn(){if(pIt)return oLe;pIt=1;var e=qve(),t=AQ(),n=_f(),i=zve(),r=IYe(),o=TQ();function s(a,l,c){l=e(l,a);for(var u=-1,d=l.length,h=!1;++u<d;){var f=o(l[u]);if(!(h=a!=null&&c(a,f)))break;a=a[f]}return h||++u!=d?h:(d=a==null?0:a.length,!!d&&r(d)&&i(f,d)&&(n(a)||t(a)))}return oLe=s,oLe}var sLe,gIt;function Smn(){if(gIt)return sLe;gIt=1;var e=_bi(),t=Cmn();function n(i,r){return i!=null&&t(i,r,e)}return sLe=n,sLe}var aLe,mIt;function wbi(){if(mIt)return aLe;mIt=1;var e=ymn(),t=bbi(),n=Smn(),i=zYe(),r=bmn(),o=_mn(),s=TQ(),a=1,l=2;function c(u,d){return i(u)&&r(d)?o(s(u),d):function(h){var f=t(h,u);return f===void 0&&f===d?n(h,u):e(d,f,a|l)}}return aLe=c,aLe}var lLe,vIt;function xmn(){if(vIt)return lLe;vIt=1;function e(t){return function(n){return n?.[t]}}return lLe=e,lLe}var cLe,yIt;function Cbi(){if(yIt)return cLe;yIt=1;var e=Gve();function t(n){return function(i){return e(i,n)}}return cLe=t,cLe}var uLe,bIt;function Sbi(){if(bIt)return uLe;bIt=1;var e=xmn(),t=Cbi(),n=zYe(),i=TQ();function r(o){return n(o)?e(i(o)):t(o)}return uLe=r,uLe}var dLe,_It;function NT(){if(_It)return dLe;_It=1;var e=pbi(),t=wbi(),n=AF(),i=_f(),r=Sbi();function o(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?i(s)?t(s[0],s[1]):e(s):r(s)}return dLe=o,dLe}var hLe,wIt;function Emn(){if(wIt)return hLe;wIt=1;var e=tmn(),t=rbi(),n=NT(),i=_f();function r(o,s){var a=i(o)?e:t;return a(o,n(s,3))}return hLe=r,hLe}var fLe,CIt;function xbi(){if(CIt)return fLe;CIt=1;var e=Object.prototype,t=e.hasOwnProperty;function n(i,r){return i!=null&&t.call(i,r)}return fLe=n,fLe}var pLe,SIt;function Amn(){if(SIt)return pLe;SIt=1;var e=xbi(),t=Cmn();function n(i,r){return i!=null&&t(i,r,e)}return pLe=n,pLe}var gLe,xIt;function Ebi(){if(xIt)return gLe;xIt=1;var e=NYe(),t=aj(),n=AQ(),i=_f(),r=LT(),o=sj(),s=Hve(),a=DQ(),l="[object Map]",c="[object Set]",u=Object.prototype,d=u.hasOwnProperty;function h(f){if(f==null)return!0;if(r(f)&&(i(f)||typeof f=="string"||typeof f.splice=="function"||o(f)||a(f)||n(f)))return!f.length;var p=t(f);if(p==l||p==c)return!f.size;if(s(f))return!e(f).length;for(var g in f)if(d.call(f,g))return!1;return!0}return gLe=h,gLe}var mLe,EIt;function Dmn(){if(EIt)return mLe;EIt=1;function e(t){return t===void 0}return mLe=e,mLe}var vLe,AIt;function Tmn(){if(AIt)return vLe;AIt=1;var e=Uve(),t=LT();function n(i,r){var o=-1,s=t(i)?Array(i.length):[];return e(i,function(a,l,c){s[++o]=r(a,l,c)}),s}return vLe=n,vLe}var yLe,DIt;function kmn(){if(DIt)return yLe;DIt=1;var e=$ve(),t=NT(),n=Tmn(),i=_f();function r(o,s){var a=i(o)?e:n;return a(o,t(s,3))}return yLe=r,yLe}var bLe,TIt;function Abi(){if(TIt)return bLe;TIt=1;function e(t,n,i,r){var o=-1,s=t==null?0:t.length;for(r&&s&&(i=t[++o]);++o<s;)i=n(i,t[o],o,t);return i}return bLe=e,bLe}var _Le,kIt;function Dbi(){if(kIt)return _Le;kIt=1;function e(t,n,i,r,o){return o(t,function(s,a,l){i=r?(r=!1,s):n(i,s,a,l)}),i}return _Le=e,_Le}var wLe,IIt;function Imn(){if(IIt)return wLe;IIt=1;var e=Abi(),t=Uve(),n=NT(),i=Dbi(),r=_f();function o(s,a,l){var c=r(s)?e:i,u=arguments.length<3;return c(s,n(a,4),l,u,t)}return wLe=o,wLe}var CLe,LIt;function Tbi(){if(LIt)return CLe;LIt=1;var e=SF(),t=_f(),n=AE(),i="[object String]";function r(o){return typeof o=="string"||!t(o)&&n(o)&&e(o)==i}return CLe=r,CLe}var SLe,NIt;function kbi(){if(NIt)return SLe;NIt=1;var e=xmn(),t=e("length");return SLe=t,SLe}var xLe,PIt;function Ibi(){if(PIt)return xLe;PIt=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",r=t+n+i,o="\\ufe0e\\ufe0f",s="\\u200d",a=RegExp("["+s+e+r+o+"]");function l(c){return a.test(c)}return xLe=l,xLe}var ELe,MIt;function Lbi(){if(MIt)return ELe;MIt=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",r=t+n+i,o="\\ufe0e\\ufe0f",s="["+e+"]",a="["+r+"]",l="\\ud83c[\\udffb-\\udfff]",c="(?:"+a+"|"+l+")",u="[^"+e+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",f="\\u200d",p=c+"?",g="["+o+"]?",m="(?:"+f+"(?:"+[u,d,h].join("|")+")"+g+p+")*",v=g+p+m,y="(?:"+[u+a+"?",a,d,h,s].join("|")+")",b=RegExp(l+"(?="+l+")|"+y+v,"g");function w(E){for(var A=b.lastIndex=0;b.test(E);)++A;return A}return ELe=w,ELe}var ALe,OIt;function Nbi(){if(OIt)return ALe;OIt=1;var e=kbi(),t=Ibi(),n=Lbi();function i(r){return t(r)?n(r):e(r)}return ALe=i,ALe}var DLe,RIt;function Pbi(){if(RIt)return DLe;RIt=1;var e=NYe(),t=aj(),n=LT(),i=Tbi(),r=Nbi(),o="[object Map]",s="[object Set]";function a(l){if(l==null)return 0;if(n(l))return i(l)?r(l):l.length;var c=t(l);return c==o||c==s?l.size:e(l).length}return DLe=a,DLe}var TLe,FIt;function Mbi(){if(FIt)return TLe;FIt=1;var e=kYe(),t=cmn(),n=BYe(),i=NT(),r=Wve(),o=_f(),s=sj(),a=xQ(),l=Aw(),c=DQ();function u(d,h,f){var p=o(d),g=p||s(d)||c(d);if(h=i(h,4),f==null){var m=d&&d.constructor;g?f=p?new m:[]:l(d)?f=a(m)?t(r(d)):{}:f={}}return(g?e:n)(d,function(v,y,b){return h(f,v,y,b)}),f}return TLe=u,TLe}var kLe,BIt;function Obi(){if(BIt)return kLe;BIt=1;var e=oj(),t=AQ(),n=_f(),i=e?e.isConcatSpreadable:void 0;function r(o){return n(o)||t(o)||!!(i&&o&&o[i])}return kLe=r,kLe}var ILe,jIt;function VYe(){if(jIt)return ILe;jIt=1;var e=MYe(),t=Obi();function n(i,r,o,s,a){var l=-1,c=i.length;for(o||(o=t),a||(a=[]);++l<c;){var u=i[l];r>0&&o(u)?r>1?n(u,r-1,o,s,a):e(a,u):s||(a[a.length]=u)}return a}return ILe=n,ILe}var LLe,zIt;function Rbi(){if(zIt)return LLe;zIt=1;function e(t,n,i){switch(i.length){case 0:return t.call(n);case 1:return t.call(n,i[0]);case 2:return t.call(n,i[0],i[1]);case 3:return t.call(n,i[0],i[1],i[2])}return t.apply(n,i)}return LLe=e,LLe}var NLe,VIt;function Lmn(){if(VIt)return NLe;VIt=1;var e=Rbi(),t=Math.max;function n(i,r,o){return r=t(r===void 0?i.length-1:r,0),function(){for(var s=arguments,a=-1,l=t(s.length-r,0),c=Array(l);++a<l;)c[a]=s[r+a];a=-1;for(var u=Array(r+1);++a<r;)u[a]=s[a];return u[r]=o(c),e(i,this,u)}}return NLe=n,NLe}var PLe,HIt;function Fbi(){if(HIt)return PLe;HIt=1;var e=RYe(),t=Qgn(),n=AF(),i=t?function(r,o){return t(r,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:n;return PLe=i,PLe}var MLe,WIt;function Bbi(){if(WIt)return MLe;WIt=1;var e=800,t=16,n=Date.now;function i(r){var o=0,s=0;return function(){var a=n(),l=t-(a-s);if(s=a,l>0){if(++o>=e)return arguments[0]}else o=0;return r.apply(void 0,arguments)}}return MLe=i,MLe}var OLe,UIt;function Nmn(){if(UIt)return OLe;UIt=1;var e=Fbi(),t=Bbi(),n=t(e);return OLe=n,OLe}var RLe,$It;function Kve(){if($It)return RLe;$It=1;var e=AF(),t=Lmn(),n=Nmn();function i(r,o){return n(t(r,o,e),r+"")}return RLe=i,RLe}var FLe,qIt;function Pmn(){if(qIt)return FLe;qIt=1;function e(t,n,i,r){for(var o=t.length,s=i+(r?1:-1);r?s--:++s<o;)if(n(t[s],s,t))return s;return-1}return FLe=e,FLe}var BLe,GIt;function jbi(){if(GIt)return BLe;GIt=1;function e(t){return t!==t}return BLe=e,BLe}var jLe,KIt;function zbi(){if(KIt)return jLe;KIt=1;function e(t,n,i){for(var r=i-1,o=t.length;++r<o;)if(t[r]===n)return r;return-1}return jLe=e,jLe}var zLe,YIt;function Vbi(){if(YIt)return zLe;YIt=1;var e=Pmn(),t=jbi(),n=zbi();function i(r,o,s){return o===o?n(r,o,s):e(r,t,s)}return zLe=i,zLe}var VLe,QIt;function Hbi(){if(QIt)return VLe;QIt=1;var e=Vbi();function t(n,i){var r=n==null?0:n.length;return!!r&&e(n,i,0)>-1}return VLe=t,VLe}var HLe,ZIt;function Wbi(){if(ZIt)return HLe;ZIt=1;function e(t,n,i){for(var r=-1,o=t==null?0:t.length;++r<o;)if(i(n,t[r]))return!0;return!1}return HLe=e,HLe}var WLe,XIt;function Ubi(){if(XIt)return WLe;XIt=1;function e(){}return WLe=e,WLe}var ULe,JIt;function $bi(){if(JIt)return ULe;JIt=1;var e=smn(),t=Ubi(),n=jYe(),i=1/0,r=e&&1/n(new e([,-0]))[1]==i?function(o){return new e(o)}:t;return ULe=r,ULe}var $Le,eLt;function qbi(){if(eLt)return $Le;eLt=1;var e=gmn(),t=Hbi(),n=Wbi(),i=mmn(),r=$bi(),o=jYe(),s=200;function a(l,c,u){var d=-1,h=t,f=l.length,p=!0,g=[],m=g;if(u)p=!1,h=n;else if(f>=s){var v=c?null:r(l);if(v)return o(v);p=!1,h=i,m=new e}else m=c?[]:g;e:for(;++d<f;){var y=l[d],b=c?c(y):y;if(y=u||y!==0?y:0,p&&b===b){for(var w=m.length;w--;)if(m[w]===b)continue e;c&&m.push(b),g.push(y)}else h(m,b,u)||(m!==g&&m.push(b),g.push(y))}return g}return $Le=a,$Le}var qLe,tLt;function Mmn(){if(tLt)return qLe;tLt=1;var e=LT(),t=AE();function n(i){return t(i)&&e(i)}return qLe=n,qLe}var GLe,nLt;function Gbi(){if(nLt)return GLe;nLt=1;var e=VYe(),t=Kve(),n=qbi(),i=Mmn(),r=t(function(o){return n(e(o,1,i,!0))});return GLe=r,GLe}var KLe,iLt;function Kbi(){if(iLt)return KLe;iLt=1;var e=$ve();function t(n,i){return e(i,function(r){return n[r]})}return KLe=t,KLe}var YLe,rLt;function Omn(){if(rLt)return YLe;rLt=1;var e=Kbi(),t=YN();function n(i){return i==null?[]:e(i,t(i))}return YLe=n,YLe}var QLe,oLt;function Dw(){if(oLt)return QLe;oLt=1;var e;if(typeof AYe=="function")try{e={clone:tbi(),constant:RYe(),each:pmn(),filter:Emn(),has:Amn(),isArray:_f(),isEmpty:Ebi(),isFunction:xQ(),isUndefined:Dmn(),keys:YN(),map:kmn(),reduce:Imn(),size:Pbi(),transform:Mbi(),union:Gbi(),values:Omn()}}catch{}return e||(e=window._),QLe=e,QLe}var ZLe,sLt;function HYe(){if(sLt)return ZLe;sLt=1;var e=Dw();ZLe=r;var t="\0",n="\0",i="";function r(u){this._isDirected=e.has(u,"directed")?u.directed:!0,this._isMultigraph=e.has(u,"multigraph")?u.multigraph:!1,this._isCompound=e.has(u,"compound")?u.compound:!1,this._label=void 0,this._defaultNodeLabelFn=e.constant(void 0),this._defaultEdgeLabelFn=e.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[n]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}r.prototype._nodeCount=0,r.prototype._edgeCount=0,r.prototype.isDirected=function(){return this._isDirected},r.prototype.isMultigraph=function(){return this._isMultigraph},r.prototype.isCompound=function(){return this._isCompound},r.prototype.setGraph=function(u){return this._label=u,this},r.prototype.graph=function(){return this._label},r.prototype.setDefaultNodeLabel=function(u){return e.isFunction(u)||(u=e.constant(u)),this._defaultNodeLabelFn=u,this},r.prototype.nodeCount=function(){return this._nodeCount},r.prototype.nodes=function(){return e.keys(this._nodes)},r.prototype.sources=function(){var u=this;return e.filter(this.nodes(),function(d){return e.isEmpty(u._in[d])})},r.prototype.sinks=function(){var u=this;return e.filter(this.nodes(),function(d){return e.isEmpty(u._out[d])})},r.prototype.setNodes=function(u,d){var h=arguments,f=this;return e.each(u,function(p){h.length>1?f.setNode(p,d):f.setNode(p)}),this},r.prototype.setNode=function(u,d){return e.has(this._nodes,u)?(arguments.length>1&&(this._nodes[u]=d),this):(this._nodes[u]=arguments.length>1?d:this._defaultNodeLabelFn(u),this._isCompound&&(this._parent[u]=n,this._children[u]={},this._children[n][u]=!0),this._in[u]={},this._preds[u]={},this._out[u]={},this._sucs[u]={},++this._nodeCount,this)},r.prototype.node=function(u){return this._nodes[u]},r.prototype.hasNode=function(u){return e.has(this._nodes,u)},r.prototype.removeNode=function(u){var d=this;if(e.has(this._nodes,u)){var h=function(f){d.removeEdge(d._edgeObjs[f])};delete this._nodes[u],this._isCompound&&(this._removeFromParentsChildList(u),delete this._parent[u],e.each(this.children(u),function(f){d.setParent(f)}),delete this._children[u]),e.each(e.keys(this._in[u]),h),delete this._in[u],delete this._preds[u],e.each(e.keys(this._out[u]),h),delete this._out[u],delete this._sucs[u],--this._nodeCount}return this},r.prototype.setParent=function(u,d){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(d))d=n;else{d+="";for(var h=d;!e.isUndefined(h);h=this.parent(h))if(h===u)throw new Error("Setting "+d+" as parent of "+u+" would create a cycle");this.setNode(d)}return this.setNode(u),this._removeFromParentsChildList(u),this._parent[u]=d,this._children[d][u]=!0,this},r.prototype._removeFromParentsChildList=function(u){delete this._children[this._parent[u]][u]},r.prototype.parent=function(u){if(this._isCompound){var d=this._parent[u];if(d!==n)return d}},r.prototype.children=function(u){if(e.isUndefined(u)&&(u=n),this._isCompound){var d=this._children[u];if(d)return e.keys(d)}else{if(u===n)return this.nodes();if(this.hasNode(u))return[]}},r.prototype.predecessors=function(u){var d=this._preds[u];if(d)return e.keys(d)},r.prototype.successors=function(u){var d=this._sucs[u];if(d)return e.keys(d)},r.prototype.neighbors=function(u){var d=this.predecessors(u);if(d)return e.union(d,this.successors(u))},r.prototype.isLeaf=function(u){var d;return this.isDirected()?d=this.successors(u):d=this.neighbors(u),d.length===0},r.prototype.filterNodes=function(u){var d=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});d.setGraph(this.graph());var h=this;e.each(this._nodes,function(g,m){u(m)&&d.setNode(m,g)}),e.each(this._edgeObjs,function(g){d.hasNode(g.v)&&d.hasNode(g.w)&&d.setEdge(g,h.edge(g))});var f={};function p(g){var m=h.parent(g);return m===void 0||d.hasNode(m)?(f[g]=m,m):m in f?f[m]:p(m)}return this._isCompound&&e.each(d.nodes(),function(g){d.setParent(g,p(g))}),d},r.prototype.setDefaultEdgeLabel=function(u){return e.isFunction(u)||(u=e.constant(u)),this._defaultEdgeLabelFn=u,this},r.prototype.edgeCount=function(){return this._edgeCount},r.prototype.edges=function(){return e.values(this._edgeObjs)},r.prototype.setPath=function(u,d){var h=this,f=arguments;return e.reduce(u,function(p,g){return f.length>1?h.setEdge(p,g,d):h.setEdge(p,g),g}),this},r.prototype.setEdge=function(){var u,d,h,f,p=!1,g=arguments[0];typeof g=="object"&&g!==null&&"v"in g?(u=g.v,d=g.w,h=g.name,arguments.length===2&&(f=arguments[1],p=!0)):(u=g,d=arguments[1],h=arguments[3],arguments.length>2&&(f=arguments[2],p=!0)),u=""+u,d=""+d,e.isUndefined(h)||(h=""+h);var m=a(this._isDirected,u,d,h);if(e.has(this._edgeLabels,m))return p&&(this._edgeLabels[m]=f),this;if(!e.isUndefined(h)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(u),this.setNode(d),this._edgeLabels[m]=p?f:this._defaultEdgeLabelFn(u,d,h);var v=l(this._isDirected,u,d,h);return u=v.v,d=v.w,Object.freeze(v),this._edgeObjs[m]=v,o(this._preds[d],u),o(this._sucs[u],d),this._in[d][m]=v,this._out[u][m]=v,this._edgeCount++,this},r.prototype.edge=function(u,d,h){var f=arguments.length===1?c(this._isDirected,arguments[0]):a(this._isDirected,u,d,h);return this._edgeLabels[f]},r.prototype.hasEdge=function(u,d,h){var f=arguments.length===1?c(this._isDirected,arguments[0]):a(this._isDirected,u,d,h);return e.has(this._edgeLabels,f)},r.prototype.removeEdge=function(u,d,h){var f=arguments.length===1?c(this._isDirected,arguments[0]):a(this._isDirected,u,d,h),p=this._edgeObjs[f];return p&&(u=p.v,d=p.w,delete this._edgeLabels[f],delete this._edgeObjs[f],s(this._preds[d],u),s(this._sucs[u],d),delete this._in[d][f],delete this._out[u][f],this._edgeCount--),this},r.prototype.inEdges=function(u,d){var h=this._in[u];if(h){var f=e.values(h);return d?e.filter(f,function(p){return p.v===d}):f}},r.prototype.outEdges=function(u,d){var h=this._out[u];if(h){var f=e.values(h);return d?e.filter(f,function(p){return p.w===d}):f}},r.prototype.nodeEdges=function(u,d){var h=this.inEdges(u,d);if(h)return h.concat(this.outEdges(u,d))};function o(u,d){u[d]?u[d]++:u[d]=1}function s(u,d){--u[d]||delete u[d]}function a(u,d,h,f){var p=""+d,g=""+h;if(!u&&p>g){var m=p;p=g,g=m}return p+i+g+i+(e.isUndefined(f)?t:f)}function l(u,d,h,f){var p=""+d,g=""+h;if(!u&&p>g){var m=p;p=g,g=m}var v={v:p,w:g};return f&&(v.name=f),v}function c(u,d){return a(u,d.v,d.w,d.name)}return ZLe}var XLe,aLt;function Ybi(){return aLt||(aLt=1,XLe="2.1.8"),XLe}var JLe,lLt;function Qbi(){return lLt||(lLt=1,JLe={Graph:HYe(),version:Ybi()}),JLe}var eNe,cLt;function Zbi(){if(cLt)return eNe;cLt=1;var e=Dw(),t=HYe();eNe={write:n,read:o};function n(s){var a={options:{directed:s.isDirected(),multigraph:s.isMultigraph(),compound:s.isCompound()},nodes:i(s),edges:r(s)};return e.isUndefined(s.graph())||(a.value=e.clone(s.graph())),a}function i(s){return e.map(s.nodes(),function(a){var l=s.node(a),c=s.parent(a),u={v:a};return e.isUndefined(l)||(u.value=l),e.isUndefined(c)||(u.parent=c),u})}function r(s){return e.map(s.edges(),function(a){var l=s.edge(a),c={v:a.v,w:a.w};return e.isUndefined(a.name)||(c.name=a.name),e.isUndefined(l)||(c.value=l),c})}function o(s){var a=new t(s.options).setGraph(s.value);return e.each(s.nodes,function(l){a.setNode(l.v,l.value),l.parent&&a.setParent(l.v,l.parent)}),e.each(s.edges,function(l){a.setEdge({v:l.v,w:l.w,name:l.name},l.value)}),a}return eNe}var tNe,uLt;function Xbi(){if(uLt)return tNe;uLt=1;var e=Dw();tNe=t;function t(n){var i={},r=[],o;function s(a){e.has(i,a)||(i[a]=!0,o.push(a),e.each(n.successors(a),s),e.each(n.predecessors(a),s))}return e.each(n.nodes(),function(a){o=[],s(a),o.length&&r.push(o)}),r}return tNe}var nNe,dLt;function Rmn(){if(dLt)return nNe;dLt=1;var e=Dw();nNe=t;function t(){this._arr=[],this._keyIndices={}}return t.prototype.size=function(){return this._arr.length},t.prototype.keys=function(){return this._arr.map(function(n){return n.key})},t.prototype.has=function(n){return e.has(this._keyIndices,n)},t.prototype.priority=function(n){var i=this._keyIndices[n];if(i!==void 0)return this._arr[i].priority},t.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},t.prototype.add=function(n,i){var r=this._keyIndices;if(n=String(n),!e.has(r,n)){var o=this._arr,s=o.length;return r[n]=s,o.push({key:n,priority:i}),this._decrease(s),!0}return!1},t.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key},t.prototype.decrease=function(n,i){var r=this._keyIndices[n];if(i>this._arr[r].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[r].priority+" New: "+i);this._arr[r].priority=i,this._decrease(r)},t.prototype._heapify=function(n){var i=this._arr,r=2*n,o=r+1,s=n;r<i.length&&(s=i[r].priority<i[s].priority?r:s,o<i.length&&(s=i[o].priority<i[s].priority?o:s),s!==n&&(this._swap(n,s),this._heapify(s)))},t.prototype._decrease=function(n){for(var i=this._arr,r=i[n].priority,o;n!==0&&(o=n>>1,!(i[o].priority<r));)this._swap(n,o),n=o},t.prototype._swap=function(n,i){var r=this._arr,o=this._keyIndices,s=r[n],a=r[i];r[n]=a,r[i]=s,o[a.key]=n,o[s.key]=i},nNe}var iNe,hLt;function Fmn(){if(hLt)return iNe;hLt=1;var e=Dw(),t=Rmn();iNe=i;var n=e.constant(1);function i(o,s,a,l){return r(o,String(s),a||n,l||function(c){return o.outEdges(c)})}function r(o,s,a,l){var c={},u=new t,d,h,f=function(p){var g=p.v!==d?p.v:p.w,m=c[g],v=a(p),y=h.distance+v;if(v<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+p+" Weight: "+v);y<m.distance&&(m.distance=y,m.predecessor=d,u.decrease(g,y))};for(o.nodes().forEach(function(p){var g=p===s?0:Number.POSITIVE_INFINITY;c[p]={distance:g},u.add(p,g)});u.size()>0&&(d=u.removeMin(),h=c[d],h.distance!==Number.POSITIVE_INFINITY);)l(d).forEach(f);return c}return iNe}var rNe,fLt;function Jbi(){if(fLt)return rNe;fLt=1;var e=Fmn(),t=Dw();rNe=n;function n(i,r,o){return t.transform(i.nodes(),function(s,a){s[a]=e(i,a,r,o)},{})}return rNe}var oNe,pLt;function Bmn(){if(pLt)return oNe;pLt=1;var e=Dw();oNe=t;function t(n){var i=0,r=[],o={},s=[];function a(l){var c=o[l]={onStack:!0,lowlink:i,index:i++};if(r.push(l),n.successors(l).forEach(function(h){e.has(o,h)?o[h].onStack&&(c.lowlink=Math.min(c.lowlink,o[h].index)):(a(h),c.lowlink=Math.min(c.lowlink,o[h].lowlink))}),c.lowlink===c.index){var u=[],d;do d=r.pop(),o[d].onStack=!1,u.push(d);while(l!==d);s.push(u)}}return n.nodes().forEach(function(l){e.has(o,l)||a(l)}),s}return oNe}var sNe,gLt;function e_i(){if(gLt)return sNe;gLt=1;var e=Dw(),t=Bmn();sNe=n;function n(i){return e.filter(t(i),function(r){return r.length>1||r.length===1&&i.hasEdge(r[0],r[0])})}return sNe}var aNe,mLt;function t_i(){if(mLt)return aNe;mLt=1;var e=Dw();aNe=n;var t=e.constant(1);function n(r,o,s){return i(r,o||t,s||function(a){return r.outEdges(a)})}function i(r,o,s){var a={},l=r.nodes();return l.forEach(function(c){a[c]={},a[c][c]={distance:0},l.forEach(function(u){c!==u&&(a[c][u]={distance:Number.POSITIVE_INFINITY})}),s(c).forEach(function(u){var d=u.v===c?u.w:u.v,h=o(u);a[c][d]={distance:h,predecessor:c}})}),l.forEach(function(c){var u=a[c];l.forEach(function(d){var h=a[d];l.forEach(function(f){var p=h[c],g=u[f],m=h[f],v=p.distance+g.distance;v<m.distance&&(m.distance=v,m.predecessor=g.predecessor)})})}),a}return aNe}var lNe,vLt;function jmn(){if(vLt)return lNe;vLt=1;var e=Dw();lNe=t,t.CycleException=n;function t(i){var r={},o={},s=[];function a(l){if(e.has(o,l))throw new n;e.has(r,l)||(o[l]=!0,r[l]=!0,e.each(i.predecessors(l),a),delete o[l],s.push(l))}if(e.each(i.sinks(),a),e.size(r)!==i.nodeCount())throw new n;return s}function n(){}return n.prototype=new Error,lNe}var cNe,yLt;function n_i(){if(yLt)return cNe;yLt=1;var e=jmn();cNe=t;function t(n){try{e(n)}catch(i){if(i instanceof e.CycleException)return!1;throw i}return!0}return cNe}var uNe,bLt;function zmn(){if(bLt)return uNe;bLt=1;var e=Dw();uNe=t;function t(i,r,o){e.isArray(r)||(r=[r]);var s=(i.isDirected()?i.successors:i.neighbors).bind(i),a=[],l={};return e.each(r,function(c){if(!i.hasNode(c))throw new Error("Graph does not have node: "+c);n(i,c,o==="post",l,s,a)}),a}function n(i,r,o,s,a,l){e.has(s,r)||(s[r]=!0,o||l.push(r),e.each(a(r),function(c){n(i,c,o,s,a,l)}),o&&l.push(r))}return uNe}var dNe,_Lt;function i_i(){if(_Lt)return dNe;_Lt=1;var e=zmn();dNe=t;function t(n,i){return e(n,i,"post")}return dNe}var hNe,wLt;function r_i(){if(wLt)return hNe;wLt=1;var e=zmn();hNe=t;function t(n,i){return e(n,i,"pre")}return hNe}var fNe,CLt;function o_i(){if(CLt)return fNe;CLt=1;var e=Dw(),t=HYe(),n=Rmn();fNe=i;function i(r,o){var s=new t,a={},l=new n,c;function u(h){var f=h.v===c?h.w:h.v,p=l.priority(f);if(p!==void 0){var g=o(h);g<p&&(a[f]=c,l.decrease(f,g))}}if(r.nodeCount()===0)return s;e.each(r.nodes(),function(h){l.add(h,Number.POSITIVE_INFINITY),s.setNode(h)}),l.decrease(r.nodes()[0],0);for(var d=!1;l.size()>0;){if(c=l.removeMin(),e.has(a,c))s.setEdge(c,a[c]);else{if(d)throw new Error("Input graph is not connected: "+r);d=!0}r.nodeEdges(c).forEach(u)}return s}return fNe}var pNe,SLt;function s_i(){return SLt||(SLt=1,pNe={components:Xbi(),dijkstra:Fmn(),dijkstraAll:Jbi(),findCycles:e_i(),floydWarshall:t_i(),isAcyclic:n_i(),postorder:i_i(),preorder:r_i(),prim:o_i(),tarjan:Bmn(),topsort:jmn()}),pNe}var gNe,xLt;function a_i(){if(xLt)return gNe;xLt=1;var e=Qbi();return gNe={Graph:e.Graph,json:Zbi(),alg:s_i(),version:e.version},gNe}var mNe,ELt;function IC(){if(ELt)return mNe;ELt=1;var e;if(typeof AYe=="function")try{e=a_i()}catch{}return e||(e=window.graphlib),mNe=e,mNe}var vNe,ALt;function l_i(){if(ALt)return vNe;ALt=1;var e=dmn(),t=1,n=4;function i(r){return e(r,t|n)}return vNe=i,vNe}var yNe,DLt;function Yve(){if(DLt)return yNe;DLt=1;var e=rj(),t=LT(),n=zve(),i=Aw();function r(o,s,a){if(!i(a))return!1;var l=typeof s;return(l=="number"?t(a)&&n(s,a.length):l=="string"&&s in a)?e(a[s],o):!1}return yNe=r,yNe}var bNe,TLt;function c_i(){if(TLt)return bNe;TLt=1;var e=Kve(),t=rj(),n=Yve(),i=EF(),r=Object.prototype,o=r.hasOwnProperty,s=e(function(a,l){a=Object(a);var c=-1,u=l.length,d=u>2?l[2]:void 0;for(d&&n(l[0],l[1],d)&&(u=1);++c<u;)for(var h=l[c],f=i(h),p=-1,g=f.length;++p<g;){var m=f[p],v=a[m];(v===void 0||t(v,r[m])&&!o.call(a,m))&&(a[m]=h[m])}return a});return bNe=s,bNe}var _Ne,kLt;function u_i(){if(kLt)return _Ne;kLt=1;var e=NT(),t=LT(),n=YN();function i(r){return function(o,s,a){var l=Object(o);if(!t(o)){var c=e(s,3);o=n(o),s=function(d){return c(l[d],d,l)}}var u=r(o,s,a);return u>-1?l[c?o[u]:u]:void 0}}return _Ne=i,_Ne}var wNe,ILt;function d_i(){if(ILt)return wNe;ILt=1;var e=/\s/;function t(n){for(var i=n.length;i--&&e.test(n.charAt(i)););return i}return wNe=t,wNe}var CNe,LLt;function h_i(){if(LLt)return CNe;LLt=1;var e=d_i(),t=/^\s+/;function n(i){return i&&i.slice(0,e(i)+1).replace(t,"")}return CNe=n,CNe}var SNe,NLt;function f_i(){if(NLt)return SNe;NLt=1;var e=h_i(),t=Aw(),n=lj(),i=NaN,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function l(c){if(typeof c=="number")return c;if(n(c))return i;if(t(c)){var u=typeof c.valueOf=="function"?c.valueOf():c;c=t(u)?u+"":u}if(typeof c!="string")return c===0?c:+c;c=e(c);var d=o.test(c);return d||s.test(c)?a(c.slice(2),d?2:8):r.test(c)?i:+c}return SNe=l,SNe}var xNe,PLt;function Vmn(){if(PLt)return xNe;PLt=1;var e=f_i(),t=1/0,n=17976931348623157e292;function i(r){if(!r)return r===0?r:0;if(r=e(r),r===t||r===-t){var o=r<0?-1:1;return o*n}return r===r?r:0}return xNe=i,xNe}var ENe,MLt;function p_i(){if(MLt)return ENe;MLt=1;var e=Vmn();function t(n){var i=e(n),r=i%1;return i===i?r?i-r:i:0}return ENe=t,ENe}var ANe,OLt;function g_i(){if(OLt)return ANe;OLt=1;var e=Pmn(),t=NT(),n=p_i(),i=Math.max;function r(o,s,a){var l=o==null?0:o.length;if(!l)return-1;var c=a==null?0:n(a);return c<0&&(c=i(l+c,0)),e(o,t(s,3),c)}return ANe=r,ANe}var DNe,RLt;function m_i(){if(RLt)return DNe;RLt=1;var e=u_i(),t=g_i(),n=e(t);return DNe=n,DNe}var TNe,FLt;function Hmn(){if(FLt)return TNe;FLt=1;var e=VYe();function t(n){var i=n==null?0:n.length;return i?e(n,1):[]}return TNe=t,TNe}var kNe,BLt;function v_i(){if(BLt)return kNe;BLt=1;var e=FYe(),t=hmn(),n=EF();function i(r,o){return r==null?r:e(r,t(o),n)}return kNe=i,kNe}var INe,jLt;function y_i(){if(jLt)return INe;jLt=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return INe=e,INe}var LNe,zLt;function b_i(){if(zLt)return LNe;zLt=1;var e=Bve(),t=BYe(),n=NT();function i(r,o){var s={};return o=n(o,3),t(r,function(a,l,c){e(s,l,o(a,l,c))}),s}return LNe=i,LNe}var NNe,VLt;function WYe(){if(VLt)return NNe;VLt=1;var e=lj();function t(n,i,r){for(var o=-1,s=n.length;++o<s;){var a=n[o],l=i(a);if(l!=null&&(c===void 0?l===l&&!e(l):r(l,c)))var c=l,u=a}return u}return NNe=t,NNe}var PNe,HLt;function __i(){if(HLt)return PNe;HLt=1;function e(t,n){return t>n}return PNe=e,PNe}var MNe,WLt;function w_i(){if(WLt)return MNe;WLt=1;var e=WYe(),t=__i(),n=AF();function i(r){return r&&r.length?e(r,n,t):void 0}return MNe=i,MNe}var ONe,ULt;function Wmn(){if(ULt)return ONe;ULt=1;var e=Bve(),t=rj();function n(i,r,o){(o!==void 0&&!t(i[r],o)||o===void 0&&!(r in i))&&e(i,r,o)}return ONe=n,ONe}var RNe,$Lt;function C_i(){if($Lt)return RNe;$Lt=1;var e=SF(),t=Wve(),n=AE(),i="[object Object]",r=Function.prototype,o=Object.prototype,s=r.toString,a=o.hasOwnProperty,l=s.call(Object);function c(u){if(!n(u)||e(u)!=i)return!1;var d=t(u);if(d===null)return!0;var h=a.call(d,"constructor")&&d.constructor;return typeof h=="function"&&h instanceof h&&s.call(h)==l}return RNe=c,RNe}var FNe,qLt;function Umn(){if(qLt)return FNe;qLt=1;function e(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}return FNe=e,FNe}var BNe,GLt;function S_i(){if(GLt)return BNe;GLt=1;var e=EQ(),t=EF();function n(i){return e(i,t(i))}return BNe=n,BNe}var jNe,KLt;function x_i(){if(KLt)return jNe;KLt=1;var e=Wmn(),t=Jgn(),n=lmn(),i=emn(),r=umn(),o=AQ(),s=_f(),a=Mmn(),l=sj(),c=xQ(),u=Aw(),d=C_i(),h=DQ(),f=Umn(),p=S_i();function g(m,v,y,b,w,E,A){var D=f(m,y),T=f(v,y),M=A.get(T);if(M){e(m,y,M);return}var P=E?E(D,T,y+"",m,v,A):void 0,F=P===void 0;if(F){var N=s(T),j=!N&&l(T),W=!N&&!j&&h(T);P=T,N||j||W?s(D)?P=D:a(D)?P=i(D):j?(F=!1,P=t(T,!0)):W?(F=!1,P=n(T,!0)):P=[]:d(T)||o(T)?(P=D,o(D)?P=p(D):(!u(D)||c(D))&&(P=r(T))):F=!1}F&&(A.set(T,P),w(P,T,b,E,A),A.delete(T)),e(m,y,P)}return jNe=g,jNe}var zNe,YLt;function E_i(){if(YLt)return zNe;YLt=1;var e=Fve(),t=Wmn(),n=FYe(),i=x_i(),r=Aw(),o=EF(),s=Umn();function a(l,c,u,d,h){l!==c&&n(c,function(f,p){if(h||(h=new e),r(f))i(l,c,p,u,a,d,h);else{var g=d?d(s(l,p),f,p+"",l,c,h):void 0;g===void 0&&(g=f),t(l,p,g)}},o)}return zNe=a,zNe}var VNe,QLt;function A_i(){if(QLt)return VNe;QLt=1;var e=Kve(),t=Yve();function n(i){return e(function(r,o){var s=-1,a=o.length,l=a>1?o[a-1]:void 0,c=a>2?o[2]:void 0;for(l=i.length>3&&typeof l=="function"?(a--,l):void 0,c&&t(o[0],o[1],c)&&(l=a<3?void 0:l,a=1),r=Object(r);++s<a;){var u=o[s];u&&i(r,u,s,l)}return r})}return VNe=n,VNe}var HNe,ZLt;function D_i(){if(ZLt)return HNe;ZLt=1;var e=E_i(),t=A_i(),n=t(function(i,r,o){e(i,r,o)});return HNe=n,HNe}var WNe,XLt;function $mn(){if(XLt)return WNe;XLt=1;function e(t,n){return t<n}return WNe=e,WNe}var UNe,JLt;function T_i(){if(JLt)return UNe;JLt=1;var e=WYe(),t=$mn(),n=AF();function i(r){return r&&r.length?e(r,n,t):void 0}return UNe=i,UNe}var $Ne,eNt;function k_i(){if(eNt)return $Ne;eNt=1;var e=WYe(),t=NT(),n=$mn();function i(r,o){return r&&r.length?e(r,t(o,2),n):void 0}return $Ne=i,$Ne}var qNe,tNt;function I_i(){if(tNt)return qNe;tNt=1;var e=JC(),t=function(){return e.Date.now()};return qNe=t,qNe}var GNe,nNt;function L_i(){if(nNt)return GNe;nNt=1;var e=jve(),t=qve(),n=zve(),i=Aw(),r=TQ();function o(s,a,l,c){if(!i(s))return s;a=t(a,s);for(var u=-1,d=a.length,h=d-1,f=s;f!=null&&++u<d;){var p=r(a[u]),g=l;if(p==="__proto__"||p==="constructor"||p==="prototype")return s;if(u!=h){var m=f[p];g=c?c(m,p,f):void 0,g===void 0&&(g=i(m)?m:n(a[u+1])?[]:{})}e(f,p,g),f=f[p]}return s}return GNe=o,GNe}var KNe,iNt;function N_i(){if(iNt)return KNe;iNt=1;var e=Gve(),t=L_i(),n=qve();function i(r,o,s){for(var a=-1,l=o.length,c={};++a<l;){var u=o[a],d=e(r,u);s(d,u)&&t(c,n(u,r),d)}return c}return KNe=i,KNe}var YNe,rNt;function P_i(){if(rNt)return YNe;rNt=1;var e=N_i(),t=Smn();function n(i,r){return e(i,r,function(o,s){return t(i,s)})}return YNe=n,YNe}var QNe,oNt;function M_i(){if(oNt)return QNe;oNt=1;var e=Hmn(),t=Lmn(),n=Nmn();function i(r){return n(t(r,void 0,e),r+"")}return QNe=i,QNe}var ZNe,sNt;function O_i(){if(sNt)return ZNe;sNt=1;var e=P_i(),t=M_i(),n=t(function(i,r){return i==null?{}:e(i,r)});return ZNe=n,ZNe}var XNe,aNt;function R_i(){if(aNt)return XNe;aNt=1;var e=Math.ceil,t=Math.max;function n(i,r,o,s){for(var a=-1,l=t(e((r-i)/(o||1)),0),c=Array(l);l--;)c[s?l:++a]=i,i+=o;return c}return XNe=n,XNe}var JNe,lNt;function F_i(){if(lNt)return JNe;lNt=1;var e=R_i(),t=Yve(),n=Vmn();function i(r){return function(o,s,a){return a&&typeof a!="number"&&t(o,s,a)&&(s=a=void 0),o=n(o),s===void 0?(s=o,o=0):s=n(s),a=a===void 0?o<s?1:-1:n(a),e(o,s,a,r)}}return JNe=i,JNe}var ePe,cNt;function B_i(){if(cNt)return ePe;cNt=1;var e=F_i(),t=e();return ePe=t,ePe}var tPe,uNt;function j_i(){if(uNt)return tPe;uNt=1;function e(t,n){var i=t.length;for(t.sort(n);i--;)t[i]=t[i].value;return t}return tPe=e,tPe}var nPe,dNt;function z_i(){if(dNt)return nPe;dNt=1;var e=lj();function t(n,i){if(n!==i){var r=n!==void 0,o=n===null,s=n===n,a=e(n),l=i!==void 0,c=i===null,u=i===i,d=e(i);if(!c&&!d&&!a&&n>i||a&&l&&u&&!c&&!d||o&&l&&u||!r&&u||!s)return 1;if(!o&&!a&&!d&&n<i||d&&r&&s&&!o&&!a||c&&r&&s||!l&&s||!u)return-1}return 0}return nPe=t,nPe}var iPe,hNt;function V_i(){if(hNt)return iPe;hNt=1;var e=z_i();function t(n,i,r){for(var o=-1,s=n.criteria,a=i.criteria,l=s.length,c=r.length;++o<l;){var u=e(s[o],a[o]);if(u){if(o>=c)return u;var d=r[o];return u*(d=="desc"?-1:1)}}return n.index-i.index}return iPe=t,iPe}var rPe,fNt;function H_i(){if(fNt)return rPe;fNt=1;var e=$ve(),t=Gve(),n=NT(),i=Tmn(),r=j_i(),o=Vve(),s=V_i(),a=AF(),l=_f();function c(u,d,h){d.length?d=e(d,function(g){return l(g)?function(m){return t(m,g.length===1?g[0]:g)}:g}):d=[a];var f=-1;d=e(d,o(n));var p=i(u,function(g,m,v){var y=e(d,function(b){return b(g)});return{criteria:y,index:++f,value:g}});return r(p,function(g,m){return s(g,m,h)})}return rPe=c,rPe}var oPe,pNt;function W_i(){if(pNt)return oPe;pNt=1;var e=VYe(),t=H_i(),n=Kve(),i=Yve(),r=n(function(o,s){if(o==null)return[];var a=s.length;return a>1&&i(o,s[0],s[1])?s=[]:a>2&&i(s[0],s[1],s[2])&&(s=[s[0]]),t(o,e(s,1),[])});return oPe=r,oPe}var sPe,gNt;function U_i(){if(gNt)return sPe;gNt=1;var e=wmn(),t=0;function n(i){var r=++t;return e(i)+r}return sPe=n,sPe}var aPe,mNt;function $_i(){if(mNt)return aPe;mNt=1;function e(t,n,i){for(var r=-1,o=t.length,s=n.length,a={};++r<o;){var l=r<s?n[r]:void 0;i(a,t[r],l)}return a}return aPe=e,aPe}var lPe,vNt;function q_i(){if(vNt)return lPe;vNt=1;var e=jve(),t=$_i();function n(i,r){return t(i||[],r||[],e)}return lPe=n,lPe}var cPe,yNt;function Zu(){if(yNt)return cPe;yNt=1;var e;if(typeof AYe=="function")try{e={cloneDeep:l_i(),constant:RYe(),defaults:c_i(),each:pmn(),filter:Emn(),find:m_i(),flatten:Hmn(),forEach:fmn(),forIn:v_i(),has:Amn(),isUndefined:Dmn(),last:y_i(),map:kmn(),mapValues:b_i(),max:w_i(),merge:D_i(),min:T_i(),minBy:k_i(),now:I_i(),pick:O_i(),range:B_i(),reduce:Imn(),sortBy:W_i(),uniqueId:U_i(),values:Omn(),zipObject:q_i()}}catch{}return e||(e=window._),cPe=e,cPe}var uPe,bNt;function G_i(){if(bNt)return uPe;bNt=1,uPe=e;function e(){var i={};i._next=i._prev=i,this._sentinel=i}e.prototype.dequeue=function(){var i=this._sentinel,r=i._prev;if(r!==i)return t(r),r},e.prototype.enqueue=function(i){var r=this._sentinel;i._prev&&i._next&&t(i),i._next=r._next,r._next._prev=i,r._next=i,i._prev=r},e.prototype.toString=function(){for(var i=[],r=this._sentinel,o=r._prev;o!==r;)i.push(JSON.stringify(o,n)),o=o._prev;return"["+i.join(", ")+"]"};function t(i){i._prev._next=i._next,i._next._prev=i._prev,delete i._next,delete i._prev}function n(i,r){if(i!=="_next"&&i!=="_prev")return r}return uPe}var dPe,_Nt;function K_i(){if(_Nt)return dPe;_Nt=1;var e=Zu(),t=IC().Graph,n=G_i();dPe=r;var i=e.constant(1);function r(c,u){if(c.nodeCount()<=1)return[];var d=a(c,u||i),h=o(d.graph,d.buckets,d.zeroIdx);return e.flatten(e.map(h,function(f){return c.outEdges(f.v,f.w)}),!0)}function o(c,u,d){for(var h=[],f=u[u.length-1],p=u[0],g;c.nodeCount();){for(;g=p.dequeue();)s(c,u,d,g);for(;g=f.dequeue();)s(c,u,d,g);if(c.nodeCount()){for(var m=u.length-2;m>0;--m)if(g=u[m].dequeue(),g){h=h.concat(s(c,u,d,g,!0));break}}}return h}function s(c,u,d,h,f){var p=f?[]:void 0;return e.forEach(c.inEdges(h.v),function(g){var m=c.edge(g),v=c.node(g.v);f&&p.push({v:g.v,w:g.w}),v.out-=m,l(u,d,v)}),e.forEach(c.outEdges(h.v),function(g){var m=c.edge(g),v=g.w,y=c.node(v);y.in-=m,l(u,d,y)}),c.removeNode(h.v),p}function a(c,u){var d=new t,h=0,f=0;e.forEach(c.nodes(),function(m){d.setNode(m,{v:m,in:0,out:0})}),e.forEach(c.edges(),function(m){var v=d.edge(m.v,m.w)||0,y=u(m),b=v+y;d.setEdge(m.v,m.w,b),f=Math.max(f,d.node(m.v).out+=y),h=Math.max(h,d.node(m.w).in+=y)});var p=e.range(f+h+3).map(function(){return new n}),g=h+1;return e.forEach(d.nodes(),function(m){l(p,g,d.node(m))}),{graph:d,buckets:p,zeroIdx:g}}function l(c,u,d){d.out?d.in?c[d.out-d.in+u].enqueue(d):c[c.length-1].enqueue(d):c[0].enqueue(d)}return dPe}var hPe,wNt;function Y_i(){if(wNt)return hPe;wNt=1;var e=Zu(),t=K_i();hPe={run:n,undo:r};function n(o){var s=o.graph().acyclicer==="greedy"?t(o,a(o)):i(o);e.forEach(s,function(l){var c=o.edge(l);o.removeEdge(l),c.forwardName=l.name,c.reversed=!0,o.setEdge(l.w,l.v,c,e.uniqueId("rev"))});function a(l){return function(c){return l.edge(c).weight}}}function i(o){var s=[],a={},l={};function c(u){e.has(l,u)||(l[u]=!0,a[u]=!0,e.forEach(o.outEdges(u),function(d){e.has(a,d.w)?s.push(d):c(d.w)}),delete a[u])}return e.forEach(o.nodes(),c),s}function r(o){e.forEach(o.edges(),function(s){var a=o.edge(s);if(a.reversed){o.removeEdge(s);var l=a.forwardName;delete a.reversed,delete a.forwardName,o.setEdge(s.w,s.v,a,l)}})}return hPe}var fPe,CNt;function N0(){if(CNt)return fPe;CNt=1;var e=Zu(),t=IC().Graph;fPe={addDummyNode:n,simplify:i,asNonCompoundGraph:r,successorWeights:o,predecessorWeights:s,intersectRect:a,buildLayerMatrix:l,normalizeRanks:c,removeEmptyRanks:u,addBorderNode:d,maxRank:h,partition:f,time:p,notime:g};function n(m,v,y,b){var w;do w=e.uniqueId(b);while(m.hasNode(w));return y.dummy=v,m.setNode(w,y),w}function i(m){var v=new t().setGraph(m.graph());return e.forEach(m.nodes(),function(y){v.setNode(y,m.node(y))}),e.forEach(m.edges(),function(y){var b=v.edge(y.v,y.w)||{weight:0,minlen:1},w=m.edge(y);v.setEdge(y.v,y.w,{weight:b.weight+w.weight,minlen:Math.max(b.minlen,w.minlen)})}),v}function r(m){var v=new t({multigraph:m.isMultigraph()}).setGraph(m.graph());return e.forEach(m.nodes(),function(y){m.children(y).length||v.setNode(y,m.node(y))}),e.forEach(m.edges(),function(y){v.setEdge(y,m.edge(y))}),v}function o(m){var v=e.map(m.nodes(),function(y){var b={};return e.forEach(m.outEdges(y),function(w){b[w.w]=(b[w.w]||0)+m.edge(w).weight}),b});return e.zipObject(m.nodes(),v)}function s(m){var v=e.map(m.nodes(),function(y){var b={};return e.forEach(m.inEdges(y),function(w){b[w.v]=(b[w.v]||0)+m.edge(w).weight}),b});return e.zipObject(m.nodes(),v)}function a(m,v){var y=m.x,b=m.y,w=v.x-y,E=v.y-b,A=m.width/2,D=m.height/2;if(!w&&!E)throw new Error("Not possible to find intersection inside of the rectangle");var T,M;return Math.abs(E)*A>Math.abs(w)*D?(E<0&&(D=-D),T=D*w/E,M=D):(w<0&&(A=-A),T=A,M=A*E/w),{x:y+T,y:b+M}}function l(m){var v=e.map(e.range(h(m)+1),function(){return[]});return e.forEach(m.nodes(),function(y){var b=m.node(y),w=b.rank;e.isUndefined(w)||(v[w][b.order]=y)}),v}function c(m){var v=e.min(e.map(m.nodes(),function(y){return m.node(y).rank}));e.forEach(m.nodes(),function(y){var b=m.node(y);e.has(b,"rank")&&(b.rank-=v)})}function u(m){var v=e.min(e.map(m.nodes(),function(E){return m.node(E).rank})),y=[];e.forEach(m.nodes(),function(E){var A=m.node(E).rank-v;y[A]||(y[A]=[]),y[A].push(E)});var b=0,w=m.graph().nodeRankFactor;e.forEach(y,function(E,A){e.isUndefined(E)&&A%w!==0?--b:b&&e.forEach(E,function(D){m.node(D).rank+=b})})}function d(m,v,y,b){var w={width:0,height:0};return arguments.length>=4&&(w.rank=y,w.order=b),n(m,"border",w,v)}function h(m){return e.max(e.map(m.nodes(),function(v){var y=m.node(v).rank;if(!e.isUndefined(y))return y}))}function f(m,v){var y={lhs:[],rhs:[]};return e.forEach(m,function(b){v(b)?y.lhs.push(b):y.rhs.push(b)}),y}function p(m,v){var y=e.now();try{return v()}finally{console.log(m+" time: "+(e.now()-y)+"ms")}}function g(m,v){return v()}return fPe}var pPe,SNt;function Q_i(){if(SNt)return pPe;SNt=1;var e=Zu(),t=N0();pPe={run:n,undo:r};function n(o){o.graph().dummyChains=[],e.forEach(o.edges(),function(s){i(o,s)})}function i(o,s){var a=s.v,l=o.node(a).rank,c=s.w,u=o.node(c).rank,d=s.name,h=o.edge(s),f=h.labelRank;if(u!==l+1){o.removeEdge(s);var p,g,m;for(m=0,++l;l<u;++m,++l)h.points=[],g={width:0,height:0,edgeLabel:h,edgeObj:s,rank:l},p=t.addDummyNode(o,"edge",g,"_d"),l===f&&(g.width=h.width,g.height=h.height,g.dummy="edge-label",g.labelpos=h.labelpos),o.setEdge(a,p,{weight:h.weight},d),m===0&&o.graph().dummyChains.push(p),a=p;o.setEdge(a,c,{weight:h.weight},d)}}function r(o){e.forEach(o.graph().dummyChains,function(s){var a=o.node(s),l=a.edgeLabel,c;for(o.setEdge(a.edgeObj,l);a.dummy;)c=o.successors(s)[0],o.removeNode(s),l.points.push({x:a.x,y:a.y}),a.dummy==="edge-label"&&(l.x=a.x,l.y=a.y,l.width=a.width,l.height=a.height),s=c,a=o.node(s)})}return pPe}var gPe,xNt;function Ihe(){if(xNt)return gPe;xNt=1;var e=Zu();gPe={longestPath:t,slack:n};function t(i){var r={};function o(s){var a=i.node(s);if(e.has(r,s))return a.rank;r[s]=!0;var l=e.min(e.map(i.outEdges(s),function(c){return o(c.w)-i.edge(c).minlen}));return(l===Number.POSITIVE_INFINITY||l===void 0||l===null)&&(l=0),a.rank=l}e.forEach(i.sources(),o)}function n(i,r){return i.node(r.w).rank-i.node(r.v).rank-i.edge(r).minlen}return gPe}var mPe,ENt;function qmn(){if(ENt)return mPe;ENt=1;var e=Zu(),t=IC().Graph,n=Ihe().slack;mPe=i;function i(a){var l=new t({directed:!1}),c=a.nodes()[0],u=a.nodeCount();l.setNode(c,{});for(var d,h;r(l,a)<u;)d=o(l,a),h=l.hasNode(d.v)?n(a,d):-n(a,d),s(l,a,h);return l}function r(a,l){function c(u){e.forEach(l.nodeEdges(u),function(d){var h=d.v,f=u===h?d.w:h;!a.hasNode(f)&&!n(l,d)&&(a.setNode(f,{}),a.setEdge(u,f,{}),c(f))})}return e.forEach(a.nodes(),c),a.nodeCount()}function o(a,l){return e.minBy(l.edges(),function(c){if(a.hasNode(c.v)!==a.hasNode(c.w))return n(l,c)})}function s(a,l,c){e.forEach(a.nodes(),function(u){l.node(u).rank+=c})}return mPe}var vPe,ANt;function Z_i(){if(ANt)return vPe;ANt=1;var e=Zu(),t=qmn(),n=Ihe().slack,i=Ihe().longestPath,r=IC().alg.preorder,o=IC().alg.postorder,s=N0().simplify;vPe=a,a.initLowLimValues=d,a.initCutValues=l,a.calcCutValue=u,a.leaveEdge=f,a.enterEdge=p,a.exchangeEdges=g;function a(b){b=s(b),i(b);var w=t(b);d(w),l(w,b);for(var E,A;E=f(w);)A=p(w,b,E),g(w,b,E,A)}function l(b,w){var E=o(b,b.nodes());E=E.slice(0,E.length-1),e.forEach(E,function(A){c(b,w,A)})}function c(b,w,E){var A=b.node(E),D=A.parent;b.edge(E,D).cutvalue=u(b,w,E)}function u(b,w,E){var A=b.node(E),D=A.parent,T=!0,M=w.edge(E,D),P=0;return M||(T=!1,M=w.edge(D,E)),P=M.weight,e.forEach(w.nodeEdges(E),function(F){var N=F.v===E,j=N?F.w:F.v;if(j!==D){var W=N===T,J=w.edge(F).weight;if(P+=W?J:-J,v(b,E,j)){var ee=b.edge(E,j).cutvalue;P+=W?-ee:ee}}}),P}function d(b,w){arguments.length<2&&(w=b.nodes()[0]),h(b,{},1,w)}function h(b,w,E,A,D){var T=E,M=b.node(A);return w[A]=!0,e.forEach(b.neighbors(A),function(P){e.has(w,P)||(E=h(b,w,E,P,A))}),M.low=T,M.lim=E++,D?M.parent=D:delete M.parent,E}function f(b){return e.find(b.edges(),function(w){return b.edge(w).cutvalue<0})}function p(b,w,E){var A=E.v,D=E.w;w.hasEdge(A,D)||(A=E.w,D=E.v);var T=b.node(A),M=b.node(D),P=T,F=!1;T.lim>M.lim&&(P=M,F=!0);var N=e.filter(w.edges(),function(j){return F===y(b,b.node(j.v),P)&&F!==y(b,b.node(j.w),P)});return e.minBy(N,function(j){return n(w,j)})}function g(b,w,E,A){var D=E.v,T=E.w;b.removeEdge(D,T),b.setEdge(A.v,A.w,{}),d(b),l(b,w),m(b,w)}function m(b,w){var E=e.find(b.nodes(),function(D){return!w.node(D).parent}),A=r(b,E);A=A.slice(1),e.forEach(A,function(D){var T=b.node(D).parent,M=w.edge(D,T),P=!1;M||(M=w.edge(T,D),P=!0),w.node(D).rank=w.node(T).rank+(P?M.minlen:-M.minlen)})}function v(b,w,E){return b.hasEdge(w,E)}function y(b,w,E){return E.low<=w.lim&&w.lim<=E.lim}return vPe}var yPe,DNt;function X_i(){if(DNt)return yPe;DNt=1;var e=Ihe(),t=e.longestPath,n=qmn(),i=Z_i();yPe=r;function r(l){switch(l.graph().ranker){case"network-simplex":a(l);break;case"tight-tree":s(l);break;case"longest-path":o(l);break;default:a(l)}}var o=t;function s(l){t(l),n(l)}function a(l){i(l)}return yPe}var bPe,TNt;function J_i(){if(TNt)return bPe;TNt=1;var e=Zu();bPe=t;function t(r){var o=i(r);e.forEach(r.graph().dummyChains,function(s){for(var a=r.node(s),l=a.edgeObj,c=n(r,o,l.v,l.w),u=c.path,d=c.lca,h=0,f=u[h],p=!0;s!==l.w;){if(a=r.node(s),p){for(;(f=u[h])!==d&&r.node(f).maxRank<a.rank;)h++;f===d&&(p=!1)}if(!p){for(;h<u.length-1&&r.node(f=u[h+1]).minRank<=a.rank;)h++;f=u[h]}r.setParent(s,f),s=r.successors(s)[0]}})}function n(r,o,s,a){var l=[],c=[],u=Math.min(o[s].low,o[a].low),d=Math.max(o[s].lim,o[a].lim),h,f;h=s;do h=r.parent(h),l.push(h);while(h&&(o[h].low>u||d>o[h].lim));for(f=h,h=a;(h=r.parent(h))!==f;)c.push(h);return{path:l.concat(c.reverse()),lca:f}}function i(r){var o={},s=0;function a(l){var c=s;e.forEach(r.children(l),a),o[l]={low:c,lim:s++}}return e.forEach(r.children(),a),o}return bPe}var _Pe,kNt;function ewi(){if(kNt)return _Pe;kNt=1;var e=Zu(),t=N0();_Pe={run:n,cleanup:s};function n(a){var l=t.addDummyNode(a,"root",{},"_root"),c=r(a),u=e.max(e.values(c))-1,d=2*u+1;a.graph().nestingRoot=l,e.forEach(a.edges(),function(f){a.edge(f).minlen*=d});var h=o(a)+1;e.forEach(a.children(),function(f){i(a,l,d,h,u,c,f)}),a.graph().nodeRankFactor=d}function i(a,l,c,u,d,h,f){var p=a.children(f);if(!p.length){f!==l&&a.setEdge(l,f,{weight:0,minlen:c});return}var g=t.addBorderNode(a,"_bt"),m=t.addBorderNode(a,"_bb"),v=a.node(f);a.setParent(g,f),v.borderTop=g,a.setParent(m,f),v.borderBottom=m,e.forEach(p,function(y){i(a,l,c,u,d,h,y);var b=a.node(y),w=b.borderTop?b.borderTop:y,E=b.borderBottom?b.borderBottom:y,A=b.borderTop?u:2*u,D=w!==E?1:d-h[f]+1;a.setEdge(g,w,{weight:A,minlen:D,nestingEdge:!0}),a.setEdge(E,m,{weight:A,minlen:D,nestingEdge:!0})}),a.parent(f)||a.setEdge(l,g,{weight:0,minlen:d+h[f]})}function r(a){var l={};function c(u,d){var h=a.children(u);h&&h.length&&e.forEach(h,function(f){c(f,d+1)}),l[u]=d}return e.forEach(a.children(),function(u){c(u,1)}),l}function o(a){return e.reduce(a.edges(),function(l,c){return l+a.edge(c).weight},0)}function s(a){var l=a.graph();a.removeNode(l.nestingRoot),delete l.nestingRoot,e.forEach(a.edges(),function(c){var u=a.edge(c);u.nestingEdge&&a.removeEdge(c)})}return _Pe}var wPe,INt;function twi(){if(INt)return wPe;INt=1;var e=Zu(),t=N0();wPe=n;function n(r){function o(s){var a=r.children(s),l=r.node(s);if(a.length&&e.forEach(a,o),e.has(l,"minRank")){l.borderLeft=[],l.borderRight=[];for(var c=l.minRank,u=l.maxRank+1;c<u;++c)i(r,"borderLeft","_bl",s,l,c),i(r,"borderRight","_br",s,l,c)}}e.forEach(r.children(),o)}function i(r,o,s,a,l,c){var u={width:0,height:0,rank:c,borderType:o},d=l[o][c-1],h=t.addDummyNode(r,"border",u,s);l[o][c]=h,r.setParent(h,a),d&&r.setEdge(d,h,{weight:1})}return wPe}var CPe,LNt;function nwi(){if(LNt)return CPe;LNt=1;var e=Zu();CPe={adjust:t,undo:n};function t(c){var u=c.graph().rankdir.toLowerCase();(u==="lr"||u==="rl")&&i(c)}function n(c){var u=c.graph().rankdir.toLowerCase();(u==="bt"||u==="rl")&&o(c),(u==="lr"||u==="rl")&&(a(c),i(c))}function i(c){e.forEach(c.nodes(),function(u){r(c.node(u))}),e.forEach(c.edges(),function(u){r(c.edge(u))})}function r(c){var u=c.width;c.width=c.height,c.height=u}function o(c){e.forEach(c.nodes(),function(u){s(c.node(u))}),e.forEach(c.edges(),function(u){var d=c.edge(u);e.forEach(d.points,s),e.has(d,"y")&&s(d)})}function s(c){c.y=-c.y}function a(c){e.forEach(c.nodes(),function(u){l(c.node(u))}),e.forEach(c.edges(),function(u){var d=c.edge(u);e.forEach(d.points,l),e.has(d,"x")&&l(d)})}function l(c){var u=c.x;c.x=c.y,c.y=u}return CPe}var SPe,NNt;function iwi(){if(NNt)return SPe;NNt=1;var e=Zu();SPe=t;function t(n){var i={},r=e.filter(n.nodes(),function(c){return!n.children(c).length}),o=e.max(e.map(r,function(c){return n.node(c).rank})),s=e.map(e.range(o+1),function(){return[]});function a(c){if(!e.has(i,c)){i[c]=!0;var u=n.node(c);s[u.rank].push(c),e.forEach(n.successors(c),a)}}var l=e.sortBy(r,function(c){return n.node(c).rank});return e.forEach(l,a),s}return SPe}var xPe,PNt;function rwi(){if(PNt)return xPe;PNt=1;var e=Zu();xPe=t;function t(i,r){for(var o=0,s=1;s<r.length;++s)o+=n(i,r[s-1],r[s]);return o}function n(i,r,o){for(var s=e.zipObject(o,e.map(o,function(h,f){return f})),a=e.flatten(e.map(r,function(h){return e.sortBy(e.map(i.outEdges(h),function(f){return{pos:s[f.w],weight:i.edge(f).weight}}),"pos")}),!0),l=1;l<o.length;)l<<=1;var c=2*l-1;l-=1;var u=e.map(new Array(c),function(){return 0}),d=0;return e.forEach(a.forEach(function(h){var f=h.pos+l;u[f]+=h.weight;for(var p=0;f>0;)f%2&&(p+=u[f+1]),f=f-1>>1,u[f]+=h.weight;d+=h.weight*p})),d}return xPe}var EPe,MNt;function owi(){if(MNt)return EPe;MNt=1;var e=Zu();EPe=t;function t(n,i){return e.map(i,function(r){var o=n.inEdges(r);if(o.length){var s=e.reduce(o,function(a,l){var c=n.edge(l),u=n.node(l.v);return{sum:a.sum+c.weight*u.order,weight:a.weight+c.weight}},{sum:0,weight:0});return{v:r,barycenter:s.sum/s.weight,weight:s.weight}}else return{v:r}})}return EPe}var APe,ONt;function swi(){if(ONt)return APe;ONt=1;var e=Zu();APe=t;function t(r,o){var s={};e.forEach(r,function(l,c){var u=s[l.v]={indegree:0,in:[],out:[],vs:[l.v],i:c};e.isUndefined(l.barycenter)||(u.barycenter=l.barycenter,u.weight=l.weight)}),e.forEach(o.edges(),function(l){var c=s[l.v],u=s[l.w];!e.isUndefined(c)&&!e.isUndefined(u)&&(u.indegree++,c.out.push(s[l.w]))});var a=e.filter(s,function(l){return!l.indegree});return n(a)}function n(r){var o=[];function s(c){return function(u){u.merged||(e.isUndefined(u.barycenter)||e.isUndefined(c.barycenter)||u.barycenter>=c.barycenter)&&i(c,u)}}function a(c){return function(u){u.in.push(c),--u.indegree===0&&r.push(u)}}for(;r.length;){var l=r.pop();o.push(l),e.forEach(l.in.reverse(),s(l)),e.forEach(l.out,a(l))}return e.map(e.filter(o,function(c){return!c.merged}),function(c){return e.pick(c,["vs","i","barycenter","weight"])})}function i(r,o){var s=0,a=0;r.weight&&(s+=r.barycenter*r.weight,a+=r.weight),o.weight&&(s+=o.barycenter*o.weight,a+=o.weight),r.vs=o.vs.concat(r.vs),r.barycenter=s/a,r.weight=a,r.i=Math.min(o.i,r.i),o.merged=!0}return APe}var DPe,RNt;function awi(){if(RNt)return DPe;RNt=1;var e=Zu(),t=N0();DPe=n;function n(o,s){var a=t.partition(o,function(g){return e.has(g,"barycenter")}),l=a.lhs,c=e.sortBy(a.rhs,function(g){return-g.i}),u=[],d=0,h=0,f=0;l.sort(r(!!s)),f=i(u,c,f),e.forEach(l,function(g){f+=g.vs.length,u.push(g.vs),d+=g.barycenter*g.weight,h+=g.weight,f=i(u,c,f)});var p={vs:e.flatten(u,!0)};return h&&(p.barycenter=d/h,p.weight=h),p}function i(o,s,a){for(var l;s.length&&(l=e.last(s)).i<=a;)s.pop(),o.push(l.vs),a++;return a}function r(o){return function(s,a){return s.barycenter<a.barycenter?-1:s.barycenter>a.barycenter?1:o?a.i-s.i:s.i-a.i}}return DPe}var TPe,FNt;function lwi(){if(FNt)return TPe;FNt=1;var e=Zu(),t=owi(),n=swi(),i=awi();TPe=r;function r(a,l,c,u){var d=a.children(l),h=a.node(l),f=h?h.borderLeft:void 0,p=h?h.borderRight:void 0,g={};f&&(d=e.filter(d,function(E){return E!==f&&E!==p}));var m=t(a,d);e.forEach(m,function(E){if(a.children(E.v).length){var A=r(a,E.v,c,u);g[E.v]=A,e.has(A,"barycenter")&&s(E,A)}});var v=n(m,c);o(v,g);var y=i(v,u);if(f&&(y.vs=e.flatten([f,y.vs,p],!0),a.predecessors(f).length)){var b=a.node(a.predecessors(f)[0]),w=a.node(a.predecessors(p)[0]);e.has(y,"barycenter")||(y.barycenter=0,y.weight=0),y.barycenter=(y.barycenter*y.weight+b.order+w.order)/(y.weight+2),y.weight+=2}return y}function o(a,l){e.forEach(a,function(c){c.vs=e.flatten(c.vs.map(function(u){return l[u]?l[u].vs:u}),!0)})}function s(a,l){e.isUndefined(a.barycenter)?(a.barycenter=l.barycenter,a.weight=l.weight):(a.barycenter=(a.barycenter*a.weight+l.barycenter*l.weight)/(a.weight+l.weight),a.weight+=l.weight)}return TPe}var kPe,BNt;function cwi(){if(BNt)return kPe;BNt=1;var e=Zu(),t=IC().Graph;kPe=n;function n(r,o,s){var a=i(r),l=new t({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(function(c){return r.node(c)});return e.forEach(r.nodes(),function(c){var u=r.node(c),d=r.parent(c);(u.rank===o||u.minRank<=o&&o<=u.maxRank)&&(l.setNode(c),l.setParent(c,d||a),e.forEach(r[s](c),function(h){var f=h.v===c?h.w:h.v,p=l.edge(f,c),g=e.isUndefined(p)?0:p.weight;l.setEdge(f,c,{weight:r.edge(h).weight+g})}),e.has(u,"minRank")&&l.setNode(c,{borderLeft:u.borderLeft[o],borderRight:u.borderRight[o]}))}),l}function i(r){for(var o;r.hasNode(o=e.uniqueId("_root")););return o}return kPe}var IPe,jNt;function uwi(){if(jNt)return IPe;jNt=1;var e=Zu();IPe=t;function t(n,i,r){var o={},s;e.forEach(r,function(a){for(var l=n.parent(a),c,u;l;){if(c=n.parent(l),c?(u=o[c],o[c]=l):(u=s,s=l),u&&u!==l){i.setEdge(u,l);return}l=c}})}return IPe}var LPe,zNt;function dwi(){if(zNt)return LPe;zNt=1;var e=Zu(),t=iwi(),n=rwi(),i=lwi(),r=cwi(),o=uwi(),s=IC().Graph,a=N0();LPe=l;function l(h){var f=a.maxRank(h),p=c(h,e.range(1,f+1),"inEdges"),g=c(h,e.range(f-1,-1,-1),"outEdges"),m=t(h);d(h,m);for(var v=Number.POSITIVE_INFINITY,y,b=0,w=0;w<4;++b,++w){u(b%2?p:g,b%4>=2),m=a.buildLayerMatrix(h);var E=n(h,m);E<v&&(w=0,y=e.cloneDeep(m),v=E)}d(h,y)}function c(h,f,p){return e.map(f,function(g){return r(h,g,p)})}function u(h,f){var p=new s;e.forEach(h,function(g){var m=g.graph().root,v=i(g,m,p,f);e.forEach(v.vs,function(y,b){g.node(y).order=b}),o(g,p,v.vs)})}function d(h,f){e.forEach(f,function(p){e.forEach(p,function(g,m){h.node(g).order=m})})}return LPe}var NPe,VNt;function hwi(){if(VNt)return NPe;VNt=1;var e=Zu(),t=IC().Graph,n=N0();NPe={positionX:p,findType1Conflicts:i,findType2Conflicts:r,addConflict:s,hasConflict:a,verticalAlignment:l,horizontalCompaction:c,alignCoordinates:h,findSmallestWidthAlignment:d,balance:f};function i(v,y){var b={};function w(E,A){var D=0,T=0,M=E.length,P=e.last(A);return e.forEach(A,function(F,N){var j=o(v,F),W=j?v.node(j).order:M;(j||F===P)&&(e.forEach(A.slice(T,N+1),function(J){e.forEach(v.predecessors(J),function(ee){var Q=v.node(ee),H=Q.order;(H<D||W<H)&&!(Q.dummy&&v.node(J).dummy)&&s(b,ee,J)})}),T=N+1,D=W)}),A}return e.reduce(y,w),b}function r(v,y){var b={};function w(A,D,T,M,P){var F;e.forEach(e.range(D,T),function(N){F=A[N],v.node(F).dummy&&e.forEach(v.predecessors(F),function(j){var W=v.node(j);W.dummy&&(W.order<M||W.order>P)&&s(b,j,F)})})}function E(A,D){var T=-1,M,P=0;return e.forEach(D,function(F,N){if(v.node(F).dummy==="border"){var j=v.predecessors(F);j.length&&(M=v.node(j[0]).order,w(D,P,N,T,M),P=N,T=M)}w(D,P,D.length,M,A.length)}),D}return e.reduce(y,E),b}function o(v,y){if(v.node(y).dummy)return e.find(v.predecessors(y),function(b){return v.node(b).dummy})}function s(v,y,b){if(y>b){var w=y;y=b,b=w}var E=v[y];E||(v[y]=E={}),E[b]=!0}function a(v,y,b){if(y>b){var w=y;y=b,b=w}return e.has(v[y],b)}function l(v,y,b,w){var E={},A={},D={};return e.forEach(y,function(T){e.forEach(T,function(M,P){E[M]=M,A[M]=M,D[M]=P})}),e.forEach(y,function(T){var M=-1;e.forEach(T,function(P){var F=w(P);if(F.length){F=e.sortBy(F,function(ee){return D[ee]});for(var N=(F.length-1)/2,j=Math.floor(N),W=Math.ceil(N);j<=W;++j){var J=F[j];A[P]===P&&M<D[J]&&!a(b,P,J)&&(A[J]=P,A[P]=E[P]=E[J],M=D[J])}}})}),{root:E,align:A}}function c(v,y,b,w,E){var A={},D=u(v,y,b,E),T=E?"borderLeft":"borderRight";function M(N,j){for(var W=D.nodes(),J=W.pop(),ee={};J;)ee[J]?N(J):(ee[J]=!0,W.push(J),W=W.concat(j(J))),J=W.pop()}function P(N){A[N]=D.inEdges(N).reduce(function(j,W){return Math.max(j,A[W.v]+D.edge(W))},0)}function F(N){var j=D.outEdges(N).reduce(function(J,ee){return Math.min(J,A[ee.w]-D.edge(ee))},Number.POSITIVE_INFINITY),W=v.node(N);j!==Number.POSITIVE_INFINITY&&W.borderType!==T&&(A[N]=Math.max(A[N],j))}return M(P,D.predecessors.bind(D)),M(F,D.successors.bind(D)),e.forEach(w,function(N){A[N]=A[b[N]]}),A}function u(v,y,b,w){var E=new t,A=v.graph(),D=g(A.nodesep,A.edgesep,w);return e.forEach(y,function(T){var M;e.forEach(T,function(P){var F=b[P];if(E.setNode(F),M){var N=b[M],j=E.edge(N,F);E.setEdge(N,F,Math.max(D(v,P,M),j||0))}M=P})}),E}function d(v,y){return e.minBy(e.values(y),function(b){var w=Number.NEGATIVE_INFINITY,E=Number.POSITIVE_INFINITY;return e.forIn(b,function(A,D){var T=m(v,D)/2;w=Math.max(A+T,w),E=Math.min(A-T,E)}),w-E})}function h(v,y){var b=e.values(y),w=e.min(b),E=e.max(b);e.forEach(["u","d"],function(A){e.forEach(["l","r"],function(D){var T=A+D,M=v[T],P;if(M!==y){var F=e.values(M);P=D==="l"?w-e.min(F):E-e.max(F),P&&(v[T]=e.mapValues(M,function(N){return N+P}))}})})}function f(v,y){return e.mapValues(v.ul,function(b,w){if(y)return v[y.toLowerCase()][w];var E=e.sortBy(e.map(v,w));return(E[1]+E[2])/2})}function p(v){var y=n.buildLayerMatrix(v),b=e.merge(i(v,y),r(v,y)),w={},E;e.forEach(["u","d"],function(D){E=D==="u"?y:e.values(y).reverse(),e.forEach(["l","r"],function(T){T==="r"&&(E=e.map(E,function(N){return e.values(N).reverse()}));var M=(D==="u"?v.predecessors:v.successors).bind(v),P=l(v,E,b,M),F=c(v,E,P.root,P.align,T==="r");T==="r"&&(F=e.mapValues(F,function(N){return-N})),w[D+T]=F})});var A=d(v,w);return h(w,A),f(w,v.graph().align)}function g(v,y,b){return function(w,E,A){var D=w.node(E),T=w.node(A),M=0,P;if(M+=D.width/2,e.has(D,"labelpos"))switch(D.labelpos.toLowerCase()){case"l":P=-D.width/2;break;case"r":P=D.width/2;break}if(P&&(M+=b?P:-P),P=0,M+=(D.dummy?y:v)/2,M+=(T.dummy?y:v)/2,M+=T.width/2,e.has(T,"labelpos"))switch(T.labelpos.toLowerCase()){case"l":P=T.width/2;break;case"r":P=-T.width/2;break}return P&&(M+=b?P:-P),P=0,M}}function m(v,y){return v.node(y).width}return NPe}var PPe,HNt;function fwi(){if(HNt)return PPe;HNt=1;var e=Zu(),t=N0(),n=hwi().positionX;PPe=i;function i(o){o=t.asNonCompoundGraph(o),r(o),e.forEach(n(o),function(s,a){o.node(a).x=s})}function r(o){var s=t.buildLayerMatrix(o),a=o.graph().ranksep,l=0;e.forEach(s,function(c){var u=e.max(e.map(c,function(d){return o.node(d).height}));e.forEach(c,function(d){o.node(d).y=l+u/2}),l+=u+a})}return PPe}var MPe,WNt;function pwi(){if(WNt)return MPe;WNt=1;var e=Zu(),t=Y_i(),n=Q_i(),i=X_i(),r=N0().normalizeRanks,o=J_i(),s=N0().removeEmptyRanks,a=ewi(),l=twi(),c=nwi(),u=dwi(),d=fwi(),h=N0(),f=IC().Graph;MPe=p;function p(U,K){var ie=K&&K.debugTiming?h.time:h.notime;ie("layout",function(){var ce=ie("  buildLayoutGraph",function(){return M(U)});ie("  runLayout",function(){g(ce,ie)}),ie("  updateInputGraph",function(){m(U,ce)})})}function g(U,K){K("    makeSpaceForEdgeLabels",function(){P(U)}),K("    removeSelfEdges",function(){q(U)}),K("    acyclic",function(){t.run(U)}),K("    nestingGraph.run",function(){a.run(U)}),K("    rank",function(){i(h.asNonCompoundGraph(U))}),K("    injectEdgeLabelProxies",function(){F(U)}),K("    removeEmptyRanks",function(){s(U)}),K("    nestingGraph.cleanup",function(){a.cleanup(U)}),K("    normalizeRanks",function(){r(U)}),K("    assignRankMinMax",function(){N(U)}),K("    removeEdgeLabelProxies",function(){j(U)}),K("    normalize.run",function(){n.run(U)}),K("    parentDummyChains",function(){o(U)}),K("    addBorderSegments",function(){l(U)}),K("    order",function(){u(U)}),K("    insertSelfEdges",function(){le(U)}),K("    adjustCoordinateSystem",function(){c.adjust(U)}),K("    position",function(){d(U)}),K("    positionSelfEdges",function(){Y(U)}),K("    removeBorderNodes",function(){H(U)}),K("    normalize.undo",function(){n.undo(U)}),K("    fixupEdgeLabelCoords",function(){ee(U)}),K("    undoCoordinateSystem",function(){c.undo(U)}),K("    translateGraph",function(){W(U)}),K("    assignNodeIntersects",function(){J(U)}),K("    reversePoints",function(){Q(U)}),K("    acyclic.undo",function(){t.undo(U)})}function m(U,K){e.forEach(U.nodes(),function(ie){var ce=U.node(ie),de=K.node(ie);ce&&(ce.x=de.x,ce.y=de.y,K.children(ie).length&&(ce.width=de.width,ce.height=de.height))}),e.forEach(U.edges(),function(ie){var ce=U.edge(ie),de=K.edge(ie);ce.points=de.points,e.has(de,"x")&&(ce.x=de.x,ce.y=de.y)}),U.graph().width=K.graph().width,U.graph().height=K.graph().height}var v=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],w=["width","height"],E={width:0,height:0},A=["minlen","weight","width","height","labeloffset"],D={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},T=["labelpos"];function M(U){var K=new f({multigraph:!0,compound:!0}),ie=pe(U.graph());return K.setGraph(e.merge({},y,G(ie,v),e.pick(ie,b))),e.forEach(U.nodes(),function(ce){var de=pe(U.node(ce));K.setNode(ce,e.defaults(G(de,w),E)),K.setParent(ce,U.parent(ce))}),e.forEach(U.edges(),function(ce){var de=pe(U.edge(ce));K.setEdge(ce,e.merge({},D,G(de,A),e.pick(de,T)))}),K}function P(U){var K=U.graph();K.ranksep/=2,e.forEach(U.edges(),function(ie){var ce=U.edge(ie);ce.minlen*=2,ce.labelpos.toLowerCase()!=="c"&&(K.rankdir==="TB"||K.rankdir==="BT"?ce.width+=ce.labeloffset:ce.height+=ce.labeloffset)})}function F(U){e.forEach(U.edges(),function(K){var ie=U.edge(K);if(ie.width&&ie.height){var ce=U.node(K.v),de=U.node(K.w),oe={rank:(de.rank-ce.rank)/2+ce.rank,e:K};h.addDummyNode(U,"edge-proxy",oe,"_ep")}})}function N(U){var K=0;e.forEach(U.nodes(),function(ie){var ce=U.node(ie);ce.borderTop&&(ce.minRank=U.node(ce.borderTop).rank,ce.maxRank=U.node(ce.borderBottom).rank,K=e.max(K,ce.maxRank))}),U.graph().maxRank=K}function j(U){e.forEach(U.nodes(),function(K){var ie=U.node(K);ie.dummy==="edge-proxy"&&(U.edge(ie.e).labelRank=ie.rank,U.removeNode(K))})}function W(U){var K=Number.POSITIVE_INFINITY,ie=0,ce=Number.POSITIVE_INFINITY,de=0,oe=U.graph(),me=oe.marginx||0,Ce=oe.marginy||0;function Se(De){var Me=De.x,qe=De.y,$=De.width,he=De.height;K=Math.min(K,Me-$/2),ie=Math.max(ie,Me+$/2),ce=Math.min(ce,qe-he/2),de=Math.max(de,qe+he/2)}e.forEach(U.nodes(),function(De){Se(U.node(De))}),e.forEach(U.edges(),function(De){var Me=U.edge(De);e.has(Me,"x")&&Se(Me)}),K-=me,ce-=Ce,e.forEach(U.nodes(),function(De){var Me=U.node(De);Me.x-=K,Me.y-=ce}),e.forEach(U.edges(),function(De){var Me=U.edge(De);e.forEach(Me.points,function(qe){qe.x-=K,qe.y-=ce}),e.has(Me,"x")&&(Me.x-=K),e.has(Me,"y")&&(Me.y-=ce)}),oe.width=ie-K+me,oe.height=de-ce+Ce}function J(U){e.forEach(U.edges(),function(K){var ie=U.edge(K),ce=U.node(K.v),de=U.node(K.w),oe,me;ie.points?(oe=ie.points[0],me=ie.points[ie.points.length-1]):(ie.points=[],oe=de,me=ce),ie.points.unshift(h.intersectRect(ce,oe)),ie.points.push(h.intersectRect(de,me))})}function ee(U){e.forEach(U.edges(),function(K){var ie=U.edge(K);if(e.has(ie,"x"))switch((ie.labelpos==="l"||ie.labelpos==="r")&&(ie.width-=ie.labeloffset),ie.labelpos){case"l":ie.x-=ie.width/2+ie.labeloffset;break;case"r":ie.x+=ie.width/2+ie.labeloffset;break}})}function Q(U){e.forEach(U.edges(),function(K){var ie=U.edge(K);ie.reversed&&ie.points.reverse()})}function H(U){e.forEach(U.nodes(),function(K){if(U.children(K).length){var ie=U.node(K),ce=U.node(ie.borderTop),de=U.node(ie.borderBottom),oe=U.node(e.last(ie.borderLeft)),me=U.node(e.last(ie.borderRight));ie.width=Math.abs(me.x-oe.x),ie.height=Math.abs(de.y-ce.y),ie.x=oe.x+ie.width/2,ie.y=ce.y+ie.height/2}}),e.forEach(U.nodes(),function(K){U.node(K).dummy==="border"&&U.removeNode(K)})}function q(U){e.forEach(U.edges(),function(K){if(K.v===K.w){var ie=U.node(K.v);ie.selfEdges||(ie.selfEdges=[]),ie.selfEdges.push({e:K,label:U.edge(K)}),U.removeEdge(K)}})}function le(U){var K=h.buildLayerMatrix(U);e.forEach(K,function(ie){var ce=0;e.forEach(ie,function(de,oe){var me=U.node(de);me.order=oe+ce,e.forEach(me.selfEdges,function(Ce){h.addDummyNode(U,"selfedge",{width:Ce.label.width,height:Ce.label.height,rank:me.rank,order:oe+ ++ce,e:Ce.e,label:Ce.label},"_se")}),delete me.selfEdges})})}function Y(U){e.forEach(U.nodes(),function(K){var ie=U.node(K);if(ie.dummy==="selfedge"){var ce=U.node(ie.e.v),de=ce.x+ce.width/2,oe=ce.y,me=ie.x-de,Ce=ce.height/2;U.setEdge(ie.e,ie.label),U.removeNode(K),ie.label.points=[{x:de+2*me/3,y:oe-Ce},{x:de+5*me/6,y:oe-Ce},{x:de+me,y:oe},{x:de+5*me/6,y:oe+Ce},{x:de+2*me/3,y:oe+Ce}],ie.label.x=ie.x,ie.label.y=ie.y}})}function G(U,K){return e.mapValues(e.pick(U,K),Number)}function pe(U){var K={};return e.forEach(U,function(ie,ce){K[ce.toLowerCase()]=ie}),K}return MPe}var OPe,UNt;function gwi(){if(UNt)return OPe;UNt=1;var e=Zu(),t=N0(),n=IC().Graph;OPe={debugOrdering:i};function i(r){var o=t.buildLayerMatrix(r),s=new n({compound:!0,multigraph:!0}).setGraph({});return e.forEach(r.nodes(),function(a){s.setNode(a,{label:a}),s.setParent(a,"layer"+r.node(a).rank)}),e.forEach(r.edges(),function(a){s.setEdge(a.v,a.w,{},a.name)}),e.forEach(o,function(a,l){var c="layer"+l;s.setNode(c,{rank:"same"}),e.reduce(a,function(u,d){return s.setEdge(u,d,{style:"invis"}),d})}),s}return OPe}var RPe,$Nt;function mwi(){return $Nt||($Nt=1,RPe="0.8.5"),RPe}var FPe,qNt;function vwi(){return qNt||(qNt=1,FPe={graphlib:IC(),layout:pwi(),debug:gwi(),util:{time:N0().time,notime:N0().notime},version:mwi()}),FPe}var Gmn=vwi(),ywi=qgn(Gmn),bwi=function(e){return Hgn(e,"Boolean")};function _wi(e,t){if(e){var n;if(mYe(e))for(var i=0,r=e.length;i<r&&(n=t(e[i],i),n!==!1);i++);else if(mvi(e)){for(var o in e)if(e.hasOwnProperty(o)&&(n=t(e[o],o),n===!1))break}}}var wwi=Object.prototype.hasOwnProperty,Cwi=(function(e,t){if(e===null||!B9e(e))return{};var n={};return _wi(t,function(i){wwi.call(e,i)&&(n[i]=e[i])}),n}),Kmn=class extends EE{constructor(){super(...arguments),this.id="dagre",this.isCompoundGraph=null,this.config={graphAttributes:["rankdir","align","nodesep","edgesep","ranksep","marginx","marginy","acyclicer","ranker"],nodeAttributes:["width","height"],edgeAttributes:["minlen","weight","width","height","labelpos","labeloffset"]}}getDefaultOptions(){return{directed:!0,multigraph:!0,rankdir:"TB",align:void 0,nodesep:50,edgesep:10,ranksep:50,marginx:0,marginy:0,acyclicer:void 0,ranker:"network-simplex",nodeSize:[0,0],edgeMinLen:1,edgeWeight:1,edgeLabelSize:[0,0],edgeLabelPos:"r",edgeLabelOffset:10}}layout(){return $f(this,void 0,void 0,function*(){const e=new Gmn.graphlib.Graph({directed:!!this.options.directed,multigraph:!!this.options.multigraph,compound:this.isCompound()});e.setGraph(Cwi(this.options,this.config.graphAttributes)),e.setDefaultEdgeLabel(()=>({}));const t=whe(this.options.nodeSize,0);this.model.forEachNode(h=>{const f=h._original,[p,g]=_he(t(f)),m={width:p,height:g};if(e.setNode(String(h.id),m),this.isCompound()){if(Bf(h.parentId))return;e.setParent(String(h.id),String(h.parentId))}});const{edgeLabelSize:n,edgeLabelOffset:i,edgeLabelPos:r,edgeMinLen:o,edgeWeight:s}=this.options,a=whe(n,0,"edge"),l=Oy(i,10,"edge"),c=typeof r=="string"?()=>r:jf(r,["edge"]),u=Oy(o,1,"edge"),d=Oy(s,1,"edge");this.model.forEachEdge(h=>{const f=h._original,[p,g]=_he(a(f)),m={width:p,height:g,labelpos:c(f),labeloffset:l(f),minlen:u(f),weight:d(f)};e.setEdge(String(h.source),String(h.target),m,String(h.id))}),ywi.layout(e),this.model.forEachNode(h=>{const f=e.node(String(h.id));f&&(h.x=f.x,h.y=f.y,h.size=[f.width,f.height])}),this.model.forEachEdge(h=>{const f=e.edge(String(h.source),String(h.target),String(h.id));if(!f)return;const{width:p,height:g,weight:m,minlen:v,labelpos:y,labeloffset:b,points:w}=f;h.labelSize=[p,g],h.weight=m,h.minLen=v,h.labelPos=y,h.labelOffset=b,h.points=w.map(sgn)})})}isCompound(){return this.isCompoundGraph!==null?this.isCompoundGraph:bwi(this.options.compound)?this.isCompoundGraph=this.options.compound:(this.isCompoundGraph=this.model.nodes().some(e=>!Bf(e.parentId)),this.isCompoundGraph)}};function Swi(e=2){let t=!1;function n(i,r){i.forEachEdge(o=>{var s,a;const{source:l,target:c}=o,u=i.node(l),d=i.node(c);if(!u||!d)return;let h=d.x-u.x,f=d.y-u.y,p=e===3?((s=d.z)!==null&&s!==void 0?s:0)-((a=u.z)!==null&&a!==void 0?a:0):0;!h&&!f&&(h=.01,f=.01,e===3&&!p&&(p=.01));const g=Math.sqrt(h*h+f*f+p*p);if(g<Number(u.size)+Number(d.size))return;const m=h/g,v=f/g,y=p/g,{linkDistance:b=200,edgeStrength:w=200}=o,A=(b-g)*w,D=u.mass||1,T=d.mass||1,M=1/D,P=1/T,F=m*A,N=v*A,j=y*A;r[l].x-=F*M,r[l].y-=N*M,r[l].z-=j*M,r[c].x+=F*P,r[c].y+=N*P,r[c].z+=j*P})}return n.dimensions=function(i){return arguments.length?(e=i,n):e},n.preventOverlap=function(i){return arguments.length?(t=i,n):t},n}function xwi(e){let t,n=800,i=600;function r(o,s){if(!t)return;const{leaf:a,single:l,others:c,center:u}=t,d=o.nodes(),h=o.edges(),f=d.map(g=>Object.assign(Object.assign({},g),{data:g.data||{}})),p=h.map(g=>Object.assign(Object.assign({},g),{data:g.data||{}}));o.forEachNode(g=>{const{id:m,mass:v,x:y,y:b,z:w=0,data:E}=g,A=o.degree(m,"in"),D=o.degree(m,"out"),T=o.degree(m,"both"),M=Object.assign(Object.assign({},g),{data:E||{}}),{x:P,y:F,z:N,centerStrength:j}=u?.(M,f,p,n,i)||{x:0,y:0,z:0,centerStrength:0};if(!vh(P)||!vh(F))return;const W=(y-P)/v,J=(b-F)/v,ee=(w-(N||0))/v;if(j&&(s[m].x-=j*W,s[m].y-=j*J,s[m].z-=j*ee),T===0){const H=l(M);if(!H)return;s[m].x-=H*W,s[m].y-=H*J,s[m].z-=H*ee;return}if(A===0||D===0){const H=a(M,f,p);if(!H)return;s[m].x-=H*W,s[m].y-=H*J,s[m].z-=H*ee;return}const Q=c(M);Q&&(s[m].x-=Q*W,s[m].y-=Q*J,s[m].z-=Q*ee)})}return r.options=function(o){return arguments.length?(t=o,r):t},r.width=function(o){return arguments.length?(n=o,r):n},r.height=function(o){return arguments.length?(i=o,r):i},r}var j4=1e-6,GNt=500;function Ewi(e=2){let t=1;function n(a,l){const c=a.nodes();if(c.length<2||t<=0)return;if(e===2){const d=c.map((f,p)=>({id:f.id,index:p,x:f.x,y:f.y,r:Number(f.size)/2,mass:f.mass||1,fx:f.fx,fy:f.fy})),h=CF(d,f=>f.x,f=>f.y).visitAfter(Awi);for(const f of d)h.visit((p,g,m,v,y)=>{const b=p.r||0,w=f.r+b;if(g>f.x+w||v<f.x-w||m>f.y+w||y<f.y-w)return!0;if(!p.data)return!1;let E=p;do{const A=E.data;A&&A.index>f.index&&o(f,A,l),E=E.next}while(E);return!1});return}const u=c.map((d,h)=>{var f;return{id:d.id,index:h,x:d.x,y:d.y,z:(f=d.z)!==null&&f!==void 0?f:0,r:Number(d.size)/2,mass:d.mass||1,fx:d.fx,fy:d.fy,fz:d.fz}});for(let d=0;d<u.length;d++)for(let h=d+1;h<u.length;h++)s(u[d],u[h],l)}function i(a){return vh(a.fx)&&vh(a.fy)?0:1/(a.mass||1)}function r(a){return vh(a.fx)&&vh(a.fy)&&vh(a.fz)?0:1/(a.mass||1)}function o(a,l,c){let u=a.x-l.x,d=a.y-l.y,h=Math.hypot(u,d);const f=a.r+l.r;if(h>=f)return;h<j4&&(u=a.index<l.index?j4:-j4,d=0,h=Math.abs(u));const p=f-h,g=u/h,m=d/h,v=p*t*GNt,y=i(a),b=i(l);y&&(c[a.id].x+=g*v*y,c[a.id].y+=m*v*y),b&&(c[l.id].x-=g*v*b,c[l.id].y-=m*v*b)}function s(a,l,c){let u=a.x-l.x,d=a.y-l.y,h=a.z-l.z,f=Math.sqrt(u*u+d*d+h*h);const p=a.r+l.r;if(f>=p)return;f<j4&&(u=a.index<l.index?j4:-j4,d=0,h=0,f=Math.abs(u));const g=p-f,m=u/f,v=d/f,y=h/f,b=g*t*GNt,w=r(a),E=r(l);w&&(c[a.id].x+=m*b*w,c[a.id].y+=v*b*w,c[a.id].z+=y*b*w),E&&(c[l.id].x-=m*b*E,c[l.id].y-=v*b*E,c[l.id].z-=y*b*E)}return n.dimensions=function(a){return arguments.length?(e=a,n):e},n.strength=function(a){return arguments.length?(t=a,n):t},n}function Awi(e){var t;let n=0;if(e.length)for(let i=0;i<e.length;i++){const r=e[i];r&&r.r>n&&(n=r.r)}else if(e.data){n=e.data.r||0;let i=e.next;for(;i;)n=Math.max(n,((t=i.data)===null||t===void 0?void 0:t.r)||0),i=i.next}e.r=n}function Dwi(e=[0,0,0],t=10){let n;function i(r,o){r.nodes()&&r.forEachNode(a=>{const{id:l,mass:c,x:u,y:d,z:h=0}=a;let f=0,p=0,g=0,m=t;const v=r.degree(l),y=n?.(a,v);if(y){const[b,w,E]=y;f=u-b,p=d-w,m=E}else f=u-e[0],p=d-e[1],g=h-(e[2]||0);m&&(o[l].x-=m*f/c,o[l].y-=m*p/c,o[l].z-=m*g/c)})}return i.center=function(r){return arguments.length?(e=r,i):e},i.gravity=function(r){return arguments.length?(t=r,i):t},i.getCenter=function(r){return arguments.length?(n=r,i):n},i}function Twi(e=1,t=.005,n=2){function i(r,o){const s=t*t;Iwi(r,e,s,o,n)}return i.factor=function(r){return arguments.length?(e=r,i):e},i.coulombDisScale=function(r){return arguments.length?(t=r,i):t},i.dimensions=function(r){return arguments.length?(n=r,i):n},i}var kwi=.81,BPe=.1;function Iwi(e,t,n,i,r=2){const o=t/n,a=e.nodes().map((u,d)=>{const{nodeStrength:h,x:f,y:p,z:g,size:m,mass:v}=u;return{x:f,y:p,z:g,size:m,index:d,id:u.id,vx:0,vy:0,vz:0,weight:o*h,mass:v||1}}),l=(r===2?CF(a,u=>u.x,u=>u.y):Nve(a,u=>u.x,u=>u.y,u=>u.z)).visitAfter(Lwi),c=new Map;return a.forEach(u=>{c.set(u.id,u),Pwi(u,l,r)}),a.map(u=>{const d=u.id;i[d]={x:u.vx/u.mass,y:u.vy/u.mass,z:u.vz/u.mass}}),i}function Lwi(e){let t=0,n=0,i=0,r=0,o=0;const s=e.length;if(s){for(let a=0;a<s;a++){const l=e[a];l&&l.weight&&(t+=l.weight,n+=l.x*l.weight,i+=l.y*l.weight,r+=l.z*l.weight,o+=l.size*l.weight)}e.x=n/t,e.y=i/t,e.z=r/t,e.size=o/t,e.weight=t}else{const a=e;e.x=a.data.x,e.y=a.data.y,e.z=a.data.z,e.size=a.data.size,e.weight=a.data.weight}}var Nwi=(e,t,n,i,r,o,s,a,l)=>{var c;if(((c=e.data)===null||c===void 0?void 0:c.id)===a.id)return;const u=l===2?i:l===3?o:n,d=a.x-e.x||BPe,h=a.y-e.y||BPe,f=a.z-e.z||BPe,p=[d,h,f],g=u-t;let m=0;for(let b=0;b<l;b++)m+=p[b]*p[b];const y=Math.sqrt(m)*m;if(g*g*kwi<m){const b=e.weight/y;return a.vx+=d*b,a.vy+=h*b,a.vz+=f*b,!0}if(e.length)return!1;if(e.data!==a){const b=e.data.weight/y;a.vx+=d*b,a.vy+=h*b,a.vz+=f*b}};function Pwi(e,t,n){t.visit((i,r,o,s,a,l,c)=>Nwi(i,r,o,s,a,l,c,e,n))}var Mwi="*",Owi=(function(){function e(){this._events={}}return e.prototype.on=function(t,n,i){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:n,once:!!i}),this},e.prototype.once=function(t,n){return this.on(t,n,!0)},e.prototype.emit=function(t){for(var n=this,i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];var o=this._events[t]||[],s=this._events[Mwi]||[],a=function(l){for(var c=l.length,u=0;u<c;u++)if(l[u]){var d=l[u],h=d.callback,f=d.once;f&&(l.splice(u,1),l.length===0&&delete n._events[t],c--,u--),h.apply(n,i)}};a(o),a(s)},e.prototype.off=function(t,n){if(!t)this._events={};else if(!n)delete this._events[t];else{for(var i=this._events[t]||[],r=i.length,o=0;o<r;o++)i[o].callback===n&&(i.splice(o,1),r--,o--);i.length===0&&delete this._events[t]}return this},e.prototype.getEvents=function(){return this._events},e})(),UYe=class extends Owi{constructor(){super(...arguments),this.iteration=0,this.judgingDistance=1/0,this.running=!1,this.tickCallback=null,this.endCallback=null,this.timer=0}initialize(e){this.options=e,this.iteration=0,this.judgingDistance=1/0}on(e,t){return e==="tick"&&(this.tickCallback=t),e==="end"&&(this.endCallback=t),this}tick(e=1){var t;for(let n=0;n<e;n++){const i=this.runOneStep();this.judgingDistance=i,this.iteration++,(t=this.tickCallback)===null||t===void 0||t.call(this)}return this}restart(){if(this.running)return this;const{maxIteration:e=500,minMovement:t=0,animate:n=!0}=this.options;if(!n||typeof window>"u"){for(;this.iteration<e&&(this.judgingDistance>t||this.iteration<1);)this.tick(1);return Promise.resolve().then(()=>{var i;(i=this.endCallback)===null||i===void 0||i.call(this)}),this}return this.running=!0,this.timer=window.setInterval(()=>{var i;this.tick(1),(this.iteration>=e||this.judgingDistance<t)&&(this.stop(),(i=this.endCallback)===null||i===void 0||i.call(this))},0),this}stop(){return this.running=!1,this.timer&&(clearInterval(this.timer),this.timer=0),this}},Rwi=class extends UYe{constructor(){super(...arguments),this.forces=new Map,this.velMap={}}data(e){return this.model=e,e.forEachNode(t=>{this.velMap[t.id]={x:0,y:0,z:0}}),this}force(e,t){return arguments.length===1?this.forces.get(e)||null:(t===null?this.forces.delete(e):t&&this.forces.set(e,t),t||null)}runOneStep(){const e={},t=this.model.nodes();if(!t.length)return 0;t.forEach(i=>{e[i.id]={x:0,y:0,z:0}}),this.forces.forEach(i=>{i(this.model,e)}),this.updateVelocity(e);const n=this.updatePosition();return this.monitor(e,t),n}setFixedPosition(e,t){const n=this.model.node(e);if(!n)return;const i=["fx","fy","fz"];if(t===null){i.forEach(o=>delete n[o]);return}t.forEach((o,s)=>{s<i.length&&(typeof o=="number"||o===null)&&(n[i[s]]=o)});const r=this.velMap[e];r&&(r.x=0,r.y=0,r.z=0)}updateVelocity(e){const{damping:t=.9,maxSpeed:n=100,interval:i=.02,dimensions:r=2}=this.options;this.model.nodes().forEach(o=>{const s=o.id;let a=(this.velMap[s].x+e[s].x*i)*t,l=(this.velMap[s].y+e[s].y*i)*t,c=r===3?(this.velMap[s].z+e[s].z*i)*t:0;const u=Math.sqrt(a*a+l*l+c*c);if(u>n){const d=n/u;a*=d,l*=d,c*=d}this.velMap[s]={x:a,y:l,z:c}})}updatePosition(){const{distanceThresholdMode:e="mean",interval:t=.02,dimensions:n=2}=this.options,i=this.model.nodes();let r=0,o=e==="max"?-1/0:e==="min"?1/0:0;return i.forEach(s=>{const a=s.id;if(vh(s.fx)&&vh(s.fy)){s.x=s.fx,s.y=s.fy,n===3&&vh(s.fz)&&(s.z=s.fz);return}const l=this.velMap[a].x*t,c=this.velMap[a].y*t,u=n===3?this.velMap[a].z*t:0;s.x+=l,s.y+=c,n===3&&(s.z=(s.z||0)+u);const d=Math.sqrt(l*l+c*c+u*u);e==="max"?o=Math.max(o,d):e==="min"?o=Math.min(o,d):r+=d}),e==="mean"?r/i.length:o}monitor(e,t){const{monitor:n,dimensions:i=2}=this.options;if(!n)return;let r=0;t.forEach(o=>{const s=e[o.id],a=s.x*s.x+s.y*s.y+(i===3?s.z*s.z:0);r+=(o.mass||1)*a*.5}),n({energy:r,nodes:t,edges:this.model.edges(),iterations:this.iteration})}},Fwi=function(e){return e!==null&&typeof e!="function"&&isFinite(e.length)},Bwi={}.toString,jwi=function(e){return Bwi.call(e).replace(/^\[object /,"").replace(/]$/,"")},zwi=Object.prototype,Vwi=function(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||zwi;return e===n},Hwi=Object.prototype.hasOwnProperty;function Wwi(e){if(Bf(e))return!0;if(Fwi(e))return!e.length;var t=jwi(e);if(t==="Map"||t==="Set")return!e.size;if(Vwi(e))return!Object.keys(e).length;for(var n in e)if(Hwi.call(e,n))return!1;return!0}var Uwi={nodeSize:30,dimensions:2,maxIteration:500,gravity:10,factor:1,edgeStrength:50,nodeStrength:1e3,coulombDisScale:.005,damping:.9,maxSpeed:200,minMovement:.4,interval:.02,linkDistance:200,clusterNodeStrength:20,collideStrength:1,preventOverlap:!0,distanceThresholdMode:"mean"},Ymn=class extends kve{constructor(){super(...arguments),this.id="force",this.simulation=null}getDefaultOptions(){return Uwi}layout(){var e;return $f(this,void 0,void 0,function*(){const t=this.parseOptions(this.options),{width:n,height:i,dimensions:r}=t;if(this.initializePhysicsData(this.model,t),pYe(this.model,n,i,r),!(!((e=this.model.nodes())===null||e===void 0)&&e.length))return;const o=this.setSimulation(t);return o.data(this.model),o.initialize(t),o.restart(),new Promise(s=>{o.on("end",()=>s())})})}initializePhysicsData(e,t){const{nodeSize:n,getMass:i,nodeStrength:r,edgeStrength:o,linkDistance:s}=t;e.forEachNode(a=>{const l=a._original;a.size=n(l),a.mass=i(l),a.nodeStrength=r(l)}),e.forEachEdge(a=>{const l=a._original;a.edgeStrength=o(l),a.linkDistance=s(l,e.originalNode(a.source),e.originalNode(a.target))})}setSimulation(e){const t=this.simulation||new Rwi;return this.simulation||(this.simulation=t.on("tick",()=>{var n;(n=e.onTick)===null||n===void 0||n.call(e,this)})),this.setupRepulsiveForce(t,e),this.setupAttractiveForce(t,e),this.setupCollideForce(t,e),this.setupGravityForce(t,e),this.setupCentripetalForce(t,e),t}setupRepulsiveForce(e,t){const{factor:n,coulombDisScale:i,dimensions:r}=t;let o=e.force("repulsive");o||(o=Twi(n,i,r),e.force("repulsive",o)),o.factor&&o.factor(n),o.coulombDisScale&&o.coulombDisScale(i),o.dimensions&&o.dimensions(r)}setupAttractiveForce(e,t){const{dimensions:n,preventOverlap:i}=t;if((this.model.edges()||[]).length>0){let o=e.force("attractive");o||(o=Swi(n),e.force("attractive",o)),o.dimensions&&o.dimensions(n),o.preventOverlap&&o.preventOverlap(i)}else e.force("attractive",null)}setupGravityForce(e,t){const{center:n,gravity:i,getCenter:r}=t;if(i){let o=e.force("gravity");o||(o=Dwi(n,i),e.force("gravity",o)),o.center&&o.center(n),o.gravity&&o.gravity(i),o.getCenter&&o.getCenter(r)}else e.force("gravity",null)}setupCollideForce(e,t){const{preventOverlap:n,collideStrength:i=1,dimensions:r}=t;if(n&&i){let o=e.force("collide");o||(o=Ewi(r),e.force("collide",o)),o.strength&&o.strength(i),o.dimensions&&o.dimensions(r)}else e.force("collide",null)}setupCentripetalForce(e,t){const{centripetalOptions:n,width:i,height:r}=t;if(n){let o=e.force("centripetal");o||(o=xwi(),e.force("centripetal",o)),o.options&&o.options(n),o.width&&o.width(i),o.height&&o.height(r)}else e.force("centripetal",null)}parseOptions(e){const t=Object.assign(Object.assign({},e),db(e));if(t.nodeClusterBy&&(t.nodeClusterBy=jf(t.nodeClusterBy,["node"])),e.getMass?t.getMass=Oy(e.getMass,1):t.getMass=i=>{if(!i)return 1;const r=1,o=this.model.degree(i.id,"both");return!o||o<5?r:o*5*r},e.getCenter){const i=["node","degree"];t.getCenter=jf(e.getCenter,i)}const n=IT(e.nodeSize,e.nodeSpacing);return t.nodeSize=i=>{if(!i)return 0;const[r,o,s]=n(i);return Math.max(r,o,s)},t.linkDistance=e.linkDistance?jf(e.linkDistance,["edge","source","target"]):(i,r,o)=>1+i.nodeSize(r)+i.nodeSize(o),t.nodeStrength=Oy(e.nodeStrength,1),t.edgeStrength=Oy(e.edgeStrength,1,"edge"),t.clusterNodeStrength=Oy(e.clusterNodeStrength,1),this.formatCentripetal(t),t}formatCentripetal(e){var t,n;const{dimensions:i,centripetalOptions:r,center:o,leafCluster:s,clustering:a,nodeClusterBy:l}=e,c=["node","nodes","edges"],u=jf(r?.leaf,c),d=Oy(r?.single,2),h=Oy(r?.others,1),f=(t=r?.center)!==null&&t!==void 0?t:(y=>({x:o[0],y:o[1],z:i===3?o[2]:void 0})),p=jf(f,["node","nodes","edges","width","height"]),g=Object.assign(Object.assign({},r),{leaf:u,single:d,others:h,center:p});r&&(e.centripetalOptions=g);let m,v;if(s&&l&&(m=this.getSameTypeLeafMap(l),v=Array.from(new Set((n=this.model.nodes())===null||n===void 0?void 0:n.map(y=>l(y._original))))||[],e.centripetalOptions=Object.assign({},g,{single:()=>100,leaf:y=>{const{siblingLeaves:b,sameTypeLeaves:w}=m[y.id]||{};return w?.length===b?.length||v?.length===1?1:e.clusterNodeStrength(y)},others:()=>1,center:y=>{const b=this.model.degree(y.id,"both");if(!b)return{x:100,y:100,z:0};let w;if(b===1){const{sameTypeLeaves:E=[]}=m[y.id]||{};E.length===1?w=void 0:E.length>1&&(w=this.getAvgNodePosition(E))}else w=void 0;return{x:w?.x,y:w?.y,z:w?.z}}})),a&&l){m||(m=this.getSameTypeLeafMap(l));let y=[];Wwi(y)&&this.model.forEachNode(w=>{const E=l(w._original);E&&!y.includes(E)&&y.push(E)});const b={};y.forEach(w=>{const E=this.model.nodes().filter(A=>l(A._original)===w);b[w]=this.getAvgNodePosition(E)}),e.centripetalOptions=Object.assign(g,{single:w=>e.clusterNodeStrength(w),leaf:w=>e.clusterNodeStrength(w),others:w=>e.clusterNodeStrength(w),center:w=>{const E=b[l(w._original)];return{x:E?.x,y:E?.y,z:E?.z}}})}}getSameTypeLeafMap(e){const t={};return this.model.forEachNode(n=>{this.model.degree(n.id,"both")===1&&(t[n.id]=this.getCoreNodeAndSiblingLeaves(n,e))}),t}getCoreNodeAndSiblingLeaves(e,t){const n=this.model.degree(e.id,"in"),i=this.model.degree(e.id,"out");let r=e,o=[];if(n===0){const l=this.model.successors(e.id);r=this.model.node(l[0]),o=this.model.neighbors(r.id).map(c=>this.model.node(c))}else if(i===0){const l=this.model.predecessors(e.id);r=this.model.node(l[0]),o=this.model.neighbors(r.id).map(c=>this.model.node(c))}o=o.filter(l=>this.model.degree(l.id,"in")===0||this.model.degree(l.id,"out")===0);const s=t(e._original)||"",a=o.filter(l=>t(l._original)===s&&(this.model.degree(l.id,"in")===0||this.model.degree(l.id,"out")===0));return{coreNode:r,siblingLeaves:o,sameTypeLeaves:a}}getAvgNodePosition(e){const t={x:0,y:0};e.forEach(i=>{t.x+=i.x||0,t.y+=i.y||0});const n=e.length||1;return{x:t.x/n,y:t.y/n}}tick(e=1){return this.simulation&&this.simulation.tick(e),this}stop(){return this.simulation&&this.simulation.stop(),this}restart(){return this.simulation&&this.simulation.restart(),this}setFixedPosition(e,t){return this.simulation&&this.simulation.setFixedPosition(e,t),this}},$wi=class Qmn{constructor(t){this.id=t.id||0,this.rx=t.rx,this.ry=t.ry,this.fx=0,this.fy=0,this.mass=t.mass,this.degree=t.degree,this.g=t.g||0}distanceTo(t){const n=this.rx-t.rx,i=this.ry-t.ry;return Math.hypot(n,i)}setPos(t,n){this.rx=t,this.ry=n}resetForce(){this.fx=0,this.fy=0}addForce(t){const n=t.rx-this.rx,i=t.ry-this.ry;let r=Math.hypot(n,i);r=r<1e-4?1e-4:r;const o=this.g*(this.degree+1)*(t.degree+1)/r;this.fx+=o*n/r,this.fy+=o*i/r}in(t){return t.contains(this.rx,this.ry)}add(t){const n=this.mass+t.mass,i=(this.rx*this.mass+t.rx*t.mass)/n,r=(this.ry*this.mass+t.ry*t.mass)/n,o=this.degree+t.degree,s={rx:i,ry:r,mass:n,degree:o};return new Qmn(s)}},qwi=class YW{constructor(t){this.xmid=t.xmid,this.ymid=t.ymid,this.length=t.length,this.massCenter=t.massCenter||[0,0],this.mass=t.mass||1}getLength(){return this.length}contains(t,n){const i=this.length/2;return t<=this.xmid+i&&t>=this.xmid-i&&n<=this.ymid+i&&n>=this.ymid-i}NW(){const t=this.xmid-this.length/4,n=this.ymid+this.length/4,i=this.length/2,r={xmid:t,ymid:n,length:i};return new YW(r)}NE(){const t=this.xmid+this.length/4,n=this.ymid+this.length/4,i=this.length/2,r={xmid:t,ymid:n,length:i};return new YW(r)}SW(){const t=this.xmid-this.length/4,n=this.ymid-this.length/4,i=this.length/2,r={xmid:t,ymid:n,length:i};return new YW(r)}SE(){const t=this.xmid+this.length/4,n=this.ymid-this.length/4,i=this.length/2,r={xmid:t,ymid:n,length:i};return new YW(r)}},Gwi=class QW{constructor(t){this.body=null,this.quad=null,this.NW=null,this.NE=null,this.SW=null,this.SE=null,this.theta=.5,t!=null&&(this.quad=t)}insert(t){if(this.body==null){this.body=t;return}this._isExternal()?(this.quad&&(this.NW=new QW(this.quad.NW()),this.NE=new QW(this.quad.NE()),this.SW=new QW(this.quad.SW()),this.SE=new QW(this.quad.SE())),this._putBody(this.body),this._putBody(t),this.body=this.body.add(t)):(this.body=this.body.add(t),this._putBody(t))}_putBody(t){this.quad&&(t.in(this.quad.NW())&&this.NW?this.NW.insert(t):t.in(this.quad.NE())&&this.NE?this.NE.insert(t):t.in(this.quad.SW())&&this.SW?this.SW.insert(t):t.in(this.quad.SE())&&this.SE&&this.SE.insert(t))}_isExternal(){return this.NW==null&&this.NE==null&&this.SW==null&&this.SE==null}updateForce(t){if(!(this.body==null||t===this.body))if(this._isExternal())t.addForce(this.body);else{const n=this.quad?this.quad.getLength():0,i=this.body.distanceTo(t);n/i<this.theta?t.addForce(this.body):(this.NW&&this.NW.updateForce(t),this.NE&&this.NE.updateForce(t),this.SW&&this.SW.updateForce(t),this.SE&&this.SE.updateForce(t))}}},Kwi=class extends UYe{constructor(){super(...arguments),this.sg=0,this.forces={},this.preForces={},this.bodies={},this.sizes={},this.maxIteration=0}data(t,n){return this.model=t,this.sizes=n,this}initialize(t){super.initialize(t),this.maxIteration=t.maxIteration,this.sg=0,this.initForces()}initForces(){const{model:t,options:n}=this,{kr:i,barnesHut:r}=n,o=t.nodes();this.forces={},this.preForces={},this.bodies={};for(let s=0;s<o.length;s+=1){const a=o[s];if(this.forces[a.id]=[0,0],this.preForces[a.id]=[0,0],r){const l={id:s,rx:a.x,ry:a.y,mass:1,g:i,degree:t.degree(a.id)};this.bodies[a.id]=new $wi(l)}}}setFixedPosition(t,n){const i=this.model.node(t);if(!i)return;const r=["fx","fy","fz"];if(n===null){r.forEach(o=>{delete i[o]});return}n.forEach((o,s)=>{s<r.length&&(typeof o=="number"||o===null)&&(i[r[s]]=o)})}isNodeFixed(t){return vh(t.fx)&&vh(t.fy)}syncFixedPositions(){this.model.forEachNode(t=>{this.isNodeFixed(t)&&(t.x=t.fx,t.y=t.fy)})}runOneStep(){const{model:t,options:n}=this,{preventOverlap:i,barnesHut:r}=n,o=this.maxIteration-this.iteration,s=100,a=t.nodes();for(let l=0;l<a.length;l+=1){const{id:c}=a[l];this.preForces[c]=[...this.forces[c]||[0,0]],this.forces[c]=[0,0]}return this.syncFixedPositions(),this.calculateAttractive(o),r&&!i?this.calculateOptRepulsiveGravity():this.calculateRepulsiveGravity(o,s),this.updatePositions()}calculateAttractive(t){const{model:n,options:i}=this,{preventOverlap:r,dissuadeHubs:o,mode:s,prune:a}=i,l=n.edges();for(let c=0;c<l.length;c+=1){const{source:u,target:d}=l[c],h=n.node(u),f=n.node(d),p=n.degree(u),g=n.degree(d);if(a&&(p<=1||g<=1))continue;const m=f.x-h.x,v=f.y-h.y;let y=Math.hypot(m,v);y=y<1e-4?1e-4:y;const b=m/y,w=v/y;let E=y;r&&(E=Math.max(0,y-this.sizes[u]-this.sizes[d]));let A=E,D=E;s==="linlog"&&(A=Math.log(1+E),D=A),o&&(A=E/p,D=E/g),this.forces[u][0]+=A*b,this.forces[u][1]+=A*w,this.forces[d][0]-=D*b,this.forces[d][1]-=D*w}}calculateOptRepulsiveGravity(){const{model:t,options:n}=this,{kg:i,center:r,prune:o,kr:s}=n,a=t.nodes(),l=a.length;let c=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY,d=Number.POSITIVE_INFINITY,h=Number.NEGATIVE_INFINITY;for(let v=0;v<l;v+=1){const y=a[v],{id:b,x:w,y:E}=y;if(o&&t.degree(b)<=1)continue;const A=this.bodies[b];A&&(A.setPos(w,E),w<c&&(c=w),w>u&&(u=w),E<d&&(d=E),E>h&&(h=E))}let f=Math.max(u-c,h-d);(!isFinite(f)||f<=0)&&(f=1);const p={xmid:(u+c)/2,ymid:(h+d)/2,length:f,massCenter:r,mass:l},g=new qwi(p),m=new Gwi(g);for(let v=0;v<l;v+=1){const{id:y}=a[v];if(o&&t.degree(y)<=1)continue;const b=this.bodies[y];b&&b.in(g)&&m.insert(b)}for(let v=0;v<l;v+=1){const y=a[v],{id:b,x:w,y:E}=y,A=t.degree(b);if(o&&A<=1)continue;const D=this.bodies[b];if(!D)continue;D.resetForce(),m.updateForce(D),this.forces[b][0]-=D.fx,this.forces[b][1]-=D.fy;const T=w-r[0],M=E-r[1];let P=Math.hypot(T,M);P=P<1e-4?1e-4:P;const F=T/P,N=M/P,j=i*(A+1);this.forces[b][0]-=j*F,this.forces[b][1]-=j*N}}calculateRepulsiveGravity(t,n){const{model:i,options:r}=this,{preventOverlap:o,kr:s,kg:a,center:l,prune:c}=r,u=i.nodes(),d=u.length;for(let h=0;h<d;h+=1){const f=u[h],p=i.degree(f.id);for(let E=h+1;E<d;E+=1){const A=u[E],D=i.degree(A.id);if(c&&(p<=1||D<=1))continue;const T=A.x-f.x,M=A.y-f.y;let P=Math.hypot(T,M);P=P<1e-4?1e-4:P;const F=T/P,N=M/P;let j=P,W;if(o){const J=P-this.sizes[f.id]-this.sizes[A.id];J<0?W=n*(p+1)*(D+1):J===0?W=0:(j=J,W=s*(p+1)*(D+1)/j)}else W=s*(p+1)*(D+1)/j;this.forces[f.id][0]-=W*F,this.forces[f.id][1]-=W*N,this.forces[A.id][0]+=W*F,this.forces[A.id][1]+=W*N}const g=f.x-l[0],m=f.y-l[1];let v=Math.hypot(g,m);v=v<1e-4?1e-4:v;const y=g/v,b=m/v,w=a*(p+1);this.forces[f.id][0]-=w*y,this.forces[f.id][1]-=w*b}}updatePositions(){const{model:t,options:n}=this,{ks:i,tao:r,prune:o,ksmax:s,distanceThresholdMode:a="max"}=n,l=t.nodes(),c=l.length,u={},d={};let h=0,f=0;for(let w=0;w<c;w+=1){const{id:E}=l[w],A=t.degree(E);if(o&&A<=1)continue;const D=this.preForces[E]||[0,0],T=this.forces[E]||[0,0],M=T[0]-D[0],P=T[1]-D[1],F=Math.hypot(M,P),N=T[0]+D[0],j=T[1]+D[1],W=Math.hypot(N,j);u[E]=F,d[E]=W/2,h+=(A+1)*u[E],f+=(A+1)*d[E]}let p=this.sg;const g=this.sg;h<=0?p=g>0?g:1:(p=r*f/h,g!==0&&(p=p>1.5*g?1.5*g:p)),this.sg=p;let m=0,v=1/0,y=0,b=0;for(let w=0;w<c;w+=1){const E=l[w],A=E.id,D=t.degree(A);if(o&&D<=1||this.isNodeFixed(E))continue;const T=u[A]||0;let M=i*p/(1+p*Math.sqrt(T)),P=Math.hypot(this.forces[A][0],this.forces[A][1]);P=P<1e-4?1e-4:P;const F=s/P;M>F&&(M=F);const N=M*this.forces[A][0],j=M*this.forces[A][1];E.x+=N,E.y+=j;const W=Math.hypot(N,j);W>0&&(b++,y+=W,W>m&&(m=W),W<v&&(v=W))}switch(a){case"min":return v;case"mean":return b>0?y/b:0;default:return m}}destroy(){this.stop(),this.forces={},this.preForces={},this.bodies={},this.sizes={},this.off()}},jPe={nodeSize:10,nodeSpacing:0,width:300,height:300,kr:5,kg:1,mode:"normal",preventOverlap:!1,dissuadeHubs:!1,maxIteration:0,ks:.1,ksmax:10,tao:.1},Zmn=class extends kve{constructor(){super(...arguments),this.id="force-atlas2",this.simulation=null}getDefaultOptions(){return jPe}layout(e){return $f(this,void 0,void 0,function*(){const t=this.parseOptions(e),{width:n,height:i,prune:r,center:o}=t,s=this.model.nodeCount();if(!s||s===1)return wF(this.model,o);pYe(this.model,n,i);const a=this.getSizes(t.nodeSize,t.nodeSpacing),l=this.setSimulation();l.data(this.model,a),l.initialize(t),l.restart();const c=()=>new Promise(u=>{l.on("end",u)});if(!r)return c();if(yield c(),r){const u=this.model.edges();for(let d=0;d<u.length;d+=1){const{source:h,target:f}=u[d],p=this.model.degree(h),g=this.model.degree(f),m=this.model.node(h),v=this.model.node(f);p<=1?(m.x=v.x,m.y=v.y):g<=1&&(v.x=m.x,v.y=m.y)}l.initialize(Object.assign(Object.assign({},t),{prune:!1,barnesHut:!1})),l.tick(100)}})}getSizes(e,t){const n={},i=IT(e,t,jPe.nodeSize,jPe.nodeSpacing);return this.model.forEachNode(r=>{n[r.id]=Math.max(...i(r._original))}),n}setSimulation(){const e=this.simulation||new Kwi;return this.simulation||(this.simulation=e.on("tick",()=>{var t,n;return(n=(t=this.options).onTick)===null||n===void 0?void 0:n.call(t,this)})),this.simulation}parseOptions(e={}){const{barnesHut:t,prune:n,maxIteration:i,kr:r,kg:o}=e,s={},a=this.model.nodeCount();return t===void 0&&a>250&&(s.barnesHut=!0),n===void 0&&a>100&&(s.prune=!0),i===0&&!n?(s.maxIteration=250,a<=200&&a>100?s.maxIteration=1e3:a>200&&(s.maxIteration=1200)):i===0&&n&&(s.maxIteration=100,a<=200&&a>100?s.maxIteration=500:a>200&&(s.maxIteration=950)),r||(s.kr=50,a>100&&a<=500?s.kr=20:a>500&&(s.kr=1)),o||(s.kg=20,a>100&&a<=500?s.kg=10:a>500&&(s.kg=1)),Object.assign(Object.assign(Object.assign({},e),s),db(e))}stop(){var e;(e=this.simulation)===null||e===void 0||e.stop()}tick(e=1){var t;(t=this.simulation)===null||t===void 0||t.tick(e)}restart(){var e;(e=this.simulation)===null||e===void 0||e.restart()}setFixedPosition(e,t){var n;(n=this.simulation)===null||n===void 0||n.setFixedPosition(e,t)}destroy(){var e;super.destroy(),this.stop(),(e=this.simulation)===null||e===void 0||e.destroy(),this.simulation=null}},Ywi=800,Qwi=class extends UYe{constructor(){super(...arguments),this.displacements=null,this.clusterMap=null}data(e){return this.model=e,this}initialize(e){super.initialize(e),this.recomputeConstants(),this.displacements=null,this.clusterMap=null,this.initDisplacements()}recomputeConstants(){const{model:e,options:t}=this,{width:n,height:i}=db(t),r=n*i;this.k2=r/(e.nodeCount()+1),this.k=Math.sqrt(this.k2),this.maxDisplace=Math.sqrt(r)/10}runOneStep(){return this.syncFixedPositions(),this.initDisplacements(),this.calculateRepulsive(),this.calculateAttractive(),this.applyClusterGravity(),this.applyGlobalGravity(),this.updatePositions()}setFixedPosition(e,t){const n=this.model.node(e);if(!n)return;const i=["fx","fy","fz"];if(t===null){i.forEach(r=>{delete n[r]});return}t.forEach((r,o)=>{o<i.length&&(typeof r=="number"||r===null)&&(n[i[o]]=r)})}isNodeFixed(e){return!Bf(e.fx)&&!Bf(e.fy)}syncFixedPositions(){const{model:e,options:t}=this,n=t.dimensions===3;e.forEachNode(i=>{this.isNodeFixed(i)&&(i.x=i.fx,i.y=i.fy,n&&i.fz!==void 0&&(i.z=i.fz))})}initDisplacements(){this.displacements||(this.displacements=new Map,this.model.forEachNode(e=>{this.displacements.set(e.id,{x:0,y:0,z:0})})),this.displacements.forEach(e=>{e.x=0,e.y=0,e.z=0})}calculateRepulsive(){const{model:e,options:t}=this,n=t.dimensions===3,i=e.nodes();for(let r=0;r<i.length;r++){const o=i[r],s=this.displacements.get(o.id),a=this.isNodeFixed(o);for(let l=r+1;l<i.length;l++){const c=i[l],u=this.displacements.get(c.id),d=this.isNodeFixed(c);let h=o.x-c.x,f=o.y-c.y,p=n?o.z-c.z:0,g=h*h+f*f+p*p;g===0&&(g=1,h=.01,f=.01,p=.01);const m=this.k2/g,v=h*m,y=f*m,b=p*m;!a&&!d?(s.x+=v,s.y+=y,u.x-=v,u.y-=y,n&&(s.z+=b,u.z-=b)):a&&!d?(u.x-=v*2,u.y-=y*2,n&&(u.z-=b*2)):!a&&d&&(s.x+=v*2,s.y+=y*2,n&&(s.z+=b*2))}}}calculateAttractive(){const{model:e,options:t}=this,n=t.dimensions===3;e.forEachEdge(i=>{const{source:r,target:o}=i;if(!r||!o||r===o)return;const s=e.node(r),a=e.node(o),l=this.displacements.get(r),c=this.displacements.get(o),u=this.isNodeFixed(s),d=this.isNodeFixed(a),h=a.x-s.x,f=a.y-s.y,p=n?a.z-s.z:0,g=Math.sqrt(h*h+f*f+p*p);if(g===0)return;const m=g/this.k,v=h*m,y=f*m,b=p*m;!u&&!d?(l.x+=v,l.y+=y,c.x-=v,c.y-=y,n&&(l.z+=b,c.z-=b)):u&&!d?(c.x-=v*2,c.y-=y*2,n&&(c.z-=b*2)):!u&&d&&(l.x+=v*2,l.y+=y*2,n&&(l.z+=b*2))})}applyClusterGravity(){const{model:e,options:t}=this,{nodeClusterBy:n,clusterGravity:i,dimensions:r,clustering:o}=t;if(!o||(this.clusterMap||(this.clusterMap=new Map,e.forEachNode(a=>{const l=n(e.originalNode(a.id));this.clusterMap.has(l)||this.clusterMap.set(l,{name:l,cx:0,cy:0,cz:0,count:0})})),this.clusterMap.size===0))return;const s=r===3;this.clusterMap.forEach(a=>{a.cx=0,a.cy=0,a.cz=0,a.count=0}),e.forEachNode(a=>{const l=n(e.originalNode(a.id)),c=this.clusterMap.get(l);c&&(c.cx+=a.x,c.cy+=a.y,s&&(c.cz+=a.z),c.count++)}),this.clusterMap.forEach(a=>{a.count>0&&(a.cx/=a.count,a.cy/=a.count,a.cz/=a.count)}),e.forEachNode(a=>{const{id:l}=a;if(this.isNodeFixed(a))return;const c=n(e.originalNode(l)),u=this.clusterMap.get(c);if(!u)return;const d=this.displacements.get(l),h=a.x-u.cx,f=a.y-u.cy,p=s?a.z-u.cz:0,g=Math.sqrt(h*h+f*f+p*p);if(g===0)return;const m=this.k*i;d.x-=m*h/g,d.y-=m*f/g,s&&(d.z-=m*p/g)})}applyGlobalGravity(){const{model:e,options:t}=this,{gravity:n,center:i,dimensions:r}=t,o=r===3,s=.01*this.k*n;e.forEachNode(a=>{const{id:l}=a;if(this.isNodeFixed(a))return;const c=this.displacements.get(l);c.x-=s*(a.x-i[0]),c.y-=s*(a.y-i[1]),o&&(c.z-=s*(a.z-(i[2]||0)))})}updatePositions(){const{model:e,options:t}=this,{speed:n,dimensions:i,distanceThresholdMode:r="max"}=t,o=i===3;let s=0,a=1/0,l=0,c=0;if(e.forEachNode(u=>{const{id:d}=u;if(this.isNodeFixed(u))return;const h=this.displacements.get(d),f=Math.sqrt(h.x*h.x+h.y*h.y+(o?h.z*h.z:0));if(f===0)return;const p=Math.min(this.maxDisplace*(n/Ywi),f),g=p/f;u.x+=h.x*g,u.y+=h.y*g,o&&(u.z=u.z+h.z*g),s=Math.max(s,p),a=Math.min(a,p),l+=p,c++}),c===0)return 0;switch(r){case"min":return a===1/0?0:a;case"mean":return l/c;default:return s}}destroy(){var e,t;this.stop(),(e=this.displacements)===null||e===void 0||e.clear(),(t=this.clusterMap)===null||t===void 0||t.clear()}},Zwi={maxIteration:1e3,gravity:10,speed:5,clustering:!1,clusterGravity:10,width:300,height:300,nodeClusterBy:"node.cluster",dimensions:2},$Ye=class extends kve{constructor(){super(...arguments),this.id="fruchterman",this.simulation=null}getDefaultOptions(){return Zwi}parseOptions(e={}){const{clustering:t,nodeClusterBy:n}=this.options,i=t&&!!n;return Object.assign(e,db(e),{clustering:i,nodeClusterBy:jf(n,["node"])}),e}layout(){return $f(this,void 0,void 0,function*(){const e=this.parseOptions(this.options),{dimensions:t,center:n,width:i,height:r}=e,o=this.model.nodeCount();if(!o||o===1){wF(this.model,n,t);return}pYe(this.model,i,r,t);const s=this.setSimulation();return s.data(this.model),s.initialize(e),s.restart(),new Promise(a=>{s.on("end",()=>a())})})}setSimulation(){const e=this.simulation||new Qwi;return this.simulation||(this.simulation=e.on("tick",()=>{var t,n;return(n=(t=this.options).onTick)===null||n===void 0?void 0:n.call(t,this)})),this.simulation}restart(){var e;(e=this.simulation)===null||e===void 0||e.restart()}stop(){var e;(e=this.simulation)===null||e===void 0||e.stop()}tick(e=1){var t;(t=this.simulation)===null||t===void 0||t.tick(e)}setFixedPosition(e,t){var n;(n=this.simulation)===null||n===void 0||n.setFixedPosition(e,t)}destroy(){var e;super.destroy(),this.stop(),(e=this.simulation)===null||e===void 0||e.destroy(),this.simulation=null}},pie={begin:[0,0],preventOverlap:!0,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30,nodeSpacing:10,width:300,height:300},Xmn=class extends EE{constructor(){super(...arguments),this.id="grid"}getDefaultOptions(){return pie}parseOptions(e={},t){const{rows:n,cols:i,position:r,sortBy:o}=e,{width:s,height:a,center:l}=db(e);let c=e.rows,u=e.cols;const d=t.nodeCount();if(n!=null&&i!=null)c=n,u=i;else if(n!=null&&i==null)c=n,u=Math.ceil(d/c);else if(n==null&&i!=null)u=i,c=Math.ceil(d/u);else{const p=Math.sqrt(d*a/s);c=Math.round(p),u=Math.round(s/a*p)}c=Math.max(c,1),u=Math.max(u,1);const h={rows:c,cols:u};if(h.cols*h.rows>d){const p=gie(h),g=mie(h);(p-1)*g>=d?gie(h,p-1):(g-1)*p>=d&&mie(h,g-1)}else for(;h.cols*h.rows<d;){const p=gie(h),g=mie(h);(g+1)*p>=d?mie(h,g+1):gie(h,p+1)}const f=o?o==="degree"||o==="id"?o:jf(o,["nodeA","nodeB"]):pie.sortBy;return Object.assign(Object.assign({},e),{sortBy:f,rcs:h,center:l,width:s,height:a,position:jf(r,["node"])})}layout(){return $f(this,void 0,void 0,function*(){const{begin:e,rcs:t,sortBy:n,width:i,height:r,condense:o,preventOverlap:s,nodeSpacing:a,nodeSize:l,position:c}=this.parseOptions(this.options,this.model),u=this.model.nodeCount();if(!u||u===1){wF(this.model,e);return}n==="degree"?yYe(this.model):n==="id"?gvi(this.model):Ign(this.model,n);let d=o?0:i/t.cols,h=o?0:r/t.rows;if(s){const m=IT(l,a,pie.nodeSize,pie.nodeSpacing);this.model.forEachNode(v=>{const[y,b]=m(v._original);d=Math.max(d,y),h=Math.max(h,b)})}const f={},p={row:0,col:0},g={};this.model.forEachNode(m=>{const v=m._original;let y;if(c&&(y=c(v)),y&&(y.row!==void 0||y.col!==void 0)){const b={row:y.row,col:y.col};if(b.col===void 0)for(b.col=0;j9e(f,b);)b.col++;else if(b.row===void 0)for(b.row=0;j9e(f,b);)b.row++;g[m.id]=b,Jmn(f,b)}Xwi(m,e,d,h,g,t,p,f)})})}},gie=(e,t)=>{let n;const i=e.rows||5,r=e.cols||5;return t==null?n=Math.min(i,r):Math.min(i,r)===e.rows?e.rows=t:e.cols=t,n},mie=(e,t)=>{let n;const i=e.rows||5,r=e.cols||5;return t==null?n=Math.max(i,r):Math.max(i,r)===e.rows?e.rows=t:e.cols=t,n},j9e=(e,t)=>e[`c-${t.row}-${t.col}`]||!1,Jmn=(e,t)=>e[`c-${t.row}-${t.col}`]=!0,KNt=(e,t)=>{const n=e.cols||5;t.col++,t.col>=n&&(t.col=0,t.row++)},Xwi=(e,t,n,i,r,o,s,a)=>{let l,c;const u=r[e.id];if(u)l=u.col*n+n/2+t[0],c=u.row*i+i/2+t[1];else{for(;j9e(a,s);)KNt(o,s);l=s.col*n+n/2+t[0],c=s.row*i+i/2+t[1],Jmn(a,s),KNt(o,s)}e.x=l,e.y=c},ga={},evn={};oc(evn,{isAnyArray:()=>FG});var Jwi=Object.prototype.toString;function FG(e){const t=Jwi.call(e);return t.endsWith("Array]")&&!t.includes("Big")}var e1i=Ggn(evn),tvn={};oc(tvn,{default:()=>i1i});function t1i(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!FG(e))throw new TypeError("input must be an array");if(e.length===0)throw new TypeError("input must not be empty");var n=t.fromIndex,i=n===void 0?0:n,r=t.toIndex,o=r===void 0?e.length:r;if(i<0||i>=e.length||!Number.isInteger(i))throw new Error("fromIndex must be a positive integer smaller than length");if(o<=i||o>e.length||!Number.isInteger(o))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var s=e[i],a=i+1;a<o;a++)e[a]>s&&(s=e[a]);return s}function n1i(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!FG(e))throw new TypeError("input must be an array");if(e.length===0)throw new TypeError("input must not be empty");var n=t.fromIndex,i=n===void 0?0:n,r=t.toIndex,o=r===void 0?e.length:r;if(i<0||i>=e.length||!Number.isInteger(i))throw new Error("fromIndex must be a positive integer smaller than length");if(o<=i||o>e.length||!Number.isInteger(o))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var s=e[i],a=i+1;a<o;a++)e[a]<s&&(s=e[a]);return s}function i1i(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(FG(e)){if(e.length===0)throw new TypeError("input must not be empty")}else throw new TypeError("input must be an array");var n;if(t.output!==void 0){if(!FG(t.output))throw new TypeError("output option must be an array if specified");n=t.output}else n=new Array(e.length);var i=n1i(e),r=t1i(e);if(i===r)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var o=t.min,s=o===void 0?t.autoMinMax?i:0:o,a=t.max,l=a===void 0?t.autoMinMax?r:1:a;if(s>=l)throw new RangeError("min option must be smaller than max option");for(var c=(l-s)/(r-i),u=0;u<e.length;u++)n[u]=(e[u]-i)*c+s;return n}var r1i=Ggn(tvn),YNt;function o1i(){if(YNt)return ga;YNt=1,Object.defineProperty(ga,"__esModule",{value:!0});var e=e1i,t=r1i;const n=" ".repeat(2),i=" ".repeat(4);function r(){return o(this)}function o(ke,Z={}){const{maxRows:ne=15,maxColumns:V=10,maxNumSize:re=8,padMinus:ge="auto"}=Z;return`${ke.constructor.name} {
${n}[
${i}${s(ke,ne,V,re,ge)}
${n}]
${n}rows: ${ke.rows}
${n}columns: ${ke.columns}
}`}function s(ke,Z,ne,V,re){const{rows:ge,columns:we}=ke,ve=Math.min(ge,Z),_e=Math.min(we,ne),Ee=[];if(re==="auto"){re=!1;e:for(let Le=0;Le<ve;Le++)for(let be=0;be<_e;be++)if(ke.get(Le,be)<0){re=!0;break e}}for(let Le=0;Le<ve;Le++){let be=[];for(let Fe=0;Fe<_e;Fe++)be.push(a(ke.get(Le,Fe),V,re));Ee.push(`${be.join(" ")}`)}return _e!==we&&(Ee[Ee.length-1]+=` ... ${we-ne} more columns`),ve!==ge&&Ee.push(`... ${ge-Z} more rows`),Ee.join(`
${i}`)}function a(ke,Z,ne){return(ke>=0&&ne?` ${l(ke,Z-1)}`:l(ke,Z)).padEnd(Z)}function l(ke,Z){let ne=ke.toString();if(ne.length<=Z)return ne;let V=ke.toFixed(Z);if(V.length>Z&&(V=ke.toFixed(Math.max(0,Z-(V.length-Z)))),V.length<=Z&&!V.startsWith("0.000")&&!V.startsWith("-0.000"))return V;let re=ke.toExponential(Z);return re.length>Z&&(re=ke.toExponential(Math.max(0,Z-(re.length-Z)))),re.slice(0)}function c(ke,Z){ke.prototype.add=function(V){return typeof V=="number"?this.addS(V):this.addM(V)},ke.prototype.addS=function(V){for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)+V);return this},ke.prototype.addM=function(V){if(V=Z.checkMatrix(V),this.rows!==V.rows||this.columns!==V.columns)throw new RangeError("Matrices dimensions must be equal");for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)+V.get(re,ge));return this},ke.add=function(V,re){return new Z(V).add(re)},ke.prototype.sub=function(V){return typeof V=="number"?this.subS(V):this.subM(V)},ke.prototype.subS=function(V){for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)-V);return this},ke.prototype.subM=function(V){if(V=Z.checkMatrix(V),this.rows!==V.rows||this.columns!==V.columns)throw new RangeError("Matrices dimensions must be equal");for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)-V.get(re,ge));return this},ke.sub=function(V,re){return new Z(V).sub(re)},ke.prototype.subtract=ke.prototype.sub,ke.prototype.subtractS=ke.prototype.subS,ke.prototype.subtractM=ke.prototype.subM,ke.subtract=ke.sub,ke.prototype.mul=function(V){return typeof V=="number"?this.mulS(V):this.mulM(V)},ke.prototype.mulS=function(V){for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)*V);return this},ke.prototype.mulM=function(V){if(V=Z.checkMatrix(V),this.rows!==V.rows||this.columns!==V.columns)throw new RangeError("Matrices dimensions must be equal");for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)*V.get(re,ge));return this},ke.mul=function(V,re){return new Z(V).mul(re)},ke.prototype.multiply=ke.prototype.mul,ke.prototype.multiplyS=ke.prototype.mulS,ke.prototype.multiplyM=ke.prototype.mulM,ke.multiply=ke.mul,ke.prototype.div=function(V){return typeof V=="number"?this.divS(V):this.divM(V)},ke.prototype.divS=function(V){for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)/V);return this},ke.prototype.divM=function(V){if(V=Z.checkMatrix(V),this.rows!==V.rows||this.columns!==V.columns)throw new RangeError("Matrices dimensions must be equal");for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)/V.get(re,ge));return this},ke.div=function(V,re){return new Z(V).div(re)},ke.prototype.divide=ke.prototype.div,ke.prototype.divideS=ke.prototype.divS,ke.prototype.divideM=ke.prototype.divM,ke.divide=ke.div,ke.prototype.mod=function(V){return typeof V=="number"?this.modS(V):this.modM(V)},ke.prototype.modS=function(V){for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)%V);return this},ke.prototype.modM=function(V){if(V=Z.checkMatrix(V),this.rows!==V.rows||this.columns!==V.columns)throw new RangeError("Matrices dimensions must be equal");for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)%V.get(re,ge));return this},ke.mod=function(V,re){return new Z(V).mod(re)},ke.prototype.modulus=ke.prototype.mod,ke.prototype.modulusS=ke.prototype.modS,ke.prototype.modulusM=ke.prototype.modM,ke.modulus=ke.mod,ke.prototype.and=function(V){return typeof V=="number"?this.andS(V):this.andM(V)},ke.prototype.andS=function(V){for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)&V);return this},ke.prototype.andM=function(V){if(V=Z.checkMatrix(V),this.rows!==V.rows||this.columns!==V.columns)throw new RangeError("Matrices dimensions must be equal");for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)&V.get(re,ge));return this},ke.and=function(V,re){return new Z(V).and(re)},ke.prototype.or=function(V){return typeof V=="number"?this.orS(V):this.orM(V)},ke.prototype.orS=function(V){for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)|V);return this},ke.prototype.orM=function(V){if(V=Z.checkMatrix(V),this.rows!==V.rows||this.columns!==V.columns)throw new RangeError("Matrices dimensions must be equal");for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)|V.get(re,ge));return this},ke.or=function(V,re){return new Z(V).or(re)},ke.prototype.xor=function(V){return typeof V=="number"?this.xorS(V):this.xorM(V)},ke.prototype.xorS=function(V){for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)^V);return this},ke.prototype.xorM=function(V){if(V=Z.checkMatrix(V),this.rows!==V.rows||this.columns!==V.columns)throw new RangeError("Matrices dimensions must be equal");for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)^V.get(re,ge));return this},ke.xor=function(V,re){return new Z(V).xor(re)},ke.prototype.leftShift=function(V){return typeof V=="number"?this.leftShiftS(V):this.leftShiftM(V)},ke.prototype.leftShiftS=function(V){for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)<<V);return this},ke.prototype.leftShiftM=function(V){if(V=Z.checkMatrix(V),this.rows!==V.rows||this.columns!==V.columns)throw new RangeError("Matrices dimensions must be equal");for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)<<V.get(re,ge));return this},ke.leftShift=function(V,re){return new Z(V).leftShift(re)},ke.prototype.signPropagatingRightShift=function(V){return typeof V=="number"?this.signPropagatingRightShiftS(V):this.signPropagatingRightShiftM(V)},ke.prototype.signPropagatingRightShiftS=function(V){for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)>>V);return this},ke.prototype.signPropagatingRightShiftM=function(V){if(V=Z.checkMatrix(V),this.rows!==V.rows||this.columns!==V.columns)throw new RangeError("Matrices dimensions must be equal");for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)>>V.get(re,ge));return this},ke.signPropagatingRightShift=function(V,re){return new Z(V).signPropagatingRightShift(re)},ke.prototype.rightShift=function(V){return typeof V=="number"?this.rightShiftS(V):this.rightShiftM(V)},ke.prototype.rightShiftS=function(V){for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)>>>V);return this},ke.prototype.rightShiftM=function(V){if(V=Z.checkMatrix(V),this.rows!==V.rows||this.columns!==V.columns)throw new RangeError("Matrices dimensions must be equal");for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)>>>V.get(re,ge));return this},ke.rightShift=function(V,re){return new Z(V).rightShift(re)},ke.prototype.zeroFillRightShift=ke.prototype.rightShift,ke.prototype.zeroFillRightShiftS=ke.prototype.rightShiftS,ke.prototype.zeroFillRightShiftM=ke.prototype.rightShiftM,ke.zeroFillRightShift=ke.rightShift,ke.prototype.not=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,~this.get(V,re));return this},ke.not=function(V){return new Z(V).not()},ke.prototype.abs=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.abs(this.get(V,re)));return this},ke.abs=function(V){return new Z(V).abs()},ke.prototype.acos=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.acos(this.get(V,re)));return this},ke.acos=function(V){return new Z(V).acos()},ke.prototype.acosh=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.acosh(this.get(V,re)));return this},ke.acosh=function(V){return new Z(V).acosh()},ke.prototype.asin=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.asin(this.get(V,re)));return this},ke.asin=function(V){return new Z(V).asin()},ke.prototype.asinh=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.asinh(this.get(V,re)));return this},ke.asinh=function(V){return new Z(V).asinh()},ke.prototype.atan=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.atan(this.get(V,re)));return this},ke.atan=function(V){return new Z(V).atan()},ke.prototype.atanh=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.atanh(this.get(V,re)));return this},ke.atanh=function(V){return new Z(V).atanh()},ke.prototype.cbrt=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.cbrt(this.get(V,re)));return this},ke.cbrt=function(V){return new Z(V).cbrt()},ke.prototype.ceil=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.ceil(this.get(V,re)));return this},ke.ceil=function(V){return new Z(V).ceil()},ke.prototype.clz32=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.clz32(this.get(V,re)));return this},ke.clz32=function(V){return new Z(V).clz32()},ke.prototype.cos=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.cos(this.get(V,re)));return this},ke.cos=function(V){return new Z(V).cos()},ke.prototype.cosh=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.cosh(this.get(V,re)));return this},ke.cosh=function(V){return new Z(V).cosh()},ke.prototype.exp=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.exp(this.get(V,re)));return this},ke.exp=function(V){return new Z(V).exp()},ke.prototype.expm1=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.expm1(this.get(V,re)));return this},ke.expm1=function(V){return new Z(V).expm1()},ke.prototype.floor=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.floor(this.get(V,re)));return this},ke.floor=function(V){return new Z(V).floor()},ke.prototype.fround=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.fround(this.get(V,re)));return this},ke.fround=function(V){return new Z(V).fround()},ke.prototype.log=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.log(this.get(V,re)));return this},ke.log=function(V){return new Z(V).log()},ke.prototype.log1p=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.log1p(this.get(V,re)));return this},ke.log1p=function(V){return new Z(V).log1p()},ke.prototype.log10=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.log10(this.get(V,re)));return this},ke.log10=function(V){return new Z(V).log10()},ke.prototype.log2=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.log2(this.get(V,re)));return this},ke.log2=function(V){return new Z(V).log2()},ke.prototype.round=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.round(this.get(V,re)));return this},ke.round=function(V){return new Z(V).round()},ke.prototype.sign=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.sign(this.get(V,re)));return this},ke.sign=function(V){return new Z(V).sign()},ke.prototype.sin=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.sin(this.get(V,re)));return this},ke.sin=function(V){return new Z(V).sin()},ke.prototype.sinh=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.sinh(this.get(V,re)));return this},ke.sinh=function(V){return new Z(V).sinh()},ke.prototype.sqrt=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.sqrt(this.get(V,re)));return this},ke.sqrt=function(V){return new Z(V).sqrt()},ke.prototype.tan=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.tan(this.get(V,re)));return this},ke.tan=function(V){return new Z(V).tan()},ke.prototype.tanh=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.tanh(this.get(V,re)));return this},ke.tanh=function(V){return new Z(V).tanh()},ke.prototype.trunc=function(){for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.set(V,re,Math.trunc(this.get(V,re)));return this},ke.trunc=function(V){return new Z(V).trunc()},ke.pow=function(V,re){return new Z(V).pow(re)},ke.prototype.pow=function(V){return typeof V=="number"?this.powS(V):this.powM(V)},ke.prototype.powS=function(V){for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)**V);return this},ke.prototype.powM=function(V){if(V=Z.checkMatrix(V),this.rows!==V.rows||this.columns!==V.columns)throw new RangeError("Matrices dimensions must be equal");for(let re=0;re<this.rows;re++)for(let ge=0;ge<this.columns;ge++)this.set(re,ge,this.get(re,ge)**V.get(re,ge));return this}}function u(ke,Z,ne){let V=ne?ke.rows:ke.rows-1;if(Z<0||Z>V)throw new RangeError("Row index out of range")}function d(ke,Z,ne){let V=ne?ke.columns:ke.columns-1;if(Z<0||Z>V)throw new RangeError("Column index out of range")}function h(ke,Z){if(Z.to1DArray&&(Z=Z.to1DArray()),Z.length!==ke.columns)throw new RangeError("vector size must be the same as the number of columns");return Z}function f(ke,Z){if(Z.to1DArray&&(Z=Z.to1DArray()),Z.length!==ke.rows)throw new RangeError("vector size must be the same as the number of rows");return Z}function p(ke,Z){if(!e.isAnyArray(Z))throw new TypeError("row indices must be an array");for(let ne=0;ne<Z.length;ne++)if(Z[ne]<0||Z[ne]>=ke.rows)throw new RangeError("row indices are out of range")}function g(ke,Z){if(!e.isAnyArray(Z))throw new TypeError("column indices must be an array");for(let ne=0;ne<Z.length;ne++)if(Z[ne]<0||Z[ne]>=ke.columns)throw new RangeError("column indices are out of range")}function m(ke,Z,ne,V,re){if(arguments.length!==5)throw new RangeError("expected 4 arguments");if(y("startRow",Z),y("endRow",ne),y("startColumn",V),y("endColumn",re),Z>ne||V>re||Z<0||Z>=ke.rows||ne<0||ne>=ke.rows||V<0||V>=ke.columns||re<0||re>=ke.columns)throw new RangeError("Submatrix indices are out of range")}function v(ke,Z=0){let ne=[];for(let V=0;V<ke;V++)ne.push(Z);return ne}function y(ke,Z){if(typeof Z!="number")throw new TypeError(`${ke} must be a number`)}function b(ke){if(ke.isEmpty())throw new Error("Empty matrix has no elements to index")}function w(ke){let Z=v(ke.rows);for(let ne=0;ne<ke.rows;++ne)for(let V=0;V<ke.columns;++V)Z[ne]+=ke.get(ne,V);return Z}function E(ke){let Z=v(ke.columns);for(let ne=0;ne<ke.rows;++ne)for(let V=0;V<ke.columns;++V)Z[V]+=ke.get(ne,V);return Z}function A(ke){let Z=0;for(let ne=0;ne<ke.rows;ne++)for(let V=0;V<ke.columns;V++)Z+=ke.get(ne,V);return Z}function D(ke){let Z=v(ke.rows,1);for(let ne=0;ne<ke.rows;++ne)for(let V=0;V<ke.columns;++V)Z[ne]*=ke.get(ne,V);return Z}function T(ke){let Z=v(ke.columns,1);for(let ne=0;ne<ke.rows;++ne)for(let V=0;V<ke.columns;++V)Z[V]*=ke.get(ne,V);return Z}function M(ke){let Z=1;for(let ne=0;ne<ke.rows;ne++)for(let V=0;V<ke.columns;V++)Z*=ke.get(ne,V);return Z}function P(ke,Z,ne){const V=ke.rows,re=ke.columns,ge=[];for(let we=0;we<V;we++){let ve=0,_e=0,Ee=0;for(let Le=0;Le<re;Le++)Ee=ke.get(we,Le)-ne[we],ve+=Ee,_e+=Ee*Ee;Z?ge.push((_e-ve*ve/re)/(re-1)):ge.push((_e-ve*ve/re)/re)}return ge}function F(ke,Z,ne){const V=ke.rows,re=ke.columns,ge=[];for(let we=0;we<re;we++){let ve=0,_e=0,Ee=0;for(let Le=0;Le<V;Le++)Ee=ke.get(Le,we)-ne[we],ve+=Ee,_e+=Ee*Ee;Z?ge.push((_e-ve*ve/V)/(V-1)):ge.push((_e-ve*ve/V)/V)}return ge}function N(ke,Z,ne){const V=ke.rows,re=ke.columns,ge=V*re;let we=0,ve=0,_e=0;for(let Ee=0;Ee<V;Ee++)for(let Le=0;Le<re;Le++)_e=ke.get(Ee,Le)-ne,we+=_e,ve+=_e*_e;return Z?(ve-we*we/ge)/(ge-1):(ve-we*we/ge)/ge}function j(ke,Z){for(let ne=0;ne<ke.rows;ne++)for(let V=0;V<ke.columns;V++)ke.set(ne,V,ke.get(ne,V)-Z[ne])}function W(ke,Z){for(let ne=0;ne<ke.rows;ne++)for(let V=0;V<ke.columns;V++)ke.set(ne,V,ke.get(ne,V)-Z[V])}function J(ke,Z){for(let ne=0;ne<ke.rows;ne++)for(let V=0;V<ke.columns;V++)ke.set(ne,V,ke.get(ne,V)-Z)}function ee(ke){const Z=[];for(let ne=0;ne<ke.rows;ne++){let V=0;for(let re=0;re<ke.columns;re++)V+=ke.get(ne,re)**2/(ke.columns-1);Z.push(Math.sqrt(V))}return Z}function Q(ke,Z){for(let ne=0;ne<ke.rows;ne++)for(let V=0;V<ke.columns;V++)ke.set(ne,V,ke.get(ne,V)/Z[ne])}function H(ke){const Z=[];for(let ne=0;ne<ke.columns;ne++){let V=0;for(let re=0;re<ke.rows;re++)V+=ke.get(re,ne)**2/(ke.rows-1);Z.push(Math.sqrt(V))}return Z}function q(ke,Z){for(let ne=0;ne<ke.rows;ne++)for(let V=0;V<ke.columns;V++)ke.set(ne,V,ke.get(ne,V)/Z[V])}function le(ke){const Z=ke.size-1;let ne=0;for(let V=0;V<ke.columns;V++)for(let re=0;re<ke.rows;re++)ne+=ke.get(re,V)**2/Z;return Math.sqrt(ne)}function Y(ke,Z){for(let ne=0;ne<ke.rows;ne++)for(let V=0;V<ke.columns;V++)ke.set(ne,V,ke.get(ne,V)/Z)}class G{static from1DArray(Z,ne,V){if(Z*ne!==V.length)throw new RangeError("data length does not match given dimensions");let ge=new K(Z,ne);for(let we=0;we<Z;we++)for(let ve=0;ve<ne;ve++)ge.set(we,ve,V[we*ne+ve]);return ge}static rowVector(Z){let ne=new K(1,Z.length);for(let V=0;V<Z.length;V++)ne.set(0,V,Z[V]);return ne}static columnVector(Z){let ne=new K(Z.length,1);for(let V=0;V<Z.length;V++)ne.set(V,0,Z[V]);return ne}static zeros(Z,ne){return new K(Z,ne)}static ones(Z,ne){return new K(Z,ne).fill(1)}static rand(Z,ne,V={}){if(typeof V!="object")throw new TypeError("options must be an object");const{random:re=Math.random}=V;let ge=new K(Z,ne);for(let we=0;we<Z;we++)for(let ve=0;ve<ne;ve++)ge.set(we,ve,re());return ge}static randInt(Z,ne,V={}){if(typeof V!="object")throw new TypeError("options must be an object");const{min:re=0,max:ge=1e3,random:we=Math.random}=V;if(!Number.isInteger(re))throw new TypeError("min must be an integer");if(!Number.isInteger(ge))throw new TypeError("max must be an integer");if(re>=ge)throw new RangeError("min must be smaller than max");let ve=ge-re,_e=new K(Z,ne);for(let Ee=0;Ee<Z;Ee++)for(let Le=0;Le<ne;Le++){let be=re+Math.round(we()*ve);_e.set(Ee,Le,be)}return _e}static eye(Z,ne,V){ne===void 0&&(ne=Z),V===void 0&&(V=1);let re=Math.min(Z,ne),ge=this.zeros(Z,ne);for(let we=0;we<re;we++)ge.set(we,we,V);return ge}static diag(Z,ne,V){let re=Z.length;ne===void 0&&(ne=re),V===void 0&&(V=ne);let ge=Math.min(re,ne,V),we=this.zeros(ne,V);for(let ve=0;ve<ge;ve++)we.set(ve,ve,Z[ve]);return we}static min(Z,ne){Z=this.checkMatrix(Z),ne=this.checkMatrix(ne);let V=Z.rows,re=Z.columns,ge=new K(V,re);for(let we=0;we<V;we++)for(let ve=0;ve<re;ve++)ge.set(we,ve,Math.min(Z.get(we,ve),ne.get(we,ve)));return ge}static max(Z,ne){Z=this.checkMatrix(Z),ne=this.checkMatrix(ne);let V=Z.rows,re=Z.columns,ge=new this(V,re);for(let we=0;we<V;we++)for(let ve=0;ve<re;ve++)ge.set(we,ve,Math.max(Z.get(we,ve),ne.get(we,ve)));return ge}static checkMatrix(Z){return G.isMatrix(Z)?Z:new K(Z)}static isMatrix(Z){return Z!=null&&Z.klass==="Matrix"}get size(){return this.rows*this.columns}apply(Z){if(typeof Z!="function")throw new TypeError("callback must be a function");for(let ne=0;ne<this.rows;ne++)for(let V=0;V<this.columns;V++)Z.call(this,ne,V);return this}to1DArray(){let Z=[];for(let ne=0;ne<this.rows;ne++)for(let V=0;V<this.columns;V++)Z.push(this.get(ne,V));return Z}to2DArray(){let Z=[];for(let ne=0;ne<this.rows;ne++){Z.push([]);for(let V=0;V<this.columns;V++)Z[ne].push(this.get(ne,V))}return Z}toJSON(){return this.to2DArray()}isRowVector(){return this.rows===1}isColumnVector(){return this.columns===1}isVector(){return this.rows===1||this.columns===1}isSquare(){return this.rows===this.columns}isEmpty(){return this.rows===0||this.columns===0}isSymmetric(){if(this.isSquare()){for(let Z=0;Z<this.rows;Z++)for(let ne=0;ne<=Z;ne++)if(this.get(Z,ne)!==this.get(ne,Z))return!1;return!0}return!1}isDistance(){if(!this.isSymmetric())return!1;for(let Z=0;Z<this.rows;Z++)if(this.get(Z,Z)!==0)return!1;return!0}isEchelonForm(){let Z=0,ne=0,V=-1,re=!0,ge=!1;for(;Z<this.rows&&re;){for(ne=0,ge=!1;ne<this.columns&&ge===!1;)this.get(Z,ne)===0?ne++:this.get(Z,ne)===1&&ne>V?(ge=!0,V=ne):(re=!1,ge=!0);Z++}return re}isReducedEchelonForm(){let Z=0,ne=0,V=-1,re=!0,ge=!1;for(;Z<this.rows&&re;){for(ne=0,ge=!1;ne<this.columns&&ge===!1;)this.get(Z,ne)===0?ne++:this.get(Z,ne)===1&&ne>V?(ge=!0,V=ne):(re=!1,ge=!0);for(let we=ne+1;we<this.rows;we++)this.get(Z,we)!==0&&(re=!1);Z++}return re}echelonForm(){let Z=this.clone(),ne=0,V=0;for(;ne<Z.rows&&V<Z.columns;){let re=ne;for(let ge=ne;ge<Z.rows;ge++)Z.get(ge,V)>Z.get(re,V)&&(re=ge);if(Z.get(re,V)===0)V++;else{Z.swapRows(ne,re);let ge=Z.get(ne,V);for(let we=V;we<Z.columns;we++)Z.set(ne,we,Z.get(ne,we)/ge);for(let we=ne+1;we<Z.rows;we++){let ve=Z.get(we,V)/Z.get(ne,V);Z.set(we,V,0);for(let _e=V+1;_e<Z.columns;_e++)Z.set(we,_e,Z.get(we,_e)-Z.get(ne,_e)*ve)}ne++,V++}}return Z}reducedEchelonForm(){let Z=this.echelonForm(),ne=Z.columns,V=Z.rows,re=V-1;for(;re>=0;)if(Z.maxRow(re)===0)re--;else{let ge=0,we=!1;for(;ge<V&&we===!1;)Z.get(re,ge)===1?we=!0:ge++;for(let ve=0;ve<re;ve++){let _e=Z.get(ve,ge);for(let Ee=ge;Ee<ne;Ee++){let Le=Z.get(ve,Ee)-_e*Z.get(re,Ee);Z.set(ve,Ee,Le)}}re--}return Z}set(){throw new Error("set method is unimplemented")}get(){throw new Error("get method is unimplemented")}repeat(Z={}){if(typeof Z!="object")throw new TypeError("options must be an object");const{rows:ne=1,columns:V=1}=Z;if(!Number.isInteger(ne)||ne<=0)throw new TypeError("rows must be a positive integer");if(!Number.isInteger(V)||V<=0)throw new TypeError("columns must be a positive integer");let re=new K(this.rows*ne,this.columns*V);for(let ge=0;ge<ne;ge++)for(let we=0;we<V;we++)re.setSubMatrix(this,this.rows*ge,this.columns*we);return re}fill(Z){for(let ne=0;ne<this.rows;ne++)for(let V=0;V<this.columns;V++)this.set(ne,V,Z);return this}neg(){return this.mulS(-1)}getRow(Z){u(this,Z);let ne=[];for(let V=0;V<this.columns;V++)ne.push(this.get(Z,V));return ne}getRowVector(Z){return K.rowVector(this.getRow(Z))}setRow(Z,ne){u(this,Z),ne=h(this,ne);for(let V=0;V<this.columns;V++)this.set(Z,V,ne[V]);return this}swapRows(Z,ne){u(this,Z),u(this,ne);for(let V=0;V<this.columns;V++){let re=this.get(Z,V);this.set(Z,V,this.get(ne,V)),this.set(ne,V,re)}return this}getColumn(Z){d(this,Z);let ne=[];for(let V=0;V<this.rows;V++)ne.push(this.get(V,Z));return ne}getColumnVector(Z){return K.columnVector(this.getColumn(Z))}setColumn(Z,ne){d(this,Z),ne=f(this,ne);for(let V=0;V<this.rows;V++)this.set(V,Z,ne[V]);return this}swapColumns(Z,ne){d(this,Z),d(this,ne);for(let V=0;V<this.rows;V++){let re=this.get(V,Z);this.set(V,Z,this.get(V,ne)),this.set(V,ne,re)}return this}addRowVector(Z){Z=h(this,Z);for(let ne=0;ne<this.rows;ne++)for(let V=0;V<this.columns;V++)this.set(ne,V,this.get(ne,V)+Z[V]);return this}subRowVector(Z){Z=h(this,Z);for(let ne=0;ne<this.rows;ne++)for(let V=0;V<this.columns;V++)this.set(ne,V,this.get(ne,V)-Z[V]);return this}mulRowVector(Z){Z=h(this,Z);for(let ne=0;ne<this.rows;ne++)for(let V=0;V<this.columns;V++)this.set(ne,V,this.get(ne,V)*Z[V]);return this}divRowVector(Z){Z=h(this,Z);for(let ne=0;ne<this.rows;ne++)for(let V=0;V<this.columns;V++)this.set(ne,V,this.get(ne,V)/Z[V]);return this}addColumnVector(Z){Z=f(this,Z);for(let ne=0;ne<this.rows;ne++)for(let V=0;V<this.columns;V++)this.set(ne,V,this.get(ne,V)+Z[ne]);return this}subColumnVector(Z){Z=f(this,Z);for(let ne=0;ne<this.rows;ne++)for(let V=0;V<this.columns;V++)this.set(ne,V,this.get(ne,V)-Z[ne]);return this}mulColumnVector(Z){Z=f(this,Z);for(let ne=0;ne<this.rows;ne++)for(let V=0;V<this.columns;V++)this.set(ne,V,this.get(ne,V)*Z[ne]);return this}divColumnVector(Z){Z=f(this,Z);for(let ne=0;ne<this.rows;ne++)for(let V=0;V<this.columns;V++)this.set(ne,V,this.get(ne,V)/Z[ne]);return this}mulRow(Z,ne){u(this,Z);for(let V=0;V<this.columns;V++)this.set(Z,V,this.get(Z,V)*ne);return this}mulColumn(Z,ne){d(this,Z);for(let V=0;V<this.rows;V++)this.set(V,Z,this.get(V,Z)*ne);return this}max(Z){if(this.isEmpty())return NaN;switch(Z){case"row":{const ne=new Array(this.rows).fill(Number.NEGATIVE_INFINITY);for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.get(V,re)>ne[V]&&(ne[V]=this.get(V,re));return ne}case"column":{const ne=new Array(this.columns).fill(Number.NEGATIVE_INFINITY);for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.get(V,re)>ne[re]&&(ne[re]=this.get(V,re));return ne}case void 0:{let ne=this.get(0,0);for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.get(V,re)>ne&&(ne=this.get(V,re));return ne}default:throw new Error(`invalid option: ${Z}`)}}maxIndex(){b(this);let Z=this.get(0,0),ne=[0,0];for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.get(V,re)>Z&&(Z=this.get(V,re),ne[0]=V,ne[1]=re);return ne}min(Z){if(this.isEmpty())return NaN;switch(Z){case"row":{const ne=new Array(this.rows).fill(Number.POSITIVE_INFINITY);for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.get(V,re)<ne[V]&&(ne[V]=this.get(V,re));return ne}case"column":{const ne=new Array(this.columns).fill(Number.POSITIVE_INFINITY);for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.get(V,re)<ne[re]&&(ne[re]=this.get(V,re));return ne}case void 0:{let ne=this.get(0,0);for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.get(V,re)<ne&&(ne=this.get(V,re));return ne}default:throw new Error(`invalid option: ${Z}`)}}minIndex(){b(this);let Z=this.get(0,0),ne=[0,0];for(let V=0;V<this.rows;V++)for(let re=0;re<this.columns;re++)this.get(V,re)<Z&&(Z=this.get(V,re),ne[0]=V,ne[1]=re);return ne}maxRow(Z){if(u(this,Z),this.isEmpty())return NaN;let ne=this.get(Z,0);for(let V=1;V<this.columns;V++)this.get(Z,V)>ne&&(ne=this.get(Z,V));return ne}maxRowIndex(Z){u(this,Z),b(this);let ne=this.get(Z,0),V=[Z,0];for(let re=1;re<this.columns;re++)this.get(Z,re)>ne&&(ne=this.get(Z,re),V[1]=re);return V}minRow(Z){if(u(this,Z),this.isEmpty())return NaN;let ne=this.get(Z,0);for(let V=1;V<this.columns;V++)this.get(Z,V)<ne&&(ne=this.get(Z,V));return ne}minRowIndex(Z){u(this,Z),b(this);let ne=this.get(Z,0),V=[Z,0];for(let re=1;re<this.columns;re++)this.get(Z,re)<ne&&(ne=this.get(Z,re),V[1]=re);return V}maxColumn(Z){if(d(this,Z),this.isEmpty())return NaN;let ne=this.get(0,Z);for(let V=1;V<this.rows;V++)this.get(V,Z)>ne&&(ne=this.get(V,Z));return ne}maxColumnIndex(Z){d(this,Z),b(this);let ne=this.get(0,Z),V=[0,Z];for(let re=1;re<this.rows;re++)this.get(re,Z)>ne&&(ne=this.get(re,Z),V[0]=re);return V}minColumn(Z){if(d(this,Z),this.isEmpty())return NaN;let ne=this.get(0,Z);for(let V=1;V<this.rows;V++)this.get(V,Z)<ne&&(ne=this.get(V,Z));return ne}minColumnIndex(Z){d(this,Z),b(this);let ne=this.get(0,Z),V=[0,Z];for(let re=1;re<this.rows;re++)this.get(re,Z)<ne&&(ne=this.get(re,Z),V[0]=re);return V}diag(){let Z=Math.min(this.rows,this.columns),ne=[];for(let V=0;V<Z;V++)ne.push(this.get(V,V));return ne}norm(Z="frobenius"){switch(Z){case"max":return this.max();case"frobenius":return Math.sqrt(this.dot(this));default:throw new RangeError(`unknown norm type: ${Z}`)}}cumulativeSum(){let Z=0;for(let ne=0;ne<this.rows;ne++)for(let V=0;V<this.columns;V++)Z+=this.get(ne,V),this.set(ne,V,Z);return this}dot(Z){G.isMatrix(Z)&&(Z=Z.to1DArray());let ne=this.to1DArray();if(ne.length!==Z.length)throw new RangeError("vectors do not have the same size");let V=0;for(let re=0;re<ne.length;re++)V+=ne[re]*Z[re];return V}mmul(Z){Z=K.checkMatrix(Z);let ne=this.rows,V=this.columns,re=Z.columns,ge=new K(ne,re),we=new Float64Array(V);for(let ve=0;ve<re;ve++){for(let _e=0;_e<V;_e++)we[_e]=Z.get(_e,ve);for(let _e=0;_e<ne;_e++){let Ee=0;for(let Le=0;Le<V;Le++)Ee+=this.get(_e,Le)*we[Le];ge.set(_e,ve,Ee)}}return ge}mpow(Z){if(!this.isSquare())throw new RangeError("Matrix must be square");if(!Number.isInteger(Z)||Z<0)throw new RangeError("Exponent must be a non-negative integer");let ne=K.eye(this.rows),V=this;for(let re=Z;re>=1;re/=2)(re&1)!==0&&(ne=ne.mmul(V)),V=V.mmul(V);return ne}strassen2x2(Z){Z=K.checkMatrix(Z);let ne=new K(2,2);const V=this.get(0,0),re=Z.get(0,0),ge=this.get(0,1),we=Z.get(0,1),ve=this.get(1,0),_e=Z.get(1,0),Ee=this.get(1,1),Le=Z.get(1,1),be=(V+Ee)*(re+Le),Fe=(ve+Ee)*re,Ze=V*(we-Le),Ve=Ee*(_e-re),dt=(V+ge)*Le,Vt=(ve-V)*(re+we),Xe=(ge-Ee)*(_e+Le),Ht=be+Ve-dt+Xe,Qt=Ze+dt,Dt=Fe+Ve,Tt=be-Fe+Ze+Vt;return ne.set(0,0,Ht),ne.set(0,1,Qt),ne.set(1,0,Dt),ne.set(1,1,Tt),ne}strassen3x3(Z){Z=K.checkMatrix(Z);let ne=new K(3,3);const V=this.get(0,0),re=this.get(0,1),ge=this.get(0,2),we=this.get(1,0),ve=this.get(1,1),_e=this.get(1,2),Ee=this.get(2,0),Le=this.get(2,1),be=this.get(2,2),Fe=Z.get(0,0),Ze=Z.get(0,1),Ve=Z.get(0,2),dt=Z.get(1,0),Vt=Z.get(1,1),Xe=Z.get(1,2),Ht=Z.get(2,0),Qt=Z.get(2,1),Dt=Z.get(2,2),Tt=(V+re+ge-we-ve-Le-be)*Vt,en=(V-we)*(-Ze+Vt),Bt=ve*(-Fe+Ze+dt-Vt-Xe-Ht+Dt),Ue=(-V+we+ve)*(Fe-Ze+Vt),Lt=(we+ve)*(-Fe+Ze),at=V*Fe,cn=(-V+Ee+Le)*(Fe-Ve+Xe),Bn=(-V+Ee)*(Ve-Xe),Tn=(Ee+Le)*(-Fe+Ve),xi=(V+re+ge-ve-_e-Ee-Le)*Xe,Zi=Le*(-Fe+Ve+dt-Vt-Xe-Ht+Qt),dn=(-ge+Le+be)*(Vt+Ht-Qt),fi=(ge-be)*(Vt-Qt),Fr=ge*Ht,Wo=(Le+be)*(-Ht+Qt),Mo=(-ge+ve+_e)*(Xe+Ht-Dt),Us=(ge-_e)*(Xe-Dt),nl=(ve+_e)*(-Ht+Dt),Ai=re*dt,dr=_e*Qt,es=we*Ve,ds=Ee*Ze,Jr=be*Dt,Xu=at+Fr+Ai,Dc=Tt+Ue+Lt+at+dn+Fr+Wo,Ju=at+cn+Tn+xi+Fr+Mo+nl,ed=en+Bt+Ue+at+Fr+Mo+Us,pa=en+Ue+Lt+at+dr,il=Fr+Mo+Us+nl+es,td=at+cn+Bn+Zi+dn+fi+Fr,lc=dn+fi+Fr+Wo+ds,Cf=at+cn+Bn+Tn+Jr;return ne.set(0,0,Xu),ne.set(0,1,Dc),ne.set(0,2,Ju),ne.set(1,0,ed),ne.set(1,1,pa),ne.set(1,2,il),ne.set(2,0,td),ne.set(2,1,lc),ne.set(2,2,Cf),ne}mmulStrassen(Z){Z=K.checkMatrix(Z);let ne=this.clone(),V=ne.rows,re=ne.columns,ge=Z.rows,we=Z.columns;re!==ge&&console.warn(`Multiplying ${V} x ${re} and ${ge} x ${we} matrix: dimensions do not match.`);function ve(be,Fe,Ze){let Ve=be.rows,dt=be.columns;if(Ve===Fe&&dt===Ze)return be;{let Vt=G.zeros(Fe,Ze);return Vt=Vt.setSubMatrix(be,0,0),Vt}}let _e=Math.max(V,ge),Ee=Math.max(re,we);ne=ve(ne,_e,Ee),Z=ve(Z,_e,Ee);function Le(be,Fe,Ze,Ve){if(Ze<=512||Ve<=512)return be.mmul(Fe);Ze%2===1&&Ve%2===1?(be=ve(be,Ze+1,Ve+1),Fe=ve(Fe,Ze+1,Ve+1)):Ze%2===1?(be=ve(be,Ze+1,Ve),Fe=ve(Fe,Ze+1,Ve)):Ve%2===1&&(be=ve(be,Ze,Ve+1),Fe=ve(Fe,Ze,Ve+1));let dt=parseInt(be.rows/2,10),Vt=parseInt(be.columns/2,10),Xe=be.subMatrix(0,dt-1,0,Vt-1),Ht=Fe.subMatrix(0,dt-1,0,Vt-1),Qt=be.subMatrix(0,dt-1,Vt,be.columns-1),Dt=Fe.subMatrix(0,dt-1,Vt,Fe.columns-1),Tt=be.subMatrix(dt,be.rows-1,0,Vt-1),en=Fe.subMatrix(dt,Fe.rows-1,0,Vt-1),Bt=be.subMatrix(dt,be.rows-1,Vt,be.columns-1),Ue=Fe.subMatrix(dt,Fe.rows-1,Vt,Fe.columns-1),Lt=Le(G.add(Xe,Bt),G.add(Ht,Ue),dt,Vt),at=Le(G.add(Tt,Bt),Ht,dt,Vt),cn=Le(Xe,G.sub(Dt,Ue),dt,Vt),Bn=Le(Bt,G.sub(en,Ht),dt,Vt),Tn=Le(G.add(Xe,Qt),Ue,dt,Vt),xi=Le(G.sub(Tt,Xe),G.add(Ht,Dt),dt,Vt),Zi=Le(G.sub(Qt,Bt),G.add(en,Ue),dt,Vt),dn=G.add(Lt,Bn);dn.sub(Tn),dn.add(Zi);let fi=G.add(cn,Tn),Fr=G.add(at,Bn),Wo=G.sub(Lt,at);Wo.add(cn),Wo.add(xi);let Mo=G.zeros(2*dn.rows,2*dn.columns);return Mo=Mo.setSubMatrix(dn,0,0),Mo=Mo.setSubMatrix(fi,dn.rows,0),Mo=Mo.setSubMatrix(Fr,0,dn.columns),Mo=Mo.setSubMatrix(Wo,dn.rows,dn.columns),Mo.subMatrix(0,Ze-1,0,Ve-1)}return Le(ne,Z,_e,Ee)}scaleRows(Z={}){if(typeof Z!="object")throw new TypeError("options must be an object");const{min:ne=0,max:V=1}=Z;if(!Number.isFinite(ne))throw new TypeError("min must be a number");if(!Number.isFinite(V))throw new TypeError("max must be a number");if(ne>=V)throw new RangeError("min must be smaller than max");let re=new K(this.rows,this.columns);for(let ge=0;ge<this.rows;ge++){const we=this.getRow(ge);we.length>0&&t(we,{min:ne,max:V,output:we}),re.setRow(ge,we)}return re}scaleColumns(Z={}){if(typeof Z!="object")throw new TypeError("options must be an object");const{min:ne=0,max:V=1}=Z;if(!Number.isFinite(ne))throw new TypeError("min must be a number");if(!Number.isFinite(V))throw new TypeError("max must be a number");if(ne>=V)throw new RangeError("min must be smaller than max");let re=new K(this.rows,this.columns);for(let ge=0;ge<this.columns;ge++){const we=this.getColumn(ge);we.length&&t(we,{min:ne,max:V,output:we}),re.setColumn(ge,we)}return re}flipRows(){const Z=Math.ceil(this.columns/2);for(let ne=0;ne<this.rows;ne++)for(let V=0;V<Z;V++){let re=this.get(ne,V),ge=this.get(ne,this.columns-1-V);this.set(ne,V,ge),this.set(ne,this.columns-1-V,re)}return this}flipColumns(){const Z=Math.ceil(this.rows/2);for(let ne=0;ne<this.columns;ne++)for(let V=0;V<Z;V++){let re=this.get(V,ne),ge=this.get(this.rows-1-V,ne);this.set(V,ne,ge),this.set(this.rows-1-V,ne,re)}return this}kroneckerProduct(Z){Z=K.checkMatrix(Z);let ne=this.rows,V=this.columns,re=Z.rows,ge=Z.columns,we=new K(ne*re,V*ge);for(let ve=0;ve<ne;ve++)for(let _e=0;_e<V;_e++)for(let Ee=0;Ee<re;Ee++)for(let Le=0;Le<ge;Le++)we.set(re*ve+Ee,ge*_e+Le,this.get(ve,_e)*Z.get(Ee,Le));return we}kroneckerSum(Z){if(Z=K.checkMatrix(Z),!this.isSquare()||!Z.isSquare())throw new Error("Kronecker Sum needs two Square Matrices");let ne=this.rows,V=Z.rows,re=this.kroneckerProduct(K.eye(V,V)),ge=K.eye(ne,ne).kroneckerProduct(Z);return re.add(ge)}transpose(){let Z=new K(this.columns,this.rows);for(let ne=0;ne<this.rows;ne++)for(let V=0;V<this.columns;V++)Z.set(V,ne,this.get(ne,V));return Z}sortRows(Z=pe){for(let ne=0;ne<this.rows;ne++)this.setRow(ne,this.getRow(ne).sort(Z));return this}sortColumns(Z=pe){for(let ne=0;ne<this.columns;ne++)this.setColumn(ne,this.getColumn(ne).sort(Z));return this}subMatrix(Z,ne,V,re){m(this,Z,ne,V,re);let ge=new K(ne-Z+1,re-V+1);for(let we=Z;we<=ne;we++)for(let ve=V;ve<=re;ve++)ge.set(we-Z,ve-V,this.get(we,ve));return ge}subMatrixRow(Z,ne,V){if(ne===void 0&&(ne=0),V===void 0&&(V=this.columns-1),ne>V||ne<0||ne>=this.columns||V<0||V>=this.columns)throw new RangeError("Argument out of range");let re=new K(Z.length,V-ne+1);for(let ge=0;ge<Z.length;ge++)for(let we=ne;we<=V;we++){if(Z[ge]<0||Z[ge]>=this.rows)throw new RangeError(`Row index out of range: ${Z[ge]}`);re.set(ge,we-ne,this.get(Z[ge],we))}return re}subMatrixColumn(Z,ne,V){if(ne===void 0&&(ne=0),V===void 0&&(V=this.rows-1),ne>V||ne<0||ne>=this.rows||V<0||V>=this.rows)throw new RangeError("Argument out of range");let re=new K(V-ne+1,Z.length);for(let ge=0;ge<Z.length;ge++)for(let we=ne;we<=V;we++){if(Z[ge]<0||Z[ge]>=this.columns)throw new RangeError(`Column index out of range: ${Z[ge]}`);re.set(we-ne,ge,this.get(we,Z[ge]))}return re}setSubMatrix(Z,ne,V){if(Z=K.checkMatrix(Z),Z.isEmpty())return this;let re=ne+Z.rows-1,ge=V+Z.columns-1;m(this,ne,re,V,ge);for(let we=0;we<Z.rows;we++)for(let ve=0;ve<Z.columns;ve++)this.set(ne+we,V+ve,Z.get(we,ve));return this}selection(Z,ne){p(this,Z),g(this,ne);let V=new K(Z.length,ne.length);for(let re=0;re<Z.length;re++){let ge=Z[re];for(let we=0;we<ne.length;we++){let ve=ne[we];V.set(re,we,this.get(ge,ve))}}return V}trace(){let Z=Math.min(this.rows,this.columns),ne=0;for(let V=0;V<Z;V++)ne+=this.get(V,V);return ne}clone(){return this.constructor.copy(this,new K(this.rows,this.columns))}static copy(Z,ne){for(const[V,re,ge]of Z.entries())ne.set(V,re,ge);return ne}sum(Z){switch(Z){case"row":return w(this);case"column":return E(this);case void 0:return A(this);default:throw new Error(`invalid option: ${Z}`)}}product(Z){switch(Z){case"row":return D(this);case"column":return T(this);case void 0:return M(this);default:throw new Error(`invalid option: ${Z}`)}}mean(Z){const ne=this.sum(Z);switch(Z){case"row":{for(let V=0;V<this.rows;V++)ne[V]/=this.columns;return ne}case"column":{for(let V=0;V<this.columns;V++)ne[V]/=this.rows;return ne}case void 0:return ne/this.size;default:throw new Error(`invalid option: ${Z}`)}}variance(Z,ne={}){if(typeof Z=="object"&&(ne=Z,Z=void 0),typeof ne!="object")throw new TypeError("options must be an object");const{unbiased:V=!0,mean:re=this.mean(Z)}=ne;if(typeof V!="boolean")throw new TypeError("unbiased must be a boolean");switch(Z){case"row":{if(!e.isAnyArray(re))throw new TypeError("mean must be an array");return P(this,V,re)}case"column":{if(!e.isAnyArray(re))throw new TypeError("mean must be an array");return F(this,V,re)}case void 0:{if(typeof re!="number")throw new TypeError("mean must be a number");return N(this,V,re)}default:throw new Error(`invalid option: ${Z}`)}}standardDeviation(Z,ne){typeof Z=="object"&&(ne=Z,Z=void 0);const V=this.variance(Z,ne);if(Z===void 0)return Math.sqrt(V);for(let re=0;re<V.length;re++)V[re]=Math.sqrt(V[re]);return V}center(Z,ne={}){if(typeof Z=="object"&&(ne=Z,Z=void 0),typeof ne!="object")throw new TypeError("options must be an object");const{center:V=this.mean(Z)}=ne;switch(Z){case"row":{if(!e.isAnyArray(V))throw new TypeError("center must be an array");return j(this,V),this}case"column":{if(!e.isAnyArray(V))throw new TypeError("center must be an array");return W(this,V),this}case void 0:{if(typeof V!="number")throw new TypeError("center must be a number");return J(this,V),this}default:throw new Error(`invalid option: ${Z}`)}}scale(Z,ne={}){if(typeof Z=="object"&&(ne=Z,Z=void 0),typeof ne!="object")throw new TypeError("options must be an object");let V=ne.scale;switch(Z){case"row":{if(V===void 0)V=ee(this);else if(!e.isAnyArray(V))throw new TypeError("scale must be an array");return Q(this,V),this}case"column":{if(V===void 0)V=H(this);else if(!e.isAnyArray(V))throw new TypeError("scale must be an array");return q(this,V),this}case void 0:{if(V===void 0)V=le(this);else if(typeof V!="number")throw new TypeError("scale must be a number");return Y(this,V),this}default:throw new Error(`invalid option: ${Z}`)}}toString(Z){return o(this,Z)}[Symbol.iterator](){return this.entries()}*entries(){for(let Z=0;Z<this.rows;Z++)for(let ne=0;ne<this.columns;ne++)yield[Z,ne,this.get(Z,ne)]}*values(){for(let Z=0;Z<this.rows;Z++)for(let ne=0;ne<this.columns;ne++)yield this.get(Z,ne)}}G.prototype.klass="Matrix",typeof Symbol<"u"&&(G.prototype[Symbol.for("nodejs.util.inspect.custom")]=r);function pe(ke,Z){return ke-Z}function U(ke){return ke.every(Z=>typeof Z=="number")}G.random=G.rand,G.randomInt=G.randInt,G.diagonal=G.diag,G.prototype.diagonal=G.prototype.diag,G.identity=G.eye,G.prototype.negate=G.prototype.neg,G.prototype.tensorProduct=G.prototype.kroneckerProduct;class K extends G{data;#e(Z,ne){if(this.data=[],Number.isInteger(ne)&&ne>=0)for(let V=0;V<Z;V++)this.data.push(new Float64Array(ne));else throw new TypeError("nColumns must be a positive integer");this.rows=Z,this.columns=ne}constructor(Z,ne){if(super(),K.isMatrix(Z))this.#e(Z.rows,Z.columns),K.copy(Z,this);else if(Number.isInteger(Z)&&Z>=0)this.#e(Z,ne);else if(e.isAnyArray(Z)){const V=Z;if(Z=V.length,ne=Z?V[0].length:0,typeof ne!="number")throw new TypeError("Data must be a 2D array with at least one element");this.data=[];for(let re=0;re<Z;re++){if(V[re].length!==ne)throw new RangeError("Inconsistent array dimensions");if(!U(V[re]))throw new TypeError("Input data contains non-numeric values");this.data.push(Float64Array.from(V[re]))}this.rows=Z,this.columns=ne}else throw new TypeError("First argument must be a positive number or an array")}set(Z,ne,V){return this.data[Z][ne]=V,this}get(Z,ne){return this.data[Z][ne]}removeRow(Z){return u(this,Z),this.data.splice(Z,1),this.rows-=1,this}addRow(Z,ne){return ne===void 0&&(ne=Z,Z=this.rows),u(this,Z,!0),ne=Float64Array.from(h(this,ne)),this.data.splice(Z,0,ne),this.rows+=1,this}removeColumn(Z){d(this,Z);for(let ne=0;ne<this.rows;ne++){const V=new Float64Array(this.columns-1);for(let re=0;re<Z;re++)V[re]=this.data[ne][re];for(let re=Z+1;re<this.columns;re++)V[re-1]=this.data[ne][re];this.data[ne]=V}return this.columns-=1,this}addColumn(Z,ne){typeof ne>"u"&&(ne=Z,Z=this.columns),d(this,Z,!0),ne=f(this,ne);for(let V=0;V<this.rows;V++){const re=new Float64Array(this.columns+1);let ge=0;for(;ge<Z;ge++)re[ge]=this.data[V][ge];for(re[ge++]=ne[V];ge<this.columns+1;ge++)re[ge]=this.data[V][ge-1];this.data[V]=re}return this.columns+=1,this}}c(G,K);class ie extends G{#e;get size(){return this.#e.size}get rows(){return this.#e.rows}get columns(){return this.#e.columns}get diagonalSize(){return this.rows}static isSymmetricMatrix(Z){return K.isMatrix(Z)&&Z.klassType==="SymmetricMatrix"}static zeros(Z){return new this(Z)}static ones(Z){return new this(Z).fill(1)}constructor(Z){if(super(),K.isMatrix(Z)){if(!Z.isSymmetric())throw new TypeError("not symmetric data");this.#e=K.copy(Z,new K(Z.rows,Z.rows))}else if(Number.isInteger(Z)&&Z>=0)this.#e=new K(Z,Z);else if(this.#e=new K(Z),!this.isSymmetric())throw new TypeError("not symmetric data")}clone(){const Z=new ie(this.diagonalSize);for(const[ne,V,re]of this.upperRightEntries())Z.set(ne,V,re);return Z}toMatrix(){return new K(this)}get(Z,ne){return this.#e.get(Z,ne)}set(Z,ne,V){return this.#e.set(Z,ne,V),this.#e.set(ne,Z,V),this}removeCross(Z){return this.#e.removeRow(Z),this.#e.removeColumn(Z),this}addCross(Z,ne){ne===void 0&&(ne=Z,Z=this.diagonalSize);const V=ne.slice();return V.splice(Z,1),this.#e.addRow(Z,V),this.#e.addColumn(Z,ne),this}applyMask(Z){if(Z.length!==this.diagonalSize)throw new RangeError("Mask size do not match with matrix size");const ne=[];for(const[V,re]of Z.entries())re||ne.push(V);ne.reverse();for(const V of ne)this.removeCross(V);return this}toCompact(){const{diagonalSize:Z}=this,ne=new Array(Z*(Z+1)/2);for(let V=0,re=0,ge=0;ge<ne.length;ge++)ne[ge]=this.get(re,V),++V>=Z&&(V=++re);return ne}static fromCompact(Z){const ne=Z.length,V=(Math.sqrt(8*ne+1)-1)/2;if(!Number.isInteger(V))throw new TypeError(`This array is not a compact representation of a Symmetric Matrix, ${JSON.stringify(Z)}`);const re=new ie(V);for(let ge=0,we=0,ve=0;ve<ne;ve++)re.set(ge,we,Z[ve]),++ge>=V&&(ge=++we);return re}*upperRightEntries(){for(let Z=0,ne=0;Z<this.diagonalSize;void 0){const V=this.get(Z,ne);yield[Z,ne,V],++ne>=this.diagonalSize&&(ne=++Z)}}*upperRightValues(){for(let Z=0,ne=0;Z<this.diagonalSize;void 0)yield this.get(Z,ne),++ne>=this.diagonalSize&&(ne=++Z)}}ie.prototype.klassType="SymmetricMatrix";class ce extends ie{static isDistanceMatrix(Z){return ie.isSymmetricMatrix(Z)&&Z.klassSubType==="DistanceMatrix"}constructor(Z){if(super(Z),!this.isDistance())throw new TypeError("Provided arguments do no produce a distance matrix")}set(Z,ne,V){return Z===ne&&(V=0),super.set(Z,ne,V)}addCross(Z,ne){return ne===void 0&&(ne=Z,Z=this.diagonalSize),ne=ne.slice(),ne[Z]=0,super.addCross(Z,ne)}toSymmetricMatrix(){return new ie(this)}clone(){const Z=new ce(this.diagonalSize);for(const[ne,V,re]of this.upperRightEntries())ne!==V&&Z.set(ne,V,re);return Z}toCompact(){const{diagonalSize:Z}=this,ne=(Z-1)*Z/2,V=new Array(ne);for(let re=1,ge=0,we=0;we<V.length;we++)V[we]=this.get(ge,re),++re>=Z&&(re=++ge+1);return V}static fromCompact(Z){const ne=Z.length;if(ne===0)return new this(0);const V=(Math.sqrt(8*ne+1)+1)/2;if(!Number.isInteger(V))throw new TypeError(`This array is not a compact representation of a DistanceMatrix, ${JSON.stringify(Z)}`);const re=new this(V);for(let ge=1,we=0,ve=0;ve<ne;ve++)re.set(ge,we,Z[ve]),++ge>=V&&(ge=++we+1);return re}}ce.prototype.klassSubType="DistanceMatrix";class de extends G{constructor(Z,ne,V){super(),this.matrix=Z,this.rows=ne,this.columns=V}}class oe extends de{constructor(Z,ne){d(Z,ne),super(Z,Z.rows,1),this.column=ne}set(Z,ne,V){return this.matrix.set(Z,this.column,V),this}get(Z){return this.matrix.get(Z,this.column)}}class me extends de{constructor(Z,ne){g(Z,ne),super(Z,Z.rows,ne.length),this.columnIndices=ne}set(Z,ne,V){return this.matrix.set(Z,this.columnIndices[ne],V),this}get(Z,ne){return this.matrix.get(Z,this.columnIndices[ne])}}class Ce extends de{constructor(Z){super(Z,Z.rows,Z.columns)}set(Z,ne,V){return this.matrix.set(Z,this.columns-ne-1,V),this}get(Z,ne){return this.matrix.get(Z,this.columns-ne-1)}}class Se extends de{constructor(Z){super(Z,Z.rows,Z.columns)}set(Z,ne,V){return this.matrix.set(this.rows-Z-1,ne,V),this}get(Z,ne){return this.matrix.get(this.rows-Z-1,ne)}}class De extends de{constructor(Z,ne){u(Z,ne),super(Z,1,Z.columns),this.row=ne}set(Z,ne,V){return this.matrix.set(this.row,ne,V),this}get(Z,ne){return this.matrix.get(this.row,ne)}}class Me extends de{constructor(Z,ne){p(Z,ne),super(Z,ne.length,Z.columns),this.rowIndices=ne}set(Z,ne,V){return this.matrix.set(this.rowIndices[Z],ne,V),this}get(Z,ne){return this.matrix.get(this.rowIndices[Z],ne)}}class qe extends de{constructor(Z,ne,V){p(Z,ne),g(Z,V),super(Z,ne.length,V.length),this.rowIndices=ne,this.columnIndices=V}set(Z,ne,V){return this.matrix.set(this.rowIndices[Z],this.columnIndices[ne],V),this}get(Z,ne){return this.matrix.get(this.rowIndices[Z],this.columnIndices[ne])}}class $ extends de{constructor(Z,ne,V,re,ge){m(Z,ne,V,re,ge),super(Z,V-ne+1,ge-re+1),this.startRow=ne,this.startColumn=re}set(Z,ne,V){return this.matrix.set(this.startRow+Z,this.startColumn+ne,V),this}get(Z,ne){return this.matrix.get(this.startRow+Z,this.startColumn+ne)}}class he extends de{constructor(Z){super(Z,Z.columns,Z.rows)}set(Z,ne,V){return this.matrix.set(ne,Z,V),this}get(Z,ne){return this.matrix.get(ne,Z)}}class Ie extends G{constructor(Z,ne={}){const{rows:V=1}=ne;if(Z.length%V!==0)throw new Error("the data length is not divisible by the number of rows");super(),this.rows=V,this.columns=Z.length/V,this.data=Z}set(Z,ne,V){let re=this._calculateIndex(Z,ne);return this.data[re]=V,this}get(Z,ne){let V=this._calculateIndex(Z,ne);return this.data[V]}_calculateIndex(Z,ne){return Z*this.columns+ne}}class Be extends G{constructor(Z){super(),this.data=Z,this.rows=Z.length,this.columns=Z[0].length}set(Z,ne,V){return this.data[Z][ne]=V,this}get(Z,ne){return this.data[Z][ne]}}function ze(ke,Z){if(e.isAnyArray(ke))return ke[0]&&e.isAnyArray(ke[0])?new Be(ke):new Ie(ke,Z);throw new Error("the argument is not an array")}class Ye{constructor(Z){Z=Be.checkMatrix(Z);let ne=Z.clone(),V=ne.rows,re=ne.columns,ge=new Float64Array(V),we=1,ve,_e,Ee,Le,be,Fe,Ze,Ve,dt;for(ve=0;ve<V;ve++)ge[ve]=ve;for(Ve=new Float64Array(V),_e=0;_e<re;_e++){for(ve=0;ve<V;ve++)Ve[ve]=ne.get(ve,_e);for(ve=0;ve<V;ve++){for(dt=Math.min(ve,_e),be=0,Ee=0;Ee<dt;Ee++)be+=ne.get(ve,Ee)*Ve[Ee];Ve[ve]-=be,ne.set(ve,_e,Ve[ve])}for(Le=_e,ve=_e+1;ve<V;ve++)Math.abs(Ve[ve])>Math.abs(Ve[Le])&&(Le=ve);if(Le!==_e){for(Ee=0;Ee<re;Ee++)Fe=ne.get(Le,Ee),ne.set(Le,Ee,ne.get(_e,Ee)),ne.set(_e,Ee,Fe);Ze=ge[Le],ge[Le]=ge[_e],ge[_e]=Ze,we=-we}if(_e<V&&ne.get(_e,_e)!==0)for(ve=_e+1;ve<V;ve++)ne.set(ve,_e,ne.get(ve,_e)/ne.get(_e,_e))}this.LU=ne,this.pivotVector=ge,this.pivotSign=we}isSingular(){let Z=this.LU,ne=Z.columns;for(let V=0;V<ne;V++)if(Z.get(V,V)===0)return!0;return!1}solve(Z){Z=K.checkMatrix(Z);let ne=this.LU;if(ne.rows!==Z.rows)throw new Error("Invalid matrix dimensions");if(this.isSingular())throw new Error("LU matrix is singular");let re=Z.columns,ge=Z.subMatrixRow(this.pivotVector,0,re-1),we=ne.columns,ve,_e,Ee;for(Ee=0;Ee<we;Ee++)for(ve=Ee+1;ve<we;ve++)for(_e=0;_e<re;_e++)ge.set(ve,_e,ge.get(ve,_e)-ge.get(Ee,_e)*ne.get(ve,Ee));for(Ee=we-1;Ee>=0;Ee--){for(_e=0;_e<re;_e++)ge.set(Ee,_e,ge.get(Ee,_e)/ne.get(Ee,Ee));for(ve=0;ve<Ee;ve++)for(_e=0;_e<re;_e++)ge.set(ve,_e,ge.get(ve,_e)-ge.get(Ee,_e)*ne.get(ve,Ee))}return ge}get determinant(){let Z=this.LU;if(!Z.isSquare())throw new Error("Matrix must be square");let ne=this.pivotSign,V=Z.columns;for(let re=0;re<V;re++)ne*=Z.get(re,re);return ne}get lowerTriangularMatrix(){let Z=this.LU,ne=Z.rows,V=Z.columns,re=new K(ne,V);for(let ge=0;ge<ne;ge++)for(let we=0;we<V;we++)ge>we?re.set(ge,we,Z.get(ge,we)):ge===we?re.set(ge,we,1):re.set(ge,we,0);return re}get upperTriangularMatrix(){let Z=this.LU,ne=Z.rows,V=Z.columns,re=new K(ne,V);for(let ge=0;ge<ne;ge++)for(let we=0;we<V;we++)ge<=we?re.set(ge,we,Z.get(ge,we)):re.set(ge,we,0);return re}get pivotPermutationVector(){return Array.from(this.pivotVector)}}function it(ke,Z){let ne=0;return Math.abs(ke)>Math.abs(Z)?(ne=Z/ke,Math.abs(ke)*Math.sqrt(1+ne*ne)):Z!==0?(ne=ke/Z,Math.abs(Z)*Math.sqrt(1+ne*ne)):0}class ft{constructor(Z){Z=Be.checkMatrix(Z);let ne=Z.clone(),V=Z.rows,re=Z.columns,ge=new Float64Array(re),we,ve,_e,Ee;for(_e=0;_e<re;_e++){let Le=0;for(we=_e;we<V;we++)Le=it(Le,ne.get(we,_e));if(Le!==0){for(ne.get(_e,_e)<0&&(Le=-Le),we=_e;we<V;we++)ne.set(we,_e,ne.get(we,_e)/Le);for(ne.set(_e,_e,ne.get(_e,_e)+1),ve=_e+1;ve<re;ve++){for(Ee=0,we=_e;we<V;we++)Ee+=ne.get(we,_e)*ne.get(we,ve);for(Ee=-Ee/ne.get(_e,_e),we=_e;we<V;we++)ne.set(we,ve,ne.get(we,ve)+Ee*ne.get(we,_e))}}ge[_e]=-Le}this.QR=ne,this.Rdiag=ge}solve(Z){Z=K.checkMatrix(Z);let ne=this.QR,V=ne.rows;if(Z.rows!==V)throw new Error("Matrix row dimensions must agree");if(!this.isFullRank())throw new Error("Matrix is rank deficient");let re=Z.columns,ge=Z.clone(),we=ne.columns,ve,_e,Ee,Le;for(Ee=0;Ee<we;Ee++)for(_e=0;_e<re;_e++){for(Le=0,ve=Ee;ve<V;ve++)Le+=ne.get(ve,Ee)*ge.get(ve,_e);for(Le=-Le/ne.get(Ee,Ee),ve=Ee;ve<V;ve++)ge.set(ve,_e,ge.get(ve,_e)+Le*ne.get(ve,Ee))}for(Ee=we-1;Ee>=0;Ee--){for(_e=0;_e<re;_e++)ge.set(Ee,_e,ge.get(Ee,_e)/this.Rdiag[Ee]);for(ve=0;ve<Ee;ve++)for(_e=0;_e<re;_e++)ge.set(ve,_e,ge.get(ve,_e)-ge.get(Ee,_e)*ne.get(ve,Ee))}return ge.subMatrix(0,we-1,0,re-1)}isFullRank(){let Z=this.QR.columns;for(let ne=0;ne<Z;ne++)if(this.Rdiag[ne]===0)return!1;return!0}get upperTriangularMatrix(){let Z=this.QR,ne=Z.columns,V=new K(ne,ne),re,ge;for(re=0;re<ne;re++)for(ge=0;ge<ne;ge++)re<ge?V.set(re,ge,Z.get(re,ge)):re===ge?V.set(re,ge,this.Rdiag[re]):V.set(re,ge,0);return V}get orthogonalMatrix(){let Z=this.QR,ne=Z.rows,V=Z.columns,re=new K(ne,V),ge,we,ve,_e;for(ve=V-1;ve>=0;ve--){for(ge=0;ge<ne;ge++)re.set(ge,ve,0);for(re.set(ve,ve,1),we=ve;we<V;we++)if(Z.get(ve,ve)!==0){for(_e=0,ge=ve;ge<ne;ge++)_e+=Z.get(ge,ve)*re.get(ge,we);for(_e=-_e/Z.get(ve,ve),ge=ve;ge<ne;ge++)re.set(ge,we,re.get(ge,we)+_e*Z.get(ge,ve))}}return re}}class ct{constructor(Z,ne={}){if(Z=Be.checkMatrix(Z),Z.isEmpty())throw new Error("Matrix must be non-empty");let V=Z.rows,re=Z.columns;const{computeLeftSingularVectors:ge=!0,computeRightSingularVectors:we=!0,autoTranspose:ve=!1}=ne;let _e=!!ge,Ee=!!we,Le=!1,be;if(V<re)if(!ve)be=Z.clone(),console.warn("Computing SVD on a matrix with more columns than rows. Consider enabling autoTranspose");else{be=Z.transpose(),V=be.rows,re=be.columns,Le=!0;let at=_e;_e=Ee,Ee=at}else be=Z.clone();let Fe=Math.min(V,re),Ze=Math.min(V+1,re),Ve=new Float64Array(Ze),dt=new K(V,Fe),Vt=new K(re,re),Xe=new Float64Array(re),Ht=new Float64Array(V),Qt=new Float64Array(Ze);for(let at=0;at<Ze;at++)Qt[at]=at;let Dt=Math.min(V-1,re),Tt=Math.max(0,Math.min(re-2,V)),en=Math.max(Dt,Tt);for(let at=0;at<en;at++){if(at<Dt){Ve[at]=0;for(let cn=at;cn<V;cn++)Ve[at]=it(Ve[at],be.get(cn,at));if(Ve[at]!==0){be.get(at,at)<0&&(Ve[at]=-Ve[at]);for(let cn=at;cn<V;cn++)be.set(cn,at,be.get(cn,at)/Ve[at]);be.set(at,at,be.get(at,at)+1)}Ve[at]=-Ve[at]}for(let cn=at+1;cn<re;cn++){if(at<Dt&&Ve[at]!==0){let Bn=0;for(let Tn=at;Tn<V;Tn++)Bn+=be.get(Tn,at)*be.get(Tn,cn);Bn=-Bn/be.get(at,at);for(let Tn=at;Tn<V;Tn++)be.set(Tn,cn,be.get(Tn,cn)+Bn*be.get(Tn,at))}Xe[cn]=be.get(at,cn)}if(_e&&at<Dt)for(let cn=at;cn<V;cn++)dt.set(cn,at,be.get(cn,at));if(at<Tt){Xe[at]=0;for(let cn=at+1;cn<re;cn++)Xe[at]=it(Xe[at],Xe[cn]);if(Xe[at]!==0){Xe[at+1]<0&&(Xe[at]=0-Xe[at]);for(let cn=at+1;cn<re;cn++)Xe[cn]/=Xe[at];Xe[at+1]+=1}if(Xe[at]=-Xe[at],at+1<V&&Xe[at]!==0){for(let cn=at+1;cn<V;cn++)Ht[cn]=0;for(let cn=at+1;cn<V;cn++)for(let Bn=at+1;Bn<re;Bn++)Ht[cn]+=Xe[Bn]*be.get(cn,Bn);for(let cn=at+1;cn<re;cn++){let Bn=-Xe[cn]/Xe[at+1];for(let Tn=at+1;Tn<V;Tn++)be.set(Tn,cn,be.get(Tn,cn)+Bn*Ht[Tn])}}if(Ee)for(let cn=at+1;cn<re;cn++)Vt.set(cn,at,Xe[cn])}}let Bt=Math.min(re,V+1);if(Dt<re&&(Ve[Dt]=be.get(Dt,Dt)),V<Bt&&(Ve[Bt-1]=0),Tt+1<Bt&&(Xe[Tt]=be.get(Tt,Bt-1)),Xe[Bt-1]=0,_e){for(let at=Dt;at<Fe;at++){for(let cn=0;cn<V;cn++)dt.set(cn,at,0);dt.set(at,at,1)}for(let at=Dt-1;at>=0;at--)if(Ve[at]!==0){for(let cn=at+1;cn<Fe;cn++){let Bn=0;for(let Tn=at;Tn<V;Tn++)Bn+=dt.get(Tn,at)*dt.get(Tn,cn);Bn=-Bn/dt.get(at,at);for(let Tn=at;Tn<V;Tn++)dt.set(Tn,cn,dt.get(Tn,cn)+Bn*dt.get(Tn,at))}for(let cn=at;cn<V;cn++)dt.set(cn,at,-dt.get(cn,at));dt.set(at,at,1+dt.get(at,at));for(let cn=0;cn<at-1;cn++)dt.set(cn,at,0)}else{for(let cn=0;cn<V;cn++)dt.set(cn,at,0);dt.set(at,at,1)}}if(Ee)for(let at=re-1;at>=0;at--){if(at<Tt&&Xe[at]!==0)for(let cn=at+1;cn<re;cn++){let Bn=0;for(let Tn=at+1;Tn<re;Tn++)Bn+=Vt.get(Tn,at)*Vt.get(Tn,cn);Bn=-Bn/Vt.get(at+1,at);for(let Tn=at+1;Tn<re;Tn++)Vt.set(Tn,cn,Vt.get(Tn,cn)+Bn*Vt.get(Tn,at))}for(let cn=0;cn<re;cn++)Vt.set(cn,at,0);Vt.set(at,at,1)}let Ue=Bt-1,Lt=Number.EPSILON;for(;Bt>0;){let at,cn;for(at=Bt-2;at>=-1&&at!==-1;at--){const Bn=Number.MIN_VALUE+Lt*Math.abs(Ve[at]+Math.abs(Ve[at+1]));if(Math.abs(Xe[at])<=Bn||Number.isNaN(Xe[at])){Xe[at]=0;break}}if(at===Bt-2)cn=4;else{let Bn;for(Bn=Bt-1;Bn>=at&&Bn!==at;Bn--){let Tn=(Bn!==Bt?Math.abs(Xe[Bn]):0)+(Bn!==at+1?Math.abs(Xe[Bn-1]):0);if(Math.abs(Ve[Bn])<=Lt*Tn){Ve[Bn]=0;break}}Bn===at?cn=3:Bn===Bt-1?cn=1:(cn=2,at=Bn)}switch(at++,cn){case 1:{let Bn=Xe[Bt-2];Xe[Bt-2]=0;for(let Tn=Bt-2;Tn>=at;Tn--){let xi=it(Ve[Tn],Bn),Zi=Ve[Tn]/xi,dn=Bn/xi;if(Ve[Tn]=xi,Tn!==at&&(Bn=-dn*Xe[Tn-1],Xe[Tn-1]=Zi*Xe[Tn-1]),Ee)for(let fi=0;fi<re;fi++)xi=Zi*Vt.get(fi,Tn)+dn*Vt.get(fi,Bt-1),Vt.set(fi,Bt-1,-dn*Vt.get(fi,Tn)+Zi*Vt.get(fi,Bt-1)),Vt.set(fi,Tn,xi)}break}case 2:{let Bn=Xe[at-1];Xe[at-1]=0;for(let Tn=at;Tn<Bt;Tn++){let xi=it(Ve[Tn],Bn),Zi=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+1],Xe[Ai+1]=es*Xe[Ai+1],_e&&Ai<V-1)for(let Jr=0;Jr<V;Jr++)dr=es*dt.get(Jr,Ai)+ds*dt.get(Jr,Ai+1),dt.set(Jr,Ai+1,-ds*dt.get(Jr,Ai)+es*dt.get(Jr,Ai+1)),dt.set(Jr,Ai,dr)}Xe[Bt-2]=Us;break}case 4:{if(Ve[at]<=0&&(Ve[at]=Ve[at]<0?-Ve[at]:0,Ee))for(let Bn=0;Bn<=Ue;Bn++)Vt.set(Bn,at,-Vt.get(Bn,at));for(;at<Ue&&!(Ve[at]>=Ve[at+1]);){let Bn=Ve[at];if(Ve[at]=Ve[at+1],Ve[at+1]=Bn,Ee&&at<re-1)for(let Tn=0;Tn<re;Tn++)Bn=Vt.get(Tn,at+1),Vt.set(Tn,at+1,Vt.get(Tn,at)),Vt.set(Tn,at,Bn);if(_e&&at<V-1)for(let Tn=0;Tn<V;Tn++)Bn=dt.get(Tn,at+1),dt.set(Tn,at+1,dt.get(Tn,at)),dt.set(Tn,at,Bn);at++}Bt--;break}}}if(Le){let at=Vt;Vt=dt,dt=at}this.m=V,this.n=re,this.s=Ve,this.U=dt,this.V=Vt}solve(Z){let ne=Z,V=this.threshold,re=this.s.length,ge=K.zeros(re,re);for(let Fe=0;Fe<re;Fe++)Math.abs(this.s[Fe])<=V?ge.set(Fe,Fe,0):ge.set(Fe,Fe,1/this.s[Fe]);let we=this.U,ve=this.rightSingularVectors,_e=ve.mmul(ge),Ee=ve.rows,Le=we.rows,be=K.zeros(Ee,Le);for(let Fe=0;Fe<Ee;Fe++)for(let Ze=0;Ze<Le;Ze++){let Ve=0;for(let dt=0;dt<re;dt++)Ve+=_e.get(Fe,dt)*we.get(Ze,dt);be.set(Fe,Ze,Ve)}return be.mmul(ne)}solveForDiagonal(Z){return this.solve(K.diag(Z))}inverse(){let Z=this.V,ne=this.threshold,V=Z.rows,re=Z.columns,ge=new K(V,this.s.length);for(let Le=0;Le<V;Le++)for(let be=0;be<re;be++)Math.abs(this.s[be])>ne&&ge.set(Le,be,Z.get(Le,be)/this.s[be]);let we=this.U,ve=we.rows,_e=we.columns,Ee=new K(V,ve);for(let Le=0;Le<V;Le++)for(let be=0;be<ve;be++){let Fe=0;for(let Ze=0;Ze<_e;Ze++)Fe+=ge.get(Le,Ze)*we.get(be,Ze);Ee.set(Le,be,Fe)}return Ee}get condition(){return this.s[0]/this.s[Math.min(this.m,this.n)-1]}get norm2(){return this.s[0]}get rank(){let Z=Math.max(this.m,this.n)*this.s[0]*Number.EPSILON,ne=0,V=this.s;for(let re=0,ge=V.length;re<ge;re++)V[re]>Z&&ne++;return ne}get diagonal(){return Array.from(this.s)}get threshold(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}get leftSingularVectors(){return this.U}get rightSingularVectors(){return this.V}get diagonalMatrix(){return K.diag(this.s)}}function et(ke,Z=!1){return ke=Be.checkMatrix(ke),Z?new ct(ke).inverse():ut(ke,K.eye(ke.rows))}function ut(ke,Z,ne=!1){return ke=Be.checkMatrix(ke),Z=Be.checkMatrix(Z),ne?new ct(ke).solve(Z):ke.isSquare()?new Ye(ke).solve(Z):new ft(ke).solve(Z)}function wt(ke){if(ke=K.checkMatrix(ke),ke.isSquare()){if(ke.columns===0)return 1;let Z,ne,V,re;if(ke.columns===2)return Z=ke.get(0,0),ne=ke.get(0,1),V=ke.get(1,0),re=ke.get(1,1),Z*re-ne*V;if(ke.columns===3){let ge,we,ve;return ge=new qe(ke,[1,2],[1,2]),we=new qe(ke,[1,2],[0,2]),ve=new qe(ke,[1,2],[0,1]),Z=ke.get(0,0),ne=ke.get(0,1),V=ke.get(0,2),Z*wt(ge)-ne*wt(we)+V*wt(ve)}else return new Ye(ke).determinant}else throw Error("determinant can only be calculated for a square matrix")}function pt(ke,Z){let ne=[];for(let V=0;V<ke;V++)V!==Z&&ne.push(V);return ne}function _t(ke,Z,ne,V=1e-9,re=1e-9){if(ke>re)return new Array(Z.rows+1).fill(0);{let ge=Z.addRow(ne,[0]);for(let we=0;we<ge.rows;we++)Math.abs(ge.get(we,0))<V&&ge.set(we,0,0);return ge.to1DArray()}}function Rt(ke,Z={}){const{thresholdValue:ne=1e-9,thresholdError:V=1e-9}=Z;ke=K.checkMatrix(ke);let re=ke.rows,ge=new K(re,re);for(let we=0;we<re;we++){let ve=K.columnVector(ke.getRow(we)),_e=ke.subMatrixRow(pt(re,we)).transpose(),Le=new ct(_e).solve(ve),be=K.sub(ve,_e.mmul(Le)).abs().max();ge.setRow(we,_t(be,Le,we,ne,V))}return ge}function Yt(ke,Z=Number.EPSILON){if(ke=K.checkMatrix(ke),ke.isEmpty())return ke.transpose();let ne=new ct(ke,{autoTranspose:!0}),V=ne.leftSingularVectors,re=ne.rightSingularVectors,ge=ne.diagonal;for(let we=0;we<ge.length;we++)Math.abs(ge[we])>Z?ge[we]=1/ge[we]:ge[we]=0;return re.mmul(K.diag(ge).mmul(V.transpose()))}function Ut(ke,Z=ke,ne={}){ke=new K(ke);let V=!1;if(typeof Z=="object"&&!K.isMatrix(Z)&&!e.isAnyArray(Z)?(ne=Z,Z=ke,V=!0):Z=new K(Z),ke.rows!==Z.rows)throw new TypeError("Both matrices must have the same number of rows");const{center:re=!0}=ne;re&&(ke=ke.center("column"),V||(Z=Z.center("column")));const ge=ke.transpose().mmul(Z);for(let we=0;we<ge.rows;we++)for(let ve=0;ve<ge.columns;ve++)ge.set(we,ve,ge.get(we,ve)*(1/(ke.rows-1)));return ge}function Gt(ke,Z=ke,ne={}){ke=new K(ke);let V=!1;if(typeof Z=="object"&&!K.isMatrix(Z)&&!e.isAnyArray(Z)?(ne=Z,Z=ke,V=!0):Z=new K(Z),ke.rows!==Z.rows)throw new TypeError("Both matrices must have the same number of rows");const{center:re=!0,scale:ge=!0}=ne;re&&(ke.center("column"),V||Z.center("column")),ge&&(ke.scale("column"),V||Z.scale("column"));const we=ke.standardDeviation("column",{unbiased:!0}),ve=V?we:Z.standardDeviation("column",{unbiased:!0}),_e=ke.transpose().mmul(Z);for(let Ee=0;Ee<_e.rows;Ee++)for(let Le=0;Le<_e.columns;Le++)_e.set(Ee,Le,_e.get(Ee,Le)*(1/(we[Ee]*ve[Le]))*(1/(ke.rows-1)));return _e}class Kt{constructor(Z,ne={}){const{assumeSymmetric:V=!1}=ne;if(Z=Be.checkMatrix(Z),!Z.isSquare())throw new Error("Matrix is not a square matrix");if(Z.isEmpty())throw new Error("Matrix must be non-empty");let re=Z.columns,ge=new K(re,re),we=new Float64Array(re),ve=new Float64Array(re),_e=Z,Ee,Le,be=!1;if(V?be=!0:be=Z.isSymmetric(),be){for(Ee=0;Ee<re;Ee++)for(Le=0;Le<re;Le++)ge.set(Ee,Le,_e.get(Ee,Le));ln(re,ve,we,ge),pn(re,ve,we,ge)}else{let Fe=new K(re,re),Ze=new Float64Array(re);for(Le=0;Le<re;Le++)for(Ee=0;Ee<re;Ee++)Fe.set(Ee,Le,_e.get(Ee,Le));wn(re,Fe,Ze,ge),Mn(re,ve,we,ge,Fe)}this.n=re,this.e=ve,this.d=we,this.V=ge}get realEigenvalues(){return Array.from(this.d)}get imaginaryEigenvalues(){return Array.from(this.e)}get eigenvectorMatrix(){return this.V}get diagonalMatrix(){let Z=this.n,ne=this.e,V=this.d,re=new K(Z,Z),ge,we;for(ge=0;ge<Z;ge++){for(we=0;we<Z;we++)re.set(ge,we,0);re.set(ge,ge,V[ge]),ne[ge]>0?re.set(ge,ge+1,ne[ge]):ne[ge]<0&&re.set(ge,ge-1,ne[ge])}return re}}function ln(ke,Z,ne,V){let re,ge,we,ve,_e,Ee,Le,be;for(_e=0;_e<ke;_e++)ne[_e]=V.get(ke-1,_e);for(ve=ke-1;ve>0;ve--){for(be=0,we=0,Ee=0;Ee<ve;Ee++)be=be+Math.abs(ne[Ee]);if(be===0)for(Z[ve]=ne[ve-1],_e=0;_e<ve;_e++)ne[_e]=V.get(ve-1,_e),V.set(ve,_e,0),V.set(_e,ve,0);else{for(Ee=0;Ee<ve;Ee++)ne[Ee]/=be,we+=ne[Ee]*ne[Ee];for(re=ne[ve-1],ge=Math.sqrt(we),re>0&&(ge=-ge),Z[ve]=be*ge,we=we-re*ge,ne[ve-1]=re-ge,_e=0;_e<ve;_e++)Z[_e]=0;for(_e=0;_e<ve;_e++){for(re=ne[_e],V.set(_e,ve,re),ge=Z[_e]+V.get(_e,_e)*re,Ee=_e+1;Ee<=ve-1;Ee++)ge+=V.get(Ee,_e)*ne[Ee],Z[Ee]+=V.get(Ee,_e)*re;Z[_e]=ge}for(re=0,_e=0;_e<ve;_e++)Z[_e]/=we,re+=Z[_e]*ne[_e];for(Le=re/(we+we),_e=0;_e<ve;_e++)Z[_e]-=Le*ne[_e];for(_e=0;_e<ve;_e++){for(re=ne[_e],ge=Z[_e],Ee=_e;Ee<=ve-1;Ee++)V.set(Ee,_e,V.get(Ee,_e)-(re*Z[Ee]+ge*ne[Ee]));ne[_e]=V.get(ve-1,_e),V.set(ve,_e,0)}}ne[ve]=we}for(ve=0;ve<ke-1;ve++){if(V.set(ke-1,ve,V.get(ve,ve)),V.set(ve,ve,1),we=ne[ve+1],we!==0){for(Ee=0;Ee<=ve;Ee++)ne[Ee]=V.get(Ee,ve+1)/we;for(_e=0;_e<=ve;_e++){for(ge=0,Ee=0;Ee<=ve;Ee++)ge+=V.get(Ee,ve+1)*V.get(Ee,_e);for(Ee=0;Ee<=ve;Ee++)V.set(Ee,_e,V.get(Ee,_e)-ge*ne[Ee])}}for(Ee=0;Ee<=ve;Ee++)V.set(Ee,ve+1,0)}for(_e=0;_e<ke;_e++)ne[_e]=V.get(ke-1,_e),V.set(ke-1,_e,0);V.set(ke-1,ke-1,1),Z[0]=0}function pn(ke,Z,ne,V){let re,ge,we,ve,_e,Ee,Le,be,Fe,Ze,Ve,dt,Vt,Xe,Ht,Qt;for(we=1;we<ke;we++)Z[we-1]=Z[we];Z[ke-1]=0;let Dt=0,Tt=0,en=Number.EPSILON;for(Ee=0;Ee<ke;Ee++){for(Tt=Math.max(Tt,Math.abs(ne[Ee])+Math.ab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(ve=Math.sqrt(_e),ne[be]>0&&(ve=-ve),_e=_e-ne[be]*ve,ne[be]=ne[be]-ve,Le=be;Le<ke;Le++){for(we=0,Ee=ge;Ee>=be;Ee--)we+=ne[Ee]*Z.get(Ee,Le);for(we=we/_e,Ee=be;Ee<=ge;Ee++)Z.set(Ee,Le,Z.get(Ee,Le)-we*ne[Ee])}for(Ee=0;Ee<=ge;Ee++){for(we=0,Le=ge;Le>=be;Le--)we+=ne[Le]*Z.get(Ee,Le);for(we=we/_e,Le=be;Le<=ge;Le++)Z.set(Ee,Le,Z.get(Ee,Le)-we*ne[Le])}ne[be]=Fe*ne[be],Z.set(be,be-1,Fe*ve)}}for(Ee=0;Ee<ke;Ee++)for(Le=0;Le<ke;Le++)V.set(Ee,Le,Ee===Le?1:0);for(be=ge-1;be>=re+1;be--)if(Z.get(be,be-1)!==0){for(Ee=be+1;Ee<=ge;Ee++)ne[Ee]=Z.get(Ee,be-1);for(Le=be;Le<=ge;Le++){for(ve=0,Ee=be;Ee<=ge;Ee++)ve+=ne[Ee]*V.get(Ee,Le);for(ve=ve/ne[be]/Z.get(be,be-1),Ee=be;Ee<=ge;Ee++)V.set(Ee,Le,V.get(Ee,Le)+ve*ne[Ee])}}}function Mn(ke,Z,ne,V,re){let ge=ke-1,we=0,ve=ke-1,_e=Number.EPSILON,Ee=0,Le=0,be=0,Fe=0,Ze=0,Ve=0,dt=0,Vt=0,Xe,Ht,Qt,Dt,Tt,en,Bt,Ue,Lt,at,cn,Bn,Tn,xi,Zi;for(Xe=0;Xe<ke;Xe++)for((Xe<we||Xe>ve)&&(ne[Xe]=re.get(Xe,Xe),Z[Xe]=0),Ht=Math.max(Xe-1,0);Ht<ke;Ht++)Le=Le+Math.abs(re.get(Xe,Ht));for(;ge>=we;){for(Dt=ge;Dt>we&&(Ve=Math.abs(re.get(Dt-1,Dt-1))+Math.abs(re.get(Dt,Dt)),Ve===0&&(Ve=Le),!(Math.abs(re.get(Dt,Dt-1))<_e*Ve));)Dt--;if(Dt===ge)re.set(ge,ge,re.get(ge,ge)+Ee),ne[ge]=re.get(ge,ge),Z[ge]=0,ge--,Vt=0;else if(Dt===ge-1){if(Bt=re.get(ge,ge-1)*re.get(ge-1,ge),be=(re.get(ge-1,ge-1)-re.get(ge,ge))/2,Fe=be*be+Bt,dt=Math.sqrt(Math.abs(Fe)),re.set(ge,ge,re.get(ge,ge)+Ee),re.set(ge-1,ge-1,re.get(ge-1,ge-1)+Ee),Ue=re.get(ge,ge),Fe>=0){for(dt=be>=0?be+dt:be-dt,ne[ge-1]=Ue+dt,ne[ge]=ne[ge-1],dt!==0&&(ne[ge]=Ue-Bt/dt),Z[ge-1]=0,Z[ge]=0,Ue=re.get(ge,ge-1),Ve=Math.abs(Ue)+Math.abs(dt),be=Ue/Ve,Fe=dt/Ve,Ze=Math.sqrt(be*be+Fe*Fe),be=be/Ze,Fe=Fe/Ze,Ht=ge-1;Ht<ke;Ht++)dt=re.get(ge-1,Ht),re.set(ge-1,Ht,Fe*dt+be*re.get(ge,Ht)),re.set(ge,Ht,Fe*re.get(ge,Ht)-be*dt);for(Xe=0;Xe<=ge;Xe++)dt=re.get(Xe,ge-1),re.set(Xe,ge-1,Fe*dt+be*re.get(Xe,ge)),re.set(Xe,ge,Fe*re.get(Xe,ge)-be*dt);for(Xe=we;Xe<=ve;Xe++)dt=V.get(Xe,ge-1),V.set(Xe,ge-1,Fe*dt+be*V.get(Xe,ge)),V.set(Xe,ge,Fe*V.get(Xe,ge)-be*dt)}else ne[ge-1]=Ue+be,ne[ge]=Ue+be,Z[ge-1]=dt,Z[ge]=-dt;ge=ge-2,Vt=0}else{if(Ue=re.get(ge,ge),Lt=0,Bt=0,Dt<ge&&(Lt=re.get(ge-1,ge-1),Bt=re.get(ge,ge-1)*re.get(ge-1,ge)),Vt===10){for(Ee+=Ue,Xe=we;Xe<=ge;Xe++)re.set(Xe,Xe,re.get(Xe,Xe)-Ue);Ve=Math.abs(re.get(ge,ge-1))+Math.abs(re.get(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dt)),en=Math.abs(re.get(Xe,ge)),_e*en*en>1)for(Ht=Xe;Ht<=ge;Ht++)re.set(Ht,ge,re.get(Ht,ge)/en)}else if(Fe<0)for(Dt=ge-1,Math.abs(re.get(ge,ge-1))>Math.abs(re.get(ge-1,ge))?(re.set(ge-1,ge-1,Fe/re.get(ge,ge-1)),re.set(ge-1,ge,-(re.get(ge,ge)-be)/re.get(ge,ge-1))):(Zi=Yn(0,-re.get(ge-1,ge),re.get(ge-1,ge-1)-be,Fe),re.set(ge-1,ge-1,Zi[0]),re.set(ge-1,ge,Zi[1])),re.set(ge,ge-1,0),re.set(ge,ge,1),Xe=ge-2;Xe>=0;Xe--){for(at=0,cn=0,Ht=Dt;Ht<=ge;Ht++)at=at+re.get(Xe,Ht)*re.get(Ht,ge-1),cn=cn+re.get(Xe,Ht)*re.get(Ht,ge);if(Bt=re.get(Xe,Xe)-be,Z[Xe]<0)dt=Bt,Ze=at,Ve=cn;else if(Dt=Xe,Z[Xe]===0?(Zi=Yn(-at,-cn,Bt,Fe),re.set(Xe,ge-1,Zi[0]),re.set(Xe,ge,Zi[1])):(Ue=re.get(Xe,Xe+1),Lt=re.get(Xe+1,Xe),Bn=(ne[Xe]-be)*(ne[Xe]-be)+Z[Xe]*Z[Xe]-Fe*Fe,Tn=(ne[Xe]-be)*2*Fe,Bn===0&&Tn===0&&(Bn=_e*Le*(Math.abs(Bt)+Math.abs(Fe)+Math.abs(Ue)+Math.abs(Lt)+Math.abs(dt))),Zi=Yn(Ue*Ze-dt*at+Fe*cn,Ue*Ve-dt*cn-Fe*at,Bn,Tn),re.set(Xe,ge-1,Zi[0]),re.set(Xe,ge,Zi[1]),Math.abs(Ue)>Math.abs(dt)+Math.abs(Fe)?(re.set(Xe+1,ge-1,(-at-Bt*re.get(Xe,ge-1)+Fe*re.get(Xe,ge))/Ue),re.set(Xe+1,ge,(-cn-Bt*re.get(Xe,ge)-Fe*re.get(Xe,ge-1))/Ue)):(Zi=Yn(-Ze-Lt*re.get(Xe,ge-1),-Ve-Lt*re.get(Xe,ge),dt,Fe),re.set(Xe+1,ge-1,Zi[0]),re.set(Xe+1,ge,Zi[1]))),en=Math.max(Math.abs(re.get(Xe,ge-1)),Math.abs(re.get(Xe,ge))),_e*en*en>1)for(Ht=Xe;Ht<=ge;Ht++)re.set(Ht,ge-1,re.get(Ht,ge-1)/en),re.set(Ht,ge,re.get(Ht,ge)/en)}for(Xe=0;Xe<ke;Xe++)if(Xe<we||Xe>ve)for(Ht=Xe;Ht<ke;Ht++)V.set(Xe,Ht,re.get(Xe,Ht));for(Ht=ke-1;Ht>=we;Ht--)for(Xe=we;Xe<=ve;Xe++){for(dt=0,Qt=we;Qt<=Math.min(Ht,ve);Qt++)dt=dt+V.get(Xe,Qt)*re.get(Qt,Ht);V.set(Xe,Ht,dt)}}}function Yn(ke,Z,ne,V){let re,ge;return Math.abs(ne)>Math.abs(V)?(re=V/ne,ge=ne+re*V,[(ke+re*Z)/ge,(Z-re*ke)/ge]):(re=ne/V,ge=V+re*ne,[(re*ke+Z)/ge,(re*Z-ke)/ge])}class di{constructor(Z){if(Z=Be.checkMatrix(Z),!Z.isSymmetric())throw new Error("Matrix is not symmetric");let ne=Z,V=ne.rows,re=new K(V,V),ge=!0,we,ve,_e;for(ve=0;ve<V;ve++){let Ee=0;for(_e=0;_e<ve;_e++){let Le=0;for(we=0;we<_e;we++)Le+=re.get(_e,we)*re.get(ve,we);Le=(ne.get(ve,_e)-Le)/re.get(_e,_e),re.set(ve,_e,Le),Ee=Ee+Le*Le}for(Ee=ne.get(ve,ve)-Ee,ge&&=Ee>0,re.set(ve,ve,Math.sqrt(Math.max(Ee,0))),_e=ve+1;_e<V;_e++)re.set(ve,_e,0)}this.L=re,this.positiveDefinite=ge}isPositiveDefinite(){return this.positiveDefinite}solve(Z){Z=Be.checkMatrix(Z);let ne=this.L,V=ne.rows;if(Z.rows!==V)throw new Error("Matrix dimensions do not match");if(this.isPositiveDefinite()===!1)throw new Error("Matrix is not positive definite");let re=Z.columns,ge=Z.clone(),we,ve,_e;for(_e=0;_e<V;_e++)for(ve=0;ve<re;ve++){for(we=0;we<_e;we++)ge.set(_e,ve,ge.get(_e,ve)-ge.get(we,ve)*ne.get(_e,we));ge.set(_e,ve,ge.get(_e,ve)/ne.get(_e,_e))}for(_e=V-1;_e>=0;_e--)for(ve=0;ve<re;ve++){for(we=_e+1;we<V;we++)ge.set(_e,ve,ge.get(_e,ve)-ge.get(we,ve)*ne.get(we,_e));ge.set(_e,ve,ge.get(_e,ve)/ne.get(_e,_e))}return ge}get lowerTriangularMatrix(){return this.L}}class Li{constructor(Z,ne={}){Z=Be.checkMatrix(Z);let{Y:V}=ne;const{scaleScores:re=!1,maxIterations:ge=1e3,terminationCriteria:we=1e-10}=ne;let ve;if(V){if(e.isAnyArray(V)&&typeof V[0]=="number"?V=K.columnVector(V):V=Be.checkMatrix(V),V.rows!==Z.rows)throw new Error("Y should have the same number of rows as X");ve=V.getColumnVector(0)}else ve=Z.getColumnVector(0);let _e=1,Ee,Le,be,Fe;for(let Ze=0;Ze<ge&&_e>we;Ze++)be=Z.transpose().mmul(ve).div(ve.transpose().mmul(ve).get(0,0)),be=be.div(be.norm()),Ee=Z.mmul(be).div(be.transpose().mmul(be).get(0,0)),Ze>0&&(_e=Ee.clone().sub(Fe).pow(2).sum()),Fe=Ee.clone(),V?(Le=V.transpose().mmul(Ee).div(Ee.transpose().mmul(Ee).get(0,0)),Le=Le.div(Le.norm()),ve=V.mmul(Le).div(Le.transpose().mmul(Le).get(0,0))):ve=Ee;if(V){let Ze=Z.transpose().mmul(Ee).div(Ee.transpose().mmul(Ee).get(0,0));Ze=Ze.div(Ze.norm());let Ve=Z.clone().sub(Ee.clone().mmul(Ze.transpose())),dt=ve.transpose().mmul(Ee).div(Ee.transpose().mmul(Ee).get(0,0)),Vt=V.clone().sub(Ee.clone().mulS(dt.get(0,0)).mmul(Le.transpose()));this.t=Ee,this.p=Ze.transpose(),this.w=be.transpose(),this.q=Le,this.u=ve,this.s=Ee.transpose().mmul(Ee),this.xResidual=Ve,this.yResidual=Vt,this.betas=dt}else this.w=be.transpose(),this.s=Ee.transpose().mmul(Ee).sqrt(),re?this.t=Ee.clone().div(this.s.get(0,0)):this.t=Ee,this.xResidual=Z.sub(Ee.mmul(be.transpose()))}}return ga.AbstractMatrix=G,ga.CHO=di,ga.CholeskyDecomposition=di,ga.DistanceMatrix=ce,ga.EVD=Kt,ga.EigenvalueDecomposition=Kt,ga.LU=Ye,ga.LuDecomposition=Ye,ga.Matrix=K,ga.MatrixColumnSelectionView=me,ga.MatrixColumnView=oe,ga.MatrixFlipColumnView=Ce,ga.MatrixFlipRowView=Se,ga.MatrixRowSelectionView=Me,ga.MatrixRowView=De,ga.MatrixSelectionView=qe,ga.MatrixSubView=$,ga.MatrixTransposeView=he,ga.NIPALS=Li,ga.Nipals=Li,ga.QR=ft,ga.QrDecomposition=ft,ga.SVD=ct,ga.SingularValueDecomposition=ct,ga.SymmetricMatrix=ie,ga.WrapperMatrix1D=Ie,ga.WrapperMatrix2D=Be,ga.correlation=Gt,ga.covariance=Ut,ga.default=K,ga.determinant=wt,ga.inverse=et,ga.linearDependencies=Rt,ga.pseudoInverse=Yt,ga.solve=ut,ga.wrap=ze,ga}var Qve=o1i(),QNt=qgn(Qve),ZNt=Qve.Matrix,s1i=Qve.SingularValueDecomposition;QNt.Matrix?QNt.Matrix:Qve.Matrix;var nvn=(e,t)=>{const n=e.nodeCount(),i=Array.from({length:n},()=>[]),r={};let o=0;return e.forEachNode(s=>{r[s.id]=o++}),e.forEachEdge(s=>{const a=r[s.source],l=r[s.target];a==null||l==null||(i[a].push(l),i[l].push(a))}),i},a1i=(e,t)=>{const n=e.length,i=new Array(n);for(let r=0;r<n;r++){const o=e[r],s=o.length,a=new Array(s);for(let l=0;l<s;l++)a[l]=o[l]*t;i[r]=a}return i};function ivn(e){const t=e.length;new Array(t).fill(0);const n=Array.from({length:t},()=>new Array(t).fill(1/0));for(let i=0;i<t;i++)n[i]=l1i(e,i);return n}function l1i(e,t){const n=e.length,i=new Array(n).fill(1/0);i[t]=0;const r=new c1i;for(r.push([0,t]);!r.empty();){const[o,s]=r.pop();if(o!==i[s])continue;const a=e[s];for(let l=0;l<a.length;l++){const c=a[l],u=o+1;u<i[c]&&(i[c]=u,r.push([u,c]))}}return i}var c1i=class{constructor(){this.data=[]}push(e){this.data.push(e),this.bubbleUp(this.data.length-1)}pop(){const e=this.data[0],t=this.data.pop();return this.data.length>0&&(this.data[0]=t,this.bubbleDown(0)),e}empty(){return this.data.length===0}bubbleUp(e){const t=this.data;for(;e>0;){const n=e-1>>1;if(t[n][0]<=t[e][0])break;[t[n],t[e]]=[t[e],t[n]],e=n}}bubbleDown(e){const t=this.data,n=t.length;for(;;){const i=e*2+1,r=e*2+2;let o=e;if(i<n&&t[i][0]<t[o][0]&&(o=i),r<n&&t[r][0]<t[o][0]&&(o=r),o===e)break;[t[e],t[o]]=[t[o],t[e]],e=o}}},z9e={center:[0,0],linkDistance:50},rvn=class extends EE{constructor(){super(...arguments),this.id="mds"}getDefaultOptions(){return z9e}layout(){return $f(this,void 0,void 0,function*(){const{linkDistance:e=z9e.linkDistance}=this.options,{center:t}=db(this.options),n=this.model.nodeCount();if(n===0||n===1){wF(this.model,t);return}const i=nvn(this.model),r=ivn(i);u1i(r);const o=a1i(r,e),s=ovn(o);let a=0;this.model.forEachNode(l=>{const c=s[a++];l.x=c[0]+t[0],l.y=c[1]+t[1]})})}},u1i=e=>{let t=Number.NEGATIVE_INFINITY;const n=[],i=e.length;for(let r=0;r<i;r++){const o=e[r],s=o.length;for(let a=0;a<s;a++){const l=o[a];l===1/0?n.push([r,a]):t<l&&(t=l)}}for(let r=0;r<n.length;r++){const[o,s]=n[r];e[o][s]=t}},ovn=(e,t=2,n=z9e.linkDistance)=>{try{const i=e.length,r=new ZNt(i,i);for(let f=0;f<i;f++)for(let p=0;p<i;p++){const g=e[f][p];r.set(f,p,-.5*g*g)}const o=r.mean("row"),s=r.mean("column"),a=r.mean();r.add(a).subRowVector(o).subColumnVector(s);const l=new s1i(r),c=ZNt.sqrt(l.diagonalMatrix).diagonal(),u=l.leftSingularVectors,d=c,h=[];for(let f=0;f<u.rows;f++){const p=[];for(let g=0;g<t;g++)p.push(u.get(f,g)*d[g]);h.push(p)}return h}catch{const r=[];for(let o=0;o<e.length;o++){const s=Math.random()*n,a=Math.random()*n;r.push([s,a])}return r}},d1i=800,XNt={maxIteration:10,width:10,speed:100,gravity:10,k:5},h1i=(e,t)=>{const n=Object.assign(Object.assign({},XNt),t),{maxIteration:i,width:r,k:o,speed:s=XNt.speed,strictRadial:a,focusNode:l,radiiMap:c,nodeSizeFunc:u}=n,d=o*.002,h=new Map,f=r/10;for(let p=0;p<i&&(e.forEachNode(m=>{h.set(m.id,{x:0,y:0})}),f1i(e,h,o,c,u),!(p1i(e,h,s,a,l,f,c)<d));p++);},f1i=(e,t,n,i,r)=>{let o=0;e.forEachNode(s=>{let a=0;e.forEachNode(l=>{if(a<=o){a++;return}if(s.id===l.id||i.get(s.id)!==i.get(l.id))return;let c=s.x-l.x,u=s.y-l.y,d=Math.sqrt(c*c+u*u);if(d===0){d=1;const p=o>a?1:-1;c=.01*p,u=.01*p}const h=Math.max(...r(s._original)),f=Math.max(...r(l._original));if(d<f/2+h/2){const p=n*n/d,g=t.get(s.id),m=t.get(l.id),v=c/d*p,y=u/d*p;t.set(s.id,{x:g.x+v,y:g.y+y}),t.set(l.id,{x:m.x-v,y:m.y-y})}a++}),o++})},p1i=(e,t,n,i,r,o,s)=>{i&&e.forEachNode(c=>{const u=c.x-r.x,d=c.y-r.y,h=Math.sqrt(u*u+d*d);let f=d/h,p=-u/h;const g=t.get(c.id),m=Math.sqrt(g.x*g.x+g.y*g.y);let v=Math.acos((f*g.x+p*g.y)/m);v>Math.PI/2&&(v-=Math.PI/2,f*=-1,p*=-1);const y=Math.cos(v)*m;t.set(c.id,{x:f*y,y:p*y})});let a=0,l=0;return e.forEachNode(c=>{if(c.id===r.id)return;const u=t.get(c.id),d=Math.sqrt(u.x*u.x+u.y*u.y);if(d>0){const h=Math.min(o*(n/d1i),d);if(c.x+=u.x/d*h,c.y+=u.y/d*h,i){let f=c.x-r.x,p=c.y-r.y;const g=Math.sqrt(f*f+p*p);f=f/g*s.get(c.id),p=p/g*s.get(c.id),c.x=r.x+f,c.y=r.y+p}a+=h,l++}}),l>0?a/l:0},EM={focusNode:null,linkDistance:50,maxIteration:1e3,maxPreventOverlapIteration:200,preventOverlap:!1,sortStrength:10,strictRadial:!0,unitRadius:null,nodeSize:10,nodeSpacing:0},qYe=class extends EE{constructor(){super(...arguments),this.id="radial"}getDefaultOptions(){return EM}layout(){return $f(this,void 0,void 0,function*(){const{width:e,height:t,center:n}=db(this.options),i=this.model.nodeCount();if(!i||i===1)return wF(this.model,n);const{focusNode:r,linkDistance:o=EM.linkDistance,maxIteration:s=EM.maxIteration,maxPreventOverlapIteration:a=EM.maxPreventOverlapIteration,nodeSize:l,nodeSpacing:c,preventOverlap:u,sortBy:d,sortStrength:h=EM.sortStrength,strictRadial:f,unitRadius:p}=this.options,g=r&&this.model.node(r)||this.model.firstNode(),m=this.model.nodeIndexOf(g.id),v=nvn(this.model),y=ivn(v),b=y1i(y,m);v1i(y,m,b+1);const w=y[m],E=(e-n[0]>n[0]?n[0]:e-n[0])||e/2,A=(t-n[1]>n[1]?n[1]:t-n[1])||t/2,D=Math.min(E,A),T=Math.max(...w),M=[],P=new Map,F=p??D/T;w.forEach((ee,Q)=>{const H=ee*F;M.push(H),P.set(this.model.nodeAt(Q).id,H)});const N=g1i(this.model,y,o,M,F,d,h),j=ovn(N,2,o),W=j[m];let J=0;if(this.model.forEachNode(ee=>{const Q=j[J];ee.x=Q[0]-W[0],ee.y=Q[1]-W[1],J++}),this.run(s,N,M,m),this.model.forEachNode(ee=>{ee.x+=n[0],ee.y+=n[1]}),u){const Q={nodeSizeFunc:IT(l,c,EM.nodeSize,EM.nodeSpacing),radiiMap:P,width:e,strictRadial:!!f,focusNode:g,maxIteration:a,k:i/4.5};h1i(this.model,Q)}})}run(e,t,n,i){const r=m1i(t),o=this.model.nodeCount(),s=this.model.nodes(),a=new Float64Array(o),l=new Float64Array(o);for(let c=0;c<o;c++)a[c]=s[c].x,l[c]=s[c].y;for(let c=0;c<=e;c++){const u=c/e,d=1-u;for(let h=0;h<o;h++){if(h===i)continue;const f=a[h],p=l[h],g=Math.sqrt(f*f+p*p),m=g===0?0:1/g;let v=0,y=0,b=0;for(let E=0;E<o;E++){if(h===E)continue;const A=a[E],D=l[E],T=Math.sqrt((f-A)*(f-A)+(p-D)*(p-D)),M=T===0?0:1/T,P=t[E][h];b+=r[h][E],v+=r[h][E]*(A+P*(f-A)*M),y+=r[h][E]*(D+P*(p-D)*M)}const w=n[h]===0?0:1/n[h];b*=d,b+=u*w*w,v*=d,v+=u*w*f*m,y*=d,y+=u*w*p*m,a[h]=v/b,l[h]=y/b,s[h].x=a[h],s[h].y=l[h]}}}},g1i=(e,t,n,i,r,o,s)=>{const a=t.length,l=new Array(a),c=new Array(a);for(let p=0;p<a;p++)c[p]=i[p]/r;const u=(n+r)/2,d=new Map,h=!o||o==="data"?null:jf(o,["node"]),f=o==="data";for(let p=0;p<a;p++){const g=t[p],m=new Array(a);l[p]=m;const v=c[p]||1;for(let y=0;y<a;y++){if(p===y){m[y]=0;continue}const b=g[y];if(i[p]===i[y])if(f)m[y]=b*Math.abs(p-y)*s/v;else if(h){const w=e.nodeAt(p),E=e.nodeAt(y);let A=d.get(w.id);if(A===void 0){const T=h(w._original)||0;A=typeof T=="string"?T.charCodeAt(0):Number(T||0),d.set(w.id,A)}let D=d.get(E.id);if(D===void 0){const T=h(E._original)||0;D=typeof T=="string"?T.charCodeAt(0):Number(T||0),d.set(E.id,D)}m[y]=b*Math.abs(A-D)*s/v}else m[y]=b*n/v;else m[y]=b*u}}return l},m1i=e=>{const t=e.length,n=e[0].length,i=[];for(let r=0;r<t;r++){const o=[];for(let s=0;s<n;s++)e[r][s]!==0?o.push(1/(e[r][s]*e[r][s])):o.push(0);i.push(o)}return i},v1i=(e,t,n)=>{const i=e.length;for(let r=0;r<i;r++)if(e[t][r]===1/0){e[t][r]=n,e[r][t]=n;for(let o=0;o<i;o++)e[r][o]!==1/0&&e[t][o]===1/0&&(e[t][o]=n+e[r][o],e[o][t]=n+e[r][o])}for(let r=0;r<i;r++)if(r!==t){for(let o=0;o<i;o++)if(e[r][o]===1/0){let s=Math.abs(e[t][r]-e[t][o]);s=s===0?1:s,e[r][o]=s}}},y1i=(e,t)=>{const n=e[t];let i=0;for(let r=0;r<n.length;r++)n[r]!==1/0&&(i=Math.max(i,n[r]));return i},svn=class extends EE{constructor(){super(...arguments),this.id="random"}getDefaultOptions(){return{center:[0,0],width:300,height:300}}layout(){return $f(this,void 0,void 0,function*(){const{width:e,height:t,center:n}=db(this.options);this.model.forEachNode(i=>{i.x=JNt(e)+n[0],i.y=JNt(t)+n[1]})})}},b1i=.9,JNt=e=>(Math.random()-.5)*b1i*e,ePt={"antv-dagre":Dhe,"d3-force-3d":nyi,"d3-force":Lve,"force-atlas2":Zmn,circular:Lgn,concentric:bYe,dagre:Kmn,force:Ymn,fruchterman:$Ye,grid:Xmn,mds:rvn,radial:qYe,random:svn},_1i={layout:e=>e?{type:"concentric",preventOverlap:!0}:{type:"force",preventOverlap:!0},nodeSize:20,nodeSpacing:0,comboPadding:10,comboSpacing:0},AM="root",w1i=class extends EE{constructor(){super(...arguments),this.id="combo-combined",this.relativePositions=new Map,this.getParentId=e=>e.parentId||AM}getDefaultOptions(){return _1i}layout(){return $f(this,void 0,void 0,function*(){const{center:e}=db(this.options);this.resetLayoutState();const t=this.buildHierarchyTree();yield this.layoutHierarchy(t),this.convertToGlobalPositions(t,e),this.applyPositionsToModel(t)})}isCombo(e){return!!e.isCombo}resetLayoutState(){this.relativePositions.clear()}layoutHierarchy(e){return $f(this,void 0,void 0,function*(){for(const h of e.children||[])this.isCombo(h)&&(yield this.layoutHierarchy(h));const t=e.children||[];if(t.length===0){e.size=[0,0,0],e.parentId=e.id===AM?null:e.parentId;return}const n=this.getLayoutConfig(e),{type:i}=n,r=Upi(n,["type"]),o=this.getLayoutClass(i),s=new o(r),a=this.createTemporaryGraphData(t);yield C1i(s,a,{});const l=s.model.nodes();this.recordRelativePositions(l,e);const{center:c,width:u,height:d}=this.calculateComboBounds(e);e.size=[u,d,0],(e.children||[]).forEach(h=>{const f=this.relativePositions.get(h.id);if(!f)return;const p=Object.assign(Object.assign({},f),{x:f.x-c[0],y:f.y-c[1]});this.relativePositions.set(h.id,p)})})}recordRelativePositions(e,t){const n=this.calculateComboCenter(e);e.forEach(i=>{this.relativePositions.set(i.id,{x:i.x-n[0],y:i.y-n[1],relativeTo:String(t.id)})})}buildHierarchyTree(){const e={id:AM,isCombo:!0,children:[],parentId:null},t=new Map;return t.set(AM,e),this.model.forEachNode(n=>{if(this.isCombo(n)){const i=Object.assign(Object.assign({},n),{children:[],parentId:this.getParentId(n)});t.set(String(n.id),i)}}),this.model.forEachNode(n=>{const i=t.get(this.getParentId(n));if(this.isCombo(n)){const r=t.get(String(n.id));i&&r&&(i.children.push(r),r.parentId=i.id)}else i&&i.children.push(Object.assign(Object.assign({},n),{children:[],parentId:this.getParentId(n)}))}),e}convertToGlobalPositions(e,t){var n,i;const r=e.id===AM?null:this.relativePositions.get(e.id),o=t[0]+((n=r?.x)!==null&&n!==void 0?n:0),s=t[1]+((i=r?.y)!==null&&i!==void 0?i:0);e.x=o,e.y=s,(e.children||[]).forEach(a=>{var l,c;const u=this.relativePositions.get(a.id);a.x=o+((l=u?.x)!==null&&l!==void 0?l:0),a.y=s+((c=u?.y)!==null&&c!==void 0?c:0),a.size=this.getNodeLikeSize(a,!1),this.isCombo(a)&&this.convertToGlobalPositions(a,[o,s])})}getLayoutConfig(e){const t=typeof this.options.layout=="object"?this.options.layout:jf(this.options.layout,["comboId"]);if(typeof t=="function"){const n=e.id===AM?null:e.id;return this.normalizeLayoutConfig(t(n))}return this.normalizeLayoutConfig(t)}normalizeLayoutConfig(e){const t=Object.assign(Object.assign({type:"concentric"},db(this.options)),{nodeSize:"node.size",nodeSpacing:0});return e?typeof e=="string"?Object.assign(Object.assign({},t),{type:e}):Object.assign(Object.assign({},t),e):t}getLayoutClass(e){return ePt[e]||ePt.concentric}createTemporaryGraphData(e){const t=e.map(o=>Object.assign(Object.assign({},o),{size:this.getNodeLikeSize(o)})),n=new Set(e.map(o=>String(o.id))),i=[],r=o=>{let s=String(o);const a=new Set;for(;s&&!a.has(s);){if(n.has(s))return s;a.add(s);const l=this.model.node(s),c=l?.parentId;s=c==null?null:String(c)}return null};return this.model.forEachEdge(o=>{const s=r(String(o.source)),a=r(String(o.target));!s||!a||s!==a&&i.push({source:s,target:a})}),{nodes:t,edges:i}}calculateComboCenter(e){if(e.length===0)return[0,0];const t=new Map;e.forEach(s=>{const a=this.getNodeLikeSize(s);t.set(s.id,a)});let n=1/0,i=1/0,r=-1/0,o=-1/0;return e.forEach(s=>{const[a=0,l=0]=t.get(s.id);n=Math.min(n,s.x-a/2),i=Math.min(i,s.y-l/2),r=Math.max(r,s.x+a/2),o=Math.max(o,s.y+l/2)}),!Number.isFinite(n)||!Number.isFinite(i)?[0,0]:[(n+r)/2,(i+o)/2]}calculateComboBounds(e){const t=e.children||[];if(t.length===0)return{center:[0,0],width:0,height:0};let n=1/0,i=1/0,r=-1/0,o=-1/0;if(t.forEach(l=>{var c,u;const d=this.relativePositions.get(l.id),h=(c=d?.x)!==null&&c!==void 0?c:0,f=(u=d?.y)!==null&&u!==void 0?u:0,[p,g]=this.getNodeLikeSize(l);n=Math.min(n,h-p/2),i=Math.min(i,f-g/2),r=Math.max(r,h+p/2),o=Math.max(o,f+g/2)}),!Number.isFinite(n)||!Number.isFinite(i))return{center:[0,0],width:0,height:0};const a=Oy(this.options.comboPadding,20,"combo")(e._original);return{center:[(n+r)/2,(i+o)/2],width:r-n+a*2,height:o-i+a*2}}getNodeLikeSize(e,t=!0){return this.isCombo(e)?this.getComboSize(e,t):this.getNodeSize(e,t)}getNodeSize(e,t=!0){const{nodeSize:n,nodeSpacing:i}=this.options;return IT(n,t?i:0)(e._original)}getComboSize(e,t=!0){const n=Oy(this.options.comboSpacing,0,"combo"),i=t?n(e._original):0,[r,o]=e.size;return[r+i/2,o+i/2,0]}applyPositionsToModel(e){const t=i=>{const r=this.model.node(i.id);r&&(r.x=i.x,r.y=i.y,i.size&&(r.size=i.size))},n=i=>{i.id!==AM&&t(i),(i.children||[]).forEach(r=>{this.isCombo(r)?n(r):t(r)})};n(e)}};function C1i(e,t,n={}){var i;return $f(this,void 0,void 0,function*(){return Ehe(e)?(e.execute(t,n),e.stop(),e.tick((i=n.iterations)!==null&&i!==void 0?i:300)):yield e.execute(t,n)})}var S1i=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M22 22H2v-2h20zM10 2H7v16h3zm7 6h-3v10h3z"})]}),x1i=I.forwardRef(S1i),E1i=x1i,A1i=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M8.4 18.2q.6.75.6 1.8c0 1.7-1.3 3-3 3s-3-1.3-3-3s1.3-3 3-3q.6 0 1.2.3l1.4-1.8c-.9-1-1.3-2.4-1.1-3.7l-2-.7c-.5.8-1.4 1.4-2.5 1.4c-1.7 0-3-1.3-3-3s1.3-3 3-3s3 1.3 3 3v.2l2 .7c.6-1.2 1.8-2.1 3.2-2.3V5.9C10 5.6 9 4.4 9 3c0-1.7 1.3-3 3-3s3 1.3 3 3c0 1.4-1 2.6-2.2 2.9v2.2c1.4.2 2.6 1.1 3.2 2.3l2-.7v-.2c0-1.7 1.3-3 3-3s3 1.3 3 3s-1.3 3-3 3c-1.1 0-2-.6-2.5-1.4l-2 .7c.2 1.3-.2 2.7-1.1 3.7l1.4 1.8q.6-.3 1.2-.3c1.7 0 3 1.3 3 3s-1.3 3-3 3s-3-1.3-3-3q0-1.05.6-1.8l-1.4-1.8c-1.4.8-3 .8-4.4 0z"})]}),D1i=I.forwardRef(A1i),avn=D1i,T1i=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M21 6.5c-1.7 0-3 1.3-3 3v.2l-2 .7c-.6-1.2-1.8-2.1-3.2-2.3V5.9C14 5.6 15 4.4 15 3c0-1.7-1.3-3-3-3S9 1.3 9 3c0 1.4 1 2.6 2.2 2.9v2.2c-1.3.2-2.5 1.1-3.2 2.3l-2-.7v-.2c0-1.7-1.3-3-3-3s-3 1.3-3 3s1.3 3 3 3c1.1 0 2-.6 2.5-1.4l2 .7c-.2 1.3.2 2.7 1.1 3.7l-1.4 1.8Q6.6 17 6 17c-1.7 0-3 1.3-3 3s1.3 3 3 3s3-1.3 3-3q0-1.05-.6-1.8l1.4-1.8c1.4.8 3 .8 4.4 0l1.4 1.8q-.6.75-.6 1.8c0 1.7 1.3 3 3 3s3-1.3 3-3s-1.3-3-3-3c-.4 0-.9.1-1.2.3l-1.4-1.8c.9-1 1.3-2.4 1.1-3.7l2-.7c.5.8 1.5 1.4 2.5 1.4c1.7 0 3-1.3 3-3s-1.3-3-3-3m-18 4c-.5 0-1-.4-1-1s.5-1 1-1s1 .4 1 1s-.5 1-1 1M6 21c-.6 0-1-.5-1-1s.4-1 1-1s1 .5 1 1s-.4 1-1 1m5-18c0-.5.4-1 1-1s1 .5 1 1s-.4 1-1 1s-1-.5-1-1m1 12c-1.4 0-2.5-1.1-2.5-2.5S10.6 10 12 10s2.5 1.1 2.5 2.5S13.4 15 12 15m6 4c.5 0 1 .5 1 1s-.5 1-1 1s-1-.5-1-1s.5-1 1-1m3-8.5c-.5 0-1-.4-1-1s.5-1 1-1s1 .4 1 1s-.5 1-1 1"})]}),k1i=I.forwardRef(T1i),I1i=k1i,L1i=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"m21 9l-4-4v3h-7v2h7v3M7 11l-4 4l4 4v-3h7v-2H7z"})]}),N1i=I.forwardRef(L1i),P1i=N1i,M1i=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"m19.07 4.93l-1.41 1.41A8 8 0 0 1 20 12a8 8 0 0 1-8 8a8 8 0 0 1-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12a6 6 0 0 0 6 6a6 6 0 0 0 6-6c0-1.66-.67-3.16-1.76-4.24l-1.41 1.41C15.55 9.9 16 10.9 16 12a4 4 0 0 1-4 4a4 4 0 0 1-4-4c0-1.86 1.28-3.41 3-3.86v2.14c-.6.35-1 .98-1 1.72a2 2 0 0 0 2 2a2 2 0 0 0 2-2c0-.74-.4-1.38-1-1.72V2h-1A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10c0-2.76-1.12-5.26-2.93-7.07"})]}),O1i=I.forwardRef(M1i),R1i=O1i;function tPt(e){switch(e.type){case"force":return{layout:new Lve(e.options),scale:4};case"concentric":return{layout:new bYe(e.options),scale:1.5};case"fruchterman":return{layout:new $Ye(e.options),scale:3};case"dagre-tb":return{layout:new Dhe(e.options),scale:1};case"dagre-lr":return{layout:new Dhe(e.options),scale:1};case"radial":return{layout:new qYe(e.options),scale:1}}}var lvn={type:"concentric",options:{preventOverlap:!0,nodeSize:50,center:[0,0]}},F1i={type:"fruchterman",options:{center:[0,0]}},cvn={type:"dagre-tb",options:{rankdir:"TB",align:"DL",ranksep:25,nodesep:50}},uvn={type:"dagre-lr",options:{rankdir:"LR",align:"DL",ranksep:50,nodesep:25,controlPoints:!0}},B1i={type:"radial",options:{linkDistance:200,maxIteration:1e3,nodeSize:50,nodeSpacing:50,unitRadius:200,preventOverlap:!1,strictRadial:!0,center:[0,0]}},dvn={type:"force",options:{collide:{radius:1,strength:1},manyBody:{strength:-50,distanceMax:1/0},x:{strength:.1,x:0},y:{strength:.1,y:0}},preset:{type:"concentric",options:{}}},j1i=dvn,V9e={force:dvn,concentric:lvn,fruchterman:F1i,"dagre-tb":cvn,"dagre-lr":uvn,radial:B1i},hvn=[[avn,"Default Layout","force","Physics-based layout with natural clustering"],[R1i,"Concentric Layout","concentric","Arrange nodes in concentric circles"],[I1i,"Force Based Layout","fruchterman","Force-directed layout algorithm"],[E1i,"Hierarchical TD Layout","dagre-tb","Top-to-bottom hierarchical tree"],[P1i,"Hierarchical LR Layout","dagre-lr","Left-to-right hierarchical tree"]];async function z1i(e,t,n,i){const{layout:r,scale:o}=tPt(e),{layout:s,scale:a}=e.preset!==void 0?tPt(e.preset):{layout:void 0,scale:void 0},l=n.map(d=>({id:d,data:t?.get(d)??{x:0,y:0}})),c=s===void 0||t!==void 0?l:await nPt({layout:s,scale:a,nodes:n.map(d=>({id:d,data:{x:0,y:0}})),edges:i}),u=await nPt({layout:r,scale:o,nodes:c,edges:i});return new Map(u.map(({id:d,data:h})=>[d,h]))}async function nPt({layout:e,scale:t,nodes:n,edges:i}){const r={nodes:n.map(({id:s,data:a})=>({id:s,x:a?a.x/t:0,y:a?a.y/t:0})),edges:i.map(s=>({id:s.id,source:s.src.id,target:s.dst.id}))};if(Ehe(e)){const{iterations:s=300}=e.options;e.execute(r),e.stop(),e.tick(s)}else await e.execute(r);const o=[];return e.forEachNode(s=>{const{x:a,y:l}=s;o.push({id:String(s.id),data:{x:isNaN(a)?0:a*t,y:isNaN(l)?0:l*t}})}),o}function V1i({graphPath:e,nodes:t,aliveEdges:n,layout:i,layoutWorker:r=!0}){const[o,s]=I.useState("fulfilled"),a=I.useRef(e),[l,c]=I.useState();I.useEffect(()=>{if(t.length===0&&l===void 0)return;s("pending");let d=!1;const h=[];let f=new Map;for(const{id:g,position:m}of t)h.push(g),m!==void 0&&f.set(g,m);return e?.fullPath===a.current?.fullPath&&l!==void 0&&(f=new Map(l)),(async()=>{let g;r?g=await H1i(i,f,h,n):g=await z1i(i,f,h,n),s("fulfilled"),!d&&(a.current=e,c(g))})(),()=>{d=!0}},[i,t,n,r]);const u=I.useCallback((d,h)=>{c(f=>(f?.set(d,h),f))},[]);return{nodePositions:l,status:o,updateNodePosition:u}}async function H1i(e,t,n,i){const r=new Worker(new URL(""+new URL("worker-BxOCMhZT.js",import.meta.url).href,import.meta.url),{type:"module"});return new Promise((o,s)=>{r.onmessage=({data:a})=>{if(a.type==="layout"){const l=Di.map(Di.string(),Di.object({x:Di.number(),y:Di.number()})).safeParse(a.data);l.success?o(l.data):s({message:"Incorrect format for message from layout worker",data:a})}else s({message:"Unknown message type received from layout worker",data:a})},r.postMessage({type:"layout",data:{layout:e,nodeIds:n,edges:i,nodePositions:t}})})}function Ku(e,t){if(!e)throw new Error(t??"some assertion failed")}function kQ(e){let t=0,n;for(n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t);let i="#";for(n=0;n<3;n+=1){const r=t>>n*8&255;i+=`00${r.toString(16)}`.slice(-2)}return i}var hb=class NA{#e;constructor(t){if(t.length===0)throw new Error("Path cannot be empty!");this.#e=t}static fromName(t,n){return n===void 0?new NA([t]):Array.isArray(n)?new NA([...n,t]):new NA([...n.split("/"),t])}static fromFullPath(t){if(!(t===void 0||t===""))return new NA(t.split("/"))}static zodSchema(){return Di.string().optional().transform(NA.fromFullPath)}static routerSchema(){return{serializeSearchParam:t=>t instanceof NA?t.fullPath:"",deserializeSearchParam:t=>{if(t.length>=1)return NA.zodSchema().parse(t[0])}}}get graphName(){return this.#e[this.#e.length-1]}get namespace(){if(!(this.#e.length<=1))return this.#e.slice(0,-1).join("/")}get fullPath(){return this.#e.join("/")}withGraph(t){return new NA([...this.#e.slice(0,-1),t])}};function lt(){return lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},lt.apply(null,arguments)}function zr(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function ZD(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>n.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${n} for the full message.`}var q_="$$material";function W1i(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function U1i(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var $1i=(function(){function e(n){var i=this;this._insertTag=function(r){var o;i.tags.length===0?i.insertionPoint?o=i.insertionPoint.nextSibling:i.prepend?o=i.container.firstChild:o=i.before:o=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(r,o),i.tags.push(r)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(U1i(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=W1i(r);try{o.insertRule(i,o.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var r;return(r=i.parentNode)==null?void 0:r.removeChild(i)}),this.tags=[],this.ctr=0},e})(),Ug="-ms-",Lhe="-moz-",jl="-webkit-",fvn="comm",GYe="rule",KYe="decl",q1i="@import",pvn="@keyframes",G1i="@layer",K1i=Math.abs,Zve=String.fromCharCode,Y1i=Object.assign;function Q1i(e,t){return ng(e,0)^45?(((t<<2^ng(e,0))<<2^ng(e,1))<<2^ng(e,2))<<2^ng(e,3):0}function gvn(e){return e.trim()}function Z1i(e,t){return(e=t.exec(e))?e[0]:e}function zl(e,t,n){return e.replace(t,n)}function H9e(e,t){return e.indexOf(t)}function ng(e,t){return e.charCodeAt(t)|0}function BG(e,t,n){return e.slice(t,n)}function nx(e){return e.length}function YYe(e){return e.length}function vie(e,t){return t.push(e),e}function X1i(e,t){return e.map(t).join("")}var Xve=1,k9=1,mvn=0,U0=0,rf=0,cj="";function Jve(e,t,n,i,r,o,s){return{value:e,root:t,parent:n,type:i,props:r,children:o,line:Xve,column:k9,length:s,return:""}}function F3(e,t){return Y1i(Jve("",null,null,"",null,null,0),e,{length:-e.length},t)}function J1i(){return rf}function eCi(){return rf=U0>0?ng(cj,--U0):0,k9--,rf===10&&(k9=1,Xve--),rf}function eb(){return rf=U0<mvn?ng(cj,U0++):0,k9++,rf===10&&(k9=1,Xve++),rf}function Ox(){return ng(cj,U0)}function lce(){return U0}function IQ(e,t){return BG(cj,e,t)}function jG(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function vvn(e){return Xve=k9=1,mvn=nx(cj=e),U0=0,[]}function yvn(e){return cj="",e}function cce(e){return gvn(IQ(U0-1,W9e(e===91?e+2:e===40?e+1:e)))}function tCi(e){for(;(rf=Ox())&&rf<33;)eb();return jG(e)>2||jG(rf)>3?"":" "}function nCi(e,t){for(;--t&&eb()&&!(rf<48||rf>102||rf>57&&rf<65||rf>70&&rf<97););return IQ(e,lce()+(t<6&&Ox()==32&&eb()==32))}function W9e(e){for(;eb();)switch(rf){case e:return U0;case 34:case 39:e!==34&&e!==39&&W9e(rf);break;case 40:e===41&&W9e(e);break;case 92:eb();break}return U0}function iCi(e,t){for(;eb()&&e+rf!==57;)if(e+rf===84&&Ox()===47)break;return"/*"+IQ(t,U0-1)+"*"+Zve(e===47?e:eb())}function rCi(e){for(;!jG(Ox());)eb();return IQ(e,U0)}function oCi(e){return yvn(uce("",null,null,null,[""],e=vvn(e),0,[0],e))}function uce(e,t,n,i,r,o,s,a,l){for(var c=0,u=0,d=s,h=0,f=0,p=0,g=1,m=1,v=1,y=0,b="",w=r,E=o,A=i,D=b;m;)switch(p=y,y=eb()){case 40:if(p!=108&&ng(D,d-1)==58){H9e(D+=zl(cce(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:D+=cce(y);break;case 9:case 10:case 13:case 32:D+=tCi(p);break;case 92:D+=nCi(lce()-1,7);continue;case 47:switch(Ox()){case 42:case 47:vie(sCi(iCi(eb(),lce()),t,n),l);break;default:D+="/"}break;case 123*g:a[c++]=nx(D)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:v==-1&&(D=zl(D,/\f/g,"")),f>0&&nx(D)-d&&vie(f>32?rPt(D+";",i,n,d-1):rPt(zl(D," ","")+";",i,n,d-2),l);break;case 59:D+=";";default:if(vie(A=iPt(D,t,n,c,u,r,a,b,w=[],E=[],d),o),y===123)if(u===0)uce(D,t,A,A,w,o,d,a,E);else switch(h===99&&ng(D,3)===110?100:h){case 100:case 108:case 109:case 115:uce(e,A,A,i&&vie(iPt(e,A,A,0,0,r,a,b,r,w=[],d),E),r,E,d,a,i?w:E);break;default:uce(D,A,A,A,[""],E,0,a,E)}}c=u=f=0,g=v=1,b=D="",d=s;break;case 58:d=1+nx(D),f=p;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&eCi()==125)continue}switch(D+=Zve(y),y*g){case 38:v=u>0?1:(D+="\f",-1);break;case 44:a[c++]=(nx(D)-1)*v,v=1;break;case 64:Ox()===45&&(D+=cce(eb())),h=Ox(),u=d=nx(b=D+=rCi(lce())),y++;break;case 45:p===45&&nx(D)==2&&(g=0)}}return o}function iPt(e,t,n,i,r,o,s,a,l,c,u){for(var d=r-1,h=r===0?o:[""],f=YYe(h),p=0,g=0,m=0;p<i;++p)for(var v=0,y=BG(e,d+1,d=K1i(g=s[p])),b=e;v<f;++v)(b=gvn(g>0?h[v]+" "+y:zl(y,/&\f/g,h[v])))&&(l[m++]=b);return Jve(e,t,n,r===0?GYe:a,l,c,u)}function sCi(e,t,n){return Jve(e,t,n,fvn,Zve(J1i()),BG(e,2,-2),0)}function rPt(e,t,n,i){return Jve(e,t,n,KYe,BG(e,0,i),BG(e,i+1,-1),i)}function v8(e,t){for(var n="",i=YYe(e),r=0;r<i;r++)n+=t(e[r],r,e,t)||"";return n}function aCi(e,t,n,i){switch(e.type){case G1i:if(e.children.length)break;case q1i:case KYe:return e.return=e.return||e.value;case fvn:return"";case pvn:return e.return=e.value+"{"+v8(e.children,i)+"}";case GYe:e.value=e.props.join(",")}return nx(n=v8(e.children,i))?e.return=e.value+"{"+n+"}":""}function lCi(e){var t=YYe(e);return function(n,i,r,o){for(var s="",a=0;a<t;a++)s+=e[a](n,i,r,o)||"";return s}}function cCi(e){return function(t){t.root||(t=t.return)&&e(t)}}lVe();var uCi=function(t,n,i){for(var r=0,o=0;r=o,o=Ox(),r===38&&o===12&&(n[i]=1),!jG(o);)eb();return IQ(t,U0)},dCi=function(t,n){var i=-1,r=44;do switch(jG(r)){case 0:r===38&&Ox()===12&&(n[i]=1),t[i]+=uCi(U0-1,n,i);break;case 2:t[i]+=cce(r);break;case 4:if(r===44){t[++i]=Ox()===58?"&\f":"",n[i]=t[i].length;break}default:t[i]+=Zve(r)}while(r=eb());return t},hCi=function(t,n){return yvn(dCi(vvn(t),n))},oPt=new WeakMap,fCi=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,i=t.parent,r=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!oPt.get(i))&&!r){oPt.set(t,!0);for(var o=[],s=hCi(n,o),a=i.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)t.props[c]=o[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},pCi=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function bvn(e,t){switch(Q1i(e,t)){case 5103:return jl+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return jl+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return jl+e+Lhe+e+Ug+e+e;case 6828:case 4268:return jl+e+Ug+e+e;case 6165:return jl+e+Ug+"flex-"+e+e;case 5187:return jl+e+zl(e,/(\w+).+(:[^]+)/,jl+"box-$1$2"+Ug+"flex-$1$2")+e;case 5443:return jl+e+Ug+"flex-item-"+zl(e,/flex-|-self/,"")+e;case 4675:return jl+e+Ug+"flex-line-pack"+zl(e,/align-content|flex-|-self/,"")+e;case 5548:return jl+e+Ug+zl(e,"shrink","negative")+e;case 5292:return jl+e+Ug+zl(e,"basis","preferred-size")+e;case 6060:return jl+"box-"+zl(e,"-grow","")+jl+e+Ug+zl(e,"grow","positive")+e;case 4554:return jl+zl(e,/([^-])(transform)/g,"$1"+jl+"$2")+e;case 6187:return zl(zl(zl(e,/(zoom-|grab)/,jl+"$1"),/(image-set)/,jl+"$1"),e,"")+e;case 5495:case 3959:return zl(e,/(image-set\([^]*)/,jl+"$1$`$1");case 4968:return zl(zl(e,/(.+:)(flex-)?(.*)/,jl+"box-pack:$3"+Ug+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+jl+e+e;case 4095:case 3583:case 4068:case 2532:return zl(e,/(.+)-inline(.+)/,jl+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(nx(e)-1-t>6)switch(ng(e,t+1)){case 109:if(ng(e,t+4)!==45)break;case 102:return zl(e,/(.+:)(.+)-([^]+)/,"$1"+jl+"$2-$3$1"+Lhe+(ng(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~H9e(e,"stretch")?bvn(zl(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ng(e,t+1)!==115)break;case 6444:switch(ng(e,nx(e)-3-(~H9e(e,"!important")&&10))){case 107:return zl(e,":",":"+jl)+e;case 101:return zl(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+jl+(ng(e,14)===45?"inline-":"")+"box$3$1"+jl+"$2$3$1"+Ug+"$2box$3")+e}break;case 5936:switch(ng(e,t+11)){case 114:return jl+e+Ug+zl(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return jl+e+Ug+zl(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return jl+e+Ug+zl(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return jl+e+Ug+e+e}return e}var gCi=function(t,n,i,r){if(t.length>-1&&!t.return)switch(t.type){case KYe:t.return=bvn(t.value,t.length);break;case pvn:return v8([F3(t,{value:zl(t.value,"@","@"+jl)})],r);case GYe:if(t.length)return X1i(t.props,function(o){switch(Z1i(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return v8([F3(t,{props:[zl(o,/:(read-\w+)/,":"+Lhe+"$1")]})],r);case"::placeholder":return v8([F3(t,{props:[zl(o,/:(plac\w+)/,":"+jl+"input-$1")]}),F3(t,{props:[zl(o,/:(plac\w+)/,":"+Lhe+"$1")]}),F3(t,{props:[zl(o,/:(plac\w+)/,Ug+"input-$1")]})],r)}return""})}},mCi=[gCi],vCi=function(t){var n=t.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(g){var m=g.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var r=t.stylisPlugins||mCi,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var m=g.getAttribute("data-emotion").split(" "),v=1;v<m.length;v++)o[m[v]]=!0;a.push(g)});var l,c=[fCi,pCi];{var u,d=[aCi,cCi(function(g){u.insert(g)})],h=lCi(c.concat(r,d)),f=function(m){return v8(oCi(m),h)};l=function(m,v,y,b){u=y,f(m?m+"{"+v.styles+"}":v.styles),b&&(p.inserted[v.name]=!0)}}var p={key:n,sheet:new $1i({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return p.sheet.hydrate(a),p},yCi=!0;function _vn(e,t,n){var i="";return n.split(" ").forEach(function(r){e[r]!==void 0?t.push(e[r]+";"):r&&(i+=r+" ")}),i}var QYe=function(t,n,i){var r=t.key+"-"+n.name;(i===!1||yCi===!1)&&t.registered[r]===void 0&&(t.registered[r]=n.styles)},ZYe=function(t,n,i){QYe(t,n,i);var r=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+r:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function bCi(e){for(var t=0,n,i=0,r=e.length;r>=4;++i,r-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var _Ci={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};lVe();var wCi=/[A-Z]|^ms/g,CCi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wvn=function(t){return t.charCodeAt(1)===45},sPt=function(t){return t!=null&&typeof t!="boolean"},zPe=V8t(function(e){return wvn(e)?e:e.replace(wCi,"-$&").toLowerCase()}),aPt=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(CCi,function(i,r,o){return ix={name:r,styles:o,next:ix},r})}return _Ci[t]!==1&&!wvn(t)&&typeof n=="number"&&n!==0?n+"px":n};function zG(e,t,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return ix={name:r.name,styles:r.styles,next:ix},r.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)ix={name:s.name,styles:s.styles,next:ix},s=s.next;var a=o.styles+";";return a}return SCi(e,t,n)}case"function":{if(e!==void 0){var l=ix,c=n(e);return ix=l,zG(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function SCi(e,t,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=zG(e,t,n[r])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var a=s;t!=null&&t[a]!==void 0?i+=o+"{"+t[a]+"}":sPt(a)&&(i+=zPe(o)+":"+aPt(o,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var l=0;l<s.length;l++)sPt(s[l])&&(i+=zPe(o)+":"+aPt(o,s[l])+";");else{var c=zG(e,t,s);switch(o){case"animation":case"animationName":{i+=zPe(o)+":"+c+";";break}default:i+=o+"{"+c+"}"}}}return i}var lPt=/label:\s*([^\s;{]+)\s*(;|$)/g,ix;function LQ(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,r="";ix=void 0;var o=e[0];if(o==null||o.raw===void 0)i=!1,r+=zG(n,t,o);else{var s=o;r+=s[0]}for(var a=1;a<e.length;a++)if(r+=zG(n,t,e[a]),i){var l=o;r+=l[a]}lPt.lastIndex=0;for(var c="",u;(u=lPt.exec(r))!==null;)c+="-"+u[1];var d=bCi(r)+c;return{name:d,styles:r,next:ix}}var xCi=function(t){return t()},Cvn=I.useInsertionEffect?I.useInsertionEffect:!1,Svn=Cvn||xCi,cPt=Cvn||I.useLayoutEffect,xvn=I.createContext(typeof HTMLElement<"u"?vCi({key:"css"}):null);xvn.Provider;var XYe=function(t){return I.forwardRef(function(n,i){var r=I.useContext(xvn);return t(n,r,i)})},NQ=I.createContext({}),JYe={}.hasOwnProperty,U9e="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ECi=function(t,n){var i={};for(var r in n)JYe.call(n,r)&&(i[r]=n[r]);return i[U9e]=t,i},ACi=function(t){var n=t.cache,i=t.serialized,r=t.isStringTag;return QYe(n,i,r),Svn(function(){return ZYe(n,i,r)}),null},DCi=XYe(function(e,t,n){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var r=e[U9e],o=[i],s="";typeof e.className=="string"?s=_vn(t.registered,o,e.className):e.className!=null&&(s=e.className+" ");var a=LQ(o,void 0,I.useContext(NQ));s+=t.key+"-"+a.name;var l={};for(var c in e)JYe.call(e,c)&&c!=="css"&&c!==U9e&&(l[c]=e[c]);return l.className=s,n&&(l.ref=n),I.createElement(I.Fragment,null,I.createElement(ACi,{cache:t,serialized:a,isStringTag:typeof r=="string"}),I.createElement(r,l))}),TCi=DCi;on(LMn());var uPt=function(t,n){var i=arguments;if(n==null||!JYe.call(n,"css"))return I.createElement.apply(void 0,i);var r=i.length,o=new Array(r);o[0]=TCi,o[1]=ECi(t,n);for(var s=2;s<r;s++)o[s]=i[s];return I.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(uPt||(uPt={}));var kCi=XYe(function(e,t){var n=e.styles,i=LQ([n],void 0,I.useContext(NQ)),r=I.useRef();return cPt(function(){var o=t.key+"-global",s=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+o+" "+i.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",o),s.hydrate([l])),r.current=[s,a],function(){s.flush()}},[t]),cPt(function(){var o=r.current,s=o[0],a=o[1];if(a){o[1]=!1;return}if(i.next!==void 0&&ZYe(t,i.next,!0),s.tags.length){var l=s.tags[s.tags.length-1].nextElementSibling;s.before=l,s.flush()}t.insert("",i,s,!1)},[t,i.name]),null});function QN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return LQ(t)}function Tw(){var e=QN.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}uVe();var ICi=cVe,LCi=function(t){return t!=="theme"},dPt=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?ICi:LCi},hPt=function(t,n,i){var r;if(n){var o=n.shouldForwardProp;r=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof r!="function"&&i&&(r=t.__emotion_forwardProp),r},NCi=function(t){var n=t.cache,i=t.serialized,r=t.isStringTag;return QYe(n,i,r),Svn(function(){return ZYe(n,i,r)}),null},PCi=function e(t,n){var i=t.__emotion_real===t,r=i&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var a=hPt(t,n,i),l=a||dPt(r),c=!l("as");return function(){var u=arguments,d=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var h=u[0];d.push(h[0]);for(var f=u.length,p=1;p<f;p++)d.push(u[p],h[p])}var g=XYe(function(m,v,y){var b=c&&m.as||r,w="",E=[],A=m;if(m.theme==null){A={};for(var D in m)A[D]=m[D];A.theme=I.useContext(NQ)}typeof m.className=="string"?w=_vn(v.registered,E,m.className):m.className!=null&&(w=m.className+" ");var T=LQ(d.concat(E),v.registered,A);w+=v.key+"-"+T.name,s!==void 0&&(w+=" "+s);var M=c&&a===void 0?dPt(b):l,P={};for(var F in m)c&&F==="as"||M(F)&&(P[F]=m[F]);return P.className=w,y&&(P.ref=y),I.createElement(I.Fragment,null,I.createElement(NCi,{cache:v,serialized:T,isStringTag:typeof b=="string"}),I.createElement(b,P))});return g.displayName=o!==void 0?o:"Styled("+(typeof r=="string"?r:r.displayName||r.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=r,g.__emotion_styles=d,g.__emotion_forwardProp=a,Object.defineProperty(g,"toString",{value:function(){return"."+s}}),g.withComponent=function(m,v){var y=e(m,lt({},n,v,{shouldForwardProp:hPt(g,v,!0)}));return y.apply(void 0,d)},g}};uVe();var MCi=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],$9e=PCi.bind(null);MCi.forEach(function(e){$9e[e]=$9e(e)});function OCi(e){return e==null||Object.keys(e).length===0}function Evn(e){const{styles:t,defaultTheme:n={}}=e,i=typeof t=="function"?r=>t(OCi(r)?n:r):t;return S.jsx(kCi,{styles:i})}function Avn(e,t){return $9e(e,t)}function RCi(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var fPt=[];function fL(e){return fPt[0]=e,LQ(fPt)}var Dvn=on(PMn());function ux(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Tvn(e){if(I.isValidElement(e)||(0,Dvn.isValidElementType)(e)||!ux(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Tvn(e[n])}),t}function Ep(e,t,n={clone:!0}){const i=n.clone?{...e}:e;return ux(e)&&ux(t)&&Object.keys(t).forEach(r=>{I.isValidElement(t[r])||(0,Dvn.isValidElementType)(t[r])?i[r]=t[r]:ux(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&ux(e[r])?i[r]=Ep(e[r],t[r],n):n.clone?i[r]=ux(t[r])?Tvn(t[r]):t[r]:i[r]=t[r]}),i}var FCi=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,i)=>n.val-i.val),t.reduce((n,i)=>({...n,[i.key]:i.val}),{})};function BCi(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5,...r}=e,o=FCi(t),s=Object.keys(o);function a(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-i/100}${n})`}function c(h,f){const p=s.indexOf(f);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(p!==-1&&typeof t[s[p]]=="number"?t[s[p]]:f)-i/100}${n})`}function u(h){return s.indexOf(h)+1<s.length?c(h,s[s.indexOf(h)+1]):a(h)}function d(h){const f=s.indexOf(h);return f===0?a(s[1]):f===s.length-1?l(s[f]):c(h,s[s.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:s,values:o,up:a,down:l,between:c,only:u,not:d,unit:n,...r}}function pPt(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,r)=>{const o=/min-width:\s*([0-9.]+)/;return+(i.match(o)?.[1]||0)-+(r.match(o)?.[1]||0)});return n.length?n.reduce((i,r)=>{const o=t[r];return delete i[r],i[r]=o,i},{...t}):t}function jCi(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function zCi(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,i,r]=n,o=Number.isNaN(+i)?i||0:+i;return e.containerQueries(r).up(o)}function VCi(e){const t=(o,s)=>o.replace("@media",s?`@container ${s}`:"@container");function n(o,s){o.up=(...a)=>t(e.breakpoints.up(...a),s),o.down=(...a)=>t(e.breakpoints.down(...a),s),o.between=(...a)=>t(e.breakpoints.between(...a),s),o.only=(...a)=>t(e.breakpoints.only(...a),s),o.not=(...a)=>{const l=t(e.breakpoints.not(...a),s);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const i={},r=o=>(n(i,o),i);return n(r),{...e,containerQueries:r}}var HCi={borderRadius:4},WCi=HCi;function UCi(e,t){return t?Ep(e,t,{clone:!1}):e}var $$=UCi,e0e={xs:0,sm:600,md:900,lg:1200,xl:1536},gPt={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${e0e[e]}px)`},$Ci={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:e0e[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function $0(e,t,n){const i=e.theme||{};if(Array.isArray(t)){const o=i.breakpoints||gPt;return t.reduce((s,a,l)=>(s[o.up(o.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const o=i.breakpoints||gPt;return Object.keys(t).reduce((s,a)=>{if(jCi(o.keys,a)){const l=zCi(i.containerQueries?i:$Ci,a);l&&(s[l]=n(t[a],a))}else if(Object.keys(o.values||e0e).includes(a)){const l=o.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function kvn(e={}){return e.keys?.reduce((n,i)=>{const r=e.up(i);return n[r]={},n},{})||{}}function q9e(e,t){return e.reduce((n,i)=>{const r=n[i];return(!r||Object.keys(r).length===0)&&delete n[i],n},t)}function qCi(e,...t){const n=kvn(e),i=[n,...t].reduce((r,o)=>Ep(r,o),{});return q9e(Object.keys(n),i)}function GCi(e,t){if(typeof e!="object")return{};const n={},i=Object.keys(t);return Array.isArray(e)?i.forEach((r,o)=>{o<e.length&&(n[r]=!0)}):i.forEach(r=>{e[r]!=null&&(n[r]=!0)}),n}function AR({values:e,breakpoints:t,base:n}){const i=n||GCi(e,t),r=Object.keys(i);if(r.length===0)return e;let o;return r.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[o],o=a):s[a]=e,s),{})}function PQ(e){if(typeof e!="string")throw new Error(ZD(7));return e.charAt(0).toUpperCase()+e.slice(1)}function $I(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const i=`vars.${t}`.split(".").reduce((r,o)=>r&&r[o]?r[o]:null,e);if(i!=null)return i}return t.split(".").reduce((i,r)=>i&&i[r]!=null?i[r]:null,e)}function Nhe(e,t,n,i=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||i:r=$I(e,n)||i,t&&(r=t(r,i,e)),r}function KCi(e){const{prop:t,cssProperty:n=e.prop,themeKey:i,transform:r}=e,o=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=$I(l,i)||{};return $0(s,a,d=>{let h=Nhe(c,r,d);return d===h&&typeof d=="string"&&(h=Nhe(c,r,`${t}${d==="default"?"":PQ(d)}`,d)),n===!1?h:{[n]:h}})};return o.propTypes={},o.filterProps=[t],o}var Nh=KCi;function YCi(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var QCi={m:"margin",p:"padding"},ZCi={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},mPt={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},XCi=YCi(e=>{if(e.length>2)if(mPt[e])e=mPt[e];else return[e];const[t,n]=e.split(""),i=QCi[t],r=ZCi[n]||"";return Array.isArray(r)?r.map(o=>i+o):[i+r]}),eQe=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],tQe=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...eQe,...tQe];function MQ(e,t,n,i){const r=$I(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?o=>typeof o=="string"?o:typeof r=="string"?`calc(${o} * ${r})`:r*o:Array.isArray(r)?o=>{if(typeof o=="string")return o;const s=Math.abs(o),a=r[s];return o>=0?a:typeof a=="number"?-a:`-${a}`}:typeof r=="function"?r:()=>{}}function t0e(e){return MQ(e,"spacing",8)}function w2(e,t){return typeof t=="string"||t==null?t:e(t)}function JCi(e,t){return n=>e.reduce((i,r)=>(i[r]=w2(t,n),i),{})}function eSi(e,t,n,i){if(!t.includes(n))return null;const r=XCi(n),o=JCi(r,i),s=e[n];return $0(e,s,o)}function Ivn(e,t){const n=t0e(e.theme);return Object.keys(e).map(i=>eSi(e,t,i,n)).reduce($$,{})}function kd(e){return Ivn(e,eQe)}kd.propTypes={};kd.filterProps=eQe;function Id(e){return Ivn(e,tQe)}Id.propTypes={};Id.filterProps=tQe;function Lvn(e=8,t=t0e({spacing:e})){if(e.mui)return e;const n=(...i)=>(i.length===0?[1]:i).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function tSi(...e){const t=e.reduce((i,r)=>(r.filterProps.forEach(o=>{i[o]=r}),i),{}),n=i=>Object.keys(i).reduce((r,o)=>t[o]?$$(r,t[o](i)):r,{});return n.propTypes={},n.filterProps=e.reduce((i,r)=>i.concat(r.filterProps),[]),n}var n0e=tSi;function E_(e){return typeof e!="number"?e:`${e}px solid`}function kw(e,t){return Nh({prop:e,themeKey:"borders",transform:t})}var nSi=kw("border",E_),iSi=kw("borderTop",E_),rSi=kw("borderRight",E_),oSi=kw("borderBottom",E_),sSi=kw("borderLeft",E_),aSi=kw("borderColor"),lSi=kw("borderTopColor"),cSi=kw("borderRightColor"),uSi=kw("borderBottomColor"),dSi=kw("borderLeftColor"),hSi=kw("outline",E_),fSi=kw("outlineColor"),i0e=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=MQ(e.theme,"shape.borderRadius",4),n=i=>({borderRadius:w2(t,i)});return $0(e,e.borderRadius,n)}return null};i0e.propTypes={};i0e.filterProps=["borderRadius"];n0e(nSi,iSi,rSi,oSi,sSi,aSi,lSi,cSi,uSi,dSi,i0e,hSi,fSi);var r0e=e=>{if(e.gap!==void 0&&e.gap!==null){const t=MQ(e.theme,"spacing",8),n=i=>({gap:w2(t,i)});return $0(e,e.gap,n)}return null};r0e.propTypes={};r0e.filterProps=["gap"];var o0e=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=MQ(e.theme,"spacing",8),n=i=>({columnGap:w2(t,i)});return $0(e,e.columnGap,n)}return null};o0e.propTypes={};o0e.filterProps=["columnGap"];var s0e=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=MQ(e.theme,"spacing",8),n=i=>({rowGap:w2(t,i)});return $0(e,e.rowGap,n)}return null};s0e.propTypes={};s0e.filterProps=["rowGap"];var pSi=Nh({prop:"gridColumn"}),gSi=Nh({prop:"gridRow"}),mSi=Nh({prop:"gridAutoFlow"}),vSi=Nh({prop:"gridAutoColumns"}),ySi=Nh({prop:"gridAutoRows"}),bSi=Nh({prop:"gridTemplateColumns"}),_Si=Nh({prop:"gridTemplateRows"}),wSi=Nh({prop:"gridTemplateAreas"}),CSi=Nh({prop:"gridArea"});n0e(r0e,o0e,s0e,pSi,gSi,mSi,vSi,ySi,bSi,_Si,wSi,CSi);function y8(e,t){return t==="grey"?t:e}var SSi=Nh({prop:"color",themeKey:"palette",transform:y8}),xSi=Nh({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:y8}),ESi=Nh({prop:"backgroundColor",themeKey:"palette",transform:y8});n0e(SSi,xSi,ESi);function jy(e){return e<=1&&e!==0?`${e*100}%`:e}var ASi=Nh({prop:"width",transform:jy}),nQe=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const i=e.theme?.breakpoints?.values?.[n]||e0e[n];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:jy(n)}};return $0(e,e.maxWidth,t)}return null};nQe.filterProps=["maxWidth"];var DSi=Nh({prop:"minWidth",transform:jy}),TSi=Nh({prop:"height",transform:jy}),kSi=Nh({prop:"maxHeight",transform:jy}),ISi=Nh({prop:"minHeight",transform:jy});Nh({prop:"size",cssProperty:"width",transform:jy});Nh({prop:"size",cssProperty:"height",transform:jy});var LSi=Nh({prop:"boxSizing"});n0e(ASi,nQe,DSi,TSi,kSi,ISi,LSi);var NSi={border:{themeKey:"borders",transform:E_},borderTop:{themeKey:"borders",transform:E_},borderRight:{themeKey:"borders",transform:E_},borderBottom:{themeKey:"borders",transform:E_},borderLeft:{themeKey:"borders",transform:E_},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:E_},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:i0e},color:{themeKey:"palette",transform:y8},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:y8},backgroundColor:{themeKey:"palette",transform:y8},p:{style:Id},pt:{style:Id},pr:{style:Id},pb:{style:Id},pl:{style:Id},px:{style:Id},py:{style:Id},padding:{style:Id},paddingTop:{style:Id},paddingRight:{style:Id},paddingBottom:{style:Id},paddingLeft:{style:Id},paddingX:{style:Id},paddingY:{style:Id},paddingInline:{style:Id},paddingInlineStart:{style:Id},paddingInlineEnd:{style:Id},paddingBlock:{style:Id},paddingBlockStart:{style:Id},paddingBlockEnd:{style:Id},m:{style:kd},mt:{style:kd},mr:{style:kd},mb:{style:kd},ml:{style:kd},mx:{style:kd},my:{style:kd},margin:{style:kd},marginTop:{style:kd},marginRight:{style:kd},marginBottom:{style:kd},marginLeft:{style:kd},marginX:{style:kd},marginY:{style:kd},marginInline:{style:kd},marginInlineStart:{style:kd},marginInlineEnd:{style:kd},marginBlock:{style:kd},marginBlockStart:{style:kd},marginBlockEnd:{style:kd},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:r0e},rowGap:{style:s0e},columnGap:{style:o0e},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:jy},maxWidth:{style:nQe},minWidth:{transform:jy},height:{transform:jy},maxHeight:{transform:jy},minHeight:{transform:jy},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},OQ=NSi;function PSi(...e){const t=e.reduce((i,r)=>i.concat(Object.keys(r)),[]),n=new Set(t);return e.every(i=>n.size===Object.keys(i).length)}function MSi(e,t){return typeof e=="function"?e(t):e}function OSi(){function e(n,i,r,o){const s={[n]:i,theme:r},a=o[n];if(!a)return{[n]:i};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=a;if(i==null)return null;if(c==="typography"&&i==="inherit")return{[n]:i};const h=$I(r,c)||{};return d?d(s):$0(s,i,p=>{let g=Nhe(h,u,p);return p===g&&typeof p=="string"&&(g=Nhe(h,u,`${n}${p==="default"?"":PQ(p)}`,p)),l===!1?g:{[l]:g}})}function t(n){const{sx:i,theme:r={},nested:o}=n||{};if(!i)return null;const s=r.unstable_sxConfig??OQ;function a(l){let c=l;if(typeof l=="function")c=l(r);else if(typeof l!="object")return l;if(!c)return null;const u=kvn(r.breakpoints),d=Object.keys(u);let h=u;return Object.keys(c).forEach(f=>{const p=MSi(c[f],r);if(p!=null)if(typeof p=="object")if(s[f])h=$$(h,e(f,p,r,s));else{const g=$0({theme:r},p,m=>({[f]:m}));PSi(g,p)?h[f]=t({sx:p,theme:r,nested:!0}):h=$$(h,g)}else h=$$(h,e(f,p,r,s))}),!o&&r.modularCssLayers?{"@layer sx":pPt(r,q9e(d,h))}:pPt(r,q9e(d,h))}return Array.isArray(i)?i.map(a):a(i)}return t}var Nvn=OSi();Nvn.filterProps=["sx"];var C2=Nvn;function RSi(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let i=n.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return n.palette.mode===e?t:{}}function FSi(e={},...t){const{breakpoints:n={},palette:i={},spacing:r,shape:o={},...s}=e,a=BCi(n),l=Lvn(r);let c=Ep({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:l,shape:{...WCi,...o}},s);return c=VCi(c),c.applyStyles=RSi,c=t.reduce((u,d)=>Ep(u,d),c),c.unstable_sxConfig={...OQ,...s?.unstable_sxConfig},c.unstable_sx=function(d){return C2({sx:d,theme:this})},c}var RQ=FSi;function BSi(e){return Object.keys(e).length===0}function jSi(e=null){const t=I.useContext(NQ);return!t||BSi(t)?e:t}var a0e=jSi,zSi=RQ();function VSi(e=zSi){return a0e(e)}var l0e=VSi;function VPe(e){const t=fL(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function HSi({styles:e,themeId:t,defaultTheme:n={}}){const i=l0e(n),r=t&&i[t]||i;let o=typeof e=="function"?e(r):e;return r.modularCssLayers&&(Array.isArray(o)?o=o.map(s=>VPe(typeof s=="function"?s(r):s)):o=VPe(o)),S.jsx(Evn,{styles:o})}var Pvn=HSi,WSi=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??OQ;return Object.keys(e).forEach(i=>{n[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function c0e(e){const{sx:t,...n}=e,{systemProps:i,otherProps:r}=WSi(n);let o;return Array.isArray(t)?o=[i,...t]:typeof t=="function"?o=(...s)=>{const a=t(...s);return ux(a)?{...i,...a}:i}:o={...i,...t},{...r,sx:o}}var vPt=e=>e,USi=()=>{let e=vPt;return{configure(t){e=t},generate(t){return e(t)},reset(){e=vPt}}},$Si=USi(),Mvn=$Si;function qSi(e={}){const{themeId:t,defaultTheme:n,defaultClassName:i="MuiBox-root",generateClassName:r}=e,o=Avn("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(C2);return I.forwardRef(function(l,c){const u=l0e(n),{className:d,component:h="div",...f}=c0e(l);return S.jsx(o,{as:h,ref:c,className:Nn(d,r?r(i):i),theme:t&&u[t]||u,...f})})}var GSi={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function kr(e,t,n="Mui"){const i=GSi[t];return i?`${n}-${i}`:`${Mvn.generate(e)}-${t}`}function Ir(e,t,n="Mui"){const i={};return t.forEach(r=>{i[r]=kr(e,r,n)}),i}function Ovn(e){const{variants:t,...n}=e,i={variants:t,style:fL(n),isProcessed:!0};return i.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=fL(r.style))}),i}var KSi=RQ();function dce(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function KO(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function YSi(e){return e?(t,n)=>n[e]:null}function QSi(e,t,n){e.theme=XSi(e.theme)?n:e.theme[t]||e.theme}function hce(e,t,n){const i=typeof t=="function"?t(e):t;if(Array.isArray(i))return i.flatMap(r=>hce(e,r,n));if(Array.isArray(i?.variants)){let r;if(i.isProcessed)r=n?KO(i.style,n):i.style;else{const{variants:o,...s}=i;r=n?KO(fL(s),n):s}return Rvn(e,i.variants,[r],n)}return i?.isProcessed?n?KO(fL(i.style),n):i.style:n?KO(fL(i),n):i}function Rvn(e,t,n=[],i=void 0){let r;e:for(let o=0;o<t.length;o+=1){const s=t[o];if(typeof s.props=="function"){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(r))continue}else for(const a in s.props)if(e[a]!==s.props[a]&&e.ownerState?.[a]!==s.props[a])continue e;typeof s.style=="function"?(r??={...e,...e.ownerState,ownerState:e.ownerState},n.push(i?KO(fL(s.style(r)),i):s.style(r))):n.push(i?KO(fL(s.style),i):s.style)}return n}function Fvn(e={}){const{themeId:t,defaultTheme:n=KSi,rootShouldForwardProp:i=dce,slotShouldForwardProp:r=dce}=e;function o(a){QSi(a,t,n)}return(a,l={})=>{RCi(a,A=>A.filter(D=>D!==C2));const{name:c,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:f=YSi(exi(u)),...p}=l,g=c&&c.startsWith("Mui")||u?"components":"custom",m=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,v=h||!1;let y=dce;u==="Root"||u==="root"?y=i:u?y=r:JSi(a)&&(y=void 0);const b=Avn(a,{shouldForwardProp:y,label:ZSi(),...p}),w=A=>{if(A.__emotion_real===A)return A;if(typeof A=="function")return function(T){return hce(T,A,T.theme.modularCssLayers?g:void 0)};if(ux(A)){const D=Ovn(A);return function(M){return D.variants?hce(M,D,M.theme.modularCssLayers?g:void 0):M.theme.modularCssLayers?KO(D.style,g):D.style}}return A},E=(...A)=>{const D=[],T=A.map(w),M=[];if(D.push(o),c&&f&&M.push(function(j){const J=j.theme.components?.[c]?.styleOverrides;if(!J)return null;const ee={};for(const Q in J)ee[Q]=hce(j,J[Q],j.theme.modularCssLayers?"theme":void 0);return f(j,ee)}),c&&!m&&M.push(function(j){const J=j.theme?.components?.[c]?.variants;return J?Rvn(j,J,[],j.theme.modularCssLayers?"theme":void 0):null}),v||M.push(C2),Array.isArray(T[0])){const N=T.shift(),j=new Array(D.length).fill(""),W=new Array(M.length).fill("");let J;J=[...j,...N,...W],J.raw=[...j,...N.raw,...W],D.unshift(J)}const P=[...D,...T,...M],F=b(...P);return a.muiName&&(F.muiName=a.muiName),F};return b.withConfig&&(E.withConfig=b.withConfig),E}}function ZSi(e,t){return void 0}function XSi(e){for(const t in e)return!1;return!0}function JSi(e){return typeof e=="string"&&e.charCodeAt(0)>96}function exi(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}var txi=Fvn(),Bvn=txi;function I9(e,t){const n={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const r=i;if(r==="components"||r==="slots")n[r]={...e[r],...n[r]};else if(r==="componentsProps"||r==="slotProps"){const o=e[r],s=t[r];if(!s)n[r]=o||{};else if(!o)n[r]=s;else{n[r]={...s};for(const a in o)if(Object.prototype.hasOwnProperty.call(o,a)){const l=a;n[r][l]=I9(o[l],s[l])}}}else n[r]===void 0&&(n[r]=e[r])}return n}function jvn(e){const{theme:t,name:n,props:i}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?i:I9(t.components[n].defaultProps,i)}function iQe({props:e,name:t,defaultTheme:n,themeId:i}){let r=l0e(n);return i&&(r=r[i]||r),jvn({theme:r,name:t,props:e})}var nxi=typeof window<"u"?I.useLayoutEffect:I.useEffect,sw=nxi;function ixi(e,t,n,i,r){const[o,s]=I.useState(()=>r&&n?n(e).matches:i?i(e).matches:t);return sw(()=>{if(!n)return;const a=n(e),l=()=>{s(a.matches)};return l(),a.addEventListener("change",l),()=>{a.removeEventListener("change",l)}},[e,n]),o}var rxi={...cT},zvn=rxi.useSyncExternalStore;function oxi(e,t,n,i,r){const o=I.useCallback(()=>t,[t]),s=I.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(i!==null){const{matches:u}=i(e);return()=>u}return o},[o,e,i,r,n]),[a,l]=I.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const u=n(e);return[()=>u.matches,d=>(u.addEventListener("change",d),()=>{u.removeEventListener("change",d)})]},[o,n,e]);return zvn(l,a,s)}function Vvn(e={}){const{themeId:t}=e;return function(i,r={}){let o=a0e();o&&t&&(o=o[t]||o);const s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:l=s?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:u=!1}=jvn({name:"MuiUseMediaQuery",props:r,theme:o});let d=typeof i=="function"?i(o):i;return d=d.replace(/^@media( ?)/m,""),d.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
`)),(zvn!==void 0?oxi:ixi)(d,a,l,c,u)}}Vvn();function sxi(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var $B=sxi;function rQe(e,t=0,n=1){return $B(e,t,n)}function axi(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(i=>i+i)),n?`rgb${n.length===4?"a":""}(${n.map((i,r)=>r<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function ZL(e){if(e.type)return e;if(e.charAt(0)==="#")return ZL(axi(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(ZD(9,e));let i=e.substring(t+1,e.length-1),r;if(n==="color"){if(i=i.split(" "),r=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(ZD(10,r))}else i=i.split(",");return i=i.map(o=>parseFloat(o)),{type:n,values:i,colorSpace:r}}var lxi=e=>{const t=ZL(e);return t.values.slice(0,3).map((n,i)=>t.type.includes("hsl")&&i!==0?`${n}%`:n).join(" ")},ZW=(e,t)=>{try{return lxi(e)}catch{return e}};function u0e(e){const{type:t,colorSpace:n}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((r,o)=>o<3?parseInt(r,10):r):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${n} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function Hvn(e){e=ZL(e);const{values:t}=e,n=t[0],i=t[1]/100,r=t[2]/100,o=i*Math.min(r,1-r),s=(c,u=(c+n/30)%12)=>r-o*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),u0e({type:a,values:l})}function G9e(e){e=ZL(e);let t=e.type==="hsl"||e.type==="hsla"?ZL(Hvn(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function cxi(e,t){const n=G9e(e),i=G9e(t);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}function pr(e,t){return e=ZL(e),t=rQe(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,u0e(e)}function yie(e,t,n){try{return pr(e,t)}catch{return e}}function fb(e,t){if(e=ZL(e),t=rQe(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return u0e(e)}function Yc(e,t,n){try{return fb(e,t)}catch{return e}}function P0(e,t){if(e=ZL(e),t=rQe(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return u0e(e)}function Qc(e,t,n){try{return P0(e,t)}catch{return e}}function K9e(e,t=.15){return G9e(e)>.5?fb(e,t):P0(e,t)}function bie(e,t,n){try{return K9e(e,t)}catch{return e}}function Y9e(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function Wvn(e,t=166){let n;function i(...r){const o=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(o,t)}return i.clear=()=>{clearTimeout(n)},i}function uxi(e,t){return I.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function gg(e){return e&&e.ownerDocument||document}function S2(e){return gg(e).defaultView||window}function Q9e(e,t){typeof e=="function"?e(t):e&&(e.current=t)}var yPt=0;function dxi(e){const[t,n]=I.useState(e),i=e||t;return I.useEffect(()=>{t==null&&(yPt+=1,n(`mui-${yPt}`))},[t]),i}var hxi={...cT},bPt=hxi.useId;function uj(e){if(bPt!==void 0){const t=bPt();return e??t}return dxi(e)}function b8({controlled:e,default:t,name:n,state:i="value"}){const{current:r}=I.useRef(e!==void 0),[o,s]=I.useState(t),a=r?e:o,l=I.useCallback(c=>{r||s(c)},[]);return[a,l]}function fxi(e){const t=I.useRef(e);return sw(()=>{t.current=e}),I.useRef((...n)=>(0,t.current)(...n)).current}var F_=fxi;function LC(...e){const t=I.useRef(void 0),n=I.useCallback(i=>{const r=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const s=o,a=s(i);return typeof a=="function"?a:()=>{s(null)}}return o.current=i,()=>{o.current=null}});return()=>{r.forEach(o=>o?.())}},e);return I.useMemo(()=>e.every(i=>i==null)?null:i=>{t.current&&(t.current(),t.current=void 0),i!=null&&(t.current=n(i))},e)}var _Pt={};function Uvn(e,t){const n=I.useRef(_Pt);return n.current===_Pt&&(n.current=e(t)),n}var pxi=[];function gxi(e){I.useEffect(e,pxi)}var $vn=class qvn{static create(){return new qvn}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function YO(){const e=Uvn($vn.create).current;return gxi(e.disposeEffect),e}function XL(e){try{return e.matches(":focus-visible")}catch{}return!1}function Gvn(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}var mxi=e=>{const t=I.useRef({});return I.useEffect(()=>{t.current=e}),t.current},oQe=mxi;function Kvn(e){return I.Children.toArray(e).filter(t=>I.isValidElement(t))}var vxi={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},yxi=vxi;function Lr(e,t,n=void 0){const i={};for(const r in e){const o=e[r];let s="",a=!0;for(let l=0;l<o.length;l+=1){const c=o[l];c&&(s+=(a===!0?"":" ")+t(c),a=!1,n&&n[c]&&(s+=" "+n[c]))}i[r]=s}return i}function bxi(e){return typeof e=="string"}var _xi=bxi;function wxi(e,t,n){return e===void 0||_xi(e)?t:{...t,ownerState:{...t.ownerState,...n}}}var Yvn=wxi;function Cxi(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{n[i]=e[i]}),n}var q$=Cxi;function Sxi(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}var wPt=Sxi;function xxi(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:r,className:o}=e;if(!t){const f=Nn(n?.className,o,r?.className,i?.className),p={...n?.style,...r?.style,...i?.style},g={...n,...r,...i};return f.length>0&&(g.className=f),Object.keys(p).length>0&&(g.style=p),{props:g,internalRef:void 0}}const s=q$({...r,...i}),a=wPt(i),l=wPt(r),c=t(s),u=Nn(c?.className,n?.className,o,r?.className,i?.className),d={...c?.style,...n?.style,...r?.style,...i?.style},h={...c,...n,...l,...a};return u.length>0&&(h.className=u),Object.keys(d).length>0&&(h.style=d),{props:h,internalRef:c.ref}}var Qvn=xxi;function Exi(e,t,n){return typeof e=="function"?e(t,n):e}var Zvn=Exi;function Axi(e){const{elementType:t,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:r=!1,...o}=e,s=r?{}:Zvn(n,i),{props:a,internalRef:l}=Qvn({...o,externalSlotProps:s}),c=LC(l,s?.ref,e.additionalProps?.ref);return Yvn(t,{...a,ref:c},i)}var Xm=Axi;function DF(e){return parseInt(I.version,10)>=19?e?.props?.ref||null:e?.ref||null}var Dxi=I.createContext(null),Xvn=Dxi;function sQe(){return I.useContext(Xvn)}var Txi=typeof Symbol=="function"&&Symbol.for,kxi=Txi?Symbol.for("mui.nested"):"__THEME_NESTED__";function Ixi(e,t){return typeof t=="function"?t(e):{...e,...t}}function Lxi(e){const{children:t,theme:n}=e,i=sQe(),r=I.useMemo(()=>{const o=i===null?{...n}:Ixi(i,n);return o!=null&&(o[kxi]=i!==null),o},[n,i]);return S.jsx(Xvn.Provider,{value:r,children:t})}var Nxi=Lxi,Jvn=I.createContext();function Pxi({value:e,...t}){return S.jsx(Jvn.Provider,{value:e??!0,...t})}var Ph=()=>I.useContext(Jvn)??!1,Mxi=Pxi,e0n=I.createContext(void 0);function Oxi({value:e,children:t}){return S.jsx(e0n.Provider,{value:e,children:t})}function Rxi(e){const{theme:t,name:n,props:i}=e;if(!t||!t.components||!t.components[n])return i;const r=t.components[n];return r.defaultProps?I9(r.defaultProps,i):!r.styleOverrides&&!r.variants?I9(r,i):i}function Fxi({props:e,name:t}){const n=I.useContext(e0n);return Rxi({props:e,name:t,theme:{components:n}})}var Bxi=Oxi;function jxi(e){const t=a0e(),n=uj()||"",{modularCssLayers:i}=e;let r="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!i||t!==null?r="":typeof i=="string"?r=i.replace(/mui(?!\.)/g,r):r=`@layer ${r};`,sw(()=>{const o=document.querySelector("head");if(!o)return;const s=o.firstChild;if(r){if(s&&s.hasAttribute?.("data-mui-layer-order")&&s.getAttribute("data-mui-layer-order")===n)return;const a=document.createElement("style");a.setAttribute("data-mui-layer-order",n),a.textContent=r,o.prepend(a)}else o.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[r,n]),r?S.jsx(Pvn,{styles:r}):null}var CPt={};function SPt(e,t,n,i=!1){return I.useMemo(()=>{const r=e&&t[e]||t;if(typeof n=="function"){const o=n(r),s=e?{...t,[e]:o}:o;return i?()=>s:s}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,i])}function zxi(e){const{children:t,theme:n,themeId:i}=e,r=a0e(CPt),o=sQe()||CPt,s=SPt(i,r,n),a=SPt(i,o,n,!0),l=(i?s[i]:s).direction==="rtl",c=jxi(s);return S.jsx(Nxi,{theme:a,children:S.jsx(NQ.Provider,{value:s,children:S.jsx(Mxi,{value:l,children:S.jsxs(Bxi,{value:i?s[i].components:s.components,children:[c,t]})})})})}var t0n=zxi,xPt={theme:void 0};function Vxi(e){let t,n;return function(r){let o=t;return(o===void 0||r.theme!==n)&&(xPt.theme=r.theme,o=Ovn(e(xPt)),t=o,n=r.theme),o}}var aQe="mode",lQe="color-scheme",Hxi="data-color-scheme";function Wxi(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:i="dark",modeStorageKey:r=aQe,colorSchemeStorageKey:o=lQe,attribute:s=Hxi,colorSchemeNode:a="document.documentElement",nonce:l}=e||{};let c="",u=s;if(s==="class"&&(u=".%s"),s==="data"&&(u="[data-%s]"),u.startsWith(".")){const h=u.substring(1);c+=`${a}.classList.remove('${h}'.replace('%s', light), '${h}'.replace('%s', dark));
      ${a}.classList.add('${h}'.replace('%s', colorScheme));`}const d=u.match(/\[([^\]]+)\]/);if(d){const[h,f]=d[1].split("=");f||(c+=`${a}.removeAttribute('${h}'.replace('%s', light));
      ${a}.removeAttribute('${h}'.replace('%s', dark));`),c+=`
      ${a}.setAttribute('${h}'.replace('%s', colorScheme), ${f?`${f}.replace('%s', colorScheme)`:'""'});`}else c+=`${a}.setAttribute('${u}', colorScheme);`;return S.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() {
try {
  let colorScheme = '';
  const mode = localStorage.getItem('${r}') || '${t}';
  const dark = localStorage.getItem('${o}-dark') || '${i}';
  const light = localStorage.getItem('${o}-light') || '${n}';
  if (mode === 'system') {
    // handle system mode
    const mql = window.matchMedia('(prefers-color-scheme: dark)');
    if (mql.matches) {
      colorScheme = dark
    } else {
      colorScheme = light
    }
  }
  if (mode === 'light') {
    colorScheme = light;
  }
  if (mode === 'dark') {
    colorScheme = dark;
  }
  if (colorScheme) {
    ${c}
  }
} catch(e){}})();`}},"mui-color-scheme-init")}function Uxi(){}var $xi=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let i;try{i=t.localStorage.getItem(e)}catch{}return i||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return Uxi;const i=r=>{const o=r.newValue;r.key===e&&n(o)};return t.addEventListener("storage",i),()=>{t.removeEventListener("storage",i)}}}),qxi=$xi;function HPe(){}function EPt(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function n0n(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function Gxi(e){return n0n(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function Kxi(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:i,supportedColorSchemes:r=[],modeStorageKey:o=aQe,colorSchemeStorageKey:s=lQe,storageWindow:a=typeof window>"u"?void 0:window,storageManager:l=qxi,noSsr:c=!1}=e,u=r.join(","),d=r.length>1,h=I.useMemo(()=>l?.({key:o,storageWindow:a}),[l,o,a]),f=I.useMemo(()=>l?.({key:`${s}-light`,storageWindow:a}),[l,s,a]),p=I.useMemo(()=>l?.({key:`${s}-dark`,storageWindow:a}),[l,s,a]),[g,m]=I.useState(()=>{const T=h?.get(t)||t,M=f?.get(n)||n,P=p?.get(i)||i;return{mode:T,systemMode:EPt(T),lightColorScheme:M,darkColorScheme:P}}),[v,y]=I.useState(c||!d);I.useEffect(()=>{y(!0)},[]);const b=Gxi(g),w=I.useCallback(T=>{m(M=>{if(T===M.mode)return M;const P=T??t;return h?.set(P),{...M,mode:P,systemMode:EPt(P)}})},[h,t]),E=I.useCallback(T=>{T?typeof T=="string"?T&&!u.includes(T)?console.error(`\`${T}\` does not exist in \`theme.colorSchemes\`.`):m(M=>{const P={...M};return n0n(M,F=>{F==="light"&&(f?.set(T),P.lightColorScheme=T),F==="dark"&&(p?.set(T),P.darkColorScheme=T)}),P}):m(M=>{const P={...M},F=T.light===null?n:T.light,N=T.dark===null?i:T.dark;return F&&(u.includes(F)?(P.lightColorScheme=F,f?.set(F)):console.error(`\`${F}\` does not exist in \`theme.colorSchemes\`.`)),N&&(u.includes(N)?(P.darkColorScheme=N,p?.set(N)):console.error(`\`${N}\` does not exist in \`theme.colorSchemes\`.`)),P}):m(M=>(f?.set(n),p?.set(i),{...M,lightColorScheme:n,darkColorScheme:i}))},[u,f,p,n,i]),A=I.useCallback(T=>{g.mode==="system"&&m(M=>{const P=T?.matches?"dark":"light";return M.systemMode===P?M:{...M,systemMode:P}})},[g.mode]),D=I.useRef(A);return D.current=A,I.useEffect(()=>{if(typeof window.matchMedia!="function"||!d)return;const T=(...P)=>D.current(...P),M=window.matchMedia("(prefers-color-scheme: dark)");return M.addListener(T),T(M),()=>{M.removeListener(T)}},[d]),I.useEffect(()=>{if(d){const T=h?.subscribe(F=>{(!F||["light","dark","system"].includes(F))&&w(F||t)})||HPe,M=f?.subscribe(F=>{(!F||u.match(F))&&E({light:F})})||HPe,P=p?.subscribe(F=>{(!F||u.match(F))&&E({dark:F})})||HPe;return()=>{T(),M(),P()}}},[E,w,u,t,a,d,h,f,p]),{...g,mode:v?g.mode:void 0,systemMode:v?g.systemMode:void 0,colorScheme:v?b:void 0,setMode:w,setColorScheme:E}}var Yxi="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Qxi(e){const{themeId:t,theme:n={},modeStorageKey:i=aQe,colorSchemeStorageKey:r=lQe,disableTransitionOnChange:o=!1,defaultColorScheme:s,resolveTheme:a}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=I.createContext(void 0),u=()=>I.useContext(c)||l,d={},h={};function f(v){const{children:y,theme:b,modeStorageKey:w=i,colorSchemeStorageKey:E=r,disableTransitionOnChange:A=o,storageManager:D,storageWindow:T=typeof window>"u"?void 0:window,documentNode:M=typeof document>"u"?void 0:document,colorSchemeNode:P=typeof document>"u"?void 0:document.documentElement,disableNestedContext:F=!1,disableStyleSheetGeneration:N=!1,defaultMode:j="system",noSsr:W}=v,J=I.useRef(!1),ee=sQe(),Q=I.useContext(c),H=!!Q&&!F,q=I.useMemo(()=>b||(typeof n=="function"?n():n),[b]),le=q[t],Y=le||q,{colorSchemes:G=d,components:pe=h,cssVarPrefix:U}=Y,K=Object.keys(G).filter(ct=>!!G[ct]).join(","),ie=I.useMemo(()=>K.split(","),[K]),ce=typeof s=="string"?s:s.light,de=typeof s=="string"?s:s.dark,oe=G[ce]&&G[de]?j:G[Y.defaultColorScheme]?.palette?.mode||Y.palette?.mode,{mode:me,setMode:Ce,systemMode:Se,lightColorScheme:De,darkColorScheme:Me,colorScheme:qe,setColorScheme:$}=Kxi({supportedColorSchemes:ie,defaultLightColorScheme:ce,defaultDarkColorScheme:de,modeStorageKey:w,colorSchemeStorageKey:E,defaultMode:oe,storageManager:D,storageWindow:T,noSsr:W});let he=me,Ie=qe;H&&(he=Q.mode,Ie=Q.colorScheme);const Be=I.useMemo(()=>{const ct=Ie||Y.defaultColorScheme,et=Y.generateThemeVars?.()||Y.vars,ut={...Y,components:pe,colorSchemes:G,cssVarPrefix:U,vars:et};if(typeof ut.generateSpacing=="function"&&(ut.spacing=ut.generateSpacing()),ct){const wt=G[ct];wt&&typeof wt=="object"&&Object.keys(wt).forEach(pt=>{wt[pt]&&typeof wt[pt]=="object"?ut[pt]={...ut[pt],...wt[pt]}:ut[pt]=wt[pt]})}return a?a(ut):ut},[Y,Ie,pe,G,U]),ze=Y.colorSchemeSelector;sw(()=>{if(Ie&&P&&ze&&ze!=="media"){const ct=ze;let et=ze;if(ct==="class"&&(et=".%s"),ct==="data"&&(et="[data-%s]"),ct?.startsWith("data-")&&!ct.includes("%s")&&(et=`[${ct}="%s"]`),et.startsWith("."))P.classList.remove(...ie.map(ut=>et.substring(1).replace("%s",ut))),P.classList.add(et.substring(1).replace("%s",Ie));else{const ut=et.replace("%s",Ie).match(/\[([^\]]+)\]/);if(ut){const[wt,pt]=ut[1].split("=");pt||ie.forEach(_t=>{P.removeAttribute(wt.replace(Ie,_t))}),P.setAttribute(wt,pt?pt.replace(/"|'/g,""):"")}else P.setAttribute(et,Ie)}}},[Ie,ze,P,ie]),I.useEffect(()=>{let ct;if(A&&J.current&&M){const et=M.createElement("style");et.appendChild(M.createTextNode(Yxi)),M.head.appendChild(et),window.getComputedStyle(M.body),ct=setTimeout(()=>{M.head.removeChild(et)},1)}return()=>{clearTimeout(ct)}},[Ie,A,M]),I.useEffect(()=>(J.current=!0,()=>{J.current=!1}),[]);const Ye=I.useMemo(()=>({allColorSchemes:ie,colorScheme:Ie,darkColorScheme:Me,lightColorScheme:De,mode:he,setColorScheme:$,setMode:Ce,systemMode:Se}),[ie,Ie,Me,De,he,$,Ce,Se,Be.colorSchemeSelector]);let it=!0;(N||Y.cssVariables===!1||H&&ee?.cssVarPrefix===U)&&(it=!1);const ft=S.jsxs(I.Fragment,{children:[S.jsx(t0n,{themeId:le?t:void 0,theme:Be,children:y}),it&&S.jsx(Evn,{styles:Be.generateStyleSheets?.()||[]})]});return H?ft:S.jsx(c.Provider,{value:Ye,children:ft})}const p=typeof s=="string"?s:s.light,g=typeof s=="string"?s:s.dark;return{CssVarsProvider:f,useColorScheme:u,getInitColorSchemeScript:v=>Wxi({colorSchemeStorageKey:r,defaultLightColorScheme:p,defaultDarkColorScheme:g,modeStorageKey:i,...v})}}function Zxi(e=""){function t(...i){if(!i.length)return"";const r=i[0];return typeof r=="string"&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${r}${t(...i.slice(1))})`:`, ${r}`}return(i,...r)=>`var(--${e?`${e}-`:""}${i}${t(...r)})`}var APt=(e,t,n,i=[])=>{let r=e;t.forEach((o,s)=>{s===t.length-1?Array.isArray(r)?r[Number(o)]=n:r&&typeof r=="object"&&(r[o]=n):r&&typeof r=="object"&&(r[o]||(r[o]=i.includes(o)?[]:{}),r=r[o])})},Xxi=(e,t,n)=>{function i(r,o=[],s=[]){Object.entries(r).forEach(([a,l])=>{(!n||n&&!n([...o,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?i(l,[...o,a],Array.isArray(l)?[...s,a]:s):t([...o,a],l,s))})}i(e)},Jxi=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function WPe(e,t){const{prefix:n,shouldSkipGeneratingVar:i}=t||{},r={},o={},s={};return Xxi(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!i||!i(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,d=Jxi(a,l);Object.assign(r,{[u]:d}),APt(o,a,`var(${u})`,c),APt(s,a,`var(${u}, ${d})`,c)}},a=>a[0]==="vars"),{css:r,vars:o,varsWithDefaults:s}}function eEi(e,t={}){const{getSelector:n=m,disableCssColorScheme:i,colorSchemeSelector:r}=t,{colorSchemes:o={},components:s,defaultColorScheme:a="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=WPe(l,t);let h=d;const f={},{[a]:p,...g}=o;if(Object.entries(g||{}).forEach(([b,w])=>{const{vars:E,css:A,varsWithDefaults:D}=WPe(w,t);h=Ep(h,D),f[b]={css:A,vars:E}}),p){const{css:b,vars:w,varsWithDefaults:E}=WPe(p,t);h=Ep(h,E),f[a]={css:b,vars:w}}function m(b,w){let E=r;if(r==="class"&&(E=".%s"),r==="data"&&(E="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(E=`[${r}="%s"]`),b){if(E==="media")return e.defaultColorScheme===b?":root":{[`@media (prefers-color-scheme: ${o[b]?.palette?.mode||b})`]:{":root":w}};if(E)return e.defaultColorScheme===b?`:root, ${E.replace("%s",String(b))}`:E.replace("%s",String(b))}return":root"}return{vars:h,generateThemeVars:()=>{let b={...c};return Object.entries(f).forEach(([,{vars:w}])=>{b=Ep(b,w)}),b},generateStyleSheets:()=>{const b=[],w=e.defaultColorScheme||"light";function E(T,M){Object.keys(M).length&&b.push(typeof T=="string"?{[T]:{...M}}:T)}E(n(void 0,{...u}),u);const{[w]:A,...D}=f;if(A){const{css:T}=A,M=o[w]?.palette?.mode,P=!i&&M?{colorScheme:M,...T}:{...T};E(n(w,{...P}),P)}return Object.entries(D).forEach(([T,{css:M}])=>{const P=o[T]?.palette?.mode,F=!i&&P?{colorScheme:P,...M}:{...M};E(n(T,{...F}),F)}),b}}}var tEi=eEi;function nEi(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}var iEi=RQ(),rEi=Bvn("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${PQ(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),oEi=e=>iQe({props:e,name:"MuiContainer",defaultTheme:iEi}),sEi=(e,t)=>{const n=l=>kr(t,l),{classes:i,fixed:r,disableGutters:o,maxWidth:s}=e,a={root:["root",s&&`maxWidth${PQ(String(s))}`,r&&"fixed",o&&"disableGutters"]};return Lr(a,n,i)};function aEi(e={}){const{createStyledComponent:t=rEi,useThemeProps:n=oEi,componentName:i="MuiContainer"}=e,r=t(({theme:s,ownerState:a})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}}),({theme:s,ownerState:a})=>a.fixed&&Object.keys(s.breakpoints.values).reduce((l,c)=>{const u=c,d=s.breakpoints.values[u];return d!==0&&(l[s.breakpoints.up(u)]={maxWidth:`${d}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:a})=>({...a.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},...a.maxWidth&&a.maxWidth!=="xs"&&{[s.breakpoints.up(a.maxWidth)]:{maxWidth:`${s.breakpoints.values[a.maxWidth]}${s.breakpoints.unit}`}}}));return I.forwardRef(function(a,l){const c=n(a),{className:u,component:d="div",disableGutters:h=!1,fixed:f=!1,maxWidth:p="lg",classes:g,...m}=c,v={...c,component:d,disableGutters:h,fixed:f,maxWidth:p},y=sEi(v,i);return S.jsx(r,{as:d,ownerState:v,className:Nn(y.root,u),ref:l,...m})})}var lEi=RQ(),cEi=Bvn("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function uEi(e){return iQe({props:e,name:"MuiStack",defaultTheme:lEi})}function dEi(e,t){const n=I.Children.toArray(e).filter(Boolean);return n.reduce((i,r,o)=>(i.push(r),o<n.length-1&&i.push(I.cloneElement(t,{key:`separator-${o}`})),i),[])}var hEi=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],fEi=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...$0({theme:t},AR({values:e.direction,breakpoints:t.breakpoints.values}),i=>({flexDirection:i}))};if(e.spacing){const i=t0e(t),r=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),o=AR({values:e.direction,base:r}),s=AR({values:e.spacing,base:r});typeof o=="object"&&Object.keys(o).forEach((l,c,u)=>{if(!o[l]){const h=c>0?o[u[c-1]]:"column";o[l]=h}}),n=Ep(n,$0({theme:t},s,(l,c)=>e.useFlexGap?{gap:w2(i,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${hEi(c?o[c]:e.direction)}`]:w2(i,l)}}))}return n=qCi(t.breakpoints,n),n};function pEi(e={}){const{createStyledComponent:t=cEi,useThemeProps:n=uEi,componentName:i="MuiStack"}=e,r=()=>Lr({root:["root"]},l=>kr(i,l),{}),o=t(fEi);return I.forwardRef(function(l,c){const u=n(l),d=c0e(u),{component:h="div",direction:f="column",spacing:p=0,divider:g,children:m,className:v,useFlexGap:y=!1,...b}=d,w={direction:f,spacing:p,useFlexGap:y},E=r();return S.jsx(o,{as:h,ownerState:w,ref:c,className:Nn(E.root,v),...b,children:g?dEi(m,g):m})})}var gEi={black:"#000",white:"#fff"},VG=gEi,mEi={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},vEi=mEi,yEi={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},z4=yEi,bEi={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},V4=bEi,_Ei={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},B3=_Ei,wEi={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},H4=wEi,CEi={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},W4=CEi,SEi={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},U4=SEi;function i0n(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:VG.white,default:VG.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}var xEi=i0n();function r0n(){return{text:{primary:VG.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:VG.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}var DPt=r0n();function TPt(e,t,n,i){const r=i.light||i,o=i.dark||i*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=P0(e.main,r):t==="dark"&&(e.dark=fb(e.main,o)))}function EEi(e="light"){return e==="dark"?{main:H4[200],light:H4[50],dark:H4[400]}:{main:H4[700],light:H4[400],dark:H4[800]}}function AEi(e="light"){return e==="dark"?{main:z4[200],light:z4[50],dark:z4[400]}:{main:z4[500],light:z4[300],dark:z4[700]}}function DEi(e="light"){return e==="dark"?{main:V4[500],light:V4[300],dark:V4[700]}:{main:V4[700],light:V4[400],dark:V4[800]}}function TEi(e="light"){return e==="dark"?{main:W4[400],light:W4[300],dark:W4[700]}:{main:W4[700],light:W4[500],dark:W4[900]}}function kEi(e="light"){return e==="dark"?{main:U4[400],light:U4[300],dark:U4[700]}:{main:U4[800],light:U4[500],dark:U4[900]}}function IEi(e="light"){return e==="dark"?{main:B3[400],light:B3[300],dark:B3[700]}:{main:"#ed6c02",light:B3[500],dark:B3[900]}}function cQe(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:i=.2,...r}=e,o=e.primary||EEi(t),s=e.secondary||AEi(t),a=e.error||DEi(t),l=e.info||TEi(t),c=e.success||kEi(t),u=e.warning||IEi(t);function d(g){return cxi(g,DPt.text.primary)>=n?DPt.text.primary:xEi.text.primary}const h=({color:g,name:m,mainShade:v=500,lightShade:y=300,darkShade:b=700})=>{if(g={...g},!g.main&&g[v]&&(g.main=g[v]),!g.hasOwnProperty("main"))throw new Error(ZD(11,m?` (${m})`:"",v));if(typeof g.main!="string")throw new Error(ZD(12,m?` (${m})`:"",JSON.stringify(g.main)));return TPt(g,"light",y,i),TPt(g,"dark",b,i),g.contrastText||(g.contrastText=d(g.main)),g};let f;return t==="light"?f=i0n():t==="dark"&&(f=r0n()),Ep({common:{...VG},mode:t,primary:h({color:o,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:a,name:"error"}),warning:h({color:u,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:vEi,contrastThreshold:n,getContrastText:d,augmentColor:h,tonalOffset:i,...f},r)}function LEi(e){const t={};return Object.entries(e).forEach(i=>{const[r,o]=i;typeof o=="object"&&(t[r]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function NEi(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function PEi(e){return Math.round(e*1e5)/1e5}var kPt={textTransform:"uppercase"},IPt='"Roboto", "Helvetica", "Arial", sans-serif';function o0n(e,t){const{fontFamily:n=IPt,fontSize:i=14,fontWeightLight:r=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t,h=i/14,f=u||(m=>`${m/l*h}rem`),p=(m,v,y,b,w)=>({fontFamily:n,fontWeight:m,fontSize:f(v),lineHeight:y,...n===IPt?{letterSpacing:`${PEi(b/v)}em`}:{},...w,...c}),g={h1:p(r,96,1.167,-1.5),h2:p(r,60,1.2,-.5),h3:p(o,48,1.167,0),h4:p(o,34,1.235,.25),h5:p(o,24,1.334,0),h6:p(s,20,1.6,.15),subtitle1:p(o,16,1.75,.15),subtitle2:p(s,14,1.57,.1),body1:p(o,16,1.5,.15),body2:p(o,14,1.43,.15),button:p(s,14,1.75,.4,kPt),caption:p(o,12,1.66,.4),overline:p(o,12,2.66,1,kPt),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ep({htmlFontSize:l,pxToRem:f,fontFamily:n,fontSize:i,fontWeightLight:r,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:a,...g},d,{clone:!1})}var MEi=.2,OEi=.14,REi=.12;function Wu(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${MEi})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${OEi})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${REi})`].join(",")}var FEi=["none",Wu(0,2,1,-1,0,1,1,0,0,1,3,0),Wu(0,3,1,-2,0,2,2,0,0,1,5,0),Wu(0,3,3,-2,0,3,4,0,0,1,8,0),Wu(0,2,4,-1,0,4,5,0,0,1,10,0),Wu(0,3,5,-1,0,5,8,0,0,1,14,0),Wu(0,3,5,-1,0,6,10,0,0,1,18,0),Wu(0,4,5,-2,0,7,10,1,0,2,16,1),Wu(0,5,5,-3,0,8,10,1,0,3,14,2),Wu(0,5,6,-3,0,9,12,1,0,3,16,2),Wu(0,6,6,-3,0,10,14,1,0,4,18,3),Wu(0,6,7,-4,0,11,15,1,0,4,20,3),Wu(0,7,8,-4,0,12,17,2,0,5,22,4),Wu(0,7,8,-4,0,13,19,2,0,5,24,4),Wu(0,7,9,-4,0,14,21,2,0,5,26,4),Wu(0,8,9,-5,0,15,22,2,0,6,28,5),Wu(0,8,10,-5,0,16,24,2,0,6,30,5),Wu(0,8,11,-5,0,17,26,2,0,6,32,5),Wu(0,9,11,-5,0,18,28,2,0,7,34,6),Wu(0,9,12,-6,0,19,29,2,0,7,36,6),Wu(0,10,13,-6,0,20,31,3,0,8,38,7),Wu(0,10,13,-6,0,21,33,3,0,8,40,7),Wu(0,10,14,-6,0,22,35,3,0,8,42,7),Wu(0,11,14,-7,0,23,36,3,0,9,44,8),Wu(0,11,15,-7,0,24,38,3,0,9,46,8)],BEi=FEi,jEi={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},s0n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function LPt(e){return`${Math.round(e)}ms`}function zEi(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function VEi(e){const t={...jEi,...e.easing},n={...s0n,...e.duration};return{getAutoHeightDuration:zEi,create:(r=["all"],o={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=o;return(Array.isArray(r)?r:[r]).map(u=>`${u} ${typeof s=="string"?s:LPt(s)} ${a} ${typeof l=="string"?l:LPt(l)}`).join(",")},...e,easing:t,duration:n}}var HEi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},WEi=HEi;function UEi(e){return ux(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function a0n(e={}){const t={...e};function n(i){const r=Object.entries(i);for(let o=0;o<r.length;o++){const[s,a]=r[o];!UEi(a)||s.startsWith("unstable_")?delete i[s]:ux(a)&&(i[s]={...a},n(i[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';

const theme = ${JSON.stringify(t,null,2)};

theme.breakpoints = createBreakpoints(theme.breakpoints || {});
theme.transitions = createTransitions(theme.transitions || {});

export default theme;`}function $Ei(e={},...t){const{breakpoints:n,mixins:i={},spacing:r,palette:o={},transitions:s={},typography:a={},shape:l,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(ZD(20));const u=cQe(o),d=RQ(e);let h=Ep(d,{mixins:NEi(d.breakpoints,i),palette:u,shadows:BEi.slice(),typography:o0n(u,a),transitions:VEi(s),zIndex:{...WEi}});return h=Ep(h,c),h=t.reduce((f,p)=>Ep(f,p),h),h.unstable_sxConfig={...OQ,...c?.unstable_sxConfig},h.unstable_sx=function(p){return C2({sx:p,theme:this})},h.toRuntimeSource=a0n,h}var Z9e=$Ei;function X9e(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var qEi=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=X9e(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function l0n(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function c0n(e){return e==="dark"?qEi:[]}function GEi(e){const{palette:t={mode:"light"},opacity:n,overlays:i,...r}=e,o=cQe(t);return{palette:o,opacity:{...l0n(o.mode),...n},overlays:i||c0n(o.mode),...r}}function KEi(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var YEi=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],QEi=YEi,ZEi=e=>(t,n)=>{const i=e.rootSelector||":root",r=e.colorSchemeSelector;let o=r;if(r==="class"&&(o=".%s"),r==="data"&&(o="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(o=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return QEi(e.cssVarPrefix).forEach(a=>{s[a]=n[a],delete n[a]}),o==="media"?{[i]:n,"@media (prefers-color-scheme: dark)":{[i]:s}}:o?{[o.replace("%s",t)]:s,[`${i}, ${o.replace("%s",t)}`]:n}:{[i]:{...n,...s}}}if(o&&o!=="media")return`${i}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[i]:n}};if(o)return o.replace("%s",String(t))}return i};function XEi(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ti(e,t,n){!e[t]&&n&&(e[t]=n)}function XW(e){return typeof e!="string"||!e.startsWith("hsl")?e:Hvn(e)}function wA(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ZW(XW(e[t])))}function JEi(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}var OS=e=>{try{return e()}catch{}},eAi=(e="mui")=>Zxi(e);function UPe(e,t,n,i){if(!t)return;t=t===!0?{}:t;const r=i==="dark"?"dark":"light";if(!n){e[i]=GEi({...t,palette:{mode:r,...t?.palette}});return}const{palette:o,...s}=Z9e({...n,palette:{mode:r,...t?.palette}});return e[i]={...t,palette:o,opacity:{...l0n(r),...t?.opacity},overlays:t?.overlays||c0n(r)},s}function tAi(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:i,disableCssColorScheme:r=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:s=KEi,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],d=i||(n.light&&u!=="light"?"light":u),h=eAi(o),{[d]:f,light:p,dark:g,...m}=n,v={...m};let y=f;if((d==="dark"&&!("dark"in n)||d==="light"&&!("light"in n))&&(y=!0),!y)throw new Error(ZD(21,d));const b=UPe(v,y,c,d);p&&!v.light&&UPe(v,p,void 0,"light"),g&&!v.dark&&UPe(v,g,void 0,"dark");let w={defaultColorScheme:d,...b,cssVarPrefix:o,colorSchemeSelector:a,rootSelector:l,getCssVar:h,colorSchemes:v,font:{...LEi(b.typography),...b.font},spacing:JEi(c.spacing)};Object.keys(w.colorSchemes).forEach(M=>{const P=w.colorSchemes[M].palette,F=N=>{const j=N.split("-"),W=j[1],J=j[2];return h(N,P[W][J])};if(P.mode==="light"&&(ti(P.common,"background","#fff"),ti(P.common,"onBackground","#000")),P.mode==="dark"&&(ti(P.common,"background","#000"),ti(P.common,"onBackground","#fff")),XEi(P,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),P.mode==="light"){ti(P.Alert,"errorColor",Yc(P.error.light,.6)),ti(P.Alert,"infoColor",Yc(P.info.light,.6)),ti(P.Alert,"successColor",Yc(P.success.light,.6)),ti(P.Alert,"warningColor",Yc(P.warning.light,.6)),ti(P.Alert,"errorFilledBg",F("palette-error-main")),ti(P.Alert,"infoFilledBg",F("palette-info-main")),ti(P.Alert,"successFilledBg",F("palette-success-main")),ti(P.Alert,"warningFilledBg",F("palette-warning-main")),ti(P.Alert,"errorFilledColor",OS(()=>P.getContrastText(P.error.main))),ti(P.Alert,"infoFilledColor",OS(()=>P.getContrastText(P.info.main))),ti(P.Alert,"successFilledColor",OS(()=>P.getContrastText(P.success.main))),ti(P.Alert,"warningFilledColor",OS(()=>P.getContrastText(P.warning.main))),ti(P.Alert,"errorStandardBg",Qc(P.error.light,.9)),ti(P.Alert,"infoStandardBg",Qc(P.info.light,.9)),ti(P.Alert,"successStandardBg",Qc(P.success.light,.9)),ti(P.Alert,"warningStandardBg",Qc(P.warning.light,.9)),ti(P.Alert,"errorIconColor",F("palette-error-main")),ti(P.Alert,"infoIconColor",F("palette-info-main")),ti(P.Alert,"successIconColor",F("palette-success-main")),ti(P.Alert,"warningIconColor",F("palette-warning-main")),ti(P.AppBar,"defaultBg",F("palette-grey-100")),ti(P.Avatar,"defaultBg",F("palette-grey-400")),ti(P.Button,"inheritContainedBg",F("palette-grey-300")),ti(P.Button,"inheritContainedHoverBg",F("palette-grey-A100")),ti(P.Chip,"defaultBorder",F("palette-grey-400")),ti(P.Chip,"defaultAvatarColor",F("palette-grey-700")),ti(P.Chip,"defaultIconColor",F("palette-grey-700")),ti(P.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ti(P.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ti(P.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ti(P.LinearProgress,"primaryBg",Qc(P.primary.main,.62)),ti(P.LinearProgress,"secondaryBg",Qc(P.secondary.main,.62)),ti(P.LinearProgress,"errorBg",Qc(P.error.main,.62)),ti(P.LinearProgress,"infoBg",Qc(P.info.main,.62)),ti(P.LinearProgress,"successBg",Qc(P.success.main,.62)),ti(P.LinearProgress,"warningBg",Qc(P.warning.main,.62)),ti(P.Skeleton,"bg",`rgba(${F("palette-text-primaryChannel")} / 0.11)`),ti(P.Slider,"primaryTrack",Qc(P.primary.main,.62)),ti(P.Slider,"secondaryTrack",Qc(P.secondary.main,.62)),ti(P.Slider,"errorTrack",Qc(P.error.main,.62)),ti(P.Slider,"infoTrack",Qc(P.info.main,.62)),ti(P.Slider,"successTrack",Qc(P.success.main,.62)),ti(P.Slider,"warningTrack",Qc(P.warning.main,.62));const N=bie(P.background.default,.8);ti(P.SnackbarContent,"bg",N),ti(P.SnackbarContent,"color",OS(()=>P.getContrastText(N))),ti(P.SpeedDialAction,"fabHoverBg",bie(P.background.paper,.15)),ti(P.StepConnector,"border",F("palette-grey-400")),ti(P.StepContent,"border",F("palette-grey-400")),ti(P.Switch,"defaultColor",F("palette-common-white")),ti(P.Switch,"defaultDisabledColor",F("palette-grey-100")),ti(P.Switch,"primaryDisabledColor",Qc(P.primary.main,.62)),ti(P.Switch,"secondaryDisabledColor",Qc(P.secondary.main,.62)),ti(P.Switch,"errorDisabledColor",Qc(P.error.main,.62)),ti(P.Switch,"infoDisabledColor",Qc(P.info.main,.62)),ti(P.Switch,"successDisabledColor",Qc(P.success.main,.62)),ti(P.Switch,"warningDisabledColor",Qc(P.warning.main,.62)),ti(P.TableCell,"border",Qc(yie(P.divider,1),.88)),ti(P.Tooltip,"bg",yie(P.grey[700],.92))}if(P.mode==="dark"){ti(P.Alert,"errorColor",Qc(P.error.light,.6)),ti(P.Alert,"infoColor",Qc(P.info.light,.6)),ti(P.Alert,"successColor",Qc(P.success.light,.6)),ti(P.Alert,"warningColor",Qc(P.warning.light,.6)),ti(P.Alert,"errorFilledBg",F("palette-error-dark")),ti(P.Alert,"infoFilledBg",F("palette-info-dark")),ti(P.Alert,"successFilledBg",F("palette-success-dark")),ti(P.Alert,"warningFilledBg",F("palette-warning-dark")),ti(P.Alert,"errorFilledColor",OS(()=>P.getContrastText(P.error.dark))),ti(P.Alert,"infoFilledColor",OS(()=>P.getContrastText(P.info.dark))),ti(P.Alert,"successFilledColor",OS(()=>P.getContrastText(P.success.dark))),ti(P.Alert,"warningFilledColor",OS(()=>P.getContrastText(P.warning.dark))),ti(P.Alert,"errorStandardBg",Yc(P.error.light,.9)),ti(P.Alert,"infoStandardBg",Yc(P.info.light,.9)),ti(P.Alert,"successStandardBg",Yc(P.success.light,.9)),ti(P.Alert,"warningStandardBg",Yc(P.warning.light,.9)),ti(P.Alert,"errorIconColor",F("palette-error-main")),ti(P.Alert,"infoIconColor",F("palette-info-main")),ti(P.Alert,"successIconColor",F("palette-success-main")),ti(P.Alert,"warningIconColor",F("palette-warning-main")),ti(P.AppBar,"defaultBg",F("palette-grey-900")),ti(P.AppBar,"darkBg",F("palette-background-paper")),ti(P.AppBar,"darkColor",F("palette-text-primary")),ti(P.Avatar,"defaultBg",F("palette-grey-600")),ti(P.Button,"inheritContainedBg",F("palette-grey-800")),ti(P.Button,"inheritContainedHoverBg",F("palette-grey-700")),ti(P.Chip,"defaultBorder",F("palette-grey-700")),ti(P.Chip,"defaultAvatarColor",F("palette-grey-300")),ti(P.Chip,"defaultIconColor",F("palette-grey-300")),ti(P.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ti(P.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ti(P.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ti(P.LinearProgress,"primaryBg",Yc(P.primary.main,.5)),ti(P.LinearProgress,"secondaryBg",Yc(P.secondary.main,.5)),ti(P.LinearProgress,"errorBg",Yc(P.error.main,.5)),ti(P.LinearProgress,"infoBg",Yc(P.info.main,.5)),ti(P.LinearProgress,"successBg",Yc(P.success.main,.5)),ti(P.LinearProgress,"warningBg",Yc(P.warning.main,.5)),ti(P.Skeleton,"bg",`rgba(${F("palette-text-primaryChannel")} / 0.13)`),ti(P.Slider,"primaryTrack",Yc(P.primary.main,.5)),ti(P.Slider,"secondaryTrack",Yc(P.secondary.main,.5)),ti(P.Slider,"errorTrack",Yc(P.error.main,.5)),ti(P.Slider,"infoTrack",Yc(P.info.main,.5)),ti(P.Slider,"successTrack",Yc(P.success.main,.5)),ti(P.Slider,"warningTrack",Yc(P.warning.main,.5));const N=bie(P.background.default,.98);ti(P.SnackbarContent,"bg",N),ti(P.SnackbarContent,"color",OS(()=>P.getContrastText(N))),ti(P.SpeedDialAction,"fabHoverBg",bie(P.background.paper,.15)),ti(P.StepConnector,"border",F("palette-grey-600")),ti(P.StepContent,"border",F("palette-grey-600")),ti(P.Switch,"defaultColor",F("palette-grey-300")),ti(P.Switch,"defaultDisabledColor",F("palette-grey-600")),ti(P.Switch,"primaryDisabledColor",Yc(P.primary.main,.55)),ti(P.Switch,"secondaryDisabledColor",Yc(P.secondary.main,.55)),ti(P.Switch,"errorDisabledColor",Yc(P.error.main,.55)),ti(P.Switch,"infoDisabledColor",Yc(P.info.main,.55)),ti(P.Switch,"successDisabledColor",Yc(P.success.main,.55)),ti(P.Switch,"warningDisabledColor",Yc(P.warning.main,.55)),ti(P.TableCell,"border",Yc(yie(P.divider,1),.68)),ti(P.Tooltip,"bg",yie(P.grey[700],.92))}wA(P.background,"default"),wA(P.background,"paper"),wA(P.common,"background"),wA(P.common,"onBackground"),wA(P,"divider"),Object.keys(P).forEach(N=>{const j=P[N];N!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&ti(P[N],"mainChannel",ZW(XW(j.main))),j.light&&ti(P[N],"lightChannel",ZW(XW(j.light))),j.dark&&ti(P[N],"darkChannel",ZW(XW(j.dark))),j.contrastText&&ti(P[N],"contrastTextChannel",ZW(XW(j.contrastText))),N==="text"&&(wA(P[N],"primary"),wA(P[N],"secondary")),N==="action"&&(j.active&&wA(P[N],"active"),j.selected&&wA(P[N],"selected")))})}),w=t.reduce((M,P)=>Ep(M,P),w);const E={prefix:o,disableCssColorScheme:r,shouldSkipGeneratingVar:s,getSelector:ZEi(w)},{vars:A,generateThemeVars:D,generateStyleSheets:T}=tEi(w,E);return w.vars=A,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([M,P])=>{w[M]=P}),w.generateThemeVars=D,w.generateStyleSheets=T,w.generateSpacing=function(){return Lvn(c.spacing,t0e(this))},w.getColorSchemeSelector=nEi(a),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=s,w.unstable_sxConfig={...OQ,...c?.unstable_sxConfig},w.unstable_sx=function(P){return C2({sx:P,theme:this})},w.toRuntimeSource=a0n,w}function NPt(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:cQe({...n===!0?{}:n.palette,mode:t})})}function d0e(e={},...t){const{palette:n,cssVariables:i=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:o=n?.mode,...s}=e,a=o||"light",l=r?.[a],c={...r,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(i===!1){if(!("colorSchemes"in e))return Z9e(e,...t);let u=n;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const d=Z9e({...e,palette:u},...t);return d.defaultColorScheme=a,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},NPt(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},NPt(d,"light",c.light)),d}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),tAi({...s,colorSchemes:c,defaultColorScheme:a,...typeof i!="boolean"&&i},...t)}function nAi(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function iAi(e){return parseFloat(e)}var rAi=d0e(),h0e=rAi;function cl(){const e=l0e(h0e);return e[q_]||e}function Vs({props:e,name:t}){return iQe({props:e,name:t,defaultTheme:h0e,themeId:q_})}function oAi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var f0e=oAi,sAi=e=>f0e(e)&&e!=="classes",kg=sAi,aAi=Fvn({themeId:q_,defaultTheme:h0e,rootShouldForwardProp:kg}),Mt=aAi;function lAi({theme:e,...t}){const n=q_ in e?e[q_]:void 0;return S.jsx(t0n,{...t,themeId:n?q_:void 0,theme:n||e})}var _ie={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:cAi}=Qxi({themeId:q_,theme:()=>d0e({cssVariables:!0}),colorSchemeStorageKey:_ie.colorSchemeStorageKey,modeStorageKey:_ie.modeStorageKey,defaultColorScheme:{light:_ie.defaultLightColorScheme,dark:_ie.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:o0n(e.palette,e.typography)};return t.unstable_sx=function(i){return C2({sx:i,theme:this})},t}}),uAi=cAi;function dAi({theme:e,...t}){const n=I.useMemo(()=>{if(typeof e=="function")return e;const i=q_ in e?e[q_]:e;return"colorSchemes"in i?null:"vars"in i?e:{...e,vars:null}},[e]);return n?S.jsx(lAi,{theme:n,...t}):S.jsx(uAi,{theme:e,...t})}function hAi(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>n.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${n} for the full message.`}var $Pe=on(H2(),1),fAi=$Pe.default.oneOfType([$Pe.default.func,$Pe.default.object]),dj=fAi;function pAi(e){if(typeof e!="string")throw new Error(hAi(7));return e.charAt(0).toUpperCase()+e.slice(1)}function qPe(e){return e&&e.ownerDocument||document}var gAi=typeof window<"u"?I.useLayoutEffect:I.useEffect,lE=gAi,PPt=0;function mAi(e){const[t,n]=I.useState(e),i=e||t;return I.useEffect(()=>{t==null&&(PPt+=1,n(`mui-${PPt}`))},[t]),i}var vAi={...cT},MPt=vAi.useId;function hj(e){if(MPt!==void 0){const t=MPt();return e??t}return mAi(e)}function x2(e){const{controlled:t,default:n,name:i,state:r="value"}=e,{current:o}=I.useRef(t!==void 0),[s,a]=I.useState(n),l=o?t:s,c=I.useCallback(u=>{o||a(u)},[]);return[l,c]}function yAi(e){const t=I.useRef(e);return lE(()=>{t.current=e}),I.useRef((...n)=>(0,t.current)(...n)).current}var qr=yAi;function Bv(...e){const t=I.useRef(void 0),n=I.useCallback(i=>{const r=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const s=o,a=s(i);return typeof a=="function"?a:()=>{s(null)}}return o.current=i,()=>{o.current=null}});return()=>{r.forEach(o=>o?.())}},e);return I.useMemo(()=>e.every(i=>i==null)?null:i=>{t.current&&(t.current(),t.current=void 0),i!=null&&(t.current=n(i))},e)}var bAi={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},_Ai=bAi;function ul(e,t,n=void 0){const i={};for(const r in e){const o=e[r];let s="",a=!0;for(let l=0;l<o.length;l+=1){const c=o[l];c&&(s+=(a===!0?"":" ")+t(c),a=!1,n&&n[c]&&(s+=" "+n[c]))}i[r]=s}return i}var OPt=e=>e,wAi=()=>{let e=OPt;return{configure(t){e=t},generate(t){return e(t)},reset(){e=OPt}}},CAi=wAi(),SAi=CAi,xAi={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function _l(e,t,n="Mui"){const i=xAi[t];return i?`${n}-${i}`:`${SAi.generate(e)}-${t}`}function Pl(e,t,n="Mui"){const i={};return t.forEach(r=>{i[r]=_l(e,r,n)}),i}function EAi(e){return typeof e=="string"}var AAi=EAi;function DAi(e,t,n){return e===void 0||AAi(e)?t:{...t,ownerState:{...t.ownerState,...n}}}var TAi=DAi;function kAi(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{n[i]=e[i]}),n}var IAi=kAi;function LAi(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}var RPt=LAi;function NAi(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:r,className:o}=e;if(!t){const f=Nn(n?.className,o,r?.className,i?.className),p={...n?.style,...r?.style,...i?.style},g={...n,...r,...i};return f.length>0&&(g.className=f),Object.keys(p).length>0&&(g.style=p),{props:g,internalRef:void 0}}const s=IAi({...r,...i}),a=RPt(i),l=RPt(r),c=t(s),u=Nn(c?.className,n?.className,o,r?.className,i?.className),d={...c?.style,...n?.style,...r?.style,...i?.style},h={...c,...n,...l,...a};return u.length>0&&(h.className=u),Object.keys(d).length>0&&(h.style=d),{props:h,internalRef:c.ref}}var PAi=NAi;function MAi(e,t,n){return typeof e=="function"?e(t,n):e}var JL=MAi;function OAi(e){const{elementType:t,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:r=!1,...o}=e,s=r?{}:JL(n,i),{props:a,internalRef:l}=PAi({...o,externalSlotProps:s}),c=Bv(l,s?.ref,e.additionalProps?.ref);return TAi(t,{...a,ref:c},i)}var kl=OAi,RAi=["localeText"],J9e=I.createContext(null),u0n=function(t){const{localeText:n}=t,i=zr(t,RAi),{utils:r,localeText:o}=I.useContext(J9e)??{utils:void 0,localeText:void 0},s=Vs({props:i,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:d,localeText:h}=s,f=I.useMemo(()=>lt({},h,o,n),[h,o,n]),p=I.useMemo(()=>{if(!l)return r||null;const v=new l({locale:d,formats:c,instance:u});if(!v.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
`));return v},[l,d,c,u,r]),g=I.useMemo(()=>p?{minDate:p.date("1900-01-01T00:00:00.000"),maxDate:p.date("2099-12-31T00:00:00.000")}:null,[p]),m=I.useMemo(()=>({utils:p,defaultDates:g,localeText:f}),[g,p,f]);return S.jsx(J9e.Provider,{value:m,children:a})},FAi=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:lt({},e)}}}}),fj=e=>{const{utils:t,formatKey:n,contextTranslation:i,propsTranslation:r}=e;return o=>{const s=o!==null&&t.isValid(o)?t.format(o,n):null;return(r??i)(o,t,s)}},d0n={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,i)=>`Select ${e}. ${!i&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${i??n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},BAi=d0n;FAi(d0n);var TF=()=>{const e=I.useContext(J9e);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
`));if(e.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
`));const t=I.useMemo(()=>lt({},BAi,e.localeText),[e.localeText]);return I.useMemo(()=>lt({},e,{localeText:t}),[e,t])},fa=()=>TF().utils,kF=()=>TF().defaultDates,IF=e=>{const t=fa(),n=I.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},wf=()=>TF().localeText;function jAi(e){return S.jsx(Pvn,{...e,defaultTheme:h0e,themeId:q_})}var zAi=jAi;function uQe(e){return function(n){return S.jsx(zAi,{styles:typeof e=="function"?i=>e({theme:i,...n}):e})}}function VAi(){return c0e}var HAi=Vxi,gr=HAi;function Nr(e){return Fxi(e)}var gn=PQ;function WAi(e){return typeof e.main=="string"}function UAi(e,t=[]){if(!WAi(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function $a(e=[]){return([,t])=>t&&UAi(t,e)}function $Ai(e){return kr("MuiTypography",e)}var qAi=Ir("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),FPt=qAi,GAi={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},KAi=VAi(),YAi=e=>{const{align:t,gutterBottom:n,noWrap:i,paragraph:r,variant:o,classes:s}=e,a={root:["root",o,e.align!=="inherit"&&`align${gn(t)}`,n&&"gutterBottom",i&&"noWrap",r&&"paragraph"]};return Lr(a,$Ai,s)},QAi=Mt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${gn(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(gr(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter($a()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${gn(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),BPt={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ZAi=I.forwardRef(function(t,n){const{color:i,...r}=Nr({props:t,name:"MuiTypography"}),o=!GAi[i],s=KAi({...r,...o&&{color:i}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:h=!1,variant:f="body1",variantMapping:p=BPt,...g}=s,m={...s,align:a,color:i,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:h,variant:f,variantMapping:p},v=c||(h?"p":p[f]||BPt[f])||"span",y=YAi(m);return S.jsx(QAi,{as:v,ref:n,className:Nn(y.root,l),...g,ownerState:m,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...g.style}})}),Xn=ZAi,XAi=Y9e;function JAi(e){return kr("MuiSvgIcon",e)}Ir("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var eDi=e=>{const{color:t,fontSize:n,classes:i}=e,r={root:["root",t!=="inherit"&&`color${gn(t)}`,`fontSize${gn(n)}`]};return Lr(r,JAi,i)},tDi=Mt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${gn(n.color)}`],t[`fontSize${gn(n.fontSize)}`]]}})(gr(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),h0n=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiSvgIcon"}),{children:r,className:o,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:h="0 0 24 24",...f}=i,p=I.isValidElement(r)&&r.type==="svg",g={...i,color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:p},m={};u||(m.viewBox=h);const v=eDi(g);return S.jsxs(tDi,{as:a,className:Nn(v.root,o),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...m,...f,...p&&r.props,ownerState:g,children:[p?r.props.children:r,d?S.jsx("title",{children:d}):null]})});h0n.muiName="SvgIcon";var Phe=h0n;function ho(e,t){function n(i,r){return S.jsx(Phe,{"data-testid":`${t}Icon`,ref:r,...i,children:e})}return n.muiName=Phe.muiName,I.memo(I.forwardRef(n))}var FQ=Wvn,fce=uxi,HG=gg,WG=S2,p0e=sw,dQe=uj,Mhe=b8,AD=F_,pb=LC;function f0n(e,t){if(!e)return t;if(typeof e=="function"||typeof t=="function")return r=>{const o=typeof t=="function"?t(r):t,s=typeof e=="function"?e({...r,...o}):e,a=Nn(r?.className,o?.className,s?.className);return{...o,...s,...!!a&&{className:a},...o?.style&&s?.style&&{style:{...o.style,...s.style}},...o?.sx&&s?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(s.sx)?s.sx:[s.sx]]}}};const n=t,i=Nn(n?.className,e?.className);return{...t,...e,...!!i&&{className:i},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var nDi=class e7e{static create(){return new e7e}static use(){const t=Uvn(e7e.create).current,[n,i]=I.useState(!1);return t.shouldMount=n,t.setShouldMount=i,I.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=rDi(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}};function iDi(){return nDi.use()}function rDi(){let e,t;const n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n}function Ohe(e,t){return Ohe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ohe(e,t)}function hQe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ohe(e,t)}function oDi(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function sDi(e,t){e.classList?e.classList.add(t):oDi(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function jPt(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function aDi(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=jPt(e.className,t):e.setAttribute("class",jPt(e.className&&e.className.baseVal||"",t))}var zPt={disabled:!1},Rhe=Ri.createContext(null),p0n=function(t){return t.scrollTop},JW="unmounted",nO="exited",iO="entering",qB="entered",t7e="exiting",PT=(function(e){hQe(t,e);function t(i,r){var o;o=e.call(this,i,r)||this;var s=r,a=s&&!s.isMounting?i.enter:i.appear,l;return o.appearStatus=null,i.in?a?(l=nO,o.appearStatus=iO):l=qB:i.unmountOnExit||i.mountOnEnter?l=JW:l=nO,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(r,o){var s=r.in;return s&&o.status===JW?{status:nO}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var o=null;if(r!==this.props){var s=this.state.status;this.props.in?s!==iO&&s!==qB&&(o=iO):(s===iO||s===qB)&&(o=t7e)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,o,s,a;return o=s=a=r,r!=null&&typeof r!="number"&&(o=r.exit,s=r.enter,a=r.appear!==void 0?r.appear:s),{exit:o,enter:s,appear:a}},n.updateStatus=function(r,o){if(r===void 0&&(r=!1),o!==null)if(this.cancelNextCallback(),o===iO){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:XB.findDOMNode(this);s&&p0n(s)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===nO&&this.setState({status:JW})},n.performEnter=function(r){var o=this,s=this.props.enter,a=this.context?this.context.isMounting:r,l=this.props.nodeRef?[a]:[XB.findDOMNode(this),a],c=l[0],u=l[1],d=this.getTimeouts(),h=a?d.appear:d.enter;if(!r&&!s||zPt.disabled){this.safeSetState({status:qB},function(){o.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:iO},function(){o.props.onEntering(c,u),o.onTransitionEnd(h,function(){o.safeSetState({status:qB},function(){o.props.onEntered(c,u)})})})},n.performExit=function(){var r=this,o=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:XB.findDOMNode(this);if(!o||zPt.disabled){this.safeSetState({status:nO},function(){r.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:t7e},function(){r.props.onExiting(a),r.onTransitionEnd(s.exit,function(){r.safeSetState({status:nO},function(){r.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,o){o=this.setNextCallback(o),this.setState(r,o)},n.setNextCallback=function(r){var o=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,o.nextCallback=null,r(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(r,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:XB.findDOMNode(this),a=r==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===JW)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var a=zr(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ri.createElement(Rhe.Provider,{value:null},typeof s=="function"?s(r,a):Ri.cloneElement(Ri.Children.only(s),a))},t})(Ri.Component);PT.contextType=Rhe;PT.propTypes={};function $4(){}PT.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$4,onEntering:$4,onEntered:$4,onExit:$4,onExiting:$4,onExited:$4};PT.UNMOUNTED=JW;PT.EXITED=nO;PT.ENTERING=iO;PT.ENTERED=qB;PT.EXITING=t7e;var g0e=PT,lDi=function(t,n){return t&&n&&n.split(" ").forEach(function(i){return sDi(t,i)})},GPe=function(t,n){return t&&n&&n.split(" ").forEach(function(i){return aDi(t,i)})},fQe=(function(e){hQe(t,e);function t(){for(var i,r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o))||this,i.appliedClasses={appear:{},enter:{},exit:{}},i.onEnter=function(a,l){var c=i.resolveArguments(a,l),u=c[0],d=c[1];i.removeClasses(u,"exit"),i.addClass(u,d?"appear":"enter","base"),i.props.onEnter&&i.props.onEnter(a,l)},i.onEntering=function(a,l){var c=i.resolveArguments(a,l),u=c[0],d=c[1],h=d?"appear":"enter";i.addClass(u,h,"active"),i.props.onEntering&&i.props.onEntering(a,l)},i.onEntered=function(a,l){var c=i.resolveArguments(a,l),u=c[0],d=c[1],h=d?"appear":"enter";i.removeClasses(u,h),i.addClass(u,h,"done"),i.props.onEntered&&i.props.onEntered(a,l)},i.onExit=function(a){var l=i.resolveArguments(a),c=l[0];i.removeClasses(c,"appear"),i.removeClasses(c,"enter"),i.addClass(c,"exit","base"),i.props.onExit&&i.props.onExit(a)},i.onExiting=function(a){var l=i.resolveArguments(a),c=l[0];i.addClass(c,"exit","active"),i.props.onExiting&&i.props.onExiting(a)},i.onExited=function(a){var l=i.resolveArguments(a),c=l[0];i.removeClasses(c,"exit"),i.addClass(c,"exit","done"),i.props.onExited&&i.props.onExited(a)},i.resolveArguments=function(a,l){return i.props.nodeRef?[i.props.nodeRef.current,a]:[a,l]},i.getClassNames=function(a){var l=i.props.classNames,c=typeof l=="string",u=c&&l?l+"-":"",d=c?""+u+a:l[a],h=c?d+"-active":l[a+"Active"],f=c?d+"-done":l[a+"Done"];return{baseClassName:d,activeClassName:h,doneClassName:f}},i}var n=t.prototype;return n.addClass=function(r,o,s){var a=this.getClassNames(o)[s+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;o==="appear"&&s==="done"&&c&&(a+=" "+c),s==="active"&&r&&p0n(r),a&&(this.appliedClasses[o][s]=a,lDi(r,a))},n.removeClasses=function(r,o){var s=this.appliedClasses[o],a=s.base,l=s.active,c=s.done;this.appliedClasses[o]={},a&&GPe(r,a),l&&GPe(r,l),c&&GPe(r,c)},n.render=function(){var r=this.props;r.classNames;var o=zr(r,["classNames"]);return Ri.createElement(g0e,lt({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(Ri.Component);fQe.defaultProps={classNames:""};fQe.propTypes={};var cDi=fQe;function g0n(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pQe(e,t){var n=function(o){return t&&I.isValidElement(o)?t(o):o},i=Object.create(null);return e&&I.Children.map(e,function(r){return r}).forEach(function(r){i[r.key]=n(r)}),i}function uDi(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var i=Object.create(null),r=[];for(var o in e)o in t?r.length&&(i[o]=r,r=[]):r.push(o);var s,a={};for(var l in t){if(i[l])for(s=0;s<i[l].length;s++){var c=i[l][s];a[i[l][s]]=n(c)}a[l]=n(l)}for(s=0;s<r.length;s++)a[r[s]]=n(r[s]);return a}function QO(e,t,n){return n[t]!=null?n[t]:e.props[t]}function dDi(e,t){return pQe(e.children,function(n){return I.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:QO(n,"appear",e),enter:QO(n,"enter",e),exit:QO(n,"exit",e)})})}function hDi(e,t,n){var i=pQe(e.children),r=uDi(t,i);return Object.keys(r).forEach(function(o){var s=r[o];if(I.isValidElement(s)){var a=o in t,l=o in i,c=t[o],u=I.isValidElement(c)&&!c.props.in;l&&(!a||u)?r[o]=I.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:QO(s,"exit",e),enter:QO(s,"enter",e)}):!l&&a&&!u?r[o]=I.cloneElement(s,{in:!1}):l&&a&&I.isValidElement(c)&&(r[o]=I.cloneElement(s,{onExited:n.bind(null,s),in:c.props.in,exit:QO(s,"exit",e),enter:QO(s,"enter",e)}))}}),r}var fDi=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},pDi={component:"div",childFactory:function(t){return t}},gQe=(function(e){hQe(t,e);function t(i,r){var o;o=e.call(this,i,r)||this;var s=o.handleExited.bind(g0n(o));return o.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},o}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,o){var s=o.children,a=o.handleExited,l=o.firstRender;return{children:l?dDi(r,a):hDi(r,s,a),firstRender:!1}},n.handleExited=function(r,o){var s=pQe(this.props.children);r.key in s||(r.props.onExited&&r.props.onExited(o),this.mounted&&this.setState(function(a){var l=lt({},a.children);return delete l[r.key],{children:l}}))},n.render=function(){var r=this.props,o=r.component,s=r.childFactory,a=zr(r,["component","childFactory"]),l=this.state.contextValue,c=fDi(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,o===null?Ri.createElement(Rhe.Provider,{value:l},c):Ri.createElement(Rhe.Provider,{value:l},Ri.createElement(o,a,c))},t})(Ri.Component);gQe.propTypes={};gQe.defaultProps=pDi;var mQe=gQe;function gDi(e){const{className:t,classes:n,pulsate:i=!1,rippleX:r,rippleY:o,rippleSize:s,in:a,onExited:l,timeout:c}=e,[u,d]=I.useState(!1),h=Nn(t,n.ripple,n.rippleVisible,i&&n.ripplePulsate),f={width:s,height:s,top:-(s/2)+o,left:-(s/2)+r},p=Nn(n.child,u&&n.childLeaving,i&&n.childPulsate);return!a&&!u&&d(!0),I.useEffect(()=>{if(!a&&l!=null){const g=setTimeout(l,c);return()=>{clearTimeout(g)}}},[l,a,c]),S.jsx("span",{className:h,style:f,children:S.jsx("span",{className:p})})}var mDi=gDi,vDi=Ir("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),b_=vDi,n7e=550,yDi=80,bDi=Tw`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`,_Di=Tw`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`,wDi=Tw`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`,CDi=Mt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),SDi=Mt(mDi,{name:"MuiTouchRipple",slot:"Ripple"})`
  opacity: 0;
  position: absolute;

  &.${b_.rippleVisible} {
    opacity: 0.3;
    transform: scale(1);
    animation-name: ${bDi};
    animation-duration: ${n7e}ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  }

  &.${b_.ripplePulsate} {
    animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
  }

  & .${b_.child} {
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
  }

  & .${b_.childLeaving} {
    opacity: 0;
    animation-name: ${_Di};
    animation-duration: ${n7e}ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  }

  & .${b_.childPulsate} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${wDi};
    animation-duration: 2500ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`,xDi=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:s,...a}=i,[l,c]=I.useState([]),u=I.useRef(0),d=I.useRef(null);I.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const h=I.useRef(!1),f=YO(),p=I.useRef(null),g=I.useRef(null),m=I.useCallback(w=>{const{pulsate:E,rippleX:A,rippleY:D,rippleSize:T,cb:M}=w;c(P=>[...P,S.jsx(SDi,{classes:{ripple:Nn(o.ripple,b_.ripple),rippleVisible:Nn(o.rippleVisible,b_.rippleVisible),ripplePulsate:Nn(o.ripplePulsate,b_.ripplePulsate),child:Nn(o.child,b_.child),childLeaving:Nn(o.childLeaving,b_.childLeaving),childPulsate:Nn(o.childPulsate,b_.childPulsate)},timeout:n7e,pulsate:E,rippleX:A,rippleY:D,rippleSize:T},u.current)]),u.current+=1,d.current=M},[o]),v=I.useCallback((w={},E={},A=()=>{})=>{const{pulsate:D=!1,center:T=r||E.pulsate,fakeElement:M=!1}=E;if(w?.type==="mousedown"&&h.current){h.current=!1;return}w?.type==="touchstart"&&(h.current=!0);const P=M?null:g.current,F=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let N,j,W;if(T||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)N=Math.round(F.width/2),j=Math.round(F.height/2);else{const{clientX:J,clientY:ee}=w.touches&&w.touches.length>0?w.touches[0]:w;N=Math.round(J-F.left),j=Math.round(ee-F.top)}if(T)W=Math.sqrt((2*F.width**2+F.height**2)/3),W%2===0&&(W+=1);else{const J=Math.max(Math.abs((P?P.clientWidth:0)-N),N)*2+2,ee=Math.max(Math.abs((P?P.clientHeight:0)-j),j)*2+2;W=Math.sqrt(J**2+ee**2)}w?.touches?p.current===null&&(p.current=()=>{m({pulsate:D,rippleX:N,rippleY:j,rippleSize:W,cb:A})},f.start(yDi,()=>{p.current&&(p.current(),p.current=null)})):m({pulsate:D,rippleX:N,rippleY:j,rippleSize:W,cb:A})},[r,m,f]),y=I.useCallback(()=>{v({},{pulsate:!0})},[v]),b=I.useCallback((w,E)=>{if(f.clear(),w?.type==="touchend"&&p.current){p.current(),p.current=null,f.start(0,()=>{b(w,E)});return}p.current=null,c(A=>A.length>0?A.slice(1):A),d.current=E},[f]);return I.useImperativeHandle(n,()=>({pulsate:y,start:v,stop:b}),[y,v,b]),S.jsx(CDi,{className:Nn(b_.root,o.root,s),ref:g,...a,children:S.jsx(mQe,{component:null,exit:!0,children:l})})}),EDi=xDi;function ADi(e){return kr("MuiButtonBase",e)}var DDi=Ir("MuiButtonBase",["root","disabled","focusVisible"]),TDi=DDi,kDi=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:i,classes:r}=e,s=Lr({root:["root",t&&"disabled",n&&"focusVisible"]},ADi,r);return n&&i&&(s.root+=` ${i}`),s},IDi=Mt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${TDi.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),LDi=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:h=!1,focusVisibleClassName:f,LinkComponent:p="a",onBlur:g,onClick:m,onContextMenu:v,onDragLeave:y,onFocus:b,onFocusVisible:w,onKeyDown:E,onKeyUp:A,onMouseDown:D,onMouseLeave:T,onMouseUp:M,onTouchEnd:P,onTouchMove:F,onTouchStart:N,tabIndex:j=0,TouchRippleProps:W,touchRippleRef:J,type:ee,...Q}=i,H=I.useRef(null),q=iDi(),le=pb(q.ref,J),[Y,G]=I.useState(!1);c&&Y&&G(!1),I.useImperativeHandle(r,()=>({focusVisible:()=>{G(!0),H.current.focus()}}),[]);const pe=q.shouldMount&&!u&&!c;I.useEffect(()=>{Y&&h&&!u&&q.pulsate()},[u,h,Y,q]);const U=CA(q,"start",D,d),K=CA(q,"stop",v,d),ie=CA(q,"stop",y,d),ce=CA(q,"stop",M,d),de=CA(q,"stop",it=>{Y&&it.preventDefault(),T&&T(it)},d),oe=CA(q,"start",N,d),me=CA(q,"stop",P,d),Ce=CA(q,"stop",F,d),Se=CA(q,"stop",it=>{XL(it.target)||G(!1),g&&g(it)},!1),De=AD(it=>{H.current||(H.current=it.currentTarget),XL(it.target)&&(G(!0),w&&w(it)),b&&b(it)}),Me=()=>{const it=H.current;return l&&l!=="button"&&!(it.tagName==="A"&&it.href)},qe=AD(it=>{h&&!it.repeat&&Y&&it.key===" "&&q.stop(it,()=>{q.start(it)}),it.target===it.currentTarget&&Me()&&it.key===" "&&it.preventDefault(),E&&E(it),it.target===it.currentTarget&&Me()&&it.key==="Enter"&&!c&&(it.preventDefault(),m&&m(it))}),$=AD(it=>{h&&it.key===" "&&Y&&!it.defaultPrevented&&q.stop(it,()=>{q.pulsate(it)}),A&&A(it),m&&it.target===it.currentTarget&&Me()&&it.key===" "&&!it.defaultPrevented&&m(it)});let he=l;he==="button"&&(Q.href||Q.to)&&(he=p);const Ie={};he==="button"?(Ie.type=ee===void 0?"button":ee,Ie.disabled=c):(!Q.href&&!Q.to&&(Ie.role="button"),c&&(Ie["aria-disabled"]=c));const Be=pb(n,H),ze={...i,centerRipple:o,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:h,tabIndex:j,focusVisible:Y},Ye=kDi(ze);return S.jsxs(IDi,{as:he,className:Nn(Ye.root,a),ownerState:ze,onBlur:Se,onClick:m,onContextMenu:K,onFocus:De,onKeyDown:qe,onKeyUp:$,onMouseDown:U,onMouseLeave:de,onMouseUp:ce,onDragLeave:ie,onTouchEnd:me,onTouchMove:Ce,onTouchStart:oe,ref:Be,tabIndex:c?-1:j,type:ee,...Ie,...Q,children:[s,pe?S.jsx(EDi,{ref:le,center:o,...W}):null]})});function CA(e,t,n,i=!1){return AD(r=>(n&&n(r),i||e[t](r),!0))}var vg=LDi;function NDi(e){return kr("MuiCircularProgress",e)}Ir("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var zk=44,i7e=Tw`
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
`,r7e=Tw`
  0% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -15px;
  }

  100% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: -126px;
  }
`,PDi=typeof i7e!="string"?QN`
        animation: ${i7e} 1.4s linear infinite;
      `:null,MDi=typeof r7e!="string"?QN`
        animation: ${r7e} 1.4s ease-in-out infinite;
      `:null,ODi=e=>{const{classes:t,variant:n,color:i,disableShrink:r}=e,o={root:["root",n,`color${gn(i)}`],svg:["svg"],circle:["circle",`circle${gn(n)}`,r&&"circleDisableShrink"]};return Lr(o,NDi,t)},RDi=Mt("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${gn(n.color)}`]]}})(gr(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:PDi||{animation:`${i7e} 1.4s linear infinite`}},...Object.entries(e.palette).filter($a()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),FDi=Mt("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),BDi=Mt("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${gn(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(gr(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:MDi||{animation:`${r7e} 1.4s ease-in-out infinite`}}]}))),jDi=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:s=!1,size:a=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate",...h}=i,f={...i,color:o,disableShrink:s,size:a,thickness:c,value:u,variant:d},p=ODi(f),g={},m={},v={};if(d==="determinate"){const y=2*Math.PI*((zk-c)/2);g.strokeDasharray=y.toFixed(3),v["aria-valuenow"]=Math.round(u),g.strokeDashoffset=`${((100-u)/100*y).toFixed(3)}px`,m.transform="rotate(-90deg)"}return S.jsx(RDi,{className:Nn(p.root,r),style:{width:a,height:a,...m,...l},ownerState:f,ref:n,role:"progressbar",...v,...h,children:S.jsx(FDi,{className:p.svg,ownerState:f,viewBox:`${zk/2} ${zk/2} ${zk} ${zk}`,children:S.jsx(BDi,{className:p.circle,style:g,ownerState:f,cx:zk,cy:zk,r:(zk-c)/2,fill:"none",strokeWidth:c})})})}),L9=jDi;function zDi(e){return kr("MuiIconButton",e)}var VDi=Ir("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),VPt=VDi,HDi=e=>{const{classes:t,disabled:n,color:i,edge:r,size:o,loading:s}=e,a={root:["root",s&&"loading",n&&"disabled",i!=="default"&&`color${gn(i)}`,r&&`edge${gn(r)}`,`size${gn(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Lr(a,zDi,t)},WDi=Mt(vg,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${gn(n.color)}`],n.edge&&t[`edge${gn(n.edge)}`],t[`size${gn(n.size)}`]]}})(gr(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),gr(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter($a()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter($a()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pr((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${VPt.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${VPt.loading}`]:{color:"transparent"}}))),UDi=Mt("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),$Di=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiIconButton"}),{edge:r=!1,children:o,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:d,loading:h=null,loadingIndicator:f,...p}=i,g=dQe(d),m=f??S.jsx(L9,{"aria-labelledby":g,color:"inherit",size:16}),v={...i,edge:r,color:a,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:m,size:u},y=HDi(v);return S.jsxs(WDi,{id:h?g:d,className:Nn(y.root,s),centerRipple:!0,focusRipple:!c,disabled:l||h,ref:n,...p,ownerState:v,children:[typeof h=="boolean"&&S.jsx("span",{className:y.loadingWrapper,style:{display:"contents"},children:S.jsx(UDi,{className:y.loadingIndicator,ownerState:v,children:h&&m})}),o]})}),Qr=$Di,qDi=ho(S.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),GDi=ho(S.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),KDi=ho(S.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),m0n=ho(S.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),YDi=ho(S.jsxs(I.Fragment,{children:[S.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),S.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),QDi=ho(S.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),ZDi=ho(S.jsxs(I.Fragment,{children:[S.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),S.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),XDi=ho(S.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function JDi(e){return _l("MuiPickersArrowSwitcher",e)}Pl("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);var eTi=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],tTi=["ownerState"],nTi=["ownerState"],iTi=Mt("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),rTi=Mt("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),HPt=Mt(Qr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),oTi=e=>{const{classes:t}=e;return ul({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},JDi,t)},v0n=I.forwardRef(function(t,n){const i=Ph(),r=Vs({props:t,name:"MuiPickersArrowSwitcher"}),{children:o,className:s,slots:a,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:d,nextLabel:h,isPreviousDisabled:f,isPreviousHidden:p,onGoToPrevious:g,previousLabel:m,labelId:v}=r,y=zr(r,eTi),b=r,w=oTi(b),E={isDisabled:c,isHidden:u,goTo:d,label:h},A={isDisabled:f,isHidden:p,goTo:g,label:m},D=a?.previousIconButton??HPt,T=kl({elementType:D,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:A.label,"aria-label":A.label,disabled:A.isDisabled,edge:"end",onClick:A.goTo},ownerState:lt({},b,{hidden:A.isHidden}),className:Nn(w.button,w.previousIconButton)}),M=a?.nextIconButton??HPt,P=kl({elementType:M,externalSlotProps:l?.nextIconButton,additionalProps:{size:"medium",title:E.label,"aria-label":E.label,disabled:E.isDisabled,edge:"start",onClick:E.goTo},ownerState:lt({},b,{hidden:E.isHidden}),className:Nn(w.button,w.nextIconButton)}),F=a?.leftArrowIcon??GDi,N=kl({elementType:F,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:b,className:w.leftArrowIcon}),j=zr(N,tTi),W=a?.rightArrowIcon??KDi,J=kl({elementType:W,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:b,className:w.rightArrowIcon}),ee=zr(J,nTi);return S.jsxs(iTi,lt({ref:n,className:Nn(w.root,s),ownerState:b},y,{children:[S.jsx(D,lt({},T,{children:i?S.jsx(W,lt({},ee)):S.jsx(F,lt({},j))})),o?S.jsx(Xn,{variant:"subtitle1",component:"span",id:v,children:o}):S.jsx(rTi,{className:w.spacer,ownerState:b}),S.jsx(M,lt({},P,{children:i?S.jsx(F,lt({},j)):S.jsx(W,lt({},ee))}))]}))}),dx=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),vQe=({openTo:e,defaultOpenTo:t,views:n,defaultViews:i})=>{const r=n??i;let o;if(e!=null)o=e;else if(r.includes(t))o=t;else if(r.length>0)o=r[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:r,openTo:o}},y0n=["hours","minutes","seconds"],N9=e=>y0n.includes(e),eU=e=>y0n.includes(e)||e==="meridiem",sTi=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,UG=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,aTi=(e,t,n,i)=>{const r=UG(i.getHours(e),t,n);return i.setHours(e,r)},WPt=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),BQ=(e,t)=>(n,i)=>e?t.isAfter(n,i):WPt(n,t)>WPt(i,t),Fhe=(e,{format:t,views:n,ampm:i})=>{if(t!=null)return t;const r=e.formats;return dx(n,["hours"])?i?`${r.hours12h} ${r.meridiem}`:r.hours24h:dx(n,["minutes"])?r.minutes:dx(n,["seconds"])?r.seconds:dx(n,["minutes","seconds"])?`${r.minutes}:${r.seconds}`:dx(n,["hours","minutes","seconds"])?i?`${r.hours12h}:${r.minutes}:${r.seconds} ${r.meridiem}`:`${r.hours24h}:${r.minutes}:${r.seconds}`:i?`${r.hours12h}:${r.minutes} ${r.meridiem}`:`${r.hours24h}:${r.minutes}`};function jQ({onChange:e,onViewChange:t,openTo:n,view:i,views:r,autoFocus:o,focusedView:s,onFocusedViewChange:a}){const l=I.useRef(n),c=I.useRef(r),u=I.useRef(r.includes(n)?n:r[0]),[d,h]=x2({name:"useViews",state:"view",controlled:i,default:u.current}),f=I.useRef(o?d:null),[p,g]=x2({name:"useViews",state:"focusedView",controlled:s,default:f.current});I.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some(D=>!r.includes(D)))&&(h(r.includes(n)?n:r[0]),c.current=r,l.current=n)},[n,h,d,r]);const m=r.indexOf(d),v=r[m-1]??null,y=r[m+1]??null,b=qr((D,T)=>{g(T?D:M=>D===M?null:M),a?.(D,T)}),w=qr(D=>{b(D,!0),D!==d&&(h(D),t&&t(D))}),E=qr(()=>{y&&w(y)}),A=qr((D,T,M)=>{const P=T==="finish",F=M?r.indexOf(M)<r.length-1:!!y;if(e(D,P&&F?"partial":T,M),M&&M!==d){const j=r[r.indexOf(M)+1];j&&w(j)}else P&&E()});return{view:d,setView:w,focusedView:p,setFocusedView:b,nextView:y,previousView:v,defaultView:r.includes(n)?n:r[0],goToNextView:E,setValueAndGoToNextView:A}}function lTi(e,{disableFuture:t,maxDate:n,timezone:i}){const r=fa();return I.useMemo(()=>{const o=r.date(void 0,i),s=r.startOfMonth(t&&r.isBefore(o,n)?o:n);return!r.isAfter(s,e)},[t,n,e,r,i])}function cTi(e,{disablePast:t,minDate:n,timezone:i}){const r=fa();return I.useMemo(()=>{const o=r.date(void 0,i),s=r.startOfMonth(t&&r.isAfter(o,n)?o:n);return!r.isBefore(s,e)},[t,n,e,r,i])}function m0e(e,t,n,i){const r=fa(),o=sTi(e,r),s=I.useCallback(a=>{const l=e==null?null:aTi(e,a,!!t,r);n(l,i??"partial")},[t,e,n,i,r]);return{meridiemMode:o,handleMeridiemChange:s}}var $G=36,v0e=2,y0e=320,uTi=280,b0e=336,b0n=232,tU=48,_0e=Mt("div")({overflow:"hidden",width:y0e,maxHeight:b0e,display:"flex",flexDirection:"column",margin:"0 auto"});function dTi(e){return _l("MuiTimeClock",e)}Pl("MuiTimeClock",["root","arrowSwitcher"]);var P9=220,DD=36,qG={x:P9/2,y:P9/2},_0n={x:qG.x,y:0},hTi=_0n.x-qG.x,fTi=_0n.y-qG.y,pTi=e=>e*(180/Math.PI),w0n=(e,t,n)=>{const i=t-qG.x,r=n-qG.y,o=Math.atan2(hTi,fTi)-Math.atan2(i,r);let s=pTi(o);s=Math.round(s/e)*e,s%=360;const a=Math.floor(s/e)||0,l=i**2+r**2,c=Math.sqrt(l);return{value:a,distance:c}},gTi=(e,t,n=1)=>{const i=n*6;let{value:r}=w0n(i,e,t);return r=r*n%60,r},mTi=(e,t,n)=>{const{value:i,distance:r}=w0n(30,e,t);let o=i||12;return n?o%=12:r<P9/2-DD&&(o+=12,o%=24),o};function vTi(e){return _l("MuiClockPointer",e)}Pl("MuiClockPointer",["root","thumb"]);var yTi=["className","hasSelected","isInner","type","viewValue"],bTi=e=>{const{classes:t}=e;return ul({root:["root"],thumb:["thumb"]},vTi,t)},_Ti=Mt("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{shouldAnimate:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),wTi=Mt("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${DD/2}px)`,border:`${(DD-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{hasSelected:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function CTi(e){const t=Vs({props:e,name:"MuiClockPointer"}),{className:n,isInner:i,type:r,viewValue:o}=t,s=zr(t,yTi),a=I.useRef(r);I.useEffect(()=>{a.current=r},[r]);const l=lt({},t,{shouldAnimate:a.current!==r}),c=bTi(l),u=()=>{let h=360/(r==="hours"?12:60)*o;return r==="hours"&&o>12&&(h-=360),{height:Math.round((i?.26:.4)*P9),transform:`rotateZ(${h}deg)`}};return S.jsx(_Ti,lt({style:u(),className:Nn(c.root,n),ownerState:l},s,{children:S.jsx(wTi,{ownerState:l,className:c.thumb})}))}function STi(e){return _l("MuiClock",e)}Pl("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);var Bhe=(e,t,n)=>{let i=t;return i=e.setHours(i,e.getHours(n)),i=e.setMinutes(i,e.getMinutes(n)),i=e.setSeconds(i,e.getSeconds(n)),i=e.setMilliseconds(i,e.getMilliseconds(n)),i},G$=({date:e,disableFuture:t,disablePast:n,maxDate:i,minDate:r,isDateDisabled:o,utils:s,timezone:a})=>{const l=Bhe(s,s.date(void 0,a),e);n&&s.isBefore(r,l)&&(r=l),t&&s.isAfter(i,l)&&(i=l);let c=e,u=e;for(s.isBefore(e,r)&&(c=r,u=null),s.isAfter(e,i)&&(u&&(u=i),c=null);c||u;){if(c&&s.isAfter(c,i)&&(c=null),u&&s.isBefore(u,r)&&(u=null),c){if(!o(c))return c;c=s.addDays(c,1)}if(u){if(!o(u))return u;u=s.addDays(u,-1)}}return null},xTi=(e,t)=>t==null||!e.isValid(t)?null:t,vm=(e,t,n)=>t==null||!e.isValid(t)?n:t,ETi=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),yQe=(e,t)=>{const i=[e.startOfYear(t)];for(;i.length<12;){const r=i[i.length-1];i.push(e.addMonths(r,1))}return i},bQe=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),X1=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},ATi=["year","month","day"],M9=e=>ATi.includes(e),GG=(e,{format:t,views:n},i)=>{if(t!=null)return t;const r=e.formats;return dx(n,["year"])?r.year:dx(n,["month"])?r.month:dx(n,["day"])?r.dayOfMonth:dx(n,["month","year"])?`${r.month} ${r.year}`:dx(n,["day","month"])?`${r.month} ${r.dayOfMonth}`:i?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},DTi=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(i=>e.addDays(n,i))},TTi=e=>{const{classes:t,meridiemMode:n}=e;return ul({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton",n==="am"&&"selected"],pmButton:["pmButton",n==="pm"&&"selected"],meridiemText:["meridiemText"]},STi,t)},kTi=Mt("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),ITi=Mt("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),LTi=Mt("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),NTi=Mt("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{disabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),PTi=Mt("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),C0n=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:DD,variants:[{props:{meridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),MTi=Mt(Qr,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e})=>lt({},C0n(e,"am"),{position:"absolute",left:8})),OTi=Mt(Qr,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e})=>lt({},C0n(e,"pm"),{position:"absolute",right:8})),UPt=Mt(Xn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function RTi(e){const t=Vs({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:i,autoFocus:r,children:o,value:s,handleMeridiemChange:a,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:d,selectedId:h,type:f,viewValue:p,viewRange:[g,m],disabled:v=!1,readOnly:y,className:b}=t,w=t,E=fa(),A=wf(),D=I.useRef(!1),T=TTi(w),M=l(p,f),P=!n&&f==="hours"&&(p<1||p>12),F=(pe,U)=>{v||y||l(pe,f)||d(pe,U)},N=(pe,U)=>{let{offsetX:K,offsetY:ie}=pe;if(K===void 0){const de=pe.target.getBoundingClientRect();K=pe.changedTouches[0].clientX-de.left,ie=pe.changedTouches[0].clientY-de.top}const ce=f==="seconds"||f==="minutes"?gTi(K,ie,u):mTi(K,ie,!!n);F(ce,U)},j=pe=>{D.current=!0,N(pe,"shallow")},W=pe=>{D.current&&(N(pe,"finish"),D.current=!1),pe.preventDefault()},J=pe=>{pe.buttons>0&&N(pe.nativeEvent,"shallow")},ee=pe=>{D.current&&(D.current=!1),N(pe.nativeEvent,"finish")},Q=I.useMemo(()=>f==="hours"?!0:p%5===0,[f,p]),H=f==="minutes"?u:1,q=I.useRef(null);lE(()=>{r&&q.current.focus()},[r]);const le=pe=>Math.max(g,Math.min(m,pe)),Y=pe=>(pe+(m+1))%(m+1),G=pe=>{if(!D.current)switch(pe.key){case"Home":F(g,"partial"),pe.preventDefault();break;case"End":F(m,"partial"),pe.preventDefault();break;case"ArrowUp":F(Y(p+H),"partial"),pe.preventDefault();break;case"ArrowDown":F(Y(p-H),"partial"),pe.preventDefault();break;case"PageUp":F(le(p+5),"partial"),pe.preventDefault();break;case"PageDown":F(le(p-5),"partial"),pe.preventDefault();break;case"Enter":case" ":F(p,"finish"),pe.preventDefault();break}};return S.jsxs(kTi,{className:Nn(T.root,b),children:[S.jsxs(ITi,{className:T.clock,children:[S.jsx(NTi,{onTouchMove:j,onTouchStart:j,onTouchEnd:W,onMouseUp:ee,onMouseMove:J,ownerState:{disabled:v},className:T.squareMask}),!M&&S.jsxs(I.Fragment,{children:[S.jsx(PTi,{className:T.pin}),s!=null&&S.jsx(CTi,{type:f,viewValue:p,isInner:P,hasSelected:Q})]}),S.jsx(LTi,{"aria-activedescendant":h,"aria-label":A.clockLabelText(f,s,E,s==null?null:E.format(s,"fullTime")),ref:q,role:"listbox",onKeyDown:G,tabIndex:0,className:T.wrapper,children:o})]}),n&&i&&S.jsxs(I.Fragment,{children:[S.jsx(MTi,{onClick:y?void 0:()=>a("am"),disabled:v||c===null,ownerState:w,className:T.amButton,title:X1(E,"am"),children:S.jsx(UPt,{variant:"caption",className:T.meridiemText,children:X1(E,"am")})}),S.jsx(OTi,{disabled:v||c===null,onClick:y?void 0:()=>a("pm"),ownerState:w,className:T.pmButton,title:X1(E,"pm"),children:S.jsx(UPt,{variant:"caption",className:T.meridiemText,children:X1(E,"pm")})})]})]})}function FTi(e){return _l("MuiClockNumber",e)}var wie=Pl("MuiClockNumber",["root","selected","disabled"]),BTi=["className","disabled","index","inner","label","selected"],jTi=e=>{const{classes:t,selected:n,disabled:i}=e;return ul({root:["root",n&&"selected",i&&"disabled"]},FTi,t)},zTi=Mt("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${wie.disabled}`]:t.disabled},{[`&.${wie.selected}`]:t.selected}]})(({theme:e})=>({height:DD,width:DD,position:"absolute",left:`calc((100% - ${DD}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${wie.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${wie.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{inner:!0},style:lt({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function S0n(e){const t=Vs({props:e,name:"MuiClockNumber"}),{className:n,disabled:i,index:r,inner:o,label:s,selected:a}=t,l=zr(t,BTi),c=t,u=jTi(c),d=r%12/12*Math.PI*2-Math.PI/2,h=(P9-DD-2)/2*(o?.65:1),f=Math.round(Math.cos(d)*h),p=Math.round(Math.sin(d)*h);return S.jsx(zTi,lt({className:Nn(u.root,n),"aria-disabled":i?!0:void 0,"aria-selected":a?!0:void 0,role:"option",style:{transform:`translate(${f}px, ${p+(P9-DD)/2}px`},ownerState:c},l,{children:s}))}var VTi=({ampm:e,value:t,getClockNumberText:n,isDisabled:i,selectedId:r,utils:o})=>{const s=t?o.getHours(t):null,a=[],l=e?1:0,c=e?12:23,u=d=>s===null?!1:e?d===12?s===12||s===0:s===d||s-12===d:s===d;for(let d=l;d<=c;d+=1){let h=d.toString();d===0&&(h="00");const f=!e&&(d===0||d>12);h=o.formatNumber(h);const p=u(d);a.push(S.jsx(S0n,{id:p?r:void 0,index:d,inner:f,selected:p,disabled:i(d),label:h,"aria-label":n(h)},d))}return a},$Pt=({utils:e,value:t,isDisabled:n,getClockNumberText:i,selectedId:r})=>{const o=e.formatNumber;return[[5,o("05")],[10,o("10")],[15,o("15")],[20,o("20")],[25,o("25")],[30,o("30")],[35,o("35")],[40,o("40")],[45,o("45")],[50,o("50")],[55,o("55")],[0,o("00")]].map(([s,a],l)=>{const c=s===t;return S.jsx(S0n,{label:a,id:c?r:void 0,index:l+1,inner:!1,disabled:n(s),selected:c,"aria-label":i(a)},s)})},_Qe=({timezone:e,value:t,defaultValue:n,referenceDate:i,onChange:r,valueManager:o})=>{const s=fa(),a=I.useRef(n),l=t??a.current??o.emptyValue,c=I.useMemo(()=>o.getTimezone(s,l),[s,o,l]),u=qr(p=>c==null?p:o.setTimezone(s,c,p));let d;e?d=e:c?d=c:i?d=s.getTimezone(i):d="default";const h=I.useMemo(()=>o.setTimezone(s,d,l),[o,s,d,l]),f=qr((p,...g)=>{const m=u(p);r?.(m,...g)});return{value:h,handleValueChange:f,timezone:d}},pj=({name:e,timezone:t,value:n,defaultValue:i,referenceDate:r,onChange:o,valueManager:s})=>{const[a,l]=x2({name:e,state:"value",controlled:n,default:i??s.emptyValue}),c=qr((u,...d)=>{l(u),o?.(u,...d)});return _Qe({timezone:t,value:a,defaultValue:void 0,referenceDate:r,onChange:c,valueManager:s})},B1={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},HTi=e=>Math.max(...e.map(t=>B1[t.type]??1)),j3=(e,t,n)=>{if(t===B1.year)return e.startOfYear(n);if(t===B1.month)return e.startOfMonth(n);if(t===B1.day)return e.startOfDay(n);let i=n;return t<B1.minutes&&(i=e.setMinutes(i,0)),t<B1.seconds&&(i=e.setSeconds(i,0)),t<B1.milliseconds&&(i=e.setMilliseconds(i,0)),i},WTi=({props:e,utils:t,granularity:n,timezone:i,getTodayDate:r})=>{let o=r?r():j3(t,n,bQe(t,i));e.minDate!=null&&t.isAfterDay(e.minDate,o)&&(o=j3(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,o)&&(o=j3(t,n,e.maxDate));const s=BQ(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&s(e.minTime,o)&&(o=j3(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Bhe(t,o,e.minTime))),e.maxTime!=null&&s(o,e.maxTime)&&(o=j3(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Bhe(t,o,e.maxTime))),o},x0n=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},UTi=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},w0e=(e,t)=>{const n=[],i=e.date(void 0,"default"),r=e.startOfWeek(i),o=e.endOfWeek(i);let s=r;for(;e.isBefore(s,o);)n.push(s),s=e.addDays(s,1);return n.map(a=>e.formatByString(a,t))},E0n=(e,t,n,i)=>{switch(n){case"month":return yQe(e,e.date(void 0,t)).map(r=>e.formatByString(r,i));case"weekDay":return w0e(e,i);case"meridiem":{const r=e.date(void 0,t);return[e.startOfDay(r),e.endOfDay(r)].map(o=>e.formatByString(o,i))}default:return[]}},qPt="s",$Ti=["0","1","2","3","4","5","6","7","8","9"],qTi=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),qPt)==="0"?$Ti:Array.from({length:10}).map((i,r)=>e.formatByString(e.setSeconds(t,r),qPt))},E2=(e,t)=>{if(t[0]==="0")return e;const n=[];let i="";for(let r=0;r<e.length;r+=1){i+=e[r];const o=t.indexOf(i);o>-1&&(n.push(o.toString()),i="")}return n.join("")},wQe=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),GPt=(e,t)=>{const n=E2(e,t);return n!==" "&&!Number.isNaN(Number(n))},A0n=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},D0n=(e,t,n,i,r)=>{if(r.type==="day"&&r.contentType==="digit-with-letter"){const s=e.setDate(n.longestMonth,t);return e.formatByString(s,r.format)}let o=t.toString();return r.hasLeadingZerosInInput&&(o=A0n(o,r.maxLength)),wQe(o,i)},GTi=(e,t,n,i,r,o,s,a)=>{const l=UTi(i),c=i==="Home",u=i==="End",d=n.value===""||c||u,h=()=>{const p=r[n.type]({currentDate:s,format:n.format,contentType:n.contentType}),g=y=>D0n(e,y,p,o,n),m=n.type==="minutes"&&a?.minutesStep?a.minutesStep:1;let v;if(d){if(n.type==="year"&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);l>0||c?v=p.minimum:v=p.maximum}else v=parseInt(E2(n.value,o),10)+l*m;return v%m!==0&&((l<0||c)&&(v+=m-(m+v)%m),(l>0||u)&&(v-=v%m)),v>p.maximum?g(p.minimum+(v-p.maximum-1)%(p.maximum-p.minimum+1)):v<p.minimum?g(p.maximum-(p.minimum-v-1)%(p.maximum-p.minimum+1)):g(v)},f=()=>{const p=E0n(e,t,n.type,n.format);if(p.length===0)return n.value;if(d)return l>0||c?p[0]:p[p.length-1];const v=((p.indexOf(n.value)+l)%p.length+p.length)%p.length;return p[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?h():f()},CQe=(e,t,n)=>{let i=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(i=Number(E2(i,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&i.length===1&&(i=`${i}‎`),t==="input-rtl"&&(i=`⁨${i}⁩`),i},KPt=(e,t,n,i)=>e.formatByString(e.parse(t,n),i),KTi=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,T0n=(e,t,n,i)=>{if(t!=="digit")return!1;const r=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&i==="YY"?!0:e.formatByString(e.setYear(r,1),i).startsWith("0");case"month":return e.formatByString(e.startOfYear(r),i).length>1;case"day":return e.formatByString(e.startOfMonth(r),i).length>1;case"weekDay":return e.formatByString(e.startOfWeek(r),i).length>1;case"hours":return e.formatByString(e.setHours(r,1),i).length>1;case"minutes":return e.formatByString(e.setMinutes(r,1),i).length>1;case"seconds":return e.formatByString(e.setSeconds(r,1),i).length>1;default:throw new Error("Invalid section type")}},YTi=(e,t,n)=>{const i=t.some(l=>l.type==="day"),r=[],o=[];for(let l=0;l<t.length;l+=1){const c=t[l];i&&c.type==="weekDay"||(r.push(c.format),o.push(CQe(c,"non-input",n)))}const s=r.join(" "),a=o.join(" ");return e.parse(a,s)},QTi=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),ZTi=(e,t,n)=>{const r=e.map(o=>{const s=CQe(o,n?"input-rtl":"input-ltr",t);return`${o.startSeparator}${s}${o.endSeparator}`}).join("");return n?`⁦${r}⁩`:r},XTi=(e,t,n)=>{const i=e.date(void 0,n),r=e.endOfYear(i),o=e.endOfDay(i),{maxDaysInMonth:s,longestMonth:a}=yQe(e,i).reduce((l,c)=>{const u=e.getDaysInMonth(c);return u>l.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:c}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:KTi(e,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:l})=>({minimum:1,maximum:l!=null&&e.isValid(l)?e.getDaysInMonth(l):s,longestMonth:a}),weekDay:({format:l,contentType:c})=>{if(c==="digit"){const u=w0e(e,l).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const c=e.getHours(o);return E2(e.formatByString(e.endOfDay(i),l),t)!==c.toString()?{minimum:1,maximum:Number(E2(e.formatByString(e.startOfDay(i),l),t))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},JTi=(e,t,n,i)=>{switch(t.type){case"year":return e.setYear(i,e.getYear(n));case"month":return e.setMonth(i,e.getMonth(n));case"weekDay":{const r=w0e(e,t.format),o=e.formatByString(n,t.format),s=r.indexOf(o),l=r.indexOf(t.value)-s;return e.addDays(n,l)}case"day":return e.setDate(i,e.getDate(n));case"meridiem":{const r=e.getHours(n)<12,o=e.getHours(i);return r&&o>=12?e.addHours(i,-12):!r&&o<12?e.addHours(i,12):i}case"hours":return e.setHours(i,e.getHours(n));case"minutes":return e.setMinutes(i,e.getMinutes(n));case"seconds":return e.setSeconds(i,e.getSeconds(n));default:return i}},YPt={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},QPt=(e,t,n,i,r)=>[...n].sort((o,s)=>YPt[o.type]-YPt[s.type]).reduce((o,s)=>!r||s.modified?JTi(e,s,t,o):o,i),eki=()=>navigator.userAgent.toLowerCase().includes("android"),tki=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,d=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const i={},r={};let o=0,s=0,a=e.length-1;for(;a>=0;){s=e.findIndex((l,c)=>c>=o&&l.endSeparator?.includes(" ")&&l.endSeparator!==" / "),s===-1&&(s=e.length-1);for(let l=s;l>=o;l-=1)r[l]=a,i[a]=l,a-=1;o=s+1}return e.forEach((l,c)=>{const u=r[c],d=u===0?null:i[u-1],h=u===e.length-1?null:i[u+1];n[c]={leftIndex:d,rightIndex:h}}),{neighbors:n,startIndex:i[0],endIndex:i[e.length-1]}},o7e=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(i=>i.type===e);return n===-1?null:n}return e},nki=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},iki=(e,t)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},rki=["value","referenceDate"],Wd={emptyValue:null,getTodayValue:bQe,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,i=zr(e,rki);return t!=null&&i.utils.isValid(t)?t:n??WTi(i)},cleanValue:xTi,areValuesEqual:ETi,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},SQe={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,i)=>!e.isValid(t)&&!!n?n:i(t),getV7HiddenInputValueFromSections:QTi,getV6InputValueFromSections:ZTi,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},xQe=({value:e,referenceDate:t,utils:n,props:i,timezone:r})=>{const o=I.useMemo(()=>Wd.getInitialReferenceValue({value:e,utils:n,props:i,referenceDate:t,granularity:B1.day,timezone:r,getTodayDate:()=>bQe(n,r,"date")}),[]);return e??o},oki=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],ski=e=>{const{classes:t}=e;return ul({root:["root"],arrowSwitcher:["arrowSwitcher"]},dTi,t)},aki=Mt(_0e,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),lki=Mt(v0n,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),cki=["hours","minutes"],uki=I.forwardRef(function(t,n){const i=fa(),r=Vs({props:t,name:"MuiTimeClock"}),{ampm:o=i.is12HourCycleInCurrentLocale(),ampmInClock:s=!1,autoFocus:a,slots:l,slotProps:c,value:u,defaultValue:d,referenceDate:h,disableIgnoringDatePartForTimeValidation:f=!1,maxTime:p,minTime:g,disableFuture:m,disablePast:v,minutesStep:y=1,shouldDisableTime:b,showViewSwitcher:w,onChange:E,view:A,views:D=cki,openTo:T,onViewChange:M,focusedView:P,onFocusedViewChange:F,className:N,disabled:j,readOnly:W,timezone:J}=r,ee=zr(r,oki),{value:Q,handleValueChange:H,timezone:q}=pj({name:"TimeClock",timezone:J,value:u,defaultValue:d,referenceDate:h,onChange:E,valueManager:Wd}),le=xQe({value:Q,referenceDate:h,utils:i,props:r,timezone:q}),Y=wf(),G=IF(q),{view:pe,setView:U,previousView:K,nextView:ie,setValueAndGoToNextView:ce}=jQ({view:A,views:D,openTo:T,onViewChange:M,onChange:H,focusedView:P,onFocusedViewChange:F}),{meridiemMode:de,handleMeridiemChange:oe}=m0e(le,o,ce),me=I.useCallback((qe,$)=>{const he=BQ(f,i),Ie=$==="hours"||$==="minutes"&&D.includes("seconds"),Be=({start:Ye,end:it})=>!(g&&he(g,it)||p&&he(Ye,p)||m&&he(Ye,G)||v&&he(G,Ie?it:Ye)),ze=(Ye,it=1)=>{if(Ye%it!==0)return!1;if(b)switch($){case"hours":return!b(i.setHours(le,Ye),"hours");case"minutes":return!b(i.setMinutes(le,Ye),"minutes");case"seconds":return!b(i.setSeconds(le,Ye),"seconds");default:return!1}return!0};switch($){case"hours":{const Ye=UG(qe,de,o),it=i.setHours(le,Ye);if(i.getHours(it)!==Ye)return!0;const ft=i.setSeconds(i.setMinutes(it,0),0),ct=i.setSeconds(i.setMinutes(it,59),59);return!Be({start:ft,end:ct})||!ze(Ye)}case"minutes":{const Ye=i.setMinutes(le,qe),it=i.setSeconds(Ye,0),ft=i.setSeconds(Ye,59);return!Be({start:it,end:ft})||!ze(qe,y)}case"seconds":{const Ye=i.setSeconds(le,qe);return!Be({start:Ye,end:Ye})||!ze(qe)}default:throw new Error("not supported")}},[o,le,f,p,de,g,y,b,i,m,v,G,D]),Ce=hj(),Se=I.useMemo(()=>{switch(pe){case"hours":{const qe=(Ie,Be)=>{const ze=UG(Ie,de,o);ce(i.setHours(le,ze),Be,"hours")},$=i.getHours(le);let he;return o?$>12?he=[12,23]:he=[0,11]:he=[0,23],{onChange:qe,viewValue:$,children:VTi({value:Q,utils:i,ampm:o,getClockNumberText:Y.hoursClockNumberText,isDisabled:Ie=>j||me(Ie,"hours"),selectedId:Ce}),viewRange:he}}case"minutes":{const qe=i.getMinutes(le);return{viewValue:qe,onChange:(he,Ie)=>{ce(i.setMinutes(le,he),Ie,"minutes")},children:$Pt({utils:i,value:qe,getClockNumberText:Y.minutesClockNumberText,isDisabled:he=>j||me(he,"minutes"),selectedId:Ce}),viewRange:[0,59]}}case"seconds":{const qe=i.getSeconds(le);return{viewValue:qe,onChange:(he,Ie)=>{ce(i.setSeconds(le,he),Ie,"seconds")},children:$Pt({utils:i,value:qe,getClockNumberText:Y.secondsClockNumberText,isDisabled:he=>j||me(he,"seconds"),selectedId:Ce}),viewRange:[0,59]}}default:throw new Error("You must provide the type for ClockView")}},[pe,i,Q,o,Y.hoursClockNumberText,Y.minutesClockNumberText,Y.secondsClockNumberText,de,ce,le,me,Ce,j]),De=r,Me=ski(De);return S.jsxs(aki,lt({ref:n,className:Nn(Me.root,N),ownerState:De},ee,{children:[S.jsx(RTi,lt({autoFocus:a??!!P,ampmInClock:s&&D.includes("hours"),value:Q,type:pe,ampm:o,minutesStep:y,isTimeDisabled:me,meridiemMode:de,handleMeridiemChange:oe,selectedId:Ce,disabled:j,readOnly:W},Se)),w&&S.jsx(lki,{className:Me.arrowSwitcher,slots:l,slotProps:c,onGoToPrevious:()=>U(K),isPreviousDisabled:!K,previousLabel:Y.openPreviousView,onGoToNext:()=>U(ie),isNextDisabled:!ie,nextLabel:Y.openNextView,ownerState:De})]}))}),dki=I.createContext({}),TD=dki;function hki(e){return kr("MuiDivider",e)}var fki=Ir("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),ZPt=fki,pki=e=>{const{absolute:t,children:n,classes:i,flexItem:r,light:o,orientation:s,textAlign:a,variant:l}=e;return Lr({root:["root",t&&"absolute",l,o&&"light",s==="vertical"&&"vertical",r&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},hki,i)},gki=Mt("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(gr(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:pr(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),mki=Mt("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(gr(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),s7e=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiDivider"}),{absolute:r=!1,children:o,className:s,orientation:a="horizontal",component:l=o||a==="vertical"?"div":"hr",flexItem:c=!1,light:u=!1,role:d=l!=="hr"?"separator":void 0,textAlign:h="center",variant:f="fullWidth",...p}=i,g={...i,absolute:r,component:l,flexItem:c,light:u,orientation:a,role:d,textAlign:h,variant:f},m=pki(g);return S.jsx(gki,{as:l,className:Nn(m.root,s),role:d,ref:n,ownerState:g,"aria-orientation":d==="separator"&&(l!=="hr"||a==="vertical")?a:void 0,...p,children:o?S.jsx(mki,{className:m.wrapper,ownerState:g,children:o}):null})});s7e&&(s7e.muiSkipListHighlight=!0);var cE=s7e;function vki(e){return kr("MuiListItemIcon",e)}var yki=Ir("MuiListItemIcon",["root","alignItemsFlexStart"]),XPt=yki,bki=e=>{const{alignItems:t,classes:n}=e;return Lr({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},vki,n)},_ki=Mt("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(gr(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),wki=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiListItemIcon"}),{className:r,...o}=i,s=I.useContext(TD),a={...i,alignItems:s.alignItems},l=bki(a);return S.jsx(_ki,{className:Nn(l.root,r),ownerState:a,ref:n,...o})}),$m=wki;function Cki(e){return kr("MuiListItemText",e)}var Ski=Ir("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),S6=Ski;function wo(e,t){const{className:n,elementType:i,ownerState:r,externalForwardedProps:o,internalForwardedProps:s,shouldForwardComponentProp:a=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...h}=o,f=u[e]||i,p=Zvn(d[e],r),{props:{component:g,...m},internalRef:v}=Qvn({className:n,...l,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:p}),y=LC(v,p?.ref,t.ref),b=e==="root"?g||c:g,w=Yvn(f,{...e==="root"&&!c&&!u[e]&&s,...e!=="root"&&!u[e]&&s,...m,...b&&!a&&{as:b},...b&&a&&{component:b},ref:y},r);return[f,w]}var xki=e=>{const{classes:t,inset:n,primary:i,secondary:r,dense:o}=e;return Lr({root:["root",n&&"inset",o&&"dense",i&&r&&"multiline"],primary:["primary"],secondary:["secondary"]},Cki,t)},Eki=Mt("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${S6.primary}`]:t.primary},{[`& .${S6.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${FPt.root}:where(& .${S6.primary})`]:{display:"block"},[`.${FPt.root}:where(& .${S6.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Aki=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiListItemText"}),{children:r,className:o,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d,slots:h={},slotProps:f={},...p}=i,{dense:g}=I.useContext(TD);let m=l??r,v=u;const y={...i,disableTypography:s,inset:a,primary:!!m,secondary:!!v,dense:g},b=xki(y),w={slots:h,slotProps:{primary:c,secondary:d,...f}},[E,A]=wo("root",{className:Nn(b.root,o),elementType:Eki,externalForwardedProps:{...w,...p},ownerState:y,ref:n}),[D,T]=wo("primary",{className:b.primary,elementType:Xn,externalForwardedProps:w,ownerState:y}),[M,P]=wo("secondary",{className:b.secondary,elementType:Xn,externalForwardedProps:w,ownerState:y});return m!=null&&m.type!==Xn&&!s&&(m=S.jsx(D,{variant:g?"body2":"body1",component:T?.variant?void 0:"span",...T,children:m})),v!=null&&v.type!==Xn&&!s&&(v=S.jsx(M,{variant:"body2",color:"textSecondary",...P,children:v})),S.jsxs(E,{...A,children:[m,v]})}),u0=Aki;function Dki(e){return kr("MuiMenuItem",e)}var Tki=Ir("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),z3=Tki,kki=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Iki=e=>{const{disabled:t,dense:n,divider:i,disableGutters:r,selected:o,classes:s}=e,l=Lr({root:["root",n&&"dense",t&&"disabled",!r&&"gutters",i&&"divider",o&&"selected"]},Dki,s);return{...s,...l}},Lki=Mt(vg,{shouldForwardProp:e=>kg(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:kki})(gr(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${z3.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${z3.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${z3.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${z3.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${z3.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ZPt.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ZPt.inset}`]:{marginLeft:52},[`& .${S6.root}`]:{marginTop:0,marginBottom:0},[`& .${S6.inset}`]:{paddingLeft:36},[`& .${XPt.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${XPt.root} svg`]:{fontSize:"1.25rem"}}}]}))),Nki=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:h,...f}=i,p=I.useContext(TD),g=I.useMemo(()=>({dense:s||p.dense||!1,disableGutters:l}),[p.dense,s,l]),m=I.useRef(null);p0e(()=>{r&&m.current&&m.current.focus()},[r]);const v={...i,dense:g.dense,divider:a,disableGutters:l},y=Iki(i),b=pb(m,n);let w;return i.disabled||(w=d!==void 0?d:-1),S.jsx(TD.Provider,{value:g,children:S.jsx(Lki,{ref:b,role:u,tabIndex:w,component:o,focusVisibleClassName:Nn(y.focusVisible,c),className:Nn(y.root,h),...f,ownerState:v,classes:y})})}),bo=Nki;function Pki(e){return kr("MuiList",e)}Ir("MuiList",["root","padding","dense","subheader"]);var Mki=e=>{const{classes:t,disablePadding:n,dense:i,subheader:r}=e;return Lr({root:["root",!n&&"padding",i&&"dense",r&&"subheader"]},Pki,t)},Oki=Mt("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Rki=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiList"}),{children:r,className:o,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=i,d=I.useMemo(()=>({dense:a}),[a]),h={...i,component:s,dense:a,disablePadding:l},f=Mki(h);return S.jsx(TD.Provider,{value:d,children:S.jsxs(Oki,{as:s,className:Nn(f.root,o),ref:n,ownerState:h,...u,children:[c,r]})})}),k0n=Rki,Fki=Gvn;function KPe(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function JPt(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function I0n(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function V3(e,t,n,i,r,o){let s=!1,a=r(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const l=i?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!I0n(a,o)||l)a=r(e,a,n);else return a.focus(),!0}return!1}var Bki=I.forwardRef(function(t,n){const{actions:i,autoFocus:r=!1,autoFocusItem:o=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...h}=t,f=I.useRef(null),p=I.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});p0e(()=>{r&&f.current.focus()},[r]),I.useImperativeHandle(i,()=>({adjustStyleForScrollbar:(b,{direction:w})=>{const E=!f.current.style.width;if(b.clientHeight<f.current.clientHeight&&E){const A=`${Fki(WG(b))}px`;f.current.style[w==="rtl"?"paddingLeft":"paddingRight"]=A,f.current.style.width=`calc(100% + ${A})`}return f.current}}),[]);const g=b=>{const w=f.current,E=b.key;if(b.ctrlKey||b.metaKey||b.altKey){u&&u(b);return}const D=HG(w).activeElement;if(E==="ArrowDown")b.preventDefault(),V3(w,D,c,l,KPe);else if(E==="ArrowUp")b.preventDefault(),V3(w,D,c,l,JPt);else if(E==="Home")b.preventDefault(),V3(w,null,c,l,KPe);else if(E==="End")b.preventDefault(),V3(w,null,c,l,JPt);else if(E.length===1){const T=p.current,M=E.toLowerCase(),P=performance.now();T.keys.length>0&&(P-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&M!==T.keys[0]&&(T.repeating=!1)),T.lastTime=P,T.keys.push(M);const F=D&&!T.repeating&&I0n(D,T);T.previousKeyMatched&&(F||V3(w,D,!1,l,KPe,T))?b.preventDefault():T.previousKeyMatched=!1}u&&u(b)},m=pb(f,n);let v=-1;I.Children.forEach(s,(b,w)=>{if(!I.isValidElement(b)){v===w&&(v+=1,v>=s.length&&(v=-1));return}b.props.disabled||(d==="selectedMenu"&&b.props.selected||v===-1)&&(v=w),v===w&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(v+=1,v>=s.length&&(v=-1))});const y=I.Children.map(s,(b,w)=>{if(w===v){const E={};return o&&(E.autoFocus=!0),b.props.tabIndex===void 0&&d==="selectedMenu"&&(E.tabIndex=0),I.cloneElement(b,E)}return b});return S.jsx(k0n,{role:"menu",ref:m,className:a,onKeyDown:g,tabIndex:r?0:-1,...h,children:y})}),gj=Bki;function jki(e){return _l("MuiDigitalClock",e)}var zki=Pl("MuiDigitalClock",["root","list","item"]);function GB(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}var Vki=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},nv=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?nv(t.shadowRoot):t:null},jhe=e=>Array.from(e.children).indexOf(nv(document)),EQe="@media (pointer: fine)",Hki=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],Wki=e=>{const{classes:t}=e;return ul({root:["root"],list:["list"],item:["item"]},jki,t)},Uki=Mt(_0e,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:b0n,variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),$ki=Mt(gj,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),qki=Mt(bo,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:pr(e.palette.primary.main,e.palette.action.focusOpacity)}})),Gki=I.forwardRef(function(t,n){const i=fa(),r=I.useRef(null),o=Bv(n,r),s=I.useRef(null),a=Vs({props:t,name:"MuiDigitalClock"}),{ampm:l=i.is12HourCycleInCurrentLocale(),timeStep:c=30,autoFocus:u,slots:d,slotProps:h,value:f,defaultValue:p,referenceDate:g,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:v,minTime:y,disableFuture:b,disablePast:w,minutesStep:E=1,shouldDisableTime:A,onChange:D,view:T,openTo:M,onViewChange:P,focusedView:F,onFocusedViewChange:N,className:j,disabled:W,readOnly:J,views:ee=["hours"],skipDisabled:Q=!1,timezone:H}=a,q=zr(a,Hki),{value:le,handleValueChange:Y,timezone:G}=pj({name:"DigitalClock",timezone:H,value:f,defaultValue:p,referenceDate:g,onChange:D,valueManager:Wd}),pe=wf(),U=IF(G),K=I.useMemo(()=>lt({},a,{alreadyRendered:!!r.current}),[a]),ie=Wki(K),ce=d?.digitalClockItem??qki,de=kl({elementType:ce,externalSlotProps:h?.digitalClockItem,ownerState:{},className:ie.item}),oe=xQe({value:le,referenceDate:g,utils:i,props:a,timezone:G}),me=qr(he=>Y(he,"finish","hours")),{setValueAndGoToNextView:Ce}=jQ({view:T,views:ee,openTo:M,onViewChange:P,onChange:me,focusedView:F,onFocusedViewChange:N}),Se=qr(he=>{Ce(he,"finish")});I.useEffect(()=>{if(r.current===null)return;const he=r.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!he)return;const Ie=he.offsetTop;(u||F)&&he.focus(),r.current.scrollTop=Ie-4});const De=I.useCallback(he=>{const Ie=BQ(m,i),Be=()=>!(y&&Ie(y,he)||v&&Ie(he,v)||b&&Ie(he,U)||w&&Ie(U,he)),ze=()=>i.getMinutes(he)%E!==0?!1:A?!A(he,"hours"):!0;return!Be()||!ze()},[m,i,y,v,b,U,w,E,A]),Me=I.useMemo(()=>{const he=[];let Be=i.startOfDay(oe);for(;i.isSameDay(oe,Be);)he.push(Be),Be=i.addMinutes(Be,c);return he},[oe,c,i]),qe=Me.findIndex(he=>i.isEqual(he,oe)),$=he=>{switch(he.key){case"PageUp":{const Ie=jhe(s.current)-5,Be=s.current.children,ze=Math.max(0,Ie),Ye=Be[ze];Ye&&Ye.focus(),he.preventDefault();break}case"PageDown":{const Ie=jhe(s.current)+5,Be=s.current.children,ze=Math.min(Be.length-1,Ie),Ye=Be[ze];Ye&&Ye.focus(),he.preventDefault();break}}};return S.jsx(Uki,lt({ref:o,className:Nn(ie.root,j),ownerState:K},q,{children:S.jsx($ki,{ref:s,role:"listbox","aria-label":pe.timePickerToolbarTitle,className:ie.list,onKeyDown:$,children:Me.map((he,Ie)=>{if(Q&&De(he))return null;const Be=i.isEqual(he,le),ze=i.format(he,l?"fullTime12h":"fullTime24h"),Ye=qe===Ie||qe===-1&&Ie===0?0:-1;return S.jsx(ce,lt({onClick:()=>!J&&Se(he),selected:Be,disabled:W||De(he),disableRipple:J,role:"option","aria-disabled":J,"aria-selected":Be,tabIndex:Ye},de,{children:ze}),`${he.valueOf()}-${ze}`)})})}))});function Kki(e){return _l("MuiMultiSectionDigitalClock",e)}var eMt=Pl("MuiMultiSectionDigitalClock",["root"]);function Yki(e){return _l("MuiMultiSectionDigitalClockSection",e)}var Qki=Pl("MuiMultiSectionDigitalClockSection",["root","item"]),Zki=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],Xki=e=>{const{classes:t}=e;return ul({root:["root"],item:["item"]},Yki,t)},Jki=Mt(gj,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({maxHeight:b0n,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&::after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"},variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),eIi=Mt(bo,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:tU,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:pr(e.palette.primary.main,e.palette.action.focusOpacity)}})),tIi=I.forwardRef(function(t,n){const i=I.useRef(null),r=Bv(n,i),o=I.useRef(null),s=Vs({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:a,onChange:l,className:c,disabled:u,readOnly:d,items:h,active:f,slots:p,slotProps:g,skipDisabled:m}=s,v=zr(s,Zki),y=I.useMemo(()=>lt({},s,{alreadyRendered:!!i.current}),[s]),b=Xki(y),w=p?.digitalClockSectionItem??eIi;I.useEffect(()=>{if(i.current===null)return;const D=i.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(f&&a&&D&&D.focus(),!D||o.current===D)return;o.current=D;const T=D.offsetTop;i.current.scrollTop=T-4});const E=h.findIndex(D=>D.isFocused(D.value)),A=D=>{switch(D.key){case"PageUp":{const T=jhe(i.current)-5,M=i.current.children,P=Math.max(0,T),F=M[P];F&&F.focus(),D.preventDefault();break}case"PageDown":{const T=jhe(i.current)+5,M=i.current.children,P=Math.min(M.length-1,T),F=M[P];F&&F.focus(),D.preventDefault();break}}};return S.jsx(Jki,lt({ref:r,className:Nn(b.root,c),ownerState:y,autoFocusItem:a&&f,role:"listbox",onKeyDown:A},v,{children:h.map((D,T)=>{const M=D.isDisabled?.(D.value),P=u||M;if(m&&P)return null;const F=D.isSelected(D.value),N=E===T||E===-1&&T===0?0:-1;return S.jsx(w,lt({onClick:()=>!d&&l(D.value),selected:F,disabled:P,disableRipple:d,role:"option","aria-disabled":d||P||void 0,"aria-label":D.ariaLabel,"aria-selected":F,tabIndex:N,className:b.item},g?.digitalClockSectionItem,{children:D.label}),D.label)})}))}),nIi=({now:e,value:t,utils:n,ampm:i,isDisabled:r,resolveAriaLabel:o,timeStep:s,valueOrReferenceDate:a})=>{const l=t?n.getHours(t):null,c=[],u=(f,p)=>{const g=p??l;return g===null?!1:i?f===12?g===12||g===0:g===f||g-12===f:g===f},d=f=>u(f,n.getHours(a)),h=i?11:23;for(let f=0;f<=h;f+=s){let p=n.format(n.setHours(e,f),i?"hours12h":"hours24h");const g=o(parseInt(p,10).toString());p=n.formatNumber(p),c.push({value:f,label:p,isSelected:u,isDisabled:r,isFocused:d,ariaLabel:g})}return c},tMt=({value:e,utils:t,isDisabled:n,timeStep:i,resolveLabel:r,resolveAriaLabel:o,hasValue:s=!0})=>{const a=c=>e===null?!1:s&&e===c,l=c=>e===c;return[...Array.from({length:Math.ceil(60/i)},(c,u)=>{const d=i*u;return{value:d,label:t.formatNumber(r(d)),isDisabled:n,isSelected:a,isFocused:l,ariaLabel:o(d.toString())}})]},iIi=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],rIi=e=>{const{classes:t}=e;return ul({root:["root"]},Kki,t)},oIi=Mt(_0e,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),sIi=I.forwardRef(function(t,n){const i=fa(),r=Ph(),o=Vs({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:s=i.is12HourCycleInCurrentLocale(),timeSteps:a,autoFocus:l,slots:c,slotProps:u,value:d,defaultValue:h,referenceDate:f,disableIgnoringDatePartForTimeValidation:p=!1,maxTime:g,minTime:m,disableFuture:v,disablePast:y,minutesStep:b=1,shouldDisableTime:w,onChange:E,view:A,views:D=["hours","minutes"],openTo:T,onViewChange:M,focusedView:P,onFocusedViewChange:F,className:N,disabled:j,readOnly:W,skipDisabled:J=!1,timezone:ee}=o,Q=zr(o,iIi),{value:H,handleValueChange:q,timezone:le}=pj({name:"MultiSectionDigitalClock",timezone:ee,value:d,defaultValue:h,referenceDate:f,onChange:E,valueManager:Wd}),Y=wf(),G=IF(le),pe=I.useMemo(()=>lt({hours:1,minutes:5,seconds:5},a),[a]),U=xQe({value:H,referenceDate:f,utils:i,props:o,timezone:le}),K=qr((Be,ze,Ye)=>q(Be,ze,Ye)),ie=I.useMemo(()=>!s||!D.includes("hours")||D.includes("meridiem")?D:[...D,"meridiem"],[s,D]),{view:ce,setValueAndGoToNextView:de,focusedView:oe}=jQ({view:A,views:ie,openTo:T,onViewChange:M,onChange:K,focusedView:P,onFocusedViewChange:F}),me=qr(Be=>{de(Be,"finish","meridiem")}),{meridiemMode:Ce,handleMeridiemChange:Se}=m0e(U,s,me,"finish"),De=I.useCallback((Be,ze)=>{const Ye=BQ(p,i),it=ze==="hours"||ze==="minutes"&&ie.includes("seconds"),ft=({start:et,end:ut})=>!(m&&Ye(m,ut)||g&&Ye(et,g)||v&&Ye(et,G)||y&&Ye(G,it?ut:et)),ct=(et,ut=1)=>{if(et%ut!==0)return!1;if(w)switch(ze){case"hours":return!w(i.setHours(U,et),"hours");case"minutes":return!w(i.setMinutes(U,et),"minutes");case"seconds":return!w(i.setSeconds(U,et),"seconds");default:return!1}return!0};switch(ze){case"hours":{const et=UG(Be,Ce,s),ut=i.setHours(U,et);if(i.getHours(ut)!==et)return!0;const wt=i.setSeconds(i.setMinutes(ut,0),0),pt=i.setSeconds(i.setMinutes(ut,59),59);return!ft({start:wt,end:pt})||!ct(et)}case"minutes":{const et=i.setMinutes(U,Be),ut=i.setSeconds(et,0),wt=i.setSeconds(et,59);return!ft({start:ut,end:wt})||!ct(Be,b)}case"seconds":{const et=i.setSeconds(U,Be);return!ft({start:et,end:et})||!ct(Be)}default:throw new Error("not supported")}},[s,U,p,g,Ce,m,b,w,i,v,y,G,ie]),Me=I.useCallback(Be=>{switch(Be){case"hours":return{onChange:ze=>{const Ye=UG(ze,Ce,s);de(i.setHours(U,Ye),"finish","hours")},items:nIi({now:G,value:H,ampm:s,utils:i,isDisabled:ze=>De(ze,"hours"),timeStep:pe.hours,resolveAriaLabel:Y.hoursClockNumberText,valueOrReferenceDate:U})};case"minutes":return{onChange:ze=>{de(i.setMinutes(U,ze),"finish","minutes")},items:tMt({value:i.getMinutes(U),utils:i,isDisabled:ze=>De(ze,"minutes"),resolveLabel:ze=>i.format(i.setMinutes(G,ze),"minutes"),timeStep:pe.minutes,hasValue:!!H,resolveAriaLabel:Y.minutesClockNumberText})};case"seconds":return{onChange:ze=>{de(i.setSeconds(U,ze),"finish","seconds")},items:tMt({value:i.getSeconds(U),utils:i,isDisabled:ze=>De(ze,"seconds"),resolveLabel:ze=>i.format(i.setSeconds(G,ze),"seconds"),timeStep:pe.seconds,hasValue:!!H,resolveAriaLabel:Y.secondsClockNumberText})};case"meridiem":{const ze=X1(i,"am"),Ye=X1(i,"pm");return{onChange:Se,items:[{value:"am",label:ze,isSelected:()=>!!H&&Ce==="am",isFocused:()=>!!U&&Ce==="am",ariaLabel:ze},{value:"pm",label:Ye,isSelected:()=>!!H&&Ce==="pm",isFocused:()=>!!U&&Ce==="pm",ariaLabel:Ye}]}}default:throw new Error(`Unknown view: ${Be} found.`)}},[G,H,s,i,pe.hours,pe.minutes,pe.seconds,Y.hoursClockNumberText,Y.minutesClockNumberText,Y.secondsClockNumberText,Ce,de,U,De,Se]),qe=I.useMemo(()=>{if(!r)return ie;const Be=ie.filter(ze=>ze!=="meridiem");return Be.reverse(),ie.includes("meridiem")&&Be.push("meridiem"),Be},[r,ie]),$=I.useMemo(()=>ie.reduce((Be,ze)=>lt({},Be,{[ze]:Me(ze)}),{}),[ie,Me]),he=o,Ie=rIi(he);return S.jsx(oIi,lt({ref:n,className:Nn(Ie.root,N),ownerState:he,role:"group"},Q,{children:qe.map(Be=>S.jsx(tIi,{items:$[Be].items,onChange:$[Be].onChange,active:ce===Be,autoFocus:l||oe===Be,disabled:j,readOnly:W,slots:c,slotProps:u,skipDisabled:J,"aria-label":Y.selectViewText(Be)},Be))}))});function aIi(e){return _l("MuiPickersDay",e)}var DM=Pl("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),lIi=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],cIi=e=>{const{selected:t,disableMargin:n,disableHighlightToday:i,today:r,disabled:o,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:a,classes:l}=e,c=s&&!a;return ul({root:["root",t&&!c&&"selected",o&&"disabled",!n&&"dayWithMargin",!i&&r&&"today",s&&a&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},aIi,l)},L0n=({theme:e})=>lt({},e.typography.caption,{width:$G,height:$G,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:pr(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${DM.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${DM.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${DM.disabled}:not(.${DM.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${DM.disabled}&.${DM.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${v0e}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${DM.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),N0n=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},uIi=Mt(vg,{name:"MuiPickersDay",slot:"Root",overridesResolver:N0n})(L0n),dIi=Mt("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:N0n})(({theme:e})=>lt({},L0n({theme:e}),{opacity:0,pointerEvents:"none"})),H3=()=>{},hIi=I.forwardRef(function(t,n){const i=Vs({props:t,name:"MuiPickersDay"}),{autoFocus:r=!1,className:o,day:s,disabled:a=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:d,onDaySelect:h,onFocus:f=H3,onBlur:p=H3,onKeyDown:g=H3,onMouseDown:m=H3,onMouseEnter:v=H3,outsideCurrentMonth:y,selected:b=!1,showDaysOutsideCurrentMonth:w=!1,children:E,today:A=!1}=i,D=zr(i,lIi),T=lt({},i,{autoFocus:r,disabled:a,disableHighlightToday:l,disableMargin:c,selected:b,showDaysOutsideCurrentMonth:w,today:A}),M=cIi(T),P=fa(),F=I.useRef(null),N=Bv(F,n);lE(()=>{r&&!a&&!u&&!y&&F.current.focus()},[r,a,u,y]);const j=J=>{m(J),y&&J.preventDefault()},W=J=>{a||h(s),y&&J.currentTarget.focus(),d&&d(J)};return y&&!w?S.jsx(dIi,{className:Nn(M.root,M.hiddenDaySpacingFiller,o),ownerState:T,role:D.role}):S.jsx(uIi,lt({className:Nn(M.root,o),ref:N,centerRipple:!0,disabled:a,tabIndex:b?0:-1,onKeyDown:J=>g(J,s),onFocus:J=>f(J,s),onBlur:J=>p(J,s),onMouseEnter:J=>v(J,s),onClick:W,onMouseDown:j},D,{ownerState:T,children:E||P.format(s,"dayOfMonth")}))}),fIi=I.memo(hIi);function Cie(e){return parseInt(e,10)||0}var pIi={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function gIi(e){for(const t in e)return!1;return!0}function nMt(e){return gIi(e)||e.outerHeightStyle===0&&!e.overflowing}var mIi=I.forwardRef(function(t,n){const{onChange:i,maxRows:r,minRows:o=1,style:s,value:a,...l}=t,{current:c}=I.useRef(a!=null),u=I.useRef(null),d=LC(n,u),h=I.useRef(null),f=I.useRef(null),p=I.useCallback(()=>{const b=u.current,w=f.current;if(!b||!w)return;const A=S2(b).getComputedStyle(b);if(A.width==="0px")return{outerHeightStyle:0,overflowing:!1};w.style.width=A.width,w.value=b.value||t.placeholder||"x",w.value.slice(-1)===`
`&&(w.value+=" ");const D=A.boxSizing,T=Cie(A.paddingBottom)+Cie(A.paddingTop),M=Cie(A.borderBottomWidth)+Cie(A.borderTopWidth),P=w.scrollHeight;w.value="x";const F=w.scrollHeight;let N=P;o&&(N=Math.max(Number(o)*F,N)),r&&(N=Math.min(Number(r)*F,N)),N=Math.max(N,F);const j=N+(D==="border-box"?T+M:0),W=Math.abs(N-P)<=1;return{outerHeightStyle:j,overflowing:W}},[r,o,t.placeholder]),g=F_(()=>{const b=u.current,w=p();if(!b||!w||nMt(w))return!1;const E=w.outerHeightStyle;return h.current!=null&&h.current!==E}),m=I.useCallback(()=>{const b=u.current,w=p();if(!b||!w||nMt(w))return;const E=w.outerHeightStyle;h.current!==E&&(h.current=E,b.style.height=`${E}px`),b.style.overflow=w.overflowing?"hidden":""},[p]),v=I.useRef(-1);sw(()=>{const b=Wvn(m),w=u?.current;if(!w)return;const E=S2(w);E.addEventListener("resize",b);let A;return typeof ResizeObserver<"u"&&(A=new ResizeObserver(()=>{g()&&(A.unobserve(w),cancelAnimationFrame(v.current),m(),v.current=requestAnimationFrame(()=>{A.observe(w)}))}),A.observe(w)),()=>{b.clear(),cancelAnimationFrame(v.current),E.removeEventListener("resize",b),A&&A.disconnect()}},[p,m,g]),sw(()=>{m()});const y=b=>{c||m(),i&&i(b)};return S.jsxs(I.Fragment,{children:[S.jsx("textarea",{value:a,onChange:y,ref:d,rows:o,style:s,...l}),S.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:{...pIi.shadow,...s,paddingTop:0,paddingBottom:0}})]})}),vIi=mIi;function yIi(e){return typeof e=="string"}var kD=yIi;function LF({props:e,states:t,muiFormControl:n}){return t.reduce((i,r)=>(i[r]=e[r],n&&typeof e[r]>"u"&&(i[r]=n[r]),i),{})}var bIi=I.createContext(void 0),C0e=bIi;function ty(){return I.useContext(C0e)}function iMt(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function zhe(e,t=!1){return e&&(iMt(e.value)&&e.value!==""||t&&iMt(e.defaultValue)&&e.defaultValue!=="")}function _Ii(e){return e.startAdornment}function wIi(e){return kr("MuiInputBase",e)}var CIi=Ir("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Iy=CIi,rMt,S0e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${gn(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},x0e=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},SIi=e=>{const{classes:t,color:n,disabled:i,error:r,endAdornment:o,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:h,startAdornment:f,type:p}=e,g={root:["root",`color${gn(n)}`,i&&"disabled",r&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",h&&h!=="medium"&&`size${gn(h)}`,u&&"multiline",f&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",i&&"disabled",p==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return Lr(g,wIi,t)},E0e=Mt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:S0e})(gr(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Iy.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),A0e=Mt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:x0e})(gr(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},r=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Iy.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus::-ms-input-placeholder":r},[`&.${Iy.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:o})=>!o.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:o})=>o.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),oMt=uQe({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),xIi=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:s,className:a,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:h,disableInjectingGlobalStyles:f,endAdornment:p,error:g,fullWidth:m=!1,id:v,inputComponent:y="input",inputProps:b={},inputRef:w,margin:E,maxRows:A,minRows:D,multiline:T=!1,name:M,onBlur:P,onChange:F,onClick:N,onFocus:j,onKeyDown:W,onKeyUp:J,placeholder:ee,readOnly:Q,renderSuffix:H,rows:q,size:le,slotProps:Y={},slots:G={},startAdornment:pe,type:U="text",value:K,...ie}=i,ce=b.value!=null?b.value:K,{current:de}=I.useRef(ce!=null),oe=I.useRef(),me=I.useCallback(Yt=>{},[]),Ce=pb(oe,w,b.ref,me),[Se,De]=I.useState(!1),Me=ty(),qe=LF({props:i,muiFormControl:Me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});qe.focused=Me?Me.focused:Se,I.useEffect(()=>{!Me&&h&&Se&&(De(!1),P&&P())},[Me,h,Se,P]);const $=Me&&Me.onFilled,he=Me&&Me.onEmpty,Ie=I.useCallback(Yt=>{zhe(Yt)?$&&$():he&&he()},[$,he]);p0e(()=>{de&&Ie({value:ce})},[ce,Ie,de]);const Be=Yt=>{j&&j(Yt),b.onFocus&&b.onFocus(Yt),Me&&Me.onFocus?Me.onFocus(Yt):De(!0)},ze=Yt=>{P&&P(Yt),b.onBlur&&b.onBlur(Yt),Me&&Me.onBlur?Me.onBlur(Yt):De(!1)},Ye=(Yt,...Ut)=>{if(!de){const Gt=Yt.target||oe.current;if(Gt==null)throw new Error(ZD(1));Ie({value:Gt.value})}b.onChange&&b.onChange(Yt,...Ut),F&&F(Yt,...Ut)};I.useEffect(()=>{Ie(oe.current)},[]);const it=Yt=>{oe.current&&Yt.currentTarget===Yt.target&&oe.current.focus(),N&&N(Yt)};let ft=y,ct=b;T&&ft==="input"&&(q?ct={type:void 0,minRows:q,maxRows:q,...ct}:ct={type:void 0,maxRows:A,minRows:D,...ct},ft=vIi);const et=Yt=>{Ie(Yt.animationName==="mui-auto-fill-cancel"?oe.current:{value:"x"})};I.useEffect(()=>{Me&&Me.setAdornedStart(!!pe)},[Me,pe]);const ut={...i,color:qe.color||"primary",disabled:qe.disabled,endAdornment:p,error:qe.error,focused:qe.focused,formControl:Me,fullWidth:m,hiddenLabel:qe.hiddenLabel,multiline:T,size:qe.size,startAdornment:pe,type:U},wt=SIi(ut),pt=G.root||c.Root||E0e,_t=Y.root||u.root||{},Rt=G.input||c.Input||A0e;return ct={...ct,...Y.input??u.input},S.jsxs(I.Fragment,{children:[!f&&typeof oMt=="function"&&(rMt||(rMt=S.jsx(oMt,{}))),S.jsxs(pt,{..._t,ref:n,onClick:it,...ie,...!kD(pt)&&{ownerState:{...ut,..._t.ownerState}},className:Nn(wt.root,_t.className,a,Q&&"MuiInputBase-readOnly"),children:[pe,S.jsx(C0e.Provider,{value:null,children:S.jsx(Rt,{"aria-invalid":qe.error,"aria-describedby":r,autoComplete:o,autoFocus:s,defaultValue:d,disabled:qe.disabled,id:v,onAnimationStart:et,name:M,placeholder:ee,readOnly:Q,required:qe.required,rows:q,value:ce,onKeyDown:W,onKeyUp:J,type:U,...ct,...!kD(Rt)&&{as:ft,ownerState:{...ut,...ct.ownerState}},ref:Ce,className:Nn(wt.input,ct.className,Q&&"MuiInputBase-readOnly"),onBlur:ze,onChange:Ye,onFocus:Be})}),p,H?H({...qe,startAdornment:pe}):null]})]})}),zQ=xIi;function EIi(e){return kr("MuiInput",e)}var AIi={...Iy,...Ir("MuiInput",["root","underline","input"])},MI=AIi,DIi=e=>{const{classes:t,disableUnderline:n}=e,r=Lr({root:["root",!n&&"underline"],input:["input"]},EIi,t);return{...t,...r}},TIi=Mt(E0e,{shouldForwardProp:e=>kg(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...S0e(e,t),!n.disableUnderline&&t.underline]}})(gr(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:i})=>i.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${MI.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${MI.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${MI.disabled}, .${MI.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${MI.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($a()).map(([i])=>({props:{color:i,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i].main}`}}}))]}})),kIi=Mt(A0e,{name:"MuiInput",slot:"Input",overridesResolver:x0e})({}),P0n=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiInput"}),{disableUnderline:r=!1,components:o={},componentsProps:s,fullWidth:a=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:h="text",...f}=i,p=DIi(i),m={root:{ownerState:{disableUnderline:r}}},v=u??s?Ep(u??s,m):m,y=d.root??o.Root??TIi,b=d.input??o.Input??kIi;return S.jsx(zQ,{slots:{root:y,input:b},slotProps:v,fullWidth:a,inputComponent:l,multiline:c,ref:n,type:h,...f,classes:p})});P0n.muiName="Input";var M0n=P0n;function IIi(e){return kr("MuiFilledInput",e)}var LIi={...Iy,...Ir("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Ly=LIi,NIi=e=>{const{classes:t,disableUnderline:n,startAdornment:i,endAdornment:r,size:o,hiddenLabel:s,multiline:a}=e,l={root:["root",!n&&"underline",i&&"adornedStart",r&&"adornedEnd",o==="small"&&`size${gn(o)}`,s&&"hiddenLabel",a&&"multiline"],input:["input"]},c=Lr(l,IIi,t);return{...t,...c}},PIi=Mt(E0e,{shouldForwardProp:e=>kg(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...S0e(e,t),!n.disableUnderline&&t.underline]}})(gr(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Ly.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Ly.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ly.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ly.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ly.disabled}, .${Ly.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ly.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($a()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:a})=>s.multiline&&a==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),MIi=Mt(A0e,{name:"MuiFilledInput",slot:"Input",overridesResolver:x0e})(gr(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),O0n=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:o={},componentsProps:s,fullWidth:a=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:h={},type:f="text",...p}=i,g={...i,disableUnderline:r,fullWidth:a,inputComponent:c,multiline:u,type:f},m=NIi(i),v={root:{ownerState:g},input:{ownerState:g}},y=d??s?Ep(v,d??s):v,b=h.root??o.Root??PIi,w=h.input??o.Input??MIi;return S.jsx(zQ,{slots:{root:b,input:w},slotProps:y,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:f,...p,classes:m})});O0n.muiName="Input";var R0n=O0n,sMt,OIi=Mt("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:kg})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),RIi=Mt("legend",{name:"MuiNotchedOutlined",shouldForwardProp:kg})(gr(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function FIi(e){const{children:t,classes:n,className:i,label:r,notched:o,...s}=e,a=r!=null&&r!=="",l={...e,notched:o,withLabel:a};return S.jsx(OIi,{"aria-hidden":!0,className:i,ownerState:l,...s,children:S.jsx(RIi,{ownerState:l,children:a?S.jsx("span",{children:r}):sMt||(sMt=S.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}function BIi(e){return kr("MuiOutlinedInput",e)}var jIi={...Iy,...Ir("MuiOutlinedInput",["root","notchedOutline","input"])},s_=jIi,zIi=e=>{const{classes:t}=e,i=Lr({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},BIi,t);return{...t,...i}},VIi=Mt(E0e,{shouldForwardProp:e=>kg(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:S0e})(gr(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${s_.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${s_.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${s_.focused} .${s_.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter($a()).map(([n])=>({props:{color:n},style:{[`&.${s_.focused} .${s_.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${s_.error} .${s_.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${s_.disabled} .${s_.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:i})=>n.multiline&&i==="small",style:{padding:"8.5px 14px"}}]}})),HIi=Mt(FIi,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(gr(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),WIi=Mt(A0e,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:x0e})(gr(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),F0n=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiOutlinedInput"}),{components:r={},fullWidth:o=!1,inputComponent:s="input",label:a,multiline:l=!1,notched:c,slots:u={},slotProps:d={},type:h="text",...f}=i,p=zIi(i),g=ty(),m=LF({props:i,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...i,color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:g,fullWidth:o,hiddenLabel:m.hiddenLabel,multiline:l,size:m.size,type:h},y=u.root??r.Root??VIi,b=u.input??r.Input??WIi,[w,E]=wo("notchedOutline",{elementType:HIi,className:p.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:u,slotProps:d},additionalProps:{label:a!=null&&a!==""&&m.required?S.jsxs(I.Fragment,{children:[a," ","*"]}):a}});return S.jsx(zQ,{slots:{root:y,input:b},slotProps:d,renderSuffix:A=>S.jsx(w,{...E,notched:typeof c<"u"?c:!!(A.startAdornment||A.filled||A.focused)}),fullWidth:o,inputComponent:s,multiline:l,ref:n,type:h,...f,classes:{...p,notchedOutline:null}})});F0n.muiName="Input";var B0n=F0n;function UIi(e){return kr("MuiFormLabel",e)}var $Ii=Ir("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),K$=$Ii,qIi=e=>{const{classes:t,color:n,focused:i,disabled:r,error:o,filled:s,required:a}=e,l={root:["root",`color${gn(n)}`,r&&"disabled",o&&"error",s&&"filled",i&&"focused",a&&"required"],asterisk:["asterisk",o&&"error"]};return Lr(l,UIi,t)},GIi=Mt("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(gr(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter($a()).map(([t])=>({props:{color:t},style:{[`&.${K$.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${K$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${K$.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),KIi=Mt("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(gr(({theme:e})=>({[`&.${K$.error}`]:{color:(e.vars||e).palette.error.main}}))),YIi=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiFormLabel"}),{children:r,className:o,color:s,component:a="label",disabled:l,error:c,filled:u,focused:d,required:h,...f}=i,p=ty(),g=LF({props:i,muiFormControl:p,states:["color","required","focused","disabled","error","filled"]}),m={...i,color:g.color||"primary",component:a,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},v=qIi(m);return S.jsxs(GIi,{as:a,ownerState:m,className:Nn(v.root,o),ref:n,...f,children:[r,g.required&&S.jsxs(KIi,{ownerState:m,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})}),QIi=YIi;function ZIi(e){return kr("MuiInputLabel",e)}Ir("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var XIi=e=>{const{classes:t,formControl:n,size:i,shrink:r,disableAnimation:o,variant:s,required:a}=e,l={root:["root",n&&"formControl",!o&&"animated",r&&"shrink",i&&i!=="normal"&&`size${gn(i)}`,s],asterisk:[a&&"asterisk"]},c=Lr(l,ZIi,t);return{...t,...c}},JIi=Mt(QIi,{shouldForwardProp:e=>kg(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${K$.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(gr(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:i})=>t==="filled"&&n.shrink&&i==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),eLi=I.forwardRef(function(t,n){const i=Nr({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,margin:o,shrink:s,variant:a,className:l,...c}=i,u=ty();let d=s;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const h=LF({props:i,muiFormControl:u,states:["size","variant","required","focused"]}),f={...i,disableAnimation:r,formControl:u,shrink:d,size:h.size,variant:h.variant,required:h.required,focused:h.focused},p=XIi(f);return S.jsx(JIi,{"data-shrink":d,ref:n,className:Nn(p.root,l),...c,ownerState:f,classes:p})}),KG=eLi;function tLi(e){return kr("MuiFormControl",e)}Ir("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var nLi=e=>{const{classes:t,margin:n,fullWidth:i}=e,r={root:["root",n!=="none"&&`margin${gn(n)}`,i&&"fullWidth"]};return Lr(r,tLi,t)},iLi=Mt("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${gn(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),rLi=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiFormControl"}),{children:r,className:o,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:h=!1,margin:f="none",required:p=!1,size:g="medium",variant:m="outlined",...v}=i,y={...i,color:s,component:a,disabled:l,error:c,fullWidth:d,hiddenLabel:h,margin:f,required:p,size:g,variant:m},b=nLi(y),[w,E]=I.useState(()=>{let J=!1;return r&&I.Children.forEach(r,ee=>{if(!fce(ee,["Input","Select"]))return;const Q=fce(ee,["Select"])?ee.props.input:ee;Q&&_Ii(Q.props)&&(J=!0)}),J}),[A,D]=I.useState(()=>{let J=!1;return r&&I.Children.forEach(r,ee=>{fce(ee,["Input","Select"])&&(zhe(ee.props,!0)||zhe(ee.props.inputProps,!0))&&(J=!0)}),J}),[T,M]=I.useState(!1);l&&T&&M(!1);const P=u!==void 0&&!l?u:T;let F;I.useRef(!1);const N=I.useCallback(()=>{D(!0)},[]),j=I.useCallback(()=>{D(!1)},[]),W=I.useMemo(()=>({adornedStart:w,setAdornedStart:E,color:s,disabled:l,error:c,filled:A,focused:P,fullWidth:d,hiddenLabel:h,size:g,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:j,onFilled:N,registerEffect:F,required:p,variant:m}),[w,s,l,c,A,P,d,h,F,j,N,p,g,m]);return S.jsx(C0e.Provider,{value:W,children:S.jsx(iLi,{as:a,ownerState:y,className:Nn(b.root,o),ref:n,...v,children:r})})}),O9=rLi;function oLi(e){return kr("MuiFormHelperText",e)}var sLi=Ir("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),aMt=sLi,lMt,aLi=e=>{const{classes:t,contained:n,size:i,disabled:r,error:o,filled:s,focused:a,required:l}=e,c={root:["root",r&&"disabled",o&&"error",i&&`size${gn(i)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return Lr(c,oLi,t)},lLi=Mt("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${gn(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(gr(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${aMt.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${aMt.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),cLi=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiFormHelperText"}),{children:r,className:o,component:s="p",disabled:a,error:l,filled:c,focused:u,margin:d,required:h,variant:f,...p}=i,g=ty(),m=LF({props:i,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),v={...i,component:s,contained:m.variant==="filled"||m.variant==="outlined",variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete v.ownerState;const y=aLi(v);return S.jsx(lLi,{as:s,className:Nn(y.root,o),ref:n,...p,ownerState:v,children:r===" "?lMt||(lMt=S.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):r})}),AQe=cLi,j0n=e=>e.scrollTop;function R9(e,t){const{timeout:n,easing:i,style:r={}}=e;return{duration:r.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:r.transitionTimingFunction??(typeof i=="object"?i[t.mode]:i),delay:r.transitionDelay}}function a7e(e){return`scale(${e}, ${e**2})`}var uLi={entering:{opacity:1,transform:a7e(1)},entered:{opacity:1,transform:"none"}},YPe=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),l7e=I.forwardRef(function(t,n){const{addEndListener:i,appear:r=!0,children:o,easing:s,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:h,onExiting:f,style:p,timeout:g="auto",TransitionComponent:m=g0e,...v}=t,y=YO(),b=I.useRef(),w=cl(),E=I.useRef(null),A=pb(E,DF(o),n),D=J=>ee=>{if(J){const Q=E.current;ee===void 0?J(Q):J(Q,ee)}},T=D(u),M=D((J,ee)=>{j0n(J);const{duration:Q,delay:H,easing:q}=R9({style:p,timeout:g,easing:s},{mode:"enter"});let le;g==="auto"?(le=w.transitions.getAutoHeightDuration(J.clientHeight),b.current=le):le=Q,J.style.transition=[w.transitions.create("opacity",{duration:le,delay:H}),w.transitions.create("transform",{duration:YPe?le:le*.666,delay:H,easing:q})].join(","),l&&l(J,ee)}),P=D(c),F=D(f),N=D(J=>{const{duration:ee,delay:Q,easing:H}=R9({style:p,timeout:g,easing:s},{mode:"exit"});let q;g==="auto"?(q=w.transitions.getAutoHeightDuration(J.clientHeight),b.current=q):q=ee,J.style.transition=[w.transitions.create("opacity",{duration:q,delay:Q}),w.transitions.create("transform",{duration:YPe?q:q*.666,delay:YPe?Q:Q||q*.333,easing:H})].join(","),J.style.opacity=0,J.style.transform=a7e(.75),d&&d(J)}),j=D(h),W=J=>{g==="auto"&&y.start(b.current||0,J),i&&i(E.current,J)};return S.jsx(m,{appear:r,in:a,nodeRef:E,onEnter:M,onEntered:P,onEntering:T,onExit:N,onExited:j,onExiting:F,addEndListener:W,timeout:g==="auto"?null:g,...v,children:(J,{ownerState:ee,...Q})=>I.cloneElement(o,{style:{opacity:0,transform:a7e(.75),visibility:J==="exited"&&!a?"hidden":void 0,...uLi[J],...p,...o.props.style},ref:A,...Q})})});l7e&&(l7e.muiSupportAuto=!0);var VQ=l7e;function dLi(e){const t=gg(e);return t.body===e?S2(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Y$(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function cMt(e){return parseInt(S2(e).getComputedStyle(e).paddingRight,10)||0}function hLi(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||i}function uMt(e,t,n,i,r){const o=[t,n,...i];[].forEach.call(e.children,s=>{const a=!o.includes(s),l=!hLi(s);a&&l&&Y$(s,r)})}function QPe(e,t){let n=-1;return e.some((i,r)=>t(i)?(n=r,!0):!1),n}function fLi(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(dLi(i)){const s=Gvn(S2(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${cMt(i)+s}px`;const a=gg(i).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${cMt(l)+s}px`})}let o;if(i.parentNode instanceof DocumentFragment)o=gg(i).body;else{const s=i.parentElement,a=S2(i);o=s?.nodeName==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:i}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:s,property:a})=>{o?s.style.setProperty(a,o):s.style.removeProperty(a)})}}function pLi(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}var gLi=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Y$(e.modalRef,!1);const i=pLi(t);uMt(t,e.mount,e.modalRef,i,!0);const r=QPe(this.containers,o=>o.container===t);return r!==-1?(this.containers[r].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:i}),n)}mount(e,t){const n=QPe(this.containers,r=>r.modals.includes(e)),i=this.containers[n];i.restore||(i.restore=fLi(i,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const i=QPe(this.containers,o=>o.modals.includes(e)),r=this.containers[i];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(n,1),r.modals.length===0)r.restore&&r.restore(),e.modalRef&&Y$(e.modalRef,t),uMt(r.container,e.mount,e.modalRef,r.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=r.modals[r.modals.length-1];o.modalRef&&Y$(o.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},mLi=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function vLi(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function yLi(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function bLi(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||yLi(e))}function _Li(e){const t=[],n=[];return Array.from(e.querySelectorAll(mLi)).forEach((i,r)=>{const o=vLi(i);o===-1||!bLi(i)||(o===0?t.push(i):n.push({documentOrder:r,tabIndex:o,node:i}))}),n.sort((i,r)=>i.tabIndex===r.tabIndex?i.documentOrder-r.documentOrder:i.tabIndex-r.tabIndex).map(i=>i.node).concat(t)}function wLi(){return!0}function CLi(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:r=!1,getTabbable:o=_Li,isEnabled:s=wLi,open:a}=e,l=I.useRef(!1),c=I.useRef(null),u=I.useRef(null),d=I.useRef(null),h=I.useRef(null),f=I.useRef(!1),p=I.useRef(null),g=LC(DF(t),p),m=I.useRef(null);I.useEffect(()=>{!a||!p.current||(f.current=!n)},[n,a]),I.useEffect(()=>{if(!a||!p.current)return;const b=gg(p.current);return p.current.contains(b.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),f.current&&p.current.focus()),()=>{r||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),I.useEffect(()=>{if(!a||!p.current)return;const b=gg(p.current),w=D=>{m.current=D,!(i||!s()||D.key!=="Tab")&&b.activeElement===p.current&&D.shiftKey&&(l.current=!0,u.current&&u.current.focus())},E=()=>{const D=p.current;if(D===null)return;if(!b.hasFocus()||!s()||l.current){l.current=!1;return}if(D.contains(b.activeElement)||i&&b.activeElement!==c.current&&b.activeElement!==u.current)return;if(b.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!f.current)return;let T=[];if((b.activeElement===c.current||b.activeElement===u.current)&&(T=o(p.current)),T.length>0){const M=!!(m.current?.shiftKey&&m.current?.key==="Tab"),P=T[0],F=T[T.length-1];typeof P!="string"&&typeof F!="string"&&(M?F.focus():P.focus())}else D.focus()};b.addEventListener("focusin",E),b.addEventListener("keydown",w,!0);const A=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(A),b.removeEventListener("focusin",E),b.removeEventListener("keydown",w,!0)}},[n,i,r,s,a,o]);const v=b=>{d.current===null&&(d.current=b.relatedTarget),f.current=!0,h.current=b.target;const w=t.props.onFocus;w&&w(b)},y=b=>{d.current===null&&(d.current=b.relatedTarget),f.current=!0};return S.jsxs(I.Fragment,{children:[S.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),I.cloneElement(t,{ref:g,onFocus:v}),S.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}var z0n=CLi;function SLi(e){return typeof e=="function"?e():e}var xLi=I.forwardRef(function(t,n){const{children:i,container:r,disablePortal:o=!1}=t,[s,a]=I.useState(null),l=LC(I.isValidElement(i)?DF(i):null,n);if(sw(()=>{o||a(SLi(r)||document.body)},[r,o]),sw(()=>{if(s&&!o)return Q9e(n,s),()=>{Q9e(n,null)}},[n,s,o]),o){if(I.isValidElement(i)){const c={ref:l};return I.cloneElement(i,c)}return i}return s&&lf.createPortal(i,s)}),DQe=xLi,ELi={entering:{opacity:1},entered:{opacity:1}},ALi=I.forwardRef(function(t,n){const i=cl(),r={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:a,easing:l,in:c,onEnter:u,onEntered:d,onEntering:h,onExit:f,onExited:p,onExiting:g,style:m,timeout:v=r,TransitionComponent:y=g0e,...b}=t,w=I.useRef(null),E=pb(w,DF(a),n),A=W=>J=>{if(W){const ee=w.current;J===void 0?W(ee):W(ee,J)}},D=A(h),T=A((W,J)=>{j0n(W);const ee=R9({style:m,timeout:v,easing:l},{mode:"enter"});W.style.webkitTransition=i.transitions.create("opacity",ee),W.style.transition=i.transitions.create("opacity",ee),u&&u(W,J)}),M=A(d),P=A(g),F=A(W=>{const J=R9({style:m,timeout:v,easing:l},{mode:"exit"});W.style.webkitTransition=i.transitions.create("opacity",J),W.style.transition=i.transitions.create("opacity",J),f&&f(W)}),N=A(p),j=W=>{o&&o(w.current,W)};return S.jsx(y,{appear:s,in:c,nodeRef:w,onEnter:T,onEntered:M,onEntering:D,onExit:F,onExited:N,onExiting:P,addEndListener:j,timeout:v,...b,children:(W,{ownerState:J,...ee})=>I.cloneElement(a,{style:{opacity:0,visibility:W==="exited"&&!c?"hidden":void 0,...ELi[W],...m,...a.props.style},ref:E,...ee})})}),eN=ALi;function DLi(e){return kr("MuiBackdrop",e)}Ir("MuiBackdrop",["root","invisible"]);var TLi=e=>{const{classes:t,invisible:n}=e;return Lr({root:["root",n&&"invisible"]},DLi,t)},kLi=Mt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),ILi=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiBackdrop"}),{children:r,className:o,component:s="div",invisible:a=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:h={},TransitionComponent:f,transitionDuration:p,...g}=i,m={...i,component:s,invisible:a},v=TLi(m),y={transition:f,root:c.Root,...h},b={...u,...d},w={slots:y,slotProps:b},[E,A]=wo("root",{elementType:kLi,externalForwardedProps:w,className:Nn(v.root,o),ownerState:m}),[D,T]=wo("transition",{elementType:eN,externalForwardedProps:w,ownerState:m});return S.jsx(D,{in:l,timeout:p,...g,...T,children:S.jsx(E,{"aria-hidden":!0,...A,classes:v,ref:n,children:r})})}),V0n=ILi;function LLi(e){return typeof e=="function"?e():e}function NLi(e){return e?e.props.hasOwnProperty("in"):!1}var dMt=()=>{},Sie=new gLi;function PLi(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,closeAfterTransition:r=!1,onTransitionEnter:o,onTransitionExited:s,children:a,onClose:l,open:c,rootRef:u}=e,d=I.useRef({}),h=I.useRef(null),f=I.useRef(null),p=LC(f,u),[g,m]=I.useState(!c),v=NLi(a);let y=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(y=!1);const b=()=>gg(h.current),w=()=>(d.current.modalRef=f.current,d.current.mount=h.current,d.current),E=()=>{Sie.mount(w(),{disableScrollLock:i}),f.current&&(f.current.scrollTop=0)},A=F_(()=>{const J=LLi(t)||b().body;Sie.add(w(),J),f.current&&E()}),D=()=>Sie.isTopModal(w()),T=F_(J=>{h.current=J,J&&(c&&D()?E():f.current&&Y$(f.current,y))}),M=I.useCallback(()=>{Sie.remove(w(),y)},[y]);I.useEffect(()=>()=>{M()},[M]),I.useEffect(()=>{c?A():(!v||!r)&&M()},[c,M,v,r,A]);const P=J=>ee=>{J.onKeyDown?.(ee),!(ee.key!=="Escape"||ee.which===229||!D())&&(n||(ee.stopPropagation(),l&&l(ee,"escapeKeyDown")))},F=J=>ee=>{J.onClick?.(ee),ee.target===ee.currentTarget&&l&&l(ee,"backdropClick")};return{getRootProps:(J={})=>{const ee=q$(e);delete ee.onTransitionEnter,delete ee.onTransitionExited;const Q={...ee,...J};return{role:"presentation",...Q,onKeyDown:P(Q),ref:p}},getBackdropProps:(J={})=>{const ee=J;return{"aria-hidden":!0,...ee,onClick:F(ee),open:c}},getTransitionProps:()=>{const J=()=>{m(!1),o&&o()},ee=()=>{m(!0),s&&s(),r&&M()};return{onEnter:Y9e(J,a?.props.onEnter??dMt),onExited:Y9e(ee,a?.props.onExited??dMt)}},rootRef:p,portalRef:T,isTopModal:D,exited:g,hasTransition:v}}var MLi=PLi;function OLi(e){return kr("MuiModal",e)}Ir("MuiModal",["root","hidden","backdrop"]);var RLi=e=>{const{open:t,exited:n,classes:i}=e;return Lr({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},OLi,i)},FLi=Mt("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(gr(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),BLi=Mt(V0n,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),jLi=I.forwardRef(function(t,n){const i=Nr({name:"MuiModal",props:t}),{BackdropComponent:r=BLi,BackdropProps:o,classes:s,className:a,closeAfterTransition:l=!1,children:c,container:u,component:d,components:h={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:m=!1,disablePortal:v=!1,disableRestoreFocus:y=!1,disableScrollLock:b=!1,hideBackdrop:w=!1,keepMounted:E=!1,onBackdropClick:A,onClose:D,onTransitionEnter:T,onTransitionExited:M,open:P,slotProps:F={},slots:N={},theme:j,...W}=i,J={...i,closeAfterTransition:l,disableAutoFocus:p,disableEnforceFocus:g,disableEscapeKeyDown:m,disablePortal:v,disableRestoreFocus:y,disableScrollLock:b,hideBackdrop:w,keepMounted:E},{getRootProps:ee,getBackdropProps:Q,getTransitionProps:H,portalRef:q,isTopModal:le,exited:Y,hasTransition:G}=MLi({...J,rootRef:n}),pe={...J,exited:Y},U=RLi(pe),K={};if(c.props.tabIndex===void 0&&(K.tabIndex="-1"),G){const{onEnter:Ce,onExited:Se}=H();K.onEnter=Ce,K.onExited=Se}const ie={slots:{root:h.Root,backdrop:h.Backdrop,...N},slotProps:{...f,...F}},[ce,de]=wo("root",{ref:n,elementType:FLi,externalForwardedProps:{...ie,...W,component:d},getSlotProps:ee,ownerState:pe,className:Nn(a,U?.root,!pe.open&&pe.exited&&U?.hidden)}),[oe,me]=wo("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:ie,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:Ce=>Q({...Ce,onClick:Se=>{A&&A(Se),Ce?.onClick&&Ce.onClick(Se)}}),className:Nn(o?.className,U?.backdrop),ownerState:pe});return!E&&!P&&(!G||Y)?null:S.jsx(DQe,{ref:q,container:u,disablePortal:v,children:S.jsxs(ce,{...de,children:[!w&&r?S.jsx(oe,{...me}):null,S.jsx(z0n,{disableEnforceFocus:g,disableAutoFocus:p,disableRestoreFocus:y,isEnabled:le,open:P,children:I.cloneElement(c,K)})]})})}),H0n=jLi;function zLi(e){return kr("MuiPaper",e)}Ir("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var VLi=e=>{const{square:t,elevation:n,variant:i,classes:r}=e,o={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${n}`]};return Lr(o,zLi,r)},HLi=Mt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(gr(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),WLi=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiPaper"}),r=cl(),{className:o,component:s="div",elevation:a=1,square:l=!1,variant:c="elevation",...u}=i,d={...i,component:s,elevation:a,square:l,variant:c},h=VLi(d);return S.jsx(HLi,{as:s,ownerState:d,className:Nn(h.root,o),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[a]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${pr("#fff",X9e(a))}, ${pr("#fff",X9e(a))})`}},...u.style}})}),eS=WLi;function ULi(e){return kr("MuiPopover",e)}Ir("MuiPopover",["root","paper"]);function hMt(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function fMt(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function pMt(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function xie(e){return typeof e=="function"?e():e}var $Li=e=>{const{classes:t}=e;return Lr({root:["root"],paper:["paper"]},ULi,t)},qLi=Mt(H0n,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),W0n=Mt(eS,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),GLi=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:h=8,marginThreshold:f=16,open:p,PaperProps:g={},slots:m={},slotProps:v={},transformOrigin:y={vertical:"top",horizontal:"left"},TransitionComponent:b,transitionDuration:w="auto",TransitionProps:E={},disableScrollLock:A=!1,...D}=i,T=I.useRef(),M={...i,anchorOrigin:s,anchorReference:l,elevation:h,marginThreshold:f,transformOrigin:y,TransitionComponent:b,transitionDuration:w,TransitionProps:E},P=$Li(M),F=I.useCallback(()=>{if(l==="anchorPosition")return a;const me=xie(o),Se=(me&&me.nodeType===1?me:HG(T.current).body).getBoundingClientRect();return{top:Se.top+hMt(Se,s.vertical),left:Se.left+fMt(Se,s.horizontal)}},[o,s.horizontal,s.vertical,a,l]),N=I.useCallback(me=>({vertical:hMt(me,y.vertical),horizontal:fMt(me,y.horizontal)}),[y.horizontal,y.vertical]),j=I.useCallback(me=>{const Ce={width:me.offsetWidth,height:me.offsetHeight},Se=N(Ce);if(l==="none")return{top:null,left:null,transformOrigin:pMt(Se)};const De=F();let Me=De.top-Se.vertical,qe=De.left-Se.horizontal;const $=Me+Ce.height,he=qe+Ce.width,Ie=WG(xie(o)),Be=Ie.innerHeight-f,ze=Ie.innerWidth-f;if(f!==null&&Me<f){const Ye=Me-f;Me-=Ye,Se.vertical+=Ye}else if(f!==null&&$>Be){const Ye=$-Be;Me-=Ye,Se.vertical+=Ye}if(f!==null&&qe<f){const Ye=qe-f;qe-=Ye,Se.horizontal+=Ye}else if(he>ze){const Ye=he-ze;qe-=Ye,Se.horizontal+=Ye}return{top:`${Math.round(Me)}px`,left:`${Math.round(qe)}px`,transformOrigin:pMt(Se)}},[o,l,F,N,f]),[W,J]=I.useState(p),ee=I.useCallback(()=>{const me=T.current;if(!me)return;const Ce=j(me);Ce.top!==null&&me.style.setProperty("top",Ce.top),Ce.left!==null&&(me.style.left=Ce.left),me.style.transformOrigin=Ce.transformOrigin,J(!0)},[j]);I.useEffect(()=>(A&&window.addEventListener("scroll",ee),()=>window.removeEventListener("scroll",ee)),[o,A,ee]);const Q=()=>{ee()},H=()=>{J(!1)};I.useEffect(()=>{p&&ee()}),I.useImperativeHandle(r,()=>p?{updatePosition:()=>{ee()}}:null,[p,ee]),I.useEffect(()=>{if(!p)return;const me=FQ(()=>{ee()}),Ce=WG(xie(o));return Ce.addEventListener("resize",me),()=>{me.clear(),Ce.removeEventListener("resize",me)}},[o,p,ee]);let q=w;const le={slots:{transition:b,...m},slotProps:{transition:E,paper:g,...v}},[Y,G]=wo("transition",{elementType:VQ,externalForwardedProps:le,ownerState:M,getSlotProps:me=>({...me,onEntering:(Ce,Se)=>{me.onEntering?.(Ce,Se),Q()},onExited:Ce=>{me.onExited?.(Ce),H()}}),additionalProps:{appear:!0,in:p}});w==="auto"&&!Y.muiSupportAuto&&(q=void 0);const pe=d||(o?HG(xie(o)).body:void 0),[U,{slots:K,slotProps:ie,...ce}]=wo("root",{ref:n,elementType:qLi,externalForwardedProps:{...le,...D},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:f0n(typeof v.backdrop=="function"?v.backdrop(M):v.backdrop,{invisible:!0})},container:pe,open:p},ownerState:M,className:Nn(P.root,u)}),[de,oe]=wo("paper",{ref:T,className:P.paper,elementType:W0n,externalForwardedProps:le,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:W?void 0:{opacity:0}},ownerState:M});return S.jsx(U,{...ce,...!kD(U)&&{slots:K,slotProps:ie,disableScrollLock:A},children:S.jsx(Y,{...G,timeout:q,children:S.jsx(de,{...oe,children:c})})})}),U0n=GLi;function KLi(e){return kr("MuiMenu",e)}Ir("MuiMenu",["root","paper","list"]);var YLi={vertical:"top",horizontal:"right"},QLi={vertical:"top",horizontal:"left"},ZLi=e=>{const{classes:t}=e;return Lr({root:["root"],paper:["paper"],list:["list"]},KLi,t)},XLi=Mt(U0n,{shouldForwardProp:e=>kg(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),JLi=Mt(W0n,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),eNi=Mt(gj,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),tNi=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiMenu"}),{autoFocus:r=!0,children:o,className:s,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:h,transitionDuration:f="auto",TransitionProps:{onEntering:p,...g}={},variant:m="selectedMenu",slots:v={},slotProps:y={},...b}=i,w=Ph(),E={...i,autoFocus:r,disableAutoFocusItem:a,MenuListProps:l,onEntering:p,PaperProps:d,transitionDuration:f,TransitionProps:g,variant:m},A=ZLi(E),D=r&&!a&&u,T=I.useRef(null),M=(q,le)=>{T.current&&T.current.adjustStyleForScrollbar(q,{direction:w?"rtl":"ltr"}),p&&p(q,le)},P=q=>{q.key==="Tab"&&(q.preventDefault(),c&&c(q,"tabKeyDown"))};let F=-1;I.Children.map(o,(q,le)=>{I.isValidElement(q)&&(q.props.disabled||(m==="selectedMenu"&&q.props.selected||F===-1)&&(F=le))});const N={slots:v,slotProps:{list:l,transition:g,paper:d,...y}},j=Xm({elementType:v.root,externalSlotProps:y.root,ownerState:E,className:[A.root,s]}),[W,J]=wo("paper",{className:A.paper,elementType:JLi,externalForwardedProps:N,shouldForwardComponentProp:!0,ownerState:E}),[ee,Q]=wo("list",{className:Nn(A.list,l.className),elementType:eNi,shouldForwardComponentProp:!0,externalForwardedProps:N,getSlotProps:q=>({...q,onKeyDown:le=>{P(le),q.onKeyDown?.(le)}}),ownerState:E}),H=typeof N.slotProps.transition=="function"?N.slotProps.transition(E):N.slotProps.transition;return S.jsx(XLi,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?YLi:QLi,slots:{root:v.root,paper:W,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:j,paper:J,backdrop:typeof y.backdrop=="function"?y.backdrop(E):y.backdrop,transition:{...H,onEntering:(...q)=>{M(...q),H?.onEntering?.(...q)}}},open:u,ref:n,transitionDuration:f,ownerState:E,...b,classes:h,children:S.jsx(ee,{actions:T,autoFocus:r&&(F===-1||a),autoFocusItem:D,variant:m,...Q,children:o})})}),Mb=tNi;function nNi(e){return kr("MuiNativeSelect",e)}var iNi=Ir("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),TQe=iNi,rNi=e=>{const{classes:t,variant:n,disabled:i,multiple:r,open:o,error:s}=e,a={select:["select",n,i&&"disabled",r&&"multiple",s&&"error"],icon:["icon",`icon${gn(n)}`,o&&"iconOpen",i&&"disabled"]};return Lr(a,nNi,t)},$0n=Mt("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${TQe.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),oNi=Mt($0n,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:kg,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${TQe.multiple}`]:t.multiple}]}})({}),q0n=Mt("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${TQe.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),sNi=Mt(q0n,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${gn(n.variant)}`],n.open&&t.iconOpen]}})({}),aNi=I.forwardRef(function(t,n){const{className:i,disabled:r,error:o,IconComponent:s,inputRef:a,variant:l="standard",...c}=t,u={...t,disabled:r,variant:l,error:o},d=rNi(u);return S.jsxs(I.Fragment,{children:[S.jsx(oNi,{ownerState:u,className:Nn(d.select,i),disabled:r,ref:a||n,...c}),t.multiple?null:S.jsx(sNi,{as:s,ownerState:u,className:d.icon})]})}),lNi=aNi;function G0n(e){return kr("MuiSelect",e)}var cNi=Ir("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),W3=cNi,gMt,uNi=Mt($0n,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${W3.select}`]:t.select},{[`&.${W3.select}`]:t[n.variant]},{[`&.${W3.error}`]:t.error},{[`&.${W3.multiple}`]:t.multiple}]}})({[`&.${W3.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),dNi=Mt(q0n,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${gn(n.variant)}`],n.open&&t.iconOpen]}})({}),hNi=Mt("input",{shouldForwardProp:e=>f0e(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function mMt(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function fNi(e){return e==null||typeof e=="string"&&!e.trim()}var pNi=e=>{const{classes:t,variant:n,disabled:i,multiple:r,open:o,error:s}=e,a={select:["select",n,i&&"disabled",r&&"multiple",s&&"error"],icon:["icon",`icon${gn(n)}`,o&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return Lr(a,G0n,t)},gNi=I.forwardRef(function(t,n){const{"aria-describedby":i,"aria-label":r,autoFocus:o,autoWidth:s,children:a,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:h,error:f=!1,IconComponent:p,inputRef:g,labelId:m,MenuProps:v={},multiple:y,name:b,onBlur:w,onChange:E,onClose:A,onFocus:D,onOpen:T,open:M,readOnly:P,renderValue:F,required:N,SelectDisplayProps:j={},tabIndex:W,type:J,value:ee,variant:Q="standard",...H}=t,[q,le]=Mhe({controlled:ee,default:u,name:"Select"}),[Y,G]=Mhe({controlled:M,default:c,name:"Select"}),pe=I.useRef(null),U=I.useRef(null),[K,ie]=I.useState(null),{current:ce}=I.useRef(M!=null),[de,oe]=I.useState(),me=pb(n,g),Ce=I.useCallback(Kt=>{U.current=Kt,Kt&&ie(Kt)},[]),Se=K?.parentNode;I.useImperativeHandle(me,()=>({focus:()=>{U.current.focus()},node:pe.current,value:q}),[q]),I.useEffect(()=>{c&&Y&&K&&!ce&&(oe(s?null:Se.clientWidth),U.current.focus())},[K,s]),I.useEffect(()=>{o&&U.current.focus()},[o]),I.useEffect(()=>{if(!m)return;const Kt=HG(U.current).getElementById(m);if(Kt){const ln=()=>{getSelection().isCollapsed&&U.current.focus()};return Kt.addEventListener("click",ln),()=>{Kt.removeEventListener("click",ln)}}},[m]);const De=(Kt,ln)=>{Kt?T&&T(ln):A&&A(ln),ce||(oe(s?null:Se.clientWidth),G(Kt))},Me=Kt=>{Kt.button===0&&(Kt.preventDefault(),U.current.focus(),De(!0,Kt))},qe=Kt=>{De(!1,Kt)},$=I.Children.toArray(a),he=Kt=>{const ln=$.find(pn=>pn.props.value===Kt.target.value);ln!==void 0&&(le(ln.props.value),E&&E(Kt,ln))},Ie=Kt=>ln=>{let pn;if(ln.currentTarget.hasAttribute("tabindex")){if(y){pn=Array.isArray(q)?q.slice():[];const wn=q.indexOf(Kt.props.value);wn===-1?pn.push(Kt.props.value):pn.splice(wn,1)}else pn=Kt.props.value;if(Kt.props.onClick&&Kt.props.onClick(ln),q!==pn&&(le(pn),E)){const wn=ln.nativeEvent||ln,Mn=new wn.constructor(wn.type,wn);Object.defineProperty(Mn,"target",{writable:!0,value:{value:pn,name:b}}),E(Mn,Kt)}y||De(!1,ln)}},Be=Kt=>{P||[" ","ArrowUp","ArrowDown","Enter"].includes(Kt.key)&&(Kt.preventDefault(),De(!0,Kt))},ze=K!==null&&Y,Ye=Kt=>{!ze&&w&&(Object.defineProperty(Kt,"target",{writable:!0,value:{value:q,name:b}}),w(Kt))};delete H["aria-invalid"];let it,ft;const ct=[];let et=!1;(zhe({value:q})||h)&&(F?it=F(q):et=!0);const ut=$.map(Kt=>{if(!I.isValidElement(Kt))return null;let ln;if(y){if(!Array.isArray(q))throw new Error(ZD(2));ln=q.some(pn=>mMt(pn,Kt.props.value)),ln&&et&&ct.push(Kt.props.children)}else ln=mMt(q,Kt.props.value),ln&&et&&(ft=Kt.props.children);return I.cloneElement(Kt,{"aria-selected":ln?"true":"false",onClick:Ie(Kt),onKeyUp:pn=>{pn.key===" "&&pn.preventDefault(),Kt.props.onKeyUp&&Kt.props.onKeyUp(pn)},role:"option",selected:ln,value:void 0,"data-value":Kt.props.value})});et&&(y?ct.length===0?it=null:it=ct.reduce((Kt,ln,pn)=>(Kt.push(ln),pn<ct.length-1&&Kt.push(", "),Kt),[]):it=ft);let wt=de;!s&&ce&&K&&(wt=Se.clientWidth);let pt;typeof W<"u"?pt=W:pt=d?null:0;const _t=j.id||(b?`mui-component-select-${b}`:void 0),Rt={...t,variant:Q,value:q,open:ze,error:f},Yt=pNi(Rt),Ut={...v.PaperProps,...v.slotProps?.paper},Gt=uj();return S.jsxs(I.Fragment,{children:[S.jsx(uNi,{as:"div",ref:Ce,tabIndex:pt,role:"combobox","aria-controls":ze?Gt:void 0,"aria-disabled":d?"true":void 0,"aria-expanded":ze?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[m,_t].filter(Boolean).join(" ")||void 0,"aria-describedby":i,"aria-required":N?"true":void 0,"aria-invalid":f?"true":void 0,onKeyDown:Be,onMouseDown:d||P?null:Me,onBlur:Ye,onFocus:D,...j,ownerState:Rt,className:Nn(j.className,Yt.select,l),id:_t,children:fNi(it)?gMt||(gMt=S.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):it}),S.jsx(hNi,{"aria-invalid":f,value:Array.isArray(q)?q.join(","):q,name:b,ref:pe,"aria-hidden":!0,onChange:he,tabIndex:-1,disabled:d,className:Yt.nativeInput,autoFocus:o,required:N,...H,ownerState:Rt}),S.jsx(dNi,{as:p,className:Yt.icon,ownerState:Rt}),S.jsx(Mb,{id:`menu-${b||""}`,anchorEl:Se,open:ze,onClose:qe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":m,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:Gt,...v.MenuListProps},paper:{...Ut,style:{minWidth:wt,...Ut!=null?Ut.style:null}}},children:ut})]})}),mNi=gNi,K0n=ho(S.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),vNi=e=>{const{classes:t}=e,i=Lr({root:["root"]},G0n,t);return{...t,...i}},kQe={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>kg(e)&&e!=="variant",slot:"Root"},yNi=Mt(M0n,kQe)(""),bNi=Mt(B0n,kQe)(""),_Ni=Mt(R0n,kQe)(""),Y0n=I.forwardRef(function(t,n){const i=Nr({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:o,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=K0n,id:d,input:h,inputProps:f,label:p,labelId:g,MenuProps:m,multiple:v=!1,native:y=!1,onClose:b,onOpen:w,open:E,renderValue:A,SelectDisplayProps:D,variant:T="outlined",...M}=i,P=y?lNi:mNi,F=ty(),N=LF({props:i,muiFormControl:F,states:["variant","error"]}),j=N.variant||T,W={...i,variant:j,classes:s},J=vNi(W),{root:ee,...Q}=J,H=h||{standard:S.jsx(yNi,{ownerState:W}),outlined:S.jsx(bNi,{label:p,ownerState:W}),filled:S.jsx(_Ni,{ownerState:W})}[j],q=pb(n,DF(H));return S.jsx(I.Fragment,{children:I.cloneElement(H,{inputComponent:P,inputProps:{children:o,error:N.error,IconComponent:u,variant:j,type:void 0,multiple:v,...y?{id:d}:{autoWidth:r,defaultOpen:l,displayEmpty:c,labelId:g,MenuProps:m,onClose:b,onOpen:w,open:E,renderValue:A,SelectDisplayProps:{id:d,...D}},...f,classes:f?Ep(Q,f.classes):Q,...h?h.props.inputProps:{}},...(v&&y||c)&&j==="outlined"?{notched:!0}:{},ref:q,className:Nn(H.props.className,a,J.root),...!h&&{variant:j},...M})})});Y0n.muiName="Select";var aw=Y0n;function wNi(e){return kr("MuiTextField",e)}Ir("MuiTextField",["root"]);var CNi={standard:M0n,filled:R0n,outlined:B0n},SNi=e=>{const{classes:t}=e;return Lr({root:["root"]},wNi,t)},xNi=Mt(O9,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ENi=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:s,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:h,fullWidth:f=!1,helperText:p,id:g,InputLabelProps:m,inputProps:v,InputProps:y,inputRef:b,label:w,maxRows:E,minRows:A,multiline:D=!1,name:T,onBlur:M,onChange:P,onFocus:F,placeholder:N,required:j=!1,rows:W,select:J=!1,SelectProps:ee,slots:Q={},slotProps:H={},type:q,value:le,variant:Y="outlined",...G}=i,pe={...i,autoFocus:o,color:l,disabled:u,error:d,fullWidth:f,multiline:D,required:j,select:J,variant:Y},U=SNi(pe),K=uj(g),ie=p&&K?`${K}-helper-text`:void 0,ce=w&&K?`${K}-label`:void 0,de=CNi[Y],oe={slots:Q,slotProps:{input:y,inputLabel:m,htmlInput:v,formHelperText:h,select:ee,...H}},me={},Ce=oe.slotProps.inputLabel;Y==="outlined"&&(Ce&&typeof Ce.shrink<"u"&&(me.notched=Ce.shrink),me.label=w),J&&((!ee||!ee.native)&&(me.id=void 0),me["aria-describedby"]=void 0);const[Se,De]=wo("root",{elementType:xNi,shouldForwardComponentProp:!0,externalForwardedProps:{...oe,...G},ownerState:pe,className:Nn(U.root,a),ref:n,additionalProps:{disabled:u,error:d,fullWidth:f,required:j,color:l,variant:Y}}),[Me,qe]=wo("input",{elementType:de,externalForwardedProps:oe,additionalProps:me,ownerState:pe}),[$,he]=wo("inputLabel",{elementType:KG,externalForwardedProps:oe,ownerState:pe}),[Ie,Be]=wo("htmlInput",{elementType:"input",externalForwardedProps:oe,ownerState:pe}),[ze,Ye]=wo("formHelperText",{elementType:AQe,externalForwardedProps:oe,ownerState:pe}),[it,ft]=wo("select",{elementType:aw,externalForwardedProps:oe,ownerState:pe}),ct=S.jsx(Me,{"aria-describedby":ie,autoComplete:r,autoFocus:o,defaultValue:c,fullWidth:f,multiline:D,name:T,rows:W,maxRows:E,minRows:A,type:q,value:le,id:K,inputRef:b,onBlur:M,onChange:P,onFocus:F,placeholder:N,inputProps:Be,slots:{input:Q.htmlInput?Ie:void 0},...qe});return S.jsxs(Se,{...De,children:[w!=null&&w!==""&&S.jsx($,{htmlFor:K,id:ce,...he,children:w}),J?S.jsx(it,{"aria-describedby":ie,id:K,labelId:ce,value:le,input:ct,...ft,children:s}):ct,p&&S.jsx(ze,{id:ie,...Ye,children:p})]})}),jv=ENi,mj=({props:e,value:t,timezone:n,adapter:i})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:o,shouldDisableYear:s,disablePast:a,disableFuture:l}=e,c=i.utils.date(void 0,n),u=vm(i.utils,e.minDate,i.defaultDates.minDate),d=vm(i.utils,e.maxDate,i.defaultDates.maxDate);switch(!0){case!i.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(s&&s(t)):return"shouldDisableYear";case!!(l&&i.utils.isAfterDay(t,c)):return"disableFuture";case!!(a&&i.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&i.utils.isBeforeDay(t,u)):return"minDate";case!!(d&&i.utils.isAfterDay(t,d)):return"maxDate";default:return null}};mj.valueManager=Wd;var HQ=({adapter:e,value:t,timezone:n,props:i})=>{if(t===null)return null;const{minTime:r,maxTime:o,minutesStep:s,shouldDisableTime:a,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u}=i,d=e.utils.date(void 0,n),h=BQ(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&h(r,t)):return"minTime";case!!(o&&h(t,o)):return"maxTime";case!!(u&&e.utils.isAfter(t,d)):return"disableFuture";case!!(c&&e.utils.isBefore(t,d)):return"disablePast";case!!(a&&a(t,"hours")):return"shouldDisableTime-hours";case!!(a&&a(t,"minutes")):return"shouldDisableTime-minutes";case!!(a&&a(t,"seconds")):return"shouldDisableTime-seconds";case!!(s&&e.utils.getMinutes(t)%s!==0):return"minutesStep";default:return null}};HQ.valueManager=Wd;var D0e=({adapter:e,value:t,timezone:n,props:i})=>{const r=mj({adapter:e,value:t,timezone:n,props:i});return r!==null?r:HQ({adapter:e,value:t,timezone:n,props:i})};D0e.valueManager=Wd;var c7e=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],u7e=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Q0n=["minDateTime","maxDateTime"],ANi=[...c7e,...u7e,...Q0n],vj=e=>ANi.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function Z0n(e){const{props:t,validator:n,value:i,timezone:r,onError:o}=e,s=TF(),a=I.useRef(n.valueManager.defaultErrorState),l=n({adapter:s,value:i,timezone:r,props:t}),c=n.valueManager.hasError(l);I.useEffect(()=>{o&&!n.valueManager.isSameError(l,a.current)&&o(l,i),a.current=l},[n,o,l,i]);const u=qr(d=>n({adapter:s,value:d,timezone:r,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}var DNi=({utils:e,format:t})=>{let n=10,i=t,r=e.expandFormat(t);for(;r!==i;)if(i=r,r=e.expandFormat(i),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return r},TNi=({utils:e,expandedFormat:t})=>{const n=[],{start:i,end:r}=e.escapedCharacters,o=new RegExp(`(\\${i}[^\\${r}]*\\${r})+`,"g");let s=null;for(;s=o.exec(t);)n.push({start:s.index,end:o.lastIndex-1});return n},kNi=(e,t,n,i)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),i).length,format:i});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:i});case"day":return t.fieldDayPlaceholder({format:i});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:i});case"hours":return t.fieldHoursPlaceholder({format:i});case"minutes":return t.fieldMinutesPlaceholder({format:i});case"seconds":return t.fieldSecondsPlaceholder({format:i});case"meridiem":return t.fieldMeridiemPlaceholder({format:i});default:return i}},INi=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:i,localizedDigits:r,now:o,token:s,startSeparator:a})=>{if(s==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=x0n(e,s),c=T0n(e,l.contentType,l.type,s),u=n?c:l.contentType==="digit",d=t!=null&&e.isValid(t);let h=d?e.formatByString(t,s):"",f=null;if(u)if(c)f=h===""?e.formatByString(o,s).length:h.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${s} should have a 'maxDigitNumber' property on it's adapter`);f=l.maxLength,d&&(h=wQe(A0n(E2(h,r),f),r))}return lt({},l,{format:s,maxLength:f,value:h,placeholder:kNi(e,i,l,s),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:a,endSeparator:"",modified:!1})},LNi=e=>{const{utils:t,expandedFormat:n,escapedParts:i}=e,r=t.date(void 0),o=[];let s="";const a=Object.keys(t.formatTokenMap).sort((f,p)=>p.length-f.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${a.join("|")})*$`),u=new RegExp(`^(${a.join("|")})`),d=f=>i.find(p=>p.start<=f&&p.end>=f);let h=0;for(;h<n.length;){const f=d(h),p=f!=null,g=l.exec(n.slice(h))?.[1];if(!p&&g!=null&&c.test(g)){let m=g;for(;m.length>0;){const v=u.exec(m)[1];m=m.slice(v.length),o.push(INi(lt({},e,{now:r,token:v,startSeparator:s}))),s=""}h+=g.length}else{const m=n[h];p&&f?.start===h||f?.end===h||(o.length===0?s+=m:o[o.length-1].endSeparator+=m),h+=1}}return o.length===0&&s.length>0&&o.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:s,endSeparator:"",modified:!1}),o},NNi=({isRtl:e,formatDensity:t,sections:n})=>n.map(i=>{const r=o=>{let s=o;return e&&s!==null&&s.includes(" ")&&(s=`⁩${s}⁦`),t==="spacious"&&["/",".","-"].includes(s)&&(s=` ${s} `),s};return i.startSeparator=r(i.startSeparator),i.endSeparator=r(i.endSeparator),i}),vMt=e=>{let t=DNi(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=TNi(lt({},e,{expandedFormat:t})),i=LNi(lt({},e,{expandedFormat:t,escapedParts:n}));return NNi(lt({},e,{sections:i}))},PNi=e=>{const t=fa(),n=wf(),i=TF(),r=Ph(),{valueManager:o,fieldValueManager:s,valueType:a,validator:l,internalProps:c,internalProps:{value:u,defaultValue:d,referenceDate:h,onChange:f,format:p,formatDensity:g="dense",selectedSections:m,onSelectedSectionsChange:v,shouldRespectLeadingZeros:y=!1,timezone:b,enableAccessibleFieldDOMStructure:w=!1}}=e,{timezone:E,value:A,handleValueChange:D}=_Qe({timezone:b,value:u,defaultValue:d,referenceDate:h,onChange:f,valueManager:o}),T=I.useMemo(()=>qTi(t),[t]),M=I.useMemo(()=>XTi(t,T,E),[t,T,E]),P=I.useCallback((K,ie=null)=>s.getSectionsFromValue(t,K,ie,ce=>vMt({utils:t,localeText:n,localizedDigits:T,format:p,date:ce,formatDensity:g,shouldRespectLeadingZeros:y,enableAccessibleFieldDOMStructure:w,isRtl:r})),[s,p,n,T,r,y,t,g,w]),[F,N]=I.useState(()=>{const K=P(A),ie={sections:K,value:A,referenceValue:o.emptyValue,tempValueStrAndroid:null},ce=HTi(K),de=o.getInitialReferenceValue({referenceDate:h,value:A,utils:t,props:c,granularity:ce,timezone:E});return lt({},ie,{referenceValue:de})}),[j,W]=x2({controlled:m,default:null,name:"useField",state:"selectedSections"}),J=K=>{W(K),v?.(K)},ee=I.useMemo(()=>o7e(j,F.sections),[j,F.sections]),Q=ee==="all"?0:ee,H=({value:K,referenceValue:ie,sections:ce})=>{if(N(oe=>lt({},oe,{sections:ce,value:K,referenceValue:ie,tempValueStrAndroid:null})),o.areValuesEqual(t,F.value,K))return;const de={validationError:l({adapter:i,value:K,timezone:E,props:c})};D(K,de)},q=(K,ie)=>{const ce=[...F.sections];return ce[K]=lt({},ce[K],{value:ie,modified:!0}),ce},le=()=>{H({value:o.emptyValue,referenceValue:F.referenceValue,sections:P(o.emptyValue)})},Y=()=>{if(Q==null)return;const K=F.sections[Q],ie=s.getActiveDateManager(t,F,K),de=ie.getSections(F.sections).filter(Se=>Se.value!=="").length===(K.value===""?0:1),oe=q(Q,""),me=de?null:t.getInvalidDate(),Ce=ie.getNewValuesFromNewActiveDate(me);H(lt({},Ce,{sections:oe}))},G=K=>{const ie=(oe,me)=>{const Ce=t.parse(oe,p);if(Ce==null||!t.isValid(Ce))return null;const Se=vMt({utils:t,localeText:n,localizedDigits:T,format:p,date:Ce,formatDensity:g,shouldRespectLeadingZeros:y,enableAccessibleFieldDOMStructure:w,isRtl:r});return QPt(t,Ce,Se,me,!1)},ce=s.parseValueStr(K,F.referenceValue,ie),de=s.updateReferenceValue(t,ce,F.referenceValue);H({value:ce,referenceValue:de,sections:P(ce,F.sections)})},pe=({activeSection:K,newSectionValue:ie,shouldGoToNextSection:ce})=>{ce&&Q<F.sections.length-1&&J(Q+1);const de=s.getActiveDateManager(t,F,K),oe=q(Q,ie),me=de.getSections(oe),Ce=YTi(t,me,T);let Se,De;if(Ce!=null&&t.isValid(Ce)){const Me=QPt(t,Ce,me,de.referenceDate,!0);Se=de.getNewValuesFromNewActiveDate(Me),De=!0}else Se=de.getNewValuesFromNewActiveDate(Ce),De=(Ce!=null&&!t.isValid(Ce))!=(de.date!=null&&!t.isValid(de.date));return De?H(lt({},Se,{sections:oe})):N(Me=>lt({},Me,Se,{sections:oe,tempValueStrAndroid:null}))},U=K=>N(ie=>lt({},ie,{tempValueStrAndroid:K}));return I.useEffect(()=>{const K=P(F.value);N(ie=>lt({},ie,{sections:K}))},[p,t.locale,r]),I.useEffect(()=>{let K;o.areValuesEqual(t,F.value,A)?K=o.getTimezone(t,F.value)!==o.getTimezone(t,A):K=!0,K&&N(ie=>lt({},ie,{value:A,referenceValue:s.updateReferenceValue(t,A,ie.referenceValue),sections:P(A)}))},[A]),{state:F,activeSectionIndex:Q,parsedSelectedSections:ee,setSelectedSections:J,clearValue:le,clearActiveSection:Y,updateSectionValue:pe,updateValueFromValueStr:G,setTempAndroidValueStr:U,getSectionsFromValue:P,sectionsValueBoundaries:M,localizedDigits:T,timezone:E}},MNi=5e3,q4=e=>e.saveQuery!=null,ONi=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:i,setTempAndroidValueStr:r,timezone:o})=>{const s=fa(),[a,l]=I.useState(null),c=qr(()=>l(null));I.useEffect(()=>{a!=null&&e[a.sectionIndex]?.type!==a.sectionType&&c()},[e,a,c]),I.useEffect(()=>{if(a!=null){const p=setTimeout(()=>c(),MNi);return()=>{clearTimeout(p)}}return()=>{}},[a,c]);const u=({keyPressed:p,sectionIndex:g},m,v)=>{const y=p.toLowerCase(),b=e[g];if(a!=null&&(!v||v(a.value))&&a.sectionIndex===g){const E=`${a.value}${y}`,A=m(E,b);if(!q4(A))return l({sectionIndex:g,value:E,sectionType:b.type}),A}const w=m(y,b);return q4(w)&&!w.saveQuery?(c(),null):(l({sectionIndex:g,value:y,sectionType:b.type}),q4(w)?null:w)},d=p=>{const g=(y,b,w)=>{const E=b.filter(A=>A.toLowerCase().startsWith(w));return E.length===0?{saveQuery:!1}:{sectionValue:E[0],shouldGoToNextSection:E.length===1}},m=(y,b,w,E)=>{const A=D=>E0n(s,o,b.type,D);if(b.contentType==="letter")return g(b.format,A(b.format),y);if(w&&E!=null&&x0n(s,w).contentType==="letter"){const D=A(w),T=g(w,D,y);return q4(T)?{saveQuery:!1}:lt({},T,{sectionValue:E(T.sectionValue,D)})}return{saveQuery:!1}};return u(p,(y,b)=>{switch(b.type){case"month":{const w=E=>KPt(s,E,s.formats.month,b.format);return m(y,b,s.formats.month,w)}case"weekDay":{const w=(E,A)=>A.indexOf(E).toString();return m(y,b,s.formats.weekday,w)}case"meridiem":return m(y,b);default:return{saveQuery:!1}}})},h=p=>{const g=(v,y)=>{const b=E2(v,i),w=Number(b),E=n[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(w>E.maximum)return{saveQuery:!1};if(w<E.minimum)return{saveQuery:!0};const A=w*10>E.maximum||b.length===E.maximum.toString().length;return{sectionValue:D0n(s,w,E,i,y),shouldGoToNextSection:A}};return u(p,(v,y)=>{if(y.contentType==="digit"||y.contentType==="digit-with-letter")return g(v,y);if(y.type==="month"){T0n(s,"digit","month","MM");const b=g(v,{type:y.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(q4(b))return b;const w=KPt(s,b.sectionValue,"MM",y.format);return lt({},b,{sectionValue:w})}if(y.type==="weekDay"){const b=g(v,y);if(q4(b))return b;const w=w0e(s,y.format)[Number(b.sectionValue)-1];return lt({},b,{sectionValue:w})}return{saveQuery:!1}},v=>GPt(v,i))};return{applyCharacterEditing:qr(p=>{const g=e[p.sectionIndex],v=GPt(p.keyPressed,i)?h(lt({},p,{keyPressed:wQe(p.keyPressed,i)})):d(p);if(v==null){r(null);return}t({activeSection:g,newSectionValue:v.sectionValue,shouldGoToNextSection:v.shouldGoToNextSection})}),resetCharacterQuery:c}},RNi=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:i,onBlur:r,onClick:o,onFocus:s,onInput:a,onPaste:l,focused:c,autoFocus:u=!1},fieldValueManager:d,applyCharacterEditing:h,resetCharacterQuery:f,setSelectedSections:p,parsedSelectedSections:g,state:m,clearActiveSection:v,clearValue:y,updateSectionValue:b,updateValueFromValueStr:w,sectionOrder:E,areAllSectionsEmpty:A,sectionsValueBoundaries:D}=e,T=I.useRef(null),M=Bv(i,T),P=wf(),F=fa(),N=hj(),[j,W]=I.useState(!1),J=I.useMemo(()=>({syncSelectionToDOM:()=>{if(!T.current)return;const De=document.getSelection();if(!De)return;if(g==null){De.rangeCount>0&&T.current.getRoot().contains(De.getRangeAt(0).startContainer)&&De.removeAllRanges(),j&&T.current.getRoot().blur();return}if(!T.current.getRoot().contains(nv(document)))return;const Me=new window.Range;let qe;g==="all"?qe=T.current.getRoot():m.sections[g].type==="empty"?qe=T.current.getSectionContainer(g):qe=T.current.getSectionContent(g),Me.selectNodeContents(qe),qe.focus(),De.removeAllRanges(),De.addRange(Me)},getActiveSectionIndexFromDOM:()=>{const De=nv(document);return!De||!T.current||!T.current.getRoot().contains(De)?null:T.current.getSectionIndexFromDOMElement(De)},focusField:(De=0)=>{if(!T.current||J.getActiveSectionIndexFromDOM()!=null)return;const Me=o7e(De,m.sections);W(!0),T.current.getSectionContent(Me).focus()},setSelectedSections:De=>{if(!T.current)return;const Me=o7e(De,m.sections);W((Me==="all"?0:Me)!==null),p(De)},isFieldFocused:()=>{const De=nv(document);return!!T.current&&T.current.getRoot().contains(De)}}),[g,p,m.sections,j]),ee=qr(De=>{if(!T.current)return;const Me=m.sections[De];T.current.getSectionContent(De).innerHTML=Me.value||Me.placeholder,J.syncSelectionToDOM()}),Q=qr((De,...Me)=>{De.isDefaultPrevented()||!T.current||(W(!0),o?.(De,...Me),g==="all"?setTimeout(()=>{const qe=document.getSelection().getRangeAt(0).startOffset;if(qe===0){p(E.startIndex);return}let $=0,he=0;for(;he<qe&&$<m.sections.length;){const Ie=m.sections[$];$+=1,he+=`${Ie.startSeparator}${Ie.value||Ie.placeholder}${Ie.endSeparator}`.length}p($-1)}):j?T.current.getRoot().contains(De.target)||p(E.startIndex):(W(!0),p(E.startIndex)))}),H=qr(De=>{if(a?.(De),!T.current||g!=="all")return;const qe=De.target.textContent??"";T.current.getRoot().innerHTML=m.sections.map($=>`${$.startSeparator}${$.value||$.placeholder}${$.endSeparator}`).join(""),J.syncSelectionToDOM(),qe.length===0||qe.charCodeAt(0)===10?(f(),y(),p("all")):qe.length>1?w(qe):(g==="all"&&p(0),h({keyPressed:qe,sectionIndex:0}))}),q=qr(De=>{if(l?.(De),n||g!=="all"){De.preventDefault();return}const Me=De.clipboardData.getData("text");De.preventDefault(),f(),w(Me)}),le=qr((...De)=>{if(s?.(...De),j||!T.current)return;W(!0),T.current.getSectionIndexFromDOMElement(nv(document))!=null||p(E.startIndex)}),Y=qr((...De)=>{r?.(...De),setTimeout(()=>{if(!T.current)return;const Me=nv(document);!T.current.getRoot().contains(Me)&&(W(!1),p(null))})}),G=qr(De=>Me=>{Me.isDefaultPrevented()||p(De)}),pe=qr(De=>{De.preventDefault()}),U=qr(De=>()=>{p(De)}),K=qr(De=>{if(De.preventDefault(),n||t||typeof g!="number")return;const Me=m.sections[g],qe=De.clipboardData.getData("text"),$=/^[a-zA-Z]+$/.test(qe),he=/^[0-9]+$/.test(qe),Ie=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(qe);Me.contentType==="letter"&&$||Me.contentType==="digit"&&he||Me.contentType==="digit-with-letter"&&Ie?(f(),b({activeSection:Me,newSectionValue:qe,shouldGoToNextSection:!0})):!$&&!he&&(f(),w(qe))}),ie=qr(De=>{De.preventDefault(),De.dataTransfer.dropEffect="none"}),ce=qr(De=>{if(!T.current)return;const Me=De.target,qe=Me.textContent??"",$=T.current.getSectionIndexFromDOMElement(Me),he=m.sections[$];if(n||!T.current){ee($);return}if(qe.length===0){if(he.value===""){ee($);return}const Ie=De.nativeEvent.inputType;if(Ie==="insertParagraph"||Ie==="insertLineBreak"){ee($);return}f(),v();return}h({keyPressed:qe,sectionIndex:$}),ee($)});lE(()=>{if(!(!j||!T.current)){if(g==="all")T.current.getRoot().focus();else if(typeof g=="number"){const De=T.current.getSectionContent(g);De&&De.focus()}}},[g,j]);const de=I.useMemo(()=>m.sections.reduce((De,Me)=>(De[Me.type]=D[Me.type]({currentDate:null,contentType:Me.contentType,format:Me.format}),De),{}),[D,m.sections]),oe=g==="all",me=I.useMemo(()=>m.sections.map((De,Me)=>{const qe=!oe&&!t&&!n;return{container:{"data-sectionindex":Me,onClick:G(Me)},content:{tabIndex:oe||Me>0?-1:0,contentEditable:!oe&&!t&&!n,role:"spinbutton",id:`${N}-${De.type}`,"aria-labelledby":`${N}-${De.type}`,"aria-readonly":n,"aria-valuenow":iki(De,F),"aria-valuemin":de[De.type].minimum,"aria-valuemax":de[De.type].maximum,"aria-valuetext":De.value?nki(De,F):P.empty,"aria-label":P[De.type],"aria-disabled":t,spellCheck:qe?!1:void 0,autoCapitalize:qe?"off":void 0,autoCorrect:qe?"off":void 0,[parseInt(I.version,10)>=17?"enterKeyHint":"enterkeyhint"]:qe?"next":void 0,children:De.value||De.placeholder,onInput:ce,onPaste:K,onFocus:U(Me),onDragOver:ie,onMouseUp:pe,inputMode:De.contentType==="letter"?"text":"numeric"},before:{children:De.startSeparator},after:{children:De.endSeparator}}}),[m.sections,U,K,ie,ce,G,pe,t,n,oe,P,F,de,N]),Ce=qr(De=>{w(De.target.value)}),Se=I.useMemo(()=>A?"":d.getV7HiddenInputValueFromSections(m.sections),[A,m.sections,d]);return I.useEffect(()=>{if(T.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
`));u&&T.current&&T.current.getSectionContent(E.startIndex).focus()},[]),{interactions:J,returnedValue:{autoFocus:u,readOnly:n,focused:c??j,sectionListRef:M,onBlur:Y,onClick:Q,onFocus:le,onInput:H,onPaste:q,enableAccessibleFieldDOMStructure:!0,elements:me,tabIndex:g===0?-1:0,contentEditable:oe,value:Se,onChange:Ce,areAllSectionsEmpty:A}}},x6=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),FNi=(e,t,n)=>{let i=0,r=n?1:0;const o=[];for(let s=0;s<e.length;s+=1){const a=e[s],l=CQe(a,n?"input-rtl":"input-ltr",t),c=`${a.startSeparator}${l}${a.endSeparator}`,u=x6(c).length,d=c.length,h=x6(l),f=r+(h===""?0:l.indexOf(h[0]))+a.startSeparator.length,p=f+h.length;o.push(lt({},a,{start:i,end:i+u,startInInput:f,endInInput:p})),i+=u,r+=d}return o},BNi=e=>{const t=Ph(),n=I.useRef(void 0),i=I.useRef(void 0),{forwardedProps:{onFocus:r,onClick:o,onPaste:s,onBlur:a,inputRef:l,placeholder:c},internalProps:{readOnly:u=!1,disabled:d=!1},parsedSelectedSections:h,activeSectionIndex:f,state:p,fieldValueManager:g,valueManager:m,applyCharacterEditing:v,resetCharacterQuery:y,updateSectionValue:b,updateValueFromValueStr:w,clearActiveSection:E,clearValue:A,setTempAndroidValueStr:D,setSelectedSections:T,getSectionsFromValue:M,areAllSectionsEmpty:P,localizedDigits:F}=e,N=I.useRef(null),j=Bv(l,N),W=I.useMemo(()=>FNi(p.sections,F,t),[p.sections,F,t]),J=I.useMemo(()=>({syncSelectionToDOM:()=>{if(!N.current)return;if(h==null){N.current.scrollLeft&&(N.current.scrollLeft=0);return}if(N.current!==nv(document))return;const ce=N.current.scrollTop;if(h==="all")N.current.select();else{const de=W[h],oe=de.type==="empty"?de.startInInput-de.startSeparator.length:de.startInInput,me=de.type==="empty"?de.endInInput+de.endSeparator.length:de.endInInput;(oe!==N.current.selectionStart||me!==N.current.selectionEnd)&&N.current===nv(document)&&N.current.setSelectionRange(oe,me),clearTimeout(i.current),i.current=setTimeout(()=>{N.current&&N.current===nv(document)&&N.current.selectionStart===N.current.selectionEnd&&(N.current.selectionStart!==oe||N.current.selectionEnd!==me)&&J.syncSelectionToDOM()})}N.current.scrollTop=ce},getActiveSectionIndexFromDOM:()=>{const ce=N.current.selectionStart??0,de=N.current.selectionEnd??0;if(ce===0&&de===0)return null;const oe=ce<=W[0].startInInput?1:W.findIndex(me=>me.startInInput-me.startSeparator.length>ce);return oe===-1?W.length-1:oe-1},focusField:(ce=0)=>{nv(document)!==N.current&&(N.current?.focus(),T(ce))},setSelectedSections:ce=>T(ce),isFieldFocused:()=>N.current===nv(document)}),[N,h,W,T]),ee=()=>{const ce=N.current.selectionStart??0;let de;ce<=W[0].startInInput||ce>=W[W.length-1].endInInput?de=1:de=W.findIndex(me=>me.startInInput-me.startSeparator.length>ce);const oe=de===-1?W.length-1:de-1;T(oe)},Q=qr((...ce)=>{r?.(...ce);const de=N.current;clearTimeout(n.current),n.current=setTimeout(()=>{!de||de!==N.current||f==null&&(de.value.length&&Number(de.selectionEnd)-Number(de.selectionStart)===de.value.length?T("all"):ee())})}),H=qr((ce,...de)=>{ce.isDefaultPrevented()||(o?.(ce,...de),ee())}),q=qr(ce=>{if(s?.(ce),ce.preventDefault(),u||d)return;const de=ce.clipboardData.getData("text");if(typeof h=="number"){const oe=p.sections[h],me=/^[a-zA-Z]+$/.test(de),Ce=/^[0-9]+$/.test(de),Se=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(de);if(oe.contentType==="letter"&&me||oe.contentType==="digit"&&Ce||oe.contentType==="digit-with-letter"&&Se){y(),b({activeSection:oe,newSectionValue:de,shouldGoToNextSection:!0});return}if(me||Ce)return}y(),w(de)}),le=qr((...ce)=>{a?.(...ce),T(null)}),Y=qr(ce=>{if(u)return;const de=ce.target.value;if(de===""){y(),A();return}const oe=ce.nativeEvent.data,me=oe&&oe.length>1,Ce=me?oe:de,Se=x6(Ce);if(h==="all"&&T(f),f==null||me){w(me?oe:Se);return}let De;if(h==="all"&&Se.length===1)De=Se;else{const Me=x6(g.getV6InputValueFromSections(W,F,t));let qe=-1,$=-1;for(let ze=0;ze<Me.length;ze+=1)qe===-1&&Me[ze]!==Se[ze]&&(qe=ze),$===-1&&Me[Me.length-ze-1]!==Se[Se.length-ze-1]&&($=ze);const he=W[f];if(qe<he.start||Me.length-$-1>he.end)return;const Be=Se.length-Me.length+he.end-x6(he.endSeparator||"").length;De=Se.slice(he.start+x6(he.startSeparator||"").length,Be)}if(De.length===0){eki()&&D(Ce),y(),E();return}v({keyPressed:De,sectionIndex:f})}),G=I.useMemo(()=>c!==void 0?c:g.getV6InputValueFromSections(M(m.emptyValue),F,t),[c,g,M,m.emptyValue,F,t]),pe=I.useMemo(()=>p.tempValueStrAndroid??g.getV6InputValueFromSections(p.sections,F,t),[p.sections,g,p.tempValueStrAndroid,F,t]);I.useEffect(()=>(N.current&&N.current===nv(document)&&T("all"),()=>{clearTimeout(n.current),clearTimeout(i.current)}),[]);const U=I.useMemo(()=>f==null||p.sections[f].contentType==="letter"?"text":"numeric",[f,p.sections]),ie=!(N.current&&N.current===nv(document))&&P;return{interactions:J,returnedValue:{readOnly:u,onBlur:le,onClick:H,onFocus:Q,onPaste:q,inputRef:j,enableAccessibleFieldDOMStructure:!1,placeholder:G,inputMode:U,autoComplete:"off",value:ie?"":pe,onChange:Y}}},IQe=e=>{const t=fa(),{internalProps:n,internalProps:{unstableFieldRef:i,minutesStep:r,enableAccessibleFieldDOMStructure:o=!1,disabled:s=!1,readOnly:a=!1},forwardedProps:{onKeyDown:l,error:c,clearable:u,onClear:d},fieldValueManager:h,valueManager:f,validator:p}=e,g=Ph(),m=PNi(e),{state:v,activeSectionIndex:y,parsedSelectedSections:b,setSelectedSections:w,clearValue:E,clearActiveSection:A,updateSectionValue:D,setTempAndroidValueStr:T,sectionsValueBoundaries:M,localizedDigits:P,timezone:F}=m,N=ONi({sections:v.sections,updateSectionValue:D,sectionsValueBoundaries:M,localizedDigits:P,setTempAndroidValueStr:T,timezone:F}),{resetCharacterQuery:j}=N,W=f.areValuesEqual(t,v.value,f.emptyValue),J=o?RNi:BNi,ee=I.useMemo(()=>tki(v.sections,g&&!o),[v.sections,g,o]),{returnedValue:Q,interactions:H}=J(lt({},e,m,N,{areAllSectionsEmpty:W,sectionOrder:ee})),q=qr(K=>{if(l?.(K),!s)switch(!0){case((K.ctrlKey||K.metaKey)&&String.fromCharCode(K.keyCode)==="A"&&!K.shiftKey&&!K.altKey):{K.preventDefault(),w("all");break}case K.key==="ArrowRight":{if(K.preventDefault(),b==null)w(ee.startIndex);else if(b==="all")w(ee.endIndex);else{const ie=ee.neighbors[b].rightIndex;ie!==null&&w(ie)}break}case K.key==="ArrowLeft":{if(K.preventDefault(),b==null)w(ee.endIndex);else if(b==="all")w(ee.startIndex);else{const ie=ee.neighbors[b].leftIndex;ie!==null&&w(ie)}break}case K.key==="Delete":{if(K.preventDefault(),a)break;b==null||b==="all"?E():A(),j();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(K.key):{if(K.preventDefault(),a||y==null)break;b==="all"&&w(y);const ie=v.sections[y],ce=h.getActiveDateManager(t,v,ie),de=GTi(t,F,ie,K.key,M,P,ce.date,{minutesStep:r});D({activeSection:ie,newSectionValue:de,shouldGoToNextSection:!1});break}}});lE(()=>{H.syncSelectionToDOM()});const{hasValidationError:le}=Z0n({props:n,validator:p,timezone:F,value:v.value,onError:n.onError}),Y=I.useMemo(()=>c!==void 0?c:le,[le,c]);I.useEffect(()=>{!Y&&y==null&&j()},[v.referenceValue,y,Y]),I.useEffect(()=>{v.tempValueStrAndroid!=null&&y!=null&&(j(),A())},[v.sections]),I.useImperativeHandle(i,()=>({getSections:()=>v.sections,getActiveSectionIndex:H.getActiveSectionIndexFromDOM,setSelectedSections:H.setSelectedSections,focusField:H.focusField,isFieldFocused:H.isFieldFocused}));const G=qr((K,...ie)=>{K.preventDefault(),d?.(K,...ie),E(),H.isFieldFocused()?w(ee.startIndex):H.focusField(0)}),pe={onKeyDown:q,onClear:G,error:Y,clearable:!!(u&&!W&&!a&&!s)},U={disabled:s,readOnly:a};return lt({},e.forwardedProps,pe,U,Q)};function jNi(e){return kr("MuiInputAdornment",e)}var zNi=Ir("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),yMt=zNi,bMt,VNi=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${gn(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},HNi=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:i,position:r,size:o,variant:s}=e,a={root:["root",n&&"disablePointerEvents",r&&`position${gn(r)}`,s,i&&"hiddenLabel",o&&`size${gn(o)}`]};return Lr(a,jNi,t)},WNi=Mt("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:VNi})(gr(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${yMt.positionStart}&:not(.${yMt.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),UNi=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiInputAdornment"}),{children:r,className:o,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:u,...d}=i,h=ty()||{};let f=u;u&&h.variant,h&&!f&&(f=h.variant);const p={...i,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:f},g=HNi(p);return S.jsx(C0e.Provider,{value:null,children:S.jsx(WNi,{as:s,ownerState:p,className:Nn(g.root,o),ref:n,...d,children:typeof r=="string"&&!l?S.jsx(Xn,{color:"textSecondary",children:r}):S.jsxs(I.Fragment,{children:[c==="start"?bMt||(bMt=S.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,r]})})})}),F9=UNi,$Ni=["clearable","onClear","InputProps","sx","slots","slotProps"],qNi=["ownerState"],LQe=e=>{const t=wf(),{clearable:n,onClear:i,InputProps:r,sx:o,slots:s,slotProps:a}=e,l=zr(e,$Ni),c=s?.clearButton??Qr,u=kl({elementType:c,externalSlotProps:a?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),d=zr(u,qNi),h=s?.clearIcon??XDi,f=kl({elementType:h,externalSlotProps:a?.clearIcon,ownerState:{}});return lt({},l,{InputProps:lt({},r,{endAdornment:S.jsxs(I.Fragment,{children:[n&&S.jsx(F9,{position:"end",sx:{marginRight:r?.endAdornment?-1:-1.5},children:S.jsx(c,lt({},d,{onClick:i,children:S.jsx(h,lt({fontSize:"small"},f))}))}),r?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(o)?o:[o]]})},GNi=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],NQe=(e,t)=>I.useMemo(()=>{const n=lt({},e),i={},r=o=>{n.hasOwnProperty(o)&&(i[o]=n[o],delete n[o])};return GNi.forEach(r),t==="date"?c7e.forEach(r):t==="time"?u7e.forEach(r):t==="date-time"&&(c7e.forEach(r),u7e.forEach(r),Q0n.forEach(r)),{forwardedProps:n,internalProps:i}},[e,t]),KNi=I.createContext(null);function X0n(e){const{contextValue:t,localeText:n,children:i}=e;return S.jsx(KNi.Provider,{value:t,children:S.jsx(u0n,{localeText:n,children:i})})}var YNi=e=>{const t=fa(),n=kF();return lt({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:vm(t,e.minDate,n.minDate),maxDate:vm(t,e.maxDate,n.maxDate)})},QNi=e=>{const t=fa(),i=e.ampm??t.is12HourCycleInCurrentLocale()?t.formats.fullTime12h:t.formats.fullTime24h;return lt({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??i})},ZNi=e=>{const t=fa(),n=kF(),r=e.ampm??t.is12HourCycleInCurrentLocale()?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h;return lt({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??r,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:vm(t,e.minDateTime??e.minDate,n.minDate),maxDate:vm(t,e.maxDateTime??e.maxDate,n.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime})},XNi=e=>{const t=YNi(e),{forwardedProps:n,internalProps:i}=NQe(t,"date");return IQe({forwardedProps:n,internalProps:i,valueManager:Wd,fieldValueManager:SQe,validator:mj,valueType:"date"})};function JNi(e){return _l("MuiPickersTextField",e)}Pl("MuiPickersTextField",["root","focused","disabled","error","required"]);function ePi(e){return _l("MuiPickersInputBase",e)}var _8=Pl("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function tPi(e){return _l("MuiPickersSectionList",e)}var U3=Pl("MuiPickersSectionList",["root","section","sectionContent"]),nPi=["slots","slotProps","elements","sectionListRef"],J0n=Mt("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),eyn=Mt("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),tyn=Mt("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),nyn=Mt("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),iPi=e=>{const{classes:t}=e;return ul({root:["root"],section:["section"],sectionContent:["sectionContent"]},tPi,t)};function rPi(e){const{slots:t,slotProps:n,element:i,classes:r}=e,o=t?.section??eyn,s=kl({elementType:o,externalSlotProps:n?.section,externalForwardedProps:i.container,className:r.section,ownerState:{}}),a=t?.sectionContent??nyn,l=kl({elementType:a,externalSlotProps:n?.sectionContent,externalForwardedProps:i.content,additionalProps:{suppressContentEditableWarning:!0},className:r.sectionContent,ownerState:{}}),c=t?.sectionSeparator??tyn,u=kl({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:i.before,ownerState:{position:"before"}}),d=kl({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:i.after,ownerState:{position:"after"}});return S.jsxs(o,lt({},s,{children:[S.jsx(c,lt({},u)),S.jsx(a,lt({},l)),S.jsx(c,lt({},d))]}))}var oPi=I.forwardRef(function(t,n){const i=Vs({props:t,name:"MuiPickersSectionList"}),{slots:r,slotProps:o,elements:s,sectionListRef:a}=i,l=zr(i,nPi),c=iPi(i),u=I.useRef(null),d=Bv(n,u),h=g=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${g} before the mount of the component.`);return u.current};I.useImperativeHandle(a,()=>({getRoot(){return h("getRoot")},getSectionContainer(g){return h("getSectionContainer").querySelector(`.${U3.section}[data-sectionindex="${g}"]`)},getSectionContent(g){return h("getSectionContent").querySelector(`.${U3.section}[data-sectionindex="${g}"] .${U3.sectionContent}`)},getSectionIndexFromDOMElement(g){const m=h("getSectionIndexFromDOMElement");if(g==null||!m.contains(g))return null;let v=null;return g.classList.contains(U3.section)?v=g:g.classList.contains(U3.sectionContent)&&(v=g.parentElement),v==null?null:Number(v.dataset.sectionindex)}}));const f=r?.root??J0n,p=kl({elementType:f,externalSlotProps:o?.root,externalForwardedProps:l,additionalProps:{ref:d,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return S.jsx(f,lt({},p,{children:p.contentEditable?s.map(({content:g,before:m,after:v})=>`${m.children}${g.children}${v.children}`).join(""):S.jsx(I.Fragment,{children:s.map((g,m)=>S.jsx(rPi,{slots:r,slotProps:o,element:g,classes:c},m))})}))}),sPi=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],aPi=e=>Math.round(e*1e5)/1e5,T0e=Mt("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>lt({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${aPi(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),PQe=Mt(J0n,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:i,label:r})=>!t&&!n&&!i&&r==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),lPi=Mt(eyn,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),cPi=Mt(nyn,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),uPi=Mt(tyn,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),dPi=Mt("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(lt({},_Ai)),hPi=e=>{const{focused:t,disabled:n,error:i,classes:r,fullWidth:o,readOnly:s,color:a,size:l,endAdornment:c,startAdornment:u}=e,d={root:["root",t&&!n&&"focused",n&&"disabled",s&&"readOnly",i&&"error",o&&"fullWidth",`color${pAi(a)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return ul(d,ePi,r)},MQe=I.forwardRef(function(t,n){const i=Vs({props:t,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:o,value:s,onChange:a,id:l,endAdornment:c,startAdornment:u,renderSuffix:d,slots:h,slotProps:f,contentEditable:p,tabIndex:g,onInput:m,onPaste:v,onKeyDown:y,name:b,readOnly:w,inputProps:E,inputRef:A,sectionListRef:D}=i,T=zr(i,sPi),M=I.useRef(null),P=Bv(n,M),F=Bv(E?.ref,A),N=Ph(),j=ty();if(!j)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const W=le=>{if(j.disabled){le.stopPropagation();return}j.onFocus?.(le)};I.useEffect(()=>{j&&j.setAdornedStart(!!u)},[j,u]),I.useEffect(()=>{j&&(o?j.onEmpty():j.onFilled())},[j,o]);const J=lt({},i,j,{isRtl:N}),ee=hPi(J),Q=h?.root||T0e,H=kl({elementType:Q,externalSlotProps:f?.root,externalForwardedProps:T,additionalProps:{"aria-invalid":j.error,ref:P},className:ee.root,ownerState:J}),q=h?.input||PQe;return S.jsxs(Q,lt({},H,{children:[u,S.jsx(oPi,{sectionListRef:D,elements:r,contentEditable:p,tabIndex:g,className:ee.sectionsContainer,onFocus:W,onBlur:j.onBlur,onInput:m,onPaste:v,onKeyDown:y,slots:{root:q,section:lPi,sectionContent:cPi,sectionSeparator:uPi},slotProps:{root:{ownerState:J},sectionContent:{className:_8.sectionContent},sectionSeparator:({position:le})=>({className:le==="before"?_8.sectionBefore:_8.sectionAfter})}}),c,d?d(lt({},j)):null,S.jsx(dPi,lt({name:b,className:ee.input,value:s,onChange:a,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:w,required:j.required,disabled:j.disabled},E,{ref:F}))]}))});function fPi(e){return _l("MuiPickersOutlinedInput",e)}var u1=lt({},_8,Pl("MuiPickersOutlinedInput",["root","notchedOutline","input"])),pPi=["children","className","label","notched","shrink"],gPi=Mt("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),_Mt=Mt("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),mPi=Mt("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function vPi(e){const{className:t,label:n}=e,i=zr(e,pPi),r=n!=null&&n!=="",o=lt({},e,{withLabel:r});return S.jsx(gPi,lt({"aria-hidden":!0,className:t},i,{ownerState:o,children:S.jsx(mPi,{ownerState:o,children:r?S.jsx(_Mt,{children:n}):S.jsx(_Mt,{className:"notranslate",children:"​"})})}))}var yPi=["label","autoFocus","ownerState","notched"],bPi=Mt(T0e,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${u1.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${u1.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${u1.focused} .${u1.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${u1.disabled}`]:{[`& .${u1.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${u1.error} .${u1.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n]?.main??!1).map(n=>({props:{color:n},style:{[`&.${u1.focused}:not(.${u1.error}) .${u1.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),_Pi=Mt(PQe,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),wPi=e=>{const{classes:t}=e,i=ul({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},fPi,t);return lt({},t,i)},iyn=I.forwardRef(function(t,n){const i=Vs({props:t,name:"MuiPickersOutlinedInput"}),{label:r,ownerState:o,notched:s}=i,a=zr(i,yPi),l=ty(),c=lt({},i,o,l,{color:l?.color||"primary"}),u=wPi(c);return S.jsx(MQe,lt({slots:{root:bPi,input:_Pi},renderSuffix:d=>S.jsx(vPi,{shrink:!!(s||d.adornedStart||d.focused||d.filled),notched:!!(s||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:r!=null&&r!==""&&l?.required?S.jsxs(I.Fragment,{children:[r," ","*"]}):r,ownerState:c})},a,{label:r,classes:u,ref:n}))});iyn.muiName="Input";function CPi(e){return _l("MuiPickersFilledInput",e)}var TM=lt({},_8,Pl("MuiPickersFilledInput",["root","underline","input"])),SPi=["label","autoFocus","disableUnderline","ownerState"],xPi=Mt(T0e,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>dce(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${TM.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${TM.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},variants:[...Object.keys((e.vars??e).palette).filter(s=>(e.vars??e).palette[s].main).map(s=>({props:{color:s,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${TM.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${TM.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${TM.disabled}, .${TM.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${TM.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:s})=>!!s,style:{paddingLeft:12}},{props:({endAdornment:s})=>!!s,style:{paddingRight:12}}]}}),EPi=Mt(PQe,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),APi=e=>{const{classes:t,disableUnderline:n}=e,r=ul({root:["root",!n&&"underline"],input:["input"]},CPi,t);return lt({},t,r)},ryn=I.forwardRef(function(t,n){const i=Vs({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:o=!1,ownerState:s}=i,a=zr(i,SPi),l=ty(),c=lt({},i,s,l,{color:l?.color||"primary"}),u=APi(c);return S.jsx(MQe,lt({slots:{root:xPi,input:EPi},slotProps:{root:{disableUnderline:o}}},a,{label:r,classes:u,ref:n}))});ryn.muiName="Input";function DPi(e){return _l("MuiPickersFilledInput",e)}var $3=lt({},_8,Pl("MuiPickersInput",["root","input"])),TPi=["label","autoFocus","disableUnderline","ownerState"],kPi=Mt(T0e,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(i=>(e.vars??e).palette[i].main).map(i=>({props:{color:i},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$3.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$3.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${$3.disabled}, .${$3.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${$3.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),IPi=e=>{const{classes:t,disableUnderline:n}=e,r=ul({root:["root",!n&&"underline"],input:["input"]},DPi,t);return lt({},t,r)},oyn=I.forwardRef(function(t,n){const i=Vs({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:o=!1,ownerState:s}=i,a=zr(i,TPi),l=ty(),c=lt({},i,s,l,{disableUnderline:o,color:l?.color||"primary"}),u=IPi(c);return S.jsx(MQe,lt({slots:{root:kPi}},a,{label:r,classes:u,ref:n}))});oyn.muiName="Input";var LPi=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],NPi={standard:oyn,filled:ryn,outlined:iyn},PPi=Mt(O9,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),MPi=e=>{const{focused:t,disabled:n,classes:i,required:r}=e;return ul({root:["root",t&&!n&&"focused",n&&"disabled",r&&"required"]},JNi,i)},OQe=I.forwardRef(function(t,n){const i=Vs({props:t,name:"MuiPickersTextField"}),{onFocus:r,onBlur:o,className:s,color:a="primary",disabled:l=!1,error:c=!1,variant:u="outlined",required:d=!1,InputProps:h,inputProps:f,inputRef:p,sectionListRef:g,elements:m,areAllSectionsEmpty:v,onClick:y,onKeyDown:b,onKeyUp:w,onPaste:E,onInput:A,endAdornment:D,startAdornment:T,tabIndex:M,contentEditable:P,focused:F,value:N,onChange:j,fullWidth:W,id:J,name:ee,helperText:Q,FormHelperTextProps:H,label:q,InputLabelProps:le}=i,Y=zr(i,LPi),G=I.useRef(null),pe=Bv(n,G),U=hj(J),K=Q&&U?`${U}-helper-text`:void 0,ie=q&&U?`${U}-label`:void 0,ce=lt({},i,{color:a,disabled:l,error:c,focused:F,required:d,variant:u}),de=MPi(ce),oe=NPi[u];return S.jsxs(PPi,lt({className:Nn(de.root,s),ref:pe,focused:F,onFocus:r,onBlur:o,disabled:l,variant:u,error:c,color:a,fullWidth:W,required:d,ownerState:ce},Y,{children:[S.jsx(KG,lt({htmlFor:U,id:ie},le,{children:q})),S.jsx(oe,lt({elements:m,areAllSectionsEmpty:v,onClick:y,onKeyDown:b,onKeyUp:w,onInput:A,onPaste:E,endAdornment:D,startAdornment:T,tabIndex:M,contentEditable:P,value:N,onChange:j,id:U,fullWidth:W,inputProps:f,inputRef:p,sectionListRef:g,label:q,name:ee,role:"group","aria-labelledby":ie,"aria-describedby":K,"aria-live":K?"polite":void 0},h)),Q&&S.jsx(AQe,lt({id:K},H,{children:Q}))]}))}),OPi=["enableAccessibleFieldDOMStructure"],RPi=["InputProps","readOnly"],FPi=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],RQe=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=zr(e,OPi);if(t){const{InputProps:d,readOnly:h}=n,f=zr(n,RPi);return lt({},f,{InputProps:lt({},d??{},{readOnly:h})})}const{onPaste:i,onKeyDown:r,inputMode:o,readOnly:s,InputProps:a,inputProps:l,inputRef:c}=n,u=zr(n,FPi);return lt({},u,{InputProps:lt({},a??{},{readOnly:s}),inputProps:lt({},l??{},{inputMode:o,onPaste:i,onKeyDown:r,ref:c})})},BPi=["slots","slotProps","InputProps","inputProps"],syn=I.forwardRef(function(t,n){const i=Vs({props:t,name:"MuiDateField"}),{slots:r,slotProps:o,InputProps:s,inputProps:a}=i,l=zr(i,BPi),c=i,u=r?.textField??(t.enableAccessibleFieldDOMStructure?OQe:jv),d=kl({elementType:u,externalSlotProps:o?.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:c});d.inputProps=lt({},a,d.inputProps),d.InputProps=lt({},s,d.InputProps);const h=XNi(d),f=RQe(h),p=LQe(lt({},f,{slots:r,slotProps:o}));return S.jsx(u,lt({},p))}),jPi=e=>{const t=QNi(e),{forwardedProps:n,internalProps:i}=NQe(t,"time");return IQe({forwardedProps:n,internalProps:i,valueManager:Wd,fieldValueManager:SQe,validator:HQ,valueType:"time"})},zPi=["slots","slotProps","InputProps","inputProps"],ayn=I.forwardRef(function(t,n){const i=Vs({props:t,name:"MuiTimeField"}),{slots:r,slotProps:o,InputProps:s,inputProps:a}=i,l=zr(i,zPi),c=i,u=r?.textField??(t.enableAccessibleFieldDOMStructure?OQe:jv),d=kl({elementType:u,externalSlotProps:o?.textField,externalForwardedProps:l,ownerState:c,additionalProps:{ref:n}});d.inputProps=lt({},a,d.inputProps),d.InputProps=lt({},s,d.InputProps);const h=jPi(d),f=RQe(h),p=LQe(lt({},f,{slots:r,slotProps:o}));return S.jsx(u,lt({},p))}),VPi=e=>{const t=ZNi(e),{forwardedProps:n,internalProps:i}=NQe(t,"date-time");return IQe({forwardedProps:n,internalProps:i,valueManager:Wd,fieldValueManager:SQe,validator:D0e,valueType:"date-time"})},HPi=["slots","slotProps","InputProps","inputProps"],lyn=I.forwardRef(function(t,n){const i=Vs({props:t,name:"MuiDateTimeField"}),{slots:r,slotProps:o,InputProps:s,inputProps:a}=i,l=zr(i,HPi),c=i,u=r?.textField??(t.enableAccessibleFieldDOMStructure?OQe:jv),d=kl({elementType:u,externalSlotProps:o?.textField,externalForwardedProps:l,ownerState:c,additionalProps:{ref:n}});d.inputProps=lt({},a,d.inputProps),d.InputProps=lt({},s,d.InputProps);const h=VPi(d),f=RQe(h),p=LQe(lt({},f,{slots:r,slotProps:o}));return S.jsx(u,lt({},p))}),cyn=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:i,maxDate:r,disableFuture:o,disablePast:s,timezone:a})=>{const l=TF();return I.useCallback(c=>mj({adapter:l,value:c,timezone:a,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:i,maxDate:r,disableFuture:o,disablePast:s}})!==null,[l,e,t,n,i,r,o,s,a])},WPi=(e,t,n)=>(i,r)=>{switch(r.type){case"changeMonth":return lt({},i,{slideDirection:r.direction,currentMonth:r.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const o=r.newTimezone;if(n.getTimezone(i.currentMonth)===o)return i;let s=n.setTimezone(i.currentMonth,o);return n.getMonth(s)!==n.getMonth(i.currentMonth)&&(s=n.setMonth(s,n.getMonth(i.currentMonth))),lt({},i,{currentMonth:s})}case"finishMonthSwitchingAnimation":return lt({},i,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(i.focusedDay!=null&&r.focusedDay!=null&&n.isSameDay(r.focusedDay,i.focusedDay))return i;const o=r.focusedDay!=null&&!t&&!n.isSameMonth(i.currentMonth,r.focusedDay);return lt({},i,{focusedDay:r.focusedDay,isMonthSwitchingAnimating:o&&!e&&!r.withoutMonthSwitchingAnimation,currentMonth:o?n.startOfMonth(r.focusedDay):i.currentMonth,slideDirection:r.focusedDay!=null&&n.isAfterDay(r.focusedDay,i.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},UPi=e=>{const{value:t,referenceDate:n,disableFuture:i,disablePast:r,disableSwitchToMonthOnDayFocus:o=!1,maxDate:s,minDate:a,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:d}=e,h=fa(),f=I.useRef(WPi(!!c,o,h)).current,p=I.useMemo(()=>Wd.getInitialReferenceValue({value:t,utils:h,timezone:d,props:e,referenceDate:n,granularity:B1.day}),[n,d]),[g,m]=I.useReducer(f,{isMonthSwitchingAnimating:!1,focusedDay:p,currentMonth:h.startOfMonth(p),slideDirection:"left"});I.useEffect(()=>{m({type:"changeMonthTimezone",newTimezone:h.getTimezone(p)})},[p,h]);const v=I.useCallback(A=>{m(lt({type:"changeMonth"},A)),l&&l(A.newMonth)},[l]),y=I.useCallback(A=>{const D=A;h.isSameMonth(D,g.currentMonth)||v({newMonth:h.startOfMonth(D),direction:h.isAfterDay(D,g.currentMonth)?"left":"right"})},[g.currentMonth,v,h]),b=cyn({shouldDisableDate:u,minDate:a,maxDate:s,disableFuture:i,disablePast:r,timezone:d}),w=I.useCallback(()=>{m({type:"finishMonthSwitchingAnimation"})},[]),E=qr((A,D)=>{b(A)||m({type:"changeFocusedDay",focusedDay:A,withoutMonthSwitchingAnimation:D})});return{referenceDate:p,calendarState:g,changeMonth:y,changeFocusedDay:E,isDateDisabled:b,onMonthSwitchingAnimationEnd:w,handleChangeMonth:v}},$Pi=e=>_l("MuiPickersFadeTransitionGroup",e);Pl("MuiPickersFadeTransitionGroup",["root"]);var qPi=e=>{const{classes:t}=e;return ul({root:["root"]},$Pi,t)},GPi=Mt(mQe,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function uyn(e){const t=Vs({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:i,reduceAnimations:r,transKey:o}=t,s=qPi(t),a=cl();return r?n:S.jsx(GPi,{className:Nn(s.root,i),children:S.jsx(eN,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},o)})}var KPi=e=>_l("MuiPickersSlideTransition",e),Gb=Pl("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),YPi=["children","className","reduceAnimations","slideDirection","transKey","classes"],QPi=e=>{const{classes:t,slideDirection:n}=e,i={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return ul(i,KPi,t)},ZPi=Mt(mQe,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Gb["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Gb["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Gb.slideEnterActive}`]:t.slideEnterActive},{[`.${Gb.slideExit}`]:t.slideExit},{[`.${Gb["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Gb["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Gb["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Gb["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Gb.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Gb.slideExit}`]:{transform:"translate(0%)"},[`& .${Gb["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Gb["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function XPi(e){const t=Vs({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:i,reduceAnimations:r,transKey:o}=t,s=zr(t,YPi),a=QPi(t),l=cl();if(r)return S.jsx("div",{className:Nn(a.root,i),children:n});const c={exit:a.exit,enterActive:a.enterActive,enter:a.enter,exitActive:a.exitActive};return S.jsx(ZPi,{className:Nn(a.root,i),childFactory:u=>I.cloneElement(u,{classNames:c}),role:"presentation",children:S.jsx(cDi,lt({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},s,{children:n}),o)})}var JPi=e=>_l("MuiDayCalendar",e);Pl("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);var eMi=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],tMi=["ownerState"],nMi=e=>{const{classes:t}=e;return ul({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},JPi,t)},dyn=($G+v0e*2)*6,iMi=Mt("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rMi=Mt("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),oMi=Mt(Xn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),sMi=Mt(Xn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),aMi=Mt(Xn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>lt({},e.typography.caption,{width:$G,height:$G,padding:0,margin:`0 ${v0e}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),lMi=Mt("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:dyn}),cMi=Mt(XPi,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:dyn}),uMi=Mt("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),dMi=Mt("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${v0e}px 0`,display:"flex",justifyContent:"center"});function hMi(e){let{parentProps:t,day:n,focusableDay:i,selectedDays:r,isDateDisabled:o,currentMonthNumber:s,isViewFocused:a}=e,l=zr(e,eMi);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:d,showDaysOutsideCurrentMonth:h,slots:f,slotProps:p,timezone:g}=t,m=fa(),v=IF(g),y=i!==null&&m.isSameDay(n,i),b=r.some(N=>m.isSameDay(N,n)),w=m.isSameDay(n,v),E=f?.day??fIi,A=kl({elementType:E,externalSlotProps:p?.day,additionalProps:lt({disableHighlightToday:u,showDaysOutsideCurrentMonth:h,role:"gridcell",isAnimating:d,"data-timestamp":m.toJsDate(n).valueOf()},l),ownerState:lt({},t,{day:n,selected:b})}),D=zr(A,tMi),T=I.useMemo(()=>c||o(n),[c,o,n]),M=I.useMemo(()=>m.getMonth(n)!==s,[m,n,s]),P=I.useMemo(()=>{const N=m.startOfMonth(m.setMonth(n,s));return h?m.isSameDay(n,m.startOfWeek(N)):m.isSameDay(n,N)},[s,n,h,m]),F=I.useMemo(()=>{const N=m.endOfMonth(m.setMonth(n,s));return h?m.isSameDay(n,m.endOfWeek(N)):m.isSameDay(n,N)},[s,n,h,m]);return S.jsx(E,lt({},D,{day:n,disabled:T,autoFocus:a&&y,today:w,outsideCurrentMonth:M,isFirstVisibleCell:P,isLastVisibleCell:F,selected:b,tabIndex:y?0:-1,"aria-selected":b,"aria-current":w?"date":void 0}))}function fMi(e){const t=Vs({props:e,name:"MuiDayCalendar"}),n=fa(),{onFocusedDayChange:i,className:r,currentMonth:o,selectedDays:s,focusedDay:a,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:d,reduceAnimations:h,renderLoading:f=()=>S.jsx("span",{children:"..."}),slideDirection:p,TransitionProps:g,disablePast:m,disableFuture:v,minDate:y,maxDate:b,shouldDisableDate:w,shouldDisableMonth:E,shouldDisableYear:A,dayOfWeekFormatter:D=$=>n.format($,"weekdayShort").charAt(0).toUpperCase(),hasFocus:T,onFocusedViewChange:M,gridLabelId:P,displayWeekNumber:F,fixedWeekNumber:N,autoFocus:j,timezone:W}=t,J=IF(W),ee=nMi(t),Q=Ph(),H=cyn({shouldDisableDate:w,shouldDisableMonth:E,shouldDisableYear:A,minDate:y,maxDate:b,disablePast:m,disableFuture:v,timezone:W}),q=wf(),[le,Y]=x2({name:"DayCalendar",state:"hasFocus",controlled:T,default:j??!1}),[G,pe]=I.useState(()=>a||J),U=qr($=>{d||c($)}),K=$=>{H($)||(i($),pe($),M?.(!0),Y(!0))},ie=qr(($,he)=>{switch($.key){case"ArrowUp":K(n.addDays(he,-7)),$.preventDefault();break;case"ArrowDown":K(n.addDays(he,7)),$.preventDefault();break;case"ArrowLeft":{const Ie=n.addDays(he,Q?1:-1),Be=n.addMonths(he,Q?1:-1),ze=G$({utils:n,date:Ie,minDate:Q?Ie:n.startOfMonth(Be),maxDate:Q?n.endOfMonth(Be):Ie,isDateDisabled:H,timezone:W});K(ze||Ie),$.preventDefault();break}case"ArrowRight":{const Ie=n.addDays(he,Q?-1:1),Be=n.addMonths(he,Q?-1:1),ze=G$({utils:n,date:Ie,minDate:Q?n.startOfMonth(Be):Ie,maxDate:Q?Ie:n.endOfMonth(Be),isDateDisabled:H,timezone:W});K(ze||Ie),$.preventDefault();break}case"Home":K(n.startOfWeek(he)),$.preventDefault();break;case"End":K(n.endOfWeek(he)),$.preventDefault();break;case"PageUp":K(n.addMonths(he,1)),$.preventDefault();break;case"PageDown":K(n.addMonths(he,-1)),$.preventDefault();break}}),ce=qr(($,he)=>K(he)),de=qr(($,he)=>{le&&n.isSameDay(G,he)&&M?.(!1)}),oe=n.getMonth(o),me=n.getYear(o),Ce=I.useMemo(()=>s.filter($=>!!$).map($=>n.startOfDay($)),[n,s]),Se=`${me}-${oe}`,De=I.useMemo(()=>I.createRef(),[Se]),Me=I.useMemo(()=>{const $=n.startOfMonth(o),he=n.endOfMonth(o);return H(G)||n.isAfterDay(G,he)||n.isBeforeDay(G,$)?G$({utils:n,date:G,minDate:$,maxDate:he,disablePast:m,disableFuture:v,isDateDisabled:H,timezone:W}):G},[o,v,m,G,H,n,W]),qe=I.useMemo(()=>{const $=n.getWeekArray(o);let he=n.addMonths(o,1);for(;N&&$.length<N;){const Ie=n.getWeekArray(he),Be=n.isSameDay($[$.length-1][0],Ie[0][0]);Ie.slice(Be?1:0).forEach(ze=>{$.length<N&&$.push(ze)}),he=n.addMonths(he,1)}return $},[o,N,n]);return S.jsxs(iMi,{role:"grid","aria-labelledby":P,className:ee.root,children:[S.jsxs(rMi,{role:"row",className:ee.header,children:[F&&S.jsx(sMi,{variant:"caption",role:"columnheader","aria-label":q.calendarWeekNumberHeaderLabel,className:ee.weekNumberLabel,children:q.calendarWeekNumberHeaderText}),DTi(n,J).map(($,he)=>S.jsx(oMi,{variant:"caption",role:"columnheader","aria-label":n.format($,"weekday"),className:ee.weekDayLabel,children:D($)},he.toString()))]}),l?S.jsx(lMi,{className:ee.loadingContainer,children:f()}):S.jsx(cMi,lt({transKey:Se,onExited:u,reduceAnimations:h,slideDirection:p,className:Nn(r,ee.slideTransition)},g,{nodeRef:De,children:S.jsx(uMi,{ref:De,role:"rowgroup",className:ee.monthContainer,children:qe.map(($,he)=>S.jsxs(dMi,{role:"row",className:ee.weekContainer,"aria-rowindex":he+1,children:[F&&S.jsx(aMi,{className:ee.weekNumber,role:"rowheader","aria-label":q.calendarWeekNumberAriaLabelText(n.getWeekNumber($[0])),children:q.calendarWeekNumberText(n.getWeekNumber($[0]))}),$.map((Ie,Be)=>S.jsx(hMi,{parentProps:t,day:Ie,selectedDays:Ce,focusableDay:Me,onKeyDown:ie,onFocus:ce,onBlur:de,onDaySelect:U,isDateDisabled:H,currentMonthNumber:oe,isViewFocused:le,"aria-colindex":Be+1},Ie.toString()))]},`week-${$[0]}`))})}))]})}function pMi(e){return _l("MuiPickersMonth",e)}var Eie=Pl("MuiPickersMonth",["root","monthButton","disabled","selected"]),gMi=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],mMi=e=>{const{disabled:t,selected:n,classes:i}=e;return ul({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},pMi,i)},vMi=Mt("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),yMi=Mt("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Eie.disabled}`]:t.disabled},{[`&.${Eie.selected}`]:t.selected}]})(({theme:e})=>lt({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Eie.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Eie.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),bMi=I.memo(function(t){const n=Vs({props:t,name:"MuiPickersMonth"}),{autoFocus:i,className:r,children:o,disabled:s,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:h,onBlur:f,"aria-current":p,"aria-label":g,slots:m,slotProps:v}=n,y=zr(n,gMi),b=I.useRef(null),w=mMi(n);lE(()=>{i&&b.current?.focus()},[i]);const E=m?.monthButton??yMi,A=kl({elementType:E,externalSlotProps:v?.monthButton,additionalProps:{children:o,disabled:s,tabIndex:c,ref:b,type:"button",role:"radio","aria-current":p,"aria-checked":a,"aria-label":g,onClick:D=>u(D,l),onKeyDown:D=>d(D,l),onFocus:D=>h(D,l),onBlur:D=>f(D,l)},ownerState:n,className:w.monthButton});return S.jsx(vMi,lt({className:Nn(w.root,r),ownerState:n},y,{children:S.jsx(E,lt({},A))}))});function _Mi(e){return _l("MuiMonthCalendar",e)}Pl("MuiMonthCalendar",["root"]);var wMi=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],CMi=e=>{const{classes:t}=e;return ul({root:["root"]},_Mi,t)};function SMi(e,t){const n=fa(),i=kF(),r=Vs({props:e,name:t});return lt({disableFuture:!1,disablePast:!1},r,{minDate:vm(n,r.minDate,i.minDate),maxDate:vm(n,r.maxDate,i.maxDate)})}var xMi=Mt("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:y0e,boxSizing:"border-box"}),EMi=I.forwardRef(function(t,n){const i=SMi(t,"MuiMonthCalendar"),{className:r,value:o,defaultValue:s,referenceDate:a,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:h,onChange:f,shouldDisableMonth:p,readOnly:g,autoFocus:m=!1,onMonthFocus:v,hasFocus:y,onFocusedViewChange:b,monthsPerRow:w=3,timezone:E,gridLabelId:A,slots:D,slotProps:T}=i,M=zr(i,wMi),{value:P,handleValueChange:F,timezone:N}=pj({name:"MonthCalendar",timezone:E,value:o,defaultValue:s,referenceDate:a,onChange:f,valueManager:Wd}),j=IF(N),W=Ph(),J=fa(),ee=I.useMemo(()=>Wd.getInitialReferenceValue({value:P,utils:J,props:i,timezone:N,referenceDate:a,granularity:B1.month}),[]),Q=i,H=CMi(Q),q=I.useMemo(()=>J.getMonth(j),[J,j]),le=I.useMemo(()=>P!=null?J.getMonth(P):null,[P,J]),[Y,G]=I.useState(()=>le||J.getMonth(ee)),[pe,U]=x2({name:"MonthCalendar",state:"hasFocus",controlled:y,default:m??!1}),K=qr(Se=>{U(Se),b&&b(Se)}),ie=I.useCallback(Se=>{const De=J.startOfMonth(u&&J.isAfter(j,h)?j:h),Me=J.startOfMonth(c&&J.isBefore(j,d)?j:d),qe=J.startOfMonth(Se);return J.isBefore(qe,De)||J.isAfter(qe,Me)?!0:p?p(qe):!1},[c,u,d,h,j,p,J]),ce=qr((Se,De)=>{if(g)return;const Me=J.setMonth(P??ee,De);F(Me)}),de=qr(Se=>{ie(J.setMonth(P??ee,Se))||(G(Se),K(!0),v&&v(Se))});I.useEffect(()=>{G(Se=>le!==null&&Se!==le?le:Se)},[le]);const oe=qr((Se,De)=>{switch(Se.key){case"ArrowUp":de((12+De-3)%12),Se.preventDefault();break;case"ArrowDown":de((12+De+3)%12),Se.preventDefault();break;case"ArrowLeft":de((12+De+(W?1:-1))%12),Se.preventDefault();break;case"ArrowRight":de((12+De+(W?-1:1))%12),Se.preventDefault();break}}),me=qr((Se,De)=>{de(De)}),Ce=qr((Se,De)=>{Y===De&&K(!1)});return S.jsx(xMi,lt({ref:n,className:Nn(H.root,r),ownerState:Q,role:"radiogroup","aria-labelledby":A},M,{children:yQe(J,P??ee).map(Se=>{const De=J.getMonth(Se),Me=J.format(Se,"monthShort"),qe=J.format(Se,"month"),$=De===le,he=l||ie(Se);return S.jsx(bMi,{selected:$,value:De,onClick:ce,onKeyDown:oe,autoFocus:pe&&De===Y,disabled:he,tabIndex:De===Y&&!he?0:-1,onFocus:me,onBlur:Ce,"aria-current":q===De?"date":void 0,"aria-label":qe,monthsPerRow:w,slots:D,slotProps:T,children:Me},Me)})}))});function AMi(e){return _l("MuiPickersYear",e)}var Aie=Pl("MuiPickersYear",["root","yearButton","selected","disabled"]),DMi=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],TMi=e=>{const{disabled:t,selected:n,classes:i}=e;return ul({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},AMi,i)},kMi=Mt("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),IMi=Mt("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Aie.disabled}`]:t.disabled},{[`&.${Aie.selected}`]:t.selected}]})(({theme:e})=>lt({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:pr(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Aie.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Aie.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),LMi=I.memo(function(t){const n=Vs({props:t,name:"MuiPickersYear"}),{autoFocus:i,className:r,children:o,disabled:s,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:h,onBlur:f,"aria-current":p,slots:g,slotProps:m}=n,v=zr(n,DMi),y=I.useRef(null),b=TMi(n);lE(()=>{i&&y.current?.focus()},[i]);const w=g?.yearButton??IMi,E=kl({elementType:w,externalSlotProps:m?.yearButton,additionalProps:{children:o,disabled:s,tabIndex:c,ref:y,type:"button",role:"radio","aria-current":p,"aria-checked":a,onClick:A=>u(A,l),onKeyDown:A=>d(A,l),onFocus:A=>h(A,l),onBlur:A=>f(A,l)},ownerState:n,className:b.yearButton});return S.jsx(kMi,lt({className:Nn(b.root,r),ownerState:n},v,{children:S.jsx(w,lt({},E))}))});function NMi(e){return _l("MuiYearCalendar",e)}Pl("MuiYearCalendar",["root"]);var PMi=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],MMi=e=>{const{classes:t}=e;return ul({root:["root"]},NMi,t)};function OMi(e,t){const n=fa(),i=kF(),r=Vs({props:e,name:t});return lt({disablePast:!1,disableFuture:!1},r,{yearsPerRow:r.yearsPerRow??3,minDate:vm(n,r.minDate,i.minDate),maxDate:vm(n,r.maxDate,i.maxDate)})}var RMi=Mt("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:y0e,maxHeight:uTi,boxSizing:"border-box",position:"relative"}),FMi=I.forwardRef(function(t,n){const i=OMi(t,"MuiYearCalendar"),{autoFocus:r,className:o,value:s,defaultValue:a,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:h,minDate:f,onChange:p,readOnly:g,shouldDisableYear:m,onYearFocus:v,hasFocus:y,onFocusedViewChange:b,yearsOrder:w="asc",yearsPerRow:E,timezone:A,gridLabelId:D,slots:T,slotProps:M}=i,P=zr(i,PMi),{value:F,handleValueChange:N,timezone:j}=pj({name:"YearCalendar",timezone:A,value:s,defaultValue:a,referenceDate:l,onChange:p,valueManager:Wd}),W=IF(j),J=Ph(),ee=fa(),Q=I.useMemo(()=>Wd.getInitialReferenceValue({value:F,utils:ee,props:i,timezone:j,referenceDate:l,granularity:B1.year}),[]),H=i,q=MMi(H),le=I.useMemo(()=>ee.getYear(W),[ee,W]),Y=I.useMemo(()=>F!=null?ee.getYear(F):null,[F,ee]),[G,pe]=I.useState(()=>Y||ee.getYear(Q)),[U,K]=x2({name:"YearCalendar",state:"hasFocus",controlled:y,default:r??!1}),ie=qr(Ie=>{K(Ie),b&&b(Ie)}),ce=I.useCallback(Ie=>{if(d&&ee.isBeforeYear(Ie,W)||u&&ee.isAfterYear(Ie,W)||f&&ee.isBeforeYear(Ie,f)||h&&ee.isAfterYear(Ie,h))return!0;if(!m)return!1;const Be=ee.startOfYear(Ie);return m(Be)},[u,d,h,f,W,m,ee]),de=qr((Ie,Be)=>{if(g)return;const ze=ee.setYear(F??Q,Be);N(ze)}),oe=qr(Ie=>{ce(ee.setYear(F??Q,Ie))||(pe(Ie),ie(!0),v?.(Ie))});I.useEffect(()=>{pe(Ie=>Y!==null&&Ie!==Y?Y:Ie)},[Y]);const me=w!=="desc"?E*1:E*-1,Ce=J&&w==="asc"||!J&&w==="desc"?-1:1,Se=qr((Ie,Be)=>{switch(Ie.key){case"ArrowUp":oe(Be-me),Ie.preventDefault();break;case"ArrowDown":oe(Be+me),Ie.preventDefault();break;case"ArrowLeft":oe(Be-Ce),Ie.preventDefault();break;case"ArrowRight":oe(Be+Ce),Ie.preventDefault();break}}),De=qr((Ie,Be)=>{oe(Be)}),Me=qr((Ie,Be)=>{G===Be&&ie(!1)}),qe=I.useRef(null),$=Bv(n,qe);I.useEffect(()=>{if(r||qe.current===null)return;const Ie=qe.current.querySelector('[tabindex="0"]');if(!Ie)return;const Be=Ie.offsetHeight,ze=Ie.offsetTop,Ye=qe.current.clientHeight,it=qe.current.scrollTop,ft=ze+Be;Be>Ye||ze<it||(qe.current.scrollTop=ft-Ye/2-Be/2)},[r]);const he=ee.getYearRange([f,h]);return w==="desc"&&he.reverse(),S.jsx(RMi,lt({ref:$,className:Nn(q.root,o),ownerState:H,role:"radiogroup","aria-labelledby":D},P,{children:he.map(Ie=>{const Be=ee.getYear(Ie),ze=Be===Y,Ye=c||ce(Ie);return S.jsx(LMi,{selected:ze,value:Be,onClick:de,onKeyDown:Se,autoFocus:U&&Be===G,disabled:Ye,tabIndex:Be===G&&!Ye?0:-1,onFocus:De,onBlur:Me,"aria-current":le===Be?"date":void 0,yearsPerRow:E,slots:T,slotProps:M,children:ee.format(Ie,"year")},ee.format(Ie,"year"))})}))}),BMi=e=>_l("MuiPickersCalendarHeader",e),jMi=Pl("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),zMi=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],VMi=["ownerState"],HMi=e=>{const{classes:t}=e;return ul({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},BMi,t)},WMi=Mt("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),UMi=Mt("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>lt({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),$Mi=Mt("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),qMi=Mt(Qr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${jMi.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),GMi=Mt(qDi,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),KMi=I.forwardRef(function(t,n){const i=wf(),r=fa(),o=Vs({props:t,name:"MuiPickersCalendarHeader"}),{slots:s,slotProps:a,currentMonth:l,disabled:c,disableFuture:u,disablePast:d,maxDate:h,minDate:f,onMonthChange:p,onViewChange:g,view:m,reduceAnimations:v,views:y,labelId:b,className:w,timezone:E,format:A=`${r.formats.month} ${r.formats.year}`}=o,D=zr(o,zMi),T=o,M=HMi(o),P=s?.switchViewButton??qMi,F=kl({elementType:P,externalSlotProps:a?.switchViewButton,additionalProps:{size:"small","aria-label":i.calendarViewSwitchingButtonAriaLabel(m)},ownerState:T,className:M.switchViewButton}),N=s?.switchViewIcon??GMi,j=kl({elementType:N,externalSlotProps:a?.switchViewIcon,ownerState:T,className:M.switchViewIcon}),W=zr(j,VMi),J=()=>p(r.addMonths(l,1),"left"),ee=()=>p(r.addMonths(l,-1),"right"),Q=lTi(l,{disableFuture:u,maxDate:h,timezone:E}),H=cTi(l,{disablePast:d,minDate:f,timezone:E}),q=()=>{if(!(y.length===1||!g||c))if(y.length===2)g(y.find(Y=>Y!==m)||y[0]);else{const Y=y.indexOf(m)!==0?0:1;g(y[Y])}};if(y.length===1&&y[0]==="year")return null;const le=r.formatByString(l,A);return S.jsxs(WMi,lt({},D,{ownerState:T,className:Nn(M.root,w),ref:n,children:[S.jsxs(UMi,{role:"presentation",onClick:q,ownerState:T,"aria-live":"polite",className:M.labelContainer,children:[S.jsx(uyn,{reduceAnimations:v,transKey:le,children:S.jsx($Mi,{id:b,ownerState:T,className:M.label,children:le})}),y.length>1&&!c&&S.jsx(P,lt({},F,{children:S.jsx(N,lt({},W))}))]}),S.jsx(eN,{in:m==="day",appear:!v,enter:!v,children:S.jsx(v0n,{slots:s,slotProps:a,onGoToPrevious:ee,isPreviousDisabled:H,previousLabel:i.previousMonth,onGoToNext:J,isNextDisabled:Q,nextLabel:i.nextMonth})})]}))}),YMi=Vvn({themeId:q_}),tN=YMi,QMi="@media (prefers-reduced-motion: reduce)",w8=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),wMt=w8&&w8[1]?parseInt(w8[1],10):null,CMt=w8&&w8[2]?parseInt(w8[2],10):null,ZMi=wMt&&wMt<10||CMt&&CMt<13||!1,hyn=()=>tN(QMi,{defaultMatches:!1})||ZMi,XMi=e=>_l("MuiDateCalendar",e);Pl("MuiDateCalendar",["root","viewTransitionContainer"]);var JMi=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],eOi=e=>{const{classes:t}=e;return ul({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},XMi,t)};function tOi(e,t){const n=fa(),i=kF(),r=hyn(),o=Vs({props:e,name:t});return lt({},o,{loading:o.loading??!1,disablePast:o.disablePast??!1,disableFuture:o.disableFuture??!1,openTo:o.openTo??"day",views:o.views??["year","day"],reduceAnimations:o.reduceAnimations??r,renderLoading:o.renderLoading??(()=>S.jsx("span",{children:"..."})),minDate:vm(n,o.minDate,i.minDate),maxDate:vm(n,o.maxDate,i.maxDate)})}var nOi=Mt(_0e,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:b0e}),iOi=Mt(uyn,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),rOi=I.forwardRef(function(t,n){const i=fa(),r=hj(),o=tOi(t,"MuiDateCalendar"),{autoFocus:s,onViewChange:a,value:l,defaultValue:c,referenceDate:u,disableFuture:d,disablePast:h,onChange:f,onYearChange:p,onMonthChange:g,reduceAnimations:m,shouldDisableDate:v,shouldDisableMonth:y,shouldDisableYear:b,view:w,views:E,openTo:A,className:D,disabled:T,readOnly:M,minDate:P,maxDate:F,disableHighlightToday:N,focusedView:j,onFocusedViewChange:W,showDaysOutsideCurrentMonth:J,fixedWeekNumber:ee,dayOfWeekFormatter:Q,slots:H,slotProps:q,loading:le,renderLoading:Y,displayWeekNumber:G,yearsOrder:pe,yearsPerRow:U,monthsPerRow:K,timezone:ie}=o,ce=zr(o,JMi),{value:de,handleValueChange:oe,timezone:me}=pj({name:"DateCalendar",timezone:ie,value:l,defaultValue:c,referenceDate:u,onChange:f,valueManager:Wd}),{view:Ce,setView:Se,focusedView:De,setFocusedView:Me,goToNextView:qe,setValueAndGoToNextView:$}=jQ({view:w,views:E,openTo:A,onChange:oe,onViewChange:a,autoFocus:s,focusedView:j,onFocusedViewChange:W}),{referenceDate:he,calendarState:Ie,changeFocusedDay:Be,changeMonth:ze,handleChangeMonth:Ye,isDateDisabled:it,onMonthSwitchingAnimationEnd:ft}=UPi({value:de,referenceDate:u,reduceAnimations:m,onMonthChange:g,minDate:P,maxDate:F,shouldDisableDate:v,disablePast:h,disableFuture:d,timezone:me}),ct=T&&de||P,et=T&&de||F,ut=`${r}-grid-label`,wt=De!==null,pt=H?.calendarHeader??KMi,_t=kl({elementType:pt,externalSlotProps:q?.calendarHeader,additionalProps:{views:E,view:Ce,currentMonth:Ie.currentMonth,onViewChange:Se,onMonthChange:(Yn,di)=>Ye({newMonth:Yn,direction:di}),minDate:ct,maxDate:et,disabled:T,disablePast:h,disableFuture:d,reduceAnimations:m,timezone:me,labelId:ut},ownerState:o}),Rt=qr(Yn=>{const di=i.startOfMonth(Yn),Li=i.endOfMonth(Yn),ke=it(Yn)?G$({utils:i,date:Yn,minDate:i.isBefore(P,di)?di:P,maxDate:i.isAfter(F,Li)?Li:F,disablePast:h,disableFuture:d,isDateDisabled:it,timezone:me}):Yn;ke?($(ke,"finish"),g?.(di)):(qe(),ze(di)),Be(ke,!0)}),Yt=qr(Yn=>{const di=i.startOfYear(Yn),Li=i.endOfYear(Yn),ke=it(Yn)?G$({utils:i,date:Yn,minDate:i.isBefore(P,di)?di:P,maxDate:i.isAfter(F,Li)?Li:F,disablePast:h,disableFuture:d,isDateDisabled:it,timezone:me}):Yn;ke?($(ke,"finish"),p?.(ke)):(qe(),ze(di)),Be(ke,!0)}),Ut=qr(Yn=>oe(Yn&&Bhe(i,Yn,de??he),"finish",Ce));I.useEffect(()=>{de!=null&&i.isValid(de)&&ze(de)},[de]);const Gt=o,Kt=eOi(Gt),ln={disablePast:h,disableFuture:d,maxDate:F,minDate:P},pn={disableHighlightToday:N,readOnly:M,disabled:T,timezone:me,gridLabelId:ut,slots:H,slotProps:q},wn=I.useRef(Ce);I.useEffect(()=>{wn.current!==Ce&&(De===wn.current&&Me(Ce,!0),wn.current=Ce)},[De,Me,Ce]);const Mn=I.useMemo(()=>[de],[de]);return S.jsxs(nOi,lt({ref:n,className:Nn(Kt.root,D),ownerState:Gt},ce,{children:[S.jsx(pt,lt({},_t,{slots:H,slotProps:q})),S.jsx(iOi,{reduceAnimations:m,className:Kt.viewTransitionContainer,transKey:Ce,ownerState:Gt,children:S.jsxs("div",{children:[Ce==="year"&&S.jsx(FMi,lt({},ln,pn,{value:de,onChange:Yt,shouldDisableYear:b,hasFocus:wt,onFocusedViewChange:Yn=>Me("year",Yn),yearsOrder:pe,yearsPerRow:U,referenceDate:he})),Ce==="month"&&S.jsx(EMi,lt({},ln,pn,{hasFocus:wt,className:D,value:de,onChange:Rt,shouldDisableMonth:y,onFocusedViewChange:Yn=>Me("month",Yn),monthsPerRow:K,referenceDate:he})),Ce==="day"&&S.jsx(fMi,lt({},Ie,ln,pn,{onMonthSwitchingAnimationEnd:ft,onFocusedDayChange:Be,reduceAnimations:m,selectedDays:Mn,onSelectedDaysChange:Ut,shouldDisableDate:v,shouldDisableMonth:y,shouldDisableYear:b,hasFocus:wt,onFocusedViewChange:Yn=>Me("day",Yn),showDaysOutsideCurrentMonth:J,fixedWeekNumber:ee,dayOfWeekFormatter:Q,displayWeekNumber:G,loading:le,renderLoading:Y}))]})})]}))});function oOi(e){return kr("MuiSkeleton",e)}Ir("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var sOi=e=>{const{classes:t,variant:n,animation:i,hasChildren:r,width:o,height:s}=e;return Lr({root:["root",n,i,r&&"withChildren",r&&!o&&"fitContent",r&&!s&&"heightAuto"]},oOi,t)},d7e=Tw`
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
`,h7e=Tw`
  0% {
    transform: translateX(-100%);
  }

  50% {
    /* +0.5s of delay between each loop */
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
`,aOi=typeof d7e!="string"?QN`
        animation: ${d7e} 2s ease-in-out 0.5s infinite;
      `:null,lOi=typeof h7e!="string"?QN`
        &::after {
          animation: ${h7e} 2s linear 0.5s infinite;
        }
      `:null,cOi=Mt("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(gr(({theme:e})=>{const t=nAi(e.shape.borderRadius)||"px",n=iAi(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:pr(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:i})=>i.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:i})=>i.hasChildren&&!i.width,style:{maxWidth:"fit-content"}},{props:({ownerState:i})=>i.hasChildren&&!i.height,style:{height:"auto"}},{props:{animation:"pulse"},style:aOi||{animation:`${d7e} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
                90deg,
                transparent,
                ${(e.vars||e).palette.action.hover},
                transparent
              )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:lOi||{"&::after":{animation:`${h7e} 2s linear 0.5s infinite`}}}]}})),uOi=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiSkeleton"}),{animation:r="pulse",className:o,component:s="span",height:a,style:l,variant:c="text",width:u,...d}=i,h={...i,animation:r,component:s,variant:c,hasChildren:!!d.children},f=sOi(h);return S.jsx(cOi,{as:s,ref:n,className:Nn(f.root,o),ownerState:h,...d,style:{width:u,height:a,...l}})}),B9=uOi,Kr=on(H2());function fyn(e){return _l("MuiPickersToolbar",e)}var dOi=Pl("MuiPickersToolbar",["root","content"]),hOi=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],fOi=e=>{const{classes:t}=e;return ul({root:["root"],content:["content"]},fyn,t)},pOi=Mt("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),gOi=Mt("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),FQe=I.forwardRef(function(t,n){const i=Vs({props:t,name:"MuiPickersToolbar"}),{children:r,className:o,toolbarTitle:s,hidden:a,titleId:l}=i,c=zr(i,hOi),u=i,d=fOi(u);return a?null:S.jsxs(pOi,lt({ref:n,className:Nn(d.root,o),ownerState:u},c,{children:[S.jsx(Xn,{color:"text.secondary",variant:"overline",id:l,children:s}),S.jsx(gOi,{className:d.content,ownerState:u,children:r})]}))});function mOi(e){return _l("MuiDatePickerToolbar",e)}Pl("MuiDatePickerToolbar",["root","title"]);var vOi=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],yOi=e=>{const{classes:t}=e;return ul({root:["root"],title:["title"]},mOi,t)},bOi=Mt(FQe,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_Oi=Mt(Xn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),wOi=I.forwardRef(function(t,n){const i=Vs({props:t,name:"MuiDatePickerToolbar"}),{value:r,isLandscape:o,toolbarFormat:s,toolbarPlaceholder:a="––",views:l,className:c}=i,u=zr(i,vOi),d=fa(),h=wf(),f=yOi(i),p=I.useMemo(()=>{if(!r)return a;const m=GG(d,{format:s,views:l},!0);return d.formatByString(r,m)},[r,s,a,d,l]),g=i;return S.jsx(bOi,lt({ref:n,toolbarTitle:h.datePickerToolbarTitle,isLandscape:o,className:Nn(f.root,c)},u,{children:S.jsx(_Oi,{variant:"h4",align:o?"left":"center",ownerState:g,className:f.title,children:p})}))});function pyn(e,t){const n=fa(),i=kF(),r=Vs({props:e,name:t}),o=I.useMemo(()=>r.localeText?.toolbarTitle==null?r.localeText:lt({},r.localeText,{datePickerToolbarTitle:r.localeText.toolbarTitle}),[r.localeText]);return lt({},r,{localeText:o},vQe({views:r.views,openTo:r.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:r.disableFuture??!1,disablePast:r.disablePast??!1,minDate:vm(n,r.minDate,i.minDate),maxDate:vm(n,r.maxDate,i.maxDate),slots:lt({toolbar:wOi},r.slots)})}var M0="top",lw="bottom",cw="right",O0="left",BQe="auto",WQ=[M0,lw,cw,O0],j9="start",YG="end",COi="clippingParents",gyn="viewport",q3="popper",SOi="reference",SMt=WQ.reduce(function(e,t){return e.concat([t+"-"+j9,t+"-"+YG])},[]),myn=[].concat(WQ,[BQe]).reduce(function(e,t){return e.concat([t,t+"-"+j9,t+"-"+YG])},[]),xOi="beforeRead",EOi="read",AOi="afterRead",DOi="beforeMain",TOi="main",kOi="afterMain",IOi="beforeWrite",LOi="write",NOi="afterWrite",POi=[xOi,EOi,AOi,DOi,TOi,kOi,IOi,LOi,NOi];function uE(e){return e?(e.nodeName||"").toLowerCase():null}function gb(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function A2(e){var t=gb(e).Element;return e instanceof t||e instanceof Element}function G_(e){var t=gb(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function jQe(e){if(typeof ShadowRoot>"u")return!1;var t=gb(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function MOi(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},r=t.attributes[n]||{},o=t.elements[n];!G_(o)||!uE(o)||(Object.assign(o.style,i),Object.keys(r).forEach(function(s){var a=r[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function OOi(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(i){var r=t.elements[i],o=t.attributes[i]||{},s=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),a=s.reduce(function(l,c){return l[c]="",l},{});!G_(r)||!uE(r)||(Object.assign(r.style,a),Object.keys(o).forEach(function(l){r.removeAttribute(l)}))})}}var ROi={name:"applyStyles",enabled:!0,phase:"write",fn:MOi,effect:OOi,requires:["computeStyles"]};function Rx(e){return e.split("-")[0]}var DR=Math.max,Vhe=Math.min,z9=Math.round;function f7e(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function vyn(){return!/^((?!chrome|android).)*safari/i.test(f7e())}function V9(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),r=1,o=1;t&&G_(e)&&(r=e.offsetWidth>0&&z9(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&z9(i.height)/e.offsetHeight||1);var s=A2(e)?gb(e):window,a=s.visualViewport,l=!vyn()&&n,c=(i.left+(l&&a?a.offsetLeft:0))/r,u=(i.top+(l&&a?a.offsetTop:0))/o,d=i.width/r,h=i.height/o;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function zQe(e){var t=V9(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function yyn(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&jQe(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function XD(e){return gb(e).getComputedStyle(e)}function FOi(e){return["table","td","th"].indexOf(uE(e))>=0}function ZN(e){return((A2(e)?e.ownerDocument:e.document)||window.document).documentElement}function k0e(e){return uE(e)==="html"?e:e.assignedSlot||e.parentNode||(jQe(e)?e.host:null)||ZN(e)}function xMt(e){return!G_(e)||XD(e).position==="fixed"?null:e.offsetParent}function BOi(e){var t=/firefox/i.test(f7e()),n=/Trident/i.test(f7e());if(n&&G_(e)){var i=XD(e);if(i.position==="fixed")return null}var r=k0e(e);for(jQe(r)&&(r=r.host);G_(r)&&["html","body"].indexOf(uE(r))<0;){var o=XD(r);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return r;r=r.parentNode}return null}function UQ(e){for(var t=gb(e),n=xMt(e);n&&FOi(n)&&XD(n).position==="static";)n=xMt(n);return n&&(uE(n)==="html"||uE(n)==="body"&&XD(n).position==="static")?t:n||BOi(e)||t}function VQe(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Q$(e,t,n){return DR(e,Vhe(t,n))}function jOi(e,t,n){var i=Q$(e,t,n);return i>n?n:i}function byn(){return{top:0,right:0,bottom:0,left:0}}function _yn(e){return Object.assign({},byn(),e)}function wyn(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var zOi=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,_yn(typeof t!="number"?t:wyn(t,WQ))};function VOi(e){var t,n=e.state,i=e.name,r=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Rx(n.placement),l=VQe(a),c=[O0,cw].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!s)){var d=zOi(r.padding,n),h=zQe(o),f=l==="y"?M0:O0,p=l==="y"?lw:cw,g=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],m=s[l]-n.rects.reference[l],v=UQ(o),y=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,b=g/2-m/2,w=d[f],E=y-h[u]-d[p],A=y/2-h[u]/2+b,D=Q$(w,A,E),T=l;n.modifiersData[i]=(t={},t[T]=D,t.centerOffset=D-A,t)}}function HOi(e){var t=e.state,n=e.options,i=n.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||yyn(t.elements.popper,r)&&(t.elements.arrow=r))}var WOi={name:"arrow",enabled:!0,phase:"main",fn:VOi,effect:HOi,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function H9(e){return e.split("-")[1]}var UOi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $Oi(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:z9(n*r)/r||0,y:z9(i*r)/r||0}}function EMt(e){var t,n=e.popper,i=e.popperRect,r=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=s.x,f=h===void 0?0:h,p=s.y,g=p===void 0?0:p,m=typeof u=="function"?u({x:f,y:g}):{x:f,y:g};f=m.x,g=m.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),b=O0,w=M0,E=window;if(c){var A=UQ(n),D="clientHeight",T="clientWidth";if(A===gb(n)&&(A=ZN(n),XD(A).position!=="static"&&a==="absolute"&&(D="scrollHeight",T="scrollWidth")),A=A,r===M0||(r===O0||r===cw)&&o===YG){w=lw;var M=d&&A===E&&E.visualViewport?E.visualViewport.height:A[D];g-=M-i.height,g*=l?1:-1}if(r===O0||(r===M0||r===lw)&&o===YG){b=cw;var P=d&&A===E&&E.visualViewport?E.visualViewport.width:A[T];f-=P-i.width,f*=l?1:-1}}var F=Object.assign({position:a},c&&UOi),N=u===!0?$Oi({x:f,y:g},gb(n)):{x:f,y:g};if(f=N.x,g=N.y,l){var j;return Object.assign({},F,(j={},j[w]=y?"0":"",j[b]=v?"0":"",j.transform=(E.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",j))}return Object.assign({},F,(t={},t[w]=y?g+"px":"",t[b]=v?f+"px":"",t.transform="",t))}function qOi(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=i===void 0?!0:i,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Rx(t.placement),variation:H9(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,EMt(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,EMt(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var GOi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:qOi,data:{}},Die={passive:!0};function KOi(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,o=r===void 0?!0:r,s=i.resize,a=s===void 0?!0:s,l=gb(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Die)}),a&&l.addEventListener("resize",n.update,Die),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Die)}),a&&l.removeEventListener("resize",n.update,Die)}}var YOi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:KOi,data:{}},QOi={left:"right",right:"left",bottom:"top",top:"bottom"};function pce(e){return e.replace(/left|right|bottom|top/g,function(t){return QOi[t]})}var ZOi={start:"end",end:"start"};function AMt(e){return e.replace(/start|end/g,function(t){return ZOi[t]})}function HQe(e){var t=gb(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function WQe(e){return V9(ZN(e)).left+HQe(e).scrollLeft}function XOi(e,t){var n=gb(e),i=ZN(e),r=n.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var c=vyn();(c||!c&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+WQe(e),y:l}}function JOi(e){var t,n=ZN(e),i=HQe(e),r=(t=e.ownerDocument)==null?void 0:t.body,o=DR(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=DR(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+WQe(e),l=-i.scrollTop;return XD(r||n).direction==="rtl"&&(a+=DR(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function UQe(e){var t=XD(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function Cyn(e){return["html","body","#document"].indexOf(uE(e))>=0?e.ownerDocument.body:G_(e)&&UQe(e)?e:Cyn(k0e(e))}function Z$(e,t){var n;t===void 0&&(t=[]);var i=Cyn(e),r=i===((n=e.ownerDocument)==null?void 0:n.body),o=gb(i),s=r?[o].concat(o.visualViewport||[],UQe(i)?i:[]):i,a=t.concat(s);return r?a:a.concat(Z$(k0e(s)))}function p7e(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function eRi(e,t){var n=V9(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function DMt(e,t,n){return t===gyn?p7e(XOi(e,n)):A2(t)?eRi(t,n):p7e(JOi(ZN(e)))}function tRi(e){var t=Z$(k0e(e)),n=["absolute","fixed"].indexOf(XD(e).position)>=0,i=n&&G_(e)?UQ(e):e;return A2(i)?t.filter(function(r){return A2(r)&&yyn(r,i)&&uE(r)!=="body"}):[]}function nRi(e,t,n,i){var r=t==="clippingParents"?tRi(e):[].concat(t),o=[].concat(r,[n]),s=o[0],a=o.reduce(function(l,c){var u=DMt(e,c,i);return l.top=DR(u.top,l.top),l.right=Vhe(u.right,l.right),l.bottom=Vhe(u.bottom,l.bottom),l.left=DR(u.left,l.left),l},DMt(e,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Syn(e){var t=e.reference,n=e.element,i=e.placement,r=i?Rx(i):null,o=i?H9(i):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(r){case M0:l={x:s,y:t.y-n.height};break;case lw:l={x:s,y:t.y+t.height};break;case cw:l={x:t.x+t.width,y:a};break;case O0:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=r?VQe(r):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case j9:l[c]=l[c]-(t[u]/2-n[u]/2);break;case YG:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function QG(e,t){t===void 0&&(t={});var n=t,i=n.placement,r=i===void 0?e.placement:i,o=n.strategy,s=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?COi:a,c=n.rootBoundary,u=c===void 0?gyn:c,d=n.elementContext,h=d===void 0?q3:d,f=n.altBoundary,p=f===void 0?!1:f,g=n.padding,m=g===void 0?0:g,v=_yn(typeof m!="number"?m:wyn(m,WQ)),y=h===q3?SOi:q3,b=e.rects.popper,w=e.elements[p?y:h],E=nRi(A2(w)?w:w.contextElement||ZN(e.elements.popper),l,u,s),A=V9(e.elements.reference),D=Syn({reference:A,element:b,placement:r}),T=p7e(Object.assign({},b,D)),M=h===q3?T:A,P={top:E.top-M.top+v.top,bottom:M.bottom-E.bottom+v.bottom,left:E.left-M.left+v.left,right:M.right-E.right+v.right},F=e.modifiersData.offset;if(h===q3&&F){var N=F[r];Object.keys(P).forEach(function(j){var W=[cw,lw].indexOf(j)>=0?1:-1,J=[M0,lw].indexOf(j)>=0?"y":"x";P[j]+=N[J]*W})}return P}function iRi(e,t){t===void 0&&(t={});var n=t,i=n.placement,r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?myn:l,u=H9(i),d=u?a?SMt:SMt.filter(function(p){return H9(p)===u}):WQ,h=d.filter(function(p){return c.indexOf(p)>=0});h.length===0&&(h=d);var f=h.reduce(function(p,g){return p[g]=QG(e,{placement:g,boundary:r,rootBoundary:o,padding:s})[Rx(g)],p},{});return Object.keys(f).sort(function(p,g){return f[p]-f[g]})}function rRi(e){if(Rx(e)===BQe)return[];var t=pce(e);return[AMt(e),t,AMt(t)]}function oRi(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,o=r===void 0?!0:r,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,p=f===void 0?!0:f,g=n.allowedAutoPlacements,m=t.options.placement,v=Rx(m),y=v===m,b=l||(y||!p?[pce(m)]:rRi(m)),w=[m].concat(b).reduce(function(U,K){return U.concat(Rx(K)===BQe?iRi(t,{placement:K,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):K)},[]),E=t.rects.reference,A=t.rects.popper,D=new Map,T=!0,M=w[0],P=0;P<w.length;P++){var F=w[P],N=Rx(F),j=H9(F)===j9,W=[M0,lw].indexOf(N)>=0,J=W?"width":"height",ee=QG(t,{placement:F,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),Q=W?j?cw:O0:j?lw:M0;E[J]>A[J]&&(Q=pce(Q));var H=pce(Q),q=[];if(o&&q.push(ee[N]<=0),a&&q.push(ee[Q]<=0,ee[H]<=0),q.every(function(U){return U})){M=F,T=!1;break}D.set(F,q)}if(T)for(var le=p?3:1,Y=function(K){var ie=w.find(function(ce){var de=D.get(ce);if(de)return de.slice(0,K).every(function(oe){return oe})});if(ie)return M=ie,"break"},G=le;G>0;G--){var pe=Y(G);if(pe==="break")break}t.placement!==M&&(t.modifiersData[i]._skip=!0,t.placement=M,t.reset=!0)}}var sRi={name:"flip",enabled:!0,phase:"main",fn:oRi,requiresIfExists:["offset"],data:{_skip:!1}};function TMt(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function kMt(e){return[M0,cw,lw,O0].some(function(t){return e[t]>=0})}function aRi(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=QG(t,{elementContext:"reference"}),a=QG(t,{altBoundary:!0}),l=TMt(s,i),c=TMt(a,r,o),u=kMt(l),d=kMt(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var lRi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:aRi};function cRi(e,t,n){var i=Rx(e),r=[O0,M0].indexOf(i)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[O0,cw].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}function uRi(e){var t=e.state,n=e.options,i=e.name,r=n.offset,o=r===void 0?[0,0]:r,s=myn.reduce(function(u,d){return u[d]=cRi(d,t.rects,o),u},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=s}var dRi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:uRi};function hRi(e){var t=e.state,n=e.name;t.modifiersData[n]=Syn({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var fRi={name:"popperOffsets",enabled:!0,phase:"read",fn:hRi,data:{}};function pRi(e){return e==="x"?"y":"x"}function gRi(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,o=r===void 0?!0:r,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,f=h===void 0?!0:h,p=n.tetherOffset,g=p===void 0?0:p,m=QG(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Rx(t.placement),y=H9(t.placement),b=!y,w=VQe(v),E=pRi(w),A=t.modifiersData.popperOffsets,D=t.rects.reference,T=t.rects.popper,M=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,P=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(A){if(o){var j,W=w==="y"?M0:O0,J=w==="y"?lw:cw,ee=w==="y"?"height":"width",Q=A[w],H=Q+m[W],q=Q-m[J],le=f?-T[ee]/2:0,Y=y===j9?D[ee]:T[ee],G=y===j9?-T[ee]:-D[ee],pe=t.elements.arrow,U=f&&pe?zQe(pe):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:byn(),ie=K[W],ce=K[J],de=Q$(0,D[ee],U[ee]),oe=b?D[ee]/2-le-de-ie-P.mainAxis:Y-de-ie-P.mainAxis,me=b?-D[ee]/2+le+de+ce+P.mainAxis:G+de+ce+P.mainAxis,Ce=t.elements.arrow&&UQ(t.elements.arrow),Se=Ce?w==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,De=(j=F?.[w])!=null?j:0,Me=Q+oe-De-Se,qe=Q+me-De,$=Q$(f?Vhe(H,Me):H,Q,f?DR(q,qe):q);A[w]=$,N[w]=$-Q}if(a){var he,Ie=w==="x"?M0:O0,Be=w==="x"?lw:cw,ze=A[E],Ye=E==="y"?"height":"width",it=ze+m[Ie],ft=ze-m[Be],ct=[M0,O0].indexOf(v)!==-1,et=(he=F?.[E])!=null?he:0,ut=ct?it:ze-D[Ye]-T[Ye]-et+P.altAxis,wt=ct?ze+D[Ye]+T[Ye]-et-P.altAxis:ft,pt=f&&ct?jOi(ut,ze,wt):Q$(f?ut:it,ze,f?wt:ft);A[E]=pt,N[E]=pt-ze}t.modifiersData[i]=N}}var mRi={name:"preventOverflow",enabled:!0,phase:"main",fn:gRi,requiresIfExists:["offset"]};function vRi(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function yRi(e){return e===gb(e)||!G_(e)?HQe(e):vRi(e)}function bRi(e){var t=e.getBoundingClientRect(),n=z9(t.width)/e.offsetWidth||1,i=z9(t.height)/e.offsetHeight||1;return n!==1||i!==1}function _Ri(e,t,n){n===void 0&&(n=!1);var i=G_(t),r=G_(t)&&bRi(t),o=ZN(t),s=V9(e,r,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&((uE(t)!=="body"||UQe(o))&&(a=yRi(t)),G_(t)?(l=V9(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=WQe(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function wRi(e){var t=new Map,n=new Set,i=[];e.forEach(function(o){t.set(o.name,o)});function r(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&r(l)}}),i.push(o)}return e.forEach(function(o){n.has(o.name)||r(o)}),i}function CRi(e){var t=wRi(e);return POi.reduce(function(n,i){return n.concat(t.filter(function(r){return r.phase===i}))},[])}function SRi(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function xRi(e){var t=e.reduce(function(n,i){var r=n[i.name];return n[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var IMt={placement:"bottom",modifiers:[],strategy:"absolute"};function LMt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function ERi(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,r=t.defaultOptions,o=r===void 0?IMt:r;return function(a,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},IMt,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],h=!1,f={state:u,setOptions:function(v){var y=typeof v=="function"?v(u.options):v;g(),u.options=Object.assign({},o,u.options,y),u.scrollParents={reference:A2(a)?Z$(a):a.contextElement?Z$(a.contextElement):[],popper:Z$(l)};var b=CRi(xRi([].concat(i,u.options.modifiers)));return u.orderedModifiers=b.filter(function(w){return w.enabled}),p(),f.update()},forceUpdate:function(){if(!h){var v=u.elements,y=v.reference,b=v.popper;if(LMt(y,b)){u.rects={reference:_Ri(y,UQ(b),u.options.strategy==="fixed"),popper:zQe(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(P){return u.modifiersData[P.name]=Object.assign({},P.data)});for(var w=0;w<u.orderedModifiers.length;w++){if(u.reset===!0){u.reset=!1,w=-1;continue}var E=u.orderedModifiers[w],A=E.fn,D=E.options,T=D===void 0?{}:D,M=E.name;typeof A=="function"&&(u=A({state:u,options:T,name:M,instance:f})||u)}}}},update:SRi(function(){return new Promise(function(m){f.forceUpdate(),m(u)})}),destroy:function(){g(),h=!0}};if(!LMt(a,l))return f;f.setOptions(c).then(function(m){!h&&c.onFirstUpdate&&c.onFirstUpdate(m)});function p(){u.orderedModifiers.forEach(function(m){var v=m.name,y=m.options,b=y===void 0?{}:y,w=m.effect;if(typeof w=="function"){var E=w({state:u,name:v,instance:f,options:b}),A=function(){};d.push(E||A)}})}function g(){d.forEach(function(m){return m()}),d=[]}return f}}var ARi=[YOi,fRi,GOi,ROi,dRi,sRi,mRi,WOi,lRi],DRi=ERi({defaultModifiers:ARi});function TRi(e){return kr("MuiPopper",e)}Ir("MuiPopper",["root"]);function kRi(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function g7e(e){return typeof e=="function"?e():e}function IRi(e){return e.nodeType!==void 0}var LRi=e=>{const{classes:t}=e;return Lr({root:["root"]},TRi,t)},NRi={},PRi=I.forwardRef(function(t,n){const{anchorEl:i,children:r,direction:o,disablePortal:s,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:h={},slots:f={},TransitionProps:p,ownerState:g,...m}=t,v=I.useRef(null),y=LC(v,n),b=I.useRef(null),w=LC(b,d),E=I.useRef(w);sw(()=>{E.current=w},[w]),I.useImperativeHandle(d,()=>b.current,[]);const A=kRi(c,o),[D,T]=I.useState(A),[M,P]=I.useState(g7e(i));I.useEffect(()=>{b.current&&b.current.forceUpdate()}),I.useEffect(()=>{i&&P(g7e(i))},[i]),sw(()=>{if(!M||!l)return;const J=H=>{T(H.placement)};let ee=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{J(H)}}];a!=null&&(ee=ee.concat(a)),u&&u.modifiers!=null&&(ee=ee.concat(u.modifiers));const Q=DRi(M,v.current,{placement:A,...u,modifiers:ee});return E.current(Q),()=>{Q.destroy(),E.current(null)}},[M,s,a,l,u,A]);const F={placement:D};p!==null&&(F.TransitionProps=p);const N=LRi(t),j=f.root??"div",W=Xm({elementType:j,externalSlotProps:h.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:N.root});return S.jsx(j,{...W,children:typeof r=="function"?r(F):r})}),MRi=I.forwardRef(function(t,n){const{anchorEl:i,children:r,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:h=NRi,popperRef:f,style:p,transition:g=!1,slotProps:m={},slots:v={},...y}=t,[b,w]=I.useState(!0),E=()=>{w(!1)},A=()=>{w(!0)};if(!l&&!u&&(!g||b))return null;let D;if(o)D=o;else if(i){const P=g7e(i);D=P&&IRi(P)?gg(P).body:gg(null).body}const T=!u&&l&&(!g||b)?"none":void 0,M=g?{in:u,onEnter:E,onExited:A}:void 0;return S.jsx(DQe,{disablePortal:a,container:D,children:S.jsx(PRi,{anchorEl:i,direction:s,disablePortal:a,modifiers:c,ref:n,open:g?!b:u,placement:d,popperOptions:h,popperRef:f,slotProps:m,slots:v,...y,style:{position:"fixed",top:0,left:0,display:T,...p},TransitionProps:M,children:r})})}),ORi=MRi,RRi=Mt(ORi,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),FRi=I.forwardRef(function(t,n){const i=Ph(),r=Nr({props:t,name:"MuiPopper"}),{anchorEl:o,component:s,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:h,open:f,placement:p,popperOptions:g,popperRef:m,transition:v,slots:y,slotProps:b,...w}=r,E=y?.root??a?.Root,A={anchorEl:o,container:c,disablePortal:u,keepMounted:d,modifiers:h,open:f,placement:p,popperOptions:g,popperRef:m,transition:v,...w};return S.jsx(RRi,{as:s,direction:i?"rtl":"ltr",slots:{root:E},slotProps:b??l,...A,ref:n})}),yj=FRi;function BRi(e){return _l("MuiPickersPopper",e)}Pl("MuiPickersPopper",["root","paper"]);var jRi=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],zRi=e=>{const{classes:t}=e;return ul({root:["root"],paper:["paper"]},BRi,t)},VRi=Mt(yj,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),HRi=Mt(eS,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function WRi(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function URi(e,t){const n=I.useRef(!1),i=I.useRef(!1),r=I.useRef(null),o=I.useRef(!1);I.useEffect(()=>{if(!e)return;function l(){o.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),o.current=!1}},[e]);const s=qr(l=>{if(!o.current)return;const c=i.current;i.current=!1;const u=qPe(r.current);if(!r.current||"clientX"in l&&WRi(l,u))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(r.current)>-1:d=!u.documentElement.contains(l.target)||r.current.contains(l.target),!d&&!c&&t(l)}),a=()=>{i.current=!0};return I.useEffect(()=>{if(e){const l=qPe(r.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",s),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",s),l.removeEventListener("touchmove",c)}}},[e,s]),I.useEffect(()=>{if(e){const l=qPe(r.current);return l.addEventListener("click",s),()=>{l.removeEventListener("click",s),i.current=!1}}},[e,s]),[r,a,a]}var $Ri=I.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:i,ownerState:r,children:o,paperSlotProps:s,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=zr(e,jRi),d=lt({},r,{placement:i}),h=kl({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:d});return S.jsx(n,lt({},u,h,{onClick:f=>{l(f),h.onClick?.(f)},onTouchStart:f=>{c(f),h.onTouchStart?.(f)},ownerState:d,children:o}))});function qRi(e){const t=Vs({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:i,containerRef:r=null,shouldRestoreFocus:o,onBlur:s,onDismiss:a,open:l,role:c,placement:u,slots:d,slotProps:h,reduceAnimations:f}=t;I.useEffect(()=>{function J(ee){l&&ee.key==="Escape"&&a()}return document.addEventListener("keydown",J),()=>{document.removeEventListener("keydown",J)}},[a,l]);const p=I.useRef(null);I.useEffect(()=>{c==="tooltip"||o&&!o()||(l?p.current=nv(document):p.current&&p.current instanceof HTMLElement&&setTimeout(()=>{p.current instanceof HTMLElement&&p.current.focus()}))},[l,c,o]);const[g,m,v]=URi(l,s??a),y=I.useRef(null),b=Bv(y,r),w=Bv(b,g),E=t,A=zRi(E),D=hyn(),T=f??D,M=J=>{J.key==="Escape"&&(J.stopPropagation(),a())},P=d?.desktopTransition??T?eN:VQ,F=d?.desktopTrapFocus??z0n,N=d?.desktopPaper??HRi,j=d?.popper??VRi,W=kl({elementType:j,externalSlotProps:h?.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:n,placement:u,onKeyDown:M},className:A.root,ownerState:t});return S.jsx(j,lt({},W,{children:({TransitionProps:J,placement:ee})=>S.jsx(F,lt({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},h?.desktopTrapFocus,{children:S.jsx(P,lt({},J,h?.desktopTransition,{children:S.jsx($Ri,{PaperComponent:N,ownerState:E,popperPlacement:ee,ref:w,onPaperClick:m,onPaperTouchStart:v,paperClasses:A.paper,paperSlotProps:h?.desktopPaper,children:i})}))}))}))}var GRi=({open:e,onOpen:t,onClose:n})=>{const i=I.useRef(typeof e=="boolean").current,[r,o]=I.useState(!1);I.useEffect(()=>{if(i){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(e)}},[i,e]);const s=I.useCallback(a=>{i||o(a),a&&t&&t(),!a&&n&&n()},[i,t,n]);return{isOpen:r,setIsOpen:s}},KRi=e=>{const{action:t,hasChanged:n,dateState:i,isControlled:r}=e,o=!r&&!i.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?o&&["accept","today","clear"].includes(t.pickerAction)?!0:n(i.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?o?!0:n(i.lastPublishedValue):!1},YRi=e=>{const{action:t,hasChanged:n,dateState:i,isControlled:r,closeOnSelect:o}=e,s=!r&&!i.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(i.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&o?s?!0:n(i.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(i.lastCommittedValue):!1},QRi=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},ZRi=({props:e,valueManager:t,valueType:n,wrapperVariant:i,validator:r})=>{const{onAccept:o,onChange:s,value:a,defaultValue:l,closeOnSelect:c=i==="desktop",timezone:u,referenceDate:d}=e,{current:h}=I.useRef(l),{current:f}=I.useRef(a!==void 0),[p,g]=I.useState(u),m=fa(),v=TF(),{isOpen:y,setIsOpen:b}=GRi(e),{timezone:w,value:E,handleValueChange:A}=_Qe({timezone:u,value:a,defaultValue:h,referenceDate:d,onChange:s,valueManager:t}),[D,T]=I.useState(()=>{let oe;return E!==void 0?oe=E:h!==void 0?oe=h:oe=t.emptyValue,{draft:oe,lastPublishedValue:oe,lastCommittedValue:oe,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),M=t.getTimezone(m,D.draft);p!==u&&(g(u),u&&M&&u!==M&&T(oe=>lt({},oe,{draft:t.setTimezone(m,u,oe.draft)})));const{getValidationErrorForNewValue:P}=Z0n({props:e,validator:r,timezone:w,value:D.draft,onError:e.onError}),F=qr(oe=>{const me={action:oe,dateState:D,hasChanged:$=>!t.areValuesEqual(m,oe.value,$),isControlled:f,closeOnSelect:c},Ce=KRi(me),Se=YRi(me),De=QRi(me);T($=>lt({},$,{draft:oe.value,lastPublishedValue:Ce?oe.value:$.lastPublishedValue,lastCommittedValue:Se?oe.value:$.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let Me=null;const qe=()=>(Me||(Me={validationError:oe.name==="setValueFromField"?oe.context.validationError:P(oe.value)},oe.name==="setValueFromShortcut"&&(Me.shortcut=oe.shortcut)),Me);Ce&&A(oe.value,qe()),Se&&o&&o(oe.value,qe()),De&&b(!1)});if(D.lastControlledValue!==a){const oe=t.areValuesEqual(m,D.draft,E);T(me=>lt({},me,{lastControlledValue:a},oe?{}:{lastCommittedValue:E,lastPublishedValue:E,draft:E,hasBeenModifiedSinceMount:!0}))}const N=qr(()=>{F({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),j=qr(()=>{F({value:D.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),W=qr(()=>{F({value:D.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),J=qr(()=>{F({value:D.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),ee=qr(()=>{F({value:t.getTodayValue(m,w,n),name:"setValueFromAction",pickerAction:"today"})}),Q=qr(oe=>{oe.preventDefault(),b(!0)}),H=qr(oe=>{oe?.preventDefault(),b(!1)}),q=qr((oe,me="partial")=>F({name:"setValueFromView",value:oe,selectionState:me})),le=qr((oe,me,Ce)=>F({name:"setValueFromShortcut",value:oe,changeImportance:me,shortcut:Ce})),Y=qr((oe,me)=>F({name:"setValueFromField",value:oe,context:me})),G={onClear:N,onAccept:j,onDismiss:W,onCancel:J,onSetToday:ee,onOpen:Q,onClose:H},pe={value:D.draft,onChange:Y},U=I.useMemo(()=>t.cleanValue(m,D.draft),[m,t,D.draft]),K={value:U,onChange:q,onClose:H,open:y},ce=lt({},G,{value:U,onChange:q,onSelectShortcut:le,isValid:oe=>{const me=r({adapter:v,value:oe,timezone:w,props:e});return!t.hasError(me)}}),de=I.useMemo(()=>({onOpen:Q,onClose:H,open:y}),[y,H,Q]);return{open:y,fieldProps:pe,viewProps:K,layoutProps:ce,actions:G,contextValue:de}},XRi=["className","sx"],JRi=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:i,rendererInterceptor:r,fieldRef:o})=>{const{onChange:s,open:a,onClose:l}=t,{view:c,views:u,openTo:d,onViewChange:h,viewRenderers:f,timezone:p}=e,g=zr(e,XRi),{view:m,setView:v,defaultView:y,focusedView:b,setFocusedView:w,setValueAndGoToNextView:E}=jQ({view:c,views:u,openTo:d,onChange:s,onViewChange:h,autoFocus:i}),{hasUIView:A,viewModeLookup:D}=I.useMemo(()=>u.reduce((W,J)=>{let ee;return f[J]!=null?ee="UI":ee="field",W.viewModeLookup[J]=ee,ee==="UI"&&(W.hasUIView=!0),W},{hasUIView:!1,viewModeLookup:{}}),[f,u]),T=I.useMemo(()=>u.reduce((W,J)=>f[J]!=null&&N9(J)?W+1:W,0),[f,u]),M=D[m],P=qr(()=>M==="UI"),[F,N]=I.useState(M==="UI"?m:null);return F!==m&&D[m]==="UI"&&N(m),lE(()=>{M==="field"&&a&&(l(),setTimeout(()=>{o?.current?.setSelectedSections(m),o?.current?.focusField(m)}))},[m]),lE(()=>{if(!a)return;let W=m;M==="field"&&F!=null&&(W=F),W!==y&&D[W]==="UI"&&D[y]==="UI"&&(W=y),W!==m&&v(W),w(W,!0)},[a]),{hasUIView:A,shouldRestoreFocus:P,layoutProps:{views:u,view:F,onViewChange:v},renderCurrentView:()=>{if(F==null)return null;const W=f[F];if(W==null)return null;const J=lt({},g,n,t,{views:u,timezone:p,onChange:E,view:F,onViewChange:v,focusedView:b,onFocusedViewChange:w,showViewSwitcher:T>1,timeViewsCount:T});return r?r(f,F,J):W(J)}}};function NMt(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}var e2i=(e,t)=>{const[n,i]=I.useState(NMt);return lE(()=>{const o=()=>{i(NMt())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),GB(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},t2i=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:i})=>{const{orientation:r}=e,o=e2i(n.views,r),s=Ph();return{layoutProps:lt({},n,t,{isLandscape:o,isRtl:s,wrapperVariant:i,disabled:e.disabled,readOnly:e.readOnly})}};function n2i(e){const{props:t,pickerValueResponse:n}=e;return I.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}var xyn=({props:e,valueManager:t,valueType:n,wrapperVariant:i,additionalViewProps:r,validator:o,autoFocusView:s,rendererInterceptor:a,fieldRef:l})=>{const c=ZRi({props:e,valueManager:t,valueType:n,wrapperVariant:i,validator:o}),u=JRi({props:e,additionalViewProps:r,autoFocusView:s,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:a}),d=t2i({props:e,wrapperVariant:i,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),h=n2i({props:e,pickerValueResponse:c});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:d.layoutProps,contextValue:c.contextValue,ownerState:h}};function Eyn(e){return _l("MuiPickersLayout",e)}var P1=Pl("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function i2i(e){return kr("MuiButton",e)}var r2i=Ir("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),kM=r2i,o2i=I.createContext({}),Ayn=o2i,s2i=I.createContext(void 0),Dyn=s2i,a2i=e=>{const{color:t,disableElevation:n,fullWidth:i,size:r,variant:o,loading:s,loadingPosition:a,classes:l}=e,c={root:["root",s&&"loading",o,`${o}${gn(t)}`,`size${gn(r)}`,`${o}Size${gn(r)}`,`color${gn(t)}`,n&&"disableElevation",i&&"fullWidth",s&&`loadingPosition${gn(a)}`],startIcon:["icon","startIcon",`iconSize${gn(r)}`],endIcon:["icon","endIcon",`iconSize${gn(r)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=Lr(c,i2i,l);return{...l,...u}},Tyn=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],l2i=Mt(vg,{shouldForwardProp:e=>kg(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${gn(n.color)}`],t[`size${gn(n.size)}`],t[`${n.variant}Size${gn(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(gr(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${kM.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${kM.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${kM.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${kM.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter($a()).map(([i])=>({props:{color:i},style:{"--variant-textColor":(e.vars||e).palette[i].main,"--variant-outlinedColor":(e.vars||e).palette[i].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[i].mainChannel} / 0.5)`:pr(e.palette[i].main,.5),"--variant-containedColor":(e.vars||e).palette[i].contrastText,"--variant-containedBg":(e.vars||e).palette[i].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[i].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[i].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette[i].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[i].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[i].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette[i].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${kM.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${kM.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${kM.loading}`]:{color:"transparent"}}}]}})),c2i=Mt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${gn(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Tyn]})),u2i=Mt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${gn(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Tyn]})),d2i=Mt("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),PMt=Mt("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),h2i=I.forwardRef(function(t,n){const i=I.useContext(Ayn),r=I.useContext(Dyn),o=I9(i,t),s=Nr({props:o,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:h=!1,disableFocusRipple:f=!1,endIcon:p,focusVisibleClassName:g,fullWidth:m=!1,id:v,loading:y=null,loadingIndicator:b,loadingPosition:w="center",size:E="medium",startIcon:A,type:D,variant:T="text",...M}=s,P=dQe(v),F=b??S.jsx(L9,{"aria-labelledby":P,color:"inherit",size:16}),N={...s,color:l,component:c,disabled:d,disableElevation:h,disableFocusRipple:f,fullWidth:m,loading:y,loadingIndicator:F,loadingPosition:w,size:E,type:D,variant:T},j=a2i(N),W=(A||y&&w==="start")&&S.jsx(c2i,{className:j.startIcon,ownerState:N,children:A||S.jsx(PMt,{className:j.loadingIconPlaceholder,ownerState:N})}),J=(p||y&&w==="end")&&S.jsx(u2i,{className:j.endIcon,ownerState:N,children:p||S.jsx(PMt,{className:j.loadingIconPlaceholder,ownerState:N})}),ee=r||"",Q=typeof y=="boolean"?S.jsx("span",{className:j.loadingWrapper,style:{display:"contents"},children:y&&S.jsx(d2i,{className:j.loadingIndicator,ownerState:N,children:F})}):null;return S.jsxs(l2i,{ownerState:N,className:Nn(i.className,j.root,u,ee),component:c,disabled:d||y,focusRipple:!f,focusVisibleClassName:Nn(j.focusVisible,g),ref:n,type:D,id:y?P:v,...M,classes:j,children:[W,w!=="end"&&Q,a,w==="end"&&Q,J]})}),na=h2i;function f2i(e){return kr("MuiDialogActions",e)}Ir("MuiDialogActions",["root","spacing"]);var p2i=e=>{const{classes:t,disableSpacing:n}=e;return Lr({root:["root",!n&&"spacing"]},f2i,t)},g2i=Mt("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),m2i=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1,...s}=i,a={...i,disableSpacing:o},l=p2i(a);return S.jsx(g2i,{className:Nn(l.root,r),ownerState:a,ref:n,...s})}),$Q=m2i,v2i=["onAccept","onClear","onCancel","onSetToday","actions"];function y2i(e){const{onAccept:t,onClear:n,onCancel:i,onSetToday:r,actions:o}=e,s=zr(e,v2i),a=wf();if(o==null||o.length===0)return null;const l=o?.map(c=>{switch(c){case"clear":return S.jsx(na,{onClick:n,children:a.clearButtonLabel},c);case"cancel":return S.jsx(na,{onClick:i,children:a.cancelButtonLabel},c);case"accept":return S.jsx(na,{onClick:t,children:a.okButtonLabel},c);case"today":return S.jsx(na,{onClick:r,children:a.todayButtonLabel},c);default:return null}});return S.jsx($Q,lt({},s,{children:l}))}function b2i(e){return kr("MuiListItem",e)}Ir("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);var _2i=Ir("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),w2i=_2i;function C2i(e){return kr("MuiListItemSecondaryAction",e)}Ir("MuiListItemSecondaryAction",["root","disableGutters"]);var S2i=e=>{const{disableGutters:t,classes:n}=e;return Lr({root:["root",t&&"disableGutters"]},C2i,n)},x2i=Mt("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),kyn=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiListItemSecondaryAction"}),{className:r,...o}=i,s=I.useContext(TD),a={...i,disableGutters:s.disableGutters},l=S2i(a);return S.jsx(x2i,{className:Nn(l.root,r),ownerState:a,ref:n,...o})});kyn.muiName="ListItemSecondaryAction";var E2i=kyn,A2i=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},D2i=e=>{const{alignItems:t,classes:n,dense:i,disableGutters:r,disablePadding:o,divider:s,hasSecondaryAction:a}=e;return Lr({root:["root",i&&"dense",!r&&"gutters",!o&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"]},b2i,n)},T2i=Mt("div",{name:"MuiListItem",slot:"Root",overridesResolver:A2i})(gr(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${w2i.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),k2i=Mt("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),I2i=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiListItem"}),{alignItems:r="center",children:o,className:s,component:a,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...h}={},dense:f=!1,disableGutters:p=!1,disablePadding:g=!1,divider:m=!1,secondaryAction:v,slotProps:y={},slots:b={},...w}=i,E=I.useContext(TD),A=I.useMemo(()=>({dense:f||E.dense||!1,alignItems:r,disableGutters:p}),[r,E.dense,f,p]),D=I.useRef(null),T=I.Children.toArray(o),M=T.length&&fce(T[T.length-1],["ListItemSecondaryAction"]),P={...i,alignItems:r,dense:A.dense,disableGutters:p,disablePadding:g,divider:m,hasSecondaryAction:M},F=D2i(P),N=pb(D,n),j=b.root||l.Root||T2i,W=y.root||c.root||{},J={className:Nn(F.root,W.className,s),...w};let ee=a||"li";return M?(ee=!J.component&&!a?"div":ee,u==="li"&&(ee==="li"?ee="div":J.component==="li"&&(J.component="div")),S.jsx(TD.Provider,{value:A,children:S.jsxs(k2i,{as:u,className:Nn(F.container,d),ref:N,ownerState:P,...h,children:[S.jsx(j,{...W,...!kD(j)&&{as:ee,ownerState:{...P,...W.ownerState}},...J,children:T}),T.pop()]})})):S.jsx(TD.Provider,{value:A,children:S.jsxs(j,{...W,as:ee,ref:N,...!kD(j)&&{ownerState:{...P,...W.ownerState}},...J,children:[T,v&&S.jsx(E2i,{children:v})]})})}),L2i=I2i,N2i=ho(S.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function P2i(e){return kr("MuiChip",e)}var M2i=Ir("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Ia=M2i,O2i=e=>{const{classes:t,disabled:n,size:i,color:r,iconColor:o,onDelete:s,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${gn(i)}`,`color${gn(r)}`,a&&"clickable",a&&`clickableColor${gn(r)}`,s&&"deletable",s&&`deletableColor${gn(r)}`,`${l}${gn(r)}`],label:["label",`label${gn(i)}`],avatar:["avatar",`avatar${gn(i)}`,`avatarColor${gn(r)}`],icon:["icon",`icon${gn(i)}`,`iconColor${gn(o)}`],deleteIcon:["deleteIcon",`deleteIcon${gn(i)}`,`deleteIconColor${gn(r)}`,`deleteIcon${gn(l)}Color${gn(r)}`]};return Lr(c,P2i,t)},R2i=Mt("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:i,iconColor:r,clickable:o,onDelete:s,size:a,variant:l}=n;return[{[`& .${Ia.avatar}`]:t.avatar},{[`& .${Ia.avatar}`]:t[`avatar${gn(a)}`]},{[`& .${Ia.avatar}`]:t[`avatarColor${gn(i)}`]},{[`& .${Ia.icon}`]:t.icon},{[`& .${Ia.icon}`]:t[`icon${gn(a)}`]},{[`& .${Ia.icon}`]:t[`iconColor${gn(r)}`]},{[`& .${Ia.deleteIcon}`]:t.deleteIcon},{[`& .${Ia.deleteIcon}`]:t[`deleteIcon${gn(a)}`]},{[`& .${Ia.deleteIcon}`]:t[`deleteIconColor${gn(i)}`]},{[`& .${Ia.deleteIcon}`]:t[`deleteIcon${gn(l)}Color${gn(i)}`]},t.root,t[`size${gn(a)}`],t[`color${gn(i)}`],o&&t.clickable,o&&i!=="default"&&t[`clickableColor${gn(i)})`],s&&t.deletable,s&&i!=="default"&&t[`deletableColor${gn(i)}`],t[l],t[`${l}${gn(i)}`]]}})(gr(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ia.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ia.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ia.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ia.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ia.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ia.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ia.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:pr(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:pr(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ia.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ia.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter($a(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Ia.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:pr(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Ia.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Ia.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ia.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter($a(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Ia.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ia.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter($a(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Ia.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ia.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ia.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ia.avatar}`]:{marginLeft:4},[`& .${Ia.avatarSmall}`]:{marginLeft:2},[`& .${Ia.icon}`]:{marginLeft:4},[`& .${Ia.iconSmall}`]:{marginLeft:2},[`& .${Ia.deleteIcon}`]:{marginRight:5},[`& .${Ia.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter($a()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:pr(e.palette[n].main,.7)}`,[`&.${Ia.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Ia.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:pr(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Ia.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:pr(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),F2i=Mt("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:i}=n;return[t.label,t[`label${gn(i)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function MMt(e){return e.key==="Backspace"||e.key==="Delete"}var B2i=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiChip"}),{avatar:r,className:o,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:h,onClick:f,onDelete:p,onKeyDown:g,onKeyUp:m,size:v="medium",variant:y="filled",tabIndex:b,skipFocusWhenDisabled:w=!1,...E}=i,A=I.useRef(null),D=pb(A,n),T=q=>{q.stopPropagation(),p&&p(q)},M=q=>{q.currentTarget===q.target&&MMt(q)&&q.preventDefault(),g&&g(q)},P=q=>{q.currentTarget===q.target&&p&&MMt(q)&&p(q),m&&m(q)},F=s!==!1&&f?!0:s,N=F||p?vg:l||"div",j={...i,component:N,disabled:u,size:v,color:a,iconColor:I.isValidElement(d)&&d.props.color||a,onDelete:!!p,clickable:F,variant:y},W=O2i(j),J=N===vg?{component:l||"div",focusVisibleClassName:W.focusVisible,...p&&{disableRipple:!0}}:{};let ee=null;p&&(ee=c&&I.isValidElement(c)?I.cloneElement(c,{className:Nn(c.props.className,W.deleteIcon),onClick:T}):S.jsx(N2i,{className:Nn(W.deleteIcon),onClick:T}));let Q=null;r&&I.isValidElement(r)&&(Q=I.cloneElement(r,{className:Nn(W.avatar,r.props.className)}));let H=null;return d&&I.isValidElement(d)&&(H=I.cloneElement(d,{className:Nn(W.icon,d.props.className)})),S.jsxs(R2i,{as:N,className:Nn(W.root,o),disabled:F&&u?!0:void 0,onClick:f,onKeyDown:M,onKeyUp:P,ref:D,tabIndex:w&&u?-1:b,ownerState:j,...J,...E,children:[Q||H,S.jsx(F2i,{className:Nn(W.label),ownerState:j,children:h}),ee]})}),D2=B2i,j2i=["items","changeImportance","isLandscape","onChange","isValid"],z2i=["getValue"];function V2i(e){const{items:t,changeImportance:n="accept",onChange:i,isValid:r}=e,o=zr(e,j2i);if(t==null||t.length===0)return null;const s=t.map(a=>{let{getValue:l}=a,c=zr(a,z2i);const u=l({isValid:r});return lt({},c,{label:c.label,onClick:()=>{i(u,n,c)},disabled:!r(u)})});return S.jsx(k0n,lt({dense:!0,sx:[{maxHeight:b0e,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:s.map(a=>S.jsx(L2i,{children:S.jsx(D2,lt({},a))},a.id??a.label))}))}function H2i(e){return e.view!==null}var W2i=e=>{const{classes:t,isLandscape:n}=e;return ul({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Eyn,t)},U2i=e=>{const{wrapperVariant:t,onAccept:n,onClear:i,onCancel:r,onSetToday:o,view:s,views:a,onViewChange:l,value:c,onChange:u,onSelectShortcut:d,isValid:h,isLandscape:f,disabled:p,readOnly:g,children:m,slots:v,slotProps:y}=e,b=W2i(e),w=v?.actionBar??y2i,E=kl({elementType:w,externalSlotProps:y?.actionBar,additionalProps:{onAccept:n,onClear:i,onCancel:r,onSetToday:o,actions:t==="desktop"?[]:["cancel","accept"]},className:b.actionBar,ownerState:lt({},e,{wrapperVariant:t})}),A=S.jsx(w,lt({},E)),D=v?.toolbar,T=kl({elementType:D,externalSlotProps:y?.toolbar,additionalProps:{isLandscape:f,onChange:u,value:c,view:s,onViewChange:l,views:a,disabled:p,readOnly:g},className:b.toolbar,ownerState:lt({},e,{wrapperVariant:t})}),M=H2i(T)&&D?S.jsx(D,lt({},T)):null,P=m,F=v?.tabs,N=s&&F?S.jsx(F,lt({view:s,onViewChange:l,className:b.tabs},y?.tabs)):null,j=v?.shortcuts??V2i,W=kl({elementType:j,externalSlotProps:y?.shortcuts,additionalProps:{isValid:h,isLandscape:f,onChange:d},className:b.shortcuts,ownerState:{isValid:h,isLandscape:f,onChange:d,wrapperVariant:t}}),J=s&&j?S.jsx(j,lt({},W)):null;return{toolbar:M,content:P,tabs:N,actionBar:A,shortcuts:J}},Iyn=U2i,$2i=e=>{const{isLandscape:t,classes:n}=e;return ul({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Eyn,n)},Lyn=Mt("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${P1.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${P1.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${P1.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${P1.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${P1.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${P1.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${P1.shortcuts}`]:{gridColumn:3}}}]}),Nyn=Mt("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Pyn=I.forwardRef(function(t,n){const i=Vs({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:s,actionBar:a,shortcuts:l}=Iyn(i),{sx:c,className:u,isLandscape:d,wrapperVariant:h}=i,f=$2i(i);return S.jsxs(Lyn,{ref:n,sx:c,className:Nn(f.root,u),ownerState:i,children:[d?l:r,d?r:l,S.jsx(Nyn,{className:f.contentWrapper,children:h==="desktop"?S.jsxs(I.Fragment,{children:[o,s]}):S.jsxs(I.Fragment,{children:[s,o]})}),a]})}),q2i=["props","getOpenDialogAriaText"],G2i=["ownerState"],K2i=["ownerState"],$Qe=e=>{let{props:t,getOpenDialogAriaText:n}=e,i=zr(e,q2i);const{slots:r,slotProps:o,className:s,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:h,timezone:f,name:p,label:g,inputRef:m,readOnly:v,disabled:y,autoFocus:b,localeText:w,reduceAnimations:E}=t,A=I.useRef(null),D=I.useRef(null),T=hj(),M=o?.toolbar?.hidden??!1,{open:P,actions:F,hasUIView:N,layoutProps:j,renderCurrentView:W,shouldRestoreFocus:J,fieldProps:ee,contextValue:Q,ownerState:H}=xyn(lt({},i,{props:t,fieldRef:D,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),q=r.inputAdornment??F9,le=kl({elementType:q,externalSlotProps:o?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),Y=zr(le,G2i),G=r.openPickerButton??Qr,pe=kl({elementType:G,externalSlotProps:o?.openPickerButton,additionalProps:{disabled:y||v,onClick:P?F.onClose:F.onOpen,"aria-label":n(ee.value),edge:Y.position},ownerState:t}),U=zr(pe,K2i),K=r.openPickerIcon,ie=kl({elementType:K,externalSlotProps:o?.openPickerIcon,ownerState:H}),ce=r.field,de=kl({elementType:ce,externalSlotProps:o?.field,additionalProps:lt({},ee,M&&{id:T},{readOnly:v,disabled:y,className:s,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:h,timezone:f,label:g,name:p,autoFocus:b&&!t.open,focused:P?!0:void 0},m?{inputRef:m}:{}),ownerState:t});N&&(de.InputProps=lt({},de.InputProps,{ref:A},!t.disableOpenPicker&&{[`${Y.position}Adornment`]:S.jsx(q,lt({},Y,{children:S.jsx(G,lt({},U,{children:S.jsx(K,lt({},ie))}))}))}));const oe=lt({textField:r.textField,clearIcon:r.clearIcon,clearButton:r.clearButton},de.slots),me=r.layout??Pyn;let Ce=T;M&&(g?Ce=`${T}-label`:Ce=void 0);const Se=lt({},o,{toolbar:lt({},o?.toolbar,{titleId:T}),popper:lt({"aria-labelledby":Ce},o?.popper)}),De=Bv(D,de.unstableFieldRef);return{renderPicker:()=>S.jsxs(X0n,{contextValue:Q,localeText:w,children:[S.jsx(ce,lt({},de,{slots:oe,slotProps:Se,unstableFieldRef:De})),S.jsx(qRi,lt({role:"dialog",placement:"bottom-start",anchorEl:A.current},F,{open:P,slots:r,slotProps:Se,shouldRestoreFocus:J,reduceAnimations:E,children:S.jsx(me,lt({},j,Se?.layout,{slots:r,slotProps:Se,children:W()}))}))]})}},K_=({view:e,onViewChange:t,views:n,focusedView:i,onFocusedViewChange:r,value:o,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minDate:f,maxDate:p,shouldDisableDate:g,shouldDisableMonth:m,shouldDisableYear:v,reduceAnimations:y,onMonthChange:b,monthsPerRow:w,onYearChange:E,yearsOrder:A,yearsPerRow:D,slots:T,slotProps:M,loading:P,renderLoading:F,disableHighlightToday:N,readOnly:j,disabled:W,showDaysOutsideCurrentMonth:J,dayOfWeekFormatter:ee,sx:Q,autoFocus:H,fixedWeekNumber:q,displayWeekNumber:le,timezone:Y})=>S.jsx(rOi,{view:e,onViewChange:t,views:n.filter(M9),focusedView:i&&M9(i)?i:null,onFocusedViewChange:r,value:o,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minDate:f,maxDate:p,shouldDisableDate:g,shouldDisableMonth:m,shouldDisableYear:v,reduceAnimations:y,onMonthChange:b,monthsPerRow:w,onYearChange:E,yearsOrder:A,yearsPerRow:D,slots:T,slotProps:M,loading:P,renderLoading:F,disableHighlightToday:N,readOnly:j,disabled:W,showDaysOutsideCurrentMonth:J,dayOfWeekFormatter:ee,sx:Q,autoFocus:H,fixedWeekNumber:q,displayWeekNumber:le,timezone:Y}),Myn=I.forwardRef(function(t,n){const i=wf(),r=fa(),o=pyn(t,"MuiDesktopDatePicker"),s=lt({day:K_,month:K_,year:K_},o.viewRenderers),a=lt({},o,{viewRenderers:s,format:GG(r,o,!1),yearsPerRow:o.yearsPerRow??4,slots:lt({openPickerIcon:m0n,field:syn},o.slots),slotProps:lt({},o.slotProps,{field:c=>lt({},JL(o.slotProps?.field,c),vj(o),{ref:n}),toolbar:lt({hidden:!0},o.slotProps?.toolbar)})}),{renderPicker:l}=$Qe({props:a,valueManager:Wd,valueType:"date",getOpenDialogAriaText:fj({utils:r,formatKey:"fullDate",contextTranslation:i.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:mj});return l()});Myn.propTypes={autoFocus:Kr.default.bool,className:Kr.default.string,closeOnSelect:Kr.default.bool,dayOfWeekFormatter:Kr.default.func,defaultValue:Kr.default.object,disabled:Kr.default.bool,disableFuture:Kr.default.bool,disableHighlightToday:Kr.default.bool,disableOpenPicker:Kr.default.bool,disablePast:Kr.default.bool,displayWeekNumber:Kr.default.bool,enableAccessibleFieldDOMStructure:Kr.default.any,fixedWeekNumber:Kr.default.number,format:Kr.default.string,formatDensity:Kr.default.oneOf(["dense","spacious"]),inputRef:dj,label:Kr.default.node,loading:Kr.default.bool,localeText:Kr.default.object,maxDate:Kr.default.object,minDate:Kr.default.object,monthsPerRow:Kr.default.oneOf([3,4]),name:Kr.default.string,onAccept:Kr.default.func,onChange:Kr.default.func,onClose:Kr.default.func,onError:Kr.default.func,onMonthChange:Kr.default.func,onOpen:Kr.default.func,onSelectedSectionsChange:Kr.default.func,onViewChange:Kr.default.func,onYearChange:Kr.default.func,open:Kr.default.bool,openTo:Kr.default.oneOf(["day","month","year"]),orientation:Kr.default.oneOf(["landscape","portrait"]),readOnly:Kr.default.bool,reduceAnimations:Kr.default.bool,referenceDate:Kr.default.object,renderLoading:Kr.default.func,selectedSections:Kr.default.oneOfType([Kr.default.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Kr.default.number]),shouldDisableDate:Kr.default.func,shouldDisableMonth:Kr.default.func,shouldDisableYear:Kr.default.func,showDaysOutsideCurrentMonth:Kr.default.bool,slotProps:Kr.default.object,slots:Kr.default.object,sx:Kr.default.oneOfType([Kr.default.arrayOf(Kr.default.oneOfType([Kr.default.func,Kr.default.object,Kr.default.bool])),Kr.default.func,Kr.default.object]),timezone:Kr.default.string,value:Kr.default.object,view:Kr.default.oneOf(["day","month","year"]),viewRenderers:Kr.default.shape({day:Kr.default.func,month:Kr.default.func,year:Kr.default.func}),views:Kr.default.arrayOf(Kr.default.oneOf(["day","month","year"]).isRequired),yearsOrder:Kr.default.oneOf(["asc","desc"]),yearsPerRow:Kr.default.oneOf([3,4])};var Yr=on(H2());function Y2i(e){return kr("MuiDialogContent",e)}Ir("MuiDialogContent",["root","dividers"]);function Q2i(e){return kr("MuiDialogTitle",e)}var Z2i=Ir("MuiDialogTitle",["root"]),X2i=Z2i,J2i=e=>{const{classes:t,dividers:n}=e;return Lr({root:["root",n&&"dividers"]},Y2i,t)},eFi=Mt("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(gr(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${X2i.root} + &`]:{paddingTop:0}}}]}))),tFi=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiDialogContent"}),{className:r,dividers:o=!1,...s}=i,a={...i,dividers:o},l=J2i(a);return S.jsx(eFi,{className:Nn(l.root,r),ownerState:a,ref:n,...s})}),qQ=tFi;function nFi(e){return kr("MuiDialog",e)}var iFi=Ir("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),X$=iFi,rFi=I.createContext({}),Oyn=rFi,oFi=Mt(V0n,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),sFi=e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:r,fullScreen:o}=e,s={root:["root"],container:["container",`scroll${gn(n)}`],paper:["paper",`paperScroll${gn(n)}`,`paperWidth${gn(String(i))}`,r&&"paperFullWidth",o&&"paperFullScreen"]};return Lr(s,nFi,t)},aFi=Mt(H0n,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),lFi=Mt("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${gn(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),cFi=Mt(eS,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${gn(n.scroll)}`],t[`paperWidth${gn(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(gr(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${X$.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${X$.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${X$.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),uFi=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiDialog"}),r=cl(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:d,className:h,disableEscapeKeyDown:f=!1,fullScreen:p=!1,fullWidth:g=!1,maxWidth:m="sm",onBackdropClick:v,onClick:y,onClose:b,open:w,PaperComponent:E=eS,PaperProps:A={},scroll:D="paper",slots:T={},slotProps:M={},TransitionComponent:P=eN,transitionDuration:F=o,TransitionProps:N,...j}=i,W={...i,disableEscapeKeyDown:f,fullScreen:p,fullWidth:g,maxWidth:m,scroll:D},J=sFi(W),ee=I.useRef(),Q=Me=>{ee.current=Me.target===Me.currentTarget},H=Me=>{y&&y(Me),ee.current&&(ee.current=null,v&&v(Me),b&&b(Me,"backdropClick"))},q=uj(a),le=I.useMemo(()=>({titleId:q}),[q]),Y={transition:P,...T},G={transition:N,paper:A,backdrop:u,...M},pe={slots:Y,slotProps:G},[U,K]=wo("root",{elementType:aFi,shouldForwardComponentProp:!0,externalForwardedProps:pe,ownerState:W,className:Nn(J.root,h),ref:n}),[ie,ce]=wo("backdrop",{elementType:oFi,shouldForwardComponentProp:!0,externalForwardedProps:pe,ownerState:W}),[de,oe]=wo("paper",{elementType:cFi,shouldForwardComponentProp:!0,externalForwardedProps:pe,ownerState:W,className:Nn(J.paper,A.className)}),[me,Ce]=wo("container",{elementType:lFi,externalForwardedProps:pe,ownerState:W,className:Nn(J.container)}),[Se,De]=wo("transition",{elementType:eN,externalForwardedProps:pe,ownerState:W,additionalProps:{appear:!0,in:w,timeout:F,role:"presentation"}});return S.jsx(U,{closeAfterTransition:!0,slots:{backdrop:ie},slotProps:{backdrop:{transitionDuration:F,as:c,...ce}},disableEscapeKeyDown:f,onClose:b,open:w,onClick:H,...K,...j,children:S.jsx(Se,{...De,children:S.jsx(me,{onMouseDown:Q,...Ce,children:S.jsx(de,{as:E,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":q,"aria-modal":l,...oe,children:S.jsx(Oyn.Provider,{value:le,children:d})})})})})}),GQ=uFi,dFi=Mt(GQ)({[`& .${X$.container}`]:{outline:0},[`& .${X$.paper}`]:{outline:0,minWidth:y0e}}),hFi=Mt(qQ)({"&:first-of-type":{padding:0}});function fFi(e){const{children:t,onDismiss:n,open:i,slots:r,slotProps:o}=e,s=r?.dialog??dFi,a=r?.mobileTransition??eN;return S.jsx(s,lt({open:i,onClose:n},o?.dialog,{TransitionComponent:a,TransitionProps:o?.mobileTransition,PaperComponent:r?.mobilePaper,PaperProps:o?.mobilePaper,children:S.jsx(hFi,{children:t})}))}var pFi=["props","getOpenDialogAriaText"],qQe=e=>{let{props:t,getOpenDialogAriaText:n}=e,i=zr(e,pFi);const{slots:r,slotProps:o,className:s,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:h,timezone:f,name:p,label:g,inputRef:m,readOnly:v,disabled:y,localeText:b}=t,w=I.useRef(null),E=hj(),A=o?.toolbar?.hidden??!1,{open:D,actions:T,layoutProps:M,renderCurrentView:P,fieldProps:F,contextValue:N}=xyn(lt({},i,{props:t,fieldRef:w,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),j=r.field,W=kl({elementType:j,externalSlotProps:o?.field,additionalProps:lt({},F,A&&{id:E},!(y||v)&&{onClick:T.onOpen,onKeyDown:Vki(T.onOpen)},{readOnly:v??!0,disabled:y,className:s,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:h,timezone:f,label:g,name:p},m?{inputRef:m}:{}),ownerState:t});W.inputProps=lt({},W.inputProps,{"aria-label":n(F.value)});const J=lt({textField:r.textField},W.slots),ee=r.layout??Pyn;let Q=E;A&&(g?Q=`${E}-label`:Q=void 0);const H=lt({},o,{toolbar:lt({},o?.toolbar,{titleId:E}),mobilePaper:lt({"aria-labelledby":Q},o?.mobilePaper)}),q=Bv(w,W.unstableFieldRef);return{renderPicker:()=>S.jsxs(X0n,{contextValue:N,localeText:b,children:[S.jsx(j,lt({},W,{slots:J,slotProps:H,unstableFieldRef:q})),S.jsx(fFi,lt({},T,{open:D,slots:r,slotProps:H,children:S.jsx(ee,lt({},M,H?.layout,{slots:r,slotProps:H,children:P()}))}))]})}},Ryn=I.forwardRef(function(t,n){const i=wf(),r=fa(),o=pyn(t,"MuiMobileDatePicker"),s=lt({day:K_,month:K_,year:K_},o.viewRenderers),a=lt({},o,{viewRenderers:s,format:GG(r,o,!1),slots:lt({field:syn},o.slots),slotProps:lt({},o.slotProps,{field:c=>lt({},JL(o.slotProps?.field,c),vj(o),{ref:n}),toolbar:lt({hidden:!1},o.slotProps?.toolbar)})}),{renderPicker:l}=qQe({props:a,valueManager:Wd,valueType:"date",getOpenDialogAriaText:fj({utils:r,formatKey:"fullDate",contextTranslation:i.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:mj});return l()});Ryn.propTypes={autoFocus:Yr.default.bool,className:Yr.default.string,closeOnSelect:Yr.default.bool,dayOfWeekFormatter:Yr.default.func,defaultValue:Yr.default.object,disabled:Yr.default.bool,disableFuture:Yr.default.bool,disableHighlightToday:Yr.default.bool,disableOpenPicker:Yr.default.bool,disablePast:Yr.default.bool,displayWeekNumber:Yr.default.bool,enableAccessibleFieldDOMStructure:Yr.default.any,fixedWeekNumber:Yr.default.number,format:Yr.default.string,formatDensity:Yr.default.oneOf(["dense","spacious"]),inputRef:dj,label:Yr.default.node,loading:Yr.default.bool,localeText:Yr.default.object,maxDate:Yr.default.object,minDate:Yr.default.object,monthsPerRow:Yr.default.oneOf([3,4]),name:Yr.default.string,onAccept:Yr.default.func,onChange:Yr.default.func,onClose:Yr.default.func,onError:Yr.default.func,onMonthChange:Yr.default.func,onOpen:Yr.default.func,onSelectedSectionsChange:Yr.default.func,onViewChange:Yr.default.func,onYearChange:Yr.default.func,open:Yr.default.bool,openTo:Yr.default.oneOf(["day","month","year"]),orientation:Yr.default.oneOf(["landscape","portrait"]),readOnly:Yr.default.bool,reduceAnimations:Yr.default.bool,referenceDate:Yr.default.object,renderLoading:Yr.default.func,selectedSections:Yr.default.oneOfType([Yr.default.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Yr.default.number]),shouldDisableDate:Yr.default.func,shouldDisableMonth:Yr.default.func,shouldDisableYear:Yr.default.func,showDaysOutsideCurrentMonth:Yr.default.bool,slotProps:Yr.default.object,slots:Yr.default.object,sx:Yr.default.oneOfType([Yr.default.arrayOf(Yr.default.oneOfType([Yr.default.func,Yr.default.object,Yr.default.bool])),Yr.default.func,Yr.default.object]),timezone:Yr.default.string,value:Yr.default.object,view:Yr.default.oneOf(["day","month","year"]),viewRenderers:Yr.default.shape({day:Yr.default.func,month:Yr.default.func,year:Yr.default.func}),views:Yr.default.arrayOf(Yr.default.oneOf(["day","month","year"]).isRequired),yearsOrder:Yr.default.oneOf(["asc","desc"]),yearsPerRow:Yr.default.oneOf([3,4])};var gFi=["desktopModeMediaQuery"],mFi=I.forwardRef(function(t,n){const i=Vs({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=EQe}=i,o=zr(i,gFi);return tN(r,{defaultMatches:!0})?S.jsx(Myn,lt({ref:n},o)):S.jsx(Ryn,lt({ref:n},o))}),oo=on(H2());function vFi(e){return _l("MuiPickersToolbarText",e)}var m7e=Pl("MuiPickersToolbarText",["root","selected"]),yFi=["className","selected","value"],bFi=e=>{const{classes:t,selected:n}=e;return ul({root:["root",n&&"selected"]},vFi,t)},_Fi=Mt(Xn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${m7e.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${m7e.selected}`]:{color:(e.vars||e).palette.text.primary}})),GQe=I.forwardRef(function(t,n){const i=Vs({props:t,name:"MuiPickersToolbarText"}),{className:r,value:o}=i,s=zr(i,yFi),a=bFi(i);return S.jsx(_Fi,lt({ref:n,className:Nn(a.root,r),component:"span"},s,{children:o}))}),wFi=["align","className","selected","typographyClassName","value","variant","width"],CFi=e=>{const{classes:t}=e;return ul({root:["root"]},fyn,t)},SFi=Mt(na,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Ey=I.forwardRef(function(t,n){const i=Vs({props:t,name:"MuiPickersToolbarButton"}),{align:r,className:o,selected:s,typographyClassName:a,value:l,variant:c,width:u}=i,d=zr(i,wFi),h=CFi(i);return S.jsx(SFi,lt({variant:"text",ref:n,className:Nn(h.root,o)},u?{sx:{width:u}}:{},d,{children:S.jsx(GQe,{align:r,className:a,variant:c,value:l,selected:s})}))});function xFi(e){return _l("MuiTimePickerToolbar",e)}var J$=Pl("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),EFi=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly","className"],AFi=e=>{const{isLandscape:t,classes:n,isRtl:i}=e;return ul({root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",t&&"hourMinuteLabelLandscape",i&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",t&&"ampmLandscape"],ampmLabel:["ampmLabel"]},xFi,n)},DFi=Mt(FQe,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),TFi=Mt(GQe,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),kFi=Mt("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${J$.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${J$.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{isLandscape:!0},style:{marginTop:"auto"}}]}),IFi=Mt("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${J$.ampmLabel}`]:t.ampmLabel},{[`&.${J$.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${J$.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"}}]});function LFi(e){const t=Vs({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:i,value:r,isLandscape:o,onChange:s,view:a,onViewChange:l,views:c,disabled:u,readOnly:d,className:h}=t,f=zr(t,EFi),p=fa(),g=wf(),m=Ph(),v=!!(n&&!i&&c.includes("hours")),{meridiemMode:y,handleMeridiemChange:b}=m0e(r,n,s),w=T=>n?p.format(T,"hours12h"):p.format(T,"hours24h"),E=lt({},t,{isRtl:m}),A=AFi(E),D=S.jsx(TFi,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:A.separator});return S.jsxs(DFi,lt({landscapeDirection:"row",toolbarTitle:g.timePickerToolbarTitle,isLandscape:o,ownerState:E,className:Nn(A.root,h)},f,{children:[S.jsxs(kFi,{className:A.hourMinuteLabel,ownerState:E,children:[GB(c,"hours")&&S.jsx(Ey,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:a==="hours",value:r?w(r):"--"}),GB(c,["hours","minutes"])&&D,GB(c,"minutes")&&S.jsx(Ey,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:a==="minutes",value:r?p.format(r,"minutes"):"--"}),GB(c,["minutes","seconds"])&&D,GB(c,"seconds")&&S.jsx(Ey,{variant:"h3",onClick:()=>l("seconds"),selected:a==="seconds",value:r?p.format(r,"seconds"):"--"})]}),v&&S.jsxs(IFi,{className:A.ampmSelection,ownerState:E,children:[S.jsx(Ey,{disableRipple:!0,variant:"subtitle2",selected:y==="am",typographyClassName:A.ampmLabel,value:X1(p,"am"),onClick:d?void 0:()=>b("am"),disabled:u}),S.jsx(Ey,{disableRipple:!0,variant:"subtitle2",selected:y==="pm",typographyClassName:A.ampmLabel,value:X1(p,"pm"),onClick:d?void 0:()=>b("pm"),disabled:u})]})]}))}function Fyn(e,t){const n=fa(),i=Vs({props:e,name:t}),r=i.ampm??n.is12HourCycleInCurrentLocale(),o=I.useMemo(()=>i.localeText?.toolbarTitle==null?i.localeText:lt({},i.localeText,{timePickerToolbarTitle:i.localeText.toolbarTitle}),[i.localeText]);return lt({},i,{ampm:r,localeText:o},vQe({views:i.views,openTo:i.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:i.disableFuture??!1,disablePast:i.disablePast??!1,slots:lt({toolbar:LFi},i.slots),slotProps:lt({},i.slotProps,{toolbar:lt({ampm:r,ampmInClock:i.ampmInClock},i.slotProps?.toolbar)})})}var A_=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:i,views:r,value:o,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:f,maxTime:p,shouldDisableTime:g,minutesStep:m,ampm:v,ampmInClock:y,slots:b,slotProps:w,readOnly:E,disabled:A,sx:D,autoFocus:T,showViewSwitcher:M,disableIgnoringDatePartForTimeValidation:P,timezone:F})=>S.jsx(uki,{view:e,onViewChange:t,focusedView:n&&N9(n)?n:null,onFocusedViewChange:i,views:r.filter(N9),value:o,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:f,maxTime:p,shouldDisableTime:g,minutesStep:m,ampm:v,ampmInClock:y,slots:b,slotProps:w,readOnly:E,disabled:A,sx:D,autoFocus:T,showViewSwitcher:M,disableIgnoringDatePartForTimeValidation:P,timezone:F}),Byn=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:i,views:r,value:o,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:f,maxTime:p,shouldDisableTime:g,minutesStep:m,ampm:v,slots:y,slotProps:b,readOnly:w,disabled:E,sx:A,autoFocus:D,disableIgnoringDatePartForTimeValidation:T,timeSteps:M,skipDisabled:P,timezone:F})=>S.jsx(Gki,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:i,views:r.filter(N9),value:o,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:f,maxTime:p,shouldDisableTime:g,minutesStep:m,ampm:v,slots:y,slotProps:b,readOnly:w,disabled:E,sx:A,autoFocus:D,disableIgnoringDatePartForTimeValidation:T,timeStep:M?.minutes,skipDisabled:P,timezone:F}),Hhe=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:i,views:r,value:o,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:f,maxTime:p,shouldDisableTime:g,minutesStep:m,ampm:v,slots:y,slotProps:b,readOnly:w,disabled:E,sx:A,autoFocus:D,disableIgnoringDatePartForTimeValidation:T,timeSteps:M,skipDisabled:P,timezone:F})=>S.jsx(sIi,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:i,views:r.filter(N9),value:o,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:f,maxTime:p,shouldDisableTime:g,minutesStep:m,ampm:v,slots:y,slotProps:b,readOnly:w,disabled:E,sx:A,autoFocus:D,disableIgnoringDatePartForTimeValidation:T,timeSteps:M,skipDisabled:P,timezone:F}),NFi=["views","format"],jyn=(e,t,n)=>{let{views:i,format:r}=t,o=zr(t,NFi);if(r)return r;const s=[],a=[];if(i.forEach(u=>{N9(u)?a.push(u):M9(u)&&s.push(u)}),a.length===0)return GG(e,lt({views:s},o),!1);if(s.length===0)return Fhe(e,lt({views:a},o));const l=Fhe(e,lt({views:a},o));return`${GG(e,lt({views:s},o),!1)} ${l}`},PFi=(e,t,n)=>n?t.filter(i=>!eU(i)||i==="hours"):e?[...t,"meridiem"]:t,MFi=(e,t)=>1440/((e.hours??1)*(e.minutes??5))<=t;function zyn({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:i}){const r=e??24,o=lt({hours:1,minutes:5,seconds:5},n),s=MFi(o,r);return{thresholdToRenderTimeInASingleColumn:r,timeSteps:o,shouldRenderTimeInASingleColumn:s,views:PFi(t,i,s)}}var Vyn=I.forwardRef(function(t,n){const i=wf(),r=fa(),o=Fyn(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:s,views:a,timeSteps:l}=zyn(o),c=s?Byn:Hhe,u=lt({hours:c,minutes:c,seconds:c,meridiem:c},o.viewRenderers),d=o.ampmInClock??!0,h=s?[]:["accept"],p=u.hours?.name===Hhe.name?a:a.filter(v=>v!=="meridiem"),g=lt({},o,{ampmInClock:d,timeSteps:l,viewRenderers:u,format:Fhe(r,o),views:s?["hours"]:p,slots:lt({field:ayn,openPickerIcon:YDi},o.slots),slotProps:lt({},o.slotProps,{field:v=>lt({},JL(o.slotProps?.field,v),vj(o),{ref:n}),toolbar:lt({hidden:!0,ampmInClock:d},o.slotProps?.toolbar),actionBar:lt({actions:h},o.slotProps?.actionBar)})}),{renderPicker:m}=$Qe({props:g,valueManager:Wd,valueType:"time",getOpenDialogAriaText:fj({utils:r,formatKey:"fullTime",contextTranslation:i.openTimePickerDialogue,propsTranslation:g.localeText?.openTimePickerDialogue}),validator:HQ});return m()});Vyn.propTypes={ampm:oo.default.bool,ampmInClock:oo.default.bool,autoFocus:oo.default.bool,className:oo.default.string,closeOnSelect:oo.default.bool,defaultValue:oo.default.object,disabled:oo.default.bool,disableFuture:oo.default.bool,disableIgnoringDatePartForTimeValidation:oo.default.bool,disableOpenPicker:oo.default.bool,disablePast:oo.default.bool,enableAccessibleFieldDOMStructure:oo.default.any,format:oo.default.string,formatDensity:oo.default.oneOf(["dense","spacious"]),inputRef:dj,label:oo.default.node,localeText:oo.default.object,maxTime:oo.default.object,minTime:oo.default.object,minutesStep:oo.default.number,name:oo.default.string,onAccept:oo.default.func,onChange:oo.default.func,onClose:oo.default.func,onError:oo.default.func,onOpen:oo.default.func,onSelectedSectionsChange:oo.default.func,onViewChange:oo.default.func,open:oo.default.bool,openTo:oo.default.oneOf(["hours","meridiem","minutes","seconds"]),orientation:oo.default.oneOf(["landscape","portrait"]),readOnly:oo.default.bool,reduceAnimations:oo.default.bool,referenceDate:oo.default.object,selectedSections:oo.default.oneOfType([oo.default.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),oo.default.number]),shouldDisableTime:oo.default.func,skipDisabled:oo.default.bool,slotProps:oo.default.object,slots:oo.default.object,sx:oo.default.oneOfType([oo.default.arrayOf(oo.default.oneOfType([oo.default.func,oo.default.object,oo.default.bool])),oo.default.func,oo.default.object]),thresholdToRenderTimeInASingleColumn:oo.default.number,timeSteps:oo.default.shape({hours:oo.default.number,minutes:oo.default.number,seconds:oo.default.number}),timezone:oo.default.string,value:oo.default.object,view:oo.default.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:oo.default.shape({hours:oo.default.func,meridiem:oo.default.func,minutes:oo.default.func,seconds:oo.default.func}),views:oo.default.arrayOf(oo.default.oneOf(["hours","minutes","seconds"]).isRequired)};var To=on(H2()),Hyn=I.forwardRef(function(t,n){const i=wf(),r=fa(),o=Fyn(t,"MuiMobileTimePicker"),s=lt({hours:A_,minutes:A_,seconds:A_},o.viewRenderers),a=o.ampmInClock??!1,l=lt({},o,{ampmInClock:a,viewRenderers:s,format:Fhe(r,o),slots:lt({field:ayn},o.slots),slotProps:lt({},o.slotProps,{field:u=>lt({},JL(o.slotProps?.field,u),vj(o),{ref:n}),toolbar:lt({hidden:!1,ampmInClock:a},o.slotProps?.toolbar)})}),{renderPicker:c}=qQe({props:l,valueManager:Wd,valueType:"time",getOpenDialogAriaText:fj({utils:r,formatKey:"fullTime",contextTranslation:i.openTimePickerDialogue,propsTranslation:l.localeText?.openTimePickerDialogue}),validator:HQ});return c()});Hyn.propTypes={ampm:To.default.bool,ampmInClock:To.default.bool,autoFocus:To.default.bool,className:To.default.string,closeOnSelect:To.default.bool,defaultValue:To.default.object,disabled:To.default.bool,disableFuture:To.default.bool,disableIgnoringDatePartForTimeValidation:To.default.bool,disableOpenPicker:To.default.bool,disablePast:To.default.bool,enableAccessibleFieldDOMStructure:To.default.any,format:To.default.string,formatDensity:To.default.oneOf(["dense","spacious"]),inputRef:dj,label:To.default.node,localeText:To.default.object,maxTime:To.default.object,minTime:To.default.object,minutesStep:To.default.number,name:To.default.string,onAccept:To.default.func,onChange:To.default.func,onClose:To.default.func,onError:To.default.func,onOpen:To.default.func,onSelectedSectionsChange:To.default.func,onViewChange:To.default.func,open:To.default.bool,openTo:To.default.oneOf(["hours","minutes","seconds"]),orientation:To.default.oneOf(["landscape","portrait"]),readOnly:To.default.bool,reduceAnimations:To.default.bool,referenceDate:To.default.object,selectedSections:To.default.oneOfType([To.default.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),To.default.number]),shouldDisableTime:To.default.func,slotProps:To.default.object,slots:To.default.object,sx:To.default.oneOfType([To.default.arrayOf(To.default.oneOfType([To.default.func,To.default.object,To.default.bool])),To.default.func,To.default.object]),timezone:To.default.string,value:To.default.object,view:To.default.oneOf(["hours","minutes","seconds"]),viewRenderers:To.default.shape({hours:To.default.func,minutes:To.default.func,seconds:To.default.func}),views:To.default.arrayOf(To.default.oneOf(["hours","minutes","seconds"]).isRequired)};var OFi=["desktopModeMediaQuery"],RFi=I.forwardRef(function(t,n){const i=Vs({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:r=EQe}=i,o=zr(i,OFi);return tN(r,{defaultMatches:!0})?S.jsx(Vyn,lt({ref:n},o)):S.jsx(Hyn,lt({ref:n},o))}),ar=on(H2());function FFi(e){return kr("MuiTab",e)}var BFi=Ir("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),Kb=BFi,jFi=e=>{const{classes:t,textColor:n,fullWidth:i,wrapped:r,icon:o,label:s,selected:a,disabled:l}=e,c={root:["root",o&&s&&"labelIcon",`textColor${gn(n)}`,i&&"fullWidth",r&&"wrapped",a&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return Lr(c,FFi,t)},zFi=Mt(vg,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${gn(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Kb.iconWrapper}`]:t.iconWrapper},{[`& .${Kb.icon}`]:t.icon}]}})(gr(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${Kb.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${Kb.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${Kb.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${Kb.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Kb.selected}`]:{opacity:1},[`&.${Kb.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Kb.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Kb.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Kb.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Kb.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),VFi=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiTab"}),{className:r,disabled:o=!1,disableFocusRipple:s=!1,fullWidth:a,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:h,onClick:f,onFocus:p,selected:g,selectionFollowsFocus:m,textColor:v="inherit",value:y,wrapped:b=!1,...w}=i,E={...i,disabled:o,disableFocusRipple:s,selected:g,icon:!!l,iconPosition:c,label:!!d,fullWidth:a,textColor:v,wrapped:b},A=jFi(E),D=l&&d&&I.isValidElement(l)?I.cloneElement(l,{className:Nn(A.icon,l.props.className)}):l,T=P=>{!g&&h&&h(P,y),f&&f(P)},M=P=>{m&&!g&&h&&h(P,y),p&&p(P)};return S.jsxs(zFi,{focusRipple:!s,className:Nn(A.root,r),ref:n,role:"tab","aria-selected":g,disabled:o,onClick:T,onFocus:M,ownerState:E,tabIndex:g?0:-1,...w,children:[c==="top"||c==="start"?S.jsxs(I.Fragment,{children:[D,d]}):S.jsxs(I.Fragment,{children:[d,D]}),u]})}),v7e=VFi;function HFi(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function WFi(e,t,n,i={},r=()=>{}){const{ease:o=HFi,duration:s=300}=i;let a=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=h=>{if(c){r(new Error("Animation cancelled"));return}a===null&&(a=h);const f=Math.min(1,(h-a)/s);if(t[e]=o(f)*(n-l)+l,f>=1){requestAnimationFrame(()=>{r(null)});return}requestAnimationFrame(d)};return l===n?(r(new Error("Element already at target position")),u):(requestAnimationFrame(d),u)}var UFi={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function $Fi(e){const{onChange:t,...n}=e,i=I.useRef(),r=I.useRef(null),o=()=>{i.current=r.current.offsetHeight-r.current.clientHeight};return p0e(()=>{const s=FQ(()=>{const l=i.current;o(),l!==i.current&&t(i.current)}),a=WG(r.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),I.useEffect(()=>{o(),t(i.current)},[t]),S.jsx("div",{style:UFi,...n,ref:r})}var qFi=ho(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),GFi=ho(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function KFi(e){return kr("MuiTabScrollButton",e)}var YFi=Ir("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),QFi=YFi,ZFi=e=>{const{classes:t,orientation:n,disabled:i}=e;return Lr({root:["root",n,i&&"disabled"]},KFi,t)},XFi=Mt(vg,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${QFi.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),JFi=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiTabScrollButton"}),{className:r,slots:o={},slotProps:s={},direction:a,orientation:l,disabled:c,...u}=i,d=Ph(),h={isRtl:d,...i},f=ZFi(h),p=o.StartScrollButtonIcon??qFi,g=o.EndScrollButtonIcon??GFi,m=Xm({elementType:p,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),v=Xm({elementType:g,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return S.jsx(XFi,{component:"div",className:Nn(f.root,r),ref:n,role:null,ownerState:h,tabIndex:null,...u,style:{...u.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:a==="left"?S.jsx(p,{...m}):S.jsx(g,{...v})})}),e5i=JFi;function t5i(e){return kr("MuiTabs",e)}var n5i=Ir("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),gce=n5i,OMt=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,RMt=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Tie=(e,t,n)=>{let i=!1,r=n(e,t);for(;r;){if(r===e.firstChild){if(i)return;i=!0}const o=r.disabled||r.getAttribute("aria-disabled")==="true";if(!r.hasAttribute("tabindex")||o)r=n(e,r);else{r.focus();return}}},i5i=e=>{const{vertical:t,fixed:n,hideScrollbar:i,scrollableX:r,scrollableY:o,centered:s,scrollButtonsHideMobile:a,classes:l}=e;return Lr({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",i&&"hideScrollbar",r&&"scrollableX",o&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[r&&"scrollableX"],hideScrollbar:[i&&"hideScrollbar"]},t5i,l)},r5i=Mt("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gce.scrollButtons}`]:t.scrollButtons},{[`& .${gce.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(gr(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${gce.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),o5i=Mt("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),s5i=Mt("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),a5i=Mt("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(gr(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),l5i=Mt($Fi)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),FMt={},c5i=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiTabs"}),r=cl(),o=Ph(),{"aria-label":s,"aria-labelledby":a,action:l,centered:c=!1,children:u,className:d,component:h="div",allowScrollButtonsMobile:f=!1,indicatorColor:p="primary",onChange:g,orientation:m="horizontal",ScrollButtonComponent:v,scrollButtons:y="auto",selectionFollowsFocus:b,slots:w={},slotProps:E={},TabIndicatorProps:A={},TabScrollButtonProps:D={},textColor:T="primary",value:M,variant:P="standard",visibleScrollbar:F=!1,...N}=i,j=P==="scrollable",W=m==="vertical",J=W?"scrollTop":"scrollLeft",ee=W?"top":"left",Q=W?"bottom":"right",H=W?"clientHeight":"clientWidth",q=W?"height":"width",le={...i,component:h,allowScrollButtonsMobile:f,indicatorColor:p,orientation:m,vertical:W,scrollButtons:y,textColor:T,variant:P,visibleScrollbar:F,fixed:!j,hideScrollbar:j&&!F,scrollableX:j&&!W,scrollableY:j&&W,centered:c&&!j,scrollButtonsHideMobile:!f},Y=i5i(le),G=Xm({elementType:w.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:le}),pe=Xm({elementType:w.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:le}),[U,K]=I.useState(!1),[ie,ce]=I.useState(FMt),[de,oe]=I.useState(!1),[me,Ce]=I.useState(!1),[Se,De]=I.useState(!1),[Me,qe]=I.useState({overflow:"hidden",scrollbarWidth:0}),$=new Map,he=I.useRef(null),Ie=I.useRef(null),Be={slots:w,slotProps:{indicator:A,scrollButton:D,...E}},ze=()=>{const ve=he.current;let _e;if(ve){const Le=ve.getBoundingClientRect();_e={clientWidth:ve.clientWidth,scrollLeft:ve.scrollLeft,scrollTop:ve.scrollTop,scrollWidth:ve.scrollWidth,top:Le.top,bottom:Le.bottom,left:Le.left,right:Le.right}}let Ee;if(ve&&M!==!1){const Le=Ie.current.children;if(Le.length>0){const be=Le[$.get(M)];Ee=be?be.getBoundingClientRect():null}}return{tabsMeta:_e,tabMeta:Ee}},Ye=AD(()=>{const{tabsMeta:ve,tabMeta:_e}=ze();let Ee=0,Le;W?(Le="top",_e&&ve&&(Ee=_e.top-ve.top+ve.scrollTop)):(Le=o?"right":"left",_e&&ve&&(Ee=(o?-1:1)*(_e[Le]-ve[Le]+ve.scrollLeft)));const be={[Le]:Ee,[q]:_e?_e[q]:0};if(typeof ie[Le]!="number"||typeof ie[q]!="number")ce(be);else{const Fe=Math.abs(ie[Le]-be[Le]),Ze=Math.abs(ie[q]-be[q]);(Fe>=1||Ze>=1)&&ce(be)}}),it=(ve,{animation:_e=!0}={})=>{_e?WFi(J,he.current,ve,{duration:r.transitions.duration.standard}):he.current[J]=ve},ft=ve=>{let _e=he.current[J];W?_e+=ve:_e+=ve*(o?-1:1),it(_e)},ct=()=>{const ve=he.current[H];let _e=0;const Ee=Array.from(Ie.current.children);for(let Le=0;Le<Ee.length;Le+=1){const be=Ee[Le];if(_e+be[H]>ve){Le===0&&(_e=ve);break}_e+=be[H]}return _e},et=()=>{ft(-1*ct())},ut=()=>{ft(ct())},[wt,{onChange:pt,..._t}]=wo("scrollbar",{className:Nn(Y.scrollableX,Y.hideScrollbar),elementType:l5i,shouldForwardComponentProp:!0,externalForwardedProps:Be,ownerState:le}),Rt=I.useCallback(ve=>{pt?.(ve),qe({overflow:null,scrollbarWidth:ve})},[pt]),[Yt,Ut]=wo("scrollButtons",{className:Nn(Y.scrollButtons,D.className),elementType:e5i,externalForwardedProps:Be,ownerState:le,additionalProps:{orientation:m,slots:{StartScrollButtonIcon:w.startScrollButtonIcon||w.StartScrollButtonIcon,EndScrollButtonIcon:w.endScrollButtonIcon||w.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:G,endScrollButtonIcon:pe}}}),Gt=()=>{const ve={};ve.scrollbarSizeListener=j?S.jsx(wt,{..._t,onChange:Rt}):null;const Ee=j&&(y==="auto"&&(de||me)||y===!0);return ve.scrollButtonStart=Ee?S.jsx(Yt,{direction:o?"right":"left",onClick:et,disabled:!de,...Ut}):null,ve.scrollButtonEnd=Ee?S.jsx(Yt,{direction:o?"left":"right",onClick:ut,disabled:!me,...Ut}):null,ve},Kt=AD(ve=>{const{tabsMeta:_e,tabMeta:Ee}=ze();if(!(!Ee||!_e)){if(Ee[ee]<_e[ee]){const Le=_e[J]+(Ee[ee]-_e[ee]);it(Le,{animation:ve})}else if(Ee[Q]>_e[Q]){const Le=_e[J]+(Ee[Q]-_e[Q]);it(Le,{animation:ve})}}}),ln=AD(()=>{j&&y!==!1&&De(!Se)});I.useEffect(()=>{const ve=FQ(()=>{he.current&&Ye()});let _e;const Ee=Fe=>{Fe.forEach(Ze=>{Ze.removedNodes.forEach(Ve=>{_e?.unobserve(Ve)}),Ze.addedNodes.forEach(Ve=>{_e?.observe(Ve)})}),ve(),ln()},Le=WG(he.current);Le.addEventListener("resize",ve);let be;return typeof ResizeObserver<"u"&&(_e=new ResizeObserver(ve),Array.from(Ie.current.children).forEach(Fe=>{_e.observe(Fe)})),typeof MutationObserver<"u"&&(be=new MutationObserver(Ee),be.observe(Ie.current,{childList:!0})),()=>{ve.clear(),Le.removeEventListener("resize",ve),be?.disconnect(),_e?.disconnect()}},[Ye,ln]),I.useEffect(()=>{const ve=Array.from(Ie.current.children),_e=ve.length;if(typeof IntersectionObserver<"u"&&_e>0&&j&&y!==!1){const Ee=ve[0],Le=ve[_e-1],be={root:he.current,threshold:.99},Fe=Vt=>{oe(!Vt[0].isIntersecting)},Ze=new IntersectionObserver(Fe,be);Ze.observe(Ee);const Ve=Vt=>{Ce(!Vt[0].isIntersecting)},dt=new IntersectionObserver(Ve,be);return dt.observe(Le),()=>{Ze.disconnect(),dt.disconnect()}}},[j,y,Se,u?.length]),I.useEffect(()=>{K(!0)},[]),I.useEffect(()=>{Ye()}),I.useEffect(()=>{Kt(FMt!==ie)},[Kt,ie]),I.useImperativeHandle(l,()=>({updateIndicator:Ye,updateScrollButtons:ln}),[Ye,ln]);const[pn,wn]=wo("indicator",{className:Nn(Y.indicator,A.className),elementType:a5i,externalForwardedProps:Be,ownerState:le,additionalProps:{style:ie}}),Mn=S.jsx(pn,{...wn});let Yn=0;const di=I.Children.map(u,ve=>{if(!I.isValidElement(ve))return null;const _e=ve.props.value===void 0?Yn:ve.props.value;$.set(_e,Yn);const Ee=_e===M;return Yn+=1,I.cloneElement(ve,{fullWidth:P==="fullWidth",indicator:Ee&&!U&&Mn,selected:Ee,selectionFollowsFocus:b,onChange:g,textColor:T,value:_e,...Yn===1&&M===!1&&!ve.props.tabIndex?{tabIndex:0}:{}})}),Li=ve=>{if(ve.altKey||ve.shiftKey||ve.ctrlKey||ve.metaKey)return;const _e=Ie.current,Ee=HG(_e).activeElement;if(Ee.getAttribute("role")!=="tab")return;let be=m==="horizontal"?"ArrowLeft":"ArrowUp",Fe=m==="horizontal"?"ArrowRight":"ArrowDown";switch(m==="horizontal"&&o&&(be="ArrowRight",Fe="ArrowLeft"),ve.key){case be:ve.preventDefault(),Tie(_e,Ee,RMt);break;case Fe:ve.preventDefault(),Tie(_e,Ee,OMt);break;case"Home":ve.preventDefault(),Tie(_e,null,OMt);break;case"End":ve.preventDefault(),Tie(_e,null,RMt);break}},ke=Gt(),[Z,ne]=wo("root",{ref:n,className:Nn(Y.root,d),elementType:r5i,externalForwardedProps:{...Be,...N,component:h},ownerState:le}),[V,re]=wo("scroller",{ref:he,className:Y.scroller,elementType:o5i,externalForwardedProps:Be,ownerState:le,additionalProps:{style:{overflow:Me.overflow,[W?`margin${o?"Left":"Right"}`:"marginBottom"]:F?void 0:-Me.scrollbarWidth}}}),[ge,we]=wo("list",{ref:Ie,className:Nn(Y.list,Y.flexContainer),elementType:s5i,externalForwardedProps:Be,ownerState:le,getSlotProps:ve=>({...ve,onKeyDown:_e=>{Li(_e),ve.onKeyDown?.(_e)}})});return S.jsxs(Z,{...ne,children:[ke.scrollButtonStart,ke.scrollbarSizeListener,S.jsxs(V,{...re,children:[S.jsx(ge,{"aria-label":s,"aria-labelledby":a,"aria-orientation":m==="vertical"?"vertical":null,role:"tablist",...we,children:di}),U&&Mn]}),ke.scrollButtonEnd]})}),Wyn=c5i;function u5i(e){return _l("MuiDateTimePickerTabs",e)}Pl("MuiDateTimePickerTabs",["root"]);var d5i=e=>M9(e)?"date":"time",h5i=e=>e==="date"?"day":"hours",f5i=e=>{const{classes:t}=e;return ul({root:["root"]},u5i,t)},p5i=Mt(Wyn,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${gce.indicator}`]:{bottom:"auto",top:0}}})),g5i=function(t){const n=Vs({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:i=S.jsx(QDi,{}),onViewChange:r,timeIcon:o=S.jsx(ZDi,{}),view:s,hidden:a=typeof window>"u"||window.innerHeight<667,className:l,sx:c}=n,u=wf(),d=f5i(n),h=(f,p)=>{r(h5i(p))};return a?null:S.jsxs(p5i,{ownerState:n,variant:"fullWidth",value:d5i(s),onChange:h,className:Nn(l,d.root),sx:c,children:[S.jsx(v7e,{value:"date","aria-label":u.dateTableLabel,icon:S.jsx(I.Fragment,{children:i})}),S.jsx(v7e,{value:"time","aria-label":u.timeTableLabel,icon:S.jsx(I.Fragment,{children:o})})]})};function m5i(e){return _l("MuiDateTimePickerToolbar",e)}var ZPe=Pl("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),v5i=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant","toolbarTitle","className"],y5i=e=>{const{classes:t,isLandscape:n,isRtl:i}=e;return ul({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",i&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",i&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]},m5i,t)},b5i=Mt(FQe,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",variants:[{props:{toolbarVariant:"desktop"},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${dOi.content} .${m7e.selected}`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:"desktop",isLandscape:!0},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{paddingLeft:24,paddingRight:0}}]})),_5i=Mt("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),w5i=Mt("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex",flexDirection:"row",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{gap:9,marginRight:4,alignSelf:"flex-end"}},{props:({isLandscape:e,toolbarVariant:t})=>e&&t!=="desktop",style:{flexDirection:"column"}},{props:({isLandscape:e,toolbarVariant:t,isRtl:n})=>e&&t!=="desktop"&&n,style:{flexDirection:"column-reverse"}}]}),C5i=Mt("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})({display:"flex",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop"},style:{gap:1.5}}]}),BMt=Mt(GQe,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),S5i=Mt("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${ZPe.ampmLabel}`]:t.ampmLabel},{[`&.${ZPe.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${ZPe.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]});function x5i(e){const t=Vs({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:i,value:r,onChange:o,view:s,isLandscape:a,onViewChange:l,toolbarFormat:c,toolbarPlaceholder:u="––",views:d,disabled:h,readOnly:f,toolbarVariant:p="mobile",toolbarTitle:g,className:m}=t,v=zr(t,v5i),y=Ph(),b=lt({},t,{isRtl:y}),w=fa(),{meridiemMode:E,handleMeridiemChange:A}=m0e(r,n,o),D=!!(n&&!i),T=p==="desktop",M=wf(),P=y5i(b),F=g??M.dateTimePickerToolbarTitle,N=W=>n?w.format(W,"hours12h"):w.format(W,"hours24h"),j=I.useMemo(()=>r?c?w.formatByString(r,c):w.format(r,"shortDate"):u,[r,c,u,w]);return S.jsxs(b5i,lt({isLandscape:a,className:Nn(P.root,m),toolbarTitle:F},v,{ownerState:b,children:[S.jsxs(_5i,{className:P.dateContainer,ownerState:b,children:[d.includes("year")&&S.jsx(Ey,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:s==="year",value:r?w.format(r,"year"):"–"}),d.includes("day")&&S.jsx(Ey,{tabIndex:-1,variant:T?"h5":"h4",onClick:()=>l("day"),selected:s==="day",value:j})]}),S.jsxs(w5i,{className:P.timeContainer,ownerState:b,children:[S.jsxs(C5i,{className:P.timeDigitsContainer,ownerState:b,children:[d.includes("hours")&&S.jsxs(I.Fragment,{children:[S.jsx(Ey,{variant:T?"h5":"h3",width:T&&!a?tU:void 0,onClick:()=>l("hours"),selected:s==="hours",value:r?N(r):"--"}),S.jsx(BMt,{variant:T?"h5":"h3",value:":",className:P.separator,ownerState:b}),S.jsx(Ey,{variant:T?"h5":"h3",width:T&&!a?tU:void 0,onClick:()=>l("minutes"),selected:s==="minutes"||!d.includes("minutes")&&s==="hours",value:r?w.format(r,"minutes"):"--",disabled:!d.includes("minutes")})]}),d.includes("seconds")&&S.jsxs(I.Fragment,{children:[S.jsx(BMt,{variant:T?"h5":"h3",value:":",className:P.separator,ownerState:b}),S.jsx(Ey,{variant:T?"h5":"h3",width:T&&!a?tU:void 0,onClick:()=>l("seconds"),selected:s==="seconds",value:r?w.format(r,"seconds"):"--"})]})]}),D&&!T&&S.jsxs(S5i,{className:P.ampmSelection,ownerState:b,children:[S.jsx(Ey,{variant:"subtitle2",selected:E==="am",typographyClassName:P.ampmLabel,value:X1(w,"am"),onClick:f?void 0:()=>A("am"),disabled:h}),S.jsx(Ey,{variant:"subtitle2",selected:E==="pm",typographyClassName:P.ampmLabel,value:X1(w,"pm"),onClick:f?void 0:()=>A("pm"),disabled:h})]}),n&&T&&S.jsx(Ey,{variant:"h5",onClick:()=>l("meridiem"),selected:s==="meridiem",value:r&&E?X1(w,E):"--",width:tU})]})]}))}function Uyn(e,t){const n=fa(),i=kF(),r=Vs({props:e,name:t}),o=r.ampm??n.is12HourCycleInCurrentLocale(),s=I.useMemo(()=>r.localeText?.toolbarTitle==null?r.localeText:lt({},r.localeText,{dateTimePickerToolbarTitle:r.localeText.toolbarTitle}),[r.localeText]);return lt({},r,vQe({views:r.views,openTo:r.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:o,localeText:s,orientation:r.orientation??"portrait",disableIgnoringDatePartForTimeValidation:r.disableIgnoringDatePartForTimeValidation??!!(r.minDateTime||r.maxDateTime||r.disablePast||r.disableFuture),disableFuture:r.disableFuture??!1,disablePast:r.disablePast??!1,minDate:vm(n,r.minDateTime??r.minDate,i.minDate),maxDate:vm(n,r.maxDateTime??r.maxDate,i.maxDate),minTime:r.minDateTime??r.minTime,maxTime:r.maxDateTime??r.maxTime,slots:lt({toolbar:x5i,tabs:g5i},r.slots),slotProps:lt({},r.slotProps,{toolbar:lt({ampm:o},r.slotProps?.toolbar)})})}var E5i=I.forwardRef(function(t,n){const i=Ph(),{toolbar:r,tabs:o,content:s,actionBar:a,shortcuts:l}=Iyn(t),{sx:c,className:u,isLandscape:d,classes:h}=t,f=a&&(a.props.actions?.length??0)>0,p=lt({},t,{isRtl:i});return S.jsxs(Lyn,{ref:n,className:Nn(P1.root,h?.root,u),sx:[{[`& .${P1.tabs}`]:{gridRow:4,gridColumn:"1 / 4"},[`& .${P1.actionBar}`]:{gridRow:5}},...Array.isArray(c)?c:[c]],ownerState:p,children:[d?l:r,d?r:l,S.jsxs(Nyn,{className:Nn(P1.contentWrapper,h?.contentWrapper),sx:{display:"grid"},children:[s,o,f&&S.jsx(cE,{sx:{gridRow:3,gridColumn:"1 / 4"}})]}),a]})}),A5i=["openTo","focusedView","timeViewsCount"],D5i=function(t,n,i){const{openTo:r,focusedView:o,timeViewsCount:s}=i,a=zr(i,A5i),l=lt({},a,{autoFocus:!1,focusedView:null,sx:[{[`&.${eMt.root}`]:{borderBottom:0},[`&.${eMt.root}, .${Qki.root}, &.${zki.root}`]:{maxHeight:b0e}}]}),c=eU(n);return S.jsxs(I.Fragment,{children:[t[c?"day":n]?.(lt({},i,{view:c?"day":n,focusedView:o&&M9(o)?o:null,views:i.views.filter(M9),sx:[{gridColumn:1},...l.sx]})),s>0&&S.jsxs(I.Fragment,{children:[S.jsx(cE,{orientation:"vertical",sx:{gridColumn:2}}),t[c?n:"hours"]?.(lt({},l,{view:c?n:"hours",focusedView:o&&eU(o)?o:null,openTo:eU(r)?r:"hours",views:i.views.filter(eU),sx:[{gridColumn:3},...l.sx]}))]})]})},$yn=I.forwardRef(function(t,n){const i=wf(),r=fa(),o=Uyn(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:s,thresholdToRenderTimeInASingleColumn:a,views:l,timeSteps:c}=zyn(o),u=s?Byn:Hhe,d=lt({day:K_,month:K_,year:K_,hours:u,minutes:u,seconds:u,meridiem:u},o.viewRenderers),h=o.ampmInClock??!0,p=d.hours?.name===Hhe.name?l:l.filter(y=>y!=="meridiem"),g=s?[]:["accept"],m=lt({},o,{viewRenderers:d,format:jyn(r,o),views:p,yearsPerRow:o.yearsPerRow??4,ampmInClock:h,timeSteps:c,thresholdToRenderTimeInASingleColumn:a,shouldRenderTimeInASingleColumn:s,slots:lt({field:lyn,layout:E5i,openPickerIcon:m0n},o.slots),slotProps:lt({},o.slotProps,{field:y=>lt({},JL(o.slotProps?.field,y),vj(o),{ref:n}),toolbar:lt({hidden:!0,ampmInClock:h,toolbarVariant:"desktop"},o.slotProps?.toolbar),tabs:lt({hidden:!0},o.slotProps?.tabs),actionBar:y=>lt({actions:g},JL(o.slotProps?.actionBar,y))})}),{renderPicker:v}=$Qe({props:m,valueManager:Wd,valueType:"date-time",getOpenDialogAriaText:fj({utils:r,formatKey:"fullDate",contextTranslation:i.openDatePickerDialogue,propsTranslation:m.localeText?.openDatePickerDialogue}),validator:D0e,rendererInterceptor:D5i});return v()});$yn.propTypes={ampm:ar.default.bool,ampmInClock:ar.default.bool,autoFocus:ar.default.bool,className:ar.default.string,closeOnSelect:ar.default.bool,dayOfWeekFormatter:ar.default.func,defaultValue:ar.default.object,disabled:ar.default.bool,disableFuture:ar.default.bool,disableHighlightToday:ar.default.bool,disableIgnoringDatePartForTimeValidation:ar.default.bool,disableOpenPicker:ar.default.bool,disablePast:ar.default.bool,displayWeekNumber:ar.default.bool,enableAccessibleFieldDOMStructure:ar.default.any,fixedWeekNumber:ar.default.number,format:ar.default.string,formatDensity:ar.default.oneOf(["dense","spacious"]),inputRef:dj,label:ar.default.node,loading:ar.default.bool,localeText:ar.default.object,maxDate:ar.default.object,maxDateTime:ar.default.object,maxTime:ar.default.object,minDate:ar.default.object,minDateTime:ar.default.object,minTime:ar.default.object,minutesStep:ar.default.number,monthsPerRow:ar.default.oneOf([3,4]),name:ar.default.string,onAccept:ar.default.func,onChange:ar.default.func,onClose:ar.default.func,onError:ar.default.func,onMonthChange:ar.default.func,onOpen:ar.default.func,onSelectedSectionsChange:ar.default.func,onViewChange:ar.default.func,onYearChange:ar.default.func,open:ar.default.bool,openTo:ar.default.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:ar.default.oneOf(["landscape","portrait"]),readOnly:ar.default.bool,reduceAnimations:ar.default.bool,referenceDate:ar.default.object,renderLoading:ar.default.func,selectedSections:ar.default.oneOfType([ar.default.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),ar.default.number]),shouldDisableDate:ar.default.func,shouldDisableMonth:ar.default.func,shouldDisableTime:ar.default.func,shouldDisableYear:ar.default.func,showDaysOutsideCurrentMonth:ar.default.bool,skipDisabled:ar.default.bool,slotProps:ar.default.object,slots:ar.default.object,sx:ar.default.oneOfType([ar.default.arrayOf(ar.default.oneOfType([ar.default.func,ar.default.object,ar.default.bool])),ar.default.func,ar.default.object]),thresholdToRenderTimeInASingleColumn:ar.default.number,timeSteps:ar.default.shape({hours:ar.default.number,minutes:ar.default.number,seconds:ar.default.number}),timezone:ar.default.string,value:ar.default.object,view:ar.default.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:ar.default.shape({day:ar.default.func,hours:ar.default.func,meridiem:ar.default.func,minutes:ar.default.func,month:ar.default.func,seconds:ar.default.func,year:ar.default.func}),views:ar.default.arrayOf(ar.default.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:ar.default.oneOf(["asc","desc"]),yearsPerRow:ar.default.oneOf([3,4])};var vr=on(H2()),qyn=I.forwardRef(function(t,n){const i=wf(),r=fa(),o=Uyn(t,"MuiMobileDateTimePicker"),s=lt({day:K_,month:K_,year:K_,hours:A_,minutes:A_,seconds:A_},o.viewRenderers),a=o.ampmInClock??!1,l=lt({},o,{viewRenderers:s,format:jyn(r,o),ampmInClock:a,slots:lt({field:lyn},o.slots),slotProps:lt({},o.slotProps,{field:u=>lt({},JL(o.slotProps?.field,u),vj(o),{ref:n}),toolbar:lt({hidden:!1,ampmInClock:a},o.slotProps?.toolbar),tabs:lt({hidden:!1},o.slotProps?.tabs)})}),{renderPicker:c}=qQe({props:l,valueManager:Wd,valueType:"date-time",getOpenDialogAriaText:fj({utils:r,formatKey:"fullDate",contextTranslation:i.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:D0e});return c()});qyn.propTypes={ampm:vr.default.bool,ampmInClock:vr.default.bool,autoFocus:vr.default.bool,className:vr.default.string,closeOnSelect:vr.default.bool,dayOfWeekFormatter:vr.default.func,defaultValue:vr.default.object,disabled:vr.default.bool,disableFuture:vr.default.bool,disableHighlightToday:vr.default.bool,disableIgnoringDatePartForTimeValidation:vr.default.bool,disableOpenPicker:vr.default.bool,disablePast:vr.default.bool,displayWeekNumber:vr.default.bool,enableAccessibleFieldDOMStructure:vr.default.any,fixedWeekNumber:vr.default.number,format:vr.default.string,formatDensity:vr.default.oneOf(["dense","spacious"]),inputRef:dj,label:vr.default.node,loading:vr.default.bool,localeText:vr.default.object,maxDate:vr.default.object,maxDateTime:vr.default.object,maxTime:vr.default.object,minDate:vr.default.object,minDateTime:vr.default.object,minTime:vr.default.object,minutesStep:vr.default.number,monthsPerRow:vr.default.oneOf([3,4]),name:vr.default.string,onAccept:vr.default.func,onChange:vr.default.func,onClose:vr.default.func,onError:vr.default.func,onMonthChange:vr.default.func,onOpen:vr.default.func,onSelectedSectionsChange:vr.default.func,onViewChange:vr.default.func,onYearChange:vr.default.func,open:vr.default.bool,openTo:vr.default.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:vr.default.oneOf(["landscape","portrait"]),readOnly:vr.default.bool,reduceAnimations:vr.default.bool,referenceDate:vr.default.object,renderLoading:vr.default.func,selectedSections:vr.default.oneOfType([vr.default.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),vr.default.number]),shouldDisableDate:vr.default.func,shouldDisableMonth:vr.default.func,shouldDisableTime:vr.default.func,shouldDisableYear:vr.default.func,showDaysOutsideCurrentMonth:vr.default.bool,slotProps:vr.default.object,slots:vr.default.object,sx:vr.default.oneOfType([vr.default.arrayOf(vr.default.oneOfType([vr.default.func,vr.default.object,vr.default.bool])),vr.default.func,vr.default.object]),timezone:vr.default.string,value:vr.default.object,view:vr.default.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:vr.default.shape({day:vr.default.func,hours:vr.default.func,minutes:vr.default.func,month:vr.default.func,seconds:vr.default.func,year:vr.default.func}),views:vr.default.arrayOf(vr.default.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:vr.default.oneOf(["asc","desc"]),yearsPerRow:vr.default.oneOf([3,4])};var T5i=["desktopModeMediaQuery"],y7e=I.forwardRef(function(t,n){const i=Vs({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:r=EQe}=i,o=zr(i,T5i);return tN(r,{defaultMatches:!0})?S.jsx($yn,lt({ref:n},o)):S.jsx(qyn,lt({ref:n},o))}),Gyn=6048e5,k5i=864e5,Kyn=6e4,Yyn=36e5,I5i=1e3,kie=43200,jMt=1440,zMt=Symbol.for("constructDateFrom");function xc(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&zMt in e?e[zMt](t):e instanceof Date?new e.constructor(t):new Date(t)}function _o(e,t){return xc(t||e,e)}function KQ(e,t,n){const i=_o(e,n?.in);return isNaN(t)?xc(n?.in||e,NaN):(t&&i.setDate(i.getDate()+t),i)}function Qyn(e,t,n){return xc(e,+_o(e)+t)}function L5i(e,t,n){return Qyn(e,t*1e3)}function N5i(e,t,n){const i=_o(e,n?.in);return i.setTime(i.getTime()+t*Kyn),i}function P5i(e,t,n){return Qyn(e,t*Yyn)}function M5i(e,t,n){return KQ(e,t*7,n)}function Zyn(e,t,n){const i=_o(e,n?.in);if(isNaN(t))return xc(e,NaN);if(!t)return i;const r=i.getDate(),o=xc(e,i.getTime());o.setMonth(i.getMonth()+t+1,0);const s=o.getDate();return r>=s?o:(i.setFullYear(o.getFullYear(),o.getMonth(),r),i)}function O5i(e,t,n){return Zyn(e,t*12,n)}function b7e(e,t){const n=_o(e,t?.in);return n.setHours(23,59,59,999),n}var R5i={};function XN(){return R5i}function F5i(e,t){const n=XN(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=_o(e,t?.in),o=r.getDay(),s=(o<i?-7:0)+6-(o-i);return r.setDate(r.getDate()+s),r.setHours(23,59,59,999),r}function VMt(e,t){const n=_o(e,t?.in),i=n.getFullYear();return n.setFullYear(i+1,0,0),n.setHours(23,59,59,999),n}var B5i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Xyn=(e,t,n)=>{let i;const r=B5i[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function C8(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var j5i={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},z5i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},V5i={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},H5i={date:C8({formats:j5i,defaultWidth:"full"}),time:C8({formats:z5i,defaultWidth:"full"}),dateTime:C8({formats:V5i,defaultWidth:"full"})},W5i={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Jyn=(e,t,n,i)=>W5i[e];function G3(e){return(t,n)=>{const i=n?.context?String(n.context):"standalone";let r;if(i==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,a=n?.width?String(n.width):s;r=e.formattingValues[a]||e.formattingValues[s]}else{const s=e.defaultWidth,a=n?.width?String(n.width):e.defaultWidth;r=e.values[a]||e.values[s]}const o=e.argumentCallback?e.argumentCallback(t):t;return r[o]}}var U5i={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},$5i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},q5i={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},G5i={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},K5i={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Y5i={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Q5i=(e,t)=>{const n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},ebn={ordinalNumber:Q5i,era:G3({values:U5i,defaultWidth:"wide"}),quarter:G3({values:$5i,defaultWidth:"wide",argumentCallback:e=>e-1}),month:G3({values:q5i,defaultWidth:"wide"}),day:G3({values:G5i,defaultWidth:"wide"}),dayPeriod:G3({values:K5i,defaultWidth:"wide",formattingValues:Y5i,defaultFormattingWidth:"wide"})};function K3(e){return(t,n={})=>{const i=n.width,r=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;const s=o[0],a=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?X5i(a,d=>d.test(s)):Z5i(a,d=>d.test(s));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(s.length);return{value:c,rest:u}}}function Z5i(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function X5i(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function J5i(e){return(t,n={})=>{const i=t.match(e.matchPattern);if(!i)return null;const r=i[0],o=t.match(e.parsePattern);if(!o)return null;let s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;const a=t.slice(r.length);return{value:s,rest:a}}}var e4i=/^(\d+)(th|st|nd|rd)?/i,t4i=/\d+/i,n4i={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},i4i={any:[/^b/i,/^(a|c)/i]},r4i={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},o4i={any:[/1/i,/2/i,/3/i,/4/i]},s4i={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},a4i={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},l4i={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},c4i={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},u4i={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},d4i={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},tbn={ordinalNumber:J5i({matchPattern:e4i,parsePattern:t4i,valueCallback:e=>parseInt(e,10)}),era:K3({matchPatterns:n4i,defaultMatchWidth:"wide",parsePatterns:i4i,defaultParseWidth:"any"}),quarter:K3({matchPatterns:r4i,defaultMatchWidth:"wide",parsePatterns:o4i,defaultParseWidth:"any",valueCallback:e=>e+1}),month:K3({matchPatterns:s4i,defaultMatchWidth:"wide",parsePatterns:a4i,defaultParseWidth:"any"}),day:K3({matchPatterns:l4i,defaultMatchWidth:"wide",parsePatterns:c4i,defaultParseWidth:"any"}),dayPeriod:K3({matchPatterns:u4i,defaultMatchWidth:"any",parsePatterns:d4i,defaultParseWidth:"any"})},I0e={code:"en-US",formatDistance:Xyn,formatLong:H5i,formatRelative:Jyn,localize:ebn,match:tbn,options:{weekStartsOn:0,firstWeekContainsDate:1}};function W9(e){const t=_o(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function JN(e,...t){const n=xc.bind(null,e||t.find(i=>typeof i=="object"));return t.map(n)}function T2(e,t){const n=_o(e,t?.in);return n.setHours(0,0,0,0),n}function h4i(e,t,n){const[i,r]=JN(n?.in,e,t),o=T2(i),s=T2(r),a=+o-W9(o),l=+s-W9(s);return Math.round((a-l)/k5i)}function nbn(e,t){const n=_o(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function f4i(e,t){const n=_o(e,t?.in);return h4i(n,nbn(n))+1}function JD(e,t){const n=XN(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=_o(e,t?.in),o=r.getDay(),s=(o<i?7:0)+o-i;return r.setDate(r.getDate()-s),r.setHours(0,0,0,0),r}function U9(e,t){return JD(e,{...t,weekStartsOn:1})}function ibn(e,t){const n=_o(e,t?.in),i=n.getFullYear(),r=xc(n,0);r.setFullYear(i+1,0,4),r.setHours(0,0,0,0);const o=U9(r),s=xc(n,0);s.setFullYear(i,0,4),s.setHours(0,0,0,0);const a=U9(s);return n.getTime()>=o.getTime()?i+1:n.getTime()>=a.getTime()?i:i-1}function p4i(e,t){const n=ibn(e,t),i=xc(e,0);return i.setFullYear(n,0,4),i.setHours(0,0,0,0),U9(i)}function rbn(e,t){const n=_o(e,t?.in),i=+U9(n)-+p4i(n);return Math.round(i/Gyn)+1}function KQe(e,t){const n=_o(e,t?.in),i=n.getFullYear(),r=XN(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=xc(t?.in||e,0);s.setFullYear(i+1,0,o),s.setHours(0,0,0,0);const a=JD(s,t),l=xc(t?.in||e,0);l.setFullYear(i,0,o),l.setHours(0,0,0,0);const c=JD(l,t);return+n>=+a?i+1:+n>=+c?i:i-1}function g4i(e,t){const n=XN(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,r=KQe(e,t),o=xc(t?.in||e,0);return o.setFullYear(r,0,i),o.setHours(0,0,0,0),JD(o,t)}function YQe(e,t){const n=_o(e,t?.in),i=+JD(n,t)-+g4i(n,t);return Math.round(i/Gyn)+1}function pc(e,t){const n=e<0?"-":"",i=Math.abs(e).toString().padStart(t,"0");return n+i}var Vk={y(e,t){const n=e.getFullYear(),i=n>0?n:1-n;return pc(t==="yy"?i%100:i,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):pc(n+1,2)},d(e,t){return pc(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return pc(e.getHours()%12||12,t.length)},H(e,t){return pc(e.getHours(),t.length)},m(e,t){return pc(e.getMinutes(),t.length)},s(e,t){return pc(e.getSeconds(),t.length)},S(e,t){const n=t.length,i=e.getMilliseconds(),r=Math.trunc(i*Math.pow(10,n-3));return pc(r,t.length)}},G4={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},HMt={G:function(e,t,n){const i=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const i=e.getFullYear(),r=i>0?i:1-i;return n.ordinalNumber(r,{unit:"year"})}return Vk.y(e,t)},Y:function(e,t,n,i){const r=KQe(e,i),o=r>0?r:1-r;if(t==="YY"){const s=o%100;return pc(s,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):pc(o,t.length)},R:function(e,t){const n=ibn(e);return pc(n,t.length)},u:function(e,t){const n=e.getFullYear();return pc(n,t.length)},Q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return pc(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return pc(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){const i=e.getMonth();switch(t){case"M":case"MM":return Vk.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){const i=e.getMonth();switch(t){case"L":return String(i+1);case"LL":return pc(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){const r=YQe(e,i);return t==="wo"?n.ordinalNumber(r,{unit:"week"}):pc(r,t.length)},I:function(e,t,n){const i=rbn(e);return t==="Io"?n.ordinalNumber(i,{unit:"week"}):pc(i,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Vk.d(e,t)},D:function(e,t,n){const i=f4i(e);return t==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):pc(i,t.length)},E:function(e,t,n){const i=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){const r=e.getDay(),o=(r-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return pc(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){const r=e.getDay(),o=(r-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return pc(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){const i=e.getDay(),r=i===0?7:i;switch(t){case"i":return String(r);case"ii":return pc(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const i=e.getHours();let r;switch(i===12?r=G4.noon:i===0?r=G4.midnight:r=i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){const i=e.getHours();let r;switch(i>=17?r=G4.evening:i>=12?r=G4.afternoon:i>=4?r=G4.morning:r=G4.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let i=e.getHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return Vk.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Vk.H(e,t)},K:function(e,t,n){const i=e.getHours()%12;return t==="Ko"?n.ordinalNumber(i,{unit:"hour"}):pc(i,t.length)},k:function(e,t,n){let i=e.getHours();return i===0&&(i=24),t==="ko"?n.ordinalNumber(i,{unit:"hour"}):pc(i,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Vk.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Vk.s(e,t)},S:function(e,t){return Vk.S(e,t)},X:function(e,t,n){const i=e.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return UMt(i);case"XXXX":case"XX":return rO(i);default:return rO(i,":")}},x:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"x":return UMt(i);case"xxxx":case"xx":return rO(i);default:return rO(i,":")}},O:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+WMt(i,":");default:return"GMT"+rO(i,":")}},z:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+WMt(i,":");default:return"GMT"+rO(i,":")}},t:function(e,t,n){const i=Math.trunc(+e/1e3);return pc(i,t.length)},T:function(e,t,n){return pc(+e,t.length)}};function WMt(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),r=Math.trunc(i/60),o=i%60;return o===0?n+String(r):n+String(r)+t+pc(o,2)}function UMt(e,t){return e%60===0?(e>0?"-":"+")+pc(Math.abs(e)/60,2):rO(e,t)}function rO(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),r=pc(Math.trunc(i/60),2),o=pc(i%60,2);return n+r+t+o}var $Mt=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},obn=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},m4i=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],i=n[1],r=n[2];if(!r)return $Mt(e,t);let o;switch(i){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",$Mt(i,t)).replace("{{time}}",obn(r,t))},Whe={p:obn,P:m4i},v4i=/^D+$/,y4i=/^Y+$/,b4i=["D","DD","YY","YYYY"];function sbn(e){return v4i.test(e)}function abn(e){return y4i.test(e)}function _7e(e,t,n){const i=_4i(e,t,n);if(console.warn(i),b4i.includes(e))throw new RangeError(i)}function _4i(e,t,n){const i=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${i} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function w4i(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function L0e(e){return!(!w4i(e)&&typeof e!="number"||isNaN(+_o(e)))}var C4i=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,S4i=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,x4i=/^'([^]*?)'?$/,E4i=/''/g,A4i=/[a-zA-Z]/;function gu(e,t,n){const i=XN(),r=n?.locale??i.locale??I0e,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,a=_o(e,n?.in);if(!L0e(a))throw new RangeError("Invalid time value");let l=t.match(S4i).map(u=>{const d=u[0];if(d==="p"||d==="P"){const h=Whe[d];return h(u,r.formatLong)}return u}).join("").match(C4i).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const d=u[0];if(d==="'")return{isToken:!1,value:D4i(u)};if(HMt[d])return{isToken:!0,value:u};if(d.match(A4i))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:u}});r.localize.preprocessor&&(l=r.localize.preprocessor(a,l));const c={firstWeekContainsDate:o,weekStartsOn:s,locale:r};return l.map(u=>{if(!u.isToken)return u.value;const d=u.value;(!n?.useAdditionalWeekYearTokens&&abn(d)||!n?.useAdditionalDayOfYearTokens&&sbn(d))&&_7e(d,t,String(e));const h=HMt[d[0]];return h(a,d,r.localize,c)}).join("")}function D4i(e){const t=e.match(x4i);return t?t[1].replace(E4i,"'"):e}function T4i(e,t){return _o(e,t?.in).getDate()}function lbn(e,t){const n=_o(e,t?.in),i=n.getFullYear(),r=n.getMonth(),o=xc(n,0);return o.setFullYear(i,r+1,0),o.setHours(0,0,0,0),o.getDate()}function k4i(e,t){return _o(e,t?.in).getHours()}function I4i(e,t){return _o(e,t?.in).getMinutes()}function L4i(e,t){return _o(e,t?.in).getMonth()}function N4i(e){return _o(e).getSeconds()}function P4i(e){return _o(e).getMilliseconds()}function M4i(e,t){return _o(e,t?.in).getFullYear()}function XPe(e,t){return+_o(e)>+_o(t)}function JPe(e,t){return+_o(e)<+_o(t)}function O4i(e,t){return+_o(e)==+_o(t)}function N0e(e,t,n){const[i,r]=JN(n?.in,e,t);return+T2(i)==+T2(r)}function R4i(e,t,n){const[i,r]=JN(n?.in,e,t);return i.getFullYear()===r.getFullYear()}function F4i(e,t,n){const[i,r]=JN(n?.in,e,t);return i.getFullYear()===r.getFullYear()&&i.getMonth()===r.getMonth()}function qMt(e,t){const n=_o(e,t?.in);return n.setMinutes(0,0,0),n}function B4i(e,t,n){const[i,r]=JN(n?.in,e,t);return+qMt(i)==+qMt(r)}function j4i(){return Object.assign({},XN())}function z4i(e,t){const n=V4i(t)?new t(0):xc(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function V4i(e){return typeof e=="function"&&e.prototype?.constructor===e}var H4i=10,cbn=class{subPriority=0;validate(e,t){return!0}},W4i=class extends cbn{constructor(e,t,n,i,r){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=i,r&&(this.subPriority=r)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},U4i=class extends cbn{priority=H4i;subPriority=-1;constructor(e,t){super(),this.context=e||(n=>xc(t,n))}set(e,t){return t.timestampIsSet?e:xc(e,z4i(e,this.context))}},Gl=class{run(e,t,n,i){const r=this.parse(e,t,n,i);return r?{setter:new W4i(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}validate(e,t,n){return!0}},$4i=class extends Gl{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},_h={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},hx={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function wh(e,t){return e&&{value:t(e.value),rest:e.rest}}function pd(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function fx(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const i=n[1]==="+"?1:-1,r=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:i*(r*Yyn+o*Kyn+s*I5i),rest:t.slice(n[0].length)}}function ubn(e){return pd(_h.anyDigitsSigned,e)}function Ud(e,t){switch(e){case 1:return pd(_h.singleDigit,t);case 2:return pd(_h.twoDigits,t);case 3:return pd(_h.threeDigits,t);case 4:return pd(_h.fourDigits,t);default:return pd(new RegExp("^\\d{1,"+e+"}"),t)}}function Uhe(e,t){switch(e){case 1:return pd(_h.singleDigitSigned,t);case 2:return pd(_h.twoDigitsSigned,t);case 3:return pd(_h.threeDigitsSigned,t);case 4:return pd(_h.fourDigitsSigned,t);default:return pd(new RegExp("^-?\\d{1,"+e+"}"),t)}}function QQe(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function dbn(e,t){const n=t>0,i=n?t:1-t;let r;if(i<=50)r=e||100;else{const o=i+50,s=Math.trunc(o/100)*100,a=e>=o%100;r=e+s-(a?100:0)}return n?r:1-r}function hbn(e){return e%400===0||e%4===0&&e%100!==0}var q4i=class extends Gl{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){const i=r=>({year:r,isTwoDigitYear:t==="yy"});switch(t){case"y":return wh(Ud(4,e),i);case"yo":return wh(n.ordinalNumber(e,{unit:"year"}),i);default:return wh(Ud(t.length,e),i)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const i=e.getFullYear();if(n.isTwoDigitYear){const o=dbn(n.year,i);return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}const r=!("era"in t)||t.era===1?n.year:1-n.year;return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}},G4i=class extends Gl{priority=130;parse(e,t,n){const i=r=>({year:r,isTwoDigitYear:t==="YY"});switch(t){case"Y":return wh(Ud(4,e),i);case"Yo":return wh(n.ordinalNumber(e,{unit:"year"}),i);default:return wh(Ud(t.length,e),i)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,i){const r=KQe(e,i);if(n.isTwoDigitYear){const s=dbn(n.year,r);return e.setFullYear(s,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),JD(e,i)}const o=!("era"in t)||t.era===1?n.year:1-n.year;return e.setFullYear(o,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),JD(e,i)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},K4i=class extends Gl{priority=130;parse(e,t){return Uhe(t==="R"?4:t.length,e)}set(e,t,n){const i=xc(e,0);return i.setFullYear(n,0,4),i.setHours(0,0,0,0),U9(i)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},Y4i=class extends Gl{priority=130;parse(e,t){return Uhe(t==="u"?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q4i=class extends Gl{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return Ud(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},Z4i=class extends Gl{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return Ud(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},X4i=class extends Gl{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){const i=r=>r-1;switch(t){case"M":return wh(pd(_h.month,e),i);case"MM":return wh(Ud(2,e),i);case"Mo":return wh(n.ordinalNumber(e,{unit:"month"}),i);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},J4i=class extends Gl{priority=110;parse(e,t,n){const i=r=>r-1;switch(t){case"L":return wh(pd(_h.month,e),i);case"LL":return wh(Ud(2,e),i);case"Lo":return wh(n.ordinalNumber(e,{unit:"month"}),i);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function eBi(e,t,n){const i=_o(e,n?.in),r=YQe(i,n)-t;return i.setDate(i.getDate()-r*7),_o(i,n?.in)}var tBi=class extends Gl{priority=100;parse(e,t,n){switch(t){case"w":return pd(_h.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Ud(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,i){return JD(eBi(e,n,i),i)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function nBi(e,t,n){const i=_o(e,n?.in),r=rbn(i,n)-t;return i.setDate(i.getDate()-r*7),i}var iBi=class extends Gl{priority=100;parse(e,t,n){switch(t){case"I":return pd(_h.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Ud(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return U9(nBi(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},rBi=[31,28,31,30,31,30,31,31,30,31,30,31],oBi=[31,29,31,30,31,30,31,31,30,31,30,31],sBi=class extends Gl{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return pd(_h.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Ud(t.length,e)}}validate(e,t){const n=e.getFullYear(),i=hbn(n),r=e.getMonth();return i?t>=1&&t<=oBi[r]:t>=1&&t<=rBi[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},aBi=class extends Gl{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return pd(_h.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Ud(t.length,e)}}validate(e,t){const n=e.getFullYear();return hbn(n)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function ZQe(e,t,n){const i=XN(),r=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=_o(e,n?.in),s=o.getDay(),l=(t%7+7)%7,c=7-r,u=t<0||t>6?t-(s+c)%7:(l+c)%7-(s+c)%7;return KQ(o,u,n)}var lBi=class extends Gl{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,i){return e=ZQe(e,n,i),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},cBi=class extends Gl{priority=90;parse(e,t,n,i){const r=o=>{const s=Math.floor((o-1)/7)*7;return(o+i.weekStartsOn+6)%7+s};switch(t){case"e":case"ee":return wh(Ud(t.length,e),r);case"eo":return wh(n.ordinalNumber(e,{unit:"day"}),r);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,i){return e=ZQe(e,n,i),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},uBi=class extends Gl{priority=90;parse(e,t,n,i){const r=o=>{const s=Math.floor((o-1)/7)*7;return(o+i.weekStartsOn+6)%7+s};switch(t){case"c":case"cc":return wh(Ud(t.length,e),r);case"co":return wh(n.ordinalNumber(e,{unit:"day"}),r);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,i){return e=ZQe(e,n,i),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function dBi(e,t){const n=_o(e,t?.in).getDay();return n===0?7:n}function hBi(e,t,n){const i=_o(e,n?.in),r=dBi(i,n),o=t-r;return KQ(i,o,n)}var fBi=class extends Gl{priority=90;parse(e,t,n){const i=r=>r===0?7:r;switch(t){case"i":case"ii":return Ud(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return wh(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i);case"iiiii":return wh(n.day(e,{width:"narrow",context:"formatting"}),i);case"iiiiii":return wh(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i);default:return wh(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=hBi(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},pBi=class extends Gl{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(QQe(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},gBi=class extends Gl{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(QQe(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},mBi=class extends Gl{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(QQe(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},vBi=class extends Gl{priority=70;parse(e,t,n){switch(t){case"h":return pd(_h.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Ud(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const i=e.getHours()>=12;return i&&n<12?e.setHours(n+12,0,0,0):!i&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},yBi=class extends Gl{priority=70;parse(e,t,n){switch(t){case"H":return pd(_h.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Ud(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},bBi=class extends Gl{priority=70;parse(e,t,n){switch(t){case"K":return pd(_h.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Ud(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},_Bi=class extends Gl{priority=70;parse(e,t,n){switch(t){case"k":return pd(_h.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Ud(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const i=n<=24?n%24:n;return e.setHours(i,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},wBi=class extends Gl{priority=60;parse(e,t,n){switch(t){case"m":return pd(_h.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Ud(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]},CBi=class extends Gl{priority=50;parse(e,t,n){switch(t){case"s":return pd(_h.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Ud(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]},SBi=class extends Gl{priority=30;parse(e,t){const n=i=>Math.trunc(i*Math.pow(10,-t.length+3));return wh(Ud(t.length,e),n)}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]},xBi=class extends Gl{priority=10;parse(e,t){switch(t){case"X":return fx(hx.basicOptionalMinutes,e);case"XX":return fx(hx.basic,e);case"XXXX":return fx(hx.basicOptionalSeconds,e);case"XXXXX":return fx(hx.extendedOptionalSeconds,e);default:return fx(hx.extended,e)}}set(e,t,n){return t.timestampIsSet?e:xc(e,e.getTime()-W9(e)-n)}incompatibleTokens=["t","T","x"]},EBi=class extends Gl{priority=10;parse(e,t){switch(t){case"x":return fx(hx.basicOptionalMinutes,e);case"xx":return fx(hx.basic,e);case"xxxx":return fx(hx.basicOptionalSeconds,e);case"xxxxx":return fx(hx.extendedOptionalSeconds,e);default:return fx(hx.extended,e)}}set(e,t,n){return t.timestampIsSet?e:xc(e,e.getTime()-W9(e)-n)}incompatibleTokens=["t","T","X"]},ABi=class extends Gl{priority=40;parse(e){return ubn(e)}set(e,t,n){return[xc(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"},DBi=class extends Gl{priority=20;parse(e){return ubn(e)}set(e,t,n){return[xc(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"},TBi={G:new $4i,y:new q4i,Y:new G4i,R:new K4i,u:new Y4i,Q:new Q4i,q:new Z4i,M:new X4i,L:new J4i,w:new tBi,I:new iBi,d:new sBi,D:new aBi,E:new lBi,e:new cBi,c:new uBi,i:new fBi,a:new pBi,b:new gBi,B:new mBi,h:new vBi,H:new yBi,K:new bBi,k:new _Bi,m:new wBi,s:new CBi,S:new SBi,X:new xBi,x:new EBi,t:new ABi,T:new DBi},kBi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,IBi=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,LBi=/^'([^]*?)'?$/,NBi=/''/g,PBi=/\S/,MBi=/[a-zA-Z]/;function fbn(e,t,n,i){const r=()=>xc(i?.in||n,NaN),o=j4i(),s=i?.locale??o.locale??I0e,a=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,l=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0;if(!t)return e?r():_o(n,i?.in);const c={firstWeekContainsDate:a,weekStartsOn:l,locale:s},u=[new U4i(i?.in,n)],d=t.match(IBi).map(m=>{const v=m[0];if(v in Whe){const y=Whe[v];return y(m,s.formatLong)}return m}).join("").match(kBi),h=[];for(let m of d){!i?.useAdditionalWeekYearTokens&&abn(m)&&_7e(m,t,e),!i?.useAdditionalDayOfYearTokens&&sbn(m)&&_7e(m,t,e);const v=m[0],y=TBi[v];if(y){const{incompatibleTokens:b}=y;if(Array.isArray(b)){const E=h.find(A=>b.includes(A.token)||A.token===v);if(E)throw new RangeError(`The format string mustn't contain \`${E.fullToken}\` and \`${m}\` at the same time`)}else if(y.incompatibleTokens==="*"&&h.length>0)throw new RangeError(`The format string mustn't contain \`${m}\` and any other token at the same time`);h.push({token:v,fullToken:m});const w=y.run(e,m,s.match,c);if(!w)return r();u.push(w.setter),e=w.rest}else{if(v.match(MBi))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");if(m==="''"?m="'":v==="'"&&(m=OBi(m)),e.indexOf(m)===0)e=e.slice(m.length);else return r()}}if(e.length>0&&PBi.test(e))return r();const f=u.map(m=>m.priority).sort((m,v)=>v-m).filter((m,v,y)=>y.indexOf(m)===v).map(m=>u.filter(v=>v.priority===m).sort((v,y)=>y.subPriority-v.subPriority)).map(m=>m[0]);let p=_o(n,i?.in);if(isNaN(+p))return r();const g={};for(const m of f){if(!m.validate(p,c))return r();const v=m.set(p,g,c);Array.isArray(v)?(p=v[0],Object.assign(g,v[1])):p=v}return p}function OBi(e){return e.match(LBi)[1].replace(NBi,"'")}function RBi(e,t,n){const i=_o(e,n?.in);return i.setDate(t),i}function FBi(e,t,n){const i=_o(e,n?.in);return i.setHours(t),i}function BBi(e,t,n){const i=_o(e,n?.in);return i.setMinutes(t),i}function jBi(e,t,n){const i=_o(e,n?.in),r=i.getFullYear(),o=i.getDate(),s=xc(e,0);s.setFullYear(r,t,15),s.setHours(0,0,0,0);const a=lbn(s);return i.setMonth(t,Math.min(o,a)),i}function zBi(e,t,n){const i=_o(e,n?.in);return i.setSeconds(t),i}function VBi(e,t,n){const i=_o(e,n?.in);return i.setMilliseconds(t),i}function HBi(e,t,n){const i=_o(e,n?.in);return isNaN(+i)?xc(e,NaN):(i.setFullYear(t),i)}function WBi(e,t){const n=_o(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function pbn(e,t){const n=_o(e,t?.in),i=n.getMonth();return n.setFullYear(n.getFullYear(),i+1,0),n.setHours(23,59,59,999),n}function UBi(e,t,n){const i=+_o(e,n?.in),[r,o]=[+_o(t.start,n?.in),+_o(t.end,n?.in)].sort((s,a)=>s-a);return i>=r&&i<=o}var $Bi={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},qBi={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",dayOfMonthFull:"do",weekday:"EEEE",weekdayShort:"EEEEEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",fullTime:"p",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"},GBi=class{constructor(e){this.isMUIAdapter=!0,this.isTimezoneCompatible=!1,this.lib=void 0,this.locale=void 0,this.formats=void 0,this.formatTokenMap=$Bi,this.escapedCharacters={start:"'",end:"'"},this.longFormatters=void 0,this.date=o=>typeof o>"u"?new Date:o===null?null:new Date(o),this.getInvalidDate=()=>new Date("Invalid Date"),this.getTimezone=()=>"default",this.setTimezone=o=>o,this.toJsDate=o=>o,this.getCurrentLocaleCode=()=>this.locale.code,this.is12HourCycleInCurrentLocale=()=>/a/.test(this.locale.formatLong.time({width:"short"})),this.expandFormat=o=>{const s=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return o.match(s).map(a=>{const l=a[0];if(l==="p"||l==="P"){const c=this.longFormatters[l];return c(a,this.locale.formatLong)}return a}).join("")},this.formatNumber=o=>o,this.getDayOfWeek=o=>o.getDay()+1;const{locale:t,formats:n,longFormatters:i,lib:r}=e;this.locale=t,this.formats=lt({},qBi,n),this.longFormatters=i,this.lib=r||"date-fns"}},KBi=class extends GBi{constructor({locale:e,formats:t}={}){super({locale:e??I0e,formats:t,longFormatters:Whe}),this.parse=(n,i)=>n===""?null:fbn(n,i,new Date,{locale:this.locale}),this.isValid=n=>n==null?!1:L0e(n),this.format=(n,i)=>this.formatByString(n,this.formats[i]),this.formatByString=(n,i)=>gu(n,i,{locale:this.locale}),this.isEqual=(n,i)=>n===null&&i===null?!0:n===null||i===null?!1:O4i(n,i),this.isSameYear=(n,i)=>R4i(n,i),this.isSameMonth=(n,i)=>F4i(n,i),this.isSameDay=(n,i)=>N0e(n,i),this.isSameHour=(n,i)=>B4i(n,i),this.isAfter=(n,i)=>XPe(n,i),this.isAfterYear=(n,i)=>XPe(n,VMt(i)),this.isAfterDay=(n,i)=>XPe(n,b7e(i)),this.isBefore=(n,i)=>JPe(n,i),this.isBeforeYear=(n,i)=>JPe(n,this.startOfYear(i)),this.isBeforeDay=(n,i)=>JPe(n,this.startOfDay(i)),this.isWithinRange=(n,[i,r])=>UBi(n,{start:i,end:r}),this.startOfYear=n=>nbn(n),this.startOfMonth=n=>WBi(n),this.startOfWeek=n=>JD(n,{locale:this.locale}),this.startOfDay=n=>T2(n),this.endOfYear=n=>VMt(n),this.endOfMonth=n=>pbn(n),this.endOfWeek=n=>F5i(n,{locale:this.locale}),this.endOfDay=n=>b7e(n),this.addYears=(n,i)=>O5i(n,i),this.addMonths=(n,i)=>Zyn(n,i),this.addWeeks=(n,i)=>M5i(n,i),this.addDays=(n,i)=>KQ(n,i),this.addHours=(n,i)=>P5i(n,i),this.addMinutes=(n,i)=>N5i(n,i),this.addSeconds=(n,i)=>L5i(n,i),this.getYear=n=>M4i(n),this.getMonth=n=>L4i(n),this.getDate=n=>T4i(n),this.getHours=n=>k4i(n),this.getMinutes=n=>I4i(n),this.getSeconds=n=>N4i(n),this.getMilliseconds=n=>P4i(n),this.setYear=(n,i)=>HBi(n,i),this.setMonth=(n,i)=>jBi(n,i),this.setDate=(n,i)=>RBi(n,i),this.setHours=(n,i)=>FBi(n,i),this.setMinutes=(n,i)=>BBi(n,i),this.setSeconds=(n,i)=>zBi(n,i),this.setMilliseconds=(n,i)=>VBi(n,i),this.getDaysInMonth=n=>lbn(n),this.getWeekArray=n=>{const i=this.startOfWeek(this.startOfMonth(n)),r=this.endOfWeek(this.endOfMonth(n));let o=0,s=i;const a=[];for(;this.isBefore(s,r);){const l=Math.floor(o/7);a[l]=a[l]||[],a[l].push(s),s=this.addDays(s,1),o+=1}return a},this.getWeekNumber=n=>YQe(n,{locale:this.locale}),this.getYearRange=([n,i])=>{const r=this.startOfYear(n),o=this.endOfYear(i),s=[];let a=r;for(;this.isBefore(a,o);)s.push(a),a=this.addYears(a,1);return s}}},YBi={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},QBi={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},ZBi={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},XBi={date:C8({formats:YBi,defaultWidth:"full"}),time:C8({formats:QBi,defaultWidth:"full"}),dateTime:C8({formats:ZBi,defaultWidth:"full"})},JBi={code:"en-GB",formatDistance:Xyn,formatLong:XBi,formatRelative:Jyn,localize:ebn,match:tbn,options:{weekStartsOn:1,firstWeekContainsDate:4}};function e6i({children:e}){return S.jsx(u0n,{dateAdapter:KBi,adapterLocale:JBi,dateFormats:{year:"yyyy"},children:e})}function t6i(e){return kr("MuiCollapse",e)}Ir("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var n6i=e=>{const{orientation:t,classes:n}=e,i={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Lr(i,t6i,n)},i6i=Mt("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(gr(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),r6i=Mt("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),o6i=Mt("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),w7e=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiCollapse"}),{addEndListener:r,children:o,className:s,collapsedSize:a="0px",component:l,easing:c,in:u,onEnter:d,onEntered:h,onEntering:f,onExit:p,onExited:g,onExiting:m,orientation:v="vertical",style:y,timeout:b=s0n.standard,TransitionComponent:w=g0e,...E}=i,A={...i,orientation:v,collapsedSize:a},D=n6i(A),T=cl(),M=YO(),P=I.useRef(null),F=I.useRef(),N=typeof a=="number"?`${a}px`:a,j=v==="horizontal",W=j?"width":"height",J=I.useRef(null),ee=pb(n,J),Q=ie=>ce=>{if(ie){const de=J.current;ce===void 0?ie(de):ie(de,ce)}},H=()=>P.current?P.current[j?"clientWidth":"clientHeight"]:0,q=Q((ie,ce)=>{P.current&&j&&(P.current.style.position="absolute"),ie.style[W]=N,d&&d(ie,ce)}),le=Q((ie,ce)=>{const de=H();P.current&&j&&(P.current.style.position="");const{duration:oe,easing:me}=R9({style:y,timeout:b,easing:c},{mode:"enter"});if(b==="auto"){const Ce=T.transitions.getAutoHeightDuration(de);ie.style.transitionDuration=`${Ce}ms`,F.current=Ce}else ie.style.transitionDuration=typeof oe=="string"?oe:`${oe}ms`;ie.style[W]=`${de}px`,ie.style.transitionTimingFunction=me,f&&f(ie,ce)}),Y=Q((ie,ce)=>{ie.style[W]="auto",h&&h(ie,ce)}),G=Q(ie=>{ie.style[W]=`${H()}px`,p&&p(ie)}),pe=Q(g),U=Q(ie=>{const ce=H(),{duration:de,easing:oe}=R9({style:y,timeout:b,easing:c},{mode:"exit"});if(b==="auto"){const me=T.transitions.getAutoHeightDuration(ce);ie.style.transitionDuration=`${me}ms`,F.current=me}else ie.style.transitionDuration=typeof de=="string"?de:`${de}ms`;ie.style[W]=N,ie.style.transitionTimingFunction=oe,m&&m(ie)}),K=ie=>{b==="auto"&&M.start(F.current||0,ie),r&&r(J.current,ie)};return S.jsx(w,{in:u,onEnter:q,onEntered:Y,onEntering:le,onExit:G,onExited:pe,onExiting:U,addEndListener:K,nodeRef:J,timeout:b==="auto"?null:b,...E,children:(ie,{ownerState:ce,...de})=>S.jsx(i6i,{as:l,className:Nn(D.root,s,{entered:D.entered,exited:!u&&N==="0px"&&D.hidden}[ie]),style:{[j?"minWidth":"minHeight"]:N,...y},ref:ee,ownerState:{...A,state:ie},...de,children:S.jsx(r6i,{ownerState:{...A,state:ie},className:D.wrapper,ref:P,children:S.jsx(o6i,{ownerState:{...A,state:ie},className:D.wrapperInner,children:o})})})})});w7e&&(w7e.muiSupportAuto=!0);var bj=w7e;function s6i(e){return kr("MuiAlert",e)}var a6i=Ir("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),GMt=a6i,l6i=ho(S.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),c6i=ho(S.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),u6i=ho(S.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),d6i=ho(S.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),gbn=ho(S.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),h6i=e=>{const{variant:t,color:n,severity:i,classes:r}=e,o={root:["root",`color${gn(n||i)}`,`${t}${gn(n||i)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Lr(o,s6i,r)},f6i=Mt(eS,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${gn(n.color||n.severity)}`]]}})(gr(({theme:e})=>{const t=e.palette.mode==="light"?fb:P0,n=e.palette.mode==="light"?P0:fb;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter($a(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:n(e.palette[i].light,.9),[`& .${GMt.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter($a(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${GMt.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter($a(["dark"])).map(([i])=>({props:{colorSeverity:i,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${i}FilledColor`],backgroundColor:e.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[i].dark:e.palette[i].main,color:e.palette.getContrastText(e.palette[i].main)}}}))]}})),p6i=Mt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),g6i=Mt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),m6i=Mt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),KMt={success:S.jsx(l6i,{fontSize:"inherit"}),warning:S.jsx(c6i,{fontSize:"inherit"}),error:S.jsx(u6i,{fontSize:"inherit"}),info:S.jsx(d6i,{fontSize:"inherit"})},v6i=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiAlert"}),{action:r,children:o,className:s,closeText:a="Close",color:l,components:c={},componentsProps:u={},icon:d,iconMapping:h=KMt,onClose:f,role:p="alert",severity:g="success",slotProps:m={},slots:v={},variant:y="standard",...b}=i,w={...i,color:l,severity:g,variant:y,colorSeverity:l||g},E=h6i(w),A={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...v},slotProps:{...u,...m}},[D,T]=wo("root",{ref:n,shouldForwardComponentProp:!0,className:Nn(E.root,s),elementType:f6i,externalForwardedProps:{...A,...b},ownerState:w,additionalProps:{role:p,elevation:0}}),[M,P]=wo("icon",{className:E.icon,elementType:p6i,externalForwardedProps:A,ownerState:w}),[F,N]=wo("message",{className:E.message,elementType:g6i,externalForwardedProps:A,ownerState:w}),[j,W]=wo("action",{className:E.action,elementType:m6i,externalForwardedProps:A,ownerState:w}),[J,ee]=wo("closeButton",{elementType:Qr,externalForwardedProps:A,ownerState:w}),[Q,H]=wo("closeIcon",{elementType:gbn,externalForwardedProps:A,ownerState:w});return S.jsxs(D,{...T,children:[d!==!1?S.jsx(M,{...P,children:d||h[g]||KMt[g]}):null,S.jsx(F,{...N,children:o}),r!=null?S.jsx(j,{...W,children:r}):null,r==null&&f?S.jsx(j,{...W,children:S.jsx(J,{size:"small","aria-label":a,title:a,color:"inherit",onClick:f,...ee,children:S.jsx(Q,{fontSize:"small",...H})})}):null]})}),P0e=v6i;function y6i(e){return kr("MuiAlertTitle",e)}Ir("MuiAlertTitle",["root"]);var b6i=e=>{const{classes:t}=e;return Lr({root:["root"]},y6i,t)},_6i=Mt(Xn,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(gr(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),w6i=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiAlertTitle"}),{className:r,...o}=i,s=i,a=b6i(s);return S.jsx(_6i,{gutterBottom:!0,component:"div",ownerState:s,ref:n,className:Nn(a.root,r),...o})}),C6i=w6i;function YMt(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function S6i(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:i,matchFrom:r="any",stringify:o,trim:s=!1}=e;return(a,{inputValue:l,getOptionLabel:c})=>{let u=s?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=YMt(u));const d=u?a.filter(h=>{let f=(o||c)(h);return n&&(f=f.toLowerCase()),t&&(f=YMt(f)),r==="start"?f.startsWith(u):f.includes(u)}):a;return typeof i=="number"?d.slice(0,i):d}}var x6i=S6i(),QMt=5,E6i=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),A6i=[];function ZMt(e,t,n){if(t||e==null)return"";const i=n(e);return typeof i=="string"?i:""}function D6i(e){const{unstable_isActiveElementInListbox:t=E6i,unstable_classNamePrefix:n="Mui",autoComplete:i=!1,autoHighlight:r=!1,autoSelect:o=!1,blurOnSelect:s=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?A6i:null,disableClearable:d=!1,disableCloseOnSelect:h=!1,disabled:f,disabledItemsFocusable:p=!1,disableListWrap:g=!1,filterOptions:m=x6i,filterSelectedOptions:v=!1,freeSolo:y=!1,getOptionDisabled:b,getOptionKey:w,getOptionLabel:E=Dt=>Dt.label??Dt,groupBy:A,handleHomeEndKeys:D=!e.freeSolo,id:T,includeInputInList:M=!1,inputValue:P,isOptionEqualToValue:F=(Dt,Tt)=>Dt===Tt,multiple:N=!1,onChange:j,onClose:W,onHighlightChange:J,onInputChange:ee,onOpen:Q,open:H,openOnFocus:q=!1,options:le,readOnly:Y=!1,selectOnFocus:G=!e.freeSolo,value:pe}=e,U=uj(T);let K=E;K=Dt=>{const Tt=E(Dt);return typeof Tt!="string"?String(Tt):Tt};const ie=I.useRef(!1),ce=I.useRef(!0),de=I.useRef(null),oe=I.useRef(null),[me,Ce]=I.useState(null),[Se,De]=I.useState(-1),Me=r?0:-1,qe=I.useRef(Me),$=I.useRef(ZMt(u??pe,N,K)).current,[he,Ie]=b8({controlled:pe,default:u,name:c}),[Be,ze]=b8({controlled:P,default:$,name:c,state:"inputValue"}),[Ye,it]=I.useState(!1),ft=I.useCallback((Dt,Tt,en)=>{if(!(N?he.length<Tt.length:Tt!==null)&&!a)return;const Ue=ZMt(Tt,N,K);Be!==Ue&&(ze(Ue),ee&&ee(Dt,Ue,en))},[K,Be,N,ee,ze,a,he]),[ct,et]=b8({controlled:H,default:!1,name:c,state:"open"}),[ut,wt]=I.useState(!0),pt=!N&&he!=null&&Be===K(he),_t=ct&&!Y,Rt=_t?m(le.filter(Dt=>!(v&&(N?he:[he]).some(Tt=>Tt!==null&&F(Dt,Tt)))),{inputValue:pt&&ut?"":Be,getOptionLabel:K}):[],Yt=oQe({filteredOptions:Rt,value:he,inputValue:Be});I.useEffect(()=>{const Dt=he!==Yt.value;Ye&&!Dt||y&&!Dt||ft(null,he,"reset")},[he,ft,Ye,Yt.value,y]);const Ut=ct&&Rt.length>0&&!Y,Gt=F_(Dt=>{Dt===-1?de.current.focus():me.querySelector(`[data-tag-index="${Dt}"]`).focus()});I.useEffect(()=>{N&&Se>he.length-1&&(De(-1),Gt(-1))},[he,N,Se,Gt]);function Kt(Dt,Tt){if(!oe.current||Dt<0||Dt>=Rt.length)return-1;let en=Dt;for(;;){const Bt=oe.current.querySelector(`[data-option-index="${en}"]`),Ue=p?!1:!Bt||Bt.disabled||Bt.getAttribute("aria-disabled")==="true";if(Bt&&Bt.hasAttribute("tabindex")&&!Ue)return en;if(Tt==="next"?en=(en+1)%Rt.length:en=(en-1+Rt.length)%Rt.length,en===Dt)return-1}}const ln=F_(({event:Dt,index:Tt,reason:en})=>{if(qe.current=Tt,Tt===-1?de.current.removeAttribute("aria-activedescendant"):de.current.setAttribute("aria-activedescendant",`${U}-option-${Tt}`),J&&["mouse","keyboard","touch"].includes(en)&&J(Dt,Tt===-1?null:Rt[Tt],en),!oe.current)return;const Bt=oe.current.querySelector(`[role="option"].${n}-focused`);Bt&&(Bt.classList.remove(`${n}-focused`),Bt.classList.remove(`${n}-focusVisible`));let Ue=oe.current;if(oe.current.getAttribute("role")!=="listbox"&&(Ue=oe.current.parentElement.querySelector('[role="listbox"]')),!Ue)return;if(Tt===-1){Ue.scrollTop=0;return}const Lt=oe.current.querySelector(`[data-option-index="${Tt}"]`);if(Lt&&(Lt.classList.add(`${n}-focused`),en==="keyboard"&&Lt.classList.add(`${n}-focusVisible`),Ue.scrollHeight>Ue.clientHeight&&en!=="mouse"&&en!=="touch")){const at=Lt,cn=Ue.clientHeight+Ue.scrollTop,Bn=at.offsetTop+at.offsetHeight;Bn>cn?Ue.scrollTop=Bn-Ue.clientHeight:at.offsetTop-at.offsetHeight*(A?1.3:0)<Ue.scrollTop&&(Ue.scrollTop=at.offsetTop-at.offsetHeight*(A?1.3:0))}}),pn=F_(({event:Dt,diff:Tt,direction:en="next",reason:Bt})=>{if(!_t)return;const Lt=Kt((()=>{const at=Rt.length-1;if(Tt==="reset")return Me;if(Tt==="start")return 0;if(Tt==="end")return at;const cn=qe.current+Tt;return cn<0?cn===-1&&M?-1:g&&qe.current!==-1||Math.abs(Tt)>1?0:at:cn>at?cn===at+1&&M?-1:g||Math.abs(Tt)>1?at:0:cn})(),en);if(ln({index:Lt,reason:Bt,event:Dt}),i&&Tt!=="reset")if(Lt===-1)de.current.value=Be;else{const at=K(Rt[Lt]);de.current.value=at,at.toLowerCase().indexOf(Be.toLowerCase())===0&&Be.length>0&&de.current.setSelectionRange(Be.length,at.length)}}),wn=()=>{const Dt=(Tt,en)=>{const Bt=Tt?K(Tt):"",Ue=en?K(en):"";return Bt===Ue};if(qe.current!==-1&&Yt.filteredOptions&&Yt.filteredOptions.length!==Rt.length&&Yt.inputValue===Be&&(N?he.length===Yt.value.length&&Yt.value.every((Tt,en)=>K(he[en])===K(Tt)):Dt(Yt.value,he))){const Tt=Yt.filteredOptions[qe.current];if(Tt)return Rt.findIndex(en=>K(en)===K(Tt))}return-1},Mn=I.useCallback(()=>{if(!_t)return;const Dt=wn();if(Dt!==-1){qe.current=Dt;return}const Tt=N?he[0]:he;if(Rt.length===0||Tt==null){pn({diff:"reset"});return}if(oe.current){if(Tt!=null){const en=Rt[qe.current];if(N&&en&&he.findIndex(Ue=>F(en,Ue))!==-1)return;const Bt=Rt.findIndex(Ue=>F(Ue,Tt));Bt===-1?pn({diff:"reset"}):ln({index:Bt});return}if(qe.current>=Rt.length-1){ln({index:Rt.length-1});return}ln({index:qe.current})}},[Rt.length,N?!1:he,v,pn,ln,_t,Be,N]),Yn=F_(Dt=>{Q9e(oe,Dt),Dt&&Mn()});I.useEffect(()=>{Mn()},[Mn]);const di=Dt=>{ct||(et(!0),wt(!0),Q&&Q(Dt))},Li=(Dt,Tt)=>{ct&&(et(!1),W&&W(Dt,Tt))},ke=(Dt,Tt,en,Bt)=>{if(N){if(he.length===Tt.length&&he.every((Ue,Lt)=>Ue===Tt[Lt]))return}else if(he===Tt)return;j&&j(Dt,Tt,en,Bt),Ie(Tt)},Z=I.useRef(!1),ne=(Dt,Tt,en="selectOption",Bt="options")=>{let Ue=en,Lt=Tt;if(N){Lt=Array.isArray(he)?he.slice():[];const at=Lt.findIndex(cn=>F(Tt,cn));at===-1?Lt.push(Tt):Bt!=="freeSolo"&&(Lt.splice(at,1),Ue="removeOption")}ft(Dt,Lt,Ue),ke(Dt,Lt,Ue,{option:Tt}),!h&&(!Dt||!Dt.ctrlKey&&!Dt.metaKey)&&Li(Dt,Ue),(s===!0||s==="touch"&&Z.current||s==="mouse"&&!Z.current)&&de.current.blur()};function V(Dt,Tt){if(Dt===-1)return-1;let en=Dt;for(;;){if(Tt==="next"&&en===he.length||Tt==="previous"&&en===-1)return-1;const Bt=me.querySelector(`[data-tag-index="${en}"]`);if(!Bt||!Bt.hasAttribute("tabindex")||Bt.disabled||Bt.getAttribute("aria-disabled")==="true")en+=Tt==="next"?1:-1;else return en}}const re=(Dt,Tt)=>{if(!N)return;Be===""&&Li(Dt,"toggleInput");let en=Se;Se===-1?Be===""&&Tt==="previous"&&(en=he.length-1):(en+=Tt==="next"?1:-1,en<0&&(en=0),en===he.length&&(en=-1)),en=V(en,Tt),De(en),Gt(en)},ge=Dt=>{ie.current=!0,ze(""),ee&&ee(Dt,"","clear"),ke(Dt,N?[]:null,"clear")},we=Dt=>Tt=>{if(Dt.onKeyDown&&Dt.onKeyDown(Tt),!Tt.defaultMuiPrevented&&(Se!==-1&&!["ArrowLeft","ArrowRight"].includes(Tt.key)&&(De(-1),Gt(-1)),Tt.which!==229))switch(Tt.key){case"Home":_t&&D&&(Tt.preventDefault(),pn({diff:"start",direction:"next",reason:"keyboard",event:Tt}));break;case"End":_t&&D&&(Tt.preventDefault(),pn({diff:"end",direction:"previous",reason:"keyboard",event:Tt}));break;case"PageUp":Tt.preventDefault(),pn({diff:-QMt,direction:"previous",reason:"keyboard",event:Tt}),di(Tt);break;case"PageDown":Tt.preventDefault(),pn({diff:QMt,direction:"next",reason:"keyboard",event:Tt}),di(Tt);break;case"ArrowDown":Tt.preventDefault(),pn({diff:1,direction:"next",reason:"keyboard",event:Tt}),di(Tt);break;case"ArrowUp":Tt.preventDefault(),pn({diff:-1,direction:"previous",reason:"keyboard",event:Tt}),di(Tt);break;case"ArrowLeft":re(Tt,"previous");break;case"ArrowRight":re(Tt,"next");break;case"Enter":if(qe.current!==-1&&_t){const en=Rt[qe.current],Bt=b?b(en):!1;if(Tt.preventDefault(),Bt)return;ne(Tt,en,"selectOption"),i&&de.current.setSelectionRange(de.current.value.length,de.current.value.length)}else y&&Be!==""&&pt===!1&&(N&&Tt.preventDefault(),ne(Tt,Be,"createOption","freeSolo"));break;case"Escape":_t?(Tt.preventDefault(),Tt.stopPropagation(),Li(Tt,"escape")):l&&(Be!==""||N&&he.length>0)&&(Tt.preventDefault(),Tt.stopPropagation(),ge(Tt));break;case"Backspace":if(N&&!Y&&Be===""&&he.length>0){const en=Se===-1?he.length-1:Se,Bt=he.slice();Bt.splice(en,1),ke(Tt,Bt,"removeOption",{option:he[en]})}break;case"Delete":if(N&&!Y&&Be===""&&he.length>0&&Se!==-1){const en=Se,Bt=he.slice();Bt.splice(en,1),ke(Tt,Bt,"removeOption",{option:he[en]})}break}},ve=Dt=>{it(!0),q&&!ie.current&&di(Dt)},_e=Dt=>{if(t(oe)){de.current.focus();return}it(!1),ce.current=!0,ie.current=!1,o&&qe.current!==-1&&_t?ne(Dt,Rt[qe.current],"blur"):o&&y&&Be!==""?ne(Dt,Be,"blur","freeSolo"):a&&ft(Dt,he,"blur"),Li(Dt,"blur")},Ee=Dt=>{const Tt=Dt.target.value;Be!==Tt&&(ze(Tt),wt(!1),ee&&ee(Dt,Tt,"input")),Tt===""?!d&&!N&&ke(Dt,null,"clear"):di(Dt)},Le=Dt=>{const Tt=Number(Dt.currentTarget.getAttribute("data-option-index"));qe.current!==Tt&&ln({event:Dt,index:Tt,reason:"mouse"})},be=Dt=>{ln({event:Dt,index:Number(Dt.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Z.current=!0},Fe=Dt=>{const Tt=Number(Dt.currentTarget.getAttribute("data-option-index"));ne(Dt,Rt[Tt],"selectOption"),Z.current=!1},Ze=Dt=>Tt=>{const en=he.slice();en.splice(Dt,1),ke(Tt,en,"removeOption",{option:he[Dt]})},Ve=Dt=>{ct?Li(Dt,"toggleInput"):di(Dt)},dt=Dt=>{Dt.currentTarget.contains(Dt.target)&&Dt.target.getAttribute("id")!==U&&Dt.preventDefault()},Vt=Dt=>{Dt.currentTarget.contains(Dt.target)&&(de.current.focus(),G&&ce.current&&de.current.selectionEnd-de.current.selectionStart===0&&de.current.select(),ce.current=!1)},Xe=Dt=>{!f&&(Be===""||!ct)&&Ve(Dt)};let Ht=y&&Be.length>0;Ht=Ht||(N?he.length>0:he!==null);let Qt=Rt;return A&&(Qt=Rt.reduce((Dt,Tt,en)=>{const Bt=A(Tt);return Dt.length>0&&Dt[Dt.length-1].group===Bt?Dt[Dt.length-1].options.push(Tt):Dt.push({key:en,index:en,group:Bt,options:[Tt]}),Dt},[])),f&&Ye&&_e(),{getRootProps:(Dt={})=>({...Dt,onKeyDown:we(Dt),onMouseDown:dt,onClick:Vt}),getInputLabelProps:()=>({id:`${U}-label`,htmlFor:U}),getInputProps:()=>({id:U,value:Be,onBlur:_e,onFocus:ve,onChange:Ee,onMouseDown:Xe,"aria-activedescendant":_t?"":null,"aria-autocomplete":i?"both":"list","aria-controls":Ut?`${U}-listbox`:void 0,"aria-expanded":Ut,autoComplete:"off",ref:de,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:f}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ge}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ve}),getTagProps:({index:Dt})=>({key:Dt,"data-tag-index":Dt,tabIndex:-1,...!Y&&{onDelete:Ze(Dt)}}),getListboxProps:()=>({role:"listbox",id:`${U}-listbox`,"aria-labelledby":`${U}-label`,ref:Yn,onMouseDown:Dt=>{Dt.preventDefault()}}),getOptionProps:({index:Dt,option:Tt})=>{const en=(N?he:[he]).some(Ue=>Ue!=null&&F(Tt,Ue)),Bt=b?b(Tt):!1;return{key:w?.(Tt)??K(Tt),tabIndex:-1,role:"option",id:`${U}-option-${Dt}`,onMouseMove:Le,onClick:Fe,onTouchStart:be,"data-option-index":Dt,"aria-disabled":Bt,"aria-selected":en}},id:U,inputValue:Be,value:he,dirty:Ht,expanded:_t&&me,popupOpen:_t,focused:Ye||Se!==-1,anchorEl:me,setAnchorEl:Ce,focusedTag:Se,groupedOptions:Qt}}var T6i=D6i;function k6i(e){return kr("MuiListSubheader",e)}Ir("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var I6i=e=>{const{classes:t,color:n,disableGutters:i,inset:r,disableSticky:o}=e,s={root:["root",n!=="default"&&`color${gn(n)}`,!i&&"gutters",r&&"inset",!o&&"sticky"]};return Lr(s,k6i,t)},L6i=Mt("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${gn(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(gr(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),C7e=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiListSubheader"}),{className:r,color:o="default",component:s="li",disableGutters:a=!1,disableSticky:l=!1,inset:c=!1,...u}=i,d={...i,color:o,component:s,disableGutters:a,disableSticky:l,inset:c},h=I6i(d);return S.jsx(L6i,{as:s,className:Nn(h.root,r),ref:n,ownerState:d,...u})});C7e&&(C7e.muiSkipListHighlight=!0);var N6i=C7e;function P6i(e){return kr("MuiAutocomplete",e)}var M6i=Ir("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),aa=M6i,XMt,JMt,O6i=e=>{const{classes:t,disablePortal:n,expanded:i,focused:r,fullWidth:o,hasClearIcon:s,hasPopupIcon:a,inputFocused:l,popupOpen:c,size:u}=e,d={root:["root",i&&"expanded",r&&"focused",o&&"fullWidth",s&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${gn(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Lr(d,P6i,t)},R6i=Mt("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:i,hasClearIcon:r,hasPopupIcon:o,inputFocused:s,size:a}=n;return[{[`& .${aa.tag}`]:t.tag},{[`& .${aa.tag}`]:t[`tagSize${gn(a)}`]},{[`& .${aa.inputRoot}`]:t.inputRoot},{[`& .${aa.input}`]:t.input},{[`& .${aa.input}`]:s&&t.inputFocused},t.root,i&&t.fullWidth,o&&t.hasPopupIcon,r&&t.hasClearIcon]}})({[`&.${aa.focused} .${aa.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${aa.clearIndicator}`]:{visibility:"visible"}},[`& .${aa.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${aa.inputRoot}`]:{[`.${aa.hasPopupIcon}&, .${aa.hasClearIcon}&`]:{paddingRight:30},[`.${aa.hasPopupIcon}.${aa.hasClearIcon}&`]:{paddingRight:56},[`& .${aa.input}`]:{width:0,minWidth:30}},[`& .${MI.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${MI.root}.${Iy.sizeSmall}`]:{[`& .${MI.input}`]:{padding:"2px 4px 3px 0"}},[`& .${s_.root}`]:{padding:9,[`.${aa.hasPopupIcon}&, .${aa.hasClearIcon}&`]:{paddingRight:39},[`.${aa.hasPopupIcon}.${aa.hasClearIcon}&`]:{paddingRight:65},[`& .${aa.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${aa.endAdornment}`]:{right:9}},[`& .${s_.root}.${Iy.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${aa.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Ly.root}`]:{paddingTop:19,paddingLeft:8,[`.${aa.hasPopupIcon}&, .${aa.hasClearIcon}&`]:{paddingRight:39},[`.${aa.hasPopupIcon}.${aa.hasClearIcon}&`]:{paddingRight:65},[`& .${Ly.input}`]:{padding:"7px 4px"},[`& .${aa.endAdornment}`]:{right:9}},[`& .${Ly.root}.${Iy.sizeSmall}`]:{paddingBottom:1,[`& .${Ly.input}`]:{padding:"2.5px 4px"}},[`& .${Iy.hiddenLabel}`]:{paddingTop:8},[`& .${Ly.root}.${Iy.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${aa.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Ly.root}.${Iy.hiddenLabel}.${Iy.sizeSmall}`]:{[`& .${aa.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${aa.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${aa.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${aa.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${aa.inputRoot}`]:{flexWrap:"wrap"}}}]}),F6i=Mt("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),B6i=Mt(Qr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),j6i=Mt(Qr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),z6i=Mt(yj,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${aa.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(gr(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),V6i=Mt(eS,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(gr(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),H6i=Mt("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(gr(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),W6i=Mt("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(gr(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),U6i=Mt("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(gr(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${aa.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${aa.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${aa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${aa.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${aa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),$6i=Mt(N6i,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(gr(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),q6i=Mt("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${aa.option}`]:{paddingLeft:24}}),G6i=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiAutocomplete"}),{autoComplete:r=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:a=!1,ChipProps:l,className:c,clearIcon:u=XMt||(XMt=S.jsx(gbn,{fontSize:"small"})),clearOnBlur:d=!i.freeSolo,clearOnEscape:h=!1,clearText:f="Clear",closeText:p="Close",componentsProps:g,defaultValue:m=i.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:y=!1,disabled:b=!1,disabledItemsFocusable:w=!1,disableListWrap:E=!1,disablePortal:A=!1,filterOptions:D,filterSelectedOptions:T=!1,forcePopupIcon:M="auto",freeSolo:P=!1,fullWidth:F=!1,getLimitTagsText:N=fi=>`+${fi}`,getOptionDisabled:j,getOptionKey:W,getOptionLabel:J,isOptionEqualToValue:ee,groupBy:Q,handleHomeEndKeys:H=!i.freeSolo,id:q,includeInputInList:le=!1,inputValue:Y,limitTags:G=-1,ListboxComponent:pe,ListboxProps:U,loading:K=!1,loadingText:ie="Loading…",multiple:ce=!1,noOptionsText:de="No options",onChange:oe,onClose:me,onHighlightChange:Ce,onInputChange:Se,onOpen:De,open:Me,openOnFocus:qe=!1,openText:$="Open",options:he,PaperComponent:Ie,PopperComponent:Be,popupIcon:ze=JMt||(JMt=S.jsx(K0n,{})),readOnly:Ye=!1,renderGroup:it,renderInput:ft,renderOption:ct,renderTags:et,selectOnFocus:ut=!i.freeSolo,size:wt="medium",slots:pt={},slotProps:_t={},value:Rt,...Yt}=i,{getRootProps:Ut,getInputProps:Gt,getInputLabelProps:Kt,getPopupIndicatorProps:ln,getClearProps:pn,getTagProps:wn,getListboxProps:Mn,getOptionProps:Yn,value:di,dirty:Li,expanded:ke,id:Z,popupOpen:ne,focused:V,focusedTag:re,anchorEl:ge,setAnchorEl:we,inputValue:ve,groupedOptions:_e}=T6i({...i,componentName:"Autocomplete"}),Ee=!v&&!b&&Li&&!Ye,Le=(!P||M===!0)&&M!==!1,{onMouseDown:be}=Gt(),{ref:Fe,...Ze}=Mn(),dt=J||(fi=>fi.label??fi),Vt={...i,disablePortal:A,expanded:ke,focused:V,fullWidth:F,getOptionLabel:dt,hasClearIcon:Ee,hasPopupIcon:Le,inputFocused:re===-1,popupOpen:ne,size:wt},Xe=O6i(Vt),Ht={slots:{paper:Ie,popper:Be,...pt},slotProps:{chip:l,listbox:U,...g,..._t}},[Qt,Dt]=wo("listbox",{elementType:U6i,externalForwardedProps:Ht,ownerState:Vt,className:Xe.listbox,additionalProps:Ze,ref:Fe}),[Tt,en]=wo("paper",{elementType:eS,externalForwardedProps:Ht,ownerState:Vt,className:Xe.paper}),[Bt,Ue]=wo("popper",{elementType:yj,externalForwardedProps:Ht,ownerState:Vt,className:Xe.popper,additionalProps:{disablePortal:A,style:{width:ge?ge.clientWidth:null},role:"presentation",anchorEl:ge,open:ne}});let Lt;if(ce&&di.length>0){const fi=Fr=>({className:Xe.tag,disabled:b,...wn(Fr)});et?Lt=et(di,fi,Vt):Lt=di.map((Fr,Wo)=>{const{key:Mo,...Us}=fi({index:Wo});return S.jsx(D2,{label:dt(Fr),size:wt,...Us,...Ht.slotProps.chip},Mo)})}if(G>-1&&Array.isArray(Lt)){const fi=Lt.length-G;!V&&fi>0&&(Lt=Lt.splice(0,G),Lt.push(S.jsx("span",{className:Xe.tag,children:N(fi)},Lt.length)))}const cn=it||(fi=>S.jsxs("li",{children:[S.jsx($6i,{className:Xe.groupLabel,ownerState:Vt,component:"div",children:fi.group}),S.jsx(q6i,{className:Xe.groupUl,ownerState:Vt,children:fi.children})]},fi.key)),Tn=ct||((fi,Fr)=>{const{key:Wo,...Mo}=fi;return S.jsx("li",{...Mo,children:dt(Fr)},Wo)}),xi=(fi,Fr)=>{const Wo=Yn({option:fi,index:Fr});return Tn({...Wo,className:Xe.option},fi,{selected:Wo["aria-selected"],index:Fr,inputValue:ve},Vt)},Zi=Ht.slotProps.clearIndicator,dn=Ht.slotProps.popupIndicator;return S.jsxs(I.Fragment,{children:[S.jsx(R6i,{ref:n,className:Nn(Xe.root,c),ownerState:Vt,...Ut(Yt),children:ft({id:Z,disabled:b,fullWidth:!0,size:wt==="small"?"small":void 0,InputLabelProps:Kt(),InputProps:{ref:we,className:Xe.inputRoot,startAdornment:Lt,onMouseDown:fi=>{fi.target===fi.currentTarget&&be(fi)},...(Ee||Le)&&{endAdornment:S.jsxs(F6i,{className:Xe.endAdornment,ownerState:Vt,children:[Ee?S.jsx(B6i,{...pn(),"aria-label":f,title:f,ownerState:Vt,...Zi,className:Nn(Xe.clearIndicator,Zi?.className),children:u}):null,Le?S.jsx(j6i,{...ln(),disabled:b,"aria-label":ne?p:$,title:ne?p:$,ownerState:Vt,...dn,className:Nn(Xe.popupIndicator,dn?.className),children:ze}):null]})}},inputProps:{className:Xe.input,disabled:b,readOnly:Ye,...Gt()}})}),ge?S.jsx(z6i,{as:Bt,...Ue,children:S.jsxs(V6i,{as:Tt,...en,children:[K&&_e.length===0?S.jsx(H6i,{className:Xe.loading,ownerState:Vt,children:ie}):null,_e.length===0&&!P&&!K?S.jsx(W6i,{className:Xe.noOptions,ownerState:Vt,role:"presentation",onMouseDown:fi=>{fi.preventDefault()},children:de}):null,_e.length>0?S.jsx(Qt,{as:pe,...Dt,children:_e.map((fi,Fr)=>Q?cn({key:fi.key,group:fi.group,children:fi.options.map((Wo,Mo)=>xi(Wo,fi.index+Mo))}):xi(fi,Fr))}):null]})}):null]})}),XQe=G6i;function K6i(e){const{badgeContent:t,invisible:n=!1,max:i=99,showZero:r=!1}=e,o=oQe({badgeContent:t,max:i});let s=n;n===!1&&t===0&&!r&&(s=!0);const{badgeContent:a,max:l=i}=s?o:e,c=a&&Number(a)>l?`${l}+`:a;return{badgeContent:a,invisible:s,max:l,displayValue:c}}var Y6i=K6i;function Q6i(e){return kr("MuiBadge",e)}var Z6i=Ir("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Hk=Z6i,eMe=10,tMe=4,X6i=e=>{const{color:t,anchorOrigin:n,invisible:i,overlap:r,variant:o,classes:s={}}=e,a={root:["root"],badge:["badge",o,i&&"invisible",`anchorOrigin${gn(n.vertical)}${gn(n.horizontal)}`,`anchorOrigin${gn(n.vertical)}${gn(n.horizontal)}${gn(r)}`,`overlap${gn(r)}`,t!=="default"&&`color${gn(t)}`]};return Lr(a,Q6i,s)},J6i=Mt("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),e8i=Mt("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${gn(n.anchorOrigin.vertical)}${gn(n.anchorOrigin.horizontal)}${gn(n.overlap)}`],n.color!=="default"&&t[`color${gn(n.color)}`],n.invisible&&t.invisible]}})(gr(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:eMe*2,lineHeight:1,padding:"0 6px",height:eMe*2,borderRadius:eMe,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter($a(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:tMe,height:tMe*2,minWidth:tMe*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Hk.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Hk.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Hk.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Hk.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Hk.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Hk.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Hk.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Hk.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function eOt(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}var t8i=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiBadge"}),{anchorOrigin:r,className:o,classes:s,component:a,components:l={},componentsProps:c={},children:u,overlap:d="rectangular",color:h="default",invisible:f=!1,max:p=99,badgeContent:g,slots:m,slotProps:v,showZero:y=!1,variant:b="standard",...w}=i,{badgeContent:E,invisible:A,max:D,displayValue:T}=Y6i({max:p,invisible:f,badgeContent:g,showZero:y}),M=oQe({anchorOrigin:eOt(r),color:h,overlap:d,variant:b,badgeContent:g}),P=A||E==null&&b!=="dot",{color:F=h,overlap:N=d,anchorOrigin:j,variant:W=b}=P?M:i,J=eOt(j),ee=W!=="dot"?T:void 0,Q={...i,badgeContent:E,invisible:P,max:D,displayValue:ee,showZero:y,anchorOrigin:J,color:F,overlap:N,variant:W},H=X6i(Q),q={slots:{root:m?.root??l.Root,badge:m?.badge??l.Badge},slotProps:{root:v?.root??c.root,badge:v?.badge??c.badge}},[le,Y]=wo("root",{elementType:J6i,externalForwardedProps:{...q,...w},ownerState:Q,className:Nn(H.root,o),ref:n,additionalProps:{as:a}}),[G,pe]=wo("badge",{elementType:e8i,externalForwardedProps:q,ownerState:Q,className:H.badge});return S.jsxs(le,{...Y,children:[u,S.jsx(G,{...pe,children:ee})]})}),mbn=t8i,n8i=Ir("MuiBox",["root"]),i8i=n8i,r8i=d0e(),o8i=qSi({themeId:q_,defaultTheme:r8i,defaultClassName:i8i.root,generateClassName:Mvn.generate}),tn=o8i,s8i=ho(S.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),a8i=Mt(vg,{name:"MuiBreadcrumbCollapsed"})(gr(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:K9e(e.palette.grey[200],.12)}:{backgroundColor:K9e(e.palette.grey[600],.12)}}}))),l8i=Mt(s8i)({width:24,height:16});function c8i(e){const{slots:t={},slotProps:n={},...i}=e,r=e;return S.jsx("li",{children:S.jsx(a8i,{focusRipple:!0,...i,ownerState:r,children:S.jsx(l8i,{as:t.CollapsedIcon,ownerState:r,...n.collapsedIcon})})})}var u8i=c8i;function d8i(e){return kr("MuiBreadcrumbs",e)}var h8i=Ir("MuiBreadcrumbs",["root","ol","li","separator"]),f8i=h8i,p8i=e=>{const{classes:t}=e;return Lr({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},d8i,t)},g8i=Mt(Xn,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${f8i.li}`]:t.li},t.root]})({}),m8i=Mt("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),v8i=Mt("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function y8i(e,t,n,i){return e.reduce((r,o,s)=>(s<e.length-1?r=r.concat(o,S.jsx(v8i,{"aria-hidden":!0,className:t,ownerState:i,children:n},`separator-${s}`)):r.push(o),r),[])}var b8i=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiBreadcrumbs"}),{children:r,className:o,component:s="nav",slots:a={},slotProps:l={},expandText:c="Show path",itemsAfterCollapse:u=1,itemsBeforeCollapse:d=1,maxItems:h=8,separator:f="/",...p}=i,[g,m]=I.useState(!1),v={...i,component:s,expanded:g,expandText:c,itemsAfterCollapse:u,itemsBeforeCollapse:d,maxItems:h,separator:f},y=p8i(v),b=Xm({elementType:a.CollapsedIcon,externalSlotProps:l.collapsedIcon,ownerState:v}),w=I.useRef(null),E=D=>{const T=()=>{m(!0);const M=w.current.querySelector("a[href],button,[tabindex]");M&&M.focus()};return d+u>=D.length?D:[...D.slice(0,d),S.jsx(u8i,{"aria-label":c,slots:{CollapsedIcon:a.CollapsedIcon},slotProps:{collapsedIcon:b},onClick:T},"ellipsis"),...D.slice(D.length-u,D.length)]},A=I.Children.toArray(r).filter(D=>I.isValidElement(D)).map((D,T)=>S.jsx("li",{className:y.li,children:D},`child-${T}`));return S.jsx(g8i,{ref:n,component:s,color:"textSecondary",className:Nn(y.root,o),ownerState:v,...p,children:S.jsx(m8i,{className:y.ol,ref:w,ownerState:v,children:y8i(g||h&&A.length<=h?A:E(A),y.separator,f,v)})})}),_8i=b8i;function w8i(e){return kr("MuiButtonGroup",e)}var C8i=Ir("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),Js=C8i,S8i=(e,t)=>{const{ownerState:n}=e;return[{[`& .${Js.grouped}`]:t.grouped},{[`& .${Js.grouped}`]:t[`grouped${gn(n.orientation)}`]},{[`& .${Js.grouped}`]:t[`grouped${gn(n.variant)}`]},{[`& .${Js.grouped}`]:t[`grouped${gn(n.variant)}${gn(n.orientation)}`]},{[`& .${Js.grouped}`]:t[`grouped${gn(n.variant)}${gn(n.color)}`]},{[`& .${Js.firstButton}`]:t.firstButton},{[`& .${Js.lastButton}`]:t.lastButton},{[`& .${Js.middleButton}`]:t.middleButton},t.root,t[n.variant],n.disableElevation===!0&&t.disableElevation,n.fullWidth&&t.fullWidth,n.orientation==="vertical"&&t.vertical]},x8i=e=>{const{classes:t,color:n,disabled:i,disableElevation:r,fullWidth:o,orientation:s,variant:a}=e,l={root:["root",a,s,o&&"fullWidth",r&&"disableElevation",`color${gn(n)}`],grouped:["grouped",`grouped${gn(s)}`,`grouped${gn(a)}`,`grouped${gn(a)}${gn(s)}`,`grouped${gn(a)}${gn(n)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Lr(l,w8i,t)},E8i=Mt("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:S8i})(gr(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(e.vars||e).shadows[2]}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${Js.lastButton},& .${Js.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${Js.firstButton},& .${Js.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${Js.firstButton},& .${Js.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Js.lastButton},& .${Js.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${Js.firstButton},& .${Js.middleButton}`]:{borderRight:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Js.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${Js.firstButton},& .${Js.middleButton}`]:{borderBottom:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Js.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter($a()).flatMap(([t])=>[{props:{variant:"text",color:t},style:{[`& .${Js.firstButton},& .${Js.middleButton}`]:{borderColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:pr(e.palette[t].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${Js.firstButton},& .${Js.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${Js.lastButton},& .${Js.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${Js.firstButton},& .${Js.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${Js.lastButton},& .${Js.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${Js.firstButton},& .${Js.middleButton}`]:{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Js.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${Js.firstButton},& .${Js.middleButton}`]:{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Js.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter($a(["dark"])).map(([t])=>({props:{variant:"contained",color:t},style:{[`& .${Js.firstButton},& .${Js.middleButton}`]:{borderColor:(e.vars||e).palette[t].dark}}}))],[`& .${Js.grouped}`]:{minWidth:40,boxShadow:"none",props:{variant:"contained"},style:{"&:hover":{boxShadow:"none"}}}}))),A8i=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiButtonGroup"}),{children:r,className:o,color:s="primary",component:a="div",disabled:l=!1,disableElevation:c=!1,disableFocusRipple:u=!1,disableRipple:d=!1,fullWidth:h=!1,orientation:f="horizontal",size:p="medium",variant:g="outlined",...m}=i,v={...i,color:s,component:a,disabled:l,disableElevation:c,disableFocusRipple:u,disableRipple:d,fullWidth:h,orientation:f,size:p,variant:g},y=x8i(v),b=I.useMemo(()=>({className:y.grouped,color:s,disabled:l,disableElevation:c,disableFocusRipple:u,disableRipple:d,fullWidth:h,size:p,variant:g}),[s,l,c,u,d,h,p,g,y.grouped]),w=Kvn(r),E=w.length,A=D=>{const T=D===0,M=D===E-1;return T&&M?"":T?y.firstButton:M?y.lastButton:y.middleButton};return S.jsx(E8i,{as:a,role:"group",className:Nn(y.root,o),ref:n,ownerState:v,...m,children:S.jsx(Ayn.Provider,{value:b,children:w.map((D,T)=>S.jsx(Dyn.Provider,{value:A(T),children:D},T))})})}),D8i=A8i;function T8i(e){return kr("PrivateSwitchBase",e)}Ir("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var k8i=e=>{const{classes:t,checked:n,disabled:i,edge:r}=e,o={root:["root",n&&"checked",i&&"disabled",r&&`edge${gn(r)}`],input:["input"]};return Lr(o,T8i,t)},I8i=Mt(vg,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),L8i=Mt("input",{name:"MuiSwitchBase",shouldForwardProp:kg})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),N8i=I.forwardRef(function(t,n){const{autoFocus:i,checked:r,checkedIcon:o,defaultChecked:s,disabled:a,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:h,inputRef:f,name:p,onBlur:g,onChange:m,onFocus:v,readOnly:y,required:b=!1,tabIndex:w,type:E,value:A,slots:D={},slotProps:T={},...M}=t,[P,F]=Mhe({controlled:r,default:!!s,name:"SwitchBase",state:"checked"}),N=ty(),j=K=>{v&&v(K),N&&N.onFocus&&N.onFocus(K)},W=K=>{g&&g(K),N&&N.onBlur&&N.onBlur(K)},J=K=>{if(K.nativeEvent.defaultPrevented)return;const ie=K.target.checked;F(ie),m&&m(K,ie)};let ee=a;N&&typeof ee>"u"&&(ee=N.disabled);const Q=E==="checkbox"||E==="radio",H={...t,checked:P,disabled:ee,disableFocusRipple:l,edge:c},q=k8i(H),le={slots:D,slotProps:{input:h,...T}},[Y,G]=wo("root",{ref:n,elementType:I8i,className:q.root,shouldForwardComponentProp:!0,externalForwardedProps:{...le,component:"span",...M},getSlotProps:K=>({...K,onFocus:ie=>{K.onFocus?.(ie),j(ie)},onBlur:ie=>{K.onBlur?.(ie),W(ie)}}),ownerState:H,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:ee,role:void 0,tabIndex:null}}),[pe,U]=wo("input",{ref:f,elementType:L8i,className:q.input,externalForwardedProps:le,getSlotProps:K=>({onChange:ie=>{K.onChange?.(ie),J(ie)}}),ownerState:H,additionalProps:{autoFocus:i,checked:r,defaultChecked:s,disabled:ee,id:Q?d:void 0,name:p,readOnly:y,required:b,tabIndex:w,type:E,...E==="checkbox"&&A===void 0?{}:{value:A}}});return S.jsxs(Y,{...G,children:[S.jsx(pe,{...U}),P?o:u]})}),JQe=N8i,P8i=ho(S.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),M8i=ho(S.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),O8i=ho(S.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function R8i(e){return kr("MuiCheckbox",e)}var F8i=Ir("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),nMe=F8i,B8i=e=>{const{classes:t,indeterminate:n,color:i,size:r}=e,o={root:["root",n&&"indeterminate",`color${gn(i)}`,`size${gn(r)}`]},s=Lr(o,R8i,t);return{...t,...s}},j8i=Mt(JQe,{shouldForwardProp:e=>kg(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${gn(n.size)}`],n.color!=="default"&&t[`color${gn(n.color)}`]]}})(gr(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter($a()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter($a()).map(([t])=>({props:{color:t},style:{[`&.${nMe.checked}, &.${nMe.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${nMe.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),z8i=S.jsx(M8i,{}),V8i=S.jsx(P8i,{}),H8i=S.jsx(O8i,{}),W8i=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiCheckbox"}),{checkedIcon:r=z8i,color:o="primary",icon:s=V8i,indeterminate:a=!1,indeterminateIcon:l=H8i,inputProps:c,size:u="medium",disableRipple:d=!1,className:h,slots:f={},slotProps:p={},...g}=i,m=a?l:s,v=a?l:r,y={...i,disableRipple:d,color:o,indeterminate:a,size:u},b=B8i(y),w=p.input??c,[E,A]=wo("root",{ref:n,elementType:j8i,className:Nn(b.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:p,...g},ownerState:y,additionalProps:{type:"checkbox",icon:I.cloneElement(m,{fontSize:m.props.fontSize??u}),checkedIcon:I.cloneElement(v,{fontSize:v.props.fontSize??u}),disableRipple:d,slots:f,slotProps:{input:f0n(typeof w=="function"?w(y):w,{"data-indeterminate":a})}}});return S.jsx(E,{...A,classes:b})}),YQ=W8i;function tOt(e){return e.substring(2).toLowerCase()}function U8i(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function $8i(e){const{children:t,disableReactTree:n=!1,mouseEvent:i="onClick",onClickAway:r,touchEvent:o="onTouchEnd"}=e,s=I.useRef(!1),a=I.useRef(null),l=I.useRef(!1),c=I.useRef(!1);I.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=LC(DF(t),a),d=F_(p=>{const g=c.current;c.current=!1;const m=gg(a.current);if(!l.current||!a.current||"clientX"in p&&U8i(p,m))return;if(s.current){s.current=!1;return}let v;p.composedPath?v=p.composedPath().includes(a.current):v=!m.documentElement.contains(p.target)||a.current.contains(p.target),!v&&(n||!g)&&r(p)}),h=p=>g=>{c.current=!0;const m=t.props[p];m&&m(g)},f={ref:u};return o!==!1&&(f[o]=h(o)),I.useEffect(()=>{if(o!==!1){const p=tOt(o),g=gg(a.current),m=()=>{s.current=!0};return g.addEventListener(p,d),g.addEventListener("touchmove",m),()=>{g.removeEventListener(p,d),g.removeEventListener("touchmove",m)}}},[d,o]),i!==!1&&(f[i]=h(i)),I.useEffect(()=>{if(i!==!1){const p=tOt(i),g=gg(a.current);return g.addEventListener(p,d),()=>{g.removeEventListener(p,d)}}},[d,i]),I.cloneElement(t,f)}var q8i=aEi({createStyledComponent:Mt("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${gn(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Nr({props:e,name:"MuiContainer"})}),eZe=q8i,S7e=typeof uQe({})=="function",G8i=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),K8i=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),vbn=(e,t=!1)=>{const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([o,s])=>{const a=e.getColorSchemeSelector(o);a.startsWith("@")?n[a]={":root":{colorScheme:s.palette?.mode}}:n[a.replace(/\s*&/,"")]={colorScheme:s.palette?.mode}});let i={html:G8i(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...K8i(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const r=e.components?.MuiCssBaseline?.styleOverrides;return r&&(i=[i,r]),i},mce="mui-ecs",Y8i=e=>{const t=vbn(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${mce})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([i,r])=>{const o=e.getColorSchemeSelector(i);o.startsWith("@")?n[o]={[`:root:not(:has(.${mce}))`]:{colorScheme:r.palette?.mode}}:n[o.replace(/\s*&/,"")]={[`&:not(:has(.${mce}))`]:{colorScheme:r.palette?.mode}}}),t},Q8i=uQe(S7e?({theme:e,enableColorScheme:t})=>vbn(e,t):({theme:e})=>Y8i(e));function Z8i(e){const t=Nr({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:i=!1}=t;return S.jsxs(I.Fragment,{children:[S7e&&S.jsx(Q8i,{enableColorScheme:i}),!S7e&&!i&&S.jsx("span",{className:mce,style:{display:"none"}}),n]})}var X8i=Z8i;function J8i(e){return kr("MuiDialogContentText",e)}Ir("MuiDialogContentText",["root"]);var e9i=e=>{const{classes:t}=e,i=Lr({root:["root"]},J8i,t);return{...t,...i}},t9i=Mt(Xn,{shouldForwardProp:e=>kg(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),n9i=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiDialogContentText"}),{children:r,className:o,...s}=i,a=e9i(s);return S.jsx(t9i,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:Nn(a.root,o),...i,classes:a})}),nOt=n9i,i9i=e=>{const{classes:t}=e;return Lr({root:["root"]},Q2i,t)},r9i=Mt(Xn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),o9i=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiDialogTitle"}),{className:r,id:o,...s}=i,a=i,l=i9i(a),{titleId:c=o}=I.useContext(Oyn);return S.jsx(r9i,{component:"h2",className:Nn(l.root,r),ownerState:a,ref:n,variant:"h6",id:o??c,...s})}),M0e=o9i;function s9i(e){return kr("MuiFormControlLabel",e)}var a9i=Ir("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),nU=a9i,l9i=e=>{const{classes:t,disabled:n,labelPlacement:i,error:r,required:o}=e,s={root:["root",n&&"disabled",`labelPlacement${gn(i)}`,r&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",r&&"error"]};return Lr(s,s9i,t)},c9i=Mt("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nU.label}`]:t.label},t.root,t[`labelPlacement${gn(n.labelPlacement)}`]]}})(gr(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${nU.disabled}`]:{cursor:"default"},[`& .${nU.label}`]:{[`&.${nU.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),u9i=Mt("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(gr(({theme:e})=>({[`&.${nU.error}`]:{color:(e.vars||e).palette.error.main}}))),d9i=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiFormControlLabel"}),{checked:r,className:o,componentsProps:s={},control:a,disabled:l,disableTypography:c,inputRef:u,label:d,labelPlacement:h="end",name:f,onChange:p,required:g,slots:m={},slotProps:v={},value:y,...b}=i,w=ty(),E=l??a.props.disabled??w?.disabled,A=g??a.props.required,D={disabled:E,required:A};["checked","name","onChange","value","inputRef"].forEach(J=>{typeof a.props[J]>"u"&&typeof i[J]<"u"&&(D[J]=i[J])});const T=LF({props:i,muiFormControl:w,states:["error"]}),M={...i,disabled:E,labelPlacement:h,required:A,error:T.error},P=l9i(M),F={slots:m,slotProps:{...s,...v}},[N,j]=wo("typography",{elementType:Xn,externalForwardedProps:F,ownerState:M});let W=d;return W!=null&&W.type!==Xn&&!c&&(W=S.jsx(N,{component:"span",...j,className:Nn(P.label,j?.className),children:W})),S.jsxs(c9i,{className:Nn(P.root,o),ownerState:M,ref:n,...b,children:[I.cloneElement(a,D),A?S.jsxs("div",{children:[W,S.jsxs(u9i,{ownerState:M,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):W]})}),ybn=d9i,h9i=I.createContext(),iOt=h9i;function f9i(e){return kr("MuiGrid",e)}var p9i=[0,1,2,3,4,5,6,7,8,9,10],g9i=["column-reverse","column","row-reverse","row"],m9i=["nowrap","wrap-reverse","wrap"],Y3=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],v9i=Ir("MuiGrid",["root","container","item","zeroMinWidth",...p9i.map(e=>`spacing-xs-${e}`),...g9i.map(e=>`direction-xs-${e}`),...m9i.map(e=>`wrap-xs-${e}`),...Y3.map(e=>`grid-xs-${e}`),...Y3.map(e=>`grid-sm-${e}`),...Y3.map(e=>`grid-md-${e}`),...Y3.map(e=>`grid-lg-${e}`),...Y3.map(e=>`grid-xl-${e}`)]),ZG=v9i;function y9i({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((i,r)=>{let o={};if(t[r]&&(n=t[r]),!n)return i;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=AR({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof s=="object"?s[r]:s;if(a==null)return i;const l=`${Math.round(n/a*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const d=`calc(${l} + ${u})`;c={flexBasis:d,maxWidth:d}}}o={flexBasis:l,flexGrow:0,maxWidth:l,...c}}return e.breakpoints.values[r]===0?Object.assign(i,o):i[e.breakpoints.up(r)]=o,i},{})}function b9i({theme:e,ownerState:t}){const n=AR({values:t.direction,breakpoints:e.breakpoints.values});return $0({theme:e},n,i=>{const r={flexDirection:i};return i.startsWith("column")&&(r[`& > .${ZG.item}`]={maxWidth:"none"}),r})}function bbn({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(r=>{n===""&&t[r]!==0&&(n=r)});const i=Object.keys(e).sort((r,o)=>e[r]-e[o]);return i.slice(0,i.indexOf(n))}function _9i({theme:e,ownerState:t}){const{container:n,rowSpacing:i}=t;let r={};if(n&&i!==0){const o=AR({values:i,breakpoints:e.breakpoints.values});let s;typeof o=="object"&&(s=bbn({breakpoints:e.breakpoints.values,values:o})),r=$0({theme:e},o,(a,l)=>{const c=e.spacing(a);return c!=="0px"?{marginTop:`calc(-1 * ${c})`,[`& > .${ZG.item}`]:{paddingTop:c}}:s?.includes(l)?{}:{marginTop:0,[`& > .${ZG.item}`]:{paddingTop:0}}})}return r}function w9i({theme:e,ownerState:t}){const{container:n,columnSpacing:i}=t;let r={};if(n&&i!==0){const o=AR({values:i,breakpoints:e.breakpoints.values});let s;typeof o=="object"&&(s=bbn({breakpoints:e.breakpoints.values,values:o})),r=$0({theme:e},o,(a,l)=>{const c=e.spacing(a);if(c!=="0px"){const u=`calc(-1 * ${c})`;return{width:`calc(100% + ${c})`,marginLeft:u,[`& > .${ZG.item}`]:{paddingLeft:c}}}return s?.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${ZG.item}`]:{paddingLeft:0}}})}return r}function C9i(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const i=[];return t.forEach(r=>{const o=e[r];Number(o)>0&&i.push(n[`spacing-${r}-${String(o)}`])}),i}var S9i=Mt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:i,direction:r,item:o,spacing:s,wrap:a,zeroMinWidth:l,breakpoints:c}=n;let u=[];i&&(u=C9i(s,c,t));const d=[];return c.forEach(h=>{const f=n[h];f&&d.push(t[`grid-${h}-${String(f)}`])}),[t.root,i&&t.container,o&&t.item,l&&t.zeroMinWidth,...u,r!=="row"&&t[`direction-xs-${String(r)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...d]}})(({ownerState:e})=>({boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...e.item&&{margin:0},...e.zeroMinWidth&&{minWidth:0},...e.wrap!=="wrap"&&{flexWrap:e.wrap}}),b9i,_9i,w9i,y9i);function x9i(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(i=>{const r=e[i];if(Number(r)>0){const o=`spacing-${i}-${String(r)}`;n.push(o)}}),n}var E9i=e=>{const{classes:t,container:n,direction:i,item:r,spacing:o,wrap:s,zeroMinWidth:a,breakpoints:l}=e;let c=[];n&&(c=x9i(o,l));const u=[];l.forEach(h=>{const f=e[h];f&&u.push(`grid-${h}-${String(f)}`)});const d={root:["root",n&&"container",r&&"item",a&&"zeroMinWidth",...c,i!=="row"&&`direction-xs-${String(i)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...u]};return Lr(d,f9i,t)},A9i=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiGrid"}),{breakpoints:r}=cl(),o=c0e(i),{className:s,columns:a,columnSpacing:l,component:c="div",container:u=!1,direction:d="row",item:h=!1,rowSpacing:f,spacing:p=0,wrap:g="wrap",zeroMinWidth:m=!1,...v}=o,y=f||p,b=l||p,w=I.useContext(iOt),E=u?a||12:w,A={},D={...v};r.keys.forEach(P=>{v[P]!=null&&(A[P]=v[P],delete D[P])});const T={...o,columns:E,container:u,direction:d,item:h,rowSpacing:y,columnSpacing:b,wrap:g,zeroMinWidth:m,spacing:p,...A,breakpoints:r.keys},M=E9i(T);return S.jsx(iOt.Provider,{value:E,children:S.jsx(S9i,{ownerState:T,className:Nn(M.root,s),as:c,ref:n,...D})})}),D9i=A9i;function T9i(e){return kr("MuiLinearProgress",e)}Ir("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var x7e=4,E7e=Tw`
  0% {
    left: -35%;
    right: 100%;
  }

  60% {
    left: 100%;
    right: -90%;
  }

  100% {
    left: 100%;
    right: -90%;
  }
`,k9i=typeof E7e!="string"?QN`
        animation: ${E7e} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
      `:null,A7e=Tw`
  0% {
    left: -200%;
    right: 100%;
  }

  60% {
    left: 107%;
    right: -8%;
  }

  100% {
    left: 107%;
    right: -8%;
  }
`,I9i=typeof A7e!="string"?QN`
        animation: ${A7e} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
      `:null,D7e=Tw`
  0% {
    opacity: 1;
    background-position: 0 -23px;
  }

  60% {
    opacity: 0;
    background-position: 0 -23px;
  }

  100% {
    opacity: 1;
    background-position: -200px -23px;
  }
`,L9i=typeof D7e!="string"?QN`
        animation: ${D7e} 3s infinite linear;
      `:null,N9i=e=>{const{classes:t,variant:n,color:i}=e,r={root:["root",`color${gn(i)}`,n],dashed:["dashed",`dashedColor${gn(i)}`],bar1:["bar","bar1",`barColor${gn(i)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${gn(i)}`,n==="buffer"&&`color${gn(i)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Lr(r,T9i,t)},tZe=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?P0(e.palette[t].main,.62):fb(e.palette[t].main,.5),P9i=Mt("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${gn(n.color)}`],t[n.variant]]}})(gr(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter($a()).map(([t])=>({props:{color:t},style:{backgroundColor:tZe(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),M9i=Mt("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${gn(n.color)}`]]}})(gr(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter($a()).map(([t])=>{const n=tZe(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),L9i||{animation:`${D7e} 3s infinite linear`}),O9i=Mt("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${gn(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(gr(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter($a()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${x7e}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${x7e}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:k9i||{animation:`${E7e} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),R9i=Mt("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${gn(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(gr(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter($a()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter($a()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:tZe(e,t),transition:`transform .${x7e}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:I9i||{animation:`${A7e} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),F9i=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiLinearProgress"}),{className:r,color:o="primary",value:s,valueBuffer:a,variant:l="indeterminate",...c}=i,u={...i,color:o,variant:l},d=N9i(u),h=Ph(),f={},p={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&s!==void 0){f["aria-valuenow"]=Math.round(s),f["aria-valuemin"]=0,f["aria-valuemax"]=100;let g=s-100;h&&(g=-g),p.bar1.transform=`translateX(${g}%)`}if(l==="buffer"&&a!==void 0){let g=(a||0)-100;h&&(g=-g),p.bar2.transform=`translateX(${g}%)`}return S.jsxs(P9i,{className:Nn(d.root,r),ownerState:u,role:"progressbar",...f,ref:n,...c,children:[l==="buffer"?S.jsx(M9i,{className:d.dashed,ownerState:u}):null,S.jsx(O9i,{className:d.bar1,ownerState:u,style:p.bar1}),l==="determinate"?null:S.jsx(R9i,{className:d.bar2,ownerState:u,style:p.bar2})]})}),_bn=F9i;function B9i(e){return kr("MuiLink",e)}var j9i=Ir("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),z9i=j9i,V9i=({theme:e,ownerState:t})=>{const n=t.color,i=$I(e,`palette.${n}.main`,!1)||$I(e,`palette.${n}`,!1)||t.color,r=$I(e,`palette.${n}.mainChannel`)||$I(e,`palette.${n}Channel`);return"vars"in e&&r?`rgba(${r} / 0.4)`:pr(i,.4)},H9i=V9i,rOt={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},W9i=e=>{const{classes:t,component:n,focusVisible:i,underline:r}=e,o={root:["root",`underline${gn(r)}`,n==="button"&&"button",i&&"focusVisible"]};return Lr(o,B9i,t)},U9i=Mt(Xn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${gn(n.underline)}`],n.component==="button"&&t.button]}})(gr(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter($a()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:pr(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:pr(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:pr(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${z9i.focusVisible}`]:{outline:"auto"}}}]}))),$9i=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiLink"}),r=cl(),{className:o,color:s="primary",component:a="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:d="always",variant:h="inherit",sx:f,...p}=i,[g,m]=I.useState(!1),v=E=>{XL(E.target)||m(!1),l&&l(E)},y=E=>{XL(E.target)&&m(!0),c&&c(E)},b={...i,color:s,component:a,focusVisible:g,underline:d,variant:h},w=W9i(b);return S.jsx(U9i,{color:s,className:Nn(w.root,o),classes:u,component:a,onBlur:v,onFocus:y,ref:n,ownerState:b,variant:h,...p,sx:[...rOt[s]===void 0?[{color:s}]:[],...Array.isArray(f)?f:[f]],style:{...p.style,...d==="always"&&s!=="inherit"&&!rOt[s]&&{"--Link-underlineColor":H9i({theme:r,ownerState:b})}}})}),T7e=$9i;function q9i(e){return kr("MuiPagination",e)}Ir("MuiPagination",["root","ul","outlined","text"]);function G9i(e={}){const{boundaryCount:t=1,componentName:n="usePagination",count:i=1,defaultPage:r=1,disabled:o=!1,hideNextButton:s=!1,hidePrevButton:a=!1,onChange:l,page:c,showFirstButton:u=!1,showLastButton:d=!1,siblingCount:h=1,...f}=e,[p,g]=b8({controlled:c,default:r,name:n,state:"page"}),m=(M,P)=>{c||g(P),l&&l(M,P)},v=(M,P)=>{const F=P-M+1;return Array.from({length:F},(N,j)=>M+j)},y=v(1,Math.min(t,i)),b=v(Math.max(i-t+1,t+1),i),w=Math.max(Math.min(p-h,i-t-h*2-1),t+2),E=Math.min(Math.max(p+h,t+h*2+2),i-t-1),A=[...u?["first"]:[],...a?[]:["previous"],...y,...w>t+2?["start-ellipsis"]:t+1<i-t?[t+1]:[],...v(w,E),...E<i-t-1?["end-ellipsis"]:i-t>t?[i-t]:[],...b,...s?[]:["next"],...d?["last"]:[]],D=M=>{switch(M){case"first":return 1;case"previous":return p-1;case"next":return p+1;case"last":return i;default:return null}};return{items:A.map(M=>typeof M=="number"?{onClick:P=>{m(P,M)},type:"page",page:M,selected:M===p,disabled:o,"aria-current":M===p?"page":void 0}:{onClick:P=>{m(P,D(M))},type:M,page:D(M),selected:!1,disabled:o||!M.includes("ellipsis")&&(M==="next"||M==="last"?p>=i:p<=1)}),...f}}function K9i(e){return kr("MuiPaginationItem",e)}var Y9i=Ir("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Bm=Y9i,Q9i=ho(S.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Z9i=ho(S.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),X9i=ho(S.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),J9i=ho(S.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),wbn=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${gn(n.size)}`],n.variant==="text"&&t[`text${gn(n.color)}`],n.variant==="outlined"&&t[`outlined${gn(n.color)}`],n.shape==="rounded"&&t.rounded,n.type==="page"&&t.page,(n.type==="start-ellipsis"||n.type==="end-ellipsis")&&t.ellipsis,(n.type==="previous"||n.type==="next")&&t.previousNext,(n.type==="first"||n.type==="last")&&t.firstLast]},e7i=e=>{const{classes:t,color:n,disabled:i,selected:r,size:o,shape:s,type:a,variant:l}=e,c={root:["root",`size${gn(o)}`,l,s,n!=="standard"&&`color${gn(n)}`,n!=="standard"&&`${l}${gn(n)}`,i&&"disabled",r&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[a]],icon:["icon"]};return Lr(c,K9i,t)},t7i=Mt("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:wbn})(gr(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${Bm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),n7i=Mt(vg,{name:"MuiPaginationItem",slot:"Root",overridesResolver:wbn})(gr(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${Bm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Bm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Bm.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Bm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Bm.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Bm.selected}`]:{[`&.${Bm.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${Bm.selected}`]:{[`&.${Bm.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter($a(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${Bm.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${Bm.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${Bm.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter($a(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${Bm.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:pr(e.palette[t].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:pr(e.palette[t].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pr(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Bm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pr(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}}}}))]}))),i7i=Mt("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(gr(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),r7i=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiPaginationItem"}),{className:r,color:o="standard",component:s,components:a={},disabled:l=!1,page:c,selected:u=!1,shape:d="circular",size:h="medium",slots:f={},slotProps:p={},type:g="page",variant:m="text",...v}=i,y={...i,color:o,disabled:l,selected:u,shape:d,size:h,type:g,variant:m},b=Ph(),w=e7i(y),E={slots:{previous:f.previous??a.previous,next:f.next??a.next,first:f.first??a.first,last:f.last??a.last},slotProps:p},[A,D]=wo("previous",{elementType:X9i,externalForwardedProps:E,ownerState:y}),[T,M]=wo("next",{elementType:J9i,externalForwardedProps:E,ownerState:y}),[P,F]=wo("first",{elementType:Q9i,externalForwardedProps:E,ownerState:y}),[N,j]=wo("last",{elementType:Z9i,externalForwardedProps:E,ownerState:y}),W=b?{previous:"next",next:"previous",first:"last",last:"first"}[g]:g,J={previous:A,next:T,first:P,last:N}[W],ee={previous:D,next:M,first:F,last:j}[W];return g==="start-ellipsis"||g==="end-ellipsis"?S.jsx(t7i,{ref:n,ownerState:y,className:Nn(w.root,r),children:"…"}):S.jsxs(n7i,{ref:n,ownerState:y,component:s,disabled:l,className:Nn(w.root,r),...v,children:[g==="page"&&c,J?S.jsx(i7i,{...ee,className:w.icon,as:J}):null]})}),Cbn=r7i,o7i=e=>{const{classes:t,variant:n}=e;return Lr({root:["root",n],ul:["ul"]},q9i,t)},s7i=Mt("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),a7i=Mt("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function l7i(e,t,n){return e==="page"?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}var c7i=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiPagination"}),{boundaryCount:r=1,className:o,color:s="standard",count:a=1,defaultPage:l=1,disabled:c=!1,getItemAriaLabel:u=l7i,hideNextButton:d=!1,hidePrevButton:h=!1,onChange:f,page:p,renderItem:g=P=>S.jsx(Cbn,{...P}),shape:m="circular",showFirstButton:v=!1,showLastButton:y=!1,siblingCount:b=1,size:w="medium",variant:E="text",...A}=i,{items:D}=G9i({...i,componentName:"Pagination"}),T={...i,boundaryCount:r,color:s,count:a,defaultPage:l,disabled:c,getItemAriaLabel:u,hideNextButton:d,hidePrevButton:h,renderItem:g,shape:m,showFirstButton:v,showLastButton:y,siblingCount:b,size:w,variant:E},M=o7i(T);return S.jsx(s7i,{"aria-label":"pagination navigation",className:Nn(M.root,o),ownerState:T,ref:n,...A,children:S.jsx(a7i,{className:M.ul,ownerState:T,children:D.map((P,F)=>S.jsx("li",{children:g({...P,color:s,"aria-label":u(P.type,P.page,P.selected),shape:m,size:w,variant:E})},F))})})}),u7i=c7i,d7i=ho(S.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),h7i=ho(S.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),f7i=Mt("span",{name:"MuiRadioButtonIcon",shouldForwardProp:kg})({position:"relative",display:"flex"}),p7i=Mt(d7i,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),g7i=Mt(h7i,{name:"MuiRadioButtonIcon"})(gr(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function m7i(e){const{checked:t=!1,classes:n={},fontSize:i}=e,r={...e,checked:t};return S.jsxs(f7i,{className:n.root,ownerState:r,children:[S.jsx(p7i,{fontSize:i,className:n.background,ownerState:r}),S.jsx(g7i,{fontSize:i,className:n.dot,ownerState:r})]})}var Sbn=m7i,v7i=I.createContext(void 0),y7i=v7i;function b7i(){return I.useContext(y7i)}function _7i(e){return kr("MuiRadio",e)}var w7i=Ir("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),oOt=w7i,C7i=e=>{const{classes:t,color:n,size:i}=e,r={root:["root",`color${gn(n)}`,i!=="medium"&&`size${gn(i)}`]};return{...t,...Lr(r,_7i,t)}},S7i=Mt(JQe,{shouldForwardProp:e=>kg(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${gn(n.size)}`],t[`color${gn(n.color)}`]]}})(gr(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${oOt.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter($a()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter($a()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${oOt.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function x7i(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}var E7i=S.jsx(Sbn,{checked:!0}),A7i=S.jsx(Sbn,{}),D7i=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiRadio"}),{checked:r,checkedIcon:o=E7i,color:s="primary",icon:a=A7i,name:l,onChange:c,size:u="medium",className:d,disabled:h,disableRipple:f=!1,slots:p={},slotProps:g={},inputProps:m,...v}=i,y=ty();let b=h;y&&typeof b>"u"&&(b=y.disabled),b??=!1;const w={...i,disabled:b,disableRipple:f,color:s,size:u},E=C7i(w),A=b7i();let D=r;const T=XAi(c,A&&A.onChange);let M=l;A&&(typeof D>"u"&&(D=x7i(A.value,i.value)),typeof M>"u"&&(M=A.name));const P=g.input??m,[F,N]=wo("root",{ref:n,elementType:S7i,className:Nn(E.root,d),shouldForwardComponentProp:!0,externalForwardedProps:{slots:p,slotProps:g,...v},getSlotProps:j=>({...j,onChange:(W,...J)=>{j.onChange?.(W,...J),T(W,...J)}}),ownerState:w,additionalProps:{type:"radio",icon:I.cloneElement(a,{fontSize:a.props.fontSize??u}),checkedIcon:I.cloneElement(o,{fontSize:o.props.fontSize??u}),disabled:b,name:M,checked:D,slots:p,slotProps:{input:typeof P=="function"?P(w):P}}});return S.jsx(F,{...N,classes:E})}),T7i=D7i;function k7i(e,t,n=(i,r)=>i===r){return e.length===t.length&&e.every((i,r)=>n(i,t[r]))}var I7i=k7i,L7i=2;function K4(e,t,n,i,r){return n===1?Math.min(e+t,r):Math.max(e-t,i)}function xbn(e,t){return e-t}function sOt(e,t){const{index:n}=e.reduce((i,r,o)=>{const s=Math.abs(t-r);return i===null||s<i.distance||s===i.distance?{distance:s,index:o}:i},null)??{};return n}function Iie(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let i=0;i<n.changedTouches.length;i+=1){const r=n.changedTouches[i];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function $he(e,t,n){return(e-t)*100/(n-t)}function N7i(e,t,n){return(n-t)*e+t}function P7i(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),i=n[0].split(".")[1];return(i?i.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function M7i(e,t,n){const i=Math.round((e-n)/t)*t+n;return Number(i.toFixed(P7i(t)))}function aOt({values:e,newValue:t,index:n}){const i=e.slice();return i[n]=t,i.sort(xbn)}function Lie({sliderRef:e,activeIndex:t,setActive:n}){const i=gg(e.current);(!e.current?.contains(i.activeElement)||Number(i?.activeElement?.getAttribute("data-index"))!==t)&&e.current?.querySelector(`[type="range"][data-index="${t}"]`).focus(),n&&n(t)}function Nie(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?I7i(e,t):!1}var O7i={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},R7i=e=>e,Pie;function lOt(){return Pie===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Pie=CSS.supports("touch-action","none"):Pie=!0),Pie}function F7i(e){const{"aria-labelledby":t,defaultValue:n,disabled:i=!1,disableSwap:r=!1,isRtl:o=!1,marks:s=!1,max:a=100,min:l=0,name:c,onChange:u,onChangeCommitted:d,orientation:h="horizontal",rootRef:f,scale:p=R7i,step:g=1,shiftStep:m=10,tabIndex:v,value:y}=e,b=I.useRef(void 0),[w,E]=I.useState(-1),[A,D]=I.useState(-1),[T,M]=I.useState(!1),P=I.useRef(0),F=I.useRef(null),[N,j]=b8({controlled:y,default:n??l,name:"Slider"}),W=u&&((et,ut,wt)=>{const pt=et.nativeEvent||et,_t=new pt.constructor(pt.type,pt);Object.defineProperty(_t,"target",{writable:!0,value:{value:ut,name:c}}),F.current=ut,u(_t,ut,wt)}),J=Array.isArray(N);let ee=J?N.slice().sort(xbn):[N];ee=ee.map(et=>et==null?l:$B(et,l,a));const Q=s===!0&&g!==null?[...Array(Math.floor((a-l)/g)+1)].map((et,ut)=>({value:l+g*ut})):s||[],H=Q.map(et=>et.value),[q,le]=I.useState(-1),Y=I.useRef(null),G=LC(f,Y),pe=et=>ut=>{const wt=Number(ut.currentTarget.getAttribute("data-index"));XL(ut.target)&&le(wt),D(wt),et?.onFocus?.(ut)},U=et=>ut=>{XL(ut.target)||le(-1),D(-1),et?.onBlur?.(ut)},K=(et,ut)=>{const wt=Number(et.currentTarget.getAttribute("data-index")),pt=ee[wt],_t=H.indexOf(pt);let Rt=ut;if(Q&&g==null){const Yt=H[H.length-1];Rt>=Yt?Rt=Yt:Rt<=H[0]?Rt=H[0]:Rt=Rt<pt?H[_t-1]:H[_t+1]}if(Rt=$B(Rt,l,a),J){r&&(Rt=$B(Rt,ee[wt-1]||-1/0,ee[wt+1]||1/0));const Yt=Rt;Rt=aOt({values:ee,newValue:Rt,index:wt});let Ut=wt;r||(Ut=Rt.indexOf(Yt)),Lie({sliderRef:Y,activeIndex:Ut})}j(Rt),le(wt),W&&!Nie(Rt,N)&&W(et,Rt,wt),d&&d(et,F.current??Rt)},ie=et=>ut=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(ut.key)){ut.preventDefault();const wt=Number(ut.currentTarget.getAttribute("data-index")),pt=ee[wt];let _t=null;if(g!=null){const Rt=ut.shiftKey?m:g;switch(ut.key){case"ArrowUp":_t=K4(pt,Rt,1,l,a);break;case"ArrowRight":_t=K4(pt,Rt,o?-1:1,l,a);break;case"ArrowDown":_t=K4(pt,Rt,-1,l,a);break;case"ArrowLeft":_t=K4(pt,Rt,o?1:-1,l,a);break;case"PageUp":_t=K4(pt,m,1,l,a);break;case"PageDown":_t=K4(pt,m,-1,l,a);break;case"Home":_t=l;break;case"End":_t=a;break}}else if(Q){const Rt=H[H.length-1],Yt=H.indexOf(pt),Ut=[o?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Gt=[o?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Ut.includes(ut.key)?Yt===0?_t=H[0]:_t=H[Yt-1]:Gt.includes(ut.key)&&(Yt===H.length-1?_t=Rt:_t=H[Yt+1])}_t!=null&&K(ut,_t)}et?.onKeyDown?.(ut)};sw(()=>{i&&Y.current.contains(document.activeElement)&&document.activeElement?.blur()},[i]),i&&w!==-1&&E(-1),i&&q!==-1&&le(-1);const ce=et=>ut=>{et.onChange?.(ut),K(ut,ut.target.valueAsNumber)},de=I.useRef(void 0);let oe=h;o&&h==="horizontal"&&(oe+="-reverse");const me=({finger:et,move:ut=!1})=>{const{current:wt}=Y,{width:pt,height:_t,bottom:Rt,left:Yt}=wt.getBoundingClientRect();let Ut;oe.startsWith("vertical")?Ut=(Rt-et.y)/_t:Ut=(et.x-Yt)/pt,oe.includes("-reverse")&&(Ut=1-Ut);let Gt;if(Gt=N7i(Ut,l,a),g)Gt=M7i(Gt,g,l);else{const ln=sOt(H,Gt);Gt=H[ln]}Gt=$B(Gt,l,a);let Kt=0;if(J){ut?Kt=de.current:Kt=sOt(ee,Gt),r&&(Gt=$B(Gt,ee[Kt-1]||-1/0,ee[Kt+1]||1/0));const ln=Gt;Gt=aOt({values:ee,newValue:Gt,index:Kt}),r&&ut||(Kt=Gt.indexOf(ln),de.current=Kt)}return{newValue:Gt,activeIndex:Kt}},Ce=F_(et=>{const ut=Iie(et,b);if(!ut)return;if(P.current+=1,et.type==="mousemove"&&et.buttons===0){Se(et);return}const{newValue:wt,activeIndex:pt}=me({finger:ut,move:!0});Lie({sliderRef:Y,activeIndex:pt,setActive:E}),j(wt),!T&&P.current>L7i&&M(!0),W&&!Nie(wt,N)&&W(et,wt,pt)}),Se=F_(et=>{const ut=Iie(et,b);if(M(!1),!ut)return;const{newValue:wt}=me({finger:ut,move:!0});E(-1),et.type==="touchend"&&D(-1),d&&d(et,F.current??wt),b.current=void 0,Me()}),De=F_(et=>{if(i)return;lOt()||et.preventDefault();const ut=et.changedTouches[0];ut!=null&&(b.current=ut.identifier);const wt=Iie(et,b);if(wt!==!1){const{newValue:_t,activeIndex:Rt}=me({finger:wt});Lie({sliderRef:Y,activeIndex:Rt,setActive:E}),j(_t),W&&!Nie(_t,N)&&W(et,_t,Rt)}P.current=0;const pt=gg(Y.current);pt.addEventListener("touchmove",Ce,{passive:!0}),pt.addEventListener("touchend",Se,{passive:!0})}),Me=I.useCallback(()=>{const et=gg(Y.current);et.removeEventListener("mousemove",Ce),et.removeEventListener("mouseup",Se),et.removeEventListener("touchmove",Ce),et.removeEventListener("touchend",Se)},[Se,Ce]);I.useEffect(()=>{const{current:et}=Y;return et.addEventListener("touchstart",De,{passive:lOt()}),()=>{et.removeEventListener("touchstart",De),Me()}},[Me,De]),I.useEffect(()=>{i&&Me()},[i,Me]);const qe=et=>ut=>{if(et.onMouseDown?.(ut),i||ut.defaultPrevented||ut.button!==0)return;ut.preventDefault();const wt=Iie(ut,b);if(wt!==!1){const{newValue:_t,activeIndex:Rt}=me({finger:wt});Lie({sliderRef:Y,activeIndex:Rt,setActive:E}),j(_t),W&&!Nie(_t,N)&&W(ut,_t,Rt)}P.current=0;const pt=gg(Y.current);pt.addEventListener("mousemove",Ce,{passive:!0}),pt.addEventListener("mouseup",Se)},$=$he(J?ee[0]:l,l,a),he=$he(ee[ee.length-1],l,a)-$,Ie=(et={})=>{const ut=q$(et),wt={onMouseDown:qe(ut||{})},pt={...ut,...wt};return{...et,ref:G,...pt}},Be=et=>ut=>{et.onMouseOver?.(ut);const wt=Number(ut.currentTarget.getAttribute("data-index"));D(wt)},ze=et=>ut=>{et.onMouseLeave?.(ut),D(-1)},Ye=(et={})=>{const ut=q$(et),wt={onMouseOver:Be(ut||{}),onMouseLeave:ze(ut||{})};return{...et,...ut,...wt}},it=et=>({pointerEvents:w!==-1&&w!==et?"none":void 0});let ft;return h==="vertical"&&(ft=o?"vertical-rl":"vertical-lr"),{active:w,axis:oe,axisProps:O7i,dragging:T,focusedThumbIndex:q,getHiddenInputProps:(et={})=>{const ut=q$(et),wt={onChange:ce(ut||{}),onFocus:pe(ut||{}),onBlur:U(ut||{}),onKeyDown:ie(ut||{})},pt={...ut,...wt};return{tabIndex:v,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":p(a),"aria-valuemin":p(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:i,...et,...pt,style:{...yxi,direction:o?"rtl":"ltr",width:"100%",height:"100%",writingMode:ft}}},getRootProps:Ie,getThumbProps:Ye,marks:Q,open:A,range:J,rootRef:G,trackLeap:he,trackOffset:$,values:ee,getThumbStyle:it}}var B7i=e=>!e||!kD(e),j7i=B7i;function z7i(e){return kr("MuiSlider",e)}var V7i=Ir("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),B_=V7i,H7i=e=>{const{open:t}=e;return{offset:Nn(t&&B_.valueLabelOpen),circle:B_.valueLabelCircle,label:B_.valueLabelLabel}};function W7i(e){const{children:t,className:n,value:i}=e,r=H7i(e);return t?I.cloneElement(t,{className:Nn(t.props.className)},S.jsxs(I.Fragment,{children:[t.props.children,S.jsx("span",{className:Nn(r.offset,n),"aria-hidden":!0,children:S.jsx("span",{className:r.circle,children:S.jsx("span",{className:r.label,children:i})})})]})):null}function cOt(e){return e}var U7i=Mt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${gn(n.color)}`],n.size!=="medium"&&t[`size${gn(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(gr(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${B_.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${B_.dragging}`]:{[`& .${B_.thumb}, & .${B_.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter($a()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),$7i=Mt("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),q7i=Mt("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(gr(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter($a()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:P0(e.palette[t].main,.62),borderColor:P0(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:fb(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:fb(e.palette[t].main,.5)})}}}))]}))),G7i=Mt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${gn(n.color)}`],n.size!=="medium"&&t[`thumbSize${gn(n.size)}`]]}})(gr(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${B_.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter($a()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${B_.focusVisible}`]:{...e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${pr(e.palette[t].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${B_.active}`]:{...e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${pr(e.palette[t].main,.16)}`}}}}))]}))),K7i=Mt(W7i,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(gr(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${B_.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${B_.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),Y7i=Mt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>f0e(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(gr(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),Q7i=Mt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>f0e(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(gr(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),Z7i=e=>{const{disabled:t,dragging:n,marked:i,orientation:r,track:o,classes:s,color:a,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",i&&"marked",r==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",a&&`color${gn(a)}`,l&&`size${gn(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${gn(l)}`,a&&`thumbColor${gn(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Lr(c,z7i,s)},X7i=({children:e})=>e,J7i=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiSlider"}),r=Ph(),{"aria-label":o,"aria-valuetext":s,"aria-labelledby":a,component:l="span",components:c={},componentsProps:u={},color:d="primary",classes:h,className:f,disableSwap:p=!1,disabled:g=!1,getAriaLabel:m,getAriaValueText:v,marks:y=!1,max:b=100,min:w=0,name:E,onChange:A,onChangeCommitted:D,orientation:T="horizontal",shiftStep:M=10,size:P="medium",step:F=1,scale:N=cOt,slotProps:j,slots:W,tabIndex:J,track:ee="normal",value:Q,valueLabelDisplay:H="off",valueLabelFormat:q=cOt,...le}=i,Y={...i,isRtl:r,max:b,min:w,classes:h,disabled:g,disableSwap:p,orientation:T,marks:y,color:d,size:P,step:F,shiftStep:M,scale:N,track:ee,valueLabelDisplay:H,valueLabelFormat:q},{axisProps:G,getRootProps:pe,getHiddenInputProps:U,getThumbProps:K,open:ie,active:ce,axis:de,focusedThumbIndex:oe,range:me,dragging:Ce,marks:Se,values:De,trackOffset:Me,trackLeap:qe,getThumbStyle:$}=F7i({...Y,rootRef:n});Y.marked=Se.length>0&&Se.some(ke=>ke.label),Y.dragging=Ce,Y.focusedThumbIndex=oe;const he=Z7i(Y),Ie=W?.root??c.Root??U7i,Be=W?.rail??c.Rail??$7i,ze=W?.track??c.Track??q7i,Ye=W?.thumb??c.Thumb??G7i,it=W?.valueLabel??c.ValueLabel??K7i,ft=W?.mark??c.Mark??Y7i,ct=W?.markLabel??c.MarkLabel??Q7i,et=W?.input??c.Input??"input",ut=j?.root??u.root,wt=j?.rail??u.rail,pt=j?.track??u.track,_t=j?.thumb??u.thumb,Rt=j?.valueLabel??u.valueLabel,Yt=j?.mark??u.mark,Ut=j?.markLabel??u.markLabel,Gt=j?.input??u.input,Kt=Xm({elementType:Ie,getSlotProps:pe,externalSlotProps:ut,externalForwardedProps:le,additionalProps:{...j7i(Ie)&&{as:l}},ownerState:{...Y,...ut?.ownerState},className:[he.root,f]}),ln=Xm({elementType:Be,externalSlotProps:wt,ownerState:Y,className:he.rail}),pn=Xm({elementType:ze,externalSlotProps:pt,additionalProps:{style:{...G[de].offset(Me),...G[de].leap(qe)}},ownerState:{...Y,...pt?.ownerState},className:he.track}),wn=Xm({elementType:Ye,getSlotProps:K,externalSlotProps:_t,ownerState:{...Y,..._t?.ownerState},className:he.thumb}),Mn=Xm({elementType:it,externalSlotProps:Rt,ownerState:{...Y,...Rt?.ownerState},className:he.valueLabel}),Yn=Xm({elementType:ft,externalSlotProps:Yt,ownerState:Y,className:he.mark}),di=Xm({elementType:ct,externalSlotProps:Ut,ownerState:Y,className:he.markLabel}),Li=Xm({elementType:et,getSlotProps:U,externalSlotProps:Gt,ownerState:Y});return S.jsxs(Ie,{...Kt,children:[S.jsx(Be,{...ln}),S.jsx(ze,{...pn}),Se.filter(ke=>ke.value>=w&&ke.value<=b).map((ke,Z)=>{const ne=$he(ke.value,w,b),V=G[de].offset(ne);let re;return ee===!1?re=De.includes(ke.value):re=ee==="normal"&&(me?ke.value>=De[0]&&ke.value<=De[De.length-1]:ke.value<=De[0])||ee==="inverted"&&(me?ke.value<=De[0]||ke.value>=De[De.length-1]:ke.value>=De[0]),S.jsxs(I.Fragment,{children:[S.jsx(ft,{"data-index":Z,...Yn,...!kD(ft)&&{markActive:re},style:{...V,...Yn.style},className:Nn(Yn.className,re&&he.markActive)}),ke.label!=null?S.jsx(ct,{"aria-hidden":!0,"data-index":Z,...di,...!kD(ct)&&{markLabelActive:re},style:{...V,...di.style},className:Nn(he.markLabel,di.className,re&&he.markLabelActive),children:ke.label}):null]},Z)}),De.map((ke,Z)=>{const ne=$he(ke,w,b),V=G[de].offset(ne),re=H==="off"?X7i:it;return S.jsx(re,{...!kD(re)&&{valueLabelFormat:q,valueLabelDisplay:H,value:typeof q=="function"?q(N(ke),Z):q,index:Z,open:ie===Z||ce===Z||H==="on",disabled:g},...Mn,children:S.jsx(Ye,{"data-index":Z,...wn,className:Nn(he.thumb,wn.className,ce===Z&&he.active,oe===Z&&he.focusVisible),style:{...V,...$(Z),...wn.style},children:S.jsx(et,{"data-index":Z,"aria-label":m?m(Z):o,"aria-valuenow":N(ke),"aria-labelledby":a,"aria-valuetext":v?v(N(ke),Z):s,value:De[Z],...Li})})},Z)})]})}),Ebn=J7i;function eji(e){return kr("MuiTooltip",e)}var tji=Ir("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Md=tji;function nji(e){return Math.round(e*1e5)/1e5}var iji=e=>{const{classes:t,disableInteractive:n,arrow:i,touch:r,placement:o}=e,s={popper:["popper",!n&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",r&&"touch",`tooltipPlacement${gn(o.split("-")[0])}`],arrow:["arrow"]};return Lr(s,eji,t)},rji=Mt(yj,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(gr(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Md.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Md.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Md.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Md.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Md.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Md.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Md.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Md.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),oji=Mt("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${gn(n.placement.split("-")[0])}`]]}})(gr(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:pr(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Md.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Md.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Md.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Md.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${nji(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Md.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Md.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Md.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Md.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Md.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Md.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Md.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Md.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Md.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Md.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),sji=Mt("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(gr(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:pr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}))),Mie=!1,uOt=new $vn,Q3={x:0,y:0};function Oie(e,t){return(n,...i)=>{t&&t(n,...i),e(n,...i)}}var aji=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiTooltip"}),{arrow:r=!1,children:o,classes:s,components:a={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:h=!1,disableTouchListener:f=!1,enterDelay:p=100,enterNextDelay:g=0,enterTouchDelay:m=700,followCursor:v=!1,id:y,leaveDelay:b=0,leaveTouchDelay:w=1500,onClose:E,onOpen:A,open:D,placement:T="bottom",PopperComponent:M,PopperProps:P={},slotProps:F={},slots:N={},title:j,TransitionComponent:W,TransitionProps:J,...ee}=i,Q=I.isValidElement(o)?o:S.jsx("span",{children:o}),H=cl(),q=Ph(),[le,Y]=I.useState(),[G,pe]=I.useState(null),U=I.useRef(!1),K=h||v,ie=YO(),ce=YO(),de=YO(),oe=YO(),[me,Ce]=Mhe({controlled:D,default:!1,name:"Tooltip",state:"open"});let Se=me;const De=dQe(y),Me=I.useRef(),qe=AD(()=>{Me.current!==void 0&&(document.body.style.WebkitUserSelect=Me.current,Me.current=void 0),oe.clear()});I.useEffect(()=>qe,[qe]);const $=ge=>{uOt.clear(),Mie=!0,Ce(!0),A&&!Se&&A(ge)},he=AD(ge=>{uOt.start(800+b,()=>{Mie=!1}),Ce(!1),E&&Se&&E(ge),ie.start(H.transitions.duration.shortest,()=>{U.current=!1})}),Ie=ge=>{U.current&&ge.type!=="touchstart"||(le&&le.removeAttribute("title"),ce.clear(),de.clear(),p||Mie&&g?ce.start(Mie?g:p,()=>{$(ge)}):$(ge))},Be=ge=>{ce.clear(),de.start(b,()=>{he(ge)})},[,ze]=I.useState(!1),Ye=ge=>{XL(ge.target)||(ze(!1),Be(ge))},it=ge=>{le||Y(ge.currentTarget),XL(ge.target)&&(ze(!0),Ie(ge))},ft=ge=>{U.current=!0;const we=Q.props;we.onTouchStart&&we.onTouchStart(ge)},ct=ge=>{ft(ge),de.clear(),ie.clear(),qe(),Me.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",oe.start(m,()=>{document.body.style.WebkitUserSelect=Me.current,Ie(ge)})},et=ge=>{Q.props.onTouchEnd&&Q.props.onTouchEnd(ge),qe(),de.start(w,()=>{he(ge)})};I.useEffect(()=>{if(!Se)return;function ge(we){we.key==="Escape"&&he(we)}return document.addEventListener("keydown",ge),()=>{document.removeEventListener("keydown",ge)}},[he,Se]);const ut=pb(DF(Q),Y,n);!j&&j!==0&&(Se=!1);const wt=I.useRef(),pt=ge=>{const we=Q.props;we.onMouseMove&&we.onMouseMove(ge),Q3={x:ge.clientX,y:ge.clientY},wt.current&&wt.current.update()},_t={},Rt=typeof j=="string";c?(_t.title=!Se&&Rt&&!d?j:null,_t["aria-describedby"]=Se?De:null):(_t["aria-label"]=Rt?j:null,_t["aria-labelledby"]=Se&&!Rt?De:null);const Yt={..._t,...ee,...Q.props,className:Nn(ee.className,Q.props.className),onTouchStart:ft,ref:ut,...v?{onMouseMove:pt}:{}},Ut={};f||(Yt.onTouchStart=ct,Yt.onTouchEnd=et),d||(Yt.onMouseOver=Oie(Ie,Yt.onMouseOver),Yt.onMouseLeave=Oie(Be,Yt.onMouseLeave),K||(Ut.onMouseOver=Ie,Ut.onMouseLeave=Be)),u||(Yt.onFocus=Oie(it,Yt.onFocus),Yt.onBlur=Oie(Ye,Yt.onBlur),K||(Ut.onFocus=it,Ut.onBlur=Ye));const Gt={...i,isRtl:q,arrow:r,disableInteractive:K,placement:T,PopperComponentProp:M,touch:U.current},Kt=typeof F.popper=="function"?F.popper(Gt):F.popper,ln=I.useMemo(()=>{let ge=[{name:"arrow",enabled:!!G,options:{element:G,padding:4}}];return P.popperOptions?.modifiers&&(ge=ge.concat(P.popperOptions.modifiers)),Kt?.popperOptions?.modifiers&&(ge=ge.concat(Kt.popperOptions.modifiers)),{...P.popperOptions,...Kt?.popperOptions,modifiers:ge}},[G,P.popperOptions,Kt?.popperOptions]),pn=iji(Gt),wn=typeof F.transition=="function"?F.transition(Gt):F.transition,Mn={slots:{popper:a.Popper,transition:a.Transition??W,tooltip:a.Tooltip,arrow:a.Arrow,...N},slotProps:{arrow:F.arrow??l.arrow,popper:{...P,...Kt??l.popper},tooltip:F.tooltip??l.tooltip,transition:{...J,...wn??l.transition}}},[Yn,di]=wo("popper",{elementType:rji,externalForwardedProps:Mn,ownerState:Gt,className:Nn(pn.popper,P?.className)}),[Li,ke]=wo("transition",{elementType:VQ,externalForwardedProps:Mn,ownerState:Gt}),[Z,ne]=wo("tooltip",{elementType:oji,className:pn.tooltip,externalForwardedProps:Mn,ownerState:Gt}),[V,re]=wo("arrow",{elementType:sji,className:pn.arrow,externalForwardedProps:Mn,ownerState:Gt,ref:pe});return S.jsxs(I.Fragment,{children:[I.cloneElement(Q,Yt),S.jsx(Yn,{as:M??yj,placement:T,anchorEl:v?{getBoundingClientRect:()=>({top:Q3.y,left:Q3.x,right:Q3.x,bottom:Q3.y,width:0,height:0})}:le,popperRef:wt,open:le?Se:!1,id:De,transition:!0,...Ut,...di,popperOptions:ln,children:({TransitionProps:ge})=>S.jsx(Li,{timeout:H.transitions.duration.shorter,...ge,...ke,children:S.jsxs(Z,{...ne,children:[j,r?S.jsx(V,{...re}):null]})})})]})}),uo=aji,lji=pEi({createStyledComponent:Mt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Nr({props:e,name:"MuiStack"})}),wr=lji;function cji(e){return kr("MuiSwitch",e)}var uji=Ir("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),zm=uji,dji=e=>{const{classes:t,edge:n,size:i,color:r,checked:o,disabled:s}=e,a={root:["root",n&&`edge${gn(n)}`,`size${gn(i)}`],switchBase:["switchBase",`color${gn(r)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Lr(a,cji,t);return{...t,...l}},hji=Mt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${gn(n.edge)}`],t[`size${gn(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${zm.thumb}`]:{width:16,height:16},[`& .${zm.switchBase}`]:{padding:4,[`&.${zm.checked}`]:{transform:"translateX(16px)"}}}}]}),fji=Mt(JQe,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${zm.input}`]:t.input},n.color!=="default"&&t[`color${gn(n.color)}`]]}})(gr(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${zm.checked}`]:{transform:"translateX(20px)"},[`&.${zm.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${zm.checked} + .${zm.track}`]:{opacity:.5},[`&.${zm.disabled} + .${zm.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${zm.input}`]:{left:"-100%",width:"300%"}})),gr(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter($a(["light"])).map(([t])=>({props:{color:t},style:{[`&.${zm.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${zm.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?P0(e.palette[t].main,.62):fb(e.palette[t].main,.55)}`}},[`&.${zm.checked} + .${zm.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),pji=Mt("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(gr(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),gji=Mt("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(gr(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),mji=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiSwitch"}),{className:r,color:o="primary",edge:s=!1,size:a="medium",sx:l,slots:c={},slotProps:u={},...d}=i,h={...i,color:o,edge:s,size:a},f=dji(h),p={slots:c,slotProps:u},[g,m]=wo("root",{className:Nn(f.root,r),elementType:hji,externalForwardedProps:p,ownerState:h,additionalProps:{sx:l}}),[v,y]=wo("thumb",{className:f.thumb,elementType:gji,externalForwardedProps:p,ownerState:h}),b=S.jsx(v,{...y}),[w,E]=wo("track",{className:f.track,elementType:pji,externalForwardedProps:p,ownerState:h});return S.jsxs(g,{...m,children:[S.jsx(fji,{type:"checkbox",icon:b,checkedIcon:b,ref:n,ownerState:h,...d,classes:{...f,root:f.switchBase},slots:{...c.switchBase&&{root:c.switchBase},...c.input&&{input:c.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(h):u.switchBase},...u.input&&{input:typeof u.input=="function"?u.input(h):u.input}}}),S.jsx(w,{...E})]})}),vji=mji,yji=I.createContext(),Abn=yji;function bji(e){return kr("MuiTable",e)}Ir("MuiTable",["root","stickyHeader"]);var _ji=e=>{const{classes:t,stickyHeader:n}=e;return Lr({root:["root",n&&"stickyHeader"]},bji,t)},wji=Mt("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(gr(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),dOt="table",Cji=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiTable"}),{className:r,component:o=dOt,padding:s="normal",size:a="medium",stickyHeader:l=!1,...c}=i,u={...i,component:o,padding:s,size:a,stickyHeader:l},d=_ji(u),h=I.useMemo(()=>({padding:s,size:a,stickyHeader:l}),[s,a,l]);return S.jsx(Abn.Provider,{value:h,children:S.jsx(wji,{as:o,role:o===dOt?null:"table",ref:n,className:Nn(d.root,r),ownerState:u,...c})})}),_j=Cji,Sji=I.createContext(),QQ=Sji;function xji(e){return kr("MuiTableBody",e)}Ir("MuiTableBody",["root"]);var Eji=e=>{const{classes:t}=e;return Lr({root:["root"]},xji,t)},Aji=Mt("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Dji={variant:"body"},hOt="tbody",Tji=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiTableBody"}),{className:r,component:o=hOt,...s}=i,a={...i,component:o},l=Eji(a);return S.jsx(QQ.Provider,{value:Dji,children:S.jsx(Aji,{className:Nn(l.root,r),as:o,ref:n,role:o===hOt?null:"rowgroup",ownerState:a,...s})})}),pL=Tji;function kji(e){return kr("MuiTableCell",e)}var Iji=Ir("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),wj=Iji,Lji=e=>{const{classes:t,variant:n,align:i,padding:r,size:o,stickyHeader:s}=e,a={root:["root",n,s&&"stickyHeader",i!=="inherit"&&`align${gn(i)}`,r!=="normal"&&`padding${gn(r)}`,`size${gn(o)}`]};return Lr(a,kji,t)},Nji=Mt("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${gn(n.size)}`],n.padding!=="normal"&&t[`padding${gn(n.padding)}`],n.align!=="inherit"&&t[`align${gn(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(gr(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
    ${e.palette.mode==="light"?P0(pr(e.palette.divider,1),.88):fb(pr(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${wj.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Pji=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiTableCell"}),{align:r="inherit",className:o,component:s,padding:a,scope:l,size:c,sortDirection:u,variant:d,...h}=i,f=I.useContext(Abn),p=I.useContext(QQ),g=p&&p.variant==="head";let m;s?m=s:m=g?"th":"td";let v=l;m==="td"?v=void 0:!v&&g&&(v="col");const y=d||p&&p.variant,b={...i,align:r,component:m,padding:a||(f&&f.padding?f.padding:"normal"),size:c||(f&&f.size?f.size:"medium"),sortDirection:u,stickyHeader:y==="head"&&f&&f.stickyHeader,variant:y},w=Lji(b);let E=null;return u&&(E=u==="asc"?"ascending":"descending"),S.jsx(Nji,{as:m,ref:n,className:Nn(w.root,o),"aria-sort":E,scope:v,ownerState:b,...h})}),mu=Pji;function Mji(e){return kr("MuiTableContainer",e)}Ir("MuiTableContainer",["root"]);var Oji=e=>{const{classes:t}=e;return Lr({root:["root"]},Mji,t)},Rji=Mt("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Fji=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiTableContainer"}),{className:r,component:o="div",...s}=i,a={...i,component:o},l=Oji(a);return S.jsx(Rji,{ref:n,as:o,className:Nn(l.root,r),ownerState:a,...s})}),Bji=Fji;function jji(e){return kr("MuiTableFooter",e)}Ir("MuiTableFooter",["root"]);var zji=e=>{const{classes:t}=e;return Lr({root:["root"]},jji,t)},Vji=Mt("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),Hji={variant:"footer"},fOt="tfoot",Wji=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiTableFooter"}),{className:r,component:o=fOt,...s}=i,a={...i,component:o},l=zji(a);return S.jsx(QQ.Provider,{value:Hji,children:S.jsx(Vji,{as:o,className:Nn(l.root,r),ref:n,role:o===fOt?null:"rowgroup",ownerState:a,...s})})}),Uji=Wji;function $ji(e){return kr("MuiTableHead",e)}Ir("MuiTableHead",["root"]);var qji=e=>{const{classes:t}=e;return Lr({root:["root"]},$ji,t)},Gji=Mt("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Kji={variant:"head"},pOt="thead",Yji=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiTableHead"}),{className:r,component:o=pOt,...s}=i,a={...i,component:o},l=qji(a);return S.jsx(QQ.Provider,{value:Kji,children:S.jsx(Gji,{as:o,className:Nn(l.root,r),ref:n,role:o===pOt?null:"rowgroup",ownerState:a,...s})})}),Qji=Yji;function Zji(e){return kr("MuiTableRow",e)}var Xji=Ir("MuiTableRow",["root","selected","hover","head","footer"]),gOt=Xji,Jji=e=>{const{classes:t,selected:n,hover:i,head:r,footer:o}=e;return Lr({root:["root",n&&"selected",i&&"hover",r&&"head",o&&"footer"]},Zji,t)},ezi=Mt("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(gr(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${gOt.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${gOt.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),mOt="tr",tzi=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiTableRow"}),{className:r,component:o=mOt,hover:s=!1,selected:a=!1,...l}=i,c=I.useContext(QQ),u={...i,component:o,hover:s,selected:a,head:c&&c.variant==="head",footer:c&&c.variant==="footer"},d=Jji(u);return S.jsx(ezi,{as:o,ref:n,className:Nn(d.root,r),role:o===mOt?null:"row",ownerState:u,...l})}),bv=tzi,nzi=ho(S.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function izi(e){return kr("MuiTableSortLabel",e)}var rzi=Ir("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),iMe=rzi,ozi=e=>{const{classes:t,direction:n,active:i}=e,r={root:["root",i&&"active",`direction${gn(n)}`],icon:["icon",`iconDirection${gn(n)}`]};return Lr(r,izi,t)},szi=Mt(vg,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(gr(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${iMe.icon}`]:{opacity:.5}},[`&.${iMe.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${iMe.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),azi=Mt("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${gn(n.direction)}`]]}})(gr(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),lzi=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiTableSortLabel"}),{active:r=!1,children:o,className:s,direction:a="asc",hideSortIcon:l=!1,IconComponent:c=nzi,slots:u={},slotProps:d={},...h}=i,f={...i,active:r,direction:a,hideSortIcon:l,IconComponent:c},p=ozi(f),g={slots:u,slotProps:d},[m,v]=wo("root",{elementType:szi,externalForwardedProps:g,ownerState:f,className:Nn(p.root,s),ref:n}),[y,b]=wo("icon",{elementType:azi,externalForwardedProps:g,ownerState:f,className:p.icon});return S.jsxs(m,{disableRipple:!0,component:"span",...v,...h,children:[o,l&&!r?null:S.jsx(y,{as:c,...b})]})}),czi=lzi;function uzi(e){return kr("MuiToggleButton",e)}var dzi=Ir("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),ZO=dzi,hzi=I.createContext({}),Dbn=hzi,fzi=I.createContext(void 0),Tbn=fzi;function pzi(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}var gzi=e=>{const{classes:t,fullWidth:n,selected:i,disabled:r,size:o,color:s}=e,a={root:["root",i&&"selected",r&&"disabled",n&&"fullWidth",`size${gn(o)}`,s]};return Lr(a,uzi,t)},mzi=Mt(vg,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${gn(n.size)}`]]}})(gr(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${ZO.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${ZO.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.text.primary,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pr(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.text.primary,e.palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter($a()).map(([t])=>({props:{color:t},style:{[`&.${ZO.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette[t].main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pr(e.palette[t].main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette[t].main,e.palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),vzi=I.forwardRef(function(t,n){const{value:i,...r}=I.useContext(Dbn),o=I.useContext(Tbn),s=I9({...r,selected:pzi(t.value,i)},t),a=Nr({props:s,name:"MuiToggleButton"}),{children:l,className:c,color:u="standard",disabled:d=!1,disableFocusRipple:h=!1,fullWidth:f=!1,onChange:p,onClick:g,selected:m,size:v="medium",value:y,...b}=a,w={...a,color:u,disabled:d,disableFocusRipple:h,fullWidth:f,size:v},E=gzi(w),A=T=>{g&&(g(T,y),T.defaultPrevented)||p&&p(T,y)},D=o||"";return S.jsx(mzi,{className:Nn(r.className,E.root,c,D),disabled:d,focusRipple:!h,ref:n,onClick:A,onChange:p,value:y,ownerState:w,"aria-pressed":m,...b,children:l})}),qhe=vzi;function yzi(e){return kr("MuiToggleButtonGroup",e)}var bzi=Ir("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),Iu=bzi,_zi=e=>{const{classes:t,orientation:n,fullWidth:i,disabled:r}=e,o={root:["root",n,i&&"fullWidth"],grouped:["grouped",`grouped${gn(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Lr(o,yzi,t)},wzi=Mt("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Iu.grouped}`]:t.grouped},{[`& .${Iu.grouped}`]:t[`grouped${gn(n.orientation)}`]},{[`& .${Iu.firstButton}`]:t.firstButton},{[`& .${Iu.lastButton}`]:t.lastButton},{[`& .${Iu.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(gr(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${Iu.grouped}`]:{[`&.${Iu.selected} + .${Iu.grouped}.${Iu.selected}`]:{borderTop:0,marginTop:0}},[`& .${Iu.firstButton},& .${Iu.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Iu.lastButton},& .${Iu.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${Iu.lastButton}.${ZO.disabled},& .${Iu.middleButton}.${ZO.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${Iu.grouped}`]:{[`&.${Iu.selected} + .${Iu.grouped}.${Iu.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${Iu.firstButton},& .${Iu.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Iu.lastButton},& .${Iu.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${Iu.lastButton}.${ZO.disabled},& .${Iu.middleButton}.${ZO.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),Czi=I.forwardRef(function(t,n){const i=Nr({props:t,name:"MuiToggleButtonGroup"}),{children:r,className:o,color:s="standard",disabled:a=!1,exclusive:l=!1,fullWidth:c=!1,onChange:u,orientation:d="horizontal",size:h="medium",value:f,...p}=i,g={...i,disabled:a,fullWidth:c,orientation:d,size:h},m=_zi(g),v=I.useCallback((D,T)=>{if(!u)return;const M=f&&f.indexOf(T);let P;f&&M>=0?(P=f.slice(),P.splice(M,1)):P=f?f.concat(T):[T],u(D,P)},[u,f]),y=I.useCallback((D,T)=>{u&&u(D,f===T?null:T)},[u,f]),b=I.useMemo(()=>({className:m.grouped,onChange:l?y:v,value:f,size:h,fullWidth:c,color:s,disabled:a}),[m.grouped,l,y,v,f,h,c,s,a]),w=Kvn(r),E=w.length,A=D=>{const T=D===0,M=D===E-1;return T&&M?"":T?m.firstButton:M?m.lastButton:m.middleButton};return S.jsx(wzi,{role:"group",className:Nn(m.root,o),ref:n,ownerState:g,...p,children:S.jsx(Dbn.Provider,{value:b,children:w.map((D,T)=>S.jsx(Tbn.Provider,{value:A(T),children:D},T))})})}),kbn=Czi;function Szi({message:e,caption:t,sx:n}){return S.jsxs(D9i,{gridArea:"left",sx:{...n,height:500},children:[S.jsx(Xn,{sx:{fontWeight:"bold",fontSize:"18px",whiteSpace:"nowrap",textAlign:"center"},children:e}),S.jsx("br",{}),S.jsx(Xn,{sx:{whiteSpace:"nowrap",textAlign:"center"},children:t})]})}var xzi=["-","_"," ","[","]","{","}","(",")","<",">","|",":","/"],Ibn=e=>e?.fullPath===""?{success:!1,message:"Graph name cannot be empty"}:e!==void 0&&!e.fullPath.split("").every(t=>/[a-zA-Z0-9]/.test(t)||xzi.includes(t))?{success:!1,message:"Only alphanumeric and _ []{}()<>| characters are allowed"}:{success:!0,message:void 0};function Lbn(e,t){return[...Array.isArray(e)?e:[e??{}],...Array.isArray(t)?t:[t??{}]]}var rMe="Pometry";function O0e(e){I.useEffect(()=>(e?document.title=`${e} | ${rMe}`:document.title=rMe,()=>{document.title=rMe}),[e])}function k7e(e,t){return I.useMemo(()=>e??t,[t,e])}var Ezi=on(mN(),1);function k2(e){"@babel/helpers - typeof";return k2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k2(e)}function Azi(e,t){if(k2(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(k2(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nbn(e){var t=Azi(e,"string");return k2(t)=="symbol"?t:t+""}function _r(e,t,n){return(t=Nbn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vOt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function Ps(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vOt(Object(n),!0).forEach(function(i){_r(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vOt(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yOt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Nbn(i.key),i)}}function wi(e,t,n){return t&&yOt(e.prototype,t),n&&yOt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function I7e(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Dzi(e){if(Array.isArray(e))return I7e(e)}function Tzi(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nZe(e,t){if(e){if(typeof e=="string")return I7e(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I7e(e,t):void 0}}function kzi(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function va(e){return Dzi(e)||Tzi(e)||nZe(e)||kzi()}function $9(e){return $9=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$9(e)}function Pbn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pbn=function(){return!!e})()}function Izi(e,t){if(t&&(k2(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g0n(e)}function Hs(e,t,n){return t=$9(t),Izi(e,Pbn()?Reflect.construct(t,n||[],$9(e).constructor):t.apply(e,n))}function Ws(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ohe(e,t)}function Lzi(e){if(Array.isArray(e))return e}function Nzi(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(u){c=!0,r=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}function Pzi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function As(e,t){return Lzi(e)||Nzi(e,t)||nZe(e,t)||Pzi()}var Mzi=on(MMn(),1),Mbn=Mzi.default,gt=on(vN()),Wi=on(Pi());function Ozi(e,t){for(;!{}.hasOwnProperty.call(e,t)&&(e=$9(e))!==null;);return e}function L7e(){return L7e=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=Ozi(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},L7e.apply(null,arguments)}function bOt(e,t,n,i){var r=L7e($9(e.prototype),t,n);return typeof r=="function"?function(o){return r.apply(n,o)}:r}var vce=on(Pi()),oMe=on(vN());function ID(e,t,n,i){var r=e-n,o=t-i;return Math.sqrt(r*r+o*o)}function Obn(e,t){var n=Math.min.apply(Math,va(e)),i=Math.min.apply(Math,va(t)),r=Math.max.apply(Math,va(e)),o=Math.max.apply(Math,va(t));return{x:n,y:i,width:r-n,height:o-i}}function Rzi(e,t,n){return Math.atan(-t/e*Math.tan(n))}function Fzi(e,t,n){return Math.atan(t/(e*Math.tan(n)))}function Bzi(e,t,n,i,r,o){return n*Math.cos(r)*Math.cos(o)-i*Math.sin(r)*Math.sin(o)+e}function jzi(e,t,n,i,r,o){return n*Math.sin(r)*Math.cos(o)+i*Math.cos(r)*Math.sin(o)+t}function zzi(e,t,n,i,r,o,s){for(var a=Rzi(n,i,r),l=1/0,c=-1/0,u=[o,s],d=-Math.PI*2;d<=Math.PI*2;d+=Math.PI){var h=a+d;o<s?o<h&&h<s&&u.push(h):s<h&&h<o&&u.push(h)}for(var f=0;f<u.length;f++){var p=Bzi(e,t,n,i,r,u[f]);p<l&&(l=p),p>c&&(c=p)}for(var g=Fzi(n,i,r),m=1/0,v=-1/0,y=[o,s],b=-Math.PI*2;b<=Math.PI*2;b+=Math.PI){var w=g+b;o<s?o<w&&w<s&&y.push(w):s<w&&w<o&&y.push(w)}for(var E=0;E<y.length;E++){var A=jzi(e,t,n,i,r,y[E]);A<m&&(m=A),A>v&&(v=A)}return{x:l,y:m,width:c-l,height:v-m}}var Vzi=1e-4;function Rbn(e,t,n,i,r,o){var s=-1,a=1/0,l=[n,i],c=20;o&&o>200&&(c=o/10);for(var u=1/c,d=u/10,h=0;h<=c;h++){var f=h*u,p=[r.apply(void 0,va(e.concat([f]))),r.apply(void 0,va(t.concat([f])))],g=ID(l[0],l[1],p[0],p[1]);g<a&&(s=f,a=g)}if(s===0)return{x:e[0],y:t[0]};if(s===1){var m=e.length;return{x:e[m-1],y:t[m-1]}}a=1/0;for(var v=0;v<32&&!(d<Vzi);v++){var y=s-d,b=s+d,w=[r.apply(void 0,va(e.concat([y]))),r.apply(void 0,va(t.concat([y])))],E=ID(l[0],l[1],w[0],w[1]);if(y>=0&&E<a)s=y,a=E;else{var A=[r.apply(void 0,va(e.concat([b]))),r.apply(void 0,va(t.concat([b])))],D=ID(l[0],l[1],A[0],A[1]);b<=1&&D<a?(s=b,a=D):d*=.5}}return{x:r.apply(void 0,va(e.concat([s]))),y:r.apply(void 0,va(t.concat([s])))}}function Fbn(e,t,n,i){return ID(e,t,n,i)}function Bbn(e,t,n,i,r){return{x:(1-r)*e+r*n,y:(1-r)*t+r*i}}function Hzi(e,t,n,i,r,o){var s=[n-e,i-t];if(oMe.vec2.exactEquals(s,[0,0]))return Math.sqrt((r-e)*(r-e)+(o-t)*(o-t));var a=[-s[1],s[0]];oMe.vec2.normalize(a,a);var l=[r-e,o-t];return Math.abs(oMe.vec2.dot(l,a))}function N7e(e,t,n,i,r){var o=1-r;return o*o*o*e+3*t*r*o*o+3*n*r*r*o+i*r*r*r}function _Ot(e,t,n,i){var r=-3*e+9*t-9*n+3*i,o=6*e-12*t+6*n,s=3*t-3*e,a=[],l,c,u;if((0,vce.isNumberEqual)(r,0))(0,vce.isNumberEqual)(o,0)||(l=-s/o,l>=0&&l<=1&&a.push(l));else{var d=o*o-4*r*s;(0,vce.isNumberEqual)(d,0)?a.push(-o/(2*r)):d>0&&(u=Math.sqrt(d),l=(-o+u)/(2*r),c=(-o-u)/(2*r),l>=0&&l<=1&&a.push(l),c>=0&&c<=1&&a.push(c))}return a}function Wzi(e,t,n,i,r,o,s,a){for(var l=[e,s],c=[t,a],u=_Ot(e,n,r,s),d=_Ot(t,i,o,a),h=0;h<u.length;h++)l.push(N7e(e,n,r,s,u[h]));for(var f=0;f<d.length;f++)c.push(N7e(t,i,o,a,d[f]));return Obn(l,c)}function Uzi(e,t,n,i,r,o,s,a,l,c,u){return Rbn([e,n,r,s],[t,i,o,a],l,c,N7e,u)}function wOt(e,t,n,i,r,o,s,a,l,c,u){var d=Uzi(e,t,n,i,r,o,s,a,l,c,u);return ID(d.x,d.y,l,c)}function $zi(e){if(e.length<2)return 0;for(var t=0,n=0;n<e.length-1;n++){var i=e[n],r=e[n+1];t+=ID(i[0],i[1],r[0],r[1])}return t}function qzi(e){return $zi(e)}function P7e(e,t,n,i){var r=1-i;return r*r*e+2*i*r*t+i*i*n}function COt(e,t,n){var i=e+n-2*t;if((0,vce.isNumberEqual)(i,0))return[.5];var r=(e-t)/i;return r<=1&&r>=0?[r]:[]}function Gzi(e,t,n,i,r,o){var s=COt(e,n,r)[0],a=COt(t,i,o)[0],l=[e,r],c=[t,o];return s!==void 0&&l.push(P7e(e,n,r,s)),a!==void 0&&c.push(P7e(t,i,o,a)),Obn(l,c)}function Kzi(e,t,n,i,r,o,s,a){return Rbn([e,n,r],[t,i,o],s,a,P7e)}function Yzi(e,t,n,i,r,o,s,a){var l=Kzi(e,t,n,i,r,o,s,a);return ID(l.x,l.y,s,a)}function jbn(e,t){this.v=e,this.k=t}function em(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch{r=0}em=function(s,a,l,c){function u(d,h){em(s,d,function(f){return this._invoke(d,h,f)})}a?r?r(s,a,{value:l,enumerable:!c,configurable:!c,writable:!c}):s[a]=l:(u("next",0),u("throw",1),u("return",2))},em(e,t,n,i)}function iZe(){var e,t,n=typeof Symbol=="function"?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(f,p,g,m){var v=p&&p.prototype instanceof a?p:a,y=Object.create(v.prototype);return em(y,"_invoke",(function(b,w,E){var A,D,T,M=0,P=E||[],F=!1,N={p:0,n:0,v:e,a:j,f:j.bind(e,4),d:function(J,ee){return A=J,D=0,T=e,N.n=ee,s}};function j(W,J){for(D=W,T=J,t=0;!F&&M&&!ee&&t<P.length;t++){var ee,Q=P[t],H=N.p,q=Q[2];W>3?(ee=q===J)&&(T=Q[(D=Q[4])?5:(D=3,3)],Q[4]=Q[5]=e):Q[0]<=H&&((ee=W<2&&H<Q[1])?(D=0,N.v=J,N.n=Q[1]):H<q&&(ee=W<3||Q[0]>J||J>q)&&(Q[4]=W,Q[5]=J,N.n=q,D=0))}if(ee||W>1)return s;throw F=!0,J}return function(W,J,ee){if(M>1)throw TypeError("Generator is already running");for(F&&J===1&&j(J,ee),D=J,T=ee;(t=D<2?e:T)||!F;){A||(D?D<3?(D>1&&(N.n=-1),j(D,T)):N.n=T:N.v=T);try{if(M=2,A){if(D||(W="next"),t=A[W]){if(!(t=t.call(A,T)))throw TypeError("iterator result is not an object");if(!t.done)return t;T=t.value,D<2&&(D=0)}else D===1&&(t=A.return)&&t.call(A),D<2&&(T=TypeError("The iterator does not provide a '"+W+"' method"),D=1);A=e}else if((t=(F=N.n<0)?T:b.call(w,N))!==s)break}catch(Q){A=e,D=1,T=Q}finally{M=1}}return{value:t,done:F}}})(f,g,m),!0),y}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][i]?t(t([][i]())):(em(t={},i,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function h(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,c):(f.__proto__=c,em(f,r,"GeneratorFunction")),f.prototype=Object.create(d),f}return l.prototype=c,em(d,"constructor",c),em(c,"constructor",l),l.displayName="GeneratorFunction",em(c,r,"GeneratorFunction"),em(d),em(d,r,"Generator"),em(d,i,function(){return this}),em(d,"toString",function(){return"[object Generator]"}),(iZe=function(){return{w:o,m:h}})()}function Ghe(e,t){function n(r,o,s,a){try{var l=e[r](o),c=l.value;return c instanceof jbn?t.resolve(c.v).then(function(u){n("next",u,s,a)},function(u){n("throw",u,s,a)}):t.resolve(c).then(function(u){l.value=u,s(l)},function(u){return n("throw",u,s,a)})}catch(u){a(u)}}var i;this.next||(em(Ghe.prototype),em(Ghe.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),em(this,"_invoke",function(r,o,s){function a(){return new t(function(l,c){n(r,s,l,c)})}return i=i?i.then(a,a):a()},!0)}function zbn(e,t,n,i,r){return new Ghe(iZe().w(e,t,n,i),r||Promise)}function Qzi(e,t,n,i,r){var o=zbn(e,t,n,i,r);return o.next().then(function(s){return s.done?s.value:o.next()})}function Zzi(e){var t=Object(e),n=[];for(var i in t)n.unshift(i);return function r(){for(;n.length;)if((i=n.pop())in t)return r.value=i,r.done=!1,r;return r.done=!0,r}}function SOt(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(k2(e)+" is not iterable")}function wp(){var e=iZe(),t=e.m(wp),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function i(s){var a=typeof s=="function"&&s.constructor;return!!a&&(a===n||(a.displayName||a.name)==="GeneratorFunction")}var r={throw:1,return:2,break:3,continue:3};function o(s){var a,l;return function(c){a||(a={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(d,h){return l(c.a,r[d],h)},delegateYield:function(d,h,f){return a.resultName=h,l(c.d,SOt(d),f)},finish:function(d){return l(c.f,d)}},l=function(d,h,f){c.p=a.prev,c.n=a.next;try{return d(h,f)}finally{a.next=c.n}}),a.resultName&&(a[a.resultName]=c.v,a.resultName=void 0),a.sent=c.v,a.next=c.n;try{return s.call(this,a)}finally{c.p=a.prev,c.n=a.next}}}return(wp=function(){return{wrap:function(l,c,u,d){return e.w(o(l),c,u,d&&d.reverse())},isGeneratorFunction:i,mark:e.m,awrap:function(l,c){return new jbn(l,c)},AsyncIterator:Ghe,async:function(l,c,u,d,h){return(i(c)?zbn:Qzi)(o(l),c,u,d,h)},keys:Zzi,values:SOt}})()}function xOt(e,t,n,i,r,o,s){try{var a=e[o](s),l=a.value}catch(c){return void n(c)}a.done?t(l):Promise.resolve(l).then(i,r)}function nN(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function s(l){xOt(o,i,r,s,a,"next",l)}function a(l){xOt(o,i,r,s,a,"throw",l)}s(void 0)})}}function wO(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=nZe(e))||t){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(c){throw c},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return s=c.done,c},e:function(c){a=!0,o=c},f:function(){try{s||n.return==null||n.return()}finally{if(a)throw o}}}}function NF(e,t){if(e==null)return{};var n,i,r=zr(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Xzi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Vbn={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Xzi,function(){function n(E,A,D,T,M){i(E,A,D||0,T||E.length-1,M||o)}function i(E,A,D,T,M){for(;T>D;){if(T-D>600){var P=T-D+1,F=A-D+1,N=Math.log(P),j=.5*Math.exp(2*N/3),W=.5*Math.sqrt(N*j*(P-j)/P)*(F-P/2<0?-1:1),J=Math.max(D,Math.floor(A-F*j/P+W)),ee=Math.min(T,Math.floor(A+(P-F)*j/P+W));i(E,A,J,ee,M)}var Q=E[A],H=D,q=T;for(r(E,D,A),M(E[T],Q)>0&&r(E,D,T);H<q;){for(r(E,H,q),H++,q--;M(E[H],Q)<0;)H++;for(;M(E[q],Q)>0;)q--}M(E[D],Q)===0?r(E,D,q):(q++,r(E,q,T)),q<=A&&(D=q+1),A<=q&&(T=q-1)}}function r(E,A,D){var T=E[A];E[A]=E[D],E[D]=T}function o(E,A){return E<A?-1:E>A?1:0}var s=function(A){A===void 0&&(A=9),this._maxEntries=Math.max(4,A),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()};s.prototype.all=function(){return this._all(this.data,[])},s.prototype.search=function(A){var D=this.data,T=[];if(!y(A,D))return T;for(var M=this.toBBox,P=[];D;){for(var F=0;F<D.children.length;F++){var N=D.children[F],j=D.leaf?M(N):N;y(A,j)&&(D.leaf?T.push(N):v(A,j)?this._all(N,T):P.push(N))}D=P.pop()}return T},s.prototype.collides=function(A){var D=this.data;if(!y(A,D))return!1;for(var T=[];D;){for(var M=0;M<D.children.length;M++){var P=D.children[M],F=D.leaf?this.toBBox(P):P;if(y(A,F)){if(D.leaf||v(A,F))return!0;T.push(P)}}D=T.pop()}return!1},s.prototype.load=function(A){if(!(A&&A.length))return this;if(A.length<this._minEntries){for(var D=0;D<A.length;D++)this.insert(A[D]);return this}var T=this._build(A.slice(),0,A.length-1,0);if(!this.data.children.length)this.data=T;else if(this.data.height===T.height)this._splitRoot(this.data,T);else{if(this.data.height<T.height){var M=this.data;this.data=T,T=M}this._insert(T,this.data.height-T.height-1,!0)}return this},s.prototype.insert=function(A){return A&&this._insert(A,this.data.height-1),this},s.prototype.clear=function(){return this.data=b([]),this},s.prototype.remove=function(A,D){if(!A)return this;for(var T=this.data,M=this.toBBox(A),P=[],F=[],N,j,W;T||P.length;){if(T||(T=P.pop(),j=P[P.length-1],N=F.pop(),W=!0),T.leaf){var J=a(A,T.children,D);if(J!==-1)return T.children.splice(J,1),P.push(T),this._condense(P),this}!W&&!T.leaf&&v(T,M)?(P.push(T),F.push(N),N=0,j=T,T=T.children[0]):j?(N++,T=j.children[N],W=!1):T=null}return this},s.prototype.toBBox=function(A){return A},s.prototype.compareMinX=function(A,D){return A.minX-D.minX},s.prototype.compareMinY=function(A,D){return A.minY-D.minY},s.prototype.toJSON=function(){return this.data},s.prototype.fromJSON=function(A){return this.data=A,this},s.prototype._all=function(A,D){for(var T=[];A;)A.leaf?D.push.apply(D,A.children):T.push.apply(T,A.children),A=T.pop();return D},s.prototype._build=function(A,D,T,M){var P=T-D+1,F=this._maxEntries,N;if(P<=F)return N=b(A.slice(D,T+1)),l(N,this.toBBox),N;M||(M=Math.ceil(Math.log(P)/Math.log(F)),F=Math.ceil(P/Math.pow(F,M-1))),N=b([]),N.leaf=!1,N.height=M;var j=Math.ceil(P/F),W=j*Math.ceil(Math.sqrt(F));w(A,D,T,W,this.compareMinX);for(var J=D;J<=T;J+=W){var ee=Math.min(J+W-1,T);w(A,J,ee,j,this.compareMinY);for(var Q=J;Q<=ee;Q+=j){var H=Math.min(Q+j-1,ee);N.children.push(this._build(A,Q,H,M-1))}}return l(N,this.toBBox),N},s.prototype._chooseSubtree=function(A,D,T,M){for(;M.push(D),!(D.leaf||M.length-1===T);){for(var P=1/0,F=1/0,N=void 0,j=0;j<D.children.length;j++){var W=D.children[j],J=f(W),ee=g(A,W)-J;ee<F?(F=ee,P=J<P?J:P,N=W):ee===F&&J<P&&(P=J,N=W)}D=N||D.children[0]}return D},s.prototype._insert=function(A,D,T){var M=T?A:this.toBBox(A),P=[],F=this._chooseSubtree(M,this.data,D,P);for(F.children.push(A),u(F,M);D>=0&&P[D].children.length>this._maxEntries;)this._split(P,D),D--;this._adjustParentBBoxes(M,P,D)},s.prototype._split=function(A,D){var T=A[D],M=T.children.length,P=this._minEntries;this._chooseSplitAxis(T,P,M);var F=this._chooseSplitIndex(T,P,M),N=b(T.children.splice(F,T.children.length-F));N.height=T.height,N.leaf=T.leaf,l(T,this.toBBox),l(N,this.toBBox),D?A[D-1].children.push(N):this._splitRoot(T,N)},s.prototype._splitRoot=function(A,D){this.data=b([A,D]),this.data.height=A.height+1,this.data.leaf=!1,l(this.data,this.toBBox)},s.prototype._chooseSplitIndex=function(A,D,T){for(var M,P=1/0,F=1/0,N=D;N<=T-D;N++){var j=c(A,0,N,this.toBBox),W=c(A,N,T,this.toBBox),J=m(j,W),ee=f(j)+f(W);J<P?(P=J,M=N,F=ee<F?ee:F):J===P&&ee<F&&(F=ee,M=N)}return M||T-D},s.prototype._chooseSplitAxis=function(A,D,T){var M=A.leaf?this.compareMinX:d,P=A.leaf?this.compareMinY:h,F=this._allDistMargin(A,D,T,M),N=this._allDistMargin(A,D,T,P);F<N&&A.children.sort(M)},s.prototype._allDistMargin=function(A,D,T,M){A.children.sort(M);for(var P=this.toBBox,F=c(A,0,D,P),N=c(A,T-D,T,P),j=p(F)+p(N),W=D;W<T-D;W++){var J=A.children[W];u(F,A.leaf?P(J):J),j+=p(F)}for(var ee=T-D-1;ee>=D;ee--){var Q=A.children[ee];u(N,A.leaf?P(Q):Q),j+=p(N)}return j},s.prototype._adjustParentBBoxes=function(A,D,T){for(var M=T;M>=0;M--)u(D[M],A)},s.prototype._condense=function(A){for(var D=A.length-1,T=void 0;D>=0;D--)A[D].children.length===0?D>0?(T=A[D-1].children,T.splice(T.indexOf(A[D]),1)):this.clear():l(A[D],this.toBBox)};function a(E,A,D){if(!D)return A.indexOf(E);for(var T=0;T<A.length;T++)if(D(E,A[T]))return T;return-1}function l(E,A){c(E,0,E.children.length,A,E)}function c(E,A,D,T,M){M||(M=b(null)),M.minX=1/0,M.minY=1/0,M.maxX=-1/0,M.maxY=-1/0;for(var P=A;P<D;P++){var F=E.children[P];u(M,E.leaf?T(F):F)}return M}function u(E,A){return E.minX=Math.min(E.minX,A.minX),E.minY=Math.min(E.minY,A.minY),E.maxX=Math.max(E.maxX,A.maxX),E.maxY=Math.max(E.maxY,A.maxY),E}function d(E,A){return E.minX-A.minX}function h(E,A){return E.minY-A.minY}function f(E){return(E.maxX-E.minX)*(E.maxY-E.minY)}function p(E){return E.maxX-E.minX+(E.maxY-E.minY)}function g(E,A){return(Math.max(A.maxX,E.maxX)-Math.min(A.minX,E.minX))*(Math.max(A.maxY,E.maxY)-Math.min(A.minY,E.minY))}function m(E,A){var D=Math.max(E.minX,A.minX),T=Math.max(E.minY,A.minY),M=Math.min(E.maxX,A.maxX),P=Math.min(E.maxY,A.maxY);return Math.max(0,M-D)*Math.max(0,P-T)}function v(E,A){return E.minX<=A.minX&&E.minY<=A.minY&&A.maxX<=E.maxX&&A.maxY<=E.maxY}function y(E,A){return A.minX<=E.maxX&&A.minY<=E.maxY&&A.maxX>=E.minX&&A.maxY>=E.minY}function b(E){return{children:E,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function w(E,A,D,T,M){for(var P=[A,D];P.length;)if(D=P.pop(),A=P.pop(),!(D-A<=T)){var F=A+Math.ceil((D-A)/T/2)*T;n(E,F,A,D,M),P.push(A,F,F,D)}}return s})})(Vbn);var Jzi=Vbn.exports,qn=(function(e){return e.GROUP="g",e.FRAGMENT="fragment",e.CIRCLE="circle",e.ELLIPSE="ellipse",e.IMAGE="image",e.RECT="rect",e.LINE="line",e.POLYLINE="polyline",e.POLYGON="polygon",e.TEXT="text",e.PATH="path",e.HTML="html",e.MESH="mesh",e})({}),yce=(function(e){return e[e.ZERO=0]="ZERO",e[e.NEGATIVE_ONE=1]="NEGATIVE_ONE",e})({}),eP=(function(){function e(){_i(this,e),this.plugins=[]}return wi(e,[{key:"addRenderingPlugin",value:function(n){this.plugins.push(n),this.context.renderingPlugins.push(n)}},{key:"removeAllRenderingPlugins",value:function(){var n=this;this.plugins.forEach(function(i){var r=n.context.renderingPlugins.indexOf(i);r>=0&&n.context.renderingPlugins.splice(r,1)})}}])})(),eVi=(function(){function e(t){_i(this,e),this.clipSpaceNearZ=yce.NEGATIVE_ONE,this.plugins=[],this.config=Ps({enableDirtyCheck:!0,enableCulling:!1,enableAutoRendering:!0,enableDirtyRectangleRendering:!0,enableDirtyRectangleRenderingDebug:!1,enableSizeAttenuation:!0,enableRenderingOptimization:!1},t)}return wi(e,[{key:"registerPlugin",value:function(n){var i=this.plugins.findIndex(function(r){return r===n});i===-1&&this.plugins.push(n)}},{key:"unregisterPlugin",value:function(n){var i=this.plugins.findIndex(function(r){return r===n});i>-1&&this.plugins.splice(i,1)}},{key:"getPlugins",value:function(){return this.plugins}},{key:"getPlugin",value:function(n){return this.plugins.find(function(i){return i.name===n})}},{key:"getConfig",value:function(){return this.config}},{key:"setConfig",value:function(n){Object.assign(this.config,n)}}])})(),sMe=gt.vec3.add,Y4=gt.vec3.copy,tVi=gt.vec3.max,nVi=gt.vec3.min,EOt=gt.vec3.scale,aMe=gt.vec3.sub,mc=(function(){function e(){_i(this,e),this.center=[0,0,0],this.halfExtents=[0,0,0],this.min=[0,0,0],this.max=[0,0,0]}return wi(e,[{key:"update",value:function(n,i){Y4(this.center,n),Y4(this.halfExtents,i),aMe(this.min,this.center,this.halfExtents),sMe(this.max,this.center,this.halfExtents)}},{key:"setMinMax",value:function(n,i){sMe(this.center,i,n),EOt(this.center,this.center,.5),aMe(this.halfExtents,i,n),EOt(this.halfExtents,this.halfExtents,.5),Y4(this.min,n),Y4(this.max,i)}},{key:"getMin",value:function(){return this.min}},{key:"getMax",value:function(){return this.max}},{key:"add",value:function(n){if(!e.isEmpty(n)){if(e.isEmpty(this)){this.setMinMax(n.getMin(),n.getMax());return}var i=this.center,r=i[0],o=i[1],s=i[2],a=this.halfExtents,l=a[0],c=a[1],u=a[2],d=r-l,h=r+l,f=o-c,p=o+c,g=s-u,m=s+u,v=n.center,y=v[0],b=v[1],w=v[2],E=n.halfExtents,A=E[0],D=E[1],T=E[2],M=y-A,P=y+A,F=b-D,N=b+D,j=w-T,W=w+T;M<d&&(d=M),P>h&&(h=P),F<f&&(f=F),N>p&&(p=N),j<g&&(g=j),W>m&&(m=W),i[0]=(d+h)*.5,i[1]=(f+p)*.5,i[2]=(g+m)*.5,a[0]=(h-d)*.5,a[1]=(p-f)*.5,a[2]=(m-g)*.5,this.min[0]=d,this.min[1]=f,this.min[2]=g,this.max[0]=h,this.max[1]=p,this.max[2]=m}}},{key:"setFromTransformedAABB",value:function(n,i){var r=this.center,o=this.halfExtents,s=n.center,a=n.halfExtents,l=i[0],c=i[4],u=i[8],d=i[1],h=i[5],f=i[9],p=i[2],g=i[6],m=i[10],v=Math.abs(l),y=Math.abs(c),b=Math.abs(u),w=Math.abs(d),E=Math.abs(h),A=Math.abs(f),D=Math.abs(p),T=Math.abs(g),M=Math.abs(m);r[0]=i[12]+l*s[0]+c*s[1]+u*s[2],r[1]=i[13]+d*s[0]+h*s[1]+f*s[2],r[2]=i[14]+p*s[0]+g*s[1]+m*s[2],o[0]=v*a[0]+y*a[1]+b*a[2],o[1]=w*a[0]+E*a[1]+A*a[2],o[2]=D*a[0]+T*a[1]+M*a[2],aMe(this.min,r,o),sMe(this.max,r,o)}},{key:"intersects",value:function(n){var i=this.getMax(),r=this.getMin(),o=n.getMax(),s=n.getMin();return r[0]<=o[0]&&i[0]>=s[0]&&r[1]<=o[1]&&i[1]>=s[1]&&r[2]<=o[2]&&i[2]>=s[2]}},{key:"intersection",value:function(n){if(!this.intersects(n))return null;var i=new e,r=tVi([0,0,0],this.getMin(),n.getMin()),o=nVi([0,0,0],this.getMax(),n.getMax());return i.setMinMax(r,o),i}},{key:"getNegativeFarPoint",value:function(n){return n.pnVertexFlag===273?Y4([0,0,0],this.min):n.pnVertexFlag===272?[this.min[0],this.min[1],this.max[2]]:n.pnVertexFlag===257?[this.min[0],this.max[1],this.min[2]]:n.pnVertexFlag===256?[this.min[0],this.max[1],this.max[2]]:n.pnVertexFlag===17?[this.max[0],this.min[1],this.min[2]]:n.pnVertexFlag===16?[this.max[0],this.min[1],this.max[2]]:n.pnVertexFlag===1?[this.max[0],this.max[1],this.min[2]]:[this.max[0],this.max[1],this.max[2]]}},{key:"getPositiveFarPoint",value:function(n){return n.pnVertexFlag===273?Y4([0,0,0],this.max):n.pnVertexFlag===272?[this.max[0],this.max[1],this.min[2]]:n.pnVertexFlag===257?[this.max[0],this.min[1],this.max[2]]:n.pnVertexFlag===256?[this.max[0],this.min[1],this.min[2]]:n.pnVertexFlag===17?[this.min[0],this.max[1],this.max[2]]:n.pnVertexFlag===16?[this.min[0],this.max[1],this.min[2]]:n.pnVertexFlag===1?[this.min[0],this.min[1],this.max[2]]:[this.min[0],this.min[1],this.min[2]]}}],[{key:"isEmpty",value:function(n){return!n||n.halfExtents[0]===0&&n.halfExtents[1]===0&&n.halfExtents[2]===0}}])})(),iVi=(function(){function e(t,n){_i(this,e),this.distance=t||0,this.normal=n||gt.vec3.fromValues(0,1,0),this.updatePNVertexFlag()}return wi(e,[{key:"updatePNVertexFlag",value:function(){this.pnVertexFlag=(+(this.normal[0]>=0)<<8)+(+(this.normal[1]>=0)<<4)+ +(this.normal[2]>=0)}},{key:"distanceToPoint",value:function(n){return gt.vec3.dot(n,this.normal)-this.distance}},{key:"normalize",value:function(){var n=1/gt.vec3.len(this.normal);gt.vec3.scale(this.normal,this.normal,n),this.distance*=n}},{key:"intersectsLine",value:function(n,i,r){var o=this.distanceToPoint(n),s=this.distanceToPoint(i),a=o/(o-s),l=a>=0&&a<=1;return l&&r&&gt.vec3.lerp(r,n,i,a),l}}])})(),Q4=(function(e){return e[e.OUTSIDE=4294967295]="OUTSIDE",e[e.INSIDE=0]="INSIDE",e[e.INDETERMINATE=2147483647]="INDETERMINATE",e})({}),rVi=(function(){function e(t){if(_i(this,e),this.planes=[],t)this.planes=t;else for(var n=0;n<6;n++)this.planes.push(new iVi)}return wi(e,[{key:"extractFromVPMatrix",value:function(n){var i=As(n,16),r=i[0],o=i[1],s=i[2],a=i[3],l=i[4],c=i[5],u=i[6],d=i[7],h=i[8],f=i[9],p=i[10],g=i[11],m=i[12],v=i[13],y=i[14],b=i[15];gt.vec3.set(this.planes[0].normal,a-r,d-l,g-h),this.planes[0].distance=b-m,gt.vec3.set(this.planes[1].normal,a+r,d+l,g+h),this.planes[1].distance=b+m,gt.vec3.set(this.planes[2].normal,a+o,d+c,g+f),this.planes[2].distance=b+v,gt.vec3.set(this.planes[3].normal,a-o,d-c,g-f),this.planes[3].distance=b-v,gt.vec3.set(this.planes[4].normal,a-s,d-u,g-p),this.planes[4].distance=b-y,gt.vec3.set(this.planes[5].normal,a+s,d+u,g+p),this.planes[5].distance=b+y,this.planes.forEach(function(w){w.normalize(),w.updatePNVertexFlag()})}}])})(),rg=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;_i(this,e),this.x=0,this.y=0,this.x=t,this.y=n}return wi(e,[{key:"clone",value:function(){return new e(this.x,this.y)}},{key:"copyFrom",value:function(n){this.x=n.x,this.y=n.y}}])})(),q9=(function(){function e(t,n,i,r){_i(this,e),this.x=t,this.y=n,this.width=i,this.height=r,this.left=t,this.right=t+i,this.top=n,this.bottom=n+r}return wi(e,[{key:"toJSON",value:function(){}}],[{key:"fromRect",value:(function(n){return new e(n.x,n.y,n.width,n.height)})},{key:"applyTransform",value:function(n,i){var r=gt.vec4.fromValues(n.x,n.y,0,1),o=gt.vec4.fromValues(n.x+n.width,n.y,0,1),s=gt.vec4.fromValues(n.x,n.y+n.height,0,1),a=gt.vec4.fromValues(n.x+n.width,n.y+n.height,0,1),l=gt.vec4.create(),c=gt.vec4.create(),u=gt.vec4.create(),d=gt.vec4.create();gt.vec4.transformMat4(l,r,i),gt.vec4.transformMat4(c,o,i),gt.vec4.transformMat4(u,s,i),gt.vec4.transformMat4(d,a,i);var h=Math.min(l[0],c[0],u[0],d[0]),f=Math.min(l[1],c[1],u[1],d[1]),p=Math.max(l[0],c[0],u[0],d[0]),g=Math.max(l[1],c[1],u[1],d[1]);return e.fromRect({x:h,y:f,width:p-h,height:g-f})}}])})(),gc="Method not implemented.",Z4="Use document.documentElement instead.",oVi="Cannot append a destroyed element.";function S8(e){return e===void 0?0:e>360||e<-360?e%360:e}var lMe=gt.vec3.create();function iv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return Array.isArray(e)&&e.length===3?i?gt.vec3.clone(e):gt.vec3.copy(lMe,e):(0,Wi.isNumber)(e)?i?gt.vec3.fromValues(e,t,n):gt.vec3.set(lMe,e,t,n):i?gt.vec3.fromValues(e[0],e[1]||t,e[2]||n):gt.vec3.set(lMe,e[0],e[1]||t,e[2]||n)}var sVi=Math.PI/180;function vc(e){return e*sVi}var aVi=180/Math.PI;function p0(e){return e*aVi}function lVi(e){return 360*e}var Khe=Math.PI/2;function cVi(e,t){var n=t[0],i=t[1],r=t[2],o=t[3],s=n*n,a=i*i,l=r*r,c=o*o,u=s+a+l+c,d=n*o-i*r;return d>.499995*u?(e[0]=Khe,e[1]=2*Math.atan2(i,n),e[2]=0):d<-.499995*u?(e[0]=-Khe,e[1]=2*Math.atan2(i,n),e[2]=0):(e[0]=Math.asin(2*(n*r-o*i)),e[1]=Math.atan2(2*(n*o+i*r),1-2*(l+c)),e[2]=Math.atan2(2*(n*i+r*o),1-2*(a+l))),e}function uVi(e,t){var n,i,r=gt.mat4.getScaling(gt.vec3.create(),t),o=As(r,3),s=o[0],a=o[1],l=o[2],c=Math.asin(-t[2]/s);return c<Khe?c>-Khe?(n=Math.atan2(t[6]/a,t[10]/l),i=Math.atan2(t[1]/s,t[0]/s)):(i=0,n=-Math.atan2(t[4]/a,t[5]/a)):(i=0,n=Math.atan2(t[4]/a,t[5]/a)),e[0]=n,e[1]=c,e[2]=i,e}function cMe(e,t){return t.length===16?uVi(e,t):cVi(e,t)}function dVi(e,t,n,i,r){var o=Math.cos(e),s=Math.sin(e);return gt.mat3.fromValues(i*o,r*s,0,-i*s,r*o,0,t,n,1)}function hVi(e,t,n,i,r,o,s){var a=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,l=2*o,c=n-t,u=i-r,d=l/c,h=l/u,f=(n+t)/c,p=(i+r)/u,g,m,v=s-o,y=s*o;return a?(g=-s/v,m=-y/v):(g=-(s+o)/v,m=-2*y/v),e[0]=d,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=h,e[6]=0,e[7]=0,e[8]=f,e[9]=p,e[10]=g,e[11]=-1,e[12]=0,e[13]=0,e[14]=m,e[15]=0,e}function AOt(e){var t=e[0],n=e[1],i=e[3],r=e[4],o=Math.sqrt(t*t+n*n),s=Math.sqrt(i*i+r*r),a=t*r-n*i;if(a<0&&(t<r?o=-o:s=-s),o){var l=1/o;t*=l,n*=l}if(s){var c=1/s;i*=c,r*=c}var u=Math.atan2(n,t),d=p0(u);return[e[6],e[7],o,s,d]}var RS=gt.mat4.create(),d1=gt.mat4.create(),Z3=gt.vec4.create(),rs=[gt.vec3.create(),gt.vec3.create(),gt.vec3.create()],DOt=gt.vec3.create();function fVi(e,t,n,i,r,o){if(!pVi(RS,e)||(gt.mat4.copy(d1,RS),d1[3]=0,d1[7]=0,d1[11]=0,d1[15]=1,Math.abs(gt.mat4.determinant(d1))<1e-8))return!1;var s=RS[3],a=RS[7],l=RS[11],c=RS[12],u=RS[13],d=RS[14],h=RS[15];if(s!==0||a!==0||l!==0){Z3[0]=s,Z3[1]=a,Z3[2]=l,Z3[3]=h;var f=gt.mat4.invert(d1,d1);if(!f)return!1;gt.mat4.transpose(d1,d1),gt.vec4.transformMat4(r,Z3,d1)}else r[0]=r[1]=r[2]=0,r[3]=1;if(t[0]=c,t[1]=u,t[2]=d,gVi(rs,RS),n[0]=gt.vec3.length(rs[0]),gt.vec3.normalize(rs[0],rs[0]),i[0]=gt.vec3.dot(rs[0],rs[1]),uMe(rs[1],rs[1],rs[0],1,-i[0]),n[1]=gt.vec3.length(rs[1]),gt.vec3.normalize(rs[1],rs[1]),i[0]/=n[1],i[1]=gt.vec3.dot(rs[0],rs[2]),uMe(rs[2],rs[2],rs[0],1,-i[1]),i[2]=gt.vec3.dot(rs[1],rs[2]),uMe(rs[2],rs[2],rs[1],1,-i[2]),n[2]=gt.vec3.length(rs[2]),gt.vec3.normalize(rs[2],rs[2]),i[1]/=n[2],i[2]/=n[2],gt.vec3.cross(DOt,rs[1],rs[2]),gt.vec3.dot(rs[0],DOt)<0)for(var p=0;p<3;p++)n[p]*=-1,rs[p][0]*=-1,rs[p][1]*=-1,rs[p][2]*=-1;return o[0]=.5*Math.sqrt(Math.max(1+rs[0][0]-rs[1][1]-rs[2][2],0)),o[1]=.5*Math.sqrt(Math.max(1-rs[0][0]+rs[1][1]-rs[2][2],0)),o[2]=.5*Math.sqrt(Math.max(1-rs[0][0]-rs[1][1]+rs[2][2],0)),o[3]=.5*Math.sqrt(Math.max(1+rs[0][0]+rs[1][1]+rs[2][2],0)),rs[2][1]>rs[1][2]&&(o[0]=-o[0]),rs[0][2]>rs[2][0]&&(o[1]=-o[1]),rs[1][0]>rs[0][1]&&(o[2]=-o[2]),!0}function pVi(e,t){var n=t[15];if(n===0)return!1;for(var i=1/n,r=0;r<16;r++)e[r]=t[r]*i;return!0}function gVi(e,t){e[0][0]=t[0],e[0][1]=t[1],e[0][2]=t[2],e[1][0]=t[4],e[1][1]=t[5],e[1][2]=t[6],e[2][0]=t[8],e[2][1]=t[9],e[2][2]=t[10]}function uMe(e,t,n,i,r){e[0]=t[0]*i+n[0]*r,e[1]=t[1]*i+n[1]*r,e[2]=t[2]*i+n[2]*r}var hc=(function(e){return e[e.ORBITING=0]="ORBITING",e[e.EXPLORING=1]="EXPLORING",e[e.TRACKING=2]="TRACKING",e})({}),M7e=(function(e){return e[e.DEFAULT=0]="DEFAULT",e[e.ROTATIONAL=1]="ROTATIONAL",e[e.TRANSLATIONAL=2]="TRANSLATIONAL",e[e.CINEMATIC=3]="CINEMATIC",e})({}),n_=(function(e){return e[e.ORTHOGRAPHIC=0]="ORTHOGRAPHIC",e[e.PERSPECTIVE=1]="PERSPECTIVE",e})({}),Hbn={UPDATED:"updated"},TOt=2e-4,Wbn=(function(){function e(){_i(this,e),this.clipSpaceNearZ=yce.NEGATIVE_ONE,this.eventEmitter=new Mbn,this.matrix=gt.mat4.create(),this.right=gt.vec3.fromValues(1,0,0),this.up=gt.vec3.fromValues(0,1,0),this.forward=gt.vec3.fromValues(0,0,1),this.position=gt.vec3.fromValues(0,0,1),this.focalPoint=gt.vec3.fromValues(0,0,0),this.distanceVector=gt.vec3.fromValues(0,0,-1),this.distance=1,this.azimuth=0,this.elevation=0,this.roll=0,this.relAzimuth=0,this.relElevation=0,this.relRoll=0,this.dollyingStep=0,this.maxDistance=1/0,this.minDistance=-1/0,this.zoom=1,this.rotateWorld=!1,this.fov=30,this.near=.1,this.far=1e3,this.aspect=1,this.projectionMatrix=gt.mat4.create(),this.projectionMatrixInverse=gt.mat4.create(),this.jitteredProjectionMatrix=void 0,this.enableUpdate=!0,this.type=hc.EXPLORING,this.trackingMode=M7e.DEFAULT,this.projectionMode=n_.PERSPECTIVE,this.frustum=new rVi,this.orthoMatrix=gt.mat4.create()}return wi(e,[{key:"isOrtho",value:(function(){return this.projectionMode===n_.ORTHOGRAPHIC})},{key:"getProjectionMode",value:function(){return this.projectionMode}},{key:"getPerspective",value:function(){return this.jitteredProjectionMatrix||this.projectionMatrix}},{key:"getPerspectiveInverse",value:function(){return this.projectionMatrixInverse}},{key:"getFrustum",value:function(){return this.frustum}},{key:"getPosition",value:function(){return this.position}},{key:"getFocalPoint",value:function(){return this.focalPoint}},{key:"getDollyingStep",value:function(){return this.dollyingStep}},{key:"getNear",value:function(){return this.near}},{key:"getFar",value:function(){return this.far}},{key:"getZoom",value:function(){return this.zoom}},{key:"getOrthoMatrix",value:function(){return this.orthoMatrix}},{key:"getView",value:function(){return this.view}},{key:"setEnableUpdate",value:function(n){this.enableUpdate=n}},{key:"setType",value:function(n,i){return this.type=n,this.type===hc.EXPLORING?this.setWorldRotation(!0):this.setWorldRotation(!1),this._getAngles(),this.type===hc.TRACKING&&i!==void 0&&this.setTrackingMode(i),this}},{key:"setProjectionMode",value:function(n){return this.projectionMode=n,this}},{key:"setTrackingMode",value:function(n){if(this.type!==hc.TRACKING)throw new Error("Impossible to set a tracking mode if the camera is not of tracking type");return this.trackingMode=n,this}},{key:"setWorldRotation",value:function(n){return this.rotateWorld=n,this._getAngles(),this}},{key:"getViewTransform",value:function(){return gt.mat4.invert(gt.mat4.create(),this.matrix)}},{key:"getWorldTransform",value:function(){return this.matrix}},{key:"jitterProjectionMatrix",value:function(n,i){var r=gt.mat4.fromTranslation(gt.mat4.create(),[n,i,0]);this.jitteredProjectionMatrix=gt.mat4.multiply(gt.mat4.create(),r,this.projectionMatrix)}},{key:"clearJitterProjectionMatrix",value:function(){this.jitteredProjectionMatrix=void 0}},{key:"setMatrix",value:function(n){return this.matrix=n,this._update(),this}},{key:"setProjectionMatrix",value:function(n){this.projectionMatrix=n}},{key:"setFov",value:function(n){return this.setPerspective(this.near,this.far,n,this.aspect),this}},{key:"setAspect",value:function(n){return this.setPerspective(this.near,this.far,this.fov,n),this}},{key:"setNear",value:function(n){return this.projectionMode===n_.PERSPECTIVE?this.setPerspective(n,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,n,this.far),this}},{key:"setFar",value:function(n){return this.projectionMode===n_.PERSPECTIVE?this.setPerspective(this.near,n,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,n),this}},{key:"setViewOffset",value:function(n,i,r,o,s,a){return this.aspect=n/i,this.view===void 0&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=n,this.view.fullHeight=i,this.view.offsetX=r,this.view.offsetY=o,this.view.width=s,this.view.height=a,this.projectionMode===n_.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this}},{key:"clearViewOffset",value:function(){return this.view!==void 0&&(this.view.enabled=!1),this.projectionMode===n_.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this}},{key:"setZoom",value:function(n){return this.zoom=n,this.projectionMode===n_.ORTHOGRAPHIC?this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far):this.projectionMode===n_.PERSPECTIVE&&this.setPerspective(this.near,this.far,this.fov,this.aspect),this}},{key:"setZoomByViewportPoint",value:function(n,i){var r=this.canvas.viewport2Canvas({x:i[0],y:i[1]}),o=r.x,s=r.y,a=this.roll;this.rotate(0,0,-a),this.setPosition(o,s),this.setFocalPoint(o,s),this.setZoom(n),this.rotate(0,0,a);var l=this.canvas.viewport2Canvas({x:i[0],y:i[1]}),c=l.x,u=l.y,d=gt.vec3.fromValues(c-o,u-s,0),h=gt.vec3.dot(d,this.right)/gt.vec3.length(this.right),f=gt.vec3.dot(d,this.up)/gt.vec3.length(this.up),p=this.getPosition(),g=As(p,2),m=g[0],v=g[1],y=this.getFocalPoint(),b=As(y,2),w=b[0],E=b[1];return this.setPosition(m-h,v-f),this.setFocalPoint(w-h,E-f),this}},{key:"setPerspective",value:function(n,i,r,o){var s;this.projectionMode=n_.PERSPECTIVE,this.fov=r,this.near=n,this.far=i,this.aspect=o;var a=this.near*Math.tan(vc(.5*this.fov))/this.zoom,l=2*a,c=this.aspect*l,u=-.5*c;if((s=this.view)!==null&&s!==void 0&&s.enabled){var d=this.view.fullWidth,h=this.view.fullHeight;u+=this.view.offsetX*c/d,a-=this.view.offsetY*l/h,c*=this.view.width/d,l*=this.view.height/h}return hVi(this.projectionMatrix,u,u+c,a-l,a,n,this.far,this.clipSpaceNearZ===yce.ZERO),gt.mat4.invert(this.projectionMatrixInverse,this.projectionMatrix),this.triggerUpdate(),this}},{key:"setOrthographic",value:function(n,i,r,o,s,a){var l;this.projectionMode=n_.ORTHOGRAPHIC,this.rright=i,this.left=n,this.top=r,this.bottom=o,this.near=s,this.far=a;var c=(this.rright-this.left)/(2*this.zoom),u=(this.top-this.bottom)/(2*this.zoom),d=(this.rright+this.left)/2,h=(this.top+this.bottom)/2,f=d-c,p=d+c,g=h+u,m=h-u;if((l=this.view)!==null&&l!==void 0&&l.enabled){var v=(this.rright-this.left)/this.view.fullWidth/this.zoom,y=(this.top-this.bottom)/this.view.fullHeight/this.zoom;f+=v*this.view.offsetX,p=f+v*this.view.width,g-=y*this.view.offsetY,m=g-y*this.view.height}return this.clipSpaceNearZ===yce.NEGATIVE_ONE?gt.mat4.ortho(this.projectionMatrix,f,p,g,m,s,a):gt.mat4.orthoZO(this.projectionMatrix,f,p,g,m,s,a),gt.mat4.invert(this.projectionMatrixInverse,this.projectionMatrix),this._getOrthoMatrix(),this.triggerUpdate(),this}},{key:"setPosition",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.position[1],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.position[2],o=iv(n,i,r);return this._setPosition(o),this.setFocalPoint(this.focalPoint),this.triggerUpdate(),this}},{key:"setFocalPoint",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.focalPoint[1],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.focalPoint[2],o=gt.vec3.fromValues(0,1,0);if(this.focalPoint=iv(n,i,r),this.trackingMode===M7e.CINEMATIC){var s=gt.vec3.subtract(gt.vec3.create(),this.focalPoint,this.position);n=s[0],i=s[1],r=s[2];var a=gt.vec3.length(s),l=p0(Math.asin(i/a)),c=90+p0(Math.atan2(r,n)),u=gt.mat4.create();gt.mat4.rotateY(u,u,vc(c)),gt.mat4.rotateX(u,u,vc(l)),o=gt.vec3.transformMat4(gt.vec3.create(),[0,1,0],u)}return gt.mat4.invert(this.matrix,gt.mat4.lookAt(gt.mat4.create(),this.position,this.focalPoint,o)),this._getAxes(),this._getDistance(),this._getAngles(),this.triggerUpdate(),this}},{key:"getDistance",value:function(){return this.distance}},{key:"getDistanceVector",value:function(){return this.distanceVector}},{key:"setDistance",value:function(n){if(this.distance===n||n<0)return this;this.distance=n,this.distance<TOt&&(this.distance=TOt),this.dollyingStep=this.distance/100;var i=gt.vec3.create();n=this.distance;var r=this.forward,o=this.focalPoint;return i[0]=n*r[0]+o[0],i[1]=n*r[1]+o[1],i[2]=n*r[2]+o[2],this._setPosition(i),this.triggerUpdate(),this}},{key:"setMaxDistance",value:function(n){return this.maxDistance=n,this}},{key:"setMinDistance",value:function(n){return this.minDistance=n,this}},{key:"setAzimuth",value:function(n){return this.azimuth=S8(n),this.computeMatrix(),this._getAxes(),this.type===hc.ORBITING||this.type===hc.EXPLORING?this._getPosition():this.type===hc.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this}},{key:"getAzimuth",value:function(){return this.azimuth}},{key:"setElevation",value:function(n){return this.elevation=S8(n),this.computeMatrix(),this._getAxes(),this.type===hc.ORBITING||this.type===hc.EXPLORING?this._getPosition():this.type===hc.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this}},{key:"getElevation",value:function(){return this.elevation}},{key:"setRoll",value:function(n){return this.roll=S8(n),this.computeMatrix(),this._getAxes(),this.type===hc.ORBITING||this.type===hc.EXPLORING?this._getPosition():this.type===hc.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this}},{key:"getRoll",value:function(){return this.roll}},{key:"_update",value:function(){this._getAxes(),this._getPosition(),this._getDistance(),this._getAngles(),this._getOrthoMatrix(),this.triggerUpdate()}},{key:"computeMatrix",value:function(){var n=gt.quat.setAxisAngle(gt.quat.create(),[0,0,1],vc(this.roll));gt.mat4.identity(this.matrix);var i=gt.quat.setAxisAngle(gt.quat.create(),[1,0,0],vc((this.rotateWorld&&this.type!==hc.TRACKING||this.type===hc.TRACKING?1:-1)*this.elevation)),r=gt.quat.setAxisAngle(gt.quat.create(),[0,1,0],vc((this.rotateWorld&&this.type!==hc.TRACKING||this.type===hc.TRACKING?1:-1)*this.azimuth)),o=gt.quat.multiply(gt.quat.create(),r,i);o=gt.quat.multiply(gt.quat.create(),o,n);var s=gt.mat4.fromQuat(gt.mat4.create(),o);this.type===hc.ORBITING||this.type===hc.EXPLORING?(gt.mat4.translate(this.matrix,this.matrix,this.focalPoint),gt.mat4.multiply(this.matrix,this.matrix,s),gt.mat4.translate(this.matrix,this.matrix,[0,0,this.distance])):this.type===hc.TRACKING&&(gt.mat4.translate(this.matrix,this.matrix,this.position),gt.mat4.multiply(this.matrix,this.matrix,s))}},{key:"_setPosition",value:function(n,i,r){this.position=iv(n,i,r);var o=this.matrix;o[12]=this.position[0],o[13]=this.position[1],o[14]=this.position[2],o[15]=1,this._getOrthoMatrix()}},{key:"_getAxes",value:function(){gt.vec3.copy(this.right,iv(gt.vec4.transformMat4(gt.vec4.create(),[1,0,0,0],this.matrix))),gt.vec3.copy(this.up,iv(gt.vec4.transformMat4(gt.vec4.create(),[0,1,0,0],this.matrix))),gt.vec3.copy(this.forward,iv(gt.vec4.transformMat4(gt.vec4.create(),[0,0,1,0],this.matrix))),gt.vec3.normalize(this.right,this.right),gt.vec3.normalize(this.up,this.up),gt.vec3.normalize(this.forward,this.forward)}},{key:"_getAngles",value:function(){var n=this.distanceVector[0],i=this.distanceVector[1],r=this.distanceVector[2],o=gt.vec3.length(this.distanceVector);if(o===0){this.elevation=0,this.azimuth=0;return}this.type===hc.TRACKING?(this.elevation=p0(Math.asin(i/o)),this.azimuth=p0(Math.atan2(-n,-r))):this.rotateWorld?(this.elevation=p0(Math.asin(i/o)),this.azimuth=p0(Math.atan2(-n,-r))):(this.elevation=-p0(Math.asin(i/o)),this.azimuth=-p0(Math.atan2(-n,-r)))}},{key:"_getPosition",value:function(){gt.vec3.copy(this.position,iv(gt.vec4.transformMat4(gt.vec4.create(),[0,0,0,1],this.matrix))),this._getDistance()}},{key:"_getFocalPoint",value:function(){gt.vec3.transformMat3(this.distanceVector,[0,0,-this.distance],gt.mat3.fromMat4(gt.mat3.create(),this.matrix)),gt.vec3.add(this.focalPoint,this.position,this.distanceVector),this._getDistance()}},{key:"_getDistance",value:function(){this.distanceVector=gt.vec3.subtract(gt.vec3.create(),this.focalPoint,this.position),this.distance=gt.vec3.length(this.distanceVector),this.dollyingStep=this.distance/100}},{key:"_getOrthoMatrix",value:function(){if(this.projectionMode===n_.ORTHOGRAPHIC){var n=this.position,i=gt.quat.setAxisAngle(gt.quat.create(),[0,0,1],-this.roll*Math.PI/180);gt.mat4.fromRotationTranslationScaleOrigin(this.orthoMatrix,i,gt.vec3.fromValues((this.rright-this.left)/2-n[0],(this.top-this.bottom)/2-n[1],0),gt.vec3.fromValues(this.zoom,this.zoom,1),n)}}},{key:"triggerUpdate",value:function(){if(this.enableUpdate){var n=this.getViewTransform(),i=gt.mat4.multiply(gt.mat4.create(),this.getPerspective(),n);this.getFrustum().extractFromVPMatrix(i),this.eventEmitter.emit(Hbn.UPDATED)}}},{key:"rotate",value:function(n,i,r){throw new Error(gc)}},{key:"pan",value:function(n,i){throw new Error(gc)}},{key:"dolly",value:function(n){throw new Error(gc)}},{key:"createLandmark",value:function(n,i){throw new Error(gc)}},{key:"gotoLandmark",value:function(n,i){throw new Error(gc)}},{key:"cancelLandmarkAnimation",value:function(){throw new Error(gc)}}])})(),mVi=(function(e){return e[e.Standard=0]="Standard",e})({}),Yhe=(function(e){return e[e.ADDED=0]="ADDED",e[e.REMOVED=1]="REMOVED",e[e.Z_INDEX_CHANGED=2]="Z_INDEX_CHANGED",e})({}),vVi=gt.vec3.create(),X3=gt.mat4.create(),yVi=gt.quat.create();function kOt(e){if(e.localDirtyFlag){var t=e.localSkew[0]!==0||e.localSkew[1]!==0;if(t){gt.mat4.fromRotationTranslationScaleOrigin(e.localTransform,e.localRotation,e.localPosition,gt.vec3.fromValues(1,1,1),e.origin),(e.localSkew[0]!==0||e.localSkew[1]!==0)&&(gt.mat4.identity(X3),X3[4]=Math.tan(e.localSkew[0]),X3[1]=Math.tan(e.localSkew[1]),gt.mat4.multiply(e.localTransform,e.localTransform,X3));var n=gt.mat4.fromRotationTranslationScaleOrigin(X3,gt.quat.set(yVi,0,0,0,1),gt.vec3.set(vVi,1,1,1),e.localScale,e.origin);gt.mat4.multiply(e.localTransform,e.localTransform,n)}else{var i=e.localTransform,r=e.localPosition,o=e.localRotation,s=e.localScale,a=e.origin,l=r[0]!==0||r[1]!==0||r[2]!==0,c=o[3]!==1||o[0]!==0||o[1]!==0||o[2]!==0,u=s[0]!==1||s[1]!==1||s[2]!==1,d=a[0]!==0||a[1]!==0||a[2]!==0;!c&&!u&&!d?l?gt.mat4.fromTranslation(i,r):gt.mat4.identity(i):gt.mat4.fromRotationTranslationScaleOrigin(i,o,r,s,a)}e.localDirtyFlag=!1}}function bVi(e,t){e.dirtyFlag&&(t?gt.mat4.multiply(e.worldTransform,t.worldTransform,e.localTransform):gt.mat4.copy(e.worldTransform,e.localTransform),e.dirtyFlag=!1)}var Ubn={absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new q9(0,0,0,0)},tr=(function(e){return e.COORDINATE="<coordinate>",e.COLOR="<color>",e.PAINT="<paint>",e.NUMBER="<number>",e.ANGLE="<angle>",e.OPACITY_VALUE="<opacity-value>",e.SHADOW_BLUR="<shadow-blur>",e.LENGTH="<length>",e.PERCENTAGE="<percentage>",e.LENGTH_PERCENTAGE="<length> | <percentage>",e.LENGTH_PERCENTAGE_12="[<length> | <percentage>]{1,2}",e.LENGTH_PERCENTAGE_14="[<length> | <percentage>]{1,4}",e.LIST_OF_POINTS="<list-of-points>",e.PATH="<path>",e.FILTER="<filter>",e.Z_INDEX="<z-index>",e.OFFSET_DISTANCE="<offset-distance>",e.DEFINED_PATH="<defined-path>",e.MARKER="<marker>",e.TRANSFORM="<transform>",e.TRANSFORM_ORIGIN="<transform-origin>",e.TEXT="<text>",e.TEXT_TRANSFORM="<text-transform>",e})({});function rZe(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $bn(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function ZQ(){}var XG=.7,Qhe=1/XG,x8="\\s*([+-]?\\d+)\\s*",JG="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fx="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_Vi=/^#([0-9a-f]{3,8})$/,wVi=new RegExp(`^rgb\\(${x8},${x8},${x8}\\)$`),CVi=new RegExp(`^rgb\\(${Fx},${Fx},${Fx}\\)$`),SVi=new RegExp(`^rgba\\(${x8},${x8},${x8},${JG}\\)$`),xVi=new RegExp(`^rgba\\(${Fx},${Fx},${Fx},${JG}\\)$`),EVi=new RegExp(`^hsl\\(${JG},${Fx},${Fx}\\)$`),AVi=new RegExp(`^hsla\\(${JG},${Fx},${Fx},${JG}\\)$`),IOt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};rZe(ZQ,R0e,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:LOt,formatHex:LOt,formatHex8:DVi,formatHsl:TVi,formatRgb:NOt,toString:NOt});function LOt(){return this.rgb().formatHex()}function DVi(){return this.rgb().formatHex8()}function TVi(){return qbn(this).formatHsl()}function NOt(){return this.rgb().formatRgb()}function R0e(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=_Vi.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?POt(t):n===3?new D0(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Rie(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Rie(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=wVi.exec(e))?new D0(t[1],t[2],t[3],1):(t=CVi.exec(e))?new D0(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=SVi.exec(e))?Rie(t[1],t[2],t[3],t[4]):(t=xVi.exec(e))?Rie(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=EVi.exec(e))?ROt(t[1],t[2]/100,t[3]/100,1):(t=AVi.exec(e))?ROt(t[1],t[2]/100,t[3]/100,t[4]):IOt.hasOwnProperty(e)?POt(IOt[e]):e==="transparent"?new D0(NaN,NaN,NaN,0):null}function POt(e){return new D0(e>>16&255,e>>8&255,e&255,1)}function Rie(e,t,n,i){return i<=0&&(e=t=n=NaN),new D0(e,t,n,i)}function kVi(e){return e instanceof ZQ||(e=R0e(e)),e?(e=e.rgb(),new D0(e.r,e.g,e.b,e.opacity)):new D0}function IVi(e,t,n,i){return arguments.length===1?kVi(e):new D0(e,t,n,i??1)}function D0(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}rZe(D0,IVi,$bn(ZQ,{brighter(e){return e=e==null?Qhe:Math.pow(Qhe,e),new D0(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?XG:Math.pow(XG,e),new D0(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new D0(TR(this.r),TR(this.g),TR(this.b),Zhe(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:MOt,formatHex:MOt,formatHex8:LVi,formatRgb:OOt,toString:OOt}));function MOt(){return`#${XO(this.r)}${XO(this.g)}${XO(this.b)}`}function LVi(){return`#${XO(this.r)}${XO(this.g)}${XO(this.b)}${XO((isNaN(this.opacity)?1:this.opacity)*255)}`}function OOt(){const e=Zhe(this.opacity);return`${e===1?"rgb(":"rgba("}${TR(this.r)}, ${TR(this.g)}, ${TR(this.b)}${e===1?")":`, ${e})`}`}function Zhe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function TR(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function XO(e){return e=TR(e),(e<16?"0":"")+e.toString(16)}function ROt(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new W1(e,t,n,i)}function qbn(e){if(e instanceof W1)return new W1(e.h,e.s,e.l,e.opacity);if(e instanceof ZQ||(e=R0e(e)),!e)return new W1;if(e instanceof W1)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,r=Math.min(t,n,i),o=Math.max(t,n,i),s=NaN,a=o-r,l=(o+r)/2;return a?(t===o?s=(n-i)/a+(n<i)*6:n===o?s=(i-t)/a+2:s=(t-n)/a+4,a/=l<.5?o+r:2-o-r,s*=60):a=l>0&&l<1?0:s,new W1(s,a,l,e.opacity)}function NVi(e,t,n,i){return arguments.length===1?qbn(e):new W1(e,t,n,i??1)}function W1(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}rZe(W1,NVi,$bn(ZQ,{brighter(e){return e=e==null?Qhe:Math.pow(Qhe,e),new W1(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?XG:Math.pow(XG,e),new W1(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,r=2*n-i;return new D0(dMe(e>=240?e-240:e+120,r,i),dMe(e,r,i),dMe(e<120?e+240:e-120,r,i),this.opacity)},clamp(){return new W1(FOt(this.h),Fie(this.s),Fie(this.l),Zhe(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Zhe(this.opacity);return`${e===1?"hsl(":"hsla("}${FOt(this.h)}, ${Fie(this.s)*100}%, ${Fie(this.l)*100}%${e===1?")":`, ${e})`}`}}));function FOt(e){return e=(e||0)%360,e<0?e+360:e}function Fie(e){return Math.max(0,Math.min(1,e||0))}function dMe(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function Th(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");var n=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a=t?t.apply(this,o):o[0],l=n.cache;if(l.has(a))return l.get(a);var c=e.apply(this,o);return n.cache=l.set(a,c)||l,c};return n.cache=new(Th.Cache||Map),Th.cacheList.push(n.cache),n}Th.Cache=Map;Th.cacheList=[];Th.clearCache=function(){Th.cacheList.forEach(function(e){return e.clear()})};var ir=(function(e){return e[e.kUnknown=0]="kUnknown",e[e.kNumber=1]="kNumber",e[e.kPercentage=2]="kPercentage",e[e.kEms=3]="kEms",e[e.kPixels=4]="kPixels",e[e.kRems=5]="kRems",e[e.kDegrees=6]="kDegrees",e[e.kRadians=7]="kRadians",e[e.kGradians=8]="kGradians",e[e.kTurns=9]="kTurns",e[e.kMilliseconds=10]="kMilliseconds",e[e.kSeconds=11]="kSeconds",e[e.kInteger=12]="kInteger",e})({}),j1=(function(e){return e[e.kUNumber=0]="kUNumber",e[e.kUPercent=1]="kUPercent",e[e.kULength=2]="kULength",e[e.kUAngle=3]="kUAngle",e[e.kUTime=4]="kUTime",e[e.kUOther=5]="kUOther",e})({}),PVi=(function(e){return e[e.kYes=0]="kYes",e[e.kNo=1]="kNo",e})({}),MVi=(function(e){return e[e.kYes=0]="kYes",e[e.kNo=1]="kNo",e})({}),OVi=[{name:"em",unit_type:ir.kEms},{name:"px",unit_type:ir.kPixels},{name:"deg",unit_type:ir.kDegrees},{name:"rad",unit_type:ir.kRadians},{name:"grad",unit_type:ir.kGradians},{name:"ms",unit_type:ir.kMilliseconds},{name:"s",unit_type:ir.kSeconds},{name:"rem",unit_type:ir.kRems},{name:"turn",unit_type:ir.kTurns}],G9=(function(e){return e[e.kUnknownType=0]="kUnknownType",e[e.kUnparsedType=1]="kUnparsedType",e[e.kKeywordType=2]="kKeywordType",e[e.kUnitType=3]="kUnitType",e[e.kSumType=4]="kSumType",e[e.kProductType=5]="kProductType",e[e.kNegateType=6]="kNegateType",e[e.kInvertType=7]="kInvertType",e[e.kMinType=8]="kMinType",e[e.kMaxType=9]="kMaxType",e[e.kClampType=10]="kClampType",e[e.kTransformType=11]="kTransformType",e[e.kPositionType=12]="kPositionType",e[e.kURLImageType=13]="kURLImageType",e[e.kColorType=14]="kColorType",e[e.kUnsupportedColorType=15]="kUnsupportedColorType",e})({}),RVi=function(t){return OVi.find(function(n){return n.name===t}).unit_type},FVi=function(t){return t?t==="number"?ir.kNumber:t==="percent"||t==="%"?ir.kPercentage:RVi(t):ir.kUnknown},BVi=function(t){switch(t){case ir.kNumber:case ir.kInteger:return j1.kUNumber;case ir.kPercentage:return j1.kUPercent;case ir.kPixels:return j1.kULength;case ir.kMilliseconds:case ir.kSeconds:return j1.kUTime;case ir.kDegrees:case ir.kRadians:case ir.kGradians:case ir.kTurns:return j1.kUAngle;default:return j1.kUOther}},jVi=function(t){switch(t){case j1.kUNumber:return ir.kNumber;case j1.kULength:return ir.kPixels;case j1.kUPercent:return ir.kPercentage;case j1.kUTime:return ir.kSeconds;case j1.kUAngle:return ir.kDegrees;default:return ir.kUnknown}},BOt=function(t){var n=1;switch(t){case ir.kPixels:case ir.kDegrees:case ir.kSeconds:break;case ir.kMilliseconds:n=.001;break;case ir.kRadians:n=180/Math.PI;break;case ir.kGradians:n=.9;break;case ir.kTurns:n=360;break}return n},O7e=function(t){switch(t){case ir.kNumber:case ir.kInteger:return"";case ir.kPercentage:return"%";case ir.kEms:return"em";case ir.kRems:return"rem";case ir.kPixels:return"px";case ir.kDegrees:return"deg";case ir.kRadians:return"rad";case ir.kGradians:return"grad";case ir.kMilliseconds:return"ms";case ir.kSeconds:return"s";case ir.kTurns:return"turn"}return""},F0e=(function(){function e(){_i(this,e)}return wi(e,[{key:"toString",value:(function(){return this.buildCSSText(PVi.kNo,MVi.kNo,"")})},{key:"isNumericValue",value:function(){return this.getType()>=G9.kUnitType&&this.getType()<=G9.kClampType}}],[{key:"isAngle",value:(function(n){return n===ir.kDegrees||n===ir.kRadians||n===ir.kGradians||n===ir.kTurns})},{key:"isLength",value:function(n){return n>=ir.kEms&&n<ir.kDegrees}},{key:"isRelativeUnit",value:function(n){return n===ir.kPercentage||n===ir.kEms||n===ir.kRems}},{key:"isTime",value:function(n){return n===ir.kSeconds||n===ir.kMilliseconds}}])})(),zVi=(function(e){function t(n){var i;return _i(this,t),i=Hs(this,t),i.colorSpace=n,i}return Ws(t,e),wi(t,[{key:"getType",value:function(){return G9.kColorType}},{key:"to",value:function(i){return this}}])})(F0e),qI=(function(e){return e[e.Constant=0]="Constant",e[e.LinearGradient=1]="LinearGradient",e[e.RadialGradient=2]="RadialGradient",e})({}),Bie=(function(e){function t(n,i){var r;return _i(this,t),r=Hs(this,t),r.type=n,r.value=i,r}return Ws(t,e),wi(t,[{key:"clone",value:function(){return new t(this.type,this.value)}},{key:"buildCSSText",value:function(i,r,o){return o}},{key:"getType",value:function(){return G9.kColorType}}])})(F0e),Iw=(function(e){function t(n){var i;return _i(this,t),i=Hs(this,t),i.value=n,i}return Ws(t,e),wi(t,[{key:"clone",value:function(){return new t(this.value)}},{key:"getType",value:function(){return G9.kKeywordType}},{key:"buildCSSText",value:function(i,r,o){return o+this.value}}])})(F0e),VVi=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i="";return Number.isFinite(t)?i="NaN":t>0?i="infinity":i="-infinity",i+=n},R7e=function(t){return jVi(BVi(t))},lp=(function(e){function t(n){var i,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ir.kNumber;_i(this,t),i=Hs(this,t);var o;return typeof r=="string"?o=FVi(r):o=r,i.unit=o,i.value=n,i}return Ws(t,e),wi(t,[{key:"clone",value:function(){return new t(this.value,this.unit)}},{key:"equals",value:function(i){var r=i;return this.value===r.value&&this.unit===r.unit}},{key:"getType",value:function(){return G9.kUnitType}},{key:"convertTo",value:function(i){if(this.unit===i)return new t(this.value,this.unit);var r=R7e(this.unit);if(r!==R7e(i)||r===ir.kUnknown)return null;var o=BOt(this.unit)/BOt(i);return new t(this.value*o,i)}},{key:"buildCSSText",value:function(i,r,o){var s;switch(this.unit){case ir.kUnknown:break;case ir.kInteger:s=Number(this.value).toFixed(0);break;case ir.kNumber:case ir.kPercentage:case ir.kEms:case ir.kRems:case ir.kPixels:case ir.kDegrees:case ir.kRadians:case ir.kGradians:case ir.kMilliseconds:case ir.kSeconds:case ir.kTurns:{var a=-999999,l=999999,c=this.value,u=O7e(this.unit);if(c<a||c>l){var d=O7e(this.unit);!Number.isFinite(c)||Number.isNaN(c)?s=VVi(c,d):s=c+(d||"")}else s="".concat(c).concat(u)}}return o+=s,o}}])})(F0e),A1=new lp(0,"px");new lp(1,"px");var I2=new lp(0,"deg"),oZe=(function(e){function t(n,i,r){var o,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;return _i(this,t),o=Hs(this,t,["rgb"]),o.r=n,o.g=i,o.b=r,o.alpha=s,o.isNone=a,o}return Ws(t,e),wi(t,[{key:"clone",value:function(){return new t(this.r,this.g,this.b,this.alpha)}},{key:"buildCSSText",value:function(i,r,o){return"".concat(o,"rgba(").concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.alpha,")")}}])})(zVi),jOt=new Iw("unset"),HVi=new Iw("initial"),WVi=new Iw("inherit"),hMe={"":jOt,unset:jOt,initial:HVi,inherit:WVi},UVi=function(t){return hMe[t]||(hMe[t]=new Iw(t)),hMe[t]},Gbn=new oZe(0,0,0,0,!0),Kbn=new oZe(0,0,0,0),$Vi=Th(function(e,t,n,i){return new oZe(e,t,n,i)},function(e,t,n,i){return"rgba(".concat(e,",").concat(t,",").concat(n,",").concat(i,")")}),Ou=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ir.kNumber;return new lp(t,n)};new lp(50,"%");function qVi(e){var t=e.type,n=e.value;return t==="hex"?"#".concat(n):t==="literal"?n:t==="rgb"?"rgb(".concat(n.join(","),")"):"rgba(".concat(n.join(","),")")}var GVi=(function(){var e={linearGradient:/^(linear\-gradient)/i,repeatingLinearGradient:/^(repeating\-linear\-gradient)/i,radialGradient:/^(radial\-gradient)/i,repeatingRadialGradient:/^(repeating\-radial\-gradient)/i,conicGradient:/^(conic\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function n(Q){throw new Error("".concat(t,": ").concat(Q))}function i(){var Q=r();return t.length>0&&n("Invalid input not EOF"),Q}function r(){return b(o)}function o(){return s("linear-gradient",e.linearGradient,l)||s("repeating-linear-gradient",e.repeatingLinearGradient,l)||s("radial-gradient",e.radialGradient,d)||s("repeating-radial-gradient",e.repeatingRadialGradient,d)||s("conic-gradient",e.conicGradient,d)}function s(Q,H,q){return a(H,function(le){var Y=q();return Y&&(J(e.comma)||n("Missing comma before color stops")),{type:Q,orientation:Y,colorStops:b(w)}})}function a(Q,H){var q=J(Q);if(q){J(e.startCall)||n("Missing (");var le=H(q);return J(e.endCall)||n("Missing )"),le}}function l(){return c()||u()}function c(){return W("directional",e.sideOrCorner,1)}function u(){return W("angular",e.angleValue,1)}function d(){var Q,H=h(),q;return H&&(Q=[],Q.push(H),q=t,J(e.comma)&&(H=h(),H?Q.push(H):t=q)),Q}function h(){var Q=f()||p();if(Q)Q.at=m();else{var H=g();if(H){Q=H;var q=m();q&&(Q.at=q)}else{var le=v();le&&(Q={type:"default-radial",at:le})}}return Q}function f(){var Q=W("shape",/^(circle)/i,0);return Q&&(Q.style=j()||g()),Q}function p(){var Q=W("shape",/^(ellipse)/i,0);return Q&&(Q.style=F()||g()),Q}function g(){return W("extent-keyword",e.extentKeywords,1)}function m(){if(W("position",/^at/,0)){var Q=v();return Q||n("Missing positioning value"),Q}}function v(){var Q=y();if(Q.x||Q.y)return{type:"position",value:Q}}function y(){return{x:F(),y:F()}}function b(Q){var H=Q(),q=[];if(H)for(q.push(H);J(e.comma);)H=Q(),H?q.push(H):n("One extra comma");return q}function w(){var Q=E();return Q||n("Expected color definition"),Q.length=F(),Q}function E(){return D()||M()||T()||A()}function A(){return W("literal",e.literalColor,0)}function D(){return W("hex",e.hexColor,1)}function T(){return a(e.rgbColor,function(){return{type:"rgb",value:b(P)}})}function M(){return a(e.rgbaColor,function(){return{type:"rgba",value:b(P)}})}function P(){return J(e.number)[1]}function F(){return W("%",e.percentageValue,1)||N()||j()}function N(){return W("position-keyword",e.positionKeywords,1)}function j(){return W("px",e.pixelValue,1)||W("em",e.emValue,1)}function W(Q,H,q){var le=J(H);if(le)return{type:Q,value:le[q]}}function J(Q){var H=/^[\n\r\t\s]+/.exec(t);H&&ee(H[0].length);var q=Q.exec(t);return q&&ee(q[0].length),q}function ee(Q){t=t.substring(Q)}return function(Q){return t=Q,i()}})();function KVi(e,t,n,i){var r=vc(i.value),o=0,s=0,a=o+t/2,l=s+n/2,c=Math.abs(t*Math.cos(r))+Math.abs(n*Math.sin(r)),u=e[0]+a-Math.cos(r)*c/2,d=e[1]+l-Math.sin(r)*c/2,h=e[0]+a+Math.cos(r)*c/2,f=e[1]+l+Math.sin(r)*c/2;return{x1:u,y1:d,x2:h,y2:f}}function YVi(e,t,n,i,r,o){var s=i.value,a=r.value;i.unit===ir.kPercentage&&(s=i.value/100*t),r.unit===ir.kPercentage&&(a=r.value/100*n);var l=Math.max((0,Wi.distanceSquareRoot)([0,0],[s,a]),(0,Wi.distanceSquareRoot)([0,n],[s,a]),(0,Wi.distanceSquareRoot)([t,n],[s,a]),(0,Wi.distanceSquareRoot)([t,0],[s,a]));return o&&(o instanceof lp?l=o.value:o instanceof Iw&&(o.value==="closest-side"?l=Math.min(s,t-s,a,n-a):o.value==="farthest-side"?l=Math.max(s,t-s,a,n-a):o.value==="closest-corner"&&(l=Math.min((0,Wi.distanceSquareRoot)([0,0],[s,a]),(0,Wi.distanceSquareRoot)([0,n],[s,a]),(0,Wi.distanceSquareRoot)([t,n],[s,a]),(0,Wi.distanceSquareRoot)([t,0],[s,a]))))),{x:s+e[0],y:a+e[1],r:l}}var QVi=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,ZVi=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,XVi=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,Ybn=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function JVi(e){var t,n=e.length;if(e[n-1].length=(t=e[n-1].length)!==null&&t!==void 0?t:{type:"%",value:"100"},n>1){var i;e[0].length=(i=e[0].length)!==null&&i!==void 0?i:{type:"%",value:"0"}}for(var r=0,o=Number(e[0].length.value),s=1;s<n;s++){var a,l=(a=e[s].length)===null||a===void 0?void 0:a.value;if(!(0,Wi.isNil)(l)&&!(0,Wi.isNil)(o)){for(var c=1;c<s-r;c++)e[r+c].length={type:"%",value:"".concat(o+(Number(l)-o)*c/(s-r))};r=s,o=Number(l)}}}var e3i={left:180,top:-90,bottom:90,right:0,"left top":225,"top left":225,"left bottom":135,"bottom left":135,"right top":-45,"top right":-45,"right bottom":45,"bottom right":45},t3i=Th(function(e){var t;return e.type==="angular"?t=Number(e.value):t=e3i[e.value]||0,Ou(t,"deg")}),n3i=Th(function(e){var t=50,n=50,i="%",r="%";if(e?.type==="position"){var o=e.value,s=o.x,a=o.y;s?.type==="position-keyword"&&(s.value==="left"?t=0:s.value==="center"?t=50:s.value==="right"?t=100:s.value==="top"?n=0:s.value==="bottom"&&(n=100)),a?.type==="position-keyword"&&(a.value==="left"?t=0:a.value==="center"?n=50:a.value==="right"?t=100:a.value==="top"?n=0:a.value==="bottom"&&(n=100)),(s?.type==="px"||s?.type==="%"||s?.type==="em")&&(i=s?.type,t=Number(s.value)),(a?.type==="px"||a?.type==="%"||a?.type==="em")&&(r=a?.type,n=Number(a.value))}return{cx:Ou(t,i),cy:Ou(n,r)}}),i3i=Th(function(e){if(e.indexOf("linear")>-1||e.indexOf("radial")>-1){var t=GVi(e);return t.map(function(a){var l=a.type,c=a.orientation,u=a.colorStops;JVi(u);var d=u.map(function(b){return{offset:Ou(Number(b.length.value),"%"),color:qVi(b)}});if(l==="linear-gradient")return new Bie(qI.LinearGradient,{angle:c?t3i(c):I2,steps:d});if(l==="radial-gradient"&&(c||(c=[{type:"shape",value:"circle"}]),c[0].type==="shape"&&c[0].value==="circle")){var h=n3i(c[0].at),f=h.cx,p=h.cy,g;if(c[0].style){var m=c[0].style,v=m.type,y=m.value;v==="extent-keyword"?g=UVi(y):g=Ou(y,v)}return new Bie(qI.RadialGradient,{cx:f,cy:p,size:g,steps:d})}})}var n=e[0];if(e[1]==="("||e[2]==="("){if(n==="l"){var i=QVi.exec(e);if(i){var r,o=((r=i[2].match(Ybn))===null||r===void 0?void 0:r.map(function(a){return a.split(":")}))||[];return[new Bie(qI.LinearGradient,{angle:Ou(parseFloat(i[1]),"deg"),steps:o.map(function(a){var l=As(a,2),c=l[0],u=l[1];return{offset:Ou(Number(c)*100,"%"),color:u}})})]}}else if(n==="r"){var s=r3i(e);if(s)if((0,Wi.isString)(s))e=s;else return[new Bie(qI.RadialGradient,s)]}else if(n==="p")return o3i(e)}});function r3i(e){var t=ZVi.exec(e);if(t){var n,i=((n=t[4].match(Ybn))===null||n===void 0?void 0:n.map(function(r){return r.split(":")}))||[];return{cx:Ou(50,"%"),cy:Ou(50,"%"),steps:i.map(function(r){var o=As(r,2),s=o[0],a=o[1];return{offset:Ou(Number(s)*100,"%"),color:a}})}}return null}function o3i(e){var t=XVi.exec(e);if(t){var n=t[1],i=t[2];switch(n){case"a":n="repeat";break;case"x":n="repeat-x";break;case"y":n="repeat-y";break;case"n":n="no-repeat";break;default:n="no-repeat"}return{image:i,repetition:n}}return null}function L2(e){return e&&!!e.image}function Xhe(e){return e&&!(0,Wi.isNil)(e.r)&&!(0,Wi.isNil)(e.g)&&!(0,Wi.isNil)(e.b)}var eq=Th(function(e){if(L2(e))return Ps({repetition:"repeat"},e);if((0,Wi.isNil)(e)&&(e=""),e==="transparent")return Kbn;if(e==="currentColor")e="black";else if(e==="none")return Gbn;var t=i3i(e);if(t)return t;var n=R0e(e),i=[0,0,0,0];return n!==null&&(i[0]=n.r||0,i[1]=n.g||0,i[2]=n.b||0,i[3]=n.opacity),$Vi.apply(void 0,i)});function s3i(e,t){if(!(!Xhe(e)||!Xhe(t)))return[[Number(e.r),Number(e.g),Number(e.b),Number(e.alpha)],[Number(t.r),Number(t.g),Number(t.b),Number(t.alpha)],function(n){var i=n.slice();if(i[3])for(var r=0;r<3;r++)i[r]=Math.round((0,Wi.clamp)(i[r],0,255));return i[3]=(0,Wi.clamp)(i[3],0,1),"rgba(".concat(i.join(","),")")}]}function XQ(e,t){if((0,Wi.isNil)(t))return Ou(0,"px");if(t="".concat(t).trim().toLowerCase(),isFinite(Number(t))){if("px".search(e)>=0)return Ou(Number(t),"px");if("deg".search(e)>=0)return Ou(Number(t),"deg")}var n=[];t=t.replace(e,function(r){return n.push(r),"U".concat(r)});var i="U(".concat(e.source,")");return n.map(function(r){return Ou(Number(t.replace(new RegExp("U".concat(r),"g"),"").replace(new RegExp(i,"g"),"*0")),r)})[0]}var Qbn=function(t){return XQ(new RegExp("px","g"),t)},a3i=Th(Qbn),l3i=function(t){return XQ(new RegExp("%","g"),t)};Th(l3i);var Zbn=function(t){return(0,Wi.isNumber)(t)||isFinite(Number(t))?Ou(Number(t)||0,"px"):XQ(new RegExp("px|%|em|rem","g"),t)},F7e=Th(Zbn),Xbn=function(t){return XQ(new RegExp("deg|rad|grad|turn","g"),t)},c3i=Th(Xbn);function u3i(e,t,n,i){var r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o="",s=e.value||0,a=t.value||0,l=R7e(e.unit),c=e.convertTo(l),u=t.convertTo(l);return c&&u?(s=c.value,a=u.value,o=O7e(e.unit)):(lp.isLength(e.unit)||lp.isLength(t.unit))&&(s=Sy(e,r,n),a=Sy(t,r,n),o="px"),[s,a,function(d){return d+o}]}function g0(e){var t=0;return e.unit===ir.kDegrees?t=e.value:e.unit===ir.kRadians?t=p0(Number(e.value)):e.unit===ir.kTurns?t=lVi(Number(e.value)):e.value&&(t=e.value),t}function zOt(e,t){var n;return Array.isArray(e)?n=e.map(function(i){return Number(i)}):(0,Wi.isString)(e)?n=e.split(" ").map(function(i){return Number(i)}):(0,Wi.isNumber)(e)&&(n=[e]),t===2?n.length===1?[n[0],n[0]]:[n[0],n[1]]:t===4?n.length===1?[n[0],n[0],n[0],n[0]]:n.length===2?[n[0],n[1],n[0],n[1]]:n.length===3?[n[0],n[1],n[2],n[1]]:[n[0],n[1],n[2],n[3]]:t==="even"&&n.length%2===1?[].concat(va(n),va(n)):n}function Sy(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e.unit===ir.kPixels)return Number(e.value);if(e.unit===ir.kPercentage&&n){var r=n.nodeName===qn.GROUP?n.getLocalBounds():n.getGeometryBounds();return(i?r.min[t]:0)+e.value/100*r.halfExtents[t]*2}return 0}var d3i=function(t){return XQ(/deg|rad|grad|turn|px|%/g,t)},h3i=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function f3i(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(e=e.toLowerCase().trim(),e==="none")return[];for(var t=/\s*([\w-]+)\(([^)]*)\)/g,n=[],i,r=0;i=t.exec(e);){if(i.index!==r)return[];if(r=i.index+i[0].length,h3i.indexOf(i[1])>-1&&n.push({name:i[1],params:i[2].split(" ").map(function(o){return d3i(o)||eq(o)})}),t.lastIndex===e.length)return n}return[]}function Jbn(e){return e.toString()}var e_n=function(t){return typeof t=="number"?Ou(t):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t)?Ou(Number(t)):Ou(0)},B7e=Th(e_n);Th(function(e){return(0,Wi.isString)(e)?e.split(" ").map(B7e):e.map(B7e)});function sZe(e,t){return[e,t,Jbn]}function aZe(e,t){return function(n,i){return[n,i,function(r){return Jbn((0,Wi.clamp)(r,e,t))}]}}function t_n(e,t){if(e.length===t.length)return[e,t,function(n){return n}]}function j7e(e){return e.parsedStyle.d.totalLength===0&&(e.parsedStyle.d.totalLength=(0,Wi.getTotalLength)(e.parsedStyle.d.absolutePath)),e.parsedStyle.d.totalLength}function p3i(e){return e.parsedStyle.points.totalLength===0&&(e.parsedStyle.points.totalLength=qzi(e.parsedStyle.points.points)),e.parsedStyle.points.totalLength}function g3i(e){for(var t=0;t<e.length;t++){var n=e[t-1],i=e[t],r=i[0];if(r==="M"&&n){var o=n[0],s=[i[1],i[2]],a=void 0;o==="L"||o==="M"?a=[n[1],n[2]]:(o==="C"||o==="A"||o==="Q")&&(a=[n[n.length-2],n[n.length-1]]),a&&Jhe(s,a)&&(e.splice(t,1),t--)}}}function m3i(e){for(var t=!1,n=e.length,i=0;i<n;i++){var r=e[i],o=r[0];if(o==="C"||o==="A"||o==="Q"){t=!0;break}}return t}function v3i(e){for(var t=[],n=[],i=[],r=0;r<e.length;r++){var o=e[r],s=o[0];s==="M"?(i.length&&(n.push(i),i=[]),i.push([o[1],o[2]])):s==="Z"?i.length&&(t.push(i),i=[]):i.push([o[1],o[2]])}return i.length>0&&n.push(i),{polygons:t,polylines:n}}function Jhe(e,t){return e[0]===t[0]&&e[1]===t[1]}function y3i(e,t){for(var n=[],i=[],r=[],o=0;o<e.length;o++){var s=e[o],a=s.currentPoint,l=s.params,c=s.prePoint,u=void 0;switch(s.command){case"Q":u=Gzi(c[0],c[1],l[1],l[2],l[3],l[4]);break;case"C":u=Wzi(c[0],c[1],l[1],l[2],l[3],l[4],l[5],l[6]);break;case"A":var d=s.arcParams;u=zzi(d.cx,d.cy,d.rx,d.ry,d.xRotation,d.startAngle,d.endAngle);break;default:n.push(a[0]),i.push(a[1]);break}u&&(s.box=u,n.push(u.x,u.x+u.width),i.push(u.y,u.y+u.height))}n=n.filter(function(w){return!Number.isNaN(w)&&w!==1/0&&w!==-1/0}),i=i.filter(function(w){return!Number.isNaN(w)&&w!==1/0&&w!==-1/0});var h=(0,Wi.min)(n),f=(0,Wi.min)(i),p=(0,Wi.max)(n),g=(0,Wi.max)(i);if(r.length===0)return{x:h,y:f,width:p-h,height:g-f};for(var m=0;m<r.length;m++){var v=r[m],y=v.currentPoint,b=void 0;y[0]===h?(b=jie(v,t),h-=b.xExtra):y[0]===p&&(b=jie(v,t),p+=b.xExtra),y[1]===f?(b=jie(v,t),f-=b.yExtra):y[1]===g&&(b=jie(v,t),g+=b.yExtra)}return{x:h,y:f,width:p-h,height:g-f}}function jie(e,t){var n=e.prePoint,i=e.currentPoint,r=e.nextPoint,o=Math.pow(i[0]-n[0],2)+Math.pow(i[1]-n[1],2),s=Math.pow(i[0]-r[0],2)+Math.pow(i[1]-r[1],2),a=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2),l=Math.acos((o+s-a)/(2*Math.sqrt(o)*Math.sqrt(s)));if(!l||Math.sin(l)===0||(0,Wi.isNumberEqual)(l,0))return{xExtra:0,yExtra:0};var c=Math.abs(Math.atan2(r[1]-i[1],r[0]-i[0])),u=Math.abs(Math.atan2(r[0]-i[0],r[1]-i[1]));c=c>Math.PI/2?Math.PI-c:c,u=u>Math.PI/2?Math.PI-u:u;var d={xExtra:Math.cos(l/2-c)*(t/2*(1/Math.sin(l/2)))-t/2||0,yExtra:Math.cos(u-l/2)*(t/2*(1/Math.sin(l/2)))-t/2||0};return d}function VOt(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}var HOt=function(t,n){var i=t.x*n.x+t.y*n.y,r=Math.sqrt((Math.pow(t.x,2)+Math.pow(t.y,2))*(Math.pow(n.x,2)+Math.pow(n.y,2))),o=t.x*n.y-t.y*n.x<0?-1:1,s=o*Math.acos(i/r);return s},WOt=function(t,n,i,r,o,s,a,l){n=Math.abs(n),i=Math.abs(i),r=(0,Wi.mod)(r,360);var c=vc(r);if(t.x===a.x&&t.y===a.y)return{x:t.x,y:t.y,ellipticalArcAngle:0};if(n===0||i===0)return{x:0,y:0,ellipticalArcAngle:0};var u=(t.x-a.x)/2,d=(t.y-a.y)/2,h={x:Math.cos(c)*u+Math.sin(c)*d,y:-Math.sin(c)*u+Math.cos(c)*d},f=Math.pow(h.x,2)/Math.pow(n,2)+Math.pow(h.y,2)/Math.pow(i,2);f>1&&(n*=Math.sqrt(f),i*=Math.sqrt(f));var p=Math.pow(n,2)*Math.pow(i,2)-Math.pow(n,2)*Math.pow(h.y,2)-Math.pow(i,2)*Math.pow(h.x,2),g=Math.pow(n,2)*Math.pow(h.y,2)+Math.pow(i,2)*Math.pow(h.x,2),m=p/g;m=m<0?0:m;var v=(o!==s?1:-1)*Math.sqrt(m),y={x:v*(n*h.y/i),y:v*(-(i*h.x)/n)},b={x:Math.cos(c)*y.x-Math.sin(c)*y.y+(t.x+a.x)/2,y:Math.sin(c)*y.x+Math.cos(c)*y.y+(t.y+a.y)/2},w={x:(h.x-y.x)/n,y:(h.y-y.y)/i},E=HOt({x:1,y:0},w),A={x:(-h.x-y.x)/n,y:(-h.y-y.y)/i},D=HOt(w,A);!s&&D>0?D-=2*Math.PI:s&&D<0&&(D+=2*Math.PI),D%=2*Math.PI;var T=E+D*l,M=n*Math.cos(T),P=i*Math.sin(T),F={x:Math.cos(c)*M-Math.sin(c)*P+b.x,y:Math.sin(c)*M+Math.cos(c)*P+b.y,ellipticalArcStartAngle:E,ellipticalArcEndAngle:E+D,ellipticalArcAngle:T,ellipticalArcCenter:b,resultantRx:n,resultantRy:i};return F};function b3i(e){for(var t=[],n=null,i=null,r=null,o=0,s=e.length,a=0;a<s;a++){var l=e[a];i=e[a+1];var c=l[0],u={command:c,prePoint:n,params:l,startTangent:null,endTangent:null,currentPoint:null,nextPoint:null,arcParams:null,box:null,cubicParams:null};switch(c){case"M":r=[l[1],l[2]],o=a;break;case"A":var d=_3i(n,l);u.arcParams=d;break}if(c==="Z")n=r,i=e[o+1];else{var h=l.length;n=[l[h-2],l[h-1]]}i&&i[0]==="Z"&&(i=e[o],t[o]&&(t[o].prePoint=n)),u.currentPoint=n,t[o]&&Jhe(n,t[o].currentPoint)&&(t[o].prePoint=u.prePoint);var f=i?[i[i.length-2],i[i.length-1]]:null;u.nextPoint=f;var p=u.prePoint;if(["L","H","V"].includes(c))u.startTangent=[p[0]-n[0],p[1]-n[1]],u.endTangent=[n[0]-p[0],n[1]-p[1]];else if(c==="Q"){var g=[l[1],l[2]];u.startTangent=[p[0]-g[0],p[1]-g[1]],u.endTangent=[n[0]-g[0],n[1]-g[1]]}else if(c==="T"){var m=t[a-1],v=VOt(m.currentPoint,p);m.command==="Q"?(u.command="Q",u.startTangent=[p[0]-v[0],p[1]-v[1]],u.endTangent=[n[0]-v[0],n[1]-v[1]]):(u.command="TL",u.startTangent=[p[0]-n[0],p[1]-n[1]],u.endTangent=[n[0]-p[0],n[1]-p[1]])}else if(c==="C"){var y=[l[1],l[2]],b=[l[3],l[4]];u.startTangent=[p[0]-y[0],p[1]-y[1]],u.endTangent=[n[0]-b[0],n[1]-b[1]],u.startTangent[0]===0&&u.startTangent[1]===0&&(u.startTangent=[y[0]-b[0],y[1]-b[1]]),u.endTangent[0]===0&&u.endTangent[1]===0&&(u.endTangent=[b[0]-y[0],b[1]-y[1]])}else if(c==="S"){var w=t[a-1],E=VOt(w.currentPoint,p),A=[l[1],l[2]];w.command==="C"?(u.command="C",u.startTangent=[p[0]-E[0],p[1]-E[1]],u.endTangent=[n[0]-A[0],n[1]-A[1]]):(u.command="SQ",u.startTangent=[p[0]-A[0],p[1]-A[1]],u.endTangent=[n[0]-A[0],n[1]-A[1]])}else if(c==="A"){var D=UOt(u,0),T=D.x,M=D.y,P=UOt(u,1,!1),F=P.x,N=P.y;u.startTangent=[T,M],u.endTangent=[F,N]}t.push(u)}return t}function UOt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=e.arcParams,r=i.rx,o=r===void 0?0:r,s=i.ry,a=s===void 0?0:s,l=i.xRotation,c=i.arcFlag,u=i.sweepFlag,d=WOt({x:e.prePoint[0],y:e.prePoint[1]},o,a,l,!!c,!!u,{x:e.currentPoint[0],y:e.currentPoint[1]},t),h=WOt({x:e.prePoint[0],y:e.prePoint[1]},o,a,l,!!c,!!u,{x:e.currentPoint[0],y:e.currentPoint[1]},n?t+.005:t-.005),f=h.x-d.x,p=h.y-d.y,g=Math.sqrt(f*f+p*p);return{x:-f/g,y:-p/g}}function zie(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function z7e(e,t){return zie(e)*zie(t)?(e[0]*t[0]+e[1]*t[1])/(zie(e)*zie(t)):1}function $Ot(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(z7e(e,t))}function _3i(e,t){var n=t[1],i=t[2],r=(0,Wi.mod)(vc(t[3]),Math.PI*2),o=t[4],s=t[5],a=e[0],l=e[1],c=t[6],u=t[7],d=Math.cos(r)*(a-c)/2+Math.sin(r)*(l-u)/2,h=-1*Math.sin(r)*(a-c)/2+Math.cos(r)*(l-u)/2,f=d*d/(n*n)+h*h/(i*i);f>1&&(n*=Math.sqrt(f),i*=Math.sqrt(f));var p=n*n*(h*h)+i*i*(d*d),g=p?Math.sqrt((n*n*(i*i)-p)/p):1;o===s&&(g*=-1),isNaN(g)&&(g=0);var m=i?g*n*h/i:0,v=n?g*-i*d/n:0,y=(a+c)/2+Math.cos(r)*m-Math.sin(r)*v,b=(l+u)/2+Math.sin(r)*m+Math.cos(r)*v,w=[(d-m)/n,(h-v)/i],E=[(-1*d-m)/n,(-1*h-v)/i],A=$Ot([1,0],w),D=$Ot(w,E);return z7e(w,E)<=-1&&(D=Math.PI),z7e(w,E)>=1&&(D=0),s===0&&D>0&&(D-=2*Math.PI),s===1&&D<0&&(D+=2*Math.PI),{cx:y,cy:b,rx:Jhe(e,[c,u])?0:n,ry:Jhe(e,[c,u])?0:i,startAngle:A,endAngle:A+D,xRotation:r,arcFlag:o,sweepFlag:s}}var n_n=function(t){if(t===""||Array.isArray(t)&&t.length===0)return{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:{x:0,y:0,width:0,height:0}};var n;try{n=(0,Wi.normalizePath)(t)}catch{n=(0,Wi.normalizePath)(""),console.error("[g]: Invalid SVG Path definition: ".concat(t))}g3i(n);var i=m3i(n),r=v3i(n),o=r.polygons,s=r.polylines,a=b3i(n),l=y3i(a,0),c=l.x,u=l.y,d=l.width,h=l.height;return{absolutePath:n,hasArc:i,segments:a,polygons:o,polylines:s,totalLength:0,rect:{x:Number.isFinite(c)?c:0,y:Number.isFinite(u)?u:0,width:Number.isFinite(d)?d:0,height:Number.isFinite(h)?h:0}}},w3i=Th(n_n);function i_n(e){return(0,Wi.isString)(e)?w3i(e):n_n(e)}function C3i(e,t,n){var i=e.curve,r=t.curve;(!i||i.length===0)&&(i=(0,Wi.path2Curve)(e.absolutePath,!1),e.curve=i),(!r||r.length===0)&&(r=(0,Wi.path2Curve)(t.absolutePath,!1),t.curve=r);var o=[i,r];i.length!==r.length&&(o=(0,Wi.equalizeSegments)(i,r));var s=(0,Wi.getDrawDirection)(o[0])!==(0,Wi.getDrawDirection)(o[1])?(0,Wi.reverseCurve)(o[0]):(0,Wi.clonePath)(o[0]);return[s,(0,Wi.getRotatedCurve)(o[1],s),function(a){return a}]}function S3i(e,t){var n;return(0,Wi.isString)(e)?n=e.split(" ").map(function(i){var r=i.split(","),o=As(r,2),s=o[0],a=o[1];return[Number(s),Number(a)]}):n=e,{points:n,totalLength:0,segments:[]}}function x3i(e,t){return[e.points,t.points,function(n){return n}]}var sd=null,E8=/\s*(\w+)\(([^)]*)\)/g;function i0(e){return function(t){var n=0;return e.map(function(i){return i===sd?t[n++]:i})}}function IM(e){return e}var eK={matrix:["NNNNNN",[sd,sd,0,0,sd,sd,0,0,0,0,1,0,sd,sd,0,1],IM],matrix3d:["NNNNNNNNNNNNNNNN",IM],rotate:["A"],rotateX:["A"],rotateY:["A"],rotateZ:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",i0([sd,sd,new lp(1)]),IM],scaleX:["N",i0([sd,new lp(1),new lp(1)]),i0([sd,new lp(1)])],scaleY:["N",i0([new lp(1),sd,new lp(1)]),i0([new lp(1),sd])],scaleZ:["N",i0([new lp(1),new lp(1),sd])],scale3d:["NNN",IM],skew:["Aa",null,IM],skewX:["A",null,i0([sd,I2])],skewY:["A",null,i0([I2,sd])],translate:["Tt",i0([sd,sd,A1]),IM],translateX:["T",i0([sd,A1,A1]),i0([sd,A1])],translateY:["T",i0([A1,sd,A1]),i0([A1,sd])],translateZ:["L",i0([A1,A1,sd])],translate3d:["TTL",IM]};function r_n(e){for(var t=[],n=e.length,i=0;i<n;i++){var r=e[i],o=r[0],s=r.slice(1);o==="translate"||o==="skew"?s.length===1&&s.push(0):o==="scale"&&s.length===1&&s.push(s[0]);var a=eK[o];if(!a)return[];var l=s.map(function(c){return Ou(c)});t.push({t:o,d:l})}return t}function o_n(e){if(Array.isArray(e))return r_n(e);if(e=(e||"none").trim(),e==="none")return[];var t=[],n,i=0;for(E8.lastIndex=0;n=E8.exec(e);){if(n.index!==i)return[];i=n.index+n[0].length;var r=n[1],o=eK[r];if(!o)return[];var s=n[2].split(","),a=o[0];if(a.length<s.length)return[];for(var l=[],c=0;c<a.length;c++){var u=s[c],d=a[c],h=void 0;if(u?h={A:function(p){return p.trim()==="0"?I2:c3i(p)},N:B7e,T:F7e,L:a3i}[d.toUpperCase()](u):h={a:I2,n:l[0],t:A1}[d],h===void 0)return[];l.push(h)}if(t.push({t:r,d:l}),E8.lastIndex===e.length)return t}return[]}function E3i(e){if(Array.isArray(e))return r_n(e);if(e=(e||"none").trim(),e==="none")return[];var t=[],n,i=0;for(E8.lastIndex=0;n=E8.exec(e);){if(n.index!==i)return[];i=n.index+n[0].length;var r=n[1],o=eK[r];if(!o)return[];var s=n[2].split(","),a=o[0];if(a.length<s.length)return[];for(var l=[],c=0;c<a.length;c++){var u=s[c],d=a[c],h=void 0;if(u?h={A:function(p){return p.trim()==="0"?I2:Xbn(p)},N:e_n,T:Zbn,L:Qbn}[d.toUpperCase()](u):h={a:I2,n:l[0],t:A1}[d],h===void 0)return[];l.push(h)}if(t.push({t:r,d:l}),E8.lastIndex===e.length)return t}return[]}function A3i(e){var t,n,i,r;switch(e.t){case"rotateX":return r=vc(g0(e.d[0])),[1,0,0,0,0,Math.cos(r),Math.sin(r),0,0,-Math.sin(r),Math.cos(r),0,0,0,0,1];case"rotateY":return r=vc(g0(e.d[0])),[Math.cos(r),0,-Math.sin(r),0,0,1,0,0,Math.sin(r),0,Math.cos(r),0,0,0,0,1];case"rotate":case"rotateZ":return r=vc(g0(e.d[0])),[Math.cos(r),Math.sin(r),0,0,-Math.sin(r),Math.cos(r),0,0,0,0,1,0,0,0,0,1];case"rotate3d":t=e.d[0].value,n=e.d[1].value,i=e.d[2].value,r=vc(g0(e.d[3]));var o=t*t+n*n+i*i;if(o===0)t=1,n=0,i=0;else if(o!==1){var s=Math.sqrt(o);t/=s,n/=s,i/=s}var a=Math.sin(r/2),l=a*Math.cos(r/2),c=a*a;return[1-2*(n*n+i*i)*c,2*(t*n*c+i*l),2*(t*i*c-n*l),0,2*(t*n*c-i*l),1-2*(t*t+i*i)*c,2*(n*i*c+t*l),0,2*(t*i*c+n*l),2*(n*i*c-t*l),1-2*(t*t+n*n)*c,0,0,0,0,1];case"scale":return[e.d[0].value,0,0,0,0,e.d[1].value,0,0,0,0,1,0,0,0,0,1];case"scaleX":return[e.d[0].value,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaleY":return[1,0,0,0,0,e.d[0].value,0,0,0,0,1,0,0,0,0,1];case"scaleZ":return[1,0,0,0,0,1,0,0,0,0,e.d[0].value,0,0,0,0,1];case"scale3d":return[e.d[0].value,0,0,0,0,e.d[1].value,0,0,0,0,e.d[2].value,0,0,0,0,1];case"skew":var u=vc(g0(e.d[0])),d=vc(g0(e.d[1]));return[1,Math.tan(d),0,0,Math.tan(u),1,0,0,0,0,1,0,0,0,0,1];case"skewX":return r=vc(g0(e.d[0])),[1,0,0,0,Math.tan(r),1,0,0,0,0,1,0,0,0,0,1];case"skewY":return r=vc(g0(e.d[0])),[1,Math.tan(r),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return t=Sy(e.d[0],0,null)||0,n=Sy(e.d[1],0,null)||0,[1,0,0,0,0,1,0,0,0,0,1,0,t,n,0,1];case"translateX":return t=Sy(e.d[0],0,null)||0,[1,0,0,0,0,1,0,0,0,0,1,0,t,0,0,1];case"translateY":return n=Sy(e.d[0],0,null)||0,[1,0,0,0,0,1,0,0,0,0,1,0,0,n,0,1];case"translateZ":return i=Sy(e.d[0],0,null)||0,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,i,1];case"translate3d":return t=Sy(e.d[0],0,null)||0,n=Sy(e.d[1],0,null)||0,i=Sy(e.d[2],0,null)||0,[1,0,0,0,0,1,0,0,0,0,1,0,t,n,i,1];case"perspective":var h=Sy(e.d[0],0,null)||0,f=h?-1/h:0;return[1,0,0,0,0,1,0,0,0,0,1,f,0,0,0,1];case"matrix":return[e.d[0].value,e.d[1].value,0,0,e.d[2].value,e.d[3].value,0,0,0,0,1,0,e.d[4].value,e.d[5].value,0,1];case"matrix3d":return e.d.map(function(p){return p.value})}}function D3i(e,t){return[e[0]*t[0]+e[4]*t[1]+e[8]*t[2]+e[12]*t[3],e[1]*t[0]+e[5]*t[1]+e[9]*t[2]+e[13]*t[3],e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]*t[3],e[3]*t[0]+e[7]*t[1]+e[11]*t[2]+e[15]*t[3],e[0]*t[4]+e[4]*t[5]+e[8]*t[6]+e[12]*t[7],e[1]*t[4]+e[5]*t[5]+e[9]*t[6]+e[13]*t[7],e[2]*t[4]+e[6]*t[5]+e[10]*t[6]+e[14]*t[7],e[3]*t[4]+e[7]*t[5]+e[11]*t[6]+e[15]*t[7],e[0]*t[8]+e[4]*t[9]+e[8]*t[10]+e[12]*t[11],e[1]*t[8]+e[5]*t[9]+e[9]*t[10]+e[13]*t[11],e[2]*t[8]+e[6]*t[9]+e[10]*t[10]+e[14]*t[11],e[3]*t[8]+e[7]*t[9]+e[11]*t[10]+e[15]*t[11],e[0]*t[12]+e[4]*t[13]+e[8]*t[14]+e[12]*t[15],e[1]*t[12]+e[5]*t[13]+e[9]*t[14]+e[13]*t[15],e[2]*t[12]+e[6]*t[13]+e[10]*t[14]+e[14]*t[15],e[3]*t[12]+e[7]*t[13]+e[11]*t[14]+e[15]*t[15]]}function T3i(e){return e.length===0?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:e.map(A3i).reduce(D3i)}function qOt(e){var t=[0,0,0],n=[1,1,1],i=[0,0,0],r=[0,0,0,1],o=[0,0,0,1];return fVi(T3i(e),t,n,i,r,o),[[t,n,i,o,r]]}var k3i=(function(){function e(i,r){for(var o=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],s=0;s<4;s++)for(var a=0;a<4;a++)for(var l=0;l<4;l++)o[s][a]+=r[s][l]*i[l][a];return o}function t(i){return i[0][2]===0&&i[0][3]===0&&i[1][2]===0&&i[1][3]===0&&i[2][0]===0&&i[2][1]===0&&i[2][2]===1&&i[2][3]===0&&i[3][2]===0&&i[3][3]===1}function n(i,r,o,s,a){for(var l=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],c=0;c<4;c++)l[c][3]=a[c];for(var u=0;u<3;u++)for(var d=0;d<3;d++)l[3][u]+=i[d]*l[d][u];var h=s[0],f=s[1],p=s[2],g=s[3],m=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];m[0][0]=1-2*(f*f+p*p),m[0][1]=2*(h*f-p*g),m[0][2]=2*(h*p+f*g),m[1][0]=2*(h*f+p*g),m[1][1]=1-2*(h*h+p*p),m[1][2]=2*(f*p-h*g),m[2][0]=2*(h*p-f*g),m[2][1]=2*(f*p+h*g),m[2][2]=1-2*(h*h+f*f),l=e(l,m);var v=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];o[2]&&(v[2][1]=o[2],l=e(l,v)),o[1]&&(v[2][1]=0,v[2][0]=o[0],l=e(l,v)),o[0]&&(v[2][0]=0,v[1][0]=o[0],l=e(l,v));for(var y=0;y<3;y++)for(var b=0;b<3;b++)l[y][b]*=r[y];return t(l)?[l[0][0],l[0][1],l[1][0],l[1][1],l[3][0],l[3][1]]:l[0].concat(l[1],l[2],l[3])}return n})();function I3i(e){return e.toFixed(6).replace(".000000","")}function fMe(e,t){var n,i;return e.decompositionPair!==t&&(e.decompositionPair=t,n=qOt(e)),t.decompositionPair!==e&&(t.decompositionPair=e,i=qOt(t)),n[0]===null||i[0]===null?[[!1],[!0],function(r){return r?t[0].d:e[0].d}]:(n[0].push(0),i[0].push(1),[n,i,function(r){var o=N3i(n[0][3],i[0][3],r[5]),s=k3i(r[0],r[1],r[2],o,r[4]),a=s.map(I3i).join(",");return a}])}function L3i(e,t){for(var n=0,i=0;i<e.length;i++)n+=e[i]*t[i];return n}function N3i(e,t,n){var i=L3i(e,t);i=(0,Wi.clamp)(i,-1,1);var r=[];if(i===1)r=e;else for(var o=Math.acos(i),s=Math.sin(n*o)*1/Math.sqrt(1-i*i),a=0;a<4;a++)r.push(e[a]*(Math.cos(n*o)-i*s)+t[a]*s);return r}function pMe(e){return e.replace(/[XY]/,"")}function gMe(e){return e.replace(/(X|Y|Z|3d)?$/,"3d")}var P3i=function(t,n){return t==="perspective"&&n==="perspective"||(t==="matrix"||t==="matrix3d")&&(n==="matrix"||n==="matrix3d")};function M3i(e,t,n){var i=!1;if(!e.length||!t.length){e.length||(i=!0,e=t,t=[]);for(var r=function(){var F=e[o],N=F.t,j=F.d,W=N.substring(0,5)==="scale"?1:0;t.push({t:N,d:j.map(function(J){return typeof J=="number"?Ou(W):Ou(W,J.unit)})})},o=0;o<e.length;o++)r()}var s=[],a=[],l=[];if(e.length!==t.length){var c=fMe(e,t);s=[c[0]],a=[c[1]],l=[["matrix",[c[2]]]]}else for(var u=0;u<e.length;u++){var d=e[u].t,h=t[u].t,f=e[u].d,p=t[u].d,g=eK[d],m=eK[h],v=void 0;if(P3i(d,h)){var y=fMe([e[u]],[t[u]]);s.push(y[0]),a.push(y[1]),l.push(["matrix",[y[2]]]);continue}else if(d===h)v=d;else if(g[2]&&m[2]&&pMe(d)===pMe(h))v=pMe(d),f=g[2](f),p=m[2](p);else if(g[1]&&m[1]&&gMe(d)===gMe(h))v=gMe(d),f=g[1](f),p=m[1](p);else{var b=fMe(e,t);s=[b[0]],a=[b[1]],l=[["matrix",[b[2]]]];break}for(var w=[],E=[],A=[],D=0;D<f.length;D++){var T=u3i(f[D],p[D],n,!1,D);w[D]=T[0],E[D]=T[1],A.push(T[2])}s.push(w),a.push(E),l.push([v,A])}if(i){var M=s;s=a,a=M}return[s,a,function(P){return P.map(function(F,N){var j=F.map(function(W,J){return l[N][1][J](W)}).join(",");return l[N][0]==="matrix"&&j.split(",").length===16&&(l[N][0]="matrix3d"),l[N][0]==="matrix3d"&&j.split(",").length===6&&(l[N][0]="matrix"),"".concat(l[N][0],"(").concat(j,")")}).join(" ")}]}var O3i=Th(function(e){if((0,Wi.isString)(e)){if(e==="text-anchor")return[Ou(0,"px"),Ou(0,"px")];var t=e.split(" ");return t.length===1&&(t[0]==="top"||t[0]==="bottom"?(t[1]=t[0],t[0]="center"):t[1]="center"),t.length!==2?null:[F7e(GOt(t[0])),F7e(GOt(t[1]))]}return[Ou(e[0]||0,"px"),Ou(e[1]||0,"px")]});function GOt(e){return e==="center"?"50%":e==="left"||e==="top"?"0%":e==="right"||e==="bottom"?"100%":e}var lZe=[{n:"display",k:["none"]},{n:"opacity",int:!0,inh:!0,d:"1",syntax:tr.OPACITY_VALUE},{n:"fillOpacity",int:!0,inh:!0,d:"1",syntax:tr.OPACITY_VALUE},{n:"strokeOpacity",int:!0,inh:!0,d:"1",syntax:tr.OPACITY_VALUE},{n:"fill",int:!0,k:["none"],d:"none",syntax:tr.PAINT},{n:"fillRule",k:["nonzero","evenodd"],d:"nonzero"},{n:"stroke",int:!0,k:["none"],d:"none",syntax:tr.PAINT,l:!0},{n:"shadowType",k:["inner","outer","both"],d:"outer",l:!0},{n:"shadowColor",int:!0,syntax:tr.COLOR},{n:"shadowOffsetX",int:!0,l:!0,d:"0",syntax:tr.LENGTH_PERCENTAGE},{n:"shadowOffsetY",int:!0,l:!0,d:"0",syntax:tr.LENGTH_PERCENTAGE},{n:"shadowBlur",int:!0,l:!0,d:"0",syntax:tr.SHADOW_BLUR},{n:"lineWidth",int:!0,inh:!0,d:"1",l:!0,a:["strokeWidth"],syntax:tr.LENGTH_PERCENTAGE},{n:"increasedLineWidthForHitTesting",inh:!0,d:"0",l:!0,syntax:tr.LENGTH_PERCENTAGE},{n:"lineJoin",inh:!0,l:!0,a:["strokeLinejoin"],k:["miter","bevel","round"],d:"miter"},{n:"lineCap",inh:!0,l:!0,a:["strokeLinecap"],k:["butt","round","square"],d:"butt"},{n:"lineDash",int:!0,inh:!0,k:["none"],a:["strokeDasharray"],syntax:tr.LENGTH_PERCENTAGE_12},{n:"lineDashOffset",int:!0,inh:!0,d:"0",a:["strokeDashoffset"],syntax:tr.LENGTH_PERCENTAGE},{n:"offsetPath",syntax:tr.DEFINED_PATH},{n:"offsetDistance",int:!0,syntax:tr.OFFSET_DISTANCE},{n:"dx",int:!0,l:!0,d:"0",syntax:tr.LENGTH_PERCENTAGE},{n:"dy",int:!0,l:!0,d:"0",syntax:tr.LENGTH_PERCENTAGE},{n:"zIndex",ind:!0,int:!0,d:"0",k:["auto"],syntax:tr.Z_INDEX},{n:"visibility",k:["visible","hidden"],ind:!0,inh:!0,int:!0,d:"visible"},{n:"pointerEvents",inh:!0,k:["none","auto","stroke","fill","painted","visible","visiblestroke","visiblefill","visiblepainted","all"],d:"auto"},{n:"filter",ind:!0,l:!0,k:["none"],d:"none",syntax:tr.FILTER},{n:"clipPath",syntax:tr.DEFINED_PATH},{n:"textPath",syntax:tr.DEFINED_PATH},{n:"textPathSide",k:["left","right"],d:"left"},{n:"textPathStartOffset",l:!0,d:"0",syntax:tr.LENGTH_PERCENTAGE},{n:"transform",p:100,int:!0,k:["none"],d:"none",syntax:tr.TRANSFORM},{n:"transformOrigin",p:100,d:"0 0",l:!0,syntax:tr.TRANSFORM_ORIGIN},{n:"cx",int:!0,l:!0,d:"0",syntax:tr.COORDINATE},{n:"cy",int:!0,l:!0,d:"0",syntax:tr.COORDINATE},{n:"cz",int:!0,l:!0,d:"0",syntax:tr.COORDINATE},{n:"r",int:!0,l:!0,d:"0",syntax:tr.LENGTH_PERCENTAGE},{n:"rx",int:!0,l:!0,d:"0",syntax:tr.LENGTH_PERCENTAGE},{n:"ry",int:!0,l:!0,d:"0",syntax:tr.LENGTH_PERCENTAGE},{n:"x",int:!0,l:!0,d:"0",syntax:tr.COORDINATE},{n:"y",int:!0,l:!0,d:"0",syntax:tr.COORDINATE},{n:"z",int:!0,l:!0,d:"0",syntax:tr.COORDINATE},{n:"width",int:!0,l:!0,k:["auto","fit-content","min-content","max-content"],d:"0",syntax:tr.LENGTH_PERCENTAGE},{n:"height",int:!0,l:!0,k:["auto","fit-content","min-content","max-content"],d:"0",syntax:tr.LENGTH_PERCENTAGE},{n:"radius",int:!0,l:!0,d:"0",syntax:tr.LENGTH_PERCENTAGE_14},{n:"x1",int:!0,l:!0,syntax:tr.COORDINATE},{n:"y1",int:!0,l:!0,syntax:tr.COORDINATE},{n:"z1",int:!0,l:!0,syntax:tr.COORDINATE},{n:"x2",int:!0,l:!0,syntax:tr.COORDINATE},{n:"y2",int:!0,l:!0,syntax:tr.COORDINATE},{n:"z2",int:!0,l:!0,syntax:tr.COORDINATE},{n:"d",int:!0,l:!0,d:"",syntax:tr.PATH,p:50},{n:"points",int:!0,l:!0,syntax:tr.LIST_OF_POINTS,p:50},{n:"text",l:!0,d:"",syntax:tr.TEXT,p:50},{n:"textTransform",l:!0,inh:!0,k:["capitalize","uppercase","lowercase","none"],d:"none",syntax:tr.TEXT_TRANSFORM,p:51},{n:"font",l:!0},{n:"fontSize",int:!0,inh:!0,d:"16px",l:!0,syntax:tr.LENGTH_PERCENTAGE},{n:"fontFamily",l:!0,inh:!0,d:"sans-serif"},{n:"fontStyle",l:!0,inh:!0,k:["normal","italic","oblique"],d:"normal"},{n:"fontWeight",l:!0,inh:!0,k:["normal","bold","bolder","lighter"],d:"normal"},{n:"fontVariant",l:!0,inh:!0,k:["normal","small-caps"],d:"normal"},{n:"lineHeight",l:!0,syntax:tr.LENGTH,int:!0,d:"0"},{n:"letterSpacing",l:!0,syntax:tr.LENGTH,int:!0,d:"0"},{n:"miterLimit",l:!0,syntax:tr.NUMBER,d:function(t){return t===qn.PATH||t===qn.POLYGON||t===qn.POLYLINE?"4":"10"}},{n:"wordWrap",l:!0},{n:"wordWrapWidth",l:!0},{n:"maxLines",l:!0},{n:"textOverflow",l:!0,d:"clip"},{n:"leading",l:!0},{n:"textBaseline",l:!0,inh:!0,k:["top","hanging","middle","alphabetic","ideographic","bottom"],d:"alphabetic"},{n:"textAlign",l:!0,inh:!0,k:["start","center","middle","end","left","right"],d:"start"},{n:"markerStart",syntax:tr.MARKER},{n:"markerEnd",syntax:tr.MARKER},{n:"markerMid",syntax:tr.MARKER},{n:"markerStartOffset",syntax:tr.LENGTH,l:!0,int:!0,d:"0"},{n:"markerEndOffset",syntax:tr.LENGTH,l:!0,int:!0,d:"0"}],R3i=new Set(lZe.filter(function(e){return!!e.l}).map(function(e){return e.n})),s_n={},F3i=(function(){function e(t){var n=this;_i(this,e),this.runtime=t,lZe.forEach(function(i){n.registerMetadata(i)})}return wi(e,[{key:"registerMetadata",value:function(n){[n.n].concat(va(n.a||[])).forEach(function(i){s_n[i]=n})}},{key:"getPropertySyntax",value:function(n){return this.runtime.CSSPropertySyntaxFactory[n]}},{key:"processProperties",value:function(n,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{forceUpdateGeometry:!1};Object.assign(n.attributes,i);var o=n.parsedStyle.clipPath,s=n.parsedStyle.offsetPath;B3i(n,i);var a=!!r.forceUpdateGeometry;if(!a){for(var l in i)if(R3i.has(l)){a=!0;break}}var c=a_n(n);c.has("fill")&&i.fill&&(n.parsedStyle.fill=eq(i.fill)),c.has("stroke")&&i.stroke&&(n.parsedStyle.stroke=eq(i.stroke)),c.has("shadowColor")&&i.shadowColor&&(n.parsedStyle.shadowColor=eq(i.shadowColor)),c.has("filter")&&i.filter&&(n.parsedStyle.filter=f3i(i.filter)),c.has("radius")&&!(0,Wi.isNil)(i.radius)&&(n.parsedStyle.radius=zOt(i.radius,4)),c.has("lineDash")&&!(0,Wi.isNil)(i.lineDash)&&(n.parsedStyle.lineDash=zOt(i.lineDash,"even")),c.has("points")&&i.points&&(n.parsedStyle.points=S3i(i.points)),c.has("d")&&i.d===""&&(n.parsedStyle.d=Ps({},Ubn)),c.has("d")&&i.d&&(n.parsedStyle.d=i_n(i.d)),c.has("textTransform")&&i.textTransform&&this.runtime.CSSPropertySyntaxFactory[tr.TEXT_TRANSFORM].calculator(null,null,{value:i.textTransform},n,null),c.has("clipPath")&&!(0,Wi.isUndefined)(i.clipPath)&&this.runtime.CSSPropertySyntaxFactory[tr.DEFINED_PATH].calculator("clipPath",o,i.clipPath,n,this.runtime),c.has("offsetPath")&&i.offsetPath&&this.runtime.CSSPropertySyntaxFactory[tr.DEFINED_PATH].calculator("offsetPath",s,i.offsetPath,n,this.runtime),c.has("transform")&&i.transform&&(n.parsedStyle.transform=o_n(i.transform)),c.has("transformOrigin")&&i.transformOrigin&&(n.parsedStyle.transformOrigin=O3i(i.transformOrigin)),c.has("markerStart")&&i.markerStart&&(n.parsedStyle.markerStart=this.runtime.CSSPropertySyntaxFactory[tr.MARKER].calculator(null,i.markerStart,i.markerStart,null,null)),c.has("markerEnd")&&i.markerEnd&&(n.parsedStyle.markerEnd=this.runtime.CSSPropertySyntaxFactory[tr.MARKER].calculator(null,i.markerEnd,i.markerEnd,null,null)),c.has("markerMid")&&i.markerMid&&(n.parsedStyle.markerMid=this.runtime.CSSPropertySyntaxFactory[tr.MARKER].calculator("",i.markerMid,i.markerMid,null,null)),c.has("zIndex")&&!(0,Wi.isNil)(i.zIndex)&&this.runtime.CSSPropertySyntaxFactory[tr.Z_INDEX].postProcessor(n),c.has("offsetDistance")&&!(0,Wi.isNil)(i.offsetDistance)&&this.runtime.CSSPropertySyntaxFactory[tr.OFFSET_DISTANCE].postProcessor(n),c.has("transform")&&i.transform&&this.runtime.CSSPropertySyntaxFactory[tr.TRANSFORM].postProcessor(n),c.has("transformOrigin")&&i.transformOrigin&&this.runtime.CSSPropertySyntaxFactory[tr.TRANSFORM_ORIGIN].postProcessor(n),a&&(n.geometry.dirty=!0,n.dirty(!0,!0),r.forceUpdateGeometry||this.runtime.sceneGraphService.dirtyToRoot(n))}},{key:"updateGeometry",value:function(n){var i=n.nodeName,r=this.runtime.geometryUpdaterFactory[i];if(r){var o=n.geometry;o.contentBounds||(o.contentBounds=new mc),o.renderBounds||(o.renderBounds=new mc);var s=n.parsedStyle,a=r.update(s,n),l=a.cx,c=l===void 0?0:l,u=a.cy,d=u===void 0?0:u,h=a.cz,f=h===void 0?0:h,p=a.hwidth,g=p===void 0?0:p,m=a.hheight,v=m===void 0?0:m,y=a.hdepth,b=y===void 0?0:y,w=[Math.abs(g),Math.abs(v),b],E=s.stroke,A=s.lineWidth,D=A===void 0?1:A,T=s.increasedLineWidthForHitTesting,M=T===void 0?0:T,P=s.shadowType,F=P===void 0?"outer":P,N=s.shadowColor,j=s.filter,W=j===void 0?[]:j,J=s.transformOrigin,ee=[c,d,f];o.contentBounds.update(ee,w);var Q=i===qn.POLYLINE||i===qn.POLYGON||i===qn.PATH?Math.SQRT2:.5,H=E&&!E.isNone;if(H){var q=((D||0)+(M||0))*Q;w[0]+=q,w[1]+=q}if(o.renderBounds.update(ee,w),N&&F&&F!=="inner"){var le=o.renderBounds,Y=le.min,G=le.max,pe=s.shadowBlur,U=s.shadowOffsetX,K=s.shadowOffsetY,ie=pe||0,ce=U||0,de=K||0,oe=Y[0]-ie+ce,me=G[0]+ie+ce,Ce=Y[1]-ie+de,Se=G[1]+ie+de;Y[0]=Math.min(Y[0],oe),G[0]=Math.max(G[0],me),Y[1]=Math.min(Y[1],Ce),G[1]=Math.max(G[1],Se),o.renderBounds.setMinMax(Y,G)}W.forEach(function(he){var Ie=he.name,Be=he.params;if(Ie==="blur"){var ze=Be[0].value;o.renderBounds.update(o.renderBounds.center,gt.vec3.add(o.renderBounds.halfExtents,o.renderBounds.halfExtents,[ze,ze,0]))}else if(Ie==="drop-shadow"){var Ye=Be[0].value,it=Be[1].value,ft=Be[2].value,ct=o.renderBounds,et=ct.min,ut=ct.max,wt=et[0]-ft+Ye,pt=ut[0]+ft+Ye,_t=et[1]-ft+it,Rt=ut[1]+ft+it;et[0]=Math.min(et[0],wt),ut[0]=Math.max(ut[0],pt),et[1]=Math.min(et[1],_t),ut[1]=Math.max(ut[1],Rt),o.renderBounds.setMinMax(et,ut)}}),n.geometry.dirty=!1;var De=g<0,Me=v<0,qe=(De?-1:1)*(J?Sy(J[0],0,n,!0):0),$=(Me?-1:1)*(J?Sy(J[1],1,n,!0):0);(qe||$)&&n.setOrigin(qe,$)}}},{key:"updateSizeAttenuation",value:function(n,i){n.style.isSizeAttenuation?(n.style.rawLineWidth||(n.style.rawLineWidth=n.style.lineWidth),n.style.lineWidth=(n.style.rawLineWidth||1)/i,n.nodeName===qn.CIRCLE&&(n.style.rawR||(n.style.rawR=n.style.r),n.style.r=(n.style.rawR||1)/i)):(n.style.rawLineWidth&&(n.style.lineWidth=n.style.rawLineWidth,delete n.style.rawLineWidth),n.nodeName===qn.CIRCLE&&n.style.rawR&&(n.style.r=n.style.rawR,delete n.style.rawR))}}])})();function B3i(e,t){var n=a_n(e);for(var i in t)n.has(i)&&(e.parsedStyle[i]=t[i])}function a_n(e){return e.constructor.PARSED_STYLE_LIST}var j3i=(function(){function e(){_i(this,e),this.mixer=sZe}return wi(e,[{key:"calculator",value:function(n,i,r,o){return g0(r)}}])})(),z3i=(function(){function e(){_i(this,e)}return wi(e,[{key:"calculator",value:function(n,i,r,o,s){return r instanceof Iw&&(r=null),s.sceneGraphService.updateDisplayObjectDependency(n,i,r,o),n==="clipPath"&&o.forEach(function(a){a.childNodes.length===0&&s.sceneGraphService.dirtyToRoot(a)}),r}}])})(),V3i=(function(){function e(){_i(this,e),this.parser=eq,this.mixer=s3i}return wi(e,[{key:"calculator",value:function(n,i,r,o){return r instanceof Iw?r.value==="none"?Gbn:Kbn:r}}])})(),H3i=(function(){function e(){_i(this,e)}return wi(e,[{key:"calculator",value:function(n,i,r){return r instanceof Iw?[]:r}}])})();function KOt(e){var t=e.parsedStyle,n=t.fontSize;return(0,Wi.isNil)(n)?null:n}var V7e=(function(){function e(){_i(this,e),this.mixer=sZe}return wi(e,[{key:"calculator",value:(function(n,i,r,o,s){if((0,Wi.isNumber)(r))return r;if(lp.isRelativeUnit(r.unit)){if(r.unit===ir.kPercentage)return 0;if(r.unit===ir.kEms){if(o.parentNode){var a=KOt(o.parentNode);if(a)return a*=r.value,a}return 0}if(r.unit===ir.kRems){var l;if(o!=null&&(l=o.ownerDocument)!==null&&l!==void 0&&l.documentElement){var c=KOt(o.ownerDocument.documentElement);if(c)return c*=r.value,c}return 0}}else return r.value})}])})(),W3i=(function(){function e(){_i(this,e),this.mixer=t_n}return wi(e,[{key:"calculator",value:function(n,i,r){return r.map(function(o){return o.value})}}])})(),U3i=(function(){function e(){_i(this,e),this.mixer=t_n}return wi(e,[{key:"calculator",value:function(n,i,r){return r.map(function(o){return o.value})}}])})(),$3i=(function(){function e(){_i(this,e)}return wi(e,[{key:"calculator",value:function(n,i,r,o){var s;r instanceof Iw&&(r=null);var a=(s=r)===null||s===void 0?void 0:s.cloneNode(!0);return a&&(a.style.isMarker=!0),a}}])})(),q3i=(function(){function e(){_i(this,e),this.mixer=sZe}return wi(e,[{key:"calculator",value:function(n,i,r){return r.value}}])})(),G3i=(function(){function e(){_i(this,e),this.mixer=aZe(0,1)}return wi(e,[{key:"calculator",value:function(n,i,r){return r.value}},{key:"postProcessor",value:function(n){var i=n.parsedStyle,r=i.offsetPath,o=i.offsetDistance;if(r){var s=r.nodeName;if(s===qn.LINE||s===qn.PATH||s===qn.POLYLINE){var a=r.getPoint(o);a&&n.setLocalPosition(a.x,a.y)}}}}])})(),K3i=(function(){function e(){_i(this,e),this.mixer=aZe(0,1)}return wi(e,[{key:"calculator",value:function(n,i,r){return r.value}}])})(),Y3i=(function(){function e(){_i(this,e),this.parser=i_n,this.mixer=C3i}return wi(e,[{key:"calculator",value:function(n,i,r){return r instanceof Iw&&r.value==="unset"?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new q9(0,0,0,0)}:r}}])})(),Q3i=wi(function e(){_i(this,e),this.mixer=x3i}),Z3i=(function(e){function t(){var n;_i(this,t);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return n=Hs(this,t,[].concat(r)),n.mixer=aZe(0,1/0),n}return Ws(t,e),wi(t)})(V7e),X3i=(function(){function e(){_i(this,e)}return wi(e,[{key:"calculator",value:function(n,i,r,o){return r instanceof Iw?r.value==="unset"?"":r.value:"".concat(r)}},{key:"postProcessor",value:function(n){n.nodeValue="".concat(n.parsedStyle.text)||""}}])})(),J3i=(function(){function e(){_i(this,e)}return wi(e,[{key:"calculator",value:function(n,i,r,o){var s=o.getAttribute("text");if(s){var a=s;r.value==="capitalize"?a=s.charAt(0).toUpperCase()+s.slice(1):r.value==="lowercase"?a=s.toLowerCase():r.value==="uppercase"&&(a=s.toUpperCase()),o.parsedStyle.text=a}return r.value}}])})(),mMe=new WeakMap;function eHi(e,t,n){if(e){var i=typeof e=="string"?document.getElementById(e):e;mMe.has(i)&&mMe.get(i).destroy(n),mMe.set(i,t)}}var cZe=typeof window<"u"&&typeof window.document<"u";function tHi(e){return!!e.getAttribute}function nHi(e,t){for(var n=0,i=e.length;n<i;){var r=n+i>>>1;l_n(e[r],t)<0?n=r+1:i=r}return n}function l_n(e,t){var n=Number(e.parsedStyle.zIndex||0),i=Number(t.parsedStyle.zIndex||0);if(n===i){var r=e.parentNode;if(r){var o=r.childNodes||[];return o.indexOf(e)-o.indexOf(t)}}return n-i}function c_n(e){var t=e;do{var n,i=(n=t.parsedStyle)===null||n===void 0?void 0:n.clipPath;if(i)return t;t=t.parentElement}while(t!==null);return null}var YOt="px";function iHi(e,t,n){cZe&&e.style&&(e.style.width=t+YOt,e.style.height=n+YOt)}function u_n(e,t){if(cZe)return document.defaultView.getComputedStyle(e,null).getPropertyValue(t)}function rHi(e){var t=u_n(e,"width");return t==="auto"?e.offsetWidth:parseFloat(t)}function oHi(e){var t=u_n(e,"height");return t==="auto"?e.offsetHeight:parseFloat(t)}var sHi=1,aHi={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},H7e=typeof performance=="object"&&performance.now?performance:Date;function efe(e){return e.nodeName===qn.FRAGMENT?!0:e.getRootNode().nodeName===qn.FRAGMENT}function PF(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"auto",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=!1,r=!1,o=!!t&&!t.isNone,s=!!n&&!n.isNone;return e==="visiblepainted"||e==="painted"||e==="auto"?(i=o,r=s):e==="visiblefill"||e==="fill"?i=!0:e==="visiblestroke"||e==="stroke"?r=!0:(e==="visible"||e==="all")&&(i=!0,r=!0),[i,r]}var lHi=1,cHi=function(){return lHi++},Bx=typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:{},uHi=Date.now(),dHi=function(){return Bx.performance&&typeof Bx.performance.now=="function"?Bx.performance.now():Date.now()-uHi},iU={},QOt=Date.now(),hHi=function(t){if(typeof t!="function")throw new TypeError("".concat(t," is not a function"));var n=Date.now(),i=n-QOt,r=i>16?0:16-i,o=cHi();return iU[o]=t,Object.keys(iU).length>1||setTimeout(function(){QOt=n;var s=iU;iU={},Object.keys(s).forEach(function(a){return s[a](dHi())})},r),o},fHi=function(t){delete iU[t]},pHi=["","webkit","moz","ms","o"],d_n=function(t){return typeof t!="string"?hHi:t===""?Bx.requestAnimationFrame:Bx["".concat(t,"RequestAnimationFrame")]},gHi=function(t){return typeof t!="string"?fHi:t===""?Bx.cancelAnimationFrame:Bx["".concat(t,"CancelAnimationFrame")]||Bx["".concat(t,"CancelRequestAnimationFrame")]},mHi=function(t,n){for(var i=0;t[i]!==void 0;){if(n(t[i]))return t[i];i+=1}},h_n=mHi(pHi,function(e){return!!d_n(e)}),uZe=d_n(h_n),f_n=gHi(h_n);Bx.requestAnimationFrame=uZe;Bx.cancelAnimationFrame=f_n;var vHi=(function(){function e(){_i(this,e),this.callbacks=[]}return wi(e,[{key:"getCallbacksNum",value:function(){return this.callbacks.length}},{key:"tapPromise",value:function(n,i){this.callbacks.push(i)}},{key:"promise",value:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return Promise.all(this.callbacks.map(function(o){return o.apply(void 0,i)}))}}])})(),yHi=(function(){function e(){_i(this,e),this.callbacks=[]}return wi(e,[{key:"tapPromise",value:function(n,i){this.callbacks.push(i)}},{key:"promise",value:(function(){var t=nN(wp().mark(function i(){var r,o,s,a,l=arguments;return wp().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(!this.callbacks.length){c.next=6;break}return c.next=1,(r=this.callbacks)[0].apply(r,l);case 1:o=c.sent,s=0;case 2:if(!(s<this.callbacks.length-1)){c.next=5;break}return a=this.callbacks[s],c.next=3,a(o);case 3:o=c.sent;case 4:s++,c.next=2;break;case 5:return c.abrupt("return",o);case 6:return c.abrupt("return",null);case 7:case"end":return c.stop()}},i,this)}));function n(){return t.apply(this,arguments)}return n})()}])})(),Pm=(function(){function e(){_i(this,e),this.callbacks=[]}return wi(e,[{key:"tap",value:function(n,i){this.callbacks.push(i)}},{key:"call",value:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var o=arguments;this.callbacks.forEach(function(s){s.apply(void 0,o)})}}])})(),vMe=(function(){function e(){_i(this,e),this.callbacks=[]}return wi(e,[{key:"tap",value:function(n,i){this.callbacks.push(i)}},{key:"call",value:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];if(this.callbacks.length){for(var o=arguments,s=this.callbacks[0].apply(void 0,o),a=0;a<this.callbacks.length-1;a++){var l=this.callbacks[a];s=l(s)}return s}return null}}])})(),bHi=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],_Hi=/([\"\'])[^\'\"]+\1/;function ZOt(e){var t=e.fontSize,n=t===void 0?16:t,i=e.fontFamily,r=i===void 0?"sans-serif":i,o=e.fontStyle,s=o===void 0?"normal":o,a=e.fontVariant,l=a===void 0?"normal":a,c=e.fontWeight,u=c===void 0?"normal":c;return{fontSize:n,fontFamily:r,fontStyle:s,fontVariant:l,fontWeight:u}}var XOt=Th(function(t){for(var n=ZOt(t),i=n.fontSize,r=n.fontFamily,o=n.fontStyle,s=n.fontVariant,a=n.fontWeight,l=(0,Wi.isNumber)(i)&&"".concat(i,"px")||"16px",c=r.split(","),u=c.length-1;u>=0;u--){var d=c[u].trim();!_Hi.test(d)&&bHi.indexOf(d)<0&&(d='"'.concat(d,'"')),c[u]=d}return"".concat(o," ").concat(s," ").concat(a," ").concat(l," ").concat(c.join(","))},function(e){var t=ZOt(e),n=t.fontSize,i=t.fontFamily,r=t.fontStyle,o=t.fontVariant,s=t.fontWeight;return"".concat(r,"_").concat(o,"_").concat(s,"_").concat(n,"_").concat(i)}),wHi=1e-6,J3=function(t){return Math.max(t,wHi)};function yMe(e,t,n){return gt.mat4.identity(e),e[4]=Math.tan(t),e[1]=Math.tan(n),e}var ah=gt.mat4.create(),CHi=gt.mat4.create(),SHi={scale:function(t){gt.mat4.fromScaling(ah,[t[0].value,t[1].value,1].map(function(n){return J3(n)}))},scaleX:function(t){gt.mat4.fromScaling(ah,[t[0].value,1,1].map(function(n){return J3(n)}))},scaleY:function(t){gt.mat4.fromScaling(ah,[1,t[0].value,1].map(function(n){return J3(n)}))},scaleZ:function(t){gt.mat4.fromScaling(ah,[1,1,t[0].value].map(function(n){return J3(n)}))},scale3d:function(t){gt.mat4.fromScaling(ah,[t[0].value,t[1].value,t[2].value].map(function(n){return J3(n)}))},translate:function(t){gt.mat4.fromTranslation(ah,[t[0].value,t[1].value,0])},translateX:function(t){gt.mat4.fromTranslation(ah,[t[0].value,0,0])},translateY:function(t){gt.mat4.fromTranslation(ah,[0,t[0].value,0])},translateZ:function(t){gt.mat4.fromTranslation(ah,[0,0,t[0].value])},translate3d:function(t){gt.mat4.fromTranslation(ah,[t[0].value,t[1].value,t[2].value])},rotate:function(t){gt.mat4.fromZRotation(ah,vc(g0(t[0])))},rotateX:function(t){gt.mat4.fromXRotation(ah,vc(g0(t[0])))},rotateY:function(t){gt.mat4.fromYRotation(ah,vc(g0(t[0])))},rotateZ:function(t){gt.mat4.fromZRotation(ah,vc(g0(t[0])))},rotate3d:function(t){gt.mat4.fromRotation(ah,vc(g0(t[3])),[t[0].value,t[1].value,t[2].value])},skew:function(t){yMe(ah,vc(t[0].value),vc(t[1].value))},skewX:function(t){yMe(ah,vc(t[0].value),0)},skewY:function(t){yMe(ah,0,vc(t[0].value))},matrix:function(t){gt.mat4.set(ah,t[0].value,t[1].value,0,0,t[2].value,t[3].value,0,0,0,0,1,0,t[4].value,t[5].value,0,1)},matrix3d:function(t){gt.mat4.set.apply(gt.mat4,[ah].concat(va(t.map(function(n){return n.value}))))}},xHi=gt.vec3.fromValues(1,1,1),EHi=gt.vec3.create(),JOt={translate:function(t,n){Si.sceneGraphService.setLocalScale(t,xHi,!1),Si.sceneGraphService.setLocalEulerAngles(t,EHi,void 0,void 0,!1),Si.sceneGraphService.setLocalPosition(t,[n[0].value,n[1].value,0],!1),Si.sceneGraphService.dirtyLocalTransform(t,t.transformable)}};function p_n(e,t){if(e.length){if(e.length===1&&JOt[e[0].t]){JOt[e[0].t](t,e[0].d);return}for(var n=gt.mat4.identity(CHi),i=0;i<e.length;i++){var r=e[i],o=r.t,s=r.d,a=SHi[o];a&&(a(s),gt.mat4.mul(n,n,ah))}t.setLocalTransform(n)}else t.resetLocalTransform();return t.getLocalTransform()}var AHi=(function(){function e(){_i(this,e),this.parser=E3i,this.mixer=M3i}return wi(e,[{key:"calculator",value:function(n,i,r,o){return r instanceof Iw?[]:r}},{key:"postProcessor",value:function(n){p_n(n.parsedStyle.transform,n)}}])})(),DHi=(function(){function e(){_i(this,e)}return wi(e,[{key:"postProcessor",value:function(n){var i=n.parsedStyle.transformOrigin;i[0].unit===ir.kPixels&&i[1].unit===ir.kPixels?n.setOrigin(i[0].value,i[1].value):n.getGeometryBounds()}}])})(),THi=(function(){function e(){_i(this,e)}return wi(e,[{key:"calculator",value:function(n,i,r,o){return r.value}},{key:"postProcessor",value:function(n){if(n.parentNode){var i=n.parentNode,r=i.renderable,o=i.sortable;r&&i.dirty(),o&&(o.dirty=!0,o.dirtyReason=Yhe.Z_INDEX_CHANGED)}}}])})(),kHi=(function(){function e(){_i(this,e)}return wi(e,[{key:"update",value:function(n,i){var r=n.cx,o=r===void 0?0:r,s=n.cy,a=s===void 0?0:s,l=n.r,c=l===void 0?0:l;return{cx:o,cy:a,hwidth:c,hheight:c}}}])})(),IHi=(function(){function e(){_i(this,e)}return wi(e,[{key:"update",value:function(n,i){var r=n.cx,o=r===void 0?0:r,s=n.cy,a=s===void 0?0:s,l=n.rx,c=l===void 0?0:l,u=n.ry,d=u===void 0?0:u;return{cx:o,cy:a,hwidth:c,hheight:d}}}])})(),LHi=(function(){function e(){_i(this,e)}return wi(e,[{key:"update",value:function(n){var i=n.x1,r=n.y1,o=n.x2,s=n.y2,a=Math.min(i,o),l=Math.max(i,o),c=Math.min(r,s),u=Math.max(r,s),d=l-a,h=u-c,f=d/2,p=h/2;return{cx:a+f,cy:c+p,hwidth:f,hheight:p}}}])})(),NHi=(function(){function e(){_i(this,e)}return wi(e,[{key:"update",value:function(n){var i=n.d,r=i.rect,o=r.x,s=r.y,a=r.width,l=r.height,c=a/2,u=l/2;return{cx:o+c,cy:s+u,hwidth:c,hheight:u}}}])})(),PHi=(function(){function e(){_i(this,e)}return wi(e,[{key:"update",value:function(n){if(n.points&&(0,Wi.isArray)(n.points.points)){var i=n.points.points,r=Math.min.apply(Math,va(i.map(function(h){return h[0]}))),o=Math.max.apply(Math,va(i.map(function(h){return h[0]}))),s=Math.min.apply(Math,va(i.map(function(h){return h[1]}))),a=Math.max.apply(Math,va(i.map(function(h){return h[1]}))),l=o-r,c=a-s,u=l/2,d=c/2;return{cx:r+u,cy:s+d,hwidth:u,hheight:d}}return{cx:0,cy:0,hwidth:0,hheight:0}}}])})(),MHi=(function(){function e(){_i(this,e)}return wi(e,[{key:"update",value:function(n,i){var r=n.x,o=r===void 0?0:r,s=n.y,a=s===void 0?0:s,l=n.src,c=n.width,u=c===void 0?0:c,d=n.height,h=d===void 0?0:d,f=u,p=h;return l&&!(0,Wi.isString)(l)&&(f||(f=l.width,n.width=f),p||(p=l.height,n.height=p)),{cx:o+f/2,cy:a+p/2,hwidth:f/2,hheight:p/2}}}])})(),OHi=(function(){function e(t){_i(this,e),this.globalRuntime=t}return wi(e,[{key:"isReadyToMeasure",value:function(n,i){var r=n.text;return r}},{key:"update",value:function(n,i){var r,o=n.text,s=n.textAlign,a=s===void 0?"start":s,l=n.lineWidth,c=l===void 0?1:l,u=n.textBaseline,d=u===void 0?"alphabetic":u,h=n.dx,f=h===void 0?0:h,p=n.dy,g=p===void 0?0:p,m=n.x,v=m===void 0?0:m,y=n.y,b=y===void 0?0:y;if(!this.isReadyToMeasure(n,i))return n.metrics={font:"",width:0,height:0,lines:[],lineWidths:[],lineHeight:0,maxLineWidth:0,fontProperties:{ascent:0,descent:0,fontSize:0},lineMetrics:[]},{hwidth:0,hheight:0,cx:0,cy:0};var w=(i==null||(r=i.ownerDocument)===null||r===void 0||(r=r.defaultView)===null||r===void 0?void 0:r.getConfig())||{},E=w.offscreenCanvas,A=this.globalRuntime.textService.measureText(o,n,E);n.metrics=A;var D=A.width,T=A.height,M=D/2,P=T/2,F=v+M;a==="center"||a==="middle"?F+=c/2-M:(a==="right"||a==="end")&&(F+=c-M*2);var N=b-P;return d==="middle"?N+=P:d==="top"||d==="hanging"?N+=P*2:d==="alphabetic"||(d==="bottom"||d==="ideographic")&&(N+=0),f&&(F+=f),g&&(N+=g),{cx:F,cy:N,hwidth:M,hheight:P}}}])})(),RHi=(function(){function e(){_i(this,e)}return wi(e,[{key:"update",value:function(n,i){return{cx:0,cy:0,hwidth:0,hheight:0}}}])})(),FHi=(function(){function e(){_i(this,e)}return wi(e,[{key:"update",value:function(n,i){var r=n.x,o=r===void 0?0:r,s=n.y,a=s===void 0?0:s,l=n.width,c=l===void 0?0:l,u=n.height,d=u===void 0?0:u;return{cx:o+c/2,cy:a+d/2,hwidth:c/2,hheight:d/2}}}])})(),B0e=(function(){function e(t){_i(this,e),this.eventPhase=e.prototype.NONE,this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.defaultPrevented=!1,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new rg,this.page=new rg,this.canvas=new rg,this.viewport=new rg,this.composed=!1,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=t}return wi(e,[{key:"name",get:(function(){return this.type})},{key:"layerX",get:function(){return this.layer.x}},{key:"layerY",get:function(){return this.layer.y}},{key:"pageX",get:function(){return this.page.x}},{key:"pageY",get:function(){return this.page.y}},{key:"x",get:function(){return this.canvas.x}},{key:"y",get:function(){return this.canvas.y}},{key:"canvasX",get:function(){return this.canvas.x}},{key:"canvasY",get:function(){return this.canvas.y}},{key:"viewportX",get:function(){return this.viewport.x}},{key:"viewportY",get:function(){return this.viewport.y}},{key:"composedPath",value:(function(){return this.manager&&(!this.path||this.path[0]!==this.target)&&(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path})},{key:"propagationPath",get:function(){return this.composedPath()}},{key:"preventDefault",value:function(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0}},{key:"stopImmediatePropagation",value:function(){this.propagationImmediatelyStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"initEvent",value:(function(){})},{key:"initUIEvent",value:function(){}},{key:"clone",value:function(){throw new Error(gc)}}])})(),g_n=(function(e){function t(){var n;_i(this,t);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return n=Hs(this,t,[].concat(r)),n.client=new rg,n.movement=new rg,n.offset=new rg,n.global=new rg,n.screen=new rg,n}return Ws(t,e),wi(t,[{key:"clientX",get:function(){return this.client.x}},{key:"clientY",get:function(){return this.client.y}},{key:"movementX",get:function(){return this.movement.x}},{key:"movementY",get:function(){return this.movement.y}},{key:"offsetX",get:function(){return this.offset.x}},{key:"offsetY",get:function(){return this.offset.y}},{key:"globalX",get:function(){return this.global.x}},{key:"globalY",get:function(){return this.global.y}},{key:"screenX",get:function(){return this.screen.x}},{key:"screenY",get:function(){return this.screen.y}},{key:"getModifierState",value:function(i){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(i)}},{key:"initMouseEvent",value:function(){throw new Error(gc)}}])})(B0e),tfe=(function(e){function t(){var n;_i(this,t);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return n=Hs(this,t,[].concat(r)),n.width=0,n.height=0,n.isPrimary=!1,n}return Ws(t,e),wi(t,[{key:"getCoalescedEvents",value:(function(){return this.type==="pointermove"||this.type==="mousemove"||this.type==="touchmove"?[this]:[]})},{key:"getPredictedEvents",value:function(){throw new Error("getPredictedEvents is not supported!")}},{key:"clone",value:function(){return this.manager.clonePointerEvent(this)}}])})(g_n),W7e=(function(e){function t(){return _i(this,t),Hs(this,t,arguments)}return Ws(t,e),wi(t,[{key:"clone",value:(function(){return this.manager.cloneWheelEvent(this)})}])})(g_n),of=(function(e){function t(n,i){var r;return _i(this,t),r=Hs(this,t,[null]),r.type=n,r.detail=i,Object.assign(r,i),r}return Ws(t,e),wi(t)})(B0e),m_n=(function(){function e(){_i(this,e),this.emitter=new Mbn}return wi(e,[{key:"on",value:(function(n,i,r){return this.addEventListener(n,i,r),this})},{key:"addEventListener",value:function(n,i,r){var o=!1,s=!1;if((0,Wi.isBoolean)(r))o=r;else if(r){var a=r.capture;o=a===void 0?!1:a;var l=r.once;s=l===void 0?!1:l}o&&(n+="capture"),i=(0,Wi.isFunction)(i)?i:i.handleEvent;var c=(0,Wi.isFunction)(i)?void 0:i;return s?this.emitter.once(n,i,c):this.emitter.on(n,i,c),this}},{key:"off",value:function(n,i,r){return n?this.removeEventListener(n,i,r):this.removeAllEventListeners(),this}},{key:"removeAllEventListeners",value:function(){var n;(n=this.emitter)===null||n===void 0||n.removeAllListeners()}},{key:"removeEventListener",value:function(n,i,r){var o;if(!this.emitter)return this;var s=(0,Wi.isBoolean)(r)?r:r?.capture;s&&(n+="capture"),i=(0,Wi.isFunction)(i)?i:(o=i)===null||o===void 0?void 0:o.handleEvent;var a=(0,Wi.isFunction)(i)?void 0:i;return this.emitter.off(n,i,a),this}},{key:"emit",value:function(n,i){this.dispatchEvent(new of(n,i))}},{key:"dispatchEventToSelf",value:function(n){n.target||(n.target=this),n.currentTarget=this,this.emitter.emit(n.type,n)}},{key:"dispatchEvent",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2?arguments[2]:void 0;if(r)return this.dispatchEventToSelf(n),!0;var o;if(this.document)o=this;else if(this.defaultView)o=this.defaultView;else{var s;o=(s=this.ownerDocument)===null||s===void 0?void 0:s.defaultView}if(o){if(n.manager=o.getEventService(),!n.manager)return!1;n.defaultPrevented=!1,n.path?n.path.length=0:n.page=[],i||(n.target=this),n.manager.dispatchEvent(n,n.type,i)}else this.dispatchEventToSelf(n);return!n.defaultPrevented}}])})(),$u=(function(e){function t(){var n;_i(this,t);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return n=Hs(this,t,[].concat(r)),n.shadow=!1,n.ownerDocument=null,n.isConnected=!1,n.baseURI="",n.childNodes=[],n.nodeType=0,n.nodeName="",n.nodeValue=null,n.parentNode=null,n.destroyed=!1,n}return Ws(t,e),wi(t,[{key:"textContent",get:(function(){var i="";this.nodeName===qn.TEXT&&(i+=this.style.text);var r=wO(this.childNodes),o;try{for(r.s();!(o=r.n()).done;){var s=o.value;s.nodeName===qn.TEXT?i+=s.nodeValue:i+=s.textContent}}catch(a){r.e(a)}finally{r.f()}return i}),set:function(i){var r=this;this.childNodes.slice().forEach(function(o){r.removeChild(o)}),this.nodeName===qn.TEXT&&(this.style.text="".concat(i))}},{key:"getRootNode",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.parentNode?this.parentNode.getRootNode(i):i.composed&&this.host?this.host.getRootNode(i):this}},{key:"hasChildNodes",value:function(){return this.childNodes.length>0}},{key:"isDefaultNamespace",value:function(i){throw new Error(gc)}},{key:"lookupNamespaceURI",value:function(i){throw new Error(gc)}},{key:"lookupPrefix",value:function(i){throw new Error(gc)}},{key:"normalize",value:function(){throw new Error(gc)}},{key:"isEqualNode",value:function(i){return this===i}},{key:"isSameNode",value:function(i){return this.isEqualNode(i)}},{key:"parent",get:(function(){return this.parentNode})},{key:"parentElement",get:function(){return null}},{key:"nextSibling",get:function(){return null}},{key:"previousSibling",get:function(){return null}},{key:"firstChild",get:function(){return this.childNodes.length>0?this.childNodes[0]:null}},{key:"lastChild",get:function(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null}},{key:"compareDocumentPosition",value:function(i){if(i===this)return 0;for(var r=i,o=this,s=[r],a=[o];(l=r.parentNode)!==null&&l!==void 0?l:o.parentNode;){var l;r=r.parentNode?(s.push(r.parentNode),r.parentNode):r,o=o.parentNode?(a.push(o.parentNode),o.parentNode):o}if(r!==o)return t.DOCUMENT_POSITION_DISCONNECTED|t.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|t.DOCUMENT_POSITION_PRECEDING;var c=s.length>a.length?s:a,u=c===s?a:s;if(c[c.length-u.length]===u[0])return c===s?t.DOCUMENT_POSITION_CONTAINED_BY|t.DOCUMENT_POSITION_FOLLOWING:t.DOCUMENT_POSITION_CONTAINS|t.DOCUMENT_POSITION_PRECEDING;for(var d=c.length-u.length,h=u.length-1;h>=0;h--){var f=u[h],p=c[d+h];if(p!==f){var g=f.parentNode.childNodes;return g.indexOf(f)<g.indexOf(p)?u===s?t.DOCUMENT_POSITION_PRECEDING:t.DOCUMENT_POSITION_FOLLOWING:c===s?t.DOCUMENT_POSITION_PRECEDING:t.DOCUMENT_POSITION_FOLLOWING}}return t.DOCUMENT_POSITION_FOLLOWING}},{key:"contain",value:(function(i){return this.contains(i)})},{key:"contains",value:function(i){for(var r=i;r&&this!==r;)r=r.parentNode;return!!r}},{key:"getAncestor",value:function(i){for(var r=this;i>0&&r;)r=r.parentNode,i--;return r}},{key:"forEach",value:function(i){for(var r=[this];r.length>0;){var o=r.pop(),s=i(o);if(s===!1)break;for(var a=o.childNodes.length-1;a>=0;a--)r.push(o.childNodes[a])}}}],[{key:"isNode",value:function(i){return!!i.childNodes}}])})(m_n);$u.DOCUMENT_POSITION_DISCONNECTED=1;$u.DOCUMENT_POSITION_PRECEDING=2;$u.DOCUMENT_POSITION_FOLLOWING=4;$u.DOCUMENT_POSITION_CONTAINS=8;$u.DOCUMENT_POSITION_CONTAINED_BY=16;$u.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;var BHi=2048,jHi=(function(){function e(t,n){var i=this;_i(this,e),this.nativeHTMLMap=new WeakMap,this.cursor="default",this.mappingTable={},this.mappingState={trackingData:{}},this.eventPool=new Map,this.tmpMatrix=gt.mat4.create(),this.tmpVec3=gt.vec3.create(),this.onPointerDown=function(r){var o=i.createPointerEvent(r);if(i.dispatchEvent(o,"pointerdown"),o.pointerType==="touch")i.dispatchEvent(o,"touchstart");else if(o.pointerType==="mouse"||o.pointerType==="pen"){var s=o.button===2;i.dispatchEvent(o,s?"rightdown":"mousedown")}var a=i.trackingData(r.pointerId);a.pressTargetsByButton[r.button]=o.composedPath(),i.freeEvent(o)},this.onPointerUp=function(r){var o=H7e.now(),s=i.createPointerEvent(r,void 0,void 0,i.context.config.alwaysTriggerPointerEventOnCanvas?i.rootTarget:void 0);if(i.dispatchEvent(s,"pointerup"),s.pointerType==="touch")i.dispatchEvent(s,"touchend");else if(s.pointerType==="mouse"||s.pointerType==="pen"){var a=s.button===2;i.dispatchEvent(s,a?"rightup":"mouseup")}var l=i.trackingData(r.pointerId),c=i.findMountedTarget(l.pressTargetsByButton[r.button]),u=c;if(c&&!s.composedPath().includes(c)){for(var d=c;d&&!s.composedPath().includes(d);){if(s.currentTarget=d,i.notifyTarget(s,"pointerupoutside"),s.pointerType==="touch")i.notifyTarget(s,"touchendoutside");else if(s.pointerType==="mouse"||s.pointerType==="pen"){var h=s.button===2;i.notifyTarget(s,h?"rightupoutside":"mouseupoutside")}$u.isNode(d)&&(d=d.parentNode)}delete l.pressTargetsByButton[r.button],u=d}if(u){var f,p=i.clonePointerEvent(s,"click");p.target=u,p.path=[],l.clicksByButton[r.button]||(l.clicksByButton[r.button]={clickCount:0,target:p.target,timeStamp:o});var g=i.context.renderingContext.root.ownerDocument.defaultView,m=l.clicksByButton[r.button];m.target===p.target&&o-m.timeStamp<g.getConfig().dblClickSpeed?++m.clickCount:m.clickCount=1,m.target=p.target,m.timeStamp=o,p.detail=m.clickCount,(f=s.detail)!==null&&f!==void 0&&f.preventClick||(!i.context.config.useNativeClickEvent&&(p.pointerType==="mouse"||p.pointerType==="touch")&&i.dispatchEvent(p,"click"),i.dispatchEvent(p,"pointertap")),i.freeEvent(p)}i.freeEvent(s)},this.onPointerMove=function(r){var o=i.createPointerEvent(r,void 0,void 0,i.context.config.alwaysTriggerPointerEventOnCanvas?i.rootTarget:void 0),s=o.pointerType==="mouse"||o.pointerType==="pen",a=i.trackingData(r.pointerId),l=i.findMountedTarget(a.overTargets);if(a.overTargets&&l!==o.target){var c=r.type==="mousemove"?"mouseout":"pointerout",u=i.createPointerEvent(r,c,l||void 0);if(i.dispatchEvent(u,"pointerout"),s&&i.dispatchEvent(u,"mouseout"),!o.composedPath().includes(l)){var d=i.createPointerEvent(r,"pointerleave",l||void 0);for(d.eventPhase=d.AT_TARGET;d.target&&!o.composedPath().includes(d.target);)d.currentTarget=d.target,i.notifyTarget(d),s&&i.notifyTarget(d,"mouseleave"),$u.isNode(d.target)&&(d.target=d.target.parentNode);i.freeEvent(d)}i.freeEvent(u)}if(l!==o.target){var h=r.type==="mousemove"?"mouseover":"pointerover",f=i.clonePointerEvent(o,h);i.dispatchEvent(f,"pointerover"),s&&i.dispatchEvent(f,"mouseover");for(var p=l&&$u.isNode(l)&&l.parentNode;p&&p!==($u.isNode(i.rootTarget)&&i.rootTarget.parentNode)&&p!==o.target;)p=p.parentNode;var g=!p||p===($u.isNode(i.rootTarget)&&i.rootTarget.parentNode);if(g){var m=i.clonePointerEvent(o,"pointerenter");for(m.eventPhase=m.AT_TARGET;m.target&&m.target!==l&&m.target!==($u.isNode(i.rootTarget)&&i.rootTarget.parentNode);)m.currentTarget=m.target,i.notifyTarget(m),s&&i.notifyTarget(m,"mouseenter"),$u.isNode(m.target)&&(m.target=m.target.parentNode);i.freeEvent(m)}i.freeEvent(f)}i.dispatchEvent(o,"pointermove"),o.pointerType==="touch"&&i.dispatchEvent(o,"touchmove"),s&&(i.dispatchEvent(o,"mousemove"),i.cursor=i.getCursor(o.target)),a.overTargets=o.composedPath(),i.freeEvent(o)},this.onPointerOut=function(r){var o=i.trackingData(r.pointerId);if(o.overTargets){var s=r.pointerType==="mouse"||r.pointerType==="pen",a=i.findMountedTarget(o.overTargets),l=i.createPointerEvent(r,"pointerout",a||void 0);i.dispatchEvent(l),s&&i.dispatchEvent(l,"mouseout");var c=i.createPointerEvent(r,"pointerleave",a||void 0);for(c.eventPhase=c.AT_TARGET;c.target&&c.target!==($u.isNode(i.rootTarget)&&i.rootTarget.parentNode);)c.currentTarget=c.target,i.notifyTarget(c),s&&i.notifyTarget(c,"mouseleave"),$u.isNode(c.target)&&(c.target=c.target.parentNode);o.overTargets=null,i.freeEvent(l),i.freeEvent(c)}i.cursor=null},this.onPointerOver=function(r){var o=i.trackingData(r.pointerId),s=i.createPointerEvent(r),a=s.pointerType==="mouse"||s.pointerType==="pen";i.dispatchEvent(s,"pointerover"),a&&i.dispatchEvent(s,"mouseover"),s.pointerType==="mouse"&&(i.cursor=i.getCursor(s.target));var l=i.clonePointerEvent(s,"pointerenter");for(l.eventPhase=l.AT_TARGET;l.target&&l.target!==($u.isNode(i.rootTarget)&&i.rootTarget.parentNode);)l.currentTarget=l.target,i.notifyTarget(l),a&&i.notifyTarget(l,"mouseenter"),$u.isNode(l.target)&&(l.target=l.target.parentNode);o.overTargets=s.composedPath(),i.freeEvent(s),i.freeEvent(l)},this.onPointerUpOutside=function(r){var o=i.trackingData(r.pointerId),s=i.findMountedTarget(o.pressTargetsByButton[r.button]),a=i.createPointerEvent(r);if(s){for(var l=s;l;)a.currentTarget=l,i.notifyTarget(a,"pointerupoutside"),a.pointerType==="touch"||(a.pointerType==="mouse"||a.pointerType==="pen")&&i.notifyTarget(a,a.button===2?"rightupoutside":"mouseupoutside"),$u.isNode(l)&&(l=l.parentNode);delete o.pressTargetsByButton[r.button]}i.freeEvent(a)},this.onWheel=function(r){var o=i.createWheelEvent(r);i.dispatchEvent(o),i.freeEvent(o)},this.onClick=function(r){if(i.context.config.useNativeClickEvent){var o=i.createPointerEvent(r);i.dispatchEvent(o),i.freeEvent(o)}},this.onPointerCancel=function(r){var o=i.createPointerEvent(r,void 0,void 0,i.context.config.alwaysTriggerPointerEventOnCanvas?i.rootTarget:void 0);i.dispatchEvent(o),i.freeEvent(o)},this.globalRuntime=t,this.context=n}return wi(e,[{key:"init",value:function(){this.rootTarget=this.context.renderingContext.root.parentNode,this.addEventMapping("pointerdown",this.onPointerDown),this.addEventMapping("pointerup",this.onPointerUp),this.addEventMapping("pointermove",this.onPointerMove),this.addEventMapping("pointerout",this.onPointerOut),this.addEventMapping("pointerleave",this.onPointerOut),this.addEventMapping("pointercancel",this.onPointerCancel),this.addEventMapping("pointerover",this.onPointerOver),this.addEventMapping("pointerupoutside",this.onPointerUpOutside),this.addEventMapping("wheel",this.onWheel),this.addEventMapping("click",this.onClick)}},{key:"destroy",value:function(){this.mappingTable={},this.mappingState={},this.eventPool.clear()}},{key:"getScale",value:function(){var n=this.context.contextService.getBoundingClientRect(),i=1,r=1,o=this.context.contextService.getDomElement();if(o&&n){var s=o.offsetWidth,a=o.offsetHeight;s&&a&&(i=n.width/s,r=n.height/a)}return{scaleX:i,scaleY:r,bbox:n}}},{key:"client2Viewport",value:function(n){var i=this.getScale(),r=i.scaleX,o=i.scaleY,s=i.bbox;return new rg((n.x-(s?.left||0))/r,(n.y-(s?.top||0))/o)}},{key:"viewport2Client",value:function(n){var i=this.getScale(),r=i.scaleX,o=i.scaleY,s=i.bbox;return new rg((n.x+(s?.left||0))*r,(n.y+(s?.top||0))*o)}},{key:"viewport2Canvas",value:function(n){var i=n.x,r=n.y,o=this.rootTarget.defaultView,s=o.getCamera(),a=this.context.config,l=a.width,c=a.height,u=s.getPerspectiveInverse(),d=s.getWorldTransform(),h=gt.mat4.multiply(this.tmpMatrix,d,u),f=gt.vec3.set(this.tmpVec3,i/l*2-1,(1-r/c)*2-1,0);return gt.vec3.transformMat4(f,f,h),new rg(f[0],f[1])}},{key:"canvas2Viewport",value:function(n){var i=this.rootTarget.defaultView,r=i.getCamera(),o=r.getPerspective(),s=r.getViewTransform(),a=gt.mat4.multiply(this.tmpMatrix,o,s),l=gt.vec3.set(this.tmpVec3,n.x,n.y,0);gt.vec3.transformMat4(this.tmpVec3,this.tmpVec3,a);var c=this.context.config,u=c.width,d=c.height;return new rg((l[0]+1)/2*u,(1-(l[1]+1)/2)*d)}},{key:"setPickHandler",value:function(n){this.pickHandler=n}},{key:"addEventMapping",value:function(n,i){this.mappingTable[n]||(this.mappingTable[n]=[]),this.mappingTable[n].push({fn:i,priority:0}),this.mappingTable[n].sort(function(r,o){return r.priority-o.priority})}},{key:"mapEvent",value:function(n){if(this.rootTarget){var i=this.mappingTable[n.type];if(i)for(var r=0,o=i.length;r<o;r++)i[r].fn(n);else console.warn("[EventService]: Event mapping not defined for ".concat(n.type))}}},{key:"dispatchEvent",value:function(n,i,r){if(!r)n.propagationStopped=!1,n.propagationImmediatelyStopped=!1,this.propagate(n,i);else{n.eventPhase=n.AT_TARGET;var o=this.rootTarget.defaultView||null;n.currentTarget=o,this.notifyListeners(n,i)}}},{key:"propagate",value:function(n,i){if(n.target){var r=n.composedPath();n.eventPhase=n.CAPTURING_PHASE;for(var o=r.length-1;o>=1;o--)if(n.currentTarget=r[o],this.notifyTarget(n,i),n.propagationStopped||n.propagationImmediatelyStopped)return;if(n.eventPhase=n.AT_TARGET,n.currentTarget=n.target,this.notifyTarget(n,i),!(n.propagationStopped||n.propagationImmediatelyStopped)){var s=r.indexOf(n.currentTarget);n.eventPhase=n.BUBBLING_PHASE;for(var a=s+1;a<r.length;a++)if(n.currentTarget=r[a],this.notifyTarget(n,i),n.propagationStopped||n.propagationImmediatelyStopped)return}}}},{key:"propagationPath",value:function(n){var i=[n],r=this.rootTarget.defaultView||null;if(r&&r===n)return i.unshift(r.document),i;for(var o=0;o<BHi&&n!==this.rootTarget;o++)$u.isNode(n)&&n.parentNode&&(i.push(n.parentNode),n=n.parentNode);return r&&i.push(r),i}},{key:"hitTest",value:function(n){var i=n.viewportX,r=n.viewportY,o=this.context.config,s=o.width,a=o.height,l=o.disableHitTesting;return i<0||r<0||i>s||r>a?null:!l&&this.pickHandler(n)||this.rootTarget||null}},{key:"isNativeEventFromCanvas",value:function(n,i){var r,o=i?.target;if((r=o)!==null&&r!==void 0&&r.shadowRoot&&(o=i.composedPath()[0]),o){if(o===n)return!0;if(n&&n.contains)return n.contains(o)}return i!=null&&i.composedPath?i.composedPath().indexOf(n)>-1:!1}},{key:"getExistedHTML",value:function(n){if(n.nativeEvent.composedPath)for(var i=0,r=n.nativeEvent.composedPath();i<r.length;i++){var o=r[i],s=this.nativeHTMLMap.get(o);if(s)return s}return null}},{key:"pickTarget",value:function(n){return this.hitTest({clientX:n.clientX,clientY:n.clientY,viewportX:n.viewportX,viewportY:n.viewportY,x:n.canvasX,y:n.canvasY})}},{key:"createPointerEvent",value:function(n,i,r,o){var s=this.allocateEvent(tfe);this.copyPointerData(n,s),this.copyMouseData(n,s),this.copyData(n,s),s.nativeEvent=n.nativeEvent,s.originalEvent=n;var a=this.getExistedHTML(s),l=this.context.contextService.getDomElement();return s.target=r??(a||this.isNativeEventFromCanvas(l,s.nativeEvent)&&this.pickTarget(s)||o),typeof i=="string"&&(s.type=i),s}},{key:"createWheelEvent",value:function(n){var i=this.allocateEvent(W7e);this.copyWheelData(n,i),this.copyMouseData(n,i),this.copyData(n,i),i.nativeEvent=n.nativeEvent,i.originalEvent=n;var r=this.getExistedHTML(i),o=this.context.contextService.getDomElement();return i.target=r||this.isNativeEventFromCanvas(o,i.nativeEvent)&&this.pickTarget(i),i}},{key:"trackingData",value:function(n){return this.mappingState.trackingData[n]||(this.mappingState.trackingData[n]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[n]}},{key:"cloneWheelEvent",value:function(n){var i=this.allocateEvent(W7e);return i.nativeEvent=n.nativeEvent,i.originalEvent=n.originalEvent,this.copyWheelData(n,i),this.copyMouseData(n,i),this.copyData(n,i),i.target=n.target,i.path=n.composedPath().slice(),i.type=n.type,i}},{key:"clonePointerEvent",value:function(n,i){var r=this.allocateEvent(tfe);return r.nativeEvent=n.nativeEvent,r.originalEvent=n.originalEvent,this.copyPointerData(n,r),this.copyMouseData(n,r),this.copyData(n,r),r.target=n.target,r.path=n.composedPath().slice(),r.type=i??r.type,r}},{key:"copyPointerData",value:function(n,i){i.pointerId=n.pointerId,i.width=n.width,i.height=n.height,i.isPrimary=n.isPrimary,i.pointerType=n.pointerType,i.pressure=n.pressure,i.tangentialPressure=n.tangentialPressure,i.tiltX=n.tiltX,i.tiltY=n.tiltY,i.twist=n.twist}},{key:"copyMouseData",value:function(n,i){i.altKey=n.altKey,i.button=n.button,i.buttons=n.buttons,i.ctrlKey=n.ctrlKey,i.metaKey=n.metaKey,i.shiftKey=n.shiftKey,i.client.copyFrom(n.client),i.movement.copyFrom(n.movement),i.canvas.copyFrom(n.canvas),i.screen.copyFrom(n.screen),i.global.copyFrom(n.global),i.offset.copyFrom(n.offset)}},{key:"copyWheelData",value:function(n,i){i.deltaMode=n.deltaMode,i.deltaX=n.deltaX,i.deltaY=n.deltaY,i.deltaZ=n.deltaZ}},{key:"copyData",value:function(n,i){i.isTrusted=n.isTrusted,i.timeStamp=H7e.now(),i.type=n.type,i.detail=n.detail,i.view=n.view,i.page.copyFrom(n.page),i.viewport.copyFrom(n.viewport)}},{key:"allocateEvent",value:function(n){this.eventPool.has(n)||this.eventPool.set(n,[]);var i=this.eventPool.get(n).pop()||new n(this);return i.eventPhase=i.NONE,i.currentTarget=null,i.path=[],i.target=null,i}},{key:"freeEvent",value:function(n){if(n.manager!==this)throw new Error("It is illegal to free an event not managed by this EventBoundary!");var i=n.constructor;this.eventPool.has(i)||this.eventPool.set(i,[]),this.eventPool.get(i).push(n)}},{key:"notifyTarget",value:function(n,i){i=i??n.type;var r=n.eventPhase===n.CAPTURING_PHASE||n.eventPhase===n.AT_TARGET?"".concat(i,"capture"):i;this.notifyListeners(n,r),n.eventPhase===n.AT_TARGET&&this.notifyListeners(n,i)}},{key:"notifyListeners",value:function(n,i){var r=n.currentTarget.emitter,o=r._events[i];if(o)if("fn"in o)o.once&&r.removeListener(i,o.fn,void 0,!0),o.fn.call(n.currentTarget||o.context,n);else for(var s=0;s<o.length&&!n.propagationImmediatelyStopped;s++)o[s].once&&r.removeListener(i,o[s].fn,void 0,!0),o[s].fn.call(n.currentTarget||o[s].context,n)}},{key:"findMountedTarget",value:function(n){if(!n)return null;for(var i=n[n.length-1],r=n.length-2;r>=0;r--){var o=n[r];if(o===this.rootTarget||$u.isNode(o)&&o.parentNode===i)i=n[r];else break}return i}},{key:"getCursor",value:function(n){for(var i=n;i;){var r=tHi(i)&&i.getAttribute("cursor");if(r)return r;i=$u.isNode(i)&&i.parentNode}}}])})(),dZe=(function(){function e(){_i(this,e)}return wi(e,[{key:"getOrCreateCanvas",value:function(n,i){if(this.canvas)return this.canvas;if(n||Si.offscreenCanvas)this.canvas=n||Si.offscreenCanvas,this.context=this.canvas.getContext("2d",Ps({willReadFrequently:!0},i));else try{this.canvas=new window.OffscreenCanvas(0,0),this.context=this.canvas.getContext("2d",Ps({willReadFrequently:!0},i)),(!this.context||!this.context.measureText)&&(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"))}catch{this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d",Ps({willReadFrequently:!0},i))}return this.canvas.width=10,this.canvas.height=10,this.canvas}},{key:"getOrCreateContext",value:function(n,i){return this.context?this.context:(this.getOrCreateCanvas(n,i),this.context)}}],[{key:"createCanvas",value:(function(){try{return new window.OffscreenCanvas(0,0)}catch{}try{return document.createElement("canvas")}catch{}return null})}])})(),A8=(function(e){return e[e.CAMERA_CHANGED=0]="CAMERA_CHANGED",e[e.DISPLAY_OBJECT_CHANGED=1]="DISPLAY_OBJECT_CHANGED",e[e.NONE=2]="NONE",e})({}),zHi=(function(){function e(t,n){_i(this,e),this.inited=!1,this.stats={total:0,rendered:0},this.zIndexCounter=0,this.hooks={init:new Pm,initAsync:new vHi,dirtycheck:new vMe,cull:new vMe,beginFrame:new Pm,beforeRender:new Pm,render:new Pm,afterRender:new Pm,endFrame:new Pm,destroy:new Pm,pick:new yHi,pickSync:new vMe,pointerDown:new Pm,pointerUp:new Pm,pointerMove:new Pm,pointerOut:new Pm,pointerOver:new Pm,pointerWheel:new Pm,pointerCancel:new Pm,click:new Pm},this.globalRuntime=t,this.context=n}return wi(e,[{key:"init",value:function(n){var i=this,r=Ps(Ps({},this.globalRuntime),this.context);this.context.renderingPlugins.forEach(function(o){o.apply(r,i.globalRuntime)}),this.hooks.init.call(),this.hooks.initAsync.getCallbacksNum()===0?(this.inited=!0,n()):this.hooks.initAsync.promise().then(function(){i.inited=!0,n()}).catch(function(o){})}},{key:"getStats",value:function(){return this.stats}},{key:"disableDirtyRectangleRendering",value:function(){var n=this.context.config.renderer,i=n.getConfig(),r=i.enableDirtyRectangleRendering;return!r||this.context.renderingContext.renderReasons.has(A8.CAMERA_CHANGED)}},{key:"render",value:function(n,i,r){var o=this;this.stats.total=0,this.stats.rendered=0,this.zIndexCounter=0;var s=this.context.renderingContext;if(this.globalRuntime.sceneGraphService.syncHierarchy(s.root),this.globalRuntime.sceneGraphService.triggerPendingEvents(),s.renderReasons.size&&this.inited){s.dirtyRectangleRenderingDisabled=this.disableDirtyRectangleRendering();var a=s.renderReasons.size===1&&s.renderReasons.has(A8.CAMERA_CHANGED),l=!n.disableRenderHooks||!a;l&&this.renderDisplayObject(s.root,n,s),this.hooks.beginFrame.call(i),l&&s.renderListCurrentFrame.forEach(function(c){o.hooks.beforeRender.call(c),o.hooks.render.call(c),o.hooks.afterRender.call(c)}),this.hooks.endFrame.call(i),s.renderListCurrentFrame=[],s.renderReasons.clear(),r()}}},{key:"renderDisplayObject",value:function(n,i,r){var o=this,s=i.renderer.getConfig(),a=s.enableDirtyCheck,l=s.enableCulling;function c(g){var m=g.renderable,v=g.sortable,y=a?m.dirty||r.dirtyRectangleRenderingDisabled?g:null:g,b=null;y&&(b=l?o.hooks.cull.call(y,o.context.camera):y,b&&(o.stats.rendered+=1,r.renderListCurrentFrame.push(b))),g.dirty(!1),v.renderOrder=o.zIndexCounter,o.zIndexCounter+=1,o.stats.total+=1,v.dirty&&(o.sort(g,v),v.dirty=!1,v.dirtyChildren=[],v.dirtyReason=void 0)}for(var u=[n];u.length>0;){var d,h=u.pop();c(h);for(var f=((d=h.sortable)===null||d===void 0||(d=d.sorted)===null||d===void 0?void 0:d.length)>0?h.sortable.sorted:h.childNodes,p=f.length-1;p>=0;p--)u.push(f[p])}}},{key:"sort",value:function(n,i){var r,o;(i==null||(r=i.sorted)===null||r===void 0?void 0:r.length)>0&&i.dirtyReason!==Yhe.Z_INDEX_CHANGED?i.dirtyChildren.forEach(function(s){var a=i.sorted.indexOf(s);a>-1&&i.sorted.splice(a,1);var l=n.childNodes.indexOf(s);if(l>-1)if(i.sorted.length===0)i.sorted.push(s);else{var c=nHi(i.sorted,s);i.sorted.splice(c,0,s)}}):i.sorted=n.childNodes.slice().sort(l_n),((o=i.sorted)===null||o===void 0?void 0:o.length)>0&&n.childNodes.filter(function(s){return s.parsedStyle.zIndex}).length===0&&(i.sorted=[])}},{key:"destroy",value:function(){this.inited=!1,this.hooks.destroy.call(),this.globalRuntime.sceneGraphService.clearPendingEvents()}},{key:"dirtify",value:function(){this.context.renderingContext.renderReasons.add(A8.DISPLAY_OBJECT_CHANGED)}}])})(),VHi=/\[\s*(.*)=(.*)\s*\]/,HHi=(function(){function e(){_i(this,e)}return wi(e,[{key:"selectOne",value:function(n,i){var r=this;if(n.startsWith("."))return i.find(function(l){return(l?.classList||[]).indexOf(r.getIdOrClassname(n))>-1});if(n.startsWith("#"))return i.find(function(l){return l.id===r.getIdOrClassname(n)});if(n.startsWith("[")){var o=this.getAttribute(n),s=o.name,a=o.value;return s?i.find(function(l){return i!==l&&(s==="name"?l.name===a:r.attributeToString(l,s)===a)}):null}return i.find(function(l){return i!==l&&l.nodeName===n})}},{key:"selectAll",value:function(n,i){var r=this;if(n.startsWith("."))return i.findAll(function(l){return i!==l&&(l?.classList||[]).indexOf(r.getIdOrClassname(n))>-1});if(n.startsWith("#"))return i.findAll(function(l){return i!==l&&l.id===r.getIdOrClassname(n)});if(n.startsWith("[")){var o=this.getAttribute(n),s=o.name,a=o.value;return s?i.findAll(function(l){return i!==l&&(s==="name"?l.name===a:r.attributeToString(l,s)===a)}):[]}return i.findAll(function(l){return i!==l&&l.nodeName===n})}},{key:"is",value:function(n,i){if(n.startsWith("."))return i.className===this.getIdOrClassname(n);if(n.startsWith("#"))return i.id===this.getIdOrClassname(n);if(n.startsWith("[")){var r=this.getAttribute(n),o=r.name,s=r.value;return o==="name"?i.name===s:this.attributeToString(i,o)===s}return i.nodeName===n}},{key:"getIdOrClassname",value:function(n){return n.substring(1)}},{key:"getAttribute",value:function(n){var i=n.match(VHi),r="",o="";return i&&i.length>2&&(r=i[1].replace(/"/g,""),o=i[2].replace(/"/g,"")),{name:r,value:o}}},{key:"attributeToString",value:function(n,i){if(!n.getAttribute)return"";var r=n.getAttribute(i);return(0,Wi.isNil)(r)?"":r.toString?r.toString():""}}])})(),ea=(function(e){return e.ATTR_MODIFIED="DOMAttrModified",e.INSERTED="DOMNodeInserted",e.MOUNTED="DOMNodeInsertedIntoDocument",e.REMOVED="removed",e.UNMOUNTED="DOMNodeRemovedFromDocument",e.REPARENT="reparent",e.DESTROY="destroy",e.BOUNDS_CHANGED="bounds-changed",e.CULLED="culled",e})({}),dE=(function(e){function t(n,i,r,o,s,a,l,c){var u;return _i(this,t),u=Hs(this,t,[null]),u.relatedNode=i,u.prevValue=r,u.newValue=o,u.attrName=s,u.attrChange=a,u.prevParsedValue=l,u.newParsedValue=c,u.type=n,u}return Ws(t,e),wi(t)})(B0e);dE.ADDITION=2;dE.MODIFICATION=1;dE.REMOVAL=3;var WHi=new dE(ea.REPARENT,null,"","","",0,"",""),UHi=gt.vec2.create(),Vie=gt.vec3.create(),$Hi=gt.vec3.fromValues(1,1,1),qHi=gt.mat4.create(),GHi=gt.vec2.create(),LM=gt.vec3.create(),KHi=gt.mat4.create(),NM=gt.quat.create(),YHi=gt.vec3.create(),QHi=gt.quat.create(),ZHi=gt.vec3.create(),eH=gt.vec3.create(),PM=gt.vec3.create(),Hie=gt.mat4.create(),eRt=gt.quat.create(),tRt=gt.quat.create(),Wie=gt.quat.create(),Uie={affectChildren:!0},XHi=(function(){function e(t){_i(this,e),this.pendingEvents=new Map,this.boundsChangedEvent=new of(ea.BOUNDS_CHANGED),this.displayObjectDependencyMap=new WeakMap,this.runtime=t}return wi(e,[{key:"matches",value:function(n,i){return this.runtime.sceneGraphSelector.is(n,i)}},{key:"querySelector",value:function(n,i){return this.runtime.sceneGraphSelector.selectOne(n,i)}},{key:"querySelectorAll",value:function(n,i){return this.runtime.sceneGraphSelector.selectAll(n,i)}},{key:"attach",value:function(n,i,r){var o,s=!1;n.parentNode&&(s=n.parentNode!==i,this.detach(n));var a=n.nodeName===qn.FRAGMENT,l=efe(i);n.parentNode=i;var c=a?n.childNodes:[n];(0,Wi.isNumber)(r)?c.forEach(function(g){i.childNodes.splice(r,0,g),g.parentNode=i}):c.forEach(function(g){i.childNodes.push(g),g.parentNode=i});var u=i,d=u.sortable;if((d!=null&&(o=d.sorted)!==null&&o!==void 0&&o.length||d.dirty||n.parsedStyle.zIndex)&&(d.dirtyChildren.indexOf(n)===-1&&d.dirtyChildren.push(n),d.dirty=!0,d.dirtyReason=Yhe.ADDED),!l){if(a)this.dirtifyFragment(n);else{var h=n.transformable;h&&this.dirtyWorldTransform(n,h)}if(s){var f,p=((f=i.ownerDocument)===null||f===void 0||(f=f.defaultView)===null||f===void 0||(f=f.getConfig())===null||f===void 0||(f=f.future)===null||f===void 0?void 0:f.experimentalCancelEventPropagation)===!0;n.dispatchEvent(WHi,p,p)}}}},{key:"detach",value:function(n){var i,r;if(n.parentNode){var o=n.transformable,s=n.parentNode,a=s.sortable;(a!=null&&(i=a.sorted)!==null&&i!==void 0&&i.length||(r=n.style)!==null&&r!==void 0&&r.zIndex)&&(a.dirtyChildren.indexOf(n)===-1&&a.dirtyChildren.push(n),a.dirty=!0,a.dirtyReason=Yhe.REMOVED);var l=n.parentNode.childNodes.indexOf(n);l>-1&&n.parentNode.childNodes.splice(l,1),o&&this.dirtyWorldTransform(n,o),n.parentNode=null}}},{key:"getLocalPosition",value:function(n){return n.transformable.localPosition}},{key:"getLocalRotation",value:function(n){return n.transformable.localRotation}},{key:"getLocalScale",value:function(n){return n.transformable.localScale}},{key:"getLocalSkew",value:function(n){return n.transformable.localSkew}},{key:"getLocalTransform",value:function(n){var i=n.transformable;return kOt(i),i.localTransform}},{key:"setLocalPosition",value:function(n,i){var r,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=n.transformable;eH[0]=i[0],eH[1]=i[1],eH[2]=(r=i[2])!==null&&r!==void 0?r:0,!gt.vec3.equals(s.localPosition,eH)&&(gt.vec3.copy(s.localPosition,eH),o&&this.dirtyLocalTransform(n,s))}},{key:"translateLocal",value:function(n,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof i=="number"&&(i=gt.vec3.fromValues(i,r,o));var s=n.transformable;gt.vec3.equals(i,Vie)||(gt.vec3.transformQuat(i,i,s.localRotation),gt.vec3.add(s.localPosition,s.localPosition,i),this.dirtyLocalTransform(n,s))}},{key:"setLocalRotation",value:function(n,i,r,o,s){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;typeof i=="number"&&(i=gt.quat.set(NM,i,r,o,s));var l=n.transformable;gt.quat.copy(l.localRotation,i),a&&this.dirtyLocalTransform(n,l)}},{key:"rotateLocal",value:function(n,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof i=="number"&&(i=gt.vec3.fromValues(i,r,o));var s=n.transformable;gt.quat.fromEuler(tRt,i[0],i[1],i[2]),gt.quat.mul(s.localRotation,s.localRotation,tRt),this.dirtyLocalTransform(n,s)}},{key:"setLocalScale",value:function(n,i){var r,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=n.transformable;gt.vec3.set(LM,i[0],i[1],(r=i[2])!==null&&r!==void 0?r:s.localScale[2]),!gt.vec3.equals(LM,s.localScale)&&(gt.vec3.copy(s.localScale,LM),o&&this.dirtyLocalTransform(n,s))}},{key:"scaleLocal",value:function(n,i){var r,o=n.transformable;gt.vec3.multiply(o.localScale,o.localScale,gt.vec3.set(LM,i[0],i[1],(r=i[2])!==null&&r!==void 0?r:1)),this.dirtyLocalTransform(n,o)}},{key:"setLocalSkew",value:function(n,i,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;typeof i=="number"&&(i=gt.vec2.set(GHi,i,r));var s=n.transformable;gt.vec2.copy(s.localSkew,i),o&&this.dirtyLocalTransform(n,s)}},{key:"setLocalEulerAngles",value:function(n,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;typeof i=="number"&&(i=gt.vec3.fromValues(i,r,o));var a=n.transformable;gt.quat.fromEuler(a.localRotation,i[0],i[1],i[2]),s&&this.dirtyLocalTransform(n,a)}},{key:"setLocalTransform",value:function(n,i){var r=gt.mat4.getTranslation(YHi,i),o=gt.mat4.getRotation(QHi,i),s=gt.mat4.getScaling(ZHi,i);this.setLocalScale(n,s,!1),this.setLocalPosition(n,r,!1),this.setLocalRotation(n,o,void 0,void 0,void 0,!1),this.dirtyLocalTransform(n,n.transformable)}},{key:"resetLocalTransform",value:function(n){this.setLocalScale(n,$Hi,!1),this.setLocalPosition(n,Vie,!1),this.setLocalEulerAngles(n,Vie,void 0,void 0,!1),this.setLocalSkew(n,UHi,void 0,!1),this.dirtyLocalTransform(n,n.transformable)}},{key:"getPosition",value:function(n){var i=n.transformable;return gt.mat4.getTranslation(i.position,this.getWorldTransform(n,i))}},{key:"getRotation",value:function(n){var i=n.transformable;return gt.mat4.getRotation(i.rotation,this.getWorldTransform(n,i))}},{key:"getScale",value:function(n){var i=n.transformable;return gt.mat4.getScaling(i.scaling,this.getWorldTransform(n,i))}},{key:"getOrigin",value:function(n){return n.getGeometryBounds(),n.transformable.origin}},{key:"getWorldTransform",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n.transformable;return!i.localDirtyFlag&&!i.dirtyFlag||(n.parentNode&&n.parentNode.transformable&&this.getWorldTransform(n.parentNode),this.internalUpdateTransform(n)),i.worldTransform}},{key:"setPosition",value:function(n,i){var r,o=n.transformable;if(PM[0]=i[0],PM[1]=i[1],PM[2]=(r=i[2])!==null&&r!==void 0?r:0,!gt.vec3.equals(this.getPosition(n),PM)){if(gt.vec3.copy(o.position,PM),n.parentNode===null||!n.parentNode.transformable)gt.vec3.copy(o.localPosition,PM);else{var s=n.parentNode.transformable;gt.mat4.copy(Hie,s.worldTransform),gt.mat4.invert(Hie,Hie),gt.vec3.transformMat4(o.localPosition,PM,Hie)}this.dirtyLocalTransform(n,o)}}},{key:"translate",value:function(n,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof i=="number"&&(i=gt.vec3.set(LM,i,r,o)),!gt.vec3.equals(i,Vie)&&(gt.vec3.add(LM,this.getPosition(n),i),this.setPosition(n,LM))}},{key:"setRotation",value:function(n,i,r,o,s){var a=n.transformable;if(typeof i=="number"&&(i=gt.quat.fromValues(i,r,o,s)),n.parentNode===null||!n.parentNode.transformable)this.setLocalRotation(n,i);else{var l=this.getRotation(n.parentNode);gt.quat.copy(NM,l),gt.quat.invert(NM,NM),gt.quat.multiply(a.localRotation,NM,i),gt.quat.normalize(a.localRotation,a.localRotation),this.dirtyLocalTransform(n,a)}}},{key:"rotate",value:function(n,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof i=="number"&&(i=gt.vec3.fromValues(i,r,o));var s=n.transformable;if(n.parentNode===null||!n.parentNode.transformable)this.rotateLocal(n,i);else{var a=NM;gt.quat.fromEuler(a,i[0],i[1],i[2]);var l=this.getRotation(n),c=this.getRotation(n.parentNode);gt.quat.copy(Wie,c),gt.quat.invert(Wie,Wie),gt.quat.multiply(a,Wie,a),gt.quat.multiply(s.localRotation,a,l),gt.quat.normalize(s.localRotation,s.localRotation),this.dirtyLocalTransform(n,s)}}},{key:"setOrigin",value:function(n,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof i=="number"&&(i=[i,r,o]);var s=n.transformable;if(!(i[0]===s.origin[0]&&i[1]===s.origin[1]&&i[2]===s.origin[2])){var a=s.origin;a[0]=i[0],a[1]=i[1],a[2]=i[2]||0,this.dirtyLocalTransform(n,s)}}},{key:"setEulerAngles",value:function(n,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof i=="number"&&(i=gt.vec3.fromValues(i,r,o));var s=n.transformable;if(n.parentNode===null||!n.parentNode.transformable)this.setLocalEulerAngles(n,i);else{gt.quat.fromEuler(s.localRotation,i[0],i[1],i[2]);var a=this.getRotation(n.parentNode);gt.quat.copy(eRt,gt.quat.invert(NM,a)),gt.quat.mul(s.localRotation,s.localRotation,eRt),this.dirtyLocalTransform(n,s)}}},{key:"getTransformedGeometryBounds",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2?arguments[2]:void 0,o=this.getGeometryBounds(n,i);if(!mc.isEmpty(o)){var s=r||new mc;return s.setFromTransformedAABB(o,this.getWorldTransform(n)),s}return null}},{key:"getGeometryBounds",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=n,o=r.geometry;o.dirty&&Si.styleValueRegistry.updateGeometry(n);var s=i?o.renderBounds:o.contentBounds||null;return s||new mc}},{key:"getBounds",value:function(n){var i=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=n,s=o.renderable;if(!s.boundsDirty&&!r&&s.bounds)return s.bounds;if(!s.renderBoundsDirty&&r&&s.renderBounds)return s.renderBounds;var a=r?s.renderBounds:s.bounds,l=this.getTransformedGeometryBounds(n,r,a),c=n.childNodes;if(c.forEach(function(h){var f=i.getBounds(h,r);f&&(l?l.add(f):(l=a||new mc,l.update(f.center,f.halfExtents)))}),l||(l=new mc),r){var u=c_n(n);if(u){var d=u.parsedStyle.clipPath.getBounds(r);l?d&&(l=d.intersection(l)):l.update(d.center,d.halfExtents)}}return r?(s.renderBounds=l,s.renderBoundsDirty=!1):(s.bounds=l,s.boundsDirty=!1),l}},{key:"getLocalBounds",value:function(n){if(n.parentNode){var i=qHi;n.parentNode.transformable&&(i=gt.mat4.invert(KHi,this.getWorldTransform(n.parentNode)));var r=this.getBounds(n);if(!mc.isEmpty(r)){var o=new mc;return o.setFromTransformedAABB(r,i),o}}return this.getBounds(n)}},{key:"getBoundingClientRect",value:function(n){var i,r,o=this.getGeometryBounds(n);mc.isEmpty(o)||(r=new mc,r.setFromTransformedAABB(o,this.getWorldTransform(n)));var s=(i=n.ownerDocument)===null||i===void 0||(i=i.defaultView)===null||i===void 0?void 0:i.getContextService().getBoundingClientRect();if(r){var a=r.getMin(),l=As(a,2),c=l[0],u=l[1],d=r.getMax(),h=As(d,2),f=h[0],p=h[1];return new q9(c+(s?.left||0),u+(s?.top||0),f-c,p-u)}return new q9(s?.left||0,s?.top||0,0,0)}},{key:"internalUpdateTransform",value:function(n){var i,r=(i=n.parentNode)===null||i===void 0?void 0:i.transformable;kOt(n.transformable),bVi(n.transformable,r)}},{key:"internalUpdateElement",value:function(n,i){var r,o,s,a,l=((r=n.ownerDocument)===null||r===void 0||(r=r.defaultView)===null||r===void 0||(r=r.getConfig())===null||r===void 0||(r=r.future)===null||r===void 0?void 0:r.experimentalAttributeUpdateOptimization)===!0,c=i[i.length-1],u=c?.transformDirty||((o=n.transformable)===null||o===void 0?void 0:o.localDirtyFlag);if(n.transformable){var d;(d=n.transformable).dirtyFlag||(d.dirtyFlag=u)}if(this.internalUpdateTransform(n),u){var h;(h=n.dirty)===null||h===void 0||h.call(n,!0,!0)}var f=((s=n.renderable)===null||s===void 0?void 0:s.boundsDirty)||((a=n.renderable)===null||a===void 0?void 0:a.renderBoundsDirty);if((u||f)&&c?.shapeUpdated===!1&&l)for(var p=i.length-1;p>=0;){var g,m,v=i[p];if(v.shapeUpdated)break;(g=(m=v.node).dirty)===null||g===void 0||g.call(m,!0,!0),v.shapeUpdated=!0,p-=1}return u}},{key:"syncHierarchy",value:function(n){for(var i,r,o=[n],s=n.parentNode?[{node:n.parentNode,transformDirty:((i=n.parentNode.transformable)===null||i===void 0?void 0:i.localDirtyFlag)||((r=n.parentNode.transformable)===null||r===void 0?void 0:r.dirtyFlag),shapeUpdated:!1}]:[];o.length>0;){for(var a=o.pop(),l=s[s.length-1];s.length>0&&a.parentNode!==l.node;)l=s.pop();var c=this.internalUpdateElement(a,s);if(a.childNodes.length>0){for(var u=a.childNodes.length-1;u>=0;u--)o.push(a.childNodes[u]);s.push({node:a,transformDirty:c,shapeUpdated:!1})}}}},{key:"dirtyLocalTransform",value:function(n,i){efe(n)||i.localDirtyFlag||(i.localDirtyFlag=!0,i.dirtyFlag||this.dirtyWorldTransform(n,i))}},{key:"dirtyWorldTransform",value:function(n,i){this.dirtifyWorldInternal(n,i),this.dirtyToRoot(n,!0)}},{key:"dirtifyWorldInternal",value:function(n,i){var r,o=this,s=((r=n.ownerDocument)===null||r===void 0||(r=r.defaultView)===null||r===void 0||(r=r.getConfig())===null||r===void 0||(r=r.future)===null||r===void 0?void 0:r.experimentalAttributeUpdateOptimization)===!0;i.dirtyFlag||(i.dirtyFlag=!0,n.dirty(!0,!0),s||n.childNodes.forEach(function(a){var l=a.transformable;o.dirtifyWorldInternal(a,l)}))}},{key:"dirtyToRoot",value:function(n){for(var i,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=n,s=((i=n.ownerDocument)===null||i===void 0||(i=i.defaultView)===null||i===void 0||(i=i.getConfig())===null||i===void 0||(i=i.future)===null||i===void 0?void 0:i.experimentalAttributeUpdateOptimization)===!0;o;){var a,l;if((a=(l=o).dirty)===null||a===void 0||a.call(l,!0,!0),s)break;o=o.parentNode}r&&n.forEach(function(c){var u;(u=c.dirty)===null||u===void 0||u.call(c,!0,!0)}),this.informDependentDisplayObjects(n),this.pendingEvents.set(n,r)}},{key:"dirtifyFragment",value:function(n){var i,r,o=n.transformable;o&&(o.dirtyFlag=!0,o.localDirtyFlag=!0),(i=(r=n).dirty)===null||i===void 0||i.call(r,!0,!0);for(var s=n.childNodes.length,a=0;a<s;a++)this.dirtifyFragment(n.childNodes[a]);n.nodeName===qn.FRAGMENT&&this.pendingEvents.set(n,!1)}},{key:"triggerPendingEvents",value:function(){var n=this,i=new Set,r,o,s=function(l,c){if(!(!l.isConnected||i.has(l)||l.nodeName===qn.FRAGMENT)){if(n.boundsChangedEvent.detail=c,n.boundsChangedEvent.target=l,l.isMutationObserved)l.dispatchEvent(n.boundsChangedEvent);else{if(r===void 0){var u;r=((u=l.ownerDocument.defaultView)===null||u===void 0||(u=u.getConfig())===null||u===void 0||(u=u.future)===null||u===void 0?void 0:u.experimentalCancelEventPropagation)===!0}l.ownerDocument.defaultView.dispatchEvent(n.boundsChangedEvent,!0,r)}i.add(l)}};this.pendingEvents.forEach(function(a,l){if(l.nodeName!==qn.FRAGMENT){if(o===void 0){var c;o=((c=l.ownerDocument)===null||c===void 0||(c=c.defaultView)===null||c===void 0||(c=c.getConfig())===null||c===void 0||(c=c.future)===null||c===void 0?void 0:c.experimentalAttributeUpdateOptimization)===!0}Uie.affectChildren=a,o?s(l,Uie):a?l.forEach(function(u){s(u,Uie)}):s(l,Uie)}}),i.clear(),this.clearPendingEvents()}},{key:"clearPendingEvents",value:function(){this.pendingEvents.clear()}},{key:"updateDisplayObjectDependency",value:function(n,i,r,o){if(i&&i!==r){var s=this.displayObjectDependencyMap.get(i);if(s&&s[n]){var a=s[n].indexOf(o);s[n].splice(a,1)}}if(r){var l=this.displayObjectDependencyMap.get(r);l||(this.displayObjectDependencyMap.set(r,{}),l=this.displayObjectDependencyMap.get(r)),l[n]||(l[n]=[]),l[n].push(o)}}},{key:"informDependentDisplayObjects",value:function(n){var i,r=this,o=this.displayObjectDependencyMap.get(n);if(o){var s=(i=n.ownerDocument)===null||i===void 0||(i=i.defaultView)===null||i===void 0||(i=i.getConfig())===null||i===void 0||(i=i.future)===null||i===void 0?void 0:i.experimentalCancelEventPropagation;Object.keys(o).forEach(function(a){o[a].forEach(function(l){r.dirtyToRoot(l,!0),l.dispatchEvent(new dE(ea.ATTR_MODIFIED,l,r,r,a,dE.MODIFICATION,r,r),s,s),l.isCustomElement&&l.isConnected&&l.attributeChangedCallback&&l.attributeChangedCallback(a,r,r)})})}}}])})(),nRt=(function(){function e(t){if(_i(this,e),t<=0)throw new Error("LRU capacity must be a positive number.");this.capacity=t,this.cache=new Map}return wi(e,[{key:"get",value:function(n){if(this.cache.has(n)){var i=this.cache.get(n);return this.cache.delete(n),this.cache.set(n,i),i}}},{key:"put",value:function(n,i){if(this.cache.has(n)&&this.cache.delete(n),this.cache.set(n,i),this.cache.size>this.capacity){var r=this.cache.keys().next().value;this.cache.delete(r)}}},{key:"len",value:function(){return this.cache.size}},{key:"clear",value:function(){this.cache.clear()}}])})(),MM={MetricsString:"|ÉqÅ",BaselineSymbol:"M",BaselineMultiplier:1.4,HeightMultiplier:2,Newlines:[10,13],BreakingSpaces:[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288]},iRt=/[a-zA-Z0-9\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff!"#$%&'()*+,-./:;]/,JHi=/[!%),.:;?\]}¢°·'""†‡›℃∶、。〃〆〕〗〞﹚﹜!"%'),.:;?!]}~]/,eWi=/[$(£¥·'"〈《「『【〔〖〝﹙﹛$(.[{£¥]/,tWi=/[!),.:;?\]}¢·–—'"•"、。〆〞〕〉》」︰︱︲︳﹐﹑﹒﹓﹔﹕﹖﹘﹚﹜!),.:;?︶︸︺︼︾﹀﹂﹗]|}、]/,nWi=/[([{£¥'"‵〈《「『〔〝︴﹙﹛({︵︷︹︻︽︿﹁﹃﹏]/,iWi=/[)\]}〕〉》」』】〙〗〟'"⦆»ヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻‐゠–〜?!‼⁇⁈⁉・、:;,。.]/,rWi=/[([{〔〈《「『【〘〖〝'"⦅«—...‥〳〴〵]/,oWi=/[!%),.:;?\]}¢°'"†‡℃〆〈《「『〕!%),.:;?]}]/,sWi=/[$([{£¥'"々〇〉》」〔$([{⦆¥₩#]/,aWi=new RegExp("".concat(JHi.source,"|").concat(tWi.source,"|").concat(iWi.source,"|").concat(oWi.source)),lWi=new RegExp("".concat(eWi.source,"|").concat(nWi.source,"|").concat(rWi.source,"|").concat(sWi.source)),cWi=(function(){function e(t){var n=this;_i(this,e),this.fontMetricsCache={},this.shouldBreakByKinsokuShorui=function(i,r){return n.isBreakingSpace(r)?!1:!!(i&&(lWi.exec(r)||aWi.exec(i)))},this.trimByKinsokuShorui=function(i){var r=va(i),o=r[r.length-2];if(!o)return i;var s=o[o.length-1];return r[r.length-2]=o.slice(0,-1),r[r.length-1]=s+r[r.length-1],r},this.runtime=t,this.charWidthCache=new nRt(100)}return wi(e,[{key:"measureFont",value:(function(n,i){if(this.fontMetricsCache[n])return this.fontMetricsCache[n];var r={ascent:0,descent:0,fontSize:0},o=this.runtime.offscreenCanvasCreator.getOrCreateCanvas(i),s=this.runtime.offscreenCanvasCreator.getOrCreateContext(i,{willReadFrequently:!0});s.font=n;var a=MM.MetricsString+MM.BaselineSymbol,l=Math.ceil(s.measureText(a).width),c=Math.ceil(s.measureText(MM.BaselineSymbol).width),u=MM.HeightMultiplier*c;c=c*MM.BaselineMultiplier|0,o.width=l,o.height=u,s.fillStyle="#f00",s.fillRect(0,0,l,u),s.font=n,s.textBaseline="alphabetic",s.fillStyle="#000",s.fillText(a,0,c);var d=s.getImageData(0,0,l||1,u||1).data,h=d.length,f=l*4,p=0,g=0,m=!1;for(p=0;p<c;++p){for(var v=0;v<f;v+=4)if(d[g+v]!==255){m=!0;break}if(!m)g+=f;else break}for(r.ascent=c-p,g=h-f,m=!1,p=u;p>c;--p){for(var y=0;y<f;y+=4)if(d[g+y]!==255){m=!0;break}if(!m)g-=f;else break}return r.descent=p-c,r.fontSize=r.ascent+r.descent,this.fontMetricsCache[n]=r,r})},{key:"measureText",value:function(n,i,r){var o=i.fontSize,s=o===void 0?16:o,a=i.wordWrap,l=a===void 0?!1:a,c=i.lineHeight,u=i.lineWidth,d=u===void 0?1:u,h=i.textBaseline,f=h===void 0?"alphabetic":h,p=i.textAlign,g=p===void 0?"start":p,m=i.letterSpacing,v=m===void 0?0:m,y=i.textPath;i.textPathSide,i.textPathStartOffset;var b=i.leading,w=b===void 0?0:b,E=XOt(i),A=this.measureFont(E,r);A.fontSize===0&&(A.fontSize=s,A.ascent=s);var D=this.runtime.offscreenCanvasCreator.getOrCreateContext(r);D.font=E,i.isOverflowing=!1;var T=l?this.wordWrap(n,i,r):n,M=T.split(/(?:\r\n|\r|\n)/),P=new Array(M.length),F=0;if(y){y.getTotalLength();for(var N=0;N<M.length;N++)D.measureText(M[N]).width+(M[N].length-1)*v}else{for(var j=0;j<M.length;j++){var W=D.measureText(M[j]).width+(M[j].length-1)*v;P[j]=W,F=Math.max(F,W)}var J=F+d,ee=c||A.fontSize+d,Q=Math.max(ee,A.fontSize+d)+(M.length-1)*(ee+w);ee+=w;var H=0;return f==="middle"?H=-Q/2:f==="bottom"||f==="alphabetic"||f==="ideographic"?H=-Q:(f==="top"||f==="hanging")&&(H=0),{font:E,width:J,height:Q,lines:M,lineWidths:P,lineHeight:ee,maxLineWidth:F,fontProperties:A,lineMetrics:P.map(function(q,le){var Y=0;return g==="center"||g==="middle"?Y-=q/2:(g==="right"||g==="end")&&(Y-=q),new q9(Y-d/2,H+le*ee,q+d,ee)})}}}},{key:"wordWrap",value:function(n,i,r){var o=this,s=Array.from(n);if(s.length===0)return"";var a=this,l=i.wordWrapWidth,c=l===void 0?0:l,u=i.letterSpacing,d=u===void 0?0:u,h=i.maxLines,f=h===void 0?1/0:h,p=i.textOverflow,g=this.runtime.offscreenCanvasCreator.getOrCreateContext(r),m=c+d,v="";p==="ellipsis"?v="...":p&&p!=="clip"&&(v=p);var y=[""],b=0,w=0,E=-1,A=XOt(i),D=this.charWidthCache.get(A);D||(D=new nRt(500),this.charWidthCache.put(A,D));var T=function(q){return o.getFromCache(q,d,D,g)},M=T(v);function P(H,q,le,Y){for(;T(H)<Y&&q<s.length-1&&!a.isNewline(s[q+1]);)q+=1,H+=s[q];for(;T(H)>Y&&q>=le;)q-=1,H=H.slice(0,-1);return{lineTxt:H,txtLastCharIndex:q}}function F(H,q){if(!(M<=0||M>m)){if(!y[H]){y[H]=v;return}var le=P(y[H],q,E+1,m-M);y[H]=le.lineTxt+v}}for(var N=0;N<s.length;N++){var j=s[N],W=s[N-1],J=s[N+1],ee=T(j);if(this.isNewline(j)){if(b+1>=f){N<s.length-1&&F(b,N-1),i.isOverflowing=!0;break}E=N-1,b+=1,w=0,y[b]="";continue}if(ee>m){F(b,N-1),i.isOverflowing=!0;break}if(w>0&&w+ee>m){var Q=P(y[b],N-1,E+1,m);if(Q.txtLastCharIndex!==N-1){if(y[b]=Q.lineTxt,Q.txtLastCharIndex===s.length-1)break;N=Q.txtLastCharIndex+1,j=s[N],W=s[N-1],J=s[N+1],ee=T(j)}if(b+1>=f){F(b,N-1),i.isOverflowing=!0;break}if(E=N-1,b+=1,w=0,y[b]="",this.isBreakingSpace(j))continue;this.canBreakInLastChar(j)||(y=this.trimToBreakable(y),w=this.sumTextWidthByCache(y[b]||"",T)),this.shouldBreakByKinsokuShorui(j,J)&&(y=this.trimByKinsokuShorui(y),w+=T(W||""))}w+=ee,y[b]+=j}return y.join(`
`)}},{key:"isBreakingSpace",value:function(n){return typeof n!="string"?!1:MM.BreakingSpaces.indexOf(n.charCodeAt(0))>=0}},{key:"isNewline",value:function(n){return typeof n!="string"?!1:MM.Newlines.indexOf(n.charCodeAt(0))>=0}},{key:"trimToBreakable",value:function(n){var i=va(n),r=i[i.length-2],o=this.findBreakableIndex(r);if(o===-1||!r)return i;var s=r.slice(o,o+1),a=this.isBreakingSpace(s),l=o+1,c=o+(a?0:1);return i[i.length-1]+=r.slice(l,r.length),i[i.length-2]=r.slice(0,c),i}},{key:"canBreakInLastChar",value:function(n){return!(n&&iRt.test(n))}},{key:"sumTextWidthByCache",value:function(n,i){return n.split("").reduce(function(r,o){return r+i(o)},0)}},{key:"findBreakableIndex",value:function(n){for(var i=n.length-1;i>=0;i--)if(!iRt.test(n[i]))return i;return-1}},{key:"getFromCache",value:function(n,i,r,o){var s=r.get(n);if(typeof s!="number"){var a=n.length*i,l=o.measureText(n);s=l.width+a,r.put(n,s)}return s}},{key:"clearCache",value:function(){this.fontMetricsCache={},this.charWidthCache.clear()}}])})(),Si={},uWi=(function(e){var t=new MHi,n=new PHi;return e={},_r(_r(_r(_r(_r(_r(_r(_r(_r(_r(e,qn.FRAGMENT,null),qn.CIRCLE,new kHi),qn.ELLIPSE,new IHi),qn.RECT,t),qn.IMAGE,t),qn.GROUP,new RHi),qn.LINE,new LHi),qn.TEXT,new OHi(Si)),qn.POLYLINE,n),qn.POLYGON,n),_r(_r(_r(e,qn.PATH,new NHi),qn.HTML,new FHi),qn.MESH,null)})(),dWi=(function(e){var t=new V3i,n=new V7e;return e={},_r(_r(_r(_r(_r(_r(_r(_r(_r(_r(e,tr.PERCENTAGE,null),tr.NUMBER,new q3i),tr.ANGLE,new j3i),tr.DEFINED_PATH,new z3i),tr.PAINT,t),tr.COLOR,t),tr.FILTER,new H3i),tr.LENGTH,n),tr.LENGTH_PERCENTAGE,n),tr.LENGTH_PERCENTAGE_12,new W3i),_r(_r(_r(_r(_r(_r(_r(_r(_r(_r(e,tr.LENGTH_PERCENTAGE_14,new U3i),tr.COORDINATE,new V7e),tr.OFFSET_DISTANCE,new G3i),tr.OPACITY_VALUE,new K3i),tr.PATH,new Y3i),tr.LIST_OF_POINTS,new Q3i),tr.SHADOW_BLUR,new Z3i),tr.TEXT,new X3i),tr.TEXT_TRANSFORM,new J3i),tr.TRANSFORM,new AHi),_r(_r(_r(e,tr.TRANSFORM_ORIGIN,new DHi),tr.Z_INDEX,new THi),tr.MARKER,new $3i)})(),hWi=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}};Si.CameraContribution=Wbn;Si.AnimationTimeline=null;Si.EasingFunction=null;Si.offscreenCanvasCreator=new dZe;Si.sceneGraphSelector=new HHi;Si.sceneGraphService=new XHi(Si);Si.textService=new cWi(Si);Si.geometryUpdaterFactory=uWi;Si.CSSPropertySyntaxFactory=dWi;Si.styleValueRegistry=new F3i(Si);Si.layoutRegistry=null;Si.globalThis=hWi();Si.enableStyleSyntax=!0;Si.enableSizeAttenuation=!1;var fWi=0,U7e=new dE(ea.INSERTED,null,"","","",0,"",""),$7e=new dE(ea.REMOVED,null,"","","",0,"",""),v_n=new of(ea.DESTROY),pWi=(function(e){function t(){var n;_i(this,t);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return n=Hs(this,t,[].concat(r)),n.entity=fWi++,n.transformable={dirtyFlag:!1,localDirtyFlag:!1,localPosition:[0,0,0],localRotation:[0,0,0,1],localScale:[1,1,1],localTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],localSkew:[0,0],position:[0,0,0],rotation:[0,0,0,1],scaling:[1,1,1],worldTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],origin:[0,0,0]},n.renderable={bounds:void 0,boundsDirty:!0,renderBounds:void 0,renderBoundsDirty:!0,dirtyRenderBounds:void 0,dirty:!1},n.geometry={contentBounds:void 0,renderBounds:void 0,dirty:!0},n.cullable={strategy:mVi.Standard,visibilityPlaneMask:-1,visible:!0,enable:!0},n.sortable={dirty:!1,sorted:void 0,renderOrder:0,dirtyChildren:[],dirtyReason:void 0},n.rBushNode={aabb:void 0},n.namespaceURI="g",n.scrollLeft=0,n.scrollTop=0,n.clientTop=0,n.clientLeft=0,n.style={},n.computedStyle={},n.parsedStyle={},n.attributes={},n}return Ws(t,e),wi(t,[{key:"dirty",value:(function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this.renderable.dirty=i,r&&(this.renderable.boundsDirty=i,this.renderable.renderBoundsDirty=i)})},{key:"className",get:(function(){return this.getAttribute("class")||""}),set:function(i){this.setAttribute("class",i)}},{key:"classList",get:(function(){return this.className.split(" ").filter(function(i){return i!==""})})},{key:"tagName",get:function(){return this.nodeName}},{key:"children",get:function(){return this.childNodes}},{key:"childElementCount",get:function(){return this.childNodes.length}},{key:"firstElementChild",get:function(){return this.firstChild}},{key:"lastElementChild",get:function(){return this.lastChild}},{key:"parentElement",get:function(){return this.parentNode}},{key:"nextSibling",get:function(){if(this.parentNode){var i=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[i+1]||null}return null}},{key:"previousSibling",get:function(){if(this.parentNode){var i=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[i-1]||null}return null}},{key:"cloneNode",value:function(i){throw new Error(gc)}},{key:"appendChild",value:function(i,r){var o;if(i.destroyed)throw new Error(oVi);return Si.sceneGraphService.attach(i,this,r),(o=this.ownerDocument)!==null&&o!==void 0&&o.defaultView&&(!efe(this)&&i.nodeName===qn.FRAGMENT?this.ownerDocument.defaultView.mountFragment(i):this.ownerDocument.defaultView.mountChildren(i)),this.isMutationObserved&&(U7e.relatedNode=this,i.dispatchEvent(U7e)),i}},{key:"insertBefore",value:function(i,r){if(!r)this.appendChild(i);else{i.parentElement&&i.parentElement.removeChild(i);var o=this.childNodes.indexOf(r);o===-1?this.appendChild(i):this.appendChild(i,o)}return i}},{key:"replaceChild",value:function(i,r){var o=this.childNodes.indexOf(r);return this.removeChild(r),this.appendChild(i,o),r}},{key:"removeChild",value:function(i){var r,o,s=((r=this.ownerDocument)===null||r===void 0||(r=r.defaultView)===null||r===void 0||(r=r.getConfig().future)===null||r===void 0?void 0:r.experimentalCancelEventPropagation)===!0;return $7e.relatedNode=this,i.dispatchEvent($7e,s,s),(o=i.ownerDocument)!==null&&o!==void 0&&o.defaultView&&i.ownerDocument.defaultView.unmountChildren(i),Si.sceneGraphService.detach(i),i}},{key:"removeChildren",value:function(){for(var i=this.childNodes.length-1;i>=0;i--){var r=this.childNodes[i];this.removeChild(r)}}},{key:"destroyChildren",value:function(){for(var i=this.childNodes.length-1;i>=0;i--){var r=this.childNodes[i];r.childNodes.length>0&&r.destroyChildren(),r.destroy()}}},{key:"matches",value:function(i){return Si.sceneGraphService.matches(i,this)}},{key:"getElementById",value:function(i){return Si.sceneGraphService.querySelector("#".concat(i),this)}},{key:"getElementsByName",value:function(i){return Si.sceneGraphService.querySelectorAll('[name="'.concat(i,'"]'),this)}},{key:"getElementsByClassName",value:function(i){return Si.sceneGraphService.querySelectorAll(".".concat(i),this)}},{key:"getElementsByTagName",value:function(i){return Si.sceneGraphService.querySelectorAll(i,this)}},{key:"querySelector",value:function(i){return Si.sceneGraphService.querySelector(i,this)}},{key:"querySelectorAll",value:function(i){return Si.sceneGraphService.querySelectorAll(i,this)}},{key:"closest",value:function(i){var r=this;do{if(Si.sceneGraphService.matches(i,r))return r;r=r.parentElement}while(r!==null);return null}},{key:"find",value:function(i){var r=this,o=null;return this.forEach(function(s){return s!==r&&i(s)?(o=s,!1):!0}),o}},{key:"findAll",value:function(i){var r=this,o=[];return this.forEach(function(s){s!==r&&i(s)&&o.push(s)}),o}},{key:"after",value:function(){var i=this;if(this.parentNode){for(var r=this.parentNode.childNodes.indexOf(this),o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];s.forEach(function(l,c){var u;return(u=i.parentNode)===null||u===void 0?void 0:u.appendChild(l,r+c+1)})}}},{key:"before",value:function(){if(this.parentNode){for(var i,r=this.parentNode.childNodes.indexOf(this),o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var l=s[0],c=s.slice(1);this.parentNode.appendChild(l,r),(i=l).after.apply(i,va(c))}}},{key:"replaceWith",value:function(){this.after.apply(this,arguments),this.remove()}},{key:"append",value:function(){for(var i=this,r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o.forEach(function(a){return i.appendChild(a)})}},{key:"prepend",value:function(){for(var i=this,r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o.forEach(function(a,l){return i.appendChild(a,l)})}},{key:"replaceChildren",value:function(){for(;this.childNodes.length&&this.firstChild;)this.removeChild(this.firstChild);this.append.apply(this,arguments)}},{key:"remove",value:function(){return this.parentNode?this.parentNode.removeChild(this):this}},{key:"destroy",value:function(){var i,r=((i=this.ownerDocument)===null||i===void 0||(i=i.defaultView)===null||i===void 0||(i=i.getConfig().future)===null||i===void 0?void 0:i.experimentalCancelEventPropagation)===!0;this.destroyChildren(),this.dispatchEvent(v_n,r,r),this.remove(),this.emitter.removeAllListeners(),this.destroyed=!0}},{key:"getGeometryBounds",value:function(){return Si.sceneGraphService.getGeometryBounds(this)}},{key:"getRenderBounds",value:function(){return Si.sceneGraphService.getBounds(this,!0)}},{key:"getBounds",value:function(){return Si.sceneGraphService.getBounds(this)}},{key:"getLocalBounds",value:function(){return Si.sceneGraphService.getLocalBounds(this)}},{key:"getBoundingClientRect",value:function(){return Si.sceneGraphService.getBoundingClientRect(this)}},{key:"getClientRects",value:function(){return[this.getBoundingClientRect()]}},{key:"computedStyleMap",value:(function(){return new Map(Object.entries(this.computedStyle))})},{key:"getAttributeNames",value:(function(){return Object.keys(this.attributes)})},{key:"getAttribute",value:function(i){if(typeof i!="symbol"){var r=this.attributes[i];return r}}},{key:"hasAttribute",value:function(i){return this.getAttributeNames().includes(i)}},{key:"hasAttributes",value:function(){return!!this.getAttributeNames().length}},{key:"removeAttribute",value:function(i){this.setAttribute(i,null),delete this.attributes[i]}},{key:"setAttribute",value:function(i,r,o,s){this.attributes[i]=r}},{key:"getAttributeNS",value:function(i,r){throw new Error(gc)}},{key:"getAttributeNode",value:function(i){throw new Error(gc)}},{key:"getAttributeNodeNS",value:function(i,r){throw new Error(gc)}},{key:"hasAttributeNS",value:function(i,r){throw new Error(gc)}},{key:"removeAttributeNS",value:function(i,r){throw new Error(gc)}},{key:"removeAttributeNode",value:function(i){throw new Error(gc)}},{key:"setAttributeNS",value:function(i,r,o){throw new Error(gc)}},{key:"setAttributeNode",value:function(i){throw new Error(gc)}},{key:"setAttributeNodeNS",value:function(i){throw new Error(gc)}},{key:"toggleAttribute",value:function(i,r){throw new Error(gc)}}])})($u);function sl(e){return!!(e!=null&&e.nodeName)}var gWi=Si.globalThis.Proxy?Si.globalThis.Proxy:function(){},qS=new dE(ea.ATTR_MODIFIED,null,null,null,null,dE.MODIFICATION,null,null),tH=gt.vec3.create(),mWi=gt.quat.create(),xu=(function(e){function t(n){var i;return _i(this,t),i=Hs(this,t),i.isCustomElement=!1,i.isMutationObserved=!1,i.activeAnimations=[],i.config=n,i.id=n.id||"",i.name=n.name||"",(n.className||n.class)&&(i.className=n.className||n.class),i.nodeName=n.type||qn.GROUP,n.initialParsedStyle&&Object.assign(i.parsedStyle,n.initialParsedStyle),i.initAttributes(n.style),Si.enableStyleSyntax&&(i.style=new gWi({setProperty:function(o,s){i.setAttribute(o,s)},getPropertyValue:function(o){return i.getAttribute(o)},removeProperty:function(o){i.removeAttribute(o)},item:function(){return""}},{get:function(o,s){return o[s]!==void 0?o[s]:i.getAttribute(s)},set:function(o,s,a){return i.setAttribute(s,a),!0}})),i}return Ws(t,e),wi(t,[{key:"destroy",value:function(){bOt(t,"destroy",this)([]),this.getAnimations().forEach(function(i){i.cancel()})}},{key:"cloneNode",value:function(i,r){var o=Ps({},this.attributes);for(var s in o){var a=o[s];sl(a)&&s!=="clipPath"&&s!=="offsetPath"&&s!=="textPath"&&(o[s]=a.cloneNode(i)),r&&(o[s]=r(s,a))}var l=new this.constructor(Ps(Ps({},this.config),{},{style:o}));return l.setLocalTransform(this.getLocalTransform()),i&&this.children.forEach(function(c){if(!c.style.isMarker){var u=c.cloneNode(i);l.appendChild(u)}}),l}},{key:"initAttributes",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r={forceUpdateGeometry:!0};Si.styleValueRegistry.processProperties(this,i,r),this.dirty()}},{key:"setAttribute",value:function(i,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;(0,Wi.isUndefined)(r)||(o||r!==this.attributes[i])&&(this.internalSetAttribute(i,r,{memoize:s}),bOt(t,"setAttribute",this)([i,r]))}},{key:"internalSetAttribute",value:function(i,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=this.attributes[i],a=this.parsedStyle[i];Si.styleValueRegistry.processProperties(this,_r({},i,r),o),this.dirty();var l=this.parsedStyle[i];if(this.isConnected)if(qS.relatedNode=this,qS.prevValue=s,qS.newValue=r,qS.attrName=i,qS.prevParsedValue=a,qS.newParsedValue=l,this.isMutationObserved)this.dispatchEvent(qS);else{var c,u=((c=this.ownerDocument.defaultView.getConfig().future)===null||c===void 0?void 0:c.experimentalCancelEventPropagation)===!0;qS.target=this,this.ownerDocument.defaultView.dispatchEvent(qS,!0,u)}if(this.isCustomElement&&this.isConnected||!this.isCustomElement){var d,h;(d=(h=this).attributeChangedCallback)===null||d===void 0||d.call(h,i,s,r,a,l)}}},{key:"getBBox",value:function(){var i=this.getBounds(),r=i.getMin(),o=As(r,2),s=o[0],a=o[1],l=i.getMax(),c=As(l,2),u=c[0],d=c[1];return new q9(s,a,u-s,d-a)}},{key:"setOrigin",value:function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return Si.sceneGraphService.setOrigin(this,iv(i,r,o,!1)),this}},{key:"getOrigin",value:function(){return Si.sceneGraphService.getOrigin(this)}},{key:"setPosition",value:function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return Si.sceneGraphService.setPosition(this,iv(i,r,o,!1)),this}},{key:"setLocalPosition",value:function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return Si.sceneGraphService.setLocalPosition(this,iv(i,r,o,!1)),this}},{key:"translate",value:function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return Si.sceneGraphService.translate(this,iv(i,r,o,!1)),this}},{key:"translateLocal",value:function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return Si.sceneGraphService.translateLocal(this,iv(i,r,o,!1)),this}},{key:"getPosition",value:function(){return Si.sceneGraphService.getPosition(this)}},{key:"getLocalPosition",value:function(){return Si.sceneGraphService.getLocalPosition(this)}},{key:"scale",value:function(i,r,o){return this.scaleLocal(i,r,o)}},{key:"scaleLocal",value:function(i,r,o){return typeof i=="number"&&(r=r||i,o=o||i,i=iv(i,r,o,!1)),Si.sceneGraphService.scaleLocal(this,i),this}},{key:"setLocalScale",value:function(i,r,o){return typeof i=="number"&&(r=r||i,o=o||i,i=iv(i,r,o,!1)),Si.sceneGraphService.setLocalScale(this,i),this}},{key:"getLocalScale",value:function(){return Si.sceneGraphService.getLocalScale(this)}},{key:"getScale",value:function(){return Si.sceneGraphService.getScale(this)}},{key:"getEulerAngles",value:function(){var i=cMe(tH,Si.sceneGraphService.getWorldTransform(this)),r=As(i,3),o=r[2];return p0(o)}},{key:"getLocalEulerAngles",value:function(){var i=cMe(tH,Si.sceneGraphService.getLocalRotation(this)),r=As(i,3),o=r[2];return p0(o)}},{key:"setEulerAngles",value:function(i){return Si.sceneGraphService.setEulerAngles(this,0,0,i),this}},{key:"setLocalEulerAngles",value:function(i){return Si.sceneGraphService.setLocalEulerAngles(this,0,0,i),this}},{key:"rotateLocal",value:function(i,r,o){return(0,Wi.isNil)(r)&&(0,Wi.isNil)(o)?Si.sceneGraphService.rotateLocal(this,0,0,i):Si.sceneGraphService.rotateLocal(this,i,r,o),this}},{key:"rotate",value:function(i,r,o){return(0,Wi.isNil)(r)&&(0,Wi.isNil)(o)?Si.sceneGraphService.rotate(this,0,0,i):Si.sceneGraphService.rotate(this,i,r,o),this}},{key:"setRotation",value:function(i,r,o,s){return Si.sceneGraphService.setRotation(this,i,r,o,s),this}},{key:"setLocalRotation",value:function(i,r,o,s){return Si.sceneGraphService.setLocalRotation(this,i,r,o,s),this}},{key:"setLocalSkew",value:function(i,r){return Si.sceneGraphService.setLocalSkew(this,i,r),this}},{key:"getRotation",value:function(){return Si.sceneGraphService.getRotation(this)}},{key:"getLocalRotation",value:function(){return Si.sceneGraphService.getLocalRotation(this)}},{key:"getLocalSkew",value:function(){return Si.sceneGraphService.getLocalSkew(this)}},{key:"getLocalTransform",value:function(){return Si.sceneGraphService.getLocalTransform(this)}},{key:"getWorldTransform",value:function(){return Si.sceneGraphService.getWorldTransform(this)}},{key:"setLocalTransform",value:function(i){return Si.sceneGraphService.setLocalTransform(this,i),this}},{key:"resetLocalTransform",value:function(){Si.sceneGraphService.resetLocalTransform(this)}},{key:"getAnimations",value:function(){return this.activeAnimations}},{key:"animate",value:function(i,r){var o,s=(o=this.ownerDocument)===null||o===void 0?void 0:o.timeline;return s?s.play(this,i,r):null}},{key:"isVisible",value:function(){var i;return((i=this.parsedStyle)===null||i===void 0?void 0:i.visibility)!=="hidden"}},{key:"interactive",get:function(){return this.isInteractive()},set:function(i){this.style.pointerEvents=i?"auto":"none"}},{key:"isInteractive",value:function(){var i;return((i=this.parsedStyle)===null||i===void 0?void 0:i.pointerEvents)!=="none"}},{key:"isCulled",value:function(){return!!(this.cullable&&this.cullable.enable&&!this.cullable.visible)}},{key:"toFront",value:function(){return this.parentNode&&(this.style.zIndex=Math.max.apply(Math,va(this.parentNode.children.map(function(i){return Number(i.style.zIndex)})))+1),this}},{key:"toBack",value:function(){return this.parentNode&&(this.style.zIndex=Math.min.apply(Math,va(this.parentNode.children.map(function(i){return Number(i.style.zIndex)})))-1),this}},{key:"getConfig",value:function(){return this.config}},{key:"attr",value:function(){for(var i=this,r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a=o[0],l=o[1];return a?(0,Wi.isObject)(a)?(Object.keys(a).forEach(function(c){i.setAttribute(c,a[c])}),this):o.length===2?(this.setAttribute(a,l),this):this.attributes[a]:this.attributes}},{key:"getMatrix",value:function(i){var r=i||this.getWorldTransform(),o=gt.mat4.getTranslation(tH,r),s=As(o,2),a=s[0],l=s[1],c=gt.mat4.getScaling(tH,r),u=As(c,2),d=u[0],h=u[1],f=gt.mat4.getRotation(mWi,r),p=cMe(tH,f),g=As(p,3),m=g[0],v=g[2];return dVi(m||v,a,l,d,h)}},{key:"getLocalMatrix",value:function(){return this.getMatrix(this.getLocalTransform())}},{key:"setMatrix",value:function(i){var r=AOt(i),o=As(r,5),s=o[0],a=o[1],l=o[2],c=o[3],u=o[4];this.setEulerAngles(u).setPosition(s,a).setLocalScale(l,c)}},{key:"setLocalMatrix",value:function(i){var r=AOt(i),o=As(r,5),s=o[0],a=o[1],l=o[2],c=o[3],u=o[4];this.setLocalEulerAngles(u).setLocalPosition(s,a).setLocalScale(l,c)}},{key:"show",value:function(){this.forEach(function(i){i.style.visibility="visible"})}},{key:"hide",value:function(){this.forEach(function(i){i.style.visibility="hidden"})}},{key:"getCount",value:function(){return this.childElementCount}},{key:"getParent",value:function(){return this.parentElement}},{key:"getChildren",value:function(){return this.children}},{key:"getFirst",value:function(){return this.firstElementChild}},{key:"getLast",value:function(){return this.lastElementChild}},{key:"getChildByIndex",value:function(i){return this.children[i]||null}},{key:"add",value:function(i,r){return this.appendChild(i,r)}},{key:"set",value:function(i,r){this.config[i]=r}},{key:"get",value:function(i){return this.config[i]}},{key:"moveTo",value:function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return this.setPosition(i,r,o),this}},{key:"move",value:function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return this.setPosition(i,r,o),this}},{key:"setZIndex",value:function(i){return this.style.zIndex=i,this}}])})(pWi);xu.PARSED_STYLE_LIST=new Set(["class","className","clipPath","cursor","display","draggable","droppable","fill","fillOpacity","fillRule","filter","increasedLineWidthForHitTesting","lineCap","lineDash","lineDashOffset","lineJoin","lineWidth","miterLimit","hitArea","offsetDistance","offsetPath","offsetX","offsetY","opacity","pointerEvents","shadowColor","shadowType","shadowBlur","shadowOffsetX","shadowOffsetY","stroke","strokeOpacity","strokeWidth","strokeLinecap","strokeLineJoin","strokeDasharray","strokeDashoffset","transform","transformOrigin","textTransform","visibility","zIndex"]);var NC=(function(e){function t(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return _i(this,t),Hs(this,t,[Ps({type:qn.CIRCLE},n)])}return Ws(t,e),wi(t)})(xu);NC.PARSED_STYLE_LIST=new Set([].concat(va(xu.PARSED_STYLE_LIST),["cx","cy","cz","r","isBillboard","isSizeAttenuation"]));var vWi=["style"],hZe=(function(e){function t(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=i.style,o=NF(i,vWi);return _i(this,t),n=Hs(this,t,[Ps({style:r},o)]),n.isCustomElement=!0,n}return Ws(t,e),wi(t)})(xu);hZe.PARSED_STYLE_LIST=new Set(["class","className","clipPath","cursor","draggable","droppable","opacity","pointerEvents","transform","transformOrigin","zIndex","visibility"]);var JQ=(function(e){function t(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return _i(this,t),Hs(this,t,[Ps({type:qn.ELLIPSE},n)])}return Ws(t,e),wi(t)})(xu);JQ.PARSED_STYLE_LIST=new Set([].concat(va(xu.PARSED_STYLE_LIST),["cx","cy","cz","rx","ry","isBillboard","isSizeAttenuation"]));var yWi=(function(e){function t(){return _i(this,t),Hs(this,t,[{type:qn.FRAGMENT}])}return Ws(t,e),wi(t)})(xu);yWi.PARSED_STYLE_LIST=new Set(["class","className"]);var qf=(function(e){function t(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return _i(this,t),Hs(this,t,[Ps({type:qn.GROUP},n)])}return Ws(t,e),wi(t)})(xu);qf.PARSED_STYLE_LIST=new Set(["class","className","clipPath","cursor","draggable","droppable","opacity","pointerEvents","transform","transformOrigin","zIndex","visibility"]);var bWi=["style"],MF=(function(e){function t(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=i.style,o=NF(i,bWi);return _i(this,t),n=Hs(this,t,[Ps({type:qn.HTML,style:r},o)]),n.cullable.enable=!1,n}return Ws(t,e),wi(t,[{key:"getDomElement",value:function(){return this.parsedStyle.$el}},{key:"getClientRects",value:function(){return[this.getBoundingClientRect()]}},{key:"getLocalBounds",value:function(){if(this.parentNode){var i=gt.mat4.invert(gt.mat4.create(),this.parentNode.getWorldTransform()),r=this.getBounds();if(!mc.isEmpty(r)){var o=new mc;return o.setFromTransformedAABB(r,i),o}}return this.getBounds()}}])})(xu);MF.PARSED_STYLE_LIST=new Set([].concat(va(xu.PARSED_STYLE_LIST),["x","y","$el","innerHTML","width","height"]));var Cj=(function(e){function t(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return _i(this,t),Hs(this,t,[Ps({type:qn.IMAGE},n)])}return Ws(t,e),wi(t)})(xu);Cj.PARSED_STYLE_LIST=new Set([].concat(va(xu.PARSED_STYLE_LIST),["x","y","z","src","width","height","isBillboard","billboardRotation","isSizeAttenuation","keepAspectRatio"]));var _Wi=["style"],N2=(function(e){function t(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=i.style,o=NF(i,_Wi);_i(this,t),n=Hs(this,t,[Ps({type:qn.LINE,style:Ps({x1:0,y1:0,x2:0,y2:0,z1:0,z2:0},r)},o)]),n.markerStartAngle=0,n.markerEndAngle=0;var s=n.parsedStyle,a=s.markerStart,l=s.markerEnd;return a&&sl(a)&&(n.markerStartAngle=a.getLocalEulerAngles(),n.appendChild(a)),l&&sl(l)&&(n.markerEndAngle=l.getLocalEulerAngles(),n.appendChild(l)),n.transformMarker(!0),n.transformMarker(!1),n}return Ws(t,e),wi(t,[{key:"attributeChangedCallback",value:function(i,r,o,s,a){i==="x1"||i==="y1"||i==="x2"||i==="y2"||i==="markerStartOffset"||i==="markerEndOffset"?(this.transformMarker(!0),this.transformMarker(!1)):i==="markerStart"?(s&&sl(s)&&(this.markerStartAngle=0,s.remove()),a&&sl(a)&&(this.markerStartAngle=a.getLocalEulerAngles(),this.appendChild(a),this.transformMarker(!0))):i==="markerEnd"&&(s&&sl(s)&&(this.markerEndAngle=0,s.remove()),a&&sl(a)&&(this.markerEndAngle=a.getLocalEulerAngles(),this.appendChild(a),this.transformMarker(!1)))}},{key:"transformMarker",value:function(i){var r=this.parsedStyle,o=r.markerStart,s=r.markerEnd,a=r.markerStartOffset,l=r.markerEndOffset,c=r.x1,u=r.x2,d=r.y1,h=r.y2,f=i?o:s;if(!(!f||!sl(f))){var p=0,g,m,v,y,b,w;i?(v=c,y=d,g=u-c,m=h-d,b=a||0,w=this.markerStartAngle):(v=u,y=h,g=c-u,m=d-h,b=l||0,w=this.markerEndAngle),p=Math.atan2(m,g),f.setLocalEulerAngles(p*180/Math.PI+w),f.setLocalPosition(v+Math.cos(p)*b,y+Math.sin(p)*b)}}},{key:"getPoint",value:function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=this.parsedStyle,s=o.x1,a=o.y1,l=o.x2,c=o.y2,u=Bbn(s,a,l,c,i),d=u.x,h=u.y,f=gt.vec3.transformMat4(gt.vec3.create(),gt.vec3.fromValues(d,h,0),r?this.getWorldTransform():this.getLocalTransform());return new rg(f[0],f[1])}},{key:"getPointAtLength",value:function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return this.getPoint(i/this.getTotalLength(),r)}},{key:"getTotalLength",value:function(){var i=this.parsedStyle,r=i.x1,o=i.y1,s=i.x2,a=i.y2;return Fbn(r,o,s,a)}}])})(xu);N2.PARSED_STYLE_LIST=new Set([].concat(va(xu.PARSED_STYLE_LIST),["x1","y1","x2","y2","z1","z2","isBillboard","isSizeAttenuation","markerStart","markerEnd","markerStartOffset","markerEndOffset"]));var wWi=["style"],$y=(function(e){function t(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=i.style,o=NF(i,wWi);_i(this,t),n=Hs(this,t,[Ps({type:qn.PATH,style:r,initialParsedStyle:{miterLimit:4,d:Ps({},Ubn)}},o)]),n.markerStartAngle=0,n.markerEndAngle=0,n.markerMidList=[];var s=n.parsedStyle,a=s.markerStart,l=s.markerEnd,c=s.markerMid;return a&&sl(a)&&(n.markerStartAngle=a.getLocalEulerAngles(),n.appendChild(a)),c&&sl(c)&&n.placeMarkerMid(c),l&&sl(l)&&(n.markerEndAngle=l.getLocalEulerAngles(),n.appendChild(l)),n.transformMarker(!0),n.transformMarker(!1),n}return Ws(t,e),wi(t,[{key:"attributeChangedCallback",value:function(i,r,o,s,a){i==="d"?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):i==="markerStartOffset"||i==="markerEndOffset"?(this.transformMarker(!0),this.transformMarker(!1)):i==="markerStart"?(s&&sl(s)&&(this.markerStartAngle=0,s.remove()),a&&sl(a)&&(this.markerStartAngle=a.getLocalEulerAngles(),this.appendChild(a),this.transformMarker(!0))):i==="markerEnd"?(s&&sl(s)&&(this.markerEndAngle=0,s.remove()),a&&sl(a)&&(this.markerEndAngle=a.getLocalEulerAngles(),this.appendChild(a),this.transformMarker(!1))):i==="markerMid"&&this.placeMarkerMid(a)}},{key:"transformMarker",value:function(i){var r=this.parsedStyle,o=r.markerStart,s=r.markerEnd,a=r.markerStartOffset,l=r.markerEndOffset,c=i?o:s;if(!(!c||!sl(c))){var u=0,d,h,f,p,g,m;if(i){var v=this.getStartTangent(),y=As(v,2),b=y[0],w=y[1];f=w[0],p=w[1],d=b[0]-w[0],h=b[1]-w[1],g=a||0,m=this.markerStartAngle}else{var E=this.getEndTangent(),A=As(E,2),D=A[0],T=A[1];f=T[0],p=T[1],d=D[0]-T[0],h=D[1]-T[1],g=l||0,m=this.markerEndAngle}u=Math.atan2(h,d),c.setLocalEulerAngles(u*180/Math.PI+m),c.setLocalPosition(f+Math.cos(u)*g,p+Math.sin(u)*g)}}},{key:"placeMarkerMid",value:function(i){var r=this.parsedStyle.d.segments;if(this.markerMidList.forEach(function(u){u.remove()}),i&&sl(i))for(var o=1;o<r.length-1;o++){var s=As(r[o].currentPoint,2),a=s[0],l=s[1],c=o===1?i:i.cloneNode(!0);this.markerMidList.push(c),this.appendChild(c),c.setLocalPosition(a,l)}}},{key:"getTotalLength",value:function(){return j7e(this)}},{key:"getPointAtLength",value:function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=this.parsedStyle.d.absolutePath,s=(0,Wi.getPointAtLength)(o,i),a=s.x,l=s.y,c=gt.vec3.transformMat4(gt.vec3.create(),gt.vec3.fromValues(a,l,0),r?this.getWorldTransform():this.getLocalTransform());return new rg(c[0],c[1])}},{key:"getPoint",value:function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return this.getPointAtLength(i*j7e(this),r)}},{key:"getStartTangent",value:function(){var i=this.parsedStyle.d.segments,r=[];if(i.length>1){var o=i[0].currentPoint,s=i[1].currentPoint,a=i[1].startTangent;r=[],a?(r.push([o[0]-a[0],o[1]-a[1]]),r.push([o[0],o[1]])):(r.push([s[0],s[1]]),r.push([o[0],o[1]]))}return r}},{key:"getEndTangent",value:function(){var i=this.parsedStyle.d.segments,r=i.length,o=[];if(r>1){var s=i[r-2].currentPoint,a=i[r-1].currentPoint,l=i[r-1].endTangent;o=[],l?(o.push([a[0]-l[0],a[1]-l[1]]),o.push([a[0],a[1]])):(o.push([s[0],s[1]]),o.push([a[0],a[1]]))}return o}}])})(xu);$y.PARSED_STYLE_LIST=new Set([].concat(va(xu.PARSED_STYLE_LIST),["d","markerStart","markerMid","markerEnd","markerStartOffset","markerEndOffset","isBillboard","isSizeAttenuation"]));var CWi=["style"],OF=(function(e){function t(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=i.style,o=NF(i,CWi);_i(this,t),n=Hs(this,t,[Ps({type:qn.POLYGON,style:r,initialParsedStyle:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!0}},o)]),n.markerStartAngle=0,n.markerEndAngle=0,n.markerMidList=[];var s=n.parsedStyle,a=s.markerStart,l=s.markerEnd,c=s.markerMid;return a&&sl(a)&&(n.markerStartAngle=a.getLocalEulerAngles(),n.appendChild(a)),c&&sl(c)&&n.placeMarkerMid(c),l&&sl(l)&&(n.markerEndAngle=l.getLocalEulerAngles(),n.appendChild(l)),n.transformMarker(!0),n.transformMarker(!1),n}return Ws(t,e),wi(t,[{key:"attributeChangedCallback",value:function(i,r,o,s,a){i==="points"?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):i==="markerStartOffset"||i==="markerEndOffset"?(this.transformMarker(!0),this.transformMarker(!1)):i==="markerStart"?(s&&sl(s)&&(this.markerStartAngle=0,s.remove()),a&&sl(a)&&(this.markerStartAngle=a.getLocalEulerAngles(),this.appendChild(a),this.transformMarker(!0))):i==="markerEnd"?(s&&sl(s)&&(this.markerEndAngle=0,s.remove()),a&&sl(a)&&(this.markerEndAngle=a.getLocalEulerAngles(),this.appendChild(a),this.transformMarker(!1))):i==="markerMid"&&this.placeMarkerMid(a)}},{key:"transformMarker",value:function(i){var r=this.parsedStyle,o=r.markerStart,s=r.markerEnd,a=r.markerStartOffset,l=r.markerEndOffset,c=r.points,u=c||{},d=u.points,h=i?o:s;if(!(!h||!sl(h)||!d)){var f=0,p,g,m,v,y,b;if(m=d[0][0],v=d[0][1],i)p=d[1][0]-d[0][0],g=d[1][1]-d[0][1],y=a||0,b=this.markerStartAngle;else{var w=d.length;this.parsedStyle.isClosed?(p=d[w-1][0]-d[0][0],g=d[w-1][1]-d[0][1]):(m=d[w-1][0],v=d[w-1][1],p=d[w-2][0]-d[w-1][0],g=d[w-2][1]-d[w-1][1]),y=l||0,b=this.markerEndAngle}f=Math.atan2(g,p),h.setLocalEulerAngles(f*180/Math.PI+b),h.setLocalPosition(m+Math.cos(f)*y,v+Math.sin(f)*y)}}},{key:"placeMarkerMid",value:function(i){var r=this.parsedStyle.points,o=r||{},s=o.points;if(this.markerMidList.forEach(function(d){d.remove()}),this.markerMidList=[],i&&sl(i)&&s)for(var a=1;a<(this.parsedStyle.isClosed?s.length:s.length-1);a++){var l=s[a][0],c=s[a][1],u=a===1?i:i.cloneNode(!0);this.markerMidList.push(u),this.appendChild(u),u.setLocalPosition(l,c)}}}])})(xu);OF.PARSED_STYLE_LIST=new Set([].concat(va(xu.PARSED_STYLE_LIST),["points","markerStart","markerMid","markerEnd","markerStartOffset","markerEndOffset","isClosed","isBillboard","isSizeAttenuation"]));var SWi=["style"],j0e=(function(e){function t(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.style,r=NF(n,SWi);return _i(this,t),Hs(this,t,[Ps({type:qn.POLYLINE,style:i,initialParsedStyle:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!1}},r)])}return Ws(t,e),wi(t,[{key:"getTotalLength",value:function(){return p3i(this)}},{key:"getPointAtLength",value:function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return this.getPoint(i/this.getTotalLength(),r)}},{key:"getPoint",value:function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=this.parsedStyle.points.points;if(this.parsedStyle.points.segments.length===0){var s=[],a=0,l,c,u=this.getTotalLength();o.forEach(function(v,y){o[y+1]&&(l=[0,0],l[0]=a/u,c=Fbn(v[0],v[1],o[y+1][0],o[y+1][1]),a+=c,l[1]=a/u,s.push(l))}),this.parsedStyle.points.segments=s}var d=0,h=0;this.parsedStyle.points.segments.forEach(function(v,y){i>=v[0]&&i<=v[1]&&(d=(i-v[0])/(v[1]-v[0]),h=y)});var f=Bbn(o[h][0],o[h][1],o[h+1][0],o[h+1][1],d),p=f.x,g=f.y,m=gt.vec3.transformMat4(gt.vec3.create(),gt.vec3.fromValues(p,g,0),r?this.getWorldTransform():this.getLocalTransform());return new rg(m[0],m[1])}},{key:"getStartTangent",value:function(){var i=this.parsedStyle.points.points,r=[];return r.push([i[1][0],i[1][1]]),r.push([i[0][0],i[0][1]]),r}},{key:"getEndTangent",value:function(){var i=this.parsedStyle.points.points,r=i.length-1,o=[];return o.push([i[r-1][0],i[r-1][1]]),o.push([i[r][0],i[r][1]]),o}}])})(OF);j0e.PARSED_STYLE_LIST=new Set([].concat(va(OF.PARSED_STYLE_LIST),["points","markerStart","markerMid","markerEnd","markerStartOffset","markerEndOffset","isBillboard"]));var kp=(function(e){function t(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return _i(this,t),Hs(this,t,[Ps({type:qn.RECT},n)])}return Ws(t,e),wi(t)})(xu);kp.PARSED_STYLE_LIST=new Set([].concat(va(xu.PARSED_STYLE_LIST),["x","y","z","width","height","isBillboard","isSizeAttenuation","radius"]));var xWi=["style"],tP=(function(e){function t(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.style,r=NF(n,xWi);return _i(this,t),Hs(this,t,[Ps({type:qn.TEXT,style:Ps({fill:"black"},i)},r)])}return Ws(t,e),wi(t,[{key:"getComputedTextLength",value:function(){var i;return this.getGeometryBounds(),((i=this.parsedStyle.metrics)===null||i===void 0?void 0:i.maxLineWidth)||0}},{key:"getLineBoundingRects",value:function(){var i;return this.getGeometryBounds(),((i=this.parsedStyle.metrics)===null||i===void 0?void 0:i.lineMetrics)||[]}},{key:"isOverflowing",value:function(){return this.getGeometryBounds(),!!this.parsedStyle.isOverflowing}}])})(xu);tP.PARSED_STYLE_LIST=new Set([].concat(va(xu.PARSED_STYLE_LIST),["x","y","z","isBillboard","billboardRotation","isSizeAttenuation","text","textAlign","textBaseline","fontStyle","fontSize","fontFamily","fontWeight","fontVariant","lineHeight","letterSpacing","leading","wordWrap","wordWrapWidth","maxLines","textOverflow","isOverflowing","textPath","textDecorationLine","textDecorationColor","textDecorationStyle","textPathSide","textPathStartOffset","metrics","dx","dy"]));var EWi=(function(){function e(){_i(this,e),this.registry={},this.define(qn.CIRCLE,NC),this.define(qn.ELLIPSE,JQ),this.define(qn.RECT,kp),this.define(qn.IMAGE,Cj),this.define(qn.LINE,N2),this.define(qn.GROUP,qf),this.define(qn.PATH,$y),this.define(qn.POLYGON,OF),this.define(qn.POLYLINE,j0e),this.define(qn.TEXT,tP),this.define(qn.HTML,MF)}return wi(e,[{key:"define",value:function(n,i){this.registry[n]=i}},{key:"get",value:function(n){return this.registry[n]}}])})(),y_n=(function(e){function t(){var n;_i(this,t),n=Hs(this,t),n.defaultView=null,n.ownerDocument=null,n.nodeName="document";try{n.timeline=new Si.AnimationTimeline(n)}catch{}var i={};return lZe.forEach(function(r){var o=r.n,s=r.inh,a=r.d;s&&a&&(i[o]=(0,Wi.isFunction)(a)?a(qn.GROUP):a)}),n.documentElement=new qf({id:"g-root",style:i}),n.documentElement.ownerDocument=n,n.documentElement.parentNode=n,n.childNodes=[n.documentElement],n}return Ws(t,e),wi(t,[{key:"children",get:function(){return this.childNodes}},{key:"childElementCount",get:function(){return this.childNodes.length}},{key:"firstElementChild",get:function(){return this.firstChild}},{key:"lastElementChild",get:function(){return this.lastChild}},{key:"createElement",value:(function(i,r){if(i==="svg")return this.documentElement;var o=this.defaultView.customElements.get(i);o||(console.warn("Unsupported tagName: ",i),o=i==="tspan"?tP:qf);var s=new o(r);return s.ownerDocument=this,s})},{key:"createElementNS",value:function(i,r,o){return this.createElement(r,o)}},{key:"cloneNode",value:function(i){throw new Error(gc)}},{key:"destroy",value:function(){try{this.documentElement.destroyChildren(),this.timeline.destroy()}catch{}}},{key:"elementsFromBBox",value:function(i,r,o,s){var a=this.defaultView.context.rBushRoot,l=a.search({minX:i,minY:r,maxX:o,maxY:s}),c=[];return l.forEach(function(u){var d=u.displayObject,h=d.parsedStyle.pointerEvents,f=h===void 0?"auto":h,p=["auto","visiblepainted","visiblefill","visiblestroke","visible"].includes(f);(!p||p&&d.isVisible())&&!d.isCulled()&&d.isInteractive()&&c.push(d)}),c.sort(function(u,d){return d.sortable.renderOrder-u.sortable.renderOrder}),c}},{key:"elementFromPointSync",value:function(i,r){var o=this.defaultView.canvas2Viewport({x:i,y:r}),s=o.x,a=o.y,l=this.defaultView.getConfig(),c=l.width,u=l.height;if(s<0||a<0||s>c||a>u)return null;var d=this.defaultView.viewport2Client({x:s,y:a}),h=d.x,f=d.y,p=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!0,position:{x:i,y:r,viewportX:s,viewportY:a,clientX:h,clientY:f},picked:[]}),g=p.picked;return g&&g[0]||this.documentElement}},{key:"elementFromPoint",value:(function(){var n=nN(wp().mark(function r(o,s){var a,l,c,u,d,h,f,p,g,m,v;return wp().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(a=this.defaultView.canvas2Viewport({x:o,y:s}),l=a.x,c=a.y,u=this.defaultView.getConfig(),d=u.width,h=u.height,!(l<0||c<0||l>d||c>h)){y.next=1;break}return y.abrupt("return",null);case 1:return f=this.defaultView.viewport2Client({x:l,y:c}),p=f.x,g=f.y,y.next=2,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!0,position:{x:o,y:s,viewportX:l,viewportY:c,clientX:p,clientY:g},picked:[]});case 2:return m=y.sent,v=m.picked,y.abrupt("return",v&&v[0]||this.documentElement);case 3:case"end":return y.stop()}},r,this)}));function i(r,o){return n.apply(this,arguments)}return i})()},{key:"elementsFromPointSync",value:function(i,r){var o=this.defaultView.canvas2Viewport({x:i,y:r}),s=o.x,a=o.y,l=this.defaultView.getConfig(),c=l.width,u=l.height;if(s<0||a<0||s>c||a>u)return[];var d=this.defaultView.viewport2Client({x:s,y:a}),h=d.x,f=d.y,p=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!1,position:{x:i,y:r,viewportX:s,viewportY:a,clientX:h,clientY:f},picked:[]}),g=p.picked;return g[g.length-1]!==this.documentElement&&g.push(this.documentElement),g}},{key:"elementsFromPoint",value:(function(){var n=nN(wp().mark(function r(o,s){var a,l,c,u,d,h,f,p,g,m,v;return wp().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(a=this.defaultView.canvas2Viewport({x:o,y:s}),l=a.x,c=a.y,u=this.defaultView.getConfig(),d=u.width,h=u.height,!(l<0||c<0||l>d||c>h)){y.next=1;break}return y.abrupt("return",[]);case 1:return f=this.defaultView.viewport2Client({x:l,y:c}),p=f.x,g=f.y,y.next=2,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!1,position:{x:o,y:s,viewportX:l,viewportY:c,clientX:p,clientY:g},picked:[]});case 2:return m=y.sent,v=m.picked,v[v.length-1]!==this.documentElement&&v.push(this.documentElement),y.abrupt("return",v);case 3:case"end":return y.stop()}},r,this)}));function i(r,o){return n.apply(this,arguments)}return i})()},{key:"appendChild",value:function(i,r){throw new Error(Z4)}},{key:"insertBefore",value:function(i,r){throw new Error(Z4)}},{key:"removeChild",value:function(i,r){throw new Error(Z4)}},{key:"replaceChild",value:function(i,r,o){throw new Error(Z4)}},{key:"append",value:function(){throw new Error(Z4)}},{key:"prepend",value:function(){throw new Error(Z4)}},{key:"getElementById",value:function(i){return this.documentElement.getElementById(i)}},{key:"getElementsByName",value:function(i){return this.documentElement.getElementsByName(i)}},{key:"getElementsByTagName",value:function(i){return this.documentElement.getElementsByTagName(i)}},{key:"getElementsByClassName",value:function(i){return this.documentElement.getElementsByClassName(i)}},{key:"querySelector",value:function(i){return this.documentElement.querySelector(i)}},{key:"querySelectorAll",value:function(i){return this.documentElement.querySelectorAll(i)}},{key:"find",value:function(i){return this.documentElement.find(i)}},{key:"findAll",value:function(i){return this.documentElement.findAll(i)}}])})($u),b_n=(function(){function e(t){_i(this,e),this.strategies=t}return wi(e,[{key:"apply",value:function(n){var i=n.config,r=n.camera,o=n.renderingService,s=n.renderingContext,a=this.strategies;o.hooks.cull.tap(e.tag,function(l){if(l){var c,u=l.cullable;if(a.length===0?u.visible=s.unculledEntities.indexOf(l.entity)>-1:u.visible=a.every(function(h){return h.isVisible(r,l)}),!l.isCulled()&&l.isVisible())return l;var d=((c=i.future)===null||c===void 0?void 0:c.experimentalCancelEventPropagation)===!0;return l.dispatchEvent(new of(ea.CULLED),d,d),null}return l}),o.hooks.afterRender.tap(e.tag,function(l){l.cullable.visibilityPlaneMask=-1})}}])})();b_n.tag="Culling";var __n=(function(){function e(){var t=this;_i(this,e),this.autoPreventDefault=!1,this.rootPointerEvent=new tfe(null),this.rootWheelEvent=new W7e(null),this.onPointerMove=function(n){var i,r=(i=t.context.renderingContext.root)===null||i===void 0||(i=i.ownerDocument)===null||i===void 0?void 0:i.defaultView;if(!(r.supportsTouchEvents&&n.pointerType==="touch")){var o=t.normalizeToPointerEvent(n,r),s=wO(o),a;try{for(s.s();!(a=s.n()).done;){var l=a.value,c=t.bootstrapEvent(t.rootPointerEvent,l,r,n);t.context.eventService.mapEvent(c)}}catch(u){s.e(u)}finally{s.f()}t.setCursor(t.context.eventService.cursor)}},this.onClick=function(n){var i,r=(i=t.context.renderingContext.root)===null||i===void 0||(i=i.ownerDocument)===null||i===void 0?void 0:i.defaultView,o=t.normalizeToPointerEvent(n,r),s=wO(o),a;try{for(s.s();!(a=s.n()).done;){var l=a.value,c=t.bootstrapEvent(t.rootPointerEvent,l,r,n);t.context.eventService.mapEvent(c)}}catch(u){s.e(u)}finally{s.f()}t.setCursor(t.context.eventService.cursor)}}return wi(e,[{key:"apply",value:function(n){var i=this;this.context=n;var r=n.renderingService,o=this.context.renderingContext.root.ownerDocument.defaultView;this.context.eventService.setPickHandler(function(s){var a=i.context.renderingService.hooks.pickSync.call({position:s,picked:[],topmost:!0}),l=a.picked;return l[0]||null}),r.hooks.pointerWheel.tap(e.tag,function(s){var a=i.normalizeWheelEvent(s);i.context.eventService.mapEvent(a)}),r.hooks.pointerDown.tap(e.tag,function(s){if(!(o.supportsTouchEvents&&s.pointerType==="touch")){var a=i.normalizeToPointerEvent(s,o);if(i.autoPreventDefault&&a[0].isNormalized){var l=s.cancelable||!("cancelable"in s);l&&s.preventDefault()}var c=wO(a),u;try{for(c.s();!(u=c.n()).done;){var d=u.value,h=i.bootstrapEvent(i.rootPointerEvent,d,o,s);i.context.eventService.mapEvent(h)}}catch(f){c.e(f)}finally{c.f()}i.setCursor(i.context.eventService.cursor)}}),r.hooks.pointerUp.tap(e.tag,function(s){if(!(o.supportsTouchEvents&&s.pointerType==="touch")){var a=i.context.contextService.getDomElement(),l=i.context.eventService.isNativeEventFromCanvas(a,s),c=l?"":"outside",u=i.normalizeToPointerEvent(s,o),d=wO(u),h;try{for(d.s();!(h=d.n()).done;){var f=h.value,p=i.bootstrapEvent(i.rootPointerEvent,f,o,s);p.type+=c,i.context.eventService.mapEvent(p)}}catch(g){d.e(g)}finally{d.f()}i.setCursor(i.context.eventService.cursor)}}),r.hooks.pointerMove.tap(e.tag,this.onPointerMove),r.hooks.pointerOver.tap(e.tag,this.onPointerMove),r.hooks.pointerOut.tap(e.tag,this.onPointerMove),r.hooks.click.tap(e.tag,this.onClick),r.hooks.pointerCancel.tap(e.tag,function(s){var a=i.normalizeToPointerEvent(s,o),l=wO(a),c;try{for(l.s();!(c=l.n()).done;){var u=c.value,d=i.bootstrapEvent(i.rootPointerEvent,u,o,s);i.context.eventService.mapEvent(d)}}catch(h){l.e(h)}finally{l.f()}i.setCursor(i.context.eventService.cursor)})}},{key:"bootstrapEvent",value:function(n,i,r,o){n.view=r,n.originalEvent=null,n.nativeEvent=o,n.pointerId=i.pointerId,n.width=i.width,n.height=i.height,n.isPrimary=i.isPrimary,n.pointerType=i.pointerType,n.pressure=i.pressure,n.tangentialPressure=i.tangentialPressure,n.tiltX=i.tiltX,n.tiltY=i.tiltY,n.twist=i.twist,this.transferMouseData(n,i);var s=this.context.eventService.client2Viewport({x:i.clientX,y:i.clientY}),a=s.x,l=s.y;n.viewport.x=a,n.viewport.y=l;var c=this.context.eventService.viewport2Canvas(n.viewport),u=c.x,d=c.y;return n.canvas.x=u,n.canvas.y=d,n.global.copyFrom(n.canvas),n.offset.copyFrom(n.canvas),n.isTrusted=o.isTrusted,n.type==="pointerleave"&&(n.type="pointerout"),n.type.startsWith("mouse")&&(n.type=n.type.replace("mouse","pointer")),n.type.startsWith("touch")&&(n.type=aHi[n.type]||n.type),n}},{key:"normalizeWheelEvent",value:function(n){var i=this.rootWheelEvent;this.transferMouseData(i,n),i.deltaMode=n.deltaMode,i.deltaX=n.deltaX,i.deltaY=n.deltaY,i.deltaZ=n.deltaZ;var r=this.context.eventService.client2Viewport({x:n.clientX,y:n.clientY}),o=r.x,s=r.y;i.viewport.x=o,i.viewport.y=s;var a=this.context.eventService.viewport2Canvas(i.viewport),l=a.x,c=a.y;return i.canvas.x=l,i.canvas.y=c,i.global.copyFrom(i.canvas),i.offset.copyFrom(i.canvas),i.nativeEvent=n,i.type=n.type,i}},{key:"transferMouseData",value:function(n,i){n.isTrusted=i.isTrusted,n.srcElement=i.srcElement,n.timeStamp=H7e.now(),n.type=i.type,n.altKey=i.altKey,n.metaKey=i.metaKey,n.shiftKey=i.shiftKey,n.ctrlKey=i.ctrlKey,n.button=i.button,n.buttons=i.buttons,n.client.x=i.clientX,n.client.y=i.clientY,n.movement.x=i.movementX,n.movement.y=i.movementY,n.page.x=i.pageX,n.page.y=i.pageY,n.screen.x=i.screenX,n.screen.y=i.screenY,n.relatedTarget=null}},{key:"setCursor",value:function(n){this.context.contextService.applyCursorStyle(n||this.context.config.cursor||"default")}},{key:"normalizeToPointerEvent",value:function(n,i){var r=[];if(i.isTouchEvent(n))for(var o=0;o<n.changedTouches.length;o++){var s=n.changedTouches[o];(0,Wi.isUndefined)(s.button)&&(s.button=0),(0,Wi.isUndefined)(s.buttons)&&(s.buttons=1),(0,Wi.isUndefined)(s.isPrimary)&&(s.isPrimary=n.touches.length===1&&n.type==="touchstart"),(0,Wi.isUndefined)(s.width)&&(s.width=s.radiusX||1),(0,Wi.isUndefined)(s.height)&&(s.height=s.radiusY||1),(0,Wi.isUndefined)(s.tiltX)&&(s.tiltX=0),(0,Wi.isUndefined)(s.tiltY)&&(s.tiltY=0),(0,Wi.isUndefined)(s.pointerType)&&(s.pointerType="touch"),(0,Wi.isUndefined)(s.pointerId)&&(s.pointerId=s.identifier||0),(0,Wi.isUndefined)(s.pressure)&&(s.pressure=s.force||.5),(0,Wi.isUndefined)(s.twist)&&(s.twist=0),(0,Wi.isUndefined)(s.tangentialPressure)&&(s.tangentialPressure=0),s.isNormalized=!0,s.type=n.type,r.push(s)}else if(i.isMouseEvent(n)){var a=n;(0,Wi.isUndefined)(a.isPrimary)&&(a.isPrimary=!0),(0,Wi.isUndefined)(a.width)&&(a.width=1),(0,Wi.isUndefined)(a.height)&&(a.height=1),(0,Wi.isUndefined)(a.tiltX)&&(a.tiltX=0),(0,Wi.isUndefined)(a.tiltY)&&(a.tiltY=0),(0,Wi.isUndefined)(a.pointerType)&&(a.pointerType="mouse"),(0,Wi.isUndefined)(a.pointerId)&&(a.pointerId=sHi),(0,Wi.isUndefined)(a.pressure)&&(a.pressure=.5),(0,Wi.isUndefined)(a.twist)&&(a.twist=0),(0,Wi.isUndefined)(a.tangentialPressure)&&(a.tangentialPressure=0),a.isNormalized=!0,r.push(a)}else r.push(n);return r}}])})();__n.tag="Event";var AWi=[qn.CIRCLE,qn.ELLIPSE,qn.IMAGE,qn.RECT,qn.LINE,qn.POLYLINE,qn.POLYGON,qn.TEXT,qn.PATH,qn.HTML],DWi=(function(){function e(){_i(this,e)}return wi(e,[{key:"isVisible",value:function(n,i){var r,o=i.cullable;if(!o.enable)return!0;var s=i.getRenderBounds();if(mc.isEmpty(s))return!1;var a=n.getFrustum(),l=(r=i.parentNode)===null||r===void 0||(r=r.cullable)===null||r===void 0?void 0:r.visibilityPlaneMask;return o.visibilityPlaneMask=this.computeVisibilityWithPlaneMask(i,s,l||Q4.INDETERMINATE,a.planes),o.visible=o.visibilityPlaneMask!==Q4.OUTSIDE,o.visible}},{key:"computeVisibilityWithPlaneMask",value:function(n,i,r,o){if(r===Q4.OUTSIDE||r===Q4.INSIDE)return r;for(var s=Q4.INSIDE,a=AWi.indexOf(n.nodeName)>-1,l=0,c=o.length;l<c;++l){var u=1<<l;if((r&u)!==0&&!(a&&(l===4||l===5))){var d=o[l],h=d.normal,f=d.distance;if(gt.vec3.dot(h,i.getPositiveFarPoint(o[l]))+f<0)return Q4.OUTSIDE;gt.vec3.dot(h,i.getNegativeFarPoint(o[l]))+f<0&&(s|=u)}}return s}}])})(),w_n=(function(){function e(){_i(this,e),this.syncTasks=new Map,this.isFirstTimeRendering=!0,this.syncing=!1,this.isFirstTimeRenderingFinished=!1}return wi(e,[{key:"apply",value:function(n){var i=this,r,o,s=n.config,a=n.renderingService,l=n.renderingContext,c=n.rBushRoot,u=l.root.ownerDocument.defaultView;this.rBush=c;var d=function(y){a.dirtify()},h=function(y){i.syncTasks.set(y.target,y.detail.affectChildren),a.dirtify()},f=function(y){var b=y.target;Si.enableSizeAttenuation&&Si.styleValueRegistry.updateSizeAttenuation(b,u.getCamera().getZoom())},p=function(y){var b=y.target,w=b.rBushNode;w!=null&&w.aabb&&i.rBush.remove(w.aabb),i.syncTasks.delete(b),Si.sceneGraphService.dirtyToRoot(b),a.dirtify()};a.hooks.init.tap(e.tag,function(){u.addEventListener(ea.MOUNTED,f),u.addEventListener(ea.UNMOUNTED,p),u.addEventListener(ea.ATTR_MODIFIED,d),u.addEventListener(ea.BOUNDS_CHANGED,h)}),a.hooks.destroy.tap(e.tag,function(){u.removeEventListener(ea.MOUNTED,f),u.removeEventListener(ea.UNMOUNTED,p),u.removeEventListener(ea.ATTR_MODIFIED,d),u.removeEventListener(ea.BOUNDS_CHANGED,h),i.syncTasks.clear()});var g=(r=Si.globalThis.requestIdleCallback)!==null&&r!==void 0?r:uZe.bind(Si.globalThis),m=((o=s.future)===null||o===void 0?void 0:o.experimentalRICSyncRTree)===!0;a.hooks.endFrame.tap(e.tag,function(){i.isFirstTimeRendering?(i.isFirstTimeRendering=!1,i.syncing=!0,g(function(){i.syncRTree(!0),i.isFirstTimeRenderingFinished=!0})):m&&Si.globalThis.requestIdleCallback&&Si.globalThis.cancelIdleCallback?(Si.globalThis.cancelIdleCallback(i.ricSyncRTreeId),i.ricSyncRTreeId=Si.globalThis.requestIdleCallback(function(){return i.syncRTree()})):i.syncRTree()})}},{key:"syncNode",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n.isConnected){var r=n.rBushNode;r.aabb&&this.rBush.remove(r.aabb);var o=n.getRenderBounds();if(o){var s=n.renderable;i&&(s.dirtyRenderBounds||(s.dirtyRenderBounds=new mc),s.dirtyRenderBounds.update(o.center,o.halfExtents));var a=o.getMin(),l=As(a,2),c=l[0],u=l[1],d=o.getMax(),h=As(d,2),f=h[0],p=h[1];r.aabb||(r.aabb={}),r.aabb.displayObject=n,r.aabb.minX=c,r.aabb.minY=u,r.aabb.maxX=f,r.aabb.maxY=p}if(r.aabb&&!isNaN(r.aabb.maxX)&&!isNaN(r.aabb.maxX)&&!isNaN(r.aabb.minX)&&!isNaN(r.aabb.minY))return r.aabb}}},{key:"syncRTree",value:function(){var n=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!(!i&&(this.syncing||this.syncTasks.size===0))){this.syncing=!0;var r=[],o=new Set,s=function(l){if(!o.has(l)&&l.renderable){var c=n.syncNode(l,i);c&&(r.push(c),o.add(l))}};this.syncTasks.forEach(function(a,l){a&&l.forEach(s);for(var c=l;c;)s(c),c=c.parentElement}),this.rBush.load(r),r.length=0,this.syncing=!1}}}])})();w_n.tag="Prepare";var Ry=(function(e){return e.READY="ready",e.BEFORE_RENDER="beforerender",e.RERENDER="rerender",e.AFTER_RENDER="afterrender",e.BEFORE_DESTROY="beforedestroy",e.AFTER_DESTROY="afterdestroy",e.RESIZE="resize",e.DIRTY_RECTANGLE="dirtyrectangle",e.RENDERER_CHANGED="rendererchanged",e})({}),rRt=500,TWi=.1,kWi=1e3,$ie=new of(ea.MOUNTED),qie=new of(ea.UNMOUNTED),bMe=new of(Ry.BEFORE_RENDER),oRt=new of(Ry.RERENDER),_Me=new of(Ry.AFTER_RENDER),q7e=(function(e){function t(n){var i;_i(this,t),i=Hs(this,t),i.Element=xu,i.inited=!1,i.context={};var r=n.container,o=n.canvas,s=n.renderer,a=n.width,l=n.height,c=n.background,u=n.cursor,d=n.supportsMutipleCanvasesInOneContainer,h=n.cleanUpOnDestroy,f=h===void 0?!0:h,p=n.offscreenCanvas,g=n.devicePixelRatio,m=n.requestAnimationFrame,v=n.cancelAnimationFrame,y=n.createImage,b=n.supportsTouchEvents,w=n.supportsPointerEvents,E=n.isTouchEvent,A=n.isMouseEvent,D=n.dblClickSpeed,T=a,M=l,P=g||cZe&&window.devicePixelRatio||1;return P=P>=1?Math.ceil(P):1,o&&(T=a||rHi(o)||o.width/P,M=l||oHi(o)||o.height/P),i.customElements=new EWi,i.devicePixelRatio=P,i.requestAnimationFrame=m??uZe.bind(Si.globalThis),i.cancelAnimationFrame=v??f_n.bind(Si.globalThis),i.createImage=y??function(){return new window.Image},i.supportsTouchEvents=b??"ontouchstart"in Si.globalThis,i.supportsPointerEvents=w??!!Si.globalThis.PointerEvent,i.isTouchEvent=E??function(F){return i.supportsTouchEvents&&F instanceof Si.globalThis.TouchEvent},i.isMouseEvent=A??function(F){return!Si.globalThis.MouseEvent||F instanceof Si.globalThis.MouseEvent&&(!i.supportsPointerEvents||!(F instanceof Si.globalThis.PointerEvent))},p&&(Si.offscreenCanvas=p),i.document=new y_n,i.document.defaultView=i,d||eHi(r,i,f),i.initRenderingContext(Ps(Ps({},n),{},{width:T,height:M,background:c??"transparent",cursor:u??"default",cleanUpOnDestroy:f,devicePixelRatio:P,requestAnimationFrame:i.requestAnimationFrame,cancelAnimationFrame:i.cancelAnimationFrame,createImage:i.createImage,supportsTouchEvents:i.supportsTouchEvents,supportsPointerEvents:i.supportsPointerEvents,isTouchEvent:i.isTouchEvent,isMouseEvent:i.isMouseEvent,dblClickSpeed:D??200})),i.initDefaultCamera(T,M,s.clipSpaceNearZ),i.initRenderer(s,!0),i}return Ws(t,e),wi(t,[{key:"initRenderingContext",value:function(i){this.context.config=i,this.context.renderingContext={root:this.document.documentElement,unculledEntities:[],renderListCurrentFrame:[],renderReasons:new Set,force:!1,dirty:!1}}},{key:"initDefaultCamera",value:function(i,r,o){var s=this,a=new Si.CameraContribution;a.clipSpaceNearZ=o,a.setType(hc.EXPLORING,M7e.DEFAULT).setPosition(i/2,r/2,rRt).setFocalPoint(i/2,r/2,0).setOrthographic(i/-2,i/2,r/2,r/-2,TWi,kWi),a.canvas=this,a.eventEmitter.on(Hbn.UPDATED,function(){s.context.renderingContext.renderReasons.add(A8.CAMERA_CHANGED),Si.enableSizeAttenuation&&s.getConfig().renderer.getConfig().enableSizeAttenuation&&s.updateSizeAttenuation()}),this.context.camera=a}},{key:"updateSizeAttenuation",value:function(){var i=this.getCamera().getZoom();this.document.documentElement.forEach(function(r){Si.styleValueRegistry.updateSizeAttenuation(r,i)})}},{key:"getConfig",value:function(){return this.context.config}},{key:"getRoot",value:function(){return this.document.documentElement}},{key:"getCamera",value:function(){return this.context.camera}},{key:"getContextService",value:function(){return this.context.contextService}},{key:"getEventService",value:function(){return this.context.eventService}},{key:"getRenderingService",value:function(){return this.context.renderingService}},{key:"getRenderingContext",value:function(){return this.context.renderingContext}},{key:"getStats",value:function(){return this.getRenderingService().getStats()}},{key:"ready",get:function(){var i=this;return this.readyPromise||(this.readyPromise=new Promise(function(r){i.resolveReadyPromise=function(){r(i)}}),this.inited&&this.resolveReadyPromise()),this.readyPromise}},{key:"destroy",value:function(){var i,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,o=arguments.length>1?arguments[1]:void 0;Th.clearCache();var s=((i=this.getConfig().future)===null||i===void 0?void 0:i.experimentalCancelEventPropagation)===!0;o||this.dispatchEvent(new of(Ry.BEFORE_DESTROY),s,s),this.frameId&&this.cancelAnimationFrame(this.frameId);var a=this.getRoot();r&&(this.unmountChildren(a),this.document.destroy(),this.getEventService().destroy()),this.getRenderingService().destroy(),this.getContextService().destroy(),this.context.rBushRoot&&this.context.rBushRoot.clear(),o||this.dispatchEvent(new of(Ry.AFTER_DESTROY),s,s);var l=function(u){u.currentTarget=null,u.manager=null,u.target=null,u.relatedNode=null};l($ie),l(qie),l(bMe),l(oRt),l(_Me),l(qS),l(U7e),l($7e),l(v_n),Si.textService.clearCache()}},{key:"changeSize",value:function(i,r){this.resize(i,r)}},{key:"resize",value:function(i,r){var o,s=this.context.config;s.width=i,s.height=r,this.getContextService().resize(i,r);var a=this.context.camera,l=a.getProjectionMode();a.setPosition(i/2,r/2,rRt).setFocalPoint(i/2,r/2,0),l===n_.ORTHOGRAPHIC?a.setOrthographic(i/-2,i/2,r/2,r/-2,a.getNear(),a.getFar()):a.setAspect(i/r);var c=((o=s.future)===null||o===void 0?void 0:o.experimentalCancelEventPropagation)===!0;this.dispatchEvent(new of(Ry.RESIZE,{width:i,height:r}),c,c)}},{key:"appendChild",value:function(i,r){return this.document.documentElement.appendChild(i,r)}},{key:"insertBefore",value:function(i,r){return this.document.documentElement.insertBefore(i,r)}},{key:"removeChild",value:function(i){return this.document.documentElement.removeChild(i)}},{key:"removeChildren",value:function(){this.document.documentElement.removeChildren()}},{key:"destroyChildren",value:function(){this.document.documentElement.destroyChildren()}},{key:"render",value:function(i){var r,o=this;i&&(bMe.detail=i,_Me.detail=i);var s=((r=this.getConfig().future)===null||r===void 0?void 0:r.experimentalCancelEventPropagation)===!0;this.dispatchEvent(bMe,s,s);var a=this.getRenderingService();a.render(this.getConfig(),i,function(){o.dispatchEvent(oRt,s,s)}),this.dispatchEvent(_Me,s,s)}},{key:"run",value:function(){var i=this,r=function(s,a){i.render(a),i.frameId=i.requestAnimationFrame(r)};r()}},{key:"initRenderer",value:function(i){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!i)throw new Error("Renderer is required.");this.inited=!1,this.readyPromise=void 0,this.context.rBushRoot=new Jzi,this.context.renderingPlugins=[],this.context.renderingPlugins.push(new __n,new w_n,new b_n([new DWi])),this.loadRendererContainerModule(i),this.context.contextService=new this.context.ContextService(Ps(Ps({},Si),this.context)),this.context.renderingService=new zHi(Si,this.context),this.context.eventService=new jHi(Si,this.context),this.context.eventService.init(),this.context.contextService.init?(this.context.contextService.init(),this.initRenderingService(i,o,!0)):this.context.contextService.initAsync().then(function(){r.initRenderingService(i,o)}).catch(function(s){console.error(s)})}},{key:"initRenderingService",value:function(i){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.context.renderingService.init(function(){var a;r.inited=!0;var l=((a=r.getConfig().future)===null||a===void 0?void 0:a.experimentalCancelEventPropagation)===!0;o?s?r.requestAnimationFrame(function(){r.dispatchEvent(new of(Ry.READY),l,l)}):r.dispatchEvent(new of(Ry.READY),l,l):r.dispatchEvent(new of(Ry.RENDERER_CHANGED),l,l),r.readyPromise&&r.resolveReadyPromise(),o||r.getRoot().forEach(function(c){var u,d;(u=(d=c).dirty)===null||u===void 0||u.call(d,!0,!0)}),r.mountChildren(r.getRoot()),i.getConfig().enableAutoRendering&&r.run()})}},{key:"loadRendererContainerModule",value:function(i){var r=this,o=i.getPlugins();o.forEach(function(s){s.context=r.context,s.init(Si)})}},{key:"setRenderer",value:function(i){var r=this.getConfig();if(r.renderer!==i){var o=r.renderer;r.renderer=i,this.destroy(!1,!0),va(o?.getPlugins()||[]).reverse().forEach(function(s){s.destroy(Si)}),this.initRenderer(i)}}},{key:"setCursor",value:function(i){var r=this.getConfig();r.cursor=i,this.getContextService().applyCursorStyle(i)}},{key:"unmountChildren",value:function(i){var r=this;if(i.childNodes.forEach(function(a){r.unmountChildren(a)}),this.inited){if(i.isMutationObserved)i.dispatchEvent(qie);else{var o,s=((o=this.getConfig().future)===null||o===void 0?void 0:o.experimentalCancelEventPropagation)===!0;qie.target=i,this.dispatchEvent(qie,!0,s)}i!==this.document.documentElement&&(i.ownerDocument=null),i.isConnected=!1}i.isCustomElement&&i.disconnectedCallback&&i.disconnectedCallback()}},{key:"mountChildren",value:function(i){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:efe(i);if(this.inited){if(!i.isConnected&&(i.ownerDocument=this.document,i.isConnected=!0,!o))if(i.isMutationObserved)i.dispatchEvent($ie);else{var s,a=((s=this.getConfig().future)===null||s===void 0?void 0:s.experimentalCancelEventPropagation)===!0;$ie.target=i,this.dispatchEvent($ie,!0,a)}}else console.warn("[g]: You are trying to call `canvas.appendChild` before canvas' initialization finished. You can either await `canvas.ready` or listen to `CanvasEvent.READY` manually.","appended child: ",i.nodeName);i.childNodes.forEach(function(l){r.mountChildren(l,o)}),i.isCustomElement&&i.connectedCallback&&i.connectedCallback()}},{key:"mountFragment",value:function(i){this.mountChildren(i,!1)}},{key:"client2Viewport",value:function(i){return this.getEventService().client2Viewport(i)}},{key:"viewport2Client",value:function(i){return this.getEventService().viewport2Client(i)}},{key:"viewport2Canvas",value:function(i){return this.getEventService().viewport2Canvas(i)}},{key:"canvas2Viewport",value:function(i){return this.getEventService().canvas2Viewport(i)}},{key:"getPointByClient",value:function(i,r){return this.client2Viewport({x:i,y:r})}},{key:"getClientByPoint",value:function(i,r){return this.viewport2Client({x:i,y:r})}}])})(m_n),sRt=on(Pi()),La=on(vN()),IWi=(function(e){function t(){var n;_i(this,t);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return n=Hs(this,t,[].concat(r)),n.landmarks=[],n}return Ws(t,e),wi(t,[{key:"rotate",value:(function(i,r,o){if(this.relElevation=S8(r),this.relAzimuth=S8(i),this.relRoll=S8(o),this.elevation+=this.relElevation,this.azimuth+=this.relAzimuth,this.roll+=this.relRoll,this.type===hc.EXPLORING){var s=La.quat.setAxisAngle(La.quat.create(),[1,0,0],vc((this.rotateWorld?1:-1)*this.relElevation)),a=La.quat.setAxisAngle(La.quat.create(),[0,1,0],vc((this.rotateWorld?1:-1)*this.relAzimuth)),l=La.quat.setAxisAngle(La.quat.create(),[0,0,1],vc(this.relRoll)),c=La.quat.multiply(La.quat.create(),a,s);c=La.quat.multiply(La.quat.create(),c,l);var u=La.mat4.fromQuat(La.mat4.create(),c);La.mat4.translate(this.matrix,this.matrix,[0,0,-this.distance]),La.mat4.multiply(this.matrix,this.matrix,u),La.mat4.translate(this.matrix,this.matrix,[0,0,this.distance])}else{if(Math.abs(this.elevation)>90)return this;this.computeMatrix()}return this._getAxes(),this.type===hc.ORBITING||this.type===hc.EXPLORING?this._getPosition():this.type===hc.TRACKING&&this._getFocalPoint(),this._update(),this})},{key:"pan",value:function(i,r){var o=iv(i,r,0),s=La.vec3.clone(this.position);return La.vec3.add(s,s,La.vec3.scale(La.vec3.create(),this.right,o[0])),La.vec3.add(s,s,La.vec3.scale(La.vec3.create(),this.up,o[1])),this._setPosition(s),this.triggerUpdate(),this}},{key:"dolly",value:function(i){var r=this.forward,o=La.vec3.clone(this.position),s=i*this.dollyingStep,a=this.distance+i*this.dollyingStep;return s=Math.max(Math.min(a,this.maxDistance),this.minDistance)-this.distance,o[0]+=s*r[0],o[1]+=s*r[1],o[2]+=s*r[2],this._setPosition(o),this.type===hc.ORBITING||this.type===hc.EXPLORING?this._getDistance():this.type===hc.TRACKING&&La.vec3.add(this.focalPoint,o,this.distanceVector),this.triggerUpdate(),this}},{key:"cancelLandmarkAnimation",value:function(){this.landmarkAnimationID!==void 0&&this.canvas.cancelAnimationFrame(this.landmarkAnimationID)}},{key:"createLandmark",value:function(i){var r,o,s,a,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=l.position,u=c===void 0?this.position:c,d=l.focalPoint,h=d===void 0?this.focalPoint:d,f=l.roll,p=l.zoom,g=new Si.CameraContribution;g.setType(this.type,void 0),g.setPosition(u[0],(r=u[1])!==null&&r!==void 0?r:this.position[1],(o=u[2])!==null&&o!==void 0?o:this.position[2]),g.setFocalPoint(h[0],(s=h[1])!==null&&s!==void 0?s:this.focalPoint[1],(a=h[2])!==null&&a!==void 0?a:this.focalPoint[2]),g.setRoll(f??this.roll),g.setZoom(p??this.zoom);var m={name:i,matrix:La.mat4.clone(g.getWorldTransform()),right:La.vec3.clone(g.right),up:La.vec3.clone(g.up),forward:La.vec3.clone(g.forward),position:La.vec3.clone(g.getPosition()),focalPoint:La.vec3.clone(g.getFocalPoint()),distanceVector:La.vec3.clone(g.getDistanceVector()),distance:g.getDistance(),dollyingStep:g.getDollyingStep(),azimuth:g.getAzimuth(),elevation:g.getElevation(),roll:g.getRoll(),relAzimuth:g.relAzimuth,relElevation:g.relElevation,relRoll:g.relRoll,zoom:g.getZoom()};return this.landmarks.push(m),m}},{key:"gotoLandmark",value:function(i){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=(0,sRt.isString)(i)?this.landmarks.find(function(F){return F.name===i}):i;if(s){var a=(0,sRt.isNumber)(o)?{duration:o}:o,l=a.easing,c=l===void 0?"linear":l,u=a.duration,d=u===void 0?100:u,h=a.easingFunction,f=h===void 0?void 0:h,p=a.onfinish,g=p===void 0?void 0:p,m=a.onframe,v=m===void 0?void 0:m,y=.01;this.cancelLandmarkAnimation();var b=s.position,w=s.focalPoint,E=s.zoom,A=s.roll,D=f||Si.EasingFunction(c),T,M=function(){r.setFocalPoint(w),r.setPosition(b),r.setRoll(A),r.setZoom(E),r.computeMatrix(),r.triggerUpdate(),g?.()};if(d===0)return M();var P=function(N){T===void 0&&(T=N);var j=N-T;if(j>=d){M();return}var W=D(j/d),J=La.vec3.create(),ee=La.vec3.create(),Q=1,H=0;La.vec3.lerp(J,r.focalPoint,w,W),La.vec3.lerp(ee,r.position,b,W),H=r.roll*(1-W)+A*W,Q=r.zoom*(1-W)+E*W,r.setFocalPoint(J),r.setPosition(ee),r.setRoll(H),r.setZoom(Q);var q=La.vec3.dist(J,w)+La.vec3.dist(ee,b);if(q<=y&&E===void 0&&A===void 0)return M();r.computeMatrix(),r.triggerUpdate(),j<d&&(v?.(W),r.landmarkAnimationID=r.canvas.requestAnimationFrame(P))};this.canvas.requestAnimationFrame(P)}}}])})(Wbn);Si.CameraContribution=IWi;var J1=on(Pi()),wMe=(function(e){function t(n,i,r,o){var s;return _i(this,t),s=Hs(this,t,[n]),s.currentTime=r,s.timelineTime=o,s.target=i,s.type="finish",s.bubbles=!1,s.currentTarget=i,s.defaultPrevented=!1,s.eventPhase=s.AT_TARGET,s.timeStamp=Date.now(),s.currentTime=r,s.timelineTime=o,s}return Ws(t,e),wi(t)})(B0e),LWi=0,NWi=(function(){function e(t,n){var i;_i(this,e),this.currentTimePending=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._playbackRate=1,this._inTimeline=!0,this.effect=t,t.animation=this,this.timeline=n,this.id="".concat(LWi++),this._inEffect=!!this.effect.update(0),this._totalDuration=Number((i=this.effect)===null||i===void 0?void 0:i.getComputedTiming().endTime),this._holdTime=0,this._paused=!1,this.oldPlayState="idle",this.updatePromises()}return wi(e,[{key:"pending",get:(function(){return this._startTime===null&&!this._paused&&this.playbackRate!==0||this.currentTimePending})},{key:"playState",get:function(){return this._idle?"idle":this._isFinished?"finished":this._paused?"paused":"running"}},{key:"ready",get:(function(){var n=this;return this.readyPromise||(this.timeline.animationsWithPromises.indexOf(this)===-1&&this.timeline.animationsWithPromises.push(this),this.readyPromise=new Promise(function(i,r){n.resolveReadyPromise=function(){i(n)},n.rejectReadyPromise=function(){r(new Error)}}),this.pending||this.resolveReadyPromise()),this.readyPromise})},{key:"finished",get:function(){var n=this;return this.finishedPromise||(this.timeline.animationsWithPromises.indexOf(this)===-1&&this.timeline.animationsWithPromises.push(this),this.finishedPromise=new Promise(function(i,r){n.resolveFinishedPromise=function(){i(n)},n.rejectFinishedPromise=function(){r(new Error)}}),this.playState==="finished"&&this.resolveFinishedPromise()),this.finishedPromise}},{key:"currentTime",get:function(){return this.updatePromises(),this._idle||this.currentTimePending?null:this._currentTime},set:function(n){if(n=Number(n),!isNaN(n)){if(this.timeline.restart(),!this._paused&&this._startTime!==null){var i;this._startTime=Number((i=this.timeline)===null||i===void 0?void 0:i.currentTime)-n/this.playbackRate}this.currentTimePending=!1,this._currentTime!==n&&(this._idle&&(this._idle=!1,this._paused=!0),this.tickCurrentTime(n,!0),this.timeline.applyDirtiedAnimation(this))}}},{key:"startTime",get:function(){return this._startTime},set:function(n){if(n!==null){if(this.updatePromises(),n=Number(n),isNaN(n)||this._paused||this._idle)return;this._startTime=n,this.tickCurrentTime((Number(this.timeline.currentTime)-this._startTime)*this.playbackRate),this.timeline.applyDirtiedAnimation(this),this.updatePromises()}}},{key:"playbackRate",get:function(){return this._playbackRate},set:function(n){if(n!==this._playbackRate){this.updatePromises();var i=this.currentTime;this._playbackRate=n,this.startTime=null,this.playState!=="paused"&&this.playState!=="idle"&&(this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this)),i!==null&&(this.currentTime=i),this.updatePromises()}}},{key:"_isFinished",get:function(){return!this._idle&&(this._playbackRate>0&&Number(this._currentTime)>=this._totalDuration||this._playbackRate<0&&Number(this._currentTime)<=0)}},{key:"totalDuration",get:function(){return this._totalDuration}},{key:"_needsTick",get:function(){return this.pending||this.playState==="running"||!this._finishedFlag}},{key:"updatePromises",value:function(){var n;if((n=this.effect.target)!==null&&n!==void 0&&n.destroyed)return this.readyPromise=void 0,this.finishedPromise=void 0,!1;var i=this.oldPlayState,r=this.pending?"pending":this.playState;return this.readyPromise&&r!==i&&(r==="idle"?(this.rejectReadyPromise(),this.readyPromise=void 0):i==="pending"?this.resolveReadyPromise():r==="pending"&&(this.readyPromise=void 0)),this.finishedPromise&&r!==i&&(r==="idle"?(this.rejectFinishedPromise(),this.finishedPromise=void 0):r==="finished"?this.resolveFinishedPromise():i==="finished"&&(this.finishedPromise=void 0)),this.oldPlayState=r,this.readyPromise||this.finishedPromise}},{key:"play",value:function(){this.updatePromises(),this._paused=!1,(this._isFinished||this._idle)&&(this.rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this),this.timeline.animations.indexOf(this)===-1&&this.timeline.animations.push(this),this.updatePromises()}},{key:"pause",value:function(){this.updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),!this._isFinished&&!this._paused&&!this._idle?this.currentTimePending=!0:this._idle&&(this.rewind(),this._idle=!1),this._startTime=null,this._paused=!0,this.updatePromises()}},{key:"finish",value:function(){this.updatePromises(),!this._idle&&(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this.currentTimePending=!1,this.timeline.applyDirtiedAnimation(this),this.updatePromises())}},{key:"cancel",value:function(){var n=this;if(this.updatePromises(),!!this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this.effect.update(null),this.timeline.applyDirtiedAnimation(this),this.updatePromises(),this.oncancel)){var i=new wMe(null,this,this.currentTime,null);setTimeout(function(){n.oncancel(i)})}}},{key:"reverse",value:function(){this.updatePromises();var n=this.currentTime;this.playbackRate*=-1,this.play(),n!==null&&(this.currentTime=n),this.updatePromises()}},{key:"updatePlaybackRate",value:function(n){this.playbackRate=n}},{key:"targetAnimations",value:function(){var n,i=(n=this.effect)===null||n===void 0?void 0:n.target;return i.getAnimations()}},{key:"markTarget",value:function(){var n=this.targetAnimations();n.indexOf(this)===-1&&n.push(this)}},{key:"unmarkTarget",value:function(){var n=this.targetAnimations(),i=n.indexOf(this);i!==-1&&n.splice(i,1)}},{key:"tick",value:function(n,i){!this._idle&&!this._paused&&(this._startTime===null?i&&(this.startTime=n-this._currentTime/this.playbackRate):this._isFinished||this.tickCurrentTime((n-this._startTime)*this.playbackRate)),i&&(this.currentTimePending=!1,this.fireEvents(n))}},{key:"rewind",value:function(){if(this.playbackRate>=0)this.currentTime=0;else if(this._totalDuration<1/0)this.currentTime=this._totalDuration;else throw new Error("Unable to rewind negative playback rate animation with infinite duration")}},{key:"persist",value:function(){throw new Error(gc)}},{key:"addEventListener",value:function(n,i,r){throw new Error(gc)}},{key:"removeEventListener",value:function(n,i,r){throw new Error(gc)}},{key:"dispatchEvent",value:function(n){throw new Error(gc)}},{key:"commitStyles",value:(function(){throw new Error(gc)})},{key:"ensureAlive",value:function(){if(this.playbackRate<0&&this.currentTime===0){var n;this._inEffect=!!((n=this.effect)!==null&&n!==void 0&&n.update(-1))}else{var i;this._inEffect=!!((i=this.effect)!==null&&i!==void 0&&i.update(this.currentTime))}!this._inTimeline&&(this._inEffect||!this._finishedFlag)&&(this._inTimeline=!0,this.timeline.animations.push(this))}},{key:"tickCurrentTime",value:function(n,i){n!==this._currentTime&&(this._currentTime=n,this._isFinished&&!i&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this.ensureAlive())}},{key:"fireEvents",value:function(n){var i=this;if(this._isFinished){if(!this._finishedFlag){if(this.onfinish){var r=new wMe(null,this,this.currentTime,n);setTimeout(function(){i.onfinish&&i.onfinish(r)})}this._finishedFlag=!0}}else{if(this.onframe&&this.playState==="running"){var o=new wMe(null,this,this.currentTime,n);this.onframe(o)}this._finishedFlag=!1}}}])})(),PWi=4,MWi=.001,OWi=1e-7,RWi=10,rU=11,Gie=1/(rU-1),FWi=typeof Float32Array=="function",C_n=function(t,n){return 1-3*n+3*t},S_n=function(t,n){return 3*n-6*t},x_n=function(t){return 3*t},nfe=function(t,n,i){return((C_n(n,i)*t+S_n(n,i))*t+x_n(n))*t},E_n=function(t,n,i){return 3*C_n(n,i)*t*t+2*S_n(n,i)*t+x_n(n)},BWi=function(t,n,i,r,o){var s,a,l=0;do a=n+(i-n)/2,s=nfe(a,r,o)-t,s>0?i=a:n=a;while(Math.abs(s)>OWi&&++l<RWi);return a},jWi=function(t,n,i,r){for(var o=0;o<PWi;++o){var s=E_n(n,i,r);if(s===0)return n;var a=nfe(n,i,r)-t;n-=a/s}return n},fZe=function(t,n,i,r){if(!(t>=0&&t<=1&&i>=0&&i<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===n&&i===r)return function(l){return l};for(var o=FWi?new Float32Array(rU):new Array(rU),s=0;s<rU;++s)o[s]=nfe(s*Gie,t,i);var a=function(c){for(var u=0,d=1,h=rU-1;d!==h&&o[d]<=c;++d)u+=Gie;--d;var f=(c-o[d])/(o[d+1]-o[d]),p=u+f*Gie,g=E_n(p,t,i);return g>=MWi?jWi(c,p,t,i):g===0?p:BWi(c,u,u+Gie,t,i)};return function(l){return l===0||l===1?l:nfe(a(l),n,r)}},zWi=function(t){return t=t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())}),t.charAt(0)==="-"?t.substring(1):t},Kie=function(t){return Math.pow(t,2)},Yie=function(t){return Math.pow(t,3)},Qie=function(t){return Math.pow(t,4)},Zie=function(t){return Math.pow(t,5)},Xie=function(t){return Math.pow(t,6)},Jie=function(t){return 1-Math.cos(t*Math.PI/2)},ere=function(t){return 1-Math.sqrt(1-t*t)},tre=function(t){return t*t*(3*t-2)},nre=function(t){for(var n,i=4;t<((n=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((n*3-2)/22-t,2)},ire=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=As(n,2),r=i[0],o=r===void 0?1:r,s=i[1],a=s===void 0?.5:s,l=(0,J1.clamp)(Number(o),1,10),c=(0,J1.clamp)(Number(a),.1,2);return t===0||t===1?t:-l*Math.pow(2,10*(t-1))*Math.sin((t-1-c/(Math.PI*2)*Math.asin(1/l))*(Math.PI*2)/c)},nH=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,r=As(n,4),o=r[0],s=o===void 0?1:o,a=r[1],l=a===void 0?100:a,c=r[2],u=c===void 0?10:c,d=r[3],h=d===void 0?0:d;s=(0,J1.clamp)(s,.1,1e3),l=(0,J1.clamp)(l,.1,1e3),u=(0,J1.clamp)(u,.1,1e3),h=(0,J1.clamp)(h,.1,1e3);var f=Math.sqrt(l/s),p=u/(2*Math.sqrt(l*s)),g=p<1?f*Math.sqrt(1-p*p):0,m=1,v=p<1?(p*f+-h)/g:-h+f,y=i?i*t/1e3:t;return p<1?y=Math.exp(-y*p*f)*(m*Math.cos(g*y)+v*Math.sin(g*y)):y=(m+v*y)*Math.exp(-y*f),t===0||t===1?t:1-y},CMe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=n,r=As(i,2),o=r[0],s=o===void 0?10:o,a=r[1],l=a==="start"?Math.ceil:Math.floor;return l((0,J1.clamp)(t,0,1)*s)/s},aRt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=As(n,4),r=i[0],o=i[1],s=i[2],a=i[3];return fZe(r,o,s,a)(t)},rre=fZe(.42,0,1,1),Yb=function(t){return function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return 1-t(1-n,i,r)}},Qb=function(t){return function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return n<.5?t(n*2,i,r)/2:1-t(n*-2+2,i,r)/2}},Zb=function(t){return function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return n<.5?(1-t(1-n*2,i,r))/2:(t(n*2-1,i,r)+1)/2}},lRt={steps:CMe,"step-start":function(t){return CMe(t,[1,"start"])},"step-end":function(t){return CMe(t,[1,"end"])},linear:function(t){return t},"cubic-bezier":aRt,ease:function(t){return aRt(t,[.25,.1,.25,1])},in:rre,out:Yb(rre),"in-out":Qb(rre),"out-in":Zb(rre),"in-quad":Kie,"out-quad":Yb(Kie),"in-out-quad":Qb(Kie),"out-in-quad":Zb(Kie),"in-cubic":Yie,"out-cubic":Yb(Yie),"in-out-cubic":Qb(Yie),"out-in-cubic":Zb(Yie),"in-quart":Qie,"out-quart":Yb(Qie),"in-out-quart":Qb(Qie),"out-in-quart":Zb(Qie),"in-quint":Zie,"out-quint":Yb(Zie),"in-out-quint":Qb(Zie),"out-in-quint":Zb(Zie),"in-expo":Xie,"out-expo":Yb(Xie),"in-out-expo":Qb(Xie),"out-in-expo":Zb(Xie),"in-sine":Jie,"out-sine":Yb(Jie),"in-out-sine":Qb(Jie),"out-in-sine":Zb(Jie),"in-circ":ere,"out-circ":Yb(ere),"in-out-circ":Qb(ere),"out-in-circ":Zb(ere),"in-back":tre,"out-back":Yb(tre),"in-out-back":Qb(tre),"out-in-back":Zb(tre),"in-bounce":nre,"out-bounce":Yb(nre),"in-out-bounce":Qb(nre),"out-in-bounce":Zb(nre),"in-elastic":ire,"out-elastic":Yb(ire),"in-out-elastic":Qb(ire),"out-in-elastic":Zb(ire),spring:nH,"spring-in":nH,"spring-out":Yb(nH),"spring-in-out":Qb(nH),"spring-out-in":Zb(nH)},VWi=function(t){return zWi(t).replace(/^ease-/,"").replace(/(\(|\s).+/,"").toLowerCase().trim()},HWi=function(t){return lRt[VWi(t)]||lRt.linear},WWi=function(t){return t},UWi=1,$Wi=.5,cRt=0;function uRt(e,t){return function(n){if(n>=1)return 1;var i=1/e;return n+=t*i,n-n%i}}var ore="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",qWi=new RegExp("cubic-bezier\\(".concat(ore,",").concat(ore,",").concat(ore,",").concat(ore,"\\)")),GWi=/steps\(\s*(\d+)\s*\)/,KWi=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/;function pZe(e){var t=qWi.exec(e);if(t)return fZe.apply(void 0,va(t.slice(1).map(Number)));var n=GWi.exec(e);if(n)return uRt(Number(n[1]),cRt);var i=KWi.exec(e);return i?uRt(Number(i[1]),{start:UWi,middle:$Wi,end:cRt}[i[2]]):HWi(e)}function YWi(e){return Math.abs(QWi(e)/(e.playbackRate||1))}function QWi(e){var t;return e.duration===0||e.iterations===0?0:(e.duration==="auto"?0:Number(e.duration))*((t=e.iterations)!==null&&t!==void 0?t:1)}var A_n=0,gZe=1,z0e=2,D_n=3;function ZWi(e,t,n){if(t===null)return A_n;var i=n.endTime;return t<Math.min(n.delay,i)?gZe:t>=Math.min(n.delay+e+n.endDelay,i)?z0e:D_n}function XWi(e,t,n,i,r){switch(i){case gZe:return t==="backwards"||t==="both"?0:null;case D_n:return n-r;case z0e:return t==="forwards"||t==="both"?e:null;case A_n:return null}}function JWi(e,t,n,i,r){var o=r;return e===0?t!==gZe&&(o+=n):o+=i/e,o}function eUi(e,t,n,i,r,o){var s=e===1/0?t%1:e%1;return s===0&&n===z0e&&i!==0&&(r!==0||o===0)&&(s=1),s}function tUi(e,t,n,i){return e===z0e&&t===1/0?1/0:n===1?Math.floor(i)-1:Math.floor(i)}function nUi(e,t,n){var i=e;if(e!=="normal"&&e!=="reverse"){var r=t;e==="alternate-reverse"&&(r+=1),i="normal",r!==1/0&&r%2!==0&&(i="reverse")}return i==="normal"?n:1-n}function iUi(e,t,n){var i=ZWi(e,t,n),r=XWi(e,n.fill,t,i,n.delay);if(r===null)return null;var o=n.duration==="auto"?0:n.duration,s=JWi(o,i,n.iterations,r,n.iterationStart),a=eUi(s,n.iterationStart,i,n.iterations,r,o),l=tUi(i,n.iterations,a,s),c=nUi(n.direction,l,a);return n.currentIteration=l,n.progress=c,n.easingFunction(c)}function rUi(e,t,n){var i=oUi(e,t),r=sUi(i,n);return function(o,s){if(s!==null)r.filter(function(l){return s>=l.applyFrom&&s<l.applyTo}).forEach(function(l){var c=s-l.startOffset,u=l.endOffset-l.startOffset,d=u===0?0:c/u;o.setAttribute(l.property,l.interpolation(d),!1,!1)});else for(var a in i)T_n(a)&&o.setAttribute(a,null)}}function T_n(e){return e!=="offset"&&e!=="easing"&&e!=="composite"&&e!=="computedOffset"}function oUi(e,t){for(var n={},i=0;i<e.length;i++)for(var r in e[i])if(T_n(r)){var o={offset:e[i].offset,computedOffset:e[i].computedOffset,easing:e[i].easing,easingFunction:pZe(e[i].easing)||t.easingFunction,value:e[i][r]};n[r]=n[r]||[],n[r].push(o)}return n}function sUi(e,t){var n=[];for(var i in e)for(var r=e[i],o=0;o<r.length-1;o++){var s=o,a=o+1,l=r[s].computedOffset,c=r[a].computedOffset,u=l,d=c;o===0&&(u=-1/0,c===0&&(a=s)),o===r.length-2&&(d=1/0,l===1&&(s=a)),n.push({applyFrom:u,applyTo:d,startOffset:r[s].computedOffset,endOffset:r[a].computedOffset,easingFunction:r[s].easingFunction,property:i,interpolation:aUi(i,r[s].value,r[a].value,t)})}return n.sort(function(h,f){return h.startOffset-f.startOffset}),n}var dRt=function(t,n,i){return function(r){var o=k_n(t,n,r);return(0,J1.isNumber)(o)?o:i(o)}};function aUi(e,t,n,i){var r=s_n[e];if(r&&r.syntax&&r.int){var o=Si.styleValueRegistry.getPropertySyntax(r.syntax);if(o){var s=o.parser,a=s?s(t,i):t,l=s?s(n,i):n,c=o.mixer(a,l,i);if(c){var u=dRt.apply(void 0,va(c));return function(d){return d===0?t:d===1?n:u(d)}}}}return dRt(!1,!0,function(d){return d?n:t})}function k_n(e,t,n){if(typeof e=="number"&&typeof t=="number")return e*(1-n)+t*n;if(typeof e=="boolean"&&typeof t=="boolean"||typeof e=="string"&&typeof t=="string")return n<.5?e:t;if(Array.isArray(e)&&Array.isArray(t)){for(var i=e.length,r=t.length,o=Math.max(i,r),s=[],a=0;a<o;a++)s.push(k_n(e[a<i?a:i-1],t[a<r?a:r-1],n));return s}throw new Error("Mismatched interpolation arguments ".concat(e,":").concat(t))}var lUi=(function(){function e(){_i(this,e),this.delay=0,this.direction="normal",this.duration="auto",this._easing="linear",this.easingFunction=WWi,this.endDelay=0,this.fill="auto",this.iterationStart=0,this.iterations=1,this.currentIteration=null,this.progress=null}return wi(e,[{key:"easing",get:function(){return this._easing},set:function(n){this.easingFunction=pZe(n),this._easing=n}}])})();function cUi(e){var t=[];for(var n in e)if(!(n in["easing","offset","composite"])){var i=e[n];Array.isArray(i)||(i=[i]);for(var r=i.length,o=0;o<r;o++){if(!t[o]){var s={};"offset"in e&&(s.offset=Number(e.offset)),"easing"in e&&(s.easing=e.easing),"composite"in e&&(s.composite=e.composite),t[o]=s}i[o]!==void 0&&i[o]!==null&&(t[o][n]=i[o])}}return t.sort(function(a,l){return(a.computedOffset||0)-(l.computedOffset||0)}),t}function hRt(e,t){if(e===null)return[];Array.isArray(e)||(e=cUi(e));for(var n=e.map(function(l){var c={};t!=null&&t.composite&&(c.composite="auto");for(var u in l){var d=l[u];if(u==="offset"){if(d!==null){if(d=Number(d),!isFinite(d))throw new Error("Keyframe offsets must be numbers.");if(d<0||d>1)throw new Error("Keyframe offsets must be between 0 and 1.");c.computedOffset=d}}else if(u==="composite"&&["replace","add","accumulate","auto"].indexOf(d)===-1)throw new Error("".concat(d," compositing is not supported"));c[u]=d}return c.offset===void 0&&(c.offset=null),c.easing===void 0&&(c.easing=t?.easing||"linear"),c.composite===void 0&&(c.composite="auto"),c}),i=!0,r=-1/0,o=0;o<n.length;o++){var s=n[o].offset;if((0,J1.isNil)(s))i=!1;else{if(s<r)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");r=s}}n=n.filter(function(l){return Number(l.offset)>=0&&Number(l.offset)<=1});function a(){var l,c=n,u=c.length;if(n[u-1].computedOffset=Number((l=n[u-1].offset)!==null&&l!==void 0?l:1),u>1){var d;n[0].computedOffset=Number((d=n[0].offset)!==null&&d!==void 0?d:0)}for(var h=0,f=Number(n[0].computedOffset),p=1;p<u;p++){var g=n[p].computedOffset;if(!(0,J1.isNil)(g)&&!(0,J1.isNil)(f)){for(var m=1;m<p-h;m++)n[h+m].computedOffset=f+(Number(g)-f)*m/(p-h);h=p,f=Number(g)}}}return i||a(),n}var uUi="backwards|forwards|both|none".split("|"),dUi="reverse|alternate|alternate-reverse".split("|");function hUi(e,t){var n=new lUi;return typeof e=="number"&&!isNaN(e)?n.duration=e:e!==void 0&&Object.keys(e).forEach(function(i){if(e[i]!==void 0&&e[i]!==null&&e[i]!=="auto"){if((typeof n[i]=="number"||i==="duration")&&(typeof e[i]!="number"||isNaN(e[i]))||i==="fill"&&uUi.indexOf(e[i])===-1||i==="direction"&&dUi.indexOf(e[i])===-1)return;n[i]=e[i]}}),n}function fUi(e,t){return e=pUi(e??{duration:"auto"}),hUi(e)}function pUi(e){return typeof e=="number"&&(isNaN(e)?e={duration:"auto"}:e={duration:e}),e}var gUi=(function(){function e(t,n,i){var r=this;_i(this,e),this.composite="replace",this.iterationComposite="replace",this.target=t,this.timing=fUi(i),this.timing.effect=this,this.timing.activeDuration=YWi(this.timing),this.timing.endTime=Math.max(0,this.timing.delay+this.timing.activeDuration+this.timing.endDelay),this.normalizedKeyframes=hRt(n,this.timing),this.interpolations=rUi(this.normalizedKeyframes,this.timing,this.target);var o=Si.globalThis.Proxy;this.computedTiming=o?new o(this.timing,{get:function(a,l){return l==="duration"?a.duration==="auto"?0:a.duration:l==="fill"?a.fill==="auto"?"none":a.fill:l==="localTime"?r.animation&&r.animation.currentTime||null:l==="currentIteration"?!r.animation||r.animation.playState!=="running"?null:a.currentIteration||0:l==="progress"?!r.animation||r.animation.playState!=="running"?null:a.progress||0:a[l]},set:function(){return!0}}):this.timing}return wi(e,[{key:"applyInterpolations",value:function(){this.interpolations(this.target,Number(this.timeFraction))}},{key:"update",value:function(n){return n===null?!1:(this.timeFraction=iUi(this.timing.activeDuration,n,this.timing),this.timeFraction!==null)}},{key:"getKeyframes",value:function(){return this.normalizedKeyframes}},{key:"setKeyframes",value:function(n){this.normalizedKeyframes=hRt(n)}},{key:"getComputedTiming",value:function(){return this.computedTiming}},{key:"getTiming",value:function(){return this.timing}},{key:"updateTiming",value:function(n){var i=this;Object.keys(n||{}).forEach(function(r){i.timing[r]=n[r]})}}])})();function fRt(e,t){return Number(e.id)-Number(t.id)}var mUi=(function(){function e(t){var n=this;_i(this,e),this.animations=[],this.ticking=!1,this.timelineTicking=!1,this.hasRestartedThisFrame=!1,this.animationsWithPromises=[],this.inTick=!1,this.pendingEffects=[],this.currentTime=null,this.rafId=0,this.rafCallbacks=[],this.webAnimationsNextTick=function(i){n.currentTime=i,n.discardAnimations(),n.animations.length===0?n.timelineTicking=!1:n.requestAnimationFrame(n.webAnimationsNextTick)},this.processRafCallbacks=function(i){var r=n.rafCallbacks;n.rafCallbacks=[],i<Number(n.currentTime)&&(i=Number(n.currentTime)),n.animations.sort(fRt),n.animations=n.tick(i,!0,n.animations)[0],r.forEach(function(o){o[1](i)}),n.applyPendingEffects()},this.document=t}return wi(e,[{key:"getAnimations",value:function(){return this.discardAnimations(),this.animations.slice()}},{key:"isTicking",value:function(){return this.inTick}},{key:"play",value:function(n,i,r){var o=new gUi(n,i,r),s=new NWi(o,this);return this.animations.push(s),this.restartWebAnimationsNextTick(),s.updatePromises(),s.play(),s.updatePromises(),s}},{key:"applyDirtiedAnimation",value:function(n){var i=this;if(!this.inTick){n.markTarget();var r=n.targetAnimations();r.sort(fRt);var o=this.tick(Number(this.currentTime),!1,r.slice())[1];o.forEach(function(s){var a=i.animations.indexOf(s);a!==-1&&i.animations.splice(a,1)}),this.applyPendingEffects()}}},{key:"restart",value:function(){return this.ticking||(this.ticking=!0,this.requestAnimationFrame(function(){}),this.hasRestartedThisFrame=!0),this.hasRestartedThisFrame}},{key:"destroy",value:function(){this.document.defaultView.cancelAnimationFrame(this.frameId)}},{key:"applyPendingEffects",value:function(){this.pendingEffects.forEach(function(n){n?.applyInterpolations()}),this.pendingEffects=[]}},{key:"updateAnimationsPromises",value:function(){this.animationsWithPromises=this.animationsWithPromises.filter(function(n){return n.updatePromises()})}},{key:"discardAnimations",value:function(){this.updateAnimationsPromises(),this.animations=this.animations.filter(function(n){return n.playState!=="finished"&&n.playState!=="idle"})}},{key:"restartWebAnimationsNextTick",value:function(){this.timelineTicking||(this.timelineTicking=!0,this.requestAnimationFrame(this.webAnimationsNextTick))}},{key:"rAF",value:function(n){var i=this.rafId++;return this.rafCallbacks.length===0&&(this.frameId=this.document.defaultView.requestAnimationFrame(this.processRafCallbacks)),this.rafCallbacks.push([i,n]),i}},{key:"requestAnimationFrame",value:function(n){var i=this;return this.rAF(function(r){i.updateAnimationsPromises(),n(r),i.updateAnimationsPromises()})}},{key:"tick",value:function(n,i,r){var o=this,s,a;this.inTick=!0,this.hasRestartedThisFrame=!1,this.currentTime=n,this.ticking=!1;var l=[],c=[],u=[],d=[];return r.forEach(function(h){h.tick(n,i),h._inEffect?(c.push(h.effect),h.markTarget()):(l.push(h.effect),h.unmarkTarget()),h._needsTick&&(o.ticking=!0);var f=h._inEffect||h._needsTick;h._inTimeline=f,f?u.push(h):d.push(h)}),(s=this.pendingEffects).push.apply(s,l),(a=this.pendingEffects).push.apply(a,c),this.ticking&&this.requestAnimationFrame(function(){}),this.inTick=!1,[u,d]}}])})();Si.EasingFunction=pZe;Si.AnimationTimeline=mUi;var vUi=on(Pi()),K9=on(Pi()),yUi={duration:500},bUi={duration:1e3,easing:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",iterations:1,fill:"both"},Pu;(function(e){e.NodeAdded="NodeAdded",e.NodeUpdated="NodeUpdated",e.NodeRemoved="NodeRemoved",e.EdgeAdded="EdgeAdded",e.EdgeUpdated="EdgeUpdated",e.EdgeRemoved="EdgeRemoved",e.ComboAdded="ComboAdded",e.ComboUpdated="ComboUpdated",e.ComboRemoved="ComboRemoved"})(Pu||(Pu={}));var d0;(function(e){e.DRAW="draw",e.COLLAPSE="collapse",e.EXPAND="expand",e.TRANSFORM="transform"})(d0||(d0={}));var ag;(function(e){e.CLICK="canvas:click",e.DBLCLICK="canvas:dblclick",e.POINTER_OVER="canvas:pointerover",e.POINTER_LEAVE="canvas:pointerleave",e.POINTER_ENTER="canvas:pointerenter",e.POINTER_MOVE="canvas:pointermove",e.POINTER_OUT="canvas:pointerout",e.POINTER_DOWN="canvas:pointerdown",e.POINTER_UP="canvas:pointerup",e.CONTEXT_MENU="canvas:contextmenu",e.DRAG_START="canvas:dragstart",e.DRAG="canvas:drag",e.DRAG_END="canvas:dragend",e.DRAG_ENTER="canvas:dragenter",e.DRAG_OVER="canvas:dragover",e.DRAG_LEAVE="canvas:dragleave",e.DROP="canvas:drop",e.WHEEL="canvas:wheel"})(ag||(ag={}));var _x;(function(e){e.CLICK="combo:click",e.DBLCLICK="combo:dblclick",e.POINTER_OVER="combo:pointerover",e.POINTER_LEAVE="combo:pointerleave",e.POINTER_ENTER="combo:pointerenter",e.POINTER_MOVE="combo:pointermove",e.POINTER_OUT="combo:pointerout",e.POINTER_DOWN="combo:pointerdown",e.POINTER_UP="combo:pointerup",e.CONTEXT_MENU="combo:contextmenu",e.DRAG_START="combo:dragstart",e.DRAG="combo:drag",e.DRAG_END="combo:dragend",e.DRAG_ENTER="combo:dragenter",e.DRAG_OVER="combo:dragover",e.DRAG_LEAVE="combo:dragleave",e.DROP="combo:drop"})(_x||(_x={}));var Rn;(function(e){e.CLICK="click",e.DBLCLICK="dblclick",e.POINTER_OVER="pointerover",e.POINTER_LEAVE="pointerleave",e.POINTER_ENTER="pointerenter",e.POINTER_MOVE="pointermove",e.POINTER_OUT="pointerout",e.POINTER_DOWN="pointerdown",e.POINTER_UP="pointerup",e.CONTEXT_MENU="contextmenu",e.DRAG_START="dragstart",e.DRAG="drag",e.DRAG_END="dragend",e.DRAG_ENTER="dragenter",e.DRAG_OVER="dragover",e.DRAG_LEAVE="dragleave",e.DROP="drop",e.KEY_DOWN="keydown",e.KEY_UP="keyup",e.WHEEL="wheel",e.PINCH="pinch"})(Rn||(Rn={}));var E6;(function(e){e.KEY_DOWN="keydown",e.KEY_UP="keyup"})(E6||(E6={}));var iN;(function(e){e.CLICK="edge:click",e.DBLCLICK="edge:dblclick",e.POINTER_OVER="edge:pointerover",e.POINTER_LEAVE="edge:pointerleave",e.POINTER_ENTER="edge:pointerenter",e.POINTER_MOVE="edge:pointermove",e.POINTER_OUT="edge:pointerout",e.POINTER_DOWN="edge:pointerdown",e.POINTER_UP="edge:pointerup",e.CONTEXT_MENU="edge:contextmenu",e.DRAG_ENTER="edge:dragenter",e.DRAG_OVER="edge:dragover",e.DRAG_LEAVE="edge:dragleave",e.DROP="edge:drop"})(iN||(iN={}));var Ni;(function(e){e.BEFORE_CANVAS_INIT="beforecanvasinit",e.AFTER_CANVAS_INIT="aftercanvasinit",e.BEFORE_SIZE_CHANGE="beforesizechange",e.AFTER_SIZE_CHANGE="aftersizechange",e.BEFORE_ELEMENT_CREATE="beforeelementcreate",e.AFTER_ELEMENT_CREATE="afterelementcreate",e.BEFORE_ELEMENT_UPDATE="beforeelementupdate",e.AFTER_ELEMENT_UPDATE="afterelementupdate",e.BEFORE_ELEMENT_DESTROY="beforeelementdestroy",e.AFTER_ELEMENT_DESTROY="afterelementdestroy",e.BEFORE_ELEMENT_TRANSLATE="beforeelementtranslate",e.AFTER_ELEMENT_TRANSLATE="afterelementtranslate",e.BEFORE_DRAW="beforedraw",e.AFTER_DRAW="afterdraw",e.BEFORE_RENDER="beforerender",e.AFTER_RENDER="afterrender",e.BEFORE_ANIMATE="beforeanimate",e.AFTER_ANIMATE="afteranimate",e.BEFORE_LAYOUT="beforelayout",e.AFTER_LAYOUT="afterlayout",e.BEFORE_STAGE_LAYOUT="beforestagelayout",e.AFTER_STAGE_LAYOUT="afterstagelayout",e.BEFORE_TRANSFORM="beforetransform",e.AFTER_TRANSFORM="aftertransform",e.BATCH_START="batchstart",e.BATCH_END="batchend",e.BEFORE_DESTROY="beforedestroy",e.AFTER_DESTROY="afterdestroy",e.BEFORE_RENDERER_CHANGE="beforerendererchange",e.AFTER_RENDERER_CHANGE="afterrendererchange"})(Ni||(Ni={}));var mI;(function(e){e.UNDO="undo",e.REDO="redo",e.CANCEL="cancel",e.ADD="add",e.CLEAR="clear",e.CHANGE="change"})(mI||(mI={}));var gp;(function(e){e.CLICK="node:click",e.DBLCLICK="node:dblclick",e.POINTER_OVER="node:pointerover",e.POINTER_LEAVE="node:pointerleave",e.POINTER_ENTER="node:pointerenter",e.POINTER_MOVE="node:pointermove",e.POINTER_OUT="node:pointerout",e.POINTER_DOWN="node:pointerdown",e.POINTER_UP="node:pointerup",e.CONTEXT_MENU="node:contextmenu",e.DRAG_START="node:dragstart",e.DRAG="node:drag",e.DRAG_END="node:dragend",e.DRAG_ENTER="node:dragenter",e.DRAG_OVER="node:dragover",e.DRAG_LEAVE="node:dragleave",e.DROP="node:drop"})(gp||(gp={}));var zc="combo",Fy="tree",rN;(function(e){e.NODE="node",e.EDGE="edge",e.COMBO="combo",e.THEME="theme",e.PALETTE="palette",e.LAYOUT="layout",e.BEHAVIOR="behavior",e.PLUGIN="plugin",e.ANIMATION="animation",e.TRANSFORM="transform",e.SHAPE="shape"})(rN||(rN={}));var G7e={animation:{},behavior:{},combo:{},edge:{},layout:{},node:{},palette:{},theme:{},plugin:{},transform:{},shape:{}};function eT(e,t){var n;const i=(n=G7e[e])===null||n===void 0?void 0:n[t];if(i)return i}var _Ui="5.1.0-beta.1",wUi="G6";function mD(e){return`[${wUi} v${_Ui}] ${e}`}var DE={mute:!1,debug:e=>{console.debug(mD(e))},info:e=>{console.info(mD(e))},warn:e=>{console.warn(mD(e))},error:e=>{console.error(mD(e))}};function I_n(e){const{theme:t}=e;if(!t)return{};const n=eT(rN.THEME,t);return n||(DE.warn(`The theme of ${t} is not registered.`),{})}function mZe(e,t){if(Array.isArray(e)&&e.length===0)return null;const n=Array.isArray(e)?e[0]:e,i=Array.isArray(e)?e.slice(1):t||[];return new Proxy(n,{get(r,o){return typeof r[o]=="function"&&!["onframe","onfinish"].includes(o)?(...s)=>{r[o](...s),i.forEach(a=>{var l;return(l=a[o])===null||l===void 0?void 0:l.call(a,...s)})}:o==="finished"?Promise.all([n.finished,...i.map(s=>s.finished)]):Reflect.get(r,o)},set(r,o,s){return["onframe","onfinish"].includes(o)||i.forEach(a=>{a[o]=s}),Reflect.set(r,o,s)}})}function K7e(e){const t=e.reduce((i,r)=>(Object.entries(r).forEach(([o,s])=>{i[o]===void 0?i[o]=[s]:i[o].push(s)}),i),{});Object.entries(t).forEach(([i,r])=>{(r.length!==e.length||r.some(o=>(0,K9.isNil)(o))||r.every(o=>!["sourceNode","targetNode","childrenNode"].includes(i)&&(0,K9.isEqual)(o,r[0])))&&delete t[i]});const n=Object.entries(t).reduce((i,[r,o])=>(o.forEach((s,a)=>{i[a]?i[a][r]=s:i[a]={[r]:s}}),i),[]);return e.length!==0&&n.length===0&&n.push({_:0},{_:0}),n}function tK(e){switch(e){case"opacity":return 1;case"x":case"y":case"z":case"zIndex":return 0;case"visibility":return"visible";case"collapsed":return!1;case"states":return[];default:return}}function L_n(e,t){const{animation:n}=e;if(n===!1||t===!1)return!1;const i=Object.assign({},yUi);return(0,K9.isObject)(n)&&Object.assign(i,n),(0,K9.isObject)(t)&&Object.assign(i,t),i}function CUi(e){if(typeof e=="string"){const t=eT(rN.ANIMATION,e);return t||(DE.warn(`The animation of ${e} is not registered.`),[])}return e}function SUi(e,t,n,i){var r,o;const{animation:s}=e;if(s===!1||i===!1)return[];const a=(r=e?.[t])===null||r===void 0?void 0:r.animation;if(a===!1)return[];const l=a?.[n];if(l===!1)return[];const c=(o=I_n(e)[t])===null||o===void 0?void 0:o.animation,u=(h=[])=>CUi(h).map(f=>Object.assign(Object.assign(Object.assign(Object.assign({},bUi),(0,K9.isObject)(s)&&s),f),(0,K9.isObject)(i)&&i));if(l)return u(l);if(!c)return[];const d=c[n];return d===!1?[]:u(d)}var xUi=on(Pi());function N_n(e,t,n,i=[]){if(!i&&e===0&&t===0&&n===0)return null;if(Array.isArray(i)){let o=-1;const s=[];for(let a=0;a<i.length;a++){const l=i[a];if(l[0]==="translate"){if(l[1]===e&&l[2]===t)return null;o=a,s.push(["translate",e,t])}else if(l[0]==="translate3d"){if(l[1]===e&&l[2]===t&&l[3]===n)return null;o=a,s.push(["translate3d",e,t,n??0])}else s.push(l)}return o===-1&&s.splice(0,0,(0,xUi.isNumber)(n)?["translate3d",e,t,n??0]:["translate",e,t]),s.length===0?null:s}const r=i?i.replace(/translate(3d)?\([^)]*\)/g,""):"";return n===0?`translate(${e}, ${t})${r}`:`translate3d(${e}, ${t}, ${n})${r}`}var EUi=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},AUi=(e,t,n)=>{if(!n.length)return null;const[i,r]=t,o=c=>{var u;if(c){const d=e.getShape(c);if(!d)return null;const h=`get${(0,vUi.upperFirst)(c)}Style`,f=((u=e?.[h])===null||u===void 0?void 0:u.bind(e))||(m=>m),p=f?.(i)||{},g=f?.(r)||{};return{shape:d,fromStyle:p,toStyle:g}}else return{shape:e,fromStyle:i,toStyle:r}};let s;const a=n.map(c=>{var{fields:u,shape:d,states:h}=c,f=EUi(c,["fields","shape","states"]);const p=o(d);if(!p)return null;const{shape:g,fromStyle:m,toStyle:v}=p,y=[{},{}];if(u.forEach(w=>{var E,A;Object.assign(y[0],{[w]:(E=m[w])!==null&&E!==void 0?E:tK(w)}),Object.assign(y[1],{[w]:(A=v[w])!==null&&A!==void 0?A:tK(w)})}),y.some(w=>Object.keys(w).some(E=>["x","y","z"].includes(E)))){const{x:w=0,y:E=0,z:A,transform:D=""}=g.attributes||{};y.forEach(T=>{var M,P,F;T.transform=N_n((M=T.x)!==null&&M!==void 0?M:w,(P=T.y)!==null&&P!==void 0?P:E,(F=T.z)!==null&&F!==void 0?F:A,D)})}const b=g.animate(K7e(y),f);return d===void 0&&(s=b),b}).filter(Boolean),l=s||a?.[0];return l?mZe(l,a.filter(c=>c!==c)):null},DUi=[{fields:["opacity"]}],TUi=[{fields:["x","y"]}],P_n=[{fields:["x","y"]}],kUi=P_n,M_n=[{fields:["sourceNode","targetNode"]}],IUi=M_n,O_n=[{fields:["childrenNode","x","y"]}],LUi=O_n,OM=on(Pi()),NUi=on(Pi());function PUi(e){return"source"in e&&"target"in e}function MUi(e){return e.length===2}function Y9(e){return e instanceof Float32Array?!0:Array.isArray(e)&&(e.length===2||e.length===3)?e.every(t=>typeof t=="number"):!1}function hE(e,t,n){return e>=t&&e<=n}function Lw(e=0){if(Array.isArray(e)){const[t=0,n=t,i=t,r=n]=e;return[t,n,i,r]}return[e,e,e,e]}function OUi(e=0){const t=Lw(e);return t[0]+t[2]}function TE(e){return e.max[0]-e.min[0]}function kE(e){return e.max[1]-e.min[1]}function nP(e){return[TE(e),kE(e)]}function GI(e,t){const n=Y9(e)?vZe(e):e.getShape("key").getBounds();return t?iP(n,t):n}function vZe(e){const[t,n,i=0]=e,r=new mc;return r.setMinMax([t,n,i],[t,n,i]),r}function iP(e,t){const[n,i,r,o]=Lw(t),[s,a,l]=e.min,[c,u,d]=e.max,h=new mc;return h.setMinMax([s-o,a-n,l],[c+i,u+r,d]),h}function eZ(e){if(e.length===0)return new mc;if(e.length===1)return e[0];const t=new mc;t.setMinMax(e[0].min,e[0].max);for(let n=1;n<e.length;n++){const i=e[n];t.setMinMax([Math.min(t.min[0],i.min[0]),Math.min(t.min[1],i.min[1]),Math.min(t.min[2],i.min[2])],[Math.max(t.max[0],i.max[0]),Math.max(t.max[1],i.max[1]),Math.max(t.max[2],i.max[2])])}return t}function RUi(e,t){const[n,i]=e.min,[r,o]=e.max,[s,a]=t.min,[l,c]=t.max;return n>=s&&r<=l&&i>=a&&o<=c}function PC(e,t){return hE(e[0],t.min[0],t.max[0])&&hE(e[1],t.min[1],t.max[1])}function R_n(e,t,n=!1){const{min:[i,r],max:[o,s]}=t,a=(e[1]===r||e[1]===s)&&(n||hE(e[0],i,o)),l=(e[0]===i||e[0]===o)&&(n||hE(e[1],r,s));return a||l}function FUi(e,t){return!PC(e,t)}function ife(e,t){const{center:n}=t;return e[0]===n[0]&&e[1]===n[1]}function tq(e,t){const[n,i]=e,[r,o]=t.min,[s,a]=t.max,l=n-r,c=s-n,u=i-o,d=a-i,h=Math.min(l,c,u,d);return h===l?"left":h===c?"right":h===u?"top":h===d?"bottom":"left"}function kR(e,t){const n=(0,NUi.clone)(e);if(PC(e,t))switch(tq(e,t)){case"left":n[0]=t.min[0];break;case"right":n[0]=t.max[0];break;case"top":n[1]=t.min[1];break;case"bottom":n[1]=t.max[1];break}else{const[i,r]=e,[o,s]=t.min,[a,l]=t.max;n[0]=hE(i,o,a)?i:i<o?o:a,n[1]=hE(r,s,l)?r:r<s?s:l}return n}function BUi(e,t){const{center:n}=e,[i,r]=nP(e),o=t==="up"||t==="down"?n[0]:t==="right"?n[0]-i/6:n[0]+i/6,s=t==="left"||t==="right"?n[1]:t==="down"?n[1]-r/6:n[1]+r/6;return[o,s]}function jUi(e,t){let[n,i]=nP(e);return[n,i]=t==="up"||t==="down"?[n,i]:[i,n],(Math.pow(i,2)-Math.pow(Math.sqrt(Math.pow(n/2,2)+Math.pow(i,2))-n/2,2))/(2*i)}function zUi(e){const{min:[t,n],max:[i,r]}=e,o=[t,r],s=[i,r],a=[i,n],l=[t,n];return[[o,s],[s,a],[a,l],[l,o]]}var VUi=function(t,n){return t===n},pRt=(function(){function e(t,n){n===void 0&&(n=null),this.value=t,this.next=n}return e.prototype.toString=function(t){return t?t(this.value):"".concat(this.value)},e})(),HUi=(function(){function e(t){t===void 0&&(t=VUi),this.head=null,this.tail=null,this.compare=t}return e.prototype.prepend=function(t){var n=new pRt(t,this.head);return this.head=n,this.tail||(this.tail=n),this},e.prototype.append=function(t){var n=new pRt(t);return this.head?(this.tail.next=n,this.tail=n,this):(this.head=n,this.tail=n,this)},e.prototype.delete=function(t){if(!this.head)return null;for(var n=null;this.head&&this.compare(this.head.value,t);)n=this.head,this.head=this.head.next;var i=this.head;if(i!==null)for(;i.next;)this.compare(i.next.value,t)?(n=i.next,i.next=i.next.next):i=i.next;return this.compare(this.tail.value,t)&&(this.tail=i),n},e.prototype.find=function(t){var n=t.value,i=n===void 0?void 0:n,r=t.callback,o=r===void 0?void 0:r;if(!this.head)return null;for(var s=this.head;s;){if(o&&o(s.value)||i!==void 0&&this.compare(s.value,i))return s;s=s.next}return null},e.prototype.deleteTail=function(){var t=this.tail;if(this.head===this.tail)return this.head=null,this.tail=null,t;for(var n=this.head;n.next;)n.next.next?n=n.next:n.next=null;return this.tail=n,t},e.prototype.deleteHead=function(){if(!this.head)return null;var t=this.head;return this.head.next?this.head=this.head.next:(this.head=null,this.tail=null),t},e.prototype.fromArray=function(t){var n=this;return t.forEach(function(i){return n.append(i)}),this},e.prototype.toArray=function(){for(var t=[],n=this.head;n;)t.push(n),n=n.next;return t},e.prototype.reverse=function(){for(var t=this.head,n=null,i=null;t;)i=t.next,t.next=n,n=t,t=i;this.tail=this.head,this.head=n},e.prototype.toString=function(t){return t===void 0&&(t=void 0),this.toArray().map(function(n){return n.toString(t)}).toString()},e})(),WUi=HUi,UUi=function(t,n,i){n===void 0&&(n=[]);var r=n.filter(function(s){return s.source===t||s.target===t});{var o=function(a){return a.target===t};return r.filter(o).map(function(s){return s.source})}},$Ui=function(t,n){return n.filter(function(i){return i.source===t})},qUi=function(t,n){return n.filter(function(i){return i.source===t||i.target===t})},GUi=function(t){var n={},i=t.nodes,r=i===void 0?[]:i,o=t.edges,s=o===void 0?[]:o;return r.forEach(function(a){n[a.id]={degree:0,inDegree:0,outDegree:0}}),s.forEach(function(a){n[a.source].degree++,n[a.source].outDegree++,n[a.target].degree++,n[a.target].inDegree++}),n},KUi=GUi;Wn();var YUi={}.toString,QUi=function(e,t){return YUi.call(e)==="[object "+t+"]"},yZe=QUi,F_n=(function(e){return yZe(e,"Function")}),B_n=(function(e){return Array.isArray?Array.isArray(e):yZe(e,"Array")}),ZUi=(function(e){var t=typeof e;return e!==null&&t==="object"||t==="function"});function XUi(e,t){if(e){var n;if(B_n(e))for(var i=0,r=e.length;i<r&&(n=t(e[i],i),n!==!1);i++);else if(ZUi(e)){for(var o in e)if(e.hasOwnProperty(o)&&(n=t(e[o],o),n===!1))break}}}var JUi=XUi,e$i=(function(e){return yZe(e,"String")}),t$i=Object.values?function(e){return Object.values(e)}:function(e){var t=[];return JUi(e,function(n,i){F_n(e)&&i==="prototype"||t.push(n)}),t},n$i=t$i,i$i=(function(e,t){if(!F_n(e))throw new TypeError("Expected a function");var n=function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var o=t?t.apply(this,i):i[0],s=n.cache;if(s.has(o))return s.get(o);var a=e.apply(this,i);return s.set(o,a),a};return n.cache=new Map,n});Wn();var sre;i$i(function(e,t){t===void 0&&(t={});var n=t.fontSize,i=t.fontFamily,r=t.fontWeight,o=t.fontStyle,s=t.fontVariant;return sre||(sre=document.createElement("canvas").getContext("2d")),sre.font=[o,s,r,n+"px",i].join(" "),sre.measureText(e$i(e)?e:"").width},function(e,t){return t===void 0&&(t={}),dVe([e],n$i(t)).join("")});var r$i=function(t,n,i){for(var r=1/0,o,s=0;s<n.length;s++){var a=n[s].id;!i[a]&&t[a]<=r&&(r=t[a],o=n[s])}return o},o$i=function(t,n,i,r){var o=t.nodes,s=o===void 0?[]:o,a=t.edges,l=a===void 0?[]:a,c={},u={},d={};s.forEach(function(y,b){var w=y.id;u[w]=1/0,w===n&&(u[w]=0)});for(var h=s.length,f=function(b){var w=r$i(u,s,c),E=w.id;if(c[E]=!0,u[E]===1/0)return"continue";var A=[];i?A=$Ui(E,l):A=qUi(E,l),A.forEach(function(D){var T=D.target,M=D.source,P=T===E?M:T,F=r&&D[r]?D[r]:1;u[P]>u[w.id]+F?(u[P]=u[w.id]+F,d[P]=[w.id]):u[P]===u[w.id]+F&&d[P].push(w.id)})},p=0;p<h;p++)f();d[n]=[n];var g={};for(var m in u)u[m]!==1/0&&j_n(n,m,d,g);var v={};for(var m in g)v[m]=g[m][0];return{length:u,path:v,allPath:g}},s$i=o$i;function j_n(e,t,n,i){if(e===t)return[e];if(i[t])return i[t];for(var r=[],o=0,s=n[t];o<s.length;o++){var a=s[o],l=j_n(e,a,n,i);if(!l)return;for(var c=0,u=l;c<u.length;c++){var d=u[c];B_n(d)?r.push(Hr(Hr([],d,!0),[t],!1)):r.push([d,t])}}return i[t]=r,i[t]}var z_n=function(t,n,i,r,o){var s=s$i(t,n,r,o),a=s.length,l=s.path,c=s.allPath;return{length:a[i],path:l[i],allPath:c[i]}},gRt;(function(e){e.EuclideanDistance="euclideanDistance"})(gRt||(gRt={}));var a$i=function(t,n,i){typeof n!="number"&&(n=1e-6),typeof i!="number"&&(i=.85);for(var r=1,o=0,s=1e3,a=t.nodes,l=a===void 0?[]:a,c=t.edges,u=c===void 0?[]:c,d=l.length,h,f={},p={},g=0;g<d;++g){var m=l[g],v=m.id;f[v]=1/d,p[v]=1/d}for(var y=KUi(t);s>0&&r>n;){o=0;for(var g=0;g<d;++g){var m=l[g],v=m.id;if(h=0,y[m.id].inDegree===0)f[v]=0;else{for(var b=UUi(v,u),w=0;w<b.length;++w){var E=b[w],A=y[E].outDegree;A>0&&(h+=p[E]/A)}f[v]=i*h,o+=f[v]}}o=(1-o)/d,r=0;for(var g=0;g<d;++g){var m=l[g],v=m.id;h=f[v]+o,r+=Math.abs(h-p[v]),p[v]=h}s-=1}return p},l$i=a$i;(function(){function e(t){t===void 0&&(t=10),this.linkedList=new WUi,this.maxStep=t}return Object.defineProperty(e.prototype,"length",{get:function(){return this.linkedList.toArray().length},enumerable:!1,configurable:!0}),e.prototype.isEmpty=function(){return!this.linkedList.head},e.prototype.isMaxStack=function(){return this.toArray().length>=this.maxStep},e.prototype.peek=function(){return this.isEmpty()?null:this.linkedList.head.value},e.prototype.push=function(t){this.linkedList.prepend(t),this.length>this.maxStep&&this.linkedList.deleteTail()},e.prototype.pop=function(){var t=this.linkedList.deleteHead();return t?t.value:null},e.prototype.toArray=function(){return this.linkedList.toArray().map(function(t){return t.value})},e.prototype.clear=function(){for(;!this.isEmpty();)this.pop()},e})();function an(e){if(e.id!==void 0)return e.id;if(e.source!==void 0&&e.target!==void 0)return`${e.source}-${e.target}`;throw new Error(mD("The datum does not have available id."))}function are(e){return e.combo}function V_n(e,t){const n={nodes:(e.nodes||[]).map(an),edges:(e.edges||[]).map(an),combos:(e.combos||[]).map(an)};return t?Object.values(n).flat():n}var H_n=(e,t,n)=>{var i;switch(n.type){case"degree":{const r=new Map;return(i=e.nodes)===null||i===void 0||i.forEach(o=>{const s=t(an(o),n.direction).length;r.set(an(o),s)}),r}case"betweenness":return c$i(e,n.directed,n.weightPropertyName);case"closeness":return u$i(e,n.directed,n.weightPropertyName);case"eigenvector":return h$i(e,n.directed);case"pagerank":return d$i(e,n.epsilon,n.linkProb);default:return W_n(e)}},W_n=e=>{var t;const n=new Map;return(t=e.nodes)===null||t===void 0||t.forEach(i=>{n.set(an(i),0)}),n},c$i=(e,t,n)=>{const i=W_n(e),{nodes:r=[]}=e;return r.forEach(o=>{r.forEach(s=>{if(o!==s){const{allPath:a}=z_n(e,an(o),an(s),t,n),l=a.length;a.flat().forEach(c=>{c!==an(o)&&c!==an(s)&&i.set(c,i.get(c)+1/l)})}})}),i},u$i=(e,t,n)=>{const i=new Map,{nodes:r=[]}=e;return r.forEach(o=>{const s=r.reduce((a,l)=>{if(o!==l){const{length:c}=z_n(e,an(o),an(l),t,n);a+=c}return a},0);i.set(an(o),1/s)}),i},d$i=(e,t,n)=>{var i;const r=new Map,o=l$i(e,t,n);return(i=e.nodes)===null||i===void 0||i.forEach(s=>{r.set(an(s),o[an(s)])}),r},h$i=(e,t)=>{const{nodes:n=[]}=e,i=f$i(e,t),r=p$i(i,n.length),o=new Map;return n.forEach((s,a)=>{o.set(an(s),r[a])}),o},f$i=(e,t)=>{const{nodes:n=[],edges:i=[]}=e,r=Array(n.length).fill(null).map(()=>Array(n.length).fill(0));return i.forEach(({source:o,target:s})=>{const a=n.findIndex(c=>an(c)===o),l=n.findIndex(c=>an(c)===s);t?r[a][l]=1:(r[a][l]=1,r[l][a]=1)}),r},p$i=(e,t,n=100,i=1e-6)=>{let r=Array(t).fill(1),o=1/0;for(let s=0;s<n&&o>i;s++){const a=Array(t).fill(0);for(let c=0;c<t;c++)for(let u=0;u<t;u++)a[c]+=e[c][u]*r[u];const l=Math.sqrt(a.reduce((c,u)=>c+u*u,0));for(let c=0;c<t;c++)a[c]/=l;o=Math.sqrt(a.reduce((c,u,d)=>c+(u-r[d])*u,0)),r=a}return r},g$i=on(Pi());function gL(e,t,n,i=g$i.isEqual){const r=new Map(e.map(h=>[n(h),h])),o=new Map(t.map(h=>[n(h),h])),s=new Set(r.keys()),a=new Set(o.keys()),l=[],c=[],u=[],d=[];return a.forEach(h=>{s.has(h)?i(r.get(h),o.get(h))?d.push(o.get(h)):c.push(o.get(h)):l.push(o.get(h))}),s.forEach(h=>{a.has(h)||u.push(r.get(h))}),{enter:l,exit:u,keep:d,update:c}}function P2(e,t,n){const i=r=>{n&&!n(r)||(r.style.visibility=t)};e.forEach(r=>{i(r)})}function m$i(e,t,n){const i={},r=o=>(o in i||(i[o]=0),`${t}-${o}-${i[o]++}`);return n.map(o=>typeof o=="string"?{type:o,key:r(o)}:typeof o=="function"?o.call(e):o.key?o:Object.assign(Object.assign({},o),{key:r(o.type)}))}var bZe=class{constructor(e){this.extensions=[],this.extensionMap={},this.context=e}setExtensions(e){const t=m$i(this.context.graph,this.category,e),{enter:n,update:i,exit:r,keep:o}=gL(this.extensions,t,s=>s.key);this.createExtensions(n),this.updateExtensions([...i,...o]),this.destroyExtensions(r),this.extensions=t}createExtension(e){const{category:t}=this,{key:n,type:i}=e,r=eT(t,i);if(!r)return DE.warn(`The extension ${i} of ${t} is not registered.`);const o=new r(this.context,e);o.initialized=!0,this.extensionMap[n]=o}createExtensions(e){e.forEach(t=>this.createExtension(t))}updateExtension(e){const{key:t}=e,n=this.extensionMap[t];n&&n.update(e)}updateExtensions(e){e.forEach(t=>this.updateExtension(t))}destroyExtension(e){const t=this.extensionMap[e];t&&(t.initialized&&!t.destroyed&&t.destroy(),delete this.extensionMap[e])}destroyExtensions(e){e.forEach(({key:t})=>this.destroyExtension(t))}destroy(){this.destroyExtensions(this.extensions),this.context={},this.extensions=[],this.extensionMap={}}},_Ze=class{constructor(e,t){this.events=[],this.initialized=!1,this.destroyed=!1,this.context=e,this.options=t}update(e){this.options=Object.assign(this.options,e)}destroy(){this.context={},this.options={},this.destroyed=!0}},ny=class extends _Ze{},U_n=class $_n extends ny{constructor(t,n){super(t,Object.assign({},$_n.defaultOptions,n)),this.isOverlapping=(i,r)=>r.some(o=>i.intersects(o)),this.occupiedBounds=[],this.detectLabelCollision=i=>{const r=this.context.viewport,o={show:[],hide:[]};return this.occupiedBounds=[],i.forEach(s=>{const a=s.getShape("label").getRenderBounds();r.isInViewport(a,!0)&&!this.isOverlapping(a,this.occupiedBounds)?(o.show.push(s),this.occupiedBounds.push(iP(a,this.options.padding))):o.hide.push(s)}),o},this.hideLabelIfExceedViewport=(i,r)=>{const{exit:o}=gL(i,r,s=>s.id);o?.forEach(this.hideLabel)},this.nodeCentralities=new Map,this.sortNodesByCentrality=(i,r)=>{const{model:o}=this.context,s=o.getData(),a=o.getRelatedEdgesData.bind(o);return i.map(c=>(this.nodeCentralities.has(c.id)||(this.nodeCentralities=H_n(s,a,r)),{node:c,centrality:this.nodeCentralities.get(c.id)})).sort((c,u)=>u.centrality-c.centrality).map(c=>c.node)},this.sortLabelElementsInView=i=>{const{sort:r,sortNode:o,sortCombo:s,sortEdge:a}=this.options,{model:l}=this.context;if((0,OM.isFunction)(r))return i.sort((g,m)=>r(l.getElementDataById(g.id),l.getElementDataById(m.id)));const{node:c=[],edge:u=[],combo:d=[]}=(0,OM.groupBy)(i,g=>g.type),h=(0,OM.isFunction)(s)?d.sort((g,m)=>s(...l.getComboData([g.id,m.id]))):d,f=(0,OM.isFunction)(o)?c.sort((g,m)=>o(...l.getNodeData([g.id,m.id]))):this.sortNodesByCentrality(c,o),p=(0,OM.isFunction)(a)?u.sort((g,m)=>a(...l.getEdgeData([g.id,m.id]))):u;return[...h,...f,...p]},this.labelElementsInView=[],this.isFirstRender=!0,this.onToggleVisibility=i=>{var r;if(((r=i.data)===null||r===void 0?void 0:r.stage)==="zIndex")return;if(!this.validate(i)){this.hiddenElements.size>0&&(this.hiddenElements.forEach(this.showLabel),this.hiddenElements.clear());return}const o=this.isFirstRender?this.getLabelElements():this.getLabelElementsInView();this.hideLabelIfExceedViewport(this.labelElementsInView,o),this.labelElementsInView=o;const s=this.sortLabelElementsInView(this.labelElementsInView),{show:a,hide:l}=this.detectLabelCollision(s);for(let c=a.length-1;c>=0;c--)this.showLabel(a[c]);l.forEach(this.hideLabel)},this.hiddenElements=new Map,this.hideLabel=i=>{const r=i.getShape("label");r&&P2(r,"hidden"),this.hiddenElements.set(i.id,i)},this.showLabel=i=>{const r=i.getShape("label");r&&P2(r,"visible"),i.toFront(),this.hiddenElements.delete(i.id)},this.onTransform=(0,OM.throttle)(this.onToggleVisibility,this.options.throttle,{leading:!0}),this.enableToggle=!0,this.toggle=i=>{this.enableToggle&&this.onToggleVisibility(i)},this.onBeforeRender=()=>{this.enableToggle=!1},this.onAfterRender=i=>{this.onToggleVisibility(i),this.enableToggle=!0},this.bindEvents()}update(t){this.unbindEvents(),super.update(t),this.bindEvents(),this.onToggleVisibility({})}getLabelElements(){const{elementMap:t}=this.context.element,n=[];for(const i in t){const r=t[i];r.isVisible()&&r.getShape("label")&&n.push(r)}return n}getLabelElementsInView(){const t=this.context.viewport;return this.getLabelElements().filter(n=>t.isInViewport(n.getShape("key").getRenderBounds()))}bindEvents(){const{graph:t}=this.context;t.on(Ni.BEFORE_RENDER,this.onBeforeRender),t.on(Ni.AFTER_RENDER,this.onAfterRender),t.on(Ni.AFTER_DRAW,this.toggle),t.on(Ni.AFTER_LAYOUT,this.toggle),t.on(Ni.AFTER_TRANSFORM,this.onTransform)}unbindEvents(){const{graph:t}=this.context;t.off(Ni.BEFORE_RENDER,this.onBeforeRender),t.off(Ni.AFTER_RENDER,this.onAfterRender),t.off(Ni.AFTER_DRAW,this.toggle),t.off(Ni.AFTER_LAYOUT,this.toggle),t.off(Ni.AFTER_TRANSFORM,this.onTransform)}validate(t){if(this.destroyed)return!1;const{enable:n}=this.options;return(0,OM.isFunction)(n)?n(t):!!n}destroy(){this.unbindEvents(),super.destroy()}};U_n.defaultOptions={enable:!0,throttle:100,padding:0,sortNode:{type:"degree"}};var lre=on(Pi()),v$i=on(Pi()),mRt=[0,0,0];function _s(e,t){return e.map((n,i)=>n+t[i])}function wc(e,t){return e.map((n,i)=>n-t[i])}function U1(e,t){return typeof t=="number"?e.map(n=>n*t):e.map((n,i)=>n*t[i])}function MC(e,t){return typeof t=="number"?e.map(n=>n/t):e.map((n,i)=>n/t[i])}function y$i(e,t){return e.reduce((n,i,r)=>n+i*t[r],0)}function b$i(e,t){const n=nK(e),i=nK(t);return[n[1]*i[2]-n[2]*i[1],n[2]*i[0]-n[0]*i[2],n[0]*i[1]-n[1]*i[0]]}function KI(e,t){return e.map(n=>n*t)}function bu(e,t){return Math.sqrt(e.reduce((n,i,r)=>n+Math.pow(i-t[r]||0,2),0))}function rfe(e,t){return e.reduce((n,i,r)=>n+Math.abs(i-t[r]),0)}function LD(e){const t=e.reduce((n,i)=>n+Math.pow(i,2),0);return e.map(n=>n/Math.sqrt(t))}function wZe(e,t,n=!1){const i=e[0]*t[1]-e[1]*t[0];let r=Math.acos(U1(e,t).reduce((o,s)=>o+s,0)/(bu(e,mRt)*bu(t,mRt)));return n&&i<0&&(r=2*Math.PI-r),r}function V0e(e,t=!0){return t?[-e[1],e[0]]:[e[1],-e[0]]}function SMe(e,t){return e.map(n=>n%t)}function M2(e){return[e[0],e[1]]}function nK(e){return MUi(e)?[e[0],e[1],0]:e}function q_n(e){const[t,n]=e;return!t&&!n?0:Math.atan2(n,t)}function G_n(e,t){const[n,i]=e;if(t%360===0)return[n,i];const r=t*Math.PI/180,o=Math.cos(r),s=Math.sin(r);return[n*o-i*s,n*s+i*o]}function K_n(e,t){const[n,i]=e,[r,o]=t,s=wc(n,i),a=wc(r,o);return b$i(s,a).every(l=>l===0)}function CZe(e,t,n=!1){if(K_n(e,t))return;const[i,r]=e,[o,s]=t,a=((i[0]-o[0])*(o[1]-s[1])-(i[1]-o[1])*(o[0]-s[0]))/((i[0]-r[0])*(o[1]-s[1])-(i[1]-r[1])*(o[0]-s[0])),l=s[0]-o[0]?(i[0]-o[0]+a*(r[0]-i[0]))/(s[0]-o[0]):(i[1]-o[1]+a*(r[1]-i[1]))/(s[1]-o[1]);if(!(!n&&(!hE(a,0,1)||!hE(l,0,1))))return[i[0]+a*(r[0]-i[0]),i[1]+a*(r[1]-i[1])]}function Y_n(e){if(Array.isArray(e))return hE(e[0],0,1)&&hE(e[1],0,1)?e:[.5,.5];const t=e.split("-"),n=t.includes("left")?0:t.includes("right")?1:.5,i=t.includes("top")?0:t.includes("bottom")?1:.5;return[n,i]}function zf(e){const{x:t=0,y:n=0,z:i=0}=e.style||{};return[+t,+n,+i]}function _$i(e){const{x:t,y:n,z:i}=e.style||{};return t!==void 0||n!==void 0||i!==void 0}function w$i(e,t){const[n,i]=t,{min:r,max:o}=e;return[r[0]+n*(o[0]-r[0]),r[1]+i*(o[1]-r[1])]}function rD(e,t="center"){const n=Y_n(t);return w$i(e,n)}function og(e){var t;return[e.x,e.y,(t=e.z)!==null&&t!==void 0?t:0]}function $1(e){var t;return{x:e[0],y:e[1],z:(t=e[2])!==null&&t!==void 0?t:0}}function iH(e,t=0){return e.map(n=>parseFloat(n.toFixed(t)))}function mL(e,t,n,i=!1){if((0,v$i.isEqual)(e,t))return e;const r=i?wc(e,t):wc(t,e),o=LD(r),s=[o[0]*n,o[1]*n];return _s(M2(e),s)}function Q_n(e,t){return e[1]===t[1]}function C$i(e,t){return e[0]===t[0]}function S$i(e,t){return Q_n(e,t)||C$i(e,t)}function Z_n(e,t,n){return K_n([e,t],[t,n])}function X_n(e,t){return[2*t[0]-e[0],2*t[1]-e[1]]}function J_n(e,t,n,i=!0,r=!1){for(let o=0;o<n.length;o++){let s=n[o],a=n[(o+1)%n.length];i&&(s=_s(t,s),a=_s(t,a));const l=r?X_n(e,t):e,c=CZe([t,l],[s,a]);if(c)return{point:c,line:[s,a]}}return{point:t,line:void 0}}function x$i(e,t,n,i){const r=e[0],o=e[1];let s=!1;n===void 0&&(n=0),i===void 0&&(i=t.length);const a=i-n;for(let l=0,c=a-1;l<a;c=l++){const u=t[l+n][0],d=t[l+n][1],h=t[c+n][0],f=t[c+n][1];d>o!=f>o&&r<(h-u)*(o-d)/(f-d)+u&&(s=!s)}return s}function E$i(e,t,n=!1){const i=rD(t,"center"),r=[rD(t,"left-top"),rD(t,"right-top"),rD(t,"right-bottom"),rD(t,"left-bottom")];return J_n(e,i,r,!1,n).point}function H0e(e,t,n=!1){const i=t.center,r=n?X_n(e,i):e,o=wc(r,t.center),s=Math.atan2(o[1],o[0]);if(isNaN(s))return i;const a=TE(t)/2,l=kE(t)/2,c=i[0]+a*Math.cos(s),u=i[1]+l*Math.sin(s);return[c,u]}function A$i(e,t){let n=1/0,i=[e[0],t[0]];return e.forEach(r=>{t.forEach(o=>{const s=bu(r,o);s<n&&(n=s,i=[r,o])})}),i}function D$i(e,t){let n=1/0,i=[[0,0],[0,0]];return t.forEach(r=>{const o=T$i(e,r);o<n&&(n=o,i=r)}),i}function T$i(e,t){const n=ewn(e,t);return bu(e,n)}function ewn(e,t){const[n,i]=t[0],[r,o]=t[1],[s,a]=e,l=r-n,c=o-i;if(l===0&&c===0)return[n,i];let u=((s-n)*l+(a-i)*c)/(l*l+c*c);u>1?u=1:u<0&&(u=0);const d=n+u*l,h=i+u*c;return[d,h]}function k$i(e){const t=e.reduce((n,i)=>_s(n,i),[0,0]);return MC(t,e.length)}function SZe(e,t=!0){const n=k$i(e);return e.sort(([i,r],[o,s])=>{const a=Math.atan2(r-n[1],i-n[0]),l=Math.atan2(s-n[1],o-n[0]);return t?l-a:a-l})}function vRt(e,t){return[e,[e[0],t[1]],t,[t[0],e[1]]]}var bce=on(Pi()),tZ=class $g{constructor(t,n,i){if(this.phase=n,this.pointerByTouch=[],this.initialDistance=null,this.emitter=t,$g.instance)return $g.callbacks[this.phase].push(i),$g.instance;this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.bindEvents(),$g.instance=this,$g.callbacks[this.phase].push(i)}bindEvents(){const{emitter:t}=this;t.on(Rn.POINTER_DOWN,this.onPointerDown),t.on(Rn.POINTER_MOVE,this.onPointerMove),t.on(Rn.POINTER_UP,this.onPointerUp)}updatePointerPosition(t,n,i){const r=this.pointerByTouch.findIndex(o=>o.pointerId===t);r>=0&&(this.pointerByTouch[r]={x:n,y:i,pointerId:t})}onPointerDown(t){const{x:n,y:i}=t.client||{};if(!(n===void 0||i===void 0)&&(this.pointerByTouch.push({x:n,y:i,pointerId:t.pointerId}),t.pointerType==="touch"&&this.pointerByTouch.length===2)){$g.isPinching=!0;const r=this.pointerByTouch[0].x-this.pointerByTouch[1].x,o=this.pointerByTouch[0].y-this.pointerByTouch[1].y;this.initialDistance=Math.sqrt(r*r+o*o),$g.callbacks.pinchstart.forEach(s=>s(t,{scale:0}))}}onPointerMove(t){if(this.pointerByTouch.length!==2||this.initialDistance===null)return;const{x:n,y:i}=t.client||{};if(n===void 0||i===void 0)return;this.updatePointerPosition(t.pointerId,n,i);const r=this.pointerByTouch[0].x-this.pointerByTouch[1].x,o=this.pointerByTouch[0].y-this.pointerByTouch[1].y,a=Math.sqrt(r*r+o*o)/this.initialDistance;$g.callbacks.pinchmove.forEach(l=>l(t,{scale:(a-1)*5}))}onPointerUp(t){var n;$g.callbacks.pinchend.forEach(i=>i(t,{scale:0})),$g.isPinching=!1,this.initialDistance=null,this.pointerByTouch=[],(n=$g.instance)===null||n===void 0||n.tryDestroy()}destroy(){this.emitter.off(Rn.POINTER_DOWN,this.onPointerDown),this.emitter.off(Rn.POINTER_MOVE,this.onPointerMove),this.emitter.off(Rn.POINTER_UP,this.onPointerUp),$g.instance=null}off(t,n){const i=$g.callbacks[t].indexOf(n);i>-1&&$g.callbacks[t].splice(i,1),this.tryDestroy()}tryDestroy(){Object.values($g.callbacks).every(t=>t.length===0)&&this.destroy()}};tZ.isPinching=!1;tZ.instance=null;tZ.callbacks={pinchstart:[],pinchmove:[],pinchend:[]};var yRt=e=>e.map(t=>(0,bce.isString)(t)?t.toLocaleLowerCase():t),rP=class{constructor(e){this.map=new Map,this.boundHandlePinch=()=>{},this.recordKey=new Set,this.onKeyDown=t=>{t?.key&&(this.recordKey.add(t.key),this.trigger(t))},this.onKeyUp=t=>{t?.key&&this.recordKey.delete(t.key)},this.onWheel=t=>{this.triggerExtendKey(Rn.WHEEL,t)},this.onDrag=t=>{this.triggerExtendKey(Rn.DRAG,t)},this.handlePinch=(t,n)=>{this.triggerExtendKey(Rn.PINCH,Object.assign(Object.assign({},t),n))},this.onFocus=()=>{this.recordKey.clear()},this.emitter=e,this.bindEvents()}bind(e,t){e.length!==0&&(e.includes(Rn.PINCH)&&!this.pinchHandler&&(this.boundHandlePinch=this.handlePinch.bind(this),this.pinchHandler=new tZ(this.emitter,"pinchmove",this.boundHandlePinch)),this.map.set(e,t))}unbind(e,t){this.map.forEach((n,i)=>{(0,bce.isEqual)(i,e)&&(!t||t===n)&&this.map.delete(i)})}unbindAll(){this.map.clear()}match(e){const t=yRt(Array.from(this.recordKey)).sort(),n=yRt(e).sort();return(0,bce.isEqual)(t,n)}bindEvents(){var e;const{emitter:t}=this;t.on(Rn.KEY_DOWN,this.onKeyDown),t.on(Rn.KEY_UP,this.onKeyUp),t.on(Rn.WHEEL,this.onWheel),t.on(Rn.DRAG,this.onDrag),(e=globalThis.addEventListener)===null||e===void 0||e.call(globalThis,"focus",this.onFocus)}trigger(e){this.map.forEach((t,n)=>{this.match(n)&&t(e)})}triggerExtendKey(e,t){this.map.forEach((n,i)=>{i.includes(e)&&(0,bce.isEqual)(Array.from(this.recordKey),i.filter(r=>r!==e))&&n(t)})}destroy(){var e,t;this.unbindAll(),this.emitter.off(Rn.KEY_DOWN,this.onKeyDown),this.emitter.off(Rn.KEY_UP,this.onKeyUp),this.emitter.off(Rn.WHEEL,this.onWheel),this.emitter.off(Rn.DRAG,this.onDrag),(e=this.pinchHandler)===null||e===void 0||e.off("pinchmove",this.boundHandlePinch),(t=globalThis.removeEventListener)===null||t===void 0||t.call(globalThis,"focus",this.onFocus)}},xZe=class twn extends ny{constructor(t,n){super(t,(0,lre.deepMix)({},twn.defaultOptions,n)),this.shortcut=new rP(t.graph),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.clearStates=this.clearStates.bind(this),this.bindEvents()}onPointerDown(t){if(!this.validate(t)||!this.isKeydown()||this.startPoint)return;const{canvas:n,graph:i}=this.context,r=Object.assign({},this.options.style);this.options.style.lineWidth&&(r.lineWidth=+this.options.style.lineWidth/i.getZoom()),this.rectShape=new kp({id:"g6-brush-select",style:r}),n.appendChild(this.rectShape),this.startPoint=[t.canvas.x,t.canvas.y]}onPointerMove(t){var n;if(!this.startPoint)return;const{immediately:i,mode:r}=this.options;this.endPoint=ofe(t,this.context.graph),(n=this.rectShape)===null||n===void 0||n.attr({x:Math.min(this.endPoint[0],this.startPoint[0]),y:Math.min(this.endPoint[1],this.startPoint[1]),width:Math.abs(this.endPoint[0]-this.startPoint[0]),height:Math.abs(this.endPoint[1]-this.startPoint[1])}),i&&r==="default"&&this.updateElementsStates(vRt(this.startPoint,this.endPoint))}onPointerUp(t){if(this.startPoint){if(!this.endPoint){this.clearBrush();return}this.endPoint=ofe(t,this.context.graph),this.updateElementsStates(vRt(this.startPoint,this.endPoint)),this.clearBrush()}}clearStates(){this.endPoint||this.clearElementsStates()}clearElementsStates(){const{graph:t}=this.context,n=Object.values(t.getData()).reduce((i,r)=>Object.assign({},i,r.reduce((o,s)=>{var a;const l=(a=s.states||[])===null||a===void 0?void 0:a.filter(c=>c!==this.options.state);return o[an(s)]=l,o},{})),{});t.setElementState(n,this.options.animation)}updateElementsStates(t){const{graph:n}=this.context,{enableElements:i,state:r,mode:o,onSelect:s}=this.options,a=this.selector(n,t,i),l={};switch(o){case"union":a.forEach(c=>{l[c]=[...n.getElementState(c),r]});break;case"diff":a.forEach(c=>{const u=n.getElementState(c);l[c]=u.includes(r)?u.filter(d=>d!==r):[...u,r]});break;case"intersect":a.forEach(c=>{const u=n.getElementState(c);l[c]=u.includes(r)?[r]:[]});break;default:a.forEach(c=>{l[c]=[r]});break}(0,lre.isFunction)(s)&&s(l),n.setElementState(l,this.options.animation)}selector(t,n,i){if(!i||i.length===0)return[];const r=[],o=t.getData();if(i.forEach(s=>{o[`${s}s`].forEach(a=>{const l=an(a);t.getElementVisibility(l)!=="hidden"&&x$i(t.getElementPosition(l),n)&&r.push(l)})}),i.includes("edge")){const s=o.edges;s?.forEach(a=>{const{source:l,target:c}=a;r.includes(l)&&r.includes(c)&&r.push(an(a))})}return r}clearBrush(){var t;(t=this.rectShape)===null||t===void 0||t.remove(),this.rectShape=void 0,this.startPoint=void 0,this.endPoint=void 0}isKeydown(){const{trigger:t}=this.options,n=Array.isArray(t)?t:[t];return this.shortcut.match(n.filter(i=>i!=="drag"))}validate(t){if(this.destroyed)return!1;const{enable:n}=this.options;return(0,lre.isFunction)(n)?n(t):!!n}bindEvents(){const{graph:t}=this.context;t.on(Rn.POINTER_DOWN,this.onPointerDown),t.on(Rn.POINTER_MOVE,this.onPointerMove),t.on(Rn.POINTER_UP,this.onPointerUp),t.on(ag.CLICK,this.clearStates)}unbindEvents(){const{graph:t}=this.context;t.off(Rn.POINTER_DOWN,this.onPointerDown),t.off(Rn.POINTER_MOVE,this.onPointerMove),t.off(Rn.POINTER_UP,this.onPointerUp),t.off(ag.CLICK,this.clearStates)}update(t){this.unbindEvents(),this.options=(0,lre.deepMix)(this.options,t),this.bindEvents()}destroy(){this.unbindEvents(),super.destroy()}};xZe.defaultOptions={animation:!1,enable:!0,enableElements:["node","combo","edge"],immediately:!1,mode:"default",state:"selected",trigger:["shift"],style:{width:0,height:0,lineWidth:1,fill:"#1677FF",stroke:"#1677FF",fillOpacity:.1,zIndex:2,pointerEvents:"none"}};var ofe=(e,t)=>{if((e.targetType==="node"||e.targetType==="combo")&&!(e.nativeEvent.target instanceof HTMLCanvasElement)){const[n,i]=t.getCanvasByClient([e.client.x,e.client.y]);return[n,i]}return[e.canvas.x,e.canvas.y]},I$i=on(Pi()),tT=.8,O2=["node","edge","combo"];function D8(e,t,n,i,r=0){i==="TB"&&t(e,r);const o=n(e);if(o)for(const s of o)D8(s,t,n,i,r+1);i==="BT"&&t(e,r)}function L$i(e,t,n){const i=[[e,0]];for(;i.length;){const[r,o]=i.shift();t(r,o);const s=n(r);if(s)for(const a of s)i.push([a,o+1])}}function nwn(e,t,n,i,r="both"){if(t==="combo"||t==="node")return xMe(e,n,i,r);const o=e.getEdgeData(n);if(!o)return[];const s=xMe(e,o.source,i-1,r),a=xMe(e,o.target,i-1,r);return Array.from(new Set([...s,...a,n]))}function xMe(e,t,n,i="both"){const r=new Set,o=new Set,s=new Set;return L$i(t,(a,l)=>{l>n||(s.add(a),e.getRelatedEdgesData(a,i).forEach(c=>{const u=an(c);!o.has(u)&&l<n&&(s.add(u),o.add(u))}))},a=>e.getRelatedEdgesData(a,i).map(l=>l.source===a?l.target:l.source).filter(l=>r.has(l)?!1:(r.add(l),!0))),Array.from(s)}function EMe(e){return e.states||[]}var cre=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,[])).next())})},iwn=class rwn extends ny{constructor(t,n){super(t,Object.assign({},rwn.defaultOptions,n)),this.onClickSelect=i=>cre(this,void 0,void 0,function*(){var r,o;this.validate(i)&&(yield this.updateState(i),(o=(r=this.options).onClick)===null||o===void 0||o.call(r,i))}),this.onClickCanvas=i=>cre(this,void 0,void 0,function*(){var r,o;this.validate(i)&&(yield this.clearState(),(o=(r=this.options).onClick)===null||o===void 0||o.call(r,i))}),this.shortcut=new rP(t.graph),this.bindEvents()}bindEvents(){const{graph:t}=this.context;this.unbindEvents(),O2.forEach(n=>{t.on(`${n}:${Rn.CLICK}`,this.onClickSelect)}),t.on(ag.CLICK,this.onClickCanvas)}get isMultipleSelect(){const{multiple:t,trigger:n}=this.options;return t&&this.shortcut.match(n)}getNeighborIds(t){const{target:n,targetType:i}=t,{graph:r}=this.context,{degree:o}=this.options;return nwn(r,i,n.id,typeof o=="function"?o(t):o).filter(s=>s!==n.id)}updateState(t){return cre(this,void 0,void 0,function*(){const{state:n,unselectedState:i,neighborState:r,animation:o}=this.options;if(!n&&!r&&!i)return;const{target:s}=t,{graph:a}=this.context,l=a.getElementData(s.id),c=EMe(l).includes(n)?"unselect":"select",u={},d=this.isMultipleSelect,h=[s.id],f=this.getNeighborIds(t);if(d)if(Object.assign(u,this.getDataStates()),c==="select"){const p=(g,m)=>{g.forEach(v=>{const y=new Set(a.getElementState(v));y.add(m),y.delete(i),u[v]=Array.from(y)})};p(h,n),p(f,r),i&&Object.keys(u).forEach(g=>{const m=u[g];!m.includes(n)&&!m.includes(r)&&!m.includes(i)&&u[g].push(i)})}else{const p=u[s.id];u[s.id]=p.filter(g=>g!==n&&g!==r),p.includes(i)||u[s.id].push(i),f.forEach(g=>{u[g]=u[g].filter(m=>m!==r),u[g].includes(n)||u[g].push(i)})}else if(c==="select"){Object.assign(u,this.getClearStates(!!i));const p=(g,m)=>{g.forEach(v=>{u[v]||(u[v]=a.getElementState(v)),u[v].push(m)})};p(h,n),p(f,r),i&&Object.keys(u).forEach(g=>{!h.includes(g)&&!f.includes(g)&&u[g].push(i)})}else Object.assign(u,this.getClearStates());yield a.setElementState(u,o)})}getDataStates(){const{graph:t}=this.context,{nodes:n,edges:i,combos:r}=t.getData(),o={};return[...n,...i,...r].forEach(s=>{o[an(s)]=EMe(s)}),o}getClearStates(t=!1){const{graph:n}=this.context,{state:i,unselectedState:r,neighborState:o}=this.options,s=new Set([i,r,o]),{nodes:a,edges:l,combos:c}=n.getData(),u={};return[...a,...l,...c].forEach(d=>{const h=EMe(d),f=h.filter(p=>!s.has(p));(t||f.length!==h.length)&&(u[an(d)]=f)}),u}clearState(){return cre(this,void 0,void 0,function*(){const{graph:t}=this.context;yield t.setElementState(this.getClearStates(),this.options.animation)})}validate(t){if(this.destroyed)return!1;const{enable:n}=this.options;return(0,I$i.isFunction)(n)?n(t):!!n}unbindEvents(){const{graph:t}=this.context;O2.forEach(n=>{t.off(`${n}:${Rn.CLICK}`,this.onClickSelect)}),t.off(ag.CLICK,this.onClickCanvas)}destroy(){this.unbindEvents(),super.destroy()}};iwn.defaultOptions={animation:!0,enable:!0,multiple:!1,trigger:["shift"],state:"selected",neighborState:"selected",unselectedState:void 0,degree:0};var N$i=on(Pi());function S0(e){var t;return!!(!((t=e.style)===null||t===void 0)&&t.collapsed)}var IR=on(Pi()),P$i=on(Pi()),own=on(Pi());function sfe(e,t){if(!e.startsWith(t))return!1;const n=e[t.length];return n>="A"&&n<="Z"}function M$i(e,t){return`${t}${(0,own.upperFirst)(e)}`}function O$i(e,t,n=!0){if(!t||!sfe(e,t))return e;const i=e.slice(t.length);return n?(0,own.lowerFirst)(i):i}function iu(e,t){const n=Object.entries(e).reduce((i,[r,o])=>(r==="className"||r==="class"||sfe(r,t)&&Object.assign(i,{[O$i(r,t)]:o}),i),{});if("opacity"in e){const i=M$i("opacity",t),r=e.opacity;if(i in e){const o=e[i];Object.assign(n,{opacity:r*o})}else Object.assign(n,{opacity:r})}return n}function Y7e(e,t){const n=t.length;return Object.keys(e).reduce((i,r)=>{if(r.startsWith(t)){const o=r.slice(n);i[o]=e[r]}return i},{})}function swn(e,t){const n=typeof t=="string"?[t]:t,i={};return Object.keys(e).forEach(r=>{n.find(o=>r.startsWith(o))||(i[r]=e[r])}),i}function tb(e=0){if(typeof e=="number")return[e,e,e];const[t,n=t,i=t]=e;return[t,n,i]}var R$i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};function bRt(e,t){const{datum:n,graph:i}=t;return typeof e=="function"?e.call(i,n):Object.fromEntries(Object.entries(e).map(([r,o])=>typeof o=="function"?[r,o.call(i,n)]:[r,o]))}function Lp(e,t){const n=e?.style||{},i=t?.style||{};for(const r in n)r in i||(i[r]=n[r]);return Object.assign({},e,t,{style:i})}function F$i(e){const{x:t,y:n,z:i,class:r,className:o,transform:s,transformOrigin:a,zIndex:l,visibility:c}=e;return R$i(e,["x","y","z","class","className","transform","transformOrigin","zIndex","visibility"])}function B$i(e,t){const n=tb(e);let i={};return t.text&&!t.fontSize&&(i={fontSize:Math.min(...n)*.5}),t.src&&(!t.width||!t.height)&&(i={width:n[0]*.5,height:n[1]*.5}),i}var j$i=on(Pi());function _Rt(e){if(e)return typeof e=="string"||typeof e=="function"||Array.isArray(e)?{type:"group",field:t=>t.id,color:e,invert:!1}:e}function z$i(e,t){if(!t)return{};const{type:n,color:i,field:r,invert:o}=t,s=l=>{const c=typeof i=="string"?eT("palette",i):i;if(typeof c=="function"){const u={};return l.forEach(([d,h])=>{u[d]=c(o?1-h:h)}),u}else if(Array.isArray(c)){const u=o?[...c].reverse():c,d={};return l.forEach(([h,f])=>{d[h]=u[f%c.length]}),d}return{}},a=(l,c)=>{var u;return typeof l=="string"?(u=c.data)===null||u===void 0?void 0:u[l]:l?.(c)};if(n==="group"){const l=(0,j$i.groupBy)(e,h=>{if(!r)return"default";const f=a(r,h);return f?String(f):"default"}),c=Object.keys(l),u=s(c.map((h,f)=>[h,f])),d={};return Object.entries(l).forEach(([h,f])=>{f.forEach(p=>{d[an(p)]=u[h]})}),d}else if(n==="value"){const[l,c]=e.reduce(([d,h],f)=>{const p=a(r,f);if(typeof p!="number")throw new Error(mD(`Palette field ${r} is not a number`));return[Math.min(d,p),Math.max(h,p)]},[1/0,-1/0]),u=c-l;return s(e.map(d=>[d.id,(a(r,d)-l)/u]))}}function awn(e){const t=typeof e=="string"?eT("palette",e):e;if(typeof t!="function")return t}function lwn(e,t){let n=2*e;return typeof t=="string"?n=e*Number(t.replace("%",""))/100:typeof t=="number"&&(n=t),isNaN(n)&&(n=2*e),n}function cwn(e,t,n=1,i=!1){const r=i?n:1,o=(e.max[0]-e.min[0])*r;return lwn(o,t)}function V$i(e,t,n=1){const i=bu(e[0],e[1])*n;return lwn(i,t)}var rH=on(Pi()),RF=class extends hZe{constructor(e){wRt(e.style),super(e),this.shapeMap={},this.animateMap={},this.render(this.attributes,this),this.setVisibility(),this.bindEvents()}get parsedAttributes(){return this.attributes}upsert(e,t,n,i,r){var o,s,a,l,c,u,d,h;const f=this.shapeMap[e];if(n===!1){f&&((o=r?.beforeDestroy)===null||o===void 0||o.call(r,f),i.removeChild(f),delete this.shapeMap[e],(s=r?.afterDestroy)===null||s===void 0||s.call(r,f));return}const p=typeof t=="string"?eT(rN.SHAPE,t):t;if(!p)throw new Error(mD(`Shape ${t} not found`));if(!f||f.destroyed||!(f instanceof p)){f&&((a=r?.beforeDestroy)===null||a===void 0||a.call(r,f),f?.destroy(),(l=r?.afterDestroy)===null||l===void 0||l.call(r,f)),(c=r?.beforeCreate)===null||c===void 0||c.call(r);const g=new p({className:e,style:n});return i.appendChild(g),this.shapeMap[e]=g,(u=r?.afterCreate)===null||u===void 0||u.call(r,g),g}return(d=r?.beforeUpdate)===null||d===void 0||d.call(r,f),ije(f,n),(h=r?.afterUpdate)===null||h===void 0||h.call(r,f),f}update(e={}){const t=Object.assign({},this.attributes,e);wRt(t),jGi(this,t),this.render(t,this),this.setVisibility()}bindEvents(){}getGraphicStyle(e){return F$i(e)}get compositeShapes(){return[["badges","badge-"],["ports","port-"]]}animate(e,t){if(e.length===0)return null;const n=[];if(e[0].x!==void 0||e[0].y!==void 0||e[0].z!==void 0){const{x:r=0,y:o=0,z:s=0}=this.attributes;e.forEach(a=>{const{x:l=r,y:c=o,z:u=s}=a;Object.assign(a,{transform:u?[["translate3d",l,c,u]]:[["translate",l,c]]})})}const i=super.animate(e,t);if(i&&(AMe(this,i),n.push(i)),Array.isArray(e)&&e.length>0){const r=["transform","transformOrigin","x","y","z","zIndex"];if(Object.keys(e[0]).some(o=>!r.includes(o))){Object.entries(this.shapeMap).forEach(([s,a])=>{const l=`get${(0,rH.upperFirst)(s)}Style`,c=this[l];if((0,rH.isFunction)(c)){const u=e.map(h=>c.call(this,Object.assign(Object.assign({},this.attributes),h))),d=a.animate(K7e(u),t);d&&(AMe(a,d),n.push(d))}});const o=(s,a)=>{if(!(0,rH.isEmpty)(s)){const l=`get${(0,rH.upperFirst)(a)}Style`,c=this[l];if((0,rH.isFunction)(c)){const u=e.map(d=>c.call(this,Object.assign(Object.assign({},this.attributes),d)));Object.entries(u[0]).map(([d])=>{const h=u.map(p=>p[d]),f=s[d];if(f){const p=f.animate(K7e(h),t);p&&(AMe(f,p),n.push(p))}})}}};this.compositeShapes.forEach(([s,a])=>{const l=Y7e(this.shapeMap,a);o(l,s)})}}return mZe(n)}getShape(e){return this.shapeMap[e]}setVisibility(){const{visibility:e}=this.attributes;P2(this,e)}destroy(){this.shapeMap={},this.animateMap={},super.destroy()}};function AMe(e,t){t?.finished.then(()=>{const n=e.activeAnimations.findIndex(i=>i===t);n>-1&&e.activeAnimations.splice(n,1)})}function wRt(e){if(!e)return{};if("x"in e||"y"in e||"z"in e){const{x:t=0,y:n=0,z:i,transform:r}=e,o=N_n(t,n,i,r);o&&(e.transform=o)}return e}var H$i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},oN=class uwn extends RF{constructor(t){super(Lp({style:uwn.defaultStyleProps},t))}isTextStyle(t){return sfe(t,"label")}isBackgroundStyle(t){return sfe(t,"background")}getTextStyle(t){const n=this.getGraphicStyle(t),{padding:i}=n,r=H$i(n,["padding"]);return swn(r,"background")}getBackgroundStyle(t){if(t.background===!1)return!1;const n=this.getGraphicStyle(t),{wordWrap:i,wordWrapWidth:r,padding:o}=n,s=iu(n,"background"),{min:[a,l],center:[c,u],halfExtents:[d,h]}=this.shapeMap.text.getGeometryBounds(),[f,p,g,m]=Lw(o),v=d*2+m+p,{width:y,height:b}=s;y&&b?Object.assign(s,{x:c-Number(y)/2,y:u-Number(b)/2}):Object.assign(s,{x:a-m,y:l-f,width:i?Math.min(v,r+m+p):v,height:h*2+f+g});const{radius:w}=s;if(typeof w=="string"&&w.endsWith("%")){const E=Number(w.replace("%",""))/100;s.radius=Math.min(+s.width,+s.height)*E}return s}render(t=this.parsedAttributes,n=this){this.upsert("text",tP,this.getTextStyle(t),n),this.upsert("background",kp,this.getBackgroundStyle(t),n)}getGeometryBounds(){return(this.getShape("background")||this.getShape("text")).getGeometryBounds()}};oN.defaultStyleProps={padding:0,fontSize:12,fontFamily:"system-ui, sans-serif",wordWrap:!0,maxLines:1,wordWrapWidth:128,textOverflow:"...",textBaseline:"middle",backgroundOpacity:.75,backgroundZIndex:-1,backgroundLineWidth:0};var W0e=class dwn extends RF{constructor(t){super(Lp({style:dwn.defaultStyleProps},t))}getBadgeStyle(t){return this.getGraphicStyle(t)}render(t=this.parsedAttributes,n=this){this.upsert("label",oN,this.getBadgeStyle(t),n)}getGeometryBounds(){const t=this.getShape("label");return(t.getShape("background")||t.getShape("text")).getGeometryBounds()}};W0e.defaultStyleProps={padding:[2,4,2,4],fontSize:10,wordWrap:!1,backgroundRadius:"50%",backgroundOpacity:1};var W$i=on(Pi());function U$i(e,t=!0){const n=[];return e.forEach((i,r)=>{n.push([r===0?"M":"L",...i])}),t&&n.push(["Z"]),n}var CRt={M:["x","y"],m:["dx","dy"],H:["x"],h:["dx"],V:["y"],v:["dy"],L:["x","y"],l:["dx","dy"],Z:[],z:[],C:["x1","y1","x2","y2","x","y"],c:["dx1","dy1","dx2","dy2","dx","dy"],S:["x2","y2","x","y"],s:["dx2","dy2","dx","dy"],Q:["x1","y1","x","y"],q:["dx1","dy1","dx","dy"],T:["x","y"],t:["dx","dy"],A:["rx","ry","rotation","large-arc","sweep","x","y"],a:["rx","ry","rotation","large-arc","sweep","dx","dy"]};function $$i(e){const t=e.replace(/[\n\r]/g,"").replace(/-/g," -").replace(/(\d*\.)(\d+)(?=\.)/g,"$1$2 ").trim().split(/\s*,|\s+/),n=[];let i="",r={};for(;t.length>0;){let o=t.shift();o in CRt?i=o:t.unshift(o),r={type:i},CRt[i].forEach(l=>{o=t.shift(),r[l]=o}),i==="M"?i="L":i==="m"&&(i="l");const[s,...a]=Object.values(r);n.push([s,...a.map(Number)])}return n}function q$i(e){const t=[];return(typeof e=="string"?$$i(e):e).forEach(i=>{const r=i[0];if(r==="Z"){t.push(t[0]);return}if(r!=="A")for(let o=1;o<i.length;o=o+2)t.push([i[o],i[o+1],0]);else{const o=i.length;t.push([i[o-2],i[o-1],0])}}),t}var hwn=e=>{if(e.length<2)return[["M",0,0],["L",0,0]];const t=e[0],n=e[1],i=e[e.length-1],r=e[e.length-2];e.unshift(r,i),e.push(t,n);const o=[["M",i[0],i[1]]];for(let s=1;s<e.length-2;s+=1){const[a,l]=e[s-1],[c,u]=e[s],[d,h]=e[s+1],[f,p]=s!==e.length-2?e[s+2]:[d,h],g=c+(d-a)/6,m=u+(h-l)/6,v=d-(f-c)/6,y=h-(p-u)/6;o.push(["C",g,m,v,y,d,h])}return o};function G$i(e,t,n,i,r,o,s){const[a,l]=rD(e,t),c={textAlign:t==="left"?"right":t==="right"?"left":"center",textBaseline:t==="top"?"bottom":t==="bottom"?"top":"middle",transform:[["translate",a+n,l+i]]};if(t==="center"||!r)return c;const u=q$i(o);if(!u||u.length<=3)return c;const d=u.map((p,g)=>{const m=p,v=u[(g+1)%u.length];return(0,W$i.isEqual)(m,v)?null:[m,v]}).filter(Boolean),h=D$i([a,l],d),f=ewn([a,l],h);if(f&&h&&(c.transform=[["translate",f[0]+n,f[1]+i]],s)){const p=Math.atan((h[0][1]-h[1][1])/(h[0][0]-h[1][0]));c.transform.push(["rotate",p/Math.PI*180]),c.textAlign="center",(t==="right"||t==="left")&&(p>0?c.textBaseline=t==="right"?"bottom":"top":c.textBaseline=t==="right"?"top":"bottom")}return c}var K$i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},EZe=class fwn extends RF{constructor(t){super(Lp({style:fwn.defaultStyleProps},t))}getLabelStyle(t){if(!t.label||!t.d||t.d.length===0)return!1;const n=iu(this.getGraphicStyle(t),"label"),{maxWidth:i,offsetX:r,offsetY:o,autoRotate:s,placement:a,closeToPath:l}=n,c=K$i(n,["maxWidth","offsetX","offsetY","autoRotate","placement","closeToPath"]),u=this.shapeMap.key,d=u?.getRenderBounds();return Object.assign(G$i(d,a,r,o,l,t.d,s),{wordWrapWidth:cwn(d,i)},c)}getKeyStyle(t){return this.getGraphicStyle(t)}render(t,n){this.upsert("key",$y,this.getKeyStyle(t),n),this.upsert("label",oN,this.getLabelStyle(t),n)}};EZe.defaultStyleProps={label:!0,labelPlacement:"bottom",labelCloseToPath:!0,labelAutoRotate:!0,labelOffsetX:0,labelOffsetY:0};function Y$i(e){const t=[],n=i=>{i?.children.length&&i.children.forEach(r=>{t.push(r),n(r)})};return n(e),t}function Q$i(e){const t=[];let n=e.parentNode;for(;n;)t.push(n),n=n.parentNode;return t}var AZe=class extends Cj{constructor(e){super(e),this.onMounted=()=>{this.handleRadius()},this.onAttrModified=()=>{this.handleRadius()},KB=this,this.isMutationObserved=!0,this.addEventListener(ea.MOUNTED,this.onMounted),this.addEventListener(ea.ATTR_MODIFIED,this.onAttrModified)}handleRadius(){const{radius:e,clipPath:t,width:n=0,height:i=0}=this.attributes;if(e&&n&&i){const[r,o]=this.getBounds().min,s={x:r,y:o,radius:e,width:n,height:i};if(t)Object.assign(this.parsedStyle.clipPath.style,s);else{const a=new kp({style:s});this.style.clipPath=a}}else t&&(this.style.clipPath=null)}},Q7e=new WeakMap,KB=null,DZe=e=>{if(KB&&Q$i(KB).includes(e)){const t=Q7e.get(e);t?t.includes(KB)||t.push(KB):Q7e.set(e,[KB])}},TZe=e=>{const t=Q7e.get(e);t&&t.forEach(n=>n.handleRadius())},pwn=class extends RF{constructor(e){super(e)}isImage(){const{src:e}=this.attributes;return!!e}getIconStyle(e=this.attributes){const{width:t=0,height:n=0}=e,i=this.getGraphicStyle(e);return this.isImage()?Object.assign({x:-t/2,y:-n/2},i):Object.assign({textBaseline:"middle",textAlign:"center"},i)}render(e=this.attributes,t=this){this.upsert("icon",this.isImage()?AZe:tP,this.getIconStyle(e),t)}},gwn=class extends RF{get context(){return this.config.context}get parsedAttributes(){return this.attributes}onframe(){}animate(e,t){const n=super.animate(e,t);return n&&(n.onframe=()=>this.onframe(),n.finished.then(()=>this.onframe())),n}},ure=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},MT=class mwn extends gwn{constructor(t){super(Lp({style:mwn.defaultStyleProps},t)),this.type="node"}getSize(t=this.attributes){const{size:n}=t;return tb(n)}getKeyStyle(t){const n=this.getGraphicStyle(t);return Object.assign(swn(n,["label","halo","icon","badge","port"]))}getLabelStyle(t){if(t.label===!1||!t.labelText)return!1;const n=iu(this.getGraphicStyle(t),"label"),{placement:i,maxWidth:r,offsetX:o,offsetY:s}=n,a=ure(n,["placement","maxWidth","offsetX","offsetY"]),l=this.getShape("key").getLocalBounds();return Object.assign(zRt(l,i,o,s),{wordWrapWidth:cwn(l,r)},a)}getHaloStyle(t){if(t.halo===!1)return!1;const n=this.getKeyStyle(t),{fill:i}=n,r=ure(n,["fill"]),o=iu(this.getGraphicStyle(t),"halo");return Object.assign(Object.assign(Object.assign({},r),{stroke:i}),o)}getIconStyle(t){if(t.icon===!1||!t.iconText&&!t.iconSrc)return!1;const n=iu(this.getGraphicStyle(t),"icon");return Object.assign(B$i(t.size,n),n)}getBadgesStyle(t){var n;const i=Y7e(this.shapeMap,"badge-"),r={};if(Object.keys(i).forEach(d=>{r[d]=!1}),t.badge===!1||!(!((n=t.badges)===null||n===void 0)&&n.length))return r;const{badges:o=[],badgePalette:s,opacity:a=1}=t,l=ure(t,["badges","badgePalette","opacity"]),c=awn(s),u=iu(this.getGraphicStyle(l),"badge");return o.forEach((d,h)=>{r[h]=Object.assign(Object.assign({backgroundFill:c?c[h%c?.length]:void 0,opacity:a},u),this.getBadgeStyle(d))}),r}getBadgeStyle(t){const n=this.getShape("key"),{placement:i="top",offsetX:r,offsetY:o}=t,s=ure(t,["placement","offsetX","offsetY"]),a=zRt(n.getLocalBounds(),i,r,o,!0);return Object.assign(Object.assign({},a),s)}getPortsStyle(t){var n;const i=this.getPorts(),r={};if(Object.keys(i).forEach(a=>{r[a]=!1}),t.port===!1||!(!((n=t.ports)===null||n===void 0)&&n.length))return r;const o=iu(this.getGraphicStyle(t),"port"),{ports:s=[]}=t;return s.forEach((a,l)=>{const c=a.key||l,u=Object.assign(Object.assign({},o),a);if(a1n(u))r[c]=!1;else{const[d,h]=this.getPortXY(t,a);r[c]=Object.assign({transform:[["translate",d,h]]},u)}}),r}getPortXY(t,n){const{placement:i="left"}=n,r=this.getShape("key");return PZe(Z$i(this.context,r),i)}getPorts(){return Y7e(this.shapeMap,"port-")}getCenter(){return this.getShape("key").getBounds().center}getIntersectPoint(t,n=!1){const i=this.getShape("key").getBounds();return E$i(t,i,n)}drawHaloShape(t,n){const i=this.getHaloStyle(t),r=this.getShape("key");this.upsert("halo",r.constructor,i,n)}drawIconShape(t,n){const i=this.getIconStyle(t);this.upsert("icon",pwn,i,n),DZe(this)}drawBadgeShapes(t,n){const i=this.getBadgesStyle(t);Object.keys(i).forEach(r=>{const o=i[r];this.upsert(`badge-${r}`,W0e,o,n)})}drawPortShapes(t,n){const i=this.getPortsStyle(t);Object.keys(i).forEach(r=>{const o=i[r],s=`port-${r}`;this.upsert(s,NC,o,n)})}drawLabelShape(t,n){const i=this.getLabelStyle(t);this.upsert("label",oN,i,n)}_drawKeyShape(t,n){return this.drawKeyShape(t,n)}render(t=this.parsedAttributes,n=this){this._drawKeyShape(t,n),this.getShape("key")&&(this.drawHaloShape(t,n),this.drawIconShape(t,n),this.drawBadgeShapes(t,n),this.drawLabelShape(t,n),this.drawPortShapes(t,n))}update(t){super.update(t),t&&("x"in t||"y"in t||"z"in t)&&TZe(this)}onframe(){this.drawBadgeShapes(this.parsedAttributes,this),this.drawLabelShape(this.parsedAttributes,this)}};MT.defaultStyleProps={x:0,y:0,size:32,droppable:!0,draggable:!0,port:!0,ports:[],portZIndex:2,portLinkToCenter:!1,badge:!0,badges:[],badgeZIndex:3,halo:!1,haloDroppable:!1,haloLineDash:0,haloLineWidth:12,haloStrokeOpacity:.25,haloPointerEvents:"none",haloZIndex:-1,icon:!0,iconZIndex:1,label:!0,labelIsBillboard:!0,labelMaxWidth:"200%",labelPlacement:"bottom",labelWordWrap:!1,labelZIndex:0};function Z$i(e,t){if(!e)return t.getLocalBounds();const n=e.canvas.getLayer(),i=t.cloneNode();P2(i,"hidden"),n.appendChild(i);const r=i.getLocalBounds();return i.destroy(),r}var FF=class vwn extends MT{constructor(t){super(Lp({style:vwn.defaultStyleProps},t))}drawKeyShape(t,n){return this.upsert("key",NC,this.getKeyStyle(t),n)}getKeyStyle(t){const n=super.getKeyStyle(t);return Object.assign(Object.assign({},n),{r:Math.min(...this.getSize(t))/2})}getIconStyle(t){const n=super.getIconStyle(t),{r:i}=this.getShape("key").attributes,r=i*2*tT;return n?Object.assign({width:r,height:r},n):!1}getIntersectPoint(t,n=!1){const i=this.getShape("key").getBounds();return H0e(t,i,n)}};FF.defaultStyleProps={size:32};var U0e=class extends MT{constructor(e){super(e)}get parsedAttributes(){return this.attributes}drawKeyShape(e,t){return this.upsert("key",OF,this.getKeyStyle(e),t)}getKeyStyle(e){const t=super.getKeyStyle(e);return Object.assign(Object.assign({},t),{points:this.getPoints(e)})}getIntersectPoint(e,t=!1){var n,i;const{points:r}=this.getShape("key").attributes,o=[+(((n=this.attributes)===null||n===void 0?void 0:n.x)||0),+(((i=this.attributes)===null||i===void 0?void 0:i.y)||0)];return J_n(e,o,r,!0,t).point}},X$i=class extends U0e{constructor(e){super(e)}getPoints(e){const[t,n]=this.getSize(e);return BGi(t,n)}},SRt=on(Pi()),J$i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},ywn=class bwn extends FF{constructor(t){super(Lp({style:bwn.defaultStyleProps},t))}parseOuterR(){const{size:t}=this.parsedAttributes;return Math.min(...tb(t))/2}parseInnerR(){const{innerR:t}=this.parsedAttributes;return(0,SRt.isString)(t)?parseInt(t)/100*this.parseOuterR():t}drawDonutShape(t,n){const{donuts:i}=t;if(!i?.length)return;const r=i.map(d=>(0,SRt.isNumber)(d)?{value:d}:d),o=iu(this.getGraphicStyle(t),"donut"),s=awn(t.donutPalette);if(!s)return;const a=r.reduce((d,h)=>{var f;return d+((f=h.value)!==null&&f!==void 0?f:0)},0),l=this.parseOuterR(),c=this.parseInnerR();let u=0;r.forEach((d,h)=>{const{value:f=0,color:p=s[h%s.length]}=d,g=J$i(d,["value","color"]),m=(a===0?1/r.length:f/a)*360;this.upsert(`round${h}`,$y,Object.assign(Object.assign(Object.assign({},o),{d:nqi(l,c,u,u+m),fill:p}),g),n),u+=m})}render(t,n=this){super.render(t,n),this.drawDonutShape(t,n)}};ywn.defaultStyleProps={innerR:"50%",donuts:[],donutPalette:"tableau"};var dre=(e,t,n,i)=>[e+Math.sin(i)*n,t-Math.cos(i)*n],eqi=(e,t,n,i)=>i<=0||n<=i?[["M",e-n,t],["A",n,n,0,1,1,e+n,t],["A",n,n,0,1,1,e-n,t],["Z"]]:[["M",e-n,t],["A",n,n,0,1,1,e+n,t],["A",n,n,0,1,1,e-n,t],["Z"],["M",e+i,t],["A",i,i,0,1,0,e-i,t],["A",i,i,0,1,0,e+i,t],["Z"]],tqi=(e,t,n,i,r,o)=>{const[s,a]=[r/360*2*Math.PI,o/360*2*Math.PI],l=[dre(e,t,i,s),dre(e,t,n,s),dre(e,t,n,a),dre(e,t,i,a)],c=a-s>Math.PI?1:0;return[["M",l[0][0],l[0][1]],["L",l[1][0],l[1][1]],["A",n,n,0,c,1,l[2][0],l[2][1]],["L",l[3][0],l[3][1]],["A",i,i,0,c,0,l[0][0],l[0][1]],["Z"]]},nqi=(e=0,t=0,n,i)=>{const[r,o]=[0,0];return Math.abs(n-i)%360<1e-6?eqi(r,o,e,t):tqi(r,o,e,t,n,i)},_wn=class wwn extends MT{constructor(t){super(Lp({style:wwn.defaultStyleProps},t))}drawKeyShape(t,n){return this.upsert("key",JQ,this.getKeyStyle(t),n)}getKeyStyle(t){const n=super.getKeyStyle(t),[i,r]=this.getSize(t);return Object.assign(Object.assign({},n),{rx:i/2,ry:r/2})}getIconStyle(t){const n=super.getIconStyle(t),{rx:i,ry:r}=this.getShape("key").attributes,o=Math.min(+i,+r)*2*tT;return n?Object.assign({width:o,height:o},n):!1}getIntersectPoint(t,n=!1){const i=this.getShape("key").getBounds();return H0e(t,i,n)}};_wn.defaultStyleProps={size:[45,35]};var iqi=class extends U0e{constructor(e){super(e)}getOuterR(e){return e.outerR||Math.min(...this.getSize(e))/2}getPoints(e){return zGi(this.getOuterR(e))}getIconStyle(e){const t=super.getIconStyle(e),n=this.getOuterR(e)*tT;return t?Object.assign({width:n,height:n},t):!1}},rqi=on(Pi());function oqi(e,t){var n=t.cx,i=n===void 0?0:n,r=t.cy,o=r===void 0?0:r,s=t.r;e.arc(i,o,s,0,Math.PI*2,!1)}function sqi(e,t){var n=t.cx,i=n===void 0?0:n,r=t.cy,o=r===void 0?0:r,s=t.rx,a=t.ry;if(e.ellipse)e.ellipse(i,o,s,a,0,0,Math.PI*2,!1);else{var l=s>a?s:a,c=s>a?1:s/a,u=s>a?a/s:1;e.save(),e.scale(c,u),e.arc(i,o,l,0,Math.PI*2)}}function aqi(e,t){var n=t.x1,i=t.y1,r=t.x2,o=t.y2,s=t.markerStart,a=t.markerEnd,l=t.markerStartOffset,c=t.markerEndOffset,u=0,d=0,h=0,f=0,p=0,g,m;s&&sl(s)&&l&&(g=r-n,m=o-i,p=Math.atan2(m,g),u=Math.cos(p)*(l||0),d=Math.sin(p)*(l||0)),a&&sl(a)&&c&&(g=n-r,m=i-o,p=Math.atan2(m,g),h=Math.cos(p)*(c||0),f=Math.sin(p)*(c||0)),e.moveTo(n+u,i+d),e.lineTo(r+h,o+f)}function lqi(e,t){var n=t.markerStart,i=t.markerEnd,r=t.markerStartOffset,o=t.markerEndOffset,s=t.d,a=s.absolutePath,l=s.segments,c=0,u=0,d=0,h=0,f=0,p,g;if(n&&sl(n)&&r){var m=n.parentNode.getStartTangent(),v=As(m,2),y=v[0],b=v[1];p=y[0]-b[0],g=y[1]-b[1],f=Math.atan2(g,p),c=Math.cos(f)*(r||0),u=Math.sin(f)*(r||0)}if(i&&sl(i)&&o){var w=i.parentNode.getEndTangent(),E=As(w,2),A=E[0],D=E[1];p=A[0]-D[0],g=A[1]-D[1],f=Math.atan2(g,p),d=Math.cos(f)*(o||0),h=Math.sin(f)*(o||0)}for(var T=0;T<a.length;T++){var M=a[T],P=M[0],F=a[T+1],N=T===0&&(c!==0||u!==0),j=(T===a.length-1||F&&(F[0]==="M"||F[0]==="Z"))&&d!==0&&h!==0,W=N?[c,u]:[0,0],J=As(W,2),ee=J[0],Q=J[1],H=j?[d,h]:[0,0],q=As(H,2),le=q[0],Y=q[1];switch(P){case"M":e.moveTo(M[1]+ee,M[2]+Q);break;case"L":e.lineTo(M[1]+le,M[2]+Y);break;case"Q":e.quadraticCurveTo(M[1],M[2],M[3]+le,M[4]+Y);break;case"C":e.bezierCurveTo(M[1],M[2],M[3],M[4],M[5]+le,M[6]+Y);break;case"A":{var G=l[T].arcParams,pe=G.cx,U=G.cy,K=G.rx,ie=G.ry,ce=G.startAngle,de=G.endAngle,oe=G.xRotation,me=G.sweepFlag;if(e.ellipse)e.ellipse(pe,U,K,ie,oe,ce,de,!!(1-me));else{var Ce=K>ie?K:ie,Se=K>ie?1:K/ie,De=K>ie?ie/K:1;e.translate(pe,U),e.rotate(oe),e.scale(Se,De),e.arc(0,0,Ce,ce,de,!!(1-me)),e.scale(1/Se,1/De),e.rotate(-oe),e.translate(-pe,-U)}j&&e.lineTo(M[6]+d,M[7]+h);break}case"Z":e.closePath();break}}}function cqi(e,t){var n=t.markerStart,i=t.markerEnd,r=t.markerStartOffset,o=t.markerEndOffset,s=t.points.points,a=s.length,l=s[0][0],c=s[0][1],u=s[a-1][0],d=s[a-1][1],h=0,f=0,p=0,g=0,m=0,v,y;n&&sl(n)&&r&&(v=s[1][0]-s[0][0],y=s[1][1]-s[0][1],m=Math.atan2(y,v),h=Math.cos(m)*(r||0),f=Math.sin(m)*(r||0)),i&&sl(i)&&o&&(v=s[a-1][0]-s[0][0],y=s[a-1][1]-s[0][1],m=Math.atan2(y,v),p=Math.cos(m)*(o||0),g=Math.sin(m)*(o||0)),e.moveTo(l+(h||p),c+(f||g));for(var b=1;b<a-1;b++){var w=s[b];e.lineTo(w[0],w[1])}e.lineTo(u,d)}function uqi(e,t){var n=t.markerStart,i=t.markerEnd,r=t.markerStartOffset,o=t.markerEndOffset,s=t.points.points,a=s.length,l=s[0][0],c=s[0][1],u=s[a-1][0],d=s[a-1][1],h=0,f=0,p=0,g=0,m=0,v,y;n&&sl(n)&&r&&(v=s[1][0]-s[0][0],y=s[1][1]-s[0][1],m=Math.atan2(y,v),h=Math.cos(m)*(r||0),f=Math.sin(m)*(r||0)),i&&sl(i)&&o&&(v=s[a-2][0]-s[a-1][0],y=s[a-2][1]-s[a-1][1],m=Math.atan2(y,v),p=Math.cos(m)*(o||0),g=Math.sin(m)*(o||0)),e.moveTo(l+h,c+f);for(var b=1;b<a-1;b++){var w=s[b];e.lineTo(w[0],w[1])}e.lineTo(u+p,d+g)}function dqi(e,t){var n=t.x,i=n===void 0?0:n,r=t.y,o=r===void 0?0:r,s=t.radius,a=t.width,l=t.height,c=a,u=l,d=s&&s.some(function(E){return E!==0});if(!d)e.rect(i,o,c,u);else{var h=a>0?1:-1,f=l>0?1:-1,p=h+f===0,g=s.map(function(E){return(0,rqi.clamp)(E,0,Math.min(Math.abs(c)/2,Math.abs(u)/2))}),m=As(g,4),v=m[0],y=m[1],b=m[2],w=m[3];e.moveTo(h*v+i,o),e.lineTo(c-h*y+i,o),y!==0&&e.arc(c-h*y+i,f*y+o,y,-f*Math.PI/2,h>0?0:Math.PI,p),e.lineTo(c+i,u-f*b+o),b!==0&&e.arc(c-h*b+i,u-f*b+o,b,h>0?0:Math.PI,f>0?Math.PI/2:1.5*Math.PI,p),e.lineTo(h*w+i,u+o),w!==0&&e.arc(h*w+i,u-f*w+o,w,f>0?Math.PI/2:-Math.PI/2,h>0?Math.PI:0,p),e.lineTo(i,f*v+o),v!==0&&e.arc(h*v+i,f*v+o,v,h>0?Math.PI:0,f>0?Math.PI*1.5:Math.PI/2,p)}}var hqi=(function(e){function t(){var n;_i(this,t);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return n=Hs(this,t,[].concat(r)),n.name="canvas-path-generator",n}return Ws(t,e),wi(t,[{key:"init",value:function(){var i,r=(i={},_r(_r(_r(_r(_r(_r(_r(_r(_r(_r(i,qn.CIRCLE,oqi),qn.ELLIPSE,sqi),qn.RECT,dqi),qn.LINE,aqi),qn.POLYLINE,uqi),qn.POLYGON,cqi),qn.PATH,lqi),qn.TEXT,void 0),qn.GROUP,void 0),qn.IMAGE,void 0),_r(_r(_r(i,qn.HTML,void 0),qn.MESH,void 0),qn.FRAGMENT,void 0));this.context.pathGeneratorFactory=r}},{key:"destroy",value:function(){delete this.context.pathGeneratorFactory}}])})(eP),YI=on(vN()),Cwn=on(Pi()),fqi=YI.vec3.create(),pqi=YI.vec3.create(),gqi=YI.vec3.create(),mqi=YI.mat4.create(),Swn=(function(){function e(){var t=this;_i(this,e),this.isHit=function(n,i,r,o){var s=t.context.pointInPathPickerFactory[n.nodeName];if(s){var a=YI.mat4.invert(mqi,r),l=YI.vec3.transformMat4(pqi,YI.vec3.set(gqi,i[0],i[1],0),a);if(s(n,new rg(l[0],l[1]),o,t.isPointInPath,t.context,t.runtime))return!0}return!1},this.isPointInPath=function(n,i){var r=t.runtime.offscreenCanvasCreator.getOrCreateContext(t.context.config.offscreenCanvas),o=t.context.pathGeneratorFactory[n.nodeName];return o&&(r.beginPath(),o(r,n.parsedStyle),r.closePath()),r.isPointInPath(i.x,i.y)}}return wi(e,[{key:"apply",value:function(n,i){var r,o=this,s=n.renderingService,a=n.renderingContext;this.context=n,this.runtime=i;var l=(r=a.root)===null||r===void 0?void 0:r.ownerDocument;s.hooks.pick.tapPromise(e.tag,(function(){var c=nN(wp().mark(function u(d){return wp().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",o.pick(l,d));case 1:case"end":return h.stop()}},u)}));return function(u){return c.apply(this,arguments)}})()),s.hooks.pickSync.tap(e.tag,function(c){return o.pick(l,c)})}},{key:"pick",value:function(n,i){var r=i.topmost,o=i.position,s=o.x,a=o.y,l=YI.vec3.set(fqi,s,a,0),c=n.elementsFromBBox(l[0],l[1],l[0],l[1]),u=[],d=wO(c),h;try{for(d.s();!(h=d.n()).done;){var f=h.value,p=f.getWorldTransform(),g=this.isHit(f,l,p,!1);if(g){var m=c_n(f);if(m){var v=m.parsedStyle.clipPath,y=this.isHit(v,l,v.getWorldTransform(),!0);if(y){if(r)return i.picked=[f],i;u.push(f)}}else{if(r)return i.picked=[f],i;u.push(f)}}}}catch(b){d.e(b)}finally{d.f()}return i.picked=u,i}}])})();Swn.tag="CanvasPicker";function vqi(e,t,n){var i=e.parsedStyle,r=i.cx,o=r===void 0?0:r,s=i.cy,a=s===void 0?0:s,l=i.r,c=i.fill,u=i.stroke,d=i.lineWidth,h=d===void 0?1:d,f=i.increasedLineWidthForHitTesting,p=f===void 0?0:f,g=i.pointerEvents,m=g===void 0?"auto":g,v=(h+p)/2,y=ID(o,a,t.x,t.y),b=PF(m,c,u),w=As(b,2),E=w[0],A=w[1];return E&&A||n?y<=l+v:E?y<=l:A?y>=l-v&&y<=l+v:!1}function hre(e,t,n,i){return e/(n*n)+t/(i*i)}function yqi(e,t,n){var i=e.parsedStyle,r=i.cx,o=r===void 0?0:r,s=i.cy,a=s===void 0?0:s,l=i.rx,c=i.ry,u=i.fill,d=i.stroke,h=i.lineWidth,f=h===void 0?1:h,p=i.increasedLineWidthForHitTesting,g=p===void 0?0:p,m=i.pointerEvents,v=m===void 0?"auto":m,y=t.x,b=t.y,w=PF(v,u,d),E=As(w,2),A=E[0],D=E[1],T=(f+g)/2,M=(y-o)*(y-o),P=(b-a)*(b-a);return A&&D||n?hre(M,P,l+T,c+T)<=1:A?hre(M,P,l,c)<=1:D?hre(M,P,l-T,c-T)>=1&&hre(M,P,l+T,c+T)<=1:!1}function JO(e,t,n,i,r,o){return r>=e&&r<=e+n&&o>=t&&o<=t+i}function bqi(e,t,n,i,r,o,s){var a=r/2;return JO(e-a,t-a,n,r,o,s)||JO(e+n-a,t-a,r,i,o,s)||JO(e+a,t+i-a,n,r,o,s)||JO(e-a,t+a,r,i,o,s)}function fre(e,t,n,i,r,o,s,a){var l=(Math.atan2(a-t,s-e)+Math.PI*2)%(Math.PI*2),c={x:e+n*Math.cos(l),y:t+n*Math.sin(l)};return ID(c.x,c.y,s,a)<=o/2}function QI(e,t,n,i,r,o,s){var a=Math.min(e,n),l=Math.max(e,n),c=Math.min(t,i),u=Math.max(t,i),d=r/2;return o>=a-d&&o<=l+d&&s>=c-d&&s<=u+d?Hzi(e,t,n,i,o,s)<=r/2:!1}function xwn(e,t,n,i,r){var o=e.length;if(o<2)return!1;for(var s=0;s<o-1;s++){var a=e[s][0],l=e[s][1],c=e[s+1][0],u=e[s+1][1];if(QI(a,l,c,u,t,n,i))return!0}if(r){var d=e[0],h=e[o-1];if(QI(d[0],d[1],h[0],h[1],t,n,i))return!0}return!1}var _qi=1e-6;function DMe(e){return Math.abs(e)<_qi?0:e<0?-1:1}function wqi(e,t,n){return(n[0]-e[0])*(t[1]-e[1])===(t[0]-e[0])*(n[1]-e[1])&&Math.min(e[0],t[0])<=n[0]&&n[0]<=Math.max(e[0],t[0])&&Math.min(e[1],t[1])<=n[1]&&n[1]<=Math.max(e[1],t[1])}function Ewn(e,t,n){var i=!1,r=e.length;if(r<=2)return!1;for(var o=0;o<r;o++){var s=e[o],a=e[(o+1)%r];if(wqi(s,a,[t,n]))return!0;DMe(s[1]-n)>0!=DMe(a[1]-n)>0&&DMe(t-(n-s[1])*(s[0]-a[0])/(s[1]-a[1])-s[0])<0&&(i=!i)}return i}function xRt(e,t,n){for(var i=!1,r=0;r<e.length;r++){var o=e[r];if(i=Ewn(o,t,n),i)break}return i}function Cqi(e,t,n){var i=e.parsedStyle,r=i.x1,o=i.y1,s=i.x2,a=i.y2,l=i.lineWidth,c=l===void 0?1:l,u=i.increasedLineWidthForHitTesting,d=u===void 0?0:u,h=i.pointerEvents,f=h===void 0?"auto":h,p=i.fill,g=i.stroke,m=PF(f,p,g),v=As(m,2),y=v[1];return!y&&!n||!c?!1:QI(r,o,s,a,c+d,t.x,t.y)}function Sqi(e,t,n,i,r){for(var o=!1,s=t/2,a=0;a<e.length;a++){var l=e[a],c=l.currentPoint,u=l.params,d=l.prePoint,h=l.box;if(!(h&&!JO(h.x-s,h.y-s,h.width+t,h.height+t,n,i)))switch(l.command){case"L":case"Z":if(o=QI(d[0],d[1],c[0],c[1],t,n,i),o)return!0;break;case"Q":var f=Yzi(d[0],d[1],u[1],u[2],u[3],u[4],n,i);if(o=f<=t/2,o)return!0;break;case"C":var p=wOt(d[0],d[1],u[1],u[2],u[3],u[4],u[5],u[6],n,i,r);if(o=p<=t/2,o)return!0;break;case"A":l.cubicParams||(l.cubicParams=(0,Cwn.arcToCubic)(d[0],d[1],u[1],u[2],u[3],u[4],u[5],u[6],u[7],void 0));for(var g=l.cubicParams,m=d,v=0;v<g.length;v+=6){var y=wOt(m[0],m[1],g[v],g[v+1],g[v+2],g[v+3],g[v+4],g[v+5],n,i,r);if(m=[g[v+4],g[v+5]],o=y<=t/2,o)return!0}break}}return o}function xqi(e,t,n,i,r,o){var s=e.parsedStyle,a=s.lineWidth,l=a===void 0?1:a,c=s.increasedLineWidthForHitTesting,u=c===void 0?0:c,d=s.stroke,h=s.fill,f=s.d,p=s.pointerEvents,g=p===void 0?"auto":p,m=f.segments,v=f.hasArc,y=f.polylines,b=f.polygons,w=PF(g,b?.length&&h,d),E=As(w,2),A=E[0],D=E[1],T=j7e(e),M=!1;return A||n?(v?M=i(e,t):M=xRt(b,t.x,t.y)||xRt(y,t.x,t.y),M):((D||n)&&(M=Sqi(m,l+u,t.x,t.y,T)),M)}function Eqi(e,t,n){var i=e.parsedStyle,r=i.stroke,o=i.fill,s=i.lineWidth,a=s===void 0?1:s,l=i.increasedLineWidthForHitTesting,c=l===void 0?0:l,u=i.points,d=i.pointerEvents,h=d===void 0?"auto":d,f=PF(h,o,r),p=As(f,2),g=p[0],m=p[1],v=!1;return(m||n)&&(v=xwn(u.points,a+c,t.x,t.y,!0)),!v&&(g||n)&&(v=Ewn(u.points,t.x,t.y)),v}function Aqi(e,t,n){var i=e.parsedStyle,r=i.lineWidth,o=r===void 0?1:r,s=i.increasedLineWidthForHitTesting,a=s===void 0?0:s,l=i.points,c=i.pointerEvents,u=c===void 0?"auto":c,d=i.fill,h=i.stroke,f=PF(u,d,h),p=As(f,2),g=p[1];return!g&&!n||!o?!1:xwn(l.points,o+a,t.x,t.y,!1)}function Dqi(e,t,n,i,r){var o=e.parsedStyle,s=o.radius,a=o.fill,l=o.stroke,c=o.lineWidth,u=c===void 0?1:c,d=o.increasedLineWidthForHitTesting,h=d===void 0?0:d,f=o.x,p=f===void 0?0:f,g=o.y,m=g===void 0?0:g,v=o.width,y=o.height,b=o.pointerEvents,w=b===void 0?"auto":b,E=PF(w,a,l),A=As(E,2),D=A[0],T=A[1],M=s&&s.some(function(j){return j!==0}),P=u+h;if(M){var N=!1;return(T||n)&&(N=Tqi(p,m,v,y,s.map(function(j){return(0,Cwn.clamp)(j,0,Math.min(Math.abs(v)/2,Math.abs(y)/2))}),P,t.x,t.y)),!N&&(D||n)&&(N=i(e,t)),N}else{var F=P/2;if(D&&T||n)return JO(p-F,m-F,v+F,y+F,t.x,t.y);if(D)return JO(p,m,v,y,t.x,t.y);if(T)return bqi(p,m,v,y,P,t.x,t.y)}return!1}function Tqi(e,t,n,i,r,o,s,a){var l=As(r,4),c=l[0],u=l[1],d=l[2],h=l[3];return QI(e+c,t,e+n-u,t,o,s,a)||QI(e+n,t+u,e+n,t+i-d,o,s,a)||QI(e+n-d,t+i,e+h,t+i,o,s,a)||QI(e,t+i-h,e,t+c,o,s,a)||fre(e+n-u,t+u,u,1.5*Math.PI,2*Math.PI,o,s,a)||fre(e+n-d,t+i-d,d,0,.5*Math.PI,o,s,a)||fre(e+h,t+i-h,h,.5*Math.PI,Math.PI,o,s,a)||fre(e+c,t+c,c,Math.PI,1.5*Math.PI,o,s,a)}function kqi(e,t,n,i,r,o){var s=e.parsedStyle,a=s.pointerEvents,l=a===void 0?"auto":a,c=s.x,u=c===void 0?0:c,d=s.y,h=d===void 0?0:d,f=s.width,p=s.height;if(l==="non-transparent-pixel"){var g=r.config.offscreenCanvas,m=o.offscreenCanvasCreator.getOrCreateCanvas(g),v=o.offscreenCanvasCreator.getOrCreateContext(g,{willReadFrequently:!0});m.width=f,m.height=p,r.defaultStyleRendererFactory[qn.IMAGE].render(v,Ps(Ps({},e.parsedStyle),{},{x:0,y:0}),e,void 0,void 0,void 0);var y=v.getImageData(t.x-u,t.y-h,1,1).data;return y.every(function(b){return b!==0})}return!0}function Iqi(e,t,n,i){var r=e.getGeometryBounds();return t.x>=r.min[0]&&t.y>=r.min[1]&&t.x<=r.max[0]&&t.y<=r.max[1]}var Lqi=(function(e){function t(){var n;_i(this,t);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return n=Hs(this,t,[].concat(r)),n.name="canvas-picker",n}return Ws(t,e),wi(t,[{key:"init",value:function(){var i,r=(i={},_r(_r(_r(_r(_r(_r(_r(_r(_r(_r(i,qn.CIRCLE,vqi),qn.ELLIPSE,yqi),qn.RECT,Dqi),qn.LINE,Cqi),qn.POLYLINE,Aqi),qn.POLYGON,Eqi),qn.PATH,xqi),qn.TEXT,Iqi),qn.GROUP,null),qn.IMAGE,kqi),_r(_r(i,qn.HTML,null),qn.MESH,null));this.context.pointInPathPickerFactory=r,this.addRenderingPlugin(new Swn)}},{key:"destroy",value:function(){delete this.context.pointInPathPickerFactory,this.removeAllRenderingPlugins()}}])})(eP);function FS(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Nqi=0;function Pqi(e){return"__private_"+Nqi+++"_"+e}var fc=on(vN()),Mu=on(Pi()),oO=on(Pi()),TMe=on(vN()),Mqi=(function(){function e(){_i(this,e),this.cacheStore=new Map}return wi(e,[{key:"onRefAdded",value:function(n){}},{key:"has",value:function(n){return this.cacheStore.has(n)}},{key:"put",value:function(n,i,r){return this.cacheStore.has(n)?!1:(this.cacheStore.set(n,{value:i,counter:new Set([r.entity])}),this.onRefAdded(r),!0)}},{key:"get",value:function(n,i){var r=this.cacheStore.get(n);return r?(r.counter.has(i.entity)||(r.counter.add(i.entity),this.onRefAdded(i)),r.value):null}},{key:"update",value:function(n,i,r){var o=this.cacheStore.get(n);return o?(o.value=Ps(Ps({},o.value),i),o.counter.has(r.entity)||(o.counter.add(r.entity),this.onRefAdded(r)),!0):!1}},{key:"release",value:function(n,i){var r=this.cacheStore.get(n);return r?(r.counter.delete(i.entity),r.counter.size<=0&&this.cacheStore.delete(n),!0):!1}},{key:"releaseRef",value:function(n){var i=this;Array.from(this.cacheStore.keys()).forEach(function(r){i.release(r,n)})}},{key:"getSize",value:function(){return this.cacheStore.size}},{key:"clear",value:function(){this.cacheStore.clear()}}])})(),kMe=[],IMe=[],Z7e=(function(){function e(){_i(this,e)}return wi(e,null,[{key:"stop",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.api;e.rafId&&(n.cancelAnimationFrame(e.rafId),e.rafId=null)}},{key:"executeTask",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.api;kMe.length<=0&&IMe.length<=0||(IMe.forEach(function(i){return i()}),IMe=kMe.splice(0,e.TASK_NUM_PER_FRAME),e.rafId=n.requestAnimationFrame(function(){e.executeTask(n)}))}},{key:"sliceImage",value:function(n,i,r,o){for(var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:e.api,l=n.naturalWidth||n.width,c=n.naturalHeight||n.height,u=i-s,d=r-s,h=Math.ceil(l/u),f=Math.ceil(c/d),p={tileSize:[i,r],gridSize:[f,h],tiles:Array(f).fill(null).map(function(){return Array(h).fill(null)})},g=function(y){for(var b=function(A){kMe.push(function(){var D=A*u,T=y*d,M=[Math.min(i,l-D),Math.min(r,c-T)],P=M[0],F=M[1],N=a.createCanvas();N.width=i,N.height=r;var j=N.getContext("2d");j.drawImage(n,D,T,P,F,0,0,P,F),p.tiles[y][A]={x:D,y:T,tileX:A,tileY:y,data:N},o()})},w=0;w<h;w++)b(w)},m=0;m<f;m++)g(m);return e.stop(),e.executeTask(),p}}])})();Z7e.TASK_NUM_PER_FRAME=10;var yy=new Mqi;yy.onRefAdded=function(t){var n=this;t.addEventListener(ea.DESTROY,function(){n.releaseRef(t)},{once:!0})};var kZe=(function(){function e(t,n){_i(this,e),this.gradientCache={},this.patternCache={},this.context=t,this.runtime=n}return wi(e,[{key:"getImageSync",value:function(n,i,r){var o=(0,oO.isString)(n)?n:n.src;if(yy.has(o)){var s=yy.get(o,i);if(s.img.complete)return r?.(s),s}return this.getOrCreateImage(n,i).then(function(a){r?.(a)}).catch(function(a){console.error(a)}),null}},{key:"getOrCreateImage",value:function(n,i){var r=this,o=(0,oO.isString)(n)?n:n.src;if(!(0,oO.isString)(n)&&!yy.has(o)){var s={img:n,size:[n.naturalWidth||n.width,n.naturalHeight||n.height],tileSize:pre(n)};yy.put(o,s,i)}if(yy.has(o)){var a=yy.get(o,i);return a.img.complete?Promise.resolve(a):new Promise(function(l,c){a.img.addEventListener("load",function(){a.size=[a.img.naturalWidth||a.img.width,a.img.naturalHeight||a.img.height],a.tileSize=pre(a.img),l(a)}),a.img.addEventListener("error",function(u){c(u)})})}return new Promise(function(l,c){var u=r.context.config.createImage();if(u){var d={img:u,size:[0,0],tileSize:pre(u)};yy.put(o,d,i),u.onload=function(){d.size=[u.naturalWidth||u.width,u.naturalHeight||u.height],d.tileSize=pre(d.img),l(d)},u.onerror=function(h){c(h)},u.crossOrigin="Anonymous",u.src=o}})}},{key:"createDownSampledImage",value:(function(){var t=nN(wp().mark(function i(r,o){var s,a,l,c,u,d,h,f,p,g,m,v,y,b;return wp().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=1,this.getOrCreateImage(r,o);case 1:if(s=w.sent,!(typeof s.downSamplingRate<"u")){w.next=2;break}return w.abrupt("return",s);case 2:if(a=this.context.config.enableLargeImageOptimization,l=typeof a=="boolean"?{}:a,c=l.maxDownSampledImageSize,u=c===void 0?2048:c,d=l.downSamplingRateThreshold,h=d===void 0?.5:d,f=this.runtime.globalThis.createImageBitmap,p=As(s.size,2),g=p[0],m=p[1],v=s.img,y=Math.min((u+u)/(g+m),Math.max(.01,Math.min(h,.5))),b=Ps(Ps({},s),{},{downSamplingRate:y}),yy.update(s.img.src,b,o),!f){w.next=7;break}return w.prev=3,w.next=4,f(s.img,{resizeWidth:g*y,resizeHeight:m*y});case 4:v=w.sent,w.next=6;break;case 5:w.prev=5,w.catch(3),y=1;case 6:w.next=8;break;case 7:y=1;case 8:return b=Ps(Ps({},this.getImageSync(r,o)),{},{downSampled:v,downSamplingRate:y}),yy.update(s.img.src,b,o),w.abrupt("return",b);case 9:case"end":return w.stop()}},i,this,[[3,5]])}));function n(i,r){return t.apply(this,arguments)}return n})()},{key:"createImageTiles",value:(function(){var t=nN(wp().mark(function i(r,o,s,a){var l,c,u,d,h;return wp().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=1,this.getOrCreateImage(r,a);case 1:return l=f.sent,c=a.ownerDocument.defaultView,u=c.requestAnimationFrame,d=c.cancelAnimationFrame,Z7e.api={requestAnimationFrame:u,cancelAnimationFrame:d,createCanvas:function(){return dZe.createCanvas()}},h=Ps(Ps({},l),Z7e.sliceImage(l.img,l.tileSize[0],l.tileSize[0],s)),yy.update(l.img.src,h,a),f.abrupt("return",h);case 2:case"end":return f.stop()}},i,this)}));function n(i,r,o,s){return t.apply(this,arguments)}return n})()},{key:"releaseImage",value:function(n,i){yy.release((0,oO.isString)(n)?n:n.src,i)}},{key:"releaseImageRef",value:function(n){yy.releaseRef(n)}},{key:"getOrCreatePatternSync",value:function(n,i,r,o,s,a,l){var c=this.generatePatternKey(i);if(c&&this.patternCache[c])return this.patternCache[c];var u=i.image,d=i.repetition,h=i.transform,f,p=!1;if((0,oO.isString)(u)){var g=this.getImageSync(u,n,l);f=g?.img}else o?(f=o,p=!0):f=u;var m=f&&r.createPattern(f,d);if(m){var v;h?v=p_n(o_n(h),new xu({})):v=TMe.mat4.identity(TMe.mat4.create()),p&&TMe.mat4.scale(v,v,[1/s,1/s,1]),m.setTransform({a:v[0],b:v[1],c:v[4],d:v[5],e:v[12]+a[0],f:v[13]+a[1]})}return c&&m&&(this.patternCache[c]=m),m}},{key:"getOrCreateGradient",value:function(n,i){var r=this.generateGradientKey(n),o=n.type,s=n.steps,a=n.min,l=n.width,c=n.height,u=n.angle,d=n.cx,h=n.cy,f=n.size;if(this.gradientCache[r])return this.gradientCache[r];var p=null;if(o===qI.LinearGradient){var g=KVi(a,l,c,u),m=g.x1,v=g.y1,y=g.x2,b=g.y2;p=i.createLinearGradient(m,v,y,b)}else if(o===qI.RadialGradient){var w=YVi(a,l,c,d,h,f),E=w.x,A=w.y,D=w.r;p=i.createRadialGradient(E,A,0,E,A,D)}return p&&(s.forEach(function(T){var M=T.offset,P=T.color;if(M.unit===ir.kPercentage){var F;(F=p)===null||F===void 0||F.addColorStop(M.value/100,P.toString())}}),this.gradientCache[r]=p),this.gradientCache[r]}},{key:"generateGradientKey",value:function(n){var i=n.type,r=n.min,o=n.width,s=n.height,a=n.steps,l=n.angle,c=n.cx,u=n.cy,d=n.size;return"gradient-".concat(i,"-").concat(l?.toString()||0,"-").concat(c?.toString()||0,"-").concat(u?.toString()||0,"-").concat(d?.toString()||0,"-").concat(r[0],"-").concat(r[1],"-").concat(o,"-").concat(s,"-").concat(a.map(function(h){var f=h.offset,p=h.color;return"".concat(f).concat(p)}).join("-"))}},{key:"generatePatternKey",value:function(n){var i=n.image,r=n.repetition;if((0,oO.isString)(i))return"pattern-".concat(i,"-").concat(r);if(i.nodeName==="rect")return"pattern-".concat(i.entity,"-").concat(r)}}])})();kZe.isSupportTile=!!dZe.createCanvas();function pre(e){if(!e.complete)return[0,0];var t=e.naturalWidth||e.width,n=e.naturalHeight||e.height,i=256;return[256,512].forEach(function(r){var o=Math.ceil(n/r),s=Math.ceil(t/r);o*s<1e3&&(i=r)}),[i,i]}var Awn=(function(){function e(){_i(this,e)}return wi(e,[{key:"apply",value:function(n){var i=n.renderingService,r=n.renderingContext,o=n.imagePool,s=r.root.ownerDocument.defaultView,a=function(d,h,f){var p=d.parsedStyle,g=p.width,m=p.height;g&&!m?d.setAttribute("height",f/h*g):!g&&m&&d.setAttribute("width",h/f*m)},l=function(d){var h=d.target,f=h.nodeName,p=h.attributes;if(f===qn.IMAGE){var g=p.src,m=p.keepAspectRatio;o.getImageSync(g,h,function(v){var y=v.img,b=y.width,w=y.height;m&&a(h,b,w),h.renderable.dirty=!0,i.dirtify()})}},c=function(d){var h=d.target,f=d.attrName,p=d.prevValue,g=d.newValue;h.nodeName!==qn.IMAGE||f!=="src"||(p!==g&&o.releaseImage(p,h),(0,oO.isString)(g)&&o.getOrCreateImage(g,h).then(function(m){var v=m.img,y=v.width,b=v.height;h.attributes.keepAspectRatio&&a(h,y,b),h.renderable.dirty=!0,i.dirtify()}).catch(function(){}))};i.hooks.init.tap(e.tag,function(){s.addEventListener(ea.MOUNTED,l),s.addEventListener(ea.ATTR_MODIFIED,c)}),i.hooks.destroy.tap(e.tag,function(){s.removeEventListener(ea.MOUNTED,l),s.removeEventListener(ea.ATTR_MODIFIED,c)})}}])})();Awn.tag="LoadImage";var Oqi=(function(e){function t(){var n;_i(this,t);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return n=Hs(this,t,[].concat(r)),n.name="image-loader",n}return Ws(t,e),wi(t,[{key:"init",value:function(i){this.context.imagePool=new kZe(this.context,i),this.addRenderingPlugin(new Awn)}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}}])})(eP),oh=Pqi("renderState"),Dwn=(function(){function e(t){_i(this,e),this.removedRBushNodeAABBs=[],this.renderQueue=[],Object.defineProperty(this,oh,{writable:!0,value:{restoreStack:[],prevObject:null,currentContext:new Map}}),this.clearFullScreenLastFrame=!1,this.clearFullScreen=!1,this.vpMatrix=fc.mat4.create(),this.dprMatrix=fc.mat4.create(),this.tmpMat4=fc.mat4.create(),this.vec3a=fc.vec3.create(),this.vec3b=fc.vec3.create(),this.vec3c=fc.vec3.create(),this.vec3d=fc.vec3.create(),this.canvasRendererPluginOptions=t}return wi(e,[{key:"apply",value:function(n,i){var r=this;this.context=n;var o=this.context,s=o.config,a=o.camera,l=o.renderingService,c=o.renderingContext,u=o.rBushRoot,d=o.pathGeneratorFactory,h=s.renderer.getConfig().enableRenderingOptimization;s.renderer.getConfig().enableDirtyCheck=!1,s.renderer.getConfig().enableDirtyRectangleRendering=!1,this.rBush=u,this.pathGeneratorFactory=d;var f=n.contextService,p=c.root.ownerDocument.defaultView,g=function(w){var E=w.target,A=E.rBushNode;A!=null&&A.aabb&&r.removedRBushNodeAABBs.push(A.aabb)},m=function(w){var E=w.target,A=E.rBushNode;A.aabb&&r.removedRBushNodeAABBs.push(A.aabb)};l.hooks.init.tap(e.tag,function(){p.addEventListener(ea.UNMOUNTED,g),p.addEventListener(ea.CULLED,m);var b=f.getDPR(),w=s.width,E=s.height,A=f.getContext();r.clearRect(A,0,0,w*b,E*b,s.background)}),l.hooks.destroy.tap(e.tag,function(){p.removeEventListener(ea.UNMOUNTED,g),p.removeEventListener(ea.CULLED,m),r.renderQueue=[],r.removedRBushNodeAABBs=[],FS(r,oh)[oh]={restoreStack:[],prevObject:null,currentContext:null}});var v=function(){var w,E=f.getContext(),A=f.getDPR(),D=s.width,T=s.height,M=r.canvasRendererPluginOptions,P=M.dirtyObjectNumThreshold,F=M.dirtyObjectRatioThreshold,N=l.getStats(),j=N.total,W=N.rendered,J=W/j;r.clearFullScreen=r.clearFullScreenLastFrame||!((w=p.context.renderingPlugins[1])!==null&&w!==void 0&&w.isFirstTimeRenderingFinished)||l.disableDirtyRectangleRendering()||W>P&&J>F,E&&(typeof E.resetTransform=="function"?E.resetTransform():E.setTransform(1,0,0,1,0,0),r.clearFullScreen&&r.clearRect(E,0,0,D*A,T*A,s.background))},y=function(w,E){for(var A=[w];A.length>0;){var D,T=A.pop();T.isVisible()&&!T.isCulled()&&(h?r.renderDisplayObjectOptimized(T,E,r.context,FS(r,oh)[oh],i):r.renderDisplayObject(T,E,r.context,FS(r,oh)[oh],i));for(var M=((D=T.sortable)===null||D===void 0||(D=D.sorted)===null||D===void 0?void 0:D.length)>0?T.sortable.sorted:T.childNodes,P=M.length-1;P>=0;P--)A.push(M[P])}};l.hooks.endFrame.tap(e.tag,function(){if(v(),c.root.childNodes.length===0){r.clearFullScreenLastFrame=!0;return}h=s.renderer.getConfig().enableRenderingOptimization,FS(r,oh)[oh]={restoreStack:[],prevObject:null,currentContext:FS(r,oh)[oh].currentContext},FS(r,oh)[oh].currentContext.clear(),r.clearFullScreenLastFrame=!1;var b=f.getContext(),w=f.getDPR();if(fc.mat4.fromScaling(r.dprMatrix,[w,w,1]),fc.mat4.multiply(r.vpMatrix,r.dprMatrix,a.getOrthoMatrix()),r.clearFullScreen)h?(b.save(),y(c.root,b),b.restore()):y(c.root,b),r.removedRBushNodeAABBs=[];else{var E=r.safeMergeAABB.apply(r,[r.mergeDirtyAABBs(r.renderQueue)].concat(va(r.removedRBushNodeAABBs.map(function(ie){var ce=ie.minX,de=ie.minY,oe=ie.maxX,me=ie.maxY,Ce=new mc;return Ce.setMinMax([ce,de,0],[oe,me,0]),Ce}))));if(r.removedRBushNodeAABBs=[],mc.isEmpty(E)){r.renderQueue=[];return}var A=r.convertAABB2Rect(E),D=A.x,T=A.y,M=A.width,P=A.height,F=fc.vec3.transformMat4(r.vec3a,[D,T,0],r.vpMatrix),N=fc.vec3.transformMat4(r.vec3b,[D+M,T,0],r.vpMatrix),j=fc.vec3.transformMat4(r.vec3c,[D,T+P,0],r.vpMatrix),W=fc.vec3.transformMat4(r.vec3d,[D+M,T+P,0],r.vpMatrix),J=Math.min(F[0],N[0],W[0],j[0]),ee=Math.min(F[1],N[1],W[1],j[1]),Q=Math.max(F[0],N[0],W[0],j[0]),H=Math.max(F[1],N[1],W[1],j[1]),q=Math.floor(J),le=Math.floor(ee),Y=Math.ceil(Q-J),G=Math.ceil(H-ee);b.save(),r.clearRect(b,q,le,Y,G,s.background),b.beginPath(),b.rect(q,le,Y,G),b.clip(),b.setTransform(r.vpMatrix[0],r.vpMatrix[1],r.vpMatrix[4],r.vpMatrix[5],r.vpMatrix[12],r.vpMatrix[13]);var pe=s.renderer.getConfig(),U=pe.enableDirtyRectangleRenderingDebug;U&&p.dispatchEvent(new of(Ry.DIRTY_RECTANGLE,{dirtyRect:{x:q,y:le,width:Y,height:G}}));var K=r.searchDirtyObjects(E);K.sort(function(ie,ce){return ie.sortable.renderOrder-ce.sortable.renderOrder}).forEach(function(ie){ie&&ie.isVisible()&&!ie.isCulled()&&r.renderDisplayObject(ie,b,r.context,FS(r,oh)[oh],i)}),b.restore(),r.renderQueue.forEach(function(ie){r.saveDirtyAABB(ie)}),r.renderQueue=[]}FS(r,oh)[oh].restoreStack.forEach(function(){b.restore()}),FS(r,oh)[oh].restoreStack=[]}),l.hooks.render.tap(e.tag,function(b){r.clearFullScreen||r.renderQueue.push(b)})}},{key:"clearRect",value:function(n,i,r,o,s,a){n.clearRect(i,r,o,s),a&&(n.fillStyle=a,n.fillRect(i,r,o,s))}},{key:"renderDisplayObjectOptimized",value:function(n,i,r,o,s){var a=n.nodeName,l=!1,c=!1,u=this.context.styleRendererFactory[a],d=this.pathGeneratorFactory[a],h=n.parsedStyle.clipPath;if(h){l=!o.prevObject||!fc.mat4.exactEquals(h.getWorldTransform(),o.prevObject.getWorldTransform()),l&&(this.applyWorldTransform(i,h),o.prevObject=null);var f=this.pathGeneratorFactory[h.nodeName];f&&(i.save(),c=!0,i.beginPath(),f(i,h.parsedStyle),i.closePath(),i.clip())}if(u){l=!o.prevObject||!fc.mat4.exactEquals(n.getWorldTransform(),o.prevObject.getWorldTransform()),l&&this.applyWorldTransform(i,n);var p=!o.prevObject;if(!p){var g=o.prevObject.nodeName;a===qn.TEXT?p=g!==qn.TEXT:a===qn.IMAGE?p=g!==qn.IMAGE:p=g===qn.TEXT||g===qn.IMAGE}u.applyStyleToContext(i,n,p,o),o.prevObject=n}d&&(i.beginPath(),d(i,n.parsedStyle),a!==qn.LINE&&a!==qn.PATH&&a!==qn.POLYLINE&&i.closePath()),u&&u.drawToContext(i,n,FS(this,oh)[oh],this,s),c&&i.restore(),n.dirty(!1)}},{key:"renderDisplayObject",value:function(n,i,r,o,s){var a=n.nodeName,l=o.restoreStack[o.restoreStack.length-1];l&&!(n.compareDocumentPosition(l)&$u.DOCUMENT_POSITION_CONTAINS)&&(i.restore(),o.restoreStack.pop());var c=this.context.styleRendererFactory[a],u=this.pathGeneratorFactory[a],d=n.parsedStyle.clipPath;if(d){this.applyWorldTransform(i,d);var h=this.pathGeneratorFactory[d.nodeName];h&&(i.save(),o.restoreStack.push(n),i.beginPath(),h(i,d.parsedStyle),i.closePath(),i.clip())}c&&(this.applyWorldTransform(i,n),i.save(),this.applyAttributesToContext(i,n)),u&&(i.beginPath(),u(i,n.parsedStyle),a!==qn.LINE&&a!==qn.PATH&&a!==qn.POLYLINE&&i.closePath()),c&&(c.render(i,n.parsedStyle,n,r,this,s),i.restore()),n.dirty(!1)}},{key:"applyAttributesToContext",value:function(n,i){var r=i.parsedStyle,o=r.stroke,s=r.fill,a=r.opacity,l=r.lineDash,c=r.lineDashOffset;l&&n.setLineDash(l),(0,Mu.isNil)(c)||(n.lineDashOffset=c),(0,Mu.isNil)(a)||(n.globalAlpha*=a),!(0,Mu.isNil)(o)&&!Array.isArray(o)&&!o.isNone&&(n.strokeStyle=i.attributes.stroke),!(0,Mu.isNil)(s)&&!Array.isArray(s)&&!s.isNone&&(n.fillStyle=i.attributes.fill)}},{key:"convertAABB2Rect",value:function(n){var i=n.getMin(),r=n.getMax(),o=Math.floor(i[0]),s=Math.floor(i[1]),a=Math.ceil(r[0]),l=Math.ceil(r[1]),c=a-o,u=l-s;return{x:o,y:s,width:c,height:u}}},{key:"mergeDirtyAABBs",value:function(n){var i=new mc;return n.forEach(function(r){var o=r.getRenderBounds();i.add(o);var s=r.renderable.dirtyRenderBounds;s&&i.add(s)}),i}},{key:"searchDirtyObjects",value:function(n){var i=n.getMin(),r=As(i,2),o=r[0],s=r[1],a=n.getMax(),l=As(a,2),c=l[0],u=l[1],d=this.rBush.search({minX:o,minY:s,maxX:c,maxY:u});return d.map(function(h){var f=h.displayObject;return f})}},{key:"saveDirtyAABB",value:function(n){var i=n.renderable;i.dirtyRenderBounds||(i.dirtyRenderBounds=new mc);var r=n.getRenderBounds();r&&i.dirtyRenderBounds.update(r.center,r.halfExtents)}},{key:"applyWorldTransform",value:function(n,i,r){r?(fc.mat4.copy(this.tmpMat4,i.getLocalTransform()),fc.mat4.multiply(this.tmpMat4,r,this.tmpMat4),fc.mat4.multiply(this.tmpMat4,this.vpMatrix,this.tmpMat4)):(fc.mat4.copy(this.tmpMat4,i.getWorldTransform()),fc.mat4.multiply(this.tmpMat4,this.vpMatrix,this.tmpMat4)),n.setTransform(this.tmpMat4[0],this.tmpMat4[1],this.tmpMat4[4],this.tmpMat4[5],this.tmpMat4[12],this.tmpMat4[13])}},{key:"safeMergeAABB",value:function(){for(var n=new mc,i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return r.forEach(function(s){n.add(s)}),n}}])})();Dwn.tag="CanvasRenderer";function afe(e,t,n,i,r,o,s){var a,l;if(e.image.nodeName==="rect"){var c=e.image.parsedStyle,u=c.width,d=c.height;l=i.contextService.getDPR();var h=i.config.offscreenCanvas;a=o.offscreenCanvasCreator.getOrCreateCanvas(h),a.width=u*l,a.height=d*l;var f=o.offscreenCanvasCreator.getOrCreateContext(h),p={restoreStack:[],prevObject:null,currentContext:new Map};e.image.forEach(function(m){r.renderDisplayObject(m,f,i,p,o)}),p.restoreStack.forEach(function(){f.restore()})}var g=s.getOrCreatePatternSync(t,e,n,a,l,t.getGeometryBounds().min,function(){t.dirty(),i.renderingService.dirtify()});return g}function lfe(e,t,n,i){var r;if(e.type===qI.LinearGradient||e.type===qI.RadialGradient){var o=t.getGeometryBounds(),s=o&&o.halfExtents[0]*2||1,a=o&&o.halfExtents[1]*2||1,l=o&&o.min||[0,0];r=i.getOrCreateGradient(Ps(Ps({type:e.type},e.value),{},{min:l,width:s,height:a}),n)}return r}var gre=["shadowBlur","shadowOffsetX","shadowOffsetY"],ERt=["lineCap","lineJoin","miterLimit"],Gh={globalAlpha:1,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",filter:"none",globalCompositeOperation:"source-over",strokeStyle:"#000",strokeOpacity:1,lineWidth:1,lineDash:[],lineDashOffset:0,lineCap:"butt",lineJoin:"miter",miterLimit:10,fillStyle:"#000",fillOpacity:1},ARt={};function od(e,t,n,i){var r=i.has(t)?i.get(t):Gh[t];return r!==n&&(t==="lineDash"?e.setLineDash(n):e[t]=n,i.set(t,n)),r}var Rqi=(function(){function e(t){_i(this,e),this.imagePool=t}return wi(e,[{key:"applyAttributesToContext",value:function(n,i){}},{key:"render",value:function(n,i,r,o,s,a){}},{key:"applyCommonStyleToContext",value:function(n,i,r,o){var s=r?ARt:o.prevObject.parsedStyle,a=i.parsedStyle;(r||a.opacity!==s.opacity)&&od(n,"globalAlpha",(0,Mu.isNil)(a.opacity)?Gh.globalAlpha:a.opacity,o.currentContext),(r||a.blend!==s.blend)&&od(n,"globalCompositeOperation",(0,Mu.isNil)(a.blend)?Gh.globalCompositeOperation:a.blend,o.currentContext)}},{key:"applyStrokeFillStyleToContext",value:function(n,i,r,o){var s=r?ARt:o.prevObject.parsedStyle,a=i.parsedStyle,l=a.lineWidth,c=l===void 0?Gh.lineWidth:l,u=a.fill&&!a.fill.isNone,d=a.stroke&&!a.stroke.isNone&&c>0;if(d){if(r||i.attributes.stroke!==o.prevObject.attributes.stroke){var h=!(0,Mu.isNil)(a.stroke)&&!Array.isArray(a.stroke)&&!a.stroke.isNone?i.attributes.stroke:Gh.strokeStyle;od(n,"strokeStyle",h,o.currentContext)}(r||a.lineWidth!==s.lineWidth)&&od(n,"lineWidth",(0,Mu.isNil)(a.lineWidth)?Gh.lineWidth:a.lineWidth,o.currentContext),(r||a.lineDash!==s.lineDash)&&od(n,"lineDash",a.lineDash||Gh.lineDash,o.currentContext),(r||a.lineDashOffset!==s.lineDashOffset)&&od(n,"lineDashOffset",(0,Mu.isNil)(a.lineDashOffset)?Gh.lineDashOffset:a.lineDashOffset,o.currentContext);for(var f=0;f<ERt.length;f++){var p=ERt[f];(r||a[p]!==s[p])&&od(n,p,(0,Mu.isNil)(a[p])?Gh[p]:a[p],o.currentContext)}}if(u&&(r||i.attributes.fill!==o.prevObject.attributes.fill)){var g=!(0,Mu.isNil)(a.fill)&&!Array.isArray(a.fill)&&!a.fill.isNone?i.attributes.fill:Gh.fillStyle;od(n,"fillStyle",g,o.currentContext)}}},{key:"applyStyleToContext",value:function(n,i,r,o){var s=i.nodeName;this.applyCommonStyleToContext(n,i,r,o),s===qn.IMAGE||this.applyStrokeFillStyleToContext(n,i,r,o)}},{key:"applyShadowAndFilterStyleToContext",value:function(n,i,r,o){var s=i.parsedStyle;if(r){od(n,"shadowColor",s.shadowColor.toString(),o.currentContext);for(var a=0;a<gre.length;a++){var l=gre[a];od(n,l,s[l]||Gh[l],o.currentContext)}}s.filter&&s.filter.length&&od(n,"filter",i.attributes.filter,o.currentContext)}},{key:"clearShadowAndFilterStyleForContext",value:function(n,i,r,o){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i){od(n,"shadowColor",Gh.shadowColor,o.currentContext);for(var a=0;a<gre.length;a++){var l=gre[a];od(n,l,Gh[l],o.currentContext)}}if(r)if(i&&s){var c=n.filter;!(0,Mu.isNil)(c)&&c.indexOf("drop-shadow")>-1&&od(n,"filter",c.replace(/drop-shadow\([^)]*\)/,"").trim()||Gh.filter,o.currentContext)}else od(n,"filter",Gh.filter,o.currentContext)}},{key:"fillToContext",value:function(n,i,r,o,s){var a=this,l=i.parsedStyle,c=l.fill,u=l.fillRule,d=null;if(Array.isArray(c)&&c.length>0)c.forEach(function(f){var p=od(n,"fillStyle",lfe(f,i,n,a.imagePool),r.currentContext);d=d??p,u?n.fill(u):n.fill()});else{if(L2(c)){var h=afe(c,i,n,i.ownerDocument.defaultView.context,o,s,this.imagePool);h&&(n.fillStyle=h,d=!0)}u?n.fill(u):n.fill()}d!==null&&od(n,"fillStyle",d,r.currentContext)}},{key:"strokeToContext",value:function(n,i,r,o,s){var a=this,l=i.parsedStyle.stroke,c=null;if(Array.isArray(l)&&l.length>0)l.forEach(function(h){var f=od(n,"strokeStyle",lfe(h,i,n,a.imagePool),r.currentContext);c=c??f,n.stroke()});else{if(L2(l)){var u=afe(l,i,n,i.ownerDocument.defaultView.context,o,s,this.imagePool);if(u){var d=od(n,"strokeStyle",u,r.currentContext);c=c??d}}n.stroke()}c!==null&&od(n,"strokeStyle",c,r.currentContext)}},{key:"drawToContext",value:function(n,i,r,o,s){var a,l=i.nodeName,c=i.parsedStyle,u=c.opacity,d=u===void 0?Gh.globalAlpha:u,h=c.fillOpacity,f=h===void 0?Gh.fillOpacity:h,p=c.strokeOpacity,g=p===void 0?Gh.strokeOpacity:p,m=c.lineWidth,v=m===void 0?Gh.lineWidth:m,y=c.fill&&!c.fill.isNone,b=c.stroke&&!c.stroke.isNone&&v>0;if(!(!y&&!b)){var w=!(0,Mu.isNil)(c.shadowColor)&&c.shadowBlur>0,E=c.shadowType==="inner",A=((a=c.fill)===null||a===void 0?void 0:a.alpha)===0,D=!!(c.filter&&c.filter.length),T=w&&b&&(l===qn.PATH||l===qn.LINE||l===qn.POLYLINE||A||E),M=null;if(y){T||this.applyShadowAndFilterStyleToContext(n,i,w,r);var P=d*f;M=od(n,"globalAlpha",P,r.currentContext),this.fillToContext(n,i,r,o,s),T||this.clearShadowAndFilterStyleForContext(n,w,D,r)}if(b){var F=!1,N=d*g,j=od(n,"globalAlpha",N,r.currentContext);if(M=y?M:j,T&&(this.applyShadowAndFilterStyleToContext(n,i,w,r),F=!0,E)){var W=n.globalCompositeOperation;n.globalCompositeOperation="source-atop",this.strokeToContext(n,i,r,o,s),n.globalCompositeOperation=W,this.clearShadowAndFilterStyleForContext(n,w,D,r,!0)}this.strokeToContext(n,i,r,o,s),F&&this.clearShadowAndFilterStyleForContext(n,w,D,r)}M!==null&&od(n,"globalAlpha",M,r.currentContext)}}}])})(),IZe=(function(e){function t(){return _i(this,t),Hs(this,t,arguments)}return Ws(t,e),wi(t,[{key:"render",value:function(i,r,o,s,a,l){var c=r.fill,u=r.fillRule,d=r.opacity,h=d===void 0?1:d,f=r.fillOpacity,p=f===void 0?1:f,g=r.stroke,m=r.strokeOpacity,v=m===void 0?1:m,y=r.lineWidth,b=y===void 0?1:y,w=r.lineCap,E=r.lineJoin,A=r.shadowType,D=r.shadowColor,T=r.shadowBlur,M=r.filter,P=r.miterLimit,F=c&&!c.isNone,N=g&&!g.isNone&&b>0,j=c?.alpha===0,W=!!(M&&M.length),J=!(0,Mu.isNil)(D)&&T>0,ee=o.nodeName,Q=A==="inner",H=N&&J&&(ee===qn.PATH||ee===qn.LINE||ee===qn.POLYLINE||j||Q);F&&(i.globalAlpha=h*p,H||cfe(o,i,J),Twn(i,o,c,u,s,a,l,this.imagePool),H||this.clearShadowAndFilter(i,W,J)),N&&(i.globalAlpha=h*v,i.lineWidth=b,(0,Mu.isNil)(P)||(i.miterLimit=P),(0,Mu.isNil)(w)||(i.lineCap=w),(0,Mu.isNil)(E)||(i.lineJoin=E),H&&(Q&&(i.globalCompositeOperation="source-atop"),cfe(o,i,!0),Q&&(X7e(i,o,g,s,a,l,this.imagePool),i.globalCompositeOperation=Gh.globalCompositeOperation,this.clearShadowAndFilter(i,W,!0))),X7e(i,o,g,s,a,l,this.imagePool))}},{key:"clearShadowAndFilter",value:function(i,r,o){if(o&&(i.shadowColor="transparent",i.shadowBlur=0),r){var s=i.filter;!(0,Mu.isNil)(s)&&s.indexOf("drop-shadow")>-1&&(i.filter=s.replace(/drop-shadow\([^)]*\)/,"").trim()||"none")}}}])})(Rqi);function cfe(e,t,n){var i=e.parsedStyle,r=i.filter,o=i.shadowColor,s=i.shadowBlur,a=i.shadowOffsetX,l=i.shadowOffsetY;r&&r.length&&(t.filter=e.style.filter),n&&(t.shadowColor=o.toString(),t.shadowBlur=s||0,t.shadowOffsetX=a||0,t.shadowOffsetY=l||0)}function Twn(e,t,n,i,r,o,s,a){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!1;Array.isArray(n)?n.forEach(function(c){e.fillStyle=lfe(c,t,e,a),l||(i?e.fill(i):e.fill())}):(L2(n)&&(e.fillStyle=afe(n,t,e,r,o,s,a)),l||(i?e.fill(i):e.fill()))}function X7e(e,t,n,i,r,o,s){var a=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1;Array.isArray(n)?n.forEach(function(l){e.strokeStyle=lfe(l,t,e,s),a||e.stroke()}):(L2(n)&&(e.strokeStyle=afe(n,t,e,i,r,o,s)),a||e.stroke())}function Fqi(e,t){var n=As(e,4),i=n[0],r=n[1],o=n[2],s=n[3],a=As(t,4),l=a[0],c=a[1],u=a[2],d=a[3],h=Math.max(i,l),f=Math.max(r,c),p=Math.min(i+o,l+u),g=Math.min(r+s,c+d);return p<=h||g<=f?null:[h,f,p-h,g-f]}function Bqi(e,t){var n=fc.vec3.transformMat4(fc.vec3.create(),[e[0],e[1],0],t),i=fc.vec3.transformMat4(fc.vec3.create(),[e[0]+e[2],e[1],0],t),r=fc.vec3.transformMat4(fc.vec3.create(),[e[0],e[1]+e[3],0],t),o=fc.vec3.transformMat4(fc.vec3.create(),[e[0]+e[2],e[1]+e[3],0],t);return[Math.min(n[0],i[0],r[0],o[0]),Math.min(n[1],i[1],r[1],o[1]),Math.max(n[0],i[0],r[0],o[0])-Math.min(n[0],i[0],r[0],o[0]),Math.max(n[1],i[1],r[1],o[1])-Math.min(n[1],i[1],r[1],o[1])]}var jqi=(function(e){function t(){return _i(this,t),Hs(this,t,arguments)}return Ws(t,e),wi(t,[{key:"renderDownSampled",value:function(i,r,o,s){var a=s.src,l=s.imageCache;if(!l.downSampled){this.imagePool.createDownSampledImage(a,o).then(function(){o.ownerDocument&&(o.dirty(),o.ownerDocument.defaultView.context.renderingService.dirtify())}).catch(function(c){console.error(c)});return}i.drawImage(l.downSampled,Math.floor(s.drawRect[0]),Math.floor(s.drawRect[1]),Math.ceil(s.drawRect[2]),Math.ceil(s.drawRect[3]))}},{key:"renderTile",value:function(i,r,o,s){var a=s.src,l=s.imageCache,c=s.imageRect,u=s.drawRect,d=l.size,h=i.getTransform(),f=h.a,p=h.b,g=h.c,m=h.d,v=h.e,y=h.f;if(i.resetTransform(),!(l!=null&&l.gridSize)){this.imagePool.createImageTiles(a,[],function(){o.ownerDocument&&(o.dirty(),o.ownerDocument.defaultView.context.renderingService.dirtify())},o).catch(function(J){console.error(J)});return}for(var b=[d[0]/c[2],d[1]/c[3]],w=[l.tileSize[0]/b[0],l.tileSize[1]/b[1]],E=[Math.floor((u[0]-c[0])/w[0]),Math.ceil((u[0]+u[2]-c[0])/w[0])],A=E[0],D=E[1],T=[Math.floor((u[1]-c[1])/w[1]),Math.ceil((u[1]+u[3]-c[1])/w[1])],M=T[0],P=T[1],F=M;F<=P;F++)for(var N=A;N<=D;N++){var j=l.tiles[F][N];if(j){var W=[Math.floor(c[0]+j.tileX*w[0]),Math.floor(c[1]+j.tileY*w[1]),Math.ceil(w[0]),Math.ceil(w[1])];i.drawImage(j.data,W[0],W[1],W[2],W[3])}}i.setTransform(f,p,g,m,v,y)}},{key:"render",value:function(i,r,o){var s=r.x,a=s===void 0?0:s,l=r.y,c=l===void 0?0:l,u=r.width,d=r.height,h=r.src,f=r.shadowColor,p=r.shadowBlur,g=this.imagePool.getImageSync(h,o),m=g?.img,v=u,y=d;if(m){v||(v=m.width),y||(y=m.height);var b=!(0,Mu.isNil)(f)&&p>0;cfe(o,i,b);try{var w=o.ownerDocument.defaultView.getContextService().getDomElement(),E=w.width,A=w.height,D=i.getTransform(),T=D.a,M=D.b,P=D.c,F=D.d,N=D.e,j=D.f,W=fc.mat4.fromValues(T,P,0,0,M,F,0,0,0,0,1,0,N,j,0,1),J=Bqi([a,c,v,y],W),ee=Fqi([0,0,E,A],J);if(!ee)return;if(!o.ownerDocument.defaultView.getConfig().enableLargeImageOptimization){t.renderFull(i,r,o,{image:m,drawRect:[a,c,v,y]});return}var Q=J[2]/g.size[0];if(Q<(g.downSamplingRate||.5)){this.renderDownSampled(i,r,o,{src:h,imageCache:g,drawRect:[a,c,v,y]});return}if(!kZe.isSupportTile){t.renderFull(i,r,o,{image:m,drawRect:[a,c,v,y]});return}this.renderTile(i,r,o,{src:h,imageCache:g,imageRect:J,drawRect:ee})}catch{}}}},{key:"drawToContext",value:function(i,r,o,s,a){this.render(i,r.parsedStyle,r)}}],[{key:"renderFull",value:function(i,r,o,s){i.drawImage(s.image,Math.floor(s.drawRect[0]),Math.floor(s.drawRect[1]),Math.ceil(s.drawRect[2]),Math.ceil(s.drawRect[3]))}}])})(IZe),zqi=(function(e){function t(){return _i(this,t),Hs(this,t,arguments)}return Ws(t,e),wi(t,[{key:"render",value:function(i,r,o,s,a,l){o.getBounds();var c=r.lineWidth,u=c===void 0?1:c,d=r.textAlign,h=d===void 0?"start":d,f=r.textBaseline,p=f===void 0?"alphabetic":f,g=r.lineJoin,m=g===void 0?"miter":g,v=r.miterLimit,y=v===void 0?10:v,b=r.letterSpacing,w=b===void 0?0:b,E=r.stroke,A=r.fill,D=r.fillRule,T=r.fillOpacity,M=T===void 0?1:T,P=r.strokeOpacity,F=P===void 0?1:P,N=r.opacity,j=N===void 0?1:N,W=r.metrics,J=r.x,ee=J===void 0?0:J,Q=r.y,H=Q===void 0?0:Q,q=r.dx,le=r.dy,Y=r.shadowColor,G=r.shadowBlur,pe=W.font,U=W.lines,K=W.height,ie=W.lineHeight,ce=W.lineMetrics;i.font=pe,i.lineWidth=u,i.textAlign=h==="middle"?"center":h;var de=p;de==="alphabetic"&&(de="bottom"),i.lineJoin=m,(0,Mu.isNil)(y)||(i.miterLimit=y);var oe=H;p==="middle"?oe+=-K/2-ie/2:p==="bottom"||p==="alphabetic"||p==="ideographic"?oe+=-K:(p==="top"||p==="hanging")&&(oe+=-ie);var me=ee+(q||0);oe+=le||0,U.length===1&&(de==="bottom"?(de="middle",oe-=.5*K):de==="top"&&(de="middle",oe+=.5*K)),i.textBaseline=de;var Ce=!(0,Mu.isNil)(Y)&&G>0;cfe(o,i,Ce);for(var Se=0;Se<U.length;Se++){var De=u/2+me;oe+=ie,!(0,Mu.isNil)(E)&&!E.isNone&&u&&this.drawLetterSpacing(i,o,U[Se],ce[Se],h,De,oe,w,A,D,M,E,F,j,!0,s,a,l),(0,Mu.isNil)(A)||this.drawLetterSpacing(i,o,U[Se],ce[Se],h,De,oe,w,A,D,M,E,F,j,!1,s,a,l)}}},{key:"drawLetterSpacing",value:function(i,r,o,s,a,l,c,u,d,h,f,p,g,m,v,y,b,w){if(u===0){v?this.strokeText(i,r,o,l,c,p,g,y,b,w):this.fillText(i,r,o,l,c,d,h,f,m,y,b,w);return}var E=i.textAlign;i.textAlign="left";var A=l;a==="center"||a==="middle"?A=l-s.width/2:(a==="right"||a==="end")&&(A=l-s.width);for(var D=Array.from(o),T=i.measureText(o).width,M=0,P=0;P<D.length;++P){var F=D[P];v?this.strokeText(i,r,F,A,c,p,g,y,b,w):this.fillText(i,r,F,A,c,d,h,f,m,y,b,w),M=i.measureText(o.substring(P+1)).width,A+=T-M+u,T=M}i.textAlign=E}},{key:"fillText",value:function(i,r,o,s,a,l,c,u,d,h,f,p){Twn(i,r,l,c,h,f,p,this.imagePool,!0);var g,m=!(0,Mu.isNil)(u)&&u!==1;m&&(g=i.globalAlpha,i.globalAlpha=u*d),i.fillText(o,s,a),m&&(i.globalAlpha=g)}},{key:"strokeText",value:function(i,r,o,s,a,l,c,u,d,h){X7e(i,r,l,u,d,h,this.imagePool,!0);var f,p=!(0,Mu.isNil)(c)&&c!==1;p&&(f=i.globalAlpha,i.globalAlpha=c),i.strokeText(o,s,a),p&&(i.globalAlpha=f)}},{key:"drawToContext",value:function(i,r,o,s,a){this.render(i,r.parsedStyle,r,r.ownerDocument.defaultView.context,s,a)}}])})(IZe),Vqi=(function(e){function t(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return _i(this,t),n=Hs(this,t),n.name="canvas-renderer",n.options=i,n}return Ws(t,e),wi(t,[{key:"init",value:function(){var i,r=Ps({dirtyObjectNumThreshold:500,dirtyObjectRatioThreshold:.8},this.options),o=this.context.imagePool,s=new IZe(o),a=(i={},_r(_r(_r(_r(_r(_r(_r(_r(_r(_r(i,qn.CIRCLE,s),qn.ELLIPSE,s),qn.RECT,s),qn.IMAGE,new jqi(o)),qn.TEXT,new zqi(o)),qn.LINE,s),qn.POLYLINE,s),qn.POLYGON,s),qn.PATH,s),qn.GROUP,void 0),_r(_r(_r(i,qn.HTML,void 0),qn.MESH,void 0),qn.FRAGMENT,void 0));this.context.defaultStyleRendererFactory=a,this.context.styleRendererFactory=a,this.addRenderingPlugin(new Dwn(r))}},{key:"destroy",value:function(){this.removeAllRenderingPlugins(),delete this.context.defaultStyleRendererFactory,delete this.context.styleRendererFactory}}])})(eP),kwn=(function(){function e(){_i(this,e)}return wi(e,[{key:"apply",value:function(n,i){var r=this,o=n.renderingService,s=n.renderingContext,a=n.config;this.context=n;var l=s.root.ownerDocument.defaultView,c=function(T){o.hooks.pointerMove.call(T)},u=function(T){o.hooks.pointerUp.call(T)},d=function(T){o.hooks.pointerDown.call(T)},h=function(T){o.hooks.pointerOver.call(T)},f=function(T){o.hooks.pointerOut.call(T)},p=function(T){o.hooks.pointerCancel.call(T)},g=function(T){o.hooks.pointerWheel.call(T)},m=function(T){o.hooks.click.call(T)},v=function(T){i.globalThis.document.addEventListener("pointermove",c,!0),T.addEventListener("pointerdown",d,!0),T.addEventListener("pointerleave",f,!0),T.addEventListener("pointerover",h,!0),i.globalThis.addEventListener("pointerup",u,!0),i.globalThis.addEventListener("pointercancel",p,!0)},y=function(T){T.addEventListener("touchstart",d,!0),T.addEventListener("touchend",u,!0),T.addEventListener("touchmove",c,!0),T.addEventListener("touchcancel",p,!0)},b=function(T){i.globalThis.document.addEventListener("mousemove",c,!0),T.addEventListener("mousedown",d,!0),T.addEventListener("mouseout",f,!0),T.addEventListener("mouseover",h,!0),i.globalThis.addEventListener("mouseup",u,!0)},w=function(T){i.globalThis.document.removeEventListener("pointermove",c,!0),T.removeEventListener("pointerdown",d,!0),T.removeEventListener("pointerleave",f,!0),T.removeEventListener("pointerover",h,!0),i.globalThis.removeEventListener("pointerup",u,!0),i.globalThis.removeEventListener("pointercancel",p,!0)},E=function(T){T.removeEventListener("touchstart",d,!0),T.removeEventListener("touchend",u,!0),T.removeEventListener("touchmove",c,!0),T.removeEventListener("touchcancel",p,!0)},A=function(T){i.globalThis.document.removeEventListener("mousemove",c,!0),T.removeEventListener("mousedown",d,!0),T.removeEventListener("mouseout",f,!0),T.removeEventListener("mouseover",h,!0),i.globalThis.removeEventListener("mouseup",u,!0)};o.hooks.init.tap(e.tag,function(){var D=r.context.contextService.getDomElement();i.globalThis.navigator.msPointerEnabled?(D.style.msContentZooming="none",D.style.msTouchAction="none"):l.supportsPointerEvents&&(D.style.touchAction="none"),l.supportsPointerEvents?v(D):b(D),l.supportsTouchEvents&&y(D),a.useNativeClickEvent&&D.addEventListener("click",m,!0),D.addEventListener("wheel",g,{passive:!0,capture:!0})}),o.hooks.destroy.tap(e.tag,function(){var D=r.context.contextService.getDomElement();i.globalThis.navigator.msPointerEnabled?(D.style.msContentZooming="",D.style.msTouchAction=""):l.supportsPointerEvents&&(D.style.touchAction=""),l.supportsPointerEvents?w(D):A(D),l.supportsTouchEvents&&E(D),a.useNativeClickEvent&&D.removeEventListener("click",m,!0),D.removeEventListener("wheel",g,!0)})}}])})();kwn.tag="DOMInteraction";var Hqi=(function(e){function t(){var n;_i(this,t);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return n=Hs(this,t,[].concat(r)),n.name="dom-interaction",n}return Ws(t,e),wi(t,[{key:"init",value:function(){this.addRenderingPlugin(new kwn)}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}}])})(eP),mre=on(Pi()),Wqi="g-canvas-camera",Iwn=(function(){function e(){_i(this,e),this.displayObjectHTMLElementMap=new WeakMap}return wi(e,[{key:"joinTransformMatrix",value:(function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0,0];return"matrix(".concat([n[0],n[1],n[4],n[5],n[12]+i[0],n[13]+i[1]].join(","),")")})},{key:"apply",value:function(n,i){var r=this,o=n.camera,s=n.renderingContext,a=n.renderingService;this.context=n;var l=s.root.ownerDocument.defaultView,c=l.context.eventService.nativeHTMLMap,u=function(v,y){y.style.transform=r.joinTransformMatrix(v.getWorldTransform(),v.getOrigin())},d=function(v){var y=v.target;if(y.nodeName===qn.HTML){r.$camera||(r.$camera=r.createCamera(o));var b=r.getOrCreateEl(y);r.$camera.appendChild(b),Object.keys(y.attributes).forEach(function(w){r.updateAttribute(w,y)}),u(y,b),c.set(b,y)}},h=function(v){var y=v.target;if(y.nodeName===qn.HTML&&r.$camera){var b=r.getOrCreateEl(y);b&&(b.remove(),c.delete(b))}},f=function(v){var y=v.target;if(y.nodeName===qn.HTML){var b=v.attrName;r.updateAttribute(b,y)}},p=function(v){var y=v.target,b=y.nodeName===qn.FRAGMENT?y.childNodes:[y];b.forEach(function(w){if(w.nodeName===qn.HTML){var E=r.getOrCreateEl(w);u(w,E)}})},g=function(){if(r.$camera){var v=r.context.config,y=v.width,b=v.height;r.$camera.parentElement.style.width="".concat(y||0,"px"),r.$camera.parentElement.style.height="".concat(b||0,"px")}};a.hooks.init.tap(e.tag,function(){l.addEventListener(Ry.RESIZE,g),l.addEventListener(ea.MOUNTED,d),l.addEventListener(ea.UNMOUNTED,h),l.addEventListener(ea.ATTR_MODIFIED,f),l.addEventListener(ea.BOUNDS_CHANGED,p)}),a.hooks.endFrame.tap(e.tag,function(){r.$camera&&s.renderReasons.has(A8.CAMERA_CHANGED)&&(r.$camera.style.transform=r.joinTransformMatrix(o.getOrthoMatrix()))}),a.hooks.destroy.tap(e.tag,function(){r.$camera&&r.$camera.remove(),l.removeEventListener(Ry.RESIZE,g),l.removeEventListener(ea.MOUNTED,d),l.removeEventListener(ea.UNMOUNTED,h),l.removeEventListener(ea.ATTR_MODIFIED,f),l.removeEventListener(ea.BOUNDS_CHANGED,p)})}},{key:"createCamera",value:function(n){var i=this.context.config,r=i.document,o=i.width,s=i.height,a=this.context.contextService.getDomElement(),l=a.parentNode;if(l){var c=Wqi,u=l.querySelector("#".concat(c));if(!u){var d=(r||document).createElement("div");d.style.overflow="hidden",d.style.pointerEvents="none",d.style.position="absolute",d.style.left="0px",d.style.top="0px",d.style.width="".concat(o||0,"px"),d.style.height="".concat(s||0,"px");var h=(r||document).createElement("div");u=h,h.id=c,h.style.position="absolute",h.style.left="".concat(a.offsetLeft||0,"px"),h.style.top="".concat(a.offsetTop||0,"px"),h.style.transformOrigin="left top",h.style.transform=this.joinTransformMatrix(n.getOrthoMatrix()),h.style.pointerEvents="none",h.style.width="100%",h.style.height="100%",d.appendChild(h),l.appendChild(d)}return u}return null}},{key:"getOrCreateEl",value:function(n){var i=this.context.config.document,r=this.displayObjectHTMLElementMap.get(n);return r||(r=(i||document).createElement("div"),n.parsedStyle.$el=r,this.displayObjectHTMLElementMap.set(n,r),n.id&&(r.id=n.id),n.name&&r.setAttribute("name",n.name),n.className&&(r.className=n.className),r.style.position="absolute",r.style["will-change"]="transform",r.style.transform=this.joinTransformMatrix(n.getWorldTransform(),n.getOrigin())),r}},{key:"updateAttribute",value:function(n,i){var r=this.getOrCreateEl(i);switch(n){case"innerHTML":var o=i.parsedStyle.innerHTML;(0,mre.isString)(o)?r.innerHTML=o:(r.innerHTML="",r.appendChild(o));break;case"x":r.style.left="".concat(i.parsedStyle.x,"px");break;case"y":r.style.top="".concat(i.parsedStyle.y,"px");break;case"transformOrigin":var s=i.parsedStyle.transformOrigin;r.style["transform-origin"]="".concat(s[0].buildCSSText(null,null,"")," ").concat(s[1].buildCSSText(null,null,""));break;case"width":var a=i.parsedStyle.width;r.style.width=(0,mre.isNumber)(a)?"".concat(a,"px"):a.toString();break;case"height":var l=i.parsedStyle.height;r.style.height=(0,mre.isNumber)(l)?"".concat(l,"px"):l.toString();break;case"zIndex":var c=i.parsedStyle.zIndex;r.style["z-index"]="".concat(c);break;case"visibility":var u=i.parsedStyle.visibility;r.style.visibility=u;break;case"pointerEvents":var d=i.parsedStyle.pointerEvents,h=d===void 0?"auto":d;r.style.pointerEvents=h;break;case"opacity":var f=i.parsedStyle.opacity;r.style.opacity="".concat(f);break;case"fill":var p=i.parsedStyle.fill,g="";Xhe(p)?p.isNone?g="transparent":g=i.getAttribute("fill"):Array.isArray(p)?g=i.getAttribute("fill"):L2(p),r.style.background=g;break;case"stroke":var m=i.parsedStyle.stroke,v="";Xhe(m)?m.isNone?v="transparent":v=i.getAttribute("stroke"):Array.isArray(m)?v=i.getAttribute("stroke"):L2(m),r.style["border-color"]=v,r.style["border-style"]="solid";break;case"lineWidth":var y=i.parsedStyle.lineWidth;r.style["border-width"]="".concat(y||0,"px");break;case"lineDash":r.style["border-style"]="dashed";break;case"filter":var b=i.style.filter;r.style.filter=b;break;default:!(0,mre.isNil)(i.style[n])&&i.style[n]!==""&&(r.style[n]=i.style[n])}}}])})();Iwn.tag="HTMLRendering";var Uqi=(function(e){function t(){var n;_i(this,t);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return n=Hs(this,t,[].concat(r)),n.name="html-renderer",n}return Ws(t,e),wi(t,[{key:"init",value:function(){this.addRenderingPlugin(new Iwn)}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}}])})(eP),$qi=on(Pi()),qqi=(function(){function e(t){_i(this,e),this.renderingContext=t.renderingContext,this.canvasConfig=t.config}return wi(e,[{key:"init",value:function(){var n=this.canvasConfig,i=n.container,r=n.canvas;if(r)this.$canvas=r,i&&r.parentElement!==i&&i.appendChild(r),this.$container=r.parentElement,this.canvasConfig.container=this.$container;else if(i&&(this.$container=(0,$qi.isString)(i)?document.getElementById(i):i,this.$container)){var o=document.createElement("canvas");this.$container.appendChild(o),this.$container.style.position||(this.$container.style.position="relative"),this.$canvas=o}this.context=this.$canvas.getContext("2d"),this.resize(this.canvasConfig.width,this.canvasConfig.height)}},{key:"getContext",value:function(){return this.context}},{key:"getDomElement",value:function(){return this.$canvas}},{key:"getDPR",value:function(){return this.dpr}},{key:"getBoundingClientRect",value:function(){if(this.$canvas.getBoundingClientRect)return this.$canvas.getBoundingClientRect()}},{key:"destroy",value:function(){this.$container&&this.$canvas&&this.$canvas.parentNode&&this.$container.removeChild(this.$canvas)}},{key:"resize",value:function(n,i){var r=this.canvasConfig.devicePixelRatio;this.dpr=r,this.$canvas&&(this.$canvas.width=this.dpr*n,this.$canvas.height=this.dpr*i,iHi(this.$canvas,n,i)),this.renderingContext.renderReasons.add(A8.CAMERA_CHANGED)}},{key:"applyCursorStyle",value:function(n){this.$container&&this.$container.style&&(this.$container.style.cursor=n)}},{key:"toDataURL",value:(function(){var t=nN(wp().mark(function i(){var r,o,s,a=arguments;return wp().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return r=a.length>0&&a[0]!==void 0?a[0]:{},o=r.type,s=r.encoderOptions,l.abrupt("return",this.context.canvas.toDataURL(o,s));case 1:case"end":return l.stop()}},i,this)}));function n(){return t.apply(this,arguments)}return n})()}])})(),Gqi=(function(e){function t(){var n;_i(this,t);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return n=Hs(this,t,[].concat(r)),n.name="canvas-context-register",n}return Ws(t,e),wi(t,[{key:"init",value:function(){this.context.ContextService=qqi}},{key:"destroy",value:function(){delete this.context.ContextService}}])})(eP),iK=(function(e){function t(n){var i;return _i(this,t),i=Hs(this,t,[n]),i.registerPlugin(new Gqi),i.registerPlugin(new Oqi),i.registerPlugin(new hqi),i.registerPlugin(new Vqi),i.registerPlugin(new Hqi),i.registerPlugin(new Lqi),i.registerPlugin(new Uqi),i}return Ws(t,e),wi(t)})(eVi),fu=on(Pi()),Kqi=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},Lwn=class Nwn extends MT{constructor(t){super(Object.assign(Object.assign({},t),{style:Object.assign({},Nwn.defaultStyleProps,t.style)})),this.rootPointerEvent=new tfe(null),this.forwardEvents=n=>{const i=this.context.canvas,r=i.context.renderingContext.root.ownerDocument.defaultView;this.normalizeToPointerEvent(n,r).forEach(s=>{const a=this.bootstrapEvent(this.rootPointerEvent,s,r,n);(0,fu.set)(i.context.eventService,"mappingTable.pointerupoutside",[]),i.context.eventService.mapEvent(a)})}}get eventService(){return this.context.canvas.context.eventService}get events(){return[Rn.CLICK,Rn.POINTER_DOWN,Rn.POINTER_MOVE,Rn.POINTER_UP,Rn.POINTER_OVER,Rn.POINTER_LEAVE]}getDomElement(){return this.getShape("key").getDomElement()}render(t=this.parsedAttributes,n=this){this.drawKeyShape(t,n),this.drawPortShapes(t,n)}getKeyStyle(t){const n=(0,fu.pick)(t,["dx","dy","innerHTML","pointerEvents","cursor"]),{dx:i=0,dy:r=0}=n,o=Kqi(n,["dx","dy"]),[s,a]=this.getSize(t);return Object.assign(Object.assign({x:i,y:r},o),{width:s,height:a})}drawKeyShape(t,n){const i=this.getKeyStyle(t),{x:r,y:o,width:s=0,height:a=0}=i,l=this.upsert("key-container",kp,{x:r,y:o,width:s,height:a,opacity:0},n);return this.upsert("key",MF,i,l)}connectedCallback(){if(!(this.context.canvas.getRenderer("main")instanceof iK))return;const i=this.getDomElement();this.events.forEach(r=>{i.addEventListener(r,this.forwardEvents)})}attributeChangedCallback(t,n,i){t==="zIndex"&&n!==i&&(this.getDomElement().style.zIndex=i)}destroy(){const t=this.getDomElement();this.events.forEach(n=>{t.removeEventListener(n,this.forwardEvents)}),super.destroy()}normalizeToPointerEvent(t,n){const i=[];if(n.isTouchEvent(t))for(let r=0;r<t.changedTouches.length;r++){const o=t.changedTouches[r];(0,fu.isUndefined)(o.button)&&(o.button=0),(0,fu.isUndefined)(o.buttons)&&(o.buttons=1),(0,fu.isUndefined)(o.isPrimary)&&(o.isPrimary=t.touches.length===1&&t.type==="touchstart"),(0,fu.isUndefined)(o.width)&&(o.width=o.radiusX||1),(0,fu.isUndefined)(o.height)&&(o.height=o.radiusY||1),(0,fu.isUndefined)(o.tiltX)&&(o.tiltX=0),(0,fu.isUndefined)(o.tiltY)&&(o.tiltY=0),(0,fu.isUndefined)(o.pointerType)&&(o.pointerType="touch"),(0,fu.isUndefined)(o.pointerId)&&(o.pointerId=o.identifier||0),(0,fu.isUndefined)(o.pressure)&&(o.pressure=o.force||.5),(0,fu.isUndefined)(o.twist)&&(o.twist=0),(0,fu.isUndefined)(o.tangentialPressure)&&(o.tangentialPressure=0),o.isNormalized=!0,o.type=t.type,i.push(o)}else if(n.isMouseEvent(t)){const r=t;(0,fu.isUndefined)(r.isPrimary)&&(r.isPrimary=!0),(0,fu.isUndefined)(r.width)&&(r.width=1),(0,fu.isUndefined)(r.height)&&(r.height=1),(0,fu.isUndefined)(r.tiltX)&&(r.tiltX=0),(0,fu.isUndefined)(r.tiltY)&&(r.tiltY=0),(0,fu.isUndefined)(r.pointerType)&&(r.pointerType="mouse"),(0,fu.isUndefined)(r.pointerId)&&(r.pointerId=1),(0,fu.isUndefined)(r.pressure)&&(r.pressure=.5),(0,fu.isUndefined)(r.twist)&&(r.twist=0),(0,fu.isUndefined)(r.tangentialPressure)&&(r.tangentialPressure=0),r.isNormalized=!0,i.push(r)}else i.push(t);return i}transferMouseData(t,n){t.isTrusted=n.isTrusted,t.srcElement=n.srcElement,t.timeStamp=performance.now(),t.type=n.type,t.altKey=n.altKey,t.metaKey=n.metaKey,t.shiftKey=n.shiftKey,t.ctrlKey=n.ctrlKey,t.button=n.button,t.buttons=n.buttons,t.client.x=n.clientX,t.client.y=n.clientY,t.movement.x=n.movementX,t.movement.y=n.movementY,t.page.x=n.pageX,t.page.y=n.pageY,t.screen.x=n.screenX,t.screen.y=n.screenY,t.relatedTarget=null}bootstrapEvent(t,n,i,r){t.view=i,t.originalEvent=null,t.nativeEvent=r,t.pointerId=n.pointerId,t.width=n.width,t.height=n.height,t.isPrimary=n.isPrimary,t.pointerType=n.pointerType,t.pressure=n.pressure,t.tangentialPressure=n.tangentialPressure,t.tiltX=n.tiltX,t.tiltY=n.tiltY,t.twist=n.twist,this.transferMouseData(t,n);const{x:o,y:s}=this.getViewportXY(n);t.viewport.x=o,t.viewport.y=s;const[a,l]=this.context.canvas.getCanvasByViewport([o,s]);return t.canvas.x=a,t.canvas.y=l,t.global.copyFrom(t.canvas),t.offset.copyFrom(t.canvas),t.isTrusted=r.isTrusted,t.type==="pointerleave"&&(t.type="pointerout"),t}getViewportXY(t){let n,i;const{offsetX:r,offsetY:o,clientX:s,clientY:a}=t;if(!(0,fu.isNil)(r)&&!(0,fu.isNil)(o))n=r,i=o;else{const l=this.eventService.client2Viewport({x:s,y:a});n=l.x,i=l.y}return{x:n,y:i}}onframe(){super.onframe();const{opacity:t}=this.attributes;this.getDomElement().style.opacity=`${t}`}};Lwn.defaultStyleProps={size:[160,80],halo:!1,icon:!1,label:!1,pointerEvents:"auto"};var DRt=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},Pwn=class Mwn extends MT{constructor(t){super(Lp({style:Mwn.defaultStyleProps},t))}getKeyStyle(t){const[n,i]=this.getSize(t),r=super.getKeyStyle(t),{fillOpacity:o,opacity:s=o}=r,a=DRt(r,["fillOpacity","opacity"]);return Object.assign(Object.assign({opacity:s},a),{width:n,height:i,x:-n/2,y:-i/2})}getBounds(){return this.getShape("key").getBounds()}getHaloStyle(t){if(t.halo===!1)return!1;const n=this.getShape("key").attributes,{fill:i,stroke:r}=n;DRt(n,["fill","stroke"]);const o=iu(this.getGraphicStyle(t),"halo"),s=Number(o.lineWidth),[a,l]=_s(this.getSize(t),[s,s]),{lineWidth:c}=o,u={fill:"transparent",lineWidth:c/2,width:a-c/2,height:l-c/2,x:-(a-c/2)/2,y:-(l-c/2)/2};return Object.assign(Object.assign({},o),u)}getIconStyle(t){const n=super.getIconStyle(t),[i,r]=this.getSize(t);return n?Object.assign({width:i*tT,height:r*tT},n):!1}drawKeyShape(t,n){const i=this.upsert("key",AZe,this.getKeyStyle(t),n);return DZe(this),i}drawHaloShape(t,n){this.upsert("halo",kp,this.getHaloStyle(t),n)}update(t){super.update(t),t&&("x"in t||"y"in t||"z"in t)&&TZe(this)}};Pwn.defaultStyleProps={size:32};var Yqi=class extends MT{constructor(e){super(e)}getKeyStyle(e){const[t,n]=this.getSize(e);return Object.assign(Object.assign({},super.getKeyStyle(e)),{width:t,height:n,x:-t/2,y:-n/2})}getIconStyle(e){const t=super.getIconStyle(e),{width:n,height:i}=this.getShape("key").attributes;return t?Object.assign({width:n*tT,height:i*tT},t):!1}drawKeyShape(e,t){return this.upsert("key",kp,this.getKeyStyle(e),t)}},Qqi=class extends U0e{constructor(e){super(e)}getInnerR(e){return e.innerR||this.getOuterR(e)*3/8}getOuterR(e){return Math.min(...this.getSize(e))/2}getPoints(e){return MGi(this.getOuterR(e),this.getInnerR(e))}getIconStyle(e){const t=super.getIconStyle(e),n=this.getInnerR(e)*2*tT;return t?Object.assign({width:n,height:n},t):!1}getPortXY(e,t){const{placement:n="top"}=t,i=this.getShape("key").getLocalBounds(),r=OGi(this.getOuterR(e),this.getInnerR(e));return PZe(i,n,r,!1)}},Zqi=on(Pi()),Own=class Rwn extends U0e{constructor(t){super(Lp({style:Rwn.defaultStyleProps},t))}getPoints(t){const{direction:n}=t,[i,r]=this.getSize(t);return RGi(i,r,n)}getPortXY(t,n){const{direction:i}=t,{placement:r="top"}=n,o=this.getShape("key").getLocalBounds(),[s,a]=this.getSize(t),l=FGi(s,a,i);return PZe(o,r,l,!1)}getIconStyle(t){const{icon:n,iconText:i,iconSrc:r,direction:o}=t;if(n===!1||(0,Zqi.isEmpty)(i||r))return!1;const s=iu(this.getGraphicStyle(t),"icon"),a=this.getShape("key").getLocalBounds(),[l,c]=BUi(a,o),u=jUi(a,o)*2*tT;return Object.assign({x:l,y:c,width:u,height:u},s)}};Own.defaultStyleProps={size:40,direction:"up"};var TRt=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},$0e=class Fwn extends MT{constructor(t){super(Lp({style:Fwn.defaultStyleProps},t)),this.type="combo",this.updateComboPosition(this.parsedAttributes)}getKeySize(t){const{collapsed:n,childrenNode:i=[]}=t;return i.length===0?this.getEmptyKeySize(t):n?this.getCollapsedKeySize(t):this.getExpandedKeySize(t)}getEmptyKeySize(t){const{padding:n,collapsedSize:i}=t,[r,o,s,a]=Lw(n);return _s(tb(i),[a+o,r+s,0])}getCollapsedKeySize(t){return tb(t.collapsedSize)}getExpandedKeySize(t){const n=this.getContentBBox(t);return[TE(n),kE(n),0]}getContentBBox(t){const{childrenNode:n=[],padding:i}=t,r=n.map(s=>this.context.element.getElement(s)).filter(Boolean);if(r.length===0){const s=new mc,{x:a=0,y:l=0,size:c}=t,[u,d]=tb(c);return s.setMinMax([a-u/2,l-d/2,0],[a+u/2,l+d/2,0]),s}const o=eZ(r.map(s=>s.getBounds()));return i?iP(o,i):o}drawCollapsedMarkerShape(t,n){const i=this.getCollapsedMarkerStyle(t);this.upsert("collapsed-marker",pwn,i,n),DZe(this)}getCollapsedMarkerStyle(t){if(!t.collapsed||!t.collapsedMarker)return!1;const n=iu(this.getGraphicStyle(t),"collapsedMarker"),{type:i}=n,r=TRt(n,["type"]),o=this.getShape("key"),[s,a]=rD(o.getLocalBounds(),"center"),l=Object.assign(Object.assign({},r),{x:s,y:a});if(i){const c=this.getCollapsedMarkerText(i,t);Object.assign(l,{text:c})}return l}getCollapsedMarkerText(t,n){const{childrenData:i=[]}=n,{model:r}=this.context;return t==="descendant-count"?r.getDescendantsData(this.id).length.toString():t==="child-count"?i.length.toString():t==="node-count"?r.getDescendantsData(this.id).filter(o=>r.getElementType(an(o))==="node").length.toString():(0,P$i.isFunction)(t)?t(i):""}getComboPosition(t){const{x:n=0,y:i=0,collapsed:r,childrenData:o=[]}=t;if(o.length===0)return[+n,+i,0];if(r){const{model:s}=this.context,a=s.getDescendantsData(this.id).filter(l=>!s.isCombo(an(l)));if(a.length>0&&a.some(_$i)){const l=a.reduce((c,u)=>_s(c,zf(u)),[0,0,0]);return MC(l,a.length)}return[+n,+i,0]}return this.getContentBBox(t).center}getComboStyle(t){const[n,i]=this.getComboPosition(t);return{x:n,y:i,transform:[["translate",n,i]]}}updateComboPosition(t){const n=this.getComboStyle(t);Object.assign(this.style,n);const{x:i,y:r}=n;this.context.model.syncNodeLikeDatum({id:this.id,style:{x:i,y:r}}),TZe(this)}render(t,n=this){super.render(t,n),this.drawCollapsedMarkerShape(t,n)}update(t={}){super.update(t),this.updateComboPosition(this.parsedAttributes)}onframe(){super.onframe(),this.attributes.collapsed||this.updateComboPosition(this.parsedAttributes),this.drawKeyShape(this.parsedAttributes,this)}animate(t,n){const i=super.animate(this.attributes.collapsed?t:t.map(r=>{var{x:o,y:s,z:a,transform:l}=r,c=TRt(r,["x","y","z","transform"]);return c}),n);return i&&new Proxy(i,{set:(r,o,s)=>(o==="currentTime"&&Promise.resolve().then(()=>this.onframe()),Reflect.set(r,o,s))})}};$0e.defaultStyleProps={childrenNode:[],droppable:!0,draggable:!0,collapsed:!1,collapsedSize:32,collapsedMarker:!0,collapsedMarkerZIndex:1,collapsedMarkerFontSize:12,collapsedMarkerTextAlign:"center",collapsedMarkerTextBaseline:"middle",collapsedMarkerType:"child-count"};var Xqi=class extends $0e{constructor(e){super(e)}drawKeyShape(e,t){return this.upsert("key",NC,this.getKeyStyle(e),t)}getKeyStyle(e){const{collapsed:t}=e,n=super.getKeyStyle(e),[i]=this.getKeySize(e);return Object.assign(Object.assign(Object.assign({},n),t&&iu(n,"collapsed")),{r:i/2})}getCollapsedKeySize(e){const[t,n]=tb(e.collapsedSize),i=Math.max(t,n)/2;return[i*2,i*2,0]}getExpandedKeySize(e){const t=this.getContentBBox(e),[n,i]=nP(t),r=Math.sqrt(Math.pow(n,2)+Math.pow(i,2))/2;return[r*2,r*2,0]}getIntersectPoint(e,t=!1){const n=this.getShape("key").getBounds();return H0e(e,n,t)}},Jqi=class extends $0e{constructor(e){super(e)}drawKeyShape(e,t){return this.upsert("key",kp,this.getKeyStyle(e),t)}getKeyStyle(e){const t=super.getKeyStyle(e),[n,i]=this.getKeySize(e);return Object.assign(Object.assign(Object.assign({},t),e.collapsed&&iu(t,"collapsed")),{width:n,height:i,x:-n/2,y:-i/2})}},kRt=on(Pi()),nZ=on(Pi()),Bwn=on(Pi()),eGi={padding:10};function IRt(e,t,n,i,r,o){const{padding:s}=Object.assign(eGi,o),a=GI(n,s),l=GI(i,s),c=[e,...r,t];let u=null;const d=[];for(let h=0,f=c.length;h<f-1;h++){const p=h+1,g=c[h],m=c[p],v=S$i(g,m);let y=null;if(h===0)if(p===f-1)if(a.intersects(l))y=LMe(g,m,a,l);else if(!ife(g,a)&&!ife(m,l)){const b=kR(g,a),w=kR(m,l);y=NRt(b,w,_v(b,w)),y.points.unshift(b),y.points.push(w)}else v||(y=nGi(g,m,a,l));else PC(m,a)?y=LMe(g,m,a,GI(m,s),u):v||(y=_ce(g,m,a));else p===f-1?PC(g,l)?y=LMe(g,m,GI(g,s),l,u):v||(y=jwn(g,m,l,u)):v||(y=NRt(g,m,u));y?(d.push(...y.points),u=y.direction):u=_v(g,m),p<f-1&&d.push(m)}return d.map(M2)}var tGi={N:"S",S:"N",W:"E",E:"W"},LRt={N:-Math.PI/2,S:Math.PI/2,E:0,W:Math.PI};function _v(e,t){const[n,i]=e,[r,o]=t;return n===r?i>o?"N":"S":i===o?n>r?"W":"E":null}function J7e(e,t){return t==="N"||t==="S"?kE(e):TE(e)}function NRt(e,t,n){const i=[e[0],t[1]],r=[t[0],e[1]],o=_v(e,i),s=_v(e,r),a=n?tGi[n]:null,l=o===n||o!==a&&s!==n?i:r;return{points:[l],direction:_v(l,t)}}function _ce(e,t,n){if(ife(e,n)){const i=rK(e,t,n);return{points:[i],direction:_v(i,t)}}else{const i=kR(e,n),o=["left","right"].includes(tq(e,n))?[t[0],i[1]]:[i[0],t[1]];return{points:[o],direction:_v(o,t)}}}function jwn(e,t,n,i){const r=ife(t,n)?t:kR(t,n),o=[[r[0],e[1]],[e[0],r[1]]],s=o.filter(l=>FUi(l,n)&&!R_n(l,n,!0)),a=s.filter(l=>_v(l,e)!==i);if(a.length>0){const l=a.find(c=>_v(e,c)===i)||a[0];return{points:[l],direction:_v(l,t)}}else{const l=(0,Bwn.difference)(o,s)[0],c=mL(t,l,J7e(n,i)/2);return{points:[rK(c,e,n),c],direction:_v(c,t)}}}function nGi(e,t,n,i){let r=_ce(e,t,n);const o=nK(r.points[0]);if(PC(o,i)){r=_ce(t,e,i);const s=nK(r.points[0]);if(PC(s,n)){const a=mL(e,o,J7e(n,_v(e,o))/2),l=mL(t,s,J7e(i,_v(t,s))/2),c=[(a[0]+l[0])/2,(a[1]+l[1])/2],u=_ce(e,c,n),d=jwn(c,t,i,u.direction);r.points=[u.points[0],d.points[0]],r.direction=d.direction}}return r}function LMe(e,t,n,i,r){const s=eZ([n,i]),a=bu(t,s.center)>bu(e,s.center),[l,c]=a?[t,e]:[e,t],u=kE(s)+TE(s);let d;if(r){const p=[l[0]+u*Math.cos(LRt[r]),l[1]+u*Math.sin(LRt[r])];d=mL(kR(p,s),p,.01)}else d=mL(kR(l,s),l,-.01);let h=rK(d,c,s),f=[iH(d,2),iH(h,2)];if((0,Bwn.isEqual)(iH(d),iH(h))){const p=wZe(wc(d,l),[1,0,0])+Math.PI/2;h=[c[0]+u*Math.cos(p),c[1]+u*Math.sin(p),0],h=iH(mL(kR(h,s),c,-.01),2);const g=rK(d,h,s);f=[d,g,h]}return{points:a?f.reverse():f,direction:_v(a?d:h,t)}}function rK(e,t,n){let i=[e[0],t[1]];return PC(i,n)&&(i=[t[0],e[1]]),i}function zwn(e,t,n,i,r){let l=typeof t=="number"?t:.5;t==="start"&&(l=0),t==="end"&&(l=.99);const c=og(e.getPoint(l)),u=og(e.getPoint(l+.01));let d=t==="start"?"left":t==="end"?"right":"center";if(Q_n(c,u)||!n){const[v,y]=PRt(e,l,i,r);return{transform:[["translate",v,y]],textAlign:d}}let h=Math.atan2(u[1]-c[1],u[0]-c[0]);u[0]<c[0]&&(d=d==="center"?d:d==="left"?"right":"left",i*=-1,h+=Math.PI);const[p,g]=PRt(e,l,i,r,h),m=[["translate",p,g],["rotate",h/Math.PI*180]];return{textAlign:d,transform:m}}function iGi(e,t,n,i,r){var o,s;const a=((o=e.badge)===null||o===void 0?void 0:o.getGeometryBounds().halfExtents[0])*2||0,l=((s=e.label)===null||s===void 0?void 0:s.getGeometryBounds().halfExtents[0])*2||0;return zwn(e.key,n,!0,(l?(l/2+a/2)*(t==="suffix"?1:-1):0)+i,r)}function PRt(e,t,n,i,r){const[o,s]=og(e.getPoint(t));let a=n,l=i;return r&&(a=n*Math.cos(r)-i*Math.sin(r),l=n*Math.sin(r)+i*Math.cos(r)),[o+a,s+l]}function eje(e,t,n,i){if((0,nZ.isEqual)(e,t))return e;const r=wc(t,e),o=[e[0]+n*r[0],e[1]+n*r[1]],s=LD(V0e(r,!1));return o[0]+=i*s[0],o[1]+=i*s[1],o}function rGi(e){return(0,nZ.isNumber)(e)?[e,-e]:e}function oGi(e){return(0,nZ.isNumber)(e)?[e,1-e]:e}function sGi(e,t,n){return[["M",e[0],e[1]],["Q",n[0],n[1],t[0],t[1]]]}function Vwn(e,t,n){return[["M",e[0],e[1]],["C",n[0][0],n[0][1],n[1][0],n[1][1],t[0],t[1]]]}function LZe(e,t=0,n=!1){const i=e.length-1,r=e[0],o=e[i],s=e.slice(1,i),a=[["M",r[0],r[1]]];return s.forEach((l,c)=>{const u=s[c-1]||r,d=s[c+1]||o;if(!Z_n(u,l,d)&&t){const[h,f]=aGi(u,l,d,t);a.push(["L",h[0],h[1]],["Q",l[0],l[1],f[0],f[1]],["L",f[0],f[1]])}else a.push(["L",l[0],l[1]])}),a.push(["L",o[0],o[1]]),n&&a.push(["Z"]),a}function aGi(e,t,n,i){const r=rfe(e,t),o=rfe(n,t),s=Math.min(i,Math.min(r,o)/2),a=[t[0]-s/r*(t[0]-e[0]),t[1]-s/r*(t[1]-e[1])],l=[t[0]-s/o*(t[0]-n[0]),t[1]-s/o*(t[1]-n[1])];return[a,l]}var lGi=e=>{const t=Math.PI/2,n=kE(e)/2,i=TE(e)/2,r=Math.atan2(n,i)/2,o=Math.atan2(i,n)/2;return{top:[-t-o,-t+o],"top-right":[-t+o,-r],"right-top":[-t+o,-r],right:[-r,r],"bottom-right":[r,t-o],"right-bottom":[r,t-o],bottom:[t-o,t+o],"bottom-left":[t+o,Math.PI-r],"left-bottom":[t+o,Math.PI-r],left:[Math.PI-r,Math.PI+r],"top-left":[Math.PI+r,-t-o],"left-top":[Math.PI+r,-t-o]}};function Hwn(e,t,n,i,r){const o=GI(e),s=e.getCenter();let a=i&&sN(i),l=r&&sN(r);if(!a||!l){const c=lGi(o),u=c[t][0],d=c[t][1],[h,f]=nP(o),p=Math.max(h,f),g=_s(s,[p*Math.cos(u),p*Math.sin(u),0]),m=_s(s,[p*Math.cos(d),p*Math.sin(d),0]);a=nje(e,g),l=nje(e,m),n||([a,l]=[l,a])}return[a,l]}function cGi(e,t,n,i,r,o){const s=e.getPorts()[r||o],a=e.getPorts()[o||r];let[l,c]=Hwn(e,t,n,s,a);const u=uGi(e,l,c,i);return s&&(l=oK(s,u[0])),a&&(c=oK(a,u.at(-1))),Vwn(l,c,u)}function uGi(e,t,n,i){const r=e.getCenter();if((0,nZ.isEqual)(t,n)){const o=wc(t,r),s=[i*Math.sign(o[0])||i/2,i*Math.sign(o[1])||-i/2,0];return[_s(t,s),_s(n,U1(s,[1,-1,1]))]}return[mL(r,t,bu(r,t)+i),mL(r,n,bu(r,n)+i)]}function dGi(e,t,n,i,r,o,s){const a=MZe(e),l=a[o||s],c=a[s||o];let[u,d]=Hwn(e,n,i,l,c);const h=hGi(e,u,d,r);return l&&(u=oK(l,h[0])),c&&(d=oK(c,h.at(-1))),LZe([u,...h,d],t)}function hGi(e,t,n,i){const r=[],o=GI(e);if((0,nZ.isEqual)(t,n))switch(tq(t,o)){case"left":r.push([t[0]-i,t[1]]),r.push([t[0]-i,t[1]+i]),r.push([t[0],t[1]+i]);break;case"right":r.push([t[0]+i,t[1]]),r.push([t[0]+i,t[1]+i]),r.push([t[0],t[1]+i]);break;case"top":r.push([t[0],t[1]-i]),r.push([t[0]+i,t[1]-i]),r.push([t[0]+i,t[1]]);break;case"bottom":r.push([t[0],t[1]+i]),r.push([t[0]+i,t[1]+i]),r.push([t[0]+i,t[1]]);break}else{const s=tq(t,o),a=tq(n,o);if(s===a){const l=s;let c,u;switch(l){case"left":c=Math.min(t[0],n[0])-i,r.push([c,t[1]]),r.push([c,n[1]]);break;case"right":c=Math.max(t[0],n[0])+i,r.push([c,t[1]]),r.push([c,n[1]]);break;case"top":u=Math.min(t[1],n[1])-i,r.push([t[0],u]),r.push([n[0],u]);break;case"bottom":u=Math.max(t[1],n[1])+i,r.push([t[0],u]),r.push([n[0],u]);break}}else{const l=(h,f)=>({left:[f[0]-i,f[1]],right:[f[0]+i,f[1]],top:[f[0],f[1]-i],bottom:[f[0],f[1]+i]})[h],c=l(s,t),u=l(a,n),d=rK(c,u,o);r.push(c,d,u)}}return r}function tje(e,t){const n=new Set,i=new Set,r=new Set;return e.forEach(o=>{t(o).forEach(a=>{n.add(a),e.includes(a.source)&&e.includes(a.target)?i.add(a):r.add(a)})}),{edges:Array.from(n),internal:Array.from(i),external:Array.from(r)}}function MRt(e,t){const n=[];let i=e;for(;i;){n.push(i);const r=t(an(i));if(r)i=r;else break}if(n.some(r=>{var o;return(o=r.style)===null||o===void 0?void 0:o.collapsed})){const r=n.reverse().findIndex(S0);return n[r]||n.at(-1)}return e}function fGi(e,t){return t||(e<4?10:e===4?12:e*2.5)}var Wwn={};oc(Wwn,{circle:()=>pGi,diamond:()=>gGi,rect:()=>vGi,simple:()=>bGi,triangle:()=>Uwn,triangleRect:()=>yGi,vee:()=>mGi});var pGi=(e,t)=>{const n=Math.max(e,t)/2;return[["M",-e/2,0],["A",n,n,0,1,0,2*n-e/2,0],["A",n,n,0,1,0,-e/2,0],["Z"]]},Uwn=(e,t)=>[["M",-e/2,0],["L",e/2,-t/2],["L",e/2,t/2],["Z"]],gGi=(e,t)=>[["M",-e/2,0],["L",0,-t/2],["L",e/2,0],["L",0,t/2],["Z"]],mGi=(e,t)=>[["M",-e/2,0],["L",e/2,-t/2],["L",4*e/5-e/2,0],["L",e/2,t/2],["Z"]],vGi=(e,t)=>[["M",-e/2,-t/2],["L",e/2,-t/2],["L",e/2,t/2],["L",-e/2,t/2],["Z"]],yGi=(e,t)=>{const n=e/2,i=e/7,r=e-i;return[["M",-n,0],["L",0,-t/2],["L",0,t/2],["Z"],["M",r-n,-t/2],["L",r+i-n,-t/2],["L",r+i-n,t/2],["L",r-n,t/2],["Z"]]},bGi=(e,t)=>[["M",e/2,-t/2],["L",-e/2,0],["L",e/2,0],["L",-e/2,0],["L",e/2,t/2]],vre=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},Sj=class $wn extends gwn{constructor(t){super(Lp({style:$wn.defaultStyleProps},t)),this.type="edge"}get sourceNode(){const{sourceNode:t}=this.parsedAttributes;return this.context.element.getElement(t)}get targetNode(){const{targetNode:t}=this.parsedAttributes;return this.context.element.getElement(t)}getKeyStyle(t){const n=this.getGraphicStyle(t),{loop:i}=n,r=vre(n,["loop"]),{sourceNode:o,targetNode:s}=this,l={d:i&&IGi(o,s)?this.getLoopPath(t):this.getKeyPath(t)};return $y.PARSED_STYLE_LIST.forEach(c=>{c in r&&(l[c]=r[c])}),l}getLoopPath(t){const{sourcePort:n,targetPort:i}=t,r=this.sourceNode,o=GI(r),s=Math.max(TE(o),kE(o)),{placement:a,clockwise:l,dist:c=s}=iu(this.getGraphicStyle(t),"loop");return cGi(r,a,l,c,n,i)}getEndpoints(t,n=!0,i=[]){const{sourcePort:r,targetPort:o}=t,{sourceNode:s,targetNode:a}=this,[l,c]=NGi(s,a,r,o);if(!n){const f=l?sN(l):s.getCenter(),p=c?sN(c):a.getCenter();return[f,p]}const u=typeof i=="function"?i():i,d=jRt(l||s,u[0]||c||a),h=jRt(c||a,u[u.length-1]||l||s);return[d,h]}getHaloStyle(t){if(t.halo===!1)return!1;const n=this.getKeyStyle(t),i=iu(this.getGraphicStyle(t),"halo");return Object.assign(Object.assign({},n),i)}getLabelStyle(t){if(t.label===!1||!t.labelText)return!1;const n=iu(this.getGraphicStyle(t),"label"),{placement:i,offsetX:r,offsetY:o,autoRotate:s,maxWidth:a}=n,l=vre(n,["placement","offsetX","offsetY","autoRotate","maxWidth"]),c=zwn(this.shapeMap.key,i,s,r,o),u=this.shapeMap.key.getLocalBounds(),d=V$i([u.min,u.max],a);return Object.assign({wordWrapWidth:d},c,l)}getBadgeStyle(t){if(t.badge===!1||!t.badgeText)return!1;const n=iu(t,"badge"),{offsetX:i,offsetY:r,placement:o}=n,s=vre(n,["offsetX","offsetY","placement"]);return Object.assign(s,iGi(this.shapeMap,o,t.labelPlacement,i,r))}drawArrow(t,n){var i;const r=n==="start",s=t[n==="start"?"startArrow":"endArrow"],a=this.shapeMap.key;if(s){const l=this.getArrowStyle(t,r),[c,u,d]=r?["markerStart","markerStartOffset","startArrowOffset"]:["markerEnd","markerEndOffset","endArrowOffset"],h=a.parsedStyle[c];if(h)h.attr(l);else{const f=l.src?Cj:$y,p=new f({style:l});a.style[c]=p}a.style[u]=t[d]||l.width/2+ +l.lineWidth}else{const l=r?"markerStart":"markerEnd";(i=a.style[l])===null||i===void 0||i.destroy(),a.style[l]=null}}getArrowStyle(t,n){const i=this.getShape("key").attributes,r=n?"startArrow":"endArrow",o=iu(this.getGraphicStyle(t),r),{size:s,type:a}=o,l=vre(o,["size","type"]),[c,u]=tb(fGi(i.lineWidth,s)),h=((0,kRt.isFunction)(a)?a:Wwn[a]||Uwn)(c,u);return Object.assign((0,kRt.pick)(i,["stroke","strokeOpacity","fillOpacity"]),{width:c,height:u},Object.assign({},h&&{d:h,fill:a==="simple"?"":i.stroke}),l)}drawLabelShape(t,n){const i=this.getLabelStyle(t);this.upsert("label",oN,i,n)}drawHaloShape(t,n){const i=this.getHaloStyle(t);this.upsert("halo",$y,i,n)}drawBadgeShape(t,n){const i=this.getBadgeStyle(t);this.upsert("badge",W0e,i,n)}drawSourceArrow(t){this.drawArrow(t,"start")}drawTargetArrow(t){this.drawArrow(t,"end")}drawKeyShape(t,n){const i=this.getKeyStyle(t);return this.upsert("key",$y,i,n)}render(t=this.parsedAttributes,n=this){this.drawKeyShape(t,n),this.getShape("key")&&(this.drawSourceArrow(t),this.drawTargetArrow(t),this.drawLabelShape(t,n),this.drawHaloShape(t,n),this.drawBadgeShape(t,n))}onframe(){this.drawKeyShape(this.parsedAttributes,this),this.drawSourceArrow(this.parsedAttributes),this.drawTargetArrow(this.parsedAttributes),this.drawHaloShape(this.parsedAttributes,this),this.drawLabelShape(this.parsedAttributes,this),this.drawBadgeShape(this.parsedAttributes,this)}animate(t,n){const i=super.animate(t,n);return i&&new Proxy(i,{set:(r,o,s)=>(o==="currentTime"&&Promise.resolve().then(()=>this.onframe()),Reflect.set(r,o,s))})}};Sj.defaultStyleProps={badge:!0,badgeOffsetX:0,badgeOffsetY:0,badgePlacement:"suffix",isBillboard:!0,label:!0,labelAutoRotate:!0,labelIsBillboard:!0,labelMaxWidth:"80%",labelOffsetX:4,labelOffsetY:0,labelPlacement:"center",labelTextBaseline:"middle",labelWordWrap:!1,halo:!1,haloDroppable:!1,haloLineDash:0,haloLineWidth:12,haloPointerEvents:"none",haloStrokeOpacity:.25,haloZIndex:-1,loop:!0,startArrow:!1,startArrowLineDash:0,startArrowLineJoin:"round",startArrowLineWidth:1,startArrowTransformOrigin:"center",startArrowType:"vee",endArrow:!1,endArrowLineDash:0,endArrowLineJoin:"round",endArrowLineWidth:1,endArrowTransformOrigin:"center",endArrowType:"vee",loopPlacement:"top",loopClockwise:!0};var iZ=class qwn extends Sj{constructor(t){super(Lp({style:qwn.defaultStyleProps},t))}getKeyPath(t){const[n,i]=this.getEndpoints(t),{controlPoints:r,curvePosition:o,curveOffset:s}=t,a=this.getControlPoints(n,i,oGi(o),rGi(s),r);return Vwn(n,i,a)}getControlPoints(t,n,i,r,o){return o?.length===2?o:[eje(t,n,i[0],r[0]),eje(t,n,i[1],r[1])]}};iZ.defaultStyleProps={curvePosition:.5,curveOffset:20};var Gwn=class Kwn extends iZ{constructor(t){super(Lp({style:Kwn.defaultStyleProps},t))}getControlPoints(t,n,i,r){const o=n[0]-t[0];return[[t[0]+o*i[0]+r[0],t[1]],[n[0]-o*i[1]+r[1],n[1]]]}};Gwn.defaultStyleProps={curvePosition:[.5,.5],curveOffset:[0,0]};var Ywn=class Qwn extends iZ{constructor(t){super(Lp({style:Qwn.defaultStyleProps},t))}get ref(){return this.context.model.getRootsData()[0]}getEndpoints(t){if(this.sourceNode.id===this.ref.id)return super.getEndpoints(t);const n=zf(this.ref),i=this.sourceNode.getIntersectPoint(n,!0),r=this.targetNode.getIntersectPoint(n);return[i,r]}toRadialCoordinate(t){const n=zf(this.ref),i=bu(t,n),r=q_n(wc(t,n));return[i,r]}getControlPoints(t,n,i,r){const[o,s]=this.toRadialCoordinate(t),[a]=this.toRadialCoordinate(n),l=a-o;return[[t[0]+(l*i[0]+r[0])*Math.cos(s),t[1]+(l*i[0]+r[0])*Math.sin(s)],[n[0]-(l*i[1]-r[0])*Math.cos(s),n[1]-(l*i[1]-r[0])*Math.sin(s)]]}};Ywn.defaultStyleProps={curvePosition:.5,curveOffset:20};var Zwn=class Xwn extends iZ{constructor(t){super(Lp({style:Xwn.defaultStyleProps},t))}getControlPoints(t,n,i,r){const o=n[1]-t[1];return[[t[0],t[1]+o*i[0]+r[0]],[n[0],n[1]-o*i[1]+r[1]]]}};Zwn.defaultStyleProps={curvePosition:[.5,.5],curveOffset:[0,0]};var Jwn=class e1n extends Sj{constructor(t){super(Lp({style:e1n.defaultStyleProps},t))}getKeyPath(t){const[n,i]=this.getEndpoints(t);return[["M",n[0],n[1]],["L",i[0],i[1]]]}};Jwn.defaultStyleProps={};var _Gi=on(Pi()),wGi={enableObstacleAvoidance:!1,offset:10,maxAllowedDirectionChange:Math.PI/2,maximumLoops:3e3,gridSize:5,startDirections:["top","right","bottom","left"],endDirections:["top","right","bottom","left"],directionMap:{right:{stepX:1,stepY:0},left:{stepX:-1,stepY:0},bottom:{stepX:0,stepY:1},top:{stepX:0,stepY:-1}},penalties:{0:0,90:0},distFunc:rfe},qA=e=>`${Math.round(e[0])}|||${Math.round(e[1])}`;function eR(e,t){const n=i=>Math.round(i/t);return(0,_Gi.isNumber)(e)?n(e):e.map(n)}function CGi(e,t){const n=Math.abs(e-t);return n>Math.PI?2*Math.PI-n:n}function ORt(e,t){const n=t[0]-e[0],i=t[1]-e[1];return!n&&!i?0:Math.atan2(i,n)}function t1n(e,t,n,i){const r=ORt(e,t),o=n[qA(e)],a=ORt(o||i,e);return CGi(a,r)}var SGi=(e,t)=>{const{offset:n,gridSize:i}=t,r={};return e.forEach(o=>{if(!o||o.destroyed||!o.isVisible())return;const s=iP(o.getRenderBounds(),n);for(let a=eR(s.min[0],i);a<=eR(s.max[0],i);a+=1)for(let l=eR(s.min[1],i);l<=eR(s.max[1],i);l+=1)r[`${a}|||${l}`]=!0}),r};function RRt(e,t,n){return Math.min(...t.map(i=>n(e,i)))}function xGi(e,t,n){let i=e[0],r=n(e[0],t);for(let o=0;o<e.length;o++){const s=e[o],a=n(s,t);a<r&&(i=s,r=a)}return i}var FRt=(e,t,n,i)=>{if(!t)return[e];const{directionMap:r,offset:o}=i,s=iP(t.getRenderBounds(),o),a=Object.keys(r).reduce((l,c)=>{if(n.includes(c)){const u=r[c],[d,h]=nP(s),f=[e[0]+u.stepX*d,e[1]+u.stepY*h],p=zUi(s);for(let g=0;g<p.length;g++){const m=CZe([e,f],p[g]);m&&R_n(m,s)&&l.push(m)}}return l},[]);return PC(e,s)||a.push(e),a.map(l=>eR(l,i.gridSize))},EGi=(e,t,n,i,r,o,s)=>{const a=[];let l=[o[0]===i[0]?i[0]:e[0]*s,o[1]===i[1]?i[1]:e[1]*s];a.unshift(l);let c=e,u=t[qA(c)];for(;u;){const f=u,p=c;t1n(f,p,t,n)&&(l=[f[0]===p[0]?l[0]:f[0]*s,f[1]===p[1]?l[1]:f[1]*s],a.unshift(l)),u=t[qA(f)],c=f}const d=r.map(f=>[f[0]*s,f[1]*s]),h=xGi(d,l,rfe);return a.unshift(h),a};function AGi(e,t,n,i){const r=M2(e.getCenter()),o=M2(t.getCenter()),s=Object.assign(wGi,i),{gridSize:a}=s,l=s.enableObstacleAvoidance?n:[e,t],c=SGi(l,s),u=eR(r,a),d=eR(o,a),h=FRt(r,e,s.startDirections,s),f=FRt(o,t,s.endDirections,s);h.forEach(T=>delete c[qA(T)]),f.forEach(T=>delete c[qA(T)]);const p={},g={},m={},v={},y={},b=new DGi;for(let T=0;T<h.length;T++){const M=h[T],P=qA(M);p[P]=M,v[P]=0,y[P]=RRt(M,f,s.distFunc),b.add({id:P,value:y[P]})}const w=f.map(T=>qA(T));let E=s.maximumLoops,A,D=1/0;for(const[T,M]of Object.entries(p))y[T]<=D&&(D=y[T],A=M);for(;Object.keys(p).length>0&&E>0;){const T=b.minId(!1);if(T)A=p[T];else break;const M=qA(A);if(w.includes(M))return EGi(A,m,u,o,h,d,a);delete p[M],b.remove(M),g[M]=!0;for(const P of Object.values(s.directionMap)){const F=_s(A,[P.stepX,P.stepY]),N=qA(F);if(g[N])continue;const j=t1n(A,F,m,u);if(j>s.maxAllowedDirectionChange||c[N])continue;p[N]||(p[N]=F);const W=s.penalties[j],J=s.distFunc(A,F)+(isNaN(W)?a:W),ee=v[M]+J,Q=v[N];Q&&ee>=Q||(m[N]=A,v[N]=ee,y[N]=ee+RRt(F,f,s.distFunc),b.add({id:N,value:y[N]}))}E-=1}return[]}var DGi=class{constructor(){this.arr=[],this.map={},this.arr=[],this.map={}}_innerAdd(e,t){let n=0,i=t-1;for(;i-n>1;){const r=Math.floor((n+i)/2);if(this.arr[r].value>e.value)i=r;else if(this.arr[r].value<e.value)n=r;else{this.arr.splice(r,0,e),this.map[e.id]=!0;return}}this.arr.splice(i,0,e),this.map[e.id]=!0}add(e){delete this.map[e.id];const t=this.arr.length;if(!t||this.arr[t-1].value<e.value){this.arr.push(e),this.map[e.id]=!0;return}this._innerAdd(e,t)}remove(e){this.map[e]&&delete this.map[e]}_clearAndGetMinId(){let e;for(let t=this.arr.length-1;t>=0;t--)this.map[this.arr[t].id]?e=this.arr[t].id:this.arr.splice(t,1);return e}_findFirstId(){for(;this.arr.length;){const e=this.arr.shift();if(this.map[e.id])return e.id}}minId(e){return e?this._clearAndGetMinId():this._findFirstId()}},n1n=class i1n extends Sj{constructor(t){super(Lp({style:i1n.defaultStyleProps},t))}getControlPoints(t){const{router:n}=t,{sourceNode:i,targetNode:r}=this,[o,s]=this.getEndpoints(t,!1);let a=[];if(!n)a=t.controlPoints;else if(n.type==="shortest-path"){const l=this.context.element.getNodes();a=AGi(i,r,l,n),a.length||(a=IRt(o,s,i,r,t.controlPoints,{padding:n.offset}))}else n.type==="orth"&&(a=IRt(o,s,i,r,t.controlPoints,n));return a}getPoints(t){const n=this.getControlPoints(t),[i,r]=this.getEndpoints(t,!0,n);return[i,...n,r]}getKeyPath(t){const n=this.getPoints(t);return LZe(n,t.radius)}getLoopPath(t){const{sourcePort:n,targetPort:i,radius:r}=t,o=this.sourceNode,s=GI(o),a=Math.max(TE(s),kE(s))/4,{placement:l,clockwise:c,dist:u=a}=iu(this.getGraphicStyle(t),"loop");return dGi(o,r,l,c,u,n,i)}};n1n.defaultStyleProps={radius:0,controlPoints:[],router:!1};var r1n=class o1n extends Sj{constructor(t){super(Lp({style:o1n.defaultStyleProps},t))}getKeyPath(t){const{curvePosition:n,curveOffset:i}=t,[r,o]=this.getEndpoints(t),s=t.controlPoint||eje(r,o,n,i);return sGi(r,o,s)}};r1n.defaultStyleProps={curvePosition:.5,curveOffset:30};var TGi=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};function rZ(e){return e instanceof MT&&e.type==="node"}function s1n(e){return e instanceof Sj}function NZe(e){return e instanceof $0e}function kGi(e){return rZ(e)||s1n(e)||NZe(e)}function IGi(e,t){return!e||!t?!1:e===t}var LGi={top:[.5,0],right:[1,.5],bottom:[.5,1],left:[0,.5],"left-top":[0,0],"top-left":[0,0],"left-bottom":[0,1],"bottom-left":[0,1],"right-top":[1,0],"top-right":[1,0],"right-bottom":[1,1],"bottom-right":[1,1],default:[.5,.5]};function PZe(e,t,n=LGi,i=!0){const r=[.5,.5],o=(0,IR.isString)(t)?(0,IR.get)(n,t.toLocaleLowerCase(),r):t;if(!i&&(0,IR.isString)(t))return o;const[s,a]=o||r;return[e.min[0]+TE(e)*s,e.min[1]+kE(e)*a]}function MZe(e){if(!e)return{};const t=e.getPorts();return(e.attributes.ports||[]).forEach((i,r)=>{var o;const{key:s,placement:a}=i;a1n(i)&&(t[o=s||r]||(t[o]=rD(e.getShape("key").getBounds(),a)))}),t}function a1n(e){const{r:t}=e;return!t||Number(t)===0}function sN(e){return Y9(e)?e:e.getPosition()}function NGi(e,t,n,i){const r=BRt(e,t,n,i),o=BRt(t,e,i,n);return[r,o]}function BRt(e,t,n,i){const r=MZe(e);if(n)return r[n];const o=Object.values(r);if(o.length===0)return;const s=o.map(c=>sN(c)),a=PGi(t,i),[l]=A$i(s,a);return o.find(c=>sN(c)===l)}function PGi(e,t){const n=MZe(e);if(t)return[sN(n[t])];const i=Object.values(n);return i.length>0?i.map(r=>sN(r)):[e.getCenter()]}function jRt(e,t){return NZe(e)||rZ(e)?nje(e,t):oK(e,t)}function oK(e,t){if(!e||!t)return[0,0,0];if(Y9(e))return e;if(e.attributes.linkToCenter)return e.getPosition();const n=Y9(t)?t:rZ(t)?t.getCenter():t.getPosition();return H0e(n,e.getBounds())}function nje(e,t){if(!e||!t)return[0,0,0];const n=Y9(t)?t:rZ(t)?t.getCenter():t.getPosition();return e.getIntersectPoint(n)||e.getCenter()}function zRt(e,t="bottom",n=0,i=0,r=!1){const o=t.split("-"),[s,a]=rD(e,t),[l,c]=r?["bottom","top"]:["top","bottom"],u=o.includes("top")?c:o.includes("bottom")?l:"middle",d=o.includes("left")?"right":o.includes("right")?"left":"center";return{transform:[["translate",s+n,a+i]],textBaseline:u,textAlign:d}}function MGi(e,t){return[[0,-e],[t*Math.cos(3*Math.PI/10),-t*Math.sin(3*Math.PI/10)],[e*Math.cos(Math.PI/10),-e*Math.sin(Math.PI/10)],[t*Math.cos(Math.PI/10),t*Math.sin(Math.PI/10)],[e*Math.cos(3*Math.PI/10),e*Math.sin(3*Math.PI/10)],[0,t],[-e*Math.cos(3*Math.PI/10),e*Math.sin(3*Math.PI/10)],[-t*Math.cos(Math.PI/10),t*Math.sin(Math.PI/10)],[-e*Math.cos(Math.PI/10),-e*Math.sin(Math.PI/10)],[-t*Math.cos(3*Math.PI/10),-t*Math.sin(3*Math.PI/10)]]}function OGi(e,t){const n={};return n.top=[0,-e],n.left=[-e*Math.cos(Math.PI/10),-e*Math.sin(Math.PI/10)],n["left-bottom"]=[-e*Math.cos(3*Math.PI/10),e*Math.sin(3*Math.PI/10)],n.bottom=[0,t],n["right-bottom"]=[e*Math.cos(3*Math.PI/10),e*Math.sin(3*Math.PI/10)],n.right=n.default=[e*Math.cos(Math.PI/10),-e*Math.sin(Math.PI/10)],n}function RGi(e,t,n){const i=t/2,r=e/2,o={up:[[-r,i],[r,i],[0,-i]],left:[[-r,0],[r,i],[r,-i]],right:[[-r,i],[-r,-i],[r,0]],down:[[-r,-i],[r,-i],[0,i]]};return o[n]||o.up}function FGi(e,t,n){const i=t/2,r=e/2,o={};return n==="down"?(o.bottom=o.default=[0,i],o.right=[r,-i],o.left=[-r,-i]):n==="left"?(o.top=[r,-i],o.bottom=[r,i],o.left=o.default=[-r,0]):n==="right"?(o.top=[-r,-i],o.bottom=[-r,i],o.right=o.default=[r,0]):(o.left=[-r,i],o.top=o.default=[0,-i],o.right=[r,i]),o}function BGi(e,t){return[[0,-t/2],[e/2,0],[0,t/2],[-e/2,0]]}function l1n(e){return(0,IR.get)(e,["style","visibility"])!=="hidden"}function jGi(e,t){const{zIndex:n,transform:i,transformOrigin:r,visibility:o,cursor:s,clipPath:a,component:l}=t,c=TGi(t,["zIndex","transform","transformOrigin","visibility","cursor","clipPath","component"]);Object.assign(e.attributes,c),i&&e.setAttribute("transform",i),(0,IR.isNumber)(n)&&e.setAttribute("zIndex",n),r&&e.setAttribute("transformOrigin",r),o&&e.setAttribute("visibility",o),s&&e.setAttribute("cursor",s),a&&e.setAttribute("clipPath",a),l&&e.setAttribute("component",l)}function ije(e,t){"update"in e?e.update(t):e.attr(t)}function zGi(e){return[[0,e],[e*Math.sqrt(3)/2,e/2],[e*Math.sqrt(3)/2,-e/2],[0,-e],[-e*Math.sqrt(3)/2,-e/2],[-e*Math.sqrt(3)/2,e/2]]}function VGi(e){(0,IR.set)(e,"__to_be_destroyed__",!0)}function oZ(e){return(0,IR.get)(e,"__to_be_destroyed__",!1)}var HGi=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,[])).next())})},c1n=class u1n extends ny{constructor(t,n){super(t,Object.assign({},u1n.defaultOptions,n)),this.onCollapseExpand=i=>HGi(this,void 0,void 0,function*(){if(!this.validate(i))return;const{target:r}=i;if(!kGi(r))return;const o=r.id,{model:s,graph:a}=this.context,l=s.getElementDataById(o);if(!l)return!1;const{onCollapse:c,onExpand:u,animation:d,align:h}=this.options;S0(l)?(yield a.expandElement(o,{animation:d,align:h}),u?.(o)):(yield a.collapseElement(o,{animation:d,align:h}),c?.(o))}),this.bindEvents()}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}bindEvents(){const{graph:t}=this.context,{trigger:n}=this.options;t.on(`node:${n}`,this.onCollapseExpand),t.on(`combo:${n}`,this.onCollapseExpand)}unbindEvents(){const{graph:t}=this.context,{trigger:n}=this.options;t.off(`node:${n}`,this.onCollapseExpand),t.off(`combo:${n}`,this.onCollapseExpand)}validate(t){if(this.destroyed)return!1;const{enable:n}=this.options;return(0,N$i.isFunction)(n)?n(t):!!n}destroy(){this.unbindEvents(),super.destroy()}};c1n.defaultOptions={enable:!0,animation:!0,trigger:Rn.DBLCLICK,align:!0};var VRt=on(Pi()),sK=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};function Wk(e,t){const{data:n,style:i}=e,r=sK(e,["data","style"]),{data:o,style:s}=t,a=sK(t,["data","style"]),l=Object.assign(Object.assign({},r),a);return(n||o)&&Object.assign(l,{data:Object.assign(Object.assign({},n),o)}),(i||s)&&Object.assign(l,{style:Object.assign(Object.assign({},i),s)}),l}function NMe(e){const{data:t,style:n}=e,r=sK(e,["data","style"]);return t&&(r.data=Object.assign({},t)),n&&(r.style=Object.assign({},n)),r}function X4(e={},t={}){const{states:n=[],data:i={},style:r={},children:o=[]}=e,s=sK(e,["states","data","style","children"]),{states:a=[],data:l={},style:c={},children:u=[]}=t,d=sK(t,["states","data","style","children"]),h=(p,g)=>p.length!==g.length?!1:p.every((m,v)=>m===g[v]),f=(p,g)=>{const m=Object.keys(p),v=Object.keys(g);return m.length!==v.length?!1:m.every(y=>p[y]===g[y])};return!(!f(s,d)||!h(o,u)||!h(n,a)||!f(i,l)||!f(r,c))}var d1n="__internal_override__";function HRt(e){return e[d1n]!==!1}var yre=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,[])).next())})},WGi="g6-create-edge-assist-edge-id",bre="g6-create-edge-assist-node-id",h1n=class f1n extends ny{constructor(t,n){super(t,Object.assign({},f1n.defaultOptions,n)),this.drop=i=>yre(this,void 0,void 0,function*(){const{targetType:r}=i;["combo","node"].includes(r)&&this.source?yield this.handleCreateEdge(i):yield this.cancelEdge()}),this.handleCreateEdge=i=>yre(this,void 0,void 0,function*(){var r,o,s;if(!this.validate(i))return;const{graph:a,canvas:l,batch:c,element:u}=this.context,{style:d}=this.options;if(this.source){this.createEdge(i),yield this.cancelEdge();return}c.startBatch(),l.setCursor("crosshair"),this.source=this.getSelectedNodeIDs([i.target.id])[0];const h=a.getElementData(this.source);a.addNodeData([{id:bre,type:"circle",[d1n]:!1,style:{size:1,visibility:"hidden",ports:[{key:"port-1",placement:[.5,.5]}],x:(r=h.style)===null||r===void 0?void 0:r.x,y:(o=h.style)===null||o===void 0?void 0:o.y}}]),a.addEdgeData([{id:WGi,source:this.source,target:bre,style:Object.assign({pointerEvents:"none"},d)}]),yield(s=u.draw({animation:!1}))===null||s===void 0?void 0:s.finished}),this.updateAssistEdge=i=>yre(this,void 0,void 0,function*(){var r;if(!this.source)return;const{model:o,element:s}=this.context;o.translateNodeTo(bre,[i.client.x,i.client.y]),yield(r=s.draw({animation:!1,silence:!0}))===null||r===void 0?void 0:r.finished}),this.createEdge=i=>{var r,o;const{graph:s}=this.context,{style:a,onFinish:l,onCreate:c}=this.options;if(((r=i.target)===null||r===void 0?void 0:r.id)===void 0||this.source===void 0)return;const d=(o=this.getSelectedNodeIDs([i.target.id]))===null||o===void 0?void 0:o[0],h=`${this.source}-${d}-${(0,VRt.uniqueId)()}`,f=c({id:h,source:this.source,target:d,style:a});f&&(s.addEdgeData([f]),l(f))},this.cancelEdge=()=>yre(this,void 0,void 0,function*(){var i;if(!this.source)return;const{graph:r,element:o,batch:s}=this.context;r.removeNodeData([bre]),this.source=void 0,yield(i=o.draw({animation:!1}))===null||i===void 0?void 0:i.finished,s.endBatch()}),this.bindEvents()}update(t){super.update(t),this.bindEvents()}bindEvents(){const{graph:t}=this.context,{trigger:n}=this.options;this.unbindEvents(),n==="click"?(t.on(gp.CLICK,this.handleCreateEdge),t.on(_x.CLICK,this.handleCreateEdge),t.on(ag.CLICK,this.cancelEdge),t.on(iN.CLICK,this.cancelEdge)):(t.on(gp.DRAG_START,this.handleCreateEdge),t.on(_x.DRAG_START,this.handleCreateEdge),t.on(Rn.POINTER_UP,this.drop)),t.on(Rn.POINTER_MOVE,this.updateAssistEdge)}getSelectedNodeIDs(t){return Array.from(new Set(this.context.graph.getElementDataByState("node",this.options.state).map(n=>n.id).concat(t)))}validate(t){if(this.destroyed)return!1;const{enable:n}=this.options;return(0,VRt.isFunction)(n)?n(t):!!n}unbindEvents(){const{graph:t}=this.context;t.off(gp.CLICK,this.handleCreateEdge),t.off(_x.CLICK,this.handleCreateEdge),t.off(ag.CLICK,this.cancelEdge),t.off(iN.CLICK,this.cancelEdge),t.off(gp.DRAG_START,this.handleCreateEdge),t.off(_x.DRAG_START,this.handleCreateEdge),t.off(Rn.POINTER_UP,this.drop),t.off(Rn.POINTER_MOVE,this.updateAssistEdge)}destroy(){this.unbindEvents(),super.destroy()}};h1n.defaultOptions={animation:!0,enable:!0,style:{},trigger:"drag",onCreate:e=>e,onFinish:()=>{}};var WRt=on(Pi()),URt=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,[])).next())})},p1n=class g1n extends ny{constructor(t,n){super(t,Object.assign({},g1n.defaultOptions,n)),this.isDragging=!1,this.onDragStart=i=>{this.validate(i)&&(this.isDragging=!0,this.context.canvas.setCursor("grabbing"))},this.onDrag=i=>{var r,o,s,a;if(!this.isDragging||tZ.isPinching)return;const l=(o=(r=i.movement)===null||r===void 0?void 0:r.x)!==null&&o!==void 0?o:i.dx,c=(a=(s=i.movement)===null||s===void 0?void 0:s.y)!==null&&a!==void 0?a:i.dy;(l|c)!==0&&this.translate([l,c],!1)},this.onDragEnd=()=>{var i,r;this.isDragging=!1,this.context.canvas.setCursor(this.defaultCursor),(r=(i=this.options).onFinish)===null||r===void 0||r.call(i)},this.invokeOnFinish=(0,WRt.debounce)(()=>{var i,r;(r=(i=this.options).onFinish)===null||r===void 0||r.call(i)},300),this.shortcut=new rP(t.graph),this.bindEvents(),this.defaultCursor=this.context.canvas.getConfig().cursor||"default"}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}bindEvents(){const{trigger:t}=this.options;if((0,WRt.isObject)(t)){const{up:n=[],down:i=[],left:r=[],right:o=[]}=t;this.shortcut.bind(n,s=>this.onTranslate([0,1],s)),this.shortcut.bind(i,s=>this.onTranslate([0,-1],s)),this.shortcut.bind(r,s=>this.onTranslate([1,0],s)),this.shortcut.bind(o,s=>this.onTranslate([-1,0],s))}else{const{graph:n}=this.context;n.on(Rn.DRAG_START,this.onDragStart),n.on(Rn.DRAG,this.onDrag),n.on(Rn.DRAG_END,this.onDragEnd)}}onTranslate(t,n){return URt(this,void 0,void 0,function*(){if(!this.validate(n))return;const{sensitivity:i}=this.options,r=i*-1;yield this.translate(U1(t,r),this.options.animation),this.invokeOnFinish()})}translate(t,n){return URt(this,void 0,void 0,function*(){t=this.clampByDirection(t),t=this.clampByRange(t),t=this.clampByRotation(t),yield this.context.graph.translateBy(t,n)})}clampByRotation([t,n]){const i=this.context.graph.getRotation();return G_n([t,n],i)}clampByDirection([t,n]){const{direction:i}=this.options;return i==="x"?n=0:i==="y"&&(t=0),[t,n]}clampByRange([t,n]){const{viewport:i,canvas:r}=this.context,[o,s]=r.getSize(),[a,l,c,u]=Lw(this.options.range),d=[s*a,o*l,s*c,o*u],h=iP(vZe(i.getCanvasCenter()),d),f=wc(i.getViewportCenter(),[t,n,0]);if(!PC(f,h)){const{min:[p,g],max:[m,v]}=h;(f[0]<p&&t>0||f[0]>m&&t<0)&&(t=0),(f[1]<g&&n>0||f[1]>v&&n<0)&&(n=0)}return[t,n]}validate(t){if(this.destroyed)return!1;const{enable:n}=this.options;return typeof n=="function"?n(t):!!n}unbindEvents(){this.shortcut.unbindAll();const{graph:t}=this.context;t.off(Rn.DRAG_START,this.onDragStart),t.off(Rn.DRAG,this.onDrag),t.off(Rn.DRAG_END,this.onDragEnd)}destroy(){this.shortcut.destroy(),this.unbindEvents(),this.context.canvas.setCursor(this.defaultCursor),super.destroy()}};p1n.defaultOptions={enable:e=>"targetType"in e?e.targetType==="canvas":!0,sensitivity:10,direction:"both",range:1/0};var UGi=on(Pi()),$Rt=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,[])).next())})},OZe=class m1n extends ny{constructor(t,n){super(t,Object.assign({},m1n.defaultOptions,n)),this.enable=!1,this.enableElements=["node","combo"],this.target=[],this.shadowOrigin=[0,0],this.hiddenEdges=[],this.isDragging=!1,this.onDrop=i=>$Rt(this,void 0,void 0,function*(){var r;if(this.options.dropEffect!=="link")return;const{model:o,element:s}=this.context,a=i.target.id;this.target.forEach(l=>{const c=o.getParentData(l,zc);c&&an(c)===a&&o.refreshComboData(a),o.setParent(l,a,zc)}),yield(r=s?.draw({animation:!0}))===null||r===void 0?void 0:r.finished}),this.setCursor=i=>{if(this.isDragging)return;const{type:r}=i,{canvas:o}=this.context,{cursor:s}=this.options;r===Rn.POINTER_ENTER?o.setCursor(s?.grab||"grab"):o.setCursor(s?.default||"default")},this.shortcut=new rP(t.graph),this.onDragStart=this.onDragStart.bind(this),this.onDrag=this.onDrag.bind(this),this.onDragEnd=this.onDragEnd.bind(this),this.onDrop=this.onDrop.bind(this),this.bindEvents()}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}bindEvents(){const{graph:t,canvas:n}=this.context,i=n.getLayer().getContextService().$canvas;i&&(i.addEventListener("blur",this.onDragEnd),i.addEventListener("contextmenu",this.onDragEnd)),this.enableElements.forEach(r=>{t.on(`${r}:${Rn.DRAG_START}`,this.onDragStart),t.on(`${r}:${Rn.DRAG}`,this.onDrag),t.on(`${r}:${Rn.DRAG_END}`,this.onDragEnd),t.on(`${r}:${Rn.POINTER_ENTER}`,this.setCursor),t.on(`${r}:${Rn.POINTER_LEAVE}`,this.setCursor)}),["link"].includes(this.options.dropEffect)&&(t.on(_x.DROP,this.onDrop),t.on(ag.DROP,this.onDrop))}getSelectedNodeIDs(t){return Array.from(new Set(this.context.graph.getElementDataByState("node",this.options.state).map(n=>n.id).concat(t)))}getDelta(t){const n=this.context.graph.getZoom();return MC([t.dx,t.dy],n)}onDragStart(t){var n;if(this.enable=this.validate(t),!this.enable)return;const{batch:i,canvas:r,graph:o}=this.context;r.setCursor(((n=this.options.cursor)===null||n===void 0?void 0:n.grabbing)||"grabbing"),this.isDragging=!0,i.startBatch();const s=t.target.id;o.getElementState(s).includes(this.options.state)?this.target=this.getSelectedNodeIDs([s]):this.target=[s],this.hideEdge(),this.context.graph.frontElement(this.target),this.options.shadow&&this.createShadow(this.target)}onDrag(t){if(!this.enable)return;const n=this.getDelta(t);this.options.shadow?this.moveShadow(n):this.moveElement(this.target,n)}onDragEnd(){var t,n,i;if(!this.enable)return;if(this.enable=!1,this.options.shadow){if(!this.shadow)return;this.shadow.style.visibility="hidden";const{x:s=0,y:a=0}=this.shadow.attributes,[l,c]=wc([+s,+a],this.shadowOrigin);this.moveElement(this.target,[l,c])}this.showEdges(),(n=(t=this.options).onFinish)===null||n===void 0||n.call(t,this.target);const{batch:r,canvas:o}=this.context;r.endBatch(),o.setCursor(((i=this.options.cursor)===null||i===void 0?void 0:i.grab)||"grab"),this.isDragging=!1,this.target=[]}isKeydown(){const{trigger:t}=this.options;return t?.length?this.shortcut.match(t):!0}validate(t){if(this.destroyed||oZ(t.target)||this.context.graph.isCollapsingExpanding||!this.isKeydown())return!1;const{enable:n}=this.options;return(0,UGi.isFunction)(n)?n(t):!!n}clampByRotation([t,n]){const i=this.context.graph.getRotation();return G_n([t,n],i)}moveElement(t,n){return $Rt(this,void 0,void 0,function*(){const{graph:i,model:r}=this.context,{dropEffect:o}=this.options;o==="move"&&t.forEach(s=>r.refreshComboData(s)),i.translateElementBy(Object.fromEntries(t.map(s=>[s,this.clampByRotation(n)])),!1)})}moveShadow(t){if(!this.shadow)return;const{x:n=0,y:i=0}=this.shadow.attributes,[r,o]=t;this.shadow.attr({x:+n+r,y:+i+o})}createShadow(t){const n=iu(this.options,"shadow"),i=eZ(t.map(c=>this.context.element.getElement(c).getBounds())),[r,o]=i.min;this.shadowOrigin=[r,o];const[s,a]=nP(i),l={width:s,height:a,x:r,y:o};this.shadow?this.shadow.attr(Object.assign(Object.assign(Object.assign({},n),l),{visibility:"visible"})):(this.shadow=new kp({style:Object.assign(Object.assign(Object.assign({$layer:"transient"},n),l),{pointerEvents:"none"})}),this.context.canvas.appendChild(this.shadow))}showEdges(){this.options.shadow||this.hiddenEdges.length===0||(this.context.graph.showElement(this.hiddenEdges),this.hiddenEdges=[])}hideEdge(){const{hideEdge:t,shadow:n}=this.options;if(t==="none"||n)return;const{graph:i}=this.context;t==="all"?this.hiddenEdges=i.getEdgeData().map(an):this.hiddenEdges=Array.from(new Set(this.target.map(r=>i.getRelatedEdgesData(r,t).map(an)).flat())),i.hideElement(this.hiddenEdges)}unbindEvents(){const{graph:t,canvas:n}=this.context,i=n.getLayer().getContextService().$canvas;i&&(i.removeEventListener("blur",this.onDragEnd),i.removeEventListener("contextmenu",this.onDragEnd)),this.enableElements.forEach(r=>{t.off(`${r}:${Rn.DRAG_START}`,this.onDragStart),t.off(`${r}:${Rn.DRAG}`,this.onDrag),t.off(`${r}:${Rn.DRAG_END}`,this.onDragEnd),t.off(`${r}:${Rn.POINTER_ENTER}`,this.setCursor),t.off(`${r}:${Rn.POINTER_LEAVE}`,this.setCursor)}),t.off(`combo:${Rn.DROP}`,this.onDrop),t.off(`canvas:${Rn.DROP}`,this.onDrop)}destroy(){var t;this.unbindEvents(),(t=this.shadow)===null||t===void 0||t.destroy(),super.destroy()}};OZe.defaultOptions={animation:!0,enable:e=>["node","combo"].includes(e.targetType),trigger:[],dropEffect:"move",state:"selected",hideEdge:"none",shadow:!1,shadowZIndex:100,shadowFill:"#F3F9FF",shadowFillOpacity:.5,shadowStroke:"#1890FF",shadowStrokeOpacity:.9,shadowLineDash:[5,5],cursor:{default:"default",grab:"grab",grabbing:"grabbing"}};var $Gi="*",qGi=(function(){function e(){this._events={}}return e.prototype.on=function(t,n,i){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:n,once:!!i}),this},e.prototype.once=function(t,n){return this.on(t,n,!0)},e.prototype.emit=function(t){for(var n=this,i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];var o=this._events[t]||[],s=this._events[$Gi]||[],a=function(l){for(var c=l.length,u=0;u<c;u++)if(l[u]){var d=l[u],h=d.callback,f=d.once;f&&(l.splice(u,1),l.length===0&&delete n._events[t],c--,u--),h.apply(n,i)}};a(o),a(s)},e.prototype.off=function(t,n){if(!t)this._events={};else if(!n)delete this._events[t];else{for(var i=this._events[t]||[],r=i.length,o=0;o<r;o++)i[o].callback===n&&(i.splice(o,1),r--,o--);i.length===0&&delete this._events[t]}return this},e.prototype.getEvents=function(){return this._events},e})(),RZe=qGi;function rje(e,t,n,i){for(;e.length;){const r=e.shift();if(n(r))return!0;t.add(r.id),i(r.id).forEach(s=>{t.has(s.id)||(t.add(s.id),e.push(s))})}return!1}function ufe(e,t,n,i){if(n(e))return!0;t.add(e.id);for(const o of i(e.id))if(!t.has(o.id)&&ufe(o,t,n,i))return!0;return!1}var qRt=()=>!0,GGi=class{graph;nodeFilter;edgeFilter;cacheEnabled;inEdgesMap=new Map;outEdgesMap=new Map;bothEdgesMap=new Map;allNodesMap=new Map;allEdgesMap=new Map;constructor(e){this.graph=e.graph;const t=e.nodeFilter||qRt,n=e.edgeFilter||qRt;this.nodeFilter=t,this.edgeFilter=i=>{const{source:r,target:o}=this.graph.getEdgeDetail(i.id);return!t(r)||!t(o)?!1:n(i,r,o)},e.cache==="auto"?(this.cacheEnabled=!0,this.startAutoCache()):e.cache==="manual"?this.cacheEnabled=!0:this.cacheEnabled=!1}clearCache=()=>{this.inEdgesMap.clear(),this.outEdgesMap.clear(),this.bothEdgesMap.clear(),this.allNodesMap.clear(),this.allEdgesMap.clear()};refreshCache=()=>{this.clearCache(),this.updateCache(this.graph.getAllNodes().map(e=>e.id))};updateCache=e=>{const t=new Set;e.forEach(n=>{const i=this.bothEdgesMap.get(n);if(i&&i.forEach(r=>t.add(r.id)),!this.hasNode(n))this.inEdgesMap.delete(n),this.outEdgesMap.delete(n),this.bothEdgesMap.delete(n),this.allNodesMap.delete(n);else{const r=this.graph.getRelatedEdges(n,"in").filter(this.edgeFilter),o=this.graph.getRelatedEdges(n,"out").filter(this.edgeFilter),s=Array.from(new Set([...r,...o]));s.forEach(a=>t.add(a.id)),this.inEdgesMap.set(n,r),this.outEdgesMap.set(n,o),this.bothEdgesMap.set(n,s),this.allNodesMap.set(n,this.graph.getNode(n))}}),t.forEach(n=>{this.hasEdge(n)?this.allEdgesMap.set(n,this.graph.getEdge(n)):this.allEdgesMap.delete(n)})};startAutoCache(){this.refreshCache(),this.graph.on("changed",this.handleGraphChanged)}stopAutoCache(){this.graph.off("changed",this.handleGraphChanged)}handleGraphChanged=e=>{const t=new Set;e.changes.forEach(n=>{switch(n.type){case"NodeAdded":t.add(n.value.id);break;case"NodeDataUpdated":t.add(n.id);break;case"EdgeAdded":t.add(n.value.source),t.add(n.value.target);break;case"EdgeUpdated":(n.propertyName==="source"||n.propertyName==="target")&&(t.add(n.oldValue),t.add(n.newValue));break;case"EdgeDataUpdated":if(e.graph.hasEdge(n.id)){const i=e.graph.getEdge(n.id);t.add(i.source),t.add(i.target)}break;case"EdgeRemoved":t.add(n.value.source),t.add(n.value.target);break;case"NodeRemoved":t.add(n.value.id);break}}),this.updateCache(t)};checkNodeExistence(e){this.getNode(e)}hasNode(e){if(!this.graph.hasNode(e))return!1;const t=this.graph.getNode(e);return this.nodeFilter(t)}areNeighbors(e,t){return this.checkNodeExistence(e),this.getNeighbors(t).some(n=>n.id===e)}getNode(e){const t=this.graph.getNode(e);if(!this.nodeFilter(t))throw new Error("Node not found for id: "+e);return t}getRelatedEdges(e,t){return this.checkNodeExistence(e),this.cacheEnabled?t==="in"?this.inEdgesMap.get(e):t==="out"?this.outEdgesMap.get(e):this.bothEdgesMap.get(e):this.graph.getRelatedEdges(e,t).filter(this.edgeFilter)}getDegree(e,t){return this.getRelatedEdges(e,t).length}getSuccessors(e){const n=this.getRelatedEdges(e,"out").map(i=>this.getNode(i.target));return Array.from(new Set(n))}getPredecessors(e){const n=this.getRelatedEdges(e,"in").map(i=>this.getNode(i.source));return Array.from(new Set(n))}getNeighbors(e){const t=this.getPredecessors(e),n=this.getSuccessors(e);return Array.from(new Set([...t,...n]))}hasEdge(e){if(!this.graph.hasEdge(e))return!1;const t=this.graph.getEdge(e);return this.edgeFilter(t)}getEdge(e){const t=this.graph.getEdge(e);if(!this.edgeFilter(t))throw new Error("Edge not found for id: "+e);return t}getEdgeDetail(e){const t=this.getEdge(e);return{edge:t,source:this.getNode(t.source),target:this.getNode(t.target)}}hasTreeStructure(e){return this.graph.hasTreeStructure(e)}getRoots(e){return this.graph.getRoots(e).filter(this.nodeFilter)}getChildren(e,t){return this.checkNodeExistence(e),this.graph.getChildren(e,t).filter(this.nodeFilter)}getParent(e,t){this.checkNodeExistence(e);const n=this.graph.getParent(e,t);return!n||!this.nodeFilter(n)?null:n}getAllNodes(){return this.cacheEnabled?Array.from(this.allNodesMap.values()):this.graph.getAllNodes().filter(this.nodeFilter)}getAllEdges(){return this.cacheEnabled?Array.from(this.allEdgesMap.values()):this.graph.getAllEdges().filter(this.edgeFilter)}bfs(e,t,n="out"){const i={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[n];rje([this.getNode(e)],new Set,t,i)}dfs(e,t,n="out"){const i={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[n];ufe(this.getNode(e),new Set,t,i)}},FZe=class v1n extends RZe{nodeMap=new Map;edgeMap=new Map;inEdgesMap=new Map;outEdgesMap=new Map;bothEdgesMap=new Map;treeIndices=new Map;changes=[];batchCount=0;onChanged=()=>{};constructor(t){super(),t&&(t.nodes&&this.addNodes(t.nodes),t.edges&&this.addEdges(t.edges),t.tree&&this.addTree(t.tree),t.onChanged&&(this.onChanged=t.onChanged))}batch=t=>{this.batchCount+=1,t(),this.batchCount-=1,this.batchCount||this.commit()};commit(){const t=this.changes;this.changes=[];const n={graph:this,changes:t};this.emit("changed",n),this.onChanged(n)}reduceChanges(t){let n=[];return t.forEach(i=>{switch(i.type){case"NodeRemoved":{let r=!1;n=n.filter(o=>{if(o.type==="NodeAdded"){const s=o.value.id===i.value.id;return s&&(r=!0),!s}else{if(o.type==="NodeDataUpdated")return o.id!==i.value.id;if(o.type==="TreeStructureChanged")return o.nodeId!==i.value.id}return!0}),r||n.push(i);break}case"EdgeRemoved":{let r=!1;n=n.filter(o=>{if(o.type==="EdgeAdded"){const s=o.value.id===i.value.id;return s&&(r=!0),!s}else if(o.type==="EdgeDataUpdated"||o.type==="EdgeUpdated")return o.id!==i.value.id;return!0}),r||n.push(i);break}case"NodeDataUpdated":case"EdgeDataUpdated":case"EdgeUpdated":{const r=n.findIndex(s=>s.type===i.type&&s.id===i.id&&(i.propertyName===void 0||s.propertyName===i.propertyName)),o=n[r];o?i.propertyName!==void 0?o.newValue=i.newValue:(n.splice(r,1),n.push(i)):n.push(i);break}case"TreeStructureDetached":{n=n.filter(r=>r.type==="TreeStructureAttached"||r.type==="TreeStructureChanged"?r.treeKey!==i.treeKey:!0),n.push(i);break}case"TreeStructureChanged":{const r=n.find(o=>o.type==="TreeStructureChanged"&&o.treeKey===i.treeKey&&o.nodeId===i.nodeId);r?r.newParentId=i.newParentId:n.push(i);break}default:n.push(i);break}}),n}checkNodeExistence(t){this.getNode(t)}hasNode(t){return this.nodeMap.has(t)}areNeighbors(t,n){return this.getNeighbors(n).some(i=>i.id===t)}getNode(t){const n=this.nodeMap.get(t);if(!n)throw new Error("Node not found for id: "+t);return n}getRelatedEdges(t,n){if(this.checkNodeExistence(t),n==="in"){const i=this.inEdgesMap.get(t);return Array.from(i)}else if(n==="out"){const i=this.outEdgesMap.get(t);return Array.from(i)}else{const i=this.bothEdgesMap.get(t);return Array.from(i)}}getDegree(t,n){return this.getRelatedEdges(t,n).length}getSuccessors(t){const i=this.getRelatedEdges(t,"out").map(r=>this.getNode(r.target));return Array.from(new Set(i))}getPredecessors(t){const i=this.getRelatedEdges(t,"in").map(r=>this.getNode(r.source));return Array.from(new Set(i))}getNeighbors(t){const n=this.getPredecessors(t),i=this.getSuccessors(t);return Array.from(new Set([...n,...i]))}doAddNode(t){if(this.hasNode(t.id))throw new Error("Node already exists: "+t.id);this.nodeMap.set(t.id,t),this.inEdgesMap.set(t.id,new Set),this.outEdgesMap.set(t.id,new Set),this.bothEdgesMap.set(t.id,new Set),this.treeIndices.forEach(n=>{n.childrenMap.set(t.id,new Set)}),this.changes.push({type:"NodeAdded",value:t})}addNodes(t){this.batch(()=>{for(const n of t)this.doAddNode(n)})}addNode(t){this.addNodes([t])}doRemoveNode(t){const n=this.getNode(t);this.bothEdgesMap.get(t)?.forEach(r=>this.doRemoveEdge(r.id)),this.nodeMap.delete(t),this.treeIndices.forEach(r=>{r.childrenMap.get(t)?.forEach(s=>{r.parentMap.delete(s.id)});const o=r.parentMap.get(t);o&&r.childrenMap.get(o.id)?.delete(n),r.parentMap.delete(t),r.childrenMap.delete(t)}),this.bothEdgesMap.delete(t),this.inEdgesMap.delete(t),this.outEdgesMap.delete(t),this.changes.push({type:"NodeRemoved",value:n})}removeNodes(t){this.batch(()=>{t.forEach(n=>this.doRemoveNode(n))})}removeNode(t){this.removeNodes([t])}updateNodeDataProperty(t,n,i){const r=this.getNode(t);this.batch(()=>{const o=r.data[n],s=i;r.data[n]=s,this.changes.push({type:"NodeDataUpdated",id:t,propertyName:n,oldValue:o,newValue:s})})}mergeNodeData(t,n){this.batch(()=>{Object.entries(n).forEach(([i,r])=>{this.updateNodeDataProperty(t,i,r)})})}updateNodeData(...t){const n=t[0],i=this.getNode(n);if(typeof t[1]=="string"){this.updateNodeDataProperty(n,t[1],t[2]);return}let r;if(typeof t[1]=="function"){const o=t[1];r=o(i.data)}else typeof t[1]=="object"&&(r=t[1]);this.batch(()=>{const o=i.data,s=r;i.data=r,this.changes.push({type:"NodeDataUpdated",id:n,oldValue:o,newValue:s})})}checkEdgeExistence(t){if(!this.hasEdge(t))throw new Error("Edge not found for id: "+t)}hasEdge(t){return this.edgeMap.has(t)}getEdge(t){return this.checkEdgeExistence(t),this.edgeMap.get(t)}getEdgeDetail(t){const n=this.getEdge(t);return{edge:n,source:this.getNode(n.source),target:this.getNode(n.target)}}doAddEdge(t){if(this.hasEdge(t.id))throw new Error("Edge already exists: "+t.id);this.checkNodeExistence(t.source),this.checkNodeExistence(t.target),this.edgeMap.set(t.id,t);const n=this.inEdgesMap.get(t.target),i=this.outEdgesMap.get(t.source),r=this.bothEdgesMap.get(t.source),o=this.bothEdgesMap.get(t.target);n.add(t),i.add(t),r.add(t),o.add(t),this.changes.push({type:"EdgeAdded",value:t})}addEdges(t){this.batch(()=>{for(const n of t)this.doAddEdge(n)})}addEdge(t){this.addEdges([t])}doRemoveEdge(t){const n=this.getEdge(t),i=this.outEdgesMap.get(n.source),r=this.inEdgesMap.get(n.target),o=this.bothEdgesMap.get(n.source),s=this.bothEdgesMap.get(n.target);i.delete(n),r.delete(n),o.delete(n),s.delete(n),this.edgeMap.delete(t),this.changes.push({type:"EdgeRemoved",value:n})}removeEdges(t){this.batch(()=>{t.forEach(n=>this.doRemoveEdge(n))})}removeEdge(t){this.removeEdges([t])}updateEdgeSource(t,n){const i=this.getEdge(t);this.checkNodeExistence(n);const r=i.source,o=n;this.outEdgesMap.get(r).delete(i),this.bothEdgesMap.get(r).delete(i),this.outEdgesMap.get(o).add(i),this.bothEdgesMap.get(o).add(i),i.source=n,this.batch(()=>{this.changes.push({type:"EdgeUpdated",id:t,propertyName:"source",oldValue:r,newValue:o})})}updateEdgeTarget(t,n){const i=this.getEdge(t);this.checkNodeExistence(n);const r=i.target,o=n;this.inEdgesMap.get(r).delete(i),this.bothEdgesMap.get(r).delete(i),this.inEdgesMap.get(o).add(i),this.bothEdgesMap.get(o).add(i),i.target=n,this.batch(()=>{this.changes.push({type:"EdgeUpdated",id:t,propertyName:"target",oldValue:r,newValue:o})})}updateEdgeDataProperty(t,n,i){const r=this.getEdge(t);this.batch(()=>{const o=r.data[n],s=i;r.data[n]=s,this.changes.push({type:"EdgeDataUpdated",id:t,propertyName:n,oldValue:o,newValue:s})})}updateEdgeData(...t){const n=t[0],i=this.getEdge(n);if(typeof t[1]=="string"){this.updateEdgeDataProperty(n,t[1],t[2]);return}let r;if(typeof t[1]=="function"){const o=t[1];r=o(i.data)}else typeof t[1]=="object"&&(r=t[1]);this.batch(()=>{const o=i.data,s=r;i.data=r,this.changes.push({type:"EdgeDataUpdated",id:n,oldValue:o,newValue:s})})}mergeEdgeData(t,n){this.batch(()=>{Object.entries(n).forEach(([i,r])=>{this.updateEdgeDataProperty(t,i,r)})})}checkTreeExistence(t){if(!this.hasTreeStructure(t))throw new Error("Tree structure not found for treeKey: "+t)}hasTreeStructure(t){return this.treeIndices.has(t)}attachTreeStructure(t){this.treeIndices.has(t)||(this.treeIndices.set(t,{parentMap:new Map,childrenMap:new Map}),this.batch(()=>{this.changes.push({type:"TreeStructureAttached",treeKey:t})}))}detachTreeStructure(t){this.checkTreeExistence(t),this.treeIndices.delete(t),this.batch(()=>{this.changes.push({type:"TreeStructureDetached",treeKey:t})})}addTree(t,n){this.batch(()=>{this.attachTreeStructure(n);const i=[],r=Array.isArray(t)?t:[t];for(;r.length;){const o=r.shift();i.push(o),o.children&&r.push(...o.children)}this.addNodes(i),i.forEach(o=>{o.children?.forEach(s=>{this.setParent(s.id,o.id,n)})})})}getRoots(t){return this.checkTreeExistence(t),this.getAllNodes().filter(n=>!this.getParent(n.id,t))}getChildren(t,n){this.checkNodeExistence(t),this.checkTreeExistence(n);const r=this.treeIndices.get(n).childrenMap.get(t);return Array.from(r||[])}getParent(t,n){return this.checkNodeExistence(t),this.checkTreeExistence(n),this.treeIndices.get(n).parentMap.get(t)||null}getAncestors(t,n){const i=[];let r=this.getNode(t),o;for(;o=this.getParent(r.id,n);)i.push(o),r=o;return i}setParent(t,n,i){this.checkTreeExistence(i);const r=this.treeIndices.get(i);if(!r)return;const o=this.getNode(t),s=r.parentMap.get(t);if(s?.id===n)return;if(n==null){s&&r.childrenMap.get(s.id)?.delete(o),r.parentMap.delete(t);return}const a=this.getNode(n);r.parentMap.set(t,a),s&&r.childrenMap.get(s.id)?.delete(o);let l=r.childrenMap.get(a.id);l||(l=new Set,r.childrenMap.set(a.id,l)),l.add(o),this.batch(()=>{this.changes.push({type:"TreeStructureChanged",treeKey:i,nodeId:t,oldParentId:s?.id,newParentId:a.id})})}dfsTree(t,n,i){const r=o=>this.getChildren(o,i);return ufe(this.getNode(t),new Set,n,r)}bfsTree(t,n,i){const r=o=>this.getChildren(o,i);return rje([this.getNode(t)],new Set,n,r)}getAllNodes(){return Array.from(this.nodeMap.values())}getAllEdges(){return Array.from(this.edgeMap.values())}bfs(t,n,i="out"){const r={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[i];return rje([this.getNode(t)],new Set,n,r)}dfs(t,n,i="out"){const r={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[i];return ufe(this.getNode(t),new Set,n,r)}clone(){const t=this.getAllNodes().map(r=>({...r,data:{...r.data}})),n=this.getAllEdges().map(r=>({...r,data:{...r.data}})),i=new v1n({nodes:t,edges:n});return this.treeIndices.forEach(({parentMap:r,childrenMap:o},s)=>{const a=new Map;r.forEach((c,u)=>{a.set(u,i.getNode(c.id))});const l=new Map;o.forEach((c,u)=>{l.set(u,new Set(Array.from(c).map(d=>i.getNode(d.id))))}),i.treeIndices.set(s,{parentMap:a,childrenMap:l})}),i}toJSON(){return JSON.stringify({nodes:this.getAllNodes(),edges:this.getAllEdges()})}createView(t){return new GGi({graph:this,...t})}},oU=on(Pi()),sZ=class{constructor(e,t){this.context=e,this.options=t||{}}},y1n=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,[])).next())})},KGi=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};function YGi(e){const{type:t}=e;return["compact-box","mindmap","dendrogram","indented"].includes(t)}function QGi(e){return!Array.isArray(e)&&e?.preLayout}function ZGi(e,t){class n extends sZ{constructor(r,o){if(super(r,o),this.instance=new e({}),this.id=this.instance.id,"stop"in this.instance&&"tick"in this.instance){const s=this.instance;this.stop=s.stop.bind(s),this.tick=a=>(s.tick(a),this.getLayoutResult(s))}}execute(r,o){return y1n(this,void 0,void 0,function*(){return yield this.instance.execute(this.graphData2LayoutModel(r),this.transformOptions((0,oU.deepMix)({},this.options,o))),this.getLayoutResult(this.instance)})}graphData2LayoutModel(r){const{nodes:o=[],edges:s=[],combos:a=[]}=r;return{nodes:[...o,...a],edges:s}}transformOptions(r){const o=c=>t.model.isCombo(c),s=c=>{var u;const{style:d}=c||{},h="combo"in(c||{})&&(u=c.combo)!==null&&u!==void 0?u:null,f=an(c);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:f},(0,oU.isNumber)(d?.x)?{x:d.x}:{}),(0,oU.isNumber)(d?.y)?{y:d.y}:{}),(0,oU.isNumber)(d?.z)?{z:d.z}:{}),{parentId:h}),o(f)?{isCombo:!0}:{})},a=c=>({id:an(c),source:c.source,target:c.target});if(r.node=s,r.edge=a,!("onTick"in r))return r;const l=r.onTick;return r.onTick=c=>l(this.getLayoutResult(c)),r}getLayoutResult(r){const{model:o}=this.context,s={nodes:[],edges:[],combos:[]};return r.forEachNode(a=>{var l;const c=String(a.id),u=o.isCombo(c)?s.combos:s.nodes,d=Object.assign({x:a.x,y:a.y,z:(l=a.z)!==null&&l!==void 0?l:0},a.size?{size:a.size}:{});u?.push({id:c,style:d})}),r.forEachEdge(a=>{const l={controlPoints:a.points||[]};s.edges.push({id:String(a.id),source:String(a.source),target:String(a.target),style:l})}),s}}return n}function PMe(e){const{nodes:t,edges:n=[]}=e,i={nodes:[],edges:[],combos:[]};return t.forEach(r=>{const o=r.data._isCombo?i.combos:i.nodes,{x:s,y:a,z:l=0}=r.data;o?.push({id:r.id,style:{x:s,y:a,z:l}})}),n.forEach(r=>{const{id:o,source:s,target:a,data:{points:l=[],controlPoints:c=l.slice(1,l.length-1)}}=r;i.edges.push({id:o,source:s,target:a,style:Object.assign({},c?.length?{controlPoints:c.map(og)}:{})})}),i}function XGi(e){return!("forEachNode"in e.prototype)&&!("forEachEdge"in e.prototype)}function JGi(e,t){class n extends sZ{constructor(r,o){if(super(r,o),this.instance=new e({}),this.id=this.instance.id,"stop"in this.instance&&"tick"in this.instance){const s=this.instance;this.stop=s.stop.bind(s),this.tick=a=>{var l;const c=(l=s.tick)===null||l===void 0?void 0:l.call(s,a);return PMe(c)}}}execute(r,o){return y1n(this,void 0,void 0,function*(){return PMe(yield this.instance.execute(this.graphData2LayoutModel(r),this.transformOptions((0,oU.deepMix)({},this.options,o))))})}transformOptions(r){if(!("onTick"in r))return r;const o=r.onTick;return r.onTick=s=>o(PMe(s)),r}graphData2LayoutModel(r){const{nodes:o=[],edges:s=[],combos:a=[]}=r,l=o.map(f=>{const p=an(f),{data:g,style:m,combo:v}=f,y=KGi(f,["data","style","combo"]),b={id:p,data:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},g),{data:g}),v?{parentId:v}:{}),{style:m}),y)};return m?.x&&Object.assign(b.data,{x:m.x}),m?.y&&Object.assign(b.data,{y:m.y}),m?.z&&Object.assign(b.data,{z:m.z}),b}),c=new Map(l.map(f=>[f.id,f])),u=s.filter(f=>{const{source:p,target:g}=f;return c.has(p)&&c.has(g)}).map(f=>{const{source:p,target:g,data:m,style:v}=f;return{id:an(f),source:p,target:g,data:Object.assign({},m),style:Object.assign({},v)}}),d=a.map(f=>({id:an(f),data:Object.assign({_isCombo:!0},f.data),style:Object.assign({},f.style)})),h=new FZe({nodes:[...l,...d],edges:u});return t.model.model.hasTreeStructure(zc)&&(h.attachTreeStructure(zc),l.forEach(f=>{const p=t.model.model.getParent(f.id,zc);p&&h.hasNode(p.id)&&h.setParent(f.id,p.id,zc)})),h}}return n}function MMe(e,t,...n){if(t in e)return e[t](...n);if("instance"in e){const i=e.instance;if(t in i)return i[t](...n)}return null}function GRt(e,t){if(t in e)return e[t];if("instance"in e){const n=e.instance;if(t in n)return n[t]}return null}var eKi=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,[])).next())})},tKi=class extends OZe{get forceLayoutInstance(){return this.context.layout.getLayoutInstance().find(e=>["d3-force","d3-force-3d"].includes(e?.id))}validate(e){return this.context.layout?this.forceLayoutInstance?super.validate(e):(DE.warn("DragElementForce only works with d3-force or d3-force-3d layout"),!1):!1}moveElement(e,t){return eKi(this,void 0,void 0,function*(){const n=this.forceLayoutInstance;this.context.graph.getNodeData(e).forEach((i,r)=>{const{x:o=0,y:s=0}=i.style||{};n&&MMe(n,"setFixedPosition",e[r],[..._s([+o,+s],this.clampByRotation(t))])})})}onDragStart(e){if(this.enable=this.validate(e),!this.enable)return;this.target=this.getSelectedNodeIDs([e.target.id]),this.hideEdge(),this.context.graph.frontElement(this.target);const t=this.forceLayoutInstance;t&&GRt(t,"simulation").alphaTarget(.3).restart(),this.context.graph.getNodeData(this.target).forEach(n=>{const{x:i=0,y:r=0}=n.style||{};t&&MMe(t,"setFixedPosition",an(n),[+i,+r])})}onDrag(e){if(!this.enable)return;const t=this.getDelta(e);this.moveElement(this.target,t)}onDragEnd(){const e=this.forceLayoutInstance;e&&GRt(e,"simulation").alphaTarget(0),!this.options.fixed&&this.context.graph.getNodeData(this.target).forEach(t=>{e&&MMe(e,"setFixedPosition",an(t),[null,null,null])})}},OMe=on(Pi()),KRt=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,[])).next())})},b1n=class _1n extends ny{constructor(t,n){super(t,Object.assign({},_1n.defaultOptions,n)),this.isZoomEvent=i=>!!(i.data&&"scale"in i.data),this.relatedEdgeToUpdate=new Set,this.zoom=this.context.graph.getZoom(),this.fixElementSize=i=>KRt(this,void 0,void 0,function*(){if(!this.validate(i))return;const{graph:r}=this.context,{state:o,nodeFilter:s,edgeFilter:a,comboFilter:l}=this.options,c=(o?r.getElementDataByState("node",o):r.getNodeData()).filter(s),u=(o?r.getElementDataByState("edge",o):r.getEdgeData()).filter(a),d=(o?r.getElementDataByState("combo",o):r.getComboData()).filter(l),h=this.isZoomEvent(i)?this.zoom=Math.max(.01,Math.min(i.data.scale,10)):this.zoom,f=[...c,...d];f.length>0&&f.forEach(p=>this.fixNodeLike(p,h)),this.updateRelatedEdges(),u.length>0&&u.forEach(p=>this.fixEdge(p,h))}),this.cachedStyles=new Map,this.getOriginalFieldValue=(i,r,o)=>{var s;const a=this.cachedStyles.get(i)||[],l=((s=a.find(c=>c.shape===r))===null||s===void 0?void 0:s.style)||{};return o in l||(l[o]=r.attributes[o],this.cachedStyles.set(i,[...a.filter(c=>c.shape!==r),{shape:r,style:l}])),l[o]},this.scaleEntireElement=(i,r,o)=>{r.setLocalScale(1/o);const s=this.cachedStyles.get(i)||[];s.push({shape:r}),this.cachedStyles.set(i,s)},this.scaleSpecificShapes=(i,r,o)=>{const s=Y$i(i);(Array.isArray(o)?o:[o]).forEach(l=>{const{shape:c,fields:u}=l,d=typeof c=="function"?c(s):i.getShape(c);if(d){if(!u){this.scaleEntireElement(i.id,d,r);return}u.forEach(h=>{const f=this.getOriginalFieldValue(i.id,d,h);(0,OMe.isNumber)(f)&&(d.style[h]=f/r)})}})},this.skipIfExceedViewport=i=>{const{viewport:r}=this.context;return!r?.isInViewport(i.getRenderBounds(),!1,30)},this.fixNodeLike=(i,r)=>{const o=an(i),{element:s,model:a}=this.context,l=s.getElement(o);if(!l||this.skipIfExceedViewport(l))return;a.getRelatedEdgesData(o).forEach(d=>this.relatedEdgeToUpdate.add(an(d)));const u=this.options[l.type];if(!u){this.scaleEntireElement(o,l,r);return}this.scaleSpecificShapes(l,r,u)},this.fixEdge=(i,r)=>{const o=an(i),s=this.context.element.getElement(o);if(!s||this.skipIfExceedViewport(s))return;const a=this.options.edge;if(!a){s.style.transformOrigin="center",this.scaleEntireElement(o,s,r);return}this.scaleSpecificShapes(s,r,a)},this.updateRelatedEdges=()=>{const{element:i}=this.context;this.relatedEdgeToUpdate.size>0&&this.relatedEdgeToUpdate.forEach(r=>{const o=i.getElement(r);o?.update({})}),this.relatedEdgeToUpdate.clear()},this.resetTransform=i=>KRt(this,void 0,void 0,function*(){var r;!((r=i.data)===null||r===void 0)&&r.firstRender||(this.options.reset?this.restoreCachedStyles():this.fixElementSize({data:{scale:this.zoom}}))}),this.bindEvents()}restoreCachedStyles(){if(this.cachedStyles.size>0){this.cachedStyles.forEach(r=>{r.forEach(({shape:o,style:s})=>{if((0,OMe.isEmpty)(s))o.setLocalScale(1);else{if(this.options.state)return;Object.entries(s).forEach(([a,l])=>o.style[a]=l)}})});const{graph:t,element:n}=this.context,i=Object.keys(Object.fromEntries(this.cachedStyles)).filter(r=>r&&t.getElementType(r)==="node");if(i.length>0){const r=new Set;i.forEach(o=>{t.getRelatedEdgesData(o).forEach(s=>r.add(an(s)))}),r.forEach(o=>{const s=n?.getElement(o);s?.update({})})}}}bindEvents(){const{graph:t}=this.context;t.on(Ni.AFTER_DRAW,this.resetTransform),t.on(Ni.AFTER_TRANSFORM,this.fixElementSize)}unbindEvents(){const{graph:t}=this.context;t.off(Ni.AFTER_DRAW,this.resetTransform),t.off(Ni.AFTER_TRANSFORM,this.fixElementSize)}validate(t){if(this.destroyed)return!1;const{enable:n}=this.options;return(0,OMe.isFunction)(n)?n(t):!!n}destroy(){this.unbindEvents(),super.destroy()}};b1n.defaultOptions={enable:e=>e.data.scale<1,nodeFilter:()=>!0,edgeFilter:()=>!0,comboFilter:()=>!0,edge:[{shape:"key",fields:["lineWidth"]},{shape:"halo",fields:["lineWidth"]},{shape:"label"}],reset:!1};var nKi=on(Pi()),iKi=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,[])).next())})},w1n=class C1n extends ny{constructor(t,n){super(t,Object.assign({},C1n.defaultOptions,n)),this.focus=i=>iKi(this,void 0,void 0,function*(){if(!this.validate(i))return;const{graph:r}=this.context;yield r.focusElement(i.target.id,this.options.animation)}),this.shortcut=new rP(t.graph),this.bindEvents()}bindEvents(){const{graph:t}=this.context;this.unbindEvents(),O2.forEach(n=>{t.on(`${n}:${Rn.CLICK}`,this.focus)})}validate(t){if(this.destroyed||!this.isKeydown())return!1;const{enable:n}=this.options;return(0,nKi.isFunction)(n)?n(t):!!n}isKeydown(){const{trigger:t}=this.options;return t?.length?this.shortcut.match(t):!0}unbindEvents(){const{graph:t}=this.context;O2.forEach(n=>{t.off(`${n}:${Rn.CLICK}`,this.focus)})}destroy(){this.unbindEvents(),this.shortcut.destroy(),super.destroy()}};w1n.defaultOptions={animation:{easing:"ease-in",duration:500},enable:!0,trigger:[]};var rKi=on(Pi()),S1n=class x1n extends ny{constructor(t,n){super(t,Object.assign({},x1n.defaultOptions,n)),this.isFrozen=!1,this.toggleFrozen=i=>{this.isFrozen=i.type==="dragstart"},this.hoverElement=i=>{if(!this.validate(i))return;const r=i.type===Rn.POINTER_ENTER;this.updateElementsState(i,r);const{onHover:o,onHoverEnd:s}=this.options;r?o?.(i):s?.(i)},this.updateElementsState=(i,r)=>{if(!this.options.state&&!this.options.inactiveState)return;const{graph:o}=this.context,{state:s,animation:a,inactiveState:l}=this.options,c=this.getActiveIds(i),u={};if(s&&Object.assign(u,this.getElementsState(c,s,r)),l){const d=V_n(o.getData(),!0).filter(h=>!c.includes(h));Object.assign(u,this.getElementsState(d,l,r))}o.setElementState(u,a)},this.getElementsState=(i,r,o)=>{const{graph:s}=this.context,a={};return i.forEach(l=>{const c=s.getElementState(l);o?a[l]=c.includes(r)?c:[...c,r]:a[l]=c.filter(u=>u!==r)}),a},this.bindEvents()}bindEvents(){const{graph:t}=this.context;this.unbindEvents(),O2.forEach(i=>{t.on(`${i}:${Rn.POINTER_ENTER}`,this.hoverElement),t.on(`${i}:${Rn.POINTER_LEAVE}`,this.hoverElement)});const n=this.context.canvas.document;n.addEventListener(`${Rn.DRAG_START}`,this.toggleFrozen),n.addEventListener(`${Rn.DRAG_END}`,this.toggleFrozen)}getActiveIds(t){const{graph:n}=this.context,{degree:i,direction:r}=this.options,o=t.target.id;return i?nwn(n,t.targetType,o,typeof i=="function"?i(t):i,r):[o]}validate(t){if(this.destroyed||this.isFrozen||oZ(t.target)||this.context.graph.isCollapsingExpanding)return!1;const{enable:n}=this.options;return(0,rKi.isFunction)(n)?n(t):!!n}unbindEvents(){const{graph:t}=this.context;O2.forEach(i=>{t.off(`${i}:${Rn.POINTER_ENTER}`,this.hoverElement),t.off(`${i}:${Rn.POINTER_LEAVE}`,this.hoverElement)});const n=this.context.canvas.document;n.removeEventListener(`${Rn.DRAG_START}`,this.toggleFrozen),n.removeEventListener(`${Rn.DRAG_END}`,this.toggleFrozen)}destroy(){this.unbindEvents(),super.destroy()}};S1n.defaultOptions={animation:!1,enable:!0,degree:0,direction:"both",state:"active",inactiveState:void 0};var oKi=class extends xZe{onPointerDown(e){if(!super.validate(e)||!super.isKeydown()||this.points)return;const{canvas:t,graph:n}=this.context;this.pathShape=new $y({id:"g6-lasso-select",style:this.options.style}),t.appendChild(this.pathShape),this.points=[ofe(e,n)]}onPointerMove(e){var t;if(!this.points)return;const{immediately:n,mode:i}=this.options;this.points.push(ofe(e,this.context.graph)),(t=this.pathShape)===null||t===void 0||t.setAttribute("d",U$i(this.points)),n&&i==="default"&&this.points.length>2&&super.updateElementsStates(this.points)}onPointerUp(){if(this.points){if(this.points.length<2){this.clearLasso();return}super.updateElementsStates(this.points),this.clearLasso()}}clearLasso(){var e;(e=this.pathShape)===null||e===void 0||e.remove(),this.pathShape=void 0,this.points=void 0}},RMe=on(Pi()),E1n=class A1n extends ny{constructor(t,n){super(t,Object.assign({},A1n.defaultOptions,n)),this.hiddenShapes=[],this.isVisible=!0,this.setElementsVisibility=(i,r,o)=>{i.filter(Boolean).forEach(s=>{r==="hidden"&&!s.isVisible()?this.hiddenShapes.push(s):r==="visible"&&this.hiddenShapes.includes(s)?this.hiddenShapes.splice(this.hiddenShapes.indexOf(s),1):P2(s,r,o)})},this.filterShapes=(i,r)=>{if((0,RMe.isFunction)(r))return s=>!r(i,s);const o=r?.[i];return s=>s.className?!o?.includes(s.className):!0},this.hideShapes=i=>{if(!this.validate(i)||!this.isVisible)return;const{element:r}=this.context,{shapes:o={}}=this.options;this.setElementsVisibility(r.getNodes(),"hidden",this.filterShapes("node",o)),this.setElementsVisibility(r.getEdges(),"hidden",this.filterShapes("edge",o)),this.setElementsVisibility(r.getCombos(),"hidden",this.filterShapes("combo",o)),this.isVisible=!1},this.showShapes=(0,RMe.debounce)(i=>{if(!this.validate(i)||this.isVisible)return;const{element:r}=this.context;this.setElementsVisibility(r.getNodes(),"visible"),this.setElementsVisibility(r.getEdges(),"visible"),this.setElementsVisibility(r.getCombos(),"visible"),this.isVisible=!0},this.options.debounce),this.bindEvents()}bindEvents(){const{graph:t}=this.context;t.on(Ni.BEFORE_TRANSFORM,this.hideShapes),t.on(Ni.AFTER_TRANSFORM,this.showShapes)}unbindEvents(){const{graph:t}=this.context;t.off(Ni.BEFORE_TRANSFORM,this.hideShapes),t.off(Ni.AFTER_TRANSFORM,this.showShapes)}validate(t){if(this.destroyed)return!1;const{enable:n}=this.options;return(0,RMe.isFunction)(n)?n(t):!!n}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}destroy(){this.unbindEvents(),super.destroy()}};E1n.defaultOptions={enable:!0,debounce:200,shapes:e=>e==="node"};var YRt=on(Pi()),QRt=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,[])).next())})},D1n=class T1n extends ny{constructor(t,n){super(t,Object.assign({},T1n.defaultOptions,n)),this.onWheel=i=>QRt(this,void 0,void 0,function*(){this.options.preventDefault&&i.preventDefault();const r=i.deltaX,o=i.deltaY;yield this.scroll([-r,-o],i)}),this.shortcut=new rP(t.graph),this.bindEvents()}update(t){super.update(t),this.bindEvents()}bindEvents(){var t,n;const{trigger:i}=this.options;if(this.shortcut.unbindAll(),(0,YRt.isObject)(i)){(t=this.graphDom)===null||t===void 0||t.removeEventListener(Rn.WHEEL,this.onWheel);const{up:r=[],down:o=[],left:s=[],right:a=[]}=i;this.shortcut.bind(r,l=>this.scroll([0,-10],l)),this.shortcut.bind(o,l=>this.scroll([0,10],l)),this.shortcut.bind(s,l=>this.scroll([-10,0],l)),this.shortcut.bind(a,l=>this.scroll([10,0],l))}else(n=this.graphDom)===null||n===void 0||n.addEventListener(Rn.WHEEL,this.onWheel,{passive:!1})}get graphDom(){return this.context.graph.getCanvas().getContextService().getDomElement()}formatDisplacement(t){const{sensitivity:n}=this.options;return t=U1(t,n),t=this.clampByDirection(t),t=this.clampByRange(t),t}clampByDirection([t,n]){const{direction:i}=this.options;return i==="x"?n=0:i==="y"&&(t=0),[t,n]}clampByRange([t,n]){const{viewport:i,canvas:r}=this.context,[o,s]=r.getSize(),[a,l,c,u]=Lw(this.options.range),d=[s*a,o*l,s*c,o*u],h=iP(vZe(i.getCanvasCenter()),d),f=wc(i.getViewportCenter(),[t,n,0]);if(!PC(f,h)){const{min:[p,g],max:[m,v]}=h;(f[0]<p&&t>0||f[0]>m&&t<0)&&(t=0),(f[1]<g&&n>0||f[1]>v&&n<0)&&(n=0)}return[t,n]}scroll(t,n){return QRt(this,void 0,void 0,function*(){if(!this.validate(n))return;const{onFinish:i}=this.options,r=this.context.graph,o=this.formatDisplacement(t);yield r.translateBy(o,!1),i?.()})}validate(t){if(this.destroyed)return!1;const{enable:n}=this.options;return(0,YRt.isFunction)(n)?n(t):!!n}destroy(){var t;this.shortcut.destroy(),(t=this.graphDom)===null||t===void 0||t.removeEventListener(Rn.WHEEL,this.onWheel),super.destroy()}};D1n.defaultOptions={enable:!0,sensitivity:1,preventDefault:!0,range:1/0};var ZRt=on(Pi()),XRt=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,[])).next())})},k1n=class I1n extends ny{constructor(t,n){super(t,Object.assign({},I1n.defaultOptions,n)),this.zoom=(i,r,o)=>XRt(this,void 0,void 0,function*(){if(!this.validate(r))return;const{graph:s}=this.context;let a=this.options.origin;!a&&"viewport"in r&&(a=og(r.viewport));const{sensitivity:l,onFinish:c}=this.options,u=1+(0,ZRt.clamp)(i,-50,50)*l/100,d=s.getZoom();yield s.zoomTo(d*u,o,a),c?.()}),this.onReset=()=>XRt(this,void 0,void 0,function*(){yield this.context.graph.zoomTo(1,this.options.animation)}),this.preventDefault=i=>{this.options.preventDefault&&i.preventDefault()},this.shortcut=new rP(t.graph),this.bindEvents()}update(t){super.update(t),this.bindEvents()}bindEvents(){const{trigger:t}=this.options;if(this.shortcut.unbindAll(),Array.isArray(t))if(t.includes(Rn.PINCH))this.shortcut.bind([Rn.PINCH],n=>{this.zoom(n.scale,n,!1)});else{const n=this.context.canvas.getContainer();n?.addEventListener(Rn.WHEEL,this.preventDefault),this.shortcut.bind([...t,Rn.WHEEL],i=>{const{deltaX:r,deltaY:o}=i;this.zoom(-(o??r),i,!1)})}if(typeof t=="object"){const{zoomIn:n=[],zoomOut:i=[],reset:r=[]}=t;this.shortcut.bind(n,o=>this.zoom(10,o,this.options.animation)),this.shortcut.bind(i,o=>this.zoom(-10,o,this.options.animation)),this.shortcut.bind(r,this.onReset)}}validate(t){if(this.destroyed)return!1;const{enable:n}=this.options;return(0,ZRt.isFunction)(n)?n(t):!!n}destroy(){var t;this.shortcut.destroy(),(t=this.context.canvas.getContainer())===null||t===void 0||t.removeEventListener(Rn.WHEEL,this.preventDefault),super.destroy()}};k1n.defaultOptions={animation:{duration:200},enable:!0,sensitivity:1,trigger:[],preventDefault:!0};function JRt(e,t,n,i="height"){const r=e[i],o=t[i];return n==="center"?(r+o)/2:e.height}var BF=Object.assign,sKi={getId:e=>e.id||e.name,getPreH:e=>e.preH||0,getPreV:e=>e.preV||0,getHGap:e=>e.hgap||18,getVGap:e=>e.vgap||18,getChildren:e=>e.children,getHeight:e=>e.height||36,getWidth(e){const t=e.label||" ";return e.width||18*t.split("").length}},e2t=class L1n{constructor(t,n){if(this.x=0,this.y=0,this.depth=0,this.children=[],this.hgap=0,this.vgap=0,t instanceof L1n||"x"in t&&"y"in t&&"children"in t){const o=t;return this.data=o.data,this.id=o.id,this.x=o.x,this.y=o.y,this.width=o.width,this.height=o.height,this.depth=o.depth,this.children=o.children,this.parent=o.parent,this.hgap=o.hgap,this.vgap=o.vgap,this.preH=o.preH,void(this.preV=o.preV)}this.data=t;const i=n.getHGap(t),r=n.getVGap(t);this.preH=n.getPreH(t),this.preV=n.getPreV(t),this.width=n.getWidth(t),this.height=n.getHeight(t),this.width+=this.preH,this.height+=this.preV,this.id=n.getId(t),this.addGap(i,r)}isRoot(){return this.depth===0}isLeaf(){return this.children.length===0}addGap(t,n){this.hgap+=t,this.vgap+=n,this.width+=2*t,this.height+=2*n}eachNode(t){let n,i=[this];for(;n=i.shift();)t(n),i=n.children.concat(i)}DFTraverse(t){this.eachNode(t)}BFTraverse(t){let n,i=[this];for(;n=i.shift();)t(n),i=i.concat(n.children)}getBoundingBox(){const t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(n=>{t.left=Math.min(t.left,n.x),t.top=Math.min(t.top,n.y),t.width=Math.max(t.width,n.x+n.width),t.height=Math.max(t.height,n.y+n.height)}),t}translate(t=0,n=0){this.eachNode(i=>{i.x+=t,i.y+=n,i.x+=i.preH,i.y+=i.preV})}right2left(){const t=this.getBoundingBox();this.eachNode(n=>{n.x=n.x-2*(n.x-t.left)-n.width}),this.translate(t.width,0)}bottom2top(){const t=this.getBoundingBox();this.eachNode(n=>{n.y=n.y-2*(n.y-t.top)-n.height}),this.translate(0,t.height)}};function oje(e,t={},n){t=BF({},sKi,t);const i=new e2t(e,t),r=[i];let o;if(!n&&!e.collapsed){for(;o=r.shift();)if(!o.data.collapsed){const s=t.getChildren(o.data),a=s?s.length:0;if(o.children=new Array(a),s&&a)for(let l=0;l<a;l++){const c=new e2t(s[l],t);o.children[l]=c,r.push(c),c.parent=o,c.depth=o.depth+1}}}return i}var q0e=class{constructor(e,t={}){this.options=t,this.rootNode=oje(e,t)}execute(){throw new Error("please override this method")}},aKi=class wce{constructor(t=0,n=0,i=0,r=[]){this.x=0,this.prelim=0,this.mod=0,this.shift=0,this.change=0,this.tl=null,this.tr=null,this.el=null,this.er=null,this.msel=0,this.mser=0,this.w=t||0,this.h=n||0,this.y=i||0,this.c=r||[],this.cs=r.length}static fromNode(t,n){if(!t)return null;const i=[];return t.children.forEach(r=>{const o=wce.fromNode(r,n);o&&i.push(o)}),n?new wce(t.height,t.width,t.x,i):new wce(t.width,t.height,t.y,i)}};function N1n(e,t,n){n?e.y+=t:e.x+=t,e.children.forEach(i=>{N1n(i,t,n)})}function P1n(e,t){let n=t?e.y:e.x;return e.children.forEach(i=>{n=Math.min(P1n(i,t),n)}),n}function lKi(e,t){N1n(e,-P1n(e,t),t)}function M1n(e,t,n){n?t.y=e.x:t.x=e.x,e.c.forEach((i,r)=>{M1n(i,t.children[r],n)})}function O1n(e,t,n=0){t?(e.x=n,n+=e.width):(e.y=n,n+=e.height),e.children.forEach(i=>{O1n(i,t,n)})}function cKi(e,t={}){const n=t.isHorizontal;function i(d){d.cs===0?(d.el=d,d.er=d,d.msel=d.mser=0):(d.el=d.c[0].el,d.msel=d.c[0].msel,d.er=d.c[d.cs-1].er,d.mser=d.c[d.cs-1].mser)}function r(d,h,f){let p=d.c[h-1],g=p.mod,m=d.c[h],v=m.mod;for(;p!==null&&m!==null;){f&&l(p)>f.low&&(f=f.nxt);const y=g+p.prelim+p.w-(v+m.prelim);y>0&&(v+=y,f&&o(d,h,f.index,y));const b=l(p),w=l(m);b<=w&&(p=a(p),p!==null&&(g+=p.mod)),b>=w&&(m=s(m),m!==null&&(v+=m.mod))}!p&&m?(function(y,b,w,E){const A=y.c[0].el;A.tl=w;const D=E-w.mod-y.c[0].msel;A.mod+=D,A.prelim-=D,y.c[0].el=y.c[b].el,y.c[0].msel=y.c[b].msel})(d,h,m,v):p&&!m&&(function(y,b,w,E){const A=y.c[b].er;A.tr=w;const D=E-w.mod-y.c[b].mser;A.mod+=D,A.prelim-=D,y.c[b].er=y.c[b-1].er,y.c[b].mser=y.c[b-1].mser})(d,h,p,g)}function o(d,h,f,p){d.c[h].mod+=p,d.c[h].msel+=p,d.c[h].mser+=p,(function(g,m,v,y){if(v!==m-1){const b=m-v;g.c[v+1].shift+=y/b,g.c[m].shift-=y/b,g.c[m].change-=y-y/b}})(d,h,f,p)}function s(d){return d.cs===0?d.tl:d.c[0]}function a(d){return d.cs===0?d.tr:d.c[d.cs-1]}function l(d){return d.y+d.h}function c(d,h,f){for(;f!==null&&d>=f.low;)f=f.nxt;return{low:d,index:h,nxt:f}}O1n(e,n);const u=aKi.fromNode(e,n);return u&&((function d(h){if(h.cs===0)return void i(h);d(h.c[0]);let f=c(l(h.c[0].el),0,null);for(let p=1;p<h.cs;++p){d(h.c[p]);const g=l(h.c[p].er);r(h,p,f),f=c(g,p,f)}(function(p){p.prelim=(p.c[0].prelim+p.c[0].mod+p.c[p.cs-1].mod+p.c[p.cs-1].prelim+p.c[p.cs-1].w)/2-p.w/2})(h),i(h)})(u),(function d(h,f){f+=h.mod,h.x=h.prelim+f,(function(p){let g=0,m=0;for(let v=0;v<p.cs;v++)g+=p.c[v].shift,m+=g+p.c[v].change,p.c[v].mod+=m})(h);for(let p=0;p<h.cs;p++)d(h.c[p],f)})(u,0),M1n(u,e,n),lKi(e,n)),e}function R1n(e,t){const n=oje(e.data,t,!0),i=oje(e.data,t,!0),r=e.children.length,o=Math.round(r/2),s=t.getSide||function(a,l){return l<o?"right":"left"};for(let a=0;a<r;a++){const l=e.children[a];s(l,a)==="right"?i.children.push(l):n.children.push(l)}return n.eachNode(a=>{a.isRoot()||(a.side="left")}),i.eachNode(a=>{a.isRoot()||(a.side="right")}),{left:n,right:i}}var lI=["LR","RL","TB","BT","H","V"],uKi=["LR","RL","H"],dKi=lI[0];function BZe(e,t,n){const i=t.direction||dKi;if(t.isHorizontal=(o=>uKi.indexOf(o)>-1)(i),lI.indexOf(i)===-1)throw new TypeError(`Invalid direction: ${i}`);if(i===lI[0])n(e,t);else if(i===lI[1])n(e,t),e.right2left();else if(i===lI[2])n(e,t);else if(i===lI[3])n(e,t),e.bottom2top();else if(i===lI[4]||i===lI[5]){const{left:o,right:s}=R1n(e,t);n(o,t),n(s,t),t.isHorizontal?o.right2left():o.bottom2top(),s.translate(o.x-s.x,o.y-s.y),e.x=o.x,e.y=s.y;const a=e.getBoundingBox();t.isHorizontal?a.top<0&&e.translate(0,-a.top):a.left<0&&e.translate(-a.left,0)}let r=t.fixedRoot;return r===void 0&&(r=!0),r&&e.translate(-(e.x+e.width/2+e.hgap),-(e.y+e.height/2+e.vgap)),(function(o,s){if(s.radial){const[a,l]=s.isHorizontal?["x","y"]:["y","x"],c={x:1/0,y:1/0},u={x:-1/0,y:-1/0};let d=0;o.DFTraverse(p=>{d++;const{x:g,y:m}=p;c.x=Math.min(c.x,g),c.y=Math.min(c.y,m),u.x=Math.max(u.x,g),u.y=Math.max(u.y,m)});const h=u[l]-c[l];if(h===0)return;const f=2*Math.PI/d;o.DFTraverse(p=>{const g=p[l],m=c[l],v=p[a],y=o[a],b=(g-m)/h*(2*Math.PI-f)+f,w=v-y;p.x=Math.cos(b)*w,p.y=Math.sin(b)*w})}})(e,t),e}var hKi=class extends q0e{execute(){return BZe(this.rootNode,this.options,cKi)}},fKi={};function pKi(e,t){const n=BF({},fKi,t);return new hKi(e,n).execute()}var gKi=class{constructor(e=0,t=[]){this.x=0,this.y=0,this.leftChild=null,this.rightChild=null,this.isLeaf=!1,this.height=e,this.children=t}},mKi={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function F1n(e,t,n){n?(t.x=e.x,t.y=e.y):(t.x=e.y,t.y=e.x),e.children.forEach((i,r)=>{F1n(i,t.children[r],n)})}function vKi(e,t={}){const n=BF({},mKi,t);let i=0,r=null;const o=(function s(a){a.width=0,a.depth&&a.depth>i&&(i=a.depth);const l=a.children,c=l.length,u=new gKi(0,[]);return l.forEach((d,h)=>{const f=s(d);u.children.push(f),h===0&&(u.leftChild=f),h===c-1&&(u.rightChild=f)}),u.originNode=a,u.isLeaf=a.isLeaf(),u})(e);return(function s(a){if(a.isLeaf||a.children.length===0)a.drawingDepth=i;else{const l=a.children.map(u=>s(u)),c=Math.min(...l);a.drawingDepth=c-1}return a.drawingDepth})(o),(function s(a){a.x=a.drawingDepth*n.rankSep,a.isLeaf?(a.y=0,r&&(a.y=r.y+r.height+n.nodeSep,a.originNode.parent!==r.originNode.parent&&(a.y+=n.subTreeSep)),r=a):(a.children.forEach(l=>{s(l)}),a.y=(a.leftChild.y+a.rightChild.y)/2)})(o),F1n(o,e,n.isHorizontal),e}var yKi=class extends q0e{execute(){return this.rootNode.width=0,BZe(this.rootNode,this.options,vKi)}},bKi={};function _Ki(e,t){const n=BF({},bKi,t);return new yKi(e,n).execute()}function _re(e,t,n,i){let r=null;e.eachNode(o=>{(function(s,a,l,c,u){const d=(typeof l=="function"?l(s):l)*s.depth;if(!c)try{if(s.parent&&s.id===s.parent.children[0].id)return s.x+=d,void(s.y=a?a.y:0)}catch{}if(s.x+=d,a){if(s.y=a.y+JRt(a,s,u),a.parent&&s.parent&&s.parent.id!==a.parent.id){const h=a.parent,f=h.y+JRt(h,s,u);s.y=f>s.y?f:s.y}}else s.y=0})(o,r,t,n,i),r=o})}var sU=["LR","RL","H"],wKi=sU[0],CKi=class extends q0e{execute(){const e=this.options,t=this.rootNode;e.isHorizontal=!0;const{indent:n=20,dropCap:i=!0,direction:r=wKi,align:o}=e;if(r&&sU.indexOf(r)===-1)throw new TypeError(`Invalid direction: ${r}`);if(r===sU[0])_re(t,n,i,o);else if(r===sU[1])_re(t,n,i,o),t.right2left();else if(r===sU[2]){const{left:s,right:a}=R1n(t,e);_re(s,n,i,o),s.right2left(),_re(a,n,i,o);const l=s.getBoundingBox();a.translate(l.width,0),t.x=a.x-t.width/2}return t}},SKi={};function xKi(e,t){const n=BF({},SKi,t);return new CKi(e,n).execute()}function B1n(e,t){let n=0;return e.children.length?e.children.forEach(i=>{n+=B1n(i,t)}):n=e.height,e._subTreeSep=t.getSubTreeSep(e.data),e.totalHeight=Math.max(e.height,n)+2*e._subTreeSep,e.totalHeight}function j1n(e){const t=e.children,n=t.length;if(n){t.forEach(a=>{j1n(a)});const i=t[0],r=t[n-1],o=r.y-i.y+r.height;let s=0;if(t.forEach(a=>{s+=a.totalHeight}),o>e.height)e.y=i.y+o/2-e.height/2;else if(t.length!==1||e.height>s){const a=e.y+(e.height-o)/2-i.y;t.forEach(l=>{l.translate(0,a)})}else e.y=(i.y+i.height/2+r.y+r.height/2)/2-e.height/2}}var EKi={getSubTreeSep:()=>0};function AKi(e,t={}){return t=BF({},EKi,t),e.parent={x:0,width:0,height:0,y:0},e.BFTraverse(n=>{n.x=n.parent.x+n.parent.width}),e.parent=void 0,B1n(e,t),e.startY=0,e.y=e.totalHeight/2-e.height/2,e.eachNode(n=>{const i=n.children,r=i.length;if(r){const o=i[0];if(o.startY=n.startY+n._subTreeSep,r===1)o.y=n.y+n.height/2-o.height/2;else{o.y=o.startY+o.totalHeight/2-o.height/2;for(let s=1;s<r;s++){const a=i[s];a.startY=i[s-1].startY+i[s-1].totalHeight,a.y=a.startY+a.totalHeight/2-a.height/2}}}}),j1n(e),e}var DKi=class extends q0e{execute(){return BZe(this.rootNode,this.options,AKi)}},TKi={};function kKi(e,t){const n=BF({},TKi,t);return new DKi(e,n).execute()}var RM=on(Pi()),IKi=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,[])).next())})},z1n=class V1n extends sZ{constructor(){super(...arguments),this.id="fishbone"}getRoot(){const t=this.context.model.getRootsData();if(!((0,RM.isEmpty)(t)||t.length>2))return t[0]}formatSize(t){const n=typeof t=="function"?t:()=>t;return i=>tb(n(i))}doLayout(t,n){const{hGap:i,getRibSep:r,vGap:o,nodeSize:s,height:a}=n,{model:l}=this.context,c=this.formatSize(s);let u=c(t)[0]+r(t);const d=(b,w=0)=>{var E;return w+=i*((b.children||[]).length+1),(E=b.children)===null||E===void 0||E.forEach(A=>{var D;(D=l.getNodeLikeDatum(A).children)===null||D===void 0||D.forEach(M=>{const P=l.getNodeLikeDatum(M);w=d(P,w)})}),w},h=b=>{if(b.depth===1)return u;const w=l.getParentData(b.id,"tree");if(J4(b)){const E=l.getParentData(w.id,"tree"),A=g(b)-g(E);return h(w)+A*i/o}else{const E=(w.children||[]).indexOf(b.id),A=l.getNodeData((w.children||[]).slice(E));return f(w)-A.reduce((D,T)=>D+d(T),0)-c(w)[0]/2}},f=(0,RM.memoize)(b=>{if(FMe(b))return c(b)[0]/2;const w=l.getParentData(b.id,"tree");if(J4(b))return h(b)+d(b)+c(b)[0]/2;{const E=g(b)-g(w),A=i/o;return h(b)+E*A}},b=>b.id),p=b=>g(l.getParentData(b,"tree")),g=(0,RM.memoize)(b=>{if(FMe(b))return a/2;if(J4(b)){const w=l.getParentData(b.id,"tree"),E=w.children.indexOf(b.id);if(E===0)return p(w.id)+o;const A=l.getNodeLikeDatum(w.children[E-1]);if((0,RM.isEmpty)(A.children))return g(A)+o;const D=l.getDescendantsData(A.id);return Math.max(...D.map(T=>J4(T)?p(T.id):g(T)))+o}else{if((0,RM.isEmpty)(b.children))return p(b.id)+o;const w=l.getNodeLikeDatum(b.children.slice(-1)[0]);if((0,RM.isEmpty)(w.children))return g(w)+o;const E=l.getDescendantsData(b.id).slice(-1)[0];return(J4(E)?p(E.id):g(E))+o}},b=>b.id);let m=0;const v={nodes:[],edges:[]},y=b=>{var w;(w=b.children)===null||w===void 0||w.forEach(M=>y(l.getNodeLikeDatum(M)));const E=g(b),A=f(b);if(v.nodes.push({id:b.id,x:A,y:E}),FMe(b))return;const D=l.getRelatedEdgesData(b.id,"in")[0],T=[h(b),J4(b)?E:p(b.id)];v.edges.push({id:an(D),controlPoints:[T],relatedNodeId:b.id}),m=Math.max(m,A+r(b)),b.depth===1&&(u=m)};return y(t),v}placeAlterative(t,n){const i=(n.children||[]).filter((a,l)=>l%2!==0);if(i.length===0)return t;const{model:r}=this.context,o=t.nodes.find(a=>a.id===n.id).y,s=a=>{const l=r.getAncestorsData(a,"tree");if((0,RM.isEmpty)(l))return!1;const c=l.length===1?a:l[l.length-2].id;return i.includes(c)};t.nodes.forEach(a=>{s(a.id)&&(a.y=2*o-a.y)}),t.edges.forEach(a=>{s(a.relatedNodeId)&&(a.controlPoints=a.controlPoints.map(l=>[l[0],2*o-l[1]]))})}rightToLeft(t,n){return t.nodes.forEach(i=>i.x=n.width-i.x),t.edges.forEach(i=>{i.controlPoints=i.controlPoints.map(r=>[n.width-r[0],r[1]])}),t}execute(t,n){return IKi(this,void 0,void 0,function*(){const i=Object.assign(Object.assign(Object.assign({},V1n.defaultOptions),this.options),n),{direction:r,nodeSize:o}=i,s=this.getRoot();if(!s)return t;const a=this.formatSize(o);i.vGap||(i.vGap=Math.max(...(t.nodes||[]).map(h=>a(h)[1]))),i.hGap||(i.hGap=Math.max(...(t.nodes||[]).map(h=>a(h)[0])));let l=this.doLayout(s,i);this.placeAlterative(l,s),r==="RL"&&(l=this.rightToLeft(l,i));const{model:c}=this.context,u=[],d=[];return l.nodes.forEach(h=>{const{id:f,x:p,y:g}=h,m=c.getNodeLikeDatum(f);u.push(t2t(m,{x:p,y:g}))}),l.edges.forEach(h=>{const{id:f,controlPoints:p}=h,g=c.getEdgeDatum(f);d.push(t2t(g,{controlPoints:p}))}),{nodes:u,edges:d}})}};z1n.defaultOptions={direction:"RL",getRibSep:()=>60};var t2t=(e,t)=>Object.assign(Object.assign({},e),{style:Object.assign(Object.assign({},e.style||{}),t)}),FMe=e=>e.depth===0,J4=e=>(e.depth||(e.depth=0))%2===0,LKi=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,[])).next())})},H1n=class W1n extends sZ{constructor(){super(...arguments),this.id="snake"}formatSize(t,n){const i=typeof n=="function"?n:(()=>n);return t.reduce((r,o)=>{const[s,a]=tb(i(o))||[0,0];return[Math.max(r[0],s),Math.max(r[1],a)]},[0,0])}validate(t){const{nodes:n=[],edges:i=[]}=t,r={},o={},s={};n.forEach(h=>{r[h.id]=0,o[h.id]=0,s[h.id]=[]}),i.forEach(h=>{r[h.target]++,o[h.source]++,s[h.source].push(h.target)});const a=new Set,l=h=>{a.has(h)||(a.add(h),s[h].forEach(l))};if(l(n[0].id),a.size!==n.length)return!1;const c=n.filter(h=>r[h.id]===0),u=n.filter(h=>o[h.id]===0);return!(c.length!==1||u.length!==1||n.filter(h=>r[h.id]===1&&o[h.id]===1).length!==n.length-2)}execute(t,n){return LKi(this,void 0,void 0,function*(){var i;if(!this.validate(t))return t;const{nodeSize:r,padding:o,sortBy:s,cols:a,colGap:l,rowGap:c,clockwise:u,width:d,height:h}=Object.assign({},W1n.defaultOptions,this.options,n),[f,p,g,m]=Lw(o),v=this.formatSize(t.nodes||[],r),y=Math.ceil((t.nodes||[]).length/a);let b=l||(d-m-p-a*v[0])/(a-1),w=c||(h-f-g-y*v[1])/(y-1);return(w===1/0||w<0)&&(w=0),(b===1/0||b<0)&&(b=0),{nodes:((s?(i=t.nodes)===null||i===void 0?void 0:i.sort(s):NKi(t))||[]).map((D,T)=>{const M=Math.floor(T/a),P=T%a,F=u?M%2===0?P:a-1-P:M%2===0?a-1-P:P,N=m+F*(v[0]+b)+v[0]/2,j=f+M*(v[1]+w)+v[1]/2;return{id:D.id,style:{x:N,y:j}}})}})}};H1n.defaultOptions={padding:0,cols:5,clockwise:!0};function NKi(e){const{nodes:t=[],edges:n=[]}=e,i={},r={};t.forEach(a=>{i[a.id]=0,r[a.id]=[]}),n.forEach(a=>{i[a.target]++,r[a.source].push(a.target)});const o=[],s=[];for(t.forEach(a=>{i[a.id]===0&&o.push(a.id)});o.length>0;){const a=o.shift(),l=t.find(c=>c.id===a);s.push(l),r[a].forEach(c=>{i[c]--,i[c]===0&&o.push(c)})}return s}var PKi=["rgb(158, 1, 66)","rgb(213, 62, 79)","rgb(244, 109, 67)","rgb(253, 174, 97)","rgb(254, 224, 139)","rgb(255, 255, 191)","rgb(230, 245, 152)","rgb(171, 221, 164)","rgb(102, 194, 165)","rgb(50, 136, 189)","rgb(94, 79, 162)"],MKi=["rgb(78, 121, 167)","rgb(242, 142, 44)","rgb(225, 87, 89)","rgb(118, 183, 178)","rgb(89, 161, 79)","rgb(237, 201, 73)","rgb(175, 122, 161)","rgb(255, 157, 167)","rgb(156, 117, 95)","rgb(186, 176, 171)"],OKi=["rgb(255, 245, 235)","rgb(254, 230, 206)","rgb(253, 208, 162)","rgb(253, 174, 107)","rgb(253, 141, 60)","rgb(241, 105, 19)","rgb(217, 72, 1)","rgb(166, 54, 3)","rgb(127, 39, 4)"],RKi=["rgb(247, 252, 245)","rgb(229, 245, 224)","rgb(199, 233, 192)","rgb(161, 217, 155)","rgb(116, 196, 118)","rgb(65, 171, 93)","rgb(35, 139, 69)","rgb(0, 109, 44)","rgb(0, 68, 27)"],FKi=["rgb(247, 251, 255)","rgb(222, 235, 247)","rgb(198, 219, 239)","rgb(158, 202, 225)","rgb(107, 174, 214)","rgb(66, 146, 198)","rgb(33, 113, 181)","rgb(8, 81, 156)","rgb(8, 48, 107)"],BKi=on(Pi()),Np=class extends _Ze{};function xj(e,t=!0,n){const i=document.createElement("div");return i.setAttribute("class",`g6-${e}`),Object.assign(i.style,{position:"absolute",display:"block"}),t&&Object.assign(i.style,{position:"unset",gridArea:"1 / 1 / 2 / 2",inset:"0px",height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none"}),n&&Object.assign(i.style,n),i}function sje(e,t="div",n={},i="",r=document.body){const o=document.getElementById(e);o&&o.remove();const s=document.createElement(t);return s.innerHTML=i,s.id=e,Object.assign(s.style,n),r.appendChild(s),s}var jKi=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,[])).next())})},U1n=class $1n extends Np{constructor(t,n){super(t,Object.assign({},$1n.defaultOptions,n)),this.$element=xj("background"),this.context.canvas.getContainer().prepend(this.$element),this.update(n)}update(t){const n=Object.create(null,{update:{get:()=>super.update}});return jKi(this,void 0,void 0,function*(){n.update.call(this,t),Object.assign(this.$element.style,(0,BKi.omit)(this.options,["key","type"]))})}destroy(){super.destroy(),this.$element.remove()}};U1n.defaultOptions={transition:"background 0.5s",backgroundSize:"cover",zIndex:"-1"};var oH=on(Pi());function jZe(e,t,n,i,r,o){const s=e,a=t,l=n-s,c=i-a;let u=r-s,d=o-a,h=u*l+d*c,f=0;h<=0?f=0:(u=l-u,d=c-d,h=u*l+d*c,h<=0?f=0:f=h*h/(l*l+c*c));const p=u*u+d*d-f;return p<0?0:p}function ZI(e,t,n,i){return(e-n)*(e-n)+(t-i)*(t-i)}function n2t(e,t,n,i,r){return ZI(e,t,n,i)<r*r}function zKi(e){if(!Number.isFinite(e))return n=>n;if(e===0)return Math.round;const t=Math.pow(10,e);return n=>Math.round(n*t)/t}function q1n(e){const t=Math.min(e.x1,e.x2),n=Math.max(e.x1,e.x2),i=Math.min(e.y1,e.y2),r=Math.max(e.y1,e.y2);return{x:t,y:i,x2:n,y2:r,width:n-t,height:r-i}}var am=class G1n{constructor(t,n,i,r){this.x1=t,this.y1=n,this.x2=i,this.y2=r}equals(t){return this.x1===t.x1&&this.y1===t.y1&&this.x2===t.x2&&this.y2===t.y2}draw(t){t.moveTo(this.x1,this.y1),t.lineTo(this.x2,this.y2)}toString(){return`Line(from=(${this.x1},${this.y1}),to=(${this.x2},${this.y2}))`}static from(t){return new G1n(t.x1,t.y1,t.x2,t.y2)}cuts(t,n){if(this.y1===this.y2||n<this.y1&&n<=this.y2||n>this.y1&&n>=this.y2||t>this.x1&&t>=this.x2)return!1;if(t<this.x1&&t<=this.x2)return!0;const i=this.x1+(n-this.y1)*(this.x2-this.x1)/(this.y2-this.y1);return t<=i}distSquare(t,n){return jZe(this.x1,this.y1,this.x2,this.y2,t,n)}ptClose(t,n,i){if(this.x1<this.x2){if(t<this.x1-i||t>this.x2+i)return!1}else if(t<this.x2-i||t>this.x1+i)return!1;if(this.y1<this.y2){if(n<this.y1-i||n>this.y2+i)return!1}else if(n<this.y2-i||n>this.y1+i)return!1;return!0}},Od;(function(e){e[e.POINT=1]="POINT",e[e.PARALLEL=2]="PARALLEL",e[e.COINCIDENT=3]="COINCIDENT",e[e.NONE=4]="NONE"})(Od||(Od={}));var BMe=class{constructor(e,t=0,n=0){this.state=e,this.x=t,this.y=n}};function wre(e,t){const n=(t.x2-t.x1)*(e.y1-t.y1)-(t.y2-t.y1)*(e.x1-t.x1),i=(e.x2-e.x1)*(e.y1-t.y1)-(e.y2-e.y1)*(e.x1-t.x1),r=(t.y2-t.y1)*(e.x2-e.x1)-(t.x2-t.x1)*(e.y2-e.y1);if(r){const o=n/r,s=i/r;return 0<=o&&o<=1&&0<=s&&s<=1?new BMe(Od.POINT,e.x1+o*(e.x2-e.x1),e.y1+o*(e.y2-e.y1)):new BMe(Od.NONE)}return new BMe(n===0||i===0?Od.COINCIDENT:Od.PARALLEL)}function K1n(e,t){const n=(t.x2-t.x1)*(e.y1-t.y1)-(t.y2-t.y1)*(e.x1-t.x1),i=(e.x2-e.x1)*(e.y1-t.y1)-(e.y2-e.y1)*(e.x1-t.x1),r=(t.y2-t.y1)*(e.x2-e.x1)-(t.x2-t.x1)*(e.y2-e.y1);if(r){const o=n/r,s=i/r;if(0<=o&&o<=1&&0<=s&&s<=1)return o}return Number.POSITIVE_INFINITY}function VKi(e,t){function n(r,o,s,a){let l=K1n(t,new am(r,o,s,a));return l=Math.abs(l-.5),l>=0&&l<=1?1:0}let i=n(e.x,e.y,e.x2,e.y);return i+=n(e.x,e.y,e.x,e.y2),i>1||(i+=n(e.x,e.y2,e.x2,e.y2),i>1)?!0:(i+=n(e.x2,e.y,e.x2,e.y2),i>0)}var Bd;(function(e){e[e.LEFT=0]="LEFT",e[e.TOP=1]="TOP",e[e.RIGHT=2]="RIGHT",e[e.BOTTOM=3]="BOTTOM"})(Bd||(Bd={}));function Cce(e,t,n){const i=new Set;return e.width<=0?(i.add(Bd.LEFT),i.add(Bd.RIGHT)):t<e.x?i.add(Bd.LEFT):t>e.x+e.width&&i.add(Bd.RIGHT),e.height<=0?(i.add(Bd.TOP),i.add(Bd.BOTTOM)):n<e.y?i.add(Bd.TOP):n>e.y+e.height&&i.add(Bd.BOTTOM),i}function Y1n(e,t){let n=t.x1,i=t.y1;const r=t.x2,o=t.y2,s=Array.from(Cce(e,r,o));if(s.length===0)return!0;let a=Cce(e,n,i);for(;a.size!==0;){for(const l of s)if(a.has(l))return!1;if(a.has(Bd.RIGHT)||a.has(Bd.LEFT)){let l=e.x;a.has(Bd.RIGHT)&&(l+=e.width),i=i+(l-n)*(o-i)/(r-n),n=l}else{let l=e.y;a.has(Bd.BOTTOM)&&(l+=e.height),n=n+(l-i)*(r-n)/(o-i),i=l}a=Cce(e,n,i)}return!0}function HKi(e,t){let n=Number.POSITIVE_INFINITY,i=0;function r(o,s,a,l){let c=K1n(t,new am(o,s,a,l));c=Math.abs(c-.5),c>=0&&c<=1&&(i++,c<n&&(n=c))}return r(e.x,e.y,e.x2,e.y),r(e.x,e.y,e.x,e.y2),i>1||(r(e.x,e.y2,e.x2,e.y2),i>1)?n:(r(e.x2,e.y,e.x2,e.y2),i===0?-1:n)}function WKi(e,t){let n=0;const i=wre(e,new am(t.x,t.y,t.x2,t.y));n+=i.state===Od.POINT?1:0;const r=wre(e,new am(t.x,t.y,t.x,t.y2));n+=r.state===Od.POINT?1:0;const o=wre(e,new am(t.x,t.y2,t.x2,t.y2));n+=o.state===Od.POINT?1:0;const s=wre(e,new am(t.x2,t.y,t.x2,t.y2));return n+=s.state===Od.POINT?1:0,{top:i,left:r,bottom:o,right:s,count:n}}var Ny=class aje{constructor(t,n,i,r){this.x=t,this.y=n,this.width=i,this.height=r}get x2(){return this.x+this.width}get y2(){return this.y+this.height}get cx(){return this.x+this.width/2}get cy(){return this.y+this.height/2}get radius(){return Math.max(this.width,this.height)/2}static from(t){return new aje(t.x,t.y,t.width,t.height)}equals(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height}clone(){return new aje(this.x,this.y,this.width,this.height)}add(t){const n=Math.min(this.x,t.x),i=Math.min(this.y,t.y),r=Math.max(this.x2,t.x+t.width),o=Math.max(this.y2,t.y+t.height);this.x=n,this.y=i,this.width=r-n,this.height=o-i}addPoint(t){const n=Math.min(this.x,t.x),i=Math.min(this.y,t.y),r=Math.max(this.x2,t.x),o=Math.max(this.y2,t.y);this.x=n,this.y=i,this.width=r-n,this.height=o-i}toString(){return`Rectangle[x=${this.x}, y=${this.y}, w=${this.width}, h=${this.height}]`}draw(t){t.rect(this.x,this.y,this.width,this.height)}containsPt(t,n){return t>=this.x&&t<=this.x2&&n>=this.y&&n<=this.y2}get area(){return this.width*this.height}intersects(t){return this.area<=0||t.width<=0||t.height<=0?!1:t.x+t.width>this.x&&t.y+t.height>this.y&&t.x<this.x2&&t.y<this.y2}distSquare(t,n){if(this.containsPt(t,n))return 0;const i=Cce(this,t,n);return i.has(Bd.TOP)?i.has(Bd.LEFT)?ZI(t,n,this.x,this.y):i.has(Bd.RIGHT)?ZI(t,n,this.x2,this.y):(this.y-n)*(this.y-n):i.has(Bd.BOTTOM)?i.has(Bd.LEFT)?ZI(t,n,this.x,this.y2):i.has(Bd.RIGHT)?ZI(t,n,this.x2,this.y2):(n-this.y2)*(n-this.y2):i.has(Bd.LEFT)?(this.x-t)*(this.x-t):i.has(Bd.RIGHT)?(t-this.x2)*(t-this.x2):0}};function UKi(e){if(e.length===0)return null;const t=e[0],n=new Ny(t.x,t.y,0,0);for(const i of e)n.addPoint(i);return n}var i2t=class Q1n{constructor(t,n,i){this.cx=t,this.cy=n,this.radius=i}get x(){return this.cx-this.radius}get x2(){return this.cx+this.radius}get width(){return this.radius*2}get y(){return this.cy-this.radius}get y2(){return this.cy+this.radius}get height(){return this.radius*2}static from(t){return new Q1n(t.cx,t.cy,t.radius)}containsPt(t,n){return ZI(this.cx,this.cy,t,n)<this.radius*this.radius}distSquare(t,n){const i=ZI(this.cx,this.cy,t,n);if(i<this.radius*this.radius)return 0;const r=Math.sqrt(i)-this.radius;return r*r}draw(t){t.ellipse(this.cx,this.cy,this.radius,this.radius,0,0,Math.PI*2)}},jMe=class Sce{constructor(t,n=0,i=0,r=0,o=0,s=10,a=10,l=new Float32Array(Math.max(0,s*a)).fill(0)){this.pixelGroup=t,this.i=n,this.j=i,this.pixelX=r,this.pixelY=o,this.width=s,this.height=a,this.area=l}createSub(t,n){return new Sce(this.pixelGroup,t.x,t.y,n.x,n.y,t.width,t.height)}static fromPixelRegion(t,n){return new Sce(n,0,0,t.x,t.y,Math.ceil(t.width/n),Math.ceil(t.height/n))}copy(t,n){return new Sce(this.pixelGroup,this.scaleX(n.x),this.scaleY(n.y),n.x,n.y,t.width,t.height,t.area)}boundX(t){return t<this.i?this.i:t>=this.width?this.width-1:t}boundY(t){return t<this.j?this.j:t>=this.height?this.height-1:t}scaleX(t){return this.boundX(Math.floor((t-this.pixelX)/this.pixelGroup))}scaleY(t){return this.boundY(Math.floor((t-this.pixelY)/this.pixelGroup))}scale(t){const n=this.scaleX(t.x),i=this.scaleY(t.y),r=this.boundX(Math.ceil((t.x+t.width-this.pixelX)/this.pixelGroup)),o=this.boundY(Math.ceil((t.y+t.height-this.pixelY)/this.pixelGroup)),s=r-n,a=o-i;return new Ny(n,i,s,a)}invertScaleX(t){return Math.round(t*this.pixelGroup+this.pixelX)}invertScaleY(t){return Math.round(t*this.pixelGroup+this.pixelY)}addPadding(t,n){const i=Math.ceil(n/this.pixelGroup),r=this.boundX(t.x-i),o=this.boundY(t.y-i),s=this.boundX(t.x2+i),a=this.boundY(t.y2+i),l=s-r,c=a-o;return new Ny(r,o,l,c)}get(t,n){return t<0||n<0||t>=this.width||n>=this.height?Number.NaN:this.area[t+n*this.width]}inc(t,n,i){t<0||n<0||t>=this.width||n>=this.height||(this.area[t+n*this.width]+=i)}set(t,n,i){t<0||n<0||t>=this.width||n>=this.height||(this.area[t+n*this.width]=i)}incArea(t,n){if(t.width<=0||t.height<=0||n===0)return;const i=this.width,r=t.width,o=Math.max(0,t.i),s=Math.max(0,t.j),a=Math.min(t.i+t.width,i),l=Math.min(t.j+t.height,this.height);if(!(l<=0||a<=0||o>=i||l>=this.height))for(let c=s;c<l;c++){const u=(c-t.j)*r,d=c*i;for(let h=o;h<a;h++){const f=t.area[h-t.i+u];f!==0&&(this.area[h+d]+=n*f)}}}fill(t){this.area.fill(t)}fillArea(t,n){const i=t.x+t.y*this.width;for(let r=0;r<t.height;r++){const o=i+r*this.width;this.area.fill(n,o,o+t.width)}}fillHorizontalLine(t,n,i,r){const o=t+n*this.width;this.area.fill(r,o,o+i)}fillVerticalLine(t,n,i,r){const o=t+n*this.width;for(let s=0;s<i;s++)this.area[o+s*this.width]=r}clear(){this.area.fill(0)}toString(){let t="";for(let n=0;n<this.height;n++){const i=n*this.width;for(let r=0;r<this.width;r++){const o=this.area[i+r];t+=o.toFixed(1).padStart(6),t+=" "}t+=`
`}return t}draw(t,n=!0){if(this.width<=0||this.height<=0)return;t.save(),n&&t.translate(this.pixelX,this.pixelY);const i=this.area.reduce((s,a)=>Math.min(s,a),Number.POSITIVE_INFINITY),r=this.area.reduce((s,a)=>Math.max(s,a),Number.NEGATIVE_INFINITY),o=s=>(s-i)/(r-i);t.scale(this.pixelGroup,this.pixelGroup);for(let s=0;s<this.width;s++)for(let a=0;a<this.height;a++){const l=this.area[s+a*this.width];t.fillStyle=`rgba(0, 0, 0, ${o(l)})`,t.fillRect(s,a,1,1)}t.restore()}drawThreshold(t,n,i=!0){if(!(this.width<=0||this.height<=0)){t.save(),i&&t.translate(this.pixelX,this.pixelY),t.scale(this.pixelGroup,this.pixelGroup);for(let r=0;r<this.width;r++)for(let o=0;o<this.height;o++){const s=this.area[r+o*this.width];t.fillStyle=s>n?"black":"white",t.fillRect(r,o,1,1)}t.restore()}}};function Z1n(e,t){const n=i=>({x:i.x-t,y:i.y-t,width:i.width+2*t,height:i.height+2*t});return Array.isArray(e)?e.map(n):n(e)}function r2t(e,t,n){return X1n(Object.assign(q1n(e),{distSquare:(i,r)=>jZe(e.x1,e.y1,e.x2,e.y2,i,r)}),t,n)}function X1n(e,t,n){const i=Z1n(e,n),r=t.scale(i),o=t.createSub(r,i);return $Ki(o,t,n,(s,a)=>e.distSquare(s,a)),o}function $Ki(e,t,n,i){const r=n*n;for(let o=0;o<e.height;o++)for(let s=0;s<e.width;s++){const a=t.invertScaleX(e.i+s),l=t.invertScaleY(e.j+o),c=i(a,l);if(c===0){e.set(s,o,r);continue}if(c<r){const u=n-Math.sqrt(c);e.set(s,o,u*u)}}return e}function qKi(e,t,n){const i=t.scale(e),r=t.addPadding(i,n),o=t.createSub(r,{x:e.x-n,y:e.y-n}),s=i.x-r.x,a=i.y-r.y,l=r.x2-i.x2,c=r.y2-i.y2,u=r.width-s-l,d=r.height-a-c,h=n*n;o.fillArea({x:s,y:a,width:u+1,height:d+1},h);const f=[0],p=Math.max(a,s,l,c);{const y=t.invertScaleX(i.x+i.width/2);for(let b=1;b<p;b++){const w=t.invertScaleY(i.y-b),E=e.distSquare(y,w);if(E<h){const A=n-Math.sqrt(E);f.push(A*A)}else break}}const g=[],m=Math.max(s,l),v=Math.max(a,l);for(let y=1;y<m;y++){const b=t.invertScaleX(i.x-y),w=[];for(let E=1;E<v;E++){const A=t.invertScaleY(i.y-E),D=e.distSquare(b,A);if(D<h){const T=n-Math.sqrt(D);w.push(T*T)}else w.push(0)}g.push(w)}for(let y=1;y<Math.min(a,f.length);y++){const b=f[y];o.fillHorizontalLine(s,a-y,u+1,b)}for(let y=1;y<Math.min(c,f.length);y++){const b=f[y];o.fillHorizontalLine(s,a+d+y,u+1,b)}for(let y=1;y<Math.min(s,f.length);y++){const b=f[y];o.fillVerticalLine(s-y,a,d+1,b)}for(let y=1;y<Math.min(c,f.length);y++){const b=f[y];o.fillVerticalLine(s+u+y,a,d+1,b)}for(let y=1;y<s;y++){const b=g[y-1],w=s-y;for(let E=1;E<a;E++)o.set(w,a-E,b[E-1]);for(let E=1;E<c;E++)o.set(w,a+d+E,b[E-1])}for(let y=1;y<l;y++){const b=g[y-1],w=s+u+y;for(let E=1;E<a;E++)o.set(w,a-E,b[E-1]);for(let E=1;E<c;E++)o.set(w,a+d+E,b[E-1])}return o}function Nu(e,t){return{x:e,y:t}}function GKi(e,t,n,i){if(e.length===0)return[];const r=XKi(e);return r.map((o,s)=>{const a=r.slice(0,s);return KKi(t,o,a,n,i)}).flat()}function KKi(e,t,n,i,r){const o=Nu(t.cx,t.cy),s=ZKi(o,n,e);if(s==null)return[];const a=new am(o.x,o.y,s.cx,s.cy),l=YKi(a,e,i,r);return QKi(l,e)}function YKi(e,t,n,i){const r=[],o=[];o.push(e);let s=!0;for(let a=0;a<n&&s;a++)for(s=!1;!s&&o.length>0;){const l=o.pop(),c=J1n(t,l),u=c?WKi(l,c):null;if(!c||!u||u.count!==2){s||r.push(l);continue}let d=i,h=Sre(c,d,u,!0),f=Uk(h,o)||Uk(h,r),p=Cre(h,t);for(;!f&&p&&d>=1;)d/=1.5,h=Sre(c,d,u,!0),f=Uk(h,o)||Uk(h,r),p=Cre(h,t);if(h&&!f&&!p&&(o.push(new am(l.x1,l.y1,h.x,h.y)),o.push(new am(h.x,h.y,l.x2,l.y2)),s=!0),s)continue;d=i,h=Sre(c,d,u,!1);let g=Uk(h,o)||Uk(h,r);for(p=Cre(h,t);!g&&p&&d>=1;)d/=1.5,h=Sre(c,d,u,!1),g=Uk(h,o)||Uk(h,r),p=Cre(h,t);h&&!g&&(o.push(new am(l.x1,l.y1,h.x,h.y)),o.push(new am(h.x,h.y,l.x2,l.y2)),s=!0),s||r.push(l)}for(;o.length>0;)r.push(o.pop());return r}function QKi(e,t){const n=[];for(;e.length>0;){const i=e.pop();if(e.length===0){n.push(i);break}const r=e.pop(),o=new am(i.x1,i.y1,r.x2,r.y2);J1n(t,o)?(n.push(i),e.push(r)):e.push(o)}return n}function ZKi(e,t,n){let i=Number.POSITIVE_INFINITY;return t.reduce((r,o)=>{const s=ZI(e.x,e.y,o.cx,o.cy);if(s>i)return r;const a=new am(e.x,e.y,o.cx,o.cy),l=JKi(n,a);return s*(l+1)*(l+1)<i&&(r=o,i=s*(l+1)*(l+1)),r},null)}function XKi(e){if(e.length<2)return e;let t=0,n=0;return e.forEach(i=>{t+=i.cx,n+=i.cy}),t/=e.length,n/=e.length,e.map(i=>{const r=t-i.cx,o=n-i.cy,s=r*r+o*o;return[i,s]}).sort((i,r)=>i[1]-r[1]).map(i=>i[0])}function Cre(e,t){return t.some(n=>n.containsPt(e.x,e.y))}function Uk(e,t){return t.some(n=>!!(n2t(n.x1,n.y1,e.x,e.y,.001)||n2t(n.x2,n.y2,e.x,e.y,.001)))}function J1n(e,t){let n=Number.POSITIVE_INFINITY,i=null;for(const r of e){if(!Y1n(r,t))continue;const o=HKi(r,t);o>=0&&o<n&&(i=r,n=o)}return i}function JKi(e,t){return e.reduce((n,i)=>Y1n(i,t)&&VKi(i,t)?n+1:n,0)}function Sre(e,t,n,i){const r=n.top,o=n.left,s=n.bottom,a=n.right;if(i){if(o.state===Od.POINT){if(r.state===Od.POINT)return Nu(e.x-t,e.y-t);if(s.state===Od.POINT)return Nu(e.x-t,e.y2+t);const h=e.width*e.height;return e.width*((o.y-e.y+(a.y-e.y))*.5)<h*.5?o.y>a.y?Nu(e.x-t,e.y-t):Nu(e.x2+t,e.y-t):o.y<a.y?Nu(e.x-t,e.y2+t):Nu(e.x2+t,e.y2+t)}if(a.state===Od.POINT){if(r.state===Od.POINT)return Nu(e.x2+t,e.y-t);if(s.state===Od.POINT)return Nu(e.x2+t,e.y2+t)}const u=e.height*e.width;return e.height*((r.x-e.x+(a.x-e.x))*.5)<u*.5?r.x>s.x?Nu(e.x-t,e.y-t):Nu(e.x-t,e.y2+t):r.x<s.x?Nu(e.x2+t,e.y-t):Nu(e.x2+t,e.y2+t)}if(o.state===Od.POINT){if(r.state===Od.POINT)return Nu(e.x2+t,e.y2+t);if(s.state===Od.POINT)return Nu(e.x2+t,e.y-t);const u=e.height*e.width;return e.width*((o.y-e.y+(a.y-e.y))*.5)<u*.5?o.y>a.y?Nu(e.x2+t,e.y2+t):Nu(e.x-t,e.y2+t):o.y<a.y?Nu(e.x2+t,e.y-t):Nu(e.x-t,e.y-t)}if(a.state===Od.POINT){if(r.state===Od.POINT)return Nu(e.x-t,e.y2+t);if(s.state===Od.POINT)return Nu(e.x-t,e.y-t)}const l=e.height*e.width;return e.height*((r.x-e.x+(a.x-e.x))*.5)<l*.5?r.x>s.x?Nu(e.x2+t,e.y2+t):Nu(e.x2+t,e.y-t):r.x<s.x?Nu(e.x-t,e.y2+t):Nu(e.x-t,e.y-t)}function eYi(e,t,n,i){if(!(e.closed?n<e.length:n<e.length-1))return!1;const o=e.get(t),s=e.get(n+1);for(let a=t+1;a<=n;a++){const l=e.get(a);if(jZe(o.x,o.y,s.x,s.y,l.x,l.y)>i)return!1}return!0}function tYi(e=0){return t=>{if(e<0||t.length<3)return t;const n=[];let i=0;const r=e*e;for(;i<t.length;){let o=i+1;for(;eYi(t,i,o,r);)o++;n.push(t.get(i)),i=o}return new Ej(n)}}function nYi(e,t){switch(e){case-2:return(((-t+3)*t-3)*t+1)/6;case-1:return((3*t-6)*t*t+4)/6;case 0:return(((-3*t+3)*t+3)*t+1)/6;case 1:return t*t*t/6;default:throw new Error("unknown error")}}function iYi(e=6){function o(s,a,l){let c=0,u=0;for(let d=-2;d<=1;d++){const h=s.get(a+d),f=nYi(d,l);c+=f*h.x,u+=f*h.y}return{x:c,y:u}}return s=>{if(s.length<3)return s;const a=[],l=s.closed,c=s.length+3-1+(l?0:2);a.push(o(s,2-(l?0:2),0));for(let u=2-(l?0:2);u<c;u++)for(let d=1;d<=e;d++)a.push(o(s,u,d/e));return new Ej(a)}}function rYi(e=8){return t=>{let n=e,i=t.length;if(n>1)for(i=Math.floor(t.length/n);i<3&&n>1;)n-=1,i=Math.floor(t.length/n);const r=[];for(let o=0,s=0;s<i;s++,o+=n)r.push(t.get(o));return new Ej(r)}}var Ej=class{constructor(e=[],t=!0){this.points=e,this.closed=t}get(e){const t=e,n=this.points.length;return e<0?this.closed?this.get(e+n):this.points[0]:e>=n?this.closed?this.get(e-n):this.points[n-1]:this.points[t]}get length(){return this.points.length}toString(e=1/0){const t=this.points;if(t.length===0)return"";const n=typeof e=="function"?e:zKi(e);let i="M";for(const r of t)i+=`${n(r.x)},${n(r.y)} L`;return i=i.slice(0,-1),this.closed&&(i+=" Z"),i}draw(e){const t=this.points;if(t.length!==0){e.beginPath(),e.moveTo(t[0].x,t[0].y);for(const n of t)e.lineTo(n.x,n.y);this.closed&&e.closePath()}}sample(e){return rYi(e)(this)}simplify(e){return tYi(e)(this)}bSplines(e){return iYi(e)(this)}apply(e){return e(this)}containsElements(e){const t=UKi(this.points);return t?e.every(n=>t.containsPt(n.cx,n.cy)&&this.withinArea(n.cx,n.cy)):!1}withinArea(e,t){if(this.length===0)return!1;let n=0;const i=this.points[0],r=new am(i.x,i.y,i.x,i.y);for(let o=1;o<this.points.length;o++){const s=this.points[o];r.x1=r.x2,r.y1=r.y2,r.x2=s.x,r.y2=s.y,r.cuts(e,t)&&n++}return r.x1=r.x2,r.y1=r.y2,r.x2=i.x,r.y2=i.y,r.cuts(e,t)&&n++,n%2===1}},oYi=class{constructor(e=0){this.count=0,this.arr=[],this.set=new Set,this.arr.length=e}add(e){this.set.add(`${e.x}x${e.y}`),this.arr[this.count++]=e}contains(e){return this.set.has(`${e.x}x${e.y}`)}isFirst(e){if(this.count===0)return!1;const t=this.arr[0];return t!=null&&t.x===e.x&&t.y===e.y}path(){return new Ej(this.arr.slice(0,this.count))}clear(){this.set.clear(),this.count=0}get(e){return this.arr[e]}get length(){return this.count}},sH=0,xre=1,Ere=2,zMe=3;function sYi(e,t){const n=(Math.floor(e.width)+Math.floor(e.height))*2,i=new oYi(n);function r(l,c,u,d){const h=e.get(l,c);return Number.isNaN(h)?Number.NaN:h>t?u+d:u}function o(l,c){let u=sH;return u=r(l,c,u,1),u=r(l+1,c,u,2),u=r(l,c+1,u,4),u=r(l+1,c+1,u,8),Number.isNaN(u)?-1:u}let s=xre;function a(l,c){let u=l,d=c,h=e.invertScaleX(u),f=e.invertScaleY(d);for(let p=0;p<e.width*e.height;p++){const g={x:h,y:f};if(i.contains(g)){if(i.isFirst(g))return!0}else i.add(g);const m=o(u,d);switch(m){case-1:return!0;case 0:case 3:case 2:case 7:s=Ere;break;case 12:case 14:case 4:s=zMe;break;case 6:s=s===sH?zMe:Ere;break;case 1:case 13:case 5:s=sH;break;case 9:s=s===Ere?sH:xre;break;case 10:case 8:case 11:s=xre;break;default:return console.warn("Marching squares invalid state: "+m),!0}switch(s){case sH:d--,f-=e.pixelGroup;break;case xre:d++,f+=e.pixelGroup;break;case zMe:u--,h-=e.pixelGroup;break;case Ere:u++,h+=e.pixelGroup;break;default:return console.warn("Marching squares invalid state: "+m),!0}}return!0}for(let l=0;l<e.width;l++)for(let c=0;c<e.height;c++){if(e.get(l,c)<=t)continue;const u=o(l,c);if(!(u<0||u===15)&&a(l,c))return i.path()}return null}var G0e={maxRoutingIterations:100,maxMarchingIterations:20,pixelGroup:4,edgeR0:10,edgeR1:20,nodeR0:15,nodeR1:50,morphBuffer:10,threshold:1,memberInfluenceFactor:1,edgeInfluenceFactor:1,nonMemberInfluenceFactor:-.8,virtualEdges:!0};function nq(e){return e!=null&&typeof e.radius=="number"}function o2t(e,t){if(nq(e)!==nq(t))return!1;if(nq(e)){const i=t;return e.cx===i.cx&&e.cy===i.cy&&e.radius===i.radius}const n=t;return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}var D1;(function(e){e[e.MEMBERS=0]="MEMBERS",e[e.NON_MEMBERS=1]="NON_MEMBERS",e[e.EDGES=2]="EDGES"})(D1||(D1={}));var s2t=class{constructor(e={}){this.dirty=new Set,this.members=[],this.nonMembers=[],this.virtualEdges=[],this.edges=[],this.activeRegion=new Ny(0,0,0,0),this.potentialArea=new jMe(1,0,0,0,0,0,0),this.o=Object.assign({},G0e,e)}pushMember(...e){if(e.length!==0){this.dirty.add(D1.MEMBERS);for(const t of e)this.members.push({raw:t,obj:nq(t)?i2t.from(t):Ny.from(t),area:null})}}removeMember(e){const t=this.members.findIndex(n=>o2t(n.raw,e));return t<0?!1:(this.members.splice(t,1),this.dirty.add(D1.MEMBERS),!0)}removeNonMember(e){const t=this.nonMembers.findIndex(n=>o2t(n.raw,e));return t<0?!1:(this.nonMembers.splice(t,1),this.dirty.add(D1.NON_MEMBERS),!0)}removeEdge(e){const t=this.edges.findIndex(n=>n.obj.equals(e));return t<0?!1:(this.edges.splice(t,1),this.dirty.add(D1.NON_MEMBERS),!0)}pushNonMember(...e){if(e.length!==0){this.dirty.add(D1.NON_MEMBERS);for(const t of e)this.nonMembers.push({raw:t,obj:nq(t)?i2t.from(t):Ny.from(t),area:null})}}pushEdge(...e){if(e.length!==0){this.dirty.add(D1.EDGES);for(const t of e)this.edges.push({raw:t,obj:am.from(t),area:null})}}update(){const e=this.dirty.has(D1.MEMBERS),t=this.dirty.has(D1.NON_MEMBERS);let n=this.dirty.has(D1.EDGES);this.dirty.clear();const i=this.members.map(l=>l.obj);if(this.o.virtualEdges&&(e||t)){const l=this.nonMembers.map(d=>d.obj),c=GKi(i,l,this.o.maxRoutingIterations,this.o.morphBuffer),u=new Map(this.virtualEdges.map(d=>[d.obj.toString(),d.area]));this.virtualEdges=c.map(d=>{var h;return{raw:d,obj:d,area:(h=u.get(d.toString()))!==null&&h!==void 0?h:null}}),n=!0}let r=!1;if(e||n){const l=this.virtualEdges.concat(this.edges).map(h=>h.obj),c=lYi(i,l),u=Math.max(this.o.edgeR1,this.o.nodeR1)+this.o.morphBuffer,d=Ny.from(Z1n(c,u));d.equals(this.activeRegion)||(r=!0,this.activeRegion=d)}if(r){const l=Math.ceil(this.activeRegion.width/this.o.pixelGroup),c=Math.ceil(this.activeRegion.height/this.o.pixelGroup);this.activeRegion.x!==this.potentialArea.pixelX||this.activeRegion.y!==this.potentialArea.pixelY?(this.potentialArea=jMe.fromPixelRegion(this.activeRegion,this.o.pixelGroup),this.members.forEach(u=>u.area=null),this.nonMembers.forEach(u=>u.area=null),this.edges.forEach(u=>u.area=null),this.virtualEdges.forEach(u=>u.area=null)):(l!==this.potentialArea.width||c!==this.potentialArea.height)&&(this.potentialArea=jMe.fromPixelRegion(this.activeRegion,this.o.pixelGroup))}const o=new Map,s=l=>{if(l.area){const c=`${l.obj.width}x${l.obj.height}x${l.obj instanceof Ny?"R":"C"}`;o.set(c,l.area)}},a=l=>{if(l.area)return;const c=`${l.obj.width}x${l.obj.height}x${l.obj instanceof Ny?"R":"C"}`;if(o.has(c)){const d=o.get(c);l.area=this.potentialArea.copy(d,{x:l.obj.x-this.o.nodeR1,y:l.obj.y-this.o.nodeR1});return}const u=l.obj instanceof Ny?qKi(l.obj,this.potentialArea,this.o.nodeR1):X1n(l.obj,this.potentialArea,this.o.nodeR1);l.area=u,o.set(c,u)};this.members.forEach(s),this.nonMembers.forEach(s),this.members.forEach(a),this.nonMembers.forEach(l=>{this.activeRegion.intersects(l.obj)?a(l):l.area=null}),this.edges.forEach(l=>{l.area||(l.area=r2t(l.obj,this.potentialArea,this.o.edgeR1))}),this.virtualEdges.forEach(l=>{l.area||(l.area=r2t(l.obj,this.potentialArea,this.o.edgeR1))})}drawMembers(e){for(const t of this.members)t.obj.draw(e)}drawNonMembers(e){for(const t of this.nonMembers)t.obj.draw(e)}drawEdges(e){for(const t of this.edges)t.obj.draw(e)}drawPotentialArea(e,t=!0){this.potentialArea.draw(e,t)}compute(){if(this.members.length===0)return new Ej([]);this.dirty.size>0&&this.update();const{o:e,potentialArea:t}=this,n=this.members.map(s=>s.area),i=this.virtualEdges.concat(this.edges).map(s=>s.area),r=this.nonMembers.filter(s=>s.area!=null).map(s=>s.area),o=this.members.map(s=>s.obj);return aYi(t,n,i,r,s=>s.containsElements(o),e)}};function aYi(e,t,n,i,r,o={}){const s=Object.assign({},G0e,o);let a=s.threshold,l=s.memberInfluenceFactor,c=s.edgeInfluenceFactor,u=s.nonMemberInfluenceFactor;const d=(s.nodeR0-s.nodeR1)*(s.nodeR0-s.nodeR1),h=(s.edgeR0-s.edgeR1)*(s.edgeR0-s.edgeR1);for(let f=0;f<s.maxMarchingIterations;f++){if(e.clear(),l!==0){const g=l/d;for(const m of t)e.incArea(m,g)}if(c!==0){const g=c/h;for(const m of n)e.incArea(m,g)}if(u!==0){const g=u/d;for(const m of i)e.incArea(m,g)}const p=sYi(e,a);if(p&&r(p))return p;if(a*=.95,f<=s.maxMarchingIterations*.5)l*=1.2,c*=1.2;else if(u!==0&&i.length>0)u*=.8;else break}return new Ej([])}function lYi(e,t){if(e.length===0)return new Ny(0,0,0,0);const n=Ny.from(e[0]);for(const i of e)n.add(i);for(const i of t)n.add(q1n(i));return n}var cYi=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},eCn=class tCn extends Np{constructor(t,n){super(t,(0,oH.deepMix)({},tCn.defaultOptions,n)),this.path=null,this.members=new Map,this.avoidMembers=new Map,this.bubbleSetOptions={},this.drawBubbleSets=()=>{const{style:i,bubbleSetOptions:r}=this.parseOptions();(0,oH.isEqual)(this.bubbleSetOptions,r)||this.init(),this.bubbleSetOptions=Object.assign({},r);const o=Object.assign(Object.assign({},i),{d:this.getPath()});this.shape?this.shape.update(o):(this.shape=new EZe({style:o}),this.context.canvas.appendChild(this.shape))},this.updateBubbleSetsPath=i=>{if(!this.shape)return;const r=an(i.data);[...this.options.members,...this.options.avoidMembers].includes(r)&&this.shape.update(Object.assign(Object.assign({},this.parseOptions().style),{d:this.getPath(r)}))},this.getPath=i=>{const{graph:r}=this.context,o=this.options.members,s=[...this.members.keys()],a=this.options.avoidMembers,l=[...this.avoidMembers.keys()];if(o.length===0&&a.length===0)return this.members.clear(),this.avoidMembers.clear(),this.path=[],this.path;if(!i&&this.path&&(0,oH.isEqual)(o,s)&&(0,oH.isEqual)(a,l))return this.path;const{enter:c=[],exit:u=[]}=gL(s,o,m=>m),{enter:d=[],exit:h=[]}=gL(l,a,m=>m);if(i){const m=o.includes(i),v=a.includes(i);m&&(u.push(i),c.push(i)),v&&(h.push(i),d.push(i))}const f=(m,v,y)=>{m.forEach(b=>{const w=y?this.members:this.avoidMembers,E=y?"pushMember":"pushNonMember",A=y?"removeMember":"removeNonMember";if(v){let D;r.getElementType(b)==="edge"?([D]=dYi(r,b),this.bubbleSets.pushEdge(D)):([D]=uYi(r,b),this.bubbleSets[E](D)),w.set(b,D)}else{const D=w.get(b);D&&(r.getElementType(b)==="edge"?this.bubbleSets.removeEdge(D):this.bubbleSets[A](D),w.delete(b))}})};f(u,!1,!0),f(c,!0,!0),f(h,!1,!1),f(d,!0,!1);const g=this.bubbleSets.compute().sample(8).simplify(0).bSplines().simplify(0);return this.path=hwn(g.points.map(og)),this.path},this.bindEvents(),this.bubbleSets=new s2t(this.options)}bindEvents(){this.context.graph.on(Ni.AFTER_RENDER,this.drawBubbleSets),this.context.graph.on(Ni.AFTER_ELEMENT_UPDATE,this.updateBubbleSetsPath)}init(){this.bubbleSets=new s2t(this.options),this.members.clear(),this.avoidMembers.clear(),this.path=null}parseOptions(){const t=this.options,{type:n,key:i,members:r,avoidMembers:o}=t,s=cYi(t,["type","key","members","avoidMembers"]),a=Object.keys(s).reduce((l,c)=>(c in G0e?l.bubbleSetOptions[c]=s[c]:l.style[c]=s[c],l),{style:{},bubbleSetOptions:{}});return Object.assign({type:n,key:i,members:r,avoidMembers:o},a)}addMember(t){const n=Array.isArray(t)?t:[t];n.some(i=>this.options.avoidMembers.includes(i))&&(this.options.avoidMembers=this.options.avoidMembers.filter(i=>!n.includes(i))),this.options.members=[...new Set([...this.options.members,...n])],this.drawBubbleSets()}removeMember(t){const n=Array.isArray(t)?t:[t];this.options.members=this.options.members.filter(i=>!n.includes(i)),this.drawBubbleSets()}updateMember(t){this.options.members=(0,oH.isFunction)(t)?t(this.options.members):t,this.drawBubbleSets()}getMember(){return this.options.members}addAvoidMember(t){const n=Array.isArray(t)?t:[t];n.some(i=>this.options.members.includes(i))&&(this.options.members=this.options.members.filter(i=>!n.includes(i))),this.options.avoidMembers=[...new Set([...this.options.avoidMembers,...n])],this.drawBubbleSets()}removeAvoidMember(t){const n=Array.isArray(t)?t:[t];this.options.avoidMembers.some(i=>n.includes(i))&&(this.options.avoidMembers=this.options.avoidMembers.filter(i=>!n.includes(i)),this.drawBubbleSets())}updateAvoidMember(t){this.options.avoidMembers=Array.isArray(t)?t:[t],this.drawBubbleSets()}getAvoidMember(){return this.options.avoidMembers}destroy(){this.context.graph.off(Ni.AFTER_RENDER,this.drawBubbleSets),this.context.graph.off(Ni.AFTER_ELEMENT_UPDATE,this.updateBubbleSetsPath),this.shape&&(this.shape.destroy(),this.shape=void 0),super.destroy()}};eCn.defaultOptions=Object.assign({members:[],avoidMembers:[],fill:"lightblue",fillOpacity:.2,stroke:"blue",strokeOpacity:.2},G0e);var uYi=(e,t)=>(Array.isArray(t)?t:[t]).map(i=>{const r=e.getElementRenderBounds(i);return new Ny(r.min[0],r.min[1],TE(r),kE(r))}),dYi=(e,t)=>(Array.isArray(t)?t:[t]).map(i=>{const r=e.getEdgeData(i),o=e.getElementPosition(r.source),s=e.getElementPosition(r.target);return am.from({x1:o[0],y1:o[1],x2:s[0],y2:s[1]})});function hYi(e){return`
    <ul class="g6-contextmenu-ul">
      ${e.map(t=>`<li  class="g6-contextmenu-li" value="${t.value}">${t.name}</li>`).join("")}
    </ul>
  `}var fYi=`
  .g6-contextmenu {
    font-size: 12px;
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 6px 12px 0px;
    transition: visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1) 0s, left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s;
  }

  .g6-contextmenu-ul {
    max-width: 256px;
    min-width: 96px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .g6-contextmenu-li {
    padding: 8px 12px;
    cursor: pointer;
    user-select: none;
  }

  .g6-contextmenu-li:hover {
    background-color: #f5f5f5;
    cursor: pointer;
  }
`,a2t=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,[])).next())})},nCn=class iCn extends Np{constructor(t,n){super(t,Object.assign({},iCn.defaultOptions,n)),this.targetElement=null,this.onTriggerEvent=i=>{var r;(r=i.preventDefault)===null||r===void 0||r.call(i),this.show(i)},this.onMenuItemClick=i=>{const{onClick:r,trigger:o}=this.options;if(i.target instanceof HTMLElement&&i.target.className.includes("g6-contextmenu-li")){const s=i.target.getAttribute("value");r?.(s,i.target,this.targetElement),this.hide()}o!=="click"&&this.hide()},this.initElement(),this.update(n)}initElement(){this.$element=xj("contextmenu",!1,{zIndex:"99"});const{className:t}=this.options;t&&this.$element.classList.add(t),this.context.canvas.getContainer().appendChild(this.$element),sje("g6-contextmenu-css","style",{},fYi,document.head)}show(t){return a2t(this,void 0,void 0,function*(){const{enable:n,offset:i}=this.options;if(typeof n=="function"&&!n(t)||!n){this.hide();return}const r=yield this.getDOMContent(t);r instanceof HTMLElement?(this.$element.innerHTML="",this.$element.appendChild(r)):this.$element.innerHTML=r;const o=this.context.graph.getCanvas().getContainer().getBoundingClientRect();this.$element.style.left=`${t.client.x-o.left+i[0]}px`,this.$element.style.top=`${t.client.y-o.top+i[1]}px`,this.$element.style.display="block",this.targetElement=t.target})}hide(){this.$element.style.display="none",this.targetElement=null}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}destroy(){this.unbindEvents(),super.destroy(),this.$element.remove()}getDOMContent(t){return a2t(this,void 0,void 0,function*(){const{getContent:n,getItems:i}=this.options;return i?hYi(yield i(t)):yield n(t)})}bindEvents(){const{graph:t}=this.context,{trigger:n}=this.options;t.on(`canvas:${n}`,this.onTriggerEvent),t.on(`node:${n}`,this.onTriggerEvent),t.on(`edge:${n}`,this.onTriggerEvent),t.on(`combo:${n}`,this.onTriggerEvent),document.addEventListener("click",this.onMenuItemClick)}unbindEvents(){const{graph:t}=this.context,{trigger:n}=this.options;t.off(`canvas:${n}`,this.onTriggerEvent),t.off(`node:${n}`,this.onTriggerEvent),t.off(`edge:${n}`,this.onTriggerEvent),t.off(`combo:${n}`,this.onTriggerEvent),document.removeEventListener("click",this.onMenuItemClick)}};nCn.defaultOptions={trigger:"contextmenu",offset:[4,4],loadingContent:'<div class="g6-contextmenu-loading">Loading...</div>',getContent:()=>"It is a empty context menu.",enable:()=>!0};var pYi=on(Pi()),rCn=class oCn extends Np{constructor(t,n){super(t,Object.assign({},oCn.defaultOptions,n)),this.edgeBundles={},this.edgePoints={},this.onBundle=()=>{const{model:i,element:r}=this.context,o=i.getEdgeData();this.divideEdges(this.options.divisions);const{cycles:s,iterRate:a,divRate:l}=this.options;let{lambda:c,divisions:u,iterations:d}=this.options;for(let h=0;h<s;h++){for(let f=0;f<d;f++){const p={};o.forEach(g=>{var m;if(g.source===g.target)return;const v=an(g);p[v]=this.getEdgeForces(g,u,c);for(let y=0;y<u+1;y++)(m=this.edgePoints)[v]||(m[v]=[]),this.edgePoints[v][y]=_s(this.edgePoints[v][y],p[v][y])})}c/=2,u*=l,d*=a,this.divideEdges(u)}o.forEach(h=>{const f=an(h),p=r.getElement(f);p?.update({d:LZe(this.edgePoints[f])})})},this.bindEvents()}get nodeMap(){const t=this.context.model.getNodeData();return Object.fromEntries(t.map(n=>[an(n),M2(zf(n))]))}divideEdges(t){this.context.model.getEdgeData().forEach(i=>{var r;const o=an(i);(r=this.edgePoints)[o]||(r[o]=[]);const s=this.nodeMap[i.source],a=this.nodeMap[i.target];if(t===1)this.edgePoints[o].push(s),this.edgePoints[o].push(MC(_s(s,a),2)),this.edgePoints[o].push(a);else{const c=(this.edgePoints[o].length===0?bu(s,a):bYi(this.edgePoints[o]))/(t+1);let u=c;const d=[s];for(let h=1;h<this.edgePoints[o].length;h++){const f=this.edgePoints[o][h-1],p=this.edgePoints[o][h];let g=bu(p,f);for(;g>u;){const m=u/g,v=_s(f,U1(wc(p,f),m));d.push(v),g-=u,u=c}u-=g}d.push(a),this.edgePoints[o]=d}})}getVectorPosition(t){const n=this.nodeMap[t.source],i=this.nodeMap[t.target],[r,o]=wc(i,n),s=bu(n,i);return{source:n,target:i,vx:r,vy:o,length:s}}measureEdgeCompatibility(t,n){const i=this.getVectorPosition(t),r=this.getVectorPosition(n),o=gYi(i,r),s=mYi(i,r),a=vYi(i,r),l=yYi(i,r);return o*s*a*l}getEdgeBundles(){const t={},n=this.options.bundleThreshold,i=this.context.model.getEdgeData();return i.forEach((r,o)=>{i.forEach((s,a)=>{var l,c;if(a<=o)return;this.measureEdgeCompatibility(r,s)>=n&&(t[l=an(r)]||(t[l]=[]),t[an(r)].push(s),t[c=an(s)]||(t[c]=[]),t[an(s)].push(r))})}),t}getSpringForce(t,n){const{pre:i,cur:r,next:o}=t;return U1(wc(_s(i,o),U1(r,2)),n)}getElectrostaticForce(t,n){(0,pYi.isEmpty)(this.edgeBundles)&&(this.edgeBundles=this.getEdgeBundles());const i=this.edgeBundles[an(n)];let r=[0,0];return i?.forEach(o=>{const s=this.edgePoints[an(o)][t],a=this.edgePoints[an(n)][t],l=wc(s,a),c=bu(s,a);r=_s(r,U1(l,1/c))}),r}getEdgeForces(t,n,i){const r=this.nodeMap[t.source],o=this.nodeMap[t.target],s=this.options.K/(bu(r,o)*(n+1)),a=[[0,0]],l=an(t);for(let c=1;c<n;c++){const u=this.getSpringForce({pre:this.edgePoints[l][c-1],cur:this.edgePoints[l][c],next:this.edgePoints[l][c+1]||[0,0]},s),d=this.getElectrostaticForce(c,t);a.push(U1(_s(u,d),i))}return a.push([0,0]),a}bindEvents(){const{graph:t}=this.context;t.on(Ni.AFTER_RENDER,this.onBundle)}unbindEvents(){const{graph:t}=this.context;t.off(Ni.AFTER_RENDER,this.onBundle)}destroy(){this.unbindEvents(),super.destroy()}};rCn.defaultOptions={K:.1,lambda:.1,divisions:1,divRate:2,cycles:6,iterations:90,iterRate:2/3,bundleThreshold:.6};var gYi=(e,t)=>Math.abs(y$i([e.vx,e.vy],[t.vx,t.vy])/(e.length*t.length)),mYi=(e,t)=>{const n=(e.length+t.length)/2;return 2/(n/Math.min(e.length,t.length)+Math.max(e.length,t.length)/n)},vYi=(e,t)=>{const n=(e.length+t.length)/2,i=MC(_s(e.source,e.target),2),r=MC(_s(t.source,t.target),2);return n/(n+bu(i,r))},l2t=(e,t)=>{if(t.source[0]===t.target[0])return[t.source[0],e[1]];if(t.source[1]===t.target[1])return[e[0],t.source[1]];const n=(t.source[1]-t.target[1])/(t.source[0]-t.target[0]),i=(n*n*t.source[0]+n*(e[1]-t.source[1])+e[0])/(n*n+1),r=n*(i-t.source[0])+t.source[1];return[i,r]},c2t=(e,t)=>{const n=l2t(t.source,e),i=l2t(t.target,e),r=MC(_s(n,i),2),o=MC(_s(e.source,e.target),2);return bu(n,i)===0?0:Math.max(0,1-2*bu(o,r)/bu(n,i))},yYi=(e,t)=>Math.min(c2t(e,t),c2t(t,e)),bYi=e=>{let t=0;for(let n=1;n<e.length;n++)t+=bu(e[n],e[n-1]);return t},_Yi={fill:"#fff",fillOpacity:1,lineWidth:1,stroke:"#000",strokeOpacity:.8,zIndex:-1/0},u2t=.05,sCn=class aCn extends Np{constructor(t,n){super(t,Object.assign({},aCn.defaultOptions,n)),this.shapes=new Map,this.r=this.options.r,this.onEdgeFilter=i=>{if(this.options.trigger==="drag"&&this.isLensOn)return;const r=og(i.canvas);this.renderLens(r),this.renderFocusElements()},this.renderLens=i=>{const r=Object.assign({},_Yi,this.options.style);this.isLensOn||(this.lens=new FF({style:r}),this.canvas.appendChild(this.lens)),Object.assign(r,$1(i),{size:this.r*2}),this.lens.update(r)},this.getFilterData=()=>{const{filter:i}=this.options,{model:r}=this.context,o=r.getData();if(!i)return o;const{nodes:s,edges:a,combos:l}=o;return{nodes:s.filter(c=>i(an(c),"node")),edges:a.filter(c=>i(an(c),"edge")),combos:l.filter(c=>i(an(c),"combo"))}},this.getFocusElements=i=>{const{nodes:r,edges:o}=this.getFilterData(),s=r.filter(c=>bu(zf(c),i)<this.r),a=s.map(c=>an(c)),l=o.filter(c=>{const{source:u,target:d}=c,h=a.includes(u),f=a.includes(d);switch(this.options.nodeType){case"both":return h&&f;case"either":return h!==f;case"source":return h&&!f;case"target":return!h&&f;default:return!1}});return{nodes:s,edges:l}},this.renderFocusElements=()=>{const{element:i,graph:r}=this.context;if(!this.isLensOn)return;const o=this.lens.getCenter(),{nodes:s,edges:a}=this.getFocusElements(o),l=new Set,c=u=>{const d=an(u);l.add(d);const h=i.getElement(d);if(!h)return;const f=this.shapes.get(d)||h.cloneNode();f.setPosition(h.getPosition()),f.id=h.id,this.shapes.has(d)?Object.entries(h.attributes).forEach(([m,v])=>{f.style[m]!==v&&(f.style[m]=v)}):(this.canvas.appendChild(f),this.shapes.set(d,f));const p=r.getElementType(d),g=this.getElementStyle(p,u);f.update(g)};s.forEach(c),a.forEach(c),this.shapes.forEach((u,d)=>{l.has(d)||(u.destroy(),this.shapes.delete(d))})},this.scaleRByWheel=i=>{var r;this.options.preventDefault&&i.preventDefault();const{clientX:o,clientY:s,deltaX:a,deltaY:l}=i,{graph:c,canvas:u}=this.context,d=c.getCanvasByClient([o,s]),h=(r=this.lens)===null||r===void 0?void 0:r.getCenter();if(!this.isLensOn||bu(d,h)>this.r)return;const{maxR:f,minR:p}=this.options,g=a+l>0?1/(1-u2t):1-u2t,m=Math.min(...u.getSize())/2;this.r=Math.max(p||0,Math.min(f||m,this.r*g)),this.renderLens(h),this.renderFocusElements()},this.isLensDragging=!1,this.onDragStart=i=>{var r;const o=og(i.canvas),s=(r=this.lens)===null||r===void 0?void 0:r.getCenter();!this.isLensOn||bu(o,s)>this.r||(this.isLensDragging=!0)},this.onDrag=i=>{if(!this.isLensDragging)return;const r=og(i.canvas);this.renderLens(r),this.renderFocusElements()},this.onDragEnd=()=>{this.isLensDragging=!1},this.bindEvents()}get canvas(){return this.context.canvas.getLayer("transient")}get isLensOn(){return this.lens&&!this.lens.destroyed}getElementStyle(t,n){const i=t==="node"?this.options.nodeStyle:this.options.edgeStyle;return typeof i=="function"?i(n):i}get graphDom(){return this.context.graph.getCanvas().getContextService().getDomElement()}bindEvents(){var t;const{graph:n}=this.context,{trigger:i,scaleRBy:r}=this.options,o=n.getCanvas().getLayer();["click","drag"].includes(i)&&o.addEventListener(Rn.CLICK,this.onEdgeFilter),i==="pointermove"?o.addEventListener(Rn.POINTER_MOVE,this.onEdgeFilter):i==="drag"&&(o.addEventListener(Rn.DRAG_START,this.onDragStart),o.addEventListener(Rn.DRAG,this.onDrag),o.addEventListener(Rn.DRAG_END,this.onDragEnd)),r==="wheel"&&((t=this.graphDom)===null||t===void 0||t.addEventListener(Rn.WHEEL,this.scaleRByWheel,{passive:!1}))}unbindEvents(){var t;const{graph:n}=this.context,{trigger:i,scaleRBy:r}=this.options,o=n.getCanvas().getLayer();["click","drag"].includes(i)&&o.removeEventListener(Rn.CLICK,this.onEdgeFilter),i==="pointermove"?o.removeEventListener(Rn.POINTER_MOVE,this.onEdgeFilter):i==="drag"&&(o.removeEventListener(Rn.DRAG_START,this.onDragStart),o.removeEventListener(Rn.DRAG,this.onDrag),o.removeEventListener(Rn.DRAG_END,this.onDragEnd)),r==="wheel"&&((t=this.graphDom)===null||t===void 0||t.removeEventListener(Rn.WHEEL,this.scaleRByWheel))}update(t){var n;this.unbindEvents(),super.update(t),this.r=(n=t.r)!==null&&n!==void 0?n:this.r,this.bindEvents()}destroy(){this.unbindEvents(),this.isLensOn&&this.lens.destroy(),this.shapes.forEach((t,n)=>{t.destroy(),this.shapes.delete(n)}),super.destroy()}};sCn.defaultOptions={trigger:"pointermove",r:60,nodeType:"both",filter:()=>!0,style:{lineWidth:2},nodeStyle:{label:!1},edgeStyle:{label:!0},scaleRBy:"wheel",preventDefault:!0};var wYi=on(Pi()),CYi={fill:"#ccc",fillOpacity:.1,lineWidth:2,stroke:"#000",strokeOpacity:.8,labelFontSize:12},d2t=.05,h2t=.1,lCn=class cCn extends Np{constructor(t,n){super(t,Object.assign({},cCn.defaultOptions,n)),this.r=this.options.r,this.d=this.options.d,this.onCreateFisheye=i=>{if(this.options.trigger==="drag"&&this.isLensOn)return;const r=og(i.canvas);this.onMagnify(r)},this.onMagnify=i=>{i.some(isNaN)||(this.renderLens(i),this.renderFocusElements())},this.renderLens=i=>{const r=Object.assign({},CYi,this.options.style);this.isLensOn||(this.lens=new FF({style:r}),this.canvas.appendChild(this.lens)),Object.assign(r,$1(i),{size:this.r*2,label:this.options.showDPercent,labelText:this.getDPercent()}),this.lens.update(r)},this.getDPercent=()=>{const{minD:i,maxD:r}=this.options;return`${Math.round((this.d-i)/(r-i)*100)}%`},this.prevMagnifiedStyleMap=new Map,this.prevOriginStyleMap=new Map,this.renderFocusElements=()=>{if(!this.isLensOn)return;const{graph:i}=this.context,r=this.lens.getCenter(),o=(this.d+1)*this.r,s=new Map,a=new Map;i.getNodeData().forEach(c=>{const u=zf(c),d=bu(u,r);if(d>this.r)return;const h=o*d/(this.d*d+this.r),[f,p]=u,[g,m]=r,v=(f-g)/d,y=(p-m)/d,b=[g+h*v,m+h*y],w=an(c),E=this.getNodeStyle(c),A=(0,wYi.pick)(i.getElementRenderStyle(w),Object.keys(E));s.set(w,Object.assign(Object.assign({},$1(b)),E)),a.set(w,Object.assign(Object.assign({},$1(u)),A))}),this.updateStyle(s,a)},this.getNodeStyle=i=>{const{nodeStyle:r}=this.options;return typeof r=="function"?r(i):r},this.updateStyle=(i,r)=>{const{graph:o,element:s}=this.context,{enter:a,exit:l,keep:c}=gL(Array.from(this.prevMagnifiedStyleMap.keys()),Array.from(i.keys()),h=>h),u=new Set,d=(h,f)=>{const p=s.getElement(h);p?.update(f),o.getRelatedEdgesData(h).forEach(g=>{u.add(an(g))})};[...a,...c].forEach(h=>{d(h,i.get(h))}),l.forEach(h=>{d(h,this.prevOriginStyleMap.get(h)),this.prevOriginStyleMap.delete(h)}),u.forEach(h=>{const f=s.getElement(h);f?.update({})}),this.prevMagnifiedStyleMap=i,r.forEach((h,f)=>{this.prevOriginStyleMap.has(f)||this.prevOriginStyleMap.set(f,h)})},this.isWheelValid=i=>{if(this.options.preventDefault&&i.preventDefault(),!this.isLensOn)return!1;const{clientX:r,clientY:o}=i,s=this.context.graph.getCanvasByClient([r,o]),a=this.lens.getCenter();return!(bu(s,a)>this.r)},this.scaleR=i=>{const{maxR:r,minR:o}=this.options,s=i?1/(1-d2t):1-d2t,a=Math.min(...this.context.canvas.getSize())/2;this.r=Math.max(o||0,Math.min(r||a,this.r*s))},this.scaleD=i=>{const{maxD:r,minD:o}=this.options,s=i?this.d+h2t:this.d-h2t;this.d=Math.max(o,Math.min(r,s))},this.scaleRByWheel=i=>{if(!this.isWheelValid(i))return;const{deltaX:r,deltaY:o}=i;this.scaleR(r+o>0);const s=this.lens.getCenter();this.onMagnify(s)},this.scaleDByWheel=i=>{if(!this.isWheelValid(i))return;const{deltaX:r,deltaY:o}=i;this.scaleD(r+o>0);const s=this.lens.getCenter();this.onMagnify(s)},this.isDragValid=i=>{if(this.options.preventDefault&&i.preventDefault(),!this.isLensOn)return!1;const r=og(i.canvas),o=this.lens.getCenter();return!(bu(r,o)>this.r)},this.isLensDragging=!1,this.onDragStart=i=>{this.isDragValid(i)&&(this.isLensDragging=!0)},this.onDrag=i=>{if(!this.isLensDragging)return;const r=og(i.canvas);this.onMagnify(r)},this.onDragEnd=()=>{this.isLensDragging=!1},this.scaleRByDrag=i=>{if(!this.isLensDragging)return;const{dx:r,dy:o}=i;this.scaleR(r-o>0);const s=this.lens.getCenter();this.onMagnify(s)},this.scaleDByDrag=i=>{if(!this.isLensDragging)return;const{dx:r,dy:o}=i;this.scaleD(r-o>0);const s=this.lens.getCenter();this.onMagnify(s)},this.bindEvents()}get canvas(){return this.context.canvas.getLayer("transient")}get isLensOn(){return this.lens&&!this.lens.destroyed}get graphDom(){return this.context.graph.getCanvas().getContextService().getDomElement()}bindEvents(){var t;const{graph:n}=this.context,{trigger:i,scaleRBy:r,scaleDBy:o}=this.options,s=n.getCanvas().getLayer();if(["click","drag"].includes(i)&&s.addEventListener(Rn.CLICK,this.onCreateFisheye),i==="pointermove"&&s.addEventListener(Rn.POINTER_MOVE,this.onCreateFisheye),i==="drag"||r==="drag"||o==="drag"){s.addEventListener(Rn.DRAG_START,this.onDragStart),s.addEventListener(Rn.DRAG_END,this.onDragEnd);const a=i==="drag"?this.onDrag:r==="drag"?this.scaleRByDrag:this.scaleDByDrag;s.addEventListener(Rn.DRAG,a)}if(r==="wheel"||o==="wheel"){const a=r==="wheel"?this.scaleRByWheel:this.scaleDByWheel;(t=this.graphDom)===null||t===void 0||t.addEventListener(Rn.WHEEL,a,{passive:!1})}}unbindEvents(){var t;const{graph:n}=this.context,{trigger:i,scaleRBy:r,scaleDBy:o}=this.options,s=n.getCanvas().getLayer();if(["click","drag"].includes(i)&&s.removeEventListener(Rn.CLICK,this.onCreateFisheye),i==="pointermove"&&s.removeEventListener(Rn.POINTER_MOVE,this.onCreateFisheye),i==="drag"||r==="drag"||o==="drag"){s.removeEventListener(Rn.DRAG_START,this.onDragStart),s.removeEventListener(Rn.DRAG_END,this.onDragEnd);const a=i==="drag"?this.onDrag:r==="drag"?this.scaleRByDrag:this.scaleDByDrag;s.removeEventListener(Rn.DRAG,a)}if(r==="wheel"||o==="wheel"){const a=r==="wheel"?this.scaleRByWheel:this.scaleDByWheel;(t=this.graphDom)===null||t===void 0||t.removeEventListener(Rn.WHEEL,a)}}update(t){var n,i;this.unbindEvents(),super.update(t),this.r=(n=t.r)!==null&&n!==void 0?n:this.r,this.d=(i=t.d)!==null&&i!==void 0?i:this.d,this.bindEvents()}destroy(){var t;this.unbindEvents(),this.isLensOn&&((t=this.lens)===null||t===void 0||t.destroy()),this.prevMagnifiedStyleMap.clear(),this.prevOriginStyleMap.clear(),super.destroy()}};lCn.defaultOptions={trigger:"pointermove",r:120,d:1.5,maxD:5,minD:0,showDPercent:!0,style:{},nodeStyle:{label:!0},preventDefault:!0};var uCn=class dCn extends Np{constructor(t,n){super(t,Object.assign({},dCn.defaultOptions,n)),this.$el=this.context.canvas.getContainer(),this.graphSize=[0,0],this.onFullscreenChange=()=>{var i,r,o,s;const a=!!document.fullscreenElement;this.options.autoFit&&this.setGraphSize(a),a?(r=(i=this.options).onEnter)===null||r===void 0||r.call(i):(s=(o=this.options).onExit)===null||s===void 0||s.call(o)},this.shortcut=new rP(t.graph),this.bindEvents(),this.style=document.createElement("style"),document.head.appendChild(this.style),this.style.innerHTML=`
      :not(:root):fullscreen::backdrop {
        background: transparent;
      }
    `}bindEvents(){this.unbindEvents(),this.shortcut.unbindAll();const{request:t=[],exit:n=[]}=this.options.trigger;this.shortcut.bind(t,this.request),this.shortcut.bind(n,this.exit),["webkitfullscreenchange","mozfullscreenchange","fullscreenchange","MSFullscreenChange"].forEach(r=>{document.addEventListener(r,this.onFullscreenChange,!1)})}unbindEvents(){this.shortcut.unbindAll(),["webkitfullscreenchange","mozfullscreenchange","fullscreenchange","MSFullscreenChange"].forEach(n=>{document.removeEventListener(n,this.onFullscreenChange,!1)})}setGraphSize(t=!0){var n,i;let r,o;t?(r=((n=globalThis.screen)===null||n===void 0?void 0:n.width)||0,o=((i=globalThis.screen)===null||i===void 0?void 0:i.height)||0,this.graphSize=this.context.graph.getSize()):[r,o]=this.graphSize,this.context.graph.setSize(r,o),this.context.graph.render()}request(){document.fullscreenElement||!SYi()||this.$el.requestFullscreen().catch(t=>{DE.warn(`Error attempting to enable full-screen: ${t.message} (${t.name})`)})}exit(){document.fullscreenElement&&document.exitFullscreen()}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}destroy(){this.exit(),this.style.remove(),super.destroy()}};uCn.defaultOptions={trigger:{},autoFit:!0};function SYi(){return document.fullscreenEnabled||Reflect.get(document,"webkitFullscreenEnabled")||Reflect.get(document,"mozFullscreenEnabled")||Reflect.get(document,"msFullscreenEnabled")}var xYi=on(Pi()),hCn=class fCn extends Np{constructor(t,n){super(t,Object.assign({},fCn.defaultOptions,n)),this.$element=xj("grid-line",!0),this.offset=[0,0],this.currentScale=1,this.followZoom=r=>{const{data:{scale:o,origin:s}}=r;if(!o||s===void 0&&this.context.viewport===void 0)return;const a=this.currentScale;this.currentScale=o;const l=o/a,c=U1(s||this.context.graph.getCanvasCenter(),1-l),u=this.baseSize*o,d=U1(this.offset,l),h=SMe(d,u),f=_s(h,c);this.$element.style.backgroundSize=`${u}px ${u}px`,this.$element.style.backgroundPosition=`${f[0]}px ${f[1]}px`,this.offset=SMe(f,u)},this.followTranslate=r=>{if(!this.options.follow)return;const{data:{translate:o}}=r;o&&this.updateOffset(o)},this.onTransform=r=>{const o=this.parseFollow(this.options.follow);o.zoom&&this.followZoom(r),o.translate&&this.followTranslate(r)},this.context.canvas.getContainer().prepend(this.$element),this.baseSize=this.options.size,this.updateStyle(),this.bindEvents()}update(t){super.update(t),t.size!==void 0&&(this.baseSize=t.size),this.updateStyle()}bindEvents(){const{graph:t}=this.context;t.on(Ni.AFTER_TRANSFORM,this.onTransform)}updateStyle(){const{stroke:t,lineWidth:n,border:i,borderLineWidth:r,borderStroke:o,borderStyle:s}=this.options,a=this.baseSize*this.currentScale;Object.assign(this.$element.style,{border:i?`${r}px ${s} ${o}`:"none",backgroundImage:`linear-gradient(${t} ${n}px, transparent ${n}px), linear-gradient(90deg, ${t} ${n}px, transparent ${n}px)`,backgroundSize:`${a}px ${a}px`,backgroundRepeat:"repeat"})}updateOffset(t){const n=this.baseSize*this.currentScale;this.offset=SMe(_s(this.offset,t),n),this.$element.style.backgroundPosition=`${this.offset[0]}px ${this.offset[1]}px`}parseFollow(t){var n,i;return(0,xYi.isBoolean)(t)?{translate:t,zoom:t}:{translate:(n=t?.translate)!==null&&n!==void 0?n:!1,zoom:(i=t?.zoom)!==null&&i!==void 0?i:!1}}destroy(){this.context.graph.off(Ni.AFTER_TRANSFORM,this.onTransform),this.$element.remove(),super.destroy()}};hCn.defaultOptions={border:!0,borderLineWidth:1,borderStroke:"#eee",borderStyle:"solid",lineWidth:1,size:20,stroke:"#eee"};var EYi=on(Pi()),AYi=on(Pi());function zZe(e){const t={Added:new Map,Updated:new Map,Removed:new Map};return e.forEach(n=>{const{type:i,value:r}=n,o=an(r);if(i==="NodeAdded"||i==="EdgeAdded"||i==="ComboAdded")t.Added.set(o,n);else if(i==="NodeUpdated"||i==="EdgeUpdated"||i==="ComboUpdated")if(t.Added.has(o))t.Added.set(o,{type:i.replace("Updated","Added"),value:r});else if(t.Updated.has(o)){const{original:s}=t.Updated.get(o);t.Updated.set(o,{type:i,value:r,original:s})}else t.Removed.has(o)||t.Updated.set(o,n);else(i==="NodeRemoved"||i==="EdgeRemoved"||i==="ComboRemoved")&&(t.Added.has(o)?t.Added.delete(o):(t.Updated.has(o)&&t.Updated.delete(o),t.Removed.set(o,n)))}),[...Array.from(t.Added.values()),...Array.from(t.Updated.values()),...Array.from(t.Removed.values())]}function pCn(e){const{NodeAdded:t=[],NodeUpdated:n=[],NodeRemoved:i=[],EdgeAdded:r=[],EdgeUpdated:o=[],EdgeRemoved:s=[],ComboAdded:a=[],ComboUpdated:l=[],ComboRemoved:c=[]}=(0,AYi.groupBy)(e,u=>u.type);return{add:{nodes:t,edges:r,combos:a},update:{nodes:n,edges:o,combos:l},remove:{nodes:i,edges:s,combos:c}}}function gCn(e,t){for(const n in e)(0,EYi.isObject)(e[n])&&!Array.isArray(e[n])&&e[n]!==null?(t[n]||(t[n]={}),gCn(e[n],t[n])):t[n]===void 0&&(t[n]=tK(n))}function DYi(e,t=!1,n){const i={animation:t,current:{add:{},update:{},remove:{}},original:{add:{},update:{},remove:{}}},{add:r,update:o,remove:s}=pCn(zZe(e));return["nodes","edges","combos"].forEach(a=>{o[a]&&o[a].forEach(l=>{var c,u;const d=Object.assign({},l.value);let h=Object.assign({},l.original);if(n){const f=n.graph.getElementType(an(l.original)),p=f==="edge"?"stroke":"fill",g=n.element.getElementComputedStyle(f,l.original);h=Object.assign(Object.assign({},l.original),{style:Object.assign({[p]:g[p]},l.original.style)})}gCn(d,h),(c=i.current.update)[a]||(c[a]=[]),i.current.update[a].push(d),(u=i.original.update)[a]||(u[a]=[]),i.original.update[a].push(h)}),r[a]&&r[a].forEach(l=>{var c,u;const d=Object.assign({},l.value);(c=i.current.add)[a]||(c[a]=[]),i.current.add[a].push(d),(u=i.original.remove)[a]||(u[a]=[]),i.original.remove[a].push(d)}),s[a]&&s[a].forEach(l=>{var c,u;const d=Object.assign({},l.value);(c=i.current.remove)[a]||(c[a]=[]),i.current.remove[a].push(d),(u=i.original.add)[a]||(u[a]=[]),i.original.add[a].push(d)})}),i}var mCn=class vCn extends Np{constructor(t,n){super(t,Object.assign({},vCn.defaultOptions,n)),this.batchChanges=null,this.batchAnimation=!1,this.undoStack=[],this.redoStack=[],this.freezed=!1,this.executeCommand=(r,o=!0)=>{var s,a,l;this.freezed=!0,(a=(s=this.options).executeCommand)===null||a===void 0||a.call(s,r);const c=o?r.original:r.current;this.context.graph.addData(c.add),this.context.graph.updateData(c.update),this.context.graph.removeData(V_n(c.remove,!1)),(l=this.context.element)===null||l===void 0||l.draw({silence:!0,animation:r.animation}),this.freezed=!1},this.addCommand=r=>{var o;if(!this.freezed){if(r.type===Ni.AFTER_DRAW){const{dataChanges:s=[],animation:a=!0}=r.data;if(!((o=this.context.batch)===null||o===void 0)&&o.isBatching){if(!this.batchChanges)return;this.batchChanges.push(s),this.batchAnimation&&(this.batchAnimation=a);return}this.batchChanges=[s],this.batchAnimation=a}this.undoStackPush(DYi(this.batchChanges.flat(),this.batchAnimation,this.context)),this.notify(mI.ADD,this.undoStack[this.undoStack.length-1])}},this.initBatchCommand=r=>{const{initiate:o}=r.data;this.batchAnimation=!1,o?this.batchChanges=[]:this.undoStack.pop()||(this.batchChanges=null)},this.emitter=new RZe;const{graph:i}=this.context;i.on(Ni.AFTER_DRAW,this.addCommand),i.on(Ni.BATCH_START,this.initBatchCommand),i.on(Ni.BATCH_END,this.addCommand)}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}undo(){var t,n,i,r;const o=this.undoStack.pop();if(o){if(this.executeCommand(o),((n=(t=this.options).beforeAddCommand)===null||n===void 0?void 0:n.call(t,o,!1))===!1)return;this.redoStack.push(o),(r=(i=this.options).afterAddCommand)===null||r===void 0||r.call(i,o,!1),this.notify(mI.UNDO,o)}return this}redo(){const t=this.redoStack.pop();return t&&(this.executeCommand(t,!1),this.undoStackPush(t),this.notify(mI.REDO,t)),this}undoAndCancel(){const t=this.undoStack.pop();return t&&(this.executeCommand(t,!1),this.redoStack=[],this.notify(mI.CANCEL,t)),this}undoStackPush(t){var n,i,r,o;const{stackSize:s}=this.options;s!==0&&this.undoStack.length>=s&&this.undoStack.shift(),((i=(n=this.options).beforeAddCommand)===null||i===void 0?void 0:i.call(n,t,!0))!==!1&&(this.undoStack.push(t),(o=(r=this.options).afterAddCommand)===null||o===void 0||o.call(r,t,!0))}clear(){this.undoStack=[],this.redoStack=[],this.batchChanges=null,this.batchAnimation=!1,this.notify(mI.CLEAR,null)}notify(t,n){this.emitter.emit(t,{cmd:n}),this.emitter.emit(mI.CHANGE,{cmd:n})}on(t,n){this.emitter.on(t,n)}destroy(){const{graph:t}=this.context;t.off(Ni.AFTER_DRAW,this.addCommand),t.off(Ni.BATCH_START,this.initBatchCommand),t.off(Ni.BATCH_END,this.addCommand),this.emitter.off(),super.destroy(),this.undoStack=[],this.redoStack=[]}};mCn.defaultOptions={stackSize:0};var Are=on(Pi()),VMe={toXy(e,t){if(!t)return[...e];const n=t[0].slice(1),i=t[1].slice(1);return e.map(r=>[r[n],r[i]])},fromXy(e,t){if(!t)return[...e];const n=t[0].slice(1),i=t[1].slice(1);return e.map(([r,o])=>({[n]:r,[i]:o}))}},TYi=class{constructor(e,t){this._cells=[],this._cellSize=t,this._reverseCellSize=1/t;for(const n of e){const i=this.coordToCellNum(n[0]),r=this.coordToCellNum(n[1]);this._cells[i]||(this._cells[i]=[]),this._cells[i][r]||(this._cells[i][r]=[]),this._cells[i][r].push(n)}}cellPoints(e,t){var n;return((n=this._cells[e])===null||n===void 0?void 0:n[t])||[]}rangePoints(e){const t=this.coordToCellNum(e[0]),n=this.coordToCellNum(e[1]),i=this.coordToCellNum(e[2]),r=this.coordToCellNum(e[3]),o=[];for(let s=t;s<=i;s++)for(let a=n;a<=r;a++){const l=this.cellPoints(s,a);for(const c of l)o.push(c)}return o}removePoint(e){const t=this.coordToCellNum(e[0]),n=this.coordToCellNum(e[1]),i=this._cells[t][n],r=i.findIndex(([o,s])=>o===e[0]&&s===e[1]);return r>-1&&i.splice(r,1),i}trunc(e){return Math.trunc(e)}coordToCellNum(e){return this.trunc(e*this._reverseCellSize)}extendBbox(e,t){return[e[0]-t*this._cellSize,e[1]-t*this._cellSize,e[2]+t*this._cellSize,e[3]+t*this._cellSize]}};function kYi(e,t){return new TYi(e,t)}var f2t=+(Math.pow(2,27)+1);function xce(e,t,n){const i=e*t,r=f2t*e,o=r-e,s=r-o,a=e-s,l=f2t*t,c=l-t,u=l-c,d=t-u,p=i-s*u-a*u-s*d,g=a*d-p;return n?(n[0]=g,n[1]=i,n):[g,i]}function IYi(e,t,n){const i=e+t,r=i-e,o=i-r,s=t-r,a=e-o;return n?(n[0]=a+s,n[1]=i,n):[a+s,i]}function LYi(e,t){const n=e.length;if(n===1){const a=xce(e[0],t);return a[0]?a:[a[1]]}const i=new Array(2*n),r=[.1,.1],o=[.1,.1];let s=0;xce(e[0],t,r),r[0]&&(i[s++]=r[0]);for(let a=1;a<n;++a){xce(e[a],t,o);const l=r[1];IYi(l,o[0],r),r[0]&&(i[s++]=r[0]);const c=o[1],u=r[1],d=c+u,h=d-c,f=u-h;r[1]=d,f&&(i[s++]=f)}return r[1]&&(i[s++]=r[1]),s===0&&(i[s++]=0),i.length=s,i}function NYi(e,t){const n=e+t,i=n-e,r=n-i,o=t-i,a=e-r+o;return a?[a,n]:[n]}function PYi(e,t){const n=e.length|0,i=t.length|0;if(n===1&&i===1)return NYi(e[0],-t[0]);const r=n+i,o=new Array(r);let s=0,a=0,l=0;const c=Math.abs;let u=e[a],d=c(u),h=-t[l],f=c(h),p,g;d<f?(g=u,a+=1,a<n&&(u=e[a],d=c(u))):(g=h,l+=1,l<i&&(h=-t[l],f=c(h))),a<n&&d<f||l>=i?(p=u,a+=1,a<n&&(u=e[a],d=c(u))):(p=h,l+=1,l<i&&(h=-t[l],f=c(h)));let m=p+g,v=m-p,y=g-v,b=y,w=m,E,A,D,T,M;for(;a<n&&l<i;)d<f?(p=u,a+=1,a<n&&(u=e[a],d=c(u))):(p=h,l+=1,l<i&&(h=-t[l],f=c(h))),g=b,m=p+g,v=m-p,y=g-v,y&&(o[s++]=y),E=w+m,A=E-w,D=E-A,T=m-A,M=w-D,b=M+T,w=E;for(;a<n;)p=u,g=b,m=p+g,v=m-p,y=g-v,y&&(o[s++]=y),E=w+m,A=E-w,D=E-A,T=m-A,M=w-D,b=M+T,w=E,a+=1,a<n&&(u=e[a]);for(;l<i;)p=h,g=b,m=p+g,v=m-p,y=g-v,y&&(o[s++]=y),E=w+m,A=E-w,D=E-A,T=m-A,M=w-D,b=M+T,w=E,l+=1,l<i&&(h=-t[l]);return b&&(o[s++]=b),w&&(o[s++]=w),s||(o[s++]=0),o.length=s,o}function MYi(e,t){const n=e+t,i=n-e,r=n-i,o=t-i,a=e-r+o;return a?[a,n]:[n]}function OYi(e,t){const n=e.length|0,i=t.length|0;if(n===1&&i===1)return MYi(e[0],t[0]);const r=n+i,o=new Array(r);let s=0,a=0,l=0;const c=Math.abs;let u=e[a],d=c(u),h=t[l],f=c(h),p,g;d<f?(g=u,a+=1,a<n&&(u=e[a],d=c(u))):(g=h,l+=1,l<i&&(h=t[l],f=c(h))),a<n&&d<f||l>=i?(p=u,a+=1,a<n&&(u=e[a],d=c(u))):(p=h,l+=1,l<i&&(h=t[l],f=c(h)));let m=p+g,v=m-p,y=g-v,b=y,w=m,E,A,D,T,M;for(;a<n&&l<i;)d<f?(p=u,a+=1,a<n&&(u=e[a],d=c(u))):(p=h,l+=1,l<i&&(h=t[l],f=c(h))),g=b,m=p+g,v=m-p,y=g-v,y&&(o[s++]=y),E=w+m,A=E-w,D=E-A,T=m-A,M=w-D,b=M+T,w=E;for(;a<n;)p=u,g=b,m=p+g,v=m-p,y=g-v,y&&(o[s++]=y),E=w+m,A=E-w,D=E-A,T=m-A,M=w-D,b=M+T,w=E,a+=1,a<n&&(u=e[a]);for(;l<i;)p=h,g=b,m=p+g,v=m-p,y=g-v,y&&(o[s++]=y),E=w+m,A=E-w,D=E-A,T=m-A,M=w-D,b=M+T,w=E,l+=1,l<i&&(h=t[l]);return b&&(o[s++]=b),w&&(o[s++]=w),s||(o[s++]=0),o.length=s,o}var p2t=5,dfe=11102230246251565e-32,RYi=(3+16*dfe)*dfe,FYi=(7+56*dfe)*dfe;function BYi(e,t,n,i){return function(o,s,a){const l=e(e(t(s[1],a[0]),t(-a[1],s[0])),e(t(o[1],s[0]),t(-s[1],o[0]))),c=e(t(o[1],a[0]),t(-a[1],o[0])),u=i(l,c);return u[u.length-1]}}function jYi(e,t,n,i){return function(o,s,a,l){const c=e(e(n(e(t(a[1],l[0]),t(-l[1],a[0])),s[2]),e(n(e(t(s[1],l[0]),t(-l[1],s[0])),-a[2]),n(e(t(s[1],a[0]),t(-a[1],s[0])),l[2]))),e(n(e(t(s[1],l[0]),t(-l[1],s[0])),o[2]),e(n(e(t(o[1],l[0]),t(-l[1],o[0])),-s[2]),n(e(t(o[1],s[0]),t(-s[1],o[0])),l[2])))),u=e(e(n(e(t(a[1],l[0]),t(-l[1],a[0])),o[2]),e(n(e(t(o[1],l[0]),t(-l[1],o[0])),-a[2]),n(e(t(o[1],a[0]),t(-a[1],o[0])),l[2]))),e(n(e(t(s[1],a[0]),t(-a[1],s[0])),o[2]),e(n(e(t(o[1],a[0]),t(-a[1],o[0])),-s[2]),n(e(t(o[1],s[0]),t(-s[1],o[0])),a[2])))),d=i(c,u);return d[d.length-1]}}function zYi(e,t,n,i){return function(o,s,a,l,c){const u=e(e(e(n(e(n(e(t(l[1],c[0]),t(-c[1],l[0])),a[2]),e(n(e(t(a[1],c[0]),t(-c[1],a[0])),-l[2]),n(e(t(a[1],l[0]),t(-l[1],a[0])),c[2]))),s[3]),e(n(e(n(e(t(l[1],c[0]),t(-c[1],l[0])),s[2]),e(n(e(t(s[1],c[0]),t(-c[1],s[0])),-l[2]),n(e(t(s[1],l[0]),t(-l[1],s[0])),c[2]))),-a[3]),n(e(n(e(t(a[1],c[0]),t(-c[1],a[0])),s[2]),e(n(e(t(s[1],c[0]),t(-c[1],s[0])),-a[2]),n(e(t(s[1],a[0]),t(-a[1],s[0])),c[2]))),l[3]))),e(n(e(n(e(t(a[1],l[0]),t(-l[1],a[0])),s[2]),e(n(e(t(s[1],l[0]),t(-l[1],s[0])),-a[2]),n(e(t(s[1],a[0]),t(-a[1],s[0])),l[2]))),-c[3]),e(n(e(n(e(t(l[1],c[0]),t(-c[1],l[0])),s[2]),e(n(e(t(s[1],c[0]),t(-c[1],s[0])),-l[2]),n(e(t(s[1],l[0]),t(-l[1],s[0])),c[2]))),o[3]),n(e(n(e(t(l[1],c[0]),t(-c[1],l[0])),o[2]),e(n(e(t(o[1],c[0]),t(-c[1],o[0])),-l[2]),n(e(t(o[1],l[0]),t(-l[1],o[0])),c[2]))),-s[3])))),e(e(n(e(n(e(t(s[1],c[0]),t(-c[1],s[0])),o[2]),e(n(e(t(o[1],c[0]),t(-c[1],o[0])),-s[2]),n(e(t(o[1],s[0]),t(-s[1],o[0])),c[2]))),l[3]),e(n(e(n(e(t(s[1],l[0]),t(-l[1],s[0])),o[2]),e(n(e(t(o[1],l[0]),t(-l[1],o[0])),-s[2]),n(e(t(o[1],s[0]),t(-s[1],o[0])),l[2]))),-c[3]),n(e(n(e(t(a[1],l[0]),t(-l[1],a[0])),s[2]),e(n(e(t(s[1],l[0]),t(-l[1],s[0])),-a[2]),n(e(t(s[1],a[0]),t(-a[1],s[0])),l[2]))),o[3]))),e(n(e(n(e(t(a[1],l[0]),t(-l[1],a[0])),o[2]),e(n(e(t(o[1],l[0]),t(-l[1],o[0])),-a[2]),n(e(t(o[1],a[0]),t(-a[1],o[0])),l[2]))),-s[3]),e(n(e(n(e(t(s[1],l[0]),t(-l[1],s[0])),o[2]),e(n(e(t(o[1],l[0]),t(-l[1],o[0])),-s[2]),n(e(t(o[1],s[0]),t(-s[1],o[0])),l[2]))),a[3]),n(e(n(e(t(s[1],a[0]),t(-a[1],s[0])),o[2]),e(n(e(t(o[1],a[0]),t(-a[1],o[0])),-s[2]),n(e(t(o[1],s[0]),t(-s[1],o[0])),a[2]))),-l[3]))))),d=e(e(e(n(e(n(e(t(l[1],c[0]),t(-c[1],l[0])),a[2]),e(n(e(t(a[1],c[0]),t(-c[1],a[0])),-l[2]),n(e(t(a[1],l[0]),t(-l[1],a[0])),c[2]))),o[3]),n(e(n(e(t(l[1],c[0]),t(-c[1],l[0])),o[2]),e(n(e(t(o[1],c[0]),t(-c[1],o[0])),-l[2]),n(e(t(o[1],l[0]),t(-l[1],o[0])),c[2]))),-a[3])),e(n(e(n(e(t(a[1],c[0]),t(-c[1],a[0])),o[2]),e(n(e(t(o[1],c[0]),t(-c[1],o[0])),-a[2]),n(e(t(o[1],a[0]),t(-a[1],o[0])),c[2]))),l[3]),n(e(n(e(t(a[1],l[0]),t(-l[1],a[0])),o[2]),e(n(e(t(o[1],l[0]),t(-l[1],o[0])),-a[2]),n(e(t(o[1],a[0]),t(-a[1],o[0])),l[2]))),-c[3]))),e(e(n(e(n(e(t(a[1],c[0]),t(-c[1],a[0])),s[2]),e(n(e(t(s[1],c[0]),t(-c[1],s[0])),-a[2]),n(e(t(s[1],a[0]),t(-a[1],s[0])),c[2]))),o[3]),n(e(n(e(t(a[1],c[0]),t(-c[1],a[0])),o[2]),e(n(e(t(o[1],c[0]),t(-c[1],o[0])),-a[2]),n(e(t(o[1],a[0]),t(-a[1],o[0])),c[2]))),-s[3])),e(n(e(n(e(t(s[1],c[0]),t(-c[1],s[0])),o[2]),e(n(e(t(o[1],c[0]),t(-c[1],o[0])),-s[2]),n(e(t(o[1],s[0]),t(-s[1],o[0])),c[2]))),a[3]),n(e(n(e(t(s[1],a[0]),t(-a[1],s[0])),o[2]),e(n(e(t(o[1],a[0]),t(-a[1],o[0])),-s[2]),n(e(t(o[1],s[0]),t(-s[1],o[0])),a[2]))),-c[3])))),h=i(u,d);return h[h.length-1]}}function K0e(e){return(e===3?BYi:e===4?jYi:zYi)(OYi,xce,LYi,PYi)}var VYi=K0e(3),HYi=K0e(4),CO=[function(){return 0},function(){return 0},function(t,n){return n[0]-t[0]},function(t,n,i){const r=(t[1]-i[1])*(n[0]-i[0]),o=(t[0]-i[0])*(n[1]-i[1]),s=r-o;let a;if(r>0){if(o<=0)return s;a=r+o}else if(r<0){if(o>=0)return s;a=-(r+o)}else return s;const l=RYi*a;return s>=l||s<=-l?s:VYi(t,n,i)},function(t,n,i,r){const o=t[0]-r[0],s=n[0]-r[0],a=i[0]-r[0],l=t[1]-r[1],c=n[1]-r[1],u=i[1]-r[1],d=t[2]-r[2],h=n[2]-r[2],f=i[2]-r[2],p=s*u,g=a*c,m=a*l,v=o*u,y=o*c,b=s*l,w=d*(p-g)+h*(m-v)+f*(y-b),E=(Math.abs(p)+Math.abs(g))*Math.abs(d)+(Math.abs(m)+Math.abs(v))*Math.abs(h)+(Math.abs(y)+Math.abs(b))*Math.abs(f),A=FYi*E;return w>A||-w>A?w:HYi(t,n,i,r)}];function WYi(e){let t=CO[e.length];return t||(t=CO[e.length]=K0e(e.length)),t.apply(void 0,...e)}function UYi(e,t,n,i,r,o,s){return function(...l){switch(l.length){case 0:case 1:return 0;case 2:return i(l[0],l[1]);case 3:return r(l[0],l[1],l[2]);case 4:return o(l[0],l[1],l[2],l[3]);case 5:return s(l[0],l[1],l[2],l[3],l[4])}return e(l)}}function $Yi(){for(;CO.length<=p2t;)CO.push(K0e(CO.length));const e=UYi(void 0,WYi,...CO);for(let t=0;t<=p2t;++t)e[t]=CO[t];return e}var aU=$Yi(),g2t=aU[3];function qYi(e){const t=e.length;if(t<3){const a=new Array(t);for(let l=0;l<t;++l)a[l]=l;return t===2&&e[0][0]===e[1][0]&&e[0][1]===e[1][1]?[0]:a}const n=new Array(t);for(let a=0;a<t;++a)n[a]=a;n.sort((a,l)=>{const c=e[a][0]-e[l][0];return c||e[a][1]-e[l][1]});const i=[n[0],n[1]],r=[n[0],n[1]];for(let a=2;a<t;++a){const l=n[a],c=e[l];let u=i.length;for(;u>1&&g2t(e[i[u-2]],e[i[u-1]],c)<=0;)u-=1,i.pop();for(i.push(l),u=r.length;u>1&&g2t(e[r[u-2]],e[r[u-1]],c)>=0;)u-=1,r.pop();r.push(l)}const o=new Array(r.length+i.length-2);let s=0;for(let a=0,l=i.length;a<l;++a)o[s++]=i[a];for(let a=r.length-2;a>0;--a)o[s++]=r[a];return o}function GYi(e,t,n,i){for(let r=0;r<2;++r){const o=e[r],s=t[r],[a,l]=[Math.min(o,s),Math.max(o,s)],c=n[r],u=i[r],[d,h]=[Math.min(c,u),Math.max(c,u)];if(h<a||l<d)return!1}return!0}function KYi(e,t,n,i){const r=aU(e,n,i),o=aU(t,n,i);if(r>0&&o>0||r<0&&o<0)return!1;const s=aU(n,e,t),a=aU(i,e,t);return s>0&&a>0||s<0&&a<0?!1:r===0&&o===0&&s===0&&a===0?GYi(e,t,n,i):!0}function YYi(e){const t=[e[0]];let n=e[0];for(let i=1;i<e.length;i++){const r=e[i];(n[0]!==r[0]||n[1]!==r[1])&&t.push(r),n=r}return t}function QYi(e){return e.sort(function(t,n){return t[0]-n[0]||t[1]-n[1]})}function lje(e,t){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function m2t(e,t,n){const i=[t[0]-e[0],t[1]-e[1]],r=[n[0]-e[0],n[1]-e[1]],o=lje(e,t),s=lje(e,n);return(i[0]*r[0]+i[1]*r[1])/Math.sqrt(o*s)}function v2t(e,t){for(let n=0;n<t.length-1;n++){const i=[t[n],t[n+1]];if(!(e[0][0]===i[0][0]&&e[0][1]===i[0][1]||e[0][0]===i[1][0]&&e[0][1]===i[1][1])&&KYi(e[0],e[1],i[0],i[1]))return!0}return!1}function ZYi(e){let t=1/0,n=1/0,i=-1/0,r=-1/0;for(let o=e.length-1;o>=0;o--)e[o][0]<t&&(t=e[o][0]),e[o][1]<n&&(n=e[o][1]),e[o][0]>i&&(i=e[o][0]),e[o][1]>r&&(r=e[o][1]);return[i-t,r-n]}function XYi(e){return[Math.min(e[0][0],e[1][0]),Math.min(e[0][1],e[1][1]),Math.max(e[0][0],e[1][0]),Math.max(e[0][1],e[1][1])]}function JYi(e,t,n){let i=null,r=y2t,o=y2t,s,a;for(let l=0;l<t.length;l++)s=m2t(e[0],e[1],t[l]),a=m2t(e[1],e[0],t[l]),s>r&&a>o&&!v2t([e[0],t[l]],n)&&!v2t([e[1],t[l]],n)&&(r=s,o=a,i=t[l]);return i}function yCn(e,t,n,i,r){let o=!1;for(let s=0;s<e.length-1;s++){const a=[e[s],e[s+1]],l=a[0][0]+","+a[0][1]+","+a[1][0]+","+a[1][1];if(lje(a[0],a[1])<t||r.has(l))continue;let c=0,u=XYi(a),d,h,f;do u=i.extendBbox(u,c),d=u[2]-u[0],h=u[3]-u[1],f=JYi(a,i.rangePoints(u),e),c++;while(f===null&&(n[0]>d||n[1]>h));d>=n[0]&&h>=n[1]&&r.add(l),f!==null&&(e.splice(s+1,0,f),i.removePoint(f),o=!0)}return o?yCn(e,t,n,i,r):e}function eQi(e,t,n){const i=t||20,r=YYi(QYi(VMe.toXy(e,n)));if(r.length<4){const d=r.concat([r[0]]);return n?VMe.fromXy(d,n):d}const o=ZYi(r),s=[o[0]*b2t,o[1]*b2t],a=qYi(r).reverse().map(d=>r[d]);a.push(a[0]);const l=r.filter(function(d){return a.indexOf(d)<0}),c=Math.ceil(1/(r.length/(o[0]*o[1]))),u=yCn(a,Math.pow(i,2),s,kYi(l,c),new Set);return n?VMe.fromXy(u,n):u}var y2t=Math.cos(90/(180/Math.PI)),b2t=.6;function tQi(e,t,n){if(e.length===1)return nQi(e[0],t,n);if(e.length===2)return _2t(e,t,n);if(e.length===3){const[i,r,o]=SZe(e);if(Z_n(i,r,o))return _2t([i,o],t,n)}switch(n){case"smooth":return rQi(e,t);case"sharp":return oQi(e,t);default:return iQi(e,t)}}var nQi=(e,t,n)=>{if(n==="sharp")return[["M",e[0]-t,e[1]-t],["L",e[0]+t,e[1]-t],["L",e[0]+t,e[1]+t],["L",e[0]-t,e[1]+t],["Z"]];const i=[t,t,0,0,0];return[["M",e[0],e[1]-t],["A",...i,e[0],e[1]+t],["A",...i,e[0],e[1]-t]]},_2t=(e,t,n)=>{const i=[t,t,0,0,0],r=n==="sharp"?_s(e[0],KI(LD(wc(e[0],e[1])),t)):e[0],o=n==="sharp"?_s(e[1],KI(LD(wc(e[1],e[0])),t)):e[1],s=KI(LD(V0e(wc(r,o),!1)),t),a=KI(s,-1),l=_s(r,s),c=_s(o,s),u=_s(o,a),d=_s(r,a);return n==="sharp"?[["M",l[0],l[1]],["L",c[0],c[1]],["L",u[0],u[1]],["L",d[0],d[1]],["Z"]]:[["M",l[0],l[1]],["L",c[0],c[1]],["A",...i,u[0],u[1]],["L",d[0],d[1]],["A",...i,l[0],l[1]]]},iQi=(e,t)=>{const n=SZe(e).map((a,l)=>{const c=(l-2+e.length)%e.length,u=(l-1+e.length)%e.length,d=(l+1)%e.length,h=e[c],f=e[u],p=e[d],g=wc(h,f),m=wc(f,a),v=wc(a,p),y=(D,T)=>wZe(D,T,!0)<Math.PI,b=y(g,m),w=y(m,v),E=D=>KI(LD(V0e(D,!1)),t),A=E(m);return[{p:M2(b?_s(f,E(g)):_s(f,A)),concave:b&&f},{p:M2(w?_s(a,E(v)):_s(a,A)),concave:w&&a}]}),i=[t,t,0,0,0],r=n.findIndex((a,l)=>!n[(l-1+n.length)%n.length][0].concave&&!n[(l-1+n.length)%n.length][1].concave&&!a[0].concave&&!a[0].concave&&!a[1].concave),o=n.slice(r).concat(n.slice(0,r));let s=[];return o.flatMap((a,l)=>{const c=[],u=o[n.length-1];return l===0&&c.push(["M",...u[1].p]),a[0].concave?s.push(a[0].p,a[1].p):c.push(["A",...i,...a[0].p]),a[1].concave?s.unshift(a[1].p):c.push(["L",...a[1].p]),s.length===3&&(c.pop(),c.push(["C",...s.flat()]),s=[]),c})},rQi=(e,t)=>{const n=SZe(e).map((i,r)=>{const o=e[(r+1)%e.length];return{p:i,v:LD(wc(o,i))}});return n.forEach((i,r)=>{const o=r>0?r-1:e.length-1,s=n[o].v,a=LD(_s(s,KI(i.v,wZe(s,i.v,!0)<Math.PI?1:-1)));i.p=_s(i.p,KI(a,t))}),hwn(n.map(i=>i.p))},oQi=(e,t)=>{const i=e.map((o,s)=>{const a=e[s===0?e.length-1:s-1],l=nK(KI(LD(V0e(wc(a,o),!1)),t));return[_s(a,l),_s(o,l)]}).flat();return i.map((o,s)=>{if(s%2===0)return null;const a=[i[(s-1)%i.length],i[s%i.length]],l=[i[(s+1)%i.length],i[(s+2)%i.length]];return CZe(a,l,!0)}).filter(Boolean).map((o,s)=>[s===0?"M":"L",o[0],o[1]]).concat([["Z"]])},sQi=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},bCn=class _Cn extends Np{constructor(t,n){super(t,Object.assign({},_Cn.defaultOptions,n)),this.hullMemberIds=[],this.drawHull=()=>{if(!this.shape)this.shape=new EZe({style:this.getHullStyle()}),this.context.canvas.appendChild(this.shape);else{const i=!(0,Are.isEqual)(this.optionsCache,this.options);this.shape.update(this.getHullStyle(i))}this.optionsCache=Object.assign({},this.options)},this.updateHullPath=i=>{this.shape&&this.options.members.includes(an(i.data))&&this.shape.update({d:this.getHullPath(!0)})},this.getHullPath=(i=!1)=>{const{graph:r}=this.context,o=this.getMember();if(o.length===0)return"";const s=o.map(c=>r.getNodeData(c)),a=eQi(s.map(zf),this.options.concavity).slice(1).reverse(),l=a.flatMap(c=>s.filter(u=>(0,Are.isEqual)(zf(u),c)).map(an));return(0,Are.isEqual)(l,this.hullMemberIds)&&!i?this.path:(this.hullMemberIds=l,this.path=tQi(a,this.getPadding(),this.options.corner),this.path)},this.bindEvents()}bindEvents(){this.context.graph.on(Ni.AFTER_RENDER,this.drawHull),this.context.graph.on(Ni.AFTER_ELEMENT_UPDATE,this.updateHullPath)}unbindEvents(){this.context.graph.off(Ni.AFTER_RENDER,this.drawHull),this.context.graph.off(Ni.AFTER_ELEMENT_UPDATE,this.updateHullPath)}getHullStyle(t){const n=this.options,{members:i,padding:r,corner:o}=n,s=sQi(n,["members","padding","corner"]);return Object.assign(Object.assign({},s),{d:this.getHullPath(t)})}getPadding(){const{graph:t}=this.context;return this.hullMemberIds.reduce((i,r)=>{const{halfExtents:o}=t.getElementRenderBounds(r),s=Math.max(o[0],o[1]);return Math.max(i,s)},0)+this.options.padding}addMember(t){const n=Array.isArray(t)?t:[t];this.options.members=[...new Set([...this.options.members,...n])],this.shape.update({d:this.getHullPath()})}removeMember(t){const n=Array.isArray(t)?t:[t];this.options.members=this.options.members.filter(i=>!n.includes(i)),n.some(i=>this.hullMemberIds.includes(i))&&this.shape.update({d:this.getHullPath()})}updateMember(t){this.options.members=(0,Are.isFunction)(t)?t(this.options.members):t,this.shape.update(this.getHullStyle(!0))}getMember(){return this.options.members}destroy(){this.unbindEvents(),this.shape.destroy(),this.hullMemberIds=[],super.destroy()}};bCn.defaultOptions={members:[],padding:10,corner:"rounded",concavity:1/0,fill:"lightblue",fillOpacity:.2,labelOpacity:1,stroke:"blue",strokeOpacity:.2};Wn();Wn();Wn();function wCn(e,t){t(e),e.children&&e.children.forEach(function(n){n&&wCn(n,t)})}function aZ(e){Y0e(e,!0)}function eC(e){Y0e(e,!1)}function Y0e(e,t){var n=t?"visible":"hidden";wCn(e,function(i){i.attr("visibility",n)})}var aQi=(function(e){Ss(t,e);function t(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=e.apply(this,Hr([],Et(n),!1))||this;return r.isMutationObserved=!0,r.addEventListener(ea.INSERTED,function(){eC(r)}),r}return t})(qf);function CCn(e){var t=e.appendChild(new aQi({class:"offscreen"}));return eC(t),t}function lQi(e){for(var t=e;t;){if(t.className==="offscreen")return!0;t=t.parent}return!1}var VZe=(function(e){Ss(t,e);function t(n){n===void 0&&(n={});var i=n.style,r=ou(n,["style"]);return e.call(this,Zn({style:Zn({text:"",fill:"black",fontFamily:"sans-serif",fontSize:16,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1,textAlign:"start",textBaseline:"middle"},i)},r))||this}return Object.defineProperty(t.prototype,"offscreenGroup",{get:function(){return this._offscreen||(this._offscreen=CCn(this)),this._offscreen},enumerable:!1,configurable:!0}),t.prototype.disconnectedCallback=function(){var n;(n=this._offscreen)===null||n===void 0||n.destroy()},t})(tP);function Q9(e){return e*Math.PI/180}function SCn(e){return Number((e*180/Math.PI).toPrecision(5))}var wv=(function(){function e(t,n,i,r){t===void 0&&(t=0),n===void 0&&(n=0),i===void 0&&(i=0),r===void 0&&(r=0),this.x=0,this.y=0,this.width=0,this.height=0,this.x=t,this.y=n,this.width=i,this.height=r}return Object.defineProperty(e.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e.prototype.toJSON=function(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.top,right:this.right,bottom:this.bottom,left:this.left}},e.prototype.isPointIn=function(t,n){return t>=this.left&&t<=this.right&&n>=this.top&&n<=this.bottom},e})();Wn();var cQi=on(Pi());function q0(e,t){return(0,cQi.isFunction)(e)?e.apply(void 0,Hr([],Et(t),!1)):e}Wn();var tS=function(e,t){var n=function(r){return"".concat(t,"-").concat(r)},i=Object.fromEntries(Object.entries(e).map(function(r){var o=Et(r,2),s=o[0],a=o[1],l=n(a);return[s,{name:l,class:".".concat(l),id:"#".concat(l),toString:function(){return l}}]}));return Object.assign(i,{prefix:n}),i};Wn();var HMe=on(Pi()),uQi=5,xCn=function(e,t,n,i){n===void 0&&(n=0),i===void 0&&(i=uQi),Object.entries(t).forEach(function(r){var o=Et(r,2),s=o[0],a=o[1],l=e;Object.prototype.hasOwnProperty.call(t,s)&&(a?(0,HMe.isPlainObject)(a)?((0,HMe.isPlainObject)(e[s])||(l[s]={}),n<i?xCn(e[s],a,n+1,i):l[s]=t[s]):(0,HMe.isArray)(a)?(l[s]=[],l[s]=l[s].concat(a)):l[s]=a:l[s]=a)})},ff=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i+=1)xCn(e,t[i]);return e},dQi=function(e){return e!==void 0&&e!=null&&!Number.isNaN(e)},hQi=on(Pi()),Dre,fQi=(0,hQi.memoize)(function(e,t){var n=t.fontSize,i=t.fontFamily,r=t.fontWeight,o=t.fontStyle,s=t.fontVariant;return Dre||(Dre=Si.offscreenCanvasCreator.getOrCreateContext(void 0)),Dre.font=[o,s,r,"".concat(n,"px"),i].join(" "),Dre.measureText(e).width},function(e,t){return[e,Object.values(t||ECn(e)).join()].join("")},4096),ECn=function(e){var t=e.style.fontFamily||"sans-serif",n=e.style.fontWeight||"normal",i=e.style.fontStyle||"normal",r=e.style.fontVariant,o=e.style.fontSize;return o=typeof o=="object"?o.value:o,{fontSize:o,fontFamily:t,fontWeight:n,fontStyle:i,fontVariant:r}};function ACn(e){return e.nodeName==="text"?e:e.nodeName==="g"&&e.children.length===1&&e.children[0].nodeName==="text"?e.children[0]:null}function DCn(e,t){var n=ACn(e);n&&n.attr(t)}function cje(e,t,n){n===void 0&&(n="..."),DCn(e,{wordWrap:!0,wordWrapWidth:t,maxLines:1,textOverflow:n})}function pQi(e,t,n,i){n===void 0&&(n=2),i===void 0&&(i="top"),DCn(e,{wordWrap:!0,wordWrapWidth:t,maxLines:n,textBaseline:i})}function w2t(e){var t=e.canvas,n=e.touches,i=e.offsetX,r=e.offsetY;if(t){var o=t.x,s=t.y;return[o,s]}if(n){var a=n[0],l=a.clientX,c=a.clientY;return[l,c]}return i&&r?[i,r]:[0,0]}Wn();var hfe=on(Pi());function nT(e){return typeof e=="function"?e():(0,hfe.isString)(e)||(0,hfe.isNumber)(e)?new VZe({style:{text:String(e)}}):e}function gQi(e,t){return typeof e=="function"?e():(0,hfe.isString)(e)||(0,hfe.isNumber)(e)?new MF({style:Zn(Zn({},t),{innerHTML:String(e)})}):e}function mQi(e,t){return e.reduce(function(n,i){return(n[i[t]]=n[i[t]]||[]).push(i),n},{})}function R0(e,t,n,i,r){return i===void 0&&(i=!0),r===void 0&&(r=function(o){o.node().removeChildren()}),e?n(t):(i&&r(t),null)}function Gp(e,t,n,i,r){return i===void 0&&(i=!0),r===void 0&&(r=!1),i&&e===t||r&&e===n?!0:e>t&&e<n}Wn();var vQi=function(e,t){return function(n){return e*(1-n)+t*n}};function yQi(e,t){var n=t?t.length:0,i=e?Math.min(n,e.length):0;return function(r){var o=new Array(i),s=new Array(n),a=0;for(a=0;a<i;++a)o[a]=HZe(e[a],t[a]);for(;a<n;++a)s[a]=t[a];for(a=0;a<i;++a)s[a]=o[a](r);return s}}function bQi(e,t){e===void 0&&(e={}),t===void 0&&(t={});var n={},i={};return Object.entries(t).forEach(function(r){var o=Et(r,2),s=o[0],a=o[1];s in e?n[s]=HZe(e[s],a):i[s]=a}),function(r){return Object.entries(n).forEach(function(o){var s=Et(o,2),a=s[0],l=s[1];return i[a]=l(r)}),i}}function HZe(e,t){return typeof e=="number"&&typeof t=="number"?vQi(e,t):Array.isArray(e)&&Array.isArray(t)?yQi(e,t):typeof e=="object"&&typeof t=="object"?bQi(e,t):(function(n){return e})}Wn();function _Qi(e,t,n,i){if(!i)return e.attr("__keyframe_data__",n),null;var r=i.duration,o=r===void 0?0:r,s=HZe(t,n),a=Math.ceil(+o/16),l=new Array(a).fill(0).map(function(c,u,d){return{__keyframe_data__:s(u/(d.length-1))}});return e.animate(l,Zn({fill:"both"},i))}function oD(e,t){return[e[0]*t,e[1]*t]}function lU(e,t){return[e[0]+t[0],e[1]+t[1]]}function WMe(e,t){return[e[0]-t[0],e[1]-t[1]]}function FM(e,t){return[Math.min(e[0],t[0]),Math.min(e[1],t[1])]}function BM(e,t){return[Math.max(e[0],t[0]),Math.max(e[1],t[1])]}function aK(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2))}function TCn(e){if(e[0]===0&&e[1]===0)return[0,0];var t=Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2));return[e[0]/t,e[1]/t]}function wQi(e,t){return t?[e[1],-e[0]]:[-e[1],e[0]]}function C2t(e,t){return+e.toPrecision(t)}function S2t(e,t){var n={},i=Array.isArray(t)?t:[t];for(var r in e)i.includes(r)||(n[r]=e[r]);return n}Wn();function CQi(e,t,n,i){var r,o=[],s=!!i,a,l,c=[1/0,1/0],u=[-1/0,-1/0],d,h,f;if(s){r=Et(i,2),c=r[0],u=r[1];for(var p=0,g=e.length;p<g;p+=1){var m=e[p];c=FM(c,m),u=BM(u,m)}}for(var p=0,v=e.length;p<v;p+=1){var m=e[p];if(p===0)f=m;else if(p===v-1)h=m,o.push(f),o.push(h);else{var y=[p?p-1:v-1,p-1][1];a=e[y],l=e[p+1];var b=[0,0];b=WMe(l,a),b=oD(b,t);var w=aK(m,a),E=aK(m,l),A=w+E;A!==0&&(w/=A,E/=A);var D=oD(b,-w),T=oD(b,E);h=lU(m,D),d=lU(m,T),d=FM(d,BM(l,m)),d=BM(d,FM(l,m)),D=WMe(d,m),D=oD(D,-w/E),h=lU(m,D),h=FM(h,BM(a,m)),h=BM(h,FM(a,m)),T=WMe(m,h),T=oD(T,E/w),d=lU(m,T),s&&(h=BM(h,c),h=FM(h,u),d=BM(d,c),d=FM(d,u)),o.push(f),o.push(h),f=d}}return o}function SQi(e,t,n){n===void 0&&(n=[[0,0],[1,1]]);for(var i=!1,r=[],o=0,s=e.length;o<s;o+=2)r.push([e[o],e[o+1]]);for(var a=CQi(r,.4,i,n),l=r.length,c=[],u,d,h,o=0;o<l-1;o+=1)u=a[o*2],d=a[o*2+1],h=r[o+1],c.push(["C",u[0],u[1],d[0],d[1],h[0],h[1]]);return c}var xQi=["$el","cx","cy","d","dx","dy","fill","fillOpacity","filter","fontFamily","fontSize","fontStyle","fontVariant","fontWeight","height","img","increasedLineWidthForHitTesting","innerHTML","isBillboard","billboardRotation","isSizeAttenuation","isClosed","isOverflowing","leading","letterSpacing","lineDash","lineHeight","lineWidth","markerEnd","markerEndOffset","markerMid","markerStart","markerStartOffset","maxLines","metrics","miterLimit","offsetX","offsetY","opacity","path","points","r","radius","rx","ry","shadowColor","src","stroke","strokeOpacity","text","textAlign","textBaseline","textDecorationColor","textDecorationLine","textDecorationStyle","textOverflow","textPath","textPathSide","textPathStartOffset","transform","transformOrigin","visibility","width","wordWrap","wordWrapWidth","x","x1","x2","y","y1","y2","z1","z2","zIndex"];function EQi(e){return xQi.includes(e)}function x2t(e){var t={};for(var n in e)EQi(n)&&(t[n]=e[n]);return t}function AQi(e,t){if(e.length<=t)return e;for(var n=Math.floor(e.length/t),i=[],r=0;r<e.length;r+=n)i.push(e[r]);return i}function WZe(e,t,n){var i=e.getBBox(),r=i.width,o=i.height,s=t/Math.max(r,o);return e.style.transform="scale(".concat(s,")"),s}Wn();var DQi=on(Pi());function TQi(e,t){var n=new Map;return e.forEach(function(i){var r=t(i);n.has(r)||n.set(r,[]),n.get(r).push(i)}),n}function kQi(e){throw new Error(e)}var IQi=(function(){function e(r,o,s,a,l,c,u){r===void 0&&(r=null),o===void 0&&(o=null),s===void 0&&(s=null),a===void 0&&(a=null),l===void 0&&(l=[null,null,null,null,null]),c===void 0&&(c=[]),u===void 0&&(u=[]),t.add(this),this._elements=Array.from(r),this._data=o,this._parent=s,this._document=a,this._enter=l[0],this._update=l[1],this._exit=l[2],this._merge=l[3],this._split=l[4],this._transitions=c,this._facetElements=u}e.prototype.selectAll=function(r){var o=typeof r=="string"?this._parent.querySelectorAll(r):r;return new n(o,null,this._elements[0],this._document)},e.prototype.selectFacetAll=function(r){var o=typeof r=="string"?this._parent.querySelectorAll(r):r;return new n(this._elements,null,this._parent,this._document,void 0,void 0,o)},e.prototype.select=function(r){var o=typeof r=="string"?this._parent.querySelectorAll(r)[0]||null:r;return new n([o],null,o,this._document)},e.prototype.append=function(r){var o=this,s=typeof r=="function"?r:function(){return o.createElement(r)},a=[];if(this._data!==null){for(var l=0;l<this._data.length;l++){var c=this._data[l],u=Et(Array.isArray(c)?c:[c,null],2),d=u[0],h=u[1],f=s(d,l);f.__data__=d,h!==null&&(f.__fromElements__=h),this._parent.appendChild(f),a.push(f)}return new n(a,null,this._parent,this._document)}for(var l=0;l<this._elements.length;l++){var p=this._elements[l],d=p.__data__,f=s(d,l);p.appendChild(f),a.push(f)}return new n(a,null,a[0],this._document)},e.prototype.maybeAppend=function(r,o){var s=xU(this,t,"m",i).call(this,r[0]==="#"?r:"#".concat(r),o);return s.attr("id",r),s},e.prototype.maybeAppendByClassName=function(r,o){var s=r.toString(),a=xU(this,t,"m",i).call(this,s[0]==="."?s:".".concat(s),o);return a.attr("className",s),a},e.prototype.maybeAppendByName=function(r,o){var s=xU(this,t,"m",i).call(this,'[name="'.concat(r,'"]'),o);return s.attr("name",r),s},e.prototype.data=function(r,o,s){var a,l;o===void 0&&(o=function(P){return P}),s===void 0&&(s=function(){return null});for(var c=[],u=[],d=new Set(this._elements),h=[],f=new Set,p=new Map(this._elements.map(function(P,F){return[o(P.__data__,F),P]})),g=new Map(this._facetElements.map(function(P,F){return[o(P.__data__,F),P]})),m=TQi(this._elements,function(P){return s(P.__data__)}),v=0;v<r.length;v++){var y=r[v],b=o(y,v),w=s(y,v);if(p.has(b)){var E=p.get(b);E.__data__=y,E.__facet__=!1,u.push(E),d.delete(E),p.delete(b)}else if(g.has(b)){var E=g.get(b);E.__data__=y,E.__facet__=!0,u.push(E),g.delete(b)}else if(m.has(b)){var A=m.get(b);h.push([y,A]);try{for(var D=(a=void 0,PD(A)),T=D.next();!T.done;T=D.next()){var E=T.value;d.delete(E)}}catch(P){a={error:P}}finally{try{T&&!T.done&&(l=D.return)&&l.call(D)}finally{if(a)throw a.error}}m.delete(b)}else if(p.has(w)){var E=p.get(w);E.__toData__?E.__toData__.push(y):E.__toData__=[y],f.add(E),d.delete(E)}else c.push(y)}var M=[new n([],c,this._parent,this._document),new n(u,null,this._parent,this._document),new n(d,null,this._parent,this._document),new n([],h,this._parent,this._document),new n(f,null,this._parent,this._document)];return new n(this._elements,null,this._parent,this._document,M)},e.prototype.merge=function(r){var o=Hr(Hr([],Et(this._elements),!1),Et(r._elements),!1),s=Hr(Hr([],Et(this._transitions),!1),Et(r._transitions),!1);return new n(o,null,this._parent,this._document,void 0,s)},e.prototype.createElement=function(r){if(this._document)return this._document.createElement(r,{});var o=n.registry[r];return o?new o:kQi("Unknown node type: ".concat(r))},e.prototype.join=function(r,o,s,a,l){r===void 0&&(r=function(p){return p}),o===void 0&&(o=function(p){return p}),s===void 0&&(s=function(p){return p.remove()}),a===void 0&&(a=function(p){return p}),l===void 0&&(l=function(p){return p.remove()});var c=r(this._enter),u=o(this._update),d=s(this._exit),h=a(this._merge),f=l(this._split);return u.merge(c).merge(d).merge(h).merge(f)},e.prototype.remove=function(){for(var r=function(a){var l=o._elements[a],c=o._transitions[a];c?c.then(function(){return l.remove()}):l.remove()},o=this,s=0;s<this._elements.length;s++)r(s);return new n([],null,this._parent,this._document,void 0,this._transitions)},e.prototype.each=function(r){for(var o=0;o<this._elements.length;o++){var s=this._elements[o],a=s.__data__;r.call(s,a,o)}return this},e.prototype.attr=function(r,o){var s=typeof o!="function"?function(){return o}:o;return this.each(function(a,l){o!==void 0&&(this[r]=s.call(this,a,l))})},e.prototype.style=function(r,o,s){s===void 0&&(s=!0);var a=typeof o!="function"||!s?function(){return o}:o;return this.each(function(l,c){o!==void 0&&(this.style[r]=a.call(this,l,c))})},e.prototype.styles=function(r,o){return r===void 0&&(r={}),o===void 0&&(o=!0),this.each(function(s,a){var l=this;Object.entries(r).forEach(function(c){var u=Et(c,2),d=u[0],h=u[1],f=typeof h!="function"||!o?function(){return h}:h;h!==void 0&&l.attr(d,f.call(l,s,a))})})},e.prototype.update=function(r,o){o===void 0&&(o=!0);var s=typeof r!="function"||!o?function(){return r}:r;return this.each(function(a,l){r&&this.update&&this.update(s.call(this,a,l))})},e.prototype.maybeUpdate=function(r,o){o===void 0&&(o=!0);var s=typeof r!="function"||!o?function(){return r}:r;return this.each(function(a,l){r&&this.update&&this.update(s.call(this,a,l))})},e.prototype.transition=function(r){this._transitions;var o=new Array(this._elements.length);return this.each(function(s,a){o[a]=r.call(this,s,a)}),this._transitions=(0,DQi.flatten)(o),this},e.prototype.on=function(r,o){return this.each(function(){this.addEventListener(r,o)}),this},e.prototype.call=function(r){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];return r.call.apply(r,Hr([this._parent,this],Et(o),!1)),this},e.prototype.node=function(){return this._elements[0]},e.prototype.nodes=function(){return this._elements},e.prototype.transitions=function(){return this._transitions.filter(function(r){return!!r})},e.prototype.parent=function(){return this._parent};var t,n,i;return n=e,t=new WeakSet,i=function(o,s){var a=this._elements[0],l=a.querySelector(o);if(l)return new n([l],null,this._parent,this._document);var c=typeof s=="string"?this.createElement(s):s();return a.appendChild(c),new n([c],null,this._parent,this._document)},e.registry={g:qf,rect:kp,circle:NC,path:$y,text:VZe,ellipse:JQ,image:Cj,line:N2,polygon:OF,polyline:j0e,html:MF},e})();function Rr(e){return new IQi([e],null,e,e.ownerDocument)}function LQi(e,t,n){return e.querySelector(t)?Rr(e).select(t):Rr(e).append(n)}var E2t=on(Pi());function yg(e){if((0,E2t.isNumber)(e))return[e,e,e,e];if((0,E2t.isArray)(e)){var t=e.length;if(t===1)return[e[0],e[0],e[0],e[0]];if(t===2)return[e[0],e[1],e[0],e[1]];if(t===3)return[e[0],e[1],e[2],e[1]];if(t===4)return e}return[0,0,0,0]}Wn();function A2t(e){var t=e.getLocalBounds(),n=t.min,i=t.max,r=Et([n,i],2),o=Et(r[0],2),s=o[0],a=o[1],l=Et(r[1],2),c=l[0],u=l[1];return{x:s,y:a,width:c-s,height:u-a,left:s,bottom:u,top:a,right:c}}function NQi(e,t){var n=Et(e,2),i=n[0],r=n[1],o=Et(t,2),s=o[0],a=o[1];return i!==s&&r===a}function PQi(e,t){var n,i,r=t.attributes;try{for(var o=PD(Object.entries(r)),s=o.next();!s.done;s=o.next()){var a=Et(s.value,2),l=a[0],c=a[1];l!=="id"&&l!=="className"&&e.attr(l,c)}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}}function UZe(e){return e.toString().charAt(0).toUpperCase()+e.toString().slice(1)}function MQi(e){return e.toString().charAt(0).toLowerCase()+e.toString().slice(1)}function OQi(e,t){return"".concat(t).concat(UZe(e))}function D2t(e,t,n){var i;n===void 0&&(n=!0);var r=t||((i=e.match(/^([a-z][a-z0-9]+)/))===null||i===void 0?void 0:i[0])||"",o=e.replace(new RegExp("^(".concat(r,")")),"");return n?MQi(o):o}Wn();function RQi(e,t){Object.entries(t).forEach(function(n){var i=Et(n,2),r=i[0],o=i[1];Hr([e],Et(e.querySelectorAll(r)),!1).filter(function(s){return s.matches(r)}).forEach(function(s){if(s){var a=s;a.style.cssText+=Object.entries(o).reduce(function(l,c){return"".concat(l).concat(c.join(":"),";")},"")}})})}var Tre=function(e,t){if(!e?.startsWith(t))return!1;var n=e[t.length];return n>="A"&&n<="Z"};function bs(e,t,n){n===void 0&&(n=!1);var i={};return Object.entries(e).forEach(function(r){var o=Et(r,2),s=o[0],a=o[1];if(!(s==="className"||s==="class")){if(Tre(s,"show")&&Tre(D2t(s,"show"),t)!==n)s===OQi(t,"show")?i[s]=a:i[s.replace(new RegExp(UZe(t)),"")]=a;else if(!Tre(s,"show")&&Tre(s,t)!==n){var l=D2t(s,t);l==="filter"&&typeof a=="function"||(i[l]=a)}}}),i}function YB(e,t){return Object.entries(e).reduce(function(n,i){var r=Et(i,2),o=r[0],s=r[1];return o.startsWith("show")?n["show".concat(t).concat(o.slice(4))]=s:n["".concat(t).concat(UZe(o))]=s,n},{})}function iT(e,t){t===void 0&&(t=["x","y","class","className"]);var n=["transform","transformOrigin","anchor","visibility","pointerEvents","zIndex","cursor","clipPath","clipPathTargets","offsetPath","offsetPathTargets","offsetDistance","draggable","droppable"],i={},r={};return Object.entries(e).forEach(function(o){var s=Et(o,2),a=s[0],l=s[1];t.includes(a)||(n.indexOf(a)!==-1?r[a]=l:i[a]=l)}),[i,r]}function s0(e,t){var n={YYYY:e.getFullYear(),MM:e.getMonth()+1,DD:e.getDate(),HH:e.getHours(),mm:e.getMinutes(),ss:e.getSeconds()},i=t;return Object.keys(n).forEach(function(r){var o=n[r];i=i.replace(r,r==="YYYY"?"".concat(o):"".concat(o).padStart(2,"0"))}),i}Wn();function FQi(e,t,n){var i=e.getBBox(),r=i.width,o=i.height,s=Et([t,n].map(function(c,u){var d;return c.includes("%")?parseFloat(((d=c.match(/[+-]?([0-9]*[.])?[0-9]+/))===null||d===void 0?void 0:d[0])||"0")/100*(u===0?r:o):c}),2),a=s[0],l=s[1];return[a,l]}function kCn(e,t){if(t)try{var n=/translate\(([+-]*[\d]+[%]*),[ ]*([+-]*[\d]+[%]*)\)/g,i=t.replace(n,function(r,o,s){return"translate(".concat(FQi(e,o,s),")")});e.attr("transform",i)}catch{}}function BQi(e){var t;return((t=e[0])===null||t===void 0?void 0:t.map(function(n,i){return e.map(function(r){return r[i]})}))||[]}Wn();var T2t=function(e,t){if(t==null){e.innerHTML="";return}e.replaceChildren?Array.isArray(t)?e.replaceChildren.apply(e,Hr([],Et(t),!1)):e.replaceChildren(t):(e.innerHTML="",Array.isArray(t)?t.forEach(function(n){return e.appendChild(n)}):e.appendChild(t))};function Q0e(e){return/\S+-\S+/g.test(e)?e.split("-").map(function(t){return t[0]}):e.length>2?[e[0]]:e.split("")}Wn();var jQi=function(e){var t=new DOMParser,n=t.parseFromString(e,"text/html"),i=n.body.firstElementChild;if(console.log(i?.getClientRects(),11),!i)return 0;var r=i.getAttribute("style")||"",o=Object.fromEntries(r.split(";").map(function(m){return m.trim()}).filter(function(m){return m.includes(":")}).map(function(m){var v=Et(m.split(":").map(function(w){return w.trim()}),2),y=v[0],b=v[1];return[y.toLowerCase(),b]})),s=function(m){if(!m)return 0;var v=m.match(/([\d.]+)px/);return v?parseFloat(v[1]):0};if(o.height)return s(o.height);var a=s(o["font-size"])||16,l=o["line-height"],c;!l||l==="normal"?c=1.2*a:l.endsWith("px")?c=s(l):/^[\d.]+$/.test(l)?c=parseFloat(l)*a:c=a;var u=s(o["padding-top"]),d=s(o["padding-bottom"]);if(o.padding){var h=o.padding.split(/\s+/).map(s);h.length===1||h.length===2?(u=h[0],d=h[0]):(h.length===3||h.length===4)&&(u=h[0],d=h[2])}var f=s(o["border-top-width"]),p=s(o["border-bottom-width"]);if(o.border){var g=o.border.match(/([\d.]+)px/);g&&(f=parseFloat(g[1]),p=parseFloat(g[1]))}if(o["border-width"]){var h=o["border-width"].split(/\s+/).map(s);h.length===1||h.length===2?(f=h[0],p=h[0]):(h.length===3||h.length===4)&&(f=h[0],p=h[2])}return c+u+d+f+p};function zQi(){Y0e(this,this.attributes.visibility!=="hidden")}var Sd=(function(e){Ss(t,e);function t(n,i){i===void 0&&(i={});var r=e.call(this,ff({},{style:i},n))||this;return r.initialized=!1,r._defaultOptions=i,r}return Object.defineProperty(t.prototype,"offscreenGroup",{get:function(){return this._offscreen||(this._offscreen=CCn(this)),this._offscreen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultOptions",{get:function(){return this._defaultOptions},enumerable:!1,configurable:!0}),t.prototype.connectedCallback=function(){this.render(this.attributes,this),this.bindEvents(this.attributes,this),this.initialized=!0},t.prototype.disconnectedCallback=function(){var n;(n=this._offscreen)===null||n===void 0||n.destroy()},t.prototype.attributeChangedCallback=function(n){n==="visibility"&&zQi.call(this)},t.prototype.update=function(n,i){var r;return this.attr(ff({},this.attributes,n||{})),(r=this.render)===null||r===void 0?void 0:r.call(this,this.attributes,this,i)},t.prototype.clear=function(){this.removeChildren()},t.prototype.bindEvents=function(n,i){},t.prototype.getSubShapeStyle=function(n){n.x,n.y,n.transform,n.transformOrigin,n.class,n.className,n.zIndex;var i=ou(n,["x","y","transform","transformOrigin","class","className","zIndex"]);return i},t})(hZe);Wn();var VQi=on(Pi()),ICn=function(e,t,n){return[["M",e-n,t],["A",n,n,0,1,0,e+n,t],["A",n,n,0,1,0,e-n,t],["Z"]]},HQi=ICn,WQi=function(e,t,n){return[["M",e-n,t-n],["L",e+n,t-n],["L",e+n,t+n],["L",e-n,t+n],["Z"]]},UQi=function(e,t,n){return[["M",e-n,t],["L",e,t-n],["L",e+n,t],["L",e,t+n],["Z"]]},$Qi=function(e,t,n){var i=n*Math.sin(.3333333333333333*Math.PI);return[["M",e-n,t+i],["L",e,t-i],["L",e+n,t+i],["Z"]]},qQi=function(e,t,n){var i=n*Math.sin(.3333333333333333*Math.PI);return[["M",e-n,t-i],["L",e+n,t-i],["L",e,t+i],["Z"]]},GQi=function(e,t,n){var i=n/2*Math.sqrt(3);return[["M",e,t-n],["L",e+i,t-n/2],["L",e+i,t+n/2],["L",e,t+n],["L",e-i,t+n/2],["L",e-i,t-n/2],["Z"]]},KQi=function(e,t,n){var i=n-1.5;return[["M",e-n,t-i],["L",e+n,t+i],["L",e+n,t-i],["L",e-n,t+i],["Z"]]},LCn=function(e,t,n){return[["M",e,t+n],["L",e,t-n]]},YQi=function(e,t,n){return[["M",e-n,t-n],["L",e+n,t+n],["M",e+n,t-n],["L",e-n,t+n]]},QQi=function(e,t,n){return[["M",e-n/2,t-n],["L",e+n/2,t-n],["M",e,t-n],["L",e,t+n],["M",e-n/2,t+n],["L",e+n/2,t+n]]},ZQi=function(e,t,n){return[["M",e-n,t],["L",e+n,t],["M",e,t-n],["L",e,t+n]]},XQi=function(e,t,n){return[["M",e-n,t],["L",e+n,t]]},NCn=function(e,t,n){return[["M",e-n,t],["L",e+n,t]]},JQi=NCn,eZi=function(e,t,n){return[["M",e-n,t],["A",n/2,n/2,0,1,1,e,t],["A",n/2,n/2,0,1,0,e+n,t]]},tZi=function(e,t,n){return[["M",e-n-1,t-2.5],["L",e,t-2.5],["L",e,t+2.5],["L",e+n+1,t+2.5]]},nZi=function(e,t,n){return[["M",e-n-1,t+2.5],["L",e,t+2.5],["L",e,t-2.5],["L",e+n+1,t-2.5]]},iZi=function(e,t,n){return[["M",e-(n+1),t+2.5],["L",e-n/2,t+2.5],["L",e-n/2,t-2.5],["L",e+n/2,t-2.5],["L",e+n/2,t+2.5],["L",e+n+1,t+2.5]]};function rZi(e,t){return[["M",e-5,t+2.5],["L",e-5,t],["L",e,t],["L",e,t-3],["L",e,t+3],["L",e+6.5,t+3]]}var oZi=function(e,t,n){return[["M",e-n,t-n],["L",e+n,t],["L",e-n,t+n],["Z"]]},sZi=function(e,t,n){var i=n,r=n*.2,o=n*.7;return[["M",e-i,t],["A",i,i,0,1,0,e+i,t],["A",i,i,0,1,0,e-i,t],["Z"],["M",e-o,t],["L",e-r,t],["M",e+r,t],["L",e+o,t],["M",e,t-o],["L",e,t-r],["M",e,t+r],["L",e,t+o]]},UMe=on(Pi());function aZi(e){var t="default";if((0,UMe.isObject)(e)&&e instanceof Image)t="image";else if((0,UMe.isFunction)(e))t="symbol";else if((0,UMe.isString)(e)){var n=new RegExp("data:(image|text)");e.match(n)?t="base64":/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(e)?t="url":t="symbol"}return t}function lZi(e){var t=aZi(e);return["base64","url","image"].includes(t)?"image":e&&t==="symbol"?"path":null}var Ul=(function(e){Ss(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,i){var r=n.x,o=r===void 0?0:r,s=n.y,a=s===void 0?0:s,l=this.getSubShapeStyle(n),c=l.symbol,u=l.size,d=u===void 0?16:u,h=ou(l,["symbol","size"]),f=lZi(c);R0(!!f,Rr(i),function(p){p.maybeAppendByClassName("marker",f).attr("className","marker ".concat(f,"-marker")).call(function(g){if(f==="image"){var m=d*2;g.styles({img:c,width:m,height:m,x:o-d,y:a-d})}else{var m=d/2,v=(0,VQi.isFunction)(c)?c:t.getSymbol(c);g.styles(Zn({d:v?.(o,a,m)},h))}})})},t.MARKER_SYMBOL_MAP=new Map,t.registerSymbol=function(n,i){t.MARKER_SYMBOL_MAP.set(n,i)},t.getSymbol=function(n){return t.MARKER_SYMBOL_MAP.get(n)},t.getSymbols=function(){return Array.from(t.MARKER_SYMBOL_MAP.keys())},t})(Sd);Ul.registerSymbol("cross",YQi);Ul.registerSymbol("hyphen",XQi);Ul.registerSymbol("line",LCn);Ul.registerSymbol("plus",ZQi);Ul.registerSymbol("tick",QQi);Ul.registerSymbol("circle",ICn);Ul.registerSymbol("point",HQi);Ul.registerSymbol("bowtie",KQi);Ul.registerSymbol("hexagon",GQi);Ul.registerSymbol("square",WQi);Ul.registerSymbol("diamond",UQi);Ul.registerSymbol("triangle",$Qi);Ul.registerSymbol("triangle-down",qQi);Ul.registerSymbol("line",LCn);Ul.registerSymbol("dot",NCn);Ul.registerSymbol("dash",JQi);Ul.registerSymbol("smooth",eZi);Ul.registerSymbol("hv",tZi);Ul.registerSymbol("vh",nZi);Ul.registerSymbol("hvh",iZi);Ul.registerSymbol("vhv",rZi);Ul.registerSymbol("focus",sZi);Wn();function ffe(e,...t){return t.reduce((n,i)=>r=>n(i(r)),e)}function uje(e,t){return t-e?n=>(n-e)/(t-e):n=>.5}function cZi(e,t){const n=t<e?t:e,i=e>t?e:t;return r=>Math.min(Math.max(n,r),i)}function uZi(e,t,n,i,r){let o=n,s=i||e.length;const a=(l=>l);for(;o<s;){const l=Math.floor((o+s)/2);a(e[l])>t?s=l:o=l+1}return o}var k2t=Math.sqrt(50),I2t=Math.sqrt(10),L2t=Math.sqrt(2);function Ece(e,t,n){const i=(t-e)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),o=i/10**r;return r>=0?(o>=k2t?10:o>=I2t?5:o>=L2t?2:1)*10**r:-(10**-r)/(o>=k2t?10:o>=I2t?5:o>=L2t?2:1)}var dZi=(e,t,n=5)=>{const i=[e,t];let r=0,o=i.length-1,s=i[r],a=i[o],l;return a<s&&([s,a]=[a,s],[r,o]=[o,r]),l=Ece(s,a,n),l>0?(s=Math.floor(s/l)*l,a=Math.ceil(a/l)*l,l=Ece(s,a,n)):l<0&&(s=Math.ceil(s*l)/l,a=Math.floor(a*l)/l,l=Ece(s,a,n)),l>0?(i[r]=Math.floor(s/l)*l,i[o]=Math.ceil(a/l)*l):l<0&&(i[r]=Math.ceil(s*l)/l,i[o]=Math.floor(a*l)/l),i},N2t=on(Pi());function P2t(e){return!(0,N2t.isUndefined)(e)&&!(0,N2t.isNull)(e)&&!Number.isNaN(e)}var hZi=on(i2n());function $Me(e,t,n){let i=n;return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(t-e)*6*i:i<1/2?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function fZi(e){const t=e[0]/360,n=e[1]/100,i=e[2]/100,r=e[3];if(n===0)return[i*255,i*255,i*255,r];const o=i<.5?i*(1+n):i+n-i*n,s=2*i-o,a=$Me(s,o,t+1/3),l=$Me(s,o,t),c=$Me(s,o,t-1/3);return[a*255,l*255,c*255,r]}function M2t(e){const t=hZi.default.get(e);if(!t)return null;const{model:n,value:i}=t;return n==="rgb"?i:n==="hsl"?fZi(i):null}var pfe=(e,t)=>n=>e*(1-n)+t*n,pZi=(e,t)=>{const n=M2t(e),i=M2t(t);return n===null||i===null?n?()=>e:()=>t:r=>{const o=new Array(4);for(let u=0;u<4;u+=1){const d=n[u],h=i[u];o[u]=d*(1-r)+h*r}const[s,a,l,c]=o;return`rgba(${Math.round(s)}, ${Math.round(a)}, ${Math.round(l)}, ${c})`}},gZi=(e,t)=>typeof e=="number"&&typeof t=="number"?pfe(e,t):typeof e=="string"&&typeof t=="string"?pZi(e,t):()=>e,mZi=(e,t)=>{const n=pfe(e,t);return i=>Math.round(n(i))};function O2t({map:e,initKey:t},n){const i=t(n);return e.has(i)?e.get(i):n}function vZi({map:e,initKey:t},n){const i=t(n);return e.has(i)?e.get(i):(e.set(i,n),n)}function yZi({map:e,initKey:t},n){const i=t(n);return e.has(i)&&(n=e.get(i),e.delete(i)),n}function bZi(e){return typeof e=="object"?e.valueOf():e}var R2t=class extends Map{constructor(e){if(super(),this.map=new Map,this.initKey=bZi,e!==null)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(O2t({map:this.map,initKey:this.initKey},e))}has(e){return super.has(O2t({map:this.map,initKey:this.initKey},e))}set(e,t){return super.set(vZi({map:this.map,initKey:this.initKey},e),t)}delete(e){return super.delete(yZi({map:this.map,initKey:this.initKey},e))}},F2t=on(Pi()),PCn=class{constructor(e){this.options=(0,F2t.deepMix)({},this.getDefaultOptions()),this.update(e)}getOptions(){return this.options}update(e={}){this.options=(0,F2t.deepMix)({},this.options,e),this.rescale(e)}rescale(e){}},$Ze=Symbol("defaultUnknown");function B2t(e,t,n){for(let i=0;i<t.length;i+=1)e.has(t[i])||e.set(n(t[i]),i)}function j2t(e){const{value:t,from:n,to:i,mapper:r,notFoundReturn:o}=e;let s=r.get(t);if(s===void 0){if(o!==$Ze)return o;s=n.push(t)-1,r.set(t,s)}return i[s%i.length]}function z2t(e){return e instanceof Date?t=>`${t}`:typeof e=="object"?t=>JSON.stringify(t):t=>t}var _Zi=class MCn extends PCn{getDefaultOptions(){return{domain:[],range:[],unknown:$Ze}}constructor(t){super(t)}map(t){return this.domainIndexMap.size===0&&B2t(this.domainIndexMap,this.getDomain(),this.domainKey),j2t({value:this.domainKey(t),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(t){return this.rangeIndexMap.size===0&&B2t(this.rangeIndexMap,this.getRange(),this.rangeKey),j2t({value:this.rangeKey(t),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(t){const[n]=this.options.domain,[i]=this.options.range;if(this.domainKey=z2t(n),this.rangeKey=z2t(i),!this.rangeIndexMap){this.rangeIndexMap=new Map,this.domainIndexMap=new Map;return}(!t||t.range)&&this.rangeIndexMap.clear(),(!t||t.domain||t.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)}clone(){return new MCn(this.options)}getRange(){return this.options.range}getDomain(){if(this.sortedDomain)return this.sortedDomain;const{domain:t,compare:n}=this.options;return this.sortedDomain=n?[...t].sort(n):t,this.sortedDomain}};function wZi(e){const t=Math.min(...e);return e.map(n=>n/t)}function CZi(e,t){const n=e.length,i=t-n;return i>0?[...e,...new Array(i).fill(1)]:i<0?e.slice(0,t):e}function SZi(e){return Math.round(e*1e12)/1e12}function xZi(e){const{domain:t,range:n,paddingOuter:i,paddingInner:r,flex:o,round:s,align:a}=e,l=t.length,c=CZi(o,l),[u,d]=n,h=d-u,f=2/l*i+1-1/l*r,p=h/f,g=p*r/l,m=p-l*g,v=wZi(c),y=v.reduce((N,j)=>N+j),b=m/y,w=new R2t(t.map((N,j)=>{const W=v[j]*b;return[N,s?Math.floor(W):W]})),E=new R2t(t.map((N,j)=>{const J=v[j]*b+g;return[N,s?Math.floor(J):J]})),A=Array.from(E.values()).reduce((N,j)=>N+j),T=(h-(A-A/l*r))*a,M=u+T;let P=s?Math.round(M):M;const F=new Array(l);for(let N=0;N<l;N+=1){F[N]=SZi(P);const j=t[N];P+=E.get(j)}return{valueBandWidth:w,valueStep:E,adjustedRange:F}}function EZi(e){var t;const{domain:n}=e,i=n.length;if(i===0)return{valueBandWidth:void 0,valueStep:void 0,adjustedRange:[]};if(!!(!((t=e.flex)===null||t===void 0)&&t.length))return xZi(e);const{range:o,paddingOuter:s,paddingInner:a,round:l,align:c}=e;let u,d,h=o[0];const p=o[1]-h,g=s*2,m=i-a;u=p/Math.max(1,g+m),l&&(u=Math.floor(u)),h+=(p-u*(i-a))*c,d=u*(1-a),l&&(h=Math.round(h),d=Math.round(d));const v=new Array(i).fill(0).map((y,b)=>h+b*u);return{valueStep:u,valueBandWidth:d,adjustedRange:v}}var AZi=class OCn extends _Zi{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:$Ze,flex:[]}}constructor(t){super(t)}clone(){return new OCn(this.options)}getStep(t){return this.valueStep===void 0?1:typeof this.valueStep=="number"?this.valueStep:t===void 0?Array.from(this.valueStep.values())[0]:this.valueStep.get(t)}getBandWidth(t){return this.valueBandWidth===void 0?1:typeof this.valueBandWidth=="number"?this.valueBandWidth:t===void 0?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(t)}getRange(){return this.adjustedRange}getPaddingInner(){const{padding:t,paddingInner:n}=this.options;return t>0?t:n}getPaddingOuter(){const{padding:t,paddingOuter:n}=this.options;return t>0?t:n}rescale(){super.rescale();const{align:t,domain:n,range:i,round:r,flex:o}=this.options,{adjustedRange:s,valueBandWidth:a,valueStep:l}=EZi({align:t,range:i,round:r,flex:o,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:n});this.valueStep=l,this.valueBandWidth=a,this.adjustedRange=s}},DZi=(e,t,n)=>{let i,r,o=e,s=t;if(o===s&&n>0)return[o];let a=Ece(o,s,n);if(a===0||!Number.isFinite(a))return[];if(a>0){o=Math.ceil(o/a),s=Math.floor(s/a),r=new Array(i=Math.ceil(s-o+1));for(let l=0;l<i;l+=1)r[l]=(o+l)*a}else{a=-a,o=Math.ceil(o*a),s=Math.floor(s*a),r=new Array(i=Math.ceil(s-o+1));for(let l=0;l<i;l+=1)r[l]=(o+l)/a}return r},V2t=on(Pi()),TZi=on(Pi()),kZi=(e,t,n)=>{const[i,r]=e,[o,s]=t;let a,l;return i<r?(a=uje(i,r),l=n(o,s)):(a=uje(r,i),l=n(s,o)),ffe(l,a)},IZi=(e,t,n)=>{const i=Math.min(e.length,t.length)-1,r=new Array(i),o=new Array(i),s=e[0]>e[i],a=s?[...e].reverse():e,l=s?[...t].reverse():t;for(let c=0;c<i;c+=1)r[c]=uje(a[c],a[c+1]),o[c]=n(l[c],l[c+1]);return c=>{const u=uZi(e,c,1,i)-1,d=r[u],h=o[u];return ffe(h,d)(c)}},H2t=(e,t,n,i)=>(Math.min(e.length,t.length)>2?IZi:kZi)(e,t,i?mZi:n),LZi=class extends PCn{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:pfe,tickCount:5}}map(e){return P2t(e)?this.output(e):this.options.unknown}invert(e){return P2t(e)?this.input(e):this.options.unknown}nice(){if(!this.options.nice)return;const[e,t,n,...i]=this.getTickMethodOptions();this.options.domain=this.chooseNice()(e,t,n,...i)}getTicks(){const{tickMethod:e}=this.options,[t,n,i,...r]=this.getTickMethodOptions();return e(t,n,i,...r)}getTickMethodOptions(){const{domain:e,tickCount:t}=this.options,n=e[0],i=e[e.length-1];return[n,i,t]}chooseNice(){return dZi}rescale(){this.nice();const[e,t]=this.chooseTransforms();this.composeOutput(e,this.chooseClamp(e)),this.composeInput(e,t,this.chooseClamp(t))}chooseClamp(e){const{clamp:t,range:n}=this.options,i=this.options.domain.map(e),r=Math.min(i.length,n.length);return t?cZi(i[0],i[r-1]):TZi.identity}composeOutput(e,t){const{domain:n,range:i,round:r,interpolate:o}=this.options,s=H2t(n.map(e),i,o,r);this.output=ffe(s,t,e)}composeInput(e,t,n){const{domain:i,range:r}=this.options,o=H2t(r,i.map(e),pfe);this.input=ffe(t,n,o)}},qMe=class RCn extends LZi{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:gZi,tickMethod:DZi,tickCount:5}}chooseTransforms(){return[V2t.identity,V2t.identity]}clone(){return new RCn(this.options)}},kre=on(Pi());Wn();var NZi=on(Pi()),PZi=(function(e){Ss(t,e);function t(n){var i=this,r=n.style,o=ou(n,["style"]);return i=e.call(this,(0,NZi.deepMix)({},{type:"column"},Zn({style:r},o)))||this,i.columnsGroup=new qf({name:"columns"}),i.appendChild(i.columnsGroup),i.render(),i}return t.prototype.render=function(){var n=this.attributes,i=n.columns,r=n.x,o=n.y;this.columnsGroup.style.transform="translate(".concat(r,", ").concat(o,")"),Rr(this.columnsGroup).selectAll(".column").data(i.flat()).join(function(s){return s.append("rect").attr("className","column").each(function(a){this.attr(a)})},function(s){return s.each(function(a){this.attr(a)})},function(s){return s.remove()})},t.prototype.update=function(n){this.attr(ff({},this.attributes,n)),this.render()},t.prototype.clear=function(){this.removeChildren()},t})(xu);Wn();var MZi=on(Pi()),OZi=(function(e){Ss(t,e);function t(n){var i=this,r=n.style,o=ou(n,["style"]);return i=e.call(this,(0,MZi.deepMix)({},{type:"lines"},Zn({style:r},o)))||this,i.linesGroup=i.appendChild(new qf),i.areasGroup=i.appendChild(new qf),i.render(),i}return t.prototype.render=function(){var n=this.attributes,i=n.lines,r=n.areas,o=n.x,s=n.y;this.style.transform="translate(".concat(o,", ").concat(s,")"),i&&this.renderLines(i),r&&this.renderAreas(r)},t.prototype.clear=function(){this.linesGroup.removeChildren(),this.areasGroup.removeChildren()},t.prototype.update=function(n){this.attr(ff({},this.attributes,n)),this.render()},t.prototype.renderLines=function(n){Rr(this.linesGroup).selectAll(".line").data(n).join(function(i){return i.append("path").attr("className","line").each(function(r){this.attr(r)})},function(i){return i.each(function(r){this.attr(r)})},function(i){return i.remove()})},t.prototype.renderAreas=function(n){Rr(this.linesGroup).selectAll(".area").data(n).join(function(i){return i.append("path").attr("className","area").each(function(r){this.attr(r)})},function(i){return i.each(function(r){this.style(r)})},function(i){return i.remove()})},t})(xu);Wn();var qZe=on(Pi());function RZi(e,t){var n,i=t.x,r=t.y,o=Et(r.getOptions().range||[0,0],2),s=o[0],a=o[1];return a>s&&(n=Et([s,a],2),a=n[0],s=n[1]),e.map(function(l){var c=l.map(function(u,d){return[i.map(d),(0,qZe.clamp)(r.map(u),a,s)]});return c})}function lK(e,t){t===void 0&&(t=!1);var n=t?e.length-1:0,i=e.map(function(r,o){return Hr([o===n?"M":"L"],Et(r),!1)});return t?i.reverse():i}function gfe(e,t){if(t===void 0&&(t=!1),e.length<=2)return lK(e);for(var n=[],i=e.length,r=0;r<i;r+=1){var o=t?e[i-r-1]:e[r];(0,qZe.isEqual)(o,n.slice(-2))||n.push.apply(n,Hr([],Et(o),!1))}var s=SQi(n);return t?s.unshift(Hr(["M"],Et(e[i-1]),!1)):s.unshift(Hr(["M"],Et(e[0]),!1)),s}function GZe(e,t,n){var i=(0,qZe.clone)(e);return i.push(["L",t,n],["L",0,n],["Z"]),i}function FZi(e,t,n,i){return e.map(function(r){return GZe(t?gfe(r):lK(r),n,i)})}function BZi(e,t,n){for(var i=[],r=e.length-1;r>=0;r-=1){var o=e[r],s=lK(o),a=void 0;if(r===0)a=GZe(s,t,n);else{var l=e[r-1],c=lK(l,!0);c[0][0]="L",a=Hr(Hr(Hr([],Et(s),!1),Et(c),!1),[["Z"]],!1)}i.push(a)}return i}function jZi(e,t,n){for(var i=[],r=e.length-1;r>=0;r-=1){var o=e[r],s=gfe(o),a=void 0;if(r===0)a=GZe(s,t,n);else{var l=e[r-1],c=gfe(l,!0),u=o[0];c[0][0]="L",a=Hr(Hr(Hr([],Et(s),!1),Et(c),!1),[Hr(["M"],Et(u),!1),["Z"]],!1)}i.push(a)}return i}Wn();var sO=on(Pi());function W2t(e){return e.length===0?[0,0]:[(0,sO.min)((0,sO.minBy)(e,function(t){return(0,sO.min)(t)||0})),(0,sO.max)((0,sO.maxBy)(e,function(t){return(0,sO.max)(t)||0}))]}function U2t(e){for(var t=(0,sO.clone)(e),n=t[0].length,i=Et([Array(n).fill(0),Array(n).fill(0)],2),r=i[0],o=i[1],s=0;s<t.length;s+=1)for(var a=t[s],l=0;l<n;l+=1)a[l]>=0?(a[l]+=r[l],r[l]=a[l]):(a[l]+=o[l],o[l]=a[l]);return t}var zZi=(function(e){Ss(t,e);function t(n){return e.call(this,n,{type:"line",x:0,y:0,width:200,height:20,isStack:!1,color:["#83daad","#edbf45","#d2cef9","#e290b3","#6f63f4"],smooth:!0,lineLineWidth:1,areaOpacity:0,isGroup:!1,columnLineWidth:1,columnStroke:"#fff",scale:1,spacing:0})||this}return Object.defineProperty(t.prototype,"rawData",{get:function(){var n=this.attributes.data;if(!n||n?.length===0)return[[]];var i=(0,kre.clone)(n);return(0,kre.isNumber)(i[0])?[i]:i},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.attributes.isStack?U2t(this.rawData):this.rawData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scales",{get:function(){return this.createScales(this.data)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"baseline",{get:function(){var n=this.scales.y,i=Et(n.getOptions().domain||[0,0],2),r=i[0],o=i[1];return o<0?n.map(o):n.map(r<0?0:r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerShape",{get:function(){var n=this.attributes,i=n.width,r=n.height;return{width:i,height:r}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linesStyle",{get:function(){var n=this,i=this.attributes,r=i.type,o=i.isStack,s=i.smooth;if(r!=="line")throw new Error("linesStyle can only be used in line type");var a=bs(this.attributes,"area"),l=bs(this.attributes,"line"),c=this.containerShape.width,u=this.data;if(u[0].length===0)return{lines:[],areas:[]};var d=this.scales,h=d.x,f=d.y,p=RZi(u,{x:h,y:f}),g=[];if(a){var m=this.baseline;o?g=s?jZi(p,c,m):BZi(p,c,m):g=FZi(p,s,c,m)}return{lines:p.map(function(v,y){return Zn({stroke:n.getColor(y),d:s?gfe(v):lK(v)},l)}),areas:g.map(function(v,y){return Zn({d:v,fill:n.getColor(y)},a)})}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsStyle",{get:function(){var n=this,i=bs(this.attributes,"column"),r=this.attributes,o=r.isStack,s=r.type,a=r.scale;if(s!=="column")throw new Error("columnsStyle can only be used in column type");var l=this.containerShape.height,c=this.rawData;if(!c)return{columns:[]};o&&(c=U2t(c));var u=this.createScales(c),d=u.x,h=u.y,f=Et(W2t(c),2),p=f[0],g=f[1],m=new qMe({domain:[0,g-(p>0?0:p)],range:[0,l*a]}),v=d.getBandWidth(),y=this.rawData;return{columns:c.map(function(b,w){return b.map(function(E,A){var D=v/c.length,T=function(){return{x:d.map(A)+D*w,y:E>=0?h.map(E):h.map(0),width:D,height:m.map(Math.abs(E))}},M=function(){return{x:d.map(A),y:h.map(E),width:v,height:m.map(y[w][A])}};return Zn(Zn({fill:n.getColor(w)},i),o?M():T())})})}},enumerable:!1,configurable:!0}),t.prototype.render=function(n,i){LQi(i,".container","rect").attr("className","container").node();var r=n.type,o=n.x,s=n.y,a="spark".concat(r),l=Zn({x:o,y:s},r==="line"?this.linesStyle:this.columnsStyle);Rr(i).selectAll(".spark").data([r]).join(function(c){return c.append(function(u){return u==="line"?new OZi({className:a,style:l}):new PZi({className:a,style:l})}).attr("className","spark ".concat(a))},function(c){return c.update(l)},function(c){return c.remove()})},t.prototype.getColor=function(n){var i=this.attributes.color;return(0,kre.isArray)(i)?i[n%i.length]:(0,kre.isFunction)(i)?i.call(null,n):i},t.prototype.createScales=function(n){var i,r,o=this.attributes,s=o.type,a=o.scale,l=o.range,c=l===void 0?[]:l,u=o.spacing,d=this.containerShape,h=d.width,f=d.height,p=Et(W2t(n),2),g=p[0],m=p[1],v=new qMe({domain:[(i=c[0])!==null&&i!==void 0?i:g,(r=c[1])!==null&&r!==void 0?r:m],range:[f,f*(1-a)]});return s==="line"?{type:s,x:new qMe({domain:[0,n[0].length-1],range:[0,h]}),y:v}:{type:s,x:new AZi({domain:n[0].map(function(y,b){return b}),range:[0,h],paddingInner:u,paddingOuter:u/2,align:.5}),y:v}},t.tag="sparkline",t})(Sd);Wn();var VZi=on(Pi());Wn();var HZi=on(Pi());function WZi(e){return typeof e=="boolean"?!1:"enter"in e&&"update"in e&&"exit"in e}function $2t(e){if(!e)return{enter:!1,update:!1,exit:!1};var t=["enter","update","exit"],n=Object.fromEntries(Object.entries(e).filter(function(i){var r=Et(i,1),o=r[0];return!t.includes(o)}));return Object.fromEntries(t.map(function(i){return WZi(e)?e[i]===!1?[i,!1]:[i,Zn(Zn({},e[i]),n)]:[i,n]}))}function Aj(e,t){e?e.finished.then(t):t()}function UZi(e,t){e.length===0?t():Promise.all(e.map(function(n){return n?.finished})).then(t)}function FCn(e,t){"update"in e?e.update(t):e.attr(t)}function BCn(e,t,n){if(t.length===0)return null;if(!n){var i=t.slice(-1)[0];return FCn(e,{style:i}),null}return e.animate(t,n)}function $Zi(e,t){return!(e.nodeName!=="text"||t.nodeName!=="text"||e.attributes.text!==t.attributes.text)}function qZi(e,t,n,i){if(i===void 0&&(i="destroy"),$Zi(e,t))return e.remove(),[null];var r=function(){i==="destroy"?e.destroy():i==="hide"&&eC(e),t.isVisible()&&aZ(t)};if(!n)return r(),[null];var o=n.duration,s=o===void 0?0:o,a=n.delay,l=a===void 0?0:a,c=Math.ceil(+s/2),u=+s/4,d=Et(e.getGeometryBounds().center,2),h=d[0],f=d[1],p=Et(t.getGeometryBounds().center,2),g=p[0],m=p[1],v=Et([(h+g)/2-h,(f+m)/2-f],2),y=v[0],b=v[1],w=e.style.opacity,E=w===void 0?1:w,A=t.style.opacity,D=A===void 0?1:A,T=e.style.transform||"",M=t.style.transform||"",P=e.animate([{opacity:E,transform:"translate(0, 0) ".concat(T)},{opacity:0,transform:"translate(".concat(y,", ").concat(b,") ").concat(T)}],Zn(Zn({fill:"both"},n),{duration:l+c+u})),F=t.animate([{opacity:0,transform:"translate(".concat(-y,", ").concat(-b,") ").concat(M),offset:.01},{opacity:D,transform:"translate(0, 0) ".concat(M)}],Zn(Zn({fill:"both"},n),{duration:c+u,delay:l+c-u}));return Aj(F,r),[P,F]}function hC(e,t,n){var i={},r={};return Object.entries(t).forEach(function(o){var s=Et(o,2),a=s[0],l=s[1];if(!(0,HZi.isNil)(l)){var c=e.style[a]||e.parsedStyle[a]||0;c!==l&&(i[a]=c,r[a]=l)}}),n?BCn(e,[i,r],Zn({fill:"both"},n)):(FCn(e,r),null)}function Z0e(e,t){return e.style.opacity||(e.style.opacity=1),hC(e,{opacity:0},t)}var jCn={fill:"#fff",lineWidth:1,radius:2,size:10,stroke:"#bfbfbf",strokeOpacity:1,zIndex:0},zCn={fill:"#000",fillOpacity:.45,fontSize:12,textAlign:"center",textBaseline:"middle",zIndex:1},VCn={x:0,y:0,orientation:"horizontal",showLabel:!0,type:"start"},BS=tS({foreground:"foreground",handle:"handle",selection:"selection",sparkline:"sparkline",sparklineGroup:"sparkline-group",track:"track",brushArea:"brush-area"},"slider");Wn();var __=tS({labelGroup:"label-group",label:"label",iconGroup:"icon-group",icon:"icon",iconRect:"icon-rect",iconLine:"icon-line"},"handle"),GZi=(function(e){Ss(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,i){var r=n.x,o=n.y,s=n.size,a=s===void 0?10:s,l=n.radius,c=l===void 0?a/4:l,u=n.orientation,d=n.classNamePrefix,h=ou(n,["x","y","size","radius","orientation","classNamePrefix"]),f=a,p=f*2.4,g=d?"".concat(__.iconRect.name," ").concat(d,"handle-icon-rect"):__.iconRect.name,m=function(A){return d?"".concat(__.iconLine,"-").concat(A," ").concat(d,"handle-icon-line"):"".concat(__.iconLine,"-").concat(A)},v=Rr(i).maybeAppendByClassName(__.iconRect,"rect").attr("className",g).styles(Zn(Zn({},h),{width:f,height:p,radius:c,x:r-f/2,y:o-p/2,transformOrigin:"center"})),y=r+1/3*f-f/2,b=r+2/3*f-f/2,w=o+1/4*p-p/2,E=o+3/4*p-p/2;v.maybeAppendByClassName("".concat(__.iconLine,"-1"),"line").attr("className",m(1)).styles(Zn({x1:y,x2:y,y1:w,y2:E},h)),v.maybeAppendByClassName("".concat(__.iconLine,"-2"),"line").attr("className",m(2)).styles(Zn({x1:b,x2:b,y1:w,y2:E},h)),u==="vertical"&&(v.node().style.transform="rotate(90)")},t})(Sd),KZi=(function(e){Ss(t,e);function t(n){return e.call(this,n,VCn)||this}return t.prototype.renderLabel=function(n){var i=this,r=this.attributes,o=r.x,s=r.y,a=r.showLabel,l=bs(this.attributes,"label"),c=l.x,u=c===void 0?0:c,d=l.y,h=d===void 0?0:d,f=l.transform,p=l.transformOrigin,g=ou(l,["x","y","transform","transformOrigin"]),m=Et(iT(g,[]),2),v=m[0],y=m[1],b=Rr(n).maybeAppendByClassName(__.labelGroup,"g").styles(y),w=Zn(Zn({},zCn),v),E=w.text,A=ou(w,["text"]);R0(!!a,b,function(D){i.label=D.maybeAppendByClassName(__.label,"text").styles(Zn(Zn({},A),{x:o+u,y:s+h,transform:f,transformOrigin:p,text:"".concat(E)})),i.label.on("mousedown",function(T){T.stopPropagation()}),i.label.on("touchstart",function(T){T.stopPropagation()})})},t.prototype.renderIcon=function(n){var i=this.attributes,r=i.x,o=i.y,s=i.orientation,a=i.type,l=i.classNamePrefix,c=Zn(Zn({x:r,y:o,orientation:s,classNamePrefix:l},jCn),bs(this.attributes,"icon")),u=this.attributes.iconShape,d=u===void 0?function(){return new GZi({style:c})}:u,h=Rr(n).maybeAppendByClassName(__.iconGroup,"g");h.selectAll(__.icon.class).data([d]).join(function(f){return f.append(typeof d=="string"?d:function(){return d(a)}).attr("className",__.icon.name)},function(f){return f.update(c)},function(f){return f.remove()})},t.prototype.render=function(n,i){this.renderIcon(i),this.renderLabel(i)},t})(Sd),YZi=(function(e){Ss(t,e);function t(n){var i=e.call(this,n,Zn(Zn(Zn({x:0,y:0,animate:{duration:100,fill:"both"},brushable:!0,formatter:function(r){return r.toString()},handleSpacing:2,orientation:"horizontal",padding:0,autoFitLabel:!0,scrollable:!0,selectionFill:"#5B8FF9",selectionFillOpacity:.45,selectionZIndex:2,showHandle:!0,showLabel:!0,slidable:!0,trackFill:"#416180",trackLength:200,trackOpacity:.05,trackSize:20,trackZIndex:-1,values:[0,1],type:"range",selectionType:"select",handleIconOffset:0},YB(VCn,"handle")),YB(jCn,"handleIcon")),YB(zCn,"handleLabel")))||this;return i.range=[0,1],i.onDragStart=function(r){return function(o){o.stopPropagation(),i.target=r,i.prevPos=i.getOrientVal(w2t(o));var s=i.availableSpace,a=s.x,l=s.y,c=i.getBBox(),u=c.x,d=c.y;i.selectionStartPos=i.getRatio(i.prevPos-i.getOrientVal([a,l])-i.getOrientVal([+u,+d])),i.selectionWidth=0,document.addEventListener("pointermove",i.onDragging),document.addEventListener("pointerup",i.onDragEnd)}},i.onDragging=function(r){var o=i.attributes,s=o.slidable,a=o.brushable,l=o.type;r.stopPropagation();var c=i.getOrientVal(w2t(r)),u=c-i.prevPos;if(u){var d=i.getRatio(u);switch(i.target){case"start":s&&i.setValuesOffset(d);break;case"end":s&&i.setValuesOffset(0,d);break;case"selection":s&&i.setValuesOffset(d,d);break;case"track":if(!a)return;i.selectionWidth+=d,l==="range"?i.innerSetValues([i.selectionStartPos,i.selectionStartPos+i.selectionWidth].sort(),!0):i.innerSetValues([0,i.selectionStartPos+i.selectionWidth],!0);break}i.prevPos=c}},i.onDragEnd=function(){document.removeEventListener("pointermove",i.onDragging),document.removeEventListener("pointermove",i.onDragging),document.removeEventListener("pointerup",i.onDragEnd),i.target="",i.updateHandlesPosition(!1)},i.onValueChange=function(r){var o=i.attributes,s=o.onChange,a=o.type,l=a==="range"?r:r[1],c=a==="range"?i.getValues():i.getValues()[1],u=new of("valuechange",{detail:{oldValue:l,value:c}});i.dispatchEvent(u),s?.(c)},i.selectionStartPos=0,i.selectionWidth=0,i.prevPos=0,i.target="",i}return Object.defineProperty(t.prototype,"values",{get:function(){return this.attributes.values},set:function(n){this.attributes.values=this.clampValues(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sparklineStyle",{get:function(){var n=this.attributes.orientation;if(n!=="horizontal")return null;var i=bs(this.attributes,"sparkline");return Zn(Zn({zIndex:0},this.availableSpace),i)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shape",{get:function(){var n=this.attributes,i=n.trackLength,r=n.trackSize,o=Et(this.getOrientVal([[i,r],[r,i]]),2),s=o[0],a=o[1];return{width:s,height:a}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"availableSpace",{get:function(){var n=this.attributes;n.x,n.y;var i=n.padding,r=Et(yg(i),4),o=r[0],s=r[1],a=r[2],l=r[3],c=this.shape,u=c.width,d=c.height;return{x:l,y:o,width:u-(l+s),height:d-(o+a)}},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.values},t.prototype.setValues=function(n,i){n===void 0&&(n=[0,0]),i===void 0&&(i=!1),this.attributes.values=n;var r=i===!1?!1:this.attributes.animate;this.updateSelectionArea(r),this.updateHandlesPosition(r)},t.prototype.updateSelectionArea=function(n){var i=this.calcSelectionArea();this.foregroundGroup.selectAll(BS.selection.class).each(function(r,o){hC(this,i[o],n)})},t.prototype.updateHandlesPosition=function(n){this.attributes.showHandle&&(this.startHandle&&hC(this.startHandle,this.getHandleStyle("start"),n),this.endHandle&&hC(this.endHandle,this.getHandleStyle("end"),n))},t.prototype.innerSetValues=function(n,i){n===void 0&&(n=[0,0]),i===void 0&&(i=!1);var r=this.values,o=this.clampValues(n);this.attributes.values=o,this.setValues(o),i&&this.onValueChange(r)},t.prototype.renderTrack=function(n){var i=this.attributes,r=i.x,o=i.y,s=bs(this.attributes,"track");this.trackShape=Rr(n).maybeAppendByClassName(BS.track,"rect").styles(Zn(Zn({x:r,y:o},this.shape),s))},t.prototype.renderBrushArea=function(n){var i=this.attributes,r=i.x,o=i.y,s=i.brushable;this.brushArea=Rr(n).maybeAppendByClassName(BS.brushArea,"rect").styles(Zn({x:r,y:o,fill:"transparent",cursor:s?"crosshair":"default"},this.shape))},t.prototype.renderSparkline=function(n){var i=this,r=this.attributes,o=r.x,s=r.y,a=r.orientation,l=Rr(n).maybeAppendByClassName(BS.sparklineGroup,"g");R0(a==="horizontal",l,function(c){var u=Zn(Zn({},i.sparklineStyle),{x:o,y:s});c.maybeAppendByClassName(BS.sparkline,function(){return new zZi({style:u})}).update(u)})},t.prototype.renderHandles=function(){var n=this,i,r=this.attributes,o=r.showHandle,s=r.type,a=s==="range"?["start","end"]:["end"],l=o?a:[],c=this;(i=this.foregroundGroup)===null||i===void 0||i.selectAll(BS.handle.class).data(l.map(function(u){return{type:u}}),function(u){return u.type}).join(function(u){return u.append(function(d){var h=d.type;return new KZi({style:n.getHandleStyle(h)})}).each(function(d){var h=d.type;this.attr("class","".concat(BS.handle.name," ").concat(h,"-handle"));var f="".concat(h,"Handle");c[f]=this,this.addEventListener("pointerdown",c.onDragStart(h))})},function(u){return u.each(function(d){var h=d.type;this.update(c.getHandleStyle(h))})},function(u){return u.each(function(d){var h=d.type,f="".concat(h,"Handle");c[f]=void 0}).remove()})},t.prototype.renderSelection=function(n){var i=this.attributes,r=i.x,o=i.y,s=i.type,a=i.selectionType;this.foregroundGroup=Rr(n).maybeAppendByClassName(BS.foreground,"g");var l=bs(this.attributes,"selection"),c=function(d){return d.style("visibility",function(h){return h.show?"visible":"hidden"}).style("cursor",function(h){return a==="select"?"grab":a==="invert"?"crosshair":"default"}).styles(Zn(Zn({},l),{transform:"translate(".concat(r,", ").concat(o,")")}))},u=this;this.foregroundGroup.selectAll(BS.selection.class).data(s==="value"?[]:this.calcSelectionArea().map(function(d,h){return{style:Zn({},d),index:h,show:a==="select"?h===1:h!==1}}),function(d){return d.index}).join(function(d){return d.append("rect").attr("className",BS.selection.name).call(c).each(function(h,f){var p=this;f===1?(u.selectionShape=Rr(this),this.on("pointerdown",function(g){p.attr("cursor","grabbing"),u.onDragStart("selection")(g)}),u.dispatchCustomEvent(this,"pointerenter","selectionMouseenter"),u.dispatchCustomEvent(this,"pointerleave","selectionMouseleave"),u.dispatchCustomEvent(this,"click","selectionClick"),this.addEventListener("pointerdown",function(){p.attr("cursor","grabbing")}),this.addEventListener("pointerup",function(){p.attr("cursor","pointer")}),this.addEventListener("pointerover",function(){p.attr("cursor","pointer")})):this.on("pointerdown",u.onDragStart("track"))})},function(d){return d.call(c)},function(d){return d.remove()}),this.updateSelectionArea(!1),this.renderHandles()},t.prototype.render=function(n,i){this.renderTrack(i),this.renderSparkline(i),this.renderBrushArea(i),this.renderSelection(i)},t.prototype.clampValues=function(n,i){var r;i===void 0&&(i=4);var o=Et(this.range,2),s=o[0],a=o[1],l=Et(this.getValues().map(function(m){return C2t(m,i)}),2),c=l[0],u=l[1],d=Array.isArray(n)?n:[c,n??u],h=Et((d||[c,u]).map(function(m){return C2t(m,i)}),2),f=h[0],p=h[1];if(this.attributes.type==="value")return[0,(0,VZi.clamp)(p,s,a)];f>p&&(r=Et([p,f],2),f=r[0],p=r[1]);var g=p-f;return g>a-s?[s,a]:f<s?c===s&&u===p?[s,p]:[s,g+s]:p>a?u===a&&c===f?[f,a]:[a-g,a]:[f,p]},t.prototype.calcSelectionArea=function(n){var i=Et(this.clampValues(n),2),r=i[0],o=i[1],s=this.availableSpace,a=s.x,l=s.y,c=s.width,u=s.height;return this.getOrientVal([[{y:l,height:u,x:a,width:r*c},{y:l,height:u,x:r*c+a,width:(o-r)*c},{y:l,height:u,x:o*c,width:(1-o)*c}],[{x:a,width:c,y:l,height:r*u},{x:a,width:c,y:r*u+l,height:(o-r)*u},{x:a,width:c,y:o*u,height:(1-o)*u}]])},t.prototype.calcHandlePosition=function(n){var i=this.attributes.handleIconOffset,r=this.availableSpace,o=r.x,s=r.y,a=r.width,l=r.height,c=Et(this.clampValues(),2),u=c[0],d=c[1],h=n==="start"?-i:i,f=(n==="start"?u:d)*this.getOrientVal([a,l])+h;return{x:o+this.getOrientVal([f,a/2]),y:s+this.getOrientVal([l/2,f])}},t.prototype.inferTextStyle=function(n){var i=this.attributes.orientation;return i==="horizontal"?{}:n==="start"?{transformOrigin:"left center",transform:"rotate(90)",textAlign:"start"}:n==="end"?{transformOrigin:"right center",transform:"rotate(90)",textAlign:"end"}:{}},t.prototype.calcHandleText=function(n){var i,r=this.attributes,o=r.type,s=r.orientation,a=r.formatter,l=r.autoFitLabel,c=bs(this.attributes,"handle"),u=bs(c,"label"),d=c.spacing,h=this.getHandleSize(),f=this.clampValues(),p=n==="start"?f[0]:f[1],g=a(p),m=new VZe({style:Zn(Zn(Zn({},u),this.inferTextStyle(n)),{text:g})}),v=m.getBBox(),y=v.width,b=v.height;if(m.destroy(),!l){if(o==="value")return{text:g,x:0,y:-b-d};var w=d+h+(s==="horizontal"?y/2:0);return i={text:g},i[s==="horizontal"?"x":"y"]=n==="start"?-w:w,i}var E=0,A=0,D=this.availableSpace,T=D.width,M=D.height,P=this.calcSelectionArea()[1],F=P.x,N=P.y,j=P.width,W=P.height,J=d+h;if(s==="horizontal"){var ee=J+y/2;if(n==="start"){var Q=F-J-y;E=Q>0?-ee:ee}else{var H=T-F-j-J>y;E=H?ee:-ee}}else{var q=J,le=b+J;n==="start"?A=N-h>b?-le:q:A=M-(N+W)-h>b?le:-q}return{x:E,y:A,text:g}},t.prototype.getHandleLabelStyle=function(n){var i=bs(this.attributes,"handleLabel");return Zn(Zn(Zn({},i),this.calcHandleText(n)),this.inferTextStyle(n))},t.prototype.getHandleIconStyle=function(){var n=this.attributes.handleIconShape,i=bs(this.attributes,"handleIcon"),r=this.getOrientVal(["ew-resize","ns-resize"]),o=this.getHandleSize();return Zn({cursor:r,shape:n,size:o},i)},t.prototype.getHandleStyle=function(n){var i=this.attributes,r=i.x,o=i.y,s=i.showLabel,a=i.showLabelOnInteraction,l=i.orientation,c=this.calcHandlePosition(n),u=c.x,d=c.y,h=this.calcHandleText(n),f=s;return!s&&a&&(this.target?f=!0:f=!1),Zn(Zn(Zn({},YB(this.getHandleIconStyle(),"icon")),YB(Zn(Zn({},this.getHandleLabelStyle(n)),h),"label")),{transform:"translate(".concat(u+r,", ").concat(d+o,")"),orientation:l,showLabel:f,type:n,zIndex:3})},t.prototype.getHandleSize=function(){var n=this.attributes,i=n.handleIconSize,r=n.width,o=n.height;return i||Math.floor((this.getOrientVal([+o,+r])+4)/2.4)},t.prototype.getOrientVal=function(n){var i=Et(n,2),r=i[0],o=i[1],s=this.attributes.orientation;return s==="horizontal"?r:o},t.prototype.setValuesOffset=function(n,i){i===void 0&&(i=0);var r=this.attributes.type,o=Et(this.getValues(),2),s=o[0],a=o[1],l=r==="range"?n:0,c=[s+l,a+i].sort();this.innerSetValues(c,!0)},t.prototype.getRatio=function(n){var i=this.availableSpace,r=i.width,o=i.height;return n/this.getOrientVal([r,o])},t.prototype.dispatchCustomEvent=function(n,i,r){var o=this;n.on(i,function(s){s.stopPropagation(),o.dispatchEvent(new of(r,{detail:s}))})},t.prototype.bindEvents=function(){this.addEventListener("wheel",this.onScroll);var n=this.brushArea;this.dispatchCustomEvent(n,"click","trackClick"),this.dispatchCustomEvent(n,"pointerenter","trackMouseenter"),this.dispatchCustomEvent(n,"pointerleave","trackMouseleave"),n.on("pointerdown",this.onDragStart("track"))},t.prototype.onScroll=function(n){var i=this.attributes.scrollable;if(i){var r=n.deltaX,o=n.deltaY,s=o||r,a=this.getRatio(s);this.setValuesOffset(a,a)}},t.tag="slider",t})(Sd);Wn();var HCn=on(Pi()),Vl={gridGroup:"grid-group",mainGroup:"main-group",lineGroup:"line-group",tickGroup:"tick-group",labelGroup:"label-group",titleGroup:"title-group",grid:"grid",line:"line",lineFirst:"line-first",lineSecond:"line-second",tick:"tick",tickItem:"tick-item",label:"label",labelItem:"label-item",title:"title"},KZe={data:[],animate:{enter:!1,update:{duration:100,easing:"ease-in-out-sine",fill:"both"},exit:{duration:100,fill:"both"}},showArrow:!0,showGrid:!0,showLabel:!0,showLine:!0,showTick:!0,showTitle:!0,showTrunc:!1,dataThreshold:100,lineLineWidth:1,lineStroke:"black",crossPadding:10,titleFill:"black",titleFontSize:12,titlePosition:"lb",titleSpacing:0,titleTextAlign:"center",titleTextBaseline:"middle",lineArrow:function(){return new $y({style:{d:[["M",10,10],["L",-10,0],["L",10,-10],["L",0,0],["L",10,10],["Z"]],fill:"black",transformOrigin:"center"}})},labelAlign:"parallel",labelDirection:"positive",labelFontSize:12,labelSpacing:0,gridConnect:"line",gridControlAngles:[],gridDirection:"positive",gridLength:0,gridType:"segment",lineArrowOffset:15,lineArrowSize:10,tickDirection:"positive",tickLength:5,tickLineWidth:1,tickStroke:"black",labelOverlap:[]};(0,HCn.deepMix)({},KZe,{style:{type:"arc"}});(0,HCn.deepMix)({},KZe,{style:{}});var cs=tS({mainGroup:Vl.mainGroup,gridGroup:Vl.gridGroup,grid:Vl.grid,lineGroup:Vl.lineGroup,line:Vl.line,tickGroup:Vl.tickGroup,tick:Vl.tick,tickItem:Vl.tickItem,labelGroup:Vl.labelGroup,label:Vl.label,labelItem:Vl.labelItem,titleGroup:Vl.titleGroup,title:Vl.title,lineFirst:Vl.lineFirst,lineSecond:Vl.lineSecond},"axis");Wn();var QZi=on(Pi());Wn();var Z9=tS({lineGroup:"line-group",line:"line",regionGroup:"region-group",region:"region"},"grid");function WCn(e){return e.reduce(function(t,n,i){return t.push(Hr([i===0?"M":"L"],Et(n),!1)),t},[])}function ZZi(e,t,n){var i=t.connect,r=i===void 0?"line":i,o=t.center;if(r==="line")return WCn(e);if(!o)return[];var s=aK(e[0],o),a=n?0:1;return e.reduce(function(l,c,u){return u===0?l.push(Hr(["M"],Et(c),!1)):l.push(Hr(["A",s,s,0,0,a],Et(c),!1)),l},[])}function dje(e,t,n){return t.type==="surround"?ZZi(e,t,n):WCn(e)}function XZi(e,t,n){var i=n.type,r=n.connect,o=n.center,s=n.closed,a=s?[["Z"]]:[],l=Et([dje(e,n),dje(t.slice().reverse(),n,!0)],2),c=l[0],u=l[1],d=Et([e[0],t.slice(-1)[0]],2),h=d[0],f=d[1],p=function(y,b){return[c,y,u,b,a].flat()};if(r==="line"||i==="surround")return p([Hr(["L"],Et(f),!1)],[Hr(["L"],Et(h),!1)]);if(!o)throw new Error("Arc grid need to specified center");var g=Et([aK(f,o),aK(h,o)],2),m=g[0],v=g[1];return p([Hr(["A",m,m,0,0,1],Et(f),!1),Hr(["L"],Et(f),!1)],[Hr(["A",v,v,0,0,0],Et(h),!1),Hr(["L"],Et(h),!1)])}function JZi(e,t,n,i){var r=n.animate,o=n.isBillboard,s=t.map(function(a,l){return{id:a.id||"grid-line-".concat(l),d:dje(a.points,n)}});return e.selectAll(Z9.line.class).data(s,function(a){return a.id}).join(function(a){return a.append("path").each(function(l,c){var u=q0(x2t(Zn({d:l.d},i)),[l,c,s]);this.attr(Zn({class:Z9.line.name,stroke:"#D9D9D9",lineWidth:1,lineDash:[4,4],isBillboard:o},u))})},function(a){return a.transition(function(l,c){var u=q0(x2t(Zn({d:l.d},i)),[l,c,s]);return hC(this,u,r.update)})},function(a){return a.transition(function(){var l=this,c=Z0e(this,r.exit);return Aj(c,function(){return l.remove()}),c})}).transitions()}function eXi(e,t,n){var i=n.animate,r=n.connect,o=n.areaFill;if(t.length<2||!o||!r)return[];for(var s=Array.isArray(o)?o:[o,"transparent"],a=function(p){return s[p%s.length]},l=[],c=0;c<t.length-1;c++){var u=Et([t[c].points,t[c+1].points],2),d=u[0],h=u[1],f=XZi(d,h,n);l.push({d:f,fill:a(c)})}return e.selectAll(Z9.region.class).data(l,function(p,g){return g}).join(function(p){return p.append("path").each(function(g,m){var v=q0(g,[g,m,l]);this.attr(v)}).attr("className",Z9.region.name)},function(p){return p.transition(function(g,m){var v=q0(g,[g,m,l]);return hC(this,v,i.update)})},function(p){return p.transition(function(){var g=this,m=Z0e(this,i.exit);return Aj(m,function(){return g.remove()}),m})}).transitions()}function tXi(e){var t=e.data,n=t===void 0?[]:t,i=e.closed;return i?n.map(function(r){var o=r.points,s=Et(o,1),a=s[0];return Zn(Zn({},r),{points:Hr(Hr([],Et(o),!1),[a],!1)})}):n}var nXi=(function(e){Ss(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,i){n.type,n.center,n.areaFill,n.closed;var r=ou(n,["type","center","areaFill","closed"]),o=tXi(n),s=Rr(i).maybeAppendByClassName(Z9.lineGroup,"g"),a=Rr(i).maybeAppendByClassName(Z9.regionGroup,"g"),l=JZi(s,o,n,r),c=eXi(a,o,n);return Hr(Hr([],Et(l),!1),Et(c),!1)},t})(Sd);Wn();var iXi=on(Pi());Wn();var rXi=on(Pi());function UCn(e,t){return Object.fromEntries(Object.entries(e).map(function(n){var i=Et(n,2),r=i[0],o=i[1];return[r,q0(o,t)]}))}function YZe(e,t){return t&&(0,rXi.isFunction)(t)?e.filter(t):e}function $Cn(e,t){var n=t.startAngle,i=t.endAngle;return(i-n)*e+n}function X0e(e,t){if(t.type==="linear"){var n=Et(t.startPos,2),i=n[0],r=n[1],o=Et(t.endPos,2),s=o[0],a=o[1],l=Et([s-i,a-r],2),c=l[0],u=l[1];return TCn([c,u])}var d=Q9($Cn(e,t));return[-Math.sin(d),Math.cos(d)]}function QZe(e,t,n){var i=X0e(e,n);return wQi(i,t!=="positive")}function Dj(e,t){return QZe(e,t.labelDirection,t)}function Ace(e,t,n){return n?"".concat(e," ").concat(n,"axis-").concat(t):e}function nb(e,t,n,i){return i&&e.attr("className",Ace(t.name,n,i)),e}function oXi(e,t){var n=Et(t.startPos,2),i=n[0],r=n[1],o=Et(t.endPos,2),s=o[0],a=o[1],l=Et([s-i,a-r],2),c=l[0],u=l[1];return[i+c*e,r+u*e]}function sXi(e,t){var n=t.radius,i=Et(t.center,2),r=i[0],o=i[1],s=Q9($Cn(e,t));return[r+n*Math.cos(s),o+n*Math.sin(s)]}function J0e(e,t){return t.type==="linear"?oXi(e,t):sXi(e,t)}function ZZe(e){return X0e(0,e)[1]===0}function qCn(e){return X0e(0,e)[0]===0}function GCn(e,t){return t-e===360}function q2t(e,t,n,i,r){var o=t-e,s=Et([r,r],2),a=s[0],l=s[1],c=Et([Q9(e),Q9(t)],2),u=c[0],d=c[1],h=function(P){return[n+r*Math.cos(P),i+r*Math.sin(P)]},f=Et(h(u),2),p=f[0],g=f[1],m=Et(h(d),2),v=m[0],y=m[1];if(GCn(e,t)){var b=(d+u)/2,w=Et(h(b),2),E=w[0],A=w[1];return[["M",p,g],["A",a,l,0,1,0,E,A],["A",a,l,0,1,0,v,y]]}var D=o>180?1:0,T=e>t?0:1,M=!1;return M?"M".concat(n,",").concat(i,",L").concat(p,",").concat(g,",A").concat(a,",").concat(l,",0,").concat(D,",").concat(T,",").concat(v,",").concat(y,",L").concat(n,",").concat(i):"M".concat(p,",").concat(g,",A").concat(a,",").concat(l,",0,").concat(D,",").concat(T,",").concat(v,",").concat(y)}function aXi(e){var t=e.attributes,n=t.startAngle,i=t.endAngle,r=t.center,o=t.radius;return Hr(Hr([n,i],Et(r),!1),[o],!1)}function lXi(e,t,n,i){var r=t.startAngle,o=t.endAngle,s=t.center,a=t.radius,l=t.classNamePrefix;return e.selectAll(cs.line.class).data([{d:q2t.apply(void 0,Hr(Hr([r,o],Et(s),!1),[a],!1))}],function(c,u){return u}).join(function(c){var u=c.append("path").attr("className",cs.line.name).styles(t).styles({d:function(d){return d.d}});return nb(u,cs.line,Vl.line,l),u},function(c){return c.transition(function(){var u=this,d=_Qi(this,aXi(this),Hr(Hr([r,o],Et(s),!1),[a],!1),i.update);if(d){var h=function(){var f=(0,iXi.get)(u.attributes,"__keyframe_data__");u.style.d=q2t.apply(void 0,Hr([],Et(f),!1))};d.onframe=h,d.onfinish=h}return d}).styles(t)},function(c){return c.remove()}).styles(n).transitions()}function cXi(e,t){t.truncRange,t.truncShape,t.lineExtension}function uXi(e,t,n){n===void 0&&(n=[0,0]);var i=Et([e,t,n],3),r=Et(i[0],2),o=r[0],s=r[1],a=Et(i[1],2),l=a[0],c=a[1],u=Et(i[2],2),d=u[0],h=u[1],f=Et([l-o,c-s],2),p=f[0],g=f[1],m=Math.sqrt(Math.pow(p,2)+Math.pow(g,2)),v=Et([-d/m,h/m],2),y=v[0],b=v[1];return[y*p,y*g,b*p,b*g]}function G2t(e){var t=Et(e,2),n=Et(t[0],2),i=n[0],r=n[1],o=Et(t[1],2),s=o[0],a=o[1];return{x1:i,y1:r,x2:s,y2:a}}function dXi(e,t,n,i){var r=t.showTrunc,o=t.startPos,s=t.endPos,a=t.truncRange,l=t.lineExtension,c=t.classNamePrefix,u=Et([o,s],2),d=Et(u[0],2),h=d[0],f=d[1],p=Et(u[1],2),g=p[0],m=p[1],v=Et(l?uXi(o,s,l):new Array(4).fill(0),4),y=v[0],b=v[1],w=v[2],E=v[3],A=function(q){return e.selectAll(cs.line.class).data(q,function(le,Y){return Y}).join(function(le){var Y=le.append("line").styles(n).transition(function(G){return hC(this,G2t(G.line),!1)});return Y.attr("className",function(G){if(!c)return"".concat(cs.line.name," ").concat(G.className);var pe=Ace(cs.line.name,Vl.line,c);if(G.className===cs.lineFirst.name){var U=Ace(cs.lineFirst.name,Vl.lineFirst,c);return"".concat(pe," ").concat(U)}if(G.className===cs.lineSecond.name){var U=Ace(cs.lineSecond.name,Vl.lineSecond,c);return"".concat(pe," ").concat(U)}return pe}),Y},function(le){return le.styles(n).transition(function(Y){var G=Y.line;return hC(this,G2t(G),i.update)})},function(le){return le.remove()}).transitions()};if(!r||!a)return A([{line:[[h+y,f+b],[g+w,m+E]],className:cs.line.name}]);var D=Et(a,2),T=D[0],M=D[1],P=g-h,F=m-f,N=Et([h+P*T,f+F*T],2),j=N[0],W=N[1],J=Et([h+P*M,f+F*M],2),ee=J[0],Q=J[1],H=A([{line:[[h+y,f+b],[j,W]],className:cs.lineFirst.name},{line:[[ee,Q],[g+w,m+E]],className:cs.lineSecond.name}]);return cXi(e,t),H}function hXi(e,t,n,i){var r=n.showArrow,o=n.showTrunc,s=n.lineArrow,a=n.lineArrowOffset,l=n.lineArrowSize,c;if(t==="arc"?c=e.select(cs.line.class):o?c=e.select(cs.lineSecond.class):c=e.select(cs.line.class),!r||!s||n.type==="arc"&&GCn(n.startAngle,n.endAngle)){var u=c.node();u&&(u.style.markerEnd=void 0);return}var d=nT(s);d.attr(i),WZe(d,l),c.style("markerEnd",d).style("markerEndOffset",-a)}function fXi(e,t,n){var i=t.type,r,o=bs(t,"line");return i==="linear"?r=dXi(e,t,S2t(o,"arrow"),n):r=lXi(e,t,S2t(o,"arrow"),n),hXi(e,i,t,o),r}function pXi(e,t){return QZe(e,t.gridDirection,t)}function KCn(e){var t=e.type,n=e.gridCenter;return t==="linear"?n:n||e.center}function gXi(e,t){var n=t.gridLength;return e.map(function(i,r){var o=i.value,s=Et(J0e(o,t),2),a=s[0],l=s[1],c=Et(oD(pXi(o,t),n),2),u=c[0],d=c[1];return{id:r,points:[[a,l],[a+u,l+d]]}})}function mXi(e,t){var n=t.gridControlAngles,i=KCn(t);if(!i)throw new Error("grid center is not provide");if(e.length<2)throw new Error("Invalid grid data");if(!n||n.length===0)throw new Error("Invalid gridControlAngles");var r=Et(i,2),o=r[0],s=r[1];return e.map(function(a,l){var c=a.value,u=Et(J0e(c,t),2),d=u[0],h=u[1],f=Et([d-o,h-s],2),p=f[0],g=f[1],m=[];return n.forEach(function(v){var y=Q9(v),b=Et([Math.cos(y),Math.sin(y)],2),w=b[0],E=b[1],A=p*w-g*E+o,D=p*E+g*w+s;m.push([A,D])}),{points:m,id:l}})}function vXi(e,t,n,i){var r=n.classNamePrefix,o=bs(n,"grid"),s=o.type,a=o.areaFill,l=KCn(n),c=YZe(t,n.gridFilter),u=s==="segment"?gXi(c,n):mXi(c,n),d=Zn(Zn({},o),{center:l,areaFill:(0,QZi.isFunction)(a)?c.map(function(h,f){return q0(a,[h,f,c])}):a,animate:i,data:u});return e.selectAll(cs.grid.class).data([1]).join(function(h){var f=h.append(function(){return new nXi({style:d})}).attr("className",cs.grid.name);return nb(f,cs.grid,Vl.grid,r),f},function(h){return h.transition(function(){return this.update(d)})},function(h){return h.remove()}).transitions()}Wn();var Dce=on(Pi());Wn();var YCn=on(Pi());Wn();Wn();var hje=(function(){function e(t,n,i,r){this.set(t,n,i,r)}return Object.defineProperty(e.prototype,"left",{get:function(){return this.x1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.y1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.x2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.y2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.defined("x2")&&this.defined("x1")?this.x2-this.x1:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.defined("y2")&&this.defined("y1")?this.y2-this.y1:void 0},enumerable:!1,configurable:!0}),e.prototype.rotatedPoints=function(t,n,i){var r=this,o=r.x1,s=r.y1,a=r.x2,l=r.y2,c=Math.cos(t),u=Math.sin(t),d=n-n*c+i*u,h=i-n*u-i*c,f=[[c*o-u*l+d,u*o+c*l+h],[c*a-u*l+d,u*a+c*l+h],[c*o-u*s+d,u*o+c*s+h],[c*a-u*s+d,u*a+c*s+h]];return f},e.prototype.set=function(t,n,i,r){return i<t?(this.x2=t,this.x1=i):(this.x1=t,this.x2=i),r<n?(this.y2=n,this.y1=r):(this.y1=n,this.y2=r),this},e.prototype.defined=function(t){return this[t]!==Number.MAX_VALUE&&this[t]!==-Number.MAX_VALUE},e})();function fje(e,t){var n=e.getEulerAngles()||0;e.setEulerAngles(0);var i=e.getBounds(),r=Et(i.min,2),o=r[0],s=r[1],a=Et(i.max,2),l=a[0],c=a[1],u=e.getBBox(),d=u.width,h=u.height,f=h,p=0,g=0,m=o,v=s,y=ACn(e);if(y){f-=1.5;var b=y.style.textAlign,w=y.style.textBaseline;b==="center"?m=(o+l)/2:(b==="right"||b==="end")&&(m=l),w==="middle"?v=(s+c)/2:w==="bottom"&&(v=c)}var E=Et(yg(t),4),A=E[0],D=A===void 0?0:A,T=E[1],M=T===void 0?0:T,P=E[2],F=P===void 0?D:P,N=E[3],j=N===void 0?M:N,W=new hje((p+=o)-j,(g+=s)-D,p+d+M,g+f+F);return e.setEulerAngles(n),W.rotatedPoints(Q9(n),m,v)}function cU(e,t){return t[0]<=Math.max(e[0][0],e[1][0])&&t[0]<=Math.min(e[0][0],e[1][0])&&t[1]<=Math.max(e[0][1],e[1][1])&&t[1]<=Math.min(e[0][1],e[1][1])}function uU(e,t,n){var i=(t[1]-e[1])*(n[0]-t[0])-(t[0]-e[0])*(n[1]-t[1]);return i===0?0:i<0?2:1}function yXi(e,t){var n=uU(e[0],e[1],t[0]),i=uU(e[0],e[1],t[1]),r=uU(t[0],t[1],e[0]),o=uU(t[0],t[1],e[1]);return!!(n!==i&&r!==o||n===0&&cU(e,t[0])||i===0&&cU(e,t[1])||r===0&&cU(t,e[0])||o===0&&cU(t,e[1]))}function bXi(e,t){var n=e.length;if(n<3)return!1;var i=[t,[9999,t[1]]],r=0,o=0;do{var s=[e[o],e[(o+1)%n]];if(yXi(s,i)){if(uU(s[0],t,s[1])===0)return cU(s,t);r++}o=(o+1)%n}while(o!==0);return!!(r&1)}function _Xi(e,t){return t.every(function(n){return bXi(e,n)})}function wXi(e,t,n){var i=e.x1,r=e.x2,o=e.y1,s=e.y2,a=[[i,o],[r,o],[r,s],[i,s]],l=fje(t,n);return _Xi(a,l)}Wn();function CXi(e,t){var n=Et(e,4),i=n[0],r=n[1],o=n[2],s=n[3],a=Et(t,4),l=a[0],c=a[1],u=a[2],d=a[3],h=o-i,f=s-r,p=u-l,g=d-c,m=h*g-p*f;if(m===0)return!1;var v=m>0,y=i-l,b=r-c,w=h*b-f*y;if(w<0===v)return!1;var E=p*b-g*y;return!(E<0===v||w>m===v||E>m===v)}function SXi(e,t){var n=[[e[0],e[1],e[2],e[3]],[e[2],e[3],e[4],e[5]],[e[4],e[5],e[6],e[7]],[e[6],e[7],e[0],e[1]]];return n.some(function(i){return CXi(t,i)})}function xXi(e,t,n){var i,r,o=fje(e,n).flat(1),s=fje(t,n).flat(1),a=[[o[0],o[1],o[2],o[3]],[o[0],o[1],o[4],o[5]],[o[4],o[5],o[6],o[7]],[o[2],o[3],o[6],o[7]]];try{for(var l=PD(a),c=l.next();!c.done;c=l.next()){var u=c.value;if(SXi(s,u))return!0}}catch(d){i={error:d}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}return!1}function EXi(e,t){var n=e.type,i=e.labelDirection,r=e.crossSize;if(!r)return!1;if(n==="arc"){var o=e.center,s=e.radius,a=Et(o,2),l=a[0],c=a[1],u=i==="negative"?0:r,d=-s-u,h=s+u,f=Et(yg(t),4),p=f[0],g=f[1],m=f[2],v=f[3];return new hje(l+d-v,c+d-p,l+h+g,c+h+m)}var y=Et(e.startPos,2),b=y[0],w=y[1],E=Et(e.endPos,2),A=E[0],D=E[1],T=Et(qCn(e)?[-t,0,t,0]:[0,t,0,-t],4),M=T[0],P=T[1],F=T[2],N=T[3],j=Dj(0,e),W=oD(j,r),J=new hje(b,w,A,D);return J.x1+=N,J.y1+=M,J.x2+=P+W[0],J.y2+=F+W[1],J}function eye(e,t,n){var i,r,o=t.crossPadding,s=new Set,a=null,l=EXi(t,o),c=function(p){return l?wXi(l,p):!0},u=function(p,g){return!p||!p.firstChild?!0:!xXi(p.firstChild,g.firstChild,yg(n))};try{for(var d=PD(e),h=d.next();!h.done;h=d.next()){var f=h.value;c(f)?!a||u(a,f)?a=f:(s.add(a),s.add(f)):s.add(f)}}catch(p){i={error:p}}finally{try{h&&!h.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}return Array.from(s)}function GMe(e,t){return t===void 0&&(t={}),(0,YCn.isNil)(e)?0:typeof e=="number"?e:Math.floor(fQi(e,t))}function AXi(e,t,n,i){if(!(e.length<=0)){var r=t.suffix,o=r===void 0?"...":r,s=t.minLength,a=t.maxLength,l=a===void 0?1/0:a,c=t.step,u=c===void 0?" ":c,d=t.margin,h=d===void 0?[0,0,0,0]:d,f=ECn(i.getTextShape(e[0])),p=GMe(u,f),g=s?GMe(s,f):p,m=GMe(l,f);((0,YCn.isNil)(m)||m===1/0)&&(m=Math.max.apply(null,e.map(function(A){return A.getBBox().width})));var v=e.slice(),y=Et(h,4);y[0],y[1],y[2],y[3];for(var b=function(A){if(v.forEach(function(D){i.ellipsis(i.getTextShape(D),A,o)}),v=eye(e,n,h),v.length<1)return{value:void 0}},w=m;w>g+p;w-=p){var E=b(w);if(typeof E=="object")return E.value}}}Wn();var DXi={parity:function(e,t){var n=t.seq,i=n===void 0?2:n;return e.filter(function(r,o){return o%i?(eC(r),!1):!0})}},TXi=function(e){return e.filter(dQi)};function kXi(e,t,n,i){var r=e.length,o=t.keepHeader,s=t.keepTail;if(!(r<=1||r===2&&o&&s)){var a=DXi.parity,l=function(b){return b.forEach(i.show),b},c=2,u=e.slice(),d=e.slice(),h=Math.min.apply(Math,Hr([1],Et(e.map(function(b){return b.getBBox().width})),!1));if(n.type==="linear"&&(ZZe(n)||qCn(n))){var f=A2t(e[0]).left,p=A2t(e[r-1]).right,g=Math.abs(p-f)||1;c=Math.max(Math.floor(r*h/g),c)}var m,v;for(o&&(m=u.splice(0,1)[0]),s&&(v=u.splice(-1,1)[0],u.reverse()),l(u);c<e.length&&eye(TXi(v?Hr(Hr([v],Et(d),!1),[m],!1):Hr([m],Et(d),!1)),n,t?.margin).length;){if(v&&!m&&c%2===0){var y=u.splice(0,1);y.forEach(i.hide)}else if(v&&m){var y=u.splice(0,1);y.forEach(i.hide)}d=a(l(u),{seq:c}),c++}}}Wn();function IXi(e,t,n,i){var r,o,s=t.optionalAngles,a=s===void 0?[0,45,90]:s,l=t.margin,c=t.recoverWhenFailed,u=c===void 0?!0:c,d=e.map(function(v){return v.getLocalEulerAngles()}),h=function(){return eye(e,n,l).length<1},f=function(v){return e.forEach(function(y,b){var w=Array.isArray(v)?v[b]:v;i.rotate(y,+w)})};try{for(var p=PD(a),g=p.next();!g.done;g=p.next()){var m=g.value;if(f(m),h())return}}catch(v){r={error:v}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}u&&f(d)}Wn();function LXi(e){var t=e.type,n=e.labelDirection;return t==="linear"&&ZZe(e)?n==="negative"?"bottom":"top":"middle"}function NXi(e,t,n,i,r){var o,s=t.maxLines,a=s===void 0?3:s,l=t.recoverWhenFailed,c=l===void 0?!0:l,u=t.margin,d=u===void 0?[0,0,0,0]:u,h=q0((o=t.wordWrapWidth)!==null&&o!==void 0?o:50,[r]),f=e.map(function(b){return b.attr("maxLines")||1}),p=Math.min.apply(Math,Hr([],Et(f),!1)),g=function(){return eye(e,n,d).length<1},m=LXi(n),v=function(b){return e.forEach(function(w,E){var A=Array.isArray(b)?b[E]:b;i.wrap(w,h,A,m)})};if(!(p>a)){if(n.type==="linear"&&ZZe(n)){if(v(a),g())return}else for(var y=p;y<=a;y++)if(v(y),g())return;c&&v(f)}}var PXi=new Map([["hide",kXi],["rotate",IXi],["ellipsis",AXi],["wrap",NXi]]);function MXi(e,t,n){return t.labelOverlap.length<1?!1:n==="hide"?!lQi(e[0]):n==="rotate"?!e.some(function(i){var r;return!!(!((r=i.attr("transform"))===null||r===void 0)&&r.includes("rotate"))}):n==="ellipsis"||n==="wrap"?e.filter(function(i){return i.querySelector("text")}).length>=1:!0}function OXi(e,t,n,i){var r=t.labelOverlap,o=r===void 0?[]:r;o.length&&o.forEach(function(s){var a=s.type,l=PXi.get(a);MXi(e,t,a)&&l?.(e,s,t,i,n)})}function RXi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=function(i){return i==="positive"?-1:1};return e.reduce(function(i,r){return i*n(r)},1)}function K2t(e){for(var t=e;t<0;)t+=360;return Math.round(t%360)}function pje(e,t){var n=Et(e,2),i=n[0],r=n[1],o=Et(t,2),s=o[0],a=o[1],l=Et([i*s+r*a,i*a-r*s],2),c=l[0],u=l[1];return Math.atan2(u,c)}function FXi(e){var t=(e+360)%180;return Gp(t,-90,90)||(t+=180),t}function BXi(e,t,n){var i,r=n.labelAlign,o=(i=t.style.transform)===null||i===void 0?void 0:i.includes("rotate");if(o)return t.getLocalEulerAngles();var s=0,a=Dj(e.value,n),l=X0e(e.value,n);return r==="horizontal"?0:(r==="perpendicular"?s=pje([1,0],a):s=pje([l[0]<0?-1:1,0],l),FXi(SCn(s)))}function QCn(e,t,n){var i=n.type,r=n.labelAlign,o=Dj(e,n),s=K2t(t),a=K2t(SCn(pje([1,0],o))),l="center",c="middle";return i==="linear"?[90,270].includes(a)&&s===0?(l="center",c=o[1]===1?"top":"bottom"):!(a%180)&&[90,270].includes(s)?l="center":a===0?(Gp(s,0,90,!1,!0)||Gp(s,0,90)||Gp(s,270,360))&&(l="start"):a===90?Gp(s,0,90,!1,!0)?l="start":(Gp(s,90,180)||Gp(s,270,360))&&(l="end"):a===270?Gp(s,0,90,!1,!0)?l="end":(Gp(s,90,180)||Gp(s,270,360))&&(l="start"):a===180&&(s===90?l="start":(Gp(s,0,90)||Gp(s,270,360))&&(l="end")):r==="parallel"?Gp(a,0,180,!0)?c="top":c="bottom":r==="horizontal"?Gp(a,90,270,!1)?l="end":(Gp(a,270,360,!1)||Gp(a,0,90))&&(l="start"):r==="perpendicular"&&(Gp(a,90,270)?l="end":l="start"),{textAlign:l,textBaseline:c}}function jXi(e,t,n){t.setLocalEulerAngles(e);var i=t.__data__.value,r=QCn(i,e,n),o=t.querySelector(cs.labelItem.class);o&&ZCn(o,r)}function Y2t(e,t,n){var i=n.showTick,r=n.tickLength,o=n.tickDirection,s=n.labelDirection,a=n.labelSpacing,l=t.indexOf(e),c=q0(a,[e,l,t]),u=Et([Dj(e.value,n),RXi(s,o)],2),d=u[0],h=u[1],f=h===1?q0(i?r:0,[e,l,t]):0,p=Et(lU(oD(d,c+f),J0e(e.value,n)),2),g=p[0],m=p[1];return{x:g,y:m}}function zXi(e,t,n,i){var r=i.labelFormatter,o=(0,Dce.isFunction)(r)?function(){return nT(q0(r,[e,t,n,Dj(e.value,i)]))}:function(){return nT(e.label||"")};return o}function VXi(e,t,n,i){var r=i.labelRender,o=((0,Dce.get)(i,"endPos.0",400)-(0,Dce.get)(i,"startPos.0",0))/n.length,s=(0,Dce.isFunction)(r)?q0(r,[e,t,n,Dj(e.value,i)]):e.label||"",a=jQi(s)||30;return function(){return gQi(s,{width:o,height:a})}}function ZCn(e,t){["text","html"].includes(e.nodeName)&&e.attr(t)}function HXi(e,t){OXi(this.node().childNodes,e,t,{hide:eC,show:aZ,rotate:function(n,i){jXi(+i,n,e)},ellipsis:function(n,i,r){n&&cje(n,i||1/0,r)},wrap:function(n,i,r){n&&pQi(n,i,r)},getTextShape:function(n){return n.querySelector(cs.labelItem.class)}})}function Q2t(e,t,n,i,r){var o=n.indexOf(t),s=r.labelRender,a=r.classNamePrefix,l=Rr(e).append(s?VXi(t,o,n,r):zXi(t,o,n,r)).attr("className",cs.labelItem.name).node();nb(Rr(l),cs.labelItem,Vl.labelItem,a);var c=Et(iT(UCn(i,[t,o,n])),2),u=c[0],d=c[1],h=d.transform,f=ou(d,["transform"]);kCn(l,h);var p=BXi(t,l,r);return l.getLocalEulerAngles()||l.setLocalEulerAngles(p),ZCn(l,Zn(Zn({},QCn(t.value,p,r)),u)),e.attr(f),l}function WXi(e,t,n,i,r){var o=n.classNamePrefix,s=YZe(t,n.labelFilter),a=bs(n,"label"),l,c=e.selectAll(cs.label.class).data(s,function(u,d){return d}).join(function(u){var d=u.append("g").attr("className",cs.label.name).transition(function(h){Q2t(this,h,t,a,n);var f=Y2t(h,t,n),p=f.x,g=f.y;return this.style.transform="translate(".concat(p,", ").concat(g,")"),null});return nb(d,cs.label,Vl.label,o),d},function(u){return u.transition(function(d){var h=this.querySelector(cs.labelItem.class),f=Q2t(this,d,t,a,n),p=qZi(h,f,i.update),g=Y2t(d,t,n),m=g.x,v=g.y,y=hC(this,{transform:"translate(".concat(m,", ").concat(v,")")},i.update);return Hr(Hr([],Et(p),!1),[y],!1)})},function(u){return l=u,u.transition(function(){var d=this,h=Z0e(this.childNodes[0],i.exit);return Aj(h,function(){return Rr(d).remove()}),h}),l}).transitions();return UZi(c,function(){HXi.call(e,n,r)}),c}Wn();var UXi=on(Pi());function XCn(e,t){return QZe(e,t.tickDirection,t)}function $Xi(e,t){var n=Et(e,2),i=n[0],r=n[1];return[[0,0],[i*t,r*t]]}function qXi(e,t,n,i,r){var o=r.tickLength,s=Et($Xi(i,q0(o,[e,t,n])),2),a=Et(s[0],2),l=a[0],c=a[1],u=Et(s[1],2),d=u[0],h=u[1];return{x1:l,x2:d,y1:c,y2:h}}function GXi(e,t,n,i,r){var o=r.tickFormatter,s=r.classNamePrefix,a=XCn(t.value,r),l="line";(0,UXi.isFunction)(o)&&(l=function(){return q0(o,[t,n,i,a])});var c=e.append(l).attr("className",cs.tickItem.name);return nb(c,cs.tickItem,Vl.tickItem,s),c}function KXi(e,t,n,i,r,o,s){var a=XCn(e.value,o),l=qXi(e,t,n,a,o),c=l.x1,u=l.x2,d=l.y1,h=l.y2,f=Et(iT(UCn(s,[e,t,n,a])),2),p=f[0],g=f[1];i.node().nodeName==="line"&&i.styles(Zn({x1:c,x2:u,y1:d,y2:h},p)),r.attr(g),i.styles(p)}function Z2t(e,t,n,i,r,o){var s=GXi(Rr(this),e,t,n,i);KXi(e,t,n,s,this,i,r);var a=Et(J0e(e.value,i),2),l=a[0],c=a[1];return hC(this,{transform:"translate(".concat(l,", ").concat(c,")")},o)}function YXi(e,t,n,i){var r=n.classNamePrefix,o=YZe(t,n.tickFilter),s=bs(n,"tick");return e.selectAll(cs.tick.class).data(o,function(a){return a.id||a.label}).join(function(a){var l=a.append("g").attr("className",cs.tick.name).transition(function(c,u){return Z2t.call(this,c,u,o,n,s,!1)});return nb(l,cs.tick,Vl.tick,r),l},function(a){return a.transition(function(l,c){return this.removeChildren(),Z2t.call(this,l,c,o,n,s,i.update)})},function(a){return a.transition(function(){var l=this,c=Z0e(this.childNodes[0],i.exit);return Aj(c,function(){return l.remove()}),c})}).transitions()}Wn();function QXi(e,t,n){var i=n.titlePosition,r=i===void 0?"lb":i,o=n.titleSpacing,s=Q0e(r),a=e.node().getLocalBounds(),l=Et(a.min,2),c=l[0],u=l[1],d=Et(a.halfExtents,2),h=d[0],f=d[1],p=Et(t.node().getLocalBounds().halfExtents,2),g=p[0],m=p[1],v=Et([c+h,u+f],2),y=v[0],b=v[1],w=Et(yg(o),4),E=w[0],A=w[1],D=w[2],T=w[3];if(["start","end"].includes(r)&&n.type==="linear"){var M=n.startPos,P=n.endPos,F=Et(r==="start"?[M,P]:[P,M],2),N=F[0],j=F[1],W=TCn([-j[0]+N[0],-j[1]+N[1]]),J=Et(oD(W,E),2),ee=J[0],Q=J[1];return{x:N[0]+ee,y:N[1]+Q}}return s.includes("t")&&(b-=f+m+E),s.includes("r")&&(y+=h+g+A),s.includes("l")&&(y-=h+g+T),s.includes("b")&&(b+=f+m+D),{x:y,y:b}}function ZXi(e,t,n){var i=e.getGeometryBounds().halfExtents,r=i[1]*2;if(t==="vertical"){if(n==="left")return"rotate(-90) translate(0, ".concat(r/2,")");if(n==="right")return"rotate(-90) translate(0, -".concat(r/2,")")}return""}function X2t(e,t,n,i,r){var o=bs(i,"title"),s=Et(iT(o),2),a=s[0],l=s[1],c=l.transform,u=l.transformOrigin,d=ou(l,["transform","transformOrigin"]);t.styles(d);var h=c||ZXi(e.node(),a.direction,a.position);e.styles(Zn(Zn({},a),{transformOrigin:u})),kCn(e.node(),h);var f=QXi(Rr(n._offscreen||n.querySelector(cs.mainGroup.class)),t,i),p=f.x,g=f.y,m=hC(t.node(),{transform:"translate(".concat(p,", ").concat(g,")")},r);return m}function XXi(e,t,n,i){var r=n.titleText,o=n.classNamePrefix;return e.selectAll(cs.title.class).data([{title:r}].filter(function(s){return!!s.title}),function(s,a){return s.title}).join(function(s){var a=s.append(function(){return nT(r)}).attr("className",cs.title.name).transition(function(){return X2t(Rr(this),e,t,n,i.enter)});return nb(a,cs.title,Vl.title,o),a},function(s){return s.transition(function(){return X2t(Rr(this),e,t,n,i.update)})},function(s){return s.remove()}).transitions()}function J2t(e,t,n,i){var r=e.showLine,o=e.showTick,s=e.showLabel,a=e.classNamePrefix,l=t.maybeAppendByClassName(cs.lineGroup,"g");nb(l,cs.lineGroup,Vl.lineGroup,a);var c=R0(r,l,function(p){return fXi(p,e,i)})||[],u=t.maybeAppendByClassName(cs.tickGroup,"g");nb(u,cs.tickGroup,Vl.tickGroup,a);var d=R0(o,u,function(p){return YXi(p,n,e,i)})||[],h=t.maybeAppendByClassName(cs.labelGroup,"g");nb(h,cs.labelGroup,Vl.labelGroup,a);var f=R0(s,h,function(p){return WXi(p,n,e,i,t.node())})||[];return Hr(Hr(Hr([],Et(c),!1),Et(d),!1),Et(f),!1).filter(function(p){return!!p})}var JXi=(function(e){Ss(t,e);function t(n){return e.call(this,n,KZe)||this}return t.prototype.render=function(n,i,r){var o=this,s=n.titleText,a=n.data,l=n.animate,c=n.showTitle,u=n.showGrid,d=n.dataThreshold,h=n.truncRange,f=n.classNamePrefix,p=i.className||"axis";f?i.attr("className","".concat(p," ").concat(f,"axis")):i.className||i.attr("className","axis");var g=AQi(a,d).filter(function(D){var T=D.value;return!(h&&T>h[0]&&T<h[1])}),m=$2t(r===void 0?l:r),v=Rr(i).maybeAppendByClassName(cs.gridGroup,"g");nb(v,cs.gridGroup,Vl.gridGroup,f);var y=R0(u,v,function(D){return vXi(D,g,n,m)})||[],b=Rr(i).maybeAppendByClassName(cs.mainGroup,"g");nb(b,cs.mainGroup,Vl.mainGroup,f),s&&(!this.initialized&&m.enter||this.initialized&&m.update)&&J2t(n,Rr(this.offscreenGroup),g,$2t(!1));var w=J2t(n,Rr(b.node()),g,m),E=Rr(i).maybeAppendByClassName(cs.titleGroup,"g");nb(E,cs.titleGroup,Vl.titleGroup,f);var A=R0(c,E,function(D){return XXi(D,o,n,m)})||[];return Hr(Hr(Hr([],Et(y),!1),Et(w),!1),Et(A),!1).flat().filter(function(D){return!!D})},t})(Sd);Wn();Wn();function rv(e,t,n){return n?"".concat(e," ").concat(n,"legend-").concat(t):e}Wn();function eJi(e,t,n){var i=1.4,r=i*n;return[["M",e-n,t-r],["L",e+n,t-r],["L",e+n,t+r],["L",e-n,t+r],["Z"]]}var JCn=1.4,eSn=.4;function tJi(e,t,n){var i=n,r=i*JCn,o=i/2,s=i/6,a=e+r*eSn;return[["M",e,t],["L",a,t+o],["L",e+r,t+o],["L",e+r,t-o],["L",a,t-o],["Z"],["M",a,t+s],["L",e+r-2,t+s],["M",a,t-s],["L",e+r-2,t-s]]}function nJi(e,t,n){var i=n,r=i*JCn,o=i/2,s=i/6,a=t+r*eSn;return[["M",e,t],["L",e-o,a],["L",e-o,t+r],["L",e+o,t+r],["L",e+o,a],["Z"],["M",e-s,a],["L",e-s,t+r-2],["M",e+s,a],["L",e+s,t+r-2]]}Ul.registerSymbol("hiddenHandle",eJi);Ul.registerSymbol("verticalHandle",tJi);Ul.registerSymbol("horizontalHandle",nJi);function gje(e,t,n){return e===void 0&&(e="horizontal"),e==="horizontal"?t:n}var ov={title:"title",item:"item",marker:"marker",label:"label",value:"value",focusIcon:"focus-icon",background:"background",handleMarker:"handle-marker",handleLabel:"handle-label",prevBtn:"prev-btn",nextBtn:"next-btn",pageInfo:"page-info"},jM=tS({markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label"},"handle"),tSn={showLabel:!0,formatter:function(e){return e.toString()},markerSize:25,markerStroke:"#c5c5c5",markerFill:"#fff",markerLineWidth:1,labelFontSize:12,labelFill:"#c5c5c5",labelText:"",orientation:"vertical",spacing:0};(function(e){Ss(t,e);function t(n){return e.call(this,n,tSn)||this}return t.prototype.render=function(n,i){var r=Rr(i).maybeAppendByClassName(jM.markerGroup,"g");this.renderMarker(r);var o=Rr(i).maybeAppendByClassName(jM.labelGroup,"g");this.renderLabel(o)},t.prototype.renderMarker=function(n){var i=this,r=this.attributes,o=r.orientation,s=r.classNamePrefix,a=r.markerSymbol,l=a===void 0?gje(o,"horizontalHandle","verticalHandle"):a;R0(!!l,n,function(c){var u=bs(i.attributes,"marker"),d=Zn({symbol:l},u),h=rv(jM.marker.name,ov.handleMarker,s);if(i.marker=c.maybeAppendByClassName(jM.marker,function(){return new Ul({style:d,className:h})}).update(d),s){var f=i.marker.node().querySelector(".marker");if(f){var p=f.getAttribute("class")||"",g=p.split(" ")[0],m=rv(g,ov.handleMarker,s);f.setAttribute("class",m)}}})},t.prototype.renderLabel=function(n){var i=this,r=this.attributes,o=r.showLabel,s=r.orientation,a=r.spacing,l=a===void 0?0:a,c=r.formatter,u=r.classNamePrefix;R0(o,n,function(d){var h,f=bs(i.attributes,"label"),p=f.text,g=ou(f,["text"]),m=((h=d.select(jM.marker.class))===null||h===void 0?void 0:h.node().getBBox())||{},v=m.width,y=v===void 0?0:v,b=m.height,w=b===void 0?0:b,E=Et(gje(s,[0,w+l,"center","top"],[y+l,0,"start","middle"]),4),A=E[0],D=E[1],T=E[2],M=E[3],P=rv(jM.label.name,ov.handleLabel,u);d.maybeAppendByClassName(jM.label,"text").attr("className",P).styles(Zn(Zn({},g),{x:A,y:D,text:c(p).toString(),textAlign:T,textBaseline:M}))})},t})(Sd);var nSn={showTitle:!0,padding:0,orientation:"horizontal",backgroundFill:"transparent",titleText:"",titleSpacing:4,titlePosition:"top-left",titleFill:"#2C3542",titleFontWeight:"bold",titleFontFamily:"sans-serif",titleFontSize:12},iJi=ff({},nSn,{});ff({},nSn,YB(tSn,"handle"),{color:["#d0e3fa","#acc7f6","#8daaf2","#6d8eea","#4d73cd","#325bb1","#5a3e75","#8c3c79","#e23455","#e7655b"],indicatorBackgroundFill:"#262626",indicatorLabelFill:"white",indicatorLabelFontSize:12,indicatorVisibility:"hidden",labelAlign:"value",labelDirection:"positive",labelSpacing:5,showHandle:!0,showIndicator:!0,showLabel:!0,slidable:!0,titleText:"",type:"continuous"});var zM=tS({title:"title",html:"html",titleGroup:"title-group",items:"items",itemsGroup:"items-group",contentGroup:"content-group",ribbonGroup:"ribbon-group",ribbon:"ribbon",handlesGroup:"handles-group",handle:"handle",startHandle:"start-handle",endHandle:"end-handle",labelGroup:"label-group",label:"label",indicator:"indicator"},"legend"),KMe=tS({text:"text"},"title");function rJi(e,t){var n=e.attributes,i=n.position,r=n.spacing,o=n.inset,s=n.text,a=e.getBBox(),l=t.getBBox(),c=Q0e(i),u=Et(yg(s?r:0),4),d=u[0],h=u[1],f=u[2],p=u[3],g=Et(yg(o),4),m=g[0],v=g[1],y=g[2],b=g[3],w=Et([p+h,d+f],2),E=w[0],A=w[1],D=Et([b+v,m+y],2),T=D[0],M=D[1];if(c[0]==="l")return new wv(a.x,a.y,l.width+a.width+E+T,Math.max(l.height+M,a.height));if(c[0]==="t")return new wv(a.x,a.y,Math.max(l.width+T,a.width),l.height+a.height+A+M);var P=Et([t.attributes.width||l.width,t.attributes.height||l.height],2),F=P[0],N=P[1];return new wv(l.x,l.y,F+a.width+E+T,N+a.height+A+M)}function oJi(e,t){var n=Object.entries(t).reduce(function(i,r){var o=Et(r,2),s=o[0],a=o[1],l=e.node().attr(s);return l||(i[s]=a),i},{});e.styles(n)}function sJi(e){var t,n,i,r,o=e,s=o.width,a=o.height,l=o.position,c=Et([+s/2,+a/2],2),u=c[0],d=c[1],h=Et([+u,+d,"center","middle"],4),f=h[0],p=h[1],g=h[2],m=h[3],v=Q0e(l);return v.includes("l")&&(t=Et([0,"start"],2),f=t[0],g=t[1]),v.includes("r")&&(n=Et([+s,"end"],2),f=n[0],g=n[1]),v.includes("t")&&(i=Et([0,"top"],2),p=i[0],m=i[1]),v.includes("b")&&(r=Et([+a,"bottom"],2),p=r[0],m=r[1]),{x:f,y:p,textAlign:g,textBaseline:m}}var aJi=(function(e){Ss(t,e);function t(n){return e.call(this,n,{text:"",width:0,height:0,fill:"#4a505a",fontWeight:"bold",fontSize:12,fontFamily:"sans-serif",inset:0,spacing:0,position:"top-left"})||this}return t.prototype.getAvailableSpace=function(){var n=this,i=this.attributes,r=i.width,o=i.height,s=i.position,a=i.spacing,l=i.inset,c=n.querySelector(KMe.text.class);if(!c)return new wv(0,0,+r,+o);var u=c.getBBox(),d=u.width,h=u.height,f=Et(yg(a),4),p=f[0],g=f[1],m=f[2],v=f[3],y=Et([0,0,+r,+o],4),b=y[0],w=y[1],E=y[2],A=y[3],D=Q0e(s);if(D.includes("i"))return new wv(b,w,E,A);D.forEach(function(ee,Q){var H,q,le,Y;ee==="t"&&(H=Et(Q===0?[h+m,+o-h-m]:[0,+o],2),w=H[0],A=H[1]),ee==="r"&&(q=Et([+r-d-v],1),E=q[0]),ee==="b"&&(le=Et([+o-h-p],1),A=le[0]),ee==="l"&&(Y=Et(Q===0?[d+g,+r-d-g]:[0,+r],2),b=Y[0],E=Y[1])});var T=Et(yg(l),4),M=T[0],P=T[1],F=T[2],N=T[3],j=Et([N+P,M+F],2),W=j[0],J=j[1];return new wv(b+N,w+M,E-W,A-J)},t.prototype.getBBox=function(){return this.title?this.title.getBBox():new wv(0,0,0,0)},t.prototype.render=function(n,i){var r=this;n.width,n.height,n.position,n.spacing;var o=n.classNamePrefix,s=ou(n,["width","height","position","spacing","classNamePrefix"]),a=Et(iT(s),1),l=a[0],c=sJi(n),u=c.x,d=c.y,h=c.textAlign,f=c.textBaseline;R0(!!s.text,Rr(i),function(p){var g=rv(KMe.text.name,ov.title,o);r.title=p.maybeAppendByClassName(KMe.text,"text").attr("className",g).styles(l).call(oJi,{x:u,y:d,textAlign:h,textBaseline:f}).node()})},t})(Sd);Wn();var Ire=on(Pi());Wn();var Lre=on(Pi()),Mm=tS({prevBtnGroup:"prev-btn-group",prevBtn:"prev-btn",nextBtnGroup:"next-btn-group",nextBtn:"next-btn",pageInfoGroup:"page-info-group",pageInfo:"page-info",playWindow:"play-window",contentGroup:"content-group",controller:"controller",clipPath:"clip-path"},"navigator"),lJi=(function(e){Ss(t,e);function t(n){var i=e.call(this,n,{x:0,y:0,animate:{easing:"linear",duration:200,fill:"both"},buttonCursor:"pointer",buttonFill:"black",buttonD:oZi(0,0,6),buttonSize:12,controllerPadding:5,controllerSpacing:5,formatter:function(r,o){return"".concat(r,"/").concat(o)},defaultPage:0,loop:!1,orientation:"horizontal",pageNumFill:"black",pageNumFontSize:12,pageNumTextAlign:"start",pageNumTextBaseline:"middle"})||this;return i.playState="idle",i.contentGroup=i.appendChild(new qf({class:Mm.contentGroup.name})),i.playWindow=i.contentGroup.appendChild(new qf({class:Mm.playWindow.name})),i.innerCurrPage=i.defaultPage,i}return Object.defineProperty(t.prototype,"defaultPage",{get:function(){var n=this.attributes.defaultPage;return(0,Lre.clamp)(n,0,Math.max(this.pageViews.length-1,0))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageViews",{get:function(){return this.playWindow.children},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"controllerShape",{get:function(){return this.totalPages>1?{width:55,height:0}:{width:0,height:0}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageShape",{get:function(){var n=this.pageViews,i=Et(BQi(n.map(function(d){var h=d.getBBox(),f=h.width,p=h.height;return[f,p]})).map(function(d){return Math.max.apply(Math,Hr([],Et(d),!1))}),2),r=i[0],o=i[1],s=this.attributes,a=s.pageWidth,l=a===void 0?r:a,c=s.pageHeight,u=c===void 0?o:c;return{pageWidth:l,pageHeight:u}},enumerable:!1,configurable:!0}),t.prototype.getContainer=function(){return this.playWindow},Object.defineProperty(t.prototype,"totalPages",{get:function(){return this.pageViews.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currPage",{get:function(){return this.innerCurrPage},enumerable:!1,configurable:!0}),t.prototype.getBBox=function(){var n=e.prototype.getBBox.call(this),i=n.x,r=n.y,o=this.controllerShape,s=this.pageShape,a=s.pageWidth,l=s.pageHeight;return new wv(i,r,a+o.width,l)},t.prototype.goTo=function(n){var i=this,r=this.attributes.animate,o=this,s=o.currPage,a=o.playState,l=o.playWindow,c=o.pageViews;if(a!=="idle"||n<0||c.length<=0||n>=c.length)return null;c[s].setLocalPosition(0,0),this.prepareFollowingPage(n);var u=Et(this.getFollowingPageDiff(n),2),d=u[0],h=u[1];this.playState="running";var f=BCn(l,[{transform:"translate(0, 0)"},{transform:"translate(".concat(-d,", ").concat(-h,")")}],r);return Aj(f,function(){i.innerCurrPage=n,i.playState="idle",i.setVisiblePages([n]),i.updatePageInfo()}),f},t.prototype.prev=function(){var n=this.attributes.loop,i=this.pageViews.length,r=this.currPage;if(!n&&r<=0)return null;var o=n?(r-1+i)%i:(0,Lre.clamp)(r-1,0,i);return this.goTo(o)},t.prototype.next=function(){var n=this.attributes.loop,i=this.pageViews.length,r=this.currPage;if(!n&&r>=i-1)return null;var o=n?(r+1)%i:(0,Lre.clamp)(r+1,0,i);return this.goTo(o)},t.prototype.renderClipPath=function(n){var i=this.pageShape,r=i.pageWidth,o=i.pageHeight;if(!r||!o){this.contentGroup.style.clipPath=void 0;return}this.clipPath=n.maybeAppendByClassName(Mm.clipPath,"rect").styles({width:r,height:o}),this.contentGroup.attr("clipPath",this.clipPath.node())},t.prototype.setVisiblePages=function(n){this.playWindow.children.forEach(function(i,r){n.includes(r)?aZ(i):eC(i)})},t.prototype.adjustControllerLayout=function(){var n=this,i=n.prevBtnGroup,r=n.nextBtnGroup,o=n.pageInfoGroup,s=this.attributes,a=s.orientation,l=s.controllerPadding,c=o.getBBox(),u=c.width;c.height;var d=Et(a==="horizontal"?[-180,0]:[-90,90],2),h=d[0],f=d[1];i.setLocalEulerAngles(h),r.setLocalEulerAngles(f);var p=i.getBBox(),g=p.width,m=p.height,v=r.getBBox(),y=v.width,b=v.height,w=Math.max(g,u,y),E=a==="horizontal"?{offset:[[0,0],[g/2+l,0],[g+u+l*2,0]],textAlign:"start"}:{offset:[[w/2,-m-l],[w/2,0],[w/2,b+l]],textAlign:"center"},A=Et(E.offset,3),D=Et(A[0],2),T=D[0],M=D[1],P=Et(A[1],2),F=P[0],N=P[1],j=Et(A[2],2),W=j[0],J=j[1],ee=E.textAlign,Q=o.querySelector("text");Q&&(Q.style.textAlign=ee),i.setLocalPosition(T,M),o.setLocalPosition(F,N),r.setLocalPosition(W,J)},t.prototype.updatePageInfo=function(){var n,i=this,r=i.currPage,o=i.pageViews,s=i.attributes.formatter;o.length<2||((n=this.pageInfoGroup.querySelector(Mm.pageInfo.class))===null||n===void 0||n.attr("text",s(r+1,o.length)),this.adjustControllerLayout())},t.prototype.getFollowingPageDiff=function(n){var i=this.currPage;if(i===n)return[0,0];var r=this.attributes.orientation,o=this.pageShape,s=o.pageWidth,a=o.pageHeight,l=n<i?-1:1;return r==="horizontal"?[l*s,0]:[0,l*a]},t.prototype.prepareFollowingPage=function(n){var i=this,r=i.currPage,o=i.pageViews;if(this.setVisiblePages([n,r]),n!==r){var s=Et(this.getFollowingPageDiff(n),2),a=s[0],l=s[1];o[n].setLocalPosition(a,l)}},t.prototype.renderController=function(n){var i=this,r=this.attributes,o=r.controllerSpacing,s=r.classNamePrefix,a=s===void 0?"":s,l=this.pageShape,c=l.pageWidth,u=l.pageHeight,d=this.pageViews.length>=2,h=n.maybeAppendByClassName(Mm.controller,"g");if(Y0e(h.node(),d),!!d){var f=bs(this.attributes,"button"),p=bs(this.attributes,"pageNum"),g=Et(iT(f),2),m=g[0],v=g[1],y=m.size,b=ou(m,["size"]),w=!h.select(Mm.prevBtnGroup.class).node(),E=h.maybeAppendByClassName(Mm.prevBtnGroup,"g").styles(v);this.prevBtnGroup=E.node();var A=E.maybeAppendByClassName(Mm.prevBtn,"path");if(a){var D=rv(Mm.prevBtn.name,ov.prevBtn,a);A.node().setAttribute("class",D)}var T=h.maybeAppendByClassName(Mm.nextBtnGroup,"g").styles(v);this.nextBtnGroup=T.node();var M=T.maybeAppendByClassName(Mm.nextBtn,"path");if(a){var P=rv(Mm.nextBtn.name,ov.nextBtn,a);M.node().setAttribute("class",P)}[A,M].forEach(function(W){W.styles(Zn(Zn({},b),{transformOrigin:"center"})),WZe(W.node(),y)});var F=h.maybeAppendByClassName(Mm.pageInfoGroup,"g");this.pageInfoGroup=F.node();var N=F.maybeAppendByClassName(Mm.pageInfo,"text");if(N.styles(p),a){var j=rv(Mm.pageInfo.name,ov.pageInfo,a);N.node().setAttribute("class",j)}this.updatePageInfo(),h.node().setLocalPosition(c+o,u/2),w&&(this.prevBtnGroup.addEventListener("click",function(){i.prev()}),this.nextBtnGroup.addEventListener("click",function(){i.next()}))}},t.prototype.render=function(n,i){var r=n.x,o=r===void 0?0:r,s=n.y,a=s===void 0?0:s;this.attr("transform","translate(".concat(o,", ").concat(a,")"));var l=Rr(i);this.renderClipPath(l),this.renderController(l),this.setVisiblePages([this.defaultPage]),this.goTo(this.defaultPage)},t.prototype.bindEvents=function(){var n=this,i=(0,Lre.debounce)(function(){return n.render(n.attributes,n)},50);this.playWindow.addEventListener(ea.INSERTED,i),this.playWindow.addEventListener(ea.REMOVED,i)},t})(Sd);Wn();var cJi=on(Pi());Wn();var eB=on(Pi()),Xs,uJi="component-poptip",Ls={CONTAINER:"component-poptip",ARROW:"component-poptip-arrow",TEXT:"component-poptip-text"},eFt=(Xs={},Xs[".".concat(Ls.CONTAINER)]={visibility:"visible",position:"absolute","background-color":"rgba(0, 0, 0)","box-shadow":"0px 0px 10px #aeaeae","border-radius":"3px",color:"#fff",opacity:.8,"font-size":"12px",padding:"4px 6px",display:"flex","justify-content":"center","align-items":"center","z-index":8,transition:"visibility 50ms"},Xs[".".concat(Ls.TEXT)]={"text-align":"center"},Xs[".".concat(Ls.CONTAINER,"[data-position='top']")]={transform:"translate(-50%, -100%)"},Xs[".".concat(Ls.CONTAINER,"[data-position='left']")]={transform:"translate(-100%, -50%)"},Xs[".".concat(Ls.CONTAINER,"[data-position='right']")]={transform:"translate(0, -50%)"},Xs[".".concat(Ls.CONTAINER,"[data-position='bottom']")]={transform:"translate(-50%, 0)"},Xs[".".concat(Ls.CONTAINER,"[data-position='top-left']")]={transform:"translate(0,-100%)"},Xs[".".concat(Ls.CONTAINER,"[data-position='top-right']")]={transform:"translate(-100%,-100%)"},Xs[".".concat(Ls.CONTAINER,"[data-position='left-top']")]={transform:"translate(-100%, 0)"},Xs[".".concat(Ls.CONTAINER,"[data-position='left-bottom']")]={transform:"translate(-100%, -100%)"},Xs[".".concat(Ls.CONTAINER,"[data-position='right-top']")]={transform:"translate(0, 0)"},Xs[".".concat(Ls.CONTAINER,"[data-position='right-bottom']")]={transform:"translate(0, -100%)"},Xs[".".concat(Ls.CONTAINER,"[data-position='bottom-left']")]={transform:"translate(0, 0)"},Xs[".".concat(Ls.CONTAINER,"[data-position='bottom-right']")]={transform:"translate(-100%, 0)"},Xs[".".concat(Ls.ARROW)]={width:"4px",height:"4px",transform:"rotate(45deg)","background-color":"rgba(0, 0, 0)",position:"absolute","z-index":-1},Xs[".".concat(Ls.CONTAINER,"[data-position='top']")]={transform:"translate(-50%, calc(-100% - 5px))"},Xs["[data-position='top'] .".concat(Ls.ARROW)]={bottom:"-2px"},Xs[".".concat(Ls.CONTAINER,"[data-position='left']")]={transform:"translate(calc(-100% - 5px), -50%)"},Xs["[data-position='left'] .".concat(Ls.ARROW)]={right:"-2px"},Xs[".".concat(Ls.CONTAINER,"[data-position='right']")]={transform:"translate(5px, -50%)"},Xs["[data-position='right'] .".concat(Ls.ARROW)]={left:"-2px"},Xs[".".concat(Ls.CONTAINER,"[data-position='bottom']")]={transform:"translate(-50%, 5px)"},Xs["[data-position='bottom'] .".concat(Ls.ARROW)]={top:"-2px"},Xs[".".concat(Ls.CONTAINER,"[data-position='top-left']")]={transform:"translate(0, calc(-100% - 5px))"},Xs["[data-position='top-left'] .".concat(Ls.ARROW)]={left:"10px",bottom:"-2px"},Xs[".".concat(Ls.CONTAINER,"[data-position='top-right']")]={transform:"translate(-100%, calc(-100% - 5px))"},Xs["[data-position='top-right'] .".concat(Ls.ARROW)]={right:"10px",bottom:"-2px"},Xs[".".concat(Ls.CONTAINER,"[data-position='left-top']")]={transform:"translate(calc(-100% - 5px), 0)"},Xs["[data-position='left-top'] .".concat(Ls.ARROW)]={right:"-2px",top:"8px"},Xs[".".concat(Ls.CONTAINER,"[data-position='left-bottom']")]={transform:"translate(calc(-100% - 5px), -100%)"},Xs["[data-position='left-bottom'] .".concat(Ls.ARROW)]={right:"-2px",bottom:"8px"},Xs[".".concat(Ls.CONTAINER,"[data-position='right-top']")]={transform:"translate(5px, 0)"},Xs["[data-position='right-top'] .".concat(Ls.ARROW)]={left:"-2px",top:"8px"},Xs[".".concat(Ls.CONTAINER,"[data-position='right-bottom']")]={transform:"translate(5px, -100%)"},Xs["[data-position='right-bottom'] .".concat(Ls.ARROW)]={left:"-2px",bottom:"8px"},Xs[".".concat(Ls.CONTAINER,"[data-position='bottom-left']")]={transform:"translate(0, 5px)"},Xs["[data-position='bottom-left'] .".concat(Ls.ARROW)]={top:"-2px",left:"8px"},Xs[".".concat(Ls.CONTAINER,"[data-position='bottom-right']")]={transform:"translate(-100%, 5px)"},Xs["[data-position='bottom-right'] .".concat(Ls.ARROW)]={top:"-2px",right:"8px"},Xs),dJi=void 0;function hJi(e,t,n,i,r,o){if(r===void 0&&(r=!1),o===void 0&&(o=!1),o)return[e,t];var s=n.getBoundingClientRect(),a=s.x,l=s.y,c=s.width,u=s.height;switch(i){case"top":return r?[a+c/2,l]:[e,l];case"left":return r?[a,l+u/2]:[a,t];case"bottom":return r?[a+c/2,l+u]:[e,l+u];case"right":return r?[a+c,l+u/2]:[a+c,t];case"top-right":case"right-top":return[a+c,l];case"left-bottom":case"bottom-left":return[a,l+u];case"right-bottom":case"bottom-right":return[a+c,l+u];default:return[a,l]}}var fJi=function(e){var t;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return t||(t=e.apply(dJi,n)),t}};function pJi(e){var t=e&&document.getElementById(e);return t||(t=document.createElement("div"),t.setAttribute("id",e),document.body.appendChild(t)),t}function gJi(e){var t=fJi(pJi)(e);return t}var mJi=(function(e){Ss(t,e);function t(n){var i=e.call(this,(0,eB.deepMix)({style:{id:uJi}},t.defaultOptions,n))||this;return i.visibility="visible",i.map=new Map,i.domStyles="",i.initShape(),i.render(i.attributes,i),i}return Object.defineProperty(t.prototype,"visible",{get:function(){return this.visibility==="visible"},enumerable:!1,configurable:!0}),t.prototype.render=function(n,i){this.visibility=this.style.visibility,this.updatePoptipElement()},t.prototype.update=function(n){this.attr((0,eB.deepMix)({},this.style,n)),this.render(this.attributes,this)},t.prototype.bind=function(n,i){var r=this;if(n){var o=this.style.text,s=function(l){var c=n,u=r.style,d=o;if(i){var h=typeof i=="function"?i.call(null,l):i,f=h.html,p=h.target,g=ou(h,["html","target"]);u=(0,eB.assign)({},r.style,g),(p||p===!1)&&(c=p),typeof f=="string"&&(d=f)}var m=u.position,v=u.arrowPointAtCenter,y=u.follow,b=u.offset;if(c){var w=l,E=w.clientX,A=w.clientY,D=Et(hJi(E,A,c,m,v,y),2),T=D[0],M=D[1];r.showTip(T,M,{text:d,position:m,offset:b})}else r.hideTip()},a=function(){r.hideTip()};n.addEventListener("mousemove",s),n.addEventListener("mouseleave",a),this.map.set(n,[s,a])}},t.prototype.unbind=function(n){if(this.map.has(n)){var i=Et(this.map.get(n)||[],2),r=i[0],o=i[1];r&&n.removeEventListener("mousemove",r),o&&n.removeEventListener("mouseleave",o),this.map.delete(n)}},t.prototype.clear=function(){this.container.innerHTML=""},t.prototype.destroy=function(){var n=this,i;Hr([],Et(this.map.keys()),!1).forEach(function(r){return n.unbind(r)}),(i=this.container)===null||i===void 0||i.remove(),e.prototype.destroy.call(this)},t.prototype.showTip=function(n,i,r){var o=(0,eB.get)(r,"text");if(!(o&&typeof o!="string")&&(this.applyStyles(),n&&i&&r)){var s=r.offset,a=r.position;if(a&&this.container.setAttribute("data-position",a),this.setOffsetPosition(n,i,s),typeof o=="string"){var l=this.container.querySelector(".".concat(Ls.TEXT));l&&(l.innerHTML=o)}this.visibility="visible",this.container.style.visibility="visible"}},t.prototype.hideTip=function(){this.visibility="hidden",this.container.style.visibility="hidden"},t.prototype.getContainer=function(){return this.container},t.prototype.getClassName=function(){var n=this.style.containerClassName;return"".concat(Ls.CONTAINER).concat(n?" ".concat(n):"")},t.prototype.initShape=function(){var n=this,i=this.style.id;this.container=gJi(i),this.container.className=this.getClassName(),this.container.addEventListener("mousemove",function(){return n.showTip()}),this.container.addEventListener("mouseleave",function(){return n.hideTip()})},t.prototype.updatePoptipElement=function(){var n=this.container;this.clear();var i=this.style,r=i.id,o=i.template,s=i.text;this.container.setAttribute("id",r),this.container.className=this.getClassName();var a='<span class="'.concat(Ls.ARROW,'"></span>');n.innerHTML=a,(0,eB.isString)(o)?n.innerHTML+=o:o&&(0,eB.isElement)(o)&&n.appendChild(o),s&&(n.getElementsByClassName(Ls.TEXT)[0].textContent=s),this.applyStyles(),this.container.style.visibility=this.visibility},t.prototype.applyStyles=function(){var n=ff({},eFt,this.style.domStyles),i=Object.entries(n).reduce(function(o,s){var a=Et(s,2),l=a[0],c=a[1],u=Object.entries(c).reduce(function(d,h){var f=Et(h,2),p=f[0],g=f[1];return"".concat(d).concat(p,": ").concat(g,";")},"");return"".concat(o).concat(l,"{").concat(u,"}")},"");if(this.domStyles!==i){this.domStyles=i;var r=this.container.querySelector("style");r&&this.container.removeChild(r),r=document.createElement("style"),r.innerHTML=i,this.container.appendChild(r)}},t.prototype.setOffsetPosition=function(n,i,r){r===void 0&&(r=this.style.offset);var o=Et(r,2),s=o[0],a=s===void 0?0:s,l=o[1],c=l===void 0?0:l;this.container.style.left="".concat(n+a,"px"),this.container.style.top="".concat(i+c,"px")},t.tag="poptip",t.defaultOptions={style:{x:0,y:0,width:0,height:0,target:null,visibility:"hidden",text:"",position:"top",follow:!1,offset:[0,0],domStyles:eFt,template:'<div class="'.concat(Ls.TEXT,'"></div>')}},t})(Sd),Uh=tS({layout:"flex",markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label",valueGroup:"value-group",focusGroup:"focus-group",focus:"focus",value:"value",backgroundGroup:"background-group",background:"background"},"legend-category-item"),vJi={offset:[0,20],domStyles:{".component-poptip":{opacity:"1",padding:"8px 12px",background:"#fff",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"},".component-poptip-arrow":{display:"none"},".component-poptip-text":{color:"#000",lineHeight:"20px"}}};function yJi(e){var t=e.querySelector(Uh.marker.class);return t?t.style:{}}var bJi=(function(e){Ss(t,e);function t(n,i){var r=e.call(this,n,{span:[1,1],marker:function(){return new NC({style:{r:6}})},markerSize:10,labelFill:"#646464",valueFill:"#646464",labelFontSize:12,valueFontSize:12,labelTextBaseline:"middle",valueTextBaseline:"middle"})||this;return r.keyFields={},r.keyFields=i||{},r}return Object.defineProperty(t.prototype,"showValue",{get:function(){var n=this.attributes.valueText;return n?typeof n=="string"||typeof n=="number"?n!=="":typeof n=="function"?!0:n.attr("text")!=="":!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actualSpace",{get:function(){var n=this.labelGroup,i=this.valueGroup,r=this.attributes,o=r.markerSize,s=r.focus,a=r.focusMarkerSize,l=n.node().getBBox(),c=l.width,u=l.height,d=i.node().getBBox(),h=d.width,f=d.height,p=s?a??12:0;return{markerWidth:o,labelWidth:c,valueWidth:h,focusWidth:p,height:Math.max(o,u,f)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"span",{get:function(){var n=this.attributes.span;if(!n)return[1,1];var i=Et(yg(n),2),r=i[0],o=i[1],s=this.showValue?o:0,a=r+s;return[r/a,s/a]},enumerable:!1,configurable:!0}),t.prototype.setAttribute=function(n,i){e.prototype.setAttribute.call(this,n,i)},Object.defineProperty(t.prototype,"shape",{get:function(){var n,i=this.attributes,r=i.markerSize,o=i.width,s=this.actualSpace,a=s.markerWidth,l=s.focusWidth,c=s.height,u=this.actualSpace,d=u.labelWidth,h=u.valueWidth,f=Et(this.spacing,3),p=f[0],g=f[1],m=f[2];if(o){var v=o-r-p-g-l-m,y=Et(this.span,2),b=y[0],w=y[1];n=Et([b*v,w*v],2),d=n[0],h=n[1]}var E=a+d+h+p+g+l+m;return{width:E,height:c,markerWidth:a,labelWidth:d,valueWidth:h,focusWidth:l}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"spacing",{get:function(){var n=this.attributes,i=n.spacing,r=n.focus;if(!i)return[0,0,0];var o=Et(yg(i),3),s=o[0],a=o[1],l=o[2];return[s,this.showValue?a:0,r?l:0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layout",{get:function(){var n=this.shape,i=n.markerWidth,r=n.labelWidth,o=n.valueWidth,s=n.focusWidth,a=n.width,l=n.height,c=Et(this.spacing,3),u=c[0],d=c[1],h=c[2];return{height:l,width:a,markerWidth:i,labelWidth:r,valueWidth:o,focusWidth:s,position:[i/2,i+u,i+r+u+d,i+r+o+u+d+h+s/2]}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scaleSize",{get:function(){var n=yJi(this.markerGroup.node()),i=this.attributes,r=i.markerSize,o=i.markerStrokeWidth,s=o===void 0?n.strokeWidth:o,a=i.markerLineWidth,l=a===void 0?n.lineWidth:a,c=i.markerStroke,u=c===void 0?n.stroke:c,d=+(s||l||(u?1:0))*Math.sqrt(2),h=this.markerGroup.node().getBBox(),f=h.width,p=h.height;return(1-d/Math.max(f,p))*r},enumerable:!1,configurable:!0}),t.prototype.renderMarker=function(n){var i=this,r=this.attributes,o=r.marker,s=r.classNamePrefix,a=bs(this.attributes,"marker");this.markerGroup=n.maybeAppendByClassName(Uh.markerGroup,"g").style("zIndex",0),R0(!!o,this.markerGroup,function(){var l,c=i.markerGroup.node(),u=(l=c.childNodes)===null||l===void 0?void 0:l[0],d=rv(Uh.marker.name,ov.marker,s),h=typeof o=="string"?new Ul({style:{symbol:o},className:d}):o();if(u)if(h.nodeName===u.nodeName)u instanceof Ul?u.update(Zn(Zn({},a),{symbol:o})):(PQi(u,h),Rr(u).styles(a));else{if(u.remove(),!(h instanceof Ul)){var p=rv(Uh.marker.name,ov.marker,s);h.className=p}Rr(h).styles(a),c.appendChild(h)}else{if(!(h instanceof Ul)){var f=rv(Uh.marker.name,ov.marker,s);h.className=f,Rr(h).styles(a)}c.appendChild(h)}i.markerGroup.node().scale(1/i.markerGroup.node().getScale()[0]);var g=WZe(i.markerGroup.node(),i.scaleSize);i.markerGroup.node().style._transform="scale(".concat(g,")")})},t.prototype.renderLabel=function(n){var i=bs(this.attributes,"label"),r=i.text,o=ou(i,["text"]),s=this.attributes.classNamePrefix;this.labelGroup=n.maybeAppendByClassName(Uh.labelGroup,"g").style("zIndex",0);var a=rv(Uh.label.name,ov.label,s),l=this.labelGroup.maybeAppendByClassName(Uh.label,function(){return nT(r)});l.node().setAttribute("class",a),l.styles(o)},t.prototype.renderValue=function(n){var i=this,r=bs(this.attributes,"value"),o=r.text,s=ou(r,["text"]),a=this.attributes.classNamePrefix;this.valueGroup=n.maybeAppendByClassName(Uh.valueGroup,"g").style("zIndex",0),R0(this.showValue,this.valueGroup,function(){var l=rv(Uh.value.name,ov.value,a),c=i.valueGroup.maybeAppendByClassName(Uh.value,function(){return nT(o)});c.node().setAttribute("class",l),c.styles(s)})},t.prototype.createPoptip=function(){var n=this.attributes.poptip,i=n||{};i.render;var r=ou(i,["render"]),o=new mJi({style:ff(vJi,r)});return this.poptipGroup=o,o},t.prototype.bindPoptip=function(n){var i=this,r=this.attributes.poptip;if(r){var o=this.poptipGroup||this.createPoptip();o.bind(n,function(){var s=i.attributes,a=s.labelText,l=s.valueText,c=s.markerFill,u=typeof a=="string"?a:a?.attr("text"),d=typeof l=="string"?l:l?.attr("text");if(typeof r.render=="function")return{html:r.render(Zn(Zn({},i.keyFields),{label:u,value:d,color:c}))};var h="";return(typeof u=="string"||typeof u=="number")&&(h+='<div class="component-poptip-label">'.concat(u,"</div>")),(typeof d=="string"||typeof d=="number")&&(h+='<div class="component-poptip-value">'.concat(d,"</div>")),{html:h}})}},t.prototype.renderFocus=function(n){var i=this,r=this.attributes,o=r.focus,s=r.focusMarkerSize,a=r.classNamePrefix,l={x:0,y:0,size:s,opacity:.6,symbol:"focus",stroke:"#aaaaaa",lineWidth:1};(0,cJi.isUndefined)(o)||(this.focusGroup=n.maybeAppendByClassName(Uh.focusGroup,"g").style("zIndex",0),R0(o,this.focusGroup,function(){var c=rv(Uh.focus.name,ov.focusIcon,a),u=new Ul({style:Zn(Zn({},l),{symbol:"focus"}),className:c}),d=new NC({style:{r:l.size/2,fill:"transparent"}}),h=i.focusGroup.node();h.appendChild(d),h.appendChild(u),u.update({opacity:0}),n.node().addEventListener("pointerenter",function(){u.update({opacity:1})}),n.node().addEventListener("pointerleave",function(){u.update({opacity:0})})}))},t.prototype.renderPoptip=function(n){var i=this,r=this.attributes.poptip;if(r){var o=n.maybeAppendByClassName(Uh.value,"g").node(),s=n.maybeAppendByClassName(Uh.label,"g").node();[o,s].forEach(function(a){a&&i.bindPoptip(a)})}},t.prototype.renderBackground=function(n){var i=this.shape,r=i.width,o=i.height,s=bs(this.attributes,"background");this.background=n.maybeAppendByClassName(Uh.backgroundGroup,"g").style("zIndex",-1);var a=this.background.maybeAppendByClassName(Uh.background,"rect");a.styles(Zn({width:r,height:o},s));var l=this.attributes.classNamePrefix,c=l===void 0?"":l;if(c){var u=rv(Uh.background.name,ov.background,c);a.node().setAttribute("class",u)}},t.prototype.adjustLayout=function(){var n=this.layout,i=n.labelWidth,r=n.valueWidth,o=n.height,s=Et(n.position,4),a=s[0],l=s[1],c=s[2],u=s[3],d=o/2;this.markerGroup.styles({transform:"translate(".concat(a,", ").concat(d,")").concat(this.markerGroup.node().style._transform)}),this.labelGroup.styles({transform:"translate(".concat(l,", ").concat(d,")")}),this.focusGroup&&this.focusGroup.styles({transform:"translate(".concat(u,", ").concat(d,")")}),cje(this.labelGroup.select(Uh.label.class).node(),Math.ceil(i)),this.showValue&&(this.valueGroup.styles({transform:"translate(".concat(c,", ").concat(d,")")}),cje(this.valueGroup.select(Uh.value.class).node(),Math.ceil(r)))},t.prototype.render=function(n,i){var r=Rr(i),o=n.x,s=o===void 0?0:o,a=n.y,l=a===void 0?0:a;r.styles({transform:"translate(".concat(s,", ").concat(l,")")}),this.renderMarker(r),this.renderLabel(r),this.renderValue(r),this.renderBackground(r),this.renderPoptip(r),this.renderFocus(r),this.adjustLayout()},t})(Sd),VM=tS({page:"item-page",navigator:"navigator",item:"item"},"items"),tFt=function(e,t,n){return n===void 0&&(n=!0),e?t(e):n},_Ji=(function(e){Ss(t,e);function t(n){var i=e.call(this,n,{data:[],gridRow:1/0,gridCol:void 0,padding:0,width:1e3,height:100,rowPadding:0,colPadding:0,layout:"flex",orientation:"horizontal",click:Ire.noop,mouseenter:Ire.noop,mouseleave:Ire.noop})||this;return i.navigatorShape=[0,0],i}return Object.defineProperty(t.prototype,"pageViews",{get:function(){return this.navigator.getContainer()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"grid",{get:function(){var n=this.attributes,i=n.gridRow,r=n.gridCol,o=n.data;if(!i&&!r)throw new Error("gridRow and gridCol can not be set null at the same time");return i&&r?[i,r]:i?[i,o.length]:[o.length,r]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderData",{get:function(){var n=this.attributes,i=n.data,r=n.layout,o=n.poptip,s=n.focus,a=n.focusMarkerSize,l=n.classNamePrefix,c=bs(this.attributes,"item"),u=i.map(function(d,h){var f=d.id,p=f===void 0?h:f,g=d.label,m=d.value;return{id:"".concat(p),index:h,style:Zn({layout:r,labelText:g,valueText:m,poptip:o,focus:s,focusMarkerSize:a,classNamePrefix:l},Object.fromEntries(Object.entries(c).map(function(v){var y=Et(v,2),b=y[0],w=y[1];return[b,q0(w,[d,h,i])]})))}});return u},enumerable:!1,configurable:!0}),t.prototype.getGridLayout=function(){var n=this,i=this.attributes,r=i.orientation,o=i.width,s=i.rowPadding,a=i.colPadding,l=Et(this.navigatorShape,1),c=l[0],u=Et(this.grid,2),d=u[0],h=u[1],f=h*d,p=0;return this.pageViews.children.map(function(g,m){var v,y,b=Math.floor(m/f),w=m%f,E=n.ifHorizontal(h,d),A=[Math.floor(w/E),w%E];r==="vertical"&&A.reverse();var D=Et(A,2),T=D[0],M=D[1],P=(o-c-(h-1)*a)/h,F=g.getBBox().height,N=Et([0,0],2),j=N[0],W=N[1];return r==="horizontal"?(v=Et([p,T*(F+s)],2),j=v[0],W=v[1],p=M===h-1?0:p+P+a):(y=Et([M*(P+a),p],2),j=y[0],W=y[1],p=T===d-1?0:p+F+s),{page:b,index:m,row:T,col:M,pageIndex:w,width:P,height:F,x:j,y:W}})},t.prototype.getFlexLayout=function(){var n=this.attributes,i=n.width,r=n.height,o=n.rowPadding,s=n.colPadding,a=Et(this.navigatorShape,1),l=a[0],c=Et(this.grid,2),u=c[0],d=c[1],h=Et([i-l,r],2),f=h[0],p=h[1],g=Et([0,0,0,0,0,0,0,0],8),m=g[0],v=g[1],y=g[2],b=g[3],w=g[4],E=g[5],A=g[6],D=g[7];return this.pageViews.children.map(function(T,M){var P,F,N,j,W=T.getBBox(),J=W.width,ee=W.height,Q=A===0?0:s,H=A+Q+J;if(H<=f&&tFt(w,function(le){return le<d}))return P=Et([A+Q,D,H],3),m=P[0],v=P[1],A=P[2],{width:J,height:ee,x:m,y:v,page:y,index:M,pageIndex:b++,row:E,col:w++};F=Et([E+1,0,0,D+ee+o],4),E=F[0],w=F[1],A=F[2],D=F[3];var q=D+ee;return q<=p&&tFt(E,function(le){return le<u})?(N=Et([A,D,J],3),m=N[0],v=N[1],A=N[2],{width:J,height:ee,x:m,y:v,page:y,index:M,pageIndex:b++,row:E,col:w++}):(j=Et([0,0,J,0,y+1,0,0,0],8),m=j[0],v=j[1],A=j[2],D=j[3],y=j[4],b=j[5],E=j[6],w=j[7],{width:J,height:ee,x:m,y:v,page:y,index:M,pageIndex:b++,row:E,col:w++})})},Object.defineProperty(t.prototype,"itemsLayout",{get:function(){this.navigatorShape=[0,0];var n=this.attributes.layout==="grid"?this.getGridLayout:this.getFlexLayout,i=n.call(this);return i.slice(-1)[0].page>0?(this.navigatorShape=[55,0],n.call(this)):i},enumerable:!1,configurable:!0}),t.prototype.ifHorizontal=function(n,i){var r=this.attributes.orientation;return gje(r,n,i)},t.prototype.flattenPage=function(n){n.querySelectorAll(VM.item.class).forEach(function(i){n.appendChild(i)}),n.querySelectorAll(VM.page.class).forEach(function(i){var r=n.removeChild(i);r.destroy()})},t.prototype.renderItems=function(n){var i=this.attributes,r=i.click,o=i.mouseenter,s=i.mouseleave,a=i.classNamePrefix;this.flattenPage(n);var l=this.dispatchCustomEvent.bind(this),c=rv(VM.item.name,ov.item,a);Rr(n).selectAll(VM.item.class).data(this.renderData,function(u){return u.id}).join(function(u){return u.append(function(d){var h=d.style,f=ou(d,["style"]);return new bJi({style:h},f)}).attr("className",c).on("click",function(){r?.(this),l("itemClick",{item:this})}).on("pointerenter",function(){o?.(this),l("itemMouseenter",{item:this})}).on("pointerleave",function(){s?.(this),l("itemMouseleave",{item:this})})},function(u){return u.each(function(d){var h=d.style;this.update(h)})},function(u){return u.remove()})},t.prototype.relayoutNavigator=function(){var n,i=this.attributes,r=i.layout,o=i.width,s=((n=this.pageViews.children[0])===null||n===void 0?void 0:n.getBBox().height)||0,a=Et(this.navigatorShape,2),l=a[0],c=a[1];this.navigator.update(r==="grid"?{pageWidth:o-l,pageHeight:s-c}:{})},t.prototype.adjustLayout=function(){var n=this,i=Object.entries(mQi(this.itemsLayout,"page")).map(function(o){var s=Et(o,2),a=s[0],l=s[1];return{page:a,layouts:l}}),r=Hr([],Et(this.navigator.getContainer().children),!1);i.forEach(function(o){var s=o.layouts,a=n.pageViews.appendChild(new qf({className:VM.page.name}));s.forEach(function(l){var c=l.x,u=l.y,d=l.index,h=l.width,f=l.height,p=r[d];a.appendChild(p),(0,Ire.set)(p,"__layout__",l),p.update({x:c,y:u,width:h,height:f})})}),this.relayoutNavigator()},t.prototype.renderNavigator=function(n){var i=this.attributes,r=i.orientation,o=i.classNamePrefix,s=bs(this.attributes,"nav"),a=ff({orientation:r,classNamePrefix:o},s),l=this;return n.selectAll(VM.navigator.class).data(["nav"]).join(function(c){return c.append(function(){return new lJi({style:a})}).attr("className",VM.navigator.name).each(function(){l.navigator=this})},function(c){return c.each(function(){this.update(a)})},function(c){return c.remove()}),this.navigator},t.prototype.getBBox=function(){return this.navigator.getBBox()},t.prototype.render=function(n,i){var r=this.attributes.data;if(!(!r||r.length===0)){var o=this.renderNavigator(Rr(i));this.renderItems(o.getContainer()),this.adjustLayout()}},t.prototype.dispatchCustomEvent=function(n,i){var r=new of(n,{detail:i});this.dispatchEvent(r)},t})(Sd),wJi=(function(e){Ss(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.update=function(n){this.attr(n)},t})(MF),CJi=(function(e){Ss(t,e);function t(n){return e.call(this,n,iJi)||this}return t.prototype.renderTitle=function(n,i,r){var o=this.attributes,s=o.showTitle,a=o.titleText,l=o.classNamePrefix,c=bs(this.attributes,"title"),u=Et(iT(c),2),d=u[0],h=u[1];this.titleGroup=n.maybeAppendByClassName(zM.titleGroup,"g").styles(h);var f=Zn(Zn({width:i,height:r},d),{text:s?a:"",classNamePrefix:l});this.title=this.titleGroup.maybeAppendByClassName(zM.title,function(){return new aJi({style:f})}).update(f)},t.prototype.renderCustom=function(n){var i=this.attributes.data,r={innerHTML:this.attributes.render(i),pointerEvents:"auto"};n.maybeAppendByClassName(zM.html,function(){return new wJi({className:zM.html.name,style:r})}).update(r)},t.prototype.renderItems=function(n,i){var r=i.x,o=i.y,s=i.width,a=i.height,l=bs(this.attributes,"title",!0),c=Et(iT(l),2),u=c[0],d=c[1],h=Zn(Zn({},u),{width:s,height:a,x:0,y:0});this.itemsGroup=n.maybeAppendByClassName(zM.itemsGroup,"g").styles(Zn(Zn({},d),{transform:"translate(".concat(r,", ").concat(o,")")}));var f=this;this.itemsGroup.selectAll(zM.items.class).data(["items"]).join(function(p){return p.append(function(){return new _Ji({style:h})}).attr("className",zM.items.name).each(function(){f.items=Rr(this)})},function(p){return p.update(h)},function(p){return p.remove()})},t.prototype.adjustLayout=function(){var n=this.attributes.showTitle;if(n){var i=this.title.node().getAvailableSpace(),r=i.x,o=i.y;this.itemsGroup.node().style.transform="translate(".concat(r,", ").concat(o,")")}},Object.defineProperty(t.prototype,"availableSpace",{get:function(){var n=this.attributes,i=n.showTitle,r=n.width,o=n.height;return i?this.title.node().getAvailableSpace():new wv(0,0,r,o)},enumerable:!1,configurable:!0}),t.prototype.getBBox=function(){var n,i,r=(n=this.title)===null||n===void 0?void 0:n.node(),o=(i=this.items)===null||i===void 0?void 0:i.node();return!r||!o?e.prototype.getBBox.call(this):rJi(r,o)},t.prototype.render=function(n,i){var r=this.attributes,o=r.width,s=r.height,a=r.x,l=a===void 0?0:a,c=r.y,u=c===void 0?0:c,d=r.classNamePrefix,h=r.render,f=Rr(i),p=i.className||"legend-category";d?i.attr("className","".concat(p," ").concat(d,"legend")):i.className||i.attr("className","legend-category"),i.style.transform="translate(".concat(l,", ").concat(u,")"),h?this.renderCustom(f):(this.renderTitle(f,o,s),this.renderItems(f,this.availableSpace),this.adjustLayout())},t})(Sd);Wn();var SJi={backgroundFill:"#262626",backgroundLineCap:"round",backgroundLineWidth:1,backgroundStroke:"#333",backgroundZIndex:-1,formatter:function(e){return e.toString()},labelFill:"#fff",labelFontSize:12,labelTextBaseline:"middle",padding:[2,4],position:"right",radius:0,zIndex:999},YMe=tS({background:"background",labelGroup:"label-group",label:"label"},"indicator"),xJi=(function(e){Ss(t,e);function t(n){var i=e.call(this,n,SJi)||this;return i.point=[0,0],i.group=i.appendChild(new qf({})),i.isMutationObserved=!0,i}return t.prototype.renderBackground=function(){if(this.label){var n=this.attributes,i=n.position,r=n.padding,o=Et(yg(r),4),s=o[0],a=o[1],l=o[2],c=o[3],u=this.label.node().getLocalBounds(),d=u.min,h=u.max,f=new wv(d[0]-c,d[1]-s,h[0]+a-d[0]+c,h[1]+l-d[1]+s),p=this.getPath(i,f),g=bs(this.attributes,"background");this.background=Rr(this.group).maybeAppendByClassName(YMe.background,"path").styles(Zn(Zn({},g),{d:p})),this.group.appendChild(this.label.node())}},t.prototype.renderLabel=function(){var n=this.attributes,i=n.formatter,r=n.labelText,o=bs(this.attributes,"label"),s=Et(iT(o),2),a=s[0],l=s[1];a.text;var c=ou(a,["text"]);if(this.label=Rr(this.group).maybeAppendByClassName(YMe.labelGroup,"g").styles(l),!!r){var u=this.label.maybeAppendByClassName(YMe.label,function(){return nT(i(r))}).style("text",i(r).toString());u.selectAll("text").styles(c)}},t.prototype.adjustLayout=function(){var n=Et(this.point,2),i=n[0],r=n[1],o=this.attributes,s=o.x,a=o.y;this.group.attr("transform","translate(".concat(s-i,", ").concat(a-r,")"))},t.prototype.getPath=function(n,i){var r=this.attributes.radius,o=i.x,s=i.y,a=i.width,l=i.height,c=[["M",o+r,s],["L",o+a-r,s],["A",r,r,0,0,1,o+a,s+r],["L",o+a,s+l-r],["A",r,r,0,0,1,o+a-r,s+l],["L",o+r,s+l],["A",r,r,0,0,1,o,s+l-r],["L",o,s+r],["A",r,r,0,0,1,o+r,s],["Z"]],u={top:4,right:6,bottom:0,left:2},d=u[n],h=this.createCorner([c[d].slice(-2),c[d+1].slice(-2)]);return c.splice.apply(c,Hr([d+1,1],Et(h),!1)),c[0][0]="M",c},t.prototype.createCorner=function(n,i){i===void 0&&(i=10);var r=.8,o=NQi.apply(void 0,Hr([],Et(n),!1)),s=Et(n,2),a=Et(s[0],2),l=a[0],c=a[1],u=Et(s[1],2),d=u[0],h=u[1],f=Et(o?[d-l,[l,d]]:[h-c,[c,h]],2),p=f[0],g=Et(f[1],2),m=g[0],v=g[1],y=p/2,b=p/Math.abs(p),w=i*b,E=w/2,A=w*Math.sqrt(3)/2*r,D=Et([m,m+y-E,m+y,m+y+E,v],5),T=D[0],M=D[1],P=D[2],F=D[3],N=D[4];return o?(this.point=[P,c-A],[["L",T,c],["L",M,c],["L",P,c-A],["L",F,c],["L",N,c]]):(this.point=[l+A,P],[["L",l,T],["L",l,M],["L",l+A,P],["L",l,F],["L",l,N]])},t.prototype.applyVisibility=function(){var n=this.attributes.visibility;n==="hidden"?eC(this):aZ(this)},t.prototype.bindEvents=function(){this.label.on(ea.BOUNDS_CHANGED,this.renderBackground)},t.prototype.render=function(){this.renderLabel(),this.renderBackground(),this.adjustLayout(),this.applyVisibility()},t})(Sd);Wn();var QMe=on(Pi());Wn();function mje(e){return e===void 0&&(e=""),{CONTAINER:"".concat(e,"tooltip"),TITLE:"".concat(e,"tooltip-title"),LIST:"".concat(e,"tooltip-list"),LIST_ITEM:"".concat(e,"tooltip-list-item"),NAME:"".concat(e,"tooltip-list-item-name"),MARKER:"".concat(e,"tooltip-list-item-marker"),NAME_LABEL:"".concat(e,"tooltip-list-item-name-label"),VALUE:"".concat(e,"tooltip-list-item-value"),CROSSHAIR_X:"".concat(e,"tooltip-crosshair-x"),CROSSHAIR_Y:"".concat(e,"tooltip-crosshair-y")}}var nFt={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"};function EJi(e){var t;e===void 0&&(e="");var n=mje(e);return t={},t[".".concat(n.CONTAINER)]={position:"absolute",visibility:"visible","z-index":8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)","background-color":"rgba(255, 255, 255, 0.96)","box-shadow":"0 6px 12px 0 rgba(0, 0, 0, 0.12)","border-radius":"4px",color:"rgba(0, 0, 0, 0.65)","font-size":"12px","line-height":"20px",padding:"12px","min-width":"120px","max-width":"360px","font-family":"Roboto-Regular"},t[".".concat(n.TITLE)]={color:"rgba(0, 0, 0, 0.45)"},t[".".concat(n.LIST)]={margin:"0px","list-style-type":"none",padding:"0px"},t[".".concat(n.LIST_ITEM)]={"list-style-type":"none",display:"flex","line-height":"2em","align-items":"center","justify-content":"space-between","white-space":"nowrap"},t[".".concat(n.MARKER)]={width:"8px",height:"8px","border-radius":"50%",display:"inline-block","margin-right":"4px"},t[".".concat(n.NAME)]={display:"flex","align-items":"center","max-width":"216px"},t[".".concat(n.NAME_LABEL)]=Zn({flex:1},nFt),t[".".concat(n.VALUE)]=Zn({display:"inline-block",float:"right",flex:1,"text-align":"right","min-width":"28px","margin-left":"30px",color:"rgba(0, 0, 0, 0.85)"},nFt),t[".".concat(n.CROSSHAIR_X)]={position:"absolute",width:"1px","background-color":"rgba(0, 0, 0, 0.25)"},t[".".concat(n.CROSSHAIR_Y)]={position:"absolute",height:"1px","background-color":"rgba(0, 0, 0, 0.25)"},t}var AJi=(function(e){Ss(t,e);function t(n){var i=this,r,o,s=(o=(r=n.style)===null||r===void 0?void 0:r.template)===null||o===void 0?void 0:o.prefixCls,a=mje(s);return i=e.call(this,n,{data:[],x:0,y:0,visibility:"visible",title:"",position:"bottom-right",offset:[5,5],enterable:!1,container:{x:0,y:0},bounding:null,template:{prefixCls:"",container:'<div class="'.concat(a.CONTAINER,'"></div>'),title:'<div class="'.concat(a.TITLE,'"></div>'),item:'<li class="'.concat(a.LIST_ITEM,`" data-index={index}>
        <span class="`).concat(a.NAME,`">
          <span class="`).concat(a.MARKER,`" style="background:{color}"></span>
          <span class="`).concat(a.NAME_LABEL,`" title="{name}">{name}</span>
        </span>
        <span class="`).concat(a.VALUE,`" title="{value}">{value}</span>
      </li>`)},style:EJi(s)})||this,i.timestamp=-1,i.prevCustomContentKey=i.attributes.contentKey,i.initShape(),i.render(i.attributes,i),i}return Object.defineProperty(t.prototype,"HTMLTooltipElement",{get:function(){return this.element},enumerable:!1,configurable:!0}),t.prototype.getContainer=function(){return this.element},Object.defineProperty(t.prototype,"elementSize",{get:function(){var n=this.element.offsetWidth,i=this.element.offsetHeight;return{width:n,height:i}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HTMLTooltipItemsElements",{get:function(){var n=this.attributes,i=n.data,r=n.template;return i.map(function(o,s){var a=o.name,l=a===void 0?"":a,c=o.color,u=c===void 0?"black":c,d=o.index,h=ou(o,["name","color","index"]),f=Zn({name:l,color:u,index:d??s},h);return(0,QMe.createDOM)((0,QMe.substitute)(r.item,f))})},enumerable:!1,configurable:!0}),t.prototype.render=function(n,i){this.renderHTMLTooltipElement(),this.updatePosition()},t.prototype.destroy=function(){var n;(n=this.element)===null||n===void 0||n.remove(),e.prototype.destroy.call(this)},t.prototype.show=function(n,i){var r=this;if(n!==void 0&&i!==void 0){var o=this.element.style.visibility==="hidden",s=function(){r.attributes.x=n??r.attributes.x,r.attributes.y=i??r.attributes.y,r.updatePosition()};o?this.closeTransition(s):s()}this.element.style.visibility="visible"},t.prototype.hide=function(n,i){n===void 0&&(n=0),i===void 0&&(i=0);var r=this.attributes.enterable;r&&this.isCursorEntered(n,i)||(this.element.style.visibility="hidden")},t.prototype.initShape=function(){var n=this.attributes.template;this.element=(0,QMe.createDOM)(n.container),this.id&&this.element.setAttribute("id",this.id)},t.prototype.renderCustomContent=function(){if(!(this.prevCustomContentKey!==void 0&&this.prevCustomContentKey===this.attributes.contentKey)){this.prevCustomContentKey=this.attributes.contentKey;var n=this.attributes.content;n&&(typeof n=="string"?this.element.innerHTML=n:T2t(this.element,n))}},t.prototype.renderHTMLTooltipElement=function(){var n,i,r=this.attributes,o=r.template,s=r.title,a=r.enterable,l=r.style,c=r.content,u=mje(o.prefixCls),d=this.element;if(this.element.style.pointerEvents=a?"auto":"none",c)this.renderCustomContent();else{s?(d.innerHTML=o.title,d.getElementsByClassName(u.TITLE)[0].innerHTML=s):(i=(n=d.getElementsByClassName(u.TITLE))===null||n===void 0?void 0:n[0])===null||i===void 0||i.remove();var h=this.HTMLTooltipItemsElements,f=document.createElement("ul");f.className=u.LIST,T2t(f,h);var p=this.element.querySelector(".".concat(u.LIST));p?p.replaceWith(f):d.appendChild(f)}RQi(d,l)},t.prototype.getRelativeOffsetFromCursor=function(n){var i=this.attributes,r=i.position,o=i.offset,s=n||r,a=s.split("-"),l={left:[-1,0],right:[1,0],top:[0,-1],bottom:[0,1]},c=this.elementSize,u=c.width,d=c.height,h=[-u/2,-d/2];return a.forEach(function(f){var p=Et(h,2),g=p[0],m=p[1],v=Et(l[f],2),y=v[0],b=v[1];h=[g+(u/2+o[0])*y,m+(d/2+o[1])*b]}),h},t.prototype.setOffsetPosition=function(n){var i=Et(n,2),r=i[0],o=i[1],s=this.attributes,a=s.x,l=a===void 0?0:a,c=s.y,u=c===void 0?0:c,d=s.container,h=d.x,f=d.y;this.element.style.left="".concat(+l+h+r,"px"),this.element.style.top="".concat(+u+f+o,"px")},t.prototype.updatePosition=function(){var n=this.attributes.showDelay,i=n===void 0?60:n,r=Date.now();this.timestamp>0&&r-this.timestamp<i||(this.timestamp=r,this.setOffsetPosition(this.autoPosition(this.getRelativeOffsetFromCursor())))},t.prototype.autoPosition=function(n){var i=Et(n,2),r=i[0],o=i[1],s=this.attributes,a=s.x,l=s.y,c=s.bounding,u=s.position;if(!c)return[r,o];var d=this.element,h=d.offsetWidth,f=d.offsetHeight,p=Et([+a+r,+l+o],2),g=p[0],m=p[1],v={left:"right",right:"left",top:"bottom",bottom:"top"},y=c.x,b=c.y,w=c.width,E=c.height,A={left:g<y,right:g+h>y+w,top:m<b,bottom:m+f>b+E},D=[];u.split("-").forEach(function(M){A[M]?D.push(v[M]):D.push(M)});var T=D.join("-");return this.getRelativeOffsetFromCursor(T)},t.prototype.isCursorEntered=function(n,i){if(this.element){var r=this.element.getBoundingClientRect(),o=r.x,s=r.y,a=r.width,l=r.height;return new wv(o,s,a,l).isPointIn(n,i)}return!1},t.prototype.closeTransition=function(n){var i=this,r=this.element.style.transition;this.element.style.transition="none",n(),setTimeout(function(){i.element.style.transition=r},10)},t.tag="tooltip",t})(Sd);Wn();Wn();var DJi=(function(e){Ss(t,e);function t(n){var i=e.call(this,ff({},t.defaultOptions,n))||this;return i.hoverColor="#f5f5f5",i.selectedColor="#e6f7ff",i.background=i.appendChild(new kp({})),i.label=i.background.appendChild(new qf({})),i}return Object.defineProperty(t.prototype,"padding",{get:function(){return yg(this.style.padding)},enumerable:!1,configurable:!0}),t.prototype.renderLabel=function(){var n=this.style,i=n.label,r=n.value,o=bs(this.attributes,"label");Rr(this.label).maybeAppend(".label",function(){return nT(i)}).attr("className","label").styles(o),this.label.attr("__data__",r)},t.prototype.renderBackground=function(){var n=this.label.getBBox(),i=Et(this.padding,4),r=i[0],o=i[1],s=i[2],a=i[3],l=n.width,c=n.height,u=l+a+o,d=c+r+s,h=bs(this.attributes,"background"),f=this.style,p=f.width,g=p===void 0?0:p,m=f.height,v=m===void 0?0:m,y=f.selected;this.background.attr(Zn(Zn({},h),{width:Math.max(u,g),height:Math.max(d,v),fill:y?this.selectedColor:"#fff"})),this.label.attr({transform:"translate(".concat(a,", ").concat((d-c)/2,")")})},t.prototype.render=function(){this.renderLabel(),this.renderBackground()},t.prototype.bindEvents=function(){var n=this;this.addEventListener("pointerenter",function(){n.style.selected||n.background.attr("fill",n.hoverColor)}),this.addEventListener("pointerleave",function(){n.style.selected||n.background.attr("fill",n.style.backgroundFill)});var i=this;this.addEventListener("click",function(){var r=n.style,o=r.label,s=r.value,a=r.onClick;a?.(s,{label:o,value:s},i)})},t.defaultOptions={style:{value:"",label:"",cursor:"pointer"}},t})(Sd),TJi=(function(e){Ss(t,e);function t(n){var i,r,o=e.call(this,ff({},t.defaultOptions,n))||this;o.currentValue=(i=t.defaultOptions.style)===null||i===void 0?void 0:i.defaultValue,o.isPointerInSelect=!1,o.select=o.appendChild(new kp({className:"select",style:{cursor:"pointer",width:0,height:0}})),o.dropdown=o.appendChild(new kp({className:"dropdown"}));var s=o.style.defaultValue;return s&&(!((r=o.style.options)===null||r===void 0)&&r.some(function(a){return a.value===s}))&&(o.currentValue=s),o}return t.prototype.setValue=function(n){this.currentValue=n,this.render()},t.prototype.getValue=function(){return this.currentValue},Object.defineProperty(t.prototype,"dropdownPadding",{get:function(){return yg(this.style.dropdownPadding)},enumerable:!1,configurable:!0}),t.prototype.renderSelect=function(){var n=this,i,r=this.style,o=r.x,s=r.y,a=r.width,l=r.height,c=r.bordered,u=r.showDropdownIcon,d=bs(this.attributes,"select"),h=bs(this.attributes,"placeholder");this.select.attr(Zn(Zn({x:o,y:s,width:a,height:l},d),{fill:"#fff",strokeWidth:c?1:0}));var f=this.dropdownPadding,p=10;u&&Rr(this.select).maybeAppend(".dropdown-icon","path").style("d","M-5,-3.5 L0,3.5 L5,-3.5").style("transform","translate(".concat(o+a-p-f[1]-f[3],", ").concat(s+l/2,")")).style("lineWidth",1).style("stroke",this.select.style.stroke);var g=(i=this.style.options)===null||i===void 0?void 0:i.find(function(b){return b.value===n.currentValue}),m=Zn({x:o+f[3]},h);Rr(this.select).selectAll(".placeholder").data(g?[]:[1]).join(function(b){return b.append("text").attr("className","placeholder").styles(m).style("y",function(){var w=this.getBBox();return s+(l-w.height)/2})},function(b){return b.styles(m)},function(b){return b.remove()});var v=bs(this.attributes,"optionLabel"),y=Zn({x:o+f[3]},v);Rr(this.select).selectAll(".value").data(g?[g]:[]).join(function(b){return b.append(function(w){return nT(w.label)}).attr("className","value").styles(y).style("y",function(){var w=this.getBBox();return s+(l-w.height)/2})},function(b){return b.styles(y)},function(b){return b.remove()})},t.prototype.renderDropdown=function(){var n=this,i,r,o=this.style,s=o.x,a=o.y,l=o.width,c=o.height,u=o.options,d=o.onSelect,h=o.open,f=bs(this.attributes,"dropdown"),p=bs(this.attributes,"option"),g=this.dropdownPadding;Rr(this.dropdown).maybeAppend(".dropdown-container","g").attr("className","dropdown-container").selectAll(".dropdown-item").data(u,function(y){return y.value}).join(function(y){return y.append(function(b){return new DJi({className:"dropdown-item",style:Zn(Zn(Zn({},b),p),{width:l-g[1]-g[3],selected:b.value===n.currentValue,onClick:function(w,E,A){n.setValue(w),d?.(w,E,A),n.dispatchEvent(new of("change",{detail:{value:w,option:E,item:A}})),eC(n.dropdown)}})})}).each(function(b,w){var E,A=(E=this.parentNode)===null||E===void 0?void 0:E.children,D=A.reduce(function(T,M,P){return P<w&&(T+=M.getBBox().height),T},0);this.attr("transform","translate(".concat(g[3],", ").concat(g[0]+D,")"))})},function(y){return y.update(function(b){return{selected:b.value===n.currentValue}})},function(y){return y.remove()});var m=(r=(i=this.dropdown.getElementsByClassName("dropdown-container"))===null||i===void 0?void 0:i[0])===null||r===void 0?void 0:r.getBBox(),v=f.spacing;this.dropdown.attr(Zn({transform:"translate(".concat(s,", ").concat(a+c+v,")"),width:m.width+g[1]+g[3],height:m.height+g[0]+g[2]},f)),!h&&eC(this.dropdown)},t.prototype.render=function(){this.renderSelect(),this.renderDropdown()},t.prototype.bindEvents=function(){var n=this;this.addEventListener("click",function(i){i.stopPropagation()}),this.select.addEventListener("click",function(){n.dropdown.style.visibility==="visible"?eC(n.dropdown):aZ(n.dropdown)}),this.addEventListener("pointerenter",function(){n.isPointerInSelect=!0}),this.addEventListener("pointerleave",function(){n.isPointerInSelect=!1}),document?.addEventListener("click",function(){n.isPointerInSelect||eC(n.dropdown)})},t.defaultOptions={style:{x:0,y:0,width:140,height:32,options:[],bordered:!0,defaultValue:"",selectRadius:8,selectStroke:"#d9d9d9",showDropdownIcon:!0,placeholderText:"请选择",placeholderFontSize:12,placeholderTextBaseline:"top",placeholderFill:"#c2c2c2",dropdownFill:"#fff",dropdownStroke:"#d9d9d9",dropdownRadius:8,dropdownShadowBlur:4,dropdownShadowColor:"rgba(0, 0, 0, 0.08)",dropdownPadding:8,dropdownSpacing:10,optionPadding:[8,12],optionFontSize:12,optionTextBaseline:"top",optionBackgroundFill:"#fff",optionBackgroundRadius:4,optionLabelFontSize:12,optionLabelTextBaseline:"top"}},t})(Sd);Wn();var iFt=on(Pi());Wn();Wn();var rFt=on(Pi()),nS=(function(e){Ss(t,e);function t(n){var i=e.call(this,ff({},{style:{backgroundOpacity:t.backgroundOpacities.default}},t.defaultOptions,n))||this;return i.showBackground=!0,i.background=i.appendChild(new kp({})),i.icon=i.appendChild(new qf({})),i}return Object.defineProperty(t.prototype,"label",{get:function(){return"BaseIcon"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineWidth",{get:function(){return Math.log10(this.attributes.size)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"padding",{get:function(){return yg(this.attributes.size/5)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconSize",{get:function(){var n=this.attributes.size,i=Et(this.padding,4),r=i[0],o=i[1],s=i[2],a=i[3];return Math.max(n-Math.max(a+o,r+s),this.lineWidth*2+1)},enumerable:!1,configurable:!0}),t.prototype.renderBackground=function(){var n=this.attributes,i=n.x,r=n.y,o=n.size,s=o/2,a=bs(this.attributes,"background");this.background.attr(Zn({x:i-s,y:r-s,width:o,height:o},a))},t.prototype.showIndicator=function(){if(this.label){var n=this.attributes.size,i=this.background.getBBox(),r=i.x,o=i.y;this.indicator.update({x:r+n/2,y:o-5,labelText:this.label,visibility:"visible"})}},t.prototype.hideIndicator=function(){this.indicator.update({visibility:"hidden"})},t.prototype.connectedCallback=function(){var n;e.prototype.connectedCallback.call(this);var i=this.attributes.size,r=this.background.getBBox(),o=r.x,s=r.y,a=(n=this.ownerDocument)===null||n===void 0?void 0:n.defaultView;a&&(this.indicator=a.appendChild(new xJi({style:{x:o+i/2,y:s-i/2,visibility:"hidden",position:"top",radius:3,zIndex:100}})))},t.prototype.disconnectedCallback=function(){this.indicator.destroy()},t.prototype.render=function(){this.renderIcon(),this.showBackground&&this.renderBackground()},t.prototype.bindEvents=function(){var n=this,i=this.attributes.onClick;if(this.addEventListener("click",function(){i?.(n)}),this.showBackground){var r=function(){return n.background.attr({opacity:t.backgroundOpacities.default})},o=function(){return n.background.attr({opacity:t.backgroundOpacities.hover})},s=function(){return n.background.attr({opacity:t.backgroundOpacities.active})};this.addEventListener("pointerenter",function(){o(),n.showIndicator()}),this.addEventListener("pointerleave",function(){r(),n.hideIndicator()}),this.addEventListener("pointerdown",function(){s()}),this.addEventListener("pointerup",function(){r()})}},t.tag="IconBase",t.defaultOptions={style:{x:0,y:0,size:10,color:"#565758",backgroundRadius:4,backgroundFill:"#e2e2e2"}},t.backgroundOpacities={default:0,hover:.8,active:1},t})(Sd),cK=function(e,t){return t===void 0&&(t="#565758"),new $y({style:{fill:t,d:"M ".concat(e,",").concat(e," L -").concat(e,",0 L ").concat(e,",-").concat(e," Z"),transformOrigin:"center"}})},kJi=(function(e){Ss(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.arcPath=function(n,i,r){var o=Et([r,r],2),s=o[0],a=o[1],l=function(g){return[n+r*Math.cos(g),i+r*Math.sin(g)]},c=Et(l(-5/4*Math.PI),2),u=c[0],d=c[1],h=Et(l(1/4*Math.PI),2),f=h[0],p=h[1];return"M".concat(u,",").concat(d,",A").concat(s,",").concat(a,",0,1,1,").concat(f,",").concat(p)},Object.defineProperty(t.prototype,"label",{get:function(){return"重置"},enumerable:!1,configurable:!0}),t.prototype.renderIcon=function(){var n=this.attributes,i=n.x,r=n.y,o=n.color,s=this.iconSize,a=this.lineWidth,l=a+.5;Rr(this.icon).maybeAppend(".reset","path").styles({stroke:o,lineWidth:a,d:this.arcPath(i,r,s/2-a),markerStart:cK(l,o)})},t})(nS),IJi=(function(e){Ss(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"label",{get:function(){return"快退"},enumerable:!1,configurable:!0}),t.prototype.renderIcon=function(){var n=this.attributes,i=n.x,r=n.y,o=n.color,s=this.iconSize,a=s/2,l=s/2/Math.pow(3,.5),c=[[i,r],[i,r-l],[i-a,r],[i,r+l],[i,r],[i+a,r-l],[i+a,r+l],[i,r]];Rr(this.icon).maybeAppend(".backward","polygon").styles({points:c,fill:o})},t})(nS),LJi=(function(e){Ss(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"label",{get:function(){return"快进"},enumerable:!1,configurable:!0}),t.prototype.renderIcon=function(){var n=this.attributes,i=n.x,r=n.y,o=n.color,s=this.iconSize,a=s/2,l=s/2/Math.pow(3,.5),c=[[i,r],[i,r-l],[i+a,r],[i,r+l],[i,r],[i-a,r-l],[i-a,r+l],[i,r]];Rr(this.icon).maybeAppend(".forward","polygon").styles({points:c,fill:o})},t})(nS),NJi=(function(e){Ss(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"label",{get:function(){return"播放"},enumerable:!1,configurable:!0}),t.prototype.renderIcon=function(){var n=this.attributes,i=n.x,r=n.y,o=n.color,s=this.iconSize,a=s/3*Math.pow(3,.5)*.8,l=[[i+a,r],[i-a/2,r-s/2*.8],[i-a/2,r+s/2*.8],[i+a,r]];Rr(this.icon).maybeAppend(".play","polygon").styles({points:l,fill:o})},t})(nS),PJi=(function(e){Ss(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"label",{get:function(){return"暂停"},enumerable:!1,configurable:!0}),t.prototype.renderIcon=function(){var n=this.attributes,i=n.x,r=n.y,o=n.color,s=this.iconSize,a=s/3,l=[[i-a,r-s/2],[i-a,r+s/2],[i-a/2,r+s/2],[i-a/2,r-s/2],[i-a,r-s/2],[i+a/2,r-s/2],[i+a/2,r+s/2],[i+a,r+s/2],[i+a,r-s/2]];Rr(this.icon).maybeAppend(".pause","polygon").styles({points:l,fill:o})},t})(nS),MJi=(function(e){Ss(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"label",{get:function(){return"范围时间"},enumerable:!1,configurable:!0}),t.prototype.renderIcon=function(){var n=this.attributes,i=n.x,r=n.y,o=n.color,s=this,a=s.iconSize,l=s.lineWidth,c=l;Rr(this.icon).maybeAppend(".left-line","line").styles({x1:i-a/2,y1:r-a/2,x2:i-a/2,y2:r+a/2,stroke:o,lineWidth:l}),Rr(this.icon).maybeAppend(".right-line","line").styles({x1:i+a/2,y1:r-a/2,x2:i+a/2,y2:r+a/2,stroke:o,lineWidth:l}),Rr(this.icon).maybeAppend(".left-arrow","line").styles({x1:i,y1:r,x2:i-a/2+c*2,y2:r,stroke:o,lineWidth:l,markerEnd:cK(l*2,o)}),Rr(this.icon).maybeAppend(".right-arrow","line").styles({x1:i,y1:r,x2:i+a/2-c*2,y2:r,stroke:o,lineWidth:l,markerEnd:cK(l*2,o)})},t})(nS),OJi=(function(e){Ss(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"label",{get:function(){return"单一时间"},enumerable:!1,configurable:!0}),t.prototype.renderIcon=function(){var n=this.attributes,i=n.x,r=n.y,o=n.color,s=this,a=s.iconSize,l=s.lineWidth;Rr(this.icon).maybeAppend(".line","line").styles({x1:i,y1:r-a/2,x2:i,y2:r+a/2,stroke:o,lineWidth:l});var c=l;Rr(this.icon).maybeAppend(".left-arrow","line").styles({x1:i-a/2-c*2,y1:r,x2:i-c*2,y2:r,stroke:o,lineWidth:l,markerEnd:cK(l*2,o)}),Rr(this.icon).maybeAppend(".right-arrow","line").styles({x1:i+a/2+c*2,y1:r,x2:i+c*2,y2:r,stroke:o,lineWidth:l,markerEnd:cK(l*2,o)})},t})(nS),iSn=function(e){return[[-e/2,-e/2],[-e/2,e/2],[e/2,e/2]]},RJi=(function(e){Ss(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"label",{get:function(){return"折线图"},enumerable:!1,configurable:!0}),t.prototype.renderIcon=function(){var n=this.attributes,i=n.x,r=n.y,o=n.color,s=this,a=s.iconSize,l=s.lineWidth,c=l,u=(a-c*2-l)/4,d=(a-c*2-l)/2,h=Et([i-a/2+c,r+a/2-c*2],2),f=h[0],p=h[1];Rr(this.icon).maybeAppend(".coordinate","polyline").styles({points:iSn(a).map(function(g){var m=Et(g,2),v=m[0],y=m[1];return[v+i,y+r]}),stroke:o,lineWidth:l}),Rr(this.icon).maybeAppend(".line","polyline").styles({points:[[f,p],[f+u,p-d],[f+u*2,p],[f+u*4,p-d*2]],stroke:o,lineWidth:l})},t})(nS),FJi=(function(e){Ss(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"label",{get:function(){return"条形图"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return[1,4,2,4,3]},enumerable:!1,configurable:!0}),t.prototype.renderIcon=function(){var n=this.data,i=this.attributes,r=i.x,o=i.y,s=i.color,a=this,l=a.iconSize,c=a.lineWidth,u=c,d=(l-u)/n.length,h=(l-u*2)/4,f=Et([r-l/2+u*2,o+l/2-u],2),p=f[0],g=f[1];Rr(this.icon).maybeAppend(".coordinate","polyline").styles({points:iSn(l).map(function(m){var v=Et(m,2),y=v[0],b=v[1];return[y+r,b+o]}),stroke:s,lineWidth:c}),Rr(this.icon).maybeAppend(".bars","g").selectAll(".column").data(this.data.map(function(m,v){return{value:m,index:v}})).join(function(m){return m.append("line").attr("className","column").style("x1",function(v){var y=v.index;return p+d*y}).style("y1",g).style("x2",function(v){var y=v.index;return p+d*y}).style("y2",function(v){var y=v.value;return g-h*y}).styles({y1:g,stroke:s,lineWidth:c})})},t})(nS),BJi=(function(e){Ss(t,e);function t(n){var i=e.call(this,ff({},{style:{color:"#d8d9d9"}},n))||this;return i.showBackground=!1,i}return t.prototype.renderIcon=function(){var n=this.attributes,i=n.x,r=n.y,o=n.color,s=this,a=s.iconSize,l=s.lineWidth;Rr(this.icon).maybeAppend(".split","line").styles({x1:i,y1:r-a/2,x2:i,y2:r+a/2,stroke:o,lineWidth:l})},t})(nS),vje=(function(e){Ss(t,e);function t(){var n=e.apply(this,Hr([],Et(arguments),!1))||this;return n.showBackground=!1,n}return Object.defineProperty(t.prototype,"padding",{get:function(){return yg(0)},enumerable:!1,configurable:!0}),t.prototype.renderIcon=function(){var n=this.iconSize,i=this.attributes,r=i.x,o=i.y,s=i.speed,a=s===void 0?1:s,l=(0,rFt.omit)(this.attributes,["x","y","transform","transformOrigin","width","height","size","color","speed"]),c=(0,rFt.clamp)(n,20,1/0),u=20,d=Zn(Zn({},l),{x:r-c/2,y:o-u/2,width:c,height:u,defaultValue:a,bordered:!1,showDropdownIcon:!1,selectRadius:2,dropdownPadding:this.padding,dropdownRadius:2,dropdownSpacing:n/5,placeholderFontSize:n/2,optionPadding:0,optionLabelFontSize:n/2,optionBackgroundRadius:1,options:[{label:"1x",value:1},{label:"1.5x",value:1.5},{label:"2x",value:2}]});Rr(this.icon).maybeAppend(".speed",function(){return new TJi({style:d})}).attr("className","speed").each(function(){this.update(d)})},t.tag="SpeedSelect",t})(nS),XZe=(function(e){Ss(t,e);function t(n){var i=e.call(this,n)||this;return i.icon=i.appendChild(new qf({})),i.currentType=i.attributes.type,i}return t.prototype.getType=function(){return this.currentType},t.prototype.render=function(){var n=this,i=this.attributes;i.onChange;var r=ou(i,["onChange"]);Rr(this.icon).selectAll(".icon").data([this.currentType]).join(function(o){return o.append(function(s){var a,l=(a=n.toggles.find(function(c){var u=Et(c,1),d=u[0];return d===s}))===null||a===void 0?void 0:a[1];if(!l)throw new Error("Invalid type: ".concat(s));return new l({})}).attr("className","icon").styles(r,!1).update({})},function(o){return o.styles({restStyles:r}).update({})},function(o){return o.remove()})},t.prototype.bindEvents=function(){var n=this,i=this.attributes.onChange;this.addEventListener("click",function(r){r.preventDefault(),r.stopPropagation();var o=(n.toggles.findIndex(function(a){var l=Et(a,1),c=l[0];return c===n.currentType})+1)%n.toggles.length,s=n.toggles[o][0];i?.(n.currentType),n.currentType=s,n.render()})},t.tag="ToggleIcon",t})(Sd),yje=(function(e){Ss(t,e);function t(n){var i=e.call(this,ff({},{style:{type:"play"}},n))||this;return i.toggles=[["play",NJi],["pause",PJi]],i}return t})(XZe),bje=(function(e){Ss(t,e);function t(n){var i=e.call(this,ff({},{style:{type:"range"}},n))||this;return i.toggles=[["range",MJi],["value",OJi]],i}return t})(XZe),_je=(function(e){Ss(t,e);function t(n){var i=e.call(this,ff({},{style:{type:"column"}},n))||this;return i.toggles=[["line",RJi],["column",FJi]],i}return t})(XZe),jJi={reset:kJi,speed:vje,backward:IJi,playPause:yje,forward:LJi,selectionType:bje,chartType:_je,split:BJi},zJi=(function(e){Ss(t,e);function t(n){var i=e.call(this,ff({},t.defaultOptions,n))||this;return i.background=i.appendChild(new kp({})),i.functions=i.appendChild(new qf({})),i}return Object.defineProperty(t.prototype,"padding",{get:function(){return yg(this.attributes.padding)},enumerable:!1,configurable:!0}),t.prototype.renderBackground=function(){var n=this.style,i=n.x,r=n.y,o=n.width,s=n.height,a=bs(this.attributes,"background");this.background.attr(Zn({x:i,y:r,width:o,height:s},a))},t.prototype.renderFunctions=function(){var n=this,i,r=this.attributes,o=r.functions,s=r.iconSize,a=r.iconSpacing,l=r.x,c=r.y,u=r.width,d=r.height,h=r.align,f=Et(this.padding,4),p=f[1],g=f[3],m=o.reduce(function(b,w){return b.length&&w.length?b.concat.apply(b,Hr(["split"],Et(w),!1)):b.concat.apply(b,Hr([],Et(w),!1))},[]),v=m.length*(s+a)-a,y={left:g+s/2,center:(u-v)/2+s/2,right:u-v-g-p+s/2}[h]||0;(i=this.speedSelect)===null||i===void 0||i.destroy(),this.functions.removeChildren(),m.forEach(function(b,w){var E,A=jJi[b],D={x:l+w*(s+a)+y,y:c+d/2,size:s};if(A===vje?(D.speed=n.attributes.speed,D.onSelect=function(M){return n.handleFunctionChange(b,{value:M})}):[yje,bje,_je].includes(A)?(D.onChange=function(M){return n.handleFunctionChange(b,{value:M})},A===yje&&(D.type=n.attributes.state==="play"?"pause":"play"),A===bje&&(D.type=n.attributes.selectionType==="range"?"value":"range"),A===_je&&(D.type=n.attributes.chartType==="line"?"column":"line")):D.onClick=function(){return n.handleFunctionChange(b,{value:b})},A===vje){var T=(E=n.ownerDocument)===null||E===void 0?void 0:E.defaultView;T&&(n.speedSelect=new A({style:Zn(Zn({},D),{zIndex:100})}),T.appendChild(n.speedSelect))}else n.functions.appendChild(new A({style:D}))})},t.prototype.disconnectedCallback=function(){var n;e.prototype.disconnectedCallback.call(this),(n=this.speedSelect)===null||n===void 0||n.destroy()},t.prototype.render=function(){this.renderBackground(),this.renderFunctions()},t.prototype.handleFunctionChange=function(n,i){var r=this.attributes.onChange;r?.(n,i)},t.defaultOptions={style:{x:0,y:0,width:300,height:40,padding:0,align:"center",iconSize:25,iconSpacing:0,speed:1,state:"pause",chartType:"line",selectionType:"range",backgroundFill:"#fbfdff",backgroundStroke:"#ebedf0",functions:[["reset","speed"],["backward","playPause","forward"],["selectionType","chartType"]]}},t})(Sd);Wn();var VJi=(function(e){Ss(t,e);function t(n){var i=e.call(this,ff({},t.defaultOptions,n))||this;return i.bindEvents(),i}return t.prototype.bindEvents=function(){var n=this;this.addEventListener("mouseenter",function(){n.attr("lineWidth",Math.ceil(+(n.style.r||0)/2))}),this.addEventListener("mouseleave",function(){n.attr("lineWidth",0)})},t.defaultOptions={style:{r:5,fill:"#3f7cf7",lineWidth:0,stroke:"#3f7cf7",strokeOpacity:.5,cursor:"pointer"}},t})(NC),HJi=(function(e){Ss(t,e);function t(n){return e.call(this,ff({},t.defaultOptions,n))||this}return t.prototype.renderBackground=function(){var n=this.attributes,i=n.x,r=n.y,o=n.width,s=n.height,a=bs(this.attributes,"background");Rr(this).maybeAppend("background","rect").attr("className","background").styles(Zn({x:i-o/2,y:r-s/2,width:o,height:s},a))},t.prototype.renderIcon=function(){var n=this.attributes,i=n.x,r=n.y,o=n.iconSize,s=bs(this.attributes,"icon"),a=1,l=o/2;Rr(this).maybeAppend("icon-left-line","line").attr("className","icon-left-line").styles(Zn({x1:i-a,y1:r-l,x2:i-a,y2:r+l},s)),Rr(this).maybeAppend("icon-right-line","line").attr("className","icon-right-line").styles(Zn({x1:i+a,y1:r-l,x2:i+a,y2:r+l},s))},t.prototype.renderBorder=function(){var n=this.attributes,i=n.x,r=n.y,o=n.width,s=n.height,a=n.type,l=bs(this.attributes,"border"),c=a==="start"?+o/2:-o/2;Rr(this).maybeAppend("border","line").attr("className","border").styles(Zn({x1:c+i,y1:r-s/2,x2:c+i,y2:r+s/2},l))},t.prototype.render=function(){this.renderBackground(),this.renderIcon(),this.renderBorder()},t.defaultOptions={style:{x:0,y:0,width:10,height:50,iconSize:10,type:"start",backgroundFill:"#fff",backgroundFillOpacity:.5,iconStroke:"#9a9a9a",iconLineWidth:1,borderStroke:"#e8e8e8",borderLineWidth:1}},t})(Sd);function WJi(e,t){return typeof e=="number"?rSn(e):UJi(e,t)}function UJi(e,t){var n=new Date(e);switch(t){case"half-hour":case"hour":case"four-hour":return[0,6,12,18].includes(n.getHours())&&n.getMinutes()===0?s0(n,`HH:mm
YYYY-MM-DD`):s0(n,"HH:mm");case"half-day":return n.getHours()<12?`AM
`.concat(s0(n,"YYYY-MM-DD")):"PM";case"day":return[1,10,20].includes(n.getDate())?s0(n,`DD
YYYY-MM`):s0(n,"DD");case"week":return n.getDate()<=7?s0(n,`DD
YYYY-MM`):s0(n,"DD");case"month":return[0,6].includes(n.getMonth())?s0(n,`MM月
YYYY`):s0(n,"MM月");case"season":return[0].includes(n.getMonth())?s0(n,`MM月
YYYY`):s0(n,"MM月");case"year":return s0(n,"YYYY");default:return s0(n,"YYYY-MM-DD HH:mm")}}function rSn(e){var t=String(Math.floor(e/3600)).padStart(2,"0"),n=String(Math.floor(e%3600/60)).padStart(2,"0"),i=String(Math.floor(e%60)).padStart(2,"0");return e<3600?"".concat(n,":").concat(i):"".concat(t,":").concat(n,":").concat(i)}var $Ji=(function(e){Ss(t,e);function t(n){var i=e.call(this,ff({},t.defaultOptions,n))||this;i.axis=i.appendChild(new JXi({style:{type:"linear",startPos:[0,0],endPos:[0,0],data:[],showArrow:!1,animate:!1}})),i.timeline=i.appendChild(new YZi({style:{onChange:function(d){i.handleSliderChange(d)}}})),i.controller=i.appendChild(new zJi({})),i.states={},i.handleSliderChange=function(d){var h=(function(){var f=i.states.values;return Array.isArray(f)?Hr([],Et(f),!1):f})();i.setBySliderValues(d),i.dispatchOnChange(h)};var r=i.attributes,o=r.selectionType,s=r.chartType,a=r.speed,l=r.state,c=r.playMode,u=r.values;return i.states={chartType:s,playMode:c,selectionType:o,speed:a,state:l},i.setByTimebarValues(u),i}return Object.defineProperty(t.prototype,"data",{get:function(){var n=this.attributes.data,i=function(r,o){return r.time<o.time?-1:r.time>o.time?1:0};return n.sort(i)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"space",{get:function(){var n=this.attributes,i=n.x,r=n.y,o=n.width,s=n.height,a=n.type,l=n.controllerHeight,c=(0,iFt.clamp)(+s-l,0,+s),u=new wv(i,r+ +s-l,+o,l),d,h=0;a==="chart"?(h=35,d=new wv(i,r+c-h,+o,h)):d=new wv;var f=a==="time"?10:c,p=new wv(i,r+(a==="time"?c:c-f),+o,f-h);return{axisBBox:d,controllerBBox:u,timelineBBox:p}},enumerable:!1,configurable:!0}),t.prototype.setBySliderValues=function(n){var i,r,o=this.data,s=Et(Array.isArray(n)?n:[0,n],2),a=s[0],l=s[1],c=o.length,u=o[Math.floor(a*c)],d=o[Math.ceil(l*c)-(Array.isArray(n)?0:1)];this.states.values=[(i=u?.time)!==null&&i!==void 0?i:o[0].time,(r=d?.time)!==null&&r!==void 0?r:1/0]},t.prototype.setByTimebarValues=function(n){var i,r,o,s=this.data,a=Et(Array.isArray(n)?n:[void 0,n],2),l=a[0],c=a[1],u=s.find(function(h){var f=h.time;return f===l}),d=s.find(function(h){var f=h.time;return f===c});this.states.values=[(i=u?.time)!==null&&i!==void 0?i:(r=s[0])===null||r===void 0?void 0:r.time,(o=d?.time)!==null&&o!==void 0?o:1/0]},t.prototype.setByIndex=function(n){var i,r,o,s,a=this.data,l=Et(n,2),c=l[0],u=l[1];this.states.values=[(r=(i=a[c])===null||i===void 0?void 0:i.time)!==null&&r!==void 0?r:a[0].time,(s=(o=this.data[u])===null||o===void 0?void 0:o.time)!==null&&s!==void 0?s:1/0]},Object.defineProperty(t.prototype,"sliderValues",{get:function(){var n=this.states,i=n.values,r=n.selectionType,o=Et(Array.isArray(i)?i:[void 0,i],2),s=o[0],a=o[1],l=this.data,c=l.length,u=r==="value",d=function(){var f=l.findIndex(function(p){var g=p.time;return g===s});return u?0:f>-1?f/c:0},h=function(){if(a===1/0)return 1;var f=l.findIndex(function(p){var g=p.time;return g===a});return f>-1?f/c:u?.5:1};return[d(),h()]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"values",{get:function(){var n=this.states,i=n.values,r=n.selectionType,o=Et(Array.isArray(i)?i:[this.data[0].time,i],2),s=o[0],a=o[1];return r==="value"?a:[s,a]},enumerable:!1,configurable:!0}),t.prototype.getDatumByRatio=function(n){var i=this.data,r=i.length,o=Math.floor(n*(r-1));return i[o]},Object.defineProperty(t.prototype,"chartHandleIconShape",{get:function(){var n=this.states.selectionType,i=this.space.timelineBBox.height;return n==="range"?function(r){return new HJi({style:{type:r,height:i,iconSize:i/6}})}:function(){return new N2({style:{x1:0,y1:-i/2,x2:0,y2:i/2,lineWidth:2,stroke:"#c8c8c8"}})}},enumerable:!1,configurable:!0}),t.prototype.getChartStyle=function(n){var i=this,r=n.x,o=n.y,s=n.width,a=n.height,l=this.states,c=l.selectionType,u=l.chartType,d=this.data,h=this.attributes,f=h.type,p=h.labelFormatter,g=bs(this.attributes,"chart");g.type;var m=ou(g,["type"]),v=c==="range";if(f==="time")return Zn({handleIconShape:function(){return new VJi({})},selectionFill:"#2e7ff8",selectionFillOpacity:1,showLabelOnInteraction:!0,handleLabelDy:v?-15:0,autoFitLabel:v,handleSpacing:v?-15:0,trackFill:"#edeeef",trackLength:s,trackOpacity:.5,trackRadius:a/2,trackSize:a/2,type:c,values:this.sliderValues,formatter:function(w){if(p)return p(w);var E=i.getDatumByRatio(w).time;return typeof E=="number"?rSn(E):s0(E,"YYYY-MM-DD HH:mm:ss")},transform:"translate(".concat(r,", ").concat(o,")"),zIndex:1},m);var y=c==="range"?5:0,b=d.map(function(w){var E=w.value;return E});return Zn({handleIconOffset:y,handleIconShape:this.chartHandleIconShape,selectionFill:"#fff",selectionFillOpacity:.5,selectionType:"invert",sparklineSpacing:.1,sparklineColumnLineWidth:0,sparklineColor:"#d4e5fd",sparklineAreaOpacity:1,sparklineAreaLineWidth:0,sparklineData:b,sparklineType:u,sparklineScale:.8,trackLength:s,trackSize:a,type:c,values:this.sliderValues,transform:"translate(".concat(r,", ").concat(o,")"),zIndex:1},m)},t.prototype.renderChart=function(n){n===void 0&&(n=this.space.timelineBBox),this.timeline.update(this.getChartStyle(n))},t.prototype.updateSelection=function(){this.timeline.setValues(this.sliderValues,!0),this.handleSliderChange(this.sliderValues)},t.prototype.getAxisStyle=function(n){var i=this.data,r=this.attributes,o=r.interval,s=r.labelFormatter,a=bs(this.attributes,"axis"),l=n.x,c=n.y,u=n.width,d=Hr(Hr([],Et(i),!1),[{time:0}],!1).map(function(f,p,g){var m=f.time;return{label:"".concat(m),value:p/(g.length-1),time:m}}),h=Zn({startPos:[l,c],endPos:[l+u,c],data:d,labelFilter:function(f,p){return p<d.length-1},labelFormatter:function(f){var p=f.time;return s?s(p):WJi(p,o)}},a);return h},t.prototype.renderAxis=function(n){n===void 0&&(n=this.space.axisBBox);var i=this.attributes.type;i==="chart"&&this.axis.update(this.getAxisStyle(n))},t.prototype.renderController=function(n){n===void 0&&(n=this.space.controllerBBox);var i=this.attributes.type,r=this.states,o=r.state,s=r.speed,a=r.selectionType,l=r.chartType,c=bs(this.attributes,"controller"),u=this,d=Zn(Zn(Zn({},n),{iconSize:20,speed:s,state:o,selectionType:a,chartType:l,onChange:function(h,f){var p=f.value;switch(h){case"reset":u.internalReset();break;case"speed":u.handleSpeedChange(p);break;case"backward":u.internalBackward();break;case"playPause":p==="play"?u.internalPlay():u.internalPause();break;case"forward":u.internalForward();break;case"selectionType":u.handleSelectionTypeChange(p);break;case"chartType":u.handleChartTypeChange(p);break}}}),c);i==="time"&&(d.functions=[["reset","speed"],["backward","playPause","forward"],["selectionType"]]),this.controller.update(d)},t.prototype.dispatchOnChange=function(n){var i=this.data,r=this.attributes.onChange,o=this.states,s=o.values,a=o.selectionType,l=Et(s,2),c=l[0],u=l[1],d=u===1/0?i.at(-1).time:u,h=a==="range"?[c,d]:d,f=function(p,g){return Array.isArray(p)?Array.isArray(g)?p[0]===g[0]&&(p[1]===g[1]||p[1]===1/0||g[1]===1/0):!1:Array.isArray(g)?!1:p===g};(!n||!f(n,h))&&r?.(a==="range"?[c,d]:d)},t.prototype.internalReset=function(n){var i,r,o=this.states.selectionType;this.internalPause(),this.setBySliderValues(o==="range"?[0,1]:[0,0]),this.renderController(),this.updateSelection(),n||((r=(i=this.attributes)===null||i===void 0?void 0:i.onReset)===null||r===void 0||r.call(i),this.dispatchOnChange())},t.prototype.reset=function(){this.internalReset()},t.prototype.moveSelection=function(n,i){var r=this.data,o=r.length,s=this.states,a=s.values,l=s.selectionType,c=s.playMode,u=Et(a,2),d=u[0],h=u[1],f=r.findIndex(function(b){var w=b.time;return w===d}),p=r.findIndex(function(b){var w=b.time;return w===h});p===-1&&(p=o);var g=n==="backward"?-1:1,m;l==="range"?c==="acc"?(m=[f,p+g],g===-1&&f===p&&(m=[f,o])):m=[f+g,p+g]:m=[f,p+g];var v=function(b){var w=Et(b.sort(function(T,M){return T-M}),2),E=w[0],A=w[1],D=function(T){return(0,iFt.clamp)(T,0,o)};return A>o?l==="value"?[0,0]:c==="acc"?[D(E),D(E)]:[0,D(A-E)]:E<0?c==="acc"?[0,D(A)]:[D(E+o-A),o]:[D(E),D(A)]},y=v(m);return this.setByIndex(y),this.updateSelection(),y},t.prototype.internalBackward=function(n){var i,r,o=this.moveSelection("backward",n);return n||((r=(i=this.attributes)===null||i===void 0?void 0:i.onBackward)===null||r===void 0||r.call(i),this.dispatchOnChange()),o},t.prototype.backward=function(){this.internalBackward()},t.prototype.internalPlay=function(n){var i=this,r,o,s=this.data,a=this.attributes.loop,l=this.states.speed,c=l===void 0?1:l;this.playInterval=window.setInterval(function(){var u=i.internalForward();u[1]===s.length&&!a&&(i.internalPause(),i.renderController())},1e3/c),this.states.state="play",!n&&((o=(r=this.attributes)===null||r===void 0?void 0:r.onPlay)===null||o===void 0||o.call(r))},t.prototype.play=function(){this.internalPlay()},t.prototype.internalPause=function(n){var i,r;clearInterval(this.playInterval),this.states.state="pause",!n&&((r=(i=this.attributes)===null||i===void 0?void 0:i.onPause)===null||r===void 0||r.call(i))},t.prototype.pause=function(){this.internalPause()},t.prototype.internalForward=function(n){var i,r,o=this.moveSelection("forward",n);return n||((r=(i=this.attributes)===null||i===void 0?void 0:i.onForward)===null||r===void 0||r.call(i),this.dispatchOnChange()),o},t.prototype.forward=function(){this.internalForward()},t.prototype.handleSpeedChange=function(n){var i,r;this.states.speed=n;var o=this.states.state;o==="play"&&(this.internalPause(!0),this.internalPlay(!0)),(r=(i=this.attributes)===null||i===void 0?void 0:i.onSpeedChange)===null||r===void 0||r.call(i,n)},t.prototype.handleSelectionTypeChange=function(n){var i,r;this.states.selectionType=n,this.renderChart(),(r=(i=this.attributes)===null||i===void 0?void 0:i.onSelectionTypeChange)===null||r===void 0||r.call(i,n)},t.prototype.handleChartTypeChange=function(n){var i,r;this.states.chartType=n,this.renderChart(),(r=(i=this.attributes)===null||i===void 0?void 0:i.onChartTypeChange)===null||r===void 0||r.call(i,n)},t.prototype.render=function(){var n=this.space,i=n.axisBBox,r=n.controllerBBox,o=n.timelineBBox;this.renderController(r),this.renderAxis(i),this.renderChart(o),this.states.state==="play"&&this.internalPlay()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.internalPause(!0)},t.defaultOptions={style:{x:0,y:0,axisLabelFill:"#6e6e6e",axisLabelTextAlign:"left",axisLabelTextBaseline:"top",axisLabelTransform:"translate(5, -12)",axisLineLineWidth:1,axisLineStroke:"#cacdd1",axisTickLength:15,axisTickLineWidth:1,axisTickStroke:"#cacdd1",chartShowLabel:!1,chartType:"line",controllerAlign:"center",controllerHeight:40,data:[],interval:"day",loop:!1,playMode:"acc",selectionType:"range",type:"time"}},t})(Sd),tB=on(Pi());function tye(e){const{width:t,height:n,renderer:i}=e,r=qJi(e),o=new q7e({width:t,height:n,container:r,renderer:i||new iK});return[r,o]}function qJi(e){var t;const{container:n,className:i,graphCanvas:r}=e;if(n)return typeof n=="string"?document.getElementById(n):n;const o=xj(i,!1),{width:s,height:a,containerStyle:l}=e,[c,u]=GJi(e);return Object.assign(o.style,Object.assign({position:"absolute",left:c+"px",top:u+"px",width:s+"px",height:a+"px"},l)),(t=r.getContainer())===null||t===void 0||t.appendChild(o),o}function GJi(e){const{width:t,height:n,placement:i,graphCanvas:r}=e,[o,s]=r.getSize(),[a,l]=Y_n(i);return[a*(o-t),l*(s-n)]}var KJi=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},oSn=class sSn extends Np{constructor(t,n){super(t,Object.assign({},sSn.defaultOptions,n)),this.typePrefix="__data__",this.draw=!1,this.fieldMap={node:new Map,edge:new Map,combo:new Map},this.selectedItems=[],this.bindEvents=()=>{const{graph:i}=this.context;i.on(Ni.AFTER_DRAW,this.createElement)},this.changeState=(i,r)=>{const{graph:o}=this.context,{typePrefix:s}=this,a=(0,tB.get)(i,[s,"id"]),l=(0,tB.get)(i,[s,"style","labelText"]),[c]=a.split("__"),u=this.fieldMap[c].get(l)||[];o.setElementState(Object.fromEntries(u?.map(d=>[d,r])))},this.click=i=>{if(this.options.trigger==="hover")return;const r=(0,tB.get)(i,[this.typePrefix,"id"]);this.selectedItems.includes(r)?(this.selectedItems=this.selectedItems.filter(o=>o!==r),this.changeState(i,[])):(this.selectedItems.push(r),this.changeState(i,"selected"))},this.mouseleave=i=>{this.options.trigger!=="click"&&(this.selectedItems=[],this.changeState(i,[]))},this.mouseenter=i=>{if(this.options.trigger==="click")return;const r=(0,tB.get)(i,[this.typePrefix,"id"]);this.selectedItems.includes(r)?this.selectedItems=this.selectedItems.filter(o=>o!==r):(this.selectedItems.push(r),this.changeState(i,"active"))},this.setFieldMap=(i,r,o)=>{if(!i)return;const s=this.fieldMap[o];if(s)if(!s.has(i))s.set(i,[r]);else{const a=s.get(i);a&&(a.push(r),s.set(i,a))}},this.getEvents=()=>({mouseenter:this.mouseenter,mouseleave:this.mouseleave,click:this.click}),this.getMarkerData=(i,r)=>{if(!i)return[];const{model:o,element:s}=this.context,{nodes:a,edges:l,combos:c}=o.getData(),u={},d=m=>(0,tB.isFunction)(i)?i(m):i,h={node:"circle",edge:"line",combo:"rect"},f={circle:"circle",ellipse:"circle",image:"bowtie",rect:"square",star:"cross",triangle:"triangle",diamond:"diamond",cubic:"dot",line:"hyphen",polyline:"hyphen",quadratic:"hv","cubic-horizontal":"hyphen","cubic-vertical":"line"},p=(m,v)=>s?.getElementComputedStyle(m,v),g=(m,v)=>{m.forEach(y=>{const{id:b}=y,w=(0,tB.get)(y,["data",d(y)]),E=s?.getElementType(v,y)||"circle",A=p(v,y),D=(v==="edge"?A?.stroke:A?.fill)||"#1783ff";b&&w&&w.replace(/\s+/g,"")&&(this.setFieldMap(w,b,v),u[w]||(u[w]={id:`${v}__${b}`,label:w,marker:f[E]||h[v],elementType:v,lineWidth:1,stroke:D,fill:D}))})};switch(r){case"node":g(a,"node");break;case"edge":g(l,"edge");break;case"combo":g(c,"combo");break;default:return[]}return Object.values(u)},this.createElement=()=>{if(this.draw){this.updateElement();return}const i=this.options,{width:r,height:o,nodeField:s,edgeField:a,comboField:l,trigger:c,position:u,container:d,containerStyle:h,className:f}=i,p=KJi(i,["width","height","nodeField","edgeField","comboField","trigger","position","container","containerStyle","className"]),g=this.getMarkerData(s,"node"),m=this.getMarkerData(a,"edge"),v=this.getMarkerData(l,"combo"),y=[...g,...v,...m],b=Object.assign({width:r,height:o,data:y,itemMarkerLineWidth:({lineWidth:A})=>A,itemMarker:({marker:A})=>A,itemMarkerStroke:({stroke:A})=>A,itemMarkerFill:({fill:A})=>A,gridCol:g.length},p,this.getEvents()),w=new CJi({className:"legend",style:b});this.category=w,this.upsertCanvas().appendChild(w),this.draw=!0},this.bindEvents()}update(t){super.update(t),this.clear(),this.createElement()}clear(){var t,n;(t=this.canvas)===null||t===void 0||t.destroy(),(n=this.container)===null||n===void 0||n.remove(),this.canvas=void 0,this.container=void 0,this.draw=!1}updateElement(){this.category&&this.category.update({itemMarkerOpacity:({id:t})=>!this.selectedItems.length||this.selectedItems.includes(t)?1:.5,itemLabelOpacity:({id:t})=>!this.selectedItems.length||this.selectedItems.includes(t)?1:.5})}upsertCanvas(){if(this.canvas)return this.canvas;const t=this.context.canvas,[n,i]=t.getSize(),{width:r=n,height:o=i,position:s,container:a,containerStyle:l,className:c}=this.options,[u,d]=tye({width:r,height:o,graphCanvas:t,container:a,containerStyle:l,placement:s,className:"legend"});return this.container=u,c&&u.classList.add(c),this.canvas=d,this.canvas}destroy(){this.clear(),this.context.graph.off(Ni.AFTER_DRAW,this.createElement),super.destroy()}};oSn.defaultOptions={position:"bottom",trigger:"hover",orientation:"horizontal",layout:"flex",itemSpacing:4,rowPadding:10,colPadding:10,itemMarkerSize:16,itemLabelFontSize:16,width:240,height:160};var oFt=on(Pi()),aSn=class lSn extends Np{constructor(t,n){super(t,Object.assign({},lSn.defaultOptions,n)),this.onDraw=i=>{var r;!((r=i?.data)===null||r===void 0)&&r.render||this.onRender()},this.landmarkMap=new Map,this.mask=null,this.isMaskDragging=!1,this.onMaskDragStart=i=>{this.mask&&(this.isMaskDragging=!0,this.mask.setPointerCapture(i.pointerId),this.mask.addEventListener("pointermove",this.onMaskDrag),this.mask.addEventListener("pointerup",this.onMaskDragEnd),this.mask.addEventListener("pointercancel",this.onMaskDragEnd))},this.onMaskDrag=i=>{if(!this.mask||!this.isMaskDragging)return;const{size:[r,o]}=this.options,{movementX:s,movementY:a}=i,{left:l,top:c,width:u,height:d}=this.mask.style,[,,h,f]=this.maskBBox;let p=parseInt(l)+s,g=parseInt(c)+a,m=parseInt(u),v=parseInt(d);p<0&&(p=0),g<0&&(g=0),p+m>r&&(p=qk(r-m,0)),g+v>o&&(g=qk(o-v,0)),m<h&&(s>0?(p=qk(p-s,0),m=$k(m+s,r)):s<0&&(m=$k(m-s,r))),v<f&&(a>0?(g=qk(g-a,0),v=$k(v+a,o)):a<0&&(v=$k(v-a,o))),Object.assign(this.mask.style,{left:p+"px",top:g+"px",width:m+"px",height:v+"px"});const y=parseInt(l)-p,b=parseInt(c)-g;if(y===0&&b===0)return;const w=this.context.canvas.getCamera().getZoom(),E=this.canvas.getCamera().getZoom(),A=w/E;this.context.graph.translateBy([y*A,b*A],!1)},this.onMaskDragEnd=i=>{this.mask&&(this.isMaskDragging=!1,this.mask.releasePointerCapture(i.pointerId),this.mask.removeEventListener("pointermove",this.onMaskDrag),this.mask.removeEventListener("pointerup",this.onMaskDragEnd),this.mask.removeEventListener("pointercancel",this.onMaskDragEnd))},this.onTransform=(0,oFt.throttle)(()=>{this.isMaskDragging||(this.updateMask(),this.setCamera())},32,{leading:!0}),this.setOnRender(),this.bindEvents()}update(t){this.unbindEvents(),super.update(t),"delay"in t&&this.setOnRender(),this.bindEvents()}setOnRender(){this.onRender=(0,oFt.debounce)(()=>{this.renderMinimap(),this.renderMask()},this.options.delay)}bindEvents(){const{graph:t}=this.context;t.on(Ni.AFTER_DRAW,this.onDraw),t.on(Ni.AFTER_RENDER,this.onRender),t.on(Ni.AFTER_ANIMATE,this.onRender),t.on(Ni.AFTER_TRANSFORM,this.onTransform)}unbindEvents(){const{graph:t}=this.context;t.off(Ni.AFTER_DRAW,this.onDraw),t.off(Ni.AFTER_RENDER,this.onRender),t.off(Ni.AFTER_ANIMATE,this.onRender),t.off(Ni.AFTER_TRANSFORM,this.onTransform)}renderMinimap(){const t=this.getElements(),n=this.initCanvas();this.setShapes(n,t)}getElements(){const{filter:t}=this.options,{model:n,element:i}=this.context,r=n.getData(),o={nodes:r.nodes.filter(c=>i?.getElement(an(c))),edges:r.edges.filter(c=>{const u=i?.getElement(an(c));return u&&l1n(u)}),combos:r.combos.filter(c=>i?.getElement(an(c)))};if(!t)return o;const{nodes:s,edges:a,combos:l}=o;return{nodes:s.filter(c=>t(an(c),"node")),edges:a.filter(c=>t(an(c),"edge")),combos:l.filter(c=>t(an(c),"combo"))}}setShapes(t,n){const{nodes:i,edges:r,combos:o}=n,{shape:s}=this.options,{element:a}=this.context,l=(c,u)=>{const d=an(c),h=a?.getElement(d);if(!h)return;const f=h.getShape("key");let p;if(typeof s=="string"){const g=s;p=h.getShape(g).cloneNode()}else{const g=s(d,u,h);g===h?p=g.cloneNode(!0):p=g}p.setPosition(f.getPosition()),h.style.zIndex&&(p.style.zIndex=h.style.zIndex),p.id=h.id,t.appendChild(p)};t.removeChildren(),r.forEach(c=>l(c,"edge")),o.forEach(c=>l(c,"combo")),i.forEach(c=>l(c,"node"))}initCanvas(){const{renderer:t,size:[n,i]}=this.options;if(this.canvas){const{width:r,height:o}=this.canvas.getConfig();(n!==r||i!==o)&&this.canvas.resize(n,i),t&&this.canvas.setRenderer(t)}else{const{className:r,position:o,container:s,containerStyle:a}=this.options,[l,c]=tye({renderer:t,width:n,height:i,placement:o,className:"minimap",container:s,containerStyle:a,graphCanvas:this.context.canvas});r&&l.classList.add(r),this.container=l,this.canvas=c}return this.setCamera(),this.canvas}createLandmark(t,n,i){const r=`${t.join(",")}-${n.join(",")}-${i}`;if(this.landmarkMap.has(r))return this.landmarkMap.get(r);const s=this.canvas.getCamera().createLandmark(r,{position:t,focalPoint:n,zoom:i});return this.landmarkMap.set(r,s),s}setCamera(){var t;const{canvas:n}=this.context,i=(t=this.canvas)===null||t===void 0?void 0:t.getCamera();if(!i)return;const{size:[r,o],padding:s}=this.options,[a,l,c,u]=Lw(s),{min:d,max:h,center:f}=n.getBounds("elements"),p=h[0]-d[0],g=h[1]-d[1],m=r-u-l,v=o-a-c,y=m/p,b=v/g,w=Math.min(y,b),E=this.createLandmark(f,f,w);i.gotoLandmark(E,0)}get maskBBox(){const{canvas:t}=this.context,n=t.getSize(),i=t.getCanvasByViewport([0,0]),r=t.getCanvasByViewport(n),o=this.canvas.canvas2Viewport($1(i)),s=this.canvas.canvas2Viewport($1(r)),a=s.x-o.x,l=s.y-o.y;return[o.x,o.y,a,l]}calculateMaskBBox(){const{size:[t,n]}=this.options;let[i,r,o,s]=this.maskBBox;return i<0&&(o=$k(o+i,t),i=0),r<0&&(s=$k(s+r,n),r=0),i+o>t&&(o=qk(t-i,0)),r+s>n&&(s=qk(n-r,0)),[$k(i,t),$k(r,n),qk(o,0),qk(s,0)]}renderMask(){const{maskStyle:t}=this.options;this.mask||(this.mask=document.createElement("div"),this.mask.addEventListener("pointerdown",this.onMaskDragStart),this.mask.draggable=!0,this.mask.addEventListener("dragstart",n=>n.preventDefault&&n.preventDefault())),this.container.appendChild(this.mask),Object.assign(this.mask.style,Object.assign(Object.assign({},t),{cursor:"move",position:"absolute",pointerEvents:"auto"})),this.updateMask()}updateMask(){if(!this.mask)return;const[t,n,i,r]=this.calculateMaskBBox();Object.assign(this.mask.style,{top:n+"px",left:t+"px",width:i+"px",height:r+"px"})}destroy(){var t,n,i;this.unbindEvents(),(t=this.canvas)===null||t===void 0||t.destroy(),(n=this.mask)===null||n===void 0||n.remove(),(i=this.container)===null||i===void 0||i.remove(),super.destroy()}};aSn.defaultOptions={size:[240,160],shape:"key",padding:10,position:"right-bottom",maskStyle:{border:"1px solid #ddd",background:"rgba(0, 0, 0, 0.1)"},containerStyle:{border:"1px solid #ddd",background:"#fff"},delay:128};var $k=(e,t)=>Math.min(e,t),qk=(e,t)=>Math.max(e,t),YJi=on(Pi()),ZMe=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,[])).next())})},XMe={x1:0,y1:0,x2:0,y2:0,visibility:"hidden"},cSn=class uSn extends Np{constructor(t,n){super(t,Object.assign({},uSn.defaultOptions,n)),this.initSnapline=()=>{const i=this.context.canvas.getLayer("transient");this.horizontalLine||(this.horizontalLine=i.appendChild(new N2({style:Object.assign(Object.assign({},XMe),this.options.horizontalLineStyle)}))),this.verticalLine||(this.verticalLine=i.appendChild(new N2({style:Object.assign(Object.assign({},XMe),this.options.verticalLineStyle)})))},this.isHorizontalSticking=!1,this.isVerticalSticking=!1,this.enableStick=!0,this.autoSnapToLine=(i,r,o)=>ZMe(this,void 0,void 0,function*(){const{verticalX:s,horizontalY:a}=o,{tolerance:l}=this.options,{min:[c,u],max:[d,h],center:[f,p]}=r;let g=0,m=0;s!==null&&(jg(d,s)<l&&(g=s-d),jg(c,s)<l&&(g=s-c),jg(f,s)<l&&(g=s-f),g!==0&&(this.isVerticalSticking=!0)),a!==null&&(jg(h,a)<l&&(m=a-h),jg(u,a)<l&&(m=a-u),jg(p,a)<l&&(m=a-p),m!==0&&(this.isHorizontalSticking=!0)),(g!==0||m!==0)&&(yield this.context.graph.translateElementBy({[i]:[g,m]},!1))}),this.enableSnap=i=>{const{target:r}=i,o=.5;if(this.isHorizontalSticking||this.isVerticalSticking){const[s,a]=this.getDelta(i);if(this.isHorizontalSticking&&this.isVerticalSticking&&Math.abs(s)<=o&&Math.abs(a)<=o)return this.context.graph.translateElementBy({[r.id]:[-s,-a]},!1),!1;if(this.isHorizontalSticking&&Math.abs(a)<=o)return this.context.graph.translateElementBy({[r.id]:[0,-a]},!1),!1;if(this.isVerticalSticking&&Math.abs(s)<=o)return this.context.graph.translateElementBy({[r.id]:[-s,0]},!1),!1;this.isHorizontalSticking=!1,this.isVerticalSticking=!1,this.enableStick=!1,setTimeout(()=>{this.enableStick=!0},200)}return this.enableStick},this.calcSnaplineMetadata=(i,r)=>{const{tolerance:o,shape:s}=this.options,{min:[a,l],max:[c,u],center:[d,h]}=r;let f=null,p=null,g=null,m=null,v=null,y=null;return this.getNodes().some(b=>{if((0,YJi.isEqual)(i.id,b.id))return!1;const w=sFt(b,s).getRenderBounds(),{min:[E,A],max:[D,T],center:[M,P]}=w;return f===null&&(jg(M,d)<o?f=M:jg(E,a)<o||jg(E,c)<o?f=E:(jg(D,c)<o||jg(D,a)<o)&&(f=D),f!==null&&(p=Math.min(A,l),g=Math.max(T,u))),m===null&&(jg(P,h)<o?m=P:jg(A,l)<o||jg(A,u)<o?m=A:(jg(T,u)<o||jg(T,l)<o)&&(m=T),m!==null&&(v=Math.min(E,a),y=Math.max(D,c))),f!==null&&m!==null}),{verticalX:f,verticalMinY:p,verticalMaxY:g,horizontalY:m,horizontalMinX:v,horizontalMaxX:y}},this.onDragStart=()=>{this.initSnapline()},this.onDrag=i=>ZMe(this,void 0,void 0,function*(){const{target:r}=i;if(this.options.autoSnap&&!this.enableSnap(i))return;const o=sFt(r,this.options.shape).getRenderBounds(),s=this.calcSnaplineMetadata(r,o);this.hideSnapline(),(s.verticalX!==null||s.horizontalY!==null)&&this.updateSnapline(s),this.options.autoSnap&&(yield this.autoSnapToLine(r.id,o,s))}),this.onDragEnd=()=>{this.hideSnapline()},this.bindEvents()}getNodes(){var t;const{filter:n}=this.options,r=(((t=this.context.element)===null||t===void 0?void 0:t.getNodes())||[]).filter(o=>{var s;return l1n(o)&&((s=this.context.viewport)===null||s===void 0?void 0:s.isInViewport(o.getRenderBounds()))});return n?r.filter(o=>n(o)):r}hideSnapline(){this.horizontalLine.style.visibility="hidden",this.verticalLine.style.visibility="hidden"}getLineWidth(t){const{lineWidth:n}=this.options[`${t}LineStyle`];return+(n||XMe.lineWidth||1)/this.context.graph.getZoom()}updateSnapline(t){const{verticalX:n,verticalMinY:i,verticalMaxY:r,horizontalY:o,horizontalMinX:s,horizontalMaxX:a}=t,[l,c]=this.context.canvas.getSize(),{offset:u}=this.options;o!==null?Object.assign(this.horizontalLine.style,{x1:u===1/0?0:s-u,y1:o,x2:u===1/0?l:a+u,y2:o,visibility:"visible",lineWidth:this.getLineWidth("horizontal")}):this.horizontalLine.style.visibility="hidden",n!==null?Object.assign(this.verticalLine.style,{x1:n,y1:u===1/0?0:i-u,x2:n,y2:u===1/0?c:r+u,visibility:"visible",lineWidth:this.getLineWidth("vertical")}):this.verticalLine.style.visibility="hidden"}getDelta(t){const n=this.context.graph.getZoom();return MC([t.dx,t.dy],n)}bindEvents(){return ZMe(this,void 0,void 0,function*(){const{graph:t}=this.context;t.on(gp.DRAG_START,this.onDragStart),t.on(gp.DRAG,this.onDrag),t.on(gp.DRAG_END,this.onDragEnd)})}unbindEvents(){const{graph:t}=this.context;t.off(gp.DRAG_START,this.onDragStart),t.off(gp.DRAG,this.onDrag),t.off(gp.DRAG_END,this.onDragEnd)}destroyElements(){var t,n;(t=this.horizontalLine)===null||t===void 0||t.destroy(),(n=this.verticalLine)===null||n===void 0||n.destroy()}destroy(){this.destroyElements(),this.unbindEvents(),super.destroy()}};cSn.defaultOptions={tolerance:5,offset:20,autoSnap:!0,shape:"key",verticalLineStyle:{stroke:"#1783FF"},horizontalLineStyle:{stroke:"#1783FF"},filter:()=>!0};var jg=(e,t)=>Math.abs(e-t),sFt=(e,t)=>typeof t=="function"?t(e):e.getShape(t),Tce=on(Pi()),QJi=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,[])).next())})},ZJi=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},XJi=["timestamp","time","date","datetime"],dSn=class hSn extends Np{get padding(){return Lw(this.options.padding)}constructor(t,n){super(t,Object.assign({},hSn.defaultOptions,n)),this.backup(),this.upsertTimebar()}play(){var t;(t=this.timebar)===null||t===void 0||t.play()}pause(){var t;(t=this.timebar)===null||t===void 0||t.pause()}forward(){var t;(t=this.timebar)===null||t===void 0||t.forward()}backward(){var t;(t=this.timebar)===null||t===void 0||t.backward()}reset(){var t;(t=this.timebar)===null||t===void 0||t.reset()}update(t){super.update(t),this.backup(),this.upsertTimebar()}backup(){this.originalData=aFt(this.context.graph.getData())}upsertTimebar(){const{canvas:t}=this.context,n=this.options,{onChange:i,timebarType:r,data:o,x:s,y:a,width:l,height:c,mode:u}=n,d=ZJi(n,["onChange","timebarType","data","x","y","width","height","mode"]),h=t.getSize(),[f]=this.padding;this.upsertCanvas().ready.then(()=>{var p;const g=Object.assign(Object.assign({x:h[0]/2-l/2,y:f,onChange:m=>{const v=((0,Tce.isArray)(m)?m:[m,m]).map(y=>(0,Tce.isDate)(y)?y.getTime():y);this.options.mode==="modify"?this.filterElements(v):this.hiddenElements(v),i?.(v)}},d),{data:o.map(m=>(0,Tce.isNumber)(m)?{time:m,value:0}:m),width:l,height:c,type:r});this.timebar?this.timebar.update(g):(this.timebar=new $Ji({style:g}),(p=this.canvas)===null||p===void 0||p.appendChild(this.timebar))})}upsertCanvas(){if(this.canvas)return this.canvas;const{className:t,height:n,position:i}=this.options,r=this.context.canvas,[o]=r.getSize(),[s,,a]=this.padding,[l,c]=tye({width:o,height:n+s+a,graphCanvas:r,className:"timebar",placement:i});return this.container=l,t&&l.classList.add(t),this.canvas=c,this.canvas}filterElements(t){return QJi(this,void 0,void 0,function*(){var n;if(!this.originalData)return;const{elementTypes:i,getTime:r}=this.options,{graph:o,element:s}=this.context,a=aFt(this.originalData);i.forEach(c=>{const u=`${c}s`;a[u]=(this.originalData[u]||[]).filter(d=>{const h=r(d);return!!lFt(h,t)})});const l=[...a.nodes,...a.combos].map(c=>an(c));a.edges=a.edges.filter(c=>{const u=c.source,d=c.target;return l.includes(u)&&l.includes(d)}),o.setData(a),yield(n=s.draw({animation:!1,silence:!0}))===null||n===void 0?void 0:n.finished})}hiddenElements(t){const{graph:n}=this.context,{elementTypes:i,getTime:r}=this.options,o=[],s=[];i.forEach(a=>{var l;const c=`${a}s`;(((l=this.originalData)===null||l===void 0?void 0:l[c])||[]).forEach(d=>{const h=an(d),f=r(d);lFt(f,t)?s.push(h):o.push(h)})}),n.hideElement(o,!1),n.showElement(s,!1)}destroy(){var t,n,i;const{graph:r}=this.context;this.originalData&&r.setData(Object.assign({},this.originalData)),(t=this.timebar)===null||t===void 0||t.destroy(),(n=this.canvas)===null||n===void 0||n.destroy(),(i=this.container)===null||i===void 0||i.remove(),this.originalData=void 0,this.container=void 0,this.timebar=void 0,this.canvas=void 0,super.destroy()}};dSn.defaultOptions={position:"bottom",enable:!0,timebarType:"time",className:"g6-timebar",width:450,height:60,zIndex:3,elementTypes:["node"],padding:10,mode:"modify",getTime:e=>JJi(e,XJi,void 0),loop:!1};var aFt=e=>{const{nodes:t=[],edges:n=[],combos:i=[]}=e;return{nodes:[...t],edges:[...n],combos:[...i]}},lFt=(e,t)=>{if((0,Tce.isNumber)(t))return e===t;const[n,i]=t;return e>=n&&e<=i},JJi=(e,t,n)=>{var i;for(let r=0;r<t.length;r++){const o=t[r],s=(i=e.data)===null||i===void 0?void 0:i[o];if(s)return s}return n},eer=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},fSn={fill:"#1D2129",wordWrap:!0,maxLines:1,textOverflow:"ellipsis",textBaseline:"top",textAlign:"start",x:0},ter=Object.assign(Object.assign({},fSn),{fillOpacity:.9,fontSize:16,fontWeight:"bold"}),ner=Object.assign(Object.assign({},fSn),{fillOpacity:.65,fontSize:12,fontWeight:"normal"}),ier={align:"left",spacing:8,size:44,padding:[16,24,0,24]},JMe="title",cFt="subtitle",rer=class extends Np{get padding(){return Lw(this.options.padding)}constructor(e,t){const n=Object.assign({},ier,t);super(e,n),this.onRender=()=>{const i=this.updateCanvas();this.renderTitle(i)},this.bindEvents()}bindEvents(){const{graph:e}=this.context;e.on(Ni.AFTER_RENDER,this.onRender),e.on(Ni.AFTER_ANIMATE,this.onRender)}unbindEvents(){const{graph:e}=this.context;e.off(Ni.AFTER_RENDER,this.onRender),e.off(Ni.AFTER_ANIMATE,this.onRender)}destroy(){var e,t;this.unbindEvents(),(e=this.canvas)===null||e===void 0||e.destroy(),(t=this.container)===null||t===void 0||t.remove(),super.destroy()}updateCanvas(){const{size:e,className:t,align:n}=this.options,[i]=this.context.canvas.getSize(),[r=0,,o=0]=this.padding,s=e+r+o;if(this.canvas){const{width:a,height:l}=this.canvas.getConfig();(i!==a||s!==l)&&this.canvas.resize(i,s)}else{const a={left:"left-top",center:"top",right:"right-top"},[l,c]=tye({width:i,height:s,placement:a[n]||a.left,className:"title-canvas",graphCanvas:this.context.canvas});t&&l.classList.add(t),this.container=l,this.canvas=c}return this.canvas}renderTitle(e){const t=new oer({options:this.options,ctx:this.context});e.removeChildren(),t.getTitle().forEach(n=>{n&&e.appendChild(n)})}},oer=class{get padding(){return Lw(this.options.padding)}constructor(e){const{options:t,ctx:n}=e;this.options=t,this.context=n}getTitle(){const e=this.options,t=JMe,n=e[t],i=cFt,r=e[i],{spacing:o=44,padding:s,align:a}=e,l=eer(e,[t+"",i+"","spacing","padding","align"]),c=n,u=r,d=iu(l,JMe),h=iu(l,cFt),[f]=this.context.graph.getSize(),[p=0,g=0,,m=0]=this.padding,v=f,y=v-m-g;let b=null,w=m,E="left";switch(a){case"left":w=m,E="left";break;case"center":w=v/2,E="center";break;case"right":w=v-g,E="right";break;default:w=m,E="left"}const A=new oN({className:JMe,style:Object.assign(Object.assign(Object.assign(Object.assign({},ter),{wordWrapWidth:y-5,x:w,y:p,textAlign:E}),d),{text:c})}),D=A.getBBox();return u&&(b=new oN({className:"subTitle",style:Object.assign(Object.assign(Object.assign(Object.assign({},ner),{wordWrapWidth:y-5,x:w,y:D.height+o+p,textAlign:E}),h),{text:u})})),[A,b]}};function ser(e){const t={top:"unset",right:"unset",bottom:"unset",left:"unset"};return e.split("-").forEach(i=>{t[i]="8px"}),t.flexDirection=e.startsWith("top")||e.startsWith("bottom")?"row":"column",t}var aer=`
  .g6-toolbar {
    position: absolute;
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
    opacity: 0.65;
  }
  .g6-toolbar .g6-toolbar-item {
    display: inline-block;
    width: 16px;
    height: 16px;
    padding: 4px;
    cursor: pointer;
    box-sizing: content-box;
  }

  .g6-toolbar .g6-toolbar-item:hover {
    background-color: #f0f0f0;
  }

  .g6-toolbar .g6-toolbar-item svg {
    display: inline-block;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
`,ler=`
  <svg>
    <symbol id="zoom-in" viewBox="64 64 896 896">
      <path d="M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"></path>
    </symbol>
    <symbol id="zoom-out" viewBox="64 64 896 896">
      <path d="M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"></path>
    </symbol>
    <symbol id="edit" viewBox="64 64 896 896">
      <path d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"></path>
    </symbol>
    <symbol id="delete" viewBox="64 64 896 896">
      <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"></path>
    </symbol>
    <symbol id="redo" viewBox="64 64 896 896">
      <path d="M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"></path>
    </symbol>
    <symbol id="undo" viewBox="64 64 896 896">
      <path d="M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z"></path>
    </symbol>
    <symbol id="export" viewBox="64 64 896 896">
      <path d="M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"></path>
    </symbol>
    <symbol id="auto-fit" viewBox="64 64 896 896">
      <path d="M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244 244 109.2 244 244-109.2 244-244 244z"></path>
      <path d="M512 392c-32.1 0-62.1 12.4-84.8 35.2-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8A118.57 118.57 0 00512 392z"></path>
    </symbol>
    <symbol id="reset" viewBox="64 64 896 896">
      <path d="M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"></path>
    </symbol>
    <symbol id="exit-fullscreen" viewBox="0 0 1024 1024">
      <path d="M418.13333333 361.43786666c0 0.2048-0.13653333 0.4096-0.13653334 0.68266667C417.99679999 362.32533333 418.13333333 362.53013333 418.13333333 362.73493333 418.13333333 371.54133333 414.44693333 379.392 408.78079999 385.39946666 408.43946666 385.7408 408.30293333 386.21866666 408.02986666 386.49173333c-1.09226667 1.09226667-2.59413333 1.77493333-3.82293333 2.73066667C398.40426666 393.65973333 391.64586666 396.8 383.93173333 396.8 383.72693333 396.8 383.59039999 396.73173333 383.38559999 396.73173333S382.97599999 396.8 382.77119999 396.8L112.29866666 396.8C92.50133333 396.8 76.79999999 381.50826666 76.79999999 362.66666666 76.66346666 343.89333333 92.63786666 328.53333333 112.16213333 328.53333333l189.44 0L87.44959999 114.51733333C73.59146666 100.59093333 73.25013333 78.5408 86.63039999 65.29706666c13.17546667-13.44853333 35.36213333-12.97066667 49.152 0.88746667l214.08426667 214.08426667L349.86666666 90.89706666C349.79839999 71.23626666 365.22666666 55.46666666 383.99999999 55.46666666 402.77333333 55.33013333 418.13333333 71.30453333 418.13333333 90.8288L418.13333333 361.43786666zM928.90453333 328.53333333l-189.44 0 214.15253333-214.08426667c13.85813333-13.9264 14.19946667-35.90826667 0.88746667-49.22026666-13.17546667-13.44853333-35.36213333-12.97066667-49.152 0.88746666l-214.08426667 214.08426667L691.26826666 90.89706666C691.26826666 71.23626666 675.83999999 55.46666666 657.06666666 55.46666666 638.29333333 55.33013333 622.93333333 71.30453333 622.93333333 90.8288l0 270.60906666c0 0.2048 0.13653333 0.4096 0.13653333 0.68266667C623.06986666 362.32533333 622.93333333 362.53013333 622.93333333 362.73493333 622.93333333 371.54133333 626.61973333 379.392 632.28586666 385.39946666c0.34133333 0.34133333 0.47786667 0.8192 0.8192 1.09226667 1.09226667 1.09226667 2.59413333 1.77493333 3.8912 2.73066667C642.66239999 393.65973333 649.42079999 396.8 657.13493333 396.8c0.2048 0 0.34133333-0.06826667 0.54613333-0.06826667S658.09066666 396.8 658.29546666 396.8l270.5408 0C948.56533333 396.8 964.26666666 381.50826666 964.26666666 362.66666666 964.40319999 343.89333333 948.42879999 328.53333333 928.90453333 328.53333333zM418.13333333 635.73333333c0-8.8064-3.6864-16.5888-9.35253334-22.66453333C408.43946666 612.72746666 408.30293333 612.2496 408.02986666 611.90826666 406.86933333 610.88426666 405.43573333 610.2016 404.20693333 609.24586666 398.47253333 604.80853333 391.64586666 601.6 383.93173333 601.6 383.72693333 601.6 383.59039999 601.73653333 383.38559999 601.73653333S382.97599999 601.6 382.77119999 601.6L112.29866666 601.6C92.50133333 601.6 76.79999999 616.96 76.79999999 635.73333333 76.66346666 654.50666666 92.63786666 669.86666666 112.16213333 669.86666666l189.44 0-214.15253334 214.15253334c-13.85813333 13.85813333-14.19946667 35.84-0.88746666 49.22026666 13.17546667 13.44853333 35.36213333 12.9024 49.152-0.95573333l214.08426666-214.08426667 0 189.37173334c0 19.59253333 15.42826667 35.49866667 34.2016 35.36213333C402.77333333 943.2064 418.13333333 927.232 418.13333333 907.5712L418.13333333 637.09866666c0-0.27306667-0.13653333-0.47786667-0.13653334-0.68266666C417.99679999 636.14293333 418.13333333 635.93813333 418.13333333 635.73333333zM739.46453333 669.86666666l189.44 0c19.456 0 35.49866667-15.36 35.36213333-34.13333333C964.26666666 616.96 948.56533333 601.6 928.76799999 601.6L658.29546666 601.6C658.09066666 601.6 657.88586666 601.73653333 657.68106666 601.73653333S657.33973333 601.6 657.13493333 601.6C649.42079999 601.6 642.59413333 604.80853333 636.85973333 609.24586666 635.63093333 610.2016 634.19733333 610.88426666 633.03679999 611.90826666 632.76373333 612.2496 632.62719999 612.72746666 632.28586666 613.0688 626.61973333 619.14453333 622.93333333 626.92693333 622.93333333 635.73333333c0 0.2048 0.13653333 0.4096 0.13653333 0.68266667C623.06986666 636.6208 622.93333333 636.8256 622.93333333 637.09866666l0 270.5408C622.93333333 927.232 638.29333333 943.2064 657.06666666 942.93333333c18.77333333 0.13653333 34.2016-15.70133333 34.2016-35.36213333l0-189.37173334 214.08426667 214.08426667c13.78986667 13.85813333 35.90826667 14.40426667 49.152 0.95573333 13.312-13.312 12.97066667-35.36213333-0.88746667-49.22026666L739.46453333 669.86666666z"  ></path></symbol>
    <symbol id="request-fullscreen" viewBox="0 0 1024 1024">
      <path d="M69.818182 87.598545v273.128728a34.909091 34.909091 0 0 0 69.818182 0V163.653818l221.928727 222.021818a33.512727 33.512727 0 0 0 47.383273-47.383272L186.926545 116.363636h197.073455a34.909091 34.909091 0 0 0 0-69.818181H110.871273C85.364364 46.545455 69.818182 59.671273 69.818182 87.598545zM938.542545 46.545455H665.413818a34.909091 34.909091 0 0 0 0 69.818181h197.073455L640.465455 338.292364a33.512727 33.512727 0 0 0 47.383272 47.383272l221.928728-222.021818v197.073455a34.909091 34.909091 0 0 0 69.818181 0V87.598545c0-27.927273-15.453091-41.053091-40.96-41.05309z m-827.671272 907.636363h273.128727a34.909091 34.909091 0 0 0 0-69.818182H186.926545l222.021819-221.928727a33.512727 33.512727 0 0 0-47.383273-47.383273L139.636364 837.073455V640a34.909091 34.909091 0 0 0-69.818182 0v273.128727c0 27.927273 15.546182 41.053091 41.053091 41.053091z m868.724363-41.053091V640a34.909091 34.909091 0 0 0-69.818181 0v197.073455L687.941818 615.051636a33.512727 33.512727 0 0 0-47.383273 47.383273L862.487273 884.363636H665.413818a34.909091 34.909091 0 0 0 0 69.818182h273.128727c25.6 0 41.053091-13.125818 41.053091-41.053091z"  ></path></symbol>
  </svg>
`,uFt=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,[])).next())})},pSn=class gSn extends Np{constructor(t,n){super(t,Object.assign({},gSn.defaultOptions,n)),this.$element=xj("toolbar",!1),this.onToolbarItemClick=r=>{const{onClick:o}=this.options;if(r.target instanceof Element&&r.target.className.includes("g6-toolbar-item")){const s=r.target.getAttribute("value");o?.(s,r.target)}};const i=this.context.canvas.getContainer();this.$element.style.display="flex",i.appendChild(this.$element),sje("g6-toolbar-css","style",{},aer,document.head),sje("g6-toolbar-svgicon","div",{display:"none"},ler),this.$element.addEventListener("click",this.onToolbarItemClick),this.update(n)}update(t){const n=Object.create(null,{update:{get:()=>super.update}});return uFt(this,void 0,void 0,function*(){n.update.call(this,t);const{className:i,position:r,style:o}=this.options;this.$element.className=`g6-toolbar ${i||""}`,Object.assign(this.$element.style,o,ser(r)),this.$element.innerHTML=yield this.getDOMContent()})}destroy(){this.$element.removeEventListener("click",this.onToolbarItemClick),this.$element.remove(),super.destroy()}getDOMContent(){return uFt(this,void 0,void 0,function*(){return(yield this.options.getItems()).map(n=>{var i;return`
          <div class="g6-toolbar-item" value="${n.value}" title="${(i=n.title)!==null&&i!==void 0?i:""}">
            <svg aria-hidden="true" focusable="false">
              <use xlink:href="#${n.id}"></use>
            </svg>
          </div>`}).join("")})}};pSn.defaultOptions={position:"top-left"};var cer=on(Pi()),dFt=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,[])).next())})},mSn=class vSn extends Np{constructor(t,n){super(t,Object.assign({},vSn.defaultOptions,n)),this.currentTarget=null,this.tooltipElement=null,this.container=null,this.isEnable=(i,r)=>{const{enable:o}=this.options;return typeof o=="function"?o(i,r):o},this.onClick=i=>{const{target:{id:r}}=i;this.currentTarget===r?this.hide(i):this.show(i)},this.onPointerMove=i=>{const{target:r}=i;!this.currentTarget||r.id===this.currentTarget||this.show(i)},this.onPointerLeave=i=>{this.hide(i)},this.onCanvasMove=i=>{this.hide(i)},this.onPointerOver=i=>{this.show(i)},this.showById=i=>dFt(this,void 0,void 0,function*(){const r={target:{id:i}};yield this.show(r)}),this.getElementData=(i,r)=>{const{model:o}=this.context;switch(r){case"node":return o.getNodeData([i]);case"edge":return o.getEdgeData([i]);case"combo":return o.getComboData([i]);default:return[]}},this.show=i=>dFt(this,void 0,void 0,function*(){var r,o;const{client:s,target:{id:a}}=i;if(oZ(i.target))return;const l=this.context.graph.getElementType(a),{getContent:c,title:u}=this.options,d=this.getElementData(a,l);if(!this.tooltipElement)return;if(!this.isEnable(i,d)){this.hide(i);return}let h={};if(c){if(h.content=yield c(i,d),!h.content)return}else{const g=this.context.graph.getElementRenderStyle(a),m=l==="node"?g.fill:g.stroke;h={title:u||l,data:d.map(v=>({name:"ID",value:v.id||`${v.source} -> ${v.target}`,color:m}))}}this.currentTarget=a;let f,p;if(s)f=s.x,p=s.y;else{const g=(0,cer.get)(d,"0.style",{x:0,y:0});f=g.x,p=g.y}(o=(r=this.options).onOpenChange)===null||o===void 0||o.call(r,!0),this.tooltipElement.update(Object.assign(Object.assign(Object.assign({},this.tooltipStyleProps),{x:f,y:p,style:{".tooltip":{visibility:"visible"}}}),h))}),this.hide=i=>{var r,o,s,a,l;if(!i){(o=(r=this.options).onOpenChange)===null||o===void 0||o.call(r,!1),(s=this.tooltipElement)===null||s===void 0||s.hide(),this.currentTarget=null;return}if(!this.tooltipElement||!this.currentTarget)return;const{client:{x:c,y:u}}=i;(l=(a=this.options).onOpenChange)===null||l===void 0||l.call(a,!1),this.tooltipElement.hide(c,u),this.currentTarget=null},this.initTooltip=()=>{var i;const r=new AJi({className:"tooltip",style:this.tooltipStyleProps});return(i=this.container)===null||i===void 0||i.appendChild(r.HTMLTooltipElement),r},this.render(),this.bindEvents()}getEvents(){return this.options.trigger==="click"?{"node:click":this.onClick,"edge:click":this.onClick,"combo:click":this.onClick,"canvas:click":this.onPointerLeave,contextmenu:this.onPointerLeave,drag:this.onPointerLeave}:{"node:pointerover":this.onPointerOver,"node:pointermove":this.onPointerMove,"canvas:pointermove":this.onCanvasMove,"edge:pointerover":this.onPointerOver,"edge:pointermove":this.onPointerMove,"combo:pointerover":this.onPointerOver,"combo:pointermove":this.onPointerMove,contextmenu:this.onPointerLeave,"node:drag":this.onPointerLeave}}update(t){var n;this.unbindEvents(),super.update(t),this.tooltipElement&&((n=this.container)===null||n===void 0||n.removeChild(this.tooltipElement.HTMLTooltipElement)),this.tooltipElement=this.initTooltip(),this.bindEvents()}render(){const{canvas:t}=this.context,n=t.getContainer();n&&(this.container=n,this.tooltipElement=this.initTooltip())}unbindEvents(){const{graph:t}=this.context,n=this.getEvents();Object.keys(n).forEach(i=>{t.off(i,n[i])})}bindEvents(){const{graph:t}=this.context,n=this.getEvents();Object.keys(n).forEach(i=>{t.on(i,n[i])})}get tooltipStyleProps(){const{canvas:t}=this.context,{center:n}=t.getBounds(),i=t.getContainer(),{top:r,left:o}=i.getBoundingClientRect(),{style:s,position:a,enterable:l,container:c={x:-o,y:-r},title:u,offset:d}=this.options,[h,f]=n,[p,g]=t.getSize();return{x:h,y:f,container:c,title:u,bounding:{x:0,y:0,width:p,height:g},position:a,enterable:l,offset:d,style:s}}destroy(){var t;this.unbindEvents(),this.tooltipElement&&((t=this.container)===null||t===void 0||t.removeChild(this.tooltipElement.HTMLTooltipElement)),super.destroy()}};mSn.defaultOptions={trigger:"hover",position:"top-right",enterable:!1,enable:!0,offset:[10,10],style:{".tooltip":{visibility:"hidden"}}};var ySn=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,[])).next())})},nB;function bSn(e,t){return nB||(nB=document.createElement("canvas")),nB.width=e,nB.height=t,nB.getContext("2d").clearRect(0,0,e,t),nB}function uer(e,t,n,i){return ySn(this,void 0,void 0,function*(){const r=bSn(e,t),o=r.getContext("2d"),{rotate:s,opacity:a,textFill:l,textFontSize:c,textFontFamily:u,textFontVariant:d,textFontWeight:h,textAlign:f,textBaseline:p}=i;return o.textAlign=f,o.textBaseline=p,o.translate(e/2,t/2),o.font=`${c}px ${u} ${d} ${h}`,s&&o.rotate(s),a&&(o.globalAlpha=a),l&&(o.fillStyle=l,o.fillText(`${n}`,0,0)),r.toDataURL()})}function der(e,t,n,i){return ySn(this,void 0,void 0,function*(){const r=bSn(e,t),o=r.getContext("2d"),{rotate:s,opacity:a}=i;s&&o.rotate(s),a&&(o.globalAlpha=a);const l=new Image;return l.crossOrigin="anonymous",l.src=n,new Promise(c=>{l.onload=function(){const u=e>l.width?(e-l.width)/2:0,d=t>l.height?(t-l.height)/2:0;o.drawImage(l,0,0,l.width,l.height,u,d,e-u*2,t-d*2),c(r.toDataURL())}})})}var her=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,[])).next())})},fer=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},_Sn=class wSn extends Np{constructor(t,n){super(t,Object.assign({},wSn.defaultOptions,n)),this.$element=xj("watermark"),this.context.canvas.getContainer().appendChild(this.$element),this.update(n)}update(t){const n=Object.create(null,{update:{get:()=>super.update}});return her(this,void 0,void 0,function*(){n.update.call(this,t);const i=this.options,{width:r,height:o,text:s,imageURL:a}=i,l=fer(i,["width","height","text","imageURL"]);Object.keys(l).forEach(u=>{u.startsWith("background")&&(this.$element.style[u]=t[u])});const c=a?yield der(r,o,a,l):yield uer(r,o,s,l);this.$element.style.backgroundImage=`url(${c})`})}destroy(){super.destroy(),this.$element.remove()}};_Sn.defaultOptions={width:200,height:100,opacity:.2,rotate:Math.PI/12,text:"",textFill:"#000",textFontSize:16,textAlign:"center",textBaseline:"middle",backgroundRepeat:"repeat"};var per=["#7E92B5","#F4664A","#FFBE3A"],ger={type:"group",color:["#1783FF","#00C9C9","#F08F56","#D580FF","#7863FF","#DB9D0D","#60C42D","#FF80CA","#2491B3","#17C76F"]},mer={type:"group",color:["#99ADD1","#1783FF","#00C9C9","#F08F56","#D580FF","#7863FF","#DB9D0D","#60C42D","#FF80CA","#2491B3","#17C76F"]};function CSn(e){const{bgColor:t,textColor:n,nodeColor:i,nodeColorDisabled:r,nodeStroke:o,nodeHaloStrokeOpacityActive:s=.15,nodeHaloStrokeOpacitySelected:a=.25,nodeOpacityDisabled:l=.06,nodeIconOpacityInactive:c=.85,nodeOpacityInactive:u=.25,nodeBadgePalette:d=per,nodePaletteOptions:h=ger,edgeColor:f,edgeColorDisabled:p,edgePaletteOptions:g=mer,comboColor:m,comboColorDisabled:v,comboStroke:y,comboStrokeDisabled:b,edgeColorInactive:w}=e;return{background:t,node:{palette:h,style:{donutOpacity:1,badgeBackgroundOpacity:1,badgeFill:"#fff",badgeFontSize:8,badgePadding:[0,4],badgePalette:d,fill:i,fillOpacity:1,halo:!1,iconFill:"#fff",iconOpacity:1,labelBackground:!1,labelBackgroundFill:t,labelBackgroundLineWidth:0,labelBackgroundOpacity:.75,labelFill:n,labelFillOpacity:.85,labelLineHeight:16,labelPadding:[0,2],labelFontSize:12,labelFontWeight:400,labelOpacity:1,labelOffsetY:2,lineWidth:0,portFill:i,portLineWidth:1,portStroke:o,portStrokeOpacity:.65,size:32,stroke:o,strokeOpacity:1,zIndex:2},state:{selected:{halo:!0,haloLineWidth:24,haloStrokeOpacity:a,labelFontSize:12,labelFontWeight:"bold",lineWidth:4,stroke:o},active:{halo:!0,haloLineWidth:12,haloStrokeOpacity:s},highlight:{labelFontWeight:"bold",lineWidth:4,stroke:o,strokeOpacity:.85},inactive:{badgeBackgroundOpacity:u,donutOpacity:u,fillOpacity:u,iconOpacity:c,labelFill:n,labelFillOpacity:u,strokeOpacity:u},disabled:{badgeBackgroundOpacity:.25,donutOpacity:l,fill:r,fillOpacity:l,iconFill:r,iconOpacity:.25,labelFill:n,labelFillOpacity:.25,strokeOpacity:l}},animation:{enter:"fade",exit:"fade",show:"fade",hide:"fade",expand:"node-expand",collapse:"node-collapse",update:[{fields:["x","y","fill","stroke"]}],translate:[{fields:["x","y"]}]}},edge:{palette:g,style:{badgeBackgroundFill:f,badgeFill:"#fff",badgeFontSize:8,badgeOffsetX:10,badgeBackgroundOpacity:1,fillOpacity:1,halo:!1,haloLineWidth:12,haloStrokeOpacity:1,increasedLineWidthForHitTesting:2,labelBackground:!1,labelBackgroundFill:t,labelBackgroundLineWidth:0,labelBackgroundOpacity:.75,labelBackgroundPadding:[4,4,4,4],labelFill:n,labelFontSize:12,labelFontWeight:400,labelOpacity:1,labelPlacement:"center",labelTextBaseline:"middle",lineWidth:1,stroke:f,strokeOpacity:1,zIndex:1},state:{selected:{halo:!0,haloStrokeOpacity:.25,labelFontSize:14,labelFontWeight:"bold",lineWidth:3},active:{halo:!0,haloStrokeOpacity:.15},highlight:{labelFontWeight:"bold",lineWidth:3},inactive:{stroke:w,fillOpacity:.08,labelOpacity:.25,strokeOpacity:.08,badgeBackgroundOpacity:.25},disabled:{stroke:p,fillOpacity:.45,strokeOpacity:.45,labelOpacity:.25,badgeBackgroundOpacity:.45}},animation:{enter:"fade",exit:"fade",expand:"path-in",collapse:"path-out",show:"fade",hide:"fade",update:[{fields:["sourceNode","targetNode"]},{fields:["stroke"],shape:"key"}],translate:[{fields:["sourceNode","targetNode"]}]}},combo:{style:{collapsedMarkerFill:t,collapsedMarkerFontSize:12,collapsedMarkerFillOpacity:1,collapsedSize:32,collapsedFillOpacity:1,fill:m,halo:!1,haloLineWidth:12,haloStroke:y,haloStrokeOpacity:.25,labelBackground:!1,labelBackgroundFill:t,labelBackgroundLineWidth:0,labelBackgroundOpacity:.75,labelBackgroundPadding:[2,4,2,4],labelFill:n,labelFontSize:12,labelFontWeight:400,labelOpacity:1,lineDash:0,lineWidth:1,fillOpacity:.04,strokeOpacity:1,padding:10,stroke:y},state:{selected:{halo:!0,labelFontSize:14,labelFontWeight:700,lineWidth:4},active:{halo:!0},highlight:{labelFontWeight:700,lineWidth:4},inactive:{fillOpacity:.65,labelOpacity:.25,strokeOpacity:.65},disabled:{fill:v,fillOpacity:.25,labelOpacity:.25,stroke:b,strokeOpacity:.25}},animation:{enter:"fade",exit:"fade",show:"fade",hide:"fade",expand:"combo-expand",collapse:"combo-collapse",update:[{fields:["x","y"]},{fields:["fill","stroke","lineWidth"],shape:"key"}],translate:[{fields:["x","y"]}]}}}}var ver={type:"group",color:["#637088","#0F55A6","#008383","#9C5D38","#8B53A6","#4E40A6","#8F6608","#3E801D","#A65383","#175E75","#0F8248"]},yer={bgColor:"#000000",comboColor:"#fdfdfd",comboColorDisabled:"#d0e4ff",comboStroke:"#99add1",comboStrokeDisabled:"#969696",edgeColor:"#637088",edgeColorDisabled:"#637088",edgeColorInactive:"#D0E4FF",edgePaletteOptions:ver,nodeColor:"#1783ff",nodeColorDisabled:"#D0E4FF",nodeHaloStrokeOpacityActive:.25,nodeHaloStrokeOpacitySelected:.45,nodeIconOpacityInactive:.45,nodeOpacityDisabled:.25,nodeOpacityInactive:.45,nodeStroke:"#d0e4ff",textColor:"#ffffff"},ber=CSn(yer),_er={bgColor:"#ffffff",comboColor:"#99ADD1",comboColorDisabled:"#f0f0f0",comboStroke:"#99add1",comboStrokeDisabled:"#d9d9d9",edgeColor:"#99add1",edgeColorDisabled:"#d9d9d9",edgeColorInactive:"#1B324F",nodeColor:"#1783ff",nodeColorDisabled:"#1B324F",nodeHaloStrokeOpacityActive:.15,nodeHaloStrokeOpacitySelected:.25,nodeIconOpacityInactive:.85,nodeOpacityDisabled:.06,nodeOpacityInactive:.25,nodeStroke:"#000000",textColor:"#000000"},wer=CSn(_er),oP=class extends _Ze{beforeDraw(e,t){return e}afterLayout(e,t){}},Cer=class extends oP{beforeDraw(e){const{model:t}=this.context,n=e.add.combos,i=r=>{const o=[];return r.forEach((s,a)=>{const c=t.getAncestorsData(a,"combo").map(u=>an(u)).reverse();o.push([a,s,c.length])}),new Map(o.sort(([,,s],[,,a])=>a-s).map(([s,a])=>[s,a]))};return e.add.combos=i(n),e.update.combos=i(e.update.combos),e}};function qy(e,t,n,i,r){const o=an(i),s=`${n}s`,a=r?i:e.add[s].get(o)||e.update[s].get(o)||e.remove[s].get(o)||i;Object.entries(e).forEach(([l,c])=>{t===l?c[s].set(o,a):c[s].delete(o)})}function kce(e,t){return Object.keys(e).every(n=>e[n]===t[n])}var Ser=class extends oP{beforeDraw(e,t){if(t.stage==="visibility"||!this.context.model.model.hasTreeStructure(zc))return e;const{model:n}=this.context,{add:i,update:r}=e,o=[...e.update.combos.entries(),...e.add.combos.entries()];for(;o.length;){const[s,a]=o.pop();if(S0(a)){const l=n.getDescendantsData(s),c=l.map(an),{internal:u,external:d}=tje(c,h=>n.getRelatedEdgesData(h));l.forEach(h=>{const f=an(h),p=o.findIndex(([m])=>m===f);p!==-1&&o.splice(p,1);const g=n.getElementType(f);qy(e,"remove",g,h)}),u.forEach(h=>qy(e,"remove","edge",h)),d.forEach(h=>{var f;const p=an(h);((f=this.context.element)===null||f===void 0?void 0:f.getElement(p))?r.edges.set(p,h):i.edges.set(p,h)})}else{const l=n.getChildrenData(s),c=l.map(an),{edges:u}=tje(c,d=>n.getRelatedEdgesData(d));[...l,...u].forEach(d=>{var h;const f=an(d),p=n.getElementType(f);((h=this.context.element)===null||h===void 0?void 0:h.getElement(f))?qy(e,"update",p,d):qy(e,"add",p,d),p==="combo"&&o.push([f,d])})}}return e}},hFt=(e,t,n,i)=>{const r=`${n}s`,o=an(i);!e.add[r].has(o)&&!e.update[r].has(o)&&e[t][r].set(an(i),i)},xer=class extends oP{getElement(e){return this.context.element.getElement(e)}handleExpand(e,t){if(hFt(t,"add","node",e),S0(e))return;const n=an(e);hFt(t,"add","node",e),this.context.model.getRelatedEdgesData(n).forEach(o=>{qy(t,"add","edge",o)}),this.context.model.getChildrenData(n).forEach(o=>{this.handleExpand(o,t)})}beforeDraw(e){const{graph:t,model:n}=this.context;if(!n.model.hasTreeStructure(Fy))return e;const{add:{nodes:i,edges:r},update:{nodes:o}}=e,s=new Map,a=new Map;i.forEach((c,u)=>{S0(c)&&s.set(u,c)}),r.forEach(c=>{if(t.getElementType(c.source)!=="node")return;const u=t.getNodeData(c.source);S0(u)&&s.set(c.source,u)}),o.forEach((c,u)=>{const d=this.getElement(u);if(!d)return;const h=d.attributes.collapsed;S0(c)?h||s.set(u,c):h&&a.set(u,c)});const l=new Set;return s.forEach((c,u)=>{n.getDescendantsData(u).forEach(h=>{const f=an(h);if(l.has(f))return;qy(e,"remove","node",h),n.getRelatedEdgesData(f).forEach(g=>{qy(e,"remove","edge",g)}),l.add(f)})}),a.forEach((c,u)=>{if(n.getAncestorsData(u,Fy).some(S0)){qy(e,"remove","node",c);return}this.handleExpand(c,e)}),e}};function nye(e,t,n){G7e[e][t]&&DE.warn(`The extension ${t} of ${e} has been registered before, and will be overridden.`),Object.assign(G7e[e],{[t]:n})}var Eer=on(Pi()),SSn=(function(){function e(t){_i(this,e),this.dragndropPluginOptions=t}return wi(e,[{key:"apply",value:function(n){var i=this,r=n.renderingService,o=n.renderingContext,s=o.root.ownerDocument,a=s.defaultView,l=function(u){var d=u.target,h=d===s,f=h&&i.dragndropPluginOptions.isDocumentDraggable?s:d.closest&&d.closest("[draggable=true]");if(f){var p=!1,g=u.timeStamp,m=[u.clientX,u.clientY],v=null,y=[u.clientX,u.clientY],b=(function(){var E=nN(wp().mark(function A(D){var T,M,P,F,N,j;return wp().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:if(p){W.next=2;break}if(T=D.timeStamp-g,M=(0,Eer.distanceSquareRoot)([D.clientX,D.clientY],m),!(T<=i.dragndropPluginOptions.dragstartTimeThreshold||M<=i.dragndropPluginOptions.dragstartDistanceThreshold)){W.next=1;break}return W.abrupt("return");case 1:D.type="dragstart",f.dispatchEvent(D),p=!0;case 2:if(D.type="drag",D.dx=D.clientX-y[0],D.dy=D.clientY-y[1],f.dispatchEvent(D),y=[D.clientX,D.clientY],h){W.next=4;break}return P=i.dragndropPluginOptions.overlap==="pointer"?[D.canvasX,D.canvasY]:d.getBounds().center,W.next=3,s.elementsFromPoint(P[0],P[1]);case 3:F=W.sent,N=F[F.indexOf(d)+1],j=N?.closest("[droppable=true]")||(i.dragndropPluginOptions.isDocumentDroppable?s:null),v!==j&&(v&&(D.type="dragleave",D.target=v,v.dispatchEvent(D)),j&&(D.type="dragenter",D.target=j,j.dispatchEvent(D)),v=j,v&&(D.type="dragover",D.target=v,v.dispatchEvent(D)));case 4:case"end":return W.stop()}},A)}));return function(D){return E.apply(this,arguments)}})();a.addEventListener("pointermove",b);var w=function(A){if(p){A.detail={preventClick:!0};var D=A.clone();v&&(D.type="drop",D.target=v,v.dispatchEvent(D)),D.type="dragend",f.dispatchEvent(D),p=!1}a.removeEventListener("pointermove",b)};d.addEventListener("pointerup",w,{once:!0}),d.addEventListener("pointerupoutside",w,{once:!0})}};r.hooks.init.tap(e.tag,function(){a.addEventListener("pointerdown",l)}),r.hooks.destroy.tap(e.tag,function(){a.removeEventListener("pointerdown",l)})}}])})();SSn.tag="Dragndrop";var Aer=(function(e){function t(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return _i(this,t),n=Hs(this,t),n.name="dragndrop",n.options=i,n}return Ws(t,e),wi(t,[{key:"init",value:function(){this.addRenderingPlugin(new SSn(Ps({overlap:"pointer",isDocumentDraggable:!1,isDocumentDroppable:!1,dragstartDistanceThreshold:0,dragstartTimeThreshold:0},this.options)))}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}},{key:"setOptions",value:function(i){Object.assign(this.plugins[0].dragndropPluginOptions,i)}}])})(eP),Der=on(Pi()),fFt=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,t||[])).next())})},pFt=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},gFt=["main"],mFt=["background","main","label","transient"];function Ter(e){return e.main}var vFt=class{getConfig(){return this.config}getLayer(e="main"){return this.extends.layers[e]||Ter(this.getLayers())}getLayers(){return this.extends.layers}getRenderer(e){return this.extends.renderers[e]}getCamera(e="main"){return this.getLayer(e).getCamera()}getRoot(e="main"){return this.getLayer(e).getRoot()}getContextService(e="main"){return this.getLayer(e).getContextService()}setCursor(e){this.config.cursor=e,this.getLayer().setCursor(e)}get document(){return this.getLayer().document}get context(){return this.getLayer().context}constructor(e){this.config={enableMultiLayer:!0},Object.assign(this.config,e);const t=this.config,{renderer:n,background:i,cursor:r,enableMultiLayer:o}=t,s=pFt(t,["renderer","background","cursor","enableMultiLayer"]),a=o?mFt:gFt,l=yFt(n,a),c=Object.fromEntries(a.map(u=>{const d=new q7e(Object.assign(Object.assign({},s),{supportsMutipleCanvasesInOneContainer:o,renderer:l[u],background:o?u==="background"?i:void 0:i}));return[u,d]}));bFt(c),this.extends={config:this.config,renderer:n,renderers:l,layers:c}}get ready(){return Promise.all(Object.entries(this.getLayers()).map(([,e])=>e.ready))}resize(e,t){Object.assign(this.extends.config,{width:e,height:t}),Object.values(this.getLayers()).forEach(n=>{const i=n.getCamera(),r=i.getPosition(),o=i.getFocalPoint();n.resize(e,t),i.setPosition(r),i.setFocalPoint(o)})}getBounds(e){return eZ(Object.values(this.getLayers()).map(t=>e?t.getRoot().childNodes.find(i=>i.classList.includes(e)):t.getRoot()).filter(t=>t?.childNodes.length>0).map(t=>t.getBounds()))}getContainer(){const e=this.extends.config.container;return typeof e=="string"?document.getElementById(e):e}getSize(){return[this.extends.config.width||0,this.extends.config.height||0]}appendChild(e,t){var n;const i=((n=e.style)===null||n===void 0?void 0:n.$layer)||"main";return this.getLayer(i).appendChild(e,t)}setRenderer(e){if(e===this.extends.renderer)return;const t=yFt(e,this.config.enableMultiLayer?mFt:gFt);this.extends.renderers=t,Object.entries(t).forEach(([n,i])=>this.getLayer(n).setRenderer(i)),bFt(this.getLayers())}getCanvasByViewport(e){return og(this.getLayer().viewport2Canvas($1(e)))}getViewportByCanvas(e){return og(this.getLayer().canvas2Viewport($1(e)))}getViewportByClient(e){return og(this.getLayer().client2Viewport($1(e)))}getClientByViewport(e){return og(this.getLayer().viewport2Client($1(e)))}getClientByCanvas(e){return this.getClientByViewport(this.getViewportByCanvas(e))}getCanvasByClient(e){const t=this.getLayer(),n=t.client2Viewport($1(e));return og(t.viewport2Canvas(n))}toDataURL(){return fFt(this,arguments,void 0,function*(e={}){const t=globalThis.devicePixelRatio||1,{mode:n="viewport"}=e,i=pFt(e,["mode"]);let[r,o,s,a]=[0,0,0,0];if(n==="viewport")[s,a]=this.getSize();else if(n==="overall"){const m=this.getBounds(),v=nP(m);[r,o]=m.min,[s,a]=v}const l=(0,Der.createDOM)('<div id="virtual-image"></div>'),c=new q7e({width:s,height:a,renderer:new iK,devicePixelRatio:t,container:l,background:this.extends.config.background});yield c.ready,c.appendChild(this.getLayer("background").getRoot().cloneNode(!0)),c.appendChild(this.getRoot().cloneNode(!0));const u=this.getLayer("label").getRoot().cloneNode(!0),d=c.viewport2Canvas({x:0,y:0}),h=this.getCanvasByViewport([0,0]);u.translate([h[0]-d.x,h[1]-d.y]),u.scale(1/this.getCamera().getZoom()),c.appendChild(u),c.appendChild(this.getLayer("transient").getRoot().cloneNode(!0));const f=this.getCamera(),p=c.getCamera();if(n==="viewport")p.setZoom(f.getZoom()),p.setPosition(f.getPosition()),p.setFocalPoint(f.getFocalPoint());else if(n==="overall"){const[m,v,y]=p.getPosition(),[b,w,E]=p.getFocalPoint();p.setPosition([m+r,v+o,y]),p.setFocalPoint([b+r,w+o,E])}const g=c.getContextService();return new Promise(m=>{c.addEventListener(Ry.RERENDER,()=>fFt(this,void 0,void 0,function*(){yield new Promise(y=>setTimeout(y,300));const v=yield g.toDataURL(i);m(v)}))})})}destroy(){Object.values(this.getLayers()).forEach(e=>{e.getCamera().cancelLandmarkAnimation(),e.destroy()})}};function yFt(e,t){return Object.fromEntries(t.map(n=>{const i=e?.(n)||new iK;return i instanceof iK&&i.setConfig({enableDirtyRectangleRendering:!1}),n==="main"?i.registerPlugin(new Aer({isDocumentDraggable:!0,isDocumentDroppable:!0,dragstartDistanceThreshold:10,dragstartTimeThreshold:100})):i.unregisterPlugin(i.getPlugin("dom-interaction")),[n,i]}))}function bFt(e){Object.entries(e).forEach(([t,n])=>{const i=n.getContextService().getDomElement();i?.style&&(i.style.gridArea="1 / 1 / 2 / 2",i.style.outline="none",i.tabIndex=1,t!=="main"&&(i.style.pointerEvents="none")),i?.parentElement&&(i.parentElement.style.display="grid",i.parentElement.style.isolation="isolate")})}var Zl=on(Pi()),_Ft=on(Pi()),iB=e=>e?parseInt(e):0;function ker(e){const t=getComputedStyle(e),n=e.clientWidth||iB(t.width),i=e.clientHeight||iB(t.height),r=iB(t.paddingLeft)+iB(t.paddingRight),o=iB(t.paddingTop)+iB(t.paddingBottom);return[n-r,i-o]}function wFt(e){if(!e)return[0,0];let t=640,n=480;const[i,r]=ker(e);t=i||t,n=r||n;const o=1,s=1;return[Math.max((0,_Ft.isNumber)(t)?t:o,o),Math.max((0,_Ft.isNumber)(n)?n:s,s)]}var iye=class{constructor(e){this.type=e}},sf=class extends iye{constructor(e,t){super(e),this.data=t}},a_=class extends iye{constructor(e,t,n,i){super(e),this.animationType=t,this.animation=n,this.data=i}},rB=class extends iye{constructor(e,t,n){super(e),this.elementType=t,this.data=n}},Nre=class extends iye{constructor(e,t){super(e),this.data=t}};function Rf(e,t){e.emit(t.type,t)}function Ier(e){if(!e)return null;if(e instanceof y_n)return{type:"canvas",element:e};let t=e;for(;t;){if(rZ(t))return{type:"node",element:t};if(s1n(t))return{type:"edge",element:t};if(NZe(t))return{type:"combo",element:t};t=t.parentElement}return null}function CFt(e){var t;return((t=e?.style)===null||t===void 0?void 0:t.zIndex)||0}var A6=on(Pi()),iq="cachedStyle",JZe=e=>`__${e}__`;function Ler(e,t){const n=Array.isArray(t)?t:[t];(0,A6.get)(e,iq)||(0,A6.set)(e,iq,{}),n.forEach(i=>{(0,A6.set)((0,A6.get)(e,iq),JZe(i),e.attributes[i])})}function SFt(e,t){return(0,A6.get)(e,[iq,JZe(t)])}function Ner(e,t){return JZe(t)in((0,A6.get)(e,iq)||{})}var Per=class{constructor(e){this.tasks=[],this.animations=new Set,this.context=e}getTasks(){const e=[...this.tasks];return this.tasks=[],e}add(e,t){this.tasks.push([e,t])}animate(e,t,n){var i,r,o;(i=t?.before)===null||i===void 0||i.call(t);const s=this.getTasks().map(([l,c])=>{var u,d,h;const{element:f,elementType:p,stage:g}=l,m=SUi(this.context.options,p,g,e);(u=c?.before)===null||u===void 0||u.call(c);const v=m.length?AUi(f,this.inferStyle(l,n),m):null;return v?((d=c?.beforeAnimate)===null||d===void 0||d.call(c,v),v.finished.then(()=>{var y,b;(y=c?.afterAnimate)===null||y===void 0||y.call(c,v),(b=c?.after)===null||b===void 0||b.call(c),this.animations.delete(v)})):(h=c?.after)===null||h===void 0||h.call(c),v}).filter(Boolean);s.forEach(l=>this.animations.add(l));const a=mZe(s);return a?((r=t?.beforeAnimate)===null||r===void 0||r.call(t,a),a.finished.then(()=>{var l,c;(l=t?.afterAnimate)===null||l===void 0||l.call(t,a),(c=t?.after)===null||c===void 0||c.call(t),this.release()})):(o=t?.after)===null||o===void 0||o.call(t),a}inferStyle(e,t){var n,i;const{element:r,elementType:o,stage:s,originalStyle:a,updatedStyle:l={}}=e;e.modifiedStyle||(e.modifiedStyle=Object.assign(Object.assign({},a),l));const{modifiedStyle:c}=e,u={},d={};if(s==="enter")Object.assign(u,{opacity:0});else if(s==="exit")Object.assign(d,{opacity:0});else if(s==="show")Object.assign(u,{opacity:0}),Object.assign(d,{opacity:(n=SFt(r,"opacity"))!==null&&n!==void 0?n:tK("opacity")});else if(s==="hide")Object.assign(u,{opacity:(i=SFt(r,"opacity"))!==null&&i!==void 0?i:tK("opacity")}),Object.assign(d,{opacity:0});else if(s==="collapse"){const{collapse:h}=t||{},{target:f,descendants:p,position:g}=h;if(o==="node"){if(p.includes(r.id)){const[m,v,y]=g;Object.assign(d,{x:m,y:v,z:y})}}else if(o==="combo"){if(r.id===f||p.includes(r.id)){const[m,v]=g;Object.assign(d,{x:m,y:v,childrenNode:a.childrenNode})}}else o==="edge"&&Object.assign(d,{sourceNode:c.sourceNode,targetNode:c.targetNode})}else if(s==="expand"){const{expand:h}=t||{},{target:f,descendants:p,position:g}=h;if(o==="node"){if(r.id===f||p.includes(r.id)){const[m,v,y]=g;Object.assign(u,{x:m,y:v,z:y})}}else if(o==="combo"){if(r.id===f||p.includes(r.id)){const[m,v,y]=g;Object.assign(u,{x:m,y:v,z:y,childrenNode:c.childrenNode})}}else o==="edge"&&Object.assign(u,{sourceNode:c.sourceNode,targetNode:c.targetNode})}return[Object.keys(u).length>0?Object.assign({},a,u):a,Object.keys(d).length>0?Object.assign({},c,d):c]}stop(){this.animations.forEach(e=>e.cancel())}clear(){this.tasks=[]}release(){var e,t;const{canvas:n}=this.context,i=(t=(e=n.document)===null||e===void 0?void 0:e.timeline)===null||t===void 0?void 0:t.animationsWithPromises;i&&(n.document.timeline.animationsWithPromises=i.filter(r=>r.playState!=="finished"))}destroy(){this.stop(),this.animations.clear(),this.tasks=[]}},Mer=class{constructor(e){this.batchCount=0,this.context=e}emit(e){const{graph:t}=this.context;t.emit(e.type,e)}startBatch(e=!0){this.batchCount++,this.batchCount===1&&this.emit(new sf(Ni.BATCH_START,{initiate:e}))}endBatch(){this.batchCount--,this.batchCount===0&&this.emit(new sf(Ni.BATCH_END))}get isBatching(){return this.batchCount>0}destroy(){this.context=null}},Oer=class extends bZe{constructor(e){super(e),this.currentTarget=null,this.currentTargetType=null,this.category="behavior",this.forwardCanvasEvents=t=>{const{target:n}=t,i=Ier(n);if(!i)return;const{graph:r,canvas:o}=this.context,{type:s,element:a}=i;if("destroyed"in a&&(oZ(a)||a.destroyed))return;const{type:l,detail:c,button:u}=t,d=Object.assign(Object.assign({},t),{target:a,targetType:s,originalTarget:n});l===Rn.POINTER_MOVE&&(this.currentTarget!==a&&(this.currentTarget&&r.emit(`${this.currentTargetType}:${Rn.POINTER_LEAVE}`,Object.assign(Object.assign({},d),{type:Rn.POINTER_LEAVE,target:this.currentTarget,targetType:this.currentTargetType})),a&&(Object.assign(d,{type:Rn.POINTER_ENTER}),r.emit(`${s}:${Rn.POINTER_ENTER}`,d))),this.currentTarget=a,this.currentTargetType=s),l===Rn.CLICK&&u===2||(r.emit(`${s}:${l}`,d),r.emit(l,d)),l===Rn.CLICK&&c===2&&(Object.assign(d,{type:Rn.DBLCLICK}),r.emit(`${s}:${Rn.DBLCLICK}`,d),r.emit(Rn.DBLCLICK,d)),l===Rn.POINTER_DOWN&&u===2&&(Object.assign(d,{type:Rn.CONTEXT_MENU,preventDefault:()=>{var h;(h=o.getContainer())===null||h===void 0||h.addEventListener(Rn.CONTEXT_MENU,f=>f.preventDefault(),{once:!0})}}),r.emit(`${s}:${Rn.CONTEXT_MENU}`,d),r.emit(Rn.CONTEXT_MENU,d))},this.forwardContainerEvents=t=>{this.context.graph.emit(t.type,t)},this.forwardEvents(),this.setBehaviors(this.context.options.behaviors||[])}setBehaviors(e){this.setExtensions(e)}forwardEvents(){const e=this.context.canvas.getContainer();e&&[E6.KEY_DOWN,E6.KEY_UP].forEach(n=>{e.addEventListener(n,this.forwardContainerEvents)});const t=this.context.canvas.document;t&&[Rn.CLICK,Rn.DBLCLICK,Rn.POINTER_OVER,Rn.POINTER_LEAVE,Rn.POINTER_ENTER,Rn.POINTER_MOVE,Rn.POINTER_OUT,Rn.POINTER_DOWN,Rn.POINTER_UP,Rn.CONTEXT_MENU,Rn.DRAG_START,Rn.DRAG,Rn.DRAG_END,Rn.DRAG_ENTER,Rn.DRAG_OVER,Rn.DRAG_LEAVE,Rn.DROP,Rn.WHEEL].forEach(n=>{t.addEventListener(n,this.forwardCanvasEvents)})}destroy(){const e=this.context.canvas.getContainer();e&&[E6.KEY_DOWN,E6.KEY_UP].forEach(t=>{e.removeEventListener(t,this.forwardContainerEvents)}),this.context.canvas.document.removeAllEventListeners(),super.destroy()}},aH=on(Pi()),Rer=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};function eOe(e){const{id:t=an(e),style:n,data:i}=e,r=Rer(e,["id","style","data"]),o=Object.assign(Object.assign({},e),{style:Object.assign({},n),data:Object.assign({},i)});return PUi(e)?Object.assign({id:t,data:o},r):{id:t,data:o}}function ip(e){return e.data}function Fer(e){if(e.hasTreeStructure(Fy))return;e.attachTreeStructure(Fy);const t=e.getAllEdges();for(const n of t){const{source:i,target:r}=n;e.setParent(r,i,Fy)}}var Ber=class{constructor(){this.latestRemovedComboIds=new Set,this.comboIds=new Set,this.changes=[],this.batchCount=0,this.isTraceless=!1,this.enableUpdateNodeLikeHierarchy=!0,this.model=new FZe}pushChange(e){if(this.isTraceless)return;const{type:t}=e;if(t===Pu.NodeUpdated||t===Pu.EdgeUpdated||t===Pu.ComboUpdated){const{value:n,original:i}=e;this.changes.push({value:NMe(n),original:NMe(i),type:t})}else this.changes.push({value:NMe(e.value),type:t})}getChanges(){return this.changes}clearChanges(){this.changes=[]}batch(e){this.batchCount++,this.model.batch(e),this.batchCount--}isBatching(){return this.batchCount>0}silence(e){this.isTraceless=!0,e(),this.isTraceless=!1}isCombo(e){return this.comboIds.has(e)||this.latestRemovedComboIds.has(e)}getData(){return{nodes:this.getNodeData(),edges:this.getEdgeData(),combos:this.getComboData()}}getNodeData(e){return this.model.getAllNodes().reduce((t,n)=>{const i=ip(n);return this.isCombo(an(i))||(e===void 0||e.includes(an(i)))&&t.push(i),t},[])}getEdgeDatum(e){return ip(this.model.getEdge(e))}getEdgeData(e){return this.model.getAllEdges().reduce((t,n)=>{const i=ip(n);return(e===void 0||e.includes(an(i)))&&t.push(i),t},[])}getComboData(e){return this.model.getAllNodes().reduce((t,n)=>{const i=ip(n);return this.isCombo(an(i))&&(e===void 0||e.includes(an(i)))&&t.push(i),t},[])}getRootsData(e=Fy){return this.model.getRoots(e).map(ip)}getAncestorsData(e,t){const{model:n}=this;return!n.hasNode(e)||!n.hasTreeStructure(t)?[]:n.getAncestors(e,t).map(ip)}getDescendantsData(e){const t=this.getElementDataById(e),n=[];return D8(t,i=>{i!==t&&n.push(i)},i=>this.getChildrenData(an(i)),"TB"),n}getParentData(e,t){const{model:n}=this;if(!t){DE.warn("The hierarchy structure key is not specified");return}if(!n.hasNode(e)||!n.hasTreeStructure(t))return;const i=n.getParent(e,t);return i?ip(i):void 0}getChildrenData(e){const t=this.getElementType(e)==="node"?Fy:zc,{model:n}=this;return!n.hasNode(e)||!n.hasTreeStructure(t)?[]:n.getChildren(e,t).map(ip)}getElementsDataByType(e){return e==="node"?this.getNodeData():e==="edge"?this.getEdgeData():e==="combo"?this.getComboData():[]}getElementDataById(e){return this.getElementType(e)==="edge"?this.getEdgeDatum(e):this.getNodeLikeDatum(e)}getNodeLikeDatum(e){const t=this.model.getNode(e);return ip(t)}getNodeLikeData(e){return this.model.getAllNodes().reduce((t,n)=>{const i=ip(n);return e?e.includes(an(i))&&t.push(i):t.push(i),t},[])}getElementDataByState(e,t){return this.getElementsDataByType(e).filter(i=>{var r;return(r=i.states)===null||r===void 0?void 0:r.includes(t)})}getElementState(e){var t;return((t=this.getElementDataById(e))===null||t===void 0?void 0:t.states)||[]}hasNode(e){return this.model.hasNode(e)&&!this.isCombo(e)}hasEdge(e){return this.model.hasEdge(e)}hasCombo(e){return this.model.hasNode(e)&&this.isCombo(e)}getRelatedEdgesData(e,t="both"){return this.model.getRelatedEdges(e,t).map(ip)}getNeighborNodesData(e){return this.model.getNeighbors(e).map(ip)}setData(e){const{nodes:t=[],edges:n=[],combos:i=[]}=e,{nodes:r,edges:o,combos:s}=this.getData(),a=gL(r,t,u=>an(u),X4),l=gL(o,n,u=>an(u),X4),c=gL(s,i,u=>an(u),X4);this.batch(()=>{const u={nodes:a.enter,edges:l.enter,combos:c.enter};this.addData(u),this.computeZIndex(u,"add",!0);const d={nodes:a.update,edges:l.update,combos:c.update};this.updateData(d),this.computeZIndex(d,"update",!0);const h={nodes:a.exit.map(an),edges:l.exit.map(an),combos:c.exit.map(an)};this.removeData(h)})}addData(e){const{nodes:t,edges:n,combos:i}=e;this.batch(()=>{this.addComboData(i),this.addNodeData(t),this.addEdgeData(n)}),this.computeZIndex(e,"add")}addNodeData(e=[]){e.length&&(this.model.addNodes(e.map(t=>(this.pushChange({value:t,type:Pu.NodeAdded}),eOe(t)))),this.updateNodeLikeHierarchy(e),this.computeZIndex({nodes:e},"add"))}addEdgeData(e=[]){e.length&&(this.model.addEdges(e.map(t=>(this.pushChange({value:t,type:Pu.EdgeAdded}),eOe(t)))),this.computeZIndex({edges:e},"add"))}addComboData(e=[]){if(!e.length)return;const{model:t}=this;t.hasTreeStructure(zc)||t.attachTreeStructure(zc),t.addNodes(e.map(n=>(this.comboIds.add(an(n)),this.pushChange({value:n,type:Pu.ComboAdded}),eOe(n)))),this.updateNodeLikeHierarchy(e),this.computeZIndex({combos:e},"add")}addChildrenData(e,t){const n=this.getNodeLikeDatum(e),i=t.map(an);this.addNodeData(t),this.updateNodeData([{id:e,children:[...n.children||[],...i]}]),this.addEdgeData(i.map(r=>({source:e,target:r})))}computeZIndex(e,t,n=!1){!n&&this.isBatching()||this.batch(()=>{const{nodes:i=[],edges:r=[],combos:o=[]}=e;o.forEach(s=>{var a,l,c;const u=an(s);if(t==="add"&&(0,aH.isNumber)((a=s.style)===null||a===void 0?void 0:a.zIndex)||t==="update"&&!("combo"in s))return;const d=this.getParentData(u,zc),h=d?((c=(l=d.style)===null||l===void 0?void 0:l.zIndex)!==null&&c!==void 0?c:0)+1:0;this.preventUpdateNodeLikeHierarchy(()=>{this.updateComboData([{id:u,style:{zIndex:h}}])})}),i.forEach(s=>{var a,l,c;const u=an(s);if(t==="add"&&(0,aH.isNumber)((a=s.style)===null||a===void 0?void 0:a.zIndex)||t==="update"&&!("combo"in s)&&!("children"in s))return;let d=0;const h=this.getParentData(u,zc);if(h)d=(((l=h.style)===null||l===void 0?void 0:l.zIndex)||0)+1;else{const f=this.getParentData(u,Fy);f&&(d=((c=f?.style)===null||c===void 0?void 0:c.zIndex)||0)}this.preventUpdateNodeLikeHierarchy(()=>{this.updateNodeData([{id:u,style:{zIndex:d}}])})}),r.forEach(s=>{var a,l,c,u,d;if((0,aH.isNumber)((a=s.style)===null||a===void 0?void 0:a.zIndex))return;let{id:h,source:f,target:p}=s;if(!h)h=an(s);else{const v=this.getEdgeDatum(h);f=v.source,p=v.target}if(!f||!p)return;const g=((c=(l=this.getNodeLikeDatum(f))===null||l===void 0?void 0:l.style)===null||c===void 0?void 0:c.zIndex)||0,m=((d=(u=this.getNodeLikeDatum(p))===null||u===void 0?void 0:u.style)===null||d===void 0?void 0:d.zIndex)||0;this.updateEdgeData([{id:an(s),style:{zIndex:Math.max(g,m)-1}}])})})}getFrontZIndex(e){var t;const n=this.getElementType(e),i=this.getElementDataById(e),r=this.getData();if(Object.assign(r,{[`${n}s`]:r[`${n}s`].filter(o=>an(o)!==e)}),n==="combo"&&!S0(i)){const o=new Set(this.getAncestorsData(e,zc).map(an));r.nodes=r.nodes.filter(s=>!o.has(an(s))),r.combos=r.combos.filter(s=>!o.has(an(s))),r.edges=r.edges.filter(({source:s,target:a})=>!o.has(s)&&!o.has(a))}return Math.max(((t=i.style)===null||t===void 0?void 0:t.zIndex)||0,0,...Object.values(r).flat().map(o=>{var s;return(((s=o?.style)===null||s===void 0?void 0:s.zIndex)||0)+1}))}updateNodeLikeHierarchy(e){if(!this.enableUpdateNodeLikeHierarchy)return;const{model:t}=this;e.forEach(n=>{const i=an(n),r=are(n);r!==void 0&&(t.hasTreeStructure(zc)||t.attachTreeStructure(zc),r===null&&this.refreshComboData(i),this.setParent(i,are(n),zc));const o=n.children||[];if(o.length){t.hasTreeStructure(Fy)||t.attachTreeStructure(Fy);const s=o.filter(a=>t.hasNode(a));s.forEach(a=>this.setParent(a,i,Fy)),s.length!==o.length&&this.updateNodeData([{id:i,children:s}])}})}preventUpdateNodeLikeHierarchy(e){this.enableUpdateNodeLikeHierarchy=!1,e(),this.enableUpdateNodeLikeHierarchy=!0}updateData(e){const{nodes:t,edges:n,combos:i}=e;this.batch(()=>{this.updateNodeData(t),this.updateComboData(i),this.updateEdgeData(n)}),this.computeZIndex(e,"update")}updateNodeData(e=[]){if(!e.length)return;const{model:t}=this;this.batch(()=>{const n=[];e.forEach(i=>{const r=an(i),o=ip(t.getNode(r));if(X4(o,i))return;const s=Wk(o,i);this.pushChange({value:s,original:o,type:Pu.NodeUpdated}),t.mergeNodeData(r,s),n.push(s)}),this.updateNodeLikeHierarchy(n)}),this.computeZIndex({nodes:e},"update")}refreshData(){const{nodes:e,edges:t,combos:n}=this.getData();e.forEach(i=>{this.pushChange({value:i,original:i,type:Pu.NodeUpdated})}),t.forEach(i=>{this.pushChange({value:i,original:i,type:Pu.EdgeUpdated})}),n.forEach(i=>{this.pushChange({value:i,original:i,type:Pu.ComboUpdated})})}syncNodeLikeDatum(e){const{model:t}=this,n=an(e);if(!t.hasNode(n))return;const i=ip(t.getNode(n)),r=Wk(i,e);t.mergeNodeData(n,r)}syncEdgeDatum(e){const{model:t}=this,n=an(e);if(!t.hasEdge(n))return;const i=ip(t.getEdge(n)),r=Wk(i,e);t.mergeEdgeData(n,r)}updateEdgeData(e=[]){if(!e.length)return;const{model:t}=this;this.batch(()=>{e.forEach(n=>{const i=an(n),r=ip(t.getEdge(i));if(X4(r,n))return;n.source&&r.source!==n.source&&t.updateEdgeSource(i,n.source),n.target&&r.target!==n.target&&t.updateEdgeTarget(i,n.target);const o=Wk(r,n);this.pushChange({value:o,original:r,type:Pu.EdgeUpdated}),t.mergeEdgeData(i,o)})}),this.computeZIndex({edges:e},"update")}updateComboData(e=[]){if(!e.length)return;const{model:t}=this;t.batch(()=>{const n=[];e.forEach(i=>{const r=an(i),o=ip(t.getNode(r));if(X4(o,i))return;const s=Wk(o,i);this.pushChange({value:s,original:o,type:Pu.ComboUpdated}),t.mergeNodeData(r,s),n.push(s)}),this.updateNodeLikeHierarchy(n)}),this.computeZIndex({combos:e},"update")}setParent(e,t,n,i=!0){if(e===t)return;const r=this.getNodeLikeDatum(e),o=are(r);if(o!==t&&n===zc){const s={id:e,combo:t};this.isCombo(e)?this.syncNodeLikeDatum(s):this.syncNodeLikeDatum(s)}this.model.setParent(e,t,n),i&&n===zc&&(0,aH.uniq)([o,t]).forEach(s=>{s!==void 0&&this.refreshComboData(s)})}refreshComboData(e){const t=this.getComboData([e])[0],n=this.getAncestorsData(e,zc);t&&this.pushChange({value:t,original:t,type:Pu.ComboUpdated}),n.forEach(i=>{this.pushChange({value:i,original:i,type:Pu.ComboUpdated})})}getElementPosition(e){const t=this.getElementDataById(e);return zf(t)}translateNodeLikeBy(e,t){this.isCombo(e)?this.translateComboBy(e,t):this.translateNodeBy(e,t)}translateNodeLikeTo(e,t){this.isCombo(e)?this.translateComboTo(e,t):this.translateNodeTo(e,t)}translateNodeBy(e,t){const n=this.getElementPosition(e),i=_s(n,[...t,0].slice(0,3));this.translateNodeTo(e,i)}translateNodeTo(e,t){const[n=0,i=0,r=0]=t;this.preventUpdateNodeLikeHierarchy(()=>{this.updateNodeData([{id:e,style:{x:n,y:i,z:r}}])})}translateComboBy(e,t){const[n=0,i=0,r=0]=t;if([n,i,r].some(isNaN)||[n,i,r].every(a=>a===0))return;const o=this.getComboData([e])[0];if(!o)return;const s=new Set;D8(o,a=>{const l=an(a);if(s.has(l))return;s.add(l);const[c,u,d]=zf(a),h=Wk(a,{style:{x:c+n,y:u+i,z:d+r}});this.pushChange({value:h,original:a,type:this.isCombo(l)?Pu.ComboUpdated:Pu.NodeUpdated}),this.model.mergeNodeData(l,h)},a=>this.getChildrenData(an(a)),"BT")}translateComboTo(e,t){var n;if(t.some(isNaN))return;const[i=0,r=0,o=0]=t,s=(n=this.getComboData([e]))===null||n===void 0?void 0:n[0];if(!s)return;const[a,l,c]=zf(s),u=i-a,d=r-l,h=o-c;D8(s,f=>{const p=an(f),[g,m,v]=zf(f),y=Wk(f,{style:{x:g+u,y:m+d,z:v+h}});this.pushChange({value:y,original:f,type:this.isCombo(p)?Pu.ComboUpdated:Pu.NodeUpdated}),this.model.mergeNodeData(p,y)},f=>this.getChildrenData(an(f)),"BT")}removeData(e){const{nodes:t,edges:n,combos:i}=e;this.batch(()=>{this.removeEdgeData(n),this.removeNodeData(t),this.removeComboData(i),this.latestRemovedComboIds=new Set(i)})}removeNodeData(e=[]){e.length&&this.batch(()=>{e.forEach(t=>{this.removeEdgeData(this.getRelatedEdgesData(t).map(an)),this.pushChange({value:this.getNodeData([t])[0],type:Pu.NodeRemoved}),this.removeNodeLikeHierarchy(t)}),this.model.removeNodes(e)})}removeEdgeData(e=[]){e.length&&(e.forEach(t=>this.pushChange({value:this.getEdgeData([t])[0],type:Pu.EdgeRemoved})),this.model.removeEdges(e))}removeComboData(e=[]){e.length&&this.batch(()=>{e.forEach(t=>{this.pushChange({value:this.getComboData([t])[0],type:Pu.ComboRemoved}),this.removeNodeLikeHierarchy(t),this.comboIds.delete(t)}),this.model.removeNodes(e)})}removeNodeLikeHierarchy(e){if(this.model.hasTreeStructure(zc)){const t=are(this.getNodeLikeDatum(e));this.setParent(e,void 0,zc,!1),this.model.getChildren(e,zc).forEach(n=>{const i=ip(n),r=an(i);this.setParent(an(i),t,zc,!1);const o=Wk(i,{id:an(i),combo:t});this.pushChange({value:o,original:i,type:this.isCombo(r)?Pu.ComboUpdated:Pu.NodeUpdated}),this.model.mergeNodeData(an(i),o)}),(0,aH.isNil)(t)||this.refreshComboData(t)}}getElementType(e){if(this.model.hasNode(e))return this.isCombo(e)?"combo":"node";if(this.model.hasEdge(e))return"edge";throw new Error(mD(`Unknown element type of id: ${e}`))}destroy(){const{model:e}=this,t=e.getAllNodes(),n=e.getAllEdges();e.removeEdges(n.map(i=>i.id)),e.removeNodes(t.map(i=>i.id)),this.context={}}},jer=on(Pi()),oB=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,t||[])).next())})},zer=class{constructor(e){this.elementMap={},this.shapeTypeMap={},this.paletteStyle={},this.defaultStyle={},this.stateStyle={},this.visibilityCache=new WeakMap,this.context=e}init(){this.initContainer()}initContainer(){if(!this.container||this.container.destroyed){const{canvas:e}=this.context;this.container=e.appendChild(new qf({className:"elements"}))}}emit(e,t){t.silence||Rf(this.context.graph,e)}forEachElementData(e){O2.forEach(t=>{const n=this.context.model.getElementsDataByType(t);e(t,n)})}getElementType(e,t){var n;const{options:i,graph:r}=this.context,o=HRt(t)&&((n=i[e])===null||n===void 0?void 0:n.type)||t.type;return o?typeof o=="string"?o:o.call(r,t):e==="edge"?"line":"circle"}getTheme(e){return I_n(this.context.options)[e]||{}}getThemeStyle(e){return this.getTheme(e).style||{}}getThemeStateStyle(e,t){const{state:n={}}=this.getTheme(e);return Object.assign({},...t.map(i=>n[i]||{}))}computePaletteStyle(){const{options:e}=this.context;this.paletteStyle={},this.forEachElementData((t,n)=>{var i,r;const o=Object.assign({},_Rt((i=this.getTheme(t))===null||i===void 0?void 0:i.palette),_Rt((r=e[t])===null||r===void 0?void 0:r.palette));o?.field&&Object.assign(this.paletteStyle,z$i(n,o))})}getPaletteStyle(e,t){const n=this.paletteStyle[t];return n?e==="edge"?{stroke:n}:{fill:n}:{}}computeElementDefaultStyle(e,t){var n;const{options:i}=this.context,r=((n=i[e])===null||n===void 0?void 0:n.style)||{};"transform"in r&&Array.isArray(r.transform)&&(r.transform=[...r.transform]),this.defaultStyle[an(t.datum)]=bRt(r,t)}computeElementsDefaultStyle(e){const{graph:t}=this.context;this.forEachElementData((n,i)=>{const r=i.length;for(let o=0;o<r;o++){const s=i[o];(e===void 0||e.includes(an(s)))&&this.computeElementDefaultStyle(n,{datum:s,graph:t})}})}getDefaultStyle(e){return this.defaultStyle[e]||{}}getElementState(e){try{const{model:t}=this.context;return t.getElementState(e)}catch{return[]}}getElementStateStyle(e,t,n){var i,r;const{options:o}=this.context,s=((r=(i=o[e])===null||i===void 0?void 0:i.state)===null||r===void 0?void 0:r[t])||{};return bRt(s,n)}computeElementStatesStyle(e,t,n){this.stateStyle[an(n.datum)]=Object.assign({},...t.map(i=>this.getElementStateStyle(e,i,n)))}computeElementsStatesStyle(e){const{graph:t}=this.context;this.forEachElementData((n,i)=>{const r=i.length;for(let o=0;o<r;o++){const s=i[o];if(e===void 0||e.includes(an(s))){const a=this.getElementState(an(s));this.computeElementStatesStyle(n,a,{datum:s,graph:t})}}})}getStateStyle(e){return this.stateStyle[e]||{}}computeStyle(e,t){e&&["translate","zIndex"].includes(e)||(this.computePaletteStyle(),this.computeElementsDefaultStyle(t),this.computeElementsStatesStyle(t))}getElement(e){return this.elementMap[e]}getNodes(){return this.context.model.getNodeData().map(({id:e})=>this.elementMap[e])}getEdges(){return this.context.model.getEdgeData().map(e=>this.elementMap[an(e)])}getCombos(){return this.context.model.getComboData().map(({id:e})=>this.elementMap[e])}getElementComputedStyle(e,t){const n=an(t),i=this.getThemeStyle(e),r=this.getPaletteStyle(e,n),o=t.style||{},s=this.getDefaultStyle(n),a=this.getThemeStateStyle(e,this.getElementState(n)),l=this.getStateStyle(n),c=HRt(t)?Object.assign({},i,r,o,s,a,l):Object.assign({},o);if(e==="combo"){const u=this.context.model.getChildrenData(n),h=!!c.collapsed?[]:u.map(an).filter(f=>this.getElement(f));Object.assign(c,{childrenNode:h,childrenData:u})}return c}getDrawData(e){this.init();const t=this.computeChangesAndDrawData(e);if(!t)return null;const{type:n="draw",stage:i=n}=e;return this.markDestroyElement(t.drawData),this.computeStyle(i),{type:n,stage:i,data:t}}draw(e={animation:!0}){const t=this.getDrawData(e);if(!t)return;const{data:{drawData:{add:n,update:i,remove:r}}}=t;return this.destroyElements(r,e),this.createElements(n,e),this.updateElements(i,e),this.setAnimationTask(e,t)}preLayoutDraw(){return oB(this,arguments,void 0,function*(e={animation:!0}){var t,n;const i=this.getDrawData(e);if(!i)return;const{data:{drawData:r}}=i;yield(n=(t=this.context.layout)===null||t===void 0?void 0:t.preLayout)===null||n===void 0?void 0:n.call(t,r);const{add:o,update:s,remove:a}=r;return this.destroyElements(a,e),this.createElements(o,e),this.updateElements(s,e),this.setAnimationTask(e,i)})}setAnimationTask(e,t){const{animation:n,silence:i}=e,{data:{dataChanges:r,drawData:o},stage:s,type:a}=t;return this.context.animation.animate(n,i?{}:{before:()=>this.emit(new sf(Ni.BEFORE_DRAW,{dataChanges:r,animation:n,stage:s,render:a==="render"}),e),beforeAnimate:l=>this.emit(new a_(Ni.BEFORE_ANIMATE,d0.DRAW,l,o),e),afterAnimate:l=>this.emit(new a_(Ni.AFTER_ANIMATE,d0.DRAW,l,o),e),after:()=>this.emit(new sf(Ni.AFTER_DRAW,{dataChanges:r,animation:n,stage:s,render:a==="render",firstRender:this.context.graph.rendered===!1}),e)})}computeChangesAndDrawData(e){const{model:t}=this.context,n=t.getChanges(),i=zZe(n);if(i.length===0)return null;const{NodeAdded:r=[],NodeUpdated:o=[],NodeRemoved:s=[],EdgeAdded:a=[],EdgeUpdated:l=[],EdgeRemoved:c=[],ComboAdded:u=[],ComboUpdated:d=[],ComboRemoved:h=[]}=(0,jer.groupBy)(i,w=>w.type),f=(w,E)=>{const A=[];return w.forEach(D=>{const T=an(D.value);this.getElement(T)?A.push(D):E.push(D)}),A},p=f(o,r),g=f(l,a),m=f(d,u),v=w=>new Map(w.map(E=>{const A=E.value;return[an(A),A]})),y={add:{nodes:v(r),edges:v(a),combos:v(u)},update:{nodes:v(p),edges:v(g),combos:v(m)},remove:{nodes:v(s),edges:v(c),combos:v(h)}},b=this.transformData(y,e);return t.clearChanges(),{dataChanges:n,drawData:b}}transformData(e,t){const n=this.context.transform.getTransformInstance();return Object.values(n).reduce((i,r)=>r.beforeDraw(i,t),e)}createElement(e,t,n){var i;const r=an(t);if(this.getElement(r))return;const s=this.getElementType(e,t),a=this.getElementComputedStyle(e,t),l=eT(e,s);if(!l)return DE.warn(`The element ${s} of ${e} is not registered.`);this.emit(new rB(Ni.BEFORE_ELEMENT_CREATE,e,t),n);const c=this.container.appendChild(new l({id:r,context:this.context,style:a}));this.shapeTypeMap[r]=s,this.elementMap[r]=c;const{stage:u="enter"}=n;(i=this.context.animation)===null||i===void 0||i.add({element:c,elementType:e,stage:u,originalStyle:Object.assign({},c.attributes),updatedStyle:a},{after:()=>{var d;this.emit(new rB(Ni.AFTER_ELEMENT_CREATE,e,t),n),(d=c.onCreate)===null||d===void 0||d.call(c)}})}createElements(e,t){const{nodes:n,edges:i,combos:r}=e;[["node",n],["combo",r],["edge",i]].forEach(([s,a])=>{a.forEach(l=>this.createElement(s,l,t))})}getUpdateStageStyle(e,t,n){const{stage:i="update"}=n;if(i==="translate")if(e==="node"||e==="combo"){const{style:{x:r=0,y:o=0,z:s=0}={}}=t;return{x:r,y:o,z:s}}else return{};return this.getElementComputedStyle(e,t)}updateElement(e,t,n){var i;const r=an(t),{stage:o="update"}=n,s=this.getElement(r);if(!s)return()=>null;this.emit(new rB(Ni.BEFORE_ELEMENT_UPDATE,e,t),n);const a=this.getElementType(e,t),l=this.getUpdateStageStyle(e,t,n);this.shapeTypeMap[r]!==a&&(s.destroy(),delete this.shapeTypeMap[r],delete this.elementMap[r],this.createElement(e,t,{animation:!1,silence:!0}));const c=o!=="visibility"?o:l.visibility==="hidden"?"hide":"show";c==="hide"&&delete l.visibility,(i=this.context.animation)===null||i===void 0||i.add({element:s,elementType:e,stage:c,originalStyle:Object.assign({},s.attributes),updatedStyle:l},{before:()=>{const u=this.elementMap[r];o!=="collapse"&&ije(u,l),o==="visibility"&&(Ner(u,"opacity")||Ler(u,"opacity"),this.visibilityCache.set(u,c==="show"?"visible":"hidden"),c==="show"&&P2(u,"visible"))},after:()=>{var u;const d=this.elementMap[r];o==="collapse"&&ije(d,l),c==="hide"&&P2(d,this.visibilityCache.get(d)),this.emit(new rB(Ni.AFTER_ELEMENT_UPDATE,e,t),n),(u=d.onUpdate)===null||u===void 0||u.call(d)}})}updateElements(e,t){const{nodes:n,edges:i,combos:r}=e;[["node",n],["combo",r],["edge",i]].forEach(([s,a])=>{a.forEach(l=>this.updateElement(s,l,t))})}markDestroyElement(e){Object.values(e.remove).forEach(t=>{t.forEach(n=>{const i=an(n),r=this.getElement(i);r&&VGi(r)})})}destroyElement(e,t,n){var i;const{stage:r="exit"}=n,o=an(t),s=this.elementMap[o];if(!s)return()=>null;this.emit(new rB(Ni.BEFORE_ELEMENT_DESTROY,e,t),n),(i=this.context.animation)===null||i===void 0||i.add({element:s,elementType:e,stage:r,originalStyle:Object.assign({},s.attributes),updatedStyle:{}},{after:()=>{var a;this.clearElement(o),s.destroy(),(a=s.onDestroy)===null||a===void 0||a.call(s),this.emit(new rB(Ni.AFTER_ELEMENT_DESTROY,e,t),n)}})}destroyElements(e,t){const{nodes:n,edges:i,combos:r}=e;[["combo",r],["edge",i],["node",n]].forEach(([s,a])=>{a.forEach(l=>this.destroyElement(s,l,t))})}clearElement(e){delete this.paletteStyle[e],delete this.defaultStyle[e],delete this.stateStyle[e],delete this.elementMap[e],delete this.shapeTypeMap[e]}alignLayoutResultToElement(e,t){var n,i;const r=(n=e.nodes)===null||n===void 0?void 0:n.find(o=>an(o)===t);if(r){const o=zf(this.context.model.getNodeLikeDatum(t)),s=zf(r),a=wc(o,s);(i=e.nodes)===null||i===void 0||i.forEach(l=>{var c,u,d;!((c=l.style)===null||c===void 0)&&c.x&&(l.style.x+=a[0]),!((u=l.style)===null||u===void 0)&&u.y&&(l.style.y+=a[1]),!((d=l.style)===null||d===void 0)&&d.z&&(l.style.z+=a[2]||0)})}}syncLayoutResult(e,t){return oB(this,void 0,void 0,function*(){const{layout:n,model:i}=this.context;if(!n)return;const r=this.context.options.layout,o=a=>Array.isArray(a)?a.map(l=>Object.assign(Object.assign({},l),{preLayout:!0})):Object.assign(Object.assign({},a),{preLayout:!0}),s=yield n.simulate(r?o(r):void 0);t&&this.alignLayoutResultToElement(s,e),i.updateData(s)})}collapseNode(e,t){return oB(this,void 0,void 0,function*(){var n;const{animation:i,align:r}=t;yield this.syncLayoutResult(e,r);const o=this.computeChangesAndDrawData({stage:"collapse",animation:i});if(!o)return;const{drawData:s}=o,{add:a,remove:l,update:c}=s;this.markDestroyElement(s);const u={animation:i,stage:"collapse",data:s};this.destroyElements(l,u),this.createElements(a,u),this.updateElements(c,u),yield(n=this.context.animation.animate(i,{beforeAnimate:d=>this.emit(new a_(Ni.BEFORE_ANIMATE,d0.COLLAPSE,d,s),u),afterAnimate:d=>this.emit(new a_(Ni.AFTER_ANIMATE,d0.COLLAPSE,d,s),u)},{collapse:{target:e,descendants:Array.from(l.nodes).map(([,d])=>an(d)),position:zf(c.nodes.get(e))}}))===null||n===void 0?void 0:n.finished})}expandNode(e,t){return oB(this,void 0,void 0,function*(){var n;const{model:i}=this.context,{animation:r,align:o}=t,s=zf(i.getNodeData([e])[0]);yield this.syncLayoutResult(e,o);const a=this.computeChangesAndDrawData({stage:"expand",animation:r});if(this.createElements(a.drawData.add,{animation:!1,stage:"expand",target:e}),this.context.animation.clear(),this.computeStyle("expand"),!a)return;const{drawData:l}=a,{update:c,add:u}=l,d={animation:r,stage:"expand",data:l};u.edges.forEach(h=>c.edges.set(an(h),h)),u.nodes.forEach(h=>c.nodes.set(an(h),h)),this.updateElements(c,d),yield(n=this.context.animation.animate(r,{beforeAnimate:h=>this.emit(new a_(Ni.BEFORE_ANIMATE,d0.EXPAND,h,l),d),afterAnimate:h=>this.emit(new a_(Ni.AFTER_ANIMATE,d0.EXPAND,h,l),d)},{expand:{target:e,descendants:Array.from(u.nodes).map(([,h])=>an(h)),position:s}}))===null||n===void 0?void 0:n.finished})}collapseCombo(e,t){return oB(this,void 0,void 0,function*(){var n;const{model:i,element:r}=this.context;if(i.getAncestorsData(e,zc).some(p=>S0(p)))return;const o=r.getElement(e),s=o.getComboPosition(Object.assign(Object.assign({},o.attributes),{collapsed:!0})),a=this.computeChangesAndDrawData({stage:"collapse",animation:t});if(!a)return;const{dataChanges:l,drawData:c}=a;this.markDestroyElement(c);const{update:u,remove:d}=c,h={animation:t,stage:"collapse",data:c};this.destroyElements(d,h),this.updateElements(u,h);const f=p=>Array.from(p).map(([,g])=>an(g));yield(n=this.context.animation.animate(t,{before:()=>this.emit(new sf(Ni.BEFORE_DRAW,{dataChanges:l,animation:t}),h),beforeAnimate:p=>this.emit(new a_(Ni.BEFORE_ANIMATE,d0.COLLAPSE,p,c),h),afterAnimate:p=>this.emit(new a_(Ni.AFTER_ANIMATE,d0.COLLAPSE,p,c),h),after:()=>this.emit(new sf(Ni.AFTER_DRAW,{dataChanges:l,animation:t}),h)},{collapse:{target:e,descendants:[...f(d.nodes),...f(d.combos)],position:s}}))===null||n===void 0?void 0:n.finished})}expandCombo(e,t){return oB(this,void 0,void 0,function*(){var n;const{model:i}=this.context,r=zf(i.getComboData([e])[0]);this.computeStyle("expand");const o=this.computeChangesAndDrawData({stage:"expand",animation:t});if(!o)return;const{dataChanges:s,drawData:a}=o,{add:l,update:c}=a,u={animation:t,stage:"expand",data:a,target:e};this.createElements(l,u),this.updateElements(c,u);const d=h=>Array.from(h).map(([,f])=>an(f));yield(n=this.context.animation.animate(t,{before:()=>this.emit(new sf(Ni.BEFORE_DRAW,{dataChanges:s,animation:t}),u),beforeAnimate:h=>this.emit(new a_(Ni.BEFORE_ANIMATE,d0.EXPAND,h,a),u),afterAnimate:h=>this.emit(new a_(Ni.AFTER_ANIMATE,d0.EXPAND,h,a),u),after:()=>this.emit(new sf(Ni.AFTER_DRAW,{dataChanges:s,animation:t}),u)},{expand:{target:e,descendants:[...d(l.nodes),...d(l.combos)],position:r}}))===null||n===void 0?void 0:n.finished})}clear(){this.container.destroy(),this.initContainer(),this.elementMap={},this.shapeTypeMap={},this.defaultStyle={},this.stateStyle={},this.paletteStyle={}}destroy(){this.clear(),this.container.destroy(),this.context={}}},Ver=on(Pi()),sB=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,t||[])).next())})},Her=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},Wer=class{get presetOptions(){return{animation:!!L_n(this.context.options,!0)}}get options(){const{options:e}=this.context;return e.layout}constructor(e){this.instances=[],this.context=e}getLayoutInstance(){return this.instances}preLayout(e){return sB(this,void 0,void 0,function*(){var t,n,i,r;const{graph:o,model:s}=this.context,{add:a}=e;Rf(o,new sf(Ni.BEFORE_LAYOUT,{type:"pre"}));const l=yield(t=this.context.layout)===null||t===void 0?void 0:t.simulate();(n=l?.nodes)===null||n===void 0||n.forEach(c=>{const u=an(c),d=a.nodes.get(u);s.syncNodeLikeDatum(c),d&&Object.assign(d.style,c.style)}),(i=l?.edges)===null||i===void 0||i.forEach(c=>{const u=an(c),d=a.edges.get(u);s.syncEdgeDatum(c),d&&Object.assign(d.style,c.style)}),(r=l?.combos)===null||r===void 0||r.forEach(c=>{const u=an(c),d=a.combos.get(u);s.syncNodeLikeDatum(c),d&&Object.assign(d.style,c.style)}),Rf(o,new sf(Ni.AFTER_LAYOUT,{type:"pre"})),this.transformDataAfterLayout("pre",e)})}postLayout(){return sB(this,arguments,void 0,function*(e=this.options){if(!e)return;const t=Array.isArray(e)?e:[e],{graph:n}=this.context;Rf(n,new sf(Ni.BEFORE_LAYOUT,{type:"post"}));for(let i=0;i<t.length;i++){const r=t[i],o=this.getLayoutData(r),s=Object.assign(Object.assign({},this.presetOptions),r);Rf(n,new sf(Ni.BEFORE_STAGE_LAYOUT,{options:s,index:i}));const a=yield this.stepLayout(o,s,i);Rf(n,new sf(Ni.AFTER_STAGE_LAYOUT,{options:s,index:i})),r.animation||this.updateElementPosition(a,!1)}Rf(n,new sf(Ni.AFTER_LAYOUT,{type:"post"})),this.transformDataAfterLayout("post")})}transformDataAfterLayout(e,t){const n=this.context.transform.getTransformInstance();Object.values(n).forEach(i=>i.afterLayout(e,t))}simulate(){return sB(this,arguments,void 0,function*(e=this.options){if(!e)return{};const t=Array.isArray(e)?e:[e];let n={};for(let i=0;i<t.length;i++){const r=t[i],o=this.getLayoutData(r);n=yield this.stepLayout(o,Object.assign(Object.assign(Object.assign({},this.presetOptions),r),{animation:!1}),i)}return n})}stepLayout(e,t,n){return sB(this,void 0,void 0,function*(){return YGi(t)?yield this.treeLayout(e,t,n):yield this.graphLayout(e,t,n)})}graphLayout(e,t,n){return sB(this,void 0,void 0,function*(){const{animation:i,iterations:r=300}=t,o=this.initGraphLayout(t);if(!o)return{};if(this.instances[n]=o,this.instance=o,Ehe(o))return i?yield o.execute(e,{animate:!0,maxIteration:r,onTick:a=>this.updateElementPosition(a,!1)}):(o.execute(e),o.stop(),o.tick(r));const s=yield o.execute(e);if(i){const a=this.updateElementPosition(s,i);yield a?.finished}return s})}treeLayout(e,t,n){return sB(this,void 0,void 0,function*(){const{type:i,animation:r}=t,o=eT("layout",i);if(!o)return{};const{nodes:s=[],edges:a=[]}=e,l=new FZe({nodes:s.map(f=>({id:an(f),data:f.data||{}})),edges:a.map(f=>({id:an(f),source:f.source,target:f.target,data:f.data||{}}))});Fer(l);const c={nodes:[],edges:[]},u={nodes:[],edges:[]};l.getRoots(Fy).forEach(f=>{D8(f,y=>{y.children=l.getSuccessors(y.id)},y=>l.getSuccessors(y.id),"TB");const p=o(f,t),{x:g,y:m,z:v=0}=p;D8(p,y=>{const{id:b,x:w,y:E,z:A=0}=y;c.nodes.push({id:b,style:{x:g,y:m,z:v}}),u.nodes.push({id:b,style:{x:w,y:E,z:A}})},y=>y.children,"TB")});const h=this.inferTreeLayoutOffset(u);if(xFt(u,h),r){xFt(c,h),this.updateElementPosition(c,!1);const f=this.updateElementPosition(u,r);yield f?.finished}return u})}inferTreeLayoutOffset(e){var t;let[n,i]=[1/0,-1/0],[r,o]=[1/0,-1/0];(t=e.nodes)===null||t===void 0||t.forEach(p=>{const{x:g=0,y:m=0}=p.style||{};n=Math.min(n,g),i=Math.max(i,g),r=Math.min(r,m),o=Math.max(o,m)});const{canvas:s}=this.context,a=s.getSize(),[l,c]=s.getCanvasByViewport([0,0]),[u,d]=s.getCanvasByViewport(a);if(n>=l&&i<=u&&r>=c&&o<=d)return[0,0];const h=(l+u)/2,f=(c+d)/2;return[h-(n+i)/2,f-(r+o)/2]}stopLayout(){this.instance&&Ehe(this.instance)&&(this.instance.stop(),this.instance=void 0),this.animationResult&&(this.animationResult.finish(),this.animationResult=void 0)}getLayoutData(e){const{nodeFilter:t=()=>!0,comboFilter:n=()=>!0,preLayout:i=!1,isLayoutInvisibleNodes:r=!1}=e,{nodes:o,edges:s,combos:a}=this.context.model.getData(),{element:l,model:c}=this.context,u=m=>l.getElement(m),d=i?m=>{var v;return!r&&(((v=m.style)===null||v===void 0?void 0:v.visibility)==="hidden"||c.getAncestorsData(m.id,Fy).some(S0)||c.getAncestorsData(m.id,zc).some(S0))?!1:t(m)}:m=>{const v=an(m),y=u(v);return!y||oZ(y)?!1:t(m)},h=o.filter(d),f=a.filter(n),p=new Map(h.map(m=>[an(m),m]));f.forEach(m=>p.set(an(m),m));const g=s.filter(({source:m,target:v})=>p.has(m)&&p.has(v));return{nodes:h,edges:g,combos:f}}initGraphLayout(e){var t;const{element:n,viewport:i}=this.context,{type:r,animation:o,iterations:s}=e,a=Her(e,["type","animation","iterations"]),[l,c]=i.getCanvasSize(),u=[l/2,c/2],d=(t=e?.nodeSize)!==null&&t!==void 0?t:(m=>{const v=n?.getElement(m.id);return v?v.attributes.size:n?.getElementComputedStyle("node",m).size}),h=eT("layout",r);if(!h)return DE.warn(`The layout of ${r} is not registered.`);const f=Object.getPrototypeOf(h.prototype)===sZ.prototype?h:XGi(h)?JGi(h,this.context):ZGi(h,this.context),p=new f(this.context),g={nodeSize:d,width:l,height:c,center:u};switch(p.id){case"d3-force":case"d3-force-3d":Object.assign(g,{center:{x:l/2,y:c/2,z:0}});break}return(0,Ver.deepMix)(p.options,g,a),p}updateElementPosition(e,t){const{model:n,element:i}=this.context;return i?(n.updateData(e),i.draw({animation:t,silence:!0})):null}destroy(){this.stopLayout(),this.context={},this.instance=void 0,this.instances=[],this.animationResult=void 0}},xFt=(e,t)=>{var n;const[i,r]=t;(n=e.nodes)===null||n===void 0||n.forEach(o=>{if(o.style){const{x:s=0,y:a=0}=o.style;o.style.x=s+i,o.style.y=a+r}else o.style={x:i,y:r}})};function Uer(e){return[$er].reduce((n,i)=>i(n),e)}function $er(e){return!e.layout||Array.isArray(e.layout)||"preLayout"in e.layout||["antv-dagre","combo-combined","compact-box","circular","concentric","dagre","fishbone","grid","indented","mds","radial","random","snake","dendrogram","mindmap"].includes(e.layout.type)&&(e.layout.preLayout=!0),e}var qer=class extends bZe{constructor(e){super(e),this.category="plugin",this.setPlugins(this.context.options.plugins||[])}setPlugins(e){this.setExtensions(e)}getPluginInstance(e){const t=this.extensionMap[e];if(t)return t;DE.warn(`Cannot find the plugin ${e}, will try to find it by type.`);const n=this.extensions.find(i=>i.type===e);if(n)return this.extensionMap[n.key]}},Pre=["update-related-edges","collapse-expand-node","collapse-expand-combo","get-edge-actual-ends","arrange-draw-order"],Ger=class extends bZe{constructor(e){super(e),this.category="transform",this.setTransforms(this.context.options.transforms||[])}getTransforms(){}setTransforms(e){this.setExtensions([...Pre.slice(0,Pre.length-1),...e,Pre[Pre.length-1]])}getTransformInstance(e){return e?this.extensionMap[e]:this.extensionMap}},Mre=on(Pi()),lH=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,t||[])).next())})},Ker=class{get padding(){return Lw(this.context.options.padding)}get paddingOffset(){const[e,t,n,i]=this.padding,[r,o,s]=[(i-t)/2,(e-n)/2,0];return[r,o,s]}constructor(e){this.landmarkCounter=0,this.context=e;const[t,n]=this.paddingOffset,{zoom:i,rotation:r,x:o=t,y:s=n}=e.options;this.transform({mode:"absolute",scale:i,translate:[o,s],rotate:r},!1)}get camera(){const{canvas:e}=this.context;return new Proxy(e.getCamera(),{get:(t,n)=>{const r=Object.entries(e.getLayers()).filter(([s])=>!["main"].includes(s)).map(([,s])=>s.getCamera()),o=t[n];if(typeof o=="function")return(...s)=>{const a=o.apply(t,s);return r.forEach(l=>{l[n].apply(l,s)}),a}}})}createLandmark(e){return this.camera.createLandmark(`landmark-${this.landmarkCounter++}`,e)}getAnimation(e){const t=L_n(this.context.options,e);return t?(0,Mre.pick)(Object.assign({},t),["easing","duration"]):!1}getCanvasSize(){const{canvas:e}=this.context,{width:t=0,height:n=0}=e.getConfig();return[t,n]}getCanvasCenter(){const{canvas:e}=this.context,{width:t=0,height:n=0}=e.getConfig();return[t/2,n/2,0]}getViewportCenter(){const[e,t]=this.camera.getPosition();return[e,t,0]}getGraphCenter(){return this.context.graph.getViewportByCanvas(this.getCanvasCenter())}getZoom(){return this.camera.getZoom()}getRotation(){return this.camera.getRoll()}getTranslateOptions(e){const{camera:t}=this,{mode:n,translate:i=[]}=e,r=this.getZoom(),o=t.getPosition(),s=t.getFocalPoint(),[a,l]=this.getCanvasCenter(),[c=0,u=0,d=0]=i,h=MC([-c,-u,-d],r);return n==="relative"?{position:_s(o,h),focalPoint:_s(s,h)}:{position:_s([a,l,o[2]],h),focalPoint:_s([a,l,s[2]],h)}}getRotateOptions(e){const{mode:t,rotate:n=0}=e;return{roll:t==="relative"?this.camera.getRoll()+n:n}}getZoomOptions(e){const{zoomRange:t}=this.context.options,n=this.camera.getZoom(),{mode:i,scale:r=1}=e;return(0,Mre.clamp)(i==="relative"?n*r:r,...t)}transform(e,t){return lH(this,void 0,void 0,function*(){const{graph:n}=this.context,{translate:i,rotate:r,scale:o,origin:s}=e;this.cancelAnimation();const a=this.getAnimation(t);if(Rf(n,new Nre(Ni.BEFORE_TRANSFORM,e)),!r&&o&&!i&&s&&!a){this.camera.setZoomByViewportPoint(this.getZoomOptions(e),s),Rf(n,new Nre(Ni.AFTER_TRANSFORM,e));return}const l={};if(i&&Object.assign(l,this.getTranslateOptions(e)),(0,Mre.isNumber)(r)&&Object.assign(l,this.getRotateOptions(e)),(0,Mre.isNumber)(o)&&Object.assign(l,{zoom:this.getZoomOptions(e)}),a)return Rf(n,new a_(Ni.BEFORE_ANIMATE,d0.TRANSFORM,null,e)),new Promise(c=>{this.transformResolver=c,this.camera.gotoLandmark(this.createLandmark(l),Object.assign(Object.assign({},a),{onfinish:()=>{Rf(n,new a_(Ni.AFTER_ANIMATE,d0.TRANSFORM,null,e)),Rf(n,new Nre(Ni.AFTER_TRANSFORM,e)),this.transformResolver=void 0,c()}}))});this.camera.gotoLandmark(this.createLandmark(l),{duration:0}),Rf(n,new Nre(Ni.AFTER_TRANSFORM,e))})}fitView(e,t){return lH(this,void 0,void 0,function*(){const[n,i,r,o]=this.padding,{when:s="always",direction:a="both"}=e||{},[l,c]=this.context.canvas.getSize(),u=l-o-i,d=c-n-r,h=this.context.canvas.getBounds(),f=this.getBBoxInViewport(h),[p,g]=nP(f),m=a==="x"&&p>=u||a==="y"&&g>=d||a==="both"&&p>=u&&g>=d;if(s==="overflow"&&!m)return yield this.fitCenter({animation:t});const v=u/p,y=d/g,b=a==="x"?v:a==="y"?y:Math.min(v,y),w=this.getAnimation(t);Number.isFinite(b)&&(yield this.transform({mode:"relative",scale:b,translate:_s(wc(this.getCanvasCenter(),this.getBBoxInViewport(h).center),MC(this.paddingOffset,b))},w))})}fitCenter(e){return lH(this,void 0,void 0,function*(){const t=this.context.canvas.getBounds();yield this.focus(t,e)})}focusElements(e){return lH(this,arguments,void 0,function*(t,n={}){const{element:i}=this.context;if(!i)return;const r=s=>n.shapes?s.getShape(n.shapes).getRenderBounds():s.getRenderBounds(),o=eZ(t.map(s=>r(i.getElement(s))));yield this.focus(o,n)})}focus(e,t){return lH(this,void 0,void 0,function*(){const n=this.context.graph.getViewportByCanvas(e.center),i=t.position||this.getCanvasCenter(),r=wc(i,n);yield this.transform({mode:"relative",translate:_s(r,this.paddingOffset)},t.animation)})}getBBoxInViewport(e){const{min:t,max:n}=e,{graph:i}=this.context,[r,o]=i.getViewportByCanvas(t),[s,a]=i.getViewportByCanvas(n),l=new mc;return l.setMinMax([r,o,0],[s,a,0]),l}isInViewport(e,t=!1,n=0){const{graph:i}=this.context,r=this.getCanvasSize(),[o,s]=i.getCanvasByViewport([0,0]),[a,l]=i.getCanvasByViewport(r);let c=new mc;return c.setMinMax([o,s,0],[a,l,0]),n&&(c=iP(c,n)),Y9(e)?PC(e,c):t?RUi(e,c):c.intersects(e)}cancelAnimation(){var e,t;!((e=this.camera.landmarks)===null||e===void 0)&&e.length&&this.camera.cancelLandmarkAnimation(),(t=this.transformResolver)===null||t===void 0||t.call(this)}},Zc=function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(e,t||[])).next())})},xSn=class ESn extends RZe{constructor(t){var n;super(),this.options={},this.rendered=!1,this.destroyed=!1,this.context={model:new Ber},this.isCollapsingExpanding=!1,this.onResize=(0,Zl.debounce)(()=>{this.resize()},300),this._setOptions(Object.assign({},ESn.defaultOptions,t),!0),this.context.graph=this,this.options.autoResize&&((n=globalThis.addEventListener)===null||n===void 0||n.call(globalThis,"resize",this.onResize))}getOptions(){return this.options}setOptions(t){this._setOptions(t,!1)}_setOptions(t,n){if(this.updateCanvas(t),Object.assign(this.options,Uer(t)),n){const{data:h}=t;h&&this.addData(h);return}const{behaviors:i,combo:r,data:o,edge:s,layout:a,node:l,plugins:c,theme:u,transforms:d}=t;i&&this.setBehaviors(i),o&&this.setData(o),l&&this.setNode(l),s&&this.setEdge(s),r&&this.setCombo(r),a&&this.setLayout(a),u&&this.setTheme(u),c&&this.setPlugins(c),d&&this.setTransforms(d)}getSize(){return this.context.canvas?this.context.canvas.getSize():[this.options.width||0,this.options.height||0]}setSize(t,n){t&&(this.options.width=t),n&&(this.options.height=n),this.resize(t,n)}setZoomRange(t){this.options.zoomRange=t}getZoomRange(){return this.options.zoomRange}setNode(t){this.options.node=t,this.context.model.refreshData()}setEdge(t){this.options.edge=t,this.context.model.refreshData()}setCombo(t){this.options.combo=t,this.context.model.refreshData()}getTheme(){return this.options.theme}setTheme(t){this.options.theme=(0,Zl.isFunction)(t)?t(this.getTheme()):t}setLayout(t){this.options.layout=(0,Zl.isFunction)(t)?t(this.getLayout()):t}getLayout(){return this.options.layout}setBehaviors(t){var n;this.options.behaviors=(0,Zl.isFunction)(t)?t(this.getBehaviors()):t,(n=this.context.behavior)===null||n===void 0||n.setBehaviors(this.options.behaviors)}updateBehavior(t){this.setBehaviors(n=>n.map(i=>typeof i=="object"&&i.key===t.key?Object.assign(Object.assign({},i),t):i))}getBehaviors(){return this.options.behaviors||[]}setPlugins(t){var n;this.options.plugins=(0,Zl.isFunction)(t)?t(this.getPlugins()):t,(n=this.context.plugin)===null||n===void 0||n.setPlugins(this.options.plugins)}updatePlugin(t){this.setPlugins(n=>n.map(i=>typeof i=="object"&&i.key===t.key?Object.assign(Object.assign({},i),t):i))}getPlugins(){return this.options.plugins||[]}getPluginInstance(t){return this.context.plugin.getPluginInstance(t)}setTransforms(t){var n;this.options.transforms=(0,Zl.isFunction)(t)?t(this.getTransforms()):t,(n=this.context.transform)===null||n===void 0||n.setTransforms(this.options.transforms)}updateTransform(t){this.setTransforms(n=>n.map(i=>typeof i=="object"&&i.key===t.key?Object.assign(Object.assign({},i),t):i)),this.context.model.refreshData()}getTransforms(){return this.options.transforms||[]}getData(){return this.context.model.getData()}hasNode(t){return this.context.model.hasNode(t)}hasEdge(t){return this.context.model.hasEdge(t)}hasCombo(t){return this.context.model.hasCombo(t)}getElementData(t){return Array.isArray(t)?t.map(n=>this.context.model.getElementDataById(n)):this.context.model.getElementDataById(t)}getNodeData(t){return t===void 0?this.context.model.getNodeData():Array.isArray(t)?this.context.model.getNodeData(t):this.context.model.getNodeLikeDatum(t)}getEdgeData(t){return t===void 0?this.context.model.getEdgeData():Array.isArray(t)?this.context.model.getEdgeData(t):this.context.model.getEdgeDatum(t)}getComboData(t){return t===void 0?this.context.model.getComboData():Array.isArray(t)?this.context.model.getComboData(t):this.context.model.getNodeLikeDatum(t)}setData(t){this.context.model.setData((0,Zl.isFunction)(t)?t(this.getData()):t)}addData(t){this.context.model.addData((0,Zl.isFunction)(t)?t(this.getData()):t)}addNodeData(t){this.context.model.addNodeData((0,Zl.isFunction)(t)?t(this.getNodeData()):t)}addEdgeData(t){this.context.model.addEdgeData((0,Zl.isFunction)(t)?t(this.getEdgeData()):t)}addComboData(t){this.context.model.addComboData((0,Zl.isFunction)(t)?t(this.getComboData()):t)}addChildrenData(t,n){this.context.model.addChildrenData(t,n)}updateData(t){this.context.model.updateData((0,Zl.isFunction)(t)?t(this.getData()):t)}updateNodeData(t){this.context.model.updateNodeData((0,Zl.isFunction)(t)?t(this.getNodeData()):t)}updateEdgeData(t){this.context.model.updateEdgeData((0,Zl.isFunction)(t)?t(this.getEdgeData()):t)}updateComboData(t){this.context.model.updateComboData((0,Zl.isFunction)(t)?t(this.getComboData()):t)}removeData(t){this.context.model.removeData((0,Zl.isFunction)(t)?t(this.getData()):t)}removeNodeData(t){this.context.model.removeNodeData((0,Zl.isFunction)(t)?t(this.getNodeData()):t)}removeEdgeData(t){this.context.model.removeEdgeData((0,Zl.isFunction)(t)?t(this.getEdgeData()):t)}removeComboData(t){this.context.model.removeComboData((0,Zl.isFunction)(t)?t(this.getComboData()):t)}getElementType(t){return this.context.model.getElementType(t)}getRelatedEdgesData(t,n="both"){return this.context.model.getRelatedEdgesData(t,n)}getNeighborNodesData(t){return this.context.model.getNeighborNodesData(t)}getAncestorsData(t,n){return this.context.model.getAncestorsData(t,n)}getParentData(t,n){return this.context.model.getParentData(t,n)}getChildrenData(t){return this.context.model.getChildrenData(t)}getDescendantsData(t){return this.context.model.getDescendantsData(t)}getElementDataByState(t,n){return this.context.model.getElementDataByState(t,n)}initCanvas(){return Zc(this,void 0,void 0,function*(){var t;if(this.context.canvas)return yield this.context.canvas.ready;const{container:n="container",width:i,height:r,renderer:o,cursor:s,background:a,canvas:l,devicePixelRatio:c=(t=globalThis.devicePixelRatio)!==null&&t!==void 0?t:1}=this.options;if(n instanceof vFt)this.context.canvas=n,s&&n.setCursor(s),o&&n.setRenderer(o),yield n.ready;else{const u=(0,Zl.isString)(n)?document.getElementById(n):n,d=wFt(u);this.emit(Ni.BEFORE_CANVAS_INIT,{container:u,width:i,height:r});const h=Object.assign(Object.assign({},l),{container:u,width:i||d[0],height:r||d[1],background:a,renderer:o,cursor:s,devicePixelRatio:c}),f=new vFt(h);this.context.canvas=f,yield f.ready,this.emit(Ni.AFTER_CANVAS_INIT,{canvas:f})}})}updateCanvas(t){var n,i;const{renderer:r,cursor:o,height:s,width:a}=t,l=this.context.canvas;l&&(r&&(this.emit(Ni.BEFORE_RENDERER_CHANGE,{renderer:this.options.renderer}),l.setRenderer(r),this.emit(Ni.AFTER_RENDERER_CHANGE,{renderer:r})),o&&l.setCursor(o),((0,Zl.isNumber)(a)||(0,Zl.isNumber)(s))&&this.setSize((n=a??this.options.width)!==null&&n!==void 0?n:0,(i=s??this.options.height)!==null&&i!==void 0?i:0))}initRuntime(){this.context.options=this.options,this.context.batch||(this.context.batch=new Mer(this.context)),this.context.plugin||(this.context.plugin=new qer(this.context)),this.context.viewport||(this.context.viewport=new Ker(this.context)),this.context.transform||(this.context.transform=new Ger(this.context)),this.context.element||(this.context.element=new zer(this.context)),this.context.animation||(this.context.animation=new Per(this.context)),this.context.layout||(this.context.layout=new Wer(this.context)),this.context.behavior||(this.context.behavior=new Oer(this.context))}prepare(){return Zc(this,void 0,void 0,function*(){if(yield Promise.resolve(),this.destroyed){console.error(mD("The graph instance has been destroyed"));return}yield this.initCanvas(),this.initRuntime()})}render(){return Zc(this,void 0,void 0,function*(){if(yield this.prepare(),Rf(this,new sf(Ni.BEFORE_RENDER)),this.options.layout)if(!this.rendered&&QGi(this.options.layout)){const t=yield this.context.element.preLayoutDraw({type:"render"});yield Promise.all([t?.finished,this.autoFit()])}else{const t=this.context.element.draw({type:"render"});yield Promise.all([t?.finished,this.context.layout.postLayout()]),yield this.autoFit()}else{const t=this.context.element.draw({type:"render"});yield Promise.all([t?.finished,this.autoFit()])}this.rendered=!0,Rf(this,new sf(Ni.AFTER_RENDER))})}draw(){return Zc(this,void 0,void 0,function*(){var t;yield this.prepare(),yield(t=this.context.element.draw())===null||t===void 0?void 0:t.finished})}layout(t){return Zc(this,void 0,void 0,function*(){yield this.context.layout.postLayout(t)})}stopLayout(){this.context.layout.stopLayout()}clear(){return Zc(this,void 0,void 0,function*(){const{model:t,element:n}=this.context;t.setData({}),t.clearChanges(),n?.clear()})}destroy(){var t;Rf(this,new sf(Ni.BEFORE_DESTROY));const{layout:n,animation:i,element:r,model:o,canvas:s,behavior:a,plugin:l}=this.context;l?.destroy(),a?.destroy(),n?.destroy(),i?.destroy(),r?.destroy(),o.destroy(),s?.destroy(),this.options={},this.context={},this.off(),(t=globalThis.removeEventListener)===null||t===void 0||t.call(globalThis,"resize",this.onResize),this.destroyed=!0,Rf(this,new sf(Ni.AFTER_DESTROY))}getCanvas(){return this.context.canvas}resize(t,n){var i;const r=wFt((i=this.context.canvas)===null||i===void 0?void 0:i.getContainer()),o=[t||r[0],n||r[1]];if(!this.context.canvas)return;const s=this.context.canvas.getSize();(0,Zl.isEqual)(o,s)||(Rf(this,new sf(Ni.BEFORE_SIZE_CHANGE,{size:o})),this.context.canvas.resize(...o),Rf(this,new sf(Ni.AFTER_SIZE_CHANGE,{size:o})))}fitView(t,n){return Zc(this,void 0,void 0,function*(){var i;yield(i=this.context.viewport)===null||i===void 0?void 0:i.fitView(t,n)})}fitCenter(t){return Zc(this,void 0,void 0,function*(){var n;yield(n=this.context.viewport)===null||n===void 0?void 0:n.fitCenter({animation:t})})}autoFit(){return Zc(this,void 0,void 0,function*(){const{autoFit:t}=this.context.options;if(t)if((0,Zl.isString)(t))t==="view"?yield this.fitView():t==="center"&&(yield this.fitCenter());else{const{type:n,animation:i}=t;n==="view"?yield this.fitView(t.options,i):n==="center"&&(yield this.fitCenter(i))}})}focusElement(t,n){return Zc(this,void 0,void 0,function*(){var i;yield(i=this.context.viewport)===null||i===void 0?void 0:i.focusElements(Array.isArray(t)?t:[t],{animation:n})})}zoomBy(t,n,i){return Zc(this,void 0,void 0,function*(){yield this.context.viewport.transform({mode:"relative",scale:t,origin:i},n)})}zoomTo(t,n,i){return Zc(this,void 0,void 0,function*(){yield this.context.viewport.transform({mode:"absolute",scale:t,origin:i},n)})}getZoom(){return this.context.viewport.getZoom()}rotateBy(t,n,i){return Zc(this,void 0,void 0,function*(){yield this.context.viewport.transform({mode:"relative",rotate:t,origin:i},n)})}rotateTo(t,n,i){return Zc(this,void 0,void 0,function*(){yield this.context.viewport.transform({mode:"absolute",rotate:t,origin:i},n)})}getRotation(){return this.context.viewport.getRotation()}translateBy(t,n){return Zc(this,void 0,void 0,function*(){yield this.context.viewport.transform({mode:"relative",translate:t},n)})}translateTo(t,n){return Zc(this,void 0,void 0,function*(){yield this.context.viewport.transform({mode:"absolute",translate:t},n)})}getPosition(){return wc([0,0],this.getCanvasByViewport([0,0]))}translateElementBy(t,n){return Zc(this,arguments,void 0,function*(i,r,o=!0){var s,a;const[l,c]=(0,Zl.isObject)(i)?[i,(s=r)!==null&&s!==void 0?s:!0]:[{[i]:r},o];Object.entries(l).forEach(([u,d])=>this.context.model.translateNodeLikeBy(u,d)),yield(a=this.context.element.draw({animation:c,stage:"translate"}))===null||a===void 0?void 0:a.finished})}translateElementTo(t,n){return Zc(this,arguments,void 0,function*(i,r,o=!0){var s,a;const[l,c]=(0,Zl.isObject)(i)?[i,(s=r)!==null&&s!==void 0?s:!0]:[{[i]:r},o];Object.entries(l).forEach(([u,d])=>this.context.model.translateNodeLikeTo(u,d)),yield(a=this.context.element.draw({animation:c,stage:"translate"}))===null||a===void 0?void 0:a.finished})}getElementPosition(t){return this.context.model.getElementPosition(t)}getElementRenderStyle(t){return(0,Zl.omit)(this.context.element.getElement(t).attributes,["context"])}setElementVisibility(t,n){return Zc(this,arguments,void 0,function*(i,r,o=!0){var s,a;const[l,c]=(0,Zl.isObject)(i)?[i,(s=r)!==null&&s!==void 0?s:!0]:[{[i]:r},o],u={nodes:[],edges:[],combos:[]};Object.entries(l).forEach(([f,p])=>{const g=this.getElementType(f);u[`${g}s`].push({id:f,style:{visibility:p}})});const{model:d,element:h}=this.context;d.preventUpdateNodeLikeHierarchy(()=>{d.updateData(u)}),yield(a=h.draw({animation:c,stage:"visibility"}))===null||a===void 0?void 0:a.finished})}showElement(t,n){return Zc(this,void 0,void 0,function*(){const i=Array.isArray(t)?t:[t];yield this.setElementVisibility(Object.fromEntries(i.map(r=>[r,"visible"])),n)})}hideElement(t,n){return Zc(this,void 0,void 0,function*(){const i=Array.isArray(t)?t:[t];yield this.setElementVisibility(Object.fromEntries(i.map(r=>[r,"hidden"])),n)})}getElementVisibility(t){var n,i;const r=this.context.element.getElement(t);return(i=(n=r?.style)===null||n===void 0?void 0:n.visibility)!==null&&i!==void 0?i:"visible"}setElementZIndex(t,n){return Zc(this,void 0,void 0,function*(){var i;const r={nodes:[],edges:[],combos:[]},o=(0,Zl.isObject)(t)?t:{[t]:n};Object.entries(o).forEach(([l,c])=>{const u=this.getElementType(l);r[`${u}s`].push({id:l,style:{zIndex:c}})});const{model:s,element:a}=this.context;s.preventUpdateNodeLikeHierarchy(()=>s.updateData(r)),yield(i=a.draw({animation:!1,stage:"zIndex"}))===null||i===void 0?void 0:i.finished})}frontElement(t){return Zc(this,void 0,void 0,function*(){const n=Array.isArray(t)?t:[t],{model:i}=this.context,r={};n.map(o=>{const s=i.getFrontZIndex(o);if(i.getElementType(o)==="combo"){const l=i.getAncestorsData(o,zc).at(-1)||this.getComboData(o),c=[l,...i.getDescendantsData(an(l))],u=s-CFt(l);c.forEach(h=>{r[an(h)]=this.getElementZIndex(an(h))+u});const{internal:d}=tje(c.map(an),h=>i.getRelatedEdgesData(h));d.forEach(h=>{const f=an(h);r[f]=this.getElementZIndex(f)+u})}else r[o]=s}),yield this.setElementZIndex(r)})}getElementZIndex(t){return CFt(this.context.model.getElementDataById(t))}setElementState(t,n){return Zc(this,arguments,void 0,function*(i,r,o=!0){var s,a;const[l,c]=(0,Zl.isObject)(i)?[i,(s=r)!==null&&s!==void 0?s:!0]:[{[i]:r},o],u=h=>h?Array.isArray(h)?h:[h]:[],d={nodes:[],edges:[],combos:[]};Object.entries(l).forEach(([h,f])=>{const p=this.getElementType(h);d[`${p}s`].push({id:h,states:u(f)})}),this.updateData(d),yield(a=this.context.element.draw({animation:c,stage:"state"}))===null||a===void 0?void 0:a.finished})}getElementState(t){return this.context.model.getElementState(t)}getElementRenderBounds(t){return this.context.element.getElement(t).getRenderBounds()}collapseElement(t){return Zc(this,arguments,void 0,function*(n,i=!0){const{model:r,element:o}=this.context;if(S0(r.getNodeLikeData([n])[0])||this.isCollapsingExpanding)return;typeof i=="boolean"&&(i={animation:i,align:!1});const s=r.getElementType(n);yield this.frontElement(n),this.isCollapsingExpanding=!0,r.updateData(s==="node"?{nodes:[{id:n,style:{collapsed:!0}}]}:{combos:[{id:n,style:{collapsed:!0}}]}),s==="node"?yield o.collapseNode(n,i):s==="combo"&&(yield o.collapseCombo(n,!!i.animation)),this.isCollapsingExpanding=!1})}expandElement(t){return Zc(this,arguments,void 0,function*(n,i=!0){const{model:r,element:o}=this.context;if(!S0(r.getNodeLikeData([n])[0])||this.isCollapsingExpanding)return;typeof i=="boolean"&&(i={animation:i,align:!1});const s=r.getElementType(n);this.isCollapsingExpanding=!0,r.updateData(s==="node"?{nodes:[{id:n,style:{collapsed:!1}}]}:{combos:[{id:n,style:{collapsed:!1}}]}),s==="node"?yield o.expandNode(n,i):s==="combo"&&(yield o.expandCombo(n,!!i.animation)),this.isCollapsingExpanding=!1})}setElementCollapsibility(t,n){const i=this.getElementType(t);i==="node"?this.updateNodeData([{id:t,style:{collapsed:n}}]):i==="combo"&&this.updateComboData([{id:t,style:{collapsed:n}}])}toDataURL(){return Zc(this,arguments,void 0,function*(t={}){return this.context.canvas.toDataURL(t)})}getCanvasByViewport(t){return this.context.canvas.getCanvasByViewport(t)}getViewportByCanvas(t){return this.context.canvas.getViewportByCanvas(t)}getClientByCanvas(t){return this.context.canvas.getClientByCanvas(t)}getCanvasByClient(t){return this.context.canvas.getCanvasByClient(t)}getViewportCenter(){return this.context.viewport.getViewportCenter()}getCanvasCenter(){return this.context.viewport.getCanvasCenter()}on(t,n,i){return super.on(t,n,i)}once(t,n){return super.once(t,n)}off(t,n){return super.off(t,n)}};xSn.defaultOptions={autoResize:!1,theme:"light",rotation:0,zoom:1,zoomRange:[.01,10]};var Yer=class extends oP{beforeDraw(e){const{add:t,update:n}=e,{model:i}=this.context;return[...t.edges.entries(),...n.edges.entries()].forEach(([,r])=>{ASn(i,r)}),e}},ASn=(e,t)=>{const{source:n,target:i}=t,r=e.getElementDataById(n),o=e.getElementDataById(i),s=MRt(r,d=>e.getParentData(d,zc)),a=MRt(o,d=>e.getParentData(d,zc)),l=an(s),c=an(a),u={sourceNode:l,targetNode:c};return t.style?Object.assign(t.style,u):t.style=u,t},tOe=on(Pi()),Qer=(e,t,n)=>{const[i,r]=t,[o,s]=n;if(r===i)return o;const a=(e-i)/(r-i);return o+a*(s-o)},Zer=(e,t,n)=>{const[i,r]=t,[o,s]=n,a=Math.log(e-i+1)/Math.log(r-i+1);return o+a*(s-o)},Xer=(e,t,n,i=2)=>{const[r,o]=t,[s,a]=n,l=Math.pow((e-r)/(o-r),i);return s+l*(a-s)},Jer=(e,t,n)=>{const[i,r]=t,[o,s]=n,a=Math.sqrt((e-i)/(r-i));return o+a*(s-o)},DSn=class TSn extends oP{constructor(t,n){super(t,(0,tOe.deepMix)({},TSn.defaultOptions,n)),this.assignSizeByCentrality=(i,r,o,s,a,l)=>{const c=[r,o],u=[s[0],a[0]],d=[s[1],a[1]],h=[s[2],a[2]],f=(p,g)=>{if(typeof l=="function")return l(p,c,g);switch(l){case"linear":return Qer(p,c,g);case"log":return Zer(p,c,g);case"pow":return Xer(p,c,g,2);case"sqrt":return Jer(p,c,g);default:return g[0]}};return[f(i,u),f(i,d),f(i,h)]}}beforeDraw(t){const{model:n}=this.context,i=n.getNodeData(),r=tb(this.options.maxSize),o=tb(this.options.minSize),s=this.getCentralities(this.options.centrality),a=s.size>0?Math.max(...s.values()):0,l=s.size>0?Math.min(...s.values()):0;return i.forEach(c=>{var u;const d=this.assignSizeByCentrality(s.get(an(c))||0,l,a,o,r,this.options.scale),h=(u=this.context.element)===null||u===void 0?void 0:u.getElement(an(c)),f={size:d};this.assignLabelStyle(f,d,c,h),(!h||!kce(f,h.attributes))&&qy(t,h?"update":"add","node",(0,tOe.deepMix)(c,{style:f}),!0)}),t}assignLabelStyle(t,n,i,r){var o;const s=r?r.config.style:(o=this.context.element)===null||o===void 0?void 0:o.getElementComputedStyle("node",i);if(Object.assign(t,(0,tOe.pick)(s,["labelFontSize","labelLineHeight"])),this.options.mapLabelSize){const a=this.getLabelSizeByNodeSize(n,1/0,Number(t.labelFontSize));Object.assign(t,{labelFontSize:a,labelLineHeight:a+OUi(t.labelPadding)})}return t}getLabelSizeByNodeSize(t,n,i){const r=Math.min(...t)/2,[o,s]=Array.isArray(this.options.mapLabelSize)?this.options.mapLabelSize:[i,n];return Math.min(s,Math.max(r,o))}getCentralities(t){const{model:n}=this.context,i=n.getData();if(typeof t=="function")return t(i);const r=n.getRelatedEdgesData.bind(n);return H_n(i,r,t)}};DSn.defaultOptions={centrality:{type:"degree"},maxSize:80,minSize:20,scale:"linear",mapLabelSize:!1};var kSn=class ISn extends oP{constructor(t,n){super(t,Object.assign({},ISn.defaultOptions,n))}get ref(){return this.context.model.getRootsData()[0]}afterLayout(){var t;const n=zf(this.ref),{graph:i,model:r}=this.context;(t=r.getData().nodes)===null||t===void 0||t.forEach(s=>{var a;if(an(s)===an(this.ref))return;const l=q_n(wc(zf(s),n)),c=Math.abs(l)>Math.PI/2,u=!s.children||s.children.length===0,d=an(s),h=(a=this.context.element)===null||a===void 0?void 0:a.getElement(d);if(!h||!h.isVisible())return;const f=tb(i.getElementRenderStyle(d).size)[0]/2,p=(u?1:-1)*(f+this.options.offset),g=[["translate",p*Math.cos(l),p*Math.sin(l)],["rotate",c?p0(l)+180:p0(l)]];r.updateNodeData([{id:an(s),style:{labelTextAlign:c===u?"right":"left",labelTextBaseline:"middle",labelTransform:g}}])}),i.draw()}};kSn.defaultOptions={offset:5};var cH=on(Pi()),etr="quadratic",EFt=["top","top-right","right","right-bottom","bottom","bottom-left","left","left-top"],LSn=class NSn extends oP{constructor(t,n){super(t,Object.assign({},NSn.defaultOptions,n)),this.cacheMergeStyle=new Map,this.getAffectedParallelEdges=i=>{const{add:{edges:r},update:{nodes:o,edges:s,combos:a},remove:{edges:l}}=i,{model:c}=this.context,u=new Map,d=(p,g)=>{c.getRelatedEdgesData(g).forEach(v=>!u.has(an(v))&&u.set(an(v),v))};o.forEach(d),a.forEach(d);const h=p=>{const g=new Set(i.remove.edges.keys()),m=c.getEdgeData().filter(v=>!g.has(an(v))).map(v=>ASn(c,v));ttr(p,m).forEach(v=>{const y=an(v);u.has(y)||u.set(y,v)})};if(l.size&&l.forEach(h),r.size&&r.forEach(h),s.size){const p=pCn(zZe(c.getChanges())).update.edges;s.forEach(g=>{var m;h(g);const v=(m=p.find(y=>an(y.value)===an(g)))===null||m===void 0?void 0:m.original;v&&!eXe(g,v)&&h(v)})}(0,cH.isEmpty)(this.options.edges)||u.forEach((p,g)=>!this.options.edges.includes(g)&&u.delete(g));const f=c.getEdgeData().map(an);return new Map([...u].sort((p,g)=>f.indexOf(p[0])-f.indexOf(g[0])))},this.applyBundlingStyle=(i,r,o)=>{const{edgeMap:s,reverses:a}=AFt(r);s.forEach(l=>{l.forEach((c,u,d)=>{var h;const f=d.length,p=c.style||{};if(c.source===c.target){const v=EFt.length;p.loopPlacement=EFt[u%v],p.loopDist=Math.floor(u/v)*o+50}else if(f===1)p.curveOffset=0;else{const v=(u%2===0?1:-1)*(a[`${c.source}|${c.target}|${u}`]?-1:1);p.curveOffset=f%2===1?v*Math.ceil(u/2)*o*2:v*(Math.floor(u/2)*o*2+o)}const g=Object.assign(c,{type:etr,style:p}),m=(h=this.context.element)===null||h===void 0?void 0:h.getElement(an(c));(!m||!kce(g.style,m.attributes))&&qy(i,m?"update":"add","edge",g,!0)})})},this.resetEdgeStyle=i=>{const r=i.style||{},o=this.cacheMergeStyle.get(an(i))||{};return Object.keys(o).forEach(s=>{(0,cH.isEqual)(r[s],o[s])&&(i[s]?r[s]=i[s]:delete r[s])}),Object.assign(i,{style:r})},this.applyMergingStyle=(i,r)=>{const{edgeMap:o,reverses:s}=AFt(r);o.forEach(a=>{var l;if(a.length===1){const u=a[0],d=(l=this.context.element)===null||l===void 0?void 0:l.getElement(an(u)),h=this.resetEdgeStyle(u);(!d||!kce(h,d.attributes))&&qy(i,d?"update":"add","edge",h);return}const c=a.map(({source:u,target:d,style:h={}},f)=>{const{startArrow:p,endArrow:g}=h,m={},[v,y]=s[`${u}|${d}|${f}`]?["endArrow","startArrow"]:["startArrow","endArrow"];return(0,cH.isBoolean)(p)&&(m[v]=p),(0,cH.isBoolean)(g)&&(m[y]=g),m}).reduce((u,d)=>Object.assign(Object.assign({},u),d),{});a.forEach((u,d,h)=>{var f;if(d!==0){qy(i,"remove","edge",u);return}const p=Object.assign({},(0,cH.isFunction)(this.options.style)?this.options.style(h):this.options.style,{childrenData:h});this.cacheMergeStyle.set(an(u),p);const g=Object.assign(Object.assign({},u),{type:"line",style:Object.assign(Object.assign(Object.assign({},u.style),c),p)}),m=(f=this.context.element)===null||f===void 0?void 0:f.getElement(an(u));(!m||!kce(g.style,m.attributes))&&qy(i,m?"update":"add","edge",g,!0)})})}}beforeDraw(t){const n=this.getAffectedParallelEdges(t);return n.size===0||(this.options.mode==="bundle"?this.applyBundlingStyle(t,n,this.options.distance):this.applyMergingStyle(t,n)),t}};LSn.defaultOptions={mode:"bundle",distance:15};var AFt=e=>{const t=new Map,n=new Set,i={},r=new Map;for(const[o,s]of e){if(n.has(o))continue;const{source:a,target:l}=s,c=`${a}-${l}`;t.has(c)||(t.set(c,[]),r.set(c,new Set));const u=t.get(c),d=r.get(c);u&&d&&!d.has(o)&&(u.push(s),d.add(o),n.add(o));for(const[h,f]of e)if(!(n.has(h)||h===o)&&eXe(s,f)){const p=t.get(c),g=r.get(c);p&&g&&!g.has(h)&&(p.push(f),g.add(h),a===f.target&&l===f.source&&(i[`${f.source}|${f.target}|${p.length-1}`]=!0),n.add(h))}}return{edgeMap:t,reverses:i}},ttr=(e,t,n)=>t.filter(i=>eXe(i,e)),eXe=(e,t)=>{const{sourceNode:n,targetNode:i}=e.style||{},{sourceNode:r,targetNode:o}=t.style||{};return n===r&&i===o||n===o&&i===r},ntr=class extends oP{beforeDraw(e,t){const{stage:n}=t;if(n==="visibility")return e;const{model:i}=this.context,{update:{nodes:r,edges:o,combos:s}}=e,a=(l,c)=>{i.getRelatedEdgesData(c).forEach(d=>!o.has(an(d))&&o.set(an(d),d))};return r.forEach(a),s.forEach(a),e}},itr={animation:{"combo-collapse":O_n,"combo-expand":LUi,"node-collapse":P_n,"node-expand":kUi,"path-in":M_n,"path-out":IUi,fade:DUi,translate:TUi},behavior:{"brush-select":xZe,"click-select":iwn,"collapse-expand":c1n,"create-edge":h1n,"drag-canvas":p1n,"drag-element-force":tKi,"drag-element":OZe,"fix-element-size":b1n,"focus-element":w1n,"hover-activate":S1n,"lasso-select":oKi,"auto-adapt-label":U_n,"optimize-viewport-transform":E1n,"scroll-canvas":D1n,"zoom-canvas":k1n},combo:{circle:Xqi,rect:Jqi},edge:{cubic:iZ,line:Jwn,polyline:n1n,quadratic:r1n,"cubic-horizontal":Gwn,"cubic-radial":Ywn,"cubic-vertical":Zwn},layout:{"antv-dagre":Dhe,"combo-combined":w1i,"compact-box":pKi,"d3-force":Lve,"force-atlas2":Zmn,circular:Lgn,concentric:bYe,dagre:Kmn,dendrogram:_Ki,fishbone:z1n,force:Ymn,fruchterman:$Ye,grid:Xmn,indented:xKi,mds:rvn,mindmap:kKi,radial:qYe,random:svn,snake:H1n},node:{circle:FF,diamond:X$i,ellipse:_wn,hexagon:iqi,html:Lwn,image:Pwn,rect:Yqi,star:Qqi,donut:ywn,triangle:Own},palette:{spectral:PKi,tableau:MKi,oranges:OKi,greens:RKi,blues:FKi},theme:{dark:ber,light:wer},plugin:{"bubble-sets":eCn,"edge-bundling":rCn,"edge-filter-lens":sCn,"grid-line":hCn,background:U1n,contextmenu:nCn,fisheye:lCn,fullscreen:uCn,history:mCn,hull:bCn,legend:oSn,minimap:aSn,snapline:cSn,timebar:dSn,title:rer,toolbar:pSn,tooltip:mSn,watermark:_Sn},transform:{"arrange-draw-order":Cer,"collapse-expand-combo":Ser,"collapse-expand-node":xer,"get-edge-actual-ends":Yer,"map-node-size":DSn,"place-radial-labels":kSn,"process-parallel-edges":LSn,"update-related-edges":ntr},shape:{circle:NC,ellipse:JQ,group:qf,html:MF,image:AZe,line:N2,path:$y,polygon:OF,polyline:j0e,rect:kp,text:tP,label:oN,badge:W0e}};function rtr(){Object.entries(itr).forEach(([e,t])=>{Object.entries(t).forEach(([n,i])=>{nye(e,n,i)})})}rtr();var LR={badge:!0,badgeBackgroundFill:"#A403F4",badgeBackgroundOpacity:1,badgeFill:"#fff",badgeFontFamily:"Geist",badgeFontSize:5,badgeOpacity:1,badgePadding:4,badgePalette:["#E3067A","#F42848","#A403F4"],fill:"#E3067A",fillOpacity:1,halo:!1,haloLineWidth:24,haloStrokeOpacity:.25,iconFill:"#fff",labelBackground:!1,labelBackgroundFill:"#fff",labelFill:"#000",labelFontFamily:"Geist",labelFontSize:6,labelFontWeight:400,labelLineHeight:8,labelOpacity:.85,labelOffsetY:2,labelPadding:[0,2],labelTextBaseline:"top",lineWidth:0,opacity:1,portFill:"#F42848",portLineWidth:1,portStroke:"#000000",portStrokeOpacity:.65,size:24,stroke:"#B8055F",zIndex:2,badgeSize:9},otr={badgeBackgroundOpacity:.5,badgeOpacity:.5,fill:"#f0f4f5",labelOpacity:.5,opacity:.5},str={halo:!0,fillOpacity:.1,lineWidth:3},wx={startArrowSize:4,endArrow:!0,endArrowLineJoin:"miter",endArrowOffset:0,endArrowSize:4,endArrowType:"triangle",halo:!1,increasedLineWidthForHitTesting:2,label:!1,labelAutoRotate:!0,labelBackground:!1,labelFill:"#000",labelFontFamily:"Geist",labelFontSize:6,labelFontWeight:400,labelPlacement:"center",labelTextAlign:"center",lineWidth:1,opacity:1,stroke:"#F06BA8",zIndex:1},atr={endArrowOffset:4.5},ltr={label:!1,opacity:.2},ctr={label:!0},utr={halo:!0,haloLineWidth:8,lineWidth:2},dtr={node:{style:LR,state:{disabled:otr,selected:str}},edge:{style:wx,state:{nodeSelected:atr,active:ctr,disabled:ltr,selected:utr}}},PSn="default";function htr(){nye(rN.THEME,PSn,dtr)}function DFt(e){const{openSource:t,edgeStyle:n}=Nl();return I.useMemo(()=>Object.values(e).map(i=>{const r=(0,Ezi.default)({},wx,n),o=i.layerNames.some(a=>a==="_default");let s="";return t&&(o?s="interacted with":s=i.style?.label??""),{...i,id:R2(i.src.id,i.dst.id),src:{id:i.src.id,displayName:i.src.displayName},dst:{id:i.dst.id,displayName:i.dst.displayName},layers:i.layers,style:{...r,labelText:s},typeStyle:i.layerStyle}}),[e,t,n])}var ftr=on(mN(),1);function ptr(e,t){const{nameProperty:n,nodeStyle:i}=Nl();return I.useMemo(()=>Object.values(e).map(r=>{const o=t?.nodesByType?.[r.nodeType??"None"],s=t?.nodesByName?.[r.id],a=s?.fill??o?.fill,l=s?.size??o?.size;let c=LR.size;l!==void 0?c=l:r.nodeStyle?.size!==void 0?c=r.nodeStyle.size:r.typeStyle!==void 0&&(c=r.typeStyle?.size);let u=null;a!==void 0?u=a:r.nodeStyle?.fill!==void 0?u=r.nodeStyle.fill:r.typeStyle?.fill!==void 0?u=r.typeStyle?.fill:r.nodeType!==void 0&&r.nodeType.length>0&&(u=kQ(r.nodeType));const d=r.hiddenNeighbours===0?[]:[{text:r.hiddenNeighbours.toString(),placement:"right-top",backgroundFill:LR.badgeBackgroundFill}],h=r.currentProps[n]??r.id,f=(0,ftr.default)({},LR,i?.({...r,properties:r.currentProps}),{fill:u,size:c},{badges:[...d]});return{...r,id:r.id,displayName:h,style:{...f,badges:[...d]},typeStyle:r.typeStyle}}),[e,n,i,t])}var nOe=1e3,$d=()=>{const e=I.useContext(fYe);return Ku(e!==void 0,"graph view context undefined, is this being rendered inside of a GraphViewProvider?"),e},tXe=()=>I.useContext(fYe);function gtr({graphSource:e,initialNodes:t,baseGraph:n,displayLimit:i}){const{masterGraphPath:r,globalFilter:o}=Nl(),s=n??r??e;if(s===void 0)throw new Error("baseGraph needs to be defined");const{queryNeighbours:a,querySharedNeighbours:l}=Ltr(s),{queryShortestPathForTwoNodes:c}=gRr(s),{data:u,isLoading:d,error:h,status:f}=nXe(e,i),p=I.useMemo(()=>o??[],[o]),g=I.useMemo(()=>t.map(_e=>[_e,!0]),[t]),{state:m,set:v,setWith:y,replace:b,undo:w,redo:E,canUndo:A,canRedo:D}=Hpi({shownMask:new Map(g),layout:j1i}),[T,M]=I.useState(!1),P=I.useCallback(_e=>{y(Ee=>{const Le=typeof _e=="function"?_e(Ee.shownMask):_e;return{...Ee,shownMask:Le}}),M(!0)},[y]),[F,N]=I.useState(new Set),[j,W]=I.useState(new Set),[J,ee]=I.useState(new Set),Q=I.useMemo(()=>{const _e=u?.nodeIds.filter(Le=>m.shownMask.get(Le)!==!1)??[],Ee=[...m.shownMask.entries()].filter(([Le,be])=>be===!0).map(([Le,be])=>Le);return[..._e,...Ee]},[m.shownMask,u?.nodeIds]),H=I.useMemo(()=>{if(!(i!==void 0&&(u?.countNodes??0)>i))return s},[s?.fullPath,i,u?.countNodes]),q=I.useMemo(()=>e??H,[e,H]),{data:{nodes:le,allEdges:Y,aliveEdges:G},isLoading:pe,error:U}=bRr({graphPath:H,nodes:Q,views:p}),[K,ie]=I.useState(),ce=I.useMemo(()=>K!==void 0&&(K.nodesByName!==void 0&&Object.keys(K.nodesByName).length>0||K.nodesByType!==void 0&&Object.keys(K.nodesByType).length>0||K.explodedEdges!==void 0&&Object.keys(K.explodedEdges).length>0),[K]),de=ptr(le,K),oe=DFt(G),{mutateAsync:me}=wRr({graphSource:e,allNodes:le,temporaryStyles:K,setTemporaryStyles:ie}),{nodePositions:Ce,status:Se,updateNodePosition:De}=V1i({graphPath:q,nodes:le,aliveEdges:G,layout:m.layout}),[Me,qe]=I.useState({nodes:[],aliveEdges:[]});I.useEffect(()=>{if(Ce===void 0){qe({nodes:[],aliveEdges:[]});return}de.some(_e=>!Ce.has(_e.id))||oe.some(_e=>!Ce.has(_e.src.id)||!Ce.has(_e.dst.id))||qe({nodes:de.map(_e=>{const Ee=Ce.get(_e.id);return{..._e,position:Ee}}),aliveEdges:oe})},[Ce,de,oe]);const[$,he]=I.useState(void 0),[Ie,Be]=I.useState(),ze=_e=>{he(_e),Be(void 0)},Ye=_e=>{Be(_e),he(void 0)},it=I.useMemo(()=>{if(Ie!==void 0)return G.filter(({layerNames:_e})=>_e.includes(Ie))},[G,Ie]),ft=I.useMemo(()=>{if(it===void 0){N(new Set);return}const _e=new Set(it.flatMap(({src:Ee,dst:Le})=>[Ee.id,Le.id]));return N(Ee=>new Set([...Ee,..._e])),new Set(it.map(({id:Ee})=>Ee))},[it,N]),ct=I.useCallback(_e=>{const Ee=_e.map(Le=>[Le,!0]);P(Le=>new Map([...Le.entries(),...Ee]))},[P]),et=I.useCallback(async _e=>{if(_e.length===0){ua.info("Must select at least two nodes!");return}if(le.reduce((be,Fe)=>_e.includes(Fe.id)?be+Fe.hiddenNeighbours:be,0)>nOe){ua.info("Node has too many neighbours to expand");return}const Le=await a(_e,p);ct(Le),N(new Set)},[ct,le,p,a,N]),ut=I.useCallback(_e=>et([_e]),[et]),wt=I.useCallback(async()=>{await et(Array.from(F))},[et,F]),pt=I.useCallback(async()=>{if(le.reduce((be,Fe)=>F.has(Fe.id)?be+Fe.hiddenNeighbours:be,0)>nOe){ua.info("Node has too many neighbours to expand");return}const Ee=await a(Array.from(F),p),Le=await a(Ee,p);ct([...Ee,...Le]),N(new Set)},[ct,p,a,F]),_t=I.useCallback(async()=>{if(F.size<2){ua.info("Must select at least two nodes!");return}if(le.reduce((Le,be)=>F.has(be.id)?Le+be.hiddenNeighbours:Le,0)>nOe){ua.info("Node has too many neighbours to expand");return}const Ee=await l(Array.from(F),p);ct(Ee)},[F,l,p,ct]),Rt=I.useCallback(async()=>{if(F.size!==2){ua.info("Select two nodes to find the path between");return}const _e=await c(Array.from(F)[1],[Array.from(F)[0]],p);ct(_e),N(Ee=>new Set([...Ee,..._e]))},[F,c,p,ct,N]),Yt=I.useCallback(()=>{if(F.size>0){const _e=Array.from(F).map(Ee=>[Ee,!1]);P(Ee=>new Map([...Ee.entries(),..._e])),N(new Set)}},[P,F,N]),Ut=I.useCallback(_e=>{N(Ee=>{const Le=Ee.difference(new Set(_e));return Le.size===Ee.size?Ee:Le})},[N]),Gt=I.useCallback(_e=>Ut([_e]),[Ut]),Kt=I.useCallback(()=>{N(new Set)},[N]),ln=I.useCallback(()=>{N(new Set),W(new Set),ee(new Set)},[N,W,ee]),pn=I.useCallback(_e=>{N(Ee=>{const Le=Ee.union(new Set(_e));return Le.size===Ee.size?Ee:Le})},[N]),wn=I.useCallback(_e=>pn([_e]),[pn]),Mn=I.useCallback(_e=>{N(Ee=>{const Le=Array.from(Ee).filter(be=>be!==_e);return new Set([_e,...Le])})},[N]),Yn=I.useCallback(_e=>{W(Ee=>{const Le=new Set(Array.from(Ee).map(Fe=>`${Fe.src}|${Fe.dst}`)),be=_e.filter(Fe=>{const Ze=`${Fe.src}|${Fe.dst}`;return!Le.has(Ze)}).map(Fe=>({src:Fe.src,dst:Fe.dst}));return new Set([...Ee,...be])})},[W]),di=I.useCallback(_e=>{ee(Ee=>{const Le=new Set(Array.from(Ee).map(Fe=>`${Fe.src}|${Fe.dst}|${Fe.time}|${Fe.layer}`)),be=_e.filter(Fe=>{const Ze=`${Fe.src}|${Fe.dst}|${Fe.time}|${Fe.layer}`;return!Le.has(Ze)}).map(Fe=>({src:Fe.src,dst:Fe.dst,time:Fe.time,layer:Fe.layer}));return new Set([...Ee,...be])})},[ee]),Li=I.useCallback(_e=>{ee(Ee=>{const Le=new Set(_e.map(be=>`${be.src}|${be.dst}|${be.time}|${be.layer}`));return new Set(Array.from(Ee).filter(be=>!Le.has(`${be.src}|${be.dst}|${be.time}|${be.layer}`)))})},[ee]),ke=I.useCallback(()=>{ee(new Set)},[ee]),Z=I.useCallback(_e=>{W(Ee=>{const Le=new Set(_e.map(be=>`${be.src}|${be.dst}`));return new Set(Array.from(Ee).filter(be=>{const Fe=`${be.src}|${be.dst}`;return!Le.has(Fe)}))})},[W]),ne=I.useCallback(()=>{W(new Set)},[W]),V=I.useCallback(()=>{N(new Set(Q))},[N,Q]),re=I.useCallback(()=>{N(_e=>{const Ee=Q.filter(Le=>!_e.has(Le));return new Set(Ee)})},[Q,N]),ge=I.useCallback(()=>{const _e=new Set(le.filter(({id:Ee})=>F.has(Ee)).map(({nodeType:Ee})=>Ee));if(_e.size===0){console.warn("No selected nodes have types!");return}N(Ee=>{const Le=new Set(le.filter(({nodeType:be})=>_e.has(be)).map(({id:be})=>be));return new Set([...Ee,...Le])})},[F,le,N]),we=I.useCallback(()=>{N(_e=>{const Ee=G.filter(Le=>_e.has(Le.src.id)||_e.has(Le.dst.id)).flatMap(Le=>[Le.src.id,Le.dst.id]);return new Set([..._e,...Ee])})},[G,F,N]),ve=I.useCallback(_e=>{y(Ee=>Ee.layout.type===_e.type?(b({...Ee,layout:_e}),Ee):{...Ee,layout:_e})},[v,b]);return{graphSource:u,graphSourcePath:e,baseGraphPath:s,isArchived:u?.archived,allNodeIds:Q,nodes:Me.nodes,nodePositions:Ce,allEdges:DFt(Y),aliveEdges:Me.aliveEdges,updateNodePosition:De,layout:m.layout,setLayout:ve,selectedNodes:F,selectedEdges:j,selectedTemporalEdges:J,highlighted:{nodes:$,edges:ft},highlightedLayer:Ie,setHighlightedNodeIds:ze,setHighlightedLayer:Ye,unsavedChangesExist:T,setUnsavedChangesExist:M,graphQueryViews:p,addNodes:ct,expandNode:ut,expandNodes:et,expandSelected:wt,expandTwoHops:pt,expandSharedNeighbours:_t,selectNode:wn,selectNodes:pn,addNodeToStart:Mn,selectEdges:Yn,deselectEdges:Z,selectTemporalEdges:di,deselectAllTemporalEdges:ke,deselectTemporalEdges:Li,selectShortestPath:Rt,deselectNode:Gt,deselectNodes:Ut,deselectAll:ln,deselectAllEdges:ne,deselectAllNodes:Kt,hideSelected:Yt,selectAllNodes:V,invertSelectedNodes:re,selectSimilarTypes:ge,selectRelatedNodes:we,undo:w,redo:E,canUndo:A,canRedo:D,loading:{graph:d,subgraph:pe,layout:Se==="pending"},status:{graph:f,subgraph:pe?"pending":"success",layout:Se},errors:[h,U].filter(_e=>_e!==null),temporaryStyles:K,setTemporaryStyles:ie,unsavedCustomizationChangesExist:ce,saveCustomizationPanelData:me}}function MSn({children:e,...t}){const n=gtr(t);return S.jsx(fYe.Provider,{value:n,children:e})}function uK(e){const t=e.filter(({key:n})=>n!=="_style").map(({key:n,value:i})=>[n,i]);return Object.fromEntries(t)}var mtr=Di.object({endArrowSize:Di.number().optional(),lineWidth:Di.number().optional(),startArrowSize:Di.number().optional(),stroke:Di.string().optional(),label:Di.string().optional()});function TFt(e){return{id:!0,nodeType:!0,properties:{values:{__args:{keys:[e]},key:!0,value:!0}}}}function mfe(e){return{src:{id:!0,nodeType:!0,lastUpdate:{timestamp:!0},properties:{values:{__args:{keys:[e]},key:!0,value:!0}}},dst:{id:!0,nodeType:!0,lastUpdate:{timestamp:!0},properties:{values:{__args:{keys:[e]},key:!0,value:!0}}},properties:{values:{key:!0,value:!0}}}}function R2(e,t){return`${e}->${t}`}function vtr(){const{nameProperty:e}=Nl();return t=>{const n=t.properties.values.find(({key:i})=>i===e)?.value;return typeof n=="string"?n:t.id}}function vfe(e,t){return{...e,id:R2(e.src.id,e.dst.id),src:{id:e.src.id,displayName:e.src.properties?.values?.find(({key:n})=>n===t)?.value??e.src.id,nodeType:e.src.nodeType??void 0,lastUpdate:e.src.lastUpdate?.timestamp},dst:{id:e.dst.id,displayName:e.dst.properties?.values?.find(({key:n})=>n===t)?.value??e.dst.id,nodeType:e.dst.nodeType??void 0,lastUpdate:e.dst.lastUpdate?.timestamp},layerNames:e.layerNames,properties:e.properties!==void 0?uK(e.properties.values):{},time:e.time.timestamp??0}}function ytr({graphPath:e,edgeIdentifiers:t}){const{client:n}=I.useContext(ac);return Yf({enabled:e!==void 0&&t!==void 0,queryKey:["edges",e?.fullPath,t],queryFn:async()=>{if(e===void 0||t===void 0)throw new Error("Graph or edgeId not defined!");const{src:i,dst:r}=t,s=(await n.query({__name:"Edges",graph:{__args:{path:e.fullPath},edge:{__args:{src:i,dst:r},layerNames:!0,firstUpdate:{timestamp:!0},lastUpdate:{timestamp:!0},properties:{values:{key:!0,value:!0}}}}})).graph.edge;if(s===null)throw new Error(`Edge from ${i} to ${r} could not be found!`);return{src:i,dst:r,layerNames:s.layerNames,firstUpdate:s.firstUpdate?.timestamp,lastUpdate:s.lastUpdate?.timestamp,properties:Object.fromEntries(s.properties.values.map(({key:a,value:l})=>[a,l]))}}})}function kFt({graphPath:e,src:t,dst:n}){const{client:i}=I.useContext(ac);return Yf({queryKey:["edge-exists",e?.fullPath,t,n],queryFn:async()=>e===void 0?!1:(await i.query({__name:"EdgeExists",graph:{__args:{path:e.fullPath},hasEdge:{__args:{src:t,dst:n}}}})).graph.hasEdge})}function btr({graphPath:e,nodeName:t,pageIndex:n,limit:i,temporalProperties:r,views:o,paginate:s}){const a=vtr(),l=IFt(e,t,n,i,r,o,s),c=IFt(e,t,n+1,i,r,o,s),{data:u,...d}=Yf(l);hGe(c);const h=u!==void 0?u.edges.map(f=>{const p=f.dst.id==t?f.src:f.dst;return{...p,lastUpdate:f.lastUpdate?.timestamp,displayName:a(p),role:f.layerName,edgeTemporalProperties:f.properties.temporal.values}}):[];return{data:u!==void 0?{neighbours:h,count:u.count}:void 0,...d}}function IFt(e,t,n,i,r,o=[],s=!0){const{nameProperty:a}=Nl(),{client:l}=I.useContext(ac),c={layerName:!0,lastUpdate:{timestamp:!0},src:TFt(a),dst:TFt(a),properties:{temporal:{values:{__args:{keys:r},key:!0,history:{timestamps:{list:!0}},values:!0}}}};return{enabled:e!==void 0&&t!==void 0,queryKey:["node-edges",e,t,a,n,i,o,s],queryFn:async()=>{Ku(e!==void 0&&t!==void 0);const h=await l.query({__name:"NodeEdgesBefore",graph:{__args:{path:e.fullPath},applyViews:{__args:{views:[{valid:!0},...o]},node:{__args:{name:t},edges:{explodeLayers:{count:!0,...s?{page:{__args:{pageIndex:n,limit:i},...c}}:{list:{...c}}}}}}}});if(h.graph===null||h.graph.applyViews.node===null)throw new Error(`Failed to find neighbours for ${t} in ${e.fullPath} cannot be found!`);const f=h.graph.applyViews.node.edges.explodeLayers;return{count:h.graph.applyViews.node.edges.explodeLayers.count,edges:"page"in f?f.page:f.list}}}}function LFt({graphPath:e,nodeName:t,pageIndex:n,limit:i,paginate:r}){const{client:o}=I.useContext(ac),{nameProperty:s}=Nl(),a=tXe()?.graphQueryViews;return{enabled:e!==void 0,queryKey:["node-neighbours-exploded-edges",e,t,s,n,i,a,r],queryFn:async()=>{Ku(e!==void 0);const l=await o.query({__name:"NeighbouringEdgesExploded",graph:{__args:{path:e.fullPath},node:{__args:{name:t},applyViews:{__args:{views:a??[]},edges:{explode:{count:!0,...r?{page:{__args:{pageIndex:n??0,limit:i??5},...mfe(s),layerName:!0,time:{timestamp:!0}}}:{list:{...mfe(s),layerName:!0,time:{timestamp:!0}}}}}}}}});if(l.graph===null)throw new Error(`Graph ${e} cannot be found!`);if(l.graph.node===null)throw new Error(`Node ${t} cannot be found in ${e}!`);const c=l.graph.node.applyViews.edges.explode;return{edges:"page"in c?c.page.map(d=>vfe(d,s)):c.list.map(d=>vfe(d,s)),count:l.graph.node.applyViews.edges.explode.count}}}}function NFt({graphPath:e,nodeName:t,pageIndex:n,limit:i,paginate:r}){const o=LFt({graphPath:e,nodeName:t,pageIndex:n,limit:i,paginate:r}),s=LFt({graphPath:e,nodeName:t,pageIndex:n!==void 0?n+1:void 0,limit:i,paginate:r});return hGe(s),Yf(o)}function PFt({graphPath:e,source:t,target:n,at:i,pageIndex:r,limit:o,paginate:s}){const{client:a}=I.useContext(ac),{nameProperty:l}=Nl(),c=`${t}->${n}`;return{queryKey:["exploded-from-edges",e,i,c,r,o,s],queryFn:async()=>{Ku(e!==void 0&&t!==void 0&&n!==void 0);const u=await a.query({__name:"ExplodedLayersOfEdges",graph:{__args:{path:e.fullPath},edge:{__args:{src:t,dst:n},applyViews:{__args:{views:[{before:i}]},explode:{count:!0,...s?{page:{__args:{pageIndex:r??0,limit:o??5},...mfe(l),layerName:!0,time:{timestamp:!0}}}:{list:{...mfe(l),layerName:!0,time:{timestamp:!0}}}}}}}});if(u.graph===null)throw new Error(`Graph ${e} cannot be found!`);if(u.graph.edge===null)throw new Error(`Edge from ${t} to ${n} could not be found!`);const d=u.graph.edge.applyViews.explode;return{edges:"page"in d?d.page.map(f=>vfe(f,l)):d.list.map(f=>vfe(f,l)),count:u.graph.edge.applyViews.explode.count}}}}function _tr({graphPath:e,source:t,target:n,at:i,pageIndex:r,limit:o,paginate:s}){const a=PFt({graphPath:e,source:t,target:n,at:i,pageIndex:r,limit:o,paginate:s}),l=PFt({graphPath:e,source:t,target:n,at:i,pageIndex:r!==void 0?r+1:void 0,limit:o,paginate:s});return hGe({queryKey:l.queryKey,queryFn:l.queryFn}),Yf(a)}var wtr=[{label:"1 year",interval:A0.every(1)},{label:"6 months",interval:hL.every(6)},{label:"3 months",interval:hL.every(3)},{label:"1 month",interval:hL.every(1)},{label:"1 week",interval:qL.every(7)},{label:"1 day",interval:qL.every(1)},{label:"12 hours",interval:xD.every(12)},{label:"6 hours",interval:xD.every(6)},{label:"1 hour",interval:xD.every(1)},{label:"30 minutes",interval:yx.every(30)},{label:"20 minutes",interval:yx.every(20)},{label:"5 minutes",interval:yx.every(5)},{label:"1 minute",interval:yx.every(1)}];function MFt(e){const t=new Date(0);return+e.offset(t,1)-+t}function Ctr({graphPath:e,nodeNames:t,maxIntervalSize:n,domain:i}){let r="1 year";!isNaN(n)&&n!==null&&(r=wtr.reduce((u,d)=>{const h=MFt(d.interval),f=MFt(u.interval);return Math.abs(h-n)<Math.abs(f-n)?d:u}).label);const{client:o}=I.useContext(ac);let s;typeof r=="string"?s={window:{duration:r}}:typeof r=="number"&&(s={window:{epoch:r}});const a=new Date(i?.start??new Date(0)).getTime(),l=new Date(i?.end??new Date).getTime();return Yf({queryKey:["rolling-edges",e?.fullPath,r,t],enabled:e!==void 0,placeholderData:$ln,queryFn:async()=>(Ku(e!==void 0),(await o.query({__name:"RollingEdges",graph:{__args:{path:e.fullPath},subgraph:{__args:{nodes:t},window:{__args:{start:isNaN(a)?new Date(0).getTime():a,end:isNaN(l)?new Date().getTime():l},rolling:{__args:{...s},list:{nodes:{list:{edgeHistoryCount:!0,id:!0,edges:{explode:{start:{timestamp:!0},end:{timestamp:!0}}}}}}}}}}})).graph.subgraph.window.rolling.list.flatMap(u=>u.nodes.list.filter(d=>d.edgeHistoryCount>0).map(d=>({node:d.id,time:new Date(d.edges.explode.start?.timestamp??0),end:new Date(d.edges.explode.end?.timestamp??1),size:d.edgeHistoryCount}))))})}function Str(e,t,n,i){const{client:r}=I.useContext(ac);return Yf({enabled:e!==void 0,queryKey:[e?.fullPath,t,n,i],queryFn:async()=>{Ku(e!==void 0);const o={src:{id:!0,nodeType:!0},dst:{id:!0,nodeType:!0},layerNames:!0,metadata:{values:{key:!0,asString:!0}}};let s=[],a=0;if(t.srcId===void 0&&t.dstId===void 0){const l=await r.query({__name:"EdgesByLayer",graph:{__args:{path:e.fullPath},applyViews:{__args:{views:[{snapshotLatest:!0},...t.views??[]]},edges:{count:!0,page:{__args:{pageIndex:n,limit:i},...o}}}}});s=l.graph.applyViews.edges.page,a=l.graph.applyViews.edges.count}else if(t.srcId!==void 0&&t.dstId!==void 0){const l=await r.query({__name:"EdgeByIdentifiers",graph:{__args:{path:e.fullPath},applyViews:{__args:{views:[{snapshotLatest:!0},...t.views??[]]},edge:{__args:{src:t.srcId,dst:t.dstId},...o}}}});s=l.graph.applyViews.edge!==null?[l.graph.applyViews.edge]:[],a=s.length}else if(t.srcId!==void 0){const l=await r.query({__name:"EdgesApplyViewsNodeOutEdges",graph:{__args:{path:e.fullPath},applyViews:{__args:{views:[{snapshotLatest:!0},...t.views??[]]},node:{__args:{name:t.srcId},outEdges:{count:!0,page:{__args:{pageIndex:n,limit:i},...o}}}}}});s=l.graph.applyViews.node?.outEdges.page??[],a=l.graph.applyViews.node?.outEdges.count??0}else if(t.dstId!==void 0){const l=await r.query({__name:"EdgesApplyViewsNodeInEdges",graph:{__args:{path:e.fullPath},applyViews:{__args:{views:[{snapshotLatest:!0},...t.views??[]]},node:{__args:{name:t.dstId},inEdges:{count:!0,page:{__args:{pageIndex:n,limit:i},...o}}}}}});s=l.graph.applyViews.node?.inEdges.page??[],a=l.graph.applyViews.node?.inEdges.count??0}return{page:s.map(({src:l,dst:c,layerNames:u,metadata:d})=>({src:{...l,nodeType:l.nodeType??void 0},dst:{...c,nodeType:c.nodeType??void 0},layerNames:u,properties:Object.fromEntries(d.values.map(({key:h,asString:f})=>[h,f]))})),count:a}}})}function OSn(){const{client:e}=I.useContext(ac),t=J0();return GN({mutationFn:async({path:n,edgeIdentifiers:i,layer:r})=>{const{src:o,dst:s}=i,a=await e.query({__name:"ClearEdgeStyleQuery",updateGraph:{__args:{path:n.fullPath},edge:{__args:{src:o,dst:s},updateMetadata:{__args:{properties:[{key:"_style",value:{object:[]}}],layer:r}}}}});return Ku(a.updateGraph.edge!==void 0&&a.updateGraph.edge!==null,"edge is empty"),a.updateGraph.edge.updateMetadata},onSuccess:()=>{t.invalidateQueries({queryKey:["subgraph"]}),t.invalidateQueries({queryKey:["edges"]}),t.invalidateQueries({queryKey:["edge-exists"]}),t.invalidateQueries({queryKey:["node-edges"]}),t.invalidateQueries({queryKey:["node-neighbours-exploded-edges"]}),t.invalidateQueries({queryKey:["exploded-from-edges"]}),t.invalidateQueries({queryKey:["rolling-edges"]})}})}var xtr=Di.object({archived:Di.boolean().optional(),owner:Di.string().optional(),hidden:Di.boolean().optional()});function Etr(e){const t=uK(e.metadata.values),{archived:n,owner:i,hidden:r}=xtr.parse(t);return{...e,properties:t,archived:n??!1,owner:i,hidden:r??!1,earliestTime:e.earliestTime?.timestamp,latestTime:e.latestTime?.timestamp}}var Atr=e=>({...Etr(e),nodeIds:e.nodes.page.map(n=>n.id)}),Dtr=(e,t,n)=>e.query({__name:"Graph",graph:{__args:{path:t},created:!0,lastUpdated:!0,earliestTime:{timestamp:!0},latestTime:{timestamp:!0},path:!0,namespace:!0,name:!0,countNodes:!0,countEdges:!0,metadata:{values:{key:!0,value:!0}},countTemporalEdges:!0,nodes:{page:{__args:{limit:n??1e15,offset:0},id:!0}}}});function rye(e,t){const{client:n}=I.useContext(ac);return Yf({queryKey:["graph",e?.fullPath,"GLOBAL"],enabled:e!==void 0&&e.fullPath.length>0,queryFn:async()=>{Ku(e!==void 0);const{graph:i}=await Dtr(n,e.fullPath,t);return Atr(i)}})}function nXe(e,t){const n=rye(e,t),i=I.useMemo(()=>new Date().getTime(),[]);return I.useMemo(()=>({...n,created:n.data?.created??i}),[n,i])}function Ttr(){const{client:e}=I.useContext(ac),t=J0();return GN({mutationFn:async({graphPath:n,newGraphPath:i})=>{await e.mutation({__name:"RenameGraphMutation",moveGraph:{__args:{path:n.fullPath,newPath:i.fullPath}}}),await RSn(e,i)},onSuccess:()=>t.invalidateQueries({queryKey:["graph-list"]})})}async function RSn(e,t){await e.query({__name:"UpdateOwnerGraphQuery",updateGraph:{__args:{path:t.fullPath},updateMetadata:{__args:{properties:[{key:"owner",value:{str:"User"}},{key:"hidden",value:{bool:!1}}]}}}})}var FSn=()=>{const{client:e}=I.useContext(ac),t=J0();return GN({mutationFn:async({path:n,archive:i})=>(await e.query({__name:"ArchiveGraphQuery",updateGraph:{__args:{path:n.fullPath},updateMetadata:{__args:{properties:[{key:"archived",value:{bool:i}}]}}}})).updateGraph.updateMetadata,onSuccess:(n,{path:i})=>{t.invalidateQueries({queryKey:["graph",i.fullPath,"GLOBAL"]}),t.invalidateQueries({queryKey:["graph-list"]}),t.invalidateQueries({queryKey:["namespace"]})}})};function BSn(e){const{client:t}=I.useContext(ac);return Yf({enabled:e!==void 0,queryKey:[e?.fullPath],queryFn:async()=>(Ku(e!==void 0),(await t.query({graph:{__args:{path:e.fullPath},schema:{layers:{name:!0}}}})).graph.schema.layers.map(({name:i})=>i))})}function ktr(e){const{client:t}=I.useContext(ac);return Yf({queryKey:["namespace",e],queryFn:async()=>{const{namespace:n}=await t.query({__name:"QueryNamespaces",namespace:{__args:{path:e??""},graphs:{list:{path:!0,name:!0,lastUpdated:!0,nodeCount:!0,edgeCount:!0,metadata:{key:!0,value:!0}}},children:{list:{path:!0,items:{count:!0},graphs:{list:{lastUpdated:!0}}}},parent:{path:!0}}});return{graphs:n.graphs.list.map(r=>{const o=Object.fromEntries(r.metadata.map(({key:a,value:l})=>[a,l])),s=hb.fromFullPath(r.path);return{path:s,name:s?.graphName,lastUpdated:r.lastUpdated,nodeCount:r.nodeCount,edgeCount:r.edgeCount,hidden:!!o.hidden,archived:!!o.archived,properties:o}}),children:n.children.list.map(r=>{const o=r.graphs.list.map(a=>a.lastUpdated).filter(a=>a!=null),s=o.length>0?Math.max(...o):void 0;return{path:r.path,itemCount:r.items.count,latestUpdate:s}}).filter(r=>r.path!==null),parent:n.parent?.path??void 0}}})}function Itr(e,t,n){const{client:i}=I.useContext(ac);return Yf({queryKey:["namespaced-items-paged",e,t,n],placeholderData:$ln,queryFn:async()=>{const{namespace:r}=await i.query({namespace:{__args:{path:e??""},items:{page:{__args:{limit:t,pageIndex:n},__typename:!0,on_Namespace:{path:!0},on_MetaGraph:{path:!0}},count:!0}}});return{page:r.items.page.map(({__typename:o,...s})=>{switch(o){case"Namespace":return{type:"namespace",path:s.path};case"MetaGraph":return{type:"graph",path:hb.fromFullPath(s.path)}}}).filter(o=>o.type!=="graph"||o.path!==void 0),count:r.items.count}}})}var Ltr=e=>{const t=J0(),{client:n}=I.useContext(ac),i=(s,a=[])=>t.ensureQueryData({queryKey:["expand",s,e.fullPath,a],queryFn:async()=>(await n.query({__name:"Neighbours",graph:{__args:{path:e.fullPath},applyViews:{__args:{views:[...a,{snapshotLatest:!0}]},node:{__args:{name:s},neighbours:{list:{id:!0}}}}}})).graph?.applyViews.node?.neighbours.list.map(c=>c.id)??[]});return{queryNeighboursForSingleNode:i,queryNeighbours:async(s,a=[])=>{const l=s.map(u=>i(u,a));return(await Promise.all(l)).flat()},querySharedNeighbours:(s,a=[])=>t.ensureQueryData({queryKey:["shared-neighbours",s,e.fullPath,a],queryFn:async()=>(await n.query({__name:"SharedNeighbours",graph:{__args:{path:e.fullPath},applyViews:{__args:{views:[...a,{snapshotLatest:!0}]},sharedNeighbours:{__args:{selectedNodes:s},id:!0}}}})).graph?.applyViews.sharedNeighbours.map(c=>c.id)??[]})}},iXe=Di.object({fill:Di.string().optional(),size:Di.number().optional()}),jSn=Di.object({node_types:Di.record(Di.string(),iXe)}),Ntr=Di.object({x:Di.number(),y:Di.number()}).optional();function Ptr(e,t,n,i){const{id:r,nodeType:o,degree:s,outDegree:a,inDegree:l,firstUpdate:c,lastUpdate:u,properties:d,metadata:h}=e,f=h?.values?uK(h.values):uK(d?.values??[]),p=d.temporal?.values?d.temporal.values.reduce((g,{key:m,values:v,history:y})=>({...g,[m]:{values:v,history:y}}),{}):{};return{id:r,displayName:f[t]??r,nodeType:o,degree:s,outDegree:a,inDegree:l,firstUpdate:c?.timestamp,lastUpdate:u?.timestamp,properties:f,temporalProperties:p,earliestTime:n??c??null,latestTime:i??u??null}}function Mtr({graphPath:e,nodeNames:t,pageIndex:n,limit:i,views:r}){const{nameProperty:o}=Nl(),{client:s}=I.useContext(ac);return Yf({enabled:e!==void 0,queryKey:["node-at-page",e,t,r,n,i,o],queryFn:async()=>{Ku(e!==void 0);const a=await s.query({__name:"NodeAtPage",graph:{__args:{path:e.fullPath},subgraph:{__args:{nodes:t},countNodes:!0,applyViews:{__args:{views:[...r??[],{snapshotLatest:!0}]},nodes:{page:{__args:{pageIndex:n,limit:i},id:!0,nodeType:!0,degree:!0,properties:{values:{key:!0,value:!0}}}}}}}});return{nodes:a.graph.subgraph.applyViews.nodes.page.map(l=>{const c=uK(l.properties.values);return{id:l.id,displayName:c[o]??l.id,nodeType:l.nodeType??void 0,degree:l.degree,propertyKeys:l.properties.values.map(u=>u.key),properties:c}}),nodeCount:a.graph.subgraph.countNodes}}})}function Otr({graphPath:e,nodeName:t}){const{nameProperty:n}=Nl(),{client:i}=I.useContext(ac);return Yf({enabled:e!==void 0&&t!==void 0,queryKey:["node",e?.fullPath,t,n],queryFn:async()=>{Ku(e!==void 0,"Graph must be defined to query node by name"),Ku(t!==void 0);const r=await i.query({__name:"NodeByName",graph:{__args:{path:e.fullPath},earliestTime:{timestamp:!0},latestTime:{timestamp:!0},node:{__args:{name:t},id:!0,nodeType:!0,degree:!0,outDegree:!0,inDegree:!0,firstUpdate:{timestamp:!0},lastUpdate:{timestamp:!0},properties:{temporal:{values:{__args:{keys:void 0},key:!0,values:!0,history:{timestamps:{list:!0}}}},values:{__args:{keys:void 0},key:!0,value:!0}}}}});if(r.graph===null)throw new Error(`Graph ${e} cannot be found!`);if(r.graph.node===null)throw new Error(`Node ${t} cannot be found in ${e}!`);return Ptr(r.graph.node,n,r.graph.earliestTime?.timestamp??0,r.graph.latestTime?.timestamp??1)}})}var zSn="ID";function Rtr(e,{window:t,types:n,conditions:i,pageIndex:r,limit:o}){const{nameProperty:s}=Nl(),{client:a}=I.useContext(ac);return Yf({enabled:e!==void 0,queryKey:["nodes-apply-views",e?.fullPath,t,n,i,r,o],queryFn:async()=>{Ku(e!==void 0);const l=i.map(h=>h.name===zSn?{nodeFilter:{node:{field:"NODE_NAME",where:{[h.operator]:h.value}}}}:{nodeFilter:{property:{name:h.name,where:{[h.operator]:h.value}}}}),c=await a.query({__name:"NodesApplyViews",graph:{__args:{path:e.fullPath},applyViews:{__args:{views:[...l,...n!==void 0?[{subgraphNodeTypes:n}]:[],...t!==void 0?[{window:t}]:[]]},nodes:{page:{__args:{pageIndex:r,limit:o},id:!0,nodeType:!0,firstUpdate:{timestamp:!0},lastUpdate:{timestamp:!0},properties:{keys:!0,values:{__args:{keys:[s,"doc"]},key:!0,value:!0}}},count:!0}}}}),u=c.graph.applyViews.nodes.page,d=c.graph.applyViews.nodes.count;return{nodes:u.map(h=>({id:h.id,displayName:h.properties.values.find(f=>f.key===s)?.value??h.id,document:h.properties.values.find(f=>f.key==="doc")?.value??"",nodeType:h.nodeType??void 0,lastUpdate:h.lastUpdate,propertyKeys:h.properties.keys})),count:d}}})}function VSn(e){const{client:t}=I.useContext(ac);return Yf({enabled:e!==void 0,queryKey:["node-type-styles",e?.fullPath],queryFn:async()=>{Ku(e!==void 0);const n=await t.query({__name:"NodeTypeStyles",graph:{__args:{path:e.fullPath},metadata:{values:{__args:{keys:["_style"]},key:!0,value:!0}}}});return jSn.safeParse(n.graph.metadata.values.find(({key:i})=>i=="_style")?.value).data?.node_types??null}})}var HSn="_pos";function Ftr(){const{client:e}=I.useContext(ac),t=J0();return GN({mutationFn:async({path:i,nodePositions:r})=>await Promise.all(Array.from(r).map(async([o,s])=>(await e.query({__name:"UpdateNodePositionMutation",updateGraph:{__args:{path:i.fullPath},node:{__args:{name:o},updateMetadata:{__args:{properties:[{key:HSn,value:{object:[{key:"x",value:{f64:s.x}},{key:"y",value:{f64:s.y}}]}}]}}}}})).updateGraph.node?.updateMetadata)),onSuccess:async()=>{await Promise.all([t.invalidateQueries({queryKey:["subgraph"]}),t.invalidateQueries({queryKey:["node"]}),t.invalidateQueries({queryKey:["nodes-apply-views"]}),t.invalidateQueries({queryKey:["node-at-page"]})])}})}function Btr(){const{client:e}=I.useContext(ac),t=J0();return GN({mutationFn:async({path:n,name:i})=>{const r=await e.query({__name:"ClearNodeStyleMutation",updateGraph:{__args:{path:n.fullPath},node:{__args:{name:i},updateMetadata:{__args:{properties:[{key:"_style",value:{object:[]}}]}}}}});return Ku(r.updateGraph.node!==void 0&&r.updateGraph.node!==null,"Node does not exist"),r.updateGraph.node.updateMetadata},onSuccess:()=>{t.invalidateQueries({queryKey:["subgraph"]}),t.invalidateQueries({queryKey:["node"]}),t.invalidateQueries({queryKey:["nodes-apply-views"]}),t.invalidateQueries({queryKey:["node-at-page"]})}})}function jtr(){const{client:e}=I.useContext(ac),t=J0();return GN({mutationFn:async({path:n,typeToUpdate:i,typeStyles:r})=>{const o=Object.entries(r??{}).map(([a,l])=>{if((a===""?"None":a)===i)return;const u=[];return l.fill&&u.push({key:"fill",value:{str:l.fill.toString()}}),l.size!==void 0&&u.push({key:"size",value:{u64:l.size}}),{key:a,value:{object:u}}}).filter(a=>a!==void 0),s=await e.query({__name:"ClearNodeTypeStyleMutation",updateGraph:{__args:{path:n.fullPath},updateMetadata:{__args:{properties:[{key:"_style",value:{object:[{key:"nodes",value:{object:o}}]}}]}}}});return Ku(s.updateGraph!==void 0&&s.updateGraph!==null,"Node does not exist"),s.updateGraph.updateMetadata},onSuccess:()=>{t.invalidateQueries({queryKey:["subgraph"]}),t.invalidateQueries({queryKey:["node"]}),t.invalidateQueries({queryKey:["nodes-apply-views"]}),t.invalidateQueries({queryKey:["node-at-page"]}),t.invalidateQueries({queryKey:["node-type-styles"]})}})}function WSn(e){return{stringify(t,{hint:n}){const i=n??e;return i==="string"&&typeof t=="string"?t:i==="date"&&t instanceof Date?t.toISOString():JSON.stringify(t)},parse(t,{hint:n}){const i=n??e;return i==="string"?t:i==="date"?new Date(t):JSON.parse(t)}}}function ztr({parserFactory:e}){const t=Vtr({parserFactory:e});function n(a,l){const c=typeof a=="function"?a:Ore,u=typeof a=="function"?l:a;return t(d=>d===void 0?d:c(Wtr(d)),u??e("string"))}function i(a,l){const c=typeof a=="function"?a:Ore,u=typeof a=="function"?l:a;return t(d=>d===void 0?d:c(Utr(d)),u??e("number"))}function r(a,l){const c=typeof a=="function"?a:Ore,u=typeof a=="function"?l:a;return t(d=>d===void 0?d:c($tr(d)),u??e("boolean"))}function o(a,l){const c=typeof a=="function"?a:Ore,u=typeof a=="function"?l:a;return t(d=>d===void 0?d:c(qtr(d)),u??e("date"))}function s(a,l){const c=Array.isArray(a)?a:Gtr(a),u=l??e("unknown");return t(d=>{if(d!==void 0&&(!(typeof d=="string"||typeof d=="number"||typeof d=="boolean")||!c.includes(d)))throw new Error(`${String(d)} is not assignable to '${c.map(h=>JSON.stringify(h)).join(" | ")}'`);return d},{stringify(d,h){return u.stringify(d,Object.assign(Object.assign({},h),{hint:typeof d}))},parse(d,h){for(const f of c)try{if(f===u.parse(d,Object.assign(Object.assign({},h),{hint:typeof f})))return f}catch{}throw new Error(`${String(d)} is not assignable to '${c.map(f=>JSON.stringify(f)).join(" | ")}'`)}})}return{type:t,string:n,number:i,boolean:r,date:o,union:s}}function Vtr({parserFactory:e}){return function(n,i=e("unknown")){const r=h=>i.stringify(h,{kind:"pathname"}),o=h=>n(typeof h>"u"?h:i.parse(h,{kind:"pathname"})),s=h=>i.stringify(h,{kind:"search"}),a=h=>n(typeof h[0]>"u"?h[0]:i.parse(h[0],{kind:"search"})),l=h=>i.stringify(h,{kind:"hash"}),c=h=>n(typeof h>"u"?h:i.parse(h,{kind:"hash"})),u=h=>h,d=h=>n(h);return Object.assign({},{serializeParam:r,deserializeParam:Xb(o),serializeSearchParam:s,deserializeSearchParam:Xb(a),serializeHash:l,deserializeHash:Xb(c),serializeState:u,deserializeState:Xb(d)},{array:iOe(Xb(n),{stringify:i.stringify,parse:Xb(i.parse)})},{default:h=>{const f=Htr(n,h);return Object.assign({},{serializeParam:r,deserializeParam:Jb(Xb(o),f),serializeSearchParam:s,deserializeSearchParam:Jb(Xb(a),f),serializeHash:l,deserializeHash:Jb(Xb(c),f),serializeState:u,deserializeState:Jb(Xb(d),f)},{array:iOe(Jb(Xb(n),f),{stringify:i.stringify,parse:Jb(Xb(i.parse),f)})})},defined:()=>Object.assign({},{serializeParam:r,deserializeParam:Jb(o),serializeSearchParam:s,deserializeSearchParam:Jb(a),serializeHash:l,deserializeHash:Jb(c),serializeState:u,deserializeState:Jb(d)},{array:iOe(Jb(n),{stringify:i.stringify,parse:Jb(i.parse)})})})}}var iOe=(e,t)=>()=>({serializeSearchParam:s=>s.filter(rOe).map(a=>t.stringify(a,{kind:"search"})),deserializeSearchParam:s=>s.map(a=>e(t.parse(a,{kind:"search"}))).filter(rOe),serializeState:s=>s,deserializeState:s=>(Array.isArray(s)?s:[]).map(a=>e(a)).filter(rOe)});function rOe(e){return typeof e<"u"}function Xb(e){return(...t)=>{try{return e(...t)}catch{return}}}function Jb(e,t){return(...n)=>{const i=e(...n);if(i===void 0){if(t===void 0)throw new Error("Can't return 'undefined' for a .defined() param. Use .default() (or omit the modifier) instead. Remember, required pathname params use .defined() by default.");return t}return i}}function Htr(e,t){const n=e(t);if(n===void 0)throw new Error("Default value validation resulted in 'undefined', which is forbidden");return n}function Wtr(e){if(typeof e!="string")throw new Error(`${String(e)} is not assignable to 'string'`);return e}function Utr(e){if(typeof e!="number")throw new Error(`${String(e)} is not assignable to 'number'`);if(Number.isNaN(e))throw new Error("Unexpected NaN");return e}function $tr(e){if(typeof e!="boolean")throw new Error(`${String(e)} is not assignable to 'boolean'`);return e}function qtr(e){if(!(e instanceof Date))throw new Error(`${String(e)} is not assignable to 'Date'`);if(typeof e<"u"&&Number.isNaN(e.getTime()))throw new Error("Unexpected Invalid Date");return e}function Gtr(e){return Object.keys(e).filter(t=>typeof e[e[t]]!="number").map(t=>e[t])}function Ore(e){return e}var{type:Ktr,string:OFt}=ztr({parserFactory:WSn});function uH(e){var t,n,i,r,o;const s=((t=e.compose)!==null&&t!==void 0?t:[]).map(({$spec:c})=>c),a={path:e.path,params:(n=e?.params)!==null&&n!==void 0?n:{},searchParams:(i=e?.searchParams)!==null&&i!==void 0?i:{},hash:(r=e?.hash)!==null&&r!==void 0?r:[],state:(o=e?.state)!==null&&o!==void 0?o:{}},l=$Sn([...s,a],"compose");return Object.assign(Object.assign(Object.assign({},bfe(l,e.children)),qSn(l)),{$:bfe(USn(l),e.children)})}function USn(e){return Object.assign(Object.assign({},e),{path:""})}function $Sn(e,t){return e.reduce((n,i)=>({path:t==="compose"||["",void 0].includes(n.path)?i.path:["",void 0].includes(i.path)?n.path:`${n.path}/${i.path}`,params:Object.assign(Object.assign({},n.params),i.params),searchParams:Object.assign(Object.assign({},n.searchParams),i.searchParams),hash:yfe(i.hash)?i.hash:yfe(n.hash)?n.hash:[...n.hash||[],...i.hash||[]],state:Object.assign(Object.assign({},n.state),i.state)}))}function yfe(e){return!!e&&!Array.isArray(e)}function bfe(e,t){const n={};return t&&Object.keys(t).forEach(i=>{const r=t[i];n[i]=snr(r)?Object.assign(Object.assign(Object.assign({},bfe(e,r)),qSn($Sn([e,r.$spec],"inherit"))),{$:bfe(USn(e),r.$)}):r}),n}function qSn(e){const[t]=GSn(e.path),n=onr(e.path),i=rnr(e.path),r=Object.assign(Object.assign({},e),{params:Object.assign(Object.assign({},Ytr(e.path)),e.path===void 0?e.params:Qtr(e.params,t))});function o(y){return Ztr(t,y.params,r.params)}function s(y){const b=Jsi(i??"",o(y)),w=b.startsWith("/")?b.substring(1):b;return`${y?.relative?"":"/"}${w}`}function a(y){var b,w;const E=(b=y.params)!==null&&b!==void 0?b:{},A=(w=y.searchParams)!==null&&w!==void 0?w:{},D=y.hash;return`${s(Object.assign({params:E},y))}${c(Object.assign({searchParams:A},y))}${D!==void 0?u({hash:D}):""}`}function l(y){const b=m8(Xtr(y.searchParams,r.searchParams));return y?.untypedSearchParams&&anr(b,p(y?.untypedSearchParams)),b}function c(y){const b=m8(l(y)).toString();return b?`?${b}`:""}function u(y){return yfe(r.hash)?`#${r.hash.serializeHash(y.hash)}`:`#${String(y.hash)}`}function d(y){return wje(r.state)?enr(y.state,r.state):Object.assign(Jtr(y.state,r.state),m(y?.untypedState))}function h(y){return tnr(y,r)}function f(y){return nnr(y,r)}function p(y){const b=m8(y);return r.searchParams&&Object.keys(r.searchParams).forEach(w=>{b.delete(w)}),b}function g(y){return inr(y,r)}function m(y){const b=wje(r.state)?void 0:{};if(!KSn(y)||!b)return b;const w=r.state?Object.keys(r.state):[];return Object.keys(y).forEach(E=>{w.indexOf(E)===-1&&(b[E]=y[E])}),b}function v(y){const b=y?.substring(1,y?.length);if(yfe(r.hash))return r.hash.deserializeHash(b);if(b&&r.hash.indexOf(b)!==-1)return b}return{$path:(y=>y?.relative?i:n),$buildPath:a,$buildPathname:s,$buildSearch:c,$buildHash:u,$buildState:d,$serializeParams:o,$serializeSearchParams:l,$deserializeParams:h,$deserializeSearchParams:f,$deserializeHash:v,$deserializeState:g,$spec:e}}function Ytr(e){const[t,n]=GSn(e),i={};return n.forEach(r=>{i[r]=OFt()}),t.forEach(r=>{i[r]||(i[r]=OFt().defined())}),i}function Qtr(e,t){const n={};return t.forEach(i=>{e[i]!==void 0&&(n[i]=e[i])}),n}function Ztr(e,t,n){const i={};return Object.keys(t).forEach(r=>{const o=n[r],s=t[r];o&&e.indexOf(r)!==-1&&s!==void 0&&(i[r]=o.serializeParam(s))}),i}function Xtr(e,t){const n={};return Object.keys(e).forEach(i=>{const r=t[i];r&&e[i]!==void 0&&(n[i]=r.serializeSearchParam(e[i]))}),n}function Jtr(e,t){const n={};return Object.keys(e).forEach(i=>{const r=t[i],o=e[i];r&&o!==void 0&&(n[i]=r.serializeState(o))}),n}function enr(e,t){return t.serializeState(e)}function tnr(e,t){const n=t.params,i={};return Object.keys(n).forEach(r=>{const o=n[r];if(o){const s=o.deserializeParam(e[r]);s!==void 0&&(i[r]=s)}}),i}function nnr(e,t){const n={},i=t.searchParams;return Object.keys(i).forEach(r=>{const o=i[r];if(o){const s=o.deserializeSearchParam(e.getAll(r));s!==void 0&&(n[r]=s)}}),n}function inr(e,t){if(wje(t.state))return t.state.deserializeState(e);const n={},i=t.state;return KSn(e)&&Object.keys(i).forEach(r=>{const o=i[r];if(o){const s=o.deserializeState(e[r]);s!==void 0&&(n[r]=s)}}),n}function GSn(e){const t=[],n=[];return e?.split(":").filter((i,r)=>!!r).forEach(i=>{const r=i.split("/")[0];if(r.endsWith("?")){const o=r.replace("?","");t.push(o),n.push(o)}else t.push(r)}),e?.includes("*?")?(t.push("*"),n.push("*")):e?.includes("*")&&t.push("*"),[t,n]}function rnr(e){return e?.replace(/\*\??\//g,"")}function onr(e){return typeof e=="string"?`/${e}`:e}function snr(e){return!!(e&&typeof e=="object"&&"$spec"in e)}function KSn(e){return!!(e&&typeof e=="object")}function wje(e){return typeof e.serializeState=="function"}function anr(e,t){for(const[n,i]of t.entries())e.append(n,i);return e}function lnr(e){const t=tli();return I.useMemo(()=>e.$deserializeParams(t),[e,t])}var cnr=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};function iy(e,t){const n=I.useMemo(()=>{},[e,t]),[i,r]=nci(n),o=I.useMemo(()=>e.$deserializeSearchParams(i),[e,i]),s=I.useCallback((a,l={})=>{var{state:c,untypedSearchParams:u}=l,d=cnr(l,["state","untypedSearchParams"]);r(h=>e.$serializeSearchParams({searchParams:typeof a=="function"?a(e.$deserializeSearchParams(h)):a,untypedSearchParams:u?h:void 0}),Object.assign(Object.assign({},c?{state:e.$buildState({state:c})}:{}),d))},[e,r]);return[o,s]}var Dl;(function(e){e.assertEqual=r=>{};function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{const o={};for(const s of r)o[s]=s;return o},e.getValidEnumValues=r=>{const o=e.objectKeys(r).filter(a=>typeof r[r[a]]!="number"),s={};for(const a of o)s[a]=r[a];return e.objectValues(s)},e.objectValues=r=>e.objectKeys(r).map(function(o){return r[o]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const o=[];for(const s in r)Object.prototype.hasOwnProperty.call(r,s)&&o.push(s);return o},e.find=(r,o)=>{for(const s of r)if(o(s))return s},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function i(r,o=" | "){return r.map(s=>typeof s=="string"?`'${s}'`:s).join(o)}e.joinValues=i,e.jsonStringifyReplacer=(r,o)=>typeof o=="bigint"?o.toString():o})(Dl||(Dl={}));var RFt;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(RFt||(RFt={}));var lo=Dl.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),vI=e=>{switch(typeof e){case"undefined":return lo.undefined;case"string":return lo.string;case"number":return Number.isNaN(e)?lo.nan:lo.number;case"boolean":return lo.boolean;case"function":return lo.function;case"bigint":return lo.bigint;case"symbol":return lo.symbol;case"object":return Array.isArray(e)?lo.array:e===null?lo.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?lo.promise:typeof Map<"u"&&e instanceof Map?lo.map:typeof Set<"u"&&e instanceof Set?lo.set:typeof Date<"u"&&e instanceof Date?lo.date:lo.object;default:return lo.unknown}},nr=Dl.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),F2=class YSn extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(o){return o.message},i={_errors:[]},r=o=>{for(const s of o.issues)if(s.code==="invalid_union")s.unionErrors.map(r);else if(s.code==="invalid_return_type")r(s.returnTypeError);else if(s.code==="invalid_arguments")r(s.argumentsError);else if(s.path.length===0)i._errors.push(n(s));else{let a=i,l=0;for(;l<s.path.length;){const c=s.path[l];l===s.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(n(s))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return r(this),i}static assert(t){if(!(t instanceof YSn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Dl.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n=Object.create(null),i=[];for(const r of this.issues)if(r.path.length>0){const o=r.path[0];n[o]=n[o]||[],n[o].push(t(r))}else i.push(t(r));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}};F2.create=e=>new F2(e);var unr=(e,t)=>{let n;switch(e.code){case nr.invalid_type:e.received===lo.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case nr.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Dl.jsonStringifyReplacer)}`;break;case nr.unrecognized_keys:n=`Unrecognized key(s) in object: ${Dl.joinValues(e.keys,", ")}`;break;case nr.invalid_union:n="Invalid input";break;case nr.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Dl.joinValues(e.options)}`;break;case nr.invalid_enum_value:n=`Invalid enum value. Expected ${Dl.joinValues(e.options)}, received '${e.received}'`;break;case nr.invalid_arguments:n="Invalid function arguments";break;case nr.invalid_return_type:n="Invalid function return type";break;case nr.invalid_date:n="Invalid date";break;case nr.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Dl.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case nr.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case nr.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case nr.custom:n="Invalid input";break;case nr.invalid_intersection_types:n="Intersection results could not be merged";break;case nr.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case nr.not_finite:n="Number must be finite";break;default:n=t.defaultError,Dl.assertNever(e)}return{message:n}},Cje=unr,dnr=Cje;function hnr(){return dnr}var fnr=e=>{const{data:t,path:n,errorMaps:i,issueData:r}=e,o=[...n,...r.path||[]],s={...r,path:o};if(r.message!==void 0)return{...r,path:o,message:r.message};let a="";const l=i.filter(c=>!!c).slice().reverse();for(const c of l)a=c(s,{data:t,defaultError:a}).message;return{...r,path:o,message:a}};function jr(e,t){const n=hnr(),i=fnr({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Cje?void 0:Cje].filter(r=>!!r)});e.common.issues.push(i)}var OC=class QSn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const i=[];for(const r of n){if(r.status==="aborted")return Ns;r.status==="dirty"&&t.dirty(),i.push(r.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){const i=[];for(const r of n){const o=await r.key,s=await r.value;i.push({key:o,value:s})}return QSn.mergeObjectSync(t,i)}static mergeObjectSync(t,n){const i={};for(const r of n){const{key:o,value:s}=r;if(o.status==="aborted"||s.status==="aborted")return Ns;o.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof s.value<"u"||r.alwaysSet)&&(i[o.value]=s.value)}return{status:t.value,value:i}}},Ns=Object.freeze({status:"aborted"}),dU=e=>({status:"dirty",value:e}),Nw=e=>({status:"valid",value:e}),FFt=e=>e.status==="aborted",BFt=e=>e.status==="dirty",X9=e=>e.status==="valid",_fe=e=>typeof Promise<"u"&&e instanceof Promise,yo;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(yo||(yo={}));var aN=class{constructor(e,t,n,i){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},jFt=(e,t)=>{if(X9(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new F2(e.common.issues);return this._error=n,this._error}}};function Ea(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:i,description:r}=e;if(t&&(n||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(s,a)=>{const{message:l}=e;return s.code==="invalid_enum_value"?{message:l??a.defaultError}:typeof a.data>"u"?{message:l??i??a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:l??n??a.defaultError}},description:r}}var wl=class{get description(){return this._def.description}_getType(e){return vI(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:vI(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new OC,ctx:{common:e.parent.common,data:e.data,parsedType:vI(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(_fe(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){const n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:vI(e)},i=this._parseSync({data:e,path:n.path,parent:n});return jFt(n,i)}"~validate"(e){const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:vI(e)};if(!this["~standard"].async)try{const n=this._parseSync({data:e,path:[],parent:t});return X9(n)?{value:n.value}:{issues:t.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(n=>X9(n)?{value:n.value}:{issues:t.common.issues})}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:vI(e)},i=this._parse({data:e,path:n.path,parent:n}),r=await(_fe(i)?i:Promise.resolve(i));return jFt(n,r)}refine(e,t){const n=i=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(i):t;return this._refinement((i,r)=>{const o=e(i),s=()=>r.addIssue({code:nr.custom,...n(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(a=>a?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(e,t){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeof t=="function"?t(n,i):t),!1))}_refinement(e){return new e7({schema:this,typeName:Ms.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return ND.create(this,this._def)}nullable(){return t7.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return J9.create(this)}promise(){return Sfe.create(this,this._def)}or(e){return wfe.create([this,e],this._def)}and(e){return Cfe.create(this,e,this._def)}transform(e){return new e7({...Ea(this._def),schema:this,typeName:Ms.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new Nje({...Ea(this._def),innerType:this,defaultValue:t,typeName:Ms.ZodDefault})}brand(){return new Rnr({typeName:Ms.ZodBranded,type:this,...Ea(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new Pje({...Ea(this._def),innerType:this,catchValue:t,typeName:Ms.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return Fnr.create(this,e)}readonly(){return Mje.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},pnr=/^c[^\s-]{8,}$/i,gnr=/^[0-9a-z]+$/,mnr=/^[0-9A-HJKMNP-TV-Z]{26}$/i,vnr=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ynr=/^[a-z0-9_-]{21}$/i,bnr=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,_nr=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?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0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Anr=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Dnr=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Tnr=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ZSn="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",knr=new RegExp(`^${ZSn}$`);function XSn(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Inr(e){return new RegExp(`^${XSn(e)}$`)}function Lnr(e){let t=`${ZSn}T${XSn(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Nnr(e,t){return!!((t==="v4"||!t)&&Snr.test(e)||(t==="v6"||!t)&&Enr.test(e))}function Pnr(e,t){if(!bnr.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(i));return!(typeof r!="object"||r===null||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}function Mnr(e,t){return!!((t==="v4"||!t)&&xnr.test(e)||(t==="v6"||!t)&&Anr.test(e))}var Sje=class hU extends wl{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==lo.string){const o=this._getOrReturnCtx(t);return jr(o,{code:nr.invalid_type,expected:lo.string,received:o.parsedType}),Ns}const i=new OC;let r;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(r=this._getOrReturnCtx(t,r),jr(r,{code:nr.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="max")t.data.length>o.value&&(r=this._getOrReturnCtx(t,r),jr(r,{code:nr.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="length"){const s=t.data.length>o.value,a=t.data.length<o.value;(s||a)&&(r=this._getOrReturnCtx(t,r),s?jr(r,{code:nr.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):a&&jr(r,{code:nr.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if(o.kind==="email")wnr.test(t.data)||(r=this._getOrReturnCtx(t,r),jr(r,{validation:"email",code:nr.invalid_string,message:o.message}),i.dirty());else if(o.kind==="emoji")oOe||(oOe=new RegExp(Cnr,"u")),oOe.test(t.data)||(r=this._getOrReturnCtx(t,r),jr(r,{validation:"emoji",code:nr.invalid_string,message:o.message}),i.dirty());else if(o.kind==="uuid")vnr.test(t.data)||(r=this._getOrReturnCtx(t,r),jr(r,{validation:"uuid",code:nr.invalid_string,message:o.message}),i.dirty());else if(o.kind==="nanoid")ynr.test(t.data)||(r=this._getOrReturnCtx(t,r),jr(r,{validation:"nanoid",code:nr.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid")pnr.test(t.data)||(r=this._getOrReturnCtx(t,r),jr(r,{validation:"cuid",code:nr.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid2")gnr.test(t.data)||(r=this._getOrReturnCtx(t,r),jr(r,{validation:"cuid2",code:nr.invalid_string,message:o.message}),i.dirty());else if(o.kind==="ulid")mnr.test(t.data)||(r=this._getOrReturnCtx(t,r),jr(r,{validation:"ulid",code:nr.invalid_string,message:o.message}),i.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),jr(r,{validation:"url",code:nr.invalid_string,message:o.message}),i.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),jr(r,{validation:"regex",code:nr.invalid_string,message:o.message}),i.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(r=this._getOrReturnCtx(t,r),jr(r,{code:nr.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(r=this._getOrReturnCtx(t,r),jr(r,{code:nr.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(r=this._getOrReturnCtx(t,r),jr(r,{code:nr.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty()):o.kind==="datetime"?Lnr(o).test(t.data)||(r=this._getOrReturnCtx(t,r),jr(r,{code:nr.invalid_string,validation:"datetime",message:o.message}),i.dirty()):o.kind==="date"?knr.test(t.data)||(r=this._getOrReturnCtx(t,r),jr(r,{code:nr.invalid_string,validation:"date",message:o.message}),i.dirty()):o.kind==="time"?Inr(o).test(t.data)||(r=this._getOrReturnCtx(t,r),jr(r,{code:nr.invalid_string,validation:"time",message:o.message}),i.dirty()):o.kind==="duration"?_nr.test(t.data)||(r=this._getOrReturnCtx(t,r),jr(r,{validation:"duration",code:nr.invalid_string,message:o.message}),i.dirty()):o.kind==="ip"?Nnr(t.data,o.version)||(r=this._getOrReturnCtx(t,r),jr(r,{validation:"ip",code:nr.invalid_string,message:o.message}),i.dirty()):o.kind==="jwt"?Pnr(t.data,o.alg)||(r=this._getOrReturnCtx(t,r),jr(r,{validation:"jwt",code:nr.invalid_string,message:o.message}),i.dirty()):o.kind==="cidr"?Mnr(t.data,o.version)||(r=this._getOrReturnCtx(t,r),jr(r,{validation:"cidr",code:nr.invalid_string,message:o.message}),i.dirty()):o.kind==="base64"?Dnr.test(t.data)||(r=this._getOrReturnCtx(t,r),jr(r,{validation:"base64",code:nr.invalid_string,message:o.message}),i.dirty()):o.kind==="base64url"?Tnr.test(t.data)||(r=this._getOrReturnCtx(t,r),jr(r,{validation:"base64url",code:nr.invalid_string,message:o.message}),i.dirty()):Dl.assertNever(o);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(r=>t.test(r),{validation:n,code:nr.invalid_string,...yo.errToObj(i)})}_addCheck(t){return new hU({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...yo.errToObj(t)})}url(t){return this._addCheck({kind:"url",...yo.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...yo.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...yo.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...yo.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...yo.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...yo.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...yo.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...yo.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...yo.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...yo.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...yo.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...yo.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...yo.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...yo.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...yo.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...yo.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...yo.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...yo.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...yo.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...yo.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...yo.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...yo.errToObj(n)})}nonempty(t){return this.min(1,yo.errToObj(t))}trim(){return new hU({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new hU({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new hU({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};Sje.create=e=>new Sje({checks:[],typeName:Ms.ZodString,coerce:e?.coerce??!1,...Ea(e)});function Onr(e,t){const n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,r=n>i?n:i,o=Number.parseInt(e.toFixed(r).replace(".","")),s=Number.parseInt(t.toFixed(r).replace(".",""));return o%s/10**r}var xje=class Eje extends wl{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==lo.number){const o=this._getOrReturnCtx(t);return jr(o,{code:nr.invalid_type,expected:lo.number,received:o.parsedType}),Ns}let i;const r=new OC;for(const o of this._def.checks)o.kind==="int"?Dl.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),jr(i,{code:nr.invalid_type,expected:"integer",received:"float",message:o.message}),r.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),jr(i,{code:nr.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),jr(i,{code:nr.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind==="multipleOf"?Onr(t.data,o.value)!==0&&(i=this._getOrReturnCtx(t,i),jr(i,{code:nr.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),jr(i,{code:nr.not_finite,message:o.message}),r.dirty()):Dl.assertNever(o);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,yo.toString(n))}gt(t,n){return this.setLimit("min",t,!1,yo.toString(n))}lte(t,n){return this.setLimit("max",t,!0,yo.toString(n))}lt(t,n){return this.setLimit("max",t,!1,yo.toString(n))}setLimit(t,n,i,r){return new Eje({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:yo.toString(r)}]})}_addCheck(t){return new Eje({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:yo.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:yo.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:yo.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:yo.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:yo.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:yo.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:yo.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:yo.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:yo.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Dl.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(n)&&Number.isFinite(t)}};xje.create=e=>new xje({checks:[],typeName:Ms.ZodNumber,coerce:e?.coerce||!1,...Ea(e)});var zFt=class Aje extends wl{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==lo.bigint)return this._getInvalidInput(t);let i;const r=new OC;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),jr(i,{code:nr.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),jr(i,{code:nr.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),jr(i,{code:nr.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):Dl.assertNever(o);return{status:r.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return jr(n,{code:nr.invalid_type,expected:lo.bigint,received:n.parsedType}),Ns}gte(t,n){return this.setLimit("min",t,!0,yo.toString(n))}gt(t,n){return this.setLimit("min",t,!1,yo.toString(n))}lte(t,n){return this.setLimit("max",t,!0,yo.toString(n))}lt(t,n){return this.setLimit("max",t,!1,yo.toString(n))}setLimit(t,n,i,r){return new Aje({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:yo.toString(r)}]})}_addCheck(t){return new Aje({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:yo.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:yo.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:yo.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:yo.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:yo.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};zFt.create=e=>new zFt({checks:[],typeName:Ms.ZodBigInt,coerce:e?.coerce??!1,...Ea(e)});var Dje=class extends wl{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==lo.boolean){const n=this._getOrReturnCtx(e);return jr(n,{code:nr.invalid_type,expected:lo.boolean,received:n.parsedType}),Ns}return Nw(e.data)}};Dje.create=e=>new Dje({typeName:Ms.ZodBoolean,coerce:e?.coerce||!1,...Ea(e)});var Tje=class JSn extends wl{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==lo.date){const o=this._getOrReturnCtx(t);return jr(o,{code:nr.invalid_type,expected:lo.date,received:o.parsedType}),Ns}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return jr(o,{code:nr.invalid_date}),Ns}const i=new OC;let r;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(r=this._getOrReturnCtx(t,r),jr(r,{code:nr.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),i.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(r=this._getOrReturnCtx(t,r),jr(r,{code:nr.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),i.dirty()):Dl.assertNever(o);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new JSn({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:yo.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:yo.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};Tje.create=e=>new Tje({checks:[],coerce:e?.coerce||!1,typeName:Ms.ZodDate,...Ea(e)});var VFt=class extends wl{_parse(e){if(this._getType(e)!==lo.symbol){const n=this._getOrReturnCtx(e);return jr(n,{code:nr.invalid_type,expected:lo.symbol,received:n.parsedType}),Ns}return Nw(e.data)}};VFt.create=e=>new VFt({typeName:Ms.ZodSymbol,...Ea(e)});var HFt=class extends wl{_parse(e){if(this._getType(e)!==lo.undefined){const n=this._getOrReturnCtx(e);return jr(n,{code:nr.invalid_type,expected:lo.undefined,received:n.parsedType}),Ns}return Nw(e.data)}};HFt.create=e=>new HFt({typeName:Ms.ZodUndefined,...Ea(e)});var WFt=class extends wl{_parse(e){if(this._getType(e)!==lo.null){const n=this._getOrReturnCtx(e);return jr(n,{code:nr.invalid_type,expected:lo.null,received:n.parsedType}),Ns}return Nw(e.data)}};WFt.create=e=>new WFt({typeName:Ms.ZodNull,...Ea(e)});var UFt=class extends wl{constructor(){super(...arguments),this._any=!0}_parse(e){return Nw(e.data)}};UFt.create=e=>new UFt({typeName:Ms.ZodAny,...Ea(e)});var $Ft=class extends wl{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Nw(e.data)}};$Ft.create=e=>new $Ft({typeName:Ms.ZodUnknown,...Ea(e)});var lN=class extends wl{_parse(e){const t=this._getOrReturnCtx(e);return jr(t,{code:nr.invalid_type,expected:lo.never,received:t.parsedType}),Ns}};lN.create=e=>new lN({typeName:Ms.ZodNever,...Ea(e)});var qFt=class extends wl{_parse(e){if(this._getType(e)!==lo.undefined){const n=this._getOrReturnCtx(e);return jr(n,{code:nr.invalid_type,expected:lo.void,received:n.parsedType}),Ns}return Nw(e.data)}};qFt.create=e=>new qFt({typeName:Ms.ZodVoid,...Ea(e)});var J9=class Ice extends wl{_parse(t){const{ctx:n,status:i}=this._processInputParams(t),r=this._def;if(n.parsedType!==lo.array)return jr(n,{code:nr.invalid_type,expected:lo.array,received:n.parsedType}),Ns;if(r.exactLength!==null){const s=n.data.length>r.exactLength.value,a=n.data.length<r.exactLength.value;(s||a)&&(jr(n,{code:s?nr.too_big:nr.too_small,minimum:a?r.exactLength.value:void 0,maximum:s?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),i.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(jr(n,{code:nr.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),i.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(jr(n,{code:nr.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((s,a)=>r.type._parseAsync(new aN(n,s,n.path,a)))).then(s=>OC.mergeArray(i,s));const o=[...n.data].map((s,a)=>r.type._parseSync(new aN(n,s,n.path,a)));return OC.mergeArray(i,o)}get element(){return this._def.type}min(t,n){return new Ice({...this._def,minLength:{value:t,message:yo.toString(n)}})}max(t,n){return new Ice({...this._def,maxLength:{value:t,message:yo.toString(n)}})}length(t,n){return new Ice({...this._def,exactLength:{value:t,message:yo.toString(n)}})}nonempty(t){return this.min(1,t)}};J9.create=(e,t)=>new J9({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ms.ZodArray,...Ea(t)});function QB(e){if(e instanceof cN){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=ND.create(QB(i))}return new cN({...e._def,shape:()=>t})}else return e instanceof J9?new J9({...e._def,type:QB(e.element)}):e instanceof ND?ND.create(QB(e.unwrap())):e instanceof t7?t7.create(QB(e.unwrap())):e instanceof dK?dK.create(e.items.map(t=>QB(t))):e}var cN=class y1 extends wl{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Dl.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==lo.object){const c=this._getOrReturnCtx(t);return jr(c,{code:nr.invalid_type,expected:lo.object,received:c.parsedType}),Ns}const{status:i,ctx:r}=this._processInputParams(t),{shape:o,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof lN&&this._def.unknownKeys==="strip"))for(const c in r.data)s.includes(c)||a.push(c);const l=[];for(const c of s){const u=o[c],d=r.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new aN(r,d,r.path,c)),alwaysSet:c in r.data})}if(this._def.catchall instanceof lN){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:r.data[u]}});else if(c==="strict")a.length>0&&(jr(r,{code:nr.unrecognized_keys,keys:a}),i.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const d=r.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new aN(r,d,r.path,u)),alwaysSet:u in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key,h=await u.value;c.push({key:d,value:h,alwaysSet:u.alwaysSet})}return c}).then(c=>OC.mergeObjectSync(i,c)):OC.mergeObjectSync(i,l)}get shape(){return this._def.shape()}strict(t){return yo.errToObj,new y1({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,i)=>{const r=this._def.errorMap?.(n,i).message??i.defaultError;return n.code==="unrecognized_keys"?{message:yo.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new y1({...this._def,unknownKeys:"strip"})}passthrough(){return new y1({...this._def,unknownKeys:"passthrough"})}extend(t){return new y1({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new y1({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ms.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new y1({...this._def,catchall:t})}pick(t){const n={};for(const i of Dl.objectKeys(t))t[i]&&this.shape[i]&&(n[i]=this.shape[i]);return new y1({...this._def,shape:()=>n})}omit(t){const n={};for(const i of Dl.objectKeys(this.shape))t[i]||(n[i]=this.shape[i]);return new y1({...this._def,shape:()=>n})}deepPartial(){return QB(this)}partial(t){const n={};for(const i of Dl.objectKeys(this.shape)){const r=this.shape[i];t&&!t[i]?n[i]=r:n[i]=r.optional()}return new y1({...this._def,shape:()=>n})}required(t){const n={};for(const i of Dl.objectKeys(this.shape))if(t&&!t[i])n[i]=this.shape[i];else{let o=this.shape[i];for(;o instanceof ND;)o=o._def.innerType;n[i]=o}return new y1({...this._def,shape:()=>n})}keyof(){return txn(Dl.objectKeys(this.shape))}};cN.create=(e,t)=>new cN({shape:()=>e,unknownKeys:"strip",catchall:lN.create(),typeName:Ms.ZodObject,...Ea(t)});cN.strictCreate=(e,t)=>new cN({shape:()=>e,unknownKeys:"strict",catchall:lN.create(),typeName:Ms.ZodObject,...Ea(t)});cN.lazycreate=(e,t)=>new cN({shape:e,unknownKeys:"strip",catchall:lN.create(),typeName:Ms.ZodObject,...Ea(t)});var wfe=class extends wl{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;function i(r){for(const s of r)if(s.result.status==="valid")return s.result;for(const s of r)if(s.result.status==="dirty")return t.common.issues.push(...s.ctx.common.issues),s.result;const o=r.map(s=>new F2(s.ctx.common.issues));return jr(t,{code:nr.invalid_union,unionErrors:o}),Ns}if(t.common.async)return Promise.all(n.map(async r=>{const o={...t,common:{...t.common,issues:[]},parent:null};return{result:await r._parseAsync({data:t.data,path:t.path,parent:o}),ctx:o}})).then(i);{let r;const o=[];for(const a of n){const l={...t,common:{...t.common,issues:[]},parent:null},c=a._parseSync({data:t.data,path:t.path,parent:l});if(c.status==="valid")return c;c.status==="dirty"&&!r&&(r={result:c,ctx:l}),l.common.issues.length&&o.push(l.common.issues)}if(r)return t.common.issues.push(...r.ctx.common.issues),r.result;const s=o.map(a=>new F2(a));return jr(t,{code:nr.invalid_union,unionErrors:s}),Ns}}get options(){return this._def.options}};wfe.create=(e,t)=>new wfe({options:e,typeName:Ms.ZodUnion,...Ea(t)});function kje(e,t){const n=vI(e),i=vI(t);if(e===t)return{valid:!0,data:e};if(n===lo.object&&i===lo.object){const r=Dl.objectKeys(t),o=Dl.objectKeys(e).filter(a=>r.indexOf(a)!==-1),s={...e,...t};for(const a of o){const l=kje(e[a],t[a]);if(!l.valid)return{valid:!1};s[a]=l.data}return{valid:!0,data:s}}else if(n===lo.array&&i===lo.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let o=0;o<e.length;o++){const s=e[o],a=t[o],l=kje(s,a);if(!l.valid)return{valid:!1};r.push(l.data)}return{valid:!0,data:r}}else return n===lo.date&&i===lo.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Cfe=class extends wl{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=(r,o)=>{if(FFt(r)||FFt(o))return Ns;const s=kje(r.value,o.value);return s.valid?((BFt(r)||BFt(o))&&t.dirty(),{status:t.value,value:s.data}):(jr(n,{code:nr.invalid_intersection_types}),Ns)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([r,o])=>i(r,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Cfe.create=(e,t,n)=>new Cfe({left:e,right:t,typeName:Ms.ZodIntersection,...Ea(n)});var dK=class exn extends wl{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==lo.array)return jr(i,{code:nr.invalid_type,expected:lo.array,received:i.parsedType}),Ns;if(i.data.length<this._def.items.length)return jr(i,{code:nr.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ns;!this._def.rest&&i.data.length>this._def.items.length&&(jr(i,{code:nr.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...i.data].map((s,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new aN(i,s,i.path,a)):null}).filter(s=>!!s);return i.common.async?Promise.all(o).then(s=>OC.mergeArray(n,s)):OC.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new exn({...this._def,rest:t})}};dK.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new dK({items:e,typeName:Ms.ZodTuple,rest:null,...Ea(t)})};var GFt=class extends wl{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==lo.map)return jr(n,{code:nr.invalid_type,expected:lo.map,received:n.parsedType}),Ns;const i=this._def.keyType,r=this._def.valueType,o=[...n.data.entries()].map(([s,a],l)=>({key:i._parse(new aN(n,s,n.path,[l,"key"])),value:r._parse(new aN(n,a,n.path,[l,"value"]))}));if(n.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const a of o){const l=await a.key,c=await a.value;if(l.status==="aborted"||c.status==="aborted")return Ns;(l.status==="dirty"||c.status==="dirty")&&t.dirty(),s.set(l.value,c.value)}return{status:t.value,value:s}})}else{const s=new Map;for(const a of o){const l=a.key,c=a.value;if(l.status==="aborted"||c.status==="aborted")return Ns;(l.status==="dirty"||c.status==="dirty")&&t.dirty(),s.set(l.value,c.value)}return{status:t.value,value:s}}}};GFt.create=(e,t,n)=>new GFt({valueType:t,keyType:e,typeName:Ms.ZodMap,...Ea(n)});var KFt=class Ije extends wl{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==lo.set)return jr(i,{code:nr.invalid_type,expected:lo.set,received:i.parsedType}),Ns;const r=this._def;r.minSize!==null&&i.data.size<r.minSize.value&&(jr(i,{code:nr.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&i.data.size>r.maxSize.value&&(jr(i,{code:nr.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());const o=this._def.valueType;function s(l){const c=new Set;for(const u of l){if(u.status==="aborted")return Ns;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const a=[...i.data.values()].map((l,c)=>o._parse(new aN(i,l,i.path,c)));return i.common.async?Promise.all(a).then(l=>s(l)):s(a)}min(t,n){return new Ije({...this._def,minSize:{value:t,message:yo.toString(n)}})}max(t,n){return new Ije({...this._def,maxSize:{value:t,message:yo.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};KFt.create=(e,t)=>new KFt({valueType:e,minSize:null,maxSize:null,typeName:Ms.ZodSet,...Ea(t)});var YFt=class extends wl{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};YFt.create=(e,t)=>new YFt({getter:e,typeName:Ms.ZodLazy,...Ea(t)});var QFt=class extends wl{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return jr(t,{received:t.data,code:nr.invalid_literal,expected:this._def.value}),Ns}return{status:"valid",value:e.data}}get value(){return this._def.value}};QFt.create=(e,t)=>new QFt({value:e,typeName:Ms.ZodLiteral,...Ea(t)});function txn(e,t){return new rXe({values:e,typeName:Ms.ZodEnum,...Ea(t)})}var rXe=class Lje extends wl{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),i=this._def.values;return jr(n,{expected:Dl.joinValues(i),received:n.parsedType,code:nr.invalid_type}),Ns}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),i=this._def.values;return jr(n,{received:n.data,code:nr.invalid_enum_value,options:i}),Ns}return Nw(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Lje.create(t,{...this._def,...n})}exclude(t,n=this._def){return Lje.create(this.options.filter(i=>!t.includes(i)),{...this._def,...n})}};rXe.create=txn;var ZFt=class extends wl{_parse(e){const t=Dl.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==lo.string&&n.parsedType!==lo.number){const i=Dl.objectValues(t);return jr(n,{expected:Dl.joinValues(i),received:n.parsedType,code:nr.invalid_type}),Ns}if(this._cache||(this._cache=new Set(Dl.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const i=Dl.objectValues(t);return jr(n,{received:n.data,code:nr.invalid_enum_value,options:i}),Ns}return Nw(e.data)}get enum(){return this._def.values}};ZFt.create=(e,t)=>new ZFt({values:e,typeName:Ms.ZodNativeEnum,...Ea(t)});var Sfe=class extends wl{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==lo.promise&&t.common.async===!1)return jr(t,{code:nr.invalid_type,expected:lo.promise,received:t.parsedType}),Ns;const n=t.parsedType===lo.promise?t.data:Promise.resolve(t.data);return Nw(n.then(i=>this._def.type.parseAsync(i,{path:t.path,errorMap:t.common.contextualErrorMap})))}};Sfe.create=(e,t)=>new Sfe({type:e,typeName:Ms.ZodPromise,...Ea(t)});var e7=class extends wl{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ms.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=this._def.effect||null,r={addIssue:o=>{jr(n,o),o.fatal?t.abort():t.dirty()},get path(){return n.path}};if(r.addIssue=r.addIssue.bind(r),i.type==="preprocess"){const o=i.transform(n.data,r);if(n.common.async)return Promise.resolve(o).then(async s=>{if(t.value==="aborted")return Ns;const a=await this._def.schema._parseAsync({data:s,path:n.path,parent:n});return a.status==="aborted"?Ns:a.status==="dirty"||t.value==="dirty"?dU(a.value):a});{if(t.value==="aborted")return Ns;const s=this._def.schema._parseSync({data:o,path:n.path,parent:n});return s.status==="aborted"?Ns:s.status==="dirty"||t.value==="dirty"?dU(s.value):s}}if(i.type==="refinement"){const o=s=>{const a=i.refinement(s,r);if(n.common.async)return Promise.resolve(a);if(a instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(n.common.async===!1){const s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?Ns:(s.status==="dirty"&&t.dirty(),o(s.value),{status:t.value,value:s.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>s.status==="aborted"?Ns:(s.status==="dirty"&&t.dirty(),o(s.value).then(()=>({status:t.value,value:s.value}))))}if(i.type==="transform")if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!X9(o))return Ns;const s=i.transform(o.value,r);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:s}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>X9(o)?Promise.resolve(i.transform(o.value,r)).then(s=>({status:t.value,value:s})):Ns);Dl.assertNever(i)}};e7.create=(e,t,n)=>new e7({schema:e,typeName:Ms.ZodEffects,effect:t,...Ea(n)});e7.createWithPreprocess=(e,t,n)=>new e7({schema:t,effect:{type:"preprocess",transform:e},typeName:Ms.ZodEffects,...Ea(n)});var ND=class extends wl{_parse(e){return this._getType(e)===lo.undefined?Nw(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};ND.create=(e,t)=>new ND({innerType:e,typeName:Ms.ZodOptional,...Ea(t)});var t7=class extends wl{_parse(e){return this._getType(e)===lo.null?Nw(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};t7.create=(e,t)=>new t7({innerType:e,typeName:Ms.ZodNullable,...Ea(t)});var Nje=class extends wl{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===lo.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};Nje.create=(e,t)=>new Nje({innerType:e,typeName:Ms.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ea(t)});var Pje=class extends wl{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return _fe(i)?i.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new F2(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new F2(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Pje.create=(e,t)=>new Pje({innerType:e,typeName:Ms.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ea(t)});var XFt=class extends wl{_parse(e){if(this._getType(e)!==lo.nan){const n=this._getOrReturnCtx(e);return jr(n,{code:nr.invalid_type,expected:lo.nan,received:n.parsedType}),Ns}return{status:"valid",value:e.data}}};XFt.create=e=>new XFt({typeName:Ms.ZodNaN,...Ea(e)});var Rnr=class extends wl{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},Fnr=class nxn extends wl{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?Ns:o.status==="dirty"?(n.dirty(),dU(o.value)):this._def.out._parseAsync({data:o.value,path:i.path,parent:i})})();{const r=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return r.status==="aborted"?Ns:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:i.path,parent:i})}}static create(t,n){return new nxn({in:t,out:n,typeName:Ms.ZodPipeline})}},Mje=class extends wl{_parse(e){const t=this._def.innerType._parse(e),n=i=>(X9(i)&&(i.value=Object.freeze(i.value)),i);return _fe(t)?t.then(i=>n(i)):n(t)}unwrap(){return this._def.innerType}};Mje.create=(e,t)=>new Mje({innerType:e,typeName:Ms.ZodReadonly,...Ea(t)});var Ms;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ms||(Ms={}));lN.create;J9.create;wfe.create;Cfe.create;dK.create;rXe.create;Sfe.create;ND.create;t7.create;function Bnr({parserFactory:e}){function t(n,i){const r=n instanceof CQ||n instanceof ND?n.unwrap():n;let o="unknown";return r instanceof ws&&r.def.type==="string"||r instanceof Sje?o="string":r instanceof ws&&r.def.type==="number"||r instanceof xje?o="number":r instanceof ws&&r.def.type==="boolean"||r instanceof Dje?o="boolean":(r instanceof ws&&r.def.type==="date"||r instanceof Tje)&&(o="date"),Ktr(s=>n.parse(s),i??e(o))}return{zod:t}}var{zod:dH}=Bnr({parserFactory:WSn}),sOe=on(y2n(),1);function jnr(e){return e.max[0]-e.min[0]}function znr(e){return e.max[1]-e.min[1]}function Vnr(e){return[jnr(e),znr(e)]}function Hnr(e){if(e.length===0)return new mc;if(e.length===1)return e[0];const t=new mc;t.setMinMax(e[0].min,e[0].max);for(let n=1;n<e.length;n++){const i=e[n];t.setMinMax([Math.min(t.min[0],i.min[0]),Math.min(t.min[1],i.min[1]),Math.min(t.min[2],i.min[2])],[Math.max(t.max[0],i.max[0]),Math.max(t.max[1],i.max[1]),Math.max(t.max[2],i.max[2])])}return t}var Wnr=class ixn extends ny{static defaultOptions={animation:!0,enable:t=>["node","combo"].includes(t.targetType),dropEffect:"move",state:"selected",hideEdge:"none",shadow:!1,shadowZIndex:100,shadowFill:"#F3F9FF",shadowFillOpacity:.5,shadowStroke:"#1890FF",shadowStrokeOpacity:.9,shadowLineDash:[5,5],cursor:{default:"default",grab:"grab",grabbing:"grabbing"}};enable=!1;enableElements=["node","combo"];target=[];shadow;shadowOrigin=[0,0];hiddenEdges=[];isDragging=!1;constructor(t,n){super(t,Object.assign({},ixn.defaultOptions,n)),this.onDragStart=this.onDragStart.bind(this),this.onDrag=this.onDrag.bind(this),this.onDragEnd=this.onDragEnd.bind(this),this.onDrop=this.onDrop.bind(this),this.bindEvents()}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}bindEvents(){const{graph:t,canvas:n}=this.context,r=n.getLayer().getContextService().$canvas;r&&(r.addEventListener("blur",this.onDragEnd),r.addEventListener("contextmenu",this.onDragEnd)),this.enableElements.forEach(o=>{t.on(`${o}:${Rn.DRAG_START}`,this.onDragStart),t.on(`${o}:${Rn.DRAG}`,this.onDrag),t.on(`${o}:${Rn.DRAG_END}`,this.onDragEnd),t.on(`${o}:${Rn.POINTER_ENTER}`,this.setCursor),t.on(`${o}:${Rn.POINTER_LEAVE}`,this.setCursor)}),["link"].includes(this.options.dropEffect)&&(t.on(_x.DROP,this.onDrop),t.on(sOe.CanvasEvent.DROP,this.onDrop))}getSelectedNodeIDs(t){return this.context.graph.getElementData(t).some(i=>!i.states?.includes(this.options.state))?t:Array.from(new Set(this.context.graph.getElementDataByState("node",this.options.state).map(i=>i.id).concat(t)))}getDelta(t){const n=this.context.graph.getZoom();return[t.dx/n,t.dy/n]}onDragStart(t){if(this.enable=this.validate(t),!this.enable)return;const{batch:n,canvas:i}=this.context;i.setCursor(this.options.cursor?.grabbing||"grabbing"),this.isDragging=!0,n.startBatch(),this.target=this.getSelectedNodeIDs([t.target.id]),this.hideEdge(),this.context.graph.frontElement(this.target),this.options.shadow&&this.createShadow(this.target)}onDrag(t){if(!this.enable)return;const n=this.getDelta(t);this.options.shadow?this.moveShadow(n):this.moveElement(this.target,n)}onDragEnd(){if(this.enable=!1,this.options.shadow){if(!this.shadow)return;this.shadow.style.visibility="hidden";const{x:i=0,y:r=0}=this.shadow.attributes,[o,s]=[+i-this.shadowOrigin[0],+r-this.shadowOrigin[1]];this.moveElement(this.target,[o,s])}this.showEdges(),this.options.onFinish?.(this.target);const{batch:t,canvas:n}=this.context;t.endBatch(),n.setCursor(this.options.cursor?.grab||"grab"),this.isDragging=!1,this.target=[]}onDrop=async t=>{if(this.options.dropEffect!=="link")return;const{model:n,element:i}=this.context,r=t.target.id;this.target.forEach(o=>{const s=n.getParentData(o,sOe.COMBO_KEY);s&&an(s)===r&&n.refreshComboData(r),n.setParent(o,r,sOe.COMBO_KEY)}),await i?.draw({animation:!0})?.finished};setCursor=t=>{if(this.isDragging)return;const{type:n}=t,{canvas:i}=this.context,{cursor:r}=this.options;n===Rn.POINTER_ENTER?i.setCursor(r?.grab||"grab"):i.setCursor(r?.default||"default")};validate(t){if(this.destroyed)return!1;const{enable:n}=this.options;return typeof n=="function"?n(t):!!n}async moveElement(t,n){const{graph:i,model:r}=this.context,{dropEffect:o}=this.options;o==="move"&&t.forEach(s=>r.refreshComboData(s)),i.translateElementBy(Object.fromEntries(t.map(s=>[s,n])),!1)}moveShadow(t){if(!this.shadow)return;const{x:n=0,y:i=0}=this.shadow.attributes,[r,o]=t;this.shadow.attr({x:+n+r,y:+i+o})}createShadow(t){const n=iu(this.options,"shadow"),i=Hnr(t.map(c=>this.context.element.getElement(c).getBounds())),[r,o]=i.min;this.shadowOrigin=[r,o];const[s,a]=Vnr(i),l={width:s,height:a,x:r,y:o};this.shadow?this.shadow.attr({...n,...l,visibility:"visible"}):(this.shadow=new kp({style:{$layer:"transient",...n,...l,pointerEvents:"none"}}),this.context.canvas.appendChild(this.shadow))}showEdges(){this.options.shadow||this.hiddenEdges.length===0||(this.context.graph.showElement(this.hiddenEdges),this.hiddenEdges=[])}hideEdge(){const{hideEdge:t,shadow:n}=this.options;if(t==="none"||n)return;const{graph:i}=this.context;t==="all"?this.hiddenEdges=i.getEdgeData().map(an):this.hiddenEdges=Array.from(new Set(this.target.map(r=>i.getRelatedEdgesData(r,t).map(an)).flat())),i.hideElement(this.hiddenEdges)}unbindEvents(){const{graph:t,canvas:n}=this.context,r=n.getLayer().getContextService().$canvas;r&&(r.removeEventListener("blur",this.onDragEnd),r.removeEventListener("contextmenu",this.onDragEnd)),this.enableElements.forEach(o=>{t.off(`${o}:${Rn.DRAG_START}`,this.onDragStart),t.off(`${o}:${Rn.DRAG}`,this.onDrag),t.off(`${o}:${Rn.DRAG_END}`,this.onDragEnd),t.off(`${o}:${Rn.POINTER_ENTER}`,this.setCursor),t.off(`${o}:${Rn.POINTER_LEAVE}`,this.setCursor)}),t.off(`combo:${Rn.DROP}`,this.onDrop),t.off(`canvas:${Rn.DROP}`,this.onDrop)}destroy(){this.unbindEvents(),this.shadow?.destroy(),super.destroy()}};function Unr(){nye(rN.BEHAVIOR,"drag-element-custom",Wnr)}var $nr=on(b2n(),1),qnr=class extends FF{drawBadgeShapes(e,t){this.drawTextBadges(e,t),this.drawImageBadges(e,t)}drawTextBadges(e,t){const n=e.badges.filter(r=>"text"in r),i=iu(e,"badge");Object.keys((0,$nr.subObject)(this.shapeMap,"text-badge-")).forEach(r=>{this.upsert(`text-badge-${r}`,JFt,!1,t)}),n.forEach((r,o)=>{this.upsert(`text-badge-${o}`,JFt,{...i,...r,mainShapeBounds:this.getShape("key").getLocalBounds(),size:i.size??0},t)})}drawImageBadges(e,t){if(!e.badge||e.badges===void 0)return;const n=e.badges.filter(r=>"img"in r||"src"in r);if(n.length===0||!("badgeSize"in e))return;const i=iu(e,"badge");n.forEach((r,o)=>{let s;"src"in r&&typeof r.src=="string"&&(s=r.src),"img"in r&&typeof r.img=="string"&&(s=r.img),s!==void 0&&this.upsert(`image-badge-${o}`,Gnr,{src:s,mainShapeBounds:this.getShape("key").getLocalBounds(),...i,...r},t)})}},JFt=class extends RF{render(e=this.parsedAttributes,t=this){if(e===void 0||t===void 0)return;const n=iu(e,"background"),[i,r]=rxn(e.placement??"left",e.mainShapeBounds);let o=e.fontSize;e.size!==void 0&&e.padding!==void 0&&(o=e.size-Math.max(...oxn(e.padding))),this.upsert("label",tP,{...e,x:i,y:r,text:e.text,textAlign:"center",textBaseline:"middle",fontSize:o},t);const{center:[s,a]}=this.shapeMap.label.getGeometryBounds();this.upsert("background",FF,{...n,x:s,y:a,size:e.size},t)}},Gnr=class extends RF{constructor(e){e.style!==void 0&&super({...e,style:{...e.style??{}}})}render(e,t){const n=iu(e,"background"),i="src"in e?e.src:e.img,r=oxn(e.padding),o=e.size??0,s=typeof o=="number"?o:Math.max(o[0],o[1]),[a,l]=rxn(e.placement??"left",e.mainShapeBounds),c=s-Math.max(...r),[u,d]=[a-c/2,l-c/2];this.upsert("image",Cj,{src:i,x:u,y:d,width:c,height:c},t),this.upsert("background",NC,{cx:a,cy:l,r:s/2,...n,zIndex:-1},t)}};function rxn(e,{min:t,max:n}){const i=e.split("-"),[r,o]=t,[s,a]=n,[l,c,u,d]=[r,o,s,a].map(p=>Math.sign(p)*Math.sqrt(p**2/2)),h=i.includes("left")?0:i.includes("right")?1:.5,f=i.includes("top")?0:i.includes("bottom")?1:.5;return[l+h*(u-l),c+f*(d-c)]}function oxn(e=0){if(Array.isArray(e)){const[t=0,n=t,i=t,r=n]=e;return[t,n,i,r]}return[e,e,e,e]}function Knr(){nye(rN.NODE,"circle-with-image-badge",qnr)}var sxn=I.createContext(void 0);function lZ(){return I.useContext(sxn)}function Ynr({onSingleClick:e,onDoubleClick:t,options:n}){const i=lZ();return I.useEffect(()=>{if(i===void 0)return;let r=null;function o(a){const l=e5t(i,a);if(!(l===void 0||e===void 0||a.detail===2)){if(n?.triggerSingleAndDouble){e(l.id);return}r=setTimeout(()=>{e(l.id),r=null},n?.doubleClickDelay??150)}}function s(a){const l=e5t(i,a);l===void 0||t===void 0||(r!==null&&clearTimeout(r),t(l.id))}return i.on("node:click",o),i.on("node:dblclick",s),()=>{i.off("node:click",o),i.off("node:dblclick",s)}},[i,t,e,n?.doubleClickDelay,n?.triggerSingleAndDouble]),null}function e5t(e,t){const n=t.target;if(!(e===void 0||!("id"in n)))return e.getNodeData().find(i=>i.id===n.id)}function Qnr(e,t,n,i,r){I.useEffect(()=>{if(e===void 0)return;const{nodes:o,edges:s}=e.getData();let a=new Set([]),l=new Set([]);if(t?.nodes!==void 0||t?.edges!==void 0){a=new Set(o.map(({id:u})=>u)),l=new Set(s.map(({id:u})=>u??""));for(const u of t?.nodes??[])a.delete(u);for(const u of t?.edges??[]){l.delete(u);const{source:d,target:h}=e.getElementData(u);typeof d=="string"&&typeof h=="string"&&(a.delete(d),a.delete(h))}for(const u of Array.from(l)){const{source:d,target:h}=e.getElementData(u);typeof d=="string"&&typeof h=="string"&&!a.has(d)&&!a.has(h)&&l.delete(u)}}const c=[...o.map(({id:u,states:d})=>a.has(u)?[u,[...d??[],"disabled"]]:[u,(d??[]).filter(h=>h!=="disabled")]),...s.filter(({id:u})=>u!==void 0).map(({id:u,states:d})=>u!==void 0&&l.has(u)?[u,[...d??[],"disabled"]]:[u,(d??[]).filter(h=>h!=="disabled")])];c.length!==0&&e.setElementState(Object.fromEntries(c))},[n?.edges,n?.nodes,e,t?.edges,t?.nodes]),I.useEffect(()=>{if(e===void 0)return;const o=new Array,s=e.getNodeData().map(({id:a,states:l})=>{const c=new Set(l??[]);return o.push(Znr(c,"selected",a,i)),[a,Array.from(c)]});o.some(a=>a)&&e.setElementState(Object.fromEntries(s))},[e,i]),I.useEffect(()=>{if(e===void 0)return;const o=new Array,s=e.getEdgeData().map(({id:l,source:c,target:u,states:d})=>{if(l===void 0)return;const h=new Set(d??[]),f=e.getNodeData(c),p=e.getNodeData(u),g=new Set([...f.states??[],...p.states??[]]),m=Array.from(i??[]).at(-1);return o.push(Lce(h,"nodeSelected",()=>({isAdd:g.has("selected")&&!h.has("disabled"),isDelete:h.has("disabled")||!g.has("selected")})),Lce(h,"active",()=>({isAdd:!h.has("disabled")&&(m===c||m===u),isDelete:h.has("disabled")||m!==c&&m!==u})),Lce(h,"selected",()=>{const v=r!==void 0&&[...r].some(b=>b.src===c&&b.dst===u),y=h.has("disabled");return{isAdd:!y&&v,isDelete:y||!v}})),[l,Array.from(h)]});if(!o.some(l=>l))return;const a=s.filter(l=>l!==void 0);e.setElementState(Object.fromEntries(a))},[e,i,r])}function Znr(e,t,n,i){return Lce(e,t,()=>({isAdd:i!==void 0&&i.has(n),isDelete:i===void 0||!i.has(n)}))}function Lce(e,t,n){const{isAdd:i,isDelete:r}=n();return i&&!e.has(t)?(e.add(t),!0):r&&e.has(t)?(e.delete(t),!0):!1}function oXe(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function axn(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function cZ(){}var hK=.7,xfe=1/hK,T8="\\s*([+-]?\\d+)\\s*",fK="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",jx="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Xnr=/^#([0-9a-f]{3,8})$/,Jnr=new RegExp(`^rgb\\(${T8},${T8},${T8}\\)$`),eir=new RegExp(`^rgb\\(${jx},${jx},${jx}\\)$`),tir=new RegExp(`^rgba\\(${T8},${T8},${T8},${fK}\\)$`),nir=new RegExp(`^rgba\\(${jx},${jx},${jx},${fK}\\)$`),iir=new RegExp(`^hsl\\(${fK},${jx},${jx}\\)$`),rir=new RegExp(`^hsla\\(${fK},${jx},${jx},${fK}\\)$`),t5t={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};oXe(cZ,n7,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:n5t,formatHex:n5t,formatHex8:oir,formatHsl:sir,formatRgb:i5t,toString:i5t});function n5t(){return this.rgb().formatHex()}function oir(){return this.rgb().formatHex8()}function sir(){return lxn(this).formatHsl()}function i5t(){return this.rgb().formatRgb()}function n7(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Xnr.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?r5t(t):n===3?new T0(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Rre(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Rre(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Jnr.exec(e))?new T0(t[1],t[2],t[3],1):(t=eir.exec(e))?new T0(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=tir.exec(e))?Rre(t[1],t[2],t[3],t[4]):(t=nir.exec(e))?Rre(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=iir.exec(e))?a5t(t[1],t[2]/100,t[3]/100,1):(t=rir.exec(e))?a5t(t[1],t[2]/100,t[3]/100,t[4]):t5t.hasOwnProperty(e)?r5t(t5t[e]):e==="transparent"?new T0(NaN,NaN,NaN,0):null}function r5t(e){return new T0(e>>16&255,e>>8&255,e&255,1)}function Rre(e,t,n,i){return i<=0&&(e=t=n=NaN),new T0(e,t,n,i)}function air(e){return e instanceof cZ||(e=n7(e)),e?(e=e.rgb(),new T0(e.r,e.g,e.b,e.opacity)):new T0}function Oje(e,t,n,i){return arguments.length===1?air(e):new T0(e,t,n,i??1)}function T0(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}oXe(T0,Oje,axn(cZ,{brighter(e){return e=e==null?xfe:Math.pow(xfe,e),new T0(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?hK:Math.pow(hK,e),new T0(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new T0(NR(this.r),NR(this.g),NR(this.b),Efe(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:o5t,formatHex:o5t,formatHex8:lir,formatRgb:s5t,toString:s5t}));function o5t(){return`#${tR(this.r)}${tR(this.g)}${tR(this.b)}`}function lir(){return`#${tR(this.r)}${tR(this.g)}${tR(this.b)}${tR((isNaN(this.opacity)?1:this.opacity)*255)}`}function s5t(){const e=Efe(this.opacity);return`${e===1?"rgb(":"rgba("}${NR(this.r)}, ${NR(this.g)}, ${NR(this.b)}${e===1?")":`, ${e})`}`}function Efe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function NR(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tR(e){return e=NR(e),(e<16?"0":"")+e.toString(16)}function a5t(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new q1(e,t,n,i)}function lxn(e){if(e instanceof q1)return new q1(e.h,e.s,e.l,e.opacity);if(e instanceof cZ||(e=n7(e)),!e)return new q1;if(e instanceof q1)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,r=Math.min(t,n,i),o=Math.max(t,n,i),s=NaN,a=o-r,l=(o+r)/2;return a?(t===o?s=(n-i)/a+(n<i)*6:n===o?s=(i-t)/a+2:s=(t-n)/a+4,a/=l<.5?o+r:2-o-r,s*=60):a=l>0&&l<1?0:s,new q1(s,a,l,e.opacity)}function cxn(e,t,n,i){return arguments.length===1?lxn(e):new q1(e,t,n,i??1)}function q1(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}oXe(q1,cxn,axn(cZ,{brighter(e){return e=e==null?xfe:Math.pow(xfe,e),new q1(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?hK:Math.pow(hK,e),new q1(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,r=2*n-i;return new T0(aOe(e>=240?e-240:e+120,r,i),aOe(e,r,i),aOe(e<120?e+240:e-120,r,i),this.opacity)},clamp(){return new q1(l5t(this.h),Fre(this.s),Fre(this.l),Efe(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Efe(this.opacity);return`${e===1?"hsl(":"hsla("}${l5t(this.h)}, ${Fre(this.s)*100}%, ${Fre(this.l)*100}%${e===1?")":`, ${e})`}`}}));function l5t(e){return e=(e||0)%360,e<0?e+360:e}function Fre(e){return Math.max(0,Math.min(1,e||0))}function aOe(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function cir(e,t,n,i){I.useEffect(()=>{if(e===void 0||e.destroyed)return;const r=t.map(a=>{const l=a.style,c=l?.fill,u=typeof c=="string"?c:kQ(a.nodeType===void 0||a.nodeType===""?"None":a.nodeType);let d;const h=n7(u.toString());if(h!==null){const f=cxn(h);f.l-=.1,d=f.formatHsl()}return{...a,style:{...l,...a.position,iconText:a.displayName.slice(0,2),labelText:a.displayName.length>10?a.displayName.slice(0,10)+"...":a.displayName,stroke:d}}})??[],o=n.filter(({src:a,dst:l})=>t.find(c=>c.id===a.id)!==void 0&&t.find(c=>c.id===l.id)!==void 0).map(({src:a,dst:l,style:c,id:u})=>({id:u,source:a.id,target:l.id,type:"edge",style:c}))??[],s=e.getNodeData().length;e.setData({nodes:r,edges:o}),e.render().then(()=>{(i||s===0&&r.length>0)&&e.fitView(void 0,!1)})},[e,t,n])}function uir(e){const t=I.useRef(null),n=I.useRef(null),{graphSourcePath:i}=$d();return I.useEffect(()=>{if(n.current===null){console.error("containerRef is null! Has it been assigned to an element?");return}const r=new xSn({container:n.current,animation:{duration:300},autoResize:!0,data:{nodes:[],edges:[]},theme:PSn,node:{type:"circle-with-image-badge",animation:{update:[{fields:["x","y","size"]},{fields:["fill"],shape:"key"}]}},edge:{type:"line",animation:{update:[{fields:["sourceNode","targetNode"]},{fields:["stroke","lineWidth"],shape:"key"}]}},behaviors:[{type:"drag-canvas",enable:s=>s.targetType==="canvas"&&!s.altKey&&!s.ctrlKey&&!s.metaKey&&!s.shiftKey},"zoom-canvas",{type:"click-select",animation:!1,multiple:!0,trigger:["shift"]},{type:"drag-element-custom",enable:!0,cursor:{default:"default",grab:"default",grabbing:"grab"}},{type:"brush-select",multiple:!0,trigger:["shift"]}],plugins:[{key:"grid-line",type:"grid-line",follow:{translate:!0,zoom:!1},size:10}],...e});async function o(){await Promise.resolve(),!r.destroyed&&(await r.render(),t.current=r)}try{o()}catch(s){if(r.destroyed)return;console.error("G6 Graph Error:",s)}return()=>{r.destroyed||r.destroy()}},[e,i]),{containerRef:n,graph:t.current??void 0}}function uxn({children:e,containerSx:t,sx:n,graphOptions:i,rhsPanelWidth:r,temporalViewHeight:o,floatingActionsHeight:s,slots:a,disableInterations:l,enableFitViewAlways:c,focusOnLoad:u}){const{nodes:d,aliveEdges:h,updateNodePosition:f,deselectNode:p,selectNode:g,expandNode:m,selectedNodes:v,selectedEdges:y,setHighlightedNodeIds:b,setHighlightedLayer:w,highlighted:E,selectEdges:A,deselectAllEdges:D,deselectAllTemporalEdges:T,deselectEdges:M,selectAllNodes:P,loading:F}=$d(),{onViewNode:N,onViewEdge:j,onViewNothing:W}=gN(),{graph:J,containerRef:ee}=uir(i);cir(J,d,h,c);const Q=cl(),H=(s??0)+Q.panelPadding.top,q=(r??0)+Q.panelPadding.right,le=o?o+30:0,Y=le+Q.panelPadding.bottom,G=Q.panelPadding.left;I.useEffect(()=>{J?.setOptions({padding:[H,q,Y,G]}),J?.render()},[J,H,q,Y,G]),Qnr(J,E,void 0,v,y),I.useEffect(()=>{if(J===void 0)return;function ie(ce){(ce.ctrlKey||ce.metaKey)&&ce.key==="a"&&(ce.preventDefault(),P())}return J.on(Rn.KEY_DOWN,ie),()=>{J.off(Rn.KEY_DOWN,ie)}},[J,P]),I.useEffect(()=>{if(!u)return;const ie=ee.current;if(ie===null)return;function ce(oe){if(oe.length<2||oe[1].addedNodes.length===0)return;const me=oe[1].addedNodes[0];if(!(me instanceof HTMLElement))return;me.focus()}const de=new MutationObserver(ce);return de.observe(ie,{childList:!0}),()=>{de.disconnect()}},[J,ee]),I.useEffect(()=>{if(J===void 0)return;function ie({elementType:ce,data:de}){ce!=="node"||de.id===void 0||de.states===void 0||(de.states.length===0&&p(de.id),de.states.includes("selected")&&(D(),T(),g(de.id)))}return J.on(Ni.AFTER_ELEMENT_UPDATE,ie),()=>{J.off(Ni.AFTER_ELEMENT_UPDATE,ie)}},[J,p,g,v,D,T]),I.useEffect(()=>{if(J===void 0||l===!0)return;function ie(de){const oe=de.target;"id"in oe&&N(oe.id)}function ce(de){const oe=de.target,me=de.ctrlKey||de.metaKey||de.shiftKey;if("id"in oe&&J!==void 0){const{source:Ce,target:Se}=J.getElementData(oe.id),De=[...y].some(Me=>Me.src===Ce&&Me.dst===Se);me?(T(),De?M([{src:Ce,dst:Se}]):A([{src:Ce,dst:Se}])):De?M([{src:Ce,dst:Se}]):(T(),D(),A([{src:Ce,dst:Se}]))}}return J.on(gp.CLICK,ie),J.on(iN.CLICK,ce),J.on(ag.CLICK,W),()=>{J.off(gp.CLICK,ie),J.off(iN.CLICK,ce),J.off(ag.CLICK,W)}},[l,J,j,N,W,A,D,y,M,T,y]);const pe=I.useCallback(()=>{b(void 0),w(void 0),A([]),D(),T()},[w,b,A,D,T]);I.useEffect(()=>{if(l!==!0&&J!==void 0)return J.on(ag.CLICK,pe),()=>{J.off(ag.CLICK,pe)}},[l,J,pe]),I.useEffect(()=>{if(J===void 0)return;function ie({elementType:ce,data:de}){if(J===void 0||ce!=="node"||de.id===void 0)return;const oe=de.states!==void 0&&de.states.includes("selected"),Ce=J.getRelatedEdgesData(de.id).filter(({target:Se})=>Se===de.id);J.setElementState(Object.fromEntries(Ce.map(({id:Se,states:De})=>{const Me=new Set([...De??[]]);return oe?Me.add("nodeSelected"):Me.delete("nodeSelected"),[Se,Array.from(Me.values())]})))}return J.on(Ni.AFTER_ELEMENT_UPDATE,ie),()=>{J.off(Ni.AFTER_ELEMENT_UPDATE,ie)}},[J]),I.useEffect(()=>{if(J===void 0)return;function ie(ce){const de=ce.target;"id"in de&&f(de.id,{x:ce.canvas.x,y:ce.canvas.y})}return J.on(gp.DRAG_END,ie),()=>{J.off(gp.DRAG_END,ie)}},[J]);const U=F.graph||F.subgraph||F.layout;let K="";return F.graph||F.subgraph?K="Querying for graph...":F.layout&&(K="Computing layout..."),S.jsx(sxn.Provider,{value:J,children:S.jsxs(tn,{sx:[{position:"relative",height:"100%",pointerEvents:"all"},...Array.isArray(t)?t:[t]],children:[S.jsx(Ynr,{onDoubleClick:m}),S.jsx(tn,{"aria-describedby":U?"graph-progress":void 0,"aria-busy":U,sx:[{height:"100%"},...Array.isArray(n)?n:[n]],ref:ee}),U&&S.jsx(tn,{sx:{position:"absolute",top:`calc(50% - ${(le-H)/2}px)`,left:`calc(50% - ${q/2}px)`,transform:"translate(-50%, -50%)",backgroundColor:"rgba(255, 255, 255, 0.65)",backdropFilter:"blur(20px) saturate(180%)",WebkitBackdropFilter:"blur(20px) saturate(180%)",borderRadius:"12px",border:"1px solid rgba(255, 255, 255, 0.4)",boxShadow:"0 4px 24px rgba(0,0,0,0.08)",px:3,py:2,minWidth:200},children:S.jsxs(wr,{spacing:1.5,alignItems:"center",children:[S.jsx(_bn,{id:"graph-progress","aria-label":K,sx:{width:"100%",height:4,borderRadius:2,backgroundColor:"rgba(0, 0, 0, 0.06)","& .MuiLinearProgress-bar":{borderRadius:2,background:"linear-gradient(90deg, #e3067a 0%, #f06292 100%)"}}}),S.jsx(Xn,{sx:{fontSize:"0.875rem",fontWeight:500,color:"text.secondary"},children:K})]})}),e,a?.contextMenu]})})}Knr();Unr();htr();var dir=on(J9t(),1),hir=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6zM8 9h8v10H8zm7.5-5l-1-1h-5l-1 1H5v2h14V4z"})]}),fir=I.forwardRef(hir),dxn=fir;function pir(){const{hideSelected:e}=$d();return dir.default.bind("backspace",e),S.jsx(uo,{title:"Delete selected (⌫)",placement:"bottom",children:S.jsx(Qr,{onClick:e,size:"small",sx:{borderRadius:"5px",padding:"4px",color:"text.secondary",transition:"all 0.15s ease","&:hover":{backgroundColor:"rgba(0,0,0,0.04)",color:"error.main"}},children:S.jsx(dxn,{style:{fontSize:16}})})})}var hxn=I.createContext(()=>{}),fxn=I.createContext(null);function gir({children:e}){const[t,n]=I.useState(null),i=I.useRef(null);return I.useEffect(()=>{if(t===null)return;const r=s=>{i.current&&i.current.contains(s.target)||s.target.closest?.("[data-menubar-dropdown]")||n(null)},o=setTimeout(()=>{document.addEventListener("mousedown",r)},0);return()=>{clearTimeout(o),document.removeEventListener("mousedown",r)}},[t]),S.jsx(fxn.Provider,{value:{openMenuId:t,setOpenMenuId:n},children:S.jsx("div",{ref:i,children:e})})}function oye({buttonSx:e,menuSx:t,children:n,menuText:i,startIcon:r,menuId:o,tooltipText:s}){const a=I.useRef(null),l=I.useContext(fxn),[c,u]=I.useState(null),d=o??i,h=l?.openMenuId===d;I.useEffect(()=>{if(h&&a.current){const v=a.current.getBoundingClientRect();u({top:v.bottom+4,left:v.left})}},[h]);const f=I.useCallback(()=>{l!==null&&(h?l.setOpenMenuId(null):l.setOpenMenuId(d))},[l,d,h]),p=I.useCallback(()=>{l!==null&&l.setOpenMenuId(null)},[l]),g=I.useCallback(()=>{l!==null&&l.openMenuId!==null&&l.openMenuId!==d&&l.setOpenMenuId(d)},[l,d]),m=S.jsx(na,{ref:a,onClick:f,onMouseEnter:g,disableRipple:!0,startIcon:r,sx:[{textTransform:"none",fontWeight:500,fontSize:"0.7rem",color:"text.primary",borderRadius:"4px",padding:"4px 8px",minWidth:"auto",gap:.25,transition:"background-color 0.15s ease","&:hover":{backgroundColor:"rgba(0,0,0,0.04)"},"& .MuiButton-startIcon":{marginRight:.25,"& > *":{fontSize:14}}},...Array.isArray(e)?e:[e]],children:i});return S.jsxs(hxn.Provider,{value:p,children:[s?S.jsx(uo,{title:s,disableHoverListener:h,children:m}):m,h&&c&&S.jsx(DQe,{children:S.jsx(tn,{"data-menubar-dropdown":!0,sx:[{position:"fixed",top:c.top,left:c.left,zIndex:1400,borderRadius:"10px",backgroundColor:"rgba(255, 255, 255, 0.65)",backdropFilter:"blur(20px) saturate(180%)",WebkitBackdropFilter:"blur(20px) saturate(180%)",boxShadow:"0 4px 24px rgba(0,0,0,0.12)",border:"1px solid rgba(255, 255, 255, 0.4)",minWidth:160},...Array.isArray(t)?t:[t]],children:S.jsx(gj,{sx:{py:.5,backgroundColor:"transparent","& .MuiMenuItem-root":{backgroundColor:"transparent"}},children:n})})})]})}function k_({disabled:e,selected:t,startIcon:n,tooltipText:i,placement:r="left",onClick:o,children:s}){const a=I.useContext(hxn),l=I.useCallback(()=>{a(),o!==void 0&&o()},[o,a]);return S.jsx(uo,{title:i,placement:r,children:S.jsxs(bo,{selected:t,onClick:l,disabled:e,sx:{borderRadius:"4px",mx:.5,py:.625,px:1,fontSize:"0.7rem","&.Mui-selected":{backgroundColor:"rgba(227, 6, 122, 0.08)","&:hover":{backgroundColor:"rgba(227, 6, 122, 0.12)"}},"& .MuiListItemIcon-root":{minWidth:20,color:"text.secondary","& svg":{fontSize:14}},"& .MuiListItemText-root":{"& .MuiTypography-root":{fontSize:"0.7rem"}}},children:[n&&S.jsx($m,{children:n}),S.jsx(u0,{inset:n===void 0,children:s})]})})}var mir=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M3 21v-8h2v4.6L17.6 5H13V3h8v8h-2V6.4L6.4 19H11v2z"})]}),vir=I.forwardRef(mir),pxn=vir,yir=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M6.175 19.825Q5 18.65 5 17V8.825Q4.125 8.5 3.563 7.738T3 6q0-1.25.875-2.125T6 3t2.125.875T9 6q0 .975-.562 1.738T7 8.825V17q0 .825.588 1.413T9 19t1.413-.587T11 17V7q0-1.65 1.175-2.825T15 3t2.825 1.175T19 7v8.175q.875.325 1.438 1.088T21 18q0 1.25-.875 2.125T18 21t-2.125-.875T15 18q0-.975.563-1.75T17 15.175V7q0-.825-.587-1.412T15 5t-1.412.588T13 7v10q0 1.65-1.175 2.825T9 21t-2.825-1.175"})]}),bir=I.forwardRef(yir),gxn=bir,_ir=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M14.19 14.19L6 18l3.81-8.19L18 6m-6-4A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m0 8.9a1.1 1.1 0 0 0-1.1 1.1a1.1 1.1 0 0 0 1.1 1.1a1.1 1.1 0 0 0 1.1-1.1a1.1 1.1 0 0 0-1.1-1.1"})]}),wir=I.forwardRef(_ir),Cir=wir,Sir=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M9 5a7 7 0 0 0-7 7a7 7 0 0 0 7 7c1.04 0 2.06-.24 3-.68c.94.44 1.96.68 3 .68a7 7 0 0 0 7-7a7 7 0 0 0-7-7c-1.04 0-2.06.24-3 .68c-.94-.44-1.96-.68-3-.68m0 2c.34 0 .67.03 1 .1c-1.28 1.31-2 3.07-2 4.9s.72 3.59 2 4.89c-.33.07-.66.11-1 .11a5 5 0 0 1-5-5a5 5 0 0 1 5-5m6 0a5 5 0 0 1 5 5a5 5 0 0 1-5 5c-.34 0-.67-.03-1-.1c1.28-1.31 2-3.07 2-4.9s-.72-3.59-2-4.89c.33-.07.66-.11 1-.11"})]}),xir=I.forwardRef(Sir),mxn=xir,Eir=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M15 11a2 2 0 0 1-2 2h-2v2h4v2H9v-4a2 2 0 0 1 2-2h2V9H9V7h4a2 2 0 0 1 2 2m4-6H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2"})]}),Air=I.forwardRef(Eir),vxn=Air;function Dir(){const{expandSelected:e,expandTwoHops:t,selectShortestPath:n,expandSharedNeighbours:i}=$d();return S.jsxs(oye,{startIcon:S.jsx(Cir,{style:{fontSize:"1rem"}}),menuText:"Explore",children:[S.jsx(k_,{onClick:e,startIcon:S.jsx(pxn,{}),tooltipText:"Show all nodes directly connected to selection",children:"Expand"}),S.jsx(k_,{onClick:t,startIcon:S.jsx(vxn,{}),tooltipText:"Show nodes within two connections of selection",children:"Expand Two-Hop"}),S.jsx(k_,{onClick:n,startIcon:S.jsx(gxn,{}),tooltipText:"Find shortest path between two selected nodes",children:"Find Shortest Path"}),S.jsx(k_,{onClick:i,startIcon:S.jsx(mxn,{}),tooltipText:"Show nodes connected to all selected nodes",children:"Shared Neighbours"})]})}var Tir=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M7.2 11.2c1.77 0 3.2 1.43 3.2 3.2s-1.43 3.2-3.2 3.2S4 16.17 4 14.4s1.43-3.2 3.2-3.2m7.6 4.8a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2m.4-12A4.8 4.8 0 0 1 20 8.8c0 2.65-2.15 4.8-4.8 4.8a4.8 4.8 0 0 1-4.8-4.8c0-2.65 2.15-4.8 4.8-4.8"})]}),kir=I.forwardRef(Tir),Iir=kir;function Lir(){const e=J0(),{setLayout:t,layout:n}=$d();return S.jsx(oye,{startIcon:S.jsx(Iir,{style:{fontSize:"1rem"}}),menuText:"Layout",children:hvn.map(([i,r,o,s])=>{const a=n.type===o;return S.jsx(k_,{tooltipText:a?"Re-run layout":s,onClick:()=>{a?e.invalidateQueries({queryKey:["layout"]}):t(V9e[o])},startIcon:S.jsx(i,{}),selected:a,children:r},r)})})}var Nir=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h12l4 4v5.3q-.475-.2-.987-.262T19 12.05V7.825L16.175 5H5v14h6v2zM5 5v14zm8 18v-3.075l5.525-5.5q.225-.225.5-.325t.55-.1q.3 0 .575.113t.5.337l.925.925q.2.225.313.5t.112.55t-.1.563t-.325.512l-5.5 5.5zm7.5-6.575l-.925-.925zm-6 5.075h.95l3.025-3.05l-.45-.475l-.475-.45l-3.05 3.025zm3.525-3.525l-.475-.45l.925.925zM6 10h9V6H6zm6 8h.1l2.9-2.875V15q0-1.25-.875-2.125T12 12t-2.125.875T9 15t.875 2.125T12 18"})]}),Pir=I.forwardRef(Nir),c5t=Pir,Mir=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M17 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V7zm2 16H5V5h11.17L19 7.83zm-7-7c-1.66 0-3 1.34-3 3s1.34 3 3 3s3-1.34 3-3s-1.34-3-3-3M6 6h9v4H6z"})]}),Oir=I.forwardRef(Mir),u5t=Oir;function Rir({setSaveAsDialogOpen:e,onSaveGraph:t}){const{openSource:n}=Nl(),{unsavedChangesExist:i}=$d(),[{graphSource:r}]=iy(js.graph);return n===!1?S.jsxs(oye,{startIcon:S.jsx(mbn,{variant:"dot",color:"warning",invisible:!i,sx:{"& .MuiBadge-badge":{top:1,right:1,width:6,height:6,minWidth:6}},children:S.jsx(u5t,{style:{fontSize:16}})}),menuText:"Save",buttonSx:i?{color:"warning.dark"}:void 0,children:[S.jsx(k_,{disabled:!i,onClick:()=>{r!==void 0&&t(r)},startIcon:S.jsx(u5t,{}),tooltipText:i?"Save changes to current graph":"No unsaved changes",children:i?"Save changes":"No changes"}),S.jsx(k_,{onClick:()=>e?.(!0),startIcon:S.jsx(c5t,{}),tooltipText:"Save as a new graph",children:"Save as ..."})]}):S.jsx(uo,{title:"Save graph as",placement:"bottom",children:S.jsx(na,{onClick:()=>e?.(!0),startIcon:S.jsx(c5t,{style:{fontSize:16}}),sx:{textTransform:"none",fontWeight:500,fontSize:"0.75rem",color:"text.primary",borderRadius:"5px",padding:"4px 8px",minWidth:"auto",gap:.25,transition:"background-color 0.15s ease","&:hover":{backgroundColor:"rgba(0,0,0,0.04)"},"& .MuiButton-startIcon":{marginRight:.25}},children:"Save"})})}var Fir=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M11.7 18q-2.4-.125-4.05-1.85T6 12q0-2.5 1.75-4.25T12 6q2.425 0 4.15 1.65T18 11.7l-2.1-.625q-.325-1.35-1.4-2.212T12 8q-1.65 0-2.825 1.175T8 12q0 1.425.863 2.5t2.212 1.4zm1.2 3.95q-.225.05-.45.05H12q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12v.45q0 .225-.05.45L20 12.3V12q0-3.35-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20h.3zm7.625.55l-4.275-4.275L15 22l-3-10l10 3l-3.775 1.25l4.275 4.275z"})]}),Bir=I.forwardRef(Fir),jir=Bir,zir=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"m19.775 22.6l-5.6-5.6H7V9.825l-5.6-5.6L2.8 2.8l18.4 18.4zM9 15h3.175L9 11.825zm8-.825l-2-2V9h-3.175l-2-2H17zM5 19v2q-.825 0-1.412-.587T3 19zm-2-2v-2h2v2zm0-4v-2h2v2zm0-4V7h2v2zm4 12v-2h2v2zM7 5V3h2v2zm4 16v-2h2v2zm0-16V3h2v2zm4 16v-2h2v2zm0-16V3h2v2zm4 12v-2h2v2zm0-4v-2h2v2zm0-4V7h2v2zm0-4V3q.825 0 1.413.588T21 5z"})]}),Vir=I.forwardRef(zir),yxn=Vir,Hir=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M3.875 22.125Q3 21.25 3 20t.875-2.125T6 17q.35 0 .65.075t.575.2L8.65 15.5q-.7-.775-.975-1.75T7.55 11.8l-2.025-.675q-.425.625-1.075 1T3 12.5q-1.25 0-2.125-.875T0 9.5t.875-2.125T3 6.5t2.125.875T6 9.5v.2l2.025.7q.5-.9 1.338-1.525t1.887-.8V5.9q-.975-.275-1.612-1.063T9 3q0-1.25.875-2.125T12 0t2.125.875T15 3q0 1.05-.65 1.838T12.75 5.9v2.175q1.05.175 1.888.8t1.337 1.525L18 9.7v-.2q0-1.25.875-2.125T21 6.5t2.125.875T24 9.5t-.875 2.125T21 12.5q-.8 0-1.463-.375t-1.062-1l-2.025.675q.15.975-.125 1.938T15.35 15.5l1.425 1.75q.275-.125.575-.187T18 17q1.25 0 2.125.875T21 20t-.875 2.125T18 23t-2.125-.875T15 20q0-.5.163-.962t.437-.838l-1.425-1.775Q13.15 17 11.988 17T9.8 16.425L8.4 18.2q.275.375.438.838T9 20q0 1.25-.875 2.125T6 23t-2.125-.875"})]}),Wir=I.forwardRef(Hir),bxn=Wir,Uir=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M1 1v4h1v14H1v4h4v-1h14v1h4v-4h-1V5h1V1h-4v1H5V1m0 3h14v1h1v14h-1v1H5v-1H4V5h1m1 1v8h3v4h9V9h-4V6M8 8h4v4H8m6-1h2v5h-5v-2h3"})]}),$ir=I.forwardRef(Uir),qir=$ir,Gir=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M9 9h6v6H9m-2 2h10V7H7m8-2h2V3h-2m0 18h2v-2h-2m4-2h2v-2h-2m0-6h2V7h-2m0 14a2 2 0 0 0 2-2h-2m0-6h2v-2h-2m-8 10h2v-2h-2M9 3H7v2h2M3 17h2v-2H3m2 6v-2H3a2 2 0 0 0 2 2M19 3v2h2a2 2 0 0 0-2-2m-6 0h-2v2h2M3 9h2V7H3m4 14h2v-2H7m-4-6h2v-2H3m0-6h2V3a2 2 0 0 0-2 2"})]}),Kir=I.forwardRef(Gir),_xn=Kir,Yir=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M5 3h2v2h2V3h2v2h2V3h2v2h2V3h2v2h2v2h-2v2h2v2h-2v2h2v2h-2v2h2v2h-2v2h-2v-2h-2v2h-2v-2h-2v2H9v-2H7v2H5v-2H3v-2h2v-2H3v-2h2v-2H3V9h2V7H3V5h2z"})]}),Qir=I.forwardRef(Yir),Zir=Qir;function Xir(){const{selectAllNodes:e,selectSimilarTypes:t,deselectAll:n,invertSelectedNodes:i,selectRelatedNodes:r}=$d();return S.jsxs(oye,{startIcon:S.jsx(jir,{style:{fontSize:"1rem"}}),menuText:"Selection",children:[S.jsx(k_,{startIcon:S.jsx(_xn,{}),onClick:e,tooltipText:"Select every node in the graph",children:"Select all nodes"}),S.jsx(k_,{startIcon:S.jsx(qir,{}),onClick:t,tooltipText:"Select all nodes with the same type as selection",children:"Select all similar nodes"}),S.jsx(k_,{startIcon:S.jsx(bxn,{}),onClick:r,tooltipText:"Add directly connected nodes to selection",children:"Select related nodes"}),S.jsx(k_,{startIcon:S.jsx(Zir,{}),onClick:i,tooltipText:"Swap selected and unselected nodes",children:"Invert Selection"}),S.jsx(k_,{startIcon:S.jsx(yxn,{}),onClick:n,tooltipText:"Clear current selection",children:"Deselect all nodes"})]})}var d5t=on(J9t(),1),Jir=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8 8 0 0 1 7.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7z"})]}),err=I.forwardRef(Jir),trr=err,nrr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88c3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"})]}),irr=I.forwardRef(nrr),rrr=irr,h5t={borderRadius:"5px",padding:"4px",color:"text.secondary",transition:"all 0.15s ease","&:hover":{backgroundColor:"rgba(0,0,0,0.04)"},"&.Mui-disabled":{opacity:.35}};function orr(){const{undo:e,redo:t,canUndo:n,canRedo:i}=$d();return d5t.default.bind("mod+z",e),d5t.default.bind("mod+shift+z",t),S.jsxs(S.Fragment,{children:[S.jsx(uo,{title:n?"Undo (⌘Z)":"",placement:"bottom",children:S.jsx(Qr,{onClick:e,disabled:!n,size:"small",sx:h5t,children:S.jsx(rrr,{style:{fontSize:16}})})}),S.jsx(uo,{title:i?"Redo (⌘⇧Z)":"",placement:"bottom",children:S.jsx(Qr,{onClick:t,disabled:!i,size:"small",sx:h5t,children:S.jsx(trr,{style:{fontSize:16}})})})]})}function lOe(){return S.jsx(cE,{orientation:"vertical",sx:{height:14,mx:.5,borderColor:"rgba(0,0,0,0.08)"}})}function srr({setSaveAsDialogOpen:e,onSaveGraph:t,floatingActionsRef:n}){return S.jsx(gir,{children:S.jsxs(tn,{ref:n,sx:{display:"inline-flex",alignItems:"center",gap:.25,backgroundColor:"rgba(255, 255, 255, 0.25)",backdropFilter:"blur(32px) saturate(200%)",WebkitBackdropFilter:"blur(32px) saturate(200%)",borderRadius:"10px",border:"1px solid rgba(255, 255, 255, 0.2)",boxShadow:"0 4px 24px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.4)",padding:"3px 6px"},children:[S.jsx(Xir,{}),S.jsx(Dir,{}),S.jsx(lOe,{}),S.jsx(Lir,{}),S.jsx(lOe,{}),S.jsx(pir,{}),S.jsx(orr,{}),S.jsx(lOe,{}),S.jsx(Rir,{setSaveAsDialogOpen:e,onSaveGraph:t})]})})}function sXe({tooltipText:e,placement:t="left",...n}){return S.jsx(uo,{title:e,placement:t,children:S.jsx(Qr,{...n})})}var arr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M17 4h3c1.1 0 2 .9 2 2v2h-2V6h-3zM4 8V6h3V4H4c-1.1 0-2 .9-2 2v2zm16 8v2h-3v2h3c1.1 0 2-.9 2-2v-2zM7 18H4v-2H2v2c0 1.1.9 2 2 2h3zM18 8H6v8h12z"})]}),lrr=I.forwardRef(arr),wxn=lrr;function crr({sx:e}){const t=lZ();return S.jsx(sXe,{sx:e,onClick:()=>t?.fitView(),tooltipText:"Fit all nodes within visible region",children:S.jsx(wxn,{})})}var urr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"m19.6 21l-6.3-6.3q-.75.6-1.725.95T9.5 16q-2.725 0-4.612-1.888T3 9.5t1.888-4.612T9.5 3t4.613 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l6.3 6.3zM9.5 14q1.875 0 3.188-1.312T14 9.5t-1.312-3.187T9.5 5T6.313 6.313T5 9.5t1.313 3.188T9.5 14m-1-1.5v-2h-2v-2h2v-2h2v2h2v2h-2v2z"})]}),drr=I.forwardRef(urr),hrr=drr;function frr({sx:e}){const t=lZ();return S.jsx(sXe,{sx:e,onClick:()=>{t!==void 0&&t.zoomBy(1.1)},tooltipText:"Zoom in",children:S.jsx(hrr,{})})}var prr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5A6.5 6.5 0 0 0 9.5 3A6.5 6.5 0 0 0 3 9.5A6.5 6.5 0 0 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5l1.5-1.5zm-6 0C7 14 5 12 5 9.5S7 5 9.5 5S14 7 14 9.5S12 14 9.5 14M7 9h5v1H7z"})]}),grr=I.forwardRef(prr),mrr=grr;function vrr({sx:e}){const t=lZ();return S.jsx(sXe,{sx:e,onClick:()=>{t!==void 0&&t.zoomBy(.9)},tooltipText:"Zoom out",children:S.jsx(mrr,{})})}function yrr(){const e={padding:.75,borderRadius:"6px",color:"text.secondary",fontSize:"1rem",transition:"all 0.15s ease","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)",color:"text.primary"}};return S.jsx(tn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.7)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"8px",border:"1px solid rgba(255, 255, 255, 0.8)",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",marginRight:"10px",overflow:"hidden"},children:S.jsxs(wr,{direction:"column",spacing:0,children:[S.jsx(crr,{sx:e}),S.jsx(frr,{sx:e}),S.jsx(vrr,{sx:e})]})})}var brr=function(){};function _rr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function wrr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var Cxn=typeof window<"u",Crr=Cxn?I.useLayoutEffect:I.useEffect,Srr=Crr,xrr=function(e){I.useEffect(e,[])},Err=xrr,Arr=function(e){var t=I.useRef(e);t.current=e,Err(function(){return function(){return t.current()}})},Drr=Arr,Trr=function(e){var t=I.useRef(0),n=I.useState(e),i=n[0],r=n[1],o=I.useCallback(function(s){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){r(s)})},[]);return Drr(function(){cancelAnimationFrame(t.current)}),[i,o]},krr=Trr,Irr=function(e){var t=krr({docX:0,docY:0,posX:0,posY:0,elX:0,elY:0,elH:0,elW:0}),n=t[0],i=t[1];return I.useEffect(function(){var r=function(o){if(e&&e.current){var s=e.current.getBoundingClientRect(),a=s.left,l=s.top,c=s.width,u=s.height,d=a+window.pageXOffset,h=l+window.pageYOffset,f=o.pageX-d,p=o.pageY-h;i({docX:o.pageX,docY:o.pageY,posX:d,posY:h,elX:f,elY:p,elH:u,elW:c})}};return _rr(document,"mousemove",r),function(){wrr(document,"mousemove",r)}},[e]),n},Lrr=Irr,Sxn={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function Nrr(){var e=I.useState(null),t=e[0],n=e[1],i=I.useState(Sxn),r=i[0],o=i[1],s=I.useMemo(function(){return new window.ResizeObserver(function(a){if(a[0]){var l=a[0].contentRect,c=l.x,u=l.y,d=l.width,h=l.height,f=l.top,p=l.left,g=l.bottom,m=l.right;o({x:c,y:u,width:d,height:h,top:f,left:p,bottom:g,right:m})}})},[]);return Srr(function(){if(t)return s.observe(t),function(){s.disconnect()}},[t]),[n,r]}var k8=Cxn&&typeof window.ResizeObserver<"u"?Nrr:(function(){return[brr,Sxn]});function Prr({open:e,setOpen:t,onSaveGraph:n}){const[{graphSource:i}]=iy(js.graph),[r,o]=I.useState(void 0),{success:s,message:a}=Ibn(r);return S.jsxs(GQ,{open:e,children:[S.jsx(M0e,{children:"Save As"}),S.jsxs(qQ,{children:[S.jsx(jv,{margin:"dense",id:"outlined-disabled",label:"Current Graph Name",fullWidth:!0,variant:"standard",disabled:!0,value:i?.fullPath}),S.jsx(jv,{autoFocus:!0,error:!s,margin:"dense",id:"name",label:"New Graph Name",helperText:a,fullWidth:!0,variant:"standard",onFocus:l=>l.target.select(),onChange:l=>o(hb.fromFullPath(l.target.value)),inputProps:{maxLength:140}})]}),S.jsxs($Q,{children:[S.jsx(na,{onClick:()=>{t(!1),o(void 0)},children:"Cancel"}),S.jsx(na,{onClick:()=>{Ku(r!==void 0),n(r),o(void 0),t(!1)},disabled:r===void 0||!s,children:"Confirm"})]})]})}var Mrr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAAAXNSR0IArs4c6QAAIABJREFUeF7t3WGSLsWRLNDWzmBlslkZ7ExSM2CGZEjcyhtBtpcf/r6vUpHHQ50+zDObv334hwABAgQIEKgT+FvdjV2YAAECBAgQ+FAALAEBAgQIECgUUAAKQ3dlAgQIECCgANgBAgQIECBQKKAAFIbuygQIECBAQAGwAwQIECBAoFBAASgM3ZUJECBAgIACYAcIECBAgEChgAJQGLorEyBAgAABBcAOECBAgACBQgEFoDB0VyZAgAABAgqAHSBAgAABAoUCCkBh6K5MgAABAgQUADtAgAABAgQKBRSAwtBdmQABAgQIKAB2gAABAgQIFAooAIWhuzIBAgQIEFAA7AABAgQIECgUUAAKQ3dlAgQIECCgANgBAgQIECBQKKAAFIbuygQIECBAQAGwAwQIECBAoFBAASgM3ZUJECBAgIACYAcIECBAgEChgAJQGLorEyBAgAABBcAOECBAgACBQgEFoDB0VyZAgAABAgqAHSBAgAABAoUCCkBh6K5MgAABAgQUADtAgAABAgQKBRSAwtBdmQABAgQIKAB2gAABAgQIFAooAIWhuzIBAgQIEFAA7AABAgQIECgUUAAKQ3dlAgQIECCgANgBAgQIECBQKKAAFIbuygQIECBAQAGwAwQIECBAoFBAASgM3ZUJECBAgIACYAcIECBAgEChgAJQGLorEyBAgAABBcAObAj8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NwyuWE+wdDJD8tVstRqcFLvMnrCwwkIWStkChONREMMhWOjg9otqUakfAUAEIGEZKK4fWrU+uZiZDCDCeaBGga7NqlSFykAcKiHvyGKoQxUDgGiL/y/AAGdBDB5UonjLAAAAAElFTkSuQmCC";function Tj(e,t){let n,i=t?.in;return e.forEach(r=>{!i&&typeof r=="object"&&(i=xc.bind(null,r));const o=_o(r,i);(!n||n<o||isNaN(+o))&&(n=o)}),xc(i,n||NaN)}function sye(e,t){let n,i=t?.in;return e.forEach(r=>{!i&&typeof r=="object"&&(i=xc.bind(null,r));const o=_o(r,i);(!n||n>o||isNaN(+o))&&(n=o)}),xc(i,n||NaN)}function Nce(e,t){const n=+_o(e)-+_o(t);return n<0?-1:n>0?1:n}function Rrr(e){return xc(e,Date.now())}function Frr(e,t,n){const[i,r]=JN(n?.in,e,t),o=i.getFullYear()-r.getFullYear(),s=i.getMonth()-r.getMonth();return o*12+s}function Brr(e){return t=>{const n=Math.trunc,i=n(t);return i===0?0:i}}function jrr(e,t){return+_o(e)-+_o(t)}function zrr(e,t){const n=_o(e,t?.in);return+b7e(n,t)==+pbn(n,t)}function Vrr(e,t,n){const[i,r,o]=JN(n?.in,e,e,t),s=Nce(r,o),a=Math.abs(Frr(r,o));if(a<1)return 0;r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-s*a);let l=Nce(r,o)===-s;zrr(i)&&a===1&&Nce(i,o)===1&&(l=!1);const c=s*(a-+l);return c===0?0:c}function Hrr(e,t,n){const i=jrr(e,t)/1e3;return Brr()(i)}function Wrr(e,t,n){const i=XN(),r=n?.locale??i.locale??I0e,o=2520,s=Nce(e,t);if(isNaN(s))throw new RangeError("Invalid time value");const a=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:s}),[l,c]=JN(n?.in,...s>0?[t,e]:[e,t]),u=Hrr(c,l),d=(W9(c)-W9(l))/1e3,h=Math.round((u-d)/60);let f;if(h<2)return n?.includeSeconds?u<5?r.formatDistance("lessThanXSeconds",5,a):u<10?r.formatDistance("lessThanXSeconds",10,a):u<20?r.formatDistance("lessThanXSeconds",20,a):u<40?r.formatDistance("halfAMinute",0,a):u<60?r.formatDistance("lessThanXMinutes",1,a):r.formatDistance("xMinutes",1,a):h===0?r.formatDistance("lessThanXMinutes",1,a):r.formatDistance("xMinutes",h,a);if(h<45)return r.formatDistance("xMinutes",h,a);if(h<90)return r.formatDistance("aboutXHours",1,a);if(h<jMt){const p=Math.round(h/60);return r.formatDistance("aboutXHours",p,a)}else{if(h<o)return r.formatDistance("xDays",1,a);if(h<kie){const p=Math.round(h/jMt);return r.formatDistance("xDays",p,a)}else if(h<kie*2)return f=Math.round(h/kie),r.formatDistance("aboutXMonths",f,a)}if(f=Vrr(c,l),f<12){const p=Math.round(h/kie);return r.formatDistance("xMonths",p,a)}else{const p=f%12,g=Math.trunc(f/12);return p<3?r.formatDistance("aboutXYears",g,a):p<9?r.formatDistance("overXYears",g,a):r.formatDistance("almostXYears",g+1,a)}}function Urr(e,t){return Wrr(e,Rrr(e),t)}var $rr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M4 11v2h12l-5.5 5.5l1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5L16 11z"})]}),qrr=I.forwardRef($rr),Exn=qrr,f5t=new Date(-8e3,0,1),p5t=new Date(8e3,0,1);function Axn({minTime:e,maxTime:t,range:n,setRange:i}){const[r,o]=[Bre(n[0]),Bre(n[1])],s=e!==void 0?Tj([f5t,T2(new Date(e))]):f5t,a=t!==void 0?sye([p5t,KQ(T2(new Date(t)),1)]):p5t,l={width:"100%","& .MuiInputBase-root":{fontSize:"0.85rem",backgroundColor:"background.paper"},"& .MuiInputBase-input":{py:1,px:1.5},"& .MuiOutlinedInput-notchedOutline":{borderColor:"divider"},"& .MuiSvgIcon-root":{color:"text.disabled",width:"20px",height:"20px"}},c={fontSize:"0.7rem",fontWeight:500,color:"text.disabled",mb:.5};return S.jsxs(wr,{direction:"row",alignItems:"flex-end",spacing:1.5,children:[S.jsxs(tn,{sx:{flex:1,minWidth:0},children:[S.jsx(Xn,{sx:c,children:"From"}),S.jsx(y7e,{value:r,minDateTime:s,maxDateTime:o??a,onChange:u=>i([Bre(u??void 0),o]),slotProps:{actionBar:{actions:["clear","accept"]},textField:{size:"small",placeholder:"Start date"}},viewRenderers:{hours:A_,minutes:A_,seconds:A_},defaultValue:s,sx:l})]}),S.jsx(Exn,{style:{width:"18px",height:"18px",color:"var(--muted-grey)",flexShrink:0,marginBottom:"10px"}}),S.jsxs(tn,{sx:{flex:1,minWidth:0},children:[S.jsx(Xn,{sx:c,children:"To"}),S.jsx(y7e,{value:o,minDateTime:r??s,maxDateTime:a,onChange:u=>i([r,Bre(u??void 0)]),slotProps:{actionBar:{actions:["clear","accept"]},textField:{size:"small",placeholder:"End date"}},viewRenderers:{hours:A_,minutes:A_,seconds:A_},defaultValue:a,sx:l})]})]})}var Bre=e=>e!=null&&L0e(e)?e:void 0;function Grr({sx:e,items:t,gridTemplateAreas:n,initialGridTemplateColumns:i,initialGridTemplateRows:r,columnGap:o,rowGap:s,columnBounds:a,rowBounds:l}){const c=I.useRef(null),[u,d]=I.useState(i.map(()=>0)),[h,f]=I.useState(r.map(()=>0)),p=I.useMemo(()=>r.map((P,F)=>({row:F,reportSize:(j,W)=>f(J=>{const ee=[...J];return ee.splice(F,1,W),ee})})),[r]),g=I.useMemo(()=>i.map((P,F)=>({column:F,reportSize:(j,W)=>d(J=>{const ee=[...J];return ee.splice(F,1,j),ee})})),[i]),[m,v]=I.useState(void 0),[y,b]=I.useState(void 0);I.useEffect(()=>{v(void 0)},[i.join(",")]),I.useEffect(()=>{b(void 0)},[r.join(",")]);const w=(P,F)=>{const N=document.body.style.userSelect;document.body.style.userSelect="none";function j(W){document.body.style.userSelect=N,P!==void 0&&window.removeEventListener("mousemove",P),window.removeEventListener("mouseup",j)}P!==void 0&&window.addEventListener("mousemove",P),window.addEventListener("mouseup",j)},E=(P,F,N,j)=>{if(P<0||P+1>=F.length)return;const W=F.slice(0,P).reduce((q,le)=>q+le,0),J=F[P],ee=F[P+1],Q=J+ee;let H=null;w(q=>{const le=c.current,Y=le?.getBoundingClientRect(),G=le!==null?window.getComputedStyle(le):void 0,pe=j==="x"?Y?.x??0:Y?.y??0,U=parseFloat(j==="x"?G?.borderLeft??"0":G?.borderTop??"0"),K=parseFloat(j==="x"?G?.paddingLeft??"0":G?.paddingTop??"0"),ie=j==="x"?o??0:s??0,ce=Math.max(0,P)*ie,de=pe+U+K+ce,oe=j==="x"?q.clientX:q.clientY,me=W+J+de+ie*.5;H===null&&(H=oe<me);const Ce=Math.min(Math.max(0,oe-de-(H?0:ie)-W),W+Q),Se=Q-Ce,[De,Me]=j==="x"?[a?.[P],a?.[P+1]]:[l?.[P],l?.[P+1]],qe=De?.min??0,$=De?.max??(j==="x"?Y?.width:Y?.height)??0,he=Me?.min??0,Ie=Me?.max??(j==="x"?Y?.width:Y?.height)??0;if(Ce<qe||$<Ce||Se<he||Ie<Se)return;const Be=[...F];Be.splice(P,2,Ce,Se),N(Be)})},A=P=>()=>{E(P,y??h,b,"y")},D=P=>()=>{E(P,m??u,v,"x")},T=P=>{if(n===void 0)return[0,0,0,0];let F=0,N=0,j=0,W=0;return n.forEach((J,ee)=>{const Q=J.split(/\s+/),H=Q.findIndex(q=>q===P);H<0||(F===0&&(F=H+1),N=Q.findLastIndex(q=>q===P)+2,j===0&&(j=ee+1),W=ee+2)}),[j,W,F,N]},M=t?.map(({element:P,isResizable:F,specifier:N,sx:j})=>{const W=typeof N=="string"?N:N.join(":");let J=1,ee=1,Q=1,H=1;typeof N=="string"?[J,ee,Q,H]=T(N):N.length===2?([J,Q]=N,ee=J+1,H=Q+1):N.length===4&&([J,ee,Q,H]=N);const[q,le,Y,G]=[J-1,ee-1,Q-1,H-1],pe={left:Y>0&&Y<i.length?D(Y-1):void 0,top:q>0&&q<r.length?A(q-1):void 0,right:G>0&&G<i.length?D(G-1):void 0,bottom:le>0&&le<r.length?A(le-1):void 0};return{key:W,children:P,isResizable:F,onClickEdge:pe,sx:[typeof N=="string"?{gridArea:N}:{gridRow:`${J} / ${ee}`,gridColumn:`${Q} / ${H}`},...Array.isArray(j)?j:[j]]}});return S.jsxs(tn,{ref:c,sx:[{display:"grid",gridTemplateColumns:(m?.map(P=>`${P}px`)??i).join(" "),gridTemplateRows:(y?.map(P=>`${P}px`)??r).join(" "),gridTemplateAreas:n?.map(P=>`"${P}"`).join(`
`),columnGap:o!==void 0?`${o}px`:void 0,rowGap:s!==void 0?`${s}px`:void 0,transition:"grid-template-columns 0.15s ease-out, grid-template-rows 0.2s ease-out"},...Array.isArray(e)?e:[e]],children:[p.map(({row:P,reportSize:F})=>S.jsx(g5t,{sx:{gridRow:`${P+1} / ${P+2}`,gridColumn:1},reportSize:F},`row-measurer-${P}`)),g.map(({column:P,reportSize:F})=>S.jsx(g5t,{sx:{gridRow:1,gridColumn:`${P+1} / ${P+2}`},reportSize:F},`column-measurer-${P}`)),M?.map(({key:P,isResizable:F,onClickEdge:N,sx:j,children:W})=>S.jsx(Krr,{isResizable:F,onClickEdge:N,sx:j,children:W},P))]})}function Krr({children:e,sx:t,isResizable:n=!0,onClickEdge:i}){const o=d=>{const h=d.currentTarget.getBoundingClientRect();return Math.abs(d.clientX-h.x)<=10?"left":Math.abs(d.clientY-h.y)<=10?"top":Math.abs(d.clientX-h.x-h.width)<=10?"right":Math.abs(d.clientY-h.y-h.height)<=10?"bottom":"none"},s=d=>{if(!n)return;const{left:h,top:f,right:p,bottom:g}=i,m=o(d);h!==void 0&&m==="left"&&h(),f!==void 0&&m==="top"&&f(),p!==void 0&&m==="right"&&p(),g!==void 0&&m==="bottom"&&g()},[a,l]=I.useState("none"),c=d=>{l(o(d))},u=I.useMemo(()=>{const{left:d,top:h,right:f,bottom:p}=i;return d!==void 0&&a==="left"||f!==void 0&&a==="right"?"col-resize":h!==void 0&&a==="top"||p!==void 0&&a==="bottom"?"row-resize":"auto"},[a,i]);return S.jsx(tn,{sx:[{cursor:u},...Array.isArray(t)?t:[t]],onMouseMove:c,onMouseDown:s,children:e})}function g5t({sx:e,reportSize:t}){const[n,{width:i,height:r}]=k8();return I.useEffect(()=>t(i,r),[r,t,i]),S.jsx(tn,{sx:e,ref:n})}var Yrr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB0EAAAJyCAYAAACyvbjsAAC2ZklEQVR42uzdCZRc13kY6NvVOxaiAUJcRC1NSzYpUhEByrGlMR02LVr28YwtiJasOCYHjYh2MlsExtGJJ5MZkOdkck7COKAyJzOZsRgAUU6SSTgE6ORE8kxsgOOFcrwQkh1rGVFsbVxAEECjgd67eupWv2p0o6u6a69XVd93TqEa3dVdVbfee/fe97//vyEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcLy/BRgANRuLjh9pTjEAAAAASUVORK5CYII=";function fU({number:e,sx:t,skeletonSx:n}){const i=I.useMemo(()=>Array.from(Array(e)).map((r,o)=>{const s=Math.random()*.8+.2,a=`${s*100}%`;return{key:`bar-${o}-${s}`,sx:[{margin:0,width:a},...Array.isArray(n)?n:[n]]}}),[e,n]);return S.jsx(wr,{sx:t,children:i.map(({key:r,sx:o})=>S.jsx(B9,{sx:o},r))})}var Qrr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M12 16a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2m0-6a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2m0-6a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2"})]}),Zrr=I.forwardRef(Qrr),Xrr=Zrr;function Dxn({options:e,children:t,onClick:n,href:i,subtle:r,...o}){const[s,a]=I.useState(!1),l=I.useRef(null),[c,u]=I.useState(1),d=(m,v)=>{u(m),a(!1),v?.()},h=()=>{a(m=>!m)},f=m=>{l.current&&l.current.contains(m.target)||a(!1)},p=r?{padding:m=>m.spacing(.5,1.5),fontSize:"0.75rem",fontWeight:500}:{padding:m=>m.spacing(.5,1)},g=i!==void 0?S.jsx(na,{sx:p,children:S.jsx(Jy,{to:i,style:{color:r?"var(--muted-muted)":"white",textDecoration:"none"},children:t})}):S.jsx(na,{onClick:n,sx:p,children:t});return S.jsxs(I.Fragment,{children:[S.jsxs(D8i,{variant:r?"outlined":"contained",ref:l,"aria-label":"Button group with a nested menu",sx:r?{"& .MuiButton-outlined":{borderColor:"divider",color:"text.disabled","&:hover":{borderColor:"divider",backgroundColor:"grey.50"}}}:void 0,...o,children:[g,e!==void 0&&e.length>0&&S.jsx(na,{size:"small","aria-controls":s?"split-button-menu":void 0,"aria-expanded":s?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:h,sx:{padding:0,"&.MuiButtonGroup-grouped":{minWidth:m=>m.spacing(3)}},children:S.jsx(Xrr,{style:{width:"60%",height:"60%"}})})]}),S.jsx(yj,{sx:{zIndex:1},open:s,anchorEl:l.current,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:m,placement:v})=>S.jsx(VQ,{...m,style:{transformOrigin:v==="bottom"?"center top":"center bottom"},children:S.jsx(eS,{children:S.jsx($8i,{onClickAway:f,children:S.jsx(gj,{id:"split-button-menu",autoFocusItem:!0,children:e?.map((y,b)=>S.jsx(bo,{disabled:b===2,selected:b===c,onClick:()=>d(b,y.onClick),children:y.children},y.key))})})})})})]})}function kj({tabs:e,selectedTab:t,setSelectedTab:n,slots:i,sx:r}){const o=e.includes(t)?t:e.at(0);return o===void 0?null:S.jsxs(tn,{sx:[{borderBottom:1,borderBottomColor:"divider",display:"flex",justifyContent:"space-between",alignItems:"center"},...Array.isArray(r)?r:[r]],children:[S.jsx(Wyn,{value:o,textColor:"inherit",sx:[s=>({minHeight:s.spacing(5),"& .MuiTabs-indicator":{height:"2px",backgroundColor:s.palette.text.primary,bottom:0},"& .MuiTab-root":{minHeight:s.spacing(5),minWidth:"unset",padding:s.spacing(1,0),margin:0,textTransform:"none",alignItems:"flex-start",fontSize:"0.85rem",color:s.palette.text.disabled,transition:"color 0.15s ease",backgroundColor:"transparent","&:hover":{color:s.palette.text.primary,backgroundColor:"transparent"},"&.Mui-selected":{fontWeight:600,color:s.palette.text.primary}},"& .MuiTab-root + .MuiTab-root":{marginLeft:s.spacing(3)}})],onChange:(s,a)=>{n(a)},children:e.map(s=>{const a=s.charAt(0).toUpperCase()+s.slice(1),l=a.length>20,c=l?`${a.slice(0,18)}...`:a;return S.jsx(v7e,{value:s,disableRipple:!0,label:S.jsx(uo,{title:a,disableHoverListener:!l,children:S.jsx(tn,{component:"span",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:200},children:c})}),sx:{color:"inherit"}},s)})}),i?.rhs]})}function wu({children:e}){return S.jsx(Xn,{sx:{fontSize:"0.7rem",fontWeight:500,color:"text.disabled",textTransform:"uppercase",letterSpacing:"0.3px",mb:1},children:e})}var Jrr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M15.41 16.58L10.83 12l4.58-4.59L14 6l-6 6l6 6z"})]}),eor=I.forwardRef(Jrr),jF=eor;function Txn({label:e,tooltipText:t,onExpand:n,sx:i}){return S.jsxs(wr,{sx:[{height:"100%",width:"48px",minWidth:"48px",display:"flex",flexDirection:"column",alignItems:"center",paddingTop:1},...Array.isArray(i)?i:[i]],children:[S.jsx(uo,{title:t??`Expand ${e}`,placement:"left",arrow:!0,children:S.jsx(Qr,{onClick:n,size:"small",sx:{color:"text.secondary",transition:"transform 0.2s ease-in-out","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)",transform:"translateX(-2px)"},"& svg":{fontSize:"1rem"}},children:S.jsx(jF,{})})}),S.jsx(Xn,{sx:{writingMode:"vertical-rl",textOrientation:"mixed",transform:"rotate(180deg)",fontSize:"0.75rem",color:"text.disabled",marginTop:1,letterSpacing:"0.5px"},children:e})]})}var tor=xxn,nor=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6z"})]}),ior=I.forwardRef(nor),ror=ior,oor=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z"})]}),sor=I.forwardRef(oor),aor=sor;function kxn({title:e,children:t,slots:n,sx:i,collapsedByDefault:r,isLoading:o,glassmorphic:s}){const[a,l]=I.useState(!r),c=k7e(n?.expandButton,lor),u=k7e(n?.expandContents,cor);return S.jsxs(tn,{component:"section",sx:i,children:[S.jsx(c,{open:a,setOpen:l,children:e.length>48?`${e.slice(0,48)}
${e.slice(48)}`:e}),o===!0?S.jsx(fU,{number:4,sx:{marginTop:"1em"}}):S.jsx(u,{open:a,glassmorphic:s,children:t})]})}function lor({open:e,setOpen:t,children:n,sx:i}){const r=cl();return S.jsxs(vg,{onClick:()=>t(o=>!o),sx:Lbn({display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center",padding:0,borderRadius:0,transition:"all 0.15s ease-in-out","&:hover":{"& .MuiTypography-root":{color:"text.secondary"}}},i),children:[S.jsx(Xn,{sx:{fontSize:"0.7rem",fontWeight:500,color:"text.disabled",textTransform:"uppercase",letterSpacing:"0.3px",transition:"color 0.15s ease"},children:n}),e?S.jsx(ror,{color:r.palette.text.disabled,style:{fontSize:"1rem"}}):S.jsx(aor,{color:r.palette.text.disabled,style:{fontSize:"1rem"}})]})}function cor({open:e,children:t,sx:n,glassmorphic:i}){return S.jsx(tn,{sx:Lbn({marginTop:r=>r.spacing(1),paddingLeft:0},n),children:S.jsx(bj,{in:e,unmountOnExit:!0,children:i?S.jsx(tn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"8px",border:"1px solid rgba(0, 0, 0, 0.06)",p:1.5},children:t}):t})})}function I8({properties:e,enableAccordion:t,accordionProps:n,asCard:i}){if(e===void 0)return;const r=n?.title==="Description"?Object.entries(e).map(([o,s])=>S.jsx(Xn,{children:String(s)},o)):Object.keys(e).length>0?S.jsx(_j,{sx:o=>({[`& .${wj.root}`]:{borderBottom:"none",paddingTop:o.spacing(.5),paddingBottom:o.spacing(.5),paddingLeft:0,paddingRight:o.spacing(1.5)}}),children:S.jsx(pL,{children:Object.entries(e).map(([o,s])=>S.jsxs(bv,{children:[S.jsx(mu,{sx:{width:"7rem",verticalAlign:"top"},children:S.jsx(Xn,{sx:{maxHeight:"8rem",overflowY:"auto",fontSize:"0.8rem",color:"text.disabled",fontWeight:500},children:o.charAt(0).toUpperCase()+o.slice(1)})}),S.jsx(mu,{sx:{wordBreak:"break-word"},children:S.jsx("div",{style:{maxHeight:"8rem",overflowY:"auto"},children:String(s).split(`
`).map((a,l)=>S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.primary"},children:a},l))})})]},o))})}):S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.disabled"},children:"No properties found"});return t&&n?S.jsx(kxn,{...n,glassmorphic:!0,children:r}):i?S.jsx(tn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"8px",border:"1px solid rgba(0, 0, 0, 0.06)",p:1.5},children:r}):r}function XI(e,t){return typeof e=="function"?e(t):e}function mb(e,t){return n=>{t.setState(i=>({...i,[e]:XI(n,i[e])}))}}function aye(e){return e instanceof Function}function uor(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function Ixn(e,t){const n=[],i=r=>{r.forEach(o=>{n.push(o);const s=t(o);s!=null&&s.length&&i(s)})};return i(e),n}function Lo(e,t,n){let i=[],r;return o=>{let s;n.key&&n.debug&&(s=Date.now());const a=e(o);if(!(a.length!==i.length||a.some((u,d)=>i[d]!==u)))return r;i=a;let c;if(n.key&&n.debug&&(c=Date.now()),r=t(...a),n==null||n.onChange==null||n.onChange(r),n.key&&n.debug&&n!=null&&n.debug()){const u=Math.round((Date.now()-s)*100)/100,d=Math.round((Date.now()-c)*100)/100,h=d/16,f=(p,g)=>{for(p=String(p);p.length<g;)p=" "+p;return p};console.info(`%c⏱ ${f(d,5)} /${f(u,5)} ms`,`
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*h,120))}deg 100% 31%);`,n?.key)}return r}}function No(e,t,n,i){return{debug:()=>{var r;return(r=e?.debugAll)!=null?r:e[t]},key:!1,onChange:i}}function dor(e,t,n,i){const r=()=>{var s;return(s=o.getValue())!=null?s:e.options.renderFallbackValue},o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(i),renderValue:r,getContext:Lo(()=>[e,n,t,o],(s,a,l,c)=>({table:s,column:a,row:l,cell:c,getValue:c.getValue,renderValue:c.renderValue}),No(e.options,"debugCells"))};return e._features.forEach(s=>{s.createCell==null||s.createCell(o,n,t,e)},{}),o}function hor(e,t,n,i){var r,o;const a={...e._getDefaultColumnDef(),...t},l=a.accessorKey;let c=(r=(o=a.id)!=null?o:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?r:typeof a.header=="string"?a.header:void 0,u;if(a.accessorFn?u=a.accessorFn:l&&(l.includes(".")?u=h=>{let f=h;for(const g of l.split(".")){var p;f=(p=f)==null?void 0:p[g]}return f}:u=h=>h[a.accessorKey]),!c)throw new Error;let d={id:`${String(c)}`,accessorFn:u,parent:i,depth:n,columnDef:a,columns:[],getFlatColumns:Lo(()=>[!0],()=>{var h;return[d,...(h=d.columns)==null?void 0:h.flatMap(f=>f.getFlatColumns())]},No(e.options,"debugColumns")),getLeafColumns:Lo(()=>[e._getOrderColumnsFn()],h=>{var f;if((f=d.columns)!=null&&f.length){let p=d.columns.flatMap(g=>g.getLeafColumns());return h(p)}return[d]},No(e.options,"debugColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(d,e);return d}var zg="debugHeaders";function m5t(e,t,n){var i;let o={id:(i=n.id)!=null?i:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],a=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(a),s.push(l)};return a(o),s},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(s=>{s.createHeader==null||s.createHeader(o,e)}),o}var por={createTable:e=>{e.getHeaderGroups=Lo(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,i,r)=>{var o,s;const a=(o=i?.map(d=>n.find(h=>h.id===d)).filter(Boolean))!=null?o:[],l=(s=r?.map(d=>n.find(h=>h.id===d)).filter(Boolean))!=null?s:[],c=n.filter(d=>!(i!=null&&i.includes(d.id))&&!(r!=null&&r.includes(d.id)));return jre(t,[...a,...c,...l],e)},No(e.options,zg)),e.getCenterHeaderGroups=Lo(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,i,r)=>(n=n.filter(o=>!(i!=null&&i.includes(o.id))&&!(r!=null&&r.includes(o.id))),jre(t,n,e,"center")),No(e.options,zg)),e.getLeftHeaderGroups=Lo(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,i)=>{var r;const o=(r=i?.map(s=>n.find(a=>a.id===s)).filter(Boolean))!=null?r:[];return jre(t,o,e,"left")},No(e.options,zg)),e.getRightHeaderGroups=Lo(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,i)=>{var r;const o=(r=i?.map(s=>n.find(a=>a.id===s)).filter(Boolean))!=null?r:[];return jre(t,o,e,"right")},No(e.options,zg)),e.getFooterGroups=Lo(()=>[e.getHeaderGroups()],t=>[...t].reverse(),No(e.options,zg)),e.getLeftFooterGroups=Lo(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),No(e.options,zg)),e.getCenterFooterGroups=Lo(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),No(e.options,zg)),e.getRightFooterGroups=Lo(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),No(e.options,zg)),e.getFlatHeaders=Lo(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),No(e.options,zg)),e.getLeftFlatHeaders=Lo(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),No(e.options,zg)),e.getCenterFlatHeaders=Lo(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),No(e.options,zg)),e.getRightFlatHeaders=Lo(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),No(e.options,zg)),e.getCenterLeafHeaders=Lo(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var i;return!((i=n.subHeaders)!=null&&i.length)}),No(e.options,zg)),e.getLeftLeafHeaders=Lo(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var i;return!((i=n.subHeaders)!=null&&i.length)}),No(e.options,zg)),e.getRightLeafHeaders=Lo(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var i;return!((i=n.subHeaders)!=null&&i.length)}),No(e.options,zg)),e.getLeafHeaders=Lo(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,i)=>{var r,o,s,a,l,c;return[...(r=(o=t[0])==null?void 0:o.headers)!=null?r:[],...(s=(a=n[0])==null?void 0:a.headers)!=null?s:[],...(l=(c=i[0])==null?void 0:c.headers)!=null?l:[]].map(u=>u.getLeafHeaders()).flat()},No(e.options,zg))}};function jre(e,t,n,i){var r,o;let s=0;const a=function(h,f){f===void 0&&(f=1),s=Math.max(s,f),h.filter(p=>p.getIsVisible()).forEach(p=>{var g;(g=p.columns)!=null&&g.length&&a(p.columns,f+1)},0)};a(e);let l=[];const c=(h,f)=>{const p={depth:f,id:[i,`${f}`].filter(Boolean).join("_"),headers:[]},g=[];h.forEach(m=>{const v=[...g].reverse()[0],y=m.column.depth===p.depth;let b,w=!1;if(y&&m.column.parent?b=m.column.parent:(b=m.column,w=!0),v&&v?.column===b)v.subHeaders.push(m);else{const E=m5t(n,b,{id:[i,f,b.id,m?.id].filter(Boolean).join("_"),isPlaceholder:w,placeholderId:w?`${g.filter(A=>A.column===b).length}`:void 0,depth:f,index:g.length});E.subHeaders.push(m),g.push(E)}p.headers.push(m),m.headerGroup=p}),l.push(p),f>0&&c(g,f-1)},u=t.map((h,f)=>m5t(n,h,{depth:s,index:f}));c(u,s-1),l.reverse();const d=h=>h.filter(p=>p.column.getIsVisible()).map(p=>{let g=0,m=0,v=[0];p.subHeaders&&p.subHeaders.length?(v=[],d(p.subHeaders).forEach(b=>{let{colSpan:w,rowSpan:E}=b;g+=w,v.push(E)})):g=1;const y=Math.min(...v);return m=m+y,p.colSpan=g,p.rowSpan=m,{colSpan:g,rowSpan:m}});return d((r=(o=l[0])==null?void 0:o.headers)!=null?r:[]),l}var uZ=(e,t,n,i,r,o,s)=>{let a={id:t,index:i,original:n,depth:r,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(a._valuesCache.hasOwnProperty(l))return a._valuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return a._valuesCache[l]=c.accessorFn(a.original,i),a._valuesCache[l]},getUniqueValues:l=>{if(a._uniqueValuesCache.hasOwnProperty(l))return a._uniqueValuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return c.columnDef.getUniqueValues?(a._uniqueValuesCache[l]=c.columnDef.getUniqueValues(a.original,i),a._uniqueValuesCache[l]):(a._uniqueValuesCache[l]=[a.getValue(l)],a._uniqueValuesCache[l])},renderValue:l=>{var c;return(c=a.getValue(l))!=null?c:e.options.renderFallbackValue},subRows:o??[],getLeafRows:()=>Ixn(a.subRows,l=>l.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let l=[],c=a;for(;;){const u=c.getParentRow();if(!u)break;l.push(u),c=u}return l.reverse()},getAllCells:Lo(()=>[e.getAllLeafColumns()],l=>l.map(c=>dor(e,a,c,c.id)),No(e.options,"debugRows")),_getAllCellsByColumnId:Lo(()=>[a.getAllCells()],l=>l.reduce((c,u)=>(c[u.column.id]=u,c),{}),No(e.options,"debugRows"))};for(let l=0;l<e._features.length;l++){const c=e._features[l];c==null||c.createRow==null||c.createRow(a,e)}return a},gor={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Lxn=(e,t,n)=>{var i,r;const o=n==null||(i=n.toString())==null?void 0:i.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(o))};Lxn.autoRemove=e=>fC(e);var Nxn=(e,t,n)=>{var i;return!!(!((i=e.getValue(t))==null||(i=i.toString())==null)&&i.includes(n))};Nxn.autoRemove=e=>fC(e);var Pxn=(e,t,n)=>{var i;return((i=e.getValue(t))==null||(i=i.toString())==null?void 0:i.toLowerCase())===n?.toLowerCase()};Pxn.autoRemove=e=>fC(e);var Mxn=(e,t,n)=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(n)};Mxn.autoRemove=e=>fC(e)||!(e!=null&&e.length);var Oxn=(e,t,n)=>!n.some(i=>{var r;return!((r=e.getValue(t))!=null&&r.includes(i))});Oxn.autoRemove=e=>fC(e)||!(e!=null&&e.length);var Rxn=(e,t,n)=>n.some(i=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(i)});Rxn.autoRemove=e=>fC(e)||!(e!=null&&e.length);var Fxn=(e,t,n)=>e.getValue(t)===n;Fxn.autoRemove=e=>fC(e);var Bxn=(e,t,n)=>e.getValue(t)==n;Bxn.autoRemove=e=>fC(e);var aXe=(e,t,n)=>{let[i,r]=n;const o=e.getValue(t);return o>=i&&o<=r};aXe.resolveFilterValue=e=>{let[t,n]=e,i=typeof t!="number"?parseFloat(t):t,r=typeof n!="number"?parseFloat(n):n,o=t===null||Number.isNaN(i)?-1/0:i,s=n===null||Number.isNaN(r)?1/0:r;if(o>s){const a=o;o=s,s=a}return[o,s]};aXe.autoRemove=e=>fC(e)||fC(e[0])&&fC(e[1]);var XS={includesString:Lxn,includesStringSensitive:Nxn,equalsString:Pxn,arrIncludes:Mxn,arrIncludesAll:Oxn,arrIncludesSome:Rxn,equals:Fxn,weakEquals:Bxn,inNumberRange:aXe};function fC(e){return e==null||e===""}var mor={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:mb("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],i=n?.getValue(e.id);return typeof i=="string"?XS.includesString:typeof i=="number"?XS.inNumberRange:typeof i=="boolean"||i!==null&&typeof i=="object"?XS.equals:Array.isArray(i)?XS.arrIncludes:XS.weakEquals},e.getFilterFn=()=>{var n,i;return aye(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(i=t.options.filterFns)==null?void 0:i[e.columnDef.filterFn])!=null?n:XS[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,i,r;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((i=t.options.enableColumnFilters)!=null?i:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(i=>i.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,i;return(n=(i=t.getState().columnFilters)==null?void 0:i.findIndex(r=>r.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(i=>{const r=e.getFilterFn(),o=i?.find(u=>u.id===e.id),s=XI(n,o?o.value:void 0);if(v5t(r,s,e)){var a;return(a=i?.filter(u=>u.id!==e.id))!=null?a:[]}const l={id:e.id,value:s};if(o){var c;return(c=i?.map(u=>u.id===e.id?l:u))!=null?c:[]}return i!=null&&i.length?[...i,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),i=r=>{var o;return(o=XI(t,r))==null?void 0:o.filter(s=>{const a=n.find(l=>l.id===s.id);if(a){const l=a.getFilterFn();if(v5t(l,s.value,a))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(i)},e.resetColumnFilters=t=>{var n,i;e.setColumnFilters(t?[]:(n=(i=e.initialState)==null?void 0:i.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function v5t(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}var vor=(e,t,n)=>n.reduce((i,r)=>{const o=r.getValue(e);return i+(typeof o=="number"?o:0)},0),yor=(e,t,n)=>{let i;return n.forEach(r=>{const o=r.getValue(e);o!=null&&(i>o||i===void 0&&o>=o)&&(i=o)}),i},bor=(e,t,n)=>{let i;return n.forEach(r=>{const o=r.getValue(e);o!=null&&(i<o||i===void 0&&o>=o)&&(i=o)}),i},_or=(e,t,n)=>{let i,r;return n.forEach(o=>{const s=o.getValue(e);s!=null&&(i===void 0?s>=s&&(i=r=s):(i>s&&(i=s),r<s&&(r=s)))}),[i,r]},wor=(e,t)=>{let n=0,i=0;if(t.forEach(r=>{let o=r.getValue(e);o!=null&&(o=+o)>=o&&(++n,i+=o)}),n)return i/n},Cor=(e,t)=>{if(!t.length)return;const n=t.map(o=>o.getValue(e));if(!uor(n))return;if(n.length===1)return n[0];const i=Math.floor(n.length/2),r=n.sort((o,s)=>o-s);return n.length%2!==0?r[i]:(r[i-1]+r[i])/2},Sor=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),xor=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,Eor=(e,t)=>t.length,Pce={sum:vor,min:yor,max:bor,extent:_or,mean:wor,median:Cor,unique:Sor,uniqueCount:xor,count:Eor},Aor={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:mb("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(i=>i!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,i;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((i=t.options.enableGrouping)!=null?i:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],i=n?.getValue(e.id);if(typeof i=="number")return Pce.sum;if(Object.prototype.toString.call(i)==="[object Date]")return Pce.extent},e.getAggregationFn=()=>{var n,i;if(!e)throw new Error;return aye(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(i=t.options.aggregationFns)==null?void 0:i[e.columnDef.aggregationFn])!=null?n:Pce[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,i;e.setGrouping(t?[]:(n=(i=e.initialState)==null?void 0:i.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const i=t.getColumn(n);return i!=null&&i.columnDef.getGroupingValue?(e._groupingValuesCache[n]=i.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,i)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var r;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((r=n.subRows)!=null&&r.length)}}};function Dor(e,t,n){if(!(t!=null&&t.length)||!n)return e;const i=e.filter(o=>!t.includes(o.id));return n==="remove"?i:[...t.map(o=>e.find(s=>s.id===o)).filter(Boolean),...i]}var Tor={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:mb("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Lo(n=>[rq(t,n)],n=>n.findIndex(i=>i.id===e.id),No(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var i;return((i=rq(t,n)[0])==null?void 0:i.id)===e.id},e.getIsLastColumn=n=>{var i;const r=rq(t,n);return((i=r[r.length-1])==null?void 0:i.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=Lo(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,i)=>r=>{let o=[];if(!(t!=null&&t.length))o=r;else{const s=[...t],a=[...r];for(;a.length&&s.length;){const l=s.shift(),c=a.findIndex(u=>u.id===l);c>-1&&o.push(a.splice(c,1)[0])}o=[...o,...a]}return Dor(o,n,i)},No(e.options,"debugTable"))}},cOe=()=>({left:[],right:[]}),kor={getInitialState:e=>({columnPinning:cOe(),...e}),getDefaultOptions:e=>({onColumnPinningChange:mb("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const i=e.getLeafColumns().map(r=>r.id).filter(Boolean);t.setColumnPinning(r=>{var o,s;if(n==="right"){var a,l;return{left:((a=r?.left)!=null?a:[]).filter(d=>!(i!=null&&i.includes(d))),right:[...((l=r?.right)!=null?l:[]).filter(d=>!(i!=null&&i.includes(d))),...i]}}if(n==="left"){var c,u;return{left:[...((c=r?.left)!=null?c:[]).filter(d=>!(i!=null&&i.includes(d))),...i],right:((u=r?.right)!=null?u:[]).filter(d=>!(i!=null&&i.includes(d)))}}return{left:((o=r?.left)!=null?o:[]).filter(d=>!(i!=null&&i.includes(d))),right:((s=r?.right)!=null?s:[]).filter(d=>!(i!=null&&i.includes(d)))}})},e.getCanPin=()=>e.getLeafColumns().some(i=>{var r,o,s;return((r=i.columnDef.enablePinning)!=null?r:!0)&&((o=(s=t.options.enableColumnPinning)!=null?s:t.options.enablePinning)!=null?o:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(a=>a.id),{left:i,right:r}=t.getState().columnPinning,o=n.some(a=>i?.includes(a)),s=n.some(a=>r?.includes(a));return o?"left":s?"right":!1},e.getPinnedIndex=()=>{var n,i;const r=e.getIsPinned();return r?(n=(i=t.getState().columnPinning)==null||(i=i[r])==null?void 0:i.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=Lo(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,i,r)=>{const o=[...i??[],...r??[]];return n.filter(s=>!o.includes(s.column.id))},No(t.options,"debugRows")),e.getLeftVisibleCells=Lo(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,i)=>(i??[]).map(o=>n.find(s=>s.column.id===o)).filter(Boolean).map(o=>({...o,position:"left"})),No(t.options,"debugRows")),e.getRightVisibleCells=Lo(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,i)=>(i??[]).map(o=>n.find(s=>s.column.id===o)).filter(Boolean).map(o=>({...o,position:"right"})),No(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,i;return e.setColumnPinning(t?cOe():(n=(i=e.initialState)==null?void 0:i.columnPinning)!=null?n:cOe())},e.getIsSomeColumnsPinned=t=>{var n;const i=e.getState().columnPinning;if(!t){var r,o;return!!((r=i.left)!=null&&r.length||(o=i.right)!=null&&o.length)}return!!((n=i[t])!=null&&n.length)},e.getLeftLeafColumns=Lo(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(i=>t.find(r=>r.id===i)).filter(Boolean),No(e.options,"debugColumns")),e.getRightLeafColumns=Lo(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(i=>t.find(r=>r.id===i)).filter(Boolean),No(e.options,"debugColumns")),e.getCenterLeafColumns=Lo(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,i)=>{const r=[...n??[],...i??[]];return t.filter(o=>!r.includes(o.id))},No(e.options,"debugColumns"))}},zre={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},uOe=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Ior={getDefaultColumnDef:()=>zre,getInitialState:e=>({columnSizing:{},columnSizingInfo:uOe(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:mb("columnSizing",e),onColumnSizingInfoChange:mb("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,i,r;const o=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:zre.minSize,(i=o??e.columnDef.size)!=null?i:zre.size),(r=e.columnDef.maxSize)!=null?r:zre.maxSize)},e.getStart=Lo(n=>[n,rq(t,n),t.getState().columnSizing],(n,i)=>i.slice(0,e.getIndex(n)).reduce((r,o)=>r+o.getSize(),0),No(t.options,"debugColumns")),e.getAfter=Lo(n=>[n,rq(t,n),t.getState().columnSizing],(n,i)=>i.slice(e.getIndex(n)+1).reduce((r,o)=>r+o.getSize(),0),No(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:i,...r}=n;return r})},e.getCanResize=()=>{var n,i;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((i=t.options.enableColumnResizing)!=null?i:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const i=r=>{if(r.subHeaders.length)r.subHeaders.forEach(i);else{var o;n+=(o=r.column.getSize())!=null?o:0}};return i(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const i=t.getColumn(e.column.id),r=i?.getCanResize();return o=>{if(!i||!r||(o.persist==null||o.persist(),dOe(o)&&o.touches&&o.touches.length>1))return;const s=e.getSize(),a=e?e.getLeafHeaders().map(v=>[v.column.id,v.column.getSize()]):[[i.id,i.getSize()]],l=dOe(o)?Math.round(o.touches[0].clientX):o.clientX,c={},u=(v,y)=>{typeof y=="number"&&(t.setColumnSizingInfo(b=>{var w,E;const A=t.options.columnResizeDirection==="rtl"?-1:1,D=(y-((w=b?.startOffset)!=null?w:0))*A,T=Math.max(D/((E=b?.startSize)!=null?E:0),-.999999);return b.columnSizingStart.forEach(M=>{let[P,F]=M;c[P]=Math.round(Math.max(F+F*T,0)*100)/100}),{...b,deltaOffset:D,deltaPercentage:T}}),(t.options.columnResizeMode==="onChange"||v==="end")&&t.setColumnSizing(b=>({...b,...c})))},d=v=>u("move",v),h=v=>{u("end",v),t.setColumnSizingInfo(y=>({...y,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=n||typeof document<"u"?document:null,p={moveHandler:v=>d(v.clientX),upHandler:v=>{f?.removeEventListener("mousemove",p.moveHandler),f?.removeEventListener("mouseup",p.upHandler),h(v.clientX)}},g={moveHandler:v=>(v.cancelable&&(v.preventDefault(),v.stopPropagation()),d(v.touches[0].clientX),!1),upHandler:v=>{var y;f?.removeEventListener("touchmove",g.moveHandler),f?.removeEventListener("touchend",g.upHandler),v.cancelable&&(v.preventDefault(),v.stopPropagation()),h((y=v.touches[0])==null?void 0:y.clientX)}},m=Lor()?{passive:!1}:!1;dOe(o)?(f?.addEventListener("touchmove",g.moveHandler,m),f?.addEventListener("touchend",g.upHandler,m)):(f?.addEventListener("mousemove",p.moveHandler,m),f?.addEventListener("mouseup",p.upHandler,m)),t.setColumnSizingInfo(v=>({...v,startOffset:l,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:i.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?uOe():(n=e.initialState.columnSizingInfo)!=null?n:uOe())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((i,r)=>i+r.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((i,r)=>i+r.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((i,r)=>i+r.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((i,r)=>i+r.getSize(),0))!=null?t:0}}},Vre=null;function Lor(){if(typeof Vre=="boolean")return Vre;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return Vre=e,Vre}function dOe(e){return e.type==="touchstart"}var Nor={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:mb("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(i=>({...i,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,i;const r=e.columns;return(n=r.length?r.some(o=>o.getIsVisible()):(i=t.getState().columnVisibility)==null?void 0:i[e.id])!=null?n:!0},e.getCanHide=()=>{var n,i;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((i=t.options.enableHiding)!=null?i:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Lo(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(i=>i.column.getIsVisible()),No(t.options,"debugRows")),e.getVisibleCells=Lo(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,i,r)=>[...n,...i,...r],No(t.options,"debugRows"))},createTable:e=>{const t=(n,i)=>Lo(()=>[i(),i().filter(r=>r.getIsVisible()).map(r=>r.id).join("_")],r=>r.filter(o=>o.getIsVisible==null?void 0:o.getIsVisible()),No(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var i;e.setColumnVisibility(n?{}:(i=e.initialState.columnVisibility)!=null?i:{})},e.toggleAllColumnsVisible=n=>{var i;n=(i=n)!=null?i:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((r,o)=>({...r,[o.id]:n||!(o.getCanHide!=null&&o.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var i;e.toggleAllColumnsVisible((i=n.target)==null?void 0:i.checked)}}};function rq(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}var Por={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},Mor={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:mb("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const i=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof i=="string"||typeof i=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,i,r,o;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((i=t.options.enableGlobalFilter)!=null?i:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&((o=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?o:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>XS.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:i}=e.options;return aye(i)?i:i==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[i])!=null?t:XS[i]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Oor={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:mb("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var i,r;if(!t){e._queue(()=>{t=!0});return}if((i=(r=e.options.autoResetAll)!=null?r:e.options.autoResetExpanded)!=null?i:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=i=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(i),e.toggleAllRowsExpanded=i=>{i??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=i=>{var r,o;e.setExpanded(i?{}:(r=(o=e.initialState)==null?void 0:o.expanded)!=null?r:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(i=>i.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>i=>{i.persist==null||i.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const i=e.getState().expanded;return i===!0||Object.values(i).some(Boolean)},e.getIsAllRowsExpanded=()=>{const i=e.getState().expanded;return typeof i=="boolean"?i===!0:!(!Object.keys(i).length||e.getRowModel().flatRows.some(r=>!r.getIsExpanded()))},e.getExpandedDepth=()=>{let i=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(o=>{const s=o.split(".");i=Math.max(i,s.length)}),i},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(i=>{var r;const o=i===!0?!0:!!(i!=null&&i[e.id]);let s={};if(i===!0?Object.keys(t.getRowModel().rowsById).forEach(a=>{s[a]=!0}):s=i,n=(r=n)!=null?r:!o,!o&&n)return{...s,[e.id]:!0};if(o&&!n){const{[e.id]:a,...l}=s;return l}return i})},e.getIsExpanded=()=>{var n;const i=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:i===!0||i?.[e.id])},e.getCanExpand=()=>{var n,i,r;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((i=t.options.enableExpanding)!=null?i:!0)&&!!((r=e.subRows)!=null&&r.length)},e.getIsAllParentsExpanded=()=>{let n=!0,i=e;for(;n&&i.parentId;)i=t.getRow(i.parentId,!0),n=i.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Rje=0,Fje=10,hOe=()=>({pageIndex:Rje,pageSize:Fje}),Ror={getInitialState:e=>({...e,pagination:{...hOe(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:mb("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var i,r;if(!t){e._queue(()=>{t=!0});return}if((i=(r=e.options.autoResetAll)!=null?r:e.options.autoResetPageIndex)!=null?i:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=i=>{const r=o=>XI(i,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(r)},e.resetPagination=i=>{var r;e.setPagination(i?hOe():(r=e.initialState.pagination)!=null?r:hOe())},e.setPageIndex=i=>{e.setPagination(r=>{let o=XI(i,r.pageIndex);const s=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,s)),{...r,pageIndex:o}})},e.resetPageIndex=i=>{var r,o;e.setPageIndex(i?Rje:(r=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageIndex)!=null?r:Rje)},e.resetPageSize=i=>{var r,o;e.setPageSize(i?Fje:(r=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageSize)!=null?r:Fje)},e.setPageSize=i=>{e.setPagination(r=>{const o=Math.max(1,XI(i,r.pageSize)),s=r.pageSize*r.pageIndex,a=Math.floor(s/o);return{...r,pageIndex:a,pageSize:o}})},e.setPageCount=i=>e.setPagination(r=>{var o;let s=XI(i,(o=e.options.pageCount)!=null?o:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...r,pageCount:s}}),e.getPageOptions=Lo(()=>[e.getPageCount()],i=>{let r=[];return i&&i>0&&(r=[...new Array(i)].fill(null).map((o,s)=>s)),r},No(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:i}=e.getState().pagination,r=e.getPageCount();return r===-1?!0:r===0?!1:i<r-1},e.previousPage=()=>e.setPageIndex(i=>i-1),e.nextPage=()=>e.setPageIndex(i=>i+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var i;return(i=e.options.pageCount)!=null?i:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var i;return(i=e.options.rowCount)!=null?i:e.getPrePaginationRowModel().rows.length}}},fOe=()=>({top:[],bottom:[]}),For={getInitialState:e=>({rowPinning:fOe(),...e}),getDefaultOptions:e=>({onRowPinningChange:mb("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,i,r)=>{const o=i?e.getLeafRows().map(l=>{let{id:c}=l;return c}):[],s=r?e.getParentRows().map(l=>{let{id:c}=l;return c}):[],a=new Set([...s,e.id,...o]);t.setRowPinning(l=>{var c,u;if(n==="bottom"){var d,h;return{top:((d=l?.top)!=null?d:[]).filter(g=>!(a!=null&&a.has(g))),bottom:[...((h=l?.bottom)!=null?h:[]).filter(g=>!(a!=null&&a.has(g))),...Array.from(a)]}}if(n==="top"){var f,p;return{top:[...((f=l?.top)!=null?f:[]).filter(g=>!(a!=null&&a.has(g))),...Array.from(a)],bottom:((p=l?.bottom)!=null?p:[]).filter(g=>!(a!=null&&a.has(g)))}}return{top:((c=l?.top)!=null?c:[]).filter(g=>!(a!=null&&a.has(g))),bottom:((u=l?.bottom)!=null?u:[]).filter(g=>!(a!=null&&a.has(g)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:i,enablePinning:r}=t.options;return typeof i=="function"?i(e):(n=i??r)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:i,bottom:r}=t.getState().rowPinning,o=n.some(a=>i?.includes(a)),s=n.some(a=>r?.includes(a));return o?"top":s?"bottom":!1},e.getPinnedIndex=()=>{var n,i;const r=e.getIsPinned();if(!r)return-1;const o=(n=r==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(s=>{let{id:a}=s;return a});return(i=o?.indexOf(e.id))!=null?i:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,i;return e.setRowPinning(t?fOe():(n=(i=e.initialState)==null?void 0:i.rowPinning)!=null?n:fOe())},e.getIsSomeRowsPinned=t=>{var n;const i=e.getState().rowPinning;if(!t){var r,o;return!!((r=i.top)!=null&&r.length||(o=i.bottom)!=null&&o.length)}return!!((n=i[t])!=null&&n.length)},e._getPinnedRows=(t,n,i)=>{var r;return((r=e.options.keepPinnedRows)==null||r?(n??[]).map(s=>{const a=e.getRow(s,!0);return a.getIsAllParentsExpanded()?a:null}):(n??[]).map(s=>t.find(a=>a.id===s))).filter(Boolean).map(s=>({...s,position:i}))},e.getTopRows=Lo(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),No(e.options,"debugRows")),e.getBottomRows=Lo(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),No(e.options,"debugRows")),e.getCenterRows=Lo(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,i)=>{const r=new Set([...n??[],...i??[]]);return t.filter(o=>!r.has(o.id))},No(e.options,"debugRows"))}},Bor={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:mb("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const i={...n},r=e.getPreGroupedRowModel().flatRows;return t?r.forEach(o=>{o.getCanSelect()&&(i[o.id]=!0)}):r.forEach(o=>{delete i[o.id]}),i})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const i=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),r={...n};return e.getRowModel().rows.forEach(o=>{Bje(r,o.id,i,!0,e)}),r}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Lo(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?pOe(e,n):{rows:[],flatRows:[],rowsById:{}},No(e.options,"debugTable")),e.getFilteredSelectedRowModel=Lo(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?pOe(e,n):{rows:[],flatRows:[],rowsById:{}},No(e.options,"debugTable")),e.getGroupedSelectedRowModel=Lo(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?pOe(e,n):{rows:[],flatRows:[],rowsById:{}},No(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let i=!!(t.length&&Object.keys(n).length);return i&&t.some(r=>r.getCanSelect()&&!n[r.id])&&(i=!1),i},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(r=>r.getCanSelect()),{rowSelection:n}=e.getState();let i=!!t.length;return i&&t.some(r=>!n[r.id])&&(i=!1),i},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,i)=>{const r=e.getIsSelected();t.setRowSelection(o=>{var s;if(n=typeof n<"u"?n:!r,e.getCanSelect()&&r===n)return o;const a={...o};return Bje(a,e.id,n,(s=i?.selectChildren)!=null?s:!0,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return lXe(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return jje(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return jje(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return i=>{var r;n&&e.toggleSelected((r=i.target)==null?void 0:r.checked)}}}},Bje=(e,t,n,i,r)=>{var o;const s=r.getRow(t,!0);n?(s.getCanMultiSelect()||Object.keys(e).forEach(a=>delete e[a]),s.getCanSelect()&&(e[t]=!0)):delete e[t],i&&(o=s.subRows)!=null&&o.length&&s.getCanSelectSubRows()&&s.subRows.forEach(a=>Bje(e,a.id,n,i,r))};function pOe(e,t){const n=e.getState().rowSelection,i=[],r={},o=function(s,a){return s.map(l=>{var c;const u=lXe(l,n);if(u&&(i.push(l),r[l.id]=l),(c=l.subRows)!=null&&c.length&&(l={...l,subRows:o(l.subRows)}),u)return l}).filter(Boolean)};return{rows:o(t.rows),flatRows:i,rowsById:r}}function lXe(e,t){var n;return(n=t[e.id])!=null?n:!1}function jje(e,t,n){var i;if(!((i=e.subRows)!=null&&i.length))return!1;let r=!0,o=!1;return e.subRows.forEach(s=>{if(!(o&&!r)&&(s.getCanSelect()&&(lXe(s,t)?o=!0:r=!1),s.subRows&&s.subRows.length)){const a=jje(s,t);a==="all"?o=!0:(a==="some"&&(o=!0),r=!1)}}),r?"all":o?"some":!1}var zje=/([0-9]+)/gm,jor=(e,t,n)=>jxn(uN(e.getValue(n)).toLowerCase(),uN(t.getValue(n)).toLowerCase()),zor=(e,t,n)=>jxn(uN(e.getValue(n)),uN(t.getValue(n))),Vor=(e,t,n)=>cXe(uN(e.getValue(n)).toLowerCase(),uN(t.getValue(n)).toLowerCase()),Hor=(e,t,n)=>cXe(uN(e.getValue(n)),uN(t.getValue(n))),Wor=(e,t,n)=>{const i=e.getValue(n),r=t.getValue(n);return i>r?1:i<r?-1:0},Uor=(e,t,n)=>cXe(e.getValue(n),t.getValue(n));function cXe(e,t){return e===t?0:e>t?1:-1}function uN(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function jxn(e,t){const n=e.split(zje).filter(Boolean),i=t.split(zje).filter(Boolean);for(;n.length&&i.length;){const r=n.shift(),o=i.shift(),s=parseInt(r,10),a=parseInt(o,10),l=[s,a].sort();if(isNaN(l[0])){if(r>o)return 1;if(o>r)return-1;continue}if(isNaN(l[1]))return isNaN(s)?-1:1;if(s>a)return 1;if(a>s)return-1}return n.length-i.length}var SO={alphanumeric:jor,alphanumericCaseSensitive:zor,text:Vor,textCaseSensitive:Hor,datetime:Wor,basic:Uor},$or={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:mb("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let i=!1;for(const r of n){const o=r?.getValue(e.id);if(Object.prototype.toString.call(o)==="[object Date]")return SO.datetime;if(typeof o=="string"&&(i=!0,o.split(zje).length>1))return SO.alphanumeric}return i?SO.text:SO.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof n?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,i;if(!e)throw new Error;return aye(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(i=t.options.sortingFns)==null?void 0:i[e.columnDef.sortingFn])!=null?n:SO[e.columnDef.sortingFn]},e.toggleSorting=(n,i)=>{const r=e.getNextSortingOrder(),o=typeof n<"u"&&n!==null;t.setSorting(s=>{const a=s?.find(f=>f.id===e.id),l=s?.findIndex(f=>f.id===e.id);let c=[],u,d=o?n:r==="desc";if(s!=null&&s.length&&e.getCanMultiSort()&&i?a?u="toggle":u="add":s!=null&&s.length&&l!==s.length-1?u="replace":a?u="toggle":u="replace",u==="toggle"&&(o||r||(u="remove")),u==="add"){var h;c=[...s,{id:e.id,desc:d}],c.splice(0,c.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else u==="toggle"?c=s.map(f=>f.id===e.id?{...f,desc:d}:f):u==="remove"?c=s.filter(f=>f.id!==e.id):c=[{id:e.id,desc:d}];return c})},e.getFirstSortDir=()=>{var n,i;return((n=(i=e.columnDef.sortDescFirst)!=null?i:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var i,r;const o=e.getFirstSortDir(),s=e.getIsSorted();return s?s!==o&&((i=t.options.enableSortingRemoval)==null||i)&&(!(n&&(r=t.options.enableMultiRemove)!=null)||r)?!1:s==="desc"?"asc":"desc":o},e.getCanSort=()=>{var n,i;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((i=t.options.enableSorting)!=null?i:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,i;return(n=(i=e.columnDef.enableMultiSort)!=null?i:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const i=(n=t.getState().sorting)==null?void 0:n.find(r=>r.id===e.id);return i?i.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,i;return(n=(i=t.getState().sorting)==null?void 0:i.findIndex(r=>r.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(i=>i.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return i=>{n&&(i.persist==null||i.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(i):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,i;e.setSorting(t?[]:(n=(i=e.initialState)==null?void 0:i.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},qor=[por,Nor,Tor,kor,gor,mor,Por,Mor,$or,Aor,Oor,Ror,For,Bor,Ior];function Gor(e){var t,n;const i=[...qor,...(t=e._features)!=null?t:[]];let r={_features:i};const o=r._features.reduce((h,f)=>Object.assign(h,f.getDefaultOptions==null?void 0:f.getDefaultOptions(r)),{}),s=h=>r.options.mergeOptions?r.options.mergeOptions(o,h):{...o,...h};let l={...{},...(n=e.initialState)!=null?n:{}};r._features.forEach(h=>{var f;l=(f=h.getInitialState==null?void 0:h.getInitialState(l))!=null?f:l});const c=[];let u=!1;const d={_features:i,options:{...o,...e},initialState:l,_queue:h=>{c.push(h),u||(u=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();u=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{r.setState(r.initialState)},setOptions:h=>{const f=XI(h,r.options);r.options=s(f)},getState:()=>r.options.state,setState:h=>{r.options.onStateChange==null||r.options.onStateChange(h)},_getRowId:(h,f,p)=>{var g;return(g=r.options.getRowId==null?void 0:r.options.getRowId(h,f,p))!=null?g:`${p?[p.id,f].join("."):f}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(h,f)=>{let p=(f?r.getPrePaginationRowModel():r.getRowModel()).rowsById[h];if(!p&&(p=r.getCoreRowModel().rowsById[h],!p))throw new Error;return p},_getDefaultColumnDef:Lo(()=>[r.options.defaultColumn],h=>{var f;return h=(f=h)!=null?f:{},{header:p=>{const g=p.header.column.columnDef;return g.accessorKey?g.accessorKey:g.accessorFn?g.id:null},cell:p=>{var g,m;return(g=(m=p.renderValue())==null||m.toString==null?void 0:m.toString())!=null?g:null},...r._features.reduce((p,g)=>Object.assign(p,g.getDefaultColumnDef==null?void 0:g.getDefaultColumnDef()),{}),...h}},No(e,"debugColumns")),_getColumnDefs:()=>r.options.columns,getAllColumns:Lo(()=>[r._getColumnDefs()],h=>{const f=function(p,g,m){return m===void 0&&(m=0),p.map(v=>{const y=hor(r,v,m,g),b=v;return y.columns=b.columns?f(b.columns,y,m+1):[],y})};return f(h)},No(e,"debugColumns")),getAllFlatColumns:Lo(()=>[r.getAllColumns()],h=>h.flatMap(f=>f.getFlatColumns()),No(e,"debugColumns")),_getAllFlatColumnsById:Lo(()=>[r.getAllFlatColumns()],h=>h.reduce((f,p)=>(f[p.id]=p,f),{}),No(e,"debugColumns")),getAllLeafColumns:Lo(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(h,f)=>{let p=h.flatMap(g=>g.getLeafColumns());return f(p)},No(e,"debugColumns")),getColumn:h=>r._getAllFlatColumnsById()[h]};Object.assign(r,d);for(let h=0;h<r._features.length;h++){const f=r._features[h];f==null||f.createTable==null||f.createTable(r)}return r}function Kor(){return e=>Lo(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},i=function(r,o,s){o===void 0&&(o=0);const a=[];for(let c=0;c<r.length;c++){const u=uZ(e,e._getRowId(r[c],c,s),r[c],c,o,void 0,s?.id);if(n.flatRows.push(u),n.rowsById[u.id]=u,a.push(u),e.options.getSubRows){var l;u.originalSubRows=e.options.getSubRows(r[c],c),(l=u.originalSubRows)!=null&&l.length&&(u.subRows=i(u.originalSubRows,o+1,u))}}return a};return n.rows=i(t),n},No(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function Yor(){return e=>Lo(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,n,i)=>!n.rows.length||t!==!0&&!Object.keys(t??{}).length||!i?n:zxn(n),No(e.options,"debugTable"))}function zxn(e){const t=[],n=i=>{var r;t.push(i),(r=i.subRows)!=null&&r.length&&i.getIsExpanded()&&i.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function Qor(){return(e,t)=>Lo(()=>{var n;return[(n=e.getColumn(t))==null?void 0:n.getFacetedRowModel()]},n=>{if(!n)return;const i=n.flatRows.flatMap(s=>{var a;return(a=s.getUniqueValues(t))!=null?a:[]}).map(Number).filter(s=>!Number.isNaN(s));if(!i.length)return;let r=i[0],o=i[i.length-1];for(const s of i)s<r?r=s:s>o&&(o=s);return[r,o]},No(e.options,"debugTable"))}function Vxn(e,t,n){return n.options.filterFromLeafRows?Zor(e,t,n):Xor(e,t,n)}function Zor(e,t,n){var i;const r=[],o={},s=(i=n.options.maxLeafRowFilterDepth)!=null?i:100,a=function(l,c){c===void 0&&(c=0);const u=[];for(let h=0;h<l.length;h++){var d;let f=l[h];const p=uZ(n,f.id,f.original,f.index,f.depth,void 0,f.parentId);if(p.columnFilters=f.columnFilters,(d=f.subRows)!=null&&d.length&&c<s){if(p.subRows=a(f.subRows,c+1),f=p,t(f)&&!p.subRows.length){u.push(f),o[f.id]=f,r.push(f);continue}if(t(f)||p.subRows.length){u.push(f),o[f.id]=f,r.push(f);continue}}else f=p,t(f)&&(u.push(f),o[f.id]=f,r.push(f))}return u};return{rows:a(e),flatRows:r,rowsById:o}}function Xor(e,t,n){var i;const r=[],o={},s=(i=n.options.maxLeafRowFilterDepth)!=null?i:100,a=function(l,c){c===void 0&&(c=0);const u=[];for(let h=0;h<l.length;h++){let f=l[h];if(t(f)){var d;if((d=f.subRows)!=null&&d.length&&c<s){const g=uZ(n,f.id,f.original,f.index,f.depth,void 0,f.parentId);g.subRows=a(f.subRows,c+1),f=g}u.push(f),r.push(f),o[f.id]=f}}return u};return{rows:a(e),flatRows:r,rowsById:o}}function Jor(){return(e,t)=>Lo(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter,e.getFilteredRowModel()],(n,i,r)=>{if(!n.rows.length||!(i!=null&&i.length)&&!r)return n;const o=[...i.map(a=>a.id).filter(a=>a!==t),r?"__global__":void 0].filter(Boolean),s=a=>{for(let l=0;l<o.length;l++)if(a.columnFilters[o[l]]===!1)return!1;return!0};return Vxn(n.rows,s,e)},No(e.options,"debugTable"))}function esr(){return(e,t)=>Lo(()=>{var n;return[(n=e.getColumn(t))==null?void 0:n.getFacetedRowModel()]},n=>{if(!n)return new Map;let i=new Map;for(let o=0;o<n.flatRows.length;o++){const s=n.flatRows[o].getUniqueValues(t);for(let a=0;a<s.length;a++){const l=s[a];if(i.has(l)){var r;i.set(l,((r=i.get(l))!=null?r:0)+1)}else i.set(l,1)}}return i},No(e.options,"debugTable"))}function tsr(){return e=>Lo(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,i)=>{if(!t.rows.length||!(n!=null&&n.length)&&!i){for(let h=0;h<t.flatRows.length;h++)t.flatRows[h].columnFilters={},t.flatRows[h].columnFiltersMeta={};return t}const r=[],o=[];(n??[]).forEach(h=>{var f;const p=e.getColumn(h.id);if(!p)return;const g=p.getFilterFn();g&&r.push({id:h.id,filterFn:g,resolvedValue:(f=g.resolveFilterValue==null?void 0:g.resolveFilterValue(h.value))!=null?f:h.value})});const s=(n??[]).map(h=>h.id),a=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(h=>h.getCanGlobalFilter());i&&a&&l.length&&(s.push("__global__"),l.forEach(h=>{var f;o.push({id:h.id,filterFn:a,resolvedValue:(f=a.resolveFilterValue==null?void 0:a.resolveFilterValue(i))!=null?f:i})}));let c,u;for(let h=0;h<t.flatRows.length;h++){const f=t.flatRows[h];if(f.columnFilters={},r.length)for(let p=0;p<r.length;p++){c=r[p];const g=c.id;f.columnFilters[g]=c.filterFn(f,g,c.resolvedValue,m=>{f.columnFiltersMeta[g]=m})}if(o.length){for(let p=0;p<o.length;p++){u=o[p];const g=u.id;if(u.filterFn(f,g,u.resolvedValue,m=>{f.columnFiltersMeta[g]=m})){f.columnFilters.__global__=!0;break}}f.columnFilters.__global__!==!0&&(f.columnFilters.__global__=!1)}}const d=h=>{for(let f=0;f<s.length;f++)if(h.columnFilters[s[f]]===!1)return!1;return!0};return Vxn(t.rows,d,e)},No(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function nsr(){return e=>Lo(()=>[e.getState().grouping,e.getPreGroupedRowModel()],(t,n)=>{if(!n.rows.length||!t.length)return n.rows.forEach(l=>{l.depth=0,l.parentId=void 0}),n;const i=t.filter(l=>e.getColumn(l)),r=[],o={},s=function(l,c,u){if(c===void 0&&(c=0),c>=i.length)return l.map(p=>(p.depth=c,r.push(p),o[p.id]=p,p.subRows&&(p.subRows=s(p.subRows,c+1,p.id)),p));const d=i[c],h=isr(l,d);return Array.from(h.entries()).map((p,g)=>{let[m,v]=p,y=`${d}:${m}`;y=u?`${u}>${y}`:y;const b=s(v,c+1,y);b.forEach(A=>{A.parentId=y});const w=c?Ixn(v,A=>A.subRows):v,E=uZ(e,y,w[0].original,g,c,void 0,u);return Object.assign(E,{groupingColumnId:d,groupingValue:m,subRows:b,leafRows:w,getValue:A=>{if(i.includes(A)){if(E._valuesCache.hasOwnProperty(A))return E._valuesCache[A];if(v[0]){var D;E._valuesCache[A]=(D=v[0].getValue(A))!=null?D:void 0}return E._valuesCache[A]}if(E._groupingValuesCache.hasOwnProperty(A))return E._groupingValuesCache[A];const T=e.getColumn(A),M=T?.getAggregationFn();if(M)return E._groupingValuesCache[A]=M(A,w,v),E._groupingValuesCache[A]}}),b.forEach(A=>{r.push(A),o[A.id]=A}),E})},a=s(n.rows,0);return a.forEach(l=>{r.push(l),o[l.id]=l}),{rows:a,flatRows:r,rowsById:o}},No(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function isr(e,t){const n=new Map;return e.reduce((i,r)=>{const o=`${r.getGroupingValue(t)}`,s=i.get(o);return s?s.push(r):i.set(o,[r]),i},n)}function rsr(e){return t=>Lo(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,i)=>{if(!i.rows.length)return i;const{pageSize:r,pageIndex:o}=n;let{rows:s,flatRows:a,rowsById:l}=i;const c=r*o,u=c+r;s=s.slice(c,u);let d;t.options.paginateExpandedRows?d={rows:s,flatRows:a,rowsById:l}:d=zxn({rows:s,flatRows:a,rowsById:l}),d.flatRows=[];const h=f=>{d.flatRows.push(f),f.subRows.length&&f.subRows.forEach(h)};return d.rows.forEach(h),d},No(t.options,"debugTable"))}function osr(){return e=>Lo(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const i=e.getState().sorting,r=[],o=i.filter(l=>{var c;return(c=e.getColumn(l.id))==null?void 0:c.getCanSort()}),s={};o.forEach(l=>{const c=e.getColumn(l.id);c&&(s[l.id]={sortUndefined:c.columnDef.sortUndefined,invertSorting:c.columnDef.invertSorting,sortingFn:c.getSortingFn()})});const a=l=>{const c=l.map(u=>({...u}));return c.sort((u,d)=>{for(let f=0;f<o.length;f+=1){var h;const p=o[f],g=s[p.id],m=g.sortUndefined,v=(h=p?.desc)!=null?h:!1;let y=0;if(m){const b=u.getValue(p.id),w=d.getValue(p.id),E=b===void 0,A=w===void 0;if(E||A){if(m==="first")return E?-1:1;if(m==="last")return E?1:-1;y=E&&A?0:E?m:-m}}if(y===0&&(y=g.sortingFn(u,d,p.id)),y!==0)return v&&(y*=-1),g.invertSorting&&(y*=-1),y}return u.index-d.index}),c.forEach(u=>{var d;r.push(u),(d=u.subRows)!=null&&d.length&&(u.subRows=a(u.subRows))}),c};return{rows:a(n.rows),flatRows:r,rowsById:n.rowsById}},No(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}function ssr(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=I.useState(()=>({current:Gor(t)})),[i,r]=I.useState(()=>n.current.initialState);return n.current.setOptions(o=>({...o,...e,state:{...i,...e.state},onStateChange:s=>{r(s),e.onStateChange==null||e.onStateChange(s)}})),n.current}var Hxn={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",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:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},asr=Object.keys(Hxn).join("|"),lsr=new RegExp(asr,"g");function csr(e){return e.replace(lsr,t=>Hxn[t])}var Jm={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};function usr(e,t,n){var i;if(n=n||{},n.threshold=(i=n.threshold)!=null?i:Jm.MATCHES,!n.accessors){const s=y5t(e,t,n);return{rankedValue:e,rank:s,accessorIndex:-1,accessorThreshold:n.threshold,passed:s>=n.threshold}}const r=gsr(e,n.accessors),o={rankedValue:e,rank:Jm.NO_MATCH,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let s=0;s<r.length;s++){const a=r[s];let l=y5t(a.itemValue,t,n);const{minRanking:c,maxRanking:u,threshold:d=n.threshold}=a.attributes;l<c&&l>=Jm.MATCHES?l=c:l>u&&(l=u),l=Math.min(l,u),l>=d&&l>o.rank&&(o.rank=l,o.passed=!0,o.accessorIndex=s,o.accessorThreshold=d,o.rankedValue=a.itemValue)}return o}function y5t(e,t,n){return e=b5t(e,n),t=b5t(t,n),t.length>e.length?Jm.NO_MATCH:e===t?Jm.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?Jm.EQUAL:e.startsWith(t)?Jm.STARTS_WITH:e.includes(` ${t}`)?Jm.WORD_STARTS_WITH:e.includes(t)?Jm.CONTAINS:t.length===1?Jm.NO_MATCH:dsr(e).includes(t)?Jm.ACRONYM:hsr(e,t))}function dsr(e){let t="";return e.split(" ").forEach(i=>{i.split("-").forEach(o=>{t+=o.substr(0,1)})}),t}function hsr(e,t){let n=0,i=0;function r(l,c,u){for(let d=u,h=c.length;d<h;d++)if(c[d]===l)return n+=1,d+1;return-1}function o(l){const c=1/l,u=n/t.length;return Jm.MATCHES+u*c}const s=r(t[0],e,0);if(s<0)return Jm.NO_MATCH;i=s;for(let l=1,c=t.length;l<c;l++){const u=t[l];if(i=r(u,e,i),!(i>-1))return Jm.NO_MATCH}const a=i-s;return o(a)}function fsr(e,t){return e.rank===t.rank?0:e.rank>t.rank?-1:1}function b5t(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=csr(e)),e}function psr(e,t){let n=t;typeof t=="object"&&(n=t.accessor);const i=n(e);return i==null?[]:Array.isArray(i)?i:[String(i)]}function gsr(e,t){const n=[];for(let i=0,r=t.length;i<r;i++){const o=t[i],s=msr(o),a=psr(e,o);for(let l=0,c=a.length;l<c;l++)n.push({itemValue:a[l],attributes:s})}return n}var _5t={maxRanking:1/0,minRanking:-1/0};function msr(e){return typeof e=="function"?_5t:{..._5t,...e}}var vsr=ho(S.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),ysr=ho(S.jsx("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight"),bsr=ho(S.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel"),_sr=ho(S.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),wsr=ho(S.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),Csr=ho(S.jsx("path",{d:"M5 13h14v-2H5zm-2 4h14v-2H3zM7 7v2h14V7z"}),"ClearAll"),Ssr=ho(S.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),xsr=ho(S.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),Esr=ho(S.jsx("path",{d:"M3 3h18v2H3zm0 16h18v2H3z"}),"DensityLarge"),Asr=ho(S.jsx("path",{d:"M3 3h18v2H3zm0 16h18v2H3zm0-8h18v2H3z"}),"DensityMedium"),Dsr=ho(S.jsx("path",{d:"M3 2h18v2H3zm0 18h18v2H3zm0-6h18v2H3zm0-6h18v2H3z"}),"DensitySmall"),Tsr=ho(S.jsx("path",{d:"M20 9H4v2h16zM4 15h16v-2H4z"}),"DragHandle"),ksr=ho([S.jsx("path",{d:"M8 8H6v7c0 1.1.9 2 2 2h9v-2H8z"},"0"),S.jsx("path",{d:"M20 3h-8c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 8h-8V7h8zM4 12H2v7c0 1.1.9 2 2 2h9v-2H4z"},"1")],"DynamicFeed"),Isr=ho(S.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),Lsr=ho(S.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Nsr=ho(S.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61"}),"FilterAlt"),Psr=ho(S.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),Msr=ho(S.jsx("path",{d:"M10.83 8H21V6H8.83zm5 5H18v-2h-4.17zM14 16.83V18h-4v-2h3.17l-3-3H6v-2h2.17l-3-3H3V6h.17L1.39 4.22 2.8 2.81l18.38 18.38-1.41 1.41z"}),"FilterListOff"),Osr=ho(S.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Rsr=ho(S.jsx("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen"),Fsr=ho(S.jsx("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit"),Bsr=ho([S.jsx("path",{d:"M18 6.41 16.59 5 12 9.58 7.41 5 6 6.41l6 6z"},"0"),S.jsx("path",{d:"m18 13-1.41-1.41L12 16.17l-4.59-4.58L6 13l6 6z"},"1")],"KeyboardDoubleArrowDown"),jsr=ho(S.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),zsr=ho(S.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz"),Vsr=ho(S.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert"),Hsr=ho(S.jsx("path",{fillRule:"evenodd",d:"M16 9V4h1c.55 0 1-.45 1-1s-.45-1-1-1H7c-.55 0-1 .45-1 1s.45 1 1 1h1v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1 1-1v-7H19v-2c-1.66 0-3-1.34-3-3"}),"PushPin"),Wsr=ho(S.jsx("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"}),"RestartAlt"),Usr=ho(S.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),$sr=ho(S.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),qsr=ho([S.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3 6.08 3 3.28 5.64 3.03 9h2.02C5.3 6.75 7.18 5 9.5 5 11.99 5 14 7.01 14 9.5S11.99 14 9.5 14c-.17 0-.33-.03-.5-.05v2.02c.17.02.33.03.5.03 1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19z"},"0"),S.jsx("path",{d:"M6.47 10.82 4 13.29l-2.47-2.47-.71.71L3.29 14 .82 16.47l.71.71L4 14.71l2.47 2.47.71-.71L4.71 14l2.47-2.47z"},"1")],"SearchOff"),Gsr=ho(S.jsx("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort"),Ksr=ho(S.jsx("path",{d:"m18 12 4-4-4-4v3H3v2h15zM6 12l-4 4 4 4v-3h15v-2H6z"}),"SyncAlt"),Ysr=ho(S.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn"),Qsr=ho(S.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");function aB(e,t,n){let i=n.initialDeps??[],r;return()=>{var o,s,a,l;let c;n.key&&((o=n.debug)!=null&&o.call(n))&&(c=Date.now());const u=e();if(!(u.length!==i.length||u.some((f,p)=>i[p]!==f)))return r;i=u;let h;if(n.key&&((s=n.debug)!=null&&s.call(n))&&(h=Date.now()),r=t(...u),n.key&&((a=n.debug)!=null&&a.call(n))){const f=Math.round((Date.now()-c)*100)/100,p=Math.round((Date.now()-h)*100)/100,g=p/16,m=(v,y)=>{for(v=String(v);v.length<y;)v=" "+v;return v};console.info(`%c⏱ ${m(p,5)} /${m(f,5)} ms`,`
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*g,120))}deg 100% 31%);`,n?.key)}return(l=n?.onChange)==null||l.call(n,r),r}}function gOe(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}var Zsr=(e,t)=>Math.abs(e-t)<1,Xsr=(e,t,n)=>{let i;return function(...r){e.clearTimeout(i),i=e.setTimeout(()=>t.apply(this,r),n)}},Jsr=e=>e,Wxn=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let r=t;r<=n;r++)i.push(r);return i},ear=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;const r=s=>{const{width:a,height:l}=s;t({width:Math.round(a),height:Math.round(l)})};if(r(n.getBoundingClientRect()),!i.ResizeObserver)return()=>{};const o=new i.ResizeObserver(s=>{const a=s[0];if(a?.borderBoxSize){const l=a.borderBoxSize[0];if(l){r({width:l.inlineSize,height:l.blockSize});return}}r(n.getBoundingClientRect())});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},w5t={passive:!0},tar=typeof window>"u"?!0:"onscrollend"in window,nar=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;let r=0;const o=e.options.useScrollendEvent&&tar?()=>{}:Xsr(i,()=>{t(r,!1)},e.options.isScrollingResetDelay),s=c=>()=>{const{horizontal:u,isRtl:d}=e.options;r=u?n.scrollLeft*(d&&-1||1):n.scrollTop,o(),t(r,c)},a=s(!0),l=s(!1);return l(),n.addEventListener("scroll",a,w5t),n.addEventListener("scrollend",l,w5t),()=>{n.removeEventListener("scroll",a),n.removeEventListener("scrollend",l)}},iar=(e,t,n)=>{if(t?.borderBoxSize){const i=t.borderBoxSize[0];if(i)return Math.round(i[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},rar=(e,{adjustments:t=0,behavior:n},i)=>{var r,o;const s=e+t;(o=(r=i.scrollElement)==null?void 0:r.scrollTo)==null||o.call(r,{[i.options.horizontal?"left":"top"]:s,behavior:n})},oar=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null;const n=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(i=>{i.forEach(r=>{this._measureElement(r.target,r)})}));return{disconnect:()=>{var i;(i=n())==null||i.disconnect(),t=null},observe:i=>{var r;return(r=n())==null?void 0:r.observe(i,{box:"border-box"})},unobserve:i=>{var r;return(r=n())==null?void 0:r.unobserve(i)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([n,i])=>{typeof i>"u"&&delete t[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Jsr,rangeExtractor:Wxn,onChange:()=>{},measureElement:iar,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...t}},this.notify=t=>{var n,i;(i=(n=this.options).onChange)==null||i.call(n,this,t)},this.maybeNotify=aB(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,r)=>{this.scrollAdjustments=0,this.scrollDirection=r?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=r,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,n)=>{const i=new Map,r=new Map;for(let o=n-1;o>=0;o--){const s=t[o];if(i.has(s.lane))continue;const a=r.get(s.lane);if(a==null||s.end>a.end?r.set(s.lane,s):s.end<a.end&&i.set(s.lane,!0),i.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((o,s)=>o.end===s.end?o.index-s.index:o.end-s.end)[0]:void 0},this.getMeasurementOptions=aB(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,n,i,r,o)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:n,scrollMargin:i,getItemKey:r,enabled:o}),{key:!1}),this.getMeasurements=aB(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:n,scrollMargin:i,getItemKey:r,enabled:o},s)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const l=this.measurementsCache.slice(0,a);for(let c=a;c<t;c++){const u=r(c),d=this.options.lanes===1?l[c-1]:this.getFurthestMeasurement(l,c),h=d?d.end+this.options.gap:n+i,f=s.get(u),p=typeof f=="number"?f:this.options.estimateSize(c),g=h+p,m=d?d.lane:c%this.options.lanes;l[c]={index:c,start:h,size:p,end:g,key:u,lane:m}}return this.measurementsCache=l,l},{key:!1,debug:()=>this.options.debug}),this.calculateRange=aB(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,n,i)=>this.range=t.length>0&&n>0?sar({measurements:t,outerSize:n,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=aB(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(t,n,i,r)=>n===null?[]:t({startIndex:n.startIndex,endIndex:n.endIndex,overscan:i,count:r}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const n=this.options.indexAttribute,i=t.getAttribute(n);return i?parseInt(i,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(t,n)=>{const i=this.indexFromElement(t),r=this.measurementsCache[i];if(!r)return;const o=r.key,s=this.elementsCache.get(o);s!==t&&(s&&this.observer.unobserve(s),this.observer.observe(t),this.elementsCache.set(o,t)),t.isConnected&&this.resizeItem(i,this.options.measureElement(t,n,this))},this.resizeItem=(t,n)=>{const i=this.measurementsCache[t];if(!i)return;const r=this.itemSizeCache.get(i.key)??i.size,o=n-r;o!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,o,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,n)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((n,i)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(i))});return}this._measureElement(t,void 0)},this.getVirtualItems=aB(()=>[this.getIndexes(),this.getMeasurements()],(t,n)=>{const i=[];for(let r=0,o=t.length;r<o;r++){const s=t[r],a=n[s];i.push(a)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const n=this.getMeasurements();if(n.length!==0)return gOe(n[Uxn(0,n.length-1,i=>gOe(n[i]).start,t)])},this.getOffsetForAlignment=(t,n)=>{const i=this.getSize(),r=this.getScrollOffset();n==="auto"&&t>=r+i&&(n="end"),n==="end"&&(t-=i);const o=this.options.horizontal?"scrollWidth":"scrollHeight",a=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[o]:this.scrollElement[o]:0)-i;return Math.max(Math.min(a,t),0)},this.getOffsetForIndex=(t,n="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const i=this.measurementsCache[t];if(!i)return;const r=this.getSize(),o=this.getScrollOffset();if(n==="auto")if(i.end>=o+r-this.options.scrollPaddingEnd)n="end";else if(i.start<=o+this.options.scrollPaddingStart)n="start";else return[o,n];const s=i.start-this.options.scrollPaddingStart+(i.size-r)/2;switch(n){case"center":return[this.getOffsetForAlignment(s,n),n];case"end":return[this.getOffsetForAlignment(i.end+this.options.scrollPaddingEnd,n),n];default:return[this.getOffsetForAlignment(i.start-this.options.scrollPaddingStart,n),n]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:n="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,n),{adjustments:void 0,behavior:i})},this.scrollToIndex=(t,{align:n="auto",behavior:i}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const r=this.getOffsetForIndex(t,n);if(!r)return;const[o,s]=r;this._scrollToOffset(o,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(t))){const[l]=gOe(this.getOffsetForIndex(t,s));Zsr(l,this.getScrollOffset())||this.scrollToIndex(t,{align:s,behavior:i})}else this.scrollToIndex(t,{align:s,behavior:i})}))},this.scrollBy=(t,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var t;const n=this.getMeasurements();let i;return n.length===0?i=this.options.paddingStart:i=this.options.lanes===1?((t=n[n.length-1])==null?void 0:t.end)??0:Math.max(...n.slice(-this.options.lanes).map(r=>r.end)),Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:n,behavior:i})=>{this.options.scrollToFn(t,{behavior:i,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}},Uxn=(e,t,n,i)=>{for(;e<=t;){const r=(e+t)/2|0,o=n(r);if(o<i)e=r+1;else if(o>i)t=r-1;else return r}return e>0?e-1:0};function sar({measurements:e,outerSize:t,scrollOffset:n}){const i=e.length-1,o=Uxn(0,i,a=>e[a].start,n);let s=o;for(;s<i&&e[s].end<n+t;)s++;return{startIndex:o,endIndex:s}}var C5t=typeof document<"u"?I.useLayoutEffect:I.useEffect;function aar(e){const t=I.useReducer(()=>({}),{})[1],n={...e,onChange:(r,o)=>{var s;o?lf.flushSync(t):t(),(s=e.onChange)==null||s.call(e,r,o)}},[i]=I.useState(()=>new oar(n));return i.setOptions(n),C5t(()=>i._didMount(),[]),C5t(()=>i._willUpdate()),i}function $xn(e){return aar({observeElementRect:ear,observeElementOffset:nar,scrollToFn:rar,...e})}var lar=e=>t=>t!==null&&typeof t=="object"&&e in t,Hre=lar("match"),Wre=e=>typeof e<"u";function car({curr:e,next:t,prev:n,clipBy:i=3}){const r=e.text.split(" "),o=r.length;if(e.match||i>=o)return e.text;const s="...";return Wre(t)&&Wre(n)&&Hre(n)&&Hre(t)?o>i*2?[...r.slice(0,i),s,...r.slice(-i)].join(" "):e.text:Wre(t)&&Hre(t)?[s,...r.slice(-i)].join(" "):Wre(n)&&Hre(n)?[...r.slice(0,i),s].join(" "):e.text}var uar=e=>e.replace(/[|\\{}()[\]^$+*?.-]/g,t=>`\\${t}`),dar=e=>e.replace(/\s{2,}/g," ").split(" ").join("|"),har=({terms:e,matchExactly:t=!1})=>{if(typeof e!="string")throw new TypeError("Expected a string");const n=uar(e.trim());return`(${t?n:dar(n)})`},far=({terms:e,matchExactly:t=!1})=>{try{const n=/^([/~@;%#'])(.*?)\1([gimsuy]*)$/.exec(e);return n?new RegExp(n[2],n[3]):new RegExp(har({terms:e,matchExactly:t}),"ig")}catch{throw new TypeError("Expected terms to be either a string or a RegExp!")}},S5t=36,qxn="";for(;S5t--;)qxn+=S5t.toString(36);function x5t(e=11){let t="",n=e;for(;n--;)t+=qxn[Math.random()*36|0];return t}var par=e=>e.length>0,mOe=({text:e,query:t,clipBy:n,matchExactly:i=!1})=>{const r=typeof t=="string"?t.trim():t;if(r==="")return[{key:x5t(),text:e,match:!1}];const o=far({terms:t,matchExactly:i});return e.split(o).filter(par).map(s=>({key:x5t(),text:s,match:i?s.toLowerCase()===r.toLowerCase():o.test(s)})).map((s,a,l)=>({...s,...typeof n=="number"&&{text:car({curr:s,...a<l.length-1&&{next:l[a+1]},...a>0&&{prev:l[a-1]},clipBy:n})}}))},L8=e=>{var t,n,i,r;return(r=(t=e.id)!==null&&t!==void 0?t:(i=(n=e.accessorKey)===null||n===void 0?void 0:n.toString)===null||i===void 0?void 0:i.call(n))!==null&&r!==void 0?r:e.header},Afe=e=>{const t=[],n=i=>{i.forEach(r=>{r.columns?n(r.columns):t.push(r)})};return n(e),t},Gxn=({columnDefs:e,tableOptions:t})=>{const{aggregationFns:n={},defaultDisplayColumn:i,filterFns:r={},sortingFns:o={},state:{columnFilterFns:s={}}={}}=t;return e.map(a=>{var l,c;if(a.id||(a.id=L8(a)),a.columnDefType||(a.columnDefType="data"),!((l=a.columns)===null||l===void 0)&&l.length)a.columnDefType="group",a.columns=Gxn({columnDefs:a.columns,tableOptions:t});else if(a.columnDefType==="data"){if(Array.isArray(a.aggregationFn)){const u=a.aggregationFn;a.aggregationFn=(d,h,f)=>u.map(p=>{var g;return(g=n[p])===null||g===void 0?void 0:g.call(n,d,h,f)})}Object.keys(r).includes(s[a.id])&&(a.filterFn=(c=r[s[a.id]])!==null&&c!==void 0?c:r.fuzzy,a._filterFn=s[a.id]),Object.keys(o).includes(a.sortingFn)&&(a.sortingFn=o[a.sortingFn])}else a.columnDefType==="display"&&(a=Object.assign(Object.assign({},i),a));return a})},Kxn=(e,t,n)=>{e.getCanPin()&&e.pin(t.getIsPinned());const i=[...n];return i.splice(i.indexOf(t.id),0,i.splice(i.indexOf(e.id),1)[0]),i},gar=e=>{const{filterVariant:t}=e;return t==="multi-select"?"arrIncludesSome":t?.includes("range")?"betweenInclusive":t==="select"||t==="checkbox"?"equals":"fuzzy"},lye=({header:e,table:t})=>{var n;const{options:{columnFilterModeOptions:i}}=t,{column:r}=e,{columnDef:o}=r,{filterVariant:s}=o,a=!!(s?.startsWith("date")||s?.startsWith("time")),l=s==="autocomplete",c=s?.includes("range")||["between","betweenInclusive","inNumberRange"].includes(o._filterFn),u=s==="select",d=s==="multi-select",h=["autocomplete","text"].includes(s)||!u&&!d,f=o._filterFn,p=(n=o?.columnFilterModeOptions)!==null&&n!==void 0?n:i,g=r.getFacetedUniqueValues();return{allowedColumnFilterOptions:p,currentFilterOption:f,facetedUniqueValues:g,isAutocompleteFilter:l,isDateFilter:a,isMultiSelectFilter:d,isRangeFilter:c,isSelectFilter:u,isTextboxFilter:h}},Yxn=({header:e,table:t})=>{const{column:n}=e,{columnDef:i}=n,{facetedUniqueValues:r,isAutocompleteFilter:o,isMultiSelectFilter:s,isSelectFilter:a}=lye({header:e,table:t});return I.useMemo(()=>{var l;return(l=i.filterSelectOptions)!==null&&l!==void 0?l:(a||s||o)&&r?Array.from(r.keys()).filter(c=>c!=null).sort((c,u)=>c.localeCompare(u)):void 0},[i.filterSelectOptions,r,s,a])},mar=(e,t,n=-1,i=0,r,o)=>uZ(e,"mrt-row-create",Object.assign({},...Afe(e.options.columns).map(s=>({[L8(s)]:""}))),n,i,r,o),yar=(e,t,n)=>{let i=0;return e.columnFiltersMeta[n]&&(i=fsr(e.columnFiltersMeta[n],t.columnFiltersMeta[n])),i===0?SO.alphanumeric(e,t,n):i},bar=Object.assign(Object.assign({},SO),{fuzzy:yar}),_ar=(e,t)=>Math.max(...Object.values(t.columnFiltersMeta).map(n=>n.rank))-Math.max(...Object.values(e.columnFiltersMeta).map(n=>n.rank)),pi=(e,t)=>e instanceof Function?e(t):e,GA=e=>{var t,n;let i="",r="";return e&&(typeof e!="object"?(i=e,r=e):(i=(t=e.label)!==null&&t!==void 0?t:e.value,r=(n=e.value)!==null&&n!==void 0?n:i)),{label:i,value:r}},Qxn=(e,t)=>{const{getCenterRows:n,getPrePaginationRowModel:i,getRowModel:r,getState:o,getTopRows:s,options:{createDisplayMode:a,enablePagination:l,enableRowPinning:c,manualPagination:u,positionCreatingRow:d,rowPinningDisplayMode:h}}=e,{creatingRow:f,pagination:p}=o(),g=war(e);let m=[];if(!g)m=!c||h?.includes("sticky")?t?i().rows:r().rows:n();else{if(m=i().rows.sort((v,y)=>_ar(v,y)),l&&!u&&!t){const v=p.pageIndex*p.pageSize;m=m.slice(v,v+p.pageSize)}c&&!h?.includes("sticky")&&(m=m.filter(v=>!v.getIsPinned()))}if(c&&h?.includes("sticky")){const v=m.filter(y=>y.getIsPinned()).map(y=>y.id);m=[...s().filter(y=>!v.includes(y.id)),...m]}if(d!==void 0&&f&&a==="row"){const v=isNaN(+d)?d==="top"?0:m.length:+d;m=[...m.slice(0,v),f,...m.slice(v)]}return m},Zxn=e=>{const{getState:t,options:{enableGlobalFilterRankedResults:n,manualExpanding:i,manualFiltering:r,manualGrouping:o,manualSorting:s}}=e,{expanded:a,globalFilterFn:l}=t();return!i&&!r&&!o&&!s&&n&&l==="fuzzy"&&a!==!0&&!Object.values(a).some(Boolean)},war=e=>{const{globalFilter:t,sorting:n}=e.getState();return Zxn(e)&&t&&!Object.values(n).some(Boolean)},Dfe=({row:e,table:t})=>{const{options:{enableRowSelection:n}}=t;return e.getIsSelected()||pi(n,e)&&e.getCanSelectSubRows()&&e.getIsAllSubRowsSelected()},Xxn=({row:e,staticRowIndex:t=0,table:n})=>(i,r)=>{var o;const{getState:s,options:{enableBatchRowSelection:a,enableMultiRowSelection:l,enableRowPinning:c,manualPagination:u,rowPinningDisplayMode:d},refs:{lastSelectedRowId:h}}=n,{pagination:{pageIndex:f,pageSize:p}}=s(),g=u?0:p*f,m=Dfe({row:e,table:n});e.toggleSelected(r??!m);const v=new Set([e.id]);if(a&&l&&i.nativeEvent.shiftKey&&h.current!==null){const y=Qxn(n,!0),b=y.findIndex(w=>w.id===h.current);if(b!==-1){const w=Dfe({row:y?.[b],table:n}),E=t+g,[A,D]=b<E?[b,E]:[E,b];if(m!==w)for(let T=A;T<=D;T++)y[T].toggleSelected(!m),v.add(y[T].id)}}h.current=e.id,e.getCanSelectSubRows()&&e.getIsAllSubRowsSelected()&&((o=e.subRows)===null||o===void 0||o.forEach(y=>y.toggleSelected(!1))),c&&d?.includes("select")&&v.forEach(y=>{n.getRow(y).pin(m?!1:d?.includes("bottom")?"bottom":"top")})},uXe=({table:e})=>(t,n,i)=>{const{options:{enableRowPinning:r,rowPinningDisplayMode:o,selectAllMode:s},refs:{lastSelectedRowId:a}}=e;s==="all"||i?e.toggleAllRowsSelected(n??t.target.checked):e.toggleAllPageRowsSelected(n??t.target.checked),r&&o?.includes("select")&&e.setRowPinning({bottom:[],top:[]}),a.current=null},Ure=e=>e.ctrlKey&&navigator.platform.toLowerCase().includes("win")||e.metaKey&&navigator.platform.toLowerCase().includes("mac"),Jxn=({cell:e,table:t})=>{const{enableEditing:n}=t.options,{column:{columnDef:i},row:r}=e;return!e.getIsPlaceholder()&&pi(n,r)&&pi(i.enableEditing,r)!==!1},eEn=({cell:e,table:t})=>{const{options:{editDisplayMode:n},refs:{editInputRefs:i}}=t,{column:r}=e;Jxn({cell:e,table:t})&&n==="cell"&&(t.setEditingCell(e),queueMicrotask(()=>{var o,s;const a=(o=i.current)===null||o===void 0?void 0:o[r.id];a&&(a.focus(),(s=a.select)===null||s===void 0||s.call(a))}))},dXe=({cell:e,cellElements:t,cellValue:n,containerElement:i,event:r,header:o,parentElement:s,table:a})=>{var l,c,u,d,h,f,p,g;if(!a.options.enableKeyboardShortcuts||r.isPropagationStopped())return;const m=r.currentTarget;if(n&&Ure(r)&&r.key==="c")navigator.clipboard.writeText(n);else if(["Enter"," "].includes(r.key))if(((l=e?.column)===null||l===void 0?void 0:l.id)==="mrt-row-select")r.preventDefault(),Xxn({row:e.row,table:a,staticRowIndex:+r.target.getAttribute("data-index")})(r);else if(((c=o?.column)===null||c===void 0?void 0:c.id)==="mrt-row-select"&&a.options.enableSelectAll)r.preventDefault(),uXe({table:a})(r);else if(((u=e?.column)===null||u===void 0?void 0:u.id)==="mrt-row-expand"&&(e.row.getCanExpand()||!((h=(d=a.options).renderDetailPanel)===null||h===void 0)&&h.call(d,{row:e.row,table:a})))r.preventDefault(),e.row.toggleExpanded();else if(((f=o?.column)===null||f===void 0?void 0:f.id)==="mrt-row-expand"&&a.options.enableExpandAll)r.preventDefault(),a.toggleAllRowsExpanded();else if(e?.column.id==="mrt-row-pin")r.preventDefault(),e.row.getIsPinned()?e.row.pin(!1):e.row.pin(!((p=a.options.rowPinningDisplayMode)===null||p===void 0)&&p.includes("bottom")?"bottom":"top");else if(o&&Ure(r)){const v=m.querySelector(`button[aria-label="${a.options.localization.columnActions}"]`);v&&v.click()}else!((g=o?.column)===null||g===void 0)&&g.getCanSort()&&(r.preventDefault(),o.column.toggleSorting());else if(["ArrowRight","ArrowLeft","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(r.key)){r.preventDefault();const v=s||m.closest("tr"),y=i||m.closest("table"),b=t||Array.from(y?.querySelectorAll("th, td")||[]),w=b.indexOf(m),E=parseInt(m.getAttribute("data-index")||"0");let A;const D=(P,F)=>{var N;const j=P==="c"?v:P==="f"?y?.querySelector("tr"):(N=y?.lastElementChild)===null||N===void 0?void 0:N.lastElementChild,W=Array.from(j?.children||[]);return F==="f"?W[0]:W[W.length-1]},T=(P,F)=>{var N;const j=F==="t"?y?.querySelector("tr"):(N=y?.lastElementChild)===null||N===void 0?void 0:N.lastElementChild;return Array.from(j?.children||[])[P]},M=(P,F)=>(F==="f"?b.slice(w+1):b.slice(0,w).reverse()).find(j=>j.matches(`[data-index="${P}"]`));switch(r.key){case"ArrowRight":A=M(E+1,"f");break;case"ArrowLeft":A=M(E-1,"b");break;case"ArrowUp":A=M(E,"b");break;case"ArrowDown":A=M(E,"f");break;case"Home":A=D(Ure(r)?"f":"c","f");break;case"End":A=D(Ure(r)?"l":"c","l");break;case"PageUp":A=T(E,"t");break;case"PageDown":A=T(E,"b");break}A&&A.focus()}};function zF({header:e,id:t,size:n,tableOptions:i}){const{defaultDisplayColumn:r,displayColumnDefOptions:o,localization:s}=i;return Object.assign(Object.assign(Object.assign(Object.assign({},r),{header:e?s[e]:"",size:n}),o?.[t]),{id:t})}var tEn=e=>{const{enableRowPinning:t,rowPinningDisplayMode:n}=e;return!!(t&&!n?.startsWith("select"))},nEn=e=>{const{enableRowDragging:t,enableRowOrdering:n}=e;return!!(t||n)},hXe=e=>{const{enableExpanding:t,enableGrouping:n,renderDetailPanel:i,state:{grouping:r}}=e;return!!(t||n&&r?.length||i)},fXe=e=>{const{createDisplayMode:t,editDisplayMode:n,enableEditing:i,enableRowActions:r,state:{creatingRow:o}}=e;return!!(r||o&&t==="row"||i&&["modal","row"].includes(n??""))},iEn=e=>!!e.enableRowSelection,rEn=e=>!!e.enableRowNumbers,oEn=e=>e.layoutMode==="grid-no-grow",Car=e=>[tEn(e)&&"mrt-row-pin",nEn(e)&&"mrt-row-drag",e.positionActionsColumn==="first"&&fXe(e)&&"mrt-row-actions",e.positionExpandColumn==="first"&&hXe(e)&&"mrt-row-expand",iEn(e)&&"mrt-row-select",rEn(e)&&"mrt-row-numbers"].filter(Boolean),Sar=e=>[e.positionActionsColumn==="last"&&fXe(e)&&"mrt-row-actions",e.positionExpandColumn==="last"&&hXe(e)&&"mrt-row-expand",oEn(e)&&"mrt-row-spacer"].filter(Boolean),pXe=(e,t=!1)=>{const{state:{columnOrder:n=[]}}=e,i=Car(e),r=Sar(e),o=Afe(e.columns).map(a=>L8(a));let s=t?o:Array.from(new Set([...n,...o]));return s=s.filter(a=>!i.includes(a)&&!r.includes(a)),[...i,...s,...r]},xar=Object.assign({},Pce),sEn=(e,t,n,i)=>{const r=usr(e.getValue(t),n,{threshold:Jm.MATCHES});return i(r),r.passed};sEn.autoRemove=e=>!e;var aEn=(e,t,n)=>{var i;return!!(!((i=e.getValue(t))===null||i===void 0)&&i.toString().toLowerCase().trim().includes(n.toString().toLowerCase().trim()))};aEn.autoRemove=e=>!e;var lEn=(e,t,n)=>{var i;return!!(!((i=e.getValue(t))===null||i===void 0)&&i.toString().toLowerCase().trim().startsWith(n.toString().toLowerCase().trim()))};lEn.autoRemove=e=>!e;var cEn=(e,t,n)=>{var i;return!!(!((i=e.getValue(t))===null||i===void 0)&&i.toString().toLowerCase().trim().endsWith(n.toString().toLowerCase().trim()))};cEn.autoRemove=e=>!e;var cye=(e,t,n)=>{var i;return((i=e.getValue(t))===null||i===void 0?void 0:i.toString().toLowerCase().trim())===n.toString().toLowerCase().trim()};cye.autoRemove=e=>!e;var uEn=(e,t,n)=>{var i;return((i=e.getValue(t))===null||i===void 0?void 0:i.toString().toLowerCase().trim())!==n.toString().toLowerCase().trim()};uEn.autoRemove=e=>!e;var uye=(e,t,n)=>{var i,r,o;return!isNaN(+n)&&!isNaN(+e.getValue(t))?+((i=e.getValue(t))!==null&&i!==void 0?i:0)>+n:((o=(r=e.getValue(t))!==null&&r!==void 0?r:"")===null||o===void 0?void 0:o.toString().toLowerCase().trim())>n.toString().toLowerCase().trim()};uye.autoRemove=e=>!e;var gXe=(e,t,n)=>cye(e,t,n)||uye(e,t,n);gXe.autoRemove=e=>!e;var dye=(e,t,n)=>{var i,r,o;return!isNaN(+n)&&!isNaN(+e.getValue(t))?+((i=e.getValue(t))!==null&&i!==void 0?i:0)<+n:((o=(r=e.getValue(t))!==null&&r!==void 0?r:"")===null||o===void 0?void 0:o.toString().toLowerCase().trim())<n.toString().toLowerCase().trim()};dye.autoRemove=e=>!e;var mXe=(e,t,n)=>cye(e,t,n)||dye(e,t,n);mXe.autoRemove=e=>!e;var dEn=(e,t,n)=>(["",void 0].includes(n[0])||uye(e,t,n[0]))&&(!isNaN(+n[0])&&!isNaN(+n[1])&&+n[0]>+n[1]||["",void 0].includes(n[1])||dye(e,t,n[1]));dEn.autoRemove=e=>!e;var hEn=(e,t,n)=>(["",void 0].includes(n[0])||gXe(e,t,n[0]))&&(!isNaN(+n[0])&&!isNaN(+n[1])&&+n[0]>+n[1]||["",void 0].includes(n[1])||mXe(e,t,n[1]));hEn.autoRemove=e=>!e;var fEn=(e,t,n)=>{var i;return!(!((i=e.getValue(t))===null||i===void 0)&&i.toString().trim())};fEn.autoRemove=e=>!e;var pEn=(e,t,n)=>{var i;return!!(!((i=e.getValue(t))===null||i===void 0)&&i.toString().trim())};pEn.autoRemove=e=>!e;var Ear=Object.assign(Object.assign({},XS),{between:dEn,betweenInclusive:hEn,contains:aEn,empty:fEn,endsWith:cEn,equals:cye,fuzzy:sEn,greaterThan:uye,greaterThanOrEqualTo:gXe,lessThan:dye,lessThanOrEqualTo:mXe,notEmpty:pEn,notEquals:uEn,startsWith:lEn});function Do(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}var gEn=e=>{var{row:t,table:n,variant:i="icon"}=e,r=Do(e,["row","table","variant"]);const{getState:o,options:{icons:{CancelIcon:s,SaveIcon:a},localization:l,onCreatingRowCancel:c,onCreatingRowSave:u,onEditingRowCancel:d,onEditingRowSave:h},refs:{editInputRefs:f},setCreatingRow:p,setEditingRow:g}=n,{creatingRow:m,editingRow:v,isSaving:y}=o(),b=m?.id===t.id,w=v?.id===t.id,E=()=>{b?(c?.({row:t,table:n}),p(null)):w&&(d?.({row:t,table:n}),g(null)),t._valuesCache={}},A=()=>{var D,T;(T=Object.values((D=f.current)!==null&&D!==void 0?D:{}).filter(M=>{var P,F;return t.id===((F=(P=M?.name)===null||P===void 0?void 0:P.split("_"))===null||F===void 0?void 0:F[0])}))===null||T===void 0||T.forEach(M=>{M.value!==void 0&&Object.hasOwn(t?._valuesCache,M.name)&&(t._valuesCache[M.name]=M.value)}),b?u?.({exitCreatingMode:()=>p(null),row:t,table:n,values:t._valuesCache}):w&&h?.({exitEditingMode:()=>g(null),row:t,table:n,values:t?._valuesCache})};return S.jsx(tn,{onClick:D=>D.stopPropagation(),sx:D=>Object.assign({display:"flex",gap:"0.75rem"},pi(r?.sx,D)),children:i==="icon"?S.jsxs(S.Fragment,{children:[S.jsx(uo,{title:l.cancel,children:S.jsx(Qr,{"aria-label":l.cancel,onClick:E,children:S.jsx(s,{})})}),(b&&u||w&&h)&&S.jsx(uo,{title:l.save,children:S.jsx(Qr,{"aria-label":l.save,color:"info",disabled:y,onClick:A,children:y?S.jsx(L9,{size:18}):S.jsx(a,{})})})]}):S.jsxs(S.Fragment,{children:[S.jsx(na,{onClick:E,sx:{minWidth:"100px"},children:l.cancel}),S.jsxs(na,{disabled:y,onClick:A,sx:{minWidth:"100px"},variant:"contained",children:[y&&S.jsx(L9,{color:"inherit",size:18}),l.save]})]})})},oq=e=>e.replace(/[^a-zA-Z0-9]/g,"_"),Aar=(e,t)=>{var n;const i=pi(e,t),r=(n=i?.baseBackgroundColor)!==null&&n!==void 0?n:t.palette.mode==="dark"?P0(t.palette.background.default,.05):t.palette.background.default;return Object.assign({baseBackgroundColor:r,cellNavigationOutlineColor:t.palette.primary.main,draggingBorderColor:t.palette.primary.main,matchHighlightColor:t.palette.mode==="dark"?fb(t.palette.warning.dark,.25):P0(t.palette.warning.light,.5),menuBackgroundColor:P0(r,.07),pinnedRowBackgroundColor:pr(t.palette.primary.main,.1),selectedRowBackgroundColor:pr(t.palette.primary.main,.2)},i)},Vje={content:'""',height:"100%",left:0,position:"absolute",top:0,width:"100%",zIndex:-1},mEn=({column:e,table:t,theme:n})=>{const{baseBackgroundColor:i}=t.options.mrtTheme,r=e?.getIsPinned();return{'&[data-pinned="true"]':{"&:before":Object.assign({backgroundColor:pr(fb(i,n.palette.mode==="dark"?.05:.01),.97),boxShadow:e?r==="left"&&e.getIsLastColumn(r)?`-4px 0 4px -4px ${pr(n.palette.grey[700],.5)} inset`:r==="right"&&e.getIsFirstColumn(r)?`4px 0 4px -4px ${pr(n.palette.grey[700],.5)} inset`:void 0:void 0},Vje)}}},vXe=({column:e,header:t,table:n,tableCellProps:i,theme:r})=>{var o,s,a,l,c,u;const{getState:d,options:{enableColumnVirtualization:h,layoutMode:f}}=n,{draggingColumn:p}=d(),{columnDef:g}=e,{columnDefType:m}=g,v=g.columnDefType!=="group"&&e.getIsPinned(),y={minWidth:`max(calc(var(--${t?"header":"col"}-${oq((o=t?.id)!==null&&o!==void 0?o:e.id)}-size) * 1px), ${(s=g.minSize)!==null&&s!==void 0?s:30}px)`,width:`calc(var(--${t?"header":"col"}-${oq((a=t?.id)!==null&&a!==void 0?a:e.id)}-size) * 1px)`};f==="grid"?y.flex=`${[0,!1].includes(g.grow)?0:`var(--${t?"header":"col"}-${oq((l=t?.id)!==null&&l!==void 0?l:e.id)}-size)`} 0 auto`:f==="grid-no-grow"&&(y.flex=`${+(g.grow||0)} 0 auto`);const b=v?Object.assign(Object.assign({},mEn({column:e,table:n,theme:r})),{left:v==="left"?`${e.getStart("left")}px`:void 0,opacity:.97,position:"sticky",right:v==="right"?`${e.getAfter("right")}px`:void 0}):{};return Object.assign(Object.assign(Object.assign({backgroundColor:"inherit",backgroundImage:"inherit",display:f?.startsWith("grid")?"flex":void 0,justifyContent:m==="group"?"center":f?.startsWith("grid")?i.align:void 0,opacity:((c=n.getState().draggingColumn)===null||c===void 0?void 0:c.id)===e.id||((u=n.getState().hoveredColumn)===null||u===void 0?void 0:u.id)===e.id?.5:1,position:"relative",transition:h?"none":"padding 150ms ease-in-out",zIndex:e.getIsResizing()||p?.id===e.id?2:m!=="group"&&v?1:0,"&:focus-visible":{outline:`2px solid ${n.options.mrtTheme.cellNavigationOutlineColor}`,outlineOffset:"-2px"}},b),y),pi(i?.sx,r))},vEn=({table:e})=>({alignItems:"flex-start",backgroundColor:e.options.mrtTheme.baseBackgroundColor,display:"grid",flexWrap:"wrap-reverse",minHeight:"3.5rem",overflow:"hidden",position:"relative",transition:"all 150ms ease-in-out",zIndex:1}),$re=e=>e.direction==="rtl"?{style:{transform:"scaleX(-1)"}}:void 0,Pw=e=>({disableInteractive:!0,enterDelay:1e3,enterNextDelay:1e3,placement:e}),Yg=e=>{var{icon:t,label:n,onOpenSubMenu:i,table:r}=e,o=Do(e,["icon","label","onOpenSubMenu","table"]);const{options:{icons:{ArrowRightIcon:s}}}=r;return S.jsxs(bo,Object.assign({sx:{alignItems:"center",justifyContent:"space-between",minWidth:"120px",my:0,py:"6px"},tabIndex:0},o,{children:[S.jsxs(tn,{sx:{alignItems:"center",display:"flex"},children:[S.jsx($m,{children:t}),n]}),i&&S.jsx(Qr,{onClick:i,onMouseEnter:i,size:"small",sx:{p:0},children:S.jsx(s,{})})]}))},Dar=e=>{var{anchorEl:t,handleEdit:n,row:i,setAnchorEl:r,staticRowIndex:o,table:s}=e,a=Do(e,["anchorEl","handleEdit","row","setAnchorEl","staticRowIndex","table"]);const{getState:l,options:{editDisplayMode:c,enableEditing:u,icons:{EditIcon:d},localization:h,mrtTheme:{menuBackgroundColor:f},renderRowActionMenuItems:p}}=s,{density:g}=l(),m=I.useMemo(()=>{const v=[],y=pi(u,i)&&["modal","row"].includes(c)&&S.jsx(Yg,{icon:S.jsx(d,{}),label:h.edit,onClick:n,table:s},"edit");y&&v.push(y);const b=p?.({closeMenu:()=>r(null),row:i,staticRowIndex:o,table:s});return b?.length&&v.push(...b),v},[p,i,o,s]);return m.length?S.jsx(Mb,Object.assign({MenuListProps:{dense:g==="compact",sx:{backgroundColor:f}},anchorEl:t,disableScrollLock:!0,onClick:v=>v.stopPropagation(),onClose:()=>r(null),open:!!t},a,{children:m})):null},E5t={"&:hover":{opacity:1},height:"2rem",ml:"10px",opacity:.5,transition:"opacity 150ms",width:"2rem"},Tar=e=>{var t,{cell:n,row:i,staticRowIndex:r,table:o}=e,s=Do(e,["cell","row","staticRowIndex","table"]);const{getState:a,options:{createDisplayMode:l,editDisplayMode:c,enableEditing:u,icons:{EditIcon:d,MoreHorizIcon:h},localization:f,renderRowActionMenuItems:p,renderRowActions:g},setEditingRow:m}=o,{creatingRow:v,editingRow:y}=a(),b=v?.id===i.id,w=y?.id===i.id,E=b&&l==="row"||w&&c==="row",[A,D]=I.useState(null),T=P=>{P.stopPropagation(),P.preventDefault(),D(P.currentTarget)},M=P=>{P.stopPropagation(),m(Object.assign({},i)),D(null)};return S.jsx(S.Fragment,{children:g&&!E?g({cell:n,row:i,staticRowIndex:r,table:o}):E?S.jsx(gEn,{row:i,table:o}):!p&&pi(u,i)&&["modal","row"].includes(c)?S.jsx(uo,{placement:"right",title:f.edit,children:S.jsx(Qr,Object.assign({"aria-label":f.edit,onClick:M,sx:E5t},s,{children:S.jsx(d,{})}))}):!((t=p?.({row:i,staticRowIndex:r,table:o}))===null||t===void 0)&&t.length?S.jsxs(S.Fragment,{children:[S.jsx(uo,Object.assign({},Pw(),{title:f.rowActions,children:S.jsx(Qr,Object.assign({"aria-label":f.rowActions,onClick:T,size:"small",sx:E5t},s,{children:S.jsx(h,{})}))})),S.jsx(Dar,{anchorEl:A,handleEdit:M,row:i,setAnchorEl:D,staticRowIndex:r,table:o})]}):null})},kar=e=>Object.assign({Cell:({cell:t,row:n,staticRowIndex:i,table:r})=>S.jsx(Tar,{cell:t,row:n,staticRowIndex:i,table:r})},zF({header:"actions",id:"mrt-row-actions",size:70,tableOptions:e})),yXe=e=>{var t,n,{location:i,table:r}=e,o=Do(e,["location","table"]);const{options:{icons:{DragHandleIcon:s},localization:a}}=r;return S.jsx(uo,Object.assign({},Pw("top"),{title:(t=o?.title)!==null&&t!==void 0?t:a.move,children:S.jsx(Qr,Object.assign({"aria-label":(n=o.title)!==null&&n!==void 0?n:a.move,disableRipple:!0,draggable:"true",size:"small"},o,{onClick:l=>{var c;l.stopPropagation(),(c=o?.onClick)===null||c===void 0||c.call(o,l)},sx:l=>Object.assign({"&:active":{cursor:"grabbing"},"&:hover":{backgroundColor:"transparent",opacity:1},cursor:"grab",m:"0 -0.1rem",opacity:i==="row"?1:.5,p:"2px",transition:"all 150ms ease-in-out"},pi(o?.sx,l)),title:void 0,children:S.jsx(s,{})}))}))},Iar=e=>{var{row:t,rowRef:n,table:i}=e,r=Do(e,["row","rowRef","table"]);const{options:{muiRowDragHandleProps:o}}=i,s=Object.assign(Object.assign({},pi(o,{row:t,table:i})),r),a=c=>{var u;(u=s?.onDragStart)===null||u===void 0||u.call(s,c);try{c.dataTransfer.setDragImage(n.current,0,0)}catch(d){console.error(d)}i.setDraggingRow(t)},l=c=>{var u;(u=s?.onDragEnd)===null||u===void 0||u.call(s,c),i.setDraggingRow(null),i.setHoveredRow(null)};return S.jsx(yXe,Object.assign({},s,{location:"row",onDragEnd:l,onDragStart:a,table:i}))},Lar=e=>Object.assign({Cell:({row:t,rowRef:n,table:i})=>S.jsx(Iar,{row:t,rowRef:n,table:i}),grow:!1},zF({header:"move",id:"mrt-row-drag",size:60,tableOptions:e})),Nar=e=>{var t,n,{table:i}=e,r=Do(e,["table"]);const{getCanSomeRowsExpand:o,getIsAllRowsExpanded:s,getIsSomeRowsExpanded:a,getState:l,options:{icons:{KeyboardDoubleArrowDownIcon:c},localization:u,muiExpandAllButtonProps:d,renderDetailPanel:h},toggleAllRowsExpanded:f}=i,{density:p,isLoading:g}=l(),m=Object.assign(Object.assign({},pi(d,{table:i})),r),v=s();return S.jsx(uo,Object.assign({},Pw(),{title:(t=m?.title)!==null&&t!==void 0?t:v?u.collapseAll:u.expandAll,children:S.jsx("span",{children:S.jsx(Qr,Object.assign({"aria-label":u.expandAll,disabled:g||!h&&!o(),onClick:()=>f(!v)},m,{sx:y=>Object.assign({height:p==="compact"?"1.75rem":"2.25rem",mt:p!=="compact"?"-0.25rem":void 0,width:p==="compact"?"1.75rem":"2.25rem"},pi(m?.sx,y)),title:void 0,children:(n=m?.children)!==null&&n!==void 0?n:S.jsx(c,{style:{transform:`rotate(${v?-180:a()?-90:0}deg)`,transition:"transform 150ms"}})}))})}))},A5t=({row:e,staticRowIndex:t,table:n})=>{var i,r;const o=cl(),{getState:s,options:{icons:{ExpandMoreIcon:a},localization:l,muiExpandButtonProps:c,positionExpandColumn:u,renderDetailPanel:d}}=n,{density:h}=s(),f=pi(c,{row:e,staticRowIndex:t,table:n}),p=e.getCanExpand(),g=e.getIsExpanded(),m=y=>{var b;y.stopPropagation(),e.toggleExpanded(),(b=f?.onClick)===null||b===void 0||b.call(f,y)},v=!!d?.({row:e,table:n});return S.jsx(uo,Object.assign({disableHoverListener:!p&&!v},Pw(),{title:(i=f?.title)!==null&&i!==void 0?i:g?l.collapse:l.expand,children:S.jsx("span",{children:S.jsx(Qr,Object.assign({"aria-label":l.expand,disabled:!p&&!v},f,{onClick:m,sx:y=>Object.assign({height:h==="compact"?"1.75rem":"2.25rem",opacity:!p&&!v?.3:1,[y.direction==="rtl"||u==="last"?"mr":"ml"]:`${e.depth*16}px`,width:h==="compact"?"1.75rem":"2.25rem"},pi(f?.sx,y)),title:void 0,children:(r=f?.children)!==null&&r!==void 0?r:S.jsx(a,{style:{transform:`rotate(${!p&&!d?u==="last"||o.direction==="rtl"?90:-90:g?-180:0}deg)`,transition:"transform 150ms"}})}))})}))},Par=e=>{var t;const{defaultColumn:n,enableExpandAll:i,groupedColumnMode:r,positionExpandColumn:o,renderDetailPanel:s,state:{grouping:a}}=e,l=o==="last"?{align:"right"}:void 0;return Object.assign({Cell:({cell:c,column:u,row:d,staticRowIndex:h,table:f})=>{var p,g,m;const v={row:d,staticRowIndex:h,table:f},y=(p=d.subRows)===null||p===void 0?void 0:p.length;return r==="remove"&&d.groupingColumnId?S.jsxs(wr,{alignItems:"center",flexDirection:"row",gap:"0.25rem",children:[S.jsx(A5t,Object.assign({},v)),S.jsx(uo,Object.assign({},Pw("right"),{title:f.getColumn(d.groupingColumnId).columnDef.header,children:S.jsx("span",{children:d.groupingValue})})),!!y&&S.jsxs("span",{children:["(",y,")"]})]}):S.jsxs(S.Fragment,{children:[S.jsx(A5t,Object.assign({},v)),(m=(g=u.columnDef).GroupedCell)===null||m===void 0?void 0:m.call(g,{cell:c,column:u,row:d,table:f})]})},Header:i?({table:c})=>{var u;return S.jsxs(S.Fragment,{children:[S.jsx(Nar,{table:c}),r==="remove"&&((u=a?.map(d=>c.getColumn(d).columnDef.header))===null||u===void 0?void 0:u.join(", "))]})}:void 0,muiTableBodyCellProps:l,muiTableHeadCellProps:l},zF({header:"expand",id:"mrt-row-expand",size:r==="remove"?(t=n?.size)!==null&&t!==void 0?t:180:s?i?60:70:100,tableOptions:e}))},Mar=e=>{const{localization:t,rowNumberDisplayMode:n}=e,{pagination:{pageIndex:i,pageSize:r}}=e.state;return Object.assign({Cell:({row:o,staticRowIndex:s})=>{var a;return((a=n==="static"?(s||0)+(r||0)*(i||0):o.index)!==null&&a!==void 0?a:0)+1},Header:()=>t.rowNumber,grow:!1},zF({header:"rowNumbers",id:"mrt-row-numbers",size:50,tableOptions:e}))},vOe=e=>{var{pinningPosition:t,row:n,table:i}=e,r=Do(e,["pinningPosition","row","table"]);const{options:{icons:{CloseIcon:o,PushPinIcon:s},localization:a,rowPinningDisplayMode:l}}=i,c=n.getIsPinned(),[u,d]=I.useState(!1),h=f=>{d(!1),f.stopPropagation(),n.pin(c?!1:t)};return S.jsx(uo,Object.assign({},Pw(),{open:u,title:c?a.unpin:a.pin,children:S.jsx(Qr,Object.assign({"aria-label":a.pin,onBlur:()=>d(!1),onClick:h,onFocus:()=>d(!0),onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),size:"small"},r,{sx:f=>Object.assign({height:"24px",width:"24px"},pi(r?.sx,f)),children:c?S.jsx(o,{}):S.jsx(s,{fontSize:"small",style:{transform:`rotate(${l==="sticky"?135:t==="top"?180:0}deg)`}})}))}))},Oar=e=>{var{row:t,table:n}=e,i=Do(e,["row","table"]);const{getState:r,options:{enableRowPinning:o,rowPinningDisplayMode:s}}=n,{density:a}=r();if(!pi(o,t))return null;const c=Object.assign({row:t,table:n},i);return s==="top-and-bottom"&&!t.getIsPinned()?S.jsxs(tn,{sx:{display:"flex",flexDirection:a==="compact"?"row":"column"},children:[S.jsx(vOe,Object.assign({pinningPosition:"top"},c)),S.jsx(vOe,Object.assign({pinningPosition:"bottom"},c))]}):S.jsx(vOe,Object.assign({pinningPosition:s==="bottom"?"bottom":"top"},c))},Rar=e=>Object.assign({Cell:({row:t,table:n})=>S.jsx(Oar,{row:t,table:n}),grow:!1},zF({header:"pin",id:"mrt-row-pin",size:60,tableOptions:e})),Hje=e=>{var t,{row:n,staticRowIndex:i,table:r}=e,o=Do(e,["row","staticRowIndex","table"]);const{getState:s,options:{enableMultiRowSelection:a,localization:l,muiSelectAllCheckboxProps:c,muiSelectCheckboxProps:u,selectAllMode:d}}=r,{density:h,isLoading:f}=s(),p=!n,g=p?d==="page"?r.getIsAllPageRowsSelected():r.getIsAllRowsSelected():void 0,m=p?g:Dfe({row:n,table:r}),v=Object.assign(Object.assign({},p?pi(c,{table:r}):pi(u,{row:n,staticRowIndex:i,table:r})),o),y=n?Xxn({row:n,staticRowIndex:i,table:r}):void 0,b=uXe({table:r}),w=Object.assign(Object.assign({"aria-label":p?l.toggleSelectAll:l.toggleSelectRow,checked:m,disabled:f||n&&!n.getCanSelect()||n?.id==="mrt-row-create",inputProps:{"aria-label":p?l.toggleSelectAll:l.toggleSelectRow},onChange:E=>{E.stopPropagation(),p?b(E):y(E)},size:h==="compact"?"small":"medium"},v),{onClick:E=>{var A;E.stopPropagation(),(A=v?.onClick)===null||A===void 0||A.call(v,E)},sx:E=>Object.assign({height:h==="compact"?"1.75rem":"2.5rem",m:h!=="compact"?"-0.4rem":void 0,width:h==="compact"?"1.75rem":"2.5rem",zIndex:0},pi(v?.sx,E)),title:void 0});return S.jsx(uo,Object.assign({},Pw(),{title:(t=v?.title)!==null&&t!==void 0?t:p?l.toggleSelectAll:l.toggleSelectRow,children:a===!1?S.jsx(T7i,Object.assign({},w)):S.jsx(YQ,Object.assign({indeterminate:!m&&p?r.getIsSomeRowsSelected():n?.getIsSomeSelected()&&n.getCanSelectSubRows()},w))}))},Far=e=>{const{enableMultiRowSelection:t,enableSelectAll:n}=e;return Object.assign({Cell:({row:i,staticRowIndex:r,table:o})=>S.jsx(Hje,{row:i,staticRowIndex:r,table:o}),Header:n&&t?({table:i})=>S.jsx(Hje,{table:i}):void 0,grow:!1},zF({header:"select",id:"mrt-row-select",size:n?60:70,tableOptions:e}))},Bar={ArrowDownwardIcon:vsr,ArrowRightIcon:ysr,CancelIcon:bsr,ChevronLeftIcon:_sr,ChevronRightIcon:wsr,ClearAllIcon:Csr,CloseIcon:Ssr,ContentCopy:xsr,DensityLargeIcon:Esr,DensityMediumIcon:Asr,DensitySmallIcon:Dsr,DragHandleIcon:Tsr,DynamicFeedIcon:ksr,EditIcon:Isr,ExpandMoreIcon:Lsr,FilterAltIcon:Nsr,FilterListIcon:Psr,FilterListOffIcon:Msr,FirstPageIcon:Osr,FullscreenExitIcon:Fsr,FullscreenIcon:Rsr,KeyboardDoubleArrowDownIcon:Bsr,LastPageIcon:jsr,MoreHorizIcon:zsr,MoreVertIcon:Vsr,PushPinIcon:Hsr,RestartAltIcon:Wsr,SaveIcon:Usr,SearchIcon:$sr,SearchOffIcon:qsr,SortIcon:Gsr,SyncAltIcon:Ksr,ViewColumnIcon:Ysr,VisibilityOffIcon:Qsr},jar={language:"en",actions:"Actions",and:"and",cancel:"Cancel",changeFilterMode:"Change filter mode",changeSearchMode:"Change search mode",clearFilter:"Clear filter",clearSearch:"Clear search",clearSelection:"Clear selection",clearSort:"Clear sort",clickToCopy:"Click to copy",copy:"Copy",collapse:"Collapse",collapseAll:"Collapse all",columnActions:"Column Actions",copiedToClipboard:"Copied to clipboard",dropToGroupBy:"Drop to group by {column}",edit:"Edit",expand:"Expand",expandAll:"Expand all",filterArrIncludes:"Includes",filterArrIncludesAll:"Includes all",filterArrIncludesSome:"Includes",filterBetween:"Between",filterBetweenInclusive:"Between Inclusive",filterByColumn:"Filter by {column}",filterContains:"Contains",filterEmpty:"Empty",filterEndsWith:"Ends With",filterEquals:"Equals",filterEqualsString:"Equals",filterFuzzy:"Fuzzy",filterGreaterThan:"Greater Than",filterGreaterThanOrEqualTo:"Greater Than Or Equal To",filterInNumberRange:"Between",filterIncludesString:"Contains",filterIncludesStringSensitive:"Contains",filterLessThan:"Less Than",filterLessThanOrEqualTo:"Less Than Or Equal To",filterMode:"Filter Mode: {filterType}",filterNotEmpty:"Not Empty",filterNotEquals:"Not Equals",filterStartsWith:"Starts With",filterWeakEquals:"Equals",filteringByColumn:"Filtering by {column} - {filterType} {filterValue}",goToFirstPage:"Go to first page",goToLastPage:"Go to last page",goToNextPage:"Go to next page",goToPreviousPage:"Go to previous page",grab:"Grab",groupByColumn:"Group by {column}",groupedBy:"Grouped by ",hideAll:"Hide all",hideColumn:"Hide {column} column",max:"Max",min:"Min",move:"Move",noRecordsToDisplay:"No records to display",noResultsFound:"No results found",of:"of",or:"or",pin:"Pin",pinToLeft:"Pin to left",pinToRight:"Pin to right",resetColumnSize:"Reset column size",resetOrder:"Reset order",rowActions:"Row Actions",rowNumber:"#",rowNumbers:"Row Numbers",rowsPerPage:"Rows per page",save:"Save",search:"Search",selectedCountOfRowCountRowsSelected:"{selectedCount} of {rowCount} row(s) selected",select:"Select",showAll:"Show all",showAllColumns:"Show all columns",showHideColumns:"Show/Hide columns",showHideFilters:"Show/Hide filters",showHideSearch:"Show/Hide search",sortByColumnAsc:"Sort by {column} ascending",sortByColumnDesc:"Sort by {column} descending",sortedByColumnAsc:"Sorted by {column} ascending",sortedByColumnDesc:"Sorted by {column} descending",thenBy:", then by ",toggleDensity:"Toggle density",toggleFullScreen:"Toggle full screen",toggleSelectAll:"Toggle select all",toggleSelectRow:"Toggle select row",toggleVisibility:"Toggle visibility",ungroupByColumn:"Ungroup by {column}",unpin:"Unpin",unpinAll:"Unpin all"},zar={filterVariant:"text",maxSize:1e3,minSize:40,size:180},yEn={columnDefType:"display",enableClickToCopy:!1,enableColumnActions:!1,enableColumnDragging:!1,enableColumnFilter:!1,enableColumnOrdering:!1,enableEditing:!1,enableGlobalFilter:!1,enableGrouping:!1,enableHiding:!1,enableResizing:!1,enableSorting:!1},Var=e=>{var t,{aggregationFns:n,autoResetExpanded:i=!1,columnFilterDisplayMode:r="subheader",columnResizeDirection:o,columnResizeMode:s="onChange",createDisplayMode:a="modal",defaultColumn:l,defaultDisplayColumn:c,editDisplayMode:u="modal",enableBatchRowSelection:d=!0,enableBottomToolbar:h=!0,enableColumnActions:f=!0,enableColumnFilters:p=!0,enableColumnOrdering:g=!1,enableColumnPinning:m=!1,enableColumnResizing:v=!1,enableColumnVirtualization:y,enableDensityToggle:b=!0,enableExpandAll:w=!0,enableExpanding:E,enableFacetedValues:A=!1,enableFilterMatchHighlighting:D=!0,enableFilters:T=!0,enableFullScreenToggle:M=!0,enableGlobalFilter:P=!0,enableGlobalFilterRankedResults:F=!0,enableGrouping:N=!1,enableHiding:j=!0,enableKeyboardShortcuts:W=!0,enableMultiRowSelection:J=!0,enableMultiSort:ee=!0,enablePagination:Q=!0,enableRowPinning:H=!1,enableRowSelection:q=!1,enableRowVirtualization:le,enableSelectAll:Y=!0,enableSorting:G=!0,enableStickyHeader:pe=!1,enableTableFooter:U=!0,enableTableHead:K=!0,enableToolbarInternalActions:ie=!0,enableTopToolbar:ce=!0,filterFns:de,icons:oe,id:me=I.useId(),layoutMode:Ce,localization:Se,manualFiltering:De,manualGrouping:Me,manualPagination:qe,manualSorting:$,mrtTheme:he,paginationDisplayMode:Ie="default",positionActionsColumn:Be="first",positionCreatingRow:ze="top",positionExpandColumn:Ye="first",positionGlobalFilter:it="right",positionPagination:ft="bottom",positionToolbarAlertBanner:ct="top",positionToolbarDropZone:et="top",rowNumberDisplayMode:ut="static",rowPinningDisplayMode:wt="sticky",selectAllMode:pt="page",sortingFns:_t}=e,Rt=Do(e,["aggregationFns","autoResetExpanded","columnFilterDisplayMode","columnResizeDirection","columnResizeMode","createDisplayMode","defaultColumn","defaultDisplayColumn","editDisplayMode","enableBatchRowSelection","enableBottomToolbar","enableColumnActions","enableColumnFilters","enableColumnOrdering","enableColumnPinning","enableColumnResizing","enableColumnVirtualization","enableDensityToggle","enableExpandAll","enableExpanding","enableFacetedValues","enableFilterMatchHighlighting","enableFilters","enableFullScreenToggle","enableGlobalFilter","enableGlobalFilterRankedResults","enableGrouping","enableHiding","enableKeyboardShortcuts","enableMultiRowSelection","enableMultiSort","enablePagination","enableRowPinning","enableRowSelection","enableRowVirtualization","enableSelectAll","enableSorting","enableStickyHeader","enableTableFooter","enableTableHead","enableToolbarInternalActions","enableTopToolbar","filterFns","icons","id","layoutMode","localization","manualFiltering","manualGrouping","manualPagination","manualSorting","mrtTheme","paginationDisplayMode","positionActionsColumn","positionCreatingRow","positionExpandColumn","positionGlobalFilter","positionPagination","positionToolbarAlertBanner","positionToolbarDropZone","rowNumberDisplayMode","rowPinningDisplayMode","selectAllMode","sortingFns"]);const Yt=cl();return oe=I.useMemo(()=>Object.assign(Object.assign({},Bar),oe),[oe]),Se=I.useMemo(()=>Object.assign(Object.assign({},jar),Se),[Se]),he=I.useMemo(()=>Aar(he,Yt),[he,Yt]),n=I.useMemo(()=>Object.assign(Object.assign({},xar),n),[]),de=I.useMemo(()=>Object.assign(Object.assign({},Ear),de),[]),_t=I.useMemo(()=>Object.assign(Object.assign({},bar),_t),[]),l=I.useMemo(()=>Object.assign(Object.assign({},zar),l),[l]),c=I.useMemo(()=>Object.assign(Object.assign({},yEn),c),[c]),[y,le]=I.useMemo(()=>[y,le],[]),o||(o=Yt.direction||"ltr"),Ce=Ce||(v?"grid-no-grow":"semantic"),Ce==="semantic"&&(le||y)&&(Ce="grid"),le&&(pe=!0),Q===!1&&qe===void 0&&(qe=!0),!((t=Rt.data)===null||t===void 0)&&t.length||(De=!0,Me=!0,qe=!0,$=!0),Object.assign({aggregationFns:n,autoResetExpanded:i,columnFilterDisplayMode:r,columnResizeDirection:o,columnResizeMode:s,createDisplayMode:a,defaultColumn:l,defaultDisplayColumn:c,editDisplayMode:u,enableBatchRowSelection:d,enableBottomToolbar:h,enableColumnActions:f,enableColumnFilters:p,enableColumnOrdering:g,enableColumnPinning:m,enableColumnResizing:v,enableColumnVirtualization:y,enableDensityToggle:b,enableExpandAll:w,enableExpanding:E,enableFacetedValues:A,enableFilterMatchHighlighting:D,enableFilters:T,enableFullScreenToggle:M,enableGlobalFilter:P,enableGlobalFilterRankedResults:F,enableGrouping:N,enableHiding:j,enableKeyboardShortcuts:W,enableMultiRowSelection:J,enableMultiSort:ee,enablePagination:Q,enableRowPinning:H,enableRowSelection:q,enableRowVirtualization:le,enableSelectAll:Y,enableSorting:G,enableStickyHeader:pe,enableTableFooter:U,enableTableHead:K,enableToolbarInternalActions:ie,enableTopToolbar:ce,filterFns:de,getCoreRowModel:Kor(),getExpandedRowModel:E||N?Yor():void 0,getFacetedMinMaxValues:A?Qor():void 0,getFacetedRowModel:A?Jor():void 0,getFacetedUniqueValues:A?esr():void 0,getFilteredRowModel:(p||P||T)&&!De?tsr():void 0,getGroupedRowModel:N&&!Me?nsr():void 0,getPaginationRowModel:Q&&!qe?rsr():void 0,getSortedRowModel:G&&!$?osr():void 0,getSubRows:Ut=>Ut?.subRows,icons:oe,id:me,layoutMode:Ce,localization:Se,manualFiltering:De,manualGrouping:Me,manualPagination:qe,manualSorting:$,mrtTheme:he,paginationDisplayMode:Ie,positionActionsColumn:Be,positionCreatingRow:ze,positionExpandColumn:Ye,positionGlobalFilter:it,positionPagination:ft,positionToolbarAlertBanner:ct,positionToolbarDropZone:et,rowNumberDisplayMode:ut,rowPinningDisplayMode:wt,selectAllMode:pt,sortingFns:_t},Rt)},yOe={children:null,sx:{minWidth:0,p:0,width:0}},Har=e=>Object.assign(Object.assign(Object.assign(Object.assign({},zF({id:"mrt-row-spacer",size:0,tableOptions:e})),{grow:!0}),yEn),{muiTableBodyCellProps:yOe,muiTableFooterCellProps:yOe,muiTableHeadCellProps:yOe}),War=e=>{const{getIsSomeRowsPinned:t,getPrePaginationRowModel:n,getState:i,options:{enablePagination:r,enableRowPinning:o,rowCount:s}}=e,{columnOrder:a,density:l,globalFilter:c,isFullScreen:u,isLoading:d,pagination:h,showSkeletons:f,sorting:p}=i(),g=e.options.columns.length,m=s??n().rows.length,v=I.useReducer(()=>({}),{})[1],y=I.useRef(null),b=I.useRef(null);I.useEffect(()=>{typeof window<"u"&&(y.current=document.body.style.height)},[]),I.useEffect(()=>{if(typeof window<"u")if(u)b.current=document.body.getBoundingClientRect().top,document.body.style.height="100dvh";else{if(document.body.style.height=y.current,!b.current)return;window.scrollTo({behavior:"instant",top:-1*b.current})}},[u]),I.useEffect(()=>{g!==a.length&&e.setColumnOrder(pXe(e.options))},[g]),I.useEffect(()=>{if(!r||d||f)return;const{pageIndex:E,pageSize:A}=h,D=m>0?Math.ceil(m/A):1;(E<0||E>=D)&&e.setPageIndex(D-1)},[m,r,d,f]);const w=I.useRef(p);I.useEffect(()=>{p.length&&(w.current=p)},[p]),I.useEffect(()=>{Zxn(e)&&(c?e.setSorting([]):e.setSorting(()=>w.current||[]))},[c]),I.useEffect(()=>{o&&t()&&setTimeout(()=>{v()},150)},[l])},Uar=e=>{var t,n,i,r,o,s,a,l,c,u,d,h,f,p,g,m,v,y,b,w,E,A,D,T,M,P,F,N,j,W,J,ee,Q,H,q;const le=I.useRef(null),Y=I.useRef(null),G=I.useRef(null),pe=I.useRef({}),U=I.useRef({}),K=I.useRef(null),ie=I.useRef(null),ce=I.useRef({}),de=I.useRef(null),oe=I.useRef(null),me=I.useRef(null),Ce=I.useRef(null),Se=I.useMemo(()=>{var Ve,dt,Vt;const Xe=(Ve=e.initialState)!==null&&Ve!==void 0?Ve:{};return Xe.columnOrder=(dt=Xe.columnOrder)!==null&&dt!==void 0?dt:pXe(Object.assign(Object.assign({},e),{state:Object.assign(Object.assign({},e.initialState),e.state)})),Xe.globalFilterFn=(Vt=e.globalFilterFn)!==null&&Vt!==void 0?Vt:"fuzzy",Xe},[]);e.initialState=Se;const[De,Me]=I.useState((t=Se.actionCell)!==null&&t!==void 0?t:null),[qe,$]=I.useState((n=Se.creatingRow)!==null&&n!==void 0?n:null),[he,Ie]=I.useState(()=>Object.assign({},...Afe(e.columns).map(Ve=>{var dt,Vt,Xe,Ht;return{[L8(Ve)]:Ve.filterFn instanceof Function?(dt=Ve.filterFn.name)!==null&&dt!==void 0?dt:"custom":(Ht=(Vt=Ve.filterFn)!==null&&Vt!==void 0?Vt:(Xe=Se?.columnFilterFns)===null||Xe===void 0?void 0:Xe[L8(Ve)])!==null&&Ht!==void 0?Ht:gar(Ve)}}))),[Be,ze]=I.useState((i=Se.columnOrder)!==null&&i!==void 0?i:[]),[Ye,it]=I.useState((r=Se.columnSizingInfo)!==null&&r!==void 0?r:{}),[ft,ct]=I.useState((o=Se?.density)!==null&&o!==void 0?o:"comfortable"),[et,ut]=I.useState((s=Se.draggingColumn)!==null&&s!==void 0?s:null),[wt,pt]=I.useState((a=Se.draggingRow)!==null&&a!==void 0?a:null),[_t,Rt]=I.useState((l=Se.editingCell)!==null&&l!==void 0?l:null),[Yt,Ut]=I.useState((c=Se.editingRow)!==null&&c!==void 0?c:null),[Gt,Kt]=I.useState((u=Se.globalFilterFn)!==null&&u!==void 0?u:"fuzzy"),[ln,pn]=I.useState((d=Se.grouping)!==null&&d!==void 0?d:[]),[wn,Mn]=I.useState((h=Se.hoveredColumn)!==null&&h!==void 0?h:null),[Yn,di]=I.useState((f=Se.hoveredRow)!==null&&f!==void 0?f:null),[Li,ke]=I.useState((p=Se?.isFullScreen)!==null&&p!==void 0?p:!1),[Z,ne]=I.useState((g=Se?.pagination)!==null&&g!==void 0?g:{pageIndex:0,pageSize:10}),[V,re]=I.useState((m=Se?.showAlertBanner)!==null&&m!==void 0?m:!1),[ge,we]=I.useState((v=Se?.showColumnFilters)!==null&&v!==void 0?v:!1),[ve,_e]=I.useState((y=Se?.showGlobalFilter)!==null&&y!==void 0?y:!1),[Ee,Le]=I.useState((b=Se?.showToolbarDropZone)!==null&&b!==void 0?b:!1);e.state=Object.assign({actionCell:De,columnFilterFns:he,columnOrder:Be,columnSizingInfo:Ye,creatingRow:qe,density:ft,draggingColumn:et,draggingRow:wt,editingCell:_t,editingRow:Yt,globalFilterFn:Gt,grouping:ln,hoveredColumn:wn,hoveredRow:Yn,isFullScreen:Li,pagination:Z,showAlertBanner:V,showColumnFilters:ge,showGlobalFilter:ve,showToolbarDropZone:Ee},e.state);const be=e,Fe=I.useRef([]);be.columns=be.state.columnSizingInfo.isResizingColumn||be.state.draggingColumn||be.state.draggingRow?Fe.current:Gxn({columnDefs:[...[tEn(be)&&Rar(be),nEn(be)&&Lar(be),fXe(be)&&kar(be),hXe(be)&&Par(be),iEn(be)&&Far(be),rEn(be)&&Mar(be)].filter(Boolean),...be.columns,...[oEn(be)&&Har(be)].filter(Boolean)],tableOptions:be}),Fe.current=be.columns,be.data=I.useMemo(()=>(be.state.isLoading||be.state.showSkeletons)&&!be.data.length?[...Array(Math.min(be.state.pagination.pageSize,20)).fill(null)].map(()=>Object.assign({},...Afe(be.columns).map(Ve=>({[L8(Ve)]:null})))):be.data,[be.data,be.state.isLoading,be.state.showSkeletons]);const Ze=ssr(Object.assign(Object.assign({onColumnOrderChange:ze,onColumnSizingInfoChange:it,onGroupingChange:pn,onPaginationChange:ne},be),{globalFilterFn:(w=be.filterFns)===null||w===void 0?void 0:w[Gt??"fuzzy"]}));return Ze.refs={actionCellRef:Y,bottomToolbarRef:G,editInputRefs:pe,filterInputRefs:U,lastSelectedRowId:le,searchInputRef:K,tableContainerRef:ie,tableFooterRef:Ce,tableHeadCellRefs:ce,tableHeadRef:me,tablePaperRef:de,topToolbarRef:oe},Ze.setActionCell=(E=be.onActionCellChange)!==null&&E!==void 0?E:Me,Ze.setCreatingRow=Ve=>{var dt,Vt;let Xe=Ve;Ve===!0&&(Xe=mar(Ze)),(Vt=(dt=be?.onCreatingRowChange)===null||dt===void 0?void 0:dt.call(be,Xe))!==null&&Vt!==void 0||$(Xe)},Ze.setColumnFilterFns=(A=be.onColumnFilterFnsChange)!==null&&A!==void 0?A:Ie,Ze.setDensity=(D=be.onDensityChange)!==null&&D!==void 0?D:ct,Ze.setDraggingColumn=(T=be.onDraggingColumnChange)!==null&&T!==void 0?T:ut,Ze.setDraggingRow=(M=be.onDraggingRowChange)!==null&&M!==void 0?M:pt,Ze.setEditingCell=(P=be.onEditingCellChange)!==null&&P!==void 0?P:Rt,Ze.setEditingRow=(F=be.onEditingRowChange)!==null&&F!==void 0?F:Ut,Ze.setGlobalFilterFn=(N=be.onGlobalFilterFnChange)!==null&&N!==void 0?N:Kt,Ze.setHoveredColumn=(j=be.onHoveredColumnChange)!==null&&j!==void 0?j:Mn,Ze.setHoveredRow=(W=be.onHoveredRowChange)!==null&&W!==void 0?W:di,Ze.setIsFullScreen=(J=be.onIsFullScreenChange)!==null&&J!==void 0?J:ke,Ze.setShowAlertBanner=(ee=be.onShowAlertBannerChange)!==null&&ee!==void 0?ee:re,Ze.setShowColumnFilters=(Q=be.onShowColumnFiltersChange)!==null&&Q!==void 0?Q:we,Ze.setShowGlobalFilter=(H=be.onShowGlobalFilterChange)!==null&&H!==void 0?H:_e,Ze.setShowToolbarDropZone=(q=be.onShowToolbarDropZoneChange)!==null&&q!==void 0?q:Le,War(Ze),Ze},bEn=e=>Uar(Var(e)),_En=(e,t)=>{const n=Wxn(e);return t===void 0||(t>=0&&t<Math.max(e.startIndex-e.overscan,0)&&n.unshift(t),t>=0&&t>e.endIndex+e.overscan&&n.push(t)),n},$ar=e=>{var t,n,i,r;const{getState:o,options:{columnVirtualizerInstanceRef:s,columnVirtualizerOptions:a,enableColumnPinning:l,enableColumnVirtualization:c},refs:{tableContainerRef:u}}=e,{columnPinning:d,columnVisibility:h,draggingColumn:f}=o();if(!c)return;const p=pi(a,{table:e}),g=e.getVisibleLeafColumns(),[m,v]=I.useMemo(()=>l?[e.getLeftVisibleLeafColumns().map(T=>T.getPinnedIndex()),e.getRightVisibleLeafColumns().map(T=>g.length-T.getPinnedIndex()-1).sort((T,M)=>T-M)]:[[],[]],[d,h,l]),y=m.length,b=v.length,w=I.useMemo(()=>f?.id?g.findIndex(T=>T.id===f?.id):void 0,[f?.id]),E=$xn(Object.assign({count:g.length,estimateSize:T=>g[T].getSize(),getScrollElement:()=>u.current,horizontal:!0,overscan:3,rangeExtractor:I.useCallback(T=>{const M=_En(T,w);return!y&&!b?M:[...new Set([...m,...M,...v])]},[m,v,w])},p)),A=E.getVirtualItems();E.virtualColumns=A;const D=A.length;if(D){const T=E.getTotalSize(),M=((t=A[y])===null||t===void 0?void 0:t.start)||0,P=((n=A[m.length-1])===null||n===void 0?void 0:n.end)||0,F=((i=A[D-b])===null||i===void 0?void 0:i.start)||0,N=((r=A[D-b-1])===null||r===void 0?void 0:r.end)||0;E.virtualPaddingLeft=M-P,E.virtualPaddingRight=T-N-(b?T-F:0)}return s&&(s.current=E),E},qar=(e,t)=>{const{getRowModel:n,getState:i,options:{enableRowVirtualization:r,renderDetailPanel:o,rowVirtualizerInstanceRef:s,rowVirtualizerOptions:a},refs:{tableContainerRef:l}}=e,{density:c,draggingRow:u,expanded:d}=i();if(!r)return;const h=pi(a,{table:e}),f=t??n().rows,p=I.useMemo(()=>u?.id?f.findIndex(y=>y.id===u?.id):void 0,[f,u?.id]),g=f.length,m=c==="compact"?37:c==="comfortable"?58:73,v=$xn(Object.assign({count:o?g*2:g,estimateSize:y=>o&&y%2===1?d===!0?100:0:m,getScrollElement:()=>l.current,measureElement:typeof window<"u"&&navigator.userAgent.indexOf("Firefox")===-1?y=>y?.getBoundingClientRect().height:void 0,overscan:4,rangeExtractor:I.useCallback(y=>_En(y,p),[p])},h));return v.virtualRows=v.getVirtualItems(),s&&(s.current=v),v},Gar=e=>{const{getRowModel:t,getState:n,options:{data:i,enableGlobalFilterRankedResults:r,positionCreatingRow:o}}=e,{creatingRow:s,expanded:a,globalFilter:l,pagination:c,rowPinning:u,sorting:d}=n();return I.useMemo(()=>Qxn(e),[s,i,r,a,t().rows,l,c.pageIndex,c.pageSize,o,u,d])},bOe=["string","number"],D5t=({cell:e,rowRef:t,staticColumnIndex:n,staticRowIndex:i,table:r})=>{var o,s,a;const{getState:l,options:{enableFilterMatchHighlighting:c,mrtTheme:{matchHighlightColor:u}}}=r,{column:d,row:h}=e,{columnDef:f}=d,{globalFilter:p,globalFilterFn:g}=l(),m=d.getFilterValue();let v=e.getIsAggregated()&&f.AggregatedCell?f.AggregatedCell({cell:e,column:d,row:h,table:r,staticColumnIndex:n,staticRowIndex:i}):h.getIsGrouped()&&!e.getIsGrouped()?null:e.getIsGrouped()&&f.GroupedCell?f.GroupedCell({cell:e,column:d,row:h,table:r,staticColumnIndex:n,staticRowIndex:i}):void 0;const y=v!==void 0;if(y||(v=e.renderValue()),c&&f.enableFilterMatchHighlighting!==!1&&String(v)&&bOe.includes(typeof v)&&(m&&bOe.includes(typeof m)&&["autocomplete","text"].includes(f.filterVariant)||p&&bOe.includes(typeof p)&&d.getCanGlobalFilter())){const b=mOe?.({matchExactly:(m?f._filterFn:g)!=="fuzzy",query:((o=m??p)!==null&&o!==void 0?o:"").toString(),text:v?.toString()});(b?.length>1||!((s=b?.[0])===null||s===void 0)&&s.match)&&(v=S.jsx("span",{"aria-label":v,role:"note",children:(a=b?.map(({key:w,match:E,text:A})=>S.jsx(tn,{"aria-hidden":"true",component:"span",sx:E?{backgroundColor:u,borderRadius:"2px",color:D=>D.palette.mode==="dark"?D.palette.common.white:D.palette.common.black,padding:"2px 1px"}:void 0,children:A},w)))!==null&&a!==void 0?a:v}))}return f.Cell&&!y&&(v=f.Cell({cell:e,column:d,renderedCellValue:v,row:h,rowRef:t,staticColumnIndex:n,staticRowIndex:i,table:r})),v},Kar=e=>{var t,{cell:n,table:i}=e,r=Do(e,["cell","table"]);const{options:{localization:o,muiCopyButtonProps:s}}=i,{column:a,row:l}=n,{columnDef:c}=a,[u,d]=I.useState(!1),h=(p,g)=>{p.stopPropagation(),navigator.clipboard.writeText(g),d(!0),setTimeout(()=>d(!1),4e3)},f=Object.assign(Object.assign(Object.assign({},pi(s,{cell:n,column:a,row:l,table:i})),pi(c.muiCopyButtonProps,{cell:n,column:a,row:l,table:i})),r);return S.jsx(uo,Object.assign({},Pw("top"),{title:(t=f?.title)!==null&&t!==void 0?t:u?o.copiedToClipboard:o.clickToCopy,children:S.jsx(na,Object.assign({onClick:p=>h(p,n.getValue()),size:"small",type:"button",variant:"text"},f,{sx:p=>Object.assign({backgroundColor:"transparent",border:"none",color:"inherit",cursor:"copy",fontFamily:"inherit",fontSize:"inherit",letterSpacing:"inherit",m:"-0.25rem",minWidth:"unset",py:0,textAlign:"inherit",textTransform:"inherit"},pi(f?.sx,p)),title:void 0}))}))},wEn=e=>{var t,n,{cell:i,table:r}=e,o=Do(e,["cell","table"]);const{getState:s,options:{createDisplayMode:a,editDisplayMode:l,muiEditTextFieldProps:c},refs:{editInputRefs:u},setCreatingRow:d,setEditingCell:h,setEditingRow:f}=r,{column:p,row:g}=i,{columnDef:m}=p,{creatingRow:v,editingRow:y}=s(),{editSelectOptions:b,editVariant:w}=m,E=v?.id===g.id,A=y?.id===g.id,[D,T]=I.useState(()=>i.getValue()),[M,P]=I.useState(!0),F=Object.assign(Object.assign(Object.assign({},pi(c,{cell:i,column:p,row:g,table:r})),pi(m.muiEditTextFieldProps,{cell:i,column:p,row:g,table:r})),o),N=pi(b,{cell:i,column:p,row:g,table:r}),j=w==="select"||F?.select,W=H=>{g._valuesCache[p.id]=H,E?d(g):A&&f(g)},J=H=>{var q;(q=F.onChange)===null||q===void 0||q.call(F,H),T(H.target.value),j&&W(H.target.value)},ee=H=>{var q;(q=F.onBlur)===null||q===void 0||q.call(F,H),W(D),h(null)},Q=H=>{var q,le,Y;(q=F.onKeyDown)===null||q===void 0||q.call(F,H),H.key==="Enter"&&!H.shiftKey&&M&&((Y=(le=u.current)===null||le===void 0?void 0:le[p.id])===null||Y===void 0||Y.blur())};return m.Edit?S.jsx(S.Fragment,{children:(t=m.Edit)===null||t===void 0?void 0:t.call(m,{cell:i,column:p,row:g,table:r})}):S.jsx(jv,Object.assign({disabled:pi(m.enableEditing,g)===!1,fullWidth:!0,inputRef:H=>{H&&(u.current[p.id]=j?H.node:H,F.inputRef&&(F.inputRef=H))},label:["custom","modal"].includes(E?a:l)?m.header:void 0,margin:"none",name:p.id,placeholder:["custom","modal"].includes(E?a:l)?void 0:m.header,select:j,size:"small",value:D??"",variant:"standard"},F,{InputProps:Object.assign(Object.assign(Object.assign({},F.variant!=="outlined"?{disableUnderline:l==="table"}:{}),F.InputProps),{sx:H=>{var q;return Object.assign({mb:0},pi((q=F?.InputProps)===null||q===void 0?void 0:q.sx,H))}}),SelectProps:Object.assign({MenuProps:{disableScrollLock:!0}},F.SelectProps),inputProps:Object.assign({autoComplete:"off"},F.inputProps),onBlur:ee,onChange:J,onClick:H=>{var q;H.stopPropagation(),(q=F?.onClick)===null||q===void 0||q.call(F,H)},onKeyDown:Q,onCompositionStart:()=>P(!1),onCompositionEnd:()=>P(!0),children:(n=F.children)!==null&&n!==void 0?n:N?.map(H=>{const{label:q,value:le}=GA(H);return S.jsx(bo,{sx:{alignItems:"center",display:"flex",gap:"0.5rem",m:0},value:le,children:q},le)})}))},CEn=e=>{var t,n,i,r,o,{cell:s,numRows:a,rowRef:l,staticColumnIndex:c,staticRowIndex:u,table:d}=e,h=Do(e,["cell","numRows","rowRef","staticColumnIndex","staticRowIndex","table"]);const f=cl(),{getState:p,options:{columnResizeDirection:g,columnResizeMode:m,createDisplayMode:v,editDisplayMode:y,enableCellActions:b,enableClickToCopy:w,enableColumnOrdering:E,enableColumnPinning:A,enableGrouping:D,enableKeyboardShortcuts:T,layoutMode:M,mrtTheme:{draggingBorderColor:P},muiSkeletonProps:F,muiTableBodyCellProps:N},setHoveredColumn:j}=d,{actionCell:W,columnSizingInfo:J,creatingRow:ee,density:Q,draggingColumn:H,draggingRow:q,editingCell:le,editingRow:Y,hoveredColumn:G,hoveredRow:pe,isLoading:U,showSkeletons:K}=p(),{column:ie,row:ce}=s,{columnDef:de}=ie,{columnDefType:oe}=de,me={cell:s,column:ie,row:ce,table:d},Ce=Object.assign(Object.assign(Object.assign({},pi(N,me)),pi(de.muiTableBodyCellProps,me)),h),Se=pi(F,{cell:s,column:ie,row:ce,table:d}),[De,Me]=I.useState(100);I.useEffect(()=>{if(!U&&!K||De!==100)return;const pt=ie.getSize();Me(oe==="display"?pt/2:Math.round(Math.random()*(pt-pt/3)+pt/3))},[U,K]);const qe=I.useMemo(()=>{const pt=H?.id===ie.id,_t=G?.id===ie.id,Rt=q?.id===ce.id,Yt=pe?.id===ce.id,Ut=ie.getIsFirstColumn(),Gt=ie.getIsLastColumn(),Kt=a&&u===a-1,ln=J.isResizingColumn===ie.id,pn=ln&&m==="onChange",wn=pn?`2px solid ${P} !important`:pt||Rt?`1px dashed ${f.palette.grey[500]} !important`:_t||Yt||ln?`2px dashed ${P} !important`:void 0;return pn?g==="ltr"?{borderRight:wn}:{borderLeft:wn}:wn?{borderBottom:Rt||Yt||Kt&&!ln?wn:void 0,borderLeft:pt||_t||(Rt||Yt)&&Ut?wn:void 0,borderRight:pt||_t||(Rt||Yt)&&Gt?wn:void 0,borderTop:Rt||Yt?wn:void 0}:void 0},[J.isResizingColumn,H,q,G,pe,u]),$=A&&de.columnDefType!=="group"&&ie.getIsPinned(),he=Jxn({cell:s,table:d}),Ie=he&&!["custom","modal"].includes(y)&&(y==="table"||Y?.id===ce.id||le?.id===s.id)&&!ce.getIsGrouped(),Be=he&&v==="row"&&ee?.id===ce.id,ze=(pi(w,s)===!0||pi(de.enableClickToCopy,s)===!0)&&!["context-menu",!1].includes(pi(de.enableClickToCopy,s)),Ye=pi(b,s),it={cell:s,table:d,staticColumnIndex:c,staticRowIndex:u},ft=pt=>{var _t;(_t=Ce?.onDoubleClick)===null||_t===void 0||_t.call(Ce,pt),eEn({cell:s,table:d})},ct=pt=>{var _t;(_t=Ce?.onDragEnter)===null||_t===void 0||_t.call(Ce,pt),D&&G?.id==="drop-zone"&&j(null),E&&H&&j(de.enableColumnOrdering!==!1?ie:null)},et=pt=>{de.enableColumnOrdering!==!1&&pt.preventDefault()},ut=pt=>{var _t;(_t=Ce?.onContextMenu)===null||_t===void 0||_t.call(Ce,pt),Ye&&(pt.preventDefault(),d.setActionCell(s),d.refs.actionCellRef.current=pt.currentTarget)},wt=pt=>{var _t;(_t=Ce?.onKeyDown)===null||_t===void 0||_t.call(Ce,pt),dXe({cell:s,cellValue:s.getValue(),event:pt,table:d})};return S.jsx(mu,Object.assign({align:f.direction==="rtl"?"right":"left","data-index":c,"data-pinned":!!$||void 0,tabIndex:T?0:void 0},Ce,{onKeyDown:wt,onContextMenu:ut,onDoubleClick:ft,onDragEnter:ct,onDragOver:et,sx:pt=>Object.assign(Object.assign({"&:hover":{outline:W?.id===s.id||y==="cell"&&he||y==="table"&&(Be||Ie)?`1px solid ${pt.palette.grey[500]}`:void 0,textOverflow:"clip"},alignItems:M?.startsWith("grid")?"center":void 0,cursor:Ye?"context-menu":he&&y==="cell"?"pointer":"inherit",outline:W?.id===s.id?`1px solid ${pt.palette.grey[500]}`:void 0,outlineOffset:"-1px",overflow:"hidden",p:Q==="compact"?oe==="display"?"0 0.5rem":"0.5rem":Q==="comfortable"?oe==="display"?"0.5rem 0.75rem":"1rem":oe==="display"?"1rem 1.25rem":"1.5rem",textOverflow:oe!=="display"?"ellipsis":void 0,whiteSpace:ce.getIsPinned()||Q==="compact"?"nowrap":"normal"},vXe({column:ie,table:d,tableCellProps:Ce,theme:pt})),qe),children:(t=Ce.children)!==null&&t!==void 0?t:S.jsxs(S.Fragment,{children:[s.getIsPlaceholder()?(i=(n=de.PlaceholderCell)===null||n===void 0?void 0:n.call(de,{cell:s,column:ie,row:ce,table:d}))!==null&&i!==void 0?i:null:K!==!1&&(U||K)?S.jsx(B9,Object.assign({animation:"wave",height:20,width:De},Se)):oe==="display"&&(["mrt-row-expand","mrt-row-numbers","mrt-row-select"].includes(ie.id)||!ce.getIsGrouped())?(r=de.Cell)===null||r===void 0?void 0:r.call(de,{cell:s,column:ie,renderedCellValue:s.renderValue(),row:ce,rowRef:l,staticColumnIndex:c,staticRowIndex:u,table:d}):Be||Ie?S.jsx(wEn,{cell:s,table:d}):ze&&de.enableClickToCopy!==!1?S.jsx(Kar,{cell:s,table:d,children:S.jsx(D5t,Object.assign({},it))}):S.jsx(D5t,Object.assign({},it)),s.getIsGrouped()&&!de.GroupedCell&&S.jsxs(S.Fragment,{children:[" (",(o=ce.subRows)===null||o===void 0?void 0:o.length,")"]})]})}))},Yar=I.memo(CEn,(e,t)=>t.cell===e.cell),Qar=e=>{var{parentRowRef:t,row:n,rowVirtualizer:i,staticRowIndex:r,table:o,virtualRow:s}=e,a=Do(e,["parentRowRef","row","rowVirtualizer","staticRowIndex","table","virtualRow"]);const{getState:l,getVisibleLeafColumns:c,options:{layoutMode:u,mrtTheme:{baseBackgroundColor:d},muiDetailPanelProps:h,muiTableBodyRowProps:f,renderDetailPanel:p}}=o,{isLoading:g}=l(),m=pi(f,{isDetailPanel:!0,row:n,staticRowIndex:r,table:o}),v=Object.assign(Object.assign({},pi(h,{row:n,table:o})),a),y=!g&&p?.({row:n,table:o});return S.jsx(bv,Object.assign({className:"Mui-TableBodyCell-DetailPanel","data-index":p?r*2+1:r,ref:b=>{var w;b&&((w=i?.measureElement)===null||w===void 0||w.call(i,b))}},m,{sx:b=>{var w,E;return Object.assign({display:u?.startsWith("grid")?"flex":void 0,position:s?"absolute":void 0,top:s?`${(E=(w=t.current)===null||w===void 0?void 0:w.getBoundingClientRect())===null||E===void 0?void 0:E.height}px`:void 0,transform:s?`translateY(${s?.start}px)`:void 0,width:"100%"},pi(m?.sx,b))},children:S.jsx(mu,Object.assign({className:"Mui-TableBodyCell-DetailPanel",colSpan:c().length},v,{sx:b=>Object.assign({backgroundColor:s?d:void 0,borderBottom:n.getIsExpanded()?void 0:"none",display:u?.startsWith("grid")?"flex":void 0,py:y&&n.getIsExpanded()?"1rem":0,transition:s?void 0:"all 150ms ease-in-out",width:"100%"},pi(v?.sx,b)),children:s?n.getIsExpanded()&&y:S.jsx(bj,{in:n.getIsExpanded(),mountOnEnter:!0,unmountOnExit:!0,children:y})}))}))},Mce=e=>{var t,n,i,r,{columnVirtualizer:o,numRows:s,pinnedRowIds:a,row:l,rowVirtualizer:c,staticRowIndex:u,table:d,virtualRow:h}=e,f=Do(e,["columnVirtualizer","numRows","pinnedRowIds","row","rowVirtualizer","staticRowIndex","table","virtualRow"]);const p=cl(),{getState:g,options:{enableRowOrdering:m,enableRowPinning:v,enableStickyFooter:y,enableStickyHeader:b,layoutMode:w,memoMode:E,mrtTheme:{baseBackgroundColor:A,pinnedRowBackgroundColor:D,selectedRowBackgroundColor:T},muiTableBodyRowProps:M,renderDetailPanel:P,rowPinningDisplayMode:F},refs:{tableFooterRef:N,tableHeadRef:j},setHoveredRow:W}=d,{density:J,draggingColumn:ee,draggingRow:Q,editingCell:H,editingRow:q,hoveredRow:le,isFullScreen:Y,rowPinning:G}=g(),pe=l.getVisibleCells(),{virtualColumns:U,virtualPaddingLeft:K,virtualPaddingRight:ie}=o??{},ce=Dfe({row:l,table:d}),de=v&&l.getIsPinned(),oe=Q?.id===l.id,me=le?.id===l.id,Ce=Object.assign(Object.assign({},pi(M,{row:l,staticRowIndex:u,table:d})),f),[Se,De]=I.useMemo(()=>!v||!F?.includes("sticky")||!a||!l.getIsPinned()?[]:[[...a].reverse().indexOf(l.id),a.indexOf(l.id)],[a,G]),Me=(b||Y)&&((t=j.current)===null||t===void 0?void 0:t.clientHeight)||0,qe=y&&((n=N.current)===null||n===void 0?void 0:n.clientHeight)||0,$=pi(Ce?.sx,p),he=J==="compact"?37:J==="comfortable"?53:69,Be=parseInt((r=(i=Ce?.style)===null||i===void 0?void 0:i.height)!==null&&r!==void 0?r:$?.height,10)||void 0||he,ze=et=>{m&&Q&&W(l)},Ye=et=>{et.preventDefault()},it=I.useRef(null),ft=ce?T:de?D:void 0,ct=Ce?.hover!==!1?ce?ft:p.palette.mode==="dark"?`${P0(A,.3)}`:`${fb(A,.3)}`:void 0;return S.jsxs(S.Fragment,{children:[S.jsxs(bv,Object.assign({"data-index":P?u*2:u,"data-pinned":!!de||void 0,"data-selected":ce||void 0,onDragEnter:ze,onDragOver:Ye,ref:et=>{et&&(it.current=et,c?.measureElement(et))},selected:ce},Ce,{style:Object.assign({transform:h?`translateY(${h.start}px)`:void 0},Ce?.style),sx:et=>Object.assign({"&:hover td:after":ct?Object.assign({backgroundColor:pr(ct,.3)},Vje):void 0,backgroundColor:`${A} !important`,bottom:!h&&Se!==void 0&&de?`${Se*Be+(y?qe-1:0)}px`:void 0,boxSizing:"border-box",display:w?.startsWith("grid")?"flex":void 0,opacity:de?.97:oe||me?.5:1,position:h?"absolute":F?.includes("sticky")&&de?"sticky":"relative",td:Object.assign({},mEn({table:d,theme:et})),"td:after":ft?Object.assign({backgroundColor:ft},Vje):void 0,top:h?0:De!==void 0&&de?`${De*Be+(b||Y?Me-1:0)}px`:void 0,transition:h?"none":"all 150ms ease-in-out",width:"100%",zIndex:F?.includes("sticky")&&de?2:0},$),children:[K?S.jsx("td",{style:{display:"flex",width:K}}):null,(U??pe).map((et,ut)=>{let wt=et;o&&(ut=et.index,wt=pe[ut]);const pt={cell:wt,numRows:s,rowRef:it,staticColumnIndex:ut,staticRowIndex:u,table:d},_t=`${wt.id}-${u}`;return wt?E==="cells"&&wt.column.columnDef.columnDefType==="data"&&!ee&&!Q&&H?.id!==wt.id&&q?.id!==l.id?S.jsx(Yar,Object.assign({},pt),_t):S.jsx(CEn,Object.assign({},pt),_t):null}),ie?S.jsx("td",{style:{display:"flex",width:ie}}):null]})),P&&!l.getIsGrouped()&&S.jsx(Qar,{parentRowRef:it,row:l,rowVirtualizer:c,staticRowIndex:u,table:d,virtualRow:h})]})},_Oe=I.memo(Mce,(e,t)=>e.row===t.row&&e.staticRowIndex===t.staticRowIndex),SEn=e=>{var t,n,i,r,o,s,{columnVirtualizer:a,table:l}=e,c=Do(e,["columnVirtualizer","table"]);const{getBottomRows:u,getIsSomeRowsPinned:d,getRowModel:h,getState:f,getTopRows:p,options:{enableStickyFooter:g,enableStickyHeader:m,layoutMode:v,localization:y,memoMode:b,muiTableBodyProps:w,renderDetailPanel:E,renderEmptyRowsFallback:A,rowPinningDisplayMode:D},refs:{tableFooterRef:T,tableHeadRef:M,tablePaperRef:P}}=l,{columnFilters:F,globalFilter:N,isFullScreen:j,rowPinning:W}=f(),J=Object.assign(Object.assign({},pi(w,{table:l})),c),ee=(m||j)&&((t=M.current)===null||t===void 0?void 0:t.clientHeight)||0,Q=g&&((n=T.current)===null||n===void 0?void 0:n.clientHeight)||0,H=I.useMemo(()=>{var pe,U;return!(!((pe=W.bottom)===null||pe===void 0)&&pe.length)&&!(!((U=W.top)===null||U===void 0)&&U.length)?[]:h().rows.filter(K=>K.getIsPinned()).map(K=>K.id)},[W,h().rows]),q=Gar(l),le=qar(l,q),{virtualRows:Y}=le??{},G={columnVirtualizer:a,numRows:q.length,table:l};return S.jsxs(S.Fragment,{children:[!D?.includes("sticky")&&d("top")&&S.jsx(pL,Object.assign({},J,{sx:pe=>Object.assign({display:v?.startsWith("grid")?"grid":void 0,position:"sticky",top:ee-1,zIndex:1},pi(J?.sx,pe)),children:p().map((pe,U)=>{const K=Object.assign(Object.assign({},G),{row:pe,staticRowIndex:U});return b==="rows"?S.jsx(_Oe,Object.assign({},K),pe.id):S.jsx(Mce,Object.assign({},K),pe.id)})})),S.jsx(pL,Object.assign({},J,{sx:pe=>Object.assign({display:v?.startsWith("grid")?"grid":void 0,height:le?`${le.getTotalSize()}px`:void 0,minHeight:q.length?void 0:"100px",position:"relative"},pi(J?.sx,pe)),children:(i=J?.children)!==null&&i!==void 0?i:q.length?S.jsx(S.Fragment,{children:(Y??q).map((pe,U)=>{let K=pe;if(le){if(E){if(pe.index%2===1)return null;U=pe.index/2}else U=pe.index;K=q[U]}const ie=Object.assign(Object.assign({},G),{pinnedRowIds:H,row:K,rowVirtualizer:le,staticRowIndex:U,virtualRow:le?pe:void 0}),ce=`${K.id}-${K.index}`;return b==="rows"?S.jsx(_Oe,Object.assign({},ie),ce):S.jsx(Mce,Object.assign({},ie),ce)})}):S.jsx("tr",{style:{display:v?.startsWith("grid")?"grid":void 0},children:S.jsx("td",{colSpan:l.getVisibleLeafColumns().length,style:{display:v?.startsWith("grid")?"grid":void 0},children:(r=A?.({table:l}))!==null&&r!==void 0?r:S.jsx(Xn,{sx:{color:"text.secondary",fontStyle:"italic",maxWidth:`min(100vw, ${(s=(o=P.current)===null||o===void 0?void 0:o.clientWidth)!==null&&s!==void 0?s:360}px)`,py:"2rem",textAlign:"center",width:"100%"},children:N||F.length?y.noResultsFound:y.noRecordsToDisplay})})})})),!D?.includes("sticky")&&d("bottom")&&S.jsx(pL,Object.assign({},J,{sx:pe=>Object.assign({bottom:Q-1,display:v?.startsWith("grid")?"grid":void 0,position:"sticky",zIndex:1},pi(J?.sx,pe)),children:u().map((pe,U)=>{const K=Object.assign(Object.assign({},G),{row:pe,staticRowIndex:U});return b==="rows"?S.jsx(_Oe,Object.assign({},K),pe.id):S.jsx(Mce,Object.assign({},K),pe.id)})}))]})},Zar=I.memo(SEn,(e,t)=>e.table.options.data===t.table.options.data),Xar=e=>{var t,n,i,{footer:r,staticColumnIndex:o,table:s}=e,a=Do(e,["footer","staticColumnIndex","table"]);const l=cl(),{getState:c,options:{enableColumnPinning:u,muiTableFooterCellProps:d,enableKeyboardShortcuts:h}}=s,{density:f}=c(),{column:p}=r,{columnDef:g}=p,{columnDefType:m}=g,v=u&&g.columnDefType!=="group"&&p.getIsPinned(),y={column:p,table:s},b=Object.assign(Object.assign(Object.assign({},pi(d,y)),pi(g.muiTableFooterCellProps,y)),a),w=E=>{var A;(A=b?.onKeyDown)===null||A===void 0||A.call(b,E),dXe({event:E,cellValue:r.column.columnDef.footer,table:s})};return S.jsx(mu,Object.assign({align:m==="group"?"center":l.direction==="rtl"?"right":"left",colSpan:r.colSpan,"data-index":o,"data-pinned":!!v||void 0,tabIndex:h?0:void 0,variant:"footer"},b,{onKeyDown:w,sx:E=>Object.assign(Object.assign({fontWeight:"bold",p:f==="compact"?"0.5rem":f==="comfortable"?"1rem":"1.5rem",verticalAlign:"top"},vXe({column:p,header:r,table:s,tableCellProps:b,theme:E})),pi(b?.sx,E)),children:(t=b.children)!==null&&t!==void 0?t:r.isPlaceholder?null:(i=(n=pi(g.Footer,{column:p,footer:r,table:s}))!==null&&n!==void 0?n:g.footer)!==null&&i!==void 0?i:null}))},Jar=e=>{var t,{columnVirtualizer:n,footerGroup:i,table:r}=e,o=Do(e,["columnVirtualizer","footerGroup","table"]);const{options:{layoutMode:s,mrtTheme:{baseBackgroundColor:a},muiTableFooterRowProps:l}}=r,{virtualColumns:c,virtualPaddingLeft:u,virtualPaddingRight:d}=n??{};if(!(!((t=i.headers)===null||t===void 0)&&t.some(f=>typeof f.column.columnDef.footer=="string"&&!!f.column.columnDef.footer||f.column.columnDef.Footer)))return null;const h=Object.assign(Object.assign({},pi(l,{footerGroup:i,table:r})),o);return S.jsxs(bv,Object.assign({},h,{sx:f=>Object.assign({backgroundColor:a,display:s?.startsWith("grid")?"flex":void 0,position:"relative",width:"100%"},pi(h?.sx,f)),children:[u?S.jsx("th",{style:{display:"flex",width:u}}):null,(c??i.headers).map((f,p)=>{let g=f;return n&&(p=f.index,g=i.headers[p]),g?S.jsx(Xar,{footer:g,staticColumnIndex:p,table:r},g.id):null}),d?S.jsx("th",{style:{display:"flex",width:d}}):null]}))},elr=e=>{var{columnVirtualizer:t,table:n}=e,i=Do(e,["columnVirtualizer","table"]);const{getState:r,options:{enableStickyFooter:o,layoutMode:s,muiTableFooterProps:a},refs:{tableFooterRef:l}}=n,{isFullScreen:c}=r(),u=Object.assign(Object.assign({},pi(a,{table:n})),i),d=(c||o)&&o!==!1,h=n.getFooterGroups();return h.some(f=>{var p;return(p=f.headers)===null||p===void 0?void 0:p.some(g=>typeof g.column.columnDef.footer=="string"&&!!g.column.columnDef.footer||g.column.columnDef.Footer)})?S.jsx(Uji,Object.assign({},u,{ref:f=>{l.current=f,u?.ref&&(u.ref.current=f)},sx:f=>Object.assign({bottom:d?0:void 0,display:s?.startsWith("grid")?"grid":void 0,opacity:d?.97:void 0,outline:d?f.palette.mode==="light"?`1px solid ${f.palette.grey[300]}`:`1px solid ${f.palette.grey[700]}`:void 0,position:d?"sticky":"relative",zIndex:d?1:void 0},pi(u?.sx,f)),children:h.map(f=>S.jsx(Jar,{columnVirtualizer:t,footerGroup:f,table:n},f.id))})):null},tlr=e=>[{divider:!1,label:e.filterFuzzy,option:"fuzzy",symbol:"≈"},{divider:!1,label:e.filterContains,option:"contains",symbol:"*"},{divider:!1,label:e.filterStartsWith,option:"startsWith",symbol:"a"},{divider:!0,label:e.filterEndsWith,option:"endsWith",symbol:"z"},{divider:!1,label:e.filterEquals,option:"equals",symbol:"="},{divider:!0,label:e.filterNotEquals,option:"notEquals",symbol:"≠"},{divider:!1,label:e.filterBetween,option:"between",symbol:"⇿"},{divider:!0,label:e.filterBetweenInclusive,option:"betweenInclusive",symbol:"⬌"},{divider:!1,label:e.filterGreaterThan,option:"greaterThan",symbol:">"},{divider:!1,label:e.filterGreaterThanOrEqualTo,option:"greaterThanOrEqualTo",symbol:"≥"},{divider:!1,label:e.filterLessThan,option:"lessThan",symbol:"<"},{divider:!0,label:e.filterLessThanOrEqualTo,option:"lessThanOrEqualTo",symbol:"≤"},{divider:!1,label:e.filterEmpty,option:"empty",symbol:"∅"},{divider:!1,label:e.filterNotEmpty,option:"notEmpty",symbol:"!∅"}],qre=["between","betweenInclusive","inNumberRange"],wOe=["empty","notEmpty"],nlr=["arrIncludesSome","arrIncludesAll","arrIncludes"],ilr=["range-slider","date-range","datetime-range","range"],bXe=e=>{var t,n,i,r,{anchorEl:o,header:s,onSelect:a,setAnchorEl:l,setFilterValue:c,table:u}=e,d=Do(e,["anchorEl","header","onSelect","setAnchorEl","setFilterValue","table"]);const{getState:h,options:{columnFilterModeOptions:f,globalFilterModeOptions:p,localization:g,mrtTheme:{menuBackgroundColor:m},renderColumnFilterModeMenuItems:v,renderGlobalFilterModeMenuItems:y},setColumnFilterFns:b,setGlobalFilterFn:w}=u,{density:E,globalFilterFn:A}=h(),{column:D}=s??{},{columnDef:T}=D??{},M=D?.getFilterValue();let P=(t=T?.columnFilterModeOptions)!==null&&t!==void 0?t:f;ilr.includes(T?.filterVariant)&&(P=[...qre,...P??[]].filter(W=>qre.includes(W)));const F=I.useMemo(()=>tlr(g).filter(W=>T?P===void 0||P?.includes(W.option):(!p||p.includes(W.option))&&["contains","fuzzy","startsWith"].includes(W.option)),[]),N=W=>{var J,ee;const Q=(J=T?._filterFn)!==null&&J!==void 0?J:"";!s||!D?w(W):W!==Q&&(b(H=>Object.assign(Object.assign({},H),{[s.id]:W})),wOe.includes(W)?M!==" "&&!wOe.includes(Q)?D.setFilterValue(" "):M&&D.setFilterValue(M):T?.filterVariant==="multi-select"||nlr.includes(W)?M instanceof String||M?.length?(D.setFilterValue([]),c?.([])):M&&D.setFilterValue(M):!((ee=T?.filterVariant)===null||ee===void 0)&&ee.includes("range")||qre.includes(W)?!Array.isArray(M)||!M?.every(H=>H==="")&&!qre.includes(Q)?(D.setFilterValue(["",""]),c?.("")):D.setFilterValue(M):Array.isArray(M)?(D.setFilterValue(""),c?.("")):M===" "&&wOe.includes(Q)?D.setFilterValue(void 0):D.setFilterValue(M)),l(null),a?.()},j=s&&T?T._filterFn:A;return S.jsx(Mb,Object.assign({MenuListProps:{dense:E==="compact",sx:{backgroundColor:m}},anchorEl:o,anchorOrigin:{horizontal:"right",vertical:"center"},disableScrollLock:!0,onClose:()=>l(null),open:!!o},d,{children:(r=s&&D&&T?(i=(n=T.renderColumnFilterModeMenuItems)===null||n===void 0?void 0:n.call(T,{column:D,internalFilterOptions:F,onSelectFilterMode:N,table:u}))!==null&&i!==void 0?i:v?.({column:D,internalFilterOptions:F,onSelectFilterMode:N,table:u}):y?.({internalFilterOptions:F,onSelectFilterMode:N,table:u}))!==null&&r!==void 0?r:F.map(({divider:W,label:J,option:ee,symbol:Q},H)=>S.jsx(Yg,{divider:W,icon:Q,label:J,onClick:()=>N(ee),selected:ee===j,table:u,value:ee},H))}))},rlr=e=>{var t,n,i,r,o,s,a,l,c,u,{anchorEl:d,header:h,setAnchorEl:f,table:p}=e,g=Do(e,["anchorEl","header","setAnchorEl","table"]);const{getAllLeafColumns:m,getState:v,options:{columnFilterDisplayMode:y,columnFilterModeOptions:b,enableColumnFilterModes:w,enableColumnFilters:E,enableColumnPinning:A,enableColumnResizing:D,enableGrouping:T,enableHiding:M,enableSorting:P,enableSortingRemoval:F,icons:{ClearAllIcon:N,DynamicFeedIcon:j,FilterListIcon:W,FilterListOffIcon:J,PushPinIcon:ee,RestartAltIcon:Q,SortIcon:H,ViewColumnIcon:q,VisibilityOffIcon:le},localization:Y,mrtTheme:{menuBackgroundColor:G},renderColumnActionsMenuItems:pe},refs:{filterInputRefs:U},setColumnFilterFns:K,setColumnOrder:ie,setColumnSizingInfo:ce,setShowColumnFilters:de}=p,{column:oe}=h,{columnDef:me}=oe,{columnSizing:Ce,columnVisibility:Se,density:De,showColumnFilters:Me}=v(),qe=oe.getFilterValue(),[$,he]=I.useState(null),Ie=()=>{oe.clearSorting(),f(null)},Be=()=>{oe.toggleSorting(!1),f(null)},ze=()=>{oe.toggleSorting(!0),f(null)},Ye=()=>{ce(Gt=>Object.assign(Object.assign({},Gt),{isResizingColumn:!1})),oe.resetSize(),f(null)},it=()=>{oe.toggleVisibility(!1),f(null)},ft=Gt=>{oe.pin(Gt),f(null)},ct=()=>{oe.toggleGrouping(),ie(Gt=>["mrt-row-expand",...Gt]),f(null)},et=()=>{oe.setFilterValue(void 0),f(null),["empty","notEmpty"].includes(me._filterFn)&&K(Gt=>{var Kt;return Object.assign(Object.assign({},Gt),{[h.id]:(Kt=Rt?.[0])!==null&&Kt!==void 0?Kt:"fuzzy"})})},ut=()=>{de(!0),queueMicrotask(()=>{var Gt,Kt;return(Kt=(Gt=U.current)===null||Gt===void 0?void 0:Gt[`${oe.id}-0`])===null||Kt===void 0?void 0:Kt.focus()}),f(null)},wt=()=>{m().filter(Gt=>Gt.columnDef.enableHiding!==!1).forEach(Gt=>Gt.toggleVisibility(!0)),f(null)},pt=Gt=>{Gt.stopPropagation(),he(Gt.currentTarget)},_t=!!me.filterSelectOptions,Rt=(t=me?.columnFilterModeOptions)!==null&&t!==void 0?t:b,Yt=w&&me.enableColumnFilterModes!==!1&&!_t&&(Rt===void 0||!!Rt?.length),Ut=[...P&&oe.getCanSort()?[F!==!1&&S.jsx(Yg,{disabled:oe.getIsSorted()===!1,icon:S.jsx(N,{}),label:Y.clearSort,onClick:Ie,table:p},0),S.jsx(Yg,{disabled:oe.getIsSorted()==="asc",icon:S.jsx(H,{style:{transform:"rotate(180deg) scaleX(-1)"}}),label:(n=Y.sortByColumnAsc)===null||n===void 0?void 0:n.replace("{column}",String(me.header)),onClick:Be,table:p},1),S.jsx(Yg,{disabled:oe.getIsSorted()==="desc",divider:E||T||M,icon:S.jsx(H,{}),label:(i=Y.sortByColumnDesc)===null||i===void 0?void 0:i.replace("{column}",String(me.header)),onClick:ze,table:p},2)]:[],...E&&oe.getCanFilter()?[S.jsx(Yg,{disabled:!qe||Array.isArray(qe)&&!qe.filter(Gt=>Gt).length,icon:S.jsx(J,{}),label:Y.clearFilter,onClick:et,table:p},3),y==="subheader"&&S.jsx(Yg,{disabled:Me&&!w,divider:T||M,icon:S.jsx(W,{}),label:(r=Y.filterByColumn)===null||r===void 0?void 0:r.replace("{column}",String(me.header)),onClick:Me?pt:ut,onOpenSubMenu:Yt?pt:void 0,table:p},4),Yt&&S.jsx(bXe,{anchorEl:$,header:h,onSelect:ut,setAnchorEl:he,table:p},5)].filter(Boolean):[],...T&&oe.getCanGroup()?[S.jsx(Yg,{divider:A,icon:S.jsx(j,{}),label:(o=Y[oe.getIsGrouped()?"ungroupByColumn":"groupByColumn"])===null||o===void 0?void 0:o.replace("{column}",String(me.header)),onClick:ct,table:p},6)]:[],...A&&oe.getCanPin()?[S.jsx(Yg,{disabled:oe.getIsPinned()==="left"||!oe.getCanPin(),icon:S.jsx(ee,{style:{transform:"rotate(90deg)"}}),label:Y.pinToLeft,onClick:()=>ft("left"),table:p},7),S.jsx(Yg,{disabled:oe.getIsPinned()==="right"||!oe.getCanPin(),icon:S.jsx(ee,{style:{transform:"rotate(-90deg)"}}),label:Y.pinToRight,onClick:()=>ft("right"),table:p},8),S.jsx(Yg,{disabled:!oe.getIsPinned(),divider:M,icon:S.jsx(ee,{}),label:Y.unpin,onClick:()=>ft(!1),table:p},9)]:[],...D&&oe.getCanResize()?[S.jsx(Yg,{disabled:Ce[oe.id]===void 0,icon:S.jsx(Q,{}),label:Y.resetColumnSize,onClick:Ye,table:p},10)]:[],...M?[S.jsx(Yg,{disabled:!oe.getCanHide(),icon:S.jsx(le,{}),label:(s=Y.hideColumn)===null||s===void 0?void 0:s.replace("{column}",String(me.header)),onClick:it,table:p},11),S.jsx(Yg,{disabled:!Object.values(Se).filter(Gt=>!Gt).length,icon:S.jsx(q,{}),label:(a=Y.showAllColumns)===null||a===void 0?void 0:a.replace("{column}",String(me.header)),onClick:wt,table:p},12)]:[]].filter(Boolean);return S.jsx(Mb,Object.assign({MenuListProps:{dense:De==="compact",sx:{backgroundColor:G}},anchorEl:d,disableScrollLock:!0,onClose:()=>f(null),open:!!d},g,{children:(u=(c=(l=me.renderColumnActionsMenuItems)===null||l===void 0?void 0:l.call(me,{closeMenu:()=>f(null),column:oe,internalColumnMenuItems:Ut,table:p}))!==null&&c!==void 0?c:pe?.({closeMenu:()=>f(null),column:oe,internalColumnMenuItems:Ut,table:p}))!==null&&u!==void 0?u:Ut}))},olr=e=>{var t,n,{header:i,table:r}=e,o=Do(e,["header","table"]);const{options:{icons:{MoreVertIcon:s},localization:a,muiColumnActionsButtonProps:l}}=r,{column:c}=i,{columnDef:u}=c,[d,h]=I.useState(null),f=g=>{g.stopPropagation(),g.preventDefault(),h(g.currentTarget)},p=Object.assign(Object.assign(Object.assign({},pi(l,{column:c,table:r})),pi(u.muiColumnActionsButtonProps,{column:c,table:r})),o);return S.jsxs(S.Fragment,{children:[S.jsx(uo,Object.assign({},Pw("top"),{title:(t=p?.title)!==null&&t!==void 0?t:a.columnActions,children:S.jsx(Qr,Object.assign({"aria-label":a.columnActions,onClick:f,size:"small"},p,{sx:g=>Object.assign({"&:hover":{opacity:1},height:"2rem",m:"-8px -4px",opacity:.3,transition:"all 150ms",width:"2rem"},pi(p?.sx,g)),title:void 0,children:(n=p?.children)!==null&&n!==void 0?n:S.jsx(s,{style:{transform:"scale(0.9)"}})}))})),d&&S.jsx(rlr,{anchorEl:d,header:i,setAnchorEl:h,table:r})]})},slr=e=>{var t,n,i,{column:r,table:o}=e,s=Do(e,["column","table"]);const{getState:a,options:{localization:l,muiFilterCheckboxProps:c}}=o,{density:u}=a(),{columnDef:d}=r,h=Object.assign(Object.assign(Object.assign({},pi(c,{column:r,table:o})),pi(d.muiFilterCheckboxProps,{column:r,table:o})),s),f=(t=l.filterByColumn)===null||t===void 0?void 0:t.replace("{column}",d.header);return S.jsx(uo,Object.assign({},Pw(),{title:(n=h?.title)!==null&&n!==void 0?n:f,children:S.jsx(ybn,{control:S.jsx(YQ,Object.assign({checked:r.getFilterValue()==="true",color:r.getFilterValue()===void 0?"default":"primary",indeterminate:r.getFilterValue()===void 0,size:u==="compact"?"small":"medium"},h,{onChange:(p,g)=>{var m;r.setFilterValue(r.getFilterValue()===void 0?"true":r.getFilterValue()==="true"?"false":void 0),(m=h?.onChange)===null||m===void 0||m.call(h,p,g)},onClick:p=>{var g;p.stopPropagation(),(g=h?.onClick)===null||g===void 0||g.call(h,p)},sx:p=>Object.assign({height:"2.5rem",width:"2.5rem"},pi(h?.sx,p))})),disableTypography:!0,label:(i=h.title)!==null&&i!==void 0?i:f,sx:{color:"text.secondary",fontWeight:"normal",mt:"-4px"},title:void 0})}))},xEn=e=>{var t,n,i,r,o,s,a,l,c,u,d,h,f,p,g,m,v,y,b,w,E,A,D,{header:T,rangeFilterIndex:M,table:P}=e,F=Do(e,["header","rangeFilterIndex","table"]);const{options:{enableColumnFilterModes:N,icons:{CloseIcon:j,FilterListIcon:W},localization:J,manualFiltering:ee,muiFilterAutocompleteProps:Q,muiFilterDatePickerProps:H,muiFilterDateTimePickerProps:q,muiFilterTextFieldProps:le,muiFilterTimePickerProps:Y},refs:{filterInputRefs:G},setColumnFilterFns:pe}=P,{column:U}=T,{columnDef:K}=U,{filterVariant:ie}=K,ce={column:U,rangeFilterIndex:M,table:P},de=Object.assign(Object.assign(Object.assign({},pi(le,ce)),pi(K.muiFilterTextFieldProps,ce)),F),oe=Object.assign(Object.assign({},pi(Q,ce)),pi(K.muiFilterAutocompleteProps,ce)),me=Object.assign(Object.assign({},pi(H,ce)),pi(K.muiFilterDatePickerProps,ce)),Ce=Object.assign(Object.assign({},pi(q,ce)),pi(K.muiFilterDateTimePickerProps,ce)),Se=Object.assign(Object.assign({},pi(Y,ce)),pi(K.muiFilterTimePickerProps,ce)),{allowedColumnFilterOptions:De,currentFilterOption:Me,facetedUniqueValues:qe,isAutocompleteFilter:$,isDateFilter:he,isMultiSelectFilter:Ie,isRangeFilter:Be,isSelectFilter:ze,isTextboxFilter:Ye}=lye({header:T,table:P}),it=Yxn({header:T,table:P}),ft=["empty","notEmpty"].includes(Me)?J[`filter${((n=(t=Me?.charAt)===null||t===void 0?void 0:t.call(Me,0))===null||n===void 0?void 0:n.toUpperCase())+Me?.slice(1)}`]:"",ct=Be?M===0?J.min:M===1?J.max:"":(i=de?.placeholder)!==null&&i!==void 0?i:(r=J.filterByColumn)===null||r===void 0?void 0:r.replace("{column}",String(K.header)),et=!!(N&&K.enableColumnFilterModes!==!1&&!M&&(De===void 0||De?.length)),[ut,wt]=I.useState(null),[pt,_t]=I.useState(()=>{var V,re;return Ie?U.getFilterValue()||[]:Be?((V=U.getFilterValue())===null||V===void 0?void 0:V[M])||"":$?typeof U.getFilterValue()=="string"?U.getFilterValue():"":(re=U.getFilterValue())!==null&&re!==void 0?re:""}),[Rt,Yt]=I.useState(()=>$&&U.getFilterValue()||null),Ut=I.useCallback(FQ(V=>{Be?U.setFilterValue(re=>{const ge=re??["",""];return ge[M]=V??void 0,ge}):U.setFilterValue(V??void 0)},Ye?ee?400:200:1),[]),Gt=V=>{_t(V??""),Ut(V)},Kt=V=>{var re;const ge=de.type==="date"?V.target.valueAsDate:de.type==="number"?V.target.valueAsNumber:V.target.value;Gt(ge),(re=de?.onChange)===null||re===void 0||re.call(de,V)},ln=(V,re,ge)=>{Gt(re)},pn=V=>{Yt(V),Ut(GA(V).value)},wn=()=>{Ie?(_t([]),U.setFilterValue([])):Be?(_t(""),U.setFilterValue(V=>{const re=Array.isArray(V)&&V||["",""];return re[M]=void 0,re})):$?(Yt(null),_t("")):(_t(""),U.setFilterValue(void 0))},Mn=()=>{_t(""),U.setFilterValue(void 0),pe(V=>{var re;return Object.assign(Object.assign({},V),{[T.id]:(re=De?.[0])!==null&&re!==void 0?re:"fuzzy"})})},Yn=V=>{wt(V.currentTarget)},di=I.useRef(!1);if(I.useEffect(()=>{if(di.current){const V=U.getFilterValue();V===void 0?wn():_t(Be&&M!==void 0?V[M]:V)}di.current=!0},[U.getFilterValue()]),K.Filter)return S.jsx(S.Fragment,{children:(o=K.Filter)===null||o===void 0?void 0:o.call(K,{column:U,header:T,rangeFilterIndex:M,table:P})});const Li=!$&&!he&&!ft?S.jsx(F9,{position:"end",sx:{mr:ze||Ie?"20px":void 0,visibility:((s=pt?.length)!==null&&s!==void 0?s:0)>0?"visible":"hidden"},children:S.jsx(uo,{placement:"right",title:(a=J.clearFilter)!==null&&a!==void 0?a:"",children:S.jsx("span",{children:S.jsx(Qr,{"aria-label":J.clearFilter,disabled:!(!((l=pt?.toString())===null||l===void 0)&&l.length),onClick:wn,size:"small",sx:{height:"2rem",transform:"scale(0.9)",width:"2rem"},children:S.jsx(j,{})})})})}):null,ke=et?S.jsxs(F9,{position:"start",children:[S.jsx(uo,{title:J.changeFilterMode,children:S.jsx("span",{children:S.jsx(Qr,{"aria-label":J.changeFilterMode,onClick:Yn,size:"small",sx:{height:"1.75rem",width:"1.75rem"},children:S.jsx(W,{})})})}),ft&&S.jsx(D2,{label:ft,onDelete:Mn})]}):null,Z=Object.assign(Object.assign({fullWidth:!0,helperText:et?S.jsx("label",{children:J.filterMode.replace("{filterType}",J[`filter${((c=Me?.charAt(0))===null||c===void 0?void 0:c.toUpperCase())+Me?.slice(1)}`])}):null,inputRef:V=>{G.current[`${U.id}-${M??0}`]=V,de.inputRef&&(de.inputRef=V)},margin:"none",placeholder:ft||ze||Ie?void 0:ct,variant:"standard"},de),{slotProps:Object.assign(Object.assign({},de.slotProps),{formHelperText:Object.assign({sx:{fontSize:"0.75rem",lineHeight:"0.8rem",whiteSpace:"nowrap"}},(u=de.slotProps)===null||u===void 0?void 0:u.formHelperText),input:Li?Object.assign({endAdornment:Li,startAdornment:ke},(d=de.slotProps)===null||d===void 0?void 0:d.input):Object.assign({startAdornment:ke},(h=de.slotProps)===null||h===void 0?void 0:h.input),htmlInput:Object.assign({"aria-label":ct,autoComplete:"off",disabled:!!ft,sx:{textOverflow:"ellipsis",width:ft?0:void 0},title:ct},(f=de.slotProps)===null||f===void 0?void 0:f.htmlInput)}),onKeyDown:V=>{var re;V.stopPropagation(),(re=de.onKeyDown)===null||re===void 0||re.call(de,V)},sx:V=>Object.assign({minWidth:he?"160px":N&&M===0?"110px":Be?"100px":ft?"auto":"120px",mx:"-2px",p:0,width:"calc(100% + 4px)"},pi(de?.sx,V))}),ne={onChange:V=>{Gt(V)},value:pt||null};return S.jsxs(S.Fragment,{children:[ie?.startsWith("time")?S.jsx(RFi,Object.assign({},ne,Se,{slotProps:{field:Object.assign({clearable:!0,onClear:()=>wn()},(p=Se?.slotProps)===null||p===void 0?void 0:p.field),textField:Object.assign(Object.assign({},Z),(g=Se?.slotProps)===null||g===void 0?void 0:g.textField)}})):ie?.startsWith("datetime")?S.jsx(y7e,Object.assign({},ne,Ce,{slotProps:{field:Object.assign({clearable:!0,onClear:()=>wn()},(m=Ce?.slotProps)===null||m===void 0?void 0:m.field),textField:Object.assign(Object.assign({},Z),(v=Ce?.slotProps)===null||v===void 0?void 0:v.textField)}})):ie?.startsWith("date")?S.jsx(mFi,Object.assign({},ne,me,{slotProps:{field:Object.assign({clearable:!0,onClear:()=>wn()},(y=me?.slotProps)===null||y===void 0?void 0:y.field),textField:Object.assign(Object.assign({},Z),(b=me?.slotProps)===null||b===void 0?void 0:b.textField)}})):$?S.jsx(XQe,Object.assign({freeSolo:!0,getOptionLabel:V=>GA(V).label,onChange:(V,re)=>pn(re),options:(w=it?.map(V=>GA(V)))!==null&&w!==void 0?w:[],inputValue:pt,onInputChange:ln},oe,{renderInput:V=>{var re,ge,we,ve,_e;return S.jsx(jv,Object.assign({},Z,V,{slotProps:Object.assign(Object.assign(Object.assign({},V.slotProps),Z.slotProps),{input:Object.assign(Object.assign(Object.assign({},V.InputProps),(re=V.slotProps)===null||re===void 0?void 0:re.input),{startAdornment:(we=(ge=Z?.slotProps)===null||ge===void 0?void 0:ge.input)===null||we===void 0?void 0:we.startAdornment}),htmlInput:Object.assign(Object.assign(Object.assign({},V.inputProps),(ve=V.slotProps)===null||ve===void 0?void 0:ve.htmlInput),(_e=Z?.slotProps)===null||_e===void 0?void 0:_e.htmlInput)}),onClick:Ee=>Ee.stopPropagation()}))},value:Rt})):S.jsx(jv,Object.assign({select:ze||Ie},Z,{slotProps:Object.assign(Object.assign({},Z.slotProps),{inputLabel:Object.assign({shrink:ze||Ie},(E=Z.slotProps)===null||E===void 0?void 0:E.inputLabel),select:Object.assign({MenuProps:{disableScrollLock:!0},displayEmpty:!0,multiple:Ie,renderValue:Ie?V=>!Array.isArray(V)||V?.length===0?S.jsx(tn,{sx:{opacity:.5},children:ct}):S.jsx(tn,{sx:{display:"flex",flexWrap:"wrap",gap:"2px"},children:V.map(re=>{const ge=it?.find(we=>GA(we).value===re);return S.jsx(D2,{label:GA(ge).label},re)})}):void 0},(A=Z.slotProps)===null||A===void 0?void 0:A.select)}),onChange:Kt,onClick:V=>V.stopPropagation(),value:Ie?Array.isArray(pt)?pt:[]:pt,children:(ze||Ie)&&[S.jsx(bo,{disabled:!0,divider:!0,hidden:!0,value:"",children:S.jsx(tn,{sx:{opacity:.5},children:ct})},"p"),(D=de.children)!==null&&D!==void 0?D:it?.map((V,re)=>{var ge;const{label:we,value:ve}=GA(V);return S.jsxs(bo,{sx:{alignItems:"center",display:"flex",gap:"0.5rem",m:0},value:ve,children:[Ie&&S.jsx(YQ,{checked:((ge=U.getFilterValue())!==null&&ge!==void 0?ge:[]).includes(ve),sx:{mr:"0.5rem"}}),we," ",!K.filterSelectOptions&&`(${qe.get(ve)})`]},`${re}-${ve}`)})]})),S.jsx(bXe,{anchorEl:ut,header:T,setAnchorEl:wt,setFilterValue:_t,table:P})]})},alr=e=>{var{header:t,table:n}=e,i=Do(e,["header","table"]);return S.jsx(tn,Object.assign({},i,{sx:r=>Object.assign({display:"grid",gap:"1rem",gridTemplateColumns:"1fr 1fr"},pi(i?.sx,r)),children:[0,1].map(r=>S.jsx(xEn,{header:t,rangeFilterIndex:r,table:n},r))}))},llr=e=>{var t,n,{header:i,table:r}=e,o=Do(e,["header","table"]);const{options:{enableColumnFilterModes:s,localization:a,muiFilterSliderProps:l},refs:{filterInputRefs:c}}=r,{column:u}=i,{columnDef:d}=u,h=d._filterFn,f=s&&d.enableColumnFilterModes!==!1,p=Object.assign(Object.assign(Object.assign({},pi(l,{column:u,table:r})),pi(d.muiFilterSliderProps,{column:u,table:r})),o);let[g,m]=p.min!==void 0&&p.max!==void 0?[p.min,p.max]:(t=u.getFacetedMinMaxValues())!==null&&t!==void 0?t:[0,1];Array.isArray(g)&&(g=g[0]),Array.isArray(m)&&(m=m[0]),g===null&&(g=0),m===null&&(m=1);const[v,y]=I.useState([g,m]),b=u.getFilterValue(),w=I.useRef(!1),E=A=>{(A.key==="ArrowLeft"||A.key==="ArrowRight")&&A.stopPropagation()};return I.useEffect(()=>{w.current&&(b===void 0?y([g,m]):Array.isArray(b)&&y(b)),w.current=!0},[b,g,m]),S.jsxs(wr,{children:[S.jsx(Ebn,Object.assign({disableSwap:!0,max:m,min:g,onChange:(A,D)=>{y(D)},onChangeCommitted:(A,D)=>{Array.isArray(D)&&(D[0]<=g&&D[1]>=m?u.setFilterValue(void 0):u.setFilterValue(D))},onKeyDown:E,value:v,valueLabelDisplay:"auto"},p,{slotProps:{input:{ref:A=>{var D,T;A&&(c.current[`${u.id}-0`]=A,!((T=(D=p?.slotProps)===null||D===void 0?void 0:D.input)===null||T===void 0)&&T.ref&&(p.slotProps.input.ref=A))}}},sx:A=>Object.assign({m:"auto",minWidth:`${u.getSize()-50}px`,mt:f?"6px":"10px",px:"4px",width:"calc(100% - 8px)"},pi(p?.sx,A))})),f?S.jsx(AQe,{sx:{fontSize:"0.75rem",lineHeight:"0.8rem",m:"-3px -6px",whiteSpace:"nowrap"},children:a.filterMode.replace("{filterType}",a[`filter${((n=h?.charAt(0))===null||n===void 0?void 0:n.toUpperCase())+h?.slice(1)}`])}):null]})},EEn=e=>{var{header:t,table:n}=e,i=Do(e,["header","table"]);const{getState:r,options:{columnFilterDisplayMode:o}}=n,{showColumnFilters:s}=r(),{column:a}=t,{columnDef:l}=a,{isRangeFilter:c}=lye({header:t,table:n});return S.jsx(bj,Object.assign({in:s||o==="popover",mountOnEnter:!0,unmountOnExit:!0},i,{children:l.filterVariant==="checkbox"?S.jsx(slr,{column:a,table:n}):l.filterVariant==="range-slider"?S.jsx(llr,{header:t,table:n}):c?S.jsx(alr,{header:t,table:n}):S.jsx(xEn,{header:t,table:n})}))},clr=e=>{var t,{header:n,table:i}=e,r=Do(e,["header","table"]);const{options:{columnFilterDisplayMode:o,icons:{FilterAltIcon:s},localization:a},refs:{filterInputRefs:l},setShowColumnFilters:c}=i,{column:u}=n,{columnDef:d}=u,h=u.getFilterValue(),[f,p]=I.useState(null),{currentFilterOption:g,isMultiSelectFilter:m,isRangeFilter:v,isSelectFilter:y}=lye({header:n,table:i}),b=Yxn({header:n,table:i}),w=D=>GA(b?.find(T=>GA(T).value===(D!==void 0?h[D]:h))).label,E=Array.isArray(h)&&h.some(Boolean)||!!h&&!Array.isArray(h),A=o==="popover"&&!E?(t=a.filterByColumn)===null||t===void 0?void 0:t.replace("{column}",String(d.header)):a.filteringByColumn.replace("{column}",String(d.header)).replace("{filterType}",g?a[`filter${g.charAt(0).toUpperCase()+g.slice(1)}`]:"").replace("{filterValue}",`"${Array.isArray(h)?h.map((D,T)=>m?w(T):D).join(`" ${v?a.and:a.or} "`):y?w():h}"`).replace('" "',"");return S.jsxs(S.Fragment,{children:[S.jsx(VQ,{in:o==="popover"||!!h&&!v||v&&(!!h?.[0]||!!h?.[1]),unmountOnExit:!0,children:S.jsx(tn,{component:"span",sx:{flex:"0 0"},children:S.jsx(uo,{placement:"top",title:A,children:S.jsx(Qr,Object.assign({disableRipple:!0,onClick:D=>{o==="popover"?p(D.currentTarget):c(!0),queueMicrotask(()=>{var T,M,P,F,N,j;(P=(M=(T=l.current)===null||T===void 0?void 0:T[`${u.id}-0`])===null||M===void 0?void 0:M.focus)===null||P===void 0||P.call(M),(j=(N=(F=l.current)===null||F===void 0?void 0:F[`${u.id}-0`])===null||N===void 0?void 0:N.select)===null||j===void 0||j.call(N)}),D.stopPropagation()},size:"small"},r,{sx:D=>Object.assign({height:"16px",ml:"4px",opacity:E?1:.3,p:"8px",transform:"scale(0.75)",transition:"all 150ms ease-in-out",width:"16px"},pi(r?.sx,D)),children:S.jsx(s,{})}))})})}),o==="popover"&&S.jsx(U0n,{anchorEl:f,anchorOrigin:{horizontal:"center",vertical:"top"},disableScrollLock:!0,onClick:D=>D.stopPropagation(),onClose:D=>{D.stopPropagation(),p(null)},onKeyDown:D=>D.key==="Enter"&&p(null),open:!!f,slotProps:{paper:{sx:{overflow:"visible"}}},transformOrigin:{horizontal:"center",vertical:"bottom"},children:S.jsx(tn,{sx:{p:"1rem"},children:S.jsx(EEn,{header:n,table:i})})})]})},ulr=e=>{var{column:t,table:n,tableHeadCellRef:i}=e,r=Do(e,["column","table","tableHeadCellRef"]);const{getState:o,options:{enableColumnOrdering:s,muiColumnDragHandleProps:a},setColumnOrder:l,setColumnPinning:c,setDraggingColumn:u,setHoveredColumn:d}=n,{columnDef:h}=t,{columnOrder:f,draggingColumn:p,hoveredColumn:g}=o(),m=Object.assign(Object.assign(Object.assign({},pi(a,{column:t,table:n})),pi(h.muiColumnDragHandleProps,{column:t,table:n})),r),v=b=>{var w;(w=m?.onDragStart)===null||w===void 0||w.call(m,b),u(t);try{b.dataTransfer.setDragImage(i.current,0,0)}catch(E){console.error(E)}},y=b=>{var w;if((w=m?.onDragEnd)===null||w===void 0||w.call(m,b),g?.id==="drop-zone")t.toggleGrouping();else if(s&&g&&g?.id!==p?.id){const E=Kxn(t,g,f);l(E),c(({left:A=[],right:D=[]})=>({left:E.filter(T=>A.includes(T)),right:E.filter(T=>D.includes(T))}))}u(null),d(null)};return S.jsx(yXe,Object.assign({},m,{onDragEnd:y,onDragStart:v,table:n}))},dlr=e=>{var t,{header:n,table:i}=e,r=Do(e,["header","table"]);const{getState:o,options:{columnResizeDirection:s,columnResizeMode:a},setColumnSizingInfo:l}=i,{density:c}=o(),{column:u}=n,d=n.getResizeHandler(),h=c==="compact"?"-8px":c==="comfortable"?"-16px":"-24px",f=u.columnDef.columnDefType==="display"?"4px":"0";return S.jsx(tn,{className:"Mui-TableHeadCell-ResizeHandle-Wrapper",onDoubleClick:()=>{l(p=>Object.assign(Object.assign({},p),{isResizingColumn:!1})),u.resetSize()},onMouseDown:d,onTouchStart:d,style:{transform:u.getIsResizing()&&a==="onEnd"?`translateX(${(s==="rtl"?-1:1)*((t=o().columnSizingInfo.deltaOffset)!==null&&t!==void 0?t:0)}px)`:void 0},sx:p=>({"&:active > hr":{backgroundColor:p.palette.info.main,opacity:n.subHeaders.length||a==="onEnd"?1:0},cursor:"col-resize",left:s==="rtl"?f:void 0,ml:s==="rtl"?h:void 0,mr:s==="ltr"?h:void 0,position:"absolute",px:"4px",right:s==="ltr"?f:void 0}),children:S.jsx(cE,{className:"Mui-TableHeadCell-ResizeHandle-Divider",flexItem:!0,orientation:"vertical",sx:p=>Object.assign({borderRadius:"2px",borderWidth:"2px",height:"24px",touchAction:"none",transform:"translateX(4px)",transition:u.getIsResizing()?void 0:"all 150ms ease-in-out",userSelect:"none",zIndex:4},pi(r?.sx,p))})})},hlr=e=>{var{header:t,table:n}=e,i=Do(e,["header","table"]);const{getState:r,options:{icons:{ArrowDownwardIcon:o,SyncAltIcon:s},localization:a}}=n,{column:l}=t,{columnDef:c}=l,{isLoading:u,showSkeletons:d,sorting:h}=r(),f=!!l.getIsSorted(),p=u||d?"":l.getIsSorted()?l.getIsSorted()==="desc"?a.sortedByColumnDesc.replace("{column}",c.header):a.sortedByColumnAsc.replace("{column}",c.header):l.getNextSortingOrder()==="desc"?a.sortByColumnDesc.replace("{column}",c.header):a.sortByColumnAsc.replace("{column}",c.header),g=f?l.getIsSorted():void 0;return S.jsx(uo,{placement:"top",title:p,children:S.jsx(mbn,{badgeContent:h.length>1?l.getSortIndex()+1:0,overlap:"circular",children:S.jsx(czi,Object.assign({IconComponent:f?o:m=>S.jsx(s,Object.assign({},m,{direction:g,style:{transform:"rotate(-90deg) scaleX(0.9) translateX(-1px)"}})),active:!0,"aria-label":p,direction:g,onClick:m=>{var v;m.stopPropagation(),(v=t.column.getToggleSortingHandler())===null||v===void 0||v(m)}},i,{sx:m=>Object.assign({".MuiTableSortLabel-icon":{color:`${m.palette.mode==="dark"?m.palette.text.primary:m.palette.text.secondary} !important`},flex:"0 0",opacity:f?1:.3,transition:"all 150ms ease-in-out",width:"3ch"},pi(i?.sx,m))}))})})},flr=e=>{var t,n,i,r,o,s,a,{columnVirtualizer:l,header:c,staticColumnIndex:u,table:d}=e,h=Do(e,["columnVirtualizer","header","staticColumnIndex","table"]);const f=cl(),{getState:p,options:{columnFilterDisplayMode:g,columnResizeDirection:m,columnResizeMode:v,enableKeyboardShortcuts:y,enableColumnActions:b,enableColumnDragging:w,enableColumnOrdering:E,enableColumnPinning:A,enableGrouping:D,enableMultiSort:T,layoutMode:M,mrtTheme:{draggingBorderColor:P},muiTableHeadCellProps:F},refs:{tableHeadCellRefs:N},setHoveredColumn:j}=d,{columnSizingInfo:W,density:J,draggingColumn:ee,grouping:Q,hoveredColumn:H,showColumnFilters:q}=p(),{column:le}=c,{columnDef:Y}=le,{columnDefType:G}=Y,pe=Object.assign(Object.assign(Object.assign({},pi(F,{column:le,table:d})),pi(Y.muiTableHeadCellProps,{column:le,table:d})),h),U=A&&Y.columnDefType!=="group"&&le.getIsPinned(),K=(b||Y.enableColumnActions)&&Y.enableColumnActions!==!1,ie=w!==!1&&Y.enableColumnDragging!==!1&&(w||E&&Y.enableColumnOrdering!==!1||D&&Y.enableGrouping!==!1&&!Q.includes(le.id)),ce=I.useMemo(()=>{let De=0;return le.getCanSort()&&(De+=1),K&&(De+=1.75),ie&&(De+=1.5),De},[K,ie]),de=I.useMemo(()=>{const De=W.isResizingColumn===le.id&&v==="onChange"&&!c.subHeaders.length,Me=De?`2px solid ${P} !important`:ee?.id===le.id?`1px dashed ${f.palette.grey[500]}`:H?.id===le.id?`2px dashed ${P}`:void 0;return De?m==="ltr"?{borderRight:Me}:{borderLeft:Me}:Me?{borderLeft:Me,borderRight:Me,borderTop:Me}:void 0},[ee,H,W.isResizingColumn]),oe=De=>{D&&H?.id==="drop-zone"&&j(null),E&&ee&&G!=="group"&&j(Y.enableColumnOrdering!==!1?le:null)},me=De=>{Y.enableColumnOrdering!==!1&&De.preventDefault()},Ce=De=>{var Me;(Me=pe?.onKeyDown)===null||Me===void 0||Me.call(pe,De),dXe({event:De,cellValue:c.column.columnDef.header,table:d,header:c})},Se=(t=pi(Y.Header,{column:le,header:c,table:d}))!==null&&t!==void 0?t:Y.header;return S.jsxs(mu,Object.assign({align:G==="group"?"center":f.direction==="rtl"?"right":"left","aria-sort":le.getIsSorted()?le.getIsSorted()==="asc"?"ascending":"descending":"none",colSpan:c.colSpan,"data-can-sort":le.getCanSort()||void 0,"data-index":u,"data-pinned":!!U||void 0,"data-sort":le.getIsSorted()||void 0,onDragEnter:oe,onDragOver:me,ref:De=>{var Me;De&&(N.current[le.id]=De,G!=="group"&&((Me=l?.measureElement)===null||Me===void 0||Me.call(l,De)))},tabIndex:y?0:void 0},pe,{onKeyDown:Ce,sx:De=>Object.assign(Object.assign({"& :hover":{".MuiButtonBase-root":{opacity:1}},flexDirection:M?.startsWith("grid")?"column":void 0,fontWeight:"bold",overflow:"visible",p:J==="compact"?"0.5rem":J==="comfortable"?G==="display"?"0.75rem":"1rem":G==="display"?"1rem 1.25rem":"1.5rem",pb:G==="display"?0:q||J==="compact"?"0.4rem":"0.6rem",pt:G==="group"||J==="compact"?"0.25rem":J==="comfortable"?".75rem":"1.25rem",userSelect:T&&le.getCanSort()?"none":void 0,verticalAlign:"top"},vXe({column:le,header:c,table:d,tableCellProps:pe,theme:De})),de),children:[c.isPlaceholder?null:(n=pe.children)!==null&&n!==void 0?n:S.jsxs(tn,{className:"Mui-TableHeadCell-Content",sx:{alignItems:"center",display:"flex",flexDirection:pe?.align==="right"?"row-reverse":"row",justifyContent:G==="group"||pe?.align==="center"?"center":le.getCanResize()?"space-between":"flex-start",position:"relative",width:"100%"},children:[S.jsxs(tn,{className:"Mui-TableHeadCell-Content-Labels",onClick:le.getToggleSortingHandler(),sx:{alignItems:"center",cursor:le.getCanSort()&&G!=="group"?"pointer":void 0,display:"flex",flexDirection:pe?.align==="right"?"row-reverse":"row",overflow:G==="data"?"hidden":void 0,pl:pe?.align==="center"?`${ce}rem`:void 0},children:[S.jsx(tn,{className:"Mui-TableHeadCell-Content-Wrapper",sx:{"&:hover":{textOverflow:"clip"},minWidth:`${Math.min((r=(i=Y.header)===null||i===void 0?void 0:i.length)!==null&&r!==void 0?r:0,4)}ch`,overflow:G==="data"?"hidden":void 0,textOverflow:"ellipsis",whiteSpace:((s=(o=Y.header)===null||o===void 0?void 0:o.length)!==null&&s!==void 0?s:0)<20?"nowrap":"normal"},children:Se}),le.getCanFilter()&&S.jsx(clr,{header:c,table:d}),le.getCanSort()&&S.jsx(hlr,{header:c,table:d})]}),G!=="group"&&S.jsxs(tn,{className:"Mui-TableHeadCell-Content-Actions",sx:{whiteSpace:"nowrap"},children:[ie&&S.jsx(ulr,{column:le,table:d,tableHeadCellRef:{current:(a=N.current)===null||a===void 0?void 0:a[le.id]}}),K&&S.jsx(olr,{header:c,table:d})]}),le.getCanResize()&&S.jsx(dlr,{header:c,table:d})]}),g==="subheader"&&le.getCanFilter()&&S.jsx(EEn,{header:c,table:d})]}))},plr=e=>{var{columnVirtualizer:t,headerGroup:n,table:i}=e,r=Do(e,["columnVirtualizer","headerGroup","table"]);const{options:{enableStickyHeader:o,layoutMode:s,mrtTheme:{baseBackgroundColor:a},muiTableHeadRowProps:l}}=i,{virtualColumns:c,virtualPaddingLeft:u,virtualPaddingRight:d}=t??{},h=Object.assign(Object.assign({},pi(l,{headerGroup:n,table:i})),r);return S.jsxs(bv,Object.assign({},h,{sx:f=>Object.assign({backgroundColor:a,boxShadow:`4px 0 8px ${pr(f.palette.common.black,.1)}`,display:s?.startsWith("grid")?"flex":void 0,position:o&&s==="semantic"?"sticky":"relative",top:0},pi(h?.sx,f)),children:[u?S.jsx("th",{style:{display:"flex",width:u}}):null,(c??n.headers).map((f,p)=>{let g=f;return t&&(p=f.index,g=n.headers[p]),g?S.jsx(flr,{columnVirtualizer:t,header:g,staticColumnIndex:p,table:i},g.id):null}),d?S.jsx("th",{style:{display:"flex",width:d}}):null]}))},_Xe=e=>{var t,n,i,{stackAlertBanner:r,table:o}=e,s=Do(e,["stackAlertBanner","table"]);const{getFilteredSelectedRowModel:a,getCoreRowModel:l,getState:c,options:{enableRowSelection:u,enableSelectAll:d,localization:h,manualPagination:f,muiToolbarAlertBannerChipProps:p,muiToolbarAlertBannerProps:g,positionToolbarAlertBanner:m,renderToolbarAlertBannerContent:v,rowCount:y},refs:{tablePaperRef:b}}=o,{density:w,grouping:E,rowSelection:A,showAlertBanner:D}=c(),T=Object.assign(Object.assign({},pi(g,{table:o})),s),M=pi(p,{table:o}),P=y??l().rows.length,F=a().rows.length,N=I.useMemo(()=>f?Object.values(A).filter(Boolean).length:F,[A,P,f,F]),j=N>0?S.jsxs(wr,{alignItems:"center",direction:"row",gap:"16px",children:[(n=(t=h.selectedCountOfRowCountRowsSelected)===null||t===void 0?void 0:t.replace("{selectedCount}",N.toLocaleString(h.language)))===null||n===void 0?void 0:n.replace("{rowCount}",P.toLocaleString(h.language)),S.jsx(na,{onClick:J=>uXe({table:o})(J,!1,!0),size:"small",sx:{p:"2px"},children:h.clearSelection})]}):null,W=E.length>0?S.jsxs("span",{children:[h.groupedBy," ",E.map((J,ee)=>S.jsxs(I.Fragment,{children:[ee>0?h.thenBy:"",S.jsx(D2,Object.assign({label:o.getColumn(J).columnDef.header,onDelete:()=>o.getColumn(J).toggleGrouping()},M))]},`${ee}-${J}`))]}):null;return S.jsx(bj,{in:D||!!j||!!W,timeout:r?200:0,children:S.jsx(P0e,Object.assign({color:"info",icon:!1},T,{sx:J=>{var ee,Q;return Object.assign({"& .MuiAlert-message":{maxWidth:`calc(${(Q=(ee=b.current)===null||ee===void 0?void 0:ee.clientWidth)!==null&&Q!==void 0?Q:360}px - 1rem)`,width:"100%"},borderRadius:0,fontSize:"1rem",left:0,mb:r?0:m==="bottom"?"-1rem":void 0,p:0,position:"relative",right:0,top:0,width:"100%",zIndex:2},pi(T?.sx,J))},children:(i=v?.({groupedAlert:W,selectedAlert:j,table:o}))!==null&&i!==void 0?i:S.jsxs(S.Fragment,{children:[T?.title&&S.jsx(C6i,{children:T.title}),S.jsxs(wr,{sx:{p:m!=="head-overlay"?"0.5rem 1rem":w==="spacious"?"0.75rem 1.25rem":w==="comfortable"?"0.5rem 0.75rem":"0.25rem 0.5rem"},children:[T?.children,T?.children&&(j||W)&&S.jsx("br",{}),S.jsxs(tn,{sx:{display:"flex"},children:[u&&d&&m==="head-overlay"&&S.jsx(Hje,{table:o})," ",j]}),j&&W&&S.jsx("br",{}),W]})]})}))})},glr=e=>{var{columnVirtualizer:t,table:n}=e,i=Do(e,["columnVirtualizer","table"]);const{getState:r,options:{enableStickyHeader:o,layoutMode:s,muiTableHeadProps:a,positionToolbarAlertBanner:l},refs:{tableHeadRef:c}}=n,{isFullScreen:u,showAlertBanner:d}=r(),h=Object.assign(Object.assign({},pi(a,{table:n})),i),f=o||u;return S.jsx(Qji,Object.assign({},h,{ref:p=>{c.current=p,h?.ref&&(h.ref.current=p)},sx:p=>Object.assign({display:s?.startsWith("grid")?"grid":void 0,opacity:.97,position:f?"sticky":"relative",top:f&&s?.startsWith("grid")?0:void 0,zIndex:f?2:void 0},pi(h?.sx,p)),children:l==="head-overlay"&&(d||n.getSelectedRowModel().rows.length>0)?S.jsx("tr",{style:{display:s?.startsWith("grid")?"grid":void 0},children:S.jsx("th",{colSpan:n.getVisibleLeafColumns().length,style:{display:s?.startsWith("grid")?"grid":void 0,padding:0},children:S.jsx(_Xe,{table:n})})}):n.getHeaderGroups().map(p=>S.jsx(plr,{columnVirtualizer:t,headerGroup:p,table:n},p.id))}))},mlr=e=>{var{table:t}=e,n=Do(e,["table"]);const{getFlatHeaders:i,getState:r,options:{columns:o,enableStickyHeader:s,enableTableFooter:a,enableTableHead:l,layoutMode:c,memoMode:u,muiTableProps:d,renderCaption:h}}=t,{columnSizing:f,columnSizingInfo:p,columnVisibility:g,isFullScreen:m}=r(),v=Object.assign(Object.assign({},pi(d,{table:t})),n),y=pi(h,{table:t}),b=I.useMemo(()=>{const A=i(),D={};for(let T=0;T<A.length;T++){const M=A[T],P=M.getSize();D[`--header-${oq(M.id)}-size`]=P,D[`--col-${oq(M.column.id)}-size`]=P}return D},[o,f,p,g]),E={columnVirtualizer:$ar(t),table:t};return S.jsxs(_j,Object.assign({stickyHeader:s||m},v,{style:Object.assign(Object.assign({},b),v?.style),sx:A=>Object.assign({borderCollapse:"separate",display:c?.startsWith("grid")?"grid":void 0,position:"relative"},pi(v?.sx,A)),children:[!!y&&S.jsx("caption",{children:y}),l&&S.jsx(glr,Object.assign({},E)),u==="table-body"||p.isResizingColumn?S.jsx(Zar,Object.assign({},E)):S.jsx(SEn,Object.assign({},E)),a&&S.jsx(elr,Object.assign({},E))]}))},vlr=e=>{var t,{table:n}=e,i=Do(e,["table"]);const{options:{id:r,localization:o,mrtTheme:{baseBackgroundColor:s},muiCircularProgressProps:a}}=n,l=Object.assign(Object.assign({},pi(a,{table:n})),i);return S.jsx(tn,{sx:{alignItems:"center",backgroundColor:pr(s,.5),bottom:0,display:"flex",justifyContent:"center",left:0,maxHeight:"100vh",position:"absolute",right:0,top:0,width:"100%",zIndex:3},children:(t=l?.Component)!==null&&t!==void 0?t:S.jsx(L9,Object.assign({"aria-label":o.noRecordsToDisplay,id:`mrt-progress-${r}`},l))})},ylr=e=>{var t,n,{table:i}=e,r=Do(e,["table"]);const{getState:o,options:{editDisplayMode:s,enableClickToCopy:a,enableEditing:l,icons:{ContentCopy:c,EditIcon:u},localization:d,mrtTheme:{menuBackgroundColor:h},renderCellActionMenuItems:f},refs:{actionCellRef:p}}=i,{actionCell:g,density:m}=o(),v=g,{row:y}=v,{column:b}=v,{columnDef:w}=b,E=M=>{M?.stopPropagation(),i.setActionCell(null),p.current=null},A=[(pi(a,v)==="context-menu"||pi(w.enableClickToCopy,v)==="context-menu")&&S.jsx(Yg,{icon:S.jsx(c,{}),label:d.copy,onClick:M=>{M.stopPropagation(),navigator.clipboard.writeText(v.getValue()),E()},table:i},"mrt-copy"),pi(l,y)&&s==="cell"&&S.jsx(Yg,{icon:S.jsx(u,{}),label:d.edit,onClick:()=>{eEn({cell:v,table:i}),E()},table:i},"mrt-edit")].filter(Boolean),D={cell:v,closeMenu:E,column:b,internalMenuItems:A,row:y,table:i},T=(n=(t=w.renderCellActionMenuItems)===null||t===void 0?void 0:t.call(w,D))!==null&&n!==void 0?n:f?.(D);return(!!T?.length||!!A?.length)&&S.jsx(Mb,Object.assign({MenuListProps:{dense:m==="compact",sx:{backgroundColor:h}},anchorEl:p.current,disableScrollLock:!0,onClick:M=>M.stopPropagation(),onClose:E,open:!!v,transformOrigin:{horizontal:-100,vertical:8}},r,{children:T??A}))},blr=e=>{var t,{open:n,table:i}=e,r=Do(e,["open","table"]);const{getState:o,options:{localization:s,muiCreateRowModalProps:a,muiEditRowDialogProps:l,onCreatingRowCancel:c,onEditingRowCancel:u,renderCreateRowDialogContent:d,renderEditRowDialogContent:h},setCreatingRow:f,setEditingRow:p}=i,{creatingRow:g,editingRow:m}=o(),v=g??m,y=Object.assign(Object.assign(Object.assign({},pi(l,{row:v,table:i})),g&&pi(a,{row:v,table:i})),r),b=v.getAllCells().filter(w=>w.column.columnDef.columnDefType==="data").map(w=>S.jsx(wEn,{cell:w,table:i},w.id));return S.jsx(GQ,Object.assign({fullWidth:!0,maxWidth:"xs",onClose:(w,E)=>{var A;g?(c?.({row:v,table:i}),f(null)):(u?.({row:v,table:i}),p(null)),v._valuesCache={},(A=y.onClose)===null||A===void 0||A.call(y,w,E)},open:n},y,{children:(t=g&&d?.({internalEditComponents:b,row:v,table:i})||h?.({internalEditComponents:b,row:v,table:i}))!==null&&t!==void 0?t:S.jsxs(S.Fragment,{children:[S.jsx(M0e,{sx:{textAlign:"center"},children:s.edit}),S.jsx(qQ,{children:S.jsx("form",{onSubmit:w=>w.preventDefault(),children:S.jsx(wr,{sx:{gap:"32px",paddingTop:"16px",width:"100%"},children:b})})}),S.jsx($Q,{sx:{p:"1.25rem"},children:S.jsx(gEn,{row:v,table:i,variant:"text"})})]})}))},_lr=typeof window<"u"?I.useLayoutEffect:I.useEffect,wlr=e=>{var{table:t}=e,n=Do(e,["table"]);const{getState:i,options:{createDisplayMode:r,editDisplayMode:o,enableCellActions:s,enableStickyHeader:a,muiTableContainerProps:l},refs:{bottomToolbarRef:c,tableContainerRef:u,topToolbarRef:d}}=t,{actionCell:h,creatingRow:f,editingRow:p,isFullScreen:g,isLoading:m,showLoadingOverlay:v}=i(),y=v!==!1&&(m||v),[b,w]=I.useState(0),E=Object.assign(Object.assign({},pi(l,{table:t})),n);_lr(()=>{var T,M,P,F;const N=typeof document<"u"&&(M=(T=d.current)===null||T===void 0?void 0:T.offsetHeight)!==null&&M!==void 0?M:0,j=typeof document<"u"&&(F=(P=c?.current)===null||P===void 0?void 0:P.offsetHeight)!==null&&F!==void 0?F:0;w(N+j)});const A=r==="modal"&&f,D=o==="modal"&&p;return S.jsxs(Bji,Object.assign({"aria-busy":y,"aria-describedby":y?"mrt-progress":void 0},E,{ref:T=>{T&&(u.current=T,E?.ref&&(E.ref.current=T))},style:Object.assign({maxHeight:g?`calc(100vh - ${b}px)`:void 0},E?.style),sx:T=>Object.assign({maxHeight:a?`clamp(350px, calc(100vh - ${b}px), 9999px)`:void 0,maxWidth:"100%",overflow:"auto",position:"relative"},pi(E?.sx,T)),children:[y?S.jsx(vlr,{table:t}):null,S.jsx(mlr,{table:t}),(A||D)&&S.jsx(blr,{open:!0,table:t}),s&&h&&S.jsx(ylr,{table:t})]}))},AEn=e=>{var{isTopToolbar:t,table:n}=e,i=Do(e,["isTopToolbar","table"]);const{getState:r,options:{muiLinearProgressProps:o}}=n,{isSaving:s,showProgressBars:a}=r(),l=Object.assign(Object.assign({},pi(o,{isTopToolbar:t,table:n})),i);return S.jsx(bj,{in:a!==!1&&(a||s),mountOnEnter:!0,sx:{bottom:t?0:void 0,position:"absolute",top:t?void 0:0,width:"100%"},unmountOnExit:!0,children:S.jsx(_bn,Object.assign({"aria-busy":"true","aria-label":"Loading",sx:{position:"relative"}},l))})},Clr=[5,10,15,20,25,30,50,100],DEn=e=>{var{position:t="bottom",table:n}=e,i=Do(e,["position","table"]);const r=cl(),o=tN("(max-width: 720px)"),{getState:s,options:{enableToolbarInternalActions:a,icons:{ChevronLeftIcon:l,ChevronRightIcon:c,FirstPageIcon:u,LastPageIcon:d},id:h,localization:f,muiPaginationProps:p,paginationDisplayMode:g}}=n,{pagination:{pageIndex:m=0,pageSize:v=10}}=s(),y=Object.assign(Object.assign({},pi(p,{table:n})),i),b=n.getRowCount(),w=n.getPageCount(),E=w>2,A=m*v,D=Math.min(m*v+v,b),T=y??{},{SelectProps:M={},disabled:P=!1,rowsPerPageOptions:F=Clr,showFirstButton:N=E,showLastButton:j=E,showRowsPerPage:W=!0}=T,J=Do(T,["SelectProps","disabled","rowsPerPageOptions","showFirstButton","showLastButton","showRowsPerPage"]),ee=m<=0||P,Q=D>=b||P;o&&M?.native!==!1&&(M.native=!0);const H=Pw();return S.jsxs(tn,{className:"MuiTablePagination-root",sx:{alignItems:"center",display:"flex",flexWrap:"wrap",gap:"8px",justifyContent:{md:"space-between",sm:"center"},justifySelf:"flex-end",mt:t==="top"&&a?"3rem":void 0,position:"relative",px:"8px",py:"12px",zIndex:2},children:[W&&S.jsxs(tn,{sx:{alignItems:"center",display:"flex",gap:"8px"},children:[S.jsx(KG,{htmlFor:`mrt-rows-per-page-${h}`,sx:{mb:0},children:f.rowsPerPage}),S.jsx(aw,Object.assign({MenuProps:{disableScrollLock:!0},disableUnderline:!0,disabled:P,inputProps:{"aria-label":f.rowsPerPage,id:`mrt-rows-per-page-${h}`},label:f.rowsPerPage,onChange:q=>n.setPageSize(+q.target.value),sx:{mb:0},value:v,variant:"standard"},M,{children:F.map(q=>{var le;const Y=typeof q!="number"?q.value:q,G=typeof q!="number"?q.label:`${q}`;return(le=M?.children)!==null&&le!==void 0?le:M?.native?S.jsx("option",{value:Y,children:G},Y):S.jsx(bo,{sx:{m:0},value:Y,children:G},Y)})}))]}),g==="pages"?S.jsx(u7i,Object.assign({count:w,disabled:P,onChange:(q,le)=>n.setPageIndex(le-1),page:m+1,renderItem:q=>S.jsx(Cbn,Object.assign({slots:{first:u,last:d,next:c,previous:l}},q)),showFirstButton:N,showLastButton:j},J)):g==="default"?S.jsxs(S.Fragment,{children:[S.jsx(Xn,{align:"center",component:"span",sx:{m:"0 4px",minWidth:"8ch"},variant:"body2",children:`${D===0?0:(A+1).toLocaleString(f.language)}-${D.toLocaleString(f.language)} ${f.of} ${b.toLocaleString(f.language)}`}),S.jsxs(tn,{gap:"xs",children:[N&&S.jsx(uo,Object.assign({},H,{title:f.goToFirstPage,children:S.jsx("span",{children:S.jsx(Qr,{"aria-label":f.goToFirstPage,disabled:ee,onClick:()=>n.firstPage(),size:"small",children:S.jsx(u,Object.assign({},$re(r)))})})})),S.jsx(uo,Object.assign({},H,{title:f.goToPreviousPage,children:S.jsx("span",{children:S.jsx(Qr,{"aria-label":f.goToPreviousPage,disabled:ee,onClick:()=>n.previousPage(),size:"small",children:S.jsx(l,Object.assign({},$re(r)))})})})),S.jsx(uo,Object.assign({},H,{title:f.goToNextPage,children:S.jsx("span",{children:S.jsx(Qr,{"aria-label":f.goToNextPage,disabled:Q,onClick:()=>n.nextPage(),size:"small",children:S.jsx(c,Object.assign({},$re(r)))})})})),j&&S.jsx(uo,Object.assign({},H,{title:f.goToLastPage,children:S.jsx("span",{children:S.jsx(Qr,{"aria-label":f.goToLastPage,disabled:Q,onClick:()=>n.lastPage(),size:"small",children:S.jsx(d,Object.assign({},$re(r)))})})}))]})]}):null]})},TEn=e=>{var t,n,{table:i}=e,r=Do(e,["table"]);const{getState:o,options:{enableGrouping:s,localization:a},setHoveredColumn:l,setShowToolbarDropZone:c}=i,{draggingColumn:u,grouping:d,hoveredColumn:h,showToolbarDropZone:f}=o(),p=m=>{l({id:"drop-zone"})},g=m=>{m.preventDefault()};return I.useEffect(()=>{var m;((m=i.options.state)===null||m===void 0?void 0:m.showToolbarDropZone)!==void 0&&c(!!s&&!!u&&u.columnDef.enableGrouping!==!1&&!d.includes(u.id))},[s,u,d]),S.jsx(eN,{in:f,children:S.jsx(tn,Object.assign({className:"Mui-ToolbarDropZone",onDragEnter:p,onDragOver:g},r,{sx:m=>Object.assign({alignItems:"center",backdropFilter:"blur(4px)",backgroundColor:pr(m.palette.info.main,h?.id==="drop-zone"?.2:.1),border:`dashed ${m.palette.info.main} 2px`,boxSizing:"border-box",display:"flex",height:"100%",justifyContent:"center",position:"absolute",width:"100%",zIndex:4},pi(r?.sx,m)),children:S.jsx(Xn,{fontStyle:"italic",children:a.dropToGroupBy.replace("{column}",(n=(t=u?.columnDef)===null||t===void 0?void 0:t.header)!==null&&n!==void 0?n:"")})}))})},Slr=e=>{var{table:t}=e,n=Do(e,["table"]);const{getState:i,options:{enablePagination:r,muiBottomToolbarProps:o,positionPagination:s,positionToolbarAlertBanner:a,positionToolbarDropZone:l,renderBottomToolbarCustomActions:c},refs:{bottomToolbarRef:u}}=t,{isFullScreen:d}=i(),h=tN("(max-width:720px)"),f=Object.assign(Object.assign({},pi(o,{table:t})),n),p=h||!!c;return S.jsxs(tn,Object.assign({},f,{ref:g=>{g&&(u.current=g,f?.ref&&(f.ref.current=g))},sx:g=>Object.assign(Object.assign(Object.assign({},vEn({table:t})),{bottom:d?"0":void 0,boxShadow:`0 1px 2px -1px ${pr(g.palette.grey[700],.5)} inset`,left:0,position:d?"fixed":"relative",right:0}),pi(f?.sx,g)),children:[S.jsx(AEn,{isTopToolbar:!1,table:t}),a==="bottom"&&S.jsx(_Xe,{stackAlertBanner:p,table:t}),["both","bottom"].includes(l??"")&&S.jsx(TEn,{table:t}),S.jsxs(tn,{sx:{alignItems:"center",boxSizing:"border-box",display:"flex",justifyContent:"space-between",p:"0.5rem",width:"100%"},children:[c?c({table:t}):S.jsx("span",{}),S.jsx(tn,{sx:{display:"flex",justifyContent:"flex-end",position:p?"relative":"absolute",right:0,top:0},children:r&&["both","bottom"].includes(s??"")&&S.jsx(DEn,{position:"bottom",table:t})})]})]}))},xlr=e=>{var{column:t,table:n}=e,i=Do(e,["column","table"]);const{options:{icons:{PushPinIcon:r},localization:o}}=n,s=a=>{t.pin(a)};return S.jsx(tn,Object.assign({},i,{sx:a=>Object.assign({minWidth:"70px",textAlign:"center"},pi(i?.sx,a)),children:t.getIsPinned()?S.jsx(uo,{title:o.unpin,children:S.jsx(Qr,{onClick:()=>s(!1),size:"small",children:S.jsx(r,{})})}):S.jsxs(S.Fragment,{children:[S.jsx(uo,{title:o.pinToLeft,children:S.jsx(Qr,{onClick:()=>s("left"),size:"small",children:S.jsx(r,{style:{transform:"rotate(90deg)"}})})}),S.jsx(uo,{title:o.pinToRight,children:S.jsx(Qr,{onClick:()=>s("right"),size:"small",children:S.jsx(r,{style:{transform:"rotate(-90deg)"}})})})]})}))},kEn=e=>{var t,{allColumns:n,column:i,hoveredColumn:r,isNestedColumns:o,setHoveredColumn:s,table:a}=e,l=Do(e,["allColumns","column","hoveredColumn","isNestedColumns","setHoveredColumn","table"]);const{getState:c,options:{enableColumnOrdering:u,enableColumnPinning:d,enableHiding:h,localization:f,mrtTheme:{draggingBorderColor:p}},setColumnOrder:g,setColumnPinning:m}=a,{columnOrder:v}=c(),{columnDef:y}=i,{columnDefType:b}=y,w=i.getIsVisible(),E=N=>{var j,W;b==="group"?(W=(j=N?.columns)===null||j===void 0?void 0:j.forEach)===null||W===void 0||W.call(j,J=>{J.toggleVisibility(!w)}):N.toggleVisibility()},A=I.useRef(null),[D,T]=I.useState(!1),M=N=>{T(!0);try{N.dataTransfer.setDragImage(A.current,0,0)}catch(j){console.error(j)}},P=N=>{if(T(!1),s(null),r){const j=Kxn(i,r,v);g(j),m(({left:W=[],right:J=[]})=>({left:j.filter(ee=>W.includes(ee)),right:j.filter(ee=>J.includes(ee))}))}},F=N=>{!D&&y.enableColumnOrdering!==!1&&s(i)};return!y.header||y.visibleInShowHideMenu===!1?null:S.jsxs(S.Fragment,{children:[S.jsx(bo,Object.assign({disableRipple:!0,onDragEnter:F,ref:A},l,{sx:N=>Object.assign({alignItems:"center",justifyContent:"flex-start",my:0,opacity:D?.5:1,outline:D?`2px dashed ${N.palette.grey[500]}`:r?.id===i.id?`2px dashed ${p}`:"none",outlineOffset:"-2px",pl:`${(i.depth+.5)*2}rem`,py:"6px"},pi(l?.sx,N)),children:S.jsxs(tn,{sx:{display:"flex",flexWrap:"nowrap",gap:"8px"},children:[b!=="group"&&u&&!o&&(y.enableColumnOrdering!==!1?S.jsx(yXe,{onDragEnd:P,onDragStart:M,table:a}):S.jsx(tn,{sx:{width:"28px"}})),d&&(i.getCanPin()?S.jsx(xlr,{column:i,table:a}):S.jsx(tn,{sx:{width:"70px"}})),h?S.jsx(ybn,{checked:w,componentsProps:{typography:{sx:{mb:0,opacity:b!=="display"?1:.5}}},control:S.jsx(uo,Object.assign({},Pw(),{title:f.toggleVisibility,children:S.jsx(vji,{})})),disabled:!i.getCanHide(),label:y.header,onChange:()=>E(i)}):S.jsx(Xn,{sx:{alignSelf:"center"},children:y.header})]})})),(t=i.columns)===null||t===void 0?void 0:t.map((N,j)=>S.jsx(kEn,{allColumns:n,column:N,hoveredColumn:r,isNestedColumns:o,setHoveredColumn:s,table:a},`${j}-${N.id}`))]})},Elr=e=>{var{anchorEl:t,setAnchorEl:n,table:i}=e,r=Do(e,["anchorEl","setAnchorEl","table"]);const{getAllColumns:o,getAllLeafColumns:s,getCenterLeafColumns:a,getIsAllColumnsVisible:l,getIsSomeColumnsPinned:c,getIsSomeColumnsVisible:u,getLeftLeafColumns:d,getRightLeafColumns:h,getState:f,initialState:p,options:{enableColumnOrdering:g,enableColumnPinning:m,enableHiding:v,localization:y,mrtTheme:{menuBackgroundColor:b}}}=i,{columnOrder:w,columnPinning:E,density:A}=f(),D=j=>{s().filter(W=>W.columnDef.enableHiding!==!1).forEach(W=>W.toggleVisibility(j))},T=I.useMemo(()=>{const j=o();return w.length>0&&!j.some(W=>W.columnDef.columnDefType==="group")?[...d(),...Array.from(new Set(w)).map(W=>a().find(J=>J?.id===W)),...h()].filter(Boolean):j},[w,E,o(),a(),d(),h()]),M=T.some(j=>j.columnDef.columnDefType==="group"),P=I.useMemo(()=>w.length!==p.columnOrder.length||!w.every((j,W)=>j===p.columnOrder[W]),[w,p.columnOrder]),[F,N]=I.useState(null);return S.jsxs(Mb,Object.assign({MenuListProps:{dense:A==="compact",sx:{backgroundColor:b}},anchorEl:t,disableScrollLock:!0,onClose:()=>n(null),open:!!t},r,{children:[S.jsxs(tn,{sx:{display:"flex",justifyContent:"space-between",p:"0.5rem",pt:0},children:[v&&S.jsx(na,{disabled:!u(),onClick:()=>D(!1),children:y.hideAll}),g&&S.jsx(na,{onClick:()=>i.setColumnOrder(pXe(i.options,!0)),disabled:!P,children:y.resetOrder}),m&&S.jsx(na,{disabled:!c(),onClick:()=>i.resetColumnPinning(!0),children:y.unpinAll}),v&&S.jsx(na,{disabled:l(),onClick:()=>D(!0),children:y.showAll})]}),S.jsx(cE,{}),T.map((j,W)=>S.jsx(kEn,{allColumns:T,column:j,hoveredColumn:F,isNestedColumns:M,setHoveredColumn:N,table:i},`${W}-${j.id}`))]}))},IEn=e=>{var t,{table:n}=e,i=Do(e,["table"]);const{options:{icons:{ViewColumnIcon:r},localization:o}}=n,[s,a]=I.useState(null),l=c=>{a(c.currentTarget)};return S.jsxs(S.Fragment,{children:[S.jsx(uo,{title:(t=i?.title)!==null&&t!==void 0?t:o.showHideColumns,children:S.jsx(Qr,Object.assign({"aria-label":o.showHideColumns,onClick:l},i,{title:void 0,children:S.jsx(r,{})}))}),s&&S.jsx(Elr,{anchorEl:s,setAnchorEl:a,table:n})]})},Alr=e=>{var t,{table:n}=e,i=Do(e,["table"]);const{getState:r,options:{icons:{DensityLargeIcon:o,DensityMediumIcon:s,DensitySmallIcon:a},localization:l},setDensity:c}=n,{density:u}=r(),d=()=>{c(u==="comfortable"?"compact":u==="compact"?"spacious":"comfortable")};return S.jsx(uo,{title:(t=i?.title)!==null&&t!==void 0?t:l.toggleDensity,children:S.jsx(Qr,Object.assign({"aria-label":l.toggleDensity,onClick:d},i,{title:void 0,children:u==="compact"?S.jsx(a,{}):u==="comfortable"?S.jsx(s,{}):S.jsx(o,{})}))})},LEn=e=>{var t,{table:n}=e,i=Do(e,["table"]);const{getState:r,options:{icons:{FilterListIcon:o,FilterListOffIcon:s},localization:a},setShowColumnFilters:l}=n,{showColumnFilters:c}=r(),u=()=>{l(!c)};return S.jsx(uo,{title:(t=i?.title)!==null&&t!==void 0?t:a.showHideFilters,children:S.jsx(Qr,Object.assign({"aria-label":a.showHideFilters,onClick:u},i,{title:void 0,children:c?S.jsx(s,{}):S.jsx(o,{})}))})},Dlr=e=>{var t,{table:n}=e,i=Do(e,["table"]);const{getState:r,options:{icons:{FullscreenExitIcon:o,FullscreenIcon:s},localization:a},setIsFullScreen:l}=n,{isFullScreen:c}=r(),[u,d]=I.useState(!1),h=()=>{d(!1),l(!c)};return S.jsx(uo,{open:u,title:(t=i?.title)!==null&&t!==void 0?t:a.toggleFullScreen,children:S.jsx(Qr,Object.assign({"aria-label":a.toggleFullScreen,onBlur:()=>d(!1),onClick:h,onFocus:()=>d(!0),onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1)},i,{title:void 0,children:c?S.jsx(o,{}):S.jsx(s,{})}))})},NEn=e=>{var t,n,{table:i}=e,r=Do(e,["table"]);const{getState:o,options:{icons:{SearchIcon:s,SearchOffIcon:a},localization:l},refs:{searchInputRef:c},setShowGlobalFilter:u}=i,{globalFilter:d,showGlobalFilter:h}=o(),f=()=>{u(!h),queueMicrotask(()=>{var p;return(p=c.current)===null||p===void 0?void 0:p.focus()})};return S.jsx(uo,{title:(t=r?.title)!==null&&t!==void 0?t:l.showHideSearch,children:S.jsx(Qr,Object.assign({"aria-label":(n=r?.title)!==null&&n!==void 0?n:l.showHideSearch,disabled:!!d&&h,onClick:f},r,{title:void 0,children:h?S.jsx(a,{}):S.jsx(s,{})}))})},Tlr=e=>{var t,{table:n}=e,i=Do(e,["table"]);const{options:{columnFilterDisplayMode:r,enableColumnFilters:o,enableColumnOrdering:s,enableColumnPinning:a,enableDensityToggle:l,enableFilters:c,enableFullScreenToggle:u,enableGlobalFilter:d,enableHiding:h,initialState:f,renderToolbarInternalActions:p}}=n;return S.jsx(tn,Object.assign({},i,{sx:g=>Object.assign({alignItems:"center",display:"flex",zIndex:3},pi(i?.sx,g)),children:(t=p?.({table:n}))!==null&&t!==void 0?t:S.jsxs(S.Fragment,{children:[c&&d&&!f?.showGlobalFilter&&S.jsx(NEn,{table:n}),c&&o&&r!=="popover"&&S.jsx(LEn,{table:n}),(h||s||a)&&S.jsx(IEn,{table:n}),l&&S.jsx(Alr,{table:n}),u&&S.jsx(Dlr,{table:n})]})}))},COe=e=>{var t,{table:n}=e,i=Do(e,["table"]);const{getState:r,options:{enableGlobalFilterModes:o,icons:{CloseIcon:s,SearchIcon:a},localization:l,manualFiltering:c,muiSearchTextFieldProps:u},refs:{searchInputRef:d},setGlobalFilter:h}=n,{globalFilter:f,showGlobalFilter:p}=r(),g=Object.assign(Object.assign({},pi(u,{table:n})),i),m=I.useRef(!1),[v,y]=I.useState(null),[b,w]=I.useState(f??""),E=I.useCallback(FQ(M=>{var P;h((P=M.target.value)!==null&&P!==void 0?P:void 0)},c?500:250),[]),A=M=>{w(M.target.value),E(M)},D=M=>{y(M.currentTarget)},T=()=>{w(""),h(void 0)};return I.useEffect(()=>{m.current&&(f===void 0?T():w(f)),m.current=!0},[f]),S.jsxs(bj,{in:p,mountOnEnter:!0,orientation:"horizontal",unmountOnExit:!0,children:[S.jsx(jv,Object.assign({inputProps:Object.assign({autoComplete:"off"},g.inputProps),onChange:A,placeholder:l.search,size:"small",value:b??"",variant:"outlined"},g,{InputProps:Object.assign(Object.assign({endAdornment:S.jsx(F9,{position:"end",children:S.jsx(uo,{title:(t=l.clearSearch)!==null&&t!==void 0?t:"",children:S.jsx("span",{children:S.jsx(Qr,{"aria-label":l.clearSearch,disabled:!b?.length,onClick:T,size:"small",children:S.jsx(s,{})})})})}),startAdornment:o?S.jsx(F9,{position:"start",children:S.jsx(uo,{title:l.changeSearchMode,children:S.jsx(Qr,{"aria-label":l.changeSearchMode,onClick:D,size:"small",sx:{height:"1.75rem",width:"1.75rem"},children:S.jsx(a,{})})})}):S.jsx(a,{style:{marginRight:"4px"}})},g.InputProps),{sx:M=>{var P;return Object.assign({mb:0},pi((P=g?.InputProps)===null||P===void 0?void 0:P.sx,M))}}),inputRef:M=>{d.current=M,g?.inputRef&&(g.inputRef=M)}})),S.jsx(bXe,{anchorEl:v,onSelect:T,setAnchorEl:y,table:n})]})},klr=({table:e})=>{var t;const{getState:n,options:{enableGlobalFilter:i,enablePagination:r,enableToolbarInternalActions:o,muiTopToolbarProps:s,positionGlobalFilter:a,positionPagination:l,positionToolbarAlertBanner:c,positionToolbarDropZone:u,renderTopToolbarCustomActions:d},refs:{topToolbarRef:h}}=e,{isFullScreen:f,showGlobalFilter:p}=n(),g=tN("(max-width:720px)"),m=tN("(max-width:1024px)"),v=pi(s,{table:e}),y=g||!!d||p&&m,b={sx:m?void 0:{zIndex:2},table:e};return S.jsxs(tn,Object.assign({},v,{ref:w=>{h.current=w,v?.ref&&(v.ref.current=w)},sx:w=>Object.assign(Object.assign(Object.assign({},vEn({table:e})),{position:f?"sticky":"relative",top:f?"0":void 0}),pi(v?.sx,w)),children:[c==="top"&&S.jsx(_Xe,{stackAlertBanner:y,table:e}),["both","top"].includes(u??"")&&S.jsx(TEn,{table:e}),S.jsxs(tn,{sx:{alignItems:"flex-start",boxSizing:"border-box",display:"flex",gap:"0.5rem",justifyContent:"space-between",p:"0.5rem",position:y?"relative":"absolute",right:0,top:0,width:"100%"},children:[i&&a==="left"&&S.jsx(COe,Object.assign({},b)),(t=d?.({table:e}))!==null&&t!==void 0?t:S.jsx("span",{}),o?S.jsxs(tn,{sx:{alignItems:"center",display:"flex",flexWrap:"wrap-reverse",gap:"0.5rem",justifyContent:"flex-end"},children:[i&&a==="right"&&S.jsx(COe,Object.assign({},b)),S.jsx(Tlr,{table:e})]}):i&&a==="right"&&S.jsx(COe,Object.assign({},b))]}),r&&["both","top"].includes(l??"")&&S.jsx(DEn,{position:"top",table:e}),S.jsx(AEn,{isTopToolbar:!0,table:e})]}))},Ilr=e=>{var t,n,{table:i}=e,r=Do(e,["table"]);const{getState:o,options:{enableBottomToolbar:s,enableTopToolbar:a,mrtTheme:{baseBackgroundColor:l},muiTablePaperProps:c,renderBottomToolbar:u,renderTopToolbar:d},refs:{tablePaperRef:h}}=i,{isFullScreen:f}=o(),p=Object.assign(Object.assign({},pi(c,{table:i})),r),g=cl();return S.jsxs(eS,Object.assign({elevation:2,onKeyDown:m=>m.key==="Escape"&&i.setIsFullScreen(!1)},p,{ref:m=>{h.current=m,p?.ref&&(p.ref.current=m)},style:Object.assign(Object.assign({},f?{bottom:0,height:"100dvh",left:0,margin:0,maxHeight:"100dvh",maxWidth:"100dvw",padding:0,position:"fixed",right:0,top:0,width:"100dvw",zIndex:g.zIndex.modal}:{}),p?.style),sx:m=>Object.assign({backgroundColor:l,backgroundImage:"unset",overflow:"hidden",transition:"all 100ms ease-in-out"},pi(p?.sx,m)),children:[a&&((t=pi(d,{table:i}))!==null&&t!==void 0?t:S.jsx(klr,{table:i})),S.jsx(wlr,{table:i}),s&&((n=pi(u,{table:i}))!==null&&n!==void 0?n:S.jsx(Slr,{table:i}))]}))},Llr=e=>e.table!==void 0,PEn=e=>{let t;return Llr(e)?t=e.table:t=bEn(e),S.jsx(Ilr,{table:t})},T5t=5;function MEn(e,t,n,i,r,o,s){const a=i?{pagination:{pageIndex:i?.page??0,pageSize:i?.pageSize??T5t},isLoading:o}:{isLoading:o},l=n?.minimal??!1;return bEn({columns:t??[],data:e??[],enableColumnFilterModes:!0,enableColumnActions:!0,enableSorting:!0,enableFilters:!0,paginationDisplayMode:"custom",enableBottomToolbar:!1,positionToolbarDropZone:"none",manualPagination:i!==void 0,rowCount:r,enableToolbarInternalActions:n?.enableToolbarInternalActions??!0,enableTopToolbar:n?.enableTopToolbar??!0,muiTableContainerProps:{sx:{overflowY:"auto"}},autoResetAll:i?void 0:!1,initialState:{density:n?.density??"compact",pagination:{pageIndex:0,pageSize:n?.pageSize??T5t}},state:a,renderTopToolbarCustomActions:({table:c})=>{const u=n?.slots?.toolbar?.left;return typeof u=="function"?S.jsx(u,{table:c}):u},renderToolbarInternalActions:({table:c})=>{const u=n?.slots?.toolbar?.right,d=typeof u=="function"?S.jsx(u,{table:c}):u;return S.jsxs(S.Fragment,{children:[d,S.jsx(NEn,{table:c}),S.jsx(LEn,{table:c}),S.jsx(IEn,{table:c})]})},muiTablePaperProps:{elevation:0,sx:{backgroundColor:"transparent"}},muiTopToolbarProps:l?{sx:{backgroundColor:"transparent",minHeight:"36px","& .MuiIconButton-root":{padding:"4px","& svg":{fontSize:"1.1rem",color:"text.disabled"}}}}:void 0,muiTableProps:{sx:{borderCollapse:"collapse"}},muiTableHeadProps:{sx:{backgroundColor:"transparent","& .Mui-TableHeadCell-Content-Labels":{overflow:"visible"}}},muiTableHeadRowProps:{sx:{backgroundColor:"transparent"}},muiTableHeadCellProps:l?{sx:{fontSize:"0.7rem",fontWeight:500,color:"text.disabled",textTransform:"uppercase",letterSpacing:"0.3px",backgroundColor:"transparent",borderBottom:1,borderBottomColor:"divider",padding:"6px 10px","& .Mui-TableHeadCell-Content-Labels":{gap:"4px"},"& .MuiTableSortLabel-icon":{fontSize:"0.9rem",color:"text.disabled"},"& .MuiIconButton-root":{padding:"2px","& svg":{fontSize:"0.9rem",color:"text.disabled"}}}}:{sx:{backgroundColor:"transparent"}},muiTableBodyProps:{sx:{backgroundColor:"transparent"}},muiTableBodyCellProps:l?{sx:{fontSize:"0.8rem",color:"text.primary",padding:"6px 10px",borderBottom:1,borderBottomColor:"divider",backgroundColor:"transparent"}}:{sx:{backgroundColor:"transparent"}},muiTableBodyRowProps:({row:c})=>({hover:!n?.disableHover,onClick:s?()=>{s({src:c.original.src,dst:c.original.dst,time:c.original.time})}:void 0,sx:{cursor:s?"pointer":"default",backgroundColor:"transparent","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.3) !important"}}}),...n?.tableOptions})}var Gre=({onClick:e,disabled:t,ariaLabel:n,icon:i,size:r,...o})=>{const s=cl(),a=r==="small";return S.jsx(Qr,{onClick:e,disabled:t,"aria-label":n,size:r,sx:{width:a?s.spacing(2.5):s.spacing(3),height:a?s.spacing(2.5):s.spacing(3),borderRadius:"50%",backgroundColor:a?"transparent":s.palette.grey[100],marginRight:a?s.spacing(.5):s.spacing(1.25),"&:hover":{backgroundColor:s.palette.action.focus},"&:disabled":{backgroundColor:a?"transparent":s.palette.grey[100],cursor:"not-allowed"}},...o,children:i})},Nlr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6z"})]}),Plr=I.forwardRef(Nlr),hye=Plr,Mlr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6l6 6zM6 6h2v12H6z"})]}),Olr=I.forwardRef(Mlr),OEn=Olr,Rlr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6l-6-6zM16 6h2v12h-2z"})]}),Flr=I.forwardRef(Rlr),REn=Flr,Kre=3;function Blr({table:e,hidePaginationLabel:t,sx:n,pagination:i,setPagination:r,totalItems:o,isLoading:s,minimal:a}){const l=cl(),c=i?i?.pageSize:e.getState().pagination.pageSize,u=i?i?.page:e.getState().pagination.pageIndex,d=I.useMemo(()=>o??0,[o]),h=i?Math.ceil(d/c):e.getPageCount(),f=Math.floor(Kre/2);let p=Math.max(0,u-f);const g=Math.min(h-1,p+Kre-1);g-p<Kre-1&&(p=Math.max(0,g-Kre+1));const m=Array.from({length:g-p+1},(b,w)=>p+w),[v,y]=I.useState();return I.useEffect(()=>{const b=e.getState().pagination.pageIndex;(!s&&b>d/c||!s&&d!==v)&&(r?r({page:0,pageSize:c}):e.setPageIndex(0),y(d))},[e,r,c,d,s,v]),S.jsxs(wr,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:n,children:[S.jsxs(wr,{direction:"row",alignItems:"center",children:[S.jsx(Gre,{onClick:()=>r?r({page:0,pageSize:c}):e.setPageIndex(0),disabled:!e.getCanPreviousPage(),ariaLabel:"first page",icon:S.jsx(OEn,{width:a?"18px":"20px",height:a?"18px":"20px"}),size:a?"small":void 0}),S.jsx(Gre,{onClick:()=>r?r({page:u-1,pageSize:c}):e.previousPage(),disabled:!e.getCanPreviousPage(),ariaLabel:"previous page",icon:S.jsx(jF,{width:a?"18px":"20px",height:a?"18px":"20px"}),size:a?"small":void 0}),m.map(b=>S.jsx(Qr,{size:a?"small":"medium",onClick:()=>r?r({page:b,pageSize:c}):e.setPageIndex(b),disabled:u===b,sx:{fontSize:a?"0.8rem":"12px",marginRight:l.spacing(a?.5:1.25),padding:a?"6px":"10px",width:a?"26px":"25px",height:a?"26px":"25px",color:a?l.palette.text.disabled:void 0,"&:disabled":{cursor:"not-allowed",color:a?l.palette.text.primary:"black",fontWeight:"bold"},...u===b&&{fontWeight:"bold",color:a?l.palette.text.primary:"black"}},children:b+1},b)),S.jsx(Gre,{onClick:()=>{r!==void 0?r({page:u+1,pageSize:c}):e.nextPage()},disabled:!e.getCanNextPage(),ariaLabel:"next page",icon:S.jsx(hye,{width:a?"18px":"20px",height:a?"18px":"20px"}),size:a?"small":void 0}),S.jsx(Gre,{onClick:()=>r?r({page:h-1,pageSize:c}):e.setPageIndex(h-1),disabled:!e.getCanNextPage(),ariaLabel:"last page",icon:S.jsx(REn,{width:a?"18px":"20px",height:a?"18px":"20px"}),size:a?"small":void 0})]}),S.jsxs(wr,{direction:"row",spacing:a?1:2,alignItems:"center",children:[!t&&S.jsxs(Xn,{sx:a?{fontSize:"0.8rem",color:l.palette.text.disabled}:void 0,children:["Page ",u+1," of ",h]}),S.jsxs(wr,{direction:"row",alignItems:"center",spacing:.5,children:[S.jsx(Xn,{component:"span",variant:"body2",sx:a?{fontSize:"0.8rem",color:l.palette.text.disabled}:void 0,children:"Show"}),S.jsx(O9,{size:"small",children:S.jsxs(aw,{value:i?[5,10,25,50].includes(i?.pageSize??0)?i?.pageSize:"":e.getState().pagination.pageSize,onChange:b=>{r!==void 0?r(w=>{const E=typeof b.target.value=="string"?Number.parseInt(b.target.value):b.target.value;return{...w,page:0,pageSize:E}}):e.setPagination(w=>{const E=typeof b.target.value=="string"?Number.parseInt(b.target.value):b.target.value;return{...w,pageIndex:0,pageSize:E}})},displayEmpty:!0,sx:b=>({fontSize:a?"0.8rem":void 0,"& > .MuiSelect-select.MuiSelect-outlined.MuiInputBase-input":{paddingLeft:b.spacing(.5),paddingRight:b.spacing(3.5),...a&&{paddingTop:b.spacing(.5),paddingBottom:b.spacing(.5)}},"& > .MuiOutlinedInput-notchedOutline":{border:"none"}}),children:[S.jsx(bo,{value:5,children:"5"}),S.jsx(bo,{value:10,children:"10"}),S.jsx(bo,{value:25,children:"25"}),S.jsx(bo,{value:50,children:"50"})]})})]})]})]})}function fye({columns:e,data:t,options:n,sx:i,pagination:r,setPagination:o,totalItems:s,usePaging:a,setUsePaging:l,isLoading:c,onClickRow:u}){const d=MEn(t,e,n,a?r:void 0,s,c,u),h=d.getState().sorting.length>0;I.useEffect(()=>{l!==void 0&&h&&l(!1)},[h,l]);const f=n?.minimal??!1;return S.jsxs(tn,{sx:i,children:[S.jsx(PEn,{table:d}),o&&S.jsx(Blr,{table:d,sx:p=>({borderTop:`1px solid ${p.palette.divider}`,paddingTop:p.spacing(1),paddingBottom:f?p.spacing(1):0,paddingLeft:f?p.spacing(1):0,paddingRight:f?p.spacing(1):0}),pagination:a?r:void 0,setPagination:a?o:void 0,totalItems:s,isLoading:c,minimal:f})]})}var jlr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M5.65 8L3.5 5.9l1.4-1.45L7.05 6.6zM11 5V2h2v3zm7.4 3l-1.45-1.4l2.15-2.1l1.4 1.4zM9 22v-5l-3-3V9h12v5l-3 3v5z"})]}),zlr=I.forwardRef(jlr),Vlr=zlr,Hlr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M12 20c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m1 5h-2v4H7v2h4v4h2v-4h4v-2h-4z"})]}),Wlr=I.forwardRef(Hlr),Ulr=Wlr,wXe=["fuzzy","contains","startsWith","endsWith","empty","notEmpty"],$lr={id:"nodeType",header:"Type",size:100,columnFilterModeOptions:wXe,accessorFn:e=>e.nodeType??"Unknown"},qlr={accessorKey:"displayName",header:"Name",sortingFn:"alphanumeric",size:100,columnFilterModeOptions:wXe},Glr={accessorKey:"role",header:"Relationship",size:100,columnFilterModeOptions:wXe},Klr={id:"lastUpdated",header:"Last Updated",accessorFn:e=>e.lastUpdate!==null?new Date(e.lastUpdate):void 0,Cell:({cell:e})=>e.getValue()?.toLocaleDateString(),size:100,filterVariant:"date",sortingFn:"datetime",enableColumnFilterModes:!1,filterFn:(e,t,n)=>{const i=e.getValue(t);return N0e(new Date(i),n)}};function Ylr(){const e=cl(),t=tXe();if(t!==void 0){const n=new Set(t.allNodeIds);return{id:"selected",header:"",enableColumnActions:!1,enableColumnFilter:!1,enableColumnFilterModes:!1,enableColumnOrdering:!1,enableSorting:!1,size:40,muiTableBodyCellProps:{sx:{padding:0,textAlign:"center"}},Cell:({cell:i})=>{const r=i.row.original.id,o=n.has(r),s=t.selectedNodes.has(r);return o?S.jsx(Qr,{onClick:()=>{s?t.deselectNode(r):t.addNodeToStart(r)},size:"small",sx:{borderRadius:0,padding:"4px",width:"100%"},children:S.jsx(Vlr,{color:s?e.palette.secondary.main:pr(e.palette.primary.main,.25),strokeWidth:5,style:{fontSize:16}})}):S.jsx(Qr,{onClick:()=>{t.addNodes([r]),t.deselectAll()},size:"small",sx:{borderRadius:0,padding:"4px",width:"100%"},children:S.jsx(Ulr,{color:e.palette.primary.main,style:{fontSize:16}})})}}}}function Qlr({baseGraph:e,viewedNodeName:t,temporalProperties:n=[],excludeLayers:i=[],columns:r}){const o=tXe(),[s,a]=I.useState({page:0,pageSize:5}),[l,c]=I.useState(!0),{data:u,error:d,isLoading:h}=btr({graphPath:e,nodeName:t,pageIndex:s.page,limit:s.pageSize,temporalProperties:n,views:[{excludeLayers:i},...o?.graphQueryViews??[]],paginate:l}),f=Ylr(),p=r??[...f?[f]:[],$lr,qlr,Glr,Klr];return d!==null?S.jsxs(Xn,{children:["Error fetching node edges: ",d.message]}):S.jsx(fye,{columns:p,data:u?.neighbours??[],isLoading:h,pagination:s,setPagination:a,totalItems:u?.count??0,usePaging:l,setUsePaging:c,options:{minimal:!0}})}var Zlr={filterVariant:"date",filterFn:"equals",sortingFn:"datetime",Cell:({cell:e})=>e.getValue()?.toLocaleDateString()},Xlr=[{accessorKey:"event",header:"Event",sortingFn:"alphanumeric",size:100,columnFilterModeOptions:["fuzzy","contains","startsWith","endsWith","empty","notEmpty"],Cell:({cell:e})=>e.getValue()===""||e.getValue()===void 0?S.jsx(Xn,{children:"Unknown"}):e.getValue()},{...Zlr,accessorFn:e=>new Date(e.time),id:"time",header:"Timestamp",size:100,enableColumnFilterModes:!1,filterFn:(e,t,n)=>{const i=e.getValue(t);return N0e(new Date(i),n)}}];function FEn({edges:e,edgesError:t,isLoading:n,pagination:i,setPagination:r,totalCount:o,usePaging:s,setUsePaging:a,onClickRow:l}){const{activityDescription:c}=Nl(),u=I.useMemo(()=>e.length>0?e.map(d=>{const h={type:"edge",src:d.src.displayName??d.src.id,dst:d.dst.displayName??d.dst.id,layer:d.layerName,time:new Date(d.time),properties:d.properties};return{event:c(h),time:d.time,src:d.src.displayName??d.src.id,dst:d.dst.displayName??d.dst.id}}):[],[e,c]);return S.jsxs(S.Fragment,{children:[t&&S.jsx(P0e,{severity:"error",children:t.message}),S.jsx(fye,{columns:Xlr,data:u,isLoading:n,pagination:i,setPagination:r,usePaging:s,setUsePaging:a,totalItems:o,onClickRow:l,options:{minimal:!0}})]})}function Jlr({baseGraph:e,viewedNode:t,onClickRow:n}){const[i,r]=I.useState({page:0,pageSize:5}),[o,s]=I.useState(!0),{data:a,error:l,isLoading:c}=NFt({graphPath:e,nodeName:t,pageIndex:i?.page,limit:i?.pageSize,paginate:o});return NFt({graphPath:e,nodeName:t,pageIndex:i!==void 0?i.page+1:void 0,limit:i?.pageSize,paginate:o}),l&&console.error(l),S.jsx(FEn,{edges:a===void 0?[]:a.edges,edgesError:l,isLoading:c,pagination:i,setPagination:r,totalCount:a?.count??0,usePaging:o,setUsePaging:s,onClickRow:n})}function k5t({baseGraph:e,nodeFrom:t,nodeTo:n,onClickRow:i}){const r=I.useRef(Date.now()).current,[o,s]=I.useState({page:0,pageSize:5}),[a,l]=I.useState(!0),{data:c,error:u,isLoading:d}=_tr({graphPath:e,source:t,target:n,at:r,pageIndex:o?.page,limit:o?.pageSize,paginate:a});return S.jsx(FEn,{edges:c===void 0?[]:c.edges,edgesError:u,isLoading:d,pagination:o,setPagination:s,totalCount:c?.count??0,usePaging:a,setUsePaging:l,onClickRow:i})}function pye({viewedEntity:e,rhs:t,onClick:n,typeBadge:i}){if(!e)return S.jsx(wr,{direction:"row",alignItems:"center",justifyContent:"space-between",children:S.jsx(Xn,{variant:"h2",fontWeight:"bold",sx:{maxWidth:"350px"},children:"No selection"})});const r=()=>{switch(e.type){case"edge":case"exploded-edge":{const{src:o,dst:s}=e.identifiers;return o.length>20||s.length>20?S.jsxs(S.Fragment,{children:[S.jsx("div",{children:o}),S.jsx("div",{children:"→"}),S.jsx("div",{children:s})]}):S.jsxs("span",{children:[o," → ",s]})}case"node":return e.name;case"graph":return e.path.fullPath;default:return"No selection"}};return S.jsxs(wr,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:t!==void 0?2:0,sx:{mb:2},children:[S.jsxs(wr,{direction:"row",alignItems:"center",spacing:1.5,sx:{minWidth:0,flex:1},children:[i&&S.jsx(tn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"6px",border:"1px solid rgba(0, 0, 0, 0.06)",px:1,py:.5,flexShrink:0,"& .MuiTypography-root":{fontSize:"0.7rem",fontWeight:500},"& svg":{width:12,height:12}},children:i}),S.jsx(Xn,{variant:"h2",sx:{fontSize:"0.8rem",fontWeight:500,color:"text.primary",cursor:n?"pointer":"default",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},onClick:n,children:r()})]}),t]})}function BEn({title:e,children:t,tabs:n,selectedTableTab:i,setSelectedTableTab:r,asFlat:o}){const s=S.jsxs(S.Fragment,{children:[S.jsx(tn,{sx:{borderColor:"divider"},children:S.jsx(kj,{tabs:n,selectedTab:i,setSelectedTab:r,"aria-label":"change graph drawer tab",sx:{"& .MuiTab-root":{fontSize:"0.75rem"}}})}),S.jsx(tn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"8px",border:"1px solid rgba(0, 0, 0, 0.06)",mt:1.5,overflow:"hidden"},children:t})]});return o?S.jsxs(tn,{children:[S.jsx(wu,{children:e}),s]}):S.jsx(kxn,{title:e,children:s})}function ecr({viewedEntity:e,options:t,onClickRow:n}){const i=e.baseGraphPath,{slots:r}=Nl(),o=r?.rhs?.edge?.Extra,{data:s,error:a}=ytr({graphPath:i,edgeIdentifiers:e.identifiers}),{data:l}=kFt({graphPath:i,src:e.identifiers.src,dst:e.identifiers.dst}),{data:c}=kFt({graphPath:i,src:e.identifiers.dst,dst:e.identifiers.src}),u=[...l?[{label:`${e.identifiers.src} -> ${e.identifiers.dst} Log`,content:S.jsx(k5t,{baseGraph:i,nodeFrom:e.identifiers.src,nodeTo:e.identifiers.dst,onClickRow:n})}]:[],...c?[{label:`${e.identifiers.dst} -> ${e.identifiers.src} Log`,content:S.jsx(k5t,{baseGraph:i,nodeFrom:e.identifiers.dst,nodeTo:e.identifiers.src,onClickRow:n})}]:[]],d=u.map(({label:b})=>b),[h,f]=I.useState(u.length>0?u[0].label:""),p=e.selectedTabLabel??h,g=e.setSelectedTabLabel??f,m=u.find(({label:b})=>b===p)??u[0],v=new Date(s?.firstUpdate??""),y=new Date(s?.lastUpdate??"");return S.jsxs(S.Fragment,{children:[a!==null&&S.jsx(P0e,{severity:"error",children:a.message}),S.jsx(pye,{viewedEntity:e,rhs:t?.showOpenButtons&&S.jsx(tcr,{...e.identifiers,baseGraph:i})}),s!==void 0&&S.jsxs(S.Fragment,{children:[S.jsx(I8,{enableAccordion:!0,accordionProps:{title:"Edge Properties"},properties:s.properties}),S.jsx(I8,{properties:{"Layer Names":s.layerNames.join(", ")??"No Layers","Earliest Time":isNaN(v.getTime())?"No Earliest Time":v.toLocaleDateString(),"Latest Time":isNaN(y.getTime())?"No Latest Time":y.toLocaleDateString()},enableAccordion:!0,accordionProps:{title:"Edge Statistics",collapsedByDefault:!0}}),o!==void 0&&S.jsx(o,{viewedEntity:e}),S.jsx(BEn,{title:"Explorer",tabs:d,setSelectedTableTab:g,selectedTableTab:p,children:m.content})]})]})}function tcr({src:e,dst:t,baseGraph:n}){const[i,r]=I.useState(!1),o=I.useRef(null);return S.jsxs(S.Fragment,{children:[S.jsx(na,{ref:o,variant:"contained",onClick:()=>r(!i),children:"Open"}),S.jsxs(Mb,{open:i,onClose:()=>r(!1),anchorEl:o.current,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[S.jsx(Jy,{style:{textDecoration:"none"},to:js.graph.$buildPath({searchParams:{baseGraph:n,initialNodes:[e]}}),children:S.jsx(bo,{children:e})}),S.jsx(Jy,{style:{textDecoration:"none"},to:js.graph.$buildPath({searchParams:{baseGraph:n,initialNodes:[t]}}),children:S.jsx(bo,{children:t})}),S.jsx(Jy,{style:{textDecoration:"none"},to:js.graph.$buildPath({searchParams:{baseGraph:n,initialNodes:[e,t]}}),children:S.jsx(bo,{children:"Both"})})]})]})}function ncr({viewedEntity:e,options:t}){const n=e.baseGraphPath,{slots:i}=Nl(),{deselectAllTemporalEdges:r,deselectAllEdges:o,selectEdges:s}=$d();return S.jsxs(S.Fragment,{children:[S.jsx(pye,{viewedEntity:e,rhs:t?.showOpenButtons?S.jsx(icr,{...e.identifiers,baseGraph:n}):i?.rhs?.explodedEdge?.Header,onClick:()=>{r(),o(),s([{src:e.identifiers.src,dst:e.identifiers.dst}])}}),S.jsxs(S.Fragment,{children:[S.jsx(I8,{enableAccordion:!0,accordionProps:{title:"Time Appeared"},properties:{Time:gu(new Date(e.identifiers.timestamp),"PPP 'at' hh:mm:ss a")}}),S.jsx(I8,{enableAccordion:!0,accordionProps:{title:"Edge Properties"},properties:e.event?.properties}),S.jsx(I8,{properties:{Layer:e.event?.layer??"No Layers"},enableAccordion:!0,accordionProps:{title:"Edge Statistics"}})]})]})}function icr({src:e,dst:t,baseGraph:n}){const[i,r]=I.useState(!1),o=I.useRef(null);return S.jsxs(S.Fragment,{children:[S.jsx(na,{ref:o,variant:"contained",onClick:()=>r(!i),children:"Open"}),S.jsxs(Mb,{open:i,onClose:()=>r(!1),anchorEl:o.current,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[S.jsx(Jy,{style:{textDecoration:"none"},to:js.graph.$buildPath({searchParams:{baseGraph:n,initialNodes:[e]}}),children:S.jsx(bo,{children:e})}),S.jsx(Jy,{style:{textDecoration:"none"},to:js.graph.$buildPath({searchParams:{baseGraph:n,initialNodes:[t]}}),children:S.jsx(bo,{children:t})}),S.jsx(Jy,{style:{textDecoration:"none"},to:js.graph.$buildPath({searchParams:{baseGraph:n,initialNodes:[e,t]}}),children:S.jsx(bo,{children:"Both"})})]})]})}function jEn({metadata:e}){return S.jsx(S.Fragment,{children:e!==void 0&&e.length>0&&e.filter(t=>!/nodeStyle|edgeStyle/i.test(t.key)).map(t=>S.jsxs(tn,{sx:{mb:3},children:[S.jsx(wu,{children:t.key}),S.jsx(tn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"8px",border:"1px solid rgba(0, 0, 0, 0.06)",overflow:"hidden"},children:S.jsx(_j,{size:"small",sx:{tableLayout:"fixed",width:"100%","& .MuiTableRow-root:nth-of-type(odd)":{backgroundColor:"rgba(255, 255, 255, 0.3)"},[`& .${wj.root}`]:{borderBottom:"none",padding:"8px 12px",fontSize:"0.8rem","&:first-of-type":{color:"text.disabled",fontWeight:500,width:"40%"},"&:last-of-type":{color:"text.primary"}}},children:S.jsx(pL,{children:t.value&&typeof t.value=="object"?Object.entries(t.value).map(([n,i])=>{const r=typeof i=="object"&&i!==null,o=Array.isArray(i),s=typeof i=="boolean",a=typeof i=="string";let l;return o?l=[i.join(", ")]:r?l=JSON.stringify(i,null,2):s?l=i?"True":"False":a&&i.length>0?l=i.charAt(0).toUpperCase()+i.slice(1):l=String(i),S.jsxs(bv,{children:[S.jsx(mu,{style:{whiteSpace:"normal",wordBreak:"break-word",overflowWrap:"break-word"},children:n}),S.jsx(mu,{style:{whiteSpace:"normal",wordBreak:"break-word",overflowWrap:"break-word"},children:l})]},n)}):S.jsxs(bv,{children:[S.jsx(mu,{children:String(t.key??"—")}),S.jsx(mu,{children:String(t.value??"—")})]})})})})]},t.key))})}function zEn(e){return typeof e=="boolean"?e?"True":"False":typeof e=="string"&&e.length>0?e.charAt(0).toUpperCase()+e.slice(1):typeof e=="object"?VEn(e):e}function VEn(e){if(e==null)return S.jsx("em",{children:"—"});if(typeof e!="object")return String(e);if(Array.isArray(e))return S.jsxs("div",{children:["[ ",e.join(", ")," ]"]});const t=Object.entries(e);return S.jsx("div",{style:{display:"flex",flexDirection:"column",gap:2,whiteSpace:"nowrap",fontSize:"0.9em",lineHeight:1.4},children:t.map(([n,i])=>S.jsxs("div",{children:[S.jsxs("strong",{children:[n,":"]})," ",i&&typeof i=="object"?S.jsx("span",{style:{marginLeft:4},children:VEn(i)}):S.jsx("span",{children:String(i)})]},n))})}function N8({value:e,label:t}){return S.jsxs(tn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"6px",border:"1px solid rgba(0, 0, 0, 0.06)",padding:1,minWidth:"50px",textAlign:"center"},children:[S.jsx(Xn,{sx:{fontSize:"0.8rem",fontWeight:600,color:"text.primary",lineHeight:1.2},children:e}),S.jsx(Xn,{sx:{fontSize:"0.55rem",fontWeight:500,color:"text.disabled",textTransform:"uppercase",letterSpacing:"0.3px",mt:.25},children:t})]})}var rcr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M3 3h18v4H3zm1 5h16v13H4zm5.5 3a.5.5 0 0 0-.5.5V13h6v-1.5a.5.5 0 0 0-.5-.5z"})]}),ocr=I.forwardRef(rcr),scr=ocr,acr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M19 21H8V7h11m0-2H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2m-3-4H4a2 2 0 0 0-2 2v14h2V3h12z"})]}),lcr=I.forwardRef(acr),ccr=lcr,ucr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M20.54 5.23c.29.34.46.77.46 1.27V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6.5c0-.5.17-.93.46-1.27l1.38-1.68C5.12 3.21 5.53 3 6 3h12c.47 0 .88.21 1.15.55zM5.12 5h13.75l-.94-1h-12zM12 9.5L6.5 15H10v2h4v-2h3.5z"})]}),dcr=I.forwardRef(ucr),hcr=dcr;function fcr({viewedEntity:e}){const{GraphPanel:t,graphDisplayLimit:n,previewDisplayLimit:i,archiveEnabled:r,entityViewer:o}=Nl(),{data:s,isLoading:a}=nXe(e.path,i),{mutate:l}=FSn(),c=js.graph.$buildPath({searchParams:{graphSource:e.path,initialNodes:[]}}),u=js.search.$buildPath({searchParams:{builderState:{graphPath:e.path}}}),d=`${window.location.origin}${c}`,h=s!==void 0?new Date(s.created).toLocaleDateString():"",f=s!==void 0?new Date(s.lastUpdated).toLocaleDateString():"",p=s?.namespace!==void 0&&s.namespace.length>0?s.namespace:"root",g=I.useMemo(()=>a?"Loading information...":s!==void 0&&s.countNodes>n?"Graph too large to open":"Open",[n,a,s]),m=I.useMemo(()=>t===void 0?null:a?S.jsx(tn,{sx:{mb:3},children:S.jsx(fU,{number:4})}):S.jsx(t,{}),[t,a]),v=s?.metadata.values.filter(b=>typeof b.value=="object"&&b.value!==null&&b.key!=="_style"),y=s?.metadata.values.filter(b=>!(typeof b.value=="object"&&b.value!==null));return S.jsx(MSn,{graphSource:e.path,initialNodes:[],displayLimit:i,children:S.jsxs(wr,{sx:{position:"relative"},spacing:3,children:[S.jsx(pye,{viewedEntity:e,rhs:S.jsx(Dxn,{href:c,subtle:!0,disabled:a||s!==void 0&&s.countNodes>n,options:[...r?[{key:"archive",onClick:()=>s&&l({path:e.path,archive:!s.archived}),children:S.jsxs(S.Fragment,{children:[S.jsx($m,{children:s?.archived?S.jsx(hcr,{style:{fontSize:"small"}}):S.jsx(scr,{style:{fontSize:"small"}})}),S.jsx(u0,{children:s?.archived?"Unarchive":"Archive"})]})}]:[],{key:"copy-link",onClick:()=>{navigator.clipboard.writeText(d)},children:S.jsxs(S.Fragment,{children:[S.jsx($m,{children:S.jsx(ccr,{style:{fontSize:"small"}})}),S.jsx(u0,{children:"Copy Link"})]})}],children:g})}),m,S.jsxs(tn,{sx:{mb:3},children:[S.jsx(wu,{children:"Statistics"}),a?S.jsx(fU,{number:1}):S.jsxs(wr,{direction:"row",spacing:1,sx:{flexWrap:"wrap",gap:1},children:[S.jsx(N8,{value:s?.countNodes??0,label:"Nodes"}),S.jsx(N8,{value:s?.countEdges??0,label:"Edges"}),y?.filter(b=>typeof b.value=="number").map(b=>S.jsx(N8,{value:b.value,label:b.key},b.key))]})]}),S.jsxs(tn,{sx:{mb:3},children:[S.jsx(wu,{children:"Preview"}),s===void 0||s.countNodes<=i?S.jsx(Ogr,{}):s.countNodes<n?S.jsxs(Xn,{sx:{fontSize:"0.8rem",color:"text.disabled"},children:["Preview unavailable."," ",S.jsx(T7e,{href:c,sx:{fontWeight:500},children:"Open Full Graph"})]}):S.jsxs(Xn,{sx:{fontSize:"0.8rem",color:"text.disabled"},children:["Graph too large to preview."," ",S.jsx(T7e,{href:`${window.location.origin}${u}`,sx:{fontWeight:500},children:"Explore on Search"})]})]}),S.jsxs(tn,{sx:{mb:3},children:[S.jsx(wu,{children:"Properties"}),a?S.jsx(fU,{number:4}):S.jsx(tn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"8px",border:"1px solid rgba(0, 0, 0, 0.06)",p:1.5},children:[{label:"Namespace",value:p},{label:"Created",value:h},{label:"Last Updated",value:f},...y?.filter(b=>typeof b.value!="number").map(b=>({label:b.key,value:zEn(b.value)}))??[]].map(({label:b,value:w})=>S.jsxs(tn,{sx:{display:"flex",gap:2,py:.5},children:[S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.disabled",minWidth:"100px"},children:b}),S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.primary"},children:w})]},b))})]}),v!==void 0&&v.length>0&&S.jsx(jEn,{metadata:v}),o?.userNotesEnabled&&S.jsxs(tn,{sx:{mb:3},children:[S.jsx(wu,{children:"User notes"}),a?S.jsx(fU,{number:2}):S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.disabled"},children:"No user notes found"})]})]})})}function pcr(e){const t=["lastUpdate"],n={name:"Name",nodeType:"Type",lastUpdate:"Last Updated"};return e?.properties!==void 0?Object.entries(e.properties).reduce((r,[o,s])=>{const a=n!==void 0&&o in n?n[o]:o;return typeof s=="number"&&t?.includes(o)?r[a]=new Date(s).toLocaleDateString():typeof s=="object"&&s!==null?r[a]=Object.entries(s).map(([l,c])=>Array.isArray(c)&&c.length===0?`${l}: empty`:`${l}: ${Wje(c)}`).join(", "):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&(r[a]=s),r},{}):{}}function Wje(e){return Array.isArray(e)?e.map(t=>Wje(t)).join(", "):typeof e=="object"&&e!==null?Object.entries(e).map(([t,n])=>Array.isArray(n)&&n.length===0?`${t}: empty`:`${t}: ${Wje(n)}`).join(", "):e}function HEn({sx:e,icon:t,children:n}){return S.jsxs(wr,{direction:"row",spacing:1,alignItems:"center",sx:e,children:[t,n]})}var gcr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2"})]}),mcr=I.forwardRef(gcr),WEn=mcr;function CXe({sx:e,type:t,graphPath:n}){const{nodeTypeLabels:i,getTypeIcon:r}=Nl(),o=cl(),{data:s}=tbe(n),a=s?.typeColors?.[t]??"#444444",l=i?.[t]??t,c=r!==void 0?r(t,{color:o.palette.primary.dark,width:"16px",height:"16px"}):void 0;return l&&c?S.jsx(HEn,{icon:c,sx:e,children:S.jsx(Xn,{sx:{fontSize:"0.8rem"},children:l})}):S.jsxs(wr,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[S.jsx(WEn,{color:a}),S.jsx(Xn,{sx:{fontSize:"0.8rem"},children:l})]})}var Uje=on(_2n(),1),I5t=Symbol.for("Dexie"),i7=globalThis[I5t]||(globalThis[I5t]=Uje.default);if(Uje.default.semVer!==i7.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${Uje.default.semVer} and ${i7.semVer}`);var{liveQuery:k5r,mergeRanges:I5r,rangesOverlap:L5r,RangeSet:N5r,cmp:P5r,Entity:M5r,PropModification:O5r,replacePrefix:R5r,add:F5r,remove:B5r,DexieYProvider:j5r}=i7;function vcr(e,t,n){var i,r;typeof e=="function"?(i=t||[],r=n):(i=[],r=t);var o=Ri.useRef({hasResult:!1,result:r,error:null}),s=Ri.useReducer(function(c){return c+1},0);s[0];var a=s[1],l=Ri.useMemo(function(){var c=typeof e=="function"?e():e;if(!c||typeof c.subscribe!="function")throw e===c?new TypeError("Given argument to useObservable() was neither a valid observable nor a function."):new TypeError("Observable factory given to useObservable() did not return a valid observable.");if(!o.current.hasResult&&typeof window<"u"&&(typeof c.hasValue!="function"||c.hasValue()))if(typeof c.getValue=="function")o.current.result=c.getValue(),o.current.hasResult=!0;else{var u=c.subscribe(function(d){o.current.result=d,o.current.hasResult=!0});typeof u=="function"?u():u.unsubscribe()}return c},i);if(Ri.useDebugValue(o.current.result),Ri.useEffect(function(){var c=l.subscribe(function(u){var d=o.current;(d.error!==null||d.result!==u)&&(d.error=null,d.result=u,d.hasResult=!0,a())},function(u){var d=o.current;d.error!==u&&(d.error=u,a())});return typeof c=="function"?c:c.unsubscribe.bind(c)},i),o.current.error)throw o.current.error;return o.current.result}function ycr(e,t,n){return vcr(function(){return i7.liveQuery(e)},t||[],n)}typeof FinalizationRegistry<"u"&&new FinalizationRegistry(function(e){var t=i7.DexieYProvider;t&&t.release(e)});var pU=new i7("raphtory-base-ui");pU.version(1).stores({pinnedNodes:"++id, graph, name"});var UEn=I.createContext({committedBaseGraph:void 0,onNavigateTo:()=>{},navigateAfterAddNode:()=>{},onCommitSearch:()=>{},viewedEntity:void 0,setViewedEntity:()=>{},viewNode:()=>{},viewEdge:()=>{},selectedRhsTab:"Query Builder",setSelectedRhsTab:()=>{},isRhsPanelCollapsed:!1,setIsRhsPanelCollapsed:()=>{}});function RC(){return I.useContext(UEn)}function dZ(){const{committedBaseGraph:e}=RC();return{pinnedNodes:ycr(async()=>(await pU.pinnedNodes.toArray()).filter(s=>s.graph===e?.fullPath),[e],[]),pinNode:o=>{e!==void 0&&pU.pinnedNodes.add({id:`${e.fullPath}-${o}`,graph:e.fullPath,name:o})},unpinNode:o=>{e!==void 0&&pU.pinnedNodes.delete(`${e.fullPath}-${o}`)},clearPinnedNodes:()=>{e!==void 0&&pU.pinnedNodes.where("graph").equals(e.fullPath).delete()}}}var bcr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M8 6.2V4H7V2h10v2h-1v8l2 2v2h-.2L14 12.2V4h-4v4.2zm12 14.5L18.7 22l-5.9-5.9V22h-1.6v-6H6v-2l2-2v-.7l-6-6L3.3 4zM8.8 14h1.8l-.9-.9z"})]}),_cr=I.forwardRef(bcr),SXe=_cr,wcr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M16 12V4h1V2H7v2h1v8l-2 2v2h5.2v6h1.6v-6H18v-2zm-7.2 2l1.2-1.2V4h4v8.8l1.2 1.2z"})]}),Ccr=I.forwardRef(wcr),xXe=Ccr;function Scr({viewedEntity:e,options:t,onClickRow:n}){const i=e.baseGraphPath,{data:r,error:o}=Otr({graphPath:i,nodeName:e.name}),{descriptionProperty:s,nodeTabs:a,PieChart:l,LineChart:c,slots:u}=Nl(),{pathname:d}=XC(),h=d!==js.graph.$buildPathname({params:{}})?js.graph.$buildPath({searchParams:{baseGraph:i,initialNodes:[e.name]}}):void 0,{pinnedNodes:f,pinNode:p,unpinNode:g}=dZ(),m=f.some(F=>F.name===e.name),v=a?.({baseGraph:i,viewedNodeName:e.name})??[{label:"Connections",content:S.jsx(Qlr,{baseGraph:i,viewedNodeName:e.name})},{label:"Trace Log",content:S.jsx(Jlr,{baseGraph:i,viewedNode:e.name,onClickRow:n})}],y=v.map(({label:F})=>F),[b,w]=I.useState(v[0].label),E=e.selectedTabLabel??b,A=e.setSelectedTabLabel??w,D=v.find(({label:F})=>F===E)??v[0],T=pcr(r),M=m?SXe:xXe,P=r?.nodeType;return S.jsxs(S.Fragment,{children:[o!==null&&S.jsx(P0e,{severity:"error",children:o.message}),S.jsx(pye,{viewedEntity:e,typeBadge:P?S.jsx(CXe,{type:P,graphPath:i}):void 0,rhs:t?.showOpenButtons?S.jsx(Dxn,{href:h,subtle:!0,options:[{key:"pin-node",onClick:()=>{m?g(e.name):p(e.name)},children:S.jsxs(S.Fragment,{children:[S.jsx($m,{children:S.jsx(M,{style:{fontSize:"small"}})}),S.jsx(u0,{children:m?"Unpin Node":"Pin Node"})]})}],children:"Open"}):u?.rhs?.node?.Extra}),Object.keys(T).length>0&&S.jsxs(tn,{sx:{mb:3},children:[S.jsx(wu,{children:"Properties"}),S.jsx(I8,{properties:T,asCard:!0})]}),s!==void 0&&T[s]!==void 0&&S.jsxs(tn,{sx:{mb:3},children:[S.jsx(wu,{children:"Description"}),S.jsx(tn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"8px",border:"1px solid rgba(0, 0, 0, 0.06)",p:1.5},children:S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.primary"},children:String(T[s])})})]}),S.jsxs(tn,{sx:{mb:3},children:[S.jsx(wu,{children:"Statistics"}),S.jsxs(wr,{direction:"row",spacing:1,sx:{flexWrap:"wrap",gap:1},children:[S.jsx(N8,{value:r?.degree??0,label:"Degree"}),S.jsx(N8,{value:r?.inDegree??0,label:"In"}),S.jsx(N8,{value:r?.outDegree??0,label:"Out"})]})]}),l&&S.jsx(l,{filteredProperties:T}),c&&S.jsx(c,{temporalProperties:r?.temporalProperties??{}}),S.jsx(BEn,{title:"Network",tabs:y,setSelectedTableTab:A,selectedTableTab:E,asFlat:!0,children:D.content})]})}var xcr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"m11.5 11l6.38 5.37l-.88.18l-.64.12c-.63.13-.99.83-.71 1.4l.27.58l1.36 2.94l-1.42.66l-1.36-2.93l-.26-.58a.985.985 0 0 0-1.52-.36l-.51.4l-.71.57zm-.74-2.31a.76.76 0 0 0-.76.76V20.9c0 .42.34.76.76.76c.19 0 .35-.06.48-.16l1.91-1.55l1.66 3.62c.13.27.4.43.69.43c.11 0 .22 0 .33-.08l2.76-1.28c.38-.18.56-.64.36-1.01L17.28 18l2.41-.45a.9.9 0 0 0 .43-.26c.27-.32.23-.79-.12-1.08l-8.74-7.35l-.01.01a.76.76 0 0 0-.49-.18M15 10V8h5v2zm-1.17-5.24l2.83-2.83l1.41 1.41l-2.83 2.83zM10 0h2v5h-2zM3.93 14.66l2.83-2.83l1.41 1.41l-2.83 2.83zm0-11.32l1.41-1.41l2.83 2.83l-1.41 1.41zM7 10H2V8h5z"})]}),Ecr=I.forwardRef(xcr),Acr=Ecr;function EXe({viewedEntity:e,...t}){const n=t.slots?.nothingSelected,i=I.useMemo(()=>{if(e?.type==="node")return S.jsx(Scr,{viewedEntity:e,...t});if(e?.type==="edge")return S.jsx(ecr,{viewedEntity:e,...t});if(e?.type==="exploded-edge")return S.jsx(ncr,{viewedEntity:e,...t});if(e?.type==="graph")return S.jsx(fcr,{viewedEntity:e,...t});const o=typeof n=="string"?n:"Click on a node or edge in the graph canvas to view its details here.";return S.jsxs(tn,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flex:1,gap:2},children:[S.jsx(Acr,{style:{width:48,height:48,color:"var(--muted-grey)"}}),S.jsx(Xn,{variant:"h6",sx:{color:"text.secondary",fontWeight:500},children:"No selection"}),S.jsx(Xn,{sx:{color:"text.disabled",textAlign:"center",maxWidth:280,fontSize:"0.875rem"},children:o})]})},[e,t,n]);return S.jsx(wr,{spacing:3,sx:{flex:1,overflowY:"auto",pr:.5,...t.sx},children:i})}var Dcr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M10 4H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-8z"})]}),Tcr=I.forwardRef(Dcr),AXe=Tcr,kcr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M10 20v-6h4v6h5v-8h3L12 3L2 12h3v8z"})]}),Icr=I.forwardRef(kcr),Lcr=Icr,Ncr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 256 256",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M200 152a31.84 31.84 0 0 0-19.53 6.68l-23.11-18A31.65 31.65 0 0 0 160 128c0-.74 0-1.48-.08-2.21l13.23-4.41A32 32 0 1 0 168 104c0 .74 0 1.48.08 2.21l-13.23 4.41A32 32 0 0 0 128 96a32.6 32.6 0 0 0-5.27.44L115.89 81A32 32 0 1 0 96 88a32.6 32.6 0 0 0 5.27-.44l6.84 15.4a31.92 31.92 0 0 0-8.57 39.64l-25.71 22.84a32.06 32.06 0 1 0 10.63 12l25.71-22.84a31.91 31.91 0 0 0 37.36-1.24l23.11 18A31.65 31.65 0 0 0 168 184a32 32 0 1 0 32-32m0-64a16 16 0 1 1-16 16a16 16 0 0 1 16-16M80 56a16 16 0 1 1 16 16a16 16 0 0 1-16-16M56 208a16 16 0 1 1 16-16a16 16 0 0 1-16 16m56-80a16 16 0 1 1 16 16a16 16 0 0 1-16-16m88 72a16 16 0 1 1 16-16a16 16 0 0 1-16 16"})]}),Pcr=I.forwardRef(Ncr),gye=Pcr;function $En({title:e,open:t,setOpen:n,graphPath:i,setGraphPath:r,onCancel:o,onConfirm:s}){const a=()=>{n(!1),s?.()};return S.jsxs(GQ,{open:t,onClose:()=>n(!1),fullWidth:!0,maxWidth:"xs",scroll:"paper",children:[S.jsx(M0e,{children:e}),S.jsx(qQ,{sx:{padding:l=>l.spacing(0,2)},children:S.jsx(Mcr,{graphPath:i,setGraphPath:r,onConfirm:a})}),S.jsxs($Q,{children:[S.jsx(na,{autoFocus:!0,onClick:()=>{n(!1),o?.()},children:"Cancel"}),S.jsx(na,{onClick:a,variant:"contained",children:"Confirm"})]})]})}function Mcr({graphPath:e,setGraphPath:t,onConfirm:n}){const[i,r]=I.useState({page:0,pageSize:5}),[o,s]=I.useState(e?.namespace),{data:a,isLoading:l}=Itr(o,i.pageSize,i.page),c=[{accessorKey:"type",header:"",minSize:0,size:16,enableColumnActions:!1,enableColumnFilter:!1,enableColumnFilterModes:!1,enableColumnOrdering:!1,enableSorting:!1,Cell:function({row:f}){const p=f.original.type==="namespace"?AXe:gye;return S.jsx(p,{style:{width:"16px",height:"16px"}})},muiTableBodyCellProps:({cell:h})=>({sx:{backgroundColor:h.row.original.type==="graph"&&h.row.original.path.fullPath===e?.fullPath?"#d1d1d1":"inherit",cursor:"pointer"}})},{id:"path",accessorFn(h){switch(h.type){case"graph":return h.path.graphName;case"namespace":{const f=h.path.split("/");return f[f.length-1]}}},header:"",size:200,enableColumnActions:!1,enableColumnFilter:!1,enableColumnFilterModes:!1,enableColumnOrdering:!1,enableSorting:!1,muiTableBodyCellProps:({cell:h})=>({onClick:()=>{switch(h.row.original.type){case"namespace":{s(h.row.original.path);break}case"graph":{t(h.row.original.path);break}}},onDoubleClick:()=>{h.row.original.type==="graph"&&n?.()},sx:{backgroundColor:h.row.original.type==="graph"&&h.row.original.path.fullPath===e?.fullPath?"#d1d1d1":"inherit",cursor:"pointer"}})}],u=o!==void 0&&o!==""?o.split("/"):void 0,d=u!==void 0?S.jsxs(_8i,{maxItems:3,children:[S.jsx(Qr,{onClick:()=>s(void 0),children:S.jsx(Lcr,{style:{fontSize:"inherit"}})}),u.map((h,f)=>f===u.length-1?S.jsx(Xn,{children:h},h):S.jsx(na,{onClick:()=>s(u.slice(0,f+1).join("/")),children:h},h))]}):void 0;return S.jsx(fye,{columns:c,data:a?.page??[],pagination:i,setPagination:r,totalItems:a?.count??0,isLoading:l,serverSidePagination:!0,usePaging:!0,options:{slots:{toolbar:{left:d}},enableToolbarInternalActions:!1,enableTopToolbar:d!==void 0,tableOptions:{enableTableHead:!1,muiTopToolbarProps:{sx:{minHeight:0,borderBottom:"1px solid #eeeeee","& > .MuiBox-root":{padding:0}}}}}})}function qEn({graphPath:e,setGraphPath:t,sx:n,size:i="medium"}){const[r,o]=I.useState(!1),[s,a]=I.useState(void 0);return S.jsxs(S.Fragment,{children:[S.jsx(na,{variant:"contained",onClick:()=>o(!0),sx:[{padding:i==="medium"?3:1.5,width:i==="medium"?"100%":"auto",backgroundColor:"white",color:"#4C5970",justifyContent:"start","&:hover":{backgroundColor:"rgba(210, 210, 210, 0.1)"}},...Array.isArray(n)?n:[n]],children:S.jsx(Xn,{sx:{fontSize:"13px"},children:e===void 0?"Select a graph":e.fullPath})}),S.jsx($En,{title:"Select a graph",open:r,setOpen:o,graphPath:s,setGraphPath:a,onCancel:()=>{s?.fullPath!==e?.fullPath&&a(void 0)},onConfirm:()=>t(s)})]})}var Ocr=on(e7t(),1),Rcr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M12 2a7 7 0 0 0-7 7c0 2.38 1.19 4.47 3 5.74V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.26c1.81-1.27 3-3.36 3-5.74a7 7 0 0 0-7-7M9 21a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1H9z"})]}),Fcr=I.forwardRef(Rcr),Bcr=Fcr,jcr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.47-3 5.74V17a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 0 1 7-7M9 21v-1h6v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1m3-17a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58a5 5 0 0 0-5-5"})]}),zcr=I.forwardRef(jcr),Vcr=zcr;function Hcr({rows:e,headers:t,title:n,defaultMessage:i,highlightedRowId:r,onHighlightRowId:o,sx:s}){const a=o!==void 0?(0,Ocr.default)(o,150):void 0,l=c=>{a!==void 0&&a(r!==c?c:void 0)};return S.jsxs(tn,{sx:[{mb:0},...Array.isArray(s)?s:s?[s]:[]],children:[S.jsx(wu,{children:n}),e.length===0?S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.disabled"},children:i}):S.jsx(tn,{onBlur:()=>{a?.(void 0)},sx:{backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"8px",border:"1px solid rgba(0, 0, 0, 0.06)",p:1.5},children:e.map(({id:c,cols:u})=>S.jsxs(tn,{sx:{display:"flex",alignItems:"center",gap:1,py:.25},children:[S.jsx(uo,{title:r===c?"Remove highlight":"Highlight on graph",children:S.jsx(Qr,{size:"small",sx:{backgroundColor:d=>r===c?d.palette.grey[300]:"transparent",padding:.25,fontSize:"0.8rem",width:24,height:24,flexShrink:0},onClick:()=>l(c),children:r===c?S.jsx(Bcr,{}):S.jsx(Vcr,{})})}),u.map(({value:d,cellProps:h},f)=>S.jsx(Xn,{sx:[{fontSize:"0.8rem",color:"text.primary",fontWeight:400,minWidth:f===0?"5rem":void 0},...Array.isArray(h?.sx)?h.sx:h?.sx?[h.sx]:[]],children:d},d))]},c))})]})}function Wcr({icon:e,label:t,to:n,expanded:i,badge:r,disabled:o}){const a=XC().pathname.startsWith(n.split("?")[0]),l=S.jsxs(tn,{...o?{}:{component:Jy,to:n},sx:{cursor:o?"default":"pointer",display:"flex",alignItems:"center",gap:1.5,padding:i?"10px 16px":"10px",justifyContent:i?"flex-start":"center",borderRadius:"8px",textDecoration:"none",color:a?"primary.main":"text.primary",backgroundColor:a?"rgba(227, 6, 122, 0.06)":"transparent",marginLeft:i?0:"4px",marginRight:i?0:"4px",transition:"all 0.15s ease-in-out",position:"relative","&:hover":{backgroundColor:a?"rgba(227, 6, 122, 0.08)":"rgba(0, 0, 0, 0.04)"},"& svg":{width:"20px",height:"20px",flexShrink:0}},children:[e,i&&S.jsx(Xn,{sx:{fontSize:"0.875rem",fontWeight:a?600:400,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t}),r!==void 0&&S.jsx(tn,{sx:{position:i?"relative":"absolute",top:i?"auto":"4px",right:i?"auto":"4px",marginLeft:i?"auto":0,backgroundColor:"primary.main",color:"white",fontSize:"0.65rem",fontWeight:600,padding:"2px 6px",borderRadius:"10px",minWidth:"18px",textAlign:"center"},children:r})]});return i?l:S.jsx(uo,{title:t,placement:"right",arrow:!0,children:l})}function Ucr({label:e,items:t,expanded:n}){return S.jsxs(tn,{sx:{width:"100%"},children:[n?S.jsx(Xn,{sx:{fontSize:"0.7rem",fontWeight:600,color:"text.disabled",textTransform:"uppercase",letterSpacing:"0.5px",padding:"8px 16px 4px",marginTop:1},children:e}):S.jsx(cE,{sx:{margin:"8px 12px",borderColor:"divider"}}),S.jsx(tn,{sx:{display:"flex",flexDirection:"column",gap:.5,padding:n?"0 8px":"0 4px"},children:t.map(i=>S.jsx(Wcr,{...i,expanded:n},i.to))})]})}var L5t=64,N5t=240,P5t="pometry-navbar-expanded";function $cr({sections:e,bottomItems:t,logo:n,defaultExpanded:i=!1}){const[r,o]=I.useState(()=>{if(typeof window>"u")return i;const a=localStorage.getItem(P5t);return a!==null?a==="true":i});I.useEffect(()=>{localStorage.setItem(P5t,String(r))},[r]);const s=()=>o(a=>!a);return S.jsxs(eS,{component:"nav",elevation:0,sx:{display:"flex",flexDirection:"column",height:"100%",width:r?N5t:L5t,minWidth:r?N5t:L5t,borderRadius:0,borderRight:"1px solid rgba(0, 0, 0, 0.06)",backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",transition:"width 0.2s ease-in-out, min-width 0.2s ease-in-out",overflow:"hidden"},children:[n&&S.jsx(tn,{sx:{display:"flex",alignItems:"center",gap:1.5,padding:r?"26px 16px 16px":"28px 16px 16px",justifyContent:r?"flex-start":"center",borderBottom:"1px solid rgba(0, 0, 0, 0.06)",minHeight:"56px"},children:n.to?S.jsx(Jy,{to:n.to,style:{display:"flex",alignItems:"center",gap:"12px",textDecoration:"none"},children:r&&n.expandedIcon?n.expandedIcon:S.jsxs(S.Fragment,{children:[S.jsx(tn,{sx:{width:"28px",height:"28px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:n.icon}),r&&n.wordmark&&S.jsx(Xn,{sx:{fontSize:"1rem",fontWeight:600,color:"text.primary",whiteSpace:"nowrap"},children:n.wordmark})]})}):S.jsx(S.Fragment,{children:r&&n.expandedIcon?n.expandedIcon:S.jsxs(S.Fragment,{children:[S.jsx(tn,{sx:{width:"28px",height:"28px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:n.icon}),r&&n.wordmark&&S.jsx(Xn,{sx:{fontSize:"1rem",fontWeight:600,color:"text.primary",whiteSpace:"nowrap"},children:n.wordmark})]})})}),S.jsx(tn,{sx:{flex:1,overflowY:"auto",overflowX:"hidden",paddingTop:1,paddingBottom:1},children:e.map(a=>S.jsx(Ucr,{label:a.label,items:a.items,expanded:r},a.id))}),S.jsxs(tn,{sx:{borderTop:"1px solid rgba(0, 0, 0, 0.06)",padding:r?"8px":"8px 4px"},children:[t?.map(a=>S.jsx(tn,{sx:{marginBottom:.5},children:r?S.jsxs(tn,{component:Jy,to:a.to,sx:{display:"flex",alignItems:"center",gap:1.5,padding:"10px 16px",borderRadius:"8px",cursor:"pointer",textDecoration:"none",color:"text.primary",transition:"all 0.15s ease-in-out","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},"& svg":{width:"20px",height:"20px"}},children:[a.icon,S.jsx(Xn,{sx:{fontSize:"0.875rem",fontWeight:400},children:a.label})]}):S.jsx(uo,{title:a.label,placement:"right",arrow:!0,children:S.jsx(tn,{component:Jy,to:a.to,sx:{display:"flex",alignItems:"center",justifyContent:"center",padding:"10px",borderRadius:"8px",cursor:"pointer",textDecoration:"none",color:"text.primary",marginLeft:"4px",marginRight:"4px",transition:"all 0.15s ease-in-out","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},"& svg":{width:"20px",height:"20px"}},children:a.icon})})},a.to)),S.jsx(tn,{sx:{display:"flex",justifyContent:r?"flex-end":"center",padding:r?"4px 8px":"4px"},children:S.jsx(uo,{title:r?"Collapse":"Expand",placement:"right",arrow:!0,children:S.jsx(Qr,{onClick:s,size:"small",sx:{color:"text.disabled","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},children:r?S.jsx(jF,{}):S.jsx(hye,{})})})})]})]})}var qcr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M20 11v2H8l5.5 5.5l-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5L8 11z"})]}),Gcr=I.forwardRef(qcr),Kcr=Gcr,Ycr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M4 11v2h12l-5.5 5.5l1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5L16 11z"})]}),Qcr=I.forwardRef(Ycr),Zcr=Qcr,Xcr=Tw`
    0% {
        transform: scale(1, 1) translateX(0);
    }
    10% {
        transform: scale(1.1, .9) translateX(0);
    }
    30% {
        transform: scale(.9, 1.1) translateX(-10px);
    }
    50% {
        transform: scale(1.05, .95) translateX(0);
    }
    57% {
        transform: scale(1, 1) translateX(-3px);
    }
    64% {
        transform: scale(1, 1) translateX(0);
    }
    100% {
        transform: scale(1, 1) translateX(0);
    }
`,Jcr=Tw`
    0% {
        transform: scale(1, 1) translateX(0);
    }
    10% {
        transform: scale(1.1, .9) translateX(0);
    }
    30% {
        transform: scale(.9, 1.1) translateX(10px);
    }
    50% {
        transform: scale(1.05, .95) translateX(0);
    }
    57% {
        transform: scale(1, 1) translateX(3px);
    }
    64% {
        transform: scale(1, 1) translateX(0);
    }
    100% {
        transform: scale(1, 1) translateX(0);
    }
`,eur=`${Xcr} 2s 1 cubic-bezier(0.280, 0.840, 0.420, 1)`,tur=`${Jcr} 2s 1 cubic-bezier(0.280, 0.840, 0.420, 1)`,nur=({centerDomainAroundTime:e,scope:{nearestStart:t,nearestEnd:n,noInfo:i}})=>{if(i){const r=t!==void 0?S.jsx(Qr,{onClick:()=>e(t),children:S.jsx(Kcr,{style:{transformOrigin:"right",animation:eur}})}):S.jsx(tn,{}),o=n!==void 0?S.jsx(Qr,{onClick:()=>e(n),children:S.jsx(Zcr,{style:{transformOrigin:"left",animation:tur}})}):S.jsx(tn,{});return S.jsxs(tn,{sx:{display:"flex",justifyContent:"space-between",direction:"ltr","& > button":{pointerEvents:"all"}},children:[r,o]})}else return null},iur={fill:kQ("None")},r7=e=>e.end.getTime()-e.start.getTime();function Tfe(e){const t=e?.style?.fill;return typeof t=="string"?t:iur.fill}var M5t=20,rur=({buckets:e,originalNodes:t,opacity:n,nodeHeight:i,xScale:r,yScale:o})=>{const s=Math.max(...e.map(a=>a.size));return S.jsx(S.Fragment,{children:e.map(a=>{const l=a.node+a.time.getTime(),c=r(a.time),u=c>M5t?1:c/M5t,d=s>0?a.size/s:1,h=.5,f=h+(1-h)*d,p=u*n*f;return S.jsx("line",{x1:c>0?c:0,x2:r(a.end),y1:o(a.node),y2:o(a.node),style:{strokeWidth:i,stroke:Tfe(t.get(a.node)),strokeOpacity:p}},l)})})},kfe=4,O5t=20,R5t=2,F5t=kfe+3,our=({edges:e,originalNodes:t,opacity:n,hoveredElement:i,setHoveredElement:r,xScale:o,yScale:s})=>{const{selectEdges:a,deselectEdges:l,selectedEdges:c,deselectAllEdges:u,selectedTemporalEdges:d,selectTemporalEdges:h,deselectAllTemporalEdges:f,deselectTemporalEdges:p}=$d(),g=()=>r(void 0);return I.useMemo(()=>e.map(v=>{const y=o(v.time),b="translate("+y+",0 )",w=y>O5t?1:y/O5t,E=s(v.src.id),A=s(v.dst.id),D=Tfe(t.get(v.src.id)),T=Tfe(t.get(v.dst.id)),M=(v.src.id+"->"+v.dst.id+"_"+v.layer+"_"+v.time.getTime()).replaceAll(" ",""),P="linear-gradient-"+M,F="arrowhead-"+M,N=v.src.id+"->"+v.dst.id;return{edge:v,transform:b,srcY:E,dstY:A,srcColor:D,dstColor:T,edgeColor:v.style?.stroke?.toString()??wx.stroke?.toString(),id:M,linearGradientId:P,arrowheadId:F,fadingOutOpacity:w,edgeId:N}}),[e,t,o,s]).map(({edge:v,id:y,transform:b,srcY:w,dstY:E,srcColor:A,dstColor:D,edgeColor:T,fadingOutOpacity:M,arrowheadId:P,linearGradientId:F})=>{const N=Array.from(d).some(W=>W.src===v.src.id&&W.dst===v.dst.id&&W.time===v.time.getTime()&&W.layer===v.layer),j=Array.from(c).some(W=>W.src===v.src.id&&W.dst===v.dst.id);return S.jsxs("g",{transform:b,style:{strokeOpacity:M*n,fillOpacity:M*n},"aria-label":`Edge ID ${y}`,children:[S.jsx("defs",{children:S.jsx("marker",{id:P,markerWidth:"10",markerHeight:"10",refX:"4",refY:"2",orient:"auto",children:S.jsx("path",{d:"M0,0 L0,4 L4,2 Z",style:{fill:T}})})}),S.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:F,x1:0,x2:0,y1:w,y2:E,children:[S.jsx("stop",{offset:"0%",stopColor:T}),S.jsx("stop",{offset:"100%",stopColor:T})]}),(y===i?.id||N||d.size===0&&j)&&S.jsxs(S.Fragment,{children:[S.jsx("line",{y1:w,y2:E,style:{stroke:`url(#${F})`,strokeWidth:R5t+4,strokeOpacity:.5}}),S.jsx("circle",{cy:w,r:F5t,style:{fill:A,fillOpacity:.5}}),S.jsx("circle",{cy:E,r:F5t,style:{fill:D,fillOpacity:.5}})]}),S.jsx("line",{y1:w,y2:E,markerEnd:`url(#${P})`,style:{stroke:`url(#${F})`,strokeWidth:R5t}}),S.jsx("circle",{cy:w,r:kfe,style:{fill:A}}),S.jsx("circle",{cy:E,r:kfe,style:{fill:D}}),S.jsx("line",{onMouseEnter:()=>r({type:"exploded-edge",id:y,...v,src:v.src.id,dst:v.dst.id,properties:v.properties}),onMouseLeave:g,onClick:W=>{W.stopPropagation(),W.ctrlKey||W.metaKey||W.shiftKey?N?(p([{src:v.src.id,dst:v.dst.id,time:v.time.getTime(),layer:v.layer}]),l([{src:v.src.id,dst:v.dst.id}])):(h([...d,{src:v.src.id,dst:v.dst.id,time:v.time.getTime(),layer:v.layer}]),a([...c,{src:v.src.id,dst:v.dst.id}])):N?(p([{src:v.src.id,dst:v.dst.id,time:v.time.getTime(),layer:v.layer}]),l([{src:v.src.id,dst:v.dst.id}])):(f(),u(),h([{src:v.src.id,dst:v.dst.id,time:v.time.getTime(),layer:v.layer}]),a([{src:v.src.id,dst:v.dst.id}]))},y1:w,y2:E,style:{stroke:"red",strokeOpacity:0,strokeWidth:8}})]},y)})},sur=({nodeNames:e,selectedNodes:t,yScale:n,canvasWidth:i})=>{const r=cl(),o=e.map(s=>[s,n(s)??0]);return S.jsx("g",{children:o.map(([s,a])=>{const l=t.has(s);return S.jsx("g",{transform:"translate(0,"+a+")",children:S.jsx("line",{x2:i,style:{stroke:l?r.palette.primary.main:"rgba(0, 0, 0, 0.06)",strokeWidth:l?1:.5}})},s)})})},hH=kfe+1,aur=({events:e,originalNodes:t,opacity:n,hoveredElement:i,setHoveredElement:r,xScale:o,yScale:s})=>{const a=e.map(u=>({prop:u.prop,node:u.node.id,key:`${u.node.id}-${u.prop}-${u.time.getTime()}`,time:u.time,color:Tfe(t.get(u.node.id)),value:u.value,x1:Math.max(o(u.time),0),x2:u.end!==void 0?o(u.end):void 0})),l=new Map;for(const u of a){const d=l.get(u.node)??[];l.set(u.node,[...d,u])}const c=[...l.values()].flatMap(u=>u.map((d,h)=>{const f=h>0?u.at(h-1)?.x1:void 0,p=f===void 0||d.x1-f>80,g=u.at(h+1)?.x1,m=g===void 0||g-d.x1>80;return{...d,showText:p&&m}}));return S.jsx(S.Fragment,{children:c.map(({node:u,prop:d,key:h,time:f,color:p,value:g,x1:m,x2:v})=>S.jsxs("g",{transform:"translate(0,"+s(u)+")",strokeOpacity:n,fillOpacity:n,children:[i?.id===h&&S.jsx("circle",{cx:m,r:hH+3,style:{fill:p,fillOpacity:.5}}),S.jsx("circle",{cx:m,r:hH,style:{fill:p}}),v!==void 0&&S.jsxs(S.Fragment,{children:[i?.id===h&&S.jsx("line",{x1:m,x2:v,style:{stroke:p,strokeWidth:6,strokeOpacity:.5}}),S.jsx("line",{x1:m,x2:v,style:{stroke:p,strokeWidth:3}}),S.jsx("circle",{cx:v,r:hH,style:{fill:p}})]}),S.jsx("line",{onMouseEnter:()=>{r({type:"prop",id:h,node:u,time:f,prop:d,value:g})},onMouseLeave:()=>r(void 0),x1:m-2*hH,x2:(v??m)+2*hH,style:{stroke:"red",strokeWidth:20,strokeOpacity:0}})]},h))})},lur=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M11 20q-.425 0-.712-.288T10 19v-6L4.2 5.6q-.375-.5-.112-1.05T5 4h14q.65 0 .913.55T19.8 5.6L14 13v6q0 .425-.288.713T13 20z"})]}),cur=I.forwardRef(lur),uur=cur,dur=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M14.8 11.975L6.825 4H19q.625 0 .9.55t-.1 1.05zM19.775 22.6L14 16.825V19q0 .425-.288.713T13 20h-2q-.425 0-.712-.288T10 19v-6.175l-8.6-8.6L2.8 2.8l18.4 18.4z"})]}),hur=I.forwardRef(dur),fur=hur,pur=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M3 21v-6h2v2.6l3.1-3.1l1.4 1.4L6.4 19H9v2zm12 0v-2h2.6l-3.1-3.1l1.4-1.4l3.1 3.1V15h2v6zM8.1 9.5L5 6.4V9H3V3h6v2H6.4l3.1 3.1zm7.8 0l-1.4-1.4L17.6 5H15V3h6v6h-2V6.4z"})]}),gur=I.forwardRef(pur),mur=gur,vur=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z"})]}),yur=I.forwardRef(vur),bur=yur,_ur=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M12 9a3 3 0 0 0-3 3a3 3 0 0 0 3 3a3 3 0 0 0 3-3a3 3 0 0 0-3-3m0 8a5 5 0 0 1-5-5a5 5 0 0 1 5-5a5 5 0 0 1 5 5a5 5 0 0 1-5 5m0-12.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5"})]}),wur=I.forwardRef(_ur),Cur=wur,Sur=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M11.83 9L15 12.16V12a3 3 0 0 0-3-3zm-4.3.8l1.55 1.55c-.05.21-.08.42-.08.65a3 3 0 0 0 3 3c.22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53a5 5 0 0 1-5-5c0-.79.2-1.53.53-2.2M2 4.27l2.28 2.28l.45.45C3.08 8.3 1.78 10 1 12c1.73 4.39 6 7.5 11 7.5c1.55 0 3.03-.3 4.38-.84l.43.42L19.73 22L21 20.73L3.27 3M12 7a5 5 0 0 1 5 5c0 .64-.13 1.26-.36 1.82l2.93 2.93c1.5-1.25 2.7-2.89 3.43-4.75c-1.73-4.39-6-7.5-11-7.5c-1.4 0-2.74.25-4 .7l2.17 2.15C10.74 7.13 11.35 7 12 7"})]}),xur=I.forwardRef(Sur),Eur=xur,fH=({onClick:e,title:t,children:n})=>S.jsx(uo,{arrow:!0,title:t,placement:"top",children:S.jsx(Qr,{onClick:e,size:"small",sx:{borderRadius:"4px",color:"text.disabled",padding:"4px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)",color:"text.secondary"}},children:n})}),Aur=({hideEdges:e,setHideEdges:t,resetView:n,fitView:i,filterSelected:r,setFilterSelected:o,onClose:s})=>{const{openSource:a}=Nl();return S.jsxs(S.Fragment,{children:[S.jsx(tn,{sx:{position:"absolute",top:8,left:8,zIndex:2},children:S.jsx(fH,{title:"Close timeline",onClick:s,children:S.jsx(bur,{fontSize:16})})}),S.jsxs(tn,{sx:{position:"absolute",bottom:8,right:8,zIndex:2,display:"flex",gap:.25,backgroundColor:"rgba(255, 255, 255, 0.9)",borderRadius:"6px",padding:"2px"},children:[a===!1&&S.jsx(fH,{title:e?"Show edges":"Hide edges",onClick:()=>t(!e),children:e?S.jsx(Cur,{fontSize:16}):S.jsx(Eur,{fontSize:16})}),S.jsx(fH,{title:"Reset view",onClick:n,children:S.jsx(wxn,{fontSize:16})}),S.jsx(fH,{title:"Fit view",onClick:i,children:S.jsx(mur,{fontSize:16})}),S.jsx(fH,{title:r?"Turn filter off":"Turn filter on",onClick:()=>o(!r),children:r?S.jsx(fur,{fontSize:16}):S.jsx(uur,{fontSize:16})})]})]})},Dur=({hoveredElement:e})=>S.jsxs(S.Fragment,{children:[S.jsx(Xn,{sx:{fontSize:"0.6rem",fontWeight:500,color:"text.disabled",textTransform:"uppercase",letterSpacing:"0.5px",mb:.5},children:"Edge"}),S.jsxs(wr,{direction:"row",alignItems:"center",spacing:.5,sx:{mb:1},children:[S.jsx(Xn,{sx:{fontSize:"0.8rem",fontWeight:500,color:"text.primary"},children:e.src}),S.jsx(Exn,{style:{fontSize:"0.9rem",color:"rgba(0, 0, 0, 0.4)"}}),S.jsx(Xn,{sx:{fontSize:"0.8rem",fontWeight:500,color:"text.primary"},children:e.dst})]}),S.jsxs(wr,{direction:"row",alignItems:"center",spacing:1.5,children:[S.jsxs(tn,{children:[S.jsx(Xn,{sx:{fontSize:"0.55rem",fontWeight:500,color:"text.disabled",textTransform:"uppercase",letterSpacing:"0.3px"},children:"Layer"}),S.jsx(Xn,{sx:{fontSize:"0.7rem",color:"text.secondary"},children:e.layer||"_default"})]}),S.jsxs(tn,{children:[S.jsx(Xn,{sx:{fontSize:"0.55rem",fontWeight:500,color:"text.disabled",textTransform:"uppercase",letterSpacing:"0.3px"},children:"Time"}),S.jsx(Xn,{sx:{fontSize:"0.7rem",color:"text.secondary",whiteSpace:"nowrap"},children:gu(e.time,"dd/MM/yy HH:mm")})]})]})]}),Tur=({hoveredElement:e})=>S.jsxs(S.Fragment,{children:[S.jsx(Xn,{sx:{fontSize:"0.6rem",fontWeight:500,color:"text.disabled",textTransform:"uppercase",letterSpacing:"0.5px",mb:.25},children:e.prop}),S.jsx(Xn,{sx:{fontSize:"0.85rem",fontWeight:500,color:"text.primary",mb:.75,wordBreak:"break-word"},children:e.value}),S.jsxs(wr,{direction:"row",alignItems:"center",spacing:1.5,children:[S.jsxs(tn,{children:[S.jsx(Xn,{sx:{fontSize:"0.55rem",fontWeight:500,color:"text.disabled",textTransform:"uppercase",letterSpacing:"0.3px"},children:"Node"}),S.jsx(Xn,{sx:{fontSize:"0.7rem",color:"text.secondary"},children:e.node})]}),S.jsxs(tn,{children:[S.jsx(Xn,{sx:{fontSize:"0.55rem",fontWeight:500,color:"text.disabled",textTransform:"uppercase",letterSpacing:"0.3px"},children:"Time"}),S.jsx(Xn,{sx:{fontSize:"0.7rem",color:"text.secondary",whiteSpace:"nowrap"},children:gu(e.time,"dd/MM/yy HH:mm")})]})]})]}),kur=({x:e,y:t,type:n,hoveredElement:i})=>{const r=n==="exploded-edge",o=r?"edge-tooltip":"prop-tooltip";return S.jsx(tn,{id:o,sx:{position:"absolute",top:t,left:e,transform:r?"translateY(-50%)":"translateX(-50%) translateY(-100%) translateY(-12px)",maxWidth:"18rem",minWidth:"10rem",height:"fit-content",marginLeft:r?"12px":void 0,zIndex:100,px:1.5,py:1,boxSizing:"border-box",backgroundColor:"rgba(255, 255, 255, 0.92)",backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)",border:"1px solid rgba(0, 0, 0, 0.08)",boxShadow:"0 2px 12px rgba(0, 0, 0, 0.1)",borderRadius:"6px"},children:r?S.jsx(Dur,{hoveredElement:i}):S.jsx(Tur,{hoveredElement:i})})},GEn=30,Iur=14,B5t=14,j5t=14,Lur=4,Nur=()=>{const[e,{width:t,height:n,x:i}]=k8(),r=I.useMemo(()=>{const s=GEn+90+Iur,a=B5t+j5t+Lur;return{svg:{width:t,height:n,left:i},canvas:{width:t-s,height:n-a,left:i+s},xAxis:{height:a,upperHeight:B5t,lowerHeight:j5t},yAxis:{width:s,textWidth:90}}},[t,n,i]);return{svgRef:e,...r}},Pur=on(w2n(),1);function DXe(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}var z5t=Symbol("implicit");function KEn(){var e=new IAt,t=[],n=[],i=z5t;function r(o){let s=e.get(o);if(s===void 0){if(i!==z5t)return i;e.set(o,s=t.push(o)-1)}return n[s%n.length]}return r.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new IAt;for(const s of o)e.has(s)||e.set(s,t.push(s)-1);return r},r.range=function(o){return arguments.length?(n=Array.from(o),r):n.slice()},r.unknown=function(o){return arguments.length?(i=o,r):i},r.copy=function(){return KEn(t,n).unknown(i)},DXe.apply(r,arguments),r}function YEn(){var e=KEn().unknown(void 0),t=e.domain,n=e.range,i=0,r=1,o,s,a=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var h=t().length,f=r<i,p=f?r:i,g=f?i:r;o=(g-p)/Math.max(1,h-l+c*2),a&&(o=Math.floor(o)),p+=(g-p-o*(h-l))*u,s=o*(1-l),a&&(p=Math.round(p),s=Math.round(s));var m=adi(h).map(function(v){return p+o*v});return n(f?m.reverse():m)}return e.domain=function(h){return arguments.length?(t(h),d()):t()},e.range=function(h){return arguments.length?([i,r]=h,i=+i,r=+r,d()):[i,r]},e.rangeRound=function(h){return[i,r]=h,i=+i,r=+r,a=!0,d()},e.bandwidth=function(){return s},e.step=function(){return o},e.round=function(h){return arguments.length?(a=!!h,d()):a},e.padding=function(h){return arguments.length?(l=Math.min(1,c=+h),d()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),d()):l},e.paddingOuter=function(h){return arguments.length?(c=+h,d()):c},e.align=function(h){return arguments.length?(u=Math.max(0,Math.min(1,h)),d()):u},e.copy=function(){return YEn(t(),[i,r]).round(a).paddingInner(l).paddingOuter(c).align(u)},DXe.apply(d(),arguments)}var TXe=e=>()=>e;function Mur(e,t){return function(n){return e+n*t}}function Our(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function Rur(e){return(e=+e)==1?QEn:function(t,n){return n-t?Our(t,n,e):TXe(isNaN(t)?n:t)}}function QEn(e,t){var n=t-e;return n?Mur(e,n):TXe(isNaN(e)?t:e)}var V5t=(function e(t){var n=Rur(t);function i(r,o){var s=n((r=Oje(r)).r,(o=Oje(o)).r),a=n(r.g,o.g),l=n(r.b,o.b),c=QEn(r.opacity,o.opacity);return function(u){return r.r=s(u),r.g=a(u),r.b=l(u),r.opacity=c(u),r+""}}return i.gamma=e,i})(1);function Fur(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,i=t.slice(),r;return function(o){for(r=0;r<n;++r)i[r]=e[r]*(1-o)+t[r]*o;return i}}function Bur(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function jur(e,t){var n=t?t.length:0,i=e?Math.min(n,e.length):0,r=new Array(i),o=new Array(n),s;for(s=0;s<i;++s)r[s]=kXe(e[s],t[s]);for(;s<n;++s)o[s]=t[s];return function(a){for(s=0;s<i;++s)o[s]=r[s](a);return o}}function zur(e,t){var n=new Date;return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function Ife(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Vur(e,t){var n={},i={},r;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(r in t)r in e?n[r]=kXe(e[r],t[r]):i[r]=t[r];return function(o){for(r in n)i[r]=n[r](o);return i}}var $je=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,SOe=new RegExp($je.source,"g");function Hur(e){return function(){return e}}function Wur(e){return function(t){return e(t)+""}}function Uur(e,t){var n=$je.lastIndex=SOe.lastIndex=0,i,r,o,s=-1,a=[],l=[];for(e=e+"",t=t+"";(i=$je.exec(e))&&(r=SOe.exec(t));)(o=r.index)>n&&(o=t.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(i=i[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:Ife(i,r)})),n=SOe.lastIndex;return n<t.length&&(o=t.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?Wur(l[0].x):Hur(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)a[(d=l[u]).i]=d.x(c);return a.join("")})}function kXe(e,t){var n=typeof t,i;return t==null||n==="boolean"?TXe(t):(n==="number"?Ife:n==="string"?(i=n7(t))?(t=i,V5t):Uur:t instanceof n7?V5t:t instanceof Date?zur:Bur(t)?Fur:Array.isArray(t)?jur:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Vur:Ife)(e,t)}function $ur(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function qur(e){return function(){return e}}function Gur(e){return+e}var H5t=[0,1];function D6(e){return e}function qje(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:qur(isNaN(t)?NaN:.5)}function Kur(e,t){var n;return e>t&&(n=e,e=t,t=n),function(i){return Math.max(e,Math.min(t,i))}}function Yur(e,t,n){var i=e[0],r=e[1],o=t[0],s=t[1];return r<i?(i=qje(r,i),o=n(s,o)):(i=qje(i,r),o=n(o,s)),function(a){return o(i(a))}}function Qur(e,t,n){var i=Math.min(e.length,t.length)-1,r=new Array(i),o=new Array(i),s=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)r[s]=qje(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(a){var l=edi(e,a,1,i)-1;return o[l](r[l](a))}}function Zur(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Xur(){var e=H5t,t=H5t,n=kXe,i,r,o,s=D6,a,l,c;function u(){var h=Math.min(e.length,t.length);return s!==D6&&(s=Kur(e[0],e[h-1])),a=h>2?Qur:Yur,l=c=null,d}function d(h){return h==null||isNaN(h=+h)?o:(l||(l=a(e.map(i),t,n)))(i(s(h)))}return d.invert=function(h){return s(r((c||(c=a(t,e.map(i),Ife)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,Gur),u()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),u()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),n=$ur,u()},d.clamp=function(h){return arguments.length?(s=h?!0:D6,u()):s!==D6},d.interpolate=function(h){return arguments.length?(n=h,u()):n},d.unknown=function(h){return arguments.length?(o=h,d):o},function(h,f){return i=h,r=f,u()}}function Jur(){return Xur()(D6,D6)}function edr(e,t){e=e.slice();var n=0,i=e.length-1,r=e[n],o=e[i],s;return o<r&&(s=n,n=i,i=s,s=r,r=o,o=s),e[n]=t.floor(r),e[i]=t.ceil(o),e}function xOe(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function EOe(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function pH(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function tdr(e){var t=e.dateTime,n=e.date,i=e.time,r=e.periods,o=e.days,s=e.shortDays,a=e.months,l=e.shortMonths,c=gH(r),u=mH(r),d=gH(o),h=mH(o),f=gH(s),p=mH(s),g=gH(a),m=mH(a),v=gH(l),y=mH(l),b={a:Q,A:H,b:q,B:le,c:null,d:K5t,e:K5t,f:xdr,g:Mdr,G:Rdr,H:wdr,I:Cdr,j:Sdr,L:ZEn,m:Edr,M:Adr,p:Y,q:G,Q:Z5t,s:X5t,S:Ddr,u:Tdr,U:kdr,V:Idr,w:Ldr,W:Ndr,x:null,X:null,y:Pdr,Y:Odr,Z:Fdr,"%":Q5t},w={a:pe,A:U,b:K,B:ie,c:null,d:Y5t,e:Y5t,f:Vdr,g:Zdr,G:Jdr,H:Bdr,I:jdr,j:zdr,L:JEn,m:Hdr,M:Wdr,p:ce,q:de,Q:Z5t,s:X5t,S:Udr,u:$dr,U:qdr,V:Gdr,w:Kdr,W:Ydr,x:null,X:null,y:Qdr,Y:Xdr,Z:ehr,"%":Q5t},E={a:P,A:F,b:N,B:j,c:W,d:q5t,e:q5t,f:vdr,g:$5t,G:U5t,H:G5t,I:G5t,j:fdr,L:mdr,m:hdr,M:pdr,p:M,q:ddr,Q:bdr,s:_dr,S:gdr,u:sdr,U:adr,V:ldr,w:odr,W:cdr,x:J,X:ee,y:$5t,Y:U5t,Z:udr,"%":ydr};b.x=A(n,b),b.X=A(i,b),b.c=A(t,b),w.x=A(n,w),w.X=A(i,w),w.c=A(t,w);function A(oe,me){return function(Ce){var Se=[],De=-1,Me=0,qe=oe.length,$,he,Ie;for(Ce instanceof Date||(Ce=new Date(+Ce));++De<qe;)oe.charCodeAt(De)===37&&(Se.push(oe.slice(Me,De)),(he=W5t[$=oe.charAt(++De)])!=null?$=oe.charAt(++De):he=$==="e"?" ":"0",(Ie=me[$])&&($=Ie(Ce,he)),Se.push($),Me=De+1);return Se.push(oe.slice(Me,De)),Se.join("")}}function D(oe,me){return function(Ce){var Se=pH(1900,void 0,1),De=T(Se,oe,Ce+="",0),Me,qe;if(De!=Ce.length)return null;if("Q"in Se)return new Date(Se.Q);if("s"in Se)return new Date(Se.s*1e3+("L"in Se?Se.L:0));if(me&&!("Z"in Se)&&(Se.Z=0),"p"in Se&&(Se.H=Se.H%12+Se.p*12),Se.m===void 0&&(Se.m="q"in Se?Se.q:0),"V"in Se){if(Se.V<1||Se.V>53)return null;"w"in Se||(Se.w=1),"Z"in Se?(Me=EOe(pH(Se.y,0,1)),qe=Me.getUTCDay(),Me=qe>4||qe===0?uhe.ceil(Me):uhe(Me),Me=Fme.offset(Me,(Se.V-1)*7),Se.y=Me.getUTCFullYear(),Se.m=Me.getUTCMonth(),Se.d=Me.getUTCDate()+(Se.w+6)%7):(Me=xOe(pH(Se.y,0,1)),qe=Me.getDay(),Me=qe>4||qe===0?che.ceil(Me):che(Me),Me=qL.offset(Me,(Se.V-1)*7),Se.y=Me.getFullYear(),Se.m=Me.getMonth(),Se.d=Me.getDate()+(Se.w+6)%7)}else("W"in Se||"U"in Se)&&("w"in Se||(Se.w="u"in Se?Se.u%7:"W"in Se?1:0),qe="Z"in Se?EOe(pH(Se.y,0,1)).getUTCDay():xOe(pH(Se.y,0,1)).getDay(),Se.m=0,Se.d="W"in Se?(Se.w+6)%7+Se.W*7-(qe+5)%7:Se.w+Se.U*7-(qe+6)%7);return"Z"in Se?(Se.H+=Se.Z/100|0,Se.M+=Se.Z%100,EOe(Se)):xOe(Se)}}function T(oe,me,Ce,Se){for(var De=0,Me=me.length,qe=Ce.length,$,he;De<Me;){if(Se>=qe)return-1;if($=me.charCodeAt(De++),$===37){if($=me.charAt(De++),he=E[$ in W5t?me.charAt(De++):$],!he||(Se=he(oe,Ce,Se))<0)return-1}else if($!=Ce.charCodeAt(Se++))return-1}return Se}function M(oe,me,Ce){var Se=c.exec(me.slice(Ce));return Se?(oe.p=u.get(Se[0].toLowerCase()),Ce+Se[0].length):-1}function P(oe,me,Ce){var Se=f.exec(me.slice(Ce));return Se?(oe.w=p.get(Se[0].toLowerCase()),Ce+Se[0].length):-1}function F(oe,me,Ce){var Se=d.exec(me.slice(Ce));return Se?(oe.w=h.get(Se[0].toLowerCase()),Ce+Se[0].length):-1}function N(oe,me,Ce){var Se=v.exec(me.slice(Ce));return Se?(oe.m=y.get(Se[0].toLowerCase()),Ce+Se[0].length):-1}function j(oe,me,Ce){var Se=g.exec(me.slice(Ce));return Se?(oe.m=m.get(Se[0].toLowerCase()),Ce+Se[0].length):-1}function W(oe,me,Ce){return T(oe,t,me,Ce)}function J(oe,me,Ce){return T(oe,n,me,Ce)}function ee(oe,me,Ce){return T(oe,i,me,Ce)}function Q(oe){return s[oe.getDay()]}function H(oe){return o[oe.getDay()]}function q(oe){return l[oe.getMonth()]}function le(oe){return a[oe.getMonth()]}function Y(oe){return r[+(oe.getHours()>=12)]}function G(oe){return 1+~~(oe.getMonth()/3)}function pe(oe){return s[oe.getUTCDay()]}function U(oe){return o[oe.getUTCDay()]}function K(oe){return l[oe.getUTCMonth()]}function ie(oe){return a[oe.getUTCMonth()]}function ce(oe){return r[+(oe.getUTCHours()>=12)]}function de(oe){return 1+~~(oe.getUTCMonth()/3)}return{format:function(oe){var me=A(oe+="",b);return me.toString=function(){return oe},me},parse:function(oe){var me=D(oe+="",!1);return me.toString=function(){return oe},me},utcFormat:function(oe){var me=A(oe+="",w);return me.toString=function(){return oe},me},utcParse:function(oe){var me=D(oe+="",!0);return me.toString=function(){return oe},me}}}var W5t={"-":"",_:" ",0:"0"},Pp=/^\s*\d+/,ndr=/^%/,idr=/[\\^$*+?|[\]().{}]/g;function Ll(e,t,n){var i=e<0?"-":"",r=(i?-e:e)+"",o=r.length;return i+(o<n?new Array(n-o+1).join(t)+r:r)}function rdr(e){return e.replace(idr,"\\$&")}function gH(e){return new RegExp("^(?:"+e.map(rdr).join("|")+")","i")}function mH(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function odr(e,t,n){var i=Pp.exec(t.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function sdr(e,t,n){var i=Pp.exec(t.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function adr(e,t,n){var i=Pp.exec(t.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function ldr(e,t,n){var i=Pp.exec(t.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function cdr(e,t,n){var i=Pp.exec(t.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function U5t(e,t,n){var i=Pp.exec(t.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function $5t(e,t,n){var i=Pp.exec(t.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function udr(e,t,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function ddr(e,t,n){var i=Pp.exec(t.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function hdr(e,t,n){var i=Pp.exec(t.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function q5t(e,t,n){var i=Pp.exec(t.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function fdr(e,t,n){var i=Pp.exec(t.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function G5t(e,t,n){var i=Pp.exec(t.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function pdr(e,t,n){var i=Pp.exec(t.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function gdr(e,t,n){var i=Pp.exec(t.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function mdr(e,t,n){var i=Pp.exec(t.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function vdr(e,t,n){var i=Pp.exec(t.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function ydr(e,t,n){var i=ndr.exec(t.slice(n,n+1));return i?n+i[0].length:-1}function bdr(e,t,n){var i=Pp.exec(t.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function _dr(e,t,n){var i=Pp.exec(t.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function K5t(e,t){return Ll(e.getDate(),t,2)}function wdr(e,t){return Ll(e.getHours(),t,2)}function Cdr(e,t){return Ll(e.getHours()%12||12,t,2)}function Sdr(e,t){return Ll(1+qL.count(A0(e),e),t,3)}function ZEn(e,t){return Ll(e.getMilliseconds(),t,3)}function xdr(e,t){return ZEn(e,t)+"000"}function Edr(e,t){return Ll(e.getMonth()+1,t,2)}function Adr(e,t){return Ll(e.getMinutes(),t,2)}function Ddr(e,t){return Ll(e.getSeconds(),t,2)}function Tdr(e){var t=e.getDay();return t===0?7:t}function kdr(e,t){return Ll(JY.count(A0(e)-1,e),t,2)}function XEn(e){var t=e.getDay();return t>=4||t===0?b9(e):b9.ceil(e)}function Idr(e,t){return e=XEn(e),Ll(b9.count(A0(e),e)+(A0(e).getDay()===4),t,2)}function Ldr(e){return e.getDay()}function Ndr(e,t){return Ll(che.count(A0(e)-1,e),t,2)}function Pdr(e,t){return Ll(e.getFullYear()%100,t,2)}function Mdr(e,t){return e=XEn(e),Ll(e.getFullYear()%100,t,2)}function Odr(e,t){return Ll(e.getFullYear()%1e4,t,4)}function Rdr(e,t){var n=e.getDay();return e=n>=4||n===0?b9(e):b9.ceil(e),Ll(e.getFullYear()%1e4,t,4)}function Fdr(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ll(t/60|0,"0",2)+Ll(t%60,"0",2)}function Y5t(e,t){return Ll(e.getUTCDate(),t,2)}function Bdr(e,t){return Ll(e.getUTCHours(),t,2)}function jdr(e,t){return Ll(e.getUTCHours()%12||12,t,2)}function zdr(e,t){return Ll(1+Fme.count(YD(e),e),t,3)}function JEn(e,t){return Ll(e.getUTCMilliseconds(),t,3)}function Vdr(e,t){return JEn(e,t)+"000"}function Hdr(e,t){return Ll(e.getUTCMonth()+1,t,2)}function Wdr(e,t){return Ll(e.getUTCMinutes(),t,2)}function Udr(e,t){return Ll(e.getUTCSeconds(),t,2)}function $dr(e){var t=e.getUTCDay();return t===0?7:t}function qdr(e,t){return Ll(Bme.count(YD(e)-1,e),t,2)}function eAn(e){var t=e.getUTCDay();return t>=4||t===0?_9(e):_9.ceil(e)}function Gdr(e,t){return e=eAn(e),Ll(_9.count(YD(e),e)+(YD(e).getUTCDay()===4),t,2)}function Kdr(e){return e.getUTCDay()}function Ydr(e,t){return Ll(uhe.count(YD(e)-1,e),t,2)}function Qdr(e,t){return Ll(e.getUTCFullYear()%100,t,2)}function Zdr(e,t){return e=eAn(e),Ll(e.getUTCFullYear()%100,t,2)}function Xdr(e,t){return Ll(e.getUTCFullYear()%1e4,t,4)}function Jdr(e,t){var n=e.getUTCDay();return e=n>=4||n===0?_9(e):_9.ceil(e),Ll(e.getUTCFullYear()%1e4,t,4)}function ehr(){return"+0000"}function Q5t(){return"%"}function Z5t(e){return+e}function X5t(e){return Math.floor(+e/1e3)}var lB,tAn;thr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function thr(e){return lB=tdr(e),lB.format,lB.parse,tAn=lB.utcFormat,lB.utcParse,lB}function nhr(e){return new Date(e)}function ihr(e){return e instanceof Date?+e:+new Date(+e)}function nAn(e,t,n,i,r,o,s,a,l,c){var u=Jur(),d=u.invert,h=u.domain,f=c(".%L"),p=c(":%S"),g=c("%I:%M"),m=c("%I %p"),v=c("%a %d"),y=c("%b %d"),b=c("%B"),w=c("%Y");function E(A){return(l(A)<A?f:a(A)<A?p:s(A)<A?g:o(A)<A?m:i(A)<A?r(A)<A?v:y:n(A)<A?b:w)(A)}return u.invert=function(A){return new Date(d(A))},u.domain=function(A){return arguments.length?h(Array.from(A,ihr)):h().map(nhr)},u.ticks=function(A){var D=h();return e(D[0],D[D.length-1],A??10)},u.tickFormat=function(A,D){return D==null?E:c(D)},u.nice=function(A){var D=h();return(!A||typeof A.range!="function")&&(A=t(D[0],D[D.length-1],A??10)),A?h(edr(D,A)):u},u.copy=function(){return Zur(u,nAn(e,t,n,i,r,o,s,a,l,c))},u}function iAn(){return DXe.apply(nAn(cdi,udi,YD,mGe,Bme,Fme,gGe,pGe,O_,tAn).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}var rhr=on(C2n(),1),ohr=on(t7t(),1),shr=new Date(1970,0,1),ahr=(0,Pur.default)(.25,.1,.25,1),J5t=e=>{const n=r7(e)*.1;return{start:new Date(e.start.getTime()-n),end:new Date(e.end.getTime()+n)}},lhr=({current:e,final:t,fallback:n,setDomain:i})=>{const s=Math.ceil(24),a=e?.start.getTime()??n.start.getTime(),l=e?.end.getTime()??n.end.getTime(),c=t?.start.getTime()??n.start.getTime(),u=t?.end.getTime()??n.end.getTime(),h=[...Array(s).keys()].map(m=>m/(s-1)),f=h.map(m=>ahr(m)),p=f.map(m=>new Date(m*c+(1-m)*a)),g=f.map(m=>new Date(m*u+(1-m)*l));(0,ohr.default)(p,g).forEach(([m,v],y)=>{m&&v&&setTimeout(()=>i({start:m,end:v}),y*1e3/60)}),setTimeout(()=>i(t),h.length*1e3/60)},chr=(e,t,n)=>{const i=e??t,r=200,o=n.delta;if(o===0)return e;const s=o>=0?1+o/r:r/(r-o),a=r7(i),l=r7(t),c=i.start.getTime()+a*n.relativeMousePosition;n.setTimeReference(new Date(c));const u=(0,rhr.default)(n.timesOnScreen,m=>Math.abs(m.getTime()-c))?.getTime()??c,d=Math.max(Math.min(l,a*s),100),h=u-i.start.getTime(),f=new Date(i.start.getTime()+h/a*(a-d)),p=new Date(f.getTime()+d),g=new Date;return g.setFullYear(g.getFullYear()+5),f.getTime()>shr.getTime()&&p.getTime()<g.getTime()?{start:f,end:p}:e},uhr=(e,t,n,i)=>{const{domain:r,globalDomainWithPadding:o}=I.useMemo(()=>{const f=J5t(e);return{domain:{start:n?.start??f.start,end:n?.end??f.end},globalDomainWithPadding:f}},[n,e]),s=I.useCallback(f=>{i(p=>chr(p,o,f))},[o,i]),a=I.useCallback(f=>{lhr({current:n,final:f,fallback:o,setDomain:i})},[n,o,i]),l=I.useCallback(()=>{a(void 0)},[a]),c=I.useCallback(f=>{const p=r7(r)/2,g=f.getTime(),m=new Date(g-p),v=new Date(g+p);a({start:m,end:v})},[a,r]),u=I.useCallback(f=>{if(f.length>1){const p=sye(f),g=Tj(f);a(J5t({start:p,end:g}))}else f.length===1&&c(f[0])},[c,a]),d=I.useCallback(f=>{const g=r7(r)*f,m=new Date(r.start.getTime()-g),v=new Date(r.end.getTime()-g);i({start:m,end:v})},[r,i]),h=I.useMemo(()=>iAn().range([0,t]).domain([r.start,r.end]),[t,r]);return{resetDomain:l,fitDomain:u,centerDomainAroundTime:c,updateDomainWithScroll:s,updateDomainWithRelativeOffset:d,xScale:h}},dhr=(e,t)=>({mouseDownHandler:I.useCallback(i=>{i.preventDefault();const r=i.screenX,o=l=>{const c=(l.screenX-r)/e;t(c)},s=l=>{o(l)},a=l=>{o(l),window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",a)};window.addEventListener("mousemove",s),window.addEventListener("mouseup",a)},[e,t])}),rAn=(e,t,n,i)=>{I.useEffect(()=>{const r=n?.current,o=i?.current;return r?.scrollBar?.addEventListener("wheel",e,{passive:!1}),r?.text?.addEventListener("wheel",e,{passive:!1}),o?.addEventListener("wheel",e,{passive:!1}),t&&r?.scrollBar?.addEventListener("mousedown",t,{passive:!1}),()=>{r?.scrollBar?.removeEventListener("wheel",e),r?.text?.removeEventListener("wheel",e),o?.removeEventListener("wheel",e),t&&r?.scrollBar?.removeEventListener("mousedown",t)}},[e,t,n,i])},AOe=(e,t)=>Math.max(Math.min(e,t),0),hhr=(e,t)=>{const n=e.domain(),i=n.at(0),r=n.at(-1),o=e.step();if(i!==void 0&&r!==void 0){const s=e(i),a=e(r);if(s!==void 0&&a!==void 0){const l=s-o/2,c=a+o/2;if(l<=-.001||c>t+.001){const u=c-l,d=Math.abs(l)/u;return{portionSeen:t/u,relativeStart:d}}}}return{portionSeen:1,relativeStart:0}},fhr=({canvasHeight:e,minNodeHeight:t,nodeNames:n})=>{const i=e/n.length,r=Math.max(t,i),o=n.length*r,[s,a]=I.useState(0),l=o-e,c=AOe(s,l),u=YEn().domain(n).range([r/2-c,o+r/2-c]),d=I.useCallback(m=>{m.preventDefault(),m.stopPropagation(),a(v=>AOe(v,l)+m.deltaY)},[a,l]),{portionSeen:h,relativeStart:f}=hhr(u,e)??1,p=I.useCallback(m=>{m.preventDefault();const v=m.clientY,y=w=>{const E=AOe(s,l),A=w.clientY-v;a(E+A/h)},b=()=>{window.removeEventListener("mousemove",y),window.removeEventListener("mouseup",b),document.body.style.cursor="default"};window.addEventListener("mousemove",y),window.addEventListener("mouseup",b),document.body.style.cursor="grabbing"},[l,s,h]),g=I.useRef({scrollBar:null,text:null});return rAn(d,p,g),{scrollSensorRef:g,nodeHeight:r,yScale:u,portionSeen:h,relativeStart:f}},phr=(e,t,n)=>{const i=e.properties?.temporal.values;return i!==void 0?i.flatMap(({key:r,values:o,history:s})=>{const a=s.timestamps.list.map(c=>new Date(c)),l=new Date(e.latestTime);return a.map((c,u)=>{const d=o.at(u)??"null";return{prop:r,node:{id:e.id,displayName:e.properties?.values.find(h=>h.key===n)?.value??e.id},time:c,end:t.includes(r)?a.at(u+1)??l:void 0,value:d}})}):[]},ghr=(e,t,n,i,r)=>{const o=new Map(e.map(g=>[g.id,g])),s=i?.flatMap(g=>g.events.map(m=>{const v=r?.explodedEdges?.[g.id]?.[m.layer];return{src:g.src,dst:g.dst,time:new Date(m.time),layer:m.layer,properties:m.properties,style:v??m.style}}))??[],a=e.flatMap(g=>phr(g,t,n)),l=[...s.map(g=>({node:g.src,time:g.time})),...s.map(g=>({node:g.dst,time:g.time})),...a],c=a.flatMap(g=>g!==void 0?[g.time]:[]),u=[...l.map(g=>g.time),...c],d=new Date(sye(u)),h=new Date(Tj(u)),f=[...new Set([...s.map(g=>g.src.id),...s.map(g=>g.dst.id),...a.map(g=>g.node.id)])].map((g,m)=>[g,m]);return{nodeOrder:new Map(f),originalNodes:o,edgeEvents:s,propEvents:a,domain:{start:d,end:h}}},mhr=(e,t,n)=>{if(e>n)return{eventOpacity:0,bucketOpacity:1};if(e<t)return{eventOpacity:1,bucketOpacity:0};{const i=(e-t)/(n-t);return{eventOpacity:1-i,bucketOpacity:i}}},e4t=(e,t)=>{const n=e.filter(i=>i<t);return n.length>0?Tj(n):void 0},t4t=(e,t)=>{const n=e.filter(i=>i>t);return n.length>0?Tj(n):void 0},vhr=(e,t,n,i)=>{const r=e.map(({time:h})=>h),o=t.map(({time:h})=>h),s=e4t(r,n),a=e4t(o,n),l=[s,a].flatMap(h=>h!==void 0?[h]:[]),c=t4t(r,i),u=t4t(o,i),d=[c,u].flatMap(h=>h!==void 0?[h]:[]);return{noInfo:!0,nearestStart:l.length>0?Tj(l):void 0,nearestEnd:d.length>0?sye(d):void 0}},yhr=(e,{domain:t,selectedNodes:n,hideEdges:i,rollingEdges:r,maxNumEvents:o,minNumEvents:s,filterSelected:a,pinnedNodes:l})=>{const{start:c,end:u}=t,d=i?[]:e.edgeEvents,h=d.filter(N=>N.time>=c&&N.time<=u),f=n.size===0||!a?h:h.filter(N=>n.has(N.src.id)||n.has(N.dst.id)),p=e.propEvents.filter(N=>(N.end??N.time)>=c&&N.time<=u),g=n.size===0||!a?p:p.filter(N=>n.has(N.node.id)),m=f.length+g.length,{eventOpacity:v,bucketOpacity:y}=mhr(m,s,o),b=v!==0?f:[],w=v!==0?g:[],E=r??[],A=n.size===0||!i?E:E.filter(N=>N.time>c&&N.end<u),T=b.length!==0||w.length!==0||E.length!==0?{noInfo:!1,nearestStart:void 0,nearestEnd:void 0}:vhr(d,e.propEvents,c,u),P=[...new Set([...b.map(N=>N.src.id),...b.map(N=>N.dst.id),...w.map(N=>N.node.id),...A.map(N=>N.node)])].sort((N,j)=>e.nodeOrder.get(N)-e.nodeOrder.get(j)).sort((N,j)=>N.localeCompare(j,void 0,{sensitivity:"base"})).sort((N,j)=>{const W=l.has(N),J=l.has(j);return W===J?0:W?-1:1}),F=new Map(P.map(N=>[N,e.originalNodes.get(N)?.displayName??N]));return{nodeNames:P,originalNodes:e.originalNodes,displayNames:F,edgeEvents:b,propEvents:w,buckets:A,eventOpacity:v,bucketOpacity:y,scope:T,pinnedNodes:l}},bhr=(e,t,n,i,r,o,s,a,l)=>{const{nameProperty:c}=Nl(),u=JSON.stringify(r),d=e.map(A=>A.id),h=I.useDeferredValue({nodes:e,styledEdges:a}),f=I.useMemo(()=>ghr(h.nodes,JSON.parse(u),c,h.styledEdges,l),[h.nodes,u,h.styledEdges,c,l]),[p,g]=I.useState(new Set([])),m=25,v=i??f.domain,y=r7(i??f.domain)/m,{data:b}=Ctr({maxIntervalSize:y,graphPath:s,nodeNames:d,domain:v}),w=I.useMemo(()=>yhr(f,{domain:i??f.domain,selectedNodes:t,hideEdges:n,maxNumEvents:200,minNumEvents:10,filterSelected:o,pinnedNodes:p,rollingEdges:b}),[f,i,t,n,o,p,b]),E=I.useCallback(()=>[...w.edgeEvents,...w.propEvents].map(({time:D})=>D),[w]);return{filteredData:w,getTimesOnScreen:E,dataDomain:f.domain,setPinnedNodes:g}};function _hr(e){return e}var whr=3,n4t=1e-6;function Chr(e){return"translate("+e+",0)"}function Shr(e){return t=>+e(t)}function xhr(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function Ehr(){return!this.__axis}function Ahr(e,t){var n=[],i=null,r=null,o=6,s=6,a=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=1,u="y",d=Chr;function h(f){var p=i??(t.ticks?t.ticks.apply(t,n):t.domain()),g=r??(t.tickFormat?t.tickFormat.apply(t,n):_hr),m=Math.max(o,0)+a,v=t.range(),y=+v[0]+l,b=+v[v.length-1]+l,w=(t.bandwidth?xhr:Shr)(t.copy(),l),E=f.selection?f.selection():f,A=E.selectAll(".domain").data([null]),D=E.selectAll(".tick").data(p,t).order(),T=D.exit(),M=D.enter().append("g").attr("class","tick"),P=D.select("line"),F=D.select("text");A=A.merge(A.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),D=D.merge(M),P=P.merge(M.append("line").attr("stroke","currentColor").attr(u+"2",c*o)),F=F.merge(M.append("text").attr("fill","currentColor").attr(u,c*m).attr("dy","0.71em")),f!==E&&(A=A.transition(f),D=D.transition(f),P=P.transition(f),F=F.transition(f),T=T.transition(f).attr("opacity",n4t).attr("transform",function(N){return isFinite(N=w(N))?d(N+l):this.getAttribute("transform")}),M.attr("opacity",n4t).attr("transform",function(N){var j=this.parentNode.__axis;return d((j&&isFinite(j=j(N))?j:w(N))+l)})),T.remove(),A.attr("d",s?"M"+y+","+c*s+"V"+l+"H"+b+"V"+c*s:"M"+y+","+l+"H"+b),D.attr("opacity",1).attr("transform",function(N){return d(w(N)+l)}),P.attr(u+"2",c*o),F.attr(u,c*m).text(g),E.filter(Ehr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor","middle"),E.each(function(){this.__axis=w})}return h.scale=function(f){return arguments.length?(t=f,h):t},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(f){return arguments.length?(n=f==null?[]:Array.from(f),h):n.slice()},h.tickValues=function(f){return arguments.length?(i=f==null?null:Array.from(f),h):i&&i.slice()},h.tickFormat=function(f){return arguments.length?(r=f,h):r},h.tickSize=function(f){return arguments.length?(o=s=+f,h):o},h.tickSizeInner=function(f){return arguments.length?(o=+f,h):o},h.tickSizeOuter=function(f){return arguments.length?(s=+f,h):s},h.tickPadding=function(f){return arguments.length?(a=+f,h):a},h.offset=function(f){return arguments.length?(l=+f,h):l},h}function i4t(e){return Ahr(whr,e)}var Gje="http://www.w3.org/1999/xhtml",r4t={svg:"http://www.w3.org/2000/svg",xhtml:Gje,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function oAn(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),r4t.hasOwnProperty(t)?{space:r4t[t],local:e}:e}function Dhr(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Gje&&t.documentElement.namespaceURI===Gje?t.createElement(e):t.createElementNS(n,e)}}function Thr(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function sAn(e){var t=oAn(e);return(t.local?Thr:Dhr)(t)}function khr(){}function aAn(e){return e==null?khr:function(){return this.querySelector(e)}}function Ihr(e){typeof e!="function"&&(e=aAn(e));for(var t=this._groups,n=t.length,i=new Array(n),r=0;r<n;++r)for(var o=t[r],s=o.length,a=i[r]=new Array(s),l,c,u=0;u<s;++u)(l=o[u])&&(c=e.call(l,l.__data__,u,o))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new uw(i,this._parents)}function Lhr(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Nhr(){return[]}function Phr(e){return e==null?Nhr:function(){return this.querySelectorAll(e)}}function Mhr(e){return function(){return Lhr(e.apply(this,arguments))}}function Ohr(e){typeof e=="function"?e=Mhr(e):e=Phr(e);for(var t=this._groups,n=t.length,i=[],r=[],o=0;o<n;++o)for(var s=t[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(i.push(e.call(l,l.__data__,c,s)),r.push(l));return new uw(i,r)}function Rhr(e){return function(){return this.matches(e)}}function lAn(e){return function(t){return t.matches(e)}}var Fhr=Array.prototype.find;function Bhr(e){return function(){return Fhr.call(this.children,e)}}function jhr(){return this.firstElementChild}function zhr(e){return this.select(e==null?jhr:Bhr(typeof e=="function"?e:lAn(e)))}var Vhr=Array.prototype.filter;function Hhr(){return Array.from(this.children)}function Whr(e){return function(){return Vhr.call(this.children,e)}}function Uhr(e){return this.selectAll(e==null?Hhr:Whr(typeof e=="function"?e:lAn(e)))}function $hr(e){typeof e!="function"&&(e=Rhr(e));for(var t=this._groups,n=t.length,i=new Array(n),r=0;r<n;++r)for(var o=t[r],s=o.length,a=i[r]=[],l,c=0;c<s;++c)(l=o[c])&&e.call(l,l.__data__,c,o)&&a.push(l);return new uw(i,this._parents)}function cAn(e){return new Array(e.length)}function qhr(){return new uw(this._enter||this._groups.map(cAn),this._parents)}function Lfe(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Lfe.prototype={constructor:Lfe,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Ghr(e){return function(){return e}}function Khr(e,t,n,i,r,o){for(var s=0,a,l=t.length,c=o.length;s<c;++s)(a=t[s])?(a.__data__=o[s],i[s]=a):n[s]=new Lfe(e,o[s]);for(;s<l;++s)(a=t[s])&&(r[s]=a)}function Yhr(e,t,n,i,r,o,s){var a,l,c=new Map,u=t.length,d=o.length,h=new Array(u),f;for(a=0;a<u;++a)(l=t[a])&&(h[a]=f=s.call(l,l.__data__,a,t)+"",c.has(f)?r[a]=l:c.set(f,l));for(a=0;a<d;++a)f=s.call(e,o[a],a,o)+"",(l=c.get(f))?(i[a]=l,l.__data__=o[a],c.delete(f)):n[a]=new Lfe(e,o[a]);for(a=0;a<u;++a)(l=t[a])&&c.get(h[a])===l&&(r[a]=l)}function Qhr(e){return e.__data__}function Zhr(e,t){if(!arguments.length)return Array.from(this,Qhr);var n=t?Yhr:Khr,i=this._parents,r=this._groups;typeof e!="function"&&(e=Ghr(e));for(var o=r.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var u=i[c],d=r[c],h=d.length,f=Xhr(e.call(u,u&&u.__data__,c,i)),p=f.length,g=a[c]=new Array(p),m=s[c]=new Array(p),v=l[c]=new Array(h);n(u,d,g,m,v,f,t);for(var y=0,b=0,w,E;y<p;++y)if(w=g[y]){for(y>=b&&(b=y+1);!(E=m[b])&&++b<p;);w._next=E||null}}return s=new uw(s,i),s._enter=a,s._exit=l,s}function Xhr(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Jhr(){return new uw(this._exit||this._groups.map(cAn),this._parents)}function efr(e,t,n){var i=this.enter(),r=this,o=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(r=t(r),r&&(r=r.selection())),n==null?o.remove():n(o),i&&r?i.merge(r).order():r}function tfr(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,r=n.length,o=i.length,s=Math.min(r,o),a=new Array(r),l=0;l<s;++l)for(var c=n[l],u=i[l],d=c.length,h=a[l]=new Array(d),f,p=0;p<d;++p)(f=c[p]||u[p])&&(h[p]=f);for(;l<r;++l)a[l]=n[l];return new uw(a,this._parents)}function nfr(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i=e[t],r=i.length-1,o=i[r],s;--r>=0;)(s=i[r])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function ifr(e){e||(e=rfr);function t(d,h){return d&&h?e(d.__data__,h.__data__):!d-!h}for(var n=this._groups,i=n.length,r=new Array(i),o=0;o<i;++o){for(var s=n[o],a=s.length,l=r[o]=new Array(a),c,u=0;u<a;++u)(c=s[u])&&(l[u]=c);l.sort(t)}return new uw(r,this._parents).order()}function rfr(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function ofr(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function sfr(){return Array.from(this)}function afr(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],r=0,o=i.length;r<o;++r){var s=i[r];if(s)return s}return null}function lfr(){let e=0;for(const t of this)++e;return e}function cfr(){return!this.node()}function ufr(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var r=t[n],o=0,s=r.length,a;o<s;++o)(a=r[o])&&e.call(a,a.__data__,o,r);return this}function dfr(e){return function(){this.removeAttribute(e)}}function hfr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ffr(e,t){return function(){this.setAttribute(e,t)}}function pfr(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function gfr(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function mfr(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function vfr(e,t){var n=oAn(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((t==null?n.local?hfr:dfr:typeof t=="function"?n.local?mfr:gfr:n.local?pfr:ffr)(n,t))}function uAn(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function yfr(e){return function(){this.style.removeProperty(e)}}function bfr(e,t,n){return function(){this.style.setProperty(e,t,n)}}function _fr(e,t,n){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function wfr(e,t,n){return arguments.length>1?this.each((t==null?yfr:typeof t=="function"?_fr:bfr)(e,t,n??"")):Cfr(this.node(),e)}function Cfr(e,t){return e.style.getPropertyValue(t)||uAn(e).getComputedStyle(e,null).getPropertyValue(t)}function Sfr(e){return function(){delete this[e]}}function xfr(e,t){return function(){this[e]=t}}function Efr(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Afr(e,t){return arguments.length>1?this.each((t==null?Sfr:typeof t=="function"?Efr:xfr)(e,t)):this.node()[e]}function dAn(e){return e.trim().split(/^|\s+/)}function IXe(e){return e.classList||new hAn(e)}function hAn(e){this._node=e,this._names=dAn(e.getAttribute("class")||"")}hAn.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function fAn(e,t){for(var n=IXe(e),i=-1,r=t.length;++i<r;)n.add(t[i])}function pAn(e,t){for(var n=IXe(e),i=-1,r=t.length;++i<r;)n.remove(t[i])}function Dfr(e){return function(){fAn(this,e)}}function Tfr(e){return function(){pAn(this,e)}}function kfr(e,t){return function(){(t.apply(this,arguments)?fAn:pAn)(this,e)}}function Ifr(e,t){var n=dAn(e+"");if(arguments.length<2){for(var i=IXe(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each((typeof t=="function"?kfr:t?Dfr:Tfr)(n,t))}function Lfr(){this.textContent=""}function Nfr(e){return function(){this.textContent=e}}function Pfr(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Mfr(e){return arguments.length?this.each(e==null?Lfr:(typeof e=="function"?Pfr:Nfr)(e)):this.node().textContent}function Ofr(){this.innerHTML=""}function Rfr(e){return function(){this.innerHTML=e}}function Ffr(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Bfr(e){return arguments.length?this.each(e==null?Ofr:(typeof e=="function"?Ffr:Rfr)(e)):this.node().innerHTML}function jfr(){this.nextSibling&&this.parentNode.appendChild(this)}function zfr(){return this.each(jfr)}function Vfr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Hfr(){return this.each(Vfr)}function Wfr(e){var t=typeof e=="function"?e:sAn(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Ufr(){return null}function $fr(e,t){var n=typeof e=="function"?e:sAn(e),i=t==null?Ufr:typeof t=="function"?t:aAn(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function qfr(){var e=this.parentNode;e&&e.removeChild(this)}function Gfr(){return this.each(qfr)}function Kfr(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Yfr(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Qfr(e){return this.select(e?Yfr:Kfr)}function Zfr(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Xfr(e){return function(t){e.call(this,t,this.__data__)}}function Jfr(e){return e.trim().split(/^|\s+/).map(function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}})}function epr(e){return function(){var t=this.__on;if(t){for(var n=0,i=-1,r=t.length,o;n<r;++n)o=t[n],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++i]=o;++i?t.length=i:delete this.__on}}}function tpr(e,t,n){return function(){var i=this.__on,r,o=Xfr(t);if(i){for(var s=0,a=i.length;s<a;++s)if((r=i[s]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=t;return}}this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}function npr(e,t,n){var i=Jfr(e+""),r,o=i.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,u;l<c;++l)for(r=0,u=a[l];r<o;++r)if((s=i[r]).type===u.type&&s.name===u.name)return u.value}return}for(a=t?tpr:epr,r=0;r<o;++r)this.each(a(i[r],t,n));return this}function gAn(e,t,n){var i=uAn(e),r=i.CustomEvent;typeof r=="function"?r=new r(t,n):(r=i.document.createEvent("Event"),n?(r.initEvent(t,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(t,!1,!1)),e.dispatchEvent(r)}function ipr(e,t){return function(){return gAn(this,e,t)}}function rpr(e,t){return function(){return gAn(this,e,t.apply(this,arguments))}}function opr(e,t){return this.each((typeof t=="function"?rpr:ipr)(e,t))}function*spr(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],r=0,o=i.length,s;r<o;++r)(s=i[r])&&(yield s)}var apr=[null];function uw(e,t){this._groups=e,this._parents=t}function lpr(){return this}uw.prototype={constructor:uw,select:Ihr,selectAll:Ohr,selectChild:zhr,selectChildren:Uhr,filter:$hr,data:Zhr,enter:qhr,exit:Jhr,join:efr,merge:tfr,selection:lpr,order:nfr,sort:ifr,call:ofr,nodes:sfr,node:afr,size:lfr,empty:cfr,each:ufr,attr:vfr,style:wfr,property:Afr,classed:Ifr,text:Mfr,html:Bfr,raise:zfr,lower:Hfr,append:Wfr,insert:$fr,remove:Gfr,clone:Qfr,datum:Zfr,on:npr,dispatch:opr,[Symbol.iterator]:spr};function o4t(e){return typeof e=="string"?new uw([[document.querySelector(e)]],[document.documentElement]):new uw([[e]],apr)}var DOe=[[A0,100],[A0,20],[A0,10],[A0,1],[hL,3],[hL,1],[JY,1],[qL,1],[xD,12],[xD,6],[xD,1],[yx,30],[yx,5],[yx,1],[O_,30],[O_,20],[O_,5],[O_,1],[fv,200],[fv,50],[fv,10],[fv,1]];function cpr(e){const t=e.end.getTime()-e.start.getTime(),n=new Date(2e3,1,1),i=new Date(n.getTime()+t);for(const[r,[o,s]]of DOe.entries()){if(r+1>=DOe.length)break;const[a,l]=DOe[r+1],c=o.every(s)?.range(n,i).length,u=a.every(l)?.range(n,i).length;if(c===void 0||c<=1||u===void 0||u<=0)continue;const d=o.every(s),h=a.every(l);if(!(d===null||h===null))return[{interval:d,formatter:s4t(o,s)},{interval:h,formatter:a4t(a,l)}]}return[{interval:fv.every(10)??fv,formatter:s4t(fv,1)},{interval:fv,formatter:a4t(fv,1)}]}function s4t(e,t){return n=>{switch(e){case fv:return gu(n,"PP hh:mm:ss:SSS a");case O_:return gu(n,"PP hh:mm:ss a");case yx:return gu(n,"PP hh:mm a");case xD:return gu(n,"PP ha");case qL:return gu(n,"PP");case JY:return gu(n,"'w/b' PPP");case hL:return t<3?gu(n,"MMM y"):gu(n,"qqq MMM y");case A0:return t<10?gu(n,"y"):gu(n,"y's'");default:return""}}}function a4t(e,t){return n=>{switch(e){case fv:return gu(n,"SSS'ms'");case O_:return gu(n,"ss's'");case yx:return gu(n,"mm'm'");case xD:return gu(n,"ha");case qL:return gu(n,"dd");case JY:return gu(n,"dd MMM");case hL:return t<3?gu(n,"MMM"):gu(n,"qqq");case A0:return t===1?gu(n,"yy"):t<10?gu(n,"y"):gu(n,"y's'");default:return""}}}var l4t=3,upr=({scale:e,upperXAxisHeight:t,lowerXAxisHeight:n,svgWidth:i,canvasWidth:r})=>{const o=I.useRef(null),s=I.useRef(null),a=t+n;return I.useEffect(()=>{if(s.current!==null&&o.current!==null){const[l,c]=e.domain(),d=(c.getTime()-l.getTime())/r*i,h=new Date(c.getTime()-d),f={start:h,end:c},p=iAn().range([0,i]).domain([h,c]),[g,m]=cpr(f),v=i4t(p).tickSize(t).tickPadding(-t+l4t).ticks(g.interval).tickFormat(g.formatter),y=o4t(o.current);y.call(v);const b=i4t(p).tickSize(n).tickPadding(-n+l4t).ticks(m.interval).tickFormat(m.formatter),w=o4t(s.current);w.call(b),y.selectAll(".tick text").style("text-anchor","start").style("fill","rgba(0, 0, 0, 0.5)").style("font-size","11px").style("font-weight","400").attr("transform","translate(2, 0)"),w.selectAll(".tick text").style("text-anchor","start").style("fill","rgba(0, 0, 0, 0.6)").style("font-size","11px").style("font-weight","500").attr("transform","translate(2, 0)"),y.selectAll(".tick line").style("stroke","rgba(0, 0, 0, 0.08)"),w.selectAll(".tick line").style("stroke","rgba(0, 0, 0, 0.12)"),y.select(".domain").attr("stroke-width",0),w.select(".domain").attr("stroke-width",0)}},[e,r,i,n,t]),S.jsxs(S.Fragment,{children:[S.jsx("g",{ref:o}),S.jsx("g",{transform:"translate(0,"+t+")",ref:s}),S.jsx("line",{x2:i,y1:a,y2:a,stroke:"rgba(0, 0, 0, 0.1)"})]})},dpr=({nodeNames:e,selectedNodes:t,scale:n,canvasHeight:i,scrollRef:r,originalNodes:o,pinnedNodes:s,setPinnedNodes:a,portionSeen:l,relativeStart:c})=>{const{onViewNodeTab:u}=gN(),{selectNodes:d,deselectNodes:h,deselectAll:f}=$d(),p=i*c,g=i*l,m=cl(),v=t.size===0?m.palette.grey[500]:m.palette.grey[400],y=15,b=9,w=(y-b)/2,[E,A]=I.useState(null),[D,T]=I.useState(0);return S.jsxs(S.Fragment,{children:[l<1&&S.jsxs(S.Fragment,{children:[S.jsx("rect",{width:y,height:Math.max(0,i),rx:4,style:{fill:"rgba(0, 0, 0, 0.04)"}}),S.jsx("rect",{rx:4,x:w,width:b,y:p,height:Math.max(0,g),style:{fill:"rgba(0, 0, 0, 0.15)"}})]}),S.jsx("rect",{ref:M=>{r.current.text=M},x:y,width:D,height:1e4,style:{fill:"blue",fillOpacity:0}}),S.jsx("rect",{ref:M=>{r.current.scrollBar=M},width:y,height:1e4,style:{fill:"red",fillOpacity:0}}),S.jsx("g",{ref:M=>{if(M){const P=M.getBBox();T(P.width)}},onWheel:M=>{const P=new WheelEvent("wheel",{...M,view:window});r.current?.text?.dispatchEvent(P)},children:Array.from(e).map(([M,P])=>{const N=P.length>15?P.slice(0,13):P,j=n(M)??0,W=o.get(M)?.style?.iconSrc,J=t.has(M);return S.jsxs("g",{transform:`translate(${GEn},${j})`,fill:"black",children:[S.jsxs("g",{onClick:ee=>{ee.stopPropagation(),ee.ctrlKey||ee.metaKey||ee.shiftKey?J?h([M]):(d([...t,M]),u("selected")):J?h([M]):(f(),d([M]),u("selected"))},style:{cursor:"pointer"},children:[S.jsx("circle",{r:7,style:{fill:J?o.get(M)?.style?.fill?.toString():v}}),typeof W=="string"&&S.jsx("image",{x:"-5",y:"-5",width:"10",height:"10",href:W})]}),S.jsx("text",{x:30,dominantBaseline:"middle",fontSize:12,fontWeight:J?500:400,fill:m.palette.text.secondary,textAnchor:"end",direction:"rtl",onMouseEnter:()=>{A(M)},onMouseLeave:()=>A(null),children:E===M||P===N?P:"..."+N},P),S.jsx("g",{style:{cursor:"pointer"},onClick:()=>{const ee=new Set(s);ee.has(M)?ee.delete(M):ee.add(M),a(ee)},children:S.jsx("image",{x:"10",y:"-6",dominantBaseline:"middle",width:"15",height:"15",href:s.has(M)?Orr:Mrr})})]},M)})})]})},hpr=(e,t)=>(e+t)/2,fpr=(e,t,n)=>e>n?n:e<t?t:e,ppr=({statusProps:e,temporalViewRef:t})=>{const{nodes:n,allEdges:i,selectedNodes:r,graphSourcePath:o,baseGraphPath:s,deselectAll:a,temporaryStyles:l,loading:c}=$d(),{onSetTemporalViewOpen:u}=gN(),[d,h]=I.useState(void 0),[f,p]=I.useState(!1),[g,m]=I.useState(void 0),[v,y]=I.useState(!1),{filteredData:b,dataDomain:w,getTimesOnScreen:E,setPinnedNodes:A}=bhr(n,r??new Set,f,g,e??[],v,o??s,i,l);b.edgeEvents.length===0&&d!==void 0&&h(void 0);const{svgRef:D,canvas:T,svg:M,xAxis:P,yAxis:F}=Nur(),{scrollSensorRef:N,yScale:j,portionSeen:W,relativeStart:J,nodeHeight:ee}=fhr({nodeNames:b.nodeNames,minNodeHeight:20,canvasHeight:T.height}),{xScale:Q,resetDomain:H,fitDomain:q,centerDomainAroundTime:le,updateDomainWithScroll:Y,updateDomainWithRelativeOffset:G}=uhr(w,T.width,g,m),[pe,U]=I.useState(),K=I.useRef(null),ie=I.useRef(null),{elX:ce}=Lrr(ie),de=I.useCallback(Se=>{Se.preventDefault(),Se.stopPropagation();const De=E();Y({delta:Se.deltaY,relativeMousePosition:ce/T.width,timesOnScreen:De,setTimeReference:U})},[Y,E,T.width,ce]);rAn(de,void 0,void 0,K);const{mouseDownHandler:oe}=dhr(T.width,G),me=I.useCallback(()=>{q(E())},[E,q]),Ce=I.useMemo(()=>{if(d?.type==="exploded-edge"){const Se=hpr(j(d.src)??0,j(d.dst)??0)+P.height,De=P.height+10,Me=M.height-10;return{x:Q(d.time)+F.width,y:fpr(Se,De,Me)}}else return d?.type==="prop"?{x:(Q(d.time)??0)+F.width,y:(j(d.node)??0)+P.height}:void 0},[d,Q,F.width,P.height,M.height,j]);return S.jsxs(tn,{ref:t,sx:Se=>({position:"relative",height:"100%",padding:Se.spacing(2,2.5,2.5,2.5),backgroundColor:"rgba(255, 255, 255, 0.25)",backdropFilter:"blur(32px) saturate(200%)",WebkitBackdropFilter:"blur(32px) saturate(200%)",borderRadius:"10px",border:"1px solid rgba(255, 255, 255, 0.2)",boxShadow:"0 4px 24px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.4)"}),id:"temporal-view",children:[S.jsx(Aur,{resetView:H,fitView:me,hideEdges:f,setHideEdges:p,filterSelected:v,setFilterSelected:y,onClose:()=>u(!1)}),(c.graph||c.subgraph)&&S.jsx(tn,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",pt:6,px:2.5,gap:1,zIndex:2},children:[1,2,3,4,5].map(Se=>S.jsxs(tn,{sx:{display:"flex",alignItems:"center",gap:1},children:[S.jsx(B9,{variant:"text",width:60,height:20,sx:{borderRadius:"4px",bgcolor:"rgba(0, 0, 0, 0.06)"}}),S.jsx(B9,{variant:"rounded",height:16,sx:{flex:1,borderRadius:"4px",bgcolor:"rgba(0, 0, 0, 0.04)"}})]},Se))}),S.jsxs(tn,{position:"relative",height:"100%",children:[d&&Ce&&S.jsx(kur,{x:Ce.x,y:Ce.y,type:d?.type,hoveredElement:d}),S.jsx(wr,{direction:"column",spacing:1,sx:Se=>({position:"absolute",padding:Se.spacing(1),zIndex:1,height:"100%",width:"100%",transition:"opacity 0.4s",justifyContent:"center",pointerEvents:"none"}),children:S.jsx(nur,{scope:b.scope,centerDomainAroundTime:le})}),S.jsxs("svg",{ref:D,width:"100%",height:"100%",style:{direction:"ltr"},onClick:()=>{a()},children:[S.jsx(upr,{scale:Q,canvasWidth:T.width,svgWidth:M.width,upperXAxisHeight:P.upperHeight,lowerXAxisHeight:P.lowerHeight}),S.jsxs("g",{ref:K,transform:"translate(0,"+P.height+")",clipPath:"url(#canvas-clippath)",children:[S.jsx("clipPath",{id:"canvas-clippath",children:S.jsx("rect",{width:M.width,height:Math.max(0,T.height)})}),S.jsxs("g",{onMouseDown:oe,transform:"translate("+F.width+",0)",children:[pe&&S.jsx("line",{x1:Q(pe),x2:Q(pe),y1:0,y2:T.height,style:{stroke:"red",strokeWidth:2,opacity:0}}),S.jsx("rect",{ref:ie,width:Math.max(0,T.width),height:Math.max(0,T.height),style:{fillOpacity:0}}),S.jsx(sur,{nodeNames:b.nodeNames,selectedNodes:r??new Set,yScale:j,canvasWidth:T.width}),S.jsx(rur,{buckets:b.buckets,originalNodes:b.originalNodes,opacity:b.bucketOpacity,nodeHeight:ee,xScale:Q,yScale:j}),S.jsx(our,{edges:b.edgeEvents,originalNodes:b.originalNodes,opacity:b.eventOpacity,hoveredElement:d,setHoveredElement:h,xScale:Q,yScale:j}),S.jsx(aur,{events:b.propEvents,originalNodes:b.originalNodes,opacity:b.eventOpacity,hoveredElement:d,setHoveredElement:h,yScale:j,xScale:Q})]}),S.jsx(dpr,{nodeNames:b.displayNames,scale:j,canvasHeight:T.height,scrollRef:N,selectedNodes:r??new Set,originalNodes:b.originalNodes,pinnedNodes:b.pinnedNodes,setPinnedNodes:A,portionSeen:W,relativeStart:J})]})]})]})]})},gpr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6z"})]}),mpr=I.forwardRef(gpr),vpr=mpr;function ypr({setOpen:e,isOpen:t,disabled:n,sx:i,ref:r}){return t?null:S.jsx(uo,{title:n?"No graph data":"Open timeline",placement:"top",arrow:!0,children:S.jsxs(wr,{component:"button",ref:r,direction:"row",alignItems:"center",spacing:2,onClick:n?void 0:()=>e(!0),sx:[{width:"fit-content",height:48,backgroundColor:"rgba(255, 255, 255, 0.65)",backdropFilter:"blur(20px) saturate(180%)",WebkitBackdropFilter:"blur(20px) saturate(180%)",borderRadius:"10px",border:"1px solid rgba(255, 255, 255, 0.4)",boxShadow:"0 2px 12px rgba(0,0,0,0.08)",paddingX:2,opacity:n?.5:1,cursor:n?"default":"pointer","&:hover":n?{}:{backgroundColor:"rgba(255, 255, 255, 0.8)"}},...Array.isArray(i)?i:[i]],children:[S.jsx(vpr,{style:{width:24,height:24,color:n?"rgba(0, 0, 0, 0.26)":"rgba(0, 0, 0, 0.54)"}}),S.jsx(Xn,{sx:{fontSize:"0.75rem",color:"text.disabled",letterSpacing:"0.5px"},children:"Event Trace"})]})})}function bpr({children:e,slots:t,onSaveGraph:n,temporalViewHeight:i,...r}){const[o,s]=I.useState(!1),{nodes:a}=$d(),{state:l,onSetTemporalViewOpen:c}=gN(),u=a.length>0,d=l.rhs.open,h=l.temporalView.open,[f,{width:p}]=k8(),[g,{height:m}]=k8(),[v,{height:y}]=k8(),b=k7e(t?.floatingActions?.children,S.jsx(srr,{floatingActionsRef:g,onSaveGraph:n,setSaveAsDialogOpen:s})),w=t?.rhsPanel!==void 0,E=I.useMemo(()=>w&&h?[3,4,1,3]:w&&!h?"bottom-left":!w&&h?[3,4,1,4]:[3,4,1,3],[h,w]),A=I.useMemo(()=>t?.bottomPanel===void 0?null:S.jsx(tn,{sx:{height:"100%",display:"flex",flexDirection:"column",justifyContent:h?"flex-start":"flex-end"},children:h?S.jsx(tn,{sx:{flex:1,paddingLeft:"71px"},children:t?.bottomPanel}):S.jsx(tn,{sx:{paddingLeft:"71px"},children:S.jsx(ypr,{ref:v,setOpen:c,isOpen:!1,disabled:!u})})}),[h,t?.bottomPanel,c,v,u]),D=I.useMemo(()=>w&&h?"middle":w&&!h?"bottom-middle":!w&&h?"middle-right":"bottom-right",[w,h]),T=d?"500px":"48px",M=d?500:48,P=h?"320px":"68px";return S.jsxs(uxn,{slots:t,temporalViewHeight:h?i:y,rhsPanelWidth:d?p:48,floatingActionsHeight:m,focusOnLoad:!0,...r,children:[e,S.jsx(Grr,{initialGridTemplateColumns:["1fr","1fr",T],initialGridTemplateRows:["1fr","auto",P],gridTemplateAreas:["floating-actions floating-actions top-right","middle middle middle-right","bottom-left bottom-middle bottom-right"],columnGap:16,rowGap:16,columnBounds:[{min:250},{},{min:M,max:d?void 0:48}],rowBounds:[{},{},{min:200}],sx:F=>({position:"absolute",top:0,left:0,width:"100%",height:"100%",padding:F.spacing(3),columnGap:F.spacing(2),pointerEvents:"none"}),items:[{specifier:w?"floating-actions":[1,2,1,4],sx:{alignSelf:"start",justifySelf:"end",pointerEvents:"auto"},element:S.jsxs(wr,{spacing:2,direction:"row",sx:{height:F=>F.spacing(4.5),alignItems:"center"},children:[S.jsx(tn,{sx:{flex:1,display:"flex",alignItems:"center"},children:b}),S.jsx(Prr,{open:o,setOpen:s,onSaveGraph:n}),t?.extraComponent]})},...w?[{specifier:[1,4,3,4],sx:{flex:1,pointerEvents:"auto"},element:S.jsx(tn,{ref:f,sx:{borderRadius:"10px",height:"100%",backgroundColor:"rgba(255, 255, 255, 0.25)",backdropFilter:"blur(32px) saturate(200%)",WebkitBackdropFilter:"blur(32px) saturate(200%)",border:"1px solid rgba(255, 255, 255, 0.2)",boxShadow:"0 4px 24px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.4)",transition:"width 0.2s ease-in-out"},children:t?.rhsPanel})}]:[],{specifier:D,sx:{justifySelf:"end",alignSelf:"end",pointerEvents:"auto"},element:S.jsx(tn,{children:S.jsx(yrr,{})})},{specifier:E,sx:{flex:1,alignSelf:"stretch",overflow:"hidden",pointerEvents:"auto"},element:A}]})]})}var _pr=on(S2n(),1),Wl=on(mN(),1);function wpr(){const{layout:e,setLayout:t}=$d(),[n,i]=I.useState(!1),[r,o]=I.useState(),s=I.useCallback(u=>{i(!0),o(u)},[]),a=I.useCallback(()=>{r!==void 0&&(i(!1),t(r))},[t,r]),l=r??e,c=n?r?.preset:e.preset;return S.jsxs(tn,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[S.jsx(tn,{sx:{flex:1,overflowY:"auto",pr:.5},children:S.jsxs(wr,{spacing:3,children:[S.jsxs(tn,{children:[S.jsx(wu,{children:"Layout Algorithm"}),S.jsx(aw,{size:"small",fullWidth:!0,value:l.type,onChange:u=>{const d=u.target.value;function h(f){return f in V9e}if(h(d)){const f=V9e[d];s(p=>({...f,preset:p?.preset??f.preset}))}},sx:{fontSize:"0.8rem","& .MuiSelect-select":{py:1}},children:hvn.map(([,u,d])=>S.jsx(bo,{value:d,children:u},d))})]}),S.jsxs(tn,{children:[S.jsx(wu,{children:"Pre-layout"}),S.jsxs(aw,{size:"small",fullWidth:!0,value:c?.type??"none",onChange:u=>{switch(u.target.value){case"none":{s(d=>({...d??e,preset:void 0}));break}case"concentric":{s(d=>({...d??e,preset:lvn}));break}case"dagre-lr":{s(d=>({...d??e,preset:uvn}));break}case"dagre-tb":{s(d=>({...d??e,preset:cvn}));break}}},sx:{fontSize:"0.8rem","& .MuiSelect-select":{py:1}},children:[S.jsx(bo,{value:"none",children:"None"}),S.jsx(bo,{value:"concentric",children:"Concentric Layout"}),S.jsx(bo,{value:"dagre-lr",children:"Hierarchical LR Layout"}),S.jsx(bo,{value:"dagre-tb",children:"Hierarchical TD Layout"})]})]}),S.jsx(c4t,{title:"Advanced Options",layout:l,setLayout:s}),c!==void 0&&S.jsx(c4t,{title:"Pre-layout Options",layout:c,setLayout:u=>{s({...e,preset:u})}})]})}),S.jsx(tn,{sx:{pt:2,flexShrink:0},children:S.jsx(na,{size:"small",variant:"contained",fullWidth:!0,onClick:a,disabled:!n,children:"Apply Layout"})})]})}function c4t({layout:e,setLayout:t,title:n}){return S.jsxs(S.Fragment,{children:[e.type==="force"&&S.jsx(Cpr,{title:n,options:e.options,setOptions:i=>{t({...e,options:i})}}),e.type==="fruchterman"&&S.jsx(Spr,{title:n,options:e.options,setOptions:i=>{t({...e,options:i})}}),e.type==="concentric"&&S.jsx(xpr,{title:n,options:e.options,setOptions:i=>{t({...e,options:i})}}),(e.type==="dagre-lr"||e.type==="dagre-tb")&&S.jsx(Epr,{title:n,options:e.options,setOptions:i=>{t({...e,options:i})}}),e.type==="radial"&&S.jsx(Apr,{title:n,options:e.options,setOptions:i=>{t({...e,options:i})}})]})}function Cpr({title:e,options:t,setOptions:n}){return S.jsxs(hZ,{title:e,children:[S.jsx(hh,{label:"Collision Radius",tooltip:"Nodes start repelling each other if they are closer than this distance",sliderProps:{min:0,max:10},value:t.collide&&typeof t.collide.radius=="number"?t.collide.radius:0,onChange:i=>{Array.isArray(i)||n((0,Wl.default)(t,{collide:{radius:i}}))}}),S.jsx(hh,{label:"Collision Strength",tooltip:"The strength with which the nodes repel each other",value:t.collide&&t.collide.strength!==void 0?t.collide.strength:0,onChange:i=>{Array.isArray(i)||n((0,Wl.default)(t,{collide:{strength:i}}))},sliderProps:{min:0,max:10}}),S.jsx(hh,{label:"Link Distance",tooltip:"The ideal edge length",sliderProps:{min:0,max:100},value:t.link&&typeof t.link.distance=="number"?t.link.distance:0,onChange:i=>{Array.isArray(i)||n((0,Wl.default)(t,{link:{distance:i}}))}}),S.jsx(hh,{label:"Link Strength",tooltip:"The strength of the link force. Higher means closer to the ideal distance.",sliderProps:{min:0,max:1,step:.1},value:t.link&&typeof t.link.strength=="number"?t.link.strength:0,onChange:i=>{Array.isArray(i)||n((0,Wl.default)(t,{link:{strength:i}}))}}),S.jsx(hh,{label:"Many-Body Force",tooltip:'A negative force represents "repulsion" between nodes, positive force represents "gravity"',sliderProps:{min:-100,max:100,track:!1},value:t.manyBody&&typeof t.manyBody.strength=="number"?t.manyBody.strength:0,onChange:i=>{Array.isArray(i)||n((0,Wl.default)(t,{manyBody:{strength:i}}))}}),S.jsx(hh,{label:"Many-Body Range",tooltip:"The minimum/maximum distance between many-body force applies",sliderProps:{min:0,max:400},value:t.manyBody!==!1&&t.manyBody!==void 0?[t.manyBody.distanceMin??0,t.manyBody.distanceMax??400]:[0,500],onChange:i=>{!Array.isArray(i)||i.length<2||n((0,Wl.default)(t,{manyBody:{distanceMin:i[0],distanceMax:i[1]}}))}}),S.jsx(hh,{label:"Center Force",tooltip:"Force pulls nodes towards 0,0",sliderProps:{min:0,max:1,step:.01},value:t.x&&typeof t.x.strength=="number"?t.x.strength:0,onChange:i=>{Array.isArray(i)||n((0,Wl.default)(t,{x:{strength:i,x:0},y:{strength:i,y:0}}))}}),S.jsx(hh,{label:"Radial force strength",tooltip:"Strength of the radial force",sliderProps:{min:0,max:1,step:.01},value:t.radial&&typeof t.radial.strength=="number"?t.radial.strength:0,onChange:i=>{Array.isArray(i)||n((0,Wl.default)(t,{radial:{strength:i}}))}}),S.jsx(hh,{label:"Radial force radius",tooltip:"Radius of the radial force",sliderProps:{min:0,max:200},value:t.radial&&typeof t.radial.radius=="number"?t.radial.radius:0,onChange:i=>{Array.isArray(i)||n((0,Wl.default)(t,{radial:{radius:i}}))}})]})}function Spr({title:e,options:t,setOptions:n}){return S.jsxs(hZ,{title:e,children:[S.jsx(hh,{label:"Gravity",sliderProps:{min:0,max:50},value:t.gravity!==void 0?t.gravity:0,onChange:i=>{Array.isArray(i)||n((0,Wl.default)(t,{gravity:i}))}}),S.jsx(hh,{label:"Speed",sliderProps:{min:0,max:50},value:t.speed!==void 0?t.speed:0,onChange:i=>{Array.isArray(i)||n((0,Wl.default)(t,{speed:i}))}})]})}function xpr({title:e,options:t,setOptions:n}){return S.jsxs(hZ,{title:e,children:[S.jsx(PR,{label:"Clockwise",checked:t.clockwise??!1,onChange:i=>n((0,Wl.default)(t,{clockwise:i}))}),S.jsx(PR,{label:"Equidistant rings",checked:t.equidistant??!1,onChange:i=>n((0,Wl.default)(t,{equidistant:i}))}),S.jsx(hh,{label:"Node size (diameter)",tooltip:"Used for collision detection",sliderProps:{min:0,max:200},value:typeof t.nodeSize=="number"?t.nodeSize:0,onChange:i=>{Array.isArray(i)||n((0,Wl.default)(t,{nodeSize:i}))}}),S.jsx(hh,{label:"Node spacing",tooltip:"Minimum spacing between rings, used to adjust the radius",sliderProps:{min:0,max:200},value:typeof t.nodeSpacing=="number"?t.nodeSpacing:0,onChange:i=>{Array.isArray(i)||n((0,Wl.default)(t,{nodeSpacing:i}))}}),S.jsx(PR,{label:"Prevent overlap",checked:t.preventOverlap??!1,onChange:i=>n((0,Wl.default)(t,{preventOverlap:i}))}),S.jsx(hh,{label:"Start Angle (pi radians)",tooltip:"The angle (in radians) to start laying out nodes",sliderProps:{min:0,max:2,step:.01},value:t.startAngle!==void 0?t.startAngle/Math.PI:0,onChange:i=>{Array.isArray(i)||n((0,Wl.default)(t,{startAngle:i*Math.PI}))}}),S.jsx(hh,{label:"Sweep",tooltip:"The angle difference between the first and last node in the same layer. If undefined, set to 2 Math.PI (1 - 1 / level.nodes )",sliderProps:{min:0,max:2,step:.01},value:t.sweep!==void 0?t.sweep/Math.PI:0,onChange:i=>{Array.isArray(i)||n((0,Wl.default)(t,{sweep:i*Math.PI}))}})]})}function Epr({title:e,options:t,setOptions:n}){return S.jsxs(hZ,{title:e,children:[S.jsx(PR,{label:"Invert direction",checked:t.rankdir==="BT"||t.rankdir==="RL",onChange:i=>{t.rankdir==="TB"||t.rankdir==="BT"?n((0,Wl.default)(t,{rankdir:i?"BT":"TB"})):n((0,Wl.default)(t,{rankdir:i?"RL":"LR"}))}}),S.jsxs(O9,{children:[S.jsx(KG,{id:"select-label-dagre-alignment",children:"Alignment"}),S.jsxs(aw,{label:"Alignment",labelId:"select-label-dagre-alignment",value:t.align,onChange:i=>{n((0,Wl.default)(t,{align:i.target.value}))},children:[S.jsx(bo,{value:"UL",children:"Upper Left"}),S.jsx(bo,{value:"UR",children:"Upper Right"}),S.jsx(bo,{value:"DL",children:"Down Left"}),S.jsx(bo,{value:"DR",children:"Down Right"})]})]}),S.jsx(hh,{label:"Node separation (px)",tooltip:"For TB or BT, it's the horizontal spacing; for LR or RL, it's the vertical spacing",sliderProps:{min:0,max:200},value:t.nodesep!==void 0?t.nodesep:0,onChange:i=>{Array.isArray(i)||n((0,Wl.default)(t,{nodesep:i}))}}),S.jsx(hh,{label:"Rank separation (px)",tooltip:"For TB or BT, it's the vertical spacing between ranks; for LR or RL, it's the horizontal spacing between ranks",sliderProps:{min:0,max:200},value:t.ranksep!==void 0?t.ranksep:0,onChange:i=>{Array.isArray(i)||n((0,Wl.default)(t,{ranksep:i}))}}),S.jsxs(O9,{children:[S.jsx(KG,{id:"select-label-dagre-ranking-algorithm",children:"Ranking algorithm"}),S.jsxs(aw,{label:"Ranking algorithm",labelId:"select-label-dagre-ranking-algorithm",value:t.ranker??"network-simplex",onChange:i=>{n((0,Wl.default)(t,{ranker:i.target.value}))},children:[S.jsx(bo,{value:"network-simplex",children:"network-simplex"}),S.jsx(bo,{value:"tight-tree",children:"tight-tree"}),S.jsx(bo,{value:"longest-path",children:"longest-path"})]})]}),S.jsx(hh,{label:"Node size",tooltip:"Size of node",sliderProps:{min:0,max:200},value:typeof t.nodeSize=="number"?t.nodeSize:0,onChange:i=>{Array.isArray(i)||n((0,Wl.default)(t,{nodeSize:i}))}}),S.jsx(PR,{label:"Control points",checked:t.controlPoints??!1,onChange:i=>n((0,Wl.default)(t,{controlPoints:i}))})]})}function Apr({title:e,options:t,setOptions:n}){return S.jsxs(hZ,{title:e,children:[S.jsx(hh,{label:"Node size (diameter)",sliderProps:{min:0,max:200},value:typeof t.nodeSize=="number"?t.nodeSize:0,onChange:i=>{Array.isArray(i)||n((0,Wl.default)(t,{nodeSize:i}))}}),S.jsx(hh,{label:"Node spacing",tooltip:"Minimum node spacing (effective when preventing overlap)",sliderProps:{min:0,max:200},value:typeof t.nodeSpacing=="number"?t.nodeSpacing:0,onChange:i=>{Array.isArray(i)||n((0,Wl.default)(t,{nodeSpacing:i}))}}),S.jsx(hh,{label:"Radius",tooltip:"Radius per circle",sliderProps:{min:0,max:200},value:typeof t.unitRadius=="number"?t.unitRadius:0,onChange:i=>{Array.isArray(i)||n((0,Wl.default)(t,{unitRadius:i}))}}),S.jsx(PR,{label:"Prevent overlap",checked:t.preventOverlap??!1,onChange:i=>n((0,Wl.default)(t,{preventOverlap:i}))}),S.jsx(PR,{label:"Strict radial",checked:t.strictRadial??!1,onChange:i=>n((0,Wl.default)(t,{strictRadial:i}))})]})}function hZ({children:e,title:t}){return S.jsxs(tn,{children:[S.jsx(wu,{children:t}),S.jsx(tn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"8px",border:"1px solid rgba(255, 255, 255, 0.6)",p:2,display:"flex",flexDirection:"column",gap:2.5},children:e})]})}function PR({label:e,checked:t,onChange:n}){return S.jsxs(tn,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[S.jsx(Xn,{component:"label",htmlFor:`lc-checkbox-${e}`,sx:{fontSize:"0.75rem",color:"text.secondary"},children:e}),S.jsx(YQ,{id:`lc-checkbox-${e}`,size:"small",checked:t,onChange:(i,r)=>n(r),sx:{p:0,m:0}})]})}function hh({label:e,tooltip:t,value:n,onChange:i,sliderProps:r}){const o=Array.isArray(n)?n.join("-"):typeof n=="number"?n.toFixed(2):n,s=`slider-label-${e.replaceAll(" ","-")}`;return S.jsxs(tn,{children:[S.jsxs(tn,{sx:{display:"flex",justifyContent:"space-between",alignItems:"baseline",mb:.5},children:[S.jsx(Xn,{id:s,sx:{fontSize:"0.75rem",color:"text.secondary"},children:e}),S.jsx(Xn,{sx:{fontSize:"0.75rem",color:"text.secondary",fontWeight:500},children:o})]}),S.jsx(Ebn,{size:"small",min:0,max:10,valueLabelDisplay:"auto","aria-labelledby":s,value:n,sx:{width:"calc(100% - 12px)",margin:"0 auto",display:"block"},slotProps:{root:{"aria-label":`${e} Slider Container`}},slots:t!==void 0?{valueLabel:function({children:l}){return S.jsx(uo,{title:t,children:l})}}:{},onChange:(a,l)=>{i(l)},...r})]})}var Dpr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59z"})]}),Tpr=I.forwardRef(Dpr),kpr=Tpr,Ipr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"})]}),Lpr=I.forwardRef(Ipr),mye=Lpr,Npr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83l3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75z"})]}),Ppr=I.forwardRef(Npr),Mpr=Ppr;function Opr({children:e}){const[{graphSource:t},n]=iy(js.graph),[i,r]=I.useState(!1),[o,s]=I.useState(void 0),{success:a,message:l}=Ibn(o),{mutateAsync:c}=Ttr(),u=()=>{s(t),r(!0)},d=()=>{s(void 0),r(!1)},h=async()=>{o!==void 0&&t!==void 0&&o.fullPath!==t.fullPath&&a&&(await c({graphPath:t,newGraphPath:o}),n({graphSource:o,initialNodes:[]})),s(void 0),r(!1)},f=async p=>{p.key==="Enter"?await h():p.key==="Escape"&&d()};return S.jsxs(S.Fragment,{children:[S.jsxs(tn,{sx:{mb:2},children:[S.jsx(wu,{children:"Discovery"}),S.jsx(tn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"8px",border:"1px solid",borderColor:i?a?"primary.main":"error.main":"rgba(0, 0, 0, 0.06)",p:1.5,transition:"border-color 0.15s ease"},children:i?S.jsxs(wr,{spacing:.5,children:[S.jsxs(wr,{direction:"row",alignItems:"center",spacing:1,children:[S.jsx(zQ,{autoFocus:!0,fullWidth:!0,value:o?.fullPath??"",onChange:p=>s(hb.fromFullPath(p.target.value)),onKeyDown:f,sx:{fontSize:"0.8rem",fontWeight:500,color:"text.primary","& input":{padding:0}}}),S.jsx(Qr,{size:"small",onClick:h,disabled:!a,sx:{padding:"4px",color:"success.main","&:hover":{backgroundColor:"rgba(46, 125, 50, 0.08)"}},children:S.jsx(kpr,{style:{fontSize:16}})}),S.jsx(Qr,{size:"small",onClick:d,sx:{padding:"4px",color:"text.secondary","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},children:S.jsx(mye,{style:{fontSize:16}})})]}),!a&&l&&S.jsx(Xn,{sx:{fontSize:"0.75rem",color:"error.main"},children:l})]}):S.jsxs(wr,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{"&:hover .edit-button":{opacity:1}},children:[S.jsx(Xn,{sx:{fontSize:"0.8rem",fontWeight:500,color:"text.primary",wordBreak:"break-word"},children:t?.fullPath??"Untitled"}),S.jsx(uo,{title:"Rename graph",children:S.jsx(Qr,{className:"edit-button",size:"small",onClick:u,sx:{padding:"4px",opacity:.5,color:"text.secondary",transition:"opacity 0.15s ease","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)",opacity:1}},children:S.jsx(Mpr,{style:{fontSize:14}})})})]})})]}),e]})}var u4t=["overview","selected","layout","styling"];function Rpr({slots:e,sx:t,...n}){const{tab:i,onViewTab:r,onSetDrawerOpen:o}=gN(),{state:s}=gN(),a=s.rhs.open,l=()=>{o(!1)},c=()=>{o(!0)},u=h=>{u4t.includes(h)&&r(h)},d=h=>h.charAt(0).toUpperCase()+h.slice(1);return i?a?S.jsxs(wr,{sx:{padding:h=>h.spacing(0,3,3,3),height:"100%",overflow:"hidden"},...n,children:[S.jsx(kj,{tabs:u4t,selectedTab:i,setSelectedTab:u,slots:{rhs:S.jsx(tn,{sx:{display:"flex",alignItems:"center"},children:S.jsx(uo,{title:"Collapse panel",placement:"left",arrow:!0,children:S.jsx(Qr,{onClick:l,size:"small",sx:{color:"text.secondary",transition:"transform 0.2s ease-in-out","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)",transform:"translateX(2px)"}},children:S.jsx(jF,{style:{transform:"rotate(180deg)"}})})})})}}),S.jsxs(eZe,{sx:h=>({marginTop:h.spacing(3),overflow:"hidden",flex:1,display:"flex",flexDirection:"column",minHeight:0,"&.MuiContainer-root":{padding:0,paddingRight:h.spacing(1)}}),children:[i==="overview"&&S.jsx(Opr,{children:e?.overview}),i==="selected"&&e?.detailsTable,i==="layout"&&S.jsx(wpr,{}),i==="styling"&&e?.graphSettings]})]}):S.jsx(Txn,{label:d(i),onExpand:c,sx:t}):null}var T6=255,JI=100,gU=e=>{var{r:t,g:n,b:i,a:r}=e,o=Math.max(t,n,i),s=o-Math.min(t,n,i),a=s?o===t?(n-i)/s:o===n?2+(i-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:o?s/o*JI:0,v:o/T6*JI,a:r}},mAn=e=>{var{h:t,s:n,l:i,a:r}=vAn(e);return"hsla("+t+", "+n+"%, "+i+"%, "+r+")"},vAn=e=>{var{h:t,s:n,v:i,a:r}=e,o=(200-n)*i/JI;return{h:t,s:o>0&&o<200?n*i/JI/(o<=JI?o:200-o)*JI:0,l:o/2,a:r}},yAn=e=>{var{r:t,g:n,b:i}=e,r=t<<16|n<<8|i;return"#"+(o=>new Array(7-o.length).join("0")+o)(r.toString(16))},Fpr=e=>{var{r:t,g:n,b:i,a:r}=e,o=typeof r=="number"&&(r*255|256).toString(16).slice(1);return""+yAn({r:t,g:n,b:i})+(o||"")},pK=e=>gU(Bpr(e)),Bpr=e=>{var t=e.replace("#","");/^#?/.test(e)&&t.length===3&&(e="#"+t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2));var n=new RegExp("[A-Za-z0-9]{2}","g"),[i,r,o=0,s]=e.match(n).map(a=>parseInt(a,16));return{r:i,g:r,b:o,a:(s??255)/T6}},vye=e=>{var{h:t,s:n,v:i,a:r}=e,o=t/60,s=n/JI,a=i/JI,l=Math.floor(o)%6,c=o-Math.floor(o),u=T6*a*(1-s),d=T6*a*(1-s*c),h=T6*a*(1-s*(1-c));a*=T6;var f={};switch(l){case 0:f.r=a,f.g=h,f.b=u;break;case 1:f.r=d,f.g=a,f.b=u;break;case 2:f.r=u,f.g=a,f.b=h;break;case 3:f.r=u,f.g=d,f.b=a;break;case 4:f.r=h,f.g=u,f.b=a;break;case 5:f.r=a,f.g=u,f.b=d;break}return f.r=Math.round(f.r),f.g=Math.round(f.g),f.b=Math.round(f.b),lt({},f,{a:r})},jpr=e=>{var{r:t,g:n,b:i,a:r}=vye(e);return"rgba("+t+", "+n+", "+i+", "+r+")"},zpr=e=>{var{r:t,g:n,b:i}=e;return{r:t,g:n,b:i}},Vpr=e=>{var{h:t,s:n,l:i}=e;return{h:t,s:n,l:i}},Kje=e=>yAn(vye(e)),Hpr=e=>{var{h:t,s:n,v:i}=e;return{h:t,s:n,v:i}},Wpr=e=>{var{r:t,g:n,b:i}=e,r=function(u){return u<=.04045?u/12.92:Math.pow((u+.055)/1.055,2.4)},o=r(t/255),s=r(n/255),a=r(i/255),l={};return l.x=o*.4124+s*.3576+a*.1805,l.y=o*.2126+s*.7152+a*.0722,l.bri=o*.0193+s*.1192+a*.9505,l},k6=e=>{var t,n,i,r,o,s,a,l,c;return typeof e=="string"&&Yje(e)?(s=pK(e),l=e):typeof e!="string"&&(s=e),s&&(i=Hpr(s),o=vAn(s),r=vye(s),c=Fpr(r),l=Kje(s),n=Vpr(o),t=zpr(r),a=Wpr(t)),{rgb:t,hsl:n,hsv:i,rgba:r,hsla:o,hsva:s,hex:l,hexa:c,xy:a}},Yje=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e);function d4t(e){var t=I.useRef(e);return I.useEffect(()=>{t.current=e}),I.useCallback((n,i)=>t.current&&t.current(n,i),[])}var sq=e=>"touches"in e,h4t=e=>{!sq(e)&&e.preventDefault&&e.preventDefault()},f4t=function(t,n,i){return n===void 0&&(n=0),i===void 0&&(i=1),t>i?i:t<n?n:t},p4t=(e,t)=>{var n=e.getBoundingClientRect(),i=sq(t)?t.touches[0]:t;return{left:f4t((i.pageX-(n.left+window.pageXOffset))/n.width),top:f4t((i.pageY-(n.top+window.pageYOffset))/n.height),width:n.width,height:n.height,x:i.pageX-(n.left+window.pageXOffset),y:i.pageY-(n.top+window.pageYOffset)}},Upr=["prefixCls","className","onMove","onDown"],bAn=Ri.forwardRef((e,t)=>{var{prefixCls:n="w-color-interactive",className:i,onMove:r,onDown:o}=e,s=zr(e,Upr),a=I.useRef(null),l=I.useRef(!1),[c,u]=I.useState(!1),d=d4t(r),h=d4t(o),f=y=>l.current&&!sq(y)?!1:(l.current=sq(y),!0),p=I.useCallback(y=>{if(h4t(y),!!a.current){var b=sq(y)?y.touches.length>0:y.buttons>0;if(!b){u(!1);return}d?.(p4t(a.current,y),y)}},[d]),g=I.useCallback(()=>u(!1),[]),m=I.useCallback(y=>{y?(window.addEventListener(l.current?"touchmove":"mousemove",p),window.addEventListener(l.current?"touchend":"mouseup",g)):(window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",g),window.removeEventListener("touchmove",p),window.removeEventListener("touchend",g))},[p,g]);I.useEffect(()=>(m(c),()=>{m(!1)}),[c,p,g,m]);var v=I.useCallback(y=>{var b=document.activeElement;b?.blur(),h4t(y.nativeEvent),f(y.nativeEvent)&&a.current&&(h?.(p4t(a.current,y.nativeEvent),y.nativeEvent),u(!0))},[h]);return S.jsx("div",lt({},s,{className:[n,i||""].filter(Boolean).join(" "),style:lt({},s.style,{touchAction:"none"}),ref:a,tabIndex:0,onMouseDown:v,onTouchStart:v}))});bAn.displayName="Interactive";var _An=bAn,$pr=["className","prefixCls","left","top","style","fillProps"],qpr=e=>{var{className:t,prefixCls:n,left:i,top:r,style:o,fillProps:s}=e,a=zr(e,$pr),l=lt({},o,{position:"absolute",left:i,top:r}),c=lt({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},s?.style,{transform:i?"translate(-9px, -1px)":"translate(-1px, -9px)"});return S.jsx("div",lt({className:n+"-pointer "+(t||""),style:l},a,{children:S.jsx("div",lt({className:n+"-fill"},s,{style:c}))}))},Gpr=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","style","onChange","pointer"],Kpr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==",wAn=Ri.forwardRef((e,t)=>{var{prefixCls:n="w-color-alpha",className:i,hsva:r,background:o,bgProps:s={},innerProps:a={},pointerProps:l={},radius:c=0,width:u,height:d=16,direction:h="horizontal",style:f,onChange:p,pointer:g}=e,m=zr(e,Gpr),v=M=>{p&&p(lt({},r,{a:h==="horizontal"?M.left:M.top}),M)},y=mAn(Object.assign({},r,{a:1})),b="linear-gradient(to "+(h==="horizontal"?"right":"bottom")+", rgba(244, 67, 54, 0) 0%, "+y+" 100%)",w={};h==="horizontal"?w.left=r.a*100+"%":w.top=r.a*100+"%";var E=lt({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:c,background:"url("+Kpr+") left center",backgroundColor:"var(--alpha-background-color)"},{width:u,height:d},f,{position:"relative"}),A=I.useCallback(M=>{var P=.01,F=r.a,N=F;switch(M.key){case"ArrowLeft":h==="horizontal"&&(N=Math.max(0,F-P),M.preventDefault());break;case"ArrowRight":h==="horizontal"&&(N=Math.min(1,F+P),M.preventDefault());break;case"ArrowUp":h==="vertical"&&(N=Math.max(0,F-P),M.preventDefault());break;case"ArrowDown":h==="vertical"&&(N=Math.min(1,F+P),M.preventDefault());break;default:return}if(N!==F){var j={left:h==="horizontal"?N:r.a,top:h==="vertical"?N:r.a,width:0,height:0,x:0,y:0};p&&p(lt({},r,{a:N}),j)}},[r,h,p]),D=I.useCallback(M=>{M.target.focus()},[]),T=g&&typeof g=="function"?g(lt({prefixCls:n},l,w)):S.jsx(qpr,lt({},l,{prefixCls:n},w));return S.jsxs("div",lt({},m,{className:[n,n+"-"+h,i||""].filter(Boolean).join(" "),style:E,ref:t,children:[S.jsx("div",lt({},s,{style:lt({inset:0,position:"absolute",background:o||b,borderRadius:c},s.style)})),S.jsx(_An,lt({},a,{style:lt({},a.style,{inset:0,zIndex:1,position:"absolute",outline:"none"}),onMove:v,onDown:v,onClick:D,onKeyDown:A,children:T}))]}))});wAn.displayName="Alpha";var Qje=wAn,Ypr=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur","renderInput"],Qpr=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e),Zpr=e=>Number(String(e).replace(/%/g,"")),CAn=Ri.forwardRef((e,t)=>{var{prefixCls:n="w-color-editable-input",placement:i="bottom",label:r,value:o,className:s,style:a,labelStyle:l,inputStyle:c,onChange:u,onBlur:d,renderInput:h}=e,f=zr(e,Ypr),[p,g]=I.useState(o),m=I.useRef(!1);I.useEffect(()=>{e.value!==p&&(m.current||g(e.value))},[e.value]);function v(D,T){var M=(T||D.target.value).trim().replace(/^#/,"");Qpr(M)&&u&&u(D,M);var P=Zpr(M);isNaN(P)||u&&u(D,P),g(M)}function y(D){m.current=!1,g(e.value),d&&d(D)}var b={};i==="bottom"&&(b.flexDirection="column"),i==="top"&&(b.flexDirection="column-reverse"),i==="left"&&(b.flexDirection="row-reverse");var w=lt({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},b,a),E=lt({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},c),A=lt({value:p,onChange:v,onBlur:y,autoComplete:"off",onFocus:()=>m.current=!0},f,{style:E,onFocusCapture:D=>{var T=D.target;T.setSelectionRange(T.value.length,T.value.length)}});return S.jsxs("div",{className:[n,s||""].filter(Boolean).join(" "),style:w,children:[h?h(A,t):S.jsx("input",lt({ref:t},A)),r&&S.jsx("span",{style:lt({color:"var(--editable-input-label-color)",textTransform:"capitalize"},l),children:r})]})});CAn.displayName="EditableInput";var mU=CAn,Xpr=["prefixCls","className","color","colors","style","rectProps","onChange","addonAfter","addonBefore","rectRender"],SAn=Ri.forwardRef((e,t)=>{var{prefixCls:n="w-color-swatch",className:i,color:r,colors:o=[],style:s,rectProps:a={},onChange:l,addonAfter:c,addonBefore:u,rectRender:d}=e,h=zr(e,Xpr),f=lt({"--swatch-background-color":"rgb(144, 19, 254)",background:"var(--swatch-background-color)",height:15,width:15,marginRight:5,marginBottom:5,cursor:"pointer",position:"relative",outline:"none",borderRadius:2},a.style),p=(g,m)=>{l&&l(pK(g),k6(pK(g)),m)};return S.jsxs("div",lt({ref:t},h,{className:[n,i||""].filter(Boolean).join(" "),style:lt({display:"flex",flexWrap:"wrap",position:"relative"},s),children:[u&&Ri.isValidElement(u)&&u,o&&Array.isArray(o)&&o.map((g,m)=>{var v="",y="";typeof g=="string"&&(v=g,y=g),typeof g=="object"&&g.color&&(v=g.title||g.color,y=g.color);var b=r&&r.toLocaleLowerCase()===y.toLocaleLowerCase(),w=d&&d({title:v,color:y,checked:!!b,style:lt({},f,{background:y}),onClick:A=>p(y,A)});if(w)return S.jsx(I.Fragment,{children:w},m);var E=a.children&&Ri.isValidElement(a.children)?Ri.cloneElement(a.children,{color:y,checked:b}):null;return S.jsx("div",lt({tabIndex:0,title:v,onClick:A=>p(y,A)},a,{children:E,style:lt({},f,{background:y})}),m)}),c&&Ri.isValidElement(c)&&c]}))});SAn.displayName="Swatch";var Jpr=SAn,egr=e=>{var{className:t,color:n,left:i,top:r,prefixCls:o}=e,s={position:"absolute",top:r,left:i},a={"--saturation-pointer-box-shadow":"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",width:6,height:6,transform:"translate(-3px, -3px)",boxShadow:"var(--saturation-pointer-box-shadow)",borderRadius:"50%",backgroundColor:n};return I.useMemo(()=>S.jsx("div",{className:o+"-pointer "+(t||""),style:s,children:S.jsx("div",{className:o+"-fill",style:a})}),[r,i,n,t,o])},tgr=["prefixCls","radius","pointer","className","hue","style","hsva","onChange"],xAn=Ri.forwardRef((e,t)=>{var n,{prefixCls:i="w-color-saturation",radius:r=0,pointer:o,className:s,hue:a=0,style:l,hsva:c,onChange:u}=e,d=zr(e,tgr),h=lt({width:200,height:200,borderRadius:r},l,{position:"relative"}),f=I.useRef(null),p=I.useCallback(b=>{f.current=b,typeof t=="function"?t(b):t&&"current"in t&&(t.current=b)},[t]),g=I.useCallback((b,w)=>{u&&c&&u({h:c.h,s:b.left*100,v:(1-b.top)*100,a:c.a});var E=f.current;E&&E.focus()},[c,u]),m=I.useCallback(b=>{if(!(!c||!u)){var w=1,E=c.s,A=c.v,D=!1;switch(b.key){case"ArrowLeft":E=Math.max(0,c.s-w),D=!0,b.preventDefault();break;case"ArrowRight":E=Math.min(100,c.s+w),D=!0,b.preventDefault();break;case"ArrowUp":A=Math.min(100,c.v+w),D=!0,b.preventDefault();break;case"ArrowDown":A=Math.max(0,c.v-w),D=!0,b.preventDefault();break;default:return}D&&u({h:c.h,s:E,v:A,a:c.a})}},[c,u]),v=I.useMemo(()=>{if(!c)return null;var b={top:100-c.v+"%",left:c.s+"%",color:mAn(c)};return o&&typeof o=="function"?o(lt({prefixCls:i},b)):S.jsx(egr,lt({prefixCls:i},b))},[c,o,i]),y=I.useCallback(b=>{b.target.focus()},[]);return S.jsx(_An,lt({className:[i,s||""].filter(Boolean).join(" ")},d,{style:lt({position:"absolute",inset:0,cursor:"crosshair",backgroundImage:"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl("+((n=c?.h)!=null?n:a)+", 100%, 50%))"},h,{outline:"none"}),ref:p,onMove:g,onDown:g,onKeyDown:m,onClick:y,children:v}))});xAn.displayName="Saturation";var ngr=xAn,igr=["prefixCls","className","hue","onChange","direction"],EAn=Ri.forwardRef((e,t)=>{var{prefixCls:n="w-color-hue",className:i,hue:r=0,onChange:o,direction:s="horizontal"}=e,a=zr(e,igr);return S.jsx(Qje,lt({ref:t,className:n+" "+(i||"")},a,{direction:s,background:"linear-gradient(to "+(s==="horizontal"?"right":"bottom")+", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)",hsva:{h:r,s:100,v:100,a:r/360},onChange:(l,c)=>{o&&o({h:s==="horizontal"?360*c.left:360*c.top})}}))});EAn.displayName="Hue";var rgr=EAn,ogr=["prefixCls","hsva","placement","rProps","gProps","bProps","aProps","className","style","onChange"],AAn=Ri.forwardRef((e,t)=>{var{prefixCls:n="w-color-editable-input-rgba",hsva:i,placement:r="bottom",rProps:o={},gProps:s={},bProps:a={},aProps:l={},className:c,style:u,onChange:d}=e,h=zr(e,ogr),f=i?vye(i):{};function p(y){var b=Number(y.target.value);b&&b>255&&(y.target.value="255"),b&&b<0&&(y.target.value="0")}var g=y=>{var b=Number(y.target.value);b&&b>100&&(y.target.value="100"),b&&b<0&&(y.target.value="0")},m=(y,b,w)=>{typeof y=="number"&&(b==="a"&&(y<0&&(y=0),y>100&&(y=100),d&&d(k6(gU(lt({},f,{a:y/100}))))),y>255&&(y=255,w.target.value="255"),y<0&&(y=0,w.target.value="0"),b==="r"&&d&&d(k6(gU(lt({},f,{r:y})))),b==="g"&&d&&d(k6(gU(lt({},f,{g:y})))),b==="b"&&d&&d(k6(gU(lt({},f,{b:y})))))},v=f.a?Math.round(f.a*100)/100:0;return S.jsxs("div",lt({ref:t,className:[n,c||""].filter(Boolean).join(" ")},h,{style:lt({fontSize:11,display:"flex"},u),children:[S.jsx(mU,lt({label:"R",value:f.r||0,onBlur:p,placement:r,onChange:(y,b)=>m(b,"r",y)},o,{style:lt({},o.style)})),S.jsx(mU,lt({label:"G",value:f.g||0,onBlur:p,placement:r,onChange:(y,b)=>m(b,"g",y)},s,{style:lt({marginLeft:5},s.style)})),S.jsx(mU,lt({label:"B",value:f.b||0,onBlur:p,placement:r,onChange:(y,b)=>m(b,"b",y)},a,{style:lt({marginLeft:5},a.style)})),l&&S.jsx(mU,lt({label:"A",value:parseInt(String(v*100),10),onBlur:g,placement:r,onChange:(y,b)=>m(b,"a",y)},l,{style:lt({marginLeft:5},l.style)}))]}))});AAn.displayName="EditableInputRGBA";var sgr=AAn,agr=["prefixCls","className","onChange","width","presetColors","color","editableDisable","disableAlpha","style"],lgr=["#D0021B","#F5A623","#f8e61b","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"],g4t=e=>S.jsx("div",{style:{boxShadow:"rgb(0 0 0 / 60%) 0px 0px 2px",width:4,top:1,bottom:1,left:e.left,borderRadius:1,position:"absolute",backgroundColor:"#fff"}}),DAn=Ri.forwardRef((e,t)=>{var{prefixCls:n="w-color-sketch",className:i,onChange:r,width:o=218,presetColors:s=lgr,color:a,editableDisable:l=!0,disableAlpha:c=!1,style:u}=e,d=zr(e,agr),[h,f]=I.useState({h:209,s:36,v:90,a:1});I.useEffect(()=>{typeof a=="string"&&Yje(a)&&f(pK(a)),typeof a=="object"&&f(a)},[a]);var p=A=>{f(A),r&&r(k6(A))},g=(A,D)=>{typeof A=="string"&&Yje(A)&&/(3|6)/.test(String(A.length))&&p(pK(A))},m=A=>p(lt({},h,{a:A.a})),v=A=>p(lt({},h,A,{a:h.a})),y=lt({"--sketch-background":"rgb(255, 255, 255)","--sketch-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px, rgb(0 0 0 / 15%) 0px 8px 16px","--sketch-swatch-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px inset","--sketch-alpha-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px inset, rgb(0 0 0 / 25%) 0px 0px 4px inset","--sketch-swatch-border-top":"1px solid rgb(238, 238, 238)",background:"var(--sketch-background)",borderRadius:4,boxShadow:"var(--sketch-box-shadow)",width:o},u),b={borderRadius:2,background:jpr(h),boxShadow:"var(--sketch-alpha-box-shadow)"},w={borderTop:"var(--sketch-swatch-border-top)",paddingTop:10,paddingLeft:10},E={marginRight:10,marginBottom:10,borderRadius:3,boxShadow:"var(--sketch-swatch-box-shadow)"};return S.jsxs("div",lt({},d,{className:n+" "+(i||""),ref:t,style:y,children:[S.jsxs("div",{style:{padding:"10px 10px 8px"},children:[S.jsx(ngr,{hsva:h,style:{width:"auto",height:150},onChange:v}),S.jsxs("div",{style:{display:"flex",marginTop:4},children:[S.jsxs("div",{style:{flex:1},children:[S.jsx(rgr,{width:"auto",height:10,hue:h.h,pointer:g4t,innerProps:{style:{marginLeft:1,marginRight:5}},onChange:A=>p(lt({},h,A))}),!c&&S.jsx(Qje,{width:"auto",height:10,hsva:h,pointer:g4t,style:{marginTop:4},innerProps:{style:{marginLeft:1,marginRight:5}},onChange:m})]}),!c&&S.jsx(Qje,{width:24,height:24,hsva:h,radius:2,style:{marginLeft:4},bgProps:{style:{background:"transparent"}},innerProps:{style:b},pointer:()=>S.jsx(I.Fragment,{})})]})]}),l&&S.jsxs("div",{style:{display:"flex",margin:"0 10px 3px 10px"},children:[S.jsx(mU,{label:"Hex",value:Kje(h).replace(/^#/,"").toLocaleUpperCase(),onChange:(A,D)=>g(D),style:{minWidth:58}}),S.jsx(sgr,{hsva:h,style:{marginLeft:6},aProps:c?!1:{},onChange:A=>p(A.hsva)})]}),s&&s.length>0&&S.jsx(Jpr,{style:w,colors:s,color:Kje(h),onChange:A=>p(A),rectProps:{style:E}})]}))});DAn.displayName="Sketch";var LXe=DAn,cgr=on(mN(),1);function ugr({viewedEntity:e}){const{mutate:t}=OSn(),[n,i]=I.useState(""),{temporaryStyles:r,setTemporaryStyles:o,saveCustomizationPanelData:s}=$d(),a=I.useMemo(()=>R2(e.identifiers.src,e.identifiers.dst),[e]),l=I.useMemo(()=>{const c=r?.explodedEdges?.[a]?.[n??"_default"];return{stroke:c?.stroke??e.style?.stroke?.toString(),width:c?.lineWidth??Di.number().or(Di.undefined()).parse(e.style?.lineWidth)??Di.number().parse(wx.lineWidth),endArrowSize:c?.endArrowSize??Di.number().parse(wx.endArrowSize),startArrowSize:c?.startArrowSize??Di.number().parse(wx.startArrowSize)}},[e,a,n,r]);return S.jsxs(tn,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[S.jsx(tn,{sx:{flex:1,overflowY:"auto",pr:.5},children:S.jsxs(wr,{spacing:3,children:[S.jsxs(tn,{children:[S.jsx(wu,{children:"Edge Layer"}),S.jsxs(aw,{size:"small",fullWidth:!0,displayEmpty:!0,value:n,onChange:c=>{i(c.target.value)},sx:{fontSize:"0.8rem","& .MuiSelect-select":{py:1}},children:[S.jsx(bo,{value:"",disabled:!0,children:"Select Edge Layer"}),e?.uniqueLayers?.map(c=>c!=null&&S.jsx(bo,{value:c,children:c},c))]})]}),n!==""&&S.jsxs(tn,{children:[S.jsx(wu,{children:"Colour"}),S.jsx(tn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"8px",border:"1px solid rgba(0, 0, 0, 0.06)",p:2},children:S.jsx(LXe,{color:l.stroke?.toString(),onChange:c=>{o(u=>(0,cgr.default)({},u,{explodedEdges:{[a]:{[n]:{stroke:c.hex,lineWidth:l.width,startArrowSize:l.startArrowSize,endArrowSize:l.endArrowSize}}}}))},style:{boxShadow:"none",width:"100%"}})})]})]})}),n!==""&&S.jsx(tn,{sx:{pt:2,flexShrink:0},children:S.jsxs(wr,{direction:"row",spacing:1,children:[S.jsx(na,{size:"small",variant:"outlined",onClick:()=>{t({path:e.baseGraphPath,edgeIdentifiers:e.identifiers,layer:n??"_default"}),o(void 0)},children:"Reset"}),S.jsx(na,{size:"small",variant:"contained",disabled:r?.explodedEdges?.[a]?.[n]===void 0,onClick:()=>{s(e.baseGraphPath)},children:"Save"})]})})]})}var dgr=on(mN(),1);function hgr({viewedEntity:e}){const{mutate:t}=OSn(),{temporaryStyles:n,setTemporaryStyles:i,saveCustomizationPanelData:r}=$d(),o=I.useMemo(()=>R2(e.identifiers.src,e.identifiers.dst),[e]),s=I.useMemo(()=>{const l=n?.explodedEdges?.[o]?.[e.event?.layer??"_default"];return{stroke:l?.stroke??e.event?.style?.stroke?.toString()??wx.stroke?.toString(),width:l?.lineWidth??e.event?.style?.lineWidth??wx.lineWidth,endArrowSize:l?.endArrowSize??wx.endArrowSize,startArrowSize:l?.startArrowSize??wx.startArrowSize}},[e,n]),a=I.useMemo(()=>e.event?.layer??"_default",[e]);return S.jsxs(tn,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[S.jsx(tn,{sx:{flex:1,overflowY:"auto",pr:.5},children:S.jsxs(wr,{spacing:3,children:[S.jsxs(tn,{children:[S.jsx(wu,{children:"Temporal Edge"}),S.jsx(tn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"8px",border:"1px solid rgba(0, 0, 0, 0.06)",p:1.5},children:S.jsx(_j,{sx:{[`& .${wj.root}`]:{borderBottom:"none",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:0,paddingRight:"1rem"}},children:S.jsxs(pL,{children:[S.jsxs(bv,{children:[S.jsx(mu,{sx:{width:"5rem"},children:S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.disabled",fontWeight:500},children:"Layer"})}),S.jsx(mu,{children:S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.primary"},children:e.event?.layer??"_default"})})]}),S.jsxs(bv,{children:[S.jsx(mu,{children:S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.disabled",fontWeight:500},children:"Time"})}),S.jsx(mu,{children:S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.primary"},children:gu(new Date(e.identifiers.timestamp),"PPP 'at' hh:mm:ss a")})})]})]})})})]}),S.jsxs(tn,{children:[S.jsx(wu,{children:"Colour"}),S.jsx(tn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"8px",border:"1px solid rgba(0, 0, 0, 0.06)",p:2},children:S.jsx(LXe,{color:s.stroke?.toString(),onChange:l=>{i(c=>(0,dgr.default)({},c,{explodedEdges:{[o]:{[a]:{stroke:l.hex,lineWidth:s.width,startArrowSize:s.startArrowSize,endArrowSize:s.endArrowSize}}}}))},style:{boxShadow:"none",width:"100%"}})})]})]})}),S.jsx(tn,{sx:{pt:2,flexShrink:0},children:S.jsxs(wr,{direction:"row",spacing:1,children:[S.jsx(na,{size:"small",variant:"outlined",onClick:()=>{t({path:e.baseGraphPath,edgeIdentifiers:e.identifiers,layer:e.event?.layer??"_default"}),i(void 0)},children:"Reset"}),S.jsx(na,{size:"small",variant:"contained",disabled:a===""||n?.explodedEdges?.[o]?.[a]===void 0,onClick:()=>{r(e.baseGraphPath)},children:"Save"})]})})]})}var m4t=on(mN(),1),fgr=on(e7t(),1);function TAn({onChange:e,debounceMs:t=100,...n}){const i=I.useRef(e);i.current=e;const r=I.useMemo(()=>(0,fgr.default)(o=>i.current(o),t,{trailing:!0}),[t]);return S.jsx(LXe,{...n,onChange:r})}var Oce=1;function v4t({increment:e,disabled:t,nodeSize:n,updateSize:i,setLocalEdit:r}){return S.jsx(Qr,{disabled:t,onClick:()=>{const o=Math.max(Oce,n+e);i(o),r(null)},sx:{width:o=>o.spacing(5),height:o=>o.spacing(5)},children:e<0?"−":"+"})}function kAn({nodeSize:e,updateSize:t}){const[n,i]=I.useState(null),r=n??e.toString();return S.jsxs(wr,{direction:"row",spacing:1,alignItems:"center",children:[S.jsx(v4t,{disabled:Number(r)<=Oce,increment:-1,nodeSize:e,updateSize:t,setLocalEdit:i}),S.jsx(jv,{label:"Node Size",type:"text",inputProps:{min:1,inputMode:"numeric"},value:r,size:"small",placeholder:"Enter size",fullWidth:!0,onChange:o=>{i(o.target.value);const s=Number.parseInt(o.target.value);!isNaN(s)&&s>=Oce&&t(s)},onBlur:()=>{const o=Number.parseInt(n||"");isNaN(o)||o<Oce,i(null)}}),S.jsx(v4t,{increment:1,nodeSize:e,updateSize:t,setLocalEdit:i})]})}function pgr({viewedEntity:e,setTypeSelectedForStyling:t}){const{mutate:n}=Btr(),{onViewNothing:i}=gN(),{temporaryStyles:r,setTemporaryStyles:o,deselectNode:s,saveCustomizationPanelData:a}=$d(),l=I.useMemo(()=>({fill:r?.nodesByName?.[e.name]?.fill??r?.nodesByType?.[e.nodeType??""]?.fill??e.nodeStyle?.fill?.toString(),size:r?.nodesByName?.[e.name]?.size??r?.nodesByType?.[e.nodeType??""]?.size??e.nodeStyle?.size}),[e,r]),c=l?.size??LR.size,u=d=>{o(h=>(0,m4t.default)({},h,{nodesByName:{[e.name]:{size:d}}}))};return S.jsxs(tn,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[S.jsx(tn,{sx:{flex:1,overflowY:"auto",pr:.5},children:S.jsxs(wr,{spacing:3,children:[S.jsxs(tn,{children:[S.jsx(wu,{children:"Current Styles"}),S.jsx(tn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"8px",border:"1px solid rgba(0, 0, 0, 0.06)",p:1.5},children:S.jsx(_j,{sx:{[`& .${wj.root}`]:{borderBottom:"none",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:0,paddingRight:"1rem"}},children:S.jsxs(pL,{children:[S.jsxs(bv,{children:[S.jsx(mu,{sx:{width:"6rem"},children:S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.disabled",fontWeight:500},children:"Node"})}),S.jsx(mu,{children:S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.primary",wordBreak:"break-word"},children:e.name})})]}),S.jsxs(bv,{children:[S.jsx(mu,{sx:{width:"6rem"},children:S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.disabled",fontWeight:500},children:"Node Type"})}),S.jsx(uo,{title:"Click here to edit the type style",children:S.jsx(mu,{onClick:()=>{s(e.name),i(),t?.(e.nodeType??"")},sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover",textDecoration:"underline"}},children:S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.primary",wordBreak:"break-word"},children:e.nodeType})})})]}),S.jsxs(bv,{children:[S.jsx(mu,{children:S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.disabled",fontWeight:500},children:"Colour"})}),S.jsx(mu,{children:S.jsxs(wr,{direction:"row",alignItems:"center",spacing:1,children:[S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.primary"},children:e.nodeStyle?.fill?.toString()??"Default"}),S.jsx(tn,{sx:{width:16,height:16,borderRadius:"4px",backgroundColor:e.nodeStyle?.fill?.toString()??"transparent",border:1,borderColor:"divider"}})]})})]}),S.jsxs(bv,{children:[S.jsx(mu,{children:S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.disabled",fontWeight:500},children:"Size"})}),S.jsx(mu,{children:S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.primary"},children:e.nodeStyle?.size??"Default"})})]})]})})})]}),S.jsxs(tn,{children:[S.jsx(wu,{children:"Colour"}),S.jsx(tn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"8px",border:"1px solid rgba(0, 0, 0, 0.06)",p:2},children:S.jsx(TAn,{color:l.fill,onChange:d=>{o(h=>(0,m4t.default)({},h,{nodesByName:{[e.name]:{fill:d.hex}}}))},style:{boxShadow:"none",width:"100%"}})})]}),S.jsxs(tn,{children:[S.jsx(wu,{children:"Size"}),S.jsx(kAn,{nodeSize:c,updateSize:u}),S.jsx(Xn,{sx:{fontSize:"0.75rem",color:"text.disabled",mt:1},children:"Individual node styles override type styles."})]})]})}),S.jsx(tn,{sx:{pt:2,flexShrink:0},children:S.jsxs(wr,{direction:"row",spacing:1,children:[S.jsx(na,{size:"small",variant:"outlined",onClick:()=>{n({path:e.baseGraphPath,name:e.name}),o(void 0)},children:"Reset"}),S.jsx(na,{size:"small",variant:"contained",disabled:r?.nodesByName?.[e.name]===void 0,onClick:()=>{a(e.baseGraphPath)},children:"Save"})]})})]})}var y4t=on(mN(),1);function ggr({slots:e,typeSelectedForStyling:t,setTypeSelectedForStyling:n}){const i=$d().baseGraphPath,r=pRr(i).data,{mutate:o}=jtr(),{data:s}=VSn(i),{temporaryStyles:a,setTemporaryStyles:l,nodes:c,saveCustomizationPanelData:u}=$d(),d=I.useMemo(()=>r?.map(m=>{if(m!==null)return S.jsx(bo,{value:m,children:m},m)}),[r]),h=I.useMemo(()=>Object.fromEntries(c.filter(m=>m.nodeType===t).map(m=>[m.id,{fill:a?.nodesByName?.[m.id]?.fill??m.nodeStyle?.fill?.toString(),size:a?.nodesByName?.[m.id]?.size??m.nodeStyle?.size}])),[c,t]),f=I.useMemo(()=>({fill:a?.nodesByType?.[t]?.fill??s?.[t==="None"?"":t]?.fill??kQ(t),size:a?.nodesByType?.[t]?.size??s?.[t==="None"?"":t]?.size??LR.size}),[a,s,t]),p=f?.size??LR.size,g=m=>{l(v=>(0,y4t.default)({},v,{nodesByType:{[t]:{...v?.nodesByType?.[t],size:m}}}))};return S.jsxs(tn,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[S.jsx(tn,{sx:{flex:1,overflowY:"auto",pr:.5},children:S.jsxs(wr,{spacing:3,children:[S.jsxs(tn,{children:[S.jsx(wu,{children:"Node Type"}),S.jsxs(aw,{size:"small",fullWidth:!0,displayEmpty:!0,value:t,onChange:m=>{n(m.target.value)},sx:{fontSize:"0.8rem","& .MuiSelect-select":{py:1}},children:[S.jsx(bo,{value:"",disabled:!0,children:"Select Node Type"}),d]})]}),t.length>0&&S.jsxs(tn,{children:[S.jsx(wu,{children:"Current Styles"}),S.jsxs(tn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"8px",border:"1px solid rgba(0, 0, 0, 0.06)",p:1.5},children:[S.jsx(_j,{sx:{[`& .${wj.root}`]:{borderBottom:"none",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:0,paddingRight:"1rem"}},children:S.jsxs(pL,{children:[S.jsxs(bv,{children:[S.jsx(mu,{sx:{width:"6rem"},children:S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.disabled",fontWeight:500},children:"Colour"})}),S.jsx(mu,{children:S.jsxs(wr,{direction:"row",alignItems:"center",spacing:1,children:[S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.primary"},children:f?.fill?.toString()}),S.jsx(tn,{sx:{width:16,height:16,borderRadius:"4px",backgroundColor:f?.fill?.toString(),border:1,borderColor:"divider"}})]})})]}),S.jsxs(bv,{children:[S.jsx(mu,{children:S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.disabled",fontWeight:500},children:"Size"})}),S.jsx(mu,{children:S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.primary"},children:f?.size})})]})]})}),S.jsx(Xn,{sx:{fontSize:"0.75rem",color:"text.disabled",mt:1},children:"Individual node styles take priority over type styles."})]})]}),t.length>0&&S.jsxs(tn,{children:[S.jsx(wu,{children:"Colour"}),S.jsx(tn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"8px",border:"1px solid rgba(0, 0, 0, 0.06)",p:2},children:S.jsx(TAn,{color:f?.fill,onChange:m=>{l(v=>(0,y4t.default)({},v,{nodesByName:h,nodesByType:{[t]:{...v?.nodesByType?.[t],fill:m.hex??f?.fill}}}))},style:{boxShadow:"none",width:"100%"}})})]}),t.length>0&&S.jsxs(tn,{children:[S.jsx(wu,{children:"Size"}),S.jsx(kAn,{nodeSize:p,updateSize:g}),S.jsx(Xn,{sx:{fontSize:"0.75rem",color:"text.disabled",mt:1},children:"Individual node styles take priority over type styles."})]})]})}),t.length>0&&S.jsx(tn,{sx:{pt:2,flexShrink:0},children:S.jsxs(wr,{direction:"row",spacing:1,children:[S.jsx(na,{size:"small",variant:"outlined",onClick:()=>{o({path:e?.customisation?.graphSourcePath??hb.fromName(""),typeToUpdate:t,typeStyles:s??void 0}),l(void 0)},children:"Reset"}),S.jsx(na,{size:"small",variant:"contained",disabled:a?.nodesByType?.[t]===void 0,onClick:()=>{u(e?.customisation?.graphSourcePath??hb.fromName(""))},children:"Save"})]})})]})}function mgr({viewedEntity:e,...t}){const[n,i]=I.useState(""),r=I.useMemo(()=>e?.type==="node"?S.jsx(pgr,{viewedEntity:e,setTypeSelectedForStyling:i,...t}):e?.type==="edge"?S.jsx(ugr,{viewedEntity:e,...t}):e?.type==="exploded-edge"?S.jsx(hgr,{viewedEntity:e,...t}):e?.type===void 0?S.jsx(ggr,{viewedEntity:void 0,typeSelectedForStyling:n,setTypeSelectedForStyling:i,...t}):S.jsx(Xn,{children:"Nothing selected!"}),[e,t]);return S.jsx(wr,{spacing:2,sx:[{height:"100%"},...Array.isArray(t.sx)?t.sx:t.sx?[t.sx]:[]],children:r})}var vgr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M5 22q-.825 0-1.412-.587T3 20V6q0-.825.588-1.412T5 4h1V2h2v2h8V2h2v2h1q.825 0 1.413.588T21 6v4.675q0 .425-.288.713t-.712.287t-.712-.288t-.288-.712V10H5v10h5.8q.425 0 .713.288T11.8 21t-.288.713T10.8 22zm9.463-.462Q13 20.075 13 18t1.463-3.537T18 13t3.538 1.463T23 18t-1.463 3.538T18 23t-3.537-1.463m5.212-1.162l.7-.7L18.5 17.8V15h-1v3.2z"})]}),ygr=I.forwardRef(vgr),bgr=ygr,_gr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M15 21h2v-2h-2m4-10h2V7h-2M3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2m16-2v2h2c0-1.1-.9-2-2-2m-8 20h2V1h-2m8 16h2v-2h-2M15 5h2V3h-2m4 10h2v-2h-2m0 10c1.1 0 2-.9 2-2h-2Z"})]}),wgr=I.forwardRef(_gr),Cgr=wgr;function Sgr(){const{expandSelected:e,expandSharedNeighbours:t,expandTwoHops:n,deselectAll:i,hideSelected:r,invertSelectedNodes:o,selectNode:s,selectRelatedNodes:a,selectShortestPath:l,selectSimilarTypes:c}=$d(),u=lZ(),{onSetDrawerOpen:d,onViewTab:h,onViewNode:f,onViewNodeTab:p,onViewEdge:g}=gN(),[m,v]=I.useState(void 0),y=I.useCallback(w=>{const E=Di.object({type:Di.literal("node").or(Di.literal("edge"))}).safeParse(w.target);if(!E.success)return;i();const A=E.data.type;if(d(!0),h("selected"),A==="node")s(w.target.id),f(w.target.id);else if(A==="edge"&&u!==void 0){const D=u.getElementData(w.target.id);typeof D.source=="string"&&typeof D.target=="string"&&g({src:D.source,dst:D.target})}},[u,i,s,d,g,f,h]);I.useEffect(()=>{if(u===void 0)return;function w(D){u!==void 0&&(D.preventDefault(),v({top:D.client.y,left:D.client.x}),y?.(D))}function E(D){D.preventDefault(),v(void 0)}function A(){v(void 0)}return u.on(gp.CONTEXT_MENU,w),u.on(iN.CONTEXT_MENU,w),u.on(_x.CONTEXT_MENU,w),u.on(ag.CONTEXT_MENU,E),u.on(ag.CLICK,A),()=>{u.off(gp.CONTEXT_MENU,w),u.off(iN.CONTEXT_MENU,w),u.off(_x.CONTEXT_MENU,w),u.off(ag.CONTEXT_MENU,E),u.off(ag.CLICK,A)}},[u,i,s,y]);const b=I.useCallback(()=>{v(void 0)},[]);return I.useEffect(()=>{if(m===void 0)return;const w=A=>{A.button===0&&v(void 0)},E=setTimeout(()=>{document.addEventListener("mousedown",w)},0);return()=>{clearTimeout(E),document.removeEventListener("mousedown",w)}},[m]),m===void 0?null:S.jsx(eS,{onContextMenu:w=>w.preventDefault(),sx:{position:"fixed",top:m.top,left:m.left,zIndex:1300,backgroundColor:"rgba(255, 255, 255, 0.65)",backdropFilter:"blur(20px) saturate(180%)",WebkitBackdropFilter:"blur(20px) saturate(180%)",border:"1px solid rgba(255, 255, 255, 0.4)",boxShadow:"0 4px 24px rgba(0,0,0,0.12)",borderRadius:"10px",minWidth:180,py:.5,"& .MuiMenuItem-root":{py:.5,minHeight:"auto"},"& .MuiListItemText-root":{"& .MuiTypography-root":{fontSize:"0.75rem"}},"& .MuiListItemIcon-root":{minWidth:28,"& svg":{fontSize:"1rem"}}},children:S.jsxs(gj,{children:[S.jsxs(bo,{onClick:()=>{e(),b()},children:[S.jsx($m,{children:S.jsx(pxn,{})}),S.jsx(u0,{children:"Expand"})]}),S.jsxs(bo,{onClick:()=>{n(),b()},children:[S.jsx($m,{children:S.jsx(vxn,{})}),S.jsx(u0,{children:"Expand Two-Hop"})]}),S.jsxs(bo,{onClick:()=>{l(),b()},children:[S.jsx($m,{children:S.jsx(gxn,{})}),S.jsx(u0,{children:"Find Shortest Path"})]}),S.jsxs(bo,{onClick:()=>{t(),b()},children:[S.jsx($m,{children:S.jsx(mxn,{})}),S.jsx(u0,{children:"Shared Neighbours"})]}),S.jsx(cE,{sx:{my:.5,borderColor:"rgba(0, 0, 0, 0.08)"}}),S.jsxs(bo,{onClick:()=>{c(),b()},children:[S.jsx($m,{children:S.jsx(_xn,{})}),S.jsx(u0,{children:"Select all similar"})]}),S.jsxs(bo,{onClick:()=>{i(),b()},children:[S.jsx($m,{children:S.jsx(yxn,{})}),S.jsx(u0,{children:"Deselect all"})]}),S.jsxs(bo,{onClick:()=>{o(),b()},children:[S.jsx($m,{children:S.jsx(Cgr,{})}),S.jsx(u0,{children:"Invert selection"})]}),S.jsxs(bo,{onClick:()=>{a(),b()},children:[S.jsx($m,{children:S.jsx(bxn,{})}),S.jsx(u0,{children:"Select related"})]}),S.jsx(cE,{sx:{my:.5,borderColor:"rgba(0, 0, 0, 0.08)"}}),S.jsxs(bo,{onClick:()=>{p("Trace Log",{forceOpenDrawer:!0}),b()},children:[S.jsx($m,{children:S.jsx(bgr,{})}),S.jsx(u0,{children:"Open Trace Log"})]}),S.jsxs(bo,{onClick:()=>{r(),b()},sx:{color:"error.main"},children:[S.jsx($m,{sx:{color:"inherit"},children:S.jsx(dxn,{})}),S.jsx(u0,{children:"Delete"})]})]})})}function xgr(){const{graphDisplayLimit:e}=Nl(),[t,n]=Pui(),[i]=iy(js.graph),r=i.graphSource?.fullPath??i.baseGraph?.fullPath;O0e(r?`Graph - ${r}`:"Graph"),I.useEffect(()=>{n(s=>({...s,lastSeenGraphParams:i}))},[i,n]);const o=I.useMemo(()=>i.graphSource,[i.graphSource?.fullPath]);return S.jsx(MSn,{baseGraph:i.baseGraph,graphSource:o,initialNodes:i.initialNodes,displayLimit:e,children:S.jsx(Egr,{})})}var Egr=()=>{const{GraphPanel:e,slots:t,graphDisplayLimit:n}=Nl(),[i,r]=iy(js.graph),o=t?.container?.graph?.Extra,{graphSourcePath:s,baseGraphPath:a,setUnsavedChangesExist:l,allNodeIds:c,nodePositions:u,aliveEdges:d,highlightedLayer:h,setHighlightedLayer:f,unsavedChangesExist:p,selectTemporalEdges:g,deselectAll:m,nodes:v,selectedNodes:y,selectedEdges:b,selectedTemporalEdges:w,saveCustomizationPanelData:E}=$d(),A=new Map;for(const Q of d)A.set(Q.id,Q);const D=Q=>{Q.src===void 0||Q.dst===void 0||Q.time===void 0||Q.layer===void 0||(m(),g([{src:Q.src,dst:Q.dst,time:Q.time,layer:Q.layer}]))},[T,{height:M}]=k8(),P=hli(({currentLocation:Q,nextLocation:H})=>{const q=js.graph.$buildPathname({params:{}}),le=Q.pathname===q&&Q.pathname===H.pathname;return p&&!le});I.useEffect(()=>{function Q(H){H.preventDefault()}if(!p){removeEventListener("beforeunload",Q);return}return addEventListener("beforeunload",Q),()=>{removeEventListener("beforeunload",Q)}},[p]);const{mutateAsync:F}=_Rr(),{mutateAsync:N}=Ftr();async function j(Q){await F({baseGraphPath:a,newGraphPath:Q,nodes:c,overwrite:Q.fullPath===s?.fullPath}),u!==void 0&&await N({path:Q,nodePositions:u}),await E(Q),l(!1),Q.fullPath!==s?.fullPath&&setTimeout(()=>{r({graphSource:Q,initialNodes:[]})},0)}const{data:W}=nXe(s,n),J=I.useMemo(()=>{const Q=Object.entries((0,_pr.default)(d.flatMap(({layers:le})=>le.length===0?["none"]:le.map(({layerName:Y})=>Y)))).map(([le,Y])=>({id:le,cols:[{value:le},{value:Y.toString()}]})),H=W?.metadata.values.filter(le=>typeof le.value=="object"&&le.value!==null&&le.key!=="_style"),q=W?.metadata.values.filter(le=>!(typeof le.value=="object"&&le.value!==null));return S.jsxs(wr,{spacing:2,children:[e!==void 0?S.jsx(e,{}):null,S.jsxs(tn,{children:[S.jsx(wu,{children:"Graph Properties"}),S.jsx(tn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"8px",border:"1px solid rgba(0, 0, 0, 0.06)",p:1.5},children:q!==void 0&&q.length>0?S.jsx(wr,{spacing:.25,children:q.map(le=>S.jsxs(tn,{sx:{display:"flex",alignItems:"center",gap:1},children:[S.jsx(tn,{sx:{width:24,flexShrink:0}}),S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.disabled",fontWeight:500,minWidth:"5rem"},children:le.key}),S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.primary"},children:zEn(le.value)})]},le.key))}):S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.disabled"},children:"No graph properties found."})})]}),H!==void 0&&H.length>0&&S.jsx(jEn,{metadata:H}),S.jsx(Hcr,{title:"Relationships",defaultMessage:"No relationships found for this discovery.",rows:Q,headers:["Type","Amount"],highlightedRowId:h,onHighlightRowId:f})]})},[d,e,W?.metadata.values,h,f]),ee=I.useMemo(()=>{const Q=Array.from(y).at(-1),H=Array.from(b).at(-1),q=Array.from(w).at(-1);if(q){const le={src:q.src,dst:q.dst,layer:q.layer,timestamp:isNaN(q.time)?Date.now():q.time},Y=R2(le.src,le.dst);return{type:"exploded-edge",identifiers:le,baseGraphPath:a,graphSourcePath:s,event:A.get(Y)?.events.find(G=>G.time===le.timestamp)}}if(Q)return{type:"node",name:Q,baseGraphPath:a,graphSourcePath:s,nodeType:v.find(le=>le.id===Q)?.nodeType,nodeStyle:v.find(le=>le.id===Q)?.style,typeStyle:v.find(le=>le.id===Q)?.typeStyle};if(H){const le=R2(H.src,H.dst);return{type:"edge",identifiers:{src:H.src,dst:H.dst},baseGraphPath:a,graphSourcePath:s,style:d.find(Y=>Y.id===le)?.style,typeStyle:d.find(Y=>Y.id===le)?.typeStyle,uniqueLayers:A.get(le)?.layers.map(Y=>Y.layerName)}}},[a,b,y,w,v,d,s]);return S.jsxs(S.Fragment,{children:[P.state==="blocked"&&S.jsxs(GQ,{open:P.state==="blocked",onClose:P.reset,children:[S.jsx(M0e,{children:"Confirm Navigation"}),S.jsxs(qQ,{sx:{lineHeight:1.5},children:[S.jsx(nOt,{children:"Warning! You have unsaved changes."}),S.jsx(nOt,{children:"Are you sure you want to proceed?"})]}),S.jsxs($Q,{children:[S.jsx(na,{onClick:P.reset,children:"Cancel"}),S.jsx(na,{onClick:P.proceed,children:"Proceed"})]})]}),S.jsx(bpr,{onSaveGraph:j,temporalViewHeight:M,slots:{bottomPanel:S.jsx(ppr,{temporalViewRef:T}),contextMenu:S.jsx(Sgr,{}),rhsPanel:S.jsx(Rpr,{slots:{detailsTable:S.jsx(EXe,{viewedEntity:ee,onClickRow:D}),overview:J,graphSettings:S.jsx(mgr,{viewedEntity:ee,slots:{customisation:{graphSourcePath:s??a,nodes:v}}})}}),extraComponent:o!==void 0&&ee?.type==="exploded-edge"&&S.jsx(o,{viewedEntity:ee,graphPath:a})}})]})};function b4t(e){try{const t=new Date(e);return Urr(t,{addSuffix:!0})}catch{return""}}function Agr({item:e,isSelected:t,onClick:n,onDoubleClick:i}){const r=e.type==="namespace",o=e.type==="graph",s=r?AXe:gye,a=o?e.nodeCount:void 0,l=o?e.edgeCount:void 0,c=o?e.lastUpdated:r?e.latestUpdate:void 0,u=r?e.itemCount:void 0,d=o?`${a??0} nodes · ${l??0} edges`:`${u??0} item${u===1?"":"s"}`,h=f=>{f.detail===1?n():f.detail===2&&i()};return S.jsxs(vg,{sx:f=>({display:"flex",flexDirection:"column",alignItems:"stretch",width:"100%",padding:f.spacing(2,1.5,2,.5),backgroundColor:t?"rgba(227, 6, 122, 0.06)":"transparent",border:t?"1px solid rgba(227, 6, 122, 0.15)":"1px solid transparent",borderRadius:"8px",cursor:"pointer",transition:"all 0.15s ease-in-out",position:"relative",textAlign:"left","&:hover":{backgroundColor:t?"rgba(227, 6, 122, 0.08)":"rgba(23, 19, 27, 0.02)"}}),onClick:h,children:[S.jsxs(wr,{direction:"row",alignItems:"center",spacing:2,sx:{width:"100%"},children:[S.jsx(tn,{sx:f=>({width:36,height:36,borderRadius:"8px",backgroundColor:r?"rgba(23, 19, 27, 0.06)":"rgba(227, 6, 122, 0.04)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,"& svg":{width:20,height:20,color:r?f.palette.text.disabled:f.palette.primary.main}}),children:S.jsx(s,{})}),S.jsx(Xn,{sx:{fontWeight:600,fontSize:"0.95rem",color:"text.primary",flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.name}),S.jsx(D2,{label:r?"FOLDER":"GRAPH",size:"small",sx:{fontSize:"0.65rem",height:"20px",backgroundColor:"grey.50",color:"text.disabled",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.02em","& .MuiChip-label":{px:1}}})]}),S.jsxs(wr,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{marginTop:1,marginLeft:6.5},children:[S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.disabled",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontStyle:r?"italic":"normal"},children:r?"Click to browse":d}),S.jsx(Xn,{sx:{fontSize:"0.75rem",color:"text.disabled",flexShrink:0,marginLeft:2},children:r?`${u??0} item${u===1?"":"s"}${c?` · ${b4t(c)}`:""}`:c?b4t(c):""})]})]})}var Dgr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M6.1 10L4 18V8h17a2 2 0 0 0-2-2h-7l-2-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h15c.9 0 1.7-.6 1.9-1.5l2.3-8.5zM19 18H6l1.6-6h13z"})]}),Tgr=I.forwardRef(Dgr),_4t=Tgr;function kgr(e){switch(e){case"archived":return{icon:_4t,title:"No archived explorations",description:"Archived explorations will appear here. You can archive explorations from the Active tab."};case"subfolder":return{icon:_4t,title:"This folder is empty",description:"No explorations found in this folder. Navigate to a different folder or return to the root."};default:return{icon:gye,title:"Welcome to Explorations",description:S.jsxs(S.Fragment,{children:["Explorations are saved graph analyses you can revisit anytime. Create explorations from the Search page or through"," ",S.jsx(T7e,{href:"https://docs.pometry.com/docs/graphql/running",target:"_blank",rel:"noopener noreferrer",sx:{color:"primary.main",textDecoration:"none","&:hover":{textDecoration:"underline"}},children:"alerting pipelines"}),"."]})}}}function Igr({data:e,selectedName:t,onSelect:n,onOpen:i,isLoading:r=!1,emptyStateType:o="landing"}){if(r)return S.jsx(wr,{spacing:1.5,children:[1,2,3,4,5].map(s=>S.jsx(B9,{variant:"rounded",height:72,sx:{borderRadius:"8px"}},s))});if(e.length===0){const{icon:s,title:a,description:l}=kgr(o);return S.jsxs(tn,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",gap:2},children:[S.jsx(s,{style:{width:48,height:48,color:"var(--muted-grey)"}}),S.jsx(Xn,{variant:"h6",sx:{color:"text.secondary",fontWeight:500},children:a}),S.jsx(Xn,{sx:{color:"text.disabled",textAlign:"center",maxWidth:340},children:l})]})}return S.jsx(wr,{spacing:1,children:e.map(s=>S.jsx(Agr,{item:s,isSelected:s.name===t,onClick:()=>n(s),onDoubleClick:()=>i(s)},s.type==="graph"?s.path?.fullPath:s.path))})}var Lgr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M14 3v2h3.59l-9.83 9.83l1.41 1.41L19 6.41V10h2V3m-2 16H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7h-2z"})]}),Ngr=I.forwardRef(Lgr),Pgr=Ngr,Mgr={behaviors:void 0,animation:!1,plugins:[]};function Ogr(){const{graphSourcePath:e,status:t}=$d(),n=YY();return t.graph==="pending"||t.subgraph==="pending"?S.jsx(B9,{variant:"rounded",sx:{width:"100%",aspectRatio:"16/10",maxHeight:"240px",borderRadius:"12px",backgroundColor:"rgba(255, 255, 255, 0.3)"}}):S.jsxs(vg,{onClick:()=>{n(js.graph.$buildPath({searchParams:{graphSource:e,initialNodes:[]}}))},sx:{minWidth:"440px",width:"100%",aspectRatio:"16/10",maxHeight:"240px",position:"relative",borderRadius:"12px",overflow:"hidden",backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",border:"1px solid rgba(255, 255, 255, 0.6)",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",transition:"all 0.2s ease","&:hover":{borderColor:"rgba(255, 255, 255, 0.8)",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)"},"&:hover .preview-overlay":{opacity:1}},children:[S.jsx(tn,{sx:{width:"100%",height:"100%"},children:S.jsx(uxn,{containerSx:{width:"100%",height:"100%"},graphOptions:Mgr,disableInterations:!0,enableFitViewAlways:!0})}),S.jsx(tn,{className:"preview-overlay",sx:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.5)",opacity:0,transition:"opacity 0.2s ease"},children:S.jsxs(tn,{sx:{display:"flex",alignItems:"center",gap:1,px:2,py:1,borderRadius:"6px",backgroundColor:"rgba(255, 255, 255, 0.85)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",border:"1px solid rgba(255, 255, 255, 0.6)",color:"text.primary",fontSize:"0.8rem",fontWeight:500,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.12)"},children:[S.jsx(Pgr,{style:{fontSize:"1rem"}}),"Open"]})})]})}var Rgr={id:"type",accessorFn:({type:e})=>e,header:"",Cell:function({row:t}){const n=t.original.type==="namespace"?AXe:gye;return S.jsx(n,{style:{width:"16px",height:"16px",color:"inherit"}})},minSize:0,size:32,enableColumnActions:!1},Fgr={accessorKey:"name",header:"Name",size:100,columnFilterModeOptions:["fuzzy","contains"]},Bgr={id:"lastUpdated",header:"Last Updated",size:100,accessorFn:e=>{if(e.type==="graph")return e.lastUpdated!==void 0?new Date(e.lastUpdated).toLocaleString():void 0},sortingFn:(e,t)=>{const n=e.original.type==="graph"?e.original.lastUpdated:void 0,i=t.original.type==="graph"?t.original.lastUpdated:void 0;return n===void 0?-1:i===void 0?1:new Date(n).getTime()-new Date(i).getTime()},filterVariant:"date",enableColumnFilterModes:!1,filterFn:(e,t,n)=>{const i=e.getValue(t),r=fbn(i,"dd/MM/yyyy, HH:mm:ss",new Date);return N0e(r,n)}},jgr={id:"countNodes",header:"Node Count",size:100,accessorFn:e=>{if(e.type==="graph")return e.nodeCount!==void 0?e.nodeCount:0},columnFilterModeOptions:["equals","greaterThan","lessThan","greaterThanOrEqualTo","lessThanOrEqualTo","between","betweenInclusive"]},zgr={id:"countEdges",header:"Edge Count",size:100,accessorFn:e=>{if(e.type==="graph")return e.edgeCount!==void 0?e.edgeCount:0},columnFilterModeOptions:["equals","greaterThan","lessThan","greaterThanOrEqualTo","lessThanOrEqualTo","between","betweenInclusive"]},Vgr={type:Rgr,name:Fgr,nodeCount:jgr,edgeCount:zgr,lastUpdated:Bgr},Hgr=Object.values(Vgr);function Yre({onClick:e,disabled:t,children:n,tooltip:i}){const r=S.jsx(Qr,{onClick:e,disabled:t,size:"small",sx:{width:32,height:32,borderRadius:"8px",border:1,borderColor:"divider",backgroundColor:"transparent",color:"text.disabled",transition:"all 0.15s ease-in-out","&:hover":{backgroundColor:"grey.50",borderColor:"grey.100"},"&:disabled":{opacity:.4,backgroundColor:"transparent"},"& svg":{width:18,height:18}},children:n});return t?r:S.jsx(uo,{title:i,children:r})}function Wgr({page:e,isActive:t,onClick:n}){return S.jsx(Qr,{onClick:n,size:"small",sx:i=>({minWidth:32,height:32,borderRadius:"8px",fontSize:"0.85rem",fontWeight:t?600:400,border:t?"none":"1px solid transparent",backgroundColor:t?i.palette.primary.main:"transparent",color:t?"#fff":"text.disabled",transition:"all 0.15s ease-in-out","&:hover":t?{}:{backgroundColor:"grey.50"}}),children:e})}function IAn({paginationModel:e,totalRowCount:t,setPage:n,maxNavigablePages:i,showCount:r}){const o=e?.page,s=I.useMemo(()=>t===void 0||e===void 0?0:Math.ceil(t/e.pageSize),[t,e]);function a(h){n!==void 0&&n(()=>h)}function l(h){n!==void 0&&n(f=>{const p=h(f);return Math.min(Math.max(0,p),s-1)})}const c=I.useMemo(()=>{if(o===void 0||i===void 0)return[];let h=o-Math.floor((i-1)/2),f=o+Math.ceil((i-1)/2);if(h<0){const p=-h;h=0,f=Math.min(f+p,s-1)}if(f>=s){const p=f-(s-1);f=s-1,h=Math.max(0,h-p)}return[...Array(f-h+1)].map((p,g)=>h+g)},[o,s,i]);if(e===void 0||t===void 0||o===void 0)return null;const u=o*e.pageSize+1,d=Math.min((o+1)*e.pageSize,t);return S.jsxs(wr,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{padding:h=>h.spacing(2,0),borderTop:1,borderTopColor:"divider",backgroundColor:"background.paper",flexShrink:0},children:[S.jsxs(wr,{direction:"row",alignItems:"center",spacing:.5,children:[S.jsx(Yre,{onClick:()=>a(0),disabled:o===0,tooltip:"First page",children:S.jsx(OEn,{})}),S.jsx(Yre,{onClick:()=>l(h=>h-1),disabled:o===0,tooltip:"Previous page",children:S.jsx(jF,{})}),c.map(h=>S.jsx(Wgr,{page:h+1,isActive:h===o,onClick:()=>a(h)},h)),S.jsx(Yre,{onClick:()=>l(h=>h+1),disabled:o===s-1,tooltip:"Next page",children:S.jsx(hye,{})}),S.jsx(Yre,{onClick:()=>a(s-1),disabled:o===s-1,tooltip:"Last page",children:S.jsx(REn,{})})]}),r&&t>0&&S.jsxs(Xn,{sx:{fontSize:"0.85rem",color:"text.disabled"},children:[u,"-",d," of ",t]})]})}var Ugr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M3 11h8V3H3m0 18h8v-8H3m10 8h8v-8h-8m0-10v8h8V3"})]}),$gr=I.forwardRef(Ugr),qgr=$gr,Ggr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M9 5v4h12V5M9 19h12v-4H9m0-1h12v-4H9M4 9h4V5H4m0 14h4v-4H4m0-1h4v-4H4z"})]}),Kgr=I.forwardRef(Ggr),Ygr=Kgr,Qgr=11,vH=8,LAn=(e=>(e.ACTIVE="Active",e.ARCHIVED="Archived",e))(LAn||{});function Zgr({viewedGraph:e,setViewedGraph:t}){const n=YY(),{slots:i,graphDisplayLimit:r,archiveEnabled:o,masterGraphPath:s}=Nl(),{"*":a}=lnr(js.savedGraphs),{data:l,isLoading:c}=ktr(a),[u,d]=I.useState("Active"),[h,f]=I.useState(0),[p,g]=I.useState("cards"),{mutate:m}=FSn(),v=I.useCallback(()=>{if(e!==void 0){const W=u==="Active";m({path:e.path,archive:W})}},[u,e,m]),y=I.useMemo(()=>{const W=i?.savedGraphs;if(W!==void 0)return typeof W=="function"?W({currentTab:u,onClickArchiveButton:v}):W},[i?.savedGraphs,u,v]),b=I.useMemo(()=>{const W=l?.children.map(ee=>{const Q=ee.path.split("/");return{type:"namespace",name:Q[Q.length-1],path:ee.path,itemCount:ee.itemCount,latestUpdate:ee.latestUpdate}})??[],J=l?.graphs.filter(({path:ee,archived:Q})=>u==="Archived"===Q&&ee?.fullPath!==s?.fullPath).map(ee=>({type:"graph",...ee}))??[];return[...W,...J]},[u,s?.fullPath,l?.children,l?.graphs]);I.useEffect(()=>{f(0)},[u,p]),I.useEffect(()=>{b?.some(({path:W})=>e?.path===W)||t(void 0)},[e,b,t]);const w=I.useMemo(()=>{const W=h*vH,J=W+vH;return b.slice(W,J)},[b,h]),E=I.useCallback(W=>{if(W.type==="namespace"){const J=a!==void 0&&a!==""?`${a}/`:"";n(js.savedGraphs.$buildPath({params:{"*":`${J}${W.name}`}}))}else W.type==="graph"&&t(W.path!==void 0?{type:"graph",path:W.path}:void 0)},[a,n,t]),A=I.useCallback(W=>{W.type==="graph"&&W.nodeCount<r?n(js.graph.$buildPath({searchParams:{graphSource:W.path,initialNodes:[]}})):W.type==="graph"&&ua.error("Graph too large to open")},[r,n]),D=I.useCallback(W=>{f(J=>W(J))},[]),T=y?.table?.columns??Hgr,P=MEn(b,T,{tableOptions:{enableTopToolbar:!0,enableBottomToolbar:!1,enableColumnFilters:!0,enableGlobalFilter:!0,enableSorting:!0,enablePagination:!0,manualPagination:!1,initialState:{density:"compact",showColumnFilters:!1,sorting:[{id:"type",desc:!1},{id:"lastUpdated",desc:!0}]},state:{isLoading:c,pagination:{pageIndex:h,pageSize:vH}},onPaginationChange:W=>{const J=typeof W=="function"?W({pageIndex:h,pageSize:vH}):W;f(J.pageIndex)},getRowId:W=>W.name??"",muiTablePaperProps:{elevation:0,sx:{boxShadow:"none"}},muiTopToolbarProps:{sx:{minHeight:"unset",py:.75,px:0,alignItems:"center","& .MuiBox-root":{gap:.5},"& .MuiIconButton-root":{padding:"4px","& svg":{fontSize:"1.1rem"}}}},muiTableBodyRowProps:({row:W})=>({sx:{cursor:"pointer",backgroundColor:W.original.name===e?.path.graphName?"rgba(227, 6, 122, 0.08)":"transparent","&:hover":{backgroundColor:W.original.name===e?.path.graphName?"rgba(227, 6, 122, 0.12)":"action.hover"}},onClick:()=>{switch(W.original.type){case"namespace":{const J=a!==void 0&&a!==""?`${a}/`:"";n(js.savedGraphs.$buildPath({params:{"*":`${J}${W.original.name}`}}));break}case"graph":{t(W.original.path!==void 0?{type:"graph",path:W.original.path}:void 0);break}}},onDoubleClick:()=>{W.original.type==="graph"&&W.original.nodeCount<r?n(js.graph.$buildPath({searchParams:{graphSource:W.original.path,initialNodes:[]}})):W.original.type==="graph"&&ua.error("Graph too large to open")}}),muiTableBodyCellProps:{sx:{fontSize:"0.85rem",color:"text.primary",borderBottom:1,borderBottomColor:"divider",py:2,"& *":{fontSize:"inherit",fontFamily:"inherit"},"& > *":{display:"flex",flexDirection:"row",alignItems:"center",gap:.5}}},muiTableHeadCellProps:{sx:{fontWeight:500,fontSize:"0.8rem",color:"text.secondary",textTransform:"uppercase",letterSpacing:"0.025em",borderBottom:1,borderBottomColor:"divider",py:1}},muiSearchTextFieldProps:{placeholder:"Search explorations"}}}),F=P.getFilteredRowModel().rows.length,N=o?Object.values(LAn):["Active"],j=I.useMemo(()=>u==="Archived"?"archived":a!==void 0&&a!==""?"subfolder":"landing",[u,a]);return S.jsxs(wr,{sx:{height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},children:[S.jsx(kj,{tabs:N,selectedTab:u,setSelectedTab:W=>d(W),slots:{rhs:b.length>0?S.jsxs(kbn,{value:p,exclusive:!0,onChange:(W,J)=>J&&g(J),size:"small",sx:{gap:1,"& .MuiToggleButtonGroup-grouped":{margin:0,"&:not(:first-of-type)":{marginLeft:0,borderLeft:1,borderLeftColor:"divider"}},"& .MuiToggleButton-root":{border:1,borderColor:"divider",borderRadius:"6px",padding:"4px 8px","&.Mui-selected":{backgroundColor:"rgba(227, 6, 122, 0.08)",borderColor:"rgba(227, 6, 122, 0.3)",color:"#e3067a","&:hover":{backgroundColor:"rgba(227, 6, 122, 0.12)"}}}},children:[S.jsx(qhe,{value:"cards",children:S.jsx(uo,{title:"Card view",children:S.jsx(qgr,{style:{width:18,height:18}})})}),S.jsx(qhe,{value:"table",children:S.jsx(uo,{title:"Table view",children:S.jsx(Ygr,{style:{width:18,height:18}})})})]}):void 0},sx:{alignItems:"center",flexShrink:0}}),S.jsx(wr,{sx:{flex:1,overflowY:"auto",minHeight:0,pt:1.5},children:p==="cards"?S.jsx(Igr,{data:w,selectedName:e?.path.graphName,onSelect:E,onOpen:A,isLoading:c,emptyStateType:j}):S.jsx(tn,{sx:{flex:1,display:"flex",flexDirection:"column","& .MuiPaper-root":{flex:1,display:"flex",flexDirection:"column"},"& .MuiTableContainer-root":{flex:1},"& table":{height:"100%"},"& tbody":{"& tr":{height:"auto"}}},children:S.jsx(PEn,{table:P})})}),b.length>0&&S.jsx(IAn,{paginationModel:{page:h,pageSize:vH},totalRowCount:p==="table"?F:b.length,setPage:D,maxNavigablePages:Qgr,showCount:!0})]})}function Xgr(){O0e("Saved Graphs");const[e,t]=I.useState(),[n,i]=I.useState(!0),r=I.useCallback(o=>{t(s=>{const a=typeof o=="function"?o(s):o;return a!==void 0&&i(!1),a})},[]);return S.jsxs(wr,{sx:{display:"grid",gridTemplateColumns:n?"1fr 48px":"1fr 500px",gridTemplateAreas:['"table rhs-panel"'].join(`
`),gap:n?2:4,padding:o=>`${o.spacing(4)} ${o.spacing(3)} ${o.spacing(4)} 95px`,height:"100%",maxHeight:"100%",overflow:"hidden",transition:"grid-template-columns 0.2s ease-in-out, gap 0.2s ease-in-out"},children:[S.jsx(tn,{sx:{gridArea:"table",overflow:"hidden",display:"flex",flexDirection:"column"},children:S.jsx(Zgr,{viewedGraph:e,setViewedGraph:r})}),n?S.jsxs(wr,{sx:{gridArea:"rhs-panel",height:"100%",width:"48px",minWidth:"48px",borderLeft:"1px solid rgba(0, 0, 0, 0.06)",display:"flex",flexDirection:"column",alignItems:"center",paddingTop:1},children:[S.jsx(uo,{title:"Expand Details",placement:"left",arrow:!0,children:S.jsx(Qr,{onClick:()=>i(!1),size:"small",sx:{color:"text.secondary",transition:"transform 0.2s ease-in-out","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)",transform:"translateX(-2px)"}},children:S.jsx(jF,{})})}),S.jsx(Xn,{sx:{writingMode:"vertical-rl",textOrientation:"mixed",transform:"rotate(180deg)",fontSize:"0.75rem",color:"text.disabled",marginTop:2,letterSpacing:"0.5px"},children:"Details"})]}):S.jsxs(wr,{sx:{gridArea:"rhs-panel",padding:o=>o.spacing(0,3,3,3),height:"100%",overflow:"hidden"},children:[S.jsx(kj,{tabs:["Details"],selectedTab:"Details",setSelectedTab:()=>{},slots:{rhs:S.jsx(tn,{sx:{display:"flex",alignItems:"center"},children:S.jsx(uo,{title:"Collapse panel",placement:"left",arrow:!0,children:S.jsx(Qr,{onClick:()=>i(!0),size:"small",sx:{color:"text.disabled","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},children:S.jsx(hye,{})})})})}}),S.jsx(eZe,{sx:o=>({marginTop:o.spacing(3),overflow:"hidden",flex:1,display:"flex",flexDirection:"column",minHeight:0,"&.MuiContainer-root":{padding:0,paddingRight:o.spacing(1)}}),children:S.jsx(EXe,{viewedEntity:e,slots:{nothingSelected:"To see exploration details, please select an exploration from the list."}})})]})]})}var w4t="pometry-search-rhs-collapsed";function Jgr({children:e}){const{masterGraphPath:t}=Nl(),n=YY(),[i,r]=iy(js.search),o=t??i.committed?.graphPath,[s,a]=I.useState(void 0),[l,c]=I.useState("Query Builder"),[u,d]=I.useState(()=>typeof window>"u"?!1:localStorage.getItem(w4t)==="true");I.useEffect(()=>{localStorage.setItem(w4t,String(u))},[u]);const h=I.useCallback(v=>{c("Selected"),a({type:"node",name:v,baseGraphPath:o??hb.fromName("")})},[o]),f=I.useCallback((v,y)=>{c("Selected"),a({type:"edge",identifiers:{src:v,dst:y},baseGraphPath:o??hb.fromName("")})},[o]),p=v=>{r(y=>v==="semantic"?{...y,committedSemanticInput:y?.semanticInput}:{...y,committed:y?.builderState})},g=I.useCallback(v=>{n(js.graph.$buildPath({searchParams:{graphSource:void 0,initialNodes:v,baseGraph:o}}))},[n,o]),m=I.useCallback((v,y)=>{n(js.graph.$buildPath({searchParams:{graphSource:v,initialNodes:y}}))},[n]);return S.jsx(UEn.Provider,{value:{committedBaseGraph:o,onNavigateTo:g,navigateAfterAddNode:m,viewedEntity:s,setViewedEntity:a,viewNode:h,viewEdge:f,onCommitSearch:p,selectedRhsTab:l,setSelectedRhsTab:c,isRhsPanelCollapsed:u,setIsRhsPanelCollapsed:d},children:e})}var emr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z"})]}),tmr=I.forwardRef(emr),NAn=tmr;function PAn(e){const t=cl();return S.jsx(aw,{size:"small",sx:[{"& .MuiSelect-select":{display:"flex",py:.75,fontSize:"0.8rem"}},...Array.isArray(e.sx)?e.sx:[e.sx]],IconComponent:function(){return S.jsx(NAn,{style:{marginRight:t.spacing(1),width:"18px",height:"18px",color:t.palette.text.disabled}})},...e})}function nmr({condition:e,onUpdateOp:t,onUpdateValue:n,onDelete:i}){const[r,o]=I.useState(void 0),s=I.useMemo(()=>{switch(e.type){case"u8":case"u16":case"u32":case"u64":case"i32":case"i64":case"f32":case"f64":return"number";case"bool":return"checkbox";case"str":return"text"}},[e.type]),a=I.useMemo(()=>e.variants.length>0&&s==="text"?S.jsx(aw,{onChange:c=>n(c.target.value),defaultValue:"",size:"small",sx:{fontSize:"0.8rem","& .MuiSelect-select":{py:.5}},children:e.variants.map(c=>S.jsx(bo,{value:c,children:c},c))}):s==="checkbox"?S.jsx(YQ,{size:"small",checked:(r??e.value)==="true",onChange:c=>{o(c.target.checked?"true":"false")},onBlur:()=>{typeof r=="string"&&n(r)}}):S.jsx(zQ,{type:s,placeholder:"Value",sx:{flex:1,fontSize:"0.8rem",px:1,py:.5,backgroundColor:"rgba(255, 255, 255, 0.5)",borderRadius:"6px",border:"1px solid rgba(0, 0, 0, 0.06)","&:hover":{borderColor:"rgba(0, 0, 0, 0.12)"},"&.Mui-focused":{borderColor:"primary.main"}},value:r??e.value,onChange:c=>{o(c.target.value)},onBlur:()=>{typeof r=="string"&&n(r)}}),[e.value,e.variants,n,r,s]),l=e.field.length>10?`${e.field.slice(0,9)}...`:e.field;return S.jsxs(wr,{direction:"row",spacing:1,alignItems:"center",sx:{py:.75,px:1,backgroundColor:"rgba(255, 255, 255, 0.5)",borderRadius:"6px",border:"1px solid rgba(0, 0, 0, 0.06)"},children:[S.jsx(uo,{title:e.field,children:S.jsx(Xn,{sx:{fontSize:"0.75rem",fontWeight:500,color:"text.secondary",minWidth:"70px",flexShrink:0},children:l})}),S.jsx(O9,{size:"small",sx:{minWidth:"70px"},children:S.jsxs(PAn,{value:e.op,onChange:c=>{const u=ZNn.safeParse(c.target.value);u.success&&t(u.data)},sx:{fontSize:"0.75rem","& .MuiSelect-select":{py:.5,px:1}},children:[S.jsx(bo,{value:"eq",children:"Is"}),S.jsx(bo,{value:"ne",children:"Not"}),s!=="number"?[S.jsx(bo,{value:"contains",children:"Contains"},"contains"),S.jsx(bo,{value:"notContains",children:"Excludes"},"notContains")]:[S.jsx(bo,{value:"ge",children:"≥"},"ge"),S.jsx(bo,{value:"le",children:"≤"},"le"),S.jsx(bo,{value:"gt",children:">"},"gt"),S.jsx(bo,{value:"lt",children:"<"},"lt")]]})}),S.jsx(tn,{sx:{flex:1,minWidth:0},children:a}),S.jsx(uo,{title:"Remove condition",children:S.jsx(Qr,{onClick:()=>i(),size:"small",sx:{p:.5,color:"text.disabled","&:hover":{color:"text.secondary",backgroundColor:"transparent"}},children:S.jsx(mye,{style:{width:"14px",height:"14px"}})})})]})}var imr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})]}),rmr=I.forwardRef(imr),omr=rmr;function smr({graphPath:e,onInsertCondition:t,type:n,availableFields:i,children:r}){return S.jsxs(tn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"10px",border:"1px solid rgba(0, 0, 0, 0.06)",p:1.5},children:[S.jsxs(wr,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{mb:1},children:[S.jsx(CXe,{graphPath:e,type:n}),i.length>0&&S.jsx(amr,{availableFields:i,onInsertCondition:t})]}),n!==""&&S.jsx(wr,{direction:"column",spacing:1,children:r})]})}function amr({availableFields:e,onInsertCondition:t}){const[n,i]=I.useState();return S.jsxs(S.Fragment,{children:[S.jsx(na,{onClick:r=>i(r.currentTarget),size:"small",startIcon:S.jsx(omr,{style:{width:"14px",height:"14px"}}),sx:{fontSize:"0.75rem",color:"text.disabled",textTransform:"none",py:.25,px:1,minWidth:"auto","&:hover":{backgroundColor:"action.hover"}},children:"Add"}),S.jsx(Mb,{anchorEl:n,open:n!==void 0,onClose:()=>i(void 0),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},slotProps:{paper:{sx:{borderRadius:"8px",boxShadow:"0 4px 16px rgba(0,0,0,0.1)",mt:.5}}},children:e.map(({field:r,type:o})=>S.jsx(bo,{onClick:()=>{t(r,o),i(void 0)},sx:{fontSize:"0.85rem",py:.75,px:2},children:r},r))})]})}function lmr({selected:e,groupRenderer:t}){return S.jsx(wr,{spacing:2,children:e.selectedConditionsByType.map(n=>S.jsx(I.Fragment,{children:t(n)},n.type))})}function MR({children:e,sx:t}){return S.jsx(tn,{sx:[{width:"100%",backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"8px",border:"1px solid rgba(0, 0, 0, 0.06)",padding:.75,transition:"all 0.15s ease-in-out","&:hover":{borderColor:"rgba(0, 0, 0, 0.12)"},"&:focus-within":{borderColor:"primary.main"}},...Array.isArray(t)?t:[t]],children:e})}function cmr({graphPath:e,range:t,setRange:n}){const{data:i}=rye(e,0);return S.jsxs(tn,{children:[S.jsx(Xn,{sx:{fontSize:"0.7rem",fontWeight:500,color:"text.disabled",textTransform:"uppercase",letterSpacing:"0.3px",mb:1},children:"Date range"}),S.jsx(MR,{children:S.jsx(Axn,{minTime:i?.earliestTime??new Date(0),maxTime:i?.latestTime??Date.now(),range:t,setRange:n})})]})}function MAn({icon:e,text:t,children:n}){return t?S.jsxs(tn,{sx:{mb:2},children:[t&&S.jsxs(Xn,{sx:{fontSize:"0.7rem",fontWeight:500,color:"#888888",textTransform:"uppercase",letterSpacing:"0.3px",mb:1,display:"flex",alignItems:"center",gap:.5,"& svg":{width:"14px",height:"14px",color:"#888888"}},children:[e,t]}),n]}):S.jsx(S.Fragment,{children:n})}var umr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"m21.41 11.58l-9-9A2 2 0 0 0 11 2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 .59 1.42l9 9A2 2 0 0 0 13 22a2 2 0 0 0 1.41-.59l7-7A2 2 0 0 0 22 13a2 2 0 0 0-.59-1.42M13 20l-9-9V4h7l9 9M6.5 5A1.5 1.5 0 1 1 5 6.5A1.5 1.5 0 0 1 6.5 5"})]}),dmr=I.forwardRef(umr),hmr=dmr;function fmr({graphPath:e,selected:t,setSelected:n}){return S.jsx(MAn,{icon:S.jsx(hmr,{}),text:"With:",children:S.jsxs(MR,{children:[S.jsx(jv,{fullWidth:!0,label:"Source ID",placeholder:"(If left blank, any source entity)",id:t.srcId,onChange:i=>{const r=i.target.value;n({...t,srcId:r!==""?r:void 0})}}),S.jsx(jv,{fullWidth:!0,label:"Destination ID",placeholder:"(If left blank, any destination entity)",id:t.dstId,onChange:i=>{const r=i.target.value;n({...t,dstId:r!==""?r:void 0})}}),S.jsx(pmr,{graphPath:e,layers:t.layers,onSetLayers:i=>{n({...t,layers:i.length!==0?i:void 0})}})]})})}function pmr({graphPath:e,layers:t,onSetLayers:n}){const{data:i}=BSn(e);return S.jsx(XQe,{multiple:!0,renderInput:r=>S.jsx(jv,{...r,label:"Layers",placeholder:(t?.length??0)===0?"(If left blank, any layer is applied)":""}),options:i??[],value:t??[],onChange:(r,o)=>n(o)})}function OAn({style:e}){return S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:e,children:S.jsx("path",{fill:"currentColor",d:"M18.61 21q-.994 0-1.687-.695q-.692-.696-.692-1.69q0-.369.103-.694q.104-.325.293-.605L6.685 7.373q-.281.188-.606.292t-.695.104q-.993 0-1.689-.697Q3 6.377 3 5.38t.697-1.688T5.389 3t1.688.696q.692.695.692 1.689q0 .356-.094.688t-.283.611l9.924 9.924q.28-.189.612-.283t.688-.094q.993 0 1.689.697q.695.697.695 1.692t-.697 1.688t-1.692.692"})})}var gmr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M12 4a4 4 0 0 1 4 4a4 4 0 0 1-4 4a4 4 0 0 1-4-4a4 4 0 0 1 4-4m0 10c4.42 0 8 1.79 8 4v2H4v-2c0-2.21 3.58-4 8-4"})]}),mmr=I.forwardRef(gmr),vmr=mmr,C4t={node:"Entity",edge:"Relationship"};function ymr({currentEntity:e,setEntity:t}){const n=cl(),i=r=>{t(r.target.value)};return S.jsx(MR,{children:S.jsx(PAn,{value:e,onChange:i,fullWidth:!0,children:Object.keys(C4t).map(r=>{const o=r==="node"?S.jsx(vmr,{color:n.palette.primary.main,style:{width:"16px",height:"16px"}}):S.jsx(OAn,{style:{width:"16px",height:"16px"}});return S.jsx(bo,{value:r,sx:{py:1},children:S.jsx(HEn,{icon:o,children:S.jsx(Xn,{sx:{fontSize:"0.8rem"},children:C4t[r]})})},r)})})})}function bmr(e){const t=cl();return S.jsx(MAn,{icon:S.jsx(avn,{color:t.palette.primary.dark}),text:"Choose a graph:",children:S.jsx(qEn,{...e})})}function _mr({graphPath:e,selectedTypes:t,deleteType:n,setTypes:i,getOptionLabel:r}){const o=cl(),{data:s,isLoading:a}=tbe(e);return S.jsx(MR,{children:S.jsx(XQe,{size:"small",popupIcon:S.jsx(NAn,{style:{width:"18px",height:"18px",color:o.palette.text.disabled}}),loading:a,multiple:!0,options:s?.availableTypes??[ope],getOptionLabel:r,value:t,filterSelectedOptions:!0,slotProps:{paper:{sx:{fontSize:"0.8rem","& .MuiAutocomplete-option":{fontSize:"0.8rem",py:.75}}}},sx:{"& .MuiInputBase-root":{gap:.5,flexWrap:"wrap",py:.25,fontSize:"0.8rem"},"& .MuiAutocomplete-input":{fontSize:"0.8rem"}},onChange:(l,c)=>{i(c)},renderInput:l=>S.jsx(jv,{...l,size:"small",placeholder:a?"Loading...":"Select type",sx:{"& .MuiInputBase-input":{fontSize:"0.8rem"},"& .MuiInputBase-input::placeholder":{fontSize:"0.8rem"}},InputProps:{...l.InputProps,endAdornment:S.jsxs(I.Fragment,{children:[a&&S.jsx(L9,{color:"inherit",size:16}),l.InputProps.endAdornment]})}}),renderTags:(l,c)=>l.map((u,d)=>{const{key:h,onDelete:f}=c({index:d});return S.jsx(wmr,{graphPath:e,type:u,onDelete:p=>{f(p),n(u)}},h)})})})}function wmr({graphPath:e,type:t,onDelete:n}){const i=cl();return S.jsxs(tn,{sx:{display:"inline-flex",alignItems:"center",backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:"4px",padding:"2px 4px 2px 6px",gap:.5,fontSize:"0.8rem",transition:"background-color 0.15s ease-in-out","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.08)"}},children:[S.jsx(CXe,{graphPath:e,type:t}),S.jsx(Qr,{onClick:n,size:"small",sx:{padding:"2px","& svg":{width:"14px",height:"14px",color:i.palette.text.disabled},"&:hover svg":{color:i.palette.text.secondary}},children:S.jsx(mye,{})})]})}var Cmr=()=>{const[e,t]=iy(js.search),{masterGraphPath:n}=Nl(),i=n??e.builderState?.graphPath,{data:r,isLoading:o}=tbe(i),{data:s,isLoading:a}=BSn(i),l=I.useMemo(()=>{if(e.builderState?.selected.entityType==="node"){const d=e.builderState.selected.selectedConditionsByType?.map(({type:h,conditions:f})=>{const p=r?.schema?.get(h),g=[...p?.entries()??[]].map(([v,{type:y}])=>({field:v,type:y})),m=[{field:zSn,type:"str"},...g];return{type:h,conditions:f.map(v=>({...v,...p?.get(v.field)??{type:"str",variants:[]}})),availableFields:m}})??[];return{entityType:"node",selectedConditionsByType:d,selectedTypes:d.map(({type:h})=>h)??[]}}return e.builderState?.selected.entityType==="edge"?{...e.builderState.selected,entityType:"edge",availableLayers:s??[]}:{entityType:"node",selectedConditionsByType:[],selectedTypes:[],availableTypes:[]}},[e.builderState.selected,r,s]),c={...e.builderState,graphPath:i,range:e.builderState?.range??[void 0,void 0],selected:l},u=d=>{t(h=>({...h,builderState:d}))};return{state:c,isLoading:o||a,actions:{setInput:u,setGraphPath:d=>{const h=c.selected,f=h.entityType==="node"?{...h,selectedConditionsByType:[]}:{...h,srcId:void 0,dstId:void 0,layers:void 0};u({...c,graphPath:d,selected:f})},setRange:d=>{u({...c,range:[d[0]??void 0,d[1]??void 0]})},setSelected:d=>{u({...c,selected:d})},setEntity:d=>{u(d==="node"||d==="edge"?{...c,selected:{entityType:d}}:{...c,selected:{entityType:"node"}})},setTypes:d=>{c.selected.entityType==="node"&&u({...c,selected:{...c.selected,selectedConditionsByType:d.map(h=>({type:h,conditions:[]}))}})},deleteType:d=>{c.selected.entityType==="node"&&u({...c,selected:{...c.selected,selectedConditionsByType:c.selected.selectedConditionsByType?.filter(h=>h.type!==d)}})},insertCondition:(d,h,f)=>{if(c.selected.entityType==="node"){const p=TOe(c,d,g=>({...g,conditions:[...g.conditions,{key:`${h}-${Math.random()}`,field:h,op:"eq",value:"",type:f}]}));u({...c,selected:{...c.selected,selectedConditionsByType:p}})}},updateCondition:(d,h,f,p)=>{if(c.selected.entityType==="node"){const g=TOe(c,d,m=>({...m,conditions:m.conditions.map(v=>v.key===h?{...v,op:f,value:p}:v)}));u({...c,selected:{...c.selected,selectedConditionsByType:g}})}},deleteCondition:(d,h)=>{if(c.selected.entityType==="node"){const f=TOe(c,d,p=>({...p,conditions:p.conditions.filter(g=>g.key!==h)}));u({...c,selected:{...c.selected,selectedConditionsByType:f}})}},clearAll:()=>{t({})}}}};function TOe(e,t,n){if(!(e.selected===void 0||e.selected.entityType==="edge"))return e.selected.selectedConditionsByType?.map(i=>i.type===t?n(i):i)}var Smr=(e,t)=>{const{data:n}=rye(e?.graphPath),i={question:e?.question,graphPath:e?.graphPath,selectedType:e?.type,startDate:e?.startDate??void 0,endDate:e?.endDate??void 0,earliestTime:n?.earliestTime??void 0,latestTime:n?.latestTime??void 0},r=o=>{t(s=>({...s,semanticInput:{question:void 0,mode:void 0,type:void 0,graphPath:void 0,startDate:void 0,endDate:void 0,...o}}))};return{semanticSearchState:i,semanticSearchActions:{setQuery:o=>{r({...e,question:o})},setType:o=>{r({...e,type:o})},setGraphPath:o=>{r({...e,graphPath:o})},setDateRange:([o,s])=>{r({...e,startDate:o,endDate:s})}}}};function xmr(e){return S.jsx(aw,{...e,variant:"outlined",sx:{boxShadow:"none",".MuiOutlinedInput-notchedOutline":{border:0},"& div":{padding:0},backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",border:"1px solid rgba(0, 0, 0, 0.06)",borderRadius:"8px",padding:1,paddingLeft:2,"&:hover":{borderColor:"rgba(0, 0, 0, 0.12)"}},children:e.children})}var Emr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5l-1.5 1.5l-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16A6.5 6.5 0 0 1 3 9.5A6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14S14 12 14 9.5S12 5 9.5 5"})]}),Amr=I.forwardRef(Emr),RAn=Amr;function Dmr({onSubmit:e,setSemanticSearchMessage:t,onSemanticSearch:n,state:i}){const[r,o]=I.useState(""),s=cl();return S.jsx(tn,{component:"form",sx:{display:"flex",minHeight:"42px"},children:S.jsxs(wr,{direction:"row",width:"100%",alignItems:"center",children:[S.jsx(tn,{sx:{display:"flex",alignItems:"center",px:1},children:S.jsx(RAn,{color:s.palette.primary.main,width:18})}),S.jsx(wr,{direction:"row",alignItems:"center",sx:{flex:1,display:"flex",padding:a=>a.spacing(.5,1),overflowX:"auto",overflowY:"hidden"},spacing:.8,children:S.jsx(jv,{variant:"standard",fullWidth:!0,placeholder:"Type your question...",value:r,onChange:a=>{o(a.target.value)},InputProps:{disableUnderline:!0},onKeyDown:a=>{if(a.key==="Enter"){a.preventDefault();const c=a.target.value;if(n!==void 0&&t!==void 0){if(!i?.graphPath){ua.error("Please select a graph");return}t(c),n()}else e?.(c);a.currentTarget.blur()}}})}),S.jsx(tn,{component:"button",type:"button",onClick:()=>o(""),sx:{visibility:r.length===0?"hidden":"visible",display:"flex",alignItems:"center",justifyContent:"center",px:1,py:.5,border:"none",background:"transparent",cursor:"pointer",borderRadius:"4px","&:hover":{backgroundColor:"rgba(0,0,0,0.04)"}},children:S.jsx(mye,{style:{color:s.palette.text.disabled,fontSize:16}})})]})})}var Tmr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5l-1.5 1.5l-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16A6.5 6.5 0 0 1 3 9.5A6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14S14 12 14 9.5S12 5 9.5 5"})]}),kmr=I.forwardRef(Tmr),NXe=kmr;function Imr({setSemanticSearchMessage:e}){const[t,n]=I.useState("entity"),{state:i,actions:r}=Cmr(),{masterGraphPath:o,nodeTypeLabels:s,openSource:a}=Nl(),{onCommitSearch:l}=RC(),[c,u]=iy(js.search),{semanticSearchState:d,semanticSearchActions:h}=Smr(c?.semanticInput,u),{data:f}=tbe(d.graphPath),p=i.graphPath===void 0&&i.range[0]===void 0&&i.range[1]===void 0&&(i.selected.entityType==="node"&&i.selected.selectedTypes.length===0||i.selected.entityType==="edge"&&i.selected.layers===void 0&&i.selected.srcId===void 0&&i.selected.dstId===void 0),g=i.graphPath===void 0||i.selected.entityType==="node"&&i.selected.selectedConditionsByType.length===0,m=d.graphPath===void 0,v=t==="entity"?p:!0,y=t==="entity"?g:m,b=()=>{if(t==="entity")l("normal");else{if(!d.graphPath){ua.error("Please select a graph");return}l("semantic")}};return S.jsxs(wr,{sx:{overflow:"hidden","& .MuiOutlinedInput-notchedOutline":{border:"none"}},children:[S.jsxs(tn,{sx:{overflow:"auto"},children:[a===!1&&S.jsx(tn,{sx:{mb:2},children:S.jsxs(kbn,{value:t,exclusive:!0,onChange:(w,E)=>E&&n(E),size:"small",fullWidth:!0,sx:{"& .MuiToggleButton-root":{textTransform:"none",fontSize:"0.85rem",fontWeight:500,py:1,border:1,borderColor:"divider","&.Mui-selected":{backgroundColor:"primary.main",color:"#fff","&:hover":{backgroundColor:"primary.dark"}}}},children:[S.jsx(qhe,{value:"entity",children:"Entity Search"}),S.jsx(qhe,{value:"semantic",children:"Semantic Search"})]})}),t==="semantic"?S.jsxs(tn,{sx:{mb:2},children:[S.jsx(Xn,{sx:{fontSize:"0.7rem",fontWeight:500,color:"text.disabled",textTransform:"uppercase",letterSpacing:"0.3px",mb:1},children:"Graph"}),S.jsx(MR,{sx:{padding:0,cursor:"pointer"},children:S.jsx(qEn,{graphPath:d.graphPath,setGraphPath:h.setGraphPath,size:"small",sx:{backgroundColor:"transparent",boxShadow:"none",width:"100%",justifyContent:"flex-start",padding:1,"&:hover":{backgroundColor:"transparent",boxShadow:"none"}}})})]}):o===void 0&&S.jsx(tn,{sx:{mb:2},children:S.jsx(bmr,{graphPath:i.graphPath,setGraphPath:r.setGraphPath})}),t==="semantic"?S.jsxs(tn,{sx:{mb:2},children:[S.jsx(Xn,{sx:{fontSize:"0.7rem",fontWeight:500,color:"text.disabled",textTransform:"uppercase",letterSpacing:"0.3px",mb:1},children:"Date Range"}),S.jsx(MR,{children:S.jsx(Axn,{minTime:d.earliestTime??new Date(0),maxTime:d.latestTime??Date.now(),range:[d.startDate,d.endDate],setRange:h.setDateRange})})]}):S.jsx(tn,{sx:{mb:2},children:S.jsx(cmr,{graphPath:i.graphPath,range:i.range,setRange:r.setRange})}),S.jsx(cE,{sx:{my:2,borderColor:"divider"}}),t==="semantic"?S.jsxs(tn,{children:[f?.availableTypes!==void 0&&f.availableTypes.length>0&&S.jsxs(tn,{sx:{mb:2},children:[S.jsx(Xn,{sx:{fontSize:"0.7rem",fontWeight:500,color:"text.disabled",textTransform:"uppercase",letterSpacing:"0.3px",mb:1},children:"Filter by type (optional)"}),S.jsxs(xmr,{displayEmpty:!0,defaultValue:"",renderValue:w=>w===""?"All types":S.jsx(S.Fragment,{children:w}),value:d.selectedType??"",onChange:w=>{const A=w.target.value;Ku(A!==null),h.setType(A??f.availableTypes?.[0])},children:[S.jsx(bo,{value:"",children:"All types"}),f.availableTypes.map(w=>S.jsx(bo,{value:w,children:w},w))]})]}),S.jsxs(tn,{sx:{mb:2},children:[S.jsx(Xn,{sx:{fontSize:"0.7rem",fontWeight:500,color:"text.disabled",textTransform:"uppercase",letterSpacing:"0.3px",mb:1},children:"Ask a question"}),S.jsx(MR,{sx:{padding:0},children:S.jsx(Dmr,{setSemanticSearchMessage:e,onSemanticSearch:()=>l("semantic"),state:d})})]})]}):S.jsxs(S.Fragment,{children:[S.jsxs(tn,{sx:{mb:2},children:[S.jsx(Xn,{sx:{fontSize:"0.7rem",fontWeight:500,color:"text.disabled",textTransform:"uppercase",letterSpacing:"0.3px",mb:1},children:"Search for"}),S.jsx(ymr,{currentEntity:i.selected.entityType,setEntity:r.setEntity})]}),i.selected.entityType==="node"&&S.jsxs(S.Fragment,{children:[S.jsxs(tn,{sx:{mb:2},children:[S.jsx(Xn,{sx:{fontSize:"0.7rem",fontWeight:500,color:"text.disabled",textTransform:"uppercase",letterSpacing:"0.3px",mb:1},children:"Type"}),S.jsx(_mr,{graphPath:i.graphPath,selectedTypes:i.selected.selectedTypes,deleteType:r.deleteType,setTypes:r.setTypes,getOptionLabel:w=>s?.[w]??w})]}),i.selected.selectedTypes.length>0&&S.jsxs(S.Fragment,{children:[S.jsx(cE,{sx:{my:2,borderColor:"divider"}}),S.jsxs(tn,{sx:{mb:2},children:[S.jsx(Xn,{sx:{fontSize:"0.7rem",fontWeight:500,color:"text.disabled",textTransform:"uppercase",letterSpacing:"0.3px",mb:1.5},children:"Filters"}),S.jsx(lmr,{selected:i.selected,groupRenderer:({type:w,availableFields:E,conditions:A})=>S.jsx(smr,{graphPath:i.graphPath,type:w,availableFields:E,onInsertCondition:(D,T)=>r.insertCondition(w,D,T),children:A.map(D=>S.jsx(nmr,{condition:D,onUpdateOp:T=>r.updateCondition(w,D.key,T,D.value),onUpdateValue:T=>r.updateCondition(w,D.key,D.op,T),onDelete:()=>r.deleteCondition(w,D.key)},D.key))})})]})]})]}),i.selected.entityType==="edge"&&S.jsx(fmr,{graphPath:i.graphPath,selected:i.selected,setSelected:r.setSelected})]})]}),S.jsxs(wr,{spacing:1.5,sx:{pt:2,pb:1,mt:"auto",flexShrink:0,borderTop:"1px solid rgba(0, 0, 0, 0.06)"},children:[S.jsx(na,{disabled:y,variant:"contained",fullWidth:!0,onClick:b,startIcon:S.jsx(NXe,{}),sx:{py:1.25},children:"Search"}),t==="entity"&&S.jsx(na,{disabled:v,variant:"text",fullWidth:!0,onClick:r.clearAll,sx:{py:1,color:"text.disabled",fontSize:"0.85rem","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.02)"}},children:"Clear all"})]})]})}function Lmr({setSemanticSearchMessage:e,sx:t}){const{viewedEntity:n,selectedRhsTab:i,setSelectedRhsTab:r,isRhsPanelCollapsed:o,setIsRhsPanelCollapsed:s}=RC(),a={"Query Builder":S.jsx(Imr,{setSemanticSearchMessage:e}),Selected:S.jsx(EXe,{viewedEntity:n,slots:{nothingSelected:"To see entity details, please select an entity from the search results."},options:{showOpenButtons:!0}})};return o?S.jsx(Txn,{label:i,onExpand:()=>s(!1),sx:[{borderLeft:"1px solid rgba(0, 0, 0, 0.06)"},...Array.isArray(t)?t:[t]]}):S.jsxs(wr,{sx:[{padding:l=>l.spacing(0,3,3,3),height:"100%",overflow:"hidden"},...Array.isArray(t)?t:[t]],children:[S.jsx(kj,{tabs:["Query Builder","Selected"],selectedTab:i,setSelectedTab:r,slots:{rhs:S.jsx(tn,{sx:{display:"flex",alignItems:"center"},children:S.jsx(uo,{title:"Collapse panel",placement:"left",arrow:!0,children:S.jsx(Qr,{onClick:()=>s(!0),size:"small",sx:{color:"text.secondary",transition:"transform 0.2s ease-in-out","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)",transform:"translateX(2px)"}},children:S.jsx(jF,{style:{transform:"rotate(180deg)"}})})})})}}),S.jsx(eZe,{sx:l=>({marginTop:i==="Selected"&&!n?0:l.spacing(3),overflow:"hidden",flex:1,display:"flex",flexDirection:"column",minHeight:0,"&.MuiContainer-root":{padding:0,paddingRight:l.spacing(1)}}),children:a[i]})]})}function FAn(e){return[{accessorKey:"id",header:"",Header:null,enableColumnActions:!1,enableColumnFilter:!1,enableColumnFilterModes:!1,enableColumnOrdering:!1,enableSorting:!1,muiTableBodyCellProps:{sx:{padding:0,borderBottom:"none",borderTop:"none"}},muiTableHeadCellProps:{sx:{padding:0,borderBottom:"none",borderTop:"none"}},Cell:e}]}var Nmr="None";function gK(e,t){return(e.builderState?.selected.entityType==="node"?e.builderState.selected.typeColors:void 0)?.get(t??Nmr)}function fZ(e,t){return Object.keys(t).forEach(function(n){n==="default"||n==="__esModule"||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})}),e}function pZ(e,t,n,i){Object.defineProperty(e,t,{get:n,set:i,enumerable:!0,configurable:!0})}var gZ={},BAn={};pZ(BAn,"ContextMenu",()=>Fmr);var jAn={};pZ(jAn,"nestedMenuItemsFromObject",()=>yye);var zAn={};pZ(zAn,"IconMenuItem",()=>zx);var Pmr=Mt(bo)({display:"flex",justifyContent:"space-between",paddingLeft:"4px",paddingRight:"4px"}),Mmr=Mt(Xn)({paddingLeft:"8px",paddingRight:"8px",textAlign:"left"}),Omr=Mt(tn)({display:"flex"}),zx=I.forwardRef(function({MenuItemProps:t,className:n,label:i,leftIcon:r,renderLabel:o,rightIcon:s,...a},l){return S.jsxs(Pmr,{...t,ref:l,className:n,...a,children:[S.jsxs(Omr,{children:[r,o?o():S.jsx(Mmr,{children:i})]}),s]})}),VAn={};pZ(VAn,"NestedMenuItem",()=>mK);var Rmr=e=>S.jsx(Phe,{...e,children:S.jsx("path",{d:"M9.29 6.71c-.39.39-.39 1.02 0 1.41L13.17 12l-3.88 3.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L10.7 6.7c-.38-.38-1.02-.38-1.41.01z"})}),mK=I.forwardRef(function(t,n){const{parentMenuOpen:i,label:r,renderLabel:o,rightIcon:s=S.jsx(Rmr,{}),leftIcon:a=null,children:l,className:c,tabIndex:u,ContainerProps:d={},MenuProps:h,delay:f=0,...p}=t,{ref:g,...m}=d,v=I.useRef(null);I.useImperativeHandle(n,()=>v.current);const y=I.useRef(null);I.useImperativeHandle(g,()=>y.current);const b=I.useRef(null),w=I.useRef(null),[E,A]=I.useState(!1),D=W=>{w.current=setTimeout(()=>{t.disabled||A(!0),m.onMouseEnter&&m.onMouseEnter(W)},f)},T=W=>{w.current&&clearTimeout(w.current),A(!1),m.onMouseLeave&&m.onMouseLeave(W)},M=()=>{const W=y.current?.ownerDocument.activeElement??null;if(b.current==null)return!1;for(const J of b.current.children)if(J===W)return!0;return!1},P=W=>{W.target===y.current&&!t.disabled&&A(!0),m.onFocus&&m.onFocus(W)},F=W=>{if(W.key==="Escape")return;M()&&W.stopPropagation();const J=y.current?.ownerDocument.activeElement;W.key==="ArrowLeft"&&M()&&y.current?.focus(),W.key==="ArrowRight"&&W.target===y.current&&W.target===J&&b.current?.children[0]?.focus()},N=E&&i;let j;return t.disabled||(j=u!==void 0?u:-1),S.jsxs("div",{...m,ref:y,onFocus:P,tabIndex:j,onMouseEnter:D,onMouseLeave:T,onKeyDown:F,children:[S.jsx(zx,{MenuItemProps:p,className:c,ref:v,leftIcon:a,rightIcon:s,label:r,renderLabel:o}),S.jsx(Mb,{style:{pointerEvents:"none"},anchorEl:v.current,anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"left",vertical:"top"},open:N,autoFocus:!1,disableAutoFocus:!0,disableEnforceFocus:!0,onClose:()=>{A(!1)},...h,children:S.jsx("div",{ref:b,style:{pointerEvents:"auto"},children:l})})]})});mK.displayName="NestedMenuItem";function yye({menuItemsData:e,isOpen:t,handleClose:n}){return e.map(i=>{const{leftIcon:r,rightIcon:o,label:s,items:a,callback:l,sx:c,disabled:u,delay:d}=i;return a&&a.length>0?S.jsx(mK,{leftIcon:r,rightIcon:o,label:s,parentMenuOpen:t,sx:c,delay:d,disabled:u,children:yye({handleClose:n,isOpen:t,menuItemsData:a})},s):S.jsx(zx,{leftIcon:r,rightIcon:o,label:s,onClick:h=>{n(),l&&l(h,i)},sx:c,disabled:u},s)})}var Fmr=I.forwardRef(function({children:t,menuItems:n,menuItemsData:i},r){const o=r??I.useRef(null),[s,a]=I.useState(null),[l,c]=I.useState(null),u=()=>a(null),d=p=>{if(s!==null&&a(null),p.button!==2)return;const g=o.current.getBoundingClientRect();p.clientX<g.left||p.clientX>g.right||p.clientY<g.top||p.clientY>g.bottom||c({left:p.clientX,top:p.clientY})},h=p=>{const g=p.clientY,m=p.clientX;l!==null&&l.top===g&&l.left===m&&a({left:p.clientX,top:p.clientY})},f=n??(i&&yye({handleClose:u,isOpen:!!s,menuItemsData:i}));return S.jsxs("div",{ref:o,onContextMenu:p=>p.preventDefault(),onMouseDown:d,onMouseUp:h,children:[s&&S.jsx(Mb,{onContextMenu:p=>p.preventDefault(),open:!!s,onClose:()=>a(null),anchorReference:"anchorPosition",anchorPosition:s,children:f}),t]})}),HAn={};pZ(HAn,"NestedDropdown",()=>jmr);var Bmr=e=>S.jsx(Phe,{...e,children:S.jsx("path",{d:"M8.12 9.29 12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0z"})}),jmr=I.forwardRef(function(t,n){const[i,r]=I.useState(null),o=!!i,{menuItemsData:s,onClick:a,ButtonProps:l,MenuProps:c,...u}=t,d=p=>{r(p.currentTarget),a&&a(p)},h=()=>r(null),f=yye({handleClose:h,isOpen:o,menuItemsData:s?.items??[]});return S.jsxs("div",{ref:n,...u,children:[S.jsx(na,{onClick:d,endIcon:S.jsx(Bmr,{}),...l,children:s?.label??"Menu"}),S.jsx(Mb,{anchorEl:i,open:o,onClose:h,...c,children:f})]})});fZ(gZ,BAn);fZ(gZ,zAn);fZ(gZ,HAn);fZ(gZ,VAn);fZ(gZ,jAn);var zmr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M16.5 6v11.5a4 4 0 0 1-4 4a4 4 0 0 1-4-4V5A2.5 2.5 0 0 1 11 2.5A2.5 2.5 0 0 1 13.5 5v10.5a1 1 0 0 1-1 1a1 1 0 0 1-1-1V6H10v9.5a2.5 2.5 0 0 0 2.5 2.5a2.5 2.5 0 0 0 2.5-2.5V5a4 4 0 0 0-4-4a4 4 0 0 0-4 4v12.5a5.5 5.5 0 0 0 5.5 5.5a5.5 5.5 0 0 0 5.5-5.5V6z"})]}),Vmr=I.forwardRef(zmr),vU=Vmr;function WAn({nodes:e,menuPosition:t,sx:n}){const{masterGraphPath:i}=Nl(),{onNavigateTo:r,navigateAfterAddNode:o}=RC(),[s,a]=I.useState(!1),[l,c]=I.useState(void 0),u=S.jsx($En,{title:"Choose a graph to navigate to",open:s,setOpen:a,graphPath:l,setGraphPath:c,onConfirm:()=>{l!==void 0?o(l,e):r(e)}});return t==="right-click-menu"?S.jsxs(S.Fragment,{children:[i&&S.jsxs(S.Fragment,{children:[S.jsx(zx,{label:"Choose a graph to open this in",leftIcon:S.jsx(vU,{}),rightIcon:S.jsx(S.Fragment,{}),onClick:()=>a(!0)}),u]}),S.jsx(zx,{leftIcon:S.jsx(vU,{}),onClick:()=>{r(e)},label:"Open in graph view"})]}):S.jsxs(S.Fragment,{children:[i&&S.jsxs(S.Fragment,{children:[S.jsx(uo,{title:"Open all items in a chosen graph",arrow:!0,children:S.jsx(Qr,{onClick:()=>a(!0),sx:n,children:S.jsx(vU,{})})}),u]}),S.jsx(uo,{title:"Open all items in a new graph",arrow:!0,children:S.jsx(Qr,{onClick:()=>r(e),sx:n,children:S.jsx(vU,{})})})]})}var Hmr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M12 9a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3m0-4.5c5 0 9.27 3.11 11 7.5c-1.73 4.39-6 7.5-11 7.5S2.73 16.39 1 12c1.73-4.39 6-7.5 11-7.5M3.18 12a9.821 9.821 0 0 0 17.64 0a9.821 9.821 0 0 0-17.64 0"})]}),Wmr=I.forwardRef(Hmr),Umr=Wmr;function Zje({selectedTab:e,node:t,onCloseMenu:n}){const{viewNode:i}=RC(),{pinnedNodes:r,pinNode:o,unpinNode:s}=dZ(),a=e?.startsWith("Pinned")&&r?.some(l=>l.name===t)?S.jsx(zx,{leftIcon:S.jsx(SXe,{}),onClick:()=>{n(),s?.(t)},label:"Unpin"}):S.jsx(zx,{leftIcon:S.jsx(xXe,{}),onClick:()=>{n(),o?.(t)},label:"Add to Pinned"});return S.jsxs(S.Fragment,{children:[S.jsx(zx,{leftIcon:S.jsx(Umr,{}),label:"View information",onClick:()=>{n(),i(t)}}),a,S.jsx(WAn,{nodes:[t],menuPosition:"right-click-menu"})]})}function UAn({title:e,isSelected:t,content:n,icon:i,chipLabel:r,onClick:o,onDoubleClick:s,RightClickComponent:a}){const[l,c]=I.useState(void 0),u=()=>{c(void 0)},d=f=>{f.preventDefault(),c({x:f.clientX,y:f.clientY})},h=f=>{switch(f.detail){case 1:o?.(f);break;case 2:s?.(f);break}};return S.jsxs(S.Fragment,{children:[S.jsxs(vg,{sx:f=>({display:"flex",flexDirection:"column",alignItems:"stretch",width:"100%",padding:f.spacing(2,1.5,2,.5),backgroundColor:t?"rgba(227, 6, 122, 0.06)":"transparent",border:t?"1px solid rgba(227, 6, 122, 0.15)":"1px solid transparent",borderRadius:"8px",cursor:"pointer",transition:"all 0.15s ease-in-out",position:"relative",textAlign:"left","&:hover":{backgroundColor:t?"rgba(227, 6, 122, 0.08)":"rgba(23, 19, 27, 0.02)"}}),onContextMenu:d,onClick:h,children:[S.jsxs(wr,{direction:"row",alignItems:"center",spacing:2,sx:{width:"100%"},children:[S.jsx(tn,{sx:f=>({width:36,height:36,borderRadius:"8px",backgroundColor:"rgba(227, 6, 122, 0.04)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,"& svg":{width:20,height:20,color:f.palette.primary.main}}),children:i}),S.jsx(Xn,{sx:{fontWeight:600,fontSize:"0.95rem",color:"text.primary",flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),r&&S.jsx(D2,{label:r,size:"small",sx:{fontSize:"0.65rem",height:"20px",backgroundColor:"grey.50",color:"text.disabled",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.02em","& .MuiChip-label":{px:1}}})]}),S.jsx(Xn,{sx:{fontSize:"0.8rem",color:"text.disabled",marginTop:1,marginLeft:6.5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n})]}),S.jsx(Mb,{anchorReference:"anchorPosition",anchorPosition:l!==void 0?{top:l.y,left:l.x}:void 0,open:l!==void 0,onClose:u,children:S.jsx(a,{parentMenuOpen:l!==void 0,onCloseMenu:u})})]})}function Xje(e,t){const{getTypeIcon:n}=Nl(),i=cl();return n===void 0||e===void 0?S.jsx(WEn,{style:{gridArea:"icon",color:t}}):n(e,{color:i.palette.primary.dark,gridArea:"icon",fontSize:"1.5rem"})}var $mr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6z"})]}),qmr=I.forwardRef($mr),S4t=qmr;function Gmr({src:e,dst:t,layerNames:n}){const{viewedEntity:i,viewEdge:r,onNavigateTo:o}=RC(),{pinNode:s}=dZ(),a=i?.type==="edge"&&i.identifiers.src===e.id&&i.identifiers.dst===t.id,l=n.length>0?n.join(" · "):`${e.id} → ${t.id}`,c=Xje(e.nodeType,e.nodeColors),u=Xje(t.nodeType,t.nodeColors);return S.jsx(UAn,{title:`${e.id} - ${t.id}`,isSelected:a,icon:S.jsx(OAn,{style:{width:"16px",height:"16px"}}),chipLabel:"Edge",onClick:()=>r(e.id,t.id),onDoubleClick:()=>o([e.id,t.id]),RightClickComponent:function({parentMenuOpen:h,onCloseMenu:f}){const{onNavigateTo:p}=RC();return S.jsxs(S.Fragment,{children:[S.jsx(mK,{label:e.id,parentMenuOpen:h,leftIcon:c,rightIcon:S.jsx(S4t,{style:{marginRight:"0.5rem",fontSize:"1rem"}}),children:S.jsx(Zje,{node:e.id,onCloseMenu:f})}),S.jsx(mK,{label:t.id,parentMenuOpen:h,leftIcon:u,rightIcon:S.jsx(S4t,{style:{marginRight:"0.5rem",fontSize:"1rem"}}),children:S.jsx(Zje,{node:t.id,onCloseMenu:f})}),S.jsx(zx,{leftIcon:S.jsx(xXe,{}),label:"Pin both entities",onClick:()=>{f(),s(e.id),s(t.id)}}),S.jsx(zx,{leftIcon:S.jsx(vU,{}),label:"Open relationship in graph",onClick:()=>{f(),p([e.id,t.id])}})]})},content:l})}var Kmr=11;function mZ({tabTitles:e,selectedTab:t,setSelectedTab:n,totalItemCount:i,pagination:r,hasSearched:o=!1,...s}){return e.length===0&&!o?S.jsxs(tn,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",gap:2},children:[S.jsx(NXe,{style:{width:48,height:48,color:"divider"}}),S.jsx(Xn,{variant:"h6",sx:{color:"text.secondary",fontWeight:500},children:"Start Your Search"}),S.jsx(Xn,{sx:{color:"text.disabled",textAlign:"center",maxWidth:300},children:"Use the Query Builder on the right to find entities and relationships in your graph."})]}):S.jsxs(wr,{sx:{height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},children:[e.length>0&&S.jsx(kj,{tabs:e,selectedTab:t,setSelectedTab:n,sx:{alignItems:"center",flexShrink:0}}),S.jsx(Ymr,{pagination:r,totalItemCount:i,hasSearched:o,...s})]})}function Ymr({data:e,columns:t,pagination:n,totalItemCount:i,setPage:r,serverSidePagination:o,isLoading:s,noResultsText:a,mrtOptions:l,hasSearched:c=!1}){return!s&&(e===void 0||e.length===0)?c?S.jsx(Szi,{message:a?.message??"Nothing turned up!",caption:a?.caption??"You may want to try using different keywords, checking for typos, or adjusting your filters.",sx:{paddingTop:20}}):S.jsxs(tn,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",gap:2},children:[S.jsx(NXe,{style:{width:48,height:48,color:"divider"}}),S.jsx(Xn,{variant:"h6",sx:{color:"text.secondary",fontWeight:500},children:"Start Your Search"}),S.jsx(Xn,{sx:{color:"text.disabled",textAlign:"center",maxWidth:300},children:"Use the Query Builder on the right to find entities and relationships in your graph."})]}):S.jsxs(wr,{sx:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",minHeight:0},children:[S.jsx(wr,{sx:{flex:1,overflowY:"auto",minHeight:0},children:S.jsx(fye,{columns:t,data:e??[],pagination:n,options:{disableHover:!0,enableToolbarInternalActions:!1,enableTopToolbar:!1,tableOptions:{manualPagination:o,state:{isLoading:s,...l?.tableOptions?.state},...l?.tableOptions},pageSize:o?void 0:8,...l}})}),S.jsx(IAn,{paginationModel:n,totalRowCount:i,setPage:r,maxNavigablePages:Kmr,showCount:!0})]})}function x4t(e){return e!==null&&L0e(e)?e.getTime():new Date().getTime()}function $An(e,t){const{data:n}=rye(t,0),i=n?.earliestTime,r=n?.latestTime??void 0;return I.useMemo(()=>{const[o,s]=e;if(!(o===void 0&&s===void 0))return{start:o?x4t(o):i??0,end:s?x4t(s):r!==void 0?r+1:new Date().getTime()}},[e,i,r])}var Qmr=(e,t,n,i)=>{const r=$An(e?.range??[void 0,void 0],e?.graphPath),{types:o,conditions:s}=I.useMemo(()=>{const c=e?.selected??{entityType:"node",selectedConditionsByType:[]};if(c?.entityType!=="node")return{types:[],conditions:[]};const u=c.selectedConditionsByType?.find(p=>p.type===t);if(u===void 0)return{types:[],conditions:[]};const{type:d,conditions:h}=u;let f=[d];return d==="None"?f=["_default"]:d===ope&&(f=void 0),{types:f,conditions:h.map(({field:p,value:g,op:m,type:v})=>({name:p,operator:m,value:Zmr(v,g)})),typeColors:c}},[e,t]),{data:a,isLoading:l}=Rtr(e?.graphPath,{window:r,types:o,conditions:s,pageIndex:n,limit:i});return{queryResult:a,searchIsLoading:l}};function Zmr(e,t){switch(e){case"u8":case"u16":case"u32":case"u64":case"i32":case"i64":return{[e]:Number.parseInt(t)};case"f32":case"f64":return{[e]:Number.parseFloat(t)};case"bool":return{[e]:t==="true"};case"str":return{[e]:t}}}function Xmr({pagination:e,setPage:t,tabTitles:n,selectedTab:i,setSelectedTab:r}){const{committedBaseGraph:o}=RC(),[s]=iy(js.search),a=s.committed.range,l=s.committed.selected.entityType==="edge"?s.committed.selected:void 0,c=$An(a,o),u=[...c!==void 0?[{window:c}]:[],...l?.layers!==void 0?[{layers:l?.layers}]:[]],{data:d,isLoading:h}=Str(o,{views:u,srcId:l?.srcId,dstId:l?.dstId},e.page,e.pageSize);if(l===void 0)return;const f=Jmr();return S.jsx(mZ,{data:d?.page.map(p=>({...p,src:{...p.src,nodeColors:gK(s,p.src.nodeType)},dst:{...p.dst,nodeColors:gK(s,p.dst.nodeType)}}))??[],columns:f,setPage:t,totalItemCount:d?.count??0,serverSidePagination:!0,selectedTab:i,tabTitles:n,setSelectedTab:r,pagination:e,isLoading:h})}function Jmr(){return FAn(({cell:e})=>{const t=e.row.original;return S.jsx(wr,{justifyContent:"space-between",children:S.jsx(Gmr,{...t})},`${t.src}-${t.dst}`)})}function evr({id:e,displayName:t,nodeType:n,nodeColors:i,selectedTab:r,propertyKeys:o}){const{viewedEntity:s,onNavigateTo:a,viewNode:l}=RC(),c=s?.type==="node"&&s.name===e,u=Xje(n,i),d=I.useMemo(()=>o!==void 0&&o.length>0?o.slice(0,4).map(h=>h.charAt(0).toUpperCase()+h.slice(1)).join(" · "):`ID: ${e}`,[o,e]);return S.jsx(UAn,{title:t,isSelected:c,onClick:()=>l(e),onDoubleClick:()=>a([e]),icon:u,content:d,chipLabel:n,RightClickComponent:function({onCloseMenu:f}){return S.jsx(Zje,{selectedTab:r,node:e,onCloseMenu:f})}})}var tvr={type:null,tab:"",pageSize:8,displayAs:"tiles"};function qAn(e){const{pageSize:t,displayAs:n,tab:i}={...tvr,...e??{}},[r,o]=I.useState(new Map),s=r.get(i)??0,a=I.useRef(e?.type),l=I.useRef(n);return l.current!==n&&(o(new Map),l.current=n),a.current!==e?.type&&e?.type!==null&&(o(new Map),a.current=e?.type),{pagination:{page:s,pageSize:t},setPage:c=>{const u=c(r.get(i)??0);r.set(i,u),o(new Map(r))}}}function nvr({pagination:e,setPage:t,tabTitles:n,selectedTab:i,setSelectedTab:r}){const[o]=iy(js.search),s=PXe(i),{queryResult:a,searchIsLoading:l}=Qmr(o.committed,i,e.page,e.pageSize),c=a?.nodes.map(u=>({displayName:u.displayName,id:u.id,nodeType:u.nodeType,nodeColors:gK(o,u.nodeType),document:u.document,propertyKeys:u.propertyKeys}));return S.jsx(mZ,{data:c,columns:s,pagination:e,setPage:t,totalItemCount:a?.count??0,isLoading:l,serverSidePagination:!0,selectedTab:i,tabTitles:n,setSelectedTab:r})}function ivr({semanticSearchMessage:e,pagination:t,setPage:n,tabTitles:i,selectedTab:r,setSelectedTab:o}){const[s]=iy(js.search),a=s.committedSemanticInput,l=PXe(a?.type??""),{data:c,isLoading:u}=Bui({query:e??"",type:a?.type,graphPath:a?.graphPath,start:a?.startDate===null||a?.startDate===void 0?void 0:new Date(a.startDate).getTime(),end:a?.endDate===null||a?.endDate===void 0?void 0:new Date(a.endDate).getTime()}),h=ovr(c)?.filter(f=>f.type!=="graph").map(f=>({displayName:f.name,id:f.name,nodeType:f.nodeType,nodeColors:gK(s,f.nodeType),propertyKeys:[""]}));return S.jsx(mZ,{data:h,columns:l,pagination:t,setPage:n,totalItemCount:h?.length??0,isLoading:u,serverSidePagination:!1,selectedTab:r,tabTitles:i,setSelectedTab:o})}function rvr({tabTitles:e,selectedTab:t,setSelectedTab:n}){const{committedBaseGraph:i}=RC(),[r]=iy(js.search),{pagination:o,setPage:s}=qAn({type:"Pinned",tab:"Pinned",pageSize:8}),{pinnedNodes:a,clearPinnedNodes:l}=dZ(),{data:c,isLoading:u}=Mtr({graphPath:i,nodeNames:a.map(f=>f.name),pageIndex:o.page,limit:o.pageSize}),d=c?.nodes.map(f=>({displayName:f.displayName,id:f.id,nodeType:f.nodeType,nodeColors:gK(r,f.nodeType),propertyKeys:f.propertyKeys}))??[],h=PXe(t);return S.jsx(mZ,{data:d,columns:h,pagination:o,setPage:s,totalItemCount:c?.nodeCount??0,isLoading:u,serverSidePagination:!0,selectedTab:t,tabTitles:e,setSelectedTab:n,mrtOptions:{enableToolbarInternalActions:!0,enableTopToolbar:c!==void 0&&c.nodeCount>0,tableOptions:{muiTableHeadProps:{sx:{"& .MuiTableCell-head":{padding:0}}},muiTopToolbarProps:{sx:{"& > .MuiBox-root":{padding:0}}},renderToolbarInternalActions:()=>a===void 0||a.length===0?null:S.jsxs(S.Fragment,{children:[S.jsx(uo,{title:"Unpin all items",arrow:!0,children:S.jsx(Qr,{onClick:l,sx:f=>({padding:0,width:f.spacing(4),height:f.spacing(4)}),children:S.jsx(SXe,{})})}),S.jsx(WAn,{menuPosition:"pinned-nodes",nodes:a.map(f=>f.name),sx:f=>({padding:0,width:f.spacing(4),height:f.spacing(4)})})]})}},noResultsText:{message:"No pinned nodes.",caption:"You can pin nodes by right clicking on a result from your search and selecting 'Add to Pinned'."}})}function PXe(e){return FAn(({cell:t})=>{const n=t.row.original;return S.jsx(wr,{justifyContent:"space-between",children:S.jsx(evr,{...n,selectedTab:e})},n.id)})}function ovr(e){const t=e?.flatMap(i=>i.entity.type==="graph"?[{type:"graph",path:hb.fromName(i.entity.name)}]:i.entity.type==="edge"?[{type:"node",...i.entity.src},{type:"node",...i.entity.dst}]:i.entity.type==="node"?[i.entity]:[]);return t?.filter((i,r)=>r===t.findIndex(o=>i.type==="node"&&o.type==="node"?i.name===o.name:i.type==="graph"&&o.type==="graph"?i.path.fullPath===o.path.fullPath:!1))}function svr({semanticSearchMessage:e,sx:t}){const[n,i]=iy(js.search),r=I.useCallback(p=>{i(g=>({...g,selectedTab:p}))},[i]),{pinnedNodes:o}=dZ(),s=o.length,{tabTitles:a,selectedTab:l,selectedTabType:c,hasSearched:u}=I.useMemo(()=>{const p=n.committedSemanticInput,g=new Map;let m=!1;if(n.committed?.selected?.entityType==="node"){const b=n.committed?.selected.selectedConditionsByType;b&&b.length>0&&(b.forEach(w=>{g.set(w.type,"node")}),m=!0)}else n.committed?.selected?.entityType==="edge"?(g.set("Edges","edge"),m=!0):p?.type&&(g.set(p.type,"semanticNode"),m=!0);s>0&&g.set(`Pinned (${s})`,"pinned");let v,y;if(g.size===0)v="",y="none";else if(n.selectedTab!==void 0&&g.has(n.selectedTab))v=n.selectedTab,y=g.get(n.selectedTab);else{const b=Array.from(g.entries())[0];v=b[0],y=b[1]}return{tabTitles:Array.from(g.keys()),selectedTab:v,selectedTabType:y,hasSearched:m}},[n.committed?.selected,n.committedSemanticInput,n.selectedTab,s]),{pagination:d,setPage:h}=qAn({type:l,tab:l,pageSize:8}),f=I.useMemo(()=>c==="pinned"?S.jsx(rvr,{tabTitles:a,selectedTab:l,setSelectedTab:r}):c==="semanticNode"?S.jsx(ivr,{semanticSearchMessage:e,pagination:d,setPage:h,tabTitles:a,selectedTab:l,setSelectedTab:r}):c==="node"?S.jsx(nvr,{pagination:d,setPage:h,tabTitles:a,selectedTab:l,setSelectedTab:r}):c==="edge"?S.jsx(Xmr,{pagination:d,setPage:h,tabTitles:a,selectedTab:l,setSelectedTab:r}):S.jsx(mZ,{data:[],columns:[],totalItemCount:0,pagination:d,setPage:h,serverSidePagination:!1,tabTitles:a,selectedTab:l,setSelectedTab:r,hasSearched:u}),[c,d,h,a,l,r,e,u]);return S.jsx(wr,{sx:[{height:"100%",overflow:"hidden"},...Array.isArray(t)?t:[t]],children:f})}var avr=48,lvr="500px";function cvr(){const[e,t]=I.useState(""),{isRhsPanelCollapsed:n}=RC();return S.jsxs(wr,{sx:{display:"grid",gridTemplateColumns:n?`1fr ${avr}px`:`1fr ${lvr}`,gridTemplateAreas:['"table rhs-panel"'].join(`
`),gap:n?2:4,padding:i=>`${i.spacing(4)} ${i.spacing(3)} ${i.spacing(4)} 95px`,height:"100%",maxHeight:"100%",overflow:"hidden",transition:"grid-template-columns 0.2s ease-in-out, gap 0.2s ease-in-out"},children:[S.jsx(svr,{sx:{gridArea:"table"},semanticSearchMessage:e}),S.jsx(Lmr,{sx:{gridArea:"rhs-panel"},setSemanticSearchMessage:t})]})}function uvr(){return O0e("Search"),S.jsx(Jgr,{children:S.jsx(cvr,{})})}var dvr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M3 20v-4h18v4zm2-1h2v-2H5zM3 8V4h18v4zm2-1h2V5H5zm-2 7v-4h18v4zm2-1h2v-2H5z"})]}),hvr=I.forwardRef(dvr),fvr=hvr,pvr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M19.5 17c-.14 0-.26 0-.39.04L17.5 13.8c.45-.45.75-1.09.75-1.8a2.5 2.5 0 0 0-2.5-2.5c-.14 0-.25 0-.4.04L13.74 6.3c.47-.46.76-1.09.76-1.8a2.5 2.5 0 0 0-5 0c0 .7.29 1.34.76 1.79L8.65 9.54c-.15-.04-.26-.04-.4-.04a2.5 2.5 0 0 0-2.5 2.5c0 .71.29 1.34.75 1.79l-1.61 3.25C4.76 17 4.64 17 4.5 17a2.5 2.5 0 0 0 0 5A2.5 2.5 0 0 0 7 19.5c0-.7-.29-1.34-.76-1.79l1.62-3.25c.14.04.26.04.39.04s.25 0 .38-.04l1.63 3.25c-.47.45-.76 1.09-.76 1.79a2.5 2.5 0 0 0 5 0A2.5 2.5 0 0 0 12 17c-.13 0-.26 0-.39.04L10 13.8c.45-.45.75-1.09.75-1.8c0-.7-.29-1.33-.75-1.79l1.61-3.25c.13.04.26.04.39.04s.26 0 .39-.04L14 10.21a2.5 2.5 0 0 0 1.75 4.29c.13 0 .25 0 .38-.04l1.63 3.25c-.47.45-.76 1.09-.76 1.79a2.5 2.5 0 0 0 5 0a2.5 2.5 0 0 0-2.5-2.5m-15 3.5c-.55 0-1-.45-1-1s.45-1 1-1s1 .45 1 1s-.45 1-1 1m8.5-1c0 .55-.45 1-1 1s-1-.45-1-1s.45-1 1-1s1 .45 1 1M7.25 12c0-.55.45-1 1-1s1 .45 1 1s-.45 1-1 1s-1-.45-1-1M11 4.5c0-.55.45-1 1-1s1 .45 1 1s-.45 1-1 1s-1-.45-1-1m3.75 7.5c0-.55.45-1 1-1s1 .45 1 1s-.45 1-1 1s-1-.45-1-1m4.75 8.5c-.55 0-1-.45-1-1s.45-1 1-1s1 .45 1 1s-.45 1-1 1"})]}),gvr=I.forwardRef(pvr),mvr=gvr,vvr=({title:e,titleId:t,...n},i)=>S.jsxs("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:i,"aria-labelledby":t,...n,children:[e?S.jsx("title",{id:t,children:e}):null,S.jsx("path",{fill:"currentColor",d:"M12.002 0a2.138 2.138 0 1 0 0 4.277a2.138 2.138 0 1 0 0-4.277m8.54 4.931a2.138 2.138 0 1 0 0 4.277a2.138 2.138 0 1 0 0-4.277m0 9.862a2.138 2.138 0 1 0 0 4.277a2.138 2.138 0 1 0 0-4.277m-8.54 4.931a2.138 2.138 0 1 0 0 4.276a2.138 2.138 0 1 0 0-4.276m-8.542-4.93a2.138 2.138 0 1 0 0 4.276a2.138 2.138 0 1 0 0-4.277zm0-9.863a2.138 2.138 0 1 0 0 4.277a2.138 2.138 0 1 0 0-4.277m8.542-3.378L2.953 6.777v10.448l9.049 5.224l9.047-5.224V6.777zm0 1.601l7.66 13.27H4.34zm-1.387.371L3.97 15.037V7.363zm2.774 0l6.646 3.838v7.674zM5.355 17.44h13.293l-6.646 3.836z"})]}),yvr=I.forwardRef(vvr),bvr=yvr;function _vr(){const{slots:e}=Nl(),t=e?.catchAll?.navBar,n=t?.top,i=t?.topSectionLabel??"Assistant",r=t?.middle,o=t?.middleSectionLabel??"Investigate",s=t?.bottom,a=t?.bottomSectionLabel??"Tools",l=I.useMemo(()=>[...n&&n.length>0?[{id:"top",label:i,items:n}]:[],{id:"investigate",label:o,items:[...r??[],{icon:S.jsx(RAn,{}),label:"Search",to:js.search.$buildPath({})},{icon:S.jsx(mvr,{}),label:"Explorer",to:js.graph.$buildPath({}),disabled:!0},{icon:S.jsx(fvr,{}),label:"Explorations",to:js.savedGraphs.$buildPath({})}]},{id:"tools",label:a,items:[{icon:S.jsx(bvr,{}),label:"GraphQL Playground",to:js.gqlPlayground.$buildPath({})},...s??[]]}],[n,i,r,o,s,a]);return S.jsx($cr,{sections:l,logo:{icon:S.jsx("img",{src:xxn,alt:"Pometry",style:{width:"22px",height:"24px"}}),expandedIcon:S.jsx("img",{src:Yrr,alt:"Pometry",style:{height:"30px"}}),to:js.search.$buildPath({})},defaultExpanded:!1})}var GAn=on(da()),wvr=on(da()),Cvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),I.createElement("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"})),Svr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5})),xvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75})),Evr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5})),Avr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 14 14",stroke:"currentColor",strokeWidth:3,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M1 1L12.9998 12.9997"}),I.createElement("path",{d:"M13 1L1.00079 13.0003"})),Dvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M11.25 14.2105V15.235C11.25 16.3479 10.3479 17.25 9.23501 17.25H2.76499C1.65214 17.25 0.75 16.3479 0.75 15.235L0.75 8.76499C0.75 7.65214 1.65214 6.75 2.76499 6.75L3.78947 6.75",stroke:"currentColor",strokeWidth:1.5}),I.createElement("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5})),Tvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),I.createElement("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),I.createElement("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2})),kvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),I.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"})),Ivr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),I.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),I.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2})),Lvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 9L10.8 9.5C10.8 10.4941 9.99411 11.3 9 11.3L3 11.3C2.00589 11.3 1.2 10.4941 1.2 9.5L1.2 9L-3.71547e-07 9L-3.93402e-07 9.5C-4.65826e-07 11.1569 1.34314 12.5 3 12.5L9 12.5C10.6569 12.5 12 11.1569 12 9.5L12 9L10.8 9ZM10.8 4L12 4L12 3.5C12 1.84315 10.6569 0.5 9 0.5L3 0.5C1.34315 0.5 -5.87117e-08 1.84315 -1.31135e-07 3.5L-1.5299e-07 4L1.2 4L1.2 3.5C1.2 2.50589 2.00589 1.7 3 1.7L9 1.7C9.99411 1.7 10.8 2.50589 10.8 3.5L10.8 4Z",fill:"currentColor"})),Nvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H17.25C17.8023 0.75 18.25 1.19772 18.25 1.75V5.25",stroke:"currentColor",strokeWidth:1.5}),I.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H18.25C18.8023 5.25 19.25 5.69771 19.25 6.25V22.25C19.25 22.8023 18.8023 23.25 18.25 23.25H3C1.75736 23.25 0.75 22.2426 0.75 21V3Z",stroke:"currentColor",strokeWidth:1.5}),I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5.25C1.75736 5.25 0.75 4.24264 0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H3ZM13 11L6 11V12.5L13 12.5V11Z",fill:"currentColor"})),Pvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H17.25M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H16.25C16.8023 0.75 17.25 1.19772 17.25 1.75V5.25M0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H17.25",stroke:"currentColor",strokeWidth:1.5}),I.createElement("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5})),Mvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"})),Ovr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),I.createElement("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),Rvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),I.createElement("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),I.createElement("path",{d:"M4.95427 11.9332C4.55457 10.0629 4.74441 8.11477 5.49765 6.35686C6.25089 4.59894 7.5305 3.11772 9.16034 2.11709C10.7902 1.11647 12.6901 0.645626 14.5986 0.769388C16.5071 0.893151 18.3303 1.60543 19.8172 2.80818C21.3042 4.01093 22.3818 5.64501 22.9017 7.48548C23.4216 9.32595 23.3582 11.2823 22.7203 13.0853C22.0824 14.8883 20.9013 16.4492 19.3396 17.5532C17.778 18.6572 15.9125 19.25 14 19.25",stroke:"currentColor",strokeWidth:1.5})),Fvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("circle",{cx:6,cy:6,r:5.4,stroke:"currentColor",strokeWidth:1.2,strokeDasharray:"4.241025 4.241025",transform:"rotate(22.5 6 6)"}),I.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"})),Bvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M1.5 14.5653C1.5 15.211 1.75652 15.8303 2.21314 16.2869C2.66975 16.7435 3.28905 17 3.9348 17C4.58054 17 5.19984 16.7435 5.65646 16.2869C6.11307 15.8303 6.36959 15.211 6.36959 14.5653V12.1305H3.9348C3.28905 12.1305 2.66975 12.387 2.21314 12.8437C1.75652 13.3003 1.5 13.9195 1.5 14.5653Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),I.createElement("path",{d:"M3.9348 1.00063C3.28905 1.00063 2.66975 1.25715 2.21314 1.71375C1.75652 2.17035 1.5 2.78964 1.5 3.43537C1.5 4.0811 1.75652 4.70038 2.21314 5.15698C2.66975 5.61358 3.28905 5.8701 3.9348 5.8701H6.36959V3.43537C6.36959 2.78964 6.11307 2.17035 5.65646 1.71375C5.19984 1.25715 4.58054 1.00063 3.9348 1.00063Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),I.createElement("path",{d:"M15.0652 12.1305H12.6304V14.5653C12.6304 15.0468 12.7732 15.5175 13.0407 15.9179C13.3083 16.3183 13.6885 16.6304 14.1334 16.8147C14.5783 16.9989 15.0679 17.0472 15.5402 16.9532C16.0125 16.8593 16.4464 16.6274 16.7869 16.2869C17.1274 15.9464 17.3593 15.5126 17.4532 15.0403C17.5472 14.568 17.4989 14.0784 17.3147 13.6335C17.1304 13.1886 16.8183 12.8084 16.4179 12.5409C16.0175 12.2733 15.5468 12.1305 15.0652 12.1305Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),I.createElement("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),I.createElement("path",{d:"M17.5 3.43473C17.5 2.789 17.2435 2.16972 16.7869 1.71312C16.3303 1.25652 15.711 1 15.0652 1C14.4195 1 13.8002 1.25652 13.3435 1.71312C12.8869 2.16972 12.6304 2.789 12.6304 3.43473V5.86946H15.0652C15.711 5.86946 16.3303 5.61295 16.7869 5.15635C17.2435 4.69975 17.5 4.08046 17.5 3.43473Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"})),jvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),I.createElement("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3})),zvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M17.2492 6V2.9569C17.2492 1.73806 16.2611 0.75 15.0423 0.75L2.9569 0.75C1.73806 0.75 0.75 1.73806 0.75 2.9569L0.75 6",stroke:"currentColor",strokeWidth:1.5}),I.createElement("path",{d:"M0.749873 12V15.0431C0.749873 16.2619 1.73794 17.25 2.95677 17.25H15.0421C16.261 17.25 17.249 16.2619 17.249 15.0431V12",stroke:"currentColor",strokeWidth:1.5}),I.createElement("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),I.createElement("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5})),Vvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M0.75 13.25L0.0554307 12.967C-0.0593528 13.2488 0.00743073 13.5719 0.224488 13.7851C0.441545 13.9983 0.765869 14.0592 1.04549 13.9393L0.75 13.25ZM12.8214 1.83253L12.2911 2.36286L12.2911 2.36286L12.8214 1.83253ZM12.8214 3.90194L13.3517 4.43227L12.8214 3.90194ZM10.0981 1.17859L9.56773 0.648259L10.0981 1.17859ZM12.1675 1.17859L12.6978 0.648258L12.6978 0.648257L12.1675 1.17859ZM2.58049 8.75697L3.27506 9.03994L2.58049 8.75697ZM2.70066 8.57599L3.23099 9.10632L2.70066 8.57599ZM5.2479 11.4195L4.95355 10.7297L5.2479 11.4195ZM5.42036 11.303L4.89003 10.7727L5.42036 11.303ZM4.95355 10.7297C4.08882 11.0987 3.41842 11.362 2.73535 11.6308C2.05146 11.9 1.35588 12.1743 0.454511 12.5607L1.04549 13.9393C1.92476 13.5624 2.60256 13.2951 3.28469 13.0266C3.96762 12.7578 4.65585 12.4876 5.54225 12.1093L4.95355 10.7297ZM1.44457 13.533L3.27506 9.03994L1.88592 8.474L0.0554307 12.967L1.44457 13.533ZM3.23099 9.10632L10.6284 1.70892L9.56773 0.648259L2.17033 8.04566L3.23099 9.10632ZM11.6371 1.70892L12.2911 2.36286L13.3517 1.3022L12.6978 0.648258L11.6371 1.70892ZM12.2911 3.37161L4.89003 10.7727L5.95069 11.8333L13.3517 4.43227L12.2911 3.37161ZM12.2911 2.36286C12.5696 2.64142 12.5696 3.09305 12.2911 3.37161L13.3517 4.43227C14.2161 3.56792 14.2161 2.16654 13.3517 1.3022L12.2911 2.36286ZM10.6284 1.70892C10.9069 1.43036 11.3586 1.43036 11.6371 1.70892L12.6978 0.648257C11.8335 -0.216088 10.4321 -0.216084 9.56773 0.648259L10.6284 1.70892ZM3.27506 9.03994C3.26494 9.06479 3.24996 9.08735 3.23099 9.10632L2.17033 8.04566C2.04793 8.16806 1.95123 8.31369 1.88592 8.474L3.27506 9.03994ZM5.54225 12.1093C5.69431 12.0444 5.83339 11.9506 5.95069 11.8333L4.89003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z",fill:"currentColor"}),I.createElement("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),I.createElement("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"})),Hvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M1.32226e-07 1.6609C7.22332e-08 0.907329 0.801887 0.424528 1.46789 0.777117L15.3306 8.11621C16.0401 8.49182 16.0401 9.50818 15.3306 9.88379L1.46789 17.2229C0.801886 17.5755 1.36076e-06 17.0927 1.30077e-06 16.3391L1.32226e-07 1.6609Z",fill:"currentColor"})),Wvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 10 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 9.25V13.5H5.75V9.25L10 9.25V7.75L5.75 7.75V3.5H4.25V7.75L0 7.75V9.25L4.25 9.25Z"})),Uvr=({title:e,titleId:t,...n})=>I.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),I.createElement("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),I.createElement("path",{d:"M19.4868 24.0735L20.7229 21.7523C21.3259 20.6143 21.5457 19.3122 21.3496 18.0394C21.1535 16.7666 20.5519 15.591 19.6342 14.6874L23.7984 6.87853C24.0123 6.47728 24.0581 6.00748 23.9256 5.57249C23.7932 5.1375 23.4933 4.77294 23.0921 4.55901C22.6908 4.34509 22.221 4.29932 21.7861 4.43178C21.3511 4.56424 20.9865 4.86408 20.7726 5.26533L16.6084 13.0742C15.3474 12.8142 14.0362 12.9683 12.8699 13.5135C11.7035 14.0586 10.7443 14.9658 10.135 16.1L6 24.0735",stroke:"currentColor",strokeWidth:1.5625}),I.createElement("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),I.createElement("path",{d:"M11.5 8L12.6662 5.6662L15 4.5L12.6662 3.3338L11.5 1L10.3338 3.3338L8 4.5L10.3338 5.6662L11.5 8Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"})),$vr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),I.createElement("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),I.createElement("path",{d:"M14.1036 6.65539C13.8 5.27698 13.0387 4.04193 11.9437 3.15131C10.8487 2.26069 9.48447 1.76694 8.0731 1.75043C6.66173 1.73392 5.28633 2.19563 4.17079 3.0604C3.05526 3.92516 2.26529 5.14206 1.92947 6.513",stroke:"currentColor",strokeWidth:1}),I.createElement("path",{d:"M1.89635 9.34461C2.20001 10.723 2.96131 11.9581 4.05631 12.8487C5.15131 13.7393 6.51553 14.2331 7.9269 14.2496C9.33827 14.2661 10.7137 13.8044 11.8292 12.9396C12.9447 12.0748 13.7347 10.8579 14.0705 9.487",stroke:"currentColor",strokeWidth:1})),qvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),I.createElement("path",{d:"M4.25 7.5C4.25 6 5.75 5 6.5 6.5C7.25 8 8.75 7 8.75 5.5",stroke:"currentColor",strokeWidth:1.2})),Gvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29186 1.92702C9.06924 1.82745 8.87014 1.68202 8.70757 1.50024L7.86631 0.574931C7.62496 0.309957 7.30773 0.12592 6.95791 0.0479385C6.60809 -0.0300431 6.24274 0.00182978 5.91171 0.139208C5.58068 0.276585 5.3001 0.512774 5.10828 0.815537C4.91645 1.1183 4.82272 1.47288 4.83989 1.83089L4.90388 3.08019C4.91612 3.32348 4.87721 3.56662 4.78968 3.79394C4.70215 4.02126 4.56794 4.2277 4.39571 4.39994C4.22347 4.57219 4.01704 4.7064 3.78974 4.79394C3.56243 4.88147 3.3193 4.92038 3.07603 4.90814L1.8308 4.84414C1.47162 4.82563 1.11553 4.91881 0.811445 5.11086C0.507359 5.30292 0.270203 5.58443 0.132561 5.91671C-0.00508149 6.249 -0.0364554 6.61576 0.0427496 6.9666C0.121955 7.31744 0.307852 7.63514 0.5749 7.87606L1.50016 8.71204C1.68193 8.87461 1.82735 9.07373 1.92692 9.29636C2.02648 9.51898 2.07794 9.76012 2.07794 10.004C2.07794 10.2479 2.02648 10.489 1.92692 10.7116C1.82735 10.9343 1.68193 11.1334 1.50016 11.296L0.5749 12.1319C0.309856 12.3729 0.125575 12.6898 0.0471809 13.0393C-0.0312128 13.3888 9.64098e-05 13.754 0.13684 14.0851C0.273583 14.4162 0.509106 14.6971 0.811296 14.8894C1.11349 15.0817 1.46764 15.1762 1.82546 15.1599L3.0707 15.0959C3.31397 15.0836 3.5571 15.1225 3.7844 15.2101C4.01171 15.2976 4.21814 15.4318 4.39037 15.6041C4.56261 15.7763 4.69682 15.9827 4.78435 16.2101C4.87188 16.4374 4.91078 16.6805 4.89855 16.9238L4.83455 18.1691C4.81605 18.5283 4.90921 18.8844 5.10126 19.1885C5.2933 19.4926 5.5748 19.7298 5.90707 19.8674C6.23934 20.0051 6.60608 20.0365 6.9569 19.9572C7.30772 19.878 7.6254 19.6921 7.86631 19.4251L8.7129 18.4998C8.87547 18.318 9.07458 18.1725 9.29719 18.073C9.51981 17.9734 9.76093 17.9219 10.0048 17.9219C10.2487 17.9219 10.4898 17.9734 10.7124 18.073C10.935 18.1725 11.1341 18.318 11.2967 18.4998L12.1326 19.4251C12.3735 19.6921 12.6912 19.878 13.042 19.9572C13.3929 20.0365 13.7596 20.0051 14.0919 19.8674C14.4241 19.7298 14.7056 19.4926 14.8977 19.1885C15.0897 18.8844 15.1829 18.5283 15.1644 18.1691L15.1004 16.9238C15.0882 16.6805 15.1271 16.4374 15.2146 16.2101C15.3021 15.9827 15.4363 15.7763 15.6086 15.6041C15.7808 15.4318 15.9872 15.2976 16.2145 15.2101C16.4418 15.1225 16.685 15.0836 16.9282 15.0959L18.1735 15.1599C18.5326 15.1784 18.8887 15.0852 19.1928 14.8931C19.4969 14.7011 19.7341 14.4196 19.8717 14.0873C20.0093 13.755 20.0407 13.3882 19.9615 13.0374C19.8823 12.6866 19.6964 12.3689 19.4294 12.1279L18.5041 11.292C18.3223 11.1294 18.1769 10.9303 18.0774 10.7076C17.9778 10.485 17.9263 10.2439 17.9263 10C17.9263 9.75612 17.9778 9.51499 18.0774 9.29236C18.1769 9.06973 18.3223 8.87062 18.5041 8.70804L19.4294 7.87206C19.6964 7.63114 19.8823 7.31344 19.9615 6.9626C20.0407 6.61176 20.0093 6.245 19.8717 5.91271C19.7341 5.58043 19.4969 5.29892 19.1928 5.10686C18.8887 4.91481 18.5326 4.82163 18.1735 4.84014L16.9282 4.90414C16.685 4.91638 16.4418 4.87747 16.2145 4.78994C15.9872 4.7024 15.7808 4.56818 15.6086 4.39594C15.4363 4.2237 15.3021 4.01726 15.2146 3.78994C15.1271 3.56262 15.0882 3.31948 15.1004 3.07619L15.1644 1.83089C15.1829 1.4717 15.0897 1.11559 14.8977 0.811487C14.7056 0.507385 14.4241 0.270217 14.0919 0.132568C13.7596 -0.00508182 13.3929 -0.0364573 13.042 0.0427519C12.6912 0.121961 12.3735 0.307869 12.1326 0.574931L11.2914 1.50024C11.1288 1.68202 10.9297 1.82745 10.7071 1.92702C10.4845 2.02659 10.2433 2.07805 9.99947 2.07805C9.7556 2.07805 9.51448 2.02659 9.29186 1.92702ZM14.3745 10C14.3745 12.4162 12.4159 14.375 9.99977 14.375C7.58365 14.375 5.625 12.4162 5.625 10C5.625 7.58375 7.58365 5.625 9.99977 5.625C12.4159 5.625 14.3745 7.58375 14.3745 10Z",fill:"currentColor"})),Kvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",fill:"currentColor",stroke:"currentColor"})),Yvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",stroke:"currentColor",strokeWidth:1.5})),Qvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("rect",{width:16,height:16,rx:2,fill:"currentColor"})),Zvr=({title:e,titleId:t,...n})=>I.createElement("svg",{width:"1em",height:"5em",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd","aria-hidden":"true",viewBox:"0 0 23 23",style:{height:"1.5em"},clipRule:"evenodd","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M19 24h-14c-1.104 0-2-.896-2-2v-17h-1v-2h6v-1.5c0-.827.673-1.5 1.5-1.5h5c.825 0 1.5.671 1.5 1.5v1.5h6v2h-1v17c0 1.104-.896 2-2 2zm0-19h-14v16.5c0 .276.224.5.5.5h13c.276 0 .5-.224.5-.5v-16.5zm-7 7.586l3.293-3.293 1.414 1.414-3.293 3.293 3.293 3.293-1.414 1.414-3.293-3.293-3.293 3.293-1.414-1.414 3.293-3.293-3.293-3.293 1.414-1.414 3.293 3.293zm2-10.586h-4v1h4v-1z",fill:"currentColor",strokeWidth:.25,stroke:"currentColor"})),Xvr=({title:e,titleId:t,...n})=>I.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?I.createElement("title",{id:t},e):null,I.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),I.createElement("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),Jvr=Kl(Cvr),e0r=Kl(Svr),t0r=Kl(xvr),n0r=Kl(Evr),MXe=Kl(Avr),i0r=Kl(Dvr),r0r=Kl(Tvr),o0r=Kl(kvr),s0r=Kl(Ivr),a0r=Kl(Lvr),l0r=Kl(Nvr),c0r=Kl(Pvr),u0r=Kl(Mvr),d0r=Kl(Ovr),h0r=Kl(Rvr),f0r=Kl(Fvr),p0r=Kl(Bvr),g0r=Kl(jvr),m0r=Kl(zvr),v0r=Kl(Vvr),y0r=Kl(Hvr),b0r=Kl(Wvr),_0r=Kl(Uvr),w0r=Kl($vr),C0r=Kl(qvr),S0r=Kl(Gvr),x0r=Kl(Kvr),E0r=Kl(Yvr),A0r=Kl(Qvr),D0r=Kl(Zvr),Qre=Kl(Xvr);function Kl(e){const t=e.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon",n=i=>{const r=(0,wvr.c)(2);let o;return r[0]!==i?(o=S.jsx(e,{title:t,...i}),r[0]=i,r[1]=o):o=r[1],o};return n.displayName=e.name,n}gpe();g7();var OXe=typeof navigator<"u"&&navigator.userAgent.includes("Mac");function OR(e,t="⌘"){return OXe?e.replace("Ctrl",t):e}var fh=Object.freeze({prettify:{key:"Shift-Ctrl-P",keybindings:[PA.Shift|PA.WinCtrl|EO.KeyP]},mergeFragments:{key:"Shift-Ctrl-M",keybindings:[PA.Shift|PA.WinCtrl|EO.KeyM]},runQuery:{key:"Ctrl-Enter",keybindings:[PA.CtrlCmd|EO.Enter]},autoComplete:{key:"Space"},copyQuery:{key:"Shift-Ctrl-C",keybindings:[PA.Shift|PA.WinCtrl|EO.KeyC]},refetchSchema:{key:"Shift-Ctrl-R"},searchInEditor:{key:"Ctrl-F"},searchInDocs:{key:"Ctrl-Alt-K"}}),Fd={headers:"headers",visiblePlugin:"visiblePlugin",query:"query",variables:"variables",tabs:"tabState",persistHeaders:"shouldPersistHeaders",theme:"theme"},T0r=`# Welcome to GraphiQL
#
# GraphiQL is an in-browser tool for writing, validating, and testing
# GraphQL queries.
#
# Type queries into this side of the screen, and you will see intelligent
# typeaheads aware of the current GraphQL type schema and live syntax and
# validation errors highlighted within the text.
#
# GraphQL queries typically start with a "{" character. Lines that start
# with a # are ignored.
#
# An example GraphQL query might look like:
#
#     {
#       field(arg: "value") {
#         subField
#       }
#     }
#
# Keyboard shortcuts:
#
#   Prettify query:  ${fh.prettify.key} (or press the prettify button)
#
#  Merge fragments:  ${fh.mergeFragments.key} (or press the merge button)
#
#        Run Query:  ${OR(fh.runQuery.key,"Cmd")} (or press the play button)
#
#    Auto Complete:  ${fh.autoComplete.key} (or just start typing)
#

`,tC={prettify:{id:"graphql-prettify",label:"Prettify Editors",contextMenuGroupId:"graphql",keybindings:fh.prettify.keybindings},mergeFragments:{id:"graphql-merge",label:"Merge Fragments into Query",contextMenuGroupId:"graphql",keybindings:fh.mergeFragments.keybindings},runQuery:{id:"graphql-run",label:"Run Operation",contextMenuGroupId:"graphql",keybindings:fh.runQuery.keybindings},copyQuery:{id:"graphql-copy",label:"Copy Query",contextMenuGroupId:"graphql",keybindings:fh.copyQuery.keybindings}},P8={operation:"operation.graphql",schema:"schema.graphql",variables:"variables.json",requestHeaders:"request-headers.json",response:"response.json"},KAn={allowComments:!0,trailingCommas:"ignore"},Jje={validateVariablesJSON:{},jsonDiagnosticSettings:{validate:!0,schemaValidation:"error",...KAn}},k0r=async e=>{const[t,{printers:n},{parsers:i}]=await Promise.all([Promise.resolve().then(()=>(ezt(),kVe)),Promise.resolve().then(()=>(H4n(),tzt)),Promise.resolve().then(()=>on(W4n()))]);return t.format(e,{parser:"graphql",plugins:[{printers:n},{parsers:i}]})},eze={dark:"graphiql-DARK",light:"graphiql-LIGHT"},Xc={transparent:"#ffffff00",bg:{dark:"#212a3b",light:"#ffffffff"},primary:{dark:"#ff5794",light:"#d60590"},primaryBg:{dark:"#ff579419",light:"#d6059019"},secondary:{dark:"#b7c2d711",light:"#3b4b6811"}},E4t=e=>({"editor.background":Xc.transparent,"scrollbar.shadow":Xc.transparent,"textLink.foreground":Xc.primary[e],"textLink.activeForeground":Xc.primary[e],"editorLink.activeForeground":Xc.primary[e],"editorHoverWidget.background":Xc.bg[e],"list.hoverBackground":Xc.primaryBg[e],"list.highlightForeground":Xc.primary[e],"list.focusHighlightForeground":Xc.primary[e],"menu.background":Xc.bg[e],"editorSuggestWidget.background":Xc.bg[e],"editorSuggestWidget.selectedBackground":Xc.primaryBg[e],"editorSuggestWidget.selectedForeground":Xc.primary[e],"quickInput.background":Xc.bg[e],"quickInputList.focusForeground":e==="dark"?"#ffffff":"#444444","highlighted.label":Xc.primary[e],"quickInput.widget":Xc.primary[e],highlight:Xc.primary[e],"editorWidget.background":Xc.bg[e],"input.background":Xc.secondary[e],focusBorder:Xc.primary[e],"toolbar.hoverBackground":Xc.primaryBg[e],"inputOption.hoverBackground":Xc.primaryBg[e],"quickInputList.focusBackground":Xc.primaryBg[e],"editorWidget.resizeBorder":Xc.primary[e],"pickerGroup.foreground":Xc.primary[e],"menu.selectionBackground":Xc.primaryBg[e],"menu.selectionForeground":Xc.primary[e]}),A4t={dark:{base:"vs-dark",inherit:!0,colors:E4t("dark"),rules:[{token:"argument.identifier.gql",foreground:"#908aff"}]},light:{base:"vs",inherit:!0,colors:E4t("light"),rules:[{token:"argument.identifier.gql",foreground:"#6c69ce"}]}},YAn=on(da()),D4t=e=>{let t;const n=new Set,i=(c,u)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const h=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(f=>f(t,h))}},r=()=>t,a={setState:i,getState:r,getInitialState:()=>l,subscribe:c=>(n.add(c),()=>n.delete(c))},l=t=e(i,r,a);return a},bye=(e=>e?D4t(e):D4t),I0r=e=>e;function RXe(e,t=I0r){const n=Ri.useSyncExternalStore(e.subscribe,Ri.useCallback(()=>t(e.getState()),[e,t]),Ri.useCallback(()=>t(e.getInitialState()),[e,t]));return Ri.useDebugValue(n),n}var T4t=e=>{const t=bye(e),n=i=>RXe(t,i);return Object.assign(n,t),n},L0r=(e=>e?T4t(e):T4t),k4t=e=>Symbol.iterator in e,I4t=e=>"entries"in e,L4t=(e,t)=>{const n=e instanceof Map?e:new Map(e.entries()),i=t instanceof Map?t:new Map(t.entries());if(n.size!==i.size)return!1;for(const[r,o]of n)if(!i.has(r)||!Object.is(o,i.get(r)))return!1;return!0},N0r=(e,t)=>{const n=e[Symbol.iterator](),i=t[Symbol.iterator]();let r=n.next(),o=i.next();for(;!r.done&&!o.done;){if(!Object.is(r.value,o.value))return!1;r=n.next(),o=i.next()}return!!r.done&&!!o.done};function P0r(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:k4t(e)&&k4t(t)?I4t(e)&&I4t(t)?L4t(e,t):N0r(e,t):L4t({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function QAn(e){const t=Ri.useRef(void 0);return n=>{const i=e(n);return P0r(t.current,i)?t.current:t.current=i}}var M0r=Object.defineProperty,O0r=Object.defineProperties,R0r=Object.getOwnPropertyDescriptors,N4t=Object.getOwnPropertySymbols,F0r=Object.prototype.hasOwnProperty,B0r=Object.prototype.propertyIsEnumerable,P4t=(e,t,n)=>t in e?M0r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,o7=(e,t)=>{for(var n in t||(t={}))F0r.call(t,n)&&P4t(e,n,t[n]);if(N4t)for(var n of N4t(t))B0r.call(t,n)&&P4t(e,n,t[n]);return e},Nfe=(e,t)=>O0r(e,R0r(t));function j0r(e){return typeof e=="object"&&e!==null&&typeof e.then=="function"}function z0r(e){return new Promise((t,n)=>{const i=e.subscribe({next(r){t(r),i.unsubscribe()},error:n,complete(){n(new Error("no value resolved"))}})})}function ZAn(e){return typeof e=="object"&&e!==null&&"subscribe"in e&&typeof e.subscribe=="function"}function XAn(e){return typeof e=="object"&&e!==null&&(e[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator in e)}async function V0r(e){var t;const n=(t=("return"in e?e:e[Symbol.asyncIterator]()).return)==null?void 0:t.bind(e),i=await("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e)();return n?.(),i.value}async function H0r(e){const t=await e;return XAn(t)?V0r(t):ZAn(t)?z0r(t):t}function tze(e){return JSON.stringify(e,null,2)}function W0r(e){return Nfe(o7({},e),{message:e.message,stack:e.stack})}function M4t(e){return e instanceof Error?W0r(e):e}function aq(e){return Array.isArray(e)?tze({errors:e.map(t=>M4t(t))}):tze({errors:[M4t(e)]})}function nze(e){return tze(e)}bd();function U0r(e,t,n){const i=[];if(!e||!t)return{insertions:i,result:t};let r;try{r=BK(t)}catch{return{insertions:i,result:t}}const o=n||$0r,s=new b3e(e);return Yx(r,{leave(a){s.leave(a)},enter(a){if(s.enter(a),a.kind==="Field"&&!a.selectionSet){const l=s.getType(),c=JAn(K0r(l),o);if(c&&a.loc){const u=G0r(t,a.loc.start);i.push({index:a.loc.end,string:" "+yu(c).replaceAll(`
`,`
`+u)})}}}}),{insertions:i,result:q0r(t,i)}}function $0r(e){if(!("getFields"in e))return[];const t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];const n=[];for(const i of Object.keys(t))xL(t[i].type)&&n.push(i);return n}function JAn(e,t){const n=sg(e);if(!e||xL(e))return;const i=t(n);if(!(!Array.isArray(i)||i.length===0||!("getFields"in n)))return{kind:Ct.SELECTION_SET,selections:i.map(r=>{const o=n.getFields()[r],s=o?o.type:null;return{kind:Ct.FIELD,name:{kind:Ct.NAME,value:r},selectionSet:JAn(s,t)}})}}function q0r(e,t){if(t.length===0)return e;let n="",i=0;for(const{index:r,string:o}of t)n+=e.slice(i,r)+o,i=r;return n+=e.slice(i),n}function G0r(e,t){let n=t,i=t;for(;n;){const r=e.charCodeAt(n-1);if(r===10||r===13||r===8232||r===8233)break;n--,r!==9&&r!==11&&r!==12&&r!==32&&r!==160&&(i=n)}return e.slice(n,i)}function K0r(e){if(e)return e}bd();function Y0r(e,t){var n;const i=new Map,r=[];for(const o of e)if(o.kind==="Field"){const s=t(o),a=i.get(s);if((n=o.directives)!=null&&n.length){const l=o7({},o);r.push(l)}else if(a!=null&&a.selectionSet&&o.selectionSet)a.selectionSet.selections=[...a.selectionSet.selections,...o.selectionSet.selections];else if(!a){const l=o7({},o);i.set(s,l),r.push(l)}}else r.push(o);return r}function eDn(e,t,n){var i;const r=n?sg(n).name:null,o=[],s=[];for(let a of t){if(a.kind==="FragmentSpread"){const l=a.name.value;if(!a.directives||a.directives.length===0){if(s.includes(l))continue;s.push(l)}const c=e[a.name.value];if(c){const{typeCondition:u,directives:d,selectionSet:h}=c;a={kind:Ct.INLINE_FRAGMENT,typeCondition:u,directives:d,selectionSet:h}}}if(a.kind===Ct.INLINE_FRAGMENT&&(!a.directives||((i=a.directives)==null?void 0:i.length)===0)){const l=a.typeCondition?a.typeCondition.name.value:null;if(!l||l===r){o.push(...eDn(e,a.selectionSet.selections,n));continue}}o.push(a)}return o}function Q0r(e,t){const n=t?new b3e(t):null,i=Object.create(null);for(const s of e.definitions)s.kind===Ct.FRAGMENT_DEFINITION&&(i[s.name.value]=s);const r={SelectionSet(s){const a=n?n.getParentType():null;let{selections:l}=s;return l=eDn(i,l,a),Nfe(o7({},s),{selections:l})},FragmentDefinition(){return null}},o=Yx(e,n?$Bn(n,r):r);return Yx(o,{SelectionSet(s){let{selections:a}=s;return a=Y0r(a,l=>l.alias?l.alias.value:l.name.value),Nfe(o7({},s),{selections:a})},FragmentDefinition(){return null}})}function Z0r(e,t,n){if(!n||n.length<1)return;const i=n.map(r=>{var o;return(o=r.name)==null?void 0:o.value});if(t&&i.includes(t))return t;if(t&&e){const r=e.map(o=>{var s;return(s=o.name)==null?void 0:s.value}).indexOf(t);if(r!==-1&&r<i.length)return i[r]}return i[0]}function X0r(e,t){return t instanceof DOMException&&(t.code===22||t.code===1014||t.name==="QuotaExceededError"||t.name==="NS_ERROR_DOM_QUOTA_REACHED")&&e.length!==0}var J0r=class{constructor(e){e?this.storage=e:e===null?this.storage=null:typeof window>"u"?this.storage=null:this.storage={getItem:localStorage.getItem.bind(localStorage),setItem:localStorage.setItem.bind(localStorage),removeItem:localStorage.removeItem.bind(localStorage),get length(){let t=0;for(const n in localStorage)n.indexOf(`${Zre}:`)===0&&(t+=1);return t},clear(){for(const t in localStorage)t.indexOf(`${Zre}:`)===0&&localStorage.removeItem(t)}}}get(e){if(!this.storage)return null;const t=`${Zre}:${e}`,n=this.storage.getItem(t);return n==="null"||n==="undefined"?(this.storage.removeItem(t),null):n||null}set(e,t){let n=!1,i=null;if(this.storage){const r=`${Zre}:${e}`;if(t)try{this.storage.setItem(r,t)}catch(o){i=o instanceof Error?o:new Error(`${o}`),n=X0r(this.storage,o)}else this.storage.removeItem(r)}return{isQuotaError:n,error:i}}clear(){this.storage&&this.storage.clear()}},Zre="graphiql";bd();var O4t=class{constructor(e,t,n=null){this.key=e,this.storage=t,this.maxSize=n,this.items=this.fetchAll()}get length(){return this.items.length}contains(e){return this.items.some(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName)}edit(e,t){if(typeof t=="number"&&this.items[t]){const i=this.items[t];if(i.query===e.query&&i.variables===e.variables&&i.headers===e.headers&&i.operationName===e.operationName){this.items.splice(t,1,e),this.save();return}}const n=this.items.findIndex(i=>i.query===e.query&&i.variables===e.variables&&i.headers===e.headers&&i.operationName===e.operationName);n!==-1&&(this.items.splice(n,1,e),this.save())}delete(e){const t=this.items.findIndex(n=>n.query===e.query&&n.variables===e.variables&&n.headers===e.headers&&n.operationName===e.operationName);t!==-1&&(this.items.splice(t,1),this.save())}fetchRecent(){return this.items.at(-1)}fetchAll(){const e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}push(e){const t=[...this.items,e];this.maxSize&&t.length>this.maxSize&&t.shift();for(let n=0;n<5;n++){const i=this.storage.set(this.key,JSON.stringify({[this.key]:t}));if(!(i!=null&&i.error))this.items=t;else if(i.isQuotaError&&this.maxSize)t.shift();else return}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}},eyr=1e5,tyr=class{constructor(e,t){this.storage=e,this.maxHistoryLength=t,this.updateHistory=({query:n,variables:i,headers:r,operationName:o})=>{if(!this.shouldSaveQuery(n,i,r,this.history.fetchRecent()))return;this.history.push({query:n,variables:i,headers:r,operationName:o});const s=this.history.items,a=this.favorite.items;this.queries=s.concat(a)},this.deleteHistory=({query:n,variables:i,headers:r,operationName:o,favorite:s},a=!1)=>{function l(c){const u=c.items.find(d=>d.query===n&&d.variables===i&&d.headers===r&&d.operationName===o);u&&c.delete(u)}(s||a)&&l(this.favorite),(!s||a)&&l(this.history),this.queries=[...this.history.items,...this.favorite.items]},this.history=new O4t("queries",this.storage,this.maxHistoryLength),this.favorite=new O4t("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(e,t,n,i){if(!e)return!1;try{BK(e)}catch{return!1}return e.length>eyr?!1:i?!(JSON.stringify(e)===JSON.stringify(i.query)&&(JSON.stringify(t)===JSON.stringify(i.variables)&&(JSON.stringify(n)===JSON.stringify(i.headers)||n&&!i.headers)||t&&!i.variables)):!0}toggleFavorite({query:e,variables:t,headers:n,operationName:i,label:r,favorite:o}){const s={query:e,variables:t,headers:n,operationName:i,label:r};o?(s.favorite=!1,this.favorite.delete(s),this.history.push(s)):(s.favorite=!0,this.favorite.push(s),this.history.delete(s)),this.queries=[...this.history.items,...this.favorite.items]}editLabel({query:e,variables:t,headers:n,operationName:i,label:r,favorite:o},s){const a={query:e,variables:t,headers:n,operationName:i,label:r};o?this.favorite.edit(Nfe(o7({},a),{favorite:o}),s):this.history.edit(a,s),this.queries=[...this.history.items,...this.favorite.items]}};bd();function nyr({defaultQuery:e,defaultHeaders:t,headers:n,query:i,variables:r,defaultTabs:o=[{query:i??e,variables:r,headers:n??t}],shouldPersistHeaders:s,storage:a}){const l=a.get(Fd.tabs);try{if(!l)throw new Error("Storage for tabs is empty");const c=JSON.parse(l),u=s?n:void 0;if(iyr(c)){const d=Pfe({query:i,variables:r,headers:u});let h=-1;for(let f=0;f<c.tabs.length;f++){const p=c.tabs[f];p.hash=Pfe({query:p.query,variables:p.variables,headers:p.headers}),p.hash===d&&(h=f)}if(h>=0)c.activeTabIndex=h;else{const f=i?FXe(i):null;c.tabs.push({id:nDn(),hash:d,title:f||BXe,query:i,variables:r,headers:n,operationName:f,response:null}),c.activeTabIndex=c.tabs.length-1}return c}throw new Error("Storage for tabs is invalid")}catch{return{activeTabIndex:0,tabs:o.map(tDn)}}}function iyr(e){return e&&typeof e=="object"&&!Array.isArray(e)&&oyr(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every(ryr)}function ryr(e){return e&&typeof e=="object"&&!Array.isArray(e)&&R4t(e,"id")&&R4t(e,"title")&&yH(e,"query")&&yH(e,"variables")&&yH(e,"headers")&&yH(e,"operationName")&&yH(e,"response")}function oyr(e,t){return t in e&&typeof e[t]=="number"}function R4t(e,t){return t in e&&typeof e[t]=="string"}function yH(e,t){return t in e&&(typeof e[t]=="string"||e[t]===null)}function F4t(e,t=!1){return JSON.stringify(e,(n,i)=>n==="hash"||n==="response"||!t&&n==="headers"?null:i)}function tDn({query:e=null,variables:t=null,headers:n=null}={}){const i=e?FXe(e):null;return{id:nDn(),hash:Pfe({query:e,variables:t,headers:n}),title:i||BXe,query:e,variables:t,headers:n,operationName:i,response:null}}function B4t(e,t){return{...e,tabs:e.tabs.map((n,i)=>{if(i!==e.activeTabIndex)return n;const r={...n,...t};return{...r,hash:Pfe(r),title:r.operationName||(r.query?FXe(r.query):void 0)||BXe}})}}function nDn(){const e=()=>Math.floor((1+Math.random())*65536).toString(16).slice(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function Pfe(e){return[e.query??"",e.variables??"",e.headers??""].join("|")}function FXe(e){const n=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return n?.[2]??null}function syr(e){const t=e.get(Fd.tabs);if(t){const n=JSON.parse(t);e.set(Fd.tabs,JSON.stringify(n,(i,r)=>i==="headers"?null:r))}}var BXe="<untitled>",jXe=e=>t=>RXe(e,t&&QAn(t));async function ayr(){const{MouseTargetFactory:e}=await Promise.resolve().then(()=>(xHe(),DWt)),t=e._doHitTestWithCaretPositionFromPoint;e._doHitTestWithCaretPositionFromPoint=(...n)=>{const[i,r]=n;return i.viewDomNode.ownerDocument.caretPositionFromPoint(r.clientX,r.clientY)?t(...n):{type:0}}}var _ye=bye((e,t)=>({actions:{async initialize(){if(!!t().monaco)return;const[i,{initializeMode:r}]=await Promise.all([Promise.resolve().then(()=>(Q7(),jrn)),Promise.resolve().then(()=>(Mti(),son))]);globalThis.__MONACO=i,i.languages.json.jsonDefaults.setDiagnosticsOptions(KAn),i.editor.defineTheme(eze.dark,A4t.dark),i.editor.defineTheme(eze.light,A4t.light),navigator.userAgent.includes("Firefox/")&&ayr();const o=r({diagnosticSettings:Jje});e({monaco:i,monacoGraphQL:o})}}})),Ij=jXe(_ye),iDn=on(da());function s7(e,t){let n;return function(...i){n&&clearTimeout(n),n=setTimeout(()=>{n=null,t(...i)},e)}}function rDn(e,t,n){const i=(0,iDn.c)(10),{updateActiveTabValues:r}=OT();let o;i[0]!==n?(o=u=>({editor:u[n==="variables"?"variableEditor":"headerEditor"],storage:u.storage}),i[0]=n,i[1]=o):o=i[1];const{editor:s,storage:a}=Ip(o);let l,c;i[2]!==e||i[3]!==s||i[4]!==a||i[5]!==t||i[6]!==n||i[7]!==r?(l=()=>{if(!s)return;const u=s7(500,p=>{t!==null&&a.set(t,p)}),d=s7(100,p=>{r({[n]:p})}),h=p=>{const g=s.getValue();u(g),d(g),e?.(g)},f=s.getModel().onDidChangeContent(h);return()=>{f.dispose()}},c=[e,s,t,n,r,a],i[2]=e,i[3]=s,i[4]=a,i[5]=t,i[6]=n,i[7]=r,i[8]=l,i[9]=c):(l=i[8],c=i[9]),I.useEffect(l,c)}var j4t=(e,t)=>{const n=(0,iDn.c)(4),i=I.useRef(!1);let r,o;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>()=>{i.current=!1},o=[],n[0]=r,n[1]=o):(r=n[0],o=n[1]),I.useEffect(r,o);let s;n[2]!==e?(s=()=>{if(i.current)return e();i.current=!0},n[2]=e,n[3]=s):s=n[3],I.useEffect(s,t)},lyr=e=>()=>e;bd();function cyr(e,t=!1){const n=e.length;let i=0,r="",o=0,s=16,a=0,l=0,c=0,u=0,d=0;function h(b,w){let E=0,A=0;for(;E<b;){let D=e.charCodeAt(i);if(D>=48&&D<=57)A=A*16+D-48;else if(D>=65&&D<=70)A=A*16+D-65+10;else if(D>=97&&D<=102)A=A*16+D-97+10;else break;i++,E++}return E<b&&(A=-1),A}function f(b){i=b,r="",o=0,s=16,d=0}function p(){let b=i;if(e.charCodeAt(i)===48)i++;else for(i++;i<e.length&&cB(e.charCodeAt(i));)i++;if(i<e.length&&e.charCodeAt(i)===46)if(i++,i<e.length&&cB(e.charCodeAt(i)))for(i++;i<e.length&&cB(e.charCodeAt(i));)i++;else return d=3,e.substring(b,i);let w=i;if(i<e.length&&(e.charCodeAt(i)===69||e.charCodeAt(i)===101))if(i++,(i<e.length&&e.charCodeAt(i)===43||e.charCodeAt(i)===45)&&i++,i<e.length&&cB(e.charCodeAt(i))){for(i++;i<e.length&&cB(e.charCodeAt(i));)i++;w=i}else d=3;return e.substring(b,w)}function g(){let b="",w=i;for(;;){if(i>=n){b+=e.substring(w,i),d=2;break}const E=e.charCodeAt(i);if(E===34){b+=e.substring(w,i),i++;break}if(E===92){if(b+=e.substring(w,i),i++,i>=n){d=2;break}switch(e.charCodeAt(i++)){case 34:b+='"';break;case 92:b+="\\";break;case 47:b+="/";break;case 98:b+="\b";break;case 102:b+="\f";break;case 110:b+=`
`;break;case 114:b+="\r";break;case 116:b+="	";break;case 117:const D=h(4);D>=0?b+=String.fromCharCode(D):d=4;break;default:d=5}w=i;continue}if(E>=0&&E<=31)if(bH(E)){b+=e.substring(w,i),d=2;break}else d=6;i++}return b}function m(){if(r="",d=0,o=i,l=a,u=c,i>=n)return o=n,s=17;let b=e.charCodeAt(i);if(kOe(b)){do i++,r+=String.fromCharCode(b),b=e.charCodeAt(i);while(kOe(b));return s=15}if(bH(b))return i++,r+=String.fromCharCode(b),b===13&&e.charCodeAt(i)===10&&(i++,r+=`
`),a++,c=i,s=14;switch(b){case 123:return i++,s=1;case 125:return i++,s=2;case 91:return i++,s=3;case 93:return i++,s=4;case 58:return i++,s=6;case 44:return i++,s=5;case 34:return i++,r=g(),s=10;case 47:const w=i-1;if(e.charCodeAt(i+1)===47){for(i+=2;i<n&&!bH(e.charCodeAt(i));)i++;return r=e.substring(w,i),s=12}if(e.charCodeAt(i+1)===42){i+=2;const E=n-1;let A=!1;for(;i<E;){const D=e.charCodeAt(i);if(D===42&&e.charCodeAt(i+1)===47){i+=2,A=!0;break}i++,bH(D)&&(D===13&&e.charCodeAt(i)===10&&i++,a++,c=i)}return A||(i++,d=1),r=e.substring(w,i),s=13}return r+=String.fromCharCode(b),i++,s=16;case 45:if(r+=String.fromCharCode(b),i++,i===n||!cB(e.charCodeAt(i)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return r+=p(),s=11;default:for(;i<n&&v(b);)i++,b=e.charCodeAt(i);if(o!==i){switch(r=e.substring(o,i),r){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return r+=String.fromCharCode(b),i++,s=16}}function v(b){if(kOe(b)||bH(b))return!1;switch(b){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function y(){let b;do b=m();while(b>=12&&b<=15);return b}return{setPosition:f,getPosition:()=>i,scan:t?y:m,getToken:()=>s,getTokenValue:()=>r,getTokenOffset:()=>o,getTokenLength:()=>i-o,getTokenStartLine:()=>l,getTokenStartCharacter:()=>o-u,getTokenError:()=>d}}function kOe(e){return e===32||e===9}function bH(e){return e===10||e===13}function cB(e){return e>=48&&e<=57}var z4t;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(z4t||(z4t={}));new Array(20).fill(0).map((e,t)=>" ".repeat(t));var uB=200;new Array(uB).fill(0).map((e,t)=>`
`+" ".repeat(t)),new Array(uB).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(uB).fill(0).map((e,t)=>`\r
`+" ".repeat(t)),new Array(uB).fill(0).map((e,t)=>`
`+"	".repeat(t)),new Array(uB).fill(0).map((e,t)=>"\r"+"	".repeat(t)),new Array(uB).fill(0).map((e,t)=>`\r
`+"	".repeat(t));var Mfe;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Mfe||(Mfe={}));function uyr(e,t=[],n=Mfe.DEFAULT){let i=null,r=[];const o=[];function s(l){Array.isArray(r)?r.push(l):i!==null&&(r[i]=l)}return dyr(e,{onObjectBegin:()=>{const l={};s(l),o.push(r),r=l,i=null},onObjectProperty:l=>{i=l},onObjectEnd:()=>{r=o.pop()},onArrayBegin:()=>{const l=[];s(l),o.push(r),r=l,i=null},onArrayEnd:()=>{r=o.pop()},onLiteralValue:s,onError:(l,c,u)=>{t.push({error:l,offset:c,length:u})}},n),r[0]}function dyr(e,t,n=Mfe.DEFAULT){const i=cyr(e,!1),r=[];let o=0;function s(W){return W?()=>o===0&&W(i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter()):()=>!0}function a(W){return W?J=>o===0&&W(J,i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter()):()=>!0}function l(W){return W?J=>o===0&&W(J,i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter(),()=>r.slice()):()=>!0}function c(W){return W?()=>{o>0?o++:W(i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter(),()=>r.slice())===!1&&(o=1)}:()=>!0}function u(W){return W?()=>{o>0&&o--,o===0&&W(i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter())}:()=>!0}const d=c(t.onObjectBegin),h=l(t.onObjectProperty),f=u(t.onObjectEnd),p=c(t.onArrayBegin),g=u(t.onArrayEnd),m=l(t.onLiteralValue),v=a(t.onSeparator),y=s(t.onComment),b=a(t.onError),w=n&&n.disallowComments,E=n&&n.allowTrailingComma;function A(){for(;;){const W=i.scan();switch(i.getTokenError()){case 4:D(14);break;case 5:D(15);break;case 3:D(13);break;case 1:w||D(11);break;case 2:D(12);break;case 6:D(16);break}switch(W){case 12:case 13:w?D(10):y();break;case 16:D(1);break;case 15:case 14:break;default:return W}}}function D(W,J=[],ee=[]){if(b(W),J.length+ee.length>0){let Q=i.getToken();for(;Q!==17;){if(J.indexOf(Q)!==-1){A();break}else if(ee.indexOf(Q)!==-1)break;Q=A()}}}function T(W){const J=i.getTokenValue();return W?m(J):(h(J),r.push(J)),A(),!0}function M(){switch(i.getToken()){case 11:const W=i.getTokenValue();let J=Number(W);isNaN(J)&&(D(2),J=0),m(J);break;case 7:m(null);break;case 8:m(!0);break;case 9:m(!1);break;default:return!1}return A(),!0}function P(){return i.getToken()!==10?(D(3,[],[2,5]),!1):(T(!1),i.getToken()===6?(v(":"),A(),j()||D(4,[],[2,5])):D(5,[],[2,5]),r.pop(),!0)}function F(){d(),A();let W=!1;for(;i.getToken()!==2&&i.getToken()!==17;){if(i.getToken()===5){if(W||D(4,[],[]),v(","),A(),i.getToken()===2&&E)break}else W&&D(6,[],[]);P()||D(4,[],[2,5]),W=!0}return f(),i.getToken()!==2?D(7,[2],[]):A(),!0}function N(){p(),A();let W=!0,J=!1;for(;i.getToken()!==4&&i.getToken()!==17;){if(i.getToken()===5){if(J||D(4,[],[]),v(","),A(),i.getToken()===4&&E)break}else J&&D(6,[],[]);W?(r.push(0),W=!1):r[r.length-1]++,j()||D(4,[],[4,5]),J=!0}return g(),W||r.pop(),i.getToken()!==4?D(8,[4],[]):A(),!0}function j(){switch(i.getToken()){case 3:return N();case 1:return F();case 10:return T(!0);default:return M()}}return A(),i.getToken()===17?n.allowEmptyContent?!0:(D(4,[],[]),!1):j()?(i.getToken()!==17&&D(9,[],[]),!0):(D(4,[],[]),!1)}var V4t;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(V4t||(V4t={}));var H4t;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(H4t||(H4t={}));var hyr=uyr,W4t;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(W4t||(W4t={}));function fyr(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}async function U4t(e){const[t,{printers:n},{parsers:i}]=await Promise.all([Promise.resolve().then(()=>(ezt(),kVe)),Promise.resolve().then(()=>(xsi(),aon)),Promise.resolve().then(()=>on(Esi()))]);return t.format(e,{parser:"jsonc",plugins:[{printers:n},{parsers:i}],printWidth:0})}var pyr=new Intl.ListFormat("en",{style:"long",type:"conjunction"});function gyr(e){const t=[],n=hyr(e,t,{allowTrailingComma:!0,allowEmptyContent:!0});if(t.length){const i=pyr.format(t.map(({error:r})=>fyr(r)));throw new SyntaxError(i)}return n}function ize(e=""){let t;try{t=gyr(e)}catch(i){throw new Error(`are invalid JSON: ${i instanceof Error?i.message:i}.`)}if(!t)return;if(!(typeof t=="object"&&!Array.isArray(t)))throw new TypeError("are not a JSON object.");return t}var myr=e=>(t,n)=>{function i({query:s,variables:a,headers:l,response:c}){const{queryEditor:u,variableEditor:d,headerEditor:h,responseEditor:f,defaultHeaders:p}=n();u?.setValue(s??""),d?.setValue(a??""),h?.setValue(l??p??""),f?.setValue(c??"")}function r(s){const{queryEditor:a,variableEditor:l,headerEditor:c,responseEditor:u,operationName:d}=n();return B4t(s,{query:a?.getValue()??null,variables:l?.getValue()??null,headers:c?.getValue()??null,response:u?.getValue()??null,operationName:d??null})}return{...e,actions:{addTab(){t(({defaultHeaders:s,onTabChange:a,tabs:l,activeTabIndex:c,actions:u})=>{const d=r({tabs:l,activeTabIndex:c}),h={tabs:[...d.tabs,tDn({headers:s})],activeTabIndex:d.tabs.length};return u.storeTabs(h),i(h.tabs[h.activeTabIndex]),a?.(h),h})},changeTab(s){t(({actions:a,onTabChange:l,tabs:c})=>{a.stop();const u={tabs:c,activeTabIndex:s};return a.storeTabs(u),i(u.tabs[u.activeTabIndex]),l?.(u),u})},moveTab(s){t(({onTabChange:a,actions:l,tabs:c,activeTabIndex:u})=>{const d=c[u],h={tabs:s,activeTabIndex:s.indexOf(d)};return l.storeTabs(h),i(h.tabs[h.activeTabIndex]),a?.(h),h})},closeTab(s){t(({activeTabIndex:a,onTabChange:l,actions:c,tabs:u})=>{a===s&&c.stop();const d={tabs:u.filter((h,f)=>s!==f),activeTabIndex:Math.max(a-1,0)};return c.storeTabs(d),i(d.tabs[d.activeTabIndex]),l?.(d),d})},updateActiveTabValues(s){t(({activeTabIndex:a,tabs:l,onTabChange:c,actions:u})=>{const d=B4t({tabs:l,activeTabIndex:a},s);return u.storeTabs(d),c?.(d),d})},setEditor({headerEditor:s,queryEditor:a,responseEditor:l,variableEditor:c}){const u=Object.entries({headerEditor:s,queryEditor:a,responseEditor:l,variableEditor:c}).filter(([h,f])=>f),d=Object.fromEntries(u);t(d)},setOperationName(s){t(({onEditOperationName:a,actions:l})=>(l.updateActiveTabValues({operationName:s}),a?.(s),{operationName:s}))},setShouldPersistHeaders(s){const{headerEditor:a,tabs:l,activeTabIndex:c,storage:u}=n();if(s){u.set(Fd.headers,a?.getValue()??"");const d=F4t({tabs:l,activeTabIndex:c},!0);u.set(Fd.tabs,d)}else u.set(Fd.headers,""),syr(u);u.set(Fd.persistHeaders,s.toString()),t({shouldPersistHeaders:s})},storeTabs({tabs:s,activeTabIndex:a}){const{shouldPersistHeaders:l,storage:c}=n();s7(500,d=>{c.set(Fd.tabs,d)})(F4t({tabs:s,activeTabIndex:a},l))},setOperationFacts({documentAST:s,operationName:a,operations:l}){t({documentAST:s,operationName:a,operations:l})},async copyQuery(){const{queryEditor:s,onCopyQuery:a}=n();if(!s)return;const l=s.getValue();a?.(l);try{await navigator.clipboard.writeText(l)}catch(c){console.warn("Failed to copy query!",c)}},async prettifyEditors(){const{queryEditor:s,headerEditor:a,variableEditor:l,onPrettifyQuery:c}=n();if(l)try{const u=l.getValue(),d=await U4t(u);d!==u&&l.setValue(d)}catch(u){console.warn("Parsing variables JSON failed, skip prettification.",u)}if(a)try{const u=a.getValue(),d=await U4t(u);d!==u&&a.setValue(d)}catch(u){console.warn("Parsing headers JSON failed, skip prettification.",u)}if(s)try{const u=s.getValue(),d=await c(u);d!==u&&s.setValue(d)}catch(u){console.warn("Parsing query failed, skip prettification.",u)}},mergeQuery(){const{queryEditor:s,documentAST:a,schema:l}=n(),c=s?.getValue();!a||!c||s.setValue(yu(Q0r(a,l)))}}}};bd();gme();var IOe=on(Tsi()),vyr=on(ksi());Dn();var yyr=e=>(t,n)=>{function i(){const{queryEditor:r,schema:o,getDefaultFieldNames:s}=n();if(!r)return;const a=r.getValue(),{insertions:l,result:c=""}=U0r(o,a,s);if(!l.length)return c;const u=r.getModel(),d=r.getSelection(),h=u.getOffsetAt(d.getPosition());u.setValue(c);let f=0;const p=l.map(({index:y,string:b})=>{const w=u.getPositionAt(y+f),E=u.getPositionAt(y+(f+=b.length));return{range:new Re(w.lineNumber,w.column,E.lineNumber,E.column),options:{className:"auto-inserted-leaf",hoverMessage:{value:"Automatically added leaf fields"},isWholeLine:!1}}}),g=r.createDecorationsCollection([]);g.set(p),setTimeout(()=>{g.clear()},7e3);let m=h;for(const{index:y,string:b}of l)y<h&&(m+=b.length);const v=u.getPositionAt(m);return r.setPosition(v),c}return{...e,isFetching:!1,subscription:null,queryId:0,actions:{stop(){t(({subscription:r})=>(r?.unsubscribe(),{isFetching:!1,subscription:null}))},async run(){const{externalFragments:r,headerEditor:o,queryEditor:s,responseEditor:a,variableEditor:l,actions:c,operationName:u,documentAST:d,subscription:h,overrideOperationName:f,queryId:p,fetcher:g}=n();if(!s||!a)return;if(h){c.stop();return}function m(D){a?.setValue(D),c.updateActiveTabValues({response:D})}function v(D,T){if(!T)return;m(aq({message:`${T===l?"Variables":"Request headers"} ${D.message}`}))}const y=p+1;t({queryId:y});let b=i()||s.getValue(),w;try{w=ize(l?.getValue())}catch(D){v(D,l);return}let E;try{E=ize(o?.getValue())}catch(D){v(D,o);return}const A=d?Yrn(d,r):[];A.length&&(b+=`
`+A.map(D=>yu(D)).join(`
`)),m(""),t({isFetching:!0});try{const D={},T=N=>{if(y!==n().queryId)return;let j=Array.isArray(N)?N:!1;if(!j&&typeof N=="object"&&"hasNext"in N&&(j=[N]),j){for(const W of j)oDn(D,W);t({isFetching:!1}),m(nze(D))}else t({isFetching:!1}),m(nze(N))},F=await g({query:b,variables:w,operationName:f??u},{headers:E,documentAST:d});if(ZAn(F)){const N=F.subscribe({next(j){T(j)},error(j){t({isFetching:!1}),m(aq(j)),t({subscription:null})},complete(){t({isFetching:!1,subscription:null})}});t({subscription:N})}else if(XAn(F)){t({subscription:{unsubscribe:()=>{var j,W;return(W=(j=F[Symbol.asyncIterator]()).return)==null?void 0:W.call(j)}}});for await(const j of F)T(j);t({isFetching:!1,subscription:null})}else T(F)}catch(D){t({isFetching:!1}),m(aq(D)),t({subscription:null})}}}}},_H=new WeakMap;function oDn(e,t){var n,i,r;let o=["data",...t.path??[]];for(const c of[e,t])if(c.pending){let u=_H.get(e);u===void 0&&(u=new Map,_H.set(e,u));for(const{id:d,path:h}of c.pending)u.set(d,["data",...h])}const{items:s,data:a,id:l}=t;if(s)if(l){if(o=(n=_H.get(e))==null?void 0:n.get(l),o===void 0)throw new Error("Invalid incremental delivery format.");(0,vyr.default)(e,o.join(".")).push(...s)}else{o=["data",...t.path??[]];for(const c of s)(0,IOe.default)(e,o.join("."),c),o[o.length-1]++}if(a){if(l){if(o=(i=_H.get(e))==null?void 0:i.get(l),o===void 0)throw new Error("Invalid incremental delivery format.");const{subPath:c}=t;c!==void 0&&(o=[...o,...c])}(0,IOe.default)(e,o.join("."),a,{merge:!0})}if(t.errors&&(e.errors||(e.errors=[]),e.errors.push(...t.errors)),t.extensions&&(0,IOe.default)(e,"extensions",t.extensions,{merge:!0}),t.incremental)for(const c of t.incremental)oDn(e,c);if(t.completed)for(const{id:c,errors:u}of t.completed)(r=_H.get(e))==null||r.delete(c),u&&(e.errors||(e.errors=[]),e.errors.push(...u))}var byr=e=>t=>({plugins:[],visiblePlugin:null,...e,actions:{setVisiblePlugin(n=null){t(i=>{const{visiblePlugin:r,plugins:o,onTogglePluginVisibility:s,storage:a}=i,l=typeof n=="string",c=n&&o.find(u=>(l?u.title:u)===n)||null;return c===r?i:(s?.(c),a.set(Fd.visiblePlugin,c?.title??""),{visiblePlugin:c})})},setPlugins(n){const i=new Set,r="All GraphiQL plugins must have a unique title";for(const{title:o}of n){if(typeof o!="string"||!o)throw new Error(r);if(i.has(o))throw new Error(`${r}, found two plugins with the title '${o}'`);i.add(o)}t({plugins:n})}}});bd();var _yr=e=>(t,n)=>({...e,fetchError:null,isIntrospecting:!1,schema:null,validationErrors:[],schemaReference:null,requestCounter:0,shouldIntrospect:!0,actions:{setSchemaReference(i){t({schemaReference:i})},async introspect(){const{requestCounter:i,shouldIntrospect:r,onSchemaChange:o,headerEditor:s,fetcher:a,inputValueDeprecation:l,introspectionQueryName:c,schemaDescription:u}=n();if(!r)return;const d=i+1;t({requestCounter:d,isIntrospecting:!0,fetchError:null});try{let h=function(w){const E=H0r(a({query:w,operationName:c},p));if(!j0r(E))throw new TypeError("Fetcher did not return a Promise for introspection.");return E},f;try{f=ize(s?.getValue())}catch(w){throw new Error(`Introspection failed. Request headers ${w instanceof Error?w.message:w}`)}const p=f?{headers:f}:{},g=B8n({inputValueDeprecation:l,schemaDescription:u}),m=c==="IntrospectionQuery"?g:g.replace("query IntrospectionQuery",`query ${c}`);let v=await h(m);(typeof v!="object"||!("data"in v))&&(v=await h(g.replace("subscriptionType { name }",""))),t({isIntrospecting:!1});let y;if(v.data&&"__schema"in v.data)y=v.data;else{const w=typeof v=="string"?v:nze(v);t({fetchError:w})}if(d!==n().requestCounter||!y)return;const b=z8n(y);t({schema:b}),o?.(b)}catch(h){if(d!==n().requestCounter)return;h instanceof Error&&delete h.stack,t({isIntrospecting:!1,fetchError:aq(h)})}}}}),wyr=({editorTheme:e})=>(t,n)=>({theme:null,actions:{setTheme(i){const{storage:r}=n();r.set(Fd.theme,i??""),document.body.classList.remove("graphiql-light","graphiql-dark"),i&&document.body.classList.add(`graphiql-${i}`);const{monaco:o}=_ye.getState(),s=i??Cyr(),a=e[s];o?.editor.setTheme(a),t({theme:i,monacoTheme:a})}}});function Cyr(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}var sDn=I.createContext(null),Syr=e=>{const t=(0,YAn.c)(5);if(!e.fetcher)throw new TypeError("The `GraphiQLProvider` component requires a `fetcher` function to be passed as prop.");if(e.validationRules)throw new TypeError("The `validationRules` prop has been removed. Use custom GraphQL worker, see https://github.com/graphql/graphiql/tree/main/packages/monaco-graphql#custom-webworker-for-passing-non-static-config-to-worker.");if(e.query)throw new TypeError(`The \`query\` prop has been removed. Use \`initialQuery\` prop instead, or set value programmatically using:

const queryEditor = useGraphiQL(state => state.queryEditor)

useEffect(() => {
  queryEditor.setValue(query)
}, [query])`);if(e.variables)throw new TypeError(`The \`variables\` prop has been removed. Use \`initialVariables\` prop instead, or set value programmatically using:

const variableEditor = useGraphiQL(state => state.variableEditor)

useEffect(() => {
  variableEditor.setValue(variables)
}, [variables])`);if(e.headers)throw new TypeError(`The \`headers\` prop has been removed. Use \`initialHeaders\` prop instead, or set value programmatically using:

const headerEditor = useGraphiQL(state => state.headerEditor)

useEffect(() => {
  headerEditor.setValue(headers)
}, [headers])`);if(e.response)throw new TypeError(`The \`response\` prop has been removed. Set value programmatically using:

const responseEditor = useGraphiQL(state => state.responseEditor)

useEffect(() => {
  responseEditor.setValue(response)
}, [response])`);const{actions:n}=Ij(),[i,r]=I.useState(!1);let o;t[0]!==n?(o=()=>{n.initialize(),r(!0)},t[0]=n,t[1]=o):o=t[1];let s;if(t[2]===Symbol.for("react.memo_cache_sentinel")?(s=[],t[2]=s):s=t[2],I.useEffect(o,s),!i)return null;let a;return t[3]!==e?(a=S.jsx(xyr,{...e}),t[3]=e,t[4]=a):a=t[4],a},xyr=e=>{const t=(0,YAn.c)(76);let n,i,r,o,s,a,l,c,u,d,h,f,p,g,m,v,y,b,w,E,A,D,T,M,P,F,N;t[0]!==e?({defaultHeaders:r,defaultQuery:v,defaultTabs:o,externalFragments:s,onEditOperationName:u,onTabChange:h,shouldPersistHeaders:w,onCopyQuery:c,onPrettifyQuery:E,dangerouslyAssumeSchemaIsValid:A,fetcher:a,inputValueDeprecation:D,introspectionQueryName:T,onSchemaChange:d,schema:m,schemaDescription:M,getDefaultFieldNames:l,operationName:P,onTogglePluginVisibility:f,plugins:F,referencePlugin:g,visiblePlugin:N,children:i,defaultTheme:y,editorTheme:b,storage:n,...p}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=o,t[5]=s,t[6]=a,t[7]=l,t[8]=c,t[9]=u,t[10]=d,t[11]=h,t[12]=f,t[13]=p,t[14]=g,t[15]=m,t[16]=v,t[17]=y,t[18]=b,t[19]=w,t[20]=E,t[21]=A,t[22]=D,t[23]=T,t[24]=M,t[25]=P,t[26]=F,t[27]=N):(n=t[1],i=t[2],r=t[3],o=t[4],s=t[5],a=t[6],l=t[7],c=t[8],u=t[9],d=t[10],h=t[11],f=t[12],p=t[13],g=t[14],m=t[15],v=t[16],y=t[17],b=t[18],w=t[19],E=t[20],A=t[21],D=t[22],T=t[23],M=t[24],P=t[25],F=t[26],N=t[27]);const j=v===void 0?T0r:v,W=w===void 0?!1:w,J=E===void 0?k0r:E,ee=A===void 0?!1:A,Q=D===void 0?!1:D,H=T===void 0?"IntrospectionQuery":T,q=M===void 0?!1:M,le=P===void 0?null:P;let Y;t[28]!==F?(Y=F===void 0?[]:F,t[28]=F,t[29]=Y):Y=t[29];const G=Y,pe=y===void 0?null:y,U=b===void 0?eze:b,K=I.useRef(null),ie=I.useId();if(K.current===null){let $;if(t[30]!==n||t[31]!==r||t[32]!==j||t[33]!==o||t[34]!==pe||t[35]!==U||t[36]!==s||t[37]!==a||t[38]!==l||t[39]!==Q||t[40]!==H||t[41]!==c||t[42]!==u||t[43]!==J||t[44]!==d||t[45]!==h||t[46]!==f||t[47]!==le||t[48]!==G||t[49]!==p.initialHeaders||t[50]!==p.initialQuery||t[51]!==p.initialVariables||t[52]!==g||t[53]!==q||t[54]!==W||t[55]!==ie||t[56]!==N){const he=new J0r(n),Ie=function(){const it=he.get(Fd.visiblePlugin),ft=G.find(ct=>ct.title===it);return ft||(it&&he.set(Fd.visiblePlugin,""),N)},Be=function(){const it=he.get(Fd.theme);switch(it){case"light":return"light";case"dark":return"dark";default:return typeof it=="string"&&he.set(Fd.theme,""),pe}};$=function(){const it=p.initialQuery??he.get(Fd.query),ft=p.initialVariables??he.get(Fd.variables),ct=p.initialHeaders??he.get(Fd.headers),{tabs:et,activeTabIndex:ut}=nyr({defaultHeaders:r,defaultQuery:j,defaultTabs:o,headers:ct,query:it,shouldPersistHeaders:W,storage:he,variables:ft}),wt=he.get(Fd.persistHeaders)!==null,pt=W!==!1&&wt?he.get(Fd.persistHeaders)==="true":W,_t=L0r((...Yt)=>{const Ut=Yt,Gt=lyr({storage:he})(...Ut),Kt=myr({activeTabIndex:ut,defaultHeaders:r,defaultQuery:j,externalFragments:Eyr(s),initialHeaders:ct??r??"",initialQuery:it??(ut===0?et[0].query:null)??"",initialVariables:ft??"",onCopyQuery:c,onEditOperationName:u,onPrettifyQuery:J,onTabChange:h,shouldPersistHeaders:pt,tabs:et,uriInstanceId:ie.replaceAll(/[:«»]/g,"")+"-"})(...Ut),ln=yyr({fetcher:a,getDefaultFieldNames:l,overrideOperationName:le})(...Ut),pn=byr({onTogglePluginVisibility:f,referencePlugin:g})(...Ut),wn=_yr({inputValueDeprecation:Q,introspectionQueryName:H,onSchemaChange:d,schemaDescription:q})(...Ut),Mn=wyr({editorTheme:U})(...Ut);return{...Gt,...Kt,...ln,...pn,...wn,...Mn,actions:{...Kt.actions,...ln.actions,...pn.actions,...wn.actions,...Mn.actions}}}),{actions:Rt}=_t.getState();return Rt.storeTabs({activeTabIndex:ut,tabs:et}),Rt.setPlugins(G),Rt.setVisiblePlugin(Ie()),Rt.setTheme(Be()),_t}(),t[30]=n,t[31]=r,t[32]=j,t[33]=o,t[34]=pe,t[35]=U,t[36]=s,t[37]=a,t[38]=l,t[39]=Q,t[40]=H,t[41]=c,t[42]=u,t[43]=J,t[44]=d,t[45]=h,t[46]=f,t[47]=le,t[48]=G,t[49]=p.initialHeaders,t[50]=p.initialQuery,t[51]=p.initialVariables,t[52]=g,t[53]=q,t[54]=W,t[55]=ie,t[56]=N,t[57]=$}else $=t[57];K.current=$}let ce,de;t[58]!==a?(ce=()=>{K.current.setState({fetcher:a})},de=[a],t[58]=a,t[59]=ce,t[60]=de):(ce=t[59],de=t[60]),j4t(ce,de);let oe,me;t[61]!==G||t[62]!==N?(oe=()=>{const{actions:$}=K.current.getState();$.setPlugins(G),$.setVisiblePlugin(N)},me=[G,N],t[61]=G,t[62]=N,t[63]=oe,t[64]=me):(oe=t[63],me=t[64]),j4t(oe,me);let Ce;t[65]!==ee||t[66]!==m?(Ce=()=>{const $=CFe(m)||m==null?m:void 0,he=!$||ee?[]:NBn($),Ie=K.current;Ie.setState(ze=>{const{requestCounter:Ye}=ze;return{requestCounter:Ye+1,schema:$,shouldIntrospect:!CFe(m)&&m!==null,validationErrors:he}});const{actions:Be}=Ie.getState();Be.introspect()},t[65]=ee,t[66]=m,t[67]=Ce):Ce=t[67];let Se;t[68]!==ee||t[69]!==a||t[70]!==m?(Se=[m,ee,a],t[68]=ee,t[69]=a,t[70]=m,t[71]=Se):Se=t[71],I.useEffect(Ce,Se);let De,Me;t[72]===Symbol.for("react.memo_cache_sentinel")?(De=()=>{const $=function(Ie){if(Ie.ctrlKey&&Ie.key==="R"){const{actions:Be}=K.current.getState();Be.introspect()}};return window.addEventListener("keydown",$),()=>{window.removeEventListener("keydown",$)}},Me=[],t[72]=De,t[73]=Me):(De=t[72],Me=t[73]),I.useEffect(De,Me);let qe;return t[74]!==i?(qe=S.jsx(sDn.Provider,{value:K,children:i}),t[74]=i,t[75]=qe):qe=t[75],qe};function Ip(e){const t=I.useContext(sDn);if(!t)throw new Error(`"useGraphiQL" hook must be used within a <GraphiQLProvider> component.
It looks like you are trying to use the hook outside the GraphiQL provider tree.`);return RXe(t.current,QAn(e))}var OT=()=>Ip(Ayr);function Eyr(e){const t=new Map;if(e)if(Array.isArray(e))for(const n of e)t.set(n.name.value,n);else if(typeof e=="string")Yx(BK(e),{FragmentDefinition(n){t.set(n.name.value,n)}});else throw new TypeError("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of `FragmentDefinitionNode` objects.");return t}function Ayr(e){return e.actions}function iS(...e){return t=>{const n=Object.create(null);for(const i of e)n[i]=t[i];return n}}function vK(e){return()=>{for(const t of e)t.dispose()}}ss();var wye=e=>{var t;const n=e.currentTarget;n===document.activeElement&&e.code==="Enter"&&(e.preventDefault(),(t=n.querySelector("textarea"))==null||t.focus())};function Cye({uri:e,value:t}){const{monaco:n}=_ye.getState();if(!n)throw new Error("Monaco editor is not initialized");const i=Ui.file(e),r=n.editor.getModel(i),o=i.path.split(".").at(-1);return r??n.editor.createModel(t,o,i)}function Sye(e,t){const{model:n}=t;if(!n)throw new Error("options.model is required");const i=n.uri.path.split(".").at(-1),{monaco:r}=_ye.getState();if(!r)throw new Error("Monaco editor is not initialized");return r.editor.create(e.current,{language:i,automaticLayout:!0,fontSize:15,minimap:{enabled:!1},tabSize:2,renderLineHighlight:"none",stickyScroll:{enabled:!1},overviewRulerLanes:0,scrollbar:{verticalScrollbarSize:10},scrollBeyondLastLine:!1,fontFamily:'"Fira Code"',fontLigatures:!0,lineNumbersMinChars:2,tabIndex:-1,...t})}var aDn={};oc(aDn,{arrayReplaceAt:()=>vDn,assign:()=>Aye,escapeHtml:()=>dN,escapeRE:()=>ubr,fromCodePoint:()=>Rfe,has:()=>Jyr,isMdAsciiPunct:()=>_K,isPunctChar:()=>bK,isSpace:()=>Cu,isString:()=>WXe,isValidEntityCode:()=>UXe,isWhiteSpace:()=>yK,lib:()=>dbr,normalizeReference:()=>Dye,unescapeAll:()=>a7,unescapeMd:()=>rbr});var lDn={};oc(lDn,{decode:()=>rze,encode:()=>cDn,format:()=>zXe,parse:()=>VXe});var $4t={};function Dyr(e){let t=$4t[e];if(t)return t;t=$4t[e]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);t.push(i)}for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t[i]="%"+("0"+i.toString(16).toUpperCase()).slice(-2)}return t}function xye(e,t){typeof t!="string"&&(t=xye.defaultChars);const n=Dyr(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(i){let r="";for(let o=0,s=i.length;o<s;o+=3){const a=parseInt(i.slice(o+1,o+3),16);if(a<128){r+=n[a];continue}if((a&224)===192&&o+3<s){const l=parseInt(i.slice(o+4,o+6),16);if((l&192)===128){const c=a<<6&1984|l&63;c<128?r+="��":r+=String.fromCharCode(c),o+=3;continue}}if((a&240)===224&&o+6<s){const l=parseInt(i.slice(o+4,o+6),16),c=parseInt(i.slice(o+7,o+9),16);if((l&192)===128&&(c&192)===128){const u=a<<12&61440|l<<6&4032|c&63;u<2048||u>=55296&&u<=57343?r+="���":r+=String.fromCharCode(u),o+=6;continue}}if((a&248)===240&&o+9<s){const l=parseInt(i.slice(o+4,o+6),16),c=parseInt(i.slice(o+7,o+9),16),u=parseInt(i.slice(o+10,o+12),16);if((l&192)===128&&(c&192)===128&&(u&192)===128){let d=a<<18&1835008|l<<12&258048|c<<6&4032|u&63;d<65536||d>1114111?r+="����":(d-=65536,r+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),o+=9;continue}}r+="�"}return r})}xye.defaultChars=";/?:@&=+$,#";xye.componentChars="";var rze=xye,q4t={};function Tyr(e){let t=q4t[e];if(t)return t;t=q4t[e]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);/^[0-9a-z]$/i.test(i)?t.push(i):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Eye(e,t,n){typeof t!="string"&&(n=t,t=Eye.defaultChars),typeof n>"u"&&(n=!0);const i=Tyr(t);let r="";for(let o=0,s=e.length;o<s;o++){const a=e.charCodeAt(o);if(n&&a===37&&o+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3))){r+=e.slice(o,o+3),o+=2;continue}if(a<128){r+=i[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&o+1<s){const l=e.charCodeAt(o+1);if(l>=56320&&l<=57343){r+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[o])}return r}Eye.defaultChars=";/?:@&=+$,-_.!~*'()#";Eye.componentChars="-_.!~*'()";var cDn=Eye;function zXe(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Ofe(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var kyr=/^([a-z0-9.+-]+:)/i,Iyr=/:[0-9]*$/,Lyr=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Nyr=["<",">",'"',"`"," ","\r",`
`,"	"],Pyr=["{","}","|","\\","^","`"].concat(Nyr),Myr=["'"].concat(Pyr),G4t=["%","/","?",";","#"].concat(Myr),K4t=["/","?","#"],Oyr=255,Y4t=/^[+a-z0-9A-Z_-]{0,63}$/,Ryr=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Q4t={javascript:!0,"javascript:":!0},Z4t={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Fyr(e,t){if(e&&e instanceof Ofe)return e;const n=new Ofe;return n.parse(e,t),n}Ofe.prototype.parse=function(e,t){let n,i,r,o=e;if(o=o.trim(),!t&&e.split("#").length===1){const c=Lyr.exec(o);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let s=kyr.exec(o);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,o=o.substr(s.length)),(t||s||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=o.substr(0,2)==="//",r&&!(s&&Q4t[s])&&(o=o.substr(2),this.slashes=!0)),!Q4t[s]&&(r||s&&!Z4t[s])){let c=-1;for(let p=0;p<K4t.length;p++)i=o.indexOf(K4t[p]),i!==-1&&(c===-1||i<c)&&(c=i);let u,d;c===-1?d=o.lastIndexOf("@"):d=o.lastIndexOf("@",c),d!==-1&&(u=o.slice(0,d),o=o.slice(d+1),this.auth=u),c=-1;for(let p=0;p<G4t.length;p++)i=o.indexOf(G4t[p]),i!==-1&&(c===-1||i<c)&&(c=i);c===-1&&(c=o.length),o[c-1]===":"&&c--;const h=o.slice(0,c);o=o.slice(c),this.parseHost(h),this.hostname=this.hostname||"";const f=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!f){const p=this.hostname.split(/\./);for(let g=0,m=p.length;g<m;g++){const v=p[g];if(v&&!v.match(Y4t)){let y="";for(let b=0,w=v.length;b<w;b++)v.charCodeAt(b)>127?y+="x":y+=v[b];if(!y.match(Y4t)){const b=p.slice(0,g),w=p.slice(g+1),E=v.match(Ryr);E&&(b.push(E[1]),w.unshift(E[2])),w.length&&(o=w.join(".")+o),this.hostname=b.join(".");break}}}}this.hostname.length>Oyr&&(this.hostname=""),f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=o.indexOf("#");a!==-1&&(this.hash=o.substr(a),o=o.slice(0,a));const l=o.indexOf("?");return l!==-1&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),Z4t[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Ofe.prototype.parseHost=function(e){let t=Iyr.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var VXe=Fyr,uDn={};oc(uDn,{Any:()=>dDn,Cc:()=>hDn,Cf:()=>Byr,P:()=>HXe,S:()=>fDn,Z:()=>pDn});var dDn=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,hDn=/[\0-\x1F\x7F-\x9F]/,Byr=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,HXe=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\u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u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uF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EE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,pDn=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,jyr=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),zyr=new Uint16Array("Ȁaglq	\x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0))),LOe,Vyr=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Hyr=(LOe=String.fromCodePoint)!==null&&LOe!==void 0?LOe:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Wyr(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Vyr.get(e))!==null&&t!==void 0?t:e}var mp;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(mp||(mp={}));var Uyr=32,eL;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(eL||(eL={}));function oze(e){return e>=mp.ZERO&&e<=mp.NINE}function $yr(e){return e>=mp.UPPER_A&&e<=mp.UPPER_F||e>=mp.LOWER_A&&e<=mp.LOWER_F}function qyr(e){return e>=mp.UPPER_A&&e<=mp.UPPER_Z||e>=mp.LOWER_A&&e<=mp.LOWER_Z||oze(e)}function Gyr(e){return e===mp.EQUALS||qyr(e)}var rp;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(rp||(rp={}));var OI;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(OI||(OI={}));var Kyr=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=rp.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=OI.Strict}startEntity(e){this.decodeMode=e,this.state=rp.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case rp.EntityStart:return e.charCodeAt(t)===mp.NUM?(this.state=rp.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=rp.NamedEntity,this.stateNamedEntity(e,t));case rp.NumericStart:return this.stateNumericStart(e,t);case rp.NumericDecimal:return this.stateNumericDecimal(e,t);case rp.NumericHex:return this.stateNumericHex(e,t);case rp.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|Uyr)===mp.LOWER_X?(this.state=rp.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=rp.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,i){if(t!==n){const r=n-t;this.result=this.result*Math.pow(i,r)+parseInt(e.substr(t,r),i),this.consumed+=r}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const i=e.charCodeAt(t);if(oze(i)||$yr(i))t+=1;else return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const i=e.charCodeAt(t);if(oze(i))t+=1;else return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===mp.SEMI)this.consumed+=1;else if(this.decodeMode===OI.Strict)return 0;return this.emitCodePoint(Wyr(this.result),this.consumed),this.errors&&(e!==mp.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let i=n[this.treeIndex],r=(i&eL.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const o=e.charCodeAt(t);if(this.treeIndex=Yyr(n,i,this.treeIndex+Math.max(1,r),o),this.treeIndex<0)return this.result===0||this.decodeMode===OI.Attribute&&(r===0||Gyr(o))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],r=(i&eL.VALUE_LENGTH)>>14,r!==0){if(o===mp.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==OI.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,i=(n[t]&eL.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,i,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:i}=this;return this.emitCodePoint(t===1?i[e]&~eL.VALUE_LENGTH:i[e+1],n),t===3&&this.emitCodePoint(i[e+2],n),n}end(){var e;switch(this.state){case rp.NamedEntity:return this.result!==0&&(this.decodeMode!==OI.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case rp.NumericDecimal:return this.emitNumericEntity(0,2);case rp.NumericHex:return this.emitNumericEntity(0,3);case rp.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case rp.EntityStart:return 0}}};function gDn(e){let t="";const n=new Kyr(e,i=>t+=Hyr(i));return function(r,o){let s=0,a=0;for(;(a=r.indexOf("&",a))>=0;){t+=r.slice(s,a),n.startEntity(o);const c=n.write(r,a+1);if(c<0){s=a+n.end();break}s=a+c,a=c===0?s+1:s}const l=t+r.slice(s);return t="",l}}function Yyr(e,t,n,i){const r=(t&eL.BRANCH_LENGTH)>>7,o=t&eL.JUMP_TABLE;if(r===0)return o!==0&&i===o?n:-1;if(o){const l=i-o;return l<0||l>=r?-1:e[n+l]-1}let s=n,a=s+r-1;for(;s<=a;){const l=s+a>>>1,c=e[l];if(c<i)s=l+1;else if(c>i)a=l-1;else return e[l+r]}return-1}var Qyr=gDn(jyr);gDn(zyr);function mDn(e,t=OI.Legacy){return Qyr(e,t)}function Xre(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}new Map(Xre([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(Xre([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(Xre([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(Xre([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var X4t;(function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"})(X4t||(X4t={}));var J4t;(function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"})(J4t||(J4t={}));function Zyr(e){return Object.prototype.toString.call(e)}function WXe(e){return Zyr(e)==="[object String]"}var Xyr=Object.prototype.hasOwnProperty;function Jyr(e,t){return Xyr.call(e,t)}function Aye(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(i){e[i]=n[i]})}}),e}function vDn(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function UXe(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Rfe(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var yDn=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,ebr=/&([a-z#][a-z0-9]{1,31});/gi,tbr=new RegExp(yDn.source+"|"+ebr.source,"gi"),nbr=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function ibr(e,t){if(t.charCodeAt(0)===35&&nbr.test(t)){const i=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return UXe(i)?Rfe(i):e}const n=mDn(e);return n!==e?n:e}function rbr(e){return e.indexOf("\\")<0?e:e.replace(yDn,"$1")}function a7(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(tbr,function(t,n,i){return n||ibr(t,i)})}var obr=/[&<>"]/,sbr=/[&<>"]/g,abr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function lbr(e){return abr[e]}function dN(e){return obr.test(e)?e.replace(sbr,lbr):e}var cbr=/[.?*+^$[\]\\(){}|-]/g;function ubr(e){return e.replace(cbr,"\\$&")}function Cu(e){switch(e){case 9:case 32:return!0}return!1}function yK(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function bK(e){return HXe.test(e)||fDn.test(e)}function _K(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Dye(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}var dbr={mdurl:lDn,ucmicro:uDn},bDn={};oc(bDn,{parseLinkDestination:()=>fbr,parseLinkLabel:()=>hbr,parseLinkTitle:()=>pbr});function hbr(e,t,n){let i,r,o,s;const a=e.posMax,l=e.pos;for(e.pos=t+1,i=1;e.pos<a;){if(o=e.src.charCodeAt(e.pos),o===93&&(i--,i===0)){r=!0;break}if(s=e.pos,e.md.inline.skipToken(e),o===91){if(s===e.pos-1)i++;else if(n)return e.pos=l,-1}}let c=-1;return r&&(c=e.pos),e.pos=l,c}function fbr(e,t,n){let i,r=t;const o={ok:!1,pos:0,str:""};if(e.charCodeAt(r)===60){for(r++;r<n;){if(i=e.charCodeAt(r),i===10||i===60)return o;if(i===62)return o.pos=r+1,o.str=a7(e.slice(t+1,r)),o.ok=!0,o;if(i===92&&r+1<n){r+=2;continue}r++}return o}let s=0;for(;r<n&&(i=e.charCodeAt(r),!(i===32||i<32||i===127));){if(i===92&&r+1<n){if(e.charCodeAt(r+1)===32)break;r+=2;continue}if(i===40&&(s++,s>32))return o;if(i===41){if(s===0)break;s--}r++}return t===r||s!==0||(o.str=a7(e.slice(t,r)),o.pos=r,o.ok=!0),o}function pbr(e,t,n,i){let r,o=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(i)s.str=i.str,s.marker=i.marker;else{if(o>=n)return s;let a=e.charCodeAt(o);if(a!==34&&a!==39&&a!==40)return s;t++,o++,a===40&&(a=41),s.marker=a}for(;o<n;){if(r=e.charCodeAt(o),r===s.marker)return s.pos=o+1,s.str+=a7(e.slice(t,o)),s.ok=!0,s;if(r===40&&s.marker===41)return s;r===92&&o+1<n&&o++,o++}return s.can_continue=!0,s.str+=a7(e.slice(t,o)),s}var IE={};IE.code_inline=function(e,t,n,i,r){const o=e[t];return"<code"+r.renderAttrs(o)+">"+dN(o.content)+"</code>"};IE.code_block=function(e,t,n,i,r){const o=e[t];return"<pre"+r.renderAttrs(o)+"><code>"+dN(e[t].content)+`</code></pre>
`};IE.fence=function(e,t,n,i,r){const o=e[t],s=o.info?a7(o.info).trim():"";let a="",l="";if(s){const u=s.split(/(\s+)/g);a=u[0],l=u.slice(2).join("")}let c;if(n.highlight?c=n.highlight(o.content,a,l)||dN(o.content):c=dN(o.content),c.indexOf("<pre")===0)return c+`
`;if(s){const u=o.attrIndex("class"),d=o.attrs?o.attrs.slice():[];u<0?d.push(["class",n.langPrefix+a]):(d[u]=d[u].slice(),d[u][1]+=" "+n.langPrefix+a);const h={attrs:d};return`<pre><code${r.renderAttrs(h)}>${c}</code></pre>
`}return`<pre><code${r.renderAttrs(o)}>${c}</code></pre>
`};IE.image=function(e,t,n,i,r){const o=e[t];return o.attrs[o.attrIndex("alt")][1]=r.renderInlineAsText(o.children,n,i),r.renderToken(e,t,n)};IE.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
`:`<br>
`};IE.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
`:`<br>
`:`
`};IE.text=function(e,t){return dN(e[t].content)};IE.html_block=function(e,t){return e[t].content};IE.html_inline=function(e,t){return e[t].content};function Lj(){this.rules=Aye({},IE)}Lj.prototype.renderAttrs=function(t){let n,i,r;if(!t.attrs)return"";for(r="",n=0,i=t.attrs.length;n<i;n++)r+=" "+dN(t.attrs[n][0])+'="'+dN(t.attrs[n][1])+'"';return r};Lj.prototype.renderToken=function(t,n,i){const r=t[n];let o="";if(r.hidden)return"";r.block&&r.nesting!==-1&&n&&t[n-1].hidden&&(o+=`
`),o+=(r.nesting===-1?"</":"<")+r.tag,o+=this.renderAttrs(r),r.nesting===0&&i.xhtmlOut&&(o+=" /");let s=!1;if(r.block&&(s=!0,r.nesting===1&&n+1<t.length)){const a=t[n+1];(a.type==="inline"||a.hidden||a.nesting===-1&&a.tag===r.tag)&&(s=!1)}return o+=s?`>
`:">",o};Lj.prototype.renderInline=function(e,t,n){let i="";const r=this.rules;for(let o=0,s=e.length;o<s;o++){const a=e[o].type;typeof r[a]<"u"?i+=r[a](e,o,t,n,this):i+=this.renderToken(e,o,t)}return i};Lj.prototype.renderInlineAsText=function(e,t,n){let i="";for(let r=0,o=e.length;r<o;r++)switch(e[r].type){case"text":i+=e[r].content;break;case"image":i+=this.renderInlineAsText(e[r].children,t,n);break;case"html_inline":case"html_block":i+=e[r].content;break;case"softbreak":case"hardbreak":i+=`
`;break}return i};Lj.prototype.render=function(e,t,n){let i="";const r=this.rules;for(let o=0,s=e.length;o<s;o++){const a=e[o].type;a==="inline"?i+=this.renderInline(e[o].children,t,n):typeof r[a]<"u"?i+=r[a](e,o,t,n,this):i+=this.renderToken(e,o,t,n)}return i};var gbr=Lj;function rS(){this.__rules__=[],this.__cache__=null}rS.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};rS.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(i){t.indexOf(i)<0&&t.push(i)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(i){i.enabled&&(n&&i.alt.indexOf(n)<0||e.__cache__[n].push(i.fn))})})};rS.prototype.at=function(e,t,n){const i=this.__find__(e),r=n||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__[i].fn=t,this.__rules__[i].alt=r.alt||[],this.__cache__=null};rS.prototype.before=function(e,t,n,i){const r=this.__find__(e),o=i||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};rS.prototype.after=function(e,t,n,i){const r=this.__find__(e),o=i||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};rS.prototype.push=function(e,t,n){const i=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:i.alt||[]}),this.__cache__=null};rS.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(i){const r=this.__find__(i);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[r].enabled=!0,n.push(i)},this),this.__cache__=null,n};rS.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};rS.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(i){const r=this.__find__(i);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[r].enabled=!1,n.push(i)},this),this.__cache__=null,n};rS.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};var Ffe=rS;function Nj(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Nj.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let i=0,r=n.length;i<r;i++)if(n[i][0]===t)return i;return-1};Nj.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};Nj.prototype.attrSet=function(t,n){const i=this.attrIndex(t),r=[t,n];i<0?this.attrPush(r):this.attrs[i]=r};Nj.prototype.attrGet=function(t){const n=this.attrIndex(t);let i=null;return n>=0&&(i=this.attrs[n][1]),i};Nj.prototype.attrJoin=function(t,n){const i=this.attrIndex(t);i<0?this.attrPush([t,n]):this.attrs[i][1]=this.attrs[i][1]+" "+n};var Pj=Nj;function _Dn(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}_Dn.prototype.Token=Pj;var mbr=_Dn,vbr=/\r\n?|\n/g,ybr=/\0/g;function bbr(e){let t;t=e.src.replace(vbr,`
`),t=t.replace(ybr,"�"),e.src=t}function _br(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function wbr(e){const t=e.tokens;for(let n=0,i=t.length;n<i;n++){const r=t[n];r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function Cbr(e){return/^<a[>\s]/i.test(e)}function Sbr(e){return/^<\/a\s*>/i.test(e)}function xbr(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,i=t.length;n<i;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,o=0;for(let s=r.length-1;s>=0;s--){const a=r[s];if(a.type==="link_close"){for(s--;r[s].level!==a.level&&r[s].type!=="link_open";)s--;continue}if(a.type==="html_inline"&&(Cbr(a.content)&&o>0&&o--,Sbr(a.content)&&o++),!(o>0)&&a.type==="text"&&e.md.linkify.test(a.content)){const l=a.content;let c=e.md.linkify.match(l);const u=[];let d=a.level,h=0;c.length>0&&c[0].index===0&&s>0&&r[s-1].type==="text_special"&&(c=c.slice(1));for(let f=0;f<c.length;f++){const p=c[f].url,g=e.md.normalizeLink(p);if(!e.md.validateLink(g))continue;let m=c[f].text;c[f].schema?c[f].schema==="mailto:"&&!/^mailto:/i.test(m)?m=e.md.normalizeLinkText("mailto:"+m).replace(/^mailto:/,""):m=e.md.normalizeLinkText(m):m=e.md.normalizeLinkText("http://"+m).replace(/^http:\/\//,"");const v=c[f].index;if(v>h){const E=new e.Token("text","",0);E.content=l.slice(h,v),E.level=d,u.push(E)}const y=new e.Token("link_open","a",1);y.attrs=[["href",g]],y.level=d++,y.markup="linkify",y.info="auto",u.push(y);const b=new e.Token("text","",0);b.content=m,b.level=d,u.push(b);const w=new e.Token("link_close","a",-1);w.level=--d,w.markup="linkify",w.info="auto",u.push(w),h=c[f].lastIndex}if(h<l.length){const f=new e.Token("text","",0);f.content=l.slice(h),f.level=d,u.push(f)}t[n].children=r=vDn(r,s,u)}}}}var wDn=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Ebr=/\((c|tm|r)\)/i,Abr=/\((c|tm|r)\)/ig,Dbr={c:"©",r:"®",tm:"™"};function Tbr(e,t){return Dbr[t.toLowerCase()]}function kbr(e){let t=0;for(let n=e.length-1;n>=0;n--){const i=e[n];i.type==="text"&&!t&&(i.content=i.content.replace(Abr,Tbr)),i.type==="link_open"&&i.info==="auto"&&t--,i.type==="link_close"&&i.info==="auto"&&t++}}function Ibr(e){let t=0;for(let n=e.length-1;n>=0;n--){const i=e[n];i.type==="text"&&!t&&wDn.test(i.content)&&(i.content=i.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),i.type==="link_open"&&i.info==="auto"&&t--,i.type==="link_close"&&i.info==="auto"&&t++}}function Lbr(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Ebr.test(e.tokens[t].content)&&kbr(e.tokens[t].children),wDn.test(e.tokens[t].content)&&Ibr(e.tokens[t].children))}var Nbr=/['"]/,eBt=/['"]/g,tBt="’";function Jre(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function Pbr(e,t){let n;const i=[];for(let r=0;r<e.length;r++){const o=e[r],s=e[r].level;for(n=i.length-1;n>=0&&!(i[n].level<=s);n--);if(i.length=n+1,o.type!=="text")continue;let a=o.content,l=0,c=a.length;e:for(;l<c;){eBt.lastIndex=l;const u=eBt.exec(a);if(!u)break;let d=!0,h=!0;l=u.index+1;const f=u[0]==="'";let p=32;if(u.index-1>=0)p=a.charCodeAt(u.index-1);else for(n=r-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){p=e[n].content.charCodeAt(e[n].content.length-1);break}let g=32;if(l<c)g=a.charCodeAt(l);else for(n=r+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){g=e[n].content.charCodeAt(0);break}const m=_K(p)||bK(String.fromCharCode(p)),v=_K(g)||bK(String.fromCharCode(g)),y=yK(p),b=yK(g);if(b?d=!1:v&&(y||m||(d=!1)),y?h=!1:m&&(b||v||(h=!1)),g===34&&u[0]==='"'&&p>=48&&p<=57&&(h=d=!1),d&&h&&(d=m,h=v),!d&&!h){f&&(o.content=Jre(o.content,u.index,tBt));continue}if(h)for(n=i.length-1;n>=0;n--){let w=i[n];if(i[n].level<s)break;if(w.single===f&&i[n].level===s){w=i[n];let E,A;f?(E=t.md.options.quotes[2],A=t.md.options.quotes[3]):(E=t.md.options.quotes[0],A=t.md.options.quotes[1]),o.content=Jre(o.content,u.index,A),e[w.token].content=Jre(e[w.token].content,w.pos,E),l+=A.length-1,w.token===r&&(l+=E.length-1),a=o.content,c=a.length,i.length=n;continue e}}d?i.push({token:r,pos:u.index,single:f,level:s}):h&&f&&(o.content=Jre(o.content,u.index,tBt))}}}function Mbr(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!Nbr.test(e.tokens[t].content)||Pbr(e.tokens[t].children,e)}function Obr(e){let t,n;const i=e.tokens,r=i.length;for(let o=0;o<r;o++){if(i[o].type!=="inline")continue;const s=i[o].children,a=s.length;for(t=0;t<a;t++)s[t].type==="text_special"&&(s[t].type="text");for(t=n=0;t<a;t++)s[t].type==="text"&&t+1<a&&s[t+1].type==="text"?s[t+1].content=s[t].content+s[t+1].content:(t!==n&&(s[n]=s[t]),n++);t!==n&&(s.length=n)}}var NOe=[["normalize",bbr],["block",_br],["inline",wbr],["linkify",xbr],["replacements",Lbr],["smartquotes",Mbr],["text_join",Obr]];function $Xe(){this.ruler=new Ffe;for(let e=0;e<NOe.length;e++)this.ruler.push(NOe[e][0],NOe[e][1])}$Xe.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,i=t.length;n<i;n++)t[n](e)};$Xe.prototype.State=mbr;var Rbr=$Xe;function LE(e,t,n,i){this.src=e,this.md=t,this.env=n,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const r=this.src;for(let o=0,s=0,a=0,l=0,c=r.length,u=!1;s<c;s++){const d=r.charCodeAt(s);if(!u)if(Cu(d)){a++,d===9?l+=4-l%4:l++;continue}else u=!0;(d===10||s===c-1)&&(d!==10&&s++,this.bMarks.push(o),this.eMarks.push(s),this.tShift.push(a),this.sCount.push(l),this.bsCount.push(0),u=!1,a=0,l=0,o=s+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}LE.prototype.push=function(e,t,n){const i=new Pj(e,t,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i};LE.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};LE.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};LE.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const i=this.src.charCodeAt(t);if(!Cu(i))break}return t};LE.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!Cu(this.src.charCodeAt(--t)))return t+1;return t};LE.prototype.skipChars=function(t,n){for(let i=this.src.length;t<i&&this.src.charCodeAt(t)===n;t++);return t};LE.prototype.skipCharsBack=function(t,n,i){if(t<=i)return t;for(;t>i;)if(n!==this.src.charCodeAt(--t))return t+1;return t};LE.prototype.getLines=function(t,n,i,r){if(t>=n)return"";const o=new Array(n-t);for(let s=0,a=t;a<n;a++,s++){let l=0;const c=this.bMarks[a];let u=c,d;for(a+1<n||r?d=this.eMarks[a]+1:d=this.eMarks[a];u<d&&l<i;){const h=this.src.charCodeAt(u);if(Cu(h))h===9?l+=4-(l+this.bsCount[a])%4:l++;else if(u-c<this.tShift[a])l++;else break;u++}l>i?o[s]=new Array(l-i+1).join(" ")+this.src.slice(u,d):o[s]=this.src.slice(u,d)}return o.join("")};LE.prototype.Token=Pj;var Fbr=LE,Bbr=65536;function POe(e,t){const n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return e.src.slice(n,i)}function nBt(e){const t=[],n=e.length;let i=0,r=e.charCodeAt(i),o=!1,s=0,a="";for(;i<n;)r===124&&(o?(a+=e.substring(s,i-1),s=i):(t.push(a+e.substring(s,i)),a="",s=i+1)),o=r===92,i++,r=e.charCodeAt(i);return t.push(a+e.substring(s)),t}function jbr(e,t,n,i){if(t+2>n)return!1;let r=t+1;if(e.sCount[r]<e.blkIndent||e.sCount[r]-e.blkIndent>=4)return!1;let o=e.bMarks[r]+e.tShift[r];if(o>=e.eMarks[r])return!1;const s=e.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58||o>=e.eMarks[r])return!1;const a=e.src.charCodeAt(o++);if(a!==124&&a!==45&&a!==58&&!Cu(a)||s===45&&Cu(a))return!1;for(;o<e.eMarks[r];){const w=e.src.charCodeAt(o);if(w!==124&&w!==45&&w!==58&&!Cu(w))return!1;o++}let l=POe(e,t+1),c=l.split("|");const u=[];for(let w=0;w<c.length;w++){const E=c[w].trim();if(!E){if(w===0||w===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(E))return!1;E.charCodeAt(E.length-1)===58?u.push(E.charCodeAt(0)===58?"center":"right"):E.charCodeAt(0)===58?u.push("left"):u.push("")}if(l=POe(e,t).trim(),l.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;c=nBt(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const d=c.length;if(d===0||d!==u.length)return!1;if(i)return!0;const h=e.parentType;e.parentType="table";const f=e.md.block.ruler.getRules("blockquote"),p=e.push("table_open","table",1),g=[t,0];p.map=g;const m=e.push("thead_open","thead",1);m.map=[t,t+1];const v=e.push("tr_open","tr",1);v.map=[t,t+1];for(let w=0;w<c.length;w++){const E=e.push("th_open","th",1);u[w]&&(E.attrs=[["style","text-align:"+u[w]]]);const A=e.push("inline","",0);A.content=c[w].trim(),A.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let y,b=0;for(r=t+2;r<n&&!(e.sCount[r]<e.blkIndent);r++){let w=!1;for(let A=0,D=f.length;A<D;A++)if(f[A](e,r,n,!0)){w=!0;break}if(w||(l=POe(e,r).trim(),!l)||e.sCount[r]-e.blkIndent>=4||(c=nBt(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),b+=d-c.length,b>Bbr))break;if(r===t+2){const A=e.push("tbody_open","tbody",1);A.map=y=[t+2,0]}const E=e.push("tr_open","tr",1);E.map=[r,r+1];for(let A=0;A<d;A++){const D=e.push("td_open","td",1);u[A]&&(D.attrs=[["style","text-align:"+u[A]]]);const T=e.push("inline","",0);T.content=c[A]?c[A].trim():"",T.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return y&&(e.push("tbody_close","tbody",-1),y[1]=r),e.push("table_close","table",-1),g[1]=r,e.parentType=h,e.line=r,!0}function zbr(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let i=t+1,r=i;for(;i<n;){if(e.isEmpty(i)){i++;continue}if(e.sCount[i]-e.blkIndent>=4){i++,r=i;continue}break}e.line=r;const o=e.push("code_block","code",0);return o.content=e.getLines(t,r,4+e.blkIndent,!1)+`
`,o.map=[t,e.line],!0}function Vbr(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||r+3>o)return!1;const s=e.src.charCodeAt(r);if(s!==126&&s!==96)return!1;let a=r;r=e.skipChars(r,s);let l=r-a;if(l<3)return!1;const c=e.src.slice(a,r),u=e.src.slice(r,o);if(s===96&&u.indexOf(String.fromCharCode(s))>=0)return!1;if(i)return!0;let d=t,h=!1;for(;d++,!(d>=n||(r=a=e.bMarks[d]+e.tShift[d],o=e.eMarks[d],r<o&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(r)===s&&!(e.sCount[d]-e.blkIndent>=4)&&(r=e.skipChars(r,s),!(r-a<l)&&(r=e.skipSpaces(r),!(r<o)))){h=!0;break}l=e.sCount[t],e.line=d+(h?1:0);const f=e.push("fence","code",0);return f.info=u,f.content=e.getLines(t+1,d,l,!0),f.markup=c,f.map=[t,e.line],!0}function Hbr(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==62)return!1;if(i)return!0;const a=[],l=[],c=[],u=[],d=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let f=!1,p;for(p=t;p<n;p++){const b=e.sCount[p]<e.blkIndent;if(r=e.bMarks[p]+e.tShift[p],o=e.eMarks[p],r>=o)break;if(e.src.charCodeAt(r++)===62&&!b){let E=e.sCount[p]+1,A,D;e.src.charCodeAt(r)===32?(r++,E++,D=!1,A=!0):e.src.charCodeAt(r)===9?(A=!0,(e.bsCount[p]+E)%4===3?(r++,E++,D=!1):D=!0):A=!1;let T=E;for(a.push(e.bMarks[p]),e.bMarks[p]=r;r<o;){const M=e.src.charCodeAt(r);if(Cu(M))M===9?T+=4-(T+e.bsCount[p]+(D?1:0))%4:T++;else break;r++}f=r>=o,l.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(A?1:0),c.push(e.sCount[p]),e.sCount[p]=T-E,u.push(e.tShift[p]),e.tShift[p]=r-e.bMarks[p];continue}if(f)break;let w=!1;for(let E=0,A=d.length;E<A;E++)if(d[E](e,p,n,!0)){w=!0;break}if(w){e.lineMax=p,e.blkIndent!==0&&(a.push(e.bMarks[p]),l.push(e.bsCount[p]),u.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}a.push(e.bMarks[p]),l.push(e.bsCount[p]),u.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]=-1}const g=e.blkIndent;e.blkIndent=0;const m=e.push("blockquote_open","blockquote",1);m.markup=">";const v=[t,0];m.map=v,e.md.block.tokenize(e,t,p);const y=e.push("blockquote_close","blockquote",-1);y.markup=">",e.lineMax=s,e.parentType=h,v[1]=e.line;for(let b=0;b<u.length;b++)e.bMarks[b+t]=a[b],e.tShift[b+t]=u[b],e.sCount[b+t]=c[b],e.bsCount[b+t]=l[b];return e.blkIndent=g,!0}function Wbr(e,t,n,i){const r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(o++);if(s!==42&&s!==45&&s!==95)return!1;let a=1;for(;o<r;){const c=e.src.charCodeAt(o++);if(c!==s&&!Cu(c))return!1;c===s&&a++}if(a<3)return!1;if(i)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(a+1).join(String.fromCharCode(s)),!0}function iBt(e,t){const n=e.eMarks[t];let i=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(i++);if(r!==42&&r!==45&&r!==43)return-1;if(i<n){const o=e.src.charCodeAt(i);if(!Cu(o))return-1}return i}function rBt(e,t){const n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];let r=n;if(r+1>=i)return-1;let o=e.src.charCodeAt(r++);if(o<48||o>57)return-1;for(;;){if(r>=i)return-1;if(o=e.src.charCodeAt(r++),o>=48&&o<=57){if(r-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return r<i&&(o=e.src.charCodeAt(r),!Cu(o))?-1:r}function Ubr(e,t){const n=e.level+2;for(let i=t+2,r=e.tokens.length-2;i<r;i++)e.tokens[i].level===n&&e.tokens[i].type==="paragraph_open"&&(e.tokens[i+2].hidden=!0,e.tokens[i].hidden=!0,i+=2)}function $br(e,t,n,i){let r,o,s,a,l=t,c=!0;if(e.sCount[l]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let u=!1;i&&e.parentType==="paragraph"&&e.sCount[l]>=e.blkIndent&&(u=!0);let d,h,f;if((f=rBt(e,l))>=0){if(d=!0,s=e.bMarks[l]+e.tShift[l],h=Number(e.src.slice(s,f-1)),u&&h!==1)return!1}else if((f=iBt(e,l))>=0)d=!1;else return!1;if(u&&e.skipSpaces(f)>=e.eMarks[l])return!1;if(i)return!0;const p=e.src.charCodeAt(f-1),g=e.tokens.length;d?(a=e.push("ordered_list_open","ol",1),h!==1&&(a.attrs=[["start",h]])):a=e.push("bullet_list_open","ul",1);const m=[l,0];a.map=m,a.markup=String.fromCharCode(p);let v=!1;const y=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";l<n;){o=f,r=e.eMarks[l];const w=e.sCount[l]+f-(e.bMarks[l]+e.tShift[l]);let E=w;for(;o<r;){const J=e.src.charCodeAt(o);if(J===9)E+=4-(E+e.bsCount[l])%4;else if(J===32)E++;else break;o++}const A=o;let D;A>=r?D=1:D=E-w,D>4&&(D=1);const T=w+D;a=e.push("list_item_open","li",1),a.markup=String.fromCharCode(p);const M=[l,0];a.map=M,d&&(a.info=e.src.slice(s,f-1));const P=e.tight,F=e.tShift[l],N=e.sCount[l],j=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=T,e.tight=!0,e.tShift[l]=A-e.bMarks[l],e.sCount[l]=E,A>=r&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||v)&&(c=!1),v=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=j,e.tShift[l]=F,e.sCount[l]=N,e.tight=P,a=e.push("list_item_close","li",-1),a.markup=String.fromCharCode(p),l=e.line,M[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let W=!1;for(let J=0,ee=y.length;J<ee;J++)if(y[J](e,l,n,!0)){W=!0;break}if(W)break;if(d){if(f=rBt(e,l),f<0)break;s=e.bMarks[l]+e.tShift[l]}else if(f=iBt(e,l),f<0)break;if(p!==e.src.charCodeAt(f-1))break}return d?a=e.push("ordered_list_close","ol",-1):a=e.push("bullet_list_close","ul",-1),a.markup=String.fromCharCode(p),m[1]=l,e.line=l,e.parentType=b,c&&Ubr(e,g),!0}function qbr(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==91)return!1;function a(y){const b=e.lineMax;if(y>=b||e.isEmpty(y))return null;let w=!1;if(e.sCount[y]-e.blkIndent>3&&(w=!0),e.sCount[y]<0&&(w=!0),!w){const D=e.md.block.ruler.getRules("reference"),T=e.parentType;e.parentType="reference";let M=!1;for(let P=0,F=D.length;P<F;P++)if(D[P](e,y,b,!0)){M=!0;break}if(e.parentType=T,M)return null}const E=e.bMarks[y]+e.tShift[y],A=e.eMarks[y];return e.src.slice(E,A+1)}let l=e.src.slice(r,o+1);o=l.length;let c=-1;for(r=1;r<o;r++){const y=l.charCodeAt(r);if(y===91)return!1;if(y===93){c=r;break}else if(y===10){const b=a(s);b!==null&&(l+=b,o=l.length,s++)}else if(y===92&&(r++,r<o&&l.charCodeAt(r)===10)){const b=a(s);b!==null&&(l+=b,o=l.length,s++)}}if(c<0||l.charCodeAt(c+1)!==58)return!1;for(r=c+2;r<o;r++){const y=l.charCodeAt(r);if(y===10){const b=a(s);b!==null&&(l+=b,o=l.length,s++)}else if(!Cu(y))break}const u=e.md.helpers.parseLinkDestination(l,r,o);if(!u.ok)return!1;const d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;r=u.pos;const h=r,f=s,p=r;for(;r<o;r++){const y=l.charCodeAt(r);if(y===10){const b=a(s);b!==null&&(l+=b,o=l.length,s++)}else if(!Cu(y))break}let g=e.md.helpers.parseLinkTitle(l,r,o);for(;g.can_continue;){const y=a(s);if(y===null)break;l+=y,r=o,o=l.length,s++,g=e.md.helpers.parseLinkTitle(l,r,o,g)}let m;for(r<o&&p!==r&&g.ok?(m=g.str,r=g.pos):(m="",r=h,s=f);r<o;){const y=l.charCodeAt(r);if(!Cu(y))break;r++}if(r<o&&l.charCodeAt(r)!==10&&m)for(m="",r=h,s=f;r<o;){const y=l.charCodeAt(r);if(!Cu(y))break;r++}if(r<o&&l.charCodeAt(r)!==10)return!1;const v=Dye(l.slice(1,c));return v?(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[v]>"u"&&(e.env.references[v]={title:m,href:d}),e.line=s),!0):!1}var Gbr=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Kbr="[a-zA-Z_:][a-zA-Z0-9:._-]*",Ybr="[^\"'=<>`\\x00-\\x20]+",Qbr="'[^']*'",Zbr='"[^"]*"',Xbr="(?:"+Ybr+"|"+Qbr+"|"+Zbr+")",Jbr="(?:\\s+"+Kbr+"(?:\\s*=\\s*"+Xbr+")?)",CDn="<[A-Za-z][A-Za-z0-9\\-]*"+Jbr+"*\\s*\\/?>",SDn="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",e_r="\x3C!---?>|\x3C!--(?:[^-]|-[^-]|--[^>])*-->",t_r="<[?][\\s\\S]*?[?]>",n_r="<![A-Za-z][^>]*>",i_r="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",r_r=new RegExp("^(?:"+CDn+"|"+SDn+"|"+e_r+"|"+t_r+"|"+n_r+"|"+i_r+")"),o_r=new RegExp("^(?:"+CDn+"|"+SDn+")"),dB=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^\x3C!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Gbr.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(o_r.source+"\\s*$"),/^$/,!1]];function s_r(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let s=e.src.slice(r,o),a=0;for(;a<dB.length&&!dB[a][0].test(s);a++);if(a===dB.length)return!1;if(i)return dB[a][2];let l=t+1;if(!dB[a][1].test(s)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(r=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],s=e.src.slice(r,o),dB[a][1].test(s)){s.length!==0&&l++;break}}e.line=l;const c=e.push("html_block","",0);return c.map=[t,l],c.content=e.getLines(t,l,e.blkIndent,!0),!0}function a_r(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(r);if(s!==35||r>=o)return!1;let a=1;for(s=e.src.charCodeAt(++r);s===35&&r<o&&a<=6;)a++,s=e.src.charCodeAt(++r);if(a>6||r<o&&!Cu(s))return!1;if(i)return!0;o=e.skipSpacesBack(o,r);const l=e.skipCharsBack(o,35,r);l>r&&Cu(e.src.charCodeAt(l-1))&&(o=l),e.line=t+1;const c=e.push("heading_open","h"+String(a),1);c.markup="########".slice(0,a),c.map=[t,e.line];const u=e.push("inline","",0);u.content=e.src.slice(r,o).trim(),u.map=[t,e.line],u.children=[];const d=e.push("heading_close","h"+String(a),-1);return d.markup="########".slice(0,a),!0}function l_r(e,t,n){const i=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let o=0,s,a=t+1;for(;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3)continue;if(e.sCount[a]>=e.blkIndent){let f=e.bMarks[a]+e.tShift[a];const p=e.eMarks[a];if(f<p&&(s=e.src.charCodeAt(f),(s===45||s===61)&&(f=e.skipChars(f,s),f=e.skipSpaces(f),f>=p))){o=s===61?1:2;break}}if(e.sCount[a]<0)continue;let h=!1;for(let f=0,p=i.length;f<p;f++)if(i[f](e,a,n,!0)){h=!0;break}if(h)break}if(!o)return!1;const l=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a+1;const c=e.push("heading_open","h"+String(o),1);c.markup=String.fromCharCode(s),c.map=[t,e.line];const u=e.push("inline","",0);u.content=l,u.map=[t,e.line-1],u.children=[];const d=e.push("heading_close","h"+String(o),-1);return d.markup=String.fromCharCode(s),e.parentType=r,!0}function c_r(e,t,n){const i=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let c=!1;for(let u=0,d=i.length;u<d;u++)if(i[u](e,o,n,!0)){c=!0;break}if(c)break}const s=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o;const a=e.push("paragraph_open","p",1);a.map=[t,e.line];const l=e.push("inline","",0);return l.content=s,l.map=[t,e.line],l.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}var eoe=[["table",jbr,["paragraph","reference"]],["code",zbr],["fence",Vbr,["paragraph","reference","blockquote","list"]],["blockquote",Hbr,["paragraph","reference","blockquote","list"]],["hr",Wbr,["paragraph","reference","blockquote","list"]],["list",$br,["paragraph","reference","blockquote"]],["reference",qbr],["html_block",s_r,["paragraph","reference","blockquote"]],["heading",a_r,["paragraph","reference","blockquote"]],["lheading",l_r],["paragraph",c_r]];function Tye(){this.ruler=new Ffe;for(let e=0;e<eoe.length;e++)this.ruler.push(eoe[e][0],eoe[e][1],{alt:(eoe[e][2]||[]).slice()})}Tye.prototype.tokenize=function(e,t,n){const i=this.ruler.getRules(""),r=i.length,o=e.md.options.maxNesting;let s=t,a=!1;for(;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n||e.sCount[s]<e.blkIndent));){if(e.level>=o){e.line=n;break}const l=e.line;let c=!1;for(let u=0;u<r;u++)if(c=i[u](e,s,n,!1),c){if(l>=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),s=e.line,s<n&&e.isEmpty(s)&&(a=!0,s++,e.line=s)}};Tye.prototype.parse=function(e,t,n,i){if(!e)return;const r=new this.State(e,t,n,i);this.tokenize(r,r.line,r.lineMax)};Tye.prototype.State=Fbr;var u_r=Tye;function vZ(e,t,n,i){this.src=e,this.env=n,this.md=t,this.tokens=i,this.tokens_meta=Array(i.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}vZ.prototype.pushPending=function(){const e=new Pj("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};vZ.prototype.push=function(e,t,n){this.pending&&this.pushPending();const i=new Pj(e,t,n);let r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(r),i};vZ.prototype.scanDelims=function(e,t){const n=this.posMax,i=this.src.charCodeAt(e),r=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o<n&&this.src.charCodeAt(o)===i;)o++;const s=o-e,a=o<n?this.src.charCodeAt(o):32,l=_K(r)||bK(String.fromCharCode(r)),c=_K(a)||bK(String.fromCharCode(a)),u=yK(r),d=yK(a),h=!d&&(!c||u||l),f=!u&&(!l||d||c);return{can_open:h&&(t||!f||l),can_close:f&&(t||!h||c),length:s}};vZ.prototype.Token=Pj;var d_r=vZ;function h_r(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function f_r(e,t){let n=e.pos;for(;n<e.posMax&&!h_r(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}var p_r=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function g_r(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,i=e.posMax;if(n+3>i||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const r=e.pending.match(p_r);if(!r)return!1;const o=r[1],s=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!s)return!1;let a=s.url;if(a.length<=o.length)return!1;a=a.replace(/\*+$/,"");const l=e.md.normalizeLink(a);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const c=e.push("link_open","a",1);c.attrs=[["href",l]],c.markup="linkify",c.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(a);const d=e.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return e.pos+=a.length-o.length,!0}function m_r(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const i=e.pending.length-1,r=e.posMax;if(!t)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){let o=i-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<r&&Cu(e.src.charCodeAt(n));)n++;return e.pos=n,!0}var qXe=[];for(let e=0;e<256;e++)qXe.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){qXe[e.charCodeAt(0)]=1});function v_r(e,t){let n=e.pos;const i=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=i))return!1;let r=e.src.charCodeAt(n);if(r===10){for(t||e.push("hardbreak","br",0),n++;n<i&&(r=e.src.charCodeAt(n),!!Cu(r));)n++;return e.pos=n,!0}let o=e.src[n];if(r>=55296&&r<=56319&&n+1<i){const a=e.src.charCodeAt(n+1);a>=56320&&a<=57343&&(o+=e.src[n+1],n++)}const s="\\"+o;if(!t){const a=e.push("text_special","",0);r<256&&qXe[r]!==0?a.content=o:a.content=s,a.markup=s,a.info="escape"}return e.pos=n+1,!0}function y_r(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const r=n;n++;const o=e.posMax;for(;n<o&&e.src.charCodeAt(n)===96;)n++;const s=e.src.slice(r,n),a=s.length;if(e.backticksScanned&&(e.backticks[a]||0)<=r)return t||(e.pending+=s),e.pos+=a,!0;let l=n,c;for(;(c=e.src.indexOf("`",l))!==-1;){for(l=c+1;l<o&&e.src.charCodeAt(l)===96;)l++;const u=l-c;if(u===a){if(!t){const d=e.push("code_inline","code",0);d.markup=s,d.content=e.src.slice(n,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[u]=c}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=a,!0}function b_r(e,t){const n=e.pos,i=e.src.charCodeAt(n);if(t||i!==126)return!1;const r=e.scanDelims(e.pos,!0);let o=r.length;const s=String.fromCharCode(i);if(o<2)return!1;let a;o%2&&(a=e.push("text","",0),a.content=s,o--);for(let l=0;l<o;l+=2)a=e.push("text","",0),a.content=s+s,e.delimiters.push({marker:i,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}function oBt(e,t){let n;const i=[],r=t.length;for(let o=0;o<r;o++){const s=t[o];if(s.marker!==126||s.end===-1)continue;const a=t[s.end];n=e.tokens[s.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[a.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[a.token-1].type==="text"&&e.tokens[a.token-1].content==="~"&&i.push(a.token-1)}for(;i.length;){const o=i.pop();let s=o+1;for(;s<e.tokens.length&&e.tokens[s].type==="s_close";)s++;s--,o!==s&&(n=e.tokens[s],e.tokens[s]=e.tokens[o],e.tokens[o]=n)}}function __r(e){const t=e.tokens_meta,n=e.tokens_meta.length;oBt(e,e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&oBt(e,t[i].delimiters)}var xDn={tokenize:b_r,postProcess:__r};function w_r(e,t){const n=e.pos,i=e.src.charCodeAt(n);if(t||i!==95&&i!==42)return!1;const r=e.scanDelims(e.pos,i===42);for(let o=0;o<r.length;o++){const s=e.push("text","",0);s.content=String.fromCharCode(i),e.delimiters.push({marker:i,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return e.pos+=r.length,!0}function sBt(e,t){const n=t.length;for(let i=n-1;i>=0;i--){const r=t[i];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const o=t[r.end],s=i>0&&t[i-1].end===r.end+1&&t[i-1].marker===r.marker&&t[i-1].token===r.token-1&&t[r.end+1].token===o.token+1,a=String.fromCharCode(r.marker),l=e.tokens[r.token];l.type=s?"strong_open":"em_open",l.tag=s?"strong":"em",l.nesting=1,l.markup=s?a+a:a,l.content="";const c=e.tokens[o.token];c.type=s?"strong_close":"em_close",c.tag=s?"strong":"em",c.nesting=-1,c.markup=s?a+a:a,c.content="",s&&(e.tokens[t[i-1].token].content="",e.tokens[t[r.end+1].token].content="",i--)}}function C_r(e){const t=e.tokens_meta,n=e.tokens_meta.length;sBt(e,e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&sBt(e,t[i].delimiters)}var EDn={tokenize:w_r,postProcess:C_r};function S_r(e,t){let n,i,r,o,s="",a="",l=e.pos,c=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const u=e.pos,d=e.posMax,h=e.pos+1,f=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(f<0)return!1;let p=f+1;if(p<d&&e.src.charCodeAt(p)===40){for(c=!1,p++;p<d&&(n=e.src.charCodeAt(p),!(!Cu(n)&&n!==10));p++);if(p>=d)return!1;if(l=p,r=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),r.ok){for(s=e.md.normalizeLink(r.str),e.md.validateLink(s)?p=r.pos:s="",l=p;p<d&&(n=e.src.charCodeAt(p),!(!Cu(n)&&n!==10));p++);if(r=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<d&&l!==p&&r.ok)for(a=r.str,p=r.pos;p<d&&(n=e.src.charCodeAt(p),!(!Cu(n)&&n!==10));p++);}(p>=d||e.src.charCodeAt(p)!==41)&&(c=!0),p++}if(c){if(typeof e.env.references>"u")return!1;if(p<d&&e.src.charCodeAt(p)===91?(l=p+1,p=e.md.helpers.parseLinkLabel(e,p),p>=0?i=e.src.slice(l,p++):p=f+1):p=f+1,i||(i=e.src.slice(h,f)),o=e.env.references[Dye(i)],!o)return e.pos=u,!1;s=o.href,a=o.title}if(!t){e.pos=h,e.posMax=f;const g=e.push("link_open","a",1),m=[["href",s]];g.attrs=m,a&&m.push(["title",a]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=p,e.posMax=d,!0}function x_r(e,t){let n,i,r,o,s,a,l,c,u="";const d=e.pos,h=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const f=e.pos+2,p=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(p<0)return!1;if(o=p+1,o<h&&e.src.charCodeAt(o)===40){for(o++;o<h&&(n=e.src.charCodeAt(o),!(!Cu(n)&&n!==10));o++);if(o>=h)return!1;for(c=o,a=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),a.ok&&(u=e.md.normalizeLink(a.str),e.md.validateLink(u)?o=a.pos:u=""),c=o;o<h&&(n=e.src.charCodeAt(o),!(!Cu(n)&&n!==10));o++);if(a=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<h&&c!==o&&a.ok)for(l=a.str,o=a.pos;o<h&&(n=e.src.charCodeAt(o),!(!Cu(n)&&n!==10));o++);else l="";if(o>=h||e.src.charCodeAt(o)!==41)return e.pos=d,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<h&&e.src.charCodeAt(o)===91?(c=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?r=e.src.slice(c,o++):o=p+1):o=p+1,r||(r=e.src.slice(f,p)),s=e.env.references[Dye(r)],!s)return e.pos=d,!1;u=s.href,l=s.title}if(!t){i=e.src.slice(f,p);const g=[];e.md.inline.parse(i,e.md,e.env,g);const m=e.push("image","img",0),v=[["src",u],["alt",""]];m.attrs=v,m.children=g,m.content=i,l&&v.push(["title",l])}return e.pos=o,e.posMax=h,!0}var E_r=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,A_r=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function D_r(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const i=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const o=e.src.slice(i+1,n);if(A_r.test(o)){const s=e.md.normalizeLink(o);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(o);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=o.length+2,!0}if(E_r.test(o)){const s=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(o);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=o.length+2,!0}return!1}function T_r(e){return/^<a[>\s]/i.test(e)}function k_r(e){return/^<\/a\s*>/i.test(e)}function I_r(e){const t=e|32;return t>=97&&t<=122}function L_r(e,t){if(!e.md.options.html)return!1;const n=e.posMax,i=e.pos;if(e.src.charCodeAt(i)!==60||i+2>=n)return!1;const r=e.src.charCodeAt(i+1);if(r!==33&&r!==63&&r!==47&&!I_r(r))return!1;const o=e.src.slice(i).match(r_r);if(!o)return!1;if(!t){const s=e.push("html_inline","",0);s.content=o[0],T_r(s.content)&&e.linkLevel++,k_r(s.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}var N_r=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,P_r=/^&([a-z][a-z0-9]{1,31});/i;function M_r(e,t){const n=e.pos,i=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=i)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(N_r);if(o){if(!t){const s=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),a=e.push("text_special","",0);a.content=UXe(s)?Rfe(s):Rfe(65533),a.markup=o[0],a.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(P_r);if(o){const s=mDn(o[0]);if(s!==o[0]){if(!t){const a=e.push("text_special","",0);a.content=s,a.markup=o[0],a.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function aBt(e){const t={},n=e.length;if(!n)return;let i=0,r=-2;const o=[];for(let s=0;s<n;s++){const a=e[s];if(o.push(0),(e[i].marker!==a.marker||r!==a.token-1)&&(i=s),r=a.token,a.length=a.length||0,!a.close)continue;t.hasOwnProperty(a.marker)||(t[a.marker]=[-1,-1,-1,-1,-1,-1]);const l=t[a.marker][(a.open?3:0)+a.length%3];let c=i-o[i]-1,u=c;for(;c>l;c-=o[c]+1){const d=e[c];if(d.marker===a.marker&&d.open&&d.end<0){let h=!1;if((d.close||a.open)&&(d.length+a.length)%3===0&&(d.length%3!==0||a.length%3!==0)&&(h=!0),!h){const f=c>0&&!e[c-1].open?o[c-1]+1:0;o[s]=s-c+f,o[c]=f,a.open=!1,d.end=s,d.close=!1,u=-1,r=-2;break}}}u!==-1&&(t[a.marker][(a.open?3:0)+(a.length||0)%3]=u)}}function O_r(e){const t=e.tokens_meta,n=e.tokens_meta.length;aBt(e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&aBt(t[i].delimiters)}function R_r(e){let t,n,i=0;const r=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)r[t].nesting<0&&i--,r[t].level=i,r[t].nesting>0&&i++,r[t].type==="text"&&t+1<o&&r[t+1].type==="text"?r[t+1].content=r[t].content+r[t+1].content:(t!==n&&(r[n]=r[t]),n++);t!==n&&(r.length=n)}var MOe=[["text",f_r],["linkify",g_r],["newline",m_r],["escape",v_r],["backticks",y_r],["strikethrough",xDn.tokenize],["emphasis",EDn.tokenize],["link",S_r],["image",x_r],["autolink",D_r],["html_inline",L_r],["entity",M_r]],OOe=[["balance_pairs",O_r],["strikethrough",xDn.postProcess],["emphasis",EDn.postProcess],["fragments_join",R_r]];function yZ(){this.ruler=new Ffe;for(let e=0;e<MOe.length;e++)this.ruler.push(MOe[e][0],MOe[e][1]);this.ruler2=new Ffe;for(let e=0;e<OOe.length;e++)this.ruler2.push(OOe[e][0],OOe[e][1])}yZ.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),i=n.length,r=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let s=!1;if(e.level<r){for(let a=0;a<i;a++)if(e.level++,s=n[a](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,o[t]=e.pos};yZ.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,i=e.posMax,r=e.md.options.maxNesting;for(;e.pos<i;){const o=e.pos;let s=!1;if(e.level<r){for(let a=0;a<n;a++)if(s=t[a](e,!1),s){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=i)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};yZ.prototype.parse=function(e,t,n,i){const r=new this.State(e,t,n,i);this.tokenize(r);const o=this.ruler2.getRules(""),s=o.length;for(let a=0;a<s;a++)o[a](r)};yZ.prototype.State=d_r;var F_r=yZ;function B_r(e){const t={};e=e||{},t.src_Any=dDn.source,t.src_Cc=hDn.source,t.src_Z=pDn.source,t.src_P=HXe.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function sze(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(i){e[i]=n[i]})}),e}function kye(e){return Object.prototype.toString.call(e)}function j_r(e){return kye(e)==="[object String]"}function z_r(e){return kye(e)==="[object Object]"}function V_r(e){return kye(e)==="[object RegExp]"}function lBt(e){return kye(e)==="[object Function]"}function H_r(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var ADn={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function W_r(e){return Object.keys(e||{}).reduce(function(t,n){return t||ADn.hasOwnProperty(n)},!1)}var U_r={"http:":{validate:function(e,t,n){const i=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(i)?i.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const i=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(i)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:i.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const i=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(i)?i.match(n.re.mailto)[0].length:0}}},$_r="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",q_r="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function G_r(e){e.__index__=-1,e.__text_cache__=""}function K_r(e){return function(t,n){const i=t.slice(n);return e.test(i)?i.match(e)[0].length:0}}function cBt(){return function(e,t){t.normalize(e)}}function Bfe(e){const t=e.re=B_r(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push($_r),n.push(t.src_xn),t.src_tlds=n.join("|");function i(a){return a.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(i(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(i(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(i(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(i(t.tpl_host_fuzzy_test),"i");const r=[];e.__compiled__={};function o(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(e.__schemas__).forEach(function(a){const l=e.__schemas__[a];if(l===null)return;const c={validate:null,link:null};if(e.__compiled__[a]=c,z_r(l)){V_r(l.validate)?c.validate=K_r(l.validate):lBt(l.validate)?c.validate=l.validate:o(a,l),lBt(l.normalize)?c.normalize=l.normalize:l.normalize?o(a,l):c.normalize=cBt();return}if(j_r(l)){r.push(a);return}o(a,l)}),r.forEach(function(a){e.__compiled__[e.__schemas__[a]]&&(e.__compiled__[a].validate=e.__compiled__[e.__schemas__[a]].validate,e.__compiled__[a].normalize=e.__compiled__[e.__schemas__[a]].normalize)}),e.__compiled__[""]={validate:null,normalize:cBt()};const s=Object.keys(e.__compiled__).filter(function(a){return a.length>0&&e.__compiled__[a]}).map(H_r).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),G_r(e)}function Y_r(e,t){const n=e.__index__,i=e.__last_index__,r=e.__text_cache__.slice(n,i);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=i+t,this.raw=r,this.text=r,this.url=r}function aze(e,t){const n=new Y_r(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function vb(e,t){if(!(this instanceof vb))return new vb(e,t);t||W_r(e)&&(t=e,e={}),this.__opts__=sze({},ADn,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=sze({},U_r,e),this.__compiled__={},this.__tlds__=q_r,this.__tlds_replaced__=!1,this.re={},Bfe(this)}vb.prototype.add=function(t,n){return this.__schemas__[t]=n,Bfe(this),this};vb.prototype.set=function(t){return this.__opts__=sze(this.__opts__,t),this};vb.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,i,r,o,s,a,l,c,u;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(o=this.testSchemaAt(t,n[2],l.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=t.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(i=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=i.index+i[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=i.index+i[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(u=t.indexOf("@"),u>=0&&(r=t.match(this.re.email_fuzzy))!==null&&(s=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=a))),this.__index__>=0};vb.prototype.pretest=function(t){return this.re.pretest.test(t)};vb.prototype.testSchemaAt=function(t,n,i){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,i,this):0};vb.prototype.match=function(t){const n=[];let i=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(aze(this,i)),i=this.__last_index__);let r=i?t.slice(i):t;for(;this.test(r);)n.push(aze(this,i)),r=r.slice(this.__last_index__),i+=this.__last_index__;return n.length?n:null};vb.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const i=this.testSchemaAt(t,n[2],n[0].length);return i?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+i,aze(this,0)):null};vb.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(i,r,o){return i!==o[r-1]}).reverse(),Bfe(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Bfe(this),this)};vb.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};vb.prototype.onCompile=function(){};var Q_r=vb,M8=2147483647,Cx=36,GXe=1,wK=26,Z_r=38,X_r=700,DDn=72,TDn=128,kDn="-",J_r=/^xn--/,ewr=/[^\0-\x7F]/,twr=/[\x2E\u3002\uFF0E\uFF61]/g,nwr={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ROe=Cx-GXe,Sx=Math.floor,FOe=String.fromCharCode;function yI(e){throw new RangeError(nwr[e])}function iwr(e,t){const n=[];let i=e.length;for(;i--;)n[i]=t(e[i]);return n}function IDn(e,t){const n=e.split("@");let i="";n.length>1&&(i=n[0]+"@",e=n[1]),e=e.replace(twr,".");const r=e.split("."),o=iwr(r,t).join(".");return i+o}function LDn(e){const t=[];let n=0;const i=e.length;for(;n<i;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((r&1023)<<10)+(o&1023)+65536):(t.push(r),n--)}else t.push(r)}return t}var rwr=e=>String.fromCodePoint(...e),owr=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Cx},uBt=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},NDn=function(e,t,n){let i=0;for(e=n?Sx(e/X_r):e>>1,e+=Sx(e/t);e>ROe*wK>>1;i+=Cx)e=Sx(e/ROe);return Sx(i+(ROe+1)*e/(e+Z_r))},PDn=function(e){const t=[],n=e.length;let i=0,r=TDn,o=DDn,s=e.lastIndexOf(kDn);s<0&&(s=0);for(let a=0;a<s;++a)e.charCodeAt(a)>=128&&yI("not-basic"),t.push(e.charCodeAt(a));for(let a=s>0?s+1:0;a<n;){const l=i;for(let u=1,d=Cx;;d+=Cx){a>=n&&yI("invalid-input");const h=owr(e.charCodeAt(a++));h>=Cx&&yI("invalid-input"),h>Sx((M8-i)/u)&&yI("overflow"),i+=h*u;const f=d<=o?GXe:d>=o+wK?wK:d-o;if(h<f)break;const p=Cx-f;u>Sx(M8/p)&&yI("overflow"),u*=p}const c=t.length+1;o=NDn(i-l,c,l==0),Sx(i/c)>M8-r&&yI("overflow"),r+=Sx(i/c),i%=c,t.splice(i++,0,r)}return String.fromCodePoint(...t)},MDn=function(e){const t=[];e=LDn(e);const n=e.length;let i=TDn,r=0,o=DDn;for(const l of e)l<128&&t.push(FOe(l));const s=t.length;let a=s;for(s&&t.push(kDn);a<n;){let l=M8;for(const u of e)u>=i&&u<l&&(l=u);const c=a+1;l-i>Sx((M8-r)/c)&&yI("overflow"),r+=(l-i)*c,i=l;for(const u of e)if(u<i&&++r>M8&&yI("overflow"),u===i){let d=r;for(let h=Cx;;h+=Cx){const f=h<=o?GXe:h>=o+wK?wK:h-o;if(d<f)break;const p=d-f,g=Cx-f;t.push(FOe(uBt(f+p%g,0))),d=Sx(p/g)}t.push(FOe(uBt(d,0))),o=NDn(r,c,a===s),r=0,++a}++r,++i}return t.join("")},swr=function(e){return IDn(e,function(t){return J_r.test(t)?PDn(t.slice(4).toLowerCase()):t})},awr=function(e){return IDn(e,function(t){return ewr.test(t)?"xn--"+MDn(t):t})},lwr={version:"2.3.1",ucs2:{decode:LDn,encode:rwr},decode:PDn,encode:MDn,toASCII:awr,toUnicode:swr},ODn=lwr,cwr={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},uwr={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},dwr={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},hwr={default:cwr,zero:uwr,commonmark:dwr},fwr=/^(vbscript|javascript|file|data):/,pwr=/^data:image\/(gif|png|jpeg|webp);/;function gwr(e){const t=e.trim().toLowerCase();return fwr.test(t)?pwr.test(t):!0}var RDn=["http:","https:","mailto:"];function mwr(e){const t=VXe(e,!0);if(t.hostname&&(!t.protocol||RDn.indexOf(t.protocol)>=0))try{t.hostname=ODn.toASCII(t.hostname)}catch{}return cDn(zXe(t))}function vwr(e){const t=VXe(e,!0);if(t.hostname&&(!t.protocol||RDn.indexOf(t.protocol)>=0))try{t.hostname=ODn.toUnicode(t.hostname)}catch{}return rze(zXe(t),rze.defaultChars+"%")}function dw(e,t){if(!(this instanceof dw))return new dw(e,t);t||WXe(e)||(t=e||{},e="default"),this.inline=new F_r,this.block=new u_r,this.core=new Rbr,this.renderer=new gbr,this.linkify=new Q_r,this.validateLink=gwr,this.normalizeLink=mwr,this.normalizeLinkText=vwr,this.utils=aDn,this.helpers=Aye({},bDn),this.options={},this.configure(e),t&&this.set(t)}dw.prototype.set=function(e){return Aye(this.options,e),this};dw.prototype.configure=function(e){const t=this;if(WXe(e)){const n=e;if(e=hwr[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};dw.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const i=e.filter(function(r){return n.indexOf(r)<0});if(i.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this};dw.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const i=e.filter(function(r){return n.indexOf(r)<0});if(i.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this};dw.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};dw.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};dw.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};dw.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};dw.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var ywr=dw,bwr=new ywr({breaks:!1,linkify:!0});ss();gpe();g7();Dn();var _wr=on(da());function BOe(e){const t=(0,_wr.c)(26),{defaultSizeRelation:n,direction:i,initiallyHidden:r,onHiddenElementChange:o,sizeThresholdFirst:s,sizeThresholdSecond:a,storageKey:l}=e,c=n===void 0?1:n,u=s===void 0?100:s,d=a===void 0?100:a,h=Ip(wwr);let f;t[0]!==r||t[1]!==h||t[2]!==l?(f=()=>{const F=l&&h.get(l);return F===toe||r==="first"?"first":F===noe||r==="second"?"second":null},t[0]=r,t[1]=h,t[2]=l,t[3]=f):f=t[3];const[p,g]=I.useState(f),m=I.useRef(null),v=I.useRef(null),y=I.useRef(null),b=I.useRef(`${c}`);let w;t[4]!==h||t[5]!==l?(w=()=>{const F=l&&h.get(l)||b.current;m.current&&(m.current.style.flex=F===toe||F===noe?b.current:F),y.current&&(y.current.style.flex="1")},t[4]=h,t[5]=l,t[6]=w):w=t[6];let E;t[7]!==i||t[8]!==h||t[9]!==l?(E=[i,h,l],t[7]=i,t[8]=h,t[9]=l,t[10]=E):E=t[10],I.useEffect(w,E);let A,D;t[11]!==p||t[12]!==h||t[13]!==l?(A=()=>{const F=function(W){if(W.style.left="-1000px",W.style.position="absolute",W.style.opacity="0",!m.current)return;const J=parseFloat(m.current.style.flex);(!Number.isFinite(J)||J<1)&&(m.current.style.flex="1")},N=function(W){if(W.style.left="",W.style.position="",W.style.opacity="",!l)return;const J=h.get(l);m.current&&J!==toe&&J!==noe&&(m.current.style.flex=J||b.current)};for(const j of["first","second"]){const W=(j==="first"?m:y).current;W&&(j===p?F(W):N(W))}},D=[p,h,l],t[11]=p,t[12]=h,t[13]=l,t[14]=A,t[15]=D):(A=t[14],D=t[15]),I.useEffect(A,D);let T,M;t[16]!==i||t[17]!==o||t[18]!==u||t[19]!==d||t[20]!==h||t[21]!==l?(M=()=>{if(!v.current||!m.current||!y.current)return;const F=s7(500,pe=>{l&&h.set(l,pe)}),N=function(U){g(K=>U===K?K:(o?.(U),U))},j=v.current,W=m.current,J=W.parentElement,ee=i==="horizontal",Q=ee?"clientX":"clientY",H=ee?"left":"top",q=ee?"right":"bottom",le=ee?"clientWidth":"clientHeight",Y=function(U){if(!(U.target===U.currentTarget))return;U.preventDefault();const ie=U[Q]-j.getBoundingClientRect()[H],ce=function(me){if(me.buttons===0)return de();const Ce=J.getBoundingClientRect(),Se=me[Q]-Ce[H]-ie,De=Ce[q]-me[Q]+ie-j[le];if(Se<u)N("first"),F(toe);else if(De<d)N("second"),F(noe);else{N(null);const Me=`${Se/De}`;W.style.flex=Me,F(Me)}};function de(){document.removeEventListener("mousemove",ce),document.removeEventListener("mouseup",de)}document.addEventListener("mousemove",ce),document.addEventListener("mouseup",de)};j.addEventListener("mousedown",Y);const G=function(){m.current&&(m.current.style.flex=b.current),F(b.current),N(null)};return j.addEventListener("dblclick",G),()=>{j.removeEventListener("mousedown",Y),j.removeEventListener("dblclick",G)}},T=[i,o,u,d,h,l],t[16]=i,t[17]=o,t[18]=u,t[19]=d,t[20]=h,t[21]=l,t[22]=T,t[23]=M):(T=t[22],M=t[23]),I.useEffect(M,T);let P;return t[24]!==p?(P={dragBarRef:v,hiddenElement:p,firstRef:m,setHiddenElement:g,secondRef:y},t[24]=p,t[25]=P):P=t[25],P}function wwr(e){return e.storage}var toe="hide-first",noe="hide-second";function FDn(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=FDn(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function bc(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=FDn(e))&&(i&&(i+=" "),i+=t);return i}var Cwr=on(da()),KXe=on(da());function Ts(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function dBt(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function bZ(...e){return t=>{let n=!1;const i=e.map(r=>{const o=dBt(r,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let r=0;r<i.length;r++){const o=i[r];typeof o=="function"?o():dBt(e[r],null)}}}}function Gf(...e){return I.useCallback(bZ(...e),e)}function Swr(e,t){const n=I.createContext(t),i=o=>{const{children:s,...a}=o,l=I.useMemo(()=>a,Object.values(a));return S.jsx(n.Provider,{value:l,children:s})};i.displayName=e+"Provider";function r(o){const s=I.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[i,r]}function VF(e,t=[]){let n=[];function i(o,s){const a=I.createContext(s),l=n.length;n=[...n,s];const c=d=>{const{scope:h,children:f,...p}=d,g=h?.[e]?.[l]||a,m=I.useMemo(()=>p,Object.values(p));return S.jsx(g.Provider,{value:m,children:f})};c.displayName=o+"Provider";function u(d,h){const f=h?.[e]?.[l]||a,p=I.useContext(f);if(p)return p;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${o}\``)}return[c,u]}const r=()=>{const o=n.map(s=>I.createContext(s));return function(a){const l=a?.[e]||o;return I.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return r.scopeName=e,[i,xwr(r,...t)]}function xwr(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(o){const s=i.reduce((a,{useScope:l,scopeName:c})=>{const d=l(o)[`__scope${c}`];return{...a,...d}},{});return I.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var hN=globalThis?.document?I.useLayoutEffect:()=>{},Ewr=cT[" useInsertionEffect ".trim().toString()]||hN;function Iye({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[r,o,s]=Awr({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:r;{const u=I.useRef(e!==void 0);I.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${i} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,i])}const c=I.useCallback(u=>{if(a){const d=Dwr(u)?u(e):u;d!==e&&s.current?.(d)}else o(u)},[a,e,o,s]);return[l,c]}function Awr({defaultProp:e,onChange:t}){const[n,i]=I.useState(e),r=I.useRef(n),o=I.useRef(t);return Ewr(()=>{o.current=t},[t]),I.useEffect(()=>{r.current!==n&&(o.current?.(n),r.current=n)},[n,r]),[n,i,o]}function Dwr(e){return typeof e=="function"}function CK(e){const t=Twr(e),n=I.forwardRef((i,r)=>{const{children:o,...s}=i,a=I.Children.toArray(o),l=a.find(Iwr);if(l){const c=l.props.children,u=a.map(d=>d===l?I.Children.count(c)>1?I.Children.only(null):I.isValidElement(c)?c.props.children:null:d);return S.jsx(t,{...s,ref:r,children:I.isValidElement(c)?I.cloneElement(c,void 0,u):null})}return S.jsx(t,{...s,ref:r,children:o})});return n.displayName=`${e}.Slot`,n}function Twr(e){const t=I.forwardRef((n,i)=>{const{children:r,...o}=n;if(I.isValidElement(r)){const s=Nwr(r),a=Lwr(o,r.props);return r.type!==I.Fragment&&(a.ref=i?bZ(i,s):s),I.cloneElement(r,a)}return I.Children.count(r)>1?I.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var BDn=Symbol("radix.slottable");function kwr(e){const t=({children:n})=>S.jsx(S.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=BDn,t}function Iwr(e){return I.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===BDn}function Lwr(e,t){const n={...t};for(const i in t){const r=e[i],o=t[i];/^on[A-Z]/.test(i)?r&&o?n[i]=(...a)=>{const l=o(...a);return r(...a),l}:r&&(n[i]=r):i==="style"?n[i]={...r,...o}:i==="className"&&(n[i]=[r,o].filter(Boolean).join(" "))}return{...e,...n}}function Nwr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Pwr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Yd=Pwr.reduce((e,t)=>{const n=CK(`Primitive.${t}`),i=I.forwardRef((r,o)=>{const{asChild:s,...a}=r,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(l,{...a,ref:o})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function jDn(e,t){e&&lf.flushSync(()=>e.dispatchEvent(t))}function zDn(e){const t=e+"CollectionProvider",[n,i]=VF(t),[r,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:m,children:v}=g,y=Ri.useRef(null),b=Ri.useRef(new Map).current;return S.jsx(r,{scope:m,itemMap:b,collectionRef:y,children:v})};s.displayName=t;const a=e+"CollectionSlot",l=CK(a),c=Ri.forwardRef((g,m)=>{const{scope:v,children:y}=g,b=o(a,v),w=Gf(m,b.collectionRef);return S.jsx(l,{ref:w,children:y})});c.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=CK(u),f=Ri.forwardRef((g,m)=>{const{scope:v,children:y,...b}=g,w=Ri.useRef(null),E=Gf(m,w),A=o(u,v);return Ri.useEffect(()=>(A.itemMap.set(w,{ref:w,...b}),()=>{A.itemMap.delete(w)})),S.jsx(h,{[d]:"",ref:E,children:y})});f.displayName=u;function p(g){const m=o(e+"CollectionConsumer",g);return Ri.useCallback(()=>{const y=m.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(m.itemMap.values()).sort((A,D)=>b.indexOf(A.ref.current)-b.indexOf(D.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:s,Slot:c,ItemSlot:f},p,i]}var Mwr=I.createContext(void 0);function VDn(e){const t=I.useContext(Mwr);return e||t||"ltr"}function rT(e){const t=I.useRef(e);return I.useEffect(()=>{t.current=e}),I.useMemo(()=>(...n)=>t.current?.(...n),[])}function Owr(e,t=globalThis?.document){const n=rT(e);I.useEffect(()=>{const i=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var Rwr="DismissableLayer",lze="dismissableLayer.update",Fwr="dismissableLayer.pointerDownOutside",Bwr="dismissableLayer.focusOutside",hBt,HDn=I.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Lye=I.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:r,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...l}=e,c=I.useContext(HDn),[u,d]=I.useState(null),h=u?.ownerDocument??globalThis?.document,[,f]=I.useState({}),p=Gf(t,D=>d(D)),g=Array.from(c.layers),[m]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(m),y=u?g.indexOf(u):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,w=y>=v,E=Vwr(D=>{const T=D.target,M=[...c.branches].some(P=>P.contains(T));!w||M||(r?.(D),s?.(D),D.defaultPrevented||a?.())},h),A=Hwr(D=>{const T=D.target;[...c.branches].some(P=>P.contains(T))||(o?.(D),s?.(D),D.defaultPrevented||a?.())},h);return Owr(D=>{y===c.layers.size-1&&(i?.(D),!D.defaultPrevented&&a&&(D.preventDefault(),a()))},h),I.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(hBt=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),fBt(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=hBt)}},[u,h,n,c]),I.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),fBt())},[u,c]),I.useEffect(()=>{const D=()=>f({});return document.addEventListener(lze,D),()=>document.removeEventListener(lze,D)},[]),S.jsx(Yd.div,{...l,ref:p,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:Ts(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Ts(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Ts(e.onPointerDownCapture,E.onPointerDownCapture)})});Lye.displayName=Rwr;var jwr="DismissableLayerBranch",zwr=I.forwardRef((e,t)=>{const n=I.useContext(HDn),i=I.useRef(null),r=Gf(t,i);return I.useEffect(()=>{const o=i.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),S.jsx(Yd.div,{...e,ref:r})});zwr.displayName=jwr;function Vwr(e,t=globalThis?.document){const n=rT(e),i=I.useRef(!1),r=I.useRef(()=>{});return I.useEffect(()=>{const o=a=>{if(a.target&&!i.current){let l=function(){WDn(Fwr,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}else t.removeEventListener("click",r.current);i.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function Hwr(e,t=globalThis?.document){const n=rT(e),i=I.useRef(!1);return I.useEffect(()=>{const r=o=>{o.target&&!i.current&&WDn(Bwr,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function fBt(){const e=new CustomEvent(lze);document.dispatchEvent(e)}function WDn(e,t,n,{discrete:i}){const r=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),i?jDn(r,o):r.dispatchEvent(o)}var jOe=0;function UDn(){I.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??pBt()),document.body.insertAdjacentElement("beforeend",e[1]??pBt()),jOe++,()=>{jOe===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),jOe--}},[])}function pBt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var zOe="focusScope.autoFocusOnMount",VOe="focusScope.autoFocusOnUnmount",gBt={bubbles:!1,cancelable:!0},Wwr="FocusScope",YXe=I.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:r,onUnmountAutoFocus:o,...s}=e,[a,l]=I.useState(null),c=rT(r),u=rT(o),d=I.useRef(null),h=Gf(t,g=>l(g)),f=I.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;I.useEffect(()=>{if(i){let g=function(b){if(f.paused||!a)return;const w=b.target;a.contains(w)?d.current=w:cI(d.current,{select:!0})},m=function(b){if(f.paused||!a)return;const w=b.relatedTarget;w!==null&&(a.contains(w)||cI(d.current,{select:!0}))},v=function(b){if(document.activeElement===document.body)for(const E of b)E.removedNodes.length>0&&cI(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",m);const y=new MutationObserver(v);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",m),y.disconnect()}}},[i,a,f.paused]),I.useEffect(()=>{if(a){vBt.add(f);const g=document.activeElement;if(!a.contains(g)){const v=new CustomEvent(zOe,gBt);a.addEventListener(zOe,c),a.dispatchEvent(v),v.defaultPrevented||(Uwr(Ywr($Dn(a)),{select:!0}),document.activeElement===g&&cI(a))}return()=>{a.removeEventListener(zOe,c),setTimeout(()=>{const v=new CustomEvent(VOe,gBt);a.addEventListener(VOe,u),a.dispatchEvent(v),v.defaultPrevented||cI(g??document.body,{select:!0}),a.removeEventListener(VOe,u),vBt.remove(f)},0)}}},[a,c,u,f]);const p=I.useCallback(g=>{if(!n&&!i||f.paused)return;const m=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if(m&&v){const y=g.currentTarget,[b,w]=$wr(y);b&&w?!g.shiftKey&&v===w?(g.preventDefault(),n&&cI(b,{select:!0})):g.shiftKey&&v===b&&(g.preventDefault(),n&&cI(w,{select:!0})):v===y&&g.preventDefault()}},[n,i,f.paused]);return S.jsx(Yd.div,{tabIndex:-1,...s,ref:h,onKeyDown:p})});YXe.displayName=Wwr;function Uwr(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(cI(i,{select:t}),document.activeElement!==n)return}function $wr(e){const t=$Dn(e),n=mBt(t,e),i=mBt(t.reverse(),e);return[n,i]}function $Dn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const r=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||r?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function mBt(e,t){for(const n of e)if(!qwr(n,{upTo:t}))return n}function qwr(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Gwr(e){return e instanceof HTMLInputElement&&"select"in e}function cI(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Gwr(e)&&t&&e.select()}}var vBt=Kwr();function Kwr(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=yBt(e,t),e.unshift(t)},remove(t){e=yBt(e,t),e[0]?.resume()}}}function yBt(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function Ywr(e){return e.filter(t=>t.tagName!=="A")}var Qwr=cT[" useId ".trim().toString()]||(()=>{}),Zwr=0;function RR(e){const[t,n]=I.useState(Qwr());return hN(()=>{n(i=>i??String(Zwr++))},[e]),t?`radix-${t}`:""}var Xwr=["top","right","bottom","left"],oT=Math.min,rm=Math.max,SK=Math.round,ioe=Math.floor,Vx=e=>({x:e,y:e}),Jwr={left:"right",right:"left",bottom:"top",top:"bottom"},e1r={start:"end",end:"start"};function cze(e,t,n){return rm(e,oT(t,n))}function fE(e,t){return typeof e=="function"?e(t):e}function sT(e){return e.split("-")[0]}function Mj(e){return e.split("-")[1]}function QXe(e){return e==="x"?"y":"x"}function ZXe(e){return e==="y"?"height":"width"}var t1r=new Set(["top","bottom"]);function xx(e){return t1r.has(sT(e))?"y":"x"}function XXe(e){return QXe(xx(e))}function n1r(e,t,n){n===void 0&&(n=!1);const i=Mj(e),r=XXe(e),o=ZXe(r);let s=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=jfe(s)),[s,jfe(s)]}function i1r(e){const t=jfe(e);return[uze(e),t,uze(t)]}function uze(e){return e.replace(/start|end/g,t=>e1r[t])}var bBt=["left","right"],_Bt=["right","left"],r1r=["top","bottom"],o1r=["bottom","top"];function s1r(e,t,n){switch(e){case"top":case"bottom":return n?t?_Bt:bBt:t?bBt:_Bt;case"left":case"right":return t?r1r:o1r;default:return[]}}function a1r(e,t,n,i){const r=Mj(e);let o=s1r(sT(e),n==="start",i);return r&&(o=o.map(s=>s+"-"+r),t&&(o=o.concat(o.map(uze)))),o}function jfe(e){return e.replace(/left|right|bottom|top/g,t=>Jwr[t])}function l1r(e){return{top:0,right:0,bottom:0,left:0,...e}}function qDn(e){return typeof e!="number"?l1r(e):{top:e,right:e,bottom:e,left:e}}function zfe(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function wBt(e,t,n){let{reference:i,floating:r}=e;const o=xx(t),s=XXe(t),a=ZXe(s),l=sT(t),c=o==="y",u=i.x+i.width/2-r.width/2,d=i.y+i.height/2-r.height/2,h=i[a]/2-r[a]/2;let f;switch(l){case"top":f={x:u,y:i.y-r.height};break;case"bottom":f={x:u,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:d};break;case"left":f={x:i.x-r.width,y:d};break;default:f={x:i.x,y:i.y}}switch(Mj(t)){case"start":f[s]-=h*(n&&c?-1:1);break;case"end":f[s]+=h*(n&&c?-1:1);break}return f}var c1r=async(e,t,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=wBt(c,i,l),h=i,f={},p=0;for(let g=0;g<a.length;g++){const{name:m,fn:v}=a[g],{x:y,y:b,data:w,reset:E}=await v({x:u,y:d,initialPlacement:i,placement:h,strategy:r,middlewareData:f,rects:c,platform:s,elements:{reference:e,floating:t}});u=y??u,d=b??d,f={...f,[m]:{...f[m],...w}},E&&p<=50&&(p++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(c=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):E.rects),{x:u,y:d}=wBt(c,h,l)),g=-1)}return{x:u,y:d,placement:h,strategy:r,middlewareData:f}};async function l7(e,t){var n;t===void 0&&(t={});const{x:i,y:r,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=fE(t,e),p=qDn(f),m=a[h?d==="floating"?"reference":"floating":d],v=zfe(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(m)))==null||n?m:m.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y=d==="floating"?{x:i,y:r,width:s.floating.width,height:s.floating.height}:s.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),w=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},E=zfe(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:b,strategy:l}):y);return{top:(v.top-E.top+p.top)/w.y,bottom:(E.bottom-v.bottom+p.bottom)/w.y,left:(v.left-E.left+p.left)/w.x,right:(E.right-v.right+p.right)/w.x}}var u1r=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:r,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=fE(e,t)||{};if(c==null)return{};const d=qDn(u),h={x:n,y:i},f=XXe(r),p=ZXe(f),g=await s.getDimensions(c),m=f==="y",v=m?"top":"left",y=m?"bottom":"right",b=m?"clientHeight":"clientWidth",w=o.reference[p]+o.reference[f]-h[f]-o.floating[p],E=h[f]-o.reference[f],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let D=A?A[b]:0;(!D||!await(s.isElement==null?void 0:s.isElement(A)))&&(D=a.floating[b]||o.floating[p]);const T=w/2-E/2,M=D/2-g[p]/2-1,P=oT(d[v],M),F=oT(d[y],M),N=P,j=D-g[p]-F,W=D/2-g[p]/2+T,J=cze(N,W,j),ee=!l.arrow&&Mj(r)!=null&&W!==J&&o.reference[p]/2-(W<N?P:F)-g[p]/2<0,Q=ee?W<N?W-N:W-j:0;return{[f]:h[f]+Q,data:{[f]:J,centerOffset:W-J-Q,...ee&&{alignmentOffset:Q}},reset:ee}}}),d1r=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:r,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...m}=fE(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const v=sT(r),y=xx(a),b=sT(a)===a,w=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=h||(b||!g?[jfe(a)]:i1r(a)),A=p!=="none";!h&&A&&E.push(...a1r(a,g,p,w));const D=[a,...E],T=await l7(t,m),M=[];let P=((i=o.flip)==null?void 0:i.overflows)||[];if(u&&M.push(T[v]),d){const W=n1r(r,s,w);M.push(T[W[0]],T[W[1]])}if(P=[...P,{placement:r,overflows:M}],!M.every(W=>W<=0)){var F,N;const W=(((F=o.flip)==null?void 0:F.index)||0)+1,J=D[W];if(J&&(!(d==="alignment"?y!==xx(J):!1)||P.every(H=>xx(H.placement)===y?H.overflows[0]>0:!0)))return{data:{index:W,overflows:P},reset:{placement:J}};let ee=(N=P.filter(Q=>Q.overflows[0]<=0).sort((Q,H)=>Q.overflows[1]-H.overflows[1])[0])==null?void 0:N.placement;if(!ee)switch(f){case"bestFit":{var j;const Q=(j=P.filter(H=>{if(A){const q=xx(H.placement);return q===y||q==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(q=>q>0).reduce((q,le)=>q+le,0)]).sort((H,q)=>H[1]-q[1])[0])==null?void 0:j[0];Q&&(ee=Q);break}case"initialPlacement":ee=a;break}if(r!==ee)return{reset:{placement:ee}}}return{}}}};function CBt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function SBt(e){return Xwr.some(t=>e[t]>=0)}var h1r=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...r}=fE(e,t);switch(i){case"referenceHidden":{const o=await l7(t,{...r,elementContext:"reference"}),s=CBt(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:SBt(s)}}}case"escaped":{const o=await l7(t,{...r,altBoundary:!0}),s=CBt(o,n.floating);return{data:{escapedOffsets:s,escaped:SBt(s)}}}default:return{}}}}},GDn=new Set(["left","top"]);async function f1r(e,t){const{placement:n,platform:i,elements:r}=e,o=await(i.isRTL==null?void 0:i.isRTL(r.floating)),s=sT(n),a=Mj(n),l=xx(n)==="y",c=GDn.has(s)?-1:1,u=o&&l?-1:1,d=fE(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof p=="number"&&(f=a==="end"?p*-1:p),l?{x:f*u,y:h*c}:{x:h*c,y:f*u}}var p1r=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:r,y:o,placement:s,middlewareData:a}=t,l=await f1r(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:s}}}}},g1r=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:r}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:m=>{let{x:v,y}=m;return{x:v,y}}},...l}=fE(e,t),c={x:n,y:i},u=await l7(t,l),d=xx(sT(r)),h=QXe(d);let f=c[h],p=c[d];if(o){const m=h==="y"?"top":"left",v=h==="y"?"bottom":"right",y=f+u[m],b=f-u[v];f=cze(y,f,b)}if(s){const m=d==="y"?"top":"left",v=d==="y"?"bottom":"right",y=p+u[m],b=p-u[v];p=cze(y,p,b)}const g=a.fn({...t,[h]:f,[d]:p});return{...g,data:{x:g.x-n,y:g.y-i,enabled:{[h]:o,[d]:s}}}}}},m1r=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:r,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=fE(e,t),u={x:n,y:i},d=xx(r),h=QXe(d);let f=u[h],p=u[d];const g=fE(a,t),m=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const b=h==="y"?"height":"width",w=o.reference[h]-o.floating[b]+m.mainAxis,E=o.reference[h]+o.reference[b]-m.mainAxis;f<w?f=w:f>E&&(f=E)}if(c){var v,y;const b=h==="y"?"width":"height",w=GDn.has(sT(r)),E=o.reference[d]-o.floating[b]+(w&&((v=s.offset)==null?void 0:v[d])||0)+(w?0:m.crossAxis),A=o.reference[d]+o.reference[b]+(w?0:((y=s.offset)==null?void 0:y[d])||0)-(w?m.crossAxis:0);p<E?p=E:p>A&&(p=A)}return{[h]:f,[d]:p}}}},v1r=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:r,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...c}=fE(e,t),u=await l7(t,c),d=sT(r),h=Mj(r),f=xx(r)==="y",{width:p,height:g}=o.floating;let m,v;d==="top"||d==="bottom"?(m=d,v=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,m=h==="end"?"top":"bottom");const y=g-u.top-u.bottom,b=p-u.left-u.right,w=oT(g-u[m],y),E=oT(p-u[v],b),A=!t.middlewareData.shift;let D=w,T=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=b),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(D=y),A&&!h){const P=rm(u.left,0),F=rm(u.right,0),N=rm(u.top,0),j=rm(u.bottom,0);f?T=p-2*(P!==0||F!==0?P+F:rm(u.left,u.right)):D=g-2*(N!==0||j!==0?N+j:rm(u.top,u.bottom))}await l({...t,availableWidth:T,availableHeight:D});const M=await s.getDimensions(a.floating);return p!==M.width||g!==M.height?{reset:{rects:!0}}:{}}}};function Nye(){return typeof window<"u"}function Oj(e){return KDn(e)?(e.nodeName||"").toLowerCase():"#document"}function ib(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function NE(e){var t;return(t=(KDn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function KDn(e){return Nye()?e instanceof Node||e instanceof ib(e).Node:!1}function Cv(e){return Nye()?e instanceof Element||e instanceof ib(e).Element:!1}function pE(e){return Nye()?e instanceof HTMLElement||e instanceof ib(e).HTMLElement:!1}function xBt(e){return!Nye()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ib(e).ShadowRoot}var y1r=new Set(["inline","contents"]);function _Z(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=FC(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!y1r.has(r)}var b1r=new Set(["table","td","th"]);function _1r(e){return b1r.has(Oj(e))}var w1r=[":popover-open",":modal"];function Pye(e){return w1r.some(t=>{try{return e.matches(t)}catch{return!1}})}var C1r=["transform","translate","scale","rotate","perspective"],S1r=["transform","translate","scale","rotate","perspective","filter"],x1r=["paint","layout","strict","content"];function JXe(e){const t=eJe(),n=Cv(e)?FC(e):e;return C1r.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||S1r.some(i=>(n.willChange||"").includes(i))||x1r.some(i=>(n.contain||"").includes(i))}function E1r(e){let t=fN(e);for(;pE(t)&&!c7(t);){if(JXe(t))return t;if(Pye(t))return null;t=fN(t)}return null}function eJe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var A1r=new Set(["html","body","#document"]);function c7(e){return A1r.has(Oj(e))}function FC(e){return ib(e).getComputedStyle(e)}function Mye(e){return Cv(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function fN(e){if(Oj(e)==="html")return e;const t=e.assignedSlot||e.parentNode||xBt(e)&&e.host||NE(e);return xBt(t)?t.host:t}function YDn(e){const t=fN(e);return c7(t)?e.ownerDocument?e.ownerDocument.body:e.body:pE(t)&&_Z(t)?t:YDn(t)}function xK(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=YDn(e),o=r===((i=e.ownerDocument)==null?void 0:i.body),s=ib(r);if(o){const a=dze(s);return t.concat(s,s.visualViewport||[],_Z(r)?r:[],a&&n?xK(a):[])}return t.concat(r,xK(r,[],n))}function dze(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function QDn(e){const t=FC(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=pE(e),o=r?e.offsetWidth:n,s=r?e.offsetHeight:i,a=SK(n)!==o||SK(i)!==s;return a&&(n=o,i=s),{width:n,height:i,$:a}}function tJe(e){return Cv(e)?e:e.contextElement}function O8(e){const t=tJe(e);if(!pE(t))return Vx(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:o}=QDn(t);let s=(o?SK(n.width):n.width)/i,a=(o?SK(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var D1r=Vx(0);function ZDn(e){const t=ib(e);return!eJe()||!t.visualViewport?D1r:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function T1r(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ib(e)?!1:t}function B2(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=tJe(e);let s=Vx(1);t&&(i?Cv(i)&&(s=O8(i)):s=O8(e));const a=T1r(o,n,i)?ZDn(o):Vx(0);let l=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,u=r.width/s.x,d=r.height/s.y;if(o){const h=ib(o),f=i&&Cv(i)?ib(i):i;let p=h,g=dze(p);for(;g&&i&&f!==p;){const m=O8(g),v=g.getBoundingClientRect(),y=FC(g),b=v.left+(g.clientLeft+parseFloat(y.paddingLeft))*m.x,w=v.top+(g.clientTop+parseFloat(y.paddingTop))*m.y;l*=m.x,c*=m.y,u*=m.x,d*=m.y,l+=b,c+=w,p=ib(g),g=dze(p)}}return zfe({width:u,height:d,x:l,y:c})}function Oye(e,t){const n=Mye(e).scrollLeft;return t?t.left+n:B2(NE(e)).left+n}function XDn(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-Oye(e,n),r=n.top+t.scrollTop;return{x:i,y:r}}function k1r(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e;const o=r==="fixed",s=NE(i),a=t?Pye(t.floating):!1;if(i===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=Vx(1);const u=Vx(0),d=pE(i);if((d||!d&&!o)&&((Oj(i)!=="body"||_Z(s))&&(l=Mye(i)),pE(i))){const f=B2(i);c=O8(i),u.x=f.x+i.clientLeft,u.y=f.y+i.clientTop}const h=s&&!d&&!o?XDn(s,l):Vx(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function I1r(e){return Array.from(e.getClientRects())}function L1r(e){const t=NE(e),n=Mye(e),i=e.ownerDocument.body,r=rm(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=rm(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+Oye(e);const a=-n.scrollTop;return FC(i).direction==="rtl"&&(s+=rm(t.clientWidth,i.clientWidth)-r),{width:r,height:o,x:s,y:a}}var EBt=25;function N1r(e,t){const n=ib(e),i=NE(e),r=n.visualViewport;let o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;const u=eJe();(!u||u&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}const c=Oye(i);if(c<=0){const u=i.ownerDocument,d=u.body,h=getComputedStyle(d),f=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,p=Math.abs(i.clientWidth-d.clientWidth-f);p<=EBt&&(o-=p)}else c<=EBt&&(o+=c);return{width:o,height:s,x:a,y:l}}var P1r=new Set(["absolute","fixed"]);function M1r(e,t){const n=B2(e,!0,t==="fixed"),i=n.top+e.clientTop,r=n.left+e.clientLeft,o=pE(e)?O8(e):Vx(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=r*o.x,c=i*o.y;return{width:s,height:a,x:l,y:c}}function ABt(e,t,n){let i;if(t==="viewport")i=N1r(e,n);else if(t==="document")i=L1r(NE(e));else if(Cv(t))i=M1r(t,n);else{const r=ZDn(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return zfe(i)}function JDn(e,t){const n=fN(e);return n===t||!Cv(n)||c7(n)?!1:FC(n).position==="fixed"||JDn(n,t)}function O1r(e,t){const n=t.get(e);if(n)return n;let i=xK(e,[],!1).filter(a=>Cv(a)&&Oj(a)!=="body"),r=null;const o=FC(e).position==="fixed";let s=o?fN(e):e;for(;Cv(s)&&!c7(s);){const a=FC(s),l=JXe(s);!l&&a.position==="fixed"&&(r=null),(o?!l&&!r:!l&&a.position==="static"&&!!r&&P1r.has(r.position)||_Z(s)&&!l&&JDn(e,s))?i=i.filter(u=>u!==s):r=a,s=fN(s)}return t.set(e,i),i}function R1r(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const s=[...n==="clippingAncestors"?Pye(t)?[]:O1r(t,this._c):[].concat(n),i],a=s[0],l=s.reduce((c,u)=>{const d=ABt(t,u,r);return c.top=rm(d.top,c.top),c.right=oT(d.right,c.right),c.bottom=oT(d.bottom,c.bottom),c.left=rm(d.left,c.left),c},ABt(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function F1r(e){const{width:t,height:n}=QDn(e);return{width:t,height:n}}function B1r(e,t,n){const i=pE(t),r=NE(t),o=n==="fixed",s=B2(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=Vx(0);function c(){l.x=Oye(r)}if(i||!i&&!o)if((Oj(t)!=="body"||_Z(r))&&(a=Mye(t)),i){const f=B2(t,!0,o,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else r&&c();o&&!i&&r&&c();const u=r&&!i&&!o?XDn(r,a):Vx(0),d=s.left+a.scrollLeft-l.x-u.x,h=s.top+a.scrollTop-l.y-u.y;return{x:d,y:h,width:s.width,height:s.height}}function HOe(e){return FC(e).position==="static"}function DBt(e,t){if(!pE(e)||FC(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return NE(e)===n&&(n=n.ownerDocument.body),n}function eTn(e,t){const n=ib(e);if(Pye(e))return n;if(!pE(e)){let r=fN(e);for(;r&&!c7(r);){if(Cv(r)&&!HOe(r))return r;r=fN(r)}return n}let i=DBt(e,t);for(;i&&_1r(i)&&HOe(i);)i=DBt(i,t);return i&&c7(i)&&HOe(i)&&!JXe(i)?n:i||E1r(e)||n}var j1r=async function(e){const t=this.getOffsetParent||eTn,n=this.getDimensions,i=await n(e.floating);return{reference:B1r(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function z1r(e){return FC(e).direction==="rtl"}var V1r={convertOffsetParentRelativeRectToViewportRelativeRect:k1r,getDocumentElement:NE,getClippingRect:R1r,getOffsetParent:eTn,getElementRects:j1r,getClientRects:I1r,getDimensions:F1r,getScale:O8,isElement:Cv,isRTL:z1r};function tTn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function H1r(e,t){let n=null,i;const r=NE(e);function o(){var a;clearTimeout(i),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:f}=c;if(a||t(),!h||!f)return;const p=ioe(d),g=ioe(r.clientWidth-(u+h)),m=ioe(r.clientHeight-(d+f)),v=ioe(u),b={rootMargin:-p+"px "+-g+"px "+-m+"px "+-v+"px",threshold:rm(0,oT(1,l))||1};let w=!0;function E(A){const D=A[0].intersectionRatio;if(D!==l){if(!w)return s();D?s(!1,D):i=setTimeout(()=>{s(!1,1e-7)},1e3)}D===1&&!tTn(c,e.getBoundingClientRect())&&s(),w=!1}try{n=new IntersectionObserver(E,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(E,b)}n.observe(e)}return s(!0),o}function nTn(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,c=tJe(e),u=r||o?[...c?xK(c):[],...xK(t)]:[];u.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const d=c&&a?H1r(c,n):null;let h=-1,f=null;s&&(f=new ResizeObserver(v=>{let[y]=v;y&&y.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=f)==null||b.observe(t)})),n()}),c&&!l&&f.observe(c),f.observe(t));let p,g=l?B2(e):null;l&&m();function m(){const v=B2(e);g&&!tTn(g,v)&&n(),g=v,p=requestAnimationFrame(m)}return n(),()=>{var v;u.forEach(y=>{r&&y.removeEventListener("scroll",n),o&&y.removeEventListener("resize",n)}),d?.(),(v=f)==null||v.disconnect(),f=null,l&&cancelAnimationFrame(p)}}var WOe=l7,W1r=p1r,U1r=g1r,$1r=d1r,q1r=v1r,G1r=h1r,TBt=u1r,K1r=m1r,Y1r=(e,t,n)=>{const i=new Map,r={platform:V1r,...n},o={...r.platform,_c:i};return c1r(e,t,{...r,platform:o})},Q1r=typeof document<"u",Z1r=function(){},Rce=Q1r?I.useLayoutEffect:Z1r;function Vfe(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!Vfe(e[i],t[i]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,r[i]))return!1;for(i=n;i--!==0;){const o=r[i];if(!(o==="_owner"&&e.$$typeof)&&!Vfe(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function iTn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function kBt(e,t){const n=iTn(e);return Math.round(t*n)/n}function UOe(e){const t=I.useRef(e);return Rce(()=>{t.current=e}),t}function rTn(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=I.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=I.useState(i);Vfe(h,i)||f(i);const[p,g]=I.useState(null),[m,v]=I.useState(null),y=I.useCallback(H=>{H!==A.current&&(A.current=H,g(H))},[]),b=I.useCallback(H=>{H!==D.current&&(D.current=H,v(H))},[]),w=o||p,E=s||m,A=I.useRef(null),D=I.useRef(null),T=I.useRef(u),M=l!=null,P=UOe(l),F=UOe(r),N=UOe(c),j=I.useCallback(()=>{if(!A.current||!D.current)return;const H={placement:t,strategy:n,middleware:h};F.current&&(H.platform=F.current),Y1r(A.current,D.current,H).then(q=>{const le={...q,isPositioned:N.current!==!1};W.current&&!Vfe(T.current,le)&&(T.current=le,lf.flushSync(()=>{d(le)}))})},[h,t,n,F,N]);Rce(()=>{c===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(H=>({...H,isPositioned:!1})))},[c]);const W=I.useRef(!1);Rce(()=>(W.current=!0,()=>{W.current=!1}),[]),Rce(()=>{if(w&&(A.current=w),E&&(D.current=E),w&&E){if(P.current)return P.current(w,E,j);j()}},[w,E,j,P,M]);const J=I.useMemo(()=>({reference:A,floating:D,setReference:y,setFloating:b}),[y,b]),ee=I.useMemo(()=>({reference:w,floating:E}),[w,E]),Q=I.useMemo(()=>{const H={position:n,left:0,top:0};if(!ee.floating)return H;const q=kBt(ee.floating,u.x),le=kBt(ee.floating,u.y);return a?{...H,transform:"translate("+q+"px, "+le+"px)",...iTn(ee.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:le}},[n,a,ee.floating,u.x,u.y]);return I.useMemo(()=>({...u,update:j,refs:J,elements:ee,floatingStyles:Q}),[u,j,J,ee,Q])}var X1r=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:r}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?TBt({element:i.current,padding:r}).fn(n):{}:i?TBt({element:i,padding:r}).fn(n):{}}}},nJe=(e,t)=>({...W1r(e),options:[e,t]}),oTn=(e,t)=>({...U1r(e),options:[e,t]}),J1r=(e,t)=>({...K1r(e),options:[e,t]}),sTn=(e,t)=>({...$1r(e),options:[e,t]}),aTn=(e,t)=>({...q1r(e),options:[e,t]}),eCr=(e,t)=>({...G1r(e),options:[e,t]}),tCr=(e,t)=>({...X1r(e),options:[e,t]}),nCr="Arrow",lTn=I.forwardRef((e,t)=>{const{children:n,width:i=10,height:r=5,...o}=e;return S.jsx(Yd.svg,{...o,ref:t,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:S.jsx("polygon",{points:"0,0 30,0 15,10"})})});lTn.displayName=nCr;var iCr=lTn;function rCr(e){const[t,n]=I.useState(void 0);return hN(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const o=r[0];let s,a;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}var iJe="Popper",[cTn,Rye]=VF(iJe),[oCr,uTn]=cTn(iJe),dTn=e=>{const{__scopePopper:t,children:n}=e,[i,r]=I.useState(null);return S.jsx(oCr,{scope:t,anchor:i,onAnchorChange:r,children:n})};dTn.displayName=iJe;var hTn="PopperAnchor",fTn=I.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...r}=e,o=uTn(hTn,n),s=I.useRef(null),a=Gf(t,s),l=I.useRef(null);return I.useEffect(()=>{const c=l.current;l.current=i?.current||s.current,c!==l.current&&o.onAnchorChange(l.current)}),i?null:S.jsx(Yd.div,{...r,ref:a})});fTn.displayName=hTn;var rJe="PopperContent",[sCr,aCr]=cTn(rJe),pTn=I.forwardRef((e,t)=>{const{__scopePopper:n,side:i="bottom",sideOffset:r=0,align:o="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:f="optimized",onPlaced:p,...g}=e,m=uTn(rJe,n),[v,y]=I.useState(null),b=Gf(t,ce=>y(ce)),[w,E]=I.useState(null),A=rCr(w),D=A?.width??0,T=A?.height??0,M=i+(o!=="center"?"-"+o:""),P=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},F=Array.isArray(c)?c:[c],N=F.length>0,j={padding:P,boundary:F.filter(cCr),altBoundary:N},{refs:W,floatingStyles:J,placement:ee,isPositioned:Q,middlewareData:H}=rTn({strategy:"fixed",placement:M,whileElementsMounted:(...ce)=>nTn(...ce,{animationFrame:f==="always"}),elements:{reference:m.anchor},middleware:[nJe({mainAxis:r+T,alignmentAxis:s}),l&&oTn({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?J1r():void 0,...j}),l&&sTn({...j}),aTn({...j,apply:({elements:ce,rects:de,availableWidth:oe,availableHeight:me})=>{const{width:Ce,height:Se}=de.reference,De=ce.floating.style;De.setProperty("--radix-popper-available-width",`${oe}px`),De.setProperty("--radix-popper-available-height",`${me}px`),De.setProperty("--radix-popper-anchor-width",`${Ce}px`),De.setProperty("--radix-popper-anchor-height",`${Se}px`)}}),w&&tCr({element:w,padding:a}),uCr({arrowWidth:D,arrowHeight:T}),h&&eCr({strategy:"referenceHidden",...j})]}),[q,le]=vTn(ee),Y=rT(p);hN(()=>{Q&&Y?.()},[Q,Y]);const G=H.arrow?.x,pe=H.arrow?.y,U=H.arrow?.centerOffset!==0,[K,ie]=I.useState();return hN(()=>{v&&ie(window.getComputedStyle(v).zIndex)},[v]),S.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:Q?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[H.transformOrigin?.x,H.transformOrigin?.y].join(" "),...H.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:S.jsx(sCr,{scope:n,placedSide:q,onArrowChange:E,arrowX:G,arrowY:pe,shouldHideArrow:U,children:S.jsx(Yd.div,{"data-side":q,"data-align":le,...g,ref:b,style:{...g.style,animation:Q?void 0:"none"}})})})});pTn.displayName=rJe;var gTn="PopperArrow",lCr={top:"bottom",right:"left",bottom:"top",left:"right"},mTn=I.forwardRef(function(t,n){const{__scopePopper:i,...r}=t,o=aCr(gTn,i),s=lCr[o.placedSide];return S.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:S.jsx(iCr,{...r,ref:n,style:{...r.style,display:"block"}})})});mTn.displayName=gTn;function cCr(e){return e!==null}var uCr=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:i,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,u]=vTn(n),d={start:"0%",center:"50%",end:"100%"}[u],h=(r.arrow?.x??0)+a/2,f=(r.arrow?.y??0)+l/2;let p="",g="";return c==="bottom"?(p=s?d:`${h}px`,g=`${-l}px`):c==="top"?(p=s?d:`${h}px`,g=`${i.floating.height+l}px`):c==="right"?(p=`${-l}px`,g=s?d:`${f}px`):c==="left"&&(p=`${i.floating.width+l}px`,g=s?d:`${f}px`),{data:{x:p,y:g}}}});function vTn(e){const[t,n="center"]=e.split("-");return[t,n]}var yTn=dTn,bTn=fTn,_Tn=pTn,wTn=mTn,dCr="Portal",Fye=I.forwardRef((e,t)=>{const{container:n,...i}=e,[r,o]=I.useState(!1);hN(()=>o(!0),[]);const s=n||r&&globalThis?.document?.body;return s?XB.createPortal(S.jsx(Yd.div,{...i,ref:t}),s):null});Fye.displayName=dCr;function hCr(e,t){return I.useReducer((n,i)=>t[n][i]??n,e)}var PE=e=>{const{present:t,children:n}=e,i=fCr(t),r=typeof n=="function"?n({present:i.isPresent}):I.Children.only(n),o=Gf(i.ref,pCr(r));return typeof n=="function"||i.isPresent?I.cloneElement(r,{ref:o}):null};PE.displayName="Presence";function fCr(e){const[t,n]=I.useState(),i=I.useRef(null),r=I.useRef(e),o=I.useRef("none"),s=e?"mounted":"unmounted",[a,l]=hCr(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return I.useEffect(()=>{const c=roe(i.current);o.current=a==="mounted"?c:"none"},[a]),hN(()=>{const c=i.current,u=r.current;if(u!==e){const h=o.current,f=roe(c);e?l("MOUNT"):f==="none"||c?.display==="none"?l("UNMOUNT"):l(u&&h!==f?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),hN(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=f=>{const g=roe(i.current).includes(CSS.escape(f.animationName));if(f.target===t&&g&&(l("ANIMATION_END"),!r.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},h=f=>{f.target===t&&(o.current=roe(i.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:I.useCallback(c=>{i.current=c?getComputedStyle(c):null,n(c)},[])}}function roe(e){return e?.animationName||"none"}function pCr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $Oe="rovingFocusGroup.onEntryFocus",gCr={bubbles:!1,cancelable:!0},wZ="RovingFocusGroup",[hze,CTn,mCr]=zDn(wZ),[vCr,STn]=VF(wZ,[mCr]),[yCr,bCr]=vCr(wZ),xTn=I.forwardRef((e,t)=>S.jsx(hze.Provider,{scope:e.__scopeRovingFocusGroup,children:S.jsx(hze.Slot,{scope:e.__scopeRovingFocusGroup,children:S.jsx(_Cr,{...e,ref:t})})}));xTn.displayName=wZ;var _Cr=I.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:i,loop:r=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,h=I.useRef(null),f=Gf(t,h),p=VDn(o),[g,m]=Iye({prop:s,defaultProp:a??null,onChange:l,caller:wZ}),[v,y]=I.useState(!1),b=rT(c),w=CTn(n),E=I.useRef(!1),[A,D]=I.useState(0);return I.useEffect(()=>{const T=h.current;if(T)return T.addEventListener($Oe,b),()=>T.removeEventListener($Oe,b)},[b]),S.jsx(yCr,{scope:n,orientation:i,dir:p,loop:r,currentTabStopId:g,onItemFocus:I.useCallback(T=>m(T),[m]),onItemShiftTab:I.useCallback(()=>y(!0),[]),onFocusableItemAdd:I.useCallback(()=>D(T=>T+1),[]),onFocusableItemRemove:I.useCallback(()=>D(T=>T-1),[]),children:S.jsx(Yd.div,{tabIndex:v||A===0?-1:0,"data-orientation":i,...d,ref:f,style:{outline:"none",...e.style},onMouseDown:Ts(e.onMouseDown,()=>{E.current=!0}),onFocus:Ts(e.onFocus,T=>{const M=!E.current;if(T.target===T.currentTarget&&M&&!v){const P=new CustomEvent($Oe,gCr);if(T.currentTarget.dispatchEvent(P),!P.defaultPrevented){const F=w().filter(ee=>ee.focusable),N=F.find(ee=>ee.active),j=F.find(ee=>ee.id===g),J=[N,j,...F].filter(Boolean).map(ee=>ee.ref.current);DTn(J,u)}}E.current=!1}),onBlur:Ts(e.onBlur,()=>y(!1))})})}),ETn="RovingFocusGroupItem",ATn=I.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:i=!0,active:r=!1,tabStopId:o,children:s,...a}=e,l=RR(),c=o||l,u=bCr(ETn,n),d=u.currentTabStopId===c,h=CTn(n),{onFocusableItemAdd:f,onFocusableItemRemove:p,currentTabStopId:g}=u;return I.useEffect(()=>{if(i)return f(),()=>p()},[i,f,p]),S.jsx(hze.ItemSlot,{scope:n,id:c,focusable:i,active:r,children:S.jsx(Yd.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...a,ref:t,onMouseDown:Ts(e.onMouseDown,m=>{i?u.onItemFocus(c):m.preventDefault()}),onFocus:Ts(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:Ts(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){u.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const v=SCr(m,u.orientation,u.dir);if(v!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let b=h().filter(w=>w.focusable).map(w=>w.ref.current);if(v==="last")b.reverse();else if(v==="prev"||v==="next"){v==="prev"&&b.reverse();const w=b.indexOf(m.currentTarget);b=u.loop?xCr(b,w+1):b.slice(w+1)}setTimeout(()=>DTn(b))}}),children:typeof s=="function"?s({isCurrentTabStop:d,hasTabStop:g!=null}):s})})});ATn.displayName=ETn;var wCr={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function CCr(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function SCr(e,t,n){const i=CCr(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return wCr[i]}function DTn(e,t=!1){const n=document.activeElement;for(const i of e)if(i===n||(i.focus({preventScroll:t}),document.activeElement!==n))return}function xCr(e,t){return e.map((n,i)=>e[(t+i)%e.length])}var ECr=xTn,ACr=ATn,DCr=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},hB=new WeakMap,ooe=new WeakMap,soe={},qOe=0,TTn=function(e){return e&&(e.host||TTn(e.parentNode))},TCr=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=TTn(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},kCr=function(e,t,n,i){var r=TCr(t,Array.isArray(e)?e:[e]);soe[n]||(soe[n]=new WeakMap);var o=soe[n],s=[],a=new Set,l=new Set(r),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};r.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))u(h);else try{var f=h.getAttribute(i),p=f!==null&&f!=="false",g=(hB.get(h)||0)+1,m=(o.get(h)||0)+1;hB.set(h,g),o.set(h,m),s.push(h),g===1&&p&&ooe.set(h,!0),m===1&&h.setAttribute(n,"true"),p||h.setAttribute(i,"true")}catch(v){console.error("aria-hidden: cannot operate on ",h,v)}})};return u(t),a.clear(),qOe++,function(){s.forEach(function(d){var h=hB.get(d)-1,f=o.get(d)-1;hB.set(d,h),o.set(d,f),h||(ooe.has(d)||d.removeAttribute(i),ooe.delete(d)),f||d.removeAttribute(n)}),qOe--,qOe||(hB=new WeakMap,hB=new WeakMap,ooe=new WeakMap,soe={})}},kTn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),r=DCr(e);return r?(i.push.apply(i,Array.from(r.querySelectorAll("[aria-live], script"))),kCr(i,r,n,"aria-hidden")):function(){return null}};Wn();Wn();var Fce="right-scroll-bar-position",Bce="width-before-scroll-bar",ICr="with-scroll-bars-hidden",LCr="--removed-body-scroll-bar-size";function GOe(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function NCr(e,t){var n=I.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var r=n.value;r!==i&&(n.value=i,n.callback(i,r))}}}})[0];return n.callback=t,n.facade}var PCr=typeof window<"u"?I.useLayoutEffect:I.useEffect,IBt=new WeakMap;function MCr(e,t){var n=NCr(null,function(i){return e.forEach(function(r){return GOe(r,i)})});return PCr(function(){var i=IBt.get(n);if(i){var r=new Set(i),o=new Set(e),s=n.current;r.forEach(function(a){o.has(a)||GOe(a,null)}),o.forEach(function(a){r.has(a)||GOe(a,s)})}IBt.set(n,e)},[e]),n}Wn();function OCr(e){return e}function RCr(e,t){t===void 0&&(t=OCr);var n=[],i=!1,r={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var s=t(o,i);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(i=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){i=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(o),s=n}var l=function(){var u=s;s=[],u.forEach(o)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){s.push(u),c()},filter:function(u){return s=s.filter(u),n}}}};return r}function FCr(e){e===void 0&&(e={});var t=RCr(null);return t.options=Zn({async:!0,ssr:!1},e),t}Wn();var ITn=function(e){var t=e.sideCar,n=ou(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return I.createElement(i,Zn({},n))};ITn.isSideCarExport=!0;function BCr(e,t){return e.useMedium(t),ITn}var LTn=FCr(),KOe=function(){},Bye=I.forwardRef(function(e,t){var n=I.useRef(null),i=I.useState({onScrollCapture:KOe,onWheelCapture:KOe,onTouchMoveCapture:KOe}),r=i[0],o=i[1],s=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,f=e.noRelative,p=e.noIsolation,g=e.inert,m=e.allowPinchZoom,v=e.as,y=v===void 0?"div":v,b=e.gapMode,w=ou(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,A=MCr([n,t]),D=Zn(Zn({},w),r);return I.createElement(I.Fragment,null,u&&I.createElement(E,{sideCar:LTn,removeScrollBar:c,shards:d,noRelative:f,noIsolation:p,inert:g,setCallbacks:o,allowPinchZoom:!!m,lockRef:n,gapMode:b}),s?I.cloneElement(I.Children.only(a),Zn(Zn({},D),{ref:A})):I.createElement(y,Zn({},D,{className:l,ref:A}),a))});Bye.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Bye.classNames={fullWidth:Bce,zeroRight:Fce};Wn();var jCr=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zCr(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=jCr();return t&&e.setAttribute("nonce",t),e}function VCr(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function HCr(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var WCr=function(){var e=0,t=null;return{add:function(n){e==0&&(t=zCr())&&(VCr(t,n),HCr(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},UCr=function(){var e=WCr();return function(t,n){I.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},NTn=function(){var e=UCr(),t=function(n){var i=n.styles,r=n.dynamic;return e(i,r),null};return t},$Cr={left:0,top:0,right:0,gap:0},YOe=function(e){return parseInt(e||"",10)||0},qCr=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[YOe(n),YOe(i),YOe(r)]},GCr=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return $Cr;var t=qCr(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},KCr=NTn(),R8="data-scroll-locked",YCr=function(e,t,n,i){var r=e.left,o=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
  .`.concat(ICr,` {
   overflow: hidden `).concat(i,`;
   padding-right: `).concat(a,"px ").concat(i,`;
  }
  body[`).concat(R8,`] {
    overflow: hidden `).concat(i,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
    padding-left: `.concat(r,`px;
    padding-top: `).concat(o,`px;
    padding-right: `).concat(s,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(a,"px ").concat(i,`;
    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(i,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(Fce,` {
    right: `).concat(a,"px ").concat(i,`;
  }
  
  .`).concat(Bce,` {
    margin-right: `).concat(a,"px ").concat(i,`;
  }
  
  .`).concat(Fce," .").concat(Fce,` {
    right: 0 `).concat(i,`;
  }
  
  .`).concat(Bce," .").concat(Bce,` {
    margin-right: 0 `).concat(i,`;
  }
  
  body[`).concat(R8,`] {
    `).concat(LCr,": ").concat(a,`px;
  }
`)},LBt=function(){var e=parseInt(document.body.getAttribute(R8)||"0",10);return isFinite(e)?e:0},QCr=function(){I.useEffect(function(){return document.body.setAttribute(R8,(LBt()+1).toString()),function(){var e=LBt()-1;e<=0?document.body.removeAttribute(R8):document.body.setAttribute(R8,e.toString())}},[])},ZCr=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,r=i===void 0?"margin":i;QCr();var o=I.useMemo(function(){return GCr(r)},[r]);return I.createElement(KCr,{styles:YCr(o,!t,r,n?"":"!important")})},fze=!1;if(typeof window<"u")try{wH=Object.defineProperty({},"passive",{get:function(){return fze=!0,!0}}),window.addEventListener("test",wH,wH),window.removeEventListener("test",wH,wH)}catch{fze=!1}var wH,fB=fze?{passive:!1}:!1,XCr=function(e){return e.tagName==="TEXTAREA"},PTn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!XCr(e)&&n[t]==="visible")},JCr=function(e){return PTn(e,"overflowY")},eSr=function(e){return PTn(e,"overflowX")},NBt=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var r=MTn(e,i);if(r){var o=OTn(e,i),s=o[1],a=o[2];if(s>a)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},tSr=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},nSr=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},MTn=function(e,t){return e==="v"?JCr(t):eSr(t)},OTn=function(e,t){return e==="v"?tSr(t):nSr(t)},iSr=function(e,t){return e==="h"&&t==="rtl"?-1:1},rSr=function(e,t,n,i,r){var o=iSr(e,window.getComputedStyle(t).direction),s=o*i,a=n.target,l=t.contains(a),c=!1,u=s>0,d=0,h=0;do{if(!a)break;var f=OTn(e,a),p=f[0],g=f[1],m=f[2],v=g-m-o*p;(p||v)&&MTn(e,a)&&(d+=v,h+=p);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(h)<1)&&(c=!0),c},aoe=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},PBt=function(e){return[e.deltaX,e.deltaY]},MBt=function(e){return e&&"current"in e?e.current:e},oSr=function(e,t){return e[0]===t[0]&&e[1]===t[1]},sSr=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},aSr=0,pB=[];function lSr(e){var t=I.useRef([]),n=I.useRef([0,0]),i=I.useRef(),r=I.useState(aSr++)[0],o=I.useState(NTn)[0],s=I.useRef(e);I.useEffect(function(){s.current=e},[e]),I.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var g=Hr([e.lockRef.current],(e.shards||[]).map(MBt),!0).filter(Boolean);return g.forEach(function(m){return m.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),g.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=I.useCallback(function(g,m){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!s.current.allowPinchZoom;var v=aoe(g),y=n.current,b="deltaX"in g?g.deltaX:y[0]-v[0],w="deltaY"in g?g.deltaY:y[1]-v[1],E,A=g.target,D=Math.abs(b)>Math.abs(w)?"h":"v";if("touches"in g&&D==="h"&&A.type==="range")return!1;var T=NBt(D,A);if(!T)return!0;if(T?E=D:(E=D==="v"?"h":"v",T=NBt(D,A)),!T)return!1;if(!i.current&&"changedTouches"in g&&(b||w)&&(i.current=E),!E)return!0;var M=i.current||E;return rSr(M,m,g,M==="h"?b:w)},[]),l=I.useCallback(function(g){var m=g;if(!(!pB.length||pB[pB.length-1]!==o)){var v="deltaY"in m?PBt(m):aoe(m),y=t.current.filter(function(E){return E.name===m.type&&(E.target===m.target||m.target===E.shadowParent)&&oSr(E.delta,v)})[0];if(y&&y.should){m.cancelable&&m.preventDefault();return}if(!y){var b=(s.current.shards||[]).map(MBt).filter(Boolean).filter(function(E){return E.contains(m.target)}),w=b.length>0?a(m,b[0]):!s.current.noIsolation;w&&m.cancelable&&m.preventDefault()}}},[]),c=I.useCallback(function(g,m,v,y){var b={name:g,delta:m,target:v,should:y,shadowParent:cSr(v)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(w){return w!==b})},1)},[]),u=I.useCallback(function(g){n.current=aoe(g),i.current=void 0},[]),d=I.useCallback(function(g){c(g.type,PBt(g),g.target,a(g,e.lockRef.current))},[]),h=I.useCallback(function(g){c(g.type,aoe(g),g.target,a(g,e.lockRef.current))},[]);I.useEffect(function(){return pB.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,fB),document.addEventListener("touchmove",l,fB),document.addEventListener("touchstart",u,fB),function(){pB=pB.filter(function(g){return g!==o}),document.removeEventListener("wheel",l,fB),document.removeEventListener("touchmove",l,fB),document.removeEventListener("touchstart",u,fB)}},[]);var f=e.removeScrollBar,p=e.inert;return I.createElement(I.Fragment,null,p?I.createElement(o,{styles:sSr(r)}):null,f?I.createElement(ZCr,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function cSr(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var uSr=BCr(LTn,lSr),RTn=I.forwardRef(function(e,t){return I.createElement(Bye,Zn({},e,{ref:t,sideCar:uSr}))});RTn.classNames=Bye.classNames;var FTn=RTn,pze=["Enter"," "],dSr=["ArrowDown","PageUp","Home"],BTn=["ArrowUp","PageDown","End"],hSr=[...dSr,...BTn],fSr={ltr:[...pze,"ArrowRight"],rtl:[...pze,"ArrowLeft"]},pSr={ltr:["ArrowLeft"],rtl:["ArrowRight"]},CZ="Menu",[EK,gSr,mSr]=zDn(CZ),[HF,jTn]=VF(CZ,[mSr,Rye,STn]),jye=Rye(),zTn=STn(),[vSr,WF]=HF(CZ),[ySr,SZ]=HF(CZ),VTn=e=>{const{__scopeMenu:t,open:n=!1,children:i,dir:r,onOpenChange:o,modal:s=!0}=e,a=jye(t),[l,c]=I.useState(null),u=I.useRef(!1),d=rT(o),h=VDn(r);return I.useEffect(()=>{const f=()=>{u.current=!0,document.addEventListener("pointerdown",p,{capture:!0,once:!0}),document.addEventListener("pointermove",p,{capture:!0,once:!0})},p=()=>u.current=!1;return document.addEventListener("keydown",f,{capture:!0}),()=>{document.removeEventListener("keydown",f,{capture:!0}),document.removeEventListener("pointerdown",p,{capture:!0}),document.removeEventListener("pointermove",p,{capture:!0})}},[]),S.jsx(yTn,{...a,children:S.jsx(vSr,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c,children:S.jsx(ySr,{scope:t,onClose:I.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:h,modal:s,children:i})})})};VTn.displayName=CZ;var bSr="MenuAnchor",oJe=I.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e,r=jye(n);return S.jsx(bTn,{...r,...i,ref:t})});oJe.displayName=bSr;var sJe="MenuPortal",[_Sr,HTn]=HF(sJe,{forceMount:void 0}),WTn=e=>{const{__scopeMenu:t,forceMount:n,children:i,container:r}=e,o=WF(sJe,t);return S.jsx(_Sr,{scope:t,forceMount:n,children:S.jsx(PE,{present:n||o.open,children:S.jsx(Fye,{asChild:!0,container:r,children:i})})})};WTn.displayName=sJe;var Y_="MenuContent",[wSr,aJe]=HF(Y_),UTn=I.forwardRef((e,t)=>{const n=HTn(Y_,e.__scopeMenu),{forceMount:i=n.forceMount,...r}=e,o=WF(Y_,e.__scopeMenu),s=SZ(Y_,e.__scopeMenu);return S.jsx(EK.Provider,{scope:e.__scopeMenu,children:S.jsx(PE,{present:i||o.open,children:S.jsx(EK.Slot,{scope:e.__scopeMenu,children:s.modal?S.jsx(CSr,{...r,ref:t}):S.jsx(SSr,{...r,ref:t})})})})}),CSr=I.forwardRef((e,t)=>{const n=WF(Y_,e.__scopeMenu),i=I.useRef(null),r=Gf(t,i);return I.useEffect(()=>{const o=i.current;if(o)return kTn(o)},[]),S.jsx(lJe,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ts(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),SSr=I.forwardRef((e,t)=>{const n=WF(Y_,e.__scopeMenu);return S.jsx(lJe,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),xSr=CK("MenuContent.ScrollLock"),lJe=I.forwardRef((e,t)=>{const{__scopeMenu:n,loop:i=!1,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:h,onDismiss:f,disableOutsideScroll:p,...g}=e,m=WF(Y_,n),v=SZ(Y_,n),y=jye(n),b=zTn(n),w=gSr(n),[E,A]=I.useState(null),D=I.useRef(null),T=Gf(t,D,m.onContentChange),M=I.useRef(0),P=I.useRef(""),F=I.useRef(0),N=I.useRef(null),j=I.useRef("right"),W=I.useRef(0),J=p?FTn:I.Fragment,ee=p?{as:xSr,allowPinchZoom:!0}:void 0,Q=q=>{const le=P.current+q,Y=w().filter(ce=>!ce.disabled),G=document.activeElement,pe=Y.find(ce=>ce.ref.current===G)?.textValue,U=Y.map(ce=>ce.textValue),K=RSr(U,le,pe),ie=Y.find(ce=>ce.textValue===K)?.ref.current;(function ce(de){P.current=de,window.clearTimeout(M.current),de!==""&&(M.current=window.setTimeout(()=>ce(""),1e3))})(le),ie&&setTimeout(()=>ie.focus())};I.useEffect(()=>()=>window.clearTimeout(M.current),[]),UDn();const H=I.useCallback(q=>j.current===N.current?.side&&BSr(q,N.current?.area),[]);return S.jsx(wSr,{scope:n,searchRef:P,onItemEnter:I.useCallback(q=>{H(q)&&q.preventDefault()},[H]),onItemLeave:I.useCallback(q=>{H(q)||(D.current?.focus(),A(null))},[H]),onTriggerLeave:I.useCallback(q=>{H(q)&&q.preventDefault()},[H]),pointerGraceTimerRef:F,onPointerGraceIntentChange:I.useCallback(q=>{N.current=q},[]),children:S.jsx(J,{...ee,children:S.jsx(YXe,{asChild:!0,trapped:r,onMountAutoFocus:Ts(o,q=>{q.preventDefault(),D.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:S.jsx(Lye,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:h,onDismiss:f,children:S.jsx(ECr,{asChild:!0,...b,dir:v.dir,orientation:"vertical",loop:i,currentTabStopId:E,onCurrentTabStopIdChange:A,onEntryFocus:Ts(l,q=>{v.isUsingKeyboardRef.current||q.preventDefault()}),preventScrollOnEntryFocus:!0,children:S.jsx(_Tn,{role:"menu","aria-orientation":"vertical","data-state":skn(m.open),"data-radix-menu-content":"",dir:v.dir,...y,...g,ref:T,style:{outline:"none",...g.style},onKeyDown:Ts(g.onKeyDown,q=>{const Y=q.target.closest("[data-radix-menu-content]")===q.currentTarget,G=q.ctrlKey||q.altKey||q.metaKey,pe=q.key.length===1;Y&&(q.key==="Tab"&&q.preventDefault(),!G&&pe&&Q(q.key));const U=D.current;if(q.target!==U||!hSr.includes(q.key))return;q.preventDefault();const ie=w().filter(ce=>!ce.disabled).map(ce=>ce.ref.current);BTn.includes(q.key)&&ie.reverse(),MSr(ie)}),onBlur:Ts(e.onBlur,q=>{q.currentTarget.contains(q.target)||(window.clearTimeout(M.current),P.current="")}),onPointerMove:Ts(e.onPointerMove,AK(q=>{const le=q.target,Y=W.current!==q.clientX;if(q.currentTarget.contains(le)&&Y){const G=q.clientX>W.current?"right":"left";j.current=G,W.current=q.clientX}}))})})})})})})});UTn.displayName=Y_;var ESr="MenuGroup",cJe=I.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return S.jsx(Yd.div,{role:"group",...i,ref:t})});cJe.displayName=ESr;var ASr="MenuLabel",$Tn=I.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return S.jsx(Yd.div,{...i,ref:t})});$Tn.displayName=ASr;var Hfe="MenuItem",OBt="menu.itemSelect",zye=I.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:i,...r}=e,o=I.useRef(null),s=SZ(Hfe,e.__scopeMenu),a=aJe(Hfe,e.__scopeMenu),l=Gf(t,o),c=I.useRef(!1),u=()=>{const d=o.current;if(!n&&d){const h=new CustomEvent(OBt,{bubbles:!0,cancelable:!0});d.addEventListener(OBt,f=>i?.(f),{once:!0}),jDn(d,h),h.defaultPrevented?c.current=!1:s.onClose()}};return S.jsx(qTn,{...r,ref:l,disabled:n,onClick:Ts(e.onClick,u),onPointerDown:d=>{e.onPointerDown?.(d),c.current=!0},onPointerUp:Ts(e.onPointerUp,d=>{c.current||d.currentTarget?.click()}),onKeyDown:Ts(e.onKeyDown,d=>{const h=a.searchRef.current!=="";n||h&&d.key===" "||pze.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});zye.displayName=Hfe;var qTn=I.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:i=!1,textValue:r,...o}=e,s=aJe(Hfe,n),a=zTn(n),l=I.useRef(null),c=Gf(t,l),[u,d]=I.useState(!1),[h,f]=I.useState("");return I.useEffect(()=>{const p=l.current;p&&f((p.textContent??"").trim())},[o.children]),S.jsx(EK.ItemSlot,{scope:n,disabled:i,textValue:r??h,children:S.jsx(ACr,{asChild:!0,...a,focusable:!i,children:S.jsx(Yd.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...o,ref:c,onPointerMove:Ts(e.onPointerMove,AK(p=>{i?s.onItemLeave(p):(s.onItemEnter(p),p.defaultPrevented||p.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Ts(e.onPointerLeave,AK(p=>s.onItemLeave(p))),onFocus:Ts(e.onFocus,()=>d(!0)),onBlur:Ts(e.onBlur,()=>d(!1))})})})}),DSr="MenuCheckboxItem",GTn=I.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:i,...r}=e;return S.jsx(XTn,{scope:e.__scopeMenu,checked:n,children:S.jsx(zye,{role:"menuitemcheckbox","aria-checked":Wfe(n)?"mixed":n,...r,ref:t,"data-state":dJe(n),onSelect:Ts(r.onSelect,()=>i?.(Wfe(n)?!0:!n),{checkForDefaultPrevented:!1})})})});GTn.displayName=DSr;var KTn="MenuRadioGroup",[TSr,kSr]=HF(KTn,{value:void 0,onValueChange:()=>{}}),YTn=I.forwardRef((e,t)=>{const{value:n,onValueChange:i,...r}=e,o=rT(i);return S.jsx(TSr,{scope:e.__scopeMenu,value:n,onValueChange:o,children:S.jsx(cJe,{...r,ref:t})})});YTn.displayName=KTn;var QTn="MenuRadioItem",ZTn=I.forwardRef((e,t)=>{const{value:n,...i}=e,r=kSr(QTn,e.__scopeMenu),o=n===r.value;return S.jsx(XTn,{scope:e.__scopeMenu,checked:o,children:S.jsx(zye,{role:"menuitemradio","aria-checked":o,...i,ref:t,"data-state":dJe(o),onSelect:Ts(i.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});ZTn.displayName=QTn;var uJe="MenuItemIndicator",[XTn,ISr]=HF(uJe,{checked:!1}),JTn=I.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:i,...r}=e,o=ISr(uJe,n);return S.jsx(PE,{present:i||Wfe(o.checked)||o.checked===!0,children:S.jsx(Yd.span,{...r,ref:t,"data-state":dJe(o.checked)})})});JTn.displayName=uJe;var LSr="MenuSeparator",ekn=I.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return S.jsx(Yd.div,{role:"separator","aria-orientation":"horizontal",...i,ref:t})});ekn.displayName=LSr;var NSr="MenuArrow",tkn=I.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e,r=jye(n);return S.jsx(wTn,{...r,...i,ref:t})});tkn.displayName=NSr;var PSr="MenuSub",[z5r,nkn]=HF(PSr),yU="MenuSubTrigger",ikn=I.forwardRef((e,t)=>{const n=WF(yU,e.__scopeMenu),i=SZ(yU,e.__scopeMenu),r=nkn(yU,e.__scopeMenu),o=aJe(yU,e.__scopeMenu),s=I.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=o,c={__scopeMenu:e.__scopeMenu},u=I.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return I.useEffect(()=>u,[u]),I.useEffect(()=>{const d=a.current;return()=>{window.clearTimeout(d),l(null)}},[a,l]),S.jsx(oJe,{asChild:!0,...c,children:S.jsx(qTn,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":skn(n.open),...e,ref:bZ(t,r.onTriggerChange),onClick:d=>{e.onClick?.(d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Ts(e.onPointerMove,AK(d=>{o.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(o.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:Ts(e.onPointerLeave,AK(d=>{u();const h=n.content?.getBoundingClientRect();if(h){const f=n.content?.dataset.side,p=f==="right",g=p?-5:5,m=h[p?"left":"right"],v=h[p?"right":"left"];o.onPointerGraceIntentChange({area:[{x:d.clientX+g,y:d.clientY},{x:m,y:h.top},{x:v,y:h.top},{x:v,y:h.bottom},{x:m,y:h.bottom}],side:f}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(d),d.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:Ts(e.onKeyDown,d=>{const h=o.searchRef.current!=="";e.disabled||h&&d.key===" "||fSr[i.dir].includes(d.key)&&(n.onOpenChange(!0),n.content?.focus(),d.preventDefault())})})})});ikn.displayName=yU;var rkn="MenuSubContent",okn=I.forwardRef((e,t)=>{const n=HTn(Y_,e.__scopeMenu),{forceMount:i=n.forceMount,...r}=e,o=WF(Y_,e.__scopeMenu),s=SZ(Y_,e.__scopeMenu),a=nkn(rkn,e.__scopeMenu),l=I.useRef(null),c=Gf(t,l);return S.jsx(EK.Provider,{scope:e.__scopeMenu,children:S.jsx(PE,{present:i||o.open,children:S.jsx(EK.Slot,{scope:e.__scopeMenu,children:S.jsx(lJe,{id:a.contentId,"aria-labelledby":a.triggerId,...r,ref:c,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{s.isUsingKeyboardRef.current&&l.current?.focus(),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:Ts(e.onFocusOutside,u=>{u.target!==a.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:Ts(e.onEscapeKeyDown,u=>{s.onClose(),u.preventDefault()}),onKeyDown:Ts(e.onKeyDown,u=>{const d=u.currentTarget.contains(u.target),h=pSr[s.dir].includes(u.key);d&&h&&(o.onOpenChange(!1),a.trigger?.focus(),u.preventDefault())})})})})})});okn.displayName=rkn;function skn(e){return e?"open":"closed"}function Wfe(e){return e==="indeterminate"}function dJe(e){return Wfe(e)?"indeterminate":e?"checked":"unchecked"}function MSr(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function OSr(e,t){return e.map((n,i)=>e[(t+i)%e.length])}function RSr(e,t,n){const r=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let s=OSr(e,Math.max(o,0));r.length===1&&(s=s.filter(c=>c!==n));const l=s.find(c=>c.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function FSr(e,t){const{x:n,y:i}=e;let r=!1;for(let o=0,s=t.length-1;o<t.length;s=o++){const a=t[o],l=t[s],c=a.x,u=a.y,d=l.x,h=l.y;u>i!=h>i&&n<(d-c)*(i-u)/(h-u)+c&&(r=!r)}return r}function BSr(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return FSr(n,t)}function AK(e){return t=>t.pointerType==="mouse"?e(t):void 0}var jSr=VTn,zSr=oJe,VSr=WTn,HSr=UTn,WSr=cJe,USr=$Tn,$Sr=zye,qSr=GTn,GSr=YTn,KSr=ZTn,YSr=JTn,QSr=ekn,ZSr=tkn,XSr=ikn,JSr=okn,Vye="DropdownMenu",[exr]=VF(Vye,[jTn]),Uv=jTn(),[txr,akn]=exr(Vye),lkn=e=>{const{__scopeDropdownMenu:t,children:n,dir:i,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,l=Uv(t),c=I.useRef(null),[u,d]=Iye({prop:r,defaultProp:o??!1,onChange:s,caller:Vye});return S.jsx(txr,{scope:t,triggerId:RR(),triggerRef:c,contentId:RR(),open:u,onOpenChange:d,onOpenToggle:I.useCallback(()=>d(h=>!h),[d]),modal:a,children:S.jsx(jSr,{...l,open:u,onOpenChange:d,dir:i,modal:a,children:n})})};lkn.displayName=Vye;var ckn="DropdownMenuTrigger",ukn=I.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:i=!1,...r}=e,o=akn(ckn,n),s=Uv(n);return S.jsx(zSr,{asChild:!0,...s,children:S.jsx(Yd.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...r,ref:bZ(t,o.triggerRef),onPointerDown:Ts(e.onPointerDown,a=>{!i&&a.button===0&&a.ctrlKey===!1&&(o.onOpenToggle(),o.open||a.preventDefault())}),onKeyDown:Ts(e.onKeyDown,a=>{i||(["Enter"," "].includes(a.key)&&o.onOpenToggle(),a.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});ukn.displayName=ckn;var nxr="DropdownMenuPortal",dkn=e=>{const{__scopeDropdownMenu:t,...n}=e,i=Uv(t);return S.jsx(VSr,{...i,...n})};dkn.displayName=nxr;var hkn="DropdownMenuContent",fkn=I.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=akn(hkn,n),o=Uv(n),s=I.useRef(!1);return S.jsx(HSr,{id:r.contentId,"aria-labelledby":r.triggerId,...o,...i,ref:t,onCloseAutoFocus:Ts(e.onCloseAutoFocus,a=>{s.current||r.triggerRef.current?.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:Ts(e.onInteractOutside,a=>{const l=a.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;(!r.modal||u)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});fkn.displayName=hkn;var ixr="DropdownMenuGroup",rxr=I.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Uv(n);return S.jsx(WSr,{...r,...i,ref:t})});rxr.displayName=ixr;var oxr="DropdownMenuLabel",sxr=I.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Uv(n);return S.jsx(USr,{...r,...i,ref:t})});sxr.displayName=oxr;var axr="DropdownMenuItem",pkn=I.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Uv(n);return S.jsx($Sr,{...r,...i,ref:t})});pkn.displayName=axr;var lxr="DropdownMenuCheckboxItem",cxr=I.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Uv(n);return S.jsx(qSr,{...r,...i,ref:t})});cxr.displayName=lxr;var uxr="DropdownMenuRadioGroup",dxr=I.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Uv(n);return S.jsx(GSr,{...r,...i,ref:t})});dxr.displayName=uxr;var hxr="DropdownMenuRadioItem",fxr=I.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Uv(n);return S.jsx(KSr,{...r,...i,ref:t})});fxr.displayName=hxr;var pxr="DropdownMenuItemIndicator",gxr=I.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Uv(n);return S.jsx(YSr,{...r,...i,ref:t})});gxr.displayName=pxr;var mxr="DropdownMenuSeparator",vxr=I.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Uv(n);return S.jsx(QSr,{...r,...i,ref:t})});vxr.displayName=mxr;var yxr="DropdownMenuArrow",bxr=I.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Uv(n);return S.jsx(ZSr,{...r,...i,ref:t})});bxr.displayName=yxr;var _xr="DropdownMenuSubTrigger",wxr=I.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Uv(n);return S.jsx(XSr,{...r,...i,ref:t})});wxr.displayName=_xr;var Cxr="DropdownMenuSubContent",Sxr=I.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Uv(n);return S.jsx(JSr,{...r,...i,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Sxr.displayName=Cxr;var xxr=lkn,Exr=ukn,Axr=dkn,Dxr=fkn,Txr=pkn,gkn=I.forwardRef((e,t)=>{const n=(0,KXe.c)(6);let i;n[0]!==e.className?(i=bc("graphiql-un-styled",e.className),n[0]=e.className,n[1]=i):i=n[1];let r;return n[2]!==e||n[3]!==t||n[4]!==i?(r=S.jsx(Exr,{asChild:!0,children:S.jsx("button",{...e,ref:t,className:i})}),n[2]=e,n[3]=t,n[4]=i,n[5]=r):r=n[5],r});gkn.displayName="DropdownMenuButton";var kxr=e=>{const t=(0,KXe.c)(14);let n,i,r,o,s;t[0]!==e?({children:n,align:o,sideOffset:s,className:i,...r}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=o,t[5]=s):(n=t[1],i=t[2],r=t[3],o=t[4],s=t[5]);const a=o===void 0?"start":o,l=s===void 0?5:s;let c;t[6]!==i?(c=bc("graphiql-dropdown-content",i),t[6]=i,t[7]=c):c=t[7];let u;return t[8]!==a||t[9]!==n||t[10]!==r||t[11]!==l||t[12]!==c?(u=S.jsx(Axr,{children:S.jsx(Dxr,{align:a,sideOffset:l,className:c,...r,children:n})}),t[8]=a,t[9]=n,t[10]=r,t[11]=l,t[12]=c,t[13]=u):u=t[13],u},Ixr=e=>{const t=(0,KXe.c)(10);let n,i,r;t[0]!==e?({className:i,children:n,...r}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=r):(n=t[1],i=t[2],r=t[3]);let o;t[4]!==i?(o=bc("graphiql-dropdown-item",i),t[4]=i,t[5]=o):o=t[5];let s;return t[6]!==n||t[7]!==r||t[8]!==o?(s=S.jsx(Txr,{className:o,...r,children:n}),t[6]=n,t[7]=r,t[8]=o,t[9]=s):s=t[9],s},loe=Object.assign(xxr,{Button:gkn,Item:Ixr,Content:kxr}),Lxr=on(da()),Nxr=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Pxr="VisuallyHidden",mkn=I.forwardRef((e,t)=>S.jsx(Yd.span,{...e,ref:t,style:{...Nxr,...e.style}}));mkn.displayName=Pxr;var Mxr=mkn,[Hye]=VF("Tooltip",[Rye]),Wye=Rye(),vkn="TooltipProvider",Oxr=700,gze="tooltip.open",[Rxr,hJe]=Hye(vkn),ykn=e=>{const{__scopeTooltip:t,delayDuration:n=Oxr,skipDelayDuration:i=300,disableHoverableContent:r=!1,children:o}=e,s=I.useRef(!0),a=I.useRef(!1),l=I.useRef(0);return I.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),S.jsx(Rxr,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:I.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:I.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,i)},[i]),isPointerInTransitRef:a,onPointerInTransitChange:I.useCallback(c=>{a.current=c},[]),disableHoverableContent:r,children:o})};ykn.displayName=vkn;var DK="Tooltip",[Fxr,xZ]=Hye(DK),bkn=e=>{const{__scopeTooltip:t,children:n,open:i,defaultOpen:r,onOpenChange:o,disableHoverableContent:s,delayDuration:a}=e,l=hJe(DK,e.__scopeTooltip),c=Wye(t),[u,d]=I.useState(null),h=RR(),f=I.useRef(0),p=s??l.disableHoverableContent,g=a??l.delayDuration,m=I.useRef(!1),[v,y]=Iye({prop:i,defaultProp:r??!1,onChange:D=>{D?(l.onOpen(),document.dispatchEvent(new CustomEvent(gze))):l.onClose(),o?.(D)},caller:DK}),b=I.useMemo(()=>v?m.current?"delayed-open":"instant-open":"closed",[v]),w=I.useCallback(()=>{window.clearTimeout(f.current),f.current=0,m.current=!1,y(!0)},[y]),E=I.useCallback(()=>{window.clearTimeout(f.current),f.current=0,y(!1)},[y]),A=I.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{m.current=!0,y(!0),f.current=0},g)},[g,y]);return I.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),S.jsx(yTn,{...c,children:S.jsx(Fxr,{scope:t,contentId:h,open:v,stateAttribute:b,trigger:u,onTriggerChange:d,onTriggerEnter:I.useCallback(()=>{l.isOpenDelayedRef.current?A():w()},[l.isOpenDelayedRef,A,w]),onTriggerLeave:I.useCallback(()=>{p?E():(window.clearTimeout(f.current),f.current=0)},[E,p]),onOpen:w,onClose:E,disableHoverableContent:p,children:n})})};bkn.displayName=DK;var mze="TooltipTrigger",_kn=I.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,r=xZ(mze,n),o=hJe(mze,n),s=Wye(n),a=I.useRef(null),l=Gf(t,a,r.onTriggerChange),c=I.useRef(!1),u=I.useRef(!1),d=I.useCallback(()=>c.current=!1,[]);return I.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),S.jsx(bTn,{asChild:!0,...s,children:S.jsx(Yd.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...i,ref:l,onPointerMove:Ts(e.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!o.isPointerInTransitRef.current&&(r.onTriggerEnter(),u.current=!0)}),onPointerLeave:Ts(e.onPointerLeave,()=>{r.onTriggerLeave(),u.current=!1}),onPointerDown:Ts(e.onPointerDown,()=>{r.open&&r.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Ts(e.onFocus,()=>{c.current||r.onOpen()}),onBlur:Ts(e.onBlur,r.onClose),onClick:Ts(e.onClick,r.onClose)})})});_kn.displayName=mze;var fJe="TooltipPortal",[Bxr,jxr]=Hye(fJe,{forceMount:void 0}),wkn=e=>{const{__scopeTooltip:t,forceMount:n,children:i,container:r}=e,o=xZ(fJe,t);return S.jsx(Bxr,{scope:t,forceMount:n,children:S.jsx(PE,{present:n||o.open,children:S.jsx(Fye,{asChild:!0,container:r,children:i})})})};wkn.displayName=fJe;var u7="TooltipContent",Ckn=I.forwardRef((e,t)=>{const n=jxr(u7,e.__scopeTooltip),{forceMount:i=n.forceMount,side:r="top",...o}=e,s=xZ(u7,e.__scopeTooltip);return S.jsx(PE,{present:i||s.open,children:s.disableHoverableContent?S.jsx(Skn,{side:r,...o,ref:t}):S.jsx(zxr,{side:r,...o,ref:t})})}),zxr=I.forwardRef((e,t)=>{const n=xZ(u7,e.__scopeTooltip),i=hJe(u7,e.__scopeTooltip),r=I.useRef(null),o=Gf(t,r),[s,a]=I.useState(null),{trigger:l,onClose:c}=n,u=r.current,{onPointerInTransitChange:d}=i,h=I.useCallback(()=>{a(null),d(!1)},[d]),f=I.useCallback((p,g)=>{const m=p.currentTarget,v={x:p.clientX,y:p.clientY},y=$xr(v,m.getBoundingClientRect()),b=qxr(v,y),w=Gxr(g.getBoundingClientRect()),E=Yxr([...b,...w]);a(E),d(!0)},[d]);return I.useEffect(()=>()=>h(),[h]),I.useEffect(()=>{if(l&&u){const p=m=>f(m,u),g=m=>f(m,l);return l.addEventListener("pointerleave",p),u.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",p),u.removeEventListener("pointerleave",g)}}},[l,u,f,h]),I.useEffect(()=>{if(s){const p=g=>{const m=g.target,v={x:g.clientX,y:g.clientY},y=l?.contains(m)||u?.contains(m),b=!Kxr(v,s);y?h():b&&(h(),c())};return document.addEventListener("pointermove",p),()=>document.removeEventListener("pointermove",p)}},[l,u,s,c,h]),S.jsx(Skn,{...e,ref:o})}),[Vxr,Hxr]=Hye(DK,{isInside:!1}),Wxr=kwr("TooltipContent"),Skn=I.forwardRef((e,t)=>{const{__scopeTooltip:n,children:i,"aria-label":r,onEscapeKeyDown:o,onPointerDownOutside:s,...a}=e,l=xZ(u7,n),c=Wye(n),{onClose:u}=l;return I.useEffect(()=>(document.addEventListener(gze,u),()=>document.removeEventListener(gze,u)),[u]),I.useEffect(()=>{if(l.trigger){const d=h=>{h.target?.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),S.jsx(Lye,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:S.jsxs(_Tn,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[S.jsx(Wxr,{children:i}),S.jsx(Vxr,{scope:n,isInside:!0,children:S.jsx(Mxr,{id:l.contentId,role:"tooltip",children:r||i})})]})})});Ckn.displayName=u7;var xkn="TooltipArrow",Uxr=I.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,r=Wye(n);return Hxr(xkn,n).isInside?null:S.jsx(wTn,{...r,...i,ref:t})});Uxr.displayName=xkn;function $xr(e,t){const n=Math.abs(t.top-e.y),i=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,i,r,o)){case o:return"left";case r:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function qxr(e,t,n=5){const i=[];switch(t){case"top":i.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":i.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":i.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":i.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return i}function Gxr(e){const{top:t,right:n,bottom:i,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:i},{x:r,y:i}]}function Kxr(e,t){const{x:n,y:i}=e;let r=!1;for(let o=0,s=t.length-1;o<t.length;s=o++){const a=t[o],l=t[s],c=a.x,u=a.y,d=l.x,h=l.y;u>i!=h>i&&n<(d-c)*(i-u)/(h-u)+c&&(r=!r)}return r}function Yxr(e){const t=e.slice();return t.sort((n,i)=>n.x<i.x?-1:n.x>i.x?1:n.y<i.y?-1:n.y>i.y?1:0),Qxr(t)}function Qxr(e){if(e.length<=1)return e.slice();const t=[];for(let i=0;i<e.length;i++){const r=e[i];for(;t.length>=2;){const o=t[t.length-1],s=t[t.length-2];if((o.x-s.x)*(r.y-s.y)>=(o.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let i=e.length-1;i>=0;i--){const r=e[i];for(;n.length>=2;){const o=n[n.length-1],s=n[n.length-2];if((o.x-s.x)*(r.y-s.y)>=(o.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Zxr=ykn,Xxr=bkn,Jxr=_kn,eEr=wkn,tEr=Ckn,nEr=e=>{const t=(0,Lxr.c)(10),{children:n,align:i,side:r,sideOffset:o,label:s}=e,a=i===void 0?"start":i,l=r===void 0?"bottom":r,c=o===void 0?5:o;let u;t[0]!==n?(u=S.jsx(Jxr,{asChild:!0,children:n}),t[0]=n,t[1]=u):u=t[1];let d;t[2]!==a||t[3]!==s||t[4]!==l||t[5]!==c?(d=S.jsx(eEr,{children:S.jsx(tEr,{className:"graphiql-tooltip",align:a,side:l,sideOffset:c,children:s})}),t[2]=a,t[3]=s,t[4]=l,t[5]=c,t[6]=d):d=t[6];let h;return t[7]!==u||t[8]!==d?(h=S.jsxs(Xxr,{children:[u,d]}),t[7]=u,t[8]=d,t[9]=h):h=t[9],h},k0=Object.assign(nEr,{Provider:Zxr}),iEr=()=>{const e=(0,Cwr.c)(18),{setOperationName:t,run:n,stop:i}=OT();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=iS("operations","operationName","isFetching","overrideOperationName"),e[0]=r):r=e[0];const{operations:o,operationName:s,isFetching:a,overrideOperationName:l}=Ip(r);let c;e[1]!==o?(c=o===void 0?[]:o,e[1]=o,e[2]=c):c=e[2];const u=c,d=Ip(rEr),h=u.length>1&&typeof l!="string",f=a||d,p=`${f?"Stop":"Execute"} query (${OR(fh.runQuery.key,"Cmd")})`;let g;e[3]!==f?(g=f?S.jsx(A0r,{}):S.jsx(y0r,{}),e[3]=f,e[4]=g):g=e[4];let m;e[5]!==p||e[6]!==g?(m={type:"button",className:"graphiql-execute-button",children:g,"aria-label":p},e[5]=p,e[6]=g,e[7]=m):m=e[7];const v=m;let y;return e[8]!==v||e[9]!==h||e[10]!==f||e[11]!==p||e[12]!==s||e[13]!==u||e[14]!==n||e[15]!==t||e[16]!==i?(y=h&&!f?S.jsxs(loe,{children:[S.jsx(k0,{label:p,children:S.jsx(loe.Button,{...v})}),S.jsx(loe.Content,{children:u.map((b,w)=>{const E=b.name?b.name.value:`<Unnamed ${b.operation}>`;return S.jsx(loe.Item,{onSelect:()=>{var A;const D=(A=b.name)==null?void 0:A.value;D&&D!==s&&t(D),n()},children:E},`${E}-${w}`)})})]}):S.jsx(k0,{label:p,children:S.jsx("button",{...v,onClick:f?i:n})}),e[8]=v,e[9]=h,e[10]=f,e[11]=p,e[12]=s,e[13]=u,e[14]=n,e[15]=t,e[16]=i,e[17]=y):y=e[17],y};function rEr(e){return!!e.subscription}var oEr=on(da()),Ekn=on(da()),Ff=I.forwardRef((e,t)=>{const n=(0,Ekn.c)(6);let i;n[0]!==e.className?(i=bc("graphiql-un-styled",e.className),n[0]=e.className,n[1]=i):i=n[1];let r;return n[2]!==e||n[3]!==t||n[4]!==i?(r=S.jsx("button",{...e,ref:t,className:i}),n[2]=e,n[3]=t,n[4]=i,n[5]=r):r=n[5],r});Ff.displayName="UnStyledButton";var z1=I.forwardRef((e,t)=>{const n=(0,Ekn.c)(7);let i;n[0]!==e.className||n[1]!==e.state?(i=bc("graphiql-button",{success:"graphiql-button-success",error:"graphiql-button-error"}[e.state],e.className),n[0]=e.className,n[1]=e.state,n[2]=i):i=n[2];let r;return n[3]!==e||n[4]!==t||n[5]!==i?(r=S.jsx("button",{...e,ref:t,className:i}),n[3]=e,n[4]=t,n[5]=i,n[6]=r):r=n[6],r});z1.displayName="Button";var jce=I.forwardRef((e,t)=>{const n=(0,oEr.c)(19);let i,r,o;n[0]!==e?({label:i,onClick:r,...o}=e,n[0]=e,n[1]=i,n[2]=r,n[3]=o):(i=n[1],r=n[2],o=n[3]);const[s,a]=I.useState(null);let l;n[4]!==r?(l=m=>{try{r&&r(m),a(null)}catch(v){const y=v;a(y instanceof Error?y:new Error(`Toolbar button click failed: ${y}`))}},n[4]=r,n[5]=l):l=n[5];const c=l,u=s&&"error";let d;n[6]!==o.className||n[7]!==u?(d=bc("graphiql-toolbar-button",u,o.className),n[6]=o.className,n[7]=u,n[8]=d):d=n[8];const h=s?s.message:i,f=s?"true":o["aria-invalid"];let p;n[9]!==c||n[10]!==o||n[11]!==t||n[12]!==d||n[13]!==h||n[14]!==f?(p=S.jsx(Ff,{...o,ref:t,type:"button",className:d,onClick:c,"aria-label":h,"aria-invalid":f}),n[9]=c,n[10]=o,n[11]=t,n[12]=d,n[13]=h,n[14]=f,n[15]=p):p=n[15];let g;return n[16]!==i||n[17]!==p?(g=S.jsx(k0,{label:i,children:p}),n[16]=i,n[17]=p,n[18]=g):g=n[18],g});jce.displayName="ToolbarButton";var sEr=on(da()),aEr=e=>{const t=(0,sEr.c)(19);let n,i;t[0]!==e?({onEdit:n,...i}=e,t[0]=e,t[1]=n,t[2]=i):(n=t[1],i=t[2]);const{setEditor:r,run:o,prettifyEditors:s,mergeQuery:a}=OT();let l;t[3]===Symbol.for("react.memo_cache_sentinel")?(l=iS("initialHeaders","shouldPersistHeaders","uriInstanceId"),t[3]=l):l=t[3];const{initialHeaders:c,shouldPersistHeaders:u,uriInstanceId:d}=Ip(l),h=I.useRef(null),f=Ij(lEr);rDn(n,u?Fd.headers:null,"headers");let p;t[4]!==c||t[5]!==a||t[6]!==f||t[7]!==s||t[8]!==o||t[9]!==r||t[10]!==d?(p=()=>{if(!f)return;const y=Cye({uri:`${d}${P8.requestHeaders}`,value:c}),b=Sye(h,{model:y});r({headerEditor:b});const w=[b.addAction({...tC.runQuery,run:o}),b.addAction({...tC.prettify,run:s}),b.addAction({...tC.mergeFragments,run:a}),b,y];return vK(w)},t[4]=c,t[5]=a,t[6]=f,t[7]=s,t[8]=o,t[9]=r,t[10]=d,t[11]=p):p=t[11];let g;t[12]!==f?(g=[f],t[12]=f,t[13]=g):g=t[13],I.useEffect(p,g);let m;t[14]!==i.className?(m=bc("graphiql-editor",i.className),t[14]=i.className,t[15]=m):m=t[15];let v;return t[16]!==i||t[17]!==m?(v=S.jsx("div",{ref:h,tabIndex:0,onKeyDown:wye,...i,className:m}),t[16]=i,t[17]=m,t[18]=v):v=t[18],v};function lEr(e){return e.monaco}var cEr=on(da()),uEr=e=>{var t;const n=(0,cEr.c)(14),{path:i}=e;let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r={width:null,height:null},n[0]=r):r=n[0];const[o,s]=I.useState(r),{width:a,height:l}=o,[c,u]=I.useState(null),d=I.useRef(null),h=(t=Akn(i))==null?void 0:t.href;let f,p;n[1]!==h?(f=()=>{if(!h){s({width:null,height:null}),u(null);return}fetch(h,{method:"HEAD"}).then(b=>{u(b.headers.get("Content-Type"))}).catch(()=>{u(null)})},p=[h],n[1]=h,n[2]=f,n[3]=p):(f=n[2],p=n[3]),I.useEffect(f,p);let g;n[4]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{s({width:d.current.naturalWidth,height:d.current.naturalHeight})},n[4]=g):g=n[4];let m;n[5]!==h?(m=S.jsx("img",{alt:"",onLoad:g,ref:d,src:h}),n[5]=h,n[6]=m):m=n[6];let v;n[7]!==l||n[8]!==c||n[9]!==a?(v=a!==null&&l!==null&&S.jsxs("div",{children:[a,"x",l,c&&" "+c]}),n[7]=l,n[8]=c,n[9]=a,n[10]=v):v=n[10];let y;return n[11]!==m||n[12]!==v?(y=S.jsxs("div",{children:[m,v]}),n[11]=m,n[12]=v,n[13]=y):y=n[13],y},RBt=Object.assign(uEr,{shouldRender(e){const t=Akn(e);return t?/\.(bmp|gif|jpe?g|png|svg|webp)$/.test(t.pathname):!1}});function Akn(e){const t=e.slice(1).trim();try{return new URL(t,location.protocol+"//"+location.host)}catch{}}var dEr=on(da());gme();cqe();ss();Dn();var hEr=e=>{const t=(0,dEr.c)(53);let n,i,r;t[0]!==e?({onClickReference:n,onEdit:i,...r}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=r):(n=t[1],i=t[2],r=t[3]);const{setOperationName:o,setEditor:s,updateActiveTabValues:a,setVisiblePlugin:l,setSchemaReference:c,run:u,setOperationFacts:d,copyQuery:h,prettifyEditors:f,mergeQuery:p}=OT();let g;t[4]===Symbol.for("react.memo_cache_sentinel")?(g=iS("initialQuery","schema","referencePlugin","operations","operationName","externalFragments","uriInstanceId","storage","monacoTheme"),t[4]=g):g=t[4];const{initialQuery:m,schema:v,referencePlugin:y,operations:b,operationName:w,externalFragments:E,uriInstanceId:A,storage:D,monacoTheme:T}=Ip(g),M=I.useRef(null),P=I.useRef(null);let F,N;t[5]!==n?(F=()=>{P.current=n},N=[n],t[5]=n,t[6]=F,t[7]=N):(F=t[6],N=t[7]),I.useEffect(F,N);let j;t[8]!==w||t[9]!==b||t[10]!==v||t[11]!==d?(j=function(ce){const de=vti(v,ce.getValue()),oe=Z0r(b,w,de?.operations);return d({documentAST:de?.documentAST,operationName:oe,operations:de?.operations}),de?{...de,operationName:oe}:null},t[8]=w,t[9]=b,t[10]=v,t[11]=d,t[12]=j):j=t[12];const W=j,J=I.useRef(null);let ee,Q;t[13]!==w||t[14]!==b||t[15]!==u||t[16]!==o?(ee=()=>{J.current=ie=>{var ce;if(!b){u();return}const de=ie.getPosition(),oe=ie.getModel().getOffsetAt(de);let me;for(const Ce of b)Ce.loc&&Ce.loc.start<=oe&&Ce.loc.end>=oe&&(me=(ce=Ce.name)==null?void 0:ce.value);me&&me!==w&&o(me),u()}},Q=[w,b,u,o],t[13]=w,t[14]=b,t[15]=u,t[16]=o,t[17]=ee,t[18]=Q):(ee=t[17],Q=t[18]),I.useEffect(ee,Q);const{monacoGraphQL:H,monaco:q}=Ij();let le;t[19]!==h||t[20]!==W||t[21]!==m||t[22]!==p||t[23]!==q||t[24]!==H||t[25]!==T||t[26]!==i||t[27]!==w||t[28]!==f||t[29]!==s||t[30]!==o||t[31]!==D||t[32]!==a||t[33]!==A?(le=()=>{if(!q||!H)return;const ie=Ui.file(`${A}${P8.operation}`),ce=Ui.file(`${A}${P8.variables}`),{validateVariablesJSON:de}=Jje;de[ie.toString()]=[ce.toString()],H.setDiagnosticSettings(Jje);const oe=Cye({uri:ie.path.replace("/",""),value:m}),me=Sye(M,{model:oe,theme:T});s({queryEditor:me});const Ce=s7(100,()=>{const De=me.getValue();D.set(Fd.query,De);const Me=W(me);i?.(De,Me?.documentAST),Me?.operationName&&w!==Me.operationName&&o(Me.operationName),a({query:De,operationName:Me?.operationName??null})});W(me);const Se=[oe.onDidChangeContent(Ce),me.addAction({...tC.runQuery,run:(...De)=>{const Me=De;return J.current(...Me)}}),me.addAction({...tC.copyQuery,run:h}),me.addAction({...tC.prettify,run:f}),me.addAction({...tC.mergeFragments,run:p}),me,oe];return vK(Se)},t[19]=h,t[20]=W,t[21]=m,t[22]=p,t[23]=q,t[24]=H,t[25]=T,t[26]=i,t[27]=w,t[28]=f,t[29]=s,t[30]=o,t[31]=D,t[32]=a,t[33]=A,t[34]=le):le=t[34];let Y;t[35]!==q||t[36]!==H?(Y=[q,H],t[35]=q,t[36]=H,t[37]=Y):Y=t[37],I.useEffect(le,Y);let G,pe;t[38]!==E||t[39]!==q||t[40]!==H||t[41]!==y||t[42]!==v||t[43]!==c||t[44]!==l||t[45]!==A?(pe=()=>{if(!v||!q||!H||(H.setSchemaConfig([{uri:`${A}${P8.schema}`,schema:v}]),H.setExternalFragmentDefinitions([...E.values()]),!y))return;let ie;ie=null;const ce=[q.languages.registerDefinitionProvider("graphql",{provideDefinition(de,oe,me){const Ce=xti(oe),Se=nti(de.getValue(),Ce,v);if(!Se)return;const{typeInfo:De,token:Me}=Se,{kind:qe,step:$}=Me.state;if(qe==="Field"&&$===0&&De.fieldDef||qe==="AliasedField"&&$===2&&De.fieldDef||qe==="ObjectField"&&$===0&&De.fieldDef||qe==="Directive"&&$===1&&De.directiveDef||qe==="Variable"&&De.type||qe==="Argument"&&$===0&&De.argDef||qe==="EnumValue"&&De.enumValue&&"description"in De.enumValue||qe==="NamedType"&&De.type&&"description"in De.type){ie={kind:qe,typeInfo:De};const{lineNumber:he,column:Ie}=oe,Be=new Re(he,Ie,he,Ie);return[{uri:de.uri,range:Be}]}ie=null}}),q.languages.registerReferenceProvider("graphql",{provideReferences(de,oe,me,Ce){var Se;const{lineNumber:De,column:Me}=oe;if(!ie)return;l(y),c(ie),(Se=P.current)==null||Se.call(P,ie);const qe=new Re(De,Me,De,Me);return[{uri:de.uri,range:qe}]}})];return vK(ce)},G=[v,y,c,l,E,A,H,q],t[38]=E,t[39]=q,t[40]=H,t[41]=y,t[42]=v,t[43]=c,t[44]=l,t[45]=A,t[46]=G,t[47]=pe):(G=t[46],pe=t[47]),I.useEffect(pe,G);let U;t[48]!==r.className?(U=bc("graphiql-editor",r.className),t[48]=r.className,t[49]=U):U=t[49];let K;return t[50]!==r||t[51]!==U?(K=S.jsx("div",{ref:M,tabIndex:0,onKeyDown:wye,...r,className:U}),t[50]=r,t[51]=U,t[52]=K):K=t[52],K},fEr=on(da());Dn();var pEr=e=>{const t=(0,fEr.c)(22);let n,i;t[0]!==e?({responseTooltip:n,...i}=e,t[0]=e,t[1]=n,t[2]=i):(n=t[1],i=t[2]);const{setEditor:r,run:o}=OT();let s;t[3]===Symbol.for("react.memo_cache_sentinel")?(s=iS("fetchError","validationErrors","responseEditor","uriInstanceId"),t[3]=s):s=t[3];const{fetchError:a,validationErrors:l,responseEditor:c,uriInstanceId:u}=Ip(s),d=I.useRef(null),h=Ij(gEr);let f,p;t[4]!==a||t[5]!==c||t[6]!==l?(f=()=>{a&&c?.setValue(a),l.length&&c?.setValue(aq(l))},p=[c,a,l],t[4]=a,t[5]=c,t[6]=l,t[7]=f,t[8]=p):(f=t[7],p=t[8]),I.useEffect(f,p);let g;t[9]!==n||t[10]!==h||t[11]!==o||t[12]!==r||t[13]!==u?(g=()=>{if(!h)return;const b=Cye({uri:`${u}${P8.response}`,value:""}),w=Sye(d,{model:b,readOnly:!0,lineNumbers:"off",wordWrap:"on",contextmenu:!1});r({responseEditor:w});let E,A;const D=(P,F)=>{if(!(P.uri===b.uri))return null;const j=P.getWordAtPosition(F);if(!j?.word.startsWith("/")||!RBt.shouldRender(j.word))return null;const J=`hover-${F.lineNumber}-${F.column}`;return A&&clearTimeout(A),A=setTimeout(()=>{const ee=document.querySelector(`[data-id="${J}"]`);ee&&(E?.unmount(),E=j8t.createRoot(ee),E.render(S.jsxs(S.Fragment,{children:[n&&S.jsx(n,{position:F,word:j}),S.jsx(RBt,{path:j.word})]})))},500),{range:new Re(F.lineNumber,j.startColumn,F.lineNumber,j.endColumn),contents:[{value:`<div data-id="${J}">Loading...</div>`,supportHtml:!0}]}},T=b.getLanguageId(),M=[h.languages.registerHoverProvider(T,{provideHover:D}),w.addAction({...tC.runQuery,run:o}),w,b];return vK(M)},t[9]=n,t[10]=h,t[11]=o,t[12]=r,t[13]=u,t[14]=g):g=t[14];let m;t[15]!==h?(m=[h],t[15]=h,t[16]=m):m=t[16],I.useEffect(g,m);let v;t[17]!==i.className?(v=bc("result-window",i.className),t[17]=i.className,t[18]=v):v=t[18];let y;return t[19]!==i||t[20]!==v?(y=S.jsx("section",{ref:d,"aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",tabIndex:0,onKeyDown:wye,...i,className:v}),t[19]=i,t[20]=v,t[21]=y):y=t[21],y};function gEr(e){return e.monaco}var mEr=on(da()),vEr=e=>{const t=(0,mEr.c)(19);let n,i;t[0]!==e?({onEdit:n,...i}=e,t[0]=e,t[1]=n,t[2]=i):(n=t[1],i=t[2]);const{setEditor:r,run:o,prettifyEditors:s,mergeQuery:a}=OT();let l;t[3]===Symbol.for("react.memo_cache_sentinel")?(l=iS("initialVariables","uriInstanceId"),t[3]=l):l=t[3];const{initialVariables:c,uriInstanceId:u}=Ip(l),d=I.useRef(null),h=Ij(yEr);rDn(n,Fd.variables,"variables");let f;t[4]!==c||t[5]!==a||t[6]!==h||t[7]!==s||t[8]!==o||t[9]!==r||t[10]!==u?(f=()=>{if(!h)return;const v=Cye({uri:`${u}${P8.variables}`,value:c}),y=Sye(d,{model:v});r({variableEditor:y});const b=[y.addAction({...tC.runQuery,run:o}),y.addAction({...tC.prettify,run:s}),y.addAction({...tC.mergeFragments,run:a}),y,v];return vK(b)},t[4]=c,t[5]=a,t[6]=h,t[7]=s,t[8]=o,t[9]=r,t[10]=u,t[11]=f):f=t[11];let p;t[12]!==h?(p=[h],t[12]=h,t[13]=p):p=t[13],I.useEffect(f,p);let g;t[14]!==i.className?(g=bc("graphiql-editor",i.className),t[14]=i.className,t[15]=g):g=t[15];let m;return t[16]!==i||t[17]!==g?(m=S.jsx("div",{ref:d,tabIndex:0,onKeyDown:wye,...i,className:g}),t[16]=i,t[17]=g,t[18]=m):m=t[18],m};function yEr(e){return e.monaco}var bEr=on(da()),vze=I.forwardRef((e,t)=>{const n=(0,bEr.c)(6);let i;n[0]!==e.className?(i=bc("graphiql-button-group",e.className),n[0]=e.className,n[1]=i):i=n[1];let r;return n[2]!==e||n[3]!==t||n[4]!==i?(r=S.jsx("div",{...e,ref:t,className:i}),n[2]=e,n[3]=t,n[4]=i,n[5]=r):r=n[5],r});vze.displayName="ButtonGroup";var Dkn=on(da()),Uye="Dialog",[Tkn]=VF(Uye),[_Er,oS]=Tkn(Uye),kkn=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:r,onOpenChange:o,modal:s=!0}=e,a=I.useRef(null),l=I.useRef(null),[c,u]=Iye({prop:i,defaultProp:r??!1,onChange:o,caller:Uye});return S.jsx(_Er,{scope:t,triggerRef:a,contentRef:l,contentId:RR(),titleId:RR(),descriptionId:RR(),open:c,onOpenChange:u,onOpenToggle:I.useCallback(()=>u(d=>!d),[u]),modal:s,children:n})};kkn.displayName=Uye;var Ikn="DialogTrigger",Lkn=I.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=oS(Ikn,n),o=Gf(t,r.triggerRef);return S.jsx(Yd.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":mJe(r.open),...i,ref:o,onClick:Ts(e.onClick,r.onOpenToggle)})});Lkn.displayName=Ikn;var pJe="DialogPortal",[wEr,Nkn]=Tkn(pJe,{forceMount:void 0}),Pkn=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:r}=e,o=oS(pJe,t);return S.jsx(wEr,{scope:t,forceMount:n,children:I.Children.map(i,s=>S.jsx(PE,{present:n||o.open,children:S.jsx(Fye,{asChild:!0,container:r,children:s})}))})};Pkn.displayName=pJe;var Ufe="DialogOverlay",Mkn=I.forwardRef((e,t)=>{const n=Nkn(Ufe,e.__scopeDialog),{forceMount:i=n.forceMount,...r}=e,o=oS(Ufe,e.__scopeDialog);return o.modal?S.jsx(PE,{present:i||o.open,children:S.jsx(SEr,{...r,ref:t})}):null});Mkn.displayName=Ufe;var CEr=CK("DialogOverlay.RemoveScroll"),SEr=I.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=oS(Ufe,n);return S.jsx(FTn,{as:CEr,allowPinchZoom:!0,shards:[r.contentRef],children:S.jsx(Yd.div,{"data-state":mJe(r.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),j2="DialogContent",Okn=I.forwardRef((e,t)=>{const n=Nkn(j2,e.__scopeDialog),{forceMount:i=n.forceMount,...r}=e,o=oS(j2,e.__scopeDialog);return S.jsx(PE,{present:i||o.open,children:o.modal?S.jsx(xEr,{...r,ref:t}):S.jsx(EEr,{...r,ref:t})})});Okn.displayName=j2;var xEr=I.forwardRef((e,t)=>{const n=oS(j2,e.__scopeDialog),i=I.useRef(null),r=Gf(t,n.contentRef,i);return I.useEffect(()=>{const o=i.current;if(o)return kTn(o)},[]),S.jsx(Rkn,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ts(e.onCloseAutoFocus,o=>{o.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Ts(e.onPointerDownOutside,o=>{const s=o.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&o.preventDefault()}),onFocusOutside:Ts(e.onFocusOutside,o=>o.preventDefault())})}),EEr=I.forwardRef((e,t)=>{const n=oS(j2,e.__scopeDialog),i=I.useRef(!1),r=I.useRef(!1);return S.jsx(Rkn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(i.current||n.triggerRef.current?.focus(),o.preventDefault()),i.current=!1,r.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(i.current=!0,o.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const s=o.target;n.triggerRef.current?.contains(s)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&r.current&&o.preventDefault()}})}),Rkn=I.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:r,onCloseAutoFocus:o,...s}=e,a=oS(j2,n),l=I.useRef(null),c=Gf(t,l);return UDn(),S.jsxs(S.Fragment,{children:[S.jsx(YXe,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:r,onUnmountAutoFocus:o,children:S.jsx(Lye,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":mJe(a.open),...s,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),S.jsxs(S.Fragment,{children:[S.jsx(AEr,{titleId:a.titleId}),S.jsx(TEr,{contentRef:l,descriptionId:a.descriptionId})]})]})}),gJe="DialogTitle",Fkn=I.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=oS(gJe,n);return S.jsx(Yd.h2,{id:r.titleId,...i,ref:t})});Fkn.displayName=gJe;var Bkn="DialogDescription",jkn=I.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=oS(Bkn,n);return S.jsx(Yd.p,{id:r.descriptionId,...i,ref:t})});jkn.displayName=Bkn;var zkn="DialogClose",Vkn=I.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=oS(zkn,n);return S.jsx(Yd.button,{type:"button",...i,ref:t,onClick:Ts(e.onClick,()=>r.onOpenChange(!1))})});Vkn.displayName=zkn;function mJe(e){return e?"open":"closed"}var Hkn="DialogTitleWarning",[V5r,Wkn]=Swr(Hkn,{contentName:j2,titleName:gJe,docsSlug:"dialog"}),AEr=({titleId:e})=>{const t=Wkn(Hkn),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return I.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},DEr="DialogDescriptionWarning",TEr=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Wkn(DEr).contentName}}.`;return I.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},kEr=kkn,IEr=Lkn,LEr=Pkn,NEr=Mkn,PEr=Okn,MEr=Fkn,OEr=jkn,REr=Vkn,FEr=Symbol.for("react.lazy"),$fe=cT[" use ".trim().toString()];function BEr(e){return typeof e=="object"&&e!==null&&"then"in e}function Ukn(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===FEr&&"_payload"in e&&BEr(e._payload)}function jEr(e){const t=zEr(e),n=I.forwardRef((i,r)=>{let{children:o,...s}=i;Ukn(o)&&typeof $fe=="function"&&(o=$fe(o._payload));const a=I.Children.toArray(o),l=a.find(HEr);if(l){const c=l.props.children,u=a.map(d=>d===l?I.Children.count(c)>1?I.Children.only(null):I.isValidElement(c)?c.props.children:null:d);return S.jsx(t,{...s,ref:r,children:I.isValidElement(c)?I.cloneElement(c,void 0,u):null})}return S.jsx(t,{...s,ref:r,children:o})});return n.displayName=`${e}.Slot`,n}function zEr(e){const t=I.forwardRef((n,i)=>{let{children:r,...o}=n;if(Ukn(r)&&typeof $fe=="function"&&(r=$fe(r._payload)),I.isValidElement(r)){const s=UEr(r),a=WEr(o,r.props);return r.type!==I.Fragment&&(a.ref=i?bZ(i,s):s),I.cloneElement(r,a)}return I.Children.count(r)>1?I.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var VEr=Symbol("radix.slottable");function HEr(e){return I.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===VEr}function WEr(e,t){const n={...t};for(const i in t){const r=e[i],o=t[i];/^on[A-Z]/.test(i)?r&&o?n[i]=(...a)=>{const l=o(...a);return r(...a),l}:r&&(n[i]=r):i==="style"?n[i]={...r,...o}:i==="className"&&(n[i]=[r,o].filter(Boolean).join(" "))}return{...e,...n}}function UEr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $Er=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qEr=$Er.reduce((e,t)=>{const n=jEr(`Primitive.${t}`),i=I.forwardRef((r,o)=>{const{asChild:s,...a}=r,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(l,{...a,ref:o})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),GEr=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),KEr="VisuallyHidden",$kn=I.forwardRef((e,t)=>S.jsx(qEr.span,{...e,ref:t,style:{...GEr,...e.style}}));$kn.displayName=KEr;var yze=$kn,qkn=I.forwardRef((e,t)=>{const n=(0,Dkn.c)(8);let i;n[0]!==e.className?(i=bc("graphiql-dialog-close",e.className),n[0]=e.className,n[1]=i):i=n[1];let r,o;n[2]===Symbol.for("react.memo_cache_sentinel")?(r=S.jsx(yze,{children:"Close dialog"}),o=S.jsx(MXe,{}),n[2]=r,n[3]=o):(r=n[2],o=n[3]);let s;return n[4]!==e||n[5]!==t||n[6]!==i?(s=S.jsx(REr,{asChild:!0,children:S.jsxs(Ff,{...e,ref:t,type:"button",className:i,children:[r,o]})}),n[4]=e,n[5]=t,n[6]=i,n[7]=s):s=n[7],s});qkn.displayName="Dialog.Close";var YEr=e=>{const t=(0,Dkn.c)(9);let n,i;t[0]!==e?({children:n,...i}=e,t[0]=e,t[1]=n,t[2]=i):(n=t[1],i=t[2]);let r;t[3]===Symbol.for("react.memo_cache_sentinel")?(r=S.jsx(NEr,{className:"graphiql-dialog-overlay"}),t[3]=r):r=t[3];let o;t[4]!==n?(o=S.jsxs(LEr,{children:[r,S.jsx(PEr,{className:"graphiql-dialog",children:n})]}),t[4]=n,t[5]=o):o=t[5];let s;return t[6]!==i||t[7]!==o?(s=S.jsx(kEr,{...i,children:o}),t[6]=i,t[7]=o,t[8]=s):s=t[8],s},Gk=Object.assign(YEr,{Close:qkn,Title:MEr,Trigger:IEr,Description:OEr}),QEr=on(da()),gE=I.forwardRef((e,t)=>{const n=(0,QEr.c)(18);let i,r,o,s;n[0]!==e?({children:i,onlyShowFirstChild:r,type:s,...o}=e,n[0]=e,n[1]=i,n[2]=r,n[3]=o,n[4]=s):(i=n[1],r=n[2],o=n[3],s=n[4]);const a=`graphiql-markdown-${s}`,l=r&&"graphiql-markdown-preview";let c;n[5]!==o.className||n[6]!==a||n[7]!==l?(c=bc(a,l,o.className),n[5]=o.className,n[6]=a,n[7]=l,n[8]=c):c=n[8];let u;n[9]!==i?(u=bwr.render(i),n[9]=i,n[10]=u):u=n[10];let d;n[11]!==u?(d={__html:u},n[11]=u,n[12]=d):d=n[12];let h;return n[13]!==o||n[14]!==t||n[15]!==c||n[16]!==d?(h=S.jsx("div",{...o,ref:t,className:c,dangerouslySetInnerHTML:d}),n[13]=o,n[14]=t,n[15]=c,n[16]=d,n[17]=h):h=n[17],h});gE.displayName="MarkdownContent";var ZEr=on(da()),qfe=I.forwardRef((e,t)=>{const n=(0,ZEr.c)(6);let i;n[0]!==e.className?(i=bc("graphiql-spinner",e.className),n[0]=e.className,n[1]=i):i=n[1];let r;return n[2]!==e||n[3]!==t||n[4]!==i?(r=S.jsx("div",{...e,ref:t,className:i}),n[2]=e,n[3]=t,n[4]=i,n[5]=r):r=n[5],r});qfe.displayName="Spinner";var $ye=on(da()),Gkn=I.createContext({});function EZ(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}var Kkn=typeof window<"u",Ykn=Kkn?I.useLayoutEffect:I.useEffect,vJe=I.createContext(null);function yJe(e,t){e.indexOf(t)===-1&&e.push(t)}function Gfe(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function XEr([...e],t,n){const i=t<0?e.length+t:t;if(i>=0&&i<e.length){const r=n<0?e.length+n:n,[o]=e.splice(t,1);e.splice(r,0,o)}return e}var mE=(e,t,n)=>n>t?t:n<e?e:n,bJe=()=>{},aT={},Qkn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Zkn(e){return typeof e=="object"&&e!==null}var Xkn=e=>/^0[^.\s]+$/u.test(e);function _Je(e){let t;return()=>(t===void 0&&(t=e()),t)}var Q_=e=>e,JEr=(e,t)=>n=>t(e(n)),AZ=(...e)=>e.reduce(JEr),TK=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i},wJe=class{constructor(){this.subscriptions=[]}add(e){return yJe(this.subscriptions,e),()=>Gfe(this.subscriptions,e)}notify(e,t,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,t,n);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},pC=e=>e*1e3,j_=e=>e/1e3;function Jkn(e,t){return t?e*(1e3/t):0}var eIn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,eAr=1e-7,tAr=12;function nAr(e,t,n,i,r){let o,s,a=0;do s=t+(n-t)/2,o=eIn(s,i,r)-e,o>0?n=s:t=s;while(Math.abs(o)>eAr&&++a<tAr);return s}function DZ(e,t,n,i){if(e===t&&n===i)return Q_;const r=o=>nAr(o,0,1,e,n);return o=>o===0||o===1?o:eIn(r(o),t,i)}var tIn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,nIn=e=>t=>1-e(1-t),iIn=DZ(.33,1.53,.69,.99),CJe=nIn(iIn),rIn=tIn(CJe),oIn=e=>(e*=2)<1?.5*CJe(e):.5*(2-Math.pow(2,-10*(e-1))),SJe=e=>1-Math.sin(Math.acos(e)),sIn=nIn(SJe),aIn=tIn(SJe),iAr=DZ(.42,0,1,1),rAr=DZ(0,0,.58,1),lIn=DZ(.42,0,.58,1),oAr=e=>Array.isArray(e)&&typeof e[0]!="number",cIn=e=>Array.isArray(e)&&typeof e[0]=="number",sAr={linear:Q_,easeIn:iAr,easeInOut:lIn,easeOut:rAr,circIn:SJe,circInOut:aIn,circOut:sIn,backIn:CJe,backInOut:rIn,backOut:iIn,anticipate:oIn},aAr=e=>typeof e=="string",FBt=e=>{if(cIn(e)){bJe(e.length===4);const[t,n,i,r]=e;return DZ(t,n,i,r)}else if(aAr(e))return sAr[e];return e},coe=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function lAr(e,t){let n=new Set,i=new Set,r=!1,o=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,d=!1,h=!1)=>{const p=h&&r?n:i;return d&&s.add(u),p.has(u)||p.add(u),u},cancel:u=>{i.delete(u),s.delete(u)},process:u=>{if(a=u,r){o=!0;return}r=!0,[n,i]=[i,n],n.forEach(l),n.clear(),r=!1,o&&(o=!1,c.process(u))}};return c}var cAr=40;function uIn(e,t){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=coe.reduce((b,w)=>(b[w]=lAr(o),b),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:h,render:f,postRender:p}=s,g=()=>{const b=aT.useManualTiming?r.timestamp:performance.now();n=!1,aT.useManualTiming||(r.delta=i?1e3/60:Math.max(Math.min(b-r.timestamp,cAr),1)),r.timestamp=b,r.isProcessing=!0,a.process(r),l.process(r),c.process(r),u.process(r),d.process(r),h.process(r),f.process(r),p.process(r),r.isProcessing=!1,n&&t&&(i=!1,e(g))},m=()=>{n=!0,i=!0,r.isProcessing||e(g)};return{schedule:coe.reduce((b,w)=>{const E=s[w];return b[w]=(A,D=!1,T=!1)=>(n||m(),E.schedule(A,D,T)),b},{}),cancel:b=>{for(let w=0;w<coe.length;w++)s[coe[w]].cancel(b)},state:r,steps:s}}var{schedule:ru,cancel:lT,state:Zp,steps:QOe}=uIn(typeof requestAnimationFrame<"u"?requestAnimationFrame:Q_,!0),zce;function uAr(){zce=void 0}var Sv={now:()=>(zce===void 0&&Sv.set(Zp.isProcessing||aT.useManualTiming?Zp.timestamp:performance.now()),zce),set:e=>{zce=e,queueMicrotask(uAr)}},dIn=e=>t=>typeof t=="string"&&t.startsWith(e),hIn=dIn("--"),dAr=dIn("var(--"),xJe=e=>dAr(e)?hAr.test(e.split("/*")[0].trim()):!1,hAr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function BBt(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}var Rj={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},kK={...Rj,transform:e=>mE(0,1,e)},uoe={...Rj,default:1},lq=e=>Math.round(e*1e5)/1e5,EJe=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function fAr(e){return e==null}var pAr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,AJe=(e,t)=>n=>!!(typeof n=="string"&&pAr.test(n)&&n.startsWith(e)||t&&!fAr(n)&&Object.prototype.hasOwnProperty.call(n,t)),fIn=(e,t,n)=>i=>{if(typeof i!="string")return i;const[r,o,s,a]=i.match(EJe);return{[e]:parseFloat(r),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},gAr=e=>mE(0,255,e),ZOe={...Rj,transform:e=>Math.round(gAr(e))},nR={test:AJe("rgb","red"),parse:fIn("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+ZOe.transform(e)+", "+ZOe.transform(t)+", "+ZOe.transform(n)+", "+lq(kK.transform(i))+")"};function mAr(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}var bze={test:AJe("#"),parse:mAr,transform:nR.transform},TZ=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),uI=TZ("deg"),Hx=TZ("%"),to=TZ("px"),vAr=TZ("vh"),yAr=TZ("vw"),jBt={...Hx,parse:e=>Hx.parse(e)/100,transform:e=>Hx.transform(e*100)},I6={test:AJe("hsl","hue"),parse:fIn("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Hx.transform(lq(t))+", "+Hx.transform(lq(n))+", "+lq(kK.transform(i))+")"},Xh={test:e=>nR.test(e)||bze.test(e)||I6.test(e),parse:e=>nR.test(e)?nR.parse(e):I6.test(e)?I6.parse(e):bze.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?nR.transform(e):I6.transform(e),getAnimatableNone:e=>{const t=Xh.parse(e);return t.alpha=0,Xh.transform(t)}},bAr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function _Ar(e){return isNaN(e)&&typeof e=="string"&&(e.match(EJe)?.length||0)+(e.match(bAr)?.length||0)>0}var pIn="number",gIn="color",wAr="var",CAr="var(",zBt="${}",SAr=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function IK(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[];let o=0;const a=t.replace(SAr,l=>(Xh.test(l)?(i.color.push(o),r.push(gIn),n.push(Xh.parse(l))):l.startsWith(CAr)?(i.var.push(o),r.push(wAr),n.push(l)):(i.number.push(o),r.push(pIn),n.push(parseFloat(l))),++o,zBt)).split(zBt);return{values:n,split:a,indexes:i,types:r}}function mIn(e){return IK(e).values}function vIn(e){const{split:t,types:n}=IK(e),i=t.length;return r=>{let o="";for(let s=0;s<i;s++)if(o+=t[s],r[s]!==void 0){const a=n[s];a===pIn?o+=lq(r[s]):a===gIn?o+=Xh.transform(r[s]):o+=r[s]}return o}}var xAr=e=>typeof e=="number"?0:Xh.test(e)?Xh.getAnimatableNone(e):e;function EAr(e){const t=mIn(e);return vIn(e)(t.map(xAr))}var pN={test:_Ar,parse:mIn,createTransformer:vIn,getAnimatableNone:EAr};function XOe(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function AAr({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let r=0,o=0,s=0;if(!t)r=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=XOe(l,a,e+1/3),o=XOe(l,a,e),s=XOe(l,a,e-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:i}}function Kfe(e,t){return n=>n>0?t:e}var qu=(e,t,n)=>e+(t-e)*n,JOe=(e,t,n)=>{const i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},DAr=[bze,nR,I6],TAr=e=>DAr.find(t=>t.test(e));function VBt(e){const t=TAr(e);if(!t)return!1;let n=t.parse(e);return t===I6&&(n=AAr(n)),n}var HBt=(e,t)=>{const n=VBt(e),i=VBt(t);if(!n||!i)return Kfe(e,t);const r={...n};return o=>(r.red=JOe(n.red,i.red,o),r.green=JOe(n.green,i.green,o),r.blue=JOe(n.blue,i.blue,o),r.alpha=qu(n.alpha,i.alpha,o),nR.transform(r))},_ze=new Set(["none","hidden"]);function kAr(e,t){return _ze.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function IAr(e,t){return n=>qu(e,t,n)}function DJe(e){return typeof e=="number"?IAr:typeof e=="string"?xJe(e)?Kfe:Xh.test(e)?HBt:PAr:Array.isArray(e)?yIn:typeof e=="object"?Xh.test(e)?HBt:LAr:Kfe}function yIn(e,t){const n=[...e],i=n.length,r=e.map((o,s)=>DJe(o)(o,t[s]));return o=>{for(let s=0;s<i;s++)n[s]=r[s](o);return n}}function LAr(e,t){const n={...e,...t},i={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(i[r]=DJe(e[r])(e[r],t[r]));return r=>{for(const o in i)n[o]=i[o](r);return n}}function NAr(e,t){const n=[],i={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const o=t.types[r],s=e.indexes[o][i[o]],a=e.values[s]??0;n[r]=a,i[o]++}return n}var PAr=(e,t)=>{const n=pN.createTransformer(t),i=IK(e),r=IK(t);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?_ze.has(e)&&!r.values.length||_ze.has(t)&&!i.values.length?kAr(e,t):AZ(yIn(NAr(i,r),r.values),n):Kfe(e,t)};function bIn(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?qu(e,t,n):DJe(e)(e,t)}var MAr=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ru.update(t,n),stop:()=>lT(t),now:()=>Zp.isProcessing?Zp.timestamp:Sv.now()}},_In=(e,t,n=10)=>{let i="";const r=Math.max(Math.round(t/n),2);for(let o=0;o<r;o++)i+=Math.round(e(o/(r-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},Yfe=2e4;function TJe(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t<Yfe;)t+=n,i=e.next(t);return t>=Yfe?1/0:t}function OAr(e,t=100,n){const i=n({...e,keyframes:[0,t]}),r=Math.min(TJe(i),Yfe);return{type:"keyframes",ease:o=>i.next(r*o).value/t,duration:j_(r)}}var RAr=5;function wIn(e,t,n){const i=Math.max(t-RAr,0);return Jkn(n-e(i),t-i)}var Rd={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},eRe=.001;function FAr({duration:e=Rd.duration,bounce:t=Rd.bounce,velocity:n=Rd.velocity,mass:i=Rd.mass}){let r,o,s=1-t;s=mE(Rd.minDamping,Rd.maxDamping,s),e=mE(Rd.minDuration,Rd.maxDuration,j_(e)),s<1?(r=c=>{const u=c*s,d=u*e,h=u-n,f=wze(c,s),p=Math.exp(-d);return eRe-h/f*p},o=c=>{const d=c*s*e,h=d*n+n,f=Math.pow(s,2)*Math.pow(c,2)*e,p=Math.exp(-d),g=wze(Math.pow(c,2),s);return(-r(c)+eRe>0?-1:1)*((h-f)*p)/g}):(r=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-eRe+u*d},o=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=jAr(r,o,a);if(e=pC(e),isNaN(l))return{stiffness:Rd.stiffness,damping:Rd.damping,duration:e};{const c=Math.pow(l,2)*i;return{stiffness:c,damping:s*2*Math.sqrt(i*c),duration:e}}}var BAr=12;function jAr(e,t,n){let i=n;for(let r=1;r<BAr;r++)i=i-e(i)/t(i);return i}function wze(e,t){return e*Math.sqrt(1-t*t)}var zAr=["duration","bounce"],VAr=["stiffness","damping","mass"];function WBt(e,t){return t.some(n=>e[n]!==void 0)}function HAr(e){let t={velocity:Rd.velocity,stiffness:Rd.stiffness,damping:Rd.damping,mass:Rd.mass,isResolvedFromDuration:!1,...e};if(!WBt(e,VAr)&&WBt(e,zAr))if(e.visualDuration){const n=e.visualDuration,i=2*Math.PI/(n*1.2),r=i*i,o=2*mE(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:Rd.mass,stiffness:r,damping:o}}else{const n=FAr(e);t={...t,...n,mass:Rd.mass},t.isResolvedFromDuration=!0}return t}function Qfe(e=Rd.visualDuration,t=Rd.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:r}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:d,velocity:h,isResolvedFromDuration:f}=HAr({...n,velocity:-j_(n.velocity||0)}),p=h||0,g=c/(2*Math.sqrt(l*u)),m=s-o,v=j_(Math.sqrt(l/u)),y=Math.abs(m)<5;i||(i=y?Rd.restSpeed.granular:Rd.restSpeed.default),r||(r=y?Rd.restDelta.granular:Rd.restDelta.default);let b;if(g<1){const E=wze(v,g);b=A=>{const D=Math.exp(-g*v*A);return s-D*((p+g*v*m)/E*Math.sin(E*A)+m*Math.cos(E*A))}}else if(g===1)b=E=>s-Math.exp(-v*E)*(m+(p+v*m)*E);else{const E=v*Math.sqrt(g*g-1);b=A=>{const D=Math.exp(-g*v*A),T=Math.min(E*A,300);return s-D*((p+g*v*m)*Math.sinh(T)+E*m*Math.cosh(T))/E}}const w={calculatedDuration:f&&d||null,next:E=>{const A=b(E);if(f)a.done=E>=d;else{let D=E===0?p:0;g<1&&(D=E===0?pC(p):wIn(b,E,A));const T=Math.abs(D)<=i,M=Math.abs(s-A)<=r;a.done=T&&M}return a.value=a.done?s:A,a},toString:()=>{const E=Math.min(TJe(w),Yfe),A=_In(D=>w.next(E*D).value,E,30);return E+"ms "+A},toTransition:()=>{}};return w}Qfe.applyToOptions=e=>{const t=OAr(e,100,Qfe);return e.ease=t.ease,e.duration=pC(t.duration),e.type="keyframes",e};function Cze({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},f=T=>a!==void 0&&T<a||l!==void 0&&T>l,p=T=>a===void 0?l:l===void 0||Math.abs(a-T)<Math.abs(l-T)?a:l;let g=n*t;const m=d+g,v=s===void 0?m:s(m);v!==m&&(g=v-d);const y=T=>-g*Math.exp(-T/i),b=T=>v+y(T),w=T=>{const M=y(T),P=b(T);h.done=Math.abs(M)<=c,h.value=h.done?v:P};let E,A;const D=T=>{f(h.value)&&(E=T,A=Qfe({keyframes:[h.value,p(h.value)],velocity:wIn(b,T,h.value),damping:r,stiffness:o,restDelta:c,restSpeed:u}))};return D(0),{calculatedDuration:null,next:T=>{let M=!1;return!A&&E===void 0&&(M=!0,w(T),D(T)),E!==void 0&&T>=E?A.next(T-E):(!M&&w(T),h)}}}function WAr(e,t,n){const i=[],r=n||aT.mix||bIn,o=e.length-1;for(let s=0;s<o;s++){let a=r(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Q_:t;a=AZ(l,a)}i.push(a)}return i}function CIn(e,t,{clamp:n=!0,ease:i,mixer:r}={}){const o=e.length;if(bJe(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=WAr(t,i,r),l=a.length,c=u=>{if(s&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const h=TK(e[d],e[d+1],u);return a[d](h)};return n?u=>c(mE(e[0],e[o-1],u)):c}function UAr(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const r=TK(0,t,i);e.push(qu(n,1,r))}}function $Ar(e){const t=[0];return UAr(t,e.length-1),t}function qAr(e,t){return e.map(n=>n*t)}function GAr(e,t){return e.map(()=>t||lIn).splice(0,e.length-1)}function cq({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const r=oAr(i)?i.map(FBt):FBt(i),o={done:!1,value:t[0]},s=qAr(n&&n.length===t.length?n:$Ar(t),e),a=CIn(s,t,{ease:Array.isArray(r)?r:GAr(t,r)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}var KAr=e=>e!==null;function kJe(e,{repeat:t,repeatType:n="loop"},i,r=1){const o=e.filter(KAr),a=r<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||i===void 0?o[a]:i}var YAr={decay:Cze,inertia:Cze,tween:cq,keyframes:cq,spring:Qfe};function SIn(e){typeof e.type=="string"&&(e.type=YAr[e.type])}var IJe=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},QAr=e=>e/100,LJe=class extends IJe{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==Sv.now()&&this.tick(Sv.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;SIn(e);const{type:t=cq,repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:s}=e;const a=t||cq;a!==cq&&typeof s[0]!="number"&&(this.mixKeyframes=AZ(QAr,bIn(s[0],s[1])),s=[0,100]);const l=a({...e,keyframes:s});r==="mirror"&&(this.mirroredGenerator=a({...e,keyframes:[...s].reverse(),velocity:-o})),l.calculatedDuration===null&&(l.calculatedDuration=TJe(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=l}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:n,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:a}=this;if(this.startTime===null)return n.next(0);const{delay:l=0,keyframes:c,repeat:u,repeatType:d,repeatDelay:h,type:f,onUpdate:p,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const m=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let y=this.currentTime,b=n;if(u){const D=Math.min(this.currentTime,i)/s;let T=Math.floor(D),M=D%1;!M&&D>=1&&(M=1),M===1&&T--,T=Math.min(T,u+1),T%2&&(d==="reverse"?(M=1-M,h&&(M-=h/s)):d==="mirror"&&(b=o)),y=mE(0,1,M)*s}const w=v?{done:!1,value:c[0]}:b.next(y);r&&(w.value=r(w.value));let{done:E}=w;!v&&a!==null&&(E=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return A&&f!==Cze&&(w.value=kJe(c,this.options,g,this.speed)),p&&p(w.value),A&&this.finish(),w}then(e,t){return this.finished.then(e,t)}get duration(){return j_(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+j_(e)}get time(){return j_(this.currentTime)}set time(e){e=pC(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Sv.now());const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=j_(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=MAr,startTime:t}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Sv.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}};function ZAr(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var iR=e=>e*180/Math.PI,Sze=e=>{const t=iR(Math.atan2(e[1],e[0]));return xze(t)},XAr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Sze,rotateZ:Sze,skewX:e=>iR(Math.atan(e[1])),skewY:e=>iR(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},xze=e=>(e=e%360,e<0&&(e+=360),e),UBt=Sze,$Bt=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),qBt=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),JAr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:$Bt,scaleY:qBt,scale:e=>($Bt(e)+qBt(e))/2,rotateX:e=>xze(iR(Math.atan2(e[6],e[5]))),rotateY:e=>xze(iR(Math.atan2(-e[2],e[0]))),rotateZ:UBt,rotate:UBt,skewX:e=>iR(Math.atan(e[4])),skewY:e=>iR(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Eze(e){return e.includes("scale")?1:0}function Aze(e,t){if(!e||e==="none")return Eze(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,r;if(n)i=JAr,r=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=XAr,r=a}if(!r)return Eze(t);const o=i[t],s=r[1].split(",").map(tDr);return typeof o=="function"?o(s):s[o]}var eDr=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Aze(n,t)};function tDr(e){return parseFloat(e.trim())}var Fj=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Bj=new Set(Fj),GBt=e=>e===Rj||e===to,nDr=new Set(["x","y","z"]),iDr=Fj.filter(e=>!nDr.has(e));function rDr(e){const t=[];return iDr.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}var tL={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Aze(t,"x"),y:(e,{transform:t})=>Aze(t,"y")};tL.translateX=tL.x;tL.translateY=tL.y;var FR=new Set,Dze=!1,Tze=!1,kze=!1;function xIn(){if(Tze){const e=Array.from(FR).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const r=rDr(i);r.length&&(n.set(i,r),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const r=n.get(i);r&&r.forEach(([o,s])=>{i.getValue(o)?.set(s)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Tze=!1,Dze=!1,FR.forEach(e=>e.complete(kze)),FR.clear()}function EIn(){FR.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Tze=!0)})}function oDr(){kze=!0,EIn(),xIn(),kze=!1}var NJe=class{constructor(e,t,n,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(FR.add(this),Dze||(Dze=!0,ru.read(EIn),ru.resolveKeyframes(xIn))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:i}=this;if(e[0]===null){const r=i?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(n&&t){const s=n.readValue(t,o);s!=null&&(e[0]=s)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}ZAr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),FR.delete(this)}cancel(){this.state==="scheduled"&&(FR.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}},sDr=e=>e.startsWith("--");function aDr(e,t,n){sDr(t)?e.style.setProperty(t,n):e.style[t]=n}var lDr=_Je(()=>window.ScrollTimeline!==void 0),cDr={};function uDr(e,t){const n=_Je(e);return()=>cDr[t]??n()}var AIn=uDr(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),bU=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,KBt={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bU([0,.65,.55,1]),circOut:bU([.55,0,1,.45]),backIn:bU([.31,.01,.66,-.59]),backOut:bU([.33,1.53,.69,.99])};function DIn(e,t){if(e)return typeof e=="function"?AIn()?_In(e,t):"ease-out":cIn(e)?bU(e):Array.isArray(e)?e.map(n=>DIn(n,t)||KBt.easeOut):KBt[e]}function dDr(e,t,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=DIn(a,r);Array.isArray(d)&&(u.easing=d);const h={delay:i,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(u,h)}function TIn(e){return typeof e=="function"&&"applyToOptions"in e}function hDr({type:e,...t}){return TIn(e)&&AIn()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var kIn=class extends IJe{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:s,onComplete:a}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,bJe(typeof e.type!="string");const l=hDr(e);this.animation=dDr(t,n,i,l,r),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const c=kJe(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(c):aDr(t,n,c),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return j_(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+j_(e)}get time(){return j_(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=pC(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&lDr()?(this.animation.timeline=e,Q_):t(this)}},IIn={anticipate:oIn,backInOut:rIn,circInOut:aIn};function fDr(e){return e in IIn}function pDr(e){typeof e.ease=="string"&&fDr(e.ease)&&(e.ease=IIn[e.ease])}var tRe=10,gDr=class extends kIn{constructor(e){pDr(e),SIn(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:n,onComplete:i,element:r,...o}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}const s=new LJe({...o,autoplay:!1}),a=Math.max(tRe,Sv.now()-this.startTime),l=mE(0,tRe,a-tRe);t.setWithVelocity(s.sample(Math.max(0,a-l)).value,s.sample(a).value,l),s.stop()}},YBt=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(pN.test(e)||e==="0")&&!e.startsWith("url("));function mDr(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function vDr(e,t,n,i){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=YBt(r,t),a=YBt(o,t);return!s||!a?!1:mDr(e)||(n==="spring"||TIn(n))&&i}function Ize(e){e.duration=0,e.type="keyframes"}var yDr=new Set(["opacity","clipPath","filter","transform"]),bDr=_Je(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function _Dr(e){const{motionValue:t,name:n,repeatDelay:i,repeatType:r,damping:o,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return bDr()&&n&&yDr.has(n)&&(n!=="transform"||!c)&&!l&&!i&&r!=="mirror"&&o!==0&&s!=="inertia"}var wDr=40,CDr=class extends IJe{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:s,name:a,motionValue:l,element:c,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Sv.now();const d={autoplay:e,delay:t,type:n,repeat:i,repeatDelay:r,repeatType:o,name:a,motionValue:l,element:c,...u},h=c?.KeyframeResolver||NJe;this.keyframeResolver=new h(s,(f,p,g)=>this.onKeyframesResolved(f,p,d,!g),a,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:s,delay:a,isHandoff:l,onUpdate:c}=n;this.resolvedAt=Sv.now(),vDr(e,r,o,s)||((aT.instantAnimations||!a)&&c?.(kJe(e,n,t)),e[0]=e[e.length-1],Ize(n),n.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>wDr?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},h=!l&&_Dr(d),f=d.motionValue?.owner?.current,p=h?new gDr({...d,element:f}):new LJe(d);p.finished.then(()=>{this.notifyFinished()}).catch(Q_),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),oDr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function LIn(e,t,n,i=0,r=1){const o=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),s=e.size,a=(s-1)*i;return typeof n=="function"?n(o,s):r===1?o*i:a-o*i}var SDr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function xDr(e){const t=SDr.exec(e);if(!t)return[,];const[,n,i,r]=t;return[`--${n??i}`,r]}function NIn(e,t,n=1){const[i,r]=xDr(e);if(!i)return;const o=window.getComputedStyle(t).getPropertyValue(i);if(o){const s=o.trim();return Qkn(s)?parseFloat(s):s}return xJe(r)?NIn(r,t,n+1):r}var EDr={type:"spring",stiffness:500,damping:25,restSpeed:10},ADr=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),DDr={type:"keyframes",duration:.8},TDr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},kDr=(e,{keyframes:t})=>t.length>2?DDr:Bj.has(e)?e.startsWith("scale")?ADr(t[1]):EDr:TDr,IDr=e=>e!==null;function LDr(e,{repeat:t,repeatType:n="loop"},i){const r=e.filter(IDr),o=t&&n!=="loop"&&t%2===1?0:r.length-1;return!o||i===void 0?r[o]:i}function PIn(e,t){if(e?.inherit&&t){const{inherit:n,...i}=e;return{...t,...i}}return e}function PJe(e,t){const n=e?.[t]??e?.default??e;return n!==e?PIn(n,e):n}function NDr({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}var MJe=(e,t,n,i={},r,o)=>s=>{const a=PJe(i,e)||{},l=a.delay||i.delay||0;let{elapsed:c=0}=i;c=c-pC(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:r};NDr(a)||Object.assign(u,kDr(e,u)),u.duration&&(u.duration=pC(u.duration)),u.repeatDelay&&(u.repeatDelay=pC(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ize(u),u.delay===0&&(d=!0)),(aT.instantAnimations||aT.skipAnimations||r?.shouldSkipAnimations)&&(d=!0,Ize(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!o&&t.get()!==void 0){const h=LDr(u.keyframes,a);if(h!==void 0){ru.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new LJe(u):new CDr(u)};function QBt(e){const t=[{},{}];return e?.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function OJe(e,t,n,i){if(typeof t=="function"){const[r,o]=QBt(i);t=t(n!==void 0?n:e.custom,r,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,o]=QBt(i);t=t(n!==void 0?n:e.custom,r,o)}return t}function F8(e,t,n){const i=e.getProps();return OJe(i,t,n!==void 0?n:i.custom,e)}var MIn=new Set(["width","height","top","left","right","bottom",...Fj]),ZBt=30,PDr=e=>!isNaN(parseFloat(e)),uq={current:void 0},MDr=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const i=Sv.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Sv.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=PDr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new wJe);const n=this.events[e].add(t);return e==="change"?()=>{n(),ru.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return uq.current&&uq.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Sv.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ZBt)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,ZBt);return Jkn(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function z2(e,t){return new MDr(e,t)}var Lze=e=>Array.isArray(e);function ODr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,z2(n))}function RDr(e){return Lze(e)?e[e.length-1]||0:e}function FDr(e,t){const n=F8(e,t);let{transitionEnd:i={},transition:r={},...o}=n||{};o={...o,...i};for(const s in o){const a=RDr(o[s]);ODr(e,s,a)}}var lg=e=>!!(e&&e.getVelocity);function BDr(e){return!!(lg(e)&&e.add)}function Nze(e,t){const n=e.getValue("willChange");if(BDr(n))return n.add(t);if(!n&&aT.WillChange){const i=new aT.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function RJe(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}var jDr="framerAppearId",OIn="data-"+RJe(jDr);function RIn(e){return e.props[OIn]}function zDr({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function FIn(e,t,{delay:n=0,transitionOverride:i,type:r}={}){let{transition:o,transitionEnd:s,...a}=t;const l=e.getDefaultTransition();o=o?PIn(o,l):l;const c=o?.reduceMotion;i&&(o=i);const u=[],d=r&&e.animationState&&e.animationState.getState()[r];for(const h in a){const f=e.getValue(h,e.latestValues[h]??null),p=a[h];if(p===void 0||d&&zDr(d,h))continue;const g={delay:n,...PJe(o||{},h)},m=f.get();if(m!==void 0&&!f.isAnimating&&!Array.isArray(p)&&p===m&&!g.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const w=RIn(e);if(w){const E=window.MotionHandoffAnimation(w,h,ru);E!==null&&(g.startTime=E,v=!0)}}Nze(e,h);const y=c??e.shouldReduceMotion;f.start(MJe(h,f,p,y&&MIn.has(h)?{type:!1}:g,e,v));const b=f.animation;b&&u.push(b)}if(s){const h=()=>ru.update(()=>{s&&FDr(e,s)});u.length?Promise.all(u).then(h):h()}return u}function Pze(e,t,n={}){const i=F8(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const o=i?()=>Promise.all(FIn(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=r;return VDr(e,t,l,c,u,d,n)}:()=>Promise.resolve(),{when:a}=r;if(a){const[l,c]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>c())}else return Promise.all([o(),s(n.delay)])}function VDr(e,t,n=0,i=0,r=0,o=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Pze(l,t,{...s,delay:n+(typeof i=="function"?0:i)+LIn(e.variantChildren,l,i,r,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function HDr(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const r=t.map(o=>Pze(e,o,n));i=Promise.all(r)}else if(typeof t=="string")i=Pze(e,t,n);else{const r=typeof t=="function"?F8(e,t,n.custom):t;i=Promise.all(FIn(e,r,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}var WDr={test:e=>e==="auto",parse:e=>e},BIn=e=>t=>t.test(e),jIn=[Rj,to,Hx,uI,yAr,vAr,WDr],XBt=e=>jIn.find(BIn(e));function UDr(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Xkn(e):!0}var $Dr=new Set(["brightness","contrast","saturate","opacity"]);function qDr(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(EJe)||[];if(!i)return e;const r=n.replace(i,"");let o=$Dr.has(t)?1:0;return i!==n&&(o*=100),t+"("+o+r+")"}var GDr=/\b([a-z-]*)\(.*?\)/gu,Mze={...pN,getAnimatableNone:e=>{const t=e.match(GDr);return t?t.map(qDr).join(" "):e}},JBt={...Rj,transform:Math.round},KDr={rotate:uI,rotateX:uI,rotateY:uI,rotateZ:uI,scale:uoe,scaleX:uoe,scaleY:uoe,scaleZ:uoe,skew:uI,skewX:uI,skewY:uI,distance:to,translateX:to,translateY:to,translateZ:to,x:to,y:to,z:to,perspective:to,transformPerspective:to,opacity:kK,originX:jBt,originY:jBt,originZ:to},FJe={borderWidth:to,borderTopWidth:to,borderRightWidth:to,borderBottomWidth:to,borderLeftWidth:to,borderRadius:to,borderTopLeftRadius:to,borderTopRightRadius:to,borderBottomRightRadius:to,borderBottomLeftRadius:to,width:to,maxWidth:to,height:to,maxHeight:to,top:to,right:to,bottom:to,left:to,inset:to,insetBlock:to,insetBlockStart:to,insetBlockEnd:to,insetInline:to,insetInlineStart:to,insetInlineEnd:to,padding:to,paddingTop:to,paddingRight:to,paddingBottom:to,paddingLeft:to,paddingBlock:to,paddingBlockStart:to,paddingBlockEnd:to,paddingInline:to,paddingInlineStart:to,paddingInlineEnd:to,margin:to,marginTop:to,marginRight:to,marginBottom:to,marginLeft:to,marginBlock:to,marginBlockStart:to,marginBlockEnd:to,marginInline:to,marginInlineStart:to,marginInlineEnd:to,fontSize:to,backgroundPositionX:to,backgroundPositionY:to,...KDr,zIndex:JBt,fillOpacity:kK,strokeOpacity:kK,numOctaves:JBt},YDr={...FJe,color:Xh,backgroundColor:Xh,outlineColor:Xh,fill:Xh,stroke:Xh,borderColor:Xh,borderTopColor:Xh,borderRightColor:Xh,borderBottomColor:Xh,borderLeftColor:Xh,filter:Mze,WebkitFilter:Mze},zIn=e=>YDr[e];function VIn(e,t){let n=zIn(e);return n!==Mze&&(n=pN),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var QDr=new Set(["auto","none","0"]);function ZDr(e,t,n){let i=0,r;for(;i<e.length&&!r;){const o=e[i];typeof o=="string"&&!QDr.has(o)&&IK(o).values.length&&(r=e[i]),i++}if(r&&n)for(const o of t)e[o]=VIn(n,r)}var XDr=class extends NJe{constructor(e,t,n,i,r){super(e,t,n,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let u=e[c];if(typeof u=="string"&&(u=u.trim(),xJe(u))){const d=NIn(u,t.current);d!==void 0&&(e[c]=d),c===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!MIn.has(n)||e.length!==2)return;const[i,r]=e,o=XBt(i),s=XBt(r),a=BBt(i),l=BBt(r);if(a!==l&&tL[n]){this.needsMeasurement=!0;return}if(o!==s)if(GBt(o)&&GBt(s))for(let c=0;c<e.length;c++){const u=e[c];typeof u=="string"&&(e[c]=parseFloat(u))}else tL[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let i=0;i<e.length;i++)(e[i]===null||UDr(e[i]))&&n.push(i);n.length&&ZDr(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tL[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const i=t[t.length-1];i!==void 0&&e.getValue(n,i).jump(i,!1)}measureEndState(){const{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;const i=e.getValue(t);i&&i.jump(this.measuredOrigin,!1);const r=n.length-1,o=n[r];n[r]=tL[t](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([s,a])=>{e.getValue(s).set(a)}),this.resolveNoneKeyframes()}},JDr=new Set(["opacity","clipPath","filter","transform"]);function HIn(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const r=document.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(i=>i!=null)}var WIn=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function eTr(e){return Zkn(e)&&"offsetHeight"in e}var{schedule:BJe}=uIn(queueMicrotask,!1),T1={x:!1,y:!1};function UIn(){return T1.x||T1.y}function tTr(e){return e==="x"||e==="y"?T1[e]?null:(T1[e]=!0,()=>{T1[e]=!1}):T1.x||T1.y?null:(T1.x=T1.y=!0,()=>{T1.x=T1.y=!1})}function $In(e,t){const n=HIn(e),i=new AbortController,r={passive:!0,...t,signal:i.signal};return[n,r,()=>i.abort()]}function nTr(e){return!(e.pointerType==="touch"||UIn())}function iTr(e,t,n={}){const[i,r,o]=$In(e,n);return i.forEach(s=>{let a=!1,l=!1,c;const u=()=>{s.removeEventListener("pointerleave",p)},d=m=>{c&&(c(m),c=void 0),u()},h=m=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),l&&(l=!1,d(m))},f=()=>{a=!0,window.addEventListener("pointerup",h,r),window.addEventListener("pointercancel",h,r)},p=m=>{if(m.pointerType!=="touch"){if(a){l=!0;return}d(m)}},g=m=>{if(!nTr(m))return;l=!1;const v=t(s,m);typeof v=="function"&&(c=v,s.addEventListener("pointerleave",p,r))};s.addEventListener("pointerenter",g,r),s.addEventListener("pointerdown",f,r)}),o}var qIn=(e,t)=>t?e===t?!0:qIn(e,t.parentElement):!1,jJe=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,rTr=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function oTr(e){return rTr.has(e.tagName)||e.isContentEditable===!0}var sTr=new Set(["INPUT","SELECT","TEXTAREA"]);function aTr(e){return sTr.has(e.tagName)||e.isContentEditable===!0}var Vce=new WeakSet;function e6t(e){return t=>{t.key==="Enter"&&e(t)}}function nRe(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var lTr=(e,t)=>{const n=e.currentTarget;if(!n)return;const i=e6t(()=>{if(Vce.has(n))return;nRe(n,"down");const r=e6t(()=>{nRe(n,"up")}),o=()=>nRe(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)};function t6t(e){return jJe(e)&&!UIn()}var n6t=new WeakSet;function cTr(e,t,n={}){const[i,r,o]=$In(e,n),s=a=>{const l=a.currentTarget;if(!t6t(a)||n6t.has(a))return;Vce.add(l),n.stopPropagation&&n6t.add(a);const c=t(l,a),u=(f,p)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),Vce.has(l)&&Vce.delete(l),t6t(f)&&typeof c=="function"&&c(f,{success:p})},d=f=>{u(f,l===window||l===document||n.useGlobalTarget||qIn(l,f.target))},h=f=>{u(f,!1)};window.addEventListener("pointerup",d,r),window.addEventListener("pointercancel",h,r)};return i.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,r),eTr(a)&&(a.addEventListener("focus",c=>lTr(c,r)),!oTr(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function zJe(e){return Zkn(e)&&"ownerSVGElement"in e}var Hce=new WeakMap,Wce,GIn=(e,t,n)=>(i,r)=>r&&r[0]?r[0][e+"Size"]:zJe(i)&&"getBBox"in i?i.getBBox()[t]:i[n],uTr=GIn("inline","width","offsetWidth"),dTr=GIn("block","height","offsetHeight");function hTr({target:e,borderBoxSize:t}){Hce.get(e)?.forEach(n=>{n(e,{get width(){return uTr(e,t)},get height(){return dTr(e,t)}})})}function fTr(e){e.forEach(hTr)}function pTr(){typeof ResizeObserver>"u"||(Wce=new ResizeObserver(fTr))}function gTr(e,t){Wce||pTr();const n=HIn(e);return n.forEach(i=>{let r=Hce.get(i);r||(r=new Set,Hce.set(i,r)),r.add(t),Wce?.observe(i)}),()=>{n.forEach(i=>{const r=Hce.get(i);r?.delete(t),r?.size||Wce?.unobserve(i)})}}var Uce=new Set,L6;function mTr(){L6=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Uce.forEach(t=>t(e))},window.addEventListener("resize",L6)}function vTr(e){return Uce.add(e),L6||mTr(),()=>{Uce.delete(e),!Uce.size&&typeof L6=="function"&&(window.removeEventListener("resize",L6),L6=void 0)}}function i6t(e,t){return typeof e=="function"?vTr(e):gTr(e,t)}function yTr(e){return zJe(e)&&e.tagName==="svg"}function bTr(...e){const t=!Array.isArray(e[0]),n=t?0:-1,i=e[0+n],r=e[1+n],o=e[2+n],s=e[3+n],a=CIn(r,o,s);return t?a(i):a}var _Tr=[...jIn,Xh,pN],wTr=e=>_Tr.find(BIn(e)),r6t=()=>({translate:0,scale:1,origin:0,originPoint:0}),N6=()=>({x:r6t(),y:r6t()}),o6t=()=>({min:0,max:0}),If=()=>({x:o6t(),y:o6t()}),CTr=new WeakMap;function qye(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function LK(e){return typeof e=="string"||Array.isArray(e)}var VJe=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],HJe=["initial",...VJe];function Gye(e){return qye(e.animate)||HJe.some(t=>LK(e[t]))}function KIn(e){return!!(Gye(e)||e.variants)}function STr(e,t,n){for(const i in t){const r=t[i],o=n[i];if(lg(r))e.addValue(i,r);else if(lg(o))e.addValue(i,z2(r,{owner:e}));else if(o!==r)if(e.hasValue(i)){const s=e.getValue(i);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{const s=e.getStaticValue(i);e.addValue(i,z2(s!==void 0?s:r,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}var Oze={current:null},YIn={current:!1},xTr=typeof window<"u";function ETr(){if(YIn.current=!0,!!xTr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Oze.current=e.matches;e.addEventListener("change",t),t()}else Oze.current=!1}var s6t=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Zfe={};function QIn(e){Zfe=e}function ATr(){return Zfe}var DTr=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=NJe,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Sv.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,ru.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Gye(t),this.isVariantNode=KIn(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const h in d){const f=d[h];l[h]!==void 0&&lg(f)&&f.set(l[h])}}mount(e){if(this.hasBeenMounted)for(const t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=e,CTr.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,n)=>this.bindToMotionValue(n,t)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(YIn.current||ETr(),this.shouldReduceMotion=Oze.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),lT(this.notifyUpdate),lT(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&JDr.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:s,times:a,ease:l,duration:c}=t.accelerate,u=new kIn({element:this.current,name:e,keyframes:s,times:a,ease:l,duration:pC(c)}),d=o(u);this.valueSubscriptions.set(e,()=>{d(),u.cancel()});return}const n=Bj.has(e);n&&this.onBindTransform&&this.onBindTransform();const i=t.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&ru.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),r&&r(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Zfe){const t=Zfe[e];if(!t)continue;const{isEnabled:n,Feature:i}=t;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):If()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<s6t.length;n++){const i=s6t[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=STr(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=z2(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n=="string"&&(Qkn(n)||Xkn(n))?n=parseFloat(n):!wTr(n)&&pN.test(t)&&(n=VIn(e,t)),this.setBaseTarget(e,lg(n)?n.get():n)),lg(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){const{initial:t}=this.props;let n;if(typeof t=="string"||typeof t=="object"){const r=OJe(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!lg(i)?i:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new wJe),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){BJe.render(this.render)}},ZIn=class extends DTr{constructor(){super(...arguments),this.KeyframeResolver=XDr}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){const n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;lg(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}},sP=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function XIn({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function TTr({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function kTr(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function iRe(e){return e===void 0||e===1}function Rze({scale:e,scaleX:t,scaleY:n}){return!iRe(e)||!iRe(t)||!iRe(n)}function aO(e){return Rze(e)||JIn(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function JIn(e){return a6t(e.x)||a6t(e.y)}function a6t(e){return e&&e!=="0%"}function Xfe(e,t,n){const i=e-n,r=t*i;return n+r}function l6t(e,t,n,i,r){return r!==void 0&&(e=Xfe(e,r,i)),Xfe(e,n,i)+t}function Fze(e,t=0,n=1,i,r){e.min=l6t(e.min,t,n,i,r),e.max=l6t(e.max,t,n,i,r)}function eLn(e,{x:t,y:n}){Fze(e.x,t.translate,t.scale,t.originPoint),Fze(e.y,n.translate,n.scale,n.originPoint)}var c6t=.999999999999,u6t=1.0000000000001;function ITr(e,t,n,i=!1){const r=n.length;if(!r)return;t.x=t.y=1;let o,s;for(let a=0;a<r;a++){o=n[a],s=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&M6(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,eLn(e,s)),i&&aO(o.latestValues)&&M6(e,o.latestValues))}t.x<u6t&&t.x>c6t&&(t.x=1),t.y<u6t&&t.y>c6t&&(t.y=1)}function P6(e,t){e.min=e.min+t,e.max=e.max+t}function d6t(e,t,n,i,r=.5){const o=qu(e.min,e.max,r);Fze(e,t,n,o,i)}function M6(e,t){d6t(e.x,t.x,t.scaleX,t.scale,t.originX),d6t(e.y,t.y,t.scaleY,t.scale,t.originY)}function tLn(e,t){return XIn(kTr(e.getBoundingClientRect(),t))}function LTr(e,t,n){const i=tLn(e,n),{scroll:r}=t;return r&&(P6(i.x,r.offset.x),P6(i.y,r.offset.y)),i}var NTr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},PTr=Fj.length;function MTr(e,t,n){let i="",r=!0;for(let o=0;o<PTr;o++){const s=Fj[o],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(s.startsWith("scale")?1:0);else{const c=parseFloat(a);l=s.startsWith("scale")?c===1:c===0}if(!l||n){const c=WIn(a,FJe[s]);if(!l){r=!1;const u=NTr[s]||s;i+=`${u}(${c}) `}n&&(t[s]=c)}}return i=i.trim(),n?i=n(t,r?"":i):r&&(i="none"),i}function WJe(e,t,n){const{style:i,vars:r,transformOrigin:o}=e;let s=!1,a=!1;for(const l in t){const c=t[l];if(Bj.has(l)){s=!0;continue}else if(hIn(l)){r[l]=c;continue}else{const u=WIn(c,FJe[l]);l.startsWith("origin")?(a=!0,o[l]=u):i[l]=u}}if(t.transform||(s||n?i.transform=MTr(t,e.transform,n):i.transform&&(i.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=o;i.transformOrigin=`${l} ${c} ${u}`}}function nLn(e,{style:t,vars:n},i,r){const o=e.style;let s;for(s in t)o[s]=t[s];r?.applyProjectionStyles(o,i);for(s in n)o.setProperty(s,n[s])}function h6t(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var CH={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(to.test(e))e=parseFloat(e);else return e;const n=h6t(e,t.target.x),i=h6t(e,t.target.y);return`${n}% ${i}%`}},OTr={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,r=pN.parse(e);if(r.length>5)return i;const o=pN.createTransformer(e),s=typeof r[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;r[0+s]/=a,r[1+s]/=l;const c=qu(a,l,.5);return typeof r[2+s]=="number"&&(r[2+s]/=c),typeof r[3+s]=="number"&&(r[3+s]/=c),o(r)}},Bze={borderRadius:{...CH,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:CH,borderTopRightRadius:CH,borderBottomLeftRadius:CH,borderBottomRightRadius:CH,boxShadow:OTr};function iLn(e,{layout:t,layoutId:n}){return Bj.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Bze[e]||e==="opacity")}function UJe(e,t,n){const i=e.style,r=t?.style,o={};if(!i)return o;for(const s in i)(lg(i[s])||r&&lg(r[s])||iLn(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(o[s]=i[s]);return o}function RTr(e){return window.getComputedStyle(e)}var FTr=class extends ZIn{constructor(){super(...arguments),this.type="html",this.renderInstance=nLn}readValueFromInstance(e,t){if(Bj.has(t))return this.projection?.isProjecting?Eze(t):eDr(e,t);{const n=RTr(e),i=(hIn(t)?n.getPropertyValue(t):n[t])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return tLn(e,t)}build(e,t,n){WJe(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return UJe(e,t,n)}},BTr={offset:"stroke-dashoffset",array:"stroke-dasharray"},jTr={offset:"strokeDashoffset",array:"strokeDasharray"};function zTr(e,t,n=1,i=0,r=!0){e.pathLength=1;const o=r?BTr:jTr;e[o.offset]=`${-i}`,e[o.array]=`${t} ${n}`}var VTr=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function rLn(e,{attrX:t,attrY:n,attrScale:i,pathLength:r,pathSpacing:o=1,pathOffset:s=0,...a},l,c,u){if(WJe(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete d.transformBox);for(const f of VTr)d[f]!==void 0&&(h[f]=d[f],delete d[f]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),i!==void 0&&(d.scale=i),r!==void 0&&zTr(d,r,o,s,!1)}var oLn=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),sLn=e=>typeof e=="string"&&e.toLowerCase()==="svg";function HTr(e,t,n,i){nLn(e,t,void 0,i);for(const r in t.attrs)e.setAttribute(oLn.has(r)?r:RJe(r),t.attrs[r])}function aLn(e,t,n){const i=UJe(e,t,n);for(const r in e)if(lg(e[r])||lg(t[r])){const o=Fj.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[o]=e[r]}return i}var WTr=class extends ZIn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=If}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Bj.has(t)){const n=zIn(t);return n&&n.default||0}return t=oLn.has(t)?t:RJe(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return aLn(e,t,n)}build(e,t,n){rLn(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,i){HTr(e,t,n,i)}mount(e){this.isSVGTag=sLn(e.tagName),super.mount(e)}},UTr=HJe.length;function lLn(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?lLn(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<UTr;n++){const i=HJe[n],r=e.props[i];(LK(r)||r===!1)&&(t[i]=r)}return t}function cLn(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}var $Tr=[...VJe].reverse(),qTr=VJe.length;function GTr(e){return t=>Promise.all(t.map(({animation:n,options:i})=>HDr(e,n,i)))}function KTr(e){let t=GTr(e),n=f6t(),i=!0;const r=l=>(c,u)=>{const d=F8(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:h,transitionEnd:f,...p}=d;c={...c,...p,...f}}return c};function o(l){t=l(e)}function s(l){const{props:c}=e,u=lLn(e.parent)||{},d=[],h=new Set;let f={},p=1/0;for(let m=0;m<qTr;m++){const v=$Tr[m],y=n[v],b=c[v]!==void 0?c[v]:u[v],w=LK(b),E=v===l?y.isActive:null;E===!1&&(p=m);let A=b===u[v]&&b!==c[v]&&w;if(A&&i&&e.manuallyAnimateOnMount&&(A=!1),y.protectedKeys={...f},!y.isActive&&E===null||!b&&!y.prevProp||qye(b)||typeof b=="boolean")continue;if(v==="exit"&&y.isActive&&E!==!0){y.prevResolvedValues&&(f={...f,...y.prevResolvedValues});continue}const D=YTr(y.prevProp,b);let T=D||v===l&&y.isActive&&!A&&w||m>p&&w,M=!1;const P=Array.isArray(b)?b:[b];let F=P.reduce(r(v),{});E===!1&&(F={});const{prevResolvedValues:N={}}=y,j={...N,...F},W=Q=>{T=!0,h.has(Q)&&(M=!0,h.delete(Q)),y.needsAnimating[Q]=!0;const H=e.getValue(Q);H&&(H.liveStyle=!1)};for(const Q in j){const H=F[Q],q=N[Q];if(f.hasOwnProperty(Q))continue;let le=!1;Lze(H)&&Lze(q)?le=!cLn(H,q):le=H!==q,le?H!=null?W(Q):h.add(Q):H!==void 0&&h.has(Q)?W(Q):y.protectedKeys[Q]=!0}y.prevProp=b,y.prevResolvedValues=F,y.isActive&&(f={...f,...F}),i&&e.blockInitialAnimation&&(T=!1);const J=A&&D;T&&(!J||M)&&d.push(...P.map(Q=>{const H={type:v};if(typeof Q=="string"&&i&&!J&&e.manuallyAnimateOnMount&&e.parent){const{parent:q}=e,le=F8(q,Q);if(q.enteringChildren&&le){const{delayChildren:Y}=le.transition||{};H.delay=LIn(q.enteringChildren,e,Y)}}return{animation:Q,options:H}}))}if(h.size){const m={};if(typeof c.initial!="boolean"){const v=F8(e,Array.isArray(c.initial)?c.initial[0]:c.initial);v&&v.transition&&(m.transition=v.transition)}h.forEach(v=>{const y=e.getBaseTarget(v),b=e.getValue(v);b&&(b.liveStyle=!0),m[v]=y??null}),d.push({animation:m})}let g=!!d.length;return i&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),i=!1,g?t(d):Promise.resolve()}function a(l,c){if(n[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,c)),n[l].isActive=c;const u=s(l);for(const d in n)n[d].protectedKeys={};return u}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=f6t()}}}function YTr(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!cLn(t,e):!1}function HM(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function f6t(){return{animate:HM(!0),whileInView:HM(),whileHover:HM(),whileTap:HM(),whileDrag:HM(),whileFocus:HM(),exit:HM()}}function p6t(e,t){e.min=t.min,e.max=t.max}function h1(e,t){p6t(e.x,t.x),p6t(e.y,t.y)}function g6t(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var uLn=1e-4,QTr=1-uLn,ZTr=1+uLn,dLn=.01,XTr=0-dLn,JTr=0+dLn;function xv(e){return e.max-e.min}function ekr(e,t,n){return Math.abs(e-t)<=n}function m6t(e,t,n,i=.5){e.origin=i,e.originPoint=qu(t.min,t.max,e.origin),e.scale=xv(n)/xv(t),e.translate=qu(n.min,n.max,e.origin)-e.originPoint,(e.scale>=QTr&&e.scale<=ZTr||isNaN(e.scale))&&(e.scale=1),(e.translate>=XTr&&e.translate<=JTr||isNaN(e.translate))&&(e.translate=0)}function dq(e,t,n,i){m6t(e.x,t.x,n.x,i?i.originX:void 0),m6t(e.y,t.y,n.y,i?i.originY:void 0)}function v6t(e,t,n){e.min=n.min+t.min,e.max=e.min+xv(t)}function tkr(e,t,n){v6t(e.x,t.x,n.x),v6t(e.y,t.y,n.y)}function y6t(e,t,n){e.min=t.min-n.min,e.max=e.min+xv(t)}function Jfe(e,t,n){y6t(e.x,t.x,n.x),y6t(e.y,t.y,n.y)}function b6t(e,t,n,i,r){return e-=t,e=Xfe(e,1/n,i),r!==void 0&&(e=Xfe(e,1/r,i)),e}function nkr(e,t=0,n=1,i=.5,r,o=e,s=e){if(Hx.test(t)&&(t=parseFloat(t),t=qu(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=qu(o.min,o.max,i);e===o&&(a-=t),e.min=b6t(e.min,t,n,a,r),e.max=b6t(e.max,t,n,a,r)}function _6t(e,t,[n,i,r],o,s){nkr(e,t[n],t[i],t[r],t.scale,o,s)}var ikr=["x","scaleX","originX"],rkr=["y","scaleY","originY"];function w6t(e,t,n,i){_6t(e.x,t,ikr,n?n.x:void 0,i?i.x:void 0),_6t(e.y,t,rkr,n?n.y:void 0,i?i.y:void 0)}function C6t(e){return e.translate===0&&e.scale===1}function hLn(e){return C6t(e.x)&&C6t(e.y)}function S6t(e,t){return e.min===t.min&&e.max===t.max}function okr(e,t){return S6t(e.x,t.x)&&S6t(e.y,t.y)}function x6t(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function fLn(e,t){return x6t(e.x,t.x)&&x6t(e.y,t.y)}function E6t(e){return xv(e.x)/xv(e.y)}function A6t(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function QS(e){return[e("x"),e("y")]}function skr(e,t,n){let i="";const r=e.x.translate/t.x,o=e.y.translate/t.y,s=n?.z||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:h,skewX:f,skewY:p}=n;c&&(i=`perspective(${c}px) ${i}`),u&&(i+=`rotate(${u}deg) `),d&&(i+=`rotateX(${d}deg) `),h&&(i+=`rotateY(${h}deg) `),f&&(i+=`skewX(${f}deg) `),p&&(i+=`skewY(${p}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}var pLn=["TopLeft","TopRight","BottomLeft","BottomRight"],akr=pLn.length,D6t=e=>typeof e=="string"?parseFloat(e):e,T6t=e=>typeof e=="number"||to.test(e);function lkr(e,t,n,i,r,o){r?(e.opacity=qu(0,n.opacity??1,ckr(i)),e.opacityExit=qu(t.opacity??1,0,ukr(i))):o&&(e.opacity=qu(t.opacity??1,n.opacity??1,i));for(let s=0;s<akr;s++){const a=`border${pLn[s]}Radius`;let l=k6t(t,a),c=k6t(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||T6t(l)===T6t(c)?(e[a]=Math.max(qu(D6t(l),D6t(c),i),0),(Hx.test(c)||Hx.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=qu(t.rotate||0,n.rotate||0,i))}function k6t(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var ckr=gLn(0,.5,sIn),ukr=gLn(.5,.95,Q_);function gLn(e,t,n){return i=>i<e?0:i>t?1:n(TK(e,t,i))}function dkr(e,t,n){const i=lg(e)?e:z2(e);return i.start(MJe("",i,t,n)),i.animation}function NK(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}var hkr=(e,t)=>e.depth-t.depth,fkr=class{constructor(){this.children=[],this.isDirty=!1}add(e){yJe(this.children,e),this.isDirty=!0}remove(e){Gfe(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(hkr),this.isDirty=!1,this.children.forEach(e)}};function pkr(e,t){const n=Sv.now(),i=({timestamp:r})=>{const o=r-n;o>=t&&(lT(i),e(o-t))};return ru.setup(i,!0),()=>lT(i)}function $ce(e){return lg(e)?e.get():e}var gkr=class{constructor(){this.members=[]}add(e){yJe(this.members,e);for(let t=this.members.length-1;t>=0;t--){const n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;const i=n.instance;i&&i.isConnected===!1&&n.isPresent!==!1&&!n.snapshot&&Gfe(this.members,n)}e.scheduleRender()}remove(e){if(Gfe(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(e){const t=this.members.findIndex(i=>e===i);if(t===0)return!1;let n;for(let i=t;i>=0;i--){const r=this.members[i],o=r.instance;if(r.isPresent!==!1&&(!o||o.isConnected!==!1)){n=r;break}}return n?(this.promote(n),!0):!1}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender();const i=n.options.layoutDependency,r=e.options.layoutDependency;if(!(i!==void 0&&r!==void 0&&i===r)){const a=n.instance;a&&a.isConnected===!1&&!n.snapshot||(e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0))}const{crossfade:s}=e.options;s===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}},qce={hasAnimatedSinceResize:!0,hasEverUpdated:!1},rRe=["","X","Y","Z"],mkr=1e3,vkr=0;function oRe(e,t,n,i){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function mLn(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=RIn(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ru,!(r||o))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&mLn(i)}function vLn({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(s={},a=t?.()){this.id=vkr++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(_kr),this.nodes.forEach(xkr),this.nodes.forEach(Ekr),this.nodes.forEach(wkr)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new fkr)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new wJe),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=zJe(s)&&!yTr(s),this.instance=s;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let u,d=0;const h=()=>this.root.updateBlockedByResize=!1;ru.read(()=>{d=window.innerWidth}),e(s,()=>{const f=window.innerWidth;f!==d&&(d=f,this.root.updateBlockedByResize=!0,u&&u(),u=pkr(h,250),qce.hasAnimatedSinceResize&&(qce.hasAnimatedSinceResize=!1,this.nodes.forEach(N6t)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||Ikr,{onLayoutAnimationStart:g,onLayoutAnimationComplete:m}=c.getProps(),v=!this.targetLayout||!fLn(this.targetLayout,f),y=!d&&h;if(this.options.layoutRoot||this.resumeFrom||y||d&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...PJe(p,"layout"),onPlay:g,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(u,y)}else d||N6t(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),lT(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Akr),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&mLn(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(I6t);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(L6t);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Skr),this.nodes.forEach(ykr),this.nodes.forEach(bkr)):this.nodes.forEach(L6t),this.clearAllSnapshots();const a=Sv.now();Zp.delta=mE(0,1e3/60,a-Zp.timestamp),Zp.timestamp=a,Zp.isProcessing=!0,QOe.update.process(Zp),QOe.preRender.process(Zp),QOe.render.process(Zp),Zp.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,BJe.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ckr),this.sharedNodes.forEach(Dkr)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ru.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ru.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!xv(this.snapshot.measuredBox.x)&&!xv(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=If(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!hLn(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&this.instance&&(a||aO(this.latestValues)||u)&&(r(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),Lkr(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return If();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Nkr))){const{scroll:c}=this.root;c&&(P6(a.x,c.offset.x),P6(a.y,c.offset.y))}return a}removeElementScroll(s){const a=If();if(h1(a,s),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:d}=c;c!==this.root&&u&&d.layoutScroll&&(u.wasRoot&&h1(a,s),P6(a.x,u.offset.x),P6(a.y,u.offset.y))}return a}applyTransform(s,a=!1){const l=If();h1(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&M6(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),aO(u.latestValues)&&M6(l,u.latestValues)}return aO(this.latestValues)&&M6(l,this.latestValues),l}removeTransform(s){const a=If();h1(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!aO(c.latestValues))continue;Rze(c.latestValues)&&c.updateSnapshot();const u=If(),d=c.measurePageBox();h1(u,d),w6t(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return aO(this.latestValues)&&w6t(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Zp.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=Zp.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=If(),this.targetWithTransforms=If()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),tkr(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):h1(this.target,this.layout.layoutBox),eLn(this.target,this.targetDelta)):h1(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Rze(this.parent.latestValues)||JIn(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,a,l){this.relativeParent=s,this.linkedParentVersion=s.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=If(),this.relativeTargetOrigin=If(),Jfe(this.relativeTargetOrigin,a,l),h1(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Zp.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;h1(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;ITr(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=If());const{target:f}=s;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(g6t(this.prevProjectionDelta.x,this.projectionDelta.x),g6t(this.prevProjectionDelta.y,this.projectionDelta.y)),dq(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!A6t(this.projectionDelta.x,this.prevProjectionDelta.x)||!A6t(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=N6(),this.projectionDelta=N6(),this.projectionDeltaWithTransform=N6()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=N6();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=If(),f=l?l.source:void 0,p=this.layout?this.layout.source:void 0,g=f!==p,m=this.getStack(),v=!m||m.members.length<=1,y=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some(kkr));this.animationProgress=0;let b;this.mixTargetDelta=w=>{const E=w/1e3;P6t(d.x,s.x,E),P6t(d.y,s.y,E),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jfe(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Tkr(this.relativeTarget,this.relativeTargetOrigin,h,E),b&&okr(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=If()),h1(b,this.relativeTarget)),g&&(this.animationValues=u,lkr(u,c,this.latestValues,E,y,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(lT(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ru.update(()=>{qce.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=z2(0)),this.currentAnimation=dkr(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(mkr),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&yLn(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||If();const d=xv(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const h=xv(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}h1(a,l),M6(a,u),dq(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new gkr),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&oRe("z",s,c,this.animationValues);for(let u=0;u<rRe.length;u++)oRe(`rotate${rRe[u]}`,s,c,this.animationValues),oRe(`skew${rRe[u]}`,s,c,this.animationValues);s.render();for(const u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=$ce(a?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=$ce(a?.pointerEvents)||""),this.hasProjected&&!aO(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=skr(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),s.transform=d;const{x:h,y:f}=this.projectionDelta;s.transformOrigin=`${h.origin*100}% ${f.origin*100}% 0`,c.animationValues?s.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:s.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const p in Bze){if(u[p]===void 0)continue;const{correct:g,applyTo:m,isCSSVariable:v}=Bze[p],y=d==="none"?u[p]:g(u[p],c);if(m){const b=m.length;for(let w=0;w<b;w++)s[m[w]]=y}else v?this.options.visualElement.renderState.vars[p]=y:s[p]=y}this.options.layoutId&&(s.pointerEvents=c===this?$ce(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(I6t),this.root.sharedNodes.clear()}}}function ykr(e){e.updateLayout()}function bkr(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:r}=e.options,o=t.source!==e.layout.source;r==="size"?QS(u=>{const d=o?t.measuredBox[u]:t.layoutBox[u],h=xv(d);d.min=n[u].min,d.max=d.min+h}):yLn(r,t.layoutBox,n)&&QS(u=>{const d=o?t.measuredBox[u]:t.layoutBox[u],h=xv(n[u]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+h)});const s=N6();dq(s,n,t.layoutBox);const a=N6();o?dq(a,e.applyTransform(i,!0),t.measuredBox):dq(a,n,t.layoutBox);const l=!hLn(s);let c=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:h}=u;if(d&&h){const f=If();Jfe(f,t.layoutBox,d.layoutBox);const p=If();Jfe(p,n,h.layoutBox),fLn(f,p)||(c=!0),u.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=f,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function _kr(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function wkr(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ckr(e){e.clearSnapshot()}function I6t(e){e.clearMeasurements()}function L6t(e){e.isLayoutDirty=!1}function Skr(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function N6t(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function xkr(e){e.resolveTargetDelta()}function Ekr(e){e.calcProjection()}function Akr(e){e.resetSkewAndRotation()}function Dkr(e){e.removeLeadSnapshot()}function P6t(e,t,n){e.translate=qu(t.translate,0,n),e.scale=qu(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function M6t(e,t,n,i){e.min=qu(t.min,n.min,i),e.max=qu(t.max,n.max,i)}function Tkr(e,t,n,i){M6t(e.x,t.x,n.x,i),M6t(e.y,t.y,n.y,i)}function kkr(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Ikr={duration:.45,ease:[.4,0,.1,1]},O6t=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),R6t=O6t("applewebkit/")&&!O6t("chrome/")?Math.round:Q_;function F6t(e){e.min=R6t(e.min),e.max=R6t(e.max)}function Lkr(e){F6t(e.x),F6t(e.y)}function yLn(e,t,n){return e==="position"||e==="preserve-aspect"&&!ekr(E6t(t),E6t(n),.2)}function Nkr(e){return e!==e.root&&e.scroll?.wasRoot}var Pkr=vLn({attachResizeListener:(e,t)=>NK(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sRe={current:void 0},bLn=vLn({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sRe.current){const e=new Pkr({});e.mount(window),e.setOptions({layoutScroll:!0}),sRe.current=e}return sRe.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),$Je=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Mkr(e=!0){const t=I.useContext(vJe);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:r}=t,o=I.useId();I.useEffect(()=>{if(e)return r(o)},[e]);const s=I.useCallback(()=>e&&i&&i(o),[o,i,e]);return!n&&i?[!1,s]:[!0]}var _Ln=I.createContext({strict:!1}),B6t={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},j6t=!1;function Okr(){if(j6t)return;const e={};for(const t in B6t)e[t]={isEnabled:n=>B6t[t].some(i=>!!n[i])};QIn(e),j6t=!0}function wLn(){return Okr(),ATr()}function Rkr(e){const t=wLn();for(const n in e)t[n]={...t[n],...e[n]};QIn(t)}var Fkr=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function epe(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Fkr.has(e)}var CLn=e=>!epe(e);function Bkr(e){typeof e=="function"&&(CLn=t=>t.startsWith("on")?!epe(t):e(t))}try{Bkr((uVe(),Cr(H8t)).default)}catch{}function jkr(e,t,n){const i={};for(const r in e)r==="values"&&typeof e.values=="object"||(CLn(r)||n===!0&&epe(r)||!t&&!epe(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}var Kye=I.createContext({});function zkr(e,t){if(Gye(e)){const{initial:n,animate:i}=e;return{initial:n===!1||LK(n)?n:void 0,animate:LK(i)?i:void 0}}return e.inherit!==!1?t:{}}function Vkr(e){const{initial:t,animate:n}=zkr(e,I.useContext(Kye));return I.useMemo(()=>({initial:t,animate:n}),[z6t(t),z6t(n)])}function z6t(e){return Array.isArray(e)?e.join(" "):e}var qJe=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function SLn(e,t,n){for(const i in t)!lg(t[i])&&!iLn(i,n)&&(e[i]=t[i])}function Hkr({transformTemplate:e},t){return I.useMemo(()=>{const n=qJe();return WJe(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Wkr(e,t){const n=e.style||{},i={};return SLn(i,n,e),Object.assign(i,Hkr(e,t)),i}function Ukr(e,t){const n={},i=Wkr(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}var xLn=()=>({...qJe(),attrs:{}});function $kr(e,t,n,i){const r=I.useMemo(()=>{const o=xLn();return rLn(o,t,sLn(i),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};SLn(o,e.style,e),r.style={...o,...r.style}}return r}var qkr=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function GJe(e){return typeof e!="string"||e.includes("-")?!1:!!(qkr.indexOf(e)>-1||/[A-Z]/u.test(e))}function Gkr(e,t,n,{latestValues:i},r,o=!1,s){const l=(s??GJe(e)?$kr:Ukr)(t,i,r,e),c=jkr(t,typeof e=="string",o),u=e!==I.Fragment?{...c,...l,ref:n}:{},{children:d}=t,h=I.useMemo(()=>lg(d)?d.get():d,[d]);return I.createElement(e,{...u,children:h})}function Kkr({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,r){return{latestValues:Ykr(n,i,r,e),renderState:t()}}function Ykr(e,t,n,i){const r={},o=i(e,{});for(const h in o)r[h]=$ce(o[h]);let{initial:s,animate:a}=e;const l=Gye(e),c=KIn(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const d=u?a:s;if(d&&typeof d!="boolean"&&!qye(d)){const h=Array.isArray(d)?d:[d];for(let f=0;f<h.length;f++){const p=OJe(e,h[f]);if(p){const{transitionEnd:g,transition:m,...v}=p;for(const y in v){let b=v[y];if(Array.isArray(b)){const w=u?b.length-1:0;b=b[w]}b!==null&&(r[y]=b)}for(const y in g)r[y]=g[y]}}}return r}var ELn=e=>(t,n)=>{const i=I.useContext(Kye),r=I.useContext(vJe),o=()=>Kkr(e,t,i,r);return n?o():EZ(o)},Qkr=ELn({scrapeMotionValuesFromProps:UJe,createRenderState:qJe}),Zkr=ELn({scrapeMotionValuesFromProps:aLn,createRenderState:xLn}),Xkr=Symbol.for("motionComponentSymbol");function Jkr(e,t,n){const i=I.useRef(n);I.useInsertionEffect(()=>{i.current=n});const r=I.useRef(null);return I.useCallback(o=>{o&&e.onMount?.(o),t&&(o?t.mount(o):t.unmount());const s=i.current;if(typeof s=="function")if(o){const a=s(o);typeof a=="function"&&(r.current=a)}else r.current?(r.current(),r.current=null):s(o);else s&&(s.current=o)},[t])}var ALn=I.createContext({});function ZB(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function eIr(e,t,n,i,r,o){const{visualElement:s}=I.useContext(Kye),a=I.useContext(_Ln),l=I.useContext(vJe),c=I.useContext($Je),u=c.reducedMotion,d=c.skipAnimations,h=I.useRef(null),f=I.useRef(!1);i=i||a.renderer,!h.current&&i&&(h.current=i(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:o}),f.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const p=h.current,g=I.useContext(ALn);p&&!p.projection&&r&&(p.type==="html"||p.type==="svg")&&tIr(h.current,n,r,g);const m=I.useRef(!1);I.useInsertionEffect(()=>{p&&m.current&&p.update(n,l)});const v=n[OIn],y=I.useRef(!!v&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return Ykn(()=>{f.current=!0,p&&(m.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),y.current&&p.animationState&&p.animationState.animateChanges())}),I.useEffect(()=>{p&&(!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),y.current=!1),p.enteringChildren=void 0)}),p}function tIr(e,t,n,i){const{layoutId:r,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:DLn(e.parent)),e.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||a&&ZB(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,crossfade:u,layoutScroll:l,layoutRoot:c})}function DLn(e){if(e)return e.options.allowProjection!==!1?e.projection:DLn(e.parent)}function aRe(e,{forwardMotionProps:t=!1,type:n}={},i,r){i&&Rkr(i);const o=n?n==="svg":GJe(e),s=o?Zkr:Qkr;function a(c,u){let d;const h={...I.useContext($Je),...c,layoutId:nIr(c)},{isStatic:f}=h,p=Vkr(c),g=s(c,f);if(!f&&Kkn){iIr();const m=rIr(h);d=m.MeasureLayout,p.visualElement=eIr(e,g,h,r,m.ProjectionNode,o)}return S.jsxs(Kye.Provider,{value:p,children:[d&&p.visualElement?S.jsx(d,{visualElement:p.visualElement,...h}):null,Gkr(e,c,Jkr(g,p.visualElement,u),g,f,t,o)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=I.forwardRef(a);return l[Xkr]=e,l}function nIr({layoutId:e}){const t=I.useContext(Gkn).id;return t&&e!==void 0?t+"-"+e:e}function iIr(e,t){I.useContext(_Ln).strict}function rIr(e){const t=wLn(),{drag:n,layout:i}=t;if(!n&&!i)return{};const r={...n,...i};return{MeasureLayout:n?.isEnabled(e)||i?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function oIr(e,t){if(typeof Proxy>"u")return aRe;const n=new Map,i=(o,s)=>aRe(o,s,e,t),r=(o,s)=>i(o,s);return new Proxy(r,{get:(o,s)=>s==="create"?i:(n.has(s)||n.set(s,aRe(s,void 0,e,t)),n.get(s))})}var sIr=(e,t)=>t.isSVG??GJe(e)?new WTr(t):new FTr(t,{allowProjection:e!==I.Fragment}),aIr=class extends sP{constructor(e){super(e),e.animationState||(e.animationState=KTr(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();qye(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},lIr=0,cIr=class extends sP{constructor(){super(...arguments),this.id=lIr++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>{t(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}},uIr={animation:{Feature:aIr},exit:{Feature:cIr}};function kZ(e){return{point:{x:e.pageX,y:e.pageY}}}var dIr=e=>t=>jJe(t)&&e(t,kZ(t));function hq(e,t,n,i){return NK(e,t,dIr(n),i)}var TLn=({current:e})=>e?e.ownerDocument.defaultView:null,V6t=(e,t)=>Math.abs(e-t);function hIr(e,t){const n=V6t(e.x,t.x),i=V6t(e.y,t.y);return Math.sqrt(n**2+i**2)}var H6t=new Set(["auto","scroll"]),kLn=class{constructor(e,t,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=h=>{this.handleScroll(h.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=cRe(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=hIr(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!f&&!p)return;const{point:g}=h,{timestamp:m}=Zp;this.history.push({...g,timestamp:m});const{onStart:v,onMove:y}=this.handlers;f||(v&&v(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=lRe(f,this.transformPagePoint),ru.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:m}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=cRe(h.type==="pointercancel"?this.lastMoveEventInfo:lRe(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(h,v),g&&g(h,v)},!jJe(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=i||window;const a=kZ(e),l=lRe(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=Zp;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=t;d&&d(e,cRe(l,this.history)),this.removeListeners=AZ(hq(this.contextWindow,"pointermove",this.handlePointerMove),hq(this.contextWindow,"pointerup",this.handlePointerUp),hq(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(e){let t=e.parentElement;for(;t;){const n=getComputedStyle(t);(H6t.has(n.overflowX)||H6t.has(n.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const t=this.scrollPositions.get(e);if(!t)return;const n=e===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:i.x-t.x,y:i.y-t.y};r.x===0&&r.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,i),ru.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),lT(this.updatePoint)}};function lRe(e,t){return t?{point:t(e.point)}:e}function W6t(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cRe({point:e},t){return{point:e,delta:W6t(e,ILn(t)),offset:W6t(e,fIr(t)),velocity:pIr(t,.1)}}function fIr(e){return e[0]}function ILn(e){return e[e.length-1]}function pIr(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const r=ILn(e);for(;n>=0&&(i=e[n],!(r.timestamp-i.timestamp>pC(t)));)n--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&r.timestamp-i.timestamp>pC(t)*2&&(i=e[1]);const o=j_(r.timestamp-i.timestamp);if(o===0)return{x:0,y:0};const s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function gIr(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?qu(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?qu(n,e,i.max):Math.min(e,n)),e}function U6t(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function mIr(e,{top:t,left:n,bottom:i,right:r}){return{x:U6t(e.x,n,r),y:U6t(e.y,t,i)}}function $6t(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function vIr(e,t){return{x:$6t(e.x,t.x),y:$6t(e.y,t.y)}}function yIr(e,t){let n=.5;const i=xv(e),r=xv(t);return r>i?n=TK(t.min,t.max-i,e.min):i>r&&(n=TK(e.min,e.max-r,t.min)),mE(0,1,n)}function bIr(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var jze=.35;function _Ir(e=jze){return e===!1?e=0:e===!0&&(e=jze),{x:q6t(e,"left","right"),y:q6t(e,"top","bottom")}}function q6t(e,t,n){return{min:G6t(e,t),max:G6t(e,n)}}function G6t(e,t){return typeof e=="number"?e:e[t]||0}var wIr=new WeakMap,CIr=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=If(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=u=>{t&&this.snapToCursor(kZ(u).point),this.stopAnimation()},o=(u,d)=>{const{drag:h,dragPropagation:f,onDragStart:p}=this.getProps();if(h&&!f&&(this.openDragLock&&this.openDragLock(),this.openDragLock=tTr(h),!this.openDragLock))return;this.latestPointerEvent=u,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),QS(m=>{let v=this.getAxisMotionValue(m).get()||0;if(Hx.test(v)){const{projection:y}=this.visualElement;if(y&&y.layout){const b=y.layout.layoutBox[m];b&&(v=xv(b)*(parseFloat(v)/100))}}this.originPoint[m]=v}),p&&ru.update(()=>p(u,d),!1,!0),Nze(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(u,d)=>{this.latestPointerEvent=u,this.latestPanInfo=d;const{dragPropagation:h,dragDirectionLock:f,onDirectionLock:p,onDrag:g}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:m}=d;if(f&&this.currentDirection===null){this.currentDirection=xIr(m),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",d.point,m),this.updateAxis("y",d.point,m),this.visualElement.render(),g&&ru.update(()=>g(u,d),!1,!0)},a=(u,d)=>{this.latestPointerEvent=u,this.latestPanInfo=d,this.stop(u,d),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{const{dragSnapToOrigin:u}=this.getProps();(u||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new kLn(e,{onSessionStart:r,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:n,contextWindow:TLn(this.visualElement),element:this.visualElement.current})}stop(e,t){const n=e||this.latestPointerEvent,i=t||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!n)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s&&ru.postRender(()=>s(n,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){const{drag:i}=this.getProps();if(!n||!doe(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=gIr(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&ZB(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=mIr(n.layoutBox,e):this.constraints=!1,this.elastic=_Ir(t),i!==this.constraints&&!ZB(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&QS(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=bIr(n.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!ZB(e))return!1;const n=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=LTr(n,i.root,this.visualElement.getTransformPagePoint());let o=vIr(i.layout.layoutBox,r);if(t){const s=t(TTr(o));this.hasMutatedConstraints=!!s,s&&(o=XIn(s))}return o}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=QS(c=>{if(!doe(c,t,this.currentDirection))return;let u=a&&a[c]||{};o&&(u={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,f={type:"inertia",velocity:n?e[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...r,...u};return this.startAxisValueAnimation(c,f)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return Nze(this.visualElement,e),n.start(MJe(e,n,0,t,this.visualElement,!1))}stopAnimation(){QS(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),i=n[t];return i||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){QS(t=>{const{drag:n}=this.getProps();if(!doe(t,n,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(t);if(i&&i.layout){const{min:o,max:s}=i.layout.layoutBox[t],a=r.get()||0;r.set(e[t]-qu(o,s,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!ZB(t)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};QS(o=>{const s=this.getAxisMotionValue(o);if(s&&this.constraints!==!1){const a=s.get();i[o]=yIr({min:a,max:a},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),QS(o=>{if(!doe(o,e,null))return;const s=this.getAxisMotionValue(o),{min:a,max:l}=this.constraints[o];s.set(qu(a,l,i[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;wIr.set(this.visualElement,this);const e=this.visualElement.current,t=hq(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps(),d=l.target,h=d!==e&&aTr(d);c&&u&&!h&&this.start(l)});let n;const i=()=>{const{dragConstraints:l}=this.getProps();ZB(l)&&l.current&&(this.constraints=this.resolveRefConstraints(),n||(n=SIr(e,l.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),ru.read(i);const s=NK(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(QS(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())}));return()=>{s(),t(),o(),a&&a(),n&&n()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=jze,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:s}}};function K6t(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function SIr(e,t,n){const i=i6t(e,K6t(n)),r=i6t(t,K6t(n));return()=>{i(),r()}}function doe(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function xIr(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}var EIr=class extends sP{constructor(e){super(e),this.removeGroupControls=Q_,this.removeListeners=Q_,this.controls=new CIr(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Q_}update(){const{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},uRe=e=>(t,n)=>{e&&ru.update(()=>e(t,n),!1,!0)},AIr=class extends sP{constructor(){super(...arguments),this.removePointerDownListener=Q_}onPointerDown(e){this.session=new kLn(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:TLn(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:uRe(e),onStart:uRe(t),onMove:uRe(n),onEnd:(r,o)=>{delete this.session,i&&ru.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=hq(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},dRe=!1,DIr=class extends I.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:i}=this.props,{projection:r}=e;r&&(t.group&&t.group.add(r),n&&n.register&&i&&n.register(r),dRe&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),qce.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:i,isPresent:r}=this.props,{projection:o}=n;return o&&(o.isPresent=r,e.layoutDependency!==t&&o.setOptions({...o.options,layoutDependency:t}),dRe=!0,i||e.layoutDependency!==t||t===void 0||e.isPresent!==r?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||ru.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),BJe.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:i}=e;dRe=!0,i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}};function LLn(e){const[t,n]=Mkr(),i=I.useContext(Gkn);return S.jsx(DIr,{...e,layoutGroup:i,switchLayoutGroup:I.useContext(ALn),isPresent:t,safeToRemove:n})}var TIr={pan:{Feature:AIr},drag:{Feature:EIr,ProjectionNode:bLn,MeasureLayout:LLn}};function Y6t(e,t,n){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,o=i[r];o&&ru.postRender(()=>o(t,kZ(t)))}var kIr=class extends sP{mount(){const{current:e}=this.node;e&&(this.unmount=iTr(e,(t,n)=>(Y6t(this.node,n,"Start"),i=>Y6t(this.node,i,"End"))))}unmount(){}},IIr=class extends sP{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=AZ(NK(this.node.current,"focus",()=>this.onFocus()),NK(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Q6t(e,t,n){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),o=i[r];o&&ru.postRender(()=>o(t,kZ(t)))}var LIr=class extends sP{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=cTr(e,(i,r)=>(Q6t(this.node,r,"Start"),(o,{success:s})=>Q6t(this.node,o,s?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},zze=new WeakMap,hRe=new WeakMap,NIr=e=>{const t=zze.get(e.target);t&&t(e)},PIr=e=>{e.forEach(NIr)};function MIr({root:e,...t}){const n=e||document;hRe.has(n)||hRe.set(n,{});const i=hRe.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(PIr,{root:e,...t})),i[r]}function OIr(e,t,n){const i=MIr(t);return zze.set(e,n),i.observe(e),()=>{zze.delete(e),i.unobserve(e)}}var RIr={some:0,all:1},FIr=class extends sP{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:i="some",once:r}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:RIr[i]},s=a=>{const{isIntersecting:l}=a;if(this.isInView===l||(this.isInView=l,r&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:u}=this.node.getProps(),d=l?c:u;d&&d(a)};return OIr(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(BIr(e,t))&&this.startObserver()}unmount(){}};function BIr({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var jIr={inView:{Feature:FIr},tap:{Feature:LIr},focus:{Feature:IIr},hover:{Feature:kIr}},zIr={layout:{ProjectionNode:bLn,MeasureLayout:LLn}},VIr={...uIr,...jIr,...TIr,...zIr},NLn=oIr(VIr,sIr);function PLn(e){const t=EZ(()=>z2(e)),{isStatic:n}=I.useContext($Je);if(n){const[,i]=I.useState(e);I.useEffect(()=>t.on("change",i),[])}return t}function MLn(e,t){const n=PLn(t()),i=()=>n.set(t());return i(),Ykn(()=>{const r=()=>ru.preRender(i,!1,!0),o=e.map(s=>s.on("change",r));return()=>{o.forEach(s=>s()),lT(i)}}),n}function HIr(e){uq.current=[],e();const t=MLn(uq.current,e);return uq.current=void 0,t}function WIr(e,t,n,i){if(typeof e=="function")return HIr(e);const o=typeof t=="function"?t:bTr(t,n,i),s=Array.isArray(e)?Z6t(e,o):Z6t([e],([l])=>o(l)),a=Array.isArray(e)?void 0:e.accelerate;return a&&!a.isTransformed&&typeof t!="function"&&Array.isArray(n)&&i?.clamp!==!1&&(s.accelerate={...a,times:t,keyframes:n,isTransformed:!0}),s}function Z6t(e,t){const n=EZ(()=>[]);return MLn(e,()=>{n.length=0;const i=e.length;for(let r=0;r<i;r++)n[r]=e[r].get();return t(n)})}var KJe={};oc(KJe,{Group:()=>qIr,Item:()=>tLr});var OLn=I.createContext(null);function UIr(e,t,n,i){if(!i)return e;const r=e.findIndex(u=>u.value===t);if(r===-1)return e;const o=i>0?1:-1,s=e[r+o];if(!s)return e;const a=e[r],l=s.layout,c=qu(l.min,l.max,.5);return o===1&&a.layout.max+n>c||o===-1&&a.layout.min+n<c?XEr(e,r,r+o):e}function $Ir({children:e,as:t="ul",axis:n="y",onReorder:i,values:r,...o},s){const a=EZ(()=>NLn[t]),l=[],c=I.useRef(!1),u=I.useRef(null),d={axis:n,groupRef:u,registerItem:(p,g)=>{const m=l.findIndex(v=>p===v.value);m!==-1?l[m].layout=g[n]:l.push({value:p,layout:g[n]}),l.sort(KIr)},updateOrder:(p,g,m)=>{if(c.current)return;const v=UIr(l,p,g,m);l!==v&&(c.current=!0,i(v.map(GIr).filter(y=>r.indexOf(y)!==-1)))}};I.useEffect(()=>{c.current=!1});const h=p=>{u.current=p,typeof s=="function"?s(p):s&&(s.current=p)},f={overflowAnchor:"none",...o.style};return S.jsx(a,{...o,style:f,ref:h,ignoreStrict:!0,children:S.jsx(OLn.Provider,{value:d,children:e})})}var qIr=I.forwardRef($Ir);function GIr(e){return e.value}function KIr(e,t){return e.layout.min-t.layout.min}var hoe=50,X6t=25,YIr=new Set(["auto","scroll"]),fq=new WeakMap,pq=new WeakMap,_U=null;function QIr(){if(_U){const e=Vze(_U,"y");e&&(pq.delete(e),fq.delete(e));const t=Vze(_U,"x");t&&t!==e&&(pq.delete(t),fq.delete(t)),_U=null}}function ZIr(e,t){const n=getComputedStyle(e),i=t==="x"?n.overflowX:n.overflowY,r=e===document.body||e===document.documentElement;return YIr.has(i)||r}function Vze(e,t){let n=e?.parentElement;for(;n;){if(ZIr(n,t))return n;n=n.parentElement}return null}function XIr(e,t,n){const i=t.getBoundingClientRect(),r=n==="x"?Math.max(0,i.left):Math.max(0,i.top),o=n==="x"?Math.min(window.innerWidth,i.right):Math.min(window.innerHeight,i.bottom),s=e-r,a=o-e;if(s<hoe){const l=1-s/hoe;return{amount:-X6t*l*l,edge:"start"}}else if(a<hoe){const l=1-a/hoe;return{amount:X6t*l*l,edge:"end"}}return{amount:0,edge:null}}function JIr(e,t,n,i){if(!e)return;_U=e;const r=Vze(e,n);if(!r)return;const o=t-(n==="x"?window.scrollX:window.scrollY),{amount:s,edge:a}=XIr(o,r,n);if(a===null){pq.delete(r),fq.delete(r);return}const l=pq.get(r),c=r===document.body||r===document.documentElement;if(l!==a){if(!(a==="start"&&i<0||a==="end"&&i>0))return;pq.set(r,a);const d=n==="x"?r.scrollWidth-(c?window.innerWidth:r.clientWidth):r.scrollHeight-(c?window.innerHeight:r.clientHeight);fq.set(r,d)}if(s>0){const u=fq.get(r);if((n==="x"?c?window.scrollX:r.scrollLeft:c?window.scrollY:r.scrollTop)>=u)return}n==="x"?c?window.scrollBy({left:s}):r.scrollLeft+=s:c?window.scrollBy({top:s}):r.scrollTop+=s}function J6t(e,t=0){return lg(e)?e:PLn(t)}function eLr({children:e,style:t={},value:n,as:i="li",onDrag:r,onDragEnd:o,layout:s=!0,...a},l){const c=EZ(()=>NLn[i]),u=I.useContext(OLn),d={x:J6t(t.x),y:J6t(t.y)},h=WIr([d.x,d.y],([v,y])=>v||y?1:"unset"),{axis:f,registerItem:p,updateOrder:g,groupRef:m}=u;return S.jsx(c,{drag:f,...a,dragSnapToOrigin:!0,style:{...t,x:d.x,y:d.y,zIndex:h},layout:s,onDrag:(v,y)=>{const{velocity:b,point:w}=y,E=d[f].get();g(n,E,b[f]),JIr(m.current,w[f],f,b[f]),r&&r(v,y)},onDragEnd:(v,y)=>{QIr(),o&&o(v,y)},onLayoutMeasure:v=>{p(n,v)},ref:l,ignoreStrict:!0,children:e})}var tLr=I.forwardRef(eLr),RLn=I.forwardRef((e,t)=>{const n=(0,$ye.c)(16);let i,r,o,s,a;n[0]!==e?({isActive:o,value:a,children:i,className:r,...s}=e,n[0]=e,n[1]=i,n[2]=r,n[3]=o,n[4]=s,n[5]=a):(i=n[1],r=n[2],o=n[3],s=n[4],a=n[5]);const l=o&&"graphiql-tab-active";let c;n[6]!==r||n[7]!==l?(c=bc("graphiql-tab",l,r),n[6]=r,n[7]=l,n[8]=c):c=n[8];let u;return n[9]!==i||n[10]!==o||n[11]!==s||n[12]!==t||n[13]!==c||n[14]!==a?(u=S.jsx(KJe.Item,{...s,ref:t,value:a,"aria-selected":o,dragElastic:!1,role:"tab",className:c,children:i}),n[9]=i,n[10]=o,n[11]=s,n[12]=t,n[13]=c,n[14]=a,n[15]=u):u=n[15],u});RLn.displayName="Tab";var FLn=I.forwardRef((e,t)=>{const n=(0,$ye.c)(11);let i,r,o;n[0]!==e?({children:i,className:r,...o}=e,n[0]=e,n[1]=i,n[2]=r,n[3]=o):(i=n[1],r=n[2],o=n[3]);let s;n[4]!==r?(s=bc("graphiql-tab-button",r),n[4]=r,n[5]=s):s=n[5];let a;return n[6]!==i||n[7]!==o||n[8]!==t||n[9]!==s?(a=S.jsx(Ff,{...o,ref:t,type:"button",className:s,children:i}),n[6]=i,n[7]=o,n[8]=t,n[9]=s,n[10]=a):a=n[10],a});FLn.displayName="Tab.Button";var BLn=I.forwardRef((e,t)=>{const n=(0,$ye.c)(7);let i;n[0]!==e.className?(i=bc("graphiql-tab-close",e.className),n[0]=e.className,n[1]=i):i=n[1];let r;n[2]===Symbol.for("react.memo_cache_sentinel")?(r=S.jsx(MXe,{}),n[2]=r):r=n[2];let o;return n[3]!==e||n[4]!==t||n[5]!==i?(o=S.jsx(Ff,{"aria-label":"Close Tab",...e,ref:t,type:"button",className:i,children:r}),n[3]=e,n[4]=t,n[5]=i,n[6]=o):o=n[6],o});BLn.displayName="Tab.Close";var fRe=Object.assign(RLn,{Button:FLn,Close:BLn}),jLn=I.forwardRef((e,t)=>{const n=(0,$ye.c)(15);let i,r,o,s,a;n[0]!==e?({values:a,onReorder:o,children:i,className:r,...s}=e,n[0]=e,n[1]=i,n[2]=r,n[3]=o,n[4]=s,n[5]=a):(i=n[1],r=n[2],o=n[3],s=n[4],a=n[5]);let l;n[6]!==r?(l=bc("graphiql-tabs",r),n[6]=r,n[7]=l):l=n[7];let c;return n[8]!==i||n[9]!==o||n[10]!==s||n[11]!==t||n[12]!==l||n[13]!==a?(c=S.jsx(KJe.Group,{...s,ref:t,values:a,onReorder:o,axis:"x",role:"tablist",className:l,children:i}),n[8]=i,n[9]=o,n[10]=s,n[11]=t,n[12]=l,n[13]=a,n[14]=c):c=n[14],c});jLn.displayName="Tabs";var zLn=on(da()),nLr=on(da()),Hze=bye((e,t)=>({historyStorage:null,actions:{addToHistory(n){const{historyStorage:i}=t();i?.updateHistory(n),e({})},editLabel(n,i){const{historyStorage:r}=t();r?.editLabel(n,i),e({})},toggleFavorite(n){const{historyStorage:i}=t();i?.toggleFavorite(n),e({})},setActive:n=>n,deleteFromHistory(n,i){const{historyStorage:r}=t();r?.deleteHistory(n,i),e({})}}})),iLr=e=>{const t=(0,nLr.c)(11),{maxHistoryLength:n,children:i}=e,r=n===void 0?20:n;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=iS("isFetching","tabs","activeTabIndex","storage"),t[0]=o):o=t[0];const{isFetching:s,tabs:a,activeTabIndex:l,storage:c}=Ip(o),u=a[l];let d;t[1]!==r||t[2]!==c?(d=new tyr(c,r),t[1]=r,t[2]=c,t[3]=d):d=t[3];const h=d;let f,p;t[4]!==h?(f=()=>{Hze.setState({historyStorage:h})},p=[h],t[4]=h,t[5]=f,t[6]=p):(f=t[5],p=t[6]),I.useEffect(f,p);let g,m;return t[7]!==u||t[8]!==s?(g=()=>{if(!s)return;const{addToHistory:v}=Hze.getState().actions;v({query:u.query??void 0,variables:u.variables??void 0,headers:u.headers??void 0,operationName:u.operationName??void 0})},m=[s,u],t[7]=u,t[8]=s,t[9]=g,t[10]=m):(g=t[9],m=t[10]),I.useEffect(g,m),i},VLn=jXe(Hze),rLr=[],oLr=()=>VLn(sLr),HLn=()=>VLn(aLr);function sLr(e){var t;return((t=e.historyStorage)==null?void 0:t.queries)??rLr}function aLr(e){return e.actions}function lLr(e,t){for(const n of e)t(n,!0)}var cLr=()=>{const e=(0,zLn.c)(13),t=oLr(),{deleteFromHistory:n}=HLn();let i;i=t.slice().map(dLr).reverse();const r=i.filter(hLr);r.length&&(i=i.filter(fLr));const[o,s]=I.useState(null);let a,l;e[0]!==o?(a=()=>{o&&setTimeout(()=>{s(null)},2e3)},l=[o],e[0]=o,e[1]=a,e[2]=l):(a=e[1],l=e[2]),I.useEffect(a,l);const c=()=>{try{lLr(i,n),s("success")}catch{s("error")}},u=!!r.length,d=!!i.length,h="History",f="graphiql-history",p=(o||d)&&S.jsx(z1,{type:"button",state:o||void 0,disabled:!i.length,onClick:c,children:{success:"Cleared",error:"Failed to Clear"}[o]||"Clear"});let g;e[3]!==p?(g=S.jsxs("div",{className:"graphiql-history-header",children:["History",p]}),e[3]=p,e[4]=g):g=e[4];const m=u&&S.jsx("ul",{className:"graphiql-history-items",children:r.map(pLr)});let v;e[5]!==u||e[6]!==d?(v=u&&d&&S.jsx("div",{className:"graphiql-history-item-spacer"}),e[5]=u,e[6]=d,e[7]=v):v=e[7];const y=d&&S.jsx("ul",{className:"graphiql-history-items",children:i.map(gLr)});let b;return e[8]!==g||e[9]!==m||e[10]!==v||e[11]!==y?(b=S.jsxs("section",{"aria-label":h,className:f,children:[g,m,v,y]}),e[8]=g,e[9]=m,e[10]=v,e[11]=y,e[12]=b):b=e[12],b},WLn=e=>{const t=(0,zLn.c)(39),{editLabel:n,toggleFavorite:i,deleteFromHistory:r,setActive:o}=HLn();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=iS("headerEditor","queryEditor","variableEditor"),t[0]=s):s=t[0];const{headerEditor:a,queryEditor:l,variableEditor:c}=Ip(s),u=I.useRef(null),d=I.useRef(null),[h,f]=I.useState(!1);let p,g;t[1]!==h?(p=()=>{var H;h&&((H=u.current)==null||H.focus())},g=[h],t[1]=h,t[2]=p,t[3]=g):(p=t[2],g=t[3]),I.useEffect(p,g);let m;t[4]!==e.item.label||t[5]!==e.item.operationName||t[6]!==e.item.query?(m=e.item.label||e.item.operationName||uLr(e.item.query),t[4]=e.item.label,t[5]=e.item.operationName,t[6]=e.item.query,t[7]=m):m=t[7];const v=m;let y;t[8]!==n||t[9]!==e.item?(y=()=>{var H;f(!1);const{index:q,...le}=e.item;n({...le,label:(H=u.current)==null?void 0:H.value},q)},t[8]=n,t[9]=e.item,t[10]=y):y=t[10];const b=y;let w;t[11]===Symbol.for("react.memo_cache_sentinel")?(w=()=>{f(!1)},t[11]=w):w=t[11];const E=w;let A;t[12]===Symbol.for("react.memo_cache_sentinel")?(A=H=>{H.stopPropagation(),f(!0)},t[12]=A):A=t[12];const D=A;let T;t[13]!==a||t[14]!==e.item||t[15]!==l||t[16]!==o||t[17]!==c?(T=()=>{const{query:H,variables:q,headers:le}=e.item;l?.setValue(H??""),c?.setValue(q??""),a?.setValue(le??""),o(e.item)},t[13]=a,t[14]=e.item,t[15]=l,t[16]=o,t[17]=c,t[18]=T):T=t[18];const M=T;let P;t[19]!==r||t[20]!==e.item?(P=H=>{H.stopPropagation(),r(e.item)},t[19]=r,t[20]=e.item,t[21]=P):P=t[21];const F=P;let N;t[22]!==e.item||t[23]!==i?(N=H=>{H.stopPropagation(),i(e.item)},t[22]=e.item,t[23]=i,t[24]=N):N=t[24];const j=N,W=h&&"editable";let J;t[25]!==W?(J=bc("graphiql-history-item",W),t[25]=W,t[26]=J):J=t[26];let ee;t[27]!==v||t[28]!==n||t[29]!==F||t[30]!==M||t[31]!==b||t[32]!==j||t[33]!==h||t[34]!==e.item?(ee=h?S.jsxs(S.Fragment,{children:[S.jsx("input",{type:"text",defaultValue:e.item.label,ref:u,onKeyDown:H=>{H.key==="Esc"?f(!1):H.key==="Enter"&&(f(!1),n({...e.item,label:H.currentTarget.value}))},placeholder:"Type a label"}),S.jsx(Ff,{type:"button",ref:d,onClick:b,children:"Save"}),S.jsx(Ff,{type:"button",ref:d,onClick:E,children:S.jsx(MXe,{})})]}):S.jsxs(S.Fragment,{children:[S.jsx(k0,{label:"Set active",children:S.jsx(Ff,{type:"button",className:"graphiql-history-item-label",onClick:M,"aria-label":"Set active",children:v})}),S.jsx(k0,{label:"Edit label",children:S.jsx(Ff,{type:"button",className:"graphiql-history-item-action",onClick:D,"aria-label":"Edit label",children:S.jsx(v0r,{"aria-hidden":"true"})})}),S.jsx(k0,{label:e.item.favorite?"Remove favorite":"Add favorite",children:S.jsx(Ff,{type:"button",className:"graphiql-history-item-action",onClick:j,"aria-label":e.item.favorite?"Remove favorite":"Add favorite",children:e.item.favorite?S.jsx(x0r,{"aria-hidden":"true"}):S.jsx(E0r,{"aria-hidden":"true"})})}),S.jsx(k0,{label:"Delete from history",children:S.jsx(Ff,{type:"button",className:"graphiql-history-item-action",onClick:F,"aria-label":"Delete from history",children:S.jsx(D0r,{"aria-hidden":"true"})})})]}),t[27]=v,t[28]=n,t[29]=F,t[30]=M,t[31]=b,t[32]=j,t[33]=h,t[34]=e.item,t[35]=ee):ee=t[35];let Q;return t[36]!==J||t[37]!==ee?(Q=S.jsx("li",{className:J,children:ee}),t[36]=J,t[37]=ee,t[38]=Q):Q=t[38],Q};function uLr(e){return e?.split(`
`).map(t=>t.replace(/#(.*)/,"")).join(" ").replaceAll("{"," { ").replaceAll("}"," } ").replaceAll(/[\s]{2,}/g," ")}function dLr(e,t){return{...e,index:t}}function hLr(e){return e.favorite}function fLr(e){return!e.favorite}function pLr(e){return S.jsx(WLn,{item:e},e.index)}function gLr(e){return S.jsx(WLn,{item:e},e.index)}var e8t={title:"History",icon:h0r,content:cLr},mLr=on(da());bd();bd();function vLr(e,t){if(e==="Field"&&t.fieldDef||e==="AliasedField"&&t.fieldDef)return _Lr(t);if(e==="Directive"&&t.directiveDef)return bLr(t);if(e==="Argument"&&t.argDef)return yLr(t);if(e==="EnumValue"&&t.enumValue)return CLr(t);if(e==="NamedType"&&t.type)return wLr(t)}function yLr(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:ULn(e.fieldDef)?null:e.parentType}}function bLr(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}function _Lr(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:ULn(e.fieldDef)?null:e.parentType}}function wLr(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}function CLr(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?sg(e.inputType):void 0}}function ULn(e){return e.name.slice(0,2)==="__"}var SLr=on(da());bd();var YJe=on(da()),xLr=on(da()),ELr=on(da());bd();var ALr=e=>e?yu(e):"",$Ln=e=>{const t=(0,ELr.c)(12),{field:n}=e;if(!("defaultValue"in n)||n.defaultValue===void 0)return null;const i=n.defaultValue,r=n.type;let o,s,a,l;if(t[0]!==n.defaultValue||t[1]!==n.type){l=Symbol.for("react.early_return_sentinel");e:{const d=TO(i,r);if(!d){l=null;break e}a=" = ",o="graphiql-doc-explorer-default-value",s=ALr(d)}t[0]=n.defaultValue,t[1]=n.type,t[2]=o,t[3]=s,t[4]=a,t[5]=l}else o=t[2],s=t[3],a=t[4],l=t[5];if(l!==Symbol.for("react.early_return_sentinel"))return l;let c;t[6]!==o||t[7]!==s?(c=S.jsx("span",{className:o,children:s}),t[6]=o,t[7]=s,t[8]=c):c=t[8];let u;return t[9]!==a||t[10]!==c?(u=S.jsxs(S.Fragment,{children:[a,c]}),t[9]=a,t[10]=c,t[11]=u):u=t[11],u},DLr=on(da());bd();function tpe(e,t){return ic(e)?S.jsxs(S.Fragment,{children:[tpe(e.ofType,t),"!"]}):cg(e)?S.jsxs(S.Fragment,{children:["[",tpe(e.ofType,t),"]"]}):t(e)}var vD=e=>{const t=(0,DLr.c)(5),{type:n}=e,{push:i}=ebe();let r;t[0]!==i?(r=s=>S.jsx("a",{className:"graphiql-doc-explorer-type-name",onClick:a=>{a.preventDefault(),i({name:s.name,def:s})},href:"#",children:s.name}),t[0]=i,t[1]=r):r=t[1];let o;return t[2]!==r||t[3]!==n?(o=tpe(n,r),t[2]=r,t[3]=n,t[4]=o):o=t[4],o},npe=e=>{const t=(0,xLr.c)(19),{arg:n,showDefaultValue:i,inline:r}=e;let o;t[0]!==n.name?(o=S.jsx("span",{className:"graphiql-doc-explorer-argument-name",children:n.name}),t[0]=n.name,t[1]=o):o=t[1];let s;t[2]!==n.type?(s=S.jsx(vD,{type:n.type}),t[2]=n.type,t[3]=s):s=t[3];let a;t[4]!==n||t[5]!==i?(a=i!==!1&&S.jsx($Ln,{field:n}),t[4]=n,t[5]=i,t[6]=a):a=t[6];let l;t[7]!==o||t[8]!==s||t[9]!==a?(l=S.jsxs("span",{children:[o,": ",s,a]}),t[7]=o,t[8]=s,t[9]=a,t[10]=l):l=t[10];const c=l;if(r)return c;let u;t[11]!==n.description?(u=n.description?S.jsx(gE,{type:"description",children:n.description}):null,t[11]=n.description,t[12]=u):u=t[12];let d;t[13]!==n.deprecationReason?(d=n.deprecationReason?S.jsxs("div",{className:"graphiql-doc-explorer-argument-deprecation",children:[S.jsx("div",{className:"graphiql-doc-explorer-argument-deprecation-label",children:"Deprecated"}),S.jsx(gE,{type:"deprecation",children:n.deprecationReason})]}):null,t[13]=n.deprecationReason,t[14]=d):d=t[14];let h;return t[15]!==c||t[16]!==u||t[17]!==d?(h=S.jsxs("div",{className:"graphiql-doc-explorer-argument",children:[c,u,d]}),t[15]=c,t[16]=u,t[17]=d,t[18]=h):h=t[18],h},TLr=on(da()),qLn=e=>{const t=(0,TLr.c)(3);let n;return t[0]!==e.children||t[1]!==e.preview?(n=e.children?S.jsxs("div",{className:"graphiql-doc-explorer-deprecation",children:[S.jsx("div",{className:"graphiql-doc-explorer-deprecation-label",children:"Deprecated"}),S.jsx(gE,{type:"deprecation",onlyShowFirstChild:e.preview??!0,children:e.children})]}):null,t[0]=e.children,t[1]=e.preview,t[2]=n):n=t[2],n},kLr=on(da()),ILr=e=>{const t=(0,kLr.c)(2),{directive:n}=e;let i;return t[0]!==n.name.value?(i=S.jsxs("span",{className:"graphiql-doc-explorer-directive",children:["@",n.name.value]}),t[0]=n.name.value,t[1]=i):i=t[1],i},LLr=on(da()),hw=e=>{const t=(0,LLr.c)(10),{title:n,children:i}=e,r=NLr[n];let o;t[0]!==r?(o=S.jsx(r,{}),t[0]=r,t[1]=o):o=t[1];let s;t[2]!==o||t[3]!==n?(s=S.jsxs("div",{className:"graphiql-doc-explorer-section-title",children:[o,n]}),t[2]=o,t[3]=n,t[4]=s):s=t[4];let a;t[5]!==i?(a=S.jsx("div",{className:"graphiql-doc-explorer-section-content",children:i}),t[5]=i,t[6]=a):a=t[6];let l;return t[7]!==s||t[8]!==a?(l=S.jsxs("div",{children:[s,a]}),t[7]=s,t[8]=a,t[9]=l):l=t[9],l},NLr={Arguments:Jvr,"Deprecated Arguments":r0r,"Deprecated Enum Values":o0r,"Deprecated Fields":s0r,Directives:a0r,"Enum Values":u0r,Fields:d0r,Implements:f0r,Implementations:Qre,"Possible Types":Qre,"Root Types":C0r,Type:Qre,"All Schema Types":Qre},PLr=e=>{const t=(0,YJe.c)(15),{field:n}=e;let i;t[0]!==n.description?(i=n.description?S.jsx(gE,{type:"description",children:n.description}):null,t[0]=n.description,t[1]=i):i=t[1];let r;t[2]!==n.deprecationReason?(r=S.jsx(qLn,{preview:!1,children:n.deprecationReason}),t[2]=n.deprecationReason,t[3]=r):r=t[3];let o;t[4]!==n.type?(o=S.jsx(hw,{title:"Type",children:S.jsx(vD,{type:n.type})}),t[4]=n.type,t[5]=o):o=t[5];let s,a;t[6]!==n?(s=S.jsx(MLr,{field:n}),a=S.jsx(OLr,{field:n}),t[6]=n,t[7]=s,t[8]=a):(s=t[7],a=t[8]);let l;return t[9]!==i||t[10]!==r||t[11]!==o||t[12]!==s||t[13]!==a?(l=S.jsxs(S.Fragment,{children:[i,r,o,s,a]}),t[9]=i,t[10]=r,t[11]=o,t[12]=s,t[13]=a,t[14]=l):l=t[14],l},MLr=e=>{const t=(0,YJe.c)(12),{field:n}=e,[i,r]=I.useState(!1);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{r(!0)},t[0]=o):o=t[0];const s=o;if(!("args"in n))return null;let a,l,c;if(t[1]!==n.args){a=[],l=[];for(const h of n.args)h.deprecationReason?l.push(h):a.push(h);c=a.length>0?S.jsx(hw,{title:"Arguments",children:a.map(RLr)}):null,t[1]=n.args,t[2]=a,t[3]=l,t[4]=c}else a=t[2],l=t[3],c=t[4];let u;t[5]!==a.length||t[6]!==l||t[7]!==i?(u=l.length>0?i||a.length===0?S.jsx(hw,{title:"Deprecated Arguments",children:l.map(FLr)}):S.jsx(z1,{type:"button",onClick:s,children:"Show Deprecated Arguments"}):null,t[5]=a.length,t[6]=l,t[7]=i,t[8]=u):u=t[8];let d;return t[9]!==c||t[10]!==u?(d=S.jsxs(S.Fragment,{children:[c,u]}),t[9]=c,t[10]=u,t[11]=d):d=t[11],d},OLr=e=>{var t;const n=(0,YJe.c)(4),{field:i}=e,r=(t=i.astNode)==null?void 0:t.directives;if(!r?.length)return null;let o;n[0]!==r?(o=r.map(BLr),n[0]=r,n[1]=o):o=n[1];let s;return n[2]!==o?(s=S.jsx(hw,{title:"Directives",children:o}),n[2]=o,n[3]=s):s=n[3],s};function RLr(e){return S.jsx(npe,{arg:e},e.name)}function FLr(e){return S.jsx(npe,{arg:e},e.name)}function BLr(e){return S.jsx("div",{children:S.jsx(ILr,{directive:e})},e.name.value)}var jLr=on(da()),zLr=e=>{const t=(0,jLr.c)(43),{schema:n}=e;let i;t[0]!==n?(i=n.getQueryType(),t[0]=n,t[1]=i):i=t[1];const r=i;let o;t[2]!==n?(o=n.getMutationType(),t[2]=n,t[3]=o):o=t[3];const s=o;let a;t[4]!==n?(a=n.getSubscriptionType(),t[4]=n,t[5]=a):a=t[5];const l=a;let c,u,d,h,f;if(t[6]!==s||t[7]!==r||t[8]!==n||t[9]!==l){const v=n.getTypeMap(),y=r?.name,b=s?.name,w=l?.name;let E;t[15]!==w||t[16]!==y||t[17]!==b?(E=[y,b,w],t[15]=w,t[16]=y,t[17]=b,t[18]=E):E=t[18];const A=E,D=n.description||"A GraphQL schema provides a root type for each kind of operation.";t[19]!==D?(h=S.jsx(gE,{type:"description",children:D}),t[19]=D,t[20]=h):h=t[20];let T;t[21]!==r?(T=r?S.jsxs("div",{children:[S.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",S.jsx(vD,{type:r})]}):null,t[21]=r,t[22]=T):T=t[22];let M;t[23]!==s?(M=s&&S.jsxs("div",{children:[S.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",S.jsx(vD,{type:s})]}),t[23]=s,t[24]=M):M=t[24];let P;t[25]!==l?(P=l&&S.jsxs("div",{children:[S.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",S.jsx(vD,{type:l})]}),t[25]=l,t[26]=P):P=t[26],t[27]!==T||t[28]!==M||t[29]!==P?(f=S.jsxs(hw,{title:"Root Types",children:[T,M,P]}),t[27]=T,t[28]=M,t[29]=P,t[30]=f):f=t[30],c=hw,d="All Schema Types";let F;t[31]!==A?(F=N=>A.includes(N.name)||N.name.startsWith("__")?null:S.jsx("div",{children:S.jsx(vD,{type:N})},N.name),t[31]=A,t[32]=F):F=t[32],u=Object.values(v).map(F),t[6]=s,t[7]=r,t[8]=n,t[9]=l,t[10]=c,t[11]=u,t[12]=d,t[13]=h,t[14]=f}else c=t[10],u=t[11],d=t[12],h=t[13],f=t[14];let p;t[33]!==u?(p=S.jsx("div",{children:u}),t[33]=u,t[34]=p):p=t[34];let g;t[35]!==c||t[36]!==d||t[37]!==p?(g=S.jsx(c,{title:d,children:p}),t[35]=c,t[36]=d,t[37]=p,t[38]=g):g=t[38];let m;return t[39]!==h||t[40]!==f||t[41]!==g?(m=S.jsxs(S.Fragment,{children:[h,f,g]}),t[39]=h,t[40]=f,t[41]=g,t[42]=m):m=t[42],m},Yye=on(da());bd();var GLn=typeof document<"u"?Ri.useLayoutEffect:()=>{},pRe,VLr=(pRe=Ri.useInsertionEffect)!==null&&pRe!==void 0?pRe:GLn;function HLr(e){const t=I.useRef(null);return VLr(()=>{t.current=e},[e]),I.useCallback((...n)=>{const i=t.current;return i?.(...n)},[])}var aP=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},rR=e=>e&&"window"in e&&e.window===e?e:aP(e).defaultView||window;function WLr(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function ULr(e){return WLr(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}var $Lr=!1;function QJe(){return $Lr}function KLn(e,t){if(!QJe())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:ULr(n)?n=n.host:n=n.parentNode}return!1}var Wze=(e=document)=>{var t;if(!QJe())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function YLn(e){return QJe()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function qLr(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(i=>e.test(i.brand))||e.test(window.navigator.userAgent)}function GLr(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function QLn(e){let t=null;return()=>(t==null&&(t=e()),t)}var KLr=QLn(function(){return GLr(/^Mac/i)}),YLr=QLn(function(){return qLr(/Android/i)});function ZLn(){let e=I.useRef(new Map),t=I.useCallback((r,o,s,a)=>{let l=a?.once?(...c)=>{e.current.delete(s),s(...c)}:s;e.current.set(s,{type:o,eventTarget:r,fn:l,options:a}),r.addEventListener(o,l,a)},[]),n=I.useCallback((r,o,s,a)=>{var l;let c=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;r.removeEventListener(o,c,a),e.current.delete(s)},[]),i=I.useCallback(()=>{e.current.forEach((r,o)=>{n(r.eventTarget,r.type,o,r.options)})},[n]);return I.useEffect(()=>i,[i]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:i}}function QLr(e){return e.pointerType===""&&e.isTrusted?!0:YLr()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function XLn(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function ZLr(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function JLn(e){let t=I.useRef({isFocused:!1,observer:null});GLn(()=>{const i=t.current;return()=>{i.observer&&(i.observer.disconnect(),i.observer=null)}},[]);let n=HLr(i=>{e?.(i)});return I.useCallback(i=>{if(i.target instanceof HTMLButtonElement||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement||i.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=i.target,o=s=>{if(t.current.isFocused=!1,r.disabled){let a=XLn(s);n(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}var XLr=!1,IZ=null,Uze=new Set,gq=new Map,V2=!1,$ze=!1,JLr={Tab:!0,Escape:!0};function ZJe(e,t){for(let n of Uze)n(e,t)}function eNr(e){return!(e.metaKey||!KLr()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ipe(e){V2=!0,eNr(e)&&(IZ="keyboard",ZJe("keyboard",e))}function B8(e){IZ="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(V2=!0,ZJe("pointer",e))}function eNn(e){QLr(e)&&(V2=!0,IZ="virtual")}function tNn(e){e.target===window||e.target===document||XLr||!e.isTrusted||(!V2&&!$ze&&(IZ="virtual",ZJe("virtual",e)),V2=!1,$ze=!1)}function nNn(){V2=!1,$ze=!0}function qze(e){if(typeof window>"u"||typeof document>"u"||gq.get(rR(e)))return;const t=rR(e),n=aP(e);let i=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){V2=!0,i.apply(this,arguments)},n.addEventListener("keydown",ipe,!0),n.addEventListener("keyup",ipe,!0),n.addEventListener("click",eNn,!0),t.addEventListener("focus",tNn,!0),t.addEventListener("blur",nNn,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",B8,!0),n.addEventListener("pointermove",B8,!0),n.addEventListener("pointerup",B8,!0)),t.addEventListener("beforeunload",()=>{iNn(e)},{once:!0}),gq.set(t,{focus:i})}var iNn=(e,t)=>{const n=rR(e),i=aP(e);t&&i.removeEventListener("DOMContentLoaded",t),gq.has(n)&&(n.HTMLElement.prototype.focus=gq.get(n).focus,i.removeEventListener("keydown",ipe,!0),i.removeEventListener("keyup",ipe,!0),i.removeEventListener("click",eNn,!0),n.removeEventListener("focus",tNn,!0),n.removeEventListener("blur",nNn,!1),typeof PointerEvent<"u"&&(i.removeEventListener("pointerdown",B8,!0),i.removeEventListener("pointermove",B8,!0),i.removeEventListener("pointerup",B8,!0)),gq.delete(n))};function tNr(e){const t=aP(e);let n;return t.readyState!=="loading"?qze(e):(n=()=>{qze(e)},t.addEventListener("DOMContentLoaded",n)),()=>iNn(e,n)}typeof document<"u"&&tNr();function rNn(){return IZ!=="pointer"}var nNr=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function iNr(e,t,n){let i=aP(n?.target);const r=typeof window<"u"?rR(n?.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?rR(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?rR(n?.target).HTMLElement:HTMLElement,a=typeof window<"u"?rR(n?.target).KeyboardEvent:KeyboardEvent;return e=e||i.activeElement instanceof r&&!nNr.has(i.activeElement.type)||i.activeElement instanceof o||i.activeElement instanceof s&&i.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof a&&!JLr[n.key])}function rNr(e,t,n){qze(),I.useEffect(()=>{let i=(r,o)=>{iNr(!!n?.isTextInput,r,o)&&e(rNn())};return Uze.add(i),()=>{Uze.delete(i)}},t)}function oNr(e){let{isDisabled:t,onFocus:n,onBlur:i,onFocusChange:r}=e;const o=I.useCallback(l=>{if(l.target===l.currentTarget)return i&&i(l),r&&r(!1),!0},[i,r]),s=JLn(o),a=I.useCallback(l=>{const c=aP(l.target),u=c?Wze(c):Wze();l.target===l.currentTarget&&u===YLn(l.nativeEvent)&&(n&&n(l),r&&r(!0),s(l))},[r,n,s]);return{focusProps:{onFocus:!t&&(n||r||i)?a:void 0,onBlur:!t&&(i||r)?o:void 0}}}function sNr(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:i,onFocusWithinChange:r}=e,o=I.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=ZLn(),l=I.useCallback(d=>{d.currentTarget.contains(d.target)&&o.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(o.current.isFocusWithin=!1,a(),n&&n(d),r&&r(!1))},[n,r,o,a]),c=JLn(l),u=I.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;const h=aP(d.target),f=Wze(h);if(!o.current.isFocusWithin&&f===YLn(d.nativeEvent)){i&&i(d),r&&r(!0),o.current.isFocusWithin=!0,c(d);let p=d.currentTarget;s(h,"focus",g=>{if(o.current.isFocusWithin&&!KLn(p,g.target)){let m=new h.defaultView.FocusEvent("blur",{relatedTarget:g.target});ZLr(m,p);let v=XLn(m);l(v)}},{capture:!0})}},[i,r,c,s,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}var Gze=!1,foe=0;function aNr(){Gze=!0,setTimeout(()=>{Gze=!1},50)}function t8t(e){e.pointerType==="touch"&&aNr()}function lNr(){if(!(typeof document>"u"))return foe===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",t8t),foe++,()=>{foe--,!(foe>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",t8t)}}function oNn(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:r}=e,[o,s]=I.useState(!1),a=I.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;I.useEffect(lNr,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=ZLn(),{hoverProps:u,triggerHoverEnd:d}=I.useMemo(()=>{let h=(g,m)=>{if(a.pointerType=m,r||m==="touch"||a.isHovered||!g.currentTarget.contains(g.target))return;a.isHovered=!0;let v=g.currentTarget;a.target=v,l(aP(g.target),"pointerover",y=>{a.isHovered&&a.target&&!KLn(a.target,y.target)&&f(y,y.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:v,pointerType:m}),n&&n(!0),s(!0)},f=(g,m)=>{let v=a.target;a.pointerType="",a.target=null,!(m==="touch"||!a.isHovered||!v)&&(a.isHovered=!1,c(),i&&i({type:"hoverend",target:v,pointerType:m}),n&&n(!1),s(!1))},p={};return typeof PointerEvent<"u"&&(p.onPointerEnter=g=>{Gze&&g.pointerType==="mouse"||h(g,g.pointerType)},p.onPointerLeave=g=>{!r&&g.currentTarget.contains(g.target)&&f(g,g.pointerType)}),{hoverProps:p,triggerHoverEnd:f}},[t,n,i,r,a,l,c]);return I.useEffect(()=>{r&&d({currentTarget:a.target},a.pointerType)},[r]),{hoverProps:u,isHovered:o}}function sNn(e={}){let{autoFocus:t=!1,isTextInput:n,within:i}=e,r=I.useRef({isFocused:!1,isFocusVisible:t||rNn()}),[o,s]=I.useState(!1),[a,l]=I.useState(()=>r.current.isFocused&&r.current.isFocusVisible),c=I.useCallback(()=>l(r.current.isFocused&&r.current.isFocusVisible),[]),u=I.useCallback(f=>{r.current.isFocused=f,s(f),c()},[c]);rNr(f=>{r.current.isFocusVisible=f,c()},[],{isTextInput:n});let{focusProps:d}=oNr({isDisabled:i,onFocusChange:u}),{focusWithinProps:h}=sNr({isDisabled:!i,onFocusWithinChange:u});return{isFocused:o,isFocusVisible:a,focusProps:i?h:d}}var cNr=Object.defineProperty,uNr=(e,t,n)=>t in e?cNr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gRe=(e,t,n)=>(uNr(e,typeof t!="symbol"?t+"":t,n),n),dNr=class{constructor(){gRe(this,"current",this.detect()),gRe(this,"handoffState","pending"),gRe(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},BR=new dNr;function LZ(e){var t;return BR.isServer?null:e==null?document:(t=e?.ownerDocument)!=null?t:document}function hNr(e){var t,n;return BR.isServer?null:e==null?document:(n=(t=e?.getRootNode)==null?void 0:t.call(e))!=null?n:document}function fNr(e){var t,n;return(n=(t=hNr(e))==null?void 0:t.activeElement)!=null?n:null}function aNn(e){return fNr(e)===e}function lNn(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Mw(){let e=[],t={addEventListener(n,i,r,o){return n.addEventListener(i,r,o),t.add(()=>n.removeEventListener(i,r,o))},requestAnimationFrame(...n){let i=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(i))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let i=setTimeout(...n);return t.add(()=>clearTimeout(i))},microTask(...n){let i={current:!0};return lNn(()=>{i.current&&n[0]()}),t.add(()=>{i.current=!1})},style(n,i,r){let o=n.style.getPropertyValue(i);return Object.assign(n.style,{[i]:r}),this.add(()=>{Object.assign(n.style,{[i]:o})})},group(n){let i=Mw();return n(i),this.add(()=>i.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let i=e.indexOf(n);if(i>=0)for(let r of e.splice(i,1))r()}},dispose(){for(let n of e.splice(0))n()}};return t}function jj(){let[e]=I.useState(Mw);return I.useEffect(()=>()=>e.dispose(),[e]),e}var pf=(e,t)=>{BR.isServer?I.useEffect(e,t):I.useLayoutEffect(e,t)};function UF(e){let t=I.useRef(e);return pf(()=>{t.current=e},[e]),t}var Ja=function(e){let t=UF(e);return Ri.useCallback((...n)=>t.current(...n),[t])};function pNr(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function gNr(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function mNr({disabled:e=!1}={}){let t=I.useRef(null),[n,i]=I.useState(!1),r=jj(),o=Ja(()=>{t.current=null,i(!1),r.dispose()}),s=Ja(a=>{if(r.dispose(),t.current===null){t.current=a.currentTarget,i(!0);{let l=LZ(a.currentTarget);r.addEventListener(l,"pointerup",o,!1),r.addEventListener(l,"pointermove",c=>{if(t.current){let u=pNr(c);i(gNr(u,t.current.getBoundingClientRect()))}},!1),r.addEventListener(l,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:o,onClick:o}}}function $F(e){return I.useMemo(()=>e,Object.values(e))}var vNr=I.createContext(void 0);function XJe(){return I.useContext(vNr)}function n8t(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function vE(e,t,...n){if(e in t){let r=t[e];return typeof r=="function"?r(...n):r}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,vE),i}var Kze=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Kze||{}),yNr=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(yNr||{});function sS(){let e=_Nr();return I.useCallback(t=>bNr({mergeRefs:e,...t}),[e])}function bNr({ourProps:e,theirProps:t,slot:n,defaultTag:i,features:r,visible:o=!0,name:s,mergeRefs:a}){a=a??wNr;let l=cNn(t,e);if(o)return poe(l,n,i,s,a);let c=r??0;if(c&2){let{static:u=!1,...d}=l;if(u)return poe(d,n,i,s,a)}if(c&1){let{unmount:u=!0,...d}=l;return vE(u?0:1,{0(){return null},1(){return poe({...d,hidden:!0,style:{display:"none"}},n,i,s,a)}})}return poe(l,n,i,s,a)}function poe(e,t={},n,i,r){let{as:o=n,children:s,refName:a="ref",...l}=mRe(e,["unmount","static"]),c=e.ref!==void 0?{[a]:e.ref}:{},u=typeof s=="function"?s(t):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let d={};if(t){let h=!1,f=[];for(let[p,g]of Object.entries(t))typeof g=="boolean"&&(h=!0),g===!0&&f.push(p.replace(/([A-Z])/g,m=>`-${m.toLowerCase()}`));if(h){d["data-headlessui-state"]=f.join(" ");for(let p of f)d[`data-${p}`]=""}}if(Gce(o)&&(Object.keys(lO(l)).length>0||Object.keys(lO(d)).length>0))if(!I.isValidElement(u)||Array.isArray(u)&&u.length>1||SNr(u)){if(Object.keys(lO(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(lO(l)).concat(Object.keys(lO(d))).map(h=>`  - ${h}`).join(`
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(h=>`  - ${h}`).join(`
`)].join(`
`))}else{let h=u.props,f=h?.className,p=typeof f=="function"?(...v)=>n8t(f(...v),l.className):n8t(f,l.className),g=p?{className:p}:{},m=cNn(u.props,lO(mRe(l,["ref"])));for(let v in d)v in m&&delete d[v];return I.cloneElement(u,Object.assign({},m,d,c,{ref:r(CNr(u),c.ref)},g))}return I.createElement(o,Object.assign({},mRe(l,["ref"]),!Gce(o)&&c,!Gce(o)&&d),u)}function _Nr(){let e=I.useRef([]),t=I.useCallback(n=>{for(let i of e.current)i!=null&&(typeof i=="function"?i(n):i.current=n)},[]);return(...n)=>{if(!n.every(i=>i==null))return e.current=n,t}}function wNr(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function cNn(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let i of e)for(let r in i)r.startsWith("on")&&typeof i[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(i[r])):t[r]=i[r];if(t.disabled||t["aria-disabled"])for(let i in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(i)&&(n[i]=[r=>{var o;return(o=r?.preventDefault)==null?void 0:o.call(r)}]);for(let i in n)Object.assign(t,{[i](r,...o){let s=n[i];for(let a of s){if((r instanceof Event||r?.nativeEvent instanceof Event)&&r.defaultPrevented)return;a(r,...o)}}});return t}function JJe(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let i of e)for(let r in i)r.startsWith("on")&&typeof i[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(i[r])):t[r]=i[r];for(let i in n)Object.assign(t,{[i](...r){let o=n[i];for(let s of o)s?.(...r)}});return t}function aS(e){var t;return Object.assign(I.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function lO(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function mRe(e,t=[]){let n=Object.assign({},e);for(let i of t)i in n&&delete n[i];return n}function CNr(e){return Ri.version.split(".")[0]>="19"?e.props.ref:e.ref}function Gce(e){return e===I.Fragment||e===Symbol.for("react.fragment")}function SNr(e){return Gce(e.type)}function xNr(e,t,n){let[i,r]=I.useState(n),o=e!==void 0,s=I.useRef(o),a=I.useRef(!1),l=I.useRef(!1);return o&&!s.current&&!a.current?(a.current=!0,s.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!o&&s.current&&!l.current&&(l.current=!0,s.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[o?e:i,Ja(c=>(o||lf.flushSync(()=>r(c)),t?.(c)))]}function ENr(e){let[t]=I.useState(e);return t}function uNn(e={},t=null,n=[]){for(let[i,r]of Object.entries(e))hNn(n,dNn(t,i),r);return n}function dNn(e,t){return e?e+"["+t+"]":t}function hNn(e,t,n){if(Array.isArray(n))for(let[i,r]of n.entries())hNn(e,dNn(t,i.toString()),r);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):ANr(n)&&!I.isValidElement(n)&&uNn(n,t,e)}function ANr(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}var DNr="span",eet=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(eet||{});function TNr(e,t){var n;let{features:i=1,...r}=e,o={ref:t,"aria-hidden":(i&2)===2?!0:(n=r["aria-hidden"])!=null?n:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return sS()({ourProps:o,theirProps:r,slot:{},defaultTag:DNr,name:"Hidden"})}var fNn=aS(TNr),kNr=I.createContext(null);function INr({children:e}){let t=I.useContext(kNr);if(!t)return Ri.createElement(Ri.Fragment,null,e);let{target:n}=t;return n?lf.createPortal(Ri.createElement(Ri.Fragment,null,e),n):null}function LNr({data:e,form:t,disabled:n,onReset:i,overrides:r}){let[o,s]=I.useState(null),a=jj();return I.useEffect(()=>{if(i&&o)return a.addEventListener(o,"reset",i)},[o,t,i]),Ri.createElement(INr,null,Ri.createElement(NNr,{setForm:s,formId:t}),uNn(e).map(([l,c])=>Ri.createElement(fNn,{features:eet.Hidden,...lO({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:l,value:c,...r})})))}function NNr({setForm:e,formId:t}){return I.useEffect(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:Ri.createElement(fNn,{features:eet.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let i=n.closest("form");i&&e(i)}})}var PNr=I.createContext(void 0);function pNn(){return I.useContext(PNr)}function gNn(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function Qye(e){return gNn(e)&&"tagName"in e}function lP(e){return Qye(e)&&"accessKey"in e}function oR(e){return Qye(e)&&"tabIndex"in e}function MNr(e){return Qye(e)&&"style"in e}function ONr(e){return lP(e)&&e.nodeName==="IFRAME"}function rpe(e){return lP(e)&&e.nodeName==="INPUT"}function i8t(e){return lP(e)&&e.nodeName==="LABEL"}function RNr(e){return lP(e)&&e.nodeName==="FIELDSET"}function mNn(e){return lP(e)&&e.nodeName==="LEGEND"}function FNr(e){return Qye(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}function r8t(e){let t=e.parentElement,n=null;for(;t&&!RNr(t);)mNn(t)&&(n=t),t=t.parentElement;let i=t?.getAttribute("disabled")==="";return i&&BNr(n)?!1:i}function BNr(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(mNn(t))return!1;t=t.previousElementSibling}return!0}var vNn=Symbol();function jNr(e,t=!0){return Object.assign(e,{[vNn]:t})}function RT(...e){let t=I.useRef(e);I.useEffect(()=>{t.current=e},[e]);let n=Ja(i=>{for(let r of t.current)r!=null&&(typeof r=="function"?r(i):r.current=i)});return e.every(i=>i==null||i?.[vNn])?void 0:n}var tet=I.createContext(null);tet.displayName="DescriptionContext";function yNn(){let e=I.useContext(tet);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,yNn),t}return e}function zNr(){var e,t;return(t=(e=I.useContext(tet))==null?void 0:e.value)!=null?t:void 0}var VNr="p";function HNr(e,t){let n=I.useId(),i=XJe(),{id:r=`headlessui-description-${n}`,...o}=e,s=yNn(),a=RT(t);pf(()=>s.register(r),[r,s.register]);let l=$F({...s.slot,disabled:i||!1}),c={ref:a,...s.props,id:r};return sS()({ourProps:c,theirProps:o,slot:l,defaultTag:VNr,name:s.name||"Description"})}var WNr=aS(HNr);Object.assign(WNr,{});var Ym=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ym||{}),Zye=I.createContext(null);Zye.displayName="LabelContext";function bNn(){let e=I.useContext(Zye);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,bNn),t}return e}function Xye(e){var t,n,i;let r=(n=(t=I.useContext(Zye))==null?void 0:t.value)!=null?n:void 0;return((i=e?.length)!=null?i:0)>0?[r,...e].filter(Boolean).join(" "):r}function UNr({inherit:e=!1}={}){let t=Xye(),[n,i]=I.useState([]),r=e?[t,...n].filter(Boolean):n;return[r.length>0?r.join(" "):void 0,I.useMemo(()=>function(o){let s=Ja(l=>(i(c=>[...c,l]),()=>i(c=>{let u=c.slice(),d=u.indexOf(l);return d!==-1&&u.splice(d,1),u}))),a=I.useMemo(()=>({register:s,slot:o.slot,name:o.name,props:o.props,value:o.value}),[s,o.slot,o.name,o.props,o.value]);return Ri.createElement(Zye.Provider,{value:a},o.children)},[i])]}var $Nr="label";function qNr(e,t){var n;let i=I.useId(),r=bNn(),o=pNn(),s=XJe(),{id:a=`headlessui-label-${i}`,htmlFor:l=o??((n=r.props)==null?void 0:n.htmlFor),passive:c=!1,...u}=e,d=RT(t);pf(()=>r.register(a),[a,r.register]);let h=Ja(g=>{let m=g.currentTarget;if(!(g.target!==g.currentTarget&&FNr(g.target))&&(i8t(m)&&g.preventDefault(),r.props&&"onClick"in r.props&&typeof r.props.onClick=="function"&&r.props.onClick(g),i8t(m))){let v=document.getElementById(m.htmlFor);if(v){let y=v.getAttribute("disabled");if(y==="true"||y==="")return;let b=v.getAttribute("aria-disabled");if(b==="true"||b==="")return;(rpe(v)&&(v.type==="file"||v.type==="radio"||v.type==="checkbox")||v.role==="radio"||v.role==="checkbox"||v.role==="switch")&&v.click(),v.focus({preventScroll:!0})}}}),f=$F({...r.slot,disabled:s||!1}),p={ref:d,...r.props,id:a,htmlFor:l,onClick:h};return c&&("onClick"in p&&(delete p.htmlFor,delete p.onClick),"onClick"in u&&delete u.onClick),sS()({ourProps:p,theirProps:u,slot:f,defaultTag:l?$Nr:"div",name:r.name||"Label"})}var GNr=aS(qNr),KNr=Object.assign(GNr,{});function gB(e,t,n){let i=n.initialDeps??[],r;function o(){var s,a,l,c;let u;n.key&&((s=n.debug)!=null&&s.call(n))&&(u=Date.now());const d=e();if(!(d.length!==i.length||d.some((p,g)=>i[g]!==p)))return r;i=d;let f;if(n.key&&((a=n.debug)!=null&&a.call(n))&&(f=Date.now()),r=t(...d),n.key&&((l=n.debug)!=null&&l.call(n))){const p=Math.round((Date.now()-u)*100)/100,g=Math.round((Date.now()-f)*100)/100,m=g/16,v=(y,b)=>{for(y=String(y);y.length<b;)y=" "+y;return y};console.info(`%c⏱ ${v(g,5)} /${v(p,5)} ms`,`
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*m,120))}deg 100% 31%);`,n?.key)}return(c=n?.onChange)==null||c.call(n,r),r}return o.updateDeps=s=>{i=s},o}function o8t(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}var YNr=(e,t)=>Math.abs(e-t)<1.01,QNr=(e,t,n)=>{let i;return function(...r){e.clearTimeout(i),i=e.setTimeout(()=>t.apply(this,r),n)}},s8t=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},ZNr=e=>e,XNr=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let r=t;r<=n;r++)i.push(r);return i},JNr=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;const r=s=>{const{width:a,height:l}=s;t({width:Math.round(a),height:Math.round(l)})};if(r(s8t(n)),!i.ResizeObserver)return()=>{};const o=new i.ResizeObserver(s=>{const a=()=>{const l=s[0];if(l?.borderBoxSize){const c=l.borderBoxSize[0];if(c){r({width:c.inlineSize,height:c.blockSize});return}}r(s8t(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},a8t={passive:!0},l8t=typeof window>"u"?!0:"onscrollend"in window,ePr=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;let r=0;const o=e.options.useScrollendEvent&&l8t?()=>{}:QNr(i,()=>{t(r,!1)},e.options.isScrollingResetDelay),s=u=>()=>{const{horizontal:d,isRtl:h}=e.options;r=d?n.scrollLeft*(h&&-1||1):n.scrollTop,o(),t(r,u)},a=s(!0),l=s(!1);l(),n.addEventListener("scroll",a,a8t);const c=e.options.useScrollendEvent&&l8t;return c&&n.addEventListener("scrollend",l,a8t),()=>{n.removeEventListener("scroll",a),c&&n.removeEventListener("scrollend",l)}},tPr=(e,t,n)=>{if(t?.borderBoxSize){const i=t.borderBoxSize[0];if(i)return Math.round(i[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},nPr=(e,{adjustments:t=0,behavior:n},i)=>{var r,o;const s=e+t;(o=(r=i.scrollElement)==null?void 0:r.scrollTo)==null||o.call(r,{[i.options.horizontal?"left":"top"]:s,behavior:n})},iPr=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null;const n=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(i=>{i.forEach(r=>{const o=()=>{this._measureElement(r.target,r)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var i;(i=n())==null||i.disconnect(),t=null},observe:i=>{var r;return(r=n())==null?void 0:r.observe(i,{box:"border-box"})},unobserve:i=>{var r;return(r=n())==null?void 0:r.unobserve(i)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([n,i])=>{typeof i>"u"&&delete t[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:ZNr,rangeExtractor:XNr,onChange:()=>{},measureElement:tPr,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var n,i;(i=(n=this.options).onChange)==null||i.call(n,this,t)},this.maybeNotify=gB(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,r)=>{this.scrollAdjustments=0,this.scrollDirection=r?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=r,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,n)=>{const i=new Map,r=new Map;for(let o=n-1;o>=0;o--){const s=t[o];if(i.has(s.lane))continue;const a=r.get(s.lane);if(a==null||s.end>a.end?r.set(s.lane,s):s.end<a.end&&i.set(s.lane,!0),i.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((o,s)=>o.end===s.end?o.index-s.index:o.end-s.end)[0]:void 0},this.getMeasurementOptions=gB(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,n,i,r,o)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:n,scrollMargin:i,getItemKey:r,enabled:o}),{key:!1}),this.getMeasurements=gB(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:n,scrollMargin:i,getItemKey:r,enabled:o},s)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const l=this.measurementsCache.slice(0,a);for(let c=a;c<t;c++){const u=r(c),d=this.options.lanes===1?l[c-1]:this.getFurthestMeasurement(l,c),h=d?d.end+this.options.gap:n+i,f=s.get(u),p=typeof f=="number"?f:this.options.estimateSize(c),g=h+p,m=d?d.lane:c%this.options.lanes;l[c]={index:c,start:h,size:p,end:g,key:u,lane:m}}return this.measurementsCache=l,l},{key:!1,debug:()=>this.options.debug}),this.calculateRange=gB(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,n,i,r)=>this.range=t.length>0&&n>0?rPr({measurements:t,outerSize:n,scrollOffset:i,lanes:r}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=gB(()=>{let t=null,n=null;const i=this.calculateRange();return i&&(t=i.startIndex,n=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,n]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,n]},(t,n,i,r,o)=>r===null||o===null?[]:t({startIndex:r,endIndex:o,overscan:n,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const n=this.options.indexAttribute,i=t.getAttribute(n);return i?parseInt(i,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(t,n)=>{const i=this.indexFromElement(t),r=this.measurementsCache[i];if(!r)return;const o=r.key,s=this.elementsCache.get(o);s!==t&&(s&&this.observer.unobserve(s),this.observer.observe(t),this.elementsCache.set(o,t)),t.isConnected&&this.resizeItem(i,this.options.measureElement(t,n,this))},this.resizeItem=(t,n)=>{const i=this.measurementsCache[t];if(!i)return;const r=this.itemSizeCache.get(i.key)??i.size,o=n-r;o!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,o,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,n)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((n,i)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(i))});return}this._measureElement(t,void 0)},this.getVirtualItems=gB(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,n)=>{const i=[];for(let r=0,o=t.length;r<o;r++){const s=t[r],a=n[s];i.push(a)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const n=this.getMeasurements();if(n.length!==0)return o8t(n[_Nn(0,n.length-1,i=>o8t(n[i]).start,t)])},this.getOffsetForAlignment=(t,n,i=0)=>{const r=this.getSize(),o=this.getScrollOffset();n==="auto"&&(n=t>=o+r?"end":"start"),n==="center"?t+=(i-r)/2:n==="end"&&(t-=r);const s=this.getTotalSize()+this.options.scrollMargin-r;return Math.max(Math.min(s,t),0)},this.getOffsetForIndex=(t,n="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const i=this.measurementsCache[t];if(!i)return;const r=this.getSize(),o=this.getScrollOffset();if(n==="auto")if(i.end>=o+r-this.options.scrollPaddingEnd)n="end";else if(i.start<=o+this.options.scrollPaddingStart)n="start";else return[o,n];const s=n==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,n,i.size),n]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:n="start",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,n),{adjustments:void 0,behavior:i})},this.scrollToIndex=(t,{align:n="auto",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t=Math.max(0,Math.min(t,this.options.count-1));let r=0;const o=10,s=l=>{if(!this.targetWindow)return;const c=this.getOffsetForIndex(t,l);if(!c){console.warn("Failed to get offset for index:",t);return}const[u,d]=c;this._scrollToOffset(u,{adjustments:void 0,behavior:i}),this.targetWindow.requestAnimationFrame(()=>{const h=this.getScrollOffset(),f=this.getOffsetForIndex(t,d);if(!f){console.warn("Failed to get offset for index:",t);return}YNr(f[0],h)||a(d)})},a=l=>{this.targetWindow&&(r++,r<o?this.targetWindow.requestAnimationFrame(()=>s(l)):console.warn(`Failed to scroll to index ${t} after ${o} attempts.`))};s(n)},this.scrollBy=(t,{behavior:n}={})=>{n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var t;const n=this.getMeasurements();let i;if(n.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=((t=n[n.length-1])==null?void 0:t.end)??0;else{const r=Array(this.options.lanes).fill(null);let o=n.length-1;for(;o>=0&&r.some(s=>s===null);){const s=n[o];r[s.lane]===null&&(r[s.lane]=s.end),o--}i=Math.max(...r.filter(s=>s!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:n,behavior:i})=>{this.options.scrollToFn(t,{behavior:i,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}},_Nn=(e,t,n,i)=>{for(;e<=t;){const r=(e+t)/2|0,o=n(r);if(o<i)e=r+1;else if(o>i)t=r-1;else return r}return e>0?e-1:0};function rPr({measurements:e,outerSize:t,scrollOffset:n,lanes:i}){const r=e.length-1,o=l=>e[l].start;if(e.length<=i)return{startIndex:0,endIndex:r};let s=_Nn(0,r,o,n),a=s;if(i===1)for(;a<r&&e[a].end<n+t;)a++;else if(i>1){const l=Array(i).fill(0);for(;a<r&&l.some(u=>u<n+t);){const u=e[a];l[u.lane]=u.end,a++}const c=Array(i).fill(n+t);for(;s>=0&&c.some(u=>u>=n);){const u=e[s];c[u.lane]=u.start,s--}s=Math.max(0,s-s%i),a=Math.min(r,a+(i-1-a%i))}return{startIndex:s,endIndex:a}}var c8t=typeof document<"u"?I.useLayoutEffect:I.useEffect;function oPr(e){const t=I.useReducer(()=>({}),{})[1],n={...e,onChange:(r,o)=>{var s;o?lf.flushSync(t):t(),(s=e.onChange)==null||s.call(e,r,o)}},[i]=I.useState(()=>new iPr(n));return i.setOptions(n),c8t(()=>i._didMount(),[]),c8t(()=>i._willUpdate()),i}function sPr(e){return oPr({observeElementRect:JNr,observeElementOffset:ePr,scrollToFn:nPr,...e})}function aPr(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function lPr(e=aPr){return I.useCallback((t,n)=>{if(typeof e=="string"){let i=e;return t?.[i]===n?.[i]}return e(t,n)},[e])}function u8t(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function d8t(e,t,n=!1){let[i,r]=I.useState(()=>u8t(t));return pf(()=>{if(!t||!e)return;let o=Mw();return o.requestAnimationFrame(function s(){o.requestAnimationFrame(s),r(a=>{let l=u8t(t);return l.width===a.width&&l.height===a.height?a:l})}),()=>{o.dispose()}},[t,e]),n?{width:`${i.width}px`,height:`${i.height}px`}:i}var net=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(net||{});function cPr(e){let t=I.useRef(null),n=Ja(r=>{t.current=r.pointerType,!r8t(r.currentTarget)&&r.pointerType==="mouse"&&r.button===net.Left&&(r.preventDefault(),e(r))}),i=Ja(r=>{t.current!=="mouse"&&(r8t(r.currentTarget)||e(r))});return{onPointerDown:n,onClick:i}}var wNn=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return t===void 0&&(t=this.factory(e),this.set(e,t)),t}},uPr=Object.defineProperty,dPr=(e,t,n)=>t in e?uPr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hPr=(e,t,n)=>(dPr(e,t+"",n),n),CNn=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},e_=(e,t,n)=>(CNn(e,t,"read from private field"),n?n.call(e):t.get(e)),vRe=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},h8t=(e,t,n,i)=>(CNn(e,t,"write to private field"),t.set(e,n),n),GS,wU,CU,SNn=class{constructor(e){vRe(this,GS,{}),vRe(this,wU,new wNn(()=>new Set)),vRe(this,CU,new Set),hPr(this,"disposables",Mw()),h8t(this,GS,e),BR.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return e_(this,GS)}subscribe(e,t){if(BR.isServer)return()=>{};let n={selector:e,callback:t,current:e(e_(this,GS))};return e_(this,CU).add(n),this.disposables.add(()=>{e_(this,CU).delete(n)})}on(e,t){return BR.isServer?()=>{}:(e_(this,wU).get(e).add(t),this.disposables.add(()=>{e_(this,wU).get(e).delete(t)}))}send(e){let t=this.reduce(e_(this,GS),e);if(t!==e_(this,GS)){h8t(this,GS,t);for(let n of e_(this,CU)){let i=n.selector(e_(this,GS));xNn(n.current,i)||(n.current=i,n.callback(i))}for(let n of e_(this,wU).get(e.type))n(e_(this,GS),e)}}};GS=new WeakMap,wU=new WeakMap,CU=new WeakMap;function xNn(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null?!1:Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:yRe(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size!==t.size?!1:yRe(e.entries(),t.entries()):f8t(e)&&f8t(t)?yRe(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()):!1}function yRe(e,t){do{let n=e.next(),i=t.next();if(n.done&&i.done)return!0;if(n.done||i.done||!Object.is(n.value,i.value))return!1}while(!0)}function f8t(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}var fPr=Object.defineProperty,pPr=(e,t,n)=>t in e?fPr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p8t=(e,t,n)=>(pPr(e,typeof t!="symbol"?t+"":t,n),n),ENn=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(ENn||{}),gPr={0(e,t){let n=t.id,i=e.stack,r=e.stack.indexOf(n);if(r!==-1){let o=e.stack.slice();return o.splice(r,1),o.push(n),i=o,{...e,stack:i}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,i=e.stack.indexOf(n);if(i===-1)return e;let r=e.stack.slice();return r.splice(i,1),{...e,stack:r}}},mPr=class ANn extends SNn{constructor(){super(...arguments),p8t(this,"actions",{push:t=>this.send({type:0,id:t}),pop:t=>this.send({type:1,id:t})}),p8t(this,"selectors",{isTop:(t,n)=>t.stack[t.stack.length-1]===n,inStack:(t,n)=>t.stack.includes(n)})}static new(){return new ANn({stack:[]})}reduce(t,n){return vE(n.type,gPr,t,n)}},iet=new wNn(()=>mPr.new()),vPr=on(Lsi(),1);function vp(e,t,n=xNn){return(0,vPr.useSyncExternalStoreWithSelector)(Ja(i=>e.subscribe(yPr,i)),Ja(()=>e.state),Ja(()=>e.state),Ja(t),n)}function yPr(e){return e}function DNn(e,t){let n=I.useId(),i=iet.get(t),[r,o]=vp(i,I.useCallback(s=>[i.selectors.isTop(s,n),i.selectors.inStack(s,n)],[i,n]));return pf(()=>{if(e)return i.actions.push(n),()=>i.actions.pop(n)},[i,e,n]),e?o?r:!0:!1}var Yze=new Map,mq=new Map;function g8t(e){var t;let n=(t=mq.get(e))!=null?t:0;return mq.set(e,n+1),n!==0?()=>m8t(e):(Yze.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>m8t(e))}function m8t(e){var t;let n=(t=mq.get(e))!=null?t:1;if(n===1?mq.delete(e):mq.set(e,n-1),n!==1)return;let i=Yze.get(e);i&&(i["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",i["aria-hidden"]),e.inert=i.inert,Yze.delete(e))}function bPr(e,{allowed:t,disallowed:n}={}){let i=DNn(e,"inert-others");pf(()=>{var r,o;if(!i)return;let s=Mw();for(let l of(r=n?.())!=null?r:[])l&&s.add(g8t(l));let a=(o=t?.())!=null?o:[];for(let l of a){if(!l)continue;let c=LZ(l);if(!c)continue;let u=l.parentElement;for(;u&&u!==c.body;){for(let d of u.children)a.some(h=>d.contains(h))||s.add(g8t(d));u=u.parentElement}}return s.dispose},[i,t,n])}function _Pr(e,t,n){let i=UF(r=>{let o=r.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&n()});I.useEffect(()=>{if(!e)return;let r=t===null?null:lP(t)?t:t.current;if(!r)return;let o=Mw();if(typeof ResizeObserver<"u"){let s=new ResizeObserver(()=>i.current(r));s.observe(r),o.add(()=>s.disconnect())}if(typeof IntersectionObserver<"u"){let s=new IntersectionObserver(()=>i.current(r));s.observe(r),o.add(()=>s.disconnect())}return()=>o.dispose()},[t,i,e])}var Qze=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),wPr=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(wPr||{}),CPr=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(CPr||{}),SPr=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(SPr||{}),TNn=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(TNn||{});function xPr(e,t=0){var n;return e===((n=LZ(e))==null?void 0:n.body)?!1:vE(t,{0(){return e.matches(Qze)},1(){let i=e;for(;i!==null;){if(i.matches(Qze))return!0;i=i.parentElement}return!1}})}var EPr=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(EPr||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function APr(e,t=n=>n){return e.slice().sort((n,i)=>{let r=t(n),o=t(i);if(r===null||o===null)return 0;let s=r.compareDocumentPosition(o);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function kNn(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function DPr(){return/Android/gi.test(window.navigator.userAgent)}function Zze(){return kNn()||DPr()}function O6(e,t,n,i){let r=UF(n);I.useEffect(()=>{if(!e)return;function o(s){r.current(s)}return document.addEventListener(t,o,i),()=>document.removeEventListener(t,o,i)},[e,t,i])}function TPr(e,t,n,i){let r=UF(n);I.useEffect(()=>{if(!e)return;function o(s){r.current(s)}return window.addEventListener(t,o,i),()=>window.removeEventListener(t,o,i)},[e,t,i])}var v8t=30;function kPr(e,t,n){let i=UF(n),r=I.useCallback(function(a,l){if(a.defaultPrevented)return;let c=l(a);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let u=(function d(h){return typeof h=="function"?d(h()):Array.isArray(h)||h instanceof Set?h:[h]})(t);for(let d of u)if(d!==null&&(d.contains(c)||a.composed&&a.composedPath().includes(d)))return;return!xPr(c,TNn.Loose)&&c.tabIndex!==-1&&a.preventDefault(),i.current(a,c)},[i,t]),o=I.useRef(null);O6(e,"pointerdown",a=>{var l,c;Zze()||(o.current=((c=(l=a.composedPath)==null?void 0:l.call(a))==null?void 0:c[0])||a.target)},!0),O6(e,"pointerup",a=>{if(Zze()||!o.current)return;let l=o.current;return o.current=null,r(a,()=>l)},!0);let s=I.useRef({x:0,y:0});O6(e,"touchstart",a=>{s.current.x=a.touches[0].clientX,s.current.y=a.touches[0].clientY},!0),O6(e,"touchend",a=>{let l={x:a.changedTouches[0].clientX,y:a.changedTouches[0].clientY};if(!(Math.abs(l.x-s.current.x)>=v8t||Math.abs(l.y-s.current.y)>=v8t))return r(a,()=>oR(a.target)?a.target:null)},!0),TPr(e,"blur",a=>r(a,()=>ONr(window.document.activeElement)?window.document.activeElement:null),!0)}function Xze(...e){return I.useMemo(()=>LZ(...e),[...e])}var IPr=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(IPr||{}),SH={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},LPr=200,y8t=5;function NPr(e,{trigger:t,action:n,close:i,select:r}){let o=I.useRef(null),s=I.useRef(null),a=I.useRef(null);O6(e&&t!==null,"pointerdown",l=>{gNn(l?.target)&&t!=null&&t.contains(l.target)&&(s.current=l.x,a.current=l.y,o.current=l.timeStamp)}),O6(e&&t!==null,"pointerup",l=>{var c,u;let d=o.current;if(d===null||(o.current=null,!oR(l.target))||Math.abs(l.x-((c=s.current)!=null?c:l.x))<y8t&&Math.abs(l.y-((u=a.current)!=null?u:l.y))<y8t)return;let h=n(l);switch(h.kind){case 0:return;case 1:{l.timeStamp-d>LPr&&(r(h.target),i());break}case 2:{i();break}}},{capture:!0})}function PPr(e,t,n,i){let r=UF(n);I.useEffect(()=>{e=e??window;function o(s){r.current(s)}return e.addEventListener(t,o,i),()=>e.removeEventListener(t,o,i)},[e,t,i])}function INn(e){let t=I.useRef({value:"",selectionStart:null,selectionEnd:null});return PPr(e,"blur",n=>{let i=n.target;rpe(i)&&(t.current={value:i.value,selectionStart:i.selectionStart,selectionEnd:i.selectionEnd})}),Ja(()=>{if(!aNn(e)&&rpe(e)&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==t.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:n,selectionEnd:i}=t.current;n!==null&&i!==null&&e.setSelectionRange(n,i)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}function MPr(e,t){return I.useMemo(()=>{var n;if(e.type)return e.type;let i=(n=e.as)!=null?n:"button";if(typeof i=="string"&&i.toLowerCase()==="button"||t?.tagName==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function OPr(e){return I.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}function RPr(e,t){let n=e(),i=new Set;return{getSnapshot(){return n},subscribe(r){return i.add(r),()=>i.delete(r)},dispatch(r,...o){let s=t[r].call(n,...o);s&&(n=s,i.forEach(a=>a()))}}}function FPr(){let e;return{before({doc:t}){var n;let i=t.documentElement,r=(n=t.defaultView)!=null?n:window;e=Math.max(0,r.innerWidth-i.clientWidth)},after({doc:t,d:n}){let i=t.documentElement,r=Math.max(0,i.clientWidth-i.offsetWidth),o=Math.max(0,e-r);n.style(i,"paddingRight",`${o}px`)}}}function BPr(){return kNn()?{before({doc:e,d:t,meta:n}){function i(r){for(let o of n().containers)for(let s of o())if(s.contains(r))return!0;return!1}t.microTask(()=>{var r;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=Mw();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let o=(r=window.scrollY)!=null?r:window.pageYOffset,s=null;t.addEventListener(e,"click",a=>{if(oR(a.target))try{let l=a.target.closest("a");if(!l)return;let{hash:c}=new URL(l.href),u=e.querySelector(c);oR(u)&&!i(u)&&(s=u)}catch{}},!0),t.group(a=>{t.addEventListener(e,"touchstart",l=>{if(a.dispose(),oR(l.target)&&MNr(l.target))if(i(l.target)){let c=l.target;for(;c.parentElement&&i(c.parentElement);)c=c.parentElement;a.style(c,"overscrollBehavior","contain")}else a.style(l.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",a=>{if(oR(a.target)){if(rpe(a.target))return;if(i(a.target)){let l=a.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let l=(a=window.scrollY)!=null?a:window.pageYOffset;o!==l&&window.scrollTo(0,o),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function jPr(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function b8t(e){let t={};for(let n of e)Object.assign(t,n(t));return t}var sR=RPr(()=>new Map,{PUSH(e,t){var n;let i=(n=this.get(e))!=null?n:{doc:e,count:0,d:Mw(),meta:new Set,computedMeta:{}};return i.count++,i.meta.add(t),i.computedMeta=b8t(i.meta),this.set(e,i),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=b8t(n.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta(){return e.computedMeta}},n=[BPr(),FPr(),jPr()];n.forEach(({before:i})=>i?.(t)),n.forEach(({after:i})=>i?.(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});sR.subscribe(()=>{let e=sR.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let i=t.get(n.doc)==="hidden",r=n.count!==0;(r&&!i||!r&&i)&&sR.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&sR.dispatch("TEARDOWN",n)}});function zPr(e,t,n=()=>({containers:[]})){let i=OPr(sR),r=t?i.get(t):void 0,o=r?r.count>0:!1;return pf(()=>{if(!(!t||!e))return sR.dispatch("PUSH",t,n),()=>sR.dispatch("POP",t,n)},[e,t]),o}function VPr(e,t,n=()=>[document.body]){let i=DNn(e,"scroll-lock");zPr(i,t,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],n]}})}function _8t(e){return[e.screenX,e.screenY]}function HPr(){let e=I.useRef([-1,-1]);return{wasMoved(t){let n=_8t(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=_8t(t)}}}function WPr(e=0){let[t,n]=I.useState(e),i=I.useCallback(l=>n(l),[]),r=I.useCallback(l=>n(c=>c|l),[]),o=I.useCallback(l=>(t&l)===l,[t]),s=I.useCallback(l=>n(c=>c&~l),[]),a=I.useCallback(l=>n(c=>c^l),[]);return{flags:t,setFlag:i,addFlag:r,hasFlag:o,removeFlag:s,toggleFlag:a}}var w8t,C8t;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((w8t=process==null?void 0:xRe)==null?void 0:w8t.NODE_ENV)==="test"&&typeof((C8t=Element?.prototype)==null?void 0:C8t.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
`)),[]});var UPr=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(UPr||{});function $Pr(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function qPr(e,t,n,i){let[r,o]=I.useState(n),{hasFlag:s,addFlag:a,removeFlag:l}=WPr(e&&r?3:0),c=I.useRef(!1),u=I.useRef(!1),d=jj();return pf(()=>{var h;if(e){if(n&&o(!0),!t){n&&a(3);return}return(h=void 0)==null||h.call(i,n),GPr(t,{inFlight:c,prepare(){u.current?u.current=!1:u.current=c.current,c.current=!0,!u.current&&(n?(a(3),l(4)):(a(4),l(2)))},run(){u.current?n?(l(3),a(4)):(l(4),a(3)):n?l(1):a(1)},done(){var f;u.current&&QPr(t)||(c.current=!1,l(7),n||o(!1),(f=void 0)==null||f.call(i,n))}})}},[e,n,t,d]),e?[r,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function GPr(e,{prepare:t,run:n,done:i,inFlight:r}){let o=Mw();return YPr(e,{prepare:t,inFlight:r}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(KPr(e,i))})}),o.dispose}function KPr(e,t){var n,i;let r=Mw();if(!e)return r.dispose;let o=!1;r.add(()=>{o=!0});let s=(i=(n=e.getAnimations)==null?void 0:n.call(e).filter(a=>a instanceof CSSTransition))!=null?i:[];return s.length===0?(t(),r.dispose):(Promise.allSettled(s.map(a=>a.finished)).then(()=>{o||t()}),r.dispose)}function YPr(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let i=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=i}function QPr(e){var t,n;return((n=(t=e.getAnimations)==null?void 0:t.call(e))!=null?n:[]).some(i=>i instanceof CSSTransition&&i.playState!=="finished")}function ZPr(e,{container:t,accept:n,walk:i}){let r=I.useRef(n),o=I.useRef(i);I.useEffect(()=>{r.current=n,o.current=i},[n,i]),pf(()=>{if(!t||!e)return;let s=LZ(t);if(!s)return;let a=r.current,l=o.current,c=Object.assign(d=>a(d),{acceptNode:a}),u=s.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,c,!1);for(;u.nextNode();)l(u.currentNode)},[t,e,r,o])}function S8t(e,t){let n=I.useRef([]),i=Ja(e);I.useEffect(()=>{let r=[...n.current];for(let[o,s]of t.entries())if(n.current[o]!==s){let a=i(t,r);return n.current=t,a}},[i,...t])}function XPr(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:i}=t;return n+"/"+i}).join(" "):navigator.userAgent}var LNn={...cT},JPr=LNn.useInsertionEffect,eMr=JPr||(e=>e());function NNn(e){const t=I.useRef(()=>{});return eMr(()=>{t.current=e}),I.useCallback(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.current==null?void 0:t.current(...i)},[])}var Jze=typeof document<"u"?I.useLayoutEffect:I.useEffect,x8t=!1,tMr=0,E8t=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+tMr++;function nMr(){const[e,t]=I.useState(()=>x8t?E8t():void 0);return Jze(()=>{e==null&&t(E8t())},[]),I.useEffect(()=>{x8t=!0},[]),e}var iMr=LNn.useId,rMr=iMr||nMr;function oMr(){const e=new Map;return{emit(t,n){var i;(i=e.get(t))==null||i.forEach(r=>r(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var i;e.set(t,((i=e.get(t))==null?void 0:i.filter(r=>r!==n))||[])}}}var sMr=I.createContext(null),aMr=I.createContext(null),lMr=()=>{var e;return((e=I.useContext(sMr))==null?void 0:e.id)||null},cMr=()=>I.useContext(aMr),uMr="data-floating-ui-focusable";function dMr(e){const{open:t=!1,onOpenChange:n,elements:i}=e,r=rMr(),o=I.useRef({}),[s]=I.useState(()=>oMr()),a=lMr()!=null,[l,c]=I.useState(i.reference),u=NNn((f,p,g)=>{o.current.openEvent=f?p:void 0,s.emit("openchange",{open:f,event:p,reason:g,nested:a}),n?.(f,p,g)}),d=I.useMemo(()=>({setPositionReference:c}),[]),h=I.useMemo(()=>({reference:l||i.reference||null,floating:i.floating||null,domReference:i.reference}),[l,i.reference,i.floating]);return I.useMemo(()=>({dataRef:o,open:t,onOpenChange:u,elements:h,events:s,floatingId:r,refs:d}),[t,u,h,s,r,d])}function hMr(e){e===void 0&&(e={});const{nodeId:t}=e,n=dMr({...e,elements:{reference:null,floating:null,...e.elements}}),i=e.rootContext||n,r=i.elements,[o,s]=I.useState(null),[a,l]=I.useState(null),u=r?.domReference||o,d=I.useRef(null),h=cMr();Jze(()=>{u&&(d.current=u)},[u]);const f=rTn({...e,elements:{...r,...a&&{reference:a}}}),p=I.useCallback(b=>{const w=Cv(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;l(w),f.refs.setReference(w)},[f.refs]),g=I.useCallback(b=>{(Cv(b)||b===null)&&(d.current=b,s(b)),(Cv(f.refs.reference.current)||f.refs.reference.current===null||b!==null&&!Cv(b))&&f.refs.setReference(b)},[f.refs]),m=I.useMemo(()=>({...f.refs,setReference:g,setPositionReference:p,domReference:d}),[f.refs,g,p]),v=I.useMemo(()=>({...f.elements,domReference:u}),[f.elements,u]),y=I.useMemo(()=>({...f,...i,refs:m,elements:v,nodeId:t}),[f,m,v,t,i]);return Jze(()=>{i.dataRef.current.floatingContext=y;const b=h?.nodesRef.current.find(w=>w.id===t);b&&(b.context=y)}),I.useMemo(()=>({...f,context:y,refs:m,elements:v}),[f,m,v,y])}var A8t="active",D8t="selected";function bRe(e,t,n){const i=new Map,r=n==="item";let o=e;if(r&&e){const{[A8t]:s,[D8t]:a,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[uMr]:""},...o,...t.map(s=>{const a=s?s[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[c,u]=l;if(!(r&&[A8t,D8t].includes(c)))if(c.indexOf("on")===0){if(i.has(c)||i.set(c,[]),typeof u=="function"){var d;(d=i.get(c))==null||d.push(u),s[c]=function(){for(var h,f=arguments.length,p=new Array(f),g=0;g<f;g++)p[g]=arguments[g];return(h=i.get(c))==null?void 0:h.map(m=>m(...p)).find(m=>m!==void 0)}}}else s[c]=u}),s),{})}}function fMr(e){e===void 0&&(e=[]);const t=e.map(a=>a?.reference),n=e.map(a=>a?.floating),i=e.map(a=>a?.item),r=I.useCallback(a=>bRe(a,e,"reference"),t),o=I.useCallback(a=>bRe(a,e,"floating"),n),s=I.useCallback(a=>bRe(a,e,"item"),i);return I.useMemo(()=>({getReferenceProps:r,getFloatingProps:o,getItemProps:s}),[r,o,s])}function T8t(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}var pMr=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:i,onFallbackChange:r,offset:o=0,index:s=0,minItemsVisible:a=4,referenceOverflowThreshold:l=0,scrollRef:c,...u}=fE(e,t),{rects:d,elements:{floating:h}}=t,f=n.current[s],p=c?.current||h,g=h.clientTop||p.clientTop,m=h.clientTop!==0,v=p.clientTop!==0,y=h===p;if(!f)return{};const b={...t,...await nJe(-f.offsetTop-h.clientTop-d.reference.height/2-f.offsetHeight/2-o).fn(t)},w=await WOe(T8t(b,p.scrollHeight+g+h.clientTop),u),E=await WOe(b,{...u,elementContext:"reference"}),A=rm(0,w.top),D=b.y+A,P=(p.scrollHeight>p.clientHeight?F=>F:SK)(rm(0,p.scrollHeight+(m&&y||v?g*2:0)-A-rm(0,w.bottom)));if(p.style.maxHeight=P+"px",p.scrollTop=A,r){const F=p.offsetHeight<f.offsetHeight*oT(a,n.current.length)-1||E.top>=-l||E.bottom>=-l;lf.flushSync(()=>r(F))}return i&&(i.current=await WOe(T8t({...b,y:D},p.offsetHeight+g+h.clientTop),u)),{y:D}}});function gMr(e,t){const{open:n,elements:i}=e,{enabled:r=!0,overflowRef:o,scrollRef:s,onChange:a}=t,l=NNn(a),c=I.useRef(!1),u=I.useRef(null),d=I.useRef(null);I.useEffect(()=>{if(!r)return;function f(g){if(g.ctrlKey||!p||o.current==null)return;const m=g.deltaY,v=o.current.top>=-.5,y=o.current.bottom>=-.5,b=p.scrollHeight-p.clientHeight,w=m<0?-1:1,E=m<0?"max":"min";p.scrollHeight<=p.clientHeight||(!v&&m>0||!y&&m<0?(g.preventDefault(),lf.flushSync(()=>{l(A=>A+Math[E](m,b*w))})):/firefox/i.test(XPr())&&(p.scrollTop+=m))}const p=s?.current||i.floating;if(n&&p)return p.addEventListener("wheel",f),requestAnimationFrame(()=>{u.current=p.scrollTop,o.current!=null&&(d.current={...o.current})}),()=>{u.current=null,d.current=null,p.removeEventListener("wheel",f)}},[r,n,i.floating,o,s,l]);const h=I.useMemo(()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const f=s?.current||i.floating;if(!(!o.current||!f||!c.current)){if(u.current!==null){const p=f.scrollTop-u.current;(o.current.bottom<-.5&&p<-1||o.current.top<-.5&&p>1)&&lf.flushSync(()=>l(g=>g+p))}requestAnimationFrame(()=>{u.current=f.scrollTop})}}}),[i.floating,l,o,s]);return I.useMemo(()=>r?{floating:h}:{},[r,h])}var NZ=I.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});NZ.displayName="FloatingContext";var ret=I.createContext(null);ret.displayName="PlacementContext";function mMr(e){return I.useMemo(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function vMr(){return I.useContext(NZ).setReference}function yMr(){let{getFloatingProps:e,slot:t}=I.useContext(NZ);return I.useCallback((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function bMr(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=I.useContext(ret),n=I.useMemo(()=>e,[JSON.stringify(e,(r,o)=>{var s;return(s=o?.outerHTML)!=null?s:o})]);pf(()=>{t?.(n??null)},[t,n]);let i=I.useContext(NZ);return I.useMemo(()=>[i.setFloating,e?i.styles:{}],[i.setFloating,e,i.styles])}var k8t=4;function _Mr({children:e,enabled:t=!0}){let[n,i]=I.useState(null),[r,o]=I.useState(0),s=I.useRef(null),[a,l]=I.useState(null);wMr(a);let c=t&&n!==null&&a!==null,{to:u="bottom",gap:d=0,offset:h=0,padding:f=0,inner:p}=CMr(n,a),[g,m="center"]=u.split(" ");pf(()=>{c&&o(0)},[c]);let{refs:v,floatingStyles:y,context:b}=hMr({open:c,placement:g==="selection"?m==="center"?"bottom":`bottom-${m}`:m==="center"?`${g}`:`${g}-${m}`,strategy:"absolute",transform:!1,middleware:[nJe({mainAxis:g==="selection"?0:d,crossAxis:h}),oTn({padding:f}),g!=="selection"&&sTn({padding:f}),g==="selection"&&p?pMr({...p,padding:f,overflowRef:s,offset:r,minItemsVisible:k8t,referenceOverflowThreshold:f,onFallbackChange(F){var N,j;if(!F)return;let W=b.elements.floating;if(!W)return;let J=parseFloat(getComputedStyle(W).scrollPaddingBottom)||0,ee=Math.min(k8t,W.childElementCount),Q=0,H=0;for(let q of(j=(N=b.elements.floating)==null?void 0:N.childNodes)!=null?j:[])if(lP(q)){let le=q.offsetTop,Y=le+q.clientHeight+J,G=W.scrollTop,pe=G+W.clientHeight;if(le>=G&&Y<=pe)ee--;else{H=Math.max(0,Math.min(Y,pe)-Math.max(le,G)),Q=q.clientHeight;break}}ee>=1&&o(q=>{let le=Q*ee-H+J;return q>=le?q:le})}}):null,aTn({padding:f,apply({availableWidth:F,availableHeight:N,elements:j}){Object.assign(j.floating.style,{overflow:"auto",maxWidth:`${F}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${N}px)`})}})].filter(Boolean),whileElementsMounted:nTn}),[w=g,E=m]=b.placement.split("-");g==="selection"&&(w="selection");let A=I.useMemo(()=>({anchor:[w,E].filter(Boolean).join(" ")}),[w,E]),D=gMr(b,{overflowRef:s,onChange:o}),{getReferenceProps:T,getFloatingProps:M}=fMr([D]),P=Ja(F=>{l(F),v.setFloating(F)});return I.createElement(ret.Provider,{value:i},I.createElement(NZ.Provider,{value:{setFloating:P,setReference:v.setReference,styles:y,getReferenceProps:T,getFloatingProps:M,slot:A}},e))}function wMr(e){pf(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,i=parseFloat(n);if(isNaN(i))return;let r=parseInt(n);isNaN(r)||i!==r&&(e.style.maxHeight=`${Math.ceil(i)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function CMr(e,t){var n,i,r;let o=_Re((n=e?.gap)!=null?n:"var(--anchor-gap, 0)",t),s=_Re((i=e?.offset)!=null?i:"var(--anchor-offset, 0)",t),a=_Re((r=e?.padding)!=null?r:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:s,padding:a}}function _Re(e,t,n=void 0){let i=jj(),r=Ja((l,c)=>{if(l==null)return[n,null];if(typeof l=="number")return[l,null];if(typeof l=="string"){if(!c)return[n,null];let u=I8t(l,c);return[u,d=>{let h=PNn(l);{let f=h.map(p=>window.getComputedStyle(c).getPropertyValue(p));i.requestAnimationFrame(function p(){i.nextFrame(p);let g=!1;for(let[v,y]of h.entries()){let b=window.getComputedStyle(c).getPropertyValue(y);if(f[v]!==b){f[v]=b,g=!0;break}}if(!g)return;let m=I8t(l,c);u!==m&&(d(m),u=m)})}return i.dispose}]}return[n,null]}),o=I.useMemo(()=>r(e,t)[0],[e,t]),[s=o,a]=I.useState();return pf(()=>{let[l,c]=r(e,t);if(a(l),!!c)return c(a)},[e,t]),s}function PNn(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let i=t[1].slice(0,n).trim(),r=t[1].slice(n+1).trim();return r?[i,...PNn(r)]:[i]}return[]}function I8t(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let i=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),i}function SMr({children:e,freeze:t},n){let i=eVe(t,e);return I.isValidElement(i)?I.cloneElement(i,{ref:n}):Ri.createElement(Ri.Fragment,null,i)}var xMr=Ri.forwardRef(SMr);function eVe(e,t){let[n,i]=I.useState(t);return!e&&n!==t&&i(t),e?n:t}var oet=I.createContext(null);oet.displayName="OpenClosedContext";var PK=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(PK||{});function EMr(){return I.useContext(oet)}function AMr({value:e,children:t}){return Ri.createElement(oet.Provider,{value:e},t)}function DMr(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}var xO=[];DMr(()=>{function e(t){if(!oR(t.target)||t.target===document.body||xO[0]===t.target)return;let n=t.target;n=n.closest(Qze),xO.unshift(n??t.target),xO=xO.filter(i=>i!=null&&i.isConnected),xO.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function TMr(e){throw new Error("Unexpected object: "+e)}var up=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(up||{});function L8t(e,t){let n=t.resolveItems();if(n.length<=0)return null;let i=t.resolveActiveIndex(),r=i??-1;switch(e.focus){case 0:{for(let o=0;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return i}case 1:{r===-1&&(r=n.length);for(let o=r-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return i}case 2:{for(let o=r+1;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return i}case 3:{for(let o=n.length-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return i}case 4:{for(let o=0;o<n.length;++o)if(t.resolveId(n[o],o,n)===e.id)return o;return i}case 5:return null;default:TMr(e)}}function MNn(e){let t=Ja(e),n=I.useRef(!1);I.useEffect(()=>(n.current=!1,()=>{n.current=!0,lNn(()=>{n.current&&t()})}),[t])}var kMr=I.createContext(!1);function IMr(){return I.useContext(kMr)}function LMr(e){let t=IMr(),n=I.useContext(RNn),[i,r]=I.useState(()=>{var o;if(!t&&n!==null)return(o=n.current)!=null?o:null;if(BR.isServer)return null;let s=e?.getElementById("headlessui-portal-root");if(s)return s;if(e===null)return null;let a=e.createElement("div");return a.setAttribute("id","headlessui-portal-root"),e.body.appendChild(a)});return I.useEffect(()=>{i!==null&&(e!=null&&e.body.contains(i)||e==null||e.body.appendChild(i))},[i,e]),I.useEffect(()=>{t||n!==null&&r(n.current)},[n,r,t]),i}var ONn=I.Fragment,NMr=aS(function(e,t){let{ownerDocument:n=null,...i}=e,r=I.useRef(null),o=RT(jNr(h=>{r.current=h}),t),s=Xze(r.current),a=n??s,l=LMr(a),c=I.useContext(RMr),u=jj(),d=sS();return MNn(()=>{var h;l&&l.childNodes.length<=0&&((h=l.parentElement)==null||h.removeChild(l))}),l?lf.createPortal(Ri.createElement("div",{"data-headlessui-portal":"",ref:h=>{u.dispose(),c&&h&&u.add(c.register(h))}},d({ourProps:{ref:o},theirProps:i,slot:{},defaultTag:ONn,name:"Portal"})),l):null});function PMr(e,t){let n=RT(t),{enabled:i=!0,ownerDocument:r,...o}=e,s=sS();return i?Ri.createElement(NMr,{...o,ownerDocument:r,ref:n}):s({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:ONn,name:"Portal"})}var MMr=I.Fragment,RNn=I.createContext(null);function OMr(e,t){let{target:n,...i}=e,r={ref:RT(t)},o=sS();return Ri.createElement(RNn.Provider,{value:n},o({ourProps:r,theirProps:i,defaultTag:MMr,name:"Popover.Group"}))}var RMr=I.createContext(null),FMr=aS(PMr),BMr=aS(OMr),jMr=Object.assign(FMr,{Group:BMr}),SU={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function FNn(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}function zMr(e,t,n){let i=Mw();if(t.kind==="Tracked"){let r=function(){o!==FNn(e)&&(i.dispose(),n())},{position:o}=t,s=new ResizeObserver(r);s.observe(e),i.add(()=>s.disconnect()),i.addEventListener(window,"scroll",r,{passive:!0}),i.addEventListener(window,"resize",r)}return()=>i.dispose()}var VMr=Object.defineProperty,HMr=(e,t,n)=>t in e?VMr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N8t=(e,t,n)=>(HMr(e,typeof t!="symbol"?t+"":t,n),n),Na=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Na||{}),zy=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(zy||{}),Wx=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Wx||{}),BNn=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.SetTyping=3]="SetTyping",e[e.RegisterOption=4]="RegisterOption",e[e.UnregisterOption=5]="UnregisterOption",e[e.DefaultToFirstOption=6]="DefaultToFirstOption",e[e.SetActivationTrigger=7]="SetActivationTrigger",e[e.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",e[e.SetInputElement=9]="SetInputElement",e[e.SetButtonElement=10]="SetButtonElement",e[e.SetOptionsElement=11]="SetOptionsElement",e[e.MarkInputAsMoved=12]="MarkInputAsMoved",e))(BNn||{});function wRe(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,i=t(e.options.slice()),r=i.length>0&&i[0].dataRef.current.order!==null?i.sort((s,a)=>s.dataRef.current.order-a.dataRef.current.order):APr(i,s=>s.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return o===-1&&(o=null),{options:r,activeOptionIndex:o}}var WMr={1(e){var t;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===1)return e;let n=e.inputElement?SU.Tracked(FNn(e.inputElement)):e.inputPositionState;return{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,inputPositionState:n,__demoMode:!1}},0(e){var t,n;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===0)return e;if((n=e.dataRef.current)!=null&&n.value){let i=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(i!==-1)return{...e,activeOptionIndex:i,comboboxState:0,__demoMode:!1,inputPositionState:SU.Idle}}return{...e,comboboxState:0,inputPositionState:SU.Idle,__demoMode:!1}},3(e,t){return e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping}},2(e,t){var n,i,r,o;if((n=e.dataRef.current)!=null&&n.disabled||e.optionsElement&&!((i=e.dataRef.current)!=null&&i.optionsPropsRef.current.static)&&e.comboboxState===1)return e;if(e.virtual){let{options:c,disabled:u}=e.virtual,d=t.focus===up.Specific?t.idx:L8t(t,{resolveItems:()=>c,resolveActiveIndex:()=>{var f,p;return(p=(f=e.activeOptionIndex)!=null?f:c.findIndex(g=>!u(g)))!=null?p:null},resolveDisabled:u,resolveId(){throw new Error("Function not implemented.")}}),h=(r=t.trigger)!=null?r:2;return e.activeOptionIndex===d&&e.activationTrigger===h?e:{...e,activeOptionIndex:d,activationTrigger:h,isTyping:!1,__demoMode:!1}}let s=wRe(e);if(s.activeOptionIndex===null){let c=s.options.findIndex(u=>!u.dataRef.current.disabled);c!==-1&&(s.activeOptionIndex=c)}let a=t.focus===up.Specific?t.idx:L8t(t,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:c=>c.id,resolveDisabled:c=>c.dataRef.current.disabled}),l=(o=t.trigger)!=null?o:2;return e.activeOptionIndex===a&&e.activationTrigger===l?e:{...e,...s,isTyping:!1,activeOptionIndex:a,activationTrigger:l,__demoMode:!1}},4:(e,t)=>{var n,i,r,o;if((n=e.dataRef.current)!=null&&n.virtual)return{...e,options:[...e.options,t.payload]};let s=t.payload,a=wRe(e,c=>(c.push(s),c));e.activeOptionIndex===null&&(r=(i=e.dataRef.current).isSelected)!=null&&r.call(i,t.payload.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(s));let l={...e,...a,activationTrigger:2};return(o=e.dataRef.current)!=null&&o.__demoMode&&e.dataRef.current.value===void 0&&(l.activeOptionIndex=0),l},5:(e,t)=>{var n;if((n=e.dataRef.current)!=null&&n.virtual)return{...e,options:e.options.filter(r=>r.id!==t.id)};let i=wRe(e,r=>{let o=r.findIndex(s=>s.id===t.id);return o!==-1&&r.splice(o,1),r});return{...e,...i,activationTrigger:2}},6:(e,t)=>e.defaultToFirstOption===t.value?e:{...e,defaultToFirstOption:t.value},7:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},8:(e,t)=>{var n,i;if(e.virtual===null)return{...e,virtual:{options:t.options,disabled:(n=t.disabled)!=null?n:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let r=e.activeOptionIndex;if(e.activeOptionIndex!==null){let o=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);o!==-1?r=o:r=null}return{...e,activeOptionIndex:r,virtual:{options:t.options,disabled:(i=t.disabled)!=null?i:()=>!1}}},9:(e,t)=>e.inputElement===t.element?e:{...e,inputElement:t.element},10:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},11:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},12(e){return e.inputPositionState.kind!=="Tracked"?e:{...e,inputPositionState:SU.Moved}}},UMr=class jNn extends SNn{constructor(t){super(t),N8t(this,"actions",{onChange:n=>{let{onChange:i,compare:r,mode:o,value:s}=this.state.dataRef.current;return vE(o,{0:()=>i?.(n),1:()=>{let a=s.slice(),l=a.findIndex(c=>r(c,n));return l===-1?a.push(n):a.splice(l,1),i?.(a)}})},registerOption:(n,i)=>(this.send({type:4,payload:{id:n,dataRef:i}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(i.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:n})}),goToOption:(n,i)=>(this.send({type:6,value:!1}),this.send({type:2,...n,trigger:i})),setIsTyping:n=>{this.send({type:3,isTyping:n})},closeCombobox:()=>{var n,i;this.send({type:1}),this.send({type:6,value:!1}),(i=(n=this.state.dataRef.current).onClose)==null||i.call(n)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:n=>{this.send({type:7,trigger:n})},selectActiveOption:()=>{let n=this.selectors.activeOptionIndex(this.state);if(n!==null){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[n]);else{let{dataRef:i}=this.state.options[n];this.actions.onChange(i.current.value)}this.actions.goToOption({focus:up.Specific,idx:n})}},setInputElement:n=>{this.send({type:9,element:n})},setButtonElement:n=>{this.send({type:10,element:n})},setOptionsElement:n=>{this.send({type:11,element:n})}}),N8t(this,"selectors",{activeDescendantId:n=>{var i,r;let o=this.selectors.activeOptionIndex(n);if(o!==null)return n.virtual?(r=n.options.find(s=>!s.dataRef.current.disabled&&n.dataRef.current.compare(s.dataRef.current.value,n.virtual.options[o])))==null?void 0:r.id:(i=n.options[o])==null?void 0:i.id},activeOptionIndex:n=>{if(n.defaultToFirstOption&&n.activeOptionIndex===null&&(n.virtual?n.virtual.options.length>0:n.options.length>0)){if(n.virtual){let{options:r,disabled:o}=n.virtual,s=r.findIndex(a=>{var l;return!((l=o?.(a))!=null&&l)});if(s!==-1)return s}let i=n.options.findIndex(r=>!r.dataRef.current.disabled);if(i!==-1)return i}return n.activeOptionIndex},activeOption:n=>{var i,r;let o=this.selectors.activeOptionIndex(n);return o===null?null:n.virtual?n.virtual.options[o??0]:(r=(i=n.options[o])==null?void 0:i.dataRef.current.value)!=null?r:null},isActive:(n,i,r)=>{var o;let s=this.selectors.activeOptionIndex(n);return s===null?!1:n.virtual?s===n.dataRef.current.calculateIndex(i):((o=n.options[s])==null?void 0:o.id)===r},shouldScrollIntoView:(n,i,r)=>!(n.virtual||n.__demoMode||n.comboboxState!==0||n.activationTrigger===0||!this.selectors.isActive(n,i,r)),didInputMove(n){return n.inputPositionState.kind==="Moved"}});{let n=this.state.id,i=iet.get(null);this.disposables.add(i.on(ENn.Push,r=>{!i.selectors.isTop(r,n)&&this.state.comboboxState===0&&this.actions.closeCombobox()})),this.on(0,()=>i.actions.push(n)),this.on(1,()=>i.actions.pop(n))}this.disposables.group(n=>{this.on(1,i=>{i.inputElement&&(n.dispose(),n.add(zMr(i.inputElement,i.inputPositionState,()=>{this.send({type:12})})))})})}static new({id:t,virtual:n=null,__demoMode:i=!1}){var r;return new jNn({id:t,dataRef:{current:{}},comboboxState:i?0:1,isTyping:!1,options:[],virtual:n?{options:n.options,disabled:(r=n.disabled)!=null?r:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:i,inputPositionState:SU.Idle})}reduce(t,n){return vE(n.type,WMr,t,n)}},zNn=I.createContext(null);function PZ(e){let t=I.useContext(zNn);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,VNn),n}return t}function VNn({id:e,virtual:t=null,__demoMode:n=!1}){let i=I.useMemo(()=>UMr.new({id:e,virtual:t,__demoMode:n}),[]);return MNn(()=>i.dispose()),i}var MK=I.createContext(null);MK.displayName="ComboboxDataContext";function zj(e){let t=I.useContext(MK);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,zj),n}return t}var HNn=I.createContext(null);function $Mr(e){let t=PZ("VirtualProvider"),n=zj("VirtualProvider"),{options:i}=n.virtual,r=vp(t,f=>f.optionsElement),[o,s]=I.useMemo(()=>{let f=r;if(!f)return[0,0];let p=window.getComputedStyle(f);return[parseFloat(p.paddingBlockStart||p.paddingTop),parseFloat(p.paddingBlockEnd||p.paddingBottom)]},[r]),a=sPr({enabled:i.length!==0,scrollPaddingStart:o,scrollPaddingEnd:s,count:i.length,estimateSize(){return 40},getScrollElement(){return t.state.optionsElement},overscan:12}),[l,c]=I.useState(0);pf(()=>{c(f=>f+1)},[i]);let u=a.getVirtualItems(),d=vp(t,f=>f.activationTrigger===Wx.Pointer),h=vp(t,t.selectors.activeOptionIndex);return u.length===0?null:Ri.createElement(HNn.Provider,{value:a},Ri.createElement("div",{style:{position:"relative",width:"100%",height:`${a.getTotalSize()}px`},ref:f=>{f&&(d||h!==null&&i.length>h&&a.scrollToIndex(h))}},u.map(f=>{var p;return Ri.createElement(I.Fragment,{key:f.key},Ri.cloneElement((p=e.children)==null?void 0:p.call(e,{...e.slot,option:i[f.index]}),{key:`${l}-${f.key}`,"data-index":f.index,"aria-setsize":i.length,"aria-posinset":f.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${f.start}px)`,overflowAnchor:"none"}}))})))}var qMr=I.Fragment;function GMr(e,t){let n=I.useId(),i=XJe(),{value:r,defaultValue:o,onChange:s,form:a,name:l,by:c,invalid:u=!1,disabled:d=i||!1,onClose:h,__demoMode:f=!1,multiple:p=!1,immediate:g=!1,virtual:m=null,nullable:v,...y}=e,b=ENr(o),[w=p?[]:void 0,E]=xNr(r,s,b),A=VNn({id:n,virtual:m,__demoMode:f}),D=I.useRef({static:!1,hold:!1}),T=lPr(c),M=Ja(de=>m?c===null?m.options.indexOf(de):m.options.findIndex(oe=>T(oe,de)):A.state.options.findIndex(oe=>T(oe.dataRef.current.value,de))),P=I.useCallback(de=>vE(j.mode,{[zy.Multi]:()=>w.some(oe=>T(oe,de)),[zy.Single]:()=>T(w,de)}),[w]),F=vp(A,de=>de.virtual),N=Ja(()=>h?.()),j=I.useMemo(()=>({__demoMode:f,immediate:g,optionsPropsRef:D,value:w,defaultValue:b,disabled:d,invalid:u,mode:p?zy.Multi:zy.Single,virtual:m?F:null,onChange:E,isSelected:P,calculateIndex:M,compare:T,onClose:N}),[f,g,D,w,b,d,u,p,m,F,E,P,M,T,N]);pf(()=>{var de;m&&A.send({type:BNn.UpdateVirtualConfiguration,options:m.options,disabled:(de=m.disabled)!=null?de:null})},[m,m?.options,m?.disabled]),pf(()=>{A.state.dataRef.current=j},[j]);let[W,J,ee,Q]=vp(A,de=>[de.comboboxState,de.buttonElement,de.inputElement,de.optionsElement]),H=iet.get(null),q=vp(H,I.useCallback(de=>H.selectors.isTop(de,n),[H,n]));kPr(q,[J,ee,Q],()=>A.actions.closeCombobox());let le=vp(A,A.selectors.activeOptionIndex),Y=vp(A,A.selectors.activeOption),G=$F({open:W===Na.Open,disabled:d,invalid:u,activeIndex:le,activeOption:Y,value:w}),[pe,U]=UNr(),K=t===null?{}:{ref:t},ie=I.useCallback(()=>{if(b!==void 0)return E?.(b)},[E,b]),ce=sS();return Ri.createElement(U,{value:pe,props:{htmlFor:ee?.id},slot:{open:W===Na.Open,disabled:d}},Ri.createElement(_Mr,null,Ri.createElement(MK.Provider,{value:j},Ri.createElement(zNn.Provider,{value:A},Ri.createElement(AMr,{value:vE(W,{[Na.Open]:PK.Open,[Na.Closed]:PK.Closed})},l!=null&&Ri.createElement(LNr,{disabled:d,data:w!=null?{[l]:w}:{},form:a,onReset:ie}),ce({ourProps:K,theirProps:y,slot:G,defaultTag:qMr,name:"Combobox"}))))))}var KMr="input";function YMr(e,t){var n,i;let r=PZ("Combobox.Input"),o=zj("Combobox.Input"),s=I.useId(),a=pNn(),{id:l=a||`headlessui-combobox-input-${s}`,onChange:c,displayValue:u,disabled:d=o.disabled||!1,autoFocus:h=!1,type:f="text",...p}=e,g=I.useRef(null),m=RT(g,t,vMr(),r.actions.setInputElement),[v,y]=vp(r,G=>[G.comboboxState,G.isTyping]),b=jj(),w=Ja(()=>{r.actions.onChange(null),r.state.optionsElement&&(r.state.optionsElement.scrollTop=0),r.actions.goToOption({focus:up.Nothing})}),E=I.useMemo(()=>{var G;return typeof u=="function"&&o.value!==void 0?(G=u(o.value))!=null?G:"":typeof o.value=="string"?o.value:""},[o.value,u]);S8t(([G,pe],[U,K])=>{if(r.state.isTyping)return;let ie=g.current;ie&&((K===Na.Open&&pe===Na.Closed||G!==U)&&(ie.value=G),requestAnimationFrame(()=>{if(r.state.isTyping||!ie||aNn(ie))return;let{selectionStart:ce,selectionEnd:de}=ie;Math.abs((de??0)-(ce??0))===0&&ce===0&&ie.setSelectionRange(ie.value.length,ie.value.length)}))},[E,v,y]),S8t(([G],[pe])=>{if(G===Na.Open&&pe===Na.Closed){if(r.state.isTyping)return;let U=g.current;if(!U)return;let K=U.value,{selectionStart:ie,selectionEnd:ce,selectionDirection:de}=U;U.value="",U.value=K,de!==null?U.setSelectionRange(ie,ce,de):U.setSelectionRange(ie,ce)}},[v]);let A=I.useRef(!1),D=Ja(()=>{A.current=!0}),T=Ja(()=>{b.nextFrame(()=>{A.current=!1})}),M=Ja(G=>{switch(r.actions.setIsTyping(!0),G.key){case Ym.Enter:if(r.state.comboboxState!==Na.Open||A.current)return;if(G.preventDefault(),G.stopPropagation(),r.selectors.activeOptionIndex(r.state)===null){r.actions.closeCombobox();return}r.actions.selectActiveOption(),o.mode===zy.Single&&r.actions.closeCombobox();break;case Ym.ArrowDown:return G.preventDefault(),G.stopPropagation(),vE(r.state.comboboxState,{[Na.Open]:()=>r.actions.goToOption({focus:up.Next}),[Na.Closed]:()=>r.actions.openCombobox()});case Ym.ArrowUp:return G.preventDefault(),G.stopPropagation(),vE(r.state.comboboxState,{[Na.Open]:()=>r.actions.goToOption({focus:up.Previous}),[Na.Closed]:()=>{lf.flushSync(()=>r.actions.openCombobox()),o.value||r.actions.goToOption({focus:up.Last})}});case Ym.Home:if(r.state.comboboxState===Na.Closed||G.shiftKey)break;return G.preventDefault(),G.stopPropagation(),r.actions.goToOption({focus:up.First});case Ym.PageUp:return G.preventDefault(),G.stopPropagation(),r.actions.goToOption({focus:up.First});case Ym.End:if(r.state.comboboxState===Na.Closed||G.shiftKey)break;return G.preventDefault(),G.stopPropagation(),r.actions.goToOption({focus:up.Last});case Ym.PageDown:return G.preventDefault(),G.stopPropagation(),r.actions.goToOption({focus:up.Last});case Ym.Escape:return r.state.comboboxState!==Na.Open?void 0:(G.preventDefault(),r.state.optionsElement&&!o.optionsPropsRef.current.static&&G.stopPropagation(),o.mode===zy.Single&&o.value===null&&w(),r.actions.closeCombobox());case Ym.Tab:if(r.actions.setIsTyping(!1),r.state.comboboxState!==Na.Open)return;o.mode===zy.Single&&r.state.activationTrigger!==Wx.Focus&&r.actions.selectActiveOption(),r.actions.closeCombobox();break}}),P=Ja(G=>{c?.(G),o.mode===zy.Single&&G.target.value===""&&w(),r.actions.openCombobox()}),F=Ja(G=>{var pe,U,K;let ie=(pe=G.relatedTarget)!=null?pe:xO.find(ce=>ce!==G.currentTarget);if(!((U=r.state.optionsElement)!=null&&U.contains(ie))&&!((K=r.state.buttonElement)!=null&&K.contains(ie))&&r.state.comboboxState===Na.Open)return G.preventDefault(),o.mode===zy.Single&&o.value===null&&w(),r.actions.closeCombobox()}),N=Ja(G=>{var pe,U,K;let ie=(pe=G.relatedTarget)!=null?pe:xO.find(ce=>ce!==G.currentTarget);(U=r.state.buttonElement)!=null&&U.contains(ie)||(K=r.state.optionsElement)!=null&&K.contains(ie)||o.disabled||o.immediate&&r.state.comboboxState!==Na.Open&&b.microTask(()=>{lf.flushSync(()=>r.actions.openCombobox()),r.actions.setActivationTrigger(Wx.Focus)})}),j=Xye(),W=zNr(),{isFocused:J,focusProps:ee}=sNn({autoFocus:h}),{isHovered:Q,hoverProps:H}=oNn({isDisabled:d}),q=vp(r,G=>G.optionsElement),le=$F({open:v===Na.Open,disabled:d,invalid:o.invalid,hover:Q,focus:J,autofocus:h}),Y=JJe({ref:m,id:l,role:"combobox",type:f,"aria-controls":q?.id,"aria-expanded":v===Na.Open,"aria-activedescendant":vp(r,r.selectors.activeDescendantId),"aria-labelledby":j,"aria-describedby":W,"aria-autocomplete":"list",defaultValue:(i=(n=e.defaultValue)!=null?n:o.defaultValue!==void 0?u?.(o.defaultValue):null)!=null?i:o.defaultValue,disabled:d||void 0,autoFocus:h,onCompositionStart:D,onCompositionEnd:T,onKeyDown:M,onChange:P,onFocus:N,onBlur:F},ee,H);return sS()({ourProps:Y,theirProps:p,slot:le,defaultTag:KMr,name:"Combobox.Input"})}var QMr="button";function ZMr(e,t){let n=PZ("Combobox.Button"),i=zj("Combobox.Button"),[r,o]=I.useState(null),s=RT(t,o,n.actions.setButtonElement),a=I.useId(),{id:l=`headlessui-combobox-button-${a}`,disabled:c=i.disabled||!1,autoFocus:u=!1,...d}=e,[h,f,p]=vp(n,N=>[N.comboboxState,N.inputElement,N.optionsElement]),g=INn(f),m=h===Na.Open;NPr(m,{trigger:r,action:I.useCallback(N=>{if(r!=null&&r.contains(N.target)||f!=null&&f.contains(N.target))return SH.Ignore;let j=N.target.closest('[role="option"]:not([data-disabled])');return lP(j)?SH.Select(j):p!=null&&p.contains(N.target)?SH.Ignore:SH.Close},[r,f,p]),close:n.actions.closeCombobox,select:n.actions.selectActiveOption});let v=Ja(N=>{switch(N.key){case Ym.Space:case Ym.Enter:N.preventDefault(),N.stopPropagation(),n.state.comboboxState===Na.Closed&&lf.flushSync(()=>n.actions.openCombobox()),g();return;case Ym.ArrowDown:N.preventDefault(),N.stopPropagation(),n.state.comboboxState===Na.Closed&&(lf.flushSync(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:up.First})),g();return;case Ym.ArrowUp:N.preventDefault(),N.stopPropagation(),n.state.comboboxState===Na.Closed&&(lf.flushSync(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:up.Last})),g();return;case Ym.Escape:if(n.state.comboboxState!==Na.Open)return;N.preventDefault(),n.state.optionsElement&&!i.optionsPropsRef.current.static&&N.stopPropagation(),lf.flushSync(()=>n.actions.closeCombobox()),g();return;default:return}}),y=cPr(()=>{n.state.comboboxState===Na.Open?n.actions.closeCombobox():n.actions.openCombobox(),g()}),b=Xye([l]),{isFocusVisible:w,focusProps:E}=sNn({autoFocus:u}),{isHovered:A,hoverProps:D}=oNn({isDisabled:c}),{pressed:T,pressProps:M}=mNr({disabled:c}),P=$F({open:h===Na.Open,active:T||h===Na.Open,disabled:c,invalid:i.invalid,value:i.value,hover:A,focus:w}),F=JJe({ref:s,id:l,type:MPr(e,r),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":p?.id,"aria-expanded":h===Na.Open,"aria-labelledby":b,disabled:c||void 0,autoFocus:u,onKeyDown:v},y,E,D,M);return sS()({ourProps:F,theirProps:d,slot:P,defaultTag:QMr,name:"Combobox.Button"})}var XMr="div",JMr=Kze.RenderStrategy|Kze.Static;function eOr(e,t){var n,i,r;let o=I.useId(),{id:s=`headlessui-combobox-options-${o}`,hold:a=!1,anchor:l,portal:c=!1,modal:u=!0,transition:d=!1,...h}=e,f=PZ("Combobox.Options"),p=zj("Combobox.Options"),g=mMr(l);g&&(c=!0);let[m,v]=bMr(g),[y,b]=I.useState(null),w=yMr(),E=RT(t,g?m:null,f.actions.setOptionsElement,b),[A,D,T,M,P]=vp(f,Ce=>[Ce.comboboxState,Ce.inputElement,Ce.buttonElement,Ce.optionsElement,Ce.activationTrigger]),F=Xze(D||T),N=Xze(M),j=EMr(),[W,J]=qPr(d,y,j!==null?(j&PK.Open)===PK.Open:A===Na.Open);_Pr(W,D,f.actions.closeCombobox);let ee=p.__demoMode?!1:u&&A===Na.Open;VPr(ee,N);let Q=p.__demoMode?!1:u&&A===Na.Open;bPr(Q,{allowed:I.useCallback(()=>[D,T,M],[D,T,M])});let H=vp(f,f.selectors.didInputMove)?!1:W;pf(()=>{var Ce;p.optionsPropsRef.current.static=(Ce=e.static)!=null?Ce:!1},[p.optionsPropsRef,e.static]),pf(()=>{p.optionsPropsRef.current.hold=a},[p.optionsPropsRef,a]),ZPr(A===Na.Open,{container:M,accept(Ce){return Ce.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:Ce.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(Ce){Ce.setAttribute("role","none")}});let q=Xye([T?.id]),le=$F({open:A===Na.Open,option:void 0}),Y=Ja(()=>{f.actions.setActivationTrigger(Wx.Pointer)}),G=Ja(Ce=>{Ce.preventDefault(),f.actions.setActivationTrigger(Wx.Pointer)}),pe=JJe(g?w():{},{"aria-labelledby":q,role:"listbox","aria-multiselectable":p.mode===zy.Multi?!0:void 0,id:s,ref:E,style:{...h.style,...v,"--input-width":d8t(W,D,!0).width,"--button-width":d8t(W,T,!0).width},onWheel:P===Wx.Pointer?void 0:Y,onMouseDown:G,...$Pr(J)}),U=W&&A===Na.Closed&&!e.static,K=eVe(U,(n=p.virtual)==null?void 0:n.options),ie=eVe(U,p.value),ce=I.useCallback(Ce=>p.compare(ie,Ce),[p.compare,ie]),de=I.useMemo(()=>{if(!p.virtual)return p;if(K===void 0)throw new Error("Missing `options` in virtual mode");return K!==p.virtual.options?{...p,virtual:{...p.virtual,options:K}}:p},[p,K,(i=p.virtual)==null?void 0:i.options]);p.virtual&&Object.assign(h,{children:Ri.createElement(MK.Provider,{value:de},Ri.createElement($Mr,{slot:le},h.children))});let oe=sS(),me=I.useMemo(()=>p.mode===zy.Multi?p:{...p,isSelected:ce},[p,ce]);return Ri.createElement(jMr,{enabled:c?e.static||W:!1,ownerDocument:F},Ri.createElement(MK.Provider,{value:me},oe({ourProps:pe,theirProps:{...h,children:Ri.createElement(xMr,{freeze:U},typeof h.children=="function"?(r=h.children)==null?void 0:r.call(h,le):h.children)},slot:le,defaultTag:XMr,features:JMr,visible:H,name:"Combobox.Options"})))}var tOr="div";function nOr(e,t){var n,i,r;let o=zj("Combobox.Option"),s=PZ("Combobox.Option"),a=I.useId(),{id:l=`headlessui-combobox-option-${a}`,value:c,disabled:u=(r=(i=(n=o.virtual)==null?void 0:n.disabled)==null?void 0:i.call(n,c))!=null?r:!1,order:d=null,...h}=e,[f]=vp(s,J=>[J.inputElement]),p=INn(f),g=vp(s,I.useCallback(J=>s.selectors.isActive(J,c,l),[c,l])),m=o.isSelected(c),v=I.useRef(null),y=UF({disabled:u,value:c,domRef:v,order:d}),b=I.useContext(HNn),w=RT(t,v,b?b.measureElement:null),E=Ja(()=>{s.actions.setIsTyping(!1),s.actions.onChange(c)});pf(()=>s.actions.registerOption(l,y),[y,l]);let A=vp(s,I.useCallback(J=>s.selectors.shouldScrollIntoView(J,c,l),[c,l]));pf(()=>{if(A)return Mw().requestAnimationFrame(()=>{var J,ee;(ee=(J=v.current)==null?void 0:J.scrollIntoView)==null||ee.call(J,{block:"nearest"})})},[A,v]);let D=Ja(J=>{J.preventDefault(),J.button===net.Left&&(u||(E(),Zze()||requestAnimationFrame(()=>p()),o.mode===zy.Single&&s.actions.closeCombobox()))}),T=Ja(()=>{if(u)return s.actions.goToOption({focus:up.Nothing});let J=o.calculateIndex(c);s.actions.goToOption({focus:up.Specific,idx:J})}),M=HPr(),P=Ja(J=>M.update(J)),F=Ja(J=>{if(!M.wasMoved(J)||u||g&&s.state.activationTrigger===Wx.Pointer)return;let ee=o.calculateIndex(c);s.actions.goToOption({focus:up.Specific,idx:ee},Wx.Pointer)}),N=Ja(J=>{M.wasMoved(J)&&(u||g&&(o.optionsPropsRef.current.hold||s.state.activationTrigger===Wx.Pointer&&s.actions.goToOption({focus:up.Nothing})))}),j=$F({active:g,focus:g,selected:m,disabled:u}),W={id:l,ref:w,role:"option",tabIndex:u===!0?void 0:-1,"aria-disabled":u===!0?!0:void 0,"aria-selected":m,disabled:void 0,onMouseDown:D,onFocus:T,onPointerEnter:P,onMouseEnter:P,onPointerMove:F,onMouseMove:F,onPointerLeave:N,onMouseLeave:N};return sS()({ourProps:W,theirProps:h,slot:j,defaultTag:tOr,name:"Combobox.Option"})}var iOr=aS(GMr),rOr=aS(ZMr),WNn=aS(YMr),oOr=KNr,UNn=aS(eOr),Jye=aS(nOr),sOr=Object.assign(iOr,{Input:WNn,Button:rOr,Label:oOr,Options:UNn,Option:Jye}),aOr=()=>{const e=(0,Yye.c)(32),t=aet(),{push:n}=ebe(),i=I.useRef(null),r=lOr(),[o,s]=I.useState("");let a;e[0]!==r||e[1]!==o?(a=()=>r(o),e[0]=r,e[1]=o,e[2]=a):a=e[2];const[l,c]=I.useState(a);let u;e[3]!==r?(u=s7(200,j=>{c(r(j))}),e[3]=r,e[4]=u):u=e[4];const d=u,[h]=I.useState(i),f=h.current===document.activeElement;let p,g;e[5]!==d||e[6]!==o?(p=()=>{d(o)},g=[d,o],e[5]=d,e[6]=o,e[7]=p,e[8]=g):(p=e[7],g=e[8]),I.useEffect(p,g);let m,v,y;if(e[9]!==t||e[10]!==n){m=t.at(-1);let j;e[14]!==n?(j=W=>{W&&n("field"in W?{name:W.field.name,def:W.field}:{name:W.type.name,def:W.type})},e[14]=n,e[15]=j):j=e[15],v=j,y=t.length===1||$l(m.def)||rc(m.def)||md(m.def),e[9]=t,e[10]=n,e[11]=m,e[12]=v,e[13]=y}else m=e[11],v=e[12],y=e[13];if(!y)return null;const w=f?void 0:"idle",E=`Search ${m.name}...`;let A,D;e[16]===Symbol.for("react.memo_cache_sentinel")?(A=()=>{i.current.focus()},D=S.jsx(g0r,{}),e[16]=A,e[17]=D):(A=e[16],D=e[17]);let T,M;e[18]===Symbol.for("react.memo_cache_sentinel")?(M=j=>s(j.target.value),T=OR(OR(fh.searchInDocs.key).replaceAll("-"," ")),e[18]=T,e[19]=M):(T=e[18],M=e[19]);let P;e[20]!==o||e[21]!==T?(P=S.jsxs("div",{className:"graphiql-doc-explorer-search-input",onClick:A,children:[D,S.jsx(WNn,{autoComplete:"off",onChange:M,placeholder:T,ref:i,value:o,"data-cy":"doc-explorer-input"})]}),e[20]=o,e[21]=T,e[22]=P):P=e[22];let F;e[23]!==f||e[24]!==l?(F=f&&S.jsxs(UNn,{"data-cy":"doc-explorer-list",children:[l.within.length+l.types.length+l.fields.length===0?S.jsx("div",{className:"graphiql-doc-explorer-search-empty",children:"No results found"}):l.within.map(uOr),l.within.length>0&&l.types.length+l.fields.length>0?S.jsx("div",{className:"graphiql-doc-explorer-search-divider",children:"Other results"}):null,l.types.map(dOr),l.fields.map(hOr)]}),e[23]=f,e[24]=l,e[25]=F):F=e[25];let N;return e[26]!==v||e[27]!==P||e[28]!==F||e[29]!==w||e[30]!==E?(N=S.jsxs(sOr,{as:"div",className:"graphiql-doc-explorer-search",onChange:v,"data-state":w,"aria-label":E,children:[P,F]}),e[26]=v,e[27]=P,e[28]=F,e[29]=w,e[30]=E,e[31]=N):N=e[31],N};function lOr(){const e=(0,Yye.c)(5),t=aet(),n=Ip(cOr);let i;e[0]!==t?(i=t.at(-1),e[0]=t,e[1]=i):i=e[1];const r=i;let o;return e[2]!==r||e[3]!==n?(o=s=>{const a={within:[],types:[],fields:[]};if(!n)return a;const l=r.def,c=n.getTypeMap();let u=Object.keys(c);l&&(u=u.filter(d=>d!==l.name),u.unshift(l.name));for(const d of u){if(a.within.length+a.types.length+a.fields.length>=100)break;const h=c[d];if(l!==h&&CRe(d,s)&&a.types.push({type:h}),!$l(h)&&!rc(h)&&!md(h))continue;const f=h.getFields();for(const p in f){const g=f[p];let m;if(!CRe(p,s))if("args"in g){if(m=g.args.filter(v=>CRe(v.name,s)),m.length===0)continue}else continue;a[l===h?"within":"fields"].push(...m?m.map(v=>({type:h,field:g,argument:v})):[{type:h,field:g}])}}return a},e[2]=r,e[3]=n,e[4]=o):o=e[4],o}function cOr(e){return e.schema}function CRe(e,t){try{const n=t.replaceAll(/[^_0-9A-Za-z]/g,i=>"\\"+i);return new RegExp(n,"i").test(e)}catch{return e.toLowerCase().includes(t.toLowerCase())}}var set=e=>{const t=(0,Yye.c)(2),{type:n}=e;let i;return t[0]!==n.name?(i=S.jsx("span",{className:"graphiql-doc-explorer-search-type",children:n.name}),t[0]=n.name,t[1]=i):i=t[1],i},$Nn=e=>{const t=(0,Yye.c)(7),{field:n,argument:i}=e;let r;t[0]!==n.name?(r=S.jsx("span",{className:"graphiql-doc-explorer-search-field",children:n.name}),t[0]=n.name,t[1]=r):r=t[1];let o;t[2]!==i?(o=i?S.jsxs(S.Fragment,{children:["(",S.jsx("span",{className:"graphiql-doc-explorer-search-argument",children:i.name}),":"," ",tpe(i.type,fOr),")"]}):null,t[2]=i,t[3]=o):o=t[3];let s;return t[4]!==r||t[5]!==o?(s=S.jsxs(S.Fragment,{children:[r,o]}),t[4]=r,t[5]=o,t[6]=s):s=t[6],s};function uOr(e,t){return S.jsx(Jye,{value:e,"data-cy":"doc-explorer-option",children:S.jsx($Nn,{field:e.field,argument:e.argument})},`within-${t}`)}function dOr(e,t){return S.jsx(Jye,{value:e,"data-cy":"doc-explorer-option",children:S.jsx(set,{type:e.type})},`type-${t}`)}function hOr(e,t){return S.jsxs(Jye,{value:e,"data-cy":"doc-explorer-option",children:[S.jsx(set,{type:e.type}),".",S.jsx($Nn,{field:e.field,argument:e.argument})]},`field-${t}`)}function fOr(e){return S.jsx(set,{type:e})}var qF=on(da());bd();var pOr=on(da()),gOr=e=>{const t=(0,pOr.c)(6),{field:n}=e,{push:i}=ebe();let r;t[0]!==n||t[1]!==i?(r=s=>{s.preventDefault(),i({name:n.name,def:n})},t[0]=n,t[1]=i,t[2]=r):r=t[2];let o;return t[3]!==n.name||t[4]!==r?(o=S.jsx("a",{className:"graphiql-doc-explorer-field-name",onClick:r,href:"#",children:n.name}),t[3]=n.name,t[4]=r,t[5]=o):o=t[5],o},mOr=e=>{const t=(0,qF.c)(2),{type:n}=e;let i;return t[0]!==n?(i=p3e(n)?S.jsxs(S.Fragment,{children:[n.description?S.jsx(gE,{type:"description",children:n.description}):null,S.jsx(vOr,{type:n}),S.jsx(yOr,{type:n}),S.jsx(bOr,{type:n}),S.jsx(_Or,{type:n})]}):null,t[0]=n,t[1]=i):i=t[1],i},vOr=e=>{const t=(0,qF.c)(5),{type:n}=e;if(!$l(n))return null;let i;t[0]!==n?(i=n.getInterfaces(),t[0]=n,t[1]=i):i=t[1];const r=i;let o;return t[2]!==r.length||t[3]!==n?(o=r.length>0?S.jsx(hw,{title:"Implements",children:n.getInterfaces().map(wOr)}):null,t[2]=r.length,t[3]=n,t[4]=o):o=t[4],o},yOr=e=>{const t=(0,qF.c)(12),{type:n}=e,[i,r]=I.useState(!1);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{r(!0)},t[0]=o):o=t[0];const s=o;if(!$l(n)&&!rc(n)&&!md(n))return null;let a,l,c;if(t[1]!==n){const h=n.getFields();l=[],a=[];for(const f of Object.keys(h).map(p=>h[p]))f.deprecationReason?a.push(f):l.push(f);c=l.length>0?S.jsx(hw,{title:"Fields",children:l.map(COr)}):null,t[1]=n,t[2]=a,t[3]=l,t[4]=c}else a=t[2],l=t[3],c=t[4];let u;t[5]!==a||t[6]!==l.length||t[7]!==i?(u=a.length>0?i||l.length===0?S.jsx(hw,{title:"Deprecated Fields",children:a.map(SOr)}):S.jsx(z1,{type:"button",onClick:s,children:"Show Deprecated Fields"}):null,t[5]=a,t[6]=l.length,t[7]=i,t[8]=u):u=t[8];let d;return t[9]!==c||t[10]!==u?(d=S.jsxs(S.Fragment,{children:[c,u]}),t[9]=c,t[10]=u,t[11]=d):d=t[11],d},qNn=e=>{const t=(0,qF.c)(22),{field:n}=e;let i,r,o;if(t[0]!==n){const h="args"in n?n.args.filter(xOr):[];o="graphiql-doc-explorer-item",i=S.jsx(gOr,{field:n}),r=h.length>0?S.jsxs(S.Fragment,{children:["(",S.jsx("span",{children:h.map(f=>h.length===1?S.jsx(npe,{arg:f,inline:!0},f.name):S.jsx("div",{className:"graphiql-doc-explorer-argument-multiple",children:S.jsx(npe,{arg:f,inline:!0})},f.name))}),")"]}):null,t[0]=n,t[1]=i,t[2]=r,t[3]=o}else i=t[1],r=t[2],o=t[3];let s;t[4]!==n.type?(s=S.jsx(vD,{type:n.type}),t[4]=n.type,t[5]=s):s=t[5];let a;t[6]!==n?(a=S.jsx($Ln,{field:n}),t[6]=n,t[7]=a):a=t[7];let l;t[8]!==i||t[9]!==r||t[10]!==s||t[11]!==a?(l=S.jsxs("div",{children:[i,r,": ",s,a]}),t[8]=i,t[9]=r,t[10]=s,t[11]=a,t[12]=l):l=t[12];let c;t[13]!==n.description?(c=n.description?S.jsx(gE,{type:"description",onlyShowFirstChild:!0,children:n.description}):null,t[13]=n.description,t[14]=c):c=t[14];let u;t[15]!==n.deprecationReason?(u=S.jsx(qLn,{children:n.deprecationReason}),t[15]=n.deprecationReason,t[16]=u):u=t[16];let d;return t[17]!==o||t[18]!==l||t[19]!==c||t[20]!==u?(d=S.jsxs("div",{className:o,children:[l,c,u]}),t[17]=o,t[18]=l,t[19]=c,t[20]=u,t[21]=d):d=t[21],d},bOr=e=>{const t=(0,qF.c)(12),{type:n}=e,[i,r]=I.useState(!1);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{r(!0)},t[0]=o):o=t[0];const s=o;if(!fm(n))return null;let a,l,c;if(t[1]!==n){c=[],a=[];for(const h of n.getValues())h.deprecationReason?a.push(h):c.push(h);l=c.length>0&&S.jsx(hw,{title:"Enum Values",children:c.map(EOr)}),t[1]=n,t[2]=a,t[3]=l,t[4]=c}else a=t[2],l=t[3],c=t[4];let u;t[5]!==a||t[6]!==i||t[7]!==c.length?(u=a.length>0&&(i||!c.length?S.jsx(hw,{title:"Deprecated Enum Values",children:a.map(AOr)}):S.jsx(z1,{type:"button",onClick:s,children:"Show Deprecated Values"})),t[5]=a,t[6]=i,t[7]=c.length,t[8]=u):u=t[8];let d;return t[9]!==l||t[10]!==u?(d=S.jsxs(S.Fragment,{children:[l,u]}),t[9]=l,t[10]=u,t[11]=d):d=t[11],d},GNn=e=>{const t=(0,qF.c)(10),{value:n}=e;let i;t[0]!==n.name?(i=S.jsx("div",{className:"graphiql-doc-explorer-enum-value",children:n.name}),t[0]=n.name,t[1]=i):i=t[1];let r;t[2]!==n.description?(r=n.description&&S.jsx(gE,{type:"description",children:n.description}),t[2]=n.description,t[3]=r):r=t[3];let o;t[4]!==n.deprecationReason?(o=n.deprecationReason&&S.jsx(gE,{type:"deprecation",children:n.deprecationReason}),t[4]=n.deprecationReason,t[5]=o):o=t[5];let s;return t[6]!==i||t[7]!==r||t[8]!==o?(s=S.jsxs("div",{className:"graphiql-doc-explorer-item",children:[i,r,o]}),t[6]=i,t[7]=r,t[8]=o,t[9]=s):s=t[9],s},_Or=e=>{const t=(0,qF.c)(6),{type:n}=e,i=Ip(DOr);if(!i||!nL(n))return null;const r=rc(n)?"Implementations":"Possible Types";let o;t[0]!==i||t[1]!==n?(o=i.getPossibleTypes(n).map(TOr),t[0]=i,t[1]=n,t[2]=o):o=t[2];let s;return t[3]!==r||t[4]!==o?(s=S.jsx(hw,{title:r,children:o}),t[3]=r,t[4]=o,t[5]=s):s=t[5],s};function wOr(e){return S.jsx("div",{children:S.jsx(vD,{type:e})},e.name)}function COr(e){return S.jsx(qNn,{field:e},e.name)}function SOr(e){return S.jsx(qNn,{field:e},e.name)}function xOr(e){return!e.deprecationReason}function EOr(e){return S.jsx(GNn,{value:e},e.name)}function AOr(e){return S.jsx(GNn,{value:e},e.name)}function DOr(e){return e.schema}function TOr(e){return S.jsx("div",{children:S.jsx(vD,{type:e})},e.name)}var kOr=()=>{const e=(0,SLr.c)(39);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=iS("fetchError","isIntrospecting","schema","validationErrors"),e[0]=t):t=e[0];const{fetchError:n,isIntrospecting:i,schema:r,validationErrors:o}=Ip(t),s=aet(),{pop:a}=ebe();let l,c;if(e[1]!==s||e[2]!==n||e[3]!==i||e[4]!==r||e[5]!==o){if(c=s.at(-1),l=null,n){let y;e[8]===Symbol.for("react.memo_cache_sentinel")?(y=S.jsx("div",{className:"graphiql-doc-explorer-error",children:"Error fetching schema"}),e[8]=y):y=e[8],l=y}else if(o[0]){let y;e[9]!==o[0].message?(y=S.jsxs("div",{className:"graphiql-doc-explorer-error",children:["Schema is invalid: ",o[0].message]}),e[9]=o[0].message,e[10]=y):y=e[10],l=y}else if(i){let y;e[11]===Symbol.for("react.memo_cache_sentinel")?(y=S.jsx(qfe,{}),e[11]=y):y=e[11],l=y}else if(r){if(s.length===1){let y;e[13]!==r?(y=S.jsx(zLr,{schema:r}),e[13]=r,e[14]=y):y=e[14],l=y}else if(Ipe(c.def)){let y;e[15]!==c.def?(y=S.jsx(mOr,{type:c.def}),e[15]=c.def,e[16]=y):y=e[16],l=y}else if(c.def){let y;e[17]!==c.def?(y=S.jsx(PLr,{field:c.def}),e[17]=c.def,e[18]=y):y=e[18],l=y}}else{let y;e[12]===Symbol.for("react.memo_cache_sentinel")?(y=S.jsx("div",{className:"graphiql-doc-explorer-error",children:"No GraphQL schema available"}),e[12]=y):y=e[12],l=y}e[1]=s,e[2]=n,e[3]=i,e[4]=r,e[5]=o,e[6]=l,e[7]=c}else l=e[6],c=e[7];let u;if(s.length>1){let y;e[19]!==s?(y=s.at(-2),e[19]=s,e[20]=y):y=e[20],u=y.name}let d;e[21]!==a||e[22]!==u?(d=u&&S.jsxs("a",{href:"#",className:"graphiql-doc-explorer-back",onClick:y=>{y.preventDefault(),a()},"aria-label":`Go back to ${u}`,children:[S.jsx(t0r,{}),u]}),e[21]=a,e[22]=u,e[23]=d):d=e[23];let h;e[24]!==c.name?(h=S.jsx("div",{className:"graphiql-doc-explorer-title",children:c.name}),e[24]=c.name,e[25]=h):h=e[25];let f;e[26]!==d||e[27]!==h?(f=S.jsxs("div",{className:"graphiql-doc-explorer-header-content",children:[d,h]}),e[26]=d,e[27]=h,e[28]=f):f=e[28];let p;e[29]!==c.name?(p=S.jsx(aOr,{},c.name),e[29]=c.name,e[30]=p):p=e[30];let g;e[31]!==f||e[32]!==p?(g=S.jsxs("div",{className:"graphiql-doc-explorer-header",children:[f,p]}),e[31]=f,e[32]=p,e[33]=g):g=e[33];let m;e[34]!==l?(m=S.jsx("div",{className:"graphiql-doc-explorer-content",children:l}),e[34]=l,e[35]=m):m=e[35];let v;return e[36]!==g||e[37]!==m?(v=S.jsxs("section",{className:"graphiql-doc-explorer","aria-label":"Documentation Explorer",children:[g,m]}),e[36]=g,e[37]=m,e[38]=v):v=e[38],v},tVe={title:"Documentation Explorer",icon:function(){return Ip(n=>n.visiblePlugin)===tVe?S.jsx(l0r,{}):S.jsx(c0r,{})},content:kOr},goe=[{name:"Docs"}],nVe=bye((e,t)=>({explorerNavStack:goe,actions:{push(n){e(i=>{const r=i.explorerNavStack;return{explorerNavStack:r.at(-1).def===n.def?r:[...r,n]}})},pop(){e(n=>{const i=n.explorerNavStack;return{explorerNavStack:i.length>1?i.slice(0,-1):i}})},reset(){e(n=>{const i=n.explorerNavStack;return{explorerNavStack:i.length===1?i:goe}})},resolveSchemaReferenceToNavItem(n){if(!n)return;const{kind:i,typeInfo:r}=n,o=vLr(i,r);if(!o)return;const{push:s}=t().actions;switch(o.kind){case"Type":{s({name:o.type.name,def:o.type});break}case"Field":{o.type&&s({name:o.type.name,def:o.type}),s({name:o.field.name,def:o.field});break}case"Argument":{o.field&&s({name:o.field.name,def:o.field});break}case"EnumValue":{o.type&&s({name:o.type.name,def:o.type});break}}},rebuildNavStackWithSchema(n){e(i=>{const r=i.explorerNavStack;if(r.length===1)return i;const o=[...goe];let s=null;for(const a of r)if(a!==goe[0])if(a.def)if(p3e(a.def)){const l=n.getType(a.def.name);if(l)o.push({name:a.name,def:l}),s=l;else break}else{if(s===null)break;if($l(s)||md(s)){const l=s.getFields()[a.name];if(l)o.push({name:a.name,def:l});else break}else{if(_E(s)||fm(s)||rc(s)||F0(s))break;{const l=s;if(l.args.some(c=>c.name===a.name))o.push({name:a.name,def:l});else break}}}else s=null,o.push(a);return{explorerNavStack:o}})}}})),IOr=e=>{const t=(0,mLr.c)(9),{children:n}=e;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=iS("schema","validationErrors","schemaReference"),t[0]=i):i=t[0];const{schema:r,validationErrors:o,schemaReference:s}=Ip(i);let a,l;t[1]!==s?(a=()=>{const{resolveSchemaReferenceToNavItem:h}=nVe.getState().actions;h(s)},l=[s],t[1]=s,t[2]=a,t[3]=l):(a=t[2],l=t[3]),I.useEffect(a,l);let c,u;t[4]!==r||t[5]!==o?(c=()=>{const{reset:h,rebuildNavStackWithSchema:f}=nVe.getState().actions;r==null||o.length>0?h():f(r)},u=[r,o],t[4]=r,t[5]=o,t[6]=c,t[7]=u):(c=t[6],u=t[7]),I.useEffect(c,u);let d;return t[8]===Symbol.for("react.memo_cache_sentinel")?(d=[],t[8]=d):d=t[8],I.useEffect(NOr,d),n},KNn=jXe(nVe),aet=()=>KNn(POr),ebe=()=>KNn(MOr);function LOr(){const e=document.querySelector(".graphiql-doc-explorer-search-input");e?.click()}function NOr(){const e=function(n){if(!(n.altKey&&n[OXe?"metaKey":"ctrlKey"]&&n.code==="KeyK"))return;const r=document.querySelector('.graphiql-sidebar button[aria-label="Show Documentation Explorer"]');r?.click(),requestAnimationFrame(LOr)};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}function POr(e){return e.explorerNavStack}function MOr(e){return e.actions}var OOr=on(da()),ROr=e=>{const t=(0,OOr.c)(2),{children:n}=e;let i;return t[0]!==n?(i=S.jsx("div",{className:"graphiql-footer",children:n}),t[0]=n,t[1]=i):i=t[1],i},YNn=on(da()),FOr=e=>{const t=(0,YNn.c)(4),{prettify:n,copy:i,merge:r}=e;let o;return t[0]!==i||t[1]!==r||t[2]!==n?(o=S.jsxs(S.Fragment,{children:[n,r,i]}),t[0]=i,t[1]=r,t[2]=n,t[3]=o):o=t[3],o},BOr=e=>{const t=(0,YNn.c)(14),{children:n}=e,i=n===void 0?FOr:n,r=typeof i=="function",{copyQuery:o,prettifyEditors:s,mergeQuery:a}=OT();if(!r)return i;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=S.jsx(_0r,{className:"graphiql-toolbar-icon","aria-hidden":"true"}),t[0]=l):l=t[0];let c;t[1]!==s?(c=S.jsx(jce,{onClick:s,label:`Prettify query (${fh.prettify.key})`,children:l}),t[1]=s,t[2]=c):c=t[2];const u=c;let d;t[3]===Symbol.for("react.memo_cache_sentinel")?(d=S.jsx(m0r,{className:"graphiql-toolbar-icon","aria-hidden":"true"}),t[3]=d):d=t[3];let h;t[4]!==a?(h=S.jsx(jce,{onClick:a,label:`Merge fragments into query (${fh.mergeFragments.key})`,children:d}),t[4]=a,t[5]=h):h=t[5];const f=h;let p;t[6]===Symbol.for("react.memo_cache_sentinel")?(p=S.jsx(i0r,{className:"graphiql-toolbar-icon","aria-hidden":"true"}),t[6]=p):p=t[6];let g;t[7]!==o?(g=S.jsx(jce,{onClick:o,label:`Copy query (${fh.copyQuery.key})`,children:p}),t[7]=o,t[8]=g):g=t[8];const m=g;let v;return t[9]!==i||t[10]!==m||t[11]!==f||t[12]!==u?(v=i({prettify:u,copy:m,merge:f}),t[9]=i,t[10]=m,t[11]=f,t[12]=u,t[13]=v):v=t[13],v},jOr=on(da()),zOr=S.jsxs("a",{className:"graphiql-logo-link",href:"https://github.com/graphql/graphiql",target:"_blank",rel:"noreferrer",children:["Graph",S.jsx("em",{children:"i"}),"QL"]}),VOr=e=>{const t=(0,jOr.c)(2),{children:n}=e,i=n===void 0?zOr:n;let r;return t[0]!==i?(r=S.jsx("div",{className:"graphiql-logo",children:i}),t[0]=i,t[1]=r):r=t[1],r},HOr=on(da()),WOr=on(da()),UOr=Object.entries({"Execute query":OR(fh.runQuery.key),"Open the Command Palette (you must have focus in the editor)":"F1","Prettify editors":fh.prettify.key,"Copy query":fh.copyQuery.key,"Re-fetch schema using introspection":fh.refetchSchema.key,"Search in documentation":OR(fh.searchInDocs.key),"Search in editor":OR(fh.searchInEditor.key),"Merge fragments definitions into operation definition":fh.mergeFragments.key}),$Or=()=>{const e=(0,WOr.c)(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=S.jsxs("table",{className:"graphiql-table",children:[S.jsx("thead",{children:S.jsxs("tr",{children:[S.jsx("th",{children:"Short Key"}),S.jsx("th",{children:"Function"})]})}),S.jsx("tbody",{children:UOr.map(GOr)})]}),e[0]=t):t=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=S.jsx("em",{children:"i"}),e[1]=n):n=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=S.jsx("a",{href:"https://code.visualstudio.com/docs/reference/default-keybindings",target:"_blank",rel:"noreferrer",children:"Monaco editor shortcuts"}),e[2]=i):i=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=S.jsx("a",{href:"https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf",target:"_blank",rel:"noreferrer",children:"macOS"}),e[3]=r):r=e[3];let o;return e[4]===Symbol.for("react.memo_cache_sentinel")?(o=S.jsxs("div",{children:[t,S.jsxs("p",{children:["This Graph",n,"QL editor uses"," ",i,", with keybindings similar to VS Code. See the full list of shortcuts for"," ",r," ","or"," ",S.jsx("a",{href:"https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf",target:"_blank",rel:"noreferrer",children:"Windows"}),"."]})]}),e[4]=o):o=e[4],o};function qOr(e,t,n){return S.jsxs(I.Fragment,{children:[S.jsx("code",{className:"graphiql-key",children:e}),t!==n.length-1&&" + "]},e)}function GOr(e){const[t,n]=e;return S.jsxs("tr",{children:[S.jsx("td",{children:n.split("-").map(qOr)}),S.jsx("td",{children:t})]},t)}var mB={refetchSchema:`Re-fetch GraphQL schema (${fh.refetchSchema.key})`,shortCutDialog:"Open short keys dialog",settingsDialogs:"Open settings dialog"},KOr=["light","dark","system"],YOr=e=>{const t=(0,HOr.c)(72),{forcedTheme:n,showPersistHeadersSettings:i,setHiddenElement:r}=e,o=n&&KOr.includes(n)?n:void 0,{setShouldPersistHeaders:s,introspect:a,setVisiblePlugin:l,setTheme:c}=OT();let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u=iS("shouldPersistHeaders","isIntrospecting","visiblePlugin","plugins","theme","storage"),t[0]=u):u=t[0];const{shouldPersistHeaders:d,isIntrospecting:h,visiblePlugin:f,plugins:p,theme:g,storage:m}=Ip(u);let v,y;t[1]!==o||t[2]!==c?(v=()=>{o==="system"?c(null):(o==="light"||o==="dark")&&c(o)},y=[o,c],t[1]=o,t[2]=c,t[3]=v,t[4]=y):(v=t[3],y=t[4]),I.useEffect(v,y);const[b,w]=I.useState(null),[E,A]=I.useState();let D,T;t[5]===Symbol.for("react.memo_cache_sentinel")?(D=()=>{const wt=function(_t){(OXe?_t.metaKey:_t.ctrlKey)&&_t.key===","&&(_t.preventDefault(),w(QOr))};return window.addEventListener("keydown",wt),()=>{window.removeEventListener("keydown",wt)}},T=[],t[5]=D,t[6]=T):(D=t[5],T=t[6]),I.useEffect(D,T);let M;t[7]===Symbol.for("react.memo_cache_sentinel")?(M=function(pt){pt||w(null)},t[7]=M):M=t[7];const P=M;let F;t[8]===Symbol.for("react.memo_cache_sentinel")?(F=function(pt){pt||(w(null),A(void 0))},t[8]=F):F=t[8];const N=F;let j;t[9]!==m?(j=function(){try{m.clear(),A("success")}catch{A("error")}},t[9]=m,t[10]=j):j=t[10];const W=j;let J;t[11]!==s?(J=wt=>{s(wt.currentTarget.dataset.value==="true")},t[11]=s,t[12]=J):J=t[12];const ee=J;let Q;t[13]!==c?(Q=wt=>{const pt=wt.currentTarget.dataset.theme;c(pt||null)},t[13]=c,t[14]=Q):Q=t[14];const H=Q;let q;t[15]===Symbol.for("react.memo_cache_sentinel")?(q=wt=>{w(wt.currentTarget.dataset.value)},t[15]=q):q=t[15];const le=q;let Y;t[16]!==p||t[17]!==r||t[18]!==l||t[19]!==f?(Y=wt=>{const pt=Number(wt.currentTarget.dataset.index),_t=p.find((Yt,Ut)=>pt===Ut);_t===f?(l(null),r("first")):(l(_t),r(null))},t[16]=p,t[17]=r,t[18]=l,t[19]=f,t[20]=Y):Y=t[20];const G=Y;let pe;if(t[21]!==G||t[22]!==p||t[23]!==f){let wt;t[25]!==G||t[26]!==f?(wt=(pt,_t)=>{const Rt=pt===f,Yt=`${Rt?"Hide":"Show"} ${pt.title}`;return S.jsx(k0,{label:Yt,children:S.jsx(Ff,{type:"button",className:bc(Rt&&"active"),onClick:G,"data-index":_t,"aria-label":Yt,children:S.jsx(pt.icon,{"aria-hidden":"true"})})},pt.title)},t[25]=G,t[26]=f,t[27]=wt):wt=t[27],pe=p.map(wt),t[21]=G,t[22]=p,t[23]=f,t[24]=pe}else pe=t[24];let U;t[28]===Symbol.for("react.memo_cache_sentinel")?(U={marginTop:"auto"},t[28]=U):U=t[28];const K=h&&"graphiql-spin";let ie;t[29]!==K?(ie=bc(K),t[29]=K,t[30]=ie):ie=t[30];let ce;t[31]!==ie?(ce=S.jsx(w0r,{className:ie,"aria-hidden":"true"}),t[31]=ie,t[32]=ce):ce=t[32];let de;t[33]!==a||t[34]!==h||t[35]!==ce?(de=S.jsx(k0,{label:mB.refetchSchema,children:S.jsx(Ff,{type:"button",disabled:h,onClick:a,"aria-label":mB.refetchSchema,style:U,children:ce})}),t[33]=a,t[34]=h,t[35]=ce,t[36]=de):de=t[36];let oe;t[37]===Symbol.for("react.memo_cache_sentinel")?(oe=S.jsx(k0,{label:mB.shortCutDialog,children:S.jsx(Ff,{type:"button","data-value":"short-keys",onClick:le,"aria-label":mB.shortCutDialog,children:S.jsx(p0r,{"aria-hidden":"true"})})}),t[37]=oe):oe=t[37];let me;t[38]===Symbol.for("react.memo_cache_sentinel")?(me=S.jsx(k0,{label:mB.settingsDialogs,children:S.jsx(Ff,{type:"button","data-value":"settings",onClick:le,"aria-label":mB.settingsDialogs,children:S.jsx(S0r,{"aria-hidden":"true"})})}),t[38]=me):me=t[38];const Ce=b==="short-keys";let Se;t[39]===Symbol.for("react.memo_cache_sentinel")?(Se=S.jsx(Gk.Title,{className:"graphiql-dialog-title",children:"Short Keys"}),t[39]=Se):Se=t[39];let De;t[40]===Symbol.for("react.memo_cache_sentinel")?(De=S.jsxs("div",{className:"graphiql-dialog-header",children:[Se,S.jsx(yze,{children:S.jsx(Gk.Description,{children:"This modal provides a list of available keyboard shortcuts and their functions."})}),S.jsx(Gk.Close,{})]}),t[40]=De):De=t[40];let Me;t[41]===Symbol.for("react.memo_cache_sentinel")?(Me=S.jsx("div",{className:"graphiql-dialog-section",children:S.jsx($Or,{})}),t[41]=Me):Me=t[41];let qe;t[42]!==Ce?(qe=S.jsxs(Gk,{open:Ce,onOpenChange:P,children:[De,Me]}),t[42]=Ce,t[43]=qe):qe=t[43];const $=b==="settings";let he;t[44]===Symbol.for("react.memo_cache_sentinel")?(he=S.jsx(Gk.Title,{className:"graphiql-dialog-title",children:"Settings"}),t[44]=he):he=t[44];let Ie;t[45]===Symbol.for("react.memo_cache_sentinel")?(Ie=S.jsxs("div",{className:"graphiql-dialog-header",children:[he,S.jsx(yze,{children:S.jsx(Gk.Description,{children:"This modal lets you adjust header persistence, interface theme, and clear local storage."})}),S.jsx(Gk.Close,{})]}),t[45]=Ie):Ie=t[45];let Be;t[46]!==ee||t[47]!==d||t[48]!==i?(Be=i?S.jsxs("div",{className:"graphiql-dialog-section",children:[S.jsxs("div",{children:[S.jsx("div",{className:"graphiql-dialog-section-title",children:"Persist headers"}),S.jsxs("div",{className:"graphiql-dialog-section-caption",children:["Save headers upon reloading."," ",S.jsx("span",{className:"graphiql-warning-text",children:"Only enable if you trust this device."})]})]}),S.jsxs(vze,{children:[S.jsx(z1,{type:"button",id:"enable-persist-headers",className:bc(d&&"active"),"data-value":"true",onClick:ee,children:"On"}),S.jsx(z1,{type:"button",id:"disable-persist-headers",className:bc(!d&&"active"),onClick:ee,children:"Off"})]})]}):null,t[46]=ee,t[47]=d,t[48]=i,t[49]=Be):Be=t[49];let ze;t[50]!==o||t[51]!==H||t[52]!==g?(ze=!o&&S.jsxs("div",{className:"graphiql-dialog-section",children:[S.jsxs("div",{children:[S.jsx("div",{className:"graphiql-dialog-section-title",children:"Theme"}),S.jsx("div",{className:"graphiql-dialog-section-caption",children:"Adjust how the interface appears."})]}),S.jsxs(vze,{children:[S.jsx(z1,{type:"button",className:bc(g===null&&"active"),onClick:H,children:"System"}),S.jsx(z1,{type:"button",className:bc(g==="light"&&"active"),"data-theme":"light",onClick:H,children:"Light"}),S.jsx(z1,{type:"button",className:bc(g==="dark"&&"active"),"data-theme":"dark",onClick:H,children:"Dark"})]})]}),t[50]=o,t[51]=H,t[52]=g,t[53]=ze):ze=t[53];let Ye;t[54]===Symbol.for("react.memo_cache_sentinel")?(Ye=S.jsxs("div",{children:[S.jsx("div",{className:"graphiql-dialog-section-title",children:"Clear storage"}),S.jsx("div",{className:"graphiql-dialog-section-caption",children:"Remove all locally stored data and start fresh."})]}),t[54]=Ye):Ye=t[54];const it=E==="success";let ft;t[55]!==E?(ft={success:"Cleared data",error:"Failed"}[E]||"Clear data",t[55]=E,t[56]=ft):ft=t[56];let ct;t[57]!==E||t[58]!==W||t[59]!==it||t[60]!==ft?(ct=S.jsxs("div",{className:"graphiql-dialog-section",children:[Ye,S.jsx(z1,{type:"button",state:E,disabled:it,onClick:W,children:ft})]}),t[57]=E,t[58]=W,t[59]=it,t[60]=ft,t[61]=ct):ct=t[61];let et;t[62]!==$||t[63]!==Be||t[64]!==ze||t[65]!==ct?(et=S.jsxs(Gk,{open:$,onOpenChange:N,children:[Ie,Be,ze,ct]}),t[62]=$,t[63]=Be,t[64]=ze,t[65]=ct,t[66]=et):et=t[66];let ut;return t[67]!==pe||t[68]!==de||t[69]!==qe||t[70]!==et?(ut=S.jsxs("div",{className:"graphiql-sidebar",children:[pe,de,oe,me,qe,et]}),t[67]=pe,t[68]=de,t[69]=qe,t[70]=et,t[71]=ut):ut=t[71],ut};function QOr(e){return e==="settings"?null:"settings"}var ZOr=e=>{var t,n;const i=(0,GAn.c)(54);let r,o,s,a,l,c,u,d,h,f,p,g,m,v,y;i[0]!==e?({maxHistoryLength:u,plugins:v,referencePlugin:y,onEditQuery:h,onEditVariables:f,onEditHeaders:d,responseTooltip:g,defaultEditorToolsVisibility:a,isHeadersEditorEnabled:c,showPersistHeadersSettings:m,forcedTheme:l,confirmCloseTab:s,className:o,children:r,...p}=e,i[0]=e,i[1]=r,i[2]=o,i[3]=s,i[4]=a,i[5]=l,i[6]=c,i[7]=u,i[8]=d,i[9]=h,i[10]=f,i[11]=p,i[12]=g,i[13]=m,i[14]=v,i[15]=y):(r=i[1],o=i[2],s=i[3],a=i[4],l=i[5],c=i[6],u=i[7],d=i[8],h=i[9],f=i[10],p=i[11],g=i[12],m=i[13],v=i[14],y=i[15]);let b;i[16]!==v?(b=v===void 0?[e8t]:v,i[16]=v,i[17]=b):b=i[17];const w=b,E=y===void 0?tVe:y;if((t=p.toolbar)!=null&&t.additionalContent)throw new TypeError("The `toolbar.additionalContent` prop has been removed. Use render props on `GraphiQL.Toolbar` component instead.");if((n=p.toolbar)!=null&&n.additionalComponent)throw new TypeError("The `toolbar.additionalComponent` prop has been removed. Use render props on `GraphiQL.Toolbar` component instead.");if(p.keyMap)throw new TypeError("`keyMap` was removed. To use Vim or Emacs keybindings in Monaco, you can use community plugins. Monaco Vim: https://github.com/brijeshb42/monaco-vim. Monaco Emacs: https://github.com/aioutecism/monaco-emacs");if(p.readOnly)throw new TypeError("The `readOnly` prop has been removed.");const A=m??p.shouldPersistHeaders!==!1;let D;i[18]!==o||i[19]!==s||i[20]!==a||i[21]!==l||i[22]!==c||i[23]!==d||i[24]!==h||i[25]!==f||i[26]!==g||i[27]!==A?(D={showPersistHeadersSettings:A,onEditQuery:h,onEditVariables:f,onEditHeaders:d,responseTooltip:g,defaultEditorToolsVisibility:a,isHeadersEditorEnabled:c,forcedTheme:l,confirmCloseTab:s,className:o},i[18]=o,i[19]=s,i[20]=a,i[21]=l,i[22]=c,i[23]=d,i[24]=h,i[25]=f,i[26]=g,i[27]=A,i[28]=D):D=i[28];const T=D;let M;i[29]!==w?(M=w.includes(e8t),i[29]=w,i[30]=M):M=i[30];const P=M,F=P?iLr:I.Fragment,N=E===tVe?IOr:I.Fragment;let j;i[31]!==E?(j=E?[E]:[],i[31]=E,i[32]=j):j=i[32];let W;i[33]!==w||i[34]!==j?(W=[...j,...w],i[33]=w,i[34]=j,i[35]=W):W=i[35];let J;i[36]!==P||i[37]!==u?(J=P&&{maxHistoryLength:u},i[36]=P,i[37]=u,i[38]=J):J=i[38];let ee;i[39]!==r||i[40]!==T?(ee=S.jsx(XOr,{...T,children:r}),i[39]=r,i[40]=T,i[41]=ee):ee=i[41];let Q;i[42]!==N||i[43]!==ee?(Q=S.jsx(N,{children:ee}),i[42]=N,i[43]=ee,i[44]=Q):Q=i[44];let H;i[45]!==F||i[46]!==Q||i[47]!==J?(H=S.jsx(F,{...J,children:Q}),i[45]=F,i[46]=Q,i[47]=J,i[48]=H):H=i[48];let q;return i[49]!==p||i[50]!==E||i[51]!==H||i[52]!==W?(q=S.jsx(Syr,{plugins:W,referencePlugin:E,...p,children:H}),i[49]=p,i[50]=E,i[51]=H,i[52]=W,i[53]=q):q=i[53],q},SRe="graphiql-session-tab-",P8t={newTab:"New tab"},XOr=e=>{const t=(0,GAn.c)(147),{forcedTheme:n,isHeadersEditorEnabled:i,defaultEditorToolsVisibility:r,children:o,confirmCloseTab:s,className:a,onEditQuery:l,onEditVariables:c,onEditHeaders:u,responseTooltip:d,showPersistHeadersSettings:h}=e,f=i===void 0?!0:i,{addTab:p,moveTab:g,closeTab:m,changeTab:v,setVisiblePlugin:y}=OT();let b;t[0]===Symbol.for("react.memo_cache_sentinel")?(b=iS("initialVariables","initialHeaders","tabs","activeTabIndex","isFetching","visiblePlugin"),t[0]=b):b=t[0];const{initialVariables:w,initialHeaders:E,tabs:A,activeTabIndex:D,isFetching:T,visiblePlugin:M}=Ip(b),P=Ij(eRr),F=M?.content,N=M?void 0:"first";let j;t[1]!==y||t[2]!==N?(j={defaultSizeRelation:.3333333333333333,direction:"horizontal",initiallyHidden:N,onHiddenElementChange(Bt){Bt==="first"&&y(null)},sizeThresholdSecond:200,storageKey:"docExplorerFlex"},t[1]=y,t[2]=N,t[3]=j):j=t[3];const W=BOe(j);let J;t[4]===Symbol.for("react.memo_cache_sentinel")?(J={direction:"horizontal",storageKey:"editorFlex"},t[4]=J):J=t[4];const ee=BOe(J);let Q;t[5]!==E||t[6]!==w?(Q=Bt=>{if(!(Bt==="variables"||Bt==="headers"))return typeof Bt=="boolean"?Bt?void 0:"second":w||E?void 0:"second"},t[5]=E,t[6]=w,t[7]=Q):Q=t[7];let H;t[8]!==r||t[9]!==Q?(H=Q(r),t[8]=r,t[9]=Q,t[10]=H):H=t[10];let q;t[11]!==H?(q={defaultSizeRelation:3,direction:"vertical",initiallyHidden:H,sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"},t[11]=H,t[12]=q):q=t[12];const le=BOe(q);let Y;t[13]!==r||t[14]!==E||t[15]!==w||t[16]!==f?(Y=()=>r==="variables"||r==="headers"?r:!w&&E&&f?"headers":"variables",t[13]=r,t[14]=E,t[15]=w,t[16]=f,t[17]=Y):Y=t[17];const[G,pe]=I.useState(Y);let U;if(t[18]!==o){let Bt,Ue;t[20]===Symbol.for("react.memo_cache_sentinel")?(Bt=S.jsx(j8.Logo,{}),Ue=S.jsx(j8.Toolbar,{}),t[20]=Bt,t[21]=Ue):(Bt=t[20],Ue=t[21]),U=I.Children.toArray(o).reduce(tRr,{logo:Bt,toolbar:Ue,children:[]}),t[18]=o,t[19]=U}else U=t[19];const{logo:K,toolbar:ie,footer:ce,children:de}=U;let oe;t[22]!==W?(oe=function(){W.hiddenElement==="first"&&W.setHiddenElement(null)},t[22]=W,t[23]=oe):oe=t[23];const me=oe;let Ce;t[24]!==le?(Ce=Bt=>{le.hiddenElement==="second"&&le.setHiddenElement(null);const Ue=Bt.currentTarget.dataset.name;pe(Ue)},t[24]=le,t[25]=Ce):Ce=t[25];const Se=Ce;let De;t[26]!==le?(De=()=>{le.setHiddenElement(le.hiddenElement==="second"?null:"second")},t[26]=le,t[27]=De):De=t[27];const Me=De;let qe;t[28]!==m||t[29]!==s?(qe=async Bt=>{const Ue=Bt.currentTarget.previousSibling,Lt=Number(Ue.id.replace(SRe,""));(!s||await s(Lt))&&m(Lt)},t[28]=m,t[29]=s,t[30]=qe):qe=t[30];const $=qe;let he;t[31]!==v?(he=Bt=>{const Ue=Number(Bt.currentTarget.id.replace(SRe,""));v(Ue)},t[31]=v,t[32]=he):he=t[32];const Ie=he,Be=`${le.hiddenElement==="second"?"Show":"Hide"} editor tools`,ze=le.hiddenElement==="second"?n0r:e0r,Ye=ee.firstRef;let it;t[33]!==P||t[34]!==me||t[35]!==l?(it=P?S.jsx(hEr,{onClickReference:me,onEdit:l}):S.jsx(qfe,{}),t[33]=P,t[34]=me,t[35]=l,t[36]=it):it=t[36];let ft;t[37]===Symbol.for("react.memo_cache_sentinel")?(ft=S.jsx(iEr,{}),t[37]=ft):ft=t[37];let ct;t[38]!==ie?(ct=S.jsxs("div",{className:"graphiql-toolbar",role:"toolbar","aria-label":"Editor Commands",children:[ft,ie]}),t[38]=ie,t[39]=ct):ct=t[39];let et;t[40]!==le.firstRef||t[41]!==it||t[42]!==ct?(et=S.jsxs("section",{className:"graphiql-query-editor","aria-label":"Operation Editor",ref:le.firstRef,children:[it,ct]}),t[40]=le.firstRef,t[41]=it,t[42]=ct,t[43]=et):et=t[43];const ut=le.dragBarRef,wt=G==="variables"&&le.hiddenElement!=="second"&&"active";let pt;t[44]!==wt?(pt=bc(wt),t[44]=wt,t[45]=pt):pt=t[45];let _t;t[46]!==Se||t[47]!==pt?(_t=S.jsx(Ff,{type:"button",className:pt,onClick:Se,"data-name":"variables",children:"Variables"}),t[46]=Se,t[47]=pt,t[48]=_t):_t=t[48];let Rt;t[49]!==G||t[50]!==le.hiddenElement||t[51]!==Se||t[52]!==f?(Rt=f&&S.jsx(Ff,{type:"button",className:bc(G==="headers"&&le.hiddenElement!=="second"&&"active"),onClick:Se,"data-name":"headers",children:"Headers"}),t[49]=G,t[50]=le.hiddenElement,t[51]=Se,t[52]=f,t[53]=Rt):Rt=t[53];let Yt;t[54]!==ze?(Yt=S.jsx(ze,{className:"graphiql-chevron-icon","aria-hidden":"true"}),t[54]=ze,t[55]=Yt):Yt=t[55];let Ut;t[56]!==Be||t[57]!==Yt||t[58]!==Me?(Ut=S.jsx(Ff,{type:"button",onClick:Me,"aria-label":Be,className:"graphiql-toggle-editor-tools",children:Yt}),t[56]=Be,t[57]=Yt,t[58]=Me,t[59]=Ut):Ut=t[59];let Gt;t[60]!==Be||t[61]!==Ut?(Gt=S.jsx(k0,{label:Be,children:Ut}),t[60]=Be,t[61]=Ut,t[62]=Gt):Gt=t[62];let Kt;t[63]!==le.dragBarRef||t[64]!==_t||t[65]!==Rt||t[66]!==Gt?(Kt=S.jsxs("div",{ref:ut,className:"graphiql-editor-tools",children:[_t,Rt,Gt]}),t[63]=le.dragBarRef,t[64]=_t,t[65]=Rt,t[66]=Gt,t[67]=Kt):Kt=t[67];const ln=G==="variables"?"Variables":"Headers",pn=G==="variables"?"":"hidden";let wn;t[68]!==c||t[69]!==pn?(wn=S.jsx(vEr,{className:pn,onEdit:c}),t[68]=c,t[69]=pn,t[70]=wn):wn=t[70];let Mn;t[71]!==G||t[72]!==f||t[73]!==u?(Mn=f&&S.jsx(aEr,{className:G==="headers"?"":"hidden",onEdit:u}),t[71]=G,t[72]=f,t[73]=u,t[74]=Mn):Mn=t[74];let Yn;t[75]!==le.secondRef||t[76]!==ln||t[77]!==wn||t[78]!==Mn?(Yn=S.jsxs("section",{className:"graphiql-editor-tool","aria-label":ln,ref:le.secondRef,children:[wn,Mn]}),t[75]=le.secondRef,t[76]=ln,t[77]=wn,t[78]=Mn,t[79]=Yn):Yn=t[79];let di;t[80]!==ee.firstRef||t[81]!==et||t[82]!==Kt||t[83]!==Yn?(di=S.jsxs("div",{className:"graphiql-editors",ref:Ye,children:[et,Kt,Yn]}),t[80]=ee.firstRef,t[81]=et,t[82]=Kt,t[83]=Yn,t[84]=di):di=t[84];const Li=di,ke=I.useRef(null);let Z;t[85]!==a?(Z=bc("graphiql-container",a),t[85]=a,t[86]=Z):Z=t[86];let ne;t[87]!==n||t[88]!==W.setHiddenElement||t[89]!==h?(ne=S.jsx(YOr,{forcedTheme:n,showPersistHeadersSettings:h,setHiddenElement:W.setHiddenElement}),t[87]=n,t[88]=W.setHiddenElement,t[89]=h,t[90]=ne):ne=t[90];let V;t[91]===Symbol.for("react.memo_cache_sentinel")?(V={minWidth:"200px"},t[91]=V):V=t[91];let re;t[92]!==F?(re=F&&S.jsx(F,{}),t[92]=F,t[93]=re):re=t[93];let ge;t[94]!==W.firstRef||t[95]!==re?(ge=S.jsx("div",{ref:W.firstRef,className:"graphiql-plugin",style:V,children:re}),t[94]=W.firstRef,t[95]=re,t[96]=ge):ge=t[96];let we;t[97]!==W.dragBarRef||t[98]!==M?(we=M&&S.jsx("div",{className:"graphiql-horizontal-drag-bar",ref:W.dragBarRef}),t[97]=W.dragBarRef,t[98]=M,t[99]=we):we=t[99];const ve=W.secondRef;let _e;t[100]!==D||t[101]!==Ie||t[102]!==$||t[103]!==A?(_e=A.map((Bt,Ue,Lt)=>S.jsxs(fRe,{dragConstraints:ke,value:Bt,isActive:Ue===D,children:[S.jsx(fRe.Button,{"aria-controls":"graphiql-session",id:`graphiql-session-tab-${Ue}`,title:Bt.title,onClick:Ie,children:Bt.title}),Lt.length>1&&S.jsx(fRe.Close,{onClick:$})]},Bt.id)),t[100]=D,t[101]=Ie,t[102]=$,t[103]=A,t[104]=_e):_e=t[104];let Ee;t[105]!==g||t[106]!==_e||t[107]!==A?(Ee=S.jsx(jLn,{ref:ke,values:A,onReorder:g,"aria-label":"Select active operation",className:"no-scrollbar",children:_e}),t[105]=g,t[106]=_e,t[107]=A,t[108]=Ee):Ee=t[108];let Le;t[109]===Symbol.for("react.memo_cache_sentinel")?(Le=S.jsx(b0r,{"aria-hidden":"true"}),t[109]=Le):Le=t[109];let be;t[110]!==p?(be=S.jsx(k0,{label:P8t.newTab,children:S.jsx(Ff,{type:"button",className:"graphiql-tab-add",onClick:p,"aria-label":P8t.newTab,children:Le})}),t[110]=p,t[111]=be):be=t[111];let Fe;t[112]!==K||t[113]!==Ee||t[114]!==be?(Fe=S.jsxs("div",{className:"graphiql-session-header",children:[Ee,be,K]}),t[112]=K,t[113]=Ee,t[114]=be,t[115]=Fe):Fe=t[115];const Ze=`${SRe}${D}`;let Ve;t[116]!==ee.dragBarRef?(Ve=S.jsx("div",{className:"graphiql-horizontal-drag-bar",ref:ee.dragBarRef}),t[116]=ee.dragBarRef,t[117]=Ve):Ve=t[117];let dt;t[118]!==T?(dt=T&&S.jsx(qfe,{}),t[118]=T,t[119]=dt):dt=t[119];let Vt;t[120]!==d?(Vt=S.jsx(pEr,{responseTooltip:d}),t[120]=d,t[121]=Vt):Vt=t[121];let Xe;t[122]!==ee.secondRef||t[123]!==ce||t[124]!==dt||t[125]!==Vt?(Xe=S.jsxs("div",{className:"graphiql-response",ref:ee.secondRef,children:[dt,Vt,ce]}),t[122]=ee.secondRef,t[123]=ce,t[124]=dt,t[125]=Vt,t[126]=Xe):Xe=t[126];let Ht;t[127]!==Li||t[128]!==Ze||t[129]!==Ve||t[130]!==Xe?(Ht=S.jsxs("div",{role:"tabpanel",id:"graphiql-session","aria-labelledby":Ze,children:[Li,Ve,Xe]}),t[127]=Li,t[128]=Ze,t[129]=Ve,t[130]=Xe,t[131]=Ht):Ht=t[131];let Qt;t[132]!==W.secondRef||t[133]!==Fe||t[134]!==Ht?(Qt=S.jsxs("div",{ref:ve,className:"graphiql-sessions",children:[Fe,Ht]}),t[132]=W.secondRef,t[133]=Fe,t[134]=Ht,t[135]=Qt):Qt=t[135];let Dt;t[136]!==ge||t[137]!==we||t[138]!==Qt?(Dt=S.jsxs("div",{className:"graphiql-main",children:[ge,we,Qt]}),t[136]=ge,t[137]=we,t[138]=Qt,t[139]=Dt):Dt=t[139];let Tt;t[140]!==Z||t[141]!==ne||t[142]!==Dt?(Tt=S.jsxs("div",{className:Z,children:[ne,Dt]}),t[140]=Z,t[141]=ne,t[142]=Dt,t[143]=Tt):Tt=t[143];let en;return t[144]!==de||t[145]!==Tt?(en=S.jsxs(k0.Provider,{children:[Tt,de]}),t[144]=de,t[145]=Tt,t[146]=en):en=t[146],en};function JOr(e){if(e&&typeof e=="object"&&"type"in e&&typeof e.type=="function")return e.type}var j8=Object.assign(ZOr,{Logo:VOr,Toolbar:BOr,Footer:ROr});function eRr(e){return!!e.monaco}function tRr(e,t){e:switch(JOr(t)){case j8.Logo:{e.logo=t;break e}case j8.Toolbar:{e.toolbar=t;break e}case j8.Footer:{e.footer=t;break e}default:e.children.push(t)}return e}function nRr(){O0e("Playground");const{graphqlAddress:e}=Nl();return I.useEffect(()=>{iRr()},[]),S.jsx(tn,{sx:{height:"100%",paddingLeft:"95px"},children:S.jsx(j8,{fetcher:async t=>{try{return(await fetch(e,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)})).json()}catch{return{error:`Failed to fetch from ${e}`}}}})})}function iRr(){const e=self;e.MonacoEnvironment={getWorker:(t,n)=>{switch(n){case"graphql":return new Worker(new URL(""+new URL("graphql.worker-D5sB41vO.js",import.meta.url).href,import.meta.url),{type:"module"});case"json":return new Worker(new URL(""+new URL("json.worker-Bd5yaG-D.js",import.meta.url).href,import.meta.url),{type:"module"});default:return new Worker(new URL(""+new URL("editor.worker-D1juwFt8.js",import.meta.url).href,import.meta.url),{type:"module"})}}}}var M8t=!1;function rRr(){if(typeof window>"u"||M8t)return;M8t=!0;const e=Object.getOwnPropertyDescriptor(Worker.prototype,"onmessage");!e||!e.set||Object.defineProperty(Worker.prototype,"onmessage",{configurable:!0,enumerable:!0,set(t){if(!t){e.set.call(this,t);return}const n=function(i){let r=i.data;typeof r=="object"&&r&&"res"in r&&Array.isArray(r.res)&&(r={...r,res:r.res.filter(s=>!(s&&typeof s=="object"&&"message"in s&&typeof s.message=="string"&&s.message.startsWith("Int cannot represent non 32-bit signed integer value")))});const o=new MessageEvent("message",{data:r});return t.call(this,o)};e.set.call(this,n)},get(){return e.get.call(this)}})}rRr();var oRr=Di.object({entityType:Di.literal("edge"),srcId:Di.string().optional(),dstId:Di.string().optional(),layers:Di.array(Di.string()).optional()}),O8t={serializeSearchParam(e){return JSON.stringify({...e,graphPath:e.graphPath?.fullPath})},deserializeSearchParam(e){const t=e.at(0);if(t!==void 0){const n=sRr.safeParse(JSON.parse(t)).data;if(n!==void 0)return{graphPath:hb.fromFullPath(n.graphPath),range:[n.range?.[0]??void 0,n.range?.[1]??void 0],selected:n.selected??{entityType:"node"}}}return{graphPath:void 0,range:[void 0,void 0],selected:{entityType:"node"}}}},R8t={serializeSearchParam(e){return JSON.stringify({...e,graphPath:e.graphPath?.fullPath})},deserializeSearchParam(e){const t=e.at(0);if(t!==void 0){const n=aRr.safeParse(JSON.parse(t));if(n.success){const i=n.data;return{question:i.question,mode:i.mode,type:i.type,graphPath:i.graphPath,startDate:i.startDate??void 0,endDate:i.endDate??void 0}}}}},QNn=Di.enum(["bool","u8","u16","u32","u64","i32","i64","f32","f64","str"]),ZNn=Di.enum(["eq","ne","gt","ge","lt","le","startsWith","endsWith","contains","notContains","isIn","isNotIn"]),sRr=Di.object({graphPath:Di.string().optional(),range:Di.tuple([Di.null().or(Di.coerce.date()),Di.null().or(Di.coerce.date())]).optional(),selected:Di.union([Di.object({entityType:Di.literal("node"),selectedConditionsByType:Di.array(Di.object({type:Di.string(),conditions:Di.array(Di.object({key:Di.string(),field:Di.string(),value:Di.string(),op:ZNn,type:QNn}))})).optional(),typeColors:Di.map(Di.string(),Di.string()).optional()}),oRr]).optional()}),aRr=Di.object({question:Di.string().optional(),mode:Di.string().optional(),type:Di.string().optional(),graphPath:hb.zodSchema(),startDate:Di.coerce.date().nullable().optional(),endDate:Di.coerce.date().nullable().optional()});function lRr(){return S.jsxs(tn,{id:"parent",sx:{position:"relative",height:"100vh",width:"100vw",overflow:"hidden"},children:[S.jsx(tn,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0},children:S.jsx(I.Suspense,{fallback:S.jsx("div",{children:"Loading"}),children:S.jsx(Sli,{})})}),S.jsx(tn,{sx:{position:"absolute",top:0,left:0,bottom:0,zIndex:1},children:S.jsx(_vr,{})}),S.jsx(Eui,{position:"bottom-right",autoClose:4e3,hideProgressBar:!0,newestOnTop:!0,closeOnClick:!0,pauseOnFocusLoss:!1,draggable:!1,pauseOnHover:!0,theme:"light",toastStyle:{fontFamily:"Manrope, sans-serif",fontSize:"0.875rem",borderRadius:"8px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",padding:"12px 16px",minHeight:"auto",borderLeft:"none"},style:{zIndex:9999}})]})}var cRr=Di.union([Di.literal("log-src-dst"),Di.literal("log-dst-src")]),uRr=Di.union([Di.literal("log-src-dst-timestamp"),Di.literal("log-dst-src-timestamp")]),js=uH({children:{search:uH({path:"search",searchParams:{builderState:O8t,selectedTab:dH(Di.string()),committed:O8t,semanticInput:R8t,committedSemanticInput:R8t}}),graph:uH({path:"graph",searchParams:{baseGraph:hb.routerSchema(),graphSource:hb.routerSchema(),initialNodes:dH(Di.array(Di.string())).default([]),grid:dH(Di.object({rhs:Di.object({open:Di.boolean(),tab:Di.literal("overview").or(Di.literal("selected")).or(Di.literal("layout")).or(Di.literal("styling")),selected:Di.discriminatedUnion("type",[Di.object({type:Di.literal("node"),id:Di.string(),tab:Di.string()}),Di.object({type:Di.literal("edge"),src:Di.string(),dst:Di.string(),tab:cRr}),Di.object({type:Di.literal("exploded-edge"),src:Di.string(),dst:Di.string(),timestamp:Di.number(),tab:uRr}),Di.object({type:Di.literal("none")})])}),temporalView:Di.object({open:Di.boolean()})})).default({rhs:{open:!0,tab:"overview",selected:{type:"none"}},temporalView:{open:!1}})},state:{expansions:dH(Di.array(Di.string()))}}),savedGraphs:uH({path:"saved-graphs/*",params:{"*":dH(Di.string())}}),gqlPlayground:uH({path:"playground"})}});function gN(){const[e,t]=iy(js.graph),n=I.useMemo(()=>{const y=e.grid.rhs;if(!(!y.open||y.tab==="overview"))return y.selected},[e]),i=I.useCallback(y=>{t(b=>{const w=typeof y=="function"?y(b.grid.rhs):y;return{...b,grid:{...b.grid,rhs:w}}},{replace:!0})},[t]),r=I.useCallback(y=>{t(b=>{const w=typeof y=="function"?y(b.grid.temporalView):y;return{...b,grid:{...b.grid,temporalView:w}}},{replace:!0})},[t]),o=I.useCallback(y=>{i(b=>({...b,open:y}))},[i]),s=I.useCallback(y=>{r(b=>({...b,open:y}))},[r]),a=I.useCallback(y=>{i(b=>({...b,tab:y}))},[i]),l=I.useCallback(y=>{i(b=>({...b,selected:{type:"node",tab:"Connections",id:y}}))},[i]),c=I.useCallback((y,b)=>{i(w=>{if(w.selected.type!=="node")return w;let E={...w,selected:{...w.selected,tab:y}};return b?.forceOpenDrawer&&(E={...E,open:!0,tab:"selected"}),E})},[i]),u=I.useCallback(y=>{i(b=>({...b,selected:{type:"edge",...y,tab:"log-src-dst"}}))},[i]),d=I.useCallback(y=>{i(b=>({...b,selected:{type:"exploded-edge",...y,tab:"log-src-dst-timestamp"}}))},[i]),h=I.useCallback(y=>{i(b=>b.selected.type==="exploded-edge"?{...b,selected:{...b.selected,tab:y}}:b)},[i]),f=I.useCallback(y=>{i(b=>b.selected.type==="edge"?{...b,selected:{...b.selected,tab:y}}:b)},[i]),p=I.useCallback(()=>{i(y=>({...y,selected:{type:"none"}}))},[i]),g=I.useMemo(()=>n?.type==="node"?n.id:void 0,[n]),m=I.useMemo(()=>n?.type==="edge"?{src:n.src,dst:n.dst}:void 0,[n]),v=I.useMemo(()=>n?.type==="exploded-edge"?{src:n.src,dst:n.dst,timestamp:n.timestamp}:void 0,[n]);return{state:e.grid,rhs:e.grid.rhs,tab:e.grid.rhs.tab,rhsSelected:n,viewedNodeId:g,viewedEdgeIdentifiers:m,viewedExplodedEdgeIdentifiers:v,onSetDrawerOpen:o,onSetTemporalViewOpen:s,onViewTab:a,onViewNode:l,onViewNodeTab:c,onViewEdge:u,onViewExplodedEdge:d,onViewEdgeTab:f,onViewExplodedEdgeTab:h,onViewNothing:p}}function dRr(e){return Yli([{path:"/",element:S.jsx(lRr,{}),children:[{path:"/",loader:()=>aai(js.search.$buildPath({}))},{path:js.search.$path(),element:S.jsx(uvr,{})},{path:js.savedGraphs.$path(),element:S.jsx(Xgr,{})},{path:js.graph.$path(),element:S.jsx(xgr,{})},{path:js.gqlPlayground.$path(),element:S.jsx(nRr,{})},...e]}])}var hRr="SchemaNode",ope="Any Type",fRr="None";function tbe(e){const{nodeTypeLabels:t}=Nl(),{client:n}=I.useContext(ac);return Yf({enabled:e!==void 0,queryKey:["schema-nodes",e?.fullPath],queryFn:async()=>{Ku(e!==void 0);const i=await n.query({__name:hRr,graph:{__args:{path:e.fullPath},schema:{nodes:{typeName:!0,properties:{key:!0,propertyType:!0,variants:!0}}}}});if(i.graph===null)throw new Error(`Graph ${e.fullPath} cannot be found!`);const r=i.graph.schema.nodes,o=new Map(r.map(({typeName:c,properties:u})=>[c,new Map(u.flatMap(({key:d,propertyType:h,variants:f})=>{const{data:p}=QNn.safeParse(h.toLowerCase());return p!==void 0?[[d,{type:p,variants:f}]]:[]}))])),s=[ope,...t!==void 0?Object.keys(t):Array.from(o?.keys()??[])],a=o.get(fRr);a!==void 0&&o.set(ope,a);const l=Object.fromEntries(s.map(c=>[c,kQ(c)]));return{schema:o,availableTypes:s,typeColors:l}}})}function pRr(e){const{client:t}=I.useContext(ac);return Yf({enabled:e!==void 0,queryKey:["schema-node-types",e?.fullPath],queryFn:async()=>{Ku(e!==void 0);const n=await t.query({__name:"SchemaNodeTypes",graph:{__args:{path:e.fullPath},schema:{nodes:{typeName:!0}}}});if(n.graph===null)throw new Error(`Graph ${e.fullPath} cannot be found!`);return n.graph.schema.nodes.map(({typeName:i})=>i)}})}var gRr=e=>{const t=J0(),{client:n}=I.useContext(ac);return{queryShortestPathForTwoNodes:(r,o,s=[])=>t.ensureQueryData({queryKey:["shortest-path",r,o,e?.fullPath,s],queryFn:async()=>(await n.query({graph:{__args:{path:e.fullPath},applyViews:{__args:{views:[...s,{snapshotLatest:!0}]},algorithms:{shortest_path:{__args:{source:r,targets:o,direction:"both"},nodes:!0}}}}})).graph?.applyViews.algorithms.shortest_path.at(0)?.nodes??[]})}},mRr=on(t7t(),1);function F8t(e){const{explodeLayers:t,...n}=e,i=t.list.flatMap(r=>{const o=new Map(r.history.timestamps.list.map(s=>[s,{}]));return r.properties.temporal.values.forEach(s=>{(0,mRr.default)(s.history.timestamps.list,s.values).forEach(([a,l])=>{if(a!==void 0){const c=o.get(a);c!==void 0&&(c[s.key]=l)}})}),[...o.entries()].map(([s,a])=>({time:s,layer:r.layerName,properties:a,style:r.metadata.values.find(l=>l.key==="_style")?.value}))});return{...n,id:R2(e.src.id,e.dst.id),src:{...e.src,displayName:e.src.properties.get?.value??e.src.id},dst:{...e.dst,displayName:e.dst.properties.get?.value??e.dst.id},layers:t.list.map(r=>({...r,history:r.history.timestamps.list})),events:i}}function vRr(e){const{nodeType:t,latestTime:n,properties:i,metadata:r,...o}=e,s=r.values.flatMap(({key:a,value:l})=>[[a,l]]);return{...o,metadata:r,properties:i,currentProps:Object.fromEntries(s),nodeType:t??"",latestTime:n?.timestamp??0}}async function yRr(e,{graphPath:t,nodes:n,nodeProperties:i,temporalNodeProperties:r,nameProperty:o,views:s}){return(await e.query({__name:"Subgraph",graph:{__args:{path:t.fullPath},applyViews:{__args:{views:s},metadata:{values:{key:!0,value:!0}},snapshotLatest:{nodes:{__args:{select:{node:{field:"NODE_NAME",where:{isIn:{list:n.map(l=>({str:l}))}}}}},list:{id:!0,nodeType:!0,latestTime:{timestamp:!0},degree:!0,metadata:{values:{key:!0,value:!0}},properties:{values:{__args:{keys:[...i,o]},key:!0,value:!0},temporal:{values:{__args:{keys:r},key:!0,values:!0,history:{timestamps:{list:!0}}}}}}}},subgraph:{__args:{nodes:n},nodes:{snapshotLatest:{list:{id:!0,degree:!0}}},edges:{list:{src:{id:!0,properties:{get:{__args:{key:o},value:!0}}},dst:{id:!0,properties:{get:{__args:{key:o},value:!0}}},layerNames:!0,isValid:!0,explodeLayers:{list:{layerName:!0,history:{timestamps:{list:!0}},metadata:{values:{key:!0,value:!0}},properties:{temporal:{values:{key:!0,history:{timestamps:{list:!0}},values:!0}}}}}}}}}}})).graph.applyViews}function bRr({graphPath:e,nodes:t,views:n}){const{nameProperty:i,nodeProperties:r,temporalNodeProperties:o}=Nl(),{client:s}=I.useContext(ac),{data:a,error:l,isLoading:c,status:u}=Yf({enabled:e!==void 0,queryKey:["subgraph",e?.fullPath,t],queryFn:async()=>{if(t.length>0){Ku(e!==void 0);const f=await yRr(s,{graphPath:e,nodes:t,nodeProperties:r,temporalNodeProperties:o,nameProperty:i,views:n}),p=Object.fromEntries(f.snapshotLatest.nodes.list.map(({id:E,degree:A})=>[E,A])),g=Object.fromEntries(f.subgraph.nodes.snapshotLatest.list.map(({id:E,degree:A})=>[E,A])),m=jSn.safeParse(f.metadata.values.find(({key:E})=>E==="_style")?.value).data?.node_types,v=f.snapshotLatest.nodes.list.map(vRr).map(E=>{const{id:A,nodeType:D,metadata:T}=E,M=m?.[D??"None"];let P,F;for(const{key:J,value:ee}of T.values)switch(J){case"_style":{P=iXe.safeParse(ee).data;break}case HSn:{F=Ntr.safeParse(ee).data;break}}const N=g[A]??0,j=p[A]??0,W=Math.max(0,j-N);return{...E,nodeType:E.nodeType===""?"None":E.nodeType,hiddenNeighbours:W,position:F,nodeStyle:P,typeStyle:M}}),y=f.subgraph.edges.list.map(F8t),b=f.subgraph.edges.list.map(F8t).map(E=>{const A=y.find(P=>P.id===E.id),{layers:D}=A||E,M=D.map(P=>P.metadata.values.find(F=>F.key==="_style")?.value).map(P=>mtr.safeParse(P).data).find(P=>P!==void 0);return{...E,style:M}}),w=b.filter(E=>E.isValid);return{nodes:v,allEdges:b,aliveEdges:w}}else return{nodes:[],allEdges:[],aliveEdges:[]}}}),[d,h]=I.useState({nodes:[],allEdges:[],aliveEdges:[]});return I.useEffect(()=>{a!==void 0&&h(a)},[a]),{data:d,error:l,isLoading:c,status:u}}function _Rr(){const{client:e}=I.useContext(ac),t=J0();return GN({mutationFn:async({baseGraphPath:n,newGraphPath:i,nodes:r,overwrite:o})=>{await e.mutation({__name:"CreateSubgraphMutation",createSubgraph:{__args:{parentPath:n.fullPath,nodes:r,newPath:i.fullPath,overwrite:o}}}),await RSn(e,i)},onSuccess:()=>t.invalidateQueries({queryKey:["graph-list"]})})}function wRr({graphSource:e,allNodes:t,temporaryStyles:n,setTemporaryStyles:i}){const{client:r}=I.useContext(ac),o=J0(),s=async({path:u,name:d,nodeStyle:h})=>{const f=await r.query({__name:"UpdateNodeStyleMutation",updateGraph:{__args:{path:u.fullPath},node:{__args:{name:d},updateMetadata:{__args:{properties:[{key:"_style",value:{object:[{key:"fill",value:{str:h.fill}},{key:"size",value:{u64:h.size}}]}}]}}}}});return Ku(f.updateGraph.node!==void 0&&f.updateGraph.node!==null,`Node ${d} does not exist on graph: ${u.fullPath}.`),f.updateGraph.node.updateMetadata},a=async({path:u,typeStyles:d})=>{const f=Di.record(Di.string(),iXe).parse(d),p=CRr(f),g=await r.query({__name:"UpdateGraphNodeStyleMutation",updateGraph:{__args:{path:u.fullPath},updateMetadata:{__args:{properties:[{key:"_style",value:{object:[{key:"node_types",value:{object:p}}]}}]}}}});return Ku(g.updateGraph!==void 0&&g.updateGraph!==null,"Node does not exist"),g.updateGraph.updateMetadata},l=async({path:u,edgeIdentifiers:d,edgeStyle:h,layer:f})=>{const{src:p,dst:g}=d,m=await r.query({__name:"UpdateEdgeStyleMutation",updateGraph:{__args:{path:u?.fullPath??""},edge:{__args:{src:p,dst:g},updateMetadata:{__args:{properties:[{key:"_style",value:{object:[{key:"stroke",value:{str:h.stroke}},{key:"lineWidth",value:{u64:h.lineWidth}},{key:"startArrowSize",value:{u64:h.startArrowSize}},{key:"endArrowSize",value:{u64:h.endArrowSize}}]}}],layer:f}}}}});return Ku(m.updateGraph.edge!==void 0&&m.updateGraph.edge!==null,"Edge does not exist"),m.updateGraph.edge.updateMetadata},{data:c}=VSn(e);return GN({mutationFn:async u=>{if(n===void 0)return;const d=[];let h=!1;for(const[g,m]of Object.entries(n.nodesByName??[])){if(m===void 0)continue;const v=t.find(w=>w.id===g),y=m.fill??v?.nodeStyle?.fill,b=m.size??v?.nodeStyle?.size;y===void 0||b===void 0||(h=!0,d.push(s({path:u,name:g,nodeStyle:{fill:y,size:b}})))}let f=!1;if(n.nodesByType!==void 0){const g={...c};for(const[m,v]of Object.entries(n.nodesByType))v!==void 0&&(g[m]={...g[m],...v});f=!0,d.push(a({path:u,typeStyles:g}))}let p=!1;for(const[g,m]of Object.entries(n.explodedEdges??[])){const v=g.indexOf("->"),y=g.slice(0,v),b=g.slice(v+2);for(const[w,E]of Object.entries(m))E!==void 0&&(p=!0,d.push(l({path:u,edgeIdentifiers:{src:y,dst:b},edgeStyle:E,layer:w})))}return await Promise.all(d),i(void 0),{nodeStylesModified:h,nodeTypeStylesModified:f,edgeStylesModified:p}},onSuccess:async u=>{if(u===void 0)return;const{nodeStylesModified:d,nodeTypeStylesModified:h,edgeStylesModified:f}=u,p=["subgraph","node","nodes-apply-views","node-at-page"],g=["subgraph","node","nodes-apply-views","node-at-page","node-type-styles"],m=["subgraph","edges","edge-exists","node-edges","node-neighbours-exploded-edges","exploded-from-edges","rolling-edges"],v=[...d?p:[],...h?g:[],...f?m:[]];await Promise.all(v.map(y=>o.invalidateQueries({queryKey:[y]}))),ua.success("Styling updated")}})}function CRr(e){return Object.entries(e).map(([t,n])=>{const i=[];return n.fill!==void 0&&i.push({key:"fill",value:{str:n.fill}}),n.size!==void 0&&i.push({key:"size",value:{u64:n.size}}),{key:t==="None"?"":t,value:{object:i}}})}var SRr=on(mN(),1),vs={dark:"#17131b",dark80:"#17131bcc",muted:"#6b6770",grey:"#e7e7e7",greyLight:"#f7f7f7",white:"#ffffff",pink:"#e3067a",red:"#f42848",orange:"#f97427",purple:"#a403f4",mint:"#3ed598",pinkLight:"#ed72b3",redLight:"#fd768c",orangeLight:"#ffbc96",purpleLight:"#dca8ff",mintLight:"#96fad1"},xRr={panelPadding:{top:50,bottom:50,left:50,right:50},typography:{fontFamily:["Geist","-apple-system","BlinkMacSystemFont","sans-serif"].join(","),fontSize:14,button:{fontSize:"0.9rem"}},components:{MuiTableCell:{styleOverrides:{root:{padding:"1rem 1.25rem",fontSize:"0.875rem",color:vs.dark,borderBottom:`1px solid ${vs.grey}`},head:{fontWeight:600,color:vs.dark,backgroundColor:vs.greyLight}}},MuiTableRow:{styleOverrides:{root:{transition:"background-color 0.15s ease-in-out","&:hover":{backgroundColor:"rgba(23, 19, 27, 0.02)"}}}},MuiButton:{styleOverrides:{root:({theme:e})=>({variants:[],textTransform:"none",padding:e.spacing(1.25,2.5),borderRadius:"10px",fontWeight:500,transition:"all 0.2s ease-in-out","&:hover":{transform:"translateY(-1px)"}}),contained:{boxShadow:"0 2px 8px rgba(23,19,27,0.12)","&:hover":{boxShadow:"0 4px 12px rgba(23,19,27,0.18)"}},startIcon:({theme:e})=>({marginLeft:0,marginRight:e.spacing(.5)}),endIcon:({theme:e})=>({marginLeft:e.spacing(.5),marginRight:0})}},MuiListItemIcon:{styleOverrides:{root:({theme:e})=>({"&.MuiListItemIcon-root":{minWidth:e.spacing(3.5)}})}},MuiListItemText:{styleOverrides:{inset:({theme:e})=>({"&.MuiListItemText-inset":{paddingLeft:e.spacing(3.5)}})}},MuiTypography:{styleOverrides:{h2:{fontSize:"1.1rem",fontWeight:600},caption:{fontSize:"0.8rem",color:vs.dark80},root:{fontSize:"0.9rem",lineHeight:1.6,color:vs.dark,overflowWrap:"break-word"}}},MuiTab:{styleOverrides:{root:({theme:e})=>({fontSize:"0.9rem",fontWeight:500,padding:e.spacing(1.5,2),minHeight:"48px",transition:"all 0.2s ease-in-out","&:hover":{backgroundColor:"rgba(23, 19, 27, 0.04)"},"&.Mui-selected":{fontWeight:600}})}},MuiDialogTitle:{styleOverrides:{root:{fontSize:"1.1rem",fontWeight:600}}},MuiDialogContentText:{styleOverrides:{root:{lineHeight:1.6,color:vs.dark}}},MuiFormLabel:{styleOverrides:{root:{color:vs.dark,fontWeight:500}}},MuiPaper:{styleOverrides:{root:{borderRadius:"14px"},elevation1:{boxShadow:"0 2px 12px rgba(23,19,27,0.08)"},elevation2:{boxShadow:"0 4px 20px rgba(23,19,27,0.1)"},elevation3:{boxShadow:"0 8px 30px rgba(23,19,27,0.12)"}}},MuiCard:{styleOverrides:{root:{borderRadius:"14px",boxShadow:"0 2px 12px rgba(23,19,27,0.08)"}}},MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{borderRadius:"10px"}}}},MuiOutlinedInput:{styleOverrides:{root:{borderRadius:"10px"},notchedOutline:{borderColor:vs.grey}}},MuiInputBase:{styleOverrides:{root:{fontSize:"0.9rem",color:vs.dark},input:{"&::placeholder":{color:vs.muted,opacity:1}}}},MuiIconButton:{styleOverrides:{root:{color:vs.muted,transition:"all 0.15s ease-in-out","&:hover":{backgroundColor:"rgba(23, 19, 27, 0.04)"}}}},MuiDivider:{styleOverrides:{root:{borderColor:vs.grey}}},MuiChip:{styleOverrides:{root:{borderRadius:"6px",fontSize:"0.8rem"},outlined:{borderColor:vs.grey},filled:{backgroundColor:vs.greyLight,color:vs.dark}}},MuiToggleButton:{styleOverrides:{root:{textTransform:"none",fontWeight:500,borderColor:vs.grey,color:vs.muted,"&.Mui-selected":{color:vs.white}}}},MuiMenu:{styleOverrides:{paper:{borderRadius:"8px",boxShadow:"0 4px 16px rgba(23, 19, 27, 0.1)"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:"0.85rem","&:hover":{backgroundColor:vs.greyLight}}}}},palette:{primary:{light:vs.pinkLight,main:vs.pink,dark:"#b8055f"},secondary:{light:vs.redLight,main:vs.red,dark:"#c31f3a"},info:{main:vs.purple,light:vs.purpleLight},success:{main:vs.mint,light:vs.mintLight},warning:{main:vs.orange,light:vs.orangeLight},error:{main:vs.red,light:vs.redLight},muted:{main:vs.muted,light:"#8a868d",dark:"#4d4a50",contrastText:vs.white},text:{primary:vs.dark,secondary:vs.dark80,disabled:vs.muted},background:{default:vs.white,paper:vs.white},divider:vs.grey,grey:{50:vs.greyLight,100:vs.grey,200:"#d4d4d4",300:"#bdbdbd",400:vs.muted,800:"#2f2b2d",900:vs.dark},action:{hover:"rgba(23, 19, 27, 0.04)",selected:"rgba(23, 19, 27, 0.08)",disabled:vs.muted,disabledBackground:vs.greyLight}}};function ERr({children:e,theme:t}){const n=d0e((0,SRr.default)(t,xRr));return S.jsxs(dAi,{theme:n,children:[S.jsx(X8i,{}),e]})}function ARr(e){const t=Mui(),n=I.useMemo(()=>dRr(e.additionalRoutes??[]),[e.additionalRoutes]);return S.jsx(I.Suspense,{fallback:S.jsx("div",{children:"Loading"}),children:S.jsx(dcn.Provider,{value:t,children:S.jsx(e6i,{children:S.jsx(hcn.Provider,{value:e,children:S.jsx(Fui,{children:S.jsx(ERr,{theme:e.muiTheme,children:S.jsx(lci,{router:n})})})})})})})}const DRr=document.getElementsByTagName("head")[0],cet=document.createElement("link");cet.rel="shortcut icon";cet.href=tor;DRr.appendChild(cet);j8t.createRoot(document.getElementById("root")??document.body).render(S.jsx(I.StrictMode,{children:S.jsx(ARr,{graphqlAddress:"/graphql"})}));</script>
      <style rel="stylesheet" crossorigin>@import"https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap";#root{height:100%}.monaco-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif;--monaco-monospace-font: "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace}.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-light .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-aria-container{position:absolute!important;top:0;height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%)}.monaco-editor,.monaco-diff-editor .synthetic-focus,.monaco-diff-editor [tabindex="0"]:focus,.monaco-diff-editor [tabindex="-1"]:focus,.monaco-diff-editor button:focus,.monaco-diff-editor input[type=button]:focus,.monaco-diff-editor input[type=checkbox]:focus,.monaco-diff-editor input[type=search]:focus,.monaco-diff-editor input[type=text]:focus,.monaco-diff-editor select:focus,.monaco-diff-editor textarea:focus{outline-width:1px;outline-style:solid;outline-offset:-1px;outline-color:var(--vscode-focusBorder);opacity:1}.monaco-workbench .workbench-hover{position:relative;font-size:13px;line-height:19px;z-index:40;overflow:hidden;max-width:700px;background:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);border-radius:3px;color:var(--vscode-editorHoverWidget-foreground);box-shadow:0 2px 8px var(--vscode-widget-shadow)}.monaco-workbench .workbench-hover-pointer{position:absolute;z-index:41;pointer-events:none}.monaco-workbench .workbench-hover-pointer:after{content:"";position:absolute;width:5px;height:5px;background-color:var(--vscode-editorHoverWidget-background);border-right:1px solid var(--vscode-editorHoverWidget-border);border-bottom:1px solid var(--vscode-editorHoverWidget-border)}.monaco-workbench .locked .workbench-hover-pointer:after{width:4px;height:4px;border-right-width:2px;border-bottom-width:2px}.monaco-workbench .workbench-hover a:focus{outline:1px solid;outline-offset:-1px;text-decoration:underline;outline-color:var(--vscode-focusBorder)}.monaco-workbench .workbench-hover a:hover,.monaco-workbench .workbench-hover a:active{color:var(--vscode-textLink-activeForeground)}.monaco-workbench .workbench-hover.right-aligned .hover-row.status-bar .actions .action-container{margin-right:0;margin-left:16px}.monaco-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.monaco-scrollable-element>.shadow{position:absolute;display:none}.monaco-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset}.monaco-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset}.monaco-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.monaco-hover{cursor:default;position:absolute;overflow:hidden;user-select:text;-webkit-user-select:text;box-sizing:border-box;animation:fadein .1s linear;line-height:1.5em;white-space:var(--vscode-hover-whiteSpace, normal)}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents){max-width:var(--vscode-hover-maxWidth, 500px);word-wrap:break-word}.monaco-hover p,.monaco-hover .code,.monaco-hover ul,.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{margin:8px 0}.monaco-hover hr{box-sizing:border-box;border-left:0px;border-right:0px;margin:4px -8px -4px;height:1px}.monaco-hover p:first-child,.monaco-hover .code:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover p:last-child,.monaco-hover .code:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ul,.monaco-hover ol{padding-left:20px}.monaco-hover .monaco-tokenized-source{white-space:var(--vscode-hover-sourceWhiteSpace, pre-wrap)}.monaco-hover .hover-row.status-bar .actions .action-container{margin-right:16px;cursor:pointer}.monaco-hover .hover-contents a.code-link:hover,.monaco-hover .hover-contents a.code-link{color:inherit}.monaco-hover .hover-contents a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under;color:var(--vscode-textLink-foreground)}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span{margin-bottom:4px;display:inline-block}.monaco-hover-content .action-container.disabled{pointer-events:none;opacity:.4;cursor:default}.monaco-editor .rendered-markdown kbd{background-color:var(--vscode-keybindingLabel-background);color:var(--vscode-keybindingLabel-foreground);border-style:solid;border-width:1px;border-radius:3px;border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);vertical-align:middle;padding:1px 3px}.monaco-aria-container{position:absolute;left:-999em}.context-view.fixed{all:initial;font-family:inherit;font-size:13px;position:fixed;color:inherit}.monaco-list{position:relative;height:100%;width:100%;white-space:nowrap}.monaco-list-rows{position:relative;width:100%;height:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{width:auto;min-width:100%}.monaco-list-row{position:absolute;box-sizing:border-box;overflow:hidden;width:100%}.monaco-list.element-focused,.monaco-list.selection-single,.monaco-list.selection-multiple{outline:0!important}.monaco-drag-image{display:inline-block;padding:1px 7px;border-radius:10px;font-size:12px;position:absolute;z-index:1000}.monaco-list-type-filter-message{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;padding:40px 1em 1em;text-align:center;white-space:normal;opacity:.7;pointer-events:none}.monaco-select-box-dropdown-padding{--dropdown-padding-top: 1px;--dropdown-padding-bottom: 1px}.hc-black .monaco-select-box-dropdown-padding,.hc-light .monaco-select-box-dropdown-padding{--dropdown-padding-top: 3px;--dropdown-padding-bottom: 4px}.monaco-select-box-dropdown-container{display:none;box-sizing:border-box}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown code{line-height:15px;font-family:var(--monaco-monospace-font)}.monaco-select-box-dropdown-container.visible{display:flex;flex-direction:column;text-align:left;width:1px;overflow:hidden;border-bottom-left-radius:3px;border-bottom-right-radius:3px}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container{flex:0 0 auto;align-self:flex-start;padding-top:var(--dropdown-padding-top);padding-bottom:var(--dropdown-padding-bottom);padding-left:1px;padding-right:1px;width:100%;overflow:hidden;box-sizing:border-box}.hc-black .monaco-select-box-dropdown-container>.select-box-dropdown-list-container{padding-top:var(--dropdown-padding-top);padding-bottom:var(--dropdown-padding-bottom)}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-text{text-overflow:ellipsis;overflow:hidden;padding-left:3.5px;white-space:nowrap;float:left}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-detail{text-overflow:ellipsis;overflow:hidden;padding-left:3.5px;white-space:nowrap;float:left;opacity:.7}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-decorator-right{text-overflow:ellipsis;overflow:hidden;padding-right:10px;white-space:nowrap;float:right}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.visually-hidden{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control{flex:1 1 auto;align-self:flex-start;opacity:0}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div{overflow:hidden;max-height:0px}.monaco-select-box{width:100%;cursor:pointer;border-radius:2px}.monaco-action-bar .action-item .monaco-select-box{cursor:pointer;min-width:100px;min-height:18px;padding:2px 23px 2px 8px}.mac .monaco-action-bar .action-item .monaco-select-box{font-size:11px;border-radius:5px}.monaco-action-bar{white-space:nowrap;height:100%}.monaco-action-bar .actions-container{display:flex;margin:0 auto;padding:0;height:100%;width:100%;align-items:center}.monaco-action-bar .action-item{display:block;align-items:center;justify-content:center;cursor:pointer;position:relative}.monaco-action-bar .action-item .icon,.monaco-action-bar .action-item .codicon{display:block}.monaco-action-bar .action-item .codicon{display:flex;align-items:center;width:16px;height:16px}.monaco-action-bar .action-label{display:flex;font-size:11px;padding:3px;border-radius:5px}.monaco-action-bar.vertical .action-label.separator{display:block;border-bottom:1px solid #bbb;padding-top:1px;margin-left:.8em;margin-right:.8em}.monaco-action-bar .action-item .action-label.separator{width:1px;height:16px;margin:5px 4px!important;cursor:default;min-width:1px;padding:0;background-color:#bbb}.monaco-action-bar .action-item.select-container{overflow:hidden;flex:1;max-width:170px;min-width:60px;display:flex;align-items:center;justify-content:center;margin-right:10px}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator{display:flex;align-items:center;cursor:default}.monaco-dropdown>.dropdown-label{cursor:pointer;height:100%;display:flex;align-items:center;justify-content:center}.monaco-dropdown-with-primary{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.monaco-action-bar .action-item.menu-entry .action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-action-bar .action-item.menu-entry.text-only .action-label{color:var(--vscode-descriptionForeground);overflow:hidden;border-radius:2px}.monaco-dropdown-with-default{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.monaco-keybinding>.monaco-keybinding-key{background-color:#ddd6;border:solid 1px rgba(204,204,204,.4);border-bottom-color:#bbb6;box-shadow:inset 0 -1px #bbb6;color:#555}.hc-black .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:solid 1px rgb(111,195,223);box-shadow:none;color:#fff}.hc-light .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:solid 1px #0F4A85;box-shadow:none;color:#292929}.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:#8080802b;border:solid 1px rgba(51,51,51,.6);border-bottom-color:#4449;box-shadow:inset 0 -1px #4449;color:#ccc}.monaco-custom-toggle{margin-left:2px;float:left;cursor:pointer;overflow:hidden;width:20px;height:20px;border-radius:3px;border:1px solid transparent;padding:1px;box-sizing:border-box;user-select:none;-webkit-user-select:none}.hc-black .monaco-custom-toggle,.hc-light .monaco-custom-toggle,.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{background:none}.monaco-custom-toggle.monaco-checkbox{height:18px;width:18px;border:1px solid transparent;border-radius:3px;margin-right:9px;margin-left:0;padding:0;opacity:1;background-size:16px!important}.monaco-action-bar .checkbox-action-item{display:flex;align-items:center;border-radius:2px;padding-right:2px}.quick-input-widget{position:absolute;width:600px;z-index:2550;left:50%;margin-left:-300px;-webkit-app-region:no-drag;border-radius:6px}.quick-input-titlebar{display:flex;align-items:center;border-top-right-radius:5px;border-top-left-radius:5px}.quick-input-left-action-bar{display:flex;margin-left:4px;flex:1}.quick-input-title{padding:3px 0;text-align:center;text-overflow:ellipsis;overflow:hidden}.quick-input-right-action-bar{display:flex;margin-right:4px;flex:1}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:center;background-repeat:no-repeat;padding:2px}.quick-input-header .quick-input-description{margin:4px 2px;flex:1}.quick-input-widget.hidden-input .quick-input-header{padding:0;margin-bottom:0}.quick-input-filter{flex-grow:1;display:flex;position:relative}.quick-input-visible-count{position:absolute;left:-10000px}.quick-input-count{align-self:center;position:absolute;right:4px;display:flex;align-items:center}.quick-input-count .monaco-count-badge{vertical-align:middle;padding:2px 4px;border-radius:2px;min-height:auto;line-height:normal}.quick-input-action .monaco-text-button{font-size:11px;padding:0 6px;display:flex;height:25px;align-items:center}.quick-input-message{margin-top:-1px;padding:5px;overflow-wrap:break-word}.quick-input-list .monaco-list{overflow:hidden;max-height:440px;padding-bottom:5px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;overflow:hidden;display:flex;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-width:1px;border-top-style:solid}.quick-input-list .quick-input-list-label{overflow:hidden;display:flex;height:100%;flex:1}.quick-input-list .quick-input-list-icon{background-size:16px;background-position:left center;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;display:flex;align-items:center;justify-content:center}.quick-input-list .quick-input-list-rows{overflow:hidden;text-overflow:ellipsis;display:flex;flex-direction:column;height:100%;flex:1;margin-left:5px}.quick-input-list .quick-input-list-rows>.quick-input-list-row{display:flex;align-items:center}.quick-input-list .quick-input-list-label-meta{opacity:.7;line-height:normal;text-overflow:ellipsis;overflow:hidden}.quick-input-list .monaco-list .monaco-list-row .monaco-highlighted-label .highlight{font-weight:700;background-color:unset;color:var(--vscode-list-highlightForeground)!important}.quick-input-list .quick-input-list-entry-action-bar{margin-top:1px}.quick-input-list .quick-input-list-entry-action-bar{margin-right:4px}.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label,.quick-input-list .quick-input-list-entry.focus-inside .quick-input-list-entry-action-bar .action-label,.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label,.quick-input-list .monaco-list-row.passive-focused .quick-input-list-entry-action-bar .action-label{display:flex}.quick-input-list .quick-input-list-separator-as-item{padding:4px 6px;font-size:12px}.monaco-text-button{box-sizing:border-box;display:flex;width:100%;padding:4px;border-radius:2px;text-align:center;cursor:pointer;justify-content:center;align-items:center;border:1px solid var(--vscode-button-border, transparent);line-height:18px}.monaco-button.disabled:focus,.monaco-button.disabled{opacity:.4!important;cursor:default}.monaco-text-button .codicon{margin:0 .2em;color:inherit!important}.monaco-text-button.monaco-text-button-with-short-label{flex-direction:row;flex-wrap:wrap;padding:0 4px;overflow:hidden;height:28px}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{flex-grow:1;width:0;overflow:hidden}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label,.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{display:flex;justify-content:center;align-items:center;font-weight:400;font-style:inherit;padding:4px 0}.monaco-button-dropdown{display:flex;cursor:pointer}.monaco-button-dropdown.disabled>.monaco-button.disabled,.monaco-button-dropdown.disabled>.monaco-button.disabled:focus,.monaco-button-dropdown.disabled>.monaco-button-dropdown-separator{opacity:.4!important}.monaco-button-dropdown .monaco-button-dropdown-separator{padding:4px 0;cursor:default}.monaco-button-dropdown>.monaco-button.monaco-dropdown-button{border:1px solid var(--vscode-button-border, transparent);border-left-width:0!important;border-radius:0 2px 2px 0;display:flex;align-items:center}.monaco-description-button{display:flex;flex-direction:column;align-items:center;margin:4px 5px}.monaco-description-button .monaco-button-description{font-style:italic;font-size:11px;padding:4px 20px}.monaco-description-button .monaco-button-label,.monaco-description-button .monaco-button-description{display:flex;justify-content:center;align-items:center}.monaco-description-button .monaco-button-label>.codicon,.monaco-description-button .monaco-button-description>.codicon{margin:0 .2em;color:inherit!important}.monaco-button.default-colors,.monaco-button-dropdown.default-colors>.monaco-button{color:var(--vscode-button-foreground);background-color:var(--vscode-button-background)}.monaco-button.default-colors:hover,.monaco-button-dropdown.default-colors>.monaco-button:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-button.default-colors.secondary,.monaco-button-dropdown.default-colors>.monaco-button.secondary{color:var(--vscode-button-secondaryForeground);background-color:var(--vscode-button-secondaryBackground)}.monaco-button.default-colors.secondary:hover,.monaco-button-dropdown.default-colors>.monaco-button.secondary:hover{background-color:var(--vscode-button-secondaryHoverBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator{background-color:var(--vscode-button-background);border-top:1px solid var(--vscode-button-border);border-bottom:1px solid var(--vscode-button-border)}.monaco-count-badge{padding:3px 6px;border-radius:11px;font-size:11px;min-width:18px;min-height:18px;line-height:11px;font-weight:400;text-align:center;display:inline-block;box-sizing:border-box}.monaco-count-badge.long{padding:2px 3px;border-radius:2px;min-height:auto;line-height:normal}.monaco-progress-container{width:100%;height:2px;overflow:hidden}.monaco-progress-container .progress-bit{width:2%;height:2px;position:absolute;left:0;display:none}.monaco-progress-container.infinite .progress-bit{animation-name:progress;animation-duration:4s;animation-iteration-count:infinite;transform:translateZ(0);animation-timing-function:linear}.monaco-inputbox{position:relative;display:block;padding:0;box-sizing:border-box;border-radius:2px;font-size:inherit}.monaco-inputbox>.ibwrapper{position:relative;width:100%;height:100%}.monaco-inputbox>.ibwrapper>.input{display:inline-block;box-sizing:border-box;width:100%;height:100%;line-height:inherit;border:none;font-family:inherit;font-size:inherit;resize:none;color:inherit}.monaco-inputbox>.ibwrapper>textarea.input{display:block;scrollbar-width:none;outline:none}.monaco-inputbox>.ibwrapper>.mirror{position:absolute;display:inline-block;width:100%;top:0;left:0;box-sizing:border-box;white-space:pre-wrap;visibility:hidden;word-wrap:break-word}.monaco-inputbox-container .monaco-inputbox-message{display:inline-block;overflow:hidden;text-align:left;width:100%;box-sizing:border-box;padding:.4em;font-size:12px;line-height:17px;margin-top:-1px;word-wrap:break-word}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;width:16px;height:16px}.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.monaco-findInput.highlight-0 .controls,.hc-light .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.monaco-findInput.highlight-1 .controls,.hc-light .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-1 .1s linear 0s}:root{--vscode-sash-size: 4px;--vscode-sash-hover-size: 4px}.monaco-sash{position:absolute;z-index:35;touch-action:none}.monaco-sash.vertical{cursor:ew-resize;top:0;width:var(--vscode-sash-size);height:100%}.monaco-sash.horizontal{cursor:ns-resize;left:0;width:100%;height:var(--vscode-sash-size)}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";height:calc(var(--vscode-sash-size) * 2);width:calc(var(--vscode-sash-size) * 2);z-index:100;display:block;cursor:all-scroll;position:absolute}.monaco-sash.vertical>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size) * -.5);top:calc(var(--vscode-sash-size) * -1)}.monaco-sash.vertical>.orthogonal-drag-handle.end{left:calc(var(--vscode-sash-size) * -.5);bottom:calc(var(--vscode-sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{top:calc(var(--vscode-sash-size) * -.5);left:calc(var(--vscode-sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{top:calc(var(--vscode-sash-size) * -.5);right:calc(var(--vscode-sash-size) * -1)}.monaco-sash:before{content:"";pointer-events:none;position:absolute;width:100%;height:100%;background:transparent}.monaco-sash.hover:before,.monaco-sash.active:before{background:var(--vscode-sash-hoverBorder)}.monaco-sash.vertical:before{width:var(--vscode-sash-hover-size);left:calc(50% - (var(--vscode-sash-hover-size) / 2))}.monaco-sash.horizontal:before{height:var(--vscode-sash-hover-size);top:calc(50% - (var(--vscode-sash-hover-size) / 2))}.monaco-split-view2{position:relative;width:100%;height:100%}.monaco-split-view2>.sash-container{position:absolute;width:100%;height:100%;pointer-events:none}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:initial}.monaco-split-view2>.monaco-scrollable-element{width:100%;height:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{width:100%;height:100%;white-space:nowrap;position:relative}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{white-space:initial;position:absolute}.monaco-split-view2.separator-border>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{content:" ";position:absolute;top:0;left:0;z-index:5;pointer-events:none;background-color:var(--separator-border)}.monaco-table{display:flex;flex-direction:column;position:relative;height:100%;width:100%;white-space:nowrap;overflow:hidden}.monaco-table-th{width:100%;height:100%;font-weight:700;overflow:hidden;text-overflow:ellipsis}.monaco-table-th,.monaco-table-td{box-sizing:border-box;flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{content:"";position:absolute;left:calc(var(--vscode-sash-size) / 2);width:0;border-left:1px solid transparent}.monaco-tl-row{display:flex;height:100%;align-items:center;position:relative}.monaco-tl-indent{height:100%;position:absolute;top:0;left:16px;pointer-events:none}.monaco-tl-indent>.indent-guide{display:inline-block;box-sizing:border-box;height:100%;border-left:1px solid transparent}.monaco-tl-twistie,.monaco-tl-contents{height:100%}.monaco-tl-twistie{font-size:10px;text-align:right;padding-right:6px;flex-shrink:0;width:16px;display:flex!important;align-items:center;justify-content:center;transform:translate(3px)}.monaco-tree-type-filter{position:absolute;top:0;display:flex;padding:3px;max-width:200px;z-index:100;margin:0 6px;border:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px}.monaco-tree-type-filter-grab{display:flex!important;align-items:center;justify-content:center;cursor:grab;margin-right:2px}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container{position:absolute;top:0;left:0;width:100%;height:0;z-index:13;background-color:var(--vscode-sideBar-background)}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row.monaco-list-row{position:absolute;width:100%;opacity:1!important;overflow:hidden;background-color:var(--vscode-sideBar-background)}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-container-shadow{position:absolute;bottom:-3px;left:0;height:0px;width:100%}.monaco-icon-label:before{background-size:16px;background-position:left center;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;line-height:inherit!important;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;flex-shrink:0}.monaco-icon-label-iconpath{width:16px;height:16px;padding-left:2px;margin-top:2px;display:flex}.monaco-icon-label>.monaco-icon-label-container{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.7;margin-left:.5em;font-size:.9em;white-space:pre}.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{font-style:italic}.monaco-icon-label.deprecated{text-decoration:line-through;opacity:.66}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{text-decoration:line-through}.monaco-icon-label:after{opacity:.75;font-size:90%;font-weight:600;margin:auto 16px 0 5px;text-align:center}.monaco-keybinding{display:flex;align-items:center;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{display:inline-block;border-style:solid;border-width:1px;border-radius:3px;vertical-align:middle;font-size:11px;padding:3px 5px;margin:0 2px}.monaco-editor{position:relative;overflow:visible;-webkit-text-size-adjust:100%;color:var(--vscode-editor-foreground);background-color:var(--vscode-editor-background);overflow-wrap:initial}.monaco-editor-background{background-color:var(--vscode-editor-background)}.monaco-editor .rangeHighlight{background-color:var(--vscode-editor-rangeHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-rangeHighlightBorder)}.monaco-editor .symbolHighlight{background-color:var(--vscode-editor-symbolHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-symbolHighlightBorder)}.monaco-editor .overflow-guard{position:relative;overflow:hidden}.monaco-editor .view-overlays>div,.monaco-editor .margin-view-overlays>div{position:absolute;width:100%}.monaco-editor .squiggly-error:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorError-background)}.monaco-editor .squiggly-warning:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorWarning-background)}.monaco-editor .squiggly-info:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorInfo-background)}.monaco-editor.showDeprecated .squiggly-inline-deprecated{text-decoration:line-through;text-decoration-color:var(--vscode-editor-foreground, inherit)}.monaco-editor .inputarea{min-width:0;min-height:0;margin:0;padding:0;position:absolute;outline:none!important;resize:none;border:none;overflow:hidden;color:transparent;background-color:transparent;z-index:-10}.monaco-editor .inputarea.ime-input{z-index:10;caret-color:var(--vscode-editorCursor-foreground);color:var(--vscode-editor-foreground)}.monaco-editor .margin-view-overlays .line-numbers{bottom:0;font-variant-numeric:tabular-nums;position:absolute;text-align:right;display:inline-block;vertical-align:middle;box-sizing:border-box;cursor:default}.monaco-editor .relative-current-line-number{text-align:left;display:inline-block;width:100%}.monaco-editor .blockDecorations-container{position:absolute;top:0;pointer-events:none}.monaco-editor .blockDecorations-block{position:absolute;box-sizing:border-box}.monaco-editor .view-overlays .current-line,.monaco-editor .margin-view-overlays .current-line{display:block;position:absolute;left:0;top:0;box-sizing:border-box;height:100%}.monaco-editor .lines-content .cdr{position:absolute;height:100%}.monaco-editor .glyph-margin-widgets .cgmr{position:absolute;display:flex;align-items:center;justify-content:center}.monaco-editor .glyph-margin-widgets .cgmr.codicon-modifier-spin:before{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.monaco-editor .lines-content .core-guide{position:absolute;box-sizing:border-box;height:100%}.mtkcontrol{color:#fff!important;background:#960000!important}.mtkoverflow{background-color:var(--vscode-button-background, var(--vscode-editor-background));color:var(--vscode-button-foreground, var(--vscode-editor-foreground));border-width:1px;border-style:solid;border-color:var(--vscode-contrastBorder);border-radius:2px;padding:4px;cursor:pointer}.monaco-editor.enable-user-select{user-select:initial;-webkit-user-select:initial}.monaco-editor .lines-content>.view-lines>.view-line>span{top:0;bottom:0;position:absolute}.monaco-editor .mtkw{color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .mtkz{display:inline-block;color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .lines-decorations{position:absolute;top:0;background:#fff}.monaco-editor .margin-view-overlays .cldr{position:absolute;height:100%}.monaco-editor .margin-view-overlays .cmdr{position:absolute;left:0;width:100%;height:100%}.monaco-editor .minimap.slider-mouseover:hover .minimap-slider,.monaco-editor .minimap.slider-mouseover .minimap-slider.active{opacity:1}.monaco-editor .minimap-shadow-visible{position:absolute;left:-6px;width:6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{position:absolute;left:-1px;width:1px}.monaco-editor .overlayWidgets{position:absolute;top:0;left:0}.monaco-editor .view-ruler{position:absolute;top:0;box-shadow:1px 0 0 0 var(--vscode-editorRuler-foreground) inset}.monaco-editor .scroll-decoration{position:absolute;top:0;left:0;height:6px;box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset}.monaco-editor .cursors-layer>.cursor{position:absolute;overflow:hidden;box-sizing:border-box}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{border-bottom-width:2px;border-bottom-style:solid;background:transparent!important}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{border-bottom-width:1px;border-bottom-style:solid;background:transparent!important}.monaco-editor .mwh{position:absolute;color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .diff-hidden-lines{height:0px;transform:translateY(-10px);font-size:13px;line-height:14px}.monaco-editor .diff-hidden-lines:not(.dragging) .top:hover,.monaco-editor .diff-hidden-lines:not(.dragging) .bottom:hover,.monaco-editor .diff-hidden-lines .top.dragging,.monaco-editor .diff-hidden-lines .bottom.dragging{background-color:var(--vscode-focusBorder)}.monaco-editor .diff-hidden-lines .top,.monaco-editor .diff-hidden-lines .bottom{transition:background-color .1s ease-out;height:4px;background-color:transparent;background-clip:padding-box;border-bottom:2px solid transparent;border-top:4px solid transparent}.monaco-editor.draggingUnchangedRegion.canMoveTop:not(.canMoveBottom) *,.monaco-editor .diff-hidden-lines .top.canMoveTop:not(.canMoveBottom),.monaco-editor .diff-hidden-lines .bottom.canMoveTop:not(.canMoveBottom){cursor:n-resize!important}.monaco-editor.draggingUnchangedRegion:not(.canMoveTop).canMoveBottom *,.monaco-editor .diff-hidden-lines .top:not(.canMoveTop).canMoveBottom,.monaco-editor .diff-hidden-lines .bottom:not(.canMoveTop).canMoveBottom{cursor:s-resize!important}.monaco-editor.draggingUnchangedRegion.canMoveTop.canMoveBottom *,.monaco-editor .diff-hidden-lines .top.canMoveTop.canMoveBottom,.monaco-editor .diff-hidden-lines .bottom.canMoveTop.canMoveBottom{cursor:ns-resize!important}.monaco-editor .noModificationsOverlay{z-index:1;background:var(--vscode-editor-background);display:flex;justify-content:center;align-items:center}.monaco-editor .diff-hidden-lines .center{background:var(--vscode-diffEditor-unchangedRegionBackground);color:var(--vscode-diffEditor-unchangedRegionForeground);overflow:hidden;display:block;text-overflow:ellipsis;white-space:nowrap;height:24px;box-shadow:inset 0 -5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow),inset 0 5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow)}.monaco-editor .diff-hidden-lines .center a:hover .codicon{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .movedOriginal,.monaco-editor .movedModified{border:2px solid var(--vscode-diffEditor-move-border)}.monaco-editor .movedOriginal.currentMove,.monaco-editor .movedModified.currentMove{border:2px solid var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines{position:absolute;pointer-events:none}.monaco-editor .char-delete.diff-range-empty{margin-left:-1px;border-left:solid var(--vscode-diffEditor-removedTextBackground) 3px}.monaco-editor .char-insert.diff-range-empty{border-left:solid var(--vscode-diffEditor-insertedTextBackground) 3px}.monaco-diff-editor .diff-moved-code-block .action-bar .action-label.codicon{width:12px;height:12px;font-size:12px}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar{background:#0000}.monaco-editor .insert-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-diff-editor .delete-sign{font-size:11px!important;opacity:.7!important;display:flex!important;align-items:center}.monaco-editor.hc-black .insert-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .delete-sign,.monaco-editor.hc-light .insert-sign,.monaco-diff-editor.hc-light .insert-sign,.monaco-editor.hc-light .delete-sign,.monaco-diff-editor.hc-light .delete-sign{opacity:1}.monaco-editor .inline-deleted-margin-view-zone,.monaco-editor .inline-added-margin-view-zone{text-align:right}.monaco-editor .arrow-revert-change{z-index:10;position:absolute}.monaco-editor .char-insert,.monaco-diff-editor .char-insert{background-color:var(--vscode-diffEditor-insertedTextBackground)}.monaco-editor .line-insert,.monaco-diff-editor .line-insert{background-color:var(--vscode-diffEditor-insertedLineBackground, var(--vscode-diffEditor-insertedTextBackground))}.monaco-editor .line-insert,.monaco-editor .char-insert{box-sizing:border-box;border:1px solid var(--vscode-diffEditor-insertedTextBorder)}.monaco-editor.hc-black .line-insert,.monaco-editor.hc-light .line-insert,.monaco-editor.hc-black .char-insert,.monaco-editor.hc-light .char-insert{border-style:dashed}.monaco-editor .line-delete,.monaco-editor .char-delete{box-sizing:border-box;border:1px solid var(--vscode-diffEditor-removedTextBorder)}.monaco-editor.hc-black .line-delete,.monaco-editor.hc-light .line-delete,.monaco-editor.hc-black .char-delete,.monaco-editor.hc-light .char-delete{border-style:dashed}.monaco-editor .inline-added-margin-view-zone,.monaco-editor .gutter-insert,.monaco-diff-editor .gutter-insert{background-color:var(--vscode-diffEditorGutter-insertedLineBackground, var(--vscode-diffEditor-insertedLineBackground), var(--vscode-diffEditor-insertedTextBackground))}.monaco-editor .char-delete,.monaco-diff-editor .char-delete,.monaco-editor .inline-deleted-text{background-color:var(--vscode-diffEditor-removedTextBackground)}.monaco-editor .line-delete,.monaco-diff-editor .line-delete{background-color:var(--vscode-diffEditor-removedLineBackground, var(--vscode-diffEditor-removedTextBackground))}.monaco-editor .inline-deleted-margin-view-zone,.monaco-editor .gutter-delete,.monaco-diff-editor .gutter-delete{background-color:var(--vscode-diffEditorGutter-removedLineBackground, var(--vscode-diffEditor-removedLineBackground), var(--vscode-diffEditor-removedTextBackground))}.monaco-diff-editor.side-by-side .editor.modified{box-shadow:-6px 0 5px -5px var(--vscode-scrollbar-shadow);border-left:1px solid var(--vscode-diffEditor-border)}.monaco-diff-editor.side-by-side .editor.original{box-shadow:6px 0 5px -5px var(--vscode-scrollbar-shadow);border-right:1px solid var(--vscode-diffEditor-border)}.monaco-diff-editor .gutter{position:relative;overflow:hidden;flex-shrink:0;flex-grow:0}.monaco-diff-editor .gutter .gutterItem .background{position:absolute;height:100%;left:50%;width:1px;border-left:2px var(--vscode-menu-border) solid}.monaco-diff-editor .gutter .gutterItem .buttons{position:absolute;width:100%;display:flex;justify-content:center;align-items:center}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar .monaco-action-bar .actions-container{width:fit-content;border-radius:4px;background:var(--vscode-editorGutter-commentRangeForeground)}.monaco-diff-editor .diff-hidden-lines-compact .line-left,.monaco-diff-editor .diff-hidden-lines-compact .line-right{height:1px;border-top:1px solid;border-color:var(--vscode-editorCodeLens-foreground);opacity:.5;margin:auto;width:100%}.monaco-component.diff-review .diff-review-line-number{text-align:right;display:inline-block;color:var(--vscode-editorLineNumber-foreground)}.monaco-component.diff-review .diff-review-shadow{position:absolute;box-shadow:var(--vscode-scrollbar-shadow) 0 -6px 6px -6px inset}.monaco-component.diff-review .diff-review-spacer{display:inline-block;width:10px;vertical-align:middle}.monaco-component.diff-review .diff-review-actions .action-label{width:16px;height:16px;margin:2px 0}.monaco-component.multiDiffEditor{background:var(--vscode-multiDiffEditor-background);position:relative;height:100%;width:100%;overflow-y:hidden}.monaco-component.multiDiffEditor>div{position:absolute;top:0;left:0;height:100%;width:100%}.monaco-component.multiDiffEditor>div.placeholder{visibility:hidden;display:grid;place-items:center;place-content:center}.monaco-component.multiDiffEditor .active{--vscode-multiDiffEditor-border: var(--vscode-focusBorder)}.monaco-component.multiDiffEditor .multiDiffEntry{display:flex;flex-direction:column;flex:1;overflow:hidden}.monaco-component.multiDiffEditor .multiDiffEntry .collapse-button{margin:0 5px;cursor:pointer}.monaco-component.multiDiffEditor .multiDiffEntry .header{z-index:1000;background:var(--vscode-editor-background)}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content{margin:8px 0 0;padding:4px 5px;border-top:1px solid var(--vscode-multiDiffEditor-border);display:flex;align-items:center;color:var(--vscode-foreground);background:var(--vscode-multiDiffEditor-headerBackground)}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .file-path .status{font-weight:600;opacity:.75;margin:0 10px;line-height:22px}.monaco-component.multiDiffEditor .multiDiffEntry .editorParent{flex:1;display:flex;flex-direction:column;border-bottom:1px solid var(--vscode-multiDiffEditor-border);overflow:hidden}.monaco-editor .bracket-match{box-sizing:border-box;background-color:var(--vscode-editorBracketMatch-background);border:1px solid var(--vscode-editorBracketMatch-border)}.inline-editor-progress-decoration{display:inline-block;width:1em;height:1em}.inline-progress-widget{display:flex!important;justify-content:center;align-items:center}.inline-progress-widget:hover .icon{font-size:90%!important;animation:none}.monaco-editor .monaco-editor-overlaymessage .message{padding:2px 4px;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-inputValidation-infoBorder);border-radius:3px}.monaco-editor .monaco-editor-overlaymessage .message p{margin-block:0px}.monaco-editor .monaco-editor-overlaymessage .anchor{width:0!important;height:0!important;border-color:transparent;border-style:solid;z-index:1000;border-width:8px;position:absolute;left:2px}.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top,.monaco-editor .monaco-editor-overlaymessage.below .anchor.below{display:none}.post-edit-widget{box-shadow:0 0 8px 2px var(--vscode-widget-shadow);border:1px solid var(--vscode-widget-border, transparent);border-radius:4px;background-color:var(--vscode-editorWidget-background);overflow:hidden}.post-edit-widget .monaco-button{padding:2px;border:none;border-radius:0}@font-face{font-family:codicon;font-display:block;src:url(data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQiCLJXoAAAE4AAAAVE9TLzI3T0tHAAABjAAAAGBjbWFwQ5s/ewAACSQAABreZ2x5ZvJtKHkAACekAAD3FGhlYWRYl6BTAAAA4AAAADZoaGVhAlsC+QAAALwAAAAkaG10eBxB//oAAAHsAAAHOGxvY2EFi8dWAAAkBAAAA55tYXhwAu8BgQAAARgAAAAgbmFtZZP3uUsAAR64AAAB+HBvc3RjGEbCAAEgsAAAGSQAAQAAASwAAAAAASz////+AS4AAQAAAAAAAAAAAAAAAAAAAc4AAQAAAAEAAFT7+XFfDzz1AAsBLAAAAAB8JbCAAAAAAHwlsID////9AS4BLQAAAAgAAgAAAAAAAAABAAABzgF1ABcAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKADAAPgACREZMVAAObGF0bgAaAAQAAAAAAAAAAQAAAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAQBKwGQAAUAAADLANIAAAAqAMsA0gAAAJAADgBNAAACAAUDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBmRWQAwOpg8QEBLAAAABsBRwADAAAAAQAAAAAAAAAAAAAAAAACAAAAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEs//8BLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLP//ASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEs//8BLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASz//wEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASz//wEsAAABLAAAASwAAAEs//8BLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAAAAABQAAAAMAAAAsAAAABAAABSYAAQAAAAAEIAADAAEAAAAsAAMACgAABSYABAP0AAAAEgAQAAMAAuqI6ozqx+rJ6wnrTuw08QH//wAA6mDqiuqP6snqzOsL61DxAf//AAAAAAAAAAAAAAAAAAAAAAABABIAYgBmANYA1gFQAdYDngAAAAMA8QFKAUcAtAE3AZUBJQFuAQ4BdABOAcMBYAFqAWkAkQA2ATAAhgDPAP4AQQGTAHkAFwG+AJsAiAFDAR0BFAEVAagAyQCmALwBoAGAAIsBkQF5AYgBhgF6AYkBkAGLAYQAvgF/AY0AAgAEAAUACgALAAwADQAOAA8AEAASABsAHQAeAB8AXABdAF4AXwBiAGMAIgAjACQAJQAmACkAKwAsAC0ALgAvADAAMgAzADQANQA8ADkAPQA+AD8AQABCAEMARgBIAEkASwBVAFYAVwBYAGcAaQBrAG4AcgB0AHUAdgB3AHgAegB7AHwAfQB+AH8AgQCCAIQAhQCHAIkAjACPAJAAkwCUAJUAlgCXAJgAmQCaAJwAngCfAKAAoQCiAKMApQCoAKkAqgCUAKsArACuALgAuQC9AMAAxADFAMgAygDLAMwAzQDTANQA1QDWANcA2ADZANoA7wDyAPMA9gD5APoA+wD8AQABAQEGAQc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AOrvAADq7wAAAJoAAOrwAADq8AAAAJwAAOrxAADq8QAAAJ4AAOryAADq8gAAAJ8AAOrzAADq8wAAAKAAAOr0AADq9AAAAKEAAOr1AADq9QAAAKIAAOr2AADq9gAAAKMAAOr3AADq9wAAAKUAAOr4AADq+AAAAKgAAOr5AADq+QAAAKkAAOr6AADq+gAAAKoAAOr7AADq+wAAAJQAAOr8AADq/AAAAKsAAOr9AADq/QAAAKwAAOr+AADq/gAAAK4AAOr/AADq/wAAALgAAOsAAADrAAAAALkAAOsBAADrAQAAAL0AAOsCAADrAgAAAMAAAOsDAADrAwAAAMQAAOsEAADrBAAAAMUAAOsFAADrBQAAAMgAAOsGAADrBgAAAMoAAOsHAADrBwAAAMsAAOsIAADrCAAAAMwAAOsJAADrCQAAAM0AAOsLAADrCwAAANMAAOsMAADrDAAAANQAAOsNAADrDQAAANUAAOsOAADrDgAAANYAAOsPAADrDwAAANcAAOsQAADrEAAAANgAAOsRAADrEQAAANkAAOsSAADrEgAAANoAAOsTAADrEwAAAO8AAOsUAADrFAAAAPIAAOsVAADrFQAAAPMAAOsWAADrFgAAAPYAAOsXAADrFwAAAPkAAOsYAADrGAAAAPoAAOsZAADrGQAAAPsAAOsaAADrGgAAAPwAAOsbAADrGwAAAQAAAOscAADrHAAAAQEAAOsdAADrHQAAAQYAAOseAADrHgAAAQcAAOsfAADrHwAAAQgAAOsgAADrIAAAAQ0AAOshAADrIQAAAQ8AAOsiAADrIgAAARAAAOsjAADrIwAAAREAAOskAADrJAAAARMAAOslAADrJQAAARcAAOsmAADrJgAAARgAAOsnAADrJwAAARsAAOsoAADrKAAAARwAAOspAADrKQAAAR8AAOsqAADrKgAAASAAAOsrAADrKwAAASgAAOssAADrLAAAASwAAOstAADrLQAAAS0AAOsuAADrLgAAAS4AAOsvAADrLwAAAS8AAOswAADrMAAAATEAAOsxAADrMQAAATIAAOsyAADrMgAAATMAAOszAADrMwAAATQAAOs0AADrNAAAATUAAOs1AADrNQAAATYAAOs2AADr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Ot9AADrfQAAAcUAAOt+AADrfgAAAcYAAOt/AADrfwAAAccAAOuAAADrgAAAAcgAAOuBAADrgQAAAcwAAOuCAADrggAAAc0AAOuDAADrgwAAAPQAAOuEAADrhAAAAPUAAOuFAADrhQAAAPcAAOuGAADrhgAAAPgAAOuHAADrhwAAAGAAAOuIAADriAAAAGEAAOuJAADriQAAAHAAAOuKAADrigAAADoAAOuLAADriwAAAHEAAOuMAADrjAAAAGQAAOuNAADrjQAAAY8AAOuOAADrjgAAAG8AAOuPAADrjwAAAHMAAOuQAADrkAAAAG0AAOuRAADrkQAAAFsAAOuSAADrkgAAACcAAOuTAADrkwAAACgAAOuUAADrlAAAAQkAAOuVAADrlQAAAI0AAOuWAADrlgAAAJIAAOuXAADrlwAAAMYAAOuYAADrmAAAAbIAAOuZAADrmQAAAAEAAOuaAADrmgAAABgAAOubAADrmwAAAGUAAOucAADrnAAAAO4AAOudAADrnQAAAR4AAOueAADrngAAAVUAAOufAADrnwAAAZIAAOugAADroAAAASoAAOuhAADroQAAALoAAOuiAADrogAAAWMAAOujAADrowAAAWIAAOukAADrpAAAASIAAOulAADrpQAAAXcAAOumAADrpgAAASsAAOunAADrpwAAATkAAOuoAADrqAAAAFoAAOupAADrqQAAAbsAAOuqAADrqgAAAEQAAOurAADrqwAAAQoAAOusAADrrAAAAI4AAOutAADrrQAAAMEAAOuuAADrrgAAAP8AAOuvAADrrwAAARoAAOuwAADrsAAAAToAAOuxAADrsQAAACoAAOuyAADrsgAAASkAAOuzAADrswAAASEAAOu0AADrtAAAADcAAOu1AADrtQAAADgAAOu2AADrtgAAAEoAAOu3AADrtwAAAZQAAOu4AADruAAAAbYAAOu5AADruQAAAbAAAOu6AADrugAAAa4AAOu7AADruwAAAa8AAOu8AADrvAAAALAAAOu9AADrvQAAAVMAAOu+AADrvgAAAVYAAOu/AADrvwAAARkAAOvAAADrwAAAAGwAAOvBAADrwQAAAckAAOvCAADrwgAAAcsAAOvDAADrwwAAAcoAAOvEAADrxAA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OUE/PzdKSjc3eUo3N0oAAAIAAAAAARoBGgAHAAsAABMHFRczNzUnFSM1MyYTE+ESEry8ARkS4RMT4RLz4QAAAAIAAAAAARoBGgAHAAsAABMHFRczNzUnBzUzFSYTE+ESEuG7ARkS4RMT4RLz4eEAAAMAAAAAARoBGgAHAAsADwAAEwcVFzM3NScHNTMVMzUzFSYTE+ESEuFLS0sBGRLhExPhEvPh4eHhAAAAAAUAAAAAARoBGgAHAAsADwATABcAABM3MxcVByMnNxUzNQczFSM3MxUjNyMVMxMT4RIS4RMT4c8mJjklJV0lJQEGExPhEhLh4eESExMTExMABAAAAAABGgEaAAcACwAPABMAABMHFRczNzUnBzUzFTc1MxU3MxUjJhMT4RIS4SUTcBMmJgEZEuETE+ES8+HhS5aWluEAAAAABAAAAAABGgEaAAcACwAPABMAABMHFRczNzUnBzUzFTM1MxUzNTMVJhMT4RIS4SUTcBMmARkS4RMT4RKolpaWlpaWAAADAAAAAAEaARoABwALAA8AABM3MxcVByMnNxUzNTMVMzUTE+ESEuETE5YSOQEHEhLhExPhlpbh4QAAAAADAAAAAAEaARoABwALAA8AABMHFRczNzUnBzUzFQczFSMmExPhEhLh4eHh4QEZE+ESEuETqZaWEjkAAAADAAAAAAEaARoABwALAA8AABM3MxcVByMnNxUzNTMVMzUTE+ESEuETEzgTlgEHEhLhExPh4eGWlgAAAAACAAAAAAEaARoABwALAAATBxUXMzc1Jwc1MxUmExPhEhLh4QEZEuETE+ESqJaWAAADAAAAAAEaARoABwALAA8AABMHFRczNzUnBzUzFTM1MxUmExPhEhLhSxKEARkT4RIS4RP04eHh4QAAAAACAAAAAAEaARoABwALAAATBxUXMzc1JxUjNTMmExPhEhKEhAEZEuETE+ES8+EAAAADAAAAAAEaARoABwALAA8AABMHFRczNzUnBzUzFTM1MxUmExPhEhLhgxNLARkT4RIS4RP04eHh4QAAAAACAAAAAAEaARoABwALAAATBxUXMzc1Jwc1MxUmExPhEhLhgwEZEuETE+ES8+HhAAACAAAAAAEaARo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format("truetype")}.codicon[class*=codicon-]{font: 16px/1 codicon;display:inline-block;text-decoration:none;text-rendering:auto;text-align:center;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none;-webkit-user-select:none}@keyframes codicon-spin{to{transform:rotate(360deg)}}.codicon-sync.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-gear.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.monaco-editor .codicon.codicon-symbol-value,.monaco-workbench .codicon.codicon-symbol-value,.monaco-editor .codicon.codicon-symbol-enum,.monaco-workbench .codicon.codicon-symbol-enum{color:var(--vscode-symbolIcon-enumeratorForeground)}.monaco-editor .lightBulbWidget{display:flex;align-items:center;justify-content:center}.monaco-editor .lightBulbWidget.codicon-lightbulb-autofix,.monaco-editor .lightBulbWidget.codicon-lightbulb-sparkle-autofix{color:var(--vscode-editorLightBulbAutoFix-foreground, var(--vscode-editorLightBulb-foreground))}.monaco-editor .lightBulbWidget.codicon-sparkle-filled{color:var(--vscode-editorLightBulbAi-foreground, var(--vscode-icon-foreground))}.monaco-editor .lightBulbWidget:after{position:absolute;top:0;left:0;content:"";display:block;width:100%;height:100%;opacity:.3;z-index:1}.monaco-editor .glyph-margin-widgets .cgmr[class*=codicon-gutter-lightbulb]{display:block;cursor:pointer}.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-auto-fix,.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-aifix-auto-fix{color:var(--vscode-editorLightBulbAutoFix-foreground, var(--vscode-editorLightBulb-foreground))}.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-sparkle-filled{color:var(--vscode-editorLightBulbAi-foreground, var(--vscode-icon-foreground))}.action-widget{font-size:13px;min-width:160px;max-width:80vw;z-index:40;display:block;width:100%;border:1px solid var(--vscode-editorWidget-border)!important;border-radius:5px;background-color:var(--vscode-editorActionList-background);color:var(--vscode-editorActionList-foreground);padding:4px;box-shadow:0 2px 8px var(--vscode-widget-shadow)}.context-view-block{position:fixed;cursor:initial;left:0;top:0;width:100%;height:100%;z-index:-1}.context-view-pointerBlock{position:fixed;cursor:initial;left:0;top:0;width:100%;height:100%;z-index:2}.action-widget .monaco-list{user-select:none;-webkit-user-select:none;border:none!important;border-width:0!important}.action-widget .monaco-list .monaco-list-row{padding:0 10px;white-space:nowrap;cursor:pointer;touch-action:none;width:100%;border-radius:4px}.action-widget .monaco-list .monaco-list-row.action.focused:not(.option-disabled){background-color:var(--vscode-editorActionList-focusBackground)!important;color:var(--vscode-editorActionList-focusForeground);outline:1px solid var(--vscode-menu-selectionBorder, transparent);outline-offset:-1px}.action-widget .monaco-list-row.group-header{color:var(--vscode-descriptionForeground)!important;font-weight:600;font-size:12px}.action-widget .monaco-list .group-header,.action-widget .monaco-list .option-disabled,.action-widget .monaco-list .option-disabled:before,.action-widget .monaco-list .option-disabled .focused,.action-widget .monaco-list .option-disabled .focused:before{cursor:default!important;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;background-color:transparent!important;outline:0 solid!important}.action-widget .monaco-list-row.action{display:flex;gap:8px;align-items:center}.action-widget .monaco-list-row.action.option-disabled,.action-widget .monaco-list:focus .monaco-list-row.focused.action.option-disabled,.action-widget .monaco-list-row.action.option-disabled .codicon,.action-widget .monaco-list:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused).option-disabled{color:var(--vscode-disabledForeground)}.action-widget .monaco-list-row.action .monaco-keybinding>.monaco-keybinding-key{background-color:var(--vscode-keybindingLabel-background);color:var(--vscode-keybindingLabel-foreground);border-style:solid;border-width:1px;border-radius:3px;border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow)}.action-widget .action-widget-action-bar:before{display:block;content:"";width:100%}.monaco-editor .codelens-decoration{overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:nowrap;color:var(--vscode-editorCodeLens-foreground);line-height:var(--vscode-editorCodeLens-lineHeight);font-size:var(--vscode-editorCodeLens-fontSize);padding-right:calc(var(--vscode-editorCodeLens-fontSize)*.5);font-feature-settings:var(--vscode-editorCodeLens-fontFeatureSettings);font-family:var(--vscode-editorCodeLens-fontFamily),var(--vscode-editorCodeLens-fontFamilyDefault)}.monaco-editor .codelens-decoration>span,.monaco-editor .codelens-decoration>a{user-select:none;-webkit-user-select:none;white-space:nowrap;vertical-align:sub}.monaco-editor .codelens-decoration>a:hover{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration>a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration .codicon{vertical-align:middle;color:currentColor!important;color:var(--vscode-editorCodeLens-foreground);line-height:var(--vscode-editorCodeLens-lineHeight);font-size:var(--vscode-editorCodeLens-fontSize)}.colorpicker-color-decoration,.hc-light .colorpicker-color-decoration{border:solid .1em #000;box-sizing:border-box;margin:.1em .2em 0;width:.8em;height:.8em;line-height:.8em;display:inline-block;cursor:pointer}.hc-black .colorpicker-color-decoration,.vs-dark .colorpicker-color-decoration{border:solid .1em #eee}.colorpicker-header{display:flex;height:24px;position:relative;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-header .picked-color{width:240px;display:flex;align-items:center;justify-content:center;line-height:24px;cursor:pointer;color:#fff;flex:1;white-space:nowrap;overflow:hidden}.colorpicker-header .picked-color .picked-color-presentation{white-space:nowrap;margin-left:5px;margin-right:5px}.colorpicker-header .original-color{width:74px;z-index:inherit;cursor:pointer}.standalone-colorpicker{color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.colorpicker-header .close-button{cursor:pointer;background-color:var(--vscode-editorHoverWidget-background);border-left:1px solid var(--vscode-editorHoverWidget-border)}.colorpicker-header .close-button-inner-div{width:100%;height:100%;text-align:center}.colorpicker-body .saturation-wrap{overflow:hidden;height:150px;position:relative;min-width:220px;flex:1}.colorpicker-body .saturation-selection{width:9px;height:9px;margin:-5px 0 0 -5px;border:1px solid rgb(255,255,255);border-radius:100%;box-shadow:0 0 2px #000c;position:absolute}.colorpicker-body .strip{width:25px;height:150px}.colorpicker-body .standalone-strip{width:25px;height:122px}.colorpicker-body .hue-strip{position:relative;margin-left:8px;cursor:grab;background:linear-gradient(to bottom,red,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red)}.colorpicker-body .opacity-strip{position:relative;margin-left:8px;cursor:grab;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-body .slider{position:absolute;top:0;left:-2px;width:calc(100% + 4px);height:4px;box-sizing:border-box;border:1px solid rgba(255,255,255,.71);box-shadow:0 0 1px #000000d9}.standalone-colorpicker-body{display:block;border:1px solid transparent;border-bottom:1px solid var(--vscode-editorHoverWidget-border);overflow:hidden}.colorpicker-body .insert-button{position:absolute;height:20px;width:58px;padding:0;right:8px;bottom:8px;background:var(--vscode-button-background);color:var(--vscode-button-foreground);border-radius:2px;border:none;cursor:pointer}.monaco-editor .inlineSuggestionsHints.withBorder{z-index:39;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .inlineSuggestionsHints .availableSuggestionCount a{display:flex;min-width:19px;justify-content:center}.monaco-editor .peekview-widget .head{box-sizing:border-box;display:flex;justify-content:space-between;flex-wrap:nowrap}.monaco-editor .peekview-widget .head .peekview-title{display:flex;align-items:baseline;font-size:13px;margin-left:20px;min-width:0;text-overflow:ellipsis;overflow:hidden}.monaco-editor .peekview-widget .head .peekview-title .meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.monaco-editor .peekview-widget .head .peekview-title .dirname,.monaco-editor .peekview-widget .head .peekview-title .filename{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-actions{flex:1;text-align:right;padding-right:2px}.monaco-editor .peekview-widget .head .peekview-title .codicon{margin-right:4px;align-self:center}.monaco-editor .zone-widget .zone-widget-container{border-top-style:solid;border-bottom-style:solid;border-top-width:0;border-bottom-width:0;position:relative}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-top-width:1px;border-bottom-width:1px}.monaco-editor .reference-zone-widget .messages{height:100%;width:100%;text-align:center;padding:3em 0}.monaco-editor .reference-zone-widget .ref-tree{line-height:23px;background-color:var(--vscode-peekViewResult-background);color:var(--vscode-peekViewResult-lineForeground)}.monaco-editor .reference-zone-widget .ref-tree .reference{text-overflow:ellipsis;overflow:hidden}.monaco-editor .reference-zone-widget .ref-tree .reference-file{display:inline-flex;width:100%;height:100%;color:var(--vscode-peekViewResult-fileForeground)}.monaco-editor .reference-zone-widget .ref-tree .reference-file .count{margin-right:12px;margin-left:auto}.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input{background-color:var(--vscode-peekViewEditor-background)}.monaco-editor.hc-black .reference-zone-widget .ref-tree .referenceMatch .highlight,.monaco-editor.hc-light .reference-zone-widget .ref-tree .referenceMatch .highlight{border:1px dotted var(--vscode-contrastActiveBorder, transparent);box-sizing:border-box}.monaco-editor .monaco-hover-content{padding-right:2px;padding-bottom:2px;box-sizing:border-box}.monaco-editor .monaco-hover{color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);border-radius:3px}.monaco-editor .monaco-hover .hover-row .hover-row-contents{min-width:0;display:flex;flex-direction:column}.monaco-editor .monaco-hover .hover-row .verbosity-actions{display:flex;flex-direction:column;padding-left:5px;padding-right:5px;justify-content:end;border-right:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor.vs .dnd-target,.monaco-editor.hc-light .dnd-target{border-right:2px dotted black;color:#fff}.monaco-editor.vs-dark .dnd-target{border-right:2px dotted #AEAFAD;color:#51504f}.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines,.monaco-editor.hc-black.mac.mouse-default .view-lines,.monaco-editor.hc-light.mac.mouse-default .view-lines{cursor:default}.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines,.monaco-editor.hc-black.mac.mouse-copy .view-lines,.monaco-editor.hc-light.mac.mouse-copy .view-lines{cursor:copy}.monaco-editor .findOptionsWidget{background-color:var(--vscode-editorWidget-background);color:var(--vscode-editorWidget-foreground);box-shadow:0 0 8px 2px var(--vscode-widget-shadow);border:2px solid var(--vscode-contrastBorder)}.monaco-editor .find-widget{position:absolute;z-index:35;height:33px;overflow:hidden;line-height:19px;transition:transform .2s linear;padding:0 4px;box-sizing:border-box;transform:translateY(calc(-100% - 10px));box-shadow:0 0 8px 2px var(--vscode-widget-shadow);color:var(--vscode-editorWidget-foreground);border-left:1px solid var(--vscode-widget-border);border-right:1px solid var(--vscode-widget-border);border-bottom:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px;background-color:var(--vscode-editorWidget-background)}.monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px;outline-color:var(--vscode-focusBorder)}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{margin:3px 25px 0 17px;font-size:12px;display:flex}.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.mirror,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-top:2px;padding-bottom:2px}.monaco-editor .find-widget>.find-part .find-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget>.replace-part .replace-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget .monaco-findInput{vertical-align:middle;display:flex;flex:1}.monaco-editor .find-widget .matchesCount{display:flex;flex:initial;margin:0 0 0 3px;padding:2px 0 0 2px;height:25px;vertical-align:middle;box-sizing:border-box;text-align:center;line-height:23px}.monaco-editor .find-widget .button{width:16px;height:16px;padding:3px;border-radius:5px;flex:initial;margin-left:3px;background-position:center center;background-repeat:no-repeat;cursor:pointer;display:flex;align-items:center;justify-content:center}.monaco-editor .find-widget .codicon-find-selection{width:22px;height:22px;padding:3px;border-radius:5px}.monaco-editor .find-widget .button.wide{width:auto;padding:1px 6px;top:-1px}.monaco-editor .find-widget .button.toggle{position:absolute;top:0;left:3px;width:18px;height:100%;border-radius:0;box-sizing:border-box}.monaco-editor .find-widget>.replace-part>.monaco-findInput{position:relative;display:flex;vertical-align:middle;flex:auto;flex-grow:0;flex-shrink:0}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.monaco-editor .find-widget.collapsed-find-widget .button.previous,.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.replace,.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-findInput .controls{display:none}.monaco-editor .currentFindMatch{background-color:var(--vscode-editor-findMatchBackground);border:2px solid var(--vscode-editor-findMatchBorder);padding:1px;box-sizing:border-box}.monaco-editor .find-widget .monaco-sash{left:0!important;background-color:var(--vscode-editorWidget-resizeBorder, var(--vscode-editorWidget-border))}.monaco-editor.hc-black .find-widget .button:before{position:relative;top:1px;left:2px}.monaco-editor .find-widget>.button.codicon-widget-close{position:absolute;top:5px;right:4px}.monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-manual-expanded,.monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-editor .margin-view-overlays .codicon-folding-collapsed{cursor:pointer;opacity:0;transition:opacity .5s;display:flex;align-items:center;justify-content:center;font-size:140%;margin-left:2px}.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-expanded,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-collapsed{transition:initial}.monaco-editor .margin-view-overlays:hover .codicon,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon.codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons{opacity:1}.monaco-editor .inline-folded:after{color:var(--vscode-editor-foldPlaceholderForeground);margin:.1em .2em 0;content:"⋯";display:inline;line-height:1em;cursor:pointer}.monaco-editor .cldr.codicon.codicon-folding-expanded,.monaco-editor .cldr.codicon.codicon-folding-collapsed,.monaco-editor .cldr.codicon.codicon-folding-manual-expanded,.monaco-editor .cldr.codicon.codicon-folding-manual-collapsed{color:var(--vscode-editorGutter-foldingControlForeground)!important}.monaco-editor .suggest-preview-additional-widget .button{display:inline-block;cursor:pointer;text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-hidden{opacity:0;font-size:0}.monaco-editor .ghost-text-decoration,.monaco-editor .ghost-text-decoration-preview,.monaco-editor .suggest-preview-text .ghost-text{color:var(--vscode-editorGhostText-foreground)!important;background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border)}.monaco-editor .snippet-placeholder{min-width:2px;outline-style:solid;outline-width:1px;background-color:var(--vscode-editor-snippetTabstopHighlightBackground, transparent);outline-color:var(--vscode-editor-snippetTabstopHighlightBorder, transparent)}.monaco-editor .finish-snippet-placeholder{outline-style:solid;outline-width:1px;background-color:var(--vscode-editor-snippetFinalTabstopHighlightBackground, transparent);outline-color:var(--vscode-editor-snippetFinalTabstopHighlightBorder, transparent)}.monaco-editor .suggest-widget{width:430px;z-index:40;display:flex;flex-direction:column;border-radius:3px}.monaco-editor .suggest-widget.message{flex-direction:row;align-items:center}.monaco-editor .suggest-widget,.monaco-editor .suggest-details{flex:0 1 auto;width:100%;border-style:solid;border-width:1px;border-color:var(--vscode-editorSuggestWidget-border);background-color:var(--vscode-editorSuggestWidget-background)}.monaco-editor.hc-black .suggest-widget,.monaco-editor.hc-black .suggest-details,.monaco-editor.hc-light .suggest-widget,.monaco-editor.hc-light .suggest-details{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{box-sizing:border-box;display:none;flex-flow:row nowrap;justify-content:space-between;width:100%;font-size:80%;padding:0 4px;border-top:1px solid var(--vscode-editorSuggestWidget-border);overflow:hidden}.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{display:flex;-mox-box-sizing:border-box;box-sizing:border-box;padding-right:10px;background-repeat:no-repeat;background-position:2px 2px;white-space:nowrap;cursor:pointer;touch-action:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{display:flex;overflow:hidden;text-overflow:ellipsis;white-space:pre;justify-content:space-between}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:before{color:inherit;opacity:1;font-size:14px;cursor:pointer}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;top:6px;right:2px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label{overflow:hidden;text-overflow:ellipsis;opacity:.6}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{margin-left:12px;opacity:.4;font-size:85%;line-height:initial;text-overflow:ellipsis;overflow:hidden;align-self:center}.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-shrink:1;flex-grow:1;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{overflow:hidden;flex-shrink:4;max-width:70%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:inline-block;position:absolute;right:10px;width:18px;height:18px;visibility:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{display:block;height:16px;width:16px;margin-left:2px;background-repeat:no-repeat;background-size:80%;background-position:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{display:flex;align-items:center;margin-right:4px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{margin:0 0 0 .3em;border:.1em solid #000;width:.7em;height:.7em;display:inline-block}.monaco-editor .suggest-details{display:flex;flex-direction:column;cursor:default;color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type{flex:2;overflow:hidden;text-overflow:ellipsis;opacity:.7;white-space:pre;margin:0 24px 0 0;padding:4px 0 12px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs{padding:0;white-space:initial;min-height:calc(1rem + 8px)}.monaco-editor .suggest-details ul,.monaco-editor .suggest-details ol{padding-left:20px}.monaco-editor .goto-definition-link{text-decoration:underline;cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;vertical-align:text-top;margin-right:4px}.monaco-editor .marker-widget>.stale{opacity:.6;font-style:italic}.monaco-editor .marker-widget .descriptioncontainer{position:absolute;white-space:pre;user-select:text;-webkit-user-select:text;padding:8px 12px 0 20px}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{opacity:.6;color:inherit}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under;color:var(--vscode-textLink-activeForeground)}.monaco-editor .marker-widget .descriptioncontainer .filename{cursor:pointer;color:var(--vscode-textLink-activeForeground)}.monaco-editor .zone-widget .codicon.codicon-error,.markers-panel .marker-icon.error,.markers-panel .marker-icon .codicon.codicon-error,.text-search-provider-messages .providerMessage .codicon.codicon-error,.extensions-viewlet>.extensions .codicon.codicon-error,.extension-editor .codicon.codicon-error,.preferences-editor .codicon.codicon-error{color:var(--vscode-problemsErrorIcon-foreground)}.monaco-editor .zone-widget .codicon.codicon-warning,.markers-panel .marker-icon.warning,.markers-panel .marker-icon .codicon.codicon-warning,.text-search-provider-messages .providerMessage .codicon.codicon-warning,.extensions-viewlet>.extensions .codicon.codicon-warning,.extension-editor .codicon.codicon-warning,.preferences-editor .codicon.codicon-warning{color:var(--vscode-problemsWarningIcon-foreground)}.monaco-editor .zone-widget .codicon.codicon-info,.markers-panel .marker-icon.info,.markers-panel .marker-icon .codicon.codicon-info,.text-search-provider-messages .providerMessage .codicon.codicon-info,.extensions-viewlet>.extensions .codicon.codicon-info,.extension-editor .codicon.codicon-info,.preferences-editor .codicon.codicon-info{color:var(--vscode-problemsInfoIcon-foreground)}.monaco-editor .detected-link-active{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .focused .selectionHighlight{background-color:var(--vscode-editor-selectionHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-selectionHighlightBorder)}.monaco-editor .wordHighlight{background-color:var(--vscode-editor-wordHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightBorder)}.monaco-editor .wordHighlightStrong{background-color:var(--vscode-editor-wordHighlightStrongBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightStrongBorder)}.monaco-editor .wordHighlightText{background-color:var(--vscode-editor-wordHighlightTextBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightTextBorder)}.monaco-editor .inline-edit-hidden{opacity:0;font-size:0}.monaco-editor .inline-edit-decoration,.monaco-editor .inline-edit-decoration-preview,.monaco-editor .suggest-preview-text .inline-edit{color:var(--vscode-editorGhostText-foreground)!important;background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border)}.monaco-editor .inlineEditHints.withBorder{z-index:39;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .inlineEditSideBySide{z-index:39;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);white-space:pre}.monaco-editor div.inline-edits-widget{--widget-color: var(--vscode-notifications-background)}.monaco-editor div.inline-edits-widget .promptEditor .monaco-editor{--vscode-editor-placeholder-foreground: var(--vscode-editorGhostText-foreground)}.monaco-editor div.inline-edits-widget .toolbar,.monaco-editor div.inline-edits-widget .promptEditor{opacity:0;transition:opacity .2s ease-in-out}:is(.monaco-editor div.inline-edits-widget:hover,.monaco-editor div.inline-edits-widget.focused) .toolbar,:is(.monaco-editor div.inline-edits-widget:hover,.monaco-editor div.inline-edits-widget.focused) .promptEditor{opacity:1}.monaco-editor div.inline-edits-widget .preview .monaco-editor{--vscode-editor-background: var(--widget-color)}.monaco-editor div.inline-edits-widget .preview .monaco-editor .view-overlays .current-line-exact,.monaco-editor div.inline-edits-widget .preview .monaco-editor .current-line-margin{border:none}.monaco-editor .parameter-hints-widget{z-index:39;display:flex;flex-direction:column;line-height:1.5em;cursor:default;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .parameter-hints-widget>.phwrapper{max-width:440px;display:flex;flex-direction:row}.monaco-editor .parameter-hints-widget.multiple .body:before{content:"";display:block;height:100%;position:absolute;opacity:.5;border-left:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .parameter-hints-widget .monaco-scrollable-element,.monaco-editor .parameter-hints-widget .body{display:flex;flex:1;flex-direction:column;min-height:100%}.monaco-editor .parameter-hints-widget .signature.has-docs:after{content:"";display:block;position:absolute;left:0;width:100%;padding-top:4px;opacity:.5;border-bottom:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .parameter-hints-widget .docs .markdown-docs{white-space:initial}.monaco-editor .parameter-hints-widget .docs code{font-family:var(--monaco-monospace-font);border-radius:3px;padding:0 .4em;background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .parameter-hints-widget .docs .monaco-tokenized-source,.monaco-editor .parameter-hints-widget .docs .code{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .controls{display:none;flex-direction:column;align-items:center;min-width:22px;justify-content:flex-end}.monaco-editor .parameter-hints-widget.multiple .button{width:16px;height:16px;background-repeat:no-repeat;cursor:pointer}.monaco-editor .parameter-hints-widget .overloads{text-align:center;height:12px;line-height:12px;font-family:var(--monaco-monospace-font)}.monaco-editor{--vscode-editor-placeholder-foreground: var(--vscode-editorGhostText-foreground)}.monaco-editor .editorPlaceholder{top:0;position:absolute;overflow:hidden;text-overflow:ellipsis;text-wrap:nowrap;pointer-events:none;color:var(--vscode-editor-placeholder-foreground)}.monaco-editor .rename-box{z-index:100;color:inherit;border-radius:4px}.monaco-editor .rename-box .rename-input-with-button{padding:3px;border-radius:2px;width:calc(100% - 8px)}.monaco-editor .rename-box .rename-input{width:calc(100% - 8px);padding:0}.monaco-editor .rename-box .rename-suggestions-button{display:flex;align-items:center;padding:3px;background-color:transparent;border:none;border-radius:5px;cursor:pointer}.monaco-editor .sticky-widget-line-numbers{float:left;background-color:inherit}.monaco-editor .sticky-widget-lines-scrollable{display:inline-block;position:absolute;overflow:hidden;width:var(--vscode-editorStickyScroll-scrollableWidth);background-color:inherit}.monaco-editor .sticky-widget-lines{position:absolute;background-color:inherit}.monaco-editor .sticky-line-number,.monaco-editor .sticky-line-content{color:var(--vscode-editorLineNumber-foreground);white-space:nowrap;display:inline-block;position:absolute;background-color:inherit}.monaco-editor .sticky-line-number .codicon-folding-expanded,.monaco-editor .sticky-line-number .codicon-folding-collapsed{float:right;transition:var(--vscode-editorStickyScroll-foldingOpacityTransition)}.monaco-editor .sticky-line-content{width:var(--vscode-editorStickyScroll-scrollableWidth);background-color:inherit;white-space:nowrap}.monaco-editor .sticky-widget{width:100%;box-shadow:var(--vscode-editorStickyScroll-shadow) 0 4px 2px -2px;z-index:4;background-color:var(--vscode-editorStickyScroll-background);right:initial!important}.monaco-editor .unicode-highlight{border:1px solid var(--vscode-editorUnicodeHighlight-border);background-color:var(--vscode-editorUnicodeHighlight-background);box-sizing:border-box}.editor-banner{box-sizing:border-box;cursor:default;width:100%;font-size:12px;display:flex;overflow:visible;height:26px;background:var(--vscode-banner-background)}.editor-banner .icon-container{display:flex;flex-shrink:0;align-items:center;padding:0 6px 0 10px}.editor-banner .icon-container.custom-icon{background-repeat:no-repeat;background-position:center center;background-size:16px;width:16px;padding:0;margin:0 6px 0 10px}.editor-banner .message-container{display:flex;align-items:center;line-height:26px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.editor-banner .message-container p{margin-block-start:0;margin-block-end:0}.editor-banner .message-actions-container a.monaco-button{width:inherit;margin:2px 8px;padding:0 12px}.editor-banner .message-actions-container a{padding:3px;margin-left:12px;text-decoration:underline}.monaco-editor .iPadShowKeyboard{width:58px;min-width:0;height:36px;min-height:0;margin:0;padding:0;position:absolute;resize:none;overflow:hidden;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wM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wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #252526}.monaco-editor .tokens-inspect-widget{z-index:50;user-select:text;-webkit-user-select:text;padding:10px;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .tokens-inspect-widget .tokens-inspect-separator{height:1px;border:0;background-color:var(--vscode-editorHoverWidget-border)}.monaco-editor .tokens-inspect-widget .tm-token-length{font-weight:400;font-size:60%;float:right}.monaco-action-bar{height:100%;white-space:nowrap}.monaco-action-bar .actions-container{align-items:center;display:flex;height:100%;margin:0 auto;padding:0;width:100%}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{align-items:center;cursor:pointer;display:block;justify-content:center;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .codicon,.monaco-action-bar .action-item .icon{display:block}.monaco-action-bar .action-item .codicon{align-items:center;display:flex;height:16px;width:16px}.monaco-action-bar .action-label{border-radius:5px;display:flex;font-size:11px;padding:3px}.monaco-action-bar .action-item.disabled .action-label,.monaco-action-bar .action-item.disabled .action-label:before,.monaco-action-bar .action-item.disabled .action-label:hover{color:var(--vscode-disabledForeground)}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{display:block}.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #bbb;display:block;margin-left:.8em;margin-right:.8em;padding-top:1px}.monaco-action-bar .action-item .action-label.separator{background-color:#bbb;cursor:default;height:16px;margin:5px 4px!important;min-width:1px;padding:0;width:1px}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{align-items:center;display:flex;flex:1;justify-content:center;margin-right:10px;max-width:170px;min-width:60px;overflow:hidden}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator{align-items:center;cursor:default;display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator>div{width:1px}.monaco-aria-container{left:-999em;position:absolute}.monaco-text-button{align-items:center;border:1px solid var(--vscode-button-border,transparent);border-radius:2px;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;line-height:18px;padding:4px;text-align:center;width:100%}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled,.monaco-button.disabled:focus{cursor:default;opacity:.4!important}.monaco-text-button .codicon{color:inherit!important;margin:0 .2em}.monaco-text-button.monaco-text-button-with-short-label{flex-direction:row;flex-wrap:wrap;height:28px;overflow:hidden;padding:0 4px}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label{flex-basis:100%}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{flex-grow:1;overflow:hidden;width:0}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label,.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{align-items:center;display:flex;font-style:inherit;font-weight:400;justify-content:center;padding:4px 0}.monaco-button-dropdown{cursor:pointer;display:flex}.monaco-button-dropdown.disabled{cursor:default}.monaco-button-dropdown>.monaco-button:focus{outline-offset:-1px!important}.monaco-button-dropdown.disabled>.monaco-button-dropdown-separator,.monaco-button-dropdown.disabled>.monaco-button.disabled,.monaco-button-dropdown.disabled>.monaco-button.disabled:focus{opacity:.4!important}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-right-width:0!important}.monaco-button-dropdown .monaco-button-dropdown-separator{cursor:default;padding:4px 0}.monaco-button-dropdown .monaco-button-dropdown-separator>div{height:100%;width:1px}.monaco-button-dropdown>.monaco-button.monaco-dropdown-button{align-items:center;border:1px solid var(--vscode-button-border,transparent);border-left-width:0!important;border-radius:0 2px 2px 0;display:flex}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-radius:2px 0 0 2px}.monaco-description-button{align-items:center;display:flex;flex-direction:column;margin:4px 5px}.monaco-description-button .monaco-button-description{font-size:11px;font-style:italic;padding:4px 20px}.monaco-description-button .monaco-button-description,.monaco-description-button .monaco-button-label{align-items:center;display:flex;justify-content:center}.monaco-description-button .monaco-button-description>.codicon,.monaco-description-button .monaco-button-label>.codicon{color:inherit!important;margin:0 .2em}.monaco-button-dropdown.default-colors>.monaco-button,.monaco-button.default-colors{background-color:var(--vscode-button-background);color:var(--vscode-button-foreground)}.monaco-button-dropdown.default-colors>.monaco-button:hover,.monaco-button.default-colors:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-button-dropdown.default-colors>.monaco-button.secondary,.monaco-button.default-colors.secondary{background-color:var(--vscode-button-secondaryBackground);color:var(--vscode-button-secondaryForeground)}.monaco-button-dropdown.default-colors>.monaco-button.secondary:hover,.monaco-button.default-colors.secondary:hover{background-color:var(--vscode-button-secondaryHoverBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator{background-color:var(--vscode-button-background);border-bottom:1px solid var(--vscode-button-border);border-top:1px solid var(--vscode-button-border)}.monaco-button-dropdown.default-colors .monaco-button.secondary+.monaco-button-dropdown-separator{background-color:var(--vscode-button-secondaryBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator>div{background-color:var(--vscode-button-separator)}@font-face{font-display:block;font-family:codicon;src:url(data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQiCLJXoAAAE4AAAAV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AEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLP//ASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEs//8BLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASz//wEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASz//wEsAAABLAAAASwAAAEs//8BLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAAAAABQAAAAMAAAAsAAAABAAABSYAAQAAAAAEIAADAAEAAAAsAAMACgAABSYABAP0AAAAEgAQAAMAAuqI6ozqx+rJ6wnrTuw08QH//wAA6mDqiuqP6snqzOsL61DxAf//AAAAAAAAAAAAAAAAAAAAAAABABIAYgBmANYA1gFQAdYDngAAAAMA8QFKAUcAtAE3AZUBJQFuAQ4BdABOAcMBYAFqAWkAkQA2ATAAhgDPAP4AQQGTAHkAFwG+AJsAiAFDAR0BFAEVAagAyQCmALwBoAGAAIsBkQF5AYgBhgF6AYkBkAGLAYQAvgF/AY0AAgAEAAUACgALAAwADQAOAA8AEAASABsAHQAeAB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AZgAAOtpAADraQAAAaEAAOtqAADragAAAaIAAOtrAADrawAAAaQAAOtsAADrbAAAAaYAAOttAADrbQAAAacAAOtuAADrbgAAAakAAOtvAADrbwAAAaoAAOtwAADrcAAAAasAAOtxAADrcQAAAawAAOtyAADrcgAAAa0AAOtzAADrcwAAAbEAAOt0AADrdAAAAbMAAOt1AADrdQAAAbQAAOt2AADrdgAAAbUAAOt3AADrdwAAAbgAAOt4AADreAAAAbkAAOt5AADreQAAAboAAOt6AADregAAAbwAAOt7AADrewAAAb0AAOt8AADrfAAAAcQAAOt9AADrfQAAAcUAAOt+AADrfgAAAcYAAOt/AADrfwAAAccAAOuAAADrgAAAAcgAAOuBAADrgQAAAcwAAOuCAADrggAAAc0AAOuDAADrgwAAAPQAAOuEAADrhAAAAPUAAOuFAADrhQAAAPcAAOuGAADrhgAAAPgAAOuHAADrhwAAAGAAAOuIAADriAAAAGEAAOuJAADriQAAAHAAAOuKAADrigAAADoAAOuLAADriwAAAHEAAOuMAADrjAAAAGQAAOuNAADrjQAAAY8AAOuOAADrjgAAAG8AAOuPAADrjwAAAHMAAOuQAADrkAAAAG0AAOuRAADrkQAAAFsAAOuSAADrkgAAACcAAOuTAADrkwAAACgAAOuUAADrlAAAAQkAAOuVAADrlQAAAI0AAOuWAADrlgAAAJIAAOuXAADrlwAAAMYAAOuYAADrmAAAAbIAAOuZAADrmQAAAAEAAOuaAADrmgAAABgAAOubAADrmwAAAGUAAOucAADrnAAAAO4AAOudAADrnQAAAR4AAOueAADrngAAAVUAAOufAADrnwAAAZIAAOugAADroAAAASoAAOuhAADroQAAALoAAOuiAADrogAAAWMAAOujAADrowAAAWIAAOukAADrpAAAASIAAOulAADrpQAAAXcAAOumAADrpgAAASsAAOunAADrpwAAATkAAOuoAADrqAAAAFoAAOupAADrqQAAAbsAAOuqAADrqgAAAEQAAOurAADrqwAAAQoAAOusAADrrAAAAI4AAOutAADrrQAAAMEAAOuuAADrrgAAAP8AAOuvAADrrwAAARoAAOuwAAD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sZWQIdmVyaWZpZWQIdmVyc2lvbnMJdm0tYWN0aXZlCnZtLWNvbm5lY3QKdm0tb3V0bGluZQp2bS1ydW5uaW5nAnZtAnZyD3ZzY29kZS1pbnNpZGVycwZ2c2NvZGUEd2FuZAd3YXJuaW5nBXdhdGNoCndoaXRlc3BhY2UKd2hvbGUtd29yZAZ3aW5kb3cJd29yZC13cmFwEXdvcmtzcGFjZS10cnVzdGVkEXdvcmtzcGFjZS11bmtub3duE3dvcmtzcGFjZS11bnRydXN0ZWQHem9vbS1pbgh6b29tLW91dAAA) format("truetype")}.codicon[class*=codicon-]{display:inline-block;font: 16px/1 codicon;text-align:center;text-decoration:none;text-rendering:auto;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none;-webkit-user-select:none}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(1turn)}}.codicon-gear.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin,.codicon-sync.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:.4}.codicon-loading,.codicon-tree-item-loading:before{animation-duration:1s!important;animation-timing-function:cubic-bezier(.53,.21,.29,.67)!important}.context-view{position:absolute}.context-view.fixed{all:initial;color:inherit;font-family:inherit;font-size:13px;position:fixed}.monaco-count-badge{border-radius:11px;box-sizing:border-box;display:inline-block;font-size:11px;font-weight:400;line-height:11px;min-height:18px;min-width:18px;padding:3px 6px;text-align:center}.monaco-count-badge.long{border-radius:2px;line-height:normal;min-height:auto;padding:2px 3px}.monaco-dropdown{height:100%;padding:0}.monaco-dropdown>.dropdown-label{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{border-radius:5px;display:flex!important;flex-direction:row}.monaco-dropdown-with-primary>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;line-height:16px;margin-left:-3px;padding-left:0;padding-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{background-position:50%;background-repeat:no-repeat;background-size:16px;display:block}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{font-size:13px;width:100%}.monaco-findInput>.controls{position:absolute;right:2px;top:3px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.hc-light .monaco-findInput.highlight-0 .controls,.monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.hc-light .monaco-findInput.highlight-1 .controls,.monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-1 .1s linear 0s}.hc-black .monaco-findInput.highlight-0 .controls,.vs-dark .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-dark-0 .1s linear 0s}.hc-black .monaco-findInput.highlight-1 .controls,.vs-dark .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-dark-1 .1s linear 0s}@keyframes monaco-findInput-highlight-0{0%{background:#fdff00cc}to{background:transparent}}@keyframes monaco-findInput-highlight-1{0%{background:#fdff00cc}99%{background:transparent}}@keyframes monaco-findInput-highlight-dark-0{0%{background:#ffffff70}to{background:transparent}}@keyframes monaco-findInput-highlight-dark-1{0%{background:#ffffff70}99%{background:transparent}}.monaco-hover{animation:fadein .1s linear;box-sizing:border-box;cursor:default;line-height:1.5em;overflow:hidden;position:absolute;user-select:text;-webkit-user-select:text;white-space:var(--vscode-hover-whiteSpace,normal)}.monaco-hover.hidden{display:none}.monaco-hover a:hover:not(.disabled){cursor:pointer}.monaco-hover .hover-contents:not(.html-hover-contents){padding:4px 8px}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents){max-width:var(--vscode-hover-maxWidth,500px);word-wrap:break-word}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover .code,.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6,.monaco-hover p,.monaco-hover ul{margin:8px 0}.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{line-height:1.1}.monaco-hover code{font-family:var(--monaco-monospace-font)}.monaco-hover hr{border-left:0;border-right:0;box-sizing:border-box;height:1px;margin:4px -8px -4px}.monaco-hover .code:first-child,.monaco-hover p:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover .code:last-child,.monaco-hover p:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ol,.monaco-hover ul{padding-left:20px}.monaco-hover li>p{margin-bottom:0}.monaco-hover li>ul{margin-top:0}.monaco-hover code{border-radius:3px;padding:0 .4em}.monaco-hover .monaco-tokenized-source{white-space:var(--vscode-hover-sourceWhiteSpace,pre-wrap)}.monaco-hover .hover-row.status-bar{font-size:12px;line-height:22px}.monaco-hover .hover-row.status-bar .info{font-style:italic;padding:0 8px}.monaco-hover .hover-row.status-bar .actions{display:flex;padding:0 8px;width:100%}.monaco-hover .hover-row.status-bar .actions .action-container{cursor:pointer;margin-right:16px}.monaco-hover .hover-row.status-bar .actions .action-container .action .icon{padding-right:4px}.monaco-hover .hover-row.status-bar .actions .action-container a{color:var(--vscode-textLink-foreground);text-decoration:var(--text-link-decoration)}.monaco-hover .markdown-hover .hover-contents .codicon{color:inherit;font-size:inherit;vertical-align:middle}.monaco-hover .hover-contents a.code-link,.monaco-hover .hover-contents a.code-link:hover{color:inherit}.monaco-hover .hover-contents a.code-link:before{content:"("}.monaco-hover .hover-contents a.code-link:after{content:")"}.monaco-hover .hover-contents a.code-link>span{border-bottom:1px solid transparent;color:var(--vscode-textLink-foreground);text-decoration:underline;text-underline-position:under}.monaco-hover .hover-contents a.code-link>span:hover{color:var(--vscode-textLink-activeForeground)}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span{display:inline-block;margin-bottom:4px}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span.codicon{margin-bottom:2px}.monaco-hover-content .action-container a{-webkit-user-select:none;user-select:none}.monaco-hover-content .action-container.disabled{cursor:default;opacity:.4;pointer-events:none}.monaco-icon-label{display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{background-position:0;background-repeat:no-repeat;background-size:16px;display:inline-block;height:22px;line-height:inherit!important;padding-right:6px;width:16px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;flex-shrink:0;vertical-align:top}.monaco-icon-label-iconpath{display:flex;height:16px;margin-top:2px;padding-left:2px;width:16px}.monaco-icon-label-container.disabled{color:var(--vscode-disabledForeground)}.monaco-icon-label>.monaco-icon-label-container{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{margin:0 2px;opacity:.5}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-suffix-container>.label-suffix{opacity:.7;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{font-size:.9em;margin-left:.5em;opacity:.7;white-space:pre}.monaco-icon-label.nowrap>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{white-space:nowrap}.vs .monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.95}.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{font-style:italic}.monaco-icon-label.deprecated{opacity:.66;text-decoration:line-through}.monaco-icon-label.italic:after{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{text-decoration:line-through}.monaco-icon-label:after{font-size:90%;font-weight:600;margin:auto 16px 0 5px;opacity:.75;text-align:center}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description{opacity:.8}.monaco-inputbox{border-radius:2px;box-sizing:border-box;display:block;font-size:inherit;padding:0;position:relative}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px 6px}.monaco-inputbox>.ibwrapper{height:100%;position:relative;width:100%}.monaco-inputbox>.ibwrapper>.input{border:none;box-sizing:border-box;color:inherit;display:inline-block;font-family:inherit;font-size:inherit;height:100%;line-height:inherit;resize:none;width:100%}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{display:block;outline:none;scrollbar-width:none}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{box-sizing:border-box;display:inline-block;left:0;position:absolute;top:0;visibility:hidden;white-space:pre-wrap;width:100%;word-wrap:break-word}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{box-sizing:border-box;display:inline-block;font-size:12px;line-height:17px;margin-top:-1px;overflow:hidden;padding:.4em;text-align:left;width:100%;word-wrap:break-word}.monaco-inputbox .monaco-action-bar{position:absolute;right:2px;top:4px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;height:16px;width:16px}.monaco-keybinding{align-items:center;display:flex;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{border-radius:3px;border-style:solid;border-width:1px;display:inline-block;font-size:11px;margin:0 2px;padding:3px 5px;vertical-align:middle}.monaco-keybinding>.monaco-keybinding-key:first-child{margin-left:0}.monaco-keybinding>.monaco-keybinding-key:last-child{margin-right:0}.monaco-keybinding>.monaco-keybinding-key-separator{display:inline-block}.monaco-keybinding>.monaco-keybinding-key-chord-separator{width:6px}.monaco-list{height:100%;position:relative;white-space:nowrap;width:100%}.monaco-list.mouse-support{user-select:none;-webkit-user-select:none}.monaco-list>.monaco-scrollable-element{height:100%}.monaco-list-rows{height:100%;position:relative;width:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{min-width:100%;width:auto}.monaco-list-row{box-sizing:border-box;overflow:hidden;position:absolute;width:100%}.monaco-list.mouse-support .monaco-list-row{cursor:pointer;touch-action:none}.monaco-list .monaco-scrollable-element>.scrollbar.vertical,.monaco-pane-view>.monaco-split-view2.vertical>.monaco-scrollable-element>.scrollbar.vertical{z-index:14}.monaco-list-row.scrolling{display:none!important}.monaco-list.element-focused,.monaco-list.selection-multiple,.monaco-list.selection-single{outline:0!important}.monaco-drag-image{border-radius:10px;display:inline-block;font-size:12px;padding:1px 7px;position:absolute;z-index:1000}.monaco-list-type-filter-message{box-sizing:border-box;height:100%;left:0;opacity:.7;padding:40px 1em 1em;pointer-events:none;position:absolute;text-align:center;top:0;white-space:normal;width:100%}.monaco-list-type-filter-message:empty{display:none}.monaco-mouse-cursor-text{cursor:text}.monaco-progress-container{height:2px;overflow:hidden;width:100%}.monaco-progress-container .progress-bit{display:none;height:2px;left:0;position:absolute;width:2%}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{left:0;transition:width .1s linear}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{animation-duration:4s;animation-iteration-count:infinite;animation-name:progress;animation-timing-function:linear;transform:translateZ(0)}.monaco-progress-container.infinite.infinite-long-running .progress-bit{animation-timing-function:steps(100)}@keyframes progress{0%{transform:translate(0) scaleX(1)}50%{transform:translate(2500%) scaleX(3)}to{transform:translate(4900%) scaleX(1)}}:root{--vscode-sash-size:4px;--vscode-sash-hover-size:4px}.monaco-sash{position:absolute;touch-action:none;z-index:35}.monaco-sash.disabled{pointer-events:none}.monaco-sash.mac.vertical{cursor:col-resize}.monaco-sash.vertical.minimum{cursor:e-resize}.monaco-sash.vertical.maximum{cursor:w-resize}.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-sash.horizontal.minimum{cursor:s-resize}.monaco-sash.horizontal.maximum{cursor:n-resize}.monaco-sash.disabled{cursor:default!important;pointer-events:none!important}.monaco-sash.vertical{cursor:ew-resize;height:100%;top:0;width:var(--vscode-sash-size)}.monaco-sash.horizontal{cursor:ns-resize;height:var(--vscode-sash-size);left:0;width:100%}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";cursor:all-scroll;display:block;height:calc(var(--vscode-sash-size)*2);position:absolute;width:calc(var(--vscode-sash-size)*2);z-index:100}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.start,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.end{cursor:nwse-resize}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.end,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.start{cursor:nesw-resize}.monaco-sash.vertical>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size)*-.5);top:calc(var(--vscode-sash-size)*-1)}.monaco-sash.vertical>.orthogonal-drag-handle.end{bottom:calc(var(--vscode-sash-size)*-1);left:calc(var(--vscode-sash-size)*-.5)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size)*-1);top:calc(var(--vscode-sash-size)*-.5)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{right:calc(var(--vscode-sash-size)*-1);top:calc(var(--vscode-sash-size)*-.5)}.monaco-sash:before{background:transparent;content:"";height:100%;pointer-events:none;position:absolute;width:100%}.monaco-workbench:not(.reduce-motion) .monaco-sash:before{transition:background-color .1s ease-out}.monaco-sash.active:before,.monaco-sash.hover:before{background:var(--vscode-sash-hoverBorder)}.monaco-sash.vertical:before{left:calc(50% - var(--vscode-sash-hover-size)/2);width:var(--vscode-sash-hover-size)}.monaco-sash.horizontal:before{height:var(--vscode-sash-hover-size);top:calc(50% - var(--vscode-sash-hover-size)/2)}.pointer-events-disabled{pointer-events:none!important}.monaco-sash.debug{background:#0ff}.monaco-sash.debug.disabled{background:#0ff3}.monaco-sash.debug:not(.disabled)>.orthogonal-drag-handle{background:red}.monaco-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{background:transparent;opacity:1;transition:opacity .1s linear;z-index:11}.monaco-scrollable-element>.invisible{opacity:0;pointer-events:none}.monaco-scrollable-element>.invisible.fade{transition:opacity .8s linear}.monaco-scrollable-element>.shadow{display:none;position:absolute}.monaco-scrollable-element>.shadow.top{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;display:block;height:3px;left:3px;top:0;width:100%}.monaco-scrollable-element>.shadow.left{box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset;display:block;height:100%;left:0;top:3px;width:3px}.monaco-scrollable-element>.shadow.top-left-corner{display:block;height:3px;left:0;top:0;width:3px}.monaco-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset}.monaco-scrollable-element>.scrollbar>.slider{background:var(--vscode-scrollbarSlider-background)}.monaco-scrollable-element>.scrollbar>.slider:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-scrollable-element>.scrollbar>.slider.active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-select-box{border-radius:2px;cursor:pointer;width:100%}.monaco-select-box-dropdown-container{font-size:13px;font-weight:400;text-transform:none}.monaco-action-bar .action-item.select-container{cursor:default}.monaco-action-bar .action-item .monaco-select-box{cursor:pointer;min-height:18px;min-width:100px;padding:2px 23px 2px 8px}.mac .monaco-action-bar .action-item .monaco-select-box{border-radius:5px;font-size:11px}.monaco-select-box-dropdown-padding{--dropdown-padding-top:1px;--dropdown-padding-bottom:1px}.hc-black .monaco-select-box-dropdown-padding,.hc-light .monaco-select-box-dropdown-padding{--dropdown-padding-top:3px;--dropdown-padding-bottom:4px}.monaco-select-box-dropdown-container{box-sizing:border-box;display:none}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown *{margin:0}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown a:focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown code{font-family:var(--monaco-monospace-font);line-height:15px}.monaco-select-box-dropdown-container.visible{border-bottom-left-radius:3px;border-bottom-right-radius:3px;display:flex;flex-direction:column;overflow:hidden;text-align:left;width:1px}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container{align-self:flex-start;box-sizing:border-box;flex:0 0 auto;overflow:hidden;padding-bottom:var(--dropdown-padding-bottom);padding-left:1px;padding-right:1px;padding-top:var(--dropdown-padding-top);width:100%}.monaco-select-box-dropdown-container>.select-box-details-pane{padding:5px}.hc-black .monaco-select-box-dropdown-container>.select-box-dropdown-list-container{padding-bottom:var(--dropdown-padding-bottom);padding-top:var(--dropdown-padding-top)}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row{cursor:pointer}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-text{float:left;overflow:hidden;padding-left:3.5px;text-overflow:ellipsis;white-space:nowrap}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-detail{float:left;opacity:.7;overflow:hidden;padding-left:3.5px;text-overflow:ellipsis;white-space:nowrap}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-decorator-right{float:right;overflow:hidden;padding-right:10px;text-overflow:ellipsis;white-space:nowrap}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.visually-hidden{height:1px;left:-10000px;overflow:hidden;position:absolute;top:auto;width:1px}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control{align-self:flex-start;flex:1 1 auto;opacity:0}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div{max-height:0;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div>.option-text-width-control{padding-left:4px;padding-right:8px;white-space:nowrap}.monaco-split-view2{height:100%;position:relative;width:100%}.monaco-split-view2>.sash-container{height:100%;pointer-events:none;position:absolute;width:100%}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:auto}.monaco-split-view2>.monaco-scrollable-element{height:100%;width:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{height:100%;position:relative;white-space:nowrap;width:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{position:absolute;white-space:normal}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view:not(.visible){display:none}.monaco-split-view2.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view{width:100%}.monaco-split-view2.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view{height:100%}.monaco-split-view2.separator-border>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{background-color:var(--separator-border);content:" ";left:0;pointer-events:none;position:absolute;top:0;z-index:5}.monaco-split-view2.separator-border.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:100%;width:1px}.monaco-split-view2.separator-border.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:1px;width:100%}.monaco-table{display:flex;flex-direction:column;height:100%;overflow:hidden;position:relative;white-space:nowrap;width:100%}.monaco-table>.monaco-split-view2{border-bottom:1px solid transparent}.monaco-table>.monaco-list{flex:1}.monaco-table-tr{display:flex;height:100%}.monaco-table-th{font-weight:700;height:100%;overflow:hidden;text-overflow:ellipsis;width:100%}.monaco-table-td,.monaco-table-th{box-sizing:border-box;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{border-left:1px solid transparent;content:"";left:calc(var(--vscode-sash-size)/2);position:absolute;width:0}.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2,.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{transition:border-color .2s ease-out}.monaco-custom-toggle{border:1px solid transparent;border-radius:3px;box-sizing:border-box;cursor:pointer;float:left;height:20px;margin-left:2px;overflow:hidden;padding:1px;user-select:none;-webkit-user-select:none;width:20px}.monaco-custom-toggle:hover{background-color:var(--vscode-inputOption-hoverBackground)}.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{border:1px dashed var(--vscode-focusBorder)}.hc-black .monaco-custom-toggle,.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle,.hc-light .monaco-custom-toggle:hover{background:none}.monaco-custom-toggle.monaco-checkbox{background-size:16px!important;border:1px solid transparent;border-radius:3px;height:18px;margin-left:0;margin-right:9px;opacity:1;padding:0;width:18px}.monaco-action-bar .checkbox-action-item{align-items:center;border-radius:2px;display:flex;padding-right:2px}.monaco-action-bar .checkbox-action-item:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-action-bar .checkbox-action-item>.monaco-custom-toggle.monaco-checkbox{margin-right:4px}.monaco-action-bar .checkbox-action-item>.checkbox-label{font-size:12px}.monaco-custom-toggle.monaco-checkbox:not(.checked):before{visibility:hidden}.monaco-toolbar{height:100%}.monaco-toolbar .toolbar-toggle-more{display:inline-block;padding:0}.monaco-tl-row{align-items:center;display:flex;height:100%;position:relative}.monaco-tl-row.disabled{cursor:default}.monaco-tl-indent{height:100%;left:16px;pointer-events:none;position:absolute;top:0}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{border-left:1px solid transparent;box-sizing:border-box;display:inline-block;height:100%}.monaco-workbench:not(.reduce-motion) .monaco-tl-indent>.indent-guide{transition:border-color .1s linear}.monaco-tl-contents,.monaco-tl-twistie{height:100%}.monaco-tl-twistie{align-items:center;display:flex!important;flex-shrink:0;font-size:10px;justify-content:center;padding-right:6px;text-align:right;transform:translate(3px);width:16px}.monaco-tl-contents{flex:1;overflow:hidden}.monaco-tl-twistie:before{border-radius:20px}.monaco-tl-twistie.collapsed:before{transform:rotate(-90deg)}.monaco-tl-twistie.codicon-tree-item-loading:before{animation:codicon-spin 1.25s steps(30) infinite}.monaco-tree-type-filter{border:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px;display:flex;margin:0 6px;max-width:200px;padding:3px;position:absolute;top:0;z-index:100}.monaco-workbench:not(.reduce-motion) .monaco-tree-type-filter{transition:top .3s}.monaco-tree-type-filter.disabled{top:-40px!important}.monaco-tree-type-filter-grab{align-items:center;cursor:grab;display:flex!important;justify-content:center;margin-right:2px}.monaco-tree-type-filter-grab.grabbing{cursor:grabbing}.monaco-tree-type-filter-input{flex:1}.monaco-tree-type-filter-input .monaco-inputbox{height:23px}.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.input,.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.mirror{padding:2px 4px}.monaco-tree-type-filter-input .monaco-findInput>.controls{top:2px}.monaco-tree-type-filter-actionbar{margin-left:4px}.monaco-tree-type-filter-actionbar .monaco-action-bar .action-label{padding:2px}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container{background-color:var(--vscode-sideBar-background);height:0;left:0;position:absolute;top:0;width:100%;z-index:13}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row.monaco-list-row{background-color:var(--vscode-sideBar-background);opacity:1!important;overflow:hidden;position:absolute;width:100%}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row:hover{background-color:var(--vscode-list-hoverBackground)!important;cursor:pointer}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container.empty,.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container.empty .monaco-tree-sticky-container-shadow{display:none}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-container-shadow{bottom:-3px;height:0;left:0;position:absolute;width:100%}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container[tabindex="0"]:focus{outline:none}.monaco-editor .inputarea{background-color:transparent;border:none;color:transparent;margin:0;min-height:0;min-width:0;outline:none!important;overflow:hidden;padding:0;position:absolute;resize:none;z-index:-10}.monaco-editor .inputarea.ime-input{caret-color:var(--vscode-editorCursor-foreground);color:var(--vscode-editor-foreground);z-index:10}.monaco-workbench .workbench-hover{background:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);border-radius:3px;box-shadow:0 2px 8px var(--vscode-widget-shadow);color:var(--vscode-editorHoverWidget-foreground);font-size:13px;line-height:19px;max-width:700px;overflow:hidden;position:relative;z-index:40}.monaco-workbench .workbench-hover hr{border-bottom:none}.monaco-workbench .workbench-hover:not(.skip-fade-in){animation:fadein .1s linear}.monaco-workbench .workbench-hover.compact{font-size:12px}.monaco-workbench .workbench-hover.compact .hover-contents{padding:2px 8px}.monaco-workbench .workbench-hover-container.locked .workbench-hover{outline:1px solid var(--vscode-editorHoverWidget-border)}.monaco-workbench .workbench-hover-container.locked .workbench-hover:focus,.monaco-workbench .workbench-hover-lock:focus{outline:1px solid var(--vscode-focusBorder)}.monaco-workbench .workbench-hover-container.locked .workbench-hover-lock:hover{background:var(--vscode-toolbar-hoverBackground)}.monaco-workbench .workbench-hover-pointer{pointer-events:none;position:absolute;z-index:41}.monaco-workbench .workbench-hover-pointer:after{background-color:var(--vscode-editorHoverWidget-background);border-bottom:1px solid var(--vscode-editorHoverWidget-border);border-right:1px solid var(--vscode-editorHoverWidget-border);content:"";height:5px;position:absolute;width:5px}.monaco-workbench .locked .workbench-hover-pointer:after{border-bottom-width:2px;border-right-width:2px;height:4px;width:4px}.monaco-workbench .workbench-hover-pointer.left{left:-3px}.monaco-workbench .workbench-hover-pointer.right{right:3px}.monaco-workbench .workbench-hover-pointer.top{top:-3px}.monaco-workbench .workbench-hover-pointer.bottom{bottom:3px}.monaco-workbench .workbench-hover-pointer.left:after{transform:rotate(135deg)}.monaco-workbench .workbench-hover-pointer.right:after{transform:rotate(315deg)}.monaco-workbench .workbench-hover-pointer.top:after{transform:rotate(225deg)}.monaco-workbench .workbench-hover-pointer.bottom:after{transform:rotate(45deg)}.monaco-workbench .workbench-hover a{color:var(--vscode-textLink-foreground)}.monaco-workbench .workbench-hover a:focus{outline:1px solid;outline-color:var(--vscode-focusBorder);outline-offset:-1px;text-decoration:underline}.monaco-workbench .workbench-hover a:active,.monaco-workbench .workbench-hover a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-workbench .workbench-hover code{background:var(--vscode-textCodeBlock-background)}.monaco-workbench .workbench-hover .hover-row .actions{background:var(--vscode-editorHoverWidget-statusBarBackground)}.monaco-workbench .workbench-hover.right-aligned{left:1px}.monaco-workbench .workbench-hover.right-aligned .hover-row.status-bar .actions{flex-direction:row-reverse}.monaco-workbench .workbench-hover.right-aligned .hover-row.status-bar .actions .action-container{margin-left:16px;margin-right:0}.monaco-editor .blockDecorations-container{pointer-events:none;position:absolute;top:0}.monaco-editor .blockDecorations-block{box-sizing:border-box;position:absolute}.monaco-editor .margin-view-overlays .current-line,.monaco-editor .view-overlays .current-line{box-sizing:border-box;display:block;height:100%;left:0;position:absolute;top:0}.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{height:100%;position:absolute}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .glyph-margin-widgets .cgmr{align-items:center;display:flex;justify-content:center;position:absolute}.monaco-editor .glyph-margin-widgets .cgmr.codicon-modifier-spin:before{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.monaco-editor .lines-content .core-guide{box-sizing:border-box;height:100%;position:absolute}.monaco-editor .margin-view-overlays .line-numbers{bottom:0;box-sizing:border-box;cursor:default;display:inline-block;font-variant-numeric:tabular-nums;position:absolute;text-align:right;vertical-align:middle}.monaco-editor .relative-current-line-number{display:inline-block;text-align:left;width:100%}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}.monaco-editor .line-numbers{color:var(--vscode-editorLineNumber-foreground)}.monaco-editor .line-numbers.active-line-number{color:var(--vscode-editorLineNumber-activeForeground)}.mtkcontrol{background:#960000!important;color:#fff!important}.mtkoverflow{background-color:var(--vscode-button-background,var(--vscode-editor-background));border-color:var(--vscode-contrastBorder);border-radius:2px;border-style:solid;border-width:1px;color:var(--vscode-button-foreground,var(--vscode-editor-foreground));cursor:pointer;padding:4px}.mtkoverflow:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-editor.no-user-select .lines-content,.monaco-editor.no-user-select .view-line,.monaco-editor.no-user-select .view-lines{user-select:none;-webkit-user-select:none}.monaco-editor.mac .lines-content:hover,.monaco-editor.mac .view-line:hover,.monaco-editor.mac .view-lines:hover{user-select:text;-webkit-user-select:text;-ms-user-select:text}.monaco-editor.enable-user-select{user-select:auto;-webkit-user-select:initial}.monaco-editor .view-lines{white-space:nowrap}.monaco-editor .view-line{position:absolute;width:100%}.monaco-editor .lines-content>.view-lines>.view-line>span{bottom:0;position:absolute;top:0}.monaco-editor .mtkw,.monaco-editor .mtkz{color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .mtkz{display:inline-block}.monaco-editor .lines-decorations{background:#fff;position:absolute;top:0}.monaco-editor .margin-view-overlays .cldr{height:100%;position:absolute}.monaco-editor .margin{background-color:var(--vscode-editorGutter-background)}.monaco-editor .margin-view-overlays .cmdr{height:100%;left:0;position:absolute;width:100%}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover .minimap-slider.active,.monaco-editor .minimap.slider-mouseover:hover .minimap-slider{opacity:1}.monaco-editor .minimap-slider .minimap-slider-horizontal{background:var(--vscode-minimapSlider-background)}.monaco-editor .minimap-slider:hover .minimap-slider-horizontal{background:var(--vscode-minimapSlider-hoverBackground)}.monaco-editor .minimap-slider.active .minimap-slider-horizontal{background:var(--vscode-minimapSlider-activeBackground)}.monaco-editor .minimap-shadow-visible{box-shadow:var(--vscode-scrollbar-shadow) -6px 0 6px -6px inset}.monaco-editor .minimap-shadow-hidden{position:absolute;width:0}.monaco-editor .minimap-shadow-visible{left:-6px;position:absolute;width:6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{left:-1px;position:absolute;width:1px}.minimap.autohide{opacity:0;transition:opacity .5s}.minimap.autohide:hover{opacity:1}.monaco-editor .minimap{z-index:5}.monaco-editor .overlayWidgets{left:0;position:absolute;top:0}.monaco-editor .view-ruler{box-shadow:1px 0 0 0 var(--vscode-editorRuler-foreground) inset;position:absolute;top:0}.monaco-editor .scroll-decoration{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;height:6px;left:0;position:absolute;top:0}.monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .focused .selected-text{background-color:var(--vscode-editor-selectionBackground)}.monaco-editor .selected-text{background-color:var(--vscode-editor-inactiveSelectionBackground)}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor.hc-light .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-light .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-light .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-light .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{box-sizing:border-box;overflow:hidden;position:absolute}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{background:transparent!important;border-style:solid;border-width:1px}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{background:transparent!important;border-bottom-style:solid;border-bottom-width:2px}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{background:transparent!important;border-bottom-style:solid;border-bottom-width:1px}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-expand{0%,20%{transform:scaleY(1)}80%,to{transform:scaleY(0)}}.cursor-smooth{animation:monaco-cursor-smooth .5s ease-in-out 0s 20 alternate}.cursor-phase{animation:monaco-cursor-phase .5s ease-in-out 0s 20 alternate}.cursor-expand>.cursor{animation:monaco-cursor-expand .5s ease-in-out 0s 20 alternate}.monaco-editor .mwh{color:var(--vscode-editorWhitespace-foreground)!important;position:absolute}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{overflow:visible;position:relative;-webkit-text-size-adjust:100%;color:var(--vscode-editor-foreground);overflow-wrap:normal}.monaco-editor,.monaco-editor-background{background-color:var(--vscode-editor-background)}.monaco-editor .rangeHighlight{background-color:var(--vscode-editor-rangeHighlightBackground);border:1px solid var(--vscode-editor-rangeHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .rangeHighlight,.monaco-editor.hc-light .rangeHighlight{border-style:dotted}.monaco-editor .symbolHighlight{background-color:var(--vscode-editor-symbolHighlightBackground);border:1px solid var(--vscode-editor-symbolHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .symbolHighlight,.monaco-editor.hc-light .symbolHighlight{border-style:dotted}.monaco-editor .overflow-guard{overflow:hidden;position:relative}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .margin-view-overlays>div,.monaco-editor .view-overlays>div{position:absolute;width:100%}.monaco-editor .squiggly-error{border-bottom:4px double var(--vscode-editorError-border)}.monaco-editor .squiggly-error:before{background:var(--vscode-editorError-background);content:"";display:block;height:100%;width:100%}.monaco-editor .squiggly-warning{border-bottom:4px double var(--vscode-editorWarning-border)}.monaco-editor .squiggly-warning:before{background:var(--vscode-editorWarning-background);content:"";display:block;height:100%;width:100%}.monaco-editor .squiggly-info{border-bottom:4px double var(--vscode-editorInfo-border)}.monaco-editor .squiggly-info:before{background:var(--vscode-editorInfo-background);content:"";display:block;height:100%;width:100%}.monaco-editor .squiggly-hint{border-bottom:2px dotted var(--vscode-editorHint-border)}.monaco-editor.showUnused .squiggly-unnecessary{border-bottom:2px dashed var(--vscode-editorUnnecessaryCode-border)}.monaco-editor.showDeprecated .squiggly-inline-deprecated{text-decoration:line-through;text-decoration-color:var(--vscode-editor-foreground,inherit)}.monaco-component.diff-review{user-select:none;-webkit-user-select:none;z-index:99}.monaco-diff-editor .diff-review{position:absolute}.monaco-component.diff-review .diff-review-line-number{color:var(--vscode-editorLineNumber-foreground);display:inline-block;text-align:right}.monaco-component.diff-review .diff-review-summary{padding-left:10px}.monaco-component.diff-review .diff-review-shadow{box-shadow:var(--vscode-scrollbar-shadow) 0 -6px 6px -6px inset;position:absolute}.monaco-component.diff-review .diff-review-row{white-space:pre}.monaco-component.diff-review .diff-review-table{display:table;min-width:100%}.monaco-component.diff-review .diff-review-row{display:table-row;width:100%}.monaco-component.diff-review .diff-review-spacer{display:inline-block;vertical-align:middle;width:10px}.monaco-component.diff-review .diff-review-spacer>.codicon{font-size:9px!important}.monaco-component.diff-review .diff-review-actions{display:inline-block;position:absolute;right:10px;top:2px;z-index:100}.monaco-component.diff-review .diff-review-actions .action-label{height:16px;margin:2px 0;width:16px}.monaco-component.diff-review .revertButton{cursor:pointer}.monaco-editor .diff-hidden-lines-widget{width:100%}.monaco-editor .diff-hidden-lines{font-size:13px;height:0;line-height:14px;transform:translateY(-10px)}.monaco-editor .diff-hidden-lines .bottom.dragging,.monaco-editor .diff-hidden-lines .top.dragging,.monaco-editor .diff-hidden-lines:not(.dragging) .bottom:hover,.monaco-editor .diff-hidden-lines:not(.dragging) .top:hover{background-color:var(--vscode-focusBorder)}.monaco-editor .diff-hidden-lines .bottom,.monaco-editor .diff-hidden-lines .top{background-clip:padding-box;background-color:transparent;border-bottom:2px solid transparent;border-top:4px solid transparent;height:4px;transition:background-color .1s ease-out}.monaco-editor .diff-hidden-lines .bottom.canMoveTop:not(.canMoveBottom),.monaco-editor .diff-hidden-lines .top.canMoveTop:not(.canMoveBottom),.monaco-editor.draggingUnchangedRegion.canMoveTop:not(.canMoveBottom) *{cursor:n-resize!important}.monaco-editor .diff-hidden-lines .bottom:not(.canMoveTop).canMoveBottom,.monaco-editor .diff-hidden-lines .top:not(.canMoveTop).canMoveBottom,.monaco-editor.draggingUnchangedRegion:not(.canMoveTop).canMoveBottom *{cursor:s-resize!important}.monaco-editor .diff-hidden-lines .bottom.canMoveTop.canMoveBottom,.monaco-editor .diff-hidden-lines .top.canMoveTop.canMoveBottom,.monaco-editor.draggingUnchangedRegion.canMoveTop.canMoveBottom *{cursor:ns-resize!important}.monaco-editor .diff-hidden-lines .top{transform:translateY(4px)}.monaco-editor .diff-hidden-lines .bottom{transform:translateY(-6px)}.monaco-editor .diff-unchanged-lines{background:var(--vscode-diffEditor-unchangedCodeBackground)}.monaco-editor .noModificationsOverlay{align-items:center;background:var(--vscode-editor-background);display:flex;justify-content:center;z-index:1}.monaco-editor .diff-hidden-lines .center{background:var(--vscode-diffEditor-unchangedRegionBackground);box-shadow:inset 0 -5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow),inset 0 5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow);color:var(--vscode-diffEditor-unchangedRegionForeground);display:block;height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .diff-hidden-lines .center span.codicon{vertical-align:middle}.monaco-editor .diff-hidden-lines .center a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important;cursor:pointer}.monaco-editor .diff-hidden-lines div.breadcrumb-item{cursor:pointer}.monaco-editor .diff-hidden-lines div.breadcrumb-item:hover{color:var(--vscode-editorLink-activeForeground)}.monaco-editor .movedModified,.monaco-editor .movedOriginal{border:2px solid var(--vscode-diffEditor-move-border)}.monaco-editor .movedModified.currentMove,.monaco-editor .movedOriginal.currentMove{border:2px solid var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines path.currentMove{stroke:var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines path{pointer-events:visiblestroke}.monaco-diff-editor .moved-blocks-lines .arrow{fill:var(--vscode-diffEditor-move-border)}.monaco-diff-editor .moved-blocks-lines .arrow.currentMove{fill:var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines .arrow-rectangle{fill:var(--vscode-editor-background)}.monaco-diff-editor .moved-blocks-lines{pointer-events:none;position:absolute}.monaco-diff-editor .moved-blocks-lines path{fill:none;stroke:var(--vscode-diffEditor-move-border);stroke-width:2}.monaco-editor .char-delete.diff-range-empty{border-left:3px solid var(--vscode-diffEditor-removedTextBackground);margin-left:-1px}.monaco-editor .char-insert.diff-range-empty{border-left:3px solid var(--vscode-diffEditor-insertedTextBackground)}.monaco-editor .fold-unchanged{cursor:pointer}.monaco-diff-editor .diff-moved-code-block{display:flex;justify-content:flex-end;margin-top:-4px}.monaco-diff-editor .diff-moved-code-block .action-bar .action-label.codicon{font-size:12px;height:12px;width:12px}.monaco-diff-editor .diffOverview{z-index:9}.monaco-diff-editor .diffOverview .diffViewport{z-index:10}.monaco-diff-editor.vs .diffOverview{background:#00000008}.monaco-diff-editor.vs-dark .diffOverview{background:#ffffff03}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar{background:transparent}.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-light .scrollbar{background:none}.monaco-scrollable-element.modified-in-monaco-diff-editor .slider{z-index:10}.modified-in-monaco-diff-editor .slider.active{background:#ababab66}.modified-in-monaco-diff-editor.hc-black .slider.active,.modified-in-monaco-diff-editor.hc-light .slider.active{background:none}.monaco-diff-editor .delete-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-editor .insert-sign{align-items:center;display:flex!important;font-size:11px!important;opacity:.7!important}.monaco-diff-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-diff-editor.hc-light .delete-sign,.monaco-diff-editor.hc-light .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-editor.hc-black .insert-sign,.monaco-editor.hc-light .delete-sign,.monaco-editor.hc-light .insert-sign{opacity:1}.monaco-editor .inline-added-margin-view-zone,.monaco-editor .inline-deleted-margin-view-zone{text-align:right}.monaco-editor .arrow-revert-change{position:absolute;z-index:10}.monaco-editor .arrow-revert-change:hover{cursor:pointer}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-editor .margin-view-zones .lightbulb-glyph:hover{cursor:pointer}.monaco-diff-editor .char-insert,.monaco-editor .char-insert{background-color:var(--vscode-diffEditor-insertedTextBackground)}.monaco-diff-editor .line-insert,.monaco-editor .line-insert{background-color:var(--vscode-diffEditor-insertedLineBackground,var(--vscode-diffEditor-insertedTextBackground))}.monaco-editor .char-insert,.monaco-editor .line-insert{border:1px solid var(--vscode-diffEditor-insertedTextBorder);box-sizing:border-box}.monaco-editor.hc-black .char-insert,.monaco-editor.hc-black .line-insert,.monaco-editor.hc-light .char-insert,.monaco-editor.hc-light .line-insert{border-style:dashed}.monaco-editor .char-delete,.monaco-editor .line-delete{border:1px solid var(--vscode-diffEditor-removedTextBorder);box-sizing:border-box}.monaco-editor.hc-black .char-delete,.monaco-editor.hc-black .line-delete,.monaco-editor.hc-light .char-delete,.monaco-editor.hc-light .line-delete{border-style:dashed}.monaco-diff-editor .gutter-insert,.monaco-editor .gutter-insert,.monaco-editor .inline-added-margin-view-zone{background-color:var(--vscode-diffEditorGutter-insertedLineBackground,var(--vscode-diffEditor-insertedLineBackground),var(--vscode-diffEditor-insertedTextBackground))}.monaco-diff-editor .char-delete,.monaco-editor .char-delete,.monaco-editor .inline-deleted-text{background-color:var(--vscode-diffEditor-removedTextBackground)}.monaco-editor .inline-deleted-text{text-decoration:line-through}.monaco-diff-editor .line-delete,.monaco-editor .line-delete{background-color:var(--vscode-diffEditor-removedLineBackground,var(--vscode-diffEditor-removedTextBackground))}.monaco-diff-editor .gutter-delete,.monaco-editor .gutter-delete,.monaco-editor .inline-deleted-margin-view-zone{background-color:var(--vscode-diffEditorGutter-removedLineBackground,var(--vscode-diffEditor-removedLineBackground),var(--vscode-diffEditor-removedTextBackground))}.monaco-diff-editor.side-by-side .editor.modified{border-left:1px solid var(--vscode-diffEditor-border);box-shadow:-6px 0 5px -5px var(--vscode-scrollbar-shadow)}.monaco-diff-editor.side-by-side .editor.original{border-right:1px solid var(--vscode-diffEditor-border);box-shadow:6px 0 5px -5px var(--vscode-scrollbar-shadow)}.monaco-diff-editor .diffViewport{background:var(--vscode-scrollbarSlider-background)}.monaco-diff-editor .diffViewport:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-diff-editor .diffViewport:active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-editor .diagonal-fill{background-image:linear-gradient(-45deg,var(--vscode-diffEditor-diagonalFill) 12.5%,#0000 12.5%,#0000 50%,var(--vscode-diffEditor-diagonalFill) 50%,var(--vscode-diffEditor-diagonalFill) 62.5%,#0000 62.5%,#0000 100%);background-size:8px 8px}.monaco-diff-editor .gutter{flex-grow:0;flex-shrink:0;overflow:hidden;position:relative}.monaco-diff-editor .gutter>div{position:absolute}.monaco-diff-editor .gutter .gutterItem{opacity:0;transition:opacity .7s}.monaco-diff-editor .gutter .gutterItem.showAlways{opacity:1;transition:none}.monaco-diff-editor .gutter .gutterItem.noTransition{transition:none}.monaco-diff-editor .gutter:hover .gutterItem{opacity:1;transition:opacity .1s ease-in-out}.monaco-diff-editor .gutter .gutterItem .background{border-left:2px solid var(--vscode-menu-border);height:100%;left:50%;position:absolute;width:1px}.monaco-diff-editor .gutter .gutterItem .buttons{align-items:center;display:flex;justify-content:center;position:absolute;width:100%}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar{height:fit-content}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar .monaco-action-bar{line-height:1}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar .monaco-action-bar .actions-container{background:var(--vscode-editorGutter-commentRangeForeground);border-radius:4px;width:fit-content}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar .monaco-action-bar .actions-container .action-item:hover{background:var(--vscode-toolbar-hoverBackground)}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar .monaco-action-bar .actions-container .action-item .action-label{padding:1px 2px}.monaco-diff-editor .diff-hidden-lines-compact{display:flex;height:11px}.monaco-diff-editor .diff-hidden-lines-compact .line-left,.monaco-diff-editor .diff-hidden-lines-compact .line-right{border-top:1px solid;border-color:var(--vscode-editorCodeLens-foreground);height:1px;margin:auto;opacity:.5;width:100%}.monaco-diff-editor .diff-hidden-lines-compact .line-left{width:20px}.monaco-diff-editor .diff-hidden-lines-compact .text{color:var(--vscode-editorCodeLens-foreground);text-wrap:nowrap;font-size:11px;line-height:11px;margin:0 4px}.monaco-editor .rendered-markdown kbd{background-color:var(--vscode-keybindingLabel-background);border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);border-radius:3px;border-style:solid;border-width:1px;box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);color:var(--vscode-keybindingLabel-foreground);padding:1px 3px;vertical-align:middle}.rendered-markdown li:has(input[type=checkbox]){list-style-type:none}.monaco-component.multiDiffEditor{background:var(--vscode-multiDiffEditor-background);height:100%;overflow-y:hidden;position:relative;width:100%}.monaco-component.multiDiffEditor>div{height:100%;left:0;position:absolute;top:0;width:100%}.monaco-component.multiDiffEditor>div.placeholder{display:grid;place-content:center;place-items:center;visibility:hidden}.monaco-component.multiDiffEditor>div.placeholder.visible{visibility:visible}.monaco-component.multiDiffEditor .active{--vscode-multiDiffEditor-border:var(--vscode-focusBorder)}.monaco-component.multiDiffEditor .multiDiffEntry{display:flex;flex:1;flex-direction:column;overflow:hidden}.monaco-component.multiDiffEditor .multiDiffEntry .collapse-button{cursor:pointer;margin:0 5px}.monaco-component.multiDiffEditor .multiDiffEntry .collapse-button a{display:block}.monaco-component.multiDiffEditor .multiDiffEntry .header{background:var(--vscode-editor-background);z-index:1000}.monaco-component.multiDiffEditor .multiDiffEntry .header:not(.collapsed) .header-content{border-bottom:1px solid var(--vscode-sideBarSectionHeader-border)}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content{align-items:center;background:var(--vscode-multiDiffEditor-headerBackground);border-top:1px solid var(--vscode-multiDiffEditor-border);color:var(--vscode-foreground);display:flex;margin:8px 0 0;padding:4px 5px}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content.shadow{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .file-path{display:flex;flex:1;min-width:0}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .file-path .title{font-size:14px;line-height:22px}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .file-path .title.original{flex:1;min-width:0;text-overflow:ellipsis}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .file-path .status{font-weight:600;line-height:22px;margin:0 10px;opacity:.75}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .actions{padding:0 8px}.monaco-component.multiDiffEditor .multiDiffEntry .editorParent{border-bottom:1px solid var(--vscode-multiDiffEditor-border);display:flex;flex:1;flex-direction:column;overflow:hidden}.monaco-component.multiDiffEditor .multiDiffEntry .editorContainer{flex:1}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{background-color:var(--vscode-editorBracketMatch-background);border:1px solid var(--vscode-editorBracketMatch-border);box-sizing:border-box}.monaco-editor .lightBulbWidget{align-items:center;display:flex;justify-content:center}.monaco-editor .lightBulbWidget:hover{cursor:pointer}.monaco-editor .lightBulbWidget.codicon-light-bulb,.monaco-editor .lightBulbWidget.codicon-lightbulb-sparkle{color:var(--vscode-editorLightBulb-foreground)}.monaco-editor .lightBulbWidget.codicon-lightbulb-autofix,.monaco-editor .lightBulbWidget.codicon-lightbulb-sparkle-autofix{color:var(--vscode-editorLightBulbAutoFix-foreground,var(--vscode-editorLightBulb-foreground))}.monaco-editor .lightBulbWidget.codicon-sparkle-filled{color:var(--vscode-editorLightBulbAi-foreground,var(--vscode-icon-foreground))}.monaco-editor .lightBulbWidget:before{position:relative;z-index:2}.monaco-editor .lightBulbWidget:after{content:"";display:block;height:100%;left:0;opacity:.3;position:absolute;top:0;width:100%;z-index:1}.monaco-editor .glyph-margin-widgets .cgmr[class*=codicon-gutter-lightbulb]{cursor:pointer;display:block}.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb,.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-sparkle{color:var(--vscode-editorLightBulb-foreground)}.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-aifix-auto-fix,.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-auto-fix{color:var(--vscode-editorLightBulbAutoFix-foreground,var(--vscode-editorLightBulb-foreground))}.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-sparkle-filled{color:var(--vscode-editorLightBulbAi-foreground,var(--vscode-icon-foreground))}.monaco-editor .codelens-decoration{color:var(--vscode-editorCodeLens-foreground);display:inline-block;font-family:var(--vscode-editorCodeLens-fontFamily),var(--vscode-editorCodeLens-fontFamilyDefault);font-feature-settings:var(--vscode-editorCodeLens-fontFeatureSettings);font-size:var(--vscode-editorCodeLens-fontSize);line-height:var(--vscode-editorCodeLens-lineHeight);overflow:hidden;padding-right:calc(var(--vscode-editorCodeLens-fontSize)*.5);text-overflow:ellipsis;white-space:nowrap}.monaco-editor .codelens-decoration>a,.monaco-editor .codelens-decoration>span{user-select:none;-webkit-user-select:none;vertical-align:sub;white-space:nowrap}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer}.monaco-editor .codelens-decoration>a:hover,.monaco-editor .codelens-decoration>a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration .codicon{color:currentColor!important;color:var(--vscode-editorCodeLens-foreground);font-size:var(--vscode-editorCodeLens-fontSize);line-height:var(--vscode-editorCodeLens-lineHeight);vertical-align:middle}.monaco-editor .codelens-decoration>a:hover .codicon:before{cursor:pointer}@keyframes fadein{0%{opacity:0;visibility:visible}to{opacity:1}}.monaco-editor .codelens-decoration.fadein{animation:fadein .1s linear}.colorpicker-widget{height:190px;user-select:none;-webkit-user-select:none}.colorpicker-color-decoration,.hc-light .colorpicker-color-decoration{border:.1em solid #000;box-sizing:border-box;cursor:pointer;display:inline-block;height:.8em;line-height:.8em;margin:.1em .2em 0;width:.8em}.hc-black .colorpicker-color-decoration,.vs-dark .colorpicker-color-decoration{border:.1em solid #eee}.colorpicker-header{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;display:flex;height:24px;image-rendering:pixelated;position:relative}.colorpicker-header .picked-color{align-items:center;color:#fff;cursor:pointer;display:flex;flex:1;justify-content:center;line-height:24px;overflow:hidden;white-space:nowrap;width:240px}.colorpicker-header .picked-color .picked-color-presentation{margin-left:5px;margin-right:5px;white-space:nowrap}.colorpicker-header .picked-color .codicon{color:inherit;font-size:14px}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{cursor:pointer;width:74px;z-index:inherit}.standalone-colorpicker{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground)}.colorpicker-header.standalone-colorpicker{border-bottom:none}.colorpicker-header .close-button{background-color:var(--vscode-editorHoverWidget-background);border-left:1px solid var(--vscode-editorHoverWidget-border);cursor:pointer}.colorpicker-header .close-button-inner-div{height:100%;text-align:center;width:100%}.colorpicker-header .close-button-inner-div:hover{background-color:var(--vscode-toolbar-hoverBackground)}.colorpicker-header .close-icon{padding:3px}.colorpicker-body{display:flex;padding:8px;position:relative}.colorpicker-body .saturation-wrap{flex:1;height:150px;min-width:220px;overflow:hidden;position:relative}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{border:1px solid #fff;border-radius:100%;box-shadow:0 0 2px #000c;height:9px;margin:-5px 0 0 -5px;position:absolute;width:9px}.colorpicker-body .strip{height:150px;width:25px}.colorpicker-body .standalone-strip{height:122px;width:25px}.colorpicker-body .hue-strip{background:linear-gradient(180deg,red 0,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red);cursor:grab;margin-left:8px;position:relative}.colorpicker-body .opacity-strip{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;cursor:grab;image-rendering:pixelated;margin-left:8px;position:relative}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{border:1px solid hsla(0,0%,100%,.71);box-shadow:0 0 1px #000000d9;box-sizing:border-box;height:4px;left:-2px;position:absolute;top:0;width:calc(100% + 4px)}.colorpicker-body .strip .overlay{height:150px;pointer-events:none}.colorpicker-body .standalone-strip .standalone-overlay{height:122px;pointer-events:none}.standalone-colorpicker-body{border:1px solid transparent;border-bottom:1px solid var(--vscode-editorHoverWidget-border);display:block;overflow:hidden}.colorpicker-body .insert-button{background:var(--vscode-button-background);border:none;border-radius:2px;bottom:8px;color:var(--vscode-button-foreground);cursor:pointer;height:20px;padding:0;position:absolute;right:8px;width:58px}.colorpicker-body .insert-button:hover{background:var(--vscode-button-hoverBackground)}.monaco-editor.hc-light .dnd-target,.monaco-editor.vs .dnd-target{border-right:2px dotted #000;color:#fff}.monaco-editor.vs-dark .dnd-target{border-right:2px dotted #aeafad;color:#51504f}.monaco-editor.hc-black .dnd-target{border-right:2px dotted #fff;color:#000}.monaco-editor.hc-black.mac.mouse-default .view-lines,.monaco-editor.hc-light.mac.mouse-default .view-lines,.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines{cursor:default}.monaco-editor.hc-black.mac.mouse-copy .view-lines,.monaco-editor.hc-light.mac.mouse-copy .view-lines,.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines{cursor:copy}.post-edit-widget{background-color:var(--vscode-editorWidget-background);border:1px solid var(--vscode-widget-border,transparent);border-radius:4px;box-shadow:0 0 8px 2px var(--vscode-widget-shadow);overflow:hidden}.post-edit-widget .monaco-button{border:none;border-radius:0;padding:2px}.post-edit-widget .monaco-button:hover{background-color:var(--vscode-button-secondaryHoverBackground)!important}.post-edit-widget .monaco-button .codicon{margin:0}.monaco-editor .findOptionsWidget{border:2px solid var(--vscode-contrastBorder)}.monaco-editor .find-widget,.monaco-editor .findOptionsWidget{background-color:var(--vscode-editorWidget-background);box-shadow:0 0 8px 2px var(--vscode-widget-shadow);color:var(--vscode-editorWidget-foreground)}.monaco-editor .find-widget{border-bottom:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-left:1px solid var(--vscode-widget-border);border-right:1px solid var(--vscode-widget-border);box-sizing:border-box;height:33px;line-height:19px;overflow:hidden;padding:0 4px;position:absolute;transform:translateY(calc(-100% - 10px));transition:transform .2s linear;z-index:35}.monaco-workbench.reduce-motion .monaco-editor .find-widget{transition:transform 0ms linear}.monaco-editor .find-widget textarea{margin:0}.monaco-editor .find-widget.hiddenEditor{display:none}.monaco-editor .find-widget.replaceToggled>.replace-part{display:flex}.monaco-editor .find-widget.visible{transform:translateY(0)}.monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline:1px solid -webkit-focus-ring-color;outline-color:var(--vscode-focusBorder);outline-offset:-1px}.monaco-editor .find-widget .monaco-inputbox .input{background-color:transparent;min-height:0}.monaco-editor .find-widget .monaco-findInput .input{font-size:13px}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{display:flex;font-size:12px;margin:3px 25px 0 17px}.monaco-editor .find-widget>.find-part .monaco-inputbox,.monaco-editor .find-widget>.replace-part .monaco-inputbox{min-height:25px}.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-right:22px}.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.mirror,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-bottom:2px;padding-top:2px}.monaco-editor .find-widget>.find-part .find-actions,.monaco-editor .find-widget>.replace-part .replace-actions{align-items:center;display:flex;height:25px}.monaco-editor .find-widget .monaco-findInput{display:flex;flex:1;vertical-align:middle}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element{width:100%}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical{opacity:0}.monaco-editor .find-widget .matchesCount{box-sizing:border-box;display:flex;flex:initial;height:25px;line-height:23px;margin:0 0 0 3px;padding:2px 0 0 2px;text-align:center;vertical-align:middle}.monaco-editor .find-widget .button{align-items:center;background-position:50%;background-repeat:no-repeat;border-radius:5px;cursor:pointer;display:flex;flex:initial;height:16px;justify-content:center;margin-left:3px;padding:3px;width:16px}.monaco-editor .find-widget .codicon-find-selection{border-radius:5px;height:22px;padding:3px;width:22px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{padding:1px 6px;top:-1px;width:auto}.monaco-editor .find-widget .button.toggle{border-radius:0;box-sizing:border-box;height:100%;left:3px;position:absolute;top:0;width:18px}.monaco-editor .find-widget .button.toggle.disabled{display:none}.monaco-editor .find-widget .disabled{color:var(--vscode-disabledForeground);cursor:default}.monaco-editor .find-widget>.replace-part{display:none}.monaco-editor .find-widget>.replace-part>.monaco-findInput{display:flex;flex:auto;flex-grow:0;flex-shrink:0;position:relative;vertical-align:middle}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;right:2px;top:3px}.monaco-editor .find-widget.reduced-find-widget .matchesCount{display:none}.monaco-editor .find-widget.narrow-find-widget{max-width:257px!important}.monaco-editor .find-widget.collapsed-find-widget{max-width:170px!important}.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.previous,.monaco-editor .find-widget.collapsed-find-widget .button.replace,.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-findInput .controls{display:none}.monaco-editor .find-widget.no-results .matchesCount{color:var(--vscode-errorForeground)}.monaco-editor .findMatch{animation-duration:0;animation-name:inherit!important;background-color:var(--vscode-editor-findMatchHighlightBackground)}.monaco-editor .currentFindMatch{background-color:var(--vscode-editor-findMatchBackground);border:2px solid var(--vscode-editor-findMatchBorder);box-sizing:border-box;padding:1px}.monaco-editor .findScope{background-color:var(--vscode-editor-findRangeHighlightBackground)}.monaco-editor .find-widget .monaco-sash{background-color:var(--vscode-editorWidget-resizeBorder,var(--vscode-editorWidget-border));left:0!important}.monaco-editor.hc-black .find-widget .button:before{left:2px;position:relative;top:1px}.monaco-editor .find-widget .button:not(.disabled):hover,.monaco-editor .find-widget .codicon-find-selection:hover{background-color:var(--vscode-toolbar-hoverBackground)!important}.monaco-editor.findMatch{background-color:var(--vscode-editor-findMatchHighlightBackground)}.monaco-editor.currentFindMatch{background-color:var(--vscode-editor-findMatchBackground)}.monaco-editor.findScope{background-color:var(--vscode-editor-findRangeHighlightBackground)}.monaco-editor.findMatch{background-color:var(--vscode-editorWidget-background)}.monaco-editor .find-widget>.button.codicon-widget-close{position:absolute;right:4px;top:5px}.monaco-editor .margin-view-overlays .codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-manual-expanded{align-items:center;cursor:pointer;display:flex;font-size:140%;justify-content:center;margin-left:2px;opacity:0;transition:opacity .5s}.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-collapsed,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-expanded{transition:initial}.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon.codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays:hover .codicon{opacity:1}.monaco-editor .inline-folded:after{color:var(--vscode-editor-foldPlaceholderForeground);content:"⋯";cursor:pointer;display:inline;line-height:1em;margin:.1em .2em 0}.monaco-editor .folded-background{background-color:var(--vscode-editor-foldBackground)}.monaco-editor .cldr.codicon.codicon-folding-collapsed,.monaco-editor .cldr.codicon.codicon-folding-expanded,.monaco-editor .cldr.codicon.codicon-folding-manual-collapsed,.monaco-editor .cldr.codicon.codicon-folding-manual-expanded{color:var(--vscode-editorGutter-foldingControlForeground)!important}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;margin-right:4px;vertical-align:text-top}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{font-style:italic;opacity:.6}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{padding:8px 12px 0 20px;position:absolute;user-select:text;-webkit-user-select:text;white-space:pre}.monaco-editor .marker-widget .descriptioncontainer .message{display:flex;flex-direction:column}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{color:inherit;opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:"("}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:")"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{border-bottom:1px solid transparent;color:var(--vscode-textLink-activeForeground);text-decoration:underline;text-underline-position:under}.monaco-editor .marker-widget .descriptioncontainer .filename{color:var(--vscode-textLink-activeForeground);cursor:pointer}.monaco-editor .goto-definition-link{color:var(--vscode-editorLink-activeForeground)!important;cursor:pointer;text-decoration:underline}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-bottom-width:1px;border-top-width:1px}.monaco-editor .reference-zone-widget .inline{display:inline-block;vertical-align:top}.monaco-editor .reference-zone-widget .messages{height:100%;padding:3em 0;text-align:center;width:100%}.monaco-editor .reference-zone-widget .ref-tree{background-color:var(--vscode-peekViewResult-background);color:var(--vscode-peekViewResult-lineForeground);line-height:23px}.monaco-editor .reference-zone-widget .ref-tree .reference{overflow:hidden;text-overflow:ellipsis}.monaco-editor .reference-zone-widget .ref-tree .reference-file{color:var(--vscode-peekViewResult-fileForeground);display:inline-flex;height:100%;width:100%}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file{color:inherit!important}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows>.monaco-list-row.selected:not(.highlighted){background-color:var(--vscode-peekViewResult-selectionBackground);color:var(--vscode-peekViewResult-selectionForeground)!important}.monaco-editor .reference-zone-widget .ref-tree .reference-file .count{margin-left:auto;margin-right:12px}.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight{background-color:var(--vscode-peekViewResult-matchHighlightBackground)}.monaco-editor .reference-zone-widget .preview .reference-decoration{background-color:var(--vscode-peekViewEditor-matchHighlightBackground);border:2px solid var(--vscode-peekViewEditor-matchHighlightBorder);box-sizing:border-box}.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input,.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background{background-color:var(--vscode-peekViewEditor-background)}.monaco-editor .reference-zone-widget .preview .monaco-editor .margin{background-color:var(--vscode-peekViewEditorGutter-background)}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file,.monaco-editor.hc-light .reference-zone-widget .ref-tree .reference-file{font-weight:700}.monaco-editor.hc-black .reference-zone-widget .ref-tree .referenceMatch .highlight,.monaco-editor.hc-light .reference-zone-widget .ref-tree .referenceMatch .highlight{border:1px dotted var(--vscode-contrastActiveBorder,transparent);box-sizing:border-box}.monaco-editor .hoverHighlight{background-color:var(--vscode-editor-hoverHighlightBackground)}.monaco-editor .monaco-hover-content{box-sizing:border-box;padding-bottom:2px;padding-right:2px}.monaco-editor .monaco-hover{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);border-radius:3px;color:var(--vscode-editorHoverWidget-foreground)}.monaco-editor .monaco-hover a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-hover a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .monaco-hover .hover-row{display:flex}.monaco-editor .monaco-hover .hover-row .hover-row-contents{display:flex;flex-direction:column;min-width:0}.monaco-editor .monaco-hover .hover-row .verbosity-actions{border-right:1px solid var(--vscode-editorHoverWidget-border);display:flex;flex-direction:column;justify-content:end;padding-left:5px;padding-right:5px}.monaco-editor .monaco-hover .hover-row .verbosity-actions .codicon{cursor:pointer;font-size:11px}.monaco-editor .monaco-hover .hover-row .verbosity-actions .codicon.enabled{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-hover .hover-row .verbosity-actions .codicon.disabled{opacity:.6}.monaco-editor .monaco-hover .hover-row .actions{background-color:var(--vscode-editorHoverWidget-statusBarBackground)}.monaco-editor .monaco-hover code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor.vs .valueSetReplacement{outline:solid 2px var(--vscode-editorBracketMatch-border)}.monaco-editor .inlineSuggestionsHints.withBorder{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);z-index:39}.monaco-editor .inlineSuggestionsHints a,.monaco-editor .inlineSuggestionsHints a:hover{color:var(--vscode-foreground)}.monaco-editor .inlineSuggestionsHints .keybinding{display:flex;margin-left:4px;opacity:.6}.monaco-editor .inlineSuggestionsHints .keybinding .monaco-keybinding-key{font-size:8px;padding:2px 3px}.monaco-editor .inlineSuggestionsHints .availableSuggestionCount a{display:flex;justify-content:center;min-width:19px}.monaco-editor .inlineSuggestionStatusBarItemLabel{margin-right:2px}.monaco-editor .suggest-preview-additional-widget{white-space:nowrap}.monaco-editor .suggest-preview-additional-widget .content-spacer{color:transparent;white-space:pre}.monaco-editor .suggest-preview-additional-widget .button{cursor:pointer;display:inline-block;text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-hidden{font-size:0;opacity:0}.monaco-editor .ghost-text-decoration,.monaco-editor .suggest-preview-text .ghost-text{font-style:italic}.monaco-editor .ghost-text-decoration,.monaco-editor .ghost-text-decoration-preview,.monaco-editor .suggest-preview-text .ghost-text{background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border);color:var(--vscode-editorGhostText-foreground)!important}.monaco-editor .inline-edit-remove{background-color:var(--vscode-editorGhostText-background);font-style:italic}.monaco-editor .inline-edit-hidden{font-size:0;opacity:0}.monaco-editor .inline-edit-decoration,.monaco-editor .suggest-preview-text .inline-edit{font-style:italic}.monaco-editor .inline-completion-text-to-replace{text-decoration:underline;text-underline-position:under}.monaco-editor .inline-edit-decoration,.monaco-editor .inline-edit-decoration-preview,.monaco-editor .suggest-preview-text .inline-edit{background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border);color:var(--vscode-editorGhostText-foreground)!important}.monaco-editor .inlineEditHints.withBorder{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);z-index:39}.monaco-editor .inlineEditHints a,.monaco-editor .inlineEditHints a:hover{color:var(--vscode-foreground)}.monaco-editor .inlineEditHints .keybinding{display:flex;margin-left:4px;opacity:.6}.monaco-editor .inlineEditHints .keybinding .monaco-keybinding-key{font-size:8px;padding:2px 3px}.monaco-editor .inlineEditStatusBarItemLabel{margin-right:2px}.monaco-editor .inlineEditSideBySide{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);white-space:pre;z-index:39}.monaco-editor div.inline-edits-widget{--widget-color:var(--vscode-notifications-background)}.monaco-editor div.inline-edits-widget .promptEditor .monaco-editor{--vscode-editor-placeholder-foreground:var(--vscode-editorGhostText-foreground)}.monaco-editor div.inline-edits-widget .promptEditor,.monaco-editor div.inline-edits-widget .toolbar{opacity:0;transition:opacity .2s ease-in-out}.monaco-editor div.inline-edits-widget.focused .promptEditor,.monaco-editor div.inline-edits-widget.focused .toolbar,.monaco-editor div.inline-edits-widget:hover .promptEditor,.monaco-editor div.inline-edits-widget:hover .toolbar{opacity:1}.monaco-editor div.inline-edits-widget .preview .monaco-editor{--vscode-editor-background:var(--widget-color)}.monaco-editor div.inline-edits-widget .preview .monaco-editor .mtk1{color:var(--vscode-editorGhostText-foreground)}.monaco-editor div.inline-edits-widget .preview .monaco-editor .current-line-margin,.monaco-editor div.inline-edits-widget .preview .monaco-editor .view-overlays .current-line-exact{border:none}.monaco-editor div.inline-edits-widget svg .gradient-start{stop-color:var(--vscode-editor-background)}.monaco-editor div.inline-edits-widget svg .gradient-stop{stop-color:var(--widget-color)}.inline-editor-progress-decoration{display:inline-block;height:1em;width:1em}.inline-progress-widget{align-items:center;display:flex!important;justify-content:center}.inline-progress-widget .icon{font-size:80%!important}.inline-progress-widget:hover .icon{animation:none;font-size:90%!important}.inline-progress-widget:hover .icon:before{content:var(--vscode-icon-x-content);font-family:var(--vscode-icon-x-font-family)}.monaco-editor .linked-editing-decoration{background-color:var(--vscode-editor-linkedEditingBackground);min-width:1px}.monaco-editor .detected-link,.monaco-editor .detected-link-active{text-decoration:underline;text-underline-position:under}.monaco-editor .detected-link-active{color:var(--vscode-editorLink-activeForeground)!important;cursor:pointer}.monaco-editor .monaco-editor-overlaymessage{padding-bottom:8px;z-index:10000}.monaco-editor .monaco-editor-overlaymessage.below{padding-bottom:0;padding-top:8px;z-index:10000}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:fadeIn .15s ease-out}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:fadeOut .1s ease-out}.monaco-editor .monaco-editor-overlaymessage .message{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-inputValidation-infoBorder);border-radius:3px;color:var(--vscode-editorHoverWidget-foreground);padding:2px 4px}.monaco-editor .monaco-editor-overlaymessage .message p{margin-block:0}.monaco-editor .monaco-editor-overlaymessage .message a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-editor-overlaymessage .message a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor.hc-black .monaco-editor-overlaymessage .message,.monaco-editor.hc-light .monaco-editor-overlaymessage .message{border-width:2px}.monaco-editor .monaco-editor-overlaymessage .anchor{border:8px solid transparent;height:0!important;left:2px;position:absolute;width:0!important;z-index:1000}.monaco-editor .monaco-editor-overlaymessage .anchor.top{border-bottom-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage .anchor.below{border-top-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage.below .anchor.below,.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.monaco-editor .parameter-hints-widget{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);cursor:default;display:flex;flex-direction:column;line-height:1.5em;z-index:39}.hc-black .monaco-editor .parameter-hints-widget,.hc-light .monaco-editor .parameter-hints-widget{border-width:2px}.monaco-editor .parameter-hints-widget>.phwrapper{display:flex;flex-direction:row;max-width:440px}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.multiple .body:before{border-left:1px solid var(--vscode-editorHoverWidget-border);content:"";display:block;height:100%;opacity:.5;position:absolute}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .body,.monaco-editor .parameter-hints-widget .monaco-scrollable-element{display:flex;flex:1;flex-direction:column;min-height:100%}.monaco-editor .parameter-hints-widget .signature{padding:4px 5px;position:relative}.monaco-editor .parameter-hints-widget .signature.has-docs:after{border-bottom:1px solid var(--vscode-editorHoverWidget-border);content:"";display:block;left:0;opacity:.5;padding-top:4px;position:absolute;width:100%}.monaco-editor .parameter-hints-widget .code{font-family:var(--vscode-parameterHintsWidget-editorFontFamily),var(--vscode-parameterHintsWidget-editorFontFamilyDefault)}.monaco-editor .parameter-hints-widget .docs{padding:0 10px 0 5px;white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs.empty{display:none}.monaco-editor .parameter-hints-widget .docs a{color:var(--vscode-textLink-foreground)}.monaco-editor .parameter-hints-widget .docs a:hover{color:var(--vscode-textLink-activeForeground);cursor:pointer}.monaco-editor .parameter-hints-widget .docs .markdown-docs{white-space:normal}.monaco-editor .parameter-hints-widget .docs code{background-color:var(--vscode-textCodeBlock-background);border-radius:3px;font-family:var(--monaco-monospace-font);padding:0 .4em}.monaco-editor .parameter-hints-widget .docs .code,.monaco-editor .parameter-hints-widget .docs .monaco-tokenized-source{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .controls{align-items:center;display:none;flex-direction:column;justify-content:flex-end;min-width:22px}.monaco-editor .parameter-hints-widget.multiple .controls{display:flex;padding:0 2px}.monaco-editor .parameter-hints-widget.multiple .button{background-repeat:no-repeat;cursor:pointer;height:16px;width:16px}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{font-family:var(--monaco-monospace-font);height:12px;line-height:12px;text-align:center}.monaco-editor .parameter-hints-widget .signature .parameter.active{color:var(--vscode-editorHoverWidget-highlightForeground);font-weight:700}.monaco-editor .parameter-hints-widget .documentation-parameter>.parameter{font-weight:700;margin-right:.5em}.monaco-editor .peekview-widget .head{box-sizing:border-box;display:flex;flex-wrap:nowrap;justify-content:space-between}.monaco-editor .peekview-widget .head .peekview-title{align-items:baseline;display:flex;font-size:13px;margin-left:20px;min-width:0;overflow:hidden;text-overflow:ellipsis}.monaco-editor .peekview-widget .head .peekview-title.clickable{cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){font-size:.9em;margin-left:.5em}.monaco-editor .peekview-widget .head .peekview-title .dirname,.monaco-editor .peekview-widget .head .peekview-title .filename,.monaco-editor .peekview-widget .head .peekview-title .meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty):before{content:"-";padding:0 .3em}.monaco-editor .peekview-widget .head .peekview-actions{flex:1;padding-right:2px;text-align:right}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar{display:inline-block}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar,.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar>.actions-container{height:100%}.monaco-editor .peekview-widget>.body{border-top:1px solid;position:relative}.monaco-editor .peekview-widget .head .peekview-title .codicon{align-self:center;margin-right:4px}.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon{color:inherit!important}.monaco-editor{--vscode-editor-placeholder-foreground:var(--vscode-editorGhostText-foreground)}.monaco-editor .editorPlaceholder{overflow:hidden;position:absolute;text-overflow:ellipsis;top:0;text-wrap:nowrap;color:var(--vscode-editor-placeholder-foreground);pointer-events:none}.monaco-editor .rename-box{border-radius:4px;color:inherit;z-index:100}.monaco-editor .rename-box.preview{padding:4px 4px 0}.monaco-editor .rename-box .rename-input-with-button{border-radius:2px;padding:3px;width:calc(100% - 8px)}.monaco-editor .rename-box .rename-input{padding:0;width:calc(100% - 8px)}.monaco-editor .rename-box .rename-input:focus{outline:none}.monaco-editor .rename-box .rename-suggestions-button{align-items:center;background-color:transparent;border:none;border-radius:5px;cursor:pointer;display:flex;padding:3px}.monaco-editor .rename-box .rename-suggestions-button:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-editor .rename-box .rename-candidate-list-container .monaco-list-row{border-radius:2px}.monaco-editor .rename-box .rename-label{display:none;opacity:.8}.monaco-editor .rename-box.preview .rename-label{display:inherit}.monaco-editor .snippet-placeholder{background-color:var(--vscode-editor-snippetTabstopHighlightBackground,transparent);min-width:2px;outline-color:var(--vscode-editor-snippetTabstopHighlightBorder,transparent);outline-style:solid;outline-width:1px}.monaco-editor .finish-snippet-placeholder{background-color:var(--vscode-editor-snippetFinalTabstopHighlightBackground,transparent);outline-color:var(--vscode-editor-snippetFinalTabstopHighlightBorder,transparent);outline-style:solid;outline-width:1px}.monaco-editor .sticky-widget{overflow:hidden}.monaco-editor .sticky-widget-line-numbers{background-color:inherit;float:left}.monaco-editor .sticky-widget-lines-scrollable{background-color:inherit;display:inline-block;overflow:hidden;position:absolute;width:var(--vscode-editorStickyScroll-scrollableWidth)}.monaco-editor .sticky-widget-lines{background-color:inherit;position:absolute}.monaco-editor .sticky-line-content,.monaco-editor .sticky-line-number{background-color:inherit;color:var(--vscode-editorLineNumber-foreground);display:inline-block;position:absolute;white-space:nowrap}.monaco-editor .sticky-line-number .codicon-folding-collapsed,.monaco-editor .sticky-line-number .codicon-folding-expanded{float:right;transition:var(--vscode-editorStickyScroll-foldingOpacityTransition)}.monaco-editor .sticky-line-content{background-color:inherit;white-space:nowrap;width:var(--vscode-editorStickyScroll-scrollableWidth)}.monaco-editor .sticky-line-number-inner{display:inline-block;text-align:right}.monaco-editor .sticky-widget{border-bottom:1px solid var(--vscode-editorStickyScroll-border)}.monaco-editor .sticky-line-content:hover{background-color:var(--vscode-editorStickyScrollHover-background);cursor:pointer}.monaco-editor .sticky-widget{background-color:var(--vscode-editorStickyScroll-background);box-shadow:var(--vscode-editorStickyScroll-shadow) 0 4px 2px -2px;right:auto!important;width:100%;z-index:4}.monaco-editor .sticky-widget.peek{background-color:var(--vscode-peekViewEditorStickyScroll-background)}.monaco-editor .suggest-widget{border-radius:3px;display:flex;flex-direction:column;width:430px;z-index:40}.monaco-editor .suggest-widget.message{align-items:center;flex-direction:row}.monaco-editor .suggest-details,.monaco-editor .suggest-widget{background-color:var(--vscode-editorSuggestWidget-background);border-color:var(--vscode-editorSuggestWidget-border);border-style:solid;border-width:1px;flex:0 1 auto;width:100%}.monaco-editor.hc-black .suggest-details,.monaco-editor.hc-black .suggest-widget,.monaco-editor.hc-light .suggest-details,.monaco-editor.hc-light .suggest-widget{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{border-top:1px solid var(--vscode-editorSuggestWidget-border);box-sizing:border-box;display:none;flex-flow:row nowrap;font-size:80%;justify-content:space-between;overflow:hidden;padding:0 4px;width:100%}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar{display:flex}.monaco-editor .suggest-widget .suggest-status-bar .left{padding-right:8px}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label{color:var(--vscode-editorSuggestWidgetStatus-foreground)}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label{margin-right:0}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label:after{content:", ";margin-right:.3em}.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:100%}.monaco-editor .suggest-widget>.message{padding-left:22px}.monaco-editor .suggest-widget>.tree{height:100%;width:100%}.monaco-editor .suggest-widget .monaco-list{user-select:none;-webkit-user-select:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{background-position:2px 2px;background-repeat:no-repeat;-mox-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:flex;padding-right:10px;touch-action:none;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused{color:var(--vscode-editorSuggestWidget-selectedForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .codicon{color:var(--vscode-editorSuggestWidget-selectedIconForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents{flex:1;height:100%;overflow:hidden;padding-left:2px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{display:flex;justify-content:space-between;overflow:hidden;text-overflow:ellipsis;white-space:pre}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{display:flex}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.focused)>.contents>.main .monaco-icon-label{color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{font-weight:700}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-highlightForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-focusHighlightForeground)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:before{color:inherit;cursor:pointer;font-size:14px;opacity:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;right:2px;top:6px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close:hover,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:hover{opacity:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{opacity:.7}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label{opacity:.6;overflow:hidden;text-overflow:ellipsis}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{align-self:center;font-size:85%;line-height:normal;margin-left:12px;opacity:.4;overflow:hidden;text-overflow:ellipsis}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{font-size:85%;margin-left:1.1em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label>.monaco-tokenized-source{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right.can-expand-details>.details-label{width:calc(100% - 26px)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-grow:1;flex-shrink:1;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.monaco-icon-label{flex-shrink:0}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.left>.monaco-icon-label{max-width:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.left>.monaco-icon-label{flex-shrink:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{flex-shrink:4;max-width:70%;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:inline-block;height:18px;position:absolute;right:10px;visibility:hidden;width:18px}.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none!important}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:inline-block}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right>.readMore{visibility:visible}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated{opacity:.66;text-decoration:unset}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated>.monaco-icon-label-container>.monaco-icon-name-container{text-decoration:line-through}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label:before{height:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{background-position:50%;background-repeat:no-repeat;background-size:80%;display:block;height:16px;margin-left:2px;width:16px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{align-items:center;display:flex;margin-right:4px}.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon:before{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{border:.1em solid #000;display:inline-block;height:.7em;margin:0 0 0 .3em;width:.7em}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{color:var(--vscode-editorSuggestWidget-foreground);cursor:default;display:flex;flex-direction:column}.monaco-editor .suggest-details.focused{border-color:var(--vscode-focusBorder)}.monaco-editor .suggest-details a{color:var(--vscode-textLink-foreground)}.monaco-editor .suggest-details a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .suggest-details code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .suggest-details.no-docs{display:none}.monaco-editor .suggest-details>.monaco-scrollable-element{flex:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body{box-sizing:border-box;height:100%;width:100%}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type{flex:2;margin:0 24px 0 0;opacity:.7;overflow:hidden;padding:4px 0 12px 5px;text-overflow:ellipsis;white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap{white-space:normal;word-break:break-all}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs{margin:0;padding:4px 5px;white-space:pre-wrap}.monaco-editor .suggest-details.no-type>.monaco-scrollable-element>.body>.docs{margin-right:24px;overflow:hidden}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs{min-height:calc(1rem + 8px);padding:0;white-space:normal}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div,.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>span:not(:empty){padding:4px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:first-child{margin-top:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:last-child{margin-bottom:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .monaco-tokenized-source{white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs .code{white-space:pre-wrap;word-wrap:break-word}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .codicon{vertical-align:sub}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>p:empty{display:none}.monaco-editor .suggest-details code{border-radius:3px;padding:0 .4em}.monaco-editor .suggest-details ol,.monaco-editor .suggest-details ul{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}.monaco-editor .codicon.codicon-symbol-array,.monaco-workbench .codicon.codicon-symbol-array{color:var(--vscode-symbolIcon-arrayForeground)}.monaco-editor .codicon.codicon-symbol-boolean,.monaco-workbench .codicon.codicon-symbol-boolean{color:var(--vscode-symbolIcon-booleanForeground)}.monaco-editor .codicon.codicon-symbol-class,.monaco-workbench .codicon.codicon-symbol-class{color:var(--vscode-symbolIcon-classForeground)}.monaco-editor .codicon.codicon-symbol-method,.monaco-workbench .codicon.codicon-symbol-method{color:var(--vscode-symbolIcon-methodForeground)}.monaco-editor .codicon.codicon-symbol-color,.monaco-workbench .codicon.codicon-symbol-color{color:var(--vscode-symbolIcon-colorForeground)}.monaco-editor .codicon.codicon-symbol-constant,.monaco-workbench .codicon.codicon-symbol-constant{color:var(--vscode-symbolIcon-constantForeground)}.monaco-editor .codicon.codicon-symbol-constructor,.monaco-workbench .codicon.codicon-symbol-constructor{color:var(--vscode-symbolIcon-constructorForeground)}.monaco-editor .codicon.codicon-symbol-enum,.monaco-editor .codicon.codicon-symbol-value,.monaco-workbench .codicon.codicon-symbol-enum,.monaco-workbench .codicon.codicon-symbol-value{color:var(--vscode-symbolIcon-enumeratorForeground)}.monaco-editor .codicon.codicon-symbol-enum-member,.monaco-workbench .codicon.codicon-symbol-enum-member{color:var(--vscode-symbolIcon-enumeratorMemberForeground)}.monaco-editor .codicon.codicon-symbol-event,.monaco-workbench .codicon.codicon-symbol-event{color:var(--vscode-symbolIcon-eventForeground)}.monaco-editor .codicon.codicon-symbol-field,.monaco-workbench .codicon.codicon-symbol-field{color:var(--vscode-symbolIcon-fieldForeground)}.monaco-editor .codicon.codicon-symbol-file,.monaco-workbench .codicon.codicon-symbol-file{color:var(--vscode-symbolIcon-fileForeground)}.monaco-editor .codicon.codicon-symbol-folder,.monaco-workbench .codicon.codicon-symbol-folder{color:var(--vscode-symbolIcon-folderForeground)}.monaco-editor .codicon.codicon-symbol-function,.monaco-workbench .codicon.codicon-symbol-function{color:var(--vscode-symbolIcon-functionForeground)}.monaco-editor .codicon.codicon-symbol-interface,.monaco-workbench .codicon.codicon-symbol-interface{color:var(--vscode-symbolIcon-interfaceForeground)}.monaco-editor .codicon.codicon-symbol-key,.monaco-workbench .codicon.codicon-symbol-key{color:var(--vscode-symbolIcon-keyForeground)}.monaco-editor .codicon.codicon-symbol-keyword,.monaco-workbench .codicon.codicon-symbol-keyword{color:var(--vscode-symbolIcon-keywordForeground)}.monaco-editor .codicon.codicon-symbol-module,.monaco-workbench .codicon.codicon-symbol-module{color:var(--vscode-symbolIcon-moduleForeground)}.monaco-editor .codicon.codicon-symbol-namespace,.monaco-workbench .codicon.codicon-symbol-namespace{color:var(--vscode-symbolIcon-namespaceForeground)}.monaco-editor .codicon.codicon-symbol-null,.monaco-workbench .codicon.codicon-symbol-null{color:var(--vscode-symbolIcon-nullForeground)}.monaco-editor .codicon.codicon-symbol-number,.monaco-workbench .codicon.codicon-symbol-number{color:var(--vscode-symbolIcon-numberForeground)}.monaco-editor .codicon.codicon-symbol-object,.monaco-workbench .codicon.codicon-symbol-object{color:var(--vscode-symbolIcon-objectForeground)}.monaco-editor .codicon.codicon-symbol-operator,.monaco-workbench .codicon.codicon-symbol-operator{color:var(--vscode-symbolIcon-operatorForeground)}.monaco-editor .codicon.codicon-symbol-package,.monaco-workbench .codicon.codicon-symbol-package{color:var(--vscode-symbolIcon-packageForeground)}.monaco-editor .codicon.codicon-symbol-property,.monaco-workbench .codicon.codicon-symbol-property{color:var(--vscode-symbolIcon-propertyForeground)}.monaco-editor .codicon.codicon-symbol-reference,.monaco-workbench .codicon.codicon-symbol-reference{color:var(--vscode-symbolIcon-referenceForeground)}.monaco-editor .codicon.codicon-symbol-snippet,.monaco-workbench .codicon.codicon-symbol-snippet{color:var(--vscode-symbolIcon-snippetForeground)}.monaco-editor .codicon.codicon-symbol-string,.monaco-workbench .codicon.codicon-symbol-string{color:var(--vscode-symbolIcon-stringForeground)}.monaco-editor .codicon.codicon-symbol-struct,.monaco-workbench .codicon.codicon-symbol-struct{color:var(--vscode-symbolIcon-structForeground)}.monaco-editor .codicon.codicon-symbol-text,.monaco-workbench .codicon.codicon-symbol-text{color:var(--vscode-symbolIcon-textForeground)}.monaco-editor .codicon.codicon-symbol-type-parameter,.monaco-workbench .codicon.codicon-symbol-type-parameter{color:var(--vscode-symbolIcon-typeParameterForeground)}.monaco-editor .codicon.codicon-symbol-unit,.monaco-workbench .codicon.codicon-symbol-unit{color:var(--vscode-symbolIcon-unitForeground)}.monaco-editor .codicon.codicon-symbol-variable,.monaco-workbench .codicon.codicon-symbol-variable{color:var(--vscode-symbolIcon-variableForeground)}.editor-banner{background:var(--vscode-banner-background);box-sizing:border-box;cursor:default;display:flex;font-size:12px;height:26px;overflow:visible;width:100%}.editor-banner .icon-container{align-items:center;display:flex;flex-shrink:0;padding:0 6px 0 10px}.editor-banner .icon-container.custom-icon{background-position:50%;background-repeat:no-repeat;background-size:16px;margin:0 6px 0 10px;padding:0;width:16px}.editor-banner .message-container{align-items:center;display:flex;line-height:26px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-banner .message-container p{margin-block-end:0;margin-block-start:0}.editor-banner .message-actions-container{flex-grow:1;flex-shrink:0;line-height:26px;margin:0 4px}.editor-banner .message-actions-container a.monaco-button{margin:2px 8px;padding:0 12px;width:inherit}.editor-banner .message-actions-container a{margin-left:12px;padding:3px;text-decoration:underline}.editor-banner .action-container{padding:0 10px 0 6px}.editor-banner{background-color:var(--vscode-banner-background)}.editor-banner,.editor-banner .action-container .codicon,.editor-banner .message-actions-container .monaco-link{color:var(--vscode-banner-foreground)}.editor-banner .icon-container .codicon{color:var(--vscode-banner-iconForeground)}.monaco-editor .unicode-highlight{background-color:var(--vscode-editorUnicodeHighlight-background);border:1px solid var(--vscode-editorUnicodeHighlight-border);box-sizing:border-box}.monaco-editor .focused .selectionHighlight{background-color:var(--vscode-editor-selectionHighlightBackground);border:1px solid var(--vscode-editor-selectionHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .focused .selectionHighlight,.monaco-editor.hc-light .focused .selectionHighlight{border-style:dotted}.monaco-editor .wordHighlight{background-color:var(--vscode-editor-wordHighlightBackground);border:1px solid var(--vscode-editor-wordHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlight,.monaco-editor.hc-light .wordHighlight{border-style:dotted}.monaco-editor .wordHighlightStrong{background-color:var(--vscode-editor-wordHighlightStrongBackground);border:1px solid var(--vscode-editor-wordHighlightStrongBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlightStrong,.monaco-editor.hc-light .wordHighlightStrong{border-style:dotted}.monaco-editor .wordHighlightText{background-color:var(--vscode-editor-wordHighlightTextBackground);border:1px solid var(--vscode-editor-wordHighlightTextBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlightText,.monaco-editor.hc-light .wordHighlightText{border-style:dotted}.monaco-editor .zone-widget{position:absolute;z-index:10}.monaco-editor .zone-widget .zone-widget-container{border-bottom-style:solid;border-bottom-width:0;border-top-style:solid;border-top-width:0;position:relative}.monaco-editor .iPadShowKeyboard{background:url(data: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Gg+PC9kZWZzPjwvc3ZnPg==) 50% no-repeat;border:4px solid #f6f6f6;border-radius:4px;height:36px;margin:0;min-height:0;min-width:0;overflow:hidden;padding:0;position:absolute;resize:none;width:58px}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MyIgaGVpZ2h0PSIzNiIgZmlsbD0ibm9uZSI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsPSIjQzVDNUM1IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00OC4wMzYgNC4wMUg0LjAwOFYzMi4wM2g0NC4wMjh6TTQuMDA4LjAwOEE0LjAwMyA0LjAwMyAwIDAgMCAuMDA1IDQuMDFWMzIuMDNhNC4wMDMgNC4wMDMgMCAwIDAgNC4wMDMgNC4wMDJoNDQuMDI4YTQuMDAzIDQuMDAzIDAgMCAwIDQuMDAzLTQuMDAyVjQuMDFBNC4wMDMgNC4wMDMgMCAwIDAgNDguMDM2LjAwOHpNOC4wMSA4LjAxM2g0LjAwM3Y0LjAwM0g4LjAxem0xMi4wMDggMGgtNC4wMDJ2NC4wMDNoNC4wMDJ6bTQuMDAzIDBoNC4wMDJ2NC4wMDNoLTQuMDAyem0xMi4wMDggMGgtNC4wMDN2NC4wMDNoNC4wMDN6bTQuMDAyIDBoNC4wMDN2NC4wMDNINDAuMDN6bS0yNC4wMTUgOC4wMDVIOC4wMXY0LjAwM2g4LjAwNnptNC4wMDIgMGg0LjAwM3Y0LjAwM2gtNC4wMDN6bTEyLjAwOCAwaC00LjAwM3Y0LjAwM2g0LjAwM3ptMTIuMDA4IDB2NC4wMDNoLTguMDA1di00LjAwM3ptLTMyLjAyMSA4LjAwNUg4LjAxdjQuMDAzaDQuMDAzem00LjAwMyAwaDIwLjAxM3Y0LjAwM0gxNi4wMTZ6bTI4LjAxOCAwSDQwLjAzdjQuMDAzaDQuMDAzeiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9nPjxkZWZzPjxjbGlwUGF0aCBpZD0iYSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGg1M3YzNkgweiIvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPg==) 50% no-repeat;border:4px solid #252526}.monaco-editor .tokens-inspect-widget{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);padding:10px;user-select:text;-webkit-user-select:text;z-index:50}.monaco-editor.hc-black .tokens-inspect-widget,.monaco-editor.hc-light .tokens-inspect-widget{border-width:2px}.monaco-editor .tokens-inspect-widget .tokens-inspect-separator{background-color:var(--vscode-editorHoverWidget-border);border:0;height:1px}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{float:right;font-size:60%;font-weight:400}.monaco-editor .tokens-inspect-widget .tm-metadata-table{width:100%}.monaco-editor .tokens-inspect-widget .tm-metadata-value{font-family:var(--monaco-monospace-font);text-align:right}.monaco-editor .tokens-inspect-widget .tm-token-type{font-family:var(--monaco-monospace-font)}.quick-input-widget{font-size:13px}.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight{color:#9dddff}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}.hc-light .quick-input-widget .monaco-highlighted-label .highlight{color:#0f4a85}.monaco-keybinding>.monaco-keybinding-key{background-color:#dedede66;border:1px solid hsla(0,0%,80%,.4);border-bottom-color:#bababa66;box-shadow:inset 0 -1px #bababa66;color:#555}.hc-black .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:1px solid #6fc3df;box-shadow:none;color:#fff}.hc-light .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:1px solid #0f4a85;box-shadow:none;color:#292929}.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:#8080802b;border:1px solid rgba(51,51,51,.6);border-bottom-color:#4449;box-shadow:inset 0 -1px #4449;color:#ccc}.monaco-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif;--monaco-monospace-font:"SF Mono",Monaco,Menlo,Consolas,"Ubuntu Mono","Liberation Mono","DejaVu Sans Mono","Courier New",monospace}.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-light .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;top:0;width:1px;clip:rect(1px,1px,1px,1px);clip-path:inset(50%)}.monaco-diff-editor .synthetic-focus,.monaco-diff-editor [tabindex="-1"]:focus,.monaco-diff-editor [tabindex="0"]:focus,.monaco-diff-editor button:focus,.monaco-diff-editor input[type=button]:focus,.monaco-diff-editor input[type=checkbox]:focus,.monaco-diff-editor input[type=search]:focus,.monaco-diff-editor input[type=text]:focus,.monaco-diff-editor select:focus,.monaco-diff-editor textarea:focus,.monaco-editor{opacity:1;outline-color:var(--vscode-focusBorder);outline-offset:-1px;outline-style:solid;outline-width:1px}.action-widget{background-color:var(--vscode-editorActionList-background);border:1px solid var(--vscode-editorWidget-border)!important;border-radius:5px;box-shadow:0 2px 8px var(--vscode-widget-shadow);color:var(--vscode-editorActionList-foreground);display:block;font-size:13px;max-width:80vw;min-width:160px;padding:4px;width:100%;z-index:40}.context-view-block{z-index:-1}.context-view-block,.context-view-pointerBlock{cursor:auto;height:100%;left:0;position:fixed;top:0;width:100%}.context-view-pointerBlock{z-index:2}.action-widget .monaco-list{border:0!important;user-select:none;-webkit-user-select:none}.action-widget .monaco-list:focus:before{outline:0!important}.action-widget .monaco-list .monaco-scrollable-element{overflow:visible}.action-widget .monaco-list .monaco-list-row{border-radius:4px;cursor:pointer;padding:0 10px;touch-action:none;white-space:nowrap;width:100%}.action-widget .monaco-list .monaco-list-row.action.focused:not(.option-disabled){background-color:var(--vscode-editorActionList-focusBackground)!important;color:var(--vscode-editorActionList-focusForeground);outline:1px solid var(--vscode-menu-selectionBorder,transparent);outline-offset:-1px}.action-widget .monaco-list-row.group-header{color:var(--vscode-descriptionForeground)!important;font-size:12px;font-weight:600}.action-widget .monaco-list-row.group-header:not(:first-of-type){margin-top:2px}.action-widget .monaco-list .group-header,.action-widget .monaco-list .option-disabled,.action-widget .monaco-list .option-disabled .focused,.action-widget .monaco-list .option-disabled .focused:before,.action-widget .monaco-list .option-disabled:before{cursor:default!important;-webkit-touch-callout:none;background-color:transparent!important;outline:0 solid!important;-webkit-user-select:none;user-select:none}.action-widget .monaco-list-row.action{align-items:center;display:flex;gap:8px}.action-widget .monaco-list-row.action.option-disabled,.action-widget .monaco-list-row.action.option-disabled .codicon,.action-widget .monaco-list:focus .monaco-list-row.focused.action.option-disabled,.action-widget .monaco-list:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused).option-disabled{color:var(--vscode-disabledForeground)}.action-widget .monaco-list-row.action:not(.option-disabled) .codicon{color:inherit}.action-widget .monaco-list-row.action .title{flex:1;overflow:hidden;text-overflow:ellipsis}.action-widget .monaco-list-row.action .monaco-keybinding>.monaco-keybinding-key{background-color:var(--vscode-keybindingLabel-background);border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);border-radius:3px;border-style:solid;border-width:1px;box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);color:var(--vscode-keybindingLabel-foreground)}.action-widget .action-widget-action-bar{background-color:var(--vscode-editorActionList-background);border-top:1px solid var(--vscode-editorHoverWidget-border);margin-top:2px}.action-widget .action-widget-action-bar:before{content:"";display:block;width:100%}.action-widget .action-widget-action-bar .actions-container{padding:3px 8px 0}.action-widget-action-bar .action-label{color:var(--vscode-textLink-activeForeground);font-size:12px;line-height:22px;padding:0;pointer-events:all}.action-widget-action-bar .action-item{margin-right:16px;pointer-events:none}.action-widget-action-bar .action-label:hover{background-color:transparent!important}.monaco-action-bar .actions-container.highlight-toggled .action-label.checked{background:var(--vscode-actionBar-toggledBackground)!important}.monaco-action-bar .action-item.menu-entry .action-label.icon{background-position:50%;background-repeat:no-repeat;background-size:16px;height:16px;width:16px}.monaco-action-bar .action-item.menu-entry.text-only .action-label{border-radius:2px;color:var(--vscode-descriptionForeground);overflow:hidden}.monaco-action-bar .action-item.menu-entry.text-only.use-comma:not(:last-of-type) .action-label:after{content:", "}.monaco-action-bar .action-item.menu-entry.text-only+.action-item:not(.text-only)>.monaco-dropdown .action-label{color:var(--vscode-descriptionForeground)}.monaco-dropdown-with-default{border-radius:5px;display:flex!important;flex-direction:row}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{background-position:50%;background-repeat:no-repeat;background-size:16px;height:16px;width:16px}.monaco-dropdown-with-default:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;line-height:16px;margin-left:-3px;padding-left:0;padding-right:0}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{background-position:50%;background-repeat:no-repeat;background-size:16px;display:block}.monaco-link{color:var(--vscode-textLink-foreground)}.monaco-link:hover{color:var(--vscode-textLink-activeForeground)}.quick-input-widget{left:50%;margin-left:-300px;position:absolute;width:600px;z-index:2550;-webkit-app-region:no-drag;border-radius:6px}.quick-input-titlebar{align-items:center;border-top-left-radius:5px;border-top-right-radius:5px;display:flex}.quick-input-left-action-bar{display:flex;flex:1;margin-left:4px}.quick-input-inline-action-bar{margin:2px 0 0 5px}.quick-input-title{overflow:hidden;padding:3px 0;text-align:center;text-overflow:ellipsis}.quick-input-right-action-bar{display:flex;flex:1;margin-right:4px}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:50%;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px 6px 6px 11px}.quick-input-header .quick-input-description{flex:1;margin:4px 2px}.quick-input-header{display:flex;padding:8px 6px 2px}.quick-input-widget.hidden-input .quick-input-header{margin-bottom:0;padding:0}.quick-input-and-message{display:flex;flex-direction:column;flex-grow:1;min-width:0;position:relative}.quick-input-check-all{align-self:center;margin:0}.quick-input-filter{display:flex;flex-grow:1;position:relative}.quick-input-box{flex-grow:1}.quick-input-widget.show-checkboxes .quick-input-box,.quick-input-widget.show-checkboxes .quick-input-message{margin-left:5px}.quick-input-visible-count{left:-10000px;position:absolute}.quick-input-count{align-items:center;align-self:center;display:flex;position:absolute;right:4px}.quick-input-count .monaco-count-badge{border-radius:2px;line-height:normal;min-height:auto;padding:2px 4px;vertical-align:middle}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{align-items:center;display:flex;font-size:11px;height:25px;padding:0 6px}.quick-input-message{margin-top:-1px;overflow-wrap:break-word;padding:5px}.quick-input-message>.codicon{margin:0 .2em;vertical-align:text-bottom}.quick-input-message a{color:inherit}.quick-input-progress.monaco-progress-container{position:relative}.quick-input-list{line-height:22px}.quick-input-widget.hidden-input .quick-input-list{margin-top:4px;padding-bottom:4px}.quick-input-list .monaco-list{max-height:440px;overflow:hidden;padding-bottom:5px}.quick-input-list .monaco-scrollable-element{padding:0 5px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;display:flex;overflow:hidden;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-style:solid;border-top-width:1px}.quick-input-list .monaco-list-row{border-radius:3px}.quick-input-list .monaco-list-row[data-index="0"] .quick-input-list-entry.quick-input-list-separator-border{border-top-style:none}.quick-input-list .quick-input-list-label{display:flex;flex:1;height:100%;overflow:hidden}.quick-input-list .quick-input-list-checkbox{align-self:center;margin:0}.quick-input-list .quick-input-list-icon{align-items:center;background-position:0;background-repeat:no-repeat;background-size:16px;display:flex;height:22px;justify-content:center;padding-right:6px;width:16px}.quick-input-list .quick-input-list-rows{display:flex;flex:1;flex-direction:column;height:100%;margin-left:5px;overflow:hidden;text-overflow:ellipsis}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows{margin-left:10px}.quick-input-widget .quick-input-list .quick-input-list-checkbox{display:none}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox{display:inline}.quick-input-list .quick-input-list-rows>.quick-input-list-row{align-items:center;display:flex}.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label,.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{flex:1}.quick-input-list .quick-input-list-rows>.quick-input-list-row .codicon[class*=codicon-]{vertical-align:text-bottom}.quick-input-list .quick-input-list-rows .monaco-highlighted-label>span{opacity:1}.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding{margin-right:8px}.quick-input-list .quick-input-list-label-meta{line-height:normal;opacity:.7;overflow:hidden;text-overflow:ellipsis}.quick-input-list .monaco-list .monaco-list-row .monaco-highlighted-label .highlight{background-color:unset;color:var(--vscode-list-highlightForeground)!important;font-weight:700}.quick-input-list .monaco-list .monaco-list-row.focused .monaco-highlighted-label .highlight{color:var(--vscode-list-focusHighlightForeground)!important}.quick-input-list .quick-input-list-entry .quick-input-list-separator{margin-right:4px}.quick-input-list .quick-input-list-entry-action-bar{display:flex;flex:0;overflow:visible}.quick-input-list .quick-input-list-entry-action-bar .action-label{display:none}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin-right:4px;padding:2px}.quick-input-list .quick-input-list-entry-action-bar{margin-right:4px;margin-top:1px}.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label,.quick-input-list .monaco-list-row.passive-focused .quick-input-list-entry-action-bar .action-label,.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry.focus-inside .quick-input-list-entry-action-bar .action-label,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label{display:flex}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator{color:inherit}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key{background:none}.quick-input-list .quick-input-list-separator-as-item{font-size:12px;padding:4px 6px}.quick-input-list .quick-input-list-separator-as-item .label-name{font-weight:600}.quick-input-list .quick-input-list-separator-as-item .label-description{opacity:1!important}.quick-input-list .monaco-tree-sticky-row .quick-input-list-entry.quick-input-list-separator-as-item.quick-input-list-separator-border{border-top-style:none}.quick-input-list .monaco-tree-sticky-row{padding:0 5px}.quick-input-list .monaco-tl-twistie{display:none!important}.extension-editor .codicon.codicon-error,.extensions-viewlet>.extensions .codicon.codicon-error,.markers-panel .marker-icon .codicon.codicon-error,.markers-panel .marker-icon.error,.monaco-editor .zone-widget .codicon.codicon-error,.preferences-editor .codicon.codicon-error,.text-search-provider-messages .providerMessage .codicon.codicon-error{color:var(--vscode-problemsErrorIcon-foreground)}.extension-editor .codicon.codicon-warning,.extensions-viewlet>.extensions .codicon.codicon-warning,.markers-panel .marker-icon .codicon.codicon-warning,.markers-panel .marker-icon.warning,.monaco-editor .zone-widget .codicon.codicon-warning,.preferences-editor .codicon.codicon-warning,.text-search-provider-messages .providerMessage .codicon.codicon-warning{color:var(--vscode-problemsWarningIcon-foreground)}.extension-editor .codicon.codicon-info,.extensions-viewlet>.extensions .codicon.codicon-info,.markers-panel .marker-icon .codicon.codicon-info,.markers-panel .marker-icon.info,.monaco-editor .zone-widget .codicon.codicon-info,.preferences-editor .codicon.codicon-info,.text-search-provider-messages .providerMessage .codicon.codicon-info{color:var(--vscode-problemsInfoIcon-foreground)}@font-face{font-family:Roboto;font-style:italic;font-weight:400;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAAC80AA4AAAAAVTAAAC7cAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoFOG5JCHDYGYACCWBEMCoGBAOoVC4NaAAE2AiQDhzAEIAWDCgcgG/JGo6Kq1zUjEcLGASoGnAv+MoEbQ7A+yIsRMaSqAH+x1tYTX0OAvwSG6Gnrf1VwxGnKQe5khBE+tEwjJJnl4f/39/9zH3wYTYp0ApGJBFek79HVxOSqxnvfW8fza2ve/3+bDaKWCouyQIHzUEAlImQJWZCoUGiJVCINFmUxaEEFDxMwUE8x+vSs0zs9gbEtUOt5+nf46f2redKa+RgB44pNjY1bKkA4gAaHdRjNfbr07S5vRmAFgEt6PXefZnfWp411rPPJDtDpNB9bu2gDXFTU/SrYr7QBGv6av3h1FWmwKhzogW1gXz/q/m+bb5WFCh76QhNtX2ZS2gglnsLhs//TZbYja2R4OtKzA3shb3GERZVLC9hUWKH0R5I1M4vSkVaGXRPv7RHtrZOnAGCVMkVpOkConAq5oqa6dF3aFrmowvPvn6i9WDxg1tRefhp/gB+LExjQhBdfRstouIxoFOipBSwYNtfkZYAjWYpznajtsdQCKLYbjyAiXY/PrZ9xbxfh7m/XQvLKY423auq+f0olGBYAd2HkbGcI2cMKYsMG4sAJ4sIVzos3JAAPEiQIwhcGiRILSZAISZEGyZIFyVUIKVEKqVQJqVYNqVMHadAEadECOeIIpEsPpN9JiMAjyBNPIM+9gLzyFoJgQCOgDQziwh1IQAIaUKeFGPtx6lyaX6bbNtD84frK9TR/7ezYRBNa/23bJhwIiwRAAjIgIyYNxMUdzu8jgAHhxj2zwyo+pnlY5ZPazg6ZqjT0Loxv/6gmxYhhee7JeQOp9eApRZlFr8wiWbaanHx8Aq/N87DyuMUV62R1R5AmpqXLeomnfUYUaF6q8Pg+Vzrxtmh63qW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2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:italic;font-weight:400;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAAByUAA4AAAAANagAABw8AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGmobllYcNgZgAIIEEQwKw3y2PwuCEAABNgIkA4QcBCAFgwoHIBvkLKOipNV2jiiCjQMF4peCvzqwwRj5aGHyaBhljLHOdnTs2BiTuV25u1Hu0SDvNTVqKC5bf7FJY/2tfvWUhxyhsU9yefhvf/C/596ZO/MENLIS7fkLWag/SRVe3dEZrMT5e53l+5IMzCtYQMlmeYFA9gLZC4DVXbgFmj6TOlVKwipFmaK64Wlu/+5ueYNtbESZjQXaZAxjCCpRNoKjU6Id+aFFMKYyaoQxYtAywMYxqhTQ/vBPdI/vedmZTYC+6udyoVIBzj3aX1+exrsHsGWqXShK7WrWx5UudbrMrsCMRWlnesTTrfK6WAaWgf9eG2zfRQtUtE5SVEBVcvpT/E3C9vzUkmry11e6UhpapxbAcjihCQ9h0pP85adnbZG95a9SXK7putfXuvdKSmuEBK3SrxW0G+IsC2qNBweGwAAA72iOhQUwFtv+RXfa4Civ8G7GmqvL12C2mdRFYfNNEQkiEkQGCUf/fQ3XR7QxxALR33neIsGoATgNo+Tnh8SQEAYDadAAadICadMF6dED6TMAGTIEmbYAWbIB2fIAQTBgNDAaAhIwUlANYu/+nhEI//XZ3YTwvzvlDQj/t9vfhjB07cLuNmghakaABHRAR+8TEKsSkPJSBLB9SgfNQbNsb65Ft/i3F+VVc22uDZ3drmVx0HTFEzceQoeaob2ub5N1b1Wv1u1zTauP629yC/koi6cUl8nPYD04sq1Xx/dt4S2hvWjdbbkJrb/N53Dytwms3YYAtvGISlYGi22i7hA3SiY8i7pqqDGbIjPCHmuAp/1ZRIhXIMtKvrugCkXk9foEJQb0jPh64OmxaDhwTnywcUbLvY2vnhErvnsQ395nLAGmiDZn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uFQl7w+I+912r2oif5T9p4ORga1as2udVh1FL3V7tKq7Zm8o37rRNQHG2wWbvkFv2VFO2x2bXYZgSqjEVS4Z97jSzaHP4SGH/SO+UsRizZw2ynQnUmnrN2ISPbOaFSCI30qo2NKkjpqSLqhZNGeXX7lpBJ2Xb6Xmv4R5L8vhPLgmPTJHFwEEsg7i+2i0AAAA=) format("woff2");unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:italic;font-weight:400;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAAAMwAA4AAAAABZgAAALdAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGiYbIBw2BmAANBEMCoI4ghsLEAABNgIkAxwEIAWDCgcgG3YEyI7DdHsjE9IUV+CFDh74vPL9/MmgO0un0soqjWt7En2kQoCMtXsRxyxkMqP9iO6NfSiUaLJuoRIKnhI0+ImbcWOB5XOAFVmCgxZQQmuBJRhZtsUCXm/492Dyuk2YZJdkdApZeOzyEQgKOwDgRjASBEEBVmAlgACtOHEhpjLyyrACMAB0vaLa6cAw5bc5bvhA2uwO7zXAyKPmkYNnAJgBxLEMDxFLqVBPI6EQ/daTr/QOAgfCngRoZc4UZiL623qCkf/oHVsfRCOuAIbJyF4ajQQKQLmQhNBAA4aygH9b19Xw4iAC8DkKM6WrYw/ABMAOWEAamA7sgBWACgAUSlc3SCmlc95o45idYD92Qt/+5gF19v3FALtB9+7dq/h6/Ljyu/zzYfnngwdlHxO+k39nOcO/e7nPf2vCoo3HVlmNTdnWwW3JZffuVU6cQX14kb3qUGOOJ+mjP9iMeb1Nivq5gXpJUWm+cmVK56e6PjI2uce23hHlG48vyDvym5/5q+wbkjq90rN+z53D6zXqmVUPVshZoVtrZgc4vleS1NNrni6VR8I/vTrpzpPwu1+1Pel4xBIzK16W3KcLNnVGl2RGZHbPXBAvhw4M02Ci/t0BBfw/p79XS9V7CKAMF0++DK9rtI/7MXvGATjz0TEA4K4oef476t9dS555BAoLBYCA6ei/FSzVgvg/cIR45gpTaLWeLiB+oa4xJuTks7r7/xwCmCzlpoJKALCDQmkyEsCsN0mELUADghGsGgAF6c9IXkabDYyqg6WMkZd9z7BT5gaphhhqnOH66aOvkTQhggQLpsk0xBB9DNSLJttgPQTQJBtoIE0JEY2wb+1lhF6GG62XngKUGKLFECMNkW2kZgP10+M31GZUwfojwkU0uAcQkISKFNtqGMlau3vIjjRUjMANjYkDNKeouYh7CRBmuD4CHQgHG6GXET8oT7ZU6QqUStddiABBJPSv6P315AAA) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:italic;font-weight:400;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAABX0AA4AAAAAJRAAABWfAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGmQbjEocNgZgAIFkEQwKrnCmEwuBSAABNgIkA4MMBCAFgwoHIBv2HiMRwsYBgKA2n+CvErg5YHVUkRAJo8aMqlEXjSMQVVUI6BratcEu3sY+K7ZekZeA+A0njZBklodqv8j3p3tmdw+YExmNDtAheGKX00EoHxYmFQmkWBjkHp7m9u9iY7vbmoqRigEWosAXkErltiNG5XAoTBmcQQn+AUahfoRWfpmA0V8wEmSBYEEbCfqjFvQsfYGTMtEF8B8A/Q/gH/Cv6Te7j3ct9L3rjt41CA3K4LLvWjZl/uaX4W9oNRdKPr2H7jgL6jQS1ZoqpSsOBRLXhEI4hwUJGhujCVj/LcbY6dJ0qD2ma4OVuMgfXDi53SubwDhW8tKexpmpkSF27EEcOWQ+hyzkkMUc4mIyd7WCu/HmPmK5VAppTwWWnVdAgFxyvMoF0LPPDSWAw3VF+bnA4ab8dBlwuD1ZIQcOoNtuyJcDHgiHPlDsNFpZIAmo0nzO01UoYE+jI1djPK62RW11i25b2/4sa0daU8CIV+Tk/iiJyuiU+hla6b4Ymsp/SdD1c54WYrICuy+DAnm6W+LBnUx2DVCOxqn53kqk+eZrgq/O7P74j7aIk+5z1vtg/Lj/SWHqK7OfGWUqjh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km5Uqh7AstUSYaD2dg2FexYHSYmjFsg2WSa7ZIlwECbCU49Kj1UPghnCppTsPiAIcJ3dDEnQQABWAA28BZ2Xc/h8CCiZALgS4PpCWBIALs7pizC1aXy0L42D3ZJuF3ffKwehD/jIs16RfNkyZVEQWWKRxaqHSIA8wTxX+sBB5FI5SW8DclNri50CVqbXYbp8m6JO42ToPCkaFDJIdLLcyWTqcFK0dCQ6sqA3NY/cEjgtW8qVu8Gka5xgIZFI4XpunBUWSieoYr1knc7J9c2XyXlqOrl5WWDIUCn04SdcVOUsNPGDFkGA+hWoW9OcAA==) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:italic;font-weight:400;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAAA8YAA4AAAAAIAwAAA7AAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGjQbhlocNgZgAIEAEQwKqgSlAAuCFgABNgIkA4QoBCAFgwoHIBt7G6OilpNWKhD8VYINh9o6+IoibkckFlELYovEnhpqEw5rTn/e1suwBSjaNcu4suz9n3jcWQcRrZXVPXCMsw+MIR+FMuwj40/HiI9xLIFVlPzc/Dy/zT/3XR5pAGb8ja8LKxcWukgzwYhaYGNU/ZQFxqLUVbuKhLd+MV/4m+w5Zhh/TqIcXmFFha2pbQiiNXT2bz+xUcQ2ClBzETSjEUCShW9ljKqw9VUk7wy62bj2txdropFFKSzBta/GGt+Y27eGWiiWyt7ti0gzFst8qOChQ0ge4e4Xlam50l6yu9/9571CniizBRTuQZii8rm9Jr3MJgXO5YHQ3fG/aiWhUC9UCdG2QoIRVa66XrCQtr6N6d8LoO2fUBohjoNU0/lfEUIVAcAkglGnCGlSg8wqhwgFeZAnQEDWpEUo2+9j5/Cu5Dy+i3cj9dodvLthT+/jQXc+j+9jQ4rqABCgQFVZgfgbAXENFhRCfbAhSLvJmn6RxTicVSDHB8Ca+Dznc0Prx37oR1d4uq/bnwjmW1rxklSRuTn+CMHl/qVl73Pmgos3js84a3+7n77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9wX8zRWF+bNQqkyh+ECRtwlCR+EdH0lrDDxC0dHlEfrjtx7GytNDHiiJsGo05w1e4WjrV3xxYy6p0tmxzgBWbqRaHyyMEvIiORUUYxtoUT1elpBX0OHcsa3jge+xSo+kwmM+AFiLIEIAAAA) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:italic;font-weight:400;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAACI0AA4AAAAARUwAACHdAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGkAbjgwcgTAGYACDFBEMCuRQ1QQLg3oAATYCJAOHcAQgBYMKByAbkzqjoqTVgkfwlwk8kKE3XiIhIgKsVW3TdG3TuIGqASL+pV+AIzTjRTyFY3CirY+QZJZAWiOq0pPuOSAAB8KfMIQSSZFifPIIO/l5fm5/7rsLNmCMjRxIlGCMKgMcKRVKKZKKSCugKKmiCCqxUa3NEIYxUKGtQPsrZSV+bUCHM3spV9aR/gYPF58gHiGHOqvswcOM4QCgaB6oBCxHGn/sW4V2OQeoZB7buGiesCgBQbK8myPw+9aGzNnsXzlx3FqwaJHXPTUqsdLw6XWWreQvZbQ0s1rNxXZYO+NRiGucHouWi8p++v6W/PV3ec5wG+uI7d0ckfbAIeCiOaYuAFQh1ZlU6dKlaNOlTlOlqgFL4KLs2Ja0nIUzI0aIvLW+7FXLEx0r09XFKqaYYAqyTbK/7sgCgWHj3twHgcySFcSGHWQFZ0gUPqTKbwhCAGvAQGDxq9GxCOmEk9z9Qe/6zJT4OXJzSvTGyB3r0hJWCN1+Y0oCMCEMcsCaNxrBog8q0djtfyRgTNMGqn0Qk9Te3tOHXdJFZqWIsdGacrp7tNfbZseM4689XgPSt+aaPbDset2PZtscIfhjErts/Mycfp9stNX7Rqsfm9flBWADy+P62fmx+7oXbmbc2amrN4LiF0742hlps8f8QJq54BQnvGU/tNnTvrMRWawacTJ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LtgEe1dLseTGoNE0SG4aCpLtck5FkXTYal2IpYhnmoyUE76YqrjuV8jjy5OfxxUGUGsGgZqWIq9RBAAA=) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:italic;font-weight:400;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAADGMAA4AAAAAWyAAADEzAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGmQbmWQchV4GYACDIBEMCv886AILhAoAATYCJAOIEAQgBYMKByAbZ0wT7jBjHICxQe4g+S8SbPeQiQpRInToLKePPxGOhTMcUcL4M/miSRWxMQ1YOUKSWZ7/z7+e/7mrdp3u+0Bm/MjoDGRGpt8pxZHLvYbn7fbefze2G8ZKqC3aMhrEztjZK2etnazVJaeMJkVbQykpO+2tYW0Bl62mU0VMX3dfTn359t+MKSV06g8AV6TZHSVSI1PjNC6wZc8luVqHS8uBw/Hzu5fIXWkNH8JtcACzp/+/qe3bub47rGWvz9mHSGnIPlQuOlILR8vZpqKo3tw3Y8+bN+MwtkFCjrLPQSOTJBFsESXSmJRyaS1xN3tJ0VDFXKVYNOSip4OOugw/xgp/7TP3oeLulUYIYjlSvjK53y+tgxrbOz0opcYAAuIoRA5NXr/2b3etYBjuX453h6HY4CBIiyMoShQoSRIoRQooXTooSxYoRx6oVQfMqB8gCAMcBzgJBJQaYp6YY6y3De62tzewABsf1gr2BxsfdcrDD2x8fDk0AGwEH/eI4ADBjTIIAqjxuRNbN5CoJlyv4AB3NEWIJ6fzFBJSCeVkQbIsWYW8g1BLdCS6k1WIvsRQYjaxlnieOElWIy4QV8nRJAyaM8EYUj6plpxIGsBaN8nppBUTiSpkweVlyTumqyg1BRUBEmvSPxkEhe0/wQFHTzxmgCRRdf0p1slilsyuk3XnNd27nKl2+Vd56VTXBiD3FcgXykTj23mfhDT6x/WAzEsfBtKhp+0j438AFan7oDke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kwbj+ydKZfZr2WFAc4nnZD+nukSELhmqHULSgtYyF7WKKS3mtRlKv0javtptkrqKlrOIfk9PLbfvUukWm7pL+2Lz6l+atzdG+0Ue9GntfTKvh1j+T2UXtqmJnrqMZ3aSRqDJ1rC7Paxtcdrt60hvpDVGhPrzxrWJtfXG9lqK4PxJms3bHpFqs8hURtBqjzzqEHqj09qmAIVRQqNN2c2bAtZziXMxY3MgLUm+Xcsq1TsySCZ3wfGxf5PmY+sy69x8XsXYvYZGreR738zs1PVkW8d1JhudvWzaStK2nsus9H18sNrbbRgL7MeCgBFlqrlZnlNiBlNLfcvEWPBsFrk4ewisQYObAOjfOOrnQO7vjiS15W1ezqS7gVK3kdoqcLqcfUfSbC7lTslcfaWwC2SxE6YzT5XIaCyITpud/4F6C1ADAFiXaNvEVFWF3qqQVWWpHBMGxh1lYyClo03DUqU8HDkNR9gsyvuxwK09mfayVx2lq61Yd7DQrfOzAGB/o4vteYkYP21NLL+1DzHCIAXbgQqKUAhukAVF0AjxIx3tyTcUCynAdXrrCHsK48w6hBV++/tJ4ShCsYVYUAbNYVgZZmHzohCkMNtfQmFHIVdGCPsyaAm3ijCLKTsKNQJau7SmaTkqr838aKmdz1JD6bMRCwLVoJAwK3gQwAnAgJ2DAAL2PCGwyQB4IMCuB9E4Aqb7roeIC984bj28jQolYaQP3F8GC5M0cAWKEsyHF2+hpO2yw86nIU0Hl4P582isJ4AbBanugn+bmaAK4UgPHXoIFs4pdwpuistVIFTq0dW78OfDrWu8dKusVKRC+EAF2AMKO++2j6p14/dVm5Qnkh8qkIrtT4yQCgvxQC4pDwq0XjAv29MeAiyXIa40oHwNWoyYKyVvgdrxD7Dw5dx8uTsCAAAA) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:italic;font-weight:500;font-display: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PbeuO0IrNpbcHCGeQ6PGd8blIHHq4sv5v7/gJSxKT/NWSqsko6qmLj7ywrcJBxHT/5RVDVnltMch/AwrYAIULUGGZnLs6OWmTaOcfxRxfpqQDN6GX8oBO6HhnrM27tUemlU6eEw+beqqo7Xj7p0D8xmnnE8XTQHs24T14dPZVvE0SmdccRqmD0e3JQ6gfF17zwIX0Sx4PJ+OvcKLIz4xZaem3IQoKaYzw8OnAzLmpoJMkvM2hnb8UjxPt7UI8MWxTTjfl/ZTDDFc9Wjaggwnoybynty+y2t1s9kJtQxeacFujrfxU9PlO7fNzlfZOw0h/tSYiy2eTLQOwekx4bfVeHdWeWwdsGzqdp852P9NDUQlQoGpPelhb8mIqzgL+HTxBDwxhD0TBBizgCoTBk3apCYI0qMLbQBFWyk5FgB1Y0S7YgzU1BZqDIniBJ7jX2QVZMEzaN+hsW+JOoB/wpDTgD850aaAhMIdV9dj6J6HXRoVpdDJ0B21BJ5OAgL9sJuKFRORismpYN+TDlIqJgkNpcWAaIF2JzBJ0JYYp40rcXBtzE1eSaDmMyNLdBWXz8AMsJEmWSSpWtBipVBnQo08cqmwkqbo9XuS17SQKp8NWKyje48bMU4gskldGkpJ1FhFgbm9hYRSlRlQ5Dn5yY6VJYCdVqHixwqm7V625l4hQiljgiXiRTjtDppai794UtJcWiYZ0rVQmM6NLxHSm4zojWeitI+lIIhXtZIxESpSSpUCmNexYsOLEnfFFiD4mPTgI30CQiHAGAAA=) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:italic;font-weight:500;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAAB0wAA4AAAAAN9AAABzZAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGmobmnocNgZgAIIEEQwKw1i2CQuCEAABNgIkA4QcBCAFgzIHIBv6LhXc9d0OQlLmtmQkQtg4gChsLYqSwfiU/X+9wI0hUv/ESljasdKOL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jOiRLOZBrjFRVkO3WO2hNRlc9rFxmJap7Msle2acybJCNRUnB8AqPtIj4neykQB5QlZI+AAA=) format("woff2");unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:italic;font-weight:500;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAAANUAA4AAAAABbwAAAMBAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGiYbIBw2BmAANBEMCoI0ghgLEAABNgIkAxwEIAWDMgcgG5sECK4GbGM62A+KOMNGmZWUwcdhKI9l4Sh/WwYP/3af9w0W4ERa2bOg405uoSptTooGKkF8HniO5b+Iojvye4dReBbNtVHwcLQTG2gBzQfYOqjJ/XYU/jItwgxa4I3czM4Fj9LAAnlHz+dzgSO71Jqn2QML8H66dROj0qAFLYnRhtm0b89/erW/v8l/LA6we9gCizDBtQzSf4EtkcwDT6RtmgYEQXnDKGQslZyX/CkQSFgBAE4ERggEAgmwACwQgADMsONAJKVkFWEBgAJgwMz1NlLWec3G+jtZu+rXO1i7rx/sZi0AEwB5WVY28FUE1CORQAjvtSPftAwCQQjGAbTUfm4qwrvbNmDEf5pjR4JoxElAiYiMWjQyIAEy4EBGAA4UNKCgIMC7a5Cej2sCAA+SMEEyYA2AMQBWgCmQAObACrAAQAUAJCSDMEDmo7CztfXoRGu7SUeVdbvosOq6N6PHnZ2yf9l3eXPj/q2qXdkjBL+qrix1cYsqzItOvXfRPaMXkUvPeFWoxr7tZB8gfxIhMauBapmSUhO8d3O8wUt0MoI7UAxLzt0/zhCwJnVHrsPYXenm8suPeLYORWqn/3wwK6Qp+frDiYGvxHSXFzoXfpihfmlODl9oFbOqKa8nXbZgd6axNivh4JS8xEZKChij/nuDBPx/MrxQA/WBACCtK44947xa66g/k0YcALjxaesDuBuQP/7x/3bTwmQACVMkAAQYd/7HYBqK1H97hriqWIzlN7cD8Qu1mY6Ql7eR9v8qAcCY/apKqAgArEBCCmOEAExoJiOUENTgBAI3NSBhwSjIbLboV0Blo3PIiN06hxVFfmrr0WtMvzYtWg3SBPDjz58mVY8eLTrpNOm6NfKhidepk6ZAbgbym+oG6PoN0zXxUaBHgx6Demiy6Zq0GdIl3aB6ndo04r7WvSV0/Qa0Nd2+yKcNFCrSvh/6dNKO3xV33aBeEXxNZKTyQUaverfOR49+LZno1XUboBt4oSzpEiXLUSjZDgF8+JHBMIY0KQAA) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:italic;font-weight:500;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAABU0AA4AAAAAJLgAABTeAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGmQbi3YcNgZgAIFkEQwKrkSlZwuBSAABNgIkA4MMBCAFgzIHIBueHrOiVpNataT4nwk2nboHhRIwDgpKyhjHLyLzQxmFwTYyDE5esZ3+2EabADRB2gAnegV3sg2h4vmn/cH/ujNn5kEfUoTVzJCo7tDcxAh1qBL7aK6c2RAfYY5oH5jywGzfVxj2dQKMqiNV1SGa2/3fsqgYgzZIg4jcRiiRIlUD6TaSLHVGBGIUGIlSIiAWaB/Nlf92N3lGYYsKSKjZnfSTB8DmMi27e2FKIBTaKlRVsztJrgQ/v1ar83g3J/7Bm3pohA6p0P68Qebt32Vvzv+J+e5iNnizRruQrw0imsSTJfEmoUCohFIvESLYkJkG86bdWhrvEfNUcXTtnhaEruXzgVaEu0VRWgYqCFQSqCJQjUANMogmzaJVj+izItbskHExWMtGIeDVV4+zjD3+RFc+yF6RlRIHstekRMaC7I2haQkgC2+4KiUBmJDOA0pVozaXNfBR9QCXV2CAnZZ/Pa939bym2tY015bSKkq/1bW5rl2W3bLb9zSVW4Drhr5Xrw/3s6jw6wK1JMm+D+n/woA6vO4yKdplbgIyweLmY2gZzWw+oG+f+/mW70DuJgYtfT7LzTxPyqddT+nC3/NdfLWlUjfjXEzmQ/hpKLyQ98ii2GeJyRwXTdK9mWCse91WkQMY68rJFB88T8t35mpaolV7x53YfELcGYe/k5e+Q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Ct+wfDyseGwgCOHPFoooIgSyqigihrqaO5o+Gv0pH8xQ3HmBL9wDWYmBRZ7YBaQYZZQFirGdFd/bLBBB7f5SuhHF3rD7iKaer/sXCd6bi9V57pCqtkg0PwS15zTpP/Xh53uZEOSf74EPNOsl0NdkC6gnptWCcrgFSMqadxvxPi0vaaNQKaHEWQ/0XjRFSVY01PJr91+7jWZMMQ0Qq8F45WkTAZ+gGRqUcAorIBw2zQNMD+E++aMzfTgjptQ3ESwC7QbZyTlSvAks5q+3wqS6LsC6sxsGUwreQJ0kvV/aOHuz0W+ta1zhcVMltnswAX1aBlryUxplHde/b9VfMh7BOt4vGjkv3HS6XXwojp3WsGXahpyMjEZUx8CbddNNpTrsksM098IMisB4L3fFgXAF+j946+e/0ZXZa5MRUgIwAJW3Pg/BcCqgzRJ/4cdAfBl7TxX9J0inGb5Cxj7p6s+yVU8Sxy1HZqJhlqok+Yo14TGKKcDqO70ovf1NVfqmi91PJOVrqWP2+tpvrPteVV87I+VL9EEy6pS8xMOB4HoaM7ACLAxZHO4RGA8blWJ8nKMmB2V0ocpqW7QWYOZ7D+JKlFzOcoX1kElsqpcXGuTUN7p6/+Y1xPrlZiR4morkeaSclGOFsd++qOXxYzl1B6eFe58Oltc5e+IT9CoTVQzSczYIjC04jc8RVsb8i7Q6rZqJ4hoN0hJgFZArskxuSVHtBu0S7Q79k7pzzmlQFdLpIzcToRA93ckLeCQ8oHQjByMh+dd6QADaxVwMQCmoZCNaYTqaRoj721xdhon6yvw5o871Tn+ARuXrjy7cezQkTu2WtVquom2IZeWKM7szzriwi7KPRjOwrOl6hbxfiaZvvGQ9B6K9aUdgrti24TU+di9cyON3naGdndX67WTWpiAb4EkdeEWaHudJm3evU2Wu1eZmJx3vnOlVVWHj0w1o65s632U9I3DYJdZWF2skW+D37gRfQZMmuOq4ucnVWNAvgGJsacFAA==) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:italic;font-weight:500;font-display:swap;src:url(data:font/woff2;base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ska2Jcp+UYXONqvClKGOAEQ7TuRTl5oP27gN4oNX3Nb2looANVdm7qoTWXD31x60VI6p6/F/kYq+Tq1bLyphBtj1k5sAVqhOltK2gPmIKnlf3hHTi78Qc1BRV5xFR1u50kgZRhP5iGgHiHxsV/O9akttW6mIU3M93iKy0HiBdjP3d3U98O+Rij5OzbdAJSz8V6M21NrCLB8KocLjvTgf+RDxgdisRG1BbEV2ZV2MaCmqYEGp0lrpdF+hA0abrM1aLz86Ikg8R2dcahLyJeIOsRURlRGb9RqUuai0VQp/USV32ewVF6XTfYsPmPlATV8r8UG+ti3CUwUIAKvncistaMtEpy4fdJ46AMDJ184tAOB3Gvb6a88fv+szdSlgUJgAAARosTZ7QO8rstmC94DYgUk3JXw+QvFF0xdAtJOrlTg0Yp3RXoQjRngiUDmFSl4is1gJzitdYVJi0Flph85MIChp6KiMhYVfk7uYFWeVa+jM3GASUQhU8mEWMxCo/AELv06Mx8DGT+Im8OMP4HsF/xVzeDkp/CP+K4Er+Ev8yWkAoloRSTtJqc3dFSZvcoMb78318f5+2W8557bwsVeI0/XzMRKkZEKu28vtW75zw9plg2FTAMa1WBYEbK0fL6ZYvkeAEuWqG0UgAOAIDOugIoBOOI6yHsAEoFTiZYLK2MtUOR8z+1RUoaFNQMXXb9XRCJ/5SZAoS7IoESKl8tZGK62Ltt76SdB4Gius0wHihWgR6smA2HHDqkUKaYVJKa1k6dkK1YKxEgQ7kJrtzZ+Nj5ImzoBkBYkl1zZEvKp3FqN6WCmiIOL1ghbRtnx1Vr+qb9O1a96ba49PlaiTlgXMCLUQNU4UZIVp4axkEdArs8PEDxlKQfZAA/7rSR5kuD6aK/pOrXCQ70FGCzUBAA==) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:italic;font-weight:500;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAACJEAA4AAAAARTQAAC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Ael4ywOCdIh1H+wfIfWso5USlPK2etBCP40hfCdlEq1ky7kHwLvSJde54hEg2VkRL6JPe+Z6i3i/qSxlrxmsn+piBfrzeeX3lWb0b2e2pdllmPYFlN6ITSa3FHoTZiKAUf8UgSGFL+xk3sfoazJ7FvI12FXSQb/30eATj5205q3t1zP/TB890b3U1ENbmWqOJHoz8qyYjSYxNxHuKpf0ey2ym23hUewmV7k6lOVPKdGo9BbuRQDFjebbR4mecNb2KSVbIH5PH+E25xAkaTFb3A8O3BBNP8M+ICMN2+m2OtctHvV6x7WsRJQSO78BwCEdxvbcWhivmaLZsYw2tgYP8iMTKe+y6Istei5WrajpD6r3fph9f6o7v0NF2BgmJ4HNalKjnWNYv6mv9NekL2jdbBM/Q2tki+FmUCCw9XTwjyraS4Tn8mS1GHOAdIlHSeHg8jGpaNRtRlC1PNjYw7giUooO2Ij7wGhGC39G8iWib2SuzCSBaiIEvYYrIIR6+jBgiMlFKVZ+sRHPd6CBPSttlmoXIVUQa8ZsrhPgjqugBxFXtBcTWNwcQWUQXpFqoua8lWoneQ5+oMVA1/vn4dTXXPWpEr/JBIMBAC0kBiOLOYAkMdiCSfLixaDjUqQA8AakHIiu0B4YhtwdOW+WwhB5EmvYJpPD9hmIEfmL/zykhb39xYsTKpMyAHn3WRZmzFMlvlSiqT1fJIuhyW0dIzPEt1jNEHiUroqTLHnlkosJXivVcyHSVecx+vHGyJHGVKVyiOBHqBZWf9YAl7Axx0JPrFXTrDJmyrH5BU9PF01katXszpbKwggVzuG6oTapwO4ouWeliQAvdKMmr5BnYnjtX9hx58hO6TkUfSA8ONAcUT6QEAAAA) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:italic;font-weight:500;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAADG8AA4AAAAAW2AAADFlAAEAAAAAAAAAAAAAAAAAAAAAA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xY4jGERUTkcKozrhXgyTfO1iFD547YmwfllG+5DH2rU8XNt+Wftolz+UPqRs6Wv5Vul8EeHsoi2/9ly0WNDa8i0X4n7eb2muDUsEtAKn22XccFegN5suqP5vLtaRq694zNYia72Z6MkH7Y68aqSzMvIzX3zcGjz+1BL9AccGiqFBW2O7mtdH7lkeq6n2MBJxkEZcIDc0EY4LWEUm40i0IvLzUhWnMirmNGIza9cLUe/ys0142P5RbgKlAugTax8YisopB8oxVeV89jWKo42tqf7KnnpWZy+1rkbzr0H5o1Xlk/pKWKRyiAWLEaM9atnGToHD11YXMLYsv/oqn0VKvCaVys/ahxQGJKEKGtahCmHIQyUakTM+EKn861iuwL1t01d9rvJQN8x/FZzymCtp1zHfHBwP+SrWxFIyfLmGXLWpG1ePdPJg/sdDvnI1sZQPHteNwa9ffl3zU1L79VlaLiPaOCpqX24aBErYSpIHMgQwGaiIFVD0xxoTAUMxAdgNaBshsgI2IrBkboQtU7Jd0kZkSw2Col9/sULcfGcuUZIsKaJFipJGyVra1oxOJdYSLS/ihG+WK0EoTWlqENftYlapqgzXOFyK9JZhF9LlLzJkIq2oxH5aGo0vHrejYHHHUxu6PF3pUnlERKmiUQl5oXnwOnqM0k/Xcz1Vq6M5u1VxEkNagzKk5mp+kuDMcJoSpYh0jMVwCVvKVBrZ4TJnyYGrqNWJlPYfYPHbNR0kzAAA) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAAChwAA4AAAAATiAAACgaAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoFOG5JCHDYGYACCWBEMCvMI3BYLg1oAATYCJAOHMAQgBYJ0ByAb3T9FB2LYOAAglrxtJELYOABUw9YoSngMI/i/TLCNmT9WC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NQcnYqTXUXEKGzprmSiC/lPbcwpHkfVZCviHBXUtoeY7wXGBN8UdSaOOjIep5Y2JPMRUpC4p7/fwEviiqlNycXo7ssFslqr5V9Kset4NmuKFMTGrzZ2FI+GatsFJZnMNmp4RA3P6ICrD5xNRWdCw5H4yrzlsmybXJoZ9TxGJbSZBFbEyHSlhbo4/lLbytyNr8LiINdsIJtSrqULUkNRik+OV5KslNNciNzL795eKqssZO/3Jn02x5L1fNrCflzAuAM+AXuAQ8AOYBRwA7gAHmAY8MlYhkHANGAVXAMswjNTZzoAd4ArxgLuAdcMC6wALAK+AJ+A96osYBZwuFzb1tzUlYQJhA/gk8kA/gHPbGwghLzE9E+eqQxCN+m/83T/Jw7158MOQgvCZAwI8KMswm7CCFzN2mw21JpYr+PO4QYNifmAgwHeLghOdrugcPMaiK4fyEJ2wVCA34XVAZSHyu0musv8BYgQxJM7DyGknKRMxewgRYs/wQY+XPeozY8zRa45wD4ZE2UtmMtdve8qSFixXCgOLH9OTxwCUpa7UJ47BrHZDkGCeWp+urHifFWnnLWk/hTMYCf2oD0YIgCOkomGc8UAD3gFnXlwpag8qGAly5NzwX5ga2MlerRddpWBG047YUdBGdrDYXUvLgA=) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAABk8AA4AAAAAMeQAABjlAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGmobllYcNgZgAIIEEQwKvFCudguCEAABNgIkA4QcBCAFgnQHIBsFKRPuMGMcANsgD4qiYjAY/JcJ3BiCt0FdjAhHwWJRoioVqofQRAWsbcdwTFm4VHx7x170Z4aVJ4CJpSM09kkuD19r5euZ7pndAJE+GUSbimK0DOUJdFSEZVYuUQf/gOZ2v2AbOQatAoIgKJWjyqKqDZxgUqXQG2UOxPhRwwaUKqMwkjYw4J/4e2Ln75t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9g6fr2rQvaWFe+8qNu1M4H6WC5F92gWj337/8eTB6Wfeey8sWurcxhYmYIy7btimHi80eAavaoIVx7fuwZg//EiR0AvFkeKgP+Io7/Nif/myapdpKALgxAAu3RAW7Q3WC1/D8gFjOno904eYKdP/WCMt/2mYdvXy1pk/fEXdpfSm5NJK3Fab9/t9FsqcuNvnlADYHeK4N3GsZTzBjyeVbkP5+if4p4zRF5I8Xv/KRwBgkfdyEvmqxnU/WJdHySdOwNnbsFezZY1qeY2oeh49IYbRfmcmm6OOpvc9umn/126dh2KktgcxU57bxrm6nifQrzzca8FOT7Refi0TdY6Xu3WyvKY6IFTIna4+XCTFG+UoSGzH3q1IyjmmmguEtqp1ZNq3HmyO8TwdOrn9hD2E1Xc+sUz08SV9sn9yOyEXxPzdJgKhMeHw/ziAbtvotpeCb+eTxZkKZTpPhD1bS7dGIV2UUmgdbkfEzjFRKBWOSza7DliSY70Ptd+AU2n7smuwanAuHt4A9VeaPnh5AIBKISq6Zws+6q+CGkST/H6qWN4MsVZQhwQyFhzvCs9HSZjTmCf6aOUFhI7gLbAXcwgpvvwRi8Ipdj18tx7WA8OekHc9iurpKXMxbzr11kNIoQJlwyKeofxqQmyNqiuF2PFnL4/WIFUSbTBdEZR7VMYlWIJFaJUlsFU15UnMBCshCpMCk5BZhwNRIliZCx3lDepkGHfpCVOjarKA3hzjuKR6VCLI2UDYpnCrIoRKo4iSFUKGILQ8TGpKSqPGQ/c5af4KElpRh/kCosgIgUbAIAAA==) format("woff2");unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAAALsAA4AAAAABWAAAAKbAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGiYbIBw2BmAANBEMCoIYgXsLEAABNgIkAxwEIAWCdAcgG0AEAB6HcYyyEjO2Dy0eKLv4XvfsrGs+wIhEBOHOERRRTI2158fc/aln0WYmSJq8uTRSIgUyIVMqpfa/7uYHCqzWDuHREj0f5UuuL+ZAokTaYgiIs5sF5aUutjO7QhBlgMaYvCAIIqqoCggoq0+HjRlX70MGclDLyR3Z8fb0q/ectzCv30obmLesvO5hBhRhcp7kToaLpaRXpL0htKmb5C3rIgzUIwA1fnqrhHSbqXhA3v+sK1wRtcWuhdyg9E5tGXERkaAhroCGeNqCnJxAm6m1Sb58SICvFhXFWnVAAWQoYRjYADJUQQqIYm0uSZKkfpYv1sv21dm9b7kWbV6i3BQ2Z/sOf/hl+ezXH88LRz75pnLuq4/MO/Zx+eyHc3x9VDn3yfx9n1ILyusq3ps75y90fVZ657PJ2iXgF+odHbvzv7Lrm+uTsPR0WJqYcelN7180rHDDnbeWbrx0QHht49uXjCzffOsd5RsvGvHe4yF5o+Ej97/ZMP62+Z+3Wz/08CtZ/FezhpdvG/nb6PMhC9vNvHFx3Du9X47etewROuONg4L0v2eI+L9X7dt0evq+gNihfvWttiuWK4f8VmxWBM/+WK8b8F6Y9evfLf57r9SjuA2URBAobPm/Smni3y3+n1TqgQEACsl5awAI/5AetjNp65A+/38vDAUXaayPL4CMKHYkEFC0DlfIlbAMegyqlmGU2eSTO58TTHX2xLyWvlczc/wY7eDo5WxlYenKyMvNg9Go5MAatqis2Jty2oytLaPupFxOlsgFObsjM05dBxMHVwcMbeFma4xFh8jZxUr2e62Th09I7Bd96I2RI3gzYzqKcsHjqZzGjsamlojTwdmCy9bKFNm7IBcudRU5BU09BQ5eTm5coMaMAw==) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAABMAAA4AAAAAIkQAABKpAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGmQbjEocNgZgAIFkEQwKqTygfguBSAABNgIkA4MMBCAFgnQHIBtLHFWHQtg4AAgt+xD8f52gxWG1uR5EatWEsKGGtrrROAfbhgbsqkcTXk+8cSb2t2LbKz7fybPEC/ukeY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9sE8MD1GCYo6H/uJorUZ++UzRZd6xl4Ii1s+Ae/gS82P1bbJgTAuPg1C15kJdLdvKYYzkvKm3QHph6tVrbmOBiOAwb8Mfc5Y/6oxlh03uQ1fufCXA5uPge1uPHcvgr0B7wDdpxXofNGVXbg358YQOfgBq8KlgZ3ofT7Nu4Gq/uNy5o62c8f/GsrYyeeB61HdvztNxNt9jXF+2qo245pWWT83VGKGurvyDxznOvPJY2vTevxG69OIj3OKdWuFvQaNClgedPvN5rSot7RCb/lIAA/fgek3NTiS5Wrf/p+JcA+OKvoAzAL83hv5/zn/GV6jIcWEEBNLC4f5MJYHUVFPfXgj5XXY13W2TwtHBbA+NMQilHrc8M9eP5KB3n1cDkz9/6LCNe1GDCVC+1utfTOYo1v+SSOc7HAvE4wytTlXUe+RkelmT2KhmFdt5wZg2jjugI5TN0qGeumPHCU7q7xqOJ9UhzbjgIzSSe2aImUZQz1ZW045HSAjNVbmaJ68W6Moh0bPPKbvJBWGvUcrVK7POi7FHLdZS5PIvFJUlsGtTUNGMx5tfIKPnxvE52XGmPglod6sU1vGujF1f5HGi8dZoFMc1DQ3NrXKMRyDd5I7/kieZBc6L5GLOyvpFHEmqF6iTJ732AALfJxsMJFgKwA3SoE2ggwJI3NCRXwI1AG45gcmk4CgvCxuiwMYaGY8mIGU4Ti1CVVxZOFMPgkNgwPx/fCDF1VbVssJhpsMY8wGt08yAPZaFfgYCgQ7MMV5VXeK7CopLyVK6oYHeGCIKUT2S7cAOlC67C/UgG9QblFo2Tmk7cJ202gUvUXU9OCF4lw2ihDIiQXHhAwktVwWGNoCL8amGvIJ8inPdkZW5obOMoJM5HlSraakb/CJ4AAA==) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAAA2oAA4AAAAAHqAAAA1TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGjQbhlocNgZgAIEAEQwKpzCiKguCFgABNgIkA4Q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MHUIT0BVoCjgoCaEkNgujS1Yx3lUAVMeRTCwfDlxpEA+hUIINMCiBIIoFEspFBDx10vWgZyGQYkKSCJ3QmnVi07LYROXWVT7KTwtrxsACHINc1jEMLHzKIcXI2F1VMIIdUooVyQDQBhSRnemlZq0wfY8yVdDfO04PmwIsbh4JMzND2QJ5dS2DPHO2xIn0cLTIgSNiSSlIsCSdd55lQ0MYNZ+xxxANfHNHUkaUDyoLpLsShAA==) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAAB44AA4AAAAAQKAAAB3hAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGkAbjgwcgTAGYACDFBEMCts8zA4Lg3oAATYCJAOHcAQgBYJ0ByAbBzazETFsHAB5cO4TRclghIL/MhHmoW/sii3JkCwIpmm2o8EQIDh8squu9JqOff+iQjf1biM+8RcrvTvece45JKlkeYjs6P9P9XT17F44fIAcwUEi6lMpFJE7/QM/t95fEYcIjIqRJjGQGgZRKYMR5URGpCKegjKkN0A2mNCCDHoYMKLNwKrDoCz0CH8K3PbrMABNLZi8I53ljHbl084I7Aei8kMtYPer3WN+IMvTyAlb90UTgh6oaMK1IYR1ivIDcHO5B9xTY1F62qQ9HEIjhNkz61vW+HudZavvL020NBMd6YD+zjgKcU/T8/TARaV9smT4+xfkBdsXj3TH3j2yfeQ9lg+03qBvQ9wBwB37GMoQVkRFd6mSKiXg9FinbYGrFHUTCLeqqGT3nsNGZAhuEBGRzNzvNV2uwkxa9CB7bxEPBPBXjjr+TggoogBsBgXLmAkEiTmEJTuICAyIahsQCBSwAFgAAQKYR8NumL32cfYGrTMzkhJA69ykyHjQuigsmQpakAvPTqKCGIQoSYAAClBI2A5uRIss/4QB2tCGlT7mCjUsgAHDt3LvJ0jCj14kSvTam+zU+y+Pv3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5998Kc/eE9GZowCwUQIDxokkEYHZ/kzg5gk6f7OP/A12ENYj/gdyOYhpKywPaKn3jEtYgaTKzT1vRNljjGCamzrl2b3+0/W3KXKn1s9Y6wr1OIaYe+ihnX71ua/0W36EWplzPtAY6VPUE1xNC6z4hNQe5xqDHsqL42EeqqKJYVjuiFdY49FoiqPSjV4LQwiJUz1fQ0HYNs6SHH/wHf5FDu7MlT1ZsSB4z+0rmSm18rrVAUJ0WmjWU4rdzlaamulErO6hlofO1QGn8UZ/5Qgqvv8mjImuZoCxBr6sKCrq/WY2FDxPahiJFQ5zj/X5nVTpllJ30hylZ5Y+DJdBRMHcKmNuuxrKtzYKaD5VWomUmVWv+R6XtQs/HVKqanTUZIe2FpBuV4bqYghY8MBSXfuz4qy5DCNTb+6s6hVhYfS1NKNZAh3JYGcx2hgTWOTDlhK70Su0TIrByWM8MCawdVpdRtPtg/O4sQQuoBy1xt/dANpb7Rsu2xjQ4PFYUHZgrxAdWnVFdcWJZeYzaPH49Sr5a7prWiotzRN2a/fKaIR6OCjGEyOgieFFKNK8cQSja3C9ICG4SIg3xmyUC8YeowiUAcTUuBYitYw5AZGEUEMPDyB09YZZw6cFlYsTAsDjn43KE1gQSdkOfBwjwf8WkecNCABaBArUWHASYEQUNqbPAKaDkRYg46EURFedGn3Zj8GJpSffiKGKni/I2zOrfESijUKxoMZIR6NNDNITAzmFVpQSRe3RARaETtKighGrPakorRiPRbGaSVJEi6Gj0sHBGyWBKjpYiQRiIfEkSmlhKbY10RhkwZtZJa2OfXNqf0FzdkEQkujgtoSNM4pJMESOSjgSTZqQbjUWZERV6nbsuZw6s2HDlFVHtPgbqQUtOqseJAAA=) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAACsUAA4AAAAAVCgAACq8AA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z62XTz1kiJuKCrqLp0tqDB+CycRe66wJsMu3kXWjzzzR0nwmaH7ic1Po8uexltxmBraKOowwnToEief/lA4TpXi+KVyrOf70eV+xjWXdjFnUtzwg7gPCeTte7g8aMiLcm4yO6kodazM890vqJaRKF+XrO6gqFxEZF3tzxUq5T2Flsj1IuAzBZpakCONSnWYvw0DmHbiFCuLBeZQhwIcYQNlmMFwnMxNus8liWSGjBCVGsOW+8TlHt0ZCwezVsRJjY+mIAjnKlXovtytXeCiNxxJSjbxkLiWVRD3iHejiF3Wr5ysUuLLe7WDnPOGI/mhEN8IaP3SuqY58V6f7gJlrUGah9edkQEB0YBGkBUsBGAZKFAbwkGAyUVoSGMFcDzQ7Y/g4LI/Chf/XHR/Lgb2xxITvT/OQTWry8UKk447wSExJD8f33AhGSlpUy2kH6yqn+gdaBjkKcG0EhBDFtYiTMu8ve1NipwJL4kkEexhEU5Gbp8IonsRNjIpzE8EhYbEINmzKkhGP+tnTOJ3Cu4OD1GWNKVRTKLAQqzb09dbojHShGTCz3MiiLDmlzQ21NEztXRCHEetVJlzSc29OgAA) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAAChwAA4AAAAATeAAACgaAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoFOG5JCHDYGYACCWBEMCvI82x4Lg1oAATYCJAOHMAQgBYMAByAbcT9FB2LYOAAQlrxDFMHGgYhg7wv+LxPMMdTZwdcAokVZdtu6RLW2UUDAMvAbzZ4j0u2S99aGde5X9nYZLo8RBVE8cz/ziI9IIx2hsU9yf6C5/bvdgpElUiKlIGkMA6ENkDRIGSmVI0aPDP0gFj1qoiBp0GVi0dYXJuYUHnju5981VVmCjIc7w3k0B1KTz2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EyF7FKl0N5k2KU0q6mgrrDjaoiqcCDlNZZEqdvb0DhmkdTbh/e5BKSGkSgDL2eQ5ixzHytEqOpAoJjkuZD2kN2V011+Fc0N4seCQ/WxKJ9PdDGojfkyp9DiZs11uFZXe7rE/eDejhQSiYI17g52PezDzhzd3LHDeEU9EDzHEeUFEERvEAkWIMOLJvzmCiDSiin1DFPGdF+dNIHaIFf9G7BFrPvd8iygiXogn4t7nNyKLGFbML6XjL0dPUH8QT54F8Uec+dygDuVK2Ll5Z0xgf22w3/foXorBbtQ71C3UkzuAAPgkhzAzOKEETlaCacHf74qNOxQSJQKAI4ClbRHiHLfF4BZRi6ZrsbQtjjyawEOrf6zcrA3Q5y8ARRAvHjyFkKZBjboJSjPmzwA+3HZsyg+ZqjjpEJ+4ZbYMFoVbX3ATJKx4rlQdz5/Lk4T40s4mS15C+eYIj4nn43KM2AaDBPOSfiBE9VRNh+hg9T9kun8VZFYLAUgOGDW8oOqygCrI1J7dqPIXxEP4REtkbvyQRfCz3hmm9BkyY9VJFYi8GlTvmHaWXAE=) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAABnoAA4AAAAANCAAABmTAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGmobmnocNgZgAIIEEQwKvFyuQwuCEAABNgIkA4QcBCAFgwAHIBsCKxNuLDxsHADb+BwnipK9GMj+6wROh0BumfMiQUaoWDWaO4tGa4WtoMBMtavqtY9jb+C3vkgTR9zAS1e/IWxxDF8nN8NnIySZbQnEMfLSJu0/j0DNGWDPYAygn5QTdsbNTj30B5rbv1uyEcI2asaoFhtnA2LT5ogc1WNUbGR+OkdahUGpWImfEQbGTnvg5bSUZNmnbZKdUhrPBMAA8r0bfrNviW+exRNAwgNgAnCj14Z0y0NEpndEJQYcwb5mQTQJojV027rMxWjb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7kq6mO4o2pzkI2ijbRmUaHoZTOSNlv+FIJV2Svj7WmRtL9ilZ9qNsrP9CwQUBd4J1zqq7/TUt2I0oa+cgo9YyVx44s9ngnjVEstXyrP04mBugLTUOn8BN47YQjhTrU28ewfnEg8uvRCrSQurE+rgYPzfJAepaIif6a82G/uaO6w9QAAWx/EVAIgKZ+6namtHNO2/9LKG8A4M8XOSMA/iK2//5oLD0iOWyEAZuAAUAATP9jBtj0G+y5vEfd5RerfvRsHvEGxDIoO5SSguLaip18e/1exc1UY4YwLEkonshLOR+7VivOFwsHWbqt2Lq0dyoPsWuSENeQf2cuq0wSm6oOJQEYfZYUlsexVQpudHk9VkRGqKw+lbVMrU7y3khnuJGncrCsqw6FJQH5gwAas4FCPnag2hRXO8Miw9bhzKp+K6wMubNS+fytfNApjd8qiwj5Zc1v2qvLn1QyDivz5PVTePmD9uBYkwqOZDl+BsrLCqoDC5Z5KQX9O/V6wD4f4PXZnEcu/vgovhQxRlCG3ny97WxGqoIMpp0h64XU248pa4Ywn2Qsw6zj27LXi98wkl86KqlU/qb50EE6fcbrMqVKr2hVPoXUK4iOoza6o17KFVXV1dyE1Ie0a3sh5SPGrOhWqdIrvxUPmpuEvjr5kU1VhzYuar5p04g4GVCBAPghjwJL+CtjtvIVxuq6cQPYsIDgSNuhj8EpCNA5nYIBGeDeFqu7LS4+BQ9a+CTAnc+/Kyt1/Ff67yz27UYGhlYeBP/ny8BCbEAm8qZ6ZyTQKF4WDph2txqY5ZXtWdIubJTdFFtF/iBWyQOoqY2szWAcLHbqexZvSgtLI0Nbh3d1SEwKy+1jhpbwqERqxkryfYht5vUdq6QG5T1ejIUBp3lSB0Pj5BJFNYQSRF27G4/laT+exYVVows=) format("woff2");unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAAAMAAA4AAAAABWwAAAKuAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGiYbIBw2BmAANBEMCoIYgXkLEAABNgIkAxwEIAWDAAcgG0oEAB6D426JQgSiDJGrY+EepR5ejwf4/fWd+/C1EBKYZDS7sRFxHTf9uCJn/m9Of4qsOwRQBbqEex0QSbKziM9Pj42dA85/tYTLU84Cj+f+PIAlq3AtV5GCrQWUqr11TNFedSEUjKs7rSju46fX7RWCSHFAeYQcQRBEKIqiAgIKlGZBdO5a3w4akEBWj6orkgSzThrq5iF0WjfiKGe7e/0dAHkwOR8nW+GblHR72hyEGmzEl02NcDPu9oBKt35NVVBcoyEuIJNhau72SE3EHkhapkdqCiZGhBhliQWUJVETSCQCNfr8o/boWoBjI3miLHqQC4ojH22AaUBxFAUpIBJlJeIVGIvLFI6PlFi4hGYVs0brZ4ZZlT0rbz1SLT+50xlW3X269vh2x+CpO/n7bw02ebvIys0wMkpteMHUIq4PGfxCRBdKjxXGaDRIc42rK+a/qgeebsfBvjGMiQ14cnJjW8fSe6fHlr2NIrgbeH2jS+k9X+md9WJP/5IvZ8LRg1cQ3gz+dJMePnr2/6ZSiy3c9rHc87Zj4tqOx0WLe1U0VR2OOEt9kq4gV/r/NBEyVbPvpL70poCoTunu3LVVZ4nW3xWV8gAKP5VqBMD10Pruq+7/52x5c4B8EQjkzs5oyJ/1JzxT0mgEACA3XjUZACFDut7UuAEqPZepikCuTcprJBVAcSJREzIBeaYSC4kSGAs2BJU5IFLcQjt+sxNAqr55kwOx947iBrvVCRYwpBuDQusVLFWyFCmCVcEwCg8JVsPPK1GwEjxesNZJv6dyHtID6dYP8UnUCvPAemHBGiA+jD6CVgilD8+tWyfSPRiYXwVJDNNkydPUzvrRmeBZvFdArqSTDSCJ3ALcvDp0JBHWjTK8pb0Qvx7N35CkXo0yFRq1qZAgVaJkYiA7H3AA) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAABK8AA4AAAAAIgAAABJmAAEA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XRz/A99DM/vGK5AjqOonERZSEtL0OEPCBm98yJdsR2bsNXVTKPsh6X0fkzL+2gFhh3KyAzjPPjjxYdMtX9Z4cpgDx90/2sDPk6rMRru+IAyX4gbBdIxCxmDiKRZjP7FoqHmSxsLpJYIY7oflN+saKV1cX/p4plTVBTH8BgcwVWtnTIoEdswb118MQUs8SBcOLr5whWNB24CHqiCWeA2KEvvxvQmaZatrO1XXJlgtbkkL0ShzSdHnl+whdHY8qOti7BFzQ9nzYIdUg8yIQlGfHnjdNa8hdCSOM0CxH0L6vXe9OaaCcUsT8MWIo9NV+djsuAXbRDAlD22UUcm5LDRXxbRHQC+f21UB8AvxP3335G9W3uBuwxgDzgABsCauNkB9hKoMfvEs0DgZLVnUSvSIMc+KA98xQFvshylzqJMc8PFDm9WBEtnlqly0SUx6HwAXzzi+RQzeodr1nOJH4SiTFAuaO6fuz471M8gV9BGXuPOZumuZaKVI6AM+bJRYo3pzp21qS/s6wTLCpCQpbzzirbkYq0qeWao0BRzQZ0ryEEZ84TRjCeU/O5Jh5f8hWlgmo1Rxyv1ul5Y2yxrhctCEZ0TSJnbyJJGx+cXyfKNqrObPM03rboaKssNqZTuzxNdqQP5a1YtaEL14GxwbzDyQLpJM+klTVQPqhPVh2oVl1joZ8b1PbUTJL3XgAB4poGQIQyq+iRkAtckwcWOvhAKGJoVwEOALWbQ5biYg4Gy2Wk3i/FiF8b8Ck/kv8EaWHYFLKRIRZYuToxYmaSQcESY79OSwoUlilq+I1kEdVEpINE1JasZqIjKVlHSkUSJpG56ivAImYaUQavSjMySRMkfI0uisAne89NliFOTlQDKpXByutw51q3xNOEjPRUBFvBbV3cpyoeJECuKui2bLoaGL74UVZM1iwyx6rNjwYozj6TiVSTghHCyWzpeJAA=) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAAA2QAA4AAAAAHpwAAA05AAEAAAAAAAAAAAAAAAAAAAAAA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povJwf0WAQBJhtgUgHnAgAuMBgNLgQwKI7O0o8ALQHkk5iPegGl5ErsvKKHLqQ4cuWgL+rdWnqnzqByCKjEEiqtK62TpaYtkkwwFnYuNt4r5r2ckFlc07MjiLa2LgNI9NT2Ztmoa/ghUClirT9YgdFw1lsQihjPdvUi0SZgnJ4J2qzp2dk5mvl0aLpGkhmliiaahGjremZmNuvKn9Mk0BG2Cx3vMLwns9H0bJn26p1B06ta7hoaLMbzEz39gYAAA==) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAAB38AA4AAAAAQFAAAB2lAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGkAbjgwcgTAGYACDFBEMCtpgyyoLg3oAATYCJAOHcAQgBYMAByAbrzVFB2LYOABo7N+XKCoG0eD/OoEbQ/R9SCk6Co0tw5CRuS8arZIo5VZbrrY7musceT/cbsXfaJajqVAAOHS7rE8Nn8E0r4xcj9HQSGLyENo9/J/JJtkHuhJYwShF1IA6foB35wd+br2/gj4YtEodZQCDdvSQBQNGiaBUW0hECBYl9qgQBtJtn2AVZZEzThmyRLewajg+hAIAdLoB5bmyit47tW/GLfGMZG+h//8rgFZ49FiVpWy2tGZniPyORbvwKuEd0KOOc6348XObtI1W8dDIX5AUyVXE7t+boXK2LbWT3F8dhkf+XpfZ6vt/TbSGQreO4Vg3o8h3IegPpt+bpGiAi2r11tJK+v4m2tzISLthXVAO6JBCXDGsfcBcB6Ho0lRpytRpey7aMh2wOd/POiNw2t4rRgif8IlggjHafX/fcy1BZNpqHogH+uw11Nr+nq4NgppcfiAEFEEA1oaCpc8AgsgMgoQC4acE4ootCAQKmAeYBwIEMBdFB2C233H3/SkfGXvGSZSPDTv6RMoneZ91CmXIiUefcQohCEGiAAEUoMBTBXeihZZ/wgB96MMyp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AgPGkiR9gzhNdwl/zO4HYnej/Qz4/axATaPvBt4MCGlFRzao5/zVoYUJas6JCUlHPUGt8bc6pYEQ8ZhONrD5f/ds8y6q+8m25vsSRF6G+x1U/Zzdchy4306xOjlYCRs3gmtE51lwO9YzYwiexINmOml4yn/z+U0INF1vPY5RH1p9ByaOXOtz1DNFtk/ywiL92DkMm9+GVa+Wa0CLk5JiZP1uG4D6MWnMw6gpGY5Et0i7UUuerH4XCIN8KXaw5kgq/vJbDvjzKhT3Lpd7EaJUS66boopztGHEdlhQNLGFDgsjCJ7W0iik29g7PxQ2yaOWENDDbEmC2DMadWW3n2UPJ9y6lcxQq6qrke76E9oN81aFay8k3D4yWSHX4yDo2WA7dLpZWJQWrqLnkr3ohZ3lFrdTlp3WEr06OAlYGs711HExU1KRDK71HdI6AlcN6bhUhD6HVRZPyTkvnLaL7qBu94+4ORaLwAeeNfkdF5ZeYHZgr5AdWDRlSveysxof9ZfK5ZcgW5MCVwbowqzIH+XAVyCFkRqNuU4Ns3jN5dIbmPi1ucI8h05C/24WQf8gqXAOQV/1agNy6agBkFrIL1CN07RpZU1bLlmsPrhM9B7rHXV/9QYzqD+XXZRkQ4P8uEGcLa+4o84ECtTYcBJhDADSkzgkcAoqMkOYhowiK8aLbXgxkLGVZJg58o0OQkwkW/nMBxS4pWKAgEeRoIdCsJDkUp4MUT/AfmuYUX+qmeQOdyHPopuGm6a+b/YWJKtf1o87BaT4FRUTk2DRbg0U62RMdKNIJ3n3IWQoTLpieGgSpd2rTZzjWuPqhw6sBoyOEItKocHSzOm+hm+nrOrU/daeFCTRPiOnboKdGNsMRzxqNBUu2HBVVG6KWAG13fhkSPwA=) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAACtAAA4AAAAAVDQAACrqAA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vS9gscnovl6kq8LrNewX0pN51nflKP3chLkeK7TsE2i7jlacI2UZu7U1yzcpZpT2x0e0maLkw2g1mkft5tTKOVYCtvSflPqdXUni2GmyLjkyyyLr6i9W3tgbpYVVbNXjnL+6mDdNIZcKqvfllg1aWd21zMV/tuJKg9BffN86tlm23X9MOmveZYl6nxRfqybDRuVbx+XXVSldH53awLvm0KgpjGuhhCwiq+/i0ePZlxX5uVNYeSWi8oF0L0gAtEWUd5LiUy/39IBMmiZd+PgVUYTCTDpPSGn10nIwv+zLopS5kL+SqxmcGgv/mqiiNhKqD1zoj9OxAJMVOMzK4gB9UAA5MAZDQ75taPP6mq6aITCPpTLwpZZ99jHLuWYT3zJYd42ZpHlUCZGK0aJUNqH44yzaYhQF0TSH696eHXTJ3NVgSBaJLrcsT9yJt2TOFqMEC8W8IfDti29rfCb2b8/iKqm1S1QFxycjGgJSlUWAESwEYAaQoZaGgwATXtCQOgB7AukAhAinA1A4hTWi240YHIB1Co3hEFt3lZOFYS/sBQaFB/t6+5DFpCWlUkCMGKjg9/MM1g1wF2dqA/jFzbr5VZF5VsszOCSYx8EyC3TLQO4QM2wWfCn+Pcy7yfq53sBKCr7qywOcgPgcGQVlX80KpsNeQComB+ElEgm1xF2DMnNftfUUDwz2Zn5i7gMP8Myu4mSgq6FlZF74BRcxyZ8859XXowI=) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Fira Code;font-style:normal;font-weight:400;font-display:swap;src:url(data:font/woff;base64,d09GRgABAAAAADhUAA8AAAAAVfwAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHREVGAAABWAAAAHIAAACmCwIKakdQT1MAAAHMAAAAIAAAACBEdkx1R1NVQgAAAewAAABAAAAAQodMa01PUy8yAAACLAAAAFQAAABgc+SqD1NUQVQAAAKAAAAAKg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mFbO+OcxcZV4wP1uGlc2qbE2yHtqp7OJ2A3uEvda+6WBOMqeyM89Z6Wx09jjf3SRuJbeLu8C95N51X7gf3N9eZi+fV9Kr4o32pnkLvTXeA++1981HfN63fODn8Yv7vfwt/g3/QZAj6BwsCZ7FErHKsVGx03E0ni3eK345fjv+OMEkqiVmJQ6HcJgu7BseDT8CF5QFk8ECsBpcBC/At8iPCkQlo0pR7ahxNDAa9R/zOY7nAAAAeNpjYGRgYPjExMaQwFDBwAXmIQAzAwsALeMB5njalJDFWYQxEEAf7lxxyA13d+eC63Xd5XccCqCWrYECqIBukHyD60ZfMj5AJdcUUVBcAeRAuIBWcsKF1HInXMQC98LF9BXUC5fQWLAmXEpXgV+4lpGCGzQXQHXBrbD2yTIGJmfYJIgRx0UxxACDjNDLE+mtOCBOBMUaCWwCKG0Z1n872Bgknzik7RfxcIljYOOg6NB+XUwcpuinnxgJreERpI8QBhn6cTHI4pDijH4k0muczm9jb7zmvUfkiTzSBLAZpY8Bnf00yxywwtITffb5Zt37yf73WOqT9hERbBwSugL1Fj2PiNIj6ZBDCJsEJi4Ofdp3mj4MbGL0s80aGzwunCEVZh4AkbdX7QB42mNgZgCD/3MYjIAUIwMaAAAqlAHSAAA=) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Fira Code;font-style:normal;font-weight:400;font-display:swap;src:url(data:font/woff;base64,d09GRgABAAAAAB4cAA8AAAAAKSgAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHREVGAAABWAAAADYAAABAAdsBp0dQT1MAAAGQAAAAIAAAACBEdkx1R1NVQgAAAbAAAABAAAAAQodMa01PUy8yAAAB8AAAAFYAAABgc4zF9lNUQVQAAAJIAAAAKgAAAC55kWzdY21hcAAAAnQAAAC/AAABEGjeCRlnYXNwAAADNAAAAAgAAAAIAAAAEGdseWYAAAM8AAAXagAAINJZlxASaGVhZAAAGqgAAAA2AAAANh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iBHHRTHEAIOM0MsT6a04IE4ExRoJbAIobRnWfzvYGCSfOKTtF/FwiWNg46Do0H5dTBym6KefGAmt4RGkjxAGGfpxMcjikOKMfiTSa5zOb2NvvOa9R+SJPNIEsBmljwGd/TTLHLDC0hN99vlm3fvJ/vdY6pP2ERFsHBK6AvUWPY+I0iPpkEMImwQmLg592neaPgxsYvSzzRobPC6cIRVmHgCRt1ftAHjaY2BmAIP/cxiMgBQjAxoAACqUAdIAAA==) format("woff");unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Fira Code;font-style:normal;font-weight:400;font-display:swap;src:url(data:font/woff;base64,d09GRgABAAAAABi0AA8AAAAANBwAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHREVGAAABWAAAADcAAABGBYUFO0dQT1MAAAGQAAAAIAAAACBEdkx1R1NVQgAAAbAAAADBAAAB4vpb18RPUy8yAAACdAAAAFQAAABgjIUE3lNUQVQAAALIAAAAKgAAAC55kWzdY21hcAAAAvQAAAGLAAACIBAyEFBnYXNwAAAEgAAAAAgAAAAIAAAAEGdseWYAAASIAAAPfAAAJNCqXJsiaGVhZAAAFAQAAAA2AAAANhL1JvtoaGVhAAAUPAAAACAAAAAkAzn+kmhtdHgAABRcAAABDwAABDa4CRTXbG9jYQAAFWwAAAIFAAACLqxBo89tYXhwAAAXdAAAABwAAAAgAYQCg25hbWUAABeQAAABCwAAAkgzWFNlcG9zdAAAGJwAAAAWAAAAIP+fADN42h3EAQaAQBQFwHnLlqhYe5cOFkDH7gJ9YUY0J+DSLDa3eLySnl6vOeqRUc9MEQ37L3x1RALJAAABAAAACgAcAB4AAURGTFQACAAEAAAAAP//AAAAAAAAeNqNzQFHA3EYx/HP878123W12gAKUicggBAggREkATWTSmc4g+sF9LIC9GJ6DbEGZo44Hx7w9XsEclem+tc30zvlvKkr5Uv9/K6sZsuF8uNt8bq+TdMo9WC1Eoj5rFoaICHZUah8+lrrI8ldyoSxcI5ASDITF7h179iDR2dC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MscsMLSE332+Wbd+8n+91jqk/YREWwcEroC9RY9j4jSI+mQQwibBCYuDn3ad5o+DGxi9LPNGhs8LpwhFWYeAJG3V+0AeNpjYGYAg/9zGIyAFCMDGgAAKpQB0gAA) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Fira Code;font-style:normal;font-weight:400;font-display:swap;src:url(data:font/woff;base64,d09GRgABAAAAACNoAA8AAAAAMZAAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHREVGAAABWAAAADMAAABAAiECUEdQT1MAAAGMAAAAIAAAACBEdkx1R1NVQgAAAawAAACuAAABIPeB00hPUy8yAAACXAAAAFYAAABgcXSo31NUQVQAAAK0AAAAKgAAAC55kWzdY21hcAAAAuAAAADFAAABEjB9MLtnYXNwAAADqAAAAAgAAAAIAAAAEGdseWYAAAOwAAAb2AAAJs7kVKgLaGVhZAAAH4gAAAA2AAAANhL1JvtoaGVhAAAfwAAAAB8AAAAkAzn+KGhtdHgAAB/gAAABBwAAAnLQ1V1sbG9jYQAAIOgAAAE+AAABPvRh6ottYXhwAAAiKAAAABwAAAAgAQwCg25hbWUAACJEAAABCwAAAkgzWFNlcG9zdAAAI1AAAAAWAAAAIP+fADN42h3DMQqAMBQFsLwPbuLuLO5eUMSxY2/cUkJEOQCPsjld4vaKb4pfE32KKOxrGIPTBHIAAAEAAAAKABwAHgABREZMVAAIAAQAAAAA//8AAAAAAAB42k3Ng25FURRF0XFRNyiC2rYZ1ogb1rb5+lH9xddTNytzB3tBhELTVuXOzq+uad3P3F1oPb47PNd6sftwpfX19Ook3Ewmo1UK2awI0f7uxYN8xARyFNvw5C0oF7FCvRKR0kAtIoGg1KAho8ZEQY2/nup/nuTbEwX1BATyhc7AhEmRWKOe36VqCSLLgeYAyW/vOCKkYpFKk/xrLJenUq16jdr1GBBcBo3zDtcUF4EAAHjaY2Bh2ck4gYGVgYHlC8skBgaGSRCaaTWDEVMFkObm4GQFUgwsQLkGBiTgHOLixHCAuYD5P/uevzUMDBwlzC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ZGBgmMfExpDAUMHABeYhADMDCwAlBwGSeNqUkMVZhDEQQB/uXHHIDXd354Lrdd3ldxwKoJatgQKogG6QfIPrRl8yPkAl1xRRUFwB5EC4gFZywoXUcidcxAL3wsX0FdQLl9BYsCZcSleBX7iWkYIbNBdAdcGtsPbJMgYmZ9gkiBHHRTHEAIOM0MsT6a04IE4ExRoJbAIobRnWfzvYGCSfOKTtF/FwiWNg46Do0H5dTBym6KefGAmt4RGkjxAGGfpxMcjikOKMfiTSa5zOb2NvvOa9R+SJPNIEsBmljwGd/TTLHLDC0hN99vlm3fvJ/vdY6pP2ERFsHBK6AvUWPY+I0iPpkEMImwQmLg592neaPgxsYvSzzRobPC6cIRVmHgCRt1ftAHjaY2BmAIP/cxiMgBQjAxoAACqUAdIAAA==) format("woff");unicode-range:U+0370-03FF}@font-face{font-family:Fira Code;font-style:normal;font-weight:400;font-display:swap;src:url(data:font/woff;base64,d09GRgABAAAAACF0AA8AAAAANPgAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHREVGAAABWAAAALcAAAEeENMPgUdQT1MAAAIQAAAAIAAAACBEdkx1R1NVQgAAAjAAAACqAAAA7qtPmPVPUy8yAAAC3AAAAFoAAABgbptl81NUQVQAAAM4AAAAKgAAAC55kWzdY21hcAAAA2QAAAE6AAABwMYS7sJnYXNwAAAEoAAAAAgAAAAIAAAAEGdseWYAAASoAAAYlQAAJ2AKUboxaGVhZAAAHUAAAAA2AAAANhL1JvtoaGVhAAAdeAAAAB8AAAAkAzn+V2htdHgAAB2YAAAA4QAAA2DBYoWjbG9jYQAAHnwAAAG3AAABzmtRYgJtYXhwAAAgNAAAABwAAAAgAVQCg25hbWUAACBQAAABCwAAAkgzWFNlcG9zdAAAIVwAAAAWAAAAIP+fADN42mJgZGBi4GMAA0Y+IFsLiFmAomyAhuVBtwIAisFwz4LZthHMtm0rmG3btm3bjvZot/nTLywTqECdakGb6sKQGsOMWjKBDRyoExO4MOHbjXrAm/rCnwYyQTBCaTiiaRwS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EVZh4AkbdX7QB42mNgZgCD/3MYjIAUIwMaAAAqlAHSAAA=) format("woff");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Fira Code;font-style:normal;font-weight:400;font-display:swap;src:url(data:font/woff;base64,d09GRgABAAAAAGmoAA8AAAAAw9QAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHREVGAAABWAAAAD4AAABSBboFKkdQT1MAAAGYAAAAIAAAACBEdkx1R1NVQgAAAbgAAB2lAABDmkK5r6FPUy8yAAAfYAAAAFsAAABgbi0j31NUQVQAAB+8AAAAKgAAAC55kWzdY21hcAAAH+gAAAG8AAACfnQbS85nYXNwAAAhpAAAAAgAAAAIAAAAEGdseWYAACGsAABAtQAAb2ymrer7aGVhZAAAYmQAAAA2AAAANhL1JvtoaGVhAABinAAAACAAAAAkAzn+tmhtdHgAAGK8AAACZwAABdbECm3rbG9jYQAAZSQAAANBAAADhkisLKVtYXhwAABoaAAAABwAAAAgAjACg25hbWUAAGiEAAABCwAAAkgzWFNlcG9zdAAAaZAAAAAWAAAAIP+fADN42gXBgQWAQBgG0Pf9IKQ5bo4gLZKQFkhyG92IvSfKAliVSWxid4jTJW6PeH2i6yotTTIyRBRmzMIPDl0G6QAAAAEAAAAKABwAHgABREZMVAAIAAQAAAAA//8AAAAAAAB42lzJA5QgMRRE0Zc21rZt27Zt27Zt27Zt27ZtW9kcTgc3qfoIwOOLVgGrUJFSlbjRsHuHVtxo2qFxS260qt+pDUl6NG/TjBs9unfvzg224eQvUjIemfLXKByPQgXzV4pHpYIVpI1K5q8Rj07lSsnpoEqyZ1KlCvK/CP7+xQQEGjp+iGwEshnIViDbgewEshvIHj4GqM4A1fmEali/VSdKNGrTtrWI0qRD/YYiVqu2DVuJJMpUygzKbMo8ykLKEspybTq37iCqAI0IT0SiEpM4xCchiUlOatKTiazkIDf5KEQxSlKWClSmOrWoQz0a0I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8B3L6k32XvmA3+7f9V/6L/yPwcJgigoHVQNugczgpXB5uBccDP4GiYJ2dAPC4ZVw5bh1vBJZEW1o4HRmugZzACLwPZwNFwLt8ND8Ay8Bh/CN/AbSorSIxYZKESlUUc0Ak1Hy9BW9BCnxizOj0vg6rgZ7oUH4zF4Cl6M1/0AyhMX1gAAAHjaY2BkYGA8xMTGkMBQwcAF5CEDZgYWACjvAbd42pSQxVmEMRBAH+5cccgNd3fngut13eV3HAqglq2BAqiAbpB8g+tGXzI+QCXXFFFQXAHkQLiAVnLChdRyJ1zEAvfCxfQV1AuX0FiwJlxKV4FfuJaRghs0F0B1wa2w9skyBiZn2CSIEcdFMcQAg4zQyxPprTggTgTFGglsAihtGdZ/O9gYJJ84pO0X8XCJY2DjoOjQfl1MHKbop58YCa3hEaSPEAYZ+nExyOKQ4ox+JNJrnM5vY2+85r1H5Ik80gSwGaWPAZ39NMscsMLSE332+Wbd+8n+91jqk/YREWwcEroC9RY9j4jSI+mQQwibBCYuDn3ad5o+DGxi9LPNGhs8LpwhFWYeAJG3V+0AeNpjYGYAg/9zGIyAFCMDGgAAKpQB0gAA) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.auto-inserted-leaf{border-radius:var(--border-radius-4);padding:var(--px-2);animation-name:insertionFade;animation-duration:6s}@keyframes insertionFade{0%,to{background-color:#0000}15%,85%{background-color:hsla(var(--color-warning),var(--alpha-background-light))}}.graphiql-editor{width:100%;height:100%}.graphiql-editor.hidden{display:none}.monaco-editor{outline-width:0!important;position:absolute!important}.monaco-editor .highlight{color:hsl(var(--color-primary))!important}.monaco-editor input:focus-visible{outline-color:hsl(var(--color-primary))}.monaco-editor .overflow-guard{overflow:unset!important}.monaco-editor .quick-input-widget{--vscode-widget-border: var(--vscode-editorHoverWidget-border);min-width:min(500px,70vw)!important;box-shadow:none!important}.monaco-hover,.monaco-hover-content{width:auto!important;max-width:none!important;height:auto!important;max-height:none!important}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-grow:0}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{flex-grow:1;margin-right:auto}.graphiql-container *{box-sizing:border-box;font-variant-ligatures:none}.graphiql-container,.graphiql-dialog,.graphiql-dialog-overlay,.graphiql-tooltip,[data-radix-popper-content-wrapper]{--color-primary: 320, 95%, 43%;--color-secondary: 242, 51%, 61%;--color-tertiary: 188, 100%, 36%;--color-info: 208, 100%, 46%;--color-success: 158, 60%, 42%;--color-warning: 36, 100%, 41%;--color-error: 13, 93%, 58%;--color-neutral: 219, 28%, 32%;--color-base: 219, 28%, 100%;--alpha-secondary: .76;--alpha-tertiary: .5;--alpha-background-heavy: .15;--alpha-background-medium: .1;--alpha-background-light: .07;--font-family: "Roboto", sans-serif;--font-family-mono: "Fira Code", monospace;--font-size-hint: .75rem ;--font-size-inline-code: .8125rem ;--font-size-body: .9375rem ;--font-size-h4: 1.125rem ;--font-size-h3: 1.375rem ;--font-size-h2: 1.8125rem ;--font-weight-regular: 400;--font-weight-medium: 500;--line-height: 1.5;--px-2: 2px;--px-4: 4px;--px-6: 6px;--px-8: 8px;--px-10: 10px;--px-12: 12px;--px-16: 16px;--px-20: 20px;--px-24: 24px;--border-radius-2: 2px;--border-radius-4: 4px;--border-radius-8: 8px;--border-radius-12: 12px;--popover-box-shadow: 0px 6px 20px #3b4c6a21, 0px 1.34018px 4.46726px #3b4c6a14, 0px .399006px 1.33002px #3b4c6a0d;--popover-border: none;--sidebar-width: 60px;--toolbar-width: 40px;--session-header-height: 38.5px}@media(prefers-color-scheme:dark){body:not(.graphiql-light) .graphiql-container,body:not(.graphiql-light) .graphiql-dialog,body:not(.graphiql-light) .graphiql-dialog-overlay,body:not(.graphiql-light) .graphiql-tooltip,body:not(.graphiql-light) [data-radix-popper-content-wrapper]{--color-primary: 338, 100%, 67%;--color-secondary: 243, 100%, 77%;--color-tertiary: 188, 100%, 44%;--color-info: 208, 100%, 72%;--color-success: 158, 100%, 42%;--color-warning: 30, 100%, 80%;--color-error: 13, 100%, 58%;--color-neutral: 219, 29%, 78%;--color-base: 219, 29%, 18%;--popover-box-shadow: none;--popover-border: 1px solid hsl(var(--color-neutral))}}body.graphiql-dark .graphiql-container,body.graphiql-dark .graphiql-dialog,body.graphiql-dark .graphiql-dialog-overlay,body.graphiql-dark .graphiql-tooltip,body.graphiql-dark [data-radix-popper-content-wrapper]{--color-primary: 338, 100%, 67%;--color-secondary: 243, 100%, 77%;--color-tertiary: 188, 100%, 44%;--color-info: 208, 100%, 72%;--color-success: 158, 100%, 42%;--color-warning: 30, 100%, 80%;--color-error: 13, 100%, 58%;--color-neutral: 219, 29%, 78%;--color-base: 219, 29%, 18%;--popover-box-shadow: none;--popover-border: 1px solid hsl(var(--color-neutral))}:is(.graphiql-container,.graphiql-dialog){color:hsl(var(--color-neutral));font-family:var(--font-family);font-size:var(--font-size-body);font-weight:var(--font-weight-regular);line-height:var(--line-height)}:is(.graphiql-container,.graphiql-dialog):-webkit-any(button){color:hsl(var(--color-neutral));font-family:var(--font-family);font-size:var(--font-size-body);font-weight:var(--font-weight-regular);line-height:var(--line-height)}:is(.graphiql-container,.graphiql-dialog):-moz-any(button){color:hsl(var(--color-neutral));font-family:var(--font-family);font-size:var(--font-size-body);font-weight:var(--font-weight-regular);line-height:var(--line-height)}:is(.graphiql-container,.graphiql-dialog):is(button){color:hsl(var(--color-neutral));font-family:var(--font-family);font-size:var(--font-size-body);font-weight:var(--font-weight-regular);line-height:var(--line-height)}:is(.graphiql-container,.graphiql-dialog) input{color:hsl(var(--color-neutral));font-family:var(--font-family);font-size:var(--font-size-caption)}:is(.graphiql-container,.graphiql-dialog) input::placeholder{color:hsla(var(--color-neutral),var(--alpha-secondary))}:is(.graphiql-container,.graphiql-dialog) a{color:hsl(var(--color-primary))}:is(.graphiql-container,.graphiql-dialog) a:focus{outline:hsl(var(--color-primary)) auto 1px}.graphiql-dropdown-content{background-color:hsl(var(--color-base));border:var(--popover-border);border-radius:var(--border-radius-8);box-shadow:var(--popover-box-shadow);font-size:inherit;max-width:250px;padding:var(--px-4);font-family:var(--font-family);color:hsl(var(--color-neutral));max-height:min(calc(var(--radix-dropdown-menu-content-available-height) - 10px),400px);overflow-y:auto}.graphiql-dropdown-item{border-radius:var(--border-radius-4);font-size:inherit;margin:var(--px-4);padding:var(--px-6) var(--px-8);text-overflow:ellipsis;white-space:nowrap;cursor:pointer;line-height:var(--line-height);outline:none;overflow:hidden}.graphiql-dropdown-item[data-selected],.graphiql-dropdown-item[data-current-nav],.graphiql-dropdown-item:hover{background-color:hsla(var(--color-neutral),var(--alpha-background-light));color:inherit}.graphiql-dropdown-item:not(:first-child){margin-top:0}.graphiql-tooltip{background:hsl(var(--color-base));border:var(--popover-border);border-radius:var(--border-radius-4);box-shadow:var(--popover-box-shadow);color:hsl(var(--color-neutral));font-size:inherit;padding:var(--px-4) var(--px-6);font-family:var(--font-family)}button.graphiql-execute-button{background-color:hsl(var(--color-primary));border-radius:var(--border-radius-8);cursor:pointer;height:var(--toolbar-width);width:var(--toolbar-width);border:none;padding:0}button.graphiql-execute-button:hover{background-color:hsla(var(--color-primary),.9)}button.graphiql-execute-button:active{background-color:hsla(var(--color-primary),.8)}button.graphiql-execute-button:focus{outline:hsla(var(--color-primary),.8) auto 1px}button.graphiql-execute-button>svg{color:#fff;height:var(--px-16);width:var(--px-16);margin:auto;display:block}.graphiql-un-styled{all:unset;border-radius:var(--border-radius-4);cursor:pointer}.graphiql-un-styled:hover{background-color:hsla(var(--color-neutral),var(--alpha-background-light))}.graphiql-un-styled:active{background-color:hsla(var(--color-neutral),var(--alpha-background-medium))}.graphiql-un-styled:focus{outline:hsla(var(--color-neutral),var(--alpha-background-heavy)) auto 1px}.graphiql-button,button.graphiql-button{background-color:hsla(var(--color-neutral),var(--alpha-background-light));border-radius:var(--border-radius-4);color:hsl(var(--color-neutral));cursor:pointer;font-size:var(--font-size-body);padding:var(--px-8) var(--px-12);border:none}:is(.graphiql-button,button.graphiql-button):hover{background-color:hsla(var(--color-neutral),var(--alpha-background-medium))}:is(.graphiql-button,button.graphiql-button):active{background-color:hsla(var(--color-neutral),var(--alpha-background-medium))}:is(.graphiql-button,button.graphiql-button):focus{outline:hsla(var(--color-neutral),var(--alpha-background-heavy)) auto 1px}:is(.graphiql-button,button.graphiql-button).graphiql-button-success{background-color:hsla(var(--color-success),var(--alpha-background-heavy))}:is(.graphiql-button,button.graphiql-button).graphiql-button-error{background-color:hsla(var(--color-error),var(--alpha-background-heavy))}button.graphiql-toolbar-button{height:var(--toolbar-width);width:var(--toolbar-width);justify-content:center;align-items:center;display:flex}button.graphiql-toolbar-button.error{background:hsla(var(--color-error),var(--alpha-background-heavy))}.graphiql-button-group{background-color:hsla(var(--color-neutral),var(--alpha-background-light));border-radius:calc(var(--border-radius-4) + var(--px-4));padding:var(--px-4);display:flex}.graphiql-button-group>button.graphiql-button{background-color:#0000}.graphiql-button-group>button.graphiql-button:hover{background-color:hsla(var(--color-neutral),var(--alpha-background-light))}.graphiql-button-group>button.graphiql-button.active{background-color:hsl(var(--color-base));cursor:default}.graphiql-button-group>*+*{margin-left:var(--px-8)}.graphiql-dialog-overlay{background-color:hsla(var(--color-neutral),var(--alpha-background-heavy));z-index:10;position:fixed;inset:0}.graphiql-dialog{background-color:hsl(var(--color-base));border:var(--popover-border);border-radius:var(--border-radius-12);box-shadow:var(--popover-box-shadow);max-width:80vw;max-height:80vh;width:unset;z-index:10;margin:0;padding:0;position:fixed;top:50%;left:50%;overflow:auto;transform:translate(-50%,-50%)}.graphiql-dialog-close>svg{color:hsla(var(--color-neutral),var(--alpha-secondary));height:var(--px-12);padding:var(--px-12);width:var(--px-12);display:block}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation) blockquote{padding-left:var(--px-8);margin-left:0;margin-right:0}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation) code{border-radius:var(--border-radius-4);font-family:var(--font-family-mono);font-size:var(--font-size-inline-code)}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation) pre{border-radius:var(--border-radius-4);font-family:var(--font-family-mono);font-size:var(--font-size-inline-code)}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation) code{padding:var(--px-2)}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation) pre{padding:var(--px-6) var(--px-8);overflow:auto}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation) pre code{background-color:initial;border-radius:0;padding:0}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation) ol{padding-left:var(--px-16)}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation) ul{padding-left:var(--px-16)}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation) ol{list-style-type:decimal}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation) ul{list-style-type:disc}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation) img{border-radius:var(--border-radius-4);max-width:100%;max-height:120px}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation)>:first-child{margin-top:0}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation)>:last-child{margin-bottom:0}.graphiql-markdown-description a{color:hsl(var(--color-primary));text-decoration:none}.graphiql-markdown-description a:hover{text-decoration:underline}.graphiql-markdown-description blockquote{border-left:1.5px solid hsla(var(--color-neutral),var(--alpha-tertiary))}.graphiql-markdown-description code,.graphiql-markdown-description pre{background-color:hsla(var(--color-neutral),var(--alpha-background-light));color:hsl(var(--color-neutral))}.graphiql-markdown-description>*{margin:var(--px-12) 0}.graphiql-markdown-deprecation a{color:hsl(var(--color-warning));text-decoration:underline}.graphiql-markdown-deprecation blockquote{border-left:1.5px solid hsl(var(--color-warning))}.graphiql-markdown-deprecation code,.graphiql-markdown-deprecation pre{background-color:hsla(var(--color-warning),var(--alpha-background-heavy))}.graphiql-markdown-deprecation>*{margin:var(--px-8) 0}.graphiql-markdown-preview>:not(:first-child){display:none}.graphiql-spinner{height:56px;margin:auto;margin-top:var(--px-16);width:56px}.graphiql-spinner:after{border:4px solid #0000;border-top:4px solid hsla(var(--color-neutral),var(--alpha-tertiary));content:"";vertical-align:middle;border-radius:100%;width:46px;height:46px;animation:.8s linear infinite rotation;display:inline-block}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.graphiql-tabs{--bg: hsl(var(--color-base));align-items:center;gap:var(--px-8);border-top-left-radius:var(--border-radius-8);margin:0;padding:2px 0;list-style:none;display:flex;overflow:auto}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}.graphiql-tabs,.graphiql-tab{min-width:0}.graphiql-tab{border-radius:var(--border-radius-8) var(--border-radius-8) 0 0;background:hsla(var(--color-neutral),var(--alpha-background-light));flex-shrink:0;display:flex;position:relative}.graphiql-tab:not(:focus-within){transform:none!important}.graphiql-tab:hover{background:var(--bg);color:hsl(var(--color-neutral))}.graphiql-tab:hover .graphiql-tab-close{display:block}.graphiql-tab:focus-within{background:var(--bg);color:hsl(var(--color-neutral))}.graphiql-tab:focus-within .graphiql-tab-close{display:block}.graphiql-tab.graphiql-tab-active{background:var(--bg);color:hsl(var(--color-neutral))}.graphiql-tab.graphiql-tab-active .graphiql-tab-close{display:block}.graphiql-tab .graphiql-tab-button{border-radius:var(--border-radius-12) var(--border-radius-12) 0 0;padding:var(--px-4) 28px var(--px-4) var(--px-8)}.graphiql-tab .graphiql-tab-button:hover{background:none}.graphiql-tab .graphiql-tab-close{right:min(var(--px-4),5%);background:var(--bg);padding:var(--px-6);line-height:0;display:none;position:absolute;top:50%;transform:translateY(-50%)}.graphiql-tab .graphiql-tab-close>svg{height:var(--px-8);width:var(--px-8)}.graphiql-tab .graphiql-tab-close:hover{background:var(--bg);color:hsl(var(--color-neutral));overflow:hidden}.graphiql-tab .graphiql-tab-close:hover:before{content:"";z-index:-1;background:hsla(var(--color-neutral),.3);position:absolute;inset:0}.graphiql-history-header{font-size:var(--font-size-h2);font-weight:var(--font-weight-medium);justify-content:space-between;align-items:center;display:flex}.graphiql-history-header button{font-size:var(--font-size-inline-code);padding:var(--px-6) var(--px-10)}.graphiql-history-items{margin:var(--px-16) 0 0;padding:0;list-style:none}.graphiql-history-item{border-radius:var(--border-radius-4);color:hsla(var(--color-neutral),var(--alpha-secondary));font-size:var(--font-size-inline-code);font-family:var(--font-family-mono);height:34px;display:flex}.graphiql-history-item:hover{color:hsl(var(--color-neutral));background-color:hsla(var(--color-neutral),var(--alpha-background-light))}.graphiql-history-item:not(:first-child){margin-top:var(--px-4)}.graphiql-history-item.editable{background-color:hsla(var(--color-primary),var(--alpha-background-medium))}.graphiql-history-item.editable>input{padding:0 var(--px-10);background:none;border:none;outline:none;flex:1;width:100%;margin:0}.graphiql-history-item.editable>input::placeholder{color:hsla(var(--color-neutral),var(--alpha-secondary))}.graphiql-history-item.editable>button{color:hsl(var(--color-primary));padding:0 var(--px-10)}.graphiql-history-item.editable>button:active{background-color:hsla(var(--color-primary),var(--alpha-background-heavy))}.graphiql-history-item.editable>button:focus{outline:hsl(var(--color-primary)) auto 1px}.graphiql-history-item.editable>button>svg{display:block}button.graphiql-history-item-label{padding:var(--px-8) var(--px-10);text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}button.graphiql-history-item-action{color:hsla(var(--color-neutral),var(--alpha-secondary));padding:var(--px-8) var(--px-6);align-items:center;display:flex}button.graphiql-history-item-action:hover{color:hsl(var(--color-neutral))}button.graphiql-history-item-action>svg{width:14px;height:14px}.graphiql-history-item-spacer{height:var(--px-16)}.graphiql-doc-explorer-default-value{color:hsl(var(--color-success))}a.graphiql-doc-explorer-type-name{color:hsl(var(--color-warning));text-decoration:none}a.graphiql-doc-explorer-type-name:hover{text-decoration:underline}a.graphiql-doc-explorer-type-name:focus{outline:hsl(var(--color-warning)) auto 1px}.graphiql-doc-explorer-argument>*+*{margin-top:var(--px-12)}.graphiql-doc-explorer-argument-name{color:hsl(var(--color-secondary))}.graphiql-doc-explorer-argument-deprecation{background-color:hsla(var(--color-warning),var(--alpha-background-light));border:1px solid hsl(var(--color-warning));border-radius:var(--border-radius-4);color:hsl(var(--color-warning));padding:var(--px-8)}.graphiql-doc-explorer-argument-deprecation-label{font-size:var(--font-size-hint);font-weight:var(--font-weight-medium)}.graphiql-doc-explorer-deprecation{background-color:hsla(var(--color-warning),var(--alpha-background-light));border:1px solid hsl(var(--color-warning));border-radius:var(--px-4);color:hsl(var(--color-warning));padding:var(--px-8)}.graphiql-doc-explorer-deprecation-label{font-size:var(--font-size-hint);font-weight:var(--font-weight-medium)}.graphiql-doc-explorer-directive{color:hsl(var(--color-secondary))}.graphiql-doc-explorer-section-title{font-size:var(--font-size-hint);font-weight:var(--font-weight-medium);align-items:center;line-height:1;display:flex}.graphiql-doc-explorer-section-title>svg{height:var(--px-16);margin-right:var(--px-8);width:var(--px-16)}.graphiql-doc-explorer-section-content{margin-left:var(--px-8);margin-top:var(--px-16)}.graphiql-doc-explorer-section-content>*+*{margin-top:var(--px-16)}.graphiql-doc-explorer-root-type{color:hsl(var(--color-info))}.graphiql-doc-explorer-search{color:hsla(var(--color-neutral),var(--alpha-secondary))}.graphiql-doc-explorer-search:not([data-state=idle]){border:var(--popover-border);border-radius:var(--border-radius-4);box-shadow:var(--popover-box-shadow);color:hsl(var(--color-neutral))}.graphiql-doc-explorer-search:not([data-state=idle]) .graphiql-doc-explorer-search-input{background:hsl(var(--color-base))}.graphiql-doc-explorer-search-input{background-color:hsla(var(--color-neutral),var(--alpha-background-light));border-radius:var(--border-radius-4);padding:var(--px-8) var(--px-12);align-items:center;display:flex}.graphiql-doc-explorer-search [role=combobox]{margin-left:var(--px-4);background-color:#0000;border:none;width:100%}.graphiql-doc-explorer-search [role=combobox]:focus{outline:none}.graphiql-doc-explorer-search [role=listbox]{background-color:hsl(var(--color-base));border-bottom-left-radius:var(--border-radius-4);border-bottom-right-radius:var(--border-radius-4);border:none;border-top:1px solid hsla(var(--color-neutral),var(--alpha-background-heavy));max-height:400px;font-size:var(--font-size-body);padding:var(--px-4);margin:0;position:relative;overflow-y:auto}.graphiql-doc-explorer-search [role=option]{border-radius:var(--border-radius-4);color:hsla(var(--color-neutral),var(--alpha-secondary));padding:var(--px-8) var(--px-12);text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow-x:hidden}.graphiql-doc-explorer-search [role=option][data-headlessui-state=active]{background-color:hsla(var(--color-neutral),var(--alpha-background-light))}.graphiql-doc-explorer-search [role=option]:hover{background-color:hsla(var(--color-neutral),var(--alpha-background-medium))}.graphiql-doc-explorer-search [role=option][data-headlessui-state=active]:hover{background-color:hsla(var(--color-neutral),var(--alpha-background-heavy))}.graphiql-doc-explorer-search [role=option]+:is(.graphiql-doc-explorer-search [role=option]){margin-top:var(--px-4)}.graphiql-doc-explorer-search-type{color:hsl(var(--color-info))}.graphiql-doc-explorer-search-field{color:hsl(var(--color-warning))}.graphiql-doc-explorer-search-argument{color:hsl(var(--color-secondary))}.graphiql-doc-explorer-search-divider{color:hsla(var(--color-neutral),var(--alpha-secondary));font-size:var(--font-size-hint);font-weight:var(--font-weight-medium);margin-top:var(--px-8);padding:var(--px-8) var(--px-12)}.graphiql-doc-explorer-search-empty{color:hsla(var(--color-neutral),var(--alpha-secondary));padding:var(--px-8) var(--px-12)}a.graphiql-doc-explorer-field-name{color:hsl(var(--color-info));text-decoration:none}a.graphiql-doc-explorer-field-name:hover{text-decoration:underline}a.graphiql-doc-explorer-field-name:focus{outline:hsl(var(--color-info)) auto 1px}.graphiql-doc-explorer-item>:not(:first-child){margin-top:var(--px-12)}.graphiql-doc-explorer-argument-multiple{margin-left:var(--px-8)}.graphiql-doc-explorer-enum-value{color:hsl(var(--color-info))}.graphiql-doc-explorer-header{justify-content:space-between;display:flex;position:relative}.graphiql-doc-explorer-header:focus-within .graphiql-doc-explorer-title{visibility:hidden}.graphiql-doc-explorer-header:focus-within .graphiql-doc-explorer-back:not(:focus){color:#0000}.graphiql-doc-explorer-header-content{flex-direction:column;min-width:0;display:flex}.graphiql-doc-explorer-search{position:absolute;top:0;right:0}.graphiql-doc-explorer-search:focus-within{left:0}.graphiql-doc-explorer-search:not(:focus-within) [role=combobox]{width:6.5ch;height:24px}.graphiql-doc-explorer-search [role=combobox]:focus{width:100%}a.graphiql-doc-explorer-back{color:hsla(var(--color-neutral),var(--alpha-secondary));align-items:center;text-decoration:none;display:flex}a.graphiql-doc-explorer-back:hover{text-decoration:underline}a.graphiql-doc-explorer-back:focus{outline:hsla(var(--color-neutral),var(--alpha-secondary)) auto 1px}a.graphiql-doc-explorer-back:focus+.graphiql-doc-explorer-title{visibility:unset}a.graphiql-doc-explorer-back>svg{height:var(--px-8);margin-right:var(--px-8);width:var(--px-8)}.graphiql-doc-explorer-title{font-weight:var(--font-weight-medium);font-size:var(--font-size-h2);text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden}.graphiql-doc-explorer-title:not(:first-child){font-size:var(--font-size-h3);margin-top:var(--px-8)}.graphiql-doc-explorer-content>*{color:hsla(var(--color-neutral),var(--alpha-secondary));margin-top:var(--px-20)}.graphiql-doc-explorer-error{background-color:hsla(var(--color-error),var(--alpha-background-heavy));border:1px solid hsl(var(--color-error));border-radius:var(--border-radius-8);color:hsl(var(--color-error));padding:var(--px-8) var(--px-12)}.graphiql-container{background-color:hsl(var(--color-base));display:flex;height:100%;margin:0;overflow:hidden;width:100%}.graphiql-container .graphiql-sidebar{display:flex;flex-direction:column;padding:var(--px-8);width:var(--sidebar-width);gap:var(--px-8);overflow-y:auto}.graphiql-container .graphiql-sidebar>button{display:flex;align-items:center;justify-content:center;color:hsla(var(--color-neutral),var(--alpha-secondary));height:calc(var(--sidebar-width) - (2 * var(--px-8)));width:calc(var(--sidebar-width) - (2 * var(--px-8)));flex-shrink:0}.graphiql-container .graphiql-sidebar button.active{color:hsl(var(--color-neutral))}.graphiql-container .graphiql-sidebar button>svg{height:var(--px-20);width:var(--px-20)}.graphiql-container .graphiql-main{display:flex;flex:1;min-width:0}.graphiql-container .graphiql-sessions{background-color:hsla(var(--color-neutral),var(--alpha-background-light));border-radius:calc(var(--border-radius-12) + var(--px-8));display:flex;flex-direction:column;flex:1;max-height:100%;margin:var(--px-16);margin-left:0;min-width:0}.graphiql-container .graphiql-session-header{height:var(--session-header-height);align-items:center;display:flex;padding:var(--px-8) var(--px-8) 0;gap:var(--px-8)}button.graphiql-tab-add{padding:var(--px-4)}button.graphiql-tab-add>svg{color:hsla(var(--color-neutral),var(--alpha-secondary));display:block;height:var(--px-16);width:var(--px-16)}.graphiql-container .graphiql-logo{margin-left:auto;color:hsla(var(--color-neutral),var(--alpha-secondary));font-size:var(--font-size-h4);font-weight:var(--font-weight-medium)}.graphiql-container .graphiql-logo .graphiql-logo-link{color:hsla(var(--color-neutral),var(--alpha-secondary));text-decoration:none}.graphiql-container .graphiql-logo .graphiql-logo-link:focus{outline:hsla(var(--color-neutral),var(--alpha-background-heavy)) auto 1px}.graphiql-container #graphiql-session{display:flex;flex:1;padding:0 var(--px-8) var(--px-8)}.graphiql-container .graphiql-editors{background-color:hsl(var(--color-base));border-radius:0 0 var(--border-radius-12) var(--border-radius-12);box-shadow:var(--popover-box-shadow);display:flex;flex:1;flex-direction:column}.graphiql-container .graphiql-query-editor{border-bottom:1px solid hsla(var(--color-neutral),var(--alpha-background-heavy));padding:var(--px-16);column-gap:var(--px-16);display:flex;width:100%}.graphiql-container .graphiql-toolbar{width:var(--toolbar-width);display:flex;flex-direction:column;gap:var(--px-8)}.graphiql-container .graphiql-toolbar>button{flex-shrink:0}.graphiql-toolbar-icon{color:hsla(var(--color-neutral),var(--alpha-tertiary));display:block;height:calc(var(--toolbar-width) - (var(--px-8) * 2));width:calc(var(--toolbar-width) - (var(--px-8) * 2))}.graphiql-container .graphiql-editor-tools{cursor:row-resize;display:flex;width:100%;column-gap:var(--px-8);padding:var(--px-8)}.graphiql-container .graphiql-editor-tools button{color:hsla(var(--color-neutral),var(--alpha-secondary))}.graphiql-container .graphiql-editor-tools button.active{color:hsl(var(--color-neutral))}.graphiql-container .graphiql-editor-tools>button:not(.graphiql-toggle-editor-tools){padding:var(--px-8) var(--px-12)}.graphiql-container .graphiql-editor-tools .graphiql-toggle-editor-tools{margin-left:auto}.graphiql-container .graphiql-editor-tool{flex:1;padding:var(--px-16)}.graphiql-container .graphiql-toolbar,.graphiql-container .graphiql-editor-tools,.graphiql-container .graphiql-editor-tool{position:relative}.graphiql-container .graphiql-response{padding-top:var(--px-16);display:flex;width:100%;flex-direction:column}.graphiql-container .graphiql-response .result-window{position:relative;flex:1}.graphiql-container .graphiql-footer{border-top:1px solid hsla(var(--color-neutral),var(--alpha-background-heavy))}.graphiql-container .graphiql-plugin{border-left:1px solid hsla(var(--color-neutral),var(--alpha-background-heavy));flex:1;overflow-y:auto;padding:var(--px-16)}.graphiql-horizontal-drag-bar{width:var(--px-12);cursor:col-resize}.graphiql-horizontal-drag-bar:hover:after{border:var(--px-2) solid hsla(var(--color-neutral),var(--alpha-background-heavy));border-radius:var(--border-radius-2);content:"";display:block;height:25%;margin:0 auto;position:relative;top:37.5%;width:0}.graphiql-container .graphiql-chevron-icon{color:hsla(var(--color-neutral),var(--alpha-tertiary));display:block;height:var(--px-12);margin:var(--px-12);width:var(--px-12)}.graphiql-spin{animation:spin .8s linear 0s infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.graphiql-dialog .graphiql-dialog-header{align-items:center;display:flex;justify-content:space-between;padding:var(--px-24)}.graphiql-dialog .graphiql-dialog-title{font-size:var(--font-size-h3);font-weight:var(--font-weight-medium);margin:0}.graphiql-dialog .graphiql-dialog-section{align-items:center;border-top:1px solid hsla(var(--color-neutral),var(--alpha-background-heavy));display:flex;justify-content:space-between;padding:var(--px-24)}.graphiql-dialog .graphiql-dialog-section>:not(:first-child){margin-left:var(--px-24)}.graphiql-dialog .graphiql-dialog-section-title{font-size:var(--font-size-h4);font-weight:var(--font-weight-medium)}.graphiql-dialog .graphiql-dialog-section-caption{color:hsla(var(--color-neutral),var(--alpha-secondary))}.graphiql-dialog .graphiql-warning-text{color:hsl(var(--color-warning));font-weight:var(--font-weight-medium)}.graphiql-dialog .graphiql-table{border-collapse:collapse;width:100%}.graphiql-dialog .graphiql-table :is(th,td){border:1px solid hsla(var(--color-neutral),var(--alpha-background-heavy));padding:var(--px-8) var(--px-12)}.graphiql-dialog .graphiql-key{background-color:hsla(var(--color-neutral),var(--alpha-background-medium));border-radius:var(--border-radius-4);padding:var(--px-4)}.graphiql-container svg{pointer-events:none}:root{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:100%;height:100%;--pometry-dark: #17131b;--pometry-dark-80: #17131bcc;--pometry-dark-800: #2f2b2d;--pometry-grey: #e7e7e7;--pometry-grey-light: #f7f7f7;--pometry-white: #ffffff;--pometry-pink: #e3067a;--pometry-red: #f42848;--pometry-orange: #f97427;--pometry-purple: #a403f4;--pometry-mint: #3ed598;--pometry-pink-light: #ed72b3;--pometry-red-light: #fd768c;--pometry-orange-light: #ffbc96;--pometry-purple-light: #dca8ff;--pometry-mint-light: #96fad1;--pometry-pink-lighter: #fad7eb;--pometry-red-lighter: #ffeff2;--pometry-orange-lighter: #ffe9dc;--pometry-purple-lighter: #f2e6fa;--pometry-mint-lighter: #d6ffef;--pometry-gradient-cta: linear-gradient( 90deg, #f42848 0%, #e3067a 100%);--pometry-gradient-text: linear-gradient( 270deg, #f42848 0%, #e3067a 50%, #a403f4 100% );--pometry-primary: var(--pometry-pink);--pometry-secondary: var(--pometry-red);--pometry-accent: var(--pometry-purple);--pometry-gradient: var(--pometry-gradient-text);--shadow-sm: 0 2px 8px rgba(23, 19, 27, .06);--shadow-md: 0 4px 16px rgba(23, 19, 27, .1);--shadow-lg: 0 8px 30px rgba(23, 19, 27, .14);--shadow-xl: 0 12px 40px rgba(23, 19, 27, .18);--radius-sm: 8px;--radius-md: 12px;--radius-lg: 16px;--radius-xl: 20px;--text-primary: var(--pometry-dark);--text-secondary: var(--pometry-dark-80);--text-muted: #6b6770;--bg-subtle: var(--pometry-grey-light);--bg-muted: var(--pometry-grey);--border-light: var(--pometry-grey);--border-default: #d4d4d4}body{width:100%;height:100%}.iconify{width:20px;height:20px}svg text{font-family:Geist,sans-serif}input{font-family:Geist,sans-serif}.pometry-gradient-bg{background:var(--pometry-gradient)}.pometry-gradient-text{background:var(--pometry-gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.Toastify__toast{border-radius:var(--radius-sm)!important;box-shadow:var(--shadow-md)!important;padding:12px 16px!important;min-height:auto!important;font-family:Geist,sans-serif!important}.Toastify__toast-body{padding:0!important;margin:0!important;font-size:.875rem!important;line-height:1.4!important}.Toastify__toast-icon{width:20px!important;margin-right:10px!important}.Toastify__close-button{display:none!important}.Toastify__toast--error{background:var(--pometry-white)!important;border-left:4px solid var(--pometry-red)!important;color:var(--text-primary)!important}.Toastify__toast--error .Toastify__toast-icon svg{fill:var(--pometry-red)!important}.Toastify__toast--success{background:var(--pometry-white)!important;border-left:4px solid var(--pometry-mint)!important;color:var(--text-primary)!important}.Toastify__toast--success .Toastify__toast-icon svg{fill:var(--pometry-mint)!important}.Toastify__toast--info{background:var(--pometry-white)!important;border-left:4px solid var(--pometry-purple)!important;color:var(--text-primary)!important}.Toastify__toast--info .Toastify__toast-icon svg{fill:var(--pometry-purple)!important}.Toastify__toast--warning{background:var(--pometry-white)!important;border-left:4px solid var(--pometry-orange)!important;color:var(--text-primary)!important}.Toastify__toast--warning .Toastify__toast-icon svg{fill:var(--pometry-orange)!important}</style>
    </head>
    <body>
        <div id="root"></div>
    </body>
</html>